@@ -33,12 +33,15 @@ type ReschedulingRequestNewMeeting = {
3333 attendees : Array < number > | null ;
3434} ;
3535type ReschedulingCheckBodySchema = {
36- newMeeting : {
37- title : string ;
38- meetingDuration : string ;
39- attendees : Array < AttendeeBase > ;
40- } ;
36+ newMeeting ?:
37+ | {
38+ title : string ;
39+ meetingDuration : string ;
40+ attendees : Array < AttendeeBase > ;
41+ }
42+ | undefined ;
4143 oldMeeting : {
44+ ownerEmail : string ;
4245 msftMeetingID : string ;
4346 isOrganizerOptional ?: boolean | undefined ;
4447 } ;
@@ -144,6 +147,7 @@ type Attendee = {
144147} ;
145148type CalendarEvent = {
146149 id ?: string | undefined ;
150+ iCalUId ?: string | undefined ;
147151 attendees : Array < Attendee > ;
148152 body ?: string | undefined ;
149153 created ?: string | undefined ;
@@ -245,6 +249,7 @@ const Location: z.ZodType<Location> = z
245249const CalendarEvent : z . ZodType < CalendarEvent > = z
246250 . object ( {
247251 id : z . string ( ) . optional ( ) ,
252+ iCalUId : z . string ( ) . optional ( ) ,
248253 attendees : z . array ( Attendee ) ,
249254 body : z . string ( ) . optional ( ) ,
250255 created : z . string ( ) . datetime ( { offset : true } ) . optional ( ) ,
@@ -423,9 +428,11 @@ const ReschedulingCheckBodySchema: z.ZodType<ReschedulingCheckBodySchema> = z
423428 meetingDuration : z . string ( ) ,
424429 attendees : z . array ( AttendeeBase ) ,
425430 } )
426- . passthrough ( ) ,
431+ . passthrough ( )
432+ . optional ( ) ,
427433 oldMeeting : z
428434 . object ( {
435+ ownerEmail : z . string ( ) . email ( ) ,
429436 msftMeetingID : z . string ( ) ,
430437 isOrganizerOptional : z . boolean ( ) . optional ( ) . default ( false ) ,
431438 } )
@@ -483,11 +490,13 @@ const ReschedulingRequestBodySchema = z
483490 endRangeTime : z . string ( ) . datetime ( { offset : true } ) ,
484491 } )
485492 . passthrough ( ) ,
486- oldMeeting : z . object ( { msftMeetingID : z . string ( ) } ) . passthrough ( ) ,
493+ oldMeeting : z
494+ . object ( { ownerEmail : z . string ( ) . email ( ) , msftMeetingID : z . string ( ) } )
495+ . passthrough ( ) ,
487496 } )
488497 . passthrough ( ) ;
489498const ReschedulingRequestSingleBodySchema = z
490- . object ( { msftMeetingID : z . string ( ) } )
499+ . object ( { ownerEmail : z . string ( ) . email ( ) , msftMeetingID : z . string ( ) } )
491500 . passthrough ( ) ;
492501const MSFTGroup = z . object ( { id : z . string ( ) , name : z . string ( ) } ) . passthrough ( ) ;
493502const MSFTUser = z
@@ -626,6 +635,11 @@ const endpoints = makeApi([
626635 type : "Query" ,
627636 schema : z . string ( ) ,
628637 } ,
638+ {
639+ name : "isICalUId" ,
640+ type : "Query" ,
641+ schema : z . boolean ( ) ,
642+ } ,
629643 ] ,
630644 response : CalendarEvent ,
631645 errors : [
@@ -1498,7 +1512,7 @@ const endpoints = makeApi([
14981512 {
14991513 name : "body" ,
15001514 type : "Body" ,
1501- schema : z . object ( { msftMeetingID : z . string ( ) } ) . passthrough ( ) ,
1515+ schema : ReschedulingRequestSingleBodySchema ,
15021516 } ,
15031517 ] ,
15041518 response : z . number ( ) ,
0 commit comments