@seamapi/http 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -30
- package/lib/seam/connect/api-error-types.js +0 -1
- package/lib/seam/connect/api-error-types.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +1 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/resources/access-code.d.ts +743 -56
- package/lib/seam/connect/resources/access-grant.d.ts +279 -10
- package/lib/seam/connect/resources/access-method.d.ts +204 -8
- package/lib/seam/connect/resources/acs-access-group.d.ts +242 -9
- package/lib/seam/connect/resources/acs-credential.d.ts +212 -6
- package/lib/seam/connect/resources/acs-encoder.d.ts +46 -0
- package/lib/seam/connect/resources/acs-entrance.d.ts +298 -5
- package/lib/seam/connect/resources/acs-system.d.ts +227 -11
- package/lib/seam/connect/resources/acs-user.d.ts +388 -19
- package/lib/seam/connect/resources/action-attempt.d.ts +954 -0
- package/lib/seam/connect/resources/batch.d.ts +3 -0
- package/lib/seam/connect/resources/client-session.d.ts +48 -0
- package/lib/seam/connect/resources/connect-webview.d.ts +70 -0
- package/lib/seam/connect/resources/connected-account.d.ts +281 -12
- package/lib/seam/connect/resources/customer-portal.d.ts +22 -0
- package/lib/seam/connect/resources/device-provider.d.ts +72 -0
- package/lib/seam/connect/resources/device.d.ts +2063 -41
- package/lib/seam/connect/resources/event.d.ts +4014 -0
- package/lib/seam/connect/resources/instant-key.d.ts +41 -0
- package/lib/seam/connect/resources/noise-threshold.d.ts +24 -0
- package/lib/seam/connect/resources/phone.d.ts +72 -0
- package/lib/seam/connect/resources/space.d.ts +54 -0
- package/lib/seam/connect/resources/thermostat-daily-program.d.ts +27 -0
- package/lib/seam/connect/resources/thermostat-schedule.d.ts +45 -0
- package/lib/seam/connect/resources/unmanaged-access-code.d.ts +602 -50
- package/lib/seam/connect/resources/unmanaged-access-grant.d.ts +267 -10
- package/lib/seam/connect/resources/unmanaged-access-method.d.ts +195 -8
- package/lib/seam/connect/resources/unmanaged-device.d.ts +810 -120
- package/lib/seam/connect/resources/unmanaged-user-identity.d.ts +79 -3
- package/lib/seam/connect/resources/user-identity.d.ts +82 -3
- package/lib/seam/connect/resources/webhook.d.ts +15 -0
- package/lib/seam/connect/resources/workspace.d.ts +45 -0
- package/lib/seam/connect/routes/access-codes/access-codes.d.ts +288 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js +60 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/access-codes/simulate/simulate.d.ts +12 -0
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/access-codes/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.d.ts +72 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js +21 -0
- package/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/access-grants.d.ts +177 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js +21 -0
- package/lib/seam/connect/routes/access-grants/access-grants.js.map +1 -1
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.d.ts +43 -0
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js +13 -0
- package/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +78 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js +21 -0
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.d.ts +21 -0
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js +6 -0
- package/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/acs/access-groups/access-groups.d.ts +63 -0
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js +21 -0
- package/lib/seam/connect/routes/acs/access-groups/access-groups.js.map +1 -1
- package/lib/seam/connect/routes/acs/credentials/credentials.d.ts +126 -0
- package/lib/seam/connect/routes/acs/credentials/credentials.js +24 -0
- package/lib/seam/connect/routes/acs/credentials/credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/encoders.d.ts +66 -0
- package/lib/seam/connect/routes/acs/encoders/encoders.js +15 -0
- package/lib/seam/connect/routes/acs/encoders/encoders.js.map +1 -1
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.d.ts +39 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js +12 -0
- package/lib/seam/connect/routes/acs/encoders/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/acs/entrances/entrances.d.ts +72 -0
- package/lib/seam/connect/routes/acs/entrances/entrances.js +15 -0
- package/lib/seam/connect/routes/acs/entrances/entrances.js.map +1 -1
- package/lib/seam/connect/routes/acs/systems/systems.d.ts +64 -0
- package/lib/seam/connect/routes/acs/systems/systems.js +16 -0
- package/lib/seam/connect/routes/acs/systems/systems.js.map +1 -1
- package/lib/seam/connect/routes/acs/users/users.d.ts +189 -0
- package/lib/seam/connect/routes/acs/users/users.js +33 -0
- package/lib/seam/connect/routes/acs/users/users.js.map +1 -1
- package/lib/seam/connect/routes/action-attempts/action-attempts.d.ts +21 -0
- package/lib/seam/connect/routes/action-attempts/action-attempts.js +6 -0
- package/lib/seam/connect/routes/action-attempts/action-attempts.js.map +1 -1
- package/lib/seam/connect/routes/client-sessions/client-sessions.d.ts +113 -0
- package/lib/seam/connect/routes/client-sessions/client-sessions.js +23 -0
- package/lib/seam/connect/routes/client-sessions/client-sessions.js.map +1 -1
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.d.ts +76 -0
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js +22 -0
- package/lib/seam/connect/routes/connect-webviews/connect-webviews.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.d.ts +70 -0
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js +19 -0
- package/lib/seam/connect/routes/connected-accounts/connected-accounts.js.map +1 -1
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.d.ts +6 -0
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/connected-accounts/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/customers/customers.d.ts +1042 -0
- package/lib/seam/connect/routes/customers/customers.js +10 -0
- package/lib/seam/connect/routes/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/devices/devices.d.ts +122 -0
- package/lib/seam/connect/routes/devices/devices.js +23 -0
- package/lib/seam/connect/routes/devices/devices.js.map +1 -1
- package/lib/seam/connect/routes/devices/simulate/simulate.d.ts +42 -0
- package/lib/seam/connect/routes/devices/simulate/simulate.js +27 -0
- package/lib/seam/connect/routes/devices/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.d.ts +80 -0
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js +17 -0
- package/lib/seam/connect/routes/devices/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/events/events.d.ts +99 -0
- package/lib/seam/connect/routes/events/events.js +6 -0
- package/lib/seam/connect/routes/events/events.js.map +1 -1
- package/lib/seam/connect/routes/instant-keys/instant-keys.d.ts +21 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js +9 -0
- package/lib/seam/connect/routes/instant-keys/instant-keys.js.map +1 -1
- package/lib/seam/connect/routes/locks/locks.d.ts +85 -0
- package/lib/seam/connect/routes/locks/locks.js +16 -0
- package/lib/seam/connect/routes/locks/locks.js.map +1 -1
- package/lib/seam/connect/routes/locks/simulate/simulate.d.ts +15 -0
- package/lib/seam/connect/routes/locks/simulate/simulate.js +6 -0
- package/lib/seam/connect/routes/locks/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.d.ts +51 -0
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js +3 -0
- package/lib/seam/connect/routes/noise-sensors/noise-sensors.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.d.ts +66 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js +15 -0
- package/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.js.map +1 -1
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.d.ts +6 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/noise-sensors/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/phones/phones.d.ts +21 -0
- package/lib/seam/connect/routes/phones/phones.js +9 -0
- package/lib/seam/connect/routes/phones/phones.js.map +1 -1
- package/lib/seam/connect/routes/phones/simulate/simulate.d.ts +45 -0
- package/lib/seam/connect/routes/phones/simulate/simulate.js +3 -0
- package/lib/seam/connect/routes/phones/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.d.ts +6 -0
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js +6 -0
- package/lib/seam/connect/routes/seam-http-endpoints-without-workspace.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +696 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js +696 -0
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/spaces/spaces.d.ts +165 -0
- package/lib/seam/connect/routes/spaces/spaces.js +36 -0
- package/lib/seam/connect/routes/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.d.ts +42 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js +9 -0
- package/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/schedules/schedules.d.ts +69 -0
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js +15 -0
- package/lib/seam/connect/routes/thermostats/schedules/schedules.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/simulate/simulate.d.ts +33 -0
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js +6 -0
- package/lib/seam/connect/routes/thermostats/simulate/simulate.js.map +1 -1
- package/lib/seam/connect/routes/thermostats/thermostats.d.ts +300 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js +42 -0
- package/lib/seam/connect/routes/thermostats/thermostats.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.d.ts +35 -0
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js +11 -0
- package/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.js.map +1 -1
- package/lib/seam/connect/routes/user-identities/user-identities.d.ts +145 -0
- package/lib/seam/connect/routes/user-identities/user-identities.js +46 -0
- package/lib/seam/connect/routes/user-identities/user-identities.js.map +1 -1
- package/lib/seam/connect/routes/webhooks/webhooks.d.ts +33 -0
- package/lib/seam/connect/routes/webhooks/webhooks.js +15 -0
- package/lib/seam/connect/routes/webhooks/webhooks.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/workspaces.d.ts +88 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js +15 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -9
- package/src/lib/seam/connect/api-error-types.ts +0 -2
- package/src/lib/seam/connect/openapi.ts +2 -4
- package/src/lib/seam/connect/resources/access-code.ts +719 -35
- package/src/lib/seam/connect/resources/access-grant.ts +284 -16
- package/src/lib/seam/connect/resources/access-method.ts +205 -10
- package/src/lib/seam/connect/resources/acs-access-group.ts +247 -14
- package/src/lib/seam/connect/resources/acs-credential.ts +210 -5
- package/src/lib/seam/connect/resources/acs-encoder.ts +46 -0
- package/src/lib/seam/connect/resources/acs-entrance.ts +296 -4
- package/src/lib/seam/connect/resources/acs-system.ts +223 -9
- package/src/lib/seam/connect/resources/acs-user.ts +382 -16
- package/src/lib/seam/connect/resources/action-attempt.ts +956 -0
- package/src/lib/seam/connect/resources/batch.ts +3 -0
- package/src/lib/seam/connect/resources/client-session.ts +48 -0
- package/src/lib/seam/connect/resources/connect-webview.ts +70 -0
- package/src/lib/seam/connect/resources/connected-account.ts +277 -10
- package/src/lib/seam/connect/resources/customer-portal.ts +22 -0
- package/src/lib/seam/connect/resources/device-provider.ts +72 -0
- package/src/lib/seam/connect/resources/device.ts +2059 -39
- package/src/lib/seam/connect/resources/event.ts +4015 -0
- package/src/lib/seam/connect/resources/instant-key.ts +41 -0
- package/src/lib/seam/connect/resources/noise-threshold.ts +24 -0
- package/src/lib/seam/connect/resources/phone.ts +72 -0
- package/src/lib/seam/connect/resources/space.ts +54 -0
- package/src/lib/seam/connect/resources/thermostat-daily-program.ts +27 -0
- package/src/lib/seam/connect/resources/thermostat-schedule.ts +45 -0
- package/src/lib/seam/connect/resources/unmanaged-access-code.ts +580 -30
- package/src/lib/seam/connect/resources/unmanaged-access-grant.ts +272 -16
- package/src/lib/seam/connect/resources/unmanaged-access-method.ts +196 -10
- package/src/lib/seam/connect/resources/unmanaged-device.ts +727 -39
- package/src/lib/seam/connect/resources/unmanaged-user-identity.ts +84 -8
- package/src/lib/seam/connect/resources/user-identity.ts +87 -8
- package/src/lib/seam/connect/resources/webhook.ts +15 -0
- package/src/lib/seam/connect/resources/workspace.ts +46 -0
- package/src/lib/seam/connect/routes/access-codes/access-codes.ts +291 -0
- package/src/lib/seam/connect/routes/access-codes/simulate/simulate.ts +12 -0
- package/src/lib/seam/connect/routes/access-codes/unmanaged/unmanaged.ts +73 -0
- package/src/lib/seam/connect/routes/access-grants/access-grants.ts +180 -0
- package/src/lib/seam/connect/routes/access-grants/unmanaged/unmanaged.ts +43 -0
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +79 -0
- package/src/lib/seam/connect/routes/access-methods/unmanaged/unmanaged.ts +21 -0
- package/src/lib/seam/connect/routes/acs/access-groups/access-groups.ts +63 -0
- package/src/lib/seam/connect/routes/acs/credentials/credentials.ts +133 -0
- package/src/lib/seam/connect/routes/acs/encoders/encoders.ts +66 -0
- package/src/lib/seam/connect/routes/acs/encoders/simulate/simulate.ts +40 -0
- package/src/lib/seam/connect/routes/acs/entrances/entrances.ts +72 -0
- package/src/lib/seam/connect/routes/acs/systems/systems.ts +64 -0
- package/src/lib/seam/connect/routes/acs/users/users.ts +189 -0
- package/src/lib/seam/connect/routes/action-attempts/action-attempts.ts +21 -0
- package/src/lib/seam/connect/routes/client-sessions/client-sessions.ts +113 -0
- package/src/lib/seam/connect/routes/connect-webviews/connect-webviews.ts +76 -0
- package/src/lib/seam/connect/routes/connected-accounts/connected-accounts.ts +70 -0
- package/src/lib/seam/connect/routes/connected-accounts/simulate/simulate.ts +6 -0
- package/src/lib/seam/connect/routes/customers/customers.ts +1058 -0
- package/src/lib/seam/connect/routes/devices/devices.ts +123 -0
- package/src/lib/seam/connect/routes/devices/simulate/simulate.ts +42 -0
- package/src/lib/seam/connect/routes/devices/unmanaged/unmanaged.ts +80 -0
- package/src/lib/seam/connect/routes/events/events.ts +99 -0
- package/src/lib/seam/connect/routes/instant-keys/instant-keys.ts +21 -0
- package/src/lib/seam/connect/routes/locks/locks.ts +85 -0
- package/src/lib/seam/connect/routes/locks/simulate/simulate.ts +15 -0
- package/src/lib/seam/connect/routes/noise-sensors/noise-sensors.ts +51 -0
- package/src/lib/seam/connect/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +66 -0
- package/src/lib/seam/connect/routes/noise-sensors/simulate/simulate.ts +6 -0
- package/src/lib/seam/connect/routes/phones/phones.ts +21 -0
- package/src/lib/seam/connect/routes/phones/simulate/simulate.ts +45 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints-without-workspace.ts +6 -0
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +696 -0
- package/src/lib/seam/connect/routes/spaces/spaces.ts +166 -0
- package/src/lib/seam/connect/routes/thermostats/daily-programs/daily-programs.ts +42 -0
- package/src/lib/seam/connect/routes/thermostats/schedules/schedules.ts +69 -0
- package/src/lib/seam/connect/routes/thermostats/simulate/simulate.ts +33 -0
- package/src/lib/seam/connect/routes/thermostats/thermostats.ts +300 -0
- package/src/lib/seam/connect/routes/user-identities/unmanaged/unmanaged.ts +35 -0
- package/src/lib/seam/connect/routes/user-identities/user-identities.ts +146 -0
- package/src/lib/seam/connect/routes/webhooks/webhooks.ts +33 -0
- package/src/lib/seam/connect/routes/workspaces/workspaces.ts +88 -0
- package/src/lib/version.ts +1 -1
|
@@ -3,402 +3,1086 @@
|
|
|
3
3
|
* Do not edit this file.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Represents a smart lock [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
8
|
+
*
|
|
9
|
+
* 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.
|
|
10
|
+
*
|
|
11
|
+
* Seam supports programming two types of access codes: [ongoing](https://docs.seam.co/low-level-apis/smart-locks/access-codes#ongoing-access-codes) and [time-bound](https://docs.seam.co/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.
|
|
12
|
+
*
|
|
13
|
+
* In addition, for certain devices, Seam also supports [offline access codes](https://docs.seam.co/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.
|
|
14
|
+
*
|
|
15
|
+
* For granting a person access to a space, [Access Grants](https://docs.seam.co/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.
|
|
16
|
+
*/
|
|
6
17
|
export type AccessCode = {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier for the access code.
|
|
20
|
+
*/
|
|
7
21
|
access_code_id: string
|
|
8
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Code used for access. Typically, a numeric or alphanumeric string.
|
|
25
|
+
*/
|
|
9
26
|
code: string | null
|
|
27
|
+
/**
|
|
28
|
+
* Unique identifier for a group of access codes that share the same code.
|
|
29
|
+
*/
|
|
10
30
|
common_code_key: string | null
|
|
31
|
+
/**
|
|
32
|
+
* Date and time at which the access code was created.
|
|
33
|
+
*/
|
|
11
34
|
created_at: string
|
|
12
35
|
|
|
36
|
+
/**
|
|
37
|
+
* Unique identifier for the device associated with the access code.
|
|
38
|
+
*/
|
|
13
39
|
device_id: string
|
|
14
40
|
|
|
41
|
+
/**
|
|
42
|
+
* Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices.
|
|
43
|
+
*/
|
|
15
44
|
dormakaba_oracode_metadata?:
|
|
16
45
|
| {
|
|
46
|
+
/**
|
|
47
|
+
* Indicates whether the stay can be cancelled via the Dormakaba Oracode API.
|
|
48
|
+
*/
|
|
17
49
|
is_cancellable?: boolean | undefined
|
|
50
|
+
/**
|
|
51
|
+
* Indicates whether early check-in is available for this stay.
|
|
52
|
+
*/
|
|
18
53
|
is_early_checkin_able?: boolean | undefined
|
|
54
|
+
/**
|
|
55
|
+
* Indicates whether the stay can be extended via the Dormakaba Oracode API.
|
|
56
|
+
*/
|
|
19
57
|
is_extendable?: boolean | undefined
|
|
58
|
+
/**
|
|
59
|
+
* Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached.
|
|
60
|
+
*/
|
|
20
61
|
is_overridable?: boolean | undefined
|
|
62
|
+
/**
|
|
63
|
+
* Dormakaba Oracode site name associated with this access code.
|
|
64
|
+
*/
|
|
21
65
|
site_name?: string | undefined
|
|
66
|
+
/**
|
|
67
|
+
* Dormakaba Oracode stay ID associated with this access code.
|
|
68
|
+
*/
|
|
22
69
|
stay_id?: number | undefined
|
|
70
|
+
/**
|
|
71
|
+
* Dormakaba Oracode user level ID associated with this access code.
|
|
72
|
+
*/
|
|
23
73
|
user_level_id?: string | undefined
|
|
74
|
+
/**
|
|
75
|
+
* Dormakaba Oracode user level name associated with this access code.
|
|
76
|
+
*/
|
|
24
77
|
user_level_name?: string | null | undefined
|
|
25
78
|
}
|
|
26
79
|
| null
|
|
27
80
|
| undefined
|
|
81
|
+
/**
|
|
82
|
+
* Date and time after which the time-bound access code becomes inactive.
|
|
83
|
+
*/
|
|
28
84
|
ends_at?: string | null | undefined
|
|
85
|
+
/**
|
|
86
|
+
* Errors associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
87
|
+
*/
|
|
29
88
|
errors: Array<
|
|
89
|
+
/**
|
|
90
|
+
* Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.
|
|
91
|
+
*/
|
|
30
92
|
| {
|
|
93
|
+
/**
|
|
94
|
+
* Date and time at which Seam created the error.
|
|
95
|
+
*/
|
|
31
96
|
created_at?: string | undefined
|
|
97
|
+
/**
|
|
98
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
99
|
+
*/
|
|
32
100
|
error_code: 'provider_issue'
|
|
33
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Indicates that this is an access code error.
|
|
104
|
+
*/
|
|
34
105
|
is_access_code_error: boolean
|
|
35
106
|
|
|
107
|
+
/**
|
|
108
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
109
|
+
*/
|
|
36
110
|
message: string
|
|
37
|
-
}
|
|
111
|
+
} /**
|
|
112
|
+
* Failed to set code on device.
|
|
113
|
+
*/
|
|
38
114
|
| {
|
|
115
|
+
/**
|
|
116
|
+
* Date and time at which Seam created the error.
|
|
117
|
+
*/
|
|
39
118
|
created_at?: string | undefined
|
|
119
|
+
/**
|
|
120
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
121
|
+
*/
|
|
40
122
|
error_code: 'failed_to_set_on_device'
|
|
41
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Indicates that this is an access code error.
|
|
126
|
+
*/
|
|
42
127
|
is_access_code_error: boolean
|
|
43
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
131
|
+
*/
|
|
44
132
|
message: string
|
|
45
|
-
}
|
|
133
|
+
} /**
|
|
134
|
+
* Failed to remove code from device.
|
|
135
|
+
*/
|
|
46
136
|
| {
|
|
137
|
+
/**
|
|
138
|
+
* Date and time at which Seam created the error.
|
|
139
|
+
*/
|
|
47
140
|
created_at?: string | undefined
|
|
141
|
+
/**
|
|
142
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
143
|
+
*/
|
|
48
144
|
error_code: 'failed_to_remove_from_device'
|
|
49
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Indicates that this is an access code error.
|
|
148
|
+
*/
|
|
50
149
|
is_access_code_error: boolean
|
|
51
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
153
|
+
*/
|
|
52
154
|
message: string
|
|
53
|
-
}
|
|
155
|
+
} /**
|
|
156
|
+
* Duplicate access code detected on device.
|
|
157
|
+
*/
|
|
54
158
|
| {
|
|
159
|
+
/**
|
|
160
|
+
* Date and time at which Seam created the error.
|
|
161
|
+
*/
|
|
55
162
|
created_at?: string | undefined
|
|
163
|
+
/**
|
|
164
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
165
|
+
*/
|
|
56
166
|
error_code: 'duplicate_code_on_device'
|
|
57
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Indicates that this is an access code error.
|
|
170
|
+
*/
|
|
58
171
|
is_access_code_error: boolean
|
|
59
172
|
|
|
173
|
+
/**
|
|
174
|
+
* ID of the managed access code that conflicts with this managed access code, when Seam can identify it.
|
|
175
|
+
*/
|
|
60
176
|
managed_access_code_id?: string | undefined
|
|
177
|
+
/**
|
|
178
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
179
|
+
*/
|
|
61
180
|
message: string
|
|
62
181
|
|
|
182
|
+
/**
|
|
183
|
+
* ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it.
|
|
184
|
+
*/
|
|
63
185
|
unmanaged_access_code_id?: string | undefined
|
|
64
|
-
}
|
|
186
|
+
} /**
|
|
187
|
+
* No space for access code on device.
|
|
188
|
+
*/
|
|
65
189
|
| {
|
|
190
|
+
/**
|
|
191
|
+
* Date and time at which Seam created the error.
|
|
192
|
+
*/
|
|
66
193
|
created_at?: string | undefined
|
|
194
|
+
/**
|
|
195
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
196
|
+
*/
|
|
67
197
|
error_code: 'no_space_for_access_code_on_device'
|
|
68
198
|
|
|
199
|
+
/**
|
|
200
|
+
* Indicates that this is an access code error.
|
|
201
|
+
*/
|
|
69
202
|
is_access_code_error: boolean
|
|
70
203
|
|
|
204
|
+
/**
|
|
205
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
206
|
+
*/
|
|
71
207
|
message: string
|
|
72
|
-
}
|
|
208
|
+
} /**
|
|
209
|
+
* Code was modified or removed externally after Seam successfully set it on the device. The external change conflicts with the state that Seam is trying to apply, so Seam will attempt to set the code on the device again.
|
|
210
|
+
*/
|
|
73
211
|
| {
|
|
212
|
+
/**
|
|
213
|
+
* 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.
|
|
214
|
+
*/
|
|
74
215
|
change_type?: 'modified' | 'removed' | undefined
|
|
216
|
+
/**
|
|
217
|
+
* Date and time at which Seam created the error.
|
|
218
|
+
*/
|
|
75
219
|
created_at?: string | undefined
|
|
220
|
+
/**
|
|
221
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
222
|
+
*/
|
|
76
223
|
error_code: 'conflicting_external_modification'
|
|
77
224
|
|
|
225
|
+
/**
|
|
226
|
+
* Indicates that this is an access code error.
|
|
227
|
+
*/
|
|
78
228
|
is_access_code_error: boolean
|
|
79
229
|
|
|
230
|
+
/**
|
|
231
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
232
|
+
*/
|
|
80
233
|
message: string
|
|
81
234
|
|
|
235
|
+
/**
|
|
236
|
+
* List of fields that were changed externally, with their previous and new values.
|
|
237
|
+
*/
|
|
82
238
|
modified_fields?:
|
|
83
239
|
| Array<{
|
|
240
|
+
/**
|
|
241
|
+
* The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).
|
|
242
|
+
*/
|
|
84
243
|
field: string
|
|
85
244
|
|
|
245
|
+
/**
|
|
246
|
+
* The previous value of the field.
|
|
247
|
+
*/
|
|
86
248
|
from: string | null
|
|
249
|
+
/**
|
|
250
|
+
* The new value of the field.
|
|
251
|
+
*/
|
|
87
252
|
to: string | null
|
|
88
253
|
}>
|
|
89
254
|
| undefined
|
|
90
|
-
}
|
|
255
|
+
} /**
|
|
256
|
+
* Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.
|
|
257
|
+
*/
|
|
91
258
|
| {
|
|
259
|
+
/**
|
|
260
|
+
* Date and time at which Seam created the error.
|
|
261
|
+
*/
|
|
92
262
|
created_at?: string | undefined
|
|
263
|
+
/**
|
|
264
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
265
|
+
*/
|
|
93
266
|
error_code: 'access_code_inactive'
|
|
94
267
|
|
|
268
|
+
/**
|
|
269
|
+
* Indicates that this is an access code error.
|
|
270
|
+
*/
|
|
95
271
|
is_access_code_error: boolean
|
|
96
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
275
|
+
*/
|
|
97
276
|
message: string
|
|
98
|
-
}
|
|
277
|
+
} /**
|
|
278
|
+
* Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.
|
|
279
|
+
*/
|
|
99
280
|
| {
|
|
281
|
+
/**
|
|
282
|
+
* Date and time at which Seam created the error.
|
|
283
|
+
*/
|
|
100
284
|
created_at?: string | undefined
|
|
285
|
+
/**
|
|
286
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
287
|
+
*/
|
|
101
288
|
error_code: 'insufficient_permissions'
|
|
102
289
|
|
|
290
|
+
/**
|
|
291
|
+
* Indicates that this is an access code error.
|
|
292
|
+
*/
|
|
103
293
|
is_access_code_error: boolean
|
|
104
294
|
|
|
295
|
+
/**
|
|
296
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
297
|
+
*/
|
|
105
298
|
message: string
|
|
106
|
-
}
|
|
299
|
+
} /**
|
|
300
|
+
* Indicates that the account is disconnected.
|
|
301
|
+
*/
|
|
107
302
|
| {
|
|
303
|
+
/**
|
|
304
|
+
* Date and time at which Seam created the error.
|
|
305
|
+
*/
|
|
108
306
|
created_at: string
|
|
109
307
|
|
|
308
|
+
/**
|
|
309
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
310
|
+
*/
|
|
110
311
|
error_code: 'account_disconnected'
|
|
111
312
|
|
|
313
|
+
/**
|
|
314
|
+
* Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
|
|
315
|
+
*/
|
|
112
316
|
is_connected_account_error: boolean
|
|
113
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Indicates that the error is not a device error.
|
|
320
|
+
*/
|
|
114
321
|
is_device_error: boolean
|
|
115
322
|
|
|
323
|
+
/**
|
|
324
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
325
|
+
*/
|
|
116
326
|
message: string
|
|
117
|
-
}
|
|
327
|
+
} /**
|
|
328
|
+
* Indicates that the Salto site user limit has been reached.
|
|
329
|
+
*/
|
|
118
330
|
| {
|
|
331
|
+
/**
|
|
332
|
+
* Date and time at which Seam created the error.
|
|
333
|
+
*/
|
|
119
334
|
created_at: string
|
|
120
335
|
|
|
336
|
+
/**
|
|
337
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
338
|
+
*/
|
|
121
339
|
error_code: 'salto_ks_subscription_limit_exceeded'
|
|
122
340
|
|
|
341
|
+
/**
|
|
342
|
+
* Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
|
|
343
|
+
*/
|
|
123
344
|
is_connected_account_error: boolean
|
|
124
345
|
|
|
346
|
+
/**
|
|
347
|
+
* Indicates that the error is not a device error.
|
|
348
|
+
*/
|
|
125
349
|
is_device_error: boolean
|
|
126
350
|
|
|
351
|
+
/**
|
|
352
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
353
|
+
*/
|
|
127
354
|
message: string
|
|
128
|
-
}
|
|
355
|
+
} /**
|
|
356
|
+
* Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
|
|
357
|
+
*/
|
|
129
358
|
| {
|
|
359
|
+
/**
|
|
360
|
+
* Date and time at which Seam created the error.
|
|
361
|
+
*/
|
|
130
362
|
created_at: string
|
|
131
363
|
|
|
364
|
+
/**
|
|
365
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
366
|
+
*/
|
|
132
367
|
error_code: 'dormakaba_sites_disconnected'
|
|
133
368
|
|
|
369
|
+
/**
|
|
370
|
+
* Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
|
|
371
|
+
*/
|
|
134
372
|
is_connected_account_error: boolean
|
|
135
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Indicates that the error is not a device error.
|
|
376
|
+
*/
|
|
136
377
|
is_device_error: boolean
|
|
137
378
|
|
|
379
|
+
/**
|
|
380
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
381
|
+
*/
|
|
138
382
|
message: string
|
|
139
|
-
}
|
|
383
|
+
} /**
|
|
384
|
+
* Indicates that the device is offline.
|
|
385
|
+
*/
|
|
140
386
|
| {
|
|
387
|
+
/**
|
|
388
|
+
* Date and time at which Seam created the error.
|
|
389
|
+
*/
|
|
141
390
|
created_at: string
|
|
142
391
|
|
|
392
|
+
/**
|
|
393
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
394
|
+
*/
|
|
143
395
|
error_code: 'device_offline'
|
|
144
396
|
|
|
397
|
+
/**
|
|
398
|
+
* Indicates that the error is a device error.
|
|
399
|
+
*/
|
|
145
400
|
is_device_error: boolean
|
|
146
401
|
|
|
402
|
+
/**
|
|
403
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
404
|
+
*/
|
|
147
405
|
message: string
|
|
148
|
-
}
|
|
406
|
+
} /**
|
|
407
|
+
* Indicates that the device has been removed.
|
|
408
|
+
*/
|
|
149
409
|
| {
|
|
410
|
+
/**
|
|
411
|
+
* Date and time at which Seam created the error.
|
|
412
|
+
*/
|
|
150
413
|
created_at: string
|
|
151
414
|
|
|
415
|
+
/**
|
|
416
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
417
|
+
*/
|
|
152
418
|
error_code: 'device_removed'
|
|
153
419
|
|
|
420
|
+
/**
|
|
421
|
+
* Indicates that the error is a device error.
|
|
422
|
+
*/
|
|
154
423
|
is_device_error: boolean
|
|
155
424
|
|
|
425
|
+
/**
|
|
426
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
427
|
+
*/
|
|
156
428
|
message: string
|
|
157
|
-
}
|
|
429
|
+
} /**
|
|
430
|
+
* Indicates that the hub is disconnected.
|
|
431
|
+
*/
|
|
158
432
|
| {
|
|
433
|
+
/**
|
|
434
|
+
* Date and time at which Seam created the error.
|
|
435
|
+
*/
|
|
159
436
|
created_at: string
|
|
160
437
|
|
|
438
|
+
/**
|
|
439
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
440
|
+
*/
|
|
161
441
|
error_code: 'hub_disconnected'
|
|
162
442
|
|
|
443
|
+
/**
|
|
444
|
+
* Indicates that the error is a device error.
|
|
445
|
+
*/
|
|
163
446
|
is_device_error: boolean
|
|
164
447
|
|
|
448
|
+
/**
|
|
449
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
450
|
+
*/
|
|
165
451
|
message: string
|
|
166
|
-
}
|
|
452
|
+
} /**
|
|
453
|
+
* Indicates that the device is disconnected.
|
|
454
|
+
*/
|
|
167
455
|
| {
|
|
456
|
+
/**
|
|
457
|
+
* Date and time at which Seam created the error.
|
|
458
|
+
*/
|
|
168
459
|
created_at: string
|
|
169
460
|
|
|
461
|
+
/**
|
|
462
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
463
|
+
*/
|
|
170
464
|
error_code: 'device_disconnected'
|
|
171
465
|
|
|
466
|
+
/**
|
|
467
|
+
* Indicates that the error is a device error.
|
|
468
|
+
*/
|
|
172
469
|
is_device_error: boolean
|
|
173
470
|
|
|
471
|
+
/**
|
|
472
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
473
|
+
*/
|
|
174
474
|
message: string
|
|
175
|
-
}
|
|
475
|
+
} /**
|
|
476
|
+
* Indicates that the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.
|
|
477
|
+
*/
|
|
176
478
|
| {
|
|
479
|
+
/**
|
|
480
|
+
* Date and time at which Seam created the error.
|
|
481
|
+
*/
|
|
177
482
|
created_at: string
|
|
178
483
|
|
|
484
|
+
/**
|
|
485
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
486
|
+
*/
|
|
179
487
|
error_code: 'empty_backup_access_code_pool'
|
|
180
488
|
|
|
489
|
+
/**
|
|
490
|
+
* Indicates that the error is a device error.
|
|
491
|
+
*/
|
|
181
492
|
is_device_error: boolean
|
|
182
493
|
|
|
494
|
+
/**
|
|
495
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
496
|
+
*/
|
|
183
497
|
message: string
|
|
184
|
-
}
|
|
498
|
+
} /**
|
|
499
|
+
* Indicates that the user is not authorized to use the August lock.
|
|
500
|
+
*/
|
|
185
501
|
| {
|
|
502
|
+
/**
|
|
503
|
+
* Date and time at which Seam created the error.
|
|
504
|
+
*/
|
|
186
505
|
created_at: string
|
|
187
506
|
|
|
507
|
+
/**
|
|
508
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
509
|
+
*/
|
|
188
510
|
error_code: 'august_lock_not_authorized'
|
|
189
511
|
|
|
512
|
+
/**
|
|
513
|
+
* Indicates that the error is a device error.
|
|
514
|
+
*/
|
|
190
515
|
is_device_error: boolean
|
|
191
516
|
|
|
517
|
+
/**
|
|
518
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
519
|
+
*/
|
|
192
520
|
message: string
|
|
193
|
-
}
|
|
521
|
+
} /**
|
|
522
|
+
* Indicates that device credentials are missing.
|
|
523
|
+
*/
|
|
194
524
|
| {
|
|
525
|
+
/**
|
|
526
|
+
* Date and time at which Seam created the error.
|
|
527
|
+
*/
|
|
195
528
|
created_at: string
|
|
196
529
|
|
|
530
|
+
/**
|
|
531
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
532
|
+
*/
|
|
197
533
|
error_code: 'missing_device_credentials'
|
|
198
534
|
|
|
535
|
+
/**
|
|
536
|
+
* Indicates that the error is a device error.
|
|
537
|
+
*/
|
|
199
538
|
is_device_error: boolean
|
|
200
539
|
|
|
540
|
+
/**
|
|
541
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
542
|
+
*/
|
|
201
543
|
message: string
|
|
202
|
-
}
|
|
544
|
+
} /**
|
|
545
|
+
* Indicates that the auxiliary heat is running.
|
|
546
|
+
*/
|
|
203
547
|
| {
|
|
548
|
+
/**
|
|
549
|
+
* Date and time at which Seam created the error.
|
|
550
|
+
*/
|
|
204
551
|
created_at: string
|
|
205
552
|
|
|
553
|
+
/**
|
|
554
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
555
|
+
*/
|
|
206
556
|
error_code: 'auxiliary_heat_running'
|
|
207
557
|
|
|
558
|
+
/**
|
|
559
|
+
* Indicates that the error is a device error.
|
|
560
|
+
*/
|
|
208
561
|
is_device_error: boolean
|
|
209
562
|
|
|
563
|
+
/**
|
|
564
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
565
|
+
*/
|
|
210
566
|
message: string
|
|
211
|
-
}
|
|
567
|
+
} /**
|
|
568
|
+
* Indicates that a subscription is required to connect.
|
|
569
|
+
*/
|
|
212
570
|
| {
|
|
571
|
+
/**
|
|
572
|
+
* Date and time at which Seam created the error.
|
|
573
|
+
*/
|
|
213
574
|
created_at: string
|
|
214
575
|
|
|
576
|
+
/**
|
|
577
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
578
|
+
*/
|
|
215
579
|
error_code: 'subscription_required'
|
|
216
580
|
|
|
581
|
+
/**
|
|
582
|
+
* Indicates that the error is a device error.
|
|
583
|
+
*/
|
|
217
584
|
is_device_error: boolean
|
|
218
585
|
|
|
586
|
+
/**
|
|
587
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
588
|
+
*/
|
|
219
589
|
message: string
|
|
220
|
-
}
|
|
590
|
+
} /**
|
|
591
|
+
* Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/low-level-apis/access-systems/troubleshooting-your-access-control-system#acs_system-errors-seam_bridge_disconnected).
|
|
592
|
+
*/
|
|
221
593
|
| {
|
|
594
|
+
/**
|
|
595
|
+
* Date and time at which Seam created the error.
|
|
596
|
+
*/
|
|
222
597
|
created_at: string
|
|
223
598
|
|
|
599
|
+
/**
|
|
600
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
601
|
+
*/
|
|
224
602
|
error_code: 'bridge_disconnected'
|
|
225
603
|
|
|
604
|
+
/**
|
|
605
|
+
* Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
606
|
+
*/
|
|
226
607
|
is_bridge_error?: boolean | undefined
|
|
608
|
+
/**
|
|
609
|
+
* Indicates whether the error is related specifically to the connected account.
|
|
610
|
+
*/
|
|
227
611
|
is_connected_account_error?: boolean | undefined
|
|
612
|
+
/**
|
|
613
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
614
|
+
*/
|
|
228
615
|
message: string
|
|
229
616
|
}
|
|
230
617
|
>
|
|
231
618
|
|
|
619
|
+
/**
|
|
620
|
+
* Indicates whether the access code is a backup code.
|
|
621
|
+
*/
|
|
232
622
|
is_backup?: boolean | undefined
|
|
623
|
+
/**
|
|
624
|
+
* Indicates whether a backup access code is available for use if the primary access code is lost or compromised.
|
|
625
|
+
*/
|
|
233
626
|
is_backup_access_code_available: boolean
|
|
234
627
|
|
|
628
|
+
/**
|
|
629
|
+
* Indicates whether changes to the access code from external sources are permitted.
|
|
630
|
+
*/
|
|
235
631
|
is_external_modification_allowed: boolean
|
|
236
632
|
|
|
633
|
+
/**
|
|
634
|
+
* Indicates whether Seam manages the access code.
|
|
635
|
+
*/
|
|
237
636
|
is_managed: boolean
|
|
238
637
|
|
|
638
|
+
/**
|
|
639
|
+
* 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.
|
|
640
|
+
*/
|
|
239
641
|
is_offline_access_code: boolean
|
|
240
642
|
|
|
643
|
+
/**
|
|
644
|
+
* Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use.
|
|
645
|
+
*/
|
|
241
646
|
is_one_time_use: boolean
|
|
242
647
|
|
|
648
|
+
/**
|
|
649
|
+
* Indicates whether the code is set on the device according to a preconfigured schedule.
|
|
650
|
+
*/
|
|
243
651
|
is_scheduled_on_device?: boolean | undefined
|
|
652
|
+
/**
|
|
653
|
+
* Indicates whether the access code is waiting for a code assignment.
|
|
654
|
+
*/
|
|
244
655
|
is_waiting_for_code_assignment?: boolean | undefined
|
|
656
|
+
/**
|
|
657
|
+
* 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).
|
|
658
|
+
*/
|
|
245
659
|
name: string | null
|
|
660
|
+
/**
|
|
661
|
+
* Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device.
|
|
662
|
+
*/
|
|
246
663
|
pending_mutations: Array<
|
|
664
|
+
/**
|
|
665
|
+
* Seam is in the process of setting an access code on the device.
|
|
666
|
+
*/
|
|
247
667
|
| {
|
|
668
|
+
/**
|
|
669
|
+
* Date and time at which the mutation was created.
|
|
670
|
+
*/
|
|
248
671
|
created_at: string
|
|
249
672
|
|
|
673
|
+
/**
|
|
674
|
+
* Detailed description of the mutation.
|
|
675
|
+
*/
|
|
250
676
|
message: string
|
|
251
677
|
|
|
678
|
+
/**
|
|
679
|
+
* Mutation code to indicate that Seam is in the process of setting an access code on the device.
|
|
680
|
+
*/
|
|
252
681
|
mutation_code: 'creating'
|
|
253
|
-
}
|
|
682
|
+
} /**
|
|
683
|
+
* Seam is waiting until closer to the access code's start time before programming it on the device.
|
|
684
|
+
*/
|
|
254
685
|
| {
|
|
686
|
+
/**
|
|
687
|
+
* Date and time at which the mutation was created.
|
|
688
|
+
*/
|
|
255
689
|
created_at: string
|
|
256
690
|
|
|
691
|
+
/**
|
|
692
|
+
* Detailed description of the mutation.
|
|
693
|
+
*/
|
|
257
694
|
message: string
|
|
258
695
|
|
|
696
|
+
/**
|
|
697
|
+
* Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device.
|
|
698
|
+
*/
|
|
259
699
|
mutation_code: 'deferring_creation'
|
|
260
700
|
|
|
701
|
+
/**
|
|
702
|
+
* Date and time at which Seam will attempt to program this access code on the device.
|
|
703
|
+
*/
|
|
261
704
|
scheduled_at: string
|
|
262
|
-
}
|
|
705
|
+
} /**
|
|
706
|
+
* Seam is in the process of removing an access code from the device.
|
|
707
|
+
*/
|
|
263
708
|
| {
|
|
709
|
+
/**
|
|
710
|
+
* Date and time at which the mutation was created.
|
|
711
|
+
*/
|
|
264
712
|
created_at: string
|
|
265
713
|
|
|
714
|
+
/**
|
|
715
|
+
* Detailed description of the mutation.
|
|
716
|
+
*/
|
|
266
717
|
message: string
|
|
267
718
|
|
|
719
|
+
/**
|
|
720
|
+
* Mutation code to indicate that Seam is in the process of removing an access code from the device.
|
|
721
|
+
*/
|
|
268
722
|
mutation_code: 'deleting'
|
|
269
|
-
}
|
|
723
|
+
} /**
|
|
724
|
+
* Seam is in the process of pushing an updated PIN code to the device.
|
|
725
|
+
*/
|
|
270
726
|
| {
|
|
727
|
+
/**
|
|
728
|
+
* Date and time at which the mutation was created.
|
|
729
|
+
*/
|
|
271
730
|
created_at: string
|
|
272
731
|
|
|
732
|
+
/**
|
|
733
|
+
* Previous code configuration.
|
|
734
|
+
*/
|
|
273
735
|
from: {
|
|
736
|
+
/**
|
|
737
|
+
* Previous PIN code.
|
|
738
|
+
*/
|
|
274
739
|
code: string | null
|
|
275
740
|
}
|
|
276
741
|
|
|
742
|
+
/**
|
|
743
|
+
* Detailed description of the mutation.
|
|
744
|
+
*/
|
|
277
745
|
message: string
|
|
278
746
|
|
|
747
|
+
/**
|
|
748
|
+
* Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device.
|
|
749
|
+
*/
|
|
279
750
|
mutation_code: 'updating_code'
|
|
280
751
|
|
|
752
|
+
/**
|
|
753
|
+
* New code configuration.
|
|
754
|
+
*/
|
|
281
755
|
to: {
|
|
756
|
+
/**
|
|
757
|
+
* New PIN code.
|
|
758
|
+
*/
|
|
282
759
|
code: string | null
|
|
283
760
|
}
|
|
284
|
-
}
|
|
761
|
+
} /**
|
|
762
|
+
* Seam is in the process of pushing an updated access code name to the device.
|
|
763
|
+
*/
|
|
285
764
|
| {
|
|
765
|
+
/**
|
|
766
|
+
* Date and time at which the mutation was created.
|
|
767
|
+
*/
|
|
286
768
|
created_at: string
|
|
287
769
|
|
|
770
|
+
/**
|
|
771
|
+
* Previous name configuration.
|
|
772
|
+
*/
|
|
288
773
|
from: {
|
|
774
|
+
/**
|
|
775
|
+
* Previous access code name.
|
|
776
|
+
*/
|
|
289
777
|
name: string | null
|
|
290
778
|
}
|
|
291
779
|
|
|
780
|
+
/**
|
|
781
|
+
* Detailed description of the mutation.
|
|
782
|
+
*/
|
|
292
783
|
message: string
|
|
293
784
|
|
|
785
|
+
/**
|
|
786
|
+
* Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device.
|
|
787
|
+
*/
|
|
294
788
|
mutation_code: 'updating_name'
|
|
295
789
|
|
|
790
|
+
/**
|
|
791
|
+
* New name configuration.
|
|
792
|
+
*/
|
|
296
793
|
to: {
|
|
794
|
+
/**
|
|
795
|
+
* New access code name.
|
|
796
|
+
*/
|
|
297
797
|
name: string | null
|
|
298
798
|
}
|
|
299
|
-
}
|
|
799
|
+
} /**
|
|
800
|
+
* Seam is in the process of pushing an updated time frame to the device.
|
|
801
|
+
*/
|
|
300
802
|
| {
|
|
803
|
+
/**
|
|
804
|
+
* Date and time at which the mutation was created.
|
|
805
|
+
*/
|
|
301
806
|
created_at: string
|
|
302
807
|
|
|
808
|
+
/**
|
|
809
|
+
* Previous time frame configuration.
|
|
810
|
+
*/
|
|
303
811
|
from: {
|
|
812
|
+
/**
|
|
813
|
+
* Previous end time for the access code.
|
|
814
|
+
*/
|
|
304
815
|
ends_at: string | null
|
|
816
|
+
/**
|
|
817
|
+
* Previous start time for the access code.
|
|
818
|
+
*/
|
|
305
819
|
starts_at: string | null
|
|
306
820
|
}
|
|
307
821
|
|
|
822
|
+
/**
|
|
823
|
+
* Detailed description of the mutation.
|
|
824
|
+
*/
|
|
308
825
|
message: string
|
|
309
826
|
|
|
827
|
+
/**
|
|
828
|
+
* Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device.
|
|
829
|
+
*/
|
|
310
830
|
mutation_code: 'updating_time_frame'
|
|
311
831
|
|
|
832
|
+
/**
|
|
833
|
+
* New time frame configuration.
|
|
834
|
+
*/
|
|
312
835
|
to: {
|
|
836
|
+
/**
|
|
837
|
+
* New end time for the access code.
|
|
838
|
+
*/
|
|
313
839
|
ends_at: string | null
|
|
840
|
+
/**
|
|
841
|
+
* New start time for the access code.
|
|
842
|
+
*/
|
|
314
843
|
starts_at: string | null
|
|
315
844
|
}
|
|
316
845
|
}
|
|
317
846
|
>
|
|
318
847
|
|
|
848
|
+
/**
|
|
849
|
+
* Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code.
|
|
850
|
+
*/
|
|
319
851
|
pulled_backup_access_code_id?: string | null | undefined
|
|
852
|
+
/**
|
|
853
|
+
* Date and time at which the time-bound access code becomes active.
|
|
854
|
+
*/
|
|
320
855
|
starts_at?: string | null | undefined
|
|
856
|
+
/**
|
|
857
|
+
* 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://docs.seam.co/low-level-apis/smart-locks/access-codes/lifecycle-of-access-codes).
|
|
858
|
+
*/
|
|
321
859
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown'
|
|
322
860
|
|
|
861
|
+
/**
|
|
862
|
+
* Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration.
|
|
863
|
+
*/
|
|
323
864
|
type: 'time_bound' | 'ongoing'
|
|
324
865
|
|
|
866
|
+
/**
|
|
867
|
+
* Warnings associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
868
|
+
*/
|
|
325
869
|
warnings: Array<
|
|
870
|
+
/**
|
|
871
|
+
* The access code's PIN rotates periodically when the code is renewed. Retrieve the latest code before each use.
|
|
872
|
+
*/
|
|
326
873
|
| {
|
|
874
|
+
/**
|
|
875
|
+
* Date and time at which Seam created the warning.
|
|
876
|
+
*/
|
|
327
877
|
created_at?: string | undefined
|
|
878
|
+
/**
|
|
879
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
880
|
+
*/
|
|
328
881
|
message: string
|
|
329
882
|
|
|
883
|
+
/**
|
|
884
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
885
|
+
*/
|
|
330
886
|
warning_code: 'code_rotates_periodically'
|
|
331
|
-
}
|
|
887
|
+
} /**
|
|
888
|
+
* The device's time zone is unknown and this code's time frame crosses a daylight-saving transition in at least one plausible time zone. A 1-hour safety buffer has been applied to the side of the time frame affected by the transition (`ends_at` for spring-forward, `starts_at` for fall-back) so the code stays active through the shift — the code may be usable up to 1 hour beyond your requested window. Set the device's time zone via `/devices/report_provider_metadata` to clear the buffer and guarantee exact handling.
|
|
889
|
+
*/
|
|
332
890
|
| {
|
|
891
|
+
/**
|
|
892
|
+
* Date and time at which Seam created the warning.
|
|
893
|
+
*/
|
|
333
894
|
created_at?: string | undefined
|
|
895
|
+
/**
|
|
896
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
897
|
+
*/
|
|
334
898
|
message: string
|
|
335
899
|
|
|
900
|
+
/**
|
|
901
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
902
|
+
*/
|
|
336
903
|
warning_code: 'time_frame_adjusted_for_unknown_time_zone'
|
|
337
|
-
}
|
|
904
|
+
} /**
|
|
905
|
+
* Code was modified or removed externally after Seam successfully set it on the device. External modification is allowed for this code, so the externally modified state is being honored.
|
|
906
|
+
*/
|
|
338
907
|
| {
|
|
908
|
+
/**
|
|
909
|
+
* 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.
|
|
910
|
+
*/
|
|
339
911
|
change_type?: 'modified' | 'removed' | undefined
|
|
912
|
+
/**
|
|
913
|
+
* Date and time at which Seam created the warning.
|
|
914
|
+
*/
|
|
340
915
|
created_at?: string | undefined
|
|
916
|
+
/**
|
|
917
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
918
|
+
*/
|
|
341
919
|
message: string
|
|
342
920
|
|
|
921
|
+
/**
|
|
922
|
+
* List of fields that were changed externally, with their previous and new values.
|
|
923
|
+
*/
|
|
343
924
|
modified_fields?:
|
|
344
925
|
| Array<{
|
|
926
|
+
/**
|
|
927
|
+
* The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).
|
|
928
|
+
*/
|
|
345
929
|
field: string
|
|
346
930
|
|
|
931
|
+
/**
|
|
932
|
+
* The previous value of the field.
|
|
933
|
+
*/
|
|
347
934
|
from: string | null
|
|
935
|
+
/**
|
|
936
|
+
* The new value of the field.
|
|
937
|
+
*/
|
|
348
938
|
to: string | null
|
|
349
939
|
}>
|
|
350
940
|
| undefined
|
|
941
|
+
/**
|
|
942
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
943
|
+
*/
|
|
351
944
|
warning_code: 'external_modification_in_effect'
|
|
352
|
-
}
|
|
945
|
+
} /**
|
|
946
|
+
* Delay in setting code on device.
|
|
947
|
+
*/
|
|
353
948
|
| {
|
|
949
|
+
/**
|
|
950
|
+
* Date and time at which Seam created the warning.
|
|
951
|
+
*/
|
|
354
952
|
created_at?: string | undefined
|
|
953
|
+
/**
|
|
954
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
955
|
+
*/
|
|
355
956
|
message: string
|
|
356
957
|
|
|
958
|
+
/**
|
|
959
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
960
|
+
*/
|
|
357
961
|
warning_code: 'delay_in_setting_on_device'
|
|
358
|
-
}
|
|
962
|
+
} /**
|
|
963
|
+
* Delay in removing code from device.
|
|
964
|
+
*/
|
|
359
965
|
| {
|
|
966
|
+
/**
|
|
967
|
+
* Date and time at which Seam created the warning.
|
|
968
|
+
*/
|
|
360
969
|
created_at?: string | undefined
|
|
970
|
+
/**
|
|
971
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
972
|
+
*/
|
|
361
973
|
message: string
|
|
362
974
|
|
|
975
|
+
/**
|
|
976
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
977
|
+
*/
|
|
363
978
|
warning_code: 'delay_in_removing_from_device'
|
|
364
|
-
}
|
|
979
|
+
} /**
|
|
980
|
+
* Third-party integration detected that may cause access codes to fail.
|
|
981
|
+
*/
|
|
365
982
|
| {
|
|
983
|
+
/**
|
|
984
|
+
* Date and time at which Seam created the warning.
|
|
985
|
+
*/
|
|
366
986
|
created_at?: string | undefined
|
|
987
|
+
/**
|
|
988
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
989
|
+
*/
|
|
367
990
|
message: string
|
|
368
991
|
|
|
992
|
+
/**
|
|
993
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
994
|
+
*/
|
|
369
995
|
warning_code: 'third_party_integration_detected'
|
|
370
|
-
}
|
|
996
|
+
} /**
|
|
997
|
+
* Algopins must be used within 24 hours.
|
|
998
|
+
*/
|
|
371
999
|
| {
|
|
1000
|
+
/**
|
|
1001
|
+
* Date and time at which Seam created the warning.
|
|
1002
|
+
*/
|
|
372
1003
|
created_at?: string | undefined
|
|
1004
|
+
/**
|
|
1005
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
1006
|
+
*/
|
|
373
1007
|
message: string
|
|
374
1008
|
|
|
1009
|
+
/**
|
|
1010
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
1011
|
+
*/
|
|
375
1012
|
warning_code: 'igloo_algopin_must_be_used_within_24_hours'
|
|
376
|
-
}
|
|
1013
|
+
} /**
|
|
1014
|
+
* Management was transferred to another workspace.
|
|
1015
|
+
*/
|
|
377
1016
|
| {
|
|
1017
|
+
/**
|
|
1018
|
+
* Date and time at which Seam created the warning.
|
|
1019
|
+
*/
|
|
378
1020
|
created_at?: string | undefined
|
|
1021
|
+
/**
|
|
1022
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
1023
|
+
*/
|
|
379
1024
|
message: string
|
|
380
1025
|
|
|
1026
|
+
/**
|
|
1027
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
1028
|
+
*/
|
|
381
1029
|
warning_code: 'management_transferred'
|
|
382
|
-
}
|
|
1030
|
+
} /**
|
|
1031
|
+
* A backup access code has been pulled and is being used in place of this access code.
|
|
1032
|
+
*/
|
|
383
1033
|
| {
|
|
1034
|
+
/**
|
|
1035
|
+
* Date and time at which Seam created the warning.
|
|
1036
|
+
*/
|
|
384
1037
|
created_at?: string | undefined
|
|
1038
|
+
/**
|
|
1039
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
1040
|
+
*/
|
|
385
1041
|
message: string
|
|
386
1042
|
|
|
1043
|
+
/**
|
|
1044
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
1045
|
+
*/
|
|
387
1046
|
warning_code: 'using_backup_access_code'
|
|
388
|
-
}
|
|
1047
|
+
} /**
|
|
1048
|
+
* Access code is being deleted.
|
|
1049
|
+
*/
|
|
389
1050
|
| {
|
|
1051
|
+
/**
|
|
1052
|
+
* Date and time at which Seam created the warning.
|
|
1053
|
+
*/
|
|
390
1054
|
created_at?: string | undefined
|
|
1055
|
+
/**
|
|
1056
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
1057
|
+
*/
|
|
391
1058
|
message: string
|
|
392
1059
|
|
|
1060
|
+
/**
|
|
1061
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
1062
|
+
*/
|
|
393
1063
|
warning_code: 'being_deleted'
|
|
394
|
-
}
|
|
1064
|
+
} /**
|
|
1065
|
+
* An unknown issue occurred with the access code.
|
|
1066
|
+
*/
|
|
395
1067
|
| {
|
|
1068
|
+
/**
|
|
1069
|
+
* Date and time at which Seam created the warning.
|
|
1070
|
+
*/
|
|
396
1071
|
created_at?: string | undefined
|
|
1072
|
+
/**
|
|
1073
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
1074
|
+
*/
|
|
397
1075
|
message: string
|
|
398
1076
|
|
|
1077
|
+
/**
|
|
1078
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
1079
|
+
*/
|
|
399
1080
|
warning_code: 'unknown_issue_with_access_code'
|
|
400
1081
|
}
|
|
401
1082
|
>
|
|
402
1083
|
|
|
1084
|
+
/**
|
|
1085
|
+
* Unique identifier for the Seam workspace associated with the access code.
|
|
1086
|
+
*/
|
|
403
1087
|
workspace_id: string
|
|
404
1088
|
}
|