@seamapi/types 1.289.1 → 1.291.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
@@ -1346,6 +1346,9 @@ var acs_system_capability_flags = zod.z.object({
1346
1346
  "Indicates whether the `acs_system` supports [adding users to access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#add-an-acs-user-to-an-access-group). See also [Access Group-based Access Control Systems](https://docs.seam.co/latest/capability-guides/access-systems/understanding-access-control-system-differences#access-group-based-access-control-systems)."
1347
1347
  )
1348
1348
  });
1349
+ var location = zod.z.object({
1350
+ time_zone: zod.z.string().nullable().describe("Time zone in which the `acs_system` is located.")
1351
+ });
1349
1352
  var acs_system_external_type = zod.z.enum([
1350
1353
  "pti_site",
1351
1354
  "alta_org",
@@ -1378,20 +1381,20 @@ var visionline_instance_unreachable = common_acs_system_error.extend({
1378
1381
  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).
1379
1382
  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).`);
1380
1383
  var salto_ks_subscription_limit_exceeded = common_acs_system_error.extend({
1381
- error_code: zod.z.literal("salto_ks_subscription_limit_exceeded").describe(
1382
- "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit."
1383
- )
1384
- });
1384
+ error_code: zod.z.literal("salto_ks_subscription_limit_exceeded").describe(error_code_description)
1385
+ }).describe(
1386
+ "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit."
1387
+ );
1385
1388
  var acs_system_disconnected = common_acs_system_error.extend({
1386
- error_code: zod.z.literal("acs_system_disconnected").describe(
1387
- "Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue."
1388
- )
1389
- });
1389
+ error_code: zod.z.literal("acs_system_disconnected").describe(error_code_description)
1390
+ }).describe(
1391
+ "Indicates that the access system has been disconnected. See [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue."
1392
+ );
1390
1393
  var account_disconnected = common_acs_system_error.extend({
1391
- error_code: zod.z.literal("account_disconnected").describe(
1392
- "Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access."
1393
- )
1394
- });
1394
+ error_code: zod.z.literal("account_disconnected").describe(error_code_description)
1395
+ }).describe(
1396
+ "Indicates that the login credentials are invalid. Reconnect the account using the Connect Webview to restore access."
1397
+ );
1395
1398
  var acs_system_error = zod.z.union([
1396
1399
  seam_bridge_disconnected,
1397
1400
  visionline_instance_unreachable,
@@ -1462,6 +1465,7 @@ var acs_system = zod.z.object({
1462
1465
  deprecated: Use \`external_type_display_name\`.
1463
1466
  ---
1464
1467
  `),
1468
+ location,
1465
1469
  name: zod.z.string().describe("Name of the `acs_system`."),
1466
1470
  created_at: zod.z.string().datetime().describe("Date and time at which the `acs_system` was created."),
1467
1471
  workspace_id: zod.z.string().uuid().describe(
@@ -2233,6 +2237,19 @@ var acs_credential_events = [
2233
2237
  acs_credential_deleted_event,
2234
2238
  acs_credential_issued
2235
2239
  ];
2240
+ var acs_encoder_event = common_acs_event.extend({
2241
+ acs_encoder_id: zod.z.string().uuid().describe("ID of the ACS encoder.")
2242
+ });
2243
+ var acs_encoder_added_event = acs_encoder_event.extend({
2244
+ event_type: zod.z.literal("acs_encoder.added")
2245
+ }).describe("An ACS encoder was added.");
2246
+ var acs_encoder_removed_event = acs_encoder_event.extend({
2247
+ event_type: zod.z.literal("acs_encoder.removed")
2248
+ }).describe("An ACS encoder was removed.");
2249
+ var acs_encoder_events = [
2250
+ acs_encoder_added_event,
2251
+ acs_encoder_removed_event
2252
+ ];
2236
2253
  var acs_system_event = common_acs_event.extend({});
2237
2254
  var acs_system_connected_event = acs_system_event.extend({
2238
2255
  event_type: zod.z.literal("acs_system.connected")
@@ -2256,7 +2273,8 @@ var acs_user_events = [acs_user_deleted_event];
2256
2273
  var acs_events = [
2257
2274
  ...acs_system_events,
2258
2275
  ...acs_credential_events,
2259
- ...acs_user_events
2276
+ ...acs_user_events,
2277
+ ...acs_encoder_events
2260
2278
  ];
2261
2279
  var action_attempt_event = common_event.extend({
2262
2280
  action_attempt_id: zod.z.string().uuid().describe(`
@@ -3375,6 +3393,7 @@ var openapi_default = {
3375
3393
  type: "object"
3376
3394
  },
3377
3395
  {
3396
+ description: "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.",
3378
3397
  properties: {
3379
3398
  created_at: {
3380
3399
  description: "Date and time at which Seam created the error.",
@@ -3382,7 +3401,7 @@ var openapi_default = {
3382
3401
  type: "string"
3383
3402
  },
3384
3403
  error_code: {
3385
- description: "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.",
3404
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
3386
3405
  enum: ["salto_ks_subscription_limit_exceeded"],
3387
3406
  type: "string"
3388
3407
  },
@@ -3395,6 +3414,7 @@ var openapi_default = {
3395
3414
  type: "object"
3396
3415
  },
3397
3416
  {
3417
+ description: "Indicates that the access system has been disconnected. See [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.",
3398
3418
  properties: {
3399
3419
  created_at: {
3400
3420
  description: "Date and time at which Seam created the error.",
@@ -3402,7 +3422,7 @@ var openapi_default = {
3402
3422
  type: "string"
3403
3423
  },
3404
3424
  error_code: {
3405
- description: "Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.",
3425
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
3406
3426
  enum: ["acs_system_disconnected"],
3407
3427
  type: "string"
3408
3428
  },
@@ -3415,6 +3435,7 @@ var openapi_default = {
3415
3435
  type: "object"
3416
3436
  },
3417
3437
  {
3438
+ description: "Indicates that the login credentials are invalid. Reconnect the account using the Connect Webview to restore access.",
3418
3439
  properties: {
3419
3440
  created_at: {
3420
3441
  description: "Date and time at which Seam created the error.",
@@ -3422,7 +3443,7 @@ var openapi_default = {
3422
3443
  type: "string"
3423
3444
  },
3424
3445
  error_code: {
3425
- description: "Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access.",
3446
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
3426
3447
  enum: ["account_disconnected"],
3427
3448
  type: "string"
3428
3449
  },
@@ -3472,6 +3493,17 @@ var openapi_default = {
3472
3493
  description: "Indicates if the `acs_system` is a credential manager.",
3473
3494
  type: "boolean"
3474
3495
  },
3496
+ location: {
3497
+ properties: {
3498
+ time_zone: {
3499
+ description: "Time zone in which the `acs_system` is located.",
3500
+ nullable: true,
3501
+ type: "string"
3502
+ }
3503
+ },
3504
+ required: ["time_zone"],
3505
+ type: "object"
3506
+ },
3475
3507
  name: { description: "Name of the `acs_system`.", type: "string" },
3476
3508
  system_type: {
3477
3509
  deprecated: true,
@@ -3549,6 +3581,7 @@ var openapi_default = {
3549
3581
  required: [
3550
3582
  "acs_system_id",
3551
3583
  "is_credential_manager",
3584
+ "location",
3552
3585
  "name",
3553
3586
  "created_at",
3554
3587
  "workspace_id",
@@ -16054,6 +16087,8 @@ var openapi_default = {
16054
16087
  "acs_user.deleted",
16055
16088
  "acs_credential.deleted",
16056
16089
  "acs_credential.issued",
16090
+ "acs_encoder.added",
16091
+ "acs_encoder.removed",
16057
16092
  "enrollment_automation.deleted",
16058
16093
  "client_session.deleted",
16059
16094
  "action_attempt.lock_door.succeeded",
@@ -16128,6 +16163,8 @@ var openapi_default = {
16128
16163
  "acs_user.deleted",
16129
16164
  "acs_credential.deleted",
16130
16165
  "acs_credential.issued",
16166
+ "acs_encoder.added",
16167
+ "acs_encoder.removed",
16131
16168
  "enrollment_automation.deleted",
16132
16169
  "client_session.deleted",
16133
16170
  "action_attempt.lock_door.succeeded",