@seamapi/types 1.164.0 → 1.166.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 +13 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +37 -10
- package/lib/seam/connect/models/acs/entrance.d.ts +18 -0
- package/lib/seam/connect/models/acs/entrance.js +4 -0
- package/lib/seam/connect/models/acs/entrance.js.map +1 -1
- package/lib/seam/connect/models/capability-properties/access-code.d.ts +11 -11
- package/lib/seam/connect/models/capability-properties/access-code.js +1 -1
- package/lib/seam/connect/models/capability-properties/access-code.js.map +1 -1
- package/lib/seam/connect/models/capability-properties/index.d.ts +5 -5
- package/lib/seam/connect/models/devices/managed-device.d.ts +9 -9
- package/lib/seam/connect/openapi.d.ts +15 -0
- package/lib/seam/connect/openapi.js +13 -1
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +22 -10
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/entrance.ts +6 -0
- package/src/lib/seam/connect/models/capability-properties/access-code.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +13 -1
- package/src/lib/seam/connect/route-types.ts +22 -10
|
@@ -1123,6 +1123,10 @@ export interface Routes {
|
|
|
1123
1123
|
door_type: string;
|
|
1124
1124
|
is_connected: boolean;
|
|
1125
1125
|
} | null;
|
|
1126
|
+
errors: Array<{
|
|
1127
|
+
error_code: string;
|
|
1128
|
+
message: string;
|
|
1129
|
+
}>;
|
|
1126
1130
|
visionline_metadata: {
|
|
1127
1131
|
door_name: string;
|
|
1128
1132
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
@@ -1168,6 +1172,10 @@ export interface Routes {
|
|
|
1168
1172
|
door_type: string;
|
|
1169
1173
|
is_connected: boolean;
|
|
1170
1174
|
} | null;
|
|
1175
|
+
errors: Array<{
|
|
1176
|
+
error_code: string;
|
|
1177
|
+
message: string;
|
|
1178
|
+
}>;
|
|
1171
1179
|
visionline_metadata: {
|
|
1172
1180
|
door_name: string;
|
|
1173
1181
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
@@ -1483,6 +1491,10 @@ export interface Routes {
|
|
|
1483
1491
|
door_type: string;
|
|
1484
1492
|
is_connected: boolean;
|
|
1485
1493
|
} | null;
|
|
1494
|
+
errors: Array<{
|
|
1495
|
+
error_code: string;
|
|
1496
|
+
message: string;
|
|
1497
|
+
}>;
|
|
1486
1498
|
visionline_metadata: {
|
|
1487
1499
|
door_name: string;
|
|
1488
1500
|
door_category: 'entrance' | 'guest' | 'elevator reader' | 'common' | 'common (PMS)';
|
|
@@ -2347,7 +2359,7 @@ export interface Routes {
|
|
|
2347
2359
|
code_constraints?: (Array<{
|
|
2348
2360
|
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
|
|
2349
2361
|
} | {
|
|
2350
|
-
constraint_type: 'name_length';
|
|
2362
|
+
constraint_type: 'name_length' | 'name_must_be_unique';
|
|
2351
2363
|
min_length?: number | undefined;
|
|
2352
2364
|
max_length?: number | undefined;
|
|
2353
2365
|
}> | undefined) | undefined;
|
|
@@ -2884,7 +2896,7 @@ export interface Routes {
|
|
|
2884
2896
|
code_constraints?: (Array<{
|
|
2885
2897
|
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
|
|
2886
2898
|
} | {
|
|
2887
|
-
constraint_type: 'name_length';
|
|
2899
|
+
constraint_type: 'name_length' | 'name_must_be_unique';
|
|
2888
2900
|
min_length?: number | undefined;
|
|
2889
2901
|
max_length?: number | undefined;
|
|
2890
2902
|
}> | undefined) | undefined;
|
|
@@ -3725,7 +3737,7 @@ export interface Routes {
|
|
|
3725
3737
|
code_constraints?: (Array<{
|
|
3726
3738
|
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
|
|
3727
3739
|
} | {
|
|
3728
|
-
constraint_type: 'name_length';
|
|
3740
|
+
constraint_type: 'name_length' | 'name_must_be_unique';
|
|
3729
3741
|
min_length?: number | undefined;
|
|
3730
3742
|
max_length?: number | undefined;
|
|
3731
3743
|
}> | undefined) | undefined;
|
|
@@ -4237,7 +4249,7 @@ export interface Routes {
|
|
|
4237
4249
|
code_constraints?: (Array<{
|
|
4238
4250
|
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
|
|
4239
4251
|
} | {
|
|
4240
|
-
constraint_type: 'name_length';
|
|
4252
|
+
constraint_type: 'name_length' | 'name_must_be_unique';
|
|
4241
4253
|
min_length?: number | undefined;
|
|
4242
4254
|
max_length?: number | undefined;
|
|
4243
4255
|
}> | undefined) | undefined;
|
|
@@ -4774,7 +4786,7 @@ export interface Routes {
|
|
|
4774
4786
|
code_constraints?: (Array<{
|
|
4775
4787
|
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
|
|
4776
4788
|
} | {
|
|
4777
|
-
constraint_type: 'name_length';
|
|
4789
|
+
constraint_type: 'name_length' | 'name_must_be_unique';
|
|
4778
4790
|
min_length?: number | undefined;
|
|
4779
4791
|
max_length?: number | undefined;
|
|
4780
4792
|
}> | undefined) | undefined;
|
|
@@ -5286,7 +5298,7 @@ export interface Routes {
|
|
|
5286
5298
|
code_constraints?: (Array<{
|
|
5287
5299
|
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
|
|
5288
5300
|
} | {
|
|
5289
|
-
constraint_type: 'name_length';
|
|
5301
|
+
constraint_type: 'name_length' | 'name_must_be_unique';
|
|
5290
5302
|
min_length?: number | undefined;
|
|
5291
5303
|
max_length?: number | undefined;
|
|
5292
5304
|
}> | undefined) | undefined;
|
|
@@ -6441,7 +6453,7 @@ export interface Routes {
|
|
|
6441
6453
|
code_constraints?: (Array<{
|
|
6442
6454
|
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
|
|
6443
6455
|
} | {
|
|
6444
|
-
constraint_type: 'name_length';
|
|
6456
|
+
constraint_type: 'name_length' | 'name_must_be_unique';
|
|
6445
6457
|
min_length?: number | undefined;
|
|
6446
6458
|
max_length?: number | undefined;
|
|
6447
6459
|
}> | undefined) | undefined;
|
|
@@ -7054,7 +7066,7 @@ export interface Routes {
|
|
|
7054
7066
|
code_constraints?: (Array<{
|
|
7055
7067
|
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
|
|
7056
7068
|
} | {
|
|
7057
|
-
constraint_type: 'name_length';
|
|
7069
|
+
constraint_type: 'name_length' | 'name_must_be_unique';
|
|
7058
7070
|
min_length?: number | undefined;
|
|
7059
7071
|
max_length?: number | undefined;
|
|
7060
7072
|
}> | undefined) | undefined;
|
|
@@ -7850,7 +7862,7 @@ export interface Routes {
|
|
|
7850
7862
|
code_constraints?: (Array<{
|
|
7851
7863
|
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
|
|
7852
7864
|
} | {
|
|
7853
|
-
constraint_type: 'name_length';
|
|
7865
|
+
constraint_type: 'name_length' | 'name_must_be_unique';
|
|
7854
7866
|
min_length?: number | undefined;
|
|
7855
7867
|
max_length?: number | undefined;
|
|
7856
7868
|
}> | undefined) | undefined;
|
|
@@ -8367,7 +8379,7 @@ export interface Routes {
|
|
|
8367
8379
|
code_constraints?: (Array<{
|
|
8368
8380
|
constraint_type: 'no_zeros' | 'cannot_start_with_12' | 'no_triple_consecutive_ints' | 'cannot_specify_pin_code' | 'pin_code_matches_existing_set' | 'start_date_in_future' | 'no_ascending_or_descending_sequence' | 'at_least_three_unique_digits' | 'cannot_contain_089';
|
|
8369
8381
|
} | {
|
|
8370
|
-
constraint_type: 'name_length';
|
|
8382
|
+
constraint_type: 'name_length' | 'name_must_be_unique';
|
|
8371
8383
|
min_length?: number | undefined;
|
|
8372
8384
|
max_length?: number | undefined;
|
|
8373
8385
|
}> | undefined) | undefined;
|
package/package.json
CHANGED
|
@@ -13,6 +13,12 @@ export const acs_entrance = z.object({
|
|
|
13
13
|
acs_system_id: z.string().uuid(),
|
|
14
14
|
created_at: z.string().datetime(),
|
|
15
15
|
latch_metadata: acs_entrance_latch_metadata.nullable(),
|
|
16
|
+
errors: z.array(
|
|
17
|
+
z.object({
|
|
18
|
+
error_code: z.string(),
|
|
19
|
+
message: z.string(),
|
|
20
|
+
}),
|
|
21
|
+
),
|
|
16
22
|
visionline_metadata: z
|
|
17
23
|
.object({
|
|
18
24
|
door_name: z.string(),
|
|
@@ -15,7 +15,7 @@ export const access_code_code_constraint = z.object({
|
|
|
15
15
|
})
|
|
16
16
|
|
|
17
17
|
export const access_code_name_constraint = z.object({
|
|
18
|
-
constraint_type: z.
|
|
18
|
+
constraint_type: z.enum(['name_length', 'name_must_be_unique']), // Nuki, Kwikset
|
|
19
19
|
min_length: z.number().optional(),
|
|
20
20
|
max_length: z.number().optional(),
|
|
21
21
|
})
|
|
@@ -313,6 +313,17 @@ export default {
|
|
|
313
313
|
acs_system_id: { format: 'uuid', type: 'string' },
|
|
314
314
|
created_at: { format: 'date-time', type: 'string' },
|
|
315
315
|
display_name: { type: 'string' },
|
|
316
|
+
errors: {
|
|
317
|
+
items: {
|
|
318
|
+
properties: {
|
|
319
|
+
error_code: { type: 'string' },
|
|
320
|
+
message: { type: 'string' },
|
|
321
|
+
},
|
|
322
|
+
required: ['error_code', 'message'],
|
|
323
|
+
type: 'object',
|
|
324
|
+
},
|
|
325
|
+
type: 'array',
|
|
326
|
+
},
|
|
316
327
|
latch_metadata: {
|
|
317
328
|
nullable: true,
|
|
318
329
|
properties: {
|
|
@@ -371,6 +382,7 @@ export default {
|
|
|
371
382
|
'acs_system_id',
|
|
372
383
|
'created_at',
|
|
373
384
|
'latch_metadata',
|
|
385
|
+
'errors',
|
|
374
386
|
'visionline_metadata',
|
|
375
387
|
],
|
|
376
388
|
type: 'object',
|
|
@@ -1509,7 +1521,7 @@ export default {
|
|
|
1509
1521
|
{
|
|
1510
1522
|
properties: {
|
|
1511
1523
|
constraint_type: {
|
|
1512
|
-
enum: ['name_length'],
|
|
1524
|
+
enum: ['name_length', 'name_must_be_unique'],
|
|
1513
1525
|
type: 'string',
|
|
1514
1526
|
},
|
|
1515
1527
|
max_length: { type: 'number' },
|
|
@@ -1224,6 +1224,10 @@ export interface Routes {
|
|
|
1224
1224
|
door_type: string
|
|
1225
1225
|
is_connected: boolean
|
|
1226
1226
|
} | null
|
|
1227
|
+
errors: Array<{
|
|
1228
|
+
error_code: string
|
|
1229
|
+
message: string
|
|
1230
|
+
}>
|
|
1227
1231
|
visionline_metadata: {
|
|
1228
1232
|
door_name: string
|
|
1229
1233
|
door_category:
|
|
@@ -1276,6 +1280,10 @@ export interface Routes {
|
|
|
1276
1280
|
door_type: string
|
|
1277
1281
|
is_connected: boolean
|
|
1278
1282
|
} | null
|
|
1283
|
+
errors: Array<{
|
|
1284
|
+
error_code: string
|
|
1285
|
+
message: string
|
|
1286
|
+
}>
|
|
1279
1287
|
visionline_metadata: {
|
|
1280
1288
|
door_name: string
|
|
1281
1289
|
door_category:
|
|
@@ -1683,6 +1691,10 @@ export interface Routes {
|
|
|
1683
1691
|
door_type: string
|
|
1684
1692
|
is_connected: boolean
|
|
1685
1693
|
} | null
|
|
1694
|
+
errors: Array<{
|
|
1695
|
+
error_code: string
|
|
1696
|
+
message: string
|
|
1697
|
+
}>
|
|
1686
1698
|
visionline_metadata: {
|
|
1687
1699
|
door_name: string
|
|
1688
1700
|
door_category:
|
|
@@ -2746,7 +2758,7 @@ export interface Routes {
|
|
|
2746
2758
|
| 'cannot_contain_089'
|
|
2747
2759
|
}
|
|
2748
2760
|
| {
|
|
2749
|
-
constraint_type: 'name_length'
|
|
2761
|
+
constraint_type: 'name_length' | 'name_must_be_unique'
|
|
2750
2762
|
min_length?: number | undefined
|
|
2751
2763
|
max_length?: number | undefined
|
|
2752
2764
|
}
|
|
@@ -3632,7 +3644,7 @@ export interface Routes {
|
|
|
3632
3644
|
| 'cannot_contain_089'
|
|
3633
3645
|
}
|
|
3634
3646
|
| {
|
|
3635
|
-
constraint_type: 'name_length'
|
|
3647
|
+
constraint_type: 'name_length' | 'name_must_be_unique'
|
|
3636
3648
|
min_length?: number | undefined
|
|
3637
3649
|
max_length?: number | undefined
|
|
3638
3650
|
}
|
|
@@ -5085,7 +5097,7 @@ export interface Routes {
|
|
|
5085
5097
|
| 'cannot_contain_089'
|
|
5086
5098
|
}
|
|
5087
5099
|
| {
|
|
5088
|
-
constraint_type: 'name_length'
|
|
5100
|
+
constraint_type: 'name_length' | 'name_must_be_unique'
|
|
5089
5101
|
min_length?: number | undefined
|
|
5090
5102
|
max_length?: number | undefined
|
|
5091
5103
|
}
|
|
@@ -5817,7 +5829,7 @@ export interface Routes {
|
|
|
5817
5829
|
| 'cannot_contain_089'
|
|
5818
5830
|
}
|
|
5819
5831
|
| {
|
|
5820
|
-
constraint_type: 'name_length'
|
|
5832
|
+
constraint_type: 'name_length' | 'name_must_be_unique'
|
|
5821
5833
|
min_length?: number | undefined
|
|
5822
5834
|
max_length?: number | undefined
|
|
5823
5835
|
}
|
|
@@ -6703,7 +6715,7 @@ export interface Routes {
|
|
|
6703
6715
|
| 'cannot_contain_089'
|
|
6704
6716
|
}
|
|
6705
6717
|
| {
|
|
6706
|
-
constraint_type: 'name_length'
|
|
6718
|
+
constraint_type: 'name_length' | 'name_must_be_unique'
|
|
6707
6719
|
min_length?: number | undefined
|
|
6708
6720
|
max_length?: number | undefined
|
|
6709
6721
|
}
|
|
@@ -7435,7 +7447,7 @@ export interface Routes {
|
|
|
7435
7447
|
| 'cannot_contain_089'
|
|
7436
7448
|
}
|
|
7437
7449
|
| {
|
|
7438
|
-
constraint_type: 'name_length'
|
|
7450
|
+
constraint_type: 'name_length' | 'name_must_be_unique'
|
|
7439
7451
|
min_length?: number | undefined
|
|
7440
7452
|
max_length?: number | undefined
|
|
7441
7453
|
}
|
|
@@ -8846,7 +8858,7 @@ export interface Routes {
|
|
|
8846
8858
|
| 'cannot_contain_089'
|
|
8847
8859
|
}
|
|
8848
8860
|
| {
|
|
8849
|
-
constraint_type: 'name_length'
|
|
8861
|
+
constraint_type: 'name_length' | 'name_must_be_unique'
|
|
8850
8862
|
min_length?: number | undefined
|
|
8851
8863
|
max_length?: number | undefined
|
|
8852
8864
|
}
|
|
@@ -9814,7 +9826,7 @@ export interface Routes {
|
|
|
9814
9826
|
| 'cannot_contain_089'
|
|
9815
9827
|
}
|
|
9816
9828
|
| {
|
|
9817
|
-
constraint_type: 'name_length'
|
|
9829
|
+
constraint_type: 'name_length' | 'name_must_be_unique'
|
|
9818
9830
|
min_length?: number | undefined
|
|
9819
9831
|
max_length?: number | undefined
|
|
9820
9832
|
}
|
|
@@ -10838,7 +10850,7 @@ export interface Routes {
|
|
|
10838
10850
|
| 'cannot_contain_089'
|
|
10839
10851
|
}
|
|
10840
10852
|
| {
|
|
10841
|
-
constraint_type: 'name_length'
|
|
10853
|
+
constraint_type: 'name_length' | 'name_must_be_unique'
|
|
10842
10854
|
min_length?: number | undefined
|
|
10843
10855
|
max_length?: number | undefined
|
|
10844
10856
|
}
|
|
@@ -11575,7 +11587,7 @@ export interface Routes {
|
|
|
11575
11587
|
| 'cannot_contain_089'
|
|
11576
11588
|
}
|
|
11577
11589
|
| {
|
|
11578
|
-
constraint_type: 'name_length'
|
|
11590
|
+
constraint_type: 'name_length' | 'name_must_be_unique'
|
|
11579
11591
|
min_length?: number | undefined
|
|
11580
11592
|
max_length?: number | undefined
|
|
11581
11593
|
}
|