@@ -181,6 +181,10 @@ type InvitesMe = {
181181 fromUserFirstName : string ;
182182 fromUserLastName : string ;
183183} ;
184+ type InvitesGroupsAndPagination = {
185+ invites : Array < InvitesGroup > ;
186+ nextPageToken : number ;
187+ } ;
184188type UsersAndPagination = {
185189 users : Array < User > ;
186190 nextPageToken : number ;
@@ -307,13 +311,16 @@ const InvitesGroup: z.ZodType<InvitesGroup> = z
307311 createdAt : z . string ( ) . datetime ( { offset : true } ) ,
308312 } )
309313 . passthrough ( ) ;
310- const UsersAndPagination : z . ZodType < UsersAndPagination > = z
311- . object ( { users : z . array ( User ) , nextPageToken : z . number ( ) . int ( ) } )
314+ const InvitesGroupsAndPagination : z . ZodType < InvitesGroupsAndPagination > = z
315+ . object ( { invites : z . array ( InvitesGroup ) , nextPageToken : z . number ( ) . int ( ) } )
312316 . passthrough ( ) ;
313317const SlotifyGroup = z
314318 . object ( { id : z . number ( ) . int ( ) , name : z . string ( ) } )
315319 . passthrough ( ) ;
316320const SlotifyGroupCreate = z . object ( { name : z . string ( ) } ) . passthrough ( ) ;
321+ const UsersAndPagination : z . ZodType < UsersAndPagination > = z
322+ . object ( { users : z . array ( User ) , nextPageToken : z . number ( ) . int ( ) } )
323+ . passthrough ( ) ;
317324const EmailAddress : z . ZodType < EmailAddress > = z
318325 . object ( { address : z . string ( ) . email ( ) , name : z . string ( ) } )
319326 . passthrough ( ) ;
@@ -506,9 +513,10 @@ export const schemas = {
506513 InvitesMe,
507514 InviteCreate,
508515 InvitesGroup,
509- UsersAndPagination ,
516+ InvitesGroupsAndPagination ,
510517 SlotifyGroup,
511518 SlotifyGroupCreate,
519+ UsersAndPagination,
512520 EmailAddress,
513521 AttendeeBase,
514522 PhysicalAddress,
@@ -1718,7 +1726,7 @@ const endpoints = makeApi([
17181726 schema : z . number ( ) . int ( ) ,
17191727 } ,
17201728 ] ,
1721- response : UsersAndPagination ,
1729+ response : InvitesGroupsAndPagination ,
17221730 errors : [
17231731 {
17241732 status : 400 ,
@@ -1800,9 +1808,7 @@ const endpoints = makeApi([
18001808 schema : z . string ( ) . optional ( ) ,
18011809 } ,
18021810 ] ,
1803- response : z
1804- . object ( { users : z . array ( User ) , nextPageToken : z . number ( ) . int ( ) } )
1805- . passthrough ( ) ,
1811+ response : UsersAndPagination ,
18061812 errors : [
18071813 {
18081814 status : 401 ,
0 commit comments