@softeria/ms-365-mcp-server 0.175.0 → 0.176.1

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.
@@ -21,12 +21,12 @@ const microsoft_graph_teamworkUserIdentity = z.object({
21
21
  "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
22
22
  ).nullish(),
23
23
  userIdentityType: microsoft_graph_teamworkUserIdentityType.optional()
24
- }).passthrough();
24
+ }).loose();
25
25
  const microsoft_graph_teamworkOnlineMeetingInfo = z.object({
26
26
  calendarEventId: z.string().describe("The identifier of the calendar event associated with the meeting.").nullish(),
27
27
  joinWebUrl: z.string().describe("The URL that users click to join or uniquely identify the meeting.").nullish(),
28
28
  organizer: microsoft_graph_teamworkUserIdentity.optional()
29
- }).passthrough();
29
+ }).loose();
30
30
  const microsoft_graph_chatViewpoint = z.object({
31
31
  isHidden: z.boolean().describe("Indicates whether the chat is hidden for the current user.").nullish(),
32
32
  lastMessageReadDateTime: z.string().regex(
@@ -34,7 +34,7 @@ const microsoft_graph_chatViewpoint = z.object({
34
34
  ).datetime({ offset: true }).describe(
35
35
  "Represents the dateTime up until which the current user has read chatMessages in a specific chat."
36
36
  ).nullish()
37
- }).passthrough();
37
+ }).loose();
38
38
  const microsoft_graph_teamsAppResourceSpecificPermissionType = z.enum([
39
39
  "delegated",
40
40
  "application",
@@ -43,10 +43,10 @@ const microsoft_graph_teamsAppResourceSpecificPermissionType = z.enum([
43
43
  const microsoft_graph_teamsAppResourceSpecificPermission = z.object({
44
44
  permissionType: microsoft_graph_teamsAppResourceSpecificPermissionType.optional(),
45
45
  permissionValue: z.string().describe("The name of the resource-specific permission.").nullish()
46
- }).passthrough();
46
+ }).loose();
47
47
  const microsoft_graph_teamsAppPermissionSet = z.object({
48
48
  resourceSpecificPermissions: z.array(microsoft_graph_teamsAppResourceSpecificPermission).describe("A collection of resource-specific permissions.").optional()
49
- }).passthrough();
49
+ }).loose();
50
50
  const microsoft_graph_teamsAppDistributionMethod = z.enum([
51
51
  "store",
52
52
  "organization",
@@ -56,7 +56,7 @@ const microsoft_graph_teamsAppDistributionMethod = z.enum([
56
56
  const microsoft_graph_teamsAppAuthorization = z.object({
57
57
  clientAppId: z.string().describe("The registration ID of the Microsoft Entra app ID associated with the teamsApp.").nullish(),
58
58
  requiredPermissionSet: microsoft_graph_teamsAppPermissionSet.optional()
59
- }).passthrough();
59
+ }).loose();
60
60
  const microsoft_graph_identity = z.object({
61
61
  displayName: z.string().describe(
62
62
  "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
@@ -64,19 +64,19 @@ const microsoft_graph_identity = z.object({
64
64
  id: z.string().describe(
65
65
  "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
66
66
  ).nullish()
67
- }).passthrough();
67
+ }).loose();
68
68
  const microsoft_graph_identitySet = z.object({
69
69
  application: microsoft_graph_identity.optional(),
70
70
  device: microsoft_graph_identity.optional(),
71
71
  user: microsoft_graph_identity.optional()
72
- }).passthrough();
72
+ }).loose();
73
73
  const microsoft_graph_teamsAppPublishingState = z.enum([
74
74
  "submitted",
75
75
  "rejected",
76
76
  "published",
77
77
  "unknownFutureValue"
78
78
  ]);
79
- const microsoft_graph_teamworkBot = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).passthrough();
79
+ const microsoft_graph_teamworkBot = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).loose();
80
80
  const microsoft_graph_teamsAppDefinition = z.object({
81
81
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
82
82
  authorization: microsoft_graph_teamsAppAuthorization.optional(),
@@ -91,7 +91,7 @@ const microsoft_graph_teamsAppDefinition = z.object({
91
91
  teamsAppId: z.string().describe("The ID from the Teams app manifest.").nullish(),
92
92
  version: z.string().describe("The version number of the application.").nullish(),
93
93
  bot: microsoft_graph_teamworkBot.optional()
94
- }).passthrough();
94
+ }).loose();
95
95
  const microsoft_graph_teamsApp = z.object({
96
96
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
97
97
  displayName: z.string().describe(
@@ -102,24 +102,24 @@ const microsoft_graph_teamsApp = z.object({
102
102
  "The ID of the catalog provided by the app developer in the Microsoft Teams zip app package."
103
103
  ).nullish(),
104
104
  appDefinitions: z.array(microsoft_graph_teamsAppDefinition).describe("The details for each version of the app.").optional()
105
- }).passthrough();
105
+ }).loose();
106
106
  const microsoft_graph_teamsAppInstallation = z.object({
107
107
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
108
108
  consentedPermissionSet: microsoft_graph_teamsAppPermissionSet.optional(),
109
109
  teamsApp: microsoft_graph_teamsApp.optional(),
110
110
  teamsAppDefinition: microsoft_graph_teamsAppDefinition.optional()
111
- }).passthrough();
111
+ }).loose();
112
112
  const microsoft_graph_bodyType = z.enum(["text", "html"]);
113
113
  const microsoft_graph_itemBody = z.object({
114
114
  content: z.string().describe("The content of the item.").nullish(),
115
115
  contentType: microsoft_graph_bodyType.optional()
116
- }).passthrough();
117
- const microsoft_graph_eventMessageDetail = z.object({}).passthrough();
116
+ }).loose();
117
+ const microsoft_graph_eventMessageDetail = z.object({}).loose();
118
118
  const microsoft_graph_chatMessageFromIdentitySet = z.object({
119
119
  application: microsoft_graph_identity.optional(),
120
120
  device: microsoft_graph_identity.optional(),
121
121
  user: microsoft_graph_identity.optional()
122
- }).passthrough();
122
+ }).loose();
123
123
  const microsoft_graph_chatMessageType = z.enum([
124
124
  "message",
125
125
  "chatEvent",
@@ -137,7 +137,7 @@ const microsoft_graph_chatMessageInfo = z.object({
137
137
  from: microsoft_graph_chatMessageFromIdentitySet.optional(),
138
138
  isDeleted: z.boolean().describe("If set to true, the original message has been deleted.").nullish(),
139
139
  messageType: microsoft_graph_chatMessageType.optional()
140
- }).passthrough();
140
+ }).loose();
141
141
  const microsoft_graph_conversationMember = z.object({
142
142
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
143
143
  displayName: z.string().describe("The display name of the user.").nullish(),
@@ -149,7 +149,7 @@ const microsoft_graph_conversationMember = z.object({
149
149
  ).datetime({ offset: true }).describe(
150
150
  "The timestamp denoting how far back a conversation's history is shared with the conversation member. This property is settable only for members of a chat."
151
151
  ).nullish()
152
- }).passthrough();
152
+ }).loose();
153
153
  const microsoft_graph_chatMessageAttachment = z.object({
154
154
  content: z.string().describe(
155
155
  "The content of the attachment. If the attachment is a rich card, set the property to the rich card object. This property and contentUrl are mutually exclusive."
@@ -166,11 +166,11 @@ const microsoft_graph_chatMessageAttachment = z.object({
166
166
  thumbnailUrl: z.string().describe(
167
167
  "The URL to a thumbnail image that the channel can use if it supports using an alternative, smaller form of content or contentUrl. For example, if you set contentType to application/word and set contentUrl to the location of the Word document, you might include a thumbnail image that represents the document. The channel could display the thumbnail image instead of the document. When the user selects the image, the channel would open the document."
168
168
  ).nullish()
169
- }).passthrough();
169
+ }).loose();
170
170
  const microsoft_graph_channelIdentity = z.object({
171
171
  channelId: z.string().describe("The identity of the channel in which the message was posted.").nullish(),
172
172
  teamId: z.string().describe("The identity of the team in which the message was posted.").nullish()
173
- }).passthrough();
173
+ }).loose();
174
174
  const microsoft_graph_chatMessageImportance = z.enum([
175
175
  "normal",
176
176
  "high",
@@ -191,13 +191,13 @@ const microsoft_graph_teamworkConversationIdentity = z.object({
191
191
  "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
192
192
  ).nullish(),
193
193
  conversationIdentityType: microsoft_graph_teamworkConversationIdentityType.optional()
194
- }).passthrough();
194
+ }).loose();
195
195
  const microsoft_graph_chatMessageMentionedIdentitySet = z.object({
196
196
  application: microsoft_graph_identity.optional(),
197
197
  device: microsoft_graph_identity.optional(),
198
198
  user: microsoft_graph_identity.optional(),
199
199
  conversation: microsoft_graph_teamworkConversationIdentity.optional()
200
- }).passthrough();
200
+ }).loose();
201
201
  const microsoft_graph_chatMessageMention = z.object({
202
202
  id: z.number().gte(-2147483648).lte(2147483647).describe(
203
203
  "Index of an entity being mentioned in the specified chatMessage. Matches the {index} value in the corresponding <at id='{index}'> tag in the message body."
@@ -206,7 +206,7 @@ const microsoft_graph_chatMessageMention = z.object({
206
206
  mentionText: z.string().describe(
207
207
  "String used to represent the mention. For example, a user's display name, a team name."
208
208
  ).nullish()
209
- }).passthrough();
209
+ }).loose();
210
210
  const microsoft_graph_chatMessageActions = z.enum([
211
211
  "reactionAdded",
212
212
  "reactionRemoved",
@@ -217,7 +217,7 @@ const microsoft_graph_chatMessageReactionIdentitySet = z.object({
217
217
  application: microsoft_graph_identity.optional(),
218
218
  device: microsoft_graph_identity.optional(),
219
219
  user: microsoft_graph_identity.optional()
220
- }).passthrough();
220
+ }).loose();
221
221
  const microsoft_graph_chatMessageReaction = z.object({
222
222
  createdDateTime: z.string().regex(
223
223
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
@@ -230,14 +230,14 @@ const microsoft_graph_chatMessageReaction = z.object({
230
230
  "The reaction type. Supported values include Unicode characters, custom, and some backward-compatible reaction types, such as like, angry, sad, laugh, heart, and surprised."
231
231
  ).optional(),
232
232
  user: microsoft_graph_chatMessageReactionIdentitySet.optional()
233
- }).passthrough();
233
+ }).loose();
234
234
  const microsoft_graph_chatMessageHistoryItem = z.object({
235
235
  actions: microsoft_graph_chatMessageActions.optional(),
236
236
  modifiedDateTime: z.string().regex(
237
237
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
238
238
  ).datetime({ offset: true }).describe("The date and time when the message was modified.").optional(),
239
239
  reaction: microsoft_graph_chatMessageReaction.optional()
240
- }).passthrough();
240
+ }).loose();
241
241
  const microsoft_graph_chatMessagePolicyViolationDlpActionTypes = z.enum([
242
242
  "none",
243
243
  "notifySender",
@@ -252,7 +252,7 @@ const microsoft_graph_chatMessagePolicyViolationPolicyTip = z.object({
252
252
  matchedConditionDescriptions: z.array(z.string().nullable()).describe(
253
253
  "The list of improper data in the message that was detected by the data loss prevention app. Each DLP app defines its own conditions, examples include 'Credit Card Number' and 'Social Security Number'."
254
254
  ).optional()
255
- }).passthrough();
255
+ }).loose();
256
256
  const microsoft_graph_chatMessagePolicyViolationUserActionTypes = z.enum([
257
257
  "none",
258
258
  "override",
@@ -272,12 +272,12 @@ const microsoft_graph_chatMessagePolicyViolation = z.object({
272
272
  policyTip: microsoft_graph_chatMessagePolicyViolationPolicyTip.optional(),
273
273
  userAction: microsoft_graph_chatMessagePolicyViolationUserActionTypes.optional(),
274
274
  verdictDetails: microsoft_graph_chatMessagePolicyViolationVerdictDetailsTypes.optional()
275
- }).passthrough();
275
+ }).loose();
276
276
  const microsoft_graph_chatMessageHostedContent = z.object({
277
277
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
278
278
  contentBytes: z.string().describe("Write only. Bytes for the hosted content (such as images).").nullish(),
279
279
  contentType: z.string().describe("Write only. Content type. such as image/png, image/jpg.").nullish()
280
- }).passthrough();
280
+ }).loose();
281
281
  const microsoft_graph_chatMessage = z.lazy(
282
282
  () => z.object({
283
283
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -329,7 +329,7 @@ const microsoft_graph_chatMessage = z.lazy(
329
329
  "Content in a message hosted by Microsoft Teams - for example, images or code snippets."
330
330
  ).optional(),
331
331
  replies: z.array(microsoft_graph_chatMessage).describe("Replies for a specified message. Supports $expand for channel messages.").optional()
332
- }).passthrough()
332
+ }).loose()
333
333
  );
