@seamapi/types 1.221.0 → 1.223.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
@@ -1205,13 +1205,39 @@ var visionline_instance_unreachable = common_acs_system_error.extend({
1205
1205
  }).describe(`Indicates that the Seam Bridge is functioning correctly and the Seam API can communicate with the Seam Bridge, but the Seam API cannot connect to the on-premises [Visionline access control system](https://docs.seam.co/latest/device-and-system-integration-guides/assa-abloy-visionline-access-control-system).
1206
1206
  For example, the IP address of the on-premises access control system may be set incorrectly within the Seam [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
1207
1207
  See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.visionline_instance_unreachable).`);
1208
- var acs_system_error = zod.z.union([seam_bridge_disconnected, visionline_instance_unreachable]).describe("Error associated with the `acs_system`.");
1208
+ var salto_site_user_limit_reached = common_acs_system_error.extend({
1209
+ error_code: zod.z.literal("salto_site_user_limit_reached").describe(
1210
+ "You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit."
1211
+ )
1212
+ });
1213
+ var acs_system_error = zod.z.union([
1214
+ seam_bridge_disconnected,
1215
+ visionline_instance_unreachable,
1216
+ salto_site_user_limit_reached
1217
+ ]).describe("Error associated with the `acs_system`.");
1209
1218
  zod.z.object({
1210
1219
  seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
1211
- visionline_instance_unreachable: visionline_instance_unreachable.optional().nullable()
1220
+ visionline_instance_unreachable: visionline_instance_unreachable.optional().nullable(),
1221
+ salto_site_user_limit_reached: salto_site_user_limit_reached.optional().nullable()
1222
+ });
1223
+ var common_acs_system_warning = zod.z.object({
1224
+ created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
1225
+ message: zod.z.string().describe(
1226
+ "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it."
1227
+ )
1228
+ });
1229
+ var salto_site_user_limit_almost_reached = common_acs_system_warning.extend({
1230
+ warning_code: zod.z.literal("salto_site_user_limit_almost_reached").describe(
1231
+ "You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit."
1232
+ )
1233
+ });
1234
+ var acs_system_warning = (
1235
+ // z.union([
1236
+ salto_site_user_limit_almost_reached.describe("Warning associated with the `acs_system`.")
1237
+ );
1238
+ zod.z.object({
1239
+ salto_site_user_limit_almost_reached: salto_site_user_limit_almost_reached.optional().nullable()
1212
1240
  });
1213
- var acs_system_warning = zod.z.object({});
1214
- zod.z.object({});
1215
1241
  var acs_system = zod.z.object({
1216
1242
  acs_system_id: zod.z.string().uuid().describe("ID of the `acs_system`."),
1217
1243
  external_type: acs_system_external_type.describe("Brand-specific terminology for the `acs_system` type.").optional(),
@@ -1246,13 +1272,7 @@ var acs_system = zod.z.object({
1246
1272
  image_url: zod.z.string().describe("URL for the image that represents the `acs_system`."),
1247
1273
  image_alt_text: zod.z.string().describe("Alternative text for the `acs_system` image."),
1248
1274
  errors: zod.z.array(acs_system_error).describe("Errors associated with the `acs_system`."),
1249
- warnings: zod.z.array(acs_system_warning).describe(
1250
- `
1251
- ---
1252
- undocumented: Currently, no warnings defined for \`acs_system\`s.
1253
- ---
1254
- `
1255
- )
1275
+ warnings: zod.z.array(acs_system_warning).describe("Warnings associated with the `acs_system`.")
1256
1276
  }).merge(acs_system_capability_flags).describe(
1257
1277
  "Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems)."
1258
1278
  );
@@ -2713,6 +2733,26 @@ var openapi_default = {
2713
2733
  },
2714
2734
  required: ["created_at", "message", "error_code"],
2715
2735
  type: "object"
2736
+ },
2737
+ {
2738
+ properties: {
2739
+ created_at: {
2740
+ description: "Date and time at which Seam created the error.",
2741
+ format: "date-time",
2742
+ type: "string"
2743
+ },
2744
+ error_code: {
2745
+ description: "You have reached the maximum number of users allowed for your site; Please contact Salto support to increase your user limit.",
2746
+ enum: ["salto_site_user_limit_reached"],
2747
+ type: "string"
2748
+ },
2749
+ message: {
2750
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
2751
+ type: "string"
2752
+ }
2753
+ },
2754
+ required: ["created_at", "message", "error_code"],
2755
+ type: "object"
2716
2756
  }
2717
2757
  ]
2718
2758
  },
@@ -2775,9 +2815,29 @@ var openapi_default = {
2775
2815
  type: "object"
2776
2816
  },
2777
2817
  warnings: {
2778
- items: { properties: {}, type: "object" },
2779
- type: "array",
2780
- "x-undocumented": "Currently, no warnings defined for `acs_system`s."
2818
+ description: "Warnings associated with the `acs_system`.",
2819
+ items: {
2820
+ description: "Warning associated with the `acs_system`.",
2821
+ properties: {
2822
+ created_at: {
2823
+ description: "Date and time at which Seam created the warning.",
2824
+ format: "date-time",
2825
+ type: "string"
2826
+ },
2827
+ message: {
2828
+ description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
2829
+ type: "string"
2830
+ },
2831
+ warning_code: {
2832
+ description: "You have reached more than 80% of the maximum number of users allowed for your site; Please contact Salto support to increase your user limit.",
2833
+ enum: ["salto_site_user_limit_almost_reached"],
2834
+ type: "string"
2835
+ }
2836
+ },
2837
+ required: ["created_at", "message", "warning_code"],
2838
+ type: "object"
2839
+ },
2840
+ type: "array"
2781
2841
  },
2782
2842
  workspace_id: {
2783
2843
  description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.",