@seamapi/types 1.194.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.
Files changed (30) hide show
  1. package/dist/connect.cjs +147 -48
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +280 -8
  4. package/lib/seam/connect/models/acs/acs-system.js +84 -29
  5. package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
  6. package/lib/seam/connect/models/events/access-codes.d.ts +102 -0
  7. package/lib/seam/connect/models/events/acs/common.d.ts +3 -0
  8. package/lib/seam/connect/models/events/acs/credentials.d.ts +6 -0
  9. package/lib/seam/connect/models/events/acs/index.d.ts +9 -0
  10. package/lib/seam/connect/models/events/acs/systems.d.ts +6 -0
  11. package/lib/seam/connect/models/events/acs/users.d.ts +6 -0
  12. package/lib/seam/connect/models/events/action-attempts.d.ts +6 -0
  13. package/lib/seam/connect/models/events/client-sessions.d.ts +6 -0
  14. package/lib/seam/connect/models/events/common.d.ts +3 -0
  15. package/lib/seam/connect/models/events/common.js +6 -0
  16. package/lib/seam/connect/models/events/common.js.map +1 -1
  17. package/lib/seam/connect/models/events/connected-accounts.d.ts +42 -0
  18. package/lib/seam/connect/models/events/devices.d.ts +150 -0
  19. package/lib/seam/connect/models/events/enrollment-automations.d.ts +6 -0
  20. package/lib/seam/connect/models/events/phones.d.ts +6 -0
  21. package/lib/seam/connect/models/events/seam-event.d.ts +165 -0
  22. package/lib/seam/connect/openapi.d.ts +22 -0
  23. package/lib/seam/connect/openapi.js +79 -18
  24. package/lib/seam/connect/openapi.js.map +1 -1
  25. package/lib/seam/connect/route-types.d.ts +93 -8
  26. package/package.json +1 -1
  27. package/src/lib/seam/connect/models/acs/acs-system.ts +105 -26
  28. package/src/lib/seam/connect/models/events/common.ts +6 -0
  29. package/src/lib/seam/connect/openapi.ts +98 -18
  30. package/src/lib/seam/connect/route-types.ts +93 -8
@@ -2632,35 +2632,57 @@ export interface Routes {
2632
2632
  };
2633
2633
  formData: {};
2634
2634
  jsonResponse: {
2635
+ /** Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
2635
2636
  acs_system: {
2637
+ /** ID of the `acs_system`. */
2636
2638
  acs_system_id: string;
2639
+ /** Brand-specific terminology for the `acs_system` type. */
2637
2640
  external_type?: ('pti_site' | 'alta_org' | 'salto_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building') | undefined;
2641
+ /** Display name that corresponds to the brand-specific terminology for the `acs_system` type. */
2638
2642
  external_type_display_name?: string | undefined;
2639
2643
  /**
2640
- * @deprecated use external_type */
2644
+ * @deprecated Use `external_type`. */
2641
2645
  system_type?: ('pti_site' | 'alta_org' | 'salto_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building') | undefined;
2642
2646
  /**
2643
- * @deprecated use external_type_display_name */
2647
+ * @deprecated Use `external_type_display_name`. */
2644
2648
  system_type_display_name?: string | undefined;
2649
+ /** Name of the `acs_system`. */
2645
2650
  name: string;
2651
+ /** Date and time at which the `acs_system` was created. */
2646
2652
  created_at: string;
2653
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`. */
2647
2654
  workspace_id: string;
2655
+ /** IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`. */
2648
2656
  connected_account_ids: string[];
2657
+ /** URL for the image that represents the `acs_system`. */
2649
2658
  image_url: string;
2659
+ /** Alternative text for the `acs_system` image. */
2650
2660
  image_alt_text: string;
2661
+ /** Errors associated with the `acs_system`. */
2651
2662
  errors: Array<{
2663
+ /** Date and time at which Seam created the error. */
2652
2664
  created_at: string;
2665
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2653
2666
  message: string;
2667
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2654
2668
  error_code: 'seam_bridge_disconnected';
2655
2669
  } | {
2670
+ /** Date and time at which Seam created the error. */
2656
2671
  created_at: string;
2672
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2657
2673
  message: string;
2674
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2658
2675
  error_code: 'visionline_instance_unreachable';
2659
2676
  }>;
2677
+ /** */
2660
2678
  warnings: Array<{}>;
2679
+ /** 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`. */
2661
2680
  can_automate_enrollment?: boolean | undefined;
2681
+ /** 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). */
2662
2682
  can_create_acs_access_groups?: boolean | undefined;
2683
+ /** 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). */
2663
2684
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
2685
+ /** 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). */
2664
2686
  can_add_acs_users_to_acs_access_groups?: boolean | undefined;
2665
2687
  };
