@seamapi/types 1.195.0 → 1.196.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
@@ -220,10 +220,18 @@ var acs_entrance = zod.z.object({
220
220
  visionline_metadata: acs_entrance_visionline_metadata.optional()
221
221
  });
222
222
  var acs_system_capability_flags = zod.z.object({
223
- can_automate_enrollment: zod.z.boolean().optional(),
224
- can_create_acs_access_groups: zod.z.boolean().optional(),
225
- can_remove_acs_users_from_acs_access_groups: zod.z.boolean().optional(),
226
- can_add_acs_users_to_acs_access_groups: zod.z.boolean().optional()
223
+ can_automate_enrollment: zod.z.boolean().optional().describe(
224
+ "Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`."
225
+ ),
226
+ can_create_acs_access_groups: zod.z.boolean().optional().describe(
227
+ "Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). 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)."
228
+ ),
229
+ can_remove_acs_users_from_acs_access_groups: zod.z.boolean().optional().describe(
230
+ "Indicates whether the `acs_system` supports [removing users from access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-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)."
231
+ ),
232
+ can_add_acs_users_to_acs_access_groups: zod.z.boolean().optional().describe(
233
+ "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)."
234
+ )
227
235
  });
228
236
  var acs_system_external_type = zod.z.enum([
229
237
  "pti_site",
@@ -236,50 +244,74 @@ var acs_system_external_type = zod.z.enum([
236
244
  "latch_building"
237
245
  ]);
238
246
  var common_acs_system_error = zod.z.object({
239
- created_at: zod.z.string().datetime(),
240
- message: zod.z.string()
247
+ created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
248
+ message: zod.z.string().describe(
249
+ "Detailed description of the error. Provides insights into the issue and potentially how to rectify it."
250
+ )
241
251
  });
252
+ var error_code_description = "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.";
242
253
  var seam_bridge_disconnected = common_acs_system_error.extend({
243
- error_code: zod.z.literal("seam_bridge_disconnected")
244
- });
254
+ error_code: zod.z.literal("seam_bridge_disconnected").describe(error_code_description)
255
+ }).describe(`Indicates that the Seam API cannot communicate with the [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.
256
+ This error might also occur if the Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
257
+ 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.seam_bridge_disconnected).`);
245
258
  var visionline_instance_unreachable = common_acs_system_error.extend({
246
- error_code: zod.z.literal("visionline_instance_unreachable")
247
- });
248
- var acs_system_error = zod.z.union([
249
- seam_bridge_disconnected,
250
- visionline_instance_unreachable
251
- ]);
259
+ error_code: zod.z.literal("visionline_instance_unreachable").describe(error_code_description)
260
+ }).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).
261
+ 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).
262
+ 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).`);
263
+ var acs_system_error = zod.z.union([seam_bridge_disconnected, visionline_instance_unreachable]).describe("Error associated with the `acs_system`.");
252
264
  zod.z.object({
253
265
  seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
254
266
  visionline_instance_unreachable: visionline_instance_unreachable.optional().nullable()
255
267
  });
256
- var acs_system_warning = zod.z.object({});
268
+ var acs_system_warning = zod.z.object({}).describe(
269
+ `
270
+ ---
271
+ undocumented: Currently, no warnings defined for \`acs_system\`s.
272
+ ---
273
+ `
274
+ );
257
275
  zod.z.object({});
