@seamapi/types 1.245.1 → 1.247.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.
@@ -127,39 +127,109 @@ export const acs_users_warnings = z
127
127
  export type AcsUsersWarningMap = z.infer<typeof acs_users_warning_map>
128
128
 
129
129
  const user_fields = z.object({
130
- full_name: z.string().optional(),
130
+ full_name: z.string().optional().describe('Full name of the `acs_user`.'),
131
131
  email: z.string().email().optional().describe(`
132
132
  ---
133
133
  deprecated: use email_address.
134
134
  ---
135
135
  `),
136
- email_address: z.string().email().optional(),
137
- phone_number: phone_number.optional(),
136
+ email_address: z
137
+ .string()
138
+ .email()
139
+ .optional()
140
+ .describe('Email address of the `acs_user`.'),
141
+ phone_number: phone_number
142
+ .optional()
143
+ .describe(
144
+ 'Phone number of the `acs_user` in E.164 format (for example, `+15555550100`).',
145
+ ),
138
146
  })
139
147
 
140
148
  const common_acs_user = z
141
149
  .object({
142
- acs_user_id: z.string().uuid(),
143
- acs_system_id: z.string().uuid(),
150
+ acs_user_id: z.string().uuid().describe('ID of the `acs_user`.'),
151
+ acs_system_id: z
152
+ .string()
153
+ .uuid()
154
+ .describe(
155
+ 'ID of the access control system that contains the `acs_user`.',
156
+ ),
144
157
  hid_acs_system_id: z.string().uuid().optional(),
145
- workspace_id: z.string().uuid(),
146
- created_at: z.string().datetime(),
147
- display_name: z.string(),
148
- external_type: acs_user_external_type.optional(),
149
- external_type_display_name: z.string().optional(),
150
- is_suspended: z.boolean(),
151
- access_schedule: schedule.optional(),
152
- user_identity_id: z.string().optional(),
153
- user_identity_full_name: z.string().nullable().optional(),
154
- user_identity_email_address: z.string().nullable().optional(),
155
- user_identity_phone_number: z.string().nullable().optional(),
158
+ workspace_id: z
159
+ .string()
160
+ .uuid()
161
+ .describe(
162
+ 'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the `acs_user`.',
163
+ ),
164
+ created_at: z
165
+ .string()
166
+ .datetime()
167
+ .describe('Date and time at which the `acs_user` was created.'),
168
+ display_name: z.string().describe('Display name for the `acs_user`.'),
169
+ external_type: acs_user_external_type
170
+ .optional()
171
+ .describe('Brand-specific terminology for the `acs_user` type.'),
172
+ external_type_display_name: z
173
+ .string()
174
+ .optional()
175
+ .describe(
176
+ 'Display name that corresponds to the brand-specific terminology for the `acs_user` type.',
177
+ ),
178
+ is_suspended: z
179
+ .boolean()
180
+ .describe(
181
+ 'Indicates whether the `acs_user` is currently [suspended](https://docs.seam.co/latest/capability-guides/access-systems/user-management/suspending-and-unsuspending-users).',
182
+ ),
183
+ access_schedule: schedule
184
+ .optional()
185
+ .describe(
186
+ "`starts_at` and `ends_at` timestamps for the `acs_user`'s access.",
187
+ ),
188
+ user_identity_id: z
189
+ .string()
190
+ .optional()
191
+ .describe('ID of the user identity associated with the `acs_user`.'),
192
+ user_identity_full_name: z
193
+ .string()
194
+ .nullable()
195
+ .optional()
196
+ .describe(
197
+ 'Full name of the user identity associated with the `acs_user`.',
198
+ ),
199
+ user_identity_email_address: z
200
+ .string()
201
+ .nullable()
202
+ .optional()
203
+ .describe(
204
+ 'Email address of the user identity associated with the `acs_user`.',
205
+ ),
206
+ user_identity_phone_number: z
207
+ .string()
208
+ .nullable()
209
+ .optional()
210
+ .describe(
211
+ 'Phone number of the user identity associated with the `acs_user` in E.164 format (for example, `+15555550100`).',
212
+ ),
156
213
  latest_desired_state_synced_with_provider_at: z
157
214
  .string()
158
215
  .datetime()
159
- .optional(),
160
- is_latest_desired_state_synced_with_provider: z.boolean().optional(),
161
- warnings: z.array(acs_users_warnings),
162
- errors: z.array(acs_user_errors),
216
+ .optional().describe(`
217
+ ---
218
+ undocumented: Only used internally.
219
+ ---
220
+ `),
221
+ is_latest_desired_state_synced_with_provider: z.boolean().optional()
222
+ .describe(`
223
+ ---
224
+ undocumented: Only used internally.
225
+ ---
226
+ `),
227
+ warnings: z
228
+ .array(acs_users_warnings)
229
+ .describe('Warnings associated with the `acs_user`.'),
230
+ errors: z
231
+ .array(acs_user_errors)
232
+ .describe('Errors associated with the `acs_user`.'),
163
233
  })
164
234
  .merge(user_fields)
165
235