@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
|
@@ -10,22 +10,54 @@ import {
|
|
|
10
10
|
|
|
11
11
|
const action_type = z
|
|
12
12
|
.literal('ENCODE_ACCESS_METHOD')
|
|
13
|
-
.describe(
|
|
13
|
+
.describe(
|
|
14
|
+
'Action attempt to track the status of encoding an access method from the physical encoder onto a card.',
|
|
15
|
+
)
|
|
14
16
|
|
|
15
|
-
const no_credential_on_encoder_error = z
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
const no_credential_on_encoder_error = z
|
|
18
|
+
.object({
|
|
19
|
+
type: z
|
|
20
|
+
.literal('no_credential_on_encoder')
|
|
21
|
+
.describe(
|
|
22
|
+
'Error type to indicate that there is no credential on the encoder.',
|
|
23
|
+
),
|
|
24
|
+
message: z
|
|
25
|
+
.string()
|
|
26
|
+
.describe(
|
|
27
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
28
|
+
),
|
|
29
|
+
})
|
|
30
|
+
.describe('Error to indicate that there is no credential on the encoder.')
|
|
19
31
|
|
|
20
|
-
const incompatible_card_format_error = z
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
32
|
+
const incompatible_card_format_error = z
|
|
33
|
+
.object({
|
|
34
|
+
type: z
|
|
35
|
+
.literal('incompatible_card_format')
|
|
36
|
+
.describe('Error type to indicate an incompatible card format.'),
|
|
37
|
+
message: z
|
|
38
|
+
.string()
|
|
39
|
+
.describe(
|
|
40
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
41
|
+
),
|
|
42
|
+
})
|
|
43
|
+
.describe('Error to indicate an incompatible card format.')
|
|
24
44
|
|
|
25
|
-
const credential_cannot_be_reissued = z
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
45
|
+
const credential_cannot_be_reissued = z
|
|
46
|
+
.object({
|
|
47
|
+
type: z
|
|
48
|
+
.literal('credential_cannot_be_reissued')
|
|
49
|
+
.describe(
|
|
50
|
+
'Error type to indicate that the affected credential cannot be reissued.',
|
|
51
|
+
),
|
|
52
|
+
message: z
|
|
53
|
+
.string()
|
|
54
|
+
.describe(
|
|
55
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
56
|
+
),
|
|
57
|
+
})
|
|
58
|
+
.describe(
|
|
59
|
+
'Error to indicate that the affected credential cannot be reissued.',
|
|
60
|
+
)
|
|
29
61
|
|
|
30
62
|
const error = z.union([
|
|
31
63
|
...common_action_attempt_errors,
|
|
@@ -35,7 +67,7 @@ const error = z.union([
|
|
|
35
67
|
])
|
|
36
68
|
|
|
37
69
|
const result = access_method.describe(
|
|
38
|
-
'
|
|
70
|
+
'Result of an encoding attempt. If the attempt was successful, includes the access method data that was encoded onto the card.',
|
|
39
71
|
)
|
|
40
72
|
|
|
41
73
|
export const encode_access_method_action_attempt = z.discriminatedUnion(
|
|
@@ -46,7 +78,7 @@ export const encode_access_method_action_attempt = z.discriminatedUnion(
|
|
|
46
78
|
action_type,
|
|
47
79
|
})
|
|
48
80
|
.describe(
|
|
49
|
-
'
|
|
81
|
+
'Encoding access method data from the physical encoder onto a card is pending.',
|
|
50
82
|
),
|
|
51
83
|
common_succeeded_action_attempt
|
|
52
84
|
.extend({
|
|
@@ -54,12 +86,12 @@ export const encode_access_method_action_attempt = z.discriminatedUnion(
|
|
|
54
86
|
result,
|
|
55
87
|
})
|
|
56
88
|
.describe(
|
|
57
|
-
'
|
|
89
|
+
'Encoding access method data from the physical encoder onto a card succeeded.',
|
|
58
90
|
),
|
|
59
91
|
common_failed_action_attempt
|
|
60
92
|
.extend({ action_type, error })
|
|
61
93
|
.describe(
|
|
62
|
-
'
|
|
94
|
+
'Encoding access method data from the physical encoder onto a card failed.',
|
|
63
95
|
),
|
|
64
96
|
],
|
|
65
97
|
)
|
|
@@ -13,22 +13,54 @@ import {
|
|
|
13
13
|
|
|
14
14
|
const action_type = z
|
|
15
15
|
.literal('ENCODE_CREDENTIAL')
|
|
16
|
-
.describe(
|
|
16
|
+
.describe(
|
|
17
|
+
'Action attempt to track the status of encoding credential data from the physical encoder onto a card.',
|
|
18
|
+
)
|
|
17
19
|
|
|
18
|
-
const no_credential_on_encoder_error = z
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const no_credential_on_encoder_error = z
|
|
21
|
+
.object({
|
|
22
|
+
type: z
|
|
23
|
+
.literal('no_credential_on_encoder')
|
|
24
|
+
.describe(
|
|
25
|
+
'Error type to indicate that there is no credential on the encoder.',
|
|
26
|
+
),
|
|
27
|
+
message: z
|
|
28
|
+
.string()
|
|
29
|
+
.describe(
|
|
30
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
31
|
+
),
|
|
32
|
+
})
|
|
33
|
+
.describe('Error to indicate that there is no credential on the encoder.')
|
|
22
34
|
|
|
23
|
-
const incompatible_card_format_error = z
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
35
|
+
const incompatible_card_format_error = z
|
|
36
|
+
.object({
|
|
37
|
+
type: z
|
|
38
|
+
.literal('incompatible_card_format')
|
|
39
|
+
.describe('Error type to indicate an incompatible card format.'),
|
|
40
|
+
message: z
|
|
41
|
+
.string()
|
|
42
|
+
.describe(
|
|
43
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
44
|
+
),
|
|
45
|
+
})
|
|
46
|
+
.describe('Error to indicate an incompatible card format.')
|
|
27
47
|
|
|
28
|
-
const credential_cannot_be_reissued = z
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
48
|
+
const credential_cannot_be_reissued = z
|
|
49
|
+
.object({
|
|
50
|
+
type: z
|
|
51
|
+
.literal('credential_cannot_be_reissued')
|
|
52
|
+
.describe(
|
|
53
|
+
'Error type to indicate that the affected credential cannot be reissued.',
|
|
54
|
+
),
|
|
55
|
+
message: z
|
|
56
|
+
.string()
|
|
57
|
+
.describe(
|
|
58
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
59
|
+
),
|
|
60
|
+
})
|
|
61
|
+
.describe(
|
|
62
|
+
'Error to indicate that the affected credential cannot be reissued.',
|
|
63
|
+
)
|
|
32
64
|
|
|
33
65
|
const error = z.union([
|
|
34
66
|
...common_action_attempt_errors,
|
|
@@ -40,16 +72,15 @@ const error = z.union([
|
|
|
40
72
|
const result = acs_credential
|
|
41
73
|
.or(unmanaged_acs_credential)
|
|
42
74
|
.describe(
|
|
43
|
-
'
|
|
75
|
+
'Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card.',
|
|
44
76
|
)
|
|
45
|
-
|
|
46
77
|
export const encode_credential_action_attempt = z.discriminatedUnion('status', [
|
|
47
78
|
common_pending_action_attempt
|
|
48
79
|
.extend({
|
|
49
80
|
action_type,
|
|
50
81
|
})
|
|
51
82
|
.describe(
|
|
52
|
-
'
|
|
83
|
+
'Encoding credential data from the physical encoder onto a card is pending.',
|
|
53
84
|
),
|
|
54
85
|
common_succeeded_action_attempt
|
|
55
86
|
.extend({
|
|
@@ -57,12 +88,12 @@ export const encode_credential_action_attempt = z.discriminatedUnion('status', [
|
|
|
57
88
|
result,
|
|
58
89
|
})
|
|
59
90
|
.describe(
|
|
60
|
-
'
|
|
91
|
+
'Encoding credential data from the physical encoder onto a card succeeded.',
|
|
61
92
|
),
|
|
62
93
|
common_failed_action_attempt
|
|
63
94
|
.extend({ action_type, error })
|
|
64
95
|
.describe(
|
|
65
|
-
'
|
|
96
|
+
'Encoding credential data from the physical encoder onto a card failed.',
|
|
66
97
|
),
|
|
67
98
|
])
|
|
68
99
|
|
|
@@ -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('LOCK_DOOR')
|
|
11
|
+
.describe('Action attempt to track the status of locking 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 lock_door_action_attempt = z.discriminatedUnion('status', [
|
|
19
27
|
common_pending_action_attempt
|
|
20
28
|
.extend({
|
|
21
29
|
action_type,
|
|
22
30
|
})
|
|
23
|
-
.describe('Locking door.'),
|
|
31
|
+
.describe('Locking a door is pending.'),
|
|
24
32
|
common_succeeded_action_attempt
|
|
25
33
|
.extend({
|
|
26
34
|
action_type,
|
|
27
35
|
result,
|
|
28
36
|
})
|
|
29
|
-
.describe('Locking door succeeded.'),
|
|
37
|
+
.describe('Locking a door succeeded.'),
|
|
30
38
|
common_failed_action_attempt
|
|
31
39
|
.extend({ action_type, error })
|
|
32
|
-
.describe('Locking door failed.'),
|
|
40
|
+
.describe('Locking a door failed.'),
|
|
33
41
|
])
|
|
34
42
|
|
|
35
43
|
export type LockDoorActionAttempt = z.infer<typeof lock_door_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('PUSH_THERMOSTAT_PROGRAMS')
|
|
11
|
+
.describe(
|
|
12
|
+
'Action attempt to track the status of pushing thermostat programs.',
|
|
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 push_thermostat_programs_action_attempt = z.discriminatedUnion(
|
|
19
29
|
'status',
|
|
@@ -22,7 +32,7 @@ export const push_thermostat_programs_action_attempt = z.discriminatedUnion(
|
|
|
22
32
|
.extend({
|
|
23
33
|
action_type,
|
|
24
34
|
})
|
|
25
|
-
.describe('Pushing thermostat weekly programs.'),
|
|
35
|
+
.describe('Pushing thermostat weekly programs is pending.'),
|
|
26
36
|
common_succeeded_action_attempt
|
|
27
37
|
.extend({
|
|
28
38
|
action_type,
|
|
@@ -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('RESET_SANDBOX_WORKSPACE')
|
|
11
|
+
.describe(
|
|
12
|
+
'Action attempt to track the status of resetting a sandbox workspace.',
|
|
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 reset_sandbox_workspace_action_attempt = z.discriminatedUnion(
|
|
19
29
|
'status',
|
|
@@ -22,18 +32,18 @@ export const reset_sandbox_workspace_action_attempt = z.discriminatedUnion(
|
|
|
22
32
|
.extend({
|
|
23
33
|
action_type,
|
|
24
34
|
})
|
|
25
|
-
.describe('Resetting sandbox workspace.'),
|
|
35
|
+
.describe('Resetting a sandbox workspace is pending.'),
|
|
26
36
|
common_succeeded_action_attempt
|
|
27
37
|
.extend({
|
|
28
38
|
action_type,
|
|
29
39
|
result,
|
|
30
40
|
})
|
|
31
|
-
.describe('Resetting sandbox workspace succeeded.'),
|
|
41
|
+
.describe('Resetting a sandbox workspace succeeded.'),
|
|
32
42
|
common_failed_action_attempt
|
|
33
43
|
.extend({
|
|
34
44
|
action_type,
|
|
35
45
|
error,
|
|
36
46
|
})
|
|
37
|
-
.describe('Resetting sandbox workspace failed.'),
|
|
47
|
+
.describe('Resetting a sandbox workspace failed.'),
|
|
38
48
|
],
|
|
39
49
|
)
|
|
@@ -12,44 +12,74 @@ import {
|
|
|
12
12
|
common_succeeded_action_attempt,
|
|
13
13
|
} from './common.js'
|
|
14
14
|
|
|
15
|
-
const action_type = z
|
|
15
|
+
const action_type = z
|
|
16
|
+
.literal('SCAN_CREDENTIAL')
|
|
17
|
+
.describe('Action attempt to track the status of scanning a credential.')
|
|
16
18
|
|
|
17
|
-
const no_credential_on_encoder_error = z
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
const no_credential_on_encoder_error = z
|
|
20
|
+
.object({
|
|
21
|
+
type: z
|
|
22
|
+
.literal('no_credential_on_encoder')
|
|
23
|
+
.describe(
|
|
24
|
+
'Error type to indicate that there is no credential on the encoder.',
|
|
25
|
+
),
|
|
26
|
+
message: z
|
|
27
|
+
.string()
|
|
28
|
+
.describe(
|
|
29
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
30
|
+
),
|
|
31
|
+
})
|
|
32
|
+
.describe('Error to indicate that there is no credential on the encoder.')
|
|
21
33
|
|
|
22
34
|
const error = z.union([
|
|
23
35
|
...common_action_attempt_errors,
|
|
24
36
|
no_credential_on_encoder_error,
|
|
25
37
|
])
|
|
26
38
|
|
|
27
|
-
const warning = z
|
|
28
|
-
|
|
29
|
-
z
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
const warning = z
|
|
40
|
+
.object({
|
|
41
|
+
warning_code: z
|
|
42
|
+
.union([
|
|
43
|
+
z.literal('acs_credential_on_encoder_out_of_sync'),
|
|
44
|
+
z.literal('acs_credential_on_seam_not_found'),
|
|
45
|
+
])
|
|
46
|
+
.describe('Indicates a warning related to scanning a credential.'),
|
|
47
|
+
warning_message: z
|
|
48
|
+
.string()
|
|
49
|
+
.describe(
|
|
50
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
51
|
+
),
|
|
52
|
+
})
|
|
53
|
+
.describe('Warning related to scanning a credential.')
|
|
34
54
|
|
|
35
55
|
const acs_credential_on_seam = acs_credential.or(unmanaged_acs_credential)
|
|
36
56
|
|
|
37
|
-
const result = z
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
57
|
+
const result = z
|
|
58
|
+
.object({
|
|
59
|
+
acs_credential_on_encoder: acs_credential_on_encoder
|
|
60
|
+
.nullable()
|
|
61
|
+
.describe('Snapshot of credential data read from the physical encoder.'),
|
|
62
|
+
acs_credential_on_seam: acs_credential_on_seam
|
|
63
|
+
.nullable()
|
|
64
|
+
.describe(
|
|
65
|
+
'Corresponding credential data as stored on Seam and the access system.',
|
|
66
|
+
),
|
|
67
|
+
warnings: z
|
|
68
|
+
.array(warning)
|
|
69
|
+
.describe(
|
|
70
|
+
'Warnings related to scanning the credential, such as mismatches between the credential data currently encoded on the card and the corresponding data stored on Seam and the access system.',
|
|
71
|
+
),
|
|
72
|
+
})
|
|
73
|
+
.describe(
|
|
74
|
+
'Result of scanning a card. If the attempt was successful, includes a snapshot of credential data read from the physical encoder, the corresponding data stored on Seam and the access system, and any associated warnings.',
|
|
75
|
+
)
|
|
46
76
|
|
|
47
77
|
export const scan_credential_action_attempt = z.discriminatedUnion('status', [
|
|
48
78
|
common_pending_action_attempt
|
|
49
79
|
.extend({
|
|
50
80
|
action_type,
|
|
51
81
|
})
|
|
52
|
-
.describe('Reading credential data from physical encoder.'),
|
|
82
|
+
.describe('Reading credential data from the physical encoder is pending.'),
|
|
53
83
|
common_succeeded_action_attempt
|
|
54
84
|
.extend({
|
|
55
85
|
action_type,
|
|
@@ -6,28 +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('SET_FAN_MODE')
|
|
11
|
+
.describe(
|
|
12
|
+
'Action attempt to track the status of setting the fan mode on a thermostat.',
|
|
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 set_fan_mode_action_attempt = z.discriminatedUnion('status', [
|
|
19
29
|
common_pending_action_attempt
|
|
20
30
|
.extend({
|
|
21
31
|
action_type,
|
|
22
32
|
})
|
|
23
|
-
.describe('Setting fan mode.'),
|
|
33
|
+
.describe('Setting the fan mode is pending.'),
|
|
24
34
|
common_succeeded_action_attempt
|
|
25
35
|
.extend({
|
|
26
36
|
action_type,
|
|
27
37
|
result,
|
|
28
38
|
})
|
|
29
|
-
.describe('Setting fan mode succeeded.'),
|
|
39
|
+
.describe('Setting the fan mode succeeded.'),
|
|
30
40
|
common_failed_action_attempt
|
|
31
41
|
.extend({ action_type, error })
|
|
32
|
-
.describe('Setting fan mode failed.'),
|
|
42
|
+
.describe('Setting the fan mode failed.'),
|
|
33
43
|
])
|
|
@@ -6,28 +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('SET_HVAC_MODE')
|
|
11
|
+
.describe(
|
|
12
|
+
'Action attempt to track the status of setting the HVAC mode on a thermostat.',
|
|
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 set_hvac_mode_action_attempt = z.discriminatedUnion('status', [
|
|
19
29
|
common_pending_action_attempt
|
|
20
30
|
.extend({
|
|
21
31
|
action_type,
|
|
22
32
|
})
|
|
23
|
-
.describe('Setting HVAC mode.'),
|
|
33
|
+
.describe('Setting the HVAC mode is pending.'),
|
|
24
34
|
common_succeeded_action_attempt
|
|
25
35
|
.extend({
|
|
26
36
|
action_type,
|
|
27
37
|
result,
|
|
28
38
|
})
|
|
29
|
-
.describe('Setting HVAC mode succeeded.'),
|
|
39
|
+
.describe('Setting the HVAC mode succeeded.'),
|
|
30
40
|
common_failed_action_attempt
|
|
31
41
|
.extend({ action_type, error })
|
|
32
|
-
.describe('Setting HVAC mode failed.'),
|
|
42
|
+
.describe('Setting the HVAC mode failed.'),
|
|
33
43
|
])
|
|
@@ -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('SIMULATE_KEYPAD_CODE_ENTRY')
|
|
11
|
+
.describe(
|
|
12
|
+
'Action attempt to track the status of simulating a keypad code entry.',
|
|
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 simulate_keypad_code_entry_action_attempt = z.discriminatedUnion(
|
|
19
29
|
'status',
|
|
@@ -22,18 +32,18 @@ export const simulate_keypad_code_entry_action_attempt = z.discriminatedUnion(
|
|
|
22
32
|
.extend({
|
|
23
33
|
action_type,
|
|
24
34
|
})
|
|
25
|
-
.describe('Simulating keypad code entry.'),
|
|
35
|
+
.describe('Simulating a keypad code entry is pending.'),
|
|
26
36
|
common_succeeded_action_attempt
|
|
27
37
|
.extend({
|
|
28
38
|
action_type,
|
|
29
39
|
result,
|
|
30
40
|
})
|
|
31
|
-
.describe('Simulating keypad code entry succeeded.'),
|
|
41
|
+
.describe('Simulating a keypad code entry succeeded.'),
|
|
32
42
|
common_failed_action_attempt
|
|
33
43
|
.extend({
|
|
34
44
|
action_type,
|
|
35
45
|
error,
|
|
36
46
|
})
|
|
37
|
-
.describe('Simulating keypad code entry failed.'),
|
|
47
|
+
.describe('Simulating a keypad code entry failed.'),
|
|
38
48
|
],
|
|
39
49
|
)
|
|
@@ -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('SIMULATE_MANUAL_LOCK_VIA_KEYPAD')
|
|
11
|
+
.describe(
|
|
12
|
+
'Action attempt to track the status of simulating a manual lock action using a keypad.',
|
|
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 simulate_manual_lock_via_keypad_action_attempt =
|
|
19
29
|
z.discriminatedUnion('status', [
|
|
@@ -21,17 +31,17 @@ export const simulate_manual_lock_via_keypad_action_attempt =
|
|
|
21
31
|
.extend({
|
|
22
32
|
action_type,
|
|
23
33
|
})
|
|
24
|
-
.describe('Simulating manual lock
|
|
34
|
+
.describe('Simulating a manual lock action using a keypad is pending.'),
|
|
25
35
|
common_succeeded_action_attempt
|
|
26
36
|
.extend({
|
|
27
37
|
action_type,
|
|
28
38
|
result,
|
|
29
39
|
})
|
|
30
|
-
.describe('Simulating manual lock
|
|
40
|
+
.describe('Simulating a manual lock action using a keypad succeeded.'),
|
|
31
41
|
common_failed_action_attempt
|
|
32
42
|
.extend({
|
|
33
43
|
action_type,
|
|
34
44
|
error,
|
|
35
45
|
})
|
|
36
|
-
.describe('Simulating manual lock
|
|
46
|
+
.describe('Simulating a manual lock action using a keypad failed.'),
|
|
37
47
|
])
|