@seamapi/types 1.332.1 → 1.334.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.
Files changed (33) hide show
  1. package/dist/connect.cjs +1541 -161
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +4917 -923
  4. package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +902 -35
  5. package/lib/seam/connect/models/access-codes/managed-access-code.js +238 -6
  6. package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
  7. package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +568 -25
  8. package/lib/seam/connect/models/acs/acs-credential.d.ts +66 -0
  9. package/lib/seam/connect/models/acs/acs-credential.js +4 -1
  10. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  11. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.d.ts +20 -0
  12. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.js +7 -0
  13. package/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.js.map +1 -1
  14. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +216 -0
  15. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +94 -0
  16. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +122 -0
  17. package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +85 -23
  18. package/lib/seam/connect/models/connected-accounts/connected-account.js +27 -9
  19. package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
  20. package/lib/seam/connect/models/devices/device.d.ts +28 -7
  21. package/lib/seam/connect/models/devices/phone.d.ts +28 -7
  22. package/lib/seam/connect/models/devices/unmanaged-device.d.ts +28 -7
  23. package/lib/seam/connect/openapi.d.ts +309 -164
  24. package/lib/seam/connect/openapi.js +1346 -104
  25. package/lib/seam/connect/openapi.js.map +1 -1
  26. package/lib/seam/connect/route-types.d.ts +2391 -310
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +282 -7
  29. package/src/lib/seam/connect/models/acs/acs-credential.ts +7 -1
  30. package/src/lib/seam/connect/models/acs/metadata/assa-abloy-vostio.ts +12 -0
  31. package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +32 -9
  32. package/src/lib/seam/connect/openapi.ts +1518 -173
  33. package/src/lib/seam/connect/route-types.ts +3016 -297
@@ -1,30 +1,354 @@
1
1
  import { z } from 'zod';
