@seamapi/http 2.1.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/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 -1
- 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
|
@@ -1,247 +1,934 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a smart lock [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
3
|
+
*
|
|
4
|
+
* 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.
|
|
5
|
+
*
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* 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.
|
|
9
|
+
*
|
|
10
|
+
* 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.
|
|
11
|
+
*/
|
|
1
12
|
export type AccessCode = {
|
|
13
|
+
/**
|
|
14
|
+
* Unique identifier for the access code.
|
|
15
|
+
*/
|
|
2
16
|
access_code_id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Code used for access. Typically, a numeric or alphanumeric string.
|
|
19
|
+
*/
|
|
3
20
|
code: string | null;
|
|
21
|
+
/**
|
|
22
|
+
* Unique identifier for a group of access codes that share the same code.
|
|
23
|
+
*/
|
|
4
24
|
common_code_key: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Date and time at which the access code was created.
|
|
27
|
+
*/
|
|
5
28
|
created_at: string;
|
|
29
|
+
/**
|
|
30
|
+
* Unique identifier for the device associated with the access code.
|
|
31
|
+
*/
|
|
6
32
|
device_id: string;
|
|
33
|
+
/**
|
|
34
|
+
* Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices.
|
|
35
|
+
*/
|
|
7
36
|
dormakaba_oracode_metadata?: {
|
|
37
|
+
/**
|
|
38
|
+
* Indicates whether the stay can be cancelled via the Dormakaba Oracode API.
|
|
39
|
+
*/
|
|
8
40
|
is_cancellable?: boolean | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Indicates whether early check-in is available for this stay.
|
|
43
|
+
*/
|
|
9
44
|
is_early_checkin_able?: boolean | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Indicates whether the stay can be extended via the Dormakaba Oracode API.
|
|
47
|
+
*/
|
|
10
48
|
is_extendable?: boolean | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached.
|
|
51
|
+
*/
|
|
11
52
|
is_overridable?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Dormakaba Oracode site name associated with this access code.
|
|
55
|
+
*/
|
|
12
56
|
site_name?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Dormakaba Oracode stay ID associated with this access code.
|
|
59
|
+
*/
|
|
13
60
|
stay_id?: number | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Dormakaba Oracode user level ID associated with this access code.
|
|
63
|
+
*/
|
|
14
64
|
user_level_id?: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Dormakaba Oracode user level name associated with this access code.
|
|
67
|
+
*/
|
|
15
68
|
user_level_name?: string | null | undefined;
|
|
16
69
|
} | null | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Date and time after which the time-bound access code becomes inactive.
|
|
72
|
+
*/
|
|
17
73
|
ends_at?: string | null | undefined;
|
|
18
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Errors associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
76
|
+
*/
|
|
77
|
+
errors: Array<
|
|
78
|
+
/**
|
|
79
|
+
* Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.
|
|
80
|
+
*/
|
|
81
|
+
{
|
|
82
|
+
/**
|
|
83
|
+
* Date and time at which Seam created the error.
|
|
84
|
+
*/
|
|
19
85
|
created_at?: string | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
88
|
+
*/
|
|
20
89
|
error_code: 'provider_issue';
|
|
90
|
+
/**
|
|
91
|
+
* Indicates that this is an access code error.
|
|
92
|
+
*/
|
|
21
93
|
is_access_code_error: boolean;
|
|
22
|
-
|
|
23
|
-
|
|
94
|
+
/**
|
|
95
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
96
|
+
*/
|
|
97
|
+
message: string;
|
|
98
|
+
} /**
|
|
99
|
+
* Failed to set code on device.
|
|
100
|
+
*/ | {
|
|
101
|
+
/**
|
|
102
|
+
* Date and time at which Seam created the error.
|
|
103
|
+
*/
|
|
24
104
|
created_at?: string | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
107
|
+
*/
|
|
25
108
|
error_code: 'failed_to_set_on_device';
|
|
109
|
+
/**
|
|
110
|
+
* Indicates that this is an access code error.
|
|
111
|
+
*/
|
|
26
112
|
is_access_code_error: boolean;
|
|
27
|
-
|
|
28
|
-
|
|
113
|
+
/**
|
|
114
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
115
|
+
*/
|
|
116
|
+
message: string;
|
|
117
|
+
} /**
|
|
118
|
+
* Failed to remove code from device.
|
|
119
|
+
*/ | {
|
|
120
|
+
/**
|
|
121
|
+
* Date and time at which Seam created the error.
|
|
122
|
+
*/
|
|
29
123
|
created_at?: string | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
126
|
+
*/
|
|
30
127
|
error_code: 'failed_to_remove_from_device';
|
|
128
|
+
/**
|
|
129
|
+
* Indicates that this is an access code error.
|
|
130
|
+
*/
|
|
31
131
|
is_access_code_error: boolean;
|
|
32
|
-
|
|
33
|
-
|
|
132
|
+
/**
|
|
133
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
134
|
+
*/
|
|
135
|
+
message: string;
|
|
136
|
+
} /**
|
|
137
|
+
* Duplicate access code detected on device.
|
|
138
|
+
*/ | {
|
|
139
|
+
/**
|
|
140
|
+
* Date and time at which Seam created the error.
|
|
141
|
+
*/
|
|
34
142
|
created_at?: string | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
145
|
+
*/
|
|
35
146
|
error_code: 'duplicate_code_on_device';
|
|
147
|
+
/**
|
|
148
|
+
* Indicates that this is an access code error.
|
|
149
|
+
*/
|
|
36
150
|
is_access_code_error: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* ID of the managed access code that conflicts with this managed access code, when Seam can identify it.
|
|
153
|
+
*/
|
|
37
154
|
managed_access_code_id?: string | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
157
|
+
*/
|
|
38
158
|
message: string;
|
|
159
|
+
/**
|
|
160
|
+
* ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it.
|
|
161
|
+
*/
|
|
39
162
|
unmanaged_access_code_id?: string | undefined;
|
|
40
|
-
}
|
|
163
|
+
} /**
|
|
164
|
+
* No space for access code on device.
|
|
165
|
+
*/ | {
|
|
166
|
+
/**
|
|
167
|
+
* Date and time at which Seam created the error.
|
|
168
|
+
*/
|
|
41
169
|
created_at?: string | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
172
|
+
*/
|
|
42
173
|
error_code: 'no_space_for_access_code_on_device';
|
|
174
|
+
/**
|
|
175
|
+
* Indicates that this is an access code error.
|
|
176
|
+
*/
|
|
43
177
|
is_access_code_error: boolean;
|
|
44
|
-
|
|
45
|
-
|
|
178
|
+
/**
|
|
179
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
180
|
+
*/
|
|
181
|
+
message: string;
|
|
182
|
+
} /**
|
|
183
|
+
* 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.
|
|
184
|
+
*/ | {
|
|
185
|
+
/**
|
|
186
|
+
* 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.
|
|
187
|
+
*/
|
|
46
188
|
change_type?: 'modified' | 'removed' | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* Date and time at which Seam created the error.
|
|
191
|
+
*/
|
|
47
192
|
created_at?: string | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
195
|
+
*/
|
|
48
196
|
error_code: 'conflicting_external_modification';
|
|
197
|
+
/**
|
|
198
|
+
* Indicates that this is an access code error.
|
|
199
|
+
*/
|
|
49
200
|
is_access_code_error: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
203
|
+
*/
|
|
50
204
|
message: string;
|
|
205
|
+
/**
|
|
206
|
+
* List of fields that were changed externally, with their previous and new values.
|
|
207
|
+
*/
|
|
51
208
|
modified_fields?: Array<{
|
|
209
|
+
/**
|
|
210
|
+
* The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).
|
|
211
|
+
*/
|
|
52
212
|
field: string;
|
|
213
|
+
/**
|
|
214
|
+
* The previous value of the field.
|
|
215
|
+
*/
|
|
53
216
|
from: string | null;
|
|
217
|
+
/**
|
|
218
|
+
* The new value of the field.
|
|
219
|
+
*/
|
|
54
220
|
to: string | null;
|
|
55
221
|
}> | undefined;
|
|
56
|
-
}
|
|
222
|
+
} /**
|
|
223
|
+
* Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.
|
|
224
|
+
*/ | {
|
|
225
|
+
/**
|
|
226
|
+
* Date and time at which Seam created the error.
|
|
227
|
+
*/
|
|
57
228
|
created_at?: string | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
231
|
+
*/
|
|
58
232
|
error_code: 'access_code_inactive';
|
|
233
|
+
/**
|
|
234
|
+
* Indicates that this is an access code error.
|
|
235
|
+
*/
|
|
59
236
|
is_access_code_error: boolean;
|
|
60
|
-
|
|
61
|
-
|
|
237
|
+
/**
|
|
238
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
239
|
+
*/
|
|
240
|
+
message: string;
|
|
241
|
+
} /**
|
|
242
|
+
* 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.
|
|
243
|
+
*/ | {
|
|
244
|
+
/**
|
|
245
|
+
* Date and time at which Seam created the error.
|
|
246
|
+
*/
|
|
62
247
|
created_at?: string | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
250
|
+
*/
|
|
63
251
|
error_code: 'insufficient_permissions';
|
|
252
|
+
/**
|
|
253
|
+
* Indicates that this is an access code error.
|
|
254
|
+
*/
|
|
64
255
|
is_access_code_error: boolean;
|
|
65
|
-
|
|
66
|
-
|
|
256
|
+
/**
|
|
257
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
258
|
+
*/
|
|
259
|
+
message: string;
|
|
260
|
+
} /**
|
|
261
|
+
* Indicates that the account is disconnected.
|
|
262
|
+
*/ | {
|
|
263
|
+
/**
|
|
264
|
+
* Date and time at which Seam created the error.
|
|
265
|
+
*/
|
|
67
266
|
created_at: string;
|
|
267
|
+
/**
|
|
268
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
269
|
+
*/
|
|
68
270
|
error_code: 'account_disconnected';
|
|
271
|
+
/**
|
|
272
|
+
* Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
|
|
273
|
+
*/
|
|
69
274
|
is_connected_account_error: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Indicates that the error is not a device error.
|
|
277
|
+
*/
|
|
70
278
|
is_device_error: boolean;
|
|
71
|
-
|
|
72
|
-
|
|
279
|
+
/**
|
|
280
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
281
|
+
*/
|
|
282
|
+
message: string;
|
|
283
|
+
} /**
|
|
284
|
+
* Indicates that the Salto site user limit has been reached.
|
|
285
|
+
*/ | {
|
|
286
|
+
/**
|
|
287
|
+
* Date and time at which Seam created the error.
|
|
288
|
+
*/
|
|
73
289
|
created_at: string;
|
|
290
|
+
/**
|
|
291
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
292
|
+
*/
|
|
74
293
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
294
|
+
/**
|
|
295
|
+
* Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
|
|
296
|
+
*/
|
|
75
297
|
is_connected_account_error: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Indicates that the error is not a device error.
|
|
300
|
+
*/
|
|
76
301
|
is_device_error: boolean;
|
|
77
|
-
|
|
78
|
-
|
|
302
|
+
/**
|
|
303
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
304
|
+
*/
|
|
305
|
+
message: string;
|
|
306
|
+
} /**
|
|
307
|
+
* Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
|
|
308
|
+
*/ | {
|
|
309
|
+
/**
|
|
310
|
+
* Date and time at which Seam created the error.
|
|
311
|
+
*/
|
|
79
312
|
created_at: string;
|
|
313
|
+
/**
|
|
314
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
315
|
+
*/
|
|
80
316
|
error_code: 'dormakaba_sites_disconnected';
|
|
317
|
+
/**
|
|
318
|
+
* Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
|
|
319
|
+
*/
|
|
81
320
|
is_connected_account_error: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Indicates that the error is not a device error.
|
|
323
|
+
*/
|
|
82
324
|
is_device_error: boolean;
|
|
83
|
-
|
|
84
|
-
|
|
325
|
+
/**
|
|
326
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
327
|
+
*/
|
|
328
|
+
message: string;
|
|
329
|
+
} /**
|
|
330
|
+
* Indicates that the device is offline.
|
|
331
|
+
*/ | {
|
|
332
|
+
/**
|
|
333
|
+
* Date and time at which Seam created the error.
|
|
334
|
+
*/
|
|
85
335
|
created_at: string;
|
|
336
|
+
/**
|
|
337
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
338
|
+
*/
|
|
86
339
|
error_code: 'device_offline';
|
|
340
|
+
/**
|
|
341
|
+
* Indicates that the error is a device error.
|
|
342
|
+
*/
|
|
87
343
|
is_device_error: boolean;
|
|
88
|
-
|
|
89
|
-
|
|
344
|
+
/**
|
|
345
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
346
|
+
*/
|
|
347
|
+
message: string;
|
|
348
|
+
} /**
|
|
349
|
+
* Indicates that the device has been removed.
|
|
350
|
+
*/ | {
|
|
351
|
+
/**
|
|
352
|
+
* Date and time at which Seam created the error.
|
|
353
|
+
*/
|
|
90
354
|
created_at: string;
|
|
355
|
+
/**
|
|
356
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
357
|
+
*/
|
|
91
358
|
error_code: 'device_removed';
|
|
359
|
+
/**
|
|
360
|
+
* Indicates that the error is a device error.
|
|
361
|
+
*/
|
|
92
362
|
is_device_error: boolean;
|
|
93
|
-
|
|
94
|
-
|
|
363
|
+
/**
|
|
364
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
365
|
+
*/
|
|
366
|
+
message: string;
|
|
367
|
+
} /**
|
|
368
|
+
* Indicates that the hub is disconnected.
|
|
369
|
+
*/ | {
|
|
370
|
+
/**
|
|
371
|
+
* Date and time at which Seam created the error.
|
|
372
|
+
*/
|
|
95
373
|
created_at: string;
|
|
374
|
+
/**
|
|
375
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
376
|
+
*/
|
|
96
377
|
error_code: 'hub_disconnected';
|
|
378
|
+
/**
|
|
379
|
+
* Indicates that the error is a device error.
|
|
380
|
+
*/
|
|
97
381
|
is_device_error: boolean;
|
|
98
|
-
|
|
99
|
-
|
|
382
|
+
/**
|
|
383
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
384
|
+
*/
|
|
385
|
+
message: string;
|
|
386
|
+
} /**
|
|
387
|
+
* Indicates that the device is disconnected.
|
|
388
|
+
*/ | {
|
|
389
|
+
/**
|
|
390
|
+
* Date and time at which Seam created the error.
|
|
391
|
+
*/
|
|
100
392
|
created_at: string;
|
|
393
|
+
/**
|
|
394
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
395
|
+
*/
|
|
101
396
|
error_code: 'device_disconnected';
|
|
397
|
+
/**
|
|
398
|
+
* Indicates that the error is a device error.
|
|
399
|
+
*/
|
|
102
400
|
is_device_error: boolean;
|
|
103
|
-
|
|
104
|
-
|
|
401
|
+
/**
|
|
402
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
403
|
+
*/
|
|
404
|
+
message: string;
|
|
405
|
+
} /**
|
|
406
|
+
* Indicates that the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.
|
|
407
|
+
*/ | {
|
|
408
|
+
/**
|
|
409
|
+
* Date and time at which Seam created the error.
|
|
410
|
+
*/
|
|
105
411
|
created_at: string;
|
|
412
|
+
/**
|
|
413
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
414
|
+
*/
|
|
106
415
|
error_code: 'empty_backup_access_code_pool';
|
|
416
|
+
/**
|
|
417
|
+
* Indicates that the error is a device error.
|
|
418
|
+
*/
|
|
107
419
|
is_device_error: boolean;
|
|
108
|
-
|
|
109
|
-
|
|
420
|
+
/**
|
|
421
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
422
|
+
*/
|
|
423
|
+
message: string;
|
|
424
|
+
} /**
|
|
425
|
+
* Indicates that the user is not authorized to use the August lock.
|
|
426
|
+
*/ | {
|
|
427
|
+
/**
|
|
428
|
+
* Date and time at which Seam created the error.
|
|
429
|
+
*/
|
|
110
430
|
created_at: string;
|
|
431
|
+
/**
|
|
432
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
433
|
+
*/
|
|
111
434
|
error_code: 'august_lock_not_authorized';
|
|
435
|
+
/**
|
|
436
|
+
* Indicates that the error is a device error.
|
|
437
|
+
*/
|
|
112
438
|
is_device_error: boolean;
|
|
113
|
-
|
|
114
|
-
|
|
439
|
+
/**
|
|
440
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
441
|
+
*/
|
|
442
|
+
message: string;
|
|
443
|
+
} /**
|
|
444
|
+
* Indicates that device credentials are missing.
|
|
445
|
+
*/ | {
|
|
446
|
+
/**
|
|
447
|
+
* Date and time at which Seam created the error.
|
|
448
|
+
*/
|
|
115
449
|
created_at: string;
|
|
450
|
+
/**
|
|
451
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
452
|
+
*/
|
|
116
453
|
error_code: 'missing_device_credentials';
|
|
454
|
+
/**
|
|
455
|
+
* Indicates that the error is a device error.
|
|
456
|
+
*/
|
|
117
457
|
is_device_error: boolean;
|
|
118
|
-
|
|
119
|
-
|
|
458
|
+
/**
|
|
459
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
460
|
+
*/
|
|
461
|
+
message: string;
|
|
462
|
+
} /**
|
|
463
|
+
* Indicates that the auxiliary heat is running.
|
|
464
|
+
*/ | {
|
|
465
|
+
/**
|
|
466
|
+
* Date and time at which Seam created the error.
|
|
467
|
+
*/
|
|
120
468
|
created_at: string;
|
|
469
|
+
/**
|
|
470
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
471
|
+
*/
|
|
121
472
|
error_code: 'auxiliary_heat_running';
|
|
473
|
+
/**
|
|
474
|
+
* Indicates that the error is a device error.
|
|
475
|
+
*/
|
|
122
476
|
is_device_error: boolean;
|
|
123
|
-
|
|
124
|
-
|
|
477
|
+
/**
|
|
478
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
479
|
+
*/
|
|
480
|
+
message: string;
|
|
481
|
+
} /**
|
|
482
|
+
* Indicates that a subscription is required to connect.
|
|
483
|
+
*/ | {
|
|
484
|
+
/**
|
|
485
|
+
* Date and time at which Seam created the error.
|
|
486
|
+
*/
|
|
125
487
|
created_at: string;
|
|
488
|
+
/**
|
|
489
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
490
|
+
*/
|
|
126
491
|
error_code: 'subscription_required';
|
|
492
|
+
/**
|
|
493
|
+
* Indicates that the error is a device error.
|
|
494
|
+
*/
|
|
127
495
|
is_device_error: boolean;
|
|
128
|
-
|
|
129
|
-
|
|
496
|
+
/**
|
|
497
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
498
|
+
*/
|
|
499
|
+
message: string;
|
|
500
|
+
} /**
|
|
501
|
+
* 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).
|
|
502
|
+
*/ | {
|
|
503
|
+
/**
|
|
504
|
+
* Date and time at which Seam created the error.
|
|
505
|
+
*/
|
|
130
506
|
created_at: string;
|
|
507
|
+
/**
|
|
508
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
509
|
+
*/
|
|
131
510
|
error_code: 'bridge_disconnected';
|
|
511
|
+
/**
|
|
512
|
+
* Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
513
|
+
*/
|
|
132
514
|
is_bridge_error?: boolean | undefined;
|
|
515
|
+
/**
|
|
516
|
+
* Indicates whether the error is related specifically to the connected account.
|
|
517
|
+
*/
|
|
133
518
|
is_connected_account_error?: boolean | undefined;
|
|
519
|
+
/**
|
|
520
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
521
|
+
*/
|
|
134
522
|
message: string;
|
|
135
523
|
}>;
|
|
524
|
+
/**
|
|
525
|
+
* Indicates whether the access code is a backup code.
|
|
526
|
+
*/
|
|
136
527
|
is_backup?: boolean | undefined;
|
|
528
|
+
/**
|
|
529
|
+
* Indicates whether a backup access code is available for use if the primary access code is lost or compromised.
|
|
530
|
+
*/
|
|
137
531
|
is_backup_access_code_available: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* Indicates whether changes to the access code from external sources are permitted.
|
|
534
|
+
*/
|
|
138
535
|
is_external_modification_allowed: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Indicates whether Seam manages the access code.
|
|
538
|
+
*/
|
|
139
539
|
is_managed: boolean;
|
|
540
|
+
/**
|
|
541
|
+
* 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.
|
|
542
|
+
*/
|
|
140
543
|
is_offline_access_code: boolean;
|
|
544
|
+
/**
|
|
545
|
+
* Indicates whether the access code can only be used once. If `true`, the code becomes invalid after the first use.
|
|
546
|
+
*/
|
|
141
547
|
is_one_time_use: boolean;
|
|
548
|
+
/**
|
|
549
|
+
* Indicates whether the code is set on the device according to a preconfigured schedule.
|
|
550
|
+
*/
|
|
142
551
|
is_scheduled_on_device?: boolean | undefined;
|
|
552
|
+
/**
|
|
553
|
+
* Indicates whether the access code is waiting for a code assignment.
|
|
554
|
+
*/
|
|
143
555
|
is_waiting_for_code_assignment?: boolean | undefined;
|
|
556
|
+
/**
|
|
557
|
+
* 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).
|
|
558
|
+
*/
|
|
144
559
|
name: string | null;
|
|
145
|
-
|
|
560
|
+
/**
|
|
561
|
+
* Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device.
|
|
562
|
+
*/
|
|
563
|
+
pending_mutations: Array<
|
|
564
|
+
/**
|
|
565
|
+
* Seam is in the process of setting an access code on the device.
|
|
566
|
+
*/
|
|
567
|
+
{
|
|
568
|
+
/**
|
|
569
|
+
* Date and time at which the mutation was created.
|
|
570
|
+
*/
|
|
146
571
|
created_at: string;
|
|
572
|
+
/**
|
|
573
|
+
* Detailed description of the mutation.
|
|
574
|
+
*/
|
|
147
575
|
message: string;
|
|
576
|
+
/**
|
|
577
|
+
* Mutation code to indicate that Seam is in the process of setting an access code on the device.
|
|
578
|
+
*/
|
|
148
579
|
mutation_code: 'creating';
|
|
149
|
-
}
|
|
580
|
+
} /**
|
|
581
|
+
* Seam is waiting until closer to the access code's start time before programming it on the device.
|
|
582
|
+
*/ | {
|
|
583
|
+
/**
|
|
584
|
+
* Date and time at which the mutation was created.
|
|
585
|
+
*/
|
|
150
586
|
created_at: string;
|
|
587
|
+
/**
|
|
588
|
+
* Detailed description of the mutation.
|
|
589
|
+
*/
|
|
151
590
|
message: string;
|
|
591
|
+
/**
|
|
592
|
+
* Mutation code to indicate that Seam is waiting until closer to the access code's start time before programming it on the device.
|
|
593
|
+
*/
|
|
152
594
|
mutation_code: 'deferring_creation';
|
|
595
|
+
/**
|
|
596
|
+
* Date and time at which Seam will attempt to program this access code on the device.
|
|
597
|
+
*/
|
|
153
598
|
scheduled_at: string;
|
|
154
|
-
}
|
|
599
|
+
} /**
|
|
600
|
+
* Seam is in the process of removing an access code from the device.
|
|
601
|
+
*/ | {
|
|
602
|
+
/**
|
|
603
|
+
* Date and time at which the mutation was created.
|
|
604
|
+
*/
|
|
155
605
|
created_at: string;
|
|
606
|
+
/**
|
|
607
|
+
* Detailed description of the mutation.
|
|
608
|
+
*/
|
|
156
609
|
message: string;
|
|
610
|
+
/**
|
|
611
|
+
* Mutation code to indicate that Seam is in the process of removing an access code from the device.
|
|
612
|
+
*/
|
|
157
613
|
mutation_code: 'deleting';
|
|
158
|
-
}
|
|
614
|
+
} /**
|
|
615
|
+
* Seam is in the process of pushing an updated PIN code to the device.
|
|
616
|
+
*/ | {
|
|
617
|
+
/**
|
|
618
|
+
* Date and time at which the mutation was created.
|
|
619
|
+
*/
|
|
159
620
|
created_at: string;
|
|
621
|
+
/**
|
|
622
|
+
* Previous code configuration.
|
|
623
|
+
*/
|
|
160
624
|
from: {
|
|
625
|
+
/**
|
|
626
|
+
* Previous PIN code.
|
|
627
|
+
*/
|
|
161
628
|
code: string | null;
|
|
162
629
|
};
|
|
630
|
+
/**
|
|
631
|
+
* Detailed description of the mutation.
|
|
632
|
+
*/
|
|
163
633
|
message: string;
|
|
634
|
+
/**
|
|
635
|
+
* Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device.
|
|
636
|
+
*/
|
|
164
637
|
mutation_code: 'updating_code';
|
|
638
|
+
/**
|
|
639
|
+
* New code configuration.
|
|
640
|
+
*/
|
|
165
641
|
to: {
|
|
642
|
+
/**
|
|
643
|
+
* New PIN code.
|
|
644
|
+
*/
|
|
166
645
|
code: string | null;
|
|
167
646
|
};
|
|
168
|
-
}
|
|
647
|
+
} /**
|
|
648
|
+
* Seam is in the process of pushing an updated access code name to the device.
|
|
649
|
+
*/ | {
|
|
650
|
+
/**
|
|
651
|
+
* Date and time at which the mutation was created.
|
|
652
|
+
*/
|
|
169
653
|
created_at: string;
|
|
654
|
+
/**
|
|
655
|
+
* Previous name configuration.
|
|
656
|
+
*/
|
|
170
657
|
from: {
|
|
658
|
+
/**
|
|
659
|
+
* Previous access code name.
|
|
660
|
+
*/
|
|
171
661
|
name: string | null;
|
|
172
662
|
};
|
|
663
|
+
/**
|
|
664
|
+
* Detailed description of the mutation.
|
|
665
|
+
*/
|
|
173
666
|
message: string;
|
|
667
|
+
/**
|
|
668
|
+
* Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device.
|
|
669
|
+
*/
|
|
174
670
|
mutation_code: 'updating_name';
|
|
671
|
+
/**
|
|
672
|
+
* New name configuration.
|
|
673
|
+
*/
|
|
175
674
|
to: {
|
|
675
|
+
/**
|
|
676
|
+
* New access code name.
|
|
677
|
+
*/
|
|
176
678
|
name: string | null;
|
|
177
679
|
};
|
|
178
|
-
}
|
|
680
|
+
} /**
|
|
681
|
+
* Seam is in the process of pushing an updated time frame to the device.
|
|
682
|
+
*/ | {
|
|
683
|
+
/**
|
|
684
|
+
* Date and time at which the mutation was created.
|
|
685
|
+
*/
|
|
179
686
|
created_at: string;
|
|
687
|
+
/**
|
|
688
|
+
* Previous time frame configuration.
|
|
689
|
+
*/
|
|
180
690
|
from: {
|
|
691
|
+
/**
|
|
692
|
+
* Previous end time for the access code.
|
|
693
|
+
*/
|
|
181
694
|
ends_at: string | null;
|
|
695
|
+
/**
|
|
696
|
+
* Previous start time for the access code.
|
|
697
|
+
*/
|
|
182
698
|
starts_at: string | null;
|
|
183
699
|
};
|
|
700
|
+
/**
|
|
701
|
+
* Detailed description of the mutation.
|
|
702
|
+
*/
|
|
184
703
|
message: string;
|
|
704
|
+
/**
|
|
705
|
+
* Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device.
|
|
706
|
+
*/
|
|
185
707
|
mutation_code: 'updating_time_frame';
|
|
708
|
+
/**
|
|
709
|
+
* New time frame configuration.
|
|
710
|
+
*/
|
|
186
711
|
to: {
|
|
712
|
+
/**
|
|
713
|
+
* New end time for the access code.
|
|
714
|
+
*/
|
|
187
715
|
ends_at: string | null;
|
|
716
|
+
/**
|
|
717
|
+
* New start time for the access code.
|
|
718
|
+
*/
|
|
188
719
|
starts_at: string | null;
|
|
189
720
|
};
|
|
190
721
|
}>;
|
|
722
|
+
/**
|
|
723
|
+
* Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code.
|
|
724
|
+
*/
|
|
191
725
|
pulled_backup_access_code_id?: string | null | undefined;
|
|
726
|
+
/**
|
|
727
|
+
* Date and time at which the time-bound access code becomes active.
|
|
728
|
+
*/
|
|
192
729
|
starts_at?: string | null | undefined;
|
|
730
|
+
/**
|
|
731
|
+
* 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).
|
|
732
|
+
*/
|
|
193
733
|
status: 'setting' | 'set' | 'unset' | 'removing' | 'unknown';
|
|
734
|
+
/**
|
|
735
|
+
* Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration.
|
|
736
|
+
*/
|
|
194
737
|
type: 'time_bound' | 'ongoing';
|
|
195
|
-
|
|
738
|
+
/**
|
|
739
|
+
* Warnings associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
740
|
+
*/
|
|
741
|
+
warnings: Array<
|
|
742
|
+
/**
|
|
743
|
+
* The access code's PIN rotates periodically when the code is renewed. Retrieve the latest code before each use.
|
|
744
|
+
*/
|
|
745
|
+
{
|
|
746
|
+
/**
|
|
747
|
+
* Date and time at which Seam created the warning.
|
|
748
|
+
*/
|
|
196
749
|
created_at?: string | undefined;
|
|
750
|
+
/**
|
|
751
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
752
|
+
*/
|
|
197
753
|
message: string;
|
|
754
|
+
/**
|
|
755
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
756
|
+
*/
|
|
198
757
|
warning_code: 'code_rotates_periodically';
|
|
199
|
-
}
|
|
758
|
+
} /**
|
|
759
|
+
* 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.
|
|
760
|
+
*/ | {
|
|
761
|
+
/**
|
|
762
|
+
* Date and time at which Seam created the warning.
|
|
763
|
+
*/
|
|
200
764
|
created_at?: string | undefined;
|
|
765
|
+
/**
|
|
766
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
767
|
+
*/
|
|
201
768
|
message: string;
|
|
769
|
+
/**
|
|
770
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
771
|
+
*/
|
|
202
772
|
warning_code: 'time_frame_adjusted_for_unknown_time_zone';
|
|
203
|
-
}
|
|
773
|
+
} /**
|
|
774
|
+
* 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.
|
|
775
|
+
*/ | {
|
|
776
|
+
/**
|
|
777
|
+
* 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.
|
|
778
|
+
*/
|
|
204
779
|
change_type?: 'modified' | 'removed' | undefined;
|
|
780
|
+
/**
|
|
781
|
+
* Date and time at which Seam created the warning.
|
|
782
|
+
*/
|
|
205
783
|
created_at?: string | undefined;
|
|
784
|
+
/**
|
|
785
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
786
|
+
*/
|
|
206
787
|
message: string;
|
|
788
|
+
/**
|
|
789
|
+
* List of fields that were changed externally, with their previous and new values.
|
|
790
|
+
*/
|
|
207
791
|
modified_fields?: Array<{
|
|
792
|
+
/**
|
|
793
|
+
* The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).
|
|
794
|
+
*/
|
|
208
795
|
field: string;
|
|
796
|
+
/**
|
|
797
|
+
* The previous value of the field.
|
|
798
|
+
*/
|
|
209
799
|
from: string | null;
|
|
800
|
+
/**
|
|
801
|
+
* The new value of the field.
|
|
802
|
+
*/
|
|
210
803
|
to: string | null;
|
|
211
804
|
}> | undefined;
|
|
805
|
+
/**
|
|
806
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
807
|
+
*/
|
|
212
808
|
warning_code: 'external_modification_in_effect';
|
|
213
|
-
}
|
|
809
|
+
} /**
|
|
810
|
+
* Delay in setting code on device.
|
|
811
|
+
*/ | {
|
|
812
|
+
/**
|
|
813
|
+
* Date and time at which Seam created the warning.
|
|
814
|
+
*/
|
|
214
815
|
created_at?: string | undefined;
|
|
816
|
+
/**
|
|
817
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
818
|
+
*/
|
|
215
819
|
message: string;
|
|
820
|
+
/**
|
|
821
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
822
|
+
*/
|
|
216
823
|
warning_code: 'delay_in_setting_on_device';
|
|
217
|
-
}
|
|
824
|
+
} /**
|
|
825
|
+
* Delay in removing code from device.
|
|
826
|
+
*/ | {
|
|
827
|
+
/**
|
|
828
|
+
* Date and time at which Seam created the warning.
|
|
829
|
+
*/
|
|
218
830
|
created_at?: string | undefined;
|
|
831
|
+
/**
|
|
832
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
833
|
+
*/
|
|
219
834
|
message: string;
|
|
835
|
+
/**
|
|
836
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
837
|
+
*/
|
|
220
838
|
warning_code: 'delay_in_removing_from_device';
|
|
221
|
-
}
|
|
839
|
+
} /**
|
|
840
|
+
* Third-party integration detected that may cause access codes to fail.
|
|
841
|
+
*/ | {
|
|
842
|
+
/**
|
|
843
|
+
* Date and time at which Seam created the warning.
|
|
844
|
+
*/
|
|
222
845
|
created_at?: string | undefined;
|
|
846
|
+
/**
|
|
847
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
848
|
+
*/
|
|
223
849
|
message: string;
|
|
850
|
+
/**
|
|
851
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
852
|
+
*/
|
|
224
853
|
warning_code: 'third_party_integration_detected';
|
|
225
|
-
}
|
|
854
|
+
} /**
|
|
855
|
+
* Algopins must be used within 24 hours.
|
|
856
|
+
*/ | {
|
|
857
|
+
/**
|
|
858
|
+
* Date and time at which Seam created the warning.
|
|
859
|
+
*/
|
|
226
860
|
created_at?: string | undefined;
|
|
861
|
+
/**
|
|
862
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
863
|
+
*/
|
|
227
864
|
message: string;
|
|
865
|
+
/**
|
|
866
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
867
|
+
*/
|
|
228
868
|
warning_code: 'igloo_algopin_must_be_used_within_24_hours';
|
|
229
|
-
}
|
|
869
|
+
} /**
|
|
870
|
+
* Management was transferred to another workspace.
|
|
871
|
+
*/ | {
|
|
872
|
+
/**
|
|
873
|
+
* Date and time at which Seam created the warning.
|
|
874
|
+
*/
|
|
230
875
|
created_at?: string | undefined;
|
|
876
|
+
/**
|
|
877
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
878
|
+
*/
|
|
231
879
|
message: string;
|
|
880
|
+
/**
|
|
881
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
882
|
+
*/
|
|
232
883
|
warning_code: 'management_transferred';
|
|
233
|
-
}
|
|
884
|
+
} /**
|
|
885
|
+
* A backup access code has been pulled and is being used in place of this access code.
|
|
886
|
+
*/ | {
|
|
887
|
+
/**
|
|
888
|
+
* Date and time at which Seam created the warning.
|
|
889
|
+
*/
|
|
234
890
|
created_at?: string | undefined;
|
|
891
|
+
/**
|
|
892
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
893
|
+
*/
|
|
235
894
|
message: string;
|
|
895
|
+
/**
|
|
896
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
897
|
+
*/
|
|
236
898
|
warning_code: 'using_backup_access_code';
|
|
237
|
-
}
|
|
899
|
+
} /**
|
|
900
|
+
* Access code is being deleted.
|
|
901
|
+
*/ | {
|
|
902
|
+
/**
|
|
903
|
+
* Date and time at which Seam created the warning.
|
|
904
|
+
*/
|
|
238
905
|
created_at?: string | undefined;
|
|
906
|
+
/**
|
|
907
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
908
|
+
*/
|
|
239
909
|
message: string;
|
|
910
|
+
/**
|
|
911
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
912
|
+
*/
|
|
240
913
|
warning_code: 'being_deleted';
|
|
241
|
-
}
|
|
914
|
+
} /**
|
|
915
|
+
* An unknown issue occurred with the access code.
|
|
916
|
+
*/ | {
|
|
917
|
+
/**
|
|
918
|
+
* Date and time at which Seam created the warning.
|
|
919
|
+
*/
|
|
242
920
|
created_at?: string | undefined;
|
|
921
|
+
/**
|
|
922
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
923
|
+
*/
|
|
243
924
|
message: string;
|
|
925
|
+
/**
|
|
926
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
927
|
+
*/
|
|
244
928
|
warning_code: 'unknown_issue_with_access_code';
|
|
245
929
|
}>;
|
|
930
|
+
/**
|
|
931
|
+
* Unique identifier for the Seam workspace associated with the access code.
|
|
932
|
+
*/
|
|
246
933
|
workspace_id: string;
|
|
247
934
|
};
|