@seamapi/types 1.821.0 → 1.822.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 +31 -13
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +188 -87
- package/dist/index.cjs +31 -13
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +20 -10
- package/lib/seam/connect/models/events/devices.d.ts +24 -12
- package/lib/seam/connect/models/events/devices.js +13 -7
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +12 -6
- package/lib/seam/connect/openapi.d.ts +100 -47
- package/lib/seam/connect/openapi.js +14 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +56 -24
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +17 -7
- package/src/lib/seam/connect/openapi.ts +16 -6
- package/src/lib/seam/connect/route-types.ts +56 -24
package/dist/connect.cjs
CHANGED
|
@@ -5846,7 +5846,7 @@ var device_event_issue_properties = {
|
|
|
5846
5846
|
device_warnings: zod.z.array(common_event_warning).describe("Warnings associated with the device.")
|
|
5847
5847
|
};
|
|
5848
5848
|
var lock_method = zod.z.enum(["keycode", "manual", "automatic", "unknown", "remote"]).describe(
|
|
5849
|
-
"Method by which the affected lock device was locked or unlocked.
|
|
5849
|
+
"Method by which the affected lock device was locked or unlocked. `keycode`: locked or unlocked using an access code (see `access_code_id`). `manual`: a direct physical action, such as turning a thumbturn or pressing a button. `remote`: a remote action initiated via an app, Bluetooth, or the Seam API (see `action_attempt_id` for Seam-initiated actions; see `is_via_bluetooth` or `is_via_nfc` for the specific transport). `automatic`: triggered automatically without user interaction, for example by an auto-relock timer. `unknown`: the method could not be determined from the provider event."
|
|
5850
5850
|
);
|
|
5851
5851
|
var device_connected_event = device_event.extend({
|
|
5852
5852
|
event_type: zod.z.literal("device.connected")
|
|
@@ -6052,12 +6052,17 @@ var lock_locked_event = device_event.extend({
|
|
|
6052
6052
|
access_code_is_managed: zod.z.boolean().optional().describe(
|
|
6053
6053
|
"Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set."
|
|
6054
6054
|
),
|
|
6055
|
-
action_attempt_id: zod.z.string().uuid().optional().describe(
|
|
6055
|
+
action_attempt_id: zod.z.string().uuid().optional().describe(
|
|
6056
|
+
"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)."
|
|
6057
|
+
),
|
|
6056
6058
|
method: lock_method.describe(
|
|
6057
|
-
"Method by which the
|
|
6059
|
+
"Method by which the lock was locked. `keycode`: an access code was used (see `access_code_id`). `manual`: a physical action such as a thumbturn or button press. `remote`: a remote action via an app, Bluetooth, or the Seam API (see `action_attempt_id` if Seam-initiated; see `is_via_bluetooth` or `is_via_nfc` for the transport). `automatic`: triggered automatically, for example by an auto-relock timer. `unknown`: could not be determined."
|
|
6058
6060
|
),
|
|
6059
|
-
|
|
6061
|
+
is_via_bluetooth: zod.z.boolean().optional().describe(`
|
|
6060
6062
|
Whether the lock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.
|
|
6063
|
+
`),
|
|
6064
|
+
is_via_nfc: zod.z.boolean().optional().describe(`
|
|
6065
|
+
Whether the lock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.
|
|
6061
6066
|
`)
|
|
6062
6067
|
}).describe(`
|
|
6063
6068
|
---
|
|
@@ -6073,9 +6078,11 @@ var lock_unlocked_event = device_event.extend({
|
|
|
6073
6078
|
access_code_is_managed: zod.z.boolean().optional().describe(
|
|
6074
6079
|
"Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set."
|
|
6075
6080
|
),
|
|
6076
|
-
action_attempt_id: zod.z.string().uuid().optional().describe(
|
|
6081
|
+
action_attempt_id: zod.z.string().uuid().optional().describe(
|
|
6082
|
+
"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)."
|
|
6083
|
+
),
|
|
6077
6084
|
method: lock_method.describe(
|
|
6078
|
-
"Method by which the
|
|
6085
|
+
"Method by which the lock was unlocked. `keycode`: an [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) was used (see `access_code_id`). `manual`: a physical action such as a thumbturn or handle press. `remote`: a remote action via an app, Bluetooth, or the Seam API (see `action_attempt_id` if Seam-initiated; see `is_via_bluetooth` or `is_via_nfc` for the transport). `automatic`: triggered automatically, for example by a time-based schedule. `unknown`: could not be determined."
|
|
6079
6086
|
),
|
|
6080
6087
|
user_identity_id: zod.z.string().uuid().optional().describe(`
|
|
6081
6088
|
undocumented: Unreleased.
|
|
@@ -6098,8 +6105,11 @@ var lock_unlocked_event = device_event.extend({
|
|
|
6098
6105
|
ID of the ACS entrance associated with the unlock event.
|
|
6099
6106
|
`),
|
|
6100
6107
|
device_id: zod.z.string().uuid().optional().describe("ID of the affected device."),
|
|
6101
|
-
|
|
6108
|
+
is_via_bluetooth: zod.z.boolean().optional().describe(`
|
|
6102
6109
|
Whether the unlock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.
|
|
6110
|
+
`),
|
|
6111
|
+
is_via_nfc: zod.z.boolean().optional().describe(`
|
|
6112
|
+
Whether the unlock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.
|
|
6103
6113
|
`)
|
|
6104
6114
|
}).describe(`
|
|
6105
6115
|
---
|
|
@@ -27508,7 +27518,7 @@ var openapi_default = {
|
|
|
27508
27518
|
type: "boolean"
|
|
27509
27519
|
},
|
|
27510
27520
|
action_attempt_id: {
|
|
27511
|
-
description: "ID of the action attempt
|
|
27521
|
+
description: "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).",
|
|
27512
27522
|
format: "uuid",
|
|
27513
27523
|
type: "string"
|
|
27514
27524
|
},
|
|
@@ -27551,12 +27561,16 @@ var openapi_default = {
|
|
|
27551
27561
|
type: "string"
|
|
27552
27562
|
},
|
|
27553
27563
|
event_type: { enum: ["lock.locked"], type: "string" },
|
|
27554
|
-
|
|
27564
|
+
is_via_bluetooth: {
|
|
27555
27565
|
description: "\n Whether the lock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.\n ",
|
|
27556
27566
|
type: "boolean"
|
|
27557
27567
|
},
|
|
27568
|
+
is_via_nfc: {
|
|
27569
|
+
description: "\n Whether the lock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.\n ",
|
|
27570
|
+
type: "boolean"
|
|
27571
|
+
},
|
|
27558
27572
|
method: {
|
|
27559
|
-
description: "Method by which the
|
|
27573
|
+
description: "Method by which the lock was locked. `keycode`: an access code was used (see `access_code_id`). `manual`: a physical action such as a thumbturn or button press. `remote`: a remote action via an app, Bluetooth, or the Seam API (see `action_attempt_id` if Seam-initiated; see `is_via_bluetooth` or `is_via_nfc` for the transport). `automatic`: triggered automatically, for example by an auto-relock timer. `unknown`: could not be determined.",
|
|
27560
27574
|
enum: ["keycode", "manual", "automatic", "unknown", "remote"],
|
|
27561
27575
|
type: "string"
|
|
27562
27576
|
},
|
|
@@ -27612,7 +27626,7 @@ var openapi_default = {
|
|
|
27612
27626
|
type: "string"
|
|
27613
27627
|
},
|
|
27614
27628
|
action_attempt_id: {
|
|
27615
|
-
description: "ID of the action attempt
|
|
27629
|
+
description: "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).",
|
|
27616
27630
|
format: "uuid",
|
|
27617
27631
|
type: "string"
|
|
27618
27632
|
},
|
|
@@ -27655,12 +27669,16 @@ var openapi_default = {
|
|
|
27655
27669
|
type: "string"
|
|
27656
27670
|
},
|
|
27657
27671
|
event_type: { enum: ["lock.unlocked"], type: "string" },
|
|
27658
|
-
|
|
27672
|
+
is_via_bluetooth: {
|
|
27659
27673
|
description: "\n Whether the unlock action was performed over Bluetooth by a remote client (such as the provider's mobile app), rather than a direct physical interaction or a Seam-initiated remote action.\n ",
|
|
27660
27674
|
type: "boolean"
|
|
27661
27675
|
},
|
|
27676
|
+
is_via_nfc: {
|
|
27677
|
+
description: "\n Whether the unlock action was performed by an NFC credential tap (such as an Apple Home Key or an NFC key fob) presented to the lock, rather than a direct physical interaction or a Seam-initiated remote action.\n ",
|
|
27678
|
+
type: "boolean"
|
|
27679
|
+
},
|
|
27662
27680
|
method: {
|
|
27663
|
-
description: "Method by which the
|
|
27681
|
+
description: "Method by which the lock was unlocked. `keycode`: an [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) was used (see `access_code_id`). `manual`: a physical action such as a thumbturn or handle press. `remote`: a remote action via an app, Bluetooth, or the Seam API (see `action_attempt_id` if Seam-initiated; see `is_via_bluetooth` or `is_via_nfc` for the transport). `automatic`: triggered automatically, for example by a time-based schedule. `unknown`: could not be determined.",
|
|
27664
27682
|
enum: ["keycode", "manual", "automatic", "unknown", "remote"],
|
|
27665
27683
|
type: "string"
|
|
27666
27684
|
},
|