@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,154 +1,523 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a [user](https://docs.seam.co/low-level-apis/access-systems/user-management) in an [access system](https://docs.seam.co/low-level-apis/access-systems).
|
|
3
|
+
*
|
|
4
|
+
* An access system user typically refers to an individual who requires access, like an employee or resident. Each user can possess multiple credentials that serve as their keys or identifiers for access. The type of credential can vary widely. For example, in the Salto system, a user can have a PIN code, a mobile app account, and a fob. In other platforms, it is not uncommon for a user to have more than one of the same credential type, such as multiple key cards. Additionally, these credentials can have a schedule or validity period.
|
|
5
|
+
*
|
|
6
|
+
* For details about how to configure users in your access system, see the corresponding [system integration guide](https://docs.seam.co/device-and-system-integration-guides#access-control-systems).
|
|
7
|
+
*/
|
|
1
8
|
export type AcsUser = {
|
|
9
|
+
/**
|
|
10
|
+
* `starts_at` and `ends_at` timestamps for the [access system user's](https://docs.seam.co/low-level-apis/access-systems/user-management) access.
|
|
11
|
+
*/
|
|
2
12
|
access_schedule?: {
|
|
13
|
+
/**
|
|
14
|
+
* Date and time at which the user's access ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
15
|
+
*/
|
|
3
16
|
ends_at: string | null;
|
|
17
|
+
/**
|
|
18
|
+
* Date and time at which the user's access starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
19
|
+
*/
|
|
4
20
|
starts_at: string;
|
|
5
21
|
} | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the [access system](https://docs.seam.co/low-level-apis/access-systems) that contains the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
24
|
+
*/
|
|
6
25
|
acs_system_id: string;
|
|
26
|
+
/**
|
|
27
|
+
* ID of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
28
|
+
*/
|
|
7
29
|
acs_user_id: string;
|
|
30
|
+
/**
|
|
31
|
+
* The ID of the connected account that is associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
32
|
+
*/
|
|
8
33
|
connected_account_id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Date and time at which the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created.
|
|
36
|
+
*/
|
|
9
37
|
created_at: string;
|
|
38
|
+
/**
|
|
39
|
+
* Display name for the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
40
|
+
*/
|
|
10
41
|
display_name: string;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated use email_address.
|
|
44
|
+
*/
|
|
11
45
|
email?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Email address of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
48
|
+
*/
|
|
12
49
|
email_address?: string | undefined;
|
|
13
|
-
|
|
50
|
+
/**
|
|
51
|
+
* Errors associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
52
|
+
*/
|
|
53
|
+
errors: Array<
|
|
54
|
+
/**
|
|
55
|
+
* Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was deleted from the [access system](https://docs.seam.co/low-level-apis/access-systems) outside of Seam.
|
|
56
|
+
*/
|
|
57
|
+
{
|
|
58
|
+
/**
|
|
59
|
+
* Date and time at which Seam created the error.
|
|
60
|
+
*/
|
|
14
61
|
created_at: string;
|
|
15
62
|
error_code: 'deleted_externally';
|
|
63
|
+
/**
|
|
64
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
65
|
+
*/
|
|
16
66
|
message: string;
|
|
17
|
-
}
|
|
67
|
+
} /**
|
|
68
|
+
* Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.
|
|
69
|
+
*/ | {
|
|
70
|
+
/**
|
|
71
|
+
* Date and time at which Seam created the error.
|
|
72
|
+
*/
|
|
18
73
|
created_at: string;
|
|
19
74
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
75
|
+
/**
|
|
76
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
77
|
+
*/
|
|
20
78
|
message: string;
|
|
21
|
-
}
|
|
79
|
+
} /**
|
|
80
|
+
* Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not created on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
|
|
81
|
+
*/ | {
|
|
82
|
+
/**
|
|
83
|
+
* Date and time at which Seam created the error.
|
|
84
|
+
*/
|
|
22
85
|
created_at: string;
|
|
23
86
|
error_code: 'failed_to_create_on_acs_system';
|
|
87
|
+
/**
|
|
88
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
89
|
+
*/
|
|
24
90
|
message: string;
|
|
25
|
-
}
|
|
91
|
+
} /**
|
|
92
|
+
* Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not updated on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
|
|
93
|
+
*/ | {
|
|
94
|
+
/**
|
|
95
|
+
* Date and time at which Seam created the error.
|
|
96
|
+
*/
|
|
26
97
|
created_at: string;
|
|
27
98
|
error_code: 'failed_to_update_on_acs_system';
|
|
99
|
+
/**
|
|
100
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
101
|
+
*/
|
|
28
102
|
message: string;
|
|
29
|
-
}
|
|
103
|
+
} /**
|
|
104
|
+
* Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was not deleted on the [access system](https://docs.seam.co/low-level-apis/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).
|
|
105
|
+
*/ | {
|
|
106
|
+
/**
|
|
107
|
+
* Date and time at which Seam created the error.
|
|
108
|
+
*/
|
|
30
109
|
created_at: string;
|
|
31
110
|
error_code: 'failed_to_delete_on_acs_system';
|
|
111
|
+
/**
|
|
112
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
113
|
+
*/
|
|
32
114
|
message: string;
|
|
33
|
-
}
|
|
115
|
+
} /**
|
|
116
|
+
* Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).
|
|
117
|
+
*/ | {
|
|
118
|
+
/**
|
|
119
|
+
* Date and time at which Seam created the error.
|
|
120
|
+
*/
|
|
34
121
|
created_at: string;
|
|
35
122
|
error_code: 'latch_conflict_with_resident_user';
|
|
123
|
+
/**
|
|
124
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
125
|
+
*/
|
|
36
126
|
message: string;
|
|
37
127
|
}>;
|
|
128
|
+
/**
|
|
129
|
+
* Brand-specific terminology for the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) type.
|
|
130
|
+
*/
|
|
38
131
|
external_type?: 'pti_user' | 'brivo_user' | 'hid_credential_manager_user' | 'salto_site_user' | 'latch_user' | 'dormakaba_community_user' | 'salto_space_user' | 'avigilon_alta_user' | 'kisi_user' | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* Display name that corresponds to the brand-specific terminology for the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) type.
|
|
134
|
+
*/
|
|
39
135
|
external_type_display_name?: string | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Full name of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
138
|
+
*/
|
|
40
139
|
full_name?: string | undefined;
|
|
140
|
+
/**
|
|
141
|
+
* ID of the HID access control system associated with the user.
|
|
142
|
+
*/
|
|
41
143
|
hid_acs_system_id?: string | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Indicates whether Seam manages the access system user.
|
|
146
|
+
*/
|
|
42
147
|
is_managed: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Indicates whether the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) is currently [suspended](https://docs.seam.co/low-level-apis/access-systems/user-management/suspending-and-unsuspending-users).
|
|
150
|
+
*/
|
|
43
151
|
is_suspended?: boolean | undefined;
|
|
44
|
-
|
|
152
|
+
/**
|
|
153
|
+
* Pending mutations associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.
|
|
154
|
+
*/
|
|
155
|
+
pending_mutations?: Array<
|
|
156
|
+
/**
|
|
157
|
+
* Seam is in the process of pushing a user creation to the integrated access system.
|
|
158
|
+
*/
|
|
159
|
+
{
|
|
160
|
+
/**
|
|
161
|
+
* Date and time at which the mutation was created.
|
|
162
|
+
*/
|
|
45
163
|
created_at: string;
|
|
164
|
+
/**
|
|
165
|
+
* Detailed description of the mutation.
|
|
166
|
+
*/
|
|
46
167
|
message: string;
|
|
168
|
+
/**
|
|
169
|
+
* Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system.
|
|
170
|
+
*/
|
|
47
171
|
mutation_code: 'creating';
|
|
48
|
-
}
|
|
172
|
+
} /**
|
|
173
|
+
* Seam is in the process of pushing a user deletion to the integrated access system.
|
|
174
|
+
*/ | {
|
|
175
|
+
/**
|
|
176
|
+
* Date and time at which the mutation was created.
|
|
177
|
+
*/
|
|
49
178
|
created_at: string;
|
|
179
|
+
/**
|
|
180
|
+
* Detailed description of the mutation.
|
|
181
|
+
*/
|
|
50
182
|
message: string;
|
|
183
|
+
/**
|
|
184
|
+
* Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system.
|
|
185
|
+
*/
|
|
51
186
|
mutation_code: 'deleting';
|
|
52
|
-
}
|
|
187
|
+
} /**
|
|
188
|
+
* User exists in Seam but has not been pushed to the provider yet. Will be created when a credential is issued.
|
|
189
|
+
*/ | {
|
|
190
|
+
/**
|
|
191
|
+
* Date and time at which the mutation was created.
|
|
192
|
+
*/
|
|
53
193
|
created_at: string;
|
|
194
|
+
/**
|
|
195
|
+
* Detailed description of the mutation.
|
|
196
|
+
*/
|
|
54
197
|
message: string;
|
|
198
|
+
/**
|
|
199
|
+
* Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time.
|
|
200
|
+
*/
|
|
55
201
|
mutation_code: 'deferring_creation';
|
|
202
|
+
/**
|
|
203
|
+
* Optional: When the user creation is scheduled to occur.
|
|
204
|
+
*/
|
|
56
205
|
scheduled_at?: string | null | undefined;
|
|
57
206
|
} | {
|
|
207
|
+
/**
|
|
208
|
+
* Date and time at which the mutation was created.
|
|
209
|
+
*/
|
|
58
210
|
created_at: string;
|
|
211
|
+
/**
|
|
212
|
+
* Old access system user information.
|
|
213
|
+
*/
|
|
59
214
|
from: {
|
|
215
|
+
/**
|
|
216
|
+
* Email address of the access system user.
|
|
217
|
+
*/
|
|
60
218
|
email_address?: string | null | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* Full name of the access system user.
|
|
221
|
+
*/
|
|
61
222
|
full_name?: string | null | undefined;
|
|
223
|
+
/**
|
|
224
|
+
* Phone number of the access system user.
|
|
225
|
+
*/
|
|
62
226
|
phone_number?: string | null | undefined;
|
|
63
227
|
};
|
|
228
|
+
/**
|
|
229
|
+
* Detailed description of the mutation.
|
|
230
|
+
*/
|
|
64
231
|
message: string;
|
|
232
|
+
/**
|
|
233
|
+
* Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system.
|
|
234
|
+
*/
|
|
65
235
|
mutation_code: 'updating_user_information';
|
|
236
|
+
/**
|
|
237
|
+
* New access system user information.
|
|
238
|
+
*/
|
|
66
239
|
to: {
|
|
240
|
+
/**
|
|
241
|
+
* Email address of the access system user.
|
|
242
|
+
*/
|
|
67
243
|
email_address?: string | null | undefined;
|
|
244
|
+
/**
|
|
245
|
+
* Full name of the access system user.
|
|
246
|
+
*/
|
|
68
247
|
full_name?: string | null | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Phone number of the access system user.
|
|
250
|
+
*/
|
|
69
251
|
phone_number?: string | null | undefined;
|
|
70
252
|
};
|
|
71
|
-
}
|
|
253
|
+
} /**
|
|
254
|
+
* Seam is in the process of pushing an access schedule update to the integrated access system.
|
|
255
|
+
*/ | {
|
|
256
|
+
/**
|
|
257
|
+
* Date and time at which the mutation was created.
|
|
258
|
+
*/
|
|
72
259
|
created_at: string;
|
|
260
|
+
/**
|
|
261
|
+
* Old access schedule information.
|
|
262
|
+
*/
|
|
73
263
|
from: {
|
|
264
|
+
/**
|
|
265
|
+
* Starting time for the access schedule.
|
|
266
|
+
*/
|
|
74
267
|
ends_at: string | null;
|
|
268
|
+
/**
|
|
269
|
+
* Starting time for the access schedule.
|
|
270
|
+
*/
|
|
75
271
|
starts_at: string | null;
|
|
76
272
|
};
|
|
273
|
+
/**
|
|
274
|
+
* Detailed description of the mutation.
|
|
275
|
+
*/
|
|
77
276
|
message: string;
|
|
277
|
+
/**
|
|
278
|
+
* Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.
|
|
279
|
+
*/
|
|
78
280
|
mutation_code: 'updating_access_schedule';
|
|
281
|
+
/**
|
|
282
|
+
* New access schedule information.
|
|
283
|
+
*/
|
|
79
284
|
to: {
|
|
285
|
+
/**
|
|
286
|
+
* Starting time for the access schedule.
|
|
287
|
+
*/
|
|
80
288
|
ends_at: string | null;
|
|
289
|
+
/**
|
|
290
|
+
* Starting time for the access schedule.
|
|
291
|
+
*/
|
|
81
292
|
starts_at: string | null;
|
|
82
293
|
};
|
|
83
|
-
}
|
|
294
|
+
} /**
|
|
295
|
+
* Seam is in the process of pushing a suspension state update to the integrated access system.
|
|
296
|
+
*/ | {
|
|
297
|
+
/**
|
|
298
|
+
* Date and time at which the mutation was created.
|
|
299
|
+
*/
|
|
84
300
|
created_at: string;
|
|
301
|
+
/**
|
|
302
|
+
* Old user suspension state information.
|
|
303
|
+
*/
|
|
85
304
|
from: {
|
|
86
305
|
is_suspended: boolean;
|
|
87
306
|
};
|
|
307
|
+
/**
|
|
308
|
+
* Detailed description of the mutation.
|
|
309
|
+
*/
|
|
88
310
|
message: string;
|
|
311
|
+
/**
|
|
312
|
+
* Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system.
|
|
313
|
+
*/
|
|
89
314
|
mutation_code: 'updating_suspension_state';
|
|
315
|
+
/**
|
|
316
|
+
* New user suspension state information.
|
|
317
|
+
*/
|
|
90
318
|
to: {
|
|
91
319
|
is_suspended: boolean;
|
|
92
320
|
};
|
|
93
|
-
}
|
|
321
|
+
} /**
|
|
322
|
+
* Seam is in the process of pushing an access group membership update to the integrated access system.
|
|
323
|
+
*/ | {
|
|
324
|
+
/**
|
|
325
|
+
* Date and time at which the mutation was created.
|
|
326
|
+
*/
|
|
94
327
|
created_at: string;
|
|
328
|
+
/**
|
|
329
|
+
* Old access group membership.
|
|
330
|
+
*/
|
|
95
331
|
from: {
|
|
332
|
+
/**
|
|
333
|
+
* Old access group ID.
|
|
334
|
+
*/
|
|
96
335
|
acs_access_group_id: string | null;
|
|
97
336
|
};
|
|
337
|
+
/**
|
|
338
|
+
* Detailed description of the mutation.
|
|
339
|
+
*/
|
|
98
340
|
message: string;
|
|
341
|
+
/**
|
|
342
|
+
* Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system.
|
|
343
|
+
*/
|
|
99
344
|
mutation_code: 'updating_group_membership';
|
|
345
|
+
/**
|
|
346
|
+
* New access group membership.
|
|
347
|
+
*/
|
|
100
348
|
to: {
|
|
349
|
+
/**
|
|
350
|
+
* New access group ID.
|
|
351
|
+
*/
|
|
101
352
|
acs_access_group_id: string | null;
|
|
102
353
|
};
|
|
103
|
-
}
|
|
354
|
+
} /**
|
|
355
|
+
* A scheduled access group membership change is pending for this user.
|
|
356
|
+
*/ | {
|
|
357
|
+
/**
|
|
358
|
+
* ID of the access group involved in the scheduled change.
|
|
359
|
+
*/
|
|
104
360
|
acs_access_group_id: string;
|
|
361
|
+
/**
|
|
362
|
+
* Date and time at which the mutation was created.
|
|
363
|
+
*/
|
|
105
364
|
created_at: string;
|
|
365
|
+
/**
|
|
366
|
+
* Detailed description of the mutation.
|
|
367
|
+
*/
|
|
106
368
|
message: string;
|
|
369
|
+
/**
|
|
370
|
+
* Mutation code to indicate that a scheduled access group membership change is pending for this user.
|
|
371
|
+
*/
|
|
107
372
|
mutation_code: 'deferring_group_membership_update';
|
|
373
|
+
/**
|
|
374
|
+
* Whether the user is scheduled to be added to or removed from the access group.
|
|
375
|
+
*/
|
|
108
376
|
variant: 'adding' | 'removing';
|
|
109
|
-
}
|
|
377
|
+
} /**
|
|
378
|
+
* Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.
|
|
379
|
+
*/ | {
|
|
380
|
+
/**
|
|
381
|
+
* Date and time at which the mutation was created.
|
|
382
|
+
*/
|
|
110
383
|
created_at: string;
|
|
384
|
+
/**
|
|
385
|
+
* Previous credential assignment.
|
|
386
|
+
*/
|
|
111
387
|
from: {
|
|
388
|
+
/**
|
|
389
|
+
* Previous credential ID.
|
|
390
|
+
*/
|
|
112
391
|
acs_credential_id: string | null;
|
|
113
392
|
};
|
|
393
|
+
/**
|
|
394
|
+
* Detailed description of the mutation.
|
|
395
|
+
*/
|
|
114
396
|
message: string;
|
|
397
|
+
/**
|
|
398
|
+
* Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.
|
|
399
|
+
*/
|
|
115
400
|
mutation_code: 'updating_credential_assignment';
|
|
401
|
+
/**
|
|
402
|
+
* New credential assignment.
|
|
403
|
+
*/
|
|
116
404
|
to: {
|
|
405
|
+
/**
|
|
406
|
+
* New credential ID.
|
|
407
|
+
*/
|
|
117
408
|
acs_credential_id: string | null;
|
|
118
409
|
};
|
|
119
410
|
}> | undefined;
|
|
411
|
+
/**
|
|
412
|
+
* Phone number of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).
|
|
413
|
+
*/
|
|
120
414
|
phone_number?: string | undefined;
|
|
415
|
+
/**
|
|
416
|
+
* Salto KS-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
417
|
+
*/
|
|
121
418
|
salto_ks_metadata?: {
|
|
419
|
+
/**
|
|
420
|
+
* Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked.
|
|
421
|
+
*/
|
|
122
422
|
is_subscribed?: boolean | undefined;
|
|
123
423
|
} | undefined;
|
|
424
|
+
/**
|
|
425
|
+
* Salto Space-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
426
|
+
*/
|
|
124
427
|
salto_space_metadata?: {
|
|
428
|
+
/**
|
|
429
|
+
* Indicates whether AuditOpenings is enabled for the user in the Salto Space access system.
|
|
430
|
+
*/
|
|
125
431
|
audit_openings?: boolean | undefined;
|
|
432
|
+
/**
|
|
433
|
+
* User ID in the Salto Space access system.
|
|
434
|
+
*/
|
|
126
435
|
user_id?: string | undefined;
|
|
127
436
|
} | undefined;
|
|
437
|
+
/**
|
|
438
|
+
* Email address of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
439
|
+
*/
|
|
128
440
|
user_identity_email_address?: string | null | undefined;
|
|
441
|
+
/**
|
|
442
|
+
* Full name of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
443
|
+
*/
|
|
129
444
|
user_identity_full_name?: string | null | undefined;
|
|
445
|
+
/**
|
|
446
|
+
* ID of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
447
|
+
*/
|
|
130
448
|
user_identity_id?: string | undefined;
|
|
449
|
+
/**
|
|
450
|
+
* Phone number of the user identity associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).
|
|
451
|
+
*/
|
|
131
452
|
user_identity_phone_number?: string | null | undefined;
|
|
132
|
-
|
|
453
|
+
/**
|
|
454
|
+
* Warnings associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
455
|
+
*/
|
|
456
|
+
warnings: Array<
|
|
457
|
+
/**
|
|
458
|
+
* Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) is being deleted from the [access system](https://docs.seam.co/low-level-apis/access-systems). This is a temporary state, and the access system user will be deleted shortly.
|
|
459
|
+
*/
|
|
460
|
+
{
|
|
461
|
+
/**
|
|
462
|
+
* Date and time at which Seam created the warning.
|
|
463
|
+
*/
|
|
133
464
|
created_at: string;
|
|
465
|
+
/**
|
|
466
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
467
|
+
*/
|
|
134
468
|
message: string;
|
|
135
469
|
warning_code: 'being_deleted';
|
|
136
|
-
}
|
|
470
|
+
} /**
|
|
471
|
+
* Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) is not subscribed on Salto KS, so they cannot unlock doors or perform any actions. This occurs when the their access schedule hasn’t started yet, if their access schedule has ended, if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.
|
|
472
|
+
*/ | {
|
|
473
|
+
/**
|
|
474
|
+
* Date and time at which Seam created the warning.
|
|
475
|
+
*/
|
|
137
476
|
created_at: string;
|
|
477
|
+
/**
|
|
478
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
479
|
+
*/
|
|
138
480
|
message: string;
|
|
139
481
|
warning_code: 'salto_ks_user_not_subscribed';
|
|
140
|
-
}
|
|
482
|
+
} /**
|
|
483
|
+
* Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) exists but is not currently able to gain access—for example, because their access schedule has not started yet or has ended, the access system has reached its limit for active users, or they have been unsubscribed or deactivated. Refer to the warning message for the provider-specific reason. This is distinct from `is_suspended`, which indicates the user has been explicitly blocked.
|
|
484
|
+
*/ | {
|
|
485
|
+
/**
|
|
486
|
+
* Date and time at which Seam created the warning.
|
|
487
|
+
*/
|
|
141
488
|
created_at: string;
|
|
489
|
+
/**
|
|
490
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
491
|
+
*/
|
|
142
492
|
message: string;
|
|
143
493
|
warning_code: 'acs_user_inactive';
|
|
144
|
-
}
|
|
494
|
+
} /**
|
|
495
|
+
* An unknown issue occurred while syncing the state of this [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.
|
|
496
|
+
*/ | {
|
|
497
|
+
/**
|
|
498
|
+
* Date and time at which Seam created the warning.
|
|
499
|
+
*/
|
|
145
500
|
created_at: string;
|
|
501
|
+
/**
|
|
502
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
503
|
+
*/
|
|
146
504
|
message: string;
|
|
147
505
|
warning_code: 'unknown_issue_with_acs_user';
|
|
148
|
-
}
|
|
506
|
+
} /**
|
|
507
|
+
* Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) was created on Latch Mission Control. Please use the Latch Mission Control to manage this user.
|
|
508
|
+
*/ | {
|
|
509
|
+
/**
|
|
510
|
+
* Date and time at which Seam created the warning.
|
|
511
|
+
*/
|
|
149
512
|
created_at: string;
|
|
513
|
+
/**
|
|
514
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
515
|
+
*/
|
|
150
516
|
message: string;
|
|
151
517
|
warning_code: 'latch_resident_user';
|
|
152
518
|
}>;
|
|
519
|
+
/**
|
|
520
|
+
* ID of the workspace that contains the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).
|
|
521
|
+
*/
|
|
153
522
|
workspace_id: string;
|
|
154
523
|
};
|