@seamapi/types 1.873.0 → 1.874.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 +67 -22
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +481 -37794
- package/dist/index.cjs +67 -22
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +24 -24
- package/lib/seam/connect/models/access-codes/managed-access-code.js +5 -12
- 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 +5 -5
- package/lib/seam/connect/models/batch.d.ts +5 -37512
- package/lib/seam/connect/models/batch.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +58 -0
- package/lib/seam/connect/models/devices/device.js +12 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +21 -0
- package/lib/seam/connect/openapi.js +48 -8
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +151 -11
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +5 -12
- package/src/lib/seam/connect/models/batch.ts +38 -2
- package/src/lib/seam/connect/models/devices/device.ts +13 -0
- package/src/lib/seam/connect/openapi.ts +56 -8
- package/src/lib/seam/connect/route-types.ts +171 -11
|
@@ -1780,7 +1780,7 @@ export type Routes = {
|
|
|
1780
1780
|
/** Date and time at which Seam created the error. */
|
|
1781
1781
|
created_at?: string | undefined;
|
|
1782
1782
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1783
|
-
error_code: '
|
|
1783
|
+
error_code: 'insufficient_permissions';
|
|
1784
1784
|
} | {
|
|
1785
1785
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1786
1786
|
message: string;
|
|
@@ -2459,7 +2459,7 @@ export type Routes = {
|
|
|
2459
2459
|
/** Date and time at which Seam created the error. */
|
|
2460
2460
|
created_at?: string | undefined;
|
|
2461
2461
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
2462
|
-
error_code: '
|
|
2462
|
+
error_code: 'insufficient_permissions';
|
|
2463
2463
|
} | {
|
|
2464
2464
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
2465
2465
|
message: string;
|
|
@@ -4658,7 +4658,7 @@ export type Routes = {
|
|
|
4658
4658
|
/** Date and time at which Seam created the error. */
|
|
4659
4659
|
created_at?: string | undefined;
|
|
4660
4660
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4661
|
-
error_code: '
|
|
4661
|
+
error_code: 'insufficient_permissions';
|
|
4662
4662
|
} | {
|
|
4663
4663
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4664
4664
|
message: string;
|
|
@@ -5383,7 +5383,7 @@ export type Routes = {
|
|
|
5383
5383
|
/** Date and time at which Seam created the error. */
|
|
5384
5384
|
created_at?: string | undefined;
|
|
5385
5385
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5386
|
-
error_code: '
|
|
5386
|
+
error_code: 'insufficient_permissions';
|
|
5387
5387
|
} | {
|
|
5388
5388
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5389
5389
|
message: string;
|
|
@@ -6051,7 +6051,7 @@ export type Routes = {
|
|
|
6051
6051
|
/** Date and time at which Seam created the error. */
|
|
6052
6052
|
created_at?: string | undefined;
|
|
6053
6053
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6054
|
-
error_code: '
|
|
6054
|
+
error_code: 'insufficient_permissions';
|
|
6055
6055
|
} | {
|
|
6056
6056
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6057
6057
|
message: string;
|
|
@@ -6696,7 +6696,7 @@ export type Routes = {
|
|
|
6696
6696
|
/** Date and time at which Seam created the error. */
|
|
6697
6697
|
created_at?: string | undefined;
|
|
6698
6698
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6699
|
-
error_code: '
|
|
6699
|
+
error_code: 'insufficient_permissions';
|
|
6700
6700
|
} | {
|
|
6701
6701
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6702
6702
|
message: string;
|
|
@@ -7376,7 +7376,7 @@ export type Routes = {
|
|
|
7376
7376
|
/** Date and time at which Seam created the error. */
|
|
7377
7377
|
created_at?: string | undefined;
|
|
7378
7378
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7379
|
-
error_code: '
|
|
7379
|
+
error_code: 'insufficient_permissions';
|
|
7380
7380
|
} | {
|
|
7381
7381
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7382
7382
|
message: string;
|
|
@@ -9486,7 +9486,7 @@ export type Routes = {
|
|
|
9486
9486
|
/** Date and time at which Seam created the error. */
|
|
9487
9487
|
created_at?: string | undefined;
|
|
9488
9488
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
9489
|
-
error_code: '
|
|
9489
|
+
error_code: 'insufficient_permissions';
|
|
9490
9490
|
} | {
|
|
9491
9491
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
9492
9492
|
message: string;
|
|
@@ -10052,7 +10052,7 @@ export type Routes = {
|
|
|
10052
10052
|
/** Date and time at which Seam created the error. */
|
|
10053
10053
|
created_at?: string | undefined;
|
|
10054
10054
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
10055
|
-
error_code: '
|
|
10055
|
+
error_code: 'insufficient_permissions';
|
|
10056
10056
|
} | {
|
|
10057
10057
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
10058
10058
|
message: string;
|
|
@@ -13794,6 +13794,13 @@ export type Routes = {
|
|
|
13794
13794
|
active_access_code_count: number;
|
|
13795
13795
|
/** Maximum number of active access codes supported by the device. */
|
|
13796
13796
|
max_active_access_code_count: number;
|
|
13797
|
+
} | {
|
|
13798
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
13799
|
+
message: string;
|
|
13800
|
+
/** Date and time at which Seam created the warning. */
|
|
13801
|
+
created_at: string;
|
|
13802
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
13803
|
+
warning_code: 'insufficient_permissions';
|
|
13797
13804
|
})[];
|
|
13798
13805
|
/** Date and time at which the device object was created. */
|
|
13799
13806
|
created_at: string;
|
|
@@ -18489,6 +18496,13 @@ export type Routes = {
|
|
|
18489
18496
|
active_access_code_count: number;
|
|
18490
18497
|
/** Maximum number of active access codes supported by the device. */
|
|
18491
18498
|
max_active_access_code_count: number;
|
|
18499
|
+
} | {
|
|
18500
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
18501
|
+
message: string;
|
|
18502
|
+
/** Date and time at which Seam created the warning. */
|
|
18503
|
+
created_at: string;
|
|
18504
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
18505
|
+
warning_code: 'insufficient_permissions';
|
|
18492
18506
|
})[];
|
|
18493
18507
|
/** Date and time at which the device object was created. */
|
|
18494
18508
|
created_at: string;
|
|
@@ -37958,6 +37972,13 @@ export type Routes = {
|
|
|
37958
37972
|
active_access_code_count: number;
|
|
37959
37973
|
/** Maximum number of active access codes supported by the device. */
|
|
37960
37974
|
max_active_access_code_count: number;
|
|
37975
|
+
} | {
|
|
37976
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
37977
|
+
message: string;
|
|
37978
|
+
/** Date and time at which Seam created the warning. */
|
|
37979
|
+
created_at: string;
|
|
37980
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
37981
|
+
warning_code: 'insufficient_permissions';
|
|
37961
37982
|
})[];
|
|
37962
37983
|
/** Date and time at which the device object was created. */
|
|
37963
37984
|
created_at: string;
|
|
@@ -39355,6 +39376,13 @@ export type Routes = {
|
|
|
39355
39376
|
active_access_code_count: number;
|
|
39356
39377
|
/** Maximum number of active access codes supported by the device. */
|
|
39357
39378
|
max_active_access_code_count: number;
|
|
39379
|
+
} | {
|
|
39380
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
39381
|
+
message: string;
|
|
39382
|
+
/** Date and time at which Seam created the warning. */
|
|
39383
|
+
created_at: string;
|
|
39384
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
39385
|
+
warning_code: 'insufficient_permissions';
|
|
39358
39386
|
})[];
|
|
39359
39387
|
/** Date and time at which the device object was created. */
|
|
39360
39388
|
created_at: string;
|
|
@@ -39921,6 +39949,13 @@ export type Routes = {
|
|
|
39921
39949
|
active_access_code_count: number;
|
|
39922
39950
|
/** Maximum number of active access codes supported by the device. */
|
|
39923
39951
|
max_active_access_code_count: number;
|
|
39952
|
+
} | {
|
|
39953
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
39954
|
+
message: string;
|
|
39955
|
+
/** Date and time at which Seam created the warning. */
|
|
39956
|
+
created_at: string;
|
|
39957
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
39958
|
+
warning_code: 'insufficient_permissions';
|
|
39924
39959
|
})[];
|
|
39925
39960
|
/** Date and time at which the device object was created. */
|
|
39926
39961
|
created_at: string;
|
|
@@ -40412,6 +40447,13 @@ export type Routes = {
|
|
|
40412
40447
|
active_access_code_count: number;
|
|
40413
40448
|
/** Maximum number of active access codes supported by the device. */
|
|
40414
40449
|
max_active_access_code_count: number;
|
|
40450
|
+
} | {
|
|
40451
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
40452
|
+
message: string;
|
|
40453
|
+
/** Date and time at which Seam created the warning. */
|
|
40454
|
+
created_at: string;
|
|
40455
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
40456
|
+
warning_code: 'insufficient_permissions';
|
|
40415
40457
|
})[];
|
|
40416
40458
|
/** Date and time at which the device object was created. */
|
|
40417
40459
|
created_at: string;
|
|
@@ -49139,6 +49181,13 @@ export type Routes = {
|
|
|
49139
49181
|
active_access_code_count: number;
|
|
49140
49182
|
/** Maximum number of active access codes supported by the device. */
|
|
49141
49183
|
max_active_access_code_count: number;
|
|
49184
|
+
} | {
|
|
49185
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
49186
|
+
message: string;
|
|
49187
|
+
/** Date and time at which Seam created the warning. */
|
|
49188
|
+
created_at: string;
|
|
49189
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
49190
|
+
warning_code: 'insufficient_permissions';
|
|
49142
49191
|
})[];
|
|
49143
49192
|
/** Date and time at which the device object was created. */
|
|
49144
49193
|
created_at: string;
|
|
@@ -50486,6 +50535,13 @@ export type Routes = {
|
|
|
50486
50535
|
active_access_code_count: number;
|
|
50487
50536
|
/** Maximum number of active access codes supported by the device. */
|
|
50488
50537
|
max_active_access_code_count: number;
|
|
50538
|
+
} | {
|
|
50539
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
50540
|
+
message: string;
|
|
50541
|
+
/** Date and time at which Seam created the warning. */
|
|
50542
|
+
created_at: string;
|
|
50543
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
50544
|
+
warning_code: 'insufficient_permissions';
|
|
50489
50545
|
})[];
|
|
50490
50546
|
/** Date and time at which the device object was created. */
|
|
50491
50547
|
created_at: string;
|
|
@@ -51883,6 +51939,13 @@ export type Routes = {
|
|
|
51883
51939
|
active_access_code_count: number;
|
|
51884
51940
|
/** Maximum number of active access codes supported by the device. */
|
|
51885
51941
|
max_active_access_code_count: number;
|
|
51942
|
+
} | {
|
|
51943
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
51944
|
+
message: string;
|
|
51945
|
+
/** Date and time at which Seam created the warning. */
|
|
51946
|
+
created_at: string;
|
|
51947
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
51948
|
+
warning_code: 'insufficient_permissions';
|
|
51886
51949
|
})[];
|
|
51887
51950
|
/** Date and time at which the device object was created. */
|
|
51888
51951
|
created_at: string;
|
|
@@ -53229,6 +53292,13 @@ export type Routes = {
|
|
|
53229
53292
|
active_access_code_count: number;
|
|
53230
53293
|
/** Maximum number of active access codes supported by the device. */
|
|
53231
53294
|
max_active_access_code_count: number;
|
|
53295
|
+
} | {
|
|
53296
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
53297
|
+
message: string;
|
|
53298
|
+
/** Date and time at which Seam created the warning. */
|
|
53299
|
+
created_at: string;
|
|
53300
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
53301
|
+
warning_code: 'insufficient_permissions';
|
|
53232
53302
|
})[];
|
|
53233
53303
|
/** Date and time at which the device object was created. */
|
|
53234
53304
|
created_at: string;
|
|
@@ -60688,6 +60758,13 @@ export type Routes = {
|
|
|
60688
60758
|
active_access_code_count: number;
|
|
60689
60759
|
/** Maximum number of active access codes supported by the device. */
|
|
60690
60760
|
max_active_access_code_count: number;
|
|
60761
|
+
} | {
|
|
60762
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
60763
|
+
message: string;
|
|
60764
|
+
/** Date and time at which Seam created the warning. */
|
|
60765
|
+
created_at: string;
|
|
60766
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
60767
|
+
warning_code: 'insufficient_permissions';
|
|
60691
60768
|
})[];
|
|
60692
60769
|
/** Date and time at which the device object was created. */
|
|
60693
60770
|
created_at: string;
|
|
@@ -62034,6 +62111,13 @@ export type Routes = {
|
|
|
62034
62111
|
active_access_code_count: number;
|
|
62035
62112
|
/** Maximum number of active access codes supported by the device. */
|
|
62036
62113
|
max_active_access_code_count: number;
|
|
62114
|
+
} | {
|
|
62115
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
62116
|
+
message: string;
|
|
62117
|
+
/** Date and time at which Seam created the warning. */
|
|
62118
|
+
created_at: string;
|
|
62119
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
62120
|
+
warning_code: 'insufficient_permissions';
|
|
62037
62121
|
})[];
|
|
62038
62122
|
/** Date and time at which the device object was created. */
|
|
62039
62123
|
created_at: string;
|
|
@@ -76306,6 +76390,13 @@ export type Routes = {
|
|
|
76306
76390
|
active_access_code_count: number;
|
|
76307
76391
|
/** Maximum number of active access codes supported by the device. */
|
|
76308
76392
|
max_active_access_code_count: number;
|
|
76393
|
+
} | {
|
|
76394
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
76395
|
+
message: string;
|
|
76396
|
+
/** Date and time at which Seam created the warning. */
|
|
76397
|
+
created_at: string;
|
|
76398
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
76399
|
+
warning_code: 'insufficient_permissions';
|
|
76309
76400
|
})[];
|
|
76310
76401
|
/** Date and time at which the device object was created. */
|
|
76311
76402
|
created_at: string;
|
|
@@ -83095,6 +83186,13 @@ export type Routes = {
|
|
|
83095
83186
|
active_access_code_count: number;
|
|
83096
83187
|
/** Maximum number of active access codes supported by the device. */
|
|
83097
83188
|
max_active_access_code_count: number;
|
|
83189
|
+
} | {
|
|
83190
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
83191
|
+
message: string;
|
|
83192
|
+
/** Date and time at which Seam created the warning. */
|
|
83193
|
+
created_at: string;
|
|
83194
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
83195
|
+
warning_code: 'insufficient_permissions';
|
|
83098
83196
|
})[];
|
|
83099
83197
|
/** Date and time at which the device object was created. */
|
|
83100
83198
|
created_at: string;
|
|
@@ -87536,6 +87634,13 @@ export type Routes = {
|
|
|
87536
87634
|
active_access_code_count: number;
|
|
87537
87635
|
/** Maximum number of active access codes supported by the device. */
|
|
87538
87636
|
max_active_access_code_count: number;
|
|
87637
|
+
} | {
|
|
87638
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
87639
|
+
message: string;
|
|
87640
|
+
/** Date and time at which Seam created the warning. */
|
|
87641
|
+
created_at: string;
|
|
87642
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
87643
|
+
warning_code: 'insufficient_permissions';
|
|
87539
87644
|
})[];
|
|
87540
87645
|
/** Date and time at which the device object was created. */
|
|
87541
87646
|
created_at: string;
|
|
@@ -88882,6 +88987,13 @@ export type Routes = {
|
|
|
88882
88987
|
active_access_code_count: number;
|
|
88883
88988
|
/** Maximum number of active access codes supported by the device. */
|
|
88884
88989
|
max_active_access_code_count: number;
|
|
88990
|
+
} | {
|
|
88991
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
88992
|
+
message: string;
|
|
88993
|
+
/** Date and time at which Seam created the warning. */
|
|
88994
|
+
created_at: string;
|
|
88995
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
88996
|
+
warning_code: 'insufficient_permissions';
|
|
88885
88997
|
})[];
|
|
88886
88998
|
/** Date and time at which the device object was created. */
|
|
88887
88999
|
created_at: string;
|
|
@@ -97238,6 +97350,13 @@ export type Routes = {
|
|
|
97238
97350
|
active_access_code_count: number;
|
|
97239
97351
|
/** Maximum number of active access codes supported by the device. */
|
|
97240
97352
|
max_active_access_code_count: number;
|
|
97353
|
+
} | {
|
|
97354
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
97355
|
+
message: string;
|
|
97356
|
+
/** Date and time at which Seam created the warning. */
|
|
97357
|
+
created_at: string;
|
|
97358
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
97359
|
+
warning_code: 'insufficient_permissions';
|
|
97241
97360
|
})[];
|
|
97242
97361
|
/** Date and time at which the device object was created. */
|
|
97243
97362
|
created_at: string;
|
|
@@ -98586,6 +98705,13 @@ export type Routes = {
|
|
|
98586
98705
|
active_access_code_count: number;
|
|
98587
98706
|
/** Maximum number of active access codes supported by the device. */
|
|
98588
98707
|
max_active_access_code_count: number;
|
|
98708
|
+
} | {
|
|
98709
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
98710
|
+
message: string;
|
|
98711
|
+
/** Date and time at which Seam created the warning. */
|
|
98712
|
+
created_at: string;
|
|
98713
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
98714
|
+
warning_code: 'insufficient_permissions';
|
|
98589
98715
|
})[];
|
|
98590
98716
|
/** Date and time at which the device object was created. */
|
|
98591
98717
|
created_at: string;
|
|
@@ -101130,6 +101256,13 @@ export type Routes = {
|
|
|
101130
101256
|
active_access_code_count: number;
|
|
101131
101257
|
/** Maximum number of active access codes supported by the device. */
|
|
101132
101258
|
max_active_access_code_count: number;
|
|
101259
|
+
} | {
|
|
101260
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
101261
|
+
message: string;
|
|
101262
|
+
/** Date and time at which Seam created the warning. */
|
|
101263
|
+
created_at: string;
|
|
101264
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
101265
|
+
warning_code: 'insufficient_permissions';
|
|
101133
101266
|
})[];
|
|
101134
101267
|
/** Date and time at which the device object was created. */
|
|
101135
101268
|
created_at: string;
|
|
@@ -104203,6 +104336,13 @@ export type Routes = {
|
|
|
104203
104336
|
active_access_code_count: number;
|
|
104204
104337
|
/** Maximum number of active access codes supported by the device. */
|
|
104205
104338
|
max_active_access_code_count: number;
|
|
104339
|
+
} | {
|
|
104340
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
104341
|
+
message: string;
|
|
104342
|
+
/** Date and time at which Seam created the warning. */
|
|
104343
|
+
created_at: string;
|
|
104344
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
104345
|
+
warning_code: 'insufficient_permissions';
|
|
104206
104346
|
})[];
|
|
104207
104347
|
/** Date and time at which the device object was created. */
|
|
104208
104348
|
created_at: string;
|
|
@@ -108111,7 +108251,7 @@ export type Routes = {
|
|
|
108111
108251
|
/** Date and time at which Seam created the error. */
|
|
108112
108252
|
created_at?: string | undefined;
|
|
108113
108253
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
108114
|
-
error_code: '
|
|
108254
|
+
error_code: 'insufficient_permissions';
|
|
108115
108255
|
} | {
|
|
108116
108256
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
108117
108257
|
message: string;
|
|
@@ -108661,7 +108801,7 @@ export type Routes = {
|
|
|
108661
108801
|
/** Date and time at which Seam created the error. */
|
|
108662
108802
|
created_at?: string | undefined;
|
|
108663
108803
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
108664
|
-
error_code: '
|
|
108804
|
+
error_code: 'insufficient_permissions';
|
|
108665
108805
|
} | {
|
|
108666
108806
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
108667
108807
|
message: string;
|
package/package.json
CHANGED
|
@@ -187,19 +187,14 @@ const kwikset_unable_to_confirm_deletion = common_access_code_error
|
|
|
187
187
|
`,
|
|
188
188
|
)
|
|
189
189
|
|
|
190
|
-
const
|
|
190
|
+
const insufficient_permissions = common_access_code_error
|
|
191
191
|
.extend({
|
|
192
192
|
error_code: z
|
|
193
|
-
.literal('
|
|
193
|
+
.literal('insufficient_permissions')
|
|
194
194
|
.describe(error_code_description),
|
|
195
195
|
})
|
|
196
196
|
.describe(
|
|
197
|
-
|
|
198
|
-
---
|
|
199
|
-
deprecated: Use \`provider_issue\` instead.
|
|
200
|
-
---
|
|
201
|
-
Admin role required—insufficient permissions to manage PINs on this Kwikset device. Please have a Home Admin update your role in the Kwikset app, or ask them to set the PIN.
|
|
202
|
-
`,
|
|
197
|
+
'Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.',
|
|
203
198
|
)
|
|
204
199
|
|
|
205
200
|
const august_lock_invalid_code_length = common_access_code_error
|
|
@@ -365,7 +360,7 @@ const access_code_error = z
|
|
|
365
360
|
wyze_duplicate_code_name,
|
|
366
361
|
wyze_potential_duplicate_code,
|
|
367
362
|
dormakaba_oracode_invalid_time_range,
|
|
368
|
-
|
|
363
|
+
insufficient_permissions,
|
|
369
364
|
keynest_unsupported_third_party_locker,
|
|
370
365
|
replaced_by_newer_access_code,
|
|
371
366
|
])
|
|
@@ -401,9 +396,7 @@ const _access_code_error_map = z.object({
|
|
|
401
396
|
kwikset_unable_to_confirm_deletion: kwikset_unable_to_confirm_deletion
|
|
402
397
|
.optional()
|
|
403
398
|
.nullable(),
|
|
404
|
-
|
|
405
|
-
.optional()
|
|
406
|
-
.nullable(),
|
|
399
|
+
insufficient_permissions: insufficient_permissions.optional().nullable(),
|
|
407
400
|
code_modified_external_to_seam_error: code_modified_external_to_seam_error
|
|
408
401
|
.optional()
|
|
409
402
|
.nullable(),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z } from 'zod'
|
|
1
|
+
import { z, type ZodTypeAny } from 'zod'
|
|
2
2
|
|
|
3
3
|
import { access_code, unmanaged_access_code } from './access-codes/index.js'
|
|
4
4
|
import { access_grant } from './access-grants/access-grant.js'
|
|
@@ -32,7 +32,43 @@ import {
|
|
|
32
32
|
import { user_identity } from './user-identities/index.js'
|
|
33
33
|
import { workspace } from './workspaces/index.js'
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
type BatchKey =
|
|
36
|
+
| 'user_identities'
|
|
37
|
+
| 'workspaces'
|
|
38
|
+
| 'spaces'
|
|
39
|
+
| 'devices'
|
|
40
|
+
| 'connected_accounts'
|
|
41
|
+
| 'acs_entrances'
|
|
42
|
+
| 'acs_systems'
|
|
43
|
+
| 'acs_users'
|
|
44
|
+
| 'acs_access_groups'
|
|
45
|
+
| 'acs_encoders'
|
|
46
|
+
| 'acs_credentials'
|
|
47
|
+
| 'unmanaged_acs_credentials'
|
|
48
|
+
| 'action_attempts'
|
|
49
|
+
| 'client_sessions'
|
|
50
|
+
| 'unmanaged_acs_users'
|
|
51
|
+
| 'unmanaged_acs_access_groups'
|
|
52
|
+
| 'unmanaged_devices'
|
|
53
|
+
| 'connect_webviews'
|
|
54
|
+
| 'access_methods'
|
|
55
|
+
| 'access_grants'
|
|
56
|
+
| 'events'
|
|
57
|
+
| 'instant_keys'
|
|
58
|
+
| 'access_codes'
|
|
59
|
+
| 'unmanaged_access_codes'
|
|
60
|
+
| 'thermostat_daily_programs'
|
|
61
|
+
| 'thermostat_schedules'
|
|
62
|
+
| 'noise_thresholds'
|
|
63
|
+
| 'customization_profiles'
|
|
64
|
+
|
|
65
|
+
// Explicit annotation prevents tsgo TS7056 — the device/access-code
|
|
66
|
+
// discriminated unions push the inferred literal past the serialization cap.
|
|
67
|
+
type BatchShape = z.ZodObject<
|
|
68
|
+
Record<BatchKey, z.ZodOptional<z.ZodArray<ZodTypeAny>>>
|
|
69
|
+
>
|
|
70
|
+
|
|
71
|
+
export const batch: BatchShape = z.object({
|
|
36
72
|
user_identities: user_identity.array().optional(),
|
|
37
73
|
workspaces: workspace.array().optional(),
|
|
38
74
|
spaces: space.array().optional(),
|
|
@@ -524,6 +524,17 @@ const max_access_codes_reached = common_device_warning.extend({
|
|
|
524
524
|
Indicates that the device has reached its maximum number of active access codes. Delete existing codes before creating new ones.
|
|
525
525
|
`)
|
|
526
526
|
|
|
527
|
+
const insufficient_permissions = common_device_warning.extend({
|
|
528
|
+
warning_code: z
|
|
529
|
+
.literal('insufficient_permissions')
|
|
530
|
+
.describe(warning_code_description),
|
|
531
|
+
}).describe(`
|
|
532
|
+
---
|
|
533
|
+
variant_group_key: locks
|
|
534
|
+
---
|
|
535
|
+
Indicates that the connected Kwikset account has member-level access to this lock's home. Admin or owner access is required to manage access codes and control the lock remotely.
|
|
536
|
+
`)
|
|
537
|
+
|
|
527
538
|
const device_warning = z.discriminatedUnion('warning_code', [
|
|
528
539
|
partial_backup_access_code_pool,
|
|
529
540
|
many_active_backup_codes,
|
|
@@ -549,6 +560,7 @@ const device_warning = z.discriminatedUnion('warning_code', [
|
|
|
549
560
|
accessory_keypad_setup_required,
|
|
550
561
|
unreliable_online_status,
|
|
551
562
|
max_access_codes_reached,
|
|
563
|
+
insufficient_permissions,
|
|
552
564
|
])
|
|
553
565
|
|
|
554
566
|
export type DeviceWarning = z.infer<typeof device_warning>
|
|
@@ -606,6 +618,7 @@ export const device_warning_map = z.object({
|
|
|
606
618
|
.nullable(),
|
|
607
619
|
unreliable_online_status: unreliable_online_status.optional().nullable(),
|
|
608
620
|
max_access_codes_reached: max_access_codes_reached.optional().nullable(),
|
|
621
|
+
insufficient_permissions: insufficient_permissions.optional().nullable(),
|
|
609
622
|
})
|
|
610
623
|
|
|
611
624
|
export type DeviceWarningMap = z.infer<typeof device_warning_map>
|
|
@@ -785,9 +785,8 @@ const openapi: OpenAPISpec = {
|
|
|
785
785
|
'x-deprecated': 'Use `provider_issue` instead.',
|
|
786
786
|
},
|
|
787
787
|
{
|
|
788
|
-
deprecated: true,
|
|
789
788
|
description:
|
|
790
|
-
'Admin role required—insufficient permissions to manage PINs on this
|
|
789
|
+
'Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.',
|
|
791
790
|
properties: {
|
|
792
791
|
created_at: {
|
|
793
792
|
description:
|
|
@@ -798,7 +797,7 @@ const openapi: OpenAPISpec = {
|
|
|
798
797
|
error_code: {
|
|
799
798
|
description:
|
|
800
799
|
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
801
|
-
enum: ['
|
|
800
|
+
enum: ['insufficient_permissions'],
|
|
802
801
|
type: 'string',
|
|
803
802
|
},
|
|
804
803
|
is_access_code_error: {
|
|
@@ -815,7 +814,6 @@ const openapi: OpenAPISpec = {
|
|
|
815
814
|
},
|
|
816
815
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
817
816
|
type: 'object',
|
|
818
|
-
'x-deprecated': 'Use `provider_issue` instead.',
|
|
819
817
|
},
|
|
820
818
|
{
|
|
821
819
|
deprecated: true,
|
|
@@ -16654,6 +16652,32 @@ const openapi: OpenAPISpec = {
|
|
|
16654
16652
|
type: 'object',
|
|
16655
16653
|
'x-variant-group-key': 'access_codes',
|
|
16656
16654
|
},
|
|
16655
|
+
{
|
|
16656
|
+
description:
|
|
16657
|
+
"Indicates that the connected Kwikset account has member-level access to this lock's home. Admin or owner access is required to manage access codes and control the lock remotely.",
|
|
16658
|
+
properties: {
|
|
16659
|
+
created_at: {
|
|
16660
|
+
description:
|
|
16661
|
+
'Date and time at which Seam created the warning.',
|
|
16662
|
+
format: 'date-time',
|
|
16663
|
+
type: 'string',
|
|
16664
|
+
},
|
|
16665
|
+
message: {
|
|
16666
|
+
description:
|
|
16667
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
16668
|
+
type: 'string',
|
|
16669
|
+
},
|
|
16670
|
+
warning_code: {
|
|
16671
|
+
description:
|
|
16672
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
16673
|
+
enum: ['insufficient_permissions'],
|
|
16674
|
+
type: 'string',
|
|
16675
|
+
},
|
|
16676
|
+
},
|
|
16677
|
+
required: ['message', 'created_at', 'warning_code'],
|
|
16678
|
+
type: 'object',
|
|
16679
|
+
'x-variant-group-key': 'locks',
|
|
16680
|
+
},
|
|
16657
16681
|
],
|
|
16658
16682
|
},
|
|
16659
16683
|
type: 'array',
|
|
@@ -28331,9 +28355,8 @@ const openapi: OpenAPISpec = {
|
|
|
28331
28355
|
'x-deprecated': 'Use `provider_issue` instead.',
|
|
28332
28356
|
},
|
|
28333
28357
|
{
|
|
28334
|
-
deprecated: true,
|
|
28335
28358
|
description:
|
|
28336
|
-
'Admin role required—insufficient permissions to manage PINs on this
|
|
28359
|
+
'Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN.',
|
|
28337
28360
|
properties: {
|
|
28338
28361
|
created_at: {
|
|
28339
28362
|
description:
|
|
@@ -28344,7 +28367,7 @@ const openapi: OpenAPISpec = {
|
|
|
28344
28367
|
error_code: {
|
|
28345
28368
|
description:
|
|
28346
28369
|
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
28347
|
-
enum: ['
|
|
28370
|
+
enum: ['insufficient_permissions'],
|
|
28348
28371
|
type: 'string',
|
|
28349
28372
|
},
|
|
28350
28373
|
is_access_code_error: {
|
|
@@ -28361,7 +28384,6 @@ const openapi: OpenAPISpec = {
|
|
|
28361
28384
|
},
|
|
28362
28385
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
28363
28386
|
type: 'object',
|
|
28364
|
-
'x-deprecated': 'Use `provider_issue` instead.',
|
|
28365
28387
|
},
|
|
28366
28388
|
{
|
|
28367
28389
|
deprecated: true,
|
|
@@ -32918,6 +32940,32 @@ const openapi: OpenAPISpec = {
|
|
|
32918
32940
|
type: 'object',
|
|
32919
32941
|
'x-variant-group-key': 'access_codes',
|
|
32920
32942
|
},
|
|
32943
|
+
{
|
|
32944
|
+
description:
|
|
32945
|
+
"Indicates that the connected Kwikset account has member-level access to this lock's home. Admin or owner access is required to manage access codes and control the lock remotely.",
|
|
32946
|
+
properties: {
|
|
32947
|
+
created_at: {
|
|
32948
|
+
description:
|
|
32949
|
+
'Date and time at which Seam created the warning.',
|
|
32950
|
+
format: 'date-time',
|
|
32951
|
+
type: 'string',
|
|
32952
|
+
},
|
|
32953
|
+
message: {
|
|
32954
|
+
description:
|
|
32955
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
32956
|
+
type: 'string',
|
|
32957
|
+
},
|
|
32958
|
+
warning_code: {
|
|
32959
|
+
description:
|
|
32960
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
32961
|
+
enum: ['insufficient_permissions'],
|
|
32962
|
+
type: 'string',
|
|
32963
|
+
},
|
|
32964
|
+
},
|
|
32965
|
+
required: ['message', 'created_at', 'warning_code'],
|
|
32966
|
+
type: 'object',
|
|
32967
|
+
'x-variant-group-key': 'locks',
|
|
32968
|
+
},
|
|
32921
32969
|
],
|
|
32922
32970
|
},
|
|
32923
32971
|
type: 'array',
|