@seamapi/types 1.989.0 → 1.990.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/lib/seam/connect/models/access-codes/managed-access-code.d.ts +39 -8
- package/lib/seam/connect/models/access-codes/managed-access-code.js +9 -2
- 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 +31 -0
- package/lib/seam/connect/models/acs/acs-system.d.ts +45 -0
- package/lib/seam/connect/models/acs/acs-system.js +12 -0
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +113 -10
- package/lib/seam/connect/models/devices/device.js +23 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +31 -0
- package/lib/seam/connect/openapi.js +98 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +269 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +13 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +13 -0
- package/src/lib/seam/connect/models/devices/device.ts +26 -0
- package/src/lib/seam/connect/openapi.ts +114 -0
- package/src/lib/seam/connect/route-types.ts +296 -0
|
@@ -12782,6 +12782,17 @@ export type Routes = {
|
|
|
12782
12782
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
12783
12783
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
12784
12784
|
is_connected_account_error: true;
|
|
12785
|
+
} | {
|
|
12786
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
12787
|
+
message: string;
|
|
12788
|
+
/** Indicates that the error is not a device error. */
|
|
12789
|
+
is_device_error: false;
|
|
12790
|
+
/** Date and time at which Seam created the error. */
|
|
12791
|
+
created_at: string;
|
|
12792
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
12793
|
+
error_code: 'insufficient_permissions';
|
|
12794
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
12795
|
+
is_connected_account_error: true;
|
|
12785
12796
|
} | {
|
|
12786
12797
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
12787
12798
|
message: string;
|
|
@@ -13623,6 +13634,13 @@ export type Routes = {
|
|
|
13623
13634
|
message: string;
|
|
13624
13635
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
13625
13636
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
13637
|
+
} | {
|
|
13638
|
+
/** Date and time at which Seam created the error. */
|
|
13639
|
+
created_at: string;
|
|
13640
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
13641
|
+
message: string;
|
|
13642
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
13643
|
+
error_code: 'insufficient_permissions';
|
|
13626
13644
|
} | {
|
|
13627
13645
|
/** Date and time at which Seam created the error. */
|
|
13628
13646
|
created_at: string;
|
|
@@ -19689,6 +19707,17 @@ export type Routes = {
|
|
|
19689
19707
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
19690
19708
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
19691
19709
|
is_connected_account_error: true;
|
|
19710
|
+
} | {
|
|
19711
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
19712
|
+
message: string;
|
|
19713
|
+
/** Indicates that the error is not a device error. */
|
|
19714
|
+
is_device_error: false;
|
|
19715
|
+
/** Date and time at which Seam created the error. */
|
|
19716
|
+
created_at: string;
|
|
19717
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
19718
|
+
error_code: 'insufficient_permissions';
|
|
19719
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
19720
|
+
is_connected_account_error: true;
|
|
19692
19721
|
} | {
|
|
19693
19722
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
19694
19723
|
message: string;
|
|
@@ -33983,6 +34012,13 @@ export type Routes = {
|
|
|
33983
34012
|
message: string;
|
|
33984
34013
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
33985
34014
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
34015
|
+
} | {
|
|
34016
|
+
/** Date and time at which Seam created the error. */
|
|
34017
|
+
created_at: string;
|
|
34018
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
34019
|
+
message: string;
|
|
34020
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
34021
|
+
error_code: 'insufficient_permissions';
|
|
33986
34022
|
} | {
|
|
33987
34023
|
/** Date and time at which Seam created the error. */
|
|
33988
34024
|
created_at: string;
|
|
@@ -34138,6 +34174,13 @@ export type Routes = {
|
|
|
34138
34174
|
message: string;
|
|
34139
34175
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
34140
34176
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
34177
|
+
} | {
|
|
34178
|
+
/** Date and time at which Seam created the error. */
|
|
34179
|
+
created_at: string;
|
|
34180
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
34181
|
+
message: string;
|
|
34182
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
34183
|
+
error_code: 'insufficient_permissions';
|
|
34141
34184
|
} | {
|
|
34142
34185
|
/** Date and time at which Seam created the error. */
|
|
34143
34186
|
created_at: string;
|
|
@@ -34289,6 +34332,13 @@ export type Routes = {
|
|
|
34289
34332
|
message: string;
|
|
34290
34333
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
34291
34334
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
34335
|
+
} | {
|
|
34336
|
+
/** Date and time at which Seam created the error. */
|
|
34337
|
+
created_at: string;
|
|
34338
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
34339
|
+
message: string;
|
|
34340
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
34341
|
+
error_code: 'insufficient_permissions';
|
|
34292
34342
|
} | {
|
|
34293
34343
|
/** Date and time at which Seam created the error. */
|
|
34294
34344
|
created_at: string;
|
|
@@ -42986,6 +43036,17 @@ export type Routes = {
|
|
|
42986
43036
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
42987
43037
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
42988
43038
|
is_connected_account_error: true;
|
|
43039
|
+
} | {
|
|
43040
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
43041
|
+
message: string;
|
|
43042
|
+
/** Indicates that the error is not a device error. */
|
|
43043
|
+
is_device_error: false;
|
|
43044
|
+
/** Date and time at which Seam created the error. */
|
|
43045
|
+
created_at: string;
|
|
43046
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
43047
|
+
error_code: 'insufficient_permissions';
|
|
43048
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
43049
|
+
is_connected_account_error: true;
|
|
42989
43050
|
} | {
|
|
42990
43051
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
42991
43052
|
message: string;
|
|
@@ -44512,6 +44573,17 @@ export type Routes = {
|
|
|
44512
44573
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
44513
44574
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
44514
44575
|
is_connected_account_error: true;
|
|
44576
|
+
} | {
|
|
44577
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
44578
|
+
message: string;
|
|
44579
|
+
/** Indicates that the error is not a device error. */
|
|
44580
|
+
is_device_error: false;
|
|
44581
|
+
/** Date and time at which Seam created the error. */
|
|
44582
|
+
created_at: string;
|
|
44583
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
44584
|
+
error_code: 'insufficient_permissions';
|
|
44585
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
44586
|
+
is_connected_account_error: true;
|
|
44515
44587
|
} | {
|
|
44516
44588
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
44517
44589
|
message: string;
|
|
@@ -45137,6 +45209,17 @@ export type Routes = {
|
|
|
45137
45209
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
45138
45210
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
45139
45211
|
is_connected_account_error: true;
|
|
45212
|
+
} | {
|
|
45213
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
45214
|
+
message: string;
|
|
45215
|
+
/** Indicates that the error is not a device error. */
|
|
45216
|
+
is_device_error: false;
|
|
45217
|
+
/** Date and time at which Seam created the error. */
|
|
45218
|
+
created_at: string;
|
|
45219
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
45220
|
+
error_code: 'insufficient_permissions';
|
|
45221
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
45222
|
+
is_connected_account_error: true;
|
|
45140
45223
|
} | {
|
|
45141
45224
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
45142
45225
|
message: string;
|
|
@@ -45664,6 +45747,17 @@ export type Routes = {
|
|
|
45664
45747
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
45665
45748
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
45666
45749
|
is_connected_account_error: true;
|
|
45750
|
+
} | {
|
|
45751
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
45752
|
+
message: string;
|
|
45753
|
+
/** Indicates that the error is not a device error. */
|
|
45754
|
+
is_device_error: false;
|
|
45755
|
+
/** Date and time at which Seam created the error. */
|
|
45756
|
+
created_at: string;
|
|
45757
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
45758
|
+
error_code: 'insufficient_permissions';
|
|
45759
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
45760
|
+
is_connected_account_error: true;
|
|
45667
45761
|
} | {
|
|
45668
45762
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
45669
45763
|
message: string;
|
|
@@ -55612,6 +55706,17 @@ export type Routes = {
|
|
|
55612
55706
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
55613
55707
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
55614
55708
|
is_connected_account_error: true;
|
|
55709
|
+
} | {
|
|
55710
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
55711
|
+
message: string;
|
|
55712
|
+
/** Indicates that the error is not a device error. */
|
|
55713
|
+
is_device_error: false;
|
|
55714
|
+
/** Date and time at which Seam created the error. */
|
|
55715
|
+
created_at: string;
|
|
55716
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
55717
|
+
error_code: 'insufficient_permissions';
|
|
55718
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
55719
|
+
is_connected_account_error: true;
|
|
55615
55720
|
} | {
|
|
55616
55721
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
55617
55722
|
message: string;
|
|
@@ -57088,6 +57193,17 @@ export type Routes = {
|
|
|
57088
57193
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
57089
57194
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
57090
57195
|
is_connected_account_error: true;
|
|
57196
|
+
} | {
|
|
57197
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
57198
|
+
message: string;
|
|
57199
|
+
/** Indicates that the error is not a device error. */
|
|
57200
|
+
is_device_error: false;
|
|
57201
|
+
/** Date and time at which Seam created the error. */
|
|
57202
|
+
created_at: string;
|
|
57203
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
57204
|
+
error_code: 'insufficient_permissions';
|
|
57205
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
57206
|
+
is_connected_account_error: true;
|
|
57091
57207
|
} | {
|
|
57092
57208
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
57093
57209
|
message: string;
|
|
@@ -58614,6 +58730,17 @@ export type Routes = {
|
|
|
58614
58730
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
58615
58731
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
58616
58732
|
is_connected_account_error: true;
|
|
58733
|
+
} | {
|
|
58734
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
58735
|
+
message: string;
|
|
58736
|
+
/** Indicates that the error is not a device error. */
|
|
58737
|
+
is_device_error: false;
|
|
58738
|
+
/** Date and time at which Seam created the error. */
|
|
58739
|
+
created_at: string;
|
|
58740
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
58741
|
+
error_code: 'insufficient_permissions';
|
|
58742
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
58743
|
+
is_connected_account_error: true;
|
|
58617
58744
|
} | {
|
|
58618
58745
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
58619
58746
|
message: string;
|
|
@@ -60089,6 +60216,17 @@ export type Routes = {
|
|
|
60089
60216
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
60090
60217
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
60091
60218
|
is_connected_account_error: true;
|
|
60219
|
+
} | {
|
|
60220
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
60221
|
+
message: string;
|
|
60222
|
+
/** Indicates that the error is not a device error. */
|
|
60223
|
+
is_device_error: false;
|
|
60224
|
+
/** Date and time at which Seam created the error. */
|
|
60225
|
+
created_at: string;
|
|
60226
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
60227
|
+
error_code: 'insufficient_permissions';
|
|
60228
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
60229
|
+
is_connected_account_error: true;
|
|
60092
60230
|
} | {
|
|
60093
60231
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
60094
60232
|
message: string;
|
|
@@ -68577,6 +68715,17 @@ export type Routes = {
|
|
|
68577
68715
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
68578
68716
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
68579
68717
|
is_connected_account_error: true;
|
|
68718
|
+
} | {
|
|
68719
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
68720
|
+
message: string;
|
|
68721
|
+
/** Indicates that the error is not a device error. */
|
|
68722
|
+
is_device_error: false;
|
|
68723
|
+
/** Date and time at which Seam created the error. */
|
|
68724
|
+
created_at: string;
|
|
68725
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
68726
|
+
error_code: 'insufficient_permissions';
|
|
68727
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
68728
|
+
is_connected_account_error: true;
|
|
68580
68729
|
} | {
|
|
68581
68730
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
68582
68731
|
message: string;
|
|
@@ -70052,6 +70201,17 @@ export type Routes = {
|
|
|
70052
70201
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
70053
70202
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
70054
70203
|
is_connected_account_error: true;
|
|
70204
|
+
} | {
|
|
70205
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
70206
|
+
message: string;
|
|
70207
|
+
/** Indicates that the error is not a device error. */
|
|
70208
|
+
is_device_error: false;
|
|
70209
|
+
/** Date and time at which Seam created the error. */
|
|
70210
|
+
created_at: string;
|
|
70211
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
70212
|
+
error_code: 'insufficient_permissions';
|
|
70213
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
70214
|
+
is_connected_account_error: true;
|
|
70055
70215
|
} | {
|
|
70056
70216
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
70057
70217
|
message: string;
|
|
@@ -86779,6 +86939,17 @@ export type Routes = {
|
|
|
86779
86939
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
86780
86940
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
86781
86941
|
is_connected_account_error: true;
|
|
86942
|
+
} | {
|
|
86943
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
86944
|
+
message: string;
|
|
86945
|
+
/** Indicates that the error is not a device error. */
|
|
86946
|
+
is_device_error: false;
|
|
86947
|
+
/** Date and time at which Seam created the error. */
|
|
86948
|
+
created_at: string;
|
|
86949
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
86950
|
+
error_code: 'insufficient_permissions';
|
|
86951
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
86952
|
+
is_connected_account_error: true;
|
|
86782
86953
|
} | {
|
|
86783
86954
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
86784
86955
|
message: string;
|
|
@@ -87620,6 +87791,13 @@ export type Routes = {
|
|
|
87620
87791
|
message: string;
|
|
87621
87792
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
87622
87793
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
87794
|
+
} | {
|
|
87795
|
+
/** Date and time at which Seam created the error. */
|
|
87796
|
+
created_at: string;
|
|
87797
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
87798
|
+
message: string;
|
|
87799
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
87800
|
+
error_code: 'insufficient_permissions';
|
|
87623
87801
|
} | {
|
|
87624
87802
|
/** Date and time at which Seam created the error. */
|
|
87625
87803
|
created_at: string;
|
|
@@ -94480,6 +94658,17 @@ export type Routes = {
|
|
|
94480
94658
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
94481
94659
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
94482
94660
|
is_connected_account_error: true;
|
|
94661
|
+
} | {
|
|
94662
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
94663
|
+
message: string;
|
|
94664
|
+
/** Indicates that the error is not a device error. */
|
|
94665
|
+
is_device_error: false;
|
|
94666
|
+
/** Date and time at which Seam created the error. */
|
|
94667
|
+
created_at: string;
|
|
94668
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
94669
|
+
error_code: 'insufficient_permissions';
|
|
94670
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
94671
|
+
is_connected_account_error: true;
|
|
94483
94672
|
} | {
|
|
94484
94673
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
94485
94674
|
message: string;
|
|
@@ -99500,6 +99689,17 @@ export type Routes = {
|
|
|
99500
99689
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
99501
99690
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
99502
99691
|
is_connected_account_error: true;
|
|
99692
|
+
} | {
|
|
99693
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
99694
|
+
message: string;
|
|
99695
|
+
/** Indicates that the error is not a device error. */
|
|
99696
|
+
is_device_error: false;
|
|
99697
|
+
/** Date and time at which Seam created the error. */
|
|
99698
|
+
created_at: string;
|
|
99699
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
99700
|
+
error_code: 'insufficient_permissions';
|
|
99701
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
99702
|
+
is_connected_account_error: true;
|
|
99503
99703
|
} | {
|
|
99504
99704
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
99505
99705
|
message: string;
|
|
@@ -100975,6 +101175,17 @@ export type Routes = {
|
|
|
100975
101175
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
100976
101176
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
100977
101177
|
is_connected_account_error: true;
|
|
101178
|
+
} | {
|
|
101179
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
101180
|
+
message: string;
|
|
101181
|
+
/** Indicates that the error is not a device error. */
|
|
101182
|
+
is_device_error: false;
|
|
101183
|
+
/** Date and time at which Seam created the error. */
|
|
101184
|
+
created_at: string;
|
|
101185
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
101186
|
+
error_code: 'insufficient_permissions';
|
|
101187
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
101188
|
+
is_connected_account_error: true;
|
|
100978
101189
|
} | {
|
|
100979
101190
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
100980
101191
|
message: string;
|
|
@@ -110408,6 +110619,17 @@ export type Routes = {
|
|
|
110408
110619
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
110409
110620
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
110410
110621
|
is_connected_account_error: true;
|
|
110622
|
+
} | {
|
|
110623
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
110624
|
+
message: string;
|
|
110625
|
+
/** Indicates that the error is not a device error. */
|
|
110626
|
+
is_device_error: false;
|
|
110627
|
+
/** Date and time at which Seam created the error. */
|
|
110628
|
+
created_at: string;
|
|
110629
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
110630
|
+
error_code: 'insufficient_permissions';
|
|
110631
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
110632
|
+
is_connected_account_error: true;
|
|
110411
110633
|
} | {
|
|
110412
110634
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
110413
110635
|
message: string;
|
|
@@ -111885,6 +112107,17 @@ export type Routes = {
|
|
|
111885
112107
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
111886
112108
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
111887
112109
|
is_connected_account_error: true;
|
|
112110
|
+
} | {
|
|
112111
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
112112
|
+
message: string;
|
|
112113
|
+
/** Indicates that the error is not a device error. */
|
|
112114
|
+
is_device_error: false;
|
|
112115
|
+
/** Date and time at which Seam created the error. */
|
|
112116
|
+
created_at: string;
|
|
112117
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
112118
|
+
error_code: 'insufficient_permissions';
|
|
112119
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
112120
|
+
is_connected_account_error: true;
|
|
111888
112121
|
} | {
|
|
111889
112122
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
111890
112123
|
message: string;
|
|
@@ -112574,6 +112807,13 @@ export type Routes = {
|
|
|
112574
112807
|
message: string;
|
|
112575
112808
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
112576
112809
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
112810
|
+
} | {
|
|
112811
|
+
/** Date and time at which Seam created the error. */
|
|
112812
|
+
created_at: string;
|
|
112813
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
112814
|
+
message: string;
|
|
112815
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
112816
|
+
error_code: 'insufficient_permissions';
|
|
112577
112817
|
} | {
|
|
112578
112818
|
/** Date and time at which Seam created the error. */
|
|
112579
112819
|
created_at: string;
|
|
@@ -114653,6 +114893,17 @@ export type Routes = {
|
|
|
114653
114893
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
114654
114894
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
114655
114895
|
is_connected_account_error: true;
|
|
114896
|
+
} | {
|
|
114897
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
114898
|
+
message: string;
|
|
114899
|
+
/** Indicates that the error is not a device error. */
|
|
114900
|
+
is_device_error: false;
|
|
114901
|
+
/** Date and time at which Seam created the error. */
|
|
114902
|
+
created_at: string;
|
|
114903
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
114904
|
+
error_code: 'insufficient_permissions';
|
|
114905
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
114906
|
+
is_connected_account_error: true;
|
|
114656
114907
|
} | {
|
|
114657
114908
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
114658
114909
|
message: string;
|
|
@@ -115314,6 +115565,13 @@ export type Routes = {
|
|
|
115314
115565
|
message: string;
|
|
115315
115566
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
115316
115567
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
115568
|
+
} | {
|
|
115569
|
+
/** Date and time at which Seam created the error. */
|
|
115570
|
+
created_at: string;
|
|
115571
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
115572
|
+
message: string;
|
|
115573
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
115574
|
+
error_code: 'insufficient_permissions';
|
|
115317
115575
|
} | {
|
|
115318
115576
|
/** Date and time at which Seam created the error. */
|
|
115319
115577
|
created_at: string;
|
|
@@ -118051,6 +118309,17 @@ export type Routes = {
|
|
|
118051
118309
|
error_code: 'salto_ks_subscription_limit_exceeded';
|
|
118052
118310
|
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
118053
118311
|
is_connected_account_error: true;
|
|
118312
|
+
} | {
|
|
118313
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
118314
|
+
message: string;
|
|
118315
|
+
/** Indicates that the error is not a device error. */
|
|
118316
|
+
is_device_error: false;
|
|
118317
|
+
/** Date and time at which Seam created the error. */
|
|
118318
|
+
created_at: string;
|
|
118319
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
118320
|
+
error_code: 'insufficient_permissions';
|
|
118321
|
+
/** Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */
|
|
118322
|
+
is_connected_account_error: true;
|
|
118054
118323
|
} | {
|
|
118055
118324
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
118056
118325
|
message: string;
|
package/package.json
CHANGED
|
@@ -460,9 +460,21 @@ export const access_code = z.object({
|
|
|
460
460
|
.datetime()
|
|
461
461
|
.describe('Date and time at which the access code was created.'),
|
|
462
462
|
errors: z.array(
|
|
463
|
+
// Deduped on error_code, mirroring how device_and_connected_account_error_options
|
|
464
|
+
// already dedupes connected_account against device: a code defined for both an
|
|
465
|
+
// access code and a device/connected account would otherwise be a duplicate
|
|
466
|
+
// discriminator value and make zod throw at module load. The access-code
|
|
467
|
+
// variant wins, since this array hangs off an access code.
|
|
463
468
|
z.discriminatedUnion('error_code', [
|
|
464
469
|
...access_code_error.options,
|
|
465
|
-
...device_and_connected_account_error_options
|
|
470
|
+
...device_and_connected_account_error_options.filter(
|
|
471
|
+
(_device_or_connected_account_error) =>
|
|
472
|
+
!access_code_error.options.some(
|
|
473
|
+
(_access_code_error) =>
|
|
474
|
+
_access_code_error.shape.error_code.value ===
|
|
475
|
+
_device_or_connected_account_error.shape.error_code.value,
|
|
476
|
+
),
|
|
477
|
+
),
|
|
466
478
|
]),
|
|
467
479
|
).describe(`
|
|
468
480
|
---
|
|
@@ -150,12 +150,24 @@ const provider_service_unavailable = common_acs_system_error.extend({
|
|
|
150
150
|
Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.
|
|
151
151
|
`)
|
|
152
152
|
|
|
153
|
+
const insufficient_permissions = common_acs_system_error.extend({
|
|
154
|
+
error_code: z
|
|
155
|
+
.literal('insufficient_permissions')
|
|
156
|
+
.describe(error_code_description),
|
|
157
|
+
}).describe(`
|
|
158
|
+
---
|
|
159
|
+
resource_type: acs_system
|
|
160
|
+
---
|
|
161
|
+
Indicates that Seam's integration user does not have sufficient permissions on the provider's system backing this [access control system](https://docs.seam.co/low-level-apis/access-systems). Access cannot be managed until permissions are restored. See the error message for specifics, then either reauthorize the connected account in Seam or grant the integration user the required permissions in the provider's system.
|
|
162
|
+
`)
|
|
163
|
+
|
|
153
164
|
const acs_system_error = z
|
|
154
165
|
.discriminatedUnion('error_code', [
|
|
155
166
|
seam_bridge_disconnected,
|
|
156
167
|
bridge_disconnected,
|
|
157
168
|
visionline_instance_unreachable,
|
|
158
169
|
salto_ks_subscription_limit_exceeded,
|
|
170
|
+
insufficient_permissions,
|
|
159
171
|
acs_system_disconnected,
|
|
160
172
|
account_disconnected,
|
|
161
173
|
salto_ks_certification_expired,
|
|
@@ -174,6 +186,7 @@ const _acs_system_error_map = z.object({
|
|
|
174
186
|
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
|
|
175
187
|
.optional()
|
|
176
188
|
.nullable(),
|
|
189
|
+
insufficient_permissions: insufficient_permissions.optional().nullable(),
|
|
177
190
|
acs_system_disconnected: acs_system_disconnected.optional().nullable(),
|
|
178
191
|
account_disconnected: account_disconnected.optional().nullable(),
|
|
179
192
|
salto_ks_certification_expired: salto_ks_certification_expired
|
|
@@ -285,10 +285,33 @@ const subscription_required = common_device_error.extend({
|
|
|
285
285
|
Indicates that a subscription is required to connect.
|
|
286
286
|
`)
|
|
287
287
|
|
|
288
|
+
// Named with an `_error` suffix because a device *warning* of the same code
|
|
289
|
+
// already exists further down this file (Kwikset member-level access). Both are
|
|
290
|
+
// valid: they live in separate maps, and the wire value is identical.
|
|
291
|
+
const insufficient_permissions_error = common_device_error.extend({
|
|
292
|
+
error_code: z
|
|
293
|
+
.literal('insufficient_permissions')
|
|
294
|
+
.describe(error_code_description),
|
|
295
|
+
is_connected_account_error: z
|
|
296
|
+
.literal(true)
|
|
297
|
+
.describe(
|
|
298
|
+
'Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.',
|
|
299
|
+
),
|
|
300
|
+
is_device_error: z
|
|
301
|
+
.literal(false)
|
|
302
|
+
.describe('Indicates that the error is not a device error.'),
|
|
303
|
+
}).describe(`
|
|
304
|
+
---
|
|
305
|
+
resource_type: connected_account
|
|
306
|
+
---
|
|
307
|
+
Indicates that Seam's integration user does not have sufficient permissions on the provider's system to which this device belongs, so Seam cannot manage access codes or unlock the device. See the error message for specifics, then either reauthorize the connected account in Seam or grant the integration user the required permissions in the provider's system.
|
|
308
|
+
`)
|
|
309
|
+
|
|
288
310
|
export const device_error = z
|
|
289
311
|
.discriminatedUnion('error_code', [
|
|
290
312
|
account_disconnected,
|
|
291
313
|
salto_ks_subscription_limit_exceeded,
|
|
314
|
+
insufficient_permissions_error,
|
|
292
315
|
dormakaba_sites_disconnected,
|
|
293
316
|
device_offline,
|
|
294
317
|
device_removed,
|
|
@@ -317,6 +340,9 @@ export const device_error_map = z.object({
|
|
|
317
340
|
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
|
|
318
341
|
.optional()
|
|
319
342
|
.nullable(),
|
|
343
|
+
insufficient_permissions: insufficient_permissions_error
|
|
344
|
+
.optional()
|
|
345
|
+
.nullable(),
|
|
320
346
|
dormakaba_sites_disconnected: dormakaba_sites_disconnected
|
|
321
347
|
.optional()
|
|
322
348
|
.nullable(),
|