@seamapi/types 1.737.0 → 1.739.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 (43) hide show
  1. package/dist/connect.cjs +1867 -18
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +4282 -348
  4. package/dist/index.cjs +1867 -18
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-access-group.d.ts +590 -0
  7. package/lib/seam/connect/models/acs/acs-access-group.js +4 -0
  8. package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
  9. package/lib/seam/connect/models/acs/acs-access-groups/index.d.ts +1 -0
  10. package/lib/seam/connect/models/acs/acs-access-groups/index.js +2 -0
  11. package/lib/seam/connect/models/acs/acs-access-groups/index.js.map +1 -0
  12. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.d.ts +511 -0
  13. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js +126 -0
  14. package/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.js.map +1 -0
  15. package/lib/seam/connect/models/acs/acs-credential.d.ts +4 -4
  16. package/lib/seam/connect/models/acs/acs-entrance.d.ts +2 -2
  17. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +4 -4
  18. package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +12 -12
  19. package/lib/seam/connect/models/acs/index.d.ts +1 -0
  20. package/lib/seam/connect/models/acs/index.js +1 -0
  21. package/lib/seam/connect/models/acs/index.js.map +1 -1
  22. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +20 -20
  23. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
  24. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +12 -12
  25. package/lib/seam/connect/models/batch.d.ts +868 -74
  26. package/lib/seam/connect/models/events/acs/entrances.d.ts +8 -8
  27. package/lib/seam/connect/models/events/acs/index.d.ts +8 -8
  28. package/lib/seam/connect/models/events/acs/users.d.ts +8 -8
  29. package/lib/seam/connect/models/events/devices.d.ts +4 -4
  30. package/lib/seam/connect/models/events/seam-event.d.ts +10 -10
  31. package/lib/seam/connect/models/phones/phone-session.d.ts +30 -30
  32. package/lib/seam/connect/models/user-identities/user-identity.d.ts +12 -12
  33. package/lib/seam/connect/openapi.d.ts +1761 -0
  34. package/lib/seam/connect/openapi.js +1758 -0
  35. package/lib/seam/connect/openapi.js.map +1 -1
  36. package/lib/seam/connect/route-types.d.ts +789 -0
  37. package/package.json +1 -1
  38. package/src/lib/seam/connect/models/acs/acs-access-group.ts +6 -0
  39. package/src/lib/seam/connect/models/acs/acs-access-groups/index.ts +1 -0
  40. package/src/lib/seam/connect/models/acs/acs-access-groups/pending-mutations.ts +171 -0
  41. package/src/lib/seam/connect/models/acs/index.ts +1 -0
  42. package/src/lib/seam/connect/openapi.ts +1800 -0
  43. package/src/lib/seam/connect/route-types.ts +902 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.737.0",
3
+ "version": "1.739.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod'
2
2
 
3
3
  import { schedule } from '../schedule.js'
4
+ import { acs_access_group_pending_mutations } from './acs-access-groups/pending-mutations.js'
4
5
 
5
6
  // If changed, update seam.acs_access_group.external_type generated column
