@seamapi/types 1.843.0 → 1.845.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
@@ -2009,7 +2009,8 @@ var DEVICE_PROVIDERS = {
2009
2009
  ULTRALOQ: "ultraloq",
2010
2010
  RING: "ring",
2011
2011
  ICAL: "ical",
2012
- LODGIFY: "lodgify"
2012
+ LODGIFY: "lodgify",
2013
+ HOSTAWAY: "hostaway"
2013
2014
  };
2014
2015
  var ALL_DEVICE_PROVIDERS = Object.values(DEVICE_PROVIDERS);
2015
2016
  var PROVIDER_CATEGORY_MAP = {
@@ -2082,7 +2083,7 @@ var PROVIDER_CATEGORY_MAP = {
2082
2083
  "hotek"
2083
2084
  ],
2084
2085
  cameras: ["ring"],
2085
- connectors: ["ical", "lodgify"],
2086
+ connectors: ["ical", "lodgify", "hostaway"],
2086
2087
  internal_beta: ALL_DEVICE_PROVIDERS
2087
2088
  };
2088
2089
  var PROVIDER_CATEGORIES = Object.keys(PROVIDER_CATEGORY_MAP);
@@ -3708,6 +3709,26 @@ var acs_entrance_avigilon_alta_metadata = zod.z.object({
3708
3709
  }).describe("Avigilon Alta-specific metadata associated with the entrance.");
3709
3710
 
3710
3711
  // src/lib/seam/connect/models/acs/acs-entrance.ts