334
334
  const microsoft_graph_resourceSpecificPermissionGrant = z.object({
335
335
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -347,24 +347,24 @@ const microsoft_graph_resourceSpecificPermissionGrant = z.object({
347
347
  "The type of permission. The possible values are: Application, Delegated. Read-only."
348
348
  ).nullish(),
349
349
  resourceAppId: z.string().describe("ID of the Microsoft Entra app that is hosting the resource. Read-only.").nullish()
350
- }).passthrough();
350
+ }).loose();
351
351
  const microsoft_graph_pinnedChatMessageInfo = z.object({
352
352
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
353
353
  message: microsoft_graph_chatMessage.optional()
354
- }).passthrough();
354
+ }).loose();
355
355
  const microsoft_graph_teamsTabConfiguration = z.object({
356
356
  contentUrl: z.string().describe("Url used for rendering tab contents in Teams. Required.").nullish(),
357
357
  entityId: z.string().describe("Identifier for the entity hosted by the tab provider.").nullish(),
358
358
  removeUrl: z.string().describe("Url called by Teams client when a Tab is removed using the Teams Client.").nullish(),
359
359
  websiteUrl: z.string().describe("Url for showing tab contents outside of Teams.").nullish()
360
- }).passthrough();
360
+ }).loose();
361
361
  const microsoft_graph_teamsTab = z.object({
362
362
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
363
363
  configuration: microsoft_graph_teamsTabConfiguration.optional(),
364
364
  displayName: z.string().describe("Name of the tab.").nullish(),
365
365
  webUrl: z.string().describe("Deep link URL of the tab instance. Read-only.").nullish(),
366
366
  teamsApp: microsoft_graph_teamsApp.optional()
367
- }).passthrough();
367
+ }).loose();
368
368
  const microsoft_graph_targetedChatMessage = z.object({
369
369
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
370
370
  createdDateTime: z.string().regex(
@@ -415,7 +415,7 @@ const microsoft_graph_targetedChatMessage = z.object({
415
415
  "Content in a message hosted by Microsoft Teams - for example, images or code snippets."
416
416
  ).optional(),
417
417
  replies: z.array(microsoft_graph_chatMessage).describe("Replies for a specified message. Supports $expand for channel messages.").optional()
418
- }).passthrough().passthrough();
418
+ }).loose().loose();
419
419
  const microsoft_graph_chat = z.object({
420
420
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
421
421
  chatType: microsoft_graph_chatType.optional(),
@@ -451,45 +451,45 @@ const microsoft_graph_chat = z.object({
451
451
  targetedMessages: z.array(microsoft_graph_targetedChatMessage).describe(
452
452
  "A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API."
453
453
  ).optional()
454
- }).passthrough();
455
- const microsoft_graph_ODataErrors_ErrorDetails = z.object({ code: z.string(), message: z.string(), target: z.string().nullish() }).passthrough();
454
+ }).loose();
455
+ const microsoft_graph_ODataErrors_ErrorDetails = z.object({ code: z.string(), message: z.string(), target: z.string().nullish() }).loose();
456
456
  const microsoft_graph_ODataErrors_InnerError = z.object({
457
457
  "request-id": z.string().describe("Request Id as tracked internally by the service").nullish(),
458
458
  "client-request-id": z.string().describe("Client request Id as sent by the client application.").nullish(),
459
459
  date: z.string().regex(
460
460
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
461
461
  ).datetime({ offset: true }).describe("Date when the error occured.").nullish()
462
- }).passthrough();
462
+ }).loose();
463
463
  const microsoft_graph_ODataErrors_MainError = z.object({
464
464
  code: z.string(),
465
465
  message: z.string(),
466
466
  target: z.string().nullish(),
467
467
  details: z.array(microsoft_graph_ODataErrors_ErrorDetails).optional(),
468
468
  innerError: microsoft_graph_ODataErrors_InnerError.optional()
469
- }).passthrough();
470
- const microsoft_graph_ODataErrors_ODataError = z.object({ error: microsoft_graph_ODataErrors_MainError }).passthrough();
469
+ }).loose();
470
+ const microsoft_graph_ODataErrors_ODataError = z.object({ error: microsoft_graph_ODataErrors_MainError }).loose();
471
471
  const microsoft_graph_conversationMemberCollectionResponse = z.object({
472
472
  "@odata.count": z.number().int().nullable(),
473
473
  "@odata.nextLink": z.string().nullable(),
474
474
  value: z.array(microsoft_graph_conversationMember)
475
- }).partial().passthrough();
475
+ }).partial().loose();
476
476
  const microsoft_graph_chatMessageCollectionResponse = z.object({
477
477
  "@odata.count": z.number().int().nullable(),
478
478
  "@odata.nextLink": z.string().nullable(),
479
479
  value: z.array(microsoft_graph_chatMessage)
480
- }).partial().passthrough();
480
+ }).partial().loose();
481
481
  const microsoft_graph_chatMessageHostedContentCollectionResponse = z.object({
482
482
  "@odata.count": z.number().int().nullable(),
483
483
  "@odata.nextLink": z.string().nullable(),
484
484
  value: z.array(microsoft_graph_chatMessageHostedContent)
485
- }).partial().passthrough();
485
+ }).partial().loose();
486
486
  const microsoft_graph_pinnedChatMessageInfoCollectionResponse = z.object({
487
487
  "@odata.count": z.number().int().nullable(),
488
488
  "@odata.nextLink": z.string().nullable(),
489
489
  value: z.array(microsoft_graph_pinnedChatMessageInfo)
490
- }).partial().passthrough();
491
- const get_presences_by_user_id_Body = z.object({ ids: z.array(z.string()) }).partial().passthrough();
492
- const BaseCollectionPaginationCountResponse = z.object({ "@odata.count": z.number().int().nullable(), "@odata.nextLink": z.string().nullable() }).partial().passthrough();
490
+ }).partial().loose();
491
+ const get_presences_by_user_id_Body = z.object({ ids: z.array(z.string()) }).partial().loose();
492
+ const BaseCollectionPaginationCountResponse = z.object({ "@odata.count": z.number().int().nullable(), "@odata.nextLink": z.string().nullable() }).partial().loose();
493
493
  const microsoft_graph_outOfOfficeSettings = z.object({
494
494
  isOutOfOffice: z.boolean().describe(
495
495
  "If true, either of the following is met:The current time falls within the out-of-office window configured in Outlook or Teams.An event marked as 'Show as Out of Office' appears on the user's calendar.Otherwise, false."
@@ -497,7 +497,7 @@ const microsoft_graph_outOfOfficeSettings = z.object({
497
497
  message: z.string().describe(
498
498
  "The out-of-office message configured by the user in the Outlook client (Automatic replies) or the Teams client (Schedule out of office)."
499
499
  ).nullish()
500
- }).passthrough();
500
+ }).loose();
501
501
  const microsoft_graph_dateTimeTimeZone = z.object({
502
502
  dateTime: z.string().describe(
503
503
  "A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000)."
@@ -505,7 +505,7 @@ const microsoft_graph_dateTimeTimeZone = z.object({
505
505
  timeZone: z.string().describe(
506
506
  "Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values."
507
507
  ).nullish()
508
- }).passthrough();
508
+ }).loose();
509
509
  const microsoft_graph_presenceStatusMessage = z.object({
510
510
  expiryDateTime: microsoft_graph_dateTimeTimeZone.optional(),
511
511
  message: microsoft_graph_itemBody.optional(),
@@ -514,7 +514,7 @@ const microsoft_graph_presenceStatusMessage = z.object({
514
514
  ).datetime({ offset: true }).describe(
515
515
  "Time in which the status message was published.Read-only.publishedDateTime isn't available when you request the presence of another user."
516
516
  ).nullish()
517
- }).passthrough();
517
+ }).loose();
518
518
  const microsoft_graph_workLocationSource = z.enum([
519
519
  "none",
520
520
  "manual",
@@ -533,7 +533,7 @@ const microsoft_graph_userWorkLocation = z.object({
533
533
  placeId: z.string().describe("Identifier of the place, if applicable.").nullish(),
534
534
  source: microsoft_graph_workLocationSource.optional(),
535
535
  workLocationType: microsoft_graph_workLocationType.optional()
536
- }).passthrough();
536
+ }).loose();
537
537
  const microsoft_graph_presence = z.object({
538
538
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
539
539
  activity: z.string().describe(
@@ -548,7 +548,7 @@ const microsoft_graph_presence = z.object({
548
548
  ).nullish(),
549
549
  statusMessage: microsoft_graph_presenceStatusMessage.optional(),
550
550
  workLocation: microsoft_graph_userWorkLocation.optional()
551
- }).passthrough();
551
+ }).loose();
552
552
  const copilot_retrieve_Body = z.object({
553
553
  queryString: z.string().min(1).max(1500).regex(/\S/).describe(
554
554
  "Natural-language query (a single sentence works best; max 1500 characters; must contain a non-whitespace character). Avoid spelling errors in context-rich keywords."
@@ -565,12 +565,12 @@ const copilot_retrieve_Body = z.object({
565
565
  maximumNumberOfResults: z.number().int().gte(1).lte(25).describe(
566
566
  "Optional cap on the number of results (1-25). Best practice: leave unset unless your LLM has strict token limits \u2014 results are unordered."
567
567
  ).optional()
568
- }).passthrough();
568
+ }).loose();
569
569
  const microsoft_graph_retrievalExtract = z.object({
570
570
  relevanceScore: z.number().describe("[Simplified from 3 options]").nullish(),
571
571
  text: z.string().nullish()
572
- }).passthrough();
573
- const microsoft_graph_searchResourceMetadataDictionary = z.object({}).passthrough();
572
+ }).loose();
573
+ const microsoft_graph_searchResourceMetadataDictionary = z.object({}).loose();
574
574
  const microsoft_graph_retrievalEntityType = z.enum([
575
575
  "site",
576
576
  "list",
@@ -586,15 +586,15 @@ const microsoft_graph_sensitivityLabelInfo = z.object({
586
586
  priority: z.number().gte(-2147483648).lte(2147483647).nullish(),
587
587
  sensitivityLabelId: z.string().nullish(),
588
588
  tooltip: z.string().nullish()
589
- }).passthrough();
589
+ }).loose();
590
590
  const microsoft_graph_retrievalHit = z.object({
591
591
  extracts: z.array(microsoft_graph_retrievalExtract).optional(),
592
592
  resourceMetadata: microsoft_graph_searchResourceMetadataDictionary.optional(),
593
593
  resourceType: microsoft_graph_retrievalEntityType.optional(),
594
594
  sensitivityLabel: microsoft_graph_sensitivityLabelInfo.optional(),
595
595
  webUrl: z.string().nullish()
596
- }).passthrough();
597
- const microsoft_graph_retrievalResponse = z.object({ retrievalHits: z.array(microsoft_graph_retrievalHit).optional() }).passthrough();
596
+ }).loose();
597
+ const microsoft_graph_retrievalResponse = z.object({ retrievalHits: z.array(microsoft_graph_retrievalHit).optional() }).loose();
598
598
  const microsoft_graph_geoCoordinates = z.object({
599
599
  altitude: z.number().describe(
600
600
  "Optional. The altitude (height), in feet, above sea level for the item. Read-only. [Simplified from 3 options]"
@@ -605,7 +605,7 @@ const microsoft_graph_geoCoordinates = z.object({
605
605
  longitude: z.number().describe(
606
606
  "Optional. The longitude, in decimal, for the item. Read-only. [Simplified from 3 options]"
607
607
  ).nullish()
608
- }).passthrough();
608
+ }).loose();
609
609
  const microsoft_graph_sharepointIds = z.object({
610
610
  listId: z.string().describe("The unique identifier (guid) for the item's list in SharePoint.").nullish(),
611
611
  listItemId: z.string().describe("An integer identifier for the item within the containing list.").nullish(),
@@ -616,7 +616,7 @@ const microsoft_graph_sharepointIds = z.object({
616
616
  siteUrl: z.string().describe("The SharePoint URL for the site that contains the item.").nullish(),
617
617
  tenantId: z.string().describe("The unique identifier (guid) for the tenancy.").nullish(),
618
618
  webId: z.string().describe("The unique identifier (guid) for the item's site (SPWeb).").nullish()
619
- }).passthrough();
619
+ }).loose();
620
620
  const microsoft_graph_itemReference = z.object({
621
621
  driveId: z.string().describe(
622
622
  "Unique identifier of the drive instance that contains the driveItem. Only returned if the item is located in a drive. Read-only."
@@ -636,17 +636,17 @@ const microsoft_graph_itemReference = z.object({
636
636
  siteId: z.string().describe(
637
637
  "For OneDrive for Business and SharePoint, this property represents the ID of the site that contains the parent document library of the driveItem resource or the parent list of the listItem resource. The value is the same as the id property of that site resource. It is an opaque string that consists of three identifiers of the site. For OneDrive, this property is not populated."
638
638
  ).nullish()
639
- }).passthrough();
639
+ }).loose();
640
640
  const microsoft_graph_assignedLicense = z.object({
641
641
  disabledPlans: z.array(
642
- z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/).uuid()
642
+ z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/).guid()
643
643
  ).describe(
644
644
  "A collection of the unique identifiers for plans that have been disabled. IDs are available in servicePlans > servicePlanId in the tenant's subscribedSkus or serviceStatus > servicePlanId in the tenant's companySubscription."
645
645
  ).optional(),
646
- skuId: z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/).uuid().describe(
646
+ skuId: z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/).guid().describe(
647
647
  "The unique identifier for the SKU. Corresponds to the skuId from subscribedSkus or companySubscription."
648
648
  ).nullish()
649
- }).passthrough();
649
+ }).loose();
650
650
  const microsoft_graph_assignedPlan = z.object({
651
651
  assignedDateTime: z.string().regex(
652
652
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
@@ -657,12 +657,12 @@ const microsoft_graph_assignedPlan = z.object({
657
657
  "Condition of the capability assignment. The possible values are Enabled, Warning, Suspended, Deleted, LockedOut. See a detailed description of each value."
658
658
  ).nullish(),
659
659
  service: z.string().describe("The name of the service; for example, exchange.").nullish(),
660
- servicePlanId: z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/).uuid().describe(
660
+ servicePlanId: z.string().regex(/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/).guid().describe(
661
661
  "A GUID that identifies the service plan. For a complete list of GUIDs and their equivalent friendly service names, see Product names and service plan identifiers for licensing."
662
662
  ).nullish()
663
- }).passthrough();
664
- const microsoft_graph_authorizationInfo = z.object({ certificateUserIds: z.array(z.string().nullable()).optional() }).passthrough();
665
- const microsoft_graph_customSecurityAttributeValue = z.object({}).passthrough();
663
+ }).loose();
664
+ const microsoft_graph_authorizationInfo = z.object({ certificateUserIds: z.array(z.string().nullable()).optional() }).loose();
665
+ const microsoft_graph_customSecurityAttributeValue = z.object({}).loose();
666
666
  const microsoft_graph_user = z.object({
667
667
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
668
668
  displayName: z.string().describe(
@@ -743,7 +743,7 @@ const microsoft_graph_user = z.object({
743
743
  ).datetime({ offset: true }).describe(
744
744
  "The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs at least one of the following Microsoft Entra roles: Lifecycle Workflows Administrator (least privilege), Global Reader. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user."
745
745
  ).nullish()
746
- }).passthrough().passthrough();
746
+ }).loose().loose();
747
747
  const microsoft_graph_audio = z.object({
748
748
  album: z.string().describe("The title of the album for this audio file.").nullish(),
749
749
  albumArtist: z.string().describe("The artist named on the album for the audio file.").nullish(),
@@ -761,15 +761,15 @@ const microsoft_graph_audio = z.object({
761
761
  track: z.number().gte(-2147483648).lte(2147483647).describe("The number of the track on the original disc for this audio file.").nullish(),
762
762
  trackCount: z.number().gte(-2147483648).lte(2147483647).describe("The total number of tracks on the original disc for this audio file.").nullish(),
763
763
  year: z.number().gte(-2147483648).lte(2147483647).describe("The year the audio file was recorded.").nullish()
764
- }).passthrough();
764
+ }).loose();
765
765
  const microsoft_graph_album = z.object({
766
766
  coverImageItemId: z.string().describe("Unique identifier of the driveItem that is the cover of the album.").nullish()
767
- }).passthrough();
767
+ }).loose();
768
768
  const microsoft_graph_bundle = z.object({
769
769
  album: microsoft_graph_album.optional(),
770
770
  childCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of children contained immediately within this container.").nullish()
771
- }).passthrough();
772
- const microsoft_graph_deleted = z.object({ state: z.string().describe("Represents the state of the deleted item.").nullish() }).passthrough();
771
+ }).loose();
772
+ const microsoft_graph_deleted = z.object({ state: z.string().describe("Represents the state of the deleted item.").nullish() }).loose();
773
773
  const microsoft_graph_hashes = z.object({
774
774
  crc32Hash: z.string().describe("The CRC32 value of the file (if available). Read-only.").nullish(),
775
775
  quickXorHash: z.string().describe(
@@ -777,14 +777,14 @@ const microsoft_graph_hashes = z.object({
777
777
  ).nullish(),
778
778
  sha1Hash: z.string().describe("SHA1 hash for the contents of the file (if available). Read-only.").nullish(),
779
779
  sha256Hash: z.string().describe("This property isn't supported. Don't use.").nullish()
780
- }).passthrough();
780
+ }).loose();
781
781
  const microsoft_graph_file = z.object({
782
782
  hashes: microsoft_graph_hashes.optional(),
783
783
  mimeType: z.string().describe(
784
784
  "The MIME type for the file. This is determined by logic on the server and might not be the value provided when the file was uploaded. Read-only."
785
785
  ).nullish(),
786
786
  processingMetadata: z.boolean().nullish()
787
- }).passthrough();
787
+ }).loose();
788
788
  const microsoft_graph_fileSystemInfo = z.object({
789
789
  createdDateTime: z.string().regex(
790
790
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
@@ -797,36 +797,36 @@ const microsoft_graph_fileSystemInfo = z.object({
797
797
  lastModifiedDateTime: z.string().regex(
798
798
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
799
799
  ).datetime({ offset: true }).describe("The UTC date and time the file was last modified on a client.").nullish()
800
- }).passthrough();
800
+ }).loose();
801
801
  const microsoft_graph_folderView = z.object({
802
802
  sortBy: z.string().describe("The method by which the folder should be sorted.").nullish(),
803
803
  sortOrder: z.string().describe(
804
804
  "If true, indicates that items should be sorted in descending order. Otherwise, items should be sorted ascending."
805
805
  ).nullish(),
806
806
  viewType: z.string().describe("The type of view that should be used to represent the folder.").nullish()
807
- }).passthrough();
807
+ }).loose();
808
808
  const microsoft_graph_folder = z.object({
809
809
  childCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of children contained immediately within this container.").nullish(),
810
810
  view: microsoft_graph_folderView.optional()
811
- }).passthrough();
811
+ }).loose();
812
812
  const microsoft_graph_image = z.object({
813
813
  height: z.number().gte(-2147483648).lte(2147483647).describe("Optional. Height of the image, in pixels. Read-only.").nullish(),
814
814
  width: z.number().gte(-2147483648).lte(2147483647).describe("Optional. Width of the image, in pixels. Read-only.").nullish()
815
- }).passthrough();
815
+ }).loose();
816
816
  const microsoft_graph_malware = z.object({
817
817
  description: z.string().describe("Contains the virus details for the malware facet.").nullish()
818
- }).passthrough();
818
+ }).loose();
819
819
  const microsoft_graph_package = z.object({
820
820
  type: z.string().describe(
821
821
  "A string indicating the type of package. While oneNote is the only currently defined value, you should expect other package types to be returned and handle them accordingly."
822
822
  ).nullish()
823
- }).passthrough();
823
+ }).loose();
824
824
  const microsoft_graph_pendingContentUpdate = z.object({
825
825
  queuedDateTime: z.string().regex(
826
826
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
827
827
  ).datetime({ offset: true }).describe("Date and time the pending binary operation was queued in UTC time. Read-only.").nullish()
828
- }).passthrough();
829
- const microsoft_graph_pendingOperations = z.object({ pendingContentUpdate: microsoft_graph_pendingContentUpdate.optional() }).passthrough();
828
+ }).loose();
829
+ const microsoft_graph_pendingOperations = z.object({ pendingContentUpdate: microsoft_graph_pendingContentUpdate.optional() }).loose();
830
830
  const microsoft_graph_driveItem = z.object({
831
831
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
832
832
  name: z.string().describe("The name of the item. Read-write.").nullish(),
@@ -861,18 +861,18 @@ const microsoft_graph_driveItem = z.object({
861
861
  malware: microsoft_graph_malware.optional(),
862
862
  package: microsoft_graph_package.optional(),
863
863
  pendingOperations: microsoft_graph_pendingOperations.optional()
864
- }).passthrough().passthrough();
864
+ }).loose().loose();
865
865
  const microsoft_graph_driveItemCollectionResponse = z.object({
866
866
  "@odata.count": z.number().int().nullable(),
867
867
  "@odata.nextLink": z.string().nullable(),
868
868
  value: z.array(microsoft_graph_driveItem)
869
- }).partial().passthrough();
869
+ }).partial().loose();
870
870
  const copy_drive_item_Body = z.object({
871
871
  name: z.string().nullable(),
872
- parentReference: z.union([microsoft_graph_itemReference, z.object({}).partial().passthrough()]),
873
- childrenOnly: z.boolean().nullable().default(false),
874
- includeAllVersionHistory: z.boolean().nullable().default(false)
875
- }).partial().passthrough();
872
+ parentReference: z.union([microsoft_graph_itemReference, z.object({}).partial().loose()]),
873
+ childrenOnly: z.boolean().nullable().meta({ default: false }),
874
+ includeAllVersionHistory: z.boolean().nullable().meta({ default: false })
875
+ }).partial().loose();
876
876
  const microsoft_graph_driveRecipient = z.object({
877
877
  alias: z.string().describe(
878
878
  "The alias of the domain object, for cases where an email address is unavailable (for example, security groups)."
@@ -881,7 +881,7 @@ const microsoft_graph_driveRecipient = z.object({
881
881
  "The email address for the recipient, if the recipient has an associated email address."
882
882
  ).nullish(),
883
883
  objectId: z.string().describe("The unique identifier for the recipient in the directory.").nullish()
884
- }).passthrough();
884
+ }).loose();
885
885
  const create_drive_item_share_link_Body = z.object({
886
886
  type: z.string().nullable(),
887
887
  scope: z.string().nullable(),
@@ -891,9 +891,9 @@ const create_drive_item_share_link_Body = z.object({
891
891
  password: z.string().nullable(),
892
892
  message: z.string().nullable(),
893
893
  recipients: z.array(microsoft_graph_driveRecipient),
894
- retainInheritedPermissions: z.boolean().nullable().default(false),
895
- sendNotification: z.boolean().nullable().default(false)
896
- }).partial().passthrough();
894
+ retainInheritedPermissions: z.boolean().nullable().meta({ default: false }),
895
+ sendNotification: z.boolean().nullable().meta({ default: false })
896
+ }).partial().loose();
897
897
  const microsoft_graph_sharePointGroupIdentity = z.object({
898
898
  displayName: z.string().describe(
899
899
  "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
@@ -903,7 +903,7 @@ const microsoft_graph_sharePointGroupIdentity = z.object({
903
903
  ).nullish(),
904
904
  principalId: z.string().describe("The principal ID of the SharePoint group in the tenant. Read-only.").nullish(),
905
905
  title: z.string().describe("The title of the SharePoint group. Read-only.").nullish()
906
- }).passthrough();
906
+ }).loose();
907
907
  const microsoft_graph_sharePointIdentity = z.object({
908
908
  displayName: z.string().describe(
909
909
  "The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta."
@@ -912,7 +912,7 @@ const microsoft_graph_sharePointIdentity = z.object({
912
912
  "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
913
913
  ).nullish(),
914
914
  loginName: z.string().describe("The sign in name of the SharePoint identity.").nullish()
915
- }).passthrough();
915
+ }).loose();
916
916
  const microsoft_graph_sharePointIdentitySet = z.object({
917
917
  application: microsoft_graph_identity.optional(),
918
918
  device: microsoft_graph_identity.optional(),
@@ -921,7 +921,7 @@ const microsoft_graph_sharePointIdentitySet = z.object({
921
921
  sharePointGroup: microsoft_graph_sharePointGroupIdentity.optional(),
922
922
  siteGroup: microsoft_graph_sharePointIdentity.optional(),
923
923
  siteUser: microsoft_graph_sharePointIdentity.optional()
924
- }).passthrough();
924
+ }).loose();
925
925
  const microsoft_graph_sharingInvitation = z.object({
926
926
  email: z.string().describe(
927
927
  "The email address provided for the recipient of the sharing invitation. Read-only."
@@ -931,7 +931,7 @@ const microsoft_graph_sharingInvitation = z.object({
931
931
  signInRequired: z.boolean().describe(
932
932
  "If true the recipient of the invitation needs to sign in in order to access the shared item. Read-only."
933
933
  ).nullish()
934
- }).passthrough();
934
+ }).loose();
935
935
  const microsoft_graph_sharingLink = z.object({
936
936
  application: microsoft_graph_identity.optional(),
937
937
  preventsDownload: z.boolean().describe(
@@ -945,7 +945,7 @@ const microsoft_graph_sharingLink = z.object({
945
945
  "For embed links, this property contains the HTML code for an <iframe> element that will embed the item in a webpage."
946
946
  ).nullish(),
947
947
  webUrl: z.string().describe("A URL that opens the item in the browser on the OneDrive website.").nullish()
948
- }).passthrough();
948
+ }).loose();
949
949
  const microsoft_graph_permission = z.object({
950
950
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
951
951
  expirationDateTime: z.string().regex(
@@ -973,7 +973,7 @@ const microsoft_graph_permission = z.object({
973
973
  shareId: z.string().describe(
974
974
  "A unique token that can be used to access this shared item via the shares API. Read-only."
975
975
  ).nullish()
976
- }).passthrough();
976
+ }).loose();
977
977
  const microsoft_graph_driveItemSourceApplication = z.enum([
978
978
  "teams",
979
979
  "yammer",
@@ -990,7 +990,7 @@ const microsoft_graph_driveItemSourceApplication = z.enum([
990
990
  const microsoft_graph_driveItemSource = z.object({
991
991
  application: microsoft_graph_driveItemSourceApplication.optional(),
992
992
  externalId: z.string().describe("The external identifier for the drive item from the source.").nullish()
993
- }).passthrough();
993
+ }).loose();
994
994
  const microsoft_graph_mediaSourceContentCategory = z.enum([
995
995
  "meeting",
996
996
  "liveStream",
@@ -1003,7 +1003,7 @@ const microsoft_graph_mediaSourceContentCategory = z.enum([
1003
1003
  "comment",
1004
1004
  "unknownFutureValue"
1005
1005
  ]);
1006
- const microsoft_graph_mediaSource = z.object({ contentCategory: microsoft_graph_mediaSourceContentCategory.optional() }).passthrough();
1006
+ const microsoft_graph_mediaSource = z.object({ contentCategory: microsoft_graph_mediaSourceContentCategory.optional() }).loose();
1007
1007
  const microsoft_graph_driveItemUploadableProperties = z.object({
1008
1008
  description: z.string().describe(
1009
1009
  "Provides a user-visible description of the item. Read-write. Only on OneDrive Personal."
@@ -1015,10 +1015,10 @@ const microsoft_graph_driveItemUploadableProperties = z.object({
1015
1015
  fileSystemInfo: microsoft_graph_fileSystemInfo.optional(),
1016
1016
  mediaSource: microsoft_graph_mediaSource.optional(),
1017
1017
  name: z.string().describe("The name of the item (filename and extension). Read-write.").nullish()
1018
- }).passthrough();
1018
+ }).loose();
1019
1019
  const create_upload_session_Body = z.object({
1020
- item: z.union([microsoft_graph_driveItemUploadableProperties, z.object({}).partial().passthrough()])
1021
- }).partial().passthrough();
1020
+ item: z.union([microsoft_graph_driveItemUploadableProperties, z.object({}).partial().loose()])
1021
+ }).partial().loose();
1022
1022
  const microsoft_graph_uploadSession = z.object({
1023
1023
  expirationDateTime: z.string().regex(
1024
1024
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
@@ -1029,8 +1029,8 @@ const microsoft_graph_uploadSession = z.object({
1029
1029
  "A collection of byte ranges that the server is missing for the file. These ranges are zero indexed and of the format 'start-end' (for example '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin."
1030
1030
  ).optional(),
1031
1031
  uploadUrl: z.string().describe("The URL endpoint that accepts PUT requests for byte ranges of the file.").nullish()
1032
- }).passthrough();
1033
- const BaseDeltaFunctionResponse = z.object({ "@odata.nextLink": z.string().nullable(), "@odata.deltaLink": z.string().nullable() }).partial().passthrough();
1032
+ }).loose();
1033
+ const BaseDeltaFunctionResponse = z.object({ "@odata.nextLink": z.string().nullable(), "@odata.deltaLink": z.string().nullable() }).partial().loose();
1034
1034
  const microsoft_graph_sensitivityLabelAssignmentMethod = z.enum([
1035
1035
  "standard",
1036
1036
  "privileged",
@@ -1043,35 +1043,35 @@ const microsoft_graph_sensitivityLabelAssignment = z.object({
1043
1043
  tenantId: z.string().describe(
1044
1044
  "The unique identifier for the tenant that hosts the file when this label is applied."
1045
1045
  ).optional()
1046
- }).passthrough();
1046
+ }).loose();
1047
1047
  const microsoft_graph_extractSensitivityLabelsResult = z.object({
1048
1048
  labels: z.array(microsoft_graph_sensitivityLabelAssignment).describe("List of sensitivity labels assigned to a file.").optional()
1049
- }).passthrough();
1049
+ }).loose();
1050
1050
  const share_drive_item_Body = z.object({
1051
- requireSignIn: z.boolean().nullable().default(false),
1051
+ requireSignIn: z.boolean().nullable().meta({ default: false }),
1052
1052
  roles: z.array(z.string().nullable()),
1053
- sendInvitation: z.boolean().nullable().default(false),
1053
+ sendInvitation: z.boolean().nullable().meta({ default: false }),
1054
1054
  message: z.string().nullable(),
1055
1055
  recipients: z.array(microsoft_graph_driveRecipient),
1056
- retainInheritedPermissions: z.boolean().nullable().default(false),
1056
+ retainInheritedPermissions: z.boolean().nullable().meta({ default: false }),
1057
1057
  expirationDateTime: z.string().nullable(),
1058
1058
  password: z.string().nullable()
1059
- }).partial().passthrough();
1059
+ }).partial().loose();
1060
1060
  const ReferenceNumeric = z.enum(["-INF", "INF", "NaN"]);
1061
1061
  const create_drive_item_preview_Body = z.object({
1062
1062
  page: z.string().nullable(),
1063
1063
  zoom: z.union([z.number(), z.string(), ReferenceNumeric])
1064
- }).partial().passthrough();
1064
+ }).partial().loose();
1065
1065
  const microsoft_graph_itemPreviewInfo = z.object({
1066
1066
  getUrl: z.string().nullish(),
1067
1067
  postParameters: z.string().nullish(),
1068
1068
  postUrl: z.string().nullish()
1069
- }).passthrough();
1069
+ }).loose();
1070
1070
  const microsoft_graph_permissionCollectionResponse = z.object({
1071
1071
  "@odata.count": z.number().int().nullable(),
1072
1072
  "@odata.nextLink": z.string().nullable(),
1073
1073
  value: z.array(microsoft_graph_permission)
1074
- }).partial().passthrough();
1074
+ }).partial().loose();
1075
1075
  const microsoft_graph_thumbnail = z.object({
1076
1076
  content: z.string().describe("The content stream for the thumbnail.").nullish(),
1077
1077
  height: z.number().gte(-2147483648).lte(2147483647).describe("The height of the thumbnail, in pixels.").nullish(),
@@ -1080,19 +1080,19 @@ const microsoft_graph_thumbnail = z.object({
1080
1080
  ).nullish(),
1081
1081
  url: z.string().describe("The URL used to fetch the thumbnail content.").nullish(),
1082
1082
  width: z.number().gte(-2147483648).lte(2147483647).describe("The width of the thumbnail, in pixels.").nullish()
1083
- }).passthrough();
1083
+ }).loose();
1084
1084
  const microsoft_graph_thumbnailSet = z.object({
1085
1085
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1086
1086
  large: microsoft_graph_thumbnail.optional(),
1087
1087
  medium: microsoft_graph_thumbnail.optional(),
1088
1088
  small: microsoft_graph_thumbnail.optional(),
1089
1089
  source: microsoft_graph_thumbnail.optional()
1090
- }).passthrough();
1090
+ }).loose();
1091
1091
  const microsoft_graph_thumbnailSetCollectionResponse = z.object({
1092
1092
  "@odata.count": z.number().int().nullable(),
1093
1093
  "@odata.nextLink": z.string().nullable(),
1094
1094
  value: z.array(microsoft_graph_thumbnailSet)
1095
- }).partial().passthrough();
1095
+ }).partial().loose();
1096
1096
  const microsoft_graph_publicationFacet = z.object({
1097
1097
  checkedOutBy: microsoft_graph_identitySet.optional(),
1098
1098
  level: z.string().describe(
@@ -1101,7 +1101,7 @@ const microsoft_graph_publicationFacet = z.object({
1101
1101
  versionId: z.string().describe(
1102
1102
  "The unique identifier for the version that is visible to the current caller. Read-only."
1103
1103
  ).nullish()
1104
- }).passthrough();
1104
+ }).loose();
1105
1105
  const microsoft_graph_driveItemVersion = z.object({
1106
1106
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1107
1107
  lastModifiedBy: microsoft_graph_identitySet.optional(),
@@ -1111,18 +1111,18 @@ const microsoft_graph_driveItemVersion = z.object({
1111
1111
  publication: microsoft_graph_publicationFacet.optional(),
1112
1112
  content: z.string().describe("The content stream for this version of the item.").nullish(),
1113
1113
  size: z.number().describe("Indicates the size of the content stream for this version of the item.").nullish()
1114
- }).passthrough();
1114
+ }).loose();
1115
1115
  const microsoft_graph_driveItemVersionCollectionResponse = z.object({
1116
1116
  "@odata.count": z.number().int().nullable(),
1117
1117
  "@odata.nextLink": z.string().nullable(),
1118
1118
  value: z.array(microsoft_graph_driveItemVersion)
1119
- }).partial().passthrough();
1119
+ }).partial().loose();
1120
1120
  const microsoft_graph_workbookIcon = z.object({
1121
1121
  index: z.number().gte(-2147483648).lte(2147483647).describe("The index of the icon in the given set.").optional(),
1122
1122
  set: z.string().describe(
1123
1123
  "The set that the icon is part of. The possible values are: Invalid, ThreeArrows, ThreeArrowsGray, ThreeFlags, ThreeTrafficLights1, ThreeTrafficLights2, ThreeSigns, ThreeSymbols, ThreeSymbols2, FourArrows, FourArrowsGray, FourRedToBlack, FourRating, FourTrafficLights, FiveArrows, FiveArrowsGray, FiveRating, FiveQuarters, ThreeStars, ThreeTriangles, FiveBoxes."
1124
1124
  ).optional()
1125
- }).passthrough();
1125
+ }).loose();
1126
1126
  const microsoft_graph_workbookFilterCriteria = z.object({
1127
1127
  color: z.string().describe("The color applied to the cell.").nullish(),
1128
1128
  criterion1: z.string().describe("A custom criterion.").nullish(),
@@ -1132,11 +1132,11 @@ const microsoft_graph_workbookFilterCriteria = z.object({
1132
1132
  icon: microsoft_graph_workbookIcon.optional(),
1133
1133
  operator: z.string().describe("An operator in a cell; for example, =, >, <, <=, or <>.").optional(),
1134
1134
  values: z.unknown().describe("The values that appear in the cell.").optional()
1135
- }).passthrough();
1135
+ }).loose();
1136
1136
  const microsoft_graph_workbookFilter = z.object({
1137
1137
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1138
1138
  criteria: microsoft_graph_workbookFilterCriteria.optional()
1139
- }).passthrough();
1139
+ }).loose();
1140
1140
  const microsoft_graph_workbookTableColumn = z.object({
1141
1141
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1142
1142
  index: z.number().gte(-2147483648).lte(2147483647).describe(
@@ -1147,7 +1147,7 @@ const microsoft_graph_workbookTableColumn = z.object({
1147
1147
  "TRepresents the raw values of the specified range. The data returned could be of type string, number, or a Boolean. Cell that contain an error will return the error string."
1148
1148
  ).optional(),
1149
1149
  filter: microsoft_graph_workbookFilter.optional()
1150
- }).passthrough();
1150
+ }).loose();
1151
1151
  const microsoft_graph_workbookTableRow = z.object({
1152
1152
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1153
1153
  index: z.number().gte(-2147483648).lte(2147483647).describe(
@@ -1156,7 +1156,7 @@ const microsoft_graph_workbookTableRow = z.object({
1156
1156
  values: z.unknown().describe(
1157
1157
  "The raw values of the specified range. The data returned could be of type string, number, or a Boolean. Any cell that contain an error will return the error string."
1158
1158
  ).optional()
1159
- }).passthrough();
1159
+ }).loose();
1160
1160
  const microsoft_graph_workbookSortField = z.object({
1161
1161
  ascending: z.boolean().describe("Represents whether the sorting is done in an ascending fashion.").optional(),
1162
1162
  color: z.string().describe(
@@ -1172,7 +1172,7 @@ const microsoft_graph_workbookSortField = z.object({
1172
1172
  sortOn: z.string().describe(
1173
1173
  "Represents the type of sorting of this condition. The possible values are: Value, CellColor, FontColor, Icon."
1174
1174
  ).optional()
1175
- }).passthrough();
1175
+ }).loose();
1176
1176
  const microsoft_graph_workbookTableSort = z.object({
1177
1177
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1178
1178
  fields: z.array(microsoft_graph_workbookSortField).describe("The list of the current conditions last used to sort the table. Read-only.").optional(),
@@ -1180,7 +1180,7 @@ const microsoft_graph_workbookTableSort = z.object({
1180
1180
  method: z.string().describe(
1181
1181
  "The Chinese character ordering method last used to sort the table. The possible values are: PinYin, StrokeCount. Read-only."
1182
1182
  ).optional()
1183
- }).passthrough();
1183
+ }).loose();
1184
1184
  const microsoft_graph_workbookChartFont = z.object({
1185
1185
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1186
1186
  bold: z.boolean().describe("Indicates whether the fond is bold.").nullish(),
@@ -1193,35 +1193,35 @@ const microsoft_graph_workbookChartFont = z.object({
1193
1193
  underline: z.string().describe(
1194
1194
  "The type of underlining applied to the font. The possible values are: None, Single."
1195
1195
  ).nullish()
1196
- }).passthrough();
1196
+ }).loose();
1197
1197
  const microsoft_graph_workbookChartLineFormat = z.object({
1198
1198
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1199
1199
  color: z.string().describe("The HTML color code that represents the color of lines in the chart.").nullish()
1200
- }).passthrough();
1200
+ }).loose();
1201
1201
  const microsoft_graph_workbookChartAxisFormat = z.object({
1202
1202
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1203
1203
  font: microsoft_graph_workbookChartFont.optional(),
1204
1204
  line: microsoft_graph_workbookChartLineFormat.optional()
1205
- }).passthrough();
1205
+ }).loose();
1206
1206
  const microsoft_graph_workbookChartGridlinesFormat = z.object({
1207
1207
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1208
1208
  line: microsoft_graph_workbookChartLineFormat.optional()
1209
- }).passthrough();
1209
+ }).loose();
1210
1210
  const microsoft_graph_workbookChartGridlines = z.object({
1211
1211
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1212
1212
  visible: z.boolean().describe("Indicates whether the axis gridlines are visible.").optional(),
1213
1213
  format: microsoft_graph_workbookChartGridlinesFormat.optional()
1214
- }).passthrough();
1214
+ }).loose();
1215
1215
  const microsoft_graph_workbookChartAxisTitleFormat = z.object({
1216
1216
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1217
1217
  font: microsoft_graph_workbookChartFont.optional()
1218
- }).passthrough();
1218
+ }).loose();
1219
1219
  const microsoft_graph_workbookChartAxisTitle = z.object({
1220
1220
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1221
1221
  text: z.string().describe("Represents the axis title.").nullish(),
1222
1222
  visible: z.boolean().describe("A Boolean that specifies the visibility of an axis title.").optional(),
1223
1223
  format: microsoft_graph_workbookChartAxisTitleFormat.optional()
1224
- }).passthrough();
1224
+ }).loose();
1225
1225
  const microsoft_graph_workbookChartAxis = z.object({
1226
1226
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1227
1227
  majorUnit: z.unknown().describe(
@@ -1240,19 +1240,19 @@ const microsoft_graph_workbookChartAxis = z.object({
1240
1240
  majorGridlines: microsoft_graph_workbookChartGridlines.optional(),
1241
1241
  minorGridlines: microsoft_graph_workbookChartGridlines.optional(),
1242
1242
  title: microsoft_graph_workbookChartAxisTitle.optional()
1243
- }).passthrough();
1243
+ }).loose();
1244
1244
  const microsoft_graph_workbookChartAxes = z.object({
1245
1245
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1246
1246
  categoryAxis: microsoft_graph_workbookChartAxis.optional(),
1247
1247
  seriesAxis: microsoft_graph_workbookChartAxis.optional(),
1248
1248
  valueAxis: microsoft_graph_workbookChartAxis.optional()
1249
- }).passthrough();
1250
- const microsoft_graph_workbookChartFill = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).passthrough();
1249
+ }).loose();
1250
+ const microsoft_graph_workbookChartFill = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).loose();
1251
1251
  const microsoft_graph_workbookChartDataLabelFormat = z.object({
1252
1252
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1253
1253
  fill: microsoft_graph_workbookChartFill.optional(),
1254
1254
  font: microsoft_graph_workbookChartFont.optional()
1255
- }).passthrough();
1255
+ }).loose();
1256
1256
  const microsoft_graph_workbookChartDataLabels = z.object({
1257
1257
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1258
1258
  position: z.string().describe(
@@ -1266,17 +1266,17 @@ const microsoft_graph_workbookChartDataLabels = z.object({
1266
1266
  showSeriesName: z.boolean().describe("Boolean value that represents whether the data label series name is visible.").nullish(),
1267
1267
  showValue: z.boolean().describe("Boolean value that represents whether the data label value is visible.").nullish(),
1268
1268
  format: microsoft_graph_workbookChartDataLabelFormat.optional()
1269
- }).passthrough();
1269
+ }).loose();
1270
1270
  const microsoft_graph_workbookChartAreaFormat = z.object({
1271
1271
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1272
1272
  fill: microsoft_graph_workbookChartFill.optional(),
1273
1273
  font: microsoft_graph_workbookChartFont.optional()
1274
- }).passthrough();
1274
+ }).loose();
1275
1275
  const microsoft_graph_workbookChartLegendFormat = z.object({
1276
1276
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1277
1277
  fill: microsoft_graph_workbookChartFill.optional(),
1278
1278
  font: microsoft_graph_workbookChartFont.optional()
1279
- }).passthrough();
1279
+ }).loose();
1280
1280
  const microsoft_graph_workbookChartLegend = z.object({
1281
1281
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1282
1282
  overlay: z.boolean().describe(
@@ -1287,39 +1287,39 @@ const microsoft_graph_workbookChartLegend = z.object({
1287
1287
  ).nullish(),
1288
1288
  visible: z.boolean().describe("Indicates whether the chart legend is visible.").optional(),
1289
1289
  format: microsoft_graph_workbookChartLegendFormat.optional()
1290
- }).passthrough();
1290
+ }).loose();
1291
1291
  const microsoft_graph_workbookChartSeriesFormat = z.object({
1292
1292
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1293
1293
  fill: microsoft_graph_workbookChartFill.optional(),
1294
1294
  line: microsoft_graph_workbookChartLineFormat.optional()
1295
- }).passthrough();
1295
+ }).loose();
1296
1296
  const microsoft_graph_workbookChartPointFormat = z.object({
1297
1297
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1298
1298
  fill: microsoft_graph_workbookChartFill.optional()
1299
- }).passthrough();
1299
+ }).loose();
1300
1300
  const microsoft_graph_workbookChartPoint = z.object({
1301
1301
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1302
1302
  value: z.unknown().describe("The value of a chart point. Read-only.").optional(),
1303
1303
  format: microsoft_graph_workbookChartPointFormat.optional()
1304
- }).passthrough();
1304
+ }).loose();
1305
1305
  const microsoft_graph_workbookChartSeries = z.object({
1306
1306
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1307
1307
  name: z.string().describe("The name of a series in a chart.").nullish(),
1308
1308
  format: microsoft_graph_workbookChartSeriesFormat.optional(),
1309
1309
  points: z.array(microsoft_graph_workbookChartPoint).describe("A collection of all points in the series. Read-only.").optional()
1310
- }).passthrough();
1310
+ }).loose();
1311
1311
  const microsoft_graph_workbookChartTitleFormat = z.object({
1312
1312
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1313
1313
  fill: microsoft_graph_workbookChartFill.optional(),
1314
1314
  font: microsoft_graph_workbookChartFont.optional()
1315
- }).passthrough();
1315
+ }).loose();
1316
1316
  const microsoft_graph_workbookChartTitle = z.object({
1317
1317
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1318
1318
  overlay: z.boolean().describe("Indicates whether the chart title will overlay the chart or not.").nullish(),
1319
1319
  text: z.string().describe("The title text of the chart.").nullish(),
1320
1320
  visible: z.boolean().describe("Indicates whether the chart title is visible.").optional(),
1321
1321
  format: microsoft_graph_workbookChartTitleFormat.optional()
1322
- }).passthrough();
1322
+ }).loose();
1323
1323
  const microsoft_graph_workbookChart = z.lazy(
1324
1324
  () => z.object({
1325
1325
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -1345,7 +1345,7 @@ const microsoft_graph_workbookChart = z.lazy(
1345
1345
  ).optional(),
1346
1346
  title: microsoft_graph_workbookChartTitle.optional(),
1347
1347
  worksheet: microsoft_graph_workbookWorksheet.optional()
1348
- }).passthrough()
1348
+ }).loose()
1349
1349
  );