2
- declare const access_code_error: z.ZodObject<z.objectUtil.extendShape<{
2
+ declare const access_code_error: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
3
3
  message: z.ZodString;
4
4
  is_access_code_error: z.ZodLiteral<true>;
5
5
  }, {
6
- error_code: z.ZodString;
6
+ error_code: z.ZodLiteral<"smartthings_failed_to_set_access_code">;
7
7
  }>, "strip", z.ZodTypeAny, {
8
8
  message: string;
9
- error_code: string;
9
+ error_code: "smartthings_failed_to_set_access_code";
10
10
  is_access_code_error: true;
11
11
  }, {
12
12
  message: string;
13
- error_code: string;
13
+ error_code: "smartthings_failed_to_set_access_code";
14
14
  is_access_code_error: true;
15
- }>;
15
+ }>, z.ZodObject<z.objectUtil.extendShape<{
16
+ message: z.ZodString;
17
+ is_access_code_error: z.ZodLiteral<true>;
18
+ }, {
19
+ error_code: z.ZodLiteral<"smartthings_failed_to_set_after_multiple_retries">;
20
+ }>, "strip", z.ZodTypeAny, {
21
+ message: string;
22
+ error_code: "smartthings_failed_to_set_after_multiple_retries";
23
+ is_access_code_error: true;
24
+ }, {
25
+ message: string;
26
+ error_code: "smartthings_failed_to_set_after_multiple_retries";
27
+ is_access_code_error: true;
28
+ }>, z.ZodObject<z.objectUtil.extendShape<{
29
+ message: z.ZodString;
30
+ is_access_code_error: z.ZodLiteral<true>;
31
+ }, {
32
+ error_code: z.ZodLiteral<"failed_to_set_on_device">;
33
+ }>, "strip", z.ZodTypeAny, {
34
+ message: string;
35
+ error_code: "failed_to_set_on_device";
36
+ is_access_code_error: true;
37
+ }, {
38
+ message: string;
39
+ error_code: "failed_to_set_on_device";
40
+ is_access_code_error: true;
41
+ }>, z.ZodObject<z.objectUtil.extendShape<{
42
+ message: z.ZodString;
43
+ is_access_code_error: z.ZodLiteral<true>;
44
+ }, {
45
+ error_code: z.ZodLiteral<"failed_to_remove_from_device">;
46
+ }>, "strip", z.ZodTypeAny, {
47
+ message: string;
48
+ error_code: "failed_to_remove_from_device";
49
+ is_access_code_error: true;
50
+ }, {
51
+ message: string;
52
+ error_code: "failed_to_remove_from_device";
53
+ is_access_code_error: true;
54
+ }>, z.ZodObject<z.objectUtil.extendShape<{
55
+ message: z.ZodString;
56
+ is_access_code_error: z.ZodLiteral<true>;
57
+ }, {
58
+ error_code: z.ZodLiteral<"duplicate_code_on_device">;
59
+ }>, "strip", z.ZodTypeAny, {
60
+ message: string;
61
+ error_code: "duplicate_code_on_device";
62
+ is_access_code_error: true;
63
+ }, {
64
+ message: string;
65
+ error_code: "duplicate_code_on_device";
66
+ is_access_code_error: true;
67
+ }>, z.ZodObject<z.objectUtil.extendShape<{
68
+ message: z.ZodString;
69
+ is_access_code_error: z.ZodLiteral<true>;
70
+ }, {
71
+ error_code: z.ZodLiteral<"duplicate_code_attempt_prevented">;
72
+ }>, "strip", z.ZodTypeAny, {
73
+ message: string;
74
+ error_code: "duplicate_code_attempt_prevented";
75
+ is_access_code_error: true;
76
+ }, {
77
+ message: string;
78
+ error_code: "duplicate_code_attempt_prevented";
79
+ is_access_code_error: true;
80
+ }>, z.ZodObject<z.objectUtil.extendShape<{
81
+ message: z.ZodString;
82
+ is_access_code_error: z.ZodLiteral<true>;
83
+ }, {
84
+ error_code: z.ZodLiteral<"igloohome_bridge_too_many_pending_jobs">;
85
+ }>, "strip", z.ZodTypeAny, {
86
+ message: string;
87
+ error_code: "igloohome_bridge_too_many_pending_jobs";
88
+ is_access_code_error: true;
89
+ }, {
90
+ message: string;
91
+ error_code: "igloohome_bridge_too_many_pending_jobs";
92
+ is_access_code_error: true;
93
+ }>, z.ZodObject<z.objectUtil.extendShape<{
94
+ message: z.ZodString;
95
+ is_access_code_error: z.ZodLiteral<true>;
96
+ }, {
97
+ error_code: z.ZodLiteral<"igloohome_bridge_offline">;
98
+ }>, "strip", z.ZodTypeAny, {
99
+ message: string;
100
+ error_code: "igloohome_bridge_offline";
101
+ is_access_code_error: true;
102
+ }, {
103
+ message: string;
104
+ error_code: "igloohome_bridge_offline";
105
+ is_access_code_error: true;
106
+ }>, z.ZodObject<z.objectUtil.extendShape<{
107
+ message: z.ZodString;
108
+ is_access_code_error: z.ZodLiteral<true>;
109
+ }, {
110
+ error_code: z.ZodLiteral<"igloohome_offline_access_code_no_variance_available">;
111
+ }>, "strip", z.ZodTypeAny, {
112
+ message: string;
113
+ error_code: "igloohome_offline_access_code_no_variance_available";
114
+ is_access_code_error: true;
115
+ }, {
116
+ message: string;
117
+ error_code: "igloohome_offline_access_code_no_variance_available";
118
+ is_access_code_error: true;
119
+ }>, z.ZodObject<z.objectUtil.extendShape<{
120
+ message: z.ZodString;
121
+ is_access_code_error: z.ZodLiteral<true>;
122
+ }, {
123
+ error_code: z.ZodLiteral<"kwikset_unable_to_confirm_code">;
124
+ }>, "strip", z.ZodTypeAny, {
125
+ message: string;
126
+ error_code: "kwikset_unable_to_confirm_code";
127
+ is_access_code_error: true;
128
+ }, {
129
+ message: string;
130
+ error_code: "kwikset_unable_to_confirm_code";
131
+ is_access_code_error: true;
132
+ }>, z.ZodObject<z.objectUtil.extendShape<{
133
+ message: z.ZodString;
134
+ is_access_code_error: z.ZodLiteral<true>;
135
+ }, {
136
+ error_code: z.ZodLiteral<"kwikset_unable_to_confirm_deletion">;
137
+ }>, "strip", z.ZodTypeAny, {
138
+ message: string;
139
+ error_code: "kwikset_unable_to_confirm_deletion";
140
+ is_access_code_error: true;
141
+ }, {
142
+ message: string;
143
+ error_code: "kwikset_unable_to_confirm_deletion";
144
+ is_access_code_error: true;
145
+ }>, z.ZodObject<z.objectUtil.extendShape<{
146
+ message: z.ZodString;
147
+ is_access_code_error: z.ZodLiteral<true>;
148
+ }, {
149
+ error_code: z.ZodLiteral<"code_modified_external_to_seam">;
150
+ }>, "strip", z.ZodTypeAny, {
151
+ message: string;
152
+ error_code: "code_modified_external_to_seam";
153
+ is_access_code_error: true;
154
+ }, {
155
+ message: string;
156
+ error_code: "code_modified_external_to_seam";
157
+ is_access_code_error: true;
158
+ }>, z.ZodObject<z.objectUtil.extendShape<{
159
+ message: z.ZodString;
160
+ is_access_code_error: z.ZodLiteral<true>;
161
+ }, {
162
+ error_code: z.ZodLiteral<"august_lock_invalid_code_length">;
163
+ }>, "strip", z.ZodTypeAny, {
164
+ message: string;
165
+ error_code: "august_lock_invalid_code_length";
166
+ is_access_code_error: true;
167
+ }, {
168
+ message: string;
169
+ error_code: "august_lock_invalid_code_length";
170
+ is_access_code_error: true;
171
+ }>, z.ZodObject<z.objectUtil.extendShape<{
172
+ message: z.ZodString;
173
+ is_access_code_error: z.ZodLiteral<true>;
174
+ }, {
175
+ error_code: z.ZodLiteral<"august_device_programming_delay">;
176
+ }>, "strip", z.ZodTypeAny, {
177
+ message: string;
178
+ error_code: "august_device_programming_delay";
179
+ is_access_code_error: true;
180
+ }, {
181
+ message: string;
182
+ error_code: "august_device_programming_delay";
183
+ is_access_code_error: true;
184
+ }>, z.ZodObject<z.objectUtil.extendShape<{
185
+ message: z.ZodString;
186
+ is_access_code_error: z.ZodLiteral<true>;
187
+ }, {
188
+ error_code: z.ZodLiteral<"august_device_slots_full">;
189
+ }>, "strip", z.ZodTypeAny, {
190
+ message: string;
191
+ error_code: "august_device_slots_full";
192
+ is_access_code_error: true;
193
+ }, {
194
+ message: string;
195
+ error_code: "august_device_slots_full";
196
+ is_access_code_error: true;
197
+ }>, z.ZodObject<z.objectUtil.extendShape<{
198
+ message: z.ZodString;
199
+ is_access_code_error: z.ZodLiteral<true>;
200
+ }, {
201
+ error_code: z.ZodLiteral<"august_lock_missing_keypad">;
202
+ }>, "strip", z.ZodTypeAny, {
203
+ message: string;
204
+ error_code: "august_lock_missing_keypad";
205
+ is_access_code_error: true;
206
+ }, {
207
+ message: string;
208
+ error_code: "august_lock_missing_keypad";
209
+ is_access_code_error: true;
210
+ }>, z.ZodObject<z.objectUtil.extendShape<{
211
+ message: z.ZodString;
212
+ is_access_code_error: z.ZodLiteral<true>;
213
+ }, {
214
+ error_code: z.ZodLiteral<"salto_site_user_not_subscribed">;
215
+ }>, "strip", z.ZodTypeAny, {
216
+ message: string;
217
+ error_code: "salto_site_user_not_subscribed";
218
+ is_access_code_error: true;
219
+ }, {
220
+ message: string;
221
+ error_code: "salto_site_user_not_subscribed";
222
+ is_access_code_error: true;
223
+ }>, z.ZodObject<z.objectUtil.extendShape<{
224
+ message: z.ZodString;
225
+ is_access_code_error: z.ZodLiteral<true>;
226
+ }, {
227
+ error_code: z.ZodLiteral<"hubitat_device_programming_delay">;
228
+ }>, "strip", z.ZodTypeAny, {
229
+ message: string;
230
+ error_code: "hubitat_device_programming_delay";
231
+ is_access_code_error: true;
232
+ }, {
233
+ message: string;
234
+ error_code: "hubitat_device_programming_delay";
235
+ is_access_code_error: true;
236
+ }>, z.ZodObject<z.objectUtil.extendShape<{
237
+ message: z.ZodString;
238
+ is_access_code_error: z.ZodLiteral<true>;
239
+ }, {
240
+ error_code: z.ZodLiteral<"hubitat_no_free_positions_available">;
241
+ }>, "strip", z.ZodTypeAny, {
242
+ message: string;
243
+ error_code: "hubitat_no_free_positions_available";
244
+ is_access_code_error: true;
245
+ }, {
246
+ message: string;
247
+ error_code: "hubitat_no_free_positions_available";
248
+ is_access_code_error: true;
249
+ }>]>;
16
250
  export type AccessCodeError = z.infer<typeof access_code_error>;
