@seamapi/types 1.360.1 → 1.361.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 +739 -583
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +2320 -1622
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +192 -126
- package/lib/seam/connect/models/access-codes/managed-access-code.js +2 -4
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +193 -127
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +4 -4
- package/lib/seam/connect/models/acs/acs-credential-pool.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -6
- package/lib/seam/connect/models/acs/acs-encoder.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-entrance.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-system.d.ts +2 -2
- package/lib/seam/connect/models/acs/acs-user.d.ts +4 -4
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +26 -26
- package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
- package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +18 -18
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +42 -42
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +18 -18
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +18 -18
- package/lib/seam/connect/models/devices/device.d.ts +1760 -389
- package/lib/seam/connect/models/devices/device.js +82 -4
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/phone.d.ts +4 -4
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +236 -58
- package/lib/seam/connect/models/events/access-codes.d.ts +68 -68
- package/lib/seam/connect/models/events/devices.d.ts +152 -152
- package/lib/seam/connect/models/events/phones.d.ts +4 -4
- package/lib/seam/connect/models/events/seam-event.d.ts +112 -112
- package/lib/seam/connect/models/thermostats/thermostat-schedule.d.ts +8 -8
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
- package/lib/seam/connect/openapi.d.ts +58 -148
- package/lib/seam/connect/openapi.js +563 -463
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +840 -648
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +2 -4
- package/src/lib/seam/connect/models/devices/device.ts +103 -4
- package/src/lib/seam/connect/openapi.ts +562 -478
- package/src/lib/seam/connect/route-types.ts +888 -720
|
@@ -42,486 +42,1679 @@ export type BatteryStatus = z.infer<typeof battery_status>;
|
|
|
42
42
|
export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
43
43
|
message: z.ZodString;
|
|
44
44
|
is_device_error: z.ZodLiteral<true>;
|
|
45
|
+
created_at: z.ZodString;
|
|
46
|
+
}, {
|
|
47
|
+
error_code: z.ZodLiteral<"account_disconnected">;
|
|
48
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
49
|
+
is_device_error: z.ZodLiteral<false>;
|
|
50
|
+
}>, "strip", z.ZodTypeAny, {
|
|
51
|
+
message: string;
|
|
52
|
+
created_at: string;
|
|
53
|
+
error_code: "account_disconnected";
|
|
54
|
+
is_connected_account_error: true;
|
|
55
|
+
is_device_error: false;
|
|
56
|
+
}, {
|
|
57
|
+
message: string;
|
|
58
|
+
created_at: string;
|
|
59
|
+
error_code: "account_disconnected";
|
|
60
|
+
is_connected_account_error: true;
|
|
61
|
+
is_device_error: false;
|
|
62
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
63
|
+
message: z.ZodString;
|
|
64
|
+
is_device_error: z.ZodLiteral<true>;
|
|
65
|
+
created_at: z.ZodString;
|
|
66
|
+
}, {
|
|
67
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
68
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
69
|
+
is_device_error: z.ZodLiteral<false>;
|
|
70
|
+
}>, "strip", z.ZodTypeAny, {
|
|
71
|
+
message: string;
|
|
72
|
+
created_at: string;
|
|
73
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
74
|
+
is_connected_account_error: true;
|
|
75
|
+
is_device_error: false;
|
|
76
|
+
}, {
|
|
77
|
+
message: string;
|
|
78
|
+
created_at: string;
|
|
79
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
80
|
+
is_connected_account_error: true;
|
|
81
|
+
is_device_error: false;
|
|
82
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
83
|
+
message: z.ZodString;
|
|
84
|
+
is_device_error: z.ZodLiteral<true>;
|
|
85
|
+
created_at: z.ZodString;
|
|
45
86
|
}, {
|
|
46
87
|
error_code: z.ZodLiteral<"device_offline">;
|
|
47
88
|
}>, "strip", z.ZodTypeAny, {
|
|
48
89
|
message: string;
|
|
90
|
+
created_at: string;
|
|
49
91
|
error_code: "device_offline";
|
|
50
92
|
is_device_error: true;
|
|
51
93
|
}, {
|
|
52
94
|
message: string;
|
|
95
|
+
created_at: string;
|
|
53
96
|
error_code: "device_offline";
|
|
54
97
|
is_device_error: true;
|
|
55
98
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
56
99
|
message: z.ZodString;
|
|
57
100
|
is_device_error: z.ZodLiteral<true>;
|
|
101
|
+
created_at: z.ZodString;
|
|
58
102
|
}, {
|
|
59
103
|
error_code: z.ZodLiteral<"device_removed">;
|
|
60
104
|
}>, "strip", z.ZodTypeAny, {
|
|
61
105
|
message: string;
|
|
106
|
+
created_at: string;
|
|
62
107
|
error_code: "device_removed";
|
|
63
108
|
is_device_error: true;
|
|
64
109
|
}, {
|
|
65
110
|
message: string;
|
|
111
|
+
created_at: string;
|
|
66
112
|
error_code: "device_removed";
|
|
67
113
|
is_device_error: true;
|
|
68
114
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
69
115
|
message: z.ZodString;
|
|
70
116
|
is_device_error: z.ZodLiteral<true>;
|
|
117
|
+
created_at: z.ZodString;
|
|
71
118
|
}, {
|
|
72
119
|
error_code: z.ZodLiteral<"hub_disconnected">;
|
|
73
120
|
}>, "strip", z.ZodTypeAny, {
|
|
74
121
|
message: string;
|
|
122
|
+
created_at: string;
|
|
75
123
|
error_code: "hub_disconnected";
|
|
76
124
|
is_device_error: true;
|
|
77
125
|
}, {
|
|
78
126
|
message: string;
|
|
127
|
+
created_at: string;
|
|
79
128
|
error_code: "hub_disconnected";
|
|
80
129
|
is_device_error: true;
|
|
81
130
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
82
131
|
message: z.ZodString;
|
|
83
132
|
is_device_error: z.ZodLiteral<true>;
|
|
133
|
+
created_at: z.ZodString;
|
|
84
134
|
}, {
|
|
85
135
|
error_code: z.ZodLiteral<"device_disconnected">;
|
|
86
136
|
}>, "strip", z.ZodTypeAny, {
|
|
87
137
|
message: string;
|
|
138
|
+
created_at: string;
|
|
88
139
|
error_code: "device_disconnected";
|
|
89
140
|
is_device_error: true;
|
|
90
141
|
}, {
|
|
91
142
|
message: string;
|
|
143
|
+
created_at: string;
|
|
92
144
|
error_code: "device_disconnected";
|
|
93
145
|
is_device_error: true;
|
|
94
146
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
95
147
|
message: z.ZodString;
|
|
96
148
|
is_device_error: z.ZodLiteral<true>;
|
|
149
|
+
created_at: z.ZodString;
|
|
97
150
|
}, {
|
|
98
151
|
error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
|
|
99
152
|
}>, "strip", z.ZodTypeAny, {
|
|
100
153
|
message: string;
|
|
154
|
+
created_at: string;
|
|
101
155
|
error_code: "empty_backup_access_code_pool";
|
|
102
156
|
is_device_error: true;
|
|
103
157
|
}, {
|
|
104
158
|
message: string;
|
|
159
|
+
created_at: string;
|
|
105
160
|
error_code: "empty_backup_access_code_pool";
|
|
106
161
|
is_device_error: true;
|
|
107
162
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
108
163
|
message: z.ZodString;
|
|
109
164
|
is_device_error: z.ZodLiteral<true>;
|
|
165
|
+
created_at: z.ZodString;
|
|
110
166
|
}, {
|
|
111
167
|
error_code: z.ZodLiteral<"august_lock_not_authorized">;
|
|
112
168
|
}>, "strip", z.ZodTypeAny, {
|
|
113
169
|
message: string;
|
|
170
|
+
created_at: string;
|
|
114
171
|
error_code: "august_lock_not_authorized";
|
|
115
172
|
is_device_error: true;
|
|
116
173
|
}, {
|
|
117
174
|
message: string;
|
|
175
|
+
created_at: string;
|
|
118
176
|
error_code: "august_lock_not_authorized";
|
|
119
177
|
is_device_error: true;
|
|
120
178
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
121
179
|
message: z.ZodString;
|
|
122
180
|
is_device_error: z.ZodLiteral<true>;
|
|
181
|
+
created_at: z.ZodString;
|
|
123
182
|
}, {
|
|
124
183
|
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
125
184
|
}>, "strip", z.ZodTypeAny, {
|
|
126
185
|
message: string;
|
|
186
|
+
created_at: string;
|
|
127
187
|
error_code: "august_lock_missing_bridge";
|
|
128
188
|
is_device_error: true;
|
|
129
189
|
}, {
|
|
130
190
|
message: string;
|
|
191
|
+
created_at: string;
|
|
131
192
|
error_code: "august_lock_missing_bridge";
|
|
132
193
|
is_device_error: true;
|
|
133
194
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
134
195
|
message: z.ZodString;
|
|
135
196
|
is_device_error: z.ZodLiteral<true>;
|
|
136
|
-
|
|
137
|
-
error_code: z.ZodLiteral<"salto_site_user_limit_reached">;
|
|
138
|
-
}>, "strip", z.ZodTypeAny, {
|
|
139
|
-
message: string;
|
|
140
|
-
error_code: "salto_site_user_limit_reached";
|
|
141
|
-
is_device_error: true;
|
|
142
|
-
}, {
|
|
143
|
-
message: string;
|
|
144
|
-
error_code: "salto_site_user_limit_reached";
|
|
145
|
-
is_device_error: true;
|
|
146
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
147
|
-
message: z.ZodString;
|
|
148
|
-
is_device_error: z.ZodLiteral<true>;
|
|
197
|
+
created_at: z.ZodString;
|
|
149
198
|
}, {
|
|
150
199
|
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
151
200
|
}>, "strip", z.ZodTypeAny, {
|
|
152
201
|
message: string;
|
|
202
|
+
created_at: string;
|
|
153
203
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
154
204
|
is_device_error: true;
|
|
155
205
|
}, {
|
|
156
206
|
message: string;
|
|
207
|
+
created_at: string;
|
|
157
208
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
158
209
|
is_device_error: true;
|
|
159
210
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
160
211
|
message: z.ZodString;
|
|
161
212
|
is_device_error: z.ZodLiteral<true>;
|
|
213
|
+
created_at: z.ZodString;
|
|
162
214
|
}, {
|
|
163
215
|
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
164
216
|
}>, "strip", z.ZodTypeAny, {
|
|
165
217
|
message: string;
|
|
218
|
+
created_at: string;
|
|
166
219
|
error_code: "missing_device_credentials";
|
|
167
220
|
is_device_error: true;
|
|
168
221
|
}, {
|
|
169
222
|
message: string;
|
|
223
|
+
created_at: string;
|
|
170
224
|
error_code: "missing_device_credentials";
|
|
171
225
|
is_device_error: true;
|
|
172
226
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
173
227
|
message: z.ZodString;
|
|
174
228
|
is_device_error: z.ZodLiteral<true>;
|
|
229
|
+
created_at: z.ZodString;
|
|
175
230
|
}, {
|
|
176
231
|
error_code: z.ZodLiteral<"auxiliary_heat_running">;
|
|
177
232
|
}>, "strip", z.ZodTypeAny, {
|
|
178
233
|
message: string;
|
|
234
|
+
created_at: string;
|
|
179
235
|
error_code: "auxiliary_heat_running";
|
|
180
236
|
is_device_error: true;
|
|
181
237
|
}, {
|
|
182
238
|
message: string;
|
|
239
|
+
created_at: string;
|
|
183
240
|
error_code: "auxiliary_heat_running";
|
|
184
241
|
is_device_error: true;
|
|
185
242
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
186
243
|
message: z.ZodString;
|
|
187
244
|
is_device_error: z.ZodLiteral<true>;
|
|
245
|
+
created_at: z.ZodString;
|
|
188
246
|
}, {
|
|
189
247
|
error_code: z.ZodLiteral<"subscription_required">;
|
|
190
248
|
}>, "strip", z.ZodTypeAny, {
|
|
191
249
|
message: string;
|
|
250
|
+
created_at: string;
|
|
192
251
|
error_code: "subscription_required";
|
|
193
252
|
is_device_error: true;
|
|
194
253
|
}, {
|
|
195
254
|
message: string;
|
|
255
|
+
created_at: string;
|
|
196
256
|
error_code: "subscription_required";
|
|
197
257
|
is_device_error: true;
|
|
198
258
|
}>]>;
|
|
199
259
|
export type DeviceError = z.infer<typeof device_error>;
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}, {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}>, z.
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}, {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}, {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}, {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}, {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
}, {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}, {
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}, {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
260
|
+
declare const device_error_map: z.ZodObject<{
|
|
261
|
+
device_offline: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
262
|
+
message: z.ZodString;
|
|
263
|
+
is_device_error: z.ZodLiteral<true>;
|
|
264
|
+
created_at: z.ZodString;
|
|
265
|
+
}, {
|
|
266
|
+
error_code: z.ZodLiteral<"device_offline">;
|
|
267
|
+
}>, "strip", z.ZodTypeAny, {
|
|
268
|
+
message: string;
|
|
269
|
+
created_at: string;
|
|
270
|
+
error_code: "device_offline";
|
|
271
|
+
is_device_error: true;
|
|
272
|
+
}, {
|
|
273
|
+
message: string;
|
|
274
|
+
created_at: string;
|
|
275
|
+
error_code: "device_offline";
|
|
276
|
+
is_device_error: true;
|
|
277
|
+
}>>>;
|
|
278
|
+
device_removed: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
279
|
+
message: z.ZodString;
|
|
280
|
+
is_device_error: z.ZodLiteral<true>;
|
|
281
|
+
created_at: z.ZodString;
|
|
282
|
+
}, {
|
|
283
|
+
error_code: z.ZodLiteral<"device_removed">;
|
|
284
|
+
}>, "strip", z.ZodTypeAny, {
|
|
285
|
+
message: string;
|
|
286
|
+
created_at: string;
|
|
287
|
+
error_code: "device_removed";
|
|
288
|
+
is_device_error: true;
|
|
289
|
+
}, {
|
|
290
|
+
message: string;
|
|
291
|
+
created_at: string;
|
|
292
|
+
error_code: "device_removed";
|
|
293
|
+
is_device_error: true;
|
|
294
|
+
}>>>;
|
|
295
|
+
hub_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
296
|
+
message: z.ZodString;
|
|
297
|
+
is_device_error: z.ZodLiteral<true>;
|
|
298
|
+
created_at: z.ZodString;
|
|
299
|
+
}, {
|
|
300
|
+
error_code: z.ZodLiteral<"hub_disconnected">;
|
|
301
|
+
}>, "strip", z.ZodTypeAny, {
|
|
302
|
+
message: string;
|
|
303
|
+
created_at: string;
|
|
304
|
+
error_code: "hub_disconnected";
|
|
305
|
+
is_device_error: true;
|
|
306
|
+
}, {
|
|
307
|
+
message: string;
|
|
308
|
+
created_at: string;
|
|
309
|
+
error_code: "hub_disconnected";
|
|
310
|
+
is_device_error: true;
|
|
311
|
+
}>>>;
|
|
312
|
+
device_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
313
|
+
message: z.ZodString;
|
|
314
|
+
is_device_error: z.ZodLiteral<true>;
|
|
315
|
+
created_at: z.ZodString;
|
|
316
|
+
}, {
|
|
317
|
+
error_code: z.ZodLiteral<"device_disconnected">;
|
|
318
|
+
}>, "strip", z.ZodTypeAny, {
|
|
319
|
+
message: string;
|
|
320
|
+
created_at: string;
|
|
321
|
+
error_code: "device_disconnected";
|
|
322
|
+
is_device_error: true;
|
|
323
|
+
}, {
|
|
324
|
+
message: string;
|
|
325
|
+
created_at: string;
|
|
326
|
+
error_code: "device_disconnected";
|
|
327
|
+
is_device_error: true;
|
|
328
|
+
}>>>;
|
|
329
|
+
account_disconnected: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
330
|
+
message: z.ZodString;
|
|
331
|
+
is_device_error: z.ZodLiteral<true>;
|
|
332
|
+
created_at: z.ZodString;
|
|
333
|
+
}, {
|
|
334
|
+
error_code: z.ZodLiteral<"account_disconnected">;
|
|
335
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
336
|
+
is_device_error: z.ZodLiteral<false>;
|
|
337
|
+
}>, "strip", z.ZodTypeAny, {
|
|
338
|
+
message: string;
|
|
339
|
+
created_at: string;
|
|
340
|
+
error_code: "account_disconnected";
|
|
341
|
+
is_connected_account_error: true;
|
|
342
|
+
is_device_error: false;
|
|
343
|
+
}, {
|
|
344
|
+
message: string;
|
|
345
|
+
created_at: string;
|
|
346
|
+
error_code: "account_disconnected";
|
|
347
|
+
is_connected_account_error: true;
|
|
348
|
+
is_device_error: false;
|
|
349
|
+
}>>>;
|
|
350
|
+
empty_backup_access_code_pool: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
351
|
+
message: z.ZodString;
|
|
352
|
+
is_device_error: z.ZodLiteral<true>;
|
|
353
|
+
created_at: z.ZodString;
|
|
354
|
+
}, {
|
|
355
|
+
error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
|
|
356
|
+
}>, "strip", z.ZodTypeAny, {
|
|
357
|
+
message: string;
|
|
358
|
+
created_at: string;
|
|
359
|
+
error_code: "empty_backup_access_code_pool";
|
|
360
|
+
is_device_error: true;
|
|
361
|
+
}, {
|
|
362
|
+
message: string;
|
|
363
|
+
created_at: string;
|
|
364
|
+
error_code: "empty_backup_access_code_pool";
|
|
365
|
+
is_device_error: true;
|
|
366
|
+
}>>>;
|
|
367
|
+
august_lock_not_authorized: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
368
|
+
message: z.ZodString;
|
|
369
|
+
is_device_error: z.ZodLiteral<true>;
|
|
370
|
+
created_at: z.ZodString;
|
|
371
|
+
}, {
|
|
372
|
+
error_code: z.ZodLiteral<"august_lock_not_authorized">;
|
|
373
|
+
}>, "strip", z.ZodTypeAny, {
|
|
374
|
+
message: string;
|
|
375
|
+
created_at: string;
|
|
376
|
+
error_code: "august_lock_not_authorized";
|
|
377
|
+
is_device_error: true;
|
|
378
|
+
}, {
|
|
379
|
+
message: string;
|
|
380
|
+
created_at: string;
|
|
381
|
+
error_code: "august_lock_not_authorized";
|
|
382
|
+
is_device_error: true;
|
|
383
|
+
}>>>;
|
|
384
|
+
august_lock_missing_bridge: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
385
|
+
message: z.ZodString;
|
|
386
|
+
is_device_error: z.ZodLiteral<true>;
|
|
387
|
+
created_at: z.ZodString;
|
|
388
|
+
}, {
|
|
389
|
+
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
390
|
+
}>, "strip", z.ZodTypeAny, {
|
|
391
|
+
message: string;
|
|
392
|
+
created_at: string;
|
|
393
|
+
error_code: "august_lock_missing_bridge";
|
|
394
|
+
is_device_error: true;
|
|
395
|
+
}, {
|
|
396
|
+
message: string;
|
|
397
|
+
created_at: string;
|
|
398
|
+
error_code: "august_lock_missing_bridge";
|
|
399
|
+
is_device_error: true;
|
|
400
|
+
}>>>;
|
|
401
|
+
salto_ks_subscription_limit_exceeded: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
402
|
+
message: z.ZodString;
|
|
403
|
+
is_device_error: z.ZodLiteral<true>;
|
|
404
|
+
created_at: z.ZodString;
|
|
405
|
+
}, {
|
|
406
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
407
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
408
|
+
is_device_error: z.ZodLiteral<false>;
|
|
409
|
+
}>, "strip", z.ZodTypeAny, {
|
|
410
|
+
message: string;
|
|
411
|
+
created_at: string;
|
|
412
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
413
|
+
is_connected_account_error: true;
|
|
414
|
+
is_device_error: false;
|
|
415
|
+
}, {
|
|
416
|
+
message: string;
|
|
417
|
+
created_at: string;
|
|
418
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
419
|
+
is_connected_account_error: true;
|
|
420
|
+
is_device_error: false;
|
|
421
|
+
}>>>;
|
|
422
|
+
ttlock_lock_not_paired_to_gateway: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
423
|
+
message: z.ZodString;
|
|
424
|
+
is_device_error: z.ZodLiteral<true>;
|
|
425
|
+
created_at: z.ZodString;
|
|
426
|
+
}, {
|
|
427
|
+
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
428
|
+
}>, "strip", z.ZodTypeAny, {
|
|
429
|
+
message: string;
|
|
430
|
+
created_at: string;
|
|
431
|
+
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
432
|
+
is_device_error: true;
|
|
433
|
+
}, {
|
|
434
|
+
message: string;
|
|
435
|
+
created_at: string;
|
|
436
|
+
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
437
|
+
is_device_error: true;
|
|
438
|
+
}>>>;
|
|
439
|
+
missing_device_credentials: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
440
|
+
message: z.ZodString;
|
|
441
|
+
is_device_error: z.ZodLiteral<true>;
|
|
442
|
+
created_at: z.ZodString;
|
|
443
|
+
}, {
|
|
444
|
+
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
445
|
+
}>, "strip", z.ZodTypeAny, {
|
|
446
|
+
message: string;
|
|
447
|
+
created_at: string;
|
|
448
|
+
error_code: "missing_device_credentials";
|
|
449
|
+
is_device_error: true;
|
|
450
|
+
}, {
|
|
451
|
+
message: string;
|
|
452
|
+
created_at: string;
|
|
453
|
+
error_code: "missing_device_credentials";
|
|
454
|
+
is_device_error: true;
|
|
455
|
+
}>>>;
|
|
456
|
+
auxiliary_heat_running: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
457
|
+
message: z.ZodString;
|
|
458
|
+
is_device_error: z.ZodLiteral<true>;
|
|
459
|
+
created_at: z.ZodString;
|
|
460
|
+
}, {
|
|
461
|
+
error_code: z.ZodLiteral<"auxiliary_heat_running">;
|
|
462
|
+
}>, "strip", z.ZodTypeAny, {
|
|
463
|
+
message: string;
|
|
464
|
+
created_at: string;
|
|
465
|
+
error_code: "auxiliary_heat_running";
|
|
466
|
+
is_device_error: true;
|
|
467
|
+
}, {
|
|
468
|
+
message: string;
|
|
469
|
+
created_at: string;
|
|
470
|
+
error_code: "auxiliary_heat_running";
|
|
471
|
+
is_device_error: true;
|
|
472
|
+
}>>>;
|
|
473
|
+
subscription_required: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
474
|
+
message: z.ZodString;
|
|
475
|
+
is_device_error: z.ZodLiteral<true>;
|
|
476
|
+
created_at: z.ZodString;
|
|
477
|
+
}, {
|
|
478
|
+
error_code: z.ZodLiteral<"subscription_required">;
|
|
479
|
+
}>, "strip", z.ZodTypeAny, {
|
|
480
|
+
message: string;
|
|
481
|
+
created_at: string;
|
|
482
|
+
error_code: "subscription_required";
|
|
483
|
+
is_device_error: true;
|
|
484
|
+
}, {
|
|
485
|
+
message: string;
|
|
486
|
+
created_at: string;
|
|
487
|
+
error_code: "subscription_required";
|
|
488
|
+
is_device_error: true;
|
|
489
|
+
}>>>;
|
|
490
|
+
}, "strip", z.ZodTypeAny, {
|
|
491
|
+
subscription_required?: {
|
|
492
|
+
message: string;
|
|
493
|
+
created_at: string;
|
|
494
|
+
error_code: "subscription_required";
|
|
495
|
+
is_device_error: true;
|
|
496
|
+
} | null | undefined;
|
|
497
|
+
account_disconnected?: {
|
|
498
|
+
message: string;
|
|
499
|
+
created_at: string;
|
|
500
|
+
error_code: "account_disconnected";
|
|
501
|
+
is_connected_account_error: true;
|
|
502
|
+
is_device_error: false;
|
|
503
|
+
} | null | undefined;
|
|
504
|
+
salto_ks_subscription_limit_exceeded?: {
|
|
505
|
+
message: string;
|
|
506
|
+
created_at: string;
|
|
507
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
508
|
+
is_connected_account_error: true;
|
|
509
|
+
is_device_error: false;
|
|
510
|
+
} | null | undefined;
|
|
511
|
+
device_offline?: {
|
|
512
|
+
message: string;
|
|
513
|
+
created_at: string;
|
|
514
|
+
error_code: "device_offline";
|
|
515
|
+
is_device_error: true;
|
|
516
|
+
} | null | undefined;
|
|
517
|
+
device_removed?: {
|
|
518
|
+
message: string;
|
|
519
|
+
created_at: string;
|
|
520
|
+
error_code: "device_removed";
|
|
521
|
+
is_device_error: true;
|
|
522
|
+
} | null | undefined;
|
|
523
|
+
hub_disconnected?: {
|
|
524
|
+
message: string;
|
|
525
|
+
created_at: string;
|
|
526
|
+
error_code: "hub_disconnected";
|
|
527
|
+
is_device_error: true;
|
|
528
|
+
} | null | undefined;
|
|
529
|
+
device_disconnected?: {
|
|
530
|
+
message: string;
|
|
531
|
+
created_at: string;
|
|
532
|
+
error_code: "device_disconnected";
|
|
533
|
+
is_device_error: true;
|
|
534
|
+
} | null | undefined;
|
|
535
|
+
empty_backup_access_code_pool?: {
|
|
536
|
+
message: string;
|
|
537
|
+
created_at: string;
|
|
538
|
+
error_code: "empty_backup_access_code_pool";
|
|
539
|
+
is_device_error: true;
|
|
540
|
+
} | null | undefined;
|
|
541
|
+
august_lock_not_authorized?: {
|
|
542
|
+
message: string;
|
|
543
|
+
created_at: string;
|
|
544
|
+
error_code: "august_lock_not_authorized";
|
|
545
|
+
is_device_error: true;
|
|
546
|
+
} | null | undefined;
|
|
547
|
+
august_lock_missing_bridge?: {
|
|
548
|
+
message: string;
|
|
549
|
+
created_at: string;
|
|
550
|
+
error_code: "august_lock_missing_bridge";
|
|
551
|
+
is_device_error: true;
|
|
552
|
+
} | null | undefined;
|
|
553
|
+
ttlock_lock_not_paired_to_gateway?: {
|
|
554
|
+
message: string;
|
|
555
|
+
created_at: string;
|
|
556
|
+
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
557
|
+
is_device_error: true;
|
|
558
|
+
} | null | undefined;
|
|
559
|
+
missing_device_credentials?: {
|
|
560
|
+
message: string;
|
|
561
|
+
created_at: string;
|
|
562
|
+
error_code: "missing_device_credentials";
|
|
563
|
+
is_device_error: true;
|
|
564
|
+
} | null | undefined;
|
|
565
|
+
auxiliary_heat_running?: {
|
|
566
|
+
message: string;
|
|
567
|
+
created_at: string;
|
|
568
|
+
error_code: "auxiliary_heat_running";
|
|
569
|
+
is_device_error: true;
|
|
570
|
+
} | null | undefined;
|
|
571
|
+
}, {
|
|
572
|
+
subscription_required?: {
|
|
573
|
+
message: string;
|
|
574
|
+
created_at: string;
|
|
575
|
+
error_code: "subscription_required";
|
|
576
|
+
is_device_error: true;
|
|
577
|
+
} | null | undefined;
|
|
578
|
+
account_disconnected?: {
|
|
579
|
+
message: string;
|
|
580
|
+
created_at: string;
|
|
581
|
+
error_code: "account_disconnected";
|
|
582
|
+
is_connected_account_error: true;
|
|
583
|
+
is_device_error: false;
|
|
584
|
+
} | null | undefined;
|
|
585
|
+
salto_ks_subscription_limit_exceeded?: {
|
|
586
|
+
message: string;
|
|
587
|
+
created_at: string;
|
|
588
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
589
|
+
is_connected_account_error: true;
|
|
590
|
+
is_device_error: false;
|
|
591
|
+
} | null | undefined;
|
|
592
|
+
device_offline?: {
|
|
593
|
+
message: string;
|
|
594
|
+
created_at: string;
|
|
595
|
+
error_code: "device_offline";
|
|
596
|
+
is_device_error: true;
|
|
597
|
+
} | null | undefined;
|
|
598
|
+
device_removed?: {
|
|
599
|
+
message: string;
|
|
600
|
+
created_at: string;
|
|
601
|
+
error_code: "device_removed";
|
|
602
|
+
is_device_error: true;
|
|
603
|
+
} | null | undefined;
|
|
604
|
+
hub_disconnected?: {
|
|
605
|
+
message: string;
|
|
606
|
+
created_at: string;
|
|
607
|
+
error_code: "hub_disconnected";
|
|
608
|
+
is_device_error: true;
|
|
609
|
+
} | null | undefined;
|
|
610
|
+
device_disconnected?: {
|
|
611
|
+
message: string;
|
|
612
|
+
created_at: string;
|
|
613
|
+
error_code: "device_disconnected";
|
|
614
|
+
is_device_error: true;
|
|
615
|
+
} | null | undefined;
|
|
616
|
+
empty_backup_access_code_pool?: {
|
|
617
|
+
message: string;
|
|
618
|
+
created_at: string;
|
|
619
|
+
error_code: "empty_backup_access_code_pool";
|
|
620
|
+
is_device_error: true;
|
|
621
|
+
} | null | undefined;
|
|
622
|
+
august_lock_not_authorized?: {
|
|
623
|
+
message: string;
|
|
624
|
+
created_at: string;
|
|
625
|
+
error_code: "august_lock_not_authorized";
|
|
626
|
+
is_device_error: true;
|
|
627
|
+
} | null | undefined;
|
|
628
|
+
august_lock_missing_bridge?: {
|
|
629
|
+
message: string;
|
|
630
|
+
created_at: string;
|
|
631
|
+
error_code: "august_lock_missing_bridge";
|
|
632
|
+
is_device_error: true;
|
|
633
|
+
} | null | undefined;
|
|
634
|
+
ttlock_lock_not_paired_to_gateway?: {
|
|
635
|
+
message: string;
|
|
636
|
+
created_at: string;
|
|
637
|
+
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
638
|
+
is_device_error: true;
|
|
639
|
+
} | null | undefined;
|
|
640
|
+
missing_device_credentials?: {
|
|
641
|
+
message: string;
|
|
642
|
+
created_at: string;
|
|
643
|
+
error_code: "missing_device_credentials";
|
|
644
|
+
is_device_error: true;
|
|
645
|
+
} | null | undefined;
|
|
646
|
+
auxiliary_heat_running?: {
|
|
647
|
+
message: string;
|
|
648
|
+
created_at: string;
|
|
649
|
+
error_code: "auxiliary_heat_running";
|
|
650
|
+
is_device_error: true;
|
|
651
|
+
} | null | undefined;
|
|
652
|
+
}>;
|
|
653
|
+
export type DeviceErrorMap = z.infer<typeof device_error_map>;
|
|
654
|
+
export declare const unknown_issue_with_phone: z.ZodObject<z.objectUtil.extendShape<{
|
|
655
|
+
message: z.ZodString;
|
|
656
|
+
created_at: z.ZodString;
|
|
657
|
+
}, {
|
|
658
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
|
|
659
|
+
}>, "strip", z.ZodTypeAny, {
|
|
660
|
+
message: string;
|
|
661
|
+
created_at: string;
|
|
662
|
+
warning_code: "unknown_issue_with_phone";
|
|
663
|
+
}, {
|
|
664
|
+
message: string;
|
|
665
|
+
created_at: string;
|
|
666
|
+
warning_code: "unknown_issue_with_phone";
|
|
667
|
+
}>;
|
|
668
|
+
declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
669
|
+
message: z.ZodString;
|
|
670
|
+
created_at: z.ZodString;
|
|
671
|
+
}, {
|
|
672
|
+
warning_code: z.ZodLiteral<"partial_backup_access_code_pool">;
|
|
673
|
+
}>, "strip", z.ZodTypeAny, {
|
|
674
|
+
message: string;
|
|
675
|
+
created_at: string;
|
|
676
|
+
warning_code: "partial_backup_access_code_pool";
|
|
677
|
+
}, {
|
|
678
|
+
message: string;
|
|
679
|
+
created_at: string;
|
|
680
|
+
warning_code: "partial_backup_access_code_pool";
|
|
681
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
682
|
+
message: z.ZodString;
|
|
683
|
+
created_at: z.ZodString;
|
|
684
|
+
}, {
|
|
685
|
+
warning_code: z.ZodLiteral<"many_active_backup_codes">;
|
|
686
|
+
}>, "strip", z.ZodTypeAny, {
|
|
687
|
+
message: string;
|
|
688
|
+
created_at: string;
|
|
689
|
+
warning_code: "many_active_backup_codes";
|
|
690
|
+
}, {
|
|
691
|
+
message: string;
|
|
692
|
+
created_at: string;
|
|
693
|
+
warning_code: "many_active_backup_codes";
|
|
694
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
695
|
+
message: z.ZodString;
|
|
696
|
+
created_at: z.ZodString;
|
|
697
|
+
}, {
|
|
698
|
+
warning_code: z.ZodLiteral<"salto_unknown_device_type">;
|
|
699
|
+
}>, "strip", z.ZodTypeAny, {
|
|
700
|
+
message: string;
|
|
701
|
+
created_at: string;
|
|
702
|
+
warning_code: "salto_unknown_device_type";
|
|
703
|
+
}, {
|
|
704
|
+
message: string;
|
|
705
|
+
created_at: string;
|
|
706
|
+
warning_code: "salto_unknown_device_type";
|
|
707
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
708
|
+
message: z.ZodString;
|
|
709
|
+
created_at: z.ZodString;
|
|
710
|
+
}, {
|
|
711
|
+
warning_code: z.ZodLiteral<"wyze_device_missing_gateway">;
|
|
712
|
+
}>, "strip", z.ZodTypeAny, {
|
|
713
|
+
message: string;
|
|
714
|
+
created_at: string;
|
|
715
|
+
warning_code: "wyze_device_missing_gateway";
|
|
716
|
+
}, {
|
|
717
|
+
message: string;
|
|
718
|
+
created_at: string;
|
|
719
|
+
warning_code: "wyze_device_missing_gateway";
|
|
720
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
721
|
+
message: z.ZodString;
|
|
722
|
+
created_at: z.ZodString;
|
|
723
|
+
}, {
|
|
724
|
+
warning_code: z.ZodLiteral<"functional_offline_device">;
|
|
725
|
+
}>, "strip", z.ZodTypeAny, {
|
|
726
|
+
message: string;
|
|
727
|
+
created_at: string;
|
|
728
|
+
warning_code: "functional_offline_device";
|
|
729
|
+
}, {
|
|
730
|
+
message: string;
|
|
731
|
+
created_at: string;
|
|
732
|
+
warning_code: "functional_offline_device";
|
|
733
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
734
|
+
message: z.ZodString;
|
|
735
|
+
created_at: z.ZodString;
|
|
736
|
+
}, {
|
|
737
|
+
warning_code: z.ZodLiteral<"third_party_integration_detected">;
|
|
738
|
+
}>, "strip", z.ZodTypeAny, {
|
|
739
|
+
message: string;
|
|
740
|
+
created_at: string;
|
|
741
|
+
warning_code: "third_party_integration_detected";
|
|
742
|
+
}, {
|
|
743
|
+
message: string;
|
|
744
|
+
created_at: string;
|
|
745
|
+
warning_code: "third_party_integration_detected";
|
|
746
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
747
|
+
message: z.ZodString;
|
|
748
|
+
created_at: z.ZodString;
|
|
749
|
+
}, {
|
|
750
|
+
warning_code: z.ZodLiteral<"nest_thermostat_in_manual_eco_mode">;
|
|
751
|
+
}>, "strip", z.ZodTypeAny, {
|
|
752
|
+
message: string;
|
|
753
|
+
created_at: string;
|
|
754
|
+
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
755
|
+
}, {
|
|
756
|
+
message: string;
|
|
757
|
+
created_at: string;
|
|
758
|
+
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
759
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
760
|
+
message: z.ZodString;
|
|
761
|
+
created_at: z.ZodString;
|
|
762
|
+
}, {
|
|
763
|
+
warning_code: z.ZodLiteral<"ttlock_lock_gateway_unlocking_not_enabled">;
|
|
764
|
+
}>, "strip", z.ZodTypeAny, {
|
|
765
|
+
message: string;
|
|
766
|
+
created_at: string;
|
|
767
|
+
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
768
|
+
}, {
|
|
769
|
+
message: string;
|
|
770
|
+
created_at: string;
|
|
771
|
+
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
772
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
773
|
+
message: z.ZodString;
|
|
774
|
+
created_at: z.ZodString;
|
|
775
|
+
}, {
|
|
776
|
+
warning_code: z.ZodLiteral<"ttlock_weak_gateway_signal">;
|
|
777
|
+
}>, "strip", z.ZodTypeAny, {
|
|
778
|
+
message: string;
|
|
779
|
+
created_at: string;
|
|
780
|
+
warning_code: "ttlock_weak_gateway_signal";
|
|
781
|
+
}, {
|
|
782
|
+
message: string;
|
|
783
|
+
created_at: string;
|
|
784
|
+
warning_code: "ttlock_weak_gateway_signal";
|
|
785
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
786
|
+
message: z.ZodString;
|
|
787
|
+
created_at: z.ZodString;
|
|
788
|
+
}, {
|
|
789
|
+
warning_code: z.ZodLiteral<"temperature_threshold_exceeded">;
|
|
790
|
+
}>, "strip", z.ZodTypeAny, {
|
|
791
|
+
message: string;
|
|
792
|
+
created_at: string;
|
|
793
|
+
warning_code: "temperature_threshold_exceeded";
|
|
794
|
+
}, {
|
|
795
|
+
message: string;
|
|
796
|
+
created_at: string;
|
|
797
|
+
warning_code: "temperature_threshold_exceeded";
|
|
798
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
799
|
+
message: z.ZodString;
|
|
800
|
+
created_at: z.ZodString;
|
|
801
|
+
}, {
|
|
802
|
+
warning_code: z.ZodLiteral<"device_communication_degraded">;
|
|
803
|
+
}>, "strip", z.ZodTypeAny, {
|
|
804
|
+
message: string;
|
|
805
|
+
created_at: string;
|
|
806
|
+
warning_code: "device_communication_degraded";
|
|
807
|
+
}, {
|
|
808
|
+
message: string;
|
|
809
|
+
created_at: string;
|
|
810
|
+
warning_code: "device_communication_degraded";
|
|
811
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
812
|
+
message: z.ZodString;
|
|
813
|
+
created_at: z.ZodString;
|
|
814
|
+
}, {
|
|
815
|
+
warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
|
|
816
|
+
}>, "strip", z.ZodTypeAny, {
|
|
817
|
+
message: string;
|
|
818
|
+
created_at: string;
|
|
819
|
+
warning_code: "scheduled_maintenance_window";
|
|
820
|
+
}, {
|
|
821
|
+
message: string;
|
|
822
|
+
created_at: string;
|
|
823
|
+
warning_code: "scheduled_maintenance_window";
|
|
824
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
825
|
+
message: z.ZodString;
|
|
826
|
+
created_at: z.ZodString;
|
|
827
|
+
}, {
|
|
828
|
+
warning_code: z.ZodLiteral<"device_has_flaky_connection">;
|
|
829
|
+
}>, "strip", z.ZodTypeAny, {
|
|
830
|
+
message: string;
|
|
831
|
+
created_at: string;
|
|
832
|
+
warning_code: "device_has_flaky_connection";
|
|
833
|
+
}, {
|
|
834
|
+
message: string;
|
|
835
|
+
created_at: string;
|
|
836
|
+
warning_code: "device_has_flaky_connection";
|
|
837
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
838
|
+
message: z.ZodString;
|
|
839
|
+
created_at: z.ZodString;
|
|
840
|
+
}, {
|
|
841
|
+
warning_code: z.ZodLiteral<"salto_office_mode">;
|
|
842
|
+
}>, "strip", z.ZodTypeAny, {
|
|
843
|
+
message: string;
|
|
844
|
+
created_at: string;
|
|
845
|
+
warning_code: "salto_office_mode";
|
|
846
|
+
}, {
|
|
847
|
+
message: string;
|
|
848
|
+
created_at: string;
|
|
849
|
+
warning_code: "salto_office_mode";
|
|
850
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
851
|
+
message: z.ZodString;
|
|
852
|
+
created_at: z.ZodString;
|
|
853
|
+
}, {
|
|
854
|
+
warning_code: z.ZodLiteral<"salto_privacy_mode">;
|
|
855
|
+
}>, "strip", z.ZodTypeAny, {
|
|
856
|
+
message: string;
|
|
857
|
+
created_at: string;
|
|
858
|
+
warning_code: "salto_privacy_mode";
|
|
859
|
+
}, {
|
|
860
|
+
message: string;
|
|
861
|
+
created_at: string;
|
|
862
|
+
warning_code: "salto_privacy_mode";
|
|
863
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
864
|
+
message: z.ZodString;
|
|
865
|
+
created_at: z.ZodString;
|
|
866
|
+
}, {
|
|
867
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
|
|
868
|
+
}>, "strip", z.ZodTypeAny, {
|
|
869
|
+
message: string;
|
|
870
|
+
created_at: string;
|
|
871
|
+
warning_code: "unknown_issue_with_phone";
|
|
872
|
+
}, {
|
|
873
|
+
message: string;
|
|
874
|
+
created_at: string;
|
|
875
|
+
warning_code: "unknown_issue_with_phone";
|
|
876
|
+
}>]>;
|
|
877
|
+
export type DeviceWarning = z.infer<typeof device_warning>;
|
|
878
|
+
export declare const device_warning_map: z.ZodObject<{
|
|
879
|
+
partial_backup_access_code_pool: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
880
|
+
message: z.ZodString;
|
|
881
|
+
created_at: z.ZodString;
|
|
882
|
+
}, {
|
|
883
|
+
warning_code: z.ZodLiteral<"partial_backup_access_code_pool">;
|
|
884
|
+
}>, "strip", z.ZodTypeAny, {
|
|
885
|
+
message: string;
|
|
886
|
+
created_at: string;
|
|
887
|
+
warning_code: "partial_backup_access_code_pool";
|
|
888
|
+
}, {
|
|
889
|
+
message: string;
|
|
890
|
+
created_at: string;
|
|
891
|
+
warning_code: "partial_backup_access_code_pool";
|
|
892
|
+
}>>>;
|
|
893
|
+
many_active_backup_codes: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
894
|
+
message: z.ZodString;
|
|
895
|
+
created_at: z.ZodString;
|
|
896
|
+
}, {
|
|
897
|
+
warning_code: z.ZodLiteral<"many_active_backup_codes">;
|
|
898
|
+
}>, "strip", z.ZodTypeAny, {
|
|
899
|
+
message: string;
|
|
900
|
+
created_at: string;
|
|
901
|
+
warning_code: "many_active_backup_codes";
|
|
902
|
+
}, {
|
|
903
|
+
message: string;
|
|
904
|
+
created_at: string;
|
|
905
|
+
warning_code: "many_active_backup_codes";
|
|
906
|
+
}>>>;
|
|
907
|
+
salto_unknown_device_type: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
908
|
+
message: z.ZodString;
|
|
909
|
+
created_at: z.ZodString;
|
|
910
|
+
}, {
|
|
911
|
+
warning_code: z.ZodLiteral<"salto_unknown_device_type">;
|
|
912
|
+
}>, "strip", z.ZodTypeAny, {
|
|
913
|
+
message: string;
|
|
914
|
+
created_at: string;
|
|
915
|
+
warning_code: "salto_unknown_device_type";
|
|
916
|
+
}, {
|
|
917
|
+
message: string;
|
|
918
|
+
created_at: string;
|
|
919
|
+
warning_code: "salto_unknown_device_type";
|
|
920
|
+
}>>>;
|
|
921
|
+
wyze_device_missing_gateway: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
922
|
+
message: z.ZodString;
|
|
923
|
+
created_at: z.ZodString;
|
|
924
|
+
}, {
|
|
925
|
+
warning_code: z.ZodLiteral<"wyze_device_missing_gateway">;
|
|
926
|
+
}>, "strip", z.ZodTypeAny, {
|
|
927
|
+
message: string;
|
|
928
|
+
created_at: string;
|
|
929
|
+
warning_code: "wyze_device_missing_gateway";
|
|
930
|
+
}, {
|
|
931
|
+
message: string;
|
|
932
|
+
created_at: string;
|
|
933
|
+
warning_code: "wyze_device_missing_gateway";
|
|
934
|
+
}>>>;
|
|
935
|
+
functional_offline_device: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
936
|
+
message: z.ZodString;
|
|
937
|
+
created_at: z.ZodString;
|
|
938
|
+
}, {
|
|
939
|
+
warning_code: z.ZodLiteral<"functional_offline_device">;
|
|
940
|
+
}>, "strip", z.ZodTypeAny, {
|
|
941
|
+
message: string;
|
|
942
|
+
created_at: string;
|
|
943
|
+
warning_code: "functional_offline_device";
|
|
944
|
+
}, {
|
|
945
|
+
message: string;
|
|
946
|
+
created_at: string;
|
|
947
|
+
warning_code: "functional_offline_device";
|
|
948
|
+
}>>>;
|
|
949
|
+
third_party_integration_detected: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
950
|
+
message: z.ZodString;
|
|
951
|
+
created_at: z.ZodString;
|
|
952
|
+
}, {
|
|
953
|
+
warning_code: z.ZodLiteral<"third_party_integration_detected">;
|
|
954
|
+
}>, "strip", z.ZodTypeAny, {
|
|
955
|
+
message: string;
|
|
956
|
+
created_at: string;
|
|
957
|
+
warning_code: "third_party_integration_detected";
|
|
958
|
+
}, {
|
|
959
|
+
message: string;
|
|
960
|
+
created_at: string;
|
|
961
|
+
warning_code: "third_party_integration_detected";
|
|
962
|
+
}>>>;
|
|
963
|
+
nest_thermostat_in_manual_eco_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
964
|
+
message: z.ZodString;
|
|
965
|
+
created_at: z.ZodString;
|
|
966
|
+
}, {
|
|
967
|
+
warning_code: z.ZodLiteral<"nest_thermostat_in_manual_eco_mode">;
|
|
968
|
+
}>, "strip", z.ZodTypeAny, {
|
|
969
|
+
message: string;
|
|
970
|
+
created_at: string;
|
|
971
|
+
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
972
|
+
}, {
|
|
973
|
+
message: string;
|
|
974
|
+
created_at: string;
|
|
975
|
+
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
976
|
+
}>>>;
|
|
977
|
+
ttlock_lock_gateway_unlocking_not_enabled: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
978
|
+
message: z.ZodString;
|
|
979
|
+
created_at: z.ZodString;
|
|
980
|
+
}, {
|
|
981
|
+
warning_code: z.ZodLiteral<"ttlock_lock_gateway_unlocking_not_enabled">;
|
|
982
|
+
}>, "strip", z.ZodTypeAny, {
|
|
983
|
+
message: string;
|
|
984
|
+
created_at: string;
|
|
985
|
+
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
986
|
+
}, {
|
|
987
|
+
message: string;
|
|
988
|
+
created_at: string;
|
|
989
|
+
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
990
|
+
}>>>;
|
|
991
|
+
ttlock_weak_gateway_signal: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
992
|
+
message: z.ZodString;
|
|
993
|
+
created_at: z.ZodString;
|
|
994
|
+
}, {
|
|
995
|
+
warning_code: z.ZodLiteral<"ttlock_weak_gateway_signal">;
|
|
996
|
+
}>, "strip", z.ZodTypeAny, {
|
|
997
|
+
message: string;
|
|
998
|
+
created_at: string;
|
|
999
|
+
warning_code: "ttlock_weak_gateway_signal";
|
|
1000
|
+
}, {
|
|
1001
|
+
message: string;
|
|
1002
|
+
created_at: string;
|
|
1003
|
+
warning_code: "ttlock_weak_gateway_signal";
|
|
1004
|
+
}>>>;
|
|
1005
|
+
temperature_threshold_exceeded: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
1006
|
+
message: z.ZodString;
|
|
1007
|
+
created_at: z.ZodString;
|
|
1008
|
+
}, {
|
|
1009
|
+
warning_code: z.ZodLiteral<"temperature_threshold_exceeded">;
|
|
1010
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1011
|
+
message: string;
|
|
1012
|
+
created_at: string;
|
|
1013
|
+
warning_code: "temperature_threshold_exceeded";
|
|
1014
|
+
}, {
|
|
1015
|
+
message: string;
|
|
1016
|
+
created_at: string;
|
|
1017
|
+
warning_code: "temperature_threshold_exceeded";
|
|
1018
|
+
}>>>;
|
|
1019
|
+
device_communication_degraded: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
1020
|
+
message: z.ZodString;
|
|
1021
|
+
created_at: z.ZodString;
|
|
1022
|
+
}, {
|
|
1023
|
+
warning_code: z.ZodLiteral<"device_communication_degraded">;
|
|
1024
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1025
|
+
message: string;
|
|
1026
|
+
created_at: string;
|
|
1027
|
+
warning_code: "device_communication_degraded";
|
|
1028
|
+
}, {
|
|
1029
|
+
message: string;
|
|
1030
|
+
created_at: string;
|
|
1031
|
+
warning_code: "device_communication_degraded";
|
|
1032
|
+
}>>>;
|
|
1033
|
+
scheduled_maintenance_window: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
1034
|
+
message: z.ZodString;
|
|
1035
|
+
created_at: z.ZodString;
|
|
1036
|
+
}, {
|
|
1037
|
+
warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
|
|
1038
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1039
|
+
message: string;
|
|
1040
|
+
created_at: string;
|
|
1041
|
+
warning_code: "scheduled_maintenance_window";
|
|
1042
|
+
}, {
|
|
1043
|
+
message: string;
|
|
1044
|
+
created_at: string;
|
|
1045
|
+
warning_code: "scheduled_maintenance_window";
|
|
1046
|
+
}>>>;
|
|
1047
|
+
device_has_flaky_connection: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1048
|
+
message: z.ZodString;
|
|
1049
|
+
created_at: z.ZodString;
|
|
1050
|
+
}, {
|
|
1051
|
+
warning_code: z.ZodLiteral<"device_has_flaky_connection">;
|
|
1052
|
+
}>, {
|
|
1053
|
+
_event_id: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1055
|
+
message: string;
|
|
1056
|
+
created_at: string;
|
|
1057
|
+
warning_code: "device_has_flaky_connection";
|
|
1058
|
+
_event_id?: string | undefined;
|
|
1059
|
+
}, {
|
|
1060
|
+
message: string;
|
|
1061
|
+
created_at: string;
|
|
1062
|
+
warning_code: "device_has_flaky_connection";
|
|
1063
|
+
_event_id?: string | undefined;
|
|
1064
|
+
}>>>;
|
|
1065
|
+
salto_office_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
1066
|
+
message: z.ZodString;
|
|
1067
|
+
created_at: z.ZodString;
|
|
1068
|
+
}, {
|
|
1069
|
+
warning_code: z.ZodLiteral<"salto_office_mode">;
|
|
1070
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1071
|
+
message: string;
|
|
1072
|
+
created_at: string;
|
|
1073
|
+
warning_code: "salto_office_mode";
|
|
1074
|
+
}, {
|
|
1075
|
+
message: string;
|
|
1076
|
+
created_at: string;
|
|
1077
|
+
warning_code: "salto_office_mode";
|
|
1078
|
+
}>>>;
|
|
1079
|
+
salto_privacy_mode: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
1080
|
+
message: z.ZodString;
|
|
1081
|
+
created_at: z.ZodString;
|
|
1082
|
+
}, {
|
|
1083
|
+
warning_code: z.ZodLiteral<"salto_privacy_mode">;
|
|
1084
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1085
|
+
message: string;
|
|
1086
|
+
created_at: string;
|
|
1087
|
+
warning_code: "salto_privacy_mode";
|
|
1088
|
+
}, {
|
|
1089
|
+
message: string;
|
|
1090
|
+
created_at: string;
|
|
1091
|
+
warning_code: "salto_privacy_mode";
|
|
1092
|
+
}>>>;
|
|
1093
|
+
unknown_issue_with_phone: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
1094
|
+
message: z.ZodString;
|
|
1095
|
+
created_at: z.ZodString;
|
|
1096
|
+
}, {
|
|
1097
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
|
|
1098
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1099
|
+
message: string;
|
|
1100
|
+
created_at: string;
|
|
1101
|
+
warning_code: "unknown_issue_with_phone";
|
|
1102
|
+
}, {
|
|
1103
|
+
message: string;
|
|
1104
|
+
created_at: string;
|
|
1105
|
+
warning_code: "unknown_issue_with_phone";
|
|
1106
|
+
}>>>;
|
|
1107
|
+
}, "strip", z.ZodTypeAny, {
|
|
1108
|
+
scheduled_maintenance_window?: {
|
|
1109
|
+
message: string;
|
|
1110
|
+
created_at: string;
|
|
1111
|
+
warning_code: "scheduled_maintenance_window";
|
|
1112
|
+
} | null | undefined;
|
|
1113
|
+
partial_backup_access_code_pool?: {
|
|
1114
|
+
message: string;
|
|
1115
|
+
created_at: string;
|
|
1116
|
+
warning_code: "partial_backup_access_code_pool";
|
|
1117
|
+
} | null | undefined;
|
|
1118
|
+
many_active_backup_codes?: {
|
|
1119
|
+
message: string;
|
|
1120
|
+
created_at: string;
|
|
1121
|
+
warning_code: "many_active_backup_codes";
|
|
1122
|
+
} | null | undefined;
|
|
1123
|
+
salto_unknown_device_type?: {
|
|
1124
|
+
message: string;
|
|
1125
|
+
created_at: string;
|
|
1126
|
+
warning_code: "salto_unknown_device_type";
|
|
1127
|
+
} | null | undefined;
|
|
1128
|
+
salto_office_mode?: {
|
|
1129
|
+
message: string;
|
|
1130
|
+
created_at: string;
|
|
1131
|
+
warning_code: "salto_office_mode";
|
|
1132
|
+
} | null | undefined;
|
|
1133
|
+
salto_privacy_mode?: {
|
|
1134
|
+
message: string;
|
|
1135
|
+
created_at: string;
|
|
1136
|
+
warning_code: "salto_privacy_mode";
|
|
1137
|
+
} | null | undefined;
|
|
1138
|
+
wyze_device_missing_gateway?: {
|
|
1139
|
+
message: string;
|
|
1140
|
+
created_at: string;
|
|
1141
|
+
warning_code: "wyze_device_missing_gateway";
|
|
1142
|
+
} | null | undefined;
|
|
1143
|
+
functional_offline_device?: {
|
|
1144
|
+
message: string;
|
|
1145
|
+
created_at: string;
|
|
1146
|
+
warning_code: "functional_offline_device";
|
|
1147
|
+
} | null | undefined;
|
|
1148
|
+
third_party_integration_detected?: {
|
|
1149
|
+
message: string;
|
|
1150
|
+
created_at: string;
|
|
1151
|
+
warning_code: "third_party_integration_detected";
|
|
1152
|
+
} | null | undefined;
|
|
1153
|
+
nest_thermostat_in_manual_eco_mode?: {
|
|
1154
|
+
message: string;
|
|
1155
|
+
created_at: string;
|
|
1156
|
+
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
1157
|
+
} | null | undefined;
|
|
1158
|
+
ttlock_lock_gateway_unlocking_not_enabled?: {
|
|
1159
|
+
message: string;
|
|
1160
|
+
created_at: string;
|
|
1161
|
+
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
1162
|
+
} | null | undefined;
|
|
1163
|
+
ttlock_weak_gateway_signal?: {
|
|
1164
|
+
message: string;
|
|
1165
|
+
created_at: string;
|
|
1166
|
+
warning_code: "ttlock_weak_gateway_signal";
|
|
1167
|
+
} | null | undefined;
|
|
1168
|
+
temperature_threshold_exceeded?: {
|
|
1169
|
+
message: string;
|
|
1170
|
+
created_at: string;
|
|
1171
|
+
warning_code: "temperature_threshold_exceeded";
|
|
1172
|
+
} | null | undefined;
|
|
1173
|
+
device_communication_degraded?: {
|
|
1174
|
+
message: string;
|
|
1175
|
+
created_at: string;
|
|
1176
|
+
warning_code: "device_communication_degraded";
|
|
1177
|
+
} | null | undefined;
|
|
1178
|
+
device_has_flaky_connection?: {
|
|
1179
|
+
message: string;
|
|
1180
|
+
created_at: string;
|
|
1181
|
+
warning_code: "device_has_flaky_connection";
|
|
1182
|
+
_event_id?: string | undefined;
|
|
1183
|
+
} | null | undefined;
|
|
1184
|
+
unknown_issue_with_phone?: {
|
|
1185
|
+
message: string;
|
|
1186
|
+
created_at: string;
|
|
1187
|
+
warning_code: "unknown_issue_with_phone";
|
|
1188
|
+
} | null | undefined;
|
|
1189
|
+
}, {
|
|
1190
|
+
scheduled_maintenance_window?: {
|
|
1191
|
+
message: string;
|
|
1192
|
+
created_at: string;
|
|
1193
|
+
warning_code: "scheduled_maintenance_window";
|
|
1194
|
+
} | null | undefined;
|
|
1195
|
+
partial_backup_access_code_pool?: {
|
|
1196
|
+
message: string;
|
|
1197
|
+
created_at: string;
|
|
1198
|
+
warning_code: "partial_backup_access_code_pool";
|
|
1199
|
+
} | null | undefined;
|
|
1200
|
+
many_active_backup_codes?: {
|
|
1201
|
+
message: string;
|
|
1202
|
+
created_at: string;
|
|
1203
|
+
warning_code: "many_active_backup_codes";
|
|
1204
|
+
} | null | undefined;
|
|
1205
|
+
salto_unknown_device_type?: {
|
|
1206
|
+
message: string;
|
|
1207
|
+
created_at: string;
|
|
1208
|
+
warning_code: "salto_unknown_device_type";
|
|
1209
|
+
} | null | undefined;
|
|
1210
|
+
salto_office_mode?: {
|
|
1211
|
+
message: string;
|
|
1212
|
+
created_at: string;
|
|
1213
|
+
warning_code: "salto_office_mode";
|
|
1214
|
+
} | null | undefined;
|
|
1215
|
+
salto_privacy_mode?: {
|
|
1216
|
+
message: string;
|
|
1217
|
+
created_at: string;
|
|
1218
|
+
warning_code: "salto_privacy_mode";
|
|
1219
|
+
} | null | undefined;
|
|
1220
|
+
wyze_device_missing_gateway?: {
|
|
1221
|
+
message: string;
|
|
1222
|
+
created_at: string;
|
|
1223
|
+
warning_code: "wyze_device_missing_gateway";
|
|
1224
|
+
} | null | undefined;
|
|
1225
|
+
functional_offline_device?: {
|
|
1226
|
+
message: string;
|
|
1227
|
+
created_at: string;
|
|
1228
|
+
warning_code: "functional_offline_device";
|
|
1229
|
+
} | null | undefined;
|
|
1230
|
+
third_party_integration_detected?: {
|
|
1231
|
+
message: string;
|
|
1232
|
+
created_at: string;
|
|
1233
|
+
warning_code: "third_party_integration_detected";
|
|
1234
|
+
} | null | undefined;
|
|
1235
|
+
nest_thermostat_in_manual_eco_mode?: {
|
|
1236
|
+
message: string;
|
|
1237
|
+
created_at: string;
|
|
1238
|
+
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
1239
|
+
} | null | undefined;
|
|
1240
|
+
ttlock_lock_gateway_unlocking_not_enabled?: {
|
|
1241
|
+
message: string;
|
|
1242
|
+
created_at: string;
|
|
1243
|
+
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
1244
|
+
} | null | undefined;
|
|
1245
|
+
ttlock_weak_gateway_signal?: {
|
|
1246
|
+
message: string;
|
|
1247
|
+
created_at: string;
|
|
1248
|
+
warning_code: "ttlock_weak_gateway_signal";
|
|
1249
|
+
} | null | undefined;
|
|
1250
|
+
temperature_threshold_exceeded?: {
|
|
1251
|
+
message: string;
|
|
1252
|
+
created_at: string;
|
|
1253
|
+
warning_code: "temperature_threshold_exceeded";
|
|
1254
|
+
} | null | undefined;
|
|
1255
|
+
device_communication_degraded?: {
|
|
1256
|
+
message: string;
|
|
1257
|
+
created_at: string;
|
|
1258
|
+
warning_code: "device_communication_degraded";
|
|
1259
|
+
} | null | undefined;
|
|
1260
|
+
device_has_flaky_connection?: {
|
|
1261
|
+
message: string;
|
|
1262
|
+
created_at: string;
|
|
1263
|
+
warning_code: "device_has_flaky_connection";
|
|
1264
|
+
_event_id?: string | undefined;
|
|
1265
|
+
} | null | undefined;
|
|
1266
|
+
unknown_issue_with_phone?: {
|
|
1267
|
+
message: string;
|
|
1268
|
+
created_at: string;
|
|
1269
|
+
warning_code: "unknown_issue_with_phone";
|
|
1270
|
+
} | null | undefined;
|
|
1271
|
+
}>;
|
|
1272
|
+
export type DeviceWarningMap = z.infer<typeof device_warning_map>;
|
|
1273
|
+
export declare const common_device_properties: z.ZodObject<{
|
|
1274
|
+
online: z.ZodBoolean;
|
|
1275
|
+
name: z.ZodString;
|
|
1276
|
+
accessory_keypad: z.ZodOptional<z.ZodObject<{
|
|
1277
|
+
is_connected: z.ZodBoolean;
|
|
1278
|
+
battery: z.ZodOptional<z.ZodObject<{
|
|
1279
|
+
level: z.ZodNumber;
|
|
1280
|
+
}, "strip", z.ZodTypeAny, {
|
|
1281
|
+
level: number;
|
|
1282
|
+
}, {
|
|
1283
|
+
level: number;
|
|
1284
|
+
}>>;
|
|
1285
|
+
}, "strip", z.ZodTypeAny, {
|
|
1286
|
+
is_connected: boolean;
|
|
1287
|
+
battery?: {
|
|
1288
|
+
level: number;
|
|
1289
|
+
} | undefined;
|
|
1290
|
+
}, {
|
|
1291
|
+
is_connected: boolean;
|
|
1292
|
+
battery?: {
|
|
1293
|
+
level: number;
|
|
1294
|
+
} | undefined;
|
|
1295
|
+
}>>;
|
|
1296
|
+
appearance: z.ZodObject<{
|
|
1297
|
+
name: z.ZodString;
|
|
1298
|
+
}, "strip", z.ZodTypeAny, {
|
|
1299
|
+
name: string;
|
|
1300
|
+
}, {
|
|
1301
|
+
name: string;
|
|
1302
|
+
}>;
|
|
1303
|
+
model: z.ZodObject<{
|
|
1304
|
+
can_connect_accessory_keypad: z.ZodOptional<z.ZodBoolean>;
|
|
1305
|
+
display_name: z.ZodString;
|
|
1306
|
+
manufacturer_display_name: z.ZodString;
|
|
1307
|
+
has_built_in_keypad: z.ZodOptional<z.ZodBoolean>;
|
|
1308
|
+
offline_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
|
|
1309
|
+
online_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
|
|
1310
|
+
accessory_keypad_supported: z.ZodOptional<z.ZodBoolean>;
|
|
1311
|
+
}, "strip", z.ZodTypeAny, {
|
|
1312
|
+
display_name: string;
|
|
1313
|
+
manufacturer_display_name: string;
|
|
1314
|
+
can_connect_accessory_keypad?: boolean | undefined;
|
|
1315
|
+
has_built_in_keypad?: boolean | undefined;
|
|
1316
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
1317
|
+
online_access_codes_supported?: boolean | undefined;
|
|
1318
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
1319
|
+
}, {
|
|
1320
|
+
display_name: string;
|
|
1321
|
+
manufacturer_display_name: string;
|
|
1322
|
+
can_connect_accessory_keypad?: boolean | undefined;
|
|
1323
|
+
has_built_in_keypad?: boolean | undefined;
|
|
1324
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
1325
|
+
online_access_codes_supported?: boolean | undefined;
|
|
1326
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
1327
|
+
}>;
|
|
1328
|
+
has_direct_power: z.ZodOptional<z.ZodBoolean>;
|
|
1329
|
+
battery_level: z.ZodOptional<z.ZodNumber>;
|
|
1330
|
+
battery: z.ZodOptional<z.ZodObject<{
|
|
1331
|
+
level: z.ZodNumber;
|
|
1332
|
+
status: z.ZodEnum<["critical", "low", "good", "full"]>;
|
|
1333
|
+
}, "strip", z.ZodTypeAny, {
|
|
1334
|
+
status: "low" | "full" | "critical" | "good";
|
|
1335
|
+
level: number;
|
|
1336
|
+
}, {
|
|
1337
|
+
status: "low" | "full" | "critical" | "good";
|
|
1338
|
+
level: number;
|
|
1339
|
+
}>>;
|
|
1340
|
+
manufacturer: z.ZodOptional<z.ZodString>;
|
|
1341
|
+
image_url: z.ZodOptional<z.ZodString>;
|
|
1342
|
+
image_alt_text: z.ZodOptional<z.ZodString>;
|
|
1343
|
+
serial_number: z.ZodOptional<z.ZodString>;
|
|
1344
|
+
online_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1345
|
+
offline_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1346
|
+
supports_accessory_keypad: z.ZodOptional<z.ZodBoolean>;
|
|
1347
|
+
supports_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
1348
|
+
noise_level_decibels: z.ZodOptional<z.ZodNumber>;
|
|
1349
|
+
currently_triggering_noise_threshold_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1350
|
+
}, "strip", z.ZodTypeAny, {
|
|
1351
|
+
name: string;
|
|
1352
|
+
appearance: {
|
|
1353
|
+
name: string;
|
|
1354
|
+
};
|
|
1355
|
+
online: boolean;
|
|
1356
|
+
model: {
|
|
1357
|
+
display_name: string;
|
|
1358
|
+
manufacturer_display_name: string;
|
|
1359
|
+
can_connect_accessory_keypad?: boolean | undefined;
|
|
1360
|
+
has_built_in_keypad?: boolean | undefined;
|
|
1361
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
1362
|
+
online_access_codes_supported?: boolean | undefined;
|
|
1363
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
1364
|
+
};
|
|
1365
|
+
battery?: {
|
|
1366
|
+
status: "low" | "full" | "critical" | "good";
|
|
1367
|
+
level: number;
|
|
1368
|
+
} | undefined;
|
|
1369
|
+
manufacturer?: string | undefined;
|
|
1370
|
+
battery_level?: number | undefined;
|
|
1371
|
+
serial_number?: string | undefined;
|
|
1372
|
+
accessory_keypad?: {
|
|
1373
|
+
is_connected: boolean;
|
|
1374
|
+
battery?: {
|
|
1375
|
+
level: number;
|
|
1376
|
+
} | undefined;
|
|
1377
|
+
} | undefined;
|
|
1378
|
+
has_direct_power?: boolean | undefined;
|
|
1379
|
+
image_url?: string | undefined;
|
|
1380
|
+
image_alt_text?: string | undefined;
|
|
1381
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
1382
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
1383
|
+
supports_accessory_keypad?: boolean | undefined;
|
|
1384
|
+
supports_offline_access_codes?: boolean | undefined;
|
|
1385
|
+
noise_level_decibels?: number | undefined;
|
|
1386
|
+
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
1387
|
+
}, {
|
|
1388
|
+
name: string;
|
|
1389
|
+
appearance: {
|
|
1390
|
+
name: string;
|
|
1391
|
+
};
|
|
1392
|
+
online: boolean;
|
|
1393
|
+
model: {
|
|
1394
|
+
display_name: string;
|
|
1395
|
+
manufacturer_display_name: string;
|
|
1396
|
+
can_connect_accessory_keypad?: boolean | undefined;
|
|
1397
|
+
has_built_in_keypad?: boolean | undefined;
|
|
1398
|
+
offline_access_codes_supported?: boolean | undefined;
|
|
1399
|
+
online_access_codes_supported?: boolean | undefined;
|
|
1400
|
+
accessory_keypad_supported?: boolean | undefined;
|
|
1401
|
+
};
|
|
1402
|
+
battery?: {
|
|
1403
|
+
status: "low" | "full" | "critical" | "good";
|
|
1404
|
+
level: number;
|
|
1405
|
+
} | undefined;
|
|
1406
|
+
manufacturer?: string | undefined;
|
|
1407
|
+
battery_level?: number | undefined;
|
|
1408
|
+
serial_number?: string | undefined;
|
|
1409
|
+
accessory_keypad?: {
|
|
1410
|
+
is_connected: boolean;
|
|
1411
|
+
battery?: {
|
|
1412
|
+
level: number;
|
|
1413
|
+
} | undefined;
|
|
1414
|
+
} | undefined;
|
|
1415
|
+
has_direct_power?: boolean | undefined;
|
|
1416
|
+
image_url?: string | undefined;
|
|
1417
|
+
image_alt_text?: string | undefined;
|
|
1418
|
+
online_access_codes_enabled?: boolean | undefined;
|
|
1419
|
+
offline_access_codes_enabled?: boolean | undefined;
|
|
1420
|
+
supports_accessory_keypad?: boolean | undefined;
|
|
1421
|
+
supports_offline_access_codes?: boolean | undefined;
|
|
1422
|
+
noise_level_decibels?: number | undefined;
|
|
1423
|
+
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
1424
|
+
}>;
|
|
1425
|
+
export declare const device_and_connected_account_error_options: (z.ZodObject<z.objectUtil.extendShape<{
|
|
1426
|
+
created_at: z.ZodString;
|
|
1427
|
+
message: z.ZodString;
|
|
1428
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
1429
|
+
}, {
|
|
1430
|
+
error_code: z.ZodLiteral<"account_disconnected">;
|
|
1431
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1432
|
+
message: string;
|
|
1433
|
+
created_at: string;
|
|
1434
|
+
error_code: "account_disconnected";
|
|
1435
|
+
is_connected_account_error: true;
|
|
1436
|
+
}, {
|
|
1437
|
+
message: string;
|
|
1438
|
+
created_at: string;
|
|
1439
|
+
error_code: "account_disconnected";
|
|
1440
|
+
is_connected_account_error: true;
|
|
1441
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1442
|
+
created_at: z.ZodString;
|
|
1443
|
+
message: z.ZodString;
|
|
1444
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
1445
|
+
}, {
|
|
1446
|
+
error_code: z.ZodLiteral<"invalid_credentials">;
|
|
1447
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1448
|
+
message: string;
|
|
1449
|
+
created_at: string;
|
|
1450
|
+
error_code: "invalid_credentials";
|
|
1451
|
+
is_connected_account_error: true;
|
|
1452
|
+
}, {
|
|
1453
|
+
message: string;
|
|
1454
|
+
created_at: string;
|
|
1455
|
+
error_code: "invalid_credentials";
|
|
1456
|
+
is_connected_account_error: true;
|
|
1457
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1458
|
+
created_at: z.ZodString;
|
|
1459
|
+
message: z.ZodString;
|
|
1460
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
1461
|
+
}, {
|
|
1462
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
1463
|
+
salto_ks_metadata: z.ZodObject<{
|
|
1464
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
1465
|
+
site_id: z.ZodString;
|
|
1466
|
+
site_name: z.ZodString;
|
|
1467
|
+
subscribed_site_user_count: z.ZodNumber;
|
|
1468
|
+
site_user_subscription_limit: z.ZodNumber;
|
|
1469
|
+
}, "strip", z.ZodTypeAny, {
|
|
1470
|
+
site_id: string;
|
|
1471
|
+
site_name: string;
|
|
1472
|
+
subscribed_site_user_count: number;
|
|
1473
|
+
site_user_subscription_limit: number;
|
|
1474
|
+
}, {
|
|
1475
|
+
site_id: string;
|
|
1476
|
+
site_name: string;
|
|
1477
|
+
subscribed_site_user_count: number;
|
|
1478
|
+
site_user_subscription_limit: number;
|
|
1479
|
+
}>, "many">;
|
|
1480
|
+
}, "strip", z.ZodTypeAny, {
|
|
1481
|
+
sites: {
|
|
1482
|
+
site_id: string;
|
|
1483
|
+
site_name: string;
|
|
1484
|
+
subscribed_site_user_count: number;
|
|
1485
|
+
site_user_subscription_limit: number;
|
|
1486
|
+
}[];
|
|
1487
|
+
}, {
|
|
1488
|
+
sites: {
|
|
1489
|
+
site_id: string;
|
|
1490
|
+
site_name: string;
|
|
1491
|
+
subscribed_site_user_count: number;
|
|
1492
|
+
site_user_subscription_limit: number;
|
|
1493
|
+
}[];
|
|
1494
|
+
}>;
|
|
1495
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1496
|
+
message: string;
|
|
1497
|
+
created_at: string;
|
|
1498
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1499
|
+
is_connected_account_error: true;
|
|
1500
|
+
salto_ks_metadata: {
|
|
1501
|
+
sites: {
|
|
1502
|
+
site_id: string;
|
|
1503
|
+
site_name: string;
|
|
1504
|
+
subscribed_site_user_count: number;
|
|
1505
|
+
site_user_subscription_limit: number;
|
|
1506
|
+
}[];
|
|
1507
|
+
};
|
|
1508
|
+
}, {
|
|
1509
|
+
message: string;
|
|
1510
|
+
created_at: string;
|
|
1511
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1512
|
+
is_connected_account_error: true;
|
|
1513
|
+
salto_ks_metadata: {
|
|
1514
|
+
sites: {
|
|
1515
|
+
site_id: string;
|
|
1516
|
+
site_name: string;
|
|
1517
|
+
subscribed_site_user_count: number;
|
|
1518
|
+
site_user_subscription_limit: number;
|
|
1519
|
+
}[];
|
|
1520
|
+
};
|
|
1521
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1522
|
+
message: z.ZodString;
|
|
1523
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1524
|
+
created_at: z.ZodString;
|
|
1525
|
+
}, {
|
|
1526
|
+
error_code: z.ZodLiteral<"device_offline">;
|
|
1527
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1528
|
+
message: string;
|
|
1529
|
+
created_at: string;
|
|
1530
|
+
error_code: "device_offline";
|
|
1531
|
+
is_device_error: true;
|
|
1532
|
+
}, {
|
|
1533
|
+
message: string;
|
|
1534
|
+
created_at: string;
|
|
1535
|
+
error_code: "device_offline";
|
|
1536
|
+
is_device_error: true;
|
|
1537
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1538
|
+
message: z.ZodString;
|
|
1539
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1540
|
+
created_at: z.ZodString;
|
|
1541
|
+
}, {
|
|
1542
|
+
error_code: z.ZodLiteral<"device_removed">;
|
|
1543
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1544
|
+
message: string;
|
|
1545
|
+
created_at: string;
|
|
1546
|
+
error_code: "device_removed";
|
|
1547
|
+
is_device_error: true;
|
|
1548
|
+
}, {
|
|
1549
|
+
message: string;
|
|
1550
|
+
created_at: string;
|
|
1551
|
+
error_code: "device_removed";
|
|
1552
|
+
is_device_error: true;
|
|
1553
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1554
|
+
message: z.ZodString;
|
|
1555
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1556
|
+
created_at: z.ZodString;
|
|
1557
|
+
}, {
|
|
1558
|
+
error_code: z.ZodLiteral<"hub_disconnected">;
|
|
1559
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1560
|
+
message: string;
|
|
1561
|
+
created_at: string;
|
|
1562
|
+
error_code: "hub_disconnected";
|
|
1563
|
+
is_device_error: true;
|
|
1564
|
+
}, {
|
|
1565
|
+
message: string;
|
|
1566
|
+
created_at: string;
|
|
1567
|
+
error_code: "hub_disconnected";
|
|
1568
|
+
is_device_error: true;
|
|
1569
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1570
|
+
message: z.ZodString;
|
|
1571
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1572
|
+
created_at: z.ZodString;
|
|
1573
|
+
}, {
|
|
1574
|
+
error_code: z.ZodLiteral<"device_disconnected">;
|
|
1575
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1576
|
+
message: string;
|
|
1577
|
+
created_at: string;
|
|
1578
|
+
error_code: "device_disconnected";
|
|
1579
|
+
is_device_error: true;
|
|
1580
|
+
}, {
|
|
1581
|
+
message: string;
|
|
1582
|
+
created_at: string;
|
|
1583
|
+
error_code: "device_disconnected";
|
|
1584
|
+
is_device_error: true;
|
|
1585
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1586
|
+
message: z.ZodString;
|
|
1587
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1588
|
+
created_at: z.ZodString;
|
|
1589
|
+
}, {
|
|
1590
|
+
error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
|
|
1591
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1592
|
+
message: string;
|
|
1593
|
+
created_at: string;
|
|
1594
|
+
error_code: "empty_backup_access_code_pool";
|
|
1595
|
+
is_device_error: true;
|
|
1596
|
+
}, {
|
|
1597
|
+
message: string;
|
|
1598
|
+
created_at: string;
|
|
1599
|
+
error_code: "empty_backup_access_code_pool";
|
|
1600
|
+
is_device_error: true;
|
|
1601
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1602
|
+
message: z.ZodString;
|
|
1603
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1604
|
+
created_at: z.ZodString;
|
|
1605
|
+
}, {
|
|
1606
|
+
error_code: z.ZodLiteral<"august_lock_not_authorized">;
|
|
1607
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1608
|
+
message: string;
|
|
1609
|
+
created_at: string;
|
|
1610
|
+
error_code: "august_lock_not_authorized";
|
|
1611
|
+
is_device_error: true;
|
|
1612
|
+
}, {
|
|
1613
|
+
message: string;
|
|
1614
|
+
created_at: string;
|
|
1615
|
+
error_code: "august_lock_not_authorized";
|
|
1616
|
+
is_device_error: true;
|
|
1617
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1618
|
+
message: z.ZodString;
|
|
1619
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1620
|
+
created_at: z.ZodString;
|
|
1621
|
+
}, {
|
|
1622
|
+
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
1623
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1624
|
+
message: string;
|
|
1625
|
+
created_at: string;
|
|
1626
|
+
error_code: "august_lock_missing_bridge";
|
|
1627
|
+
is_device_error: true;
|
|
1628
|
+
}, {
|
|
1629
|
+
message: string;
|
|
1630
|
+
created_at: string;
|
|
1631
|
+
error_code: "august_lock_missing_bridge";
|
|
1632
|
+
is_device_error: true;
|
|
1633
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
1634
|
+
message: z.ZodString;
|
|
1635
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1636
|
+
created_at: z.ZodString;
|
|
1637
|
+
}, {
|
|
1638
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
1639
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
1640
|
+
is_device_error: z.ZodLiteral<false>;
|
|
1641
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1642
|
+
message: string;
|
|
1643
|
+
created_at: string;
|
|
1644
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1645
|
+
is_connected_account_error: true;
|
|
1646
|
+
is_device_error: false;
|
|
1647
|
+
}, {
|
|
1648
|
+
message: string;
|
|
1649
|
+
created_at: string;
|
|
1650
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
1651
|
+
is_connected_account_error: true;
|
|
1652
|
+
is_device_error: false;
|
|
1653
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
332
1654
|
message: z.ZodString;
|
|
1655
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1656
|
+
created_at: z.ZodString;
|
|
333
1657
|
}, {
|
|
334
|
-
|
|
1658
|
+
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
335
1659
|
}>, "strip", z.ZodTypeAny, {
|
|
336
1660
|
message: string;
|
|
337
|
-
|
|
1661
|
+
created_at: string;
|
|
1662
|
+
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
1663
|
+
is_device_error: true;
|
|
338
1664
|
}, {
|
|
339
1665
|
message: string;
|
|
340
|
-
|
|
341
|
-
|
|
1666
|
+
created_at: string;
|
|
1667
|
+
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
1668
|
+
is_device_error: true;
|
|
1669
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
342
1670
|
message: z.ZodString;
|
|
1671
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1672
|
+
created_at: z.ZodString;
|
|
343
1673
|
}, {
|
|
344
|
-
|
|
1674
|
+
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
345
1675
|
}>, "strip", z.ZodTypeAny, {
|
|
346
1676
|
message: string;
|
|
347
|
-
|
|
1677
|
+
created_at: string;
|
|
1678
|
+
error_code: "missing_device_credentials";
|
|
1679
|
+
is_device_error: true;
|
|
348
1680
|
}, {
|
|
349
1681
|
message: string;
|
|
350
|
-
|
|
351
|
-
|
|
1682
|
+
created_at: string;
|
|
1683
|
+
error_code: "missing_device_credentials";
|
|
1684
|
+
is_device_error: true;
|
|
1685
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
352
1686
|
message: z.ZodString;
|
|
1687
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1688
|
+
created_at: z.ZodString;
|
|
353
1689
|
}, {
|
|
354
|
-
|
|
1690
|
+
error_code: z.ZodLiteral<"auxiliary_heat_running">;
|
|
355
1691
|
}>, "strip", z.ZodTypeAny, {
|
|
356
1692
|
message: string;
|
|
357
|
-
|
|
1693
|
+
created_at: string;
|
|
1694
|
+
error_code: "auxiliary_heat_running";
|
|
1695
|
+
is_device_error: true;
|
|
358
1696
|
}, {
|
|
359
1697
|
message: string;
|
|
360
|
-
|
|
361
|
-
|
|
1698
|
+
created_at: string;
|
|
1699
|
+
error_code: "auxiliary_heat_running";
|
|
1700
|
+
is_device_error: true;
|
|
1701
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
362
1702
|
message: z.ZodString;
|
|
1703
|
+
is_device_error: z.ZodLiteral<true>;
|
|
1704
|
+
created_at: z.ZodString;
|
|
363
1705
|
}, {
|
|
364
|
-
|
|
1706
|
+
error_code: z.ZodLiteral<"subscription_required">;
|
|
365
1707
|
}>, "strip", z.ZodTypeAny, {
|
|
366
1708
|
message: string;
|
|
367
|
-
|
|
1709
|
+
created_at: string;
|
|
1710
|
+
error_code: "subscription_required";
|
|
1711
|
+
is_device_error: true;
|
|
368
1712
|
}, {
|
|
369
1713
|
message: string;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
online: z.ZodBoolean;
|
|
375
|
-
name: z.ZodString;
|
|
376
|
-
accessory_keypad: z.ZodOptional<z.ZodObject<{
|
|
377
|
-
is_connected: z.ZodBoolean;
|
|
378
|
-
battery: z.ZodOptional<z.ZodObject<{
|
|
379
|
-
level: z.ZodNumber;
|
|
380
|
-
}, "strip", z.ZodTypeAny, {
|
|
381
|
-
level: number;
|
|
382
|
-
}, {
|
|
383
|
-
level: number;
|
|
384
|
-
}>>;
|
|
385
|
-
}, "strip", z.ZodTypeAny, {
|
|
386
|
-
is_connected: boolean;
|
|
387
|
-
battery?: {
|
|
388
|
-
level: number;
|
|
389
|
-
} | undefined;
|
|
390
|
-
}, {
|
|
391
|
-
is_connected: boolean;
|
|
392
|
-
battery?: {
|
|
393
|
-
level: number;
|
|
394
|
-
} | undefined;
|
|
395
|
-
}>>;
|
|
396
|
-
appearance: z.ZodObject<{
|
|
397
|
-
name: z.ZodString;
|
|
398
|
-
}, "strip", z.ZodTypeAny, {
|
|
399
|
-
name: string;
|
|
400
|
-
}, {
|
|
401
|
-
name: string;
|
|
402
|
-
}>;
|
|
403
|
-
model: z.ZodObject<{
|
|
404
|
-
can_connect_accessory_keypad: z.ZodOptional<z.ZodBoolean>;
|
|
405
|
-
display_name: z.ZodString;
|
|
406
|
-
manufacturer_display_name: z.ZodString;
|
|
407
|
-
has_built_in_keypad: z.ZodOptional<z.ZodBoolean>;
|
|
408
|
-
offline_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
|
|
409
|
-
online_access_codes_supported: z.ZodOptional<z.ZodBoolean>;
|
|
410
|
-
accessory_keypad_supported: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
-
}, "strip", z.ZodTypeAny, {
|
|
412
|
-
display_name: string;
|
|
413
|
-
manufacturer_display_name: string;
|
|
414
|
-
can_connect_accessory_keypad?: boolean | undefined;
|
|
415
|
-
has_built_in_keypad?: boolean | undefined;
|
|
416
|
-
offline_access_codes_supported?: boolean | undefined;
|
|
417
|
-
online_access_codes_supported?: boolean | undefined;
|
|
418
|
-
accessory_keypad_supported?: boolean | undefined;
|
|
419
|
-
}, {
|
|
420
|
-
display_name: string;
|
|
421
|
-
manufacturer_display_name: string;
|
|
422
|
-
can_connect_accessory_keypad?: boolean | undefined;
|
|
423
|
-
has_built_in_keypad?: boolean | undefined;
|
|
424
|
-
offline_access_codes_supported?: boolean | undefined;
|
|
425
|
-
online_access_codes_supported?: boolean | undefined;
|
|
426
|
-
accessory_keypad_supported?: boolean | undefined;
|
|
427
|
-
}>;
|
|
428
|
-
has_direct_power: z.ZodOptional<z.ZodBoolean>;
|
|
429
|
-
battery_level: z.ZodOptional<z.ZodNumber>;
|
|
430
|
-
battery: z.ZodOptional<z.ZodObject<{
|
|
431
|
-
level: z.ZodNumber;
|
|
432
|
-
status: z.ZodEnum<["critical", "low", "good", "full"]>;
|
|
433
|
-
}, "strip", z.ZodTypeAny, {
|
|
434
|
-
status: "low" | "full" | "critical" | "good";
|
|
435
|
-
level: number;
|
|
436
|
-
}, {
|
|
437
|
-
status: "low" | "full" | "critical" | "good";
|
|
438
|
-
level: number;
|
|
439
|
-
}>>;
|
|
440
|
-
manufacturer: z.ZodOptional<z.ZodString>;
|
|
441
|
-
image_url: z.ZodOptional<z.ZodString>;
|
|
442
|
-
image_alt_text: z.ZodOptional<z.ZodString>;
|
|
443
|
-
serial_number: z.ZodOptional<z.ZodString>;
|
|
444
|
-
online_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
445
|
-
offline_access_codes_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
446
|
-
supports_accessory_keypad: z.ZodOptional<z.ZodBoolean>;
|
|
447
|
-
supports_offline_access_codes: z.ZodOptional<z.ZodBoolean>;
|
|
448
|
-
noise_level_decibels: z.ZodOptional<z.ZodNumber>;
|
|
449
|
-
currently_triggering_noise_threshold_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
450
|
-
}, "strip", z.ZodTypeAny, {
|
|
451
|
-
name: string;
|
|
452
|
-
appearance: {
|
|
453
|
-
name: string;
|
|
454
|
-
};
|
|
455
|
-
online: boolean;
|
|
456
|
-
model: {
|
|
457
|
-
display_name: string;
|
|
458
|
-
manufacturer_display_name: string;
|
|
459
|
-
can_connect_accessory_keypad?: boolean | undefined;
|
|
460
|
-
has_built_in_keypad?: boolean | undefined;
|
|
461
|
-
offline_access_codes_supported?: boolean | undefined;
|
|
462
|
-
online_access_codes_supported?: boolean | undefined;
|
|
463
|
-
accessory_keypad_supported?: boolean | undefined;
|
|
464
|
-
};
|
|
465
|
-
battery?: {
|
|
466
|
-
status: "low" | "full" | "critical" | "good";
|
|
467
|
-
level: number;
|
|
468
|
-
} | undefined;
|
|
469
|
-
manufacturer?: string | undefined;
|
|
470
|
-
battery_level?: number | undefined;
|
|
471
|
-
serial_number?: string | undefined;
|
|
472
|
-
accessory_keypad?: {
|
|
473
|
-
is_connected: boolean;
|
|
474
|
-
battery?: {
|
|
475
|
-
level: number;
|
|
476
|
-
} | undefined;
|
|
477
|
-
} | undefined;
|
|
478
|
-
has_direct_power?: boolean | undefined;
|
|
479
|
-
image_url?: string | undefined;
|
|
480
|
-
image_alt_text?: string | undefined;
|
|
481
|
-
online_access_codes_enabled?: boolean | undefined;
|
|
482
|
-
offline_access_codes_enabled?: boolean | undefined;
|
|
483
|
-
supports_accessory_keypad?: boolean | undefined;
|
|
484
|
-
supports_offline_access_codes?: boolean | undefined;
|
|
485
|
-
noise_level_decibels?: number | undefined;
|
|
486
|
-
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
487
|
-
}, {
|
|
488
|
-
name: string;
|
|
489
|
-
appearance: {
|
|
490
|
-
name: string;
|
|
491
|
-
};
|
|
492
|
-
online: boolean;
|
|
493
|
-
model: {
|
|
494
|
-
display_name: string;
|
|
495
|
-
manufacturer_display_name: string;
|
|
496
|
-
can_connect_accessory_keypad?: boolean | undefined;
|
|
497
|
-
has_built_in_keypad?: boolean | undefined;
|
|
498
|
-
offline_access_codes_supported?: boolean | undefined;
|
|
499
|
-
online_access_codes_supported?: boolean | undefined;
|
|
500
|
-
accessory_keypad_supported?: boolean | undefined;
|
|
501
|
-
};
|
|
502
|
-
battery?: {
|
|
503
|
-
status: "low" | "full" | "critical" | "good";
|
|
504
|
-
level: number;
|
|
505
|
-
} | undefined;
|
|
506
|
-
manufacturer?: string | undefined;
|
|
507
|
-
battery_level?: number | undefined;
|
|
508
|
-
serial_number?: string | undefined;
|
|
509
|
-
accessory_keypad?: {
|
|
510
|
-
is_connected: boolean;
|
|
511
|
-
battery?: {
|
|
512
|
-
level: number;
|
|
513
|
-
} | undefined;
|
|
514
|
-
} | undefined;
|
|
515
|
-
has_direct_power?: boolean | undefined;
|
|
516
|
-
image_url?: string | undefined;
|
|
517
|
-
image_alt_text?: string | undefined;
|
|
518
|
-
online_access_codes_enabled?: boolean | undefined;
|
|
519
|
-
offline_access_codes_enabled?: boolean | undefined;
|
|
520
|
-
supports_accessory_keypad?: boolean | undefined;
|
|
521
|
-
supports_offline_access_codes?: boolean | undefined;
|
|
522
|
-
noise_level_decibels?: number | undefined;
|
|
523
|
-
currently_triggering_noise_threshold_ids?: string[] | undefined;
|
|
524
|
-
}>;
|
|
1714
|
+
created_at: string;
|
|
1715
|
+
error_code: "subscription_required";
|
|
1716
|
+
is_device_error: true;
|
|
1717
|
+
}>)[];
|
|
525
1718
|
export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
526
1719
|
device_id: z.ZodString;
|
|
527
1720
|
device_type: z.ZodUnion<[z.ZodEnum<["akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock"]>, z.ZodEnum<["noiseaware_activity_zone" | "minut_sensor"]>, z.ZodEnum<["ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat"]>, z.ZodEnum<["ios_phone" | "android_phone"]>]>;
|
|
@@ -2141,31 +3334,31 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2141
3334
|
error_code: string;
|
|
2142
3335
|
}>, "many">;
|
|
2143
3336
|
}, "strip", z.ZodTypeAny, {
|
|
2144
|
-
created_at: string;
|
|
2145
|
-
errors: {
|
|
2146
|
-
message: string;
|
|
2147
|
-
error_code: string;
|
|
2148
|
-
}[];
|
|
2149
3337
|
climate_preset_key: string;
|
|
2150
3338
|
thermostat_schedule_id: string;
|
|
2151
3339
|
device_id: string;
|
|
2152
3340
|
max_override_period_minutes: number;
|
|
2153
3341
|
starts_at: string;
|
|
2154
3342
|
ends_at: string;
|
|
2155
|
-
name?: string | undefined;
|
|
2156
|
-
unstable_is_override_allowed?: boolean | undefined;
|
|
2157
|
-
}, {
|
|
2158
3343
|
created_at: string;
|
|
2159
3344
|
errors: {
|
|
2160
3345
|
message: string;
|
|
2161
3346
|
error_code: string;
|
|
2162
3347
|
}[];
|
|
3348
|
+
name?: string | undefined;
|
|
3349
|
+
unstable_is_override_allowed?: boolean | undefined;
|
|
3350
|
+
}, {
|
|
2163
3351
|
climate_preset_key: string;
|
|
2164
3352
|
thermostat_schedule_id: string;
|
|
2165
3353
|
device_id: string;
|
|
2166
3354
|
max_override_period_minutes: number;
|
|
2167
3355
|
starts_at: string;
|
|
2168
3356
|
ends_at: string;
|
|
3357
|
+
created_at: string;
|
|
3358
|
+
errors: {
|
|
3359
|
+
message: string;
|
|
3360
|
+
error_code: string;
|
|
3361
|
+
}[];
|
|
2169
3362
|
name?: string | undefined;
|
|
2170
3363
|
unstable_is_override_allowed?: boolean | undefined;
|
|
2171
3364
|
}>>>>;
|
|
@@ -2250,17 +3443,17 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2250
3443
|
}[] | undefined;
|
|
2251
3444
|
fallback_climate_preset_key?: string | null | undefined;
|
|
2252
3445
|
active_thermostat_schedule?: {
|
|
2253
|
-
created_at: string;
|
|
2254
|
-
errors: {
|
|
2255
|
-
message: string;
|
|
2256
|
-
error_code: string;
|
|
2257
|
-
}[];
|
|
2258
3446
|
climate_preset_key: string;
|
|
2259
3447
|
thermostat_schedule_id: string;
|
|
2260
3448
|
device_id: string;
|
|
2261
3449
|
max_override_period_minutes: number;
|
|
2262
3450
|
starts_at: string;
|
|
2263
3451
|
ends_at: string;
|
|
3452
|
+
created_at: string;
|
|
3453
|
+
errors: {
|
|
3454
|
+
message: string;
|
|
3455
|
+
error_code: string;
|
|
3456
|
+
}[];
|
|
2264
3457
|
name?: string | undefined;
|
|
2265
3458
|
unstable_is_override_allowed?: boolean | undefined;
|
|
2266
3459
|
} | null | undefined;
|
|
@@ -2335,17 +3528,17 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2335
3528
|
}[] | undefined;
|
|
2336
3529
|
fallback_climate_preset_key?: string | null | undefined;
|
|
2337
3530
|
active_thermostat_schedule?: {
|
|
2338
|
-
created_at: string;
|
|
2339
|
-
errors: {
|
|
2340
|
-
message: string;
|
|
2341
|
-
error_code: string;
|
|
2342
|
-
}[];
|
|
2343
3531
|
climate_preset_key: string;
|
|
2344
3532
|
thermostat_schedule_id: string;
|
|
2345
3533
|
device_id: string;
|
|
2346
3534
|
max_override_period_minutes: number;
|
|
2347
3535
|
starts_at: string;
|
|
2348
3536
|
ends_at: string;
|
|
3537
|
+
created_at: string;
|
|
3538
|
+
errors: {
|
|
3539
|
+
message: string;
|
|
3540
|
+
error_code: string;
|
|
3541
|
+
}[];
|
|
2349
3542
|
name?: string | undefined;
|
|
2350
3543
|
unstable_is_override_allowed?: boolean | undefined;
|
|
2351
3544
|
} | null | undefined;
|
|
@@ -2373,168 +3566,228 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2373
3566
|
location_name?: string | undefined;
|
|
2374
3567
|
timezone?: string | undefined;
|
|
2375
3568
|
}, {
|
|
2376
|
-
location_name?: string | undefined;
|
|
2377
|
-
timezone?: string | undefined;
|
|
2378
|
-
}>>;
|
|
2379
|
-
connected_account_id: z.ZodString;
|
|
2380
|
-
workspace_id: z.ZodString;
|
|
2381
|
-
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
3569
|
+
location_name?: string | undefined;
|
|
3570
|
+
timezone?: string | undefined;
|
|
3571
|
+
}>>;
|
|
3572
|
+
connected_account_id: z.ZodString;
|
|
3573
|
+
workspace_id: z.ZodString;
|
|
3574
|
+
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
3575
|
+
message: z.ZodString;
|
|
3576
|
+
is_device_error: z.ZodLiteral<true>;
|
|
3577
|
+
created_at: z.ZodString;
|
|
3578
|
+
}, {
|
|
3579
|
+
error_code: z.ZodLiteral<"account_disconnected">;
|
|
3580
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
3581
|
+
is_device_error: z.ZodLiteral<false>;
|
|
3582
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3583
|
+
message: string;
|
|
3584
|
+
created_at: string;
|
|
3585
|
+
error_code: "account_disconnected";
|
|
3586
|
+
is_connected_account_error: true;
|
|
3587
|
+
is_device_error: false;
|
|
3588
|
+
}, {
|
|
3589
|
+
message: string;
|
|
3590
|
+
created_at: string;
|
|
3591
|
+
error_code: "account_disconnected";
|
|
3592
|
+
is_connected_account_error: true;
|
|
3593
|
+
is_device_error: false;
|
|
3594
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3595
|
+
message: z.ZodString;
|
|
3596
|
+
is_device_error: z.ZodLiteral<true>;
|
|
3597
|
+
created_at: z.ZodString;
|
|
3598
|
+
}, {
|
|
3599
|
+
error_code: z.ZodLiteral<"salto_ks_subscription_limit_exceeded">;
|
|
3600
|
+
is_connected_account_error: z.ZodLiteral<true>;
|
|
3601
|
+
is_device_error: z.ZodLiteral<false>;
|
|
3602
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3603
|
+
message: string;
|
|
3604
|
+
created_at: string;
|
|
3605
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
3606
|
+
is_connected_account_error: true;
|
|
3607
|
+
is_device_error: false;
|
|
3608
|
+
}, {
|
|
3609
|
+
message: string;
|
|
3610
|
+
created_at: string;
|
|
3611
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
3612
|
+
is_connected_account_error: true;
|
|
3613
|
+
is_device_error: false;
|
|
3614
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2382
3615
|
message: z.ZodString;
|
|
2383
3616
|
is_device_error: z.ZodLiteral<true>;
|
|
3617
|
+
created_at: z.ZodString;
|
|
2384
3618
|
}, {
|
|
2385
3619
|
error_code: z.ZodLiteral<"device_offline">;
|
|
2386
3620
|
}>, "strip", z.ZodTypeAny, {
|
|
2387
3621
|
message: string;
|
|
3622
|
+
created_at: string;
|
|
2388
3623
|
error_code: "device_offline";
|
|
2389
3624
|
is_device_error: true;
|
|
2390
3625
|
}, {
|
|
2391
3626
|
message: string;
|
|
3627
|
+
created_at: string;
|
|
2392
3628
|
error_code: "device_offline";
|
|
2393
3629
|
is_device_error: true;
|
|
2394
3630
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2395
3631
|
message: z.ZodString;
|
|
2396
3632
|
is_device_error: z.ZodLiteral<true>;
|
|
3633
|
+
created_at: z.ZodString;
|
|
2397
3634
|
}, {
|
|
2398
3635
|
error_code: z.ZodLiteral<"device_removed">;
|
|
2399
3636
|
}>, "strip", z.ZodTypeAny, {
|
|
2400
3637
|
message: string;
|
|
3638
|
+
created_at: string;
|
|
2401
3639
|
error_code: "device_removed";
|
|
2402
3640
|
is_device_error: true;
|
|
2403
3641
|
}, {
|
|
2404
3642
|
message: string;
|
|
3643
|
+
created_at: string;
|
|
2405
3644
|
error_code: "device_removed";
|
|
2406
3645
|
is_device_error: true;
|
|
2407
3646
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2408
3647
|
message: z.ZodString;
|
|
2409
3648
|
is_device_error: z.ZodLiteral<true>;
|
|
3649
|
+
created_at: z.ZodString;
|
|
2410
3650
|
}, {
|
|
2411
3651
|
error_code: z.ZodLiteral<"hub_disconnected">;
|
|
2412
3652
|
}>, "strip", z.ZodTypeAny, {
|
|
2413
3653
|
message: string;
|
|
3654
|
+
created_at: string;
|
|
2414
3655
|
error_code: "hub_disconnected";
|
|
2415
3656
|
is_device_error: true;
|
|
2416
3657
|
}, {
|
|
2417
3658
|
message: string;
|
|
3659
|
+
created_at: string;
|
|
2418
3660
|
error_code: "hub_disconnected";
|
|
2419
3661
|
is_device_error: true;
|
|
2420
3662
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2421
3663
|
message: z.ZodString;
|
|
2422
3664
|
is_device_error: z.ZodLiteral<true>;
|
|
3665
|
+
created_at: z.ZodString;
|
|
2423
3666
|
}, {
|
|
2424
3667
|
error_code: z.ZodLiteral<"device_disconnected">;
|
|
2425
3668
|
}>, "strip", z.ZodTypeAny, {
|
|
2426
3669
|
message: string;
|
|
3670
|
+
created_at: string;
|
|
2427
3671
|
error_code: "device_disconnected";
|
|
2428
3672
|
is_device_error: true;
|
|
2429
3673
|
}, {
|
|
2430
3674
|
message: string;
|
|
3675
|
+
created_at: string;
|
|
2431
3676
|
error_code: "device_disconnected";
|
|
2432
3677
|
is_device_error: true;
|
|
2433
3678
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2434
3679
|
message: z.ZodString;
|
|
2435
3680
|
is_device_error: z.ZodLiteral<true>;
|
|
3681
|
+
created_at: z.ZodString;
|
|
2436
3682
|
}, {
|
|
2437
3683
|
error_code: z.ZodLiteral<"empty_backup_access_code_pool">;
|
|
2438
3684
|
}>, "strip", z.ZodTypeAny, {
|
|
2439
3685
|
message: string;
|
|
3686
|
+
created_at: string;
|
|
2440
3687
|
error_code: "empty_backup_access_code_pool";
|
|
2441
3688
|
is_device_error: true;
|
|
2442
3689
|
}, {
|
|
2443
3690
|
message: string;
|
|
3691
|
+
created_at: string;
|
|
2444
3692
|
error_code: "empty_backup_access_code_pool";
|
|
2445
3693
|
is_device_error: true;
|
|
2446
3694
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2447
3695
|
message: z.ZodString;
|
|
2448
3696
|
is_device_error: z.ZodLiteral<true>;
|
|
3697
|
+
created_at: z.ZodString;
|
|
2449
3698
|
}, {
|
|
2450
3699
|
error_code: z.ZodLiteral<"august_lock_not_authorized">;
|
|
2451
3700
|
}>, "strip", z.ZodTypeAny, {
|
|
2452
3701
|
message: string;
|
|
3702
|
+
created_at: string;
|
|
2453
3703
|
error_code: "august_lock_not_authorized";
|
|
2454
3704
|
is_device_error: true;
|
|
2455
3705
|
}, {
|
|
2456
3706
|
message: string;
|
|
3707
|
+
created_at: string;
|
|
2457
3708
|
error_code: "august_lock_not_authorized";
|
|
2458
3709
|
is_device_error: true;
|
|
2459
3710
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2460
3711
|
message: z.ZodString;
|
|
2461
3712
|
is_device_error: z.ZodLiteral<true>;
|
|
3713
|
+
created_at: z.ZodString;
|
|
2462
3714
|
}, {
|
|
2463
3715
|
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
2464
3716
|
}>, "strip", z.ZodTypeAny, {
|
|
2465
3717
|
message: string;
|
|
3718
|
+
created_at: string;
|
|
2466
3719
|
error_code: "august_lock_missing_bridge";
|
|
2467
3720
|
is_device_error: true;
|
|
2468
3721
|
}, {
|
|
2469
3722
|
message: string;
|
|
3723
|
+
created_at: string;
|
|
2470
3724
|
error_code: "august_lock_missing_bridge";
|
|
2471
3725
|
is_device_error: true;
|
|
2472
3726
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2473
3727
|
message: z.ZodString;
|
|
2474
3728
|
is_device_error: z.ZodLiteral<true>;
|
|
2475
|
-
|
|
2476
|
-
error_code: z.ZodLiteral<"salto_site_user_limit_reached">;
|
|
2477
|
-
}>, "strip", z.ZodTypeAny, {
|
|
2478
|
-
message: string;
|
|
2479
|
-
error_code: "salto_site_user_limit_reached";
|
|
2480
|
-
is_device_error: true;
|
|
2481
|
-
}, {
|
|
2482
|
-
message: string;
|
|
2483
|
-
error_code: "salto_site_user_limit_reached";
|
|
2484
|
-
is_device_error: true;
|
|
2485
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2486
|
-
message: z.ZodString;
|
|
2487
|
-
is_device_error: z.ZodLiteral<true>;
|
|
3729
|
+
created_at: z.ZodString;
|
|
2488
3730
|
}, {
|
|
2489
3731
|
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
2490
3732
|
}>, "strip", z.ZodTypeAny, {
|
|
2491
3733
|
message: string;
|
|
3734
|
+
created_at: string;
|
|
2492
3735
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
2493
3736
|
is_device_error: true;
|
|
2494
3737
|
}, {
|
|
2495
3738
|
message: string;
|
|
3739
|
+
created_at: string;
|
|
2496
3740
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
2497
3741
|
is_device_error: true;
|
|
2498
3742
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2499
3743
|
message: z.ZodString;
|
|
2500
3744
|
is_device_error: z.ZodLiteral<true>;
|
|
3745
|
+
created_at: z.ZodString;
|
|
2501
3746
|
}, {
|
|
2502
3747
|
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
2503
3748
|
}>, "strip", z.ZodTypeAny, {
|
|
2504
3749
|
message: string;
|
|
3750
|
+
created_at: string;
|
|
2505
3751
|
error_code: "missing_device_credentials";
|
|
2506
3752
|
is_device_error: true;
|
|
2507
3753
|
}, {
|
|
2508
3754
|
message: string;
|
|
3755
|
+
created_at: string;
|
|
2509
3756
|
error_code: "missing_device_credentials";
|
|
2510
3757
|
is_device_error: true;
|
|
2511
3758
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2512
3759
|
message: z.ZodString;
|
|
2513
3760
|
is_device_error: z.ZodLiteral<true>;
|
|
3761
|
+
created_at: z.ZodString;
|
|
2514
3762
|
}, {
|
|
2515
3763
|
error_code: z.ZodLiteral<"auxiliary_heat_running">;
|
|
2516
3764
|
}>, "strip", z.ZodTypeAny, {
|
|
2517
3765
|
message: string;
|
|
3766
|
+
created_at: string;
|
|
2518
3767
|
error_code: "auxiliary_heat_running";
|
|
2519
3768
|
is_device_error: true;
|
|
2520
3769
|
}, {
|
|
2521
3770
|
message: string;
|
|
3771
|
+
created_at: string;
|
|
2522
3772
|
error_code: "auxiliary_heat_running";
|
|
2523
3773
|
is_device_error: true;
|
|
2524
3774
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2525
3775
|
message: z.ZodString;
|
|
2526
3776
|
is_device_error: z.ZodLiteral<true>;
|
|
3777
|
+
created_at: z.ZodString;
|
|
2527
3778
|
}, {
|
|
2528
3779
|
error_code: z.ZodLiteral<"subscription_required">;
|
|
2529
3780
|
}>, "strip", z.ZodTypeAny, {
|
|
2530
3781
|
message: string;
|
|
3782
|
+
created_at: string;
|
|
2531
3783
|
error_code: "subscription_required";
|
|
2532
3784
|
is_device_error: true;
|
|
2533
3785
|
}, {
|
|
2534
3786
|
message: string;
|
|
3787
|
+
created_at: string;
|
|
2535
3788
|
error_code: "subscription_required";
|
|
2536
3789
|
is_device_error: true;
|
|
2537
|
-
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
3790
|
+
}>, ...(z.ZodObject<z.objectUtil.extendShape<{
|
|
2538
3791
|
created_at: z.ZodString;
|
|
2539
3792
|
message: z.ZodString;
|
|
2540
3793
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
@@ -2543,14 +3796,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2543
3796
|
}>, "strip", z.ZodTypeAny, {
|
|
2544
3797
|
message: string;
|
|
2545
3798
|
created_at: string;
|
|
2546
|
-
is_connected_account_error: true;
|
|
2547
3799
|
error_code: "account_disconnected";
|
|
3800
|
+
is_connected_account_error: true;
|
|
2548
3801
|
}, {
|
|
2549
3802
|
message: string;
|
|
2550
3803
|
created_at: string;
|
|
2551
|
-
is_connected_account_error: true;
|
|
2552
3804
|
error_code: "account_disconnected";
|
|
2553
|
-
|
|
3805
|
+
is_connected_account_error: true;
|
|
3806
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
2554
3807
|
created_at: z.ZodString;
|
|
2555
3808
|
message: z.ZodString;
|
|
2556
3809
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
@@ -2559,14 +3812,14 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2559
3812
|
}>, "strip", z.ZodTypeAny, {
|
|
2560
3813
|
message: string;
|
|
2561
3814
|
created_at: string;
|
|
2562
|
-
is_connected_account_error: true;
|
|
2563
3815
|
error_code: "invalid_credentials";
|
|
3816
|
+
is_connected_account_error: true;
|
|
2564
3817
|
}, {
|
|
2565
3818
|
message: string;
|
|
2566
3819
|
created_at: string;
|
|
2567
|
-
is_connected_account_error: true;
|
|
2568
3820
|
error_code: "invalid_credentials";
|
|
2569
|
-
|
|
3821
|
+
is_connected_account_error: true;
|
|
3822
|
+
}> | z.ZodObject<z.objectUtil.extendShape<{
|
|
2570
3823
|
created_at: z.ZodString;
|
|
2571
3824
|
message: z.ZodString;
|
|
2572
3825
|
is_connected_account_error: z.ZodLiteral<true>;
|
|
@@ -2607,8 +3860,8 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2607
3860
|
}>, "strip", z.ZodTypeAny, {
|
|
2608
3861
|
message: string;
|
|
2609
3862
|
created_at: string;
|
|
2610
|
-
is_connected_account_error: true;
|
|
2611
3863
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
3864
|
+
is_connected_account_error: true;
|
|
2612
3865
|
salto_ks_metadata: {
|
|
2613
3866
|
sites: {
|
|
2614
3867
|
site_id: string;
|
|
@@ -2620,8 +3873,8 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2620
3873
|
}, {
|
|
2621
3874
|
message: string;
|
|
2622
3875
|
created_at: string;
|
|
2623
|
-
is_connected_account_error: true;
|
|
2624
3876
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
3877
|
+
is_connected_account_error: true;
|
|
2625
3878
|
salto_ks_metadata: {
|
|
2626
3879
|
sites: {
|
|
2627
3880
|
site_id: string;
|
|
@@ -2630,166 +3883,214 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2630
3883
|
site_user_subscription_limit: number;
|
|
2631
3884
|
}[];
|
|
2632
3885
|
};
|
|
2633
|
-
}>]>, "many">;
|
|
3886
|
+
}>)[]]>, "many">;
|
|
2634
3887
|
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
|
|
2635
3888
|
message: z.ZodString;
|
|
3889
|
+
created_at: z.ZodString;
|
|
2636
3890
|
}, {
|
|
2637
3891
|
warning_code: z.ZodLiteral<"partial_backup_access_code_pool">;
|
|
2638
3892
|
}>, "strip", z.ZodTypeAny, {
|
|
2639
3893
|
message: string;
|
|
3894
|
+
created_at: string;
|
|
2640
3895
|
warning_code: "partial_backup_access_code_pool";
|
|
2641
3896
|
}, {
|
|
2642
3897
|
message: string;
|
|
3898
|
+
created_at: string;
|
|
2643
3899
|
warning_code: "partial_backup_access_code_pool";
|
|
2644
3900
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2645
3901
|
message: z.ZodString;
|
|
3902
|
+
created_at: z.ZodString;
|
|
2646
3903
|
}, {
|
|
2647
3904
|
warning_code: z.ZodLiteral<"many_active_backup_codes">;
|
|
2648
3905
|
}>, "strip", z.ZodTypeAny, {
|
|
2649
3906
|
message: string;
|
|
3907
|
+
created_at: string;
|
|
2650
3908
|
warning_code: "many_active_backup_codes";
|
|
2651
3909
|
}, {
|
|
2652
3910
|
message: string;
|
|
3911
|
+
created_at: string;
|
|
2653
3912
|
warning_code: "many_active_backup_codes";
|
|
2654
3913
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2655
3914
|
message: z.ZodString;
|
|
3915
|
+
created_at: z.ZodString;
|
|
2656
3916
|
}, {
|
|
2657
3917
|
warning_code: z.ZodLiteral<"salto_unknown_device_type">;
|
|
2658
3918
|
}>, "strip", z.ZodTypeAny, {
|
|
2659
3919
|
message: string;
|
|
3920
|
+
created_at: string;
|
|
2660
3921
|
warning_code: "salto_unknown_device_type";
|
|
2661
3922
|
}, {
|
|
2662
3923
|
message: string;
|
|
3924
|
+
created_at: string;
|
|
2663
3925
|
warning_code: "salto_unknown_device_type";
|
|
2664
3926
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2665
3927
|
message: z.ZodString;
|
|
3928
|
+
created_at: z.ZodString;
|
|
2666
3929
|
}, {
|
|
2667
3930
|
warning_code: z.ZodLiteral<"wyze_device_missing_gateway">;
|
|
2668
3931
|
}>, "strip", z.ZodTypeAny, {
|
|
2669
3932
|
message: string;
|
|
3933
|
+
created_at: string;
|
|
2670
3934
|
warning_code: "wyze_device_missing_gateway";
|
|
2671
3935
|
}, {
|
|
2672
3936
|
message: string;
|
|
3937
|
+
created_at: string;
|
|
2673
3938
|
warning_code: "wyze_device_missing_gateway";
|
|
2674
3939
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2675
3940
|
message: z.ZodString;
|
|
3941
|
+
created_at: z.ZodString;
|
|
2676
3942
|
}, {
|
|
2677
3943
|
warning_code: z.ZodLiteral<"functional_offline_device">;
|
|
2678
3944
|
}>, "strip", z.ZodTypeAny, {
|
|
2679
3945
|
message: string;
|
|
3946
|
+
created_at: string;
|
|
2680
3947
|
warning_code: "functional_offline_device";
|
|
2681
3948
|
}, {
|
|
2682
3949
|
message: string;
|
|
3950
|
+
created_at: string;
|
|
2683
3951
|
warning_code: "functional_offline_device";
|
|
2684
3952
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2685
3953
|
message: z.ZodString;
|
|
3954
|
+
created_at: z.ZodString;
|
|
2686
3955
|
}, {
|
|
2687
3956
|
warning_code: z.ZodLiteral<"third_party_integration_detected">;
|
|
2688
3957
|
}>, "strip", z.ZodTypeAny, {
|
|
2689
3958
|
message: string;
|
|
3959
|
+
created_at: string;
|
|
2690
3960
|
warning_code: "third_party_integration_detected";
|
|
2691
3961
|
}, {
|
|
2692
3962
|
message: string;
|
|
3963
|
+
created_at: string;
|
|
2693
3964
|
warning_code: "third_party_integration_detected";
|
|
2694
3965
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2695
3966
|
message: z.ZodString;
|
|
3967
|
+
created_at: z.ZodString;
|
|
2696
3968
|
}, {
|
|
2697
3969
|
warning_code: z.ZodLiteral<"nest_thermostat_in_manual_eco_mode">;
|
|
2698
3970
|
}>, "strip", z.ZodTypeAny, {
|
|
2699
3971
|
message: string;
|
|
3972
|
+
created_at: string;
|
|
2700
3973
|
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
2701
3974
|
}, {
|
|
2702
3975
|
message: string;
|
|
3976
|
+
created_at: string;
|
|
2703
3977
|
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
2704
3978
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2705
3979
|
message: z.ZodString;
|
|
3980
|
+
created_at: z.ZodString;
|
|
2706
3981
|
}, {
|
|
2707
3982
|
warning_code: z.ZodLiteral<"ttlock_lock_gateway_unlocking_not_enabled">;
|
|
2708
3983
|
}>, "strip", z.ZodTypeAny, {
|
|
2709
3984
|
message: string;
|
|
3985
|
+
created_at: string;
|
|
2710
3986
|
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
2711
3987
|
}, {
|
|
2712
3988
|
message: string;
|
|
3989
|
+
created_at: string;
|
|
2713
3990
|
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
2714
3991
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2715
3992
|
message: z.ZodString;
|
|
3993
|
+
created_at: z.ZodString;
|
|
2716
3994
|
}, {
|
|
2717
3995
|
warning_code: z.ZodLiteral<"ttlock_weak_gateway_signal">;
|
|
2718
3996
|
}>, "strip", z.ZodTypeAny, {
|
|
2719
3997
|
message: string;
|
|
3998
|
+
created_at: string;
|
|
2720
3999
|
warning_code: "ttlock_weak_gateway_signal";
|
|
2721
4000
|
}, {
|
|
2722
4001
|
message: string;
|
|
4002
|
+
created_at: string;
|
|
2723
4003
|
warning_code: "ttlock_weak_gateway_signal";
|
|
2724
4004
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2725
4005
|
message: z.ZodString;
|
|
4006
|
+
created_at: z.ZodString;
|
|
2726
4007
|
}, {
|
|
2727
4008
|
warning_code: z.ZodLiteral<"temperature_threshold_exceeded">;
|
|
2728
4009
|
}>, "strip", z.ZodTypeAny, {
|
|
2729
4010
|
message: string;
|
|
4011
|
+
created_at: string;
|
|
2730
4012
|
warning_code: "temperature_threshold_exceeded";
|
|
2731
4013
|
}, {
|
|
2732
4014
|
message: string;
|
|
4015
|
+
created_at: string;
|
|
2733
4016
|
warning_code: "temperature_threshold_exceeded";
|
|
2734
4017
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2735
4018
|
message: z.ZodString;
|
|
4019
|
+
created_at: z.ZodString;
|
|
2736
4020
|
}, {
|
|
2737
4021
|
warning_code: z.ZodLiteral<"device_communication_degraded">;
|
|
2738
4022
|
}>, "strip", z.ZodTypeAny, {
|
|
2739
4023
|
message: string;
|
|
4024
|
+
created_at: string;
|
|
2740
4025
|
warning_code: "device_communication_degraded";
|
|
2741
4026
|
}, {
|
|
2742
4027
|
message: string;
|
|
4028
|
+
created_at: string;
|
|
2743
4029
|
warning_code: "device_communication_degraded";
|
|
2744
4030
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2745
4031
|
message: z.ZodString;
|
|
4032
|
+
created_at: z.ZodString;
|
|
2746
4033
|
}, {
|
|
2747
4034
|
warning_code: z.ZodLiteral<"scheduled_maintenance_window">;
|
|
2748
4035
|
}>, "strip", z.ZodTypeAny, {
|
|
2749
4036
|
message: string;
|
|
4037
|
+
created_at: string;
|
|
2750
4038
|
warning_code: "scheduled_maintenance_window";
|
|
2751
4039
|
}, {
|
|
2752
4040
|
message: string;
|
|
4041
|
+
created_at: string;
|
|
2753
4042
|
warning_code: "scheduled_maintenance_window";
|
|
2754
4043
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2755
4044
|
message: z.ZodString;
|
|
4045
|
+
created_at: z.ZodString;
|
|
2756
4046
|
}, {
|
|
2757
4047
|
warning_code: z.ZodLiteral<"device_has_flaky_connection">;
|
|
2758
4048
|
}>, "strip", z.ZodTypeAny, {
|
|
2759
4049
|
message: string;
|
|
4050
|
+
created_at: string;
|
|
2760
4051
|
warning_code: "device_has_flaky_connection";
|
|
2761
4052
|
}, {
|
|
2762
4053
|
message: string;
|
|
4054
|
+
created_at: string;
|
|
2763
4055
|
warning_code: "device_has_flaky_connection";
|
|
2764
4056
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2765
4057
|
message: z.ZodString;
|
|
4058
|
+
created_at: z.ZodString;
|
|
2766
4059
|
}, {
|
|
2767
4060
|
warning_code: z.ZodLiteral<"salto_office_mode">;
|
|
2768
4061
|
}>, "strip", z.ZodTypeAny, {
|
|
2769
4062
|
message: string;
|
|
4063
|
+
created_at: string;
|
|
2770
4064
|
warning_code: "salto_office_mode";
|
|
2771
4065
|
}, {
|
|
2772
4066
|
message: string;
|
|
4067
|
+
created_at: string;
|
|
2773
4068
|
warning_code: "salto_office_mode";
|
|
2774
4069
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2775
4070
|
message: z.ZodString;
|
|
4071
|
+
created_at: z.ZodString;
|
|
2776
4072
|
}, {
|
|
2777
4073
|
warning_code: z.ZodLiteral<"salto_privacy_mode">;
|
|
2778
4074
|
}>, "strip", z.ZodTypeAny, {
|
|
2779
4075
|
message: string;
|
|
4076
|
+
created_at: string;
|
|
2780
4077
|
warning_code: "salto_privacy_mode";
|
|
2781
4078
|
}, {
|
|
2782
4079
|
message: string;
|
|
4080
|
+
created_at: string;
|
|
2783
4081
|
warning_code: "salto_privacy_mode";
|
|
2784
4082
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2785
4083
|
message: z.ZodString;
|
|
4084
|
+
created_at: z.ZodString;
|
|
2786
4085
|
}, {
|
|
2787
4086
|
warning_code: z.ZodLiteral<"unknown_issue_with_phone">;
|
|
2788
4087
|
}>, "strip", z.ZodTypeAny, {
|
|
2789
4088
|
message: string;
|
|
4089
|
+
created_at: string;
|
|
2790
4090
|
warning_code: "unknown_issue_with_phone";
|
|
2791
4091
|
}, {
|
|
2792
4092
|
message: string;
|
|
4093
|
+
created_at: string;
|
|
2793
4094
|
warning_code: "unknown_issue_with_phone";
|
|
2794
4095
|
}>]>, "many">;
|
|
2795
4096
|
created_at: z.ZodString;
|
|
@@ -2813,23 +4114,24 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2813
4114
|
location_name?: string | undefined;
|
|
2814
4115
|
timezone?: string | undefined;
|
|
2815
4116
|
} | null;
|
|
4117
|
+
display_name: string;
|
|
4118
|
+
device_id: string;
|
|
2816
4119
|
created_at: string;
|
|
2817
|
-
connected_account_id: string;
|
|
2818
4120
|
errors: ({
|
|
2819
4121
|
message: string;
|
|
2820
4122
|
created_at: string;
|
|
2821
|
-
is_connected_account_error: true;
|
|
2822
4123
|
error_code: "account_disconnected";
|
|
4124
|
+
is_connected_account_error: true;
|
|
2823
4125
|
} | {
|
|
2824
4126
|
message: string;
|
|
2825
4127
|
created_at: string;
|
|
2826
|
-
is_connected_account_error: true;
|
|
2827
4128
|
error_code: "invalid_credentials";
|
|
4129
|
+
is_connected_account_error: true;
|
|
2828
4130
|
} | {
|
|
2829
4131
|
message: string;
|
|
2830
4132
|
created_at: string;
|
|
2831
|
-
is_connected_account_error: true;
|
|
2832
4133
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
4134
|
+
is_connected_account_error: true;
|
|
2833
4135
|
salto_ks_metadata: {
|
|
2834
4136
|
sites: {
|
|
2835
4137
|
site_id: string;
|
|
@@ -2840,107 +4142,141 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
2840
4142
|
};
|
|
2841
4143
|
} | {
|
|
2842
4144
|
message: string;
|
|
4145
|
+
created_at: string;
|
|
2843
4146
|
error_code: "device_offline";
|
|
2844
4147
|
is_device_error: true;
|
|
2845
4148
|
} | {
|
|
2846
4149
|
message: string;
|
|
4150
|
+
created_at: string;
|
|
2847
4151
|
error_code: "device_removed";
|
|
2848
4152
|
is_device_error: true;
|
|
2849
4153
|
} | {
|
|
2850
4154
|
message: string;
|
|
4155
|
+
created_at: string;
|
|
2851
4156
|
error_code: "hub_disconnected";
|
|
2852
4157
|
is_device_error: true;
|
|
2853
4158
|
} | {
|
|
2854
4159
|
message: string;
|
|
4160
|
+
created_at: string;
|
|
2855
4161
|
error_code: "device_disconnected";
|
|
2856
4162
|
is_device_error: true;
|
|
2857
4163
|
} | {
|
|
2858
4164
|
message: string;
|
|
4165
|
+
created_at: string;
|
|
4166
|
+
error_code: "account_disconnected";
|
|
4167
|
+
is_connected_account_error: true;
|
|
4168
|
+
is_device_error: false;
|
|
4169
|
+
} | {
|
|
4170
|
+
message: string;
|
|
4171
|
+
created_at: string;
|
|
2859
4172
|
error_code: "empty_backup_access_code_pool";
|
|
2860
4173
|
is_device_error: true;
|
|
2861
4174
|
} | {
|
|
2862
4175
|
message: string;
|
|
4176
|
+
created_at: string;
|
|
2863
4177
|
error_code: "august_lock_not_authorized";
|
|
2864
4178
|
is_device_error: true;
|
|
2865
4179
|
} | {
|
|
2866
4180
|
message: string;
|
|
4181
|
+
created_at: string;
|
|
2867
4182
|
error_code: "august_lock_missing_bridge";
|
|
2868
4183
|
is_device_error: true;
|
|
2869
4184
|
} | {
|
|
2870
4185
|
message: string;
|
|
2871
|
-
|
|
2872
|
-
|
|
4186
|
+
created_at: string;
|
|
4187
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
4188
|
+
is_connected_account_error: true;
|
|
4189
|
+
is_device_error: false;
|
|
2873
4190
|
} | {
|
|
2874
4191
|
message: string;
|
|
4192
|
+
created_at: string;
|
|
2875
4193
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
2876
4194
|
is_device_error: true;
|
|
2877
4195
|
} | {
|
|
2878
4196
|
message: string;
|
|
4197
|
+
created_at: string;
|
|
2879
4198
|
error_code: "missing_device_credentials";
|
|
2880
4199
|
is_device_error: true;
|
|
2881
4200
|
} | {
|
|
2882
4201
|
message: string;
|
|
4202
|
+
created_at: string;
|
|
2883
4203
|
error_code: "auxiliary_heat_running";
|
|
2884
4204
|
is_device_error: true;
|
|
2885
4205
|
} | {
|
|
2886
4206
|
message: string;
|
|
4207
|
+
created_at: string;
|
|
2887
4208
|
error_code: "subscription_required";
|
|
2888
4209
|
is_device_error: true;
|
|
2889
4210
|
})[];
|
|
4211
|
+
connected_account_id: string;
|
|
2890
4212
|
warnings: ({
|
|
2891
4213
|
message: string;
|
|
4214
|
+
created_at: string;
|
|
2892
4215
|
warning_code: "partial_backup_access_code_pool";
|
|
2893
4216
|
} | {
|
|
2894
4217
|
message: string;
|
|
4218
|
+
created_at: string;
|
|
2895
4219
|
warning_code: "many_active_backup_codes";
|
|
2896
4220
|
} | {
|
|
2897
4221
|
message: string;
|
|
4222
|
+
created_at: string;
|
|
2898
4223
|
warning_code: "salto_unknown_device_type";
|
|
2899
4224
|
} | {
|
|
2900
4225
|
message: string;
|
|
4226
|
+
created_at: string;
|
|
2901
4227
|
warning_code: "salto_office_mode";
|
|
2902
4228
|
} | {
|
|
2903
4229
|
message: string;
|
|
4230
|
+
created_at: string;
|
|
2904
4231
|
warning_code: "salto_privacy_mode";
|
|
2905
4232
|
} | {
|
|
2906
4233
|
message: string;
|
|
4234
|
+
created_at: string;
|
|
2907
4235
|
warning_code: "wyze_device_missing_gateway";
|
|
2908
4236
|
} | {
|
|
2909
4237
|
message: string;
|
|
4238
|
+
created_at: string;
|
|
2910
4239
|
warning_code: "functional_offline_device";
|
|
2911
4240
|
} | {
|
|
2912
4241
|
message: string;
|
|
4242
|
+
created_at: string;
|
|
2913
4243
|
warning_code: "third_party_integration_detected";
|
|
2914
4244
|
} | {
|
|
2915
4245
|
message: string;
|
|
4246
|
+
created_at: string;
|
|
2916
4247
|
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
2917
4248
|
} | {
|
|
2918
4249
|
message: string;
|
|
4250
|
+
created_at: string;
|
|
2919
4251
|
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
2920
4252
|
} | {
|
|
2921
4253
|
message: string;
|
|
4254
|
+
created_at: string;
|
|
2922
4255
|
warning_code: "ttlock_weak_gateway_signal";
|
|
2923
4256
|
} | {
|
|
2924
4257
|
message: string;
|
|
4258
|
+
created_at: string;
|
|
2925
4259
|
warning_code: "temperature_threshold_exceeded";
|
|
2926
4260
|
} | {
|
|
2927
4261
|
message: string;
|
|
4262
|
+
created_at: string;
|
|
2928
4263
|
warning_code: "device_communication_degraded";
|
|
2929
4264
|
} | {
|
|
2930
4265
|
message: string;
|
|
4266
|
+
created_at: string;
|
|
2931
4267
|
warning_code: "scheduled_maintenance_window";
|
|
2932
4268
|
} | {
|
|
2933
4269
|
message: string;
|
|
4270
|
+
created_at: string;
|
|
2934
4271
|
warning_code: "device_has_flaky_connection";
|
|
2935
4272
|
} | {
|
|
2936
4273
|
message: string;
|
|
4274
|
+
created_at: string;
|
|
2937
4275
|
warning_code: "unknown_issue_with_phone";
|
|
2938
4276
|
})[];
|
|
2939
4277
|
custom_metadata: Record<string, string | boolean>;
|
|
2940
|
-
display_name: string;
|
|
2941
|
-
device_id: string;
|
|
2942
4278
|
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat") | ("ios_phone" | "android_phone");
|
|
2943
|
-
capabilities_supported: ("
|
|
4279
|
+
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
2944
4280
|
properties: {
|
|
2945
4281
|
name: string;
|
|
2946
4282
|
appearance: {
|
|
@@ -3289,17 +4625,17 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3289
4625
|
}[] | undefined;
|
|
3290
4626
|
fallback_climate_preset_key?: string | null | undefined;
|
|
3291
4627
|
active_thermostat_schedule?: {
|
|
3292
|
-
created_at: string;
|
|
3293
|
-
errors: {
|
|
3294
|
-
message: string;
|
|
3295
|
-
error_code: string;
|
|
3296
|
-
}[];
|
|
3297
4628
|
climate_preset_key: string;
|
|
3298
4629
|
thermostat_schedule_id: string;
|
|
3299
4630
|
device_id: string;
|
|
3300
4631
|
max_override_period_minutes: number;
|
|
3301
4632
|
starts_at: string;
|
|
3302
4633
|
ends_at: string;
|
|
4634
|
+
created_at: string;
|
|
4635
|
+
errors: {
|
|
4636
|
+
message: string;
|
|
4637
|
+
error_code: string;
|
|
4638
|
+
}[];
|
|
3303
4639
|
name?: string | undefined;
|
|
3304
4640
|
unstable_is_override_allowed?: boolean | undefined;
|
|
3305
4641
|
} | null | undefined;
|
|
@@ -3339,23 +4675,24 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3339
4675
|
location_name?: string | undefined;
|
|
3340
4676
|
timezone?: string | undefined;
|
|
3341
4677
|
} | null;
|
|
4678
|
+
display_name: string;
|
|
4679
|
+
device_id: string;
|
|
3342
4680
|
created_at: string;
|
|
3343
|
-
connected_account_id: string;
|
|
3344
4681
|
errors: ({
|
|
3345
4682
|
message: string;
|
|
3346
4683
|
created_at: string;
|
|
3347
|
-
is_connected_account_error: true;
|
|
3348
4684
|
error_code: "account_disconnected";
|
|
4685
|
+
is_connected_account_error: true;
|
|
3349
4686
|
} | {
|
|
3350
4687
|
message: string;
|
|
3351
4688
|
created_at: string;
|
|
3352
|
-
is_connected_account_error: true;
|
|
3353
4689
|
error_code: "invalid_credentials";
|
|
4690
|
+
is_connected_account_error: true;
|
|
3354
4691
|
} | {
|
|
3355
4692
|
message: string;
|
|
3356
4693
|
created_at: string;
|
|
3357
|
-
is_connected_account_error: true;
|
|
3358
4694
|
error_code: "salto_ks_subscription_limit_exceeded";
|
|
4695
|
+
is_connected_account_error: true;
|
|
3359
4696
|
salto_ks_metadata: {
|
|
3360
4697
|
sites: {
|
|
3361
4698
|
site_id: string;
|
|
@@ -3366,107 +4703,141 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3366
4703
|
};
|
|
3367
4704
|
} | {
|
|
3368
4705
|
message: string;
|
|
4706
|
+
created_at: string;
|
|
3369
4707
|
error_code: "device_offline";
|
|
3370
4708
|
is_device_error: true;
|
|
3371
4709
|
} | {
|
|
3372
4710
|
message: string;
|
|
4711
|
+
created_at: string;
|
|
3373
4712
|
error_code: "device_removed";
|
|
3374
4713
|
is_device_error: true;
|
|
3375
4714
|
} | {
|
|
3376
4715
|
message: string;
|
|
4716
|
+
created_at: string;
|
|
3377
4717
|
error_code: "hub_disconnected";
|
|
3378
4718
|
is_device_error: true;
|
|
3379
4719
|
} | {
|
|
3380
4720
|
message: string;
|
|
4721
|
+
created_at: string;
|
|
3381
4722
|
error_code: "device_disconnected";
|
|
3382
4723
|
is_device_error: true;
|
|
3383
4724
|
} | {
|
|
3384
4725
|
message: string;
|
|
4726
|
+
created_at: string;
|
|
4727
|
+
error_code: "account_disconnected";
|
|
4728
|
+
is_connected_account_error: true;
|
|
4729
|
+
is_device_error: false;
|
|
4730
|
+
} | {
|
|
4731
|
+
message: string;
|
|
4732
|
+
created_at: string;
|
|
3385
4733
|
error_code: "empty_backup_access_code_pool";
|
|
3386
4734
|
is_device_error: true;
|
|
3387
4735
|
} | {
|
|
3388
4736
|
message: string;
|
|
4737
|
+
created_at: string;
|
|
3389
4738
|
error_code: "august_lock_not_authorized";
|
|
3390
4739
|
is_device_error: true;
|
|
3391
4740
|
} | {
|
|
3392
4741
|
message: string;
|
|
4742
|
+
created_at: string;
|
|
3393
4743
|
error_code: "august_lock_missing_bridge";
|
|
3394
4744
|
is_device_error: true;
|
|
3395
4745
|
} | {
|
|
3396
4746
|
message: string;
|
|
3397
|
-
|
|
3398
|
-
|
|
4747
|
+
created_at: string;
|
|
4748
|
+
error_code: "salto_ks_subscription_limit_exceeded";
|
|
4749
|
+
is_connected_account_error: true;
|
|
4750
|
+
is_device_error: false;
|
|
3399
4751
|
} | {
|
|
3400
4752
|
message: string;
|
|
4753
|
+
created_at: string;
|
|
3401
4754
|
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
3402
4755
|
is_device_error: true;
|
|
3403
4756
|
} | {
|
|
3404
4757
|
message: string;
|
|
4758
|
+
created_at: string;
|
|
3405
4759
|
error_code: "missing_device_credentials";
|
|
3406
4760
|
is_device_error: true;
|
|
3407
4761
|
} | {
|
|
3408
4762
|
message: string;
|
|
4763
|
+
created_at: string;
|
|
3409
4764
|
error_code: "auxiliary_heat_running";
|
|
3410
4765
|
is_device_error: true;
|
|
3411
4766
|
} | {
|
|
3412
4767
|
message: string;
|
|
4768
|
+
created_at: string;
|
|
3413
4769
|
error_code: "subscription_required";
|
|
3414
4770
|
is_device_error: true;
|
|
3415
4771
|
})[];
|
|
4772
|
+
connected_account_id: string;
|
|
3416
4773
|
warnings: ({
|
|
3417
4774
|
message: string;
|
|
4775
|
+
created_at: string;
|
|
3418
4776
|
warning_code: "partial_backup_access_code_pool";
|
|
3419
4777
|
} | {
|
|
3420
4778
|
message: string;
|
|
4779
|
+
created_at: string;
|
|
3421
4780
|
warning_code: "many_active_backup_codes";
|
|
3422
4781
|
} | {
|
|
3423
4782
|
message: string;
|
|
4783
|
+
created_at: string;
|
|
3424
4784
|
warning_code: "salto_unknown_device_type";
|
|
3425
4785
|
} | {
|
|
3426
4786
|
message: string;
|
|
4787
|
+
created_at: string;
|
|
3427
4788
|
warning_code: "salto_office_mode";
|
|
3428
4789
|
} | {
|
|
3429
4790
|
message: string;
|
|
4791
|
+
created_at: string;
|
|
3430
4792
|
warning_code: "salto_privacy_mode";
|
|
3431
4793
|
} | {
|
|
3432
4794
|
message: string;
|
|
4795
|
+
created_at: string;
|
|
3433
4796
|
warning_code: "wyze_device_missing_gateway";
|
|
3434
4797
|
} | {
|
|
3435
4798
|
message: string;
|
|
4799
|
+
created_at: string;
|
|
3436
4800
|
warning_code: "functional_offline_device";
|
|
3437
4801
|
} | {
|
|
3438
4802
|
message: string;
|
|
4803
|
+
created_at: string;
|
|
3439
4804
|
warning_code: "third_party_integration_detected";
|
|
3440
4805
|
} | {
|
|
3441
4806
|
message: string;
|
|
4807
|
+
created_at: string;
|
|
3442
4808
|
warning_code: "nest_thermostat_in_manual_eco_mode";
|
|
3443
4809
|
} | {
|
|
3444
4810
|
message: string;
|
|
4811
|
+
created_at: string;
|
|
3445
4812
|
warning_code: "ttlock_lock_gateway_unlocking_not_enabled";
|
|
3446
4813
|
} | {
|
|
3447
4814
|
message: string;
|
|
4815
|
+
created_at: string;
|
|
3448
4816
|
warning_code: "ttlock_weak_gateway_signal";
|
|
3449
4817
|
} | {
|
|
3450
4818
|
message: string;
|
|
4819
|
+
created_at: string;
|
|
3451
4820
|
warning_code: "temperature_threshold_exceeded";
|
|
3452
4821
|
} | {
|
|
3453
4822
|
message: string;
|
|
4823
|
+
created_at: string;
|
|
3454
4824
|
warning_code: "device_communication_degraded";
|
|
3455
4825
|
} | {
|
|
3456
4826
|
message: string;
|
|
4827
|
+
created_at: string;
|
|
3457
4828
|
warning_code: "scheduled_maintenance_window";
|
|
3458
4829
|
} | {
|
|
3459
4830
|
message: string;
|
|
4831
|
+
created_at: string;
|
|
3460
4832
|
warning_code: "device_has_flaky_connection";
|
|
3461
4833
|
} | {
|
|
3462
4834
|
message: string;
|
|
4835
|
+
created_at: string;
|
|
3463
4836
|
warning_code: "unknown_issue_with_phone";
|
|
3464
4837
|
})[];
|
|
3465
4838
|
custom_metadata: Record<string, string | boolean>;
|
|
3466
|
-
display_name: string;
|
|
3467
|
-
device_id: string;
|
|
3468
4839
|
device_type: ("akuvox_lock" | "august_lock" | "brivo_access_point" | "butterflymx_panel" | "avigilon_alta_entry" | "doorking_lock" | "genie_door" | "igloo_lock" | "linear_lock" | "lockly_lock" | "kwikset_lock" | "nuki_lock" | "salto_lock" | "schlage_lock" | "seam_relay" | "smartthings_lock" | "wyze_lock" | "yale_lock" | "two_n_intercom" | "controlbyweb_device" | "ttlock_lock" | "igloohome_lock" | "hubitat_lock" | "four_suites_door" | "dormakaba_oracode_door" | "tedee_lock" | "akiles_lock") | ("noiseaware_activity_zone" | "minut_sensor") | ("ecobee_thermostat" | "nest_thermostat" | "honeywell_resideo_thermostat" | "tado_thermostat") | ("ios_phone" | "android_phone");
|
|
3469
|
-
capabilities_supported: ("
|
|
4840
|
+
capabilities_supported: ("access_code" | "lock" | "noise_detection" | "thermostat" | "battery" | "phone")[];
|
|
3470
4841
|
properties: {
|
|
3471
4842
|
name: string;
|
|
3472
4843
|
appearance: {
|
|
@@ -3815,17 +5186,17 @@ export declare const device: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
3815
5186
|
}[] | undefined;
|
|
3816
5187
|
fallback_climate_preset_key?: string | null | undefined;
|
|
3817
5188
|
active_thermostat_schedule?: {
|
|
3818
|
-
created_at: string;
|
|
3819
|
-
errors: {
|
|
3820
|
-
message: string;
|
|
3821
|
-
error_code: string;
|
|
3822
|
-
}[];
|
|
3823
5189
|
climate_preset_key: string;
|
|
3824
5190
|
thermostat_schedule_id: string;
|
|
3825
5191
|
device_id: string;
|
|
3826
5192
|
max_override_period_minutes: number;
|
|
3827
5193
|
starts_at: string;
|
|
3828
5194
|
ends_at: string;
|
|
5195
|
+
created_at: string;
|
|
5196
|
+
errors: {
|
|
5197
|
+
message: string;
|
|
5198
|
+
error_code: string;
|
|
5199
|
+
}[];
|
|
3829
5200
|
name?: string | undefined;
|
|
3830
5201
|
unstable_is_override_allowed?: boolean | undefined;
|
|
3831
5202
|
} | null | undefined;
|