1350
1350
  const microsoft_graph_workbookNamedItem = z.lazy(
1351
1351
  () => z.object({
@@ -1363,14 +1363,14 @@ const microsoft_graph_workbookNamedItem = z.lazy(
1363
1363
  ).optional(),
1364
1364
  visible: z.boolean().describe("Indicates whether the object is visible.").optional(),
1365
1365
  worksheet: microsoft_graph_workbookWorksheet.optional()
1366
- }).passthrough()
1366
+ }).loose()
1367
1367
  );
1368
1368
  const microsoft_graph_workbookPivotTable = z.lazy(
1369
1369
  () => z.object({
1370
1370
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1371
1371
  name: z.string().describe("The name of the pivot table.").nullish(),
1372
1372
  worksheet: microsoft_graph_workbookWorksheet.optional()
1373
- }).passthrough()
1373
+ }).loose()
1374
1374
  );
1375
1375
  const microsoft_graph_workbookWorksheetProtectionOptions = z.object({
1376
1376
  allowAutoFilter: z.boolean().describe(
@@ -1406,12 +1406,12 @@ const microsoft_graph_workbookWorksheetProtectionOptions = z.object({
1406
1406
  allowSort: z.boolean().describe(
1407
1407
  "Indicates whether the worksheet protection option to allow the use of the sort feature is enabled."
1408
1408
  ).optional()
1409
- }).passthrough();
1409
+ }).loose();
1410
1410
  const microsoft_graph_workbookWorksheetProtection = z.object({
1411
1411
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1412
1412
  options: microsoft_graph_workbookWorksheetProtectionOptions.optional(),
1413
1413
  protected: z.boolean().describe("Indicates whether the worksheet is protected. Read-only.").optional()
1414
- }).passthrough();
1414
+ }).loose();
1415
1415
  const microsoft_graph_workbookWorksheet = z.lazy(
1416
1416
  () => z.object({
1417
1417
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -1425,7 +1425,7 @@ const microsoft_graph_workbookWorksheet = z.lazy(
1425
1425
  pivotTables: z.array(microsoft_graph_workbookPivotTable).describe("The list of piot tables that are part of the worksheet.").optional(),
1426
1426
  protection: microsoft_graph_workbookWorksheetProtection.optional(),
1427
1427
  tables: z.array(microsoft_graph_workbookTable).describe("The list of tables that are part of the worksheet. Read-only.").optional()
1428
- }).passthrough()
1428
+ }).loose()
1429
1429
  );
1430
1430
  const microsoft_graph_workbookTable = z.lazy(
1431
1431
  () => z.object({
@@ -1458,25 +1458,25 @@ const microsoft_graph_workbookTable = z.lazy(
1458
1458
  rows: z.array(microsoft_graph_workbookTableRow).describe("The list of all the rows in the table. Read-only.").optional(),
1459
1459
  sort: microsoft_graph_workbookTableSort.optional(),
1460
1460
  worksheet: microsoft_graph_workbookWorksheet.optional()
1461
- }).passthrough()
1461
+ }).loose()
1462
1462
  );
1463
1463
  const microsoft_graph_workbookTableCollectionResponse = z.object({
1464
1464
  "@odata.count": z.number().int().nullable(),
1465
1465
  "@odata.nextLink": z.string().nullable(),
1466
1466
  value: z.array(microsoft_graph_workbookTable)
1467
- }).partial().passthrough();
1467
+ }).partial().loose();
1468
1468
  const microsoft_graph_workbookTableRowCollectionResponse = z.object({
1469
1469
  "@odata.count": z.number().int().nullable(),
1470
1470
  "@odata.nextLink": z.string().nullable(),
1471
1471
  value: z.array(microsoft_graph_workbookTableRow)
1472
- }).partial().passthrough();
1472
+ }).partial().loose();
1473
1473
  const microsoft_graph_workbookWorksheetCollectionResponse = z.object({
1474
1474
  "@odata.count": z.number().int().nullable(),
1475
1475
  "@odata.nextLink": z.string().nullable(),
1476
1476
  value: z.array(microsoft_graph_workbookWorksheet)
1477
- }).partial().passthrough();
1478
- const create_excel_chart_Body = z.object({ type: z.string(), sourceData: z.unknown(), seriesBy: z.string() }).partial().passthrough();
1479
- const microsoft_graph_workbookRangeSort = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).passthrough();
1477
+ }).partial().loose();
1478
+ const create_excel_chart_Body = z.object({ type: z.string(), sourceData: z.unknown(), seriesBy: z.string() }).partial().loose();
1479
+ const microsoft_graph_workbookRangeSort = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).loose();
1480
1480
  const microsoft_graph_workbookRangeBorder = z.object({
1481
1481
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1482
1482
  color: z.string().describe(
@@ -1491,13 +1491,13 @@ const microsoft_graph_workbookRangeBorder = z.object({
1491
1491
  weight: z.string().describe(
1492
1492
  "The weight of the border around a range. The possible values are: Hairline, Thin, Medium, Thick."
1493
1493
  ).nullish()
1494
- }).passthrough();
1494
+ }).loose();
1495
1495
  const microsoft_graph_workbookRangeFill = z.object({
1496
1496
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1497
1497
  color: z.string().describe(
1498
1498
  "HTML color code representing the color of the border line. Can either be of the form #RRGGBB, for example 'FFA500', or be a named HTML color, for example 'orange'."
1499
1499
  ).nullish()
1500
- }).passthrough();
1500
+ }).loose();
1501
1501
  const microsoft_graph_workbookRangeFont = z.object({
1502
1502
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1503
1503
  bold: z.boolean().describe("Inidicates whether the font is bold.").nullish(),
@@ -1510,7 +1510,7 @@ const microsoft_graph_workbookRangeFont = z.object({
1510
1510
  underline: z.string().describe(
1511
1511
  "The type of underlining applied to the font. The possible values are: None, Single, Double, SingleAccountant, DoubleAccountant."
1512
1512
  ).nullish()
1513
- }).passthrough();
1513
+ }).loose();
1514
1514
  const microsoft_graph_workbookFormatProtection = z.object({
1515
1515
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1516
1516
  formulaHidden: z.boolean().describe(
@@ -1519,7 +1519,7 @@ const microsoft_graph_workbookFormatProtection = z.object({
1519
1519
  locked: z.boolean().describe(
1520
1520
  "Indicates whether Excel locks the cells in the object. A null value indicates that the entire range doesn't have uniform lock setting."
1521
1521
  ).nullish()
1522
- }).passthrough();
1522
+ }).loose();
1523
1523
  const microsoft_graph_workbookRangeFormat = z.object({
1524
1524
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1525
1525
  columnWidth: z.number().describe(
@@ -1541,7 +1541,7 @@ const microsoft_graph_workbookRangeFormat = z.object({
1541
1541
  fill: microsoft_graph_workbookRangeFill.optional(),
1542
1542
  font: microsoft_graph_workbookRangeFont.optional(),
1543
1543
  protection: microsoft_graph_workbookFormatProtection.optional()
1544
- }).passthrough();
1544
+ }).loose();
1545
1545
  const microsoft_graph_workbookRange = z.object({
1546
1546
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1547
1547
  address: z.string().describe(
@@ -1578,8 +1578,8 @@ const microsoft_graph_workbookRange = z.object({
1578
1578
  format: microsoft_graph_workbookRangeFormat.optional(),
1579
1579
  sort: microsoft_graph_workbookRangeSort.optional(),
1580
1580
  worksheet: microsoft_graph_workbookWorksheet.optional()
1581
- }).passthrough();
1582
- const create_excel_table_Body = z.object({ address: z.string().nullable(), hasHeaders: z.boolean().default(false) }).partial().passthrough();
1581
+ }).loose();
1582
+ const create_excel_table_Body = z.object({ address: z.string().nullable(), hasHeaders: z.boolean().meta({ default: false }) }).partial().loose();
1583
1583
  const microsoft_graph_groupAccessType = z.enum([
1584
1584
  "none",
1585
1585
  "private",
@@ -1590,8 +1590,8 @@ const microsoft_graph_groupAccessType = z.enum([
1590
1590
  const microsoft_graph_assignedLabel = z.object({
1591
1591
  displayName: z.string().describe("The display name of the label. Read-only.").nullish(),
1592
1592
  labelId: z.string().describe("The unique identifier of the label.").nullish()
1593
- }).passthrough();
1594
- const microsoft_graph_licenseProcessingState = z.object({ state: z.string().nullish() }).passthrough();
1593
+ }).loose();
1594
+ const microsoft_graph_licenseProcessingState = z.object({ state: z.string().nullish() }).loose();
1595
1595
  const microsoft_graph_group = z.object({
1596
1596
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1597
1597
  displayName: z.string().describe(
@@ -1666,12 +1666,12 @@ const microsoft_graph_group = z.object({
1666
1666
  mailEnabled: z.boolean().describe(
1667
1667
  "Specifies whether the group is mail-enabled. Required. Returned by default. Supports $filter (eq, ne, not)."
1668
1668
  ).nullish()
1669
- }).passthrough().passthrough();
1669
+ }).loose().loose();
1670
1670
  const microsoft_graph_groupCollectionResponse = z.object({
1671
1671
  "@odata.count": z.number().int().nullable(),
1672
1672
  "@odata.nextLink": z.string().nullable(),
1673
1673
  value: z.array(microsoft_graph_group)
1674
- }).partial().passthrough();
1674
+ }).partial().loose();
1675
1675
  const microsoft_graph_eventType = z.enum([
1676
1676
  "singleInstance",
1677
1677
  "occurrence",
@@ -1689,15 +1689,15 @@ const microsoft_graph_attachment = z.object({
1689
1689
  ).nullish(),
1690
1690
  name: z.string().describe("The attachment's file name.").nullish(),
1691
1691
  size: z.number().gte(-2147483648).lte(2147483647).describe("The length of the attachment in bytes.").optional()
1692
- }).passthrough();
1692
+ }).loose();
1693
1693
  const microsoft_graph_singleValueLegacyExtendedProperty = z.object({
1694
1694
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1695
1695
  value: z.string().describe("A property value.").nullish()
1696
- }).passthrough();
1696
+ }).loose();
1697
1697
  const microsoft_graph_multiValueLegacyExtendedProperty = z.object({
1698
1698
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1699
1699
  value: z.array(z.string().nullable()).describe("A collection of property values.").optional()
1700
- }).passthrough();
1700
+ }).loose();
1701
1701
  const microsoft_graph_physicalAddress = z.object({
1702
1702
  city: z.string().describe("The city.").nullish(),
1703
1703
  countryOrRegion: z.string().describe(
@@ -1706,7 +1706,7 @@ const microsoft_graph_physicalAddress = z.object({
1706
1706
  postalCode: z.string().describe("The postal code.").nullish(),
1707
1707
  state: z.string().describe("The state.").nullish(),
1708
1708
  street: z.string().describe("The street.").nullish()
1709
- }).passthrough();
1709
+ }).loose();
1710
1710
  const microsoft_graph_outlookGeoCoordinates = z.object({
1711
1711
  accuracy: z.number().describe(
1712
1712
  "The accuracy of the latitude and longitude. As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters. [Simplified from 3 options]"
@@ -1715,7 +1715,7 @@ const microsoft_graph_outlookGeoCoordinates = z.object({
1715
1715
  altitudeAccuracy: z.number().describe("The accuracy of the altitude. [Simplified from 3 options]").nullish(),
1716
1716
  latitude: z.number().describe("The latitude of the location. [Simplified from 3 options]").nullish(),
1717
1717
  longitude: z.number().describe("The longitude of the location. [Simplified from 3 options]").nullish()
1718
- }).passthrough();
1718
+ }).loose();
1719
1719
  const microsoft_graph_locationType = z.enum([
1720
1720
  "default",
1721
1721
  "conferenceRoom",
@@ -1744,7 +1744,7 @@ const microsoft_graph_location = z.object({
1744
1744
  locationUri: z.string().describe("Optional URI representing the location.").nullish(),
1745
1745
  uniqueId: z.string().describe("For internal use only.").nullish(),
1746
1746
  uniqueIdType: microsoft_graph_locationUniqueIdType.optional()
1747
- }).passthrough();
1747
+ }).loose();
1748
1748
  const microsoft_graph_freeBusyStatus = z.enum([
1749
1749
  "unknown",
1750
1750
  "free",
@@ -1758,12 +1758,12 @@ const microsoft_graph_importance = z.enum(["low", "normal", "high"]);
1758
1758
  const microsoft_graph_emailAddress = z.object({
1759
1759
  address: z.string().describe("The email address of the person or entity.").nullish(),
1760
1760
  name: z.string().describe("The display name of the person or entity.").nullish()
1761
- }).passthrough();
1761
+ }).loose();
1762
1762
  const microsoft_graph_attendeeType = z.enum(["required", "optional", "resource"]);
1763
1763
  const microsoft_graph_timeSlot = z.object({
1764
1764
  end: microsoft_graph_dateTimeTimeZone.optional(),
1765
1765
  start: microsoft_graph_dateTimeTimeZone.optional()
1766
- }).passthrough();
1766
+ }).loose();
1767
1767
  const microsoft_graph_responseType = z.enum([
1768
1768
  "none",
1769
1769
  "organizer",
@@ -1779,13 +1779,13 @@ const microsoft_graph_responseStatus = z.object({
1779
1779
  ).datetime({ offset: true }).describe(
1780
1780
  "The date and time when the response was returned. It uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
1781
1781
  ).nullish()
1782
- }).passthrough();
1782
+ }).loose();
1783
1783
  const microsoft_graph_attendee = z.object({
1784
1784
  emailAddress: microsoft_graph_emailAddress.optional(),
1785
1785
  type: microsoft_graph_attendeeType.optional(),
1786
1786
  proposedNewTime: microsoft_graph_timeSlot.optional(),
1787
1787
  status: microsoft_graph_responseStatus.optional()
1788
- }).passthrough();
1788
+ }).loose();
1789
1789
  const microsoft_graph_dayOfWeek = z.enum([
1790
1790
  "sunday",
1791
1791
  "monday",
@@ -1808,7 +1808,7 @@ const microsoft_graph_recurrencePattern = z.object({
1808
1808
  dayOfMonth: z.number().gte(-2147483648).lte(2147483647).describe(
1809
1809
  "The day of the month on which the event occurs. Required if type is absoluteMonthly or absoluteYearly."
1810
1810
  ).optional(),
1811
- daysOfWeek: z.array(z.union([microsoft_graph_dayOfWeek, z.object({}).partial().passthrough()])).describe(
1811
+ daysOfWeek: z.array(z.union([microsoft_graph_dayOfWeek, z.object({}).partial().loose()])).describe(
1812
1812
  "A collection of the days of the week on which the event occurs. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. If type is relativeMonthly or relativeYearly, and daysOfWeek specifies more than one day, the event falls on the first day that satisfies the pattern. Required if type is weekly, relativeMonthly, or relativeYearly."
1813
1813
  ).optional(),
1814
1814
  firstDayOfWeek: microsoft_graph_dayOfWeek.optional(),
@@ -1818,7 +1818,7 @@ const microsoft_graph_recurrencePattern = z.object({
1818
1818
  ).optional(),
1819
1819
  month: z.number().gte(-2147483648).lte(2147483647).describe("The month in which the event occurs. This is a number from 1 to 12.").optional(),
1820
1820
  type: microsoft_graph_recurrencePatternType.optional()
1821
- }).passthrough();
1821
+ }).loose();
1822
1822
  const microsoft_graph_recurrenceRangeType = z.enum(["endDate", "noEnd", "numbered"]);
1823
1823
  const microsoft_graph_recurrenceRange = z.object({
1824
1824
  endDate: z.string().regex(/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/).describe(
@@ -1834,11 +1834,11 @@ const microsoft_graph_recurrenceRange = z.object({
1834
1834
  "The date to start applying the recurrence pattern. The first occurrence of the meeting may be this date or later, depending on the recurrence pattern of the event. Must be the same value as the start property of the recurring event. Required."
1835
1835
  ).nullish(),
1836
1836
  type: microsoft_graph_recurrenceRangeType.optional()
1837
- }).passthrough();
1837
+ }).loose();
1838
1838
  const microsoft_graph_patternedRecurrence = z.object({
1839
1839
  pattern: microsoft_graph_recurrencePattern.optional(),
1840
1840
  range: microsoft_graph_recurrenceRange.optional()
1841
- }).passthrough();
1841
+ }).loose();
1842
1842
  const microsoft_graph_event = z.object({
1843
1843
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1844
1844
  createdDateTime: z.string().regex(
@@ -1889,14 +1889,14 @@ const microsoft_graph_event = z.object({
1889
1889
  changeKey: z.string().describe(
1890
1890
  "Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only."
1891
1891
  ).nullish()
1892
- }).passthrough().passthrough();
1892
+ }).loose().loose();
1893
1893
  const microsoft_graph_eventCollectionResponse = z.object({
1894
1894
  "@odata.count": z.number().int().nullable(),
1895
1895
  "@odata.nextLink": z.string().nullable(),
1896
1896
  value: z.array(microsoft_graph_event)
1897
- }).partial().passthrough();
1898
- const microsoft_graph_recipient = z.object({ emailAddress: microsoft_graph_emailAddress.optional() }).passthrough();
1899
- const microsoft_graph_extension = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).passthrough();
1897
+ }).partial().loose();
1898
+ const microsoft_graph_recipient = z.object({ emailAddress: microsoft_graph_emailAddress.optional() }).loose();
1899
+ const microsoft_graph_extension = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).loose();
1900
1900
  const microsoft_graph_post = z.lazy(
1901
1901
  () => z.object({
1902
1902
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -1939,7 +1939,7 @@ const microsoft_graph_post = z.lazy(
1939
1939
  singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
1940
1940
  "The collection of single-value extended properties defined for the post. Read-only. Nullable."
1941
1941
  ).optional()
1942
- }).passthrough()
1942
+ }).loose()
1943
1943
  );
1944
1944
  const microsoft_graph_conversationThread = z.object({
1945
1945
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -1962,7 +1962,7 @@ const microsoft_graph_conversationThread = z.object({
1962
1962
  toRecipients: z.array(microsoft_graph_recipient).describe("The To: recipients for the thread. Requires $select to retrieve.").optional(),
1963
1963
  uniqueSenders: z.array(z.string()).describe("All the users that sent a message to this thread. Returned by default.").optional(),
1964
1964
  posts: z.array(microsoft_graph_post).optional()
1965
- }).passthrough();
1965
+ }).loose();
1966
1966
  const microsoft_graph_conversation = z.object({
1967
1967
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1968
1968
  hasAttachments: z.boolean().describe(
@@ -1983,12 +1983,12 @@ const microsoft_graph_conversation = z.object({
1983
1983
  threads: z.array(microsoft_graph_conversationThread).describe(
1984
1984
  "A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable."
1985
1985
  ).optional()
1986
- }).passthrough();
1986
+ }).loose();
1987
1987
  const microsoft_graph_conversationCollectionResponse = z.object({
1988
1988
  "@odata.count": z.number().int().nullable(),
1989
1989
  "@odata.nextLink": z.string().nullable(),
1990
1990
  value: z.array(microsoft_graph_conversation)
1991
- }).partial().passthrough();
1991
+ }).partial().loose();
1992
1992
  const microsoft_graph_directoryObject = z.object({
1993
1993
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1994
1994
  deletedDateTime: z.string().regex(
@@ -1996,20 +1996,20 @@ const microsoft_graph_directoryObject = z.object({
1996
1996
  ).datetime({ offset: true }).describe(
1997
1997
  "Date and time when this object was deleted. Always null when the object hasn't been deleted."
1998
1998
  ).nullish()
1999
- }).passthrough();
1999
+ }).loose();
2000
2000
  const microsoft_graph_directoryObjectCollectionResponse = z.object({
2001
2001
  "@odata.count": z.number().int().nullable(),
2002
2002
  "@odata.nextLink": z.string().nullable(),
2003
2003
  value: z.array(microsoft_graph_directoryObject)
2004
- }).partial().passthrough();
2005
- const ReferenceCreate = z.record(z.object({}).partial().passthrough());
2004
+ }).partial().loose();
2005
+ const ReferenceCreate = z.record(z.string(), z.object({}).partial().loose());
2006
2006
  const microsoft_graph_plannerContainerType = z.enum(["group", "unknownFutureValue", "roster"]);
