@seamapi/types 1.922.0 → 1.924.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 +247 -214
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +484 -473
- package/dist/index.cjs +247 -214
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +31 -58
- 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 +31 -21
- package/lib/seam/connect/models/devices/device.d.ts +103 -0
- package/lib/seam/connect/models/devices/device.js +55 -16
- package/lib/seam/connect/models/devices/device.js.map +1 -1
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +31 -0
- package/lib/seam/connect/openapi.js +178 -168
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +341 -418
- package/package.json +2 -2
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +0 -17
- package/src/lib/seam/connect/models/devices/device.ts +69 -33
- package/src/lib/seam/connect/openapi.ts +202 -202
- package/src/lib/seam/connect/route-types.ts +372 -460
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.924.0",
|
|
4
4
|
"description": "TypeScript types for the Seam API.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"zod": "^3.24.0"
|
|
92
92
|
},
|
|
93
93
|
"devDependencies": {
|
|
94
|
-
"@seamapi/blueprint": "^0.
|
|
94
|
+
"@seamapi/blueprint": "^0.56.0",
|
|
95
95
|
"@swc/core": "^1.11.29",
|
|
96
96
|
"@types/node": "^24.10.9",
|
|
97
97
|
"concurrently": "^9.2.0",
|
|
@@ -283,21 +283,6 @@ const code_modified_external_to_seam_warning = common_access_code_warning
|
|
|
283
283
|
'Code was modified or removed externally after Seam successfully set it on the device.',
|
|
284
284
|
)
|
|
285
285
|
|
|
286
|
-
const schlage_detected_duplicate = common_access_code_warning
|
|
287
|
-
.extend({
|
|
288
|
-
warning_code: z
|
|
289
|
-
.literal('schlage_detected_duplicate')
|
|
290
|
-
.describe(warning_code_description),
|
|
291
|
-
})
|
|
292
|
-
.describe(
|
|
293
|
-
`
|
|
294
|
-
---
|
|
295
|
-
deprecated: Use \`duplicate_code_on_device\` error instead.
|
|
296
|
-
---
|
|
297
|
-
Duplicate access code detected.
|
|
298
|
-
`,
|
|
299
|
-
)
|
|
300
|
-
|
|
301
286
|
const provider_issue_warning = common_access_code_warning
|
|
302
287
|
.extend({
|
|
303
288
|
warning_code: z
|
|
@@ -390,7 +375,6 @@ const being_deleted = common_access_code_warning
|
|
|
390
375
|
const access_code_warning = z
|
|
391
376
|
.discriminatedUnion('warning_code', [
|
|
392
377
|
provider_issue_warning,
|
|
393
|
-
schlage_detected_duplicate,
|
|
394
378
|
schlage_access_code_ambiguous_timezone_dst_risk,
|
|
395
379
|
code_modified_external_to_seam_warning,
|
|
396
380
|
delay_in_setting_on_device,
|
|
@@ -410,7 +394,6 @@ export type AccessCodeWarning = z.infer<typeof access_code_warning>
|
|
|
410
394
|
|
|
411
395
|
const _access_code_warning_map = z.object({
|
|
412
396
|
provider_issue: provider_issue_warning.optional().nullable(),
|
|
413
|
-
schlage_detected_duplicate: schlage_detected_duplicate.optional().nullable(),
|
|
414
397
|
schlage_access_code_ambiguous_timezone_dst_risk:
|
|
415
398
|
schlage_access_code_ambiguous_timezone_dst_risk.optional().nullable(),
|
|
416
399
|
code_modified_external_to_seam_warning: code_modified_external_to_seam_warning
|
|
@@ -244,6 +244,26 @@ const salto_ks_subscription_limit_exceeded = common_device_error.extend({
|
|
|
244
244
|
Indicates that the Salto site user limit has been reached.
|
|
245
245
|
`)
|
|
246
246
|
|
|
247
|
+
const dormakaba_sites_disconnected = common_device_error.extend({
|
|
248
|
+
error_code: z
|
|
249
|
+
.literal('dormakaba_sites_disconnected')
|
|
250
|
+
.describe(error_code_description),
|
|
251
|
+
is_connected_account_error: z
|
|
252
|
+
.literal(true)
|
|
253
|
+
.describe(
|
|
254
|
+
'Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error.',
|
|
255
|
+
),
|
|
256
|
+
is_device_error: z
|
|
257
|
+
.literal(false)
|
|
258
|
+
.describe('Indicates that the error is not a device error.'),
|
|
259
|
+
}).describe(`
|
|
260
|
+
---
|
|
261
|
+
resource_type: connected_account
|
|
262
|
+
variant_group_key: locks
|
|
263
|
+
---
|
|
264
|
+
Indicates that one or more dormakaba sites associated with the connected account could not be connected. Contact dormakaba support.
|
|
265
|
+
`)
|
|
266
|
+
|
|
247
267
|
const ttlock_lock_not_paired_to_gateway = common_device_error.extend({
|
|
248
268
|
error_code: z
|
|
249
269
|
.literal('ttlock_lock_not_paired_to_gateway')
|
|
@@ -252,6 +272,7 @@ const ttlock_lock_not_paired_to_gateway = common_device_error.extend({
|
|
|
252
272
|
---
|
|
253
273
|
resource_type: device
|
|
254
274
|
deprecated: Use \`hub_disconnected\` instead.
|
|
275
|
+
variant_group_key: locks
|
|
255
276
|
---
|
|
256
277
|
Indicates that the lock is not paired with a gateway.
|
|
257
278
|
`)
|
|
@@ -298,6 +319,7 @@ const lockly_missing_wifi_bridge = common_device_error.extend({
|
|
|
298
319
|
---
|
|
299
320
|
resource_type: device
|
|
300
321
|
deprecated: Use \`hub_disconnected\` instead.
|
|
322
|
+
variant_group_key: locks
|
|
301
323
|
---
|
|
302
324
|
Indicates that the Lockly lock is not connected to a Wi-Fi bridge.
|
|
303
325
|
`)
|
|
@@ -306,6 +328,7 @@ export const device_error = z
|
|
|
306
328
|
.discriminatedUnion('error_code', [
|
|
307
329
|
account_disconnected,
|
|
308
330
|
salto_ks_subscription_limit_exceeded,
|
|
331
|
+
dormakaba_sites_disconnected,
|
|
309
332
|
device_offline,
|
|
310
333
|
device_removed,
|
|
311
334
|
hub_disconnected,
|
|
@@ -337,6 +360,9 @@ export const device_error_map = z.object({
|
|
|
337
360
|
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
|
|
338
361
|
.optional()
|
|
339
362
|
.nullable(),
|
|
363
|
+
dormakaba_sites_disconnected: dormakaba_sites_disconnected
|
|
364
|
+
.optional()
|
|
365
|
+
.nullable(),
|
|
340
366
|
ttlock_lock_not_paired_to_gateway: ttlock_lock_not_paired_to_gateway
|
|
341
367
|
.optional()
|
|
342
368
|
.nullable(),
|
|
@@ -407,15 +433,18 @@ const salto_ks_privacy_mode = common_device_warning.extend({
|
|
|
407
433
|
Indicates that the Salto KS lock is in Privacy Mode. Access Codes will not unlock doors.
|
|
408
434
|
`)
|
|
409
435
|
|
|
410
|
-
const salto_ks_subscription_limit_almost_reached = common_device_warning
|
|
411
|
-
|
|
436
|
+
const salto_ks_subscription_limit_almost_reached = common_device_warning.extend(
|
|
437
|
+
{
|
|
412
438
|
warning_code: z
|
|
413
439
|
.literal('salto_ks_subscription_limit_almost_reached')
|
|
414
440
|
.describe(warning_code_description),
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
441
|
+
},
|
|
442
|
+
).describe(`
|
|
443
|
+
---
|
|
444
|
+
variant_group_key: locks
|
|
445
|
+
---
|
|
446
|
+
Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.
|
|
447
|
+
`)
|
|
419
448
|
|
|
420
449
|
const salto_ks_lock_access_code_support_removed = common_device_warning.extend({
|
|
421
450
|
warning_code: z
|
|
@@ -435,6 +464,7 @@ const wyze_device_missing_gateway = common_device_warning.extend({
|
|
|
435
464
|
}).describe(`
|
|
436
465
|
---
|
|
437
466
|
deprecated: Use \`hub_disconnected\` device error instead.
|
|
467
|
+
variant_group_key: locks
|
|
438
468
|
---
|
|
439
469
|
Indicates that the Wyze Lock is not connected to a gateway.
|
|
440
470
|
`)
|
|
@@ -463,6 +493,9 @@ const ttlock_weak_gateway_signal = common_device_warning.extend({
|
|
|
463
493
|
.literal('ttlock_weak_gateway_signal')
|
|
464
494
|
.describe(warning_code_description),
|
|
465
495
|
}).describe(`
|
|
496
|
+
---
|
|
497
|
+
variant_group_key: locks
|
|
498
|
+
---
|
|
466
499
|
Indicates that the gateway signal is weak.
|
|
467
500
|
`)
|
|
468
501
|
|
|
@@ -512,35 +545,38 @@ const device_has_flaky_connection = common_device_warning
|
|
|
512
545
|
})
|
|
513
546
|
.describe('Indicates that the device has a flaky connection.')
|
|
514
547
|
|
|
515
|
-
const lockly_time_zone_not_configured = common_device_warning
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
548
|
+
const lockly_time_zone_not_configured = common_device_warning.extend({
|
|
549
|
+
warning_code: z
|
|
550
|
+
.literal('lockly_time_zone_not_configured')
|
|
551
|
+
.describe(warning_code_description),
|
|
552
|
+
}).describe(`
|
|
553
|
+
---
|
|
554
|
+
variant_group_key: locks
|
|
555
|
+
---
|
|
556
|
+
Indicates that Seam detected that the Lockly device does not have a time zone configured. Time-bound codes may not work as expected.
|
|
557
|
+
`)
|
|
524
558
|
|
|
525
|
-
const ultraloq_time_zone_unknown = common_device_warning
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
559
|
+
const ultraloq_time_zone_unknown = common_device_warning.extend({
|
|
560
|
+
warning_code: z
|
|
561
|
+
.literal('ultraloq_time_zone_unknown')
|
|
562
|
+
.describe(warning_code_description),
|
|
563
|
+
}).describe(`
|
|
564
|
+
---
|
|
565
|
+
variant_group_key: locks
|
|
566
|
+
---
|
|
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
|
+
`)
|
|
534
569
|
|
|
535
|
-
const two_n_device_missing_timezone = common_device_warning
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
570
|
+
const two_n_device_missing_timezone = common_device_warning.extend({
|
|
571
|
+
warning_code: z
|
|
572
|
+
.literal('two_n_device_missing_timezone')
|
|
573
|
+
.describe(warning_code_description),
|
|
574
|
+
}).describe(`
|
|
575
|
+
---
|
|
576
|
+
variant_group_key: locks
|
|
577
|
+
---
|
|
578
|
+
Indicates that the 2N device does not have a time zone configured. Configure a time zone on the device to enable access codes.
|
|
579
|
+
`)
|
|
544
580
|
|
|
545
581
|
export const unknown_issue_with_phone = common_device_warning.extend({
|
|
546
582
|
warning_code: z
|