@seamapi/types 1.176.0 → 1.177.1
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 +1390 -142
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +13104 -2318
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +1038 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +22 -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/deprecated.d.ts +485 -0
- package/lib/seam/connect/models/action-attempts/deprecated.js +108 -0
- package/lib/seam/connect/models/action-attempts/deprecated.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 +116 -4
- package/lib/seam/connect/openapi.js +999 -11
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +11960 -2324
- 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/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/deprecated.ts +122 -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 +1044 -11
- package/src/lib/seam/connect/route-types.ts +13034 -2684
- 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,355 @@ 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/deprecated.ts
|
|
43
|
+
var error = zod.z.object({
|
|
44
|
+
type: zod.z.string(),
|
|
45
|
+
message: zod.z.string()
|
|
46
|
+
});
|
|
47
|
+
var result = zod.z.any();
|
|
48
|
+
var sync_access_codes_action_attempt = zod.z.discriminatedUnion("status", [
|
|
49
|
+
common_pending_action_attempt.extend({
|
|
50
|
+
action_type: zod.z.literal("SYNC_ACCESS_CODES")
|
|
51
|
+
}),
|
|
52
|
+
common_succeeded_action_attempt.extend({
|
|
53
|
+
action_type: zod.z.literal("SYNC_ACCESS_CODES"),
|
|
54
|
+
result
|
|
55
|
+
}),
|
|
56
|
+
common_failed_action_attempt.extend({
|
|
57
|
+
action_type: zod.z.literal("SYNC_ACCESS_CODES"),
|
|
58
|
+
error
|
|
59
|
+
})
|
|
60
|
+
]);
|
|
61
|
+
var create_access_code_action_attempt = zod.z.discriminatedUnion("status", [
|
|
62
|
+
common_pending_action_attempt.extend({
|
|
63
|
+
action_type: zod.z.literal("CREATE_ACCESS_CODE")
|
|
64
|
+
}),
|
|
65
|
+
common_succeeded_action_attempt.extend({
|
|
66
|
+
action_type: zod.z.literal("CREATE_ACCESS_CODE"),
|
|
67
|
+
result
|
|
68
|
+
}),
|
|
69
|
+
common_failed_action_attempt.extend({
|
|
70
|
+
action_type: zod.z.literal("CREATE_ACCESS_CODE"),
|
|
71
|
+
error
|
|
72
|
+
})
|
|
73
|
+
]);
|
|
74
|
+
var delete_access_code_action_attempt = zod.z.discriminatedUnion("status", [
|
|
75
|
+
common_pending_action_attempt.extend({
|
|
76
|
+
action_type: zod.z.literal("DELETE_ACCESS_CODE")
|
|
77
|
+
}),
|
|
78
|
+
common_succeeded_action_attempt.extend({
|
|
79
|
+
action_type: zod.z.literal("DELETE_ACCESS_CODE"),
|
|
80
|
+
result
|
|
81
|
+
}),
|
|
82
|
+
common_failed_action_attempt.extend({
|
|
83
|
+
action_type: zod.z.literal("DELETE_ACCESS_CODE"),
|
|
84
|
+
error
|
|
85
|
+
})
|
|
86
|
+
]);
|
|
87
|
+
var update_access_code_action_attempt = zod.z.discriminatedUnion("status", [
|
|
88
|
+
common_pending_action_attempt.extend({
|
|
89
|
+
action_type: zod.z.literal("UPDATE_ACCESS_CODE")
|
|
90
|
+
}),
|
|
91
|
+
common_succeeded_action_attempt.extend({
|
|
92
|
+
action_type: zod.z.literal("UPDATE_ACCESS_CODE"),
|
|
93
|
+
result
|
|
94
|
+
}),
|
|
95
|
+
common_failed_action_attempt.extend({
|
|
96
|
+
action_type: zod.z.literal("UPDATE_ACCESS_CODE"),
|
|
97
|
+
error
|
|
98
|
+
})
|
|
99
|
+
]);
|
|
100
|
+
var create_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
|
|
101
|
+
common_pending_action_attempt.extend({
|
|
102
|
+
action_type: zod.z.literal("CREATE_NOISE_THRESHOLD")
|
|
103
|
+
}),
|
|
104
|
+
common_succeeded_action_attempt.extend({
|
|
105
|
+
action_type: zod.z.literal("CREATE_NOISE_THRESHOLD"),
|
|
106
|
+
result
|
|
107
|
+
}),
|
|
108
|
+
common_failed_action_attempt.extend({
|
|
109
|
+
action_type: zod.z.literal("CREATE_NOISE_THRESHOLD"),
|
|
110
|
+
error
|
|
111
|
+
})
|
|
112
|
+
]);
|
|
113
|
+
var delete_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
|
|
114
|
+
common_pending_action_attempt.extend({
|
|
115
|
+
action_type: zod.z.literal("DELETE_NOISE_THRESHOLD")
|
|
116
|
+
}),
|
|
117
|
+
common_succeeded_action_attempt.extend({
|
|
118
|
+
action_type: zod.z.literal("DELETE_NOISE_THRESHOLD"),
|
|
119
|
+
result
|
|
120
|
+
}),
|
|
121
|
+
common_failed_action_attempt.extend({
|
|
122
|
+
action_type: zod.z.literal("DELETE_NOISE_THRESHOLD"),
|
|
123
|
+
error
|
|
124
|
+
})
|
|
125
|
+
]);
|
|
126
|
+
var update_noise_threshold_action_attempt = zod.z.discriminatedUnion("status", [
|
|
127
|
+
common_pending_action_attempt.extend({
|
|
128
|
+
action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD")
|
|
129
|
+
}),
|
|
130
|
+
common_succeeded_action_attempt.extend({
|
|
131
|
+
action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD"),
|
|
132
|
+
result
|
|
133
|
+
}),
|
|
134
|
+
common_failed_action_attempt.extend({
|
|
135
|
+
action_type: zod.z.literal("UPDATE_NOISE_THRESHOLD"),
|
|
136
|
+
error
|
|
137
|
+
})
|
|
138
|
+
]);
|
|
139
|
+
var deprecated_action_attempts = [
|
|
140
|
+
...sync_access_codes_action_attempt.options,
|
|
141
|
+
...create_access_code_action_attempt.options,
|
|
142
|
+
...delete_access_code_action_attempt.options,
|
|
143
|
+
...update_access_code_action_attempt.options,
|
|
144
|
+
...create_noise_threshold_action_attempt.options,
|
|
145
|
+
...delete_noise_threshold_action_attempt.options,
|
|
146
|
+
...update_noise_threshold_action_attempt.options
|
|
147
|
+
];
|
|
148
|
+
var action_type = zod.z.literal("LOCK_DOOR");
|
|
149
|
+
var error2 = zod.z.object({
|
|
150
|
+
type: zod.z.string(),
|
|
151
|
+
message: zod.z.string()
|
|
152
|
+
});
|
|
153
|
+
var result2 = zod.z.object({});
|
|
154
|
+
var lock_door_action_attempt = zod.z.discriminatedUnion("status", [
|
|
155
|
+
common_pending_action_attempt.extend({
|
|
156
|
+
action_type
|
|
157
|
+
}).describe("Locking door."),
|
|
158
|
+
common_succeeded_action_attempt.extend({
|
|
159
|
+
action_type,
|
|
160
|
+
result: result2
|
|
161
|
+
}).describe("Locking door succeeded."),
|
|
162
|
+
common_failed_action_attempt.extend({ action_type, error: error2 }).describe("Locking door failed.")
|
|
163
|
+
]);
|
|
164
|
+
var action_type2 = zod.z.literal("RESET_SANDBOX_WORKSPACE");
|
|
165
|
+
var error3 = zod.z.object({
|
|
166
|
+
type: zod.z.string(),
|
|
167
|
+
message: zod.z.string()
|
|
168
|
+
});
|
|
169
|
+
var result3 = zod.z.object({});
|
|
170
|
+
var reset_sandbox_workspace_action_attempt = zod.z.discriminatedUnion(
|
|
171
|
+
"status",
|
|
172
|
+
[
|
|
173
|
+
common_pending_action_attempt.extend({
|
|
174
|
+
action_type: action_type2
|
|
175
|
+
}).describe("Resetting sandbox workspace."),
|
|
176
|
+
common_succeeded_action_attempt.extend({
|
|
177
|
+
action_type: action_type2,
|
|
178
|
+
result: result3
|
|
179
|
+
}).describe("Resetting sandbox workspace succeeded."),
|
|
180
|
+
common_failed_action_attempt.extend({
|
|
181
|
+
action_type: action_type2,
|
|
182
|
+
error: error3
|
|
183
|
+
}).describe("Resetting sandbox workspace failed.")
|
|
184
|
+
]
|
|
185
|
+
);
|
|
186
|
+
var action_type3 = zod.z.literal("SET_COOL");
|
|
187
|
+
var error4 = zod.z.object({
|
|
188
|
+
type: zod.z.string(),
|
|
189
|
+
message: zod.z.string()
|
|
190
|
+
});
|
|
191
|
+
var result4 = zod.z.object({});
|
|
192
|
+
var set_cool_action_attempt = zod.z.discriminatedUnion("status", [
|
|
193
|
+
common_pending_action_attempt.extend({
|
|
194
|
+
action_type: action_type3
|
|
195
|
+
}).describe("Setting HVAC to cool."),
|
|
196
|
+
common_succeeded_action_attempt.extend({
|
|
197
|
+
action_type: action_type3,
|
|
198
|
+
result: result4
|
|
199
|
+
}).describe("Setting HVAC to cool succeeded."),
|
|
200
|
+
common_failed_action_attempt.extend({ action_type: action_type3, error: error4 }).describe("Setting HVAC to cool failed.")
|
|
201
|
+
]);
|
|
202
|
+
var action_type4 = zod.z.literal("SET_FAN_MODE");
|
|
203
|
+
var error5 = zod.z.object({
|
|
204
|
+
type: zod.z.string(),
|
|
205
|
+
message: zod.z.string()
|
|
206
|
+
});
|
|
207
|
+
var result5 = zod.z.object({});
|
|
208
|
+
var set_fan_mode_action_attempt = zod.z.discriminatedUnion("status", [
|
|
209
|
+
common_pending_action_attempt.extend({
|
|
210
|
+
action_type: action_type4
|
|
211
|
+
}).describe("Setting fan mode."),
|
|
212
|
+
common_succeeded_action_attempt.extend({
|
|
213
|
+
action_type: action_type4,
|
|
214
|
+
result: result5
|
|
215
|
+
}).describe("Setting fan mode succeeded."),
|
|
216
|
+
common_failed_action_attempt.extend({ action_type: action_type4, error: error5 }).describe("Setting fan mode failed.")
|
|
217
|
+
]);
|
|
218
|
+
var action_type5 = zod.z.literal("SET_HEAT");
|
|
219
|
+
var error6 = zod.z.object({
|
|
220
|
+
type: zod.z.string(),
|
|
221
|
+
message: zod.z.string()
|
|
222
|
+
});
|
|
223
|
+
var result6 = zod.z.object({});
|
|
224
|
+
var set_heat_action_attempt = zod.z.discriminatedUnion("status", [
|
|
225
|
+
common_pending_action_attempt.extend({
|
|
226
|
+
action_type: action_type5
|
|
227
|
+
}).describe("Setting HVAC to heat mode."),
|
|
228
|
+
common_succeeded_action_attempt.extend({
|
|
229
|
+
action_type: action_type5,
|
|
230
|
+
result: result6
|
|
231
|
+
}).describe("Setting HVAC to heat mode succeeded."),
|
|
232
|
+
common_failed_action_attempt.extend({ action_type: action_type5, error: error6 }).describe("Setting HVAC to heat mode failed.")
|
|
233
|
+
]);
|
|
234
|
+
var action_type6 = zod.z.literal("SET_HEAT_COOL");
|
|
235
|
+
var error7 = zod.z.object({
|
|
236
|
+
type: zod.z.string(),
|
|
237
|
+
message: zod.z.string()
|
|
238
|
+
});
|
|
239
|
+
var result7 = zod.z.object({});
|
|
240
|
+
var set_heat_cool_action_attempt = zod.z.discriminatedUnion("status", [
|
|
241
|
+
common_pending_action_attempt.extend({
|
|
242
|
+
action_type: action_type6
|
|
243
|
+
}).describe("Setting HVAC to heat-cool mode."),
|
|
244
|
+
common_succeeded_action_attempt.extend({
|
|
245
|
+
action_type: action_type6,
|
|
246
|
+
result: result7
|
|
247
|
+
}).describe("Setting HVAC to heat-cool mode succeeded."),
|
|
248
|
+
common_failed_action_attempt.extend({ action_type: action_type6, error: error7 }).describe("Setting heat-cool mode failed.")
|
|
249
|
+
]);
|
|
250
|
+
var action_type7 = zod.z.literal("SET_THERMOSTAT_OFF");
|
|
251
|
+
var error8 = zod.z.object({
|
|
252
|
+
type: zod.z.string(),
|
|
253
|
+
message: zod.z.string()
|
|
254
|
+
});
|
|
255
|
+
var result8 = zod.z.object({});
|
|
256
|
+
var set_thermostat_off_action_attempt = zod.z.discriminatedUnion(
|
|
257
|
+
"status",
|
|
258
|
+
[
|
|
259
|
+
common_pending_action_attempt.extend({
|
|
260
|
+
action_type: action_type7
|
|
261
|
+
}).describe("Turning HVAC off."),
|
|
262
|
+
common_succeeded_action_attempt.extend({
|
|
263
|
+
action_type: action_type7,
|
|
264
|
+
result: result8
|
|
265
|
+
}).describe("Turning HVAC off succeeded."),
|
|
266
|
+
common_failed_action_attempt.extend({ action_type: action_type7, error: error8 }).describe("Turning HVAC off failed.")
|
|
267
|
+
]
|
|
268
|
+
);
|
|
269
|
+
var action_type8 = zod.z.literal("UNLOCK_DOOR");
|
|
270
|
+
var error9 = zod.z.object({
|
|
271
|
+
type: zod.z.string(),
|
|
272
|
+
message: zod.z.string()
|
|
273
|
+
});
|
|
274
|
+
var result9 = zod.z.object({});
|
|
275
|
+
var unlock_door_action_attempt = zod.z.discriminatedUnion("status", [
|
|
276
|
+
common_pending_action_attempt.extend({
|
|
277
|
+
action_type: action_type8
|
|
278
|
+
}).describe("Unlocking door."),
|
|
279
|
+
common_succeeded_action_attempt.extend({
|
|
280
|
+
action_type: action_type8,
|
|
281
|
+
result: result9
|
|
282
|
+
}).describe("Unlocking door succeeded."),
|
|
283
|
+
common_failed_action_attempt.extend({ action_type: action_type8, error: error9 }).describe("Unlocking door failed.")
|
|
284
|
+
]);
|
|
285
|
+
|
|
286
|
+
// src/lib/seam/connect/models/action-attempts/action-attempt.ts
|
|
287
|
+
var action_attempt = zod.z.union([
|
|
288
|
+
...lock_door_action_attempt.options,
|
|
289
|
+
...unlock_door_action_attempt.options,
|
|
290
|
+
...reset_sandbox_workspace_action_attempt.options,
|
|
291
|
+
...set_cool_action_attempt.options,
|
|
292
|
+
...set_heat_action_attempt.options,
|
|
293
|
+
...set_heat_cool_action_attempt.options,
|
|
294
|
+
...set_fan_mode_action_attempt.options,
|
|
295
|
+
...set_thermostat_off_action_attempt.options,
|
|
296
|
+
...deprecated_action_attempts
|
|
297
|
+
]);
|
|
298
|
+
zod.z.record(
|
|
299
|
+
zod.z.string().max(40),
|
|
300
|
+
zod.z.union([zod.z.string().max(500), zod.z.boolean(), zod.z.null()])
|
|
41
301
|
).refine((val) => Object.keys(val).length <= 50, {
|
|
42
302
|
message: "Custom metadata is limited to a maximum of 50 keys"
|
|
43
303
|
});
|
|
44
|
-
var custom_metadata =
|
|
45
|
-
|
|
46
|
-
|
|
304
|
+
var custom_metadata = zod.z.record(
|
|
305
|
+
zod.z.string(),
|
|
306
|
+
zod.z.union([zod.z.string(), zod.z.boolean()])
|
|
47
307
|
);
|
|
48
308
|
|
|
49
309
|
// src/lib/seam/connect/models/connect-webviews/connect-webview.ts
|
|
50
|
-
var connect_webview_device_selection_mode =
|
|
310
|
+
var connect_webview_device_selection_mode = zod.z.enum([
|
|
51
311
|
"none",
|
|
52
312
|
"single",
|
|
53
313
|
"multiple"
|
|
54
314
|
]);
|
|
55
|
-
var connect_webview =
|
|
56
|
-
connect_webview_id:
|
|
57
|
-
workspace_id:
|
|
58
|
-
created_at:
|
|
59
|
-
connected_account_id:
|
|
60
|
-
url:
|
|
315
|
+
var connect_webview = zod.z.object({
|
|
316
|
+
connect_webview_id: zod.z.string().uuid(),
|
|
317
|
+
workspace_id: zod.z.string().uuid(),
|
|
318
|
+
created_at: zod.z.string().datetime(),
|
|
319
|
+
connected_account_id: zod.z.string().uuid().nullable(),
|
|
320
|
+
url: zod.z.string().url(),
|
|
61
321
|
device_selection_mode: connect_webview_device_selection_mode,
|
|
62
322
|
// TODO: Use enum value.
|
|
63
|
-
accepted_providers:
|
|
64
|
-
accepted_devices:
|
|
323
|
+
accepted_providers: zod.z.array(zod.z.string()),
|
|
324
|
+
accepted_devices: zod.z.array(zod.z.string()).describe(
|
|
65
325
|
`
|
|
66
326
|
---
|
|
67
327
|
deprecated: Unused. Will be removed.
|
|
68
328
|
---
|
|
69
329
|
`
|
|
70
330
|
),
|
|
71
|
-
any_device_allowed:
|
|
331
|
+
any_device_allowed: zod.z.boolean().describe(
|
|
72
332
|
`
|
|
73
333
|
---
|
|
74
334
|
deprecated: Unused. Will be removed.
|
|
75
335
|
---
|
|
76
336
|
`
|
|
77
337
|
),
|
|
78
|
-
any_provider_allowed:
|
|
79
|
-
login_successful:
|
|
80
|
-
status:
|
|
81
|
-
custom_redirect_url:
|
|
82
|
-
custom_redirect_failure_url:
|
|
338
|
+
any_provider_allowed: zod.z.boolean(),
|
|
339
|
+
login_successful: zod.z.boolean(),
|
|
340
|
+
status: zod.z.enum(["pending", "failed", "authorized"]),
|
|
341
|
+
custom_redirect_url: zod.z.string().url().nullable(),
|
|
342
|
+
custom_redirect_failure_url: zod.z.string().url().nullable(),
|
|
83
343
|
custom_metadata,
|
|
84
|
-
automatically_manage_new_devices:
|
|
85
|
-
wait_for_device_creation:
|
|
86
|
-
authorized_at:
|
|
87
|
-
selected_provider:
|
|
344
|
+
automatically_manage_new_devices: zod.z.boolean(),
|
|
345
|
+
wait_for_device_creation: zod.z.boolean(),
|
|
346
|
+
authorized_at: zod.z.string().datetime().nullable(),
|
|
347
|
+
selected_provider: zod.z.string().nullable()
|
|
88
348
|
});
|
|
89
|
-
var common_event =
|
|
90
|
-
workspace_id:
|
|
349
|
+
var common_event = zod.z.object({
|
|
350
|
+
workspace_id: zod.z.string().uuid().describe(`
|
|
91
351
|
---
|
|
92
352
|
title: Workspace ID
|
|
93
353
|
---
|
|
94
354
|
The ID of the workspace.
|
|
95
355
|
`),
|
|
96
|
-
created_at:
|
|
356
|
+
created_at: zod.z.string().datetime().describe(`
|
|
97
357
|
---
|
|
98
358
|
title: Created At
|
|
99
359
|
---
|
|
100
360
|
The time when the event was created.
|
|
101
361
|
`),
|
|
102
|
-
occurred_at:
|
|
362
|
+
occurred_at: zod.z.string().datetime().describe(`
|
|
103
363
|
---
|
|
104
364
|
title: Occurred At
|
|
105
365
|
---
|
|
@@ -109,97 +369,97 @@ var common_event = z10__namespace.object({
|
|
|
109
369
|
|
|
110
370
|
// src/lib/seam/connect/models/events/access-codes.ts
|
|
111
371
|
var access_code_event = common_event.extend({
|
|
112
|
-
access_code_id:
|
|
372
|
+
access_code_id: zod.z.string().uuid().describe(`
|
|
113
373
|
---
|
|
114
374
|
title: Access Code ID
|
|
115
375
|
---
|
|
116
376
|
The ID of the access code.
|
|
117
377
|
`),
|
|
118
|
-
device_id:
|
|
378
|
+
device_id: zod.z.string().uuid().describe(`
|
|
119
379
|
---
|
|
120
380
|
title: Device ID
|
|
121
381
|
---
|
|
122
382
|
The ID of the device.
|
|
123
383
|
`),
|
|
124
|
-
connected_account_id:
|
|
384
|
+
connected_account_id: zod.z.string().uuid().describe(`
|
|
125
385
|
---
|
|
126
386
|
title: Connected Account ID
|
|
127
387
|
---
|
|
128
388
|
The ID of the connected account.
|
|
129
389
|
`)
|
|
130
390
|
});
|
|
131
|
-
var code =
|
|
391
|
+
var code = zod.z.string().describe(`
|
|
132
392
|
---
|
|
133
393
|
title: Access Code
|
|
134
394
|
---
|
|
135
395
|
The code of the access code.
|
|
136
396
|
`);
|
|
137
397
|
var access_code_created_event = access_code_event.extend({
|
|
138
|
-
event_type:
|
|
398
|
+
event_type: zod.z.literal("access_code.created")
|
|
139
399
|
}).describe("An access code was created.");
|
|
140
400
|
var access_code_changed_event = access_code_event.extend({
|
|
141
|
-
event_type:
|
|
401
|
+
event_type: zod.z.literal("access_code.changed")
|
|
142
402
|
}).describe("An access code was changed.");
|
|
143
403
|
var access_code_scheduled_on_device_event = access_code_event.extend({
|
|
144
|
-
event_type:
|
|
404
|
+
event_type: zod.z.literal("access_code.scheduled_on_device"),
|
|
145
405
|
code
|
|
146
406
|
}).describe("An access code was natively scheduled on a device.");
|
|
147
407
|
var access_code_set_on_device_event = access_code_event.extend({
|
|
148
|
-
event_type:
|
|
408
|
+
event_type: zod.z.literal("access_code.set_on_device"),
|
|
149
409
|
code
|
|
150
410
|
}).describe("An access code was set on a device.");
|
|
151
411
|
var access_code_removed_from_device_event = access_code_event.extend({
|
|
152
|
-
event_type:
|
|
412
|
+
event_type: zod.z.literal("access_code.removed_from_device")
|
|
153
413
|
}).describe("An access code was removed from a device.");
|
|
154
414
|
var access_code_delay_in_setting_on_device_event = access_code_event.extend({
|
|
155
|
-
event_type:
|
|
415
|
+
event_type: zod.z.literal("access_code.delay_in_setting_on_device")
|
|
156
416
|
}).describe(
|
|
157
417
|
"There was an unusually long delay in setting an access code on a device."
|
|
158
418
|
);
|
|
159
419
|
var access_code_failed_to_set_on_device_event = access_code_event.extend({
|
|
160
|
-
event_type:
|
|
420
|
+
event_type: zod.z.literal("access_code.failed_to_set_on_device")
|
|
161
421
|
}).describe("An access code failed to be set on a device.");
|
|
162
422
|
var access_code_deleted_event = access_code_event.extend({
|
|
163
|
-
event_type:
|
|
423
|
+
event_type: zod.z.literal("access_code.deleted"),
|
|
164
424
|
code: code.nullable()
|
|
165
425
|
}).describe("An access code was deleted.");
|
|
166
426
|
var access_code_delay_in_removing_from_device_event = access_code_event.extend({
|
|
167
|
-
event_type:
|
|
427
|
+
event_type: zod.z.literal("access_code.delay_in_removing_from_device")
|
|
168
428
|
}).describe(
|
|
169
429
|
"There was an unusually long delay in removing an access code from a device."
|
|
170
430
|
);
|
|
171
431
|
var access_code_failed_to_remove_from_device_event = access_code_event.extend({
|
|
172
|
-
event_type:
|
|
432
|
+
event_type: zod.z.literal("access_code.failed_to_remove_from_device")
|
|
173
433
|
}).describe("An access code failed to be removed from a device.");
|
|
174
434
|
var access_code_modified_external_to_seam_event = access_code_event.extend({
|
|
175
|
-
event_type:
|
|
435
|
+
event_type: zod.z.literal("access_code.modified_external_to_seam")
|
|
176
436
|
}).describe("An access code was modified external to Seam.");
|
|
177
437
|
var access_code_deleted_external_to_seam_event = access_code_event.extend({
|
|
178
|
-
event_type:
|
|
438
|
+
event_type: zod.z.literal("access_code.deleted_external_to_seam")
|
|
179
439
|
}).describe("An access code was deleted external to Seam.");
|
|
180
440
|
var access_code_backup_access_code_pulled_event = access_code_event.extend({
|
|
181
|
-
event_type:
|
|
182
|
-
backup_access_code_id:
|
|
441
|
+
event_type: zod.z.literal("access_code.backup_access_code_pulled"),
|
|
442
|
+
backup_access_code_id: zod.z.string()
|
|
183
443
|
}).describe(
|
|
184
444
|
"A backup access code was pulled from the backup access code pool and set on a device."
|
|
185
445
|
);
|
|
186
446
|
var unmanaged_access_code_converted_to_managed_event = access_code_event.extend({
|
|
187
|
-
event_type:
|
|
447
|
+
event_type: zod.z.literal("access_code.unmanaged.converted_to_managed")
|
|
188
448
|
}).describe(
|
|
189
449
|
"An unmanaged access code was successfully converted to a managed access code."
|
|
190
450
|
);
|
|
191
451
|
var unmanaged_access_code_failed_to_convert_to_managed_event = access_code_event.extend({
|
|
192
|
-
event_type:
|
|
452
|
+
event_type: zod.z.literal(
|
|
193
453
|
"access_code.unmanaged.failed_to_convert_to_managed"
|
|
194
454
|
)
|
|
195
455
|
}).describe(
|
|
196
456
|
"An unmanaged access code failed to be converted to a managed access code."
|
|
197
457
|
);
|
|
198
458
|
var unmanaged_access_code_created_event = access_code_event.extend({
|
|
199
|
-
event_type:
|
|
459
|
+
event_type: zod.z.literal("access_code.unmanaged.created")
|
|
200
460
|
}).describe("An unmanaged access code was created on a device.");
|
|
201
461
|
var unmanaged_access_code_removed_event = access_code_event.extend({
|
|
202
|
-
event_type:
|
|
462
|
+
event_type: zod.z.literal("access_code.unmanaged.removed")
|
|
203
463
|
}).describe("An unmanaged access code was removed from a device.");
|
|
204
464
|
var access_code_events = [
|
|
205
465
|
access_code_created_event,
|
|
@@ -221,13 +481,13 @@ var access_code_events = [
|
|
|
221
481
|
unmanaged_access_code_removed_event
|
|
222
482
|
];
|
|
223
483
|
var common_acs_event = common_event.extend({
|
|
224
|
-
connected_account_id:
|
|
484
|
+
connected_account_id: zod.z.string().uuid().describe(`
|
|
225
485
|
---
|
|
226
486
|
title: Connected Account ID
|
|
227
487
|
---
|
|
228
488
|
ID of the connected account.
|
|
229
489
|
`),
|
|
230
|
-
acs_system_id:
|
|
490
|
+
acs_system_id: zod.z.string().uuid().describe(`
|
|
231
491
|
---
|
|
232
492
|
title: ACS System ID
|
|
233
493
|
---
|
|
@@ -237,17 +497,17 @@ var common_acs_event = common_event.extend({
|
|
|
237
497
|
|
|
238
498
|
// src/lib/seam/connect/models/events/acs/credentials.ts
|
|
239
499
|
var acs_credential_event = common_acs_event.extend({
|
|
240
|
-
acs_credential_id:
|
|
500
|
+
acs_credential_id: zod.z.string().uuid()
|
|
241
501
|
});
|
|
242
502
|
var acs_credential_deleted_event = acs_credential_event.extend({
|
|
243
|
-
event_type:
|
|
503
|
+
event_type: zod.z.literal("acs_credential.deleted")
|
|
244
504
|
}).describe("An ACS credential was deleted.");
|
|
245
505
|
var acs_credential_events = [acs_credential_deleted_event];
|
|
246
506
|
var acs_user_event = common_acs_event.extend({
|
|
247
|
-
acs_user_id:
|
|
507
|
+
acs_user_id: zod.z.string().uuid()
|
|
248
508
|
});
|
|
249
509
|
var acs_user_deleted_event = acs_user_event.extend({
|
|
250
|
-
event_type:
|
|
510
|
+
event_type: zod.z.literal("acs_user.deleted")
|
|
251
511
|
}).describe("An ACS user was deleted.");
|
|
252
512
|
var acs_user_events = [acs_user_deleted_event];
|
|
253
513
|
|
|
@@ -257,7 +517,7 @@ var acs_events = [
|
|
|
257
517
|
...acs_user_events
|
|
258
518
|
];
|
|
259
519
|
var client_session_event = common_event.extend({
|
|
260
|
-
client_session_id:
|
|
520
|
+
client_session_id: zod.z.string().uuid().describe(`
|
|
261
521
|
---
|
|
262
522
|
title: Client Session ID
|
|
263
523
|
---
|
|
@@ -265,50 +525,50 @@ var client_session_event = common_event.extend({
|
|
|
265
525
|
`)
|
|
266
526
|
});
|
|
267
527
|
var client_session_deleted_event = client_session_event.extend({
|
|
268
|
-
event_type:
|
|
528
|
+
event_type: zod.z.literal("client_session.deleted")
|
|
269
529
|
}).describe("A client session was deleted.");
|
|
270
530
|
var client_session_events = [client_session_deleted_event];
|
|
271
531
|
var connected_account_event = common_event.extend({
|
|
272
|
-
connected_account_id:
|
|
532
|
+
connected_account_id: zod.z.string().uuid().describe(`
|
|
273
533
|
---
|
|
274
534
|
title: Connected Account ID
|
|
275
535
|
---
|
|
276
536
|
ID of the connected account.
|
|
277
537
|
`)
|
|
278
538
|
});
|
|
279
|
-
var connect_webview_id =
|
|
539
|
+
var connect_webview_id = zod.z.string().uuid().describe(`
|
|
280
540
|
---
|
|
281
541
|
title: Connect Webview ID
|
|
282
542
|
---
|
|
283
543
|
ID of the connect webview.
|
|
284
544
|
`);
|
|
285
545
|
var connected_account_connected_event = connected_account_event.extend({
|
|
286
|
-
event_type:
|
|
546
|
+
event_type: zod.z.literal("connected_account.connected"),
|
|
287
547
|
connect_webview_id
|
|
288
548
|
}).describe(
|
|
289
549
|
"A connected account was connected for the first time, was reconnected after being disconnected."
|
|
290
550
|
);
|
|
291
551
|
var connected_account_created_event = connected_account_event.extend({
|
|
292
|
-
event_type:
|
|
552
|
+
event_type: zod.z.literal("connected_account.created"),
|
|
293
553
|
connect_webview_id
|
|
294
554
|
}).describe("A connected account was created.");
|
|
295
555
|
var connected_account_successful_login_event = connected_account_event.extend({
|
|
296
|
-
event_type:
|
|
556
|
+
event_type: zod.z.literal("connected_account.successful_login"),
|
|
297
557
|
connect_webview_id
|
|
298
558
|
}).describe("A connected account had a successful connect webview login.");
|
|
299
559
|
var connected_account_disconnected_event = connected_account_event.extend({
|
|
300
|
-
event_type:
|
|
560
|
+
event_type: zod.z.literal("connected_account.disconnected")
|
|
301
561
|
}).describe("A connected account was disconnected.");
|
|
302
562
|
var connected_account_completed_first_sync_event = connected_account_event.extend({
|
|
303
|
-
event_type:
|
|
563
|
+
event_type: zod.z.literal("connected_account.completed_first_sync")
|
|
304
564
|
}).describe(
|
|
305
565
|
"A connected account completed the first sync with Seam and devices are now available."
|
|
306
566
|
);
|
|
307
567
|
var connected_account_deleted_event = connected_account_event.extend({
|
|
308
|
-
event_type:
|
|
568
|
+
event_type: zod.z.literal("connected_account.deleted")
|
|
309
569
|
}).describe("A connected account was deleted.");
|
|
310
570
|
var connected_account_completed_first_sync_after_reconnection_event = connected_account_event.extend({
|
|
311
|
-
event_type:
|
|
571
|
+
event_type: zod.z.literal(
|
|
312
572
|
"connected_account.completed_first_sync_after_reconnection"
|
|
313
573
|
)
|
|
314
574
|
}).describe(
|
|
@@ -324,32 +584,32 @@ var connected_account_events = [
|
|
|
324
584
|
connected_account_completed_first_sync_after_reconnection_event
|
|
325
585
|
];
|
|
326
586
|
var device_event = common_event.extend({
|
|
327
|
-
device_id:
|
|
587
|
+
device_id: zod.z.string().uuid().describe(`
|
|
328
588
|
---
|
|
329
589
|
title: Device ID
|
|
330
590
|
---
|
|
331
591
|
ID of the device.
|
|
332
592
|
`),
|
|
333
|
-
connected_account_id:
|
|
593
|
+
connected_account_id: zod.z.string().uuid().describe(`
|
|
334
594
|
---
|
|
335
595
|
title: Connected Account ID
|
|
336
596
|
---
|
|
337
597
|
ID of the connected account.
|
|
338
598
|
`)
|
|
339
599
|
});
|
|
340
|
-
var battery_level =
|
|
600
|
+
var battery_level = zod.z.number().min(0).max(1).describe(`
|
|
341
601
|
---
|
|
342
602
|
title: Battery Level
|
|
343
603
|
---
|
|
344
604
|
Fractional number 0 to 1.0 indicating amount of battery in device, as reported by device.
|
|
345
605
|
`);
|
|
346
|
-
var device_battery_status =
|
|
606
|
+
var device_battery_status = zod.z.enum(["critical", "low", "good", "full"]).describe(`
|
|
347
607
|
---
|
|
348
608
|
title: Battery Status
|
|
349
609
|
---
|
|
350
610
|
Enum representing the battery status calculated from numeric battery_level value, one of 'critical' | 'low' | 'good' | 'full'
|
|
351
611
|
`);
|
|
352
|
-
var disconnection_error_code =
|
|
612
|
+
var disconnection_error_code = zod.z.enum([
|
|
353
613
|
"account_disconnected",
|
|
354
614
|
"hub_disconnected",
|
|
355
615
|
"device_disconnected"
|
|
@@ -359,108 +619,108 @@ var disconnection_error_code = z10__namespace.enum([
|
|
|
359
619
|
---
|
|
360
620
|
The error code associated with the event, if any.
|
|
361
621
|
`);
|
|
362
|
-
var lock_method =
|
|
622
|
+
var lock_method = zod.z.enum(["keycode", "manual", "unknown", "seamapi"]).describe(`
|
|
363
623
|
---
|
|
364
624
|
title: Lock Lock/Unlock Method
|
|
365
625
|
---
|
|
366
626
|
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
627
|
`);
|
|
368
628
|
var device_connected_event = device_event.extend({
|
|
369
|
-
event_type:
|
|
629
|
+
event_type: zod.z.literal("device.connected")
|
|
370
630
|
}).describe("A new device was connected to Seam.");
|
|
371
631
|
var device_converted_to_unmanaged_event = device_event.extend({
|
|
372
|
-
event_type:
|
|
632
|
+
event_type: zod.z.literal("device.converted_to_unmanaged")
|
|
373
633
|
}).describe(
|
|
374
634
|
"An unmanaged device was successfully converted to a managed device."
|
|
375
635
|
);
|
|
376
636
|
var unmanaged_device_converted_to_managed_event = device_event.extend({
|
|
377
|
-
event_type:
|
|
637
|
+
event_type: zod.z.literal("device.unmanaged.converted_to_managed")
|
|
378
638
|
}).describe(
|
|
379
639
|
"A managed device was successfully converted to an unmanaged device."
|
|
380
640
|
);
|
|
381
641
|
var unmanaged_device_connected_event = device_event.extend({
|
|
382
|
-
event_type:
|
|
642
|
+
event_type: zod.z.literal("device.unmanaged.connected")
|
|
383
643
|
}).describe("An unmanaged device was connected to Seam");
|
|
384
644
|
var device_disconnected_event = device_event.extend({
|
|
385
|
-
event_type:
|
|
645
|
+
event_type: zod.z.literal("device.disconnected"),
|
|
386
646
|
error_code: disconnection_error_code
|
|
387
647
|
}).describe("A device was disconnected");
|
|
388
648
|
var unmanaged_device_disconnected_event = device_event.extend({
|
|
389
|
-
event_type:
|
|
649
|
+
event_type: zod.z.literal("device.unmanaged.disconnected"),
|
|
390
650
|
error_code: disconnection_error_code
|
|
391
651
|
}).describe("An unmanaged device was disconnected");
|
|
392
652
|
var device_tampered_event = device_event.extend({
|
|
393
|
-
event_type:
|
|
653
|
+
event_type: zod.z.literal("device.tampered")
|
|
394
654
|
}).describe(
|
|
395
655
|
"A device detected that it was tampered with, e.g., opened or moved."
|
|
396
656
|
);
|
|
397
657
|
var device_low_battery_event = device_event.extend({
|
|
398
|
-
event_type:
|
|
658
|
+
event_type: zod.z.literal("device.low_battery"),
|
|
399
659
|
battery_level
|
|
400
660
|
}).describe("A device battery level dropped below the low threshold.");
|
|
401
661
|
var device_battery_status_changed_event = device_event.extend({
|
|
402
|
-
event_type:
|
|
662
|
+
event_type: zod.z.literal("device.battery_status_changed"),
|
|
403
663
|
battery_status: device_battery_status,
|
|
404
664
|
battery_level
|
|
405
665
|
}).describe(
|
|
406
666
|
"A device battery status changed since the last battery status changed event."
|
|
407
667
|
);
|
|
408
668
|
var device_removed_event = device_event.extend({
|
|
409
|
-
event_type:
|
|
669
|
+
event_type: zod.z.literal("device.removed")
|
|
410
670
|
}).describe("A device was removed externally from the connected account.");
|
|
411
671
|
var device_deleted_event = device_event.extend({
|
|
412
|
-
event_type:
|
|
672
|
+
event_type: zod.z.literal("device.deleted")
|
|
413
673
|
}).describe("A device was deleted.");
|
|
414
674
|
var device_third_party_integration_detected_event = device_event.extend({
|
|
415
|
-
event_type:
|
|
675
|
+
event_type: zod.z.literal("device.third_party_integration_detected")
|
|
416
676
|
}).describe(
|
|
417
677
|
"Seam detected a device is using a third party integration that will interfere with Seam device management."
|
|
418
678
|
);
|
|
419
679
|
var device_third_party_integration_no_longer_detected_event = device_event.extend({
|
|
420
|
-
event_type:
|
|
680
|
+
event_type: zod.z.literal(
|
|
421
681
|
"device.third_party_integration_no_longer_detected"
|
|
422
682
|
)
|
|
423
683
|
}).describe(
|
|
424
684
|
"Seam detected a device is no longer using a third party integration that was interfering with Seam device management."
|
|
425
685
|
);
|
|
426
686
|
var device_salto_privacy_mode_activated_event = device_event.extend({
|
|
427
|
-
event_type:
|
|
687
|
+
event_type: zod.z.literal("device.salto.privacy_mode_activated")
|
|
428
688
|
}).describe("A Salto device activated privacy mode.");
|
|
429
689
|
var device_salto_privacy_mode_deactivated_event = device_event.extend({
|
|
430
|
-
event_type:
|
|
690
|
+
event_type: zod.z.literal("device.salto.privacy_mode_deactivated")
|
|
431
691
|
}).describe("A Salto device deactivated privacy mode.");
|
|
432
692
|
var device_connection_became_flaky_event = device_event.extend({
|
|
433
|
-
event_type:
|
|
693
|
+
event_type: zod.z.literal("device.connection_became_flaky")
|
|
434
694
|
}).describe("Seam detected a flaky device connection.");
|
|
435
695
|
var device_connection_stabilized_event = device_event.extend({
|
|
436
|
-
event_type:
|
|
696
|
+
event_type: zod.z.literal("device.connection_stabilized")
|
|
437
697
|
}).describe("Seam detected a previously flaky device connection stabilized.");
|
|
438
698
|
var device_error_subscription_required_event = device_event.extend({
|
|
439
|
-
event_type:
|
|
699
|
+
event_type: zod.z.literal("device.error.subscription_required")
|
|
440
700
|
}).describe(
|
|
441
701
|
"A third party subscription is required to use all device features."
|
|
442
702
|
);
|
|
443
703
|
var device_error_subscription_required_resolved_event = device_event.extend({
|
|
444
|
-
event_type:
|
|
704
|
+
event_type: zod.z.literal("device.error.subscription_required.resolved")
|
|
445
705
|
}).describe(
|
|
446
706
|
"A third party subscription is active or no longer-required to use all device features."
|
|
447
707
|
);
|
|
448
708
|
var device_accessory_keypad_connected_event = device_event.extend({
|
|
449
|
-
event_type:
|
|
709
|
+
event_type: zod.z.literal("device.accessory_keypad_connected")
|
|
450
710
|
}).describe("A accessory keypad was connected to a device.");
|
|
451
711
|
var device_accessory_keypad_disconnected_event = device_event.extend({
|
|
452
|
-
event_type:
|
|
712
|
+
event_type: zod.z.literal("device.accessory_keypad_disconnected")
|
|
453
713
|
}).describe("A accessory keypad was disconnected to a device.");
|
|
454
714
|
var noise_sensor_noise_threshold_triggered_event = device_event.extend({
|
|
455
|
-
event_type:
|
|
715
|
+
event_type: zod.z.literal("noise_sensor.noise_threshold_triggered"),
|
|
456
716
|
// TODO: import from ../devices
|
|
457
|
-
noiseaware_metadata:
|
|
717
|
+
noiseaware_metadata: zod.z.record(zod.z.unknown()).optional().describe(`
|
|
458
718
|
---
|
|
459
719
|
title: Noiseaware Metadata
|
|
460
720
|
---
|
|
461
721
|
Metadata from the Noiseaware API.
|
|
462
722
|
`),
|
|
463
|
-
minut_metadata:
|
|
723
|
+
minut_metadata: zod.z.record(zod.z.unknown()).optional().describe(`
|
|
464
724
|
---
|
|
465
725
|
title: Minut Metadata
|
|
466
726
|
---
|
|
@@ -470,15 +730,15 @@ var noise_sensor_noise_threshold_triggered_event = device_event.extend({
|
|
|
470
730
|
"Extended periods of noise or noise exceeding a threshold was detected."
|
|
471
731
|
);
|
|
472
732
|
var lock_locked_event = device_event.extend({
|
|
473
|
-
event_type:
|
|
474
|
-
access_code_id:
|
|
475
|
-
action_attempt_id:
|
|
733
|
+
event_type: zod.z.literal("lock.locked"),
|
|
734
|
+
access_code_id: zod.z.string().uuid().optional(),
|
|
735
|
+
action_attempt_id: zod.z.string().uuid().optional(),
|
|
476
736
|
method: lock_method
|
|
477
737
|
}).describe("A lock was locked.");
|
|
478
738
|
var lock_unlocked_event = device_event.extend({
|
|
479
|
-
event_type:
|
|
480
|
-
access_code_id:
|
|
481
|
-
action_attempt_id:
|
|
739
|
+
event_type: zod.z.literal("lock.unlocked"),
|
|
740
|
+
access_code_id: zod.z.string().uuid().optional(),
|
|
741
|
+
action_attempt_id: zod.z.string().uuid().optional(),
|
|
482
742
|
method: lock_method
|
|
483
743
|
}).describe("A lock was unlocked.");
|
|
484
744
|
var device_events = [
|
|
@@ -508,7 +768,7 @@ var device_events = [
|
|
|
508
768
|
lock_unlocked_event
|
|
509
769
|
];
|
|
510
770
|
var enrollment_automation_event = common_event.extend({
|
|
511
|
-
enrollment_automation_id:
|
|
771
|
+
enrollment_automation_id: zod.z.string().uuid().describe(`
|
|
512
772
|
---
|
|
513
773
|
title: Enrollment Automation ID
|
|
514
774
|
---
|
|
@@ -516,13 +776,13 @@ var enrollment_automation_event = common_event.extend({
|
|
|
516
776
|
`)
|
|
517
777
|
});
|
|
518
778
|
var enrollment_automation_deleted_event = enrollment_automation_event.extend({
|
|
519
|
-
event_type:
|
|
779
|
+
event_type: zod.z.literal("enrollment_automation.deleted")
|
|
520
780
|
}).describe("An enrollment automation was deleted.");
|
|
521
781
|
var enrollment_automation_events = [
|
|
522
782
|
enrollment_automation_deleted_event
|
|
523
783
|
];
|
|
524
784
|
var phone_event = common_event.extend({
|
|
525
|
-
device_id:
|
|
785
|
+
device_id: zod.z.string().uuid().describe(`
|
|
526
786
|
---
|
|
527
787
|
title: Device ID
|
|
528
788
|
---
|
|
@@ -530,12 +790,12 @@ var phone_event = common_event.extend({
|
|
|
530
790
|
`)
|
|
531
791
|
});
|
|
532
792
|
var phone_deactivated_event = phone_event.extend({
|
|
533
|
-
event_type:
|
|
793
|
+
event_type: zod.z.literal("phone.deactivated")
|
|
534
794
|
}).describe("A phone device was deactivated.");
|
|
535
795
|
var phone_events = [phone_deactivated_event];
|
|
536
796
|
|
|
537
797
|
// src/lib/seam/connect/models/events/seam-event.ts
|
|
538
|
-
var seam_event =
|
|
798
|
+
var seam_event = zod.z.discriminatedUnion("event_type", [
|
|
539
799
|
...access_code_events,
|
|
540
800
|
...acs_events,
|
|
541
801
|
...client_session_events,
|
|
@@ -1049,40 +1309,288 @@ var openapi_default = {
|
|
|
1049
1309
|
type: "object"
|
|
1050
1310
|
},
|
|
1051
1311
|
action_attempt: {
|
|
1052
|
-
discriminator: { propertyName: "status" },
|
|
1053
1312
|
oneOf: [
|
|
1054
1313
|
{
|
|
1314
|
+
description: "Locking door.",
|
|
1055
1315
|
properties: {
|
|
1056
|
-
action_attempt_id: {
|
|
1057
|
-
|
|
1316
|
+
action_attempt_id: {
|
|
1317
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1318
|
+
format: "uuid",
|
|
1319
|
+
type: "string"
|
|
1320
|
+
},
|
|
1321
|
+
action_type: { enum: ["LOCK_DOOR"], type: "string" },
|
|
1058
1322
|
error: { format: "null", nullable: true, type: "string" },
|
|
1059
|
-
result: { nullable: true },
|
|
1323
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1324
|
+
status: { enum: ["pending"], type: "string" }
|
|
1325
|
+
},
|
|
1326
|
+
required: [
|
|
1327
|
+
"action_attempt_id",
|
|
1328
|
+
"status",
|
|
1329
|
+
"result",
|
|
1330
|
+
"error",
|
|
1331
|
+
"action_type"
|
|
1332
|
+
],
|
|
1333
|
+
type: "object"
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
description: "Locking door succeeded.",
|
|
1337
|
+
properties: {
|
|
1338
|
+
action_attempt_id: {
|
|
1339
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1340
|
+
format: "uuid",
|
|
1341
|
+
type: "string"
|
|
1342
|
+
},
|
|
1343
|
+
action_type: { enum: ["LOCK_DOOR"], type: "string" },
|
|
1344
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1345
|
+
result: { properties: {}, type: "object" },
|
|
1346
|
+
status: { enum: ["success"], type: "string" }
|
|
1347
|
+
},
|
|
1348
|
+
required: [
|
|
1349
|
+
"action_attempt_id",
|
|
1350
|
+
"status",
|
|
1351
|
+
"error",
|
|
1352
|
+
"action_type",
|
|
1353
|
+
"result"
|
|
1354
|
+
],
|
|
1355
|
+
type: "object"
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
description: "Locking door failed.",
|
|
1359
|
+
properties: {
|
|
1360
|
+
action_attempt_id: {
|
|
1361
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1362
|
+
format: "uuid",
|
|
1363
|
+
type: "string"
|
|
1364
|
+
},
|
|
1365
|
+
action_type: { enum: ["LOCK_DOOR"], type: "string" },
|
|
1366
|
+
error: {
|
|
1367
|
+
properties: {
|
|
1368
|
+
message: { type: "string" },
|
|
1369
|
+
type: { type: "string" }
|
|
1370
|
+
},
|
|
1371
|
+
required: ["type", "message"],
|
|
1372
|
+
type: "object"
|
|
1373
|
+
},
|
|
1374
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1375
|
+
status: { enum: ["error"], type: "string" }
|
|
1376
|
+
},
|
|
1377
|
+
required: [
|
|
1378
|
+
"action_attempt_id",
|
|
1379
|
+
"status",
|
|
1380
|
+
"result",
|
|
1381
|
+
"action_type",
|
|
1382
|
+
"error"
|
|
1383
|
+
],
|
|
1384
|
+
type: "object"
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
description: "Unlocking door.",
|
|
1388
|
+
properties: {
|
|
1389
|
+
action_attempt_id: {
|
|
1390
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1391
|
+
format: "uuid",
|
|
1392
|
+
type: "string"
|
|
1393
|
+
},
|
|
1394
|
+
action_type: { enum: ["UNLOCK_DOOR"], type: "string" },
|
|
1395
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1396
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1397
|
+
status: { enum: ["pending"], type: "string" }
|
|
1398
|
+
},
|
|
1399
|
+
required: [
|
|
1400
|
+
"action_attempt_id",
|
|
1401
|
+
"status",
|
|
1402
|
+
"result",
|
|
1403
|
+
"error",
|
|
1404
|
+
"action_type"
|
|
1405
|
+
],
|
|
1406
|
+
type: "object"
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
description: "Unlocking door succeeded.",
|
|
1410
|
+
properties: {
|
|
1411
|
+
action_attempt_id: {
|
|
1412
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1413
|
+
format: "uuid",
|
|
1414
|
+
type: "string"
|
|
1415
|
+
},
|
|
1416
|
+
action_type: { enum: ["UNLOCK_DOOR"], type: "string" },
|
|
1417
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1418
|
+
result: { properties: {}, type: "object" },
|
|
1060
1419
|
status: { enum: ["success"], type: "string" }
|
|
1061
1420
|
},
|
|
1062
|
-
required: [
|
|
1421
|
+
required: [
|
|
1422
|
+
"action_attempt_id",
|
|
1423
|
+
"status",
|
|
1424
|
+
"error",
|
|
1425
|
+
"action_type",
|
|
1426
|
+
"result"
|
|
1427
|
+
],
|
|
1428
|
+
type: "object"
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
description: "Unlocking door failed.",
|
|
1432
|
+
properties: {
|
|
1433
|
+
action_attempt_id: {
|
|
1434
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1435
|
+
format: "uuid",
|
|
1436
|
+
type: "string"
|
|
1437
|
+
},
|
|
1438
|
+
action_type: { enum: ["UNLOCK_DOOR"], type: "string" },
|
|
1439
|
+
error: {
|
|
1440
|
+
properties: {
|
|
1441
|
+
message: { type: "string" },
|
|
1442
|
+
type: { type: "string" }
|
|
1443
|
+
},
|
|
1444
|
+
required: ["type", "message"],
|
|
1445
|
+
type: "object"
|
|
1446
|
+
},
|
|
1447
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1448
|
+
status: { enum: ["error"], type: "string" }
|
|
1449
|
+
},
|
|
1450
|
+
required: [
|
|
1451
|
+
"action_attempt_id",
|
|
1452
|
+
"status",
|
|
1453
|
+
"result",
|
|
1454
|
+
"action_type",
|
|
1455
|
+
"error"
|
|
1456
|
+
],
|
|
1063
1457
|
type: "object"
|
|
1064
1458
|
},
|
|
1065
1459
|
{
|
|
1460
|
+
description: "Resetting sandbox workspace.",
|
|
1066
1461
|
properties: {
|
|
1067
|
-
action_attempt_id: {
|
|
1068
|
-
|
|
1462
|
+
action_attempt_id: {
|
|
1463
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1464
|
+
format: "uuid",
|
|
1465
|
+
type: "string"
|
|
1466
|
+
},
|
|
1467
|
+
action_type: {
|
|
1468
|
+
enum: ["RESET_SANDBOX_WORKSPACE"],
|
|
1469
|
+
type: "string"
|
|
1470
|
+
},
|
|
1069
1471
|
error: { format: "null", nullable: true, type: "string" },
|
|
1070
1472
|
result: { format: "null", nullable: true, type: "string" },
|
|
1071
1473
|
status: { enum: ["pending"], type: "string" }
|
|
1072
1474
|
},
|
|
1073
1475
|
required: [
|
|
1476
|
+
"action_attempt_id",
|
|
1477
|
+
"status",
|
|
1478
|
+
"result",
|
|
1479
|
+
"error",
|
|
1480
|
+
"action_type"
|
|
1481
|
+
],
|
|
1482
|
+
type: "object"
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
description: "Resetting sandbox workspace succeeded.",
|
|
1486
|
+
properties: {
|
|
1487
|
+
action_attempt_id: {
|
|
1488
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1489
|
+
format: "uuid",
|
|
1490
|
+
type: "string"
|
|
1491
|
+
},
|
|
1492
|
+
action_type: {
|
|
1493
|
+
enum: ["RESET_SANDBOX_WORKSPACE"],
|
|
1494
|
+
type: "string"
|
|
1495
|
+
},
|
|
1496
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1497
|
+
result: { properties: {}, type: "object" },
|
|
1498
|
+
status: { enum: ["success"], type: "string" }
|
|
1499
|
+
},
|
|
1500
|
+
required: [
|
|
1501
|
+
"action_attempt_id",
|
|
1074
1502
|
"status",
|
|
1503
|
+
"error",
|
|
1075
1504
|
"action_type",
|
|
1505
|
+
"result"
|
|
1506
|
+
],
|
|
1507
|
+
type: "object"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
description: "Resetting sandbox workspace failed.",
|
|
1511
|
+
properties: {
|
|
1512
|
+
action_attempt_id: {
|
|
1513
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1514
|
+
format: "uuid",
|
|
1515
|
+
type: "string"
|
|
1516
|
+
},
|
|
1517
|
+
action_type: {
|
|
1518
|
+
enum: ["RESET_SANDBOX_WORKSPACE"],
|
|
1519
|
+
type: "string"
|
|
1520
|
+
},
|
|
1521
|
+
error: {
|
|
1522
|
+
properties: {
|
|
1523
|
+
message: { type: "string" },
|
|
1524
|
+
type: { type: "string" }
|
|
1525
|
+
},
|
|
1526
|
+
required: ["type", "message"],
|
|
1527
|
+
type: "object"
|
|
1528
|
+
},
|
|
1529
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1530
|
+
status: { enum: ["error"], type: "string" }
|
|
1531
|
+
},
|
|
1532
|
+
required: [
|
|
1076
1533
|
"action_attempt_id",
|
|
1534
|
+
"status",
|
|
1077
1535
|
"result",
|
|
1536
|
+
"action_type",
|
|
1078
1537
|
"error"
|
|
1079
1538
|
],
|
|
1080
1539
|
type: "object"
|
|
1081
1540
|
},
|
|
1082
1541
|
{
|
|
1542
|
+
description: "Setting HVAC to cool.",
|
|
1543
|
+
properties: {
|
|
1544
|
+
action_attempt_id: {
|
|
1545
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1546
|
+
format: "uuid",
|
|
1547
|
+
type: "string"
|
|
1548
|
+
},
|
|
1549
|
+
action_type: { enum: ["SET_COOL"], type: "string" },
|
|
1550
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1551
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1552
|
+
status: { enum: ["pending"], type: "string" }
|
|
1553
|
+
},
|
|
1554
|
+
required: [
|
|
1555
|
+
"action_attempt_id",
|
|
1556
|
+
"status",
|
|
1557
|
+
"result",
|
|
1558
|
+
"error",
|
|
1559
|
+
"action_type"
|
|
1560
|
+
],
|
|
1561
|
+
type: "object"
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
description: "Setting HVAC to cool succeeded.",
|
|
1565
|
+
properties: {
|
|
1566
|
+
action_attempt_id: {
|
|
1567
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1568
|
+
format: "uuid",
|
|
1569
|
+
type: "string"
|
|
1570
|
+
},
|
|
1571
|
+
action_type: { enum: ["SET_COOL"], type: "string" },
|
|
1572
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1573
|
+
result: { properties: {}, type: "object" },
|
|
1574
|
+
status: { enum: ["success"], type: "string" }
|
|
1575
|
+
},
|
|
1576
|
+
required: [
|
|
1577
|
+
"action_attempt_id",
|
|
1578
|
+
"status",
|
|
1579
|
+
"error",
|
|
1580
|
+
"action_type",
|
|
1581
|
+
"result"
|
|
1582
|
+
],
|
|
1583
|
+
type: "object"
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
description: "Setting HVAC to cool failed.",
|
|
1083
1587
|
properties: {
|
|
1084
|
-
action_attempt_id: {
|
|
1085
|
-
|
|
1588
|
+
action_attempt_id: {
|
|
1589
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1590
|
+
format: "uuid",
|
|
1591
|
+
type: "string"
|
|
1592
|
+
},
|
|
1593
|
+
action_type: { enum: ["SET_COOL"], type: "string" },
|
|
1086
1594
|
error: {
|
|
1087
1595
|
properties: {
|
|
1088
1596
|
message: { type: "string" },
|
|
@@ -1095,10 +1603,750 @@ var openapi_default = {
|
|
|
1095
1603
|
status: { enum: ["error"], type: "string" }
|
|
1096
1604
|
},
|
|
1097
1605
|
required: [
|
|
1606
|
+
"action_attempt_id",
|
|
1098
1607
|
"status",
|
|
1608
|
+
"result",
|
|
1099
1609
|
"action_type",
|
|
1610
|
+
"error"
|
|
1611
|
+
],
|
|
1612
|
+
type: "object"
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
description: "Setting HVAC to heat mode.",
|
|
1616
|
+
properties: {
|
|
1617
|
+
action_attempt_id: {
|
|
1618
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1619
|
+
format: "uuid",
|
|
1620
|
+
type: "string"
|
|
1621
|
+
},
|
|
1622
|
+
action_type: { enum: ["SET_HEAT"], type: "string" },
|
|
1623
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1624
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1625
|
+
status: { enum: ["pending"], type: "string" }
|
|
1626
|
+
},
|
|
1627
|
+
required: [
|
|
1100
1628
|
"action_attempt_id",
|
|
1629
|
+
"status",
|
|
1101
1630
|
"result",
|
|
1631
|
+
"error",
|
|
1632
|
+
"action_type"
|
|
1633
|
+
],
|
|
1634
|
+
type: "object"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
description: "Setting HVAC to heat mode succeeded.",
|
|
1638
|
+
properties: {
|
|
1639
|
+
action_attempt_id: {
|
|
1640
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1641
|
+
format: "uuid",
|
|
1642
|
+
type: "string"
|
|
1643
|
+
},
|
|
1644
|
+
action_type: { enum: ["SET_HEAT"], type: "string" },
|
|
1645
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1646
|
+
result: { properties: {}, type: "object" },
|
|
1647
|
+
status: { enum: ["success"], type: "string" }
|
|
1648
|
+
},
|
|
1649
|
+
required: [
|
|
1650
|
+
"action_attempt_id",
|
|
1651
|
+
"status",
|
|
1652
|
+
"error",
|
|
1653
|
+
"action_type",
|
|
1654
|
+
"result"
|
|
1655
|
+
],
|
|
1656
|
+
type: "object"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
description: "Setting HVAC to heat mode failed.",
|
|
1660
|
+
properties: {
|
|
1661
|
+
action_attempt_id: {
|
|
1662
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1663
|
+
format: "uuid",
|
|
1664
|
+
type: "string"
|
|
1665
|
+
},
|
|
1666
|
+
action_type: { enum: ["SET_HEAT"], type: "string" },
|
|
1667
|
+
error: {
|
|
1668
|
+
properties: {
|
|
1669
|
+
message: { type: "string" },
|
|
1670
|
+
type: { type: "string" }
|
|
1671
|
+
},
|
|
1672
|
+
required: ["type", "message"],
|
|
1673
|
+
type: "object"
|
|
1674
|
+
},
|
|
1675
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1676
|
+
status: { enum: ["error"], type: "string" }
|
|
1677
|
+
},
|
|
1678
|
+
required: [
|
|
1679
|
+
"action_attempt_id",
|
|
1680
|
+
"status",
|
|
1681
|
+
"result",
|
|
1682
|
+
"action_type",
|
|
1683
|
+
"error"
|
|
1684
|
+
],
|
|
1685
|
+
type: "object"
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
description: "Setting HVAC to heat-cool mode.",
|
|
1689
|
+
properties: {
|
|
1690
|
+
action_attempt_id: {
|
|
1691
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1692
|
+
format: "uuid",
|
|
1693
|
+
type: "string"
|
|
1694
|
+
},
|
|
1695
|
+
action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
|
|
1696
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1697
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1698
|
+
status: { enum: ["pending"], type: "string" }
|
|
1699
|
+
},
|
|
1700
|
+
required: [
|
|
1701
|
+
"action_attempt_id",
|
|
1702
|
+
"status",
|
|
1703
|
+
"result",
|
|
1704
|
+
"error",
|
|
1705
|
+
"action_type"
|
|
1706
|
+
],
|
|
1707
|
+
type: "object"
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
description: "Setting HVAC to heat-cool mode succeeded.",
|
|
1711
|
+
properties: {
|
|
1712
|
+
action_attempt_id: {
|
|
1713
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1714
|
+
format: "uuid",
|
|
1715
|
+
type: "string"
|
|
1716
|
+
},
|
|
1717
|
+
action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
|
|
1718
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1719
|
+
result: { properties: {}, type: "object" },
|
|
1720
|
+
status: { enum: ["success"], type: "string" }
|
|
1721
|
+
},
|
|
1722
|
+
required: [
|
|
1723
|
+
"action_attempt_id",
|
|
1724
|
+
"status",
|
|
1725
|
+
"error",
|
|
1726
|
+
"action_type",
|
|
1727
|
+
"result"
|
|
1728
|
+
],
|
|
1729
|
+
type: "object"
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
description: "Setting heat-cool mode failed.",
|
|
1733
|
+
properties: {
|
|
1734
|
+
action_attempt_id: {
|
|
1735
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1736
|
+
format: "uuid",
|
|
1737
|
+
type: "string"
|
|
1738
|
+
},
|
|
1739
|
+
action_type: { enum: ["SET_HEAT_COOL"], type: "string" },
|
|
1740
|
+
error: {
|
|
1741
|
+
properties: {
|
|
1742
|
+
message: { type: "string" },
|
|
1743
|
+
type: { type: "string" }
|
|
1744
|
+
},
|
|
1745
|
+
required: ["type", "message"],
|
|
1746
|
+
type: "object"
|
|
1747
|
+
},
|
|
1748
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1749
|
+
status: { enum: ["error"], type: "string" }
|
|
1750
|
+
},
|
|
1751
|
+
required: [
|
|
1752
|
+
"action_attempt_id",
|
|
1753
|
+
"status",
|
|
1754
|
+
"result",
|
|
1755
|
+
"action_type",
|
|
1756
|
+
"error"
|
|
1757
|
+
],
|
|
1758
|
+
type: "object"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
description: "Setting fan mode.",
|
|
1762
|
+
properties: {
|
|
1763
|
+
action_attempt_id: {
|
|
1764
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1765
|
+
format: "uuid",
|
|
1766
|
+
type: "string"
|
|
1767
|
+
},
|
|
1768
|
+
action_type: { enum: ["SET_FAN_MODE"], type: "string" },
|
|
1769
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1770
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1771
|
+
status: { enum: ["pending"], type: "string" }
|
|
1772
|
+
},
|
|
1773
|
+
required: [
|
|
1774
|
+
"action_attempt_id",
|
|
1775
|
+
"status",
|
|
1776
|
+
"result",
|
|
1777
|
+
"error",
|
|
1778
|
+
"action_type"
|
|
1779
|
+
],
|
|
1780
|
+
type: "object"
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
description: "Setting fan mode succeeded.",
|
|
1784
|
+
properties: {
|
|
1785
|
+
action_attempt_id: {
|
|
1786
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1787
|
+
format: "uuid",
|
|
1788
|
+
type: "string"
|
|
1789
|
+
},
|
|
1790
|
+
action_type: { enum: ["SET_FAN_MODE"], type: "string" },
|
|
1791
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1792
|
+
result: { properties: {}, type: "object" },
|
|
1793
|
+
status: { enum: ["success"], type: "string" }
|
|
1794
|
+
},
|
|
1795
|
+
required: [
|
|
1796
|
+
"action_attempt_id",
|
|
1797
|
+
"status",
|
|
1798
|
+
"error",
|
|
1799
|
+
"action_type",
|
|
1800
|
+
"result"
|
|
1801
|
+
],
|
|
1802
|
+
type: "object"
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
description: "Setting fan mode failed.",
|
|
1806
|
+
properties: {
|
|
1807
|
+
action_attempt_id: {
|
|
1808
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1809
|
+
format: "uuid",
|
|
1810
|
+
type: "string"
|
|
1811
|
+
},
|
|
1812
|
+
action_type: { enum: ["SET_FAN_MODE"], type: "string" },
|
|
1813
|
+
error: {
|
|
1814
|
+
properties: {
|
|
1815
|
+
message: { type: "string" },
|
|
1816
|
+
type: { type: "string" }
|
|
1817
|
+
},
|
|
1818
|
+
required: ["type", "message"],
|
|
1819
|
+
type: "object"
|
|
1820
|
+
},
|
|
1821
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1822
|
+
status: { enum: ["error"], type: "string" }
|
|
1823
|
+
},
|
|
1824
|
+
required: [
|
|
1825
|
+
"action_attempt_id",
|
|
1826
|
+
"status",
|
|
1827
|
+
"result",
|
|
1828
|
+
"action_type",
|
|
1829
|
+
"error"
|
|
1830
|
+
],
|
|
1831
|
+
type: "object"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
description: "Turning HVAC off.",
|
|
1835
|
+
properties: {
|
|
1836
|
+
action_attempt_id: {
|
|
1837
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1838
|
+
format: "uuid",
|
|
1839
|
+
type: "string"
|
|
1840
|
+
},
|
|
1841
|
+
action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
|
|
1842
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1843
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1844
|
+
status: { enum: ["pending"], type: "string" }
|
|
1845
|
+
},
|
|
1846
|
+
required: [
|
|
1847
|
+
"action_attempt_id",
|
|
1848
|
+
"status",
|
|
1849
|
+
"result",
|
|
1850
|
+
"error",
|
|
1851
|
+
"action_type"
|
|
1852
|
+
],
|
|
1853
|
+
type: "object"
|
|
1854
|
+
},
|
|
1855
|
+
{
|
|
1856
|
+
description: "Turning HVAC off succeeded.",
|
|
1857
|
+
properties: {
|
|
1858
|
+
action_attempt_id: {
|
|
1859
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1860
|
+
format: "uuid",
|
|
1861
|
+
type: "string"
|
|
1862
|
+
},
|
|
1863
|
+
action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
|
|
1864
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1865
|
+
result: { properties: {}, type: "object" },
|
|
1866
|
+
status: { enum: ["success"], type: "string" }
|
|
1867
|
+
},
|
|
1868
|
+
required: [
|
|
1869
|
+
"action_attempt_id",
|
|
1870
|
+
"status",
|
|
1871
|
+
"error",
|
|
1872
|
+
"action_type",
|
|
1873
|
+
"result"
|
|
1874
|
+
],
|
|
1875
|
+
type: "object"
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
description: "Turning HVAC off failed.",
|
|
1879
|
+
properties: {
|
|
1880
|
+
action_attempt_id: {
|
|
1881
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1882
|
+
format: "uuid",
|
|
1883
|
+
type: "string"
|
|
1884
|
+
},
|
|
1885
|
+
action_type: { enum: ["SET_THERMOSTAT_OFF"], type: "string" },
|
|
1886
|
+
error: {
|
|
1887
|
+
properties: {
|
|
1888
|
+
message: { type: "string" },
|
|
1889
|
+
type: { type: "string" }
|
|
1890
|
+
},
|
|
1891
|
+
required: ["type", "message"],
|
|
1892
|
+
type: "object"
|
|
1893
|
+
},
|
|
1894
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1895
|
+
status: { enum: ["error"], type: "string" }
|
|
1896
|
+
},
|
|
1897
|
+
required: [
|
|
1898
|
+
"action_attempt_id",
|
|
1899
|
+
"status",
|
|
1900
|
+
"result",
|
|
1901
|
+
"action_type",
|
|
1902
|
+
"error"
|
|
1903
|
+
],
|
|
1904
|
+
type: "object"
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
properties: {
|
|
1908
|
+
action_attempt_id: {
|
|
1909
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1910
|
+
format: "uuid",
|
|
1911
|
+
type: "string"
|
|
1912
|
+
},
|
|
1913
|
+
action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
|
|
1914
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1915
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1916
|
+
status: { enum: ["pending"], type: "string" }
|
|
1917
|
+
},
|
|
1918
|
+
required: [
|
|
1919
|
+
"action_attempt_id",
|
|
1920
|
+
"status",
|
|
1921
|
+
"result",
|
|
1922
|
+
"error",
|
|
1923
|
+
"action_type"
|
|
1924
|
+
],
|
|
1925
|
+
type: "object"
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
properties: {
|
|
1929
|
+
action_attempt_id: {
|
|
1930
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1931
|
+
format: "uuid",
|
|
1932
|
+
type: "string"
|
|
1933
|
+
},
|
|
1934
|
+
action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
|
|
1935
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1936
|
+
result: { nullable: true },
|
|
1937
|
+
status: { enum: ["success"], type: "string" }
|
|
1938
|
+
},
|
|
1939
|
+
required: ["action_attempt_id", "status", "error", "action_type"],
|
|
1940
|
+
type: "object"
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
properties: {
|
|
1944
|
+
action_attempt_id: {
|
|
1945
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1946
|
+
format: "uuid",
|
|
1947
|
+
type: "string"
|
|
1948
|
+
},
|
|
1949
|
+
action_type: { enum: ["SYNC_ACCESS_CODES"], type: "string" },
|
|
1950
|
+
error: {
|
|
1951
|
+
properties: {
|
|
1952
|
+
message: { type: "string" },
|
|
1953
|
+
type: { type: "string" }
|
|
1954
|
+
},
|
|
1955
|
+
required: ["type", "message"],
|
|
1956
|
+
type: "object"
|
|
1957
|
+
},
|
|
1958
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1959
|
+
status: { enum: ["error"], type: "string" }
|
|
1960
|
+
},
|
|
1961
|
+
required: [
|
|
1962
|
+
"action_attempt_id",
|
|
1963
|
+
"status",
|
|
1964
|
+
"result",
|
|
1965
|
+
"action_type",
|
|
1966
|
+
"error"
|
|
1967
|
+
],
|
|
1968
|
+
type: "object"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
properties: {
|
|
1972
|
+
action_attempt_id: {
|
|
1973
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1974
|
+
format: "uuid",
|
|
1975
|
+
type: "string"
|
|
1976
|
+
},
|
|
1977
|
+
action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
|
|
1978
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
1979
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
1980
|
+
status: { enum: ["pending"], type: "string" }
|
|
1981
|
+
},
|
|
1982
|
+
required: [
|
|
1983
|
+
"action_attempt_id",
|
|
1984
|
+
"status",
|
|
1985
|
+
"result",
|
|
1986
|
+
"error",
|
|
1987
|
+
"action_type"
|
|
1988
|
+
],
|
|
1989
|
+
type: "object"
|
|
1990
|
+
},
|
|
1991
|
+
{
|
|
1992
|
+
properties: {
|
|
1993
|
+
action_attempt_id: {
|
|
1994
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
1995
|
+
format: "uuid",
|
|
1996
|
+
type: "string"
|
|
1997
|
+
},
|
|
1998
|
+
action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
|
|
1999
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2000
|
+
result: { nullable: true },
|
|
2001
|
+
status: { enum: ["success"], type: "string" }
|
|
2002
|
+
},
|
|
2003
|
+
required: ["action_attempt_id", "status", "error", "action_type"],
|
|
2004
|
+
type: "object"
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
properties: {
|
|
2008
|
+
action_attempt_id: {
|
|
2009
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2010
|
+
format: "uuid",
|
|
2011
|
+
type: "string"
|
|
2012
|
+
},
|
|
2013
|
+
action_type: { enum: ["CREATE_ACCESS_CODE"], type: "string" },
|
|
2014
|
+
error: {
|
|
2015
|
+
properties: {
|
|
2016
|
+
message: { type: "string" },
|
|
2017
|
+
type: { type: "string" }
|
|
2018
|
+
},
|
|
2019
|
+
required: ["type", "message"],
|
|
2020
|
+
type: "object"
|
|
2021
|
+
},
|
|
2022
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2023
|
+
status: { enum: ["error"], type: "string" }
|
|
2024
|
+
},
|
|
2025
|
+
required: [
|
|
2026
|
+
"action_attempt_id",
|
|
2027
|
+
"status",
|
|
2028
|
+
"result",
|
|
2029
|
+
"action_type",
|
|
2030
|
+
"error"
|
|
2031
|
+
],
|
|
2032
|
+
type: "object"
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
properties: {
|
|
2036
|
+
action_attempt_id: {
|
|
2037
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2038
|
+
format: "uuid",
|
|
2039
|
+
type: "string"
|
|
2040
|
+
},
|
|
2041
|
+
action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
|
|
2042
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2043
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2044
|
+
status: { enum: ["pending"], type: "string" }
|
|
2045
|
+
},
|
|
2046
|
+
required: [
|
|
2047
|
+
"action_attempt_id",
|
|
2048
|
+
"status",
|
|
2049
|
+
"result",
|
|
2050
|
+
"error",
|
|
2051
|
+
"action_type"
|
|
2052
|
+
],
|
|
2053
|
+
type: "object"
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
properties: {
|
|
2057
|
+
action_attempt_id: {
|
|
2058
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2059
|
+
format: "uuid",
|
|
2060
|
+
type: "string"
|
|
2061
|
+
},
|
|
2062
|
+
action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
|
|
2063
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2064
|
+
result: { nullable: true },
|
|
2065
|
+
status: { enum: ["success"], type: "string" }
|
|
2066
|
+
},
|
|
2067
|
+
required: ["action_attempt_id", "status", "error", "action_type"],
|
|
2068
|
+
type: "object"
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
properties: {
|
|
2072
|
+
action_attempt_id: {
|
|
2073
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2074
|
+
format: "uuid",
|
|
2075
|
+
type: "string"
|
|
2076
|
+
},
|
|
2077
|
+
action_type: { enum: ["DELETE_ACCESS_CODE"], type: "string" },
|
|
2078
|
+
error: {
|
|
2079
|
+
properties: {
|
|
2080
|
+
message: { type: "string" },
|
|
2081
|
+
type: { type: "string" }
|
|
2082
|
+
},
|
|
2083
|
+
required: ["type", "message"],
|
|
2084
|
+
type: "object"
|
|
2085
|
+
},
|
|
2086
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2087
|
+
status: { enum: ["error"], type: "string" }
|
|
2088
|
+
},
|
|
2089
|
+
required: [
|
|
2090
|
+
"action_attempt_id",
|
|
2091
|
+
"status",
|
|
2092
|
+
"result",
|
|
2093
|
+
"action_type",
|
|
2094
|
+
"error"
|
|
2095
|
+
],
|
|
2096
|
+
type: "object"
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
properties: {
|
|
2100
|
+
action_attempt_id: {
|
|
2101
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2102
|
+
format: "uuid",
|
|
2103
|
+
type: "string"
|
|
2104
|
+
},
|
|
2105
|
+
action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
|
|
2106
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2107
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2108
|
+
status: { enum: ["pending"], type: "string" }
|
|
2109
|
+
},
|
|
2110
|
+
required: [
|
|
2111
|
+
"action_attempt_id",
|
|
2112
|
+
"status",
|
|
2113
|
+
"result",
|
|
2114
|
+
"error",
|
|
2115
|
+
"action_type"
|
|
2116
|
+
],
|
|
2117
|
+
type: "object"
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
properties: {
|
|
2121
|
+
action_attempt_id: {
|
|
2122
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2123
|
+
format: "uuid",
|
|
2124
|
+
type: "string"
|
|
2125
|
+
},
|
|
2126
|
+
action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
|
|
2127
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2128
|
+
result: { nullable: true },
|
|
2129
|
+
status: { enum: ["success"], type: "string" }
|
|
2130
|
+
},
|
|
2131
|
+
required: ["action_attempt_id", "status", "error", "action_type"],
|
|
2132
|
+
type: "object"
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
properties: {
|
|
2136
|
+
action_attempt_id: {
|
|
2137
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2138
|
+
format: "uuid",
|
|
2139
|
+
type: "string"
|
|
2140
|
+
},
|
|
2141
|
+
action_type: { enum: ["UPDATE_ACCESS_CODE"], type: "string" },
|
|
2142
|
+
error: {
|
|
2143
|
+
properties: {
|
|
2144
|
+
message: { type: "string" },
|
|
2145
|
+
type: { type: "string" }
|
|
2146
|
+
},
|
|
2147
|
+
required: ["type", "message"],
|
|
2148
|
+
type: "object"
|
|
2149
|
+
},
|
|
2150
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2151
|
+
status: { enum: ["error"], type: "string" }
|
|
2152
|
+
},
|
|
2153
|
+
required: [
|
|
2154
|
+
"action_attempt_id",
|
|
2155
|
+
"status",
|
|
2156
|
+
"result",
|
|
2157
|
+
"action_type",
|
|
2158
|
+
"error"
|
|
2159
|
+
],
|
|
2160
|
+
type: "object"
|
|
2161
|
+
},
|
|
2162
|
+
{
|
|
2163
|
+
properties: {
|
|
2164
|
+
action_attempt_id: {
|
|
2165
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2166
|
+
format: "uuid",
|
|
2167
|
+
type: "string"
|
|
2168
|
+
},
|
|
2169
|
+
action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
|
|
2170
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2171
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2172
|
+
status: { enum: ["pending"], type: "string" }
|
|
2173
|
+
},
|
|
2174
|
+
required: [
|
|
2175
|
+
"action_attempt_id",
|
|
2176
|
+
"status",
|
|
2177
|
+
"result",
|
|
2178
|
+
"error",
|
|
2179
|
+
"action_type"
|
|
2180
|
+
],
|
|
2181
|
+
type: "object"
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
properties: {
|
|
2185
|
+
action_attempt_id: {
|
|
2186
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2187
|
+
format: "uuid",
|
|
2188
|
+
type: "string"
|
|
2189
|
+
},
|
|
2190
|
+
action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
|
|
2191
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2192
|
+
result: { nullable: true },
|
|
2193
|
+
status: { enum: ["success"], type: "string" }
|
|
2194
|
+
},
|
|
2195
|
+
required: ["action_attempt_id", "status", "error", "action_type"],
|
|
2196
|
+
type: "object"
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
properties: {
|
|
2200
|
+
action_attempt_id: {
|
|
2201
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2202
|
+
format: "uuid",
|
|
2203
|
+
type: "string"
|
|
2204
|
+
},
|
|
2205
|
+
action_type: { enum: ["CREATE_NOISE_THRESHOLD"], type: "string" },
|
|
2206
|
+
error: {
|
|
2207
|
+
properties: {
|
|
2208
|
+
message: { type: "string" },
|
|
2209
|
+
type: { type: "string" }
|
|
2210
|
+
},
|
|
2211
|
+
required: ["type", "message"],
|
|
2212
|
+
type: "object"
|
|
2213
|
+
},
|
|
2214
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2215
|
+
status: { enum: ["error"], type: "string" }
|
|
2216
|
+
},
|
|
2217
|
+
required: [
|
|
2218
|
+
"action_attempt_id",
|
|
2219
|
+
"status",
|
|
2220
|
+
"result",
|
|
2221
|
+
"action_type",
|
|
2222
|
+
"error"
|
|
2223
|
+
],
|
|
2224
|
+
type: "object"
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
properties: {
|
|
2228
|
+
action_attempt_id: {
|
|
2229
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2230
|
+
format: "uuid",
|
|
2231
|
+
type: "string"
|
|
2232
|
+
},
|
|
2233
|
+
action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
|
|
2234
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2235
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2236
|
+
status: { enum: ["pending"], type: "string" }
|
|
2237
|
+
},
|
|
2238
|
+
required: [
|
|
2239
|
+
"action_attempt_id",
|
|
2240
|
+
"status",
|
|
2241
|
+
"result",
|
|
2242
|
+
"error",
|
|
2243
|
+
"action_type"
|
|
2244
|
+
],
|
|
2245
|
+
type: "object"
|
|
2246
|
+
},
|
|
2247
|
+
{
|
|
2248
|
+
properties: {
|
|
2249
|
+
action_attempt_id: {
|
|
2250
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2251
|
+
format: "uuid",
|
|
2252
|
+
type: "string"
|
|
2253
|
+
},
|
|
2254
|
+
action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
|
|
2255
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2256
|
+
result: { nullable: true },
|
|
2257
|
+
status: { enum: ["success"], type: "string" }
|
|
2258
|
+
},
|
|
2259
|
+
required: ["action_attempt_id", "status", "error", "action_type"],
|
|
2260
|
+
type: "object"
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
properties: {
|
|
2264
|
+
action_attempt_id: {
|
|
2265
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2266
|
+
format: "uuid",
|
|
2267
|
+
type: "string"
|
|
2268
|
+
},
|
|
2269
|
+
action_type: { enum: ["DELETE_NOISE_THRESHOLD"], type: "string" },
|
|
2270
|
+
error: {
|
|
2271
|
+
properties: {
|
|
2272
|
+
message: { type: "string" },
|
|
2273
|
+
type: { type: "string" }
|
|
2274
|
+
},
|
|
2275
|
+
required: ["type", "message"],
|
|
2276
|
+
type: "object"
|
|
2277
|
+
},
|
|
2278
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2279
|
+
status: { enum: ["error"], type: "string" }
|
|
2280
|
+
},
|
|
2281
|
+
required: [
|
|
2282
|
+
"action_attempt_id",
|
|
2283
|
+
"status",
|
|
2284
|
+
"result",
|
|
2285
|
+
"action_type",
|
|
2286
|
+
"error"
|
|
2287
|
+
],
|
|
2288
|
+
type: "object"
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
properties: {
|
|
2292
|
+
action_attempt_id: {
|
|
2293
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2294
|
+
format: "uuid",
|
|
2295
|
+
type: "string"
|
|
2296
|
+
},
|
|
2297
|
+
action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
|
|
2298
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2299
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2300
|
+
status: { enum: ["pending"], type: "string" }
|
|
2301
|
+
},
|
|
2302
|
+
required: [
|
|
2303
|
+
"action_attempt_id",
|
|
2304
|
+
"status",
|
|
2305
|
+
"result",
|
|
2306
|
+
"error",
|
|
2307
|
+
"action_type"
|
|
2308
|
+
],
|
|
2309
|
+
type: "object"
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
properties: {
|
|
2313
|
+
action_attempt_id: {
|
|
2314
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2315
|
+
format: "uuid",
|
|
2316
|
+
type: "string"
|
|
2317
|
+
},
|
|
2318
|
+
action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
|
|
2319
|
+
error: { format: "null", nullable: true, type: "string" },
|
|
2320
|
+
result: { nullable: true },
|
|
2321
|
+
status: { enum: ["success"], type: "string" }
|
|
2322
|
+
},
|
|
2323
|
+
required: ["action_attempt_id", "status", "error", "action_type"],
|
|
2324
|
+
type: "object"
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
properties: {
|
|
2328
|
+
action_attempt_id: {
|
|
2329
|
+
description: "\n ---\n title: Action Attempt ID\n ---\n The ID of the action attempt.\n ",
|
|
2330
|
+
format: "uuid",
|
|
2331
|
+
type: "string"
|
|
2332
|
+
},
|
|
2333
|
+
action_type: { enum: ["UPDATE_NOISE_THRESHOLD"], type: "string" },
|
|
2334
|
+
error: {
|
|
2335
|
+
properties: {
|
|
2336
|
+
message: { type: "string" },
|
|
2337
|
+
type: { type: "string" }
|
|
2338
|
+
},
|
|
2339
|
+
required: ["type", "message"],
|
|
2340
|
+
type: "object"
|
|
2341
|
+
},
|
|
2342
|
+
result: { format: "null", nullable: true, type: "string" },
|
|
2343
|
+
status: { enum: ["error"], type: "string" }
|
|
2344
|
+
},
|
|
2345
|
+
required: [
|
|
2346
|
+
"action_attempt_id",
|
|
2347
|
+
"status",
|
|
2348
|
+
"result",
|
|
2349
|
+
"action_type",
|
|
1102
2350
|
"error"
|
|
1103
2351
|
],
|
|
1104
2352
|
type: "object"
|
|
@@ -1494,7 +2742,7 @@ var openapi_default = {
|
|
|
1494
2742
|
model: {
|
|
1495
2743
|
properties: {
|
|
1496
2744
|
accessory_keypad_supported: {
|
|
1497
|
-
description: "
|
|
2745
|
+
description: "\n ---\n deprecated: use device.properties.model.can_connect_accessory_keypad\n ---\n ",
|
|
1498
2746
|
type: "boolean"
|
|
1499
2747
|
},
|
|
1500
2748
|
can_connect_accessory_keypad: {
|
|
@@ -1553,7 +2801,7 @@ var openapi_default = {
|
|
|
1553
2801
|
type: "string"
|
|
1554
2802
|
},
|
|
1555
2803
|
supports_accessory_keypad: {
|
|
1556
|
-
description: "\n ---\n deprecated: use model.
|
|
2804
|
+
description: "\n ---\n deprecated: use device.properties.model.can_connect_accessory_keypad\n ---\n ",
|
|
1557
2805
|
type: "boolean"
|
|
1558
2806
|
},
|
|
1559
2807
|
supports_offline_access_codes: {
|
|
@@ -3036,7 +4284,7 @@ var openapi_default = {
|
|
|
3036
4284
|
model: {
|
|
3037
4285
|
properties: {
|
|
3038
4286
|
accessory_keypad_supported: {
|
|
3039
|
-
description: "
|
|
4287
|
+
description: "\n ---\n deprecated: use device.properties.model.can_connect_accessory_keypad\n ---\n ",
|
|
3040
4288
|
type: "boolean"
|
|
3041
4289
|
},
|
|
3042
4290
|
can_connect_accessory_keypad: {
|