@seamapi/types 1.394.0 → 1.395.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 +120 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +298 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +142 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +20 -0
- 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 +52 -0
- package/lib/seam/connect/models/devices/capability-properties/access-code.js +1 -1
- package/lib/seam/connect/models/devices/capability-properties/access-code.js.map +1 -1
- package/lib/seam/connect/openapi.js +108 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +162 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +24 -0
- package/src/lib/seam/connect/models/devices/capability-properties/access-code.ts +1 -1
- package/src/lib/seam/connect/openapi.ts +124 -0
- package/src/lib/seam/connect/route-types.ts +180 -0
|
@@ -1233,6 +1233,15 @@ export interface Routes {
|
|
|
1233
1233
|
created_at?: string | undefined;
|
|
1234
1234
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1235
1235
|
error_code: 'duplicate_code_attempt_prevented';
|
|
1236
|
+
} | {
|
|
1237
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1238
|
+
message: string;
|
|
1239
|
+
/** Indicates that this is an access code error. */
|
|
1240
|
+
is_access_code_error: true;
|
|
1241
|
+
/** Date and time at which Seam created the error. */
|
|
1242
|
+
created_at?: string | undefined;
|
|
1243
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1244
|
+
error_code: 'no_space_for_access_code_on_device';
|
|
1236
1245
|
} | {
|
|
1237
1246
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1238
1247
|
message: string;
|
|
@@ -1260,6 +1269,15 @@ export interface Routes {
|
|
|
1260
1269
|
created_at?: string | undefined;
|
|
1261
1270
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1262
1271
|
error_code: 'igloohome_offline_access_code_no_variance_available';
|
|
1272
|
+
} | {
|
|
1273
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1274
|
+
message: string;
|
|
1275
|
+
/** Indicates that this is an access code error. */
|
|
1276
|
+
is_access_code_error: true;
|
|
1277
|
+
/** Date and time at which Seam created the error. */
|
|
1278
|
+
created_at?: string | undefined;
|
|
1279
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1280
|
+
error_code: 'schlage_lock_exceeds_maximum_number_of_access_codes';
|
|
1263
1281
|
} | {
|
|
1264
1282
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1265
1283
|
message: string;
|
|
@@ -1714,6 +1732,15 @@ export interface Routes {
|
|
|
1714
1732
|
created_at?: string | undefined;
|
|
1715
1733
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1716
1734
|
error_code: 'duplicate_code_attempt_prevented';
|
|
1735
|
+
} | {
|
|
1736
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1737
|
+
message: string;
|
|
1738
|
+
/** Indicates that this is an access code error. */
|
|
1739
|
+
is_access_code_error: true;
|
|
1740
|
+
/** Date and time at which Seam created the error. */
|
|
1741
|
+
created_at?: string | undefined;
|
|
1742
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1743
|
+
error_code: 'no_space_for_access_code_on_device';
|
|
1717
1744
|
} | {
|
|
1718
1745
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1719
1746
|
message: string;
|
|
@@ -1741,6 +1768,15 @@ export interface Routes {
|
|
|
1741
1768
|
created_at?: string | undefined;
|
|
1742
1769
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1743
1770
|
error_code: 'igloohome_offline_access_code_no_variance_available';
|
|
1771
|
+
} | {
|
|
1772
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1773
|
+
message: string;
|
|
1774
|
+
/** Indicates that this is an access code error. */
|
|
1775
|
+
is_access_code_error: true;
|
|
1776
|
+
/** Date and time at which Seam created the error. */
|
|
1777
|
+
created_at?: string | undefined;
|
|
1778
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
1779
|
+
error_code: 'schlage_lock_exceeds_maximum_number_of_access_codes';
|
|
1744
1780
|
} | {
|
|
1745
1781
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
1746
1782
|
message: string;
|
|
@@ -3314,6 +3350,15 @@ export interface Routes {
|
|
|
3314
3350
|
created_at?: string | undefined;
|
|
3315
3351
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3316
3352
|
error_code: 'duplicate_code_attempt_prevented';
|
|
3353
|
+
} | {
|
|
3354
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3355
|
+
message: string;
|
|
3356
|
+
/** Indicates that this is an access code error. */
|
|
3357
|
+
is_access_code_error: true;
|
|
3358
|
+
/** Date and time at which Seam created the error. */
|
|
3359
|
+
created_at?: string | undefined;
|
|
3360
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3361
|
+
error_code: 'no_space_for_access_code_on_device';
|
|
3317
3362
|
} | {
|
|
3318
3363
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3319
3364
|
message: string;
|
|
@@ -3341,6 +3386,15 @@ export interface Routes {
|
|
|
3341
3386
|
created_at?: string | undefined;
|
|
3342
3387
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3343
3388
|
error_code: 'igloohome_offline_access_code_no_variance_available';
|
|
3389
|
+
} | {
|
|
3390
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3391
|
+
message: string;
|
|
3392
|
+
/** Indicates that this is an access code error. */
|
|
3393
|
+
is_access_code_error: true;
|
|
3394
|
+
/** Date and time at which Seam created the error. */
|
|
3395
|
+
created_at?: string | undefined;
|
|
3396
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3397
|
+
error_code: 'schlage_lock_exceeds_maximum_number_of_access_codes';
|
|
3344
3398
|
} | {
|
|
3345
3399
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3346
3400
|
message: string;
|
|
@@ -3775,6 +3829,15 @@ export interface Routes {
|
|
|
3775
3829
|
created_at?: string | undefined;
|
|
3776
3830
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3777
3831
|
error_code: 'duplicate_code_attempt_prevented';
|
|
3832
|
+
} | {
|
|
3833
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3834
|
+
message: string;
|
|
3835
|
+
/** Indicates that this is an access code error. */
|
|
3836
|
+
is_access_code_error: true;
|
|
3837
|
+
/** Date and time at which Seam created the error. */
|
|
3838
|
+
created_at?: string | undefined;
|
|
3839
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3840
|
+
error_code: 'no_space_for_access_code_on_device';
|
|
3778
3841
|
} | {
|
|
3779
3842
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3780
3843
|
message: string;
|
|
@@ -3802,6 +3865,15 @@ export interface Routes {
|
|
|
3802
3865
|
created_at?: string | undefined;
|
|
3803
3866
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3804
3867
|
error_code: 'igloohome_offline_access_code_no_variance_available';
|
|
3868
|
+
} | {
|
|
3869
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3870
|
+
message: string;
|
|
3871
|
+
/** Indicates that this is an access code error. */
|
|
3872
|
+
is_access_code_error: true;
|
|
3873
|
+
/** Date and time at which Seam created the error. */
|
|
3874
|
+
created_at?: string | undefined;
|
|
3875
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
3876
|
+
error_code: 'schlage_lock_exceeds_maximum_number_of_access_codes';
|
|
3805
3877
|
} | {
|
|
3806
3878
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
3807
3879
|
message: string;
|
|
@@ -4244,6 +4316,15 @@ export interface Routes {
|
|
|
4244
4316
|
created_at?: string | undefined;
|
|
4245
4317
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4246
4318
|
error_code: 'duplicate_code_attempt_prevented';
|
|
4319
|
+
} | {
|
|
4320
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4321
|
+
message: string;
|
|
4322
|
+
/** Indicates that this is an access code error. */
|
|
4323
|
+
is_access_code_error: true;
|
|
4324
|
+
/** Date and time at which Seam created the error. */
|
|
4325
|
+
created_at?: string | undefined;
|
|
4326
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4327
|
+
error_code: 'no_space_for_access_code_on_device';
|
|
4247
4328
|
} | {
|
|
4248
4329
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4249
4330
|
message: string;
|
|
@@ -4271,6 +4352,15 @@ export interface Routes {
|
|
|
4271
4352
|
created_at?: string | undefined;
|
|
4272
4353
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4273
4354
|
error_code: 'igloohome_offline_access_code_no_variance_available';
|
|
4355
|
+
} | {
|
|
4356
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4357
|
+
message: string;
|
|
4358
|
+
/** Indicates that this is an access code error. */
|
|
4359
|
+
is_access_code_error: true;
|
|
4360
|
+
/** Date and time at which Seam created the error. */
|
|
4361
|
+
created_at?: string | undefined;
|
|
4362
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4363
|
+
error_code: 'schlage_lock_exceeds_maximum_number_of_access_codes';
|
|
4274
4364
|
} | {
|
|
4275
4365
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4276
4366
|
message: string;
|
|
@@ -4691,6 +4781,15 @@ export interface Routes {
|
|
|
4691
4781
|
created_at?: string | undefined;
|
|
4692
4782
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4693
4783
|
error_code: 'duplicate_code_attempt_prevented';
|
|
4784
|
+
} | {
|
|
4785
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4786
|
+
message: string;
|
|
4787
|
+
/** Indicates that this is an access code error. */
|
|
4788
|
+
is_access_code_error: true;
|
|
4789
|
+
/** Date and time at which Seam created the error. */
|
|
4790
|
+
created_at?: string | undefined;
|
|
4791
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4792
|
+
error_code: 'no_space_for_access_code_on_device';
|
|
4694
4793
|
} | {
|
|
4695
4794
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4696
4795
|
message: string;
|
|
@@ -4718,6 +4817,15 @@ export interface Routes {
|
|
|
4718
4817
|
created_at?: string | undefined;
|
|
4719
4818
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4720
4819
|
error_code: 'igloohome_offline_access_code_no_variance_available';
|
|
4820
|
+
} | {
|
|
4821
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4822
|
+
message: string;
|
|
4823
|
+
/** Indicates that this is an access code error. */
|
|
4824
|
+
is_access_code_error: true;
|
|
4825
|
+
/** Date and time at which Seam created the error. */
|
|
4826
|
+
created_at?: string | undefined;
|
|
4827
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
4828
|
+
error_code: 'schlage_lock_exceeds_maximum_number_of_access_codes';
|
|
4721
4829
|
} | {
|
|
4722
4830
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
4723
4831
|
message: string;
|
|
@@ -5167,6 +5275,15 @@ export interface Routes {
|
|
|
5167
5275
|
created_at?: string | undefined;
|
|
5168
5276
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5169
5277
|
error_code: 'duplicate_code_attempt_prevented';
|
|
5278
|
+
} | {
|
|
5279
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5280
|
+
message: string;
|
|
5281
|
+
/** Indicates that this is an access code error. */
|
|
5282
|
+
is_access_code_error: true;
|
|
5283
|
+
/** Date and time at which Seam created the error. */
|
|
5284
|
+
created_at?: string | undefined;
|
|
5285
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5286
|
+
error_code: 'no_space_for_access_code_on_device';
|
|
5170
5287
|
} | {
|
|
5171
5288
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5172
5289
|
message: string;
|
|
@@ -5194,6 +5311,15 @@ export interface Routes {
|
|
|
5194
5311
|
created_at?: string | undefined;
|
|
5195
5312
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5196
5313
|
error_code: 'igloohome_offline_access_code_no_variance_available';
|
|
5314
|
+
} | {
|
|
5315
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5316
|
+
message: string;
|
|
5317
|
+
/** Indicates that this is an access code error. */
|
|
5318
|
+
is_access_code_error: true;
|
|
5319
|
+
/** Date and time at which Seam created the error. */
|
|
5320
|
+
created_at?: string | undefined;
|
|
5321
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
5322
|
+
error_code: 'schlage_lock_exceeds_maximum_number_of_access_codes';
|
|
5197
5323
|
} | {
|
|
5198
5324
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
5199
5325
|
message: string;
|
|
@@ -6751,6 +6877,15 @@ export interface Routes {
|
|
|
6751
6877
|
created_at?: string | undefined;
|
|
6752
6878
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6753
6879
|
error_code: 'duplicate_code_attempt_prevented';
|
|
6880
|
+
} | {
|
|
6881
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6882
|
+
message: string;
|
|
6883
|
+
/** Indicates that this is an access code error. */
|
|
6884
|
+
is_access_code_error: true;
|
|
6885
|
+
/** Date and time at which Seam created the error. */
|
|
6886
|
+
created_at?: string | undefined;
|
|
6887
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6888
|
+
error_code: 'no_space_for_access_code_on_device';
|
|
6754
6889
|
} | {
|
|
6755
6890
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6756
6891
|
message: string;
|
|
@@ -6778,6 +6913,15 @@ export interface Routes {
|
|
|
6778
6913
|
created_at?: string | undefined;
|
|
6779
6914
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6780
6915
|
error_code: 'igloohome_offline_access_code_no_variance_available';
|
|
6916
|
+
} | {
|
|
6917
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6918
|
+
message: string;
|
|
6919
|
+
/** Indicates that this is an access code error. */
|
|
6920
|
+
is_access_code_error: true;
|
|
6921
|
+
/** Date and time at which Seam created the error. */
|
|
6922
|
+
created_at?: string | undefined;
|
|
6923
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
6924
|
+
error_code: 'schlage_lock_exceeds_maximum_number_of_access_codes';
|
|
6781
6925
|
} | {
|
|
6782
6926
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
6783
6927
|
message: string;
|
|
@@ -7188,6 +7332,15 @@ export interface Routes {
|
|
|
7188
7332
|
created_at?: string | undefined;
|
|
7189
7333
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7190
7334
|
error_code: 'duplicate_code_attempt_prevented';
|
|
7335
|
+
} | {
|
|
7336
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7337
|
+
message: string;
|
|
7338
|
+
/** Indicates that this is an access code error. */
|
|
7339
|
+
is_access_code_error: true;
|
|
7340
|
+
/** Date and time at which Seam created the error. */
|
|
7341
|
+
created_at?: string | undefined;
|
|
7342
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7343
|
+
error_code: 'no_space_for_access_code_on_device';
|
|
7191
7344
|
} | {
|
|
7192
7345
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7193
7346
|
message: string;
|
|
@@ -7215,6 +7368,15 @@ export interface Routes {
|
|
|
7215
7368
|
created_at?: string | undefined;
|
|
7216
7369
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7217
7370
|
error_code: 'igloohome_offline_access_code_no_variance_available';
|
|
7371
|
+
} | {
|
|
7372
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7373
|
+
message: string;
|
|
7374
|
+
/** Indicates that this is an access code error. */
|
|
7375
|
+
is_access_code_error: true;
|
|
7376
|
+
/** Date and time at which Seam created the error. */
|
|
7377
|
+
created_at?: string | undefined;
|
|
7378
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
7379
|
+
error_code: 'schlage_lock_exceeds_maximum_number_of_access_codes';
|
|
7218
7380
|
} | {
|
|
7219
7381
|
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
7220
7382
|
message: string;
|
package/package.json
CHANGED
|
@@ -80,6 +80,14 @@ const duplicate_code_attempt_prevented = common_access_code_error
|
|
|
80
80
|
})
|
|
81
81
|
.describe('An attempt to modify this access code was prevented.')
|
|
82
82
|
|
|
83
|
+
const no_space_for_access_code_on_device = common_access_code_error
|
|
84
|
+
.extend({
|
|
85
|
+
error_code: z
|
|
86
|
+
.literal('no_space_for_access_code_on_device')
|
|
87
|
+
.describe(error_code_description),
|
|
88
|
+
})
|
|
89
|
+
.describe('No space for access code on device.')
|
|
90
|
+
|
|
83
91
|
const igloohome_bridge_too_many_pending_jobs = common_access_code_error
|
|
84
92
|
.extend({
|
|
85
93
|
error_code: z
|
|
@@ -123,6 +131,15 @@ const igloohome_offline_access_code_no_variance_available =
|
|
|
123
131
|
})
|
|
124
132
|
.describe('Lock has reached maximum amount of codes.')
|
|
125
133
|
|
|
134
|
+
const schlage_lock_exceeds_maximum_number_of_access_codes =
|
|
135
|
+
common_access_code_error
|
|
136
|
+
.extend({
|
|
137
|
+
error_code: z
|
|
138
|
+
.literal('schlage_lock_exceeds_maximum_number_of_access_codes')
|
|
139
|
+
.describe(error_code_description),
|
|
140
|
+
})
|
|
141
|
+
.describe('Lock has reached maximum amount of codes.')
|
|
142
|
+
|
|
126
143
|
const august_lock_invalid_code_length = common_access_code_error
|
|
127
144
|
.extend({
|
|
128
145
|
error_code: z
|
|
@@ -228,9 +245,11 @@ const access_code_error = z
|
|
|
228
245
|
failed_to_remove_from_device,
|
|
229
246
|
duplicate_code_on_device,
|
|
230
247
|
duplicate_code_attempt_prevented,
|
|
248
|
+
no_space_for_access_code_on_device,
|
|
231
249
|
igloohome_bridge_too_many_pending_jobs,
|
|
232
250
|
igloohome_bridge_offline,
|
|
233
251
|
igloohome_offline_access_code_no_variance_available,
|
|
252
|
+
schlage_lock_exceeds_maximum_number_of_access_codes,
|
|
234
253
|
kwikset_unable_to_confirm_code,
|
|
235
254
|
kwikset_unable_to_confirm_deletion,
|
|
236
255
|
code_modified_external_to_seam_error,
|
|
@@ -264,6 +283,9 @@ const access_code_error_map = z.object({
|
|
|
264
283
|
failed_to_remove_from_device: failed_to_remove_from_device
|
|
265
284
|
.optional()
|
|
266
285
|
.nullable(),
|
|
286
|
+
no_space_for_access_code_on_device: no_space_for_access_code_on_device
|
|
287
|
+
.optional()
|
|
288
|
+
.nullable(),
|
|
267
289
|
duplicate_code_on_device: duplicate_code_on_device.optional().nullable(),
|
|
268
290
|
duplicate_code_attempt_prevented: duplicate_code_attempt_prevented
|
|
269
291
|
.optional()
|
|
@@ -310,6 +332,8 @@ const access_code_error_map = z.object({
|
|
|
310
332
|
dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level
|
|
311
333
|
.optional()
|
|
312
334
|
.nullable(),
|
|
335
|
+
schlage_lock_exceeds_maximum_number_of_access_codes:
|
|
336
|
+
schlage_lock_exceeds_maximum_number_of_access_codes.optional().nullable(),
|
|
313
337
|
})
|
|
314
338
|
|
|
315
339
|
export type AccessCodeErrorMap = z.infer<typeof access_code_error_map>
|
|
@@ -5,7 +5,7 @@ export const access_code_code_constraint = z.object({
|
|
|
5
5
|
'no_zeros', // Nuki
|
|
6
6
|
'cannot_start_with_12', // Nuki
|
|
7
7
|
'no_triple_consecutive_ints', // Brivo
|
|
8
|
-
'cannot_specify_pin_code', //
|
|
8
|
+
'cannot_specify_pin_code', // Dormakaba?
|
|
9
9
|
'pin_code_matches_existing_set', // Salto
|
|
10
10
|
'start_date_in_future', // Kwikset
|
|
11
11
|
'no_ascending_or_descending_sequence', // Tedee
|
|
@@ -259,6 +259,36 @@ export default {
|
|
|
259
259
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
260
260
|
type: 'object',
|
|
261
261
|
},
|
|
262
|
+
{
|
|
263
|
+
description: 'No space for access code on device.',
|
|
264
|
+
properties: {
|
|
265
|
+
created_at: {
|
|
266
|
+
description:
|
|
267
|
+
'Date and time at which Seam created the error.',
|
|
268
|
+
format: 'date-time',
|
|
269
|
+
type: 'string',
|
|
270
|
+
},
|
|
271
|
+
error_code: {
|
|
272
|
+
description:
|
|
273
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
274
|
+
enum: ['no_space_for_access_code_on_device'],
|
|
275
|
+
type: 'string',
|
|
276
|
+
},
|
|
277
|
+
is_access_code_error: {
|
|
278
|
+
description:
|
|
279
|
+
'Indicates that this is an access code error.',
|
|
280
|
+
enum: [true],
|
|
281
|
+
type: 'boolean',
|
|
282
|
+
},
|
|
283
|
+
message: {
|
|
284
|
+
description:
|
|
285
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
286
|
+
type: 'string',
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
290
|
+
type: 'object',
|
|
291
|
+
},
|
|
262
292
|
{
|
|
263
293
|
description:
|
|
264
294
|
'Igloohome bridge has too many pending jobs in the queue.',
|
|
@@ -352,6 +382,38 @@ export default {
|
|
|
352
382
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
353
383
|
type: 'object',
|
|
354
384
|
},
|
|
385
|
+
{
|
|
386
|
+
description: 'Lock has reached maximum amount of codes.',
|
|
387
|
+
properties: {
|
|
388
|
+
created_at: {
|
|
389
|
+
description:
|
|
390
|
+
'Date and time at which Seam created the error.',
|
|
391
|
+
format: 'date-time',
|
|
392
|
+
type: 'string',
|
|
393
|
+
},
|
|
394
|
+
error_code: {
|
|
395
|
+
description:
|
|
396
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
397
|
+
enum: [
|
|
398
|
+
'schlage_lock_exceeds_maximum_number_of_access_codes',
|
|
399
|
+
],
|
|
400
|
+
type: 'string',
|
|
401
|
+
},
|
|
402
|
+
is_access_code_error: {
|
|
403
|
+
description:
|
|
404
|
+
'Indicates that this is an access code error.',
|
|
405
|
+
enum: [true],
|
|
406
|
+
type: 'boolean',
|
|
407
|
+
},
|
|
408
|
+
message: {
|
|
409
|
+
description:
|
|
410
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
411
|
+
type: 'string',
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
415
|
+
type: 'object',
|
|
416
|
+
},
|
|
355
417
|
{
|
|
356
418
|
description:
|
|
357
419
|
'Unable to confirm that the access code is set on Kwikset device.',
|
|
@@ -15398,6 +15460,36 @@ export default {
|
|
|
15398
15460
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
15399
15461
|
type: 'object',
|
|
15400
15462
|
},
|
|
15463
|
+
{
|
|
15464
|
+
description: 'No space for access code on device.',
|
|
15465
|
+
properties: {
|
|
15466
|
+
created_at: {
|
|
15467
|
+
description:
|
|
15468
|
+
'Date and time at which Seam created the error.',
|
|
15469
|
+
format: 'date-time',
|
|
15470
|
+
type: 'string',
|
|
15471
|
+
},
|
|
15472
|
+
error_code: {
|
|
15473
|
+
description:
|
|
15474
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
15475
|
+
enum: ['no_space_for_access_code_on_device'],
|
|
15476
|
+
type: 'string',
|
|
15477
|
+
},
|
|
15478
|
+
is_access_code_error: {
|
|
15479
|
+
description:
|
|
15480
|
+
'Indicates that this is an access code error.',
|
|
15481
|
+
enum: [true],
|
|
15482
|
+
type: 'boolean',
|
|
15483
|
+
},
|
|
15484
|
+
message: {
|
|
15485
|
+
description:
|
|
15486
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
15487
|
+
type: 'string',
|
|
15488
|
+
},
|
|
15489
|
+
},
|
|
15490
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
15491
|
+
type: 'object',
|
|
15492
|
+
},
|
|
15401
15493
|
{
|
|
15402
15494
|
description:
|
|
15403
15495
|
'Igloohome bridge has too many pending jobs in the queue.',
|
|
@@ -15491,6 +15583,38 @@ export default {
|
|
|
15491
15583
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
15492
15584
|
type: 'object',
|
|
15493
15585
|
},
|
|
15586
|
+
{
|
|
15587
|
+
description: 'Lock has reached maximum amount of codes.',
|
|
15588
|
+
properties: {
|
|
15589
|
+
created_at: {
|
|
15590
|
+
description:
|
|
15591
|
+
'Date and time at which Seam created the error.',
|
|
15592
|
+
format: 'date-time',
|
|
15593
|
+
type: 'string',
|
|
15594
|
+
},
|
|
15595
|
+
error_code: {
|
|
15596
|
+
description:
|
|
15597
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
15598
|
+
enum: [
|
|
15599
|
+
'schlage_lock_exceeds_maximum_number_of_access_codes',
|
|
15600
|
+
],
|
|
15601
|
+
type: 'string',
|
|
15602
|
+
},
|
|
15603
|
+
is_access_code_error: {
|
|
15604
|
+
description:
|
|
15605
|
+
'Indicates that this is an access code error.',
|
|
15606
|
+
enum: [true],
|
|
15607
|
+
type: 'boolean',
|
|
15608
|
+
},
|
|
15609
|
+
message: {
|
|
15610
|
+
description:
|
|
15611
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
15612
|
+
type: 'string',
|
|
15613
|
+
},
|
|
15614
|
+
},
|
|
15615
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
15616
|
+
type: 'object',
|
|
15617
|
+
},
|
|
15494
15618
|
{
|
|
15495
15619
|
description:
|
|
15496
15620
|
'Unable to confirm that the access code is set on Kwikset device.',
|