@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,35 +3,104 @@
|
|
|
3
3
|
* Do not edit this file.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Means by which an [access control system user](https://docs.seam.co/low-level-apis/access-systems/user-management) gains access at an [entrance](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details). The `acs_credential` object represents a [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) that provides an ACS user access within an [access control system](https://docs.seam.co/low-level-apis/access-systems).
|
|
8
|
+
*
|
|
9
|
+
* An access control system generally uses digital means of access to authorize a user trying to get through a specific entrance. Examples of credentials include plastic key cards, mobile keys, biometric identifiers, and PIN codes. The electronic nature of these credentials, as well as the fact that access is centralized, enables both the rapid provisioning and rescinding of access and the ability to compile access audit logs.
|
|
10
|
+
*
|
|
11
|
+
* For each `acs_credential`, you define the access method. You can also specify additional properties, such as a PIN code, depending on the credential type.
|
|
12
|
+
*
|
|
13
|
+
* For granting a person access to a space, [Access Grants](https://docs.seam.co/use-cases/granting-access) are the default and recommended approach. Use the lower-level ACS credential API directly only when you specifically need to manage individual credentials.
|
|
14
|
+
*/
|
|
6
15
|
export type AcsCredential = {
|
|
16
|
+
/**
|
|
17
|
+
* Access method for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
18
|
+
*/
|
|
7
19
|
access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key'
|
|
8
20
|
|
|
21
|
+
/**
|
|
22
|
+
* ID of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
23
|
+
*/
|
|
9
24
|
acs_credential_id: string
|
|
10
25
|
|
|
26
|
+
/**
|
|
27
|
+
* ID of the credential pool to which the credential belongs.
|
|
28
|
+
*/
|
|
11
29
|
acs_credential_pool_id?: string | undefined
|
|
30
|
+
/**
|
|
31
|
+
* ID of the [access control system](https://docs.seam.co/low-level-apis/access-systems) that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
32
|
+
*/
|
|
12
33
|
acs_system_id: string
|
|
13
34
|
|
|
35
|
+
/**
|
|
36
|
+
* ID of the [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
|
|
37
|
+
*/
|
|
14
38
|
acs_user_id?: string | undefined
|
|
39
|
+
/**
|
|
40
|
+
* Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
41
|
+
*/
|
|
15
42
|
assa_abloy_vostio_metadata?:
|
|
16
43
|
| {
|
|
44
|
+
/**
|
|
45
|
+
* Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
|
|
46
|
+
*/
|
|
17
47
|
auto_join?: boolean | undefined
|
|
48
|
+
/**
|
|
49
|
+
* Names of the doors to which to grant access in the Vostio access system.
|
|
50
|
+
*/
|
|
18
51
|
door_names?: Array<string> | undefined
|
|
52
|
+
/**
|
|
53
|
+
* Endpoint ID in the Vostio access system.
|
|
54
|
+
*/
|
|
19
55
|
endpoint_id?: string | undefined
|
|
56
|
+
/**
|
|
57
|
+
* Key ID in the Vostio access system.
|
|
58
|
+
*/
|
|
20
59
|
key_id?: string | undefined
|
|
60
|
+
/**
|
|
61
|
+
* Key issuing request ID in the Vostio access system.
|
|
62
|
+
*/
|
|
21
63
|
key_issuing_request_id?: string | undefined
|
|
64
|
+
/**
|
|
65
|
+
* IDs of the guest entrances to override in the Vostio access system.
|
|
66
|
+
*/
|
|
22
67
|
override_guest_acs_entrance_ids?: Array<string> | undefined
|
|
23
68
|
}
|
|
24
69
|
| undefined
|
|
70
|
+
/**
|
|
71
|
+
* Number of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
72
|
+
*/
|
|
25
73
|
card_number?: string | null | undefined
|
|
74
|
+
/**
|
|
75
|
+
* Access (PIN) code for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
76
|
+
*/
|
|
26
77
|
code?: string | null | undefined
|
|
78
|
+
/**
|
|
79
|
+
* ID of the [connected account](https://docs.seam.co/core-concepts/connected-accounts) to which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
|
|
80
|
+
*/
|
|
27
81
|
connected_account_id: string
|
|
28
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
|
|
85
|
+
*/
|
|
29
86
|
created_at: string
|
|
30
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Display name that corresponds to the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
90
|
+
*/
|
|
31
91
|
display_name: string
|
|
32
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`.
|
|
95
|
+
*/
|
|
33
96
|
ends_at?: string | undefined
|
|
97
|
+
/**
|
|
98
|
+
* Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
99
|
+
*/
|
|
34
100
|
errors: Array<{
|
|
101
|
+
/**
|
|
102
|
+
* Date and time at which Seam created the error.
|
|
103
|
+
*/
|
|
35
104
|
created_at: string
|
|
36
105
|
|
|
37
106
|
error_code: string
|
|
@@ -39,6 +108,9 @@ export type AcsCredential = {
|
|
|
39
108
|
message: string
|
|
40
109
|
}>
|
|
41
110
|
|
|
111
|
+
/**
|
|
112
|
+
* Brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type. Supported values: `pti_card`, `brivo_credential`, `hid_credential`, `visionline_card`.
|
|
113
|
+
*/
|
|
42
114
|
external_type?:
|
|
43
115
|
| 'pti_card'
|
|
44
116
|
| 'brivo_credential'
|
|
@@ -54,74 +126,207 @@ export type AcsCredential = {
|
|
|
54
126
|
| 'avigilon_alta_credential'
|
|
55
127
|
| 'kisi_credential'
|
|
56
128
|
| undefined
|
|
129
|
+
/**
|
|
130
|
+
* Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
131
|
+
*/
|
|
57
132
|
external_type_display_name?: string | undefined
|
|
133
|
+
/**
|
|
134
|
+
* Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.
|
|
135
|
+
*/
|
|
58
136
|
is_issued?: boolean | undefined
|
|
137
|
+
/**
|
|
138
|
+
* Indicates whether the latest state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been synced from Seam to the provider.
|
|
139
|
+
*/
|
|
59
140
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined
|
|
141
|
+
/**
|
|
142
|
+
* Indicates whether Seam manages the credential.
|
|
143
|
+
*/
|
|
60
144
|
is_managed: boolean
|
|
61
145
|
|
|
146
|
+
/**
|
|
147
|
+
* Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is a [multi-phone sync credential](https://docs.seam.co/capability-guides/mobile-access/issuing-mobile-credentials-from-an-access-control-system#what-are-multi-phone-sync-credentials).
|
|
148
|
+
*/
|
|
62
149
|
is_multi_phone_sync_credential?: boolean | undefined
|
|
150
|
+
/**
|
|
151
|
+
* Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) can only be used once. If `true`, the code becomes invalid after the first use.
|
|
152
|
+
*/
|
|
63
153
|
is_one_time_use?: boolean | undefined
|
|
154
|
+
/**
|
|
155
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was encoded onto a card.
|
|
156
|
+
*/
|
|
64
157
|
issued_at?: string | null | undefined
|
|
158
|
+
/**
|
|
159
|
+
* Date and time at which the state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was most recently synced from Seam to the provider.
|
|
160
|
+
*/
|
|
65
161
|
latest_desired_state_synced_with_provider_at?: string | null | undefined
|
|
162
|
+
/**
|
|
163
|
+
* ID of the parent [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
164
|
+
*/
|
|
66
165
|
parent_acs_credential_id?: string | undefined
|
|
166
|
+
/**
|
|
167
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) validity starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
168
|
+
*/
|
|
67
169
|
starts_at?: string | undefined
|
|
170
|
+
/**
|
|
171
|
+
* ID of the [user identity](https://docs.seam.co/api/user_identities) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs.
|
|
172
|
+
*/
|
|
68
173
|
user_identity_id?: string | undefined
|
|
174
|
+
/**
|
|
175
|
+
* Visionline-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
176
|
+
*/
|
|
69
177
|
visionline_metadata?:
|
|
70
178
|
| {
|
|
179
|
+
/**
|
|
180
|
+
* Indicates whether the credential should auto-join. For an auto-join credential, Seam automatically issues an override card if there are no other cards and a joiner card if there are existing cards on the doors.
|
|
181
|
+
*/
|
|
71
182
|
auto_join?: boolean | undefined
|
|
183
|
+
/**
|
|
184
|
+
* Card function type in the Visionline access system.
|
|
185
|
+
*/
|
|
72
186
|
card_function_type?: 'guest' | 'staff' | undefined
|
|
187
|
+
/**
|
|
188
|
+
* ID of the card in the Visionline access system.
|
|
189
|
+
*/
|
|
73
190
|
card_id?: string | undefined
|
|
191
|
+
/**
|
|
192
|
+
* Common entrance IDs in the Visionline access system.
|
|
193
|
+
*/
|
|
74
194
|
common_acs_entrance_ids?: Array<string> | undefined
|
|
195
|
+
/**
|
|
196
|
+
* ID of the credential in the Visionline access system.
|
|
197
|
+
*/
|
|
75
198
|
credential_id?: string | undefined
|
|
199
|
+
/**
|
|
200
|
+
* Guest entrance IDs in the Visionline access system.
|
|
201
|
+
*/
|
|
76
202
|
guest_acs_entrance_ids?: Array<string> | undefined
|
|
203
|
+
/**
|
|
204
|
+
* Indicates whether the credential is valid.
|
|
205
|
+
*/
|
|
77
206
|
is_valid?: boolean | undefined
|
|
207
|
+
/**
|
|
208
|
+
* IDs of the credentials to which you want to join.
|
|
209
|
+
*/
|
|
78
210
|
joiner_acs_credential_ids?: Array<string> | undefined
|
|
79
211
|
}
|
|
80
212
|
| undefined
|
|
213
|
+
/**
|
|
214
|
+
* Warnings associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
215
|
+
*/
|
|
81
216
|
warnings: Array<
|
|
217
|
+
/**
|
|
218
|
+
* Indicates that the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is waiting to be issued.
|
|
219
|
+
*/
|
|
82
220
|
| {
|
|
221
|
+
/**
|
|
222
|
+
* Date and time at which Seam created the warning.
|
|
223
|
+
*/
|
|
83
224
|
created_at: string
|
|
84
225
|
|
|
226
|
+
/**
|
|
227
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
228
|
+
*/
|
|
85
229
|
message: string
|
|
86
230
|
|
|
231
|
+
/**
|
|
232
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
233
|
+
*/
|
|
87
234
|
warning_code: 'waiting_to_be_issued'
|
|
88
|
-
}
|
|
235
|
+
} /**
|
|
236
|
+
* Indicates that the schedule of one of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials)'s children was modified externally.
|
|
237
|
+
*/
|
|
89
238
|
| {
|
|
239
|
+
/**
|
|
240
|
+
* Date and time at which Seam created the warning.
|
|
241
|
+
*/
|
|
90
242
|
created_at: string
|
|
91
243
|
|
|
244
|
+
/**
|
|
245
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
246
|
+
*/
|
|
92
247
|
message: string
|
|
93
248
|
|
|
249
|
+
/**
|
|
250
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
251
|
+
*/
|
|
94
252
|
warning_code: 'schedule_externally_modified'
|
|
95
|
-
}
|
|
253
|
+
} /**
|
|
254
|
+
* Indicates that the schedule of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was modified to avoid creating a credential with a start date in the past.
|
|
255
|
+
*/
|
|
96
256
|
| {
|
|
257
|
+
/**
|
|
258
|
+
* Date and time at which Seam created the warning.
|
|
259
|
+
*/
|
|
97
260
|
created_at: string
|
|
98
261
|
|
|
262
|
+
/**
|
|
263
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
264
|
+
*/
|
|
99
265
|
message: string
|
|
100
266
|
|
|
267
|
+
/**
|
|
268
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
269
|
+
*/
|
|
101
270
|
warning_code: 'schedule_modified'
|
|
102
|
-
}
|
|
271
|
+
} /**
|
|
272
|
+
* Indicates that the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is being deleted.
|
|
273
|
+
*/
|
|
103
274
|
| {
|
|
275
|
+
/**
|
|
276
|
+
* Date and time at which Seam created the warning.
|
|
277
|
+
*/
|
|
104
278
|
created_at: string
|
|
105
279
|
|
|
280
|
+
/**
|
|
281
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
282
|
+
*/
|
|
106
283
|
message: string
|
|
107
284
|
|
|
285
|
+
/**
|
|
286
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
287
|
+
*/
|
|
108
288
|
warning_code: 'being_deleted'
|
|
109
|
-
}
|
|
289
|
+
} /**
|
|
290
|
+
* An unknown issue occurred while syncing the state of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) with the provider. This issue may affect the proper functioning of the credential.
|
|
291
|
+
*/
|
|
110
292
|
| {
|
|
293
|
+
/**
|
|
294
|
+
* Date and time at which Seam created the warning.
|
|
295
|
+
*/
|
|
111
296
|
created_at: string
|
|
112
297
|
|
|
298
|
+
/**
|
|
299
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
300
|
+
*/
|
|
113
301
|
message: string
|
|
114
302
|
|
|
303
|
+
/**
|
|
304
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
305
|
+
*/
|
|
115
306
|
warning_code: 'unknown_issue_with_acs_credential'
|
|
116
|
-
}
|
|
307
|
+
} /**
|
|
308
|
+
* Access permissions for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) have changed. [Reissue](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners/creating-and-encoding-card-based-credentials) (re-encode) the credential. This issue may affect the proper functioning of the credential.
|
|
309
|
+
*/
|
|
117
310
|
| {
|
|
311
|
+
/**
|
|
312
|
+
* Date and time at which Seam created the warning.
|
|
313
|
+
*/
|
|
118
314
|
created_at: string
|
|
119
315
|
|
|
316
|
+
/**
|
|
317
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
318
|
+
*/
|
|
120
319
|
message: string
|
|
121
320
|
|
|
321
|
+
/**
|
|
322
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
323
|
+
*/
|
|
122
324
|
warning_code: 'needs_to_be_reissued'
|
|
123
325
|
}
|
|
124
326
|
>
|
|
125
327
|
|
|
328
|
+
/**
|
|
329
|
+
* ID of the workspace that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
330
|
+
*/
|
|
126
331
|
workspace_id: string
|
|
127
332
|
}
|
|
@@ -3,24 +3,70 @@
|
|
|
3
3
|
* Do not edit this file.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* Represents a hardware device that encodes [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) data onto physical cards within an [access control system](https://docs.seam.co/low-level-apis/access-systems).
|
|
8
|
+
*
|
|
9
|
+
* Some access control systems require credentials to be encoded onto plastic key cards using a card encoder. This process involves the following two key steps:
|
|
10
|
+
*
|
|
11
|
+
* 1. Credential creation
|
|
12
|
+
* Configure the access parameters for the credential.
|
|
13
|
+
* 2. Card encoding
|
|
14
|
+
* Write the credential data onto the card using a compatible card encoder.
|
|
15
|
+
*
|
|
16
|
+
* Separately, the Seam API also supports card scanning, which enables you to scan and read the encoded data on a card. You can use this action to confirm consistency with access control system records or diagnose discrepancies if needed.
|
|
17
|
+
*
|
|
18
|
+
* See [Working with Card Encoders and Scanners](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
19
|
+
*
|
|
20
|
+
* To verify if your access control system requires a card encoder, see the corresponding [system integration guide](https://docs.seam.co/device-and-system-integration-guides#access-control-systems).
|
|
21
|
+
*/
|
|
6
22
|
export type AcsEncoder = {
|
|
23
|
+
/**
|
|
24
|
+
* ID of the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
25
|
+
*/
|
|
7
26
|
acs_encoder_id: string
|
|
8
27
|
|
|
28
|
+
/**
|
|
29
|
+
* ID of the [access control system](https://docs.seam.co/low-level-apis/access-systems) that contains the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
30
|
+
*/
|
|
9
31
|
acs_system_id: string
|
|
10
32
|
|
|
33
|
+
/**
|
|
34
|
+
* ID of the connected account that contains the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
35
|
+
*/
|
|
11
36
|
connected_account_id: string
|
|
12
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Date and time at which the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners) was created.
|
|
40
|
+
*/
|
|
13
41
|
created_at: string
|
|
14
42
|
|
|
43
|
+
/**
|
|
44
|
+
* Display name for the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
45
|
+
*/
|
|
15
46
|
display_name: string
|
|
16
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Errors associated with the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
50
|
+
*/
|
|
17
51
|
errors: Array<{
|
|
52
|
+
/**
|
|
53
|
+
* Date and time at which Seam created the error.
|
|
54
|
+
*/
|
|
18
55
|
created_at: string
|
|
19
56
|
|
|
57
|
+
/**
|
|
58
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
59
|
+
*/
|
|
20
60
|
error_code: 'acs_encoder_removed'
|
|
21
61
|
|
|
62
|
+
/**
|
|
63
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
64
|
+
*/
|
|
22
65
|
message: string
|
|
23
66
|
}>
|
|
24
67
|
|
|
68
|
+
/**
|
|
69
|
+
* ID of the workspace that contains the [encoder](https://docs.seam.co/low-level-apis/access-systems/working-with-card-encoders-and-scanners).
|
|
70
|
+
*/
|
|
25
71
|
workspace_id: string
|
|
26
72
|
}
|