@seamapi/types 1.870.0 → 1.872.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.
@@ -3,6 +3,22 @@ declare const access_code_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObj
3
3
  message: z.ZodString;
4
4
  is_access_code_error: z.ZodLiteral<true>;
5
5
  created_at: z.ZodOptional<z.ZodString>;
6
+ } & {
7
+ error_code: z.ZodLiteral<"provider_issue">;
8
+ }, "strip", z.ZodTypeAny, {
9
+ message: string;
10
+ error_code: "provider_issue";
11
+ is_access_code_error: true;
12
+ created_at?: string | undefined;
13
+ }, {
14
+ message: string;
15
+ error_code: "provider_issue";
16
+ is_access_code_error: true;
17
+ created_at?: string | undefined;
18
+ }>, z.ZodObject<{
19
+ message: z.ZodString;
20
+ is_access_code_error: z.ZodLiteral<true>;
21
+ created_at: z.ZodOptional<z.ZodString>;
6
22
  } & {
7
23
  error_code: z.ZodLiteral<"smartthings_failed_to_set_access_code">;
8
24
  }, "strip", z.ZodTypeAny, {
@@ -171,16 +187,42 @@ declare const access_code_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObj
171
187
  created_at: z.ZodOptional<z.ZodString>;
172
188
  } & {
173
189
  error_code: z.ZodLiteral<"code_modified_external_to_seam">;
190
+ change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
191
+ modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
192
+ field: z.ZodString;
193
+ from: z.ZodNullable<z.ZodString>;
194
+ to: z.ZodNullable<z.ZodString>;
195
+ }, "strip", z.ZodTypeAny, {
196
+ from: string | null;
197
+ to: string | null;
198
+ field: string;
199
+ }, {
200
+ from: string | null;
201
+ to: string | null;
202
+ field: string;
203
+ }>, "many">>;
174
204
  }, "strip", z.ZodTypeAny, {
175
205
  message: string;
176
206
  error_code: "code_modified_external_to_seam";
177
207
  is_access_code_error: true;
178
208
  created_at?: string | undefined;
209
+ change_type?: "modified" | "removed" | undefined;
210
+ modified_fields?: {
211
+ from: string | null;
212
+ to: string | null;
213
+ field: string;
214
+ }[] | undefined;
179
215
  }, {
180
216
  message: string;
181
217
  error_code: "code_modified_external_to_seam";
182
218
  is_access_code_error: true;
183
219
  created_at?: string | undefined;
220
+ change_type?: "modified" | "removed" | undefined;
221
+ modified_fields?: {
222
+ from: string | null;
223
+ to: string | null;
224
+ field: string;
225
+ }[] | undefined;
184
226
  }>, z.ZodObject<{
185
227
  message: z.ZodString;
186
228
  is_access_code_error: z.ZodLiteral<true>;
@@ -233,6 +275,22 @@ declare const access_code_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObj
233
275
  message: z.ZodString;
234
276
  is_access_code_error: z.ZodLiteral<true>;
235
277
  created_at: z.ZodOptional<z.ZodString>;
278
+ } & {
279
+ error_code: z.ZodLiteral<"access_code_inactive">;
280
+ }, "strip", z.ZodTypeAny, {
281
+ message: string;
282
+ error_code: "access_code_inactive";
283
+ is_access_code_error: true;
284
+ created_at?: string | undefined;
285
+ }, {
286
+ message: string;
287
+ error_code: "access_code_inactive";
288
+ is_access_code_error: true;
289
+ created_at?: string | undefined;
290
+ }>, z.ZodObject<{
291
+ message: z.ZodString;
292
+ is_access_code_error: z.ZodLiteral<true>;
293
+ created_at: z.ZodOptional<z.ZodString>;
236
294
  } & {
237
295
  error_code: z.ZodLiteral<"salto_ks_user_not_subscribed">;
238
296
  }, "strip", z.ZodTypeAny, {
@@ -344,6 +402,23 @@ declare const access_code_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObj
344
402
  }>]>;
345
403
  export type AccessCodeError = z.infer<typeof access_code_error>;
