@seamapi/types 1.195.0 → 1.196.1

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);
@@ -1939,7 +1971,11 @@ var device_accessory_keypad_disconnected_event = device_event.extend({
1939
1971
  }).describe("A accessory keypad was disconnected to a device.");
1940
1972
  var noise_sensor_noise_threshold_triggered_event = device_event.extend({
1941
1973
  event_type: zod.z.literal("noise_sensor.noise_threshold_triggered"),
1942
- // TODO: import from ../devices
1974
+ noise_level_decibels: zod.z.number().optional(),
1975
+ noise_level_nrs: zod.z.number().optional(),
1976
+ noise_threshold_id: zod.z.string().uuid().optional(),
1977
+ noise_threshold_name: zod.z.string().optional(),
1978
+ // TODO: remove metadata from this event
1943
1979
  noiseaware_metadata: zod.z.record(zod.z.unknown()).optional().describe(`
1944
1980
  ---
1945
1981
  title: Noiseaware Metadata
@@ -2453,40 +2489,82 @@ var openapi_default = {
2453
2489
  type: "object"
2454
2490
  },
2455
2491
  acs_system: {
2492
+ description: "Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).",
2456
2493
  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" },
2494
+ acs_system_id: {
2495
+ description: "ID of the `acs_system`.",
2496
+ format: "uuid",
2497
+ type: "string"
2498
+ },
2499
+ can_add_acs_users_to_acs_access_groups: {
2500
+ 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).",
2501
+ type: "boolean"
2502
+ },
2503
+ can_automate_enrollment: {
2504
+ 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`.",
2505
+ type: "boolean"
2506
+ },
2507
+ can_create_acs_access_groups: {
2508
+ 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).",
2509
+ type: "boolean"
2510
+ },
2511
+ can_remove_acs_users_from_acs_access_groups: {
2512
+ 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).",
2513
+ type: "boolean"
2514
+ },
2462
2515
  connected_account_ids: {
2516
+ description: "IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`.",
2463
2517
  items: { format: "uuid", type: "string" },
2464
2518
  type: "array"
2465
2519
  },
2466
- created_at: { format: "date-time", type: "string" },
2520
+ created_at: {
2521
+ description: "Date and time at which the `acs_system` was created.",
2522
+ format: "date-time",
2523
+ type: "string"
2524
+ },
2467
2525
  errors: {
2526
+ description: "Errors associated with the `acs_system`.",
2468
2527
  items: {
2528
+ description: "Error associated with the `acs_system`.",
2469
2529
  oneOf: [
2470
2530
  {
2531
+ 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
2532
  properties: {
2472
- created_at: { format: "date-time", type: "string" },
2533
+ created_at: {
2534
+ description: "Date and time at which Seam created the error.",
2535
+ format: "date-time",
2536
+ type: "string"
2537
+ },
2473
2538
  error_code: {
2539
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
2474
2540
  enum: ["seam_bridge_disconnected"],
2475
2541
  type: "string"
2476
2542
  },
2477
- message: { type: "string" }
2543
+ message: {
2544
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
2545
+ type: "string"
2546
+ }
2478
2547
  },
2479
2548
  required: ["created_at", "message", "error_code"],
2480
2549
  type: "object"
2481
2550
  },
2482
2551
  {
2552
+ 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
2553
  properties: {
2484
- created_at: { format: "date-time", type: "string" },
2554
+ created_at: {
2555
+ description: "Date and time at which Seam created the error.",
2556
+ format: "date-time",
2557
+ type: "string"
2558
+ },
2485
2559
  error_code: {
2560
+ description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
2486
2561
  enum: ["visionline_instance_unreachable"],
2487
2562
  type: "string"
2488
2563
  },
2489
- message: { type: "string" }
2564
+ message: {
2565
+ description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
2566
+ type: "string"
2567
+ }
2490
2568
  },
2491
2569
  required: ["created_at", "message", "error_code"],
2492
2570
  type: "object"
@@ -2496,6 +2574,7 @@ var openapi_default = {
2496
2574
  type: "array"
2497
2575
  },
2498
2576
  external_type: {
2577
+ description: "Brand-specific terminology for the `acs_system` type.",
2499
2578
  enum: [
2500
2579
  "pti_site",
2501
2580
  "alta_org",
@@ -2508,10 +2587,19 @@ var openapi_default = {
2508
2587
  ],
2509
2588
  type: "string"
2510
2589
  },
2511
- external_type_display_name: { type: "string" },
2512
- image_alt_text: { type: "string" },
2513
- image_url: { type: "string" },
2514
- name: { type: "string" },
2590
+ external_type_display_name: {
2591
+ description: "Display name that corresponds to the brand-specific terminology for the `acs_system` type.",
2592
+ type: "string"
2593
+ },
2594
+ image_alt_text: {
2595
+ description: "Alternative text for the `acs_system` image.",
2596
+ type: "string"
2597
+ },
2598
+ image_url: {
2599
+ description: "URL for the image that represents the `acs_system`.",
2600
+ type: "string"
2601
+ },
2602
+ name: { description: "Name of the `acs_system`.", type: "string" },
2515
2603
  system_type: {
2516
2604
  deprecated: true,
2517
2605
  enum: [
@@ -2525,18 +2613,27 @@ var openapi_default = {
2525
2613
  "latch_building"
2526
2614
  ],
2527
2615
  type: "string",
2528
- "x-deprecated": "use external_type"
2616
+ "x-deprecated": "Use `external_type`."
2529
2617
  },
2530
2618
  system_type_display_name: {
2531
2619
  deprecated: true,
2532
2620
  type: "string",
2533
- "x-deprecated": "use external_type_display_name"
2621
+ "x-deprecated": "Use `external_type_display_name`."
2534
2622
  },
2535
2623
  warnings: {
2536
- items: { properties: {}, type: "object" },
2537
- type: "array"
2624
+ items: {
2625
+ description: "\n ---\n undocumented: Currently, no warnings defined for `acs_system`s.\n ---\n ",
2626
+ properties: {},
2627
+ type: "object"
2628
+ },
2629
+ type: "array",
2630
+ "x-undocumented": "Currently, no warnings defined for `acs_system`s."
2538
2631
  },
2539
- workspace_id: { format: "uuid", type: "string" }
2632
+ workspace_id: {
2633
+ description: "ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.",
2634
+ format: "uuid",
2635
+ type: "string"
2636
+ }
2540
2637
  },
2541
2638
  required: [
2542
2639
  "acs_system_id",