@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
|
@@ -6,30 +6,38 @@ 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('UNLOCK_DOOR')
|
|
11
|
+
.describe('Action attempt to track the status of unlocking a door.')
|
|
10
12
|
|
|
11
|
-
const error = z
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const error = z
|
|
14
|
+
.object({
|
|
15
|
+
type: z.string().describe('Type of the error.'),
|
|
16
|
+
message: z
|
|
17
|
+
.string()
|
|
18
|
+
.describe(
|
|
19
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
20
|
+
),
|
|
21
|
+
})
|
|
22
|
+
.describe('Error associated with the action.')
|
|
15
23
|
|
|
16
|
-
const result = z.object({})
|
|
24
|
+
const result = z.object({}).describe('Result of the action.')
|
|
17
25
|
|
|
18
26
|
export const unlock_door_action_attempt = z.discriminatedUnion('status', [
|
|
19
27
|
common_pending_action_attempt
|
|
20
28
|
.extend({
|
|
21
29
|
action_type,
|
|
22
30
|
})
|
|
23
|
-
.describe('Unlocking door.'),
|
|
31
|
+
.describe('Unlocking a door is pending.'),
|
|
24
32
|
common_succeeded_action_attempt
|
|
25
33
|
.extend({
|
|
26
34
|
action_type,
|
|
27
35
|
result,
|
|
28
36
|
})
|
|
29
|
-
.describe('Unlocking door succeeded.'),
|
|
37
|
+
.describe('Unlocking a door succeeded.'),
|
|
30
38
|
common_failed_action_attempt
|
|
31
39
|
.extend({ action_type, error })
|
|
32
|
-
.describe('Unlocking door failed.'),
|
|
40
|
+
.describe('Unlocking a door failed.'),
|
|
33
41
|
])
|
|
34
42
|
|
|
35
43
|
export type UnlockDoorActionAttempt = z.infer<typeof unlock_door_action_attempt>
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
const common_bridge_client_session_error = z.object({
|
|
4
|
-
message: z
|
|
5
|
-
|
|
4
|
+
message: z
|
|
5
|
+
.string()
|
|
6
|
+
.describe(
|
|
7
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
8
|
+
),
|
|
9
|
+
created_at: z
|
|
10
|
+
.string()
|
|
11
|
+
.datetime()
|
|
12
|
+
.describe('Date and time at which Seam created the error.'),
|
|
6
13
|
})
|
|
7
14
|
|
|
8
15
|
const error_code_description =
|
|
@@ -16,25 +23,29 @@ export const bridge_lan_unreachable = common_bridge_client_session_error
|
|
|
16
23
|
is_tailscale_proxy_reachable: z
|
|
17
24
|
.boolean()
|
|
18
25
|
.nullable()
|
|
19
|
-
.describe('Seam
|
|
26
|
+
.describe('Indicates whether Seam can reach the Tailscale proxy.'),
|
|
20
27
|
is_tailscale_proxy_socks_server_healthy: z
|
|
21
28
|
.boolean()
|
|
22
29
|
.nullable()
|
|
23
|
-
.describe(
|
|
30
|
+
.describe(
|
|
31
|
+
"Indicates whether the Tailscale proxy's SOCKS server is healthy.",
|
|
32
|
+
),
|
|
24
33
|
can_tailscale_proxy_reach_tailscale_network: z
|
|
25
34
|
.boolean()
|
|
26
35
|
.nullable()
|
|
27
|
-
.describe(
|
|
36
|
+
.describe(
|
|
37
|
+
'Indicates whether the Tailscale proxy can reach the Tailscale network.',
|
|
38
|
+
),
|
|
28
39
|
can_tailscale_proxy_reach_bridge: z
|
|
29
40
|
.boolean()
|
|
30
41
|
.nullable()
|
|
31
|
-
.describe('Tailscale proxy
|
|
42
|
+
.describe('Indicates whether the Tailscale proxy can reach Seam Bridge.'),
|
|
32
43
|
is_bridge_socks_server_healthy: z
|
|
33
44
|
.boolean()
|
|
34
45
|
.nullable()
|
|
35
|
-
.describe("Bridge's SOCKS server is
|
|
46
|
+
.describe("Indicates whether Seam Bridge's SOCKS server is healthy."),
|
|
36
47
|
})
|
|
37
|
-
.describe("Seam cannot reach
|
|
48
|
+
.describe("Indicates that Seam cannot reach Seam Bridge's LAN.")
|
|
38
49
|
|
|
39
50
|
export const no_communication_from_bridge = common_bridge_client_session_error
|
|
40
51
|
.extend({
|
|
@@ -42,14 +53,16 @@ export const no_communication_from_bridge = common_bridge_client_session_error
|
|
|
42
53
|
.literal('no_communication_from_bridge')
|
|
43
54
|
.describe(error_code_description),
|
|
44
55
|
})
|
|
45
|
-
.describe('Bridge has stopped communicating with Seam')
|
|
56
|
+
.describe('Indicates that Seam Bridge has stopped communicating with Seam.')
|
|
46
57
|
|
|
47
58
|
export const bridge_client_session_error = z
|
|
48
59
|
.discriminatedUnion('error_code', [
|
|
49
60
|
bridge_lan_unreachable,
|
|
50
61
|
no_communication_from_bridge,
|
|
51
62
|
])
|
|
52
|
-
.describe(
|
|
63
|
+
.describe(
|
|
64
|
+
'Indicates an error associated with the Seam Bridge client session.',
|
|
65
|
+
)
|
|
53
66
|
|
|
54
67
|
export type BridgeClientSessionError = z.infer<
|
|
55
68
|
typeof bridge_client_session_error
|
|
@@ -67,25 +80,71 @@ export type BridgeClientSessionErrorMap = z.infer<
|
|
|
67
80
|
>
|
|
68
81
|
|
|
69
82
|
export const bridge_client_session = z.object({
|
|
70
|
-
created_at: z
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
created_at: z
|
|
84
|
+
.string()
|
|
85
|
+
.datetime()
|
|
86
|
+
.describe(
|
|
87
|
+
'Date and time at which the Seam Bridge client session was created.',
|
|
88
|
+
),
|
|
89
|
+
bridge_client_session_id: z
|
|
90
|
+
.string()
|
|
91
|
+
.uuid()
|
|
92
|
+
.describe('ID of the Seam Bridge client session.'),
|
|
93
|
+
bridge_client_session_token: z
|
|
94
|
+
.string()
|
|
95
|
+
.describe(
|
|
96
|
+
'Client session token associated with the Seam Bridge client session.',
|
|
97
|
+
),
|
|
98
|
+
pairing_code: z
|
|
99
|
+
.string()
|
|
100
|
+
.length(6)
|
|
101
|
+
.describe(
|
|
102
|
+
'Pairing code for Seam Bridge. Use this code to pair Seam Bridge with your workspace.',
|
|
103
|
+
),
|
|
104
|
+
pairing_code_expires_at: z
|
|
105
|
+
.string()
|
|
106
|
+
.datetime()
|
|
107
|
+
.describe('Date and time at which the pairing code expires.'),
|
|
108
|
+
tailscale_hostname: z
|
|
109
|
+
.string()
|
|
110
|
+
.describe('Tailscale hostname for Seam Bridge.'),
|
|
111
|
+
tailscale_auth_key: z
|
|
112
|
+
.string()
|
|
113
|
+
.nullable()
|
|
114
|
+
.describe('Tailscale authorization key for Seam Bridge.'),
|
|
115
|
+
bridge_client_name: z.string().describe('Name of the Seam Bridge client.'),
|
|
116
|
+
bridge_client_time_zone: z
|
|
117
|
+
.string()
|
|
118
|
+
.describe('Time zone for the Seam Bridge client.'),
|
|
119
|
+
bridge_client_machine_identifier_key: z
|
|
120
|
+
.string()
|
|
121
|
+
.describe(
|
|
122
|
+
'Identifier key of the client machine for the Seam Bridge client.',
|
|
123
|
+
),
|
|
124
|
+
errors: z
|
|
125
|
+
.array(bridge_client_session_error)
|
|
126
|
+
.describe('Errors associated with the Seam Bridge client session.'),
|
|
127
|
+
telemetry_token: z
|
|
128
|
+
.string()
|
|
129
|
+
.nullable()
|
|
130
|
+
.describe('Telemetry token for the Seam Bridge client session.'),
|
|
131
|
+
telemetry_token_expires_at: z
|
|
132
|
+
.string()
|
|
133
|
+
.datetime()
|
|
134
|
+
.nullable()
|
|
135
|
+
.describe(
|
|
136
|
+
'Date and time at which the telemetry token for the Seam Bridge client session expires.',
|
|
137
|
+
),
|
|
138
|
+
telemetry_url: z
|
|
139
|
+
.string()
|
|
140
|
+
.nullable()
|
|
141
|
+
.describe('Telemetry URL for the Seam Bridge client session.'),
|
|
84
142
|
}).describe(`
|
|
85
143
|
---
|
|
86
144
|
route_path: /seam/bridge/v1/bridge_client_sessions
|
|
87
|
-
undocumented: Seam Bridge
|
|
145
|
+
undocumented: Seam Bridge client only.
|
|
88
146
|
---
|
|
147
|
+
Represents a [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge) client session.
|
|
89
148
|
`)
|
|
90
149
|
|
|
91
150
|
export type BridgeClientSession = z.infer<typeof bridge_client_session>
|
|
@@ -1,19 +1,52 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
export const bridge_connected_system = z.object({
|
|
4
|
-
bridge_id: z
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
bridge_id: z
|
|
5
|
+
.string()
|
|
6
|
+
.uuid()
|
|
7
|
+
.describe('ID of Seam Bridge connected to the access system.'),
|
|
8
|
+
bridge_created_at: z
|
|
9
|
+
.string()
|
|
10
|
+
.datetime()
|
|
11
|
+
.describe('Date and time at which Seam Bridge was created.'),
|
|
12
|
+
connected_account_id: z
|
|
13
|
+
.string()
|
|
14
|
+
.uuid()
|
|
15
|
+
.describe('ID of the connected account associated with Seam Bridge.'),
|
|
16
|
+
connected_account_created_at: z
|
|
17
|
+
.string()
|
|
18
|
+
.datetime()
|
|
19
|
+
.describe(
|
|
20
|
+
'Date and time at which the connected account associated with Seam Bridge was created.',
|
|
21
|
+
),
|
|
22
|
+
acs_system_id: z
|
|
23
|
+
.string()
|
|
24
|
+
.uuid()
|
|
25
|
+
.describe(
|
|
26
|
+
'ID of the [access system](https://docs.seam.co/latest/capability-guides/access-systems) associated with Seam Bridge.',
|
|
27
|
+
),
|
|
28
|
+
acs_system_display_name: z
|
|
29
|
+
.string()
|
|
30
|
+
.describe(
|
|
31
|
+
'Display name for the [access system](https://docs.seam.co/latest/capability-guides/access-systems) associated with Seam Bridge.',
|
|
32
|
+
),
|
|
33
|
+
workspace_id: z
|
|
34
|
+
.string()
|
|
35
|
+
.uuid()
|
|
36
|
+
.describe(
|
|
37
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) with which Seam Bridge is paired.',
|
|
38
|
+
),
|
|
39
|
+
workspace_display_name: z
|
|
40
|
+
.string()
|
|
41
|
+
.describe(
|
|
42
|
+
'Display name for the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) with which Seam Bridge is paired.',
|
|
43
|
+
),
|
|
12
44
|
}).describe(`
|
|
13
45
|
---
|
|
14
46
|
route_path: /seam/bridge/v1/bridge_connected_systems
|
|
15
|
-
undocumented: Seam Bridge
|
|
47
|
+
undocumented: Seam Bridge client only.
|
|
16
48
|
---
|
|
49
|
+
Represents an access system connected to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).
|
|
17
50
|
`)
|
|
18
51
|
|
|
19
52
|
export type BridgeConnectedSystem = z.infer<typeof bridge_connected_system>
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
export const bridge = z.object({
|
|
4
|
-
bridge_id: z.string().uuid(),
|
|
5
|
-
workspace_id: z
|
|
6
|
-
|
|
4
|
+
bridge_id: z.string().uuid().describe('ID of Seam Bridge.'),
|
|
5
|
+
workspace_id: z
|
|
6
|
+
.string()
|
|
7
|
+
.uuid()
|
|
8
|
+
.describe(
|
|
9
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains Seam Bridge.',
|
|
10
|
+
),
|
|
11
|
+
created_at: z
|
|
12
|
+
.string()
|
|
13
|
+
.datetime()
|
|
14
|
+
.describe('Date and time at which Seam Bridge was created.'),
|
|
7
15
|
}).describe(`
|
|
8
16
|
---
|
|
9
17
|
undocumented: Unreleased.
|
|
10
18
|
route_path: /bridges
|
|
11
19
|
---
|
|
20
|
+
Represents [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).
|
|
12
21
|
`)
|
|
13
22
|
export type Bridge = z.infer<typeof bridge>
|
|
@@ -1,20 +1,76 @@
|
|
|
1
1
|
import { z } from 'zod'
|
|
2
2
|
|
|
3
3
|
export const client_session = z.object({
|
|
4
|
-
client_session_id: z
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
client_session_id: z
|
|
5
|
+
.string()
|
|
6
|
+
.uuid()
|
|
7
|
+
.describe(
|
|
8
|
+
'ID of the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens).',
|
|
9
|
+
),
|
|
10
|
+
workspace_id: z
|
|
11
|
+
.string()
|
|
12
|
+
.uuid()
|
|
13
|
+
.describe(
|
|
14
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens).',
|
|
15
|
+
),
|
|
16
|
+
created_at: z
|
|
17
|
+
.string()
|
|
18
|
+
.datetime()
|
|
19
|
+
.describe(
|
|
20
|
+
'Date and time at which the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) was created.',
|
|
21
|
+
),
|
|
22
|
+
expires_at: z
|
|
23
|
+
.string()
|
|
24
|
+
.datetime()
|
|
25
|
+
.describe(
|
|
26
|
+
'Date and time at which the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens) expires.',
|
|
27
|
+
),
|
|
28
|
+
token: z
|
|
29
|
+
.string()
|
|
30
|
+
.describe(
|
|
31
|
+
'Client session token associated with the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens).',
|
|
32
|
+
),
|
|
33
|
+
user_identifier_key: z
|
|
34
|
+
.string()
|
|
35
|
+
.nullable()
|
|
36
|
+
.describe(
|
|
37
|
+
'Your user ID for the user associated with the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens).',
|
|
38
|
+
),
|
|
39
|
+
device_count: z
|
|
40
|
+
.number()
|
|
41
|
+
.describe(
|
|
42
|
+
'Number of devices associated with the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens).',
|
|
43
|
+
),
|
|
44
|
+
customer_id: z
|
|
45
|
+
.string()
|
|
46
|
+
.uuid()
|
|
47
|
+
.optional()
|
|
48
|
+
.describe(
|
|
49
|
+
'Customer ID associated with the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens).',
|
|
50
|
+
),
|
|
51
|
+
connected_account_ids: z
|
|
15
52
|
.array(z.string().uuid())
|
|
16
|
-
.describe(
|
|
17
|
-
|
|
53
|
+
.describe(
|
|
54
|
+
'IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens).',
|
|
55
|
+
),
|
|
56
|
+
connect_webview_ids: z
|
|
57
|
+
.array(z.string().uuid())
|
|
58
|
+
.describe(
|
|
59
|
+
'IDs of the [Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews) associated with the [client session](https://docs.seam.co/latest/core-concepts/authentication/client-session-tokens).',
|
|
60
|
+
),
|
|
61
|
+
user_identity_ids: z.array(z.string().uuid()).describe(`
|
|
62
|
+
---
|
|
63
|
+
deprecated: Use \`user_identity_id\` instead.
|
|
64
|
+
---
|
|
65
|
+
IDs of the [user identities](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session.
|
|
66
|
+
`),
|
|
67
|
+
user_identity_id: z
|
|
68
|
+
.string()
|
|
69
|
+
.uuid()
|
|
70
|
+
.optional()
|
|
71
|
+
.describe(
|
|
72
|
+
'ID of the [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) associated with the client session.',
|
|
73
|
+
),
|
|
18
74
|
}).describe(`
|
|
19
75
|
---
|
|
20
76
|
route_path: /client_sessions
|
|
@@ -6,18 +6,18 @@ export const connect_webview_device_selection_mode = z.enum([
|
|
|
6
6
|
'none',
|
|
7
7
|
'single',
|
|
8
8
|
'multiple',
|
|
9
|
-
])
|
|
10
|
-
|
|
11
|
-
export const connect_webview_accepted_capabilities = z.enum([
|
|
12
|
-
'lock',
|
|
13
|
-
'thermostat',
|
|
14
|
-
'noise_sensor',
|
|
15
|
-
'access_control',
|
|
16
9
|
]).describe(`
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
---
|
|
11
|
+
undocumented: Not implemented.
|
|
12
|
+
---
|
|
19
13
|
`)
|
|
20
14
|
|
|
15
|
+
export const connect_webview_accepted_capabilities = z
|
|
16
|
+
.enum(['lock', 'thermostat', 'noise_sensor', 'access_control'])
|
|
17
|
+
.describe(
|
|
18
|
+
'High-level device capabilities that the Connect Webview can accept.',
|
|
19
|
+
)
|
|
20
|
+
|
|
21
21
|
export type ConnectWebviewAcceptedCapabilities = z.infer<
|
|
22
22
|
typeof connect_webview_accepted_capabilities
|
|
23
23
|
>
|
|
@@ -59,7 +59,7 @@ export const connect_webview = z.object({
|
|
|
59
59
|
accepted_capabilities: z
|
|
60
60
|
.array(connect_webview_accepted_capabilities)
|
|
61
61
|
.describe(
|
|
62
|
-
'
|
|
62
|
+
'High-level device capabilities that the Connect Webview can accept. When creating a Connect Webview, you can specify the types of devices that it can connect to Seam. If you do not set custom `accepted_capabilities`, Seam uses a default set of `accepted_capabilities` for each provider. For example, if you create a Connect Webview that accepts SmartThing devices, without specifying `accepted_capabilities`, Seam accepts only SmartThings locks. To connect SmartThings thermostats and locks to Seam, create a Connect Webview and include both `thermostat` and `lock` in the `accepted_capabilities`.',
|
|
63
63
|
),
|
|
64
64
|
|
|
65
65
|
accepted_devices: z.array(z.string()).describe(
|
|
@@ -21,7 +21,9 @@ const common_connected_account_error = z.object({
|
|
|
21
21
|
is_bridge_error: z
|
|
22
22
|
.boolean()
|
|
23
23
|
.optional()
|
|
24
|
-
.describe(
|
|
24
|
+
.describe(
|
|
25
|
+
'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).',
|
|
26
|
+
),
|
|
25
27
|
})
|
|
26
28
|
|
|
27
29
|
const error_code_description =
|
|
@@ -48,7 +50,7 @@ export const account_disconnected = common_connected_account_error
|
|
|
48
50
|
.literal('account_disconnected')
|
|
49
51
|
.describe(error_code_description),
|
|
50
52
|
})
|
|
51
|
-
.describe('
|
|
53
|
+
.describe('Indicates that the account is disconnected.')
|
|
52
54
|
|
|
53
55
|
export const invalid_credentials = common_connected_account_error
|
|
54
56
|
.extend({
|
|
@@ -56,7 +58,7 @@ export const invalid_credentials = common_connected_account_error
|
|
|
56
58
|
.literal('invalid_credentials')
|
|
57
59
|
.describe(error_code_description),
|
|
58
60
|
})
|
|
59
|
-
.describe('
|
|
61
|
+
.describe('Indicates that the credentials provided were invalid.')
|
|
60
62
|
|
|
61
63
|
export const bridge_disconnected = common_connected_account_error
|
|
62
64
|
.extend({
|
|
@@ -65,7 +67,7 @@ export const bridge_disconnected = common_connected_account_error
|
|
|
65
67
|
.describe(error_code_description),
|
|
66
68
|
})
|
|
67
69
|
.describe(
|
|
68
|
-
'Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).',
|
|
70
|
+
'Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).',
|
|
69
71
|
)
|
|
70
72
|
|
|
71
73
|
export const salto_ks_subscription_limit_exceeded =
|
|
@@ -153,7 +155,7 @@ export const unknown_issue_with_connected_account =
|
|
|
153
155
|
.describe(warning_code_description),
|
|
154
156
|
})
|
|
155
157
|
.describe(
|
|
156
|
-
'
|
|
158
|
+
'Indicates that an unknown issue occurred while syncing the state of the connected account with the provider. This issue may affect the proper functioning of one or more resources in the account.',
|
|
157
159
|
)
|
|
158
160
|
|
|
159
161
|
const scheduled_maintenance_window = common_connected_account_warning
|
|
@@ -162,7 +164,9 @@ const scheduled_maintenance_window = common_connected_account_warning
|
|
|
162
164
|
.literal('scheduled_maintenance_window')
|
|
163
165
|
.describe(warning_code_description),
|
|
164
166
|
})
|
|
165
|
-
.describe(
|
|
167
|
+
.describe(
|
|
168
|
+
'Indicates that scheduled downtime is planned for the connected account.',
|
|
169
|
+
)
|
|
166
170
|
|
|
167
171
|
const salto_ks_subscription_limit_almost_reached =
|
|
168
172
|
common_connected_account_warning
|
|
@@ -245,7 +249,7 @@ export const connected_account = z.object({
|
|
|
245
249
|
.string()
|
|
246
250
|
.uuid()
|
|
247
251
|
.optional()
|
|
248
|
-
.describe('
|
|
252
|
+
.describe('ID of the connected account.'),
|
|
249
253
|
created_at: z
|
|
250
254
|
.string()
|
|
251
255
|
.datetime()
|
|
@@ -300,7 +304,7 @@ export const connected_account = z.object({
|
|
|
300
304
|
automatically_manage_new_devices: z
|
|
301
305
|
.boolean()
|
|
302
306
|
.describe(
|
|
303
|
-
'Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for
|
|
307
|
+
'Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for management by the Seam API.',
|
|
304
308
|
),
|
|
305
309
|
customer_key: z
|
|
306
310
|
.string()
|
|
@@ -9,7 +9,7 @@ export const custom_metadata_input = z
|
|
|
9
9
|
message: 'Custom metadata is limited to a maximum of 50 keys',
|
|
10
10
|
})
|
|
11
11
|
.describe(
|
|
12
|
-
'Set of up to 50 key:value pairs, with key names up to 40 characters long. Accepts string or Boolean values. Strings are limited to 500 characters.
|
|
12
|
+
'Set of up to 50 key:value pairs, with key names up to 40 characters long. Accepts string or Boolean values. Strings are limited to 500 characters. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application.',
|
|
13
13
|
)
|
|
14
14
|
|
|
15
15
|
export const custom_metadata = z
|