@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
|
@@ -1,26 +1,73 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
export const acs_entrance_assa_abloy_vostio_metadata = z
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
export const acs_entrance_assa_abloy_vostio_metadata = z
|
|
4
|
+
.object({
|
|
5
|
+
door_type: z
|
|
6
|
+
.enum(['CommonDoor', 'EntranceDoor', 'GuestDoor', 'Elevator'])
|
|
7
|
+
.describe('Type of the door in the Vostio access system.'),
|
|
8
|
+
door_name: z
|
|
9
|
+
.string()
|
|
10
|
+
.describe('Name of the door in the Vostio access system.'),
|
|
11
|
+
door_number: z
|
|
12
|
+
.number()
|
|
13
|
+
.optional()
|
|
14
|
+
.describe('Number of the door in the Vostio access system.'),
|
|
15
|
+
stand_open: z
|
|
16
|
+
.boolean()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe(
|
|
19
|
+
'Indicates whether keys are allowed to set the door in stand open mode in the Vostio access system.',
|
|
20
|
+
),
|
|
21
|
+
pms_id: z
|
|
22
|
+
.string()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('PMS ID of the door in the Vostio access system.'),
|
|
25
|
+
})
|
|
26
|
+
.describe('ASSA ABLOY Vostio-specific metadata associated with the entrance.')
|
|
10
27
|
|
|
11
28
|
export type AcsEntranceAssaAbloyVostioMetadata = z.infer<
|
|
12
29
|
typeof acs_entrance_assa_abloy_vostio_metadata
|
|
13
30
|
>
|
|
14
31
|
|
|
15
|
-
export const acs_credential_vostio_metadata = z
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
export const acs_credential_vostio_metadata = z
|
|
33
|
+
.object({
|
|
34
|
+
// auto_join does not exist in the Vostio API and is an abstraction made by Seam
|
|
35
|
+
auto_join: z
|
|
36
|
+
.boolean()
|
|
37
|
+
.optional()
|
|
38
|
+
.describe(
|
|
39
|
+
'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.',
|
|
40
|
+
),
|
|
41
|
+
override_guest_acs_entrance_ids: z
|
|
42
|
+
.string()
|
|
43
|
+
.array()
|
|
44
|
+
.optional()
|
|
45
|
+
.describe(
|
|
46
|
+
'IDs of the guest entrances to override in the Vostio access system.',
|
|
47
|
+
),
|
|
48
|
+
key_id: z
|
|
49
|
+
.string()
|
|
50
|
+
.optional()
|
|
51
|
+
.describe('Key ID in the Vostio access system.'),
|
|
52
|
+
key_issuing_request_id: z
|
|
53
|
+
.string()
|
|
54
|
+
.optional()
|
|
55
|
+
.describe('Key issuing request ID in the Vostio access system.'),
|
|
56
|
+
door_names: z
|
|
57
|
+
.string()
|
|
58
|
+
.array()
|
|
59
|
+
.optional()
|
|
60
|
+
.describe(
|
|
61
|
+
'Names of the doors to which to grant access in the Vostio access system.',
|
|
62
|
+
),
|
|
63
|
+
endpoint_id: z
|
|
64
|
+
.string()
|
|
65
|
+
.optional()
|
|
66
|
+
.describe('Endpoint ID in the Vostio access system.'),
|
|
67
|
+
})
|
|
68
|
+
.describe(
|
|
69
|
+
'ASSA ABLOY Vostio-specific metadata associated with the credential.',
|
|
70
|
+
)
|
|
24
71
|
|
|
25
72
|
export type AcsCredentialVostioMetadata = z.infer<
|
|
26
73
|
typeof acs_credential_vostio_metadata
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
export const acs_entrance_dormakaba_community_metadata = z
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
export const acs_entrance_dormakaba_community_metadata = z
|
|
4
|
+
.object({
|
|
5
|
+
access_point_name: z
|
|
6
|
+
.string()
|
|
7
|
+
.describe(
|
|
8
|
+
'Name of the access point in the dormakaba Community access system.',
|
|
9
|
+
),
|
|
10
|
+
})
|
|
11
|
+
.describe(
|
|
12
|
+
'dormakaba Community-specific metadata associated with the entrance.',
|
|
13
|
+
)
|
|
6
14
|
|
|
7
15
|
export type AcsEntranceDormakabaCommunityMetadata = z.infer<
|
|
8
16
|
typeof acs_entrance_dormakaba_community_metadata
|
|
@@ -1,11 +1,21 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
export const acs_entrance_latch_metadata = z
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export const acs_entrance_latch_metadata = z
|
|
4
|
+
.object({
|
|
5
|
+
accessibility_type: z
|
|
6
|
+
.string()
|
|
7
|
+
.describe('Accessibility type in the Latch access system.'),
|
|
8
|
+
door_name: z
|
|
9
|
+
.string()
|
|
10
|
+
.describe('Name of the door in the Latch access system.'),
|
|
11
|
+
door_type: z
|
|
12
|
+
.string()
|
|
13
|
+
.describe('Type of the door in the Latch access system.'),
|
|
14
|
+
is_connected: z
|
|
15
|
+
.boolean()
|
|
16
|
+
.describe('Indicates whether the entrance is connected.'),
|
|
17
|
+
})
|
|
18
|
+
.describe('Latch-specific metadata associated with the entrance.')
|
|
9
19
|
|
|
10
20
|
export type AcsEntranceLatchMetadata = z.infer<
|
|
11
21
|
typeof acs_entrance_latch_metadata
|
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
export const acs_entrance_salto_space_metadata = z
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export const acs_entrance_salto_space_metadata = z
|
|
4
|
+
.object({
|
|
5
|
+
door_name: z
|
|
6
|
+
.string()
|
|
7
|
+
.describe('Name of the door in the Salto Space access system.'),
|
|
8
|
+
ext_door_id: z
|
|
9
|
+
.string()
|
|
10
|
+
.describe('External door ID in the Salto Space access system.'),
|
|
11
|
+
door_description: z
|
|
12
|
+
.string()
|
|
13
|
+
.optional()
|
|
14
|
+
.describe('Description of the door in the Salto Space access system.'),
|
|
15
|
+
})
|
|
16
|
+
.describe('Salto Space-specific metadata associated with the entrance.')
|
|
8
17
|
|
|
9
18
|
export type AcsEntranceSaltoSpaceMetadata = z.infer<
|
|
10
19
|
typeof acs_entrance_salto_space_metadata
|
|
@@ -1,15 +1,37 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
export const acs_entrance_salto_ks_metadata = z
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
export const acs_entrance_salto_ks_metadata = z
|
|
4
|
+
.object({
|
|
5
|
+
door_name: z
|
|
6
|
+
.string()
|
|
7
|
+
.describe('Name of the door in the Salto KS access system.'),
|
|
8
|
+
locked_state: z
|
|
9
|
+
.string()
|
|
10
|
+
.describe('Locked state of the door in the Salto KS access system.'),
|
|
11
|
+
lock_type: z
|
|
12
|
+
.string()
|
|
13
|
+
.describe('Type of the lock in the Salto KS access system.'),
|
|
14
|
+
online: z
|
|
15
|
+
.boolean()
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('Indicates whether the door access device is online.'),
|
|
18
|
+
battery_level: z
|
|
19
|
+
.string()
|
|
20
|
+
.describe('Battery level of the door access device.'),
|
|
21
|
+
left_open_alarm: z
|
|
22
|
+
.boolean()
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('Indicates whether the door is left open.'),
|
|
25
|
+
intrusion_alarm: z
|
|
26
|
+
.boolean()
|
|
27
|
+
.optional()
|
|
28
|
+
.describe('Indicates whether an intrusion alarm is active on the door.'),
|
|
29
|
+
privacy_mode: z
|
|
30
|
+
.boolean()
|
|
31
|
+
.optional()
|
|
32
|
+
.describe('Indicates whether privacy mode is enabled for the lock.'),
|
|
33
|
+
})
|
|
34
|
+
.describe('Salto KS-specific metadata associated with the entrance.')
|
|
13
35
|
|
|
14
36
|
export type AcsEntranceSaltoKSMetadata = z.infer<
|
|
15
37
|
typeof acs_entrance_salto_ks_metadata
|
|
@@ -1,34 +1,66 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
|
-
export const acs_entrance_visionline_metadata = z
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
})
|
|
3
|
+
export const acs_entrance_visionline_metadata = z
|
|
4
|
+
.object({
|
|
5
|
+
door_name: z
|
|
6
|
+
.string()
|
|
7
|
+
.describe('Name of the door in the Visionline access system.'),
|
|
8
|
+
door_category: z
|
|
9
|
+
.enum(['entrance', 'guest', 'elevator reader', 'common', 'common (PMS)'])
|
|
10
|
+
.describe('Category of the door in the Visionline access system.'),
|
|
11
|
+
profiles: z
|
|
12
|
+
.array(
|
|
13
|
+
z.object({
|
|
14
|
+
visionline_door_profile_id: z
|
|
15
|
+
.string()
|
|
16
|
+
.describe('Door profile ID in the Visionline access system.'),
|
|
17
|
+
visionline_door_profile_type: z
|
|
18
|
+
.enum(['BLE', 'commonDoor', 'touch'])
|
|
19
|
+
.describe('Door profile type in the Visionline access system.'),
|
|
20
|
+
}),
|
|
21
|
+
)
|
|
22
|
+
.optional()
|
|
23
|
+
.describe('Profile for the door in the Visionline access system.'),
|
|
24
|
+
})
|
|
25
|
+
.describe('Visionline-specific metadata associated with the entrance.')
|
|
21
26
|
|
|
22
|
-
export const acs_credential_visionline_metadata = z
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
export const acs_credential_visionline_metadata = z
|
|
28
|
+
.object({
|
|
29
|
+
card_function_type: z
|
|
30
|
+
.enum(['guest', 'staff'])
|
|
31
|
+
.describe('Card function type in the Visionline access system.'),
|
|
32
|
+
joiner_acs_credential_ids: z
|
|
33
|
+
.array(z.string().uuid())
|
|
34
|
+
.optional()
|
|
35
|
+
.describe('IDs of the credentials to which you want to join.'),
|
|
36
|
+
guest_acs_entrance_ids: z
|
|
37
|
+
.array(z.string().uuid())
|
|
38
|
+
.optional()
|
|
39
|
+
.describe('Guest entrance IDs in the Visionline access system.'),
|
|
40
|
+
common_acs_entrance_ids: z
|
|
41
|
+
.array(z.string().uuid())
|
|
42
|
+
.optional()
|
|
43
|
+
.describe('Common entrance IDs in the Visionline access system.'),
|
|
44
|
+
is_valid: z
|
|
45
|
+
.boolean()
|
|
46
|
+
.optional()
|
|
47
|
+
.describe('Indicates whether the credential is valid.'),
|
|
48
|
+
auto_join: z
|
|
49
|
+
.boolean()
|
|
50
|
+
.optional()
|
|
51
|
+
.describe(
|
|
52
|
+
'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.',
|
|
53
|
+
),
|
|
54
|
+
card_id: z
|
|
55
|
+
.string()
|
|
56
|
+
.optional()
|
|
57
|
+
.describe('ID of the card in the Visionline access system.'),
|
|
58
|
+
credential_id: z
|
|
59
|
+
.string()
|
|
60
|
+
.optional()
|
|
61
|
+
.describe('ID of the credential in the Visionline access system.'),
|
|
62
|
+
})
|
|
63
|
+
.describe('Visionline-specific metadata associated with the credential.')
|
|
32
64
|
|
|
33
65
|
export type AcsCredentialVisionlineMetadata = z.infer<
|
|
34
66
|
typeof acs_credential_visionline_metadata
|
|
@@ -32,6 +32,11 @@ export const action_attempt = z.union([
|
|
|
32
32
|
---
|
|
33
33
|
route_path: /action_attempts
|
|
34
34
|
---
|
|
35
|
+
Represents an action attempt that enables you to keep track of the progress of your action that affects a physical device or system.actions against a device. Action attempts are useful because the physical world is intrinsically asynchronous.
|
|
36
|
+
|
|
37
|
+
When you request for a device to perform an action, the Seam API immediately returns an action attempt object. In the background, the Seam API performs the action.
|
|
38
|
+
|
|
39
|
+
See also [Action Attempts](https://docs.seam.co/latest/core-concepts/action-attempts).
|
|
35
40
|
`)
|
|
36
41
|
|
|
37
42
|
export type ActionAttempt = z.infer<typeof action_attempt>
|
|
@@ -6,14 +6,24 @@ import {
|
|
|
6
6
|
common_succeeded_action_attempt,
|
|
7
7
|
} from './common.js'
|
|
8
8
|
|
|
9
|
-
const action_type = z
|
|
9
|
+
const action_type = z
|
|
10
|
+
.literal('ACTIVATE_CLIMATE_PRESET')
|
|
11
|
+
.describe(
|
|
12
|
+
'Action attempt to track the status of a climate preset activation.',
|
|
13
|
+
)
|
|
10
14
|
|
|
11
|
-
const error = z
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
const error = z
|
|
16
|
+
.object({
|
|
17
|
+
type: z.string().describe('Type of the error.'),
|
|
18
|
+
message: z
|
|
19
|
+
.string()
|
|
20
|
+
.describe(
|
|
21
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
22
|
+
),
|
|
23
|
+
})
|
|
24
|
+
.describe('Error associated with the action.')
|
|
15
25
|
|
|
16
|
-
const result = z.object({})
|
|
26
|
+
const result = z.object({}).describe('Result of the action.')
|
|
17
27
|
|
|
18
28
|
export const activate_climate_preset_action_attempt = z.discriminatedUnion(
|
|
19
29
|
'status',
|
|
@@ -22,15 +32,15 @@ export const activate_climate_preset_action_attempt = z.discriminatedUnion(
|
|
|
22
32
|
.extend({
|
|
23
33
|
action_type,
|
|
24
34
|
})
|
|
25
|
-
.describe('Activating climate preset.'),
|
|
35
|
+
.describe('Activating a climate preset is pending.'),
|
|
26
36
|
common_succeeded_action_attempt
|
|
27
37
|
.extend({
|
|
28
38
|
action_type,
|
|
29
39
|
result,
|
|
30
40
|
})
|
|
31
|
-
.describe('Activating climate preset succeeded.'),
|
|
41
|
+
.describe('Activating a climate preset succeeded.'),
|
|
32
42
|
common_failed_action_attempt
|
|
33
43
|
.extend({ action_type, error })
|
|
34
|
-
.describe('Activating climate preset failed.'),
|
|
44
|
+
.describe('Activating a climate preset failed.'),
|
|
35
45
|
],
|
|
36
46
|
)
|
|
@@ -6,118 +6,188 @@ import {
|
|
|
6
6
|
common_succeeded_action_attempt,
|
|
7
7
|
} from './common.js'
|
|
8
8
|
|
|
9
|
-
const error = z
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
const error = z
|
|
10
|
+
.object({
|
|
11
|
+
type: z.string().describe('Type of the error.'),
|
|
12
|
+
message: z
|
|
13
|
+
.string()
|
|
14
|
+
.describe(
|
|
15
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
16
|
+
),
|
|
17
|
+
})
|
|
18
|
+
.describe('Error associated with the action.')
|
|
13
19
|
|
|
14
|
-
const result = z.object({})
|
|
20
|
+
const result = z.object({}).describe('Result of the action.')
|
|
15
21
|
|
|
16
|
-
const sync_access_codes_action_attempt = z
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
const sync_access_codes_action_attempt = z
|
|
23
|
+
.discriminatedUnion('status', [
|
|
24
|
+
common_pending_action_attempt.extend({
|
|
25
|
+
action_type: z
|
|
26
|
+
.literal('SYNC_ACCESS_CODES')
|
|
27
|
+
.describe('Syncing access codes is pending.'),
|
|
28
|
+
}),
|
|
29
|
+
common_succeeded_action_attempt.extend({
|
|
30
|
+
action_type: z
|
|
31
|
+
.literal('SYNC_ACCESS_CODES')
|
|
32
|
+
.describe('Syncing access codes succeeded.'),
|
|
33
|
+
result,
|
|
34
|
+
}),
|
|
35
|
+
common_failed_action_attempt.extend({
|
|
36
|
+
action_type: z
|
|
37
|
+
.literal('SYNC_ACCESS_CODES')
|
|
38
|
+
.describe('Syncing access codes failed.'),
|
|
39
|
+
error,
|
|
40
|
+
}),
|
|
41
|
+
])
|
|
42
|
+
.describe('Action attempt to track the status of syncing access codes.')
|
|
29
43
|
|
|
30
|
-
const create_access_code_action_attempt = z
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
const create_access_code_action_attempt = z
|
|
45
|
+
.discriminatedUnion('status', [
|
|
46
|
+
common_pending_action_attempt.extend({
|
|
47
|
+
action_type: z
|
|
48
|
+
.literal('CREATE_ACCESS_CODE')
|
|
49
|
+
.describe('Creating an access code is pending.'),
|
|
50
|
+
}),
|
|
51
|
+
common_succeeded_action_attempt.extend({
|
|
52
|
+
action_type: z
|
|
53
|
+
.literal('CREATE_ACCESS_CODE')
|
|
54
|
+
.describe('Creating an access code succeeded.'),
|
|
55
|
+
result: z
|
|
56
|
+
.object({
|
|
57
|
+
access_code: z.any().describe('Created access code.'),
|
|
58
|
+
})
|
|
59
|
+
.describe('Result of the action.'),
|
|
60
|
+
}),
|
|
61
|
+
common_failed_action_attempt.extend({
|
|
62
|
+
action_type: z
|
|
63
|
+
.literal('CREATE_ACCESS_CODE')
|
|
64
|
+
.describe('Creating an access code failed.'),
|
|
65
|
+
error,
|
|
66
|
+
}),
|
|
67
|
+
])
|
|
68
|
+
.describe('Action attempt to track the status of creating an access code.')
|
|
45
69
|
|
|
46
|
-
const delete_access_code_action_attempt = z
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
70
|
+
const delete_access_code_action_attempt = z
|
|
71
|
+
.discriminatedUnion('status', [
|
|
72
|
+
common_pending_action_attempt.extend({
|
|
73
|
+
action_type: z
|
|
74
|
+
.literal('DELETE_ACCESS_CODE')
|
|
75
|
+
.describe('Deleting an access code is pending.'),
|
|
76
|
+
}),
|
|
77
|
+
common_succeeded_action_attempt.extend({
|
|
78
|
+
action_type: z
|
|
79
|
+
.literal('DELETE_ACCESS_CODE')
|
|
80
|
+
.describe('Deleting an access code succeeded.'),
|
|
81
|
+
result,
|
|
82
|
+
}),
|
|
83
|
+
common_failed_action_attempt.extend({
|
|
84
|
+
action_type: z
|
|
85
|
+
.literal('DELETE_ACCESS_CODE')
|
|
86
|
+
.describe('Deleting an access code failed.'),
|
|
87
|
+
error,
|
|
88
|
+
}),
|
|
89
|
+
])
|
|
90
|
+
.describe('Action attempt to track the status of deleting an access code.')
|
|
59
91
|
|
|
60
|
-
const update_access_code_action_attempt = z
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
92
|
+
const update_access_code_action_attempt = z
|
|
93
|
+
.discriminatedUnion('status', [
|
|
94
|
+
common_pending_action_attempt.extend({
|
|
95
|
+
action_type: z
|
|
96
|
+
.literal('UPDATE_ACCESS_CODE')
|
|
97
|
+
.describe('Updating an access code is pending.'),
|
|
98
|
+
}),
|
|
99
|
+
common_succeeded_action_attempt.extend({
|
|
100
|
+
action_type: z
|
|
101
|
+
.literal('UPDATE_ACCESS_CODE')
|
|
102
|
+
.describe('Updating an access code succeeded.'),
|
|
103
|
+
result: z
|
|
104
|
+
.object({
|
|
105
|
+
access_code: z.any().describe('Updated access code.'),
|
|
106
|
+
})
|
|
107
|
+
.describe('Result of the action.'),
|
|
108
|
+
}),
|
|
109
|
+
common_failed_action_attempt.extend({
|
|
110
|
+
action_type: z
|
|
111
|
+
.literal('UPDATE_ACCESS_CODE')
|
|
112
|
+
.describe('Updating an access code failed.'),
|
|
113
|
+
error,
|
|
114
|
+
}),
|
|
115
|
+
])
|
|
116
|
+
.describe('Action attempt to track the status of updating an access code.')
|
|
75
117
|
|
|
76
|
-
const create_noise_threshold_action_attempt = z
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
118
|
+
const create_noise_threshold_action_attempt = z
|
|
119
|
+
.discriminatedUnion('status', [
|
|
120
|
+
common_pending_action_attempt.extend({
|
|
121
|
+
action_type: z
|
|
122
|
+
.literal('CREATE_NOISE_THRESHOLD')
|
|
123
|
+
.describe('Creating a noise threshold is pending.'),
|
|
124
|
+
}),
|
|
125
|
+
common_succeeded_action_attempt.extend({
|
|
126
|
+
action_type: z
|
|
127
|
+
.literal('CREATE_NOISE_THRESHOLD')
|
|
128
|
+
.describe('Creating a noise threshold succeeded.'),
|
|
129
|
+
result: z
|
|
130
|
+
.object({
|
|
131
|
+
noise_threshold: z.any().describe('Created noise threshold.'),
|
|
132
|
+
})
|
|
133
|
+
.describe('Result of the action.'),
|
|
134
|
+
}),
|
|
135
|
+
common_failed_action_attempt.extend({
|
|
136
|
+
action_type: z
|
|
137
|
+
.literal('CREATE_NOISE_THRESHOLD')
|
|
138
|
+
.describe('Creating a noise threshold failed.'),
|
|
139
|
+
error,
|
|
140
|
+
}),
|
|
141
|
+
])
|
|
142
|
+
.describe('Action attempt to track the status of creating a noise threshold.')
|
|
91
143
|
|
|
92
|
-
const delete_noise_threshold_action_attempt = z
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
144
|
+
const delete_noise_threshold_action_attempt = z
|
|
145
|
+
.discriminatedUnion('status', [
|
|
146
|
+
common_pending_action_attempt.extend({
|
|
147
|
+
action_type: z
|
|
148
|
+
.literal('DELETE_NOISE_THRESHOLD')
|
|
149
|
+
.describe('Deleting a noise threshold is pending.'),
|
|
150
|
+
}),
|
|
151
|
+
common_succeeded_action_attempt.extend({
|
|
152
|
+
action_type: z
|
|
153
|
+
.literal('DELETE_NOISE_THRESHOLD')
|
|
154
|
+
.describe('Deleting a noise threshold succeeded.'),
|
|
155
|
+
result,
|
|
156
|
+
}),
|
|
157
|
+
common_failed_action_attempt.extend({
|
|
158
|
+
action_type: z
|
|
159
|
+
.literal('DELETE_NOISE_THRESHOLD')
|
|
160
|
+
.describe('Deleting a noise threshold failed.'),
|
|
161
|
+
error,
|
|
162
|
+
}),
|
|
163
|
+
])
|
|
164
|
+
.describe('Action attempt to track the status of deleting a noise threshold.')
|
|
105
165
|
|
|
106
|
-
const update_noise_threshold_action_attempt = z
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
166
|
+
const update_noise_threshold_action_attempt = z
|
|
167
|
+
.discriminatedUnion('status', [
|
|
168
|
+
common_pending_action_attempt.extend({
|
|
169
|
+
action_type: z
|
|
170
|
+
.literal('UPDATE_NOISE_THRESHOLD')
|
|
171
|
+
.describe('Updating a noise threshold is pending.'),
|
|
172
|
+
}),
|
|
173
|
+
common_succeeded_action_attempt.extend({
|
|
174
|
+
action_type: z
|
|
175
|
+
.literal('UPDATE_NOISE_THRESHOLD')
|
|
176
|
+
.describe('Updating a noise threshold succeeded.'),
|
|
177
|
+
result: z
|
|
178
|
+
.object({
|
|
179
|
+
noise_threshold: z.any().describe('Updated noise threshold.'),
|
|
180
|
+
})
|
|
181
|
+
.describe('Result of the action.'),
|
|
182
|
+
}),
|
|
183
|
+
common_failed_action_attempt.extend({
|
|
184
|
+
action_type: z
|
|
185
|
+
.literal('UPDATE_NOISE_THRESHOLD')
|
|
186
|
+
.describe('Updating a noise threshold failed.'),
|
|
187
|
+
error,
|
|
188
|
+
}),
|
|
189
|
+
])
|
|
190
|
+
.describe('Action attempt to track the status of updating a noise threshold.')
|
|
121
191
|
|
|
122
192
|
export const deprecated_action_attempts = [
|
|
123
193
|
...sync_access_codes_action_attempt.options,
|