6
7
  export const acs_access_group_external_type = z.enum([
@@ -118,6 +119,11 @@ const common_acs_access_group = z.object({
118
119
  .describe(
119
120
  "`starts_at` and `ends_at` timestamps for the access group's access.",
120
121
  ),
122
+ pending_mutations: z
123
+ .array(acs_access_group_pending_mutations)
124
+ .describe(
125
+ 'Collection of pending mutations for the access group. Represents operations that have been requested but not yet completed on the integrated access system.',
126
+ ),
121
127
  })
122
128
 
123
129
  export const acs_access_group = common_acs_access_group.extend({
@@ -0,0 +1 @@
1
+ export * from './pending-mutations.js'
@@ -0,0 +1,171 @@
1
+ import { z } from 'zod'
2
+
3
+ const common_pending_mutation = z.object({
4
+ created_at: z
5
+ .string()
6
+ .datetime()
7
+ .describe('Date and time at which the mutation was created.'),
8
+ message: z.string().describe('Detailed description of the mutation.'),
9
+ })
10
+
11
+ const creating = common_pending_mutation
12
+ .extend({
13
+ mutation_code: z
14
+ .literal('creating')
15
+ .describe(
16
+ 'Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system.',
17
+ ),
18
+ })
19
+ .describe(
20
+ 'Seam is in the process of pushing an access group creation to the integrated access system.',
21
+ )
22
+
23
+ const deleting = common_pending_mutation
24
+ .extend({
25
+ mutation_code: z
26
+ .literal('deleting')
27
+ .describe(
28
+ 'Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system.',
29
+ ),
30
+ })
31
+ .describe(
32
+ 'Seam is in the process of pushing an access group deletion to the integrated access system.',
33
+ )
34
+
35
+ const acs_access_group_info = z.object({
36
+ name: z.string().nullable().describe('Name of the access group.'),
37
+ })
38
+
39
+ const updating_group_information = common_pending_mutation
40
+ .extend({
41
+ mutation_code: z
42
+ .literal('updating_group_information')
43
+ .describe(
44
+ 'Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system.',
45
+ ),
46
+ from: acs_access_group_info
47
+ .partial()
48
+ .describe('Old access group information.'),
49
+ to: acs_access_group_info
50
+ .partial()
51
+ .describe('New access group information.'),
52
+ })
53
+ .describe(
54
+ 'Seam is in the process of pushing an access group information update to the integrated access system.',
55
+ )
56
+
57
+ const access_schedule = z
58
+ .object({
59
+ starts_at: z
60
+ .string()
61
+ .datetime()
62
+ .nullable()
63
+ .describe('Starting time for the access schedule.'),
64
+ ends_at: z
65
+ .string()
66
+ .datetime()
67
+ .nullable()
68
+ .describe('Ending time for the access schedule.'),
69
+ })
70
+ .describe('Access schedule involved in the mutation.')
71
+
72
+ const updating_access_schedule = common_pending_mutation
73
+ .extend({
74
+ mutation_code: z
75
+ .literal('updating_access_schedule')
76
+ .describe(
77
+ 'Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system.',
78
+ ),
79
+ from: access_schedule.describe('Old access schedule information.'),
80
+ to: access_schedule.describe('New access schedule information.'),
81
+ })
82
+ .describe(
83
+ 'Seam is in the process of pushing an access schedule update to the integrated access system.',
84
+ )
85
+
86
+ const updating_user_membership = common_pending_mutation
87
+ .extend({
88
+ mutation_code: z
89
+ .literal('updating_user_membership')
90
+ .describe(
91
+ 'Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system.',
92
+ ),
93
+ from: z
94
+ .object({
95
+ acs_user_id: z.string().uuid().nullable().describe('Old user ID.'),
96
+ })
97
+ .describe('Old user membership.'),
98
+ to: z
99
+ .object({
100
+ acs_user_id: z.string().uuid().nullable().describe('New user ID.'),
101
+ })
102
+ .describe('New user membership.'),
103
+ })
104
+ .describe(
105
+ 'Seam is in the process of pushing a user membership update to the integrated access system.',
106
+ )
107
+
108
+ const updating_entrance_membership = common_pending_mutation
109
+ .extend({
110
+ mutation_code: z
111
+ .literal('updating_entrance_membership')
112
+ .describe(
113
+ 'Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system.',
114
+ ),
115
+ from: z
116
+ .object({
117
+ acs_entrance_id: z
118
+ .string()
119
+ .uuid()
120
+ .nullable()
121
+ .describe('Old entrance ID.'),
122
+ })
123
+ .describe('Old entrance membership.'),
124
+ to: z
125
+ .object({
126
+ acs_entrance_id: z
127
+ .string()
128
+ .uuid()
129
+ .nullable()
130
+ .describe('New entrance ID.'),
131
+ })
132
+ .describe('New entrance membership.'),
133
+ })
134
+ .describe(
135
+ 'Seam is in the process of pushing an entrance membership update to the integrated access system.',
136
+ )
137
+
138
+ export const acs_access_group_pending_mutations = z.discriminatedUnion(
139
+ 'mutation_code',
140
+ [
141
+ creating,
142
+ deleting,
143
+ updating_group_information,
144
+ updating_access_schedule,
145
+ updating_user_membership,
146
+ updating_entrance_membership,
147
+ ],
148
+ )
149
+
150
+ export type AcsAccessGroupPendingMutation = z.infer<
151
+ typeof acs_access_group_pending_mutations
152
+ >
153
+
154
+ const _acs_access_group_pending_mutations_map = z.object({
155
+ creating: creating.optional().nullable(),
156
+ deleting: deleting.optional().nullable(),
157
+ updating_name: updating_group_information.optional().nullable(),
158
+ updating_access_schedule: updating_access_schedule.optional().nullable(),
159
+ updating_user_membership: z
160
+ .record(z.string().uuid(), updating_user_membership)
161
+ .optional()
162
+ .nullable(),
163
+ updating_entrance_membership: z
164
+ .record(z.string().uuid(), updating_entrance_membership)
165
+ .optional()
166
+ .nullable(),
167
+ })
168
+
169
+ export type AcsAccessGroupPendingMutationsMap = z.infer<
170
+ typeof _acs_access_group_pending_mutations_map
171
+ >
@@ -1,4 +1,5 @@
1
1
  export * from './acs-access-group.js'
2
+ export * from './acs-access-groups/index.js'
2
3
  export * from './acs-credential.js'
3
4
  export * from './acs-credential-pool.js'
4
5
  export * from './acs-credential-provisioning-automation.js'