@seamapi/types 1.390.0 → 1.391.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 +47 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +118 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +58 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +11 -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 +21 -0
- package/lib/seam/connect/openapi.js +42 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +63 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +12 -0
- package/src/lib/seam/connect/openapi.ts +48 -0
- package/src/lib/seam/connect/route-types.ts +72 -0
|
@@ -1494,6 +1494,13 @@ export interface Routes {
|
|
|
1494
1494
|
created_at?: string | undefined;
|
|
1495
1495
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
1496
1496
|
warning_code: 'schlage_detected_duplicate';
|
|
1497
|
+
} | {
|
|
1498
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
1499
|
+
message: string;
|
|
1500
|
+
/** Date and time at which Seam created the warning. */
|
|
1501
|
+
created_at?: string | undefined;
|
|
1502
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
1503
|
+
warning_code: 'schlage_detected_duplicate_code_name';
|
|
1497
1504
|
} | {
|
|
1498
1505
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
1499
1506
|
message: string;
|
|
@@ -1975,6 +1982,13 @@ export interface Routes {
|
|
|
1975
1982
|
created_at?: string | undefined;
|
|
1976
1983
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
1977
1984
|
warning_code: 'schlage_detected_duplicate';
|
|
1985
|
+
} | {
|
|
1986
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
1987
|
+
message: string;
|
|
1988
|
+
/** Date and time at which Seam created the warning. */
|
|
1989
|
+
created_at?: string | undefined;
|
|
1990
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
1991
|
+
warning_code: 'schlage_detected_duplicate_code_name';
|
|
1978
1992
|
} | {
|
|
1979
1993
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
1980
1994
|
message: string;
|
|
@@ -3571,6 +3585,13 @@ export interface Routes {
|
|
|
3571
3585
|
created_at?: string | undefined;
|
|
3572
3586
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
3573
3587
|
warning_code: 'schlage_detected_duplicate';
|
|
3588
|
+
} | {
|
|
3589
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
3590
|
+
message: string;
|
|
3591
|
+
/** Date and time at which Seam created the warning. */
|
|
3592
|
+
created_at?: string | undefined;
|
|
3593
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
3594
|
+
warning_code: 'schlage_detected_duplicate_code_name';
|
|
3574
3595
|
} | {
|
|
3575
3596
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
3576
3597
|
message: string;
|
|
@@ -4032,6 +4053,13 @@ export interface Routes {
|
|
|
4032
4053
|
created_at?: string | undefined;
|
|
4033
4054
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4034
4055
|
warning_code: 'schlage_detected_duplicate';
|
|
4056
|
+
} | {
|
|
4057
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4058
|
+
message: string;
|
|
4059
|
+
/** Date and time at which Seam created the warning. */
|
|
4060
|
+
created_at?: string | undefined;
|
|
4061
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4062
|
+
warning_code: 'schlage_detected_duplicate_code_name';
|
|
4035
4063
|
} | {
|
|
4036
4064
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4037
4065
|
message: string;
|
|
@@ -4501,6 +4529,13 @@ export interface Routes {
|
|
|
4501
4529
|
created_at?: string | undefined;
|
|
4502
4530
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4503
4531
|
warning_code: 'schlage_detected_duplicate';
|
|
4532
|
+
} | {
|
|
4533
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4534
|
+
message: string;
|
|
4535
|
+
/** Date and time at which Seam created the warning. */
|
|
4536
|
+
created_at?: string | undefined;
|
|
4537
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4538
|
+
warning_code: 'schlage_detected_duplicate_code_name';
|
|
4504
4539
|
} | {
|
|
4505
4540
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4506
4541
|
message: string;
|
|
@@ -4948,6 +4983,13 @@ export interface Routes {
|
|
|
4948
4983
|
created_at?: string | undefined;
|
|
4949
4984
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4950
4985
|
warning_code: 'schlage_detected_duplicate';
|
|
4986
|
+
} | {
|
|
4987
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4988
|
+
message: string;
|
|
4989
|
+
/** Date and time at which Seam created the warning. */
|
|
4990
|
+
created_at?: string | undefined;
|
|
4991
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4992
|
+
warning_code: 'schlage_detected_duplicate_code_name';
|
|
4951
4993
|
} | {
|
|
4952
4994
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4953
4995
|
message: string;
|
|
@@ -5424,6 +5466,13 @@ export interface Routes {
|
|
|
5424
5466
|
created_at?: string | undefined;
|
|
5425
5467
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5426
5468
|
warning_code: 'schlage_detected_duplicate';
|
|
5469
|
+
} | {
|
|
5470
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5471
|
+
message: string;
|
|
5472
|
+
/** Date and time at which Seam created the warning. */
|
|
5473
|
+
created_at?: string | undefined;
|
|
5474
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5475
|
+
warning_code: 'schlage_detected_duplicate_code_name';
|
|
5427
5476
|
} | {
|
|
5428
5477
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5429
5478
|
message: string;
|
|
@@ -7004,6 +7053,13 @@ export interface Routes {
|
|
|
7004
7053
|
created_at?: string | undefined;
|
|
7005
7054
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
7006
7055
|
warning_code: 'schlage_detected_duplicate';
|
|
7056
|
+
} | {
|
|
7057
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
7058
|
+
message: string;
|
|
7059
|
+
/** Date and time at which Seam created the warning. */
|
|
7060
|
+
created_at?: string | undefined;
|
|
7061
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
7062
|
+
warning_code: 'schlage_detected_duplicate_code_name';
|
|
7007
7063
|
} | {
|
|
7008
7064
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
7009
7065
|
message: string;
|
|
@@ -7441,6 +7497,13 @@ export interface Routes {
|
|
|
7441
7497
|
created_at?: string | undefined;
|
|
7442
7498
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
7443
7499
|
warning_code: 'schlage_detected_duplicate';
|
|
7500
|
+
} | {
|
|
7501
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
7502
|
+
message: string;
|
|
7503
|
+
/** Date and time at which Seam created the warning. */
|
|
7504
|
+
created_at?: string | undefined;
|
|
7505
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
7506
|
+
warning_code: 'schlage_detected_duplicate_code_name';
|
|
7444
7507
|
} | {
|
|
7445
7508
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
7446
7509
|
message: string;
|
package/package.json
CHANGED
|
@@ -372,6 +372,14 @@ const schlage_detected_duplicate = common_access_code_warning
|
|
|
372
372
|
})
|
|
373
373
|
.describe('Duplicate access code detected.')
|
|
374
374
|
|
|
375
|
+
const schlage_detected_duplicate_code_name = common_access_code_warning
|
|
376
|
+
.extend({
|
|
377
|
+
warning_code: z
|
|
378
|
+
.literal('schlage_detected_duplicate_code_name')
|
|
379
|
+
.describe(warning_code_description),
|
|
380
|
+
})
|
|
381
|
+
.describe('Duplicate access code name detected.')
|
|
382
|
+
|
|
375
383
|
const schlage_creation_outage = common_access_code_warning
|
|
376
384
|
.extend({
|
|
377
385
|
warning_code: z
|
|
@@ -434,6 +442,7 @@ const access_code_warning = z
|
|
|
434
442
|
.discriminatedUnion('warning_code', [
|
|
435
443
|
smartthings_failed_to_set_access_code_warning,
|
|
436
444
|
schlage_detected_duplicate,
|
|
445
|
+
schlage_detected_duplicate_code_name,
|
|
437
446
|
schlage_creation_outage,
|
|
438
447
|
code_modified_external_to_seam_warning,
|
|
439
448
|
delay_in_setting_on_device,
|
|
@@ -455,6 +464,9 @@ const access_code_warning_map = z.object({
|
|
|
455
464
|
smartthings_failed_to_set_access_code:
|
|
456
465
|
smartthings_failed_to_set_access_code_warning.optional().nullable(),
|
|
457
466
|
schlage_detected_duplicate: schlage_detected_duplicate.optional().nullable(),
|
|
467
|
+
schlage_duplicate_code_name: schlage_detected_duplicate_code_name
|
|
468
|
+
.optional()
|
|
469
|
+
.nullable(),
|
|
458
470
|
schlage_creation_outage: schlage_creation_outage.optional().nullable(),
|
|
459
471
|
code_modified_external_to_seam_warning: code_modified_external_to_seam_warning
|
|
460
472
|
.optional()
|
|
@@ -1236,6 +1236,30 @@ export default {
|
|
|
1236
1236
|
required: ['message', 'warning_code'],
|
|
1237
1237
|
type: 'object',
|
|
1238
1238
|
},
|
|
1239
|
+
{
|
|
1240
|
+
description: 'Duplicate access code name detected.',
|
|
1241
|
+
properties: {
|
|
1242
|
+
created_at: {
|
|
1243
|
+
description:
|
|
1244
|
+
'Date and time at which Seam created the warning.',
|
|
1245
|
+
format: 'date-time',
|
|
1246
|
+
type: 'string',
|
|
1247
|
+
},
|
|
1248
|
+
message: {
|
|
1249
|
+
description:
|
|
1250
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
1251
|
+
type: 'string',
|
|
1252
|
+
},
|
|
1253
|
+
warning_code: {
|
|
1254
|
+
description:
|
|
1255
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
1256
|
+
enum: ['schlage_detected_duplicate_code_name'],
|
|
1257
|
+
type: 'string',
|
|
1258
|
+
},
|
|
1259
|
+
},
|
|
1260
|
+
required: ['message', 'warning_code'],
|
|
1261
|
+
type: 'object',
|
|
1262
|
+
},
|
|
1239
1263
|
{
|
|
1240
1264
|
description:
|
|
1241
1265
|
'Received an error when attempting to create this code.',
|
|
@@ -16297,6 +16321,30 @@ export default {
|
|
|
16297
16321
|
required: ['message', 'warning_code'],
|
|
16298
16322
|
type: 'object',
|
|
16299
16323
|
},
|
|
16324
|
+
{
|
|
16325
|
+
description: 'Duplicate access code name detected.',
|
|
16326
|
+
properties: {
|
|
16327
|
+
created_at: {
|
|
16328
|
+
description:
|
|
16329
|
+
'Date and time at which Seam created the warning.',
|
|
16330
|
+
format: 'date-time',
|
|
16331
|
+
type: 'string',
|
|
16332
|
+
},
|
|
16333
|
+
message: {
|
|
16334
|
+
description:
|
|
16335
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
16336
|
+
type: 'string',
|
|
16337
|
+
},
|
|
16338
|
+
warning_code: {
|
|
16339
|
+
description:
|
|
16340
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
16341
|
+
enum: ['schlage_detected_duplicate_code_name'],
|
|
16342
|
+
type: 'string',
|
|
16343
|
+
},
|
|
16344
|
+
},
|
|
16345
|
+
required: ['message', 'warning_code'],
|
|
16346
|
+
type: 'object',
|
|
16347
|
+
},
|
|
16300
16348
|
{
|
|
16301
16349
|
description:
|
|
16302
16350
|
'Received an error when attempting to create this code.',
|
|
@@ -1726,6 +1726,14 @@ export interface Routes {
|
|
|
1726
1726
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
1727
1727
|
warning_code: 'schlage_detected_duplicate'
|
|
1728
1728
|
}
|
|
1729
|
+
| {
|
|
1730
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
1731
|
+
message: string
|
|
1732
|
+
/** Date and time at which Seam created the warning. */
|
|
1733
|
+
created_at?: string | undefined
|
|
1734
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
1735
|
+
warning_code: 'schlage_detected_duplicate_code_name'
|
|
1736
|
+
}
|
|
1729
1737
|
| {
|
|
1730
1738
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
1731
1739
|
message: string
|
|
@@ -2260,6 +2268,14 @@ export interface Routes {
|
|
|
2260
2268
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
2261
2269
|
warning_code: 'schlage_detected_duplicate'
|
|
2262
2270
|
}
|
|
2271
|
+
| {
|
|
2272
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
2273
|
+
message: string
|
|
2274
|
+
/** Date and time at which Seam created the warning. */
|
|
2275
|
+
created_at?: string | undefined
|
|
2276
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
2277
|
+
warning_code: 'schlage_detected_duplicate_code_name'
|
|
2278
|
+
}
|
|
2263
2279
|
| {
|
|
2264
2280
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
2265
2281
|
message: string
|
|
@@ -4098,6 +4114,14 @@ export interface Routes {
|
|
|
4098
4114
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4099
4115
|
warning_code: 'schlage_detected_duplicate'
|
|
4100
4116
|
}
|
|
4117
|
+
| {
|
|
4118
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4119
|
+
message: string
|
|
4120
|
+
/** Date and time at which Seam created the warning. */
|
|
4121
|
+
created_at?: string | undefined
|
|
4122
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4123
|
+
warning_code: 'schlage_detected_duplicate_code_name'
|
|
4124
|
+
}
|
|
4101
4125
|
| {
|
|
4102
4126
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4103
4127
|
message: string
|
|
@@ -4612,6 +4636,14 @@ export interface Routes {
|
|
|
4612
4636
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4613
4637
|
warning_code: 'schlage_detected_duplicate'
|
|
4614
4638
|
}
|
|
4639
|
+
| {
|
|
4640
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4641
|
+
message: string
|
|
4642
|
+
/** Date and time at which Seam created the warning. */
|
|
4643
|
+
created_at?: string | undefined
|
|
4644
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
4645
|
+
warning_code: 'schlage_detected_duplicate_code_name'
|
|
4646
|
+
}
|
|
4615
4647
|
| {
|
|
4616
4648
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
4617
4649
|
message: string
|
|
@@ -5134,6 +5166,14 @@ export interface Routes {
|
|
|
5134
5166
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5135
5167
|
warning_code: 'schlage_detected_duplicate'
|
|
5136
5168
|
}
|
|
5169
|
+
| {
|
|
5170
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5171
|
+
message: string
|
|
5172
|
+
/** Date and time at which Seam created the warning. */
|
|
5173
|
+
created_at?: string | undefined
|
|
5174
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5175
|
+
warning_code: 'schlage_detected_duplicate_code_name'
|
|
5176
|
+
}
|
|
5137
5177
|
| {
|
|
5138
5178
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5139
5179
|
message: string
|
|
@@ -5634,6 +5674,14 @@ export interface Routes {
|
|
|
5634
5674
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5635
5675
|
warning_code: 'schlage_detected_duplicate'
|
|
5636
5676
|
}
|
|
5677
|
+
| {
|
|
5678
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5679
|
+
message: string
|
|
5680
|
+
/** Date and time at which Seam created the warning. */
|
|
5681
|
+
created_at?: string | undefined
|
|
5682
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
5683
|
+
warning_code: 'schlage_detected_duplicate_code_name'
|
|
5684
|
+
}
|
|
5637
5685
|
| {
|
|
5638
5686
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
5639
5687
|
message: string
|
|
@@ -6163,6 +6211,14 @@ export interface Routes {
|
|
|
6163
6211
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
6164
6212
|
warning_code: 'schlage_detected_duplicate'
|
|
6165
6213
|
}
|
|
6214
|
+
| {
|
|
6215
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
6216
|
+
message: string
|
|
6217
|
+
/** Date and time at which Seam created the warning. */
|
|
6218
|
+
created_at?: string | undefined
|
|
6219
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
6220
|
+
warning_code: 'schlage_detected_duplicate_code_name'
|
|
6221
|
+
}
|
|
6166
6222
|
| {
|
|
6167
6223
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
6168
6224
|
message: string
|
|
@@ -7985,6 +8041,14 @@ export interface Routes {
|
|
|
7985
8041
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
7986
8042
|
warning_code: 'schlage_detected_duplicate'
|
|
7987
8043
|
}
|
|
8044
|
+
| {
|
|
8045
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
8046
|
+
message: string
|
|
8047
|
+
/** Date and time at which Seam created the warning. */
|
|
8048
|
+
created_at?: string | undefined
|
|
8049
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
8050
|
+
warning_code: 'schlage_detected_duplicate_code_name'
|
|
8051
|
+
}
|
|
7988
8052
|
| {
|
|
7989
8053
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
7990
8054
|
message: string
|
|
@@ -8475,6 +8539,14 @@ export interface Routes {
|
|
|
8475
8539
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
8476
8540
|
warning_code: 'schlage_detected_duplicate'
|
|
8477
8541
|
}
|
|
8542
|
+
| {
|
|
8543
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
8544
|
+
message: string
|
|
8545
|
+
/** Date and time at which Seam created the warning. */
|
|
8546
|
+
created_at?: string | undefined
|
|
8547
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
8548
|
+
warning_code: 'schlage_detected_duplicate_code_name'
|
|
8549
|
+
}
|
|
8478
8550
|
| {
|
|
8479
8551
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
8480
8552
|
message: string
|