@seamapi/types 1.871.0 → 1.872.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 +301 -28
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +668 -0
- package/dist/index.cjs +301 -28
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +210 -10
- package/lib/seam/connect/models/access-codes/managed-access-code.js +85 -10
- 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 +73 -0
- package/lib/seam/connect/models/batch.d.ts +202 -0
- package/lib/seam/connect/openapi.js +186 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +275 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +110 -10
- package/src/lib/seam/connect/openapi.ts +218 -0
- package/src/lib/seam/connect/route-types.ts +308 -0
|
@@ -22,13 +22,28 @@ const common_access_code_error = z.object({
|
|
|
22
22
|
const error_code_description =
|
|
23
23
|
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'
|
|
24
24
|
|
|
25
|
+
const provider_issue = common_access_code_error
|
|
26
|
+
.extend({
|
|
27
|
+
error_code: z.literal('provider_issue').describe(error_code_description),
|
|
28
|
+
})
|
|
29
|
+
.describe(
|
|
30
|
+
'Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.',
|
|
31
|
+
)
|
|
32
|
+
|
|
25
33
|
const smartthings_failed_to_set_access_code_error = common_access_code_error
|
|
26
34
|
.extend({
|
|
27
35
|
error_code: z
|
|
28
36
|
.literal('smartthings_failed_to_set_access_code')
|
|
29
37
|
.describe(error_code_description),
|
|
30
38
|
})
|
|
31
|
-
.describe(
|
|
39
|
+
.describe(
|
|
40
|
+
`
|
|
41
|
+
---
|
|
42
|
+
deprecated: Handled by the generic \`failed_to_set_on_device\` system.
|
|
43
|
+
---
|
|
44
|
+
Failed to set code on SmartThings device.
|
|
45
|
+
`,
|
|
46
|
+
)
|
|
32
47
|
|
|
33
48
|
const smartthings_failed_to_set_after_multiple_retries =
|
|
34
49
|
common_access_code_error
|
|
@@ -37,7 +52,14 @@ const smartthings_failed_to_set_after_multiple_retries =
|
|
|
37
52
|
.literal('smartthings_failed_to_set_after_multiple_retries')
|
|
38
53
|
.describe(error_code_description),
|
|
39
54
|
})
|
|
40
|
-
.describe(
|
|
55
|
+
.describe(
|
|
56
|
+
`
|
|
57
|
+
---
|
|
58
|
+
deprecated: Handled by the generic \`failed_to_set_on_device\` system.
|
|
59
|
+
---
|
|
60
|
+
Failed to set code after multiple retries.
|
|
61
|
+
`,
|
|
62
|
+
)
|
|
41
63
|
|
|
42
64
|
const modified_field = z.object({
|
|
43
65
|
field: z
|
|
@@ -172,7 +194,12 @@ const kwikset_insufficient_permissions = common_access_code_error
|
|
|
172
194
|
.describe(error_code_description),
|
|
173
195
|
})
|
|
174
196
|
.describe(
|
|
175
|
-
|
|
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
|
+
`,
|
|
176
203
|
)
|
|
177
204
|
|
|
178
205
|
const august_lock_invalid_code_length = common_access_code_error
|
|
@@ -181,7 +208,14 @@ const august_lock_invalid_code_length = common_access_code_error
|
|
|
181
208
|
.literal('august_lock_invalid_code_length')
|
|
182
209
|
.describe(error_code_description),
|
|
183
210
|
})
|
|
184
|
-
.describe(
|
|
211
|
+
.describe(
|
|
212
|
+
`
|
|
213
|
+
---
|
|
214
|
+
deprecated: Use \`provider_issue\` instead.
|
|
215
|
+
---
|
|
216
|
+
Invalid code length for August lock.
|
|
217
|
+
`,
|
|
218
|
+
)
|
|
185
219
|
|
|
186
220
|
const august_lock_temporarily_offline_error = common_access_code_error
|
|
187
221
|
.extend({
|
|
@@ -189,7 +223,14 @@ const august_lock_temporarily_offline_error = common_access_code_error
|
|
|
189
223
|
.literal('august_lock_temporarily_offline')
|
|
190
224
|
.describe(error_code_description),
|
|
191
225
|
})
|
|
192
|
-
.describe(
|
|
226
|
+
.describe(
|
|
227
|
+
`
|
|
228
|
+
---
|
|
229
|
+
deprecated: Use \`provider_issue\` instead.
|
|
230
|
+
---
|
|
231
|
+
August lock is temporarily offline.
|
|
232
|
+
`,
|
|
233
|
+
)
|
|
193
234
|
|
|
194
235
|
const august_lock_missing_keypad = common_access_code_error
|
|
195
236
|
.extend({
|
|
@@ -197,7 +238,24 @@ const august_lock_missing_keypad = common_access_code_error
|
|
|
197
238
|
.literal('august_lock_missing_keypad')
|
|
198
239
|
.describe(error_code_description),
|
|
199
240
|
})
|
|
200
|
-
.describe(
|
|
241
|
+
.describe(
|
|
242
|
+
`
|
|
243
|
+
---
|
|
244
|
+
deprecated: Use \`provider_issue\` instead.
|
|
245
|
+
---
|
|
246
|
+
August lock is missing a keypad.
|
|
247
|
+
`,
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
const access_code_inactive_error = common_access_code_error
|
|
251
|
+
.extend({
|
|
252
|
+
error_code: z
|
|
253
|
+
.literal('access_code_inactive')
|
|
254
|
+
.describe(error_code_description),
|
|
255
|
+
})
|
|
256
|
+
.describe(
|
|
257
|
+
'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.',
|
|
258
|
+
)
|
|
201
259
|
|
|
202
260
|
const salto_ks_user_not_subscribed = common_access_code_error
|
|
203
261
|
.extend({
|
|
@@ -205,7 +263,14 @@ const salto_ks_user_not_subscribed = common_access_code_error
|
|
|
205
263
|
.literal('salto_ks_user_not_subscribed')
|
|
206
264
|
.describe(error_code_description),
|
|
207
265
|
})
|
|
208
|
-
.describe(
|
|
266
|
+
.describe(
|
|
267
|
+
`
|
|
268
|
+
---
|
|
269
|
+
deprecated: Use \`access_code_inactive\` instead.
|
|
270
|
+
---
|
|
271
|
+
Salto site user is not subscribed.
|
|
272
|
+
`,
|
|
273
|
+
)
|
|
209
274
|
|
|
210
275
|
const wyze_duplicate_code_name = common_access_code_error
|
|
211
276
|
.extend({
|
|
@@ -244,7 +309,12 @@ const dormakaba_oracode_invalid_time_range = common_access_code_error
|
|
|
244
309
|
.describe(error_code_description),
|
|
245
310
|
})
|
|
246
311
|
.describe(
|
|
247
|
-
|
|
312
|
+
`
|
|
313
|
+
---
|
|
314
|
+
deprecated: Use \`provider_issue\` instead.
|
|
315
|
+
---
|
|
316
|
+
No Dormakaba Oracode user levels configured for the requested time range.
|
|
317
|
+
`,
|
|
248
318
|
)
|
|
249
319
|
|
|
250
320
|
const keynest_unsupported_third_party_locker = common_access_code_error
|
|
@@ -253,7 +323,14 @@ const keynest_unsupported_third_party_locker = common_access_code_error
|
|
|
253
323
|
.literal('keynest_unsupported_third_party_locker')
|
|
254
324
|
.describe(error_code_description),
|
|
255
325
|
})
|
|
256
|
-
.describe(
|
|
326
|
+
.describe(
|
|
327
|
+
`
|
|
328
|
+
---
|
|
329
|
+
deprecated: Use \`provider_issue\` instead.
|
|
330
|
+
---
|
|
331
|
+
KeyNest locker is not supported.
|
|
332
|
+
`,
|
|
333
|
+
)
|
|
257
334
|
|
|
258
335
|
const replaced_by_newer_access_code = common_access_code_error
|
|
259
336
|
.extend({
|
|
@@ -267,6 +344,7 @@ const replaced_by_newer_access_code = common_access_code_error
|
|
|
267
344
|
|
|
268
345
|
const access_code_error = z
|
|
269
346
|
.discriminatedUnion('error_code', [
|
|
347
|
+
provider_issue,
|
|
270
348
|
smartthings_failed_to_set_access_code_error,
|
|
271
349
|
smartthings_failed_to_set_after_multiple_retries,
|
|
272
350
|
failed_to_set_on_device,
|
|
@@ -282,6 +360,7 @@ const access_code_error = z
|
|
|
282
360
|
august_lock_invalid_code_length,
|
|
283
361
|
august_lock_missing_keypad,
|
|
284
362
|
august_lock_temporarily_offline_error,
|
|
363
|
+
access_code_inactive_error,
|
|
285
364
|
salto_ks_user_not_subscribed,
|
|
286
365
|
wyze_duplicate_code_name,
|
|
287
366
|
wyze_potential_duplicate_code,
|
|
@@ -297,6 +376,7 @@ const access_code_error = z
|
|
|
297
376
|
export type AccessCodeError = z.infer<typeof access_code_error>
|
|
298
377
|
|
|
299
378
|
const _access_code_error_map = z.object({
|
|
379
|
+
provider_issue: provider_issue.optional().nullable(),
|
|
300
380
|
smartthings_failed_to_set_access_code:
|
|
301
381
|
smartthings_failed_to_set_access_code_error.optional().nullable(),
|
|
302
382
|
smartthings_failed_to_set_after_multiple_retries:
|
|
@@ -334,6 +414,7 @@ const _access_code_error_map = z.object({
|
|
|
334
414
|
.optional()
|
|
335
415
|
.nullable(),
|
|
336
416
|
august_lock_missing_keypad: august_lock_missing_keypad.optional().nullable(),
|
|
417
|
+
access_code_inactive: access_code_inactive_error.optional().nullable(),
|
|
337
418
|
salto_ks_user_not_subscribed: salto_ks_user_not_subscribed
|
|
338
419
|
.optional()
|
|
339
420
|
.nullable(),
|
|
@@ -423,13 +504,30 @@ const schlage_detected_duplicate = common_access_code_warning
|
|
|
423
504
|
`,
|
|
424
505
|
)
|
|
425
506
|
|
|
507
|
+
const provider_issue_warning = common_access_code_warning
|
|
508
|
+
.extend({
|
|
509
|
+
warning_code: z
|
|
510
|
+
.literal('provider_issue')
|
|
511
|
+
.describe(warning_code_description),
|
|
512
|
+
})
|
|
513
|
+
.describe(
|
|
514
|
+
'Indicates a provider-specific issue that may affect the access code. Check the warning message for details.',
|
|
515
|
+
)
|
|
516
|
+
|
|
426
517
|
const schlage_creation_outage = common_access_code_warning
|
|
427
518
|
.extend({
|
|
428
519
|
warning_code: z
|
|
429
520
|
.literal('schlage_creation_outage')
|
|
430
521
|
.describe(warning_code_description),
|
|
431
522
|
})
|
|
432
|
-
.describe(
|
|
523
|
+
.describe(
|
|
524
|
+
`
|
|
525
|
+
---
|
|
526
|
+
deprecated: Use \`provider_issue\` instead.
|
|
527
|
+
---
|
|
528
|
+
Received an error when attempting to create this code.
|
|
529
|
+
`,
|
|
530
|
+
)
|
|
433
531
|
|
|
434
532
|
const schlage_access_code_ambiguous_timezone_dst_risk =
|
|
435
533
|
common_access_code_warning
|
|
@@ -535,6 +633,7 @@ const being_deleted = common_access_code_warning
|
|
|
535
633
|
|
|
536
634
|
const access_code_warning = z
|
|
537
635
|
.discriminatedUnion('warning_code', [
|
|
636
|
+
provider_issue_warning,
|
|
538
637
|
smartthings_failed_to_set_access_code_warning,
|
|
539
638
|
schlage_detected_duplicate,
|
|
540
639
|
schlage_creation_outage,
|
|
@@ -559,6 +658,7 @@ const access_code_warning = z
|
|
|
559
658
|
export type AccessCodeWarning = z.infer<typeof access_code_warning>
|
|
560
659
|
|
|
561
660
|
const _access_code_warning_map = z.object({
|
|
661
|
+
provider_issue: provider_issue_warning.optional().nullable(),
|
|
562
662
|
smartthings_failed_to_set_access_code:
|
|
563
663
|
smartthings_failed_to_set_access_code_warning.optional().nullable(),
|
|
564
664
|
schlage_detected_duplicate: schlage_detected_duplicate.optional().nullable(),
|
|
@@ -105,6 +105,38 @@ const openapi: OpenAPISpec = {
|
|
|
105
105
|
discriminator: { propertyName: 'error_code' },
|
|
106
106
|
oneOf: [
|
|
107
107
|
{
|
|
108
|
+
description:
|
|
109
|
+
'Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.',
|
|
110
|
+
properties: {
|
|
111
|
+
created_at: {
|
|
112
|
+
description:
|
|
113
|
+
'Date and time at which Seam created the error.',
|
|
114
|
+
format: 'date-time',
|
|
115
|
+
type: 'string',
|
|
116
|
+
},
|
|
117
|
+
error_code: {
|
|
118
|
+
description:
|
|
119
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
120
|
+
enum: ['provider_issue'],
|
|
121
|
+
type: 'string',
|
|
122
|
+
},
|
|
123
|
+
is_access_code_error: {
|
|
124
|
+
description:
|
|
125
|
+
'Indicates that this is an access code error.',
|
|
126
|
+
enum: [true],
|
|
127
|
+
type: 'boolean',
|
|
128
|
+
},
|
|
129
|
+
message: {
|
|
130
|
+
description:
|
|
131
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
132
|
+
type: 'string',
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
136
|
+
type: 'object',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
deprecated: true,
|
|
108
140
|
description: 'Failed to set code on SmartThings device.',
|
|
109
141
|
properties: {
|
|
110
142
|
created_at: {
|
|
@@ -133,8 +165,11 @@ const openapi: OpenAPISpec = {
|
|
|
133
165
|
},
|
|
134
166
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
135
167
|
type: 'object',
|
|
168
|
+
'x-deprecated':
|
|
169
|
+
'Handled by the generic `failed_to_set_on_device` system.',
|
|
136
170
|
},
|
|
137
171
|
{
|
|
172
|
+
deprecated: true,
|
|
138
173
|
description: 'Failed to set code after multiple retries.',
|
|
139
174
|
properties: {
|
|
140
175
|
created_at: {
|
|
@@ -165,6 +200,8 @@ const openapi: OpenAPISpec = {
|
|
|
165
200
|
},
|
|
166
201
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
167
202
|
type: 'object',
|
|
203
|
+
'x-deprecated':
|
|
204
|
+
'Handled by the generic `failed_to_set_on_device` system.',
|
|
168
205
|
},
|
|
169
206
|
{
|
|
170
207
|
description: 'Failed to set code on device.',
|
|
@@ -492,6 +529,7 @@ const openapi: OpenAPISpec = {
|
|
|
492
529
|
type: 'object',
|
|
493
530
|
},
|
|
494
531
|
{
|
|
532
|
+
deprecated: true,
|
|
495
533
|
description: 'Invalid code length for August lock.',
|
|
496
534
|
properties: {
|
|
497
535
|
created_at: {
|
|
@@ -520,8 +558,10 @@ const openapi: OpenAPISpec = {
|
|
|
520
558
|
},
|
|
521
559
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
522
560
|
type: 'object',
|
|
561
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
523
562
|
},
|
|
524
563
|
{
|
|
564
|
+
deprecated: true,
|
|
525
565
|
description: 'August lock is missing a keypad.',
|
|
526
566
|
properties: {
|
|
527
567
|
created_at: {
|
|
@@ -550,8 +590,10 @@ const openapi: OpenAPISpec = {
|
|
|
550
590
|
},
|
|
551
591
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
552
592
|
type: 'object',
|
|
593
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
553
594
|
},
|
|
554
595
|
{
|
|
596
|
+
deprecated: true,
|
|
555
597
|
description: 'August lock is temporarily offline.',
|
|
556
598
|
properties: {
|
|
557
599
|
created_at: {
|
|
@@ -580,8 +622,41 @@ const openapi: OpenAPISpec = {
|
|
|
580
622
|
},
|
|
581
623
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
582
624
|
type: 'object',
|
|
625
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
description:
|
|
629
|
+
'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.',
|
|
630
|
+
properties: {
|
|
631
|
+
created_at: {
|
|
632
|
+
description:
|
|
633
|
+
'Date and time at which Seam created the error.',
|
|
634
|
+
format: 'date-time',
|
|
635
|
+
type: 'string',
|
|
636
|
+
},
|
|
637
|
+
error_code: {
|
|
638
|
+
description:
|
|
639
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
640
|
+
enum: ['access_code_inactive'],
|
|
641
|
+
type: 'string',
|
|
642
|
+
},
|
|
643
|
+
is_access_code_error: {
|
|
644
|
+
description:
|
|
645
|
+
'Indicates that this is an access code error.',
|
|
646
|
+
enum: [true],
|
|
647
|
+
type: 'boolean',
|
|
648
|
+
},
|
|
649
|
+
message: {
|
|
650
|
+
description:
|
|
651
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
652
|
+
type: 'string',
|
|
653
|
+
},
|
|
654
|
+
},
|
|
655
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
656
|
+
type: 'object',
|
|
583
657
|
},
|
|
584
658
|
{
|
|
659
|
+
deprecated: true,
|
|
585
660
|
description: 'Salto site user is not subscribed.',
|
|
586
661
|
properties: {
|
|
587
662
|
created_at: {
|
|
@@ -610,6 +685,7 @@ const openapi: OpenAPISpec = {
|
|
|
610
685
|
},
|
|
611
686
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
612
687
|
type: 'object',
|
|
688
|
+
'x-deprecated': 'Use `access_code_inactive` instead.',
|
|
613
689
|
},
|
|
614
690
|
{
|
|
615
691
|
deprecated: true,
|
|
@@ -676,6 +752,7 @@ const openapi: OpenAPISpec = {
|
|
|
676
752
|
'x-deprecated': 'Use `duplicate_code_on_device` instead.',
|
|
677
753
|
},
|
|
678
754
|
{
|
|
755
|
+
deprecated: true,
|
|
679
756
|
description:
|
|
680
757
|
'No Dormakaba Oracode user levels configured for the requested time range.',
|
|
681
758
|
properties: {
|
|
@@ -705,8 +782,10 @@ const openapi: OpenAPISpec = {
|
|
|
705
782
|
},
|
|
706
783
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
707
784
|
type: 'object',
|
|
785
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
708
786
|
},
|
|
709
787
|
{
|
|
788
|
+
deprecated: true,
|
|
710
789
|
description:
|
|
711
790
|
'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.',
|
|
712
791
|
properties: {
|
|
@@ -736,8 +815,10 @@ const openapi: OpenAPISpec = {
|
|
|
736
815
|
},
|
|
737
816
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
738
817
|
type: 'object',
|
|
818
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
739
819
|
},
|
|
740
820
|
{
|
|
821
|
+
deprecated: true,
|
|
741
822
|
description: 'KeyNest locker is not supported.',
|
|
742
823
|
properties: {
|
|
743
824
|
created_at: {
|
|
@@ -766,6 +847,7 @@ const openapi: OpenAPISpec = {
|
|
|
766
847
|
},
|
|
767
848
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
768
849
|
type: 'object',
|
|
850
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
769
851
|
},
|
|
770
852
|
{
|
|
771
853
|
description:
|
|
@@ -1719,6 +1801,31 @@ const openapi: OpenAPISpec = {
|
|
|
1719
1801
|
'Warnings associated with the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).',
|
|
1720
1802
|
discriminator: { propertyName: 'warning_code' },
|
|
1721
1803
|
oneOf: [
|
|
1804
|
+
{
|
|
1805
|
+
description:
|
|
1806
|
+
'Indicates a provider-specific issue that may affect the access code. Check the warning message for details.',
|
|
1807
|
+
properties: {
|
|
1808
|
+
created_at: {
|
|
1809
|
+
description:
|
|
1810
|
+
'Date and time at which Seam created the warning.',
|
|
1811
|
+
format: 'date-time',
|
|
1812
|
+
type: 'string',
|
|
1813
|
+
},
|
|
1814
|
+
message: {
|
|
1815
|
+
description:
|
|
1816
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
1817
|
+
type: 'string',
|
|
1818
|
+
},
|
|
1819
|
+
warning_code: {
|
|
1820
|
+
description:
|
|
1821
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
1822
|
+
enum: ['provider_issue'],
|
|
1823
|
+
type: 'string',
|
|
1824
|
+
},
|
|
1825
|
+
},
|
|
1826
|
+
required: ['message', 'warning_code'],
|
|
1827
|
+
type: 'object',
|
|
1828
|
+
},
|
|
1722
1829
|
{
|
|
1723
1830
|
description: 'Failed to set code on SmartThings device.',
|
|
1724
1831
|
properties: {
|
|
@@ -1771,6 +1878,7 @@ const openapi: OpenAPISpec = {
|
|
|
1771
1878
|
'Use `duplicate_code_on_device` error instead.',
|
|
1772
1879
|
},
|
|
1773
1880
|
{
|
|
1881
|
+
deprecated: true,
|
|
1774
1882
|
description:
|
|
1775
1883
|
'Received an error when attempting to create this code.',
|
|
1776
1884
|
properties: {
|
|
@@ -1794,6 +1902,7 @@ const openapi: OpenAPISpec = {
|
|
|
1794
1902
|
},
|
|
1795
1903
|
required: ['message', 'warning_code'],
|
|
1796
1904
|
type: 'object',
|
|
1905
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
1797
1906
|
},
|
|
1798
1907
|
{
|
|
1799
1908
|
description:
|
|
@@ -27478,6 +27587,38 @@ const openapi: OpenAPISpec = {
|
|
|
27478
27587
|
discriminator: { propertyName: 'error_code' },
|
|
27479
27588
|
oneOf: [
|
|
27480
27589
|
{
|
|
27590
|
+
description:
|
|
27591
|
+
'Indicates a provider-specific issue that prevents the access code from being set or managed. Check the error message for details.',
|
|
27592
|
+
properties: {
|
|
27593
|
+
created_at: {
|
|
27594
|
+
description:
|
|
27595
|
+
'Date and time at which Seam created the error.',
|
|
27596
|
+
format: 'date-time',
|
|
27597
|
+
type: 'string',
|
|
27598
|
+
},
|
|
27599
|
+
error_code: {
|
|
27600
|
+
description:
|
|
27601
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
27602
|
+
enum: ['provider_issue'],
|
|
27603
|
+
type: 'string',
|
|
27604
|
+
},
|
|
27605
|
+
is_access_code_error: {
|
|
27606
|
+
description:
|
|
27607
|
+
'Indicates that this is an access code error.',
|
|
27608
|
+
enum: [true],
|
|
27609
|
+
type: 'boolean',
|
|
27610
|
+
},
|
|
27611
|
+
message: {
|
|
27612
|
+
description:
|
|
27613
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
27614
|
+
type: 'string',
|
|
27615
|
+
},
|
|
27616
|
+
},
|
|
27617
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27618
|
+
type: 'object',
|
|
27619
|
+
},
|
|
27620
|
+
{
|
|
27621
|
+
deprecated: true,
|
|
27481
27622
|
description: 'Failed to set code on SmartThings device.',
|
|
27482
27623
|
properties: {
|
|
27483
27624
|
created_at: {
|
|
@@ -27506,8 +27647,11 @@ const openapi: OpenAPISpec = {
|
|
|
27506
27647
|
},
|
|
27507
27648
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27508
27649
|
type: 'object',
|
|
27650
|
+
'x-deprecated':
|
|
27651
|
+
'Handled by the generic `failed_to_set_on_device` system.',
|
|
27509
27652
|
},
|
|
27510
27653
|
{
|
|
27654
|
+
deprecated: true,
|
|
27511
27655
|
description: 'Failed to set code after multiple retries.',
|
|
27512
27656
|
properties: {
|
|
27513
27657
|
created_at: {
|
|
@@ -27538,6 +27682,8 @@ const openapi: OpenAPISpec = {
|
|
|
27538
27682
|
},
|
|
27539
27683
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27540
27684
|
type: 'object',
|
|
27685
|
+
'x-deprecated':
|
|
27686
|
+
'Handled by the generic `failed_to_set_on_device` system.',
|
|
27541
27687
|
},
|
|
27542
27688
|
{
|
|
27543
27689
|
description: 'Failed to set code on device.',
|
|
@@ -27865,6 +28011,7 @@ const openapi: OpenAPISpec = {
|
|
|
27865
28011
|
type: 'object',
|
|
27866
28012
|
},
|
|
27867
28013
|
{
|
|
28014
|
+
deprecated: true,
|
|
27868
28015
|
description: 'Invalid code length for August lock.',
|
|
27869
28016
|
properties: {
|
|
27870
28017
|
created_at: {
|
|
@@ -27893,8 +28040,10 @@ const openapi: OpenAPISpec = {
|
|
|
27893
28040
|
},
|
|
27894
28041
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27895
28042
|
type: 'object',
|
|
28043
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
27896
28044
|
},
|
|
27897
28045
|
{
|
|
28046
|
+
deprecated: true,
|
|
27898
28047
|
description: 'August lock is missing a keypad.',
|
|
27899
28048
|
properties: {
|
|
27900
28049
|
created_at: {
|
|
@@ -27923,8 +28072,10 @@ const openapi: OpenAPISpec = {
|
|
|
27923
28072
|
},
|
|
27924
28073
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27925
28074
|
type: 'object',
|
|
28075
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
27926
28076
|
},
|
|
27927
28077
|
{
|
|
28078
|
+
deprecated: true,
|
|
27928
28079
|
description: 'August lock is temporarily offline.',
|
|
27929
28080
|
properties: {
|
|
27930
28081
|
created_at: {
|
|
@@ -27953,8 +28104,41 @@ const openapi: OpenAPISpec = {
|
|
|
27953
28104
|
},
|
|
27954
28105
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27955
28106
|
type: 'object',
|
|
28107
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
28108
|
+
},
|
|
28109
|
+
{
|
|
28110
|
+
description:
|
|
28111
|
+
'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.',
|
|
28112
|
+
properties: {
|
|
28113
|
+
created_at: {
|
|
28114
|
+
description:
|
|
28115
|
+
'Date and time at which Seam created the error.',
|
|
28116
|
+
format: 'date-time',
|
|
28117
|
+
type: 'string',
|
|
28118
|
+
},
|
|
28119
|
+
error_code: {
|
|
28120
|
+
description:
|
|
28121
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
28122
|
+
enum: ['access_code_inactive'],
|
|
28123
|
+
type: 'string',
|
|
28124
|
+
},
|
|
28125
|
+
is_access_code_error: {
|
|
28126
|
+
description:
|
|
28127
|
+
'Indicates that this is an access code error.',
|
|
28128
|
+
enum: [true],
|
|
28129
|
+
type: 'boolean',
|
|
28130
|
+
},
|
|
28131
|
+
message: {
|
|
28132
|
+
description:
|
|
28133
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
28134
|
+
type: 'string',
|
|
28135
|
+
},
|
|
28136
|
+
},
|
|
28137
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
28138
|
+
type: 'object',
|
|
27956
28139
|
},
|
|
27957
28140
|
{
|
|
28141
|
+
deprecated: true,
|
|
27958
28142
|
description: 'Salto site user is not subscribed.',
|
|
27959
28143
|
properties: {
|
|
27960
28144
|
created_at: {
|
|
@@ -27983,6 +28167,7 @@ const openapi: OpenAPISpec = {
|
|
|
27983
28167
|
},
|
|
27984
28168
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27985
28169
|
type: 'object',
|
|
28170
|
+
'x-deprecated': 'Use `access_code_inactive` instead.',
|
|
27986
28171
|
},
|
|
27987
28172
|
{
|
|
27988
28173
|
deprecated: true,
|
|
@@ -28049,6 +28234,7 @@ const openapi: OpenAPISpec = {
|
|
|
28049
28234
|
'x-deprecated': 'Use `duplicate_code_on_device` instead.',
|
|
28050
28235
|
},
|
|
28051
28236
|
{
|
|
28237
|
+
deprecated: true,
|
|
28052
28238
|
description:
|
|
28053
28239
|
'No Dormakaba Oracode user levels configured for the requested time range.',
|
|
28054
28240
|
properties: {
|
|
@@ -28078,8 +28264,10 @@ const openapi: OpenAPISpec = {
|
|
|
28078
28264
|
},
|
|
28079
28265
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
28080
28266
|
type: 'object',
|
|
28267
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
28081
28268
|
},
|
|
28082
28269
|
{
|
|
28270
|
+
deprecated: true,
|
|
28083
28271
|
description:
|
|
28084
28272
|
'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.',
|
|
28085
28273
|
properties: {
|
|
@@ -28109,8 +28297,10 @@ const openapi: OpenAPISpec = {
|
|
|
28109
28297
|
},
|
|
28110
28298
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
28111
28299
|
type: 'object',
|
|
28300
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
28112
28301
|
},
|
|
28113
28302
|
{
|
|
28303
|
+
deprecated: true,
|
|
28114
28304
|
description: 'KeyNest locker is not supported.',
|
|
28115
28305
|
properties: {
|
|
28116
28306
|
created_at: {
|
|
@@ -28139,6 +28329,7 @@ const openapi: OpenAPISpec = {
|
|
|
28139
28329
|
},
|
|
28140
28330
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
28141
28331
|
type: 'object',
|
|
28332
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
28142
28333
|
},
|
|
28143
28334
|
{
|
|
28144
28335
|
description:
|
|
@@ -28781,6 +28972,31 @@ const openapi: OpenAPISpec = {
|
|
|
28781
28972
|
'Warnings associated with the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes).',
|
|
28782
28973
|
discriminator: { propertyName: 'warning_code' },
|
|
28783
28974
|
oneOf: [
|
|
28975
|
+
{
|
|
28976
|
+
description:
|
|
28977
|
+
'Indicates a provider-specific issue that may affect the access code. Check the warning message for details.',
|
|
28978
|
+
properties: {
|
|
28979
|
+
created_at: {
|
|
28980
|
+
description:
|
|
28981
|
+
'Date and time at which Seam created the warning.',
|
|
28982
|
+
format: 'date-time',
|
|
28983
|
+
type: 'string',
|
|
28984
|
+
},
|
|
28985
|
+
message: {
|
|
28986
|
+
description:
|
|
28987
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
28988
|
+
type: 'string',
|
|
28989
|
+
},
|
|
28990
|
+
warning_code: {
|
|
28991
|
+
description:
|
|
28992
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
28993
|
+
enum: ['provider_issue'],
|
|
28994
|
+
type: 'string',
|
|
28995
|
+
},
|
|
28996
|
+
},
|
|
28997
|
+
required: ['message', 'warning_code'],
|
|
28998
|
+
type: 'object',
|
|
28999
|
+
},
|
|
28784
29000
|
{
|
|
28785
29001
|
description: 'Failed to set code on SmartThings device.',
|
|
28786
29002
|
properties: {
|
|
@@ -28833,6 +29049,7 @@ const openapi: OpenAPISpec = {
|
|
|
28833
29049
|
'Use `duplicate_code_on_device` error instead.',
|
|
28834
29050
|
},
|
|
28835
29051
|
{
|
|
29052
|
+
deprecated: true,
|
|
28836
29053
|
description:
|
|
28837
29054
|
'Received an error when attempting to create this code.',
|
|
28838
29055
|
properties: {
|
|
@@ -28856,6 +29073,7 @@ const openapi: OpenAPISpec = {
|
|
|
28856
29073
|
},
|
|
28857
29074
|
required: ['message', 'warning_code'],
|
|
28858
29075
|
type: 'object',
|
|
29076
|
+
'x-deprecated': 'Use `provider_issue` instead.',
|
|
28859
29077
|
},
|
|
28860
29078
|
{
|
|
28861
29079
|
description:
|