346
404
  declare const _access_code_error_map: z.ZodObject<{
405
+ provider_issue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
406
+ message: z.ZodString;
407
+ is_access_code_error: z.ZodLiteral<true>;
408
+ created_at: z.ZodOptional<z.ZodString>;
409
+ } & {
410
+ error_code: z.ZodLiteral<"provider_issue">;
411
+ }, "strip", z.ZodTypeAny, {
412
+ message: string;
413
+ error_code: "provider_issue";
414
+ is_access_code_error: true;
415
+ created_at?: string | undefined;
416
+ }, {
417
+ message: string;
418
+ error_code: "provider_issue";
419
+ is_access_code_error: true;
420
+ created_at?: string | undefined;
421
+ }>>>;
347
422
  smartthings_failed_to_set_access_code: z.ZodNullable<z.ZodOptional<z.ZodObject<{
348
423
  message: z.ZodString;
349
424
  is_access_code_error: z.ZodLiteral<true>;
@@ -543,16 +618,42 @@ declare const _access_code_error_map: z.ZodObject<{
543
618
  created_at: z.ZodOptional<z.ZodString>;
544
619
  } & {
545
620
  error_code: z.ZodLiteral<"code_modified_external_to_seam">;
621
+ change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
622
+ modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
623
+ field: z.ZodString;
624
+ from: z.ZodNullable<z.ZodString>;
625
+ to: z.ZodNullable<z.ZodString>;
626
+ }, "strip", z.ZodTypeAny, {
627
+ from: string | null;
628
+ to: string | null;
629
+ field: string;
630
+ }, {
631
+ from: string | null;
632
+ to: string | null;
633
+ field: string;
634
+ }>, "many">>;
546
635
  }, "strip", z.ZodTypeAny, {
547
636
  message: string;
548
637
  error_code: "code_modified_external_to_seam";
549
638
  is_access_code_error: true;
550
639
  created_at?: string | undefined;
640
+ change_type?: "modified" | "removed" | undefined;
641
+ modified_fields?: {
642
+ from: string | null;
643
+ to: string | null;
644
+ field: string;
645
+ }[] | undefined;
551
646
  }, {
552
647
  message: string;
553
648
  error_code: "code_modified_external_to_seam";
554
649
  is_access_code_error: true;
555
650
  created_at?: string | undefined;
651
+ change_type?: "modified" | "removed" | undefined;
652
+ modified_fields?: {
653
+ from: string | null;
654
+ to: string | null;
655
+ field: string;
656
+ }[] | undefined;
556
657
  }>>>;
