@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 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. 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`."
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("ID of the action attempt associated with the lock action."),
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 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."
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
- is_bluetooth_action: zod.z.boolean().optional().describe(`
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("ID of the action attempt associated with the unlock action."),
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 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."
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
- is_bluetooth_action: zod.z.boolean().optional().describe(`
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 associated with the lock action.",
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
- is_bluetooth_action: {
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 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.",
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 associated with the unlock action.",
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
- is_bluetooth_action: {
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 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.",
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
  },