@seamapi/types 1.175.0 → 1.177.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 +1973 -161
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +4627 -403
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/acs/system.d.ts +36 -0
- package/lib/seam/connect/models/acs/system.js +8 -0
- package/lib/seam/connect/models/acs/system.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +556 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +20 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/common.d.ts +53 -0
- package/lib/seam/connect/models/action-attempts/common.js +24 -0
- package/lib/seam/connect/models/action-attempts/common.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/index.d.ts +1 -0
- package/lib/seam/connect/models/action-attempts/index.js +2 -0
- package/lib/seam/connect/models/action-attempts/index.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/lock-door.d.ts +72 -0
- package/lib/seam/connect/models/action-attempts/lock-door.js +25 -0
- package/lib/seam/connect/models/action-attempts/lock-door.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js +28 -0
- package/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-cool.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/set-cool.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-cool.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-fan-mode.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/set-fan-mode.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-fan-mode.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-heat-cool.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/set-heat-cool.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-heat-cool.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-heat.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/set-heat.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-heat.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/set-thermostat-off.d.ts +71 -0
- package/lib/seam/connect/models/action-attempts/set-thermostat-off.js +25 -0
- package/lib/seam/connect/models/action-attempts/set-thermostat-off.js.map +1 -0
- package/lib/seam/connect/models/action-attempts/unlock-door.d.ts +72 -0
- package/lib/seam/connect/models/action-attempts/unlock-door.js +25 -0
- package/lib/seam/connect/models/action-attempts/unlock-door.js.map +1 -0
- package/lib/seam/connect/models/devices/managed-device.js +6 -2
- package/lib/seam/connect/models/devices/managed-device.js.map +1 -1
- package/lib/seam/connect/models/events/access-codes.d.ts +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/common.d.ts +1 -1
- package/lib/seam/connect/models/events/acs/common.js +1 -1
- package/lib/seam/connect/models/events/acs/common.js.map +1 -1
- package/lib/seam/connect/models/events/acs/credentials.d.ts +1 -1
- package/lib/seam/connect/models/events/acs/credentials.js +1 -1
- package/lib/seam/connect/models/events/acs/credentials.js.map +1 -1
- package/lib/seam/connect/models/events/acs/users.d.ts +1 -1
- package/lib/seam/connect/models/events/acs/users.js +1 -1
- package/lib/seam/connect/models/events/acs/users.js.map +1 -1
- package/lib/seam/connect/models/events/action-attempts.d.ts +10 -10
- package/lib/seam/connect/models/events/client-sessions.d.ts +1 -1
- package/lib/seam/connect/models/events/client-sessions.js +1 -1
- package/lib/seam/connect/models/events/client-sessions.js.map +1 -1
- package/lib/seam/connect/models/events/common.d.ts +1 -1
- 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/connected-accounts.d.ts +1 -1
- package/lib/seam/connect/models/events/connected-accounts.js +1 -1
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/devices.d.ts +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/events/enrollment-automations.d.ts +1 -1
- package/lib/seam/connect/models/events/enrollment-automations.js +1 -1
- package/lib/seam/connect/models/events/enrollment-automations.js.map +1 -1
- package/lib/seam/connect/models/events/phones.d.ts +1 -1
- package/lib/seam/connect/models/events/phones.js +1 -1
- package/lib/seam/connect/models/events/phones.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +1 -1
- package/lib/seam/connect/models/events/seam-event.js +1 -1
- package/lib/seam/connect/models/events/seam-event.js.map +1 -1
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +1366 -105
- package/lib/seam/connect/openapi.js +1686 -28
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +2764 -356
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/model-types.ts +1 -0
- package/src/lib/seam/connect/models/acs/system.ts +12 -0
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +25 -0
- package/src/lib/seam/connect/models/action-attempts/common.ts +27 -0
- package/src/lib/seam/connect/models/action-attempts/index.ts +1 -0
- package/src/lib/seam/connect/models/action-attempts/lock-door.ts +35 -0
- package/src/lib/seam/connect/models/action-attempts/reset-sandbox-workspace.ts +39 -0
- package/src/lib/seam/connect/models/action-attempts/set-cool.ts +33 -0
- package/src/lib/seam/connect/models/action-attempts/set-fan-mode.ts +33 -0
- package/src/lib/seam/connect/models/action-attempts/set-heat-cool.ts +33 -0
- package/src/lib/seam/connect/models/action-attempts/set-heat.ts +33 -0
- package/src/lib/seam/connect/models/action-attempts/set-thermostat-off.ts +36 -0
- package/src/lib/seam/connect/models/action-attempts/unlock-door.ts +35 -0
- package/src/lib/seam/connect/models/devices/managed-device.ts +8 -2
- package/src/lib/seam/connect/models/events/access-codes.ts +1 -1
- package/src/lib/seam/connect/models/events/acs/common.ts +1 -1
- package/src/lib/seam/connect/models/events/acs/credentials.ts +1 -1
- package/src/lib/seam/connect/models/events/acs/users.ts +1 -1
- package/src/lib/seam/connect/models/events/client-sessions.ts +1 -1
- package/src/lib/seam/connect/models/events/common.ts +1 -1
- package/src/lib/seam/connect/models/events/connected-accounts.ts +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +1 -1
- package/src/lib/seam/connect/models/events/enrollment-automations.ts +1 -1
- package/src/lib/seam/connect/models/events/phones.ts +1 -1
- package/src/lib/seam/connect/models/events/seam-event.ts +1 -1
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +1710 -28
- package/src/lib/seam/connect/route-types.ts +3452 -876
- package/src/lib/seam/connect/schemas.ts +6 -1
package/dist/connect.cjs
CHANGED
|
@@ -1,26 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
function _interopNamespace(e) {
|
|
6
|
-
if (e && e.__esModule) return e;
|
|
7
|
-
var n = Object.create(null);
|
|
8
|
-
if (e) {
|
|
9
|
-
Object.keys(e).forEach(function (k) {
|
|
10
|
-
if (k !== 'default') {
|
|
11
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
12
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return e[k]; }
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
n.default = e;
|
|
20
|
-
return Object.freeze(n);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
var z10__namespace = /*#__PURE__*/_interopNamespace(z10);
|
|
3
|
+
var zod = require('zod');
|
|
24
4
|
|
|
25
5
|
var __defProp = Object.defineProperty;
|
|
26
6
|
var __export = (target, all) => {
|
|
@@ -31,75 +11,249 @@ var __export = (target, all) => {
|
|
|
31
11
|
// src/lib/seam/connect/schemas.ts
|
|
32
12
|
var schemas_exports = {};
|
|
33
13
|
__export(schemas_exports, {
|
|
14
|
+
action_attempt: () => action_attempt,
|
|
34
15
|
connect_webview: () => connect_webview,
|
|
35
16
|
custom_metadata: () => custom_metadata,
|
|
36
17
|
seam_event: () => seam_event
|
|
37
18
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
19
|
+
var common_action_attempt = zod.z.object({
|
|
20
|
+
action_attempt_id: zod.z.string().uuid().describe(`
|
|
21
|
+
---
|
|
22
|
+
title: Action Attempt ID
|
|
23
|
+
---
|
|
24
|
+
The ID of the action attempt.
|
|
25
|
+
`),
|
|
26
|
+
status: zod.z.enum(["pending", "success", "error"])
|
|
27
|
+
});
|
|
28
|
+
var common_pending_action_attempt = common_action_attempt.extend({
|
|
29
|
+
status: zod.z.literal("pending"),
|
|
30
|
+
result: zod.z.null(),
|
|
31
|
+
error: zod.z.null()
|
|
32
|
+
});
|
|
33
|
+
var common_succeeded_action_attempt = common_action_attempt.extend({
|
|
34
|
+
status: zod.z.literal("success"),
|
|
35
|
+
error: zod.z.null()
|
|
36
|
+
});
|
|
37
|
+
var common_failed_action_attempt = common_action_attempt.extend({
|
|
38
|
+
status: zod.z.literal("error"),
|
|
39
|
+
result: zod.z.null()
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// src/lib/seam/connect/models/action-attempts/lock-door.ts
|
|
43
|
+
var action_type = zod.z.literal("LOCK_DOOR");
|
|
44
|
+
var error = zod.z.object({
|
|
45
|
+
type: zod.z.string(),
|
|
46
|
+
message: zod.z.string()
|
|
47
|
+
});
|
|
48
|
+
var result = zod.z.object({});
|
|
49
|
+
var lock_door_action_attempt = zod.z.discriminatedUnion("status", [
|
|
50
|
+
common_pending_action_attempt.extend({
|
|
51
|
+
action_type
|
|
52
|
+
}).describe("Locking door."),
|
|
53
|
+
common_succeeded_action_attempt.extend({
|
|
54
|
+
action_type,
|
|
55
|
+
result
|
|
56
|
+
}).describe("Locking door succeeded."),
|
|
57
|
+
common_failed_action_attempt.extend({ action_type, error }).describe("Locking door failed.")
|
|
58
|
+
]);
|
|
59
|
+
var action_type2 = zod.z.literal("RESET_SANDBOX_WORKSPACE");
|
|
60
|
+
var error2 = zod.z.object({
|
|
61
|
+
type: zod.z.string(),
|
|
62
|
+
message: zod.z.string()
|
|
63
|
+
});
|
|
64
|
+
var result2 = zod.z.object({});
|
|
65
|
+
var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
|
|
66
|
+
"status",
|
|
67
|
+
[
|
|
68
|
+
common_pending_action_attempt.extend({
|
|
69
|
+
action_type: action_type2
|
|
70
|
+
}).describe("Resetting sandbox workspace."),
|
|
71
|
+
common_succeeded_action_attempt.extend({
|
|
72
|
+
action_type: action_type2,
|
|
73
|
+
result: result2
|
|
74
|
+
}).describe("Resetting sandbox workspace succeeded."),
|
|
75
|
+
common_failed_action_attempt.extend({
|
|
76
|
+
action_type: action_type2,
|
|
77
|
+
error: error2
|
|
78
|
+
}).describe("Resetting sandbox workspace failed.")
|
|
79
|
+
]
|
|
80
|
+
);
|
|
81
|
+
var action_type3 = zod.z.literal("SET_COOL");
|
|
82
|
+
var error3 = zod.z.object({
|
|
83
|
+
type: zod.z.string(),
|
|
84
|
+
message: zod.z.string()
|
|
85
|
+
});
|
|
86
|
+
var result3 = zod.z.object({});
|
|
87
|
+
var set_cool_action_attempt = zod.z.discriminatedUnion("status", [
|
|
88
|
+
common_pending_action_attempt.extend({
|
|
89
|
+
action_type: action_type3
|
|
90
|
+
}).describe("Setting HVAC to cool."),
|
|
91
|
+
common_succeeded_action_attempt.extend({
|
|
92
|
+
action_type: action_type3,
|
|
93
|
+
result: result3
|
|
94
|
+
}).describe("Setting HVAC to cool succeeded."),
|
|
95
|
+
common_failed_action_attempt.extend({ action_type: action_type3, error: error3 }).describe("Setting HVAC to cool failed.")
|
|
96
|
+
]);
|
|
97
|
+
var action_type4 = zod.z.literal("SET_FAN_MODE");
|
|
98
|
+
var error4 = zod.z.object({
|
|
99
|
+
type: zod.z.string(),
|
|
100
|
+
message: zod.z.string()
|
|
101
|
+
});
|
|
102
|
+
var result4 = zod.z.object({});
|
|
103
|
+
var set_fan_mode_action_attempt = zod.z.discriminatedUnion("status", [
|
|
104
|
+
common_pending_action_attempt.extend({
|
|
105
|
+
action_type: action_type4
|
|
106
|
+
}).describe("Setting fan mode."),
|
|
107
|
+
common_succeeded_action_attempt.extend({
|
|
108
|
+
action_type: action_type4,
|
|
109
|
+
result: result4
|
|
110
|
+
}).describe("Setting fan mode succeeded."),
|
|
111
|
+
common_failed_action_attempt.extend({ action_type: action_type4, error: error4 }).describe("Setting fan mode failed.")
|
|
112
|
+
]);
|
|
113
|
+
var action_type5 = zod.z.literal("SET_HEAT");
|
|
114
|
+
var error5 = zod.z.object({
|
|
115
|
+
type: zod.z.string(),
|
|
116
|
+
message: zod.z.string()
|
|
117
|
+
});
|
|
118
|
+
var result5 = zod.z.object({});
|
|
119
|
+
var set_heat_action_attempt = zod.z.discriminatedUnion("status", [
|
|
120
|
+
common_pending_action_attempt.extend({
|
|
121
|
+
action_type: action_type5
|
|
122
|
+
}).describe("Setting HVAC to heat mode."),
|
|
123
|
+
common_succeeded_action_attempt.extend({
|
|
124
|
+
action_type: action_type5,
|
|
125
|
+
result: result5
|
|
126
|
+
}).describe("Setting HVAC to heat mode succeeded."),
|
|
127
|
+
common_failed_action_attempt.extend({ action_type: action_type5, error: error5 }).describe("Setting HVAC to heat mode failed.")
|
|
128
|
+
]);
|
|
129
|
+
var action_type6 = zod.z.literal("SET_HEAT_COOL");
|
|
130
|
+
var error6 = zod.z.object({
|
|
131
|
+
type: zod.z.string(),
|
|
132
|
+
message: zod.z.string()
|
|
133
|
+
});
|
|
134
|
+
var result6 = zod.z.object({});
|
|
135
|
+
var set_heat_cool_action_attempt = zod.z.discriminatedUnion("status", [
|
|
136
|
+
common_pending_action_attempt.extend({
|
|
137
|
+
action_type: action_type6
|
|
138
|
+
}).describe("Setting HVAC to heat-cool mode."),
|
|
139
|
+
common_succeeded_action_attempt.extend({
|
|
140
|
+
action_type: action_type6,
|
|
141
|
+
result: result6
|
|
142
|
+
}).describe("Setting HVAC to heat-cool mode succeeded."),
|
|
143
|
+
common_failed_action_attempt.extend({ action_type: action_type6, error: error6 }).describe("Setting heat-cool mode failed.")
|
|
144
|
+
]);
|
|
145
|
+
var action_type7 = zod.z.literal("SET_THERMOSTAT_OFF");
|
|
146
|
+
var error7 = zod.z.object({
|
|
147
|
+
type: zod.z.string(),
|
|
148
|
+
message: zod.z.string()
|
|
149
|
+
});
|
|
150
|
+
var result7 = zod.z.object({});
|
|
151
|
+
var set_thermostat_off_action_attempt = zod.z.discriminatedUnion(
|
|
152
|
+
"status",
|
|
153
|
+
[
|
|
154
|
+
common_pending_action_attempt.extend({
|
|
155
|
+
action_type: action_type7
|
|
156
|
+
}).describe("Turning HVAC off."),
|
|
157
|
+
common_succeeded_action_attempt.extend({
|
|
158
|
+
action_type: action_type7,
|
|
159
|
+
result: result7
|
|
160
|
+
}).describe("Turning HVAC off succeeded."),
|
|
161
|
+
common_failed_action_attempt.extend({ action_type: action_type7, error: error7 }).describe("Turning HVAC off failed.")
|
|
162
|
+
]
|
|
163
|
+
);
|
|
164
|
+
var action_type8 = zod.z.literal("UNLOCK_DOOR");
|
|
165
|
+
var error8 = zod.z.object({
|
|
166
|
+
type: zod.z.string(),
|
|
167
|
+
message: zod.z.string()
|
|
168
|
+
});
|
|
169
|
+
var result8 = zod.z.object({});
|
|
170
|
+
var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
|
|
171
|
+
common_pending_action_attempt.extend({
|
|
172
|
+
action_type: action_type8
|
|
173
|
+
}).describe("Unlocking door."),
|
|
174
|
+
common_succeeded_action_attempt.extend({
|
|
175
|
+
action_type: action_type8,
|
|
176
|
+
result: result8
|
|
177
|
+
}).describe("Unlocking door succeeded."),
|
|
178
|
+
common_failed_action_attempt.extend({ action_type: action_type8, error: error8 }).describe("Unlocking door failed.")
|
|
179
|
+
]);
|
|
180
|
+
|
|
181
|
+
// src/lib/seam/connect/models/action-attempts/action-attempt.ts
|
|
182
|
+
var action_attempt = zod.z.union([
|
|
183
|
+
...lock_door_action_attempt.options,
|
|
184
|
+
...unlock_door_action_attempt.options,
|
|
185
|
+
...reset_sandbox_workspace_action_attempt.options,
|
|
186
|
+
...set_cool_action_attempt.options,
|
|
187
|
+
...set_heat_action_attempt.options,
|
|
188
|
+
...set_heat_cool_action_attempt.options,
|
|
189
|
+
...set_fan_mode_action_attempt.options,
|
|
190
|
+
...set_thermostat_off_action_attempt.options
|
|
191
|
+
]);
|
|
192
|
+
zod.z.record(
|
|
193
|
+
zod.z.string().max(40),
|
|
194
|
+
zod.z.union([zod.z.string().max(500), zod.z.boolean(), zod.z.null()])
|
|
41
195
|
).refine((val) => Object.keys(val).length <= 50, {
|
|
42
196
|
message: "Custom metadata is limited to a maximum of 50 keys"
|
|
43
197
|
});
|
|
44
|
-
var custom_metadata =
|
|
45
|
-
|
|
46
|
-
|
|
198
|
+
var custom_metadata = zod.z.record(
|
|
199
|
+
zod.z.string(),
|
|
200
|
+
zod.z.union([zod.z.string(), zod.z.boolean()])
|
|
47
201
|
);
|
|
48
202
|
|
|
49
203
|
// src/lib/seam/connect/models/connect-webviews/connect-webview.ts
|
|
50
|
-
var connect_webview_device_selection_mode =
|
|
204
|
+
var connect_webview_device_selection_mode = zod.z.enum([
|
|
51
205
|
"none",
|
|
52
206
|
"single",
|
|
53
207
|
"multiple"
|
|
54
208
|
]);
|
|
55
|
-
var connect_webview =
|
|
56
|
-
connect_webview_id:
|
|
57
|
-
workspace_id:
|
|
58
|
-
created_at:
|
|
59
|
-
connected_account_id:
|
|
60
|
-
url:
|
|
209
|
+
var connect_webview = zod.z.object({
|
|
210
|
+
connect_webview_id: zod.z.string().uuid(),
|
|
211
|
+
workspace_id: zod.z.string().uuid(),
|
|
212
|
+
created_at: zod.z.string().datetime(),
|
|
213
|
+
connected_account_id: zod.z.string().uuid().nullable(),
|
|
214
|
+
url: zod.z.string().url(),
|
|
61
215
|
device_selection_mode: connect_webview_device_selection_mode,
|
|
62
216
|
// TODO: Use enum value.
|
|
63
|
-
accepted_providers:
|
|
64
|
-
accepted_devices:
|
|
217
|
+
accepted_providers: zod.z.array(zod.z.string()),
|
|
218
|
+
accepted_devices: zod.z.array(zod.z.string()).describe(
|
|
65
219
|
`
|
|
66
220
|
---
|
|
67
221
|
deprecated: Unused. Will be removed.
|
|
68
222
|
---
|
|
69
223
|
`
|
|
70
224
|
),
|
|
71
|
-
any_device_allowed:
|
|
225
|
+
any_device_allowed: zod.z.boolean().describe(
|
|
72
226
|
`
|
|
73
227
|
---
|
|
74
228
|
deprecated: Unused. Will be removed.
|
|
75
229
|
---
|
|
76
230
|
`
|
|
77
231
|
),
|
|
78
|
-
any_provider_allowed:
|
|
79
|
-
login_successful:
|
|
80
|
-
status:
|
|
81
|
-
custom_redirect_url:
|
|
82
|
-
custom_redirect_failure_url:
|
|
232
|
+
any_provider_allowed: zod.z.boolean(),
|
|
233
|
+
login_successful: zod.z.boolean(),
|
|
234
|
+
status: zod.z.enum(["pending", "failed", "authorized"]),
|
|
235
|
+
custom_redirect_url: zod.z.string().url().nullable(),
|
|
236
|
+
custom_redirect_failure_url: zod.z.string().url().nullable(),
|
|
83
237
|
custom_metadata,
|
|
84
|
-
automatically_manage_new_devices:
|
|
85
|
-
wait_for_device_creation:
|
|
86
|
-
authorized_at:
|
|
87
|
-
selected_provider:
|
|
238
|
+
automatically_manage_new_devices: zod.z.boolean(),
|
|
239
|
+
wait_for_device_creation: zod.z.boolean(),
|
|
240
|
+
authorized_at: zod.z.string().datetime().nullable(),
|
|
241
|
+
selected_provider: zod.z.string().nullable()
|
|
88
242
|
});
|
|
89
|
-
var common_event =
|
|
90
|
-
workspace_id:
|
|
243
|
+
var common_event = zod.z.object({
|
|
244
|
+
workspace_id: zod.z.string().uuid().describe(`
|
|
91
245
|
---
|
|
92
246
|
title: Workspace ID
|
|
93
247
|
---
|
|
94
248
|
The ID of the workspace.
|
|
95
249
|
`),
|
|
96
|
-
created_at:
|
|
250
|
+
created_at: zod.z.string().datetime().describe(`
|
|
97
251
|
---
|
|
98
252
|
title: Created At
|
|
99
253
|
---
|
|
100
254
|
The time when the event was created.
|
|
101
255
|
`),
|
|
102
|
-
occurred_at:
|
|
256
|
+
occurred_at: zod.z.string().datetime().describe(`
|
|
103
257
|
---
|
|
104
258
|
title: Occurred At
|
|
105
259
|
---
|
|
@@ -109,97 +263,97 @@ var common_event = z10__namespace.object({
|
|
|
109
263
|
|
|
110
264
|
// src/lib/seam/connect/models/events/access-codes.ts
|
|
111
265
|
var access_code_event = common_event.extend({
|
|
112
|
-
access_code_id:
|
|
266
|
+
access_code_id: zod.z.string().uuid().describe(`
|
|
113
267
|
---
|
|
114
268
|
title: Access Code ID
|
|
115
269
|
---
|
|
116
270
|
The ID of the access code.
|
|
117
271
|
`),
|
|
118
|
-
device_id:
|
|
272
|
+
device_id: zod.z.string().uuid().describe(`
|
|
119
273
|
---
|
|
120
274
|
title: Device ID
|
|
121
275
|
---
|
|
122
276
|
The ID of the device.
|
|
123
277
|
`),
|
|
124
|
-
connected_account_id:
|
|
278
|
+
connected_account_id: zod.z.string().uuid().describe(`
|
|
125
279
|
---
|
|
126
280
|
title: Connected Account ID
|
|
127
281
|
---
|
|
128
282
|
The ID of the connected account.
|
|
129
283
|
`)
|
|
130
284
|
});
|
|
131
|
-
var code =
|
|
285
|
+
var code = zod.z.string().describe(`
|
|
132
286
|
---
|
|
133
287
|
title: Access Code
|
|
134
288
|
---
|
|
135
289
|
The code of the access code.
|
|
136
290
|
`);
|
|
137
291
|
var access_code_created_event = access_code_event.extend({
|
|
138
|
-
event_type:
|
|
292
|
+
event_type: zod.z.literal("access_code.created")
|
|
139
293
|
}).describe("An access code was created.");
|
|
140
294
|
var access_code_changed_event = access_code_event.extend({
|
|
141
|
-
event_type:
|
|
295
|
+
event_type: zod.z.literal("access_code.changed")
|
|
142
296
|
}).describe("An access code was changed.");
|
|
143
297
|
var access_code_scheduled_on_device_event = access_code_event.extend({
|
|
144
|
-
event_type:
|
|
298
|
+
event_type: zod.z.literal("access_code.scheduled_on_device"),
|
|
145
299
|
code
|
|
146
300
|
}).describe("An access code was natively scheduled on a device.");
|
|
147
301
|
var access_code_set_on_device_event = access_code_event.extend({
|
|
148
|
-
event_type:
|
|
302
|
+
event_type: zod.z.literal("access_code.set_on_device"),
|
|
149
303
|
code
|
|
150
304
|
}).describe("An access code was set on a device.");
|
|
151
305
|
var access_code_removed_from_device_event = access_code_event.extend({
|
|
152
|
-
event_type:
|
|
306
|
+
event_type: zod.z.literal("access_code.removed_from_device")
|
|
153
307
|
}).describe("An access code was removed from a device.");
|
|
154
308
|
var access_code_delay_in_setting_on_device_event = access_code_event.extend({
|
|
155
|
-
event_type:
|
|
309
|
+
event_type: zod.z.literal("access_code.delay_in_setting_on_device")
|
|
156
310
|
}).describe(
|
|
157
311
|
"There was an unusually long delay in setting an access code on a device."
|
|
158
312
|
);
|
|
159
313
|
var access_code_failed_to_set_on_device_event = access_code_event.extend({
|
|
160
|
-
event_type:
|
|
314
|
+
event_type: zod.z.literal("access_code.failed_to_set_on_device")
|
|
161
315
|
}).describe("An access code failed to be set on a device.");
|
|
162
316
|
var access_code_deleted_event = access_code_event.extend({
|
|
163
|
-
event_type:
|
|
317
|
+
event_type: zod.z.literal("access_code.deleted"),
|
|
164
318
|
code: code.nullable()
|
|
165
319
|
}).describe("An access code was deleted.");
|
|
166
320
|
var access_code_delay_in_removing_from_device_event = access_code_event.extend({
|
|
167
|
-
event_type:
|
|
321
|
+
event_type: zod.z.literal("access_code.delay_in_removing_from_device")
|
|
168
322
|
}).describe(
|
|
169
323
|
"There was an unusually long delay in removing an access code from a device."
|
|
170
324
|
);
|
|
171
325
|
var access_code_failed_to_remove_from_device_event = access_code_event.extend({
|
|
172
|
-
event_type:
|
|
326
|
+
event_type: zod.z.literal("access_code.failed_to_remove_from_device")
|
|
173
327
|
}).describe("An access code failed to be removed from a device.");
|
|
174
328
|
var access_code_modified_external_to_seam_event = access_code_event.extend({
|
|
175
|
-
event_type:
|
|
329
|
+
event_type: zod.z.literal("access_code.modified_external_to_seam")
|
|
176
330
|
}).describe("An access code was modified external to Seam.");
|
|
177
331
|
var access_code_deleted_external_to_seam_event = access_code_event.extend({
|
|
178
|
-
event_type:
|
|
332
|
+
event_type: zod.z.literal("access_code.deleted_external_to_seam")
|
|
179
333
|
}).describe("An access code was deleted external to Seam.");
|
|
180
334
|
var access_code_backup_access_code_pulled_event = access_code_event.extend({
|
|
181
|
-
event_type:
|
|
182
|
-
backup_access_code_id:
|
|
335
|
+
event_type: zod.z.literal("access_code.backup_access_code_pulled"),
|
|
336
|
+
backup_access_code_id: zod.z.string()
|
|
183
337
|
}).describe(
|
|
184
338
|
"A backup access code was pulled from the backup access code pool and set on a device."
|
|
185
339
|
);
|
|
186
340
|
var unmanaged_access_code_converted_to_managed_event = access_code_event.extend({
|
|
187
|
-
event_type:
|
|
341
|
+
event_type: zod.z.literal("access_code.unmanaged.converted_to_managed")
|
|
188
342
|
}).describe(
|
|
189
343
|
"An unmanaged access code was successfully converted to a managed access code."
|
|
190
344
|
);
|
|
191
345
|
var unmanaged_access_code_failed_to_convert_to_managed_event = access_code_event.extend({
|
|
192
|
-
event_type:
|
|
346
|
+
event_type: zod.z.literal(
|
|
193
347
|
"access_code.unmanaged.failed_to_convert_to_managed"
|
|
194
348
|
)
|
|
195
349
|
}).describe(
|
|
196
350
|
"An unmanaged access code failed to be converted to a managed access code."
|
|
197
351
|
);
|
|
198
352
|
var unmanaged_access_code_created_event = access_code_event.extend({
|
|
199
|
-
event_type:
|
|
353
|
+
event_type: zod.z.literal("access_code.unmanaged.created")
|
|
200
354
|
}).describe("An unmanaged access code was created on a device.");
|
|
201
355
|
var unmanaged_access_code_removed_event = access_code_event.extend({
|
|
202
|
-
event_type:
|
|
356
|
+
event_type: zod.z.literal("access_code.unmanaged.removed")
|
|
203
357
|
}).describe("An unmanaged access code was removed from a device.");
|
|
204
358
|
var access_code_events = [
|
|
205
359
|
access_code_created_event,
|
|
@@ -221,13 +375,13 @@ var access_code_events = [
|
|
|
221
375
|
unmanaged_access_code_removed_event
|
|
222
376
|
];
|
|
223
377
|
var common_acs_event = common_event.extend({
|
|
224
|
-
connected_account_id:
|
|
378
|
+
connected_account_id: zod.z.string().uuid().describe(`
|
|
225
379
|
---
|
|
226
380
|
title: Connected Account ID
|
|
227
381
|
---
|
|
228
382
|
ID of the connected account.
|
|
229
383
|
`),
|
|
230
|
-
acs_system_id:
|
|
384
|
+
acs_system_id: zod.z.string().uuid().describe(`
|
|
231
385
|
---
|
|
232
386
|
title: ACS System ID
|
|
233
387
|
---
|
|
@@ -237,17 +391,17 @@ var common_acs_event = common_event.extend({
|
|
|
237
391
|
|
|
238
392
|
// src/lib/seam/connect/models/events/acs/credentials.ts
|
|
239
393
|
var acs_credential_event = common_acs_event.extend({
|
|
240
|
-
acs_credential_id:
|
|
394
|
+
acs_credential_id: zod.z.string().uuid()
|
|
241
395
|
});
|
|
242
396
|
var acs_credential_deleted_event = acs_credential_event.extend({
|
|
243
|
-
event_type:
|
|
397
|
+
event_type: zod.z.literal("acs_credential.deleted")
|
|
244
398
|
}).describe("An ACS credential was deleted.");
|
|
245
399
|
var acs_credential_events = [acs_credential_deleted_event];
|
|
246
400
|
var acs_user_event = common_acs_event.extend({
|
|
247
|
-
acs_user_id:
|
|
401
|
+
acs_user_id: zod.z.string().uuid()
|
|
248
402
|
});
|
|
249
403
|
var acs_user_deleted_event = acs_user_event.extend({
|
|
250
|
-
event_type:
|
|
404
|
+
event_type: zod.z.literal("acs_user.deleted")
|
|
251
405
|
}).describe("An ACS user was deleted.");
|
|
252
406
|
var acs_user_events = [acs_user_deleted_event];
|
|
253
407
|
|
|
@@ -257,7 +411,7 @@ var acs_events = [
|
|
|
257
411
|
...acs_user_events
|
|
258
412
|
];
|
|
259
413
|
var client_session_event = common_event.extend({
|
|
260
|
-
client_session_id:
|
|
414
|
+
client_session_id: zod.z.string().uuid().describe(`
|
|
261
415
|
---
|
|
262
416
|
title: Client Session ID
|
|
263
417
|
---
|
|
@@ -265,50 +419,50 @@ var client_session_event = common_event.extend({
|
|
|
265
419
|
`)
|
|
266
420
|
});
|
|
267
421
|
var client_session_deleted_event = client_session_event.extend({
|
|
268
|
-
event_type:
|
|
422
|
+
event_type: zod.z.literal("client_session.deleted")
|
|
269
423
|
}).describe("A client session was deleted.");
|
|
270
424
|
var client_session_events = [client_session_deleted_event];
|
|
271
425
|
var connected_account_event = common_event.extend({
|
|
272
|
-
connected_account_id:
|
|
426
|
+
connected_account_id: zod.z.string().uuid().describe(`
|
|
273
427
|
---
|
|
274
428
|
title: Connected Account ID
|
|
275
429
|
---
|
|
276
430
|
ID of the connected account.
|
|
277
431
|
`)
|
|
278
432
|
});
|
|
279
|
-
var connect_webview_id =
|
|
433
|
+
var connect_webview_id = zod.z.string().uuid().describe(`
|
|
280
434
|
---
|
|
281
435
|
title: Connect Webview ID
|
|
282
436
|
---
|
|
283
437
|
ID of the connect webview.
|
|
284
438
|
`);
|
|
285
439
|
var connected_account_connected_event = connected_account_event.extend({
|
|
286
|
-
event_type:
|
|
440
|
+
event_type: zod.z.literal("connected_account.connected"),
|
|
287
441
|
connect_webview_id
|
|
288
442
|
}).describe(
|
|
289
443
|
"A connected account was connected for the first time, was reconnected after being disconnected."
|
|
290
444
|
);
|
|
291
445
|
var connected_account_created_event = connected_account_event.extend({
|
|
292
|
-
event_type:
|
|
446
|
+
event_type: zod.z.literal("connected_account.created"),
|
|
293
447
|
connect_webview_id
|
|
294
448
|
}).describe("A connected account was created.");
|
|
295
449
|
var connected_account_successful_login_event = connected_account_event.extend({
|
|
296
|
-
event_type:
|
|
450
|
+
event_type: zod.z.literal("connected_account.successful_login"),
|
|
297
451
|
connect_webview_id
|
|
298
452
|
}).describe("A connected account had a successful connect webview login.");
|
|
299
453
|
var connected_account_disconnected_event = connected_account_event.extend({
|
|
300
|
-
event_type:
|
|
454
|
+
event_type: zod.z.literal("connected_account.disconnected")
|
|
301
455
|
}).describe("A connected account was disconnected.");
|
|
302
456
|
var connected_account_completed_first_sync_event = connected_account_event.extend({
|
|
303
|
-
event_type:
|
|
457
|
+
event_type: zod.z.literal("connected_account.completed_first_sync")
|
|
304
458
|
}).describe(
|
|
305
459
|
"A connected account completed the first sync with Seam and devices are now available."
|
|
306
460
|
);
|
|
307
461
|
var connected_account_deleted_event = connected_account_event.extend({
|
|
308
|
-
event_type:
|
|
462
|
+
event_type: zod.z.literal("connected_account.deleted")
|
|
309
463
|
}).describe("A connected account was deleted.");
|
|
310
464
|
var connected_account_completed_first_sync_after_reconnection_event = connected_account_event.extend({
|
|
311
|
-
event_type:
|
|
465
|
+
event_type: zod.z.literal(
|
|
312
466
|
"connected_account.completed_first_sync_after_reconnection"
|
|
313
467
|
)
|
|
314
468
|
}).describe(
|
|
@@ -324,32 +478,32 @@ var connected_account_events = [
|
|
|
324
478
|
connected_account_completed_first_sync_after_reconnection_event
|
|
325
479
|
];
|
|
326
480
|
var device_event = common_event.extend({
|
|
327
|
-
device_id:
|
|
481
|
+
device_id: zod.z.string().uuid().describe(`
|
|
328
482
|
---
|
|
329
483
|
title: Device ID
|
|
330
484
|
---
|
|
331
485
|
ID of the device.
|
|
332
486
|
`),
|
|
333
|
-
connected_account_id:
|
|
487
|
+
connected_account_id: zod.z.string().uuid().describe(`
|
|
334
488
|
---
|
|
335
489
|
title: Connected Account ID
|
|
336
490
|
---
|
|
337
491
|
ID of the connected account.
|
|
338
492
|
`)
|
|
339
493
|
});
|
|
340
|
-
var battery_level =
|
|
494
|
+
var battery_level = zod.z.number().min(0).max(1).describe(`
|
|
341
495
|
---
|
|
342
496
|
title: Battery Level
|
|
343
497
|
---
|
|
344
498
|
Fractional number 0 to 1.0 indicating amount of battery in device, as reported by device.
|
|
345
499
|
`);
|
|
346
|
-
var device_battery_status =
|
|
500
|
+
var device_battery_status = zod.z.enum(["critical", "low", "good", "full"]).describe(`
|
|
347
501
|
---
|
|
348
502
|
title: Battery Status
|
|
349
503
|
---
|
|
350
504
|
Enum representing the battery status calculated from numeric battery_level value, one of 'critical' | 'low' | 'good' | 'full'
|
|
351
505
|
`);
|
|
352
|
-
var disconnection_error_code =
|
|
506
|
+
var disconnection_error_code = zod.z.enum([
|
|
353
507
|
"account_disconnected",
|
|
354
508
|
"hub_disconnected",
|
|
355
509
|
"device_disconnected"
|
|
@@ -359,108 +513,108 @@ var disconnection_error_code = z10__namespace.enum([
|
|
|
359
513
|
---
|
|
360
514
|
The error code associated with the event, if any.
|
|
361
515
|
`);
|
|
362
|
-
var lock_method =
|
|
516
|
+
var lock_method = zod.z.enum(["keycode", "manual", "unknown", "seamapi"]).describe(`
|
|
363
517
|
---
|
|
364
518
|
title: Lock Lock/Unlock Method
|
|
365
519
|
---
|
|
366
520
|
Method by which a lock device was locked or unlocked. When the method is \`keycode\`, the \`access_code_id\` will reference the Seam access code which was used, if reported by the device.
|
|
367
521
|
`);
|
|
368
522
|
var device_connected_event = device_event.extend({
|
|
369
|
-
event_type:
|
|
523
|
+
event_type: zod.z.literal("device.connected")
|
|
370
524
|
}).describe("A new device was connected to Seam.");
|
|
371
525
|
var device_converted_to_unmanaged_event = device_event.extend({
|
|
372
|
-
event_type:
|
|
526
|
+
event_type: zod.z.literal("device.converted_to_unmanaged")
|
|
373
527
|
}).describe(
|
|
374
528
|
"An unmanaged device was successfully converted to a managed device."
|
|
375
529
|
);
|
|
376
530
|
var unmanaged_device_converted_to_managed_event = device_event.extend({
|
|
377
|
-
event_type:
|
|
531
|
+
event_type: zod.z.literal("device.unmanaged.converted_to_managed")
|
|
378
532
|
}).describe(
|
|
379
533
|
"A managed device was successfully converted to an unmanaged device."
|
|
380
534
|
);
|
|
381
535
|
var unmanaged_device_connected_event = device_event.extend({
|
|
382
|
-
event_type:
|
|
536
|
+
event_type: zod.z.literal("device.unmanaged.connected")
|
|
383
537
|
}).describe("An unmanaged device was connected to Seam");
|
|
384
538
|
var device_disconnected_event = device_event.extend({
|
|
385
|
-
event_type:
|
|
539
|
+
event_type: zod.z.literal("device.disconnected"),
|
|
386
540
|
error_code: disconnection_error_code
|
|
387
541
|
}).describe("A device was disconnected");
|
|
388
542
|
var unmanaged_device_disconnected_event = device_event.extend({
|
|
389
|
-
event_type:
|
|
543
|
+
event_type: zod.z.literal("device.unmanaged.disconnected"),
|
|
390
544
|
error_code: disconnection_error_code
|
|
391
545
|
}).describe("An unmanaged device was disconnected");
|
|
392
546
|
var device_tampered_event = device_event.extend({
|
|
393
|
-
event_type:
|
|
547
|
+
event_type: zod.z.literal("device.tampered")
|
|
394
548
|
}).describe(
|
|
395
549
|
"A device detected that it was tampered with, e.g., opened or moved."
|
|
396
550
|
);
|
|
397
551
|
var device_low_battery_event = device_event.extend({
|
|
398
|
-
event_type:
|
|
552
|
+
event_type: zod.z.literal("device.low_battery"),
|
|
399
553
|
battery_level
|
|
400
554
|
}).describe("A device battery level dropped below the low threshold.");
|
|
401
555
|
var device_battery_status_changed_event = device_event.extend({
|
|
402
|
-
event_type:
|
|
556
|
+
event_type: zod.z.literal("device.battery_status_changed"),
|
|
403
557
|
battery_status: device_battery_status,
|
|
404
558
|
battery_level
|
|
405
559
|
}).describe(
|
|
406
560
|
"A device battery status changed since the last battery status changed event."
|
|
407
561
|
);
|
|
408
562
|
var device_removed_event = device_event.extend({
|
|
409
|
-
event_type:
|
|
563
|
+
event_type: zod.z.literal("device.removed")
|
|
410
564
|
}).describe("A device was removed externally from the connected account.");
|
|
411
565
|
var device_deleted_event = device_event.extend({
|
|
412
|
-
event_type:
|
|
566
|
+
event_type: zod.z.literal("device.deleted")
|
|
413
567
|
}).describe("A device was deleted.");
|
|
414
568
|
var device_third_party_integration_detected_event = device_event.extend({
|
|
415
|
-
event_type:
|
|
569
|
+
event_type: zod.z.literal("device.third_party_integration_detected")
|
|
416
570
|
}).describe(
|
|
417
571
|
"Seam detected a device is using a third party integration that will interfere with Seam device management."
|
|
418
572
|
);
|
|
419
573
|
var device_third_party_integration_no_longer_detected_event = device_event.extend({
|
|
420
|
-
event_type:
|
|
574
|
+
event_type: zod.z.literal(
|
|
421
575
|
"device.third_party_integration_no_longer_detected"
|
|
422
576
|
)
|
|
423
577
|
}).describe(
|
|
424
578
|
"Seam detected a device is no longer using a third party integration that was interfering with Seam device management."
|
|
425
579
|
);
|
|
426
580
|
var device_salto_privacy_mode_activated_event = device_event.extend({
|
|
427
|
-
event_type:
|
|
581
|
+
event_type: zod.z.literal("device.salto.privacy_mode_activated")
|
|
428
582
|
}).describe("A Salto device activated privacy mode.");
|
|
429
583
|
var device_salto_privacy_mode_deactivated_event = device_event.extend({
|
|
430
|
-
event_type:
|
|
584
|
+
event_type: zod.z.literal("device.salto.privacy_mode_deactivated")
|
|
431
585
|
}).describe("A Salto device deactivated privacy mode.");
|
|
432
586
|
var device_connection_became_flaky_event = device_event.extend({
|
|
433
|
-
event_type:
|
|
587
|
+
event_type: zod.z.literal("device.connection_became_flaky")
|
|
434
588
|
}).describe("Seam detected a flaky device connection.");
|
|
435
589
|
var device_connection_stabilized_event = device_event.extend({
|
|
436
|
-
event_type:
|
|
590
|
+
event_type: zod.z.literal("device.connection_stabilized")
|
|
437
591
|
}).describe("Seam detected a previously flaky device connection stabilized.");
|
|
438
592
|
var device_error_subscription_required_event = device_event.extend({
|
|
439
|
-
event_type:
|
|
593
|
+
event_type: zod.z.literal("device.error.subscription_required")
|
|
440
594
|
}).describe(
|
|
441
595
|
"A third party subscription is required to use all device features."
|
|
442
596
|
);
|
|
443
597
|
var device_error_subscription_required_resolved_event = device_event.extend({
|
|
444
|
-
event_type:
|
|
598
|
+
event_type: zod.z.literal("device.error.subscription_required.resolved")
|
|
445
599
|
}).describe(
|
|
446
600
|
"A third party subscription is active or no longer-required to use all device features."
|
|
447
601
|
);
|
|
448
602
|
var device_accessory_keypad_connected_event = device_event.extend({
|
|
449
|
-
event_type:
|
|
603
|
+
event_type: zod.z.literal("device.accessory_keypad_connected")
|
|
450
604
|
}).describe("A accessory keypad was connected to a device.");
|
|
451
605
|
var device_accessory_keypad_disconnected_event = device_event.extend({
|
|
452
|
-
event_type:
|
|
606
|
+
event_type: zod.z.literal("device.accessory_keypad_disconnected")
|
|
453
607
|
}).describe("A accessory keypad was disconnected to a device.");
|
|
454
608
|
var noise_sensor_noise_threshold_triggered_event = device_event.extend({
|
|
455
|
-
event_type:
|
|
609
|
+
event_type: zod.z.literal("noise_sensor.noise_threshold_triggered"),
|
|
456
610
|
// TODO: import from ../devices
|
|
457
|
-
noiseaware_metadata:
|
|
611
|
+
noiseaware_metadata: zod.z.record(zod.z.unknown()).optional().describe(`
|
|
458
612
|
---
|
|
459
613
|
title: Noiseaware Metadata
|
|
460
614
|
---
|
|
461
615
|
Metadata from the Noiseaware API.
|
|
462
616
|
`),
|
|
463
|
-
minut_metadata:
|
|
617
|
+
minut_metadata: zod.z.record(zod.z.unknown()).optional().describe(`
|
|
464
618
|
---
|
|
465
619
|
title: Minut Metadata
|
|
466
620
|
---
|
|
@@ -470,15 +624,15 @@ var noise_sensor_noise_threshold_triggered_event = device_event.extend({
|
|
|
470
624
|
"Extended periods of noise or noise exceeding a threshold was detected."
|
|
471
625
|
);
|
|
472
626
|
var lock_locked_event = device_event.extend({
|
|
473
|
-
event_type:
|
|
474
|
-
access_code_id:
|
|
475
|
-
action_attempt_id:
|
|
627
|
+
event_type: zod.z.literal("lock.locked"),
|
|
628
|
+
access_code_id: zod.z.string().uuid().optional(),
|
|
629
|
+
action_attempt_id: zod.z.string().uuid().optional(),
|
|
476
630
|
method: lock_method
|
|
477
631
|
}).describe("A lock was locked.");
|
|
478
632
|
var lock_unlocked_event = device_event.extend({
|
|
479
|
-
event_type:
|
|
480
|
-
access_code_id:
|
|
481
|
-
action_attempt_id:
|
|
633
|
+
event_type: zod.z.literal("lock.unlocked"),
|
|
634
|
+
access_code_id: zod.z.string().uuid().optional(),
|
|
635
|
+
action_attempt_id: zod.z.string().uuid().optional(),
|
|
482
636
|
method: lock_method
|
|
483
637
|
}).describe("A lock was unlocked.");
|
|
484
638
|
var device_events = [
|
|
@@ -508,7 +662,7 @@ var device_events = [
|
|
|
508
662
|
lock_unlocked_event
|
|
509
663
|
];
|
|
510
664
|
var enrollment_automation_event = common_event.extend({
|
|
511
|
-
enrollment_automation_id:
|
|
665
|
+
enrollment_automation_id: zod.z.string().uuid().describe(`
|
|
512
666
|
---
|
|
513
667
|
title: Enrollment Automation ID
|
|
514
668
|
---
|
|
@@ -516,13 +670,13 @@ var enrollment_automation_event = common_event.extend({
|
|
|
516
670
|
`)
|
|
517
671
|
});
|
|
518
672
|
var enrollment_automation_deleted_event = enrollment_automation_event.extend({
|
|
519
|
-
event_type:
|
|
673
|
+
event_type: zod.z.literal("enrollment_automation.deleted")
|
|
520
674
|
}).describe("An enrollment automation was deleted.");
|
|
521
675
|
var enrollment_automation_events = [
|
|
522
676
|
enrollment_automation_deleted_event
|
|
523
677
|
];
|
|
524
678
|
var phone_event = common_event.extend({
|
|
525
|
-
device_id:
|
|
679
|
+
device_id: zod.z.string().uuid().describe(`
|
|
526
680
|
---
|
|
527
681
|
title: Device ID
|
|
528
682
|
---
|
|
@@ -530,12 +684,12 @@ var phone_event = common_event.extend({
|
|
|
530
684
|
`)
|
|
531
685
|
});
|
|
532
686
|
var phone_deactivated_event = phone_event.extend({
|
|
533
|
-
event_type:
|
|
687
|
+
event_type: zod.z.literal("phone.deactivated")
|
|
534
688
|
}).describe("A phone device was deactivated.");
|
|
535
689
|
var phone_events = [phone_deactivated_event];
|
|
536
690
|
|
|
537
691
|
// src/lib/seam/connect/models/events/seam-event.ts
|
|
538
|
-
var seam_event =
|
|
692
|
+
var seam_event = zod.z.discriminatedUnion("event_type", [
|
|
539
693
|
...access_code_events,
|
|
540
694
|
...acs_events,
|
|
541
695
|
...client_session_events,
|
|
@@ -925,6 +1079,17 @@ var openapi_default = {
|
|
|
925
1079
|
can_remove_acs_users_from_acs_access_groups: { type: "boolean" },
|
|
926
1080
|
connected_account_ids: { items: { type: "string" }, type: "array" },
|
|
927
1081
|
created_at: { format: "date-time", type: "string" },
|
|
1082
|
+
errors: {
|
|
1083
|
+
items: {
|
|
1084
|
+
properties: {
|
|
1085
|
+
error_code: { type: "string" },
|
|
1086
|
+
message: { type: "string" }
|
|
1087
|
+
},
|
|
1088
|
+
required: ["error_code", "message"],
|
|
1089
|
+
type: "object"
|
|
1090
|
+
},
|
|
1091
|
+
type: "array"
|
|
1092
|
+
},
|
|
928
1093
|
external_type: {
|
|
929
1094
|
enum: [
|
|
930
1095
|
"pti_site",
|
|
@@ -960,6 +1125,17 @@ var openapi_default = {
|
|
|
960
1125
|
description: "\n ---\n deprecated: use external_type_display_name\n ---\n ",
|
|
961
1126
|
type: "string"
|
|
962
1127
|
},
|
|
1128
|
+
warnings: {
|
|
1129
|
+
items: {
|
|
1130
|
+
properties: {
|
|
1131
|
+
message: { type: "string" },
|
|
1132
|
+
warning_code: { type: "string" }
|
|
1133
|
+
},
|
|
1134
|
+
required: ["warning_code", "message"],
|
|
1135
|
+
type: "object"
|
|
1136
|
+
},
|
|
1137
|
+
type: "array"
|
|
1138
|
+
},
|
|
963
1139
|
workspace_id: { format: "uuid", type: "string" }
|
|
964
1140
|
},
|
|
965
1141
|
required: [
|
|
@@ -969,7 +1145,9 @@ var openapi_default = {
|
|
|
969
1145
|
"workspace_id",
|
|
970
1146
|
"connected_account_ids",
|
|
971
1147
|
"image_url",
|
|
972
|
-
"image_alt_text"
|
|
1148
|
+
"image_alt_text",
|
|
1149
|
+
"errors",
|
|
1150
|
+
"warnings"
|
|
973
1151
|
],
|
|
974
1152
|
type: "object"
|
|
975
1153
|
},
|
|
@@ -1025,40 +1203,580 @@ var openapi_default = {
|
|
|
1025
1203
|
type: "object"
|
|
1026
1204
|
},
|
|
1027
1205
|
action_attempt: {
|
|
1028
|
-
discriminator: { propertyName: "status" },
|
|
1029
1206
|
oneOf: [
|
|
1030
1207
|
{
|
|
1208
|
+
description: "Locking door.",
|
|
1209
|
+
properties: {
|
|
1210
|
+
action_attempt_id: {
|
|
1211
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1212
|
+
format: "uuid",
|
|
1213
|
+
type: "string"
|
|
1214
|
+
},
|
|
1215
|
+
action_type: { enum: ["LOCK_DOOR"], type: "string" },
|
|
1216
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1217
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1218
|
+
status: { enum: ["pending"], type: "string" }
|
|
1219
|
+
},
|
|
1220
|
+
required: [
|
|
1221
|
+
"action_attempt_id",
|
|
1222
|
+
"status",
|
|
1223
|
+
"result",
|
|
1224
|
+
"error",
|
|
1225
|
+
"action_type"
|
|
1226
|
+
],
|
|
1227
|
+
type: "object"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
description: "Locking door succeeded.",
|
|
1231
|
+
properties: {
|
|
1232
|
+
action_attempt_id: {
|
|
1233
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1234
|
+
format: "uuid",
|
|
1235
|
+
type: "string"
|
|
1236
|
+
},
|
|
1237
|
+
action_type: { enum: ["LOCK_DOOR"], type: "string" },
|
|
1238
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1239
|
+
result: { properties: {}, type: "object" },
|
|
1240
|
+
status: { enum: ["success"], type: "string" }
|
|
1241
|
+
},
|
|
1242
|
+
required: [
|
|
1243
|
+
"action_attempt_id",
|
|
1244
|
+
"status",
|
|
1245
|
+
"error",
|
|
1246
|
+
"action_type",
|
|
1247
|
+
"result"
|
|
1248
|
+
],
|
|
1249
|
+
type: "object"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
description: "Locking door failed.",
|
|
1253
|
+
properties: {
|
|
1254
|
+
action_attempt_id: {
|
|
1255
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1256
|
+
format: "uuid",
|
|
1257
|
+
type: "string"
|
|
1258
|
+
},
|
|
1259
|
+
action_type: { enum: ["LOCK_DOOR"], type: "string" },
|
|
1260
|
+
error: {
|
|
1261
|
+
properties: {
|
|
1262
|
+
message: { type: "string" },
|
|
1263
|
+
type: { type: "string" }
|
|
1264
|
+
},
|
|
1265
|
+
required: ["type", "message"],
|
|
1266
|
+
type: "object"
|
|
1267
|
+
},
|
|
1268
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1269
|
+
status: { enum: ["error"], type: "string" }
|
|
1270
|
+
},
|
|
1271
|
+
required: [
|
|
1272
|
+
"action_attempt_id",
|
|
1273
|
+
"status",
|
|
1274
|
+
"result",
|
|
1275
|
+
"action_type",
|
|
1276
|
+
"error"
|
|
1277
|
+
],
|
|
1278
|
+
type: "object"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
description: "Unlocking door.",
|
|
1282
|
+
properties: {
|
|
1283
|
+
action_attempt_id: {
|
|
1284
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1285
|
+
format: "uuid",
|
|
1286
|
+
type: "string"
|
|
1287
|
+
},
|
|
1288
|
+
action_type: { enum: ["UNLOCK_DOOR"], type: "string" },
|
|
1289
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1290
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1291
|
+
status: { enum: ["pending"], type: "string" }
|
|
1292
|
+
},
|
|
1293
|
+
required: [
|
|
1294
|
+
"action_attempt_id",
|
|
1295
|
+
"status",
|
|
1296
|
+
"result",
|
|
1297
|
+
"error",
|
|
1298
|
+
"action_type"
|
|
1299
|
+
],
|
|
1300
|
+
type: "object"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
description: "Unlocking door succeeded.",
|
|
1304
|
+
properties: {
|
|
1305
|
+
action_attempt_id: {
|
|
1306
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1307
|
+
format: "uuid",
|
|
1308
|
+
type: "string"
|
|
1309
|
+
},
|
|
1310
|
+
action_type: { enum: ["UNLOCK_DOOR"], type: "string" },
|
|
1311
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1312
|
+
result: { properties: {}, type: "object" },
|
|
1313
|
+
status: { enum: ["success"], type: "string" }
|
|
1314
|
+
},
|
|
1315
|
+
required: [
|
|
1316
|
+
"action_attempt_id",
|
|
1317
|
+
"status",
|
|
1318
|
+
"error",
|
|
1319
|
+
"action_type",
|
|
1320
|
+
"result"
|
|
1321
|
+
],
|
|
1322
|
+
type: "object"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
description: "Unlocking door failed.",
|
|
1326
|
+
properties: {
|
|
1327
|
+
action_attempt_id: {
|
|
1328
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1329
|
+
format: "uuid",
|
|
1330
|
+
type: "string"
|
|
1331
|
+
},
|
|
1332
|
+
action_type: { enum: ["UNLOCK_DOOR"], type: "string" },
|
|
1333
|
+
error: {
|
|
1334
|
+
properties: {
|
|
1335
|
+
message: { type: "string" },
|
|
1336
|
+
type: { type: "string" }
|
|
1337
|
+
},
|
|
1338
|
+
required: ["type", "message"],
|
|
1339
|
+
type: "object"
|
|
1340
|
+
},
|
|
1341
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1342
|
+
status: { enum: ["error"], type: "string" }
|
|
1343
|
+
},
|
|
1344
|
+
required: [
|
|
1345
|
+
"action_attempt_id",
|
|
1346
|
+
"status",
|
|
1347
|
+
"result",
|
|
1348
|
+
"action_type",
|
|
1349
|
+
"error"
|
|
1350
|
+
],
|
|
1351
|
+
type: "object"
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
description: "Resetting sandbox workspace.",
|
|
1355
|
+
properties: {
|
|
1356
|
+
action_attempt_id: {
|
|
1357
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1358
|
+
format: "uuid",
|
|
1359
|
+
type: "string"
|
|
1360
|
+
},
|
|
1361
|
+
action_type: {
|
|
1362
|
+
enum: ["RESET_SANDBOX_WORKSPACE"],
|
|
1363
|
+
type: "string"
|
|
1364
|
+
},
|
|
1365
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1366
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1367
|
+
status: { enum: ["pending"], type: "string" }
|
|
1368
|
+
},
|
|
1369
|
+
required: [
|
|
1370
|
+
"action_attempt_id",
|
|
1371
|
+
"status",
|
|
1372
|
+
"result",
|
|
1373
|
+
"error",
|
|
1374
|
+
"action_type"
|
|
1375
|
+
],
|
|
1376
|
+
type: "object"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
description: "Resetting sandbox workspace succeeded.",
|
|
1380
|
+
properties: {
|
|
1381
|
+
action_attempt_id: {
|
|
1382
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1383
|
+
format: "uuid",
|
|
1384
|
+
type: "string"
|
|
1385
|
+
},
|
|
1386
|
+
action_type: {
|
|
1387
|
+
enum: ["RESET_SANDBOX_WORKSPACE"],
|
|
1388
|
+
type: "string"
|
|
1389
|
+
},
|
|
1390
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1391
|
+
result: { properties: {}, type: "object" },
|
|
1392
|
+
status: { enum: ["success"], type: "string" }
|
|
1393
|
+
},
|
|
1394
|
+
required: [
|
|
1395
|
+
"action_attempt_id",
|
|
1396
|
+
"status",
|
|
1397
|
+
"error",
|
|
1398
|
+
"action_type",
|
|
1399
|
+
"result"
|
|
1400
|
+
],
|
|
1401
|
+
type: "object"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
description: "Resetting sandbox workspace failed.",
|
|
1405
|
+
properties: {
|
|
1406
|
+
action_attempt_id: {
|
|
1407
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1408
|
+
format: "uuid",
|
|
1409
|
+
type: "string"
|
|
1410
|
+
},
|
|
1411
|
+
action_type: {
|
|
1412
|
+
enum: ["RESET_SANDBOX_WORKSPACE"],
|
|
1413
|
+
type: "string"
|
|
1414
|
+
},
|
|
1415
|
+
error: {
|
|
1416
|
+
properties: {
|
|
1417
|
+
message: { type: "string" },
|
|
1418
|
+
type: { type: "string" }
|
|
1419
|
+
},
|
|
1420
|
+
required: ["type", "message"],
|
|
1421
|
+
type: "object"
|
|
1422
|
+
},
|
|
1423
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1424
|
+
status: { enum: ["error"], type: "string" }
|
|
1425
|
+
},
|
|
1426
|
+
required: [
|
|
1427
|
+
"action_attempt_id",
|
|
1428
|
+
"status",
|
|
1429
|
+
"result",
|
|
1430
|
+
"action_type",
|
|
1431
|
+
"error"
|
|
1432
|
+
],
|
|
1433
|
+
type: "object"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
description: "Setting HVAC to cool.",
|
|
1437
|
+
properties: {
|
|
1438
|
+
action_attempt_id: {
|
|
1439
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1440
|
+
format: "uuid",
|
|
1441
|
+
type: "string"
|
|
1442
|
+
},
|
|
1443
|
+
action_type: { enum: ["SET_COOL"], type: "string" },
|
|
1444
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1445
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1446
|
+
status: { enum: ["pending"], type: "string" }
|
|
1447
|
+
},
|
|
1448
|
+
required: [
|
|
1449
|
+
"action_attempt_id",
|
|
1450
|
+
"status",
|
|
1451
|
+
"result",
|
|
1452
|
+
"error",
|
|
1453
|
+
"action_type"
|
|
1454
|
+
],
|
|
1455
|
+
type: "object"
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
description: "Setting HVAC to cool succeeded.",
|
|
1459
|
+
properties: {
|
|
1460
|
+
action_attempt_id: {
|
|
1461
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1462
|
+
format: "uuid",
|
|
1463
|
+
type: "string"
|
|
1464
|
+
},
|
|
1465
|
+
action_type: { enum: ["SET_COOL"], type: "string" },
|
|
1466
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1467
|
+
result: { properties: {}, type: "object" },
|
|
1468
|
+
status: { enum: ["success"], type: "string" }
|
|
1469
|
+
},
|
|
1470
|
+
required: [
|
|
1471
|
+
"action_attempt_id",
|
|
1472
|
+
"status",
|
|
1473
|
+
"error",
|
|
1474
|
+
"action_type",
|
|
1475
|
+
"result"
|
|
1476
|
+
],
|
|
1477
|
+
type: "object"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
description: "Setting HVAC to cool failed.",
|
|
1481
|
+
properties: {
|
|
1482
|
+
action_attempt_id: {
|
|
1483
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1484
|
+
format: "uuid",
|
|
1485
|
+
type: "string"
|
|
1486
|
+
},
|
|
1487
|
+
action_type: { enum: ["SET_COOL"], type: "string" },
|
|
1488
|
+
error: {
|
|
1489
|
+
properties: {
|
|
1490
|
+
message: { type: "string" },
|
|
1491
|
+
type: { type: "string" }
|
|
1492
|
+
},
|
|
1493
|
+
required: ["type", "message"],
|
|
1494
|
+
type: "object"
|
|
1495
|
+
},
|
|
1496
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1497
|
+
status: { enum: ["error"], type: "string" }
|
|
1498
|
+
},
|
|
1499
|
+
required: [
|
|
1500
|
+
"action_attempt_id",
|
|
1501
|
+
"status",
|
|
1502
|
+
"result",
|
|
1503
|
+
"action_type",
|
|
1504
|
+
"error"
|
|
1505
|
+
],
|
|
1506
|
+
type: "object"
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
description: "Setting HVAC to heat mode.",
|
|
1510
|
+
properties: {
|
|
1511
|
+
action_attempt_id: {
|
|
1512
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1513
|
+
format: "uuid",
|
|
1514
|
+
type: "string"
|
|
1515
|
+
},
|
|
1516
|
+
action_type: { enum: ["SET_HEAT"], type: "string" },
|
|
1517
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1518
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1519
|
+
status: { enum: ["pending"], type: "string" }
|
|
1520
|
+
},
|
|
1521
|
+
required: [
|
|
1522
|
+
"action_attempt_id",
|
|
1523
|
+
"status",
|
|
1524
|
+
"result",
|
|
1525
|
+
"error",
|
|
1526
|
+
"action_type"
|
|
1527
|
+
],
|
|
1528
|
+
type: "object"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
description: "Setting HVAC to heat mode succeeded.",
|
|
1532
|
+
properties: {
|
|
1533
|
+
action_attempt_id: {
|
|
1534
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1535
|
+
format: "uuid",
|
|
1536
|
+
type: "string"
|
|
1537
|
+
},
|
|
1538
|
+
action_type: { enum: ["SET_HEAT"], type: "string" },
|
|
1539
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1540
|
+
result: { properties: {}, type: "object" },
|
|
1541
|
+
status: { enum: ["success"], type: "string" }
|
|
1542
|
+
},
|
|
1543
|
+
required: [
|
|
1544
|
+
"action_attempt_id",
|
|
1545
|
+
"status",
|
|
1546
|
+
"error",
|
|
1547
|
+
"action_type",
|
|
1548
|
+
"result"
|
|
1549
|
+
],
|
|
1550
|
+
type: "object"
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
description: "Setting HVAC to heat mode failed.",
|
|
1554
|
+
properties: {
|
|
1555
|
+
action_attempt_id: {
|
|
1556
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1557
|
+
format: "uuid",
|
|
1558
|
+
type: "string"
|
|
1559
|
+
},
|
|
1560
|
+
action_type: { enum: ["SET_HEAT"], type: "string" },
|
|
1561
|
+
error: {
|
|
1562
|
+
properties: {
|
|
1563
|
+
message: { type: "string" },
|
|
1564
|
+
type: { type: "string" }
|
|
1565
|
+
},
|
|
1566
|
+
required: ["type", "message"],
|
|
1567
|
+
type: "object"
|
|
1568
|
+
},
|
|
1569
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1570
|
+
status: { enum: ["error"], type: "string" }
|
|
1571
|
+
},
|
|
1572
|
+
required: [
|
|
1573
|
+
"action_attempt_id",
|
|
1574
|
+
"status",
|
|
1575
|
+
"result",
|
|
1576
|
+
"action_type",
|
|
1577
|
+
"error"
|
|
1578
|
+
],
|
|
1579
|
+
type: "object"
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
description: "Setting HVAC to heat-cool mode.",
|
|
1583
|
+
properties: {
|
|
1584
|
+
action_attempt_id: {
|
|
1585
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1586
|
+
format: "uuid",
|
|
1587
|
+
type: "string"
|
|
1588
|
+
},
|
|
1589
|
+
action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
|
|
1590
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1591
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1592
|
+
status: { enum: ["pending"], type: "string" }
|
|
1593
|
+
},
|
|
1594
|
+
required: [
|
|
1595
|
+
"action_attempt_id",
|
|
1596
|
+
"status",
|
|
1597
|
+
"result",
|
|
1598
|
+
"error",
|
|
1599
|
+
"action_type"
|
|
1600
|
+
],
|
|
1601
|
+
type: "object"
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
description: "Setting HVAC to heat-cool mode succeeded.",
|
|
1605
|
+
properties: {
|
|
1606
|
+
action_attempt_id: {
|
|
1607
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1608
|
+
format: "uuid",
|
|
1609
|
+
type: "string"
|
|
1610
|
+
},
|
|
1611
|
+
action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
|
|
1612
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1613
|
+
result: { properties: {}, type: "object" },
|
|
1614
|
+
status: { enum: ["success"], type: "string" }
|
|
1615
|
+
},
|
|
1616
|
+
required: [
|
|
1617
|
+
"action_attempt_id",
|
|
1618
|
+
"status",
|
|
1619
|
+
"error",
|
|
1620
|
+
"action_type",
|
|
1621
|
+
"result"
|
|
1622
|
+
],
|
|
1623
|
+
type: "object"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
description: "Setting heat-cool mode failed.",
|
|
1627
|
+
properties: {
|
|
1628
|
+
action_attempt_id: {
|
|
1629
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1630
|
+
format: "uuid",
|
|
1631
|
+
type: "string"
|
|
1632
|
+
},
|
|
1633
|
+
action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
|
|
1634
|
+
error: {
|
|
1635
|
+
properties: {
|
|
1636
|
+
message: { type: "string" },
|
|
1637
|
+
type: { type: "string" }
|
|
1638
|
+
},
|
|
1639
|
+
required: ["type", "message"],
|
|
1640
|
+
type: "object"
|
|
1641
|
+
},
|
|
1642
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1643
|
+
status: { enum: ["error"], type: "string" }
|
|
1644
|
+
},
|
|
1645
|
+
required: [
|
|
1646
|
+
"action_attempt_id",
|
|
1647
|
+
"status",
|
|
1648
|
+
"result",
|
|
1649
|
+
"action_type",
|
|
1650
|
+
"error"
|
|
1651
|
+
],
|
|
1652
|
+
type: "object"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
description: "Setting fan mode.",
|
|
1031
1656
|
properties: {
|
|
1032
|
-
action_attempt_id: {
|
|
1033
|
-
|
|
1657
|
+
action_attempt_id: {
|
|
1658
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1659
|
+
format: "uuid",
|
|
1660
|
+
type: "string"
|
|
1661
|
+
},
|
|
1662
|
+
action_type: { enum: ["SET_FAN_MODE"], type: "string" },
|
|
1034
1663
|
error: { format: "null", nullable: true, type: "string" },
|
|
1035
|
-
result: { nullable: true },
|
|
1036
|
-
status: { enum: ["
|
|
1664
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1665
|
+
status: { enum: ["pending"], type: "string" }
|
|
1037
1666
|
},
|
|
1038
|
-
required: [
|
|
1667
|
+
required: [
|
|
1668
|
+
"action_attempt_id",
|
|
1669
|
+
"status",
|
|
1670
|
+
"result",
|
|
1671
|
+
"error",
|
|
1672
|
+
"action_type"
|
|
1673
|
+
],
|
|
1039
1674
|
type: "object"
|
|
1040
1675
|
},
|
|
1041
1676
|
{
|
|
1677
|
+
description: "Setting fan mode succeeded.",
|
|
1042
1678
|
properties: {
|
|
1043
|
-
action_attempt_id: {
|
|
1044
|
-
|
|
1679
|
+
action_attempt_id: {
|
|
1680
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1681
|
+
format: "uuid",
|
|
1682
|
+
type: "string"
|
|
1683
|
+
},
|
|
1684
|
+
action_type: { enum: ["SET_FAN_MODE"], type: "string" },
|
|
1045
1685
|
error: { format: "null", nullable: true, type: "string" },
|
|
1046
|
-
result: {
|
|
1047
|
-
status: { enum: ["
|
|
1686
|
+
result: { properties: {}, type: "object" },
|
|
1687
|
+
status: { enum: ["success"], type: "string" }
|
|
1048
1688
|
},
|
|
1049
1689
|
required: [
|
|
1690
|
+
"action_attempt_id",
|
|
1050
1691
|
"status",
|
|
1692
|
+
"error",
|
|
1051
1693
|
"action_type",
|
|
1694
|
+
"result"
|
|
1695
|
+
],
|
|
1696
|
+
type: "object"
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
description: "Setting fan mode failed.",
|
|
1700
|
+
properties: {
|
|
1701
|
+
action_attempt_id: {
|
|
1702
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1703
|
+
format: "uuid",
|
|
1704
|
+
type: "string"
|
|
1705
|
+
},
|
|
1706
|
+
action_type: { enum: ["SET_FAN_MODE"], type: "string" },
|
|
1707
|
+
error: {
|
|
1708
|
+
properties: {
|
|
1709
|
+
message: { type: "string" },
|
|
1710
|
+
type: { type: "string" }
|
|
1711
|
+
},
|
|
1712
|
+
required: ["type", "message"],
|
|
1713
|
+
type: "object"
|
|
1714
|
+
},
|
|
1715
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1716
|
+
status: { enum: ["error"], type: "string" }
|
|
1717
|
+
},
|
|
1718
|
+
required: [
|
|
1052
1719
|
"action_attempt_id",
|
|
1720
|
+
"status",
|
|
1053
1721
|
"result",
|
|
1722
|
+
"action_type",
|
|
1054
1723
|
"error"
|
|
1055
1724
|
],
|
|
1056
1725
|
type: "object"
|
|
1057
1726
|
},
|
|
1058
1727
|
{
|
|
1728
|
+
description: "Turning HVAC off.",
|
|
1729
|
+
properties: {
|
|
1730
|
+
action_attempt_id: {
|
|
1731
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1732
|
+
format: "uuid",
|
|
1733
|
+
type: "string"
|
|
1734
|
+
},
|
|
1735
|
+
action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
|
|
1736
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1737
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1738
|
+
status: { enum: ["pending"], type: "string" }
|
|
1739
|
+
},
|
|
1740
|
+
required: [
|
|
1741
|
+
"action_attempt_id",
|
|
1742
|
+
"status",
|
|
1743
|
+
"result",
|
|
1744
|
+
"error",
|
|
1745
|
+
"action_type"
|
|
1746
|
+
],
|
|
1747
|
+
type: "object"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
description: "Turning HVAC off succeeded.",
|
|
1751
|
+
properties: {
|
|
1752
|
+
action_attempt_id: {
|
|
1753
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1754
|
+
format: "uuid",
|
|
1755
|
+
type: "string"
|
|
1756
|
+
},
|
|
1757
|
+
action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
|
|
1758
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1759
|
+
result: { properties: {}, type: "object" },
|
|
1760
|
+
status: { enum: ["success"], type: "string" }
|
|
1761
|
+
},
|
|
1762
|
+
required: [
|
|
1763
|
+
"action_attempt_id",
|
|
1764
|
+
"status",
|
|
1765
|
+
"error",
|
|
1766
|
+
"action_type",
|
|
1767
|
+
"result"
|
|
1768
|
+
],
|
|
1769
|
+
type: "object"
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
description: "Turning HVAC off failed.",
|
|
1059
1773
|
properties: {
|
|
1060
|
-
action_attempt_id: {
|
|
1061
|
-
|
|
1774
|
+
action_attempt_id: {
|
|
1775
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1776
|
+
format: "uuid",
|
|
1777
|
+
type: "string"
|
|
1778
|
+
},
|
|
1779
|
+
action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
|
|
1062
1780
|
error: {
|
|
1063
1781
|
properties: {
|
|
1064
1782
|
message: { type: "string" },
|
|
@@ -1071,10 +1789,10 @@ var openapi_default = {
|
|
|
1071
1789
|
status: { enum: ["error"], type: "string" }
|
|
1072
1790
|
},
|
|
1073
1791
|
required: [
|
|
1074
|
-
"status",
|
|
1075
|
-
"action_type",
|
|
1076
1792
|
"action_attempt_id",
|
|
1793
|
+
"status",
|
|
1077
1794
|
"result",
|
|
1795
|
+
"action_type",
|
|
1078
1796
|
"error"
|
|
1079
1797
|
],
|
|
1080
1798
|
type: "object"
|
|
@@ -1470,7 +2188,7 @@ var openapi_default = {
|
|
|
1470
2188
|
model: {
|
|
1471
2189
|
properties: {
|
|
1472
2190
|
accessory_keypad_supported: {
|
|
1473
|
-
description: "
|
|
2191
|
+
description: "\n ---\n deprecated: use device.properties.model.can_connect_accessory_keypad\n ---\n ",
|
|
1474
2192
|
type: "boolean"
|
|
1475
2193
|
},
|
|
1476
2194
|
can_connect_accessory_keypad: {
|
|
@@ -1529,7 +2247,7 @@ var openapi_default = {
|
|
|
1529
2247
|
type: "string"
|
|
1530
2248
|
},
|
|
1531
2249
|
supports_accessory_keypad: {
|
|
1532
|
-
description: "\n ---\n deprecated: use model.
|
|
2250
|
+
description: "\n ---\n deprecated: use device.properties.model.can_connect_accessory_keypad\n ---\n ",
|
|
1533
2251
|
type: "boolean"
|
|
1534
2252
|
},
|
|
1535
2253
|
supports_offline_access_codes: {
|
|
@@ -3012,7 +3730,7 @@ var openapi_default = {
|
|
|
3012
3730
|
model: {
|
|
3013
3731
|
properties: {
|
|
3014
3732
|
accessory_keypad_supported: {
|
|
3015
|
-
description: "
|
|
3733
|
+
description: "\n ---\n deprecated: use device.properties.model.can_connect_accessory_keypad\n ---\n ",
|
|
3016
3734
|
type: "boolean"
|
|
3017
3735
|
},
|
|
3018
3736
|
can_connect_accessory_keypad: {
|
|
@@ -3248,7 +3966,91 @@ var openapi_default = {
|
|
|
3248
3966
|
properties: {
|
|
3249
3967
|
access_code: { $ref: "#/components/schemas/access_code" },
|
|
3250
3968
|
action_attempt: {
|
|
3251
|
-
|
|
3969
|
+
discriminator: { propertyName: "status" },
|
|
3970
|
+
oneOf: [
|
|
3971
|
+
{
|
|
3972
|
+
properties: {
|
|
3973
|
+
action_attempt_id: {
|
|
3974
|
+
format: "uuid",
|
|
3975
|
+
type: "string"
|
|
3976
|
+
},
|
|
3977
|
+
action_type: { type: "string" },
|
|
3978
|
+
error: {
|
|
3979
|
+
format: "null",
|
|
3980
|
+
nullable: true,
|
|
3981
|
+
type: "string"
|
|
3982
|
+
},
|
|
3983
|
+
result: { nullable: true },
|
|
3984
|
+
status: { enum: ["success"], type: "string" }
|
|
3985
|
+
},
|
|
3986
|
+
required: [
|
|
3987
|
+
"status",
|
|
3988
|
+
"action_type",
|
|
3989
|
+
"action_attempt_id",
|
|
3990
|
+
"error"
|
|
3991
|
+
],
|
|
3992
|
+
type: "object"
|
|
3993
|
+
},
|
|
3994
|
+
{
|
|
3995
|
+
properties: {
|
|
3996
|
+
action_attempt_id: {
|
|
3997
|
+
format: "uuid",
|
|
3998
|
+
type: "string"
|
|
3999
|
+
},
|
|
4000
|
+
action_type: { type: "string" },
|
|
4001
|
+
error: {
|
|
4002
|
+
format: "null",
|
|
4003
|
+
nullable: true,
|
|
4004
|
+
type: "string"
|
|
4005
|
+
},
|
|
4006
|
+
result: {
|
|
4007
|
+
format: "null",
|
|
4008
|
+
nullable: true,
|
|
4009
|
+
type: "string"
|
|
4010
|
+
},
|
|
4011
|
+
status: { enum: ["pending"], type: "string" }
|
|
4012
|
+
},
|
|
4013
|
+
required: [
|
|
4014
|
+
"status",
|
|
4015
|
+
"action_type",
|
|
4016
|
+
"action_attempt_id",
|
|
4017
|
+
"result",
|
|
4018
|
+
"error"
|
|
4019
|
+
],
|
|
4020
|
+
type: "object"
|
|
4021
|
+
},
|
|
4022
|
+
{
|
|
4023
|
+
properties: {
|
|
4024
|
+
action_attempt_id: {
|
|
4025
|
+
format: "uuid",
|
|
4026
|
+
type: "string"
|
|
4027
|
+
},
|
|
4028
|
+
action_type: { type: "string" },
|
|
4029
|
+
error: {
|
|
4030
|
+
properties: {
|
|
4031
|
+
message: { type: "string" },
|
|
4032
|
+
type: { type: "string" }
|
|
4033
|
+
},
|
|
4034
|
+
required: ["type", "message"],
|
|
4035
|
+
type: "object"
|
|
4036
|
+
},
|
|
4037
|
+
result: {
|
|
4038
|
+
format: "null",
|
|
4039
|
+
nullable: true,
|
|
4040
|
+
type: "string"
|
|
4041
|
+
},
|
|
4042
|
+
status: { enum: ["error"], type: "string" }
|
|
4043
|
+
},
|
|
4044
|
+
required: [
|
|
4045
|
+
"status",
|
|
4046
|
+
"action_type",
|
|
4047
|
+
"action_attempt_id",
|
|
4048
|
+
"result",
|
|
4049
|
+
"error"
|
|
4050
|
+
],
|
|
4051
|
+
type: "object"
|
|
4052
|
+
}
|
|
4053
|
+
]
|
|
3252
4054
|
},
|
|
3253
4055
|
ok: { type: "boolean" }
|
|
3254
4056
|
},
|
|
@@ -3466,7 +4268,91 @@ var openapi_default = {
|
|
|
3466
4268
|
schema: {
|
|
3467
4269
|
properties: {
|
|
3468
4270
|
action_attempt: {
|
|
3469
|
-
|
|
4271
|
+
discriminator: { propertyName: "status" },
|
|
4272
|
+
oneOf: [
|
|
4273
|
+
{
|
|
4274
|
+
properties: {
|
|
4275
|
+
action_attempt_id: {
|
|
4276
|
+
format: "uuid",
|
|
4277
|
+
type: "string"
|
|
4278
|
+
},
|
|
4279
|
+
action_type: { type: "string" },
|
|
4280
|
+
error: {
|
|
4281
|
+
format: "null",
|
|
4282
|
+
nullable: true,
|
|
4283
|
+
type: "string"
|
|
4284
|
+
},
|
|
4285
|
+
result: { nullable: true },
|
|
4286
|
+
status: { enum: ["success"], type: "string" }
|
|
4287
|
+
},
|
|
4288
|
+
required: [
|
|
4289
|
+
"status",
|
|
4290
|
+
"action_type",
|
|
4291
|
+
"action_attempt_id",
|
|
4292
|
+
"error"
|
|
4293
|
+
],
|
|
4294
|
+
type: "object"
|
|
4295
|
+
},
|
|
4296
|
+
{
|
|
4297
|
+
properties: {
|
|
4298
|
+
action_attempt_id: {
|
|
4299
|
+
format: "uuid",
|
|
4300
|
+
type: "string"
|
|
4301
|
+
},
|
|
4302
|
+
action_type: { type: "string" },
|
|
4303
|
+
error: {
|
|
4304
|
+
format: "null",
|
|
4305
|
+
nullable: true,
|
|
4306
|
+
type: "string"
|
|
4307
|
+
},
|
|
4308
|
+
result: {
|
|
4309
|
+
format: "null",
|
|
4310
|
+
nullable: true,
|
|
4311
|
+
type: "string"
|
|
4312
|
+
},
|
|
4313
|
+
status: { enum: ["pending"], type: "string" }
|
|
4314
|
+
},
|
|
4315
|
+
required: [
|
|
4316
|
+
"status",
|
|
4317
|
+
"action_type",
|
|
4318
|
+
"action_attempt_id",
|
|
4319
|
+
"result",
|
|
4320
|
+
"error"
|
|
4321
|
+
],
|
|
4322
|
+
type: "object"
|
|
4323
|
+
},
|
|
4324
|
+
{
|
|
4325
|
+
properties: {
|
|
4326
|
+
action_attempt_id: {
|
|
4327
|
+
format: "uuid",
|
|
4328
|
+
type: "string"
|
|
4329
|
+
},
|
|
4330
|
+
action_type: { type: "string" },
|
|
4331
|
+
error: {
|
|
4332
|
+
properties: {
|
|
4333
|
+
message: { type: "string" },
|
|
4334
|
+
type: { type: "string" }
|
|
4335
|
+
},
|
|
4336
|
+
required: ["type", "message"],
|
|
4337
|
+
type: "object"
|
|
4338
|
+
},
|
|
4339
|
+
result: {
|
|
4340
|
+
format: "null",
|
|
4341
|
+
nullable: true,
|
|
4342
|
+
type: "string"
|
|
4343
|
+
},
|
|
4344
|
+
status: { enum: ["error"], type: "string" }
|
|
4345
|
+
},
|
|
4346
|
+
required: [
|
|
4347
|
+
"status",
|
|
4348
|
+
"action_type",
|
|
4349
|
+
"action_attempt_id",
|
|
4350
|
+
"result",
|
|
4351
|
+
"error"
|
|
4352
|
+
],
|
|
4353
|
+
type: "object"
|
|
4354
|
+
}
|
|
4355
|
+
]
|
|
3470
4356
|
},
|
|
3471
4357
|
ok: { type: "boolean" }
|
|
3472
4358
|
},
|
|
@@ -3868,7 +4754,91 @@ var openapi_default = {
|
|
|
3868
4754
|
schema: {
|
|
3869
4755
|
properties: {
|
|
3870
4756
|
action_attempt: {
|
|
3871
|
-
|
|
4757
|
+
discriminator: { propertyName: "status" },
|
|
4758
|
+
oneOf: [
|
|
4759
|
+
{
|
|
4760
|
+
properties: {
|
|
4761
|
+
action_attempt_id: {
|
|
4762
|
+
format: "uuid",
|
|
4763
|
+
type: "string"
|
|
4764
|
+
},
|
|
4765
|
+
action_type: { type: "string" },
|
|
4766
|
+
error: {
|
|
4767
|
+
format: "null",
|
|
4768
|
+
nullable: true,
|
|
4769
|
+
type: "string"
|
|
4770
|
+
},
|
|
4771
|
+
result: { nullable: true },
|
|
4772
|
+
status: { enum: ["success"], type: "string" }
|
|
4773
|
+
},
|
|
4774
|
+
required: [
|
|
4775
|
+
"status",
|
|
4776
|
+
"action_type",
|
|
4777
|
+
"action_attempt_id",
|
|
4778
|
+
"error"
|
|
4779
|
+
],
|
|
4780
|
+
type: "object"
|
|
4781
|
+
},
|
|
4782
|
+
{
|
|
4783
|
+
properties: {
|
|
4784
|
+
action_attempt_id: {
|
|
4785
|
+
format: "uuid",
|
|
4786
|
+
type: "string"
|
|
4787
|
+
},
|
|
4788
|
+
action_type: { type: "string" },
|
|
4789
|
+
error: {
|
|
4790
|
+
format: "null",
|
|
4791
|
+
nullable: true,
|
|
4792
|
+
type: "string"
|
|
4793
|
+
},
|
|
4794
|
+
result: {
|
|
4795
|
+
format: "null",
|
|
4796
|
+
nullable: true,
|
|
4797
|
+
type: "string"
|
|
4798
|
+
},
|
|
4799
|
+
status: { enum: ["pending"], type: "string" }
|
|
4800
|
+
},
|
|
4801
|
+
required: [
|
|
4802
|
+
"status",
|
|
4803
|
+
"action_type",
|
|
4804
|
+
"action_attempt_id",
|
|
4805
|
+
"result",
|
|
4806
|
+
"error"
|
|
4807
|
+
],
|
|
4808
|
+
type: "object"
|
|
4809
|
+
},
|
|
4810
|
+
{
|
|
4811
|
+
properties: {
|
|
4812
|
+
action_attempt_id: {
|
|
4813
|
+
format: "uuid",
|
|
4814
|
+
type: "string"
|
|
4815
|
+
},
|
|
4816
|
+
action_type: { type: "string" },
|
|
4817
|
+
error: {
|
|
4818
|
+
properties: {
|
|
4819
|
+
message: { type: "string" },
|
|
4820
|
+
type: { type: "string" }
|
|
4821
|
+
},
|
|
4822
|
+
required: ["type", "message"],
|
|
4823
|
+
type: "object"
|
|
4824
|
+
},
|
|
4825
|
+
result: {
|
|
4826
|
+
format: "null",
|
|
4827
|
+
nullable: true,
|
|
4828
|
+
type: "string"
|
|
4829
|
+
},
|
|
4830
|
+
status: { enum: ["error"], type: "string" }
|
|
4831
|
+
},
|
|
4832
|
+
required: [
|
|
4833
|
+
"status",
|
|
4834
|
+
"action_type",
|
|
4835
|
+
"action_attempt_id",
|
|
4836
|
+
"result",
|
|
4837
|
+
"error"
|
|
4838
|
+
],
|
|
4839
|
+
type: "object"
|
|
4840
|
+
}
|
|
4841
|
+
]
|
|
3872
4842
|
},
|
|
3873
4843
|
ok: { type: "boolean" }
|
|
3874
4844
|
},
|
|
@@ -4144,7 +5114,91 @@ var openapi_default = {
|
|
|
4144
5114
|
schema: {
|
|
4145
5115
|
properties: {
|
|
4146
5116
|
action_attempt: {
|
|
4147
|
-
|
|
5117
|
+
discriminator: { propertyName: "status" },
|
|
5118
|
+
oneOf: [
|
|
5119
|
+
{
|
|
5120
|
+
properties: {
|
|
5121
|
+
action_attempt_id: {
|
|
5122
|
+
format: "uuid",
|
|
5123
|
+
type: "string"
|
|
5124
|
+
},
|
|
5125
|
+
action_type: { type: "string" },
|
|
5126
|
+
error: {
|
|
5127
|
+
format: "null",
|
|
5128
|
+
nullable: true,
|
|
5129
|
+
type: "string"
|
|
5130
|
+
},
|
|
5131
|
+
result: { nullable: true },
|
|
5132
|
+
status: { enum: ["success"], type: "string" }
|
|
5133
|
+
},
|
|
5134
|
+
required: [
|
|
5135
|
+
"status",
|
|
5136
|
+
"action_type",
|
|
5137
|
+
"action_attempt_id",
|
|
5138
|
+
"error"
|
|
5139
|
+
],
|
|
5140
|
+
type: "object"
|
|
5141
|
+
},
|
|
5142
|
+
{
|
|
5143
|
+
properties: {
|
|
5144
|
+
action_attempt_id: {
|
|
5145
|
+
format: "uuid",
|
|
5146
|
+
type: "string"
|
|
5147
|
+
},
|
|
5148
|
+
action_type: { type: "string" },
|
|
5149
|
+
error: {
|
|
5150
|
+
format: "null",
|
|
5151
|
+
nullable: true,
|
|
5152
|
+
type: "string"
|
|
5153
|
+
},
|
|
5154
|
+
result: {
|
|
5155
|
+
format: "null",
|
|
5156
|
+
nullable: true,
|
|
5157
|
+
type: "string"
|
|
5158
|
+
},
|
|
5159
|
+
status: { enum: ["pending"], type: "string" }
|
|
5160
|
+
},
|
|
5161
|
+
required: [
|
|
5162
|
+
"status",
|
|
5163
|
+
"action_type",
|
|
5164
|
+
"action_attempt_id",
|
|
5165
|
+
"result",
|
|
5166
|
+
"error"
|
|
5167
|
+
],
|
|
5168
|
+
type: "object"
|
|
5169
|
+
},
|
|
5170
|
+
{
|
|
5171
|
+
properties: {
|
|
5172
|
+
action_attempt_id: {
|
|
5173
|
+
format: "uuid",
|
|
5174
|
+
type: "string"
|
|
5175
|
+
},
|
|
5176
|
+
action_type: { type: "string" },
|
|
5177
|
+
error: {
|
|
5178
|
+
properties: {
|
|
5179
|
+
message: { type: "string" },
|
|
5180
|
+
type: { type: "string" }
|
|
5181
|
+
},
|
|
5182
|
+
required: ["type", "message"],
|
|
5183
|
+
type: "object"
|
|
5184
|
+
},
|
|
5185
|
+
result: {
|
|
5186
|
+
format: "null",
|
|
5187
|
+
nullable: true,
|
|
5188
|
+
type: "string"
|
|
5189
|
+
},
|
|
5190
|
+
status: { enum: ["error"], type: "string" }
|
|
5191
|
+
},
|
|
5192
|
+
required: [
|
|
5193
|
+
"status",
|
|
5194
|
+
"action_type",
|
|
5195
|
+
"action_attempt_id",
|
|
5196
|
+
"result",
|
|
5197
|
+
"error"
|
|
5198
|
+
],
|
|
5199
|
+
type: "object"
|
|
5200
|
+
}
|
|
5201
|
+
]
|
|
4148
5202
|
},
|
|
4149
5203
|
ok: { type: "boolean" }
|
|
4150
5204
|
},
|
|
@@ -4219,7 +5273,91 @@ var openapi_default = {
|
|
|
4219
5273
|
schema: {
|
|
4220
5274
|
properties: {
|
|
4221
5275
|
action_attempt: {
|
|
4222
|
-
|
|
5276
|
+
discriminator: { propertyName: "status" },
|
|
5277
|
+
oneOf: [
|
|
5278
|
+
{
|
|
5279
|
+
properties: {
|
|
5280
|
+
action_attempt_id: {
|
|
5281
|
+
format: "uuid",
|
|
5282
|
+
type: "string"
|
|
5283
|
+
},
|
|
5284
|
+
action_type: { type: "string" },
|
|
5285
|
+
error: {
|
|
5286
|
+
format: "null",
|
|
5287
|
+
nullable: true,
|
|
5288
|
+
type: "string"
|
|
5289
|
+
},
|
|
5290
|
+
result: { nullable: true },
|
|
5291
|
+
status: { enum: ["success"], type: "string" }
|
|
5292
|
+
},
|
|
5293
|
+
required: [
|
|
5294
|
+
"status",
|
|
5295
|
+
"action_type",
|
|
5296
|
+
"action_attempt_id",
|
|
5297
|
+
"error"
|
|
5298
|
+
],
|
|
5299
|
+
type: "object"
|
|
5300
|
+
},
|
|
5301
|
+
{
|
|
5302
|
+
properties: {
|
|
5303
|
+
action_attempt_id: {
|
|
5304
|
+
format: "uuid",
|
|
5305
|
+
type: "string"
|
|
5306
|
+
},
|
|
5307
|
+
action_type: { type: "string" },
|
|
5308
|
+
error: {
|
|
5309
|
+
format: "null",
|
|
5310
|
+
nullable: true,
|
|
5311
|
+
type: "string"
|
|
5312
|
+
},
|
|
5313
|
+
result: {
|
|
5314
|
+
format: "null",
|
|
5315
|
+
nullable: true,
|
|
5316
|
+
type: "string"
|
|
5317
|
+
},
|
|
5318
|
+
status: { enum: ["pending"], type: "string" }
|
|
5319
|
+
},
|
|
5320
|
+
required: [
|
|
5321
|
+
"status",
|
|
5322
|
+
"action_type",
|
|
5323
|
+
"action_attempt_id",
|
|
5324
|
+
"result",
|
|
5325
|
+
"error"
|
|
5326
|
+
],
|
|
5327
|
+
type: "object"
|
|
5328
|
+
},
|
|
5329
|
+
{
|
|
5330
|
+
properties: {
|
|
5331
|
+
action_attempt_id: {
|
|
5332
|
+
format: "uuid",
|
|
5333
|
+
type: "string"
|
|
5334
|
+
},
|
|
5335
|
+
action_type: { type: "string" },
|
|
5336
|
+
error: {
|
|
5337
|
+
properties: {
|
|
5338
|
+
message: { type: "string" },
|
|
5339
|
+
type: { type: "string" }
|
|
5340
|
+
},
|
|
5341
|
+
required: ["type", "message"],
|
|
5342
|
+
type: "object"
|
|
5343
|
+
},
|
|
5344
|
+
result: {
|
|
5345
|
+
format: "null",
|
|
5346
|
+
nullable: true,
|
|
5347
|
+
type: "string"
|
|
5348
|
+
},
|
|
5349
|
+
status: { enum: ["error"], type: "string" }
|
|
5350
|
+
},
|
|
5351
|
+
required: [
|
|
5352
|
+
"status",
|
|
5353
|
+
"action_type",
|
|
5354
|
+
"action_attempt_id",
|
|
5355
|
+
"result",
|
|
5356
|
+
"error"
|
|
5357
|
+
],
|
|
5358
|
+
type: "object"
|
|
5359
|
+
}
|
|
5360
|
+
]
|
|
4223
5361
|
},
|
|
4224
5362
|
ok: { type: "boolean" }
|
|
4225
5363
|
},
|
|
@@ -4295,7 +5433,91 @@ var openapi_default = {
|
|
|
4295
5433
|
schema: {
|
|
4296
5434
|
properties: {
|
|
4297
5435
|
action_attempt: {
|
|
4298
|
-
|
|
5436
|
+
discriminator: { propertyName: "status" },
|
|
5437
|
+
oneOf: [
|
|
5438
|
+
{
|
|
5439
|
+
properties: {
|
|
5440
|
+
action_attempt_id: {
|
|
5441
|
+
format: "uuid",
|
|
5442
|
+
type: "string"
|
|
5443
|
+
},
|
|
5444
|
+
action_type: { type: "string" },
|
|
5445
|
+
error: {
|
|
5446
|
+
format: "null",
|
|
5447
|
+
nullable: true,
|
|
5448
|
+
type: "string"
|
|
5449
|
+
},
|
|
5450
|
+
result: { nullable: true },
|
|
5451
|
+
status: { enum: ["success"], type: "string" }
|
|
5452
|
+
},
|
|
5453
|
+
required: [
|
|
5454
|
+
"status",
|
|
5455
|
+
"action_type",
|
|
5456
|
+
"action_attempt_id",
|
|
5457
|
+
"error"
|
|
5458
|
+
],
|
|
5459
|
+
type: "object"
|
|
5460
|
+
},
|
|
5461
|
+
{
|
|
5462
|
+
properties: {
|
|
5463
|
+
action_attempt_id: {
|
|
5464
|
+
format: "uuid",
|
|
5465
|
+
type: "string"
|
|
5466
|
+
},
|
|
5467
|
+
action_type: { type: "string" },
|
|
5468
|
+
error: {
|
|
5469
|
+
format: "null",
|
|
5470
|
+
nullable: true,
|
|
5471
|
+
type: "string"
|
|
5472
|
+
},
|
|
5473
|
+
result: {
|
|
5474
|
+
format: "null",
|
|
5475
|
+
nullable: true,
|
|
5476
|
+
type: "string"
|
|
5477
|
+
},
|
|
5478
|
+
status: { enum: ["pending"], type: "string" }
|
|
5479
|
+
},
|
|
5480
|
+
required: [
|
|
5481
|
+
"status",
|
|
5482
|
+
"action_type",
|
|
5483
|
+
"action_attempt_id",
|
|
5484
|
+
"result",
|
|
5485
|
+
"error"
|
|
5486
|
+
],
|
|
5487
|
+
type: "object"
|
|
5488
|
+
},
|
|
5489
|
+
{
|
|
5490
|
+
properties: {
|
|
5491
|
+
action_attempt_id: {
|
|
5492
|
+
format: "uuid",
|
|
5493
|
+
type: "string"
|
|
5494
|
+
},
|
|
5495
|
+
action_type: { type: "string" },
|
|
5496
|
+
error: {
|
|
5497
|
+
properties: {
|
|
5498
|
+
message: { type: "string" },
|
|
5499
|
+
type: { type: "string" }
|
|
5500
|
+
},
|
|
5501
|
+
required: ["type", "message"],
|
|
5502
|
+
type: "object"
|
|
5503
|
+
},
|
|
5504
|
+
result: {
|
|
5505
|
+
format: "null",
|
|
5506
|
+
nullable: true,
|
|
5507
|
+
type: "string"
|
|
5508
|
+
},
|
|
5509
|
+
status: { enum: ["error"], type: "string" }
|
|
5510
|
+
},
|
|
5511
|
+
required: [
|
|
5512
|
+
"status",
|
|
5513
|
+
"action_type",
|
|
5514
|
+
"action_attempt_id",
|
|
5515
|
+
"result",
|
|
5516
|
+
"error"
|
|
5517
|
+
],
|
|
5518
|
+
type: "object"
|
|
5519
|
+
}
|
|
5520
|
+
]
|
|
4299
5521
|
},
|
|
4300
5522
|
ok: { type: "boolean" }
|
|
4301
5523
|
},
|
|
@@ -6324,7 +7546,91 @@ var openapi_default = {
|
|
|
6324
7546
|
schema: {
|
|
6325
7547
|
properties: {
|
|
6326
7548
|
action_attempt: {
|
|
6327
|
-
|
|
7549
|
+
discriminator: { propertyName: "status" },
|
|
7550
|
+
oneOf: [
|
|
7551
|
+
{
|
|
7552
|
+
properties: {
|
|
7553
|
+
action_attempt_id: {
|
|
7554
|
+
format: "uuid",
|
|
7555
|
+
type: "string"
|
|
7556
|
+
},
|
|
7557
|
+
action_type: { type: "string" },
|
|
7558
|
+
error: {
|
|
7559
|
+
format: "null",
|
|
7560
|
+
nullable: true,
|
|
7561
|
+
type: "string"
|
|
7562
|
+
},
|
|
7563
|
+
result: { nullable: true },
|
|
7564
|
+
status: { enum: ["success"], type: "string" }
|
|
7565
|
+
},
|
|
7566
|
+
required: [
|
|
7567
|
+
"status",
|
|
7568
|
+
"action_type",
|
|
7569
|
+
"action_attempt_id",
|
|
7570
|
+
"error"
|
|
7571
|
+
],
|
|
7572
|
+
type: "object"
|
|
7573
|
+
},
|
|
7574
|
+
{
|
|
7575
|
+
properties: {
|
|
7576
|
+
action_attempt_id: {
|
|
7577
|
+
format: "uuid",
|
|
7578
|
+
type: "string"
|
|
7579
|
+
},
|
|
7580
|
+
action_type: { type: "string" },
|
|
7581
|
+
error: {
|
|
7582
|
+
format: "null",
|
|
7583
|
+
nullable: true,
|
|
7584
|
+
type: "string"
|
|
7585
|
+
},
|
|
7586
|
+
result: {
|
|
7587
|
+
format: "null",
|
|
7588
|
+
nullable: true,
|
|
7589
|
+
type: "string"
|
|
7590
|
+
},
|
|
7591
|
+
status: { enum: ["pending"], type: "string" }
|
|
7592
|
+
},
|
|
7593
|
+
required: [
|
|
7594
|
+
"status",
|
|
7595
|
+
"action_type",
|
|
7596
|
+
"action_attempt_id",
|
|
7597
|
+
"result",
|
|
7598
|
+
"error"
|
|
7599
|
+
],
|
|
7600
|
+
type: "object"
|
|
7601
|
+
},
|
|
7602
|
+
{
|
|
7603
|
+
properties: {
|
|
7604
|
+
action_attempt_id: {
|
|
7605
|
+
format: "uuid",
|
|
7606
|
+
type: "string"
|
|
7607
|
+
},
|
|
7608
|
+
action_type: { type: "string" },
|
|
7609
|
+
error: {
|
|
7610
|
+
properties: {
|
|
7611
|
+
message: { type: "string" },
|
|
7612
|
+
type: { type: "string" }
|
|
7613
|
+
},
|
|
7614
|
+
required: ["type", "message"],
|
|
7615
|
+
type: "object"
|
|
7616
|
+
},
|
|
7617
|
+
result: {
|
|
7618
|
+
format: "null",
|
|
7619
|
+
nullable: true,
|
|
7620
|
+
type: "string"
|
|
7621
|
+
},
|
|
7622
|
+
status: { enum: ["error"], type: "string" }
|
|
7623
|
+
},
|
|
7624
|
+
required: [
|
|
7625
|
+
"status",
|
|
7626
|
+
"action_type",
|
|
7627
|
+
"action_attempt_id",
|
|
7628
|
+
"result",
|
|
7629
|
+
"error"
|
|
7630
|
+
],
|
|
7631
|
+
type: "object"
|
|
7632
|
+
}
|
|
7633
|
+
]
|
|
6328
7634
|
},
|
|
6329
7635
|
ok: { type: "boolean" }
|
|
6330
7636
|
},
|
|
@@ -6377,7 +7683,93 @@ var openapi_default = {
|
|
|
6377
7683
|
schema: {
|
|
6378
7684
|
properties: {
|
|
6379
7685
|
action_attempts: {
|
|
6380
|
-
items: {
|
|
7686
|
+
items: {
|
|
7687
|
+
discriminator: { propertyName: "status" },
|
|
7688
|
+
oneOf: [
|
|
7689
|
+
{
|
|
7690
|
+
properties: {
|
|
7691
|
+
action_attempt_id: {
|
|
7692
|
+
format: "uuid",
|
|
7693
|
+
type: "string"
|
|
7694
|
+
},
|
|
7695
|
+
action_type: { type: "string" },
|
|
7696
|
+
error: {
|
|
7697
|
+
format: "null",
|
|
7698
|
+
nullable: true,
|
|
7699
|
+
type: "string"
|
|
7700
|
+
},
|
|
7701
|
+
result: { nullable: true },
|
|
7702
|
+
status: { enum: ["success"], type: "string" }
|
|
7703
|
+
},
|
|
7704
|
+
required: [
|
|
7705
|
+
"status",
|
|
7706
|
+
"action_type",
|
|
7707
|
+
"action_attempt_id",
|
|
7708
|
+
"error"
|
|
7709
|
+
],
|
|
7710
|
+
type: "object"
|
|
7711
|
+
},
|
|
7712
|
+
{
|
|
7713
|
+
properties: {
|
|
7714
|
+
action_attempt_id: {
|
|
7715
|
+
format: "uuid",
|
|
7716
|
+
type: "string"
|
|
7717
|
+
},
|
|
7718
|
+
action_type: { type: "string" },
|
|
7719
|
+
error: {
|
|
7720
|
+
format: "null",
|
|
7721
|
+
nullable: true,
|
|
7722
|
+
type: "string"
|
|
7723
|
+
},
|
|
7724
|
+
result: {
|
|
7725
|
+
format: "null",
|
|
7726
|
+
nullable: true,
|
|
7727
|
+
type: "string"
|
|
7728
|
+
},
|
|
7729
|
+
status: { enum: ["pending"], type: "string" }
|
|
7730
|
+
},
|
|
7731
|
+
required: [
|
|
7732
|
+
"status",
|
|
7733
|
+
"action_type",
|
|
7734
|
+
"action_attempt_id",
|
|
7735
|
+
"result",
|
|
7736
|
+
"error"
|
|
7737
|
+
],
|
|
7738
|
+
type: "object"
|
|
7739
|
+
},
|
|
7740
|
+
{
|
|
7741
|
+
properties: {
|
|
7742
|
+
action_attempt_id: {
|
|
7743
|
+
format: "uuid",
|
|
7744
|
+
type: "string"
|
|
7745
|
+
},
|
|
7746
|
+
action_type: { type: "string" },
|
|
7747
|
+
error: {
|
|
7748
|
+
properties: {
|
|
7749
|
+
message: { type: "string" },
|
|
7750
|
+
type: { type: "string" }
|
|
7751
|
+
},
|
|
7752
|
+
required: ["type", "message"],
|
|
7753
|
+
type: "object"
|
|
7754
|
+
},
|
|
7755
|
+
result: {
|
|
7756
|
+
format: "null",
|
|
7757
|
+
nullable: true,
|
|
7758
|
+
type: "string"
|
|
7759
|
+
},
|
|
7760
|
+
status: { enum: ["error"], type: "string" }
|
|
7761
|
+
},
|
|
7762
|
+
required: [
|
|
7763
|
+
"status",
|
|
7764
|
+
"action_type",
|
|
7765
|
+
"action_attempt_id",
|
|
7766
|
+
"result",
|
|
7767
|
+
"error"
|
|
7768
|
+
],
|
|
7769
|
+
type: "object"
|
|
7770
|
+
}
|
|
7771
|
+
]
|
|
7772
|
+
},
|
|
6381
7773
|
type: "array"
|
|
6382
7774
|
},
|
|
6383
7775
|
ok: { type: "boolean" }
|
|
@@ -9126,7 +10518,91 @@ var openapi_default = {
|
|
|
9126
10518
|
schema: {
|
|
9127
10519
|
properties: {
|
|
9128
10520
|
action_attempt: {
|
|
9129
|
-
|
|
10521
|
+
discriminator: { propertyName: "status" },
|
|
10522
|
+
oneOf: [
|
|
10523
|
+
{
|
|
10524
|
+
properties: {
|
|
10525
|
+
action_attempt_id: {
|
|
10526
|
+
format: "uuid",
|
|
10527
|
+
type: "string"
|
|
10528
|
+
},
|
|
10529
|
+
action_type: { type: "string" },
|
|
10530
|
+
error: {
|
|
10531
|
+
format: "null",
|
|
10532
|
+
nullable: true,
|
|
10533
|
+
type: "string"
|
|
10534
|
+
},
|
|
10535
|
+
result: { nullable: true },
|
|
10536
|
+
status: { enum: ["success"], type: "string" }
|
|
10537
|
+
},
|
|
10538
|
+
required: [
|
|
10539
|
+
"status",
|
|
10540
|
+
"action_type",
|
|
10541
|
+
"action_attempt_id",
|
|
10542
|
+
"error"
|
|
10543
|
+
],
|
|
10544
|
+
type: "object"
|
|
10545
|
+
},
|
|
10546
|
+
{
|
|
10547
|
+
properties: {
|
|
10548
|
+
action_attempt_id: {
|
|
10549
|
+
format: "uuid",
|
|
10550
|
+
type: "string"
|
|
10551
|
+
},
|
|
10552
|
+
action_type: { type: "string" },
|
|
10553
|
+
error: {
|
|
10554
|
+
format: "null",
|
|
10555
|
+
nullable: true,
|
|
10556
|
+
type: "string"
|
|
10557
|
+
},
|
|
10558
|
+
result: {
|
|
10559
|
+
format: "null",
|
|
10560
|
+
nullable: true,
|
|
10561
|
+
type: "string"
|
|
10562
|
+
},
|
|
10563
|
+
status: { enum: ["pending"], type: "string" }
|
|
10564
|
+
},
|
|
10565
|
+
required: [
|
|
10566
|
+
"status",
|
|
10567
|
+
"action_type",
|
|
10568
|
+
"action_attempt_id",
|
|
10569
|
+
"result",
|
|
10570
|
+
"error"
|
|
10571
|
+
],
|
|
10572
|
+
type: "object"
|
|
10573
|
+
},
|
|
10574
|
+
{
|
|
10575
|
+
properties: {
|
|
10576
|
+
action_attempt_id: {
|
|
10577
|
+
format: "uuid",
|
|
10578
|
+
type: "string"
|
|
10579
|
+
},
|
|
10580
|
+
action_type: { type: "string" },
|
|
10581
|
+
error: {
|
|
10582
|
+
properties: {
|
|
10583
|
+
message: { type: "string" },
|
|
10584
|
+
type: { type: "string" }
|
|
10585
|
+
},
|
|
10586
|
+
required: ["type", "message"],
|
|
10587
|
+
type: "object"
|
|
10588
|
+
},
|
|
10589
|
+
result: {
|
|
10590
|
+
format: "null",
|
|
10591
|
+
nullable: true,
|
|
10592
|
+
type: "string"
|
|
10593
|
+
},
|
|
10594
|
+
status: { enum: ["error"], type: "string" }
|
|
10595
|
+
},
|
|
10596
|
+
required: [
|
|
10597
|
+
"status",
|
|
10598
|
+
"action_type",
|
|
10599
|
+
"action_attempt_id",
|
|
10600
|
+
"result",
|
|
10601
|
+
"error"
|
|
10602
|
+
],
|
|
10603
|
+
type: "object"
|
|
10604
|
+
}
|
|
10605
|
+
]
|
|
9130
10606
|
},
|
|
9131
10607
|
noise_threshold: {
|
|
9132
10608
|
$ref: "#/components/schemas/noise_threshold"
|
|
@@ -9180,7 +10656,91 @@ var openapi_default = {
|
|
|
9180
10656
|
schema: {
|
|
9181
10657
|
properties: {
|
|
9182
10658
|
action_attempt: {
|
|
9183
|
-
|
|
10659
|
+
discriminator: { propertyName: "status" },
|
|
10660
|
+
oneOf: [
|
|
10661
|
+
{
|
|
10662
|
+
properties: {
|
|
10663
|
+
action_attempt_id: {
|
|
10664
|
+
format: "uuid",
|
|
10665
|
+
type: "string"
|
|
10666
|
+
},
|
|
10667
|
+
action_type: { type: "string" },
|
|
10668
|
+
error: {
|
|
10669
|
+
format: "null",
|
|
10670
|
+
nullable: true,
|
|
10671
|
+
type: "string"
|
|
10672
|
+
},
|
|
10673
|
+
result: { nullable: true },
|
|
10674
|
+
status: { enum: ["success"], type: "string" }
|
|
10675
|
+
},
|
|
10676
|
+
required: [
|
|
10677
|
+
"status",
|
|
10678
|
+
"action_type",
|
|
10679
|
+
"action_attempt_id",
|
|
10680
|
+
"error"
|
|
10681
|
+
],
|
|
10682
|
+
type: "object"
|
|
10683
|
+
},
|
|
10684
|
+
{
|
|
10685
|
+
properties: {
|
|
10686
|
+
action_attempt_id: {
|
|
10687
|
+
format: "uuid",
|
|
10688
|
+
type: "string"
|
|
10689
|
+
},
|
|
10690
|
+
action_type: { type: "string" },
|
|
10691
|
+
error: {
|
|
10692
|
+
format: "null",
|
|
10693
|
+
nullable: true,
|
|
10694
|
+
type: "string"
|
|
10695
|
+
},
|
|
10696
|
+
result: {
|
|
10697
|
+
format: "null",
|
|
10698
|
+
nullable: true,
|
|
10699
|
+
type: "string"
|
|
10700
|
+
},
|
|
10701
|
+
status: { enum: ["pending"], type: "string" }
|
|
10702
|
+
},
|
|
10703
|
+
required: [
|
|
10704
|
+
"status",
|
|
10705
|
+
"action_type",
|
|
10706
|
+
"action_attempt_id",
|
|
10707
|
+
"result",
|
|
10708
|
+
"error"
|
|
10709
|
+
],
|
|
10710
|
+
type: "object"
|
|
10711
|
+
},
|
|
10712
|
+
{
|
|
10713
|
+
properties: {
|
|
10714
|
+
action_attempt_id: {
|
|
10715
|
+
format: "uuid",
|
|
10716
|
+
type: "string"
|
|
10717
|
+
},
|
|
10718
|
+
action_type: { type: "string" },
|
|
10719
|
+
error: {
|
|
10720
|
+
properties: {
|
|
10721
|
+
message: { type: "string" },
|
|
10722
|
+
type: { type: "string" }
|
|
10723
|
+
},
|
|
10724
|
+
required: ["type", "message"],
|
|
10725
|
+
type: "object"
|
|
10726
|
+
},
|
|
10727
|
+
result: {
|
|
10728
|
+
format: "null",
|
|
10729
|
+
nullable: true,
|
|
10730
|
+
type: "string"
|
|
10731
|
+
},
|
|
10732
|
+
status: { enum: ["error"], type: "string" }
|
|
10733
|
+
},
|
|
10734
|
+
required: [
|
|
10735
|
+
"status",
|
|
10736
|
+
"action_type",
|
|
10737
|
+
"action_attempt_id",
|
|
10738
|
+
"result",
|
|
10739
|
+
"error"
|
|
10740
|
+
],
|
|
10741
|
+
type: "object"
|
|
10742
|
+
}
|
|
10743
|
+
]
|
|
9184
10744
|
},
|
|
9185
10745
|
ok: { type: "boolean" }
|
|
9186
10746
|
},
|
|
@@ -9335,7 +10895,91 @@ var openapi_default = {
|
|
|
9335
10895
|
schema: {
|
|
9336
10896
|
properties: {
|
|
9337
10897
|
action_attempt: {
|
|
9338
|
-
|
|
10898
|
+
discriminator: { propertyName: "status" },
|
|
10899
|
+
oneOf: [
|
|
10900
|
+
{
|
|
10901
|
+
properties: {
|
|
10902
|
+
action_attempt_id: {
|
|
10903
|
+
format: "uuid",
|
|
10904
|
+
type: "string"
|
|
10905
|
+
},
|
|
10906
|
+
action_type: { type: "string" },
|
|
10907
|
+
error: {
|
|
10908
|
+
format: "null",
|
|
10909
|
+
nullable: true,
|
|
10910
|
+
type: "string"
|
|
10911
|
+
},
|
|
10912
|
+
result: { nullable: true },
|
|
10913
|
+
status: { enum: ["success"], type: "string" }
|
|
10914
|
+
},
|
|
10915
|
+
required: [
|
|
10916
|
+
"status",
|
|
10917
|
+
"action_type",
|
|
10918
|
+
"action_attempt_id",
|
|
10919
|
+
"error"
|
|
10920
|
+
],
|
|
10921
|
+
type: "object"
|
|
10922
|
+
},
|
|
10923
|
+
{
|
|
10924
|
+
properties: {
|
|
10925
|
+
action_attempt_id: {
|
|
10926
|
+
format: "uuid",
|
|
10927
|
+
type: "string"
|
|
10928
|
+
},
|
|
10929
|
+
action_type: { type: "string" },
|
|
10930
|
+
error: {
|
|
10931
|
+
format: "null",
|
|
10932
|
+
nullable: true,
|
|
10933
|
+
type: "string"
|
|
10934
|
+
},
|
|
10935
|
+
result: {
|
|
10936
|
+
format: "null",
|
|
10937
|
+
nullable: true,
|
|
10938
|
+
type: "string"
|
|
10939
|
+
},
|
|
10940
|
+
status: { enum: ["pending"], type: "string" }
|
|
10941
|
+
},
|
|
10942
|
+
required: [
|
|
10943
|
+
"status",
|
|
10944
|
+
"action_type",
|
|
10945
|
+
"action_attempt_id",
|
|
10946
|
+
"result",
|
|
10947
|
+
"error"
|
|
10948
|
+
],
|
|
10949
|
+
type: "object"
|
|
10950
|
+
},
|
|
10951
|
+
{
|
|
10952
|
+
properties: {
|
|
10953
|
+
action_attempt_id: {
|
|
10954
|
+
format: "uuid",
|
|
10955
|
+
type: "string"
|
|
10956
|
+
},
|
|
10957
|
+
action_type: { type: "string" },
|
|
10958
|
+
error: {
|
|
10959
|
+
properties: {
|
|
10960
|
+
message: { type: "string" },
|
|
10961
|
+
type: { type: "string" }
|
|
10962
|
+
},
|
|
10963
|
+
required: ["type", "message"],
|
|
10964
|
+
type: "object"
|
|
10965
|
+
},
|
|
10966
|
+
result: {
|
|
10967
|
+
format: "null",
|
|
10968
|
+
nullable: true,
|
|
10969
|
+
type: "string"
|
|
10970
|
+
},
|
|
10971
|
+
status: { enum: ["error"], type: "string" }
|
|
10972
|
+
},
|
|
10973
|
+
required: [
|
|
10974
|
+
"status",
|
|
10975
|
+
"action_type",
|
|
10976
|
+
"action_attempt_id",
|
|
10977
|
+
"result",
|
|
10978
|
+
"error"
|
|
10979
|
+
],
|
|
10980
|
+
type: "object"
|
|
10981
|
+
}
|
|
10982
|
+
]
|
|
9339
10983
|
},
|
|
9340
10984
|
ok: { type: "boolean" }
|
|
9341
10985
|
},
|
|
@@ -9387,7 +11031,91 @@ var openapi_default = {
|
|
|
9387
11031
|
schema: {
|
|
9388
11032
|
properties: {
|
|
9389
11033
|
action_attempt: {
|
|
9390
|
-
|
|
11034
|
+
discriminator: { propertyName: "status" },
|
|
11035
|
+
oneOf: [
|
|
11036
|
+
{
|
|
11037
|
+
properties: {
|
|
11038
|
+
action_attempt_id: {
|
|
11039
|
+
format: "uuid",
|
|
11040
|
+
type: "string"
|
|
11041
|
+
},
|
|
11042
|
+
action_type: { type: "string" },
|
|
11043
|
+
error: {
|
|
11044
|
+
format: "null",
|
|
11045
|
+
nullable: true,
|
|
11046
|
+
type: "string"
|
|
11047
|
+
},
|
|
11048
|
+
result: { nullable: true },
|
|
11049
|
+
status: { enum: ["success"], type: "string" }
|
|
11050
|
+
},
|
|
11051
|
+
required: [
|
|
11052
|
+
"status",
|
|
11053
|
+
"action_type",
|
|
11054
|
+
"action_attempt_id",
|
|
11055
|
+
"error"
|
|
11056
|
+
],
|
|
11057
|
+
type: "object"
|
|
11058
|
+
},
|
|
11059
|
+
{
|
|
11060
|
+
properties: {
|
|
11061
|
+
action_attempt_id: {
|
|
11062
|
+
format: "uuid",
|
|
11063
|
+
type: "string"
|
|
11064
|
+
},
|
|
11065
|
+
action_type: { type: "string" },
|
|
11066
|
+
error: {
|
|
11067
|
+
format: "null",
|
|
11068
|
+
nullable: true,
|
|
11069
|
+
type: "string"
|
|
11070
|
+
},
|
|
11071
|
+
result: {
|
|
11072
|
+
format: "null",
|
|
11073
|
+
nullable: true,
|
|
11074
|
+
type: "string"
|
|
11075
|
+
},
|
|
11076
|
+
status: { enum: ["pending"], type: "string" }
|
|
11077
|
+
},
|
|
11078
|
+
required: [
|
|
11079
|
+
"status",
|
|
11080
|
+
"action_type",
|
|
11081
|
+
"action_attempt_id",
|
|
11082
|
+
"result",
|
|
11083
|
+
"error"
|
|
11084
|
+
],
|
|
11085
|
+
type: "object"
|
|
11086
|
+
},
|
|
11087
|
+
{
|
|
11088
|
+
properties: {
|
|
11089
|
+
action_attempt_id: {
|
|
11090
|
+
format: "uuid",
|
|
11091
|
+
type: "string"
|
|
11092
|
+
},
|
|
11093
|
+
action_type: { type: "string" },
|
|
11094
|
+
error: {
|
|
11095
|
+
properties: {
|
|
11096
|
+
message: { type: "string" },
|
|
11097
|
+
type: { type: "string" }
|
|
11098
|
+
},
|
|
11099
|
+
required: ["type", "message"],
|
|
11100
|
+
type: "object"
|
|
11101
|
+
},
|
|
11102
|
+
result: {
|
|
11103
|
+
format: "null",
|
|
11104
|
+
nullable: true,
|
|
11105
|
+
type: "string"
|
|
11106
|
+
},
|
|
11107
|
+
status: { enum: ["error"], type: "string" }
|
|
11108
|
+
},
|
|
11109
|
+
required: [
|
|
11110
|
+
"status",
|
|
11111
|
+
"action_type",
|
|
11112
|
+
"action_attempt_id",
|
|
11113
|
+
"result",
|
|
11114
|
+
"error"
|
|
11115
|
+
],
|
|
11116
|
+
type: "object"
|
|
11117
|
+
}
|
|
11118
|
+
]
|
|
9391
11119
|
},
|
|
9392
11120
|
ok: { type: "boolean" }
|
|
9393
11121
|
},
|
|
@@ -9440,7 +11168,91 @@ var openapi_default = {
|
|
|
9440
11168
|
schema: {
|
|
9441
11169
|
properties: {
|
|
9442
11170
|
action_attempt: {
|
|
9443
|
-
|
|
11171
|
+
discriminator: { propertyName: "status" },
|
|
11172
|
+
oneOf: [
|
|
11173
|
+
{
|
|
11174
|
+
properties: {
|
|
11175
|
+
action_attempt_id: {
|
|
11176
|
+
format: "uuid",
|
|
11177
|
+
type: "string"
|
|
11178
|
+
},
|
|
11179
|
+
action_type: { type: "string" },
|
|
11180
|
+
error: {
|
|
11181
|
+
format: "null",
|
|
11182
|
+
nullable: true,
|
|
11183
|
+
type: "string"
|
|
11184
|
+
},
|
|
11185
|
+
result: { nullable: true },
|
|
11186
|
+
status: { enum: ["success"], type: "string" }
|
|
11187
|
+
},
|
|
11188
|
+
required: [
|
|
11189
|
+
"status",
|
|
11190
|
+
"action_type",
|
|
11191
|
+
"action_attempt_id",
|
|
11192
|
+
"error"
|
|
11193
|
+
],
|
|
11194
|
+
type: "object"
|
|
11195
|
+
},
|
|
11196
|
+
{
|
|
11197
|
+
properties: {
|
|
11198
|
+
action_attempt_id: {
|
|
11199
|
+
format: "uuid",
|
|
11200
|
+
type: "string"
|
|
11201
|
+
},
|
|
11202
|
+
action_type: { type: "string" },
|
|
11203
|
+
error: {
|
|
11204
|
+
format: "null",
|
|
11205
|
+
nullable: true,
|
|
11206
|
+
type: "string"
|
|
11207
|
+
},
|
|
11208
|
+
result: {
|
|
11209
|
+
format: "null",
|
|
11210
|
+
nullable: true,
|
|
11211
|
+
type: "string"
|
|
11212
|
+
},
|
|
11213
|
+
status: { enum: ["pending"], type: "string" }
|
|
11214
|
+
},
|
|
11215
|
+
required: [
|
|
11216
|
+
"status",
|
|
11217
|
+
"action_type",
|
|
11218
|
+
"action_attempt_id",
|
|
11219
|
+
"result",
|
|
11220
|
+
"error"
|
|
11221
|
+
],
|
|
11222
|
+
type: "object"
|
|
11223
|
+
},
|
|
11224
|
+
{
|
|
11225
|
+
properties: {
|
|
11226
|
+
action_attempt_id: {
|
|
11227
|
+
format: "uuid",
|
|
11228
|
+
type: "string"
|
|
11229
|
+
},
|
|
11230
|
+
action_type: { type: "string" },
|
|
11231
|
+
error: {
|
|
11232
|
+
properties: {
|
|
11233
|
+
message: { type: "string" },
|
|
11234
|
+
type: { type: "string" }
|
|
11235
|
+
},
|
|
11236
|
+
required: ["type", "message"],
|
|
11237
|
+
type: "object"
|
|
11238
|
+
},
|
|
11239
|
+
result: {
|
|
11240
|
+
format: "null",
|
|
11241
|
+
nullable: true,
|
|
11242
|
+
type: "string"
|
|
11243
|
+
},
|
|
11244
|
+
status: { enum: ["error"], type: "string" }
|
|
11245
|
+
},
|
|
11246
|
+
required: [
|
|
11247
|
+
"status",
|
|
11248
|
+
"action_type",
|
|
11249
|
+
"action_attempt_id",
|
|
11250
|
+
"result",
|
|
11251
|
+
"error"
|
|
11252
|
+
],
|
|
11253
|
+
type: "object"
|
|
11254
|
+
}
|
|
11255
|
+
]
|
|
9444
11256
|
},
|
|
9445
11257
|
ok: { type: "boolean" }
|
|
9446
11258
|
},
|