17
- declare const access_code_warning: z.ZodObject<z.objectUtil.extendShape<{
251
+ declare const access_code_warning: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
18
252
  message: z.ZodString;
19
253
  }, {
20
- warning_code: z.ZodString;
254
+ warning_code: z.ZodLiteral<"smartthings_failed_to_set_access_code">;
21
255
  }>, "strip", z.ZodTypeAny, {
22
256
  message: string;
23
- warning_code: string;
257
+ warning_code: "smartthings_failed_to_set_access_code";
24
258
  }, {
25
259
  message: string;
26
- warning_code: string;
27
- }>;
260
+ warning_code: "smartthings_failed_to_set_access_code";
261
+ }>, z.ZodObject<z.objectUtil.extendShape<{
262
+ message: z.ZodString;
263
+ }, {
264
+ warning_code: z.ZodLiteral<"schlage_detected_duplicate">;
265
+ }>, "strip", z.ZodTypeAny, {
266
+ message: string;
267
+ warning_code: "schlage_detected_duplicate";
268
+ }, {
269
+ message: string;
270
+ warning_code: "schlage_detected_duplicate";
271
+ }>, z.ZodObject<z.objectUtil.extendShape<{
272
+ message: z.ZodString;
273
+ }, {
274
+ warning_code: z.ZodLiteral<"schlage_creation_outage">;
275
+ }>, "strip", z.ZodTypeAny, {
276
+ message: string;
277
+ warning_code: "schlage_creation_outage";
278
+ }, {
279
+ message: string;
280
+ warning_code: "schlage_creation_outage";
281
+ }>, z.ZodObject<z.objectUtil.extendShape<{
282
+ message: z.ZodString;
283
+ }, {
284
+ warning_code: z.ZodLiteral<"code_modified_external_to_seam">;
285
+ }>, "strip", z.ZodTypeAny, {
286
+ message: string;
287
+ warning_code: "code_modified_external_to_seam";
288
+ }, {
289
+ message: string;
290
+ warning_code: "code_modified_external_to_seam";
291
+ }>, z.ZodObject<z.objectUtil.extendShape<{
292
+ message: z.ZodString;
293
+ }, {
294
+ warning_code: z.ZodLiteral<"delay_in_setting_on_device">;
295
+ }>, "strip", z.ZodTypeAny, {
296
+ message: string;
297
+ warning_code: "delay_in_setting_on_device";
298
+ }, {
299
+ message: string;
300
+ warning_code: "delay_in_setting_on_device";
301
+ }>, z.ZodObject<z.objectUtil.extendShape<{
302
+ message: z.ZodString;
303
+ }, {
304
+ warning_code: z.ZodLiteral<"delay_in_removing_from_device">;
305
+ }>, "strip", z.ZodTypeAny, {
306
+ message: string;
307
+ warning_code: "delay_in_removing_from_device";
308
+ }, {
309
+ message: string;
310
+ warning_code: "delay_in_removing_from_device";
311
+ }>, z.ZodObject<z.objectUtil.extendShape<{
312
+ message: z.ZodString;
313
+ }, {
314
+ warning_code: z.ZodLiteral<"third_party_integration_detected">;
315
+ }>, "strip", z.ZodTypeAny, {
316
+ message: string;
317
+ warning_code: "third_party_integration_detected";
318
+ }, {
319
+ message: string;
320
+ warning_code: "third_party_integration_detected";
321
+ }>, z.ZodObject<z.objectUtil.extendShape<{
322
+ message: z.ZodString;
323
+ }, {
324
+ warning_code: z.ZodLiteral<"august_device_programming_delay">;
325
+ }>, "strip", z.ZodTypeAny, {
326
+ message: string;
327
+ warning_code: "august_device_programming_delay";
328
+ }, {
329
+ message: string;
330
+ warning_code: "august_device_programming_delay";
331
+ }>, z.ZodObject<z.objectUtil.extendShape<{
332
+ message: z.ZodString;
333
+ }, {
334
+ warning_code: z.ZodLiteral<"igloo_algopin_must_be_used_within_24_hours">;
335
+ }>, "strip", z.ZodTypeAny, {
336
+ message: string;
337
+ warning_code: "igloo_algopin_must_be_used_within_24_hours";
338
+ }, {
339
+ message: string;
340
+ warning_code: "igloo_algopin_must_be_used_within_24_hours";
341
+ }>, z.ZodObject<z.objectUtil.extendShape<{
342
+ message: z.ZodString;
343
+ }, {
344
+ warning_code: z.ZodLiteral<"management_transferred">;
345
+ }>, "strip", z.ZodTypeAny, {
346
+ message: string;
347
+ warning_code: "management_transferred";
348
+ }, {
349
+ message: string;
350
+ warning_code: "management_transferred";
351
+ }>]>;
28
352
  export type AccessCodeWarning = z.infer<typeof access_code_warning>;