2007
2007
  const microsoft_graph_plannerPlanContainer = z.object({
2008
2008
  containerId: z.string().describe("The identifier of the resource that contains the plan. Optional.").nullish(),
2009
2009
  type: microsoft_graph_plannerContainerType.optional(),
2010
2010
  url: z.string().describe("The full canonical URL of the container. Optional.").nullish()
2011
- }).passthrough();
2012
- const microsoft_graph_plannerChecklistItems = z.object({}).passthrough();
2011
+ }).loose();
2012
+ const microsoft_graph_plannerChecklistItems = z.object({}).loose();
2013
2013
  const microsoft_graph_plannerPreviewType = z.enum([
2014
2014
  "automatic",
2015
2015
  "noPreview",
@@ -2017,30 +2017,30 @@ const microsoft_graph_plannerPreviewType = z.enum([
2017
2017
  "description",
2018
2018
  "reference"
2019
2019
  ]);
2020
- const microsoft_graph_plannerExternalReferences = z.object({}).passthrough();
2020
+ const microsoft_graph_plannerExternalReferences = z.object({}).loose();
2021
2021
  const microsoft_graph_plannerTaskDetails = z.object({
2022
2022
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2023
2023
  checklist: microsoft_graph_plannerChecklistItems.optional(),
2024
2024
  description: z.string().describe("Description of the task.").nullish(),
2025
2025
  previewType: microsoft_graph_plannerPreviewType.optional(),
2026
2026
  references: microsoft_graph_plannerExternalReferences.optional()
2027
- }).passthrough();
2028
- const microsoft_graph_plannerAppliedCategories = z.object({}).passthrough();
2029
- const microsoft_graph_plannerAssignments = z.object({}).passthrough();
2030
- const microsoft_graph_plannerOrderHintsByAssignee = z.object({}).passthrough();
2027
+ }).loose();
2028
+ const microsoft_graph_plannerAppliedCategories = z.object({}).loose();
2029
+ const microsoft_graph_plannerAssignments = z.object({}).loose();
2030
+ const microsoft_graph_plannerOrderHintsByAssignee = z.object({}).loose();
2031
2031
  const microsoft_graph_plannerAssignedToTaskBoardTaskFormat = z.object({
2032
2032
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2033
2033
  orderHintsByAssignee: microsoft_graph_plannerOrderHintsByAssignee.optional(),
2034
2034
  unassignedOrderHint: z.string().describe(
2035
2035
  "Hint value used to order the task on the AssignedTo view of the Task Board when the task isn't assigned to anyone, or if the orderHintsByAssignee dictionary doesn't provide an order hint for the user the task is assigned to. The format is defined as outlined here."
2036
2036
  ).nullish()
2037
- }).passthrough();
2037
+ }).loose();
2038
2038
  const microsoft_graph_plannerBucketTaskBoardTaskFormat = z.object({
2039
2039
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2040
2040
  orderHint: z.string().describe(
2041
2041
  "Hint used to order tasks in the bucket view of the task board. For details about the supported format, see Using order hints in Planner."
2042
2042
  ).nullish()
2043
- }).passthrough();
2043
+ }).loose();
2044
2044
  const microsoft_graph_plannerTask = z.object({
2045
2045
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2046
2046
  createdDateTime: z.string().regex(
@@ -2095,7 +2095,7 @@ const microsoft_graph_plannerTask = z.object({
2095
2095
  ).nullish(),
2096
2096
  assignedToTaskBoardFormat: microsoft_graph_plannerAssignedToTaskBoardTaskFormat.optional(),
2097
2097
  bucketTaskBoardFormat: microsoft_graph_plannerBucketTaskBoardTaskFormat.optional()
2098
- }).passthrough().passthrough();
2098
+ }).loose().loose();
2099
2099
  const microsoft_graph_plannerBucket = z.object({
2100
2100
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2101
2101
  name: z.string().describe("Name of the bucket.").optional(),
@@ -2104,7 +2104,7 @@ const microsoft_graph_plannerBucket = z.object({
2104
2104
  ).nullish(),
2105
2105
  planId: z.string().describe("Plan ID to which the bucket belongs.").nullish(),
2106
2106
  tasks: z.array(microsoft_graph_plannerTask).describe("Read-only. Nullable. The collection of tasks in the bucket.").optional()
2107
- }).passthrough();
2107
+ }).loose();
2108
2108
  const microsoft_graph_plannerCategoryDescriptions = z.object({
2109
2109
  category1: z.string().describe("The label associated with Category 1").nullish(),
2110
2110
  category10: z.string().describe("The label associated with Category 10").nullish(),
@@ -2131,13 +2131,13 @@ const microsoft_graph_plannerCategoryDescriptions = z.object({
2131
2131
  category7: z.string().describe("The label associated with Category 7").nullish(),
2132
2132
  category8: z.string().describe("The label associated with Category 8").nullish(),
2133
2133
  category9: z.string().describe("The label associated with Category 9").nullish()
2134
- }).passthrough();
2135
- const microsoft_graph_plannerUserIds = z.object({}).passthrough();
2134
+ }).loose();
2135
+ const microsoft_graph_plannerUserIds = z.object({}).loose();
2136
2136
  const microsoft_graph_plannerPlanDetails = z.object({
2137
2137
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2138
2138
  categoryDescriptions: microsoft_graph_plannerCategoryDescriptions.optional(),
2139
2139
  sharedWith: microsoft_graph_plannerUserIds.optional()
2140
- }).passthrough();
2140
+ }).loose();
2141
2141
  const microsoft_graph_plannerPlan = z.object({
2142
2142
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2143
2143
  container: microsoft_graph_plannerPlanContainer.optional(),
@@ -2154,18 +2154,18 @@ const microsoft_graph_plannerPlan = z.object({
2154
2154
  buckets: z.array(microsoft_graph_plannerBucket).describe("Read-only. Nullable. Collection of buckets in the plan.").optional(),
2155
2155
  details: microsoft_graph_plannerPlanDetails.optional(),
2156
2156
  tasks: z.array(microsoft_graph_plannerTask).describe("Read-only. Nullable. Collection of tasks in the plan.").optional()
2157
- }).passthrough();
2157
+ }).loose();
2158
2158
  const microsoft_graph_plannerPlanCollectionResponse = z.object({
2159
2159
  "@odata.count": z.number().int().nullable(),
2160
2160
  "@odata.nextLink": z.string().nullable(),
2161
2161
  value: z.array(microsoft_graph_plannerPlan)
2162
- }).partial().passthrough();
2162
+ }).partial().loose();
2163
2163
  const microsoft_graph_conversationThreadCollectionResponse = z.object({
2164
2164
  "@odata.count": z.number().int().nullable(),
2165
2165
  "@odata.nextLink": z.string().nullable(),
2166
2166
  value: z.array(microsoft_graph_conversationThread)
2167
- }).partial().passthrough();
2168
- const reply_to_group_thread_Body = z.object({ Post: microsoft_graph_post }).partial().passthrough();
2167
+ }).partial().loose();
2168
+ const reply_to_group_thread_Body = z.object({ Post: microsoft_graph_post }).partial().loose();
2169
2169
  const microsoft_graph_calendarRoleType = z.enum([
2170
2170
  "none",
2171
2171
  "freeBusyRead",
@@ -2178,7 +2178,7 @@ const microsoft_graph_calendarRoleType = z.enum([
2178
2178
  ]);
2179
2179
  const microsoft_graph_calendarPermission = z.object({
2180
2180
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2181
- allowedRoles: z.array(z.union([microsoft_graph_calendarRoleType, z.object({}).partial().passthrough()])).describe(
2181
+ allowedRoles: z.array(z.union([microsoft_graph_calendarRoleType, z.object({}).partial().loose()])).describe(
2182
2182
  "List of allowed sharing or delegating permission levels for the calendar. The possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom."
2183
2183
  ).optional(),
2184
2184
  emailAddress: microsoft_graph_emailAddress.optional(),
@@ -2189,24 +2189,24 @@ const microsoft_graph_calendarPermission = z.object({
2189
2189
  "True if the user can be removed from the list of recipients or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You can't remove 'My organization' as a share recipient to a calendar."
2190
2190
  ).nullish(),
2191
2191
  role: microsoft_graph_calendarRoleType.optional()
2192
- }).passthrough();
2192
+ }).loose();
2193
2193
  const microsoft_graph_calendarPermissionCollectionResponse = z.object({
2194
2194
  "@odata.count": z.number().int().nullable(),
2195
2195
  "@odata.nextLink": z.string().nullable(),
2196
2196
  value: z.array(microsoft_graph_calendarPermission)
2197
- }).partial().passthrough();
2197
+ }).partial().loose();
2198
2198
  const get_schedule_Body = z.object({
2199
2199
  Schedules: z.array(z.string().nullable()),
2200
- EndTime: z.union([microsoft_graph_dateTimeTimeZone, z.object({}).partial().passthrough()]),
2201
- StartTime: z.union([microsoft_graph_dateTimeTimeZone, z.object({}).partial().passthrough()]),
2200
+ EndTime: z.union([microsoft_graph_dateTimeTimeZone, z.object({}).partial().loose()]),
2201
+ StartTime: z.union([microsoft_graph_dateTimeTimeZone, z.object({}).partial().loose()]),
2202
2202
  AvailabilityViewInterval: z.number().gte(-2147483648).lte(2147483647).nullable()
2203
- }).partial().passthrough();
2203
+ }).partial().loose();
2204
2204
  const microsoft_graph_freeBusyError = z.object({
2205
2205
  message: z.string().describe("Describes the error.").nullish(),
2206
2206
  responseCode: z.string().describe(
2207
2207
  "The response code from querying for the availability of the user, distribution list, or resource."
2208
2208
  ).nullish()
2209
- }).passthrough();
2209
+ }).loose();
2210
2210
  const microsoft_graph_scheduleItem = z.object({
2211
2211
  end: microsoft_graph_dateTimeTimeZone.optional(),
2212
2212
  isPrivate: z.boolean().describe(
@@ -2216,18 +2216,18 @@ const microsoft_graph_scheduleItem = z.object({
2216
2216
  start: microsoft_graph_dateTimeTimeZone.optional(),
2217
2217
  status: microsoft_graph_freeBusyStatus.optional(),
2218
2218
  subject: z.string().describe("The corresponding event's subject line. Optional.").nullish()
2219
- }).passthrough();
2219
+ }).loose();
2220
2220
  const microsoft_graph_timeZoneBase = z.object({
2221
2221
  name: z.string().describe(
2222
2222
  "The name of a time zone. It can be a standard time zone name such as 'Hawaii-Aleutian Standard Time', or 'Customized Time Zone' for a custom time zone."
2223
2223
  ).nullish()
2224
- }).passthrough();
2224
+ }).loose();
2225
2225
  const microsoft_graph_workingHours = z.object({
2226
- daysOfWeek: z.array(z.union([microsoft_graph_dayOfWeek, z.object({}).partial().passthrough()])).describe("The days of the week on which the user works.").optional(),
2226
+ daysOfWeek: z.array(z.union([microsoft_graph_dayOfWeek, z.object({}).partial().loose()])).describe("The days of the week on which the user works.").optional(),
2227
2227
  endTime: z.string().regex(/^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?$/).describe("The time of the day that the user stops working.").nullish(),
2228
2228
  startTime: z.string().regex(/^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?$/).describe("The time of the day that the user starts working.").nullish(),
2229
2229
  timeZone: microsoft_graph_timeZoneBase.optional()
2230
- }).passthrough();
2230
+ }).loose();
2231
2231
  const microsoft_graph_scheduleInformation = z.object({
2232
2232
  availabilityView: z.string().describe(
2233
2233
  "Represents a merged view of availability of all the items in scheduleItems. The view consists of time slots. Availability during each time slot is indicated with: 0= free or working elswhere, 1= tentative, 2= busy, 3= out of office.Note: Working elsewhere is set to 0 instead of 4 for backward compatibility. For details, see the Q&A and Exchange 2007 and Exchange 2010 do not use the WorkingElsewhere value."
@@ -2238,7 +2238,7 @@ const microsoft_graph_scheduleInformation = z.object({
2238
2238
  ).nullish(),
2239
2239
  scheduleItems: z.array(microsoft_graph_scheduleItem).describe("Contains the items that describe the availability of the user or resource.").optional(),
2240
2240
  workingHours: microsoft_graph_workingHours.optional()
2241
- }).passthrough();
2241
+ }).loose();
2242
2242
  const microsoft_graph_onlineMeetingProviderType = z.enum([
2243
2243
  "unknown",
2244
2244
  "skypeForBusiness",
@@ -2260,7 +2260,7 @@ const microsoft_graph_calendarColor = z.enum([
2260
2260
  ]);
2261
2261
  const microsoft_graph_calendar = z.object({
2262
2262
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2263
- allowedOnlineMeetingProviders: z.array(z.union([microsoft_graph_onlineMeetingProviderType, z.object({}).partial().passthrough()])).describe(
2263
+ allowedOnlineMeetingProviders: z.array(z.union([microsoft_graph_onlineMeetingProviderType, z.object({}).partial().loose()])).describe(
2264
2264
  "Represent the online meeting service providers that can be used to create online meetings in this calendar. The possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness."
2265
2265
  ).optional(),
2266
2266
  canEdit: z.boolean().describe(
@@ -2298,17 +2298,17 @@ const microsoft_graph_calendar = z.object({
2298
2298
  singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
2299
2299
  "The collection of single-value extended properties defined for the calendar. Read-only. Nullable."
2300
2300
  ).optional()
2301
- }).passthrough();
2301
+ }).loose();
2302
2302
  const microsoft_graph_calendarCollectionResponse = z.object({
2303
2303
  "@odata.count": z.number().int().nullable(),
2304
2304
  "@odata.nextLink": z.string().nullable(),
2305
2305
  value: z.array(microsoft_graph_calendar)
2306
- }).partial().passthrough();
2306
+ }).partial().loose();
2307
2307
  const microsoft_graph_chatCollectionResponse = z.object({
2308
2308
  "@odata.count": z.number().int().nullable(),
2309
2309
  "@odata.nextLink": z.string().nullable(),
2310
2310
  value: z.array(microsoft_graph_chat)
2311
- }).partial().passthrough();
2311
+ }).partial().loose();
2312
2312
  const microsoft_graph_contact = z.object({
2313
2313
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2314
2314
  displayName: z.string().describe(
@@ -2355,7 +2355,7 @@ const microsoft_graph_contact = z.object({
2355
2355
  homePhones: z.array(z.string().nullable()).describe("The contact's home phone numbers.").optional(),
2356
2356
  imAddresses: z.array(z.string().nullable()).describe("The contact's instant messaging (IM) addresses.").optional(),
2357
2357
  initials: z.string().describe("The contact's initials.").nullish()
2358
- }).passthrough().passthrough();
2358
+ }).loose().loose();
2359
2359
  const microsoft_graph_contactFolder = z.lazy(
2360
2360
  () => z.object({
2361
2361
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -2371,18 +2371,18 @@ const microsoft_graph_contactFolder = z.lazy(
2371
2371
  singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
2372
2372
  "The collection of single-value extended properties defined for the contactFolder. Read-only. Nullable."
2373
2373
  ).optional()
2374
- }).passthrough()
2374
+ }).loose()
2375
2375
  );
2376
2376
  const microsoft_graph_contactFolderCollectionResponse = z.object({
2377
2377
  "@odata.count": z.number().int().nullable(),
2378
2378
  "@odata.nextLink": z.string().nullable(),
2379
2379
  value: z.array(microsoft_graph_contactFolder)
2380
- }).partial().passthrough();
2380
+ }).partial().loose();
2381
2381
  const microsoft_graph_contactCollectionResponse = z.object({
2382
2382
  "@odata.count": z.number().int().nullable(),
2383
2383
  "@odata.nextLink": z.string().nullable(),
2384
2384
  value: z.array(microsoft_graph_contact)
2385
- }).partial().passthrough();
2385
+ }).partial().loose();
2386
2386
  const microsoft_graph_labelActionSource = z.enum([
2387
2387
  "manual",
2388
2388
  "automatic",
@@ -2419,7 +2419,7 @@ const microsoft_graph_usageRightsIncluded = z.object({
2419
2419
  ownerEmail: z.string().describe("The email of owner label rights.").nullish(),
2420
2420
  userEmail: z.string().describe("The email of user with label user rights.").nullish(),
2421
2421
  value: microsoft_graph_usageRights.optional()
2422
- }).passthrough();
2422
+ }).loose();
2423
2423
  const microsoft_graph_sensitivityLabel = z.lazy(
2424
2424
  () => z.object({
2425
2425
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -2437,16 +2437,16 @@ const microsoft_graph_sensitivityLabel = z.lazy(
2437
2437
  toolTip: z.string().nullish(),
2438
2438
  rights: microsoft_graph_usageRightsIncluded.optional(),
2439
2439
  sublabels: z.array(microsoft_graph_sensitivityLabel).optional()
2440
- }).passthrough()
2440
+ }).loose()
2441
2441
  );
2442
2442
  const microsoft_graph_sensitivityLabelCollectionResponse = z.object({
2443
2443
  "@odata.count": z.number().int().nullable(),
2444
2444
  "@odata.nextLink": z.string().nullable(),
2445
2445
  value: z.array(microsoft_graph_sensitivityLabel)
2446
- }).partial().passthrough();
2446
+ }).partial().loose();
2447
2447
  const microsoft_graph_storagePlanInformation = z.object({
2448
2448
  upgradeAvailable: z.boolean().describe("Indicates whether there are higher storage quota plans available. Read-only.").nullish()
2449
- }).passthrough();
2449
+ }).loose();
2450
2450
  const microsoft_graph_quota = z.object({
2451
2451
  deleted: z.number().describe("Total space consumed by files in the recycle bin, in bytes. Read-only.").nullish(),
2452
2452
  remaining: z.number().describe("Total space remaining before reaching the capacity limit, in bytes. Read-only.").nullish(),
@@ -2454,8 +2454,8 @@ const microsoft_graph_quota = z.object({
2454
2454
  storagePlanInformation: microsoft_graph_storagePlanInformation.optional(),
2455
2455
  total: z.number().describe("Total allowed storage space, in bytes. Read-only.").nullish(),
2456
2456
  used: z.number().describe("Total space used, in bytes. Read-only.").nullish()
2457
- }).passthrough();
2458
- const microsoft_graph_systemFacet = z.object({}).passthrough();
2457
+ }).loose();
2458
+ const microsoft_graph_systemFacet = z.object({}).loose();
2459
2459
  const microsoft_graph_listInfo = z.object({
2460
2460
  contentTypesEnabled: z.boolean().describe("If true, indicates that content types are enabled for this list.").nullish(),
2461
2461
  hidden: z.boolean().describe(
@@ -2464,7 +2464,7 @@ const microsoft_graph_listInfo = z.object({
2464
2464
  template: z.string().describe(
2465
2465
  "An enumerated value that represents the base list template used in creating the list. Possible values include documentLibrary, genericList, task, survey, announcements, contacts, and more."
2466
2466
  ).nullish()
2467
- }).passthrough();
2467
+ }).loose();
2468
2468
  const microsoft_graph_columnTypes = z.enum([
2469
2469
  "note",
2470
2470
  "text",
@@ -2486,7 +2486,7 @@ const microsoft_graph_columnTypes = z.enum([
2486
2486
  "approvalStatus",
2487
2487
  "unknownFutureValue"
2488
2488
  ]);
2489
- const microsoft_graph_booleanColumn = z.object({}).passthrough();
2489
+ const microsoft_graph_booleanColumn = z.object({}).loose();
2490
2490
  const microsoft_graph_calculatedColumn = z.object({
2491
2491
  format: z.string().describe(
2492
2492
  "For dateTime output types, the format of the value. The possible values are: dateOnly or dateTime."
@@ -2495,18 +2495,18 @@ const microsoft_graph_calculatedColumn = z.object({
2495
2495
  outputType: z.string().describe(
2496
2496
  "The output type used to format values in this column. The possible values are: boolean, currency, dateTime, number, or text."
2497
2497
  ).nullish()
2498
- }).passthrough();
2498
+ }).loose();
2499
2499
  const microsoft_graph_choiceColumn = z.object({
2500
2500
  allowTextEntry: z.boolean().describe("If true, allows custom values that aren't in the configured choices.").nullish(),
2501
2501
  choices: z.array(z.string().nullable()).describe("The list of values available for this column.").optional(),
2502
2502
  displayAs: z.string().describe(
2503
2503
  "How the choices are to be presented in the UX. Must be one of checkBoxes, dropDownMenu, or radioButtons"
2504
2504
  ).nullish()
2505
- }).passthrough();
2506
- const microsoft_graph_contentApprovalStatusColumn = z.object({}).passthrough();
2505
+ }).loose();
2506
+ const microsoft_graph_contentApprovalStatusColumn = z.object({}).loose();
2507
2507
  const microsoft_graph_currencyColumn = z.object({
2508
2508
  locale: z.string().describe("Specifies the locale from which to infer the currency symbol.").nullish()
2509
- }).passthrough();
2509
+ }).loose();
2510
2510
  const microsoft_graph_dateTimeColumn = z.object({
2511
2511
  displayAs: z.string().describe(
2512
2512
  "How the value should be presented in the UX. Must be one of default, friendly, or standard. See below for more details. If unspecified, treated as default."
@@ -2514,17 +2514,17 @@ const microsoft_graph_dateTimeColumn = z.object({
2514
2514
  format: z.string().describe(
2515
2515
  "Indicates whether the value should be presented as a date only or a date and time. Must be one of dateOnly or dateTime"
2516
2516
  ).nullish()
2517
- }).passthrough();
2517
+ }).loose();
2518
2518
  const microsoft_graph_defaultColumnValue = z.object({
2519
2519
  formula: z.string().describe("The formula used to compute the default value for the column.").nullish(),
2520
2520
  value: z.string().describe("The direct value to use as the default value for the column.").nullish()
2521
- }).passthrough();
2522
- const microsoft_graph_geolocationColumn = z.object({}).passthrough();
2521
+ }).loose();
2522
+ const microsoft_graph_geolocationColumn = z.object({}).loose();
2523
2523
  const microsoft_graph_hyperlinkOrPictureColumn = z.object({
2524
2524
  isPicture: z.boolean().describe(
2525
2525
  "Specifies whether the display format used for URL columns is an image or a hyperlink."
2526
2526
  ).nullish()
2527
- }).passthrough();
2527
+ }).loose();
2528
2528
  const microsoft_graph_lookupColumn = z.object({
2529
2529
  allowMultipleValues: z.boolean().describe("Indicates whether multiple values can be selected from the source.").nullish(),
2530
2530
  allowUnlimitedLength: z.boolean().describe(
@@ -2535,7 +2535,7 @@ const microsoft_graph_lookupColumn = z.object({
2535
2535
  primaryLookupColumnId: z.string().describe(
2536
2536
  "If specified, this column is a secondary lookup, pulling an additional field from the list item looked up by the primary lookup. Use the list item looked up by the primary as the source for the column named here."
2537
2537
  ).nullish()
2538
- }).passthrough();
2538
+ }).loose();
2539
2539
  const microsoft_graph_numberColumn = z.object({
2540
2540
  decimalPlaces: z.string().describe(
2541
2541
  "How many decimal places to display. See below for information about the possible values."
@@ -2545,14 +2545,14 @@ const microsoft_graph_numberColumn = z.object({
2545
2545
  ).nullish(),
2546
2546
  maximum: z.number().describe("The maximum permitted value. [Simplified from 3 options]").nullish(),
2547
2547
  minimum: z.number().describe("The minimum permitted value. [Simplified from 3 options]").nullish()
2548
- }).passthrough();
2548
+ }).loose();
2549
2549
  const microsoft_graph_personOrGroupColumn = z.object({
2550
2550
  allowMultipleSelection: z.boolean().describe("Indicates whether multiple values can be selected from the source.").nullish(),
2551
2551
  chooseFromType: z.string().describe(
2552
2552
  "Whether to allow selection of people only, or people and groups. Must be one of peopleAndGroups or peopleOnly."
2553
2553
  ).nullish(),
2554
2554
  displayAs: z.string().describe("How to display the information about the person or group chosen. See below.").nullish()
2555
- }).passthrough();
2555
+ }).loose();
2556
2556
  const microsoft_graph_columnDefinition = z.object({
2557
2557
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2558
2558
  name: z.string().describe(
@@ -2585,11 +2585,11 @@ const microsoft_graph_columnDefinition = z.object({
2585
2585
  propagateChanges: z.boolean().describe(
2586
2586
  "If 'true', changes to this column will be propagated to lists that implement the column."
2587
2587
  ).nullish()
2588
- }).passthrough().passthrough();
2588
+ }).loose().loose();
2589
2589
  const microsoft_graph_contentTypeInfo = z.object({
2590
2590
  id: z.string().describe("The ID of the content type.").nullish(),
2591
2591
  name: z.string().describe("The name of the content type.").nullish()
2592
- }).passthrough();
2592
+ }).loose();
2593
2593
  const microsoft_graph_documentSetContent = z.object({
2594
2594
  contentType: microsoft_graph_contentTypeInfo.optional(),
2595
2595
  fileName: z.string().describe(
@@ -2598,7 +2598,7 @@ const microsoft_graph_documentSetContent = z.object({
2598
2598
  folderName: z.string().describe(
2599
2599
  "Folder name in which the file will be placed when a new document set is created in the library."
2600
2600
  ).nullish()
2601
- }).passthrough();
2601
+ }).loose();
2602
2602
  const microsoft_graph_documentSet = z.object({
2603
2603
  allowedContentTypes: z.array(microsoft_graph_contentTypeInfo).describe("Content types allowed in document set.").optional(),
2604
2604
  defaultContents: z.array(microsoft_graph_documentSetContent).describe("Default contents of document set.").optional(),
@@ -2607,15 +2607,15 @@ const microsoft_graph_documentSet = z.object({
2607
2607
  welcomePageUrl: z.string().describe("Welcome page absolute URL.").nullish(),
2608
2608
  sharedColumns: z.array(microsoft_graph_columnDefinition).optional(),
2609
2609
  welcomePageColumns: z.array(microsoft_graph_columnDefinition).optional()
2610
- }).passthrough();
2610
+ }).loose();
2611
2611
  const microsoft_graph_contentTypeOrder = z.object({
2612
2612
  default: z.boolean().describe("Indicates whether this is the default content type").nullish(),
2613
2613
  position: z.number().gte(-2147483648).lte(2147483647).describe("Specifies the position in which the content type appears in the selection UI.").nullish()
2614
- }).passthrough();
2614
+ }).loose();
2615
2615
  const microsoft_graph_columnLink = z.object({
2616
2616
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2617
2617
  name: z.string().describe("The name of the column in this content type.").nullish()
2618
- }).passthrough();
2618
+ }).loose();
2619
2619
  const microsoft_graph_contentType = z.lazy(
2620
2620
  () => z.object({
2621
2621
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -2648,19 +2648,19 @@ const microsoft_graph_contentType = z.lazy(
2648
2648
  columnLinks: z.array(microsoft_graph_columnLink).describe("The collection of columns that are required by this content type.").optional(),
2649
2649
  columnPositions: z.array(microsoft_graph_columnDefinition).describe("Column order information in a content type.").optional(),
2650
2650
  columns: z.array(microsoft_graph_columnDefinition).describe("The collection of column definitions for this content type.").optional()
2651
- }).passthrough()
2651
+ }).loose()
2652
2652
  );
2653
2653
  const microsoft_graph_itemActionStat = z.object({
2654
2654
  actionCount: z.number().gte(-2147483648).lte(2147483647).describe("The number of times the action took place. Read-only.").nullish(),
2655
2655
  actorCount: z.number().gte(-2147483648).lte(2147483647).describe("The number of distinct actors that performed the action. Read-only.").nullish()
2656
- }).passthrough();
2656
+ }).loose();
2657
2657
  const microsoft_graph_incompleteData = z.object({
2658
2658
  missingDataBeforeDateTime: z.string().regex(
2659
2659
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
2660
2660
  ).datetime({ offset: true }).describe("The service does not have source data before the specified time.").nullish(),
2661
2661
  wasThrottled: z.boolean().describe("Some data was not recorded due to excessive activity.").nullish()
2662
- }).passthrough();
2663
- const microsoft_graph_accessAction = z.object({}).passthrough();
2662
+ }).loose();
2663
+ const microsoft_graph_accessAction = z.object({}).loose();
2664
2664
  const microsoft_graph_itemActivity = z.object({
2665
2665
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2666
2666
  access: microsoft_graph_accessAction.optional(),
@@ -2669,7 +2669,7 @@ const microsoft_graph_itemActivity = z.object({
2669
2669
  ).datetime({ offset: true }).describe("Details about when the activity took place. Read-only.").nullish(),
2670
2670
  actor: microsoft_graph_identitySet.optional(),
2671
2671
  driveItem: microsoft_graph_driveItem.describe("[Note: Simplified from 45 properties to 25 most common ones]").optional()
2672
- }).passthrough();
2672
+ }).loose();
2673
2673
  const microsoft_graph_itemActivityStat = z.object({
2674
2674
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2675
2675
  access: microsoft_graph_itemActionStat.optional(),
@@ -2686,19 +2686,19 @@ const microsoft_graph_itemActivityStat = z.object({
2686
2686
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
2687
2687
  ).datetime({ offset: true }).describe("When the interval starts. Read-only.").nullish(),
2688
2688
  activities: z.array(microsoft_graph_itemActivity).describe("Exposes the itemActivities represented in this itemActivityStat resource.").optional()
2689
- }).passthrough();
2689
+ }).loose();
2690
2690
  const microsoft_graph_itemAnalytics = z.object({
2691
2691
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2692
2692
  allTime: microsoft_graph_itemActivityStat.optional(),
2693
2693
  itemActivityStats: z.array(microsoft_graph_itemActivityStat).optional(),
2694
2694
  lastSevenDays: microsoft_graph_itemActivityStat.optional()
2695
- }).passthrough();
2696
- const microsoft_graph_fieldValueSet = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).passthrough();
2695
+ }).loose();
2696
+ const microsoft_graph_fieldValueSet = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).loose();
2697
2697
  const microsoft_graph_documentSetVersionItem = z.object({
2698
2698
  itemId: z.string().describe("The unique identifier for the item.").nullish(),
2699
2699
  title: z.string().describe("The title of the item.").nullish(),
2700
2700
  versionId: z.string().describe("The version ID of the item.").nullish()
2701
- }).passthrough();
2701
+ }).loose();
2702
2702
  const microsoft_graph_documentSetVersion = z.object({
2703
2703
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2704
2704
  lastModifiedBy: microsoft_graph_identitySet.optional(),
@@ -2716,7 +2716,7 @@ const microsoft_graph_documentSetVersion = z.object({
2716
2716
  shouldCaptureMinorVersion: z.boolean().describe(
2717
2717
  "If true, minor versions of items are also captured; otherwise, only major versions are captured. The default value is false."
2718
2718
  ).nullish()
2719
- }).passthrough();
2719
+ }).loose();
2720
2720
  const microsoft_graph_listItemVersion = z.object({
2721
2721
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2722
2722
  lastModifiedBy: microsoft_graph_identitySet.optional(),
@@ -2725,7 +2725,7 @@ const microsoft_graph_listItemVersion = z.object({
2725
2725
  ).datetime({ offset: true }).describe("Date and time the version was last modified. Read-only.").nullish(),
2726
2726
  publication: microsoft_graph_publicationFacet.optional(),
2727
2727
  fields: microsoft_graph_fieldValueSet.optional()
2728
- }).passthrough();
2728
+ }).loose();
2729
2729
  const microsoft_graph_listItem = z.object({
2730
2730
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2731
2731
  createdBy: microsoft_graph_identitySet.optional(),
@@ -2754,7 +2754,7 @@ const microsoft_graph_listItem = z.object({
2754
2754
  fields: microsoft_graph_fieldValueSet.optional(),
2755
2755
  permissions: z.array(microsoft_graph_permission).describe("The set of permissions for the item. Read-only. Nullable.").optional(),
2756
2756
  versions: z.array(microsoft_graph_listItemVersion).describe("The list of previous versions of the list item.").optional()
2757
- }).passthrough();
2757
+ }).loose();
2758
2758
  const microsoft_graph_longRunningOperationStatus = z.enum([
2759
2759
  "notStarted",
2760
2760
  "running",
@@ -2766,20 +2766,20 @@ const microsoft_graph_publicErrorDetail = z.object({
2766
2766
  code: z.string().describe("The error code.").nullish(),
2767
2767
  message: z.string().describe("The error message.").nullish(),
2768
2768
  target: z.string().describe("The target of the error.").nullish()
2769
- }).passthrough();
2769
+ }).loose();
2770
2770
  const microsoft_graph_publicInnerError = z.object({
2771
2771
  code: z.string().describe("The error code.").nullish(),
2772
2772
  details: z.array(microsoft_graph_publicErrorDetail).describe("A collection of error details.").optional(),
2773
2773
  message: z.string().describe("The error message.").nullish(),
2774
2774
  target: z.string().describe("The target of the error.").nullish()
2775
- }).passthrough();
2775
+ }).loose();
2776
2776
  const microsoft_graph_publicError = z.object({
2777
2777
  code: z.string().describe("Represents the error code.").nullish(),
2778
2778
  details: z.array(microsoft_graph_publicErrorDetail).describe("Details of the error.").optional(),
2779
2779
  innerError: microsoft_graph_publicInnerError.optional(),
2780
2780
  message: z.string().describe("A non-localized message for the developer.").nullish(),
2781
2781
  target: z.string().describe("The target of the error.").nullish()
2782
- }).passthrough();
2782
+ }).loose();
2783
2783
  const microsoft_graph_richLongRunningOperation = z.object({
2784
2784
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2785
2785
  createdDateTime: z.string().regex(
@@ -2799,7 +2799,7 @@ const microsoft_graph_richLongRunningOperation = z.object({
2799
2799
  percentageComplete: z.number().gte(-2147483648).lte(2147483647).describe("A value between 0 and 100 that indicates the progress of the operation.").nullish(),
2800
2800
  resourceId: z.string().describe("The unique identifier for the result.").nullish(),
2801
2801
  type: z.string().describe("The type of the operation.").nullish()
2802
- }).passthrough();
2802
+ }).loose();
2803
2803
  const microsoft_graph_subscription = z.object({
2804
2804
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2805
2805
  applicationId: z.string().describe(
@@ -2855,7 +2855,7 @@ const microsoft_graph_subscription = z.object({
2855
2855
  webPushEncryptionSecret: z.string().describe(
2856
2856
  "Optional. The subscriber's auth secret, base64url-encoded (16 bytes pre-encoding). Obtained from the browser via PushSubscription.getKey('auth'). Used as the HMAC-SHA-256 salt for the HKDF combine step that derives key material for RFC 8291 payload encryption. Write-only: this value is never returned in GET responses (returned as null). Treat as a secret. Required when notificationUrl targets a known Web Push service origin; rejected with 400 Bad Request if supplied on a standard webhook subscription. For more information, see RFC 8291 Section 3."
2857
2857
  ).nullish()
2858
- }).passthrough();
2858
+ }).loose();
2859
2859
  const microsoft_graph_list = z.lazy(
2860
2860
  () => z.object({
2861
2861
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -2887,7 +2887,7 @@ const microsoft_graph_list = z.lazy(
2887
2887
  operations: z.array(microsoft_graph_richLongRunningOperation).describe("The collection of long-running operations on the list.").optional(),
2888
2888
  permissions: z.array(microsoft_graph_permission).describe("The set of permissions for the item. Read-only. Nullable.").optional(),
2889
2889
  subscriptions: z.array(microsoft_graph_subscription).describe("The set of subscriptions on the list.").optional()
2890
- }).passthrough()
2890
+ }).loose()
2891
2891
  );
2892
2892
  const microsoft_graph_drive = z.lazy(
2893
2893
  () => z.object({
@@ -2924,13 +2924,13 @@ const microsoft_graph_drive = z.lazy(
2924
2924
  list: microsoft_graph_list.optional(),
2925
2925
  root: microsoft_graph_driveItem.describe("[Note: Simplified from 45 properties to 25 most common ones]").optional(),
2926
2926
  special: z.array(microsoft_graph_driveItem).describe("Collection of common folders available in OneDrive. Read-only. Nullable.").optional()
2927
- }).passthrough()
2927
+ }).loose()
2928
2928
  );
