@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
|
@@ -3,162 +3,418 @@
|
|
|
3
3
|
* Do not edit this file.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Represents an unmanaged Access Grant. Unmanaged Access Grants do not have client sessions, instant keys, customization profiles, or keys.
|
|
8
|
+
*/
|
|
6
9
|
export type UnmanagedAccessGrant = {
|
|
10
|
+
/**
|
|
11
|
+
* ID of the Access Grant.
|
|
12
|
+
*/
|
|
7
13
|
access_grant_id: string
|
|
8
14
|
|
|
15
|
+
/**
|
|
16
|
+
* IDs of the access methods created for the Access Grant.
|
|
17
|
+
*/
|
|
9
18
|
access_method_ids: Array<string>
|
|
10
19
|
|
|
20
|
+
/**
|
|
21
|
+
* Date and time at which the Access Grant was created.
|
|
22
|
+
*/
|
|
11
23
|
created_at: string
|
|
12
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Display name of the Access Grant.
|
|
27
|
+
*/
|
|
13
28
|
display_name: string
|
|
14
29
|
|
|
30
|
+
/**
|
|
31
|
+
* Date and time at which the Access Grant ends.
|
|
32
|
+
*/
|
|
15
33
|
ends_at: string | null
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Errors associated with the [access grant](https://docs.seam.co/use-cases/granting-access).
|
|
36
|
+
*/
|
|
37
|
+
errors: Array<
|
|
38
|
+
/**
|
|
39
|
+
* Indicates that Seam could not create one or more of the requested access methods for the access grant.
|
|
40
|
+
*/
|
|
41
|
+
{
|
|
42
|
+
/**
|
|
43
|
+
* Date and time at which Seam created the error.
|
|
44
|
+
*/
|
|
45
|
+
created_at: string
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
49
|
+
*/
|
|
50
|
+
error_code: 'cannot_create_requested_access_methods'
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
54
|
+
*/
|
|
55
|
+
message: string
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* IDs of the devices that did not receive an access code at grant creation. Use these to identify which specific devices failed when the message reports a partial failure.
|
|
59
|
+
*/
|
|
60
|
+
missing_device_ids?: Array<string> | undefined
|
|
61
|
+
}
|
|
62
|
+
>
|
|
25
63
|
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated Use `space_ids`.
|
|
66
|
+
*/
|
|
26
67
|
location_ids: Array<string>
|
|
27
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Name of the Access Grant. If not provided, the display name will be computed.
|
|
71
|
+
*/
|
|
28
72
|
name: string | null
|
|
73
|
+
/**
|
|
74
|
+
* List of pending mutations for the access grant. This shows updates that are in progress.
|
|
75
|
+
*/
|
|
29
76
|
pending_mutations: Array<
|
|
77
|
+
/**
|
|
78
|
+
* Seam is in the process of updating the devices/spaces associated with this access grant.
|
|
79
|
+
*/
|
|
30
80
|
| {
|
|
81
|
+
/**
|
|
82
|
+
* Date and time at which the mutation was created.
|
|
83
|
+
*/
|
|
31
84
|
created_at: string
|
|
32
85
|
|
|
86
|
+
/**
|
|
87
|
+
* Previous location configuration.
|
|
88
|
+
*/
|
|
33
89
|
from: {
|
|
90
|
+
/**
|
|
91
|
+
* Previous device IDs where access codes existed.
|
|
92
|
+
*/
|
|
34
93
|
device_ids: Array<string>
|
|
35
94
|
}
|
|
36
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Detailed description of the mutation.
|
|
98
|
+
*/
|
|
37
99
|
message: string
|
|
38
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant.
|
|
103
|
+
*/
|
|
39
104
|
mutation_code: 'updating_spaces'
|
|
40
105
|
|
|
106
|
+
/**
|
|
107
|
+
* New location configuration.
|
|
108
|
+
*/
|
|
41
109
|
to: {
|
|
110
|
+
/**
|
|
111
|
+
* Common code key to ensure PIN code reuse across devices.
|
|
112
|
+
*/
|
|
42
113
|
common_code_key?: string | null | undefined
|
|
114
|
+
/**
|
|
115
|
+
* New device IDs where access codes should be created.
|
|
116
|
+
*/
|
|
43
117
|
device_ids: Array<string>
|
|
44
118
|
}
|
|
45
|
-
}
|
|
119
|
+
} /**
|
|
120
|
+
* Seam is in the process of updating the access times for this access grant.
|
|
121
|
+
*/
|
|
46
122
|
| {
|
|
123
|
+
/**
|
|
124
|
+
* IDs of the access methods being updated.
|
|
125
|
+
*/
|
|
47
126
|
access_method_ids: Array<string>
|
|
48
127
|
|
|
128
|
+
/**
|
|
129
|
+
* Date and time at which the mutation was created.
|
|
130
|
+
*/
|
|
49
131
|
created_at: string
|
|
50
132
|
|
|
133
|
+
/**
|
|
134
|
+
* Previous access time configuration.
|
|
135
|
+
*/
|
|
51
136
|
from: {
|
|
137
|
+
/**
|
|
138
|
+
* Previous end time for access.
|
|
139
|
+
*/
|
|
52
140
|
ends_at: string | null
|
|
141
|
+
/**
|
|
142
|
+
* Previous start time for access.
|
|
143
|
+
*/
|
|
53
144
|
starts_at: string | null
|
|
54
145
|
}
|
|
55
146
|
|
|
147
|
+
/**
|
|
148
|
+
* Detailed description of the mutation.
|
|
149
|
+
*/
|
|
56
150
|
message: string
|
|
57
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Mutation code to indicate that Seam is in the process of updating the access times for this access grant.
|
|
154
|
+
*/
|
|
58
155
|
mutation_code: 'updating_access_times'
|
|
59
156
|
|
|
157
|
+
/**
|
|
158
|
+
* New access time configuration.
|
|
159
|
+
*/
|
|
60
160
|
to: {
|
|
161
|
+
/**
|
|
162
|
+
* New end time for access.
|
|
163
|
+
*/
|
|
61
164
|
ends_at: string | null
|
|
165
|
+
/**
|
|
166
|
+
* New start time for access.
|
|
167
|
+
*/
|
|
62
168
|
starts_at: string | null
|
|
63
169
|
}
|
|
64
170
|
}
|
|
65
171
|
>
|
|
66
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Access methods that the user requested for the Access Grant.
|
|
175
|
+
*/
|
|
67
176
|
requested_access_methods: Array<{
|
|
177
|
+
/**
|
|
178
|
+
* Specific PIN code to use for this access method. Only applicable when mode is 'code'.
|
|
179
|
+
*/
|
|
68
180
|
code?: string | undefined
|
|
181
|
+
/**
|
|
182
|
+
* IDs of the access methods created for the requested access method.
|
|
183
|
+
*/
|
|
69
184
|
created_access_method_ids: Array<string>
|
|
70
185
|
|
|
186
|
+
/**
|
|
187
|
+
* Date and time at which the requested access method was added to the Access Grant.
|
|
188
|
+
*/
|
|
71
189
|
created_at: string
|
|
72
190
|
|
|
191
|
+
/**
|
|
192
|
+
* Display name of the access method.
|
|
193
|
+
*/
|
|
73
194
|
display_name: string
|
|
74
195
|
|
|
196
|
+
/**
|
|
197
|
+
* Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified.
|
|
198
|
+
*/
|
|
75
199
|
instant_key_max_use_count?: number | undefined
|
|
200
|
+
/**
|
|
201
|
+
* Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
202
|
+
*/
|
|
76
203
|
mode: 'code' | 'card' | 'mobile_key' | 'cloud_key'
|
|
77
204
|
}>
|
|
78
205
|
|
|
206
|
+
/**
|
|
207
|
+
* Reservation key for the access grant.
|
|
208
|
+
*/
|
|
79
209
|
reservation_key?: string | undefined
|
|
210
|
+
/**
|
|
211
|
+
* IDs of the spaces to which the Access Grant gives access.
|
|
212
|
+
*/
|
|
80
213
|
space_ids: Array<string>
|
|
81
214
|
|
|
215
|
+
/**
|
|
216
|
+
* Date and time at which the Access Grant starts.
|
|
217
|
+
*/
|
|
82
218
|
starts_at: string
|
|
83
219
|
|
|
220
|
+
/**
|
|
221
|
+
* ID of user identity to which the Access Grant gives access.
|
|
222
|
+
*/
|
|
84
223
|
user_identity_id?: string | undefined
|
|
224
|
+
/**
|
|
225
|
+
* Warnings associated with the [access grant](https://docs.seam.co/use-cases/granting-access).
|
|
226
|
+
*/
|
|
85
227
|
warnings: Array<
|
|
228
|
+
/**
|
|
229
|
+
* Indicates that the [access grant](https://docs.seam.co/use-cases/granting-access) is being deleted.
|
|
230
|
+
*/
|
|
86
231
|
| {
|
|
232
|
+
/**
|
|
233
|
+
* Date and time at which Seam created the warning.
|
|
234
|
+
*/
|
|
87
235
|
created_at: string
|
|
88
236
|
|
|
237
|
+
/**
|
|
238
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
239
|
+
*/
|
|
89
240
|
message: string
|
|
90
241
|
|
|
242
|
+
/**
|
|
243
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
244
|
+
*/
|
|
91
245
|
warning_code: 'being_deleted'
|
|
92
|
-
}
|
|
246
|
+
} /**
|
|
247
|
+
* Indicates that the access grant should have access to more locations than it currently does. Access methods are being created for the missing locations.
|
|
248
|
+
*/
|
|
93
249
|
| {
|
|
250
|
+
/**
|
|
251
|
+
* Date and time at which Seam created the warning.
|
|
252
|
+
*/
|
|
94
253
|
created_at: string
|
|
95
254
|
|
|
255
|
+
/**
|
|
256
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
257
|
+
*/
|
|
96
258
|
message: string
|
|
97
259
|
|
|
260
|
+
/**
|
|
261
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
262
|
+
*/
|
|
98
263
|
warning_code: 'underprovisioned_access'
|
|
99
|
-
}
|
|
264
|
+
} /**
|
|
265
|
+
* Indicates that the access grant has access to locations it should not have. Access methods are being removed from the extra locations.
|
|
266
|
+
*/
|
|
100
267
|
| {
|
|
268
|
+
/**
|
|
269
|
+
* Date and time at which Seam created the warning.
|
|
270
|
+
*/
|
|
101
271
|
created_at: string
|
|
102
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Devices whose access codes could not be revoked during reconciliation. Present when the provider does not support revoking an offline access code (e.g. Dormakaba oracode with exhausted override budget).
|
|
275
|
+
*/
|
|
103
276
|
failed_devices?:
|
|
104
277
|
| Array<{
|
|
278
|
+
/**
|
|
279
|
+
* Device whose access code could not be revoked.
|
|
280
|
+
*/
|
|
105
281
|
device_id: string
|
|
106
282
|
|
|
283
|
+
/**
|
|
284
|
+
* Reason the access code could not be revoked (e.g. `offline_access_code_not_revocable`).
|
|
285
|
+
*/
|
|
107
286
|
error_code: string
|
|
108
287
|
|
|
288
|
+
/**
|
|
289
|
+
* Human-readable description of why revocation failed.
|
|
290
|
+
*/
|
|
109
291
|
message: string
|
|
110
292
|
}>
|
|
111
293
|
| undefined
|
|
294
|
+
/**
|
|
295
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
296
|
+
*/
|
|
112
297
|
message: string
|
|
113
298
|
|
|
299
|
+
/**
|
|
300
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
301
|
+
*/
|
|
114
302
|
warning_code: 'overprovisioned_access'
|
|
115
|
-
}
|
|
303
|
+
} /**
|
|
304
|
+
* Indicates that the access times for this [access grant](https://docs.seam.co/use-cases/granting-access) are being updated.
|
|
305
|
+
*/
|
|
116
306
|
| {
|
|
307
|
+
/**
|
|
308
|
+
* IDs of the access methods being updated.
|
|
309
|
+
*/
|
|
117
310
|
access_method_ids: Array<string>
|
|
118
311
|
|
|
312
|
+
/**
|
|
313
|
+
* Date and time at which Seam created the warning.
|
|
314
|
+
*/
|
|
119
315
|
created_at: string
|
|
120
316
|
|
|
317
|
+
/**
|
|
318
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
319
|
+
*/
|
|
121
320
|
message: string
|
|
122
321
|
|
|
322
|
+
/**
|
|
323
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
324
|
+
*/
|
|
123
325
|
warning_code: 'updating_access_times'
|
|
124
|
-
}
|
|
326
|
+
} /**
|
|
327
|
+
* Indicates that the requested PIN code was already in use on a device, so a different code was assigned.
|
|
328
|
+
*/
|
|
125
329
|
| {
|
|
330
|
+
/**
|
|
331
|
+
* Date and time at which Seam created the warning.
|
|
332
|
+
*/
|
|
126
333
|
created_at: string
|
|
127
334
|
|
|
335
|
+
/**
|
|
336
|
+
* ID of the device where the requested code was unavailable.
|
|
337
|
+
*/
|
|
128
338
|
device_id: string
|
|
129
339
|
|
|
340
|
+
/**
|
|
341
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
342
|
+
*/
|
|
130
343
|
message: string
|
|
131
344
|
|
|
345
|
+
/**
|
|
346
|
+
* The new PIN code that was assigned instead.
|
|
347
|
+
*/
|
|
132
348
|
new_code: string
|
|
133
349
|
|
|
350
|
+
/**
|
|
351
|
+
* The originally requested PIN code that was unavailable.
|
|
352
|
+
*/
|
|
134
353
|
original_code: string
|
|
135
354
|
|
|
355
|
+
/**
|
|
356
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
357
|
+
*/
|
|
136
358
|
warning_code: 'requested_code_unavailable'
|
|
137
|
-
}
|
|
359
|
+
} /**
|
|
360
|
+
* Indicates that a device in the access grant does not support access codes and was excluded from code materialization.
|
|
361
|
+
*/
|
|
138
362
|
| {
|
|
363
|
+
/**
|
|
364
|
+
* Date and time at which Seam created the warning.
|
|
365
|
+
*/
|
|
139
366
|
created_at: string
|
|
140
367
|
|
|
368
|
+
/**
|
|
369
|
+
* ID of the device that does not support access codes.
|
|
370
|
+
*/
|
|
141
371
|
device_id: string
|
|
142
372
|
|
|
373
|
+
/**
|
|
374
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
375
|
+
*/
|
|
143
376
|
message: string
|
|
144
377
|
|
|
378
|
+
/**
|
|
379
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
380
|
+
*/
|
|
145
381
|
warning_code: 'device_does_not_support_access_codes'
|
|
146
|
-
}
|
|
382
|
+
} /**
|
|
383
|
+
* Indicates that a device in the access grant cannot program an access code for the grant's time range because of device-specific time constraints.
|
|
384
|
+
*/
|
|
147
385
|
| {
|
|
386
|
+
/**
|
|
387
|
+
* Date and time at which Seam created the warning.
|
|
388
|
+
*/
|
|
148
389
|
created_at: string
|
|
149
390
|
|
|
391
|
+
/**
|
|
392
|
+
* ID of the device whose time constraints the access grant violates.
|
|
393
|
+
*/
|
|
150
394
|
device_id: string
|
|
151
395
|
|
|
396
|
+
/**
|
|
397
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
398
|
+
*/
|
|
152
399
|
message: string
|
|
153
400
|
|
|
401
|
+
/**
|
|
402
|
+
* Specific reason why the grant's times are not programmable on the device.
|
|
403
|
+
*/
|
|
154
404
|
reason:
|
|
155
405
|
| 'duration_exceeds_max'
|
|
156
406
|
| 'times_do_not_match_slots'
|
|
157
407
|
| 'ongoing_not_supported'
|
|
158
408
|
|
|
409
|
+
/**
|
|
410
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
411
|
+
*/
|
|
159
412
|
warning_code: 'device_time_constraints_violated'
|
|
160
413
|
}
|
|
161
414
|
>
|
|
162
415
|
|
|
416
|
+
/**
|
|
417
|
+
* ID of the Seam workspace associated with the Access Grant.
|
|
418
|
+
*/
|
|
163
419
|
workspace_id: string
|
|
164
420
|
}
|