@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,420 +1,1374 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locking a door is pending.
|
|
3
|
+
*/
|
|
1
4
|
export type ActionAttempt = {
|
|
5
|
+
/**
|
|
6
|
+
* ID of the action attempt.
|
|
7
|
+
*/
|
|
2
8
|
action_attempt_id: string;
|
|
9
|
+
/**
|
|
10
|
+
* Action attempt to track the status of locking a door.
|
|
11
|
+
*/
|
|
3
12
|
action_type: 'LOCK_DOOR';
|
|
13
|
+
/**
|
|
14
|
+
* Error associated with the action.
|
|
15
|
+
*/
|
|
4
16
|
error: {
|
|
17
|
+
/**
|
|
18
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
19
|
+
*/
|
|
5
20
|
message: string;
|
|
21
|
+
/**
|
|
22
|
+
* Type of the error.
|
|
23
|
+
*/
|
|
6
24
|
type: string;
|
|
7
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* Result of the action.
|
|
28
|
+
*/
|
|
8
29
|
result: {
|
|
30
|
+
/**
|
|
31
|
+
* Indicates whether the device confirmed that the lock action occurred.
|
|
32
|
+
*/
|
|
9
33
|
was_confirmed_by_device?: boolean | undefined;
|
|
10
34
|
};
|
|
11
35
|
status: 'success' | 'pending' | 'error';
|
|
12
36
|
} | {
|
|
37
|
+
/**
|
|
38
|
+
* ID of the action attempt.
|
|
39
|
+
*/
|
|
13
40
|
action_attempt_id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Action attempt to track the status of unlocking a door.
|
|
43
|
+
*/
|
|
14
44
|
action_type: 'UNLOCK_DOOR';
|
|
45
|
+
/**
|
|
46
|
+
* Error associated with the action.
|
|
47
|
+
*/
|
|
15
48
|
error: {
|
|
49
|
+
/**
|
|
50
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
51
|
+
*/
|
|
16
52
|
message: string;
|
|
53
|
+
/**
|
|
54
|
+
* Type of the error.
|
|
55
|
+
*/
|
|
17
56
|
type: string;
|
|
18
57
|
};
|
|
58
|
+
/**
|
|
59
|
+
* Result of the action.
|
|
60
|
+
*/
|
|
19
61
|
result: {
|
|
62
|
+
/**
|
|
63
|
+
* Indicates whether the device confirmed that the unlock action occurred.
|
|
64
|
+
*/
|
|
20
65
|
was_confirmed_by_device?: boolean | undefined;
|
|
21
66
|
};
|
|
22
67
|
status: 'success' | 'pending' | 'error';
|
|
23
68
|
} | {
|
|
69
|
+
/**
|
|
70
|
+
* ID of the action attempt.
|
|
71
|
+
*/
|
|
24
72
|
action_attempt_id: string;
|
|
73
|
+
/**
|
|
74
|
+
* Action attempt to track the status of scanning a credential.
|
|
75
|
+
*/
|
|
25
76
|
action_type: 'SCAN_CREDENTIAL';
|
|
26
77
|
error: {
|
|
78
|
+
/**
|
|
79
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
80
|
+
*/
|
|
27
81
|
message: string;
|
|
82
|
+
/**
|
|
83
|
+
* Error type to indicate that the Seam Bridge is disconnected or cannot reach the access control system.
|
|
84
|
+
*/
|
|
28
85
|
type: 'uncategorized_error' | 'action_attempt_expired' | 'no_credential_on_encoder' | 'encoder_not_online' | 'encoder_communication_timeout' | 'bridge_disconnected';
|
|
29
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* Result of scanning a card. If the attempt was successful, includes a snapshot of credential data read from the physical encoder, the corresponding data stored on Seam and the access system, and any associated warnings.
|
|
89
|
+
*/
|
|
30
90
|
result: {
|
|
91
|
+
/**
|
|
92
|
+
* Snapshot of credential data read from the physical encoder.
|
|
93
|
+
*/
|
|
31
94
|
acs_credential_on_encoder: {
|
|
95
|
+
/**
|
|
96
|
+
* A number or string that physically identifies the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
97
|
+
*/
|
|
32
98
|
card_number: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
|
|
101
|
+
*/
|
|
33
102
|
created_at: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) will stop being usable.
|
|
105
|
+
*/
|
|
34
106
|
ends_at: string | null;
|
|
107
|
+
/**
|
|
108
|
+
* Indicates whether the credential has been issued (encoded onto a card).
|
|
109
|
+
*/
|
|
35
110
|
is_issued: boolean | null;
|
|
111
|
+
/**
|
|
112
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) becomes usable.
|
|
113
|
+
*/
|
|
36
114
|
starts_at: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* Visionline-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
117
|
+
*/
|
|
37
118
|
visionline_metadata?: {
|
|
119
|
+
/**
|
|
120
|
+
* Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is cancelled.
|
|
121
|
+
*/
|
|
38
122
|
cancelled?: boolean | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Format of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
125
|
+
*/
|
|
39
126
|
card_format?: 'TLCode' | 'rfid48' | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* Holder of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
129
|
+
*/
|
|
40
130
|
card_holder?: string | undefined;
|
|
131
|
+
/**
|
|
132
|
+
* Card ID for the Visionline card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
133
|
+
*/
|
|
41
134
|
card_id?: string | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* IDs of the common [entrances](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
137
|
+
*/
|
|
42
138
|
common_acs_entrance_ids?: Array<string> | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is discarded.
|
|
141
|
+
*/
|
|
43
142
|
discarded?: boolean | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is expired.
|
|
145
|
+
*/
|
|
44
146
|
expired?: boolean | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* IDs of the guest [entrances](https://docs.seam.co/low-level-apis/access-systems/retrieving-entrance-details) for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
149
|
+
*/
|
|
45
150
|
guest_acs_entrance_ids?: Array<string> | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Number of issued cards associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
153
|
+
*/
|
|
46
154
|
number_of_issued_cards?: number | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is overridden.
|
|
157
|
+
*/
|
|
47
158
|
overridden?: boolean | undefined;
|
|
159
|
+
/**
|
|
160
|
+
* Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is overwritten.
|
|
161
|
+
*/
|
|
48
162
|
overwritten?: boolean | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* Indicates whether the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) is pending auto-update.
|
|
165
|
+
*/
|
|
49
166
|
pending_auto_update?: boolean | undefined;
|
|
50
167
|
} | undefined;
|
|
51
168
|
} | null;
|
|
169
|
+
/**
|
|
170
|
+
* Corresponding credential data as stored on Seam and the access system.
|
|
171
|
+
*/
|
|
52
172
|
acs_credential_on_seam: {
|
|
173
|
+
/**
|
|
174
|
+
* Access method for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
175
|
+
*/
|
|
53
176
|
access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key';
|
|
177
|
+
/**
|
|
178
|
+
* ID of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
179
|
+
*/
|
|
54
180
|
acs_credential_id: string;
|
|
181
|
+
/**
|
|
182
|
+
* ID of the credential pool to which the credential belongs.
|
|
183
|
+
*/
|
|
55
184
|
acs_credential_pool_id?: string | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* 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).
|
|
187
|
+
*/
|
|
56
188
|
acs_system_id: string;
|
|
189
|
+
/**
|
|
190
|
+
* 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.
|
|
191
|
+
*/
|
|
57
192
|
acs_user_id?: string | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
195
|
+
*/
|
|
58
196
|
assa_abloy_vostio_metadata?: {
|
|
197
|
+
/**
|
|
198
|
+
* 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.
|
|
199
|
+
*/
|
|
59
200
|
auto_join?: boolean | undefined;
|
|
201
|
+
/**
|
|
202
|
+
* Names of the doors to which to grant access in the Vostio access system.
|
|
203
|
+
*/
|
|
60
204
|
door_names?: Array<string> | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Endpoint ID in the Vostio access system.
|
|
207
|
+
*/
|
|
61
208
|
endpoint_id?: string | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* Key ID in the Vostio access system.
|
|
211
|
+
*/
|
|
62
212
|
key_id?: string | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Key issuing request ID in the Vostio access system.
|
|
215
|
+
*/
|
|
63
216
|
key_issuing_request_id?: string | undefined;
|
|
217
|
+
/**
|
|
218
|
+
* IDs of the guest entrances to override in the Vostio access system.
|
|
219
|
+
*/
|
|
64
220
|
override_guest_acs_entrance_ids?: Array<string> | undefined;
|
|
65
221
|
} | undefined;
|
|
222
|
+
/**
|
|
223
|
+
* Number of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
224
|
+
*/
|
|
66
225
|
card_number?: string | null | undefined;
|
|
226
|
+
/**
|
|
227
|
+
* Access (PIN) code for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
228
|
+
*/
|
|
67
229
|
code?: string | null | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* 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.
|
|
232
|
+
*/
|
|
68
233
|
connected_account_id: string;
|
|
234
|
+
/**
|
|
235
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
|
|
236
|
+
*/
|
|
69
237
|
created_at: string;
|
|
238
|
+
/**
|
|
239
|
+
* Display name that corresponds to the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
240
|
+
*/
|
|
70
241
|
display_name: string;
|
|
242
|
+
/**
|
|
243
|
+
* 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`.
|
|
244
|
+
*/
|
|
71
245
|
ends_at?: string | undefined;
|
|
246
|
+
/**
|
|
247
|
+
* Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
248
|
+
*/
|
|
72
249
|
errors: Array<{
|
|
250
|
+
/**
|
|
251
|
+
* Date and time at which Seam created the error.
|
|
252
|
+
*/
|
|
73
253
|
created_at: string;
|
|
74
254
|
error_code: string;
|
|
75
255
|
message: string;
|
|
76
256
|
}>;
|
|
257
|
+
/**
|
|
258
|
+
* 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`.
|
|
259
|
+
*/
|
|
77
260
|
external_type?: 'pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential' | 'assa_abloy_vostio_key' | 'salto_space_key' | 'latch_access' | 'dormakaba_ambiance_credential' | 'hotek_card' | 'salto_ks_tag' | 'avigilon_alta_credential' | 'kisi_credential' | undefined;
|
|
261
|
+
/**
|
|
262
|
+
* Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
263
|
+
*/
|
|
78
264
|
external_type_display_name?: string | undefined;
|
|
265
|
+
/**
|
|
266
|
+
* Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.
|
|
267
|
+
*/
|
|
79
268
|
is_issued?: boolean | undefined;
|
|
269
|
+
/**
|
|
270
|
+
* 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.
|
|
271
|
+
*/
|
|
80
272
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
81
273
|
is_managed: boolean;
|
|
274
|
+
/**
|
|
275
|
+
* 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).
|
|
276
|
+
*/
|
|
82
277
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
278
|
+
/**
|
|
279
|
+
* 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.
|
|
280
|
+
*/
|
|
83
281
|
is_one_time_use?: boolean | undefined;
|
|
282
|
+
/**
|
|
283
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was encoded onto a card.
|
|
284
|
+
*/
|
|
84
285
|
issued_at?: string | null | undefined;
|
|
286
|
+
/**
|
|
287
|
+
* 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.
|
|
288
|
+
*/
|
|
85
289
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
290
|
+
/**
|
|
291
|
+
* ID of the parent [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
292
|
+
*/
|
|
86
293
|
parent_acs_credential_id?: string | undefined;
|
|
294
|
+
/**
|
|
295
|
+
* 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.
|
|
296
|
+
*/
|
|
87
297
|
starts_at?: string | undefined;
|
|
298
|
+
/**
|
|
299
|
+
* 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.
|
|
300
|
+
*/
|
|
88
301
|
user_identity_id?: string | undefined;
|
|
302
|
+
/**
|
|
303
|
+
* Visionline-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
304
|
+
*/
|
|
89
305
|
visionline_metadata?: {
|
|
306
|
+
/**
|
|
307
|
+
* 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.
|
|
308
|
+
*/
|
|
90
309
|
auto_join?: boolean | undefined;
|
|
310
|
+
/**
|
|
311
|
+
* Card function type in the Visionline access system.
|
|
312
|
+
*/
|
|
91
313
|
card_function_type?: 'guest' | 'staff' | undefined;
|
|
314
|
+
/**
|
|
315
|
+
* ID of the card in the Visionline access system.
|
|
316
|
+
*/
|
|
92
317
|
card_id?: string | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* Common entrance IDs in the Visionline access system.
|
|
320
|
+
*/
|
|
93
321
|
common_acs_entrance_ids?: Array<string> | undefined;
|
|
322
|
+
/**
|
|
323
|
+
* ID of the credential in the Visionline access system.
|
|
324
|
+
*/
|
|
94
325
|
credential_id?: string | undefined;
|
|
326
|
+
/**
|
|
327
|
+
* Guest entrance IDs in the Visionline access system.
|
|
328
|
+
*/
|
|
95
329
|
guest_acs_entrance_ids?: Array<string> | undefined;
|
|
330
|
+
/**
|
|
331
|
+
* Indicates whether the credential is valid.
|
|
332
|
+
*/
|
|
96
333
|
is_valid?: boolean | undefined;
|
|
334
|
+
/**
|
|
335
|
+
* IDs of the credentials to which you want to join.
|
|
336
|
+
*/
|
|
97
337
|
joiner_acs_credential_ids?: Array<string> | undefined;
|
|
98
338
|
} | undefined;
|
|
339
|
+
/**
|
|
340
|
+
* Warnings associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
341
|
+
*/
|
|
99
342
|
warnings: Array<{
|
|
343
|
+
/**
|
|
344
|
+
* Date and time at which Seam created the warning.
|
|
345
|
+
*/
|
|
100
346
|
created_at: string;
|
|
347
|
+
/**
|
|
348
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
349
|
+
*/
|
|
101
350
|
message: string;
|
|
351
|
+
/**
|
|
352
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
353
|
+
*/
|
|
102
354
|
warning_code: 'waiting_to_be_issued' | 'schedule_externally_modified' | 'schedule_modified' | 'being_deleted' | 'unknown_issue_with_acs_credential' | 'needs_to_be_reissued';
|
|
103
355
|
}>;
|
|
356
|
+
/**
|
|
357
|
+
* ID of the workspace that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
358
|
+
*/
|
|
104
359
|
workspace_id: string;
|
|
105
360
|
};
|
|
361
|
+
/**
|
|
362
|
+
* Warnings related to scanning the credential, such as mismatches between the credential data currently encoded on the card and the corresponding data stored on Seam and the access system.
|
|
363
|
+
*/
|
|
106
364
|
warnings: Array<{
|
|
365
|
+
/**
|
|
366
|
+
* Indicates a warning related to scanning a credential.
|
|
367
|
+
*/
|
|
107
368
|
warning_code: 'acs_credential_on_encoder_out_of_sync' | 'acs_credential_on_seam_not_found';
|
|
369
|
+
/**
|
|
370
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
371
|
+
*/
|
|
108
372
|
warning_message: string;
|
|
109
373
|
}>;
|
|
110
374
|
};
|
|
111
375
|
status: 'success' | 'pending' | 'error';
|
|
112
376
|
} | {
|
|
377
|
+
/**
|
|
378
|
+
* ID of the action attempt.
|
|
379
|
+
*/
|
|
113
380
|
action_attempt_id: string;
|
|
381
|
+
/**
|
|
382
|
+
* Action attempt to track the status of encoding credential data from the physical encoder onto a card.
|
|
383
|
+
*/
|
|
114
384
|
action_type: 'ENCODE_CREDENTIAL';
|
|
115
385
|
error: {
|
|
386
|
+
/**
|
|
387
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
388
|
+
*/
|
|
116
389
|
message: string;
|
|
390
|
+
/**
|
|
391
|
+
* Error type to indicate that the credential was deleted and can no longer be encoded.
|
|
392
|
+
*/
|
|
117
393
|
type: 'uncategorized_error' | 'action_attempt_expired' | 'no_credential_on_encoder' | 'incompatible_card_format' | 'credential_cannot_be_reissued' | 'encoder_not_online' | 'encoder_communication_timeout' | 'bridge_disconnected' | 'encoding_interrupted' | 'credential_deleted';
|
|
118
394
|
};
|
|
395
|
+
/**
|
|
396
|
+
* Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card.
|
|
397
|
+
*/
|
|
119
398
|
result: {
|
|
399
|
+
/**
|
|
400
|
+
* Access method for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
401
|
+
*/
|
|
120
402
|
access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key';
|
|
403
|
+
/**
|
|
404
|
+
* ID of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
405
|
+
*/
|
|
121
406
|
acs_credential_id: string;
|
|
407
|
+
/**
|
|
408
|
+
* ID of the credential pool to which the credential belongs.
|
|
409
|
+
*/
|
|
122
410
|
acs_credential_pool_id?: string | undefined;
|
|
411
|
+
/**
|
|
412
|
+
* 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).
|
|
413
|
+
*/
|
|
123
414
|
acs_system_id: string;
|
|
415
|
+
/**
|
|
416
|
+
* 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.
|
|
417
|
+
*/
|
|
124
418
|
acs_user_id?: string | undefined;
|
|
419
|
+
/**
|
|
420
|
+
* Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
421
|
+
*/
|
|
125
422
|
assa_abloy_vostio_metadata?: {
|
|
423
|
+
/**
|
|
424
|
+
* 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.
|
|
425
|
+
*/
|
|
126
426
|
auto_join?: boolean | undefined;
|
|
427
|
+
/**
|
|
428
|
+
* Names of the doors to which to grant access in the Vostio access system.
|
|
429
|
+
*/
|
|
127
430
|
door_names?: Array<string> | undefined;
|
|
431
|
+
/**
|
|
432
|
+
* Endpoint ID in the Vostio access system.
|
|
433
|
+
*/
|
|
128
434
|
endpoint_id?: string | undefined;
|
|
435
|
+
/**
|
|
436
|
+
* Key ID in the Vostio access system.
|
|
437
|
+
*/
|
|
129
438
|
key_id?: string | undefined;
|
|
439
|
+
/**
|
|
440
|
+
* Key issuing request ID in the Vostio access system.
|
|
441
|
+
*/
|
|
130
442
|
key_issuing_request_id?: string | undefined;
|
|
443
|
+
/**
|
|
444
|
+
* IDs of the guest entrances to override in the Vostio access system.
|
|
445
|
+
*/
|
|
131
446
|
override_guest_acs_entrance_ids?: Array<string> | undefined;
|
|
132
447
|
} | undefined;
|
|
448
|
+
/**
|
|
449
|
+
* Number of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
450
|
+
*/
|
|
133
451
|
card_number?: string | null | undefined;
|
|
452
|
+
/**
|
|
453
|
+
* Access (PIN) code for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
454
|
+
*/
|
|
134
455
|
code?: string | null | undefined;
|
|
456
|
+
/**
|
|
457
|
+
* 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.
|
|
458
|
+
*/
|
|
135
459
|
connected_account_id: string;
|
|
460
|
+
/**
|
|
461
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
|
|
462
|
+
*/
|
|
136
463
|
created_at: string;
|
|
464
|
+
/**
|
|
465
|
+
* Display name that corresponds to the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
466
|
+
*/
|
|
137
467
|
display_name: string;
|
|
468
|
+
/**
|
|
469
|
+
* 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`.
|
|
470
|
+
*/
|
|
138
471
|
ends_at?: string | undefined;
|
|
472
|
+
/**
|
|
473
|
+
* Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
474
|
+
*/
|
|
139
475
|
errors: Array<{
|
|
476
|
+
/**
|
|
477
|
+
* Date and time at which Seam created the error.
|
|
478
|
+
*/
|
|
140
479
|
created_at: string;
|
|
141
480
|
error_code: string;
|
|
142
481
|
message: string;
|
|
143
482
|
}>;
|
|
483
|
+
/**
|
|
484
|
+
* 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`.
|
|
485
|
+
*/
|
|
144
486
|
external_type?: 'pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential' | 'assa_abloy_vostio_key' | 'salto_space_key' | 'latch_access' | 'dormakaba_ambiance_credential' | 'hotek_card' | 'salto_ks_tag' | 'avigilon_alta_credential' | 'kisi_credential' | undefined;
|
|
487
|
+
/**
|
|
488
|
+
* Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
489
|
+
*/
|
|
145
490
|
external_type_display_name?: string | undefined;
|
|
491
|
+
/**
|
|
492
|
+
* Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.
|
|
493
|
+
*/
|
|
146
494
|
is_issued?: boolean | undefined;
|
|
495
|
+
/**
|
|
496
|
+
* 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.
|
|
497
|
+
*/
|
|
147
498
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
148
499
|
is_managed: boolean;
|
|
500
|
+
/**
|
|
501
|
+
* 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).
|
|
502
|
+
*/
|
|
149
503
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
504
|
+
/**
|
|
505
|
+
* 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.
|
|
506
|
+
*/
|
|
150
507
|
is_one_time_use?: boolean | undefined;
|
|
508
|
+
/**
|
|
509
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was encoded onto a card.
|
|
510
|
+
*/
|
|
151
511
|
issued_at?: string | null | undefined;
|
|
512
|
+
/**
|
|
513
|
+
* 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.
|
|
514
|
+
*/
|
|
152
515
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
516
|
+
/**
|
|
517
|
+
* ID of the parent [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
518
|
+
*/
|
|
153
519
|
parent_acs_credential_id?: string | undefined;
|
|
520
|
+
/**
|
|
521
|
+
* 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.
|
|
522
|
+
*/
|
|
154
523
|
starts_at?: string | undefined;
|
|
524
|
+
/**
|
|
525
|
+
* 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.
|
|
526
|
+
*/
|
|
155
527
|
user_identity_id?: string | undefined;
|
|
528
|
+
/**
|
|
529
|
+
* Visionline-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
530
|
+
*/
|
|
156
531
|
visionline_metadata?: {
|
|
532
|
+
/**
|
|
533
|
+
* 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.
|
|
534
|
+
*/
|
|
157
535
|
auto_join?: boolean | undefined;
|
|
536
|
+
/**
|
|
537
|
+
* Card function type in the Visionline access system.
|
|
538
|
+
*/
|
|
158
539
|
card_function_type?: 'guest' | 'staff' | undefined;
|
|
540
|
+
/**
|
|
541
|
+
* ID of the card in the Visionline access system.
|
|
542
|
+
*/
|
|
159
543
|
card_id?: string | undefined;
|
|
544
|
+
/**
|
|
545
|
+
* Common entrance IDs in the Visionline access system.
|
|
546
|
+
*/
|
|
160
547
|
common_acs_entrance_ids?: Array<string> | undefined;
|
|
548
|
+
/**
|
|
549
|
+
* ID of the credential in the Visionline access system.
|
|
550
|
+
*/
|
|
161
551
|
credential_id?: string | undefined;
|
|
552
|
+
/**
|
|
553
|
+
* Guest entrance IDs in the Visionline access system.
|
|
554
|
+
*/
|
|
162
555
|
guest_acs_entrance_ids?: Array<string> | undefined;
|
|
556
|
+
/**
|
|
557
|
+
* Indicates whether the credential is valid.
|
|
558
|
+
*/
|
|
163
559
|
is_valid?: boolean | undefined;
|
|
560
|
+
/**
|
|
561
|
+
* IDs of the credentials to which you want to join.
|
|
562
|
+
*/
|
|
164
563
|
joiner_acs_credential_ids?: Array<string> | undefined;
|
|
165
564
|
} | undefined;
|
|
565
|
+
/**
|
|
566
|
+
* Warnings associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
567
|
+
*/
|
|
166
568
|
warnings: Array<{
|
|
569
|
+
/**
|
|
570
|
+
* Date and time at which Seam created the warning.
|
|
571
|
+
*/
|
|
167
572
|
created_at: string;
|
|
573
|
+
/**
|
|
574
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
575
|
+
*/
|
|
168
576
|
message: string;
|
|
577
|
+
/**
|
|
578
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
579
|
+
*/
|
|
169
580
|
warning_code: 'waiting_to_be_issued' | 'schedule_externally_modified' | 'schedule_modified' | 'being_deleted' | 'unknown_issue_with_acs_credential' | 'needs_to_be_reissued';
|
|
170
581
|
}>;
|
|
582
|
+
/**
|
|
583
|
+
* ID of the workspace that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
584
|
+
*/
|
|
171
585
|
workspace_id: string;
|
|
172
586
|
};
|
|
173
587
|
status: 'success' | 'pending' | 'error';
|
|
174
588
|
} | {
|
|
589
|
+
/**
|
|
590
|
+
* ID of the action attempt.
|
|
591
|
+
*/
|
|
175
592
|
action_attempt_id: string;
|
|
593
|
+
/**
|
|
594
|
+
* Action attempt to track the status of scanning a physical card and assigning the credential to an ACS user.
|
|
595
|
+
*/
|
|
176
596
|
action_type: 'SCAN_TO_ASSIGN_CREDENTIAL';
|
|
177
597
|
error: {
|
|
598
|
+
/**
|
|
599
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
600
|
+
*/
|
|
178
601
|
message: string;
|
|
602
|
+
/**
|
|
603
|
+
* Error type to indicate that there is no credential on the encoder.
|
|
604
|
+
*/
|
|
179
605
|
type: 'uncategorized_error' | 'action_attempt_expired' | 'no_credential_on_encoder';
|
|
180
606
|
};
|
|
607
|
+
/**
|
|
608
|
+
* Result of a scan to assign attempt. If the attempt was successful, includes the credential data that was scanned and assigned.
|
|
609
|
+
*/
|
|
181
610
|
result: {
|
|
611
|
+
/**
|
|
612
|
+
* Access method for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
613
|
+
*/
|
|
182
614
|
access_method: 'code' | 'card' | 'mobile_key' | 'cloud_key';
|
|
615
|
+
/**
|
|
616
|
+
* ID of the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
617
|
+
*/
|
|
183
618
|
acs_credential_id: string;
|
|
619
|
+
/**
|
|
620
|
+
* ID of the credential pool to which the credential belongs.
|
|
621
|
+
*/
|
|
184
622
|
acs_credential_pool_id?: string | undefined;
|
|
623
|
+
/**
|
|
624
|
+
* 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).
|
|
625
|
+
*/
|
|
185
626
|
acs_system_id: string;
|
|
627
|
+
/**
|
|
628
|
+
* 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.
|
|
629
|
+
*/
|
|
186
630
|
acs_user_id?: string | undefined;
|
|
631
|
+
/**
|
|
632
|
+
* Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
633
|
+
*/
|
|
187
634
|
assa_abloy_vostio_metadata?: {
|
|
635
|
+
/**
|
|
636
|
+
* 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.
|
|
637
|
+
*/
|
|
188
638
|
auto_join?: boolean | undefined;
|
|
639
|
+
/**
|
|
640
|
+
* Names of the doors to which to grant access in the Vostio access system.
|
|
641
|
+
*/
|
|
189
642
|
door_names?: Array<string> | undefined;
|
|
643
|
+
/**
|
|
644
|
+
* Endpoint ID in the Vostio access system.
|
|
645
|
+
*/
|
|
190
646
|
endpoint_id?: string | undefined;
|
|
647
|
+
/**
|
|
648
|
+
* Key ID in the Vostio access system.
|
|
649
|
+
*/
|
|
191
650
|
key_id?: string | undefined;
|
|
651
|
+
/**
|
|
652
|
+
* Key issuing request ID in the Vostio access system.
|
|
653
|
+
*/
|
|
192
654
|
key_issuing_request_id?: string | undefined;
|
|
655
|
+
/**
|
|
656
|
+
* IDs of the guest entrances to override in the Vostio access system.
|
|
657
|
+
*/
|
|
193
658
|
override_guest_acs_entrance_ids?: Array<string> | undefined;
|
|
194
659
|
} | undefined;
|
|
660
|
+
/**
|
|
661
|
+
* Number of the card associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
662
|
+
*/
|
|
195
663
|
card_number?: string | null | undefined;
|
|
664
|
+
/**
|
|
665
|
+
* Access (PIN) code for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
666
|
+
*/
|
|
196
667
|
code?: string | null | undefined;
|
|
668
|
+
/**
|
|
669
|
+
* 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.
|
|
670
|
+
*/
|
|
197
671
|
connected_account_id: string;
|
|
672
|
+
/**
|
|
673
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was created.
|
|
674
|
+
*/
|
|
198
675
|
created_at: string;
|
|
676
|
+
/**
|
|
677
|
+
* Display name that corresponds to the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
678
|
+
*/
|
|
199
679
|
display_name: string;
|
|
680
|
+
/**
|
|
681
|
+
* 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`.
|
|
682
|
+
*/
|
|
200
683
|
ends_at?: string | undefined;
|
|
684
|
+
/**
|
|
685
|
+
* Errors associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
686
|
+
*/
|
|
201
687
|
errors: Array<{
|
|
688
|
+
/**
|
|
689
|
+
* Date and time at which Seam created the error.
|
|
690
|
+
*/
|
|
202
691
|
created_at: string;
|
|
203
692
|
error_code: string;
|
|
204
693
|
message: string;
|
|
205
694
|
}>;
|
|
695
|
+
/**
|
|
696
|
+
* 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`.
|
|
697
|
+
*/
|
|
206
698
|
external_type?: 'pti_card' | 'brivo_credential' | 'hid_credential' | 'visionline_card' | 'salto_ks_credential' | 'assa_abloy_vostio_key' | 'salto_space_key' | 'latch_access' | 'dormakaba_ambiance_credential' | 'hotek_card' | 'salto_ks_tag' | 'avigilon_alta_credential' | 'kisi_credential' | undefined;
|
|
699
|
+
/**
|
|
700
|
+
* Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type.
|
|
701
|
+
*/
|
|
207
702
|
external_type_display_name?: string | undefined;
|
|
703
|
+
/**
|
|
704
|
+
* Indicates whether the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) has been encoded onto a card.
|
|
705
|
+
*/
|
|
208
706
|
is_issued?: boolean | undefined;
|
|
707
|
+
/**
|
|
708
|
+
* 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.
|
|
709
|
+
*/
|
|
209
710
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
711
|
+
/**
|
|
712
|
+
* Indicates whether Seam manages the credential.
|
|
713
|
+
*/
|
|
210
714
|
is_managed: boolean;
|
|
715
|
+
/**
|
|
716
|
+
* 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).
|
|
717
|
+
*/
|
|
211
718
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
719
|
+
/**
|
|
720
|
+
* 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.
|
|
721
|
+
*/
|
|
212
722
|
is_one_time_use?: boolean | undefined;
|
|
723
|
+
/**
|
|
724
|
+
* Date and time at which the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) was encoded onto a card.
|
|
725
|
+
*/
|
|
213
726
|
issued_at?: string | null | undefined;
|
|
727
|
+
/**
|
|
728
|
+
* 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.
|
|
729
|
+
*/
|
|
214
730
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
731
|
+
/**
|
|
732
|
+
* ID of the parent [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
733
|
+
*/
|
|
215
734
|
parent_acs_credential_id?: string | undefined;
|
|
735
|
+
/**
|
|
736
|
+
* 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.
|
|
737
|
+
*/
|
|
216
738
|
starts_at?: string | undefined;
|
|
739
|
+
/**
|
|
740
|
+
* 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.
|
|
741
|
+
*/
|
|
217
742
|
user_identity_id?: string | undefined;
|
|
743
|
+
/**
|
|
744
|
+
* Visionline-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
745
|
+
*/
|
|
218
746
|
visionline_metadata?: {
|
|
747
|
+
/**
|
|
748
|
+
* 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.
|
|
749
|
+
*/
|
|
219
750
|
auto_join?: boolean | undefined;
|
|
751
|
+
/**
|
|
752
|
+
* Card function type in the Visionline access system.
|
|
753
|
+
*/
|
|
220
754
|
card_function_type?: 'guest' | 'staff' | undefined;
|
|
755
|
+
/**
|
|
756
|
+
* ID of the card in the Visionline access system.
|
|
757
|
+
*/
|
|
221
758
|
card_id?: string | undefined;
|
|
759
|
+
/**
|
|
760
|
+
* Common entrance IDs in the Visionline access system.
|
|
761
|
+
*/
|
|
222
762
|
common_acs_entrance_ids?: Array<string> | undefined;
|
|
763
|
+
/**
|
|
764
|
+
* ID of the credential in the Visionline access system.
|
|
765
|
+
*/
|
|
223
766
|
credential_id?: string | undefined;
|
|
767
|
+
/**
|
|
768
|
+
* Guest entrance IDs in the Visionline access system.
|
|
769
|
+
*/
|
|
224
770
|
guest_acs_entrance_ids?: Array<string> | undefined;
|
|
771
|
+
/**
|
|
772
|
+
* Indicates whether the credential is valid.
|
|
773
|
+
*/
|
|
225
774
|
is_valid?: boolean | undefined;
|
|
775
|
+
/**
|
|
776
|
+
* IDs of the credentials to which you want to join.
|
|
777
|
+
*/
|
|
226
778
|
joiner_acs_credential_ids?: Array<string> | undefined;
|
|
227
779
|
} | undefined;
|
|
780
|
+
/**
|
|
781
|
+
* Warnings associated with the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
782
|
+
*/
|
|
228
783
|
warnings: Array<{
|
|
784
|
+
/**
|
|
785
|
+
* Date and time at which Seam created the warning.
|
|
786
|
+
*/
|
|
229
787
|
created_at: string;
|
|
788
|
+
/**
|
|
789
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
790
|
+
*/
|
|
230
791
|
message: string;
|
|
792
|
+
/**
|
|
793
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
794
|
+
*/
|
|
231
795
|
warning_code: 'waiting_to_be_issued' | 'schedule_externally_modified' | 'schedule_modified' | 'being_deleted' | 'unknown_issue_with_acs_credential' | 'needs_to_be_reissued';
|
|
232
796
|
}>;
|
|
797
|
+
/**
|
|
798
|
+
* ID of the workspace that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials).
|
|
799
|
+
*/
|
|
233
800
|
workspace_id: string;
|
|
234
801
|
};
|
|
235
802
|
status: 'success' | 'pending' | 'error';
|
|
236
803
|
} | {
|
|
804
|
+
/**
|
|
805
|
+
* ID of the action attempt.
|
|
806
|
+
*/
|
|
237
807
|
action_attempt_id: string;
|
|
808
|
+
/**
|
|
809
|
+
* Action attempt to track the status of assigning a pre-registered card credential to an access method.
|
|
810
|
+
*/
|
|
238
811
|
action_type: 'ASSIGN_CREDENTIAL';
|
|
239
812
|
error: {
|
|
813
|
+
/**
|
|
814
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
815
|
+
*/
|
|
240
816
|
message: string;
|
|
817
|
+
/**
|
|
818
|
+
* Error type to indicate that no matching credential was found.
|
|
819
|
+
*/
|
|
241
820
|
type: 'uncategorized_error' | 'action_attempt_expired' | 'credential_not_found';
|
|
242
821
|
};
|
|
822
|
+
/**
|
|
823
|
+
* Result of assigning a credential. If successful, includes the updated access method with the assigned credential.
|
|
824
|
+
*/
|
|
243
825
|
result: {
|
|
826
|
+
/**
|
|
827
|
+
* ID of the access method.
|
|
828
|
+
*/
|
|
244
829
|
access_method_id: string;
|
|
830
|
+
/**
|
|
831
|
+
* Token of the client session associated with the access method.
|
|
832
|
+
*/
|
|
245
833
|
client_session_token?: string | undefined;
|
|
834
|
+
/**
|
|
835
|
+
* The actual PIN code for code access methods.
|
|
836
|
+
*/
|
|
246
837
|
code?: string | null | undefined;
|
|
838
|
+
/**
|
|
839
|
+
* Date and time at which the access method was created.
|
|
840
|
+
*/
|
|
247
841
|
created_at: string;
|
|
842
|
+
/**
|
|
843
|
+
* ID of the customization profile associated with the access method.
|
|
844
|
+
*/
|
|
248
845
|
customization_profile_id?: string | undefined;
|
|
846
|
+
/**
|
|
847
|
+
* Display name of the access method.
|
|
848
|
+
*/
|
|
249
849
|
display_name: string;
|
|
850
|
+
/**
|
|
851
|
+
* Errors associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).
|
|
852
|
+
*/
|
|
250
853
|
errors: Array<{
|
|
854
|
+
/**
|
|
855
|
+
* Date and time at which Seam created the error.
|
|
856
|
+
*/
|
|
251
857
|
created_at: string;
|
|
858
|
+
/**
|
|
859
|
+
* Unique identifier of the type of error. Enables quick recognition and categorization of the issue.
|
|
860
|
+
*/
|
|
252
861
|
error_code: 'failed_to_issue';
|
|
862
|
+
/**
|
|
863
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
864
|
+
*/
|
|
253
865
|
message: string;
|
|
254
866
|
}>;
|
|
867
|
+
/**
|
|
868
|
+
* URL of the Instant Key for mobile key access methods.
|
|
869
|
+
*/
|
|
255
870
|
instant_key_url?: string | undefined;
|
|
871
|
+
/**
|
|
872
|
+
* Indicates whether an existing card credential must be assigned to this access method before it can be issued. Only applies to card-mode access methods on systems that support credential assignment.
|
|
873
|
+
*/
|
|
256
874
|
is_assignment_required?: boolean | undefined;
|
|
875
|
+
/**
|
|
876
|
+
* Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.
|
|
877
|
+
*/
|
|
257
878
|
is_encoding_required?: boolean | undefined;
|
|
879
|
+
/**
|
|
880
|
+
* Indicates whether the access method has been issued.
|
|
881
|
+
*/
|
|
258
882
|
is_issued: boolean;
|
|
883
|
+
/**
|
|
884
|
+
* Indicates whether the access method is ready for card assignment. This is true when the access method is in card mode, has not yet been issued, and the system supports credential assignment.
|
|
885
|
+
*/
|
|
259
886
|
is_ready_for_assignment?: boolean | undefined;
|
|
887
|
+
/**
|
|
888
|
+
* Indicates whether the access method is ready to be encoded. This is true when the credential has been created and the card has not yet been issued.
|
|
889
|
+
*/
|
|
260
890
|
is_ready_for_encoding?: boolean | undefined;
|
|
891
|
+
/**
|
|
892
|
+
* Date and time at which the access method was issued.
|
|
893
|
+
*/
|
|
261
894
|
issued_at: string | null;
|
|
895
|
+
/**
|
|
896
|
+
* Access method mode. Supported values: `code`, `card`, `mobile_key`, `cloud_key`.
|
|
897
|
+
*/
|
|
262
898
|
mode: 'code' | 'card' | 'mobile_key' | 'cloud_key';
|
|
899
|
+
/**
|
|
900
|
+
* Pending mutations for the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant). Indicates operations that are in progress.
|
|
901
|
+
*/
|
|
263
902
|
pending_mutations: Array<{
|
|
903
|
+
/**
|
|
904
|
+
* Date and time at which the mutation was created.
|
|
905
|
+
*/
|
|
264
906
|
created_at: string;
|
|
907
|
+
/**
|
|
908
|
+
* Previous access time configuration.
|
|
909
|
+
*/
|
|
265
910
|
from: {
|
|
911
|
+
/**
|
|
912
|
+
* Previous end time for access.
|
|
913
|
+
*/
|
|
266
914
|
ends_at: string | null;
|
|
915
|
+
/**
|
|
916
|
+
* Previous start time for access.
|
|
917
|
+
*/
|
|
267
918
|
starts_at: string | null;
|
|
268
919
|
};
|
|
920
|
+
/**
|
|
921
|
+
* Detailed description of the mutation.
|
|
922
|
+
*/
|
|
269
923
|
message: string;
|
|
924
|
+
/**
|
|
925
|
+
* Mutation code to indicate that Seam is in the process of updating the access times for this access method.
|
|
926
|
+
*/
|
|
270
927
|
mutation_code: 'provisioning_access' | 'revoking_access' | 'updating_access_times';
|
|
928
|
+
/**
|
|
929
|
+
* New access time configuration.
|
|
930
|
+
*/
|
|
271
931
|
to: {
|
|
932
|
+
/**
|
|
933
|
+
* New end time for access.
|
|
934
|
+
*/
|
|
272
935
|
ends_at: string | null;
|
|
936
|
+
/**
|
|
937
|
+
* New start time for access.
|
|
938
|
+
*/
|
|
273
939
|
starts_at: string | null;
|
|
274
940
|
};
|
|
275
941
|
}>;
|
|
942
|
+
/**
|
|
943
|
+
* Warnings associated with the [access method](https://docs.seam.co/use-cases/granting-access/creating-an-access-grant).
|
|
944
|
+
*/
|
|
276
945
|
warnings: Array<{
|
|
946
|
+
/**
|
|
947
|
+
* Date and time at which Seam created the warning.
|
|
948
|
+
*/
|
|
277
949
|
created_at: string;
|
|
950
|
+
/**
|
|
951
|
+
* Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
|
|
952
|
+
*/
|
|
278
953
|
message: string;
|
|
954
|
+
/**
|
|
955
|
+
* Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
|
|
956
|
+
*/
|
|
279
957
|
warning_code: 'being_deleted' | 'updating_access_times' | 'pulled_backup_access_code' | 'delay_in_issuing';
|
|
958
|
+
/**
|
|
959
|
+
* ID of the original access method from which this backup access method was split, if applicable.
|
|
960
|
+
*/
|
|
280
961
|
original_access_method_id?: string | undefined;
|
|
281
962
|
}>;
|
|
963
|
+
/**
|
|
964
|
+
* ID of the Seam workspace associated with the access method.
|
|
965
|
+
*/
|
|
282
966
|
workspace_id: string;
|
|
283
967
|
};
|
|
284
968
|
status: 'success' | 'pending' | 'error';
|
|
285
969
|
} | {
|
|
970
|
+
/**
|
|
971
|
+
* ID of the action attempt.
|
|
972
|
+
*/
|
|
286
973
|
action_attempt_id: string;
|
|
974
|
+
/**
|
|
975
|
+
* Action attempt to track the status of resetting a sandbox workspace.
|
|
976
|
+
*/
|
|
287
977
|
action_type: 'RESET_SANDBOX_WORKSPACE';
|
|
978
|
+
/**
|
|
979
|
+
* Error associated with the action.
|
|
980
|
+
*/
|
|
288
981
|
error: {
|
|
982
|
+
/**
|
|
983
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
984
|
+
*/
|
|
289
985
|
message: string;
|
|
986
|
+
/**
|
|
987
|
+
* Type of the error.
|
|
988
|
+
*/
|
|
290
989
|
type: string;
|
|
291
990
|
};
|
|
991
|
+
/**
|
|
992
|
+
* Result of the action.
|
|
993
|
+
*/
|
|
292
994
|
result: {};
|
|
293
995
|
status: 'success' | 'pending' | 'error';
|
|
294
996
|
} | {
|
|
997
|
+
/**
|
|
998
|
+
* ID of the action attempt.
|
|
999
|
+
*/
|
|
295
1000
|
action_attempt_id: string;
|
|
1001
|
+
/**
|
|
1002
|
+
* Action attempt to track the status of setting the fan mode on a thermostat.
|
|
1003
|
+
*/
|
|
296
1004
|
action_type: 'SET_FAN_MODE';
|
|
1005
|
+
/**
|
|
1006
|
+
* Error associated with the action.
|
|
1007
|
+
*/
|
|
297
1008
|
error: {
|
|
1009
|
+
/**
|
|
1010
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1011
|
+
*/
|
|
298
1012
|
message: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* Type of the error.
|
|
1015
|
+
*/
|
|
299
1016
|
type: string;
|
|
300
1017
|
};
|
|
1018
|
+
/**
|
|
1019
|
+
* Result of the action.
|
|
1020
|
+
*/
|
|
301
1021
|
result: {};
|
|
302
1022
|
status: 'success' | 'pending' | 'error';
|
|
303
1023
|
} | {
|
|
1024
|
+
/**
|
|
1025
|
+
* ID of the action attempt.
|
|
1026
|
+
*/
|
|
304
1027
|
action_attempt_id: string;
|
|
1028
|
+
/**
|
|
1029
|
+
* Action attempt to track the status of setting the HVAC mode on a thermostat.
|
|
1030
|
+
*/
|
|
305
1031
|
action_type: 'SET_HVAC_MODE';
|
|
1032
|
+
/**
|
|
1033
|
+
* Error associated with the action.
|
|
1034
|
+
*/
|
|
306
1035
|
error: {
|
|
1036
|
+
/**
|
|
1037
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1038
|
+
*/
|
|
307
1039
|
message: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* Type of the error.
|
|
1042
|
+
*/
|
|
308
1043
|
type: string;
|
|
309
1044
|
};
|
|
1045
|
+
/**
|
|
1046
|
+
* Result of the action.
|
|
1047
|
+
*/
|
|
310
1048
|
result: {};
|
|
311
1049
|
status: 'success' | 'pending' | 'error';
|
|
312
1050
|
} | {
|
|
1051
|
+
/**
|
|
1052
|
+
* ID of the action attempt.
|
|
1053
|
+
*/
|
|
313
1054
|
action_attempt_id: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* Action attempt to track the status of a climate preset activation.
|
|
1057
|
+
*/
|
|
314
1058
|
action_type: 'ACTIVATE_CLIMATE_PRESET';
|
|
1059
|
+
/**
|
|
1060
|
+
* Error associated with the action.
|
|
1061
|
+
*/
|
|
315
1062
|
error: {
|
|
1063
|
+
/**
|
|
1064
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1065
|
+
*/
|
|
316
1066
|
message: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* Type of the error.
|
|
1069
|
+
*/
|
|
317
1070
|
type: string;
|
|
318
1071
|
};
|
|
1072
|
+
/**
|
|
1073
|
+
* Result of the action.
|
|
1074
|
+
*/
|
|
319
1075
|
result: {};
|
|
320
1076
|
status: 'success' | 'pending' | 'error';
|
|
321
1077
|
} | {
|
|
1078
|
+
/**
|
|
1079
|
+
* ID of the action attempt.
|
|
1080
|
+
*/
|
|
322
1081
|
action_attempt_id: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* Action attempt to track the status of simulating a keypad code entry.
|
|
1084
|
+
*/
|
|
323
1085
|
action_type: 'SIMULATE_KEYPAD_CODE_ENTRY';
|
|
1086
|
+
/**
|
|
1087
|
+
* Error associated with the action.
|
|
1088
|
+
*/
|
|
324
1089
|
error: {
|
|
1090
|
+
/**
|
|
1091
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1092
|
+
*/
|
|
325
1093
|
message: string;
|
|
1094
|
+
/**
|
|
1095
|
+
* Type of the error.
|
|
1096
|
+
*/
|
|
326
1097
|
type: string;
|
|
327
1098
|
};
|
|
1099
|
+
/**
|
|
1100
|
+
* Result of the action.
|
|
1101
|
+
*/
|
|
328
1102
|
result: {};
|
|
329
1103
|
status: 'success' | 'pending' | 'error';
|
|
330
1104
|
} | {
|
|
1105
|
+
/**
|
|
1106
|
+
* ID of the action attempt.
|
|
1107
|
+
*/
|
|
331
1108
|
action_attempt_id: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* Action attempt to track the status of simulating a manual lock action using a keypad.
|
|
1111
|
+
*/
|
|
332
1112
|
action_type: 'SIMULATE_MANUAL_LOCK_VIA_KEYPAD';
|
|
1113
|
+
/**
|
|
1114
|
+
* Error associated with the action.
|
|
1115
|
+
*/
|
|
333
1116
|
error: {
|
|
1117
|
+
/**
|
|
1118
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1119
|
+
*/
|
|
334
1120
|
message: string;
|
|
1121
|
+
/**
|
|
1122
|
+
* Type of the error.
|
|
1123
|
+
*/
|
|
335
1124
|
type: string;
|
|
336
1125
|
};
|
|
1126
|
+
/**
|
|
1127
|
+
* Result of the action.
|
|
1128
|
+
*/
|
|
337
1129
|
result: {};
|
|
338
1130
|
status: 'success' | 'pending' | 'error';
|
|
339
1131
|
} | {
|
|
1132
|
+
/**
|
|
1133
|
+
* ID of the action attempt.
|
|
1134
|
+
*/
|
|
340
1135
|
action_attempt_id: string;
|
|
1136
|
+
/**
|
|
1137
|
+
* Action attempt to track the status of pushing thermostat programs.
|
|
1138
|
+
*/
|
|
341
1139
|
action_type: 'PUSH_THERMOSTAT_PROGRAMS';
|
|
1140
|
+
/**
|
|
1141
|
+
* Error associated with the action.
|
|
1142
|
+
*/
|
|
342
1143
|
error: {
|
|
1144
|
+
/**
|
|
1145
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1146
|
+
*/
|
|
343
1147
|
message: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* Type of the error.
|
|
1150
|
+
*/
|
|
344
1151
|
type: string;
|
|
345
1152
|
};
|
|
1153
|
+
/**
|
|
1154
|
+
* Result of the action.
|
|
1155
|
+
*/
|
|
346
1156
|
result: {};
|
|
347
1157
|
status: 'success' | 'pending' | 'error';
|
|
348
1158
|
} | {
|
|
1159
|
+
/**
|
|
1160
|
+
* ID of the action attempt.
|
|
1161
|
+
*/
|
|
349
1162
|
action_attempt_id: string;
|
|
1163
|
+
/**
|
|
1164
|
+
* Action attempt to track the status of configuring the auto-lock on a lock.
|
|
1165
|
+
*/
|
|
350
1166
|
action_type: 'CONFIGURE_AUTO_LOCK';
|
|
1167
|
+
/**
|
|
1168
|
+
* Error associated with the action.
|
|
1169
|
+
*/
|
|
351
1170
|
error: {
|
|
1171
|
+
/**
|
|
1172
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1173
|
+
*/
|
|
352
1174
|
message: string;
|
|
1175
|
+
/**
|
|
1176
|
+
* Type of the error.
|
|
1177
|
+
*/
|
|
353
1178
|
type: string;
|
|
354
1179
|
};
|
|
1180
|
+
/**
|
|
1181
|
+
* Result of the action.
|
|
1182
|
+
*/
|
|
355
1183
|
result: {};
|
|
356
1184
|
status: 'success' | 'pending' | 'error';
|
|
357
1185
|
} | {
|
|
1186
|
+
/**
|
|
1187
|
+
* ID of the action attempt.
|
|
1188
|
+
*/
|
|
358
1189
|
action_attempt_id: string;
|
|
1190
|
+
/**
|
|
1191
|
+
* Syncing access codes is pending.
|
|
1192
|
+
*/
|
|
359
1193
|
action_type: 'SYNC_ACCESS_CODES';
|
|
1194
|
+
/**
|
|
1195
|
+
* Error associated with the action.
|
|
1196
|
+
*/
|
|
360
1197
|
error: {
|
|
1198
|
+
/**
|
|
1199
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1200
|
+
*/
|
|
361
1201
|
message: string;
|
|
1202
|
+
/**
|
|
1203
|
+
* Type of the error.
|
|
1204
|
+
*/
|
|
362
1205
|
type: string;
|
|
363
1206
|
};
|
|
1207
|
+
/**
|
|
1208
|
+
* Result of the action.
|
|
1209
|
+
*/
|
|
364
1210
|
result: {};
|
|
365
1211
|
status: 'success' | 'pending' | 'error';
|
|
366
1212
|
} | {
|
|
1213
|
+
/**
|
|
1214
|
+
* ID of the action attempt.
|
|
1215
|
+
*/
|
|
367
1216
|
action_attempt_id: string;
|
|
1217
|
+
/**
|
|
1218
|
+
* Creating an access code is pending.
|
|
1219
|
+
*/
|
|
368
1220
|
action_type: 'CREATE_ACCESS_CODE';
|
|
1221
|
+
/**
|
|
1222
|
+
* Error associated with the action.
|
|
1223
|
+
*/
|
|
369
1224
|
error: {
|
|
1225
|
+
/**
|
|
1226
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1227
|
+
*/
|
|
370
1228
|
message: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* Type of the error.
|
|
1231
|
+
*/
|
|
371
1232
|
type: string;
|
|
372
1233
|
};
|
|
1234
|
+
/**
|
|
1235
|
+
* Result of the action.
|
|
1236
|
+
*/
|
|
373
1237
|
result: {};
|
|
374
1238
|
status: 'success' | 'pending' | 'error';
|
|
375
1239
|
} | {
|
|
1240
|
+
/**
|
|
1241
|
+
* ID of the action attempt.
|
|
1242
|
+
*/
|
|
376
1243
|
action_attempt_id: string;
|
|
1244
|
+
/**
|
|
1245
|
+
* Deleting an access code is pending.
|
|
1246
|
+
*/
|
|
377
1247
|
action_type: 'DELETE_ACCESS_CODE';
|
|
1248
|
+
/**
|
|
1249
|
+
* Error associated with the action.
|
|
1250
|
+
*/
|
|
378
1251
|
error: {
|
|
1252
|
+
/**
|
|
1253
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1254
|
+
*/
|
|
379
1255
|
message: string;
|
|
1256
|
+
/**
|
|
1257
|
+
* Type of the error.
|
|
1258
|
+
*/
|
|
380
1259
|
type: string;
|
|
381
1260
|
};
|
|
1261
|
+
/**
|
|
1262
|
+
* Result of the action.
|
|
1263
|
+
*/
|
|
382
1264
|
result: {};
|
|
383
1265
|
status: 'success' | 'pending' | 'error';
|
|
384
1266
|
} | {
|
|
1267
|
+
/**
|
|
1268
|
+
* ID of the action attempt.
|
|
1269
|
+
*/
|
|
385
1270
|
action_attempt_id: string;
|
|
1271
|
+
/**
|
|
1272
|
+
* Updating an access code is pending.
|
|
1273
|
+
*/
|
|
386
1274
|
action_type: 'UPDATE_ACCESS_CODE';
|
|
1275
|
+
/**
|
|
1276
|
+
* Error associated with the action.
|
|
1277
|
+
*/
|
|
387
1278
|
error: {
|
|
1279
|
+
/**
|
|
1280
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1281
|
+
*/
|
|
388
1282
|
message: string;
|
|
1283
|
+
/**
|
|
1284
|
+
* Type of the error.
|
|
1285
|
+
*/
|
|
389
1286
|
type: string;
|
|
390
1287
|
};
|
|
1288
|
+
/**
|
|
1289
|
+
* Result of the action.
|
|
1290
|
+
*/
|
|
391
1291
|
result: {};
|
|
392
1292
|
status: 'success' | 'pending' | 'error';
|
|
393
1293
|
} | {
|
|
1294
|
+
/**
|
|
1295
|
+
* ID of the action attempt.
|
|
1296
|
+
*/
|
|
394
1297
|
action_attempt_id: string;
|
|
1298
|
+
/**
|
|
1299
|
+
* Creating a noise threshold is pending.
|
|
1300
|
+
*/
|
|
395
1301
|
action_type: 'CREATE_NOISE_THRESHOLD';
|
|
1302
|
+
/**
|
|
1303
|
+
* Error associated with the action.
|
|
1304
|
+
*/
|
|
396
1305
|
error: {
|
|
1306
|
+
/**
|
|
1307
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1308
|
+
*/
|
|
397
1309
|
message: string;
|
|
1310
|
+
/**
|
|
1311
|
+
* Type of the error.
|
|
1312
|
+
*/
|
|
398
1313
|
type: string;
|
|
399
1314
|
};
|
|
1315
|
+
/**
|
|
1316
|
+
* Result of the action.
|
|
1317
|
+
*/
|
|
400
1318
|
result: {};
|
|
401
1319
|
status: 'success' | 'pending' | 'error';
|
|
402
1320
|
} | {
|
|
1321
|
+
/**
|
|
1322
|
+
* ID of the action attempt.
|
|
1323
|
+
*/
|
|
403
1324
|
action_attempt_id: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* Deleting a noise threshold is pending.
|
|
1327
|
+
*/
|
|
404
1328
|
action_type: 'DELETE_NOISE_THRESHOLD';
|
|
1329
|
+
/**
|
|
1330
|
+
* Error associated with the action.
|
|
1331
|
+
*/
|
|
405
1332
|
error: {
|
|
1333
|
+
/**
|
|
1334
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1335
|
+
*/
|
|
406
1336
|
message: string;
|
|
1337
|
+
/**
|
|
1338
|
+
* Type of the error.
|
|
1339
|
+
*/
|
|
407
1340
|
type: string;
|
|
408
1341
|
};
|
|
1342
|
+
/**
|
|
1343
|
+
* Result of the action.
|
|
1344
|
+
*/
|
|
409
1345
|
result: {};
|
|
410
1346
|
status: 'success' | 'pending' | 'error';
|
|
411
1347
|
} | {
|
|
1348
|
+
/**
|
|
1349
|
+
* ID of the action attempt.
|
|
1350
|
+
*/
|
|
412
1351
|
action_attempt_id: string;
|
|
1352
|
+
/**
|
|
1353
|
+
* Updating a noise threshold is pending.
|
|
1354
|
+
*/
|
|
413
1355
|
action_type: 'UPDATE_NOISE_THRESHOLD';
|
|
1356
|
+
/**
|
|
1357
|
+
* Error associated with the action.
|
|
1358
|
+
*/
|
|
414
1359
|
error: {
|
|
1360
|
+
/**
|
|
1361
|
+
* Detailed description of the error. Provides insights into the issue and potentially how to rectify it.
|
|
1362
|
+
*/
|
|
415
1363
|
message: string;
|
|
1364
|
+
/**
|
|
1365
|
+
* Type of the error.
|
|
1366
|
+
*/
|
|
416
1367
|
type: string;
|
|
417
1368
|
};
|
|
1369
|
+
/**
|
|
1370
|
+
* Result of the action.
|
|
1371
|
+
*/
|
|
418
1372
|
result: {};
|
|
419
1373
|
status: 'success' | 'pending' | 'error';
|
|
420
1374
|
};
|