29
353
  export declare const access_code: z.ZodObject<{
30
354
  common_code_key: z.ZodNullable<z.ZodString>;
@@ -36,20 +360,254 @@ export declare const access_code: z.ZodObject<{
36
360
  name: z.ZodNullable<z.ZodString>;
37
361
  code: z.ZodNullable<z.ZodString>;
38
362
  created_at: z.ZodString;
39
- errors: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
363
+ errors: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
364
+ message: z.ZodString;
365
+ is_access_code_error: z.ZodLiteral<true>;
366
+ }, {
367
+ error_code: z.ZodLiteral<"smartthings_failed_to_set_access_code">;
368
+ }>, "strip", z.ZodTypeAny, {
369
+ message: string;
370
+ error_code: "smartthings_failed_to_set_access_code";
371
+ is_access_code_error: true;
372
+ }, {
373
+ message: string;
374
+ error_code: "smartthings_failed_to_set_access_code";
375
+ is_access_code_error: true;
376
+ }>, z.ZodObject<z.objectUtil.extendShape<{
377
+ message: z.ZodString;
378
+ is_access_code_error: z.ZodLiteral<true>;
379
+ }, {
380
+ error_code: z.ZodLiteral<"smartthings_failed_to_set_after_multiple_retries">;
381
+ }>, "strip", z.ZodTypeAny, {
382
+ message: string;
383
+ error_code: "smartthings_failed_to_set_after_multiple_retries";
384
+ is_access_code_error: true;
385
+ }, {
386
+ message: string;
387
+ error_code: "smartthings_failed_to_set_after_multiple_retries";
388
+ is_access_code_error: true;
389
+ }>, z.ZodObject<z.objectUtil.extendShape<{
390
+ message: z.ZodString;
391
+ is_access_code_error: z.ZodLiteral<true>;
392
+ }, {
393
+ error_code: z.ZodLiteral<"failed_to_set_on_device">;
394
+ }>, "strip", z.ZodTypeAny, {
395
+ message: string;
396
+ error_code: "failed_to_set_on_device";
397
+ is_access_code_error: true;
398
+ }, {
399
+ message: string;
400
+ error_code: "failed_to_set_on_device";
401
+ is_access_code_error: true;
402
+ }>, z.ZodObject<z.objectUtil.extendShape<{
403
+ message: z.ZodString;
404
+ is_access_code_error: z.ZodLiteral<true>;
405
+ }, {
406
+ error_code: z.ZodLiteral<"failed_to_remove_from_device">;
407
+ }>, "strip", z.ZodTypeAny, {
408
+ message: string;
409
+ error_code: "failed_to_remove_from_device";
410
+ is_access_code_error: true;
411
+ }, {
412
+ message: string;
413
+ error_code: "failed_to_remove_from_device";
414
+ is_access_code_error: true;
415
+ }>, z.ZodObject<z.objectUtil.extendShape<{
416
+ message: z.ZodString;
417
+ is_access_code_error: z.ZodLiteral<true>;
418
+ }, {
419
+ error_code: z.ZodLiteral<"duplicate_code_on_device">;
420
+ }>, "strip", z.ZodTypeAny, {
421
+ message: string;
422
+ error_code: "duplicate_code_on_device";
423
+ is_access_code_error: true;
424
+ }, {
425
+ message: string;
426
+ error_code: "duplicate_code_on_device";
427
+ is_access_code_error: true;
428
+ }>, z.ZodObject<z.objectUtil.extendShape<{
429
+ message: z.ZodString;
430
+ is_access_code_error: z.ZodLiteral<true>;
431
+ }, {
432
+ error_code: z.ZodLiteral<"duplicate_code_attempt_prevented">;
433
+ }>, "strip", z.ZodTypeAny, {
434
+ message: string;
435
+ error_code: "duplicate_code_attempt_prevented";
436
+ is_access_code_error: true;
437
+ }, {
438
+ message: string;
439
+ error_code: "duplicate_code_attempt_prevented";
440
+ is_access_code_error: true;
441
+ }>, z.ZodObject<z.objectUtil.extendShape<{
442
+ message: z.ZodString;
443
+ is_access_code_error: z.ZodLiteral<true>;
444
+ }, {
445
+ error_code: z.ZodLiteral<"igloohome_bridge_too_many_pending_jobs">;
446
+ }>, "strip", z.ZodTypeAny, {
447
+ message: string;
448
+ error_code: "igloohome_bridge_too_many_pending_jobs";
449
+ is_access_code_error: true;
450
+ }, {
451
+ message: string;
452
+ error_code: "igloohome_bridge_too_many_pending_jobs";
453
+ is_access_code_error: true;
454
+ }>, z.ZodObject<z.objectUtil.extendShape<{
455
+ message: z.ZodString;
456
+ is_access_code_error: z.ZodLiteral<true>;
457
+ }, {
458
+ error_code: z.ZodLiteral<"igloohome_bridge_offline">;
459
+ }>, "strip", z.ZodTypeAny, {
460
+ message: string;
461
+ error_code: "igloohome_bridge_offline";
462
+ is_access_code_error: true;
463
+ }, {
464
+ message: string;
465
+ error_code: "igloohome_bridge_offline";
466
+ is_access_code_error: true;
467
+ }>, z.ZodObject<z.objectUtil.extendShape<{
468
+ message: z.ZodString;
469
+ is_access_code_error: z.ZodLiteral<true>;
470
+ }, {
471
+ error_code: z.ZodLiteral<"igloohome_offline_access_code_no_variance_available">;
472
+ }>, "strip", z.ZodTypeAny, {
473
+ message: string;
474
+ error_code: "igloohome_offline_access_code_no_variance_available";
475
+ is_access_code_error: true;
476
+ }, {
477
+ message: string;
478
+ error_code: "igloohome_offline_access_code_no_variance_available";
479
+ is_access_code_error: true;
480
+ }>, z.ZodObject<z.objectUtil.extendShape<{
481
+ message: z.ZodString;
482
+ is_access_code_error: z.ZodLiteral<true>;
483
+ }, {
484
+ error_code: z.ZodLiteral<"kwikset_unable_to_confirm_code">;
485
+ }>, "strip", z.ZodTypeAny, {
486
+ message: string;
487
+ error_code: "kwikset_unable_to_confirm_code";
488
+ is_access_code_error: true;
489
+ }, {
490
+ message: string;
491
+ error_code: "kwikset_unable_to_confirm_code";
492
+ is_access_code_error: true;
493
+ }>, z.ZodObject<z.objectUtil.extendShape<{
494
+ message: z.ZodString;
495
+ is_access_code_error: z.ZodLiteral<true>;
496
+ }, {
497
+ error_code: z.ZodLiteral<"kwikset_unable_to_confirm_deletion">;
498
+ }>, "strip", z.ZodTypeAny, {
499
+ message: string;
500
+ error_code: "kwikset_unable_to_confirm_deletion";
501
+ is_access_code_error: true;
502
+ }, {
503
+ message: string;
504
+ error_code: "kwikset_unable_to_confirm_deletion";
505
+ is_access_code_error: true;
506
+ }>, z.ZodObject<z.objectUtil.extendShape<{
507
+ message: z.ZodString;
508
+ is_access_code_error: z.ZodLiteral<true>;
509
+ }, {
510
+ error_code: z.ZodLiteral<"code_modified_external_to_seam">;
511
+ }>, "strip", z.ZodTypeAny, {
512
+ message: string;
513
+ error_code: "code_modified_external_to_seam";
514
+ is_access_code_error: true;
515
+ }, {
516
+ message: string;
517
+ error_code: "code_modified_external_to_seam";
518
+ is_access_code_error: true;
519
+ }>, z.ZodObject<z.objectUtil.extendShape<{
520
+ message: z.ZodString;
521
+ is_access_code_error: z.ZodLiteral<true>;
522
+ }, {
523
+ error_code: z.ZodLiteral<"august_lock_invalid_code_length">;
524
+ }>, "strip", z.ZodTypeAny, {
525
+ message: string;
526
+ error_code: "august_lock_invalid_code_length";
527
+ is_access_code_error: true;
528
+ }, {
529
+ message: string;
530
+ error_code: "august_lock_invalid_code_length";
531
+ is_access_code_error: true;
532
+ }>, z.ZodObject<z.objectUtil.extendShape<{
533
+ message: z.ZodString;
534
+ is_access_code_error: z.ZodLiteral<true>;
535
+ }, {
536
+ error_code: z.ZodLiteral<"august_device_programming_delay">;
537
+ }>, "strip", z.ZodTypeAny, {
538
+ message: string;
539
+ error_code: "august_device_programming_delay";
540
+ is_access_code_error: true;
541
+ }, {
542
+ message: string;
543
+ error_code: "august_device_programming_delay";
544
+ is_access_code_error: true;
545
+ }>, z.ZodObject<z.objectUtil.extendShape<{
546
+ message: z.ZodString;
547
+ is_access_code_error: z.ZodLiteral<true>;
548
+ }, {
549
+ error_code: z.ZodLiteral<"august_device_slots_full">;
550
+ }>, "strip", z.ZodTypeAny, {
551
+ message: string;
552
+ error_code: "august_device_slots_full";
553
+ is_access_code_error: true;
554
+ }, {
555
+ message: string;
556
+ error_code: "august_device_slots_full";
557
+ is_access_code_error: true;
558
+ }>, z.ZodObject<z.objectUtil.extendShape<{
559
+ message: z.ZodString;
560
+ is_access_code_error: z.ZodLiteral<true>;
561
+ }, {
562
+ error_code: z.ZodLiteral<"august_lock_missing_keypad">;
563
+ }>, "strip", z.ZodTypeAny, {
564
+ message: string;
565
+ error_code: "august_lock_missing_keypad";
566
+ is_access_code_error: true;
567
+ }, {
568
+ message: string;
569
+ error_code: "august_lock_missing_keypad";
570
+ is_access_code_error: true;
571
+ }>, z.ZodObject<z.objectUtil.extendShape<{
572
+ message: z.ZodString;
573
+ is_access_code_error: z.ZodLiteral<true>;
574
+ }, {
575
+ error_code: z.ZodLiteral<"salto_site_user_not_subscribed">;
576
+ }>, "strip", z.ZodTypeAny, {
577
+ message: string;
578
+ error_code: "salto_site_user_not_subscribed";
579
+ is_access_code_error: true;
580
+ }, {
581
+ message: string;
582
+ error_code: "salto_site_user_not_subscribed";
583
+ is_access_code_error: true;
584
+ }>, z.ZodObject<z.objectUtil.extendShape<{
585
+ message: z.ZodString;
586
+ is_access_code_error: z.ZodLiteral<true>;
587
+ }, {
588
+ error_code: z.ZodLiteral<"hubitat_device_programming_delay">;
589
+ }>, "strip", z.ZodTypeAny, {
590
+ message: string;
591
+ error_code: "hubitat_device_programming_delay";
592
+ is_access_code_error: true;
593
+ }, {
594
+ message: string;
595
+ error_code: "hubitat_device_programming_delay";
596
+ is_access_code_error: true;
597
+ }>, z.ZodObject<z.objectUtil.extendShape<{
40
598
  message: z.ZodString;
41
599
  is_access_code_error: z.ZodLiteral<true>;
42
600
  }, {
43
- error_code: z.ZodString;
601
+ error_code: z.ZodLiteral<"hubitat_no_free_positions_available">;
44
602
  }>, "strip", z.ZodTypeAny, {
45
603
  message: string;
46
- error_code: string;
604
+ error_code: "hubitat_no_free_positions_available";
47
605
  is_access_code_error: true;
48
606
  }, {
49
607
  message: string;
50
- error_code: string;
608
+ error_code: "hubitat_no_free_positions_available";
51
609
  is_access_code_error: true;
52
- }>, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
610
+ }>]>, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
53
611
  message: z.ZodString;
