@seamapi/types 1.967.0 → 1.969.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
@@ -3619,6 +3619,13 @@ var acs_entrance_salto_ks_metadata = zod.z.object({
3619
3619
  intrusion_alarm: zod.z.boolean().optional().describe("Indicates whether an intrusion alarm is active on the door."),
3620
3620
  privacy_mode: zod.z.boolean().optional().describe("Indicates whether privacy mode is enabled for the lock.")
3621
3621
  }).partial().describe("Salto KS-specific metadata associated with the entrance.");
3622
+ var acs_user_salto_ks_metadata = zod.z.object({
3623
+ is_subscribed: zod.z.boolean().optional().describe(
3624
+ "Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked."
3625
+ )
3626
+ }).partial().describe(
3627
+ "Salto KS-specific metadata associated with the access system user."
3628
+ );
3622
3629
  var acs_entrance_salto_space_metadata = zod.z.object({
3623
3630
  door_id: zod.z.string().optional().describe("Door ID in the Salto Space access system."),
3624
3631
  door_name: zod.z.string().optional().describe("Name of the door in the Salto Space access system."),
@@ -4638,6 +4645,11 @@ var acs_users_salto_ks_user_not_subscribed = common_acs_user_warning.extend({
4638
4645
  }).describe(
4639
4646
  "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) is not subscribed on Salto KS, so they cannot unlock doors or perform any actions. This occurs when the their access schedule hasn\u2019t started yet, if their access schedule has ended, if the site has reached its limit for active users (subscription slots), or if they have been manually unsubscribed."
4640
4647
  );
4648
+ var acs_user_inactive = common_acs_user_warning.extend({
4649
+ warning_code: zod.z.literal("acs_user_inactive")
4650
+ }).describe(
4651
+ "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) exists but is not currently able to gain access\u2014for example, because their access schedule has not started yet or has ended, the access system has reached its limit for active users, or they have been unsubscribed or deactivated. Refer to the warning message for the provider-specific reason. This is distinct from `is_suspended`, which indicates the user has been explicitly blocked."
4652
+ );
4641
4653
  var unknown_issue_with_acs_user = common_acs_user_warning.extend({
4642
4654
  warning_code: zod.z.literal("unknown_issue_with_acs_user")
4643
4655
  }).describe(
@@ -4651,12 +4663,14 @@ var latch_resident_user = common_acs_user_warning.extend({
4651
4663
  zod.z.object({
4652
4664
  being_deleted: acs_users_being_deleted.optional().nullable(),
4653
4665
  salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable(),
4666
+ acs_user_inactive: acs_user_inactive.optional().nullable(),
4654
4667
  unknown_issue_with_acs_user: unknown_issue_with_acs_user.optional().nullable(),
4655
4668
  latch_resident_user: latch_resident_user.optional().nullable()
4656
4669
  });
4657
4670
  var acs_users_warnings = zod.z.discriminatedUnion("warning_code", [
4658
4671
  acs_users_being_deleted,
4659
4672
  acs_users_salto_ks_user_not_subscribed,
4673
+ acs_user_inactive,
4660
4674
  unknown_issue_with_acs_user,
4661
4675
  latch_resident_user
4662
4676
  ]).describe(
@@ -4741,6 +4755,9 @@ var common_acs_user = zod.z.object({
4741
4755
  `),
4742
4756
  salto_space_metadata: acs_user_salto_space_metadata.optional().describe(
4743
4757
  "Salto Space-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management)."
4758
+ ),
4759
+ salto_ks_metadata: acs_user_salto_ks_metadata.optional().describe(
4760
+ "Salto KS-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management)."
4744
4761
  )
4745
4762
  }).merge(user_fields);
4746
4763
  var acs_user = common_acs_user.merge(
@@ -12515,6 +12532,16 @@ var openapi = {
12515
12532
  description: "Phone number of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).",
12516
12533
  type: "string"
12517
12534
  },
12535
+ salto_ks_metadata: {
12536
+ description: "Salto KS-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).",
12537
+ properties: {
12538
+ is_subscribed: {
12539
+ description: "Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked.",
12540
+ type: "boolean"
12541
+ }
12542
+ },
12543
+ type: "object"
12544
+ },
12518
12545
  salto_space_metadata: {
12519
12546
  description: "Salto Space-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).",
12520
12547
  properties: {
@@ -12591,6 +12618,26 @@ var openapi = {
12591
12618
  required: ["created_at", "message", "warning_code"],
12592
12619
  type: "object"
12593
12620
  },
12621
+ {
12622
+ description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) exists but is not currently able to gain access\u2014for example, because their access schedule has not started yet or has ended, the access system has reached its limit for active users, or they have been unsubscribed or deactivated. Refer to the warning message for the provider-specific reason. This is distinct from `is_suspended`, which indicates the user has been explicitly blocked.",
12623
+ properties: {
12624
+ created_at: {
12625
+ description: "Date and time at which Seam created the warning.",
12626
+ format: "date-time",
12627
+ type: "string"
12628
+ },
12629
+ message: {
12630
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
12631
+ type: "string"
12632
+ },
12633
+ warning_code: {
12634
+ enum: ["acs_user_inactive"],
12635
+ type: "string"
12636
+ }
12637
+ },
12638
+ required: ["created_at", "message", "warning_code"],
12639
+ type: "object"
12640
+ },
12594
12641
  {
12595
12642
  description: "An unknown issue occurred while syncing the state of this [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.",
12596
12643
  properties: {
@@ -36535,6 +36582,16 @@ var openapi = {
36535
36582
  description: "Phone number of the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) in E.164 format (for example, `+15555550100`).",
36536
36583
  type: "string"
36537
36584
  },
36585
+ salto_ks_metadata: {
36586
+ description: "Salto KS-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).",
36587
+ properties: {
36588
+ is_subscribed: {
36589
+ description: "Indicates whether the user holds an active subscription slot on the Salto KS site. Only subscribed users can unlock doors and count against the site's user-subscription limit. A user may not be subscribed because their access schedule has not started or has ended, the site has reached its subscription limit, or they were manually unsubscribed. This is distinct from `is_suspended`, which reflects whether the user has been explicitly blocked.",
36590
+ type: "boolean"
36591
+ }
36592
+ },
36593
+ type: "object"
36594
+ },
36538
36595
  salto_space_metadata: {
36539
36596
  description: "Salto Space-specific metadata associated with the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management).",
36540
36597
  properties: {
@@ -36611,6 +36668,26 @@ var openapi = {
36611
36668
  required: ["created_at", "message", "warning_code"],
36612
36669
  type: "object"
36613
36670
  },
36671
+ {
36672
+ description: "Indicates that the [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) exists but is not currently able to gain access\u2014for example, because their access schedule has not started yet or has ended, the access system has reached its limit for active users, or they have been unsubscribed or deactivated. Refer to the warning message for the provider-specific reason. This is distinct from `is_suspended`, which indicates the user has been explicitly blocked.",
36673
+ properties: {
36674
+ created_at: {
36675
+ description: "Date and time at which Seam created the warning.",
36676
+ format: "date-time",
36677
+ type: "string"
36678
+ },
36679
+ message: {
36680
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
36681
+ type: "string"
36682
+ },
36683
+ warning_code: {
36684
+ enum: ["acs_user_inactive"],
36685
+ type: "string"
36686
+ }
36687
+ },
36688
+ required: ["created_at", "message", "warning_code"],
36689
+ type: "object"
36690
+ },
36614
36691
  {
36615
36692
  description: "An unknown issue occurred while syncing the state of this [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) with the provider. This issue may affect the proper functioning of this user.",
36616
36693
  properties: {