3712
+ var warning_code_description8 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
3713
+ var common_acs_entrance_warning = zod.z.object({
3714
+ created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
3715
+ message: zod.z.string().describe(
3716
+ "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
3717
+ )
3718
+ });
3719
+ var salto_ks_entrance_access_code_support_removed = common_acs_entrance_warning.extend({
3720
+ warning_code: zod.z.literal("salto_ks_entrance_access_code_support_removed").describe(warning_code_description8)
3721
+ }).describe(
3722
+ "Indicates that a change in the reported device model has been detected for this Salto KS entrance, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps."
3723
+ );
3724
+ var acs_entrance_warning = zod.z.discriminatedUnion("warning_code", [
3725
+ salto_ks_entrance_access_code_support_removed
3726
+ ]).describe(
3727
+ "Warning associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details)."
3728
+ );
3729
+ zod.z.object({
3730
+ salto_ks_entrance_access_code_support_removed: salto_ks_entrance_access_code_support_removed.optional().nullable()
3731
+ });
3711
3732
  var acs_entrance_capability_flags = zod.z.object({
3712
3733
  can_unlock_with_mobile_key: zod.z.boolean().optional().describe(
3713
3734
  "Indicates whether the ACS entrance can be unlocked with mobile key credentials."
@@ -3754,6 +3775,9 @@ var acs_entrance = zod.z.object({
3754
3775
  ).describe(
3755
3776
  "Errors associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details)."
3756
3777
  ),
3778
+ warnings: zod.z.array(acs_entrance_warning).describe(
3779
+ "Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details)."
3780
+ ),
3757
3781
  latch_metadata: acs_entrance_latch_metadata.optional().describe(
3758
3782
  "Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details)."
3759
3783
  ),
@@ -3825,7 +3849,7 @@ var common_acs_system_error = zod.z.object({
3825
3849
  )
3826
3850
  });
3827
3851
  var error_code_description7 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
3828
- var warning_code_description8 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
3852
+ var warning_code_description9 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
3829
3853
  var seam_bridge_disconnected = common_acs_system_error.extend({
3830
3854
  error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description7)
3831
3855
  }).describe(`Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
@@ -3888,12 +3912,12 @@ var common_acs_system_warning = zod.z.object({
3888
3912
  )
3889
3913
  });
3890
3914
  var salto_ks_subscription_limit_almost_reached3 = common_acs_system_warning.extend({
3891
- warning_code: zod.z.literal("salto_ks_subscription_limit_almost_reached").describe(warning_code_description8)
3915
+ warning_code: zod.z.literal("salto_ks_subscription_limit_almost_reached").describe(warning_code_description9)
3892
3916
  }).describe(
3893
3917
  "Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site to rectify the issue."
3894
3918
  );
3895
3919
  var time_zone_does_not_match_location = common_acs_system_warning.extend({
3896
- warning_code: zod.z.literal("time_zone_does_not_match_location").describe(warning_code_description8),
3920
+ warning_code: zod.z.literal("time_zone_does_not_match_location").describe(warning_code_description9),
3897
3921
  misconfigured_acs_entrance_ids: zod.z.array(zod.z.string().uuid()).optional().describe(
3898
3922
  `
3899
3923
  ---
@@ -5114,7 +5138,7 @@ var common_event = zod.z.object({
5114
5138
  occurred_at: zod.z.string().datetime().describe("Date and time at which the event occurred.")
5115
5139
  });
5116
5140
  var error_code_description8 = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
5117
- var warning_code_description9 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
5141
+ var warning_code_description10 = "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.";
5118
5142
  var common_event_error = zod.z.object({
5119
5143
  created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
5120
5144
  message: zod.z.string().describe(
@@ -5127,7 +5151,7 @@ var common_event_warning = zod.z.object({
5127
5151
  message: zod.z.string().describe(
5128
5152
  "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
5129
5153
  ),
5130
- warning_code: zod.z.string().describe(warning_code_description9)
5154
+ warning_code: zod.z.string().describe(warning_code_description10)
5131
5155
  });
5132
5156
 
5133
5157
  // src/lib/seam/connect/models/events/access-codes.ts
@@ -11059,6 +11083,37 @@ var openapi = {
11059
11083
  },
11060
11084
  required: ["door_name", "door_category"],
11061
11085
  type: "object"
11086
+ },
11087
+ warnings: {
11088
+ description: "Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).",
11089
+ items: {
11090
+ description: "Warning associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).",
11091
+ discriminator: { propertyName: "warning_code" },
11092
+ oneOf: [
11093
+ {
11094
+ description: "Indicates that a change in the reported device model has been detected for this Salto KS entrance, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps.",
11095
+ properties: {
11096
+ created_at: {
11097
+ description: "Date and time at which Seam created the warning.",
11098
+ format: "date-time",
11099
+ type: "string"
11100
+ },
11101
+ message: {
11102
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
11103
+ type: "string"
11104
+ },
11105
+ warning_code: {
11106
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
11107
+ enum: ["salto_ks_entrance_access_code_support_removed"],
11108
+ type: "string"
11109
+ }
11110
+ },
11111
+ required: ["created_at", "message", "warning_code"],
11112
+ type: "object"
11113
+ }
11114
+ ]
11115
+ },
11116
+ type: "array"
11062
11117
  }
11063
11118
  },
11064
11119
  required: [
@@ -11068,7 +11123,8 @@ var openapi = {
11068
11123
  "created_at",
11069
11124
  "display_name",
11070
11125
  "connected_account_id",
11071
- "errors"
11126
+ "errors",
11127
+ "warnings"
11072
11128
  ],
11073
11129
  type: "object",
11074
11130
  "x-route-path": "/acs/entrances"
@@ -21015,7 +21071,8 @@ var openapi = {
21015
21071
  "ultraloq",
21016
21072
  "ring",
21017
21073
  "ical",
21018
- "lodgify"
21074
+ "lodgify",
21075
+ "hostaway"
21019
21076
  ],
21020
21077
  type: "string"
21021
21078
  },
@@ -29819,6 +29876,43 @@ var openapi = {
29819
29876
  },
29820
29877
  required: ["door_name", "door_category"],
29821
29878
  type: "object"
29879
+ },
29880
+ warnings: {
29881
+ description: "Warnings associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).",
29882
+ items: {
29883
+ description: "Warning associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).",
29884
+ discriminator: { propertyName: "warning_code" },
29885
+ oneOf: [
29886
+ {
29887
+ description: "Indicates that a change in the reported device model has been detected for this Salto KS entrance, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps.",
29888
+ properties: {
29889
+ created_at: {
29890
+ description: "Date and time at which Seam created the warning.",
29891
+ format: "date-time",
29892
+ type: "string"
29893
+ },
29894
+ message: {
29895
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
29896
+ type: "string"
29897
+ },
29898
+ warning_code: {
29899
+ description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
29900
+ enum: [
29901
+ "salto_ks_entrance_access_code_support_removed"
29902
+ ],
29903
+ type: "string"
29904
+ }
29905
+ },
29906
+ required: [
29907
+ "created_at",
29908
+ "message",
29909
+ "warning_code"
29910
+ ],
29911
+ type: "object"
29912
+ }
29913
+ ]
29914
+ },
29915
+ type: "array"
29822
29916
  }
29823
29917
  },
29824
29918
  required: [
@@ -29828,7 +29922,8 @@ var openapi = {
29828
29922
  "created_at",
29829
29923
  "display_name",
29830
29924
  "connected_account_id",
29831
- "errors"
29925
+ "errors",
29926
+ "warnings"
29832
29927
  ],
29833
29928
  type: "object",
29834
29929
  "x-route-path": "/acs/entrances"
@@ -52091,6 +52186,7 @@ var openapi = {
52091
52186
  "ring",
52092
52187
  "ical",
52093
52188
  "lodgify",
52189
+ "hostaway",
52094
52190
  "yale_access",
52095
52191
  "hid_cm",
52096
52192
  "google_nest"
@@ -56054,7 +56150,8 @@ var openapi = {
56054
56150
  "ultraloq",
56055
56151
  "ring",
56056
56152
  "ical",
56057
- "lodgify"
56153
+ "lodgify",
56154
+ "hostaway"
56058
56155
  ],
56059
56156
  type: "string"
56060
56157
  }
@@ -56546,7 +56643,8 @@ var openapi = {
56546
56643
  "ultraloq",
56547
56644
  "ring",
56548
56645
  "ical",
56549
- "lodgify"
56646
+ "lodgify",
56647
+ "hostaway"
56550
56648
  ],
56551
56649
  type: "string"
56552
56650
  },
@@ -58347,7 +58445,8 @@ var openapi = {
58347
58445
  "ultraloq",
58348
58446
  "ring",
58349
58447
  "ical",
58350
- "lodgify"
58448
+ "lodgify",
58449
+ "hostaway"
58351
58450
  ],
58352
58451
  type: "string"
58353
58452
  }
@@ -58838,7 +58937,8 @@ var openapi = {
58838
58937
  "ultraloq",
58839
58938
  "ring",
58840
58939
  "ical",
58841
- "lodgify"
58940
+ "lodgify",
58941
+ "hostaway"
58842
58942
  ],
58843
58943
  type: "string"
58844
58944
  },
@@ -67208,7 +67308,8 @@ var openapi = {
67208
67308
  "smoobu",
67209
67309
  "zonal",
67210
67310
  "ical",
67211
- "lodgify"
67311
+ "lodgify",
67312
+ "hostaway"
67212
67313
  ],
67213
67314
  type: "string"
67214
67315
  },