2929
2929
  const microsoft_graph_driveCollectionResponse = z.object({
2930
2930
  "@odata.count": z.number().int().nullable(),
2931
2931
  "@odata.nextLink": z.string().nullable(),
2932
2932
  value: z.array(microsoft_graph_drive)
2933
- }).partial().passthrough();
2933
+ }).partial().loose();
2934
2934
  const microsoft_graph_attachmentType = z.enum(["file", "item", "reference"]);
2935
2935
  const microsoft_graph_attachmentItem = z.object({
2936
2936
  attachmentType: microsoft_graph_attachmentType.optional(),
@@ -2943,34 +2943,34 @@ const microsoft_graph_attachmentItem = z.object({
2943
2943
  "The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required."
2944
2944
  ).nullish(),
2945
2945
  size: z.number().describe("The length of the attachment in bytes. Required.").nullish()
2946
- }).passthrough();
2947
- const create_calendar_event_attachment_upload_session_Body = z.object({ AttachmentItem: microsoft_graph_attachmentItem }).partial().passthrough();
2948
- const accept_calendar_event_Body = z.object({ SendResponse: z.boolean().nullable().default(false), Comment: z.string().nullable() }).partial().passthrough();
2946
+ }).loose();
2947
+ const create_calendar_event_attachment_upload_session_Body = z.object({ AttachmentItem: microsoft_graph_attachmentItem }).partial().loose();
2948
+ const accept_calendar_event_Body = z.object({ SendResponse: z.boolean().nullable().meta({ default: false }), Comment: z.string().nullable() }).partial().loose();
2949
2949
  const decline_calendar_event_Body = z.object({
2950
- ProposedNewTime: z.union([microsoft_graph_timeSlot, z.object({}).partial().passthrough()]),
2951
- SendResponse: z.boolean().nullable().default(false),
2950
+ ProposedNewTime: z.union([microsoft_graph_timeSlot, z.object({}).partial().loose()]),
2951
+ SendResponse: z.boolean().nullable().meta({ default: false }),
2952
2952
  Comment: z.string().nullable()
2953
- }).partial().passthrough();
2954
- const forward_calendar_event_Body = z.object({ ToRecipients: z.array(microsoft_graph_recipient), Comment: z.string().nullable() }).partial().passthrough();
2955
- const snooze_calendar_event_reminder_Body = z.object({ NewReminderTime: microsoft_graph_dateTimeTimeZone }).partial().passthrough();
2953
+ }).partial().loose();
2954
+ const forward_calendar_event_Body = z.object({ ToRecipients: z.array(microsoft_graph_recipient), Comment: z.string().nullable() }).partial().loose();
2955
+ const snooze_calendar_event_reminder_Body = z.object({ NewReminderTime: microsoft_graph_dateTimeTimeZone }).partial().loose();
2956
2956
  const microsoft_graph_inferenceClassificationType = z.enum(["focused", "other"]);
2957
2957
  const microsoft_graph_inferenceClassificationOverride = z.object({
2958
2958
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2959
2959
  classifyAs: microsoft_graph_inferenceClassificationType.optional(),
2960
2960
  senderEmailAddress: microsoft_graph_emailAddress.optional()
2961
- }).passthrough();
2961
+ }).loose();
2962
2962
  const microsoft_graph_inferenceClassificationOverrideCollectionResponse = z.object({
2963
2963
  "@odata.count": z.number().int().nullable(),
2964
2964
  "@odata.nextLink": z.string().nullable(),
2965
2965
  value: z.array(microsoft_graph_inferenceClassificationOverride)
2966
- }).partial().passthrough();
2966
+ }).partial().loose();
2967
2967
  const microsoft_graph_resourceReference = z.object({
2968
2968
  id: z.string().describe("The item's unique identifier.").nullish(),
2969
2969
  type: z.string().describe(
2970
2970
  "A string value that can be used to classify the item, such as 'microsoft.graph.driveItem'"
2971
2971
  ).nullish(),
2972
2972
  webUrl: z.string().describe("A URL leading to the referenced item.").nullish()
2973
- }).passthrough();
2973
+ }).loose();
2974
2974
  const microsoft_graph_resourceVisualization = z.object({
2975
2975
  containerDisplayName: z.string().describe(
2976
2976
  "A string describing where the item is stored. For example, the name of a SharePoint site or the user name identifying the owner of the OneDrive storing the item."
@@ -2988,8 +2988,8 @@ const microsoft_graph_resourceVisualization = z.object({
2988
2988
  type: z.string().describe(
2989
2989
  "The item's media type. Can be used for filtering for a specific file based on a specific type. See the section Type property values for supported types."
2990
2990
  ).nullish()
2991
- }).passthrough();
2992
- const microsoft_graph_entity = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).passthrough();
2991
+ }).loose();
2992
+ const microsoft_graph_entity = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).loose();
2993
2993
  const microsoft_graph_trending = z.object({
2994
2994
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2995
2995
  lastModifiedDateTime: z.string().regex(
@@ -3003,23 +3003,23 @@ const microsoft_graph_trending = z.object({
3003
3003
  "Value indicating how much the document is currently trending. The larger the number, the more the document is currently trending around the user (the more relevant it is). Returned documents are sorted by this value. [Simplified from 3 options]"
3004
3004
  ).nullish(),
3005
3005
  resource: microsoft_graph_entity.optional()
3006
- }).passthrough();
3006
+ }).loose();
3007
3007
  const microsoft_graph_trendingCollectionResponse = z.object({
3008
3008
  "@odata.count": z.number().int().nullable(),
3009
3009
  "@odata.nextLink": z.string().nullable(),
3010
3010
  value: z.array(microsoft_graph_trending)
3011
- }).partial().passthrough();
3011
+ }).partial().loose();
3012
3012
  const microsoft_graph_giphyRatingType = z.enum(["strict", "moderate", "unknownFutureValue"]);
3013
3013
  const microsoft_graph_teamFunSettings = z.object({
3014
3014
  allowCustomMemes: z.boolean().describe("If set to true, enables users to include custom memes.").nullish(),
3015
3015
  allowGiphy: z.boolean().describe("If set to true, enables Giphy use.").nullish(),
3016
3016
  allowStickersAndMemes: z.boolean().describe("If set to true, enables users to include stickers and memes.").nullish(),
3017
3017
  giphyContentRating: microsoft_graph_giphyRatingType.optional()
3018
- }).passthrough();
3018
+ }).loose();
3019
3019
  const microsoft_graph_teamGuestSettings = z.object({
3020
3020
  allowCreateUpdateChannels: z.boolean().describe("If set to true, guests can add and update channels.").nullish(),
3021
3021
  allowDeleteChannels: z.boolean().describe("If set to true, guests can delete channels.").nullish()
3022
- }).passthrough();
3022
+ }).loose();
3023
3023
  const microsoft_graph_teamMemberSettings = z.object({
3024
3024
  allowAddRemoveApps: z.boolean().describe("If set to true, members can add and remove apps.").nullish(),
3025
3025
  allowCreatePrivateChannels: z.boolean().describe("If set to true, members can add and update private channels.").nullish(),
@@ -3027,14 +3027,14 @@ const microsoft_graph_teamMemberSettings = z.object({
3027
3027
  allowCreateUpdateRemoveConnectors: z.boolean().describe("If set to true, members can add, update, and remove connectors.").nullish(),
3028
3028
  allowCreateUpdateRemoveTabs: z.boolean().describe("If set to true, members can add, update, and remove tabs.").nullish(),
3029
3029
  allowDeleteChannels: z.boolean().describe("If set to true, members can delete channels.").nullish()
3030
- }).passthrough();
3030
+ }).loose();
3031
3031
  const microsoft_graph_teamMessagingSettings = z.object({
3032
3032
  allowChannelMentions: z.boolean().describe("If set to true, @channel mentions are allowed.").nullish(),
3033
3033
  allowOwnerDeleteMessages: z.boolean().describe("If set to true, owners can delete any message.").nullish(),
3034
3034
  allowTeamMentions: z.boolean().describe("If set to true, @team mentions are allowed.").nullish(),
3035
3035
  allowUserDeleteMessages: z.boolean().describe("If set to true, users can delete their messages.").nullish(),
3036
3036
  allowUserEditMessages: z.boolean().describe("If set to true, users can edit their messages.").nullish()
3037
- }).passthrough();
3037
+ }).loose();
3038
3038
  const microsoft_graph_teamSpecialization = z.enum([
3039
3039
  "none",
3040
3040
  "educationStandard",
@@ -3049,7 +3049,7 @@ const microsoft_graph_teamSummary = z.object({
3049
3049
  guestsCount: z.number().gte(-2147483648).lte(2147483647).describe("Count of guests in a team.").nullish(),
3050
3050
  membersCount: z.number().gte(-2147483648).lte(2147483647).describe("Count of members in a team.").nullish(),
3051
3051
  ownersCount: z.number().gte(-2147483648).lte(2147483647).describe("Count of owners in a team.").nullish()
3052
- }).passthrough();
3052
+ }).loose();
3053
3053
  const microsoft_graph_teamVisibilityType = z.enum([
3054
3054
  "private",
3055
3055
  "public",
@@ -3068,7 +3068,7 @@ const microsoft_graph_channelSummary = z.object({
3068
3068
  hasMembersFromOtherTenants: z.boolean().describe("Indicates whether external members are included on the channel.").nullish(),
3069
3069
  membersCount: z.number().gte(-2147483648).lte(2147483647).describe("Count of members in a channel.").nullish(),
3070
3070
  ownersCount: z.number().gte(-2147483648).lte(2147483647).describe("Count of owners in a channel.").nullish()
3071
- }).passthrough();
3071
+ }).loose();
3072
3072
  const microsoft_graph_sharedWithChannelTeamInfo = z.lazy(
3073
3073
  () => z.object({
3074
3074
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -3077,7 +3077,7 @@ const microsoft_graph_sharedWithChannelTeamInfo = z.lazy(
3077
3077
  team: microsoft_graph_team.describe("[Note: Simplified from 30 properties to 25 most common ones]").optional(),
3078
3078
  isHostTeam: z.boolean().describe("Indicates whether the team is the host of the channel.").nullish(),
3079
3079
  allowedMembers: z.array(microsoft_graph_conversationMember).describe("A collection of team members who have access to the shared channel.").optional()
3080
- }).passthrough()
3080
+ }).loose()
3081
3081
  );
3082
3082
  const microsoft_graph_channel = z.lazy(
3083
3083
  () => z.object({
@@ -3118,12 +3118,12 @@ const microsoft_graph_channel = z.lazy(
3118
3118
  ).optional(),
3119
3119
  sharedWithTeams: z.array(microsoft_graph_sharedWithChannelTeamInfo).describe("A collection of teams with which a channel is shared.").optional(),
3120
3120
  tabs: z.array(microsoft_graph_teamsTab).describe("A collection of all the tabs in the channel. A navigation property.").optional()
3121
- }).passthrough()
3121
+ }).loose()
3122
3122
  );
3123
3123
  const microsoft_graph_operationError = z.object({
3124
3124
  code: z.string().describe("Operation error code.").nullish(),
3125
3125
  message: z.string().describe("Operation error message.").nullish()
3126
- }).passthrough();
3126
+ }).loose();
3127
3127
  const microsoft_graph_teamsAsyncOperationType = z.enum([
3128
3128
  "invalid",
3129
3129
  "cloneTeam",
@@ -3164,7 +3164,7 @@ const microsoft_graph_teamsAsyncOperation = z.object({
3164
3164
  targetResourceLocation: z.string().describe(
3165
3165
  "The location of the object that's created or modified as result of this async operation. This URL should be treated as an opaque value and not parsed into its component paths."
3166
3166
  ).nullish()
3167
- }).passthrough();
3167
+ }).loose();
3168
3168
  const microsoft_graph_team = z.lazy(
3169
3169
  () => z.object({
3170
3170
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -3202,13 +3202,13 @@ const microsoft_graph_team = z.lazy(
3202
3202
  members: z.array(microsoft_graph_conversationMember).describe("Members and owners of the team.").optional(),
3203
3203
  operations: z.array(microsoft_graph_teamsAsyncOperation).describe("The async operations that ran or are running on this team.").optional(),
3204
3204
  permissionGrants: z.array(microsoft_graph_resourceSpecificPermissionGrant).describe("A collection of permissions granted to apps to access the team.").optional()
3205
- }).passthrough().passthrough()
3205
+ }).loose().loose()
3206
3206
  );
3207
3207
  const microsoft_graph_teamCollectionResponse = z.object({
3208
3208
  "@odata.count": z.number().int().nullable(),
3209
3209
  "@odata.nextLink": z.string().nullable(),
3210
3210
  value: z.array(microsoft_graph_team)
3211
- }).partial().passthrough();
3211
+ }).partial().loose();
3212
3212
  const microsoft_graph_externalAudienceScope = z.enum(["none", "contactsOnly", "all"]);
3213
3213
  const microsoft_graph_automaticRepliesStatus = z.enum(["disabled", "alwaysEnabled", "scheduled"]);
3214
3214
  const microsoft_graph_automaticRepliesSetting = z.object({
@@ -3222,7 +3222,7 @@ const microsoft_graph_automaticRepliesSetting = z.object({
3222
3222
  scheduledEndDateTime: microsoft_graph_dateTimeTimeZone.optional(),
3223
3223
  scheduledStartDateTime: microsoft_graph_dateTimeTimeZone.optional(),
3224
3224
  status: microsoft_graph_automaticRepliesStatus.optional()
3225
- }).passthrough();
3225
+ }).loose();
3226
3226
  const microsoft_graph_delegateMeetingMessageDeliveryOptions = z.enum([
3227
3227
  "sendToDelegateAndInformationToPrincipal",
3228
3228
  "sendToDelegateAndPrincipal",
@@ -3235,7 +3235,7 @@ const microsoft_graph_localeInfo = z.object({
3235
3235
  locale: z.string().describe(
3236
3236
  "A locale representation for the user, which includes the user's preferred language and country/region. For example, 'en-us'. The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2."
3237
3237
  ).nullish()
3238
- }).passthrough();
3238
+ }).loose();
3239
3239
  const microsoft_graph_userPurpose = z.enum([
3240
3240
  "user",
3241
3241
  "linked",
@@ -3255,7 +3255,7 @@ const microsoft_graph_mailboxSettings = z.object({
3255
3255
  timeZone: z.string().describe("The default time zone for the user's mailbox.").nullish(),
3256
3256
  userPurpose: microsoft_graph_userPurpose.optional(),
3257
3257
  workingHours: microsoft_graph_workingHours.optional()
3258
- }).passthrough();
3258
+ }).loose();
3259
3259
  const microsoft_graph_messageRuleActions = z.object({
3260
3260
  assignCategories: z.array(z.string().nullable()).describe("A list of categories to be assigned to a message.").optional(),
3261
3261
  copyToFolder: z.string().describe("The ID of a folder that a message is to be copied to.").nullish(),
@@ -3272,7 +3272,7 @@ const microsoft_graph_messageRuleActions = z.object({
3272
3272
  ).nullish(),
3273
3273
  redirectTo: z.array(microsoft_graph_recipient).describe("The email addresses to which a message should be redirected.").optional(),
3274
3274
  stopProcessingRules: z.boolean().describe("Indicates whether subsequent rules should be evaluated.").nullish()
3275
- }).passthrough();
3275
+ }).loose();
3276
3276
  const microsoft_graph_messageActionFlag = z.enum([
3277
3277
  "any",
3278
3278
  "call",
@@ -3356,7 +3356,7 @@ const microsoft_graph_messageRulePredicates = z.object({
3356
3356
  sentOnlyToMe: z.boolean().describe(
3357
3357
  "Indicates whether the owner of the mailbox must be the only recipient in an incoming message in order for the condition or exception to apply."
3358
3358
  ).nullish()
3359
- }).passthrough().passthrough();
3359
+ }).loose().loose();
3360
3360
  const microsoft_graph_messageRule = z.object({
3361
3361
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
3362
3362
  actions: microsoft_graph_messageRuleActions.optional(),
@@ -3369,18 +3369,18 @@ const microsoft_graph_messageRule = z.object({
3369
3369
  "Indicates if the rule is read-only and cannot be modified or deleted by the rules REST API."
3370
3370
  ).nullish(),
3371
3371
  sequence: z.number().gte(-2147483648).lte(2147483647).describe("Indicates the order in which the rule is executed, among other rules.").nullish()
3372
- }).passthrough();
3372
+ }).loose();
3373
3373
  const microsoft_graph_followupFlagStatus = z.enum(["notFlagged", "complete", "flagged"]);
3374
3374
  const microsoft_graph_followupFlag = z.object({
3375
3375
  completedDateTime: microsoft_graph_dateTimeTimeZone.optional(),
3376
3376
  dueDateTime: microsoft_graph_dateTimeTimeZone.optional(),
3377
3377
  flagStatus: microsoft_graph_followupFlagStatus.optional(),
3378
3378
  startDateTime: microsoft_graph_dateTimeTimeZone.optional()
3379
- }).passthrough();
3379
+ }).loose();
3380
3380
  const microsoft_graph_internetMessageHeader = z.object({
3381
3381
  name: z.string().describe("Represents the key in a key-value pair.").nullish(),
3382
3382
  value: z.string().describe("The value in a key-value pair.").nullish()
3383
- }).passthrough();
3383
+ }).loose();
3384
3384
  const microsoft_graph_message = z.object({
3385
3385
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
3386
3386
  createdDateTime: z.string().regex(
@@ -3427,7 +3427,7 @@ const microsoft_graph_message = z.object({
3427
3427
  isDraft: z.boolean().describe(
3428
3428
  "Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet."
3429
3429
  ).nullish()
3430
- }).passthrough().passthrough();
3430
+ }).loose().loose();
3431
3431
  const microsoft_graph_mailFolder = z.lazy(
3432
3432
  () => z.object({
3433
3433
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -3448,41 +3448,41 @@ const microsoft_graph_mailFolder = z.lazy(
3448
3448
  singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
3449
3449
  "The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable."
3450
3450
  ).optional()
3451
- }).passthrough()
3451
+ }).loose()
3452
3452
  );
3453
3453
  const microsoft_graph_mailFolderCollectionResponse = z.object({
3454
3454
  "@odata.count": z.number().int().nullable(),
3455
3455
  "@odata.nextLink": z.string().nullable(),
3456
3456
  value: z.array(microsoft_graph_mailFolder)
3457
- }).partial().passthrough();
3457
+ }).partial().loose();
3458
3458
  const microsoft_graph_messageRuleCollectionResponse = z.object({
3459
3459
  "@odata.count": z.number().int().nullable(),
3460
3460
  "@odata.nextLink": z.string().nullable(),
3461
3461
  value: z.array(microsoft_graph_messageRule)
3462
- }).partial().passthrough();
3462
+ }).partial().loose();
3463
3463
  const microsoft_graph_messageCollectionResponse = z.object({
3464
3464
  "@odata.count": z.number().int().nullable(),
3465
3465
  "@odata.nextLink": z.string().nullable(),
3466
3466
  value: z.array(microsoft_graph_message)
3467
- }).partial().passthrough();
3467
+ }).partial().loose();
3468
3468
  const microsoft_graph_attachmentCollectionResponse = z.object({
3469
3469
  "@odata.count": z.number().int().nullable(),
3470
3470
  "@odata.nextLink": z.string().nullable(),
3471
3471
  value: z.array(microsoft_graph_attachment)
3472
- }).partial().passthrough();
3472
+ }).partial().loose();
3473
3473
  const create_forward_draft_Body = z.object({
3474
3474
  ToRecipients: z.array(microsoft_graph_recipient),
3475
- Message: z.union([microsoft_graph_message, z.object({}).partial().passthrough()]),
3475
+ Message: z.union([microsoft_graph_message, z.object({}).partial().loose()]),
3476
3476
  Comment: z.string().nullable()
3477
- }).partial().passthrough();
3477
+ }).partial().loose();
3478
3478
  const create_reply_draft_Body = z.object({
3479
- Message: z.union([microsoft_graph_message, z.object({}).partial().passthrough()]),
3479
+ Message: z.union([microsoft_graph_message, z.object({}).partial().loose()]),
3480
3480
  Comment: z.string().nullable()
3481
- }).partial().passthrough();
3481
+ }).partial().loose();
3482
3482
  const microsoft_graph_attendeeBase = z.object({
3483
3483
  emailAddress: microsoft_graph_emailAddress.optional(),
3484
3484
  type: microsoft_graph_attendeeType.optional()
3485
- }).passthrough();
3485
+ }).loose();
3486
3486
  const microsoft_graph_locationConstraintItem = z.object({
3487
3487
  address: microsoft_graph_physicalAddress.optional(),
3488
3488
  coordinates: microsoft_graph_outlookGeoCoordinates.optional(),
@@ -3495,7 +3495,7 @@ const microsoft_graph_locationConstraintItem = z.object({
3495
3495
  resolveAvailability: z.boolean().describe(
3496
3496
  "If set to true and the specified resource is busy, findMeetingTimes looks for another resource that is free. If set to false and the specified resource is busy, findMeetingTimes returns the resource best ranked in the user's cache without checking if it's free. Default is true."
3497
3497
  ).nullish()
3498
- }).passthrough();
3498
+ }).loose();
3499
3499
  const microsoft_graph_locationConstraint = z.object({
3500
3500
  isRequired: z.boolean().describe(
3501
3501
  "The client requests the service to include in the response a meeting location for the meeting. If this is true and all the resources are busy, findMeetingTimes won't return any meeting time suggestions. If this is false and all the resources are busy, findMeetingTimes would still look for meeting times without locations."
@@ -3504,25 +3504,25 @@ const microsoft_graph_locationConstraint = z.object({
3504
3504
  "Constraint information for one or more locations that the client requests for the meeting."
3505
3505
  ).optional(),
3506
3506
  suggestLocation: z.boolean().describe("The client requests the service to suggest one or more meeting locations.").nullish()
3507
- }).passthrough();
3507
+ }).loose();
3508
3508
  const microsoft_graph_activityDomain = z.enum(["unknown", "work", "personal", "unrestricted"]);
3509
3509
  const microsoft_graph_timeConstraint = z.object({
3510
3510
  activityDomain: microsoft_graph_activityDomain.optional(),
3511
3511
  timeSlots: z.array(microsoft_graph_timeSlot).optional()
3512
- }).passthrough();
3512
+ }).loose();
3513
3513
  const find_meeting_times_Body = z.object({
3514
3514
  attendees: z.array(microsoft_graph_attendeeBase),
3515
3515
  locationConstraint: z.union([
3516
3516
  microsoft_graph_locationConstraint,
3517
- z.object({}).partial().passthrough()
3517
+ z.object({}).partial().loose()
3518
3518
  ]),
3519
- timeConstraint: z.union([microsoft_graph_timeConstraint, z.object({}).partial().passthrough()]),
3519
+ timeConstraint: z.union([microsoft_graph_timeConstraint, z.object({}).partial().loose()]),
3520
3520
  meetingDuration: z.string().regex(/^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$/).nullable(),
3521
3521
  maxCandidates: z.number().gte(-2147483648).lte(2147483647).nullable(),
3522
- isOrganizerOptional: z.boolean().nullable().default(false),
3523
- returnSuggestionReasons: z.boolean().nullable().default(false),
3522
+ isOrganizerOptional: z.boolean().nullable().meta({ default: false }),
3523
+ returnSuggestionReasons: z.boolean().nullable().meta({ default: false }),
3524
3524
  minimumAttendeePercentage: z.union([z.number(), z.string(), ReferenceNumeric])
3525
- }).partial().passthrough();
3525
+ }).partial().loose();
3526
3526
  const microsoft_graph_mailTipsType = z.enum([
3527
3527
  "automaticReplies",
3528
3528
  "mailboxFullStatus",
@@ -3537,28 +3537,28 @@ const microsoft_graph_mailTipsType = z.enum([
3537
3537
  ]);
3538
3538
  const get_mail_tips_Body = z.object({
3539
3539
  EmailAddresses: z.array(z.string()),
3540
- MailTipsOptions: z.union([microsoft_graph_mailTipsType, z.object({}).partial().passthrough()])
3541
- }).partial().passthrough();
3540
+ MailTipsOptions: z.union([microsoft_graph_mailTipsType, z.object({}).partial().loose()])
3541
+ }).partial().loose();
3542
3542
  const send_mail_Body = z.object({
3543
3543
  Message: microsoft_graph_message.describe(
3544
3544
  "[Note: Simplified from 35 properties to 25 most common ones]"
3545
3545
  ),
3546
- SaveToSentItems: z.boolean().nullable().default(false)
3547
- }).partial().passthrough();
3548
- const microsoft_graph_externalLink = z.object({ href: z.string().describe("The URL of the link.").nullish() }).passthrough();
3546
+ SaveToSentItems: z.boolean().nullable().meta({ default: false })
3547
+ }).partial().loose();
3548
+ const microsoft_graph_externalLink = z.object({ href: z.string().describe("The URL of the link.").nullish() }).loose();
3549
3549
  const microsoft_graph_notebookLinks = z.object({
3550
3550
  oneNoteClientUrl: microsoft_graph_externalLink.optional(),
3551
3551
  oneNoteWebUrl: microsoft_graph_externalLink.optional()
3552
- }).passthrough();
3552
+ }).loose();
3553
3553
  const microsoft_graph_onenoteUserRole = z.enum(["None", "Owner", "Contributor", "Reader"]);
3554
3554
  const microsoft_graph_sectionLinks = z.object({
3555
3555
  oneNoteClientUrl: microsoft_graph_externalLink.optional(),
3556
3556
  oneNoteWebUrl: microsoft_graph_externalLink.optional()
3557
- }).passthrough();
3557
+ }).loose();
3558
3558
  const microsoft_graph_pageLinks = z.object({
3559
3559
  oneNoteClientUrl: microsoft_graph_externalLink.optional(),
3560
3560
  oneNoteWebUrl: microsoft_graph_externalLink.optional()
3561
- }).passthrough();
3561
+ }).loose();
3562
3562
  const microsoft_graph_onenotePage = z.lazy(
3563
3563
  () => z.object({
3564
3564
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
@@ -3583,7 +3583,7 @@ const microsoft_graph_onenotePage = z.lazy(
3583
3583
  userTags: z.array(z.string().nullable()).optional(),
3584
3584
  parentNotebook: microsoft_graph_notebook.optional(),
3585
3585
  parentSection: microsoft_graph_onenoteSection.optional()
3586
- }).passthrough()
3586
+ }).loose()
3587
3587
  );
