@seamapi/types 1.813.0 → 1.814.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 +20 -6
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +125 -24
- package/dist/index.cjs +20 -6
- 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 +25 -13
- package/lib/seam/connect/models/events/devices.js +8 -2
- 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 +53 -0
- package/lib/seam/connect/openapi.js +10 -2
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +40 -8
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +8 -2
- package/src/lib/seam/connect/openapi.ts +12 -2
- package/src/lib/seam/connect/route-types.ts +40 -8
package/dist/index.cjs
CHANGED
|
@@ -5835,8 +5835,8 @@ var device_event_issue_properties = {
|
|
|
5835
5835
|
device_errors: zod.z.array(common_event_error).describe("Errors associated with the device."),
|
|
5836
5836
|
device_warnings: zod.z.array(common_event_warning).describe("Warnings associated with the device.")
|
|
5837
5837
|
};
|
|
5838
|
-
var lock_method = zod.z.enum(["keycode", "manual", "automatic", "unknown", "
|
|
5839
|
-
"Method by which the affected lock device was locked or unlocked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device."
|
|
5838
|
+
var lock_method = zod.z.enum(["keycode", "manual", "automatic", "unknown", "remote"]).describe(
|
|
5839
|
+
"Method by which the affected lock device was locked or unlocked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device. The `remote` method indicates any remote (un)lock action, including Bluetooth, mobile app, or Seam API. For Seam-initiated remote (un)locks, look up the `action_attempt_id`."
|
|
5840
5840
|
);
|
|
5841
5841
|
var device_connected_event = device_event.extend({
|
|
5842
5842
|
event_type: zod.z.literal("device.connected")
|
|
@@ -6045,7 +6045,10 @@ var lock_locked_event = device_event.extend({
|
|
|
6045
6045
|
action_attempt_id: zod.z.string().uuid().optional().describe("ID of the action attempt associated with the lock action."),
|
|
6046
6046
|
method: lock_method.describe(
|
|
6047
6047
|
"Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device."
|
|
6048
|
-
)
|
|
6048
|
+
),
|
|
6049
|
+
is_bluetooth_action: zod.z.boolean().optional().describe(`
|
|
6050
|
+
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.
|
|
6051
|
+
`)
|
|
6049
6052
|
}).describe(`
|
|
6050
6053
|
---
|
|
6051
6054
|
route_path: /locks
|
|
@@ -6084,7 +6087,10 @@ var lock_unlocked_event = device_event.extend({
|
|
|
6084
6087
|
---
|
|
6085
6088
|
ID of the ACS entrance associated with the unlock event.
|
|
6086
6089
|
`),
|
|
6087
|
-
device_id: zod.z.string().uuid().optional().describe("ID of the affected device.")
|
|
6090
|
+
device_id: zod.z.string().uuid().optional().describe("ID of the affected device."),
|
|
6091
|
+
is_bluetooth_action: zod.z.boolean().optional().describe(`
|
|
6092
|
+
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.
|
|
6093
|
+
`)
|
|
6088
6094
|
}).describe(`
|
|
6089
6095
|
---
|
|
6090
6096
|
route_path: /locks
|
|
@@ -27518,9 +27524,13 @@ var openapi_default = {
|
|
|
27518
27524
|
type: "string"
|
|
27519
27525
|
},
|
|
27520
27526
|
event_type: { enum: ["lock.locked"], type: "string" },
|
|
27527
|
+
is_bluetooth_action: {
|
|
27528
|
+
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 ",
|
|
27529
|
+
type: "boolean"
|
|
27530
|
+
},
|
|
27521
27531
|
method: {
|
|
27522
27532
|
description: "Method by which the affected lock device was locked. When the method is `keycode`, the `access_code_id` indicates the access code that was used, if reported by the device.",
|
|
27523
|
-
enum: ["keycode", "manual", "automatic", "unknown", "
|
|
27533
|
+
enum: ["keycode", "manual", "automatic", "unknown", "remote"],
|
|
27524
27534
|
type: "string"
|
|
27525
27535
|
},
|
|
27526
27536
|
occurred_at: {
|
|
@@ -27618,9 +27628,13 @@ var openapi_default = {
|
|
|
27618
27628
|
type: "string"
|
|
27619
27629
|
},
|
|
27620
27630
|
event_type: { enum: ["lock.unlocked"], type: "string" },
|
|
27631
|
+
is_bluetooth_action: {
|
|
27632
|
+
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 ",
|
|
27633
|
+
type: "boolean"
|
|
27634
|
+
},
|
|
27621
27635
|
method: {
|
|
27622
27636
|
description: "Method by which the affected lock device was unlocked. When the method is `keycode`, the `access_code_id` indicates the [access code](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) that was used, if reported by the device.",
|
|
27623
|
-
enum: ["keycode", "manual", "automatic", "unknown", "
|
|
27637
|
+
enum: ["keycode", "manual", "automatic", "unknown", "remote"],
|
|
27624
27638
|
type: "string"
|
|
27625
27639
|
},
|
|
27626
27640
|
occurred_at: {
|