@seamapi/types 1.960.0 → 1.961.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 +2 -517
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +0 -1392
- package/dist/index.cjs +2 -517
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +0 -78
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +0 -78
- package/lib/seam/connect/models/devices/device.d.ts +0 -319
- package/lib/seam/connect/models/devices/device.js +0 -59
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +0 -99
- package/lib/seam/connect/openapi.js +0 -468
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +0 -977
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/device.ts +0 -63
- package/src/lib/seam/connect/openapi.ts +0 -538
- package/src/lib/seam/connect/route-types.ts +0 -1090
|
@@ -222,38 +222,6 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
222
222
|
message: z.ZodString;
|
|
223
223
|
is_device_error: z.ZodLiteral<true>;
|
|
224
224
|
created_at: z.ZodString;
|
|
225
|
-
} & {
|
|
226
|
-
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
227
|
-
}, "strip", z.ZodTypeAny, {
|
|
228
|
-
message: string;
|
|
229
|
-
created_at: string;
|
|
230
|
-
error_code: "august_lock_missing_bridge";
|
|
231
|
-
is_device_error: true;
|
|
232
|
-
}, {
|
|
233
|
-
message: string;
|
|
234
|
-
created_at: string;
|
|
235
|
-
error_code: "august_lock_missing_bridge";
|
|
236
|
-
is_device_error: true;
|
|
237
|
-
}>, z.ZodObject<{
|
|
238
|
-
message: z.ZodString;
|
|
239
|
-
is_device_error: z.ZodLiteral<true>;
|
|
240
|
-
created_at: z.ZodString;
|
|
241
|
-
} & {
|
|
242
|
-
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
243
|
-
}, "strip", z.ZodTypeAny, {
|
|
244
|
-
message: string;
|
|
245
|
-
created_at: string;
|
|
246
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
247
|
-
is_device_error: true;
|
|
248
|
-
}, {
|
|
249
|
-
message: string;
|
|
250
|
-
created_at: string;
|
|
251
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
252
|
-
is_device_error: true;
|
|
253
|
-
}>, z.ZodObject<{
|
|
254
|
-
message: z.ZodString;
|
|
255
|
-
is_device_error: z.ZodLiteral<true>;
|
|
256
|
-
created_at: z.ZodString;
|
|
257
225
|
} & {
|
|
258
226
|
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
259
227
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -298,22 +266,6 @@ export declare const device_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodO
|
|
|
298
266
|
created_at: string;
|
|
299
267
|
error_code: "subscription_required";
|
|
300
268
|
is_device_error: true;
|
|
301
|
-
}>, z.ZodObject<{
|
|
302
|
-
message: z.ZodString;
|
|
303
|
-
is_device_error: z.ZodLiteral<true>;
|
|
304
|
-
created_at: z.ZodString;
|
|
305
|
-
} & {
|
|
306
|
-
error_code: z.ZodLiteral<"lockly_missing_wifi_bridge">;
|
|
307
|
-
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
message: string;
|
|
309
|
-
created_at: string;
|
|
310
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
311
|
-
is_device_error: true;
|
|
312
|
-
}, {
|
|
313
|
-
message: string;
|
|
314
|
-
created_at: string;
|
|
315
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
316
|
-
is_device_error: true;
|
|
317
269
|
}>]>;
|
|
318
270
|
export type DeviceError = z.infer<typeof device_error>;
|
|
319
271
|
export declare const device_error_map: z.ZodObject<{
|
|
@@ -439,23 +391,6 @@ export declare const device_error_map: z.ZodObject<{
|
|
|
439
391
|
error_code: "august_lock_not_authorized";
|
|
440
392
|
is_device_error: true;
|
|
441
393
|
}>>>;
|
|
442
|
-
august_lock_missing_bridge: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
443
|
-
message: z.ZodString;
|
|
444
|
-
is_device_error: z.ZodLiteral<true>;
|
|
445
|
-
created_at: z.ZodString;
|
|
446
|
-
} & {
|
|
447
|
-
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
448
|
-
}, "strip", z.ZodTypeAny, {
|
|
449
|
-
message: string;
|
|
450
|
-
created_at: string;
|
|
451
|
-
error_code: "august_lock_missing_bridge";
|
|
452
|
-
is_device_error: true;
|
|
453
|
-
}, {
|
|
454
|
-
message: string;
|
|
455
|
-
created_at: string;
|
|
456
|
-
error_code: "august_lock_missing_bridge";
|
|
457
|
-
is_device_error: true;
|
|
458
|
-
}>>>;
|
|
459
394
|
salto_ks_subscription_limit_exceeded: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
460
395
|
message: z.ZodString;
|
|
461
396
|
created_at: z.ZodString;
|
|
@@ -496,23 +431,6 @@ export declare const device_error_map: z.ZodObject<{
|
|
|
496
431
|
is_connected_account_error: true;
|
|
497
432
|
is_device_error: false;
|
|
498
433
|
}>>>;
|
|
499
|
-
ttlock_lock_not_paired_to_gateway: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
500
|
-
message: z.ZodString;
|
|
501
|
-
is_device_error: z.ZodLiteral<true>;
|
|
502
|
-
created_at: z.ZodString;
|
|
503
|
-
} & {
|
|
504
|
-
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
505
|
-
}, "strip", z.ZodTypeAny, {
|
|
506
|
-
message: string;
|
|
507
|
-
created_at: string;
|
|
508
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
509
|
-
is_device_error: true;
|
|
510
|
-
}, {
|
|
511
|
-
message: string;
|
|
512
|
-
created_at: string;
|
|
513
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
514
|
-
is_device_error: true;
|
|
515
|
-
}>>>;
|
|
516
434
|
missing_device_credentials: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
517
435
|
message: z.ZodString;
|
|
518
436
|
is_device_error: z.ZodLiteral<true>;
|
|
@@ -564,23 +482,6 @@ export declare const device_error_map: z.ZodObject<{
|
|
|
564
482
|
error_code: "subscription_required";
|
|
565
483
|
is_device_error: true;
|
|
566
484
|
}>>>;
|
|
567
|
-
lockly_missing_wifi_bridge: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
568
|
-
message: z.ZodString;
|
|
569
|
-
is_device_error: z.ZodLiteral<true>;
|
|
570
|
-
created_at: z.ZodString;
|
|
571
|
-
} & {
|
|
572
|
-
error_code: z.ZodLiteral<"lockly_missing_wifi_bridge">;
|
|
573
|
-
}, "strip", z.ZodTypeAny, {
|
|
574
|
-
message: string;
|
|
575
|
-
created_at: string;
|
|
576
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
577
|
-
is_device_error: true;
|
|
578
|
-
}, {
|
|
579
|
-
message: string;
|
|
580
|
-
created_at: string;
|
|
581
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
582
|
-
is_device_error: true;
|
|
583
|
-
}>>>;
|
|
584
485
|
}, "strip", z.ZodTypeAny, {
|
|
585
486
|
account_disconnected?: {
|
|
586
487
|
message: string;
|
|
@@ -639,18 +540,6 @@ export declare const device_error_map: z.ZodObject<{
|
|
|
639
540
|
error_code: "august_lock_not_authorized";
|
|
640
541
|
is_device_error: true;
|
|
641
542
|
} | null | undefined;
|
|
642
|
-
august_lock_missing_bridge?: {
|
|
643
|
-
message: string;
|
|
644
|
-
created_at: string;
|
|
645
|
-
error_code: "august_lock_missing_bridge";
|
|
646
|
-
is_device_error: true;
|
|
647
|
-
} | null | undefined;
|
|
648
|
-
ttlock_lock_not_paired_to_gateway?: {
|
|
649
|
-
message: string;
|
|
650
|
-
created_at: string;
|
|
651
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
652
|
-
is_device_error: true;
|
|
653
|
-
} | null | undefined;
|
|
654
543
|
missing_device_credentials?: {
|
|
655
544
|
message: string;
|
|
656
545
|
created_at: string;
|
|
@@ -669,12 +558,6 @@ export declare const device_error_map: z.ZodObject<{
|
|
|
669
558
|
error_code: "subscription_required";
|
|
670
559
|
is_device_error: true;
|
|
671
560
|
} | null | undefined;
|
|
672
|
-
lockly_missing_wifi_bridge?: {
|
|
673
|
-
message: string;
|
|
674
|
-
created_at: string;
|
|
675
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
676
|
-
is_device_error: true;
|
|
677
|
-
} | null | undefined;
|
|
678
561
|
}, {
|
|
679
562
|
account_disconnected?: {
|
|
680
563
|
message: string;
|
|
@@ -733,18 +616,6 @@ export declare const device_error_map: z.ZodObject<{
|
|
|
733
616
|
error_code: "august_lock_not_authorized";
|
|
734
617
|
is_device_error: true;
|
|
735
618
|
} | null | undefined;
|
|
736
|
-
august_lock_missing_bridge?: {
|
|
737
|
-
message: string;
|
|
738
|
-
created_at: string;
|
|
739
|
-
error_code: "august_lock_missing_bridge";
|
|
740
|
-
is_device_error: true;
|
|
741
|
-
} | null | undefined;
|
|
742
|
-
ttlock_lock_not_paired_to_gateway?: {
|
|
743
|
-
message: string;
|
|
744
|
-
created_at: string;
|
|
745
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
746
|
-
is_device_error: true;
|
|
747
|
-
} | null | undefined;
|
|
748
619
|
missing_device_credentials?: {
|
|
749
620
|
message: string;
|
|
750
621
|
created_at: string;
|
|
@@ -763,12 +634,6 @@ export declare const device_error_map: z.ZodObject<{
|
|
|
763
634
|
error_code: "subscription_required";
|
|
764
635
|
is_device_error: true;
|
|
765
636
|
} | null | undefined;
|
|
766
|
-
lockly_missing_wifi_bridge?: {
|
|
767
|
-
message: string;
|
|
768
|
-
created_at: string;
|
|
769
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
770
|
-
is_device_error: true;
|
|
771
|
-
} | null | undefined;
|
|
772
637
|
}>;
|
|
773
638
|
export type DeviceErrorMap = z.infer<typeof device_error_map>;
|
|
774
639
|
export declare const unknown_issue_with_phone: z.ZodObject<{
|
|
@@ -814,19 +679,6 @@ declare const device_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObje
|
|
|
814
679
|
}>, z.ZodObject<{
|
|
815
680
|
message: z.ZodString;
|
|
816
681
|
created_at: z.ZodString;
|
|
817
|
-
} & {
|
|
818
|
-
warning_code: z.ZodLiteral<"wyze_device_missing_gateway">;
|
|
819
|
-
}, "strip", z.ZodTypeAny, {
|
|
820
|
-
message: string;
|
|
821
|
-
created_at: string;
|
|
822
|
-
warning_code: "wyze_device_missing_gateway";
|
|
823
|
-
}, {
|
|
824
|
-
message: string;
|
|
825
|
-
created_at: string;
|
|
826
|
-
warning_code: "wyze_device_missing_gateway";
|
|
827
|
-
}>, z.ZodObject<{
|
|
828
|
-
message: z.ZodString;
|
|
829
|
-
created_at: z.ZodString;
|
|
830
682
|
} & {
|
|
831
683
|
warning_code: z.ZodLiteral<"third_party_integration_detected">;
|
|
832
684
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1220,20 +1072,6 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1220
1072
|
_event_id?: string | undefined;
|
|
1221
1073
|
_reason?: string | undefined;
|
|
1222
1074
|
}>>>;
|
|
1223
|
-
wyze_device_missing_gateway: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1224
|
-
message: z.ZodString;
|
|
1225
|
-
created_at: z.ZodString;
|
|
1226
|
-
} & {
|
|
1227
|
-
warning_code: z.ZodLiteral<"wyze_device_missing_gateway">;
|
|
1228
|
-
}, "strip", z.ZodTypeAny, {
|
|
1229
|
-
message: string;
|
|
1230
|
-
created_at: string;
|
|
1231
|
-
warning_code: "wyze_device_missing_gateway";
|
|
1232
|
-
}, {
|
|
1233
|
-
message: string;
|
|
1234
|
-
created_at: string;
|
|
1235
|
-
warning_code: "wyze_device_missing_gateway";
|
|
1236
|
-
}>>>;
|
|
1237
1075
|
third_party_integration_detected: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1238
1076
|
message: z.ZodString;
|
|
1239
1077
|
created_at: z.ZodString;
|
|
@@ -1631,11 +1469,6 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1631
1469
|
created_at: string;
|
|
1632
1470
|
warning_code: "salto_ks_lock_access_code_support_removed";
|
|
1633
1471
|
} | null | undefined;
|
|
1634
|
-
wyze_device_missing_gateway?: {
|
|
1635
|
-
message: string;
|
|
1636
|
-
created_at: string;
|
|
1637
|
-
warning_code: "wyze_device_missing_gateway";
|
|
1638
|
-
} | null | undefined;
|
|
1639
1472
|
third_party_integration_detected?: {
|
|
1640
1473
|
message: string;
|
|
1641
1474
|
created_at: string;
|
|
@@ -1781,11 +1614,6 @@ export declare const device_warning_map: z.ZodObject<{
|
|
|
1781
1614
|
created_at: string;
|
|
1782
1615
|
warning_code: "salto_ks_lock_access_code_support_removed";
|
|
1783
1616
|
} | null | undefined;
|
|
1784
|
-
wyze_device_missing_gateway?: {
|
|
1785
|
-
message: string;
|
|
1786
|
-
created_at: string;
|
|
1787
|
-
warning_code: "wyze_device_missing_gateway";
|
|
1788
|
-
} | null | undefined;
|
|
1789
1617
|
third_party_integration_detected?: {
|
|
1790
1618
|
message: string;
|
|
1791
1619
|
created_at: string;
|
|
@@ -2314,22 +2142,6 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<{
|
|
|
2314
2142
|
created_at: string;
|
|
2315
2143
|
error_code: "august_lock_not_authorized";
|
|
2316
2144
|
is_device_error: true;
|
|
2317
|
-
}> | z.ZodObject<{
|
|
2318
|
-
message: z.ZodString;
|
|
2319
|
-
is_device_error: z.ZodLiteral<true>;
|
|
2320
|
-
created_at: z.ZodString;
|
|
2321
|
-
} & {
|
|
2322
|
-
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
2323
|
-
}, "strip", z.ZodTypeAny, {
|
|
2324
|
-
message: string;
|
|
2325
|
-
created_at: string;
|
|
2326
|
-
error_code: "august_lock_missing_bridge";
|
|
2327
|
-
is_device_error: true;
|
|
2328
|
-
}, {
|
|
2329
|
-
message: string;
|
|
2330
|
-
created_at: string;
|
|
2331
|
-
error_code: "august_lock_missing_bridge";
|
|
2332
|
-
is_device_error: true;
|
|
2333
2145
|
}> | z.ZodObject<{
|
|
2334
2146
|
message: z.ZodString;
|
|
2335
2147
|
created_at: z.ZodString;
|
|
@@ -2372,22 +2184,6 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<{
|
|
|
2372
2184
|
message: z.ZodString;
|
|
2373
2185
|
is_device_error: z.ZodLiteral<true>;
|
|
2374
2186
|
created_at: z.ZodString;
|
|
2375
|
-
} & {
|
|
2376
|
-
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
2377
|
-
}, "strip", z.ZodTypeAny, {
|
|
2378
|
-
message: string;
|
|
2379
|
-
created_at: string;
|
|
2380
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
2381
|
-
is_device_error: true;
|
|
2382
|
-
}, {
|
|
2383
|
-
message: string;
|
|
2384
|
-
created_at: string;
|
|
2385
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
2386
|
-
is_device_error: true;
|
|
2387
|
-
}> | z.ZodObject<{
|
|
2388
|
-
message: z.ZodString;
|
|
2389
|
-
is_device_error: z.ZodLiteral<true>;
|
|
2390
|
-
created_at: z.ZodString;
|
|
2391
2187
|
} & {
|
|
2392
2188
|
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
2393
2189
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2432,22 +2228,6 @@ export declare const device_and_connected_account_error_options: (z.ZodObject<{
|
|
|
2432
2228
|
created_at: string;
|
|
2433
2229
|
error_code: "subscription_required";
|
|
2434
2230
|
is_device_error: true;
|
|
2435
|
-
}> | z.ZodObject<{
|
|
2436
|
-
message: z.ZodString;
|
|
2437
|
-
is_device_error: z.ZodLiteral<true>;
|
|
2438
|
-
created_at: z.ZodString;
|
|
2439
|
-
} & {
|
|
2440
|
-
error_code: z.ZodLiteral<"lockly_missing_wifi_bridge">;
|
|
2441
|
-
}, "strip", z.ZodTypeAny, {
|
|
2442
|
-
message: string;
|
|
2443
|
-
created_at: string;
|
|
2444
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
2445
|
-
is_device_error: true;
|
|
2446
|
-
}, {
|
|
2447
|
-
message: string;
|
|
2448
|
-
created_at: string;
|
|
2449
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
2450
|
-
is_device_error: true;
|
|
2451
2231
|
}>)[];
|
|
2452
2232
|
export declare const device: z.ZodObject<{
|
|
2453
2233
|
device_id: z.ZodString;
|
|
@@ -5215,38 +4995,6 @@ export declare const device: z.ZodObject<{
|
|
|
5215
4995
|
message: z.ZodString;
|
|
5216
4996
|
is_device_error: z.ZodLiteral<true>;
|
|
5217
4997
|
created_at: z.ZodString;
|
|
5218
|
-
} & {
|
|
5219
|
-
error_code: z.ZodLiteral<"august_lock_missing_bridge">;
|
|
5220
|
-
}, "strip", z.ZodTypeAny, {
|
|
5221
|
-
message: string;
|
|
5222
|
-
created_at: string;
|
|
5223
|
-
error_code: "august_lock_missing_bridge";
|
|
5224
|
-
is_device_error: true;
|
|
5225
|
-
}, {
|
|
5226
|
-
message: string;
|
|
5227
|
-
created_at: string;
|
|
5228
|
-
error_code: "august_lock_missing_bridge";
|
|
5229
|
-
is_device_error: true;
|
|
5230
|
-
}>, z.ZodObject<{
|
|
5231
|
-
message: z.ZodString;
|
|
5232
|
-
is_device_error: z.ZodLiteral<true>;
|
|
5233
|
-
created_at: z.ZodString;
|
|
5234
|
-
} & {
|
|
5235
|
-
error_code: z.ZodLiteral<"ttlock_lock_not_paired_to_gateway">;
|
|
5236
|
-
}, "strip", z.ZodTypeAny, {
|
|
5237
|
-
message: string;
|
|
5238
|
-
created_at: string;
|
|
5239
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
5240
|
-
is_device_error: true;
|
|
5241
|
-
}, {
|
|
5242
|
-
message: string;
|
|
5243
|
-
created_at: string;
|
|
5244
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
5245
|
-
is_device_error: true;
|
|
5246
|
-
}>, z.ZodObject<{
|
|
5247
|
-
message: z.ZodString;
|
|
5248
|
-
is_device_error: z.ZodLiteral<true>;
|
|
5249
|
-
created_at: z.ZodString;
|
|
5250
4998
|
} & {
|
|
5251
4999
|
error_code: z.ZodLiteral<"missing_device_credentials">;
|
|
5252
5000
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5291,22 +5039,6 @@ export declare const device: z.ZodObject<{
|
|
|
5291
5039
|
created_at: string;
|
|
5292
5040
|
error_code: "subscription_required";
|
|
5293
5041
|
is_device_error: true;
|
|
5294
|
-
}>, z.ZodObject<{
|
|
5295
|
-
message: z.ZodString;
|
|
5296
|
-
is_device_error: z.ZodLiteral<true>;
|
|
5297
|
-
created_at: z.ZodString;
|
|
5298
|
-
} & {
|
|
5299
|
-
error_code: z.ZodLiteral<"lockly_missing_wifi_bridge">;
|
|
5300
|
-
}, "strip", z.ZodTypeAny, {
|
|
5301
|
-
message: string;
|
|
5302
|
-
created_at: string;
|
|
5303
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
5304
|
-
is_device_error: true;
|
|
5305
|
-
}, {
|
|
5306
|
-
message: string;
|
|
5307
|
-
created_at: string;
|
|
5308
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
5309
|
-
is_device_error: true;
|
|
5310
5042
|
}>, ...(z.ZodObject<{
|
|
5311
5043
|
created_at: z.ZodString;
|
|
5312
5044
|
message: z.ZodString;
|
|
@@ -5461,19 +5193,6 @@ export declare const device: z.ZodObject<{
|
|
|
5461
5193
|
}>, z.ZodObject<{
|
|
5462
5194
|
message: z.ZodString;
|
|
5463
5195
|
created_at: z.ZodString;
|
|
5464
|
-
} & {
|
|
5465
|
-
warning_code: z.ZodLiteral<"wyze_device_missing_gateway">;
|
|
5466
|
-
}, "strip", z.ZodTypeAny, {
|
|
5467
|
-
message: string;
|
|
5468
|
-
created_at: string;
|
|
5469
|
-
warning_code: "wyze_device_missing_gateway";
|
|
5470
|
-
}, {
|
|
5471
|
-
message: string;
|
|
5472
|
-
created_at: string;
|
|
5473
|
-
warning_code: "wyze_device_missing_gateway";
|
|
5474
|
-
}>, z.ZodObject<{
|
|
5475
|
-
message: z.ZodString;
|
|
5476
|
-
created_at: z.ZodString;
|
|
5477
5196
|
} & {
|
|
5478
5197
|
warning_code: z.ZodLiteral<"third_party_integration_detected">;
|
|
5479
5198
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5942,11 +5661,6 @@ export declare const device: z.ZodObject<{
|
|
|
5942
5661
|
created_at: string;
|
|
5943
5662
|
error_code: "august_lock_not_authorized";
|
|
5944
5663
|
is_device_error: true;
|
|
5945
|
-
} | {
|
|
5946
|
-
message: string;
|
|
5947
|
-
created_at: string;
|
|
5948
|
-
error_code: "august_lock_missing_bridge";
|
|
5949
|
-
is_device_error: true;
|
|
5950
5664
|
} | {
|
|
5951
5665
|
message: string;
|
|
5952
5666
|
created_at: string;
|
|
@@ -5959,11 +5673,6 @@ export declare const device: z.ZodObject<{
|
|
|
5959
5673
|
error_code: "dormakaba_sites_disconnected";
|
|
5960
5674
|
is_connected_account_error: true;
|
|
5961
5675
|
is_device_error: false;
|
|
5962
|
-
} | {
|
|
5963
|
-
message: string;
|
|
5964
|
-
created_at: string;
|
|
5965
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
5966
|
-
is_device_error: true;
|
|
5967
5676
|
} | {
|
|
5968
5677
|
message: string;
|
|
5969
5678
|
created_at: string;
|
|
@@ -5979,11 +5688,6 @@ export declare const device: z.ZodObject<{
|
|
|
5979
5688
|
created_at: string;
|
|
5980
5689
|
error_code: "subscription_required";
|
|
5981
5690
|
is_device_error: true;
|
|
5982
|
-
} | {
|
|
5983
|
-
message: string;
|
|
5984
|
-
created_at: string;
|
|
5985
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
5986
|
-
is_device_error: true;
|
|
5987
5691
|
})[];
|
|
5988
5692
|
connected_account_id: string;
|
|
5989
5693
|
warnings: ({
|
|
@@ -6014,10 +5718,6 @@ export declare const device: z.ZodObject<{
|
|
|
6014
5718
|
message: string;
|
|
6015
5719
|
created_at: string;
|
|
6016
5720
|
warning_code: "salto_ks_lock_access_code_support_removed";
|
|
6017
|
-
} | {
|
|
6018
|
-
message: string;
|
|
6019
|
-
created_at: string;
|
|
6020
|
-
warning_code: "wyze_device_missing_gateway";
|
|
6021
5721
|
} | {
|
|
6022
5722
|
message: string;
|
|
6023
5723
|
created_at: string;
|
|
@@ -6746,11 +6446,6 @@ export declare const device: z.ZodObject<{
|
|
|
6746
6446
|
created_at: string;
|
|
6747
6447
|
error_code: "august_lock_not_authorized";
|
|
6748
6448
|
is_device_error: true;
|
|
6749
|
-
} | {
|
|
6750
|
-
message: string;
|
|
6751
|
-
created_at: string;
|
|
6752
|
-
error_code: "august_lock_missing_bridge";
|
|
6753
|
-
is_device_error: true;
|
|
6754
6449
|
} | {
|
|
6755
6450
|
message: string;
|
|
6756
6451
|
created_at: string;
|
|
@@ -6763,11 +6458,6 @@ export declare const device: z.ZodObject<{
|
|
|
6763
6458
|
error_code: "dormakaba_sites_disconnected";
|
|
6764
6459
|
is_connected_account_error: true;
|
|
6765
6460
|
is_device_error: false;
|
|
6766
|
-
} | {
|
|
6767
|
-
message: string;
|
|
6768
|
-
created_at: string;
|
|
6769
|
-
error_code: "ttlock_lock_not_paired_to_gateway";
|
|
6770
|
-
is_device_error: true;
|
|
6771
6461
|
} | {
|
|
6772
6462
|
message: string;
|
|
6773
6463
|
created_at: string;
|
|
@@ -6783,11 +6473,6 @@ export declare const device: z.ZodObject<{
|
|
|
6783
6473
|
created_at: string;
|
|
6784
6474
|
error_code: "subscription_required";
|
|
6785
6475
|
is_device_error: true;
|
|
6786
|
-
} | {
|
|
6787
|
-
message: string;
|
|
6788
|
-
created_at: string;
|
|
6789
|
-
error_code: "lockly_missing_wifi_bridge";
|
|
6790
|
-
is_device_error: true;
|
|
6791
6476
|
})[];
|
|
6792
6477
|
connected_account_id: string;
|
|
6793
6478
|
warnings: ({
|
|
@@ -6818,10 +6503,6 @@ export declare const device: z.ZodObject<{
|
|
|
6818
6503
|
message: string;
|
|
6819
6504
|
created_at: string;
|
|
6820
6505
|
warning_code: "salto_ks_lock_access_code_support_removed";
|
|
6821
|
-
} | {
|
|
6822
|
-
message: string;
|
|
6823
|
-
created_at: string;
|
|
6824
|
-
warning_code: "wyze_device_missing_gateway";
|
|
6825
6506
|
} | {
|
|
6826
6507
|
message: string;
|
|
6827
6508
|
created_at: string;
|
|
@@ -159,18 +159,6 @@ const august_lock_not_authorized = common_device_error.extend({
|
|
|
159
159
|
---
|
|
160
160
|
Indicates that the user is not authorized to use the August lock.
|
|
161
161
|
`);
|
|
162
|
-
const august_lock_missing_bridge = common_device_error.extend({
|
|
163
|
-
error_code: z
|
|
164
|
-
.literal('august_lock_missing_bridge')
|
|
165
|
-
.describe(error_code_description),
|
|
166
|
-
}).describe(`
|
|
167
|
-
---
|
|
168
|
-
resource_type: device
|
|
169
|
-
deprecated: Use \`hub_disconnected\` instead.
|
|
170
|
-
variant_group_key: locks
|
|
171
|
-
---
|
|
172
|
-
Indicates that the lock is not connected to a bridge.
|
|
173
|
-
`);
|
|
174
162
|
const salto_ks_subscription_limit_exceeded = common_device_error.extend({
|
|
175
163
|
error_code: z
|
|
176
164
|
.literal('salto_ks_subscription_limit_exceeded')
|
|
@@ -205,18 +193,6 @@ const dormakaba_sites_disconnected = common_device_error.extend({
|
|
|
205
193
|
---
|
|
206
194
|
Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
|
|
207
195
|
`);
|
|
208
|
-
const ttlock_lock_not_paired_to_gateway = common_device_error.extend({
|
|
209
|
-
error_code: z
|
|
210
|
-
.literal('ttlock_lock_not_paired_to_gateway')
|
|
211
|
-
.describe(error_code_description),
|
|
212
|
-
}).describe(`
|
|
213
|
-
---
|
|
214
|
-
resource_type: device
|
|
215
|
-
deprecated: Use \`hub_disconnected\` instead.
|
|
216
|
-
variant_group_key: locks
|
|
217
|
-
---
|
|
218
|
-
Indicates that the lock is not paired with a gateway.
|
|
219
|
-
`);
|
|
220
196
|
const missing_device_credentials = common_device_error.extend({
|
|
221
197
|
error_code: z
|
|
222
198
|
.literal('missing_device_credentials')
|
|
@@ -248,18 +224,6 @@ const subscription_required = common_device_error.extend({
|
|
|
248
224
|
---
|
|
249
225
|
Indicates that a subscription is required to connect.
|
|
250
226
|
`);
|
|
251
|
-
const lockly_missing_wifi_bridge = common_device_error.extend({
|
|
252
|
-
error_code: z
|
|
253
|
-
.literal('lockly_missing_wifi_bridge')
|
|
254
|
-
.describe(error_code_description),
|
|
255
|
-
}).describe(`
|
|
256
|
-
---
|
|
257
|
-
resource_type: device
|
|
258
|
-
deprecated: Use \`hub_disconnected\` instead.
|
|
259
|
-
variant_group_key: locks
|
|
260
|
-
---
|
|
261
|
-
Indicates that the Lockly lock is not connected to a Wi-Fi bridge.
|
|
262
|
-
`);
|
|
263
227
|
export const device_error = z
|
|
264
228
|
.discriminatedUnion('error_code', [
|
|
265
229
|
account_disconnected,
|
|
@@ -271,12 +235,9 @@ export const device_error = z
|
|
|
271
235
|
device_disconnected,
|
|
272
236
|
empty_backup_access_code_pool,
|
|
273
237
|
august_lock_not_authorized,
|
|
274
|
-
august_lock_missing_bridge,
|
|
275
|
-
ttlock_lock_not_paired_to_gateway,
|
|
276
238
|
missing_device_credentials,
|
|
277
239
|
auxiliary_heat_running,
|
|
278
240
|
subscription_required,
|
|
279
|
-
lockly_missing_wifi_bridge,
|
|
280
241
|
])
|
|
281
242
|
.describe('Error associated with the device.');
|
|
282
243
|
export const device_error_map = z.object({
|
|
@@ -289,20 +250,15 @@ export const device_error_map = z.object({
|
|
|
289
250
|
.optional()
|
|
290
251
|
.nullable(),
|
|
291
252
|
august_lock_not_authorized: august_lock_not_authorized.optional().nullable(),
|
|
292
|
-
august_lock_missing_bridge: august_lock_missing_bridge.optional().nullable(),
|
|
293
253
|
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
|
|
294
254
|
.optional()
|
|
295
255
|
.nullable(),
|
|
296
256
|
dormakaba_sites_disconnected: dormakaba_sites_disconnected
|
|
297
257
|
.optional()
|
|
298
258
|
.nullable(),
|
|
299
|
-
ttlock_lock_not_paired_to_gateway: ttlock_lock_not_paired_to_gateway
|
|
300
|
-
.optional()
|
|
301
|
-
.nullable(),
|
|
302
259
|
missing_device_credentials: missing_device_credentials.optional().nullable(),
|
|
303
260
|
auxiliary_heat_running: auxiliary_heat_running.optional().nullable(),
|
|
304
261
|
subscription_required: subscription_required.optional().nullable(),
|
|
305
|
-
lockly_missing_wifi_bridge: lockly_missing_wifi_bridge.optional().nullable(),
|
|
306
262
|
});
|
|
307
263
|
const warning_code_description = 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.';
|
|
308
264
|
const common_device_warning = z.object({
|
|
@@ -383,17 +339,6 @@ const salto_ks_lock_access_code_support_removed = common_device_warning.extend({
|
|
|
383
339
|
---
|
|
384
340
|
Indicates that a change in the reported device model has been detected for this Salto KS lock, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps.
|
|
385
341
|
`);
|
|
386
|
-
const wyze_device_missing_gateway = common_device_warning.extend({
|
|
387
|
-
warning_code: z
|
|
388
|
-
.literal('wyze_device_missing_gateway')
|
|
389
|
-
.describe(warning_code_description),
|
|
390
|
-
}).describe(`
|
|
391
|
-
---
|
|
392
|
-
deprecated: Use \`hub_disconnected\` device error instead.
|
|
393
|
-
variant_group_key: locks
|
|
394
|
-
---
|
|
395
|
-
Indicates that the Wyze Lock is not connected to a gateway.
|
|
396
|
-
`);
|
|
397
342
|
const third_party_integration_detected = common_device_warning
|
|
398
343
|
.extend({
|
|
399
344
|
warning_code: z
|
|
@@ -601,7 +546,6 @@ const insufficient_permissions = common_device_warning.extend({
|
|
|
601
546
|
const device_warning = z.discriminatedUnion('warning_code', [
|
|
602
547
|
partial_backup_access_code_pool,
|
|
603
548
|
many_active_backup_codes,
|
|
604
|
-
wyze_device_missing_gateway,
|
|
605
549
|
third_party_integration_detected,
|
|
606
550
|
ttlock_lock_gateway_unlocking_not_enabled,
|
|
607
551
|
ttlock_weak_gateway_signal,
|
|
@@ -641,9 +585,6 @@ export const device_warning_map = z.object({
|
|
|
641
585
|
})
|
|
642
586
|
.optional()
|
|
643
587
|
.nullable(),
|
|
644
|
-
wyze_device_missing_gateway: wyze_device_missing_gateway
|
|
645
|
-
.optional()
|
|
646
|
-
.nullable(),
|
|
647
588
|
third_party_integration_detected: third_party_integration_detected
|
|
648
589
|
.optional()
|
|
649
590
|
.nullable(),
|