3588
3588
  const microsoft_graph_onenoteSection = z.lazy(
3589
3589
  () => z.object({
@@ -3610,7 +3610,7 @@ const microsoft_graph_onenoteSection = z.lazy(
3610
3610
  pages: z.array(microsoft_graph_onenotePage).describe("The collection of pages in the section. Read-only. Nullable.").optional(),
3611
3611
  parentNotebook: microsoft_graph_notebook.optional(),
3612
3612
  parentSectionGroup: microsoft_graph_sectionGroup.optional()
3613
- }).passthrough()
3613
+ }).loose()
3614
3614
  );
3615
3615
  const microsoft_graph_sectionGroup = z.lazy(
3616
3616
  () => z.object({
@@ -3639,7 +3639,7 @@ const microsoft_graph_sectionGroup = z.lazy(
3639
3639
  parentSectionGroup: microsoft_graph_sectionGroup.optional(),
3640
3640
  sectionGroups: z.array(microsoft_graph_sectionGroup).describe("The section groups in the section. Read-only. Nullable.").optional(),
3641
3641
  sections: z.array(microsoft_graph_onenoteSection).describe("The sections in the section group. Read-only. Nullable.").optional()
3642
- }).passthrough()
3642
+ }).loose()
3643
3643
  );
3644
3644
  const microsoft_graph_notebook = z.lazy(
3645
3645
  () => z.object({
@@ -3672,18 +3672,18 @@ const microsoft_graph_notebook = z.lazy(
3672
3672
  userRole: microsoft_graph_onenoteUserRole.optional(),
3673
3673
  sectionGroups: z.array(microsoft_graph_sectionGroup).describe("The section groups in the notebook. Read-only. Nullable.").optional(),
3674
3674
  sections: z.array(microsoft_graph_onenoteSection).describe("The sections in the notebook. Read-only. Nullable.").optional()
3675
- }).passthrough()
3675
+ }).loose()
3676
3676
  );
3677
3677
  const microsoft_graph_notebookCollectionResponse = z.object({
3678
3678
  "@odata.count": z.number().int().nullable(),
3679
3679
  "@odata.nextLink": z.string().nullable(),
3680
3680
  value: z.array(microsoft_graph_notebook)
3681
- }).partial().passthrough();
3681
+ }).partial().loose();
3682
3682
  const microsoft_graph_onenoteSectionCollectionResponse = z.object({
3683
3683
  "@odata.count": z.number().int().nullable(),
3684
3684
  "@odata.nextLink": z.string().nullable(),
3685
3685
  value: z.array(microsoft_graph_onenoteSection)
3686
- }).partial().passthrough();
3686
+ }).partial().loose();
3687
3687
  const microsoft_graph_CopyNotebookModel = z.object({
3688
3688
  createdBy: z.string().nullish(),
3689
3689
  createdByIdentity: microsoft_graph_identitySet.optional(),
@@ -3704,17 +3704,29 @@ const microsoft_graph_CopyNotebookModel = z.object({
3704
3704
  sectionsUrl: z.string().nullish(),
3705
3705
  self: z.string().nullish(),
3706
3706
  userRole: microsoft_graph_onenoteUserRole.optional()
3707
- }).passthrough();
3707
+ }).loose();
3708
3708
  const microsoft_graph_onenotePageCollectionResponse = z.object({
3709
3709
  "@odata.count": z.number().int().nullable(),
3710
3710
  "@odata.nextLink": z.string().nullable(),
3711
3711
  value: z.array(microsoft_graph_onenotePage)
3712
- }).partial().passthrough();
3712
+ }).partial().loose();
3713
+ const update_onenote_page_content_Body = z.array(
3714
+ z.object({
3715
+ target: z.string().describe(
3716
+ "Element to change: a data-id, the generated id, or a known name like 'body' or 'title'."
3717
+ ),
3718
+ action: z.enum(["append", "insert", "prepend", "replace", "delete"]).describe("What to do at the target. 'delete' takes no content."),
3719
+ position: z.enum(["after", "before"]).describe(
3720
+ "For 'insert'/'append', whether content goes after (default) or before the target's content."
3721
+ ).optional(),
3722
+ content: z.string().describe("HTML to add. Required for all actions except 'delete'.").optional()
3723
+ }).loose()
3724
+ );
3713
3725
  const microsoft_graph_sectionGroupCollectionResponse = z.object({
3714
3726
  "@odata.count": z.number().int().nullable(),
3715
3727
  "@odata.nextLink": z.string().nullable(),
3716
3728
  value: z.array(microsoft_graph_sectionGroup)
3717
- }).partial().passthrough();
3729
+ }).partial().loose();
3718
3730
  const microsoft_graph_allowedLobbyAdmitterRoles = z.enum([
3719
3731
  "organizerAndCoOrganizersAndPresenters",
3720
3732
  "organizerAndCoOrganizers",
@@ -3745,29 +3757,29 @@ const microsoft_graph_audioConferencing = z.object({
3745
3757
  tollFreeNumbers: z.array(z.string().nullable()).describe("List of toll-free numbers that are displayed in the meeting invite.").optional(),
3746
3758
  tollNumber: z.string().describe("The toll number that connects to the Audio Conference Provider.").nullish(),
3747
3759
  tollNumbers: z.array(z.string().nullable()).describe("List of toll numbers that are displayed in the meeting invite.").optional()
3748
- }).passthrough();
3760
+ }).loose();
3749
3761
  const microsoft_graph_chatInfo = z.object({
3750
3762
  messageId: z.string().describe("The unique identifier of a message in a Microsoft Teams channel.").nullish(),
3751
3763
  replyChainMessageId: z.string().describe("The ID of the reply message.").nullish(),
3752
3764
  threadId: z.string().describe("The unique identifier for a thread in Microsoft Teams.").nullish()
3753
- }).passthrough();
3765
+ }).loose();
3754
3766
  const microsoft_graph_chatRestrictions = z.object({
3755
3767
  allowTextOnly: z.boolean().describe("Indicates whether only text is allowed in the meeting chat. Optional.").nullish()
3756
- }).passthrough();
3768
+ }).loose();
3757
3769
  const microsoft_graph_cloudVideoInteropInfo = z.object({
3758
3770
  moreInfoWebUrl: z.string().describe("Provides other video teleconferencing (VTC) dial-in options. Read-only.").nullish(),
3759
3771
  tenantKey: z.string().describe(
3760
3772
  "The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service."
3761
3773
  ).nullish(),
3762
3774
  videoTeleconferenceId: z.string().describe("The video teleconferencing ID. Read-only.").nullish()
3763
- }).passthrough();
3775
+ }).loose();
3764
3776
  const microsoft_graph_joinMeetingIdSettings = z.object({
3765
3777
  isPasscodeRequired: z.boolean().describe(
3766
3778
  "Indicates whether a passcode is required to join a meeting when using joinMeetingId. Optional."
3767
3779
  ).nullish(),
3768
3780
  joinMeetingId: z.string().describe("The meeting ID to be used to join a meeting. Optional. Read-only.").nullish(),
3769
3781
  passcode: z.string().describe("The passcode to join a meeting. Optional. Read-only.").nullish()
3770
- }).passthrough();
3782
+ }).loose();
3771
3783
  const microsoft_graph_onlineMeeting = z.object({
3772
3784
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
3773
3785
  subject: z.string().describe("The subject of the online meeting.").nullish(),
@@ -3802,18 +3814,18 @@ const microsoft_graph_onlineMeeting = z.object({
3802
3814
  isEntryExitAnnounced: z.boolean().describe("Indicates whether to announce when callers join or leave.").nullish(),
3803
3815
  joinInformation: microsoft_graph_itemBody.optional(),
3804
3816
  joinMeetingIdSettings: microsoft_graph_joinMeetingIdSettings.optional()
3805
- }).passthrough().passthrough();
3817
+ }).loose().loose();
3806
3818
  const microsoft_graph_onlineMeetingCollectionResponse = z.object({
3807
3819
  "@odata.count": z.number().int().nullable(),
3808
3820
  "@odata.nextLink": z.string().nullable(),
3809
3821
  value: z.array(microsoft_graph_onlineMeeting)
3810
- }).partial().passthrough();
3822
+ }).partial().loose();
3811
3823
  const microsoft_graph_virtualEventExternalInformation = z.object({
3812
3824
  applicationId: z.string().describe("Identifier of the application that hosts the externalEventId. Read-only.").nullish(),
3813
3825
  externalEventId: z.string().describe(
3814
3826
  "The identifier for a virtualEventExternalInformation object that associates the virtual event with an event ID in an external application. This association bundles all the information (both supported and not supported in virtualEvent) into one virtual event object. Optional. If set, the maximum supported length is 256 characters."
3815
3827
  ).nullish()
3816
- }).passthrough();
3828
+ }).loose();
3817
3829
  const microsoft_graph_attendanceInterval = z.object({
3818
3830
  durationInSeconds: z.number().gte(-2147483648).lte(2147483647).describe(
3819
3831
  "Duration of the meeting interval in seconds; that is, the difference between joinDateTime and leaveDateTime."
@@ -3824,7 +3836,7 @@ const microsoft_graph_attendanceInterval = z.object({
3824
3836
  leaveDateTime: z.string().regex(
3825
3837
  /^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$/
3826
3838
  ).datetime({ offset: true }).describe("The time the attendee left in UTC.").nullish()
3827
- }).passthrough();
3839
+ }).loose();
3828
3840
  const microsoft_graph_virtualEventExternalRegistrationInformation = z.object({
3829
3841
  referrer: z.string().describe(
3830
3842
  "A URL or string that represents the location from which the registrant registered. Optional."
@@ -3832,7 +3844,7 @@ const microsoft_graph_virtualEventExternalRegistrationInformation = z.object({
3832
3844
  registrationId: z.string().describe(
3833
3845
  "The identifier for a virtualEventExternalRegistrationInformation object. Optional. If set, the maximum supported length is 256 characters."
3834
3846
  ).nullish()
3835
- }).passthrough();
3847
+ }).loose();
3836
3848
  const microsoft_graph_attendanceRecord = z.object({
3837
3849
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
3838
3850
  attendanceIntervals: z.array(microsoft_graph_attendanceInterval).describe("List of time periods between joining and leaving a meeting.").optional(),
@@ -3846,7 +3858,7 @@ const microsoft_graph_attendanceRecord = z.object({
3846
3858
  "Role of the attendee. The possible values are: None, Attendee, Presenter, and Organizer."
3847
3859
  ).nullish(),
3848
3860
  totalAttendanceInSeconds: z.number().gte(-2147483648).lte(2147483647).describe("Total duration of the attendances in seconds.").nullish()
3849
- }).passthrough();
3861
+ }).loose();
3850
3862
  const microsoft_graph_meetingAttendanceReport = z.object({
3851
3863
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
3852
3864
  externalEventInformation: z.array(microsoft_graph_virtualEventExternalInformation).describe(
@@ -3860,17 +3872,17 @@ const microsoft_graph_meetingAttendanceReport = z.object({
3860
3872
  ).datetime({ offset: true }).describe("UTC time when the meeting started. Read-only.").nullish(),
3861
3873
  totalParticipantCount: z.number().gte(-2147483648).lte(2147483647).describe("Total number of participants. Read-only.").nullish(),
3862
3874
  attendanceRecords: z.array(microsoft_graph_attendanceRecord).describe("List of attendance records of an attendance report. Read-only.").optional()
3863
- }).passthrough();
3875
+ }).loose();
3864
3876
  const microsoft_graph_meetingAttendanceReportCollectionResponse = z.object({
3865
3877
  "@odata.count": z.number().int().nullable(),
3866
3878
  "@odata.nextLink": z.string().nullable(),
3867
3879
  value: z.array(microsoft_graph_meetingAttendanceReport)
3868
- }).partial().passthrough();
3880
+ }).partial().loose();
3869
3881
  const microsoft_graph_attendanceRecordCollectionResponse = z.object({
3870
3882
  "@odata.count": z.number().int().nullable(),
3871
3883
  "@odata.nextLink": z.string().nullable(),
3872
3884
  value: z.array(microsoft_graph_attendanceRecord)
3873
- }).partial().passthrough();
3885
+ }).partial().loose();
3874
3886
  const microsoft_graph_callRecording = z.object({
3875
3887
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
3876
3888
  callId: z.string().describe("The unique identifier for the call that is related to this recording. Read-only.").nullish(),
@@ -3891,12 +3903,12 @@ const microsoft_graph_callRecording = z.object({
3891
3903
  meetingId: z.string().describe("The unique identifier of the onlineMeeting related to this recording. Read-only.").nullish(),
3892
3904
  meetingOrganizer: microsoft_graph_identitySet.optional(),
3893
3905
  recordingContentUrl: z.string().describe("The URL that can be used to access the content of the recording. Read-only.").nullish()
3894
- }).passthrough();
3906
+ }).loose();
3895
3907
  const microsoft_graph_callRecordingCollectionResponse = z.object({
3896
3908
  "@odata.count": z.number().int().nullable(),
3897
3909
  "@odata.nextLink": z.string().nullable(),
3898
3910
  value: z.array(microsoft_graph_callRecording)
3899
- }).partial().passthrough();
3911
+ }).partial().loose();
3900
3912
  const microsoft_graph_callTranscript = z.object({
3901
3913
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
3902
3914
  callId: z.string().describe("The unique identifier for the call that is related to this transcript. Read-only.").nullish(),
@@ -3920,12 +3932,12 @@ const microsoft_graph_callTranscript = z.object({
3920
3932
  meetingOrganizer: microsoft_graph_identitySet.optional(),
3921
3933
  metadataContent: z.string().describe("The time-aligned metadata of the utterances in the transcript. Read-only.").nullish(),
3922
3934
  transcriptContentUrl: z.string().describe("The URL that can be used to access the content of the transcript. Read-only.").nullish()
3923
- }).passthrough();
3935
+ }).loose();
3924
3936
  const microsoft_graph_callTranscriptCollectionResponse = z.object({
3925
3937
  "@odata.count": z.number().int().nullable(),
3926
3938
  "@odata.nextLink": z.string().nullable(),
3927
3939
  value: z.array(microsoft_graph_callTranscript)
3928
- }).partial().passthrough();
3940
+ }).partial().loose();
3929
3941
  const microsoft_graph_categoryColor = z.enum([
3930
3942
  "none",
3931
3943
  "preset0",
@@ -3960,20 +3972,20 @@ const microsoft_graph_outlookCategory = z.object({
3960
3972
  displayName: z.string().describe(
3961
3973
  "A unique name that identifies a category in the user's mailbox. After a category is created, the name cannot be changed. Read-only."
3962
3974
  ).nullish()
3963
- }).passthrough();
3975
+ }).loose();
3964
3976
  const microsoft_graph_outlookCategoryCollectionResponse = z.object({
3965
3977
  "@odata.count": z.number().int().nullable(),
3966
3978
  "@odata.nextLink": z.string().nullable(),
3967
3979
  value: z.array(microsoft_graph_outlookCategory)
3968
- }).partial().passthrough();
3980
+ }).partial().loose();
3969
3981
  const microsoft_graph_timeZoneInformation = z.object({
3970
3982
  alias: z.string().describe("An identifier for the time zone.").nullish(),
3971
3983
  displayName: z.string().describe("A display string that represents the time zone.").nullish()
3972
- }).passthrough();
3984
+ }).loose();
3973
3985
  const microsoft_graph_personType = z.object({
3974
3986
  class: z.string().describe("The type of data source, such as Person.").nullish(),
3975
3987
  subclass: z.string().describe("The secondary type of data source, such as OrganizationUser.").nullish()
3976
- }).passthrough();
3988
+ }).loose();
3977
3989
  const microsoft_graph_phoneType = z.enum([
3978
3990
  "home",
3979
3991
  "business",
@@ -3991,7 +4003,7 @@ const microsoft_graph_phone = z.object({
3991
4003
  number: z.string().describe("The phone number.").nullish(),
3992
4004
  region: z.string().nullish(),
3993
4005
  type: microsoft_graph_phoneType.optional()
3994
- }).passthrough();
4006
+ }).loose();
3995
4007
  const microsoft_graph_selectionLikelihoodInfo = z.enum(["notSpecified", "high"]);
3996
4008
  const microsoft_graph_scoredEmailAddress = z.object({
3997
4009
  address: z.string().describe("The email address.").nullish(),
@@ -4000,13 +4012,13 @@ const microsoft_graph_scoredEmailAddress = z.object({
4000
4012
  "The relevance score of the email address. A relevance score is used as a sort key, in relation to the other returned results. A higher relevance score value corresponds to a more relevant result. Relevance is determined by the user\u2019s communication and collaboration patterns and business relationships. [Simplified from 3 options]"
4001
4013
  ).nullish(),
4002
4014
  selectionLikelihood: microsoft_graph_selectionLikelihoodInfo.optional()
4003
- }).passthrough();
4015
+ }).loose();
4004
4016
  const microsoft_graph_websiteType = z.enum(["other", "home", "work", "blog", "profile"]);
4005
4017
  const microsoft_graph_website = z.object({
4006
4018
  address: z.string().describe("The URL of the website.").nullish(),
4007
4019
  displayName: z.string().describe("The display name of the web site.").nullish(),
4008
4020
  type: microsoft_graph_websiteType.optional()
4009
- }).passthrough();
4021
+ }).loose();
4010
4022
  const microsoft_graph_person = z.object({
4011
4023
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4012
4024
  birthday: z.string().describe("The person's birthday.").nullish(),
@@ -4032,57 +4044,57 @@ const microsoft_graph_person = z.object({
4032
4044
  ).nullish(),
4033
4045
  websites: z.array(microsoft_graph_website).describe("The person's websites.").optional(),
4034
4046
  yomiCompany: z.string().describe("The phonetic Japanese name of the person's company.").nullish()
4035
- }).passthrough();
4047
+ }).loose();
4036
4048
  const microsoft_graph_personCollectionResponse = z.object({
4037
4049
  "@odata.count": z.number().int().nullable(),
4038
4050
  "@odata.nextLink": z.string().nullable(),
4039
4051
  value: z.array(microsoft_graph_person)
4040
- }).partial().passthrough();
4052
+ }).partial().loose();
4041
4053
  const microsoft_graph_plannerTaskCollectionResponse = z.object({
4042
4054
  "@odata.count": z.number().int().nullable(),
4043
4055
  "@odata.nextLink": z.string().nullable(),
4044
4056
  value: z.array(microsoft_graph_plannerTask)
4045
- }).partial().passthrough();
4057
+ }).partial().loose();
4046
4058
  const set_my_presence_Body = z.object({
4047
4059
  sessionId: z.string().nullable(),
4048
4060
  availability: z.string(),
4049
4061
  activity: z.string(),
4050
4062
  expirationDuration: z.string().regex(/^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$/).nullable()
4051
- }).partial().passthrough();
4063
+ }).partial().loose();
4052
4064
  const set_my_status_message_Body = z.object({
4053
4065
  statusMessage: z.union([
4054
4066
  microsoft_graph_presenceStatusMessage,
4055
- z.object({}).partial().passthrough()
4067
+ z.object({}).partial().loose()
4056
4068
  ])
4057
- }).partial().passthrough();
4069
+ }).partial().loose();
4058
4070
  const set_my_user_preferred_presence_Body = z.object({
4059
4071
  availability: z.string(),
4060
4072
  activity: z.string(),
4061
4073
  expirationDuration: z.string().regex(/^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$/).nullable()
4062
- }).partial().passthrough();
4074
+ }).partial().loose();
4063
4075
  const microsoft_graph_associatedTeamInfo = z.object({
4064
4076
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4065
4077
  displayName: z.string().describe("The name of the team.").nullish(),
4066
4078
  tenantId: z.string().describe("The ID of the Microsoft Entra tenant.").nullish(),
4067
4079
  team: microsoft_graph_team.describe("[Note: Simplified from 30 properties to 25 most common ones]").optional()
4068
- }).passthrough();
4080
+ }).loose();
4069
4081
  const microsoft_graph_associatedTeamInfoCollectionResponse = z.object({
4070
4082
  "@odata.count": z.number().int().nullable(),
4071
4083
  "@odata.nextLink": z.string().nullable(),
4072
4084
  value: z.array(microsoft_graph_associatedTeamInfo)
4073
- }).partial().passthrough();
4085
+ }).partial().loose();
4074
4086
  const microsoft_graph_userScopeTeamsAppInstallation = z.object({
4075
4087
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4076
4088
  consentedPermissionSet: microsoft_graph_teamsAppPermissionSet.optional(),
4077
4089
  teamsApp: microsoft_graph_teamsApp.optional(),
4078
4090
  teamsAppDefinition: microsoft_graph_teamsAppDefinition.optional(),
4079
4091
  chat: microsoft_graph_chat.optional()
4080
- }).passthrough();
4092
+ }).loose();
4081
4093
  const microsoft_graph_userScopeTeamsAppInstallationCollectionResponse = z.object({
4082
4094
  "@odata.count": z.number().int().nullable(),
4083
4095
  "@odata.nextLink": z.string().nullable(),
4084
4096
  value: z.array(microsoft_graph_userScopeTeamsAppInstallation)
4085
- }).partial().passthrough();
4097
+ }).partial().loose();
4086
4098
  const microsoft_graph_teamworkActivityTopicSource = z.enum(["entityUrl", "text"]);
4087
4099
  const microsoft_graph_teamworkActivityTopic = z.object({
4088
4100
  source: microsoft_graph_teamworkActivityTopicSource.optional(),
@@ -4092,20 +4104,20 @@ const microsoft_graph_teamworkActivityTopic = z.object({
4092
4104
  webUrl: z.string().describe(
4093
4105
  "The link the user clicks when they select the notification. Optional when source is entityUrl; required when source is text."
4094
4106
  ).nullish()
4095
- }).passthrough();
4107
+ }).loose();
4096
4108
  const microsoft_graph_keyValuePair = z.object({
4097
4109
  name: z.string().describe("Name for this key-value pair").optional(),
4098
4110
  value: z.string().describe("Value for this key-value pair").nullish()
4099
- }).passthrough();
4111
+ }).loose();
4100
4112
  const send_my_activity_notification_Body = z.object({
4101
- topic: z.union([microsoft_graph_teamworkActivityTopic, z.object({}).partial().passthrough()]),
4113
+ topic: z.union([microsoft_graph_teamworkActivityTopic, z.object({}).partial().loose()]),
4102
4114
  activityType: z.string().nullable(),
4103
4115
  chainId: z.number().nullable(),
4104
- previewText: z.union([microsoft_graph_itemBody, z.object({}).partial().passthrough()]),
4116
+ previewText: z.union([microsoft_graph_itemBody, z.object({}).partial().loose()]),
4105
4117
  teamsAppId: z.string().nullable(),
4106
4118
  templateParameters: z.array(microsoft_graph_keyValuePair),
4107
4119
  iconId: z.string().nullable()
4108
- }).partial().passthrough();
4120
+ }).partial().loose();
4109
4121
  const microsoft_graph_wellknownListName = z.enum([
4110
4122
  "none",
4111
4123
  "defaultList",
@@ -4129,7 +4141,7 @@ const microsoft_graph_attachmentBase = z.object({
4129
4141
  ).nullish(),
4130
4142
  name: z.string().describe("The display name of the attachment. This doesn't need to be the actual file name.").nullish(),
4131
4143
  size: z.number().gte(-2147483648).lte(2147483647).describe("The length of the attachment in bytes.").optional()
4132
- }).passthrough();
4144
+ }).loose();
4133
4145
  const microsoft_graph_attachmentSession = z.object({
4134
4146
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4135
4147
  content: z.string().describe("The content streams that are uploaded.").nullish(),
@@ -4141,7 +4153,7 @@ const microsoft_graph_attachmentSession = z.object({
4141
4153
  nextExpectedRanges: z.array(z.string().nullable()).describe(
4142
4154
  "Indicates a single value {start} that represents the location in the file where the next upload should begin."
4143
4155
  ).optional()
4144
- }).passthrough();
4156
+ }).loose();
4145
4157
  const microsoft_graph_checklistItem = z.object({
4146
4158
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4147
4159
  checkedDateTime: z.string().regex(
@@ -4152,7 +4164,7 @@ const microsoft_graph_checklistItem = z.object({
4152
4164
  ).datetime({ offset: true }).describe("The date and time when the checklistItem was created.").optional(),
4153
4165
  displayName: z.string().describe("Indicates the title of the checklistItem.").nullish(),
4154
4166
  isChecked: z.boolean().describe("State that indicates whether the item is checked off or not.").nullish()
4155
- }).passthrough();
4167
+ }).loose();
4156
4168
  const microsoft_graph_linkedResource = z.object({
4157
4169
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4158
4170
  applicationName: z.string().describe("The app name of the source that sends the linkedResource.").nullish(),
@@ -4161,7 +4173,7 @@ const microsoft_graph_linkedResource = z.object({
4161
4173
  "ID of the object that is associated with this task on the third-party/partner system."
4162
4174
  ).nullish(),
4163
4175
  webUrl: z.string().describe("Deep link to the linkedResource.").nullish()
4164
- }).passthrough();
4176
+ }).loose();
4165
4177
  const microsoft_graph_todoTask = z.object({
4166
4178
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4167
4179
  body: microsoft_graph_itemBody.optional(),
@@ -4198,7 +4210,7 @@ const microsoft_graph_todoTask = z.object({
4198
4210
  checklistItems: z.array(microsoft_graph_checklistItem).describe("A collection of checklistItems linked to a task.").optional(),
4199
4211
  extensions: z.array(microsoft_graph_extension).describe("The collection of open extensions defined for the task. Nullable.").optional(),
4200
4212
  linkedResources: z.array(microsoft_graph_linkedResource).describe("A collection of resources linked to the task.").optional()
4201
- }).passthrough();
4213
+ }).loose();
4202
4214
  const microsoft_graph_todoTaskList = z.object({
4203
4215
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4204
4216
  displayName: z.string().describe("The name of the task list.").nullish(),
@@ -4207,27 +4219,27 @@ const microsoft_graph_todoTaskList = z.object({
4207
4219
  wellknownListName: microsoft_graph_wellknownListName.optional(),
4208
4220
  extensions: z.array(microsoft_graph_extension).describe("The collection of open extensions defined for the task list. Nullable.").optional(),
4209
4221
  tasks: z.array(microsoft_graph_todoTask).describe("The tasks in this task list. Read-only. Nullable.").optional()
4210
- }).passthrough();
4222
+ }).loose();
4211
4223
  const microsoft_graph_todoTaskListCollectionResponse = z.object({
4212
4224
  "@odata.count": z.number().int().nullable(),
4213
4225
  "@odata.nextLink": z.string().nullable(),
4214
4226
  value: z.array(microsoft_graph_todoTaskList)
4215
- }).partial().passthrough();
4227
+ }).partial().loose();
4216
4228
  const microsoft_graph_todoTaskCollectionResponse = z.object({
4217
4229
  "@odata.count": z.number().int().nullable(),
4218
4230
  "@odata.nextLink": z.string().nullable(),
4219
4231
  value: z.array(microsoft_graph_todoTask)
4220
- }).partial().passthrough();
4232
+ }).partial().loose();
4221
4233
  const microsoft_graph_checklistItemCollectionResponse = z.object({
4222
4234
  "@odata.count": z.number().int().nullable(),
4223
4235
  "@odata.nextLink": z.string().nullable(),
4224
4236
  value: z.array(microsoft_graph_checklistItem)
4225
- }).partial().passthrough();
4237
+ }).partial().loose();
4226
4238
  const microsoft_graph_linkedResourceCollectionResponse = z.object({
4227
4239
  "@odata.count": z.number().int().nullable(),
4228
4240
  "@odata.nextLink": z.string().nullable(),
4229
4241
  value: z.array(microsoft_graph_linkedResource)
4230
- }).partial().passthrough();
4242
+ }).partial().loose();
4231
4243
  const microsoft_graph_checkInMethod = z.enum([
4232
4244
  "unspecified",
4233
4245
  "manual",
@@ -4245,7 +4257,7 @@ const microsoft_graph_checkInClaim = z.object({
4245
4257
  ).datetime({ offset: true }).describe(
4246
4258
  "The date and time when the checkInClaim object was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z."
4247
4259
  ).nullish()
4248
- }).passthrough();
4260
+ }).loose();
4249
4261
  const microsoft_graph_place = z.object({
4250
4262
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4251
4263
  address: microsoft_graph_physicalAddress.optional(),
@@ -4260,7 +4272,7 @@ const microsoft_graph_place = z.object({
4260
4272
  checkIns: z.array(microsoft_graph_checkInClaim).describe(
4261
4273
  "A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place."
4262
4274
  ).optional()
4263
- }).passthrough();
4275
+ }).loose();
4264
4276
  const microsoft_graph_bookingType = z.enum(["unknown", "standard", "reserved"]);
