@seamapi/types 1.869.0 → 1.871.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 +283 -11
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1075 -0
- package/dist/index.cjs +283 -11
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +333 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +61 -3
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +123 -0
- package/lib/seam/connect/models/batch.d.ts +330 -0
- package/lib/seam/connect/openapi.js +222 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +418 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +80 -3
- package/src/lib/seam/connect/openapi.ts +256 -0
- package/src/lib/seam/connect/route-types.ts +484 -0
|
@@ -121,6 +121,22 @@ declare const access_code_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObj
|
|
|
121
121
|
message: z.ZodString;
|
|
122
122
|
is_access_code_error: z.ZodLiteral<true>;
|
|
123
123
|
created_at: z.ZodOptional<z.ZodString>;
|
|
124
|
+
} & {
|
|
125
|
+
error_code: z.ZodLiteral<"access_code_state_unconfirmed">;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
message: string;
|
|
128
|
+
error_code: "access_code_state_unconfirmed";
|
|
129
|
+
is_access_code_error: true;
|
|
130
|
+
created_at?: string | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
message: string;
|
|
133
|
+
error_code: "access_code_state_unconfirmed";
|
|
134
|
+
is_access_code_error: true;
|
|
135
|
+
created_at?: string | undefined;
|
|
136
|
+
}>, z.ZodObject<{
|
|
137
|
+
message: z.ZodString;
|
|
138
|
+
is_access_code_error: z.ZodLiteral<true>;
|
|
139
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
124
140
|
} & {
|
|
125
141
|
error_code: z.ZodLiteral<"kwikset_unable_to_confirm_code">;
|
|
126
142
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -155,16 +171,42 @@ declare const access_code_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObj
|
|
|
155
171
|
created_at: z.ZodOptional<z.ZodString>;
|
|
156
172
|
} & {
|
|
157
173
|
error_code: z.ZodLiteral<"code_modified_external_to_seam">;
|
|
174
|
+
change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
|
|
175
|
+
modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
176
|
+
field: z.ZodString;
|
|
177
|
+
from: z.ZodNullable<z.ZodString>;
|
|
178
|
+
to: z.ZodNullable<z.ZodString>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
from: string | null;
|
|
181
|
+
to: string | null;
|
|
182
|
+
field: string;
|
|
183
|
+
}, {
|
|
184
|
+
from: string | null;
|
|
185
|
+
to: string | null;
|
|
186
|
+
field: string;
|
|
187
|
+
}>, "many">>;
|
|
158
188
|
}, "strip", z.ZodTypeAny, {
|
|
159
189
|
message: string;
|
|
160
190
|
error_code: "code_modified_external_to_seam";
|
|
161
191
|
is_access_code_error: true;
|
|
162
192
|
created_at?: string | undefined;
|
|
193
|
+
change_type?: "modified" | "removed" | undefined;
|
|
194
|
+
modified_fields?: {
|
|
195
|
+
from: string | null;
|
|
196
|
+
to: string | null;
|
|
197
|
+
field: string;
|
|
198
|
+
}[] | undefined;
|
|
163
199
|
}, {
|
|
164
200
|
message: string;
|
|
165
201
|
error_code: "code_modified_external_to_seam";
|
|
166
202
|
is_access_code_error: true;
|
|
167
203
|
created_at?: string | undefined;
|
|
204
|
+
change_type?: "modified" | "removed" | undefined;
|
|
205
|
+
modified_fields?: {
|
|
206
|
+
from: string | null;
|
|
207
|
+
to: string | null;
|
|
208
|
+
field: string;
|
|
209
|
+
}[] | undefined;
|
|
168
210
|
}>, z.ZodObject<{
|
|
169
211
|
message: z.ZodString;
|
|
170
212
|
is_access_code_error: z.ZodLiteral<true>;
|
|
@@ -453,6 +495,23 @@ declare const _access_code_error_map: z.ZodObject<{
|
|
|
453
495
|
is_access_code_error: true;
|
|
454
496
|
created_at?: string | undefined;
|
|
455
497
|
}>>>;
|
|
498
|
+
access_code_state_unconfirmed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
499
|
+
message: z.ZodString;
|
|
500
|
+
is_access_code_error: z.ZodLiteral<true>;
|
|
501
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
502
|
+
} & {
|
|
503
|
+
error_code: z.ZodLiteral<"access_code_state_unconfirmed">;
|
|
504
|
+
}, "strip", z.ZodTypeAny, {
|
|
505
|
+
message: string;
|
|
506
|
+
error_code: "access_code_state_unconfirmed";
|
|
507
|
+
is_access_code_error: true;
|
|
508
|
+
created_at?: string | undefined;
|
|
509
|
+
}, {
|
|
510
|
+
message: string;
|
|
511
|
+
error_code: "access_code_state_unconfirmed";
|
|
512
|
+
is_access_code_error: true;
|
|
513
|
+
created_at?: string | undefined;
|
|
514
|
+
}>>>;
|
|
456
515
|
kwikset_unable_to_confirm_code: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
457
516
|
message: z.ZodString;
|
|
458
517
|
is_access_code_error: z.ZodLiteral<true>;
|
|
@@ -510,16 +569,42 @@ declare const _access_code_error_map: z.ZodObject<{
|
|
|
510
569
|
created_at: z.ZodOptional<z.ZodString>;
|
|
511
570
|
} & {
|
|
512
571
|
error_code: z.ZodLiteral<"code_modified_external_to_seam">;
|
|
572
|
+
change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
|
|
573
|
+
modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
574
|
+
field: z.ZodString;
|
|
575
|
+
from: z.ZodNullable<z.ZodString>;
|
|
576
|
+
to: z.ZodNullable<z.ZodString>;
|
|
577
|
+
}, "strip", z.ZodTypeAny, {
|
|
578
|
+
from: string | null;
|
|
579
|
+
to: string | null;
|
|
580
|
+
field: string;
|
|
581
|
+
}, {
|
|
582
|
+
from: string | null;
|
|
583
|
+
to: string | null;
|
|
584
|
+
field: string;
|
|
585
|
+
}>, "many">>;
|
|
513
586
|
}, "strip", z.ZodTypeAny, {
|
|
514
587
|
message: string;
|
|
515
588
|
error_code: "code_modified_external_to_seam";
|
|
516
589
|
is_access_code_error: true;
|
|
517
590
|
created_at?: string | undefined;
|
|
591
|
+
change_type?: "modified" | "removed" | undefined;
|
|
592
|
+
modified_fields?: {
|
|
593
|
+
from: string | null;
|
|
594
|
+
to: string | null;
|
|
595
|
+
field: string;
|
|
596
|
+
}[] | undefined;
|
|
518
597
|
}, {
|
|
519
598
|
message: string;
|
|
520
599
|
error_code: "code_modified_external_to_seam";
|
|
521
600
|
is_access_code_error: true;
|
|
522
601
|
created_at?: string | undefined;
|
|
602
|
+
change_type?: "modified" | "removed" | undefined;
|
|
603
|
+
modified_fields?: {
|
|
604
|
+
from: string | null;
|
|
605
|
+
to: string | null;
|
|
606
|
+
field: string;
|
|
607
|
+
}[] | undefined;
|
|
523
608
|
}>>>;
|
|
524
609
|
august_lock_invalid_code_length: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
525
610
|
message: z.ZodString;
|
|
@@ -719,6 +804,12 @@ declare const _access_code_error_map: z.ZodObject<{
|
|
|
719
804
|
is_access_code_error: true;
|
|
720
805
|
created_at?: string | undefined;
|
|
721
806
|
} | null | undefined;
|
|
807
|
+
access_code_state_unconfirmed?: {
|
|
808
|
+
message: string;
|
|
809
|
+
error_code: "access_code_state_unconfirmed";
|
|
810
|
+
is_access_code_error: true;
|
|
811
|
+
created_at?: string | undefined;
|
|
812
|
+
} | null | undefined;
|
|
722
813
|
kwikset_unable_to_confirm_code?: {
|
|
723
814
|
message: string;
|
|
724
815
|
error_code: "kwikset_unable_to_confirm_code";
|
|
@@ -796,6 +887,12 @@ declare const _access_code_error_map: z.ZodObject<{
|
|
|
796
887
|
error_code: "code_modified_external_to_seam";
|
|
797
888
|
is_access_code_error: true;
|
|
798
889
|
created_at?: string | undefined;
|
|
890
|
+
change_type?: "modified" | "removed" | undefined;
|
|
891
|
+
modified_fields?: {
|
|
892
|
+
from: string | null;
|
|
893
|
+
to: string | null;
|
|
894
|
+
field: string;
|
|
895
|
+
}[] | undefined;
|
|
799
896
|
} | null | undefined;
|
|
800
897
|
}, {
|
|
801
898
|
smartthings_failed_to_set_access_code?: {
|
|
@@ -842,6 +939,12 @@ declare const _access_code_error_map: z.ZodObject<{
|
|
|
842
939
|
is_access_code_error: true;
|
|
843
940
|
created_at?: string | undefined;
|
|
844
941
|
} | null | undefined;
|
|
942
|
+
access_code_state_unconfirmed?: {
|
|
943
|
+
message: string;
|
|
944
|
+
error_code: "access_code_state_unconfirmed";
|
|
945
|
+
is_access_code_error: true;
|
|
946
|
+
created_at?: string | undefined;
|
|
947
|
+
} | null | undefined;
|
|
845
948
|
kwikset_unable_to_confirm_code?: {
|
|
846
949
|
message: string;
|
|
847
950
|
error_code: "kwikset_unable_to_confirm_code";
|
|
@@ -919,6 +1022,12 @@ declare const _access_code_error_map: z.ZodObject<{
|
|
|
919
1022
|
error_code: "code_modified_external_to_seam";
|
|
920
1023
|
is_access_code_error: true;
|
|
921
1024
|
created_at?: string | undefined;
|
|
1025
|
+
change_type?: "modified" | "removed" | undefined;
|
|
1026
|
+
modified_fields?: {
|
|
1027
|
+
from: string | null;
|
|
1028
|
+
to: string | null;
|
|
1029
|
+
field: string;
|
|
1030
|
+
}[] | undefined;
|
|
922
1031
|
} | null | undefined;
|
|
923
1032
|
}>;
|
|
924
1033
|
export type AccessCodeErrorMap = z.infer<typeof _access_code_error_map>;
|
|
@@ -979,14 +1088,40 @@ declare const access_code_warning: z.ZodDiscriminatedUnion<"warning_code", [z.Zo
|
|
|
979
1088
|
created_at: z.ZodOptional<z.ZodString>;
|
|
980
1089
|
} & {
|
|
981
1090
|
warning_code: z.ZodLiteral<"code_modified_external_to_seam">;
|
|
1091
|
+
change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
|
|
1092
|
+
modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1093
|
+
field: z.ZodString;
|
|
1094
|
+
from: z.ZodNullable<z.ZodString>;
|
|
1095
|
+
to: z.ZodNullable<z.ZodString>;
|
|
1096
|
+
}, "strip", z.ZodTypeAny, {
|
|
1097
|
+
from: string | null;
|
|
1098
|
+
to: string | null;
|
|
1099
|
+
field: string;
|
|
1100
|
+
}, {
|
|
1101
|
+
from: string | null;
|
|
1102
|
+
to: string | null;
|
|
1103
|
+
field: string;
|
|
1104
|
+
}>, "many">>;
|
|
982
1105
|
}, "strip", z.ZodTypeAny, {
|
|
983
1106
|
message: string;
|
|
984
1107
|
warning_code: "code_modified_external_to_seam";
|
|
985
1108
|
created_at?: string | undefined;
|
|
1109
|
+
change_type?: "modified" | "removed" | undefined;
|
|
1110
|
+
modified_fields?: {
|
|
1111
|
+
from: string | null;
|
|
1112
|
+
to: string | null;
|
|
1113
|
+
field: string;
|
|
1114
|
+
}[] | undefined;
|
|
986
1115
|
}, {
|
|
987
1116
|
message: string;
|
|
988
1117
|
warning_code: "code_modified_external_to_seam";
|
|
989
1118
|
created_at?: string | undefined;
|
|
1119
|
+
change_type?: "modified" | "removed" | undefined;
|
|
1120
|
+
modified_fields?: {
|
|
1121
|
+
from: string | null;
|
|
1122
|
+
to: string | null;
|
|
1123
|
+
field: string;
|
|
1124
|
+
}[] | undefined;
|
|
990
1125
|
}>, z.ZodObject<{
|
|
991
1126
|
message: z.ZodString;
|
|
992
1127
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -1081,6 +1216,19 @@ declare const access_code_warning: z.ZodDiscriminatedUnion<"warning_code", [z.Zo
|
|
|
1081
1216
|
}>, z.ZodObject<{
|
|
1082
1217
|
message: z.ZodString;
|
|
1083
1218
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1219
|
+
} & {
|
|
1220
|
+
warning_code: z.ZodLiteral<"access_code_inactive">;
|
|
1221
|
+
}, "strip", z.ZodTypeAny, {
|
|
1222
|
+
message: string;
|
|
1223
|
+
warning_code: "access_code_inactive";
|
|
1224
|
+
created_at?: string | undefined;
|
|
1225
|
+
}, {
|
|
1226
|
+
message: string;
|
|
1227
|
+
warning_code: "access_code_inactive";
|
|
1228
|
+
created_at?: string | undefined;
|
|
1229
|
+
}>, z.ZodObject<{
|
|
1230
|
+
message: z.ZodString;
|
|
1231
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
1084
1232
|
} & {
|
|
1085
1233
|
warning_code: z.ZodLiteral<"ultraloq_access_code_disabled">;
|
|
1086
1234
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1181,14 +1329,40 @@ declare const _access_code_warning_map: z.ZodObject<{
|
|
|
1181
1329
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1182
1330
|
} & {
|
|
1183
1331
|
warning_code: z.ZodLiteral<"code_modified_external_to_seam">;
|
|
1332
|
+
change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
|
|
1333
|
+
modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1334
|
+
field: z.ZodString;
|
|
1335
|
+
from: z.ZodNullable<z.ZodString>;
|
|
1336
|
+
to: z.ZodNullable<z.ZodString>;
|
|
1337
|
+
}, "strip", z.ZodTypeAny, {
|
|
1338
|
+
from: string | null;
|
|
1339
|
+
to: string | null;
|
|
1340
|
+
field: string;
|
|
1341
|
+
}, {
|
|
1342
|
+
from: string | null;
|
|
1343
|
+
to: string | null;
|
|
1344
|
+
field: string;
|
|
1345
|
+
}>, "many">>;
|
|
1184
1346
|
}, "strip", z.ZodTypeAny, {
|
|
1185
1347
|
message: string;
|
|
1186
1348
|
warning_code: "code_modified_external_to_seam";
|
|
1187
1349
|
created_at?: string | undefined;
|
|
1350
|
+
change_type?: "modified" | "removed" | undefined;
|
|
1351
|
+
modified_fields?: {
|
|
1352
|
+
from: string | null;
|
|
1353
|
+
to: string | null;
|
|
1354
|
+
field: string;
|
|
1355
|
+
}[] | undefined;
|
|
1188
1356
|
}, {
|
|
1189
1357
|
message: string;
|
|
1190
1358
|
warning_code: "code_modified_external_to_seam";
|
|
1191
1359
|
created_at?: string | undefined;
|
|
1360
|
+
change_type?: "modified" | "removed" | undefined;
|
|
1361
|
+
modified_fields?: {
|
|
1362
|
+
from: string | null;
|
|
1363
|
+
to: string | null;
|
|
1364
|
+
field: string;
|
|
1365
|
+
}[] | undefined;
|
|
1192
1366
|
}>>>;
|
|
1193
1367
|
delay_in_setting_on_device: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1194
1368
|
message: z.ZodString;
|
|
@@ -1288,6 +1462,20 @@ declare const _access_code_warning_map: z.ZodObject<{
|
|
|
1288
1462
|
warning_code: "kwikset_unable_to_confirm_code";
|
|
1289
1463
|
created_at?: string | undefined;
|
|
1290
1464
|
}>>>;
|
|
1465
|
+
access_code_inactive: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1466
|
+
message: z.ZodString;
|
|
1467
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
1468
|
+
} & {
|
|
1469
|
+
warning_code: z.ZodLiteral<"access_code_inactive">;
|
|
1470
|
+
}, "strip", z.ZodTypeAny, {
|
|
1471
|
+
message: string;
|
|
1472
|
+
warning_code: "access_code_inactive";
|
|
1473
|
+
created_at?: string | undefined;
|
|
1474
|
+
}, {
|
|
1475
|
+
message: string;
|
|
1476
|
+
warning_code: "access_code_inactive";
|
|
1477
|
+
created_at?: string | undefined;
|
|
1478
|
+
}>>>;
|
|
1291
1479
|
ultraloq_access_code_disabled: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1292
1480
|
message: z.ZodString;
|
|
1293
1481
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -1386,6 +1574,11 @@ declare const _access_code_warning_map: z.ZodObject<{
|
|
|
1386
1574
|
warning_code: "management_transferred";
|
|
1387
1575
|
created_at?: string | undefined;
|
|
1388
1576
|
} | null | undefined;
|
|
1577
|
+
access_code_inactive?: {
|
|
1578
|
+
message: string;
|
|
1579
|
+
warning_code: "access_code_inactive";
|
|
1580
|
+
created_at?: string | undefined;
|
|
1581
|
+
} | null | undefined;
|
|
1389
1582
|
ultraloq_access_code_disabled?: {
|
|
1390
1583
|
message: string;
|
|
1391
1584
|
warning_code: "ultraloq_access_code_disabled";
|
|
@@ -1400,6 +1593,12 @@ declare const _access_code_warning_map: z.ZodObject<{
|
|
|
1400
1593
|
message: string;
|
|
1401
1594
|
warning_code: "code_modified_external_to_seam";
|
|
1402
1595
|
created_at?: string | undefined;
|
|
1596
|
+
change_type?: "modified" | "removed" | undefined;
|
|
1597
|
+
modified_fields?: {
|
|
1598
|
+
from: string | null;
|
|
1599
|
+
to: string | null;
|
|
1600
|
+
field: string;
|
|
1601
|
+
}[] | undefined;
|
|
1403
1602
|
} | null | undefined;
|
|
1404
1603
|
kwikset_unable_to_confirm_code_warning?: {
|
|
1405
1604
|
message: string;
|
|
@@ -1462,6 +1661,11 @@ declare const _access_code_warning_map: z.ZodObject<{
|
|
|
1462
1661
|
warning_code: "management_transferred";
|
|
1463
1662
|
created_at?: string | undefined;
|
|
1464
1663
|
} | null | undefined;
|
|
1664
|
+
access_code_inactive?: {
|
|
1665
|
+
message: string;
|
|
1666
|
+
warning_code: "access_code_inactive";
|
|
1667
|
+
created_at?: string | undefined;
|
|
1668
|
+
} | null | undefined;
|
|
1465
1669
|
ultraloq_access_code_disabled?: {
|
|
1466
1670
|
message: string;
|
|
1467
1671
|
warning_code: "ultraloq_access_code_disabled";
|
|
@@ -1476,6 +1680,12 @@ declare const _access_code_warning_map: z.ZodObject<{
|
|
|
1476
1680
|
message: string;
|
|
1477
1681
|
warning_code: "code_modified_external_to_seam";
|
|
1478
1682
|
created_at?: string | undefined;
|
|
1683
|
+
change_type?: "modified" | "removed" | undefined;
|
|
1684
|
+
modified_fields?: {
|
|
1685
|
+
from: string | null;
|
|
1686
|
+
to: string | null;
|
|
1687
|
+
field: string;
|
|
1688
|
+
}[] | undefined;
|
|
1479
1689
|
} | null | undefined;
|
|
1480
1690
|
kwikset_unable_to_confirm_code_warning?: {
|
|
1481
1691
|
message: string;
|
|
@@ -1645,6 +1855,22 @@ export declare const access_code: z.ZodObject<{
|
|
|
1645
1855
|
message: z.ZodString;
|
|
1646
1856
|
is_access_code_error: z.ZodLiteral<true>;
|
|
1647
1857
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1858
|
+
} & {
|
|
1859
|
+
error_code: z.ZodLiteral<"access_code_state_unconfirmed">;
|
|
1860
|
+
}, "strip", z.ZodTypeAny, {
|
|
1861
|
+
message: string;
|
|
1862
|
+
error_code: "access_code_state_unconfirmed";
|
|
1863
|
+
is_access_code_error: true;
|
|
1864
|
+
created_at?: string | undefined;
|
|
1865
|
+
}, {
|
|
1866
|
+
message: string;
|
|
1867
|
+
error_code: "access_code_state_unconfirmed";
|
|
1868
|
+
is_access_code_error: true;
|
|
1869
|
+
created_at?: string | undefined;
|
|
1870
|
+
}>, z.ZodObject<{
|
|
1871
|
+
message: z.ZodString;
|
|
1872
|
+
is_access_code_error: z.ZodLiteral<true>;
|
|
1873
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
1648
1874
|
} & {
|
|
1649
1875
|
error_code: z.ZodLiteral<"kwikset_unable_to_confirm_code">;
|
|
1650
1876
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1679,16 +1905,42 @@ export declare const access_code: z.ZodObject<{
|
|
|
1679
1905
|
created_at: z.ZodOptional<z.ZodString>;
|
|
1680
1906
|
} & {
|
|
1681
1907
|
error_code: z.ZodLiteral<"code_modified_external_to_seam">;
|
|
1908
|
+
change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
|
|
1909
|
+
modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1910
|
+
field: z.ZodString;
|
|
1911
|
+
from: z.ZodNullable<z.ZodString>;
|
|
1912
|
+
to: z.ZodNullable<z.ZodString>;
|
|
1913
|
+
}, "strip", z.ZodTypeAny, {
|
|
1914
|
+
from: string | null;
|
|
1915
|
+
to: string | null;
|
|
1916
|
+
field: string;
|
|
1917
|
+
}, {
|
|
1918
|
+
from: string | null;
|
|
1919
|
+
to: string | null;
|
|
1920
|
+
field: string;
|
|
1921
|
+
}>, "many">>;
|
|
1682
1922
|
}, "strip", z.ZodTypeAny, {
|
|
1683
1923
|
message: string;
|
|
1684
1924
|
error_code: "code_modified_external_to_seam";
|
|
1685
1925
|
is_access_code_error: true;
|
|
1686
1926
|
created_at?: string | undefined;
|
|
1927
|
+
change_type?: "modified" | "removed" | undefined;
|
|
1928
|
+
modified_fields?: {
|
|
1929
|
+
from: string | null;
|
|
1930
|
+
to: string | null;
|
|
1931
|
+
field: string;
|
|
1932
|
+
}[] | undefined;
|
|
1687
1933
|
}, {
|
|
1688
1934
|
message: string;
|
|
1689
1935
|
error_code: "code_modified_external_to_seam";
|
|
1690
1936
|
is_access_code_error: true;
|
|
1691
1937
|
created_at?: string | undefined;
|
|
1938
|
+
change_type?: "modified" | "removed" | undefined;
|
|
1939
|
+
modified_fields?: {
|
|
1940
|
+
from: string | null;
|
|
1941
|
+
to: string | null;
|
|
1942
|
+
field: string;
|
|
1943
|
+
}[] | undefined;
|
|
1692
1944
|
}>, z.ZodObject<{
|
|
1693
1945
|
message: z.ZodString;
|
|
1694
1946
|
is_access_code_error: z.ZodLiteral<true>;
|
|
@@ -2242,14 +2494,40 @@ export declare const access_code: z.ZodObject<{
|
|
|
2242
2494
|
created_at: z.ZodOptional<z.ZodString>;
|
|
2243
2495
|
} & {
|
|
2244
2496
|
warning_code: z.ZodLiteral<"code_modified_external_to_seam">;
|
|
2497
|
+
change_type: z.ZodOptional<z.ZodEnum<["modified", "removed"]>>;
|
|
2498
|
+
modified_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2499
|
+
field: z.ZodString;
|
|
2500
|
+
from: z.ZodNullable<z.ZodString>;
|
|
2501
|
+
to: z.ZodNullable<z.ZodString>;
|
|
2502
|
+
}, "strip", z.ZodTypeAny, {
|
|
2503
|
+
from: string | null;
|
|
2504
|
+
to: string | null;
|
|
2505
|
+
field: string;
|
|
2506
|
+
}, {
|
|
2507
|
+
from: string | null;
|
|
2508
|
+
to: string | null;
|
|
2509
|
+
field: string;
|
|
2510
|
+
}>, "many">>;
|
|
2245
2511
|
}, "strip", z.ZodTypeAny, {
|
|
2246
2512
|
message: string;
|
|
2247
2513
|
warning_code: "code_modified_external_to_seam";
|
|
2248
2514
|
created_at?: string | undefined;
|
|
2515
|
+
change_type?: "modified" | "removed" | undefined;
|
|
2516
|
+
modified_fields?: {
|
|
2517
|
+
from: string | null;
|
|
2518
|
+
to: string | null;
|
|
2519
|
+
field: string;
|
|
2520
|
+
}[] | undefined;
|
|
2249
2521
|
}, {
|
|
2250
2522
|
message: string;
|
|
2251
2523
|
warning_code: "code_modified_external_to_seam";
|
|
2252
2524
|
created_at?: string | undefined;
|
|
2525
|
+
change_type?: "modified" | "removed" | undefined;
|
|
2526
|
+
modified_fields?: {
|
|
2527
|
+
from: string | null;
|
|
2528
|
+
to: string | null;
|
|
2529
|
+
field: string;
|
|
2530
|
+
}[] | undefined;
|
|
2253
2531
|
}>, z.ZodObject<{
|
|
2254
2532
|
message: z.ZodString;
|
|
2255
2533
|
created_at: z.ZodOptional<z.ZodString>;
|
|
@@ -2344,6 +2622,19 @@ export declare const access_code: z.ZodObject<{
|
|
|
2344
2622
|
}>, z.ZodObject<{
|
|
2345
2623
|
message: z.ZodString;
|
|
2346
2624
|
created_at: z.ZodOptional<z.ZodString>;
|
|
2625
|
+
} & {
|
|
2626
|
+
warning_code: z.ZodLiteral<"access_code_inactive">;
|
|
2627
|
+
}, "strip", z.ZodTypeAny, {
|
|
2628
|
+
message: string;
|
|
2629
|
+
warning_code: "access_code_inactive";
|
|
2630
|
+
created_at?: string | undefined;
|
|
2631
|
+
}, {
|
|
2632
|
+
message: string;
|
|
2633
|
+
warning_code: "access_code_inactive";
|
|
2634
|
+
created_at?: string | undefined;
|
|
2635
|
+
}>, z.ZodObject<{
|
|
2636
|
+
message: z.ZodString;
|
|
2637
|
+
created_at: z.ZodOptional<z.ZodString>;
|
|
2347
2638
|
} & {
|
|
2348
2639
|
warning_code: z.ZodLiteral<"ultraloq_access_code_disabled">;
|
|
2349
2640
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -2710,6 +3001,12 @@ export declare const access_code: z.ZodObject<{
|
|
|
2710
3001
|
error_code: "code_modified_external_to_seam";
|
|
2711
3002
|
is_access_code_error: true;
|
|
2712
3003
|
created_at?: string | undefined;
|
|
3004
|
+
change_type?: "modified" | "removed" | undefined;
|
|
3005
|
+
modified_fields?: {
|
|
3006
|
+
from: string | null;
|
|
3007
|
+
to: string | null;
|
|
3008
|
+
field: string;
|
|
3009
|
+
}[] | undefined;
|
|
2713
3010
|
} | {
|
|
2714
3011
|
message: string;
|
|
2715
3012
|
error_code: "failed_to_set_on_device";
|
|
@@ -2737,6 +3034,11 @@ export declare const access_code: z.ZodObject<{
|
|
|
2737
3034
|
error_code: "no_space_for_access_code_on_device";
|
|
2738
3035
|
is_access_code_error: true;
|
|
2739
3036
|
created_at?: string | undefined;
|
|
3037
|
+
} | {
|
|
3038
|
+
message: string;
|
|
3039
|
+
error_code: "access_code_state_unconfirmed";
|
|
3040
|
+
is_access_code_error: true;
|
|
3041
|
+
created_at?: string | undefined;
|
|
2740
3042
|
} | {
|
|
2741
3043
|
message: string;
|
|
2742
3044
|
error_code: "kwikset_unable_to_confirm_code";
|
|
@@ -2810,6 +3112,12 @@ export declare const access_code: z.ZodObject<{
|
|
|
2810
3112
|
message: string;
|
|
2811
3113
|
warning_code: "code_modified_external_to_seam";
|
|
2812
3114
|
created_at?: string | undefined;
|
|
3115
|
+
change_type?: "modified" | "removed" | undefined;
|
|
3116
|
+
modified_fields?: {
|
|
3117
|
+
from: string | null;
|
|
3118
|
+
to: string | null;
|
|
3119
|
+
field: string;
|
|
3120
|
+
}[] | undefined;
|
|
2813
3121
|
} | {
|
|
2814
3122
|
message: string;
|
|
2815
3123
|
warning_code: "schlage_detected_duplicate";
|
|
@@ -2846,6 +3154,10 @@ export declare const access_code: z.ZodObject<{
|
|
|
2846
3154
|
message: string;
|
|
2847
3155
|
warning_code: "kwikset_unable_to_confirm_code";
|
|
2848
3156
|
created_at?: string | undefined;
|
|
3157
|
+
} | {
|
|
3158
|
+
message: string;
|
|
3159
|
+
warning_code: "access_code_inactive";
|
|
3160
|
+
created_at?: string | undefined;
|
|
2849
3161
|
} | {
|
|
2850
3162
|
message: string;
|
|
2851
3163
|
warning_code: "ultraloq_access_code_disabled";
|
|
@@ -3049,6 +3361,12 @@ export declare const access_code: z.ZodObject<{
|
|
|
3049
3361
|
error_code: "code_modified_external_to_seam";
|
|
3050
3362
|
is_access_code_error: true;
|
|
3051
3363
|
created_at?: string | undefined;
|
|
3364
|
+
change_type?: "modified" | "removed" | undefined;
|
|
3365
|
+
modified_fields?: {
|
|
3366
|
+
from: string | null;
|
|
3367
|
+
to: string | null;
|
|
3368
|
+
field: string;
|
|
3369
|
+
}[] | undefined;
|
|
3052
3370
|
} | {
|
|
3053
3371
|
message: string;
|
|
3054
3372
|
error_code: "failed_to_set_on_device";
|
|
@@ -3076,6 +3394,11 @@ export declare const access_code: z.ZodObject<{
|
|
|
3076
3394
|
error_code: "no_space_for_access_code_on_device";
|
|
3077
3395
|
is_access_code_error: true;
|
|
3078
3396
|
created_at?: string | undefined;
|
|
3397
|
+
} | {
|
|
3398
|
+
message: string;
|
|
3399
|
+
error_code: "access_code_state_unconfirmed";
|
|
3400
|
+
is_access_code_error: true;
|
|
3401
|
+
created_at?: string | undefined;
|
|
3079
3402
|
} | {
|
|
3080
3403
|
message: string;
|
|
3081
3404
|
error_code: "kwikset_unable_to_confirm_code";
|
|
@@ -3149,6 +3472,12 @@ export declare const access_code: z.ZodObject<{
|
|
|
3149
3472
|
message: string;
|
|
3150
3473
|
warning_code: "code_modified_external_to_seam";
|
|
3151
3474
|
created_at?: string | undefined;
|
|
3475
|
+
change_type?: "modified" | "removed" | undefined;
|
|
3476
|
+
modified_fields?: {
|
|
3477
|
+
from: string | null;
|
|
3478
|
+
to: string | null;
|
|
3479
|
+
field: string;
|
|
3480
|
+
}[] | undefined;
|
|
3152
3481
|
} | {
|
|
3153
3482
|
message: string;
|
|
3154
3483
|
warning_code: "schlage_detected_duplicate";
|
|
@@ -3185,6 +3514,10 @@ export declare const access_code: z.ZodObject<{
|
|
|
3185
3514
|
message: string;
|
|
3186
3515
|
warning_code: "kwikset_unable_to_confirm_code";
|
|
3187
3516
|
created_at?: string | undefined;
|
|
3517
|
+
} | {
|
|
3518
|
+
message: string;
|
|
3519
|
+
warning_code: "access_code_inactive";
|
|
3520
|
+
created_at?: string | undefined;
|
|
3188
3521
|
} | {
|
|
3189
3522
|
message: string;
|
|
3190
3523
|
warning_code: "ultraloq_access_code_disabled";
|