@seamapi/types 1.820.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 +32 -13
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +188 -87
- package/dist/index.cjs +32 -13
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +20 -10
- package/lib/seam/connect/models/devices/device-provider.d.ts +1 -1
- package/lib/seam/connect/models/devices/device-provider.js +1 -0
- package/lib/seam/connect/models/devices/device-provider.js.map +1 -1
- 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/devices/device-provider.ts +1 -0
- 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
|
@@ -2047,6 +2047,7 @@ var PROVIDER_CATEGORY_MAP = {
|
|
|
2047
2047
|
thermostats: ["ecobee", "nest", "sensi", "honeywell_resideo"],
|
|
2048
2048
|
noise_sensors: ["minut", "noiseaware"],
|
|
2049
2049
|
access_control_systems: [
|
|
2050
|
+
"brivo",
|
|
2050
2051
|
"visionline",
|
|
2051
2052
|
"assa_abloy_credential_service",
|
|
2052
2053
|
"latch",
|
|
@@ -5845,7 +5846,7 @@ var device_event_issue_properties = {
|
|
|
5845
5846
|
device_warnings: zod.z.array(common_event_warning).describe("Warnings associated with the device.")
|
|
5846
5847
|
};
|
|
5847
5848
|
var lock_method = zod.z.enum(["keycode", "manual", "automatic", "unknown", "remote"]).describe(
|
|
5848
|
-
"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."
|
|
5849
5850
|
);
|
|
5850
5851
|
var device_connected_event = device_event.extend({
|
|
5851
5852
|
event_type: zod.z.literal("device.connected")
|
|
@@ -6051,12 +6052,17 @@ var lock_locked_event = device_event.extend({
|
|
|
6051
6052
|
access_code_is_managed: zod.z.boolean().optional().describe(
|
|
6052
6053
|
"Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set."
|
|
6053
6054
|
),
|
|
6054
|
-
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
|
+
),
|
|
6055
6058
|
method: lock_method.describe(
|
|
6056
|
-
"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."
|
|
6057
6060
|
),
|
|
6058
|
-
|
|
6061
|
+
is_via_bluetooth: zod.z.boolean().optional().describe(`
|
|
6059
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.
|
|
6060
6066
|
`)
|
|
6061
6067
|
}).describe(`
|
|
6062
6068
|
---
|
|
@@ -6072,9 +6078,11 @@ var lock_unlocked_event = device_event.extend({
|
|
|
6072
6078
|
access_code_is_managed: zod.z.boolean().optional().describe(
|
|
6073
6079
|
"Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set."
|
|
6074
6080
|
),
|
|
6075
|
-
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
|
+
),
|
|
6076
6084
|
method: lock_method.describe(
|
|
6077
|
-
"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."
|
|
6078
6086
|
),
|
|
6079
6087
|
user_identity_id: zod.z.string().uuid().optional().describe(`
|
|
6080
6088
|
undocumented: Unreleased.
|
|
@@ -6097,8 +6105,11 @@ var lock_unlocked_event = device_event.extend({
|
|
|
6097
6105
|
ID of the ACS entrance associated with the unlock event.
|
|
6098
6106
|
`),
|
|
6099
6107
|
device_id: zod.z.string().uuid().optional().describe("ID of the affected device."),
|
|
6100
|
-
|
|
6108
|
+
is_via_bluetooth: zod.z.boolean().optional().describe(`
|
|
6101
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.
|
|
6102
6113
|
`)
|
|
6103
6114
|
}).describe(`
|
|
6104
6115
|
---
|
|
@@ -27507,7 +27518,7 @@ var openapi_default = {
|
|
|
27507
27518
|
type: "boolean"
|
|
27508
27519
|
},
|
|
27509
27520
|
action_attempt_id: {
|
|
27510
|
-
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).",
|
|
27511
27522
|
format: "uuid",
|
|
27512
27523
|
type: "string"
|
|
27513
27524
|
},
|
|
@@ -27550,12 +27561,16 @@ var openapi_default = {
|
|
|
27550
27561
|
type: "string"
|
|
27551
27562
|
},
|
|
27552
27563
|
event_type: { enum: ["lock.locked"], type: "string" },
|
|
27553
|
-
|
|
27564
|
+
is_via_bluetooth: {
|
|
27554
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 ",
|
|
27555
27566
|
type: "boolean"
|
|
27556
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
|
+
},
|
|
27557
27572
|
method: {
|
|
27558
|
-
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.",
|
|
27559
27574
|
enum: ["keycode", "manual", "automatic", "unknown", "remote"],
|
|
27560
27575
|
type: "string"
|
|
27561
27576
|
},
|
|
@@ -27611,7 +27626,7 @@ var openapi_default = {
|
|
|
27611
27626
|
type: "string"
|
|
27612
27627
|
},
|
|
27613
27628
|
action_attempt_id: {
|
|
27614
|
-
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).",
|
|
27615
27630
|
format: "uuid",
|
|
27616
27631
|
type: "string"
|
|
27617
27632
|
},
|
|
@@ -27654,12 +27669,16 @@ var openapi_default = {
|
|
|
27654
27669
|
type: "string"
|
|
27655
27670
|
},
|
|
27656
27671
|
event_type: { enum: ["lock.unlocked"], type: "string" },
|
|
27657
|
-
|
|
27672
|
+
is_via_bluetooth: {
|
|
27658
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 ",
|
|
27659
27674
|
type: "boolean"
|
|
27660
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
|
+
},
|
|
27661
27680
|
method: {
|
|
27662
|
-
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.",
|
|
27663
27682
|
enum: ["keycode", "manual", "automatic", "unknown", "remote"],
|
|
27664
27683
|
type: "string"
|
|
27665
27684
|
},
|