4265
4277
  const microsoft_graph_placeFeatureEnablement = z.enum([
4266
4278
  "unknown",
@@ -4293,8 +4305,8 @@ const microsoft_graph_room = z.object({
4293
4305
  nickname: z.string().describe("Specifies a nickname for the room, for example, 'conf room'.").optional(),
4294
4306
  teamsEnabledState: microsoft_graph_placeFeatureEnablement.optional(),
4295
4307
  videoDeviceName: z.string().describe("Specifies the name of the video device in the room.").nullish()
4296
- }).passthrough();
4297
- const microsoft_graph_placeMode = z.object({}).passthrough();
4308
+ }).loose();
4309
+ const microsoft_graph_placeMode = z.object({}).loose();
4298
4310
  const microsoft_graph_workspace = z.object({
4299
4311
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4300
4312
  address: microsoft_graph_physicalAddress.optional(),
@@ -4320,7 +4332,7 @@ const microsoft_graph_workspace = z.object({
4320
4332
  nickname: z.string().describe(
4321
4333
  "A short, friendly name for the workspace, often used for easier identification or display in the UI."
4322
4334
  ).optional()
4323
- }).passthrough();
4335
+ }).loose();
4324
4336
  const microsoft_graph_roomList = z.object({
4325
4337
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4326
4338
  address: microsoft_graph_physicalAddress.optional(),
@@ -4338,17 +4350,17 @@ const microsoft_graph_roomList = z.object({
4338
4350
  emailAddress: z.string().describe("The email address of the room list.").nullish(),
4339
4351
  rooms: z.array(microsoft_graph_room).optional(),
4340
4352
  workspaces: z.array(microsoft_graph_workspace).optional()
4341
- }).passthrough();
4353
+ }).loose();
4342
4354
  const microsoft_graph_roomCollectionResponse = z.object({
4343
4355
  "@odata.count": z.number().int().nullable(),
4344
4356
  "@odata.nextLink": z.string().nullable(),
4345
4357
  value: z.array(microsoft_graph_room)
4346
- }).partial().passthrough();
4358
+ }).partial().loose();
4347
4359
  const microsoft_graph_plannerBucketCollectionResponse = z.object({
4348
4360
  "@odata.count": z.number().int().nullable(),
4349
4361
  "@odata.nextLink": z.string().nullable(),
4350
4362
  value: z.array(microsoft_graph_plannerBucket)
4351
- }).partial().passthrough();
4363
+ }).partial().loose();
4352
4364
  const microsoft_graph_bucketAggregationRange = z.object({
4353
4365
  from: z.string().describe(
4354
4366
  "Defines the lower bound from which to compute the aggregation. This can be a numeric value or a string representation of a date using the YYYY-MM-DDTHH:mm:ss.sssZ format. Required."
@@ -4356,7 +4368,7 @@ const microsoft_graph_bucketAggregationRange = z.object({
4356
4368
  to: z.string().describe(
4357
4369
  "Defines the upper bound up to which to compute the aggregation. This can be a numeric value or a string representation of a date using the YYYY-MM-DDTHH:mm:ss.sssZ format. Required."
4358
4370
  ).optional()
4359
- }).passthrough();
4371
+ }).loose();
4360
4372
  const microsoft_graph_bucketAggregationSortProperty = z.enum([
4361
4373
  "count",
4362
4374
  "keyAsString",
@@ -4377,7 +4389,7 @@ const microsoft_graph_bucketAggregationDefinition = z.object({
4377
4389
  "Specifies the manual ranges to compute the aggregations. This is only valid for nonstring refiners of date or numeric type. Optional."
4378
4390
  ).optional(),
4379
4391
  sortBy: microsoft_graph_bucketAggregationSortProperty.optional()
4380
- }).passthrough();
4392
+ }).loose();
4381
4393
  const microsoft_graph_aggregationOption = z.object({
4382
4394
  bucketDefinition: microsoft_graph_bucketAggregationDefinition.optional(),
4383
4395
  field: z.string().describe(
@@ -4386,7 +4398,7 @@ const microsoft_graph_aggregationOption = z.object({
4386
4398
  size: z.number().gte(-2147483648).lte(2147483647).describe(
4387
4399
  "The number of searchBucket resources to be returned. This isn't required when the range is provided manually in the search request. The minimum accepted size is 1, and the maximum is 65535. Optional."
4388
4400
  ).nullish()
4389
- }).passthrough();
4401
+ }).loose();
4390
4402
  const microsoft_graph_collapseProperty = z.object({
4391
4403
  fields: z.array(z.string()).describe(
4392
4404
  "Defines the collapse group to trim results. The properties in this collection must be sortable/refinable properties. Required."
@@ -4394,7 +4406,7 @@ const microsoft_graph_collapseProperty = z.object({
4394
4406
  limit: z.number().gte(-32768).lte(32767).describe(
4395
4407
  "Defines a maximum limit count for this field. This numeric value must be a positive integer. Required."
4396
4408
  ).optional()
4397
- }).passthrough();
4409
+ }).loose();
4398
4410
  const microsoft_graph_entityType = z.enum([
4399
4411
  "event",
4400
4412
  "message",
@@ -4415,7 +4427,7 @@ const microsoft_graph_searchQuery = z.object({
4415
4427
  queryTemplate: z.string().describe(
4416
4428
  "Provides a way to decorate the query string. Supports both KQL and query variables. Optional."
4417
4429
  ).nullish()
4418
- }).passthrough();
4430
+ }).loose();
4419
4431
  const microsoft_graph_searchAlterationOptions = z.object({
4420
4432
  enableModification: z.boolean().describe(
4421
4433
  "Indicates whether spelling modifications are enabled. If enabled, the user gets the search results for the corrected query if there were no results for the original query with typos. The response will also include the spelling modification information in the queryAlterationResponse property. Optional."
@@ -4423,24 +4435,24 @@ const microsoft_graph_searchAlterationOptions = z.object({
4423
4435
  enableSuggestion: z.boolean().describe(
4424
4436
  "Indicates whether spelling suggestions are enabled. If enabled, the user gets the search results for the original search query and suggestions for spelling correction in the queryAlterationResponse property of the response for the typos in the query. Optional."
4425
4437
  ).nullish()
4426
- }).passthrough();
4438
+ }).loose();
4427
4439
  const microsoft_graph_resultTemplateOption = z.object({
4428
4440
  enableResultTemplate: z.boolean().describe(
4429
4441
  "Indicates whether search display layouts are enabled. If enabled, the user will get the result template to render the search results content in the resultTemplates property of the response. The result template is based on Adaptive Cards. Optional."
4430
4442
  ).nullish()
4431
- }).passthrough();
4443
+ }).loose();
4432
4444
  const microsoft_graph_searchContent = z.enum([
4433
4445
  "sharedContent",
4434
4446
  "privateContent",
4435
4447
  "unknownFutureValue"
4436
4448
  ]);
4437
- const microsoft_graph_sharePointOneDriveOptions = z.object({ includeContent: microsoft_graph_searchContent.optional() }).passthrough();
4449
+ const microsoft_graph_sharePointOneDriveOptions = z.object({ includeContent: microsoft_graph_searchContent.optional() }).loose();
4438
4450
  const microsoft_graph_sortProperty = z.object({
4439
4451
  isDescending: z.boolean().describe(
4440
4452
  "True if the sort order is descending. Default is false, with the sort order as ascending. Optional."
4441
4453
  ).nullish(),
4442
4454
  name: z.string().describe("The name of the property to sort on. Required.").optional()
4443
- }).passthrough();
4455
+ }).loose();
4444
4456
  const microsoft_graph_searchRequest = z.object({
4445
4457
  aggregationFilters: z.array(z.string().nullable()).describe(
4446
4458
  "Contains one or more filters to obtain search results aggregated and filtered to a specific value of a field. Optional.Build this filter based on a prior search that aggregates by the same field. From the response of the prior search, identify the searchBucket that filters results to the specific value of the field, use the string in its aggregationFilterToken property, and build an aggregation filter string in the format '{field}:/'{aggregationFilterToken}/''. If multiple values for the same field need to be provided, use the strings in its aggregationFilterToken property and build an aggregation filter string in the format '{field}:or(/'{aggregationFilterToken1}/',/'{aggregationFilterToken2}/')'. For example, searching and aggregating drive items by file type returns a searchBucket for the file type docx in the response. You can conveniently use the aggregationFilterToken returned for this searchBucket in a subsequent search query and filter matches down to drive items of the docx file type. Example 1 and example 2 show the actual requests and responses."
@@ -4455,7 +4467,7 @@ const microsoft_graph_searchRequest = z.object({
4455
4467
  enableTopResults: z.boolean().describe(
4456
4468
  "This triggers hybrid sort for messages : the first 3 messages are the most relevant. This property is only applicable to entityType=message. Optional."
4457
4469
  ).nullish(),
4458
- entityTypes: z.array(z.union([microsoft_graph_entityType, z.object({}).partial().passthrough()])).describe(
4470
+ entityTypes: z.array(z.union([microsoft_graph_entityType, z.object({}).partial().loose()])).describe(
4459
4471
  "One or more types of resources expected in the response. The possible values are: event, message, driveItem, externalItem, site, list, listItem, drive, chatMessage, person, acronym, bookmark. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: chatMessage, person, acronym, bookmark. See known limitations for those combinations of two or more entity types that are supported in the same search request. Required."
4460
4472
  ).optional(),
4461
4473
  fields: z.array(z.string().nullable()).describe(
@@ -4475,8 +4487,8 @@ const microsoft_graph_searchRequest = z.object({
4475
4487
  sortProperties: z.array(microsoft_graph_sortProperty).describe(
4476
4488
  "Contains the ordered collection of fields and direction to sort results. There can be at most 5 sort properties in the collection. Optional."
4477
4489
  ).optional()
4478
- }).passthrough();
4479
- const search_query_Body = z.object({ requests: z.array(microsoft_graph_searchRequest) }).partial().passthrough();
4490
+ }).loose();
4491
+ const search_query_Body = z.object({ requests: z.array(microsoft_graph_searchRequest) }).partial().loose();
4480
4492
  const microsoft_graph_searchBucket = z.object({
4481
4493
  aggregationFilterToken: z.string().describe(
4482
4494
  "A token containing the encoded filter to aggregate search matches by the specific key value. To use the filter, pass the token as part of the aggregationFilter property in a searchRequest object, in the format '{field}:/'{aggregationFilterToken}/''. See an example."
@@ -4485,11 +4497,11 @@ const microsoft_graph_searchBucket = z.object({
4485
4497
  "The approximate number of search matches that share the same value specified in the key property. Note that this number is not the exact number of matches."
4486
4498
  ).nullish(),
4487
4499
  key: z.string().describe("The discrete value of the field that an aggregation was computed on.").nullish()
4488
- }).passthrough();
4500
+ }).loose();
4489
4501
  const microsoft_graph_searchAggregation = z.object({
4490
4502
  buckets: z.array(microsoft_graph_searchBucket).optional(),
4491
4503
  field: z.string().nullish()
4492
- }).passthrough();
4504
+ }).loose();
4493
4505
  const microsoft_graph_searchHit = z.object({
4494
4506
  contentSource: z.string().describe("The name of the content source that the externalItem is part of.").nullish(),
4495
4507
  hitId: z.string().describe(
@@ -4504,7 +4516,7 @@ const microsoft_graph_searchHit = z.object({
4504
4516
  ).nullish(),
4505
4517
  summary: z.string().describe("A summary of the result, if a summary is available.").nullish(),
4506
4518
  resource: microsoft_graph_entity.optional()
4507
- }).passthrough();
4519
+ }).loose();
4508
4520
  const microsoft_graph_searchHitsContainer = z.object({
4509
4521
  aggregations: z.array(microsoft_graph_searchAggregation).optional(),
4510
4522
  hits: z.array(microsoft_graph_searchHit).describe("A collection of the search results.").optional(),
@@ -4514,19 +4526,19 @@ const microsoft_graph_searchHitsContainer = z.object({
4514
4526
  total: z.number().gte(-2147483648).lte(2147483647).describe(
4515
4527
  "The total number of results. Note this isn't the number of results on the page, but the total number of results satisfying the query."
4516
4528
  ).nullish()
4517
- }).passthrough();
4529
+ }).loose();
4518
4530
  const microsoft_graph_alteredQueryToken = z.object({
4519
4531
  length: z.number().gte(-2147483648).lte(2147483647).describe("Defines the length of a changed segment.").nullish(),
4520
4532
  offset: z.number().gte(-2147483648).lte(2147483647).describe("Defines the offset of a changed segment.").nullish(),
4521
4533
  suggestion: z.string().describe("Represents the corrected segment string.").nullish()
4522
- }).passthrough();
4534
+ }).loose();
4523
4535
  const microsoft_graph_searchAlteration = z.object({
4524
4536
  alteredHighlightedQueryString: z.string().describe(
4525
4537
  "Defines the altered highlighted query string with spelling correction. The annotation around the corrected segment is: /ue000, /ue001."
4526
4538
  ).nullish(),
4527
4539
  alteredQueryString: z.string().describe("Defines the altered query string with spelling correction.").nullish(),
4528
4540
  alteredQueryTokens: z.array(microsoft_graph_alteredQueryToken).describe("Represents changed segments related to an original user query.").optional()
4529
- }).passthrough();
4541
+ }).loose();
4530
4542
  const microsoft_graph_searchAlterationType = z.enum([
4531
4543
  "suggestion",
4532
4544
  "modification",
@@ -4536,22 +4548,22 @@ const microsoft_graph_alterationResponse = z.object({
4536
4548
  originalQueryString: z.string().describe("Defines the original user query string.").nullish(),
4537
4549
  queryAlteration: microsoft_graph_searchAlteration.optional(),
4538
4550
  queryAlterationType: microsoft_graph_searchAlterationType.optional()
4539
- }).passthrough();
4540
- const microsoft_graph_resultTemplateDictionary = z.object({}).passthrough();
4551
+ }).loose();
4552
+ const microsoft_graph_resultTemplateDictionary = z.object({}).loose();
4541
4553
  const microsoft_graph_searchResponse = z.object({
4542
4554
  hitsContainers: z.array(microsoft_graph_searchHitsContainer).describe("A collection of search results.").optional(),
4543
4555
  queryAlterationResponse: microsoft_graph_alterationResponse.optional(),
4544
4556
  resultTemplates: microsoft_graph_resultTemplateDictionary.optional(),
4545
4557
  searchTerms: z.array(z.string().nullable()).describe("Contains the search terms sent in the initial search query.").optional()
4546
- }).passthrough();
4547
- const microsoft_graph_root = z.object({}).passthrough();
4558
+ }).loose();
4559
+ const microsoft_graph_root = z.object({}).loose();
4548
4560
  const microsoft_graph_siteArchiveStatus = z.enum([
4549
4561
  "recentlyArchived",
4550
4562
  "fullyArchived",
4551
4563
  "reactivating",
4552
4564
  "unknownFutureValue"
4553
4565
  ]);
4554
- const microsoft_graph_siteArchivalDetails = z.object({ archiveStatus: microsoft_graph_siteArchiveStatus.optional() }).passthrough();
4566
+ const microsoft_graph_siteArchivalDetails = z.object({ archiveStatus: microsoft_graph_siteArchiveStatus.optional() }).loose();
4555
4567
  const microsoft_graph_siteCollection = z.object({
4556
4568
  archivalDetails: microsoft_graph_siteArchivalDetails.optional(),
4557
4569
  dataLocationCode: z.string().describe(
@@ -4559,7 +4571,7 @@ const microsoft_graph_siteCollection = z.object({
4559
4571
  ).nullish(),
4560
4572
  hostname: z.string().describe("The hostname for the site collection. Read-only.").nullish(),
4561
4573
  root: microsoft_graph_root.optional()
4562
- }).passthrough();
4574
+ }).loose();
4563
4575
  const microsoft_graph_baseItem = z.object({
4564
4576
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4565
4577
  createdBy: microsoft_graph_identitySet.optional(),
@@ -4579,7 +4591,7 @@ const microsoft_graph_baseItem = z.object({
4579
4591
  ).nullish(),
4580
4592
  createdByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional(),
4581
4593
  lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 138 properties to 25 most common ones]").optional()
4582
- }).passthrough();
4594
+ }).loose();
4583
4595
  const microsoft_graph_site = z.object({
4584
4596
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4585
4597
  name: z.string().describe("The name of the item. Read-write.").nullish(),
@@ -4614,44 +4626,37 @@ const microsoft_graph_site = z.object({
4614
4626
  items: z.array(microsoft_graph_baseItem).describe(
4615
4627
  "Used to address any item contained in this site. This collection can't be enumerated."
4616
4628
  ).optional()
4617
- }).passthrough().passthrough();
4629
+ }).loose().loose();
4618
4630
  const microsoft_graph_siteCollectionResponse = z.object({
4619
4631
  "@odata.count": z.number().int().nullable(),
4620
4632
  "@odata.nextLink": z.string().nullable(),
4621
4633
  value: z.array(microsoft_graph_site)
4622
- }).partial().passthrough();
4634
+ }).partial().loose();
4623
4635
  const microsoft_graph_baseItemCollectionResponse = z.object({
4624
4636
  "@odata.count": z.number().int().nullable(),
4625
4637
  "@odata.nextLink": z.string().nullable(),
4626
4638
  value: z.array(microsoft_graph_baseItem)
4627
- }).partial().passthrough();
4639
+ }).partial().loose();
4628
4640
  const microsoft_graph_listCollectionResponse = z.object({
4629
4641
  "@odata.count": z.number().int().nullable(),
4630
4642
  "@odata.nextLink": z.string().nullable(),
4631
4643
  value: z.array(microsoft_graph_list)
4632
- }).partial().passthrough();
4644
+ }).partial().loose();
4633
4645
  const microsoft_graph_columnDefinitionCollectionResponse = z.object({
4634
4646
  "@odata.count": z.number().int().nullable(),
4635
4647
  "@odata.nextLink": z.string().nullable(),
4636
4648
  value: z.array(microsoft_graph_columnDefinition)
4637
- }).partial().passthrough();
4649
+ }).partial().loose();
4638
4650
  const microsoft_graph_listItemCollectionResponse = z.object({
4639
4651
  "@odata.count": z.number().int().nullable(),
4640
4652
  "@odata.nextLink": z.string().nullable(),
4641
4653
  value: z.array(microsoft_graph_listItem)
4642
- }).partial().passthrough();
4643
- const update_sharepoint_site_onenote_page_content_Body = z.array(
4644
- z.object({
4645
- target: z.string().describe(
4646
- "Element to change: a data-id, the generated id, or a known name like 'body' or 'title'."
4647
- ),
4648
- action: z.enum(["append", "insert", "prepend", "replace", "delete"]).describe("What to do at the target. 'delete' takes no content."),
4649
- position: z.enum(["after", "before"]).describe(
4650
- "For 'insert'/'append', whether content goes after (default) or before the target's content."
4651
- ).optional(),
4652
- content: z.string().describe("HTML to add. Required for all actions except 'delete'.").optional()
4653
- }).passthrough()
4654
- );
4654
+ }).partial().loose();
4655
+ const microsoft_graph_listItemVersionCollectionResponse = z.object({
4656
+ "@odata.count": z.number().int().nullable(),
4657
+ "@odata.nextLink": z.string().nullable(),
4658
+ value: z.array(microsoft_graph_listItemVersion)
4659
+ }).partial().loose();
4655
4660
  const microsoft_graph_endpointType = z.enum([
4656
4661
  "default",
4657
4662
  "voicemail",
@@ -4671,10 +4676,10 @@ const microsoft_graph_communicationsIdentitySet = z.object({
4671
4676
  guest: microsoft_graph_identity.optional(),
4672
4677
  onPremises: microsoft_graph_identity.optional(),
4673
4678
  phone: microsoft_graph_identity.optional()
4674
- }).passthrough();
4679
+ }).loose();
4675
4680
  const microsoft_graph_virtualEventSettings = z.object({
4676
4681
  isAttendeeEmailNotificationEnabled: z.boolean().describe("Indicates whether virtual event attendees receive email notifications.").nullish()
4677
- }).passthrough();
4682
+ }).loose();
4678
4683
  const microsoft_graph_virtualEventStatus = z.enum([
4679
4684
  "draft",
4680
4685
  "published",
@@ -4689,13 +4694,13 @@ const microsoft_graph_virtualEventPresenterDetails = z.object({
4689
4694
  personalSiteWebUrl: z.string().describe("The presenter's personal website URL.").nullish(),
4690
4695
  photo: z.string().describe("The content stream of the presenter's photo.").nullish(),
4691
4696
  twitterProfileWebUrl: z.string().describe("The presenter's Twitter profile URL.").nullish()
4692
- }).passthrough();
4697
+ }).loose();
4693
4698
  const microsoft_graph_virtualEventPresenter = z.object({
4694
4699
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4695
4700
  email: z.string().describe("Email address of the presenter.").nullish(),
4696
4701
  identity: microsoft_graph_identity.optional(),
4697
4702
  presenterDetails: microsoft_graph_virtualEventPresenterDetails.optional()
4698
- }).passthrough();
4703
+ }).loose();
4699
4704
  const microsoft_graph_virtualEventSession = z.object({
4700
4705
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4701
4706
  subject: z.string().describe("The subject of the online meeting.").nullish(),
@@ -4730,7 +4735,7 @@ const microsoft_graph_virtualEventSession = z.object({
4730
4735
  isEntryExitAnnounced: z.boolean().describe("Indicates whether to announce when callers join or leave.").nullish(),
4731
4736
  joinInformation: microsoft_graph_itemBody.optional(),
4732
4737
  joinMeetingIdSettings: microsoft_graph_joinMeetingIdSettings.optional()
4733
- }).passthrough().passthrough();
4738
+ }).loose().loose();
4734
4739
  const microsoft_graph_meetingAudience = z.enum(["everyone", "organization", "unknownFutureValue"]);
4735
4740
  const microsoft_graph_communicationsUserIdentity = z.object({
4736
4741
  displayName: z.string().describe(
@@ -4740,14 +4745,14 @@ const microsoft_graph_communicationsUserIdentity = z.object({
4740
4745
  "Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
4741
4746
  ).nullish(),
4742
4747
  tenantId: z.string().describe("The user's tenant ID.").nullish()
4743
- }).passthrough();
4748
+ }).loose();
4744
4749
  const microsoft_graph_virtualEventRegistrationQuestionBase = z.object({
4745
4750
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4746
4751
  displayName: z.string().describe("Display name of the registration question.").nullish(),
4747
4752
  isRequired: z.boolean().describe(
4748
4753
  "Indicates whether an answer to the question is required. The default value is false."
4749
4754
  ).nullish()
4750
- }).passthrough();
4755
+ }).loose();
4751
4756
  const microsoft_graph_virtualEventWebinarRegistrationConfiguration = z.object({
4752
4757
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4753
4758
  capacity: z.number().gte(-2147483648).lte(2147483647).describe("Total capacity of the virtual event.").nullish(),
@@ -4759,7 +4764,7 @@ const microsoft_graph_virtualEventWebinarRegistrationConfiguration = z.object({
4759
4764
  ).nullish(),
4760
4765
  registrationWebUrl: z.string().describe("Registration URL of the virtual event.").nullish(),
4761
4766
  questions: z.array(microsoft_graph_virtualEventRegistrationQuestionBase).describe("Registration questions.").optional()
4762
- }).passthrough();
4767
+ }).loose();
4763
4768
  const microsoft_graph_virtualEventRegistrationQuestionAnswer = z.object({
4764
4769
  booleanValue: z.boolean().describe(
4765
4770
  "Boolean answer of the virtual event registration question. Only appears when answerInputType is boolean."
@@ -4772,7 +4777,7 @@ const microsoft_graph_virtualEventRegistrationQuestionAnswer = z.object({
4772
4777
  value: z.string().describe(
4773
4778
  "Text answer of the virtual event registration question. Appears when answerInputType is text, multilineText or singleChoice."
4774
4779
  ).nullish()
4775
- }).passthrough();
4780
+ }).loose();
4776
4781
  const microsoft_graph_virtualEventAttendeeRegistrationStatus = z.enum([
4777
4782
  "registered",
4778
4783
  "canceled",
@@ -4805,7 +4810,7 @@ const microsoft_graph_virtualEventRegistration = z.object({
4805
4810
  "The registrant's ID in Microsoft Entra ID. Only appears when the registrant is registered in Microsoft Entra ID."
4806
4811
  ).nullish(),
4807
4812
  sessions: z.array(microsoft_graph_virtualEventSession).describe("Sessions for a registration.").optional()
4808
- }).passthrough();
4813
+ }).loose();
4809
4814
  const microsoft_graph_virtualEventWebinar = z.object({
4810
4815
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
4811
4816
  createdBy: microsoft_graph_communicationsIdentitySet.optional(),
@@ -4825,32 +4830,32 @@ const microsoft_graph_virtualEventWebinar = z.object({
4825
4830
  coOrganizers: z.array(microsoft_graph_communicationsUserIdentity).describe("Identity information of coorganizers of the webinar.").optional(),
4826
4831
  registrationConfiguration: microsoft_graph_virtualEventWebinarRegistrationConfiguration.optional(),
4827
4832
  registrations: z.array(microsoft_graph_virtualEventRegistration).describe("Registration records of the webinar.").optional()
4828
- }).passthrough();
4833
+ }).loose();
4829
4834
  const microsoft_graph_virtualEventSessionCollectionResponse = z.object({
4830
4835
  "@odata.count": z.number().int().nullable(),
4831
4836
  "@odata.nextLink": z.string().nullable(),
4832
4837
  value: z.array(microsoft_graph_virtualEventSession)
4833
- }).partial().passthrough();
4838
+ }).partial().loose();
4834
4839
  const microsoft_graph_subscriptionCollectionResponse = z.object({
4835
4840
  "@odata.count": z.number().int().nullable(),
4836
4841
  "@odata.nextLink": z.string().nullable(),
4837
4842
  value: z.array(microsoft_graph_subscription)
4838
- }).partial().passthrough();
4843
+ }).partial().loose();
4839
4844
  const microsoft_graph_channelCollectionResponse = z.object({
4840
4845
  "@odata.count": z.number().int().nullable(),
4841
4846
  "@odata.nextLink": z.string().nullable(),
4842
4847
  value: z.array(microsoft_graph_channel)
4843
- }).partial().passthrough();
4848
+ }).partial().loose();
4844
4849
  const microsoft_graph_teamsTabCollectionResponse = z.object({
4845
4850
  "@odata.count": z.number().int().nullable(),
4846
4851
  "@odata.nextLink": z.string().nullable(),
4847
4852
  value: z.array(microsoft_graph_teamsTab)
4848
- }).partial().passthrough();
4853
+ }).partial().loose();
4849
4854
  const microsoft_graph_userCollectionResponse = z.object({
4850
4855
  "@odata.count": z.number().int().nullable(),
4851
4856
  "@odata.nextLink": z.string().nullable(),
4852
4857
  value: z.array(microsoft_graph_user)
4853
- }).partial().passthrough();
4858
+ }).partial().loose();
4854
4859
  const format_excel_range_font_Body = z.object({
4855
4860
  bold: z.boolean(),
4856
4861
  italic: z.boolean(),
@@ -4858,7 +4863,7 @@ const format_excel_range_font_Body = z.object({
4858
4863
  size: z.number().describe("Font size in points."),
4859
4864
  color: z.string().describe("HTML color code for the text, e.g. #FF0000 or a named color like 'red'."),
4860
4865
  name: z.string().describe("Font name, e.g. 'Calibri'.")
4861
- }).partial().passthrough();
4866
+ }).partial().loose();
4862
4867
  const format_excel_range_border_Body = z.object({
4863
4868
  style: z.enum([
4864
4869
  "None",
@@ -4872,7 +4877,7 @@ const format_excel_range_border_Body = z.object({
4872
4877
  ]),
4873
4878
  weight: z.enum(["Hairline", "Thin", "Medium", "Thick"]),
4874
4879
  color: z.string().describe("HTML color code for the line, e.g. #000000 or a named color like 'black'.")
4875
- }).partial().passthrough();
4880
+ }).partial().loose();
4876
4881
  const schemas = {
4877
4882
  microsoft_graph_chatType,
4878
4883
  microsoft_graph_migrationMode,
@@ -5255,6 +5260,7 @@ const schemas = {
5255
5260
  microsoft_graph_onenoteSectionCollectionResponse,
5256
5261
  microsoft_graph_CopyNotebookModel,
5257
5262
  microsoft_graph_onenotePageCollectionResponse,
5263
+ update_onenote_page_content_Body,
5258
5264
  microsoft_graph_sectionGroupCollectionResponse,
5259
5265
  microsoft_graph_allowedLobbyAdmitterRoles,
5260
5266
  microsoft_graph_onlineMeetingPresenters,
@@ -5361,7 +5367,7 @@ const schemas = {
5361
5367
  microsoft_graph_listCollectionResponse,
5362
5368
  microsoft_graph_columnDefinitionCollectionResponse,
5363
5369
  microsoft_graph_listItemCollectionResponse,
5364
- update_sharepoint_site_onenote_page_content_Body,
5370
+ microsoft_graph_listItemVersionCollectionResponse,
5365
5371
  microsoft_graph_endpointType,
5366
5372
  microsoft_graph_communicationsIdentitySet,
5367
5373
  microsoft_graph_virtualEventSettings,
@@ -5397,7 +5403,7 @@ const endpoints = makeApi([
5397
5403
  name: "body",
5398
5404
  description: `Operation payload`,
5399
5405
  type: "Body",
5400
- schema: z.object({}).partial().passthrough().passthrough()
5406
+ schema: z.object({}).partial().loose().loose()
5401
5407
  }
5402
5408
  ],
5403
5409
  response: z.void()
@@ -5717,7 +5723,7 @@ const endpoints = makeApi([
5717
5723
  name: "body",
5718
5724
  description: `Action parameters`,
5719
5725
  type: "Body",
5720
- schema: z.object({ reactionType: z.string().nullable() }).partial().passthrough()
5726
+ schema: z.object({ reactionType: z.string().nullable() }).partial().loose()
5721
5727
  }
5722
5728
  ],
5723
5729
  response: z.void()
@@ -5733,7 +5739,7 @@ const endpoints = makeApi([
5733
5739
  name: "body",
5734
5740
  description: `Action parameters`,
5735
5741
  type: "Body",
5736
- schema: z.object({ reactionType: z.string().nullable() }).partial().passthrough()
5742
+ schema: z.object({ reactionType: z.string().nullable() }).partial().loose()
5737
5743
  }
5738
5744
  ],
5739
5745
  response: z.void()
@@ -5916,7 +5922,7 @@ const endpoints = makeApi([
5916
5922
  malware: microsoft_graph_malware.optional(),
5917
5923
  package: microsoft_graph_package.optional(),
5918
5924
  pendingOperations: microsoft_graph_pendingOperations.optional()
5919
- }).passthrough().passthrough()
5925
+ }).loose().loose()
5920
5926
  }
