@seamapi/types 1.941.0 → 1.943.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 +116 -64
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +436 -167
- package/dist/index.cjs +116 -64
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +0 -71
- package/lib/seam/connect/models/access-codes/managed-access-code.js +0 -14
- 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 +0 -26
- package/lib/seam/connect/models/devices/device-metadata.d.ts +5 -0
- package/lib/seam/connect/models/devices/device-metadata.js +5 -0
- package/lib/seam/connect/models/devices/device-metadata.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +123 -0
- package/lib/seam/connect/models/devices/device.js +24 -0
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +47 -0
- package/lib/seam/connect/openapi.js +93 -54
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +314 -99
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +0 -15
- package/src/lib/seam/connect/models/devices/device-metadata.ts +7 -0
- package/src/lib/seam/connect/models/devices/device.ts +26 -0
- package/src/lib/seam/connect/openapi.ts +110 -64
- package/src/lib/seam/connect/route-types.ts +354 -110
package/package.json
CHANGED
|
@@ -133,17 +133,6 @@ const no_space_for_access_code_on_device = common_access_code_error.extend({
|
|
|
133
133
|
No space for access code on device.
|
|
134
134
|
`)
|
|
135
135
|
|
|
136
|
-
const access_code_state_unconfirmed = common_access_code_error.extend({
|
|
137
|
-
error_code: z
|
|
138
|
-
.literal('access_code_state_unconfirmed')
|
|
139
|
-
.describe(error_code_description),
|
|
140
|
-
}).describe(`
|
|
141
|
-
---
|
|
142
|
-
resource_type: access_code
|
|
143
|
-
---
|
|
144
|
-
Indicates that the provider cannot confirm whether the access code was set or removed on the device.
|
|
145
|
-
`)
|
|
146
|
-
|
|
147
136
|
const insufficient_permissions = common_access_code_error.extend({
|
|
148
137
|
error_code: z
|
|
149
138
|
.literal('insufficient_permissions')
|
|
@@ -190,7 +179,6 @@ const access_code_error = z
|
|
|
190
179
|
duplicate_code_on_device,
|
|
191
180
|
duplicate_code_attempt_prevented,
|
|
192
181
|
no_space_for_access_code_on_device,
|
|
193
|
-
access_code_state_unconfirmed,
|
|
194
182
|
code_modified_external_to_seam_error,
|
|
195
183
|
access_code_inactive_error,
|
|
196
184
|
salto_ks_user_not_subscribed,
|
|
@@ -215,9 +203,6 @@ const _access_code_error_map = z.object({
|
|
|
215
203
|
duplicate_code_attempt_prevented: duplicate_code_attempt_prevented
|
|
216
204
|
.optional()
|
|
217
205
|
.nullable(),
|
|
218
|
-
access_code_state_unconfirmed: access_code_state_unconfirmed
|
|
219
|
-
.optional()
|
|
220
|
-
.nullable(),
|
|
221
206
|
insufficient_permissions: insufficient_permissions.optional().nullable(),
|
|
222
207
|
code_modified_external_to_seam_error: code_modified_external_to_seam_error
|
|
223
208
|
.optional()
|
|
@@ -654,6 +654,13 @@ export const device_metadata = z
|
|
|
654
654
|
.describe(
|
|
655
655
|
`Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST.`,
|
|
656
656
|
),
|
|
657
|
+
time_zone: z
|
|
658
|
+
.string()
|
|
659
|
+
.nullable()
|
|
660
|
+
.optional()
|
|
661
|
+
.describe(
|
|
662
|
+
`IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST).`,
|
|
663
|
+
),
|
|
657
664
|
})
|
|
658
665
|
.describe(`Metadata for an Omnitec device.`),
|
|
659
666
|
|
|
@@ -567,6 +567,28 @@ const ultraloq_time_zone_unknown = common_device_warning.extend({
|
|
|
567
567
|
Indicates that Seam does not know the time zone of the Ultraloq device. Set a time zone to enable time-bound access codes.
|
|
568
568
|
`)
|
|
569
569
|
|
|
570
|
+
const time_zone_unknown = common_device_warning.extend({
|
|
571
|
+
warning_code: z
|
|
572
|
+
.literal('time_zone_unknown')
|
|
573
|
+
.describe(warning_code_description),
|
|
574
|
+
}).describe(`
|
|
575
|
+
---
|
|
576
|
+
variant_group_key: locks
|
|
577
|
+
---
|
|
578
|
+
Indicates that Seam does not know the device's time zone. Set a time zone to enable time-bound access codes.
|
|
579
|
+
`)
|
|
580
|
+
|
|
581
|
+
const time_zone_mismatch = common_device_warning.extend({
|
|
582
|
+
warning_code: z
|
|
583
|
+
.literal('time_zone_mismatch')
|
|
584
|
+
.describe(warning_code_description),
|
|
585
|
+
}).describe(`
|
|
586
|
+
---
|
|
587
|
+
variant_group_key: locks
|
|
588
|
+
---
|
|
589
|
+
Indicates that the device's configured time zone does not match its hardware UTC offset. Time-bound access codes may activate at the wrong local time.
|
|
590
|
+
`)
|
|
591
|
+
|
|
570
592
|
const two_n_device_missing_timezone = common_device_warning.extend({
|
|
571
593
|
warning_code: z
|
|
572
594
|
.literal('two_n_device_missing_timezone')
|
|
@@ -693,6 +715,8 @@ const device_warning = z.discriminatedUnion('warning_code', [
|
|
|
693
715
|
unknown_issue_with_phone,
|
|
694
716
|
lockly_time_zone_not_configured,
|
|
695
717
|
ultraloq_time_zone_unknown,
|
|
718
|
+
time_zone_unknown,
|
|
719
|
+
time_zone_mismatch,
|
|
696
720
|
two_n_device_missing_timezone,
|
|
697
721
|
hub_required_for_additional_capabilities,
|
|
698
722
|
provider_issue,
|
|
@@ -747,6 +771,8 @@ export const device_warning_map = z.object({
|
|
|
747
771
|
.optional()
|
|
748
772
|
.nullable(),
|
|
749
773
|
ultraloq_time_zone_unknown: ultraloq_time_zone_unknown.optional().nullable(),
|
|
774
|
+
time_zone_unknown: time_zone_unknown.optional().nullable(),
|
|
775
|
+
time_zone_mismatch: time_zone_mismatch.optional().nullable(),
|
|
750
776
|
two_n_device_missing_timezone: two_n_device_missing_timezone
|
|
751
777
|
.optional()
|
|
752
778
|
.nullable(),
|
|
@@ -304,38 +304,6 @@ const openapi: OpenAPISpec = {
|
|
|
304
304
|
type: 'object',
|
|
305
305
|
'x-resource-type': 'access_code',
|
|
306
306
|
},
|
|
307
|
-
{
|
|
308
|
-
description:
|
|
309
|
-
'Indicates that the provider cannot confirm whether the access code was set or removed on the device.',
|
|
310
|
-
properties: {
|
|
311
|
-
created_at: {
|
|
312
|
-
description:
|
|
313
|
-
'Date and time at which Seam created the error.',
|
|
314
|
-
format: 'date-time',
|
|
315
|
-
type: 'string',
|
|
316
|
-
},
|
|
317
|
-
error_code: {
|
|
318
|
-
description:
|
|
319
|
-
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
320
|
-
enum: ['access_code_state_unconfirmed'],
|
|
321
|
-
type: 'string',
|
|
322
|
-
},
|
|
323
|
-
is_access_code_error: {
|
|
324
|
-
description:
|
|
325
|
-
'Indicates that this is an access code error.',
|
|
326
|
-
enum: [true],
|
|
327
|
-
type: 'boolean',
|
|
328
|
-
},
|
|
329
|
-
message: {
|
|
330
|
-
description:
|
|
331
|
-
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
332
|
-
type: 'string',
|
|
333
|
-
},
|
|
334
|
-
},
|
|
335
|
-
required: ['message', 'is_access_code_error', 'error_code'],
|
|
336
|
-
type: 'object',
|
|
337
|
-
'x-resource-type': 'access_code',
|
|
338
|
-
},
|
|
339
307
|
{
|
|
340
308
|
description:
|
|
341
309
|
'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
@@ -14921,6 +14889,12 @@ const openapi: OpenAPISpec = {
|
|
|
14921
14889
|
description: 'Lock name for an Omnitec device.',
|
|
14922
14890
|
type: 'string',
|
|
14923
14891
|
},
|
|
14892
|
+
time_zone: {
|
|
14893
|
+
description:
|
|
14894
|
+
'IANA time zone for the Omnitec device, used to schedule time-bound access codes at the correct local time (accounting for DST).',
|
|
14895
|
+
nullable: true,
|
|
14896
|
+
type: 'string',
|
|
14897
|
+
},
|
|
14924
14898
|
timezone_raw_offset_ms: {
|
|
14925
14899
|
description:
|
|
14926
14900
|
'Static UTC offset of the Omnitec lock in milliseconds. Does not account for DST.',
|
|
@@ -17118,6 +17092,58 @@ const openapi: OpenAPISpec = {
|
|
|
17118
17092
|
type: 'object',
|
|
17119
17093
|
'x-variant-group-key': 'locks',
|
|
17120
17094
|
},
|
|
17095
|
+
{
|
|
17096
|
+
description:
|
|
17097
|
+
"Indicates that Seam does not know the device's time zone. Set a time zone to enable time-bound access codes.",
|
|
17098
|
+
properties: {
|
|
17099
|
+
created_at: {
|
|
17100
|
+
description:
|
|
17101
|
+
'Date and time at which Seam created the warning.',
|
|
17102
|
+
format: 'date-time',
|
|
17103
|
+
type: 'string',
|
|
17104
|
+
},
|
|
17105
|
+
message: {
|
|
17106
|
+
description:
|
|
17107
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
17108
|
+
type: 'string',
|
|
17109
|
+
},
|
|
17110
|
+
warning_code: {
|
|
17111
|
+
description:
|
|
17112
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
17113
|
+
enum: ['time_zone_unknown'],
|
|
17114
|
+
type: 'string',
|
|
17115
|
+
},
|
|
17116
|
+
},
|
|
17117
|
+
required: ['message', 'created_at', 'warning_code'],
|
|
17118
|
+
type: 'object',
|
|
17119
|
+
'x-variant-group-key': 'locks',
|
|
17120
|
+
},
|
|
17121
|
+
{
|
|
17122
|
+
description:
|
|
17123
|
+
"Indicates that the device's configured time zone does not match its hardware UTC offset. Time-bound access codes may activate at the wrong local time.",
|
|
17124
|
+
properties: {
|
|
17125
|
+
created_at: {
|
|
17126
|
+
description:
|
|
17127
|
+
'Date and time at which Seam created the warning.',
|
|
17128
|
+
format: 'date-time',
|
|
17129
|
+
type: 'string',
|
|
17130
|
+
},
|
|
17131
|
+
message: {
|
|
17132
|
+
description:
|
|
17133
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
17134
|
+
type: 'string',
|
|
17135
|
+
},
|
|
17136
|
+
warning_code: {
|
|
17137
|
+
description:
|
|
17138
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
17139
|
+
enum: ['time_zone_mismatch'],
|
|
17140
|
+
type: 'string',
|
|
17141
|
+
},
|
|
17142
|
+
},
|
|
17143
|
+
required: ['message', 'created_at', 'warning_code'],
|
|
17144
|
+
type: 'object',
|
|
17145
|
+
'x-variant-group-key': 'locks',
|
|
17146
|
+
},
|
|
17121
17147
|
{
|
|
17122
17148
|
description:
|
|
17123
17149
|
'Indicates that the 2N device does not have a time zone configured. Configure a time zone on the device to enable access codes.',
|
|
@@ -29202,38 +29228,6 @@ const openapi: OpenAPISpec = {
|
|
|
29202
29228
|
type: 'object',
|
|
29203
29229
|
'x-resource-type': 'access_code',
|
|
29204
29230
|
},
|
|
29205
|
-
{
|
|
29206
|
-
description:
|
|
29207
|
-
'Indicates that the provider cannot confirm whether the access code was set or removed on the device.',
|
|
29208
|
-
properties: {
|
|
29209
|
-
created_at: {
|
|
29210
|
-
description:
|
|
29211
|
-
'Date and time at which Seam created the error.',
|
|
29212
|
-
format: 'date-time',
|
|
29213
|
-
type: 'string',
|
|
29214
|
-
},
|
|
29215
|
-
error_code: {
|
|
29216
|
-
description:
|
|
29217
|
-
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
29218
|
-
enum: ['access_code_state_unconfirmed'],
|
|
29219
|
-
type: 'string',
|
|
29220
|
-
},
|
|
29221
|
-
is_access_code_error: {
|
|
29222
|
-
description:
|
|
29223
|
-
'Indicates that this is an access code error.',
|
|
29224
|
-
enum: [true],
|
|
29225
|
-
type: 'boolean',
|
|
29226
|
-
},
|
|
29227
|
-
message: {
|
|
29228
|
-
description:
|
|
29229
|
-
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
29230
|
-
type: 'string',
|
|
29231
|
-
},
|
|
29232
|
-
},
|
|
29233
|
-
required: ['message', 'is_access_code_error', 'error_code'],
|
|
29234
|
-
type: 'object',
|
|
29235
|
-
'x-resource-type': 'access_code',
|
|
29236
|
-
},
|
|
29237
29231
|
{
|
|
29238
29232
|
description:
|
|
29239
29233
|
'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
@@ -33764,6 +33758,58 @@ const openapi: OpenAPISpec = {
|
|
|
33764
33758
|
type: 'object',
|
|
33765
33759
|
'x-variant-group-key': 'locks',
|
|
33766
33760
|
},
|
|
33761
|
+
{
|
|
33762
|
+
description:
|
|
33763
|
+
"Indicates that Seam does not know the device's time zone. Set a time zone to enable time-bound access codes.",
|
|
33764
|
+
properties: {
|
|
33765
|
+
created_at: {
|
|
33766
|
+
description:
|
|
33767
|
+
'Date and time at which Seam created the warning.',
|
|
33768
|
+
format: 'date-time',
|
|
33769
|
+
type: 'string',
|
|
33770
|
+
},
|
|
33771
|
+
message: {
|
|
33772
|
+
description:
|
|
33773
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
33774
|
+
type: 'string',
|
|
33775
|
+
},
|
|
33776
|
+
warning_code: {
|
|
33777
|
+
description:
|
|
33778
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
33779
|
+
enum: ['time_zone_unknown'],
|
|
33780
|
+
type: 'string',
|
|
33781
|
+
},
|
|
33782
|
+
},
|
|
33783
|
+
required: ['message', 'created_at', 'warning_code'],
|
|
33784
|
+
type: 'object',
|
|
33785
|
+
'x-variant-group-key': 'locks',
|
|
33786
|
+
},
|
|
33787
|
+
{
|
|
33788
|
+
description:
|
|
33789
|
+
"Indicates that the device's configured time zone does not match its hardware UTC offset. Time-bound access codes may activate at the wrong local time.",
|
|
33790
|
+
properties: {
|
|
33791
|
+
created_at: {
|
|
33792
|
+
description:
|
|
33793
|
+
'Date and time at which Seam created the warning.',
|
|
33794
|
+
format: 'date-time',
|
|
33795
|
+
type: 'string',
|
|
33796
|
+
},
|
|
33797
|
+
message: {
|
|
33798
|
+
description:
|
|
33799
|
+
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
|
|
33800
|
+
type: 'string',
|
|
33801
|
+
},
|
|
33802
|
+
warning_code: {
|
|
33803
|
+
description:
|
|
33804
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
33805
|
+
enum: ['time_zone_mismatch'],
|
|
33806
|
+
type: 'string',
|
|
33807
|
+
},
|
|
33808
|
+
},
|
|
33809
|
+
required: ['message', 'created_at', 'warning_code'],
|
|
33810
|
+
type: 'object',
|
|
33811
|
+
'x-variant-group-key': 'locks',
|
|
33812
|
+
},
|
|
33767
33813
|
{
|
|
33768
33814
|
description:
|
|
33769
33815
|
'Indicates that the 2N device does not have a time zone configured. Configure a time zone on the device to enable access codes.',
|