@seamapi/types 1.959.0 → 1.961.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 +51 -519
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +132 -1392
- package/dist/index.cjs +51 -519
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +58 -78
- 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 -78
- package/lib/seam/connect/models/devices/device.d.ts +0 -319
- package/lib/seam/connect/models/devices/device.js +0 -59
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +0 -99
- package/lib/seam/connect/openapi.js +42 -468
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +77 -977
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +12 -0
- package/src/lib/seam/connect/models/devices/device.ts +0 -63
- package/src/lib/seam/connect/openapi.ts +55 -543
- package/src/lib/seam/connect/route-types.ts +88 -1090
package/package.json
CHANGED
|
@@ -298,6 +298,14 @@ const being_deleted = common_access_code_warning
|
|
|
298
298
|
})
|
|
299
299
|
.describe('Access code is being deleted.')
|
|
300
300
|
|
|
301
|
+
const unknown_issue_with_access_code = common_access_code_warning
|
|
302
|
+
.extend({
|
|
303
|
+
warning_code: z
|
|
304
|
+
.literal('unknown_issue_with_access_code')
|
|
305
|
+
.describe(warning_code_description),
|
|
306
|
+
})
|
|
307
|
+
.describe('An unknown issue occurred with the access code.')
|
|
308
|
+
|
|
301
309
|
const access_code_warning = z
|
|
302
310
|
.discriminatedUnion('warning_code', [
|
|
303
311
|
code_rotates_periodically,
|
|
@@ -310,6 +318,7 @@ const access_code_warning = z
|
|
|
310
318
|
management_transferred,
|
|
311
319
|
using_backup_access_code,
|
|
312
320
|
being_deleted,
|
|
321
|
+
unknown_issue_with_access_code,
|
|
313
322
|
])
|
|
314
323
|
.describe(
|
|
315
324
|
'Warnings associated with the [access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes).',
|
|
@@ -336,6 +345,9 @@ const _access_code_warning_map = z.object({
|
|
|
336
345
|
management_transferred: management_transferred.optional().nullable(),
|
|
337
346
|
using_backup_access_code: using_backup_access_code.optional().nullable(),
|
|
338
347
|
being_deleted: being_deleted.optional().nullable(),
|
|
348
|
+
unknown_issue_with_access_code: unknown_issue_with_access_code
|
|
349
|
+
.optional()
|
|
350
|
+
.nullable(),
|
|
339
351
|
})
|
|
340
352
|
|
|
341
353
|
export type AccessCodeWarningMap = z.infer<typeof _access_code_warning_map>
|
|
@@ -211,19 +211,6 @@ const august_lock_not_authorized = common_device_error.extend({
|
|
|
211
211
|
Indicates that the user is not authorized to use the August lock.
|
|
212
212
|
`)
|
|
213
213
|
|
|
214
|
-
const august_lock_missing_bridge = common_device_error.extend({
|
|
215
|
-
error_code: z
|
|
216
|
-
.literal('august_lock_missing_bridge')
|
|
217
|
-
.describe(error_code_description),
|
|
218
|
-
}).describe(`
|
|
219
|
-
---
|
|
220
|
-
resource_type: device
|
|
221
|
-
deprecated: Use \`hub_disconnected\` instead.
|
|
222
|
-
variant_group_key: locks
|
|
223
|
-
---
|
|
224
|
-
Indicates that the lock is not connected to a bridge.
|
|
225
|
-
`)
|
|
226
|
-
|
|
227
214
|
const salto_ks_subscription_limit_exceeded = common_device_error.extend({
|
|
228
215
|
error_code: z
|
|
229
216
|
.literal('salto_ks_subscription_limit_exceeded')
|
|
@@ -264,19 +251,6 @@ const dormakaba_sites_disconnected = common_device_error.extend({
|
|
|
264
251
|
Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
|
|
265
252
|
`)
|
|
266
253
|
|
|
267
|
-
const ttlock_lock_not_paired_to_gateway = common_device_error.extend({
|
|
268
|
-
error_code: z
|
|
269
|
-
.literal('ttlock_lock_not_paired_to_gateway')
|
|
270
|
-
.describe(error_code_description),
|
|
271
|
-
}).describe(`
|
|
272
|
-
---
|
|
273
|
-
resource_type: device
|
|
274
|
-
deprecated: Use \`hub_disconnected\` instead.
|
|
275
|
-
variant_group_key: locks
|
|
276
|
-
---
|
|
277
|
-
Indicates that the lock is not paired with a gateway.
|
|
278
|
-
`)
|
|
279
|
-
|
|
280
254
|
const missing_device_credentials = common_device_error.extend({
|
|
281
255
|
error_code: z
|
|
282
256
|
.literal('missing_device_credentials')
|
|
@@ -311,19 +285,6 @@ const subscription_required = common_device_error.extend({
|
|
|
311
285
|
Indicates that a subscription is required to connect.
|
|
312
286
|
`)
|
|
313
287
|
|
|
314
|
-
const lockly_missing_wifi_bridge = common_device_error.extend({
|
|
315
|
-
error_code: z
|
|
316
|
-
.literal('lockly_missing_wifi_bridge')
|
|
317
|
-
.describe(error_code_description),
|
|
318
|
-
}).describe(`
|
|
319
|
-
---
|
|
320
|
-
resource_type: device
|
|
321
|
-
deprecated: Use \`hub_disconnected\` instead.
|
|
322
|
-
variant_group_key: locks
|
|
323
|
-
---
|
|
324
|
-
Indicates that the Lockly lock is not connected to a Wi-Fi bridge.
|
|
325
|
-
`)
|
|
326
|
-
|
|
327
288
|
export const device_error = z
|
|
328
289
|
.discriminatedUnion('error_code', [
|
|
329
290
|
account_disconnected,
|
|
@@ -335,12 +296,9 @@ export const device_error = z
|
|
|
335
296
|
device_disconnected,
|
|
336
297
|
empty_backup_access_code_pool,
|
|
337
298
|
august_lock_not_authorized,
|
|
338
|
-
august_lock_missing_bridge,
|
|
339
|
-
ttlock_lock_not_paired_to_gateway,
|
|
340
299
|
missing_device_credentials,
|
|
341
300
|
auxiliary_heat_running,
|
|
342
301
|
subscription_required,
|
|
343
|
-
lockly_missing_wifi_bridge,
|
|
344
302
|
])
|
|
345
303
|
.describe('Error associated with the device.')
|
|
346
304
|
|
|
@@ -356,20 +314,15 @@ export const device_error_map = z.object({
|
|
|
356
314
|
.optional()
|
|
357
315
|
.nullable(),
|
|
358
316
|
august_lock_not_authorized: august_lock_not_authorized.optional().nullable(),
|
|
359
|
-
august_lock_missing_bridge: august_lock_missing_bridge.optional().nullable(),
|
|
360
317
|
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
|
|
361
318
|
.optional()
|
|
362
319
|
.nullable(),
|
|
363
320
|
dormakaba_sites_disconnected: dormakaba_sites_disconnected
|
|
364
321
|
.optional()
|
|
365
322
|
.nullable(),
|
|
366
|
-
ttlock_lock_not_paired_to_gateway: ttlock_lock_not_paired_to_gateway
|
|
367
|
-
.optional()
|
|
368
|
-
.nullable(),
|
|
369
323
|
missing_device_credentials: missing_device_credentials.optional().nullable(),
|
|
370
324
|
auxiliary_heat_running: auxiliary_heat_running.optional().nullable(),
|
|
371
325
|
subscription_required: subscription_required.optional().nullable(),
|
|
372
|
-
lockly_missing_wifi_bridge: lockly_missing_wifi_bridge.optional().nullable(),
|
|
373
326
|
})
|
|
374
327
|
|
|
375
328
|
export type DeviceErrorMap = z.infer<typeof device_error_map>
|
|
@@ -467,18 +420,6 @@ const salto_ks_lock_access_code_support_removed = common_device_warning.extend({
|
|
|
467
420
|
Indicates that a change in the reported device model has been detected for this Salto KS lock, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps.
|
|
468
421
|
`)
|
|
469
422
|
|
|
470
|
-
const wyze_device_missing_gateway = common_device_warning.extend({
|
|
471
|
-
warning_code: z
|
|
472
|
-
.literal('wyze_device_missing_gateway')
|
|
473
|
-
.describe(warning_code_description),
|
|
474
|
-
}).describe(`
|
|
475
|
-
---
|
|
476
|
-
deprecated: Use \`hub_disconnected\` device error instead.
|
|
477
|
-
variant_group_key: locks
|
|
478
|
-
---
|
|
479
|
-
Indicates that the Wyze Lock is not connected to a gateway.
|
|
480
|
-
`)
|
|
481
|
-
|
|
482
423
|
const third_party_integration_detected = common_device_warning
|
|
483
424
|
.extend({
|
|
484
425
|
warning_code: z
|
|
@@ -709,7 +650,6 @@ const insufficient_permissions = common_device_warning.extend({
|
|
|
709
650
|
const device_warning = z.discriminatedUnion('warning_code', [
|
|
710
651
|
partial_backup_access_code_pool,
|
|
711
652
|
many_active_backup_codes,
|
|
712
|
-
wyze_device_missing_gateway,
|
|
713
653
|
third_party_integration_detected,
|
|
714
654
|
ttlock_lock_gateway_unlocking_not_enabled,
|
|
715
655
|
ttlock_weak_gateway_signal,
|
|
@@ -752,9 +692,6 @@ export const device_warning_map = z.object({
|
|
|
752
692
|
})
|
|
753
693
|
.optional()
|
|
754
694
|
.nullable(),
|
|
755
|
-
wyze_device_missing_gateway: wyze_device_missing_gateway
|
|
756
|
-
.optional()
|
|
757
|
-
.nullable(),
|
|
758
695
|
third_party_integration_detected: third_party_integration_detected
|
|
759
696
|
.optional()
|
|
760
697
|
.nullable(),
|