We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent add8d95 commit 3f80cefCopy full SHA for 3f80cef
1 file changed
packages/core/src/schemas/my-organization/member-management/invitations/invitation-schema.ts
@@ -35,14 +35,16 @@ export const invitationListResponseSchema = z.object({
35
});
36
37
/**
38
- * Schema for creating an invitation.
+ * Schema for creating invitation(s). Supports bulk invite via invitees array.
39
* @internal
40
*/
41
export const createInvitationSchema = z.object({
42
- invitee: z.object({
43
- email: z.string().email(),
44
- }),
45
- roles: z.array(z.string()).optional(),
+ invitees: z.array(
+ z.object({
+ email: z.string().email(),
+ roles: z.array(z.string()).optional(),
46
+ }),
47
+ ),
48
49
50
0 commit comments