@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,109 +1,177 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
-
const error = z
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const error = z
|
|
4
|
+
.object({
|
|
5
|
+
type: z.string().describe('Type of the error.'),
|
|
6
|
+
message: z
|
|
7
|
+
.string()
|
|
8
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
9
|
+
})
|
|
10
|
+
.describe('Error associated with the action.');
|
|
11
|
+
const result = z.object({}).describe('Result of the action.');
|
|
12
|
+
const sync_access_codes_action_attempt = z
|
|
13
|
+
.discriminatedUnion('status', [
|
|
9
14
|
common_pending_action_attempt.extend({
|
|
10
|
-
action_type: z
|
|
15
|
+
action_type: z
|
|
16
|
+
.literal('SYNC_ACCESS_CODES')
|
|
17
|
+
.describe('Syncing access codes is pending.'),
|
|
11
18
|
}),
|
|
12
19
|
common_succeeded_action_attempt.extend({
|
|
13
|
-
action_type: z
|
|
20
|
+
action_type: z
|
|
21
|
+
.literal('SYNC_ACCESS_CODES')
|
|
22
|
+
.describe('Syncing access codes succeeded.'),
|
|
14
23
|
result,
|
|
15
24
|
}),
|
|
16
25
|
common_failed_action_attempt.extend({
|
|
17
|
-
action_type: z
|
|
26
|
+
action_type: z
|
|
27
|
+
.literal('SYNC_ACCESS_CODES')
|
|
28
|
+
.describe('Syncing access codes failed.'),
|
|
18
29
|
error,
|
|
19
30
|
}),
|
|
20
|
-
])
|
|
21
|
-
|
|
31
|
+
])
|
|
32
|
+
.describe('Action attempt to track the status of syncing access codes.');
|
|
33
|
+
const create_access_code_action_attempt = z
|
|
34
|
+
.discriminatedUnion('status', [
|
|
22
35
|
common_pending_action_attempt.extend({
|
|
23
|
-
action_type: z
|
|
36
|
+
action_type: z
|
|
37
|
+
.literal('CREATE_ACCESS_CODE')
|
|
38
|
+
.describe('Creating an access code is pending.'),
|
|
24
39
|
}),
|
|
25
40
|
common_succeeded_action_attempt.extend({
|
|
26
|
-
action_type: z
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
41
|
+
action_type: z
|
|
42
|
+
.literal('CREATE_ACCESS_CODE')
|
|
43
|
+
.describe('Creating an access code succeeded.'),
|
|
44
|
+
result: z
|
|
45
|
+
.object({
|
|
46
|
+
access_code: z.any().describe('Created access code.'),
|
|
47
|
+
})
|
|
48
|
+
.describe('Result of the action.'),
|
|
30
49
|
}),
|
|
31
50
|
common_failed_action_attempt.extend({
|
|
32
|
-
action_type: z
|
|
51
|
+
action_type: z
|
|
52
|
+
.literal('CREATE_ACCESS_CODE')
|
|
53
|
+
.describe('Creating an access code failed.'),
|
|
33
54
|
error,
|
|
34
55
|
}),
|
|
35
|
-
])
|
|
36
|
-
|
|
56
|
+
])
|
|
57
|
+
.describe('Action attempt to track the status of creating an access code.');
|
|
58
|
+
const delete_access_code_action_attempt = z
|
|
59
|
+
.discriminatedUnion('status', [
|
|
37
60
|
common_pending_action_attempt.extend({
|
|
38
|
-
action_type: z
|
|
61
|
+
action_type: z
|
|
62
|
+
.literal('DELETE_ACCESS_CODE')
|
|
63
|
+
.describe('Deleting an access code is pending.'),
|
|
39
64
|
}),
|
|
40
65
|
common_succeeded_action_attempt.extend({
|
|
41
|
-
action_type: z
|
|
66
|
+
action_type: z
|
|
67
|
+
.literal('DELETE_ACCESS_CODE')
|
|
68
|
+
.describe('Deleting an access code succeeded.'),
|
|
42
69
|
result,
|
|
43
70
|
}),
|
|
44
71
|
common_failed_action_attempt.extend({
|
|
45
|
-
action_type: z
|
|
72
|
+
action_type: z
|
|
73
|
+
.literal('DELETE_ACCESS_CODE')
|
|
74
|
+
.describe('Deleting an access code failed.'),
|
|
46
75
|
error,
|
|
47
76
|
}),
|
|
48
|
-
])
|
|
49
|
-
|
|
77
|
+
])
|
|
78
|
+
.describe('Action attempt to track the status of deleting an access code.');
|
|
79
|
+
const update_access_code_action_attempt = z
|
|
80
|
+
.discriminatedUnion('status', [
|
|
50
81
|
common_pending_action_attempt.extend({
|
|
51
|
-
action_type: z
|
|
82
|
+
action_type: z
|
|
83
|
+
.literal('UPDATE_ACCESS_CODE')
|
|
84
|
+
.describe('Updating an access code is pending.'),
|
|
52
85
|
}),
|
|
53
86
|
common_succeeded_action_attempt.extend({
|
|
54
|
-
action_type: z
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
87
|
+
action_type: z
|
|
88
|
+
.literal('UPDATE_ACCESS_CODE')
|
|
89
|
+
.describe('Updating an access code succeeded.'),
|
|
90
|
+
result: z
|
|
91
|
+
.object({
|
|
92
|
+
access_code: z.any().describe('Updated access code.'),
|
|
93
|
+
})
|
|
94
|
+
.describe('Result of the action.'),
|
|
58
95
|
}),
|
|
59
96
|
common_failed_action_attempt.extend({
|
|
60
|
-
action_type: z
|
|
97
|
+
action_type: z
|
|
98
|
+
.literal('UPDATE_ACCESS_CODE')
|
|
99
|
+
.describe('Updating an access code failed.'),
|
|
61
100
|
error,
|
|
62
101
|
}),
|
|
63
|
-
])
|
|
64
|
-
|
|
102
|
+
])
|
|
103
|
+
.describe('Action attempt to track the status of updating an access code.');
|
|
104
|
+
const create_noise_threshold_action_attempt = z
|
|
105
|
+
.discriminatedUnion('status', [
|
|
65
106
|
common_pending_action_attempt.extend({
|
|
66
|
-
action_type: z
|
|
107
|
+
action_type: z
|
|
108
|
+
.literal('CREATE_NOISE_THRESHOLD')
|
|
109
|
+
.describe('Creating a noise threshold is pending.'),
|
|
67
110
|
}),
|
|
68
111
|
common_succeeded_action_attempt.extend({
|
|
69
|
-
action_type: z
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
112
|
+
action_type: z
|
|
113
|
+
.literal('CREATE_NOISE_THRESHOLD')
|
|
114
|
+
.describe('Creating a noise threshold succeeded.'),
|
|
115
|
+
result: z
|
|
116
|
+
.object({
|
|
117
|
+
noise_threshold: z.any().describe('Created noise threshold.'),
|
|
118
|
+
})
|
|
119
|
+
.describe('Result of the action.'),
|
|
73
120
|
}),
|
|
74
121
|
common_failed_action_attempt.extend({
|
|
75
|
-
action_type: z
|
|
122
|
+
action_type: z
|
|
123
|
+
.literal('CREATE_NOISE_THRESHOLD')
|
|
124
|
+
.describe('Creating a noise threshold failed.'),
|
|
76
125
|
error,
|
|
77
126
|
}),
|
|
78
|
-
])
|
|
79
|
-
|
|
127
|
+
])
|
|
128
|
+
.describe('Action attempt to track the status of creating a noise threshold.');
|
|
129
|
+
const delete_noise_threshold_action_attempt = z
|
|
130
|
+
.discriminatedUnion('status', [
|
|
80
131
|
common_pending_action_attempt.extend({
|
|
81
|
-
action_type: z
|
|
132
|
+
action_type: z
|
|
133
|
+
.literal('DELETE_NOISE_THRESHOLD')
|
|
134
|
+
.describe('Deleting a noise threshold is pending.'),
|
|
82
135
|
}),
|
|
83
136
|
common_succeeded_action_attempt.extend({
|
|
84
|
-
action_type: z
|
|
137
|
+
action_type: z
|
|
138
|
+
.literal('DELETE_NOISE_THRESHOLD')
|
|
139
|
+
.describe('Deleting a noise threshold succeeded.'),
|
|
85
140
|
result,
|
|
86
141
|
}),
|
|
87
142
|
common_failed_action_attempt.extend({
|
|
88
|
-
action_type: z
|
|
143
|
+
action_type: z
|
|
144
|
+
.literal('DELETE_NOISE_THRESHOLD')
|
|
145
|
+
.describe('Deleting a noise threshold failed.'),
|
|
89
146
|
error,
|
|
90
147
|
}),
|
|
91
|
-
])
|
|
92
|
-
|
|
148
|
+
])
|
|
149
|
+
.describe('Action attempt to track the status of deleting a noise threshold.');
|
|
150
|
+
const update_noise_threshold_action_attempt = z
|
|
151
|
+
.discriminatedUnion('status', [
|
|
93
152
|
common_pending_action_attempt.extend({
|
|
94
|
-
action_type: z
|
|
153
|
+
action_type: z
|
|
154
|
+
.literal('UPDATE_NOISE_THRESHOLD')
|
|
155
|
+
.describe('Updating a noise threshold is pending.'),
|
|
95
156
|
}),
|
|
96
157
|
common_succeeded_action_attempt.extend({
|
|
97
|
-
action_type: z
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
158
|
+
action_type: z
|
|
159
|
+
.literal('UPDATE_NOISE_THRESHOLD')
|
|
160
|
+
.describe('Updating a noise threshold succeeded.'),
|
|
161
|
+
result: z
|
|
162
|
+
.object({
|
|
163
|
+
noise_threshold: z.any().describe('Updated noise threshold.'),
|
|
164
|
+
})
|
|
165
|
+
.describe('Result of the action.'),
|
|
101
166
|
}),
|
|
102
167
|
common_failed_action_attempt.extend({
|
|
103
|
-
action_type: z
|
|
168
|
+
action_type: z
|
|
169
|
+
.literal('UPDATE_NOISE_THRESHOLD')
|
|
170
|
+
.describe('Updating a noise threshold failed.'),
|
|
104
171
|
error,
|
|
105
172
|
}),
|
|
106
|
-
])
|
|
173
|
+
])
|
|
174
|
+
.describe('Action attempt to track the status of updating a noise threshold.');
|
|
107
175
|
export const deprecated_action_attempts = [
|
|
108
176
|
...sync_access_codes_action_attempt.options,
|
|
109
177
|
...create_access_code_action_attempt.options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,KAAK,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"deprecated.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/deprecated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD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;aACX,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CAAC,oCAAoC,CAAC;QACjD,KAAK;KACN,CAAC;CACH,CAAC;KACD,QAAQ,CAAC,mEAAmE,CAAC,CAAA;AAEhF,MAAM,qCAAqC,GAAG,CAAC;KAC5C,kBAAkB,CAAC,QAAQ,EAAE;IAC5B,6BAA6B,CAAC,MAAM,CAAC;QACnC,WAAW,EAAE,CAAC;aACX,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CAAC,wCAAwC,CAAC;KACtD,CAAC;IACF,+BAA+B,CAAC,MAAM,CAAC;QACrC,WAAW,EAAE,CAAC;aACX,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CAAC,uCAAuC,CAAC;QACpD,MAAM,EAAE,CAAC;aACN,MAAM,CAAC;YACN,eAAe,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,0BAA0B,CAAC;SAC9D,CAAC;aACD,QAAQ,CAAC,uBAAuB,CAAC;KACrC,CAAC;IACF,4BAA4B,CAAC,MAAM,CAAC;QAClC,WAAW,EAAE,CAAC;aACX,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CAAC,oCAAoC,CAAC;QACjD,KAAK;KACN,CAAC;CACH,CAAC;KACD,QAAQ,CAAC,mEAAmE,CAAC,CAAA;AAEhF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,iCAAiC,CAAC,OAAO;IAC5C,GAAG,qCAAqC,CAAC,OAAO;IAChD,GAAG,qCAAqC,CAAC,OAAO;IAChD,GAAG,qCAAqC,CAAC,OAAO;CACxC,CAAA"}
|
|
@@ -3,40 +3,58 @@ import { access_method } from '../access-grants/access-method.js';
|
|
|
3
3
|
import { common_action_attempt_errors, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
4
4
|
const action_type = z
|
|
5
5
|
.literal('ENCODE_ACCESS_METHOD')
|
|
6
|
-
.describe('
|
|
7
|
-
const no_credential_on_encoder_error = z
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
.describe('Action attempt to track the status of encoding an access method from the physical encoder onto a card.');
|
|
7
|
+
const no_credential_on_encoder_error = z
|
|
8
|
+
.object({
|
|
9
|
+
type: z
|
|
10
|
+
.literal('no_credential_on_encoder')
|
|
11
|
+
.describe('Error type to indicate that there is no credential on the encoder.'),
|
|
12
|
+
message: z
|
|
13
|
+
.string()
|
|
14
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
15
|
+
})
|
|
16
|
+
.describe('Error to indicate that there is no credential on the encoder.');
|
|
17
|
+
const incompatible_card_format_error = z
|
|
18
|
+
.object({
|
|
19
|
+
type: z
|
|
20
|
+
.literal('incompatible_card_format')
|
|
21
|
+
.describe('Error type to indicate an incompatible card format.'),
|
|
22
|
+
message: z
|
|
23
|
+
.string()
|
|
24
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
25
|
+
})
|
|
26
|
+
.describe('Error to indicate an incompatible card format.');
|
|
27
|
+
const credential_cannot_be_reissued = z
|
|
28
|
+
.object({
|
|
29
|
+
type: z
|
|
30
|
+
.literal('credential_cannot_be_reissued')
|
|
31
|
+
.describe('Error type to indicate that the affected credential cannot be reissued.'),
|
|
32
|
+
message: z
|
|
33
|
+
.string()
|
|
34
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
35
|
+
})
|
|
36
|
+
.describe('Error to indicate that the affected credential cannot be reissued.');
|
|
19
37
|
const error = z.union([
|
|
20
38
|
...common_action_attempt_errors,
|
|
21
39
|
no_credential_on_encoder_error,
|
|
22
40
|
incompatible_card_format_error,
|
|
23
41
|
credential_cannot_be_reissued,
|
|
24
42
|
]);
|
|
25
|
-
const result = access_method.describe('
|
|
43
|
+
const result = access_method.describe('Result of an encoding attempt. If the attempt was successful, includes the access method data that was encoded onto the card.');
|
|
26
44
|
export const encode_access_method_action_attempt = z.discriminatedUnion('status', [
|
|
27
45
|
common_pending_action_attempt
|
|
28
46
|
.extend({
|
|
29
47
|
action_type,
|
|
30
48
|
})
|
|
31
|
-
.describe('
|
|
49
|
+
.describe('Encoding access method data from the physical encoder onto a card is pending.'),
|
|
32
50
|
common_succeeded_action_attempt
|
|
33
51
|
.extend({
|
|
34
52
|
action_type,
|
|
35
53
|
result,
|
|
36
54
|
})
|
|
37
|
-
.describe('
|
|
55
|
+
.describe('Encoding access method data from the physical encoder onto a card succeeded.'),
|
|
38
56
|
common_failed_action_attempt
|
|
39
57
|
.extend({ action_type, error })
|
|
40
|
-
.describe('
|
|
58
|
+
.describe('Encoding access method data from the physical encoder onto a card failed.'),
|
|
41
59
|
]);
|
|
42
60
|
//# sourceMappingURL=encode-access-method.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encode-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,sBAAsB,CAAC;KAC/B,QAAQ,
|
|
1
|
+
{"version":3,"file":"encode-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK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+H,CAChI,CAAA;AAED,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,kBAAkB,CACrE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CACP,+EAA+E,CAChF;IACH,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CACP,8EAA8E,CAC/E;IACH,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CACP,2EAA2E,CAC5E;CACJ,CACF,CAAA"}
|
|
@@ -3,19 +3,37 @@ import { acs_credential, unmanaged_acs_credential, } from '../acs/acs-credential
|
|
|
3
3
|
import { common_action_attempt_errors, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
4
4
|
const action_type = z
|
|
5
5
|
.literal('ENCODE_CREDENTIAL')
|
|
6
|
-
.describe('
|
|
7
|
-
const no_credential_on_encoder_error = z
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
.describe('Action attempt to track the status of encoding credential data from the physical encoder onto a card.');
|
|
7
|
+
const no_credential_on_encoder_error = z
|
|
8
|
+
.object({
|
|
9
|
+
type: z
|
|
10
|
+
.literal('no_credential_on_encoder')
|
|
11
|
+
.describe('Error type to indicate that there is no credential on the encoder.'),
|
|
12
|
+
message: z
|
|
13
|
+
.string()
|
|
14
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
15
|
+
})
|
|
16
|
+
.describe('Error to indicate that there is no credential on the encoder.');
|
|
17
|
+
const incompatible_card_format_error = z
|
|
18
|
+
.object({
|
|
19
|
+
type: z
|
|
20
|
+
.literal('incompatible_card_format')
|
|
21
|
+
.describe('Error type to indicate an incompatible card format.'),
|
|
22
|
+
message: z
|
|
23
|
+
.string()
|
|
24
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
25
|
+
})
|
|
26
|
+
.describe('Error to indicate an incompatible card format.');
|
|
27
|
+
const credential_cannot_be_reissued = z
|
|
28
|
+
.object({
|
|
29
|
+
type: z
|
|
30
|
+
.literal('credential_cannot_be_reissued')
|
|
31
|
+
.describe('Error type to indicate that the affected credential cannot be reissued.'),
|
|
32
|
+
message: z
|
|
33
|
+
.string()
|
|
34
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
35
|
+
})
|
|
36
|
+
.describe('Error to indicate that the affected credential cannot be reissued.');
|
|
19
37
|
const error = z.union([
|
|
20
38
|
...common_action_attempt_errors,
|
|
21
39
|
no_credential_on_encoder_error,
|
|
@@ -24,21 +42,21 @@ const error = z.union([
|
|
|
24
42
|
]);
|
|
25
43
|
const result = acs_credential
|
|
26
44
|
.or(unmanaged_acs_credential)
|
|
27
|
-
.describe('
|
|
45
|
+
.describe('Result of an encoding attempt. If the attempt was successful, includes the credential data that was encoded onto the card.');
|
|
28
46
|
export const encode_credential_action_attempt = z.discriminatedUnion('status', [
|
|
29
47
|
common_pending_action_attempt
|
|
30
48
|
.extend({
|
|
31
49
|
action_type,
|
|
32
50
|
})
|
|
33
|
-
.describe('
|
|
51
|
+
.describe('Encoding credential data from the physical encoder onto a card is pending.'),
|
|
34
52
|
common_succeeded_action_attempt
|
|
35
53
|
.extend({
|
|
36
54
|
action_type,
|
|
37
55
|
result,
|
|
38
56
|
})
|
|
39
|
-
.describe('
|
|
57
|
+
.describe('Encoding credential data from the physical encoder onto a card succeeded.'),
|
|
40
58
|
common_failed_action_attempt
|
|
41
59
|
.extend({ action_type, error })
|
|
42
|
-
.describe('
|
|
60
|
+
.describe('Encoding credential data from the physical encoder onto a card failed.'),
|
|
43
61
|
]);
|
|
44
62
|
//# sourceMappingURL=encode-credential.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encode-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,mBAAmB,CAAC;KAC5B,QAAQ,
|
|
1
|
+
{"version":3,"file":"encode-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,cAAc,EACd,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,mBAAmB,CAAC;KAC5B,QAAQ,CACP,uGAAuG,CACxG,CAAA;AAEH,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,+DAA+D,CAAC,CAAA;AAE5E,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CAAC,qDAAqD,CAAC;IAClE,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,gDAAgD,CAAC,CAAA;AAE7D,MAAM,6BAA6B,GAAG,CAAC;KACpC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,+BAA+B,CAAC;SACxC,QAAQ,CACP,yEAAyE,CAC1E;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,oEAAoE,CACrE,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,8BAA8B;IAC9B,6BAA6B;CAC9B,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,cAAc;KAC1B,EAAE,CAAC,wBAAwB,CAAC;KAC5B,QAAQ,CACP,4HAA4H,CAC7H,CAAA;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC7E,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CACP,4EAA4E,CAC7E;IACH,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CACP,2EAA2E,CAC5E;IACH,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CACP,wEAAwE,CACzE;CACJ,CAAC,CAAA"}
|
|
@@ -1,25 +1,31 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
-
const action_type = z
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const action_type = z
|
|
4
|
+
.literal('LOCK_DOOR')
|
|
5
|
+
.describe('Action attempt to track the status of locking a door.');
|
|
6
|
+
const error = z
|
|
7
|
+
.object({
|
|
8
|
+
type: z.string().describe('Type of the error.'),
|
|
9
|
+
message: z
|
|
10
|
+
.string()
|
|
11
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
12
|
+
})
|
|
13
|
+
.describe('Error associated with the action.');
|
|
14
|
+
const result = z.object({}).describe('Result of the action.');
|
|
9
15
|
export const lock_door_action_attempt = z.discriminatedUnion('status', [
|
|
10
16
|
common_pending_action_attempt
|
|
11
17
|
.extend({
|
|
12
18
|
action_type,
|
|
13
19
|
})
|
|
14
|
-
.describe('Locking door.'),
|
|
20
|
+
.describe('Locking a door is pending.'),
|
|
15
21
|
common_succeeded_action_attempt
|
|
16
22
|
.extend({
|
|
17
23
|
action_type,
|
|
18
24
|
result,
|
|
19
25
|
})
|
|
20
|
-
.describe('Locking door succeeded.'),
|
|
26
|
+
.describe('Locking a door succeeded.'),
|
|
21
27
|
common_failed_action_attempt
|
|
22
28
|
.extend({ action_type, error })
|
|
23
|
-
.describe('Locking door failed.'),
|
|
29
|
+
.describe('Locking a door failed.'),
|
|
24
30
|
]);
|
|
25
31
|
//# sourceMappingURL=lock-door.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lock-door.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/lock-door.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"lock-door.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/lock-door.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,WAAW,CAAC;KACpB,QAAQ,CAAC,uDAAuD,CAAC,CAAA;AAEpE,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,4BAA4B,CAAC;IACzC,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,2BAA2B,CAAC;IACxC,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC,CAAA"}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
-
const action_type = z
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const action_type = z
|
|
4
|
+
.literal('PUSH_THERMOSTAT_PROGRAMS')
|
|
5
|
+
.describe('Action attempt to track the status of pushing thermostat programs.');
|
|
6
|
+
const error = z
|
|
7
|
+
.object({
|
|
8
|
+
type: z.string().describe('Type of the error.'),
|
|
9
|
+
message: z
|
|
10
|
+
.string()
|
|
11
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
12
|
+
})
|
|
13
|
+
.describe('Error associated with the action.');
|
|
14
|
+
const result = z.object({}).describe('Result of the action.');
|
|
9
15
|
export const push_thermostat_programs_action_attempt = z.discriminatedUnion('status', [
|
|
10
16
|
common_pending_action_attempt
|
|
11
17
|
.extend({
|
|
12
18
|
action_type,
|
|
13
19
|
})
|
|
14
|
-
.describe('Pushing thermostat weekly programs.'),
|
|
20
|
+
.describe('Pushing thermostat weekly programs is pending.'),
|
|
15
21
|
common_succeeded_action_attempt
|
|
16
22
|
.extend({
|
|
17
23
|
action_type,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-thermostat-programs.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/push-thermostat-programs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"push-thermostat-programs.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/push-thermostat-programs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,0BAA0B,CAAC;KACnC,QAAQ,CACP,oEAAoE,CACrE,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,kBAAkB,CACzE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,4CAA4C,CAAC;CAC1D,CACF,CAAA"}
|
|
@@ -1,28 +1,34 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
-
const action_type = z
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
const action_type = z
|
|
4
|
+
.literal('RESET_SANDBOX_WORKSPACE')
|
|
5
|
+
.describe('Action attempt to track the status of resetting a sandbox workspace.');
|
|
6
|
+
const error = z
|
|
7
|
+
.object({
|
|
8
|
+
type: z.string().describe('Type of the error.'),
|
|
9
|
+
message: z
|
|
10
|
+
.string()
|
|
11
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
12
|
+
})
|
|
13
|
+
.describe('Error associated with the action.');
|
|
14
|
+
const result = z.object({}).describe('Result of the action.');
|
|
9
15
|
export const reset_sandbox_workspace_action_attempt = z.discriminatedUnion('status', [
|
|
10
16
|
common_pending_action_attempt
|
|
11
17
|
.extend({
|
|
12
18
|
action_type,
|
|
13
19
|
})
|
|
14
|
-
.describe('Resetting sandbox workspace.'),
|
|
20
|
+
.describe('Resetting a sandbox workspace is pending.'),
|
|
15
21
|
common_succeeded_action_attempt
|
|
16
22
|
.extend({
|
|
17
23
|
action_type,
|
|
18
24
|
result,
|
|
19
25
|
})
|
|
20
|
-
.describe('Resetting sandbox workspace succeeded.'),
|
|
26
|
+
.describe('Resetting a sandbox workspace succeeded.'),
|
|
21
27
|
common_failed_action_attempt
|
|
22
28
|
.extend({
|
|
23
29
|
action_type,
|
|
24
30
|
error,
|
|
25
31
|
})
|
|
26
|
-
.describe('Resetting sandbox workspace failed.'),
|
|
32
|
+
.describe('Resetting a sandbox workspace failed.'),
|
|
27
33
|
]);
|
|
28
34
|
//# sourceMappingURL=reset-sandbox-workspace.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-sandbox-workspace.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"reset-sandbox-workspace.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,yBAAyB,CAAC;KAClC,QAAQ,CACP,sEAAsE,CACvE,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,kBAAkB,CACxE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,2CAA2C,CAAC;IACxD,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,0CAA0C,CAAC;IACvD,4BAA4B;SACzB,MAAM,CAAC;QACN,WAAW;QACX,KAAK;KACN,CAAC;SACD,QAAQ,CAAC,uCAAuC,CAAC;CACrD,CACF,CAAA"}
|