54
612
  is_device_error: z.ZodLiteral<true>;
55
613
  }, {
@@ -218,31 +776,134 @@ export declare const access_code: z.ZodObject<{
218
776
  message: string;
219
777
  error_code: "subscription_required";
220
778
  is_device_error: true;
221
- }>]>, z.ZodObject<z.objectUtil.extendShape<{
779
+ }>]>, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
222
780
  message: z.ZodString;
223
781
  is_connected_account_error: z.ZodLiteral<true>;
224
782
  }, {
225
- error_code: z.ZodString;
783
+ error_code: z.ZodLiteral<"account_disconnected">;
226
784
  }>, "strip", z.ZodTypeAny, {
227
785
  message: string;
228
786
  is_connected_account_error: true;
229
- error_code: string;
787
+ error_code: "account_disconnected";
230
788
  }, {
231
789
  message: string;
232
790
  is_connected_account_error: true;
233
- error_code: string;
234
- }>]>, "many">;
235
- warnings: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
791
+ error_code: "account_disconnected";
792
+ }>, z.ZodObject<z.objectUtil.extendShape<{
793
+ message: z.ZodString;
794
+ is_connected_account_error: z.ZodLiteral<true>;
795
+ }, {
796
+ error_code: z.ZodLiteral<"invalid_credentials">;
797
+ }>, "strip", z.ZodTypeAny, {
798
+ message: string;
799
+ is_connected_account_error: true;
800
+ error_code: "invalid_credentials";
801
+ }, {
802
+ message: string;
803
+ is_connected_account_error: true;
804
+ error_code: "invalid_credentials";
805
+ }>]>]>, "many">;
806
+ warnings: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
807
+ message: z.ZodString;
808
+ }, {
809
+ warning_code: z.ZodLiteral<"smartthings_failed_to_set_access_code">;
810
+ }>, "strip", z.ZodTypeAny, {
811
+ message: string;
812
+ warning_code: "smartthings_failed_to_set_access_code";
813
+ }, {
814
+ message: string;
815
+ warning_code: "smartthings_failed_to_set_access_code";
816
+ }>, z.ZodObject<z.objectUtil.extendShape<{
817
+ message: z.ZodString;
818
+ }, {
819
+ warning_code: z.ZodLiteral<"schlage_detected_duplicate">;
820
+ }>, "strip", z.ZodTypeAny, {
821
+ message: string;
822
+ warning_code: "schlage_detected_duplicate";
823
+ }, {
824
+ message: string;
825
+ warning_code: "schlage_detected_duplicate";
826
+ }>, z.ZodObject<z.objectUtil.extendShape<{
827
+ message: z.ZodString;
828
+ }, {
829
+ warning_code: z.ZodLiteral<"schlage_creation_outage">;
830
+ }>, "strip", z.ZodTypeAny, {
831
+ message: string;
832
+ warning_code: "schlage_creation_outage";
833
+ }, {
834
+ message: string;
835
+ warning_code: "schlage_creation_outage";
836
+ }>, z.ZodObject<z.objectUtil.extendShape<{
837
+ message: z.ZodString;
838
+ }, {
839
+ warning_code: z.ZodLiteral<"code_modified_external_to_seam">;
840
+ }>, "strip", z.ZodTypeAny, {
841
+ message: string;
842
+ warning_code: "code_modified_external_to_seam";
843
+ }, {
844
+ message: string;
845
+ warning_code: "code_modified_external_to_seam";
846
+ }>, z.ZodObject<z.objectUtil.extendShape<{
847
+ message: z.ZodString;
848
+ }, {
849
+ warning_code: z.ZodLiteral<"delay_in_setting_on_device">;
850
+ }>, "strip", z.ZodTypeAny, {
851
+ message: string;
852
+ warning_code: "delay_in_setting_on_device";
853
+ }, {
854
+ message: string;
855
+ warning_code: "delay_in_setting_on_device";
856
+ }>, z.ZodObject<z.objectUtil.extendShape<{
857
+ message: z.ZodString;
858
+ }, {
859
+ warning_code: z.ZodLiteral<"delay_in_removing_from_device">;
860
+ }>, "strip", z.ZodTypeAny, {
861
+ message: string;
862
+ warning_code: "delay_in_removing_from_device";
863
+ }, {
864
+ message: string;
865
+ warning_code: "delay_in_removing_from_device";
866
+ }>, z.ZodObject<z.objectUtil.extendShape<{
867
+ message: z.ZodString;
868
+ }, {
869
+ warning_code: z.ZodLiteral<"third_party_integration_detected">;
870
+ }>, "strip", z.ZodTypeAny, {
871
+ message: string;
872
+ warning_code: "third_party_integration_detected";
873
+ }, {
874
+ message: string;
875
+ warning_code: "third_party_integration_detected";
876
+ }>, z.ZodObject<z.objectUtil.extendShape<{
877
+ message: z.ZodString;
878
+ }, {
879
+ warning_code: z.ZodLiteral<"august_device_programming_delay">;
880
+ }>, "strip", z.ZodTypeAny, {
881
+ message: string;
882
+ warning_code: "august_device_programming_delay";
883
+ }, {
884
+ message: string;
885
+ warning_code: "august_device_programming_delay";
886
+ }>, z.ZodObject<z.objectUtil.extendShape<{
887
+ message: z.ZodString;
888
+ }, {
889
+ warning_code: z.ZodLiteral<"igloo_algopin_must_be_used_within_24_hours">;
890
+ }>, "strip", z.ZodTypeAny, {
891
+ message: string;
892
+ warning_code: "igloo_algopin_must_be_used_within_24_hours";
893
+ }, {
894
+ message: string;
895
+ warning_code: "igloo_algopin_must_be_used_within_24_hours";
896
+ }>, z.ZodObject<z.objectUtil.extendShape<{
236
897
  message: z.ZodString;
237
898
  }, {
238
- warning_code: z.ZodString;
899
+ warning_code: z.ZodLiteral<"management_transferred">;
239
900
  }>, "strip", z.ZodTypeAny, {
240
901
  message: string;
241
- warning_code: string;
902
+ warning_code: "management_transferred";
242
903
  }, {
243
904
  message: string;
244
- warning_code: string;
245
- }>, "many">;
905
+ warning_code: "management_transferred";
906
+ }>]>, "many">;
246
907
  is_managed: z.ZodLiteral<true>;
