@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
@@ -1,9 +1,21 @@
1
1
  import { z } from 'zod';
2
2
  export const acs_system_capability_flags = z.object({
3
- can_automate_enrollment: z.boolean().optional(),
4
- can_create_acs_access_groups: z.boolean().optional(),
5
- can_remove_acs_users_from_acs_access_groups: z.boolean().optional(),
6
- can_add_acs_users_to_acs_access_groups: z.boolean().optional(),
3
+ can_automate_enrollment: z
4
+ .boolean()
5
+ .optional()
6
+ .describe('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`.'),
7
+ can_create_acs_access_groups: z
8
+ .boolean()
9
+ .optional()
10
+ .describe('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).'),
11
+ can_remove_acs_users_from_acs_access_groups: z
12
+ .boolean()
13
+ .optional()
14
+ .describe('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).'),
15
+ can_add_acs_users_to_acs_access_groups: z
16
+ .boolean()
17
+ .optional()
18
+ .describe('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).'),
7
19
  });
8
20
  // If changed, update seam.acs_system.external_type generated column
9
21
  export const acs_system_external_type = z.enum([
@@ -17,52 +29,95 @@ export const acs_system_external_type = z.enum([
17
29
  'latch_building',
18
30
  ]);
19
31
  const common_acs_system_error = z.object({
20
- created_at: z.string().datetime(),
21
- message: z.string(),
32
+ created_at: z
33
+ .string()
34
+ .datetime()
35
+ .describe('Date and time at which Seam created the error.'),
36
+ message: z
37
+ .string()
38
+ .describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
22
39
  });
40
+ const error_code_description = 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.';
23
41
  const seam_bridge_disconnected = common_acs_system_error.extend({
24
- error_code: z.literal('seam_bridge_disconnected'),
25
- });
42
+ error_code: z
43
+ .literal('seam_bridge_disconnected')
44
+ .describe(error_code_description),
45
+ })
46
+ .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.
47
+ This error might also occur if the Seam Bridge is connected to the wrong [workspace](https://docs.seam.co/latest/core-concepts/workspaces).
48
+ 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).`);
26
49
  const visionline_instance_unreachable = common_acs_system_error.extend({
27
- error_code: z.literal('visionline_instance_unreachable'),
28
- });
29
- const acs_system_error = z.union([
30
- seam_bridge_disconnected,
31
- visionline_instance_unreachable,
32
- ]);
50
+ error_code: z
51
+ .literal('visionline_instance_unreachable')
52
+ .describe(error_code_description),
53
+ })
54
+ .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).
55
+ 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).
56
+ 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).`);
57
+ const acs_system_error = z
58
+ .union([seam_bridge_disconnected, visionline_instance_unreachable])
59
+ .describe('Error associated with the `acs_system`.');
33
60
  const acs_system_error_map = z.object({
34
61
  seam_bridge_disconnected: seam_bridge_disconnected.optional().nullable(),
35
62
  visionline_instance_unreachable: visionline_instance_unreachable
36
63
  .optional()
37
64
  .nullable(),
38
65
  });
39
- const acs_system_warning = z.object({});
66
+ const acs_system_warning = z.object({}).describe(`
67
+ ---
68
+ undocumented: Currently, no warnings defined for \`acs_system\`s.
69
+ ---
70
+ `);
40
71
  const acs_system_warning_map = z.object({});
41
72
  export const acs_system = z
42
73
  .object({
43
- acs_system_id: z.string().uuid(),
44
- external_type: acs_system_external_type.optional(),
45
- external_type_display_name: z.string().optional(),
74
+ acs_system_id: z.string().uuid().describe('ID of the `acs_system`.'),
75
+ external_type: acs_system_external_type
76
+ .describe('Brand-specific terminology for the `acs_system` type.')
77
+ .optional(),
78
+ external_type_display_name: z
79
+ .string()
80
+ .describe('Display name that corresponds to the brand-specific terminology for the `acs_system` type.')
81
+ .optional(),
46
82
  system_type: acs_system_external_type
47
83
  .describe(`
48
84
  ---
49
- deprecated: use external_type
85
+ deprecated: Use \`external_type\`.
50
86
  ---
51
87
  `)
52
88
  .optional(),
53
89
  system_type_display_name: z.string().optional().describe(`
54
90
  ---
55
- deprecated: use external_type_display_name
91
+ deprecated: Use \`external_type_display_name\`.
92
+ ---
93
+ `),
94
+ name: z.string().describe('Name of the `acs_system`.'),
95
+ created_at: z
96
+ .string()
97
+ .datetime()
98
+ .describe('Date and time at which the `acs_system` was created.'),
99
+ workspace_id: z
100
+ .string()
101
+ .uuid()
102
+ .describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_system`.'),
103
+ connected_account_ids: z
104
+ .array(z.string().uuid())
105
+ .describe('IDs of the [connected accounts](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the `acs_system`.'),
106
+ image_url: z
107
+ .string()
108
+ .describe('URL for the image that represents the `acs_system`.'),
109
+ image_alt_text: z
110
+ .string()
111
+ .describe('Alternative text for the `acs_system` image.'),
112
+ errors: z
113
+ .array(acs_system_error)
114
+ .describe('Errors associated with the `acs_system`.'),
115
+ warnings: z.array(acs_system_warning).describe(`
116
+ ---
117
+ undocumented: Currently, no warnings defined for \`acs_system\`s.
56
118
  ---
57
119
  `),
58
- name: z.string(),
59
- created_at: z.string().datetime(),
60
- workspace_id: z.string().uuid(),
61
- connected_account_ids: z.array(z.string().uuid()),
62
- image_url: z.string(),
63
- image_alt_text: z.string(),
64
- errors: z.array(acs_system_error),
65
- warnings: z.array(acs_system_warning),
66
120
  })
67
- .merge(acs_system_capability_flags);
121
+ .merge(acs_system_capability_flags)
122
+ .describe('Represents an [access control system](https://docs.seam.co/latest/capability-guides/access-systems).');
68
123
  //# sourceMappingURL=acs-system.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"acs-system.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-system.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/C,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpD,2CAA2C,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACnE,sCAAsC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAA;AAEF,oEAAoE;AACpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC7C,UAAU;IACV,UAAU;IACV,YAAY;IACZ,eAAe;IACf,qCAAqC;IACrC,mBAAmB;IACnB,+BAA+B;IAC/B,gBAAgB;CACjB,CAAC,CAAA;AAIF,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,UAAU,E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