2666
2688
  };
@@ -2676,34 +2698,55 @@ export interface Routes {
2676
2698
  formData: {};
2677
2699
  jsonResponse: {
2678
2700
  acs_systems: Array<{
2701
+ /** ID of the `acs_system`. */
2679
2702
  acs_system_id: string;
2703
+ /** Brand-specific terminology for the `acs_system` type. */
2680
2704
  external_type?: ('pti_site' | 'alta_org' | 'salto_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building') | undefined;
2705
+ /** Display name that corresponds to the brand-specific terminology for the `acs_system` type. */
2681
2706
  external_type_display_name?: string | undefined;
2682
2707
  /**
2683
- * @deprecated use external_type */
2708
+ * @deprecated Use `external_type`. */
2684
2709
  system_type?: ('pti_site' | 'alta_org' | 'salto_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building') | undefined;
2685
2710
  /**
2686
- * @deprecated use external_type_display_name */
2711
+ * @deprecated Use `external_type_display_name`. */
2687
2712
  system_type_display_name?: string | undefined;
2713
+ /** Name of the `acs_system`. */
2688
2714
  name: string;
2715
+ /** Date and time at which the `acs_system` was created. */
2689
2716
  created_at: string;
2717
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`. */
2690
2718
  workspace_id: string;
2719
+ /** IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`. */
2691
2720
  connected_account_ids: string[];
2721
+ /** URL for the image that represents the `acs_system`. */
2692
2722
  image_url: string;
2723
+ /** Alternative text for the `acs_system` image. */
2693
2724
  image_alt_text: string;
2725
+ /** Errors associated with the `acs_system`. */
2694
2726
  errors: Array<{
2727
+ /** Date and time at which Seam created the error. */
2695
2728
  created_at: string;
2729
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2696
2730
  message: string;
2731
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2697
2732
  error_code: 'seam_bridge_disconnected';
2698
2733
  } | {
2734
+ /** Date and time at which Seam created the error. */
2699
2735
  created_at: string;
2736
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2700
2737
  message: string;
2738
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2701
2739
  error_code: 'visionline_instance_unreachable';
2702
2740
  }>;
2741
+ /** */
2703
2742
  warnings: Array<{}>;
2743
+ /** 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`. */
2704
2744
  can_automate_enrollment?: boolean | undefined;
2745
+ /** 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). */
2705
2746
  can_create_acs_access_groups?: boolean | undefined;
2747
+ /** 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). */
2706
2748
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
2749
+ /** 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). */
2707
2750
  can_add_acs_users_to_acs_access_groups?: boolean | undefined;
2708
2751
  }>;
2709
2752
  };
@@ -2719,34 +2762,55 @@ export interface Routes {
2719
2762
  formData: {};
2720
2763
  jsonResponse: {
2721
2764
  acs_systems: Array<{
2765
+ /** ID of the `acs_system`. */
2722
2766
  acs_system_id: string;
2767
+ /** Brand-specific terminology for the `acs_system` type. */
2723
2768
  external_type?: ('pti_site' | 'alta_org' | 'salto_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building') | undefined;
2769
+ /** Display name that corresponds to the brand-specific terminology for the `acs_system` type. */
2724
2770
  external_type_display_name?: string | undefined;
2725
2771
  /**
2726
- * @deprecated use external_type */
2772
+ * @deprecated Use `external_type`. */
2727
2773
  system_type?: ('pti_site' | 'alta_org' | 'salto_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building') | undefined;
2728
2774
  /**
2729
- * @deprecated use external_type_display_name */
2775
+ * @deprecated Use `external_type_display_name`. */
2730
2776
  system_type_display_name?: string | undefined;
2777
+ /** Name of the `acs_system`. */
2731
2778
  name: string;
2779
+ /** Date and time at which the `acs_system` was created. */
2732
2780
  created_at: string;
2781
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`. */
2733
2782
  workspace_id: string;
2783
+ /** IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`. */
2734
2784
  connected_account_ids: string[];
2785
+ /** URL for the image that represents the `acs_system`. */
2735
2786
  image_url: string;
2787
+ /** Alternative text for the `acs_system` image. */
2736
2788
  image_alt_text: string;
2789
+ /** Errors associated with the `acs_system`. */
2737
2790
  errors: Array<{
2791
+ /** Date and time at which Seam created the error. */
2738
2792
  created_at: string;
2793
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2739
2794
  message: string;
2795
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2740
2796
  error_code: 'seam_bridge_disconnected';
2741
2797
  } | {
2798
+ /** Date and time at which Seam created the error. */
2742
2799
  created_at: string;
2800
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
2743
2801
  message: string;
2802
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2744
2803
  error_code: 'visionline_instance_unreachable';
2745
2804
  }>;
2805
+ /** */
2746
2806
  warnings: Array<{}>;
2807
+ /** 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`. */
2747
2808
  can_automate_enrollment?: boolean | undefined;
2809
+ /** 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). */
2748
2810
  can_create_acs_access_groups?: boolean | undefined;
2811
+ /** 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). */
2749
2812
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
2813
+ /** 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). */
2750
2814
  can_add_acs_users_to_acs_access_groups?: boolean | undefined;
2751
2815
  }>;
2752
2816
  };
@@ -14107,34 +14171,55 @@ export interface Routes {
14107
14171
  formData: {};
14108
14172
  jsonResponse: {
14109
14173
  acs_systems: Array<{
14174
+ /** ID of the `acs_system`. */
14110
14175
  acs_system_id: string;
14176
+ /** Brand-specific terminology for the `acs_system` type. */
14111
14177
  external_type?: ('pti_site' | 'alta_org' | 'salto_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building') | undefined;
14178
+ /** Display name that corresponds to the brand-specific terminology for the `acs_system` type. */
14112
14179
  external_type_display_name?: string | undefined;
14113
14180
  /**
14114
- * @deprecated use external_type */
14181
+ * @deprecated Use `external_type`. */
14115
14182
  system_type?: ('pti_site' | 'alta_org' | 'salto_site' | 'brivo_account' | 'hid_credential_manager_organization' | 'visionline_system' | 'assa_abloy_credential_service' | 'latch_building') | undefined;
14116
14183
  /**
14117
- * @deprecated use external_type_display_name */
14184
+ * @deprecated Use `external_type_display_name`. */
14118
14185
  system_type_display_name?: string | undefined;
14186
+ /** Name of the `acs_system`. */
14119
14187
  name: string;
14188
+ /** Date and time at which the `acs_system` was created. */
14120
14189
  created_at: string;
14190
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`. */
14121
14191
  workspace_id: string;
14192
+ /** IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`. */
14122
14193
  connected_account_ids: string[];
14194
+ /** URL for the image that represents the `acs_system`. */
14123
14195
  image_url: string;
14196
+ /** Alternative text for the `acs_system` image. */
14124
14197
  image_alt_text: string;
14198
+ /** Errors associated with the `acs_system`. */
14125
14199
  errors: Array<{
14200
+ /** Date and time at which Seam created the error. */
14126
14201
  created_at: string;
14202
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
14127
14203
  message: string;
14204
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
14128
14205
  error_code: 'seam_bridge_disconnected';
14129
14206
  } | {
14207
+ /** Date and time at which Seam created the error. */
14130
14208
  created_at: string;
14209
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
14131
14210
  message: string;
14211
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
14132
14212
  error_code: 'visionline_instance_unreachable';
14133
14213
  }>;
14214
+ /** */
14134
14215
  warnings: Array<{}>;
14216
+ /** 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`. */
14135
14217
  can_automate_enrollment?: boolean | undefined;
14218
+ /** 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). */
14136
14219
  can_create_acs_access_groups?: boolean | undefined;
14220
+ /** 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). */
14137
14221
  can_remove_acs_users_from_acs_access_groups?: boolean | undefined;
14222
+ /** 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). */
14138
14223
  can_add_acs_users_to_acs_access_groups?: boolean | undefined;
14139
14224
  }>;
14140
14225
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.194.0",
3
+ "version": "1.196.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,10 +1,30 @@
1
1
  import { z } from 'zod'
2
2
 
3
3
  export const acs_system_capability_flags = z.object({
4
- can_automate_enrollment: z.boolean().optional(),
5
- can_create_acs_access_groups: z.boolean().optional(),
6
- can_remove_acs_users_from_acs_access_groups: z.boolean().optional(),
7
- can_add_acs_users_to_acs_access_groups: z.boolean().optional(),
4
+ can_automate_enrollment: z
5
+ .boolean()
6
+ .optional()
7
+ .describe(
8
+ '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`.',
9
+ ),
10
+ can_create_acs_access_groups: z
11
+ .boolean()
12
+ .optional()
13
+ .describe(
14
+ '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).',
15
+ ),
16
+ can_remove_acs_users_from_acs_access_groups: z
17
+ .boolean()
18
+ .optional()
19
+ .describe(
20
+ '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).',
21
+ ),
22
+ can_add_acs_users_to_acs_access_groups: z
23
+ .boolean()
24
+ .optional()
25
+ .describe(
26
+ '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).',
27
+ ),
8
28
  })
9
29
 
10
30
  // If changed, update seam.acs_system.external_type generated column
@@ -22,21 +42,40 @@ export const acs_system_external_type = z.enum([
22
42
  export type AcsSystemExternalType = z.infer<typeof acs_system_external_type>
23
43
 
24
44
  const common_acs_system_error = z.object({
25
- created_at: z.string().datetime(),
26
- message: z.string(),
45
+ created_at: z
46
+ .string()
47
+ .datetime()
48
+ .describe('Date and time at which Seam created the error.'),
49
+ message: z
50
+ .string()
51
+ .describe(
52
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
53
+ ),
27
54
  })
28
55
 
56
+ const error_code_description =
57
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'
58
+
29
59
  const seam_bridge_disconnected = common_acs_system_error.extend({
30
- error_code: z.literal('seam_bridge_disconnected'),
60
+ error_code: z
61
+ .literal('seam_bridge_disconnected')
62
+ .describe(error_code_description),
31
63
  })
64
+ .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.
65
+ This error might also occur if the Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
66
+ 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).`)
32
67
  const visionline_instance_unreachable = common_acs_system_error.extend({
33
- error_code: z.literal('visionline_instance_unreachable'),
68
+ error_code: z
69
+ .literal('visionline_instance_unreachable')
70
+ .describe(error_code_description),
34
71
  })
72
+ .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).
73
+ 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).
74
+ 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).`)
35
75
 
36
- const acs_system_error = z.union([
37
- seam_bridge_disconnected,
38
- visionline_instance_unreachable,
39
- ])
76
+ const acs_system_error = z
77
+ .union([seam_bridge_disconnected, visionline_instance_unreachable])
78
+ .describe('Error associated with the `acs_system`.')
40
79
 
41
80
  const acs_system_error_map = z.object({
42
81
  seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
@@ -47,7 +86,13 @@ const acs_system_error_map = z.object({
47
86
 
48
87
  export type AcsSystemErrorMap = z.infer<typeof acs_system_error_map>
49
88
 
50
- const acs_system_warning = z.object({})
89
+ const acs_system_warning = z.object({}).describe(
90
+ `
91
+ ---
92
+ undocumented: Currently, no warnings defined for \`acs_system\`s.
93
+ ---
94
+ `,
95
+ )
51
96
 
52
97
  const acs_system_warning_map = z.object({})
53
98
 
@@ -55,32 +100,66 @@ export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>
55
100
 
56
101
  export const acs_system = z
57
102
  .object({
58
- acs_system_id: z.string().uuid(),
59
- external_type: acs_system_external_type.optional(),
60
- external_type_display_name: z.string().optional(),
103
+ acs_system_id: z.string().uuid().describe('ID of the `acs_system`.'),
104
+ external_type: acs_system_external_type
105
+ .describe('Brand-specific terminology for the `acs_system` type.')
106
+ .optional(),
107
+ external_type_display_name: z
108
+ .string()
109
+ .describe(
110
+ 'Display name that corresponds to the brand-specific terminology for the `acs_system` type.',
111
+ )
112
+ .optional(),
61
113
  system_type: acs_system_external_type
62
114
  .describe(
63
115
  `
64
116
  ---
65
- deprecated: use external_type
117
+ deprecated: Use \`external_type\`.
66
118
  ---
67
119
  `,
68
120
  )
69
121
  .optional(),
70
122
  system_type_display_name: z.string().optional().describe(`
71
123
  ---
72
- deprecated: use external_type_display_name
124
+ deprecated: Use \`external_type_display_name\`.
73
125
  ---
74
126
  `),
75
- name: z.string(),
76
- created_at: z.string().datetime(),
77
- workspace_id: z.string().uuid(),
78
- connected_account_ids: z.array(z.string().uuid()),
79
- image_url: z.string(),
80
- image_alt_text: z.string(),
81
- errors: z.array(acs_system_error),
82
- warnings: z.array(acs_system_warning),
127
+ name: z.string().describe('Name of the `acs_system`.'),
128
+ created_at: z
129
+ .string()
130
+ .datetime()
131
+ .describe('Date and time at which the `acs_system` was created.'),
132
+ workspace_id: z
133
+ .string()
134
+ .uuid()
135
+ .describe(
136
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.',
137
+ ),
138
+ connected_account_ids: z
139
+ .array(z.string().uuid())
140
+ .describe(
141
+ 'IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`.',
142
+ ),
143
+ image_url: z
144
+ .string()
145
+ .describe('URL for the image that represents the `acs_system`.'),
146
+ image_alt_text: z
147
+ .string()
148
+ .describe('Alternative text for the `acs_system` image.'),
149
+ errors: z
150
+ .array(acs_system_error)
151
+ .describe('Errors associated with the `acs_system`.'),
152
+ warnings: z.array(acs_system_warning).describe(
153
+ `
154
+ ---
155
+ undocumented: Currently, no warnings defined for \`acs_system\`s.
156
+ ---
157
+ `,
158
+ ),
83
159
  })
84
160
  .merge(acs_system_capability_flags)
161
+ .describe(
162
+ 'Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
163
+ )
85
164
 
86
165
  export type AcsSystem = z.output<typeof acs_system>
@@ -1,6 +1,12 @@
1
1
  import { z } from 'zod'
2
2
 
3
3
  export const common_event = z.object({
4
+ event_id: z.string().uuid().describe(`
5
+ ---
6
+ title: Event ID
7
+ ---
8
+ The ID of the event.
9
+ `),
4
10
  workspace_id: z.string().uuid().describe(`
5
11
  ---
6
12
  title: Workspace ID
@@ -389,40 +389,96 @@ export default {
389
389
  type: 'object',
390
390
  },
391
391
  acs_system: {
392
+ description:
393
+ 'Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).',
392
394
  properties: {
393
- acs_system_id: { format: 'uuid', type: 'string' },
394
- can_add_acs_users_to_acs_access_groups: { type: 'boolean' },
395
- can_automate_enrollment: { type: 'boolean' },
396
- can_create_acs_access_groups: { type: 'boolean' },
397
- can_remove_acs_users_from_acs_access_groups: { type: 'boolean' },
395
+ acs_system_id: {
396
+ description: 'ID of the `acs_system`.',
397
+ format: 'uuid',
398
+ type: 'string',
399
+ },
400
+ can_add_acs_users_to_acs_access_groups: {
401
+ description:
402
+ '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).',
403
+ type: 'boolean',
404
+ },
405
+ can_automate_enrollment: {
406
+ description:
407
+ '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`.',
408
+ type: 'boolean',
409
+ },
410
+ can_create_acs_access_groups: {
411
+ description:
412
+ '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).',
413
+ type: 'boolean',
414
+ },
415
+ can_remove_acs_users_from_acs_access_groups: {
416
+ description:
417
+ '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).',
418
+ type: 'boolean',
419
+ },
398
420
  connected_account_ids: {
421
+ description:
422
+ 'IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`.',
399
423
  items: { format: 'uuid', type: 'string' },
400
424
  type: 'array',
401
425
  },
402
- created_at: { format: 'date-time', type: 'string' },
426
+ created_at: {
427
+ description: 'Date and time at which the `acs_system` was created.',
428
+ format: 'date-time',
429
+ type: 'string',
430
+ },
403
431
  errors: {
432
+ description: 'Errors associated with the `acs_system`.',
404
433
  items: {
434
+ description: 'Error associated with the `acs_system`.',
405
435
  oneOf: [
406
436
  {
437
+ description:
438
+ '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).',
407
439
  properties: {
408
- created_at: { format: 'date-time', type: 'string' },
440
+ created_at: {
441
+ description:
442
+ 'Date and time at which Seam created the error.',
443
+ format: 'date-time',
444
+ type: 'string',
445
+ },
409
446
  error_code: {
447
+ description:
448
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
410
449
  enum: ['seam_bridge_disconnected'],
411
450
  type: 'string',
412
451
  },
413
- message: { type: 'string' },
452
+ message: {
453
+ description:
454
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
455
+ type: 'string',
456
+ },
414
457
  },
415
458
  required: ['created_at', 'message', 'error_code'],
416
459
  type: 'object',
417
460
  },
418
461
  {
462
+ description:
463
+ '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).',
419
464
  properties: {
420
- created_at: { format: 'date-time', type: 'string' },
465
+ created_at: {
466
+ description:
467
+ 'Date and time at which Seam created the error.',
468
+ format: 'date-time',
469
+ type: 'string',
470
+ },
421
471
  error_code: {
472
+ description:
473
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
422
474
  enum: ['visionline_instance_unreachable'],
423
475
  type: 'string',
424
476
  },
425
- message: { type: 'string' },
477
+ message: {
478
+ description:
479
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
480
+ type: 'string',
481
+ },
426
482
  },
427
483
  required: ['created_at', 'message', 'error_code'],
428
484
  type: 'object',
@@ -432,6 +488,8 @@ export default {
432
488
  type: 'array',
433
489
  },
434
490
  external_type: {
491
+ description:
492
+ 'Brand-specific terminology for the `acs_system` type.',
435
493
  enum: [
436
494
  'pti_site',
437
495
  'alta_org',
@@ -444,10 +502,20 @@ export default {
444
502
  ],
445
503
  type: 'string',
446
504
  },
447
- external_type_display_name: { type: 'string' },
448
- image_alt_text: { type: 'string' },
449
- image_url: { type: 'string' },
450
- name: { type: 'string' },
505
+ external_type_display_name: {
506
+ description:
507
+ 'Display name that corresponds to the brand-specific terminology for the `acs_system` type.',
508
+ type: 'string',
509
+ },
510
+ image_alt_text: {
511
+ description: 'Alternative text for the `acs_system` image.',
512
+ type: 'string',
513
+ },
514
+ image_url: {
515
+ description: 'URL for the image that represents the `acs_system`.',
516
+ type: 'string',
517
+ },
518
+ name: { description: 'Name of the `acs_system`.', type: 'string' },
451
519
  system_type: {
452
520
  deprecated: true,
453
521
  enum: [
@@ -461,18 +529,30 @@ export default {
461
529
  'latch_building',
462
530
  ],
463
531
  type: 'string',
464
- 'x-deprecated': 'use external_type',
532
+ 'x-deprecated': 'Use `external_type`.',
465
533
  },
466
534
  system_type_display_name: {
467
535
  deprecated: true,
468
536
  type: 'string',
469
- 'x-deprecated': 'use external_type_display_name',
537
+ 'x-deprecated': 'Use `external_type_display_name`.',
470
538
  },
471
539
  warnings: {
472
- items: { properties: {}, type: 'object' },
540
+ items: {
541
+ description:
542
+ '\n ---\n undocumented: Currently, no warnings defined for `acs_system`s.\n ---\n ',
543
+ properties: {},
544
+ type: 'object',
545
+ },
473
546
  type: 'array',
547
+ 'x-undocumented':
548
+ 'Currently, no warnings defined for `acs_system`s.',
549
+ },
550
+ workspace_id: {
551
+ description:
552
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.',
553
+ format: 'uuid',
554
+ type: 'string',
474
555
  },
475
- workspace_id: { format: 'uuid', type: 'string' },
476
556
  },
477
557
  required: [
478
558
  'acs_system_id',