@seamapi/types 1.416.1 → 1.417.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/dist/connect.cjs +4358 -2205
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +11496 -6206
- package/lib/seam/connect/models/access-codes/managed-access-code.js +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.js +6 -5
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.js +4 -3
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/access-grants/requested-access-method.js +2 -2
- package/lib/seam/connect/models/access-grants/requested-access-method.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential-pool.js +2 -1
- package/lib/seam/connect/models/acs/acs-credential-pool.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js +2 -1
- package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +3 -0
- package/lib/seam/connect/models/acs/acs-entrance.js +4 -0
- package/lib/seam/connect/models/acs/acs-entrance.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/acs-user.js +37 -37
- package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +57 -19
- package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.js +52 -15
- package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/dormakaba-community.js +7 -3
- package/lib/seam/connect/models/acs/metadata/dormakaba-community.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/latch.js +16 -6
- package/lib/seam/connect/models/acs/metadata/latch.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/salto-space.js +14 -5
- package/lib/seam/connect/models/acs/metadata/salto-space.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/salto.js +32 -10
- package/lib/seam/connect/models/acs/metadata/salto.js.map +1 -1
- package/lib/seam/connect/models/acs/metadata/visionline.js +53 -23
- package/lib/seam/connect/models/acs/metadata/visionline.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.js +5 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/activate-climate-preset.js +15 -9
- package/lib/seam/connect/models/action-attempts/activate-climate-preset.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/deprecated.js +120 -52
- package/lib/seam/connect/models/action-attempts/deprecated.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/encode-access-method.js +35 -17
- package/lib/seam/connect/models/action-attempts/encode-access-method.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/encode-credential.js +35 -17
- package/lib/seam/connect/models/action-attempts/encode-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/lock-door.js +15 -9
- package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/push-thermostat-programs.js +13 -7
- package/lib/seam/connect/models/action-attempts/push-thermostat-programs.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js +15 -9
- package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/scan-credential.js +34 -16
- package/lib/seam/connect/models/action-attempts/scan-credential.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/set-fan-mode.js +15 -9
- package/lib/seam/connect/models/action-attempts/set-fan-mode.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/set-hvac-mode.js +15 -9
- package/lib/seam/connect/models/action-attempts/set-hvac-mode.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js +15 -9
- package/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js +15 -9
- package/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/unlock-door.js +15 -9
- package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge-client-session.js +66 -25
- package/lib/seam/connect/models/bridges/bridge-client-session.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge-connected-system.js +32 -9
- package/lib/seam/connect/models/bridges/bridge-connected-system.js.map +1 -1
- package/lib/seam/connect/models/bridges/bridge.js +10 -3
- package/lib/seam/connect/models/bridges/bridge.js.map +1 -1
- package/lib/seam/connect/models/client-sessions/client-session.js +47 -13
- package/lib/seam/connect/models/client-sessions/client-session.js.map +1 -1
- package/lib/seam/connect/models/connect-webviews/connect-webview.js +7 -9
- package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.js +8 -8
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/custom-metadata.js +1 -1
- package/lib/seam/connect/models/custom-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/capability-properties/lock.js +2 -1
- package/lib/seam/connect/models/devices/capability-properties/lock.js.map +1 -1
- package/lib/seam/connect/models/devices/device-metadata.js +493 -480
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.js +67 -47
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.js +1 -1
- package/lib/seam/connect/models/events/access-codes.js +1 -1
- package/lib/seam/connect/models/events/access-codes.js.map +1 -1
- package/lib/seam/connect/models/events/acs/credentials.js +4 -4
- package/lib/seam/connect/models/events/acs/encoders.js +2 -2
- package/lib/seam/connect/models/events/acs/entrances.js +2 -2
- package/lib/seam/connect/models/events/common.js +1 -1
- package/lib/seam/connect/models/events/common.js.map +1 -1
- package/lib/seam/connect/models/events/connect-webviews.js +2 -2
- package/lib/seam/connect/models/events/connect-webviews.js.map +1 -1
- package/lib/seam/connect/models/events/connected-accounts.js +2 -2
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/devices.js +1 -1
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/instant-keys/instant-key.js +28 -7
- package/lib/seam/connect/models/instant-keys/instant-key.js.map +1 -1
- package/lib/seam/connect/models/partner/magic-link.js +22 -11
- package/lib/seam/connect/models/partner/magic-link.js.map +1 -1
- package/lib/seam/connect/models/partner/resources.js +61 -20
- package/lib/seam/connect/models/partner/resources.js.map +1 -1
- package/lib/seam/connect/models/phones/phone-registration.js +7 -4
- package/lib/seam/connect/models/phones/phone-registration.js.map +1 -1
- package/lib/seam/connect/models/phones/phone-session.d.ts +16 -0
- package/lib/seam/connect/models/phones/phone-session.js +10 -4
- package/lib/seam/connect/models/phones/phone-session.js.map +1 -1
- package/lib/seam/connect/models/schedule.js +4 -2
- package/lib/seam/connect/models/schedule.js.map +1 -1
- package/lib/seam/connect/models/spaces/space.js +5 -4
- package/lib/seam/connect/models/spaces/space.js.map +1 -1
- package/lib/seam/connect/models/webhooks/webhook.js +16 -5
- package/lib/seam/connect/models/webhooks/webhook.js.map +1 -1
- package/lib/seam/connect/models/workspaces/workspace.js +33 -11
- package/lib/seam/connect/models/workspaces/workspace.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +420 -172
- package/lib/seam/connect/openapi.js +3243 -1186
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +11073 -6034
- package/package.json +2 -2
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +6 -9
- package/src/lib/seam/connect/models/access-grants/access-method.ts +4 -5
- package/src/lib/seam/connect/models/access-grants/requested-access-method.ts +2 -2
- package/src/lib/seam/connect/models/acs/acs-credential-pool.ts +2 -1
- package/src/lib/seam/connect/models/acs/acs-credential-provisioning-automation.ts +2 -1
- package/src/lib/seam/connect/models/acs/acs-entrance.ts +6 -0
- package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +37 -37
- package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +69 -19
- package/src/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.ts +63 -16
- package/src/lib/seam/connect/models/acs/metadata/dormakaba-community.ts +11 -3
- package/src/lib/seam/connect/models/acs/metadata/latch.ts +16 -6
- package/src/lib/seam/connect/models/acs/metadata/salto-space.ts +14 -5
- package/src/lib/seam/connect/models/acs/metadata/salto.ts +32 -10
- package/src/lib/seam/connect/models/acs/metadata/visionline.ts +60 -28
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +5 -0
- package/src/lib/seam/connect/models/action-attempts/activate-climate-preset.ts +19 -9
- package/src/lib/seam/connect/models/action-attempts/deprecated.ts +174 -104
- package/src/lib/seam/connect/models/action-attempts/encode-access-method.ts +49 -17
- package/src/lib/seam/connect/models/action-attempts/encode-credential.ts +49 -18
- package/src/lib/seam/connect/models/action-attempts/lock-door.ts +17 -9
- package/src/lib/seam/connect/models/action-attempts/push-thermostat-programs.ts +17 -7
- package/src/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.ts +19 -9
- package/src/lib/seam/connect/models/action-attempts/scan-credential.ts +52 -22
- package/src/lib/seam/connect/models/action-attempts/set-fan-mode.ts +19 -9
- package/src/lib/seam/connect/models/action-attempts/set-hvac-mode.ts +19 -9
- package/src/lib/seam/connect/models/action-attempts/simulate-keypad-code-entry.ts +19 -9
- package/src/lib/seam/connect/models/action-attempts/simulate-manual-lock-via-keypad.ts +19 -9
- package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +17 -9
- package/src/lib/seam/connect/models/bridges/bridge-client-session.ts +84 -25
- package/src/lib/seam/connect/models/bridges/bridge-connected-system.ts +42 -9
- package/src/lib/seam/connect/models/bridges/bridge.ts +12 -3
- package/src/lib/seam/connect/models/client-sessions/client-session.ts +69 -13
- package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +10 -10
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +12 -8
- package/src/lib/seam/connect/models/custom-metadata.ts +1 -1
- package/src/lib/seam/connect/models/devices/capability-properties/lock.ts +2 -1
- package/src/lib/seam/connect/models/devices/device-metadata.ts +588 -521
- package/src/lib/seam/connect/models/devices/device.ts +89 -47
- package/src/lib/seam/connect/models/devices/phone.ts +1 -1
- package/src/lib/seam/connect/models/events/access-codes.ts +1 -1
- package/src/lib/seam/connect/models/events/acs/credentials.ts +4 -4
- package/src/lib/seam/connect/models/events/acs/encoders.ts +2 -2
- package/src/lib/seam/connect/models/events/acs/entrances.ts +2 -2
- package/src/lib/seam/connect/models/events/common.ts +3 -1
- package/src/lib/seam/connect/models/events/connect-webviews.ts +6 -2
- package/src/lib/seam/connect/models/events/connected-accounts.ts +6 -2
- package/src/lib/seam/connect/models/events/devices.ts +3 -1
- package/src/lib/seam/connect/models/instant-keys/instant-key.ts +34 -7
- package/src/lib/seam/connect/models/partner/magic-link.ts +24 -11
- package/src/lib/seam/connect/models/partner/resources.ts +73 -20
- package/src/lib/seam/connect/models/phones/phone-registration.ts +7 -4
- package/src/lib/seam/connect/models/phones/phone-session.ts +21 -13
- package/src/lib/seam/connect/models/schedule.ts +19 -15
- package/src/lib/seam/connect/models/spaces/space.ts +5 -4
- package/src/lib/seam/connect/models/webhooks/webhook.ts +24 -5
- package/src/lib/seam/connect/models/workspaces/workspace.ts +53 -11
- package/src/lib/seam/connect/openapi.ts +4044 -1364
- package/src/lib/seam/connect/route-types.ts +11073 -6034
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.417.0",
|
|
4
4
|
"description": "TypeScript types for the Seam API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"zod": "^3.24.0"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@seamapi/blueprint": "^0.
|
|
95
|
+
"@seamapi/blueprint": "^0.49.0",
|
|
96
96
|
"@types/node": "^20.8.10",
|
|
97
97
|
"concurrently": "^8.2.0",
|
|
98
98
|
"del-cli": "^5.0.0",
|
|
@@ -510,7 +510,7 @@ export const access_code = z.object({
|
|
|
510
510
|
type: z
|
|
511
511
|
.enum(['time_bound', 'ongoing'])
|
|
512
512
|
.describe(
|
|
513
|
-
'
|
|
513
|
+
'Type of the access code. `ongoing` access codes are active continuously until deactivated manually. `time_bound` access codes have a specific duration.',
|
|
514
514
|
),
|
|
515
515
|
is_waiting_for_code_assignment: z
|
|
516
516
|
.boolean()
|
|
@@ -6,14 +6,12 @@ export const access_grant = z.object({
|
|
|
6
6
|
workspace_id: z
|
|
7
7
|
.string()
|
|
8
8
|
.uuid()
|
|
9
|
-
.describe(
|
|
10
|
-
'Unique identifier for the Seam workspace associated with the access grant.',
|
|
11
|
-
),
|
|
9
|
+
.describe('ID of the Seam workspace associated with the access grant.'),
|
|
12
10
|
access_grant_id: z.string().uuid().describe('ID of the access grant.'),
|
|
13
11
|
user_identity_id: z
|
|
14
12
|
.string()
|
|
15
13
|
.uuid()
|
|
16
|
-
.describe('ID of user identity to which access
|
|
14
|
+
.describe('ID of user identity to which the access grant gives access.'),
|
|
17
15
|
location_ids: z.array(z.string().uuid()).describe(`
|
|
18
16
|
---
|
|
19
17
|
deprecated: Use \`space_ids\`.
|
|
@@ -21,15 +19,13 @@ export const access_grant = z.object({
|
|
|
21
19
|
`),
|
|
22
20
|
space_ids: z
|
|
23
21
|
.array(z.string().uuid())
|
|
24
|
-
.describe('IDs of the spaces to which access
|
|
22
|
+
.describe('IDs of the spaces to which the access grant gives access.'),
|
|
25
23
|
requested_access_methods: z
|
|
26
24
|
.array(requested_access_method)
|
|
27
|
-
.describe('Access methods that the user requested for
|
|
25
|
+
.describe('Access methods that the user requested for the access grant.'),
|
|
28
26
|
access_method_ids: z
|
|
29
27
|
.array(z.string().uuid())
|
|
30
|
-
.describe(
|
|
31
|
-
'IDs of the access methods that were created for this access grant.',
|
|
32
|
-
),
|
|
28
|
+
.describe('IDs of the access methods created for the access grant.'),
|
|
33
29
|
display_name: z.string().describe('Display name of the access grant.'),
|
|
34
30
|
created_at: z
|
|
35
31
|
.string()
|
|
@@ -40,6 +36,7 @@ export const access_grant = z.object({
|
|
|
40
36
|
draft: Early access.
|
|
41
37
|
route_path: /access_grants
|
|
42
38
|
---
|
|
39
|
+
Represents an access grant. Access grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an access grant for an existing user identity, or you can create a new user identity *while* creating the new access grant.
|
|
43
40
|
`)
|
|
44
41
|
|
|
45
42
|
export type AccessGrant = z.infer<typeof access_grant>
|
|
@@ -4,9 +4,7 @@ export const access_method = z.object({
|
|
|
4
4
|
workspace_id: z
|
|
5
5
|
.string()
|
|
6
6
|
.uuid()
|
|
7
|
-
.describe(
|
|
8
|
-
'Unique identifier for the Seam workspace associated with the access grant.',
|
|
9
|
-
),
|
|
7
|
+
.describe('ID of the Seam workspace associated with the access method.'),
|
|
10
8
|
access_method_id: z.string().uuid().describe('ID of the access method.'),
|
|
11
9
|
display_name: z.string().describe('Display name of the access method.'),
|
|
12
10
|
mode: z
|
|
@@ -26,18 +24,19 @@ export const access_method = z.object({
|
|
|
26
24
|
instant_key_url: z
|
|
27
25
|
.string()
|
|
28
26
|
.optional()
|
|
29
|
-
.describe('URL of
|
|
27
|
+
.describe('URL of the Instant Key for mobile key access methods.'),
|
|
30
28
|
is_card_encoding_required: z
|
|
31
29
|
.boolean()
|
|
32
30
|
.optional()
|
|
33
31
|
.describe(
|
|
34
|
-
'
|
|
32
|
+
'Indicates whether card encoding is required for plastic card access methods.',
|
|
35
33
|
),
|
|
36
34
|
}).describe(`
|
|
37
35
|
---
|
|
38
36
|
draft: Early access.
|
|
39
37
|
route_path: /access_methods
|
|
40
38
|
---
|
|
39
|
+
Represents an access method for an access grant. Access methods describe the modes of access, such as PIN codes, plastic cards, and mobile keys. For a mobile key, the access method also stores the URL for the associated Instant Key.
|
|
41
40
|
`)
|
|
42
41
|
|
|
43
42
|
export type AccessMethod = z.infer<typeof access_method>
|
|
@@ -11,12 +11,12 @@ export const requested_access_method = z.object({
|
|
|
11
11
|
.string()
|
|
12
12
|
.datetime()
|
|
13
13
|
.describe(
|
|
14
|
-
'Date and time at which the requested access method was added to
|
|
14
|
+
'Date and time at which the requested access method was added to the access grant.',
|
|
15
15
|
),
|
|
16
16
|
created_access_method_ids: z
|
|
17
17
|
.array(z.string().uuid())
|
|
18
18
|
.describe(
|
|
19
|
-
'IDs of the access methods
|
|
19
|
+
'IDs of the access methods created for the requested access method.',
|
|
20
20
|
),
|
|
21
21
|
})
|
|
22
22
|
|
|
@@ -9,7 +9,8 @@ export const acs_credential_provisioning_automation = z.object({
|
|
|
9
9
|
}).describe(`
|
|
10
10
|
---
|
|
11
11
|
route_path: /acs/credential_provisioning_automations
|
|
12
|
-
|
|
12
|
+
deprecated: Not used.
|
|
13
|
+
undocumented: Deprecated. Will be removed.
|
|
13
14
|
---
|
|
14
15
|
`)
|
|
15
16
|
|
|
@@ -33,6 +33,12 @@ export const acs_entrance = z.object({
|
|
|
33
33
|
.describe(
|
|
34
34
|
'Display name for the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
|
|
35
35
|
),
|
|
36
|
+
connected_account_id: z
|
|
37
|
+
.string()
|
|
38
|
+
.uuid()
|
|
39
|
+
.describe(
|
|
40
|
+
'ID of the [connected account](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details) associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
|
|
41
|
+
),
|
|
36
42
|
errors: z
|
|
37
43
|
.array(
|
|
38
44
|
z.object({
|
|
@@ -33,7 +33,7 @@ const acs_users_deleted_externally = common_acs_user_error
|
|
|
33
33
|
error_code: z.literal('deleted_externally'),
|
|
34
34
|
})
|
|
35
35
|
.describe(
|
|
36
|
-
`Indicates that the [
|
|
36
|
+
`Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was deleted from the [access system](https://docs.seam.co/latest/capability-guides/access-systems) outside of Seam.`,
|
|
37
37
|
)
|
|
38
38
|
|
|
39
39
|
const acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error
|
|
@@ -41,7 +41,7 @@ const acs_users_salto_ks_subscription_limit_exceeded = common_acs_user_error
|
|
|
41
41
|
error_code: z.literal('salto_ks_subscription_limit_exceeded'),
|
|
42
42
|
})
|
|
43
43
|
.describe(
|
|
44
|
-
`Indicates that the [
|
|
44
|
+
`Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) could not be subscribed on Salto KS because the subscription limit has been exceeded.`,
|
|
45
45
|
)
|
|
46
46
|
|
|
47
47
|
const acs_users_failed_to_create_on_acs_system = common_acs_user_error
|
|
@@ -49,7 +49,7 @@ const acs_users_failed_to_create_on_acs_system = common_acs_user_error
|
|
|
49
49
|
error_code: z.literal('failed_to_create_on_acs_system'),
|
|
50
50
|
})
|
|
51
51
|
.describe(
|
|
52
|
-
`Indicates that the [
|
|
52
|
+
`Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not created on the [access system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`,
|
|
53
53
|
)
|
|
54
54
|
|
|
55
55
|
const acs_users_failed_to_update_on_acs_system = common_acs_user_error
|
|
@@ -57,7 +57,7 @@ const acs_users_failed_to_update_on_acs_system = common_acs_user_error
|
|
|
57
57
|
error_code: z.literal('failed_to_update_on_acs_system'),
|
|
58
58
|
})
|
|
59
59
|
.describe(
|
|
60
|
-
`Indicates that the [
|
|
60
|
+
`Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not updated on the [access system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`,
|
|
61
61
|
)
|
|
62
62
|
|
|
63
63
|
const acs_users_failed_to_delete_on_acs_system = common_acs_user_error
|
|
@@ -65,7 +65,7 @@ const acs_users_failed_to_delete_on_acs_system = common_acs_user_error
|
|
|
65
65
|
error_code: z.literal('failed_to_delete_on_acs_system'),
|
|
66
66
|
})
|
|
67
67
|
.describe(
|
|
68
|
-
`Indicates that the [
|
|
68
|
+
`Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was not deleted on the [access system](https://docs.seam.co/latest/capability-guides/access-systems). This is likely due to an internal unexpected error. Contact Seam [support](mailto:support@seam.co).`,
|
|
69
69
|
)
|
|
70
70
|
|
|
71
71
|
const acs_users_latch_conflict_with_resident_user = common_acs_user_error
|
|
@@ -73,7 +73,7 @@ const acs_users_latch_conflict_with_resident_user = common_acs_user_error
|
|
|
73
73
|
error_code: z.literal('latch_conflict_with_resident_user'),
|
|
74
74
|
})
|
|
75
75
|
.describe(
|
|
76
|
-
`Indicates that the [
|
|
76
|
+
`Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created from the Seam API but also exists on Mission Control. This is unsupported. Contact Seam [support](mailto:support@seam.co).`,
|
|
77
77
|
)
|
|
78
78
|
|
|
79
79
|
const acs_user_errors = z
|
|
@@ -86,7 +86,7 @@ const acs_user_errors = z
|
|
|
86
86
|
acs_users_latch_conflict_with_resident_user,
|
|
87
87
|
])
|
|
88
88
|
.describe(
|
|
89
|
-
'Errors associated with the [
|
|
89
|
+
'Errors associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
90
90
|
)
|
|
91
91
|
|
|
92
92
|
export const acs_users_error_map = z.object({
|
|
@@ -126,7 +126,7 @@ const acs_users_being_deleted = common_acs_user_warning
|
|
|
126
126
|
warning_code: z.literal('being_deleted'),
|
|
127
127
|
})
|
|
128
128
|
.describe(
|
|
129
|
-
'Indicates that the [
|
|
129
|
+
'Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is being deleted from the [access system](https://docs.seam.co/latest/capability-guides/access-systems). This is a temporary state, and the access system user will be deleted shortly.',
|
|
130
130
|
)
|
|
131
131
|
|
|
132
132
|
const acs_users_salto_ks_user_not_subscribed = common_acs_user_warning
|
|
@@ -134,7 +134,7 @@ const acs_users_salto_ks_user_not_subscribed = common_acs_user_warning
|
|
|
134
134
|
warning_code: z.literal('salto_ks_user_not_subscribed'),
|
|
135
135
|
})
|
|
136
136
|
.describe(
|
|
137
|
-
'Indicates that the [
|
|
137
|
+
'Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is not subscribed on Salto KS, so they cannot unlock doors or perform any actions. This occurs when the their access schedule hasn’t started yet, if their access schedule has ended, if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed.',
|
|
138
138
|
)
|
|
139
139
|
|
|
140
140
|
export const unknown_issue_with_acs_user = common_acs_user_warning
|
|
@@ -142,7 +142,7 @@ export const unknown_issue_with_acs_user = common_acs_user_warning
|
|
|
142
142
|
warning_code: z.literal('unknown_issue_with_acs_user'),
|
|
143
143
|
})
|
|
144
144
|
.describe(
|
|
145
|
-
'An unknown issue occurred while syncing the state of this [
|
|
145
|
+
'An unknown issue occurred while syncing the state of this [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.',
|
|
146
146
|
)
|
|
147
147
|
|
|
148
148
|
export const latch_resident_user = common_acs_user_warning
|
|
@@ -150,7 +150,7 @@ export const latch_resident_user = common_acs_user_warning
|
|
|
150
150
|
warning_code: z.literal('latch_resident_user'),
|
|
151
151
|
})
|
|
152
152
|
.describe(
|
|
153
|
-
'Indicates that the [
|
|
153
|
+
'Indicates that the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created on Latch Mission Control. Please use the Latch Mission Control to manage this user.',
|
|
154
154
|
)
|
|
155
155
|
|
|
156
156
|
export const acs_users_warning_map = z.object({
|
|
@@ -172,7 +172,7 @@ export const acs_users_warnings = z
|
|
|
172
172
|
latch_resident_user,
|
|
173
173
|
])
|
|
174
174
|
.describe(
|
|
175
|
-
'Warnings associated with the [
|
|
175
|
+
'Warnings associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
176
176
|
)
|
|
177
177
|
|
|
178
178
|
export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>
|
|
@@ -184,7 +184,7 @@ const user_fields = z.object({
|
|
|
184
184
|
.min(1)
|
|
185
185
|
.optional()
|
|
186
186
|
.describe(
|
|
187
|
-
'Full name of the [
|
|
187
|
+
'Full name of the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
188
188
|
),
|
|
189
189
|
email: z.string().email().optional().describe(`
|
|
190
190
|
---
|
|
@@ -196,12 +196,12 @@ const user_fields = z.object({
|
|
|
196
196
|
.email()
|
|
197
197
|
.optional()
|
|
198
198
|
.describe(
|
|
199
|
-
'Email address of the [
|
|
199
|
+
'Email address of the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
200
200
|
),
|
|
201
201
|
phone_number: phone_number
|
|
202
202
|
.optional()
|
|
203
203
|
.describe(
|
|
204
|
-
'Phone number of the [
|
|
204
|
+
'Phone number of the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).',
|
|
205
205
|
),
|
|
206
206
|
})
|
|
207
207
|
|
|
@@ -211,105 +211,105 @@ const common_acs_user = z
|
|
|
211
211
|
.string()
|
|
212
212
|
.uuid()
|
|
213
213
|
.describe(
|
|
214
|
-
'ID of the [
|
|
214
|
+
'ID of the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
215
215
|
),
|
|
216
216
|
acs_system_id: z
|
|
217
217
|
.string()
|
|
218
218
|
.uuid()
|
|
219
219
|
.describe(
|
|
220
|
-
'ID of the [access
|
|
220
|
+
'ID of the [access system](https://docs.seam.co/latest/capability-guides/access-systems) that contains the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
221
221
|
),
|
|
222
222
|
hid_acs_system_id: z.string().uuid().optional(),
|
|
223
223
|
workspace_id: z
|
|
224
224
|
.string()
|
|
225
225
|
.uuid()
|
|
226
226
|
.describe(
|
|
227
|
-
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [
|
|
227
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
228
228
|
),
|
|
229
229
|
created_at: z
|
|
230
230
|
.string()
|
|
231
231
|
.datetime()
|
|
232
232
|
.describe(
|
|
233
|
-
'Date and time at which the [
|
|
233
|
+
'Date and time at which the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) was created.',
|
|
234
234
|
),
|
|
235
235
|
display_name: z
|
|
236
236
|
.string()
|
|
237
237
|
.describe(
|
|
238
|
-
'Display name for the [
|
|
238
|
+
'Display name for the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
239
239
|
),
|
|
240
240
|
external_type: acs_user_external_type
|
|
241
241
|
.optional()
|
|
242
242
|
.describe(
|
|
243
|
-
'Brand-specific terminology for the [
|
|
243
|
+
'Brand-specific terminology for the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) type.',
|
|
244
244
|
),
|
|
245
245
|
external_type_display_name: z
|
|
246
246
|
.string()
|
|
247
247
|
.optional()
|
|
248
248
|
.describe(
|
|
249
|
-
'Display name that corresponds to the brand-specific terminology for the [
|
|
249
|
+
'Display name that corresponds to the brand-specific terminology for the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) type.',
|
|
250
250
|
),
|
|
251
251
|
is_suspended: z
|
|
252
252
|
.boolean()
|
|
253
253
|
.optional()
|
|
254
254
|
.describe(
|
|
255
|
-
'Indicates whether the [
|
|
255
|
+
'Indicates whether the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).',
|
|
256
256
|
),
|
|
257
257
|
access_schedule: schedule
|
|
258
258
|
.optional()
|
|
259
259
|
.describe(
|
|
260
|
-
"`starts_at` and `ends_at` timestamps for the [
|
|
260
|
+
"`starts_at` and `ends_at` timestamps for the [access system user's](https://docs.seam.co/latest/capability-guides/access-systems/user-management) access.",
|
|
261
261
|
),
|
|
262
262
|
user_identity_id: z
|
|
263
263
|
.string()
|
|
264
264
|
.optional()
|
|
265
265
|
.describe(
|
|
266
|
-
'ID of the user identity associated with the [
|
|
266
|
+
'ID of the user identity associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
267
267
|
),
|
|
268
268
|
user_identity_full_name: z
|
|
269
269
|
.string()
|
|
270
270
|
.nullable()
|
|
271
271
|
.optional()
|
|
272
272
|
.describe(
|
|
273
|
-
'Full name of the user identity associated with the [
|
|
273
|
+
'Full name of the user identity associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
274
274
|
),
|
|
275
275
|
user_identity_email_address: z
|
|
276
276
|
.string()
|
|
277
277
|
.nullable()
|
|
278
278
|
.optional()
|
|
279
279
|
.describe(
|
|
280
|
-
'Email address of the user identity associated with the [
|
|
280
|
+
'Email address of the user identity associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
281
281
|
),
|
|
282
282
|
user_identity_phone_number: z
|
|
283
283
|
.string()
|
|
284
284
|
.nullable()
|
|
285
285
|
.optional()
|
|
286
286
|
.describe(
|
|
287
|
-
'Phone number of the user identity associated with the [
|
|
287
|
+
'Phone number of the user identity associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in E.164 format (for example, `+15555550100`).',
|
|
288
288
|
),
|
|
289
289
|
warnings: z
|
|
290
290
|
.array(acs_users_warnings)
|
|
291
291
|
.describe(
|
|
292
|
-
'Warnings associated with the [
|
|
292
|
+
'Warnings associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
293
293
|
),
|
|
294
294
|
errors: z
|
|
295
295
|
.array(acs_user_errors)
|
|
296
296
|
.describe(
|
|
297
|
-
'Errors associated with the [
|
|
297
|
+
'Errors associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).',
|
|
298
298
|
),
|
|
299
299
|
pending_mutations: z
|
|
300
300
|
.array(acs_user_pending_mutations)
|
|
301
301
|
.optional()
|
|
302
302
|
.describe(
|
|
303
|
-
'Pending mutations associated with the [
|
|
303
|
+
'Pending mutations associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management). Seam is in the process of pushing these mutations to the integrated access system.',
|
|
304
304
|
),
|
|
305
305
|
last_successful_sync_at: z.string().datetime().nullable().describe(`
|
|
306
306
|
---
|
|
307
307
|
undocumented: Only used internally.
|
|
308
308
|
---
|
|
309
|
-
The last time an internal sync job completed for this
|
|
309
|
+
The last time an internal sync job completed for this access system user.
|
|
310
310
|
`),
|
|
311
311
|
connected_account_id: z.string().uuid().describe(`
|
|
312
|
-
The ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) that is associated with the [
|
|
312
|
+
The ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) that is associated with the [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management).
|
|
313
313
|
`),
|
|
314
314
|
})
|
|
315
315
|
.merge(user_fields)
|
|
@@ -322,11 +322,11 @@ export const acs_user = common_acs_user.merge(
|
|
|
322
322
|
---
|
|
323
323
|
route_path: /acs/users
|
|
324
324
|
---
|
|
325
|
-
Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access
|
|
325
|
+
Represents a [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access system](https://docs.seam.co/latest/capability-guides/access-systems).
|
|
326
326
|
|
|
327
|
-
An
|
|
327
|
+
An access system user typically refers to an individual who requires access, like an employee or resident. Each user can possess multiple credentials that serve as their keys or identifiers for access. The type of credential can vary widely. For example, in the Salto system, a user can have a PIN code, a mobile app account, and a fob. In other platforms, it is not uncommon for a user to have more than one of the same credential type, such as multiple key cards. Additionally, these credentials can have a schedule or validity period.
|
|
328
328
|
|
|
329
|
-
For details about how to configure
|
|
329
|
+
For details about how to configure users in your access system, see the corresponding [system integration guide](https://docs.seam.co/latest/device-and-system-integration-guides/overview#access-control-systems).
|
|
330
330
|
`)
|
|
331
331
|
|
|
332
332
|
export const unmanaged_acs_user = common_acs_user.merge(
|
|
@@ -338,7 +338,7 @@ export const unmanaged_acs_user = common_acs_user.merge(
|
|
|
338
338
|
route_path: /acs/users/unmanaged
|
|
339
339
|
undocumented: Unreleased.
|
|
340
340
|
---
|
|
341
|
-
Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access
|
|
341
|
+
Represents an unmanaged [user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access system](https://docs.seam.co/latest/capability-guides/access-systems).
|
|
342
342
|
`)
|
|
343
343
|
|
|
344
344
|
export type AcsUser = z.output<typeof acs_user>
|
|
@@ -12,7 +12,11 @@ const common_pending_mutation = z.object({
|
|
|
12
12
|
|
|
13
13
|
const creating = common_pending_mutation
|
|
14
14
|
.extend({
|
|
15
|
-
mutation_code: z
|
|
15
|
+
mutation_code: z
|
|
16
|
+
.literal('creating')
|
|
17
|
+
.describe(
|
|
18
|
+
'Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system.',
|
|
19
|
+
),
|
|
16
20
|
})
|
|
17
21
|
.describe(
|
|
18
22
|
'Seam is in the process of pushing a user creation to the integrated access system.',
|
|
@@ -20,35 +24,69 @@ const creating = common_pending_mutation
|
|
|
20
24
|
|
|
21
25
|
const deleting = common_pending_mutation
|
|
22
26
|
.extend({
|
|
23
|
-
mutation_code: z
|
|
27
|
+
mutation_code: z
|
|
28
|
+
.literal('deleting')
|
|
29
|
+
.describe(
|
|
30
|
+
'Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system.',
|
|
31
|
+
),
|
|
24
32
|
})
|
|
25
33
|
.describe(
|
|
26
34
|
'Seam is in the process of pushing a user deletion to the integrated access system.',
|
|
27
35
|
)
|
|
28
36
|
|
|
29
37
|
const acs_user_info = z.object({
|
|
30
|
-
email_address: z
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
email_address: z
|
|
39
|
+
.string()
|
|
40
|
+
.email()
|
|
41
|
+
.nullable()
|
|
42
|
+
.describe('Email address of the access system user.'),
|
|
43
|
+
full_name: z
|
|
44
|
+
.string()
|
|
45
|
+
.nullable()
|
|
46
|
+
.describe('Full name of the access system user.'),
|
|
47
|
+
phone_number: phone_number
|
|
48
|
+
.optional()
|
|
49
|
+
.nullable()
|
|
50
|
+
.describe('Phone number of the access system user.'),
|
|
33
51
|
})
|
|
34
52
|
|
|
35
53
|
export const updating_user_information_mutation =
|
|
36
54
|
common_pending_mutation.extend({
|
|
37
|
-
mutation_code: z
|
|
38
|
-
|
|
39
|
-
|
|
55
|
+
mutation_code: z
|
|
56
|
+
.literal('updating_user_information')
|
|
57
|
+
.describe(
|
|
58
|
+
'Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system.',
|
|
59
|
+
),
|
|
60
|
+
from: acs_user_info
|
|
61
|
+
.partial()
|
|
62
|
+
.describe('Old access system user information.'),
|
|
63
|
+
to: acs_user_info.partial().describe('New access system user information.'),
|
|
40
64
|
})
|
|
41
65
|
|
|
42
|
-
const access_schedule = z
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
66
|
+
const access_schedule = z
|
|
67
|
+
.object({
|
|
68
|
+
starts_at: z
|
|
69
|
+
.string()
|
|
70
|
+
.datetime()
|
|
71
|
+
.nullable()
|
|
72
|
+
.describe('Starting time for the access schedule.'),
|
|
73
|
+
ends_at: z
|
|
74
|
+
.string()
|
|
75
|
+
.datetime()
|
|
76
|
+
.nullable()
|
|
77
|
+
.describe('Starting time for the access schedule.'),
|
|
78
|
+
})
|
|
79
|
+
.describe('Access schedule involved in the mutation.')
|
|
46
80
|
|
|
47
81
|
const updating_access_schedule_mutation = common_pending_mutation
|
|
48
82
|
.extend({
|
|
49
|
-
mutation_code: z
|
|
50
|
-
|
|
51
|
-
|
|
83
|
+
mutation_code: z
|
|
84
|
+
.literal('updating_access_schedule')
|
|
85
|
+
.describe(
|
|
86
|
+
'Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.',
|
|
87
|
+
),
|
|
88
|
+
from: access_schedule.describe('Old access schedule information.'),
|
|
89
|
+
to: access_schedule.describe('New access schedule information.'),
|
|
52
90
|
})
|
|
53
91
|
.describe(
|
|
54
92
|
'Seam is in the process of pushing an access schedule update to the integrated access system.',
|
|
@@ -56,9 +94,17 @@ const updating_access_schedule_mutation = common_pending_mutation
|
|
|
56
94
|
|
|
57
95
|
const updating_suspension_state_mutation = common_pending_mutation
|
|
58
96
|
.extend({
|
|
59
|
-
mutation_code: z
|
|
60
|
-
|
|
61
|
-
|
|
97
|
+
mutation_code: z
|
|
98
|
+
.literal('updating_suspension_state')
|
|
99
|
+
.describe(
|
|
100
|
+
'Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system.',
|
|
101
|
+
),
|
|
102
|
+
from: z
|
|
103
|
+
.object({ is_suspended: z.boolean() })
|
|
104
|
+
.describe('Old user suspension state information.'),
|
|
105
|
+
to: z
|
|
106
|
+
.object({ is_suspended: z.boolean() })
|
|
107
|
+
.describe('New user suspension state information.'),
|
|
62
108
|
})
|
|
63
109
|
.describe(
|
|
64
110
|
'Seam is in the process of pushing a suspension state update to the integrated access system.',
|
|
@@ -66,7 +112,11 @@ const updating_suspension_state_mutation = common_pending_mutation
|
|
|
66
112
|
|
|
67
113
|
const updating_group_membership_mutation = common_pending_mutation
|
|
68
114
|
.extend({
|
|
69
|
-
mutation_code: z
|
|
115
|
+
mutation_code: z
|
|
116
|
+
.literal('updating_group_membership')
|
|
117
|
+
.describe(
|
|
118
|
+
'Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system.',
|
|
119
|
+
),
|
|
70
120
|
from: z
|
|
71
121
|
.object({
|
|
72
122
|
acs_access_group_id: z
|