5921
5927
  ],
5922
5928
  response: z.void()
@@ -6031,7 +6037,7 @@ const endpoints = makeApi([
6031
6037
  malware: microsoft_graph_malware.optional(),
6032
6038
  package: microsoft_graph_package.optional(),
6033
6039
  pendingOperations: microsoft_graph_pendingOperations.optional()
6034
- }).passthrough().passthrough()
6040
+ }).loose().loose()
6035
6041
  }
6036
6042
  ],
6037
6043
  response: z.void()
@@ -6507,7 +6513,7 @@ Items with this property set should be removed from your local state.`,
6507
6513
  name: "body",
6508
6514
  description: `Operation payload`,
6509
6515
  type: "Body",
6510
- schema: z.object({}).partial().passthrough().passthrough()
6516
+ schema: z.object({}).partial().loose().loose()
6511
6517
  },
6512
6518
  {
6513
6519
  name: "driveId",
@@ -6641,7 +6647,7 @@ Items with this property set should be removed from your local state.`,
6641
6647
  type: "Body",
6642
6648
  schema: z.object({
6643
6649
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional()
6644
- }).passthrough()
6650
+ }).loose()
6645
6651
  }
6646
6652
  ],
6647
6653
  response: z.void()
@@ -6665,7 +6671,7 @@ Items with this property set should be removed from your local state.`,
6665
6671
  name: "body",
6666
6672
  description: `Operation payload`,
6667
6673
  type: "Body",
6668
- schema: z.object({}).partial().passthrough().passthrough()
6674
+ schema: z.object({}).partial().loose().loose()
6669
6675
  },
6670
6676
  {
6671
6677
  name: "driveId",
@@ -6701,7 +6707,7 @@ Items with this property set should be removed from your local state.`,
6701
6707
  name: "body",
6702
6708
  description: `Action parameters`,
6703
6709
  type: "Body",
6704
- schema: z.object({ applyTo: z.string() }).partial().passthrough()
6710
+ schema: z.object({ applyTo: z.string() }).partial().loose()
6705
6711
  }
6706
6712
  ],
6707
6713
  response: z.void()
@@ -6717,7 +6723,7 @@ Items with this property set should be removed from your local state.`,
6717
6723
  name: "body",
6718
6724
  description: `Action parameters`,
6719
6725
  type: "Body",
6720
- schema: z.object({ shift: z.string() }).partial().passthrough()
6726
+ schema: z.object({ shift: z.string() }).partial().loose()
6721
6727
  }
6722
6728
  ],
6723
6729
  response: z.void()
@@ -6814,7 +6820,7 @@ Items with this property set should be removed from your local state.`,
6814
6820
  color: z.string().describe(
6815
6821
  "HTML color code for the background, e.g. #FFFF00 or a named color like 'yellow'."
6816
6822
  )
6817
- }).partial().passthrough()
6823
+ }).partial().loose()
6818
6824
  },
6819
6825
  {
6820
6826
  name: "driveId",
@@ -6886,7 +6892,7 @@ Items with this property set should be removed from your local state.`,
6886
6892
  name: "body",
6887
6893
  description: `Action parameters`,
6888
6894
  type: "Body",
6889
- schema: z.object({ shift: z.string() }).partial().passthrough()
6895
+ schema: z.object({ shift: z.string() }).partial().loose()
6890
6896
  }
6891
6897
  ],
6892
6898
  response: z.void()
@@ -6902,7 +6908,7 @@ Items with this property set should be removed from your local state.`,
6902
6908
  name: "body",
6903
6909
  description: `Action parameters`,
6904
6910
  type: "Body",
6905
- schema: z.object({ across: z.boolean().default(false) }).partial().passthrough()
6911
+ schema: z.object({ across: z.boolean().meta({ default: false }) }).partial().loose()
6906
6912
  }
6907
6913
  ],
6908
6914
  response: z.void()
@@ -7152,7 +7158,7 @@ You can search within a folder hierarchy, a whole drive, or files shared with th
7152
7158
  mailEnabled: z.boolean().describe(
7153
7159
  "Specifies whether the group is mail-enabled. Required. Returned by default. Supports $filter (eq, ne, not)."
7154
7160
  ).nullish()
7155
- }).passthrough().passthrough()
7161
+ }).loose().loose()
7156
7162
  }
7157
7163
  ],
7158
7164
  response: z.void()
@@ -7263,7 +7269,7 @@ You can create or update the following types of group: By default, this operatio
7263
7269
  mailEnabled: z.boolean().describe(
7264
7270
  "Specifies whether the group is mail-enabled. Required. Returned by default. Supports $filter (eq, ne, not)."
7265
7271
  ).nullish()
7266
- }).passthrough().passthrough()
7272
+ }).loose().loose()
7267
7273
  }
7268
7274
  ],
7269
7275
  response: z.void()
@@ -7531,7 +7537,7 @@ from the default calendar of a group.`,
7531
7537
  name: "body",
7532
7538
  description: `New navigation property ref value`,
7533
7539
  type: "Body",
7534
- schema: z.record(z.object({}).partial().passthrough())
7540
+ schema: z.record(z.string(), z.object({}).partial().loose())
7535
7541
  }
7536
7542
  ],
7537
7543
  response: z.void()
@@ -7619,7 +7625,7 @@ from the default calendar of a group.`,
7619
7625
  name: "body",
7620
7626
  description: `New navigation property ref value`,
7621
7627
  type: "Body",
7622
- schema: z.record(z.object({}).partial().passthrough())
7628
+ schema: z.record(z.string(), z.object({}).partial().loose())
7623
7629
  }
7624
7630
  ],
7625
7631
  response: z.void()
@@ -8187,7 +8193,7 @@ from the default calendar of a group.`,
8187
8193
  changeKey: z.string().describe(
8188
8194
  "Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only."
8189
8195
  ).nullish()
8190
- }).passthrough().passthrough()
8196
+ }).loose().loose()
8191
8197
  }
8192
8198
  ],
8193
8199
  response: z.void()
@@ -8275,7 +8281,7 @@ from the default calendar of a group.`,
8275
8281
  changeKey: z.string().describe(
8276
8282
  "Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only."
8277
8283
  ).nullish()
8278
- }).passthrough().passthrough()
8284
+ }).loose().loose()
8279
8285
  }
8280
8286
  ],
8281
8287
  response: z.void()
@@ -8808,7 +8814,7 @@ or from some other calendar of the user.`,
8808
8814
  homePhones: z.array(z.string().nullable()).describe("The contact's home phone numbers.").optional(),
8809
8815
  imAddresses: z.array(z.string().nullable()).describe("The contact's instant messaging (IM) addresses.").optional(),
8810
8816
  initials: z.string().describe("The contact's initials.").nullish()
8811
- }).passthrough().passthrough()
8817
+ }).loose().loose()
8812
8818
  }
8813
8819
  ],
8814
8820
  response: z.void()
@@ -8920,7 +8926,7 @@ or from some other calendar of the user.`,
8920
8926
  homePhones: z.array(z.string().nullable()).describe("The contact's home phone numbers.").optional(),
8921
8927
  imAddresses: z.array(z.string().nullable()).describe("The contact's instant messaging (IM) addresses.").optional(),
8922
8928
  initials: z.string().describe("The contact's initials.").nullish()
8923
- }).passthrough().passthrough()
8929
+ }).loose().loose()
8924
8930
  }
8925
8931
  ],
8926
8932
  response: z.void()
@@ -9002,7 +9008,7 @@ or from some other calendar of the user.`,
9002
9008
  homePhones: z.array(z.string().nullable()).describe("The contact's home phone numbers.").optional(),
9003
9009
  imAddresses: z.array(z.string().nullable()).describe("The contact's instant messaging (IM) addresses.").optional(),
9004
9010
  initials: z.string().describe("The contact's initials.").nullish()
9005
- }).passthrough().passthrough()
9011
+ }).loose().loose()
9006
9012
  }
9007
9013
  ],
9008
9014
  response: z.void()
@@ -9315,7 +9321,7 @@ open extensions or extended properties, and how to specify extended properties.`
9315
9321
  changeKey: z.string().describe(
9316
9322
  "Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only."
9317
9323
  ).nullish()
9318
- }).passthrough().passthrough()
9324
+ }).loose().loose()
9319
9325
  }
9320
9326
  ],
9321
9327
  response: z.void()
@@ -9403,7 +9409,7 @@ open extensions or extended properties, and how to specify extended properties.`
9403
9409
  changeKey: z.string().describe(
9404
9410
  "Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only."
9405
9411
  ).nullish()
9406
- }).passthrough().passthrough()
9412
+ }).loose().loose()
9407
9413
  }
9408
9414
  ],
9409
9415
  response: z.void()
@@ -9485,7 +9491,7 @@ the organizer send a custom message to the attendees about the cancellation.`,
9485
9491
  name: "body",
9486
9492
  description: `Action parameters`,
9487
9493
  type: "Body",
9488
- schema: z.object({ Comment: z.string().nullable() }).partial().passthrough()
9494
+ schema: z.object({ Comment: z.string().nullable() }).partial().loose()
9489
9495
  }
9490
9496
  ],
9491
9497
  response: z.void()
@@ -10475,7 +10481,7 @@ having to fetch the entire set of messages from the server every time.`,
10475
10481
  isDraft: z.boolean().describe(
10476
10482
  "Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet."
10477
10483
  ).nullish()
10478
- }).passthrough().passthrough()
10484
+ }).loose().loose()
10479
10485
  }
10480
10486
  ],
10481
10487
  response: z.void()
@@ -10557,7 +10563,7 @@ having to fetch the entire set of messages from the server every time.`,
10557
10563
  isDraft: z.boolean().describe(
10558
10564
  "Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet."
10559
10565
  ).nullish()
10560
- }).passthrough().passthrough()
10566
+ }).loose().loose()
10561
10567
  }
10562
10568
  ],
10563
10569
  response: z.void()
@@ -10721,7 +10727,7 @@ resource.`,
10721
10727
  name: "body",
10722
10728
  description: `Action parameters`,
10723
10729
  type: "Body",
10724
- schema: z.object({ DestinationId: z.string() }).partial().passthrough()
10730
+ schema: z.object({ DestinationId: z.string() }).partial().loose()
10725
10731
  }
10726
10732
  ],
10727
10733
  response: z.void()
@@ -10815,7 +10821,7 @@ resource.`,
10815
10821
  name: "body",
10816
10822
  description: `Action parameters`,
10817
10823
  type: "Body",
10818
- schema: z.object({ DestinationId: z.string() }).partial().passthrough()
10824
+ schema: z.object({ DestinationId: z.string() }).partial().loose()
10819
10825
  }
10820
10826
  ],
10821
10827
  response: z.void()
@@ -11011,7 +11017,7 @@ resource.`,
11011
11017
  name: "body",
11012
11018
  description: `Action parameters`,
11013
11019
  type: "Body",
11014
- schema: z.object({ webUrl: z.string().nullable() }).partial().passthrough()
11020
+ schema: z.object({ webUrl: z.string().nullable() }).partial().loose()
11015
11021
  }
11016
11022
  ],
11017
11023
  response: z.void()
@@ -11105,6 +11111,27 @@ resource.`,
11105
11111
  requestFormat: "json",
11106
11112
  response: z.void()
11107
11113
  },
11114
+ {
11115
+ method: "patch",
11116
+ path: "/me/onenote/pages/:onenotePageId/content",
11117
+ alias: "update-onenote-page-content",
11118
+ description: `Update OneNote page content.`,
11119
+ requestFormat: "json",
11120
+ parameters: [
11121
+ {
11122
+ name: "body",
11123
+ description: `Operation payload`,
11124
+ type: "Body",
11125
+ schema: update_onenote_page_content_Body
11126
+ },
11127
+ {
11128
+ name: "onenotePageId",
11129
+ type: "Path",
11130
+ schema: z.string().describe("Path parameter: onenotePage-id")
11131
+ }
11132
+ ],
11133
+ response: z.void()
11134
+ },
11108
11135
  {
11109
11136
  method: "get",
11110
11137
  path: "/me/onenote/sectionGroups",
@@ -11368,7 +11395,7 @@ resource.`,
11368
11395
  isEntryExitAnnounced: z.boolean().describe("Indicates whether to announce when callers join or leave.").nullish(),
11369
11396
  joinInformation: microsoft_graph_itemBody.optional(),
11370
11397
  joinMeetingIdSettings: microsoft_graph_joinMeetingIdSettings.optional()
11371
- }).passthrough().passthrough()
11398
+ }).loose().loose()
11372
11399
  }
11373
11400
  ],
11374
11401
  response: z.void()
@@ -11440,7 +11467,7 @@ resource.`,
11440
11467
  isEntryExitAnnounced: z.boolean().describe("Indicates whether to announce when callers join or leave.").nullish(),
11441
11468
  joinInformation: microsoft_graph_itemBody.optional(),
11442
11469
  joinMeetingIdSettings: microsoft_graph_joinMeetingIdSettings.optional()
11443
- }).passthrough().passthrough()
11470
+ }).loose().loose()
11444
11471
  }
11445
11472
  ],
11446
11473
  response: z.void()
@@ -12021,7 +12048,7 @@ getting the user's mailbox settings.`,
12021
12048
  name: "body",
12022
12049
  description: `Action parameters`,
12023
12050
  type: "Body",
12024
- schema: z.object({ sessionId: z.string().nullable() }).partial().passthrough()
12051
+ schema: z.object({ sessionId: z.string().nullable() }).partial().loose()
12025
12052
  }
12026
12053
  ],
12027
12054
  response: z.void()
@@ -12607,6 +12634,57 @@ Currently, a user can be associated with a team in two different ways:`,
12607
12634
  ],
12608
12635
  response: z.void()
12609
12636
  },
12637
+ {
12638
+ method: "get",
12639
+ path: "/me/todo/lists/delta()",
12640
+ alias: "list-todo-task-lists-delta",
12641
+ description: `Get a set of todoTaskList resources that have been added, deleted, or removed in Microsoft To Do. A delta function call for todoTaskList is similar to a GET request, except that by appropriately applying state tokens in one or more of these calls,
12642
+ you can query for incremental changes in the todoTaskList. This allows you to maintain and synchronize a local store of a user's todoTaskList without having to fetch all the todoTaskList from the server every time.`,
12643
+ requestFormat: "json",
12644
+ parameters: [
12645
+ {
12646
+ name: "$top",
12647
+ type: "Query",
12648
+ schema: z.number().int().gte(0).describe("Show only the first n items").optional()
12649
+ },
12650
+ {
12651
+ name: "$skip",
12652
+ type: "Query",
12653
+ schema: z.number().int().gte(0).describe("Skip the first n items").optional()
12654
+ },
12655
+ {
12656
+ name: "$search",
12657
+ type: "Query",
12658
+ schema: z.string().describe("Search items by search phrases").optional()
12659
+ },
12660
+ {
12661
+ name: "$filter",
12662
+ type: "Query",
12663
+ schema: z.string().describe("Filter items by property values").optional()
12664
+ },
12665
+ {
12666
+ name: "$count",
12667
+ type: "Query",
12668
+ schema: z.boolean().describe("Include count of items").optional()
12669
+ },
12670
+ {
12671
+ name: "$select",
12672
+ type: "Query",
12673
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
12674
+ },
12675
+ {
12676
+ name: "$orderby",
12677
+ type: "Query",
12678
+ schema: z.array(z.string()).describe("Order items by property values").optional()
12679
+ },
12680
+ {
12681
+ name: "$expand",
12682
+ type: "Query",
12683
+ schema: z.array(z.string()).describe("Expand related entities").optional()
12684
+ }
12685
+ ],
12686
+ response: z.void()
12687
+ },
12610
12688
  {
12611
12689
  method: "patch",
12612
12690
  path: "/places/:placeId",
@@ -13035,7 +13113,7 @@ Currently, a user can be associated with a team in two different ways:`,
13035
13113
  ).nullish(),
13036
13114
  assignedToTaskBoardFormat: microsoft_graph_plannerAssignedToTaskBoardTaskFormat.optional(),
13037
13115
  bucketTaskBoardFormat: microsoft_graph_plannerBucketTaskBoardTaskFormat.optional()
13038
- }).passthrough().passthrough()
13116
+ }).loose().loose()
13039
13117
  }
13040
13118
  ],
13041
13119
  response: z.void()
@@ -13129,7 +13207,7 @@ Currently, a user can be associated with a team in two different ways:`,
13129
13207
  ).nullish(),
13130
13208
  assignedToTaskBoardFormat: microsoft_graph_plannerAssignedToTaskBoardTaskFormat.optional(),
13131
13209
  bucketTaskBoardFormat: microsoft_graph_plannerBucketTaskBoardTaskFormat.optional()
13132
- }).passthrough().passthrough()
13210
+ }).loose().loose()
13133
13211
  },
13134
13212
  {
13135
13213
  name: "If-Match",
@@ -13610,7 +13688,7 @@ To list them, include system in your $select statement.`,
13610
13688
  propagateChanges: z.boolean().describe(
13611
13689
  "If 'true', changes to this column will be propagated to lists that implement the column."
13612
13690
  ).nullish()
13613
- }).passthrough().passthrough()
13691
+ }).loose().loose()
13614
13692
  }
13615
13693
  ],
13616
13694
  response: z.void()
@@ -13680,7 +13758,7 @@ To list them, include system in your $select statement.`,
13680
13758
  propagateChanges: z.boolean().describe(
13681
13759
  "If 'true', changes to this column will be propagated to lists that implement the column."
13682
13760
  ).nullish()
13683
- }).passthrough().passthrough()
13761
+ }).loose().loose()
13684
13762
  }
13685
13763
  ],
13686
13764
  response: z.void()
@@ -13817,6 +13895,130 @@ To list them, include system in your $select statement.`,
13817
13895
  ],
13818
13896
  response: z.void()
13819
13897
  },
13898
+ {
13899
+ method: "get",
13900
+ path: "/sites/:siteId/lists/:listId/items/:listItemId/versions",
13901
+ alias: "list-sharepoint-site-list-item-versions",
13902
+ description: `SharePoint can be configured to retain the history for list items. Previous versions may be retained for a finite period of time depending on admin settings which may be unique per user or location.`,
13903
+ requestFormat: "json",
13904
+ parameters: [
13905
+ {
13906
+ name: "$top",
13907
+ type: "Query",
13908
+ schema: z.number().int().gte(0).describe("Show only the first n items").optional()
13909
+ },
13910
+ {
13911
+ name: "$skip",
13912
+ type: "Query",
13913
+ schema: z.number().int().gte(0).describe("Skip the first n items").optional()
13914
+ },
13915
+ {
13916
+ name: "$search",
13917
+ type: "Query",
13918
+ schema: z.string().describe("Search items by search phrases").optional()
13919
+ },
13920
+ {
13921
+ name: "$filter",
13922
+ type: "Query",
13923
+ schema: z.string().describe("Filter items by property values").optional()
13924
+ },
13925
+ {
13926
+ name: "$count",
13927
+ type: "Query",
13928
+ schema: z.boolean().describe("Include count of items").optional()
13929
+ },
13930
+ {
13931
+ name: "$orderby",
13932
+ type: "Query",
13933
+ schema: z.array(z.string()).describe("Order items by property values").optional()
13934
+ },
13935
+ {
13936
+ name: "$select",
13937
+ type: "Query",
13938
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
13939
+ },
13940
+ {
13941
+ name: "$expand",
13942
+ type: "Query",
13943
+ schema: z.array(z.string()).describe("Expand related entities").optional()
13944
+ }
13945
+ ],
13946
+ response: z.void()
13947
+ },
13948
+ {
13949
+ method: "get",
13950
+ path: "/sites/:siteId/lists/:listId/items/:listItemId/versions/:listItemVersionId",
13951
+ alias: "get-sharepoint-site-list-item-version",
13952
+ description: `Retrieve the metadata for a specific version of a ListItem.`,
13953
+ requestFormat: "json",
13954
+ parameters: [
13955
+ {
13956
+ name: "$select",
13957
+ type: "Query",
13958
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
13959
+ },
13960
+ {
13961
+ name: "$expand",
13962
+ type: "Query",
13963
+ schema: z.array(z.string()).describe("Expand related entities").optional()
13964
+ }
13965
+ ],
13966
+ response: z.void()
13967
+ },
13968
+ {
13969
+ method: "get",
13970
+ path: "/sites/:siteId/lists/:listId/items/delta()",
13971
+ alias: "list-sharepoint-site-list-items-delta",
13972
+ description: `Get newly created, updated, or deleted list items without having to perform a full read of the entire items collection. Your app begins by calling delta without any parameters.
13973
+ The service starts enumerating the hierarchy of the list, returning pages of items, and either an @odata.nextLink or an @odata.deltaLink.
13974
+ Your app should continue calling with the @odata.nextLink until you see an @odata.deltaLink returned. After you received all the\xA0changes, you can apply them to your local state.
13975
+ To check for changes in the\xA0future, call delta again with the @odata.deltaLink from the previous response. The delta feed shows the latest state for each item, not each change. If an item was renamed twice, it only shows up once, with its latest name.
13976
+ The same item might appear more than once in a delta feed, for various reasons. You should use the last occurrence you see. Items with this property should be removed from your local state.`,
13977
+ requestFormat: "json",
13978
+ parameters: [
13979
+ {
13980
+ name: "$top",
13981
+ type: "Query",
13982
+ schema: z.number().int().gte(0).describe("Show only the first n items").optional()
13983
+ },
13984
+ {
13985
+ name: "$skip",
13986
+ type: "Query",
13987
+ schema: z.number().int().gte(0).describe("Skip the first n items").optional()
13988
+ },
13989
+ {
13990
+ name: "$search",
13991
+ type: "Query",
13992
+ schema: z.string().describe("Search items by search phrases").optional()
13993
+ },
13994
+ {
13995
+ name: "$filter",
13996
+ type: "Query",
13997
+ schema: z.string().describe("Filter items by property values").optional()
13998
+ },
13999
+ {
14000
+ name: "$count",
14001
+ type: "Query",
14002
+ schema: z.boolean().describe("Include count of items").optional()
14003
+ },
14004
+ {
14005
+ name: "$select",
14006
+ type: "Query",
14007
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
14008
+ },
14009
+ {
14010
+ name: "$orderby",
14011
+ type: "Query",
14012
+ schema: z.array(z.string()).describe("Order items by property values").optional()
14013
+ },
14014
+ {
14015
+ name: "$expand",
14016
+ type: "Query",
14017
+ schema: z.array(z.string()).describe("Expand related entities").optional()
14018
+ }
14019
+ ],
14020
+ response: z.void()
14021
+ },
13820
14022
  {
13821
14023
  method: "get",
13822
14024
  path: "/sites/:siteId/onenote/notebooks",
@@ -14033,7 +14235,7 @@ To list them, include system in your $select statement.`,
14033
14235
  name: "body",
14034
14236
  description: `Operation payload`,
14035
14237
  type: "Body",
14036
- schema: update_sharepoint_site_onenote_page_content_Body
14238
+ schema: update_onenote_page_content_Body
14037
14239
  },
14038
14240
  {
14039
14241
  name: "siteId",
@@ -14881,7 +15083,7 @@ Only the policyViolation property of a chatMessage can be updated in application
14881
15083
  name: "body",
14882
15084
  description: `Action parameters`,
14883
15085
  type: "Body",
14884
- schema: z.object({ reactionType: z.string().nullable() }).partial().passthrough()
15086
+ schema: z.object({ reactionType: z.string().nullable() }).partial().loose()
14885
15087
  }
14886
15088
  ],
14887
15089
  response: z.void()
@@ -14897,7 +15099,7 @@ Only the policyViolation property of a chatMessage can be updated in application
14897
15099
  name: "body",
14898
15100
  description: `Action parameters`,
14899
15101
  type: "Body",
14900
- schema: z.object({ reactionType: z.string().nullable() }).partial().passthrough()
15102
+ schema: z.object({ reactionType: z.string().nullable() }).partial().loose()
14901
15103
  }
14902
15104
  ],
14903
15105
  response: z.void()
@@ -15214,7 +15416,7 @@ Only the policyViolation property of a chatMessage can be updated in application
15214
15416
  changeKey: z.string().describe(
15215
15417
  "Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only."
15216
15418
  ).nullish()
15217
- }).passthrough().passthrough()
15419
+ }).loose().loose()
15218
15420
  }
15219
15421
  ],
15220
15422
  response: z.void()
@@ -15403,7 +15605,7 @@ Only the policyViolation property of a chatMessage can be updated in application
15403
15605
  changeKey: z.string().describe(
15404
15606
  "Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only."
15405
15607
  ).nullish()
15406
- }).passthrough().passthrough()
15608
+ }).loose().loose()
15407
15609
  }
15408
15610
  ],
15409
15611
  response: z.void()
@@ -15754,7 +15956,7 @@ Only the policyViolation property of a chatMessage can be updated in application
15754
15956
  isDraft: z.boolean().describe(
15755
15957
  "Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet."
15756
15958
  ).nullish()
15757
- }).passthrough().passthrough()
15959
+ }).loose().loose()
15758
15960
  }
15759
15961
  ],
15760
15962
  response: z.void()
@@ -15841,7 +16043,7 @@ Only the policyViolation property of a chatMessage can be updated in application
15841
16043
  isDraft: z.boolean().describe(
15842
16044
  "Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet."
15843
16045
  ).nullish()
15844
- }).passthrough().passthrough()
16046
+ }).loose().loose()
15845
16047
  }
15846
16048
  ],
15847
16049
  response: z.void()
@@ -16049,7 +16251,7 @@ Only the policyViolation property of a chatMessage can be updated in application
16049
16251
  name: "body",
16050
16252
  description: `Action parameters`,
16051
16253
  type: "Body",
16052
- schema: z.object({ DestinationId: z.string() }).partial().passthrough()
16254
+ schema: z.object({ DestinationId: z.string() }).partial().loose()
16053
16255
  }
16054
16256
  ],
16055
16257
  response: z.void()