247
908
  starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
248
909
  ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -262,7 +923,11 @@ export declare const access_code: z.ZodObject<{
262
923
  errors: ({
263
924
  message: string;
264
925
  is_connected_account_error: true;
265
- error_code: string;
926
+ error_code: "account_disconnected";
927
+ } | {
928
+ message: string;
929
+ is_connected_account_error: true;
930
+ error_code: "invalid_credentials";
266
931
  } | {
267
932
  message: string;
268
933
  error_code: "device_offline";
@@ -317,13 +982,112 @@ export declare const access_code: z.ZodObject<{
317
982
  is_device_error: true;
318
983
  } | {
319
984
  message: string;
320
- error_code: string;
985
+ error_code: "smartthings_failed_to_set_access_code";
986
+ is_access_code_error: true;
987
+ } | {
988
+ message: string;
989
+ error_code: "smartthings_failed_to_set_after_multiple_retries";
990
+ is_access_code_error: true;
991
+ } | {
992
+ message: string;
993
+ error_code: "code_modified_external_to_seam";
994
+ is_access_code_error: true;
995
+ } | {
996
+ message: string;
997
+ error_code: "failed_to_set_on_device";
998
+ is_access_code_error: true;
999
+ } | {
1000
+ message: string;
1001
+ error_code: "failed_to_remove_from_device";
1002
+ is_access_code_error: true;
1003
+ } | {
1004
+ message: string;
1005
+ error_code: "duplicate_code_on_device";
1006
+ is_access_code_error: true;
1007
+ } | {
1008
+ message: string;
1009
+ error_code: "duplicate_code_attempt_prevented";
1010
+ is_access_code_error: true;
1011
+ } | {
1012
+ message: string;
1013
+ error_code: "igloohome_bridge_too_many_pending_jobs";
1014
+ is_access_code_error: true;
1015
+ } | {
1016
+ message: string;
1017
+ error_code: "igloohome_bridge_offline";
1018
+ is_access_code_error: true;
1019
+ } | {
1020
+ message: string;
1021
+ error_code: "kwikset_unable_to_confirm_code";
1022
+ is_access_code_error: true;
1023
+ } | {
1024
+ message: string;
1025
+ error_code: "kwikset_unable_to_confirm_deletion";
1026
+ is_access_code_error: true;
1027
+ } | {
1028
+ message: string;
1029
+ error_code: "igloohome_offline_access_code_no_variance_available";
1030
+ is_access_code_error: true;
1031
+ } | {
1032
+ message: string;
1033
+ error_code: "august_lock_invalid_code_length";
1034
+ is_access_code_error: true;
1035
+ } | {
1036
+ message: string;
1037
+ error_code: "august_device_programming_delay";
1038
+ is_access_code_error: true;
1039
+ } | {
1040
+ message: string;
1041
+ error_code: "august_device_slots_full";
1042
+ is_access_code_error: true;
1043
+ } | {
1044
+ message: string;
1045
+ error_code: "august_lock_missing_keypad";
1046
+ is_access_code_error: true;
1047
+ } | {
1048
+ message: string;
1049
+ error_code: "salto_site_user_not_subscribed";
1050
+ is_access_code_error: true;
1051
+ } | {
1052
+ message: string;
1053
+ error_code: "hubitat_device_programming_delay";
1054
+ is_access_code_error: true;
1055
+ } | {
1056
+ message: string;
1057
+ error_code: "hubitat_no_free_positions_available";
321
1058
  is_access_code_error: true;
322
1059
  })[];
323
- warnings: {
1060
+ warnings: ({
324
1061
  message: string;
325
- warning_code: string;
326
- }[];
1062
+ warning_code: "smartthings_failed_to_set_access_code";
1063
+ } | {
1064
+ message: string;
1065
+ warning_code: "august_device_programming_delay";
1066
+ } | {
1067
+ message: string;
1068
+ warning_code: "code_modified_external_to_seam";
1069
+ } | {
1070
+ message: string;
1071
+ warning_code: "schlage_detected_duplicate";
1072
+ } | {
1073
+ message: string;
1074
+ warning_code: "schlage_creation_outage";
1075
+ } | {
1076
+ message: string;
1077
+ warning_code: "delay_in_setting_on_device";
1078
+ } | {
1079
+ message: string;
1080
+ warning_code: "delay_in_removing_from_device";
1081
+ } | {
1082
+ message: string;
1083
+ warning_code: "third_party_integration_detected";
1084
+ } | {
1085
+ message: string;
1086
+ warning_code: "igloo_algopin_must_be_used_within_24_hours";
1087
+ } | {
1088
+ message: string;
1089
+ warning_code: "management_transferred";
1090
+ })[];
327
1091
  device_id: string;
328
1092
  is_managed: true;
329
1093
  common_code_key: string | null;
@@ -347,7 +1111,11 @@ export declare const access_code: z.ZodObject<{
347
1111
  errors: ({
348
1112
  message: string;
349
1113
  is_connected_account_error: true;
350
- error_code: string;
1114
+ error_code: "account_disconnected";
1115
+ } | {
1116
+ message: string;
1117
+ is_connected_account_error: true;
1118
+ error_code: "invalid_credentials";
351
1119
  } | {
352
1120
  message: string;
353
1121
  error_code: "device_offline";
@@ -402,13 +1170,112 @@ export declare const access_code: z.ZodObject<{
402
1170
  is_device_error: true;
403
1171
  } | {
404
1172
  message: string;
405
- error_code: string;
1173
+ error_code: "smartthings_failed_to_set_access_code";
1174
+ is_access_code_error: true;
1175
+ } | {
1176
+ message: string;
1177
+ error_code: "smartthings_failed_to_set_after_multiple_retries";
1178
+ is_access_code_error: true;
1179
+ } | {
1180
+ message: string;
1181
+ error_code: "code_modified_external_to_seam";
1182
+ is_access_code_error: true;
1183
+ } | {
1184
+ message: string;
1185
+ error_code: "failed_to_set_on_device";
1186
+ is_access_code_error: true;
1187
+ } | {
1188
+ message: string;
1189
+ error_code: "failed_to_remove_from_device";
1190
+ is_access_code_error: true;
1191
+ } | {
1192
+ message: string;
1193
+ error_code: "duplicate_code_on_device";
1194
+ is_access_code_error: true;
1195
+ } | {
1196
+ message: string;
1197
+ error_code: "duplicate_code_attempt_prevented";
1198
+ is_access_code_error: true;
1199
+ } | {
1200
+ message: string;
1201
+ error_code: "igloohome_bridge_too_many_pending_jobs";
1202
+ is_access_code_error: true;
1203
+ } | {
1204
+ message: string;
1205
+ error_code: "igloohome_bridge_offline";
1206
+ is_access_code_error: true;
1207
+ } | {
1208
+ message: string;
1209
+ error_code: "kwikset_unable_to_confirm_code";
1210
+ is_access_code_error: true;
1211
+ } | {
1212
+ message: string;
1213
+ error_code: "kwikset_unable_to_confirm_deletion";
1214
+ is_access_code_error: true;
1215
+ } | {
1216
+ message: string;
1217
+ error_code: "igloohome_offline_access_code_no_variance_available";
1218
+ is_access_code_error: true;
1219
+ } | {
1220
+ message: string;
1221
+ error_code: "august_lock_invalid_code_length";
1222
+ is_access_code_error: true;
1223
+ } | {
1224
+ message: string;
1225
+ error_code: "august_device_programming_delay";
1226
+ is_access_code_error: true;
1227
+ } | {
1228
+ message: string;
1229
+ error_code: "august_device_slots_full";
1230
+ is_access_code_error: true;
1231
+ } | {
1232
+ message: string;
1233
+ error_code: "august_lock_missing_keypad";
1234
+ is_access_code_error: true;
1235
+ } | {
1236
+ message: string;
1237
+ error_code: "salto_site_user_not_subscribed";
1238
+ is_access_code_error: true;
1239
+ } | {
1240
+ message: string;
1241
+ error_code: "hubitat_device_programming_delay";
1242
+ is_access_code_error: true;
1243
+ } | {
1244
+ message: string;
1245
+ error_code: "hubitat_no_free_positions_available";
406
1246
  is_access_code_error: true;
407
1247
  })[];
408
- warnings: {
1248
+ warnings: ({
1249
+ message: string;
1250
+ warning_code: "smartthings_failed_to_set_access_code";
1251
+ } | {
1252
+ message: string;
1253
+ warning_code: "august_device_programming_delay";
1254
+ } | {
1255
+ message: string;
1256
+ warning_code: "code_modified_external_to_seam";
1257
+ } | {
1258
+ message: string;
1259
+ warning_code: "schlage_detected_duplicate";
1260
+ } | {
1261
+ message: string;
1262
+ warning_code: "schlage_creation_outage";
1263
+ } | {
1264
+ message: string;
1265
+ warning_code: "delay_in_setting_on_device";
1266
+ } | {
1267
+ message: string;
1268
+ warning_code: "delay_in_removing_from_device";
1269
+ } | {
1270
+ message: string;
1271
+ warning_code: "third_party_integration_detected";
1272
+ } | {
1273
+ message: string;
1274
+ warning_code: "igloo_algopin_must_be_used_within_24_hours";
1275
+ } | {
409
1276
  message: string;
410
- warning_code: string;
411
- }[];
1277
+ warning_code: "management_transferred";
1278
+ })[];
412
1279
  device_id: string;
413
1280
  is_managed: true;
414
1281
  common_code_key: string | null;