258
276
  var acs_system = zod.z.object({
259
- acs_system_id: zod.z.string().uuid(),
260
- external_type: acs_system_external_type.optional(),
261
- external_type_display_name: zod.z.string().optional(),
277
+ acs_system_id: zod.z.string().uuid().describe("ID of the `acs_system`."),
278
+ external_type: acs_system_external_type.describe("Brand-specific terminology for the `acs_system` type.").optional(),
279
+ external_type_display_name: zod.z.string().describe(
280
+ "Display name that corresponds to the brand-specific terminology for the `acs_system` type."
281
+ ).optional(),
262
282
  system_type: acs_system_external_type.describe(
263
283
  `
264
284
  ---
265
- deprecated: use external_type
285
+ deprecated: Use \`external_type\`.
266
286
  ---
267
287
  `
268
288
  ).optional(),
269
289
  system_type_display_name: zod.z.string().optional().describe(`
270
290
  ---
271
- deprecated: use external_type_display_name
291
+ deprecated: Use \`external_type_display_name\`.
272
292
  ---
273
293
  `),
274
- name: zod.z.string(),
275
- created_at: zod.z.string().datetime(),
276
- workspace_id: zod.z.string().uuid(),
277
- connected_account_ids: zod.z.array(zod.z.string().uuid()),
278
- image_url: zod.z.string(),
279
- image_alt_text: zod.z.string(),
280
- errors: zod.z.array(acs_system_error),
281
- warnings: zod.z.array(acs_system_warning)
282
- }).merge(acs_system_capability_flags);
294
+ name: zod.z.string().describe("Name of the `acs_system`."),
295
+ created_at: zod.z.string().datetime().describe("Date and time at which the `acs_system` was created."),
296
+ workspace_id: zod.z.string().uuid().describe(
297
+ "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`."
298
+ ),
299
+ connected_account_ids: zod.z.array(zod.z.string().uuid()).describe(
300
+ "IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`."
301
+ ),
302
+ image_url: zod.z.string().describe("URL for the image that represents the `acs_system`."),
303
+ image_alt_text: zod.z.string().describe("Alternative text for the `acs_system` image."),
304
+ errors: zod.z.array(acs_system_error).describe("Errors associated with the `acs_system`."),
305
+ warnings: zod.z.array(acs_system_warning).describe(
306
+ `
307
+ ---
308
+ undocumented: Currently, no warnings defined for \`acs_system\`s.
309
+ ---
310
+ `
311
+ )
312
+ }).merge(acs_system_capability_flags).describe(
313
+ "Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems)."
314
+ );
283
315
  var phone_number = zod.z.coerce.string().trim().refine(
284
316
  (val) => {
285
317
  return /^\+[1-9]\d{1,14}$/.test(val);
@@ -2453,40 +2485,82 @@ var openapi_default = {
2453
2485
  type: "object"
2454
2486
  },
2455
2487
  acs_system: {
2488
+ description: "Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).",
2456
2489
  properties: {
2457
- acs_system_id: { format: "uuid", type: "string" },
2458
- can_add_acs_users_to_acs_access_groups: { type: "boolean" },
2459
- can_automate_enrollment: { type: "boolean" },
2460
- can_create_acs_access_groups: { type: "boolean" },
2461
- can_remove_acs_users_from_acs_access_groups: { type: "boolean" },
2490
+ acs_system_id: {
2491
+ description: "ID of the `acs_system`.",
2492
+ format: "uuid",
2493
+ type: "string"
2494
+ },
2495
+ can_add_acs_users_to_acs_access_groups: {
2496
+ description: "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).",
2497
+ type: "boolean"
2498
+ },
2499
+ can_automate_enrollment: {
2500
+ description: "Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`.",
2501
+ type: "boolean"
2502
+ },
2503
+ can_create_acs_access_groups: {
2504
+ description: "Indicates whether the `acs_system` supports creating [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups). 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).",
2505
+ type: "boolean"
2506
+ },
2507
+ can_remove_acs_users_from_acs_access_groups: {
2508
+ description: "Indicates whether the `acs_system` supports [removing users from access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups#remove-an-acs-user-from-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).",
2509
+ type: "boolean"
2510
+ },
2462
2511
  connected_account_ids: {
2512
+ description: "IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`.",
2463
2513
  items: { format: "uuid", type: "string" },
2464
2514
  type: "array"
2465
2515
  },
2466
- created_at: { format: "date-time", type: "string" },
2516
+ created_at: {
2517
+ description: "Date and time at which the `acs_system` was created.",
2518
+ format: "date-time",
2519
+ type: "string"
2520
+ },
2467
2521
  errors: {
2522
+ description: "Errors associated with the `acs_system`.",
2468
2523
  items: {
2524
+ description: "Error associated with the `acs_system`.",
2469
2525
  oneOf: [
2470
2526
  {
2527
+ description: "Indicates that the Seam API cannot communicate with the [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline.\n This error might also occur if the Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).\n 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.seam_bridge_disconnected).",
2471
2528
  properties: {
2472
- created_at: { format: "date-time", type: "string" },
2529
+ created_at: {
2530
+ description: "Date and time at which Seam created the error.",
2531
+ format: "date-time",
2532
+ type: "string"
2533
+ },
2473
2534
  error_code: {
2535
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
2474
2536
  enum: ["seam_bridge_disconnected"],
2475
2537
  type: "string"
2476
2538
  },
2477
- message: { type: "string" }
2539
+ message: {
2540
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
2541
+ type: "string"
2542
+ }
2478
2543
  },
2479
2544
  required: ["created_at", "message", "error_code"],
2480
2545
  type: "object"
2481
2546
  },
2482
2547
  {
2548
+ description: "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).\n 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).\n 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).",
2483
2549
  properties: {
2484
- created_at: { format: "date-time", type: "string" },
2550
+ created_at: {
2551
+ description: "Date and time at which Seam created the error.",
2552
+ format: "date-time",
2553
+ type: "string"
2554
+ },
2485
2555
  error_code: {
2556
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
2486
2557
  enum: ["visionline_instance_unreachable"],
2487
2558
  type: "string"
2488
2559
  },
2489
- message: { type: "string" }
2560
+ message: {
2561
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
2562
+ type: "string"
2563
+ }
2490
2564
  },
2491
2565
  required: ["created_at", "message", "error_code"],
2492
2566
  type: "object"
@@ -2496,6 +2570,7 @@ var openapi_default = {
2496
2570
  type: "array"
2497
2571
  },
2498
2572
  external_type: {
2573
+ description: "Brand-specific terminology for the `acs_system` type.",
2499
2574
  enum: [
2500
2575
  "pti_site",
2501
2576
  "alta_org",
@@ -2508,10 +2583,19 @@ var openapi_default = {
2508
2583
  ],
2509
2584
  type: "string"
2510
2585
  },
2511
- external_type_display_name: { type: "string" },
2512
- image_alt_text: { type: "string" },
2513
- image_url: { type: "string" },
2514
- name: { type: "string" },
2586
+ external_type_display_name: {
2587
+ description: "Display name that corresponds to the brand-specific terminology for the `acs_system` type.",
2588
+ type: "string"
2589
+ },
2590
+ image_alt_text: {
2591
+ description: "Alternative text for the `acs_system` image.",
2592
+ type: "string"
2593
+ },
2594
+ image_url: {
2595
+ description: "URL for the image that represents the `acs_system`.",
2596
+ type: "string"
2597
+ },
2598
+ name: { description: "Name of the `acs_system`.", type: "string" },
2515
2599
  system_type: {
2516
2600
  deprecated: true,
2517
2601
  enum: [
@@ -2525,18 +2609,27 @@ var openapi_default = {
2525
2609
  "latch_building"
2526
2610
  ],
2527
2611
  type: "string",
2528
- "x-deprecated": "use external_type"
2612
+ "x-deprecated": "Use `external_type`."
2529
2613
  },
2530
2614
  system_type_display_name: {
2531
2615
  deprecated: true,
2532
2616
  type: "string",
2533
- "x-deprecated": "use external_type_display_name"
2617
+ "x-deprecated": "Use `external_type_display_name`."
2534
2618
  },
2535
2619
  warnings: {
2536
- items: { properties: {}, type: "object" },
2537
- type: "array"
2620
+ items: {
2621
+ description: "\n ---\n undocumented: Currently, no warnings defined for `acs_system`s.\n ---\n ",
2622
+ properties: {},
2623
+ type: "object"
2624
+ },
2625
+ type: "array",
2626
+ "x-undocumented": "Currently, no warnings defined for `acs_system`s."
2538
2627
  },
2539
- workspace_id: { format: "uuid", type: "string" }
2628
+ workspace_id: {
2629
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.",
2630
+ format: "uuid",
2631
+ type: "string"
2632
+ }
2540
2633
  },
2541
2634
  required: [
2542
2635
  "acs_system_id",