@seamapi/types 1.952.0 → 1.953.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
@@ -5616,6 +5616,16 @@ var common_event_warning = zod.z.object({
5616
5616
  }).describe(
5617
5617
  "Warning associated with the resource, including the warning code, message, and creation timestamp."
5618
5618
  );
5619
+ var lock_access_denied_reason = zod.z.enum([
5620
+ "unknown_code",
5621
+ "expired_code",
5622
+ "blocklisted_code",
5623
+ "too_many_attempts",
5624
+ "blocked_by_privacy_mode",
5625
+ "credential_error"
5626
+ ]).describe(
5627
+ "Normalized reason a lock denied access. Provider-agnostic; not all providers report every value."
5628
+ );
5619
5629
 
5620
5630
  // src/lib/seam/connect/models/events/access-codes.ts
5621
5631
  var access_code_event = common_event.extend({
@@ -6782,7 +6792,13 @@ var lock_access_denied_event = device_event.extend({
6782
6792
  ---
6783
6793
  ID of the ACS entrance associated with the access-denied event.
6784
6794
  `),
6785
- device_id: zod.z.string().uuid().optional().describe("ID of the affected device.")
6795
+ device_id: zod.z.string().uuid().optional().describe("ID of the affected device."),
6796
+ reason: zod.z.object({
6797
+ reason_code: lock_access_denied_reason,
6798
+ message: zod.z.string().describe("Human-readable explanation of why access was denied.")
6799
+ }).optional().describe(
6800
+ "Why access was denied, when the provider reports a determinable cause. Omitted when unknown."
6801
+ )
6786
6802
  }).describe(`
6787
6803
  ---
6788
6804
  route_path: /locks
@@ -31035,6 +31051,29 @@ var openapi = {
31035
31051
  format: "date-time",
31036
31052
  type: "string"
31037
31053
  },
31054
+ reason: {
31055
+ description: "Why access was denied, when the provider reports a determinable cause. Omitted when unknown.",
31056
+ properties: {
31057
+ message: {
31058
+ description: "Human-readable explanation of why access was denied.",
31059
+ type: "string"
31060
+ },
31061
+ reason_code: {
31062
+ description: "Normalized reason a lock denied access. Provider-agnostic; not all providers report every value.",
31063
+ enum: [
31064
+ "unknown_code",
31065
+ "expired_code",
31066
+ "blocklisted_code",
31067
+ "too_many_attempts",
31068
+ "blocked_by_privacy_mode",
31069
+ "credential_error"
31070
+ ],
31071
+ type: "string"
31072
+ }
31073
+ },
31074
+ required: ["reason_code", "message"],
31075
+ type: "object"
31076
+ },
31038
31077
  user_identity_id: {
31039
31078
  description: "\n undocumented: Unreleased.\n ---\n ID of the user identity associated with the access-denied event.\n ",
31040
31079
  format: "uuid",