557
658
  august_lock_invalid_code_length: z.ZodNullable<z.ZodOptional<z.ZodObject<{
558
659
  message: z.ZodString;
@@ -605,6 +706,23 @@ declare const _access_code_error_map: z.ZodObject<{
605
706
  is_access_code_error: true;
606
707
  created_at?: string | undefined;
607
708
  }>>>;
709
+ access_code_inactive: z.ZodNullable<z.ZodOptional<z.ZodObject<{
710
+ message: z.ZodString;
711
+ is_access_code_error: z.ZodLiteral<true>;
712
+ created_at: z.ZodOptional<z.ZodString>;
713
+ } & {
714
+ error_code: z.ZodLiteral<"access_code_inactive">;
715
+ }, "strip", z.ZodTypeAny, {
716
+ message: string;
717
+ error_code: "access_code_inactive";
718
+ is_access_code_error: true;
719
+ created_at?: string | undefined;
720
+ }, {
721
+ message: string;
722
+ error_code: "access_code_inactive";
723
+ is_access_code_error: true;
724
+ created_at?: string | undefined;
725
+ }>>>;
608
726
  salto_ks_user_not_subscribed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
609
727
  message: z.ZodString;
610
728
  is_access_code_error: z.ZodLiteral<true>;
@@ -708,6 +826,12 @@ declare const _access_code_error_map: z.ZodObject<{
708
826
  created_at?: string | undefined;
709
827
  }>>>;
710
828
  }, "strip", z.ZodTypeAny, {
829
+ provider_issue?: {
830
+ message: string;
831
+ error_code: "provider_issue";
832
+ is_access_code_error: true;
833
+ created_at?: string | undefined;
834
+ } | null | undefined;
711
835
  smartthings_failed_to_set_access_code?: {
712
836
  message: string;
713
837
  error_code: "smartthings_failed_to_set_access_code";
@@ -794,6 +918,12 @@ declare const _access_code_error_map: z.ZodObject<{
794
918
  is_access_code_error: true;
795
919
  created_at?: string | undefined;
796
920
  } | null | undefined;
921
+ access_code_inactive?: {
922
+ message: string;
923
+ error_code: "access_code_inactive";
924
+ is_access_code_error: true;
925
+ created_at?: string | undefined;
926
+ } | null | undefined;
797
927
  salto_ks_user_not_subscribed?: {
798
928
  message: string;
799
929
  error_code: "salto_ks_user_not_subscribed";
@@ -835,8 +965,20 @@ declare const _access_code_error_map: z.ZodObject<{
835
965
  error_code: "code_modified_external_to_seam";
836
966
  is_access_code_error: true;
837
967
  created_at?: string | undefined;
968
+ change_type?: "modified" | "removed" | undefined;
969
+ modified_fields?: {
970
+ from: string | null;
971
+ to: string | null;
972
+ field: string;
973
+ }[] | undefined;
838
974
  } | null | undefined;
839
975
  }, {
976
+ provider_issue?: {
977
+ message: string;
978
+ error_code: "provider_issue";
979
+ is_access_code_error: true;
980
+ created_at?: string | undefined;
981
+ } | null | undefined;
840
982
  smartthings_failed_to_set_access_code?: {
841
983
  message: string;
842
984
  error_code: "smartthings_failed_to_set_access_code";
@@ -923,6 +1065,12 @@ declare const _access_code_error_map: z.ZodObject<{
923
1065
  is_access_code_error: true;
924
1066
  created_at?: string | undefined;
925
1067
  } | null | undefined;
1068
+ access_code_inactive?: {
1069
+ message: string;
1070
+ error_code: "access_code_inactive";
1071
+ is_access_code_error: true;
1072
+ created_at?: string | undefined;
1073
+ } | null | undefined;
926
1074
  salto_ks_user_not_subscribed?: {
927
1075
  message: string;
928
1076
  error_code: "salto_ks_user_not_subscribed";
@@ -964,12 +1112,31 @@ declare const _access_code_error_map: z.ZodObject<{
964
1112
  error_code: "code_modified_external_to_seam";
965
1113
  is_access_code_error: true;
966
1114
  created_at?: string | undefined;
1115
+ change_type?: "modified" | "removed" | undefined;
1116
+ modified_fields?: {
1117
+ from: string | null;
1118
+ to: string | null;
1119
+ field: string;
1120
+ }[] | undefined;
967
1121
  } | null | undefined;
968
1122
  }>;
969
1123
  export type AccessCodeErrorMap = z.infer<typeof _access_code_error_map>;
970
1124
  declare const access_code_warning: z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
971
1125
  message: z.ZodString;
972
1126
  created_at: z.ZodOptional<z.ZodString>;
1127
+ } & {
1128
+ warning_code: z.ZodLiteral<"provider_issue">;
1129
+ }, "strip", z.ZodTypeAny, {
1130
+ message: string;
1131
+ warning_code: "provider_issue";
1132
+ created_at?: string | undefined;
1133
+ }, {
1134
+ message: string;
1135
+ warning_code: "provider_issue";
1136
+ created_at?: string | undefined;
1137
+ }>, z.ZodObject<{
1138
+ message: z.ZodString;
1139
+ created_at: z.ZodOptional<z.ZodString>;
973
1140
  } & {
974
1141
  warning_code: z.ZodLiteral<"smartthings_failed_to_set_access_code">;
975
1142
  }, "strip", z.ZodTypeAny, {
@@ -1024,14 +1191,40 @@ declare const access_code_warning: z.ZodDiscriminatedUnion<"warning_code", [z.Zo
1024
1191
  created_at: z.ZodOptional<z.ZodString>;
1025
1192
  } & {
1026
1193
  warning_code: z.ZodLiteral<"code_modified_external_to_seam">;
1194
+ change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
1195
+ modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1196
+ field: z.ZodString;
1197
+ from: z.ZodNullable<z.ZodString>;
1198
+ to: z.ZodNullable<z.ZodString>;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ from: string | null;
1201
+ to: string | null;
1202
+ field: string;
1203
+ }, {
1204
+ from: string | null;
1205
+ to: string | null;
1206
+ field: string;
1207
+ }>, "many">>;
1027
1208
  }, "strip", z.ZodTypeAny, {
1028
1209
  message: string;
1029
1210
  warning_code: "code_modified_external_to_seam";
1030
1211
  created_at?: string | undefined;
1212
+ change_type?: "modified" | "removed" | undefined;
1213
+ modified_fields?: {
1214
+ from: string | null;
1215
+ to: string | null;
1216
+ field: string;
1217
+ }[] | undefined;
1031
1218
  }, {
1032
1219
  message: string;
1033
1220
  warning_code: "code_modified_external_to_seam";
1034
1221
  created_at?: string | undefined;
1222
+ change_type?: "modified" | "removed" | undefined;
1223
+ modified_fields?: {
1224
+ from: string | null;
1225
+ to: string | null;
1226
+ field: string;
1227
+ }[] | undefined;
1035
1228
  }>, z.ZodObject<{
1036
1229
  message: z.ZodString;
1037
1230
  created_at: z.ZodOptional<z.ZodString>;
@@ -1178,6 +1371,20 @@ declare const access_code_warning: z.ZodDiscriminatedUnion<"warning_code", [z.Zo
1178
1371
  }>]>;
1179
1372
  export type AccessCodeWarning = z.infer<typeof access_code_warning>;
1180
1373
  declare const _access_code_warning_map: z.ZodObject<{
1374
+ provider_issue: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1375
+ message: z.ZodString;
1376
+ created_at: z.ZodOptional<z.ZodString>;
1377
+ } & {
1378
+ warning_code: z.ZodLiteral<"provider_issue">;
1379
+ }, "strip", z.ZodTypeAny, {
1380
+ message: string;
1381
+ warning_code: "provider_issue";
1382
+ created_at?: string | undefined;
1383
+ }, {
1384
+ message: string;
1385
+ warning_code: "provider_issue";
1386
+ created_at?: string | undefined;
1387
+ }>>>;
1181
1388
  smartthings_failed_to_set_access_code: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1182
1389
  message: z.ZodString;
1183
1390
  created_at: z.ZodOptional<z.ZodString>;
@@ -1239,14 +1446,40 @@ declare const _access_code_warning_map: z.ZodObject<{
1239
1446
  created_at: z.ZodOptional<z.ZodString>;
1240
1447
  } & {
1241
1448
  warning_code: z.ZodLiteral<"code_modified_external_to_seam">;
1449
+ change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
1450
+ modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1451
+ field: z.ZodString;
1452
+ from: z.ZodNullable<z.ZodString>;
1453
+ to: z.ZodNullable<z.ZodString>;
1454
+ }, "strip", z.ZodTypeAny, {
1455
+ from: string | null;
1456
+ to: string | null;
1457
+ field: string;
1458
+ }, {
1459
+ from: string | null;
1460
+ to: string | null;
1461
+ field: string;
1462
+ }>, "many">>;
1242
1463
  }, "strip", z.ZodTypeAny, {
1243
1464
  message: string;
1244
1465
  warning_code: "code_modified_external_to_seam";
1245
1466
  created_at?: string | undefined;
1467
+ change_type?: "modified" | "removed" | undefined;
1468
+ modified_fields?: {
1469
+ from: string | null;
1470
+ to: string | null;
1471
+ field: string;
1472
+ }[] | undefined;
1246
1473
  }, {
1247
1474
  message: string;
1248
1475
  warning_code: "code_modified_external_to_seam";
1249
1476
  created_at?: string | undefined;
1477
+ change_type?: "modified" | "removed" | undefined;
1478
+ modified_fields?: {
1479
+ from: string | null;
1480
+ to: string | null;
1481
+ field: string;
1482
+ }[] | undefined;
1250
1483
  }>>>;
1251
1484
  delay_in_setting_on_device: z.ZodNullable<z.ZodOptional<z.ZodObject<{
1252
1485
  message: z.ZodString;
@@ -1413,6 +1646,11 @@ declare const _access_code_warning_map: z.ZodObject<{
1413
1646
  warning_code: "third_party_integration_detected";
1414
1647
  created_at?: string | undefined;
1415
1648
  } | null | undefined;
1649
+ provider_issue?: {
1650
+ message: string;
1651
+ warning_code: "provider_issue";
1652
+ created_at?: string | undefined;
1653
+ } | null | undefined;
1416
1654
  smartthings_failed_to_set_access_code?: {
1417
1655
  message: string;
1418
1656
  warning_code: "smartthings_failed_to_set_access_code";
@@ -1423,6 +1661,11 @@ declare const _access_code_warning_map: z.ZodObject<{
1423
1661
  warning_code: "august_lock_temporarily_offline";
1424
1662
  created_at?: string | undefined;
1425
1663
  } | null | undefined;
1664
+ access_code_inactive?: {
1665
+ message: string;
1666
+ warning_code: "access_code_inactive";
1667
+ created_at?: string | undefined;
1668
+ } | null | undefined;
1426
1669
  schlage_detected_duplicate?: {
1427
1670
  message: string;
1428
1671
  warning_code: "schlage_detected_duplicate";
@@ -1458,11 +1701,6 @@ declare const _access_code_warning_map: z.ZodObject<{
1458
1701
  warning_code: "management_transferred";
1459
1702
  created_at?: string | undefined;
1460
1703
  } | null | undefined;
1461
- access_code_inactive?: {
1462
- message: string;
1463
- warning_code: "access_code_inactive";
1464
- created_at?: string | undefined;
1465
- } | null | undefined;
1466
1704
  ultraloq_access_code_disabled?: {
1467
1705
  message: string;
1468
1706
  warning_code: "ultraloq_access_code_disabled";
@@ -1477,6 +1715,12 @@ declare const _access_code_warning_map: z.ZodObject<{
1477
1715
  message: string;
1478
1716
  warning_code: "code_modified_external_to_seam";
1479
1717
  created_at?: string | undefined;
1718
+ change_type?: "modified" | "removed" | undefined;
1719
+ modified_fields?: {
1720
+ from: string | null;
1721
+ to: string | null;
1722
+ field: string;
1723
+ }[] | undefined;
1480
1724
  } | null | undefined;
1481
1725
  kwikset_unable_to_confirm_code_warning?: {
1482
1726
  message: string;
@@ -1494,6 +1738,11 @@ declare const _access_code_warning_map: z.ZodObject<{
1494
1738
  warning_code: "third_party_integration_detected";
1495
1739
  created_at?: string | undefined;
1496
1740
  } | null | undefined;
1741
+ provider_issue?: {
1742
+ message: string;
1743
+ warning_code: "provider_issue";
1744
+ created_at?: string | undefined;
1745
+ } | null | undefined;
1497
1746
  smartthings_failed_to_set_access_code?: {
1498
1747
  message: string;
1499
1748
  warning_code: "smartthings_failed_to_set_access_code";
@@ -1504,6 +1753,11 @@ declare const _access_code_warning_map: z.ZodObject<{
1504
1753
  warning_code: "august_lock_temporarily_offline";
1505
1754
  created_at?: string | undefined;
1506
1755
  } | null | undefined;
1756
+ access_code_inactive?: {
1757
+ message: string;
1758
+ warning_code: "access_code_inactive";
1759
+ created_at?: string | undefined;
1760
+ } | null | undefined;
1507
1761
  schlage_detected_duplicate?: {
1508
1762
  message: string;
1509
1763
  warning_code: "schlage_detected_duplicate";
@@ -1539,11 +1793,6 @@ declare const _access_code_warning_map: z.ZodObject<{
1539
1793
  warning_code: "management_transferred";
1540
1794
  created_at?: string | undefined;
1541
1795
  } | null | undefined;
1542
- access_code_inactive?: {
1543
- message: string;
1544
- warning_code: "access_code_inactive";
1545
- created_at?: string | undefined;
1546
- } | null | undefined;
1547
1796
  ultraloq_access_code_disabled?: {
1548
1797
  message: string;
1549
1798
  warning_code: "ultraloq_access_code_disabled";
@@ -1558,6 +1807,12 @@ declare const _access_code_warning_map: z.ZodObject<{
1558
1807
  message: string;
1559
1808
  warning_code: "code_modified_external_to_seam";
1560
1809
  created_at?: string | undefined;
1810
+ change_type?: "modified" | "removed" | undefined;
1811
+ modified_fields?: {
1812
+ from: string | null;
1813
+ to: string | null;
1814
+ field: string;
1815
+ }[] | undefined;
1561
1816
  } | null | undefined;
1562
1817
  kwikset_unable_to_confirm_code_warning?: {
1563
1818
  message: string;
@@ -1609,6 +1864,22 @@ export declare const access_code: z.ZodObject<{
1609
1864
  message: z.ZodString;
1610
1865
  is_access_code_error: z.ZodLiteral<true>;
1611
1866
  created_at: z.ZodOptional<z.ZodString>;
1867
+ } & {
1868
+ error_code: z.ZodLiteral<"provider_issue">;
1869
+ }, "strip", z.ZodTypeAny, {
1870
+ message: string;
1871
+ error_code: "provider_issue";
1872
+ is_access_code_error: true;
1873
+ created_at?: string | undefined;
1874
+ }, {
1875
+ message: string;
1876
+ error_code: "provider_issue";
1877
+ is_access_code_error: true;
1878
+ created_at?: string | undefined;
1879
+ }>, z.ZodObject<{
1880
+ message: z.ZodString;
1881
+ is_access_code_error: z.ZodLiteral<true>;
1882
+ created_at: z.ZodOptional<z.ZodString>;
1612
1883
  } & {
1613
1884
  error_code: z.ZodLiteral<"smartthings_failed_to_set_access_code">;
1614
1885
  }, "strip", z.ZodTypeAny, {
@@ -1777,16 +2048,42 @@ export declare const access_code: z.ZodObject<{
1777
2048
  created_at: z.ZodOptional<z.ZodString>;
1778
2049
  } & {
1779
2050
  error_code: z.ZodLiteral<"code_modified_external_to_seam">;
2051
+ change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
2052
+ modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2053
+ field: z.ZodString;
2054
+ from: z.ZodNullable<z.ZodString>;
2055
+ to: z.ZodNullable<z.ZodString>;
2056
+ }, "strip", z.ZodTypeAny, {
2057
+ from: string | null;
2058
+ to: string | null;
2059
+ field: string;
2060
+ }, {
2061
+ from: string | null;
2062
+ to: string | null;
2063
+ field: string;
2064
+ }>, "many">>;
1780
2065
  }, "strip", z.ZodTypeAny, {
1781
2066
  message: string;
1782
2067
  error_code: "code_modified_external_to_seam";
1783
2068
  is_access_code_error: true;
1784
2069
  created_at?: string | undefined;
2070
+ change_type?: "modified" | "removed" | undefined;
2071
+ modified_fields?: {
2072
+ from: string | null;
2073
+ to: string | null;
2074
+ field: string;
2075
+ }[] | undefined;
1785
2076
  }, {
1786
2077
  message: string;
1787
2078
  error_code: "code_modified_external_to_seam";
1788
2079
  is_access_code_error: true;
1789
2080
  created_at?: string | undefined;
2081
+ change_type?: "modified" | "removed" | undefined;
2082
+ modified_fields?: {
2083
+ from: string | null;
2084
+ to: string | null;
2085
+ field: string;
2086
+ }[] | undefined;
1790
2087
  }>, z.ZodObject<{
1791
2088
  message: z.ZodString;
1792
2089
  is_access_code_error: z.ZodLiteral<true>;
@@ -1839,6 +2136,22 @@ export declare const access_code: z.ZodObject<{
1839
2136
  message: z.ZodString;
1840
2137
  is_access_code_error: z.ZodLiteral<true>;
1841
2138
  created_at: z.ZodOptional<z.ZodString>;
2139
+ } & {
2140
+ error_code: z.ZodLiteral<"access_code_inactive">;
2141
+ }, "strip", z.ZodTypeAny, {
2142
+ message: string;
2143
+ error_code: "access_code_inactive";
2144
+ is_access_code_error: true;
2145
+ created_at?: string | undefined;
2146
+ }, {
2147
+ message: string;
2148
+ error_code: "access_code_inactive";
2149
+ is_access_code_error: true;
2150
+ created_at?: string | undefined;
2151
+ }>, z.ZodObject<{
2152
+ message: z.ZodString;
2153
+ is_access_code_error: z.ZodLiteral<true>;
2154
+ created_at: z.ZodOptional<z.ZodString>;
1842
2155
  } & {
1843
2156
  error_code: z.ZodLiteral<"salto_ks_user_not_subscribed">;
1844
2157
  }, "strip", z.ZodTypeAny, {
@@ -2286,6 +2599,19 @@ export declare const access_code: z.ZodObject<{
2286
2599
  warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
2287
2600
  message: z.ZodString;
2288
2601
  created_at: z.ZodOptional<z.ZodString>;
2602
+ } & {
2603
+ warning_code: z.ZodLiteral<"provider_issue">;
2604
+ }, "strip", z.ZodTypeAny, {
2605
+ message: string;
2606
+ warning_code: "provider_issue";
2607
+ created_at?: string | undefined;
2608
+ }, {
2609
+ message: string;
2610
+ warning_code: "provider_issue";
2611
+ created_at?: string | undefined;
2612
+ }>, z.ZodObject<{
2613
+ message: z.ZodString;
2614
+ created_at: z.ZodOptional<z.ZodString>;
2289
2615
  } & {
2290
2616
  warning_code: z.ZodLiteral<"smartthings_failed_to_set_access_code">;
2291
2617
  }, "strip", z.ZodTypeAny, {
@@ -2340,14 +2666,40 @@ export declare const access_code: z.ZodObject<{
2340
2666
  created_at: z.ZodOptional<z.ZodString>;
2341
2667
  } & {
2342
2668
  warning_code: z.ZodLiteral<"code_modified_external_to_seam">;
2669
+ change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
2670
+ modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2671
+ field: z.ZodString;
2672
+ from: z.ZodNullable<z.ZodString>;
2673
+ to: z.ZodNullable<z.ZodString>;
2674
+ }, "strip", z.ZodTypeAny, {
2675
+ from: string | null;
2676
+ to: string | null;
2677
+ field: string;
2678
+ }, {
2679
+ from: string | null;
2680
+ to: string | null;
2681
+ field: string;
2682
+ }>, "many">>;
2343
2683
  }, "strip", z.ZodTypeAny, {
2344
2684
  message: string;
2345
2685
  warning_code: "code_modified_external_to_seam";
2346
2686
  created_at?: string | undefined;
2687
+ change_type?: "modified" | "removed" | undefined;
2688
+ modified_fields?: {
2689
+ from: string | null;
2690
+ to: string | null;
2691
+ field: string;
2692
+ }[] | undefined;
2347
2693
  }, {
2348
2694
  message: string;
2349
2695
  warning_code: "code_modified_external_to_seam";
2350
2696
  created_at?: string | undefined;
2697
+ change_type?: "modified" | "removed" | undefined;
2698
+ modified_fields?: {
2699
+ from: string | null;
2700
+ to: string | null;
2701
+ field: string;
2702
+ }[] | undefined;
2351
2703
  }>, z.ZodObject<{
2352
2704
  message: z.ZodString;
2353
2705
  created_at: z.ZodOptional<z.ZodString>;
@@ -2806,6 +3158,11 @@ export declare const access_code: z.ZodObject<{
2806
3158
  created_at: string;
2807
3159
  error_code: "lockly_missing_wifi_bridge";
2808
3160
  is_device_error: true;
3161
+ } | {
3162
+ message: string;
3163
+ error_code: "provider_issue";
3164
+ is_access_code_error: true;
3165
+ created_at?: string | undefined;
2809
3166
  } | {
2810
3167
  message: string;
2811
3168
  error_code: "smartthings_failed_to_set_access_code";
@@ -2821,6 +3178,12 @@ export declare const access_code: z.ZodObject<{
2821
3178
  error_code: "code_modified_external_to_seam";
2822
3179
  is_access_code_error: true;
2823
3180
  created_at?: string | undefined;
3181
+ change_type?: "modified" | "removed" | undefined;
3182
+ modified_fields?: {
3183
+ from: string | null;
3184
+ to: string | null;
3185
+ field: string;
3186
+ }[] | undefined;
2824
3187
  } | {
2825
3188
  message: string;
2826
3189
  error_code: "failed_to_set_on_device";
@@ -2883,6 +3246,11 @@ export declare const access_code: z.ZodObject<{
2883
3246
  error_code: "august_lock_missing_keypad";
2884
3247
  is_access_code_error: true;
2885
3248
  created_at?: string | undefined;
3249
+ } | {
3250
+ message: string;
3251
+ error_code: "access_code_inactive";
3252
+ is_access_code_error: true;
3253
+ created_at?: string | undefined;
2886
3254
  } | {
2887
3255
  message: string;
2888
3256
  error_code: "salto_ks_user_not_subscribed";
@@ -2926,10 +3294,20 @@ export declare const access_code: z.ZodObject<{
2926
3294
  message: string;
2927
3295
  warning_code: "code_modified_external_to_seam";
2928
3296
  created_at?: string | undefined;
3297
+ change_type?: "modified" | "removed" | undefined;
3298
+ modified_fields?: {
3299
+ from: string | null;
3300
+ to: string | null;
3301
+ field: string;
3302
+ }[] | undefined;
2929
3303
  } | {
2930
3304
  message: string;
2931
3305
  warning_code: "schlage_detected_duplicate";
2932
3306
  created_at?: string | undefined;
3307
+ } | {
3308
+ message: string;
3309
+ warning_code: "provider_issue";
3310
+ created_at?: string | undefined;
2933
3311
  } | {
2934
3312
  message: string;
2935
3313
  warning_code: "schlage_creation_outage";
@@ -3154,6 +3532,11 @@ export declare const access_code: z.ZodObject<{
3154
3532
  created_at: string;
3155
3533
  error_code: "lockly_missing_wifi_bridge";
3156
3534
  is_device_error: true;
3535
+ } | {
3536
+ message: string;
3537
+ error_code: "provider_issue";
3538
+ is_access_code_error: true;
3539
+ created_at?: string | undefined;
3157
3540
  } | {
3158
3541
  message: string;
3159
3542
  error_code: "smartthings_failed_to_set_access_code";
@@ -3169,6 +3552,12 @@ export declare const access_code: z.ZodObject<{
3169
3552
  error_code: "code_modified_external_to_seam";
3170
3553
  is_access_code_error: true;
3171
3554
  created_at?: string | undefined;
3555
+ change_type?: "modified" | "removed" | undefined;
3556
+ modified_fields?: {
3557
+ from: string | null;
3558
+ to: string | null;
3559
+ field: string;
3560
+ }[] | undefined;
3172
3561
  } | {
3173
3562
  message: string;
3174
3563
  error_code: "failed_to_set_on_device";
@@ -3231,6 +3620,11 @@ export declare const access_code: z.ZodObject<{
3231
3620
  error_code: "august_lock_missing_keypad";
3232
3621
  is_access_code_error: true;
3233
3622
  created_at?: string | undefined;
3623
+ } | {
3624
+ message: string;
3625
+ error_code: "access_code_inactive";
3626
+ is_access_code_error: true;
3627
+ created_at?: string | undefined;
3234
3628
  } | {
3235
3629
  message: string;
3236
3630
  error_code: "salto_ks_user_not_subscribed";
@@ -3274,10 +3668,20 @@ export declare const access_code: z.ZodObject<{
3274
3668
  message: string;
3275
3669
  warning_code: "code_modified_external_to_seam";
3276
3670
  created_at?: string | undefined;
3671
+ change_type?: "modified" | "removed" | undefined;
3672
+ modified_fields?: {
3673
+ from: string | null;
3674
+ to: string | null;
3675
+ field: string;
3676
+ }[] | undefined;
3277
3677
  } | {
3278
3678
  message: string;
3279
3679
  warning_code: "schlage_detected_duplicate";
3280
3680
  created_at?: string | undefined;
3681
+ } | {
3682
+ message: string;
3683
+ warning_code: "provider_issue";
3684
+ created_at?: string | undefined;
3281
3685
  } | {
3282
3686
  message: string;
3283
3687
  warning_code: "schlage_creation_outage";