@seamapi/types 1.931.0 → 1.932.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 +14 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +38 -0
- package/dist/index.cjs +14 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/events/devices.d.ts +12 -0
- package/lib/seam/connect/models/events/devices.js +6 -0
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +6 -0
- package/lib/seam/connect/openapi.js +8 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +32 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +6 -0
- package/src/lib/seam/connect/openapi.ts +10 -0
- package/src/lib/seam/connect/route-types.ts +32 -0
package/dist/connect.d.cts
CHANGED
|
@@ -28402,6 +28402,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
|
28402
28402
|
} & {
|
|
28403
28403
|
event_type: z.ZodLiteral<"lock.locked">;
|
|
28404
28404
|
access_code_id: z.ZodOptional<z.ZodString>;
|
|
28405
|
+
code: z.ZodOptional<z.ZodString>;
|
|
28405
28406
|
access_code_is_managed: z.ZodOptional<z.ZodBoolean>;
|
|
28406
28407
|
action_attempt_id: z.ZodOptional<z.ZodString>;
|
|
28407
28408
|
method: z.ZodEnum<["keycode", "manual", "automatic", "unknown", "remote"]>;
|
|
@@ -28416,6 +28417,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
|
28416
28417
|
occurred_at: string;
|
|
28417
28418
|
event_type: "lock.locked";
|
|
28418
28419
|
method: "unknown" | "keycode" | "manual" | "automatic" | "remote";
|
|
28420
|
+
code?: string | undefined;
|
|
28419
28421
|
customer_key?: string | undefined;
|
|
28420
28422
|
access_code_id?: string | undefined;
|
|
28421
28423
|
action_attempt_id?: string | undefined;
|
|
@@ -28433,6 +28435,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
|
28433
28435
|
occurred_at: string;
|
|
28434
28436
|
event_type: "lock.locked";
|
|
28435
28437
|
method: "unknown" | "keycode" | "manual" | "automatic" | "remote";
|
|
28438
|
+
code?: string | undefined;
|
|
28436
28439
|
customer_key?: string | undefined;
|
|
28437
28440
|
access_code_id?: string | undefined;
|
|
28438
28441
|
action_attempt_id?: string | undefined;
|
|
@@ -28453,6 +28456,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
|
28453
28456
|
} & {
|
|
28454
28457
|
event_type: z.ZodLiteral<"lock.unlocked">;
|
|
28455
28458
|
access_code_id: z.ZodOptional<z.ZodString>;
|
|
28459
|
+
code: z.ZodOptional<z.ZodString>;
|
|
28456
28460
|
access_code_is_managed: z.ZodOptional<z.ZodBoolean>;
|
|
28457
28461
|
action_attempt_id: z.ZodOptional<z.ZodString>;
|
|
28458
28462
|
method: z.ZodEnum<["keycode", "manual", "automatic", "unknown", "remote"]>;
|
|
@@ -28471,6 +28475,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
|
28471
28475
|
occurred_at: string;
|
|
28472
28476
|
event_type: "lock.unlocked";
|
|
28473
28477
|
method: "unknown" | "keycode" | "manual" | "automatic" | "remote";
|
|
28478
|
+
code?: string | undefined;
|
|
28474
28479
|
device_id?: string | undefined;
|
|
28475
28480
|
customer_key?: string | undefined;
|
|
28476
28481
|
access_code_id?: string | undefined;
|
|
@@ -28492,6 +28497,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
|
|
|
28492
28497
|
occurred_at: string;
|
|
28493
28498
|
event_type: "lock.unlocked";
|
|
28494
28499
|
method: "unknown" | "keycode" | "manual" | "automatic" | "remote";
|
|
28500
|
+
code?: string | undefined;
|
|
28495
28501
|
device_id?: string | undefined;
|
|
28496
28502
|
customer_key?: string | undefined;
|
|
28497
28503
|
access_code_id?: string | undefined;
|
|
@@ -77543,6 +77549,10 @@ type Routes = {
|
|
|
77543
77549
|
event_type: 'lock.locked';
|
|
77544
77550
|
/** ID of the access code that was used to lock the device. */
|
|
77545
77551
|
access_code_id?: string | undefined;
|
|
77552
|
+
/**
|
|
77553
|
+
Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
77554
|
+
*/
|
|
77555
|
+
code?: string | undefined;
|
|
77546
77556
|
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
|
|
77547
77557
|
access_code_is_managed?: boolean | undefined;
|
|
77548
77558
|
/** ID of the Seam action attempt that triggered this lock. Present only when the lock was initiated through Seam (via a `LOCK_DOOR` action attempt). */
|
|
@@ -77583,6 +77593,10 @@ type Routes = {
|
|
|
77583
77593
|
event_type: 'lock.unlocked';
|
|
77584
77594
|
/** ID of the access code that was used to unlock the affected device. */
|
|
77585
77595
|
access_code_id?: string | undefined;
|
|
77596
|
+
/**
|
|
77597
|
+
Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
77598
|
+
*/
|
|
77599
|
+
code?: string | undefined;
|
|
77586
77600
|
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
|
|
77587
77601
|
access_code_is_managed?: boolean | undefined;
|
|
77588
77602
|
/** ID of the Seam action attempt that triggered this unlock. Present only when the unlock was initiated through Seam (via an `UNLOCK_DOOR` action attempt). */
|
|
@@ -80580,6 +80594,10 @@ type Routes = {
|
|
|
80580
80594
|
event_type: 'lock.locked';
|
|
80581
80595
|
/** ID of the access code that was used to lock the device. */
|
|
80582
80596
|
access_code_id?: string | undefined;
|
|
80597
|
+
/**
|
|
80598
|
+
Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
80599
|
+
*/
|
|
80600
|
+
code?: string | undefined;
|
|
80583
80601
|
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
|
|
80584
80602
|
access_code_is_managed?: boolean | undefined;
|
|
80585
80603
|
/** ID of the Seam action attempt that triggered this lock. Present only when the lock was initiated through Seam (via a `LOCK_DOOR` action attempt). */
|
|
@@ -80620,6 +80638,10 @@ type Routes = {
|
|
|
80620
80638
|
event_type: 'lock.unlocked';
|
|
80621
80639
|
/** ID of the access code that was used to unlock the affected device. */
|
|
80622
80640
|
access_code_id?: string | undefined;
|
|
80641
|
+
/**
|
|
80642
|
+
Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
80643
|
+
*/
|
|
80644
|
+
code?: string | undefined;
|
|
80623
80645
|
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
|
|
80624
80646
|
access_code_is_managed?: boolean | undefined;
|
|
80625
80647
|
/** ID of the Seam action attempt that triggered this unlock. Present only when the unlock was initiated through Seam (via an `UNLOCK_DOOR` action attempt). */
|
|
@@ -109765,6 +109787,10 @@ type Routes = {
|
|
|
109765
109787
|
event_type: 'lock.locked';
|
|
109766
109788
|
/** ID of the access code that was used to lock the device. */
|
|
109767
109789
|
access_code_id?: string | undefined;
|
|
109790
|
+
/**
|
|
109791
|
+
Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
109792
|
+
*/
|
|
109793
|
+
code?: string | undefined;
|
|
109768
109794
|
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
|
|
109769
109795
|
access_code_is_managed?: boolean | undefined;
|
|
109770
109796
|
/** ID of the Seam action attempt that triggered this lock. Present only when the lock was initiated through Seam (via a `LOCK_DOOR` action attempt). */
|
|
@@ -109805,6 +109831,10 @@ type Routes = {
|
|
|
109805
109831
|
event_type: 'lock.unlocked';
|
|
109806
109832
|
/** ID of the access code that was used to unlock the affected device. */
|
|
109807
109833
|
access_code_id?: string | undefined;
|
|
109834
|
+
/**
|
|
109835
|
+
Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
109836
|
+
*/
|
|
109837
|
+
code?: string | undefined;
|
|
109808
109838
|
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
|
|
109809
109839
|
access_code_is_managed?: boolean | undefined;
|
|
109810
109840
|
/** ID of the Seam action attempt that triggered this unlock. Present only when the unlock was initiated through Seam (via an `UNLOCK_DOOR` action attempt). */
|
|
@@ -147323,6 +147353,10 @@ type Routes = {
|
|
|
147323
147353
|
event_type: 'lock.locked';
|
|
147324
147354
|
/** ID of the access code that was used to lock the device. */
|
|
147325
147355
|
access_code_id?: string | undefined;
|
|
147356
|
+
/**
|
|
147357
|
+
Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
147358
|
+
*/
|
|
147359
|
+
code?: string | undefined;
|
|
147326
147360
|
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
|
|
147327
147361
|
access_code_is_managed?: boolean | undefined;
|
|
147328
147362
|
/** ID of the Seam action attempt that triggered this lock. Present only when the lock was initiated through Seam (via a `LOCK_DOOR` action attempt). */
|
|
@@ -147363,6 +147397,10 @@ type Routes = {
|
|
|
147363
147397
|
event_type: 'lock.unlocked';
|
|
147364
147398
|
/** ID of the access code that was used to unlock the affected device. */
|
|
147365
147399
|
access_code_id?: string | undefined;
|
|
147400
|
+
/**
|
|
147401
|
+
Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
147402
|
+
*/
|
|
147403
|
+
code?: string | undefined;
|
|
147366
147404
|
/** Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */
|
|
147367
147405
|
access_code_is_managed?: boolean | undefined;
|
|
147368
147406
|
/** ID of the Seam action attempt that triggered this unlock. Present only when the unlock was initiated through Seam (via an `UNLOCK_DOOR` action attempt). */
|
package/dist/index.cjs
CHANGED
|
@@ -6655,6 +6655,9 @@ var noise_sensor_noise_threshold_triggered_event = device_event.extend(
|
|
|
6655
6655
|
var lock_locked_event = device_event.extend({
|
|
6656
6656
|
event_type: zod.z.literal("lock.locked"),
|
|
6657
6657
|
access_code_id: zod.z.string().uuid().optional().describe("ID of the access code that was used to lock the device."),
|
|
6658
|
+
code: zod.z.string().optional().describe(`
|
|
6659
|
+
Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
6660
|
+
`),
|
|
6658
6661
|
access_code_is_managed: zod.z.boolean().optional().describe(
|
|
6659
6662
|
"Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set."
|
|
6660
6663
|
),
|
|
@@ -6681,6 +6684,9 @@ var lock_unlocked_event = device_event.extend({
|
|
|
6681
6684
|
access_code_id: zod.z.string().uuid().optional().describe(
|
|
6682
6685
|
"ID of the access code that was used to unlock the affected device."
|
|
6683
6686
|
),
|
|
6687
|
+
code: zod.z.string().optional().describe(`
|
|
6688
|
+
Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.
|
|
6689
|
+
`),
|
|
6684
6690
|
access_code_is_managed: zod.z.boolean().optional().describe(
|
|
6685
6691
|
"Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set."
|
|
6686
6692
|
),
|
|
@@ -30302,6 +30308,10 @@ var openapi = {
|
|
|
30302
30308
|
format: "uuid",
|
|
30303
30309
|
type: "string"
|
|
30304
30310
|
},
|
|
30311
|
+
code: {
|
|
30312
|
+
description: "\n Code (PIN) that was used to lock the device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.\n ",
|
|
30313
|
+
type: "string"
|
|
30314
|
+
},
|
|
30305
30315
|
connected_account_custom_metadata: {
|
|
30306
30316
|
additionalProperties: {
|
|
30307
30317
|
oneOf: [{ type: "string" }, { type: "boolean" }]
|
|
@@ -30410,6 +30420,10 @@ var openapi = {
|
|
|
30410
30420
|
format: "uuid",
|
|
30411
30421
|
type: "string"
|
|
30412
30422
|
},
|
|
30423
|
+
code: {
|
|
30424
|
+
description: "\n Code (PIN) that was used to unlock the affected device, if known. Taken from the matched managed or unmanaged access code, or from the code reported by the provider when no access code matched.\n ",
|
|
30425
|
+
type: "string"
|
|
30426
|
+
},
|
|
30413
30427
|
connected_account_custom_metadata: {
|
|
30414
30428
|
additionalProperties: {
|
|
30415
30429
|
oneOf: [{ type: "string" }, { type: "boolean" }]
|