@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
|
@@ -1,194 +1,746 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents an [unmanaged smart lock access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/migrating-existing-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.
|
|
5
|
+
*
|
|
6
|
+
* When you create an access code on a device in Seam, it is created as a managed access code. Access codes that exist on a device that were not created through Seam are considered unmanaged codes. We strictly limit the operations that can be performed on unmanaged codes.
|
|
7
|
+
*
|
|
8
|
+
* Prior to using Seam to manage your devices, you may have used another lock management system to manage the access codes on your devices. Where possible, we help you keep any existing access codes on devices and transition those codes to ones managed by your Seam workspace.
|
|
9
|
+
*
|
|
10
|
+
* Not all providers support unmanaged access codes. The following providers do not support unmanaged access codes:
|
|
11
|
+
*
|
|
12
|
+
* - [Kwikset](https://docs.seam.co/device-and-system-integration-guides/kwikset-locks)
|
|
13
|
+
*/
|
|
1
14
|
export type UnmanagedAccessCode = {
|
|
15
|
+
/**
|
|
16
|
+
* Unique identifier for the access code.
|
|
17
|
+
*/
|
|
2
18
|
access_code_id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Indicates that Seam cannot convert this unmanaged access code to a managed access code. Some providers do not support management of unmanaged access codes through API integrations.
|
|
21
|
+
*/
|
|
3
22
|
cannot_be_managed?: boolean | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates that Seam cannot delete this unmanaged access code through the provider. If this access code needs to be deleted, it will only be possible from the manufacturer app.
|
|
25
|
+
*/
|
|
4
26
|
cannot_delete_unmanaged_access_code?: boolean | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Code used for access. Typically, a numeric or alphanumeric string.
|
|
29
|
+
*/
|
|
5
30
|
code: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Date and time at which the access code was created.
|
|
33
|
+
*/
|
|
6
34
|
created_at: string;
|
|
35
|
+
/**
|
|
36
|
+
* Unique identifier for the device associated with the access code.
|
|
37
|
+
*/
|
|
7
38
|
device_id: string;
|
|
39
|
+
/**
|
|
40
|
+
* Metadata for a dormakaba Oracode unmanaged access code. Only present for unmanaged access codes from dormakaba Oracode devices.
|
|
41
|
+
*/
|
|
8
42
|
dormakaba_oracode_metadata?: {
|
|
43
|
+
/**
|
|
44
|
+
* Indicates whether the stay can be cancelled via the Dormakaba Oracode API.
|
|
45
|
+
*/
|
|
9
46
|
is_cancellable?: boolean | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Indicates whether early check-in is available for this stay.
|
|
49
|
+
*/
|
|
10
50
|
is_early_checkin_able?: boolean | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Indicates whether the stay can be extended via the Dormakaba Oracode API.
|
|
53
|
+
*/
|
|
11
54
|
is_extendable?: boolean | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Indicates whether the access code can be overridden. When false, the maximum number of overrides has been reached.
|
|
57
|
+
*/
|
|
12
58
|
is_overridable?: boolean | undefined;
|
|
59
|
+
/**
|
|
60
|
+
* Dormakaba Oracode site name associated with this access code.
|
|
61
|
+
*/
|
|
13
62
|
site_name?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Dormakaba Oracode stay ID associated with this access code.
|
|
65
|
+
*/
|
|
14
66
|
stay_id?: number | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Dormakaba Oracode user level ID associated with this access code.
|
|
69
|
+
*/
|
|
15
70
|
user_level_id?: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Dormakaba Oracode user level name associated with this access code.
|
|
73
|
+
*/
|
|
16
74
|
user_level_name?: string | null | undefined;
|
|
17
75
|
} | null | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Date and time after which the time-bound access code becomes inactive.
|
|
78
|
+
*/
|
|
18
79
|
ends_at?: string | null | undefined;
|
|
19
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Errors associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
82
|
+
*/
|
|
83
|
+
errors: Array<
|
|
84
|
+
/**
|
|
85
|
+
* Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.
|
|
86
|
+
*/
|
|
87
|
+
{
|
|
88
|
+
/**
|
|
89
|
+
* Date and time at which Seam created the error.
|
|
90
|
+
*/
|
|
20
91
|
created_at?: string | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
94
|
+
*/
|
|
21
95
|
error_code: 'provider_issue';
|
|
96
|
+
/**
|
|
97
|
+
* Indicates that this is an access code error.
|
|
98
|
+
*/
|
|
22
99
|
is_access_code_error: boolean;
|
|
23
|
-
|
|
24
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
102
|
+
*/
|
|
103
|
+
message: string;
|
|
104
|
+
} /**
|
|
105
|
+
* Failed to set code on device.
|
|
106
|
+
*/ | {
|
|
107
|
+
/**
|
|
108
|
+
* Date and time at which Seam created the error.
|
|
109
|
+
*/
|
|
25
110
|
created_at?: string | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
113
|
+
*/
|
|
26
114
|
error_code: 'failed_to_set_on_device';
|
|
115
|
+
/**
|
|
116
|
+
* Indicates that this is an access code error.
|
|
117
|
+
*/
|
|
27
118
|
is_access_code_error: boolean;
|
|
28
|
-
|
|
29
|
-
|
|
119
|
+
/**
|
|
120
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
121
|
+
*/
|
|
122
|
+
message: string;
|
|
123
|
+
} /**
|
|
124
|
+
* Failed to remove code from device.
|
|
125
|
+
*/ | {
|
|
126
|
+
/**
|
|
127
|
+
* Date and time at which Seam created the error.
|
|
128
|
+
*/
|
|
30
129
|
created_at?: string | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
132
|
+
*/
|
|
31
133
|
error_code: 'failed_to_remove_from_device';
|
|
134
|
+
/**
|
|
135
|
+
* Indicates that this is an access code error.
|
|
136
|
+
*/
|
|
32
137
|
is_access_code_error: boolean;
|
|
33
|
-
|
|
34
|
-
|
|
138
|
+
/**
|
|
139
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
140
|
+
*/
|
|
141
|
+
message: string;
|
|
142
|
+
} /**
|
|
143
|
+
* Duplicate access code detected on device.
|
|
144
|
+
*/ | {
|
|
145
|
+
/**
|
|
146
|
+
* Date and time at which Seam created the error.
|
|
147
|
+
*/
|
|
35
148
|
created_at?: string | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
151
|
+
*/
|
|
36
152
|
error_code: 'duplicate_code_on_device';
|
|
153
|
+
/**
|
|
154
|
+
* Indicates that this is an access code error.
|
|
155
|
+
*/
|
|
37
156
|
is_access_code_error: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* ID of the managed access code that conflicts with this managed access code, when Seam can identify it.
|
|
159
|
+
*/
|
|
38
160
|
managed_access_code_id?: string | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
163
|
+
*/
|
|
39
164
|
message: string;
|
|
165
|
+
/**
|
|
166
|
+
* ID of the unmanaged access code that conflicts with this managed access code, when Seam can identify it.
|
|
167
|
+
*/
|
|
40
168
|
unmanaged_access_code_id?: string | undefined;
|
|
41
|
-
}
|
|
169
|
+
} /**
|
|
170
|
+
* No space for access code on device.
|
|
171
|
+
*/ | {
|
|
172
|
+
/**
|
|
173
|
+
* Date and time at which Seam created the error.
|
|
174
|
+
*/
|
|
42
175
|
created_at?: string | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
178
|
+
*/
|
|
43
179
|
error_code: 'no_space_for_access_code_on_device';
|
|
180
|
+
/**
|
|
181
|
+
* Indicates that this is an access code error.
|
|
182
|
+
*/
|
|
44
183
|
is_access_code_error: boolean;
|
|
45
|
-
|
|
46
|
-
|
|
184
|
+
/**
|
|
185
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
186
|
+
*/
|
|
187
|
+
message: string;
|
|
188
|
+
} /**
|
|
189
|
+
* 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.
|
|
190
|
+
*/ | {
|
|
191
|
+
/**
|
|
192
|
+
* 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.
|
|
193
|
+
*/
|
|
47
194
|
change_type?: 'modified' | 'removed' | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* Date and time at which Seam created the error.
|
|
197
|
+
*/
|
|
48
198
|
created_at?: string | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
201
|
+
*/
|
|
49
202
|
error_code: 'conflicting_external_modification';
|
|
203
|
+
/**
|
|
204
|
+
* Indicates that this is an access code error.
|
|
205
|
+
*/
|
|
50
206
|
is_access_code_error: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
209
|
+
*/
|
|
51
210
|
message: string;
|
|
211
|
+
/**
|
|
212
|
+
* List of fields that were changed externally, with their previous and new values.
|
|
213
|
+
*/
|
|
52
214
|
modified_fields?: Array<{
|
|
215
|
+
/**
|
|
216
|
+
* The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).
|
|
217
|
+
*/
|
|
53
218
|
field: string;
|
|
219
|
+
/**
|
|
220
|
+
* The previous value of the field.
|
|
221
|
+
*/
|
|
54
222
|
from: string | null;
|
|
223
|
+
/**
|
|
224
|
+
* The new value of the field.
|
|
225
|
+
*/
|
|
55
226
|
to: string | null;
|
|
56
227
|
}> | undefined;
|
|
57
|
-
}
|
|
228
|
+
} /**
|
|
229
|
+
* Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.
|
|
230
|
+
*/ | {
|
|
231
|
+
/**
|
|
232
|
+
* Date and time at which Seam created the error.
|
|
233
|
+
*/
|
|
58
234
|
created_at?: string | undefined;
|
|
235
|
+
/**
|
|
236
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
237
|
+
*/
|
|
59
238
|
error_code: 'access_code_inactive';
|
|
239
|
+
/**
|
|
240
|
+
* Indicates that this is an access code error.
|
|
241
|
+
*/
|
|
60
242
|
is_access_code_error: boolean;
|
|
61
|
-
|
|
62
|
-
|
|
243
|
+
/**
|
|
244
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
245
|
+
*/
|
|
246
|
+
message: string;
|
|
247
|
+
} /**
|
|
248
|
+
* 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.
|
|
249
|
+
*/ | {
|
|
250
|
+
/**
|
|
251
|
+
* Date and time at which Seam created the error.
|
|
252
|
+
*/
|
|
63
253
|
created_at?: string | undefined;
|
|
254
|
+
/**
|
|
255
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
256
|
+
*/
|
|
64
257
|
error_code: 'insufficient_permissions';
|
|
258
|
+
/**
|
|
259
|
+
* Indicates that this is an access code error.
|
|
260
|
+
*/
|
|
65
261
|
is_access_code_error: boolean;
|
|
66
|
-
|
|
67
|
-
|
|
262
|
+
/**
|
|
263
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
264
|
+
*/
|
|
265
|
+
message: string;
|
|
266
|
+
} /**
|
|
267
|
+
* Indicates that the account is disconnected.
|
|
268
|
+
*/ | {
|
|
269
|
+
/**
|
|
270
|
+
* Date and time at which Seam created the error.
|
|
271
|
+
*/
|
|
68
272
|
created_at: string;
|
|
273
|
+
/**
|
|
274
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
275
|
+
*/
|
|
69
276
|
error_code: 'account_disconnected';
|
|
277
|
+
/**
|
|
278
|
+
* Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
|
|
279
|
+
*/
|
|
70
280
|
is_connected_account_error: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Indicates that the error is not a device error.
|
|
283
|
+
*/
|
|
71
284
|
is_device_error: boolean;
|
|
72
|
-
|
|
73
|
-
|
|
285
|
+
/**
|
|
286
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
287
|
+
*/
|
|
288
|
+
message: string;
|
|
289
|
+
} /**
|
|
290
|
+
* Indicates that the Salto site user limit has been reached.
|
|
291
|
+
*/ | {
|
|
292
|
+
/**
|
|
293
|
+
* Date and time at which Seam created the error.
|
|
294
|
+
*/
|
|
74
295
|
created_at: string;
|
|
296
|
+
/**
|
|
297
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
298
|
+
*/
|
|
75
299
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
300
|
+
/**
|
|
301
|
+
* Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
|
|
302
|
+
*/
|
|
76
303
|
is_connected_account_error: boolean;
|
|
304
|
+
/**
|
|
305
|
+
* Indicates that the error is not a device error.
|
|
306
|
+
*/
|
|
77
307
|
is_device_error: boolean;
|
|
78
|
-
|
|
79
|
-
|
|
308
|
+
/**
|
|
309
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
310
|
+
*/
|
|
311
|
+
message: string;
|
|
312
|
+
} /**
|
|
313
|
+
* Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
|
|
314
|
+
*/ | {
|
|
315
|
+
/**
|
|
316
|
+
* Date and time at which Seam created the error.
|
|
317
|
+
*/
|
|
80
318
|
created_at: string;
|
|
319
|
+
/**
|
|
320
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
321
|
+
*/
|
|
81
322
|
error_code: 'dormakaba_sites_disconnected';
|
|
323
|
+
/**
|
|
324
|
+
* Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.
|
|
325
|
+
*/
|
|
82
326
|
is_connected_account_error: boolean;
|
|
327
|
+
/**
|
|
328
|
+
* Indicates that the error is not a device error.
|
|
329
|
+
*/
|
|
83
330
|
is_device_error: boolean;
|
|
84
|
-
|
|
85
|
-
|
|
331
|
+
/**
|
|
332
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
333
|
+
*/
|
|
334
|
+
message: string;
|
|
335
|
+
} /**
|
|
336
|
+
* Indicates that the device is offline.
|
|
337
|
+
*/ | {
|
|
338
|
+
/**
|
|
339
|
+
* Date and time at which Seam created the error.
|
|
340
|
+
*/
|
|
86
341
|
created_at: string;
|
|
342
|
+
/**
|
|
343
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
344
|
+
*/
|
|
87
345
|
error_code: 'device_offline';
|
|
346
|
+
/**
|
|
347
|
+
* Indicates that the error is a device error.
|
|
348
|
+
*/
|
|
88
349
|
is_device_error: boolean;
|
|
89
|
-
|
|
90
|
-
|
|
350
|
+
/**
|
|
351
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
352
|
+
*/
|
|
353
|
+
message: string;
|
|
354
|
+
} /**
|
|
355
|
+
* Indicates that the device has been removed.
|
|
356
|
+
*/ | {
|
|
357
|
+
/**
|
|
358
|
+
* Date and time at which Seam created the error.
|
|
359
|
+
*/
|
|
91
360
|
created_at: string;
|
|
361
|
+
/**
|
|
362
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
363
|
+
*/
|
|
92
364
|
error_code: 'device_removed';
|
|
365
|
+
/**
|
|
366
|
+
* Indicates that the error is a device error.
|
|
367
|
+
*/
|
|
93
368
|
is_device_error: boolean;
|
|
94
|
-
|
|
95
|
-
|
|
369
|
+
/**
|
|
370
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
371
|
+
*/
|
|
372
|
+
message: string;
|
|
373
|
+
} /**
|
|
374
|
+
* Indicates that the hub is disconnected.
|
|
375
|
+
*/ | {
|
|
376
|
+
/**
|
|
377
|
+
* Date and time at which Seam created the error.
|
|
378
|
+
*/
|
|
96
379
|
created_at: string;
|
|
380
|
+
/**
|
|
381
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
382
|
+
*/
|
|
97
383
|
error_code: 'hub_disconnected';
|
|
384
|
+
/**
|
|
385
|
+
* Indicates that the error is a device error.
|
|
386
|
+
*/
|
|
98
387
|
is_device_error: boolean;
|
|
99
|
-
|
|
100
|
-
|
|
388
|
+
/**
|
|
389
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
390
|
+
*/
|
|
391
|
+
message: string;
|
|
392
|
+
} /**
|
|
393
|
+
* Indicates that the device is disconnected.
|
|
394
|
+
*/ | {
|
|
395
|
+
/**
|
|
396
|
+
* Date and time at which Seam created the error.
|
|
397
|
+
*/
|
|
101
398
|
created_at: string;
|
|
399
|
+
/**
|
|
400
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
401
|
+
*/
|
|
102
402
|
error_code: 'device_disconnected';
|
|
403
|
+
/**
|
|
404
|
+
* Indicates that the error is a device error.
|
|
405
|
+
*/
|
|
103
406
|
is_device_error: boolean;
|
|
104
|
-
|
|
105
|
-
|
|
407
|
+
/**
|
|
408
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
409
|
+
*/
|
|
410
|
+
message: string;
|
|
411
|
+
} /**
|
|
412
|
+
* Indicates that the [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) is empty.
|
|
413
|
+
*/ | {
|
|
414
|
+
/**
|
|
415
|
+
* Date and time at which Seam created the error.
|
|
416
|
+
*/
|
|
106
417
|
created_at: string;
|
|
418
|
+
/**
|
|
419
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
420
|
+
*/
|
|
107
421
|
error_code: 'empty_backup_access_code_pool';
|
|
422
|
+
/**
|
|
423
|
+
* Indicates that the error is a device error.
|
|
424
|
+
*/
|
|
108
425
|
is_device_error: boolean;
|
|
109
|
-
|
|
110
|
-
|
|
426
|
+
/**
|
|
427
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
428
|
+
*/
|
|
429
|
+
message: string;
|
|
430
|
+
} /**
|
|
431
|
+
* Indicates that the user is not authorized to use the August lock.
|
|
432
|
+
*/ | {
|
|
433
|
+
/**
|
|
434
|
+
* Date and time at which Seam created the error.
|
|
435
|
+
*/
|
|
111
436
|
created_at: string;
|
|
437
|
+
/**
|
|
438
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
439
|
+
*/
|
|
112
440
|
error_code: 'august_lock_not_authorized';
|
|
441
|
+
/**
|
|
442
|
+
* Indicates that the error is a device error.
|
|
443
|
+
*/
|
|
113
444
|
is_device_error: boolean;
|
|
114
|
-
|
|
115
|
-
|
|
445
|
+
/**
|
|
446
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
447
|
+
*/
|
|
448
|
+
message: string;
|
|
449
|
+
} /**
|
|
450
|
+
* Indicates that device credentials are missing.
|
|
451
|
+
*/ | {
|
|
452
|
+
/**
|
|
453
|
+
* Date and time at which Seam created the error.
|
|
454
|
+
*/
|
|
116
455
|
created_at: string;
|
|
456
|
+
/**
|
|
457
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
458
|
+
*/
|
|
117
459
|
error_code: 'missing_device_credentials';
|
|
460
|
+
/**
|
|
461
|
+
* Indicates that the error is a device error.
|
|
462
|
+
*/
|
|
118
463
|
is_device_error: boolean;
|
|
119
|
-
|
|
120
|
-
|
|
464
|
+
/**
|
|
465
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
466
|
+
*/
|
|
467
|
+
message: string;
|
|
468
|
+
} /**
|
|
469
|
+
* Indicates that the auxiliary heat is running.
|
|
470
|
+
*/ | {
|
|
471
|
+
/**
|
|
472
|
+
* Date and time at which Seam created the error.
|
|
473
|
+
*/
|
|
121
474
|
created_at: string;
|
|
475
|
+
/**
|
|
476
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
477
|
+
*/
|
|
122
478
|
error_code: 'auxiliary_heat_running';
|
|
479
|
+
/**
|
|
480
|
+
* Indicates that the error is a device error.
|
|
481
|
+
*/
|
|
123
482
|
is_device_error: boolean;
|
|
124
|
-
|
|
125
|
-
|
|
483
|
+
/**
|
|
484
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
485
|
+
*/
|
|
486
|
+
message: string;
|
|
487
|
+
} /**
|
|
488
|
+
* Indicates that a subscription is required to connect.
|
|
489
|
+
*/ | {
|
|
490
|
+
/**
|
|
491
|
+
* Date and time at which Seam created the error.
|
|
492
|
+
*/
|
|
126
493
|
created_at: string;
|
|
494
|
+
/**
|
|
495
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
496
|
+
*/
|
|
127
497
|
error_code: 'subscription_required';
|
|
498
|
+
/**
|
|
499
|
+
* Indicates that the error is a device error.
|
|
500
|
+
*/
|
|
128
501
|
is_device_error: boolean;
|
|
129
|
-
|
|
130
|
-
|
|
502
|
+
/**
|
|
503
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
504
|
+
*/
|
|
505
|
+
message: string;
|
|
506
|
+
} /**
|
|
507
|
+
* 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).
|
|
508
|
+
*/ | {
|
|
509
|
+
/**
|
|
510
|
+
* Date and time at which Seam created the error.
|
|
511
|
+
*/
|
|
131
512
|
created_at: string;
|
|
513
|
+
/**
|
|
514
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
515
|
+
*/
|
|
132
516
|
error_code: 'bridge_disconnected';
|
|
517
|
+
/**
|
|
518
|
+
* Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/capability-guides/seam-bridge).
|
|
519
|
+
*/
|
|
133
520
|
is_bridge_error?: boolean | undefined;
|
|
521
|
+
/**
|
|
522
|
+
* Indicates whether the error is related specifically to the connected account.
|
|
523
|
+
*/
|
|
134
524
|
is_connected_account_error?: boolean | undefined;
|
|
525
|
+
/**
|
|
526
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
527
|
+
*/
|
|
135
528
|
message: string;
|
|
136
529
|
}>;
|
|
530
|
+
/**
|
|
531
|
+
* Indicates that Seam does not manage the access code.
|
|
532
|
+
*/
|
|
137
533
|
is_managed: boolean;
|
|
534
|
+
/**
|
|
535
|
+
* 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).
|
|
536
|
+
*/
|
|
138
537
|
name: string | null;
|
|
538
|
+
/**
|
|
539
|
+
* Date and time at which the time-bound access code becomes active.
|
|
540
|
+
*/
|
|
139
541
|
starts_at?: string | null | undefined;
|
|
542
|
+
/**
|
|
543
|
+
* Current status of the access code within the operational lifecycle. `set` indicates that the code is active and operational. `unset` indicates that the code exists on the provider but is not usable on the device.
|
|
544
|
+
*/
|
|
140
545
|
status: 'set' | 'unset';
|
|
546
|
+
/**
|
|
547
|
+
* Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration.
|
|
548
|
+
*/
|
|
141
549
|
type: 'time_bound' | 'ongoing';
|
|
142
|
-
|
|
550
|
+
/**
|
|
551
|
+
* Warnings associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).
|
|
552
|
+
*/
|
|
553
|
+
warnings: Array<
|
|
554
|
+
/**
|
|
555
|
+
* The access code's PIN rotates periodically when the code is renewed. Retrieve the latest code before each use.
|
|
556
|
+
*/
|
|
557
|
+
{
|
|
558
|
+
/**
|
|
559
|
+
* Date and time at which Seam created the warning.
|
|
560
|
+
*/
|
|
143
561
|
created_at?: string | undefined;
|
|
562
|
+
/**
|
|
563
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
564
|
+
*/
|
|
144
565
|
message: string;
|
|
566
|
+
/**
|
|
567
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
568
|
+
*/
|
|
145
569
|
warning_code: 'code_rotates_periodically';
|
|
146
|
-
}
|
|
570
|
+
} /**
|
|
571
|
+
* 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.
|
|
572
|
+
*/ | {
|
|
573
|
+
/**
|
|
574
|
+
* Date and time at which Seam created the warning.
|
|
575
|
+
*/
|
|
147
576
|
created_at?: string | undefined;
|
|
577
|
+
/**
|
|
578
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
579
|
+
*/
|
|
148
580
|
message: string;
|
|
581
|
+
/**
|
|
582
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
583
|
+
*/
|
|
149
584
|
warning_code: 'time_frame_adjusted_for_unknown_time_zone';
|
|
150
|
-
}
|
|
585
|
+
} /**
|
|
586
|
+
* 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.
|
|
587
|
+
*/ | {
|
|
588
|
+
/**
|
|
589
|
+
* 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.
|
|
590
|
+
*/
|
|
151
591
|
change_type?: 'modified' | 'removed' | undefined;
|
|
592
|
+
/**
|
|
593
|
+
* Date and time at which Seam created the warning.
|
|
594
|
+
*/
|
|
152
595
|
created_at?: string | undefined;
|
|
596
|
+
/**
|
|
597
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
598
|
+
*/
|
|
153
599
|
message: string;
|
|
600
|
+
/**
|
|
601
|
+
* List of fields that were changed externally, with their previous and new values.
|
|
602
|
+
*/
|
|
154
603
|
modified_fields?: Array<{
|
|
604
|
+
/**
|
|
605
|
+
* The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).
|
|
606
|
+
*/
|
|
155
607
|
field: string;
|
|
608
|
+
/**
|
|
609
|
+
* The previous value of the field.
|
|
610
|
+
*/
|
|
156
611
|
from: string | null;
|
|
612
|
+
/**
|
|
613
|
+
* The new value of the field.
|
|
614
|
+
*/
|
|
157
615
|
to: string | null;
|
|
158
616
|
}> | undefined;
|
|
617
|
+
/**
|
|
618
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
619
|
+
*/
|
|
159
620
|
warning_code: 'external_modification_in_effect';
|
|
160
|
-
}
|
|
621
|
+
} /**
|
|
622
|
+
* Delay in setting code on device.
|
|
623
|
+
*/ | {
|
|
624
|
+
/**
|
|
625
|
+
* Date and time at which Seam created the warning.
|
|
626
|
+
*/
|
|
161
627
|
created_at?: string | undefined;
|
|
628
|
+
/**
|
|
629
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
630
|
+
*/
|
|
162
631
|
message: string;
|
|
632
|
+
/**
|
|
633
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
634
|
+
*/
|
|
163
635
|
warning_code: 'delay_in_setting_on_device';
|
|
164
|
-
}
|
|
636
|
+
} /**
|
|
637
|
+
* Delay in removing code from device.
|
|
638
|
+
*/ | {
|
|
639
|
+
/**
|
|
640
|
+
* Date and time at which Seam created the warning.
|
|
641
|
+
*/
|
|
165
642
|
created_at?: string | undefined;
|
|
643
|
+
/**
|
|
644
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
645
|
+
*/
|
|
166
646
|
message: string;
|
|
647
|
+
/**
|
|
648
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
649
|
+
*/
|
|
167
650
|
warning_code: 'delay_in_removing_from_device';
|
|
168
|
-
}
|
|
651
|
+
} /**
|
|
652
|
+
* Third-party integration detected that may cause access codes to fail.
|
|
653
|
+
*/ | {
|
|
654
|
+
/**
|
|
655
|
+
* Date and time at which Seam created the warning.
|
|
656
|
+
*/
|
|
169
657
|
created_at?: string | undefined;
|
|
658
|
+
/**
|
|
659
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
660
|
+
*/
|
|
170
661
|
message: string;
|
|
662
|
+
/**
|
|
663
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
664
|
+
*/
|
|
171
665
|
warning_code: 'third_party_integration_detected';
|
|
172
|
-
}
|
|
666
|
+
} /**
|
|
667
|
+
* Algopins must be used within 24 hours.
|
|
668
|
+
*/ | {
|
|
669
|
+
/**
|
|
670
|
+
* Date and time at which Seam created the warning.
|
|
671
|
+
*/
|
|
173
672
|
created_at?: string | undefined;
|
|
673
|
+
/**
|
|
674
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
675
|
+
*/
|
|
174
676
|
message: string;
|
|
677
|
+
/**
|
|
678
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
679
|
+
*/
|
|
175
680
|
warning_code: 'igloo_algopin_must_be_used_within_24_hours';
|
|
176
|
-
}
|
|
681
|
+
} /**
|
|
682
|
+
* Management was transferred to another workspace.
|
|
683
|
+
*/ | {
|
|
684
|
+
/**
|
|
685
|
+
* Date and time at which Seam created the warning.
|
|
686
|
+
*/
|
|
177
687
|
created_at?: string | undefined;
|
|
688
|
+
/**
|
|
689
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
690
|
+
*/
|
|
178
691
|
message: string;
|
|
692
|
+
/**
|
|
693
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
694
|
+
*/
|
|
179
695
|
warning_code: 'management_transferred';
|
|
180
|
-
}
|
|
696
|
+
} /**
|
|
697
|
+
* A backup access code has been pulled and is being used in place of this access code.
|
|
698
|
+
*/ | {
|
|
699
|
+
/**
|
|
700
|
+
* Date and time at which Seam created the warning.
|
|
701
|
+
*/
|
|
181
702
|
created_at?: string | undefined;
|
|
703
|
+
/**
|
|
704
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
705
|
+
*/
|
|
182
706
|
message: string;
|
|
707
|
+
/**
|
|
708
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
709
|
+
*/
|
|
183
710
|
warning_code: 'using_backup_access_code';
|
|
184
|
-
}
|
|
711
|
+
} /**
|
|
712
|
+
* Access code is being deleted.
|
|
713
|
+
*/ | {
|
|
714
|
+
/**
|
|
715
|
+
* Date and time at which Seam created the warning.
|
|
716
|
+
*/
|
|
185
717
|
created_at?: string | undefined;
|
|
718
|
+
/**
|
|
719
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
720
|
+
*/
|
|
186
721
|
message: string;
|
|
722
|
+
/**
|
|
723
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
724
|
+
*/
|
|
187
725
|
warning_code: 'being_deleted';
|
|
188
|
-
}
|
|
726
|
+
} /**
|
|
727
|
+
* An unknown issue occurred with the access code.
|
|
728
|
+
*/ | {
|
|
729
|
+
/**
|
|
730
|
+
* Date and time at which Seam created the warning.
|
|
731
|
+
*/
|
|
189
732
|
created_at?: string | undefined;
|
|
733
|
+
/**
|
|
734
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
735
|
+
*/
|
|
190
736
|
message: string;
|
|
737
|
+
/**
|
|
738
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
739
|
+
*/
|
|
191
740
|
warning_code: 'unknown_issue_with_access_code';
|
|
192
741
|
}>;
|
|
742
|
+
/**
|
|
743
|
+
* Unique identifier for the Seam workspace associated with the access code.
|
|
744
|
+
*/
|
|
193
745
|
workspace_id: string;
|
|
194
746
|
};
|