@seamapi/types 1.869.0 → 1.871.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 +283 -11
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1075 -0
- package/dist/index.cjs +283 -11
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +333 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +61 -3
- 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 +123 -0
- package/lib/seam/connect/models/batch.d.ts +330 -0
- package/lib/seam/connect/openapi.js +222 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +418 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +80 -3
- package/src/lib/seam/connect/openapi.ts +256 -0
- package/src/lib/seam/connect/route-types.ts +484 -0
package/package.json
CHANGED
|
@@ -39,11 +39,33 @@ const smartthings_failed_to_set_after_multiple_retries =
|
|
|
39
39
|
})
|
|
40
40
|
.describe('Failed to set code after multiple retries.')
|
|
41
41
|
|
|
42
|
+
const modified_field = z.object({
|
|
43
|
+
field: z
|
|
44
|
+
.string()
|
|
45
|
+
.describe(
|
|
46
|
+
'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
|
|
47
|
+
),
|
|
48
|
+
from: z.string().nullable().describe('The previous value of the field.'),
|
|
49
|
+
to: z.string().nullable().describe('The new value of the field.'),
|
|
50
|
+
})
|
|
51
|
+
|
|
42
52
|
const code_modified_external_to_seam_error = common_access_code_error
|
|
43
53
|
.extend({
|
|
44
54
|
error_code: z
|
|
45
55
|
.literal('code_modified_external_to_seam')
|
|
46
56
|
.describe(error_code_description),
|
|
57
|
+
change_type: z
|
|
58
|
+
.enum(['modified', 'removed'])
|
|
59
|
+
.optional()
|
|
60
|
+
.describe(
|
|
61
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
62
|
+
),
|
|
63
|
+
modified_fields: z
|
|
64
|
+
.array(modified_field)
|
|
65
|
+
.optional()
|
|
66
|
+
.describe(
|
|
67
|
+
'List of fields that were changed externally, with their previous and new values.',
|
|
68
|
+
),
|
|
47
69
|
})
|
|
48
70
|
.describe(
|
|
49
71
|
'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
@@ -103,13 +125,30 @@ const no_space_for_access_code_on_device = common_access_code_error
|
|
|
103
125
|
})
|
|
104
126
|
.describe('No space for access code on device.')
|
|
105
127
|
|
|
128
|
+
const access_code_state_unconfirmed = common_access_code_error
|
|
129
|
+
.extend({
|
|
130
|
+
error_code: z
|
|
131
|
+
.literal('access_code_state_unconfirmed')
|
|
132
|
+
.describe(error_code_description),
|
|
133
|
+
})
|
|
134
|
+
.describe(
|
|
135
|
+
'Indicates that the provider cannot confirm whether the access code was set or removed on the device.',
|
|
136
|
+
)
|
|
137
|
+
|
|
106
138
|
const kwikset_unable_to_confirm_code = common_access_code_error
|
|
107
139
|
.extend({
|
|
108
140
|
error_code: z
|
|
109
141
|
.literal('kwikset_unable_to_confirm_code')
|
|
110
142
|
.describe(error_code_description),
|
|
111
143
|
})
|
|
112
|
-
.describe(
|
|
144
|
+
.describe(
|
|
145
|
+
`
|
|
146
|
+
---
|
|
147
|
+
deprecated: Use \`access_code_state_unconfirmed\` instead.
|
|
148
|
+
---
|
|
149
|
+
Unable to confirm that the access code is set on Kwikset device.
|
|
150
|
+
`,
|
|
151
|
+
)
|
|
113
152
|
|
|
114
153
|
const kwikset_unable_to_confirm_deletion = common_access_code_error
|
|
115
154
|
.extend({
|
|
@@ -118,7 +157,12 @@ const kwikset_unable_to_confirm_deletion = common_access_code_error
|
|
|
118
157
|
.describe(error_code_description),
|
|
119
158
|
})
|
|
120
159
|
.describe(
|
|
121
|
-
|
|
160
|
+
`
|
|
161
|
+
---
|
|
162
|
+
deprecated: Use \`access_code_state_unconfirmed\` instead.
|
|
163
|
+
---
|
|
164
|
+
Unable to confirm the deletion of the access code on Kwikset device.
|
|
165
|
+
`,
|
|
122
166
|
)
|
|
123
167
|
|
|
124
168
|
const kwikset_insufficient_permissions = common_access_code_error
|
|
@@ -230,6 +274,7 @@ const access_code_error = z
|
|
|
230
274
|
duplicate_code_on_device,
|
|
231
275
|
duplicate_code_attempt_prevented,
|
|
232
276
|
no_space_for_access_code_on_device,
|
|
277
|
+
access_code_state_unconfirmed,
|
|
233
278
|
kwikset_unable_to_confirm_code,
|
|
234
279
|
|
|
235
280
|
kwikset_unable_to_confirm_deletion,
|
|
@@ -267,6 +312,9 @@ const _access_code_error_map = z.object({
|
|
|
267
312
|
duplicate_code_attempt_prevented: duplicate_code_attempt_prevented
|
|
268
313
|
.optional()
|
|
269
314
|
.nullable(),
|
|
315
|
+
access_code_state_unconfirmed: access_code_state_unconfirmed
|
|
316
|
+
.optional()
|
|
317
|
+
.nullable(),
|
|
270
318
|
kwikset_unable_to_confirm_code: kwikset_unable_to_confirm_code
|
|
271
319
|
.optional()
|
|
272
320
|
.nullable(),
|
|
@@ -343,6 +391,18 @@ const code_modified_external_to_seam_warning = common_access_code_warning
|
|
|
343
391
|
warning_code: z
|
|
344
392
|
.literal('code_modified_external_to_seam')
|
|
345
393
|
.describe(warning_code_description),
|
|
394
|
+
change_type: z
|
|
395
|
+
.enum(['modified', 'removed'])
|
|
396
|
+
.optional()
|
|
397
|
+
.describe(
|
|
398
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
399
|
+
),
|
|
400
|
+
modified_fields: z
|
|
401
|
+
.array(modified_field)
|
|
402
|
+
.optional()
|
|
403
|
+
.describe(
|
|
404
|
+
'List of fields that were changed externally, with their previous and new values.',
|
|
405
|
+
),
|
|
346
406
|
})
|
|
347
407
|
.describe(
|
|
348
408
|
'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
@@ -432,6 +492,16 @@ const kwikset_unable_to_confirm_code_warning = common_access_code_warning
|
|
|
432
492
|
})
|
|
433
493
|
.describe('Unable to confirm that the access code is set on Kwikset device.')
|
|
434
494
|
|
|
495
|
+
const access_code_inactive = common_access_code_warning
|
|
496
|
+
.extend({
|
|
497
|
+
warning_code: z
|
|
498
|
+
.literal('access_code_inactive')
|
|
499
|
+
.describe(warning_code_description),
|
|
500
|
+
})
|
|
501
|
+
.describe(
|
|
502
|
+
'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.',
|
|
503
|
+
)
|
|
504
|
+
|
|
435
505
|
const ultraloq_access_code_disabled = common_access_code_warning
|
|
436
506
|
.extend({
|
|
437
507
|
warning_code: z
|
|
@@ -439,7 +509,12 @@ const ultraloq_access_code_disabled = common_access_code_warning
|
|
|
439
509
|
.describe(warning_code_description),
|
|
440
510
|
})
|
|
441
511
|
.describe(
|
|
442
|
-
|
|
512
|
+
`
|
|
513
|
+
---
|
|
514
|
+
deprecated: Use \`access_code_inactive\` instead.
|
|
515
|
+
---
|
|
516
|
+
Access code is disabled on Ultraloq device. Re-enable through the Ultraloq mobile app.
|
|
517
|
+
`,
|
|
443
518
|
)
|
|
444
519
|
|
|
445
520
|
const using_backup_access_code = common_access_code_warning
|
|
@@ -472,6 +547,7 @@ const access_code_warning = z
|
|
|
472
547
|
igloo_algopin_must_be_used_within_24_hours,
|
|
473
548
|
management_transferred,
|
|
474
549
|
kwikset_unable_to_confirm_code_warning,
|
|
550
|
+
access_code_inactive,
|
|
475
551
|
ultraloq_access_code_disabled,
|
|
476
552
|
using_backup_access_code,
|
|
477
553
|
being_deleted,
|
|
@@ -508,6 +584,7 @@ const _access_code_warning_map = z.object({
|
|
|
508
584
|
kwikset_unable_to_confirm_code_warning: kwikset_unable_to_confirm_code_warning
|
|
509
585
|
.optional()
|
|
510
586
|
.nullable(),
|
|
587
|
+
access_code_inactive: access_code_inactive.optional().nullable(),
|
|
511
588
|
ultraloq_access_code_disabled: ultraloq_access_code_disabled
|
|
512
589
|
.optional()
|
|
513
590
|
.nullable(),
|
|
@@ -330,6 +330,38 @@ const openapi: OpenAPISpec = {
|
|
|
330
330
|
type: 'object',
|
|
331
331
|
},
|
|
332
332
|
{
|
|
333
|
+
description:
|
|
334
|
+
'Indicates that the provider cannot confirm whether the access code was set or removed on the device.',
|
|
335
|
+
properties: {
|
|
336
|
+
created_at: {
|
|
337
|
+
description:
|
|
338
|
+
'Date and time at which Seam created the error.',
|
|
339
|
+
format: 'date-time',
|
|
340
|
+
type: 'string',
|
|
341
|
+
},
|
|
342
|
+
error_code: {
|
|
343
|
+
description:
|
|
344
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
345
|
+
enum: ['access_code_state_unconfirmed'],
|
|
346
|
+
type: 'string',
|
|
347
|
+
},
|
|
348
|
+
is_access_code_error: {
|
|
349
|
+
description:
|
|
350
|
+
'Indicates that this is an access code error.',
|
|
351
|
+
enum: [true],
|
|
352
|
+
type: 'boolean',
|
|
353
|
+
},
|
|
354
|
+
message: {
|
|
355
|
+
description:
|
|
356
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
357
|
+
type: 'string',
|
|
358
|
+
},
|
|
359
|
+
},
|
|
360
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
361
|
+
type: 'object',
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
deprecated: true,
|
|
333
365
|
description:
|
|
334
366
|
'Unable to confirm that the access code is set on Kwikset device.',
|
|
335
367
|
properties: {
|
|
@@ -359,8 +391,11 @@ const openapi: OpenAPISpec = {
|
|
|
359
391
|
},
|
|
360
392
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
361
393
|
type: 'object',
|
|
394
|
+
'x-deprecated':
|
|
395
|
+
'Use `access_code_state_unconfirmed` instead.',
|
|
362
396
|
},
|
|
363
397
|
{
|
|
398
|
+
deprecated: true,
|
|
364
399
|
description:
|
|
365
400
|
'Unable to confirm the deletion of the access code on Kwikset device.',
|
|
366
401
|
properties: {
|
|
@@ -390,11 +425,19 @@ const openapi: OpenAPISpec = {
|
|
|
390
425
|
},
|
|
391
426
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
392
427
|
type: 'object',
|
|
428
|
+
'x-deprecated':
|
|
429
|
+
'Use `access_code_state_unconfirmed` instead.',
|
|
393
430
|
},
|
|
394
431
|
{
|
|
395
432
|
description:
|
|
396
433
|
'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
397
434
|
properties: {
|
|
435
|
+
change_type: {
|
|
436
|
+
description:
|
|
437
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
438
|
+
enum: ['modified', 'removed'],
|
|
439
|
+
type: 'string',
|
|
440
|
+
},
|
|
398
441
|
created_at: {
|
|
399
442
|
description:
|
|
400
443
|
'Date and time at which Seam created the error.',
|
|
@@ -418,6 +461,32 @@ const openapi: OpenAPISpec = {
|
|
|
418
461
|
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
419
462
|
type: 'string',
|
|
420
463
|
},
|
|
464
|
+
modified_fields: {
|
|
465
|
+
description:
|
|
466
|
+
'List of fields that were changed externally, with their previous and new values.',
|
|
467
|
+
items: {
|
|
468
|
+
properties: {
|
|
469
|
+
field: {
|
|
470
|
+
description:
|
|
471
|
+
'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
|
|
472
|
+
type: 'string',
|
|
473
|
+
},
|
|
474
|
+
from: {
|
|
475
|
+
description: 'The previous value of the field.',
|
|
476
|
+
nullable: true,
|
|
477
|
+
type: 'string',
|
|
478
|
+
},
|
|
479
|
+
to: {
|
|
480
|
+
description: 'The new value of the field.',
|
|
481
|
+
nullable: true,
|
|
482
|
+
type: 'string',
|
|
483
|
+
},
|
|
484
|
+
},
|
|
485
|
+
required: ['field', 'from', 'to'],
|
|
486
|
+
type: 'object',
|
|
487
|
+
},
|
|
488
|
+
type: 'array',
|
|
489
|
+
},
|
|
421
490
|
},
|
|
422
491
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
423
492
|
type: 'object',
|
|
@@ -1755,6 +1824,12 @@ const openapi: OpenAPISpec = {
|
|
|
1755
1824
|
description:
|
|
1756
1825
|
'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
1757
1826
|
properties: {
|
|
1827
|
+
change_type: {
|
|
1828
|
+
description:
|
|
1829
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
1830
|
+
enum: ['modified', 'removed'],
|
|
1831
|
+
type: 'string',
|
|
1832
|
+
},
|
|
1758
1833
|
created_at: {
|
|
1759
1834
|
description:
|
|
1760
1835
|
'Date and time at which Seam created the warning.',
|
|
@@ -1766,6 +1841,32 @@ const openapi: OpenAPISpec = {
|
|
|
1766
1841
|
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
1767
1842
|
type: 'string',
|
|
1768
1843
|
},
|
|
1844
|
+
modified_fields: {
|
|
1845
|
+
description:
|
|
1846
|
+
'List of fields that were changed externally, with their previous and new values.',
|
|
1847
|
+
items: {
|
|
1848
|
+
properties: {
|
|
1849
|
+
field: {
|
|
1850
|
+
description:
|
|
1851
|
+
'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
|
|
1852
|
+
type: 'string',
|
|
1853
|
+
},
|
|
1854
|
+
from: {
|
|
1855
|
+
description: 'The previous value of the field.',
|
|
1856
|
+
nullable: true,
|
|
1857
|
+
type: 'string',
|
|
1858
|
+
},
|
|
1859
|
+
to: {
|
|
1860
|
+
description: 'The new value of the field.',
|
|
1861
|
+
nullable: true,
|
|
1862
|
+
type: 'string',
|
|
1863
|
+
},
|
|
1864
|
+
},
|
|
1865
|
+
required: ['field', 'from', 'to'],
|
|
1866
|
+
type: 'object',
|
|
1867
|
+
},
|
|
1868
|
+
type: 'array',
|
|
1869
|
+
},
|
|
1769
1870
|
warning_code: {
|
|
1770
1871
|
description:
|
|
1771
1872
|
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
@@ -1948,6 +2049,32 @@ const openapi: OpenAPISpec = {
|
|
|
1948
2049
|
type: 'object',
|
|
1949
2050
|
},
|
|
1950
2051
|
{
|
|
2052
|
+
description:
|
|
2053
|
+
'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.',
|
|
2054
|
+
properties: {
|
|
2055
|
+
created_at: {
|
|
2056
|
+
description:
|
|
2057
|
+
'Date and time at which Seam created the warning.',
|
|
2058
|
+
format: 'date-time',
|
|
2059
|
+
type: 'string',
|
|
2060
|
+
},
|
|
2061
|
+
message: {
|
|
2062
|
+
description:
|
|
2063
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
2064
|
+
type: 'string',
|
|
2065
|
+
},
|
|
2066
|
+
warning_code: {
|
|
2067
|
+
description:
|
|
2068
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
2069
|
+
enum: ['access_code_inactive'],
|
|
2070
|
+
type: 'string',
|
|
2071
|
+
},
|
|
2072
|
+
},
|
|
2073
|
+
required: ['message', 'warning_code'],
|
|
2074
|
+
type: 'object',
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
deprecated: true,
|
|
1951
2078
|
description:
|
|
1952
2079
|
'Access code is disabled on Ultraloq device. Re-enable through the Ultraloq mobile app.',
|
|
1953
2080
|
properties: {
|
|
@@ -1971,6 +2098,7 @@ const openapi: OpenAPISpec = {
|
|
|
1971
2098
|
},
|
|
1972
2099
|
required: ['message', 'warning_code'],
|
|
1973
2100
|
type: 'object',
|
|
2101
|
+
'x-deprecated': 'Use `access_code_inactive` instead.',
|
|
1974
2102
|
},
|
|
1975
2103
|
{
|
|
1976
2104
|
description:
|
|
@@ -27575,6 +27703,38 @@ const openapi: OpenAPISpec = {
|
|
|
27575
27703
|
type: 'object',
|
|
27576
27704
|
},
|
|
27577
27705
|
{
|
|
27706
|
+
description:
|
|
27707
|
+
'Indicates that the provider cannot confirm whether the access code was set or removed on the device.',
|
|
27708
|
+
properties: {
|
|
27709
|
+
created_at: {
|
|
27710
|
+
description:
|
|
27711
|
+
'Date and time at which Seam created the error.',
|
|
27712
|
+
format: 'date-time',
|
|
27713
|
+
type: 'string',
|
|
27714
|
+
},
|
|
27715
|
+
error_code: {
|
|
27716
|
+
description:
|
|
27717
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
27718
|
+
enum: ['access_code_state_unconfirmed'],
|
|
27719
|
+
type: 'string',
|
|
27720
|
+
},
|
|
27721
|
+
is_access_code_error: {
|
|
27722
|
+
description:
|
|
27723
|
+
'Indicates that this is an access code error.',
|
|
27724
|
+
enum: [true],
|
|
27725
|
+
type: 'boolean',
|
|
27726
|
+
},
|
|
27727
|
+
message: {
|
|
27728
|
+
description:
|
|
27729
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
27730
|
+
type: 'string',
|
|
27731
|
+
},
|
|
27732
|
+
},
|
|
27733
|
+
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27734
|
+
type: 'object',
|
|
27735
|
+
},
|
|
27736
|
+
{
|
|
27737
|
+
deprecated: true,
|
|
27578
27738
|
description:
|
|
27579
27739
|
'Unable to confirm that the access code is set on Kwikset device.',
|
|
27580
27740
|
properties: {
|
|
@@ -27604,8 +27764,11 @@ const openapi: OpenAPISpec = {
|
|
|
27604
27764
|
},
|
|
27605
27765
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27606
27766
|
type: 'object',
|
|
27767
|
+
'x-deprecated':
|
|
27768
|
+
'Use `access_code_state_unconfirmed` instead.',
|
|
27607
27769
|
},
|
|
27608
27770
|
{
|
|
27771
|
+
deprecated: true,
|
|
27609
27772
|
description:
|
|
27610
27773
|
'Unable to confirm the deletion of the access code on Kwikset device.',
|
|
27611
27774
|
properties: {
|
|
@@ -27635,11 +27798,19 @@ const openapi: OpenAPISpec = {
|
|
|
27635
27798
|
},
|
|
27636
27799
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27637
27800
|
type: 'object',
|
|
27801
|
+
'x-deprecated':
|
|
27802
|
+
'Use `access_code_state_unconfirmed` instead.',
|
|
27638
27803
|
},
|
|
27639
27804
|
{
|
|
27640
27805
|
description:
|
|
27641
27806
|
'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
27642
27807
|
properties: {
|
|
27808
|
+
change_type: {
|
|
27809
|
+
description:
|
|
27810
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
27811
|
+
enum: ['modified', 'removed'],
|
|
27812
|
+
type: 'string',
|
|
27813
|
+
},
|
|
27643
27814
|
created_at: {
|
|
27644
27815
|
description:
|
|
27645
27816
|
'Date and time at which Seam created the error.',
|
|
@@ -27663,6 +27834,32 @@ const openapi: OpenAPISpec = {
|
|
|
27663
27834
|
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
27664
27835
|
type: 'string',
|
|
27665
27836
|
},
|
|
27837
|
+
modified_fields: {
|
|
27838
|
+
description:
|
|
27839
|
+
'List of fields that were changed externally, with their previous and new values.',
|
|
27840
|
+
items: {
|
|
27841
|
+
properties: {
|
|
27842
|
+
field: {
|
|
27843
|
+
description:
|
|
27844
|
+
'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
|
|
27845
|
+
type: 'string',
|
|
27846
|
+
},
|
|
27847
|
+
from: {
|
|
27848
|
+
description: 'The previous value of the field.',
|
|
27849
|
+
nullable: true,
|
|
27850
|
+
type: 'string',
|
|
27851
|
+
},
|
|
27852
|
+
to: {
|
|
27853
|
+
description: 'The new value of the field.',
|
|
27854
|
+
nullable: true,
|
|
27855
|
+
type: 'string',
|
|
27856
|
+
},
|
|
27857
|
+
},
|
|
27858
|
+
required: ['field', 'from', 'to'],
|
|
27859
|
+
type: 'object',
|
|
27860
|
+
},
|
|
27861
|
+
type: 'array',
|
|
27862
|
+
},
|
|
27666
27863
|
},
|
|
27667
27864
|
required: ['message', 'is_access_code_error', 'error_code'],
|
|
27668
27865
|
type: 'object',
|
|
@@ -28689,6 +28886,12 @@ const openapi: OpenAPISpec = {
|
|
|
28689
28886
|
description:
|
|
28690
28887
|
'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
28691
28888
|
properties: {
|
|
28889
|
+
change_type: {
|
|
28890
|
+
description:
|
|
28891
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
28892
|
+
enum: ['modified', 'removed'],
|
|
28893
|
+
type: 'string',
|
|
28894
|
+
},
|
|
28692
28895
|
created_at: {
|
|
28693
28896
|
description:
|
|
28694
28897
|
'Date and time at which Seam created the warning.',
|
|
@@ -28700,6 +28903,32 @@ const openapi: OpenAPISpec = {
|
|
|
28700
28903
|
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
28701
28904
|
type: 'string',
|
|
28702
28905
|
},
|
|
28906
|
+
modified_fields: {
|
|
28907
|
+
description:
|
|
28908
|
+
'List of fields that were changed externally, with their previous and new values.',
|
|
28909
|
+
items: {
|
|
28910
|
+
properties: {
|
|
28911
|
+
field: {
|
|
28912
|
+
description:
|
|
28913
|
+
'The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).',
|
|
28914
|
+
type: 'string',
|
|
28915
|
+
},
|
|
28916
|
+
from: {
|
|
28917
|
+
description: 'The previous value of the field.',
|
|
28918
|
+
nullable: true,
|
|
28919
|
+
type: 'string',
|
|
28920
|
+
},
|
|
28921
|
+
to: {
|
|
28922
|
+
description: 'The new value of the field.',
|
|
28923
|
+
nullable: true,
|
|
28924
|
+
type: 'string',
|
|
28925
|
+
},
|
|
28926
|
+
},
|
|
28927
|
+
required: ['field', 'from', 'to'],
|
|
28928
|
+
type: 'object',
|
|
28929
|
+
},
|
|
28930
|
+
type: 'array',
|
|
28931
|
+
},
|
|
28703
28932
|
warning_code: {
|
|
28704
28933
|
description:
|
|
28705
28934
|
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
@@ -28882,6 +29111,32 @@ const openapi: OpenAPISpec = {
|
|
|
28882
29111
|
type: 'object',
|
|
28883
29112
|
},
|
|
28884
29113
|
{
|
|
29114
|
+
description:
|
|
29115
|
+
'Indicates that the access code is disabled or inactive on the device. The code exists but will not grant access until re-enabled.',
|
|
29116
|
+
properties: {
|
|
29117
|
+
created_at: {
|
|
29118
|
+
description:
|
|
29119
|
+
'Date and time at which Seam created the warning.',
|
|
29120
|
+
format: 'date-time',
|
|
29121
|
+
type: 'string',
|
|
29122
|
+
},
|
|
29123
|
+
message: {
|
|
29124
|
+
description:
|
|
29125
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
29126
|
+
type: 'string',
|
|
29127
|
+
},
|
|
29128
|
+
warning_code: {
|
|
29129
|
+
description:
|
|
29130
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
29131
|
+
enum: ['access_code_inactive'],
|
|
29132
|
+
type: 'string',
|
|
29133
|
+
},
|
|
29134
|
+
},
|
|
29135
|
+
required: ['message', 'warning_code'],
|
|
29136
|
+
type: 'object',
|
|
29137
|
+
},
|
|
29138
|
+
{
|
|
29139
|
+
deprecated: true,
|
|
28885
29140
|
description:
|
|
28886
29141
|
'Access code is disabled on Ultraloq device. Re-enable through the Ultraloq mobile app.',
|
|
28887
29142
|
properties: {
|
|
@@ -28905,6 +29160,7 @@ const openapi: OpenAPISpec = {
|
|
|
28905
29160
|
},
|
|
28906
29161
|
required: ['message', 'warning_code'],
|
|
28907
29162
|
type: 'object',
|
|
29163
|
+
'x-deprecated': 'Use `access_code_inactive` instead.',
|
|
28908
29164
|
},
|
|
28909
29165
|
{
|
|
28910
29166
|
description:
|