@softeria/ms-365-mcp-server 0.192.0 → 0.193.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.
@@ -867,33 +867,86 @@ const microsoft_graph_driveItemCollectionResponse = z.object({
867
867
  "@odata.nextLink": z.string().nullable(),
868
868
  value: z.array(microsoft_graph_driveItem)
869
869
  }).partial().loose();
870
- const copy_drive_item_Body = z.object({
871
- name: z.string().nullable(),
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
- const microsoft_graph_driveRecipient = z.object({
877
- alias: z.string().describe(
878
- "The alias of the domain object, for cases where an email address is unavailable (for example, security groups)."
879
- ).nullish(),
880
- email: z.string().describe(
881
- "The email address for the recipient, if the recipient has an associated email address."
870
+ const microsoft_graph_contentTypeInfo = z.object({
871
+ id: z.string().describe("The ID of the content type.").nullish(),
872
+ name: z.string().describe("The name of the content type.").nullish()
873
+ }).loose();
874
+ const microsoft_graph_itemActionStat = z.object({
875
+ actionCount: z.number().gte(-2147483648).lte(2147483647).describe("The number of times the action took place. Read-only.").nullish(),
876
+ actorCount: z.number().gte(-2147483648).lte(2147483647).describe("The number of distinct actors that performed the action. Read-only.").nullish()
877
+ }).loose();
878
+ const microsoft_graph_incompleteData = z.object({
879
+ missingDataBeforeDateTime: z.string().regex(
880
+ /^[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])$/
881
+ ).datetime({ offset: true }).describe("The service does not have source data before the specified time.").nullish(),
882
+ wasThrottled: z.boolean().describe("Some data was not recorded due to excessive activity.").nullish()
883
+ }).loose();
884
+ const microsoft_graph_accessAction = z.object({}).loose();
885
+ const microsoft_graph_itemActivity = z.object({
886
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
887
+ access: microsoft_graph_accessAction.optional(),
888
+ activityDateTime: z.string().regex(
889
+ /^[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])$/
890
+ ).datetime({ offset: true }).describe("Details about when the activity took place. Read-only.").nullish(),
891
+ actor: microsoft_graph_identitySet.optional(),
892
+ driveItem: microsoft_graph_driveItem.describe("[Note: Simplified from 45 properties to 25 most common ones]").optional()
893
+ }).loose();
894
+ const microsoft_graph_itemActivityStat = z.object({
895
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
896
+ access: microsoft_graph_itemActionStat.optional(),
897
+ create: microsoft_graph_itemActionStat.optional(),
898
+ delete: microsoft_graph_itemActionStat.optional(),
899
+ edit: microsoft_graph_itemActionStat.optional(),
900
+ endDateTime: z.string().regex(
901
+ /^[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])$/
902
+ ).datetime({ offset: true }).describe("When the interval ends. Read-only.").nullish(),
903
+ incompleteData: microsoft_graph_incompleteData.optional(),
904
+ isTrending: z.boolean().describe("Indicates whether the item is 'trending.' Read-only.").nullish(),
905
+ move: microsoft_graph_itemActionStat.optional(),
906
+ startDateTime: z.string().regex(
907
+ /^[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])$/
908
+ ).datetime({ offset: true }).describe("When the interval starts. Read-only.").nullish(),
909
+ activities: z.array(microsoft_graph_itemActivity).describe("Exposes the itemActivities represented in this itemActivityStat resource.").optional()
910
+ }).loose();
911
+ const microsoft_graph_itemAnalytics = z.object({
912
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
913
+ allTime: microsoft_graph_itemActivityStat.optional(),
914
+ itemActivityStats: z.array(microsoft_graph_itemActivityStat).optional(),
915
+ lastSevenDays: microsoft_graph_itemActivityStat.optional()
916
+ }).loose();
917
+ const microsoft_graph_publicationFacet = z.object({
918
+ checkedOutBy: microsoft_graph_identitySet.optional(),
919
+ level: z.string().describe(
920
+ "The state of publication for this document. Either published or checkout. Read-only."
882
921
  ).nullish(),
883
- objectId: z.string().describe("The unique identifier for the recipient in the directory.").nullish()
922
+ versionId: z.string().describe(
923
+ "The unique identifier for the version that is visible to the current caller. Read-only."
924
+ ).nullish()
884
925
  }).loose();
885
- const create_drive_item_share_link_Body = z.object({
886
- type: z.string().nullable(),
887
- scope: z.string().nullable(),
888
- expirationDateTime: z.string().regex(
926
+ const microsoft_graph_fieldValueSet = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).loose();
927
+ const microsoft_graph_documentSetVersionItem = z.object({
928
+ itemId: z.string().describe("The unique identifier for the item.").nullish(),
929
+ title: z.string().describe("The title of the item.").nullish(),
930
+ versionId: z.string().describe("The version ID of the item.").nullish()
931
+ }).loose();
932
+ const microsoft_graph_documentSetVersion = z.object({
933
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
934
+ lastModifiedBy: microsoft_graph_identitySet.optional(),
935
+ lastModifiedDateTime: z.string().regex(
889
936
  /^[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])$/
890
- ).datetime({ offset: true }).nullable(),
891
- password: z.string().nullable(),
892
- message: z.string().nullable(),
893
- recipients: z.array(microsoft_graph_driveRecipient),
894
- retainInheritedPermissions: z.boolean().nullable().meta({ default: false }),
895
- sendNotification: z.boolean().nullable().meta({ default: false })
896
- }).partial().loose();
937
+ ).datetime({ offset: true }).describe("Date and time the version was last modified. Read-only.").nullish(),
938
+ publication: microsoft_graph_publicationFacet.optional(),
939
+ fields: microsoft_graph_fieldValueSet.optional(),
940
+ comment: z.string().describe("Comment about the captured version.").nullish(),
941
+ createdBy: microsoft_graph_identitySet.optional(),
942
+ createdDateTime: z.string().regex(
943
+ /^[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])$/
944
+ ).datetime({ offset: true }).describe("Date and time when this version was created.").nullish(),
945
+ items: z.array(microsoft_graph_documentSetVersionItem).describe("Items within the document set that are captured as part of this version.").optional(),
946
+ shouldCaptureMinorVersion: z.boolean().describe(
947
+ "If true, minor versions of items are also captured; otherwise, only major versions are captured. The default value is false."
948
+ ).nullish()
949
+ }).loose();
897
950
  const microsoft_graph_sharePointGroupIdentity = z.object({
898
951
  displayName: z.string().describe(
899
952
  "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."
@@ -974,6 +1027,71 @@ const microsoft_graph_permission = z.object({
974
1027
  "A unique token that can be used to access this shared item via the shares API. Read-only."
975
1028
  ).nullish()
976
1029
  }).loose();
1030
+ const microsoft_graph_listItemVersion = z.object({
1031
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1032
+ lastModifiedBy: microsoft_graph_identitySet.optional(),
1033
+ lastModifiedDateTime: z.string().regex(
1034
+ /^[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])$/
1035
+ ).datetime({ offset: true }).describe("Date and time the version was last modified. Read-only.").nullish(),
1036
+ publication: microsoft_graph_publicationFacet.optional(),
1037
+ fields: microsoft_graph_fieldValueSet.optional()
1038
+ }).loose();
1039
+ const microsoft_graph_listItem = z.object({
1040
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1041
+ createdBy: microsoft_graph_identitySet.optional(),
1042
+ createdDateTime: z.string().regex(
1043
+ /^[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])$/
1044
+ ).datetime({ offset: true }).describe("Date and time of item creation. Read-only.").optional(),
1045
+ description: z.string().describe("Provides a user-visible description of the item. Optional.").nullish(),
1046
+ eTag: z.string().describe("ETag for the item. Read-only.").nullish(),
1047
+ lastModifiedBy: microsoft_graph_identitySet.optional(),
1048
+ lastModifiedDateTime: z.string().regex(
1049
+ /^[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])$/
1050
+ ).datetime({ offset: true }).describe("Date and time the item was last modified. Read-only.").optional(),
1051
+ name: z.string().describe("The name of the item. Read-write.").nullish(),
1052
+ parentReference: microsoft_graph_itemReference.optional(),
1053
+ webUrl: z.string().describe(
1054
+ "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
1055
+ ).nullish(),
1056
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
1057
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
1058
+ contentType: microsoft_graph_contentTypeInfo.optional(),
1059
+ deleted: microsoft_graph_deleted.optional(),
1060
+ sharepointIds: microsoft_graph_sharepointIds.optional(),
1061
+ analytics: microsoft_graph_itemAnalytics.optional(),
1062
+ documentSetVersions: z.array(microsoft_graph_documentSetVersion).describe("Version information for a document set version created by a user.").optional(),
1063
+ driveItem: microsoft_graph_driveItem.describe("[Note: Simplified from 45 properties to 25 most common ones]").optional(),
1064
+ fields: microsoft_graph_fieldValueSet.optional(),
1065
+ permissions: z.array(microsoft_graph_permission).describe("The set of permissions for the item. Read-only. Nullable.").optional(),
1066
+ versions: z.array(microsoft_graph_listItemVersion).describe("The list of previous versions of the list item.").optional()
1067
+ }).loose();
1068
+ const copy_drive_item_Body = z.object({
1069
+ name: z.string().nullable(),
1070
+ parentReference: z.union([microsoft_graph_itemReference, z.object({}).partial().loose()]),
1071
+ childrenOnly: z.boolean().nullable().meta({ default: false }),
1072
+ includeAllVersionHistory: z.boolean().nullable().meta({ default: false })
1073
+ }).partial().loose();
1074
+ const microsoft_graph_driveRecipient = z.object({
1075
+ alias: z.string().describe(
1076
+ "The alias of the domain object, for cases where an email address is unavailable (for example, security groups)."
1077
+ ).nullish(),
1078
+ email: z.string().describe(
1079
+ "The email address for the recipient, if the recipient has an associated email address."
1080
+ ).nullish(),
1081
+ objectId: z.string().describe("The unique identifier for the recipient in the directory.").nullish()
1082
+ }).loose();
1083
+ const create_drive_item_share_link_Body = z.object({
1084
+ type: z.string().nullable(),
1085
+ scope: z.string().nullable(),
1086
+ expirationDateTime: z.string().regex(
1087
+ /^[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])$/
1088
+ ).datetime({ offset: true }).nullable(),
1089
+ password: z.string().nullable(),
1090
+ message: z.string().nullable(),
1091
+ recipients: z.array(microsoft_graph_driveRecipient),
1092
+ retainInheritedPermissions: z.boolean().nullable().meta({ default: false }),
1093
+ sendNotification: z.boolean().nullable().meta({ default: false })
1094
+ }).partial().loose();
977
1095
  const microsoft_graph_driveItemSourceApplication = z.enum([
978
1096
  "teams",
979
1097
  "yammer",
@@ -1093,15 +1211,6 @@ const microsoft_graph_thumbnailSetCollectionResponse = z.object({
1093
1211
  "@odata.nextLink": z.string().nullable(),
1094
1212
  value: z.array(microsoft_graph_thumbnailSet)
1095
1213
  }).partial().loose();
1096
- const microsoft_graph_publicationFacet = z.object({
1097
- checkedOutBy: microsoft_graph_identitySet.optional(),
1098
- level: z.string().describe(
1099
- "The state of publication for this document. Either published or checkout. Read-only."
1100
- ).nullish(),
1101
- versionId: z.string().describe(
1102
- "The unique identifier for the version that is visible to the current caller. Read-only."
1103
- ).nullish()
1104
- }).loose();
1105
1214
  const microsoft_graph_driveItemVersion = z.object({
1106
1215
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1107
1216
  lastModifiedBy: microsoft_graph_identitySet.optional(),
@@ -1580,1362 +1689,1263 @@ const microsoft_graph_workbookRange = z.object({
1580
1689
  worksheet: microsoft_graph_workbookWorksheet.optional()
1581
1690
  }).loose();
1582
1691
  const create_excel_table_Body = z.object({ address: z.string().nullable(), hasHeaders: z.boolean().meta({ default: false }) }).partial().loose();
1583
- const microsoft_graph_groupAccessType = z.enum([
1584
- "none",
1585
- "private",
1586
- "secret",
1587
- "public",
1692
+ const microsoft_graph_listInfo = z.object({
1693
+ contentTypesEnabled: z.boolean().describe("If true, indicates that content types are enabled for this list.").nullish(),
1694
+ hidden: z.boolean().describe(
1695
+ "If true, indicates that the list isn't normally visible in the SharePoint user experience."
1696
+ ).nullish(),
1697
+ template: z.string().describe(
1698
+ "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."
1699
+ ).nullish()
1700
+ }).loose();
1701
+ const microsoft_graph_systemFacet = z.object({}).loose();
1702
+ const microsoft_graph_columnTypes = z.enum([
1703
+ "note",
1704
+ "text",
1705
+ "choice",
1706
+ "multichoice",
1707
+ "number",
1708
+ "currency",
1709
+ "dateTime",
1710
+ "lookup",
1711
+ "boolean",
1712
+ "user",
1713
+ "url",
1714
+ "calculated",
1715
+ "location",
1716
+ "geolocation",
1717
+ "term",
1718
+ "multiterm",
1719
+ "thumbnail",
1720
+ "approvalStatus",
1588
1721
  "unknownFutureValue"
1589
1722
  ]);
1590
- const microsoft_graph_assignedLabel = z.object({
1591
- displayName: z.string().describe("The display name of the label. Read-only.").nullish(),
1592
- labelId: z.string().describe("The unique identifier of the label.").nullish()
1593
- }).loose();
1594
- const microsoft_graph_licenseProcessingState = z.object({ state: z.string().nullish() }).loose();
1595
- const microsoft_graph_group = z.object({
1596
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1597
- displayName: z.string().describe(
1598
- "The display name for the group. This property is required when a group is created and can't be cleared during updates. Maximum length is 256 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby."
1599
- ).nullish(),
1600
- description: z.string().describe(
1601
- "An optional description for the group. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith) and $search."
1602
- ).nullish(),
1603
- createdDateTime: z.string().regex(
1604
- /^[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])$/
1605
- ).datetime({ offset: true }).describe(
1606
- "Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Read-only."
1723
+ const microsoft_graph_booleanColumn = z.object({}).loose();
1724
+ const microsoft_graph_calculatedColumn = z.object({
1725
+ format: z.string().describe(
1726
+ "For dateTime output types, the format of the value. The possible values are: dateOnly or dateTime."
1607
1727
  ).nullish(),
1608
- deletedDateTime: z.string().regex(
1609
- /^[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])$/
1610
- ).datetime({ offset: true }).describe(
1611
- "Date and time when this object was deleted. Always null when the object hasn't been deleted."
1728
+ formula: z.string().describe("The formula used to compute the value for this column.").nullish(),
1729
+ outputType: z.string().describe(
1730
+ "The output type used to format values in this column. The possible values are: boolean, currency, dateTime, number, or text."
1731
+ ).nullish()
1732
+ }).loose();
1733
+ const microsoft_graph_choiceColumn = z.object({
1734
+ allowTextEntry: z.boolean().describe("If true, allows custom values that aren't in the configured choices.").nullish(),
1735
+ choices: z.array(z.string().nullable()).describe("The list of values available for this column.").optional(),
1736
+ displayAs: z.string().describe(
1737
+ "How the choices are to be presented in the UX. Must be one of checkBoxes, dropDownMenu, or radioButtons"
1738
+ ).nullish()
1739
+ }).loose();
1740
+ const microsoft_graph_contentApprovalStatusColumn = z.object({}).loose();
1741
+ const microsoft_graph_currencyColumn = z.object({
1742
+ locale: z.string().describe("Specifies the locale from which to infer the currency symbol.").nullish()
1743
+ }).loose();
1744
+ const microsoft_graph_dateTimeColumn = z.object({
1745
+ displayAs: z.string().describe(
1746
+ "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."
1612
1747
  ).nullish(),
1613
- accessType: microsoft_graph_groupAccessType.optional(),
1614
- allowExternalSenders: z.boolean().describe(
1615
- "Indicates if people external to the organization can send messages to the group. The default value is false. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
1616
- ).nullish(),
1617
- assignedLabels: z.array(microsoft_graph_assignedLabel).describe(
1618
- "The list of sensitivity label pairs (label ID, label name) associated with a Microsoft 365 group or a cloud security group. Requires a Microsoft Entra ID P1 license. Requires $select to retrieve. This property can be specified during group creation or update. However, for cloud security groups, it's immutable once set. This property can be updated only in delegated scenarios where the caller requires both the Microsoft Graph permission and a supported administrator role. To learn more about managing this property for Microsoft 365 vs. cloud security groups, see Key differences from Microsoft 365 group labeling."
1619
- ).optional(),
1620
- assignedLicenses: z.array(microsoft_graph_assignedLicense).describe(
1621
- "The licenses that are assigned to the group. Requires $select to retrieve. Supports $filter (eq). Read-only."
1622
- ).optional(),
1623
- autoSubscribeNewMembers: z.boolean().describe(
1624
- "Indicates if new members added to the group are autosubscribed to receive email notifications. You can set this property in a PATCH request for the group; don't set it in the initial POST request that creates the group. Default value is false. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
1625
- ).nullish(),
1626
- classification: z.string().describe(
1627
- "Describes a classification for the group (such as low, medium, or high business impact). Valid values for this property are defined by creating a ClassificationList setting value, based on the template definition.Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith)."
1628
- ).nullish(),
1629
- expirationDateTime: z.string().regex(
1630
- /^[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])$/
1631
- ).datetime({ offset: true }).describe(
1632
- "Timestamp of when the group is set to expire. It's null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only."
1633
- ).nullish(),
1634
- groupTypes: z.array(z.string()).describe(
1635
- "Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static. Returned by default. Supports $filter (eq, not)."
1636
- ).optional(),
1637
- hasMembersWithLicenseErrors: z.boolean().describe(
1638
- "Indicates whether there are members in this group that have license errors from its group-based license assignment. This property is never returned on a GET operation. You can use it as a $filter argument to get groups that have members with license errors (that is, filter for this property being true). See an example. Supports $filter (eq)."
1639
- ).nullish(),
1640
- hideFromAddressLists: z.boolean().describe(
1641
- "True if the group isn't displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, false. The default value is false. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
1642
- ).nullish(),
1643
- hideFromOutlookClients: z.boolean().describe(
1644
- "True if the group isn't displayed in Outlook clients, such as Outlook for Windows and Outlook on the web; otherwise, false. The default value is false. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
1645
- ).nullish(),
1646
- infoCatalogs: z.array(z.string()).optional(),
1647
- isArchived: z.boolean().describe(
1648
- "When a group is associated with a team, this property determines whether the team is in read-only mode.To read this property, use the /group/{groupId}/team endpoint or the Get team API. To update this property, use the archiveTeam and unarchiveTeam APIs."
1748
+ format: z.string().describe(
1749
+ "Indicates whether the value should be presented as a date only or a date and time. Must be one of dateOnly or dateTime"
1750
+ ).nullish()
1751
+ }).loose();
1752
+ const microsoft_graph_defaultColumnValue = z.object({
1753
+ formula: z.string().describe("The formula used to compute the default value for the column.").nullish(),
1754
+ value: z.string().describe("The direct value to use as the default value for the column.").nullish()
1755
+ }).loose();
1756
+ const microsoft_graph_geolocationColumn = z.object({}).loose();
1757
+ const microsoft_graph_hyperlinkOrPictureColumn = z.object({
1758
+ isPicture: z.boolean().describe(
1759
+ "Specifies whether the display format used for URL columns is an image or a hyperlink."
1760
+ ).nullish()
1761
+ }).loose();
1762
+ const microsoft_graph_lookupColumn = z.object({
1763
+ allowMultipleValues: z.boolean().describe("Indicates whether multiple values can be selected from the source.").nullish(),
1764
+ allowUnlimitedLength: z.boolean().describe(
1765
+ "Indicates whether values in the column should be able to exceed the standard limit of 255 characters."
1649
1766
  ).nullish(),
1650
- isAssignableToRole: z.boolean().describe(
1651
- "Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group can't be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license. Returned by default. Supports $filter (eq, ne, not)."
1767
+ columnName: z.string().describe("The name of the lookup source column.").nullish(),
1768
+ listId: z.string().describe("The unique identifier of the lookup source list.").nullish(),
1769
+ primaryLookupColumnId: z.string().describe(
1770
+ "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."
1771
+ ).nullish()
1772
+ }).loose();
1773
+ const microsoft_graph_numberColumn = z.object({
1774
+ decimalPlaces: z.string().describe(
1775
+ "How many decimal places to display. See below for information about the possible values."
1652
1776
  ).nullish(),
1653
- isFavorite: z.boolean().describe(
1654
- "Indicates whether the user marked the group as favorite. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
1777
+ displayAs: z.string().describe(
1778
+ "How the value should be presented in the UX. Must be one of number or percentage. If unspecified, treated as number."
1655
1779
  ).nullish(),
1656
- isManagementRestricted: z.boolean().describe(
1657
- "Indicates whether the group is a member of a restricted management administrative unit. If not set, the default value is null and the default behavior is false. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. Requires $select to retrieve."
1780
+ maximum: z.number().describe("The maximum permitted value. [Simplified from 3 options]").nullish(),
1781
+ minimum: z.number().describe("The minimum permitted value. [Simplified from 3 options]").nullish()
1782
+ }).loose();
1783
+ const microsoft_graph_personOrGroupColumn = z.object({
1784
+ allowMultipleSelection: z.boolean().describe("Indicates whether multiple values can be selected from the source.").nullish(),
1785
+ chooseFromType: z.string().describe(
1786
+ "Whether to allow selection of people only, or people and groups. Must be one of peopleAndGroups or peopleOnly."
1658
1787
  ).nullish(),
1659
- isSubscribedByMail: z.boolean().describe(
1660
- "Indicates whether the signed-in user is subscribed to receive email conversations. The default value is true. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
1788
+ displayAs: z.string().describe("How to display the information about the person or group chosen. See below.").nullish()
1789
+ }).loose();
1790
+ const microsoft_graph_columnDefinition = z.object({
1791
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1792
+ name: z.string().describe(
1793
+ "The API-facing name of the column as it appears in the fields on a listItem. For the user-facing name, see displayName."
1661
1794
  ).nullish(),
1662
- licenseProcessingState: microsoft_graph_licenseProcessingState.optional(),
1663
- mail: z.string().describe(
1664
- "The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Returned by default. Read-only. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values)."
1795
+ displayName: z.string().describe("The user-facing name of the column.").nullish(),
1796
+ description: z.string().describe("The user-facing description of the column.").nullish(),
1797
+ type: microsoft_graph_columnTypes.optional(),
1798
+ boolean: microsoft_graph_booleanColumn.optional(),
1799
+ calculated: microsoft_graph_calculatedColumn.optional(),
1800
+ choice: microsoft_graph_choiceColumn.optional(),
1801
+ columnGroup: z.string().describe(
1802
+ "For site columns, the name of the group this column belongs to. Helps organize related columns."
1665
1803
  ).nullish(),
1666
- mailEnabled: z.boolean().describe(
1667
- "Specifies whether the group is mail-enabled. Required. Returned by default. Supports $filter (eq, ne, not)."
1804
+ contentApprovalStatus: microsoft_graph_contentApprovalStatusColumn.optional(),
1805
+ currency: microsoft_graph_currencyColumn.optional(),
1806
+ dateTime: microsoft_graph_dateTimeColumn.optional(),
1807
+ defaultValue: microsoft_graph_defaultColumnValue.optional(),
1808
+ enforceUniqueValues: z.boolean().describe("If true, no two list items may have the same value for this column.").nullish(),
1809
+ geolocation: microsoft_graph_geolocationColumn.optional(),
1810
+ hidden: z.boolean().describe("Specifies whether the column is displayed in the user interface.").nullish(),
1811
+ hyperlinkOrPicture: microsoft_graph_hyperlinkOrPictureColumn.optional(),
1812
+ indexed: z.boolean().describe("Specifies whether the column values can be used for sorting and searching.").nullish(),
1813
+ isDeletable: z.boolean().describe("Indicates whether this column can be deleted.").nullish(),
1814
+ isReorderable: z.boolean().describe("Indicates whether values in the column can be reordered. Read-only.").nullish(),
1815
+ isSealed: z.boolean().describe("Specifies whether the column can be changed.").nullish(),
1816
+ lookup: microsoft_graph_lookupColumn.optional(),
1817
+ number: microsoft_graph_numberColumn.optional(),
1818
+ personOrGroup: microsoft_graph_personOrGroupColumn.optional(),
1819
+ propagateChanges: z.boolean().describe(
1820
+ "If 'true', changes to this column will be propagated to lists that implement the column."
1668
1821
  ).nullish()
1669
1822
  }).loose().loose();
1670
- const microsoft_graph_groupCollectionResponse = z.object({
1671
- "@odata.count": z.number().int().nullable(),
1672
- "@odata.nextLink": z.string().nullable(),
1673
- value: z.array(microsoft_graph_group)
1674
- }).partial().loose();
1675
- const microsoft_graph_eventType = z.enum([
1676
- "singleInstance",
1677
- "occurrence",
1678
- "exception",
1679
- "seriesMaster"
1680
- ]);
1681
- const microsoft_graph_attachment = z.object({
1682
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1683
- contentType: z.string().describe("The MIME type.").nullish(),
1684
- isInline: z.boolean().describe("true if the attachment is an inline attachment; otherwise, false.").optional(),
1685
- lastModifiedDateTime: z.string().regex(
1686
- /^[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])$/
1687
- ).datetime({ offset: true }).describe(
1688
- "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
1823
+ const microsoft_graph_documentSetContent = z.object({
1824
+ contentType: microsoft_graph_contentTypeInfo.optional(),
1825
+ fileName: z.string().describe(
1826
+ "Name of the file in resource folder that should be added as a default content or a template in the document set."
1689
1827
  ).nullish(),
1690
- name: z.string().describe("The attachment's file name.").nullish(),
1691
- size: z.number().gte(-2147483648).lte(2147483647).describe("The length of the attachment in bytes.").optional()
1828
+ folderName: z.string().describe(
1829
+ "Folder name in which the file will be placed when a new document set is created in the library."
1830
+ ).nullish()
1692
1831
  }).loose();
1693
- const microsoft_graph_singleValueLegacyExtendedProperty = z.object({
1694
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1695
- value: z.string().describe("A property value.").nullish()
1832
+ const microsoft_graph_documentSet = z.object({
1833
+ allowedContentTypes: z.array(microsoft_graph_contentTypeInfo).describe("Content types allowed in document set.").optional(),
1834
+ defaultContents: z.array(microsoft_graph_documentSetContent).describe("Default contents of document set.").optional(),
1835
+ propagateWelcomePageChanges: z.boolean().describe("Specifies whether to push welcome page changes to inherited content types.").nullish(),
1836
+ shouldPrefixNameToFile: z.boolean().describe("Indicates whether to add the name of the document set to each file name.").nullish(),
1837
+ welcomePageUrl: z.string().describe("Welcome page absolute URL.").nullish(),
1838
+ sharedColumns: z.array(microsoft_graph_columnDefinition).optional(),
1839
+ welcomePageColumns: z.array(microsoft_graph_columnDefinition).optional()
1696
1840
  }).loose();
1697
- const microsoft_graph_multiValueLegacyExtendedProperty = z.object({
1698
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1699
- value: z.array(z.string().nullable()).describe("A collection of property values.").optional()
1841
+ const microsoft_graph_contentTypeOrder = z.object({
1842
+ default: z.boolean().describe("Indicates whether this is the default content type").nullish(),
1843
+ position: z.number().gte(-2147483648).lte(2147483647).describe("Specifies the position in which the content type appears in the selection UI.").nullish()
1700
1844
  }).loose();
1701
- const microsoft_graph_physicalAddress = z.object({
1702
- city: z.string().describe("The city.").nullish(),
1703
- countryOrRegion: z.string().describe(
1704
- "The country or region. It's a free-format string value, for example, 'United States'."
1705
- ).nullish(),
1706
- postalCode: z.string().describe("The postal code.").nullish(),
1707
- state: z.string().describe("The state.").nullish(),
1708
- street: z.string().describe("The street.").nullish()
1845
+ const microsoft_graph_columnLink = z.object({
1846
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1847
+ name: z.string().describe("The name of the column in this content type.").nullish()
1709
1848
  }).loose();
1710
- const microsoft_graph_outlookGeoCoordinates = z.object({
1711
- accuracy: z.number().describe(
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]"
1713
- ).nullish(),
1714
- altitude: z.number().describe("The altitude of the location. [Simplified from 3 options]").nullish(),
1715
- altitudeAccuracy: z.number().describe("The accuracy of the altitude. [Simplified from 3 options]").nullish(),
1716
- latitude: z.number().describe("The latitude of the location. [Simplified from 3 options]").nullish(),
1717
- longitude: z.number().describe("The longitude of the location. [Simplified from 3 options]").nullish()
1849
+ const microsoft_graph_contentType = z.lazy(
1850
+ () => z.object({
1851
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1852
+ associatedHubsUrls: z.array(z.string().nullable()).describe(
1853
+ "List of canonical URLs for hub sites with which this content type is associated to. This will contain all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type is applied to the lists in the enforced sites."
1854
+ ).optional(),
1855
+ description: z.string().describe("The descriptive text for the item.").nullish(),
1856
+ documentSet: microsoft_graph_documentSet.optional(),
1857
+ documentTemplate: microsoft_graph_documentSetContent.optional(),
1858
+ group: z.string().describe(
1859
+ "The name of the group this content type belongs to. Helps organize related content types."
1860
+ ).nullish(),
1861
+ hidden: z.boolean().describe("Indicates whether the content type is hidden in the list's 'New' menu.").nullish(),
1862
+ inheritedFrom: microsoft_graph_itemReference.optional(),
1863
+ isBuiltIn: z.boolean().describe("Specifies if a content type is a built-in content type.").nullish(),
1864
+ name: z.string().describe("The name of the content type.").nullish(),
1865
+ order: microsoft_graph_contentTypeOrder.optional(),
1866
+ parentId: z.string().describe("The unique identifier of the content type.").nullish(),
1867
+ propagateChanges: z.boolean().describe(
1868
+ "If true, any changes made to the content type are pushed to inherited content types and lists that implement the content type."
1869
+ ).nullish(),
1870
+ readOnly: z.boolean().describe(
1871
+ "If true, the content type can't be modified unless this value is first set to false."
1872
+ ).nullish(),
1873
+ sealed: z.boolean().describe(
1874
+ "If true, the content type can't be modified by users or through push-down operations. Only site collection administrators can seal or unseal content types."
1875
+ ).nullish(),
1876
+ base: microsoft_graph_contentType.optional(),
1877
+ baseTypes: z.array(microsoft_graph_contentType).describe("The collection of content types that are ancestors of this content type.").optional(),
1878
+ columnLinks: z.array(microsoft_graph_columnLink).describe("The collection of columns that are required by this content type.").optional(),
1879
+ columnPositions: z.array(microsoft_graph_columnDefinition).describe("Column order information in a content type.").optional(),
1880
+ columns: z.array(microsoft_graph_columnDefinition).describe("The collection of column definitions for this content type.").optional()
1881
+ }).loose()
1882
+ );
1883
+ const microsoft_graph_storagePlanInformation = z.object({
1884
+ upgradeAvailable: z.boolean().describe("Indicates whether there are higher storage quota plans available. Read-only.").nullish()
1718
1885
  }).loose();
1719
- const microsoft_graph_locationType = z.enum([
1720
- "default",
1721
- "conferenceRoom",
1722
- "homeAddress",
1723
- "businessAddress",
1724
- "geoCoordinates",
1725
- "streetAddress",
1726
- "hotel",
1727
- "restaurant",
1728
- "localBusiness",
1729
- "postalAddress"
1730
- ]);
1731
- const microsoft_graph_locationUniqueIdType = z.enum([
1732
- "unknown",
1733
- "locationStore",
1734
- "directory",
1735
- "private",
1736
- "bing"
1737
- ]);
1738
- const microsoft_graph_location = z.object({
1739
- address: microsoft_graph_physicalAddress.optional(),
1740
- coordinates: microsoft_graph_outlookGeoCoordinates.optional(),
1741
- displayName: z.string().describe("The name associated with the location.").nullish(),
1742
- locationEmailAddress: z.string().describe("Optional email address of the location.").nullish(),
1743
- locationType: microsoft_graph_locationType.optional(),
1744
- locationUri: z.string().describe("Optional URI representing the location.").nullish(),
1745
- uniqueId: z.string().describe("For internal use only.").nullish(),
1746
- uniqueIdType: microsoft_graph_locationUniqueIdType.optional()
1886
+ const microsoft_graph_quota = z.object({
1887
+ deleted: z.number().describe("Total space consumed by files in the recycle bin, in bytes. Read-only.").nullish(),
1888
+ remaining: z.number().describe("Total space remaining before reaching the capacity limit, in bytes. Read-only.").nullish(),
1889
+ state: z.string().describe("Enumeration value that indicates the state of the storage space. Read-only.").nullish(),
1890
+ storagePlanInformation: microsoft_graph_storagePlanInformation.optional(),
1891
+ total: z.number().describe("Total allowed storage space, in bytes. Read-only.").nullish(),
1892
+ used: z.number().describe("Total space used, in bytes. Read-only.").nullish()
1747
1893
  }).loose();
1748
- const microsoft_graph_freeBusyStatus = z.enum([
1749
- "unknown",
1750
- "free",
1751
- "tentative",
1752
- "busy",
1753
- "oof",
1754
- "workingElsewhere"
1755
- ]);
1756
- const microsoft_graph_sensitivity = z.enum(["normal", "personal", "private", "confidential"]);
1757
- const microsoft_graph_importance = z.enum(["low", "normal", "high"]);
1758
- const microsoft_graph_emailAddress = z.object({
1759
- address: z.string().describe("The email address of the person or entity.").nullish(),
1760
- name: z.string().describe("The display name of the person or entity.").nullish()
1761
- }).loose();
1762
- const microsoft_graph_attendeeType = z.enum(["required", "optional", "resource"]);
1763
- const microsoft_graph_timeSlot = z.object({
1764
- end: microsoft_graph_dateTimeTimeZone.optional(),
1765
- start: microsoft_graph_dateTimeTimeZone.optional()
1766
- }).loose();
1767
- const microsoft_graph_responseType = z.enum([
1768
- "none",
1769
- "organizer",
1770
- "tentativelyAccepted",
1771
- "accepted",
1772
- "declined",
1773
- "notResponded"
1774
- ]);
1775
- const microsoft_graph_responseStatus = z.object({
1776
- response: microsoft_graph_responseType.optional(),
1777
- time: z.string().regex(
1778
- /^[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])$/
1779
- ).datetime({ offset: true }).describe(
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
- ).nullish()
1782
- }).loose();
1783
- const microsoft_graph_attendee = z.object({
1784
- emailAddress: microsoft_graph_emailAddress.optional(),
1785
- type: microsoft_graph_attendeeType.optional(),
1786
- proposedNewTime: microsoft_graph_timeSlot.optional(),
1787
- status: microsoft_graph_responseStatus.optional()
1788
- }).loose();
1789
- const microsoft_graph_dayOfWeek = z.enum([
1790
- "sunday",
1791
- "monday",
1792
- "tuesday",
1793
- "wednesday",
1794
- "thursday",
1795
- "friday",
1796
- "saturday"
1797
- ]);
1798
- const microsoft_graph_weekIndex = z.enum(["first", "second", "third", "fourth", "last"]);
1799
- const microsoft_graph_recurrencePatternType = z.enum([
1800
- "daily",
1801
- "weekly",
1802
- "absoluteMonthly",
1803
- "relativeMonthly",
1804
- "absoluteYearly",
1805
- "relativeYearly"
1806
- ]);
1807
- const microsoft_graph_recurrencePattern = z.object({
1808
- dayOfMonth: z.number().gte(-2147483648).lte(2147483647).describe(
1809
- "The day of the month on which the event occurs. Required if type is absoluteMonthly or absoluteYearly."
1810
- ).optional(),
1811
- daysOfWeek: z.array(z.union([microsoft_graph_dayOfWeek, z.object({}).partial().loose()])).describe(
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
- ).optional(),
1814
- firstDayOfWeek: microsoft_graph_dayOfWeek.optional(),
1815
- index: microsoft_graph_weekIndex.optional(),
1816
- interval: z.number().gte(-2147483648).lte(2147483647).describe(
1817
- "The number of units between occurrences, where units can be in days, weeks, months, or years, depending on the type. Required."
1818
- ).optional(),
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
- type: microsoft_graph_recurrencePatternType.optional()
1821
- }).loose();
1822
- const microsoft_graph_recurrenceRangeType = z.enum(["endDate", "noEnd", "numbered"]);
1823
- const microsoft_graph_recurrenceRange = z.object({
1824
- endDate: z.string().regex(/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/).describe(
1825
- "The date to stop applying the recurrence pattern. Depending on the recurrence pattern of the event, the last occurrence of the meeting may not be this date. Required if type is endDate."
1826
- ).nullish(),
1827
- numberOfOccurrences: z.number().gte(-2147483648).lte(2147483647).describe(
1828
- "The number of times to repeat the event. Required and must be positive if type is numbered."
1829
- ).optional(),
1830
- recurrenceTimeZone: z.string().describe(
1831
- "Time zone for the startDate and endDate properties. Optional. If not specified, the time zone of the event is used."
1832
- ).nullish(),
1833
- startDate: z.string().regex(/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/).describe(
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
- ).nullish(),
1836
- type: microsoft_graph_recurrenceRangeType.optional()
1837
- }).loose();
1838
- const microsoft_graph_patternedRecurrence = z.object({
1839
- pattern: microsoft_graph_recurrencePattern.optional(),
1840
- range: microsoft_graph_recurrenceRange.optional()
1841
- }).loose();
1842
- const microsoft_graph_event = z.object({
1843
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1844
- createdDateTime: z.string().regex(
1845
- /^[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])$/
1846
- ).datetime({ offset: true }).describe(
1847
- "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
1848
- ).nullish(),
1849
- lastModifiedDateTime: z.string().regex(
1850
- /^[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])$/
1851
- ).datetime({ offset: true }).describe(
1852
- "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
1853
- ).nullish(),
1854
- type: microsoft_graph_eventType.optional(),
1855
- body: microsoft_graph_itemBody.optional(),
1856
- subject: z.string().describe("The text of the event's subject line.").nullish(),
1857
- attachments: z.array(microsoft_graph_attachment).describe(
1858
- "The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable."
1859
- ).optional(),
1860
- singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
1861
- "The collection of single-value extended properties defined for the event. Read-only. Nullable."
1862
- ).optional(),
1863
- multiValueExtendedProperties: z.array(microsoft_graph_multiValueLegacyExtendedProperty).describe(
1864
- "The collection of multi-value extended properties defined for the event. Read-only. Nullable."
1865
- ).optional(),
1866
- start: microsoft_graph_dateTimeTimeZone.optional(),
1867
- end: microsoft_graph_dateTimeTimeZone.optional(),
1868
- location: microsoft_graph_location.optional(),
1869
- showAs: microsoft_graph_freeBusyStatus.optional(),
1870
- sensitivity: microsoft_graph_sensitivity.optional(),
1871
- isAllDay: z.boolean().describe(
1872
- "Set to true if the event lasts all day. If true, regardless of whether it's a single-day or multi-day event, start, and endtime must be set to midnight and be in the same time zone."
1873
- ).nullish(),
1874
- importance: microsoft_graph_importance.optional(),
1875
- isOnlineMeeting: z.boolean().describe(
1876
- "True if this event has online meeting information (that is, onlineMeeting points to an onlineMeetingInfo resource), false otherwise. Default is false (onlineMeeting is null). Optional. After you set isOnlineMeeting to true, Microsoft Graph initializes onlineMeeting. Subsequently, Outlook ignores any further changes to isOnlineMeeting, and the meeting remains available online."
1877
- ).nullish(),
1878
- isReminderOn: z.boolean().describe("Set to true if an alert is set to remind the user of the event.").nullish(),
1879
- attendees: z.array(microsoft_graph_attendee).describe("The collection of attendees for the event.").optional(),
1880
- recurrence: microsoft_graph_patternedRecurrence.optional(),
1881
- reminderMinutesBeforeStart: z.number().gte(-2147483648).lte(2147483647).describe("The number of minutes before the event start time that the reminder alert occurs.").nullish(),
1882
- allowNewTimeProposals: z.boolean().describe(
1883
- "true if the meeting organizer allows invitees to propose a new time when responding; otherwise, false. Optional. The default is true."
1884
- ).nullish(),
1885
- responseRequested: z.boolean().describe(
1886
- "Default is true, which represents the organizer would like an invitee to send a response to the event."
1887
- ).nullish(),
1888
- categories: z.array(z.string().nullable()).describe("The categories associated with the item").optional(),
1889
- changeKey: z.string().describe(
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
- ).nullish()
1892
- }).loose().loose();
1893
- const microsoft_graph_eventCollectionResponse = z.object({
1894
- "@odata.count": z.number().int().nullable(),
1895
- "@odata.nextLink": z.string().nullable(),
1896
- value: z.array(microsoft_graph_event)
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
- const microsoft_graph_post = z.lazy(
1894
+ const microsoft_graph_drive = z.lazy(
1901
1895
  () => z.object({
1902
1896
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1903
- categories: z.array(z.string().nullable()).describe("The categories associated with the item").optional(),
1904
- changeKey: z.string().describe(
1905
- "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."
1906
- ).nullish(),
1897
+ createdBy: microsoft_graph_identitySet.optional(),
1907
1898
  createdDateTime: z.string().regex(
1908
1899
  /^[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])$/
1909
- ).datetime({ offset: true }).describe(
1910
- "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
1911
- ).nullish(),
1900
+ ).datetime({ offset: true }).describe("Date and time of item creation. Read-only.").optional(),
1901
+ description: z.string().describe("Provides a user-visible description of the item. Optional.").nullish(),
1902
+ eTag: z.string().describe("ETag for the item. Read-only.").nullish(),
1903
+ lastModifiedBy: microsoft_graph_identitySet.optional(),
1912
1904
  lastModifiedDateTime: z.string().regex(
1913
1905
  /^[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])$/
1914
- ).datetime({ offset: true }).describe(
1915
- "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
1906
+ ).datetime({ offset: true }).describe("Date and time the item was last modified. Read-only.").optional(),
1907
+ name: z.string().describe("The name of the item. Read-write.").nullish(),
1908
+ parentReference: microsoft_graph_itemReference.optional(),
1909
+ webUrl: z.string().describe(
1910
+ "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
1916
1911
  ).nullish(),
1917
- body: microsoft_graph_itemBody.optional(),
1918
- conversationId: z.string().describe("Unique ID of the conversation. Read-only.").nullish(),
1919
- conversationThreadId: z.string().describe("Unique ID of the conversation thread. Read-only.").nullish(),
1920
- from: microsoft_graph_recipient.optional(),
1921
- hasAttachments: z.boolean().describe(
1922
- "Indicates whether the post has at least one attachment. This is a default property."
1923
- ).optional(),
1924
- newParticipants: z.array(microsoft_graph_recipient).describe("Conversation participants that were added to the thread as part of this post.").optional(),
1925
- receivedDateTime: z.string().regex(
1926
- /^[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])$/
1927
- ).datetime({ offset: true }).describe(
1928
- "Specifies when the post was received. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
1929
- ).optional(),
1930
- sender: microsoft_graph_recipient.optional(),
1931
- attachments: z.array(microsoft_graph_attachment).describe("Read-only. Nullable. Supports $expand.").optional(),
1932
- extensions: z.array(microsoft_graph_extension).describe(
1933
- "The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand."
1934
- ).optional(),
1935
- inReplyTo: microsoft_graph_post.optional(),
1936
- multiValueExtendedProperties: z.array(microsoft_graph_multiValueLegacyExtendedProperty).describe(
1937
- "The collection of multi-value extended properties defined for the post. Read-only. Nullable."
1912
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
1913
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
1914
+ driveType: z.string().describe(
1915
+ "Describes the type of drive represented by this resource. OneDrive personal drives return personal. OneDrive for Business returns business. SharePoint document libraries return documentLibrary. Read-only."
1916
+ ).nullish(),
1917
+ owner: microsoft_graph_identitySet.optional(),
1918
+ quota: microsoft_graph_quota.optional(),
1919
+ sharePointIds: microsoft_graph_sharepointIds.optional(),
1920
+ system: microsoft_graph_systemFacet.optional(),
1921
+ bundles: z.array(microsoft_graph_driveItem).describe(
1922
+ "Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive."
1938
1923
  ).optional(),
1939
- singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
1940
- "The collection of single-value extended properties defined for the post. Read-only. Nullable."
1941
- ).optional()
1924
+ following: z.array(microsoft_graph_driveItem).describe("The list of items the user is following. Only in OneDrive for Business.").optional(),
1925
+ items: z.array(microsoft_graph_driveItem).describe("All items contained in the drive. Read-only. Nullable.").optional(),
1926
+ list: microsoft_graph_list.optional(),
1927
+ root: microsoft_graph_driveItem.describe("[Note: Simplified from 45 properties to 25 most common ones]").optional(),
1928
+ special: z.array(microsoft_graph_driveItem).describe("Collection of common folders available in OneDrive. Read-only. Nullable.").optional()
1942
1929
  }).loose()
1943
1930
  );
1944
- const microsoft_graph_conversationThread = z.object({
1945
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1946
- ccRecipients: z.array(microsoft_graph_recipient).describe("The Cc: recipients for the thread. Requires $select to retrieve.").optional(),
1947
- hasAttachments: z.boolean().describe(
1948
- "Indicates whether any of the posts within this thread has at least one attachment. Returned by default."
1949
- ).optional(),
1950
- isLocked: z.boolean().describe("Indicates if the thread is locked. Returned by default.").optional(),
1951
- lastDeliveredDateTime: z.string().regex(
1952
- /^[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])$/
1953
- ).datetime({ offset: true }).describe(
1954
- "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.Returned by default."
1955
- ).optional(),
1956
- preview: z.string().describe(
1957
- "A short summary from the body of the latest post in this conversation. Returned by default."
1958
- ).optional(),
1959
- topic: z.string().describe(
1960
- "The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated. Returned by default."
1961
- ).optional(),
1962
- toRecipients: z.array(microsoft_graph_recipient).describe("The To: recipients for the thread. Requires $select to retrieve.").optional(),
1963
- uniqueSenders: z.array(z.string()).describe("All the users that sent a message to this thread. Returned by default.").optional(),
1964
- posts: z.array(microsoft_graph_post).optional()
1965
- }).loose();
1966
- const microsoft_graph_conversation = z.object({
1967
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1968
- hasAttachments: z.boolean().describe(
1969
- "Indicates whether any of the posts within this Conversation has at least one attachment. Supports $filter (eq, ne) and $search."
1970
- ).optional(),
1971
- lastDeliveredDateTime: z.string().regex(
1972
- /^[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])$/
1973
- ).datetime({ offset: true }).describe(
1974
- "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
1975
- ).optional(),
1976
- preview: z.string().describe(
1977
- "A short summary from the body of the latest post in this conversation. Supports $filter (eq, ne, le, ge)."
1978
- ).optional(),
1979
- topic: z.string().describe(
1980
- "The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated."
1981
- ).optional(),
1982
- uniqueSenders: z.array(z.string()).describe("All the users that sent a message to this Conversation.").optional(),
1983
- threads: z.array(microsoft_graph_conversationThread).describe(
1984
- "A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable."
1985
- ).optional()
1986
- }).loose();
1987
- const microsoft_graph_conversationCollectionResponse = z.object({
1988
- "@odata.count": z.number().int().nullable(),
1989
- "@odata.nextLink": z.string().nullable(),
1990
- value: z.array(microsoft_graph_conversation)
1991
- }).partial().loose();
1992
- const microsoft_graph_directoryObject = z.object({
1993
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
1994
- deletedDateTime: z.string().regex(
1995
- /^[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])$/
1996
- ).datetime({ offset: true }).describe(
1997
- "Date and time when this object was deleted. Always null when the object hasn't been deleted."
1998
- ).nullish()
1999
- }).loose();
2000
- const microsoft_graph_directoryObjectCollectionResponse = z.object({
2001
- "@odata.count": z.number().int().nullable(),
2002
- "@odata.nextLink": z.string().nullable(),
2003
- value: z.array(microsoft_graph_directoryObject)
2004
- }).partial().loose();
2005
- const ReferenceCreate = z.record(z.string(), z.object({}).partial().loose());
2006
- const microsoft_graph_plannerContainerType = z.enum(["group", "unknownFutureValue", "roster"]);
2007
- const microsoft_graph_plannerPlanContainer = z.object({
2008
- containerId: z.string().describe("The identifier of the resource that contains the plan. Optional.").nullish(),
2009
- type: microsoft_graph_plannerContainerType.optional(),
2010
- url: z.string().describe("The full canonical URL of the container. Optional.").nullish()
2011
- }).loose();
2012
- const microsoft_graph_plannerChecklistItems = z.object({}).loose();
2013
- const microsoft_graph_plannerPreviewType = z.enum([
2014
- "automatic",
2015
- "noPreview",
2016
- "checklist",
2017
- "description",
2018
- "reference"
2019
- ]);
2020
- const microsoft_graph_plannerExternalReferences = z.object({}).loose();
2021
- const microsoft_graph_plannerTaskDetails = z.object({
2022
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2023
- checklist: microsoft_graph_plannerChecklistItems.optional(),
2024
- description: z.string().describe("Description of the task.").nullish(),
2025
- previewType: microsoft_graph_plannerPreviewType.optional(),
2026
- references: microsoft_graph_plannerExternalReferences.optional()
1931
+ const microsoft_graph_longRunningOperationStatus = z.enum([
1932
+ "notStarted",
1933
+ "running",
1934
+ "succeeded",
1935
+ "failed",
1936
+ "unknownFutureValue"
1937
+ ]);
1938
+ const microsoft_graph_publicErrorDetail = z.object({
1939
+ code: z.string().describe("The error code.").nullish(),
1940
+ message: z.string().describe("The error message.").nullish(),
1941
+ target: z.string().describe("The target of the error.").nullish()
2027
1942
  }).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
- const microsoft_graph_plannerAssignedToTaskBoardTaskFormat = z.object({
2032
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2033
- orderHintsByAssignee: microsoft_graph_plannerOrderHintsByAssignee.optional(),
2034
- unassignedOrderHint: z.string().describe(
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
- ).nullish()
1943
+ const microsoft_graph_publicInnerError = z.object({
1944
+ code: z.string().describe("The error code.").nullish(),
1945
+ details: z.array(microsoft_graph_publicErrorDetail).describe("A collection of error details.").optional(),
1946
+ message: z.string().describe("The error message.").nullish(),
1947
+ target: z.string().describe("The target of the error.").nullish()
2037
1948
  }).loose();
2038
- const microsoft_graph_plannerBucketTaskBoardTaskFormat = z.object({
2039
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2040
- orderHint: z.string().describe(
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
- ).nullish()
1949
+ const microsoft_graph_publicError = z.object({
1950
+ code: z.string().describe("Represents the error code.").nullish(),
1951
+ details: z.array(microsoft_graph_publicErrorDetail).describe("Details of the error.").optional(),
1952
+ innerError: microsoft_graph_publicInnerError.optional(),
1953
+ message: z.string().describe("A non-localized message for the developer.").nullish(),
1954
+ target: z.string().describe("The target of the error.").nullish()
2043
1955
  }).loose();
2044
- const microsoft_graph_plannerTask = z.object({
1956
+ const microsoft_graph_richLongRunningOperation = z.object({
2045
1957
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2046
1958
  createdDateTime: z.string().regex(
2047
1959
  /^[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])$/
2048
1960
  ).datetime({ offset: true }).describe(
2049
- "Read-only. Date and time at which the task is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2050
- ).nullish(),
2051
- title: z.string().describe("Title of the task.").optional(),
2052
- details: microsoft_graph_plannerTaskDetails.optional(),
2053
- activeChecklistItemCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of checklist items with value set to false, representing incomplete items.").nullish(),
2054
- appliedCategories: microsoft_graph_plannerAppliedCategories.optional(),
2055
- assigneePriority: z.string().describe(
2056
- "Hint used to order items of this type in a list view. The format is defined as outlined here."
2057
- ).nullish(),
2058
- assignments: microsoft_graph_plannerAssignments.optional(),
2059
- bucketId: z.string().describe(
2060
- "Bucket ID to which the task belongs. The bucket needs to be in the plan that the task is in. It's 28 characters long and case-sensitive. Format validation is done on the service."
2061
- ).nullish(),
2062
- checklistItemCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of checklist items that are present on the task.").nullish(),
2063
- completedBy: microsoft_graph_identitySet.optional(),
2064
- completedDateTime: z.string().regex(
2065
- /^[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])$/
2066
- ).datetime({ offset: true }).describe(
2067
- "Read-only. Date and time at which the 'percentComplete' of the task is set to '100'. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2068
- ).nullish(),
2069
- conversationThreadId: z.string().describe(
2070
- "Thread ID of the conversation on the task. This is the ID of the conversation thread object created in the group."
2071
- ).nullish(),
2072
- createdBy: microsoft_graph_identitySet.optional(),
2073
- dueDateTime: z.string().regex(
2074
- /^[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])$/
2075
- ).datetime({ offset: true }).describe(
2076
- "Date and time at which the task is due. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2077
- ).nullish(),
2078
- hasDescription: z.boolean().describe(
2079
- "Read-only. Value is true if the details object of the task has a nonempty description and false otherwise."
2080
- ).nullish(),
2081
- orderHint: z.string().describe(
2082
- "Hint used to order items of this type in a list view. The format is defined as outlined here."
2083
- ).nullish(),
2084
- percentComplete: z.number().gte(-2147483648).lte(2147483647).describe("Percentage of task completion. When set to 100, the task is considered completed.").nullish(),
2085
- planId: z.string().describe("Plan ID to which the task belongs.").nullish(),
2086
- previewType: microsoft_graph_plannerPreviewType.optional(),
2087
- priority: z.number().gte(-2147483648).lte(2147483647).describe(
2088
- "Priority of the task. The valid range of values is between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as 'urgent', 2, 3 and 4 as 'important', 5, 6, and 7 as 'medium', and 8, 9, and 10 as 'low'. Additionally, Planner sets the value 1 for 'urgent', 3 for 'important', 5 for 'medium', and 9 for 'low'."
2089
- ).nullish(),
2090
- referenceCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of external references that exist on the task.").nullish(),
2091
- startDateTime: z.string().regex(
2092
- /^[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])$/
2093
- ).datetime({ offset: true }).describe(
2094
- "Date and time at which the task starts. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2095
- ).nullish(),
2096
- assignedToTaskBoardFormat: microsoft_graph_plannerAssignedToTaskBoardTaskFormat.optional(),
2097
- bucketTaskBoardFormat: microsoft_graph_plannerBucketTaskBoardTaskFormat.optional()
2098
- }).loose().loose();
2099
- const microsoft_graph_plannerBucket = z.object({
2100
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2101
- name: z.string().describe("Name of the bucket.").optional(),
2102
- orderHint: z.string().describe(
2103
- "Hint used to order items of this type in a list view. For details about the supported format, see Using order hints in Planner."
1961
+ "The start time of the operation. 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."
2104
1962
  ).nullish(),
2105
- planId: z.string().describe("Plan ID to which the bucket belongs.").nullish(),
2106
- tasks: z.array(microsoft_graph_plannerTask).describe("Read-only. Nullable. The collection of tasks in the bucket.").optional()
2107
- }).loose();
2108
- const microsoft_graph_plannerCategoryDescriptions = z.object({
2109
- category1: z.string().describe("The label associated with Category 1").nullish(),
2110
- category10: z.string().describe("The label associated with Category 10").nullish(),
2111
- category11: z.string().describe("The label associated with Category 11").nullish(),
2112
- category12: z.string().describe("The label associated with Category 12").nullish(),
2113
- category13: z.string().describe("The label associated with Category 13").nullish(),
2114
- category14: z.string().describe("The label associated with Category 14").nullish(),
2115
- category15: z.string().describe("The label associated with Category 15").nullish(),
2116
- category16: z.string().describe("The label associated with Category 16").nullish(),
2117
- category17: z.string().describe("The label associated with Category 17").nullish(),
2118
- category18: z.string().describe("The label associated with Category 18").nullish(),
2119
- category19: z.string().describe("The label associated with Category 19").nullish(),
2120
- category2: z.string().describe("The label associated with Category 2").nullish(),
2121
- category20: z.string().describe("The label associated with Category 20").nullish(),
2122
- category21: z.string().describe("The label associated with Category 21").nullish(),
2123
- category22: z.string().describe("The label associated with Category 22").nullish(),
2124
- category23: z.string().describe("The label associated with Category 23").nullish(),
2125
- category24: z.string().describe("The label associated with Category 24").nullish(),
2126
- category25: z.string().describe("The label associated with Category 25").nullish(),
2127
- category3: z.string().describe("The label associated with Category 3").nullish(),
2128
- category4: z.string().describe("The label associated with Category 4").nullish(),
2129
- category5: z.string().describe("The label associated with Category 5").nullish(),
2130
- category6: z.string().describe("The label associated with Category 6").nullish(),
2131
- category7: z.string().describe("The label associated with Category 7").nullish(),
2132
- category8: z.string().describe("The label associated with Category 8").nullish(),
2133
- category9: z.string().describe("The label associated with Category 9").nullish()
2134
- }).loose();
2135
- const microsoft_graph_plannerUserIds = z.object({}).loose();
2136
- const microsoft_graph_plannerPlanDetails = z.object({
2137
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2138
- categoryDescriptions: microsoft_graph_plannerCategoryDescriptions.optional(),
2139
- sharedWith: microsoft_graph_plannerUserIds.optional()
2140
- }).loose();
2141
- const microsoft_graph_plannerPlan = z.object({
2142
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2143
- container: microsoft_graph_plannerPlanContainer.optional(),
2144
- createdBy: microsoft_graph_identitySet.optional(),
2145
- createdDateTime: z.string().regex(
1963
+ lastActionDateTime: z.string().regex(
2146
1964
  /^[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])$/
2147
1965
  ).datetime({ offset: true }).describe(
2148
- "Read-only. Date and time at which the plan is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2149
- ).nullish(),
2150
- owner: z.string().describe(
2151
- "Use the container property instead. ID of the group that owns the plan. After it's set, this property can\u2019t be updated. This property won't return a valid group ID if the container of the plan isn't a group."
2152
- ).nullish(),
2153
- title: z.string().describe("Required. Title of the plan.").optional(),
2154
- buckets: z.array(microsoft_graph_plannerBucket).describe("Read-only. Nullable. Collection of buckets in the plan.").optional(),
2155
- details: microsoft_graph_plannerPlanDetails.optional(),
2156
- tasks: z.array(microsoft_graph_plannerTask).describe("Read-only. Nullable. Collection of tasks in the plan.").optional()
2157
- }).loose();
2158
- const microsoft_graph_plannerPlanCollectionResponse = z.object({
2159
- "@odata.count": z.number().int().nullable(),
2160
- "@odata.nextLink": z.string().nullable(),
2161
- value: z.array(microsoft_graph_plannerPlan)
2162
- }).partial().loose();
2163
- const microsoft_graph_conversationThreadCollectionResponse = z.object({
2164
- "@odata.count": z.number().int().nullable(),
2165
- "@odata.nextLink": z.string().nullable(),
2166
- value: z.array(microsoft_graph_conversationThread)
2167
- }).partial().loose();
2168
- const reply_to_group_thread_Body = z.object({ Post: microsoft_graph_post }).partial().loose();
2169
- const microsoft_graph_calendarRoleType = z.enum([
2170
- "none",
2171
- "freeBusyRead",
2172
- "limitedRead",
2173
- "read",
2174
- "write",
2175
- "delegateWithoutPrivateEventAccess",
2176
- "delegateWithPrivateEventAccess",
2177
- "custom"
2178
- ]);
2179
- const microsoft_graph_calendarPermission = z.object({
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().loose()])).describe(
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
- ).optional(),
2184
- emailAddress: microsoft_graph_emailAddress.optional(),
2185
- isInsideOrganization: z.boolean().describe(
2186
- "True if the user in context (recipient or delegate) is inside the same organization as the calendar owner."
2187
- ).nullish(),
2188
- isRemovable: z.boolean().describe(
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
- ).nullish(),
2191
- role: microsoft_graph_calendarRoleType.optional()
2192
- }).loose();
2193
- const microsoft_graph_calendarPermissionCollectionResponse = z.object({
2194
- "@odata.count": z.number().int().nullable(),
2195
- "@odata.nextLink": z.string().nullable(),
2196
- value: z.array(microsoft_graph_calendarPermission)
2197
- }).partial().loose();
2198
- const get_schedule_Body = z.object({
2199
- Schedules: z.array(z.string().nullable()),
2200
- EndTime: z.union([microsoft_graph_dateTimeTimeZone, z.object({}).partial().loose()]),
2201
- StartTime: z.union([microsoft_graph_dateTimeTimeZone, z.object({}).partial().loose()]),
2202
- AvailabilityViewInterval: z.number().gte(-2147483648).lte(2147483647).nullable()
2203
- }).partial().loose();
2204
- const microsoft_graph_freeBusyError = z.object({
2205
- message: z.string().describe("Describes the error.").nullish(),
2206
- responseCode: z.string().describe(
2207
- "The response code from querying for the availability of the user, distribution list, or resource."
2208
- ).nullish()
2209
- }).loose();
2210
- const microsoft_graph_scheduleItem = z.object({
2211
- end: microsoft_graph_dateTimeTimeZone.optional(),
2212
- isPrivate: z.boolean().describe(
2213
- "The sensitivity of the corresponding event. True if the event is marked private, false otherwise. Optional."
2214
- ).nullish(),
2215
- location: z.string().describe("The location where the corresponding event is held or attended from. Optional.").nullish(),
2216
- start: microsoft_graph_dateTimeTimeZone.optional(),
2217
- status: microsoft_graph_freeBusyStatus.optional(),
2218
- subject: z.string().describe("The corresponding event's subject line. Optional.").nullish()
2219
- }).loose();
2220
- const microsoft_graph_timeZoneBase = z.object({
2221
- name: z.string().describe(
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
- ).nullish()
2224
- }).loose();
2225
- const microsoft_graph_workingHours = z.object({
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
- 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
- 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
- timeZone: microsoft_graph_timeZoneBase.optional()
2230
- }).loose();
2231
- const microsoft_graph_scheduleInformation = z.object({
2232
- availabilityView: z.string().describe(
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."
2234
- ).nullish(),
2235
- error: microsoft_graph_freeBusyError.optional(),
2236
- scheduleId: z.string().describe(
2237
- "An SMTP address of the user, distribution list, or resource, identifying an instance of scheduleInformation."
1966
+ "The time of the last action in the operation. 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."
2238
1967
  ).nullish(),
2239
- scheduleItems: z.array(microsoft_graph_scheduleItem).describe("Contains the items that describe the availability of the user or resource.").optional(),
2240
- workingHours: microsoft_graph_workingHours.optional()
1968
+ resourceLocation: z.string().describe("URI of the resource that the operation is performed on.").nullish(),
1969
+ status: microsoft_graph_longRunningOperationStatus.optional(),
1970
+ statusDetail: z.string().describe("Details about the status of the operation.").nullish(),
1971
+ error: microsoft_graph_publicError.optional(),
1972
+ percentageComplete: z.number().gte(-2147483648).lte(2147483647).describe("A value between 0 and 100 that indicates the progress of the operation.").nullish(),
1973
+ resourceId: z.string().describe("The unique identifier for the result.").nullish(),
1974
+ type: z.string().describe("The type of the operation.").nullish()
2241
1975
  }).loose();
2242
- const microsoft_graph_onlineMeetingProviderType = z.enum([
2243
- "unknown",
2244
- "skypeForBusiness",
2245
- "skypeForConsumer",
2246
- "teamsForBusiness"
2247
- ]);
2248
- const microsoft_graph_calendarColor = z.enum([
2249
- "auto",
2250
- "lightBlue",
2251
- "lightGreen",
2252
- "lightOrange",
2253
- "lightGray",
2254
- "lightYellow",
2255
- "lightTeal",
2256
- "lightPink",
2257
- "lightBrown",
2258
- "lightRed",
2259
- "maxColor"
2260
- ]);
2261
- const microsoft_graph_calendar = z.object({
1976
+ const microsoft_graph_subscription = z.object({
2262
1977
  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().loose()])).describe(
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."
1978
+ applicationId: z.string().describe(
1979
+ "Optional. Identifier of the application used to create the subscription. Read-only."
1980
+ ).nullish(),
1981
+ changeType: z.string().describe(
1982
+ "Required. Indicates the type of change in the subscribed resource that raises a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated, or soft deleted. Use deleted to receive notifications when user or group is permanently deleted."
2265
1983
  ).optional(),
2266
- canEdit: z.boolean().describe(
2267
- "true if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who shared a calendar and granted write access."
1984
+ clientState: z.string().describe(
1985
+ "Optional. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification."
2268
1986
  ).nullish(),
2269
- canShare: z.boolean().describe(
2270
- "true if the user has permission to share the calendar, false otherwise. Only the user who created the calendar can share it."
1987
+ creatorId: z.string().describe(
1988
+ "Optional. Identifier of the user or service principal that created the subscription. If the app used delegated permissions to create the subscription, this field contains the ID of the signed-in user the app called on behalf of. If the app used application permissions, this field contains the ID of the service principal corresponding to the app. Read-only."
2271
1989
  ).nullish(),
2272
- canViewPrivateItems: z.boolean().describe(
2273
- "If true, the user can read calendar items that have been marked private, false otherwise."
1990
+ encryptionCertificate: z.string().describe(
1991
+ "Optional. A base64-encoded representation of a certificate with a public key used to encrypt resource data in change notifications. Optional but required when includeResourceData is true."
2274
1992
  ).nullish(),
2275
- changeKey: z.string().describe(
2276
- "Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only."
1993
+ encryptionCertificateId: z.string().describe(
1994
+ "Optional. A custom app-provided identifier to help identify the certificate needed to decrypt resource data."
2277
1995
  ).nullish(),
2278
- color: microsoft_graph_calendarColor.optional(),
2279
- defaultOnlineMeetingProvider: microsoft_graph_onlineMeetingProviderType.optional(),
2280
- hexColor: z.string().describe(
2281
- "The calendar color, expressed in a hex color code of three hexadecimal values, each ranging from 00 to FF and representing the red, green, or blue components of the color in the RGB color space. If the user has never explicitly set a color for the calendar, this property is empty. Read-only."
1996
+ expirationDateTime: z.string().regex(
1997
+ /^[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])$/
1998
+ ).datetime({ offset: true }).describe(
1999
+ "Required. Specifies the date and time when the webhook subscription expires. The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to. Any value under 45 minutes after the time of the request is automatically set to 45 minutes after the request time. For the maximum supported subscription length of time, see Subscription lifetime."
2000
+ ).optional(),
2001
+ includeResourceData: z.boolean().describe(
2002
+ "Optional. When set to true, change notifications include resource data (such as content of a chat message)."
2282
2003
  ).nullish(),
2283
- isDefaultCalendar: z.boolean().describe(
2284
- "true if this is the default calendar where new events are created by default, false otherwise."
2004
+ latestSupportedTlsVersion: z.string().describe(
2005
+ "Optional. Specifies the latest version of Transport Layer Security (TLS) that the notification endpoint, specified by notificationUrl, supports. The possible values are: v10, v11, v12, v13. For subscribers whose notification endpoint supports a version lower than the currently recommended version (TLS 1.2), specifying this property by a set timeline allows them to temporarily use their deprecated version of TLS before completing their upgrade to TLS 1.2. For these subscribers, not setting this property per the timeline would result in subscription operations failing. For subscribers whose notification endpoint already supports TLS 1.2, setting this property is optional. In such cases, Microsoft Graph defaults the property to v1_2."
2285
2006
  ).nullish(),
2286
- isRemovable: z.boolean().describe("Indicates whether this user calendar can be deleted from the user mailbox.").nullish(),
2287
- isSharedWithMe: z.boolean().describe(
2288
- "true if someone shared this calendar with the user; false otherwise. This property is always false for a calendar owner. This property is set when sharing is initiated in an Outlook client and can be reset when sharing is canceled through the client or the corresponding calendarPermission resource. Read-only."
2007
+ lifecycleNotificationUrl: z.string().describe(
2008
+ "Required for Teams resources if the expirationDateTime value is more than 1 hour from now; optional otherwise. The URL of the endpoint that receives lifecycle notifications, including subscriptionRemoved, reauthorizationRequired, and missed notifications. This URL must make use of the HTTPS protocol. For more information, see Reduce missing subscriptions and change notifications."
2289
2009
  ).nullish(),
2290
- isTallyingResponses: z.boolean().describe(
2291
- "Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses."
2010
+ notificationQueryOptions: z.string().describe(
2011
+ "Optional. OData query options for specifying value for the targeting resource. Clients receive notifications when resource reaches the state matching the query options provided here. With this new property in the subscription creation payload along with all existing properties, Webhooks deliver notifications whenever a resource reaches the desired state mentioned in the notificationQueryOptions property. For example, when the print job is completed or when a print job resource isFetchable property value becomes true etc. Supported only for Universal Print Service. For more information, see Subscribe to change notifications from cloud printing APIs using Microsoft Graph."
2292
2012
  ).nullish(),
2293
- name: z.string().describe("The calendar name.").nullish(),
2294
- owner: microsoft_graph_emailAddress.optional(),
2295
- calendarPermissions: z.array(microsoft_graph_calendarPermission).describe("The permissions of the users with whom the calendar is shared.").optional(),
2296
- calendarView: z.array(microsoft_graph_event).describe("The calendar view for the calendar. Navigation property. Read-only.").optional(),
2297
- events: z.array(microsoft_graph_event).describe("The events in the calendar. Navigation property. Read-only.").optional(),
2298
- multiValueExtendedProperties: z.array(microsoft_graph_multiValueLegacyExtendedProperty).describe(
2299
- "The collection of multi-value extended properties defined for the calendar. Read-only. Nullable."
2013
+ notificationUrl: z.string().describe(
2014
+ "Required. The URL of the endpoint that receives the change notifications. This URL must make use of the HTTPS protocol. Any query string parameter included in the notificationUrl property is included in the HTTP POST request when Microsoft Graph sends the change notifications."
2300
2015
  ).optional(),
2301
- singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
2302
- "The collection of single-value extended properties defined for the calendar. Read-only. Nullable."
2303
- ).optional()
2016
+ notificationUrlAppId: z.string().describe(
2017
+ "Optional. The app ID that the subscription service can use to generate the validation token. The value allows the client to validate the authenticity of the notification received."
2018
+ ).nullish(),
2019
+ resource: z.string().describe(
2020
+ "Required. Specifies the resource that is monitored for changes. Don't include the base URL (https://graph.microsoft.com/v1.0/). See the possible resource path values for each supported resource."
2021
+ ).optional(),
2022
+ vapidPublicKey: z.string().describe(
2023
+ "Optional. The application server's VAPID public key, base64url-encoded (P-256 uncompressed point, 65 bytes pre-encoding). Obtained by calling the getVapidPublicKey function on the subscription collection. The browser passes this value to PushManager.subscribe({ applicationServerKey: vapidPublicKey }) to bind the push subscription to this server identity. Required when notificationUrl targets a known Web Push service origin (for example, *.push.apple.com, fcm.googleapis.com, updates.push.services.mozilla.com); rejected with 400 Bad Request if supplied on a standard webhook subscription. For more information, see RFC 8292."
2024
+ ).nullish(),
2025
+ webPushEncryptionP256dhPublicKey: z.string().describe(
2026
+ "Optional. The subscriber's ECDH public key, base64url-encoded (P-256 uncompressed point, 65 bytes pre-encoding). Obtained from the browser via PushSubscription.getKey('p256dh'). Used as the peer public key during ECDH key agreement to derive the per-message content encryption key for RFC 8291 payload encryption. 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."
2027
+ ).nullish(),
2028
+ webPushEncryptionSecret: z.string().describe(
2029
+ "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."
2030
+ ).nullish()
2304
2031
  }).loose();
2305
- const microsoft_graph_calendarCollectionResponse = z.object({
2032
+ const microsoft_graph_list = z.lazy(
2033
+ () => z.object({
2034
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2035
+ createdBy: microsoft_graph_identitySet.optional(),
2036
+ createdDateTime: z.string().regex(
2037
+ /^[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])$/
2038
+ ).datetime({ offset: true }).describe("Date and time of item creation. Read-only.").optional(),
2039
+ description: z.string().describe("Provides a user-visible description of the item. Optional.").nullish(),
2040
+ eTag: z.string().describe("ETag for the item. Read-only.").nullish(),
2041
+ lastModifiedBy: microsoft_graph_identitySet.optional(),
2042
+ lastModifiedDateTime: z.string().regex(
2043
+ /^[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])$/
2044
+ ).datetime({ offset: true }).describe("Date and time the item was last modified. Read-only.").optional(),
2045
+ name: z.string().describe("The name of the item. Read-write.").nullish(),
2046
+ parentReference: microsoft_graph_itemReference.optional(),
2047
+ webUrl: z.string().describe(
2048
+ "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
2049
+ ).nullish(),
2050
+ createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2051
+ lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2052
+ displayName: z.string().describe("The displayable title of the list.").nullish(),
2053
+ list: microsoft_graph_listInfo.optional(),
2054
+ sharepointIds: microsoft_graph_sharepointIds.optional(),
2055
+ system: microsoft_graph_systemFacet.optional(),
2056
+ columns: z.array(microsoft_graph_columnDefinition).describe("The collection of field definitions for this list.").optional(),
2057
+ contentTypes: z.array(microsoft_graph_contentType).describe("The collection of content types present in this list.").optional(),
2058
+ drive: microsoft_graph_drive.optional(),
2059
+ items: z.array(microsoft_graph_listItem).describe("All items contained in the list.").optional(),
2060
+ operations: z.array(microsoft_graph_richLongRunningOperation).describe("The collection of long-running operations on the list.").optional(),
2061
+ permissions: z.array(microsoft_graph_permission).describe("The set of permissions for the item. Read-only. Nullable.").optional(),
2062
+ subscriptions: z.array(microsoft_graph_subscription).describe("The set of subscriptions on the list.").optional()
2063
+ }).loose()
2064
+ );
2065
+ const microsoft_graph_columnDefinitionCollectionResponse = z.object({
2306
2066
  "@odata.count": z.number().int().nullable(),
2307
2067
  "@odata.nextLink": z.string().nullable(),
2308
- value: z.array(microsoft_graph_calendar)
2068
+ value: z.array(microsoft_graph_columnDefinition)
2309
2069
  }).partial().loose();
2310
- const microsoft_graph_chatCollectionResponse = z.object({
2070
+ const microsoft_graph_listItemCollectionResponse = z.object({
2311
2071
  "@odata.count": z.number().int().nullable(),
2312
2072
  "@odata.nextLink": z.string().nullable(),
2313
- value: z.array(microsoft_graph_chat)
2073
+ value: z.array(microsoft_graph_listItem)
2314
2074
  }).partial().loose();
2315
- const microsoft_graph_contact = z.object({
2075
+ const microsoft_graph_groupAccessType = z.enum([
2076
+ "none",
2077
+ "private",
2078
+ "secret",
2079
+ "public",
2080
+ "unknownFutureValue"
2081
+ ]);
2082
+ const microsoft_graph_assignedLabel = z.object({
2083
+ displayName: z.string().describe("The display name of the label. Read-only.").nullish(),
2084
+ labelId: z.string().describe("The unique identifier of the label.").nullish()
2085
+ }).loose();
2086
+ const microsoft_graph_licenseProcessingState = z.object({ state: z.string().nullish() }).loose();
2087
+ const microsoft_graph_group = z.object({
2316
2088
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2317
2089
  displayName: z.string().describe(
2318
- "The contact's display name. You can specify the display name in a create or update operation. Note that later updates to other properties may cause an automatically generated value to overwrite the displayName value you have specified. To preserve a pre-existing value, always include it as displayName in an update operation."
2090
+ "The display name for the group. This property is required when a group is created and can't be cleared during updates. Maximum length is 256 characters. Returned by default. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby."
2091
+ ).nullish(),
2092
+ description: z.string().describe(
2093
+ "An optional description for the group. Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith) and $search."
2319
2094
  ).nullish(),
2320
2095
  createdDateTime: z.string().regex(
2321
2096
  /^[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])$/
2322
2097
  ).datetime({ offset: true }).describe(
2323
- "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2098
+ "Timestamp of when the group was created. The value can't be modified and is automatically populated when the group is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Read-only."
2324
2099
  ).nullish(),
2325
- lastModifiedDateTime: z.string().regex(
2100
+ deletedDateTime: z.string().regex(
2326
2101
  /^[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])$/
2327
2102
  ).datetime({ offset: true }).describe(
2328
- "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2103
+ "Date and time when this object was deleted. Always null when the object hasn't been deleted."
2329
2104
  ).nullish(),
2330
- title: z.string().describe("The contact's title.").nullish(),
2331
- singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
2332
- "The collection of single-value extended properties defined for the contact. Read-only. Nullable."
2105
+ accessType: microsoft_graph_groupAccessType.optional(),
2106
+ allowExternalSenders: z.boolean().describe(
2107
+ "Indicates if people external to the organization can send messages to the group. The default value is false. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
2108
+ ).nullish(),
2109
+ assignedLabels: z.array(microsoft_graph_assignedLabel).describe(
2110
+ "The list of sensitivity label pairs (label ID, label name) associated with a Microsoft 365 group or a cloud security group. Requires a Microsoft Entra ID P1 license. Requires $select to retrieve. This property can be specified during group creation or update. However, for cloud security groups, it's immutable once set. This property can be updated only in delegated scenarios where the caller requires both the Microsoft Graph permission and a supported administrator role. To learn more about managing this property for Microsoft 365 vs. cloud security groups, see Key differences from Microsoft 365 group labeling."
2333
2111
  ).optional(),
2334
- multiValueExtendedProperties: z.array(microsoft_graph_multiValueLegacyExtendedProperty).describe(
2335
- "The collection of multi-value extended properties defined for the contact. Read-only. Nullable."
2112
+ assignedLicenses: z.array(microsoft_graph_assignedLicense).describe(
2113
+ "The licenses that are assigned to the group. Requires $select to retrieve. Supports $filter (eq). Read-only."
2336
2114
  ).optional(),
2337
- categories: z.array(z.string().nullable()).describe("The categories associated with the item").optional(),
2338
- changeKey: z.string().describe(
2339
- "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."
2115
+ autoSubscribeNewMembers: z.boolean().describe(
2116
+ "Indicates if new members added to the group are autosubscribed to receive email notifications. You can set this property in a PATCH request for the group; don't set it in the initial POST request that creates the group. Default value is false. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
2340
2117
  ).nullish(),
2341
- assistantName: z.string().describe("The name of the contact's assistant.").nullish(),
2342
- birthday: z.string().regex(
2118
+ classification: z.string().describe(
2119
+ "Describes a classification for the group (such as low, medium, or high business impact). Valid values for this property are defined by creating a ClassificationList setting value, based on the template definition.Returned by default. Supports $filter (eq, ne, not, ge, le, startsWith)."
2120
+ ).nullish(),
2121
+ expirationDateTime: z.string().regex(
2343
2122
  /^[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])$/
2344
2123
  ).datetime({ offset: true }).describe(
2345
- "The contact's birthday. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2124
+ "Timestamp of when the group is set to expire. It's null for security groups, but for Microsoft 365 groups, it represents when the group is set to expire as defined in the groupLifecyclePolicy. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on January 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. Supports $filter (eq, ne, not, ge, le, in). Read-only."
2346
2125
  ).nullish(),
2347
- businessAddress: microsoft_graph_physicalAddress.optional(),
2348
- businessHomePage: z.string().describe("The business home page of the contact.").nullish(),
2349
- businessPhones: z.array(z.string().nullable()).describe("The contact's business phone numbers.").optional(),
2350
- children: z.array(z.string().nullable()).describe("The names of the contact's children.").optional(),
2351
- companyName: z.string().describe("The name of the contact's company.").nullish(),
2352
- department: z.string().describe("The contact's department.").nullish(),
2353
- emailAddresses: z.array(microsoft_graph_emailAddress).describe("The contact's email addresses.").optional(),
2354
- fileAs: z.string().describe("The name the contact is filed under.").nullish(),
2355
- generation: z.string().describe("The contact's suffix.").nullish(),
2356
- givenName: z.string().describe("The contact's given name.").nullish(),
2357
- homeAddress: microsoft_graph_physicalAddress.optional(),
2358
- homePhones: z.array(z.string().nullable()).describe("The contact's home phone numbers.").optional(),
2359
- imAddresses: z.array(z.string().nullable()).describe("The contact's instant messaging (IM) addresses.").optional(),
2360
- initials: z.string().describe("The contact's initials.").nullish()
2361
- }).loose().loose();
2362
- const microsoft_graph_contactFolder = z.lazy(
2363
- () => z.object({
2364
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2365
- displayName: z.string().describe("The folder's display name.").nullish(),
2366
- parentFolderId: z.string().describe("The ID of the folder's parent folder.").nullish(),
2367
- childFolders: z.array(microsoft_graph_contactFolder).describe(
2368
- "The collection of child folders in the folder. Navigation property. Read-only. Nullable."
2369
- ).optional(),
2370
- contacts: z.array(microsoft_graph_contact).describe("The contacts in the folder. Navigation property. Read-only. Nullable.").optional(),
2371
- multiValueExtendedProperties: z.array(microsoft_graph_multiValueLegacyExtendedProperty).describe(
2372
- "The collection of multi-value extended properties defined for the contactFolder. Read-only. Nullable."
2373
- ).optional(),
2374
- singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
2375
- "The collection of single-value extended properties defined for the contactFolder. Read-only. Nullable."
2376
- ).optional()
2377
- }).loose()
2378
- );
2379
- const microsoft_graph_contactFolderCollectionResponse = z.object({
2380
- "@odata.count": z.number().int().nullable(),
2381
- "@odata.nextLink": z.string().nullable(),
2382
- value: z.array(microsoft_graph_contactFolder)
2383
- }).partial().loose();
2384
- const microsoft_graph_contactCollectionResponse = z.object({
2385
- "@odata.count": z.number().int().nullable(),
2386
- "@odata.nextLink": z.string().nullable(),
2387
- value: z.array(microsoft_graph_contact)
2388
- }).partial().loose();
2389
- const microsoft_graph_labelActionSource = z.enum([
2390
- "manual",
2391
- "automatic",
2392
- "recommended",
2393
- "none",
2394
- "unknownFutureValue"
2395
- ]);
2396
- const microsoft_graph_applicationMode = z.enum([
2397
- "manual",
2398
- "automatic",
2399
- "recommended",
2400
- "unknownFutureValue"
2401
- ]);
2402
- const microsoft_graph_usageRights = z.enum([
2403
- "unknown",
2404
- "docEdit",
2405
- "edit",
2406
- "comment",
2407
- "export",
2408
- "forward",
2409
- "owner",
2410
- "print",
2411
- "reply",
2412
- "replyAll",
2413
- "view",
2414
- "extract",
2415
- "viewRightsData",
2416
- "editRightsData",
2417
- "objModel",
2418
- "accessDenied",
2419
- "userDefinedProtectionTypeNotSupportedException",
2420
- "encryptedProtectionTypeNotSupportedException",
2421
- "purviewClaimsChallengeNotSupportedException",
2126
+ groupTypes: z.array(z.string()).describe(
2127
+ "Specifies the group type and its membership. If the collection contains Unified, the group is a Microsoft 365 group; otherwise, it's either a security group or a distribution group. For details, see groups overview.If the collection includes DynamicMembership, the group has dynamic membership; otherwise, membership is static. Returned by default. Supports $filter (eq, not)."
2128
+ ).optional(),
2129
+ hasMembersWithLicenseErrors: z.boolean().describe(
2130
+ "Indicates whether there are members in this group that have license errors from its group-based license assignment. This property is never returned on a GET operation. You can use it as a $filter argument to get groups that have members with license errors (that is, filter for this property being true). See an example. Supports $filter (eq)."
2131
+ ).nullish(),
2132
+ hideFromAddressLists: z.boolean().describe(
2133
+ "True if the group isn't displayed in certain parts of the Outlook UI: the Address Book, address lists for selecting message recipients, and the Browse Groups dialog for searching groups; otherwise, false. The default value is false. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
2134
+ ).nullish(),
2135
+ hideFromOutlookClients: z.boolean().describe(
2136
+ "True if the group isn't displayed in Outlook clients, such as Outlook for Windows and Outlook on the web; otherwise, false. The default value is false. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
2137
+ ).nullish(),
2138
+ infoCatalogs: z.array(z.string()).optional(),
2139
+ isArchived: z.boolean().describe(
2140
+ "When a group is associated with a team, this property determines whether the team is in read-only mode.To read this property, use the /group/{groupId}/team endpoint or the Get team API. To update this property, use the archiveTeam and unarchiveTeam APIs."
2141
+ ).nullish(),
2142
+ isAssignableToRole: z.boolean().describe(
2143
+ "Indicates whether this group can be assigned to a Microsoft Entra role. Optional. This property can only be set while creating the group and is immutable. If set to true, the securityEnabled property must also be set to true, visibility must be Hidden, and the group can't be a dynamic group (that is, groupTypes can't contain DynamicMembership). Only callers with at least the Privileged Role Administrator role can set this property. The caller must also be assigned the RoleManagement.ReadWrite.Directory permission to set this property or update the membership of such groups. For more, see Using a group to manage Microsoft Entra role assignmentsUsing this feature requires a Microsoft Entra ID P1 license. Returned by default. Supports $filter (eq, ne, not)."
2144
+ ).nullish(),
2145
+ isFavorite: z.boolean().describe(
2146
+ "Indicates whether the user marked the group as favorite. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
2147
+ ).nullish(),
2148
+ isManagementRestricted: z.boolean().describe(
2149
+ "Indicates whether the group is a member of a restricted management administrative unit. If not set, the default value is null and the default behavior is false. Read-only. To manage a group member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. Requires $select to retrieve."
2150
+ ).nullish(),
2151
+ isSubscribedByMail: z.boolean().describe(
2152
+ "Indicates whether the signed-in user is subscribed to receive email conversations. The default value is true. Requires $select to retrieve. Supported only on the Get group API (GET /groups/{ID})."
2153
+ ).nullish(),
2154
+ licenseProcessingState: microsoft_graph_licenseProcessingState.optional(),
2155
+ mail: z.string().describe(
2156
+ "The SMTP address for the group, for example, 'serviceadmins@contoso.com'. Returned by default. Read-only. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values)."
2157
+ ).nullish(),
2158
+ mailEnabled: z.boolean().describe(
2159
+ "Specifies whether the group is mail-enabled. Required. Returned by default. Supports $filter (eq, ne, not)."
2160
+ ).nullish()
2161
+ }).loose().loose();
2162
+ const microsoft_graph_groupCollectionResponse = z.object({
2163
+ "@odata.count": z.number().int().nullable(),
2164
+ "@odata.nextLink": z.string().nullable(),
2165
+ value: z.array(microsoft_graph_group)
2166
+ }).partial().loose();
2167
+ const microsoft_graph_eventType = z.enum([
2168
+ "singleInstance",
2169
+ "occurrence",
2422
2170
  "exception",
2423
- "labelNotFoundException",
2424
- "unknownFutureValue"
2171
+ "seriesMaster"
2425
2172
  ]);
2426
- const microsoft_graph_usageRightsIncluded = z.object({
2173
+ const microsoft_graph_attachment = z.object({
2427
2174
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2428
- ownerEmail: z.string().describe("The email of owner label rights.").nullish(),
2429
- userEmail: z.string().describe("The email of user with label user rights.").nullish(),
2430
- value: microsoft_graph_usageRights.optional()
2175
+ contentType: z.string().describe("The MIME type.").nullish(),
2176
+ isInline: z.boolean().describe("true if the attachment is an inline attachment; otherwise, false.").optional(),
2177
+ lastModifiedDateTime: z.string().regex(
2178
+ /^[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])$/
2179
+ ).datetime({ offset: true }).describe(
2180
+ "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2181
+ ).nullish(),
2182
+ name: z.string().describe("The attachment's file name.").nullish(),
2183
+ size: z.number().gte(-2147483648).lte(2147483647).describe("The length of the attachment in bytes.").optional()
2431
2184
  }).loose();
2432
- const microsoft_graph_sensitivityLabel = z.lazy(
2433
- () => z.object({
2434
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2435
- actionSource: microsoft_graph_labelActionSource.optional(),
2436
- applicationMode: microsoft_graph_applicationMode.optional(),
2437
- autoTooltip: z.string().nullish(),
2438
- description: z.string().nullish(),
2439
- displayName: z.string().nullish(),
2440
- hasProtection: z.boolean().nullish(),
2441
- isDefault: z.boolean().nullish(),
2442
- isEndpointProtectionEnabled: z.boolean().nullish(),
2443
- isScopedToUser: z.boolean().nullish(),
2444
- locale: z.string().nullish(),
2445
- name: z.string().nullish(),
2446
- priority: z.number().gte(-2147483648).lte(2147483647).nullish(),
2447
- toolTip: z.string().nullish(),
2448
- rights: microsoft_graph_usageRightsIncluded.optional(),
2449
- sublabels: z.array(microsoft_graph_sensitivityLabel).optional()
2450
- }).loose()
2451
- );
2452
- const microsoft_graph_sensitivityLabelCollectionResponse = z.object({
2453
- "@odata.count": z.number().int().nullable(),
2454
- "@odata.nextLink": z.string().nullable(),
2455
- value: z.array(microsoft_graph_sensitivityLabel)
2456
- }).partial().loose();
2457
- const microsoft_graph_storagePlanInformation = z.object({
2458
- upgradeAvailable: z.boolean().describe("Indicates whether there are higher storage quota plans available. Read-only.").nullish()
2185
+ const microsoft_graph_singleValueLegacyExtendedProperty = z.object({
2186
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2187
+ value: z.string().describe("A property value.").nullish()
2459
2188
  }).loose();
2460
- const microsoft_graph_quota = z.object({
2461
- deleted: z.number().describe("Total space consumed by files in the recycle bin, in bytes. Read-only.").nullish(),
2462
- remaining: z.number().describe("Total space remaining before reaching the capacity limit, in bytes. Read-only.").nullish(),
2463
- state: z.string().describe("Enumeration value that indicates the state of the storage space. Read-only.").nullish(),
2464
- storagePlanInformation: microsoft_graph_storagePlanInformation.optional(),
2465
- total: z.number().describe("Total allowed storage space, in bytes. Read-only.").nullish(),
2466
- used: z.number().describe("Total space used, in bytes. Read-only.").nullish()
2189
+ const microsoft_graph_multiValueLegacyExtendedProperty = z.object({
2190
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2191
+ value: z.array(z.string().nullable()).describe("A collection of property values.").optional()
2467
2192
  }).loose();
2468
- const microsoft_graph_systemFacet = z.object({}).loose();
2469
- const microsoft_graph_listInfo = z.object({
2470
- contentTypesEnabled: z.boolean().describe("If true, indicates that content types are enabled for this list.").nullish(),
2471
- hidden: z.boolean().describe(
2472
- "If true, indicates that the list isn't normally visible in the SharePoint user experience."
2193
+ const microsoft_graph_physicalAddress = z.object({
2194
+ city: z.string().describe("The city.").nullish(),
2195
+ countryOrRegion: z.string().describe(
2196
+ "The country or region. It's a free-format string value, for example, 'United States'."
2473
2197
  ).nullish(),
2474
- template: z.string().describe(
2475
- "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."
2476
- ).nullish()
2198
+ postalCode: z.string().describe("The postal code.").nullish(),
2199
+ state: z.string().describe("The state.").nullish(),
2200
+ street: z.string().describe("The street.").nullish()
2477
2201
  }).loose();
2478
- const microsoft_graph_columnTypes = z.enum([
2479
- "note",
2480
- "text",
2481
- "choice",
2482
- "multichoice",
2483
- "number",
2484
- "currency",
2485
- "dateTime",
2486
- "lookup",
2487
- "boolean",
2488
- "user",
2489
- "url",
2490
- "calculated",
2491
- "location",
2492
- "geolocation",
2493
- "term",
2494
- "multiterm",
2495
- "thumbnail",
2496
- "approvalStatus",
2497
- "unknownFutureValue"
2498
- ]);
2499
- const microsoft_graph_booleanColumn = z.object({}).loose();
2500
- const microsoft_graph_calculatedColumn = z.object({
2501
- format: z.string().describe(
2502
- "For dateTime output types, the format of the value. The possible values are: dateOnly or dateTime."
2202
+ const microsoft_graph_outlookGeoCoordinates = z.object({
2203
+ accuracy: z.number().describe(
2204
+ "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]"
2503
2205
  ).nullish(),
2504
- formula: z.string().describe("The formula used to compute the value for this column.").nullish(),
2505
- outputType: z.string().describe(
2506
- "The output type used to format values in this column. The possible values are: boolean, currency, dateTime, number, or text."
2507
- ).nullish()
2508
- }).loose();
2509
- const microsoft_graph_choiceColumn = z.object({
2510
- allowTextEntry: z.boolean().describe("If true, allows custom values that aren't in the configured choices.").nullish(),
2511
- choices: z.array(z.string().nullable()).describe("The list of values available for this column.").optional(),
2512
- displayAs: z.string().describe(
2513
- "How the choices are to be presented in the UX. Must be one of checkBoxes, dropDownMenu, or radioButtons"
2514
- ).nullish()
2206
+ altitude: z.number().describe("The altitude of the location. [Simplified from 3 options]").nullish(),
2207
+ altitudeAccuracy: z.number().describe("The accuracy of the altitude. [Simplified from 3 options]").nullish(),
2208
+ latitude: z.number().describe("The latitude of the location. [Simplified from 3 options]").nullish(),
2209
+ longitude: z.number().describe("The longitude of the location. [Simplified from 3 options]").nullish()
2515
2210
  }).loose();
2516
- const microsoft_graph_contentApprovalStatusColumn = z.object({}).loose();
2517
- const microsoft_graph_currencyColumn = z.object({
2518
- locale: z.string().describe("Specifies the locale from which to infer the currency symbol.").nullish()
2211
+ const microsoft_graph_locationType = z.enum([
2212
+ "default",
2213
+ "conferenceRoom",
2214
+ "homeAddress",
2215
+ "businessAddress",
2216
+ "geoCoordinates",
2217
+ "streetAddress",
2218
+ "hotel",
2219
+ "restaurant",
2220
+ "localBusiness",
2221
+ "postalAddress"
2222
+ ]);
2223
+ const microsoft_graph_locationUniqueIdType = z.enum([
2224
+ "unknown",
2225
+ "locationStore",
2226
+ "directory",
2227
+ "private",
2228
+ "bing"
2229
+ ]);
2230
+ const microsoft_graph_location = z.object({
2231
+ address: microsoft_graph_physicalAddress.optional(),
2232
+ coordinates: microsoft_graph_outlookGeoCoordinates.optional(),
2233
+ displayName: z.string().describe("The name associated with the location.").nullish(),
2234
+ locationEmailAddress: z.string().describe("Optional email address of the location.").nullish(),
2235
+ locationType: microsoft_graph_locationType.optional(),
2236
+ locationUri: z.string().describe("Optional URI representing the location.").nullish(),
2237
+ uniqueId: z.string().describe("For internal use only.").nullish(),
2238
+ uniqueIdType: microsoft_graph_locationUniqueIdType.optional()
2519
2239
  }).loose();
2520
- const microsoft_graph_dateTimeColumn = z.object({
2521
- displayAs: z.string().describe(
2522
- "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."
2523
- ).nullish(),
2524
- format: z.string().describe(
2525
- "Indicates whether the value should be presented as a date only or a date and time. Must be one of dateOnly or dateTime"
2526
- ).nullish()
2240
+ const microsoft_graph_freeBusyStatus = z.enum([
2241
+ "unknown",
2242
+ "free",
2243
+ "tentative",
2244
+ "busy",
2245
+ "oof",
2246
+ "workingElsewhere"
2247
+ ]);
2248
+ const microsoft_graph_sensitivity = z.enum(["normal", "personal", "private", "confidential"]);
2249
+ const microsoft_graph_importance = z.enum(["low", "normal", "high"]);
2250
+ const microsoft_graph_emailAddress = z.object({
2251
+ address: z.string().describe("The email address of the person or entity.").nullish(),
2252
+ name: z.string().describe("The display name of the person or entity.").nullish()
2527
2253
  }).loose();
2528
- const microsoft_graph_defaultColumnValue = z.object({
2529
- formula: z.string().describe("The formula used to compute the default value for the column.").nullish(),
2530
- value: z.string().describe("The direct value to use as the default value for the column.").nullish()
2254
+ const microsoft_graph_attendeeType = z.enum(["required", "optional", "resource"]);
2255
+ const microsoft_graph_timeSlot = z.object({
2256
+ end: microsoft_graph_dateTimeTimeZone.optional(),
2257
+ start: microsoft_graph_dateTimeTimeZone.optional()
2531
2258
  }).loose();
2532
- const microsoft_graph_geolocationColumn = z.object({}).loose();
2533
- const microsoft_graph_hyperlinkOrPictureColumn = z.object({
2534
- isPicture: z.boolean().describe(
2535
- "Specifies whether the display format used for URL columns is an image or a hyperlink."
2259
+ const microsoft_graph_responseType = z.enum([
2260
+ "none",
2261
+ "organizer",
2262
+ "tentativelyAccepted",
2263
+ "accepted",
2264
+ "declined",
2265
+ "notResponded"
2266
+ ]);
2267
+ const microsoft_graph_responseStatus = z.object({
2268
+ response: microsoft_graph_responseType.optional(),
2269
+ time: z.string().regex(
2270
+ /^[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])$/
2271
+ ).datetime({ offset: true }).describe(
2272
+ "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"
2536
2273
  ).nullish()
2537
2274
  }).loose();
2538
- const microsoft_graph_lookupColumn = z.object({
2539
- allowMultipleValues: z.boolean().describe("Indicates whether multiple values can be selected from the source.").nullish(),
2540
- allowUnlimitedLength: z.boolean().describe(
2541
- "Indicates whether values in the column should be able to exceed the standard limit of 255 characters."
2542
- ).nullish(),
2543
- columnName: z.string().describe("The name of the lookup source column.").nullish(),
2544
- listId: z.string().describe("The unique identifier of the lookup source list.").nullish(),
2545
- primaryLookupColumnId: z.string().describe(
2546
- "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."
2547
- ).nullish()
2275
+ const microsoft_graph_attendee = z.object({
2276
+ emailAddress: microsoft_graph_emailAddress.optional(),
2277
+ type: microsoft_graph_attendeeType.optional(),
2278
+ proposedNewTime: microsoft_graph_timeSlot.optional(),
2279
+ status: microsoft_graph_responseStatus.optional()
2280
+ }).loose();
2281
+ const microsoft_graph_dayOfWeek = z.enum([
2282
+ "sunday",
2283
+ "monday",
2284
+ "tuesday",
2285
+ "wednesday",
2286
+ "thursday",
2287
+ "friday",
2288
+ "saturday"
2289
+ ]);
2290
+ const microsoft_graph_weekIndex = z.enum(["first", "second", "third", "fourth", "last"]);
2291
+ const microsoft_graph_recurrencePatternType = z.enum([
2292
+ "daily",
2293
+ "weekly",
2294
+ "absoluteMonthly",
2295
+ "relativeMonthly",
2296
+ "absoluteYearly",
2297
+ "relativeYearly"
2298
+ ]);
2299
+ const microsoft_graph_recurrencePattern = z.object({
2300
+ dayOfMonth: z.number().gte(-2147483648).lte(2147483647).describe(
2301
+ "The day of the month on which the event occurs. Required if type is absoluteMonthly or absoluteYearly."
2302
+ ).optional(),
2303
+ daysOfWeek: z.array(z.union([microsoft_graph_dayOfWeek, z.object({}).partial().loose()])).describe(
2304
+ "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."
2305
+ ).optional(),
2306
+ firstDayOfWeek: microsoft_graph_dayOfWeek.optional(),
2307
+ index: microsoft_graph_weekIndex.optional(),
2308
+ interval: z.number().gte(-2147483648).lte(2147483647).describe(
2309
+ "The number of units between occurrences, where units can be in days, weeks, months, or years, depending on the type. Required."
2310
+ ).optional(),
2311
+ month: z.number().gte(-2147483648).lte(2147483647).describe("The month in which the event occurs. This is a number from 1 to 12.").optional(),
2312
+ type: microsoft_graph_recurrencePatternType.optional()
2548
2313
  }).loose();
2549
- const microsoft_graph_numberColumn = z.object({
2550
- decimalPlaces: z.string().describe(
2551
- "How many decimal places to display. See below for information about the possible values."
2314
+ const microsoft_graph_recurrenceRangeType = z.enum(["endDate", "noEnd", "numbered"]);
2315
+ const microsoft_graph_recurrenceRange = z.object({
2316
+ endDate: z.string().regex(/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/).describe(
2317
+ "The date to stop applying the recurrence pattern. Depending on the recurrence pattern of the event, the last occurrence of the meeting may not be this date. Required if type is endDate."
2552
2318
  ).nullish(),
2553
- displayAs: z.string().describe(
2554
- "How the value should be presented in the UX. Must be one of number or percentage. If unspecified, treated as number."
2319
+ numberOfOccurrences: z.number().gte(-2147483648).lte(2147483647).describe(
2320
+ "The number of times to repeat the event. Required and must be positive if type is numbered."
2321
+ ).optional(),
2322
+ recurrenceTimeZone: z.string().describe(
2323
+ "Time zone for the startDate and endDate properties. Optional. If not specified, the time zone of the event is used."
2555
2324
  ).nullish(),
2556
- maximum: z.number().describe("The maximum permitted value. [Simplified from 3 options]").nullish(),
2557
- minimum: z.number().describe("The minimum permitted value. [Simplified from 3 options]").nullish()
2558
- }).loose();
2559
- const microsoft_graph_personOrGroupColumn = z.object({
2560
- allowMultipleSelection: z.boolean().describe("Indicates whether multiple values can be selected from the source.").nullish(),
2561
- chooseFromType: z.string().describe(
2562
- "Whether to allow selection of people only, or people and groups. Must be one of peopleAndGroups or peopleOnly."
2325
+ startDate: z.string().regex(/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/).describe(
2326
+ "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."
2563
2327
  ).nullish(),
2564
- displayAs: z.string().describe("How to display the information about the person or group chosen. See below.").nullish()
2328
+ type: microsoft_graph_recurrenceRangeType.optional()
2565
2329
  }).loose();
2566
- const microsoft_graph_columnDefinition = z.object({
2330
+ const microsoft_graph_patternedRecurrence = z.object({
2331
+ pattern: microsoft_graph_recurrencePattern.optional(),
2332
+ range: microsoft_graph_recurrenceRange.optional()
2333
+ }).loose();
2334
+ const microsoft_graph_event = z.object({
2567
2335
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2568
- name: z.string().describe(
2569
- "The API-facing name of the column as it appears in the fields on a listItem. For the user-facing name, see displayName."
2336
+ createdDateTime: z.string().regex(
2337
+ /^[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])$/
2338
+ ).datetime({ offset: true }).describe(
2339
+ "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2570
2340
  ).nullish(),
2571
- displayName: z.string().describe("The user-facing name of the column.").nullish(),
2572
- description: z.string().describe("The user-facing description of the column.").nullish(),
2573
- type: microsoft_graph_columnTypes.optional(),
2574
- boolean: microsoft_graph_booleanColumn.optional(),
2575
- calculated: microsoft_graph_calculatedColumn.optional(),
2576
- choice: microsoft_graph_choiceColumn.optional(),
2577
- columnGroup: z.string().describe(
2578
- "For site columns, the name of the group this column belongs to. Helps organize related columns."
2341
+ lastModifiedDateTime: z.string().regex(
2342
+ /^[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])$/
2343
+ ).datetime({ offset: true }).describe(
2344
+ "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2579
2345
  ).nullish(),
2580
- contentApprovalStatus: microsoft_graph_contentApprovalStatusColumn.optional(),
2581
- currency: microsoft_graph_currencyColumn.optional(),
2582
- dateTime: microsoft_graph_dateTimeColumn.optional(),
2583
- defaultValue: microsoft_graph_defaultColumnValue.optional(),
2584
- enforceUniqueValues: z.boolean().describe("If true, no two list items may have the same value for this column.").nullish(),
2585
- geolocation: microsoft_graph_geolocationColumn.optional(),
2586
- hidden: z.boolean().describe("Specifies whether the column is displayed in the user interface.").nullish(),
2587
- hyperlinkOrPicture: microsoft_graph_hyperlinkOrPictureColumn.optional(),
2588
- indexed: z.boolean().describe("Specifies whether the column values can be used for sorting and searching.").nullish(),
2589
- isDeletable: z.boolean().describe("Indicates whether this column can be deleted.").nullish(),
2590
- isReorderable: z.boolean().describe("Indicates whether values in the column can be reordered. Read-only.").nullish(),
2591
- isSealed: z.boolean().describe("Specifies whether the column can be changed.").nullish(),
2592
- lookup: microsoft_graph_lookupColumn.optional(),
2593
- number: microsoft_graph_numberColumn.optional(),
2594
- personOrGroup: microsoft_graph_personOrGroupColumn.optional(),
2595
- propagateChanges: z.boolean().describe(
2596
- "If 'true', changes to this column will be propagated to lists that implement the column."
2597
- ).nullish()
2598
- }).loose().loose();
2599
- const microsoft_graph_contentTypeInfo = z.object({
2600
- id: z.string().describe("The ID of the content type.").nullish(),
2601
- name: z.string().describe("The name of the content type.").nullish()
2602
- }).loose();
2603
- const microsoft_graph_documentSetContent = z.object({
2604
- contentType: microsoft_graph_contentTypeInfo.optional(),
2605
- fileName: z.string().describe(
2606
- "Name of the file in resource folder that should be added as a default content or a template in the document set."
2346
+ type: microsoft_graph_eventType.optional(),
2347
+ body: microsoft_graph_itemBody.optional(),
2348
+ subject: z.string().describe("The text of the event's subject line.").nullish(),
2349
+ attachments: z.array(microsoft_graph_attachment).describe(
2350
+ "The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable."
2351
+ ).optional(),
2352
+ singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
2353
+ "The collection of single-value extended properties defined for the event. Read-only. Nullable."
2354
+ ).optional(),
2355
+ multiValueExtendedProperties: z.array(microsoft_graph_multiValueLegacyExtendedProperty).describe(
2356
+ "The collection of multi-value extended properties defined for the event. Read-only. Nullable."
2357
+ ).optional(),
2358
+ start: microsoft_graph_dateTimeTimeZone.optional(),
2359
+ end: microsoft_graph_dateTimeTimeZone.optional(),
2360
+ location: microsoft_graph_location.optional(),
2361
+ showAs: microsoft_graph_freeBusyStatus.optional(),
2362
+ sensitivity: microsoft_graph_sensitivity.optional(),
2363
+ isAllDay: z.boolean().describe(
2364
+ "Set to true if the event lasts all day. If true, regardless of whether it's a single-day or multi-day event, start, and endtime must be set to midnight and be in the same time zone."
2607
2365
  ).nullish(),
2608
- folderName: z.string().describe(
2609
- "Folder name in which the file will be placed when a new document set is created in the library."
2366
+ importance: microsoft_graph_importance.optional(),
2367
+ isOnlineMeeting: z.boolean().describe(
2368
+ "True if this event has online meeting information (that is, onlineMeeting points to an onlineMeetingInfo resource), false otherwise. Default is false (onlineMeeting is null). Optional. After you set isOnlineMeeting to true, Microsoft Graph initializes onlineMeeting. Subsequently, Outlook ignores any further changes to isOnlineMeeting, and the meeting remains available online."
2369
+ ).nullish(),
2370
+ isReminderOn: z.boolean().describe("Set to true if an alert is set to remind the user of the event.").nullish(),
2371
+ attendees: z.array(microsoft_graph_attendee).describe("The collection of attendees for the event.").optional(),
2372
+ recurrence: microsoft_graph_patternedRecurrence.optional(),
2373
+ reminderMinutesBeforeStart: z.number().gte(-2147483648).lte(2147483647).describe("The number of minutes before the event start time that the reminder alert occurs.").nullish(),
2374
+ allowNewTimeProposals: z.boolean().describe(
2375
+ "true if the meeting organizer allows invitees to propose a new time when responding; otherwise, false. Optional. The default is true."
2376
+ ).nullish(),
2377
+ responseRequested: z.boolean().describe(
2378
+ "Default is true, which represents the organizer would like an invitee to send a response to the event."
2379
+ ).nullish(),
2380
+ categories: z.array(z.string().nullable()).describe("The categories associated with the item").optional(),
2381
+ changeKey: z.string().describe(
2382
+ "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."
2610
2383
  ).nullish()
2611
- }).loose();
2612
- const microsoft_graph_documentSet = z.object({
2613
- allowedContentTypes: z.array(microsoft_graph_contentTypeInfo).describe("Content types allowed in document set.").optional(),
2614
- defaultContents: z.array(microsoft_graph_documentSetContent).describe("Default contents of document set.").optional(),
2615
- propagateWelcomePageChanges: z.boolean().describe("Specifies whether to push welcome page changes to inherited content types.").nullish(),
2616
- shouldPrefixNameToFile: z.boolean().describe("Indicates whether to add the name of the document set to each file name.").nullish(),
2617
- welcomePageUrl: z.string().describe("Welcome page absolute URL.").nullish(),
2618
- sharedColumns: z.array(microsoft_graph_columnDefinition).optional(),
2619
- welcomePageColumns: z.array(microsoft_graph_columnDefinition).optional()
2620
- }).loose();
2621
- const microsoft_graph_contentTypeOrder = z.object({
2622
- default: z.boolean().describe("Indicates whether this is the default content type").nullish(),
2623
- position: z.number().gte(-2147483648).lte(2147483647).describe("Specifies the position in which the content type appears in the selection UI.").nullish()
2624
- }).loose();
2625
- const microsoft_graph_columnLink = z.object({
2626
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2627
- name: z.string().describe("The name of the column in this content type.").nullish()
2628
- }).loose();
2629
- const microsoft_graph_contentType = z.lazy(
2384
+ }).loose().loose();
2385
+ const microsoft_graph_eventCollectionResponse = z.object({
2386
+ "@odata.count": z.number().int().nullable(),
2387
+ "@odata.nextLink": z.string().nullable(),
2388
+ value: z.array(microsoft_graph_event)
2389
+ }).partial().loose();
2390
+ const microsoft_graph_recipient = z.object({ emailAddress: microsoft_graph_emailAddress.optional() }).loose();
2391
+ const microsoft_graph_extension = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).loose();
2392
+ const microsoft_graph_post = z.lazy(
2630
2393
  () => z.object({
2631
2394
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2632
- associatedHubsUrls: z.array(z.string().nullable()).describe(
2633
- "List of canonical URLs for hub sites with which this content type is associated to. This will contain all hub sites where this content type is queued to be enforced or is already enforced. Enforcing a content type means that the content type is applied to the lists in the enforced sites."
2634
- ).optional(),
2635
- description: z.string().describe("The descriptive text for the item.").nullish(),
2636
- documentSet: microsoft_graph_documentSet.optional(),
2637
- documentTemplate: microsoft_graph_documentSetContent.optional(),
2638
- group: z.string().describe(
2639
- "The name of the group this content type belongs to. Helps organize related content types."
2640
- ).nullish(),
2641
- hidden: z.boolean().describe("Indicates whether the content type is hidden in the list's 'New' menu.").nullish(),
2642
- inheritedFrom: microsoft_graph_itemReference.optional(),
2643
- isBuiltIn: z.boolean().describe("Specifies if a content type is a built-in content type.").nullish(),
2644
- name: z.string().describe("The name of the content type.").nullish(),
2645
- order: microsoft_graph_contentTypeOrder.optional(),
2646
- parentId: z.string().describe("The unique identifier of the content type.").nullish(),
2647
- propagateChanges: z.boolean().describe(
2648
- "If true, any changes made to the content type are pushed to inherited content types and lists that implement the content type."
2395
+ categories: z.array(z.string().nullable()).describe("The categories associated with the item").optional(),
2396
+ changeKey: z.string().describe(
2397
+ "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."
2649
2398
  ).nullish(),
2650
- readOnly: z.boolean().describe(
2651
- "If true, the content type can't be modified unless this value is first set to false."
2399
+ createdDateTime: z.string().regex(
2400
+ /^[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])$/
2401
+ ).datetime({ offset: true }).describe(
2402
+ "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2652
2403
  ).nullish(),
2653
- sealed: z.boolean().describe(
2654
- "If true, the content type can't be modified by users or through push-down operations. Only site collection administrators can seal or unseal content types."
2404
+ lastModifiedDateTime: z.string().regex(
2405
+ /^[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])$/
2406
+ ).datetime({ offset: true }).describe(
2407
+ "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2655
2408
  ).nullish(),
2656
- base: microsoft_graph_contentType.optional(),
2657
- baseTypes: z.array(microsoft_graph_contentType).describe("The collection of content types that are ancestors of this content type.").optional(),
2658
- columnLinks: z.array(microsoft_graph_columnLink).describe("The collection of columns that are required by this content type.").optional(),
2659
- columnPositions: z.array(microsoft_graph_columnDefinition).describe("Column order information in a content type.").optional(),
2660
- columns: z.array(microsoft_graph_columnDefinition).describe("The collection of column definitions for this content type.").optional()
2409
+ body: microsoft_graph_itemBody.optional(),
2410
+ conversationId: z.string().describe("Unique ID of the conversation. Read-only.").nullish(),
2411
+ conversationThreadId: z.string().describe("Unique ID of the conversation thread. Read-only.").nullish(),
2412
+ from: microsoft_graph_recipient.optional(),
2413
+ hasAttachments: z.boolean().describe(
2414
+ "Indicates whether the post has at least one attachment. This is a default property."
2415
+ ).optional(),
2416
+ newParticipants: z.array(microsoft_graph_recipient).describe("Conversation participants that were added to the thread as part of this post.").optional(),
2417
+ receivedDateTime: z.string().regex(
2418
+ /^[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])$/
2419
+ ).datetime({ offset: true }).describe(
2420
+ "Specifies when the post was received. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2421
+ ).optional(),
2422
+ sender: microsoft_graph_recipient.optional(),
2423
+ attachments: z.array(microsoft_graph_attachment).describe("Read-only. Nullable. Supports $expand.").optional(),
2424
+ extensions: z.array(microsoft_graph_extension).describe(
2425
+ "The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand."
2426
+ ).optional(),
2427
+ inReplyTo: microsoft_graph_post.optional(),
2428
+ multiValueExtendedProperties: z.array(microsoft_graph_multiValueLegacyExtendedProperty).describe(
2429
+ "The collection of multi-value extended properties defined for the post. Read-only. Nullable."
2430
+ ).optional(),
2431
+ singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
2432
+ "The collection of single-value extended properties defined for the post. Read-only. Nullable."
2433
+ ).optional()
2661
2434
  }).loose()
2662
2435
  );
2663
- const microsoft_graph_itemActionStat = z.object({
2664
- actionCount: z.number().gte(-2147483648).lte(2147483647).describe("The number of times the action took place. Read-only.").nullish(),
2665
- actorCount: z.number().gte(-2147483648).lte(2147483647).describe("The number of distinct actors that performed the action. Read-only.").nullish()
2436
+ const microsoft_graph_conversationThread = z.object({
2437
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2438
+ ccRecipients: z.array(microsoft_graph_recipient).describe("The Cc: recipients for the thread. Requires $select to retrieve.").optional(),
2439
+ hasAttachments: z.boolean().describe(
2440
+ "Indicates whether any of the posts within this thread has at least one attachment. Returned by default."
2441
+ ).optional(),
2442
+ isLocked: z.boolean().describe("Indicates if the thread is locked. Returned by default.").optional(),
2443
+ lastDeliveredDateTime: z.string().regex(
2444
+ /^[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])$/
2445
+ ).datetime({ offset: true }).describe(
2446
+ "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.Returned by default."
2447
+ ).optional(),
2448
+ preview: z.string().describe(
2449
+ "A short summary from the body of the latest post in this conversation. Returned by default."
2450
+ ).optional(),
2451
+ topic: z.string().describe(
2452
+ "The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated. Returned by default."
2453
+ ).optional(),
2454
+ toRecipients: z.array(microsoft_graph_recipient).describe("The To: recipients for the thread. Requires $select to retrieve.").optional(),
2455
+ uniqueSenders: z.array(z.string()).describe("All the users that sent a message to this thread. Returned by default.").optional(),
2456
+ posts: z.array(microsoft_graph_post).optional()
2666
2457
  }).loose();
2667
- const microsoft_graph_incompleteData = z.object({
2668
- missingDataBeforeDateTime: z.string().regex(
2458
+ const microsoft_graph_conversation = z.object({
2459
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2460
+ hasAttachments: z.boolean().describe(
2461
+ "Indicates whether any of the posts within this Conversation has at least one attachment. Supports $filter (eq, ne) and $search."
2462
+ ).optional(),
2463
+ lastDeliveredDateTime: z.string().regex(
2669
2464
  /^[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])$/
2670
- ).datetime({ offset: true }).describe("The service does not have source data before the specified time.").nullish(),
2671
- wasThrottled: z.boolean().describe("Some data was not recorded due to excessive activity.").nullish()
2465
+ ).datetime({ offset: true }).describe(
2466
+ "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2467
+ ).optional(),
2468
+ preview: z.string().describe(
2469
+ "A short summary from the body of the latest post in this conversation. Supports $filter (eq, ne, le, ge)."
2470
+ ).optional(),
2471
+ topic: z.string().describe(
2472
+ "The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated."
2473
+ ).optional(),
2474
+ uniqueSenders: z.array(z.string()).describe("All the users that sent a message to this Conversation.").optional(),
2475
+ threads: z.array(microsoft_graph_conversationThread).describe(
2476
+ "A collection of all the conversation threads in the conversation. A navigation property. Read-only. Nullable."
2477
+ ).optional()
2672
2478
  }).loose();
2673
- const microsoft_graph_accessAction = z.object({}).loose();
2674
- const microsoft_graph_itemActivity = z.object({
2479
+ const microsoft_graph_conversationCollectionResponse = z.object({
2480
+ "@odata.count": z.number().int().nullable(),
2481
+ "@odata.nextLink": z.string().nullable(),
2482
+ value: z.array(microsoft_graph_conversation)
2483
+ }).partial().loose();
2484
+ const microsoft_graph_directoryObject = z.object({
2675
2485
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2676
- access: microsoft_graph_accessAction.optional(),
2677
- activityDateTime: z.string().regex(
2486
+ deletedDateTime: z.string().regex(
2678
2487
  /^[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])$/
2679
- ).datetime({ offset: true }).describe("Details about when the activity took place. Read-only.").nullish(),
2680
- actor: microsoft_graph_identitySet.optional(),
2681
- driveItem: microsoft_graph_driveItem.describe("[Note: Simplified from 45 properties to 25 most common ones]").optional()
2488
+ ).datetime({ offset: true }).describe(
2489
+ "Date and time when this object was deleted. Always null when the object hasn't been deleted."
2490
+ ).nullish()
2682
2491
  }).loose();
2683
- const microsoft_graph_itemActivityStat = z.object({
2492
+ const microsoft_graph_directoryObjectCollectionResponse = z.object({
2493
+ "@odata.count": z.number().int().nullable(),
2494
+ "@odata.nextLink": z.string().nullable(),
2495
+ value: z.array(microsoft_graph_directoryObject)
2496
+ }).partial().loose();
2497
+ const ReferenceCreate = z.record(z.string(), z.object({}).partial().loose());
2498
+ const microsoft_graph_plannerContainerType = z.enum(["group", "unknownFutureValue", "roster"]);
2499
+ const microsoft_graph_plannerPlanContainer = z.object({
2500
+ containerId: z.string().describe("The identifier of the resource that contains the plan. Optional.").nullish(),
2501
+ type: microsoft_graph_plannerContainerType.optional(),
2502
+ url: z.string().describe("The full canonical URL of the container. Optional.").nullish()
2503
+ }).loose();
2504
+ const microsoft_graph_plannerChecklistItems = z.object({}).loose();
2505
+ const microsoft_graph_plannerPreviewType = z.enum([
2506
+ "automatic",
2507
+ "noPreview",
2508
+ "checklist",
2509
+ "description",
2510
+ "reference"
2511
+ ]);
2512
+ const microsoft_graph_plannerExternalReferences = z.object({}).loose();
2513
+ const microsoft_graph_plannerTaskDetails = z.object({
2684
2514
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2685
- access: microsoft_graph_itemActionStat.optional(),
2686
- create: microsoft_graph_itemActionStat.optional(),
2687
- delete: microsoft_graph_itemActionStat.optional(),
2688
- edit: microsoft_graph_itemActionStat.optional(),
2689
- endDateTime: z.string().regex(
2690
- /^[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])$/
2691
- ).datetime({ offset: true }).describe("When the interval ends. Read-only.").nullish(),
2692
- incompleteData: microsoft_graph_incompleteData.optional(),
2693
- isTrending: z.boolean().describe("Indicates whether the item is 'trending.' Read-only.").nullish(),
2694
- move: microsoft_graph_itemActionStat.optional(),
2695
- startDateTime: z.string().regex(
2696
- /^[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])$/
2697
- ).datetime({ offset: true }).describe("When the interval starts. Read-only.").nullish(),
2698
- activities: z.array(microsoft_graph_itemActivity).describe("Exposes the itemActivities represented in this itemActivityStat resource.").optional()
2515
+ checklist: microsoft_graph_plannerChecklistItems.optional(),
2516
+ description: z.string().describe("Description of the task.").nullish(),
2517
+ previewType: microsoft_graph_plannerPreviewType.optional(),
2518
+ references: microsoft_graph_plannerExternalReferences.optional()
2699
2519
  }).loose();
2700
- const microsoft_graph_itemAnalytics = z.object({
2520
+ const microsoft_graph_plannerAppliedCategories = z.object({}).loose();
2521
+ const microsoft_graph_plannerAssignments = z.object({}).loose();
2522
+ const microsoft_graph_plannerOrderHintsByAssignee = z.object({}).loose();
2523
+ const microsoft_graph_plannerAssignedToTaskBoardTaskFormat = z.object({
2701
2524
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2702
- allTime: microsoft_graph_itemActivityStat.optional(),
2703
- itemActivityStats: z.array(microsoft_graph_itemActivityStat).optional(),
2704
- lastSevenDays: microsoft_graph_itemActivityStat.optional()
2525
+ orderHintsByAssignee: microsoft_graph_plannerOrderHintsByAssignee.optional(),
2526
+ unassignedOrderHint: z.string().describe(
2527
+ "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."
2528
+ ).nullish()
2705
2529
  }).loose();
2706
- const microsoft_graph_fieldValueSet = z.object({ id: z.string().describe("The unique identifier for an entity. Read-only.").optional() }).loose();
2707
- const microsoft_graph_documentSetVersionItem = z.object({
2708
- itemId: z.string().describe("The unique identifier for the item.").nullish(),
2709
- title: z.string().describe("The title of the item.").nullish(),
2710
- versionId: z.string().describe("The version ID of the item.").nullish()
2530
+ const microsoft_graph_plannerBucketTaskBoardTaskFormat = z.object({
2531
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2532
+ orderHint: z.string().describe(
2533
+ "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."
2534
+ ).nullish()
2711
2535
  }).loose();
2712
- const microsoft_graph_documentSetVersion = z.object({
2536
+ const microsoft_graph_plannerTask = z.object({
2713
2537
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2714
- lastModifiedBy: microsoft_graph_identitySet.optional(),
2715
- lastModifiedDateTime: z.string().regex(
2538
+ createdDateTime: z.string().regex(
2716
2539
  /^[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])$/
2717
- ).datetime({ offset: true }).describe("Date and time the version was last modified. Read-only.").nullish(),
2718
- publication: microsoft_graph_publicationFacet.optional(),
2719
- fields: microsoft_graph_fieldValueSet.optional(),
2720
- comment: z.string().describe("Comment about the captured version.").nullish(),
2540
+ ).datetime({ offset: true }).describe(
2541
+ "Read-only. Date and time at which the task is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2542
+ ).nullish(),
2543
+ title: z.string().describe("Title of the task.").optional(),
2544
+ details: microsoft_graph_plannerTaskDetails.optional(),
2545
+ activeChecklistItemCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of checklist items with value set to false, representing incomplete items.").nullish(),
2546
+ appliedCategories: microsoft_graph_plannerAppliedCategories.optional(),
2547
+ assigneePriority: z.string().describe(
2548
+ "Hint used to order items of this type in a list view. The format is defined as outlined here."
2549
+ ).nullish(),
2550
+ assignments: microsoft_graph_plannerAssignments.optional(),
2551
+ bucketId: z.string().describe(
2552
+ "Bucket ID to which the task belongs. The bucket needs to be in the plan that the task is in. It's 28 characters long and case-sensitive. Format validation is done on the service."
2553
+ ).nullish(),
2554
+ checklistItemCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of checklist items that are present on the task.").nullish(),
2555
+ completedBy: microsoft_graph_identitySet.optional(),
2556
+ completedDateTime: z.string().regex(
2557
+ /^[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])$/
2558
+ ).datetime({ offset: true }).describe(
2559
+ "Read-only. Date and time at which the 'percentComplete' of the task is set to '100'. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2560
+ ).nullish(),
2561
+ conversationThreadId: z.string().describe(
2562
+ "Thread ID of the conversation on the task. This is the ID of the conversation thread object created in the group."
2563
+ ).nullish(),
2721
2564
  createdBy: microsoft_graph_identitySet.optional(),
2722
- createdDateTime: z.string().regex(
2565
+ dueDateTime: z.string().regex(
2723
2566
  /^[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])$/
2724
- ).datetime({ offset: true }).describe("Date and time when this version was created.").nullish(),
2725
- items: z.array(microsoft_graph_documentSetVersionItem).describe("Items within the document set that are captured as part of this version.").optional(),
2726
- shouldCaptureMinorVersion: z.boolean().describe(
2727
- "If true, minor versions of items are also captured; otherwise, only major versions are captured. The default value is false."
2728
- ).nullish()
2567
+ ).datetime({ offset: true }).describe(
2568
+ "Date and time at which the task is due. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2569
+ ).nullish(),
2570
+ hasDescription: z.boolean().describe(
2571
+ "Read-only. Value is true if the details object of the task has a nonempty description and false otherwise."
2572
+ ).nullish(),
2573
+ orderHint: z.string().describe(
2574
+ "Hint used to order items of this type in a list view. The format is defined as outlined here."
2575
+ ).nullish(),
2576
+ percentComplete: z.number().gte(-2147483648).lte(2147483647).describe("Percentage of task completion. When set to 100, the task is considered completed.").nullish(),
2577
+ planId: z.string().describe("Plan ID to which the task belongs.").nullish(),
2578
+ previewType: microsoft_graph_plannerPreviewType.optional(),
2579
+ priority: z.number().gte(-2147483648).lte(2147483647).describe(
2580
+ "Priority of the task. The valid range of values is between 0 and 10, with the increasing value being lower priority (0 has the highest priority and 10 has the lowest priority). Currently, Planner interprets values 0 and 1 as 'urgent', 2, 3 and 4 as 'important', 5, 6, and 7 as 'medium', and 8, 9, and 10 as 'low'. Additionally, Planner sets the value 1 for 'urgent', 3 for 'important', 5 for 'medium', and 9 for 'low'."
2581
+ ).nullish(),
2582
+ referenceCount: z.number().gte(-2147483648).lte(2147483647).describe("Number of external references that exist on the task.").nullish(),
2583
+ startDateTime: z.string().regex(
2584
+ /^[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])$/
2585
+ ).datetime({ offset: true }).describe(
2586
+ "Date and time at which the task starts. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2587
+ ).nullish(),
2588
+ assignedToTaskBoardFormat: microsoft_graph_plannerAssignedToTaskBoardTaskFormat.optional(),
2589
+ bucketTaskBoardFormat: microsoft_graph_plannerBucketTaskBoardTaskFormat.optional()
2590
+ }).loose().loose();
2591
+ const microsoft_graph_plannerBucket = z.object({
2592
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2593
+ name: z.string().describe("Name of the bucket.").optional(),
2594
+ orderHint: z.string().describe(
2595
+ "Hint used to order items of this type in a list view. For details about the supported format, see Using order hints in Planner."
2596
+ ).nullish(),
2597
+ planId: z.string().describe("Plan ID to which the bucket belongs.").nullish(),
2598
+ tasks: z.array(microsoft_graph_plannerTask).describe("Read-only. Nullable. The collection of tasks in the bucket.").optional()
2729
2599
  }).loose();
2730
- const microsoft_graph_listItemVersion = z.object({
2600
+ const microsoft_graph_plannerCategoryDescriptions = z.object({
2601
+ category1: z.string().describe("The label associated with Category 1").nullish(),
2602
+ category10: z.string().describe("The label associated with Category 10").nullish(),
2603
+ category11: z.string().describe("The label associated with Category 11").nullish(),
2604
+ category12: z.string().describe("The label associated with Category 12").nullish(),
2605
+ category13: z.string().describe("The label associated with Category 13").nullish(),
2606
+ category14: z.string().describe("The label associated with Category 14").nullish(),
2607
+ category15: z.string().describe("The label associated with Category 15").nullish(),
2608
+ category16: z.string().describe("The label associated with Category 16").nullish(),
2609
+ category17: z.string().describe("The label associated with Category 17").nullish(),
2610
+ category18: z.string().describe("The label associated with Category 18").nullish(),
2611
+ category19: z.string().describe("The label associated with Category 19").nullish(),
2612
+ category2: z.string().describe("The label associated with Category 2").nullish(),
2613
+ category20: z.string().describe("The label associated with Category 20").nullish(),
2614
+ category21: z.string().describe("The label associated with Category 21").nullish(),
2615
+ category22: z.string().describe("The label associated with Category 22").nullish(),
2616
+ category23: z.string().describe("The label associated with Category 23").nullish(),
2617
+ category24: z.string().describe("The label associated with Category 24").nullish(),
2618
+ category25: z.string().describe("The label associated with Category 25").nullish(),
2619
+ category3: z.string().describe("The label associated with Category 3").nullish(),
2620
+ category4: z.string().describe("The label associated with Category 4").nullish(),
2621
+ category5: z.string().describe("The label associated with Category 5").nullish(),
2622
+ category6: z.string().describe("The label associated with Category 6").nullish(),
2623
+ category7: z.string().describe("The label associated with Category 7").nullish(),
2624
+ category8: z.string().describe("The label associated with Category 8").nullish(),
2625
+ category9: z.string().describe("The label associated with Category 9").nullish()
2626
+ }).loose();
2627
+ const microsoft_graph_plannerUserIds = z.object({}).loose();
2628
+ const microsoft_graph_plannerPlanDetails = z.object({
2731
2629
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2732
- lastModifiedBy: microsoft_graph_identitySet.optional(),
2733
- lastModifiedDateTime: z.string().regex(
2734
- /^[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])$/
2735
- ).datetime({ offset: true }).describe("Date and time the version was last modified. Read-only.").nullish(),
2736
- publication: microsoft_graph_publicationFacet.optional(),
2737
- fields: microsoft_graph_fieldValueSet.optional()
2630
+ categoryDescriptions: microsoft_graph_plannerCategoryDescriptions.optional(),
2631
+ sharedWith: microsoft_graph_plannerUserIds.optional()
2738
2632
  }).loose();
2739
- const microsoft_graph_listItem = z.object({
2633
+ const microsoft_graph_plannerPlan = z.object({
2740
2634
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2635
+ container: microsoft_graph_plannerPlanContainer.optional(),
2741
2636
  createdBy: microsoft_graph_identitySet.optional(),
2742
2637
  createdDateTime: z.string().regex(
2743
2638
  /^[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])$/
2744
- ).datetime({ offset: true }).describe("Date and time of item creation. Read-only.").optional(),
2745
- description: z.string().describe("Provides a user-visible description of the item. Optional.").nullish(),
2746
- eTag: z.string().describe("ETag for the item. Read-only.").nullish(),
2747
- lastModifiedBy: microsoft_graph_identitySet.optional(),
2748
- lastModifiedDateTime: z.string().regex(
2749
- /^[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])$/
2750
- ).datetime({ offset: true }).describe("Date and time the item was last modified. Read-only.").optional(),
2751
- name: z.string().describe("The name of the item. Read-write.").nullish(),
2752
- parentReference: microsoft_graph_itemReference.optional(),
2753
- webUrl: z.string().describe(
2754
- "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
2639
+ ).datetime({ offset: true }).describe(
2640
+ "Read-only. Date and time at which the plan is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2755
2641
  ).nullish(),
2756
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2757
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2758
- contentType: microsoft_graph_contentTypeInfo.optional(),
2759
- deleted: microsoft_graph_deleted.optional(),
2760
- sharepointIds: microsoft_graph_sharepointIds.optional(),
2761
- analytics: microsoft_graph_itemAnalytics.optional(),
2762
- documentSetVersions: z.array(microsoft_graph_documentSetVersion).describe("Version information for a document set version created by a user.").optional(),
2763
- driveItem: microsoft_graph_driveItem.describe("[Note: Simplified from 45 properties to 25 most common ones]").optional(),
2764
- fields: microsoft_graph_fieldValueSet.optional(),
2765
- permissions: z.array(microsoft_graph_permission).describe("The set of permissions for the item. Read-only. Nullable.").optional(),
2766
- versions: z.array(microsoft_graph_listItemVersion).describe("The list of previous versions of the list item.").optional()
2642
+ owner: z.string().describe(
2643
+ "Use the container property instead. ID of the group that owns the plan. After it's set, this property can\u2019t be updated. This property won't return a valid group ID if the container of the plan isn't a group."
2644
+ ).nullish(),
2645
+ title: z.string().describe("Required. Title of the plan.").optional(),
2646
+ buckets: z.array(microsoft_graph_plannerBucket).describe("Read-only. Nullable. Collection of buckets in the plan.").optional(),
2647
+ details: microsoft_graph_plannerPlanDetails.optional(),
2648
+ tasks: z.array(microsoft_graph_plannerTask).describe("Read-only. Nullable. Collection of tasks in the plan.").optional()
2649
+ }).loose();
2650
+ const microsoft_graph_plannerPlanCollectionResponse = z.object({
2651
+ "@odata.count": z.number().int().nullable(),
2652
+ "@odata.nextLink": z.string().nullable(),
2653
+ value: z.array(microsoft_graph_plannerPlan)
2654
+ }).partial().loose();
2655
+ const microsoft_graph_conversationThreadCollectionResponse = z.object({
2656
+ "@odata.count": z.number().int().nullable(),
2657
+ "@odata.nextLink": z.string().nullable(),
2658
+ value: z.array(microsoft_graph_conversationThread)
2659
+ }).partial().loose();
2660
+ const reply_to_group_thread_Body = z.object({ Post: microsoft_graph_post }).partial().loose();
2661
+ const microsoft_graph_calendarRoleType = z.enum([
2662
+ "none",
2663
+ "freeBusyRead",
2664
+ "limitedRead",
2665
+ "read",
2666
+ "write",
2667
+ "delegateWithoutPrivateEventAccess",
2668
+ "delegateWithPrivateEventAccess",
2669
+ "custom"
2670
+ ]);
2671
+ const microsoft_graph_calendarPermission = z.object({
2672
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2673
+ allowedRoles: z.array(z.union([microsoft_graph_calendarRoleType, z.object({}).partial().loose()])).describe(
2674
+ "List of allowed sharing or delegating permission levels for the calendar. The possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom."
2675
+ ).optional(),
2676
+ emailAddress: microsoft_graph_emailAddress.optional(),
2677
+ isInsideOrganization: z.boolean().describe(
2678
+ "True if the user in context (recipient or delegate) is inside the same organization as the calendar owner."
2679
+ ).nullish(),
2680
+ isRemovable: z.boolean().describe(
2681
+ "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."
2682
+ ).nullish(),
2683
+ role: microsoft_graph_calendarRoleType.optional()
2767
2684
  }).loose();
2768
- const microsoft_graph_longRunningOperationStatus = z.enum([
2769
- "notStarted",
2770
- "running",
2771
- "succeeded",
2772
- "failed",
2773
- "unknownFutureValue"
2774
- ]);
2775
- const microsoft_graph_publicErrorDetail = z.object({
2776
- code: z.string().describe("The error code.").nullish(),
2777
- message: z.string().describe("The error message.").nullish(),
2778
- target: z.string().describe("The target of the error.").nullish()
2685
+ const microsoft_graph_calendarPermissionCollectionResponse = z.object({
2686
+ "@odata.count": z.number().int().nullable(),
2687
+ "@odata.nextLink": z.string().nullable(),
2688
+ value: z.array(microsoft_graph_calendarPermission)
2689
+ }).partial().loose();
2690
+ const get_schedule_Body = z.object({
2691
+ Schedules: z.array(z.string().nullable()),
2692
+ EndTime: z.union([microsoft_graph_dateTimeTimeZone, z.object({}).partial().loose()]),
2693
+ StartTime: z.union([microsoft_graph_dateTimeTimeZone, z.object({}).partial().loose()]),
2694
+ AvailabilityViewInterval: z.number().gte(-2147483648).lte(2147483647).nullable()
2695
+ }).partial().loose();
2696
+ const microsoft_graph_freeBusyError = z.object({
2697
+ message: z.string().describe("Describes the error.").nullish(),
2698
+ responseCode: z.string().describe(
2699
+ "The response code from querying for the availability of the user, distribution list, or resource."
2700
+ ).nullish()
2779
2701
  }).loose();
2780
- const microsoft_graph_publicInnerError = z.object({
2781
- code: z.string().describe("The error code.").nullish(),
2782
- details: z.array(microsoft_graph_publicErrorDetail).describe("A collection of error details.").optional(),
2783
- message: z.string().describe("The error message.").nullish(),
2784
- target: z.string().describe("The target of the error.").nullish()
2702
+ const microsoft_graph_scheduleItem = z.object({
2703
+ end: microsoft_graph_dateTimeTimeZone.optional(),
2704
+ isPrivate: z.boolean().describe(
2705
+ "The sensitivity of the corresponding event. True if the event is marked private, false otherwise. Optional."
2706
+ ).nullish(),
2707
+ location: z.string().describe("The location where the corresponding event is held or attended from. Optional.").nullish(),
2708
+ start: microsoft_graph_dateTimeTimeZone.optional(),
2709
+ status: microsoft_graph_freeBusyStatus.optional(),
2710
+ subject: z.string().describe("The corresponding event's subject line. Optional.").nullish()
2785
2711
  }).loose();
2786
- const microsoft_graph_publicError = z.object({
2787
- code: z.string().describe("Represents the error code.").nullish(),
2788
- details: z.array(microsoft_graph_publicErrorDetail).describe("Details of the error.").optional(),
2789
- innerError: microsoft_graph_publicInnerError.optional(),
2790
- message: z.string().describe("A non-localized message for the developer.").nullish(),
2791
- target: z.string().describe("The target of the error.").nullish()
2712
+ const microsoft_graph_timeZoneBase = z.object({
2713
+ name: z.string().describe(
2714
+ "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."
2715
+ ).nullish()
2792
2716
  }).loose();
2793
- const microsoft_graph_richLongRunningOperation = z.object({
2794
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2795
- createdDateTime: z.string().regex(
2796
- /^[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])$/
2797
- ).datetime({ offset: true }).describe(
2798
- "The start time of the operation. 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."
2717
+ const microsoft_graph_workingHours = z.object({
2718
+ daysOfWeek: z.array(z.union([microsoft_graph_dayOfWeek, z.object({}).partial().loose()])).describe("The days of the week on which the user works.").optional(),
2719
+ 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(),
2720
+ 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(),
2721
+ timeZone: microsoft_graph_timeZoneBase.optional()
2722
+ }).loose();
2723
+ const microsoft_graph_scheduleInformation = z.object({
2724
+ availabilityView: z.string().describe(
2725
+ "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."
2799
2726
  ).nullish(),
2800
- lastActionDateTime: z.string().regex(
2801
- /^[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])$/
2802
- ).datetime({ offset: true }).describe(
2803
- "The time of the last action in the operation. 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."
2727
+ error: microsoft_graph_freeBusyError.optional(),
2728
+ scheduleId: z.string().describe(
2729
+ "An SMTP address of the user, distribution list, or resource, identifying an instance of scheduleInformation."
2804
2730
  ).nullish(),
2805
- resourceLocation: z.string().describe("URI of the resource that the operation is performed on.").nullish(),
2806
- status: microsoft_graph_longRunningOperationStatus.optional(),
2807
- statusDetail: z.string().describe("Details about the status of the operation.").nullish(),
2808
- error: microsoft_graph_publicError.optional(),
2809
- percentageComplete: z.number().gte(-2147483648).lte(2147483647).describe("A value between 0 and 100 that indicates the progress of the operation.").nullish(),
2810
- resourceId: z.string().describe("The unique identifier for the result.").nullish(),
2811
- type: z.string().describe("The type of the operation.").nullish()
2731
+ scheduleItems: z.array(microsoft_graph_scheduleItem).describe("Contains the items that describe the availability of the user or resource.").optional(),
2732
+ workingHours: microsoft_graph_workingHours.optional()
2812
2733
  }).loose();
2813
- const microsoft_graph_subscription = z.object({
2734
+ const microsoft_graph_onlineMeetingProviderType = z.enum([
2735
+ "unknown",
2736
+ "skypeForBusiness",
2737
+ "skypeForConsumer",
2738
+ "teamsForBusiness"
2739
+ ]);
2740
+ const microsoft_graph_calendarColor = z.enum([
2741
+ "auto",
2742
+ "lightBlue",
2743
+ "lightGreen",
2744
+ "lightOrange",
2745
+ "lightGray",
2746
+ "lightYellow",
2747
+ "lightTeal",
2748
+ "lightPink",
2749
+ "lightBrown",
2750
+ "lightRed",
2751
+ "maxColor"
2752
+ ]);
2753
+ const microsoft_graph_calendar = z.object({
2814
2754
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2815
- applicationId: z.string().describe(
2816
- "Optional. Identifier of the application used to create the subscription. Read-only."
2817
- ).nullish(),
2818
- changeType: z.string().describe(
2819
- "Required. Indicates the type of change in the subscribed resource that raises a change notification. The supported values are: created, updated, deleted. Multiple values can be combined using a comma-separated list. Note: Drive root item and list change notifications support only the updated changeType. User and group change notifications support updated and deleted changeType. Use updated to receive notifications when user or group is created, updated, or soft deleted. Use deleted to receive notifications when user or group is permanently deleted."
2755
+ allowedOnlineMeetingProviders: z.array(z.union([microsoft_graph_onlineMeetingProviderType, z.object({}).partial().loose()])).describe(
2756
+ "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."
2820
2757
  ).optional(),
2821
- clientState: z.string().describe(
2822
- "Optional. Specifies the value of the clientState property sent by the service in each change notification. The maximum length is 128 characters. The client can check that the change notification came from the service by comparing the value of the clientState property sent with the subscription with the value of the clientState property received with each change notification."
2758
+ canEdit: z.boolean().describe(
2759
+ "true if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who shared a calendar and granted write access."
2823
2760
  ).nullish(),
2824
- creatorId: z.string().describe(
2825
- "Optional. Identifier of the user or service principal that created the subscription. If the app used delegated permissions to create the subscription, this field contains the ID of the signed-in user the app called on behalf of. If the app used application permissions, this field contains the ID of the service principal corresponding to the app. Read-only."
2761
+ canShare: z.boolean().describe(
2762
+ "true if the user has permission to share the calendar, false otherwise. Only the user who created the calendar can share it."
2826
2763
  ).nullish(),
2827
- encryptionCertificate: z.string().describe(
2828
- "Optional. A base64-encoded representation of a certificate with a public key used to encrypt resource data in change notifications. Optional but required when includeResourceData is true."
2764
+ canViewPrivateItems: z.boolean().describe(
2765
+ "If true, the user can read calendar items that have been marked private, false otherwise."
2829
2766
  ).nullish(),
2830
- encryptionCertificateId: z.string().describe(
2831
- "Optional. A custom app-provided identifier to help identify the certificate needed to decrypt resource data."
2767
+ changeKey: z.string().describe(
2768
+ "Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only."
2832
2769
  ).nullish(),
2833
- expirationDateTime: z.string().regex(
2834
- /^[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])$/
2835
- ).datetime({ offset: true }).describe(
2836
- "Required. Specifies the date and time when the webhook subscription expires. The time is in UTC, and can be an amount of time from subscription creation that varies for the resource subscribed to. Any value under 45 minutes after the time of the request is automatically set to 45 minutes after the request time. For the maximum supported subscription length of time, see Subscription lifetime."
2837
- ).optional(),
2838
- includeResourceData: z.boolean().describe(
2839
- "Optional. When set to true, change notifications include resource data (such as content of a chat message)."
2770
+ color: microsoft_graph_calendarColor.optional(),
2771
+ defaultOnlineMeetingProvider: microsoft_graph_onlineMeetingProviderType.optional(),
2772
+ hexColor: z.string().describe(
2773
+ "The calendar color, expressed in a hex color code of three hexadecimal values, each ranging from 00 to FF and representing the red, green, or blue components of the color in the RGB color space. If the user has never explicitly set a color for the calendar, this property is empty. Read-only."
2840
2774
  ).nullish(),
2841
- latestSupportedTlsVersion: z.string().describe(
2842
- "Optional. Specifies the latest version of Transport Layer Security (TLS) that the notification endpoint, specified by notificationUrl, supports. The possible values are: v10, v11, v12, v13. For subscribers whose notification endpoint supports a version lower than the currently recommended version (TLS 1.2), specifying this property by a set timeline allows them to temporarily use their deprecated version of TLS before completing their upgrade to TLS 1.2. For these subscribers, not setting this property per the timeline would result in subscription operations failing. For subscribers whose notification endpoint already supports TLS 1.2, setting this property is optional. In such cases, Microsoft Graph defaults the property to v1_2."
2775
+ isDefaultCalendar: z.boolean().describe(
2776
+ "true if this is the default calendar where new events are created by default, false otherwise."
2843
2777
  ).nullish(),
2844
- lifecycleNotificationUrl: z.string().describe(
2845
- "Required for Teams resources if the expirationDateTime value is more than 1 hour from now; optional otherwise. The URL of the endpoint that receives lifecycle notifications, including subscriptionRemoved, reauthorizationRequired, and missed notifications. This URL must make use of the HTTPS protocol. For more information, see Reduce missing subscriptions and change notifications."
2778
+ isRemovable: z.boolean().describe("Indicates whether this user calendar can be deleted from the user mailbox.").nullish(),
2779
+ isSharedWithMe: z.boolean().describe(
2780
+ "true if someone shared this calendar with the user; false otherwise. This property is always false for a calendar owner. This property is set when sharing is initiated in an Outlook client and can be reset when sharing is canceled through the client or the corresponding calendarPermission resource. Read-only."
2846
2781
  ).nullish(),
2847
- notificationQueryOptions: z.string().describe(
2848
- "Optional. OData query options for specifying value for the targeting resource. Clients receive notifications when resource reaches the state matching the query options provided here. With this new property in the subscription creation payload along with all existing properties, Webhooks deliver notifications whenever a resource reaches the desired state mentioned in the notificationQueryOptions property. For example, when the print job is completed or when a print job resource isFetchable property value becomes true etc. Supported only for Universal Print Service. For more information, see Subscribe to change notifications from cloud printing APIs using Microsoft Graph."
2782
+ isTallyingResponses: z.boolean().describe(
2783
+ "Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses."
2849
2784
  ).nullish(),
2850
- notificationUrl: z.string().describe(
2851
- "Required. The URL of the endpoint that receives the change notifications. This URL must make use of the HTTPS protocol. Any query string parameter included in the notificationUrl property is included in the HTTP POST request when Microsoft Graph sends the change notifications."
2785
+ name: z.string().describe("The calendar name.").nullish(),
2786
+ owner: microsoft_graph_emailAddress.optional(),
2787
+ calendarPermissions: z.array(microsoft_graph_calendarPermission).describe("The permissions of the users with whom the calendar is shared.").optional(),
2788
+ calendarView: z.array(microsoft_graph_event).describe("The calendar view for the calendar. Navigation property. Read-only.").optional(),
2789
+ events: z.array(microsoft_graph_event).describe("The events in the calendar. Navigation property. Read-only.").optional(),
2790
+ multiValueExtendedProperties: z.array(microsoft_graph_multiValueLegacyExtendedProperty).describe(
2791
+ "The collection of multi-value extended properties defined for the calendar. Read-only. Nullable."
2852
2792
  ).optional(),
2853
- notificationUrlAppId: z.string().describe(
2854
- "Optional. The app ID that the subscription service can use to generate the validation token. The value allows the client to validate the authenticity of the notification received."
2793
+ singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
2794
+ "The collection of single-value extended properties defined for the calendar. Read-only. Nullable."
2795
+ ).optional()
2796
+ }).loose();
2797
+ const microsoft_graph_calendarCollectionResponse = z.object({
2798
+ "@odata.count": z.number().int().nullable(),
2799
+ "@odata.nextLink": z.string().nullable(),
2800
+ value: z.array(microsoft_graph_calendar)
2801
+ }).partial().loose();
2802
+ const microsoft_graph_chatCollectionResponse = z.object({
2803
+ "@odata.count": z.number().int().nullable(),
2804
+ "@odata.nextLink": z.string().nullable(),
2805
+ value: z.array(microsoft_graph_chat)
2806
+ }).partial().loose();
2807
+ const microsoft_graph_contact = z.object({
2808
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2809
+ displayName: z.string().describe(
2810
+ "The contact's display name. You can specify the display name in a create or update operation. Note that later updates to other properties may cause an automatically generated value to overwrite the displayName value you have specified. To preserve a pre-existing value, always include it as displayName in an update operation."
2855
2811
  ).nullish(),
2856
- resource: z.string().describe(
2857
- "Required. Specifies the resource that is monitored for changes. Don't include the base URL (https://graph.microsoft.com/v1.0/). See the possible resource path values for each supported resource."
2812
+ createdDateTime: z.string().regex(
2813
+ /^[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])$/
2814
+ ).datetime({ offset: true }).describe(
2815
+ "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2816
+ ).nullish(),
2817
+ lastModifiedDateTime: z.string().regex(
2818
+ /^[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])$/
2819
+ ).datetime({ offset: true }).describe(
2820
+ "The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2821
+ ).nullish(),
2822
+ title: z.string().describe("The contact's title.").nullish(),
2823
+ singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
2824
+ "The collection of single-value extended properties defined for the contact. Read-only. Nullable."
2858
2825
  ).optional(),
2859
- vapidPublicKey: z.string().describe(
2860
- "Optional. The application server's VAPID public key, base64url-encoded (P-256 uncompressed point, 65 bytes pre-encoding). Obtained by calling the getVapidPublicKey function on the subscription collection. The browser passes this value to PushManager.subscribe({ applicationServerKey: vapidPublicKey }) to bind the push subscription to this server identity. Required when notificationUrl targets a known Web Push service origin (for example, *.push.apple.com, fcm.googleapis.com, updates.push.services.mozilla.com); rejected with 400 Bad Request if supplied on a standard webhook subscription. For more information, see RFC 8292."
2826
+ multiValueExtendedProperties: z.array(microsoft_graph_multiValueLegacyExtendedProperty).describe(
2827
+ "The collection of multi-value extended properties defined for the contact. Read-only. Nullable."
2828
+ ).optional(),
2829
+ categories: z.array(z.string().nullable()).describe("The categories associated with the item").optional(),
2830
+ changeKey: z.string().describe(
2831
+ "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."
2861
2832
  ).nullish(),
2862
- webPushEncryptionP256dhPublicKey: z.string().describe(
2863
- "Optional. The subscriber's ECDH public key, base64url-encoded (P-256 uncompressed point, 65 bytes pre-encoding). Obtained from the browser via PushSubscription.getKey('p256dh'). Used as the peer public key during ECDH key agreement to derive the per-message content encryption key for RFC 8291 payload encryption. 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."
2833
+ assistantName: z.string().describe("The name of the contact's assistant.").nullish(),
2834
+ birthday: z.string().regex(
2835
+ /^[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])$/
2836
+ ).datetime({ offset: true }).describe(
2837
+ "The contact's birthday. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z"
2864
2838
  ).nullish(),
2865
- webPushEncryptionSecret: z.string().describe(
2866
- "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."
2867
- ).nullish()
2868
- }).loose();
2869
- const microsoft_graph_list = z.lazy(
2870
- () => z.object({
2871
- id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2872
- createdBy: microsoft_graph_identitySet.optional(),
2873
- createdDateTime: z.string().regex(
2874
- /^[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])$/
2875
- ).datetime({ offset: true }).describe("Date and time of item creation. Read-only.").optional(),
2876
- description: z.string().describe("Provides a user-visible description of the item. Optional.").nullish(),
2877
- eTag: z.string().describe("ETag for the item. Read-only.").nullish(),
2878
- lastModifiedBy: microsoft_graph_identitySet.optional(),
2879
- lastModifiedDateTime: z.string().regex(
2880
- /^[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])$/
2881
- ).datetime({ offset: true }).describe("Date and time the item was last modified. Read-only.").optional(),
2882
- name: z.string().describe("The name of the item. Read-write.").nullish(),
2883
- parentReference: microsoft_graph_itemReference.optional(),
2884
- webUrl: z.string().describe(
2885
- "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
2886
- ).nullish(),
2887
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2888
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2889
- displayName: z.string().describe("The displayable title of the list.").nullish(),
2890
- list: microsoft_graph_listInfo.optional(),
2891
- sharepointIds: microsoft_graph_sharepointIds.optional(),
2892
- system: microsoft_graph_systemFacet.optional(),
2893
- columns: z.array(microsoft_graph_columnDefinition).describe("The collection of field definitions for this list.").optional(),
2894
- contentTypes: z.array(microsoft_graph_contentType).describe("The collection of content types present in this list.").optional(),
2895
- drive: microsoft_graph_drive.optional(),
2896
- items: z.array(microsoft_graph_listItem).describe("All items contained in the list.").optional(),
2897
- operations: z.array(microsoft_graph_richLongRunningOperation).describe("The collection of long-running operations on the list.").optional(),
2898
- permissions: z.array(microsoft_graph_permission).describe("The set of permissions for the item. Read-only. Nullable.").optional(),
2899
- subscriptions: z.array(microsoft_graph_subscription).describe("The set of subscriptions on the list.").optional()
2839
+ businessAddress: microsoft_graph_physicalAddress.optional(),
2840
+ businessHomePage: z.string().describe("The business home page of the contact.").nullish(),
2841
+ businessPhones: z.array(z.string().nullable()).describe("The contact's business phone numbers.").optional(),
2842
+ children: z.array(z.string().nullable()).describe("The names of the contact's children.").optional(),
2843
+ companyName: z.string().describe("The name of the contact's company.").nullish(),
2844
+ department: z.string().describe("The contact's department.").nullish(),
2845
+ emailAddresses: z.array(microsoft_graph_emailAddress).describe("The contact's email addresses.").optional(),
2846
+ fileAs: z.string().describe("The name the contact is filed under.").nullish(),
2847
+ generation: z.string().describe("The contact's suffix.").nullish(),
2848
+ givenName: z.string().describe("The contact's given name.").nullish(),
2849
+ homeAddress: microsoft_graph_physicalAddress.optional(),
2850
+ homePhones: z.array(z.string().nullable()).describe("The contact's home phone numbers.").optional(),
2851
+ imAddresses: z.array(z.string().nullable()).describe("The contact's instant messaging (IM) addresses.").optional(),
2852
+ initials: z.string().describe("The contact's initials.").nullish()
2853
+ }).loose().loose();
2854
+ const microsoft_graph_contactFolder = z.lazy(
2855
+ () => z.object({
2856
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2857
+ displayName: z.string().describe("The folder's display name.").nullish(),
2858
+ parentFolderId: z.string().describe("The ID of the folder's parent folder.").nullish(),
2859
+ childFolders: z.array(microsoft_graph_contactFolder).describe(
2860
+ "The collection of child folders in the folder. Navigation property. Read-only. Nullable."
2861
+ ).optional(),
2862
+ contacts: z.array(microsoft_graph_contact).describe("The contacts in the folder. Navigation property. Read-only. Nullable.").optional(),
2863
+ multiValueExtendedProperties: z.array(microsoft_graph_multiValueLegacyExtendedProperty).describe(
2864
+ "The collection of multi-value extended properties defined for the contactFolder. Read-only. Nullable."
2865
+ ).optional(),
2866
+ singleValueExtendedProperties: z.array(microsoft_graph_singleValueLegacyExtendedProperty).describe(
2867
+ "The collection of single-value extended properties defined for the contactFolder. Read-only. Nullable."
2868
+ ).optional()
2900
2869
  }).loose()
2901
2870
  );
2902
- const microsoft_graph_drive = z.lazy(
2871
+ const microsoft_graph_contactFolderCollectionResponse = z.object({
2872
+ "@odata.count": z.number().int().nullable(),
2873
+ "@odata.nextLink": z.string().nullable(),
2874
+ value: z.array(microsoft_graph_contactFolder)
2875
+ }).partial().loose();
2876
+ const microsoft_graph_contactCollectionResponse = z.object({
2877
+ "@odata.count": z.number().int().nullable(),
2878
+ "@odata.nextLink": z.string().nullable(),
2879
+ value: z.array(microsoft_graph_contact)
2880
+ }).partial().loose();
2881
+ const microsoft_graph_labelActionSource = z.enum([
2882
+ "manual",
2883
+ "automatic",
2884
+ "recommended",
2885
+ "none",
2886
+ "unknownFutureValue"
2887
+ ]);
2888
+ const microsoft_graph_applicationMode = z.enum([
2889
+ "manual",
2890
+ "automatic",
2891
+ "recommended",
2892
+ "unknownFutureValue"
2893
+ ]);
2894
+ const microsoft_graph_usageRights = z.enum([
2895
+ "unknown",
2896
+ "docEdit",
2897
+ "edit",
2898
+ "comment",
2899
+ "export",
2900
+ "forward",
2901
+ "owner",
2902
+ "print",
2903
+ "reply",
2904
+ "replyAll",
2905
+ "view",
2906
+ "extract",
2907
+ "viewRightsData",
2908
+ "editRightsData",
2909
+ "objModel",
2910
+ "accessDenied",
2911
+ "userDefinedProtectionTypeNotSupportedException",
2912
+ "encryptedProtectionTypeNotSupportedException",
2913
+ "purviewClaimsChallengeNotSupportedException",
2914
+ "exception",
2915
+ "labelNotFoundException",
2916
+ "unknownFutureValue"
2917
+ ]);
2918
+ const microsoft_graph_usageRightsIncluded = z.object({
2919
+ id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2920
+ ownerEmail: z.string().describe("The email of owner label rights.").nullish(),
2921
+ userEmail: z.string().describe("The email of user with label user rights.").nullish(),
2922
+ value: microsoft_graph_usageRights.optional()
2923
+ }).loose();
2924
+ const microsoft_graph_sensitivityLabel = z.lazy(
2903
2925
  () => z.object({
2904
2926
  id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
2905
- createdBy: microsoft_graph_identitySet.optional(),
2906
- createdDateTime: z.string().regex(
2907
- /^[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])$/
2908
- ).datetime({ offset: true }).describe("Date and time of item creation. Read-only.").optional(),
2909
- description: z.string().describe("Provides a user-visible description of the item. Optional.").nullish(),
2910
- eTag: z.string().describe("ETag for the item. Read-only.").nullish(),
2911
- lastModifiedBy: microsoft_graph_identitySet.optional(),
2912
- lastModifiedDateTime: z.string().regex(
2913
- /^[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])$/
2914
- ).datetime({ offset: true }).describe("Date and time the item was last modified. Read-only.").optional(),
2915
- name: z.string().describe("The name of the item. Read-write.").nullish(),
2916
- parentReference: microsoft_graph_itemReference.optional(),
2917
- webUrl: z.string().describe(
2918
- "URL that either displays the resource in the browser (for Office file formats), or is a direct link to the file (for other formats). Read-only."
2919
- ).nullish(),
2920
- createdByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2921
- lastModifiedByUser: microsoft_graph_user.describe("[Note: Simplified from 139 properties to 25 most common ones]").optional(),
2922
- driveType: z.string().describe(
2923
- "Describes the type of drive represented by this resource. OneDrive personal drives return personal. OneDrive for Business returns business. SharePoint document libraries return documentLibrary. Read-only."
2924
- ).nullish(),
2925
- owner: microsoft_graph_identitySet.optional(),
2926
- quota: microsoft_graph_quota.optional(),
2927
- sharePointIds: microsoft_graph_sharepointIds.optional(),
2928
- system: microsoft_graph_systemFacet.optional(),
2929
- bundles: z.array(microsoft_graph_driveItem).describe(
2930
- "Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive."
2931
- ).optional(),
2932
- following: z.array(microsoft_graph_driveItem).describe("The list of items the user is following. Only in OneDrive for Business.").optional(),
2933
- items: z.array(microsoft_graph_driveItem).describe("All items contained in the drive. Read-only. Nullable.").optional(),
2934
- list: microsoft_graph_list.optional(),
2935
- root: microsoft_graph_driveItem.describe("[Note: Simplified from 45 properties to 25 most common ones]").optional(),
2936
- special: z.array(microsoft_graph_driveItem).describe("Collection of common folders available in OneDrive. Read-only. Nullable.").optional()
2927
+ actionSource: microsoft_graph_labelActionSource.optional(),
2928
+ applicationMode: microsoft_graph_applicationMode.optional(),
2929
+ autoTooltip: z.string().nullish(),
2930
+ description: z.string().nullish(),
2931
+ displayName: z.string().nullish(),
2932
+ hasProtection: z.boolean().nullish(),
2933
+ isDefault: z.boolean().nullish(),
2934
+ isEndpointProtectionEnabled: z.boolean().nullish(),
2935
+ isScopedToUser: z.boolean().nullish(),
2936
+ locale: z.string().nullish(),
2937
+ name: z.string().nullish(),
2938
+ priority: z.number().gte(-2147483648).lte(2147483647).nullish(),
2939
+ toolTip: z.string().nullish(),
2940
+ rights: microsoft_graph_usageRightsIncluded.optional(),
2941
+ sublabels: z.array(microsoft_graph_sensitivityLabel).optional()
2937
2942
  }).loose()
2938
2943
  );
2944
+ const microsoft_graph_sensitivityLabelCollectionResponse = z.object({
2945
+ "@odata.count": z.number().int().nullable(),
2946
+ "@odata.nextLink": z.string().nullable(),
2947
+ value: z.array(microsoft_graph_sensitivityLabel)
2948
+ }).partial().loose();
2939
2949
  const microsoft_graph_driveCollectionResponse = z.object({
2940
2950
  "@odata.count": z.number().int().nullable(),
2941
2951
  "@odata.nextLink": z.string().nullable(),
@@ -4694,6 +4704,11 @@ const microsoft_graph_siteCollectionResponse = z.object({
4694
4704
  "@odata.nextLink": z.string().nullable(),
4695
4705
  value: z.array(microsoft_graph_site)
4696
4706
  }).partial().loose();
4707
+ const microsoft_graph_contentTypeCollectionResponse = z.object({
4708
+ "@odata.count": z.number().int().nullable(),
4709
+ "@odata.nextLink": z.string().nullable(),
4710
+ value: z.array(microsoft_graph_contentType)
4711
+ }).partial().loose();
4697
4712
  const microsoft_graph_baseItemCollectionResponse = z.object({
4698
4713
  "@odata.count": z.number().int().nullable(),
4699
4714
  "@odata.nextLink": z.string().nullable(),
@@ -4704,16 +4719,6 @@ const microsoft_graph_listCollectionResponse = z.object({
4704
4719
  "@odata.nextLink": z.string().nullable(),
4705
4720
  value: z.array(microsoft_graph_list)
4706
4721
  }).partial().loose();
4707
- const microsoft_graph_columnDefinitionCollectionResponse = z.object({
4708
- "@odata.count": z.number().int().nullable(),
4709
- "@odata.nextLink": z.string().nullable(),
4710
- value: z.array(microsoft_graph_columnDefinition)
4711
- }).partial().loose();
4712
- const microsoft_graph_listItemCollectionResponse = z.object({
4713
- "@odata.count": z.number().int().nullable(),
4714
- "@odata.nextLink": z.string().nullable(),
4715
- value: z.array(microsoft_graph_listItem)
4716
- }).partial().loose();
4717
4722
  const microsoft_graph_listItemVersionCollectionResponse = z.object({
4718
4723
  "@odata.count": z.number().int().nullable(),
4719
4724
  "@odata.nextLink": z.string().nullable(),
@@ -5038,15 +5043,28 @@ const schemas = {
5038
5043
  microsoft_graph_pendingOperations,
5039
5044
  microsoft_graph_driveItem,
5040
5045
  microsoft_graph_driveItemCollectionResponse,
5041
- copy_drive_item_Body,
5042
- microsoft_graph_driveRecipient,
5043
- create_drive_item_share_link_Body,
5046
+ microsoft_graph_contentTypeInfo,
5047
+ microsoft_graph_itemActionStat,
5048
+ microsoft_graph_incompleteData,
5049
+ microsoft_graph_accessAction,
5050
+ microsoft_graph_itemActivity,
5051
+ microsoft_graph_itemActivityStat,
5052
+ microsoft_graph_itemAnalytics,
5053
+ microsoft_graph_publicationFacet,
5054
+ microsoft_graph_fieldValueSet,
5055
+ microsoft_graph_documentSetVersionItem,
5056
+ microsoft_graph_documentSetVersion,
5044
5057
  microsoft_graph_sharePointGroupIdentity,
5045
5058
  microsoft_graph_sharePointIdentity,
5046
5059
  microsoft_graph_sharePointIdentitySet,
5047
5060
  microsoft_graph_sharingInvitation,
5048
5061
  microsoft_graph_sharingLink,
5049
5062
  microsoft_graph_permission,
5063
+ microsoft_graph_listItemVersion,
5064
+ microsoft_graph_listItem,
5065
+ copy_drive_item_Body,
5066
+ microsoft_graph_driveRecipient,
5067
+ create_drive_item_share_link_Body,
5050
5068
  microsoft_graph_driveItemSourceApplication,
5051
5069
  microsoft_graph_driveItemSource,
5052
5070
  microsoft_graph_mediaSourceContentCategory,
@@ -5066,7 +5084,6 @@ const schemas = {
5066
5084
  microsoft_graph_thumbnail,
5067
5085
  microsoft_graph_thumbnailSet,
5068
5086
  microsoft_graph_thumbnailSetCollectionResponse,
5069
- microsoft_graph_publicationFacet,
5070
5087
  microsoft_graph_driveItemVersion,
5071
5088
  microsoft_graph_driveItemVersionCollectionResponse,
5072
5089
  microsoft_graph_workbookIcon,
@@ -5116,6 +5133,39 @@ const schemas = {
5116
5133
  microsoft_graph_workbookRangeFormat,
5117
5134
  microsoft_graph_workbookRange,
5118
5135
  create_excel_table_Body,
5136
+ microsoft_graph_listInfo,
5137
+ microsoft_graph_systemFacet,
5138
+ microsoft_graph_columnTypes,
5139
+ microsoft_graph_booleanColumn,
5140
+ microsoft_graph_calculatedColumn,
5141
+ microsoft_graph_choiceColumn,
5142
+ microsoft_graph_contentApprovalStatusColumn,
5143
+ microsoft_graph_currencyColumn,
5144
+ microsoft_graph_dateTimeColumn,
5145
+ microsoft_graph_defaultColumnValue,
5146
+ microsoft_graph_geolocationColumn,
5147
+ microsoft_graph_hyperlinkOrPictureColumn,
5148
+ microsoft_graph_lookupColumn,
5149
+ microsoft_graph_numberColumn,
5150
+ microsoft_graph_personOrGroupColumn,
5151
+ microsoft_graph_columnDefinition,
5152
+ microsoft_graph_documentSetContent,
5153
+ microsoft_graph_documentSet,
5154
+ microsoft_graph_contentTypeOrder,
5155
+ microsoft_graph_columnLink,
5156
+ microsoft_graph_contentType,
5157
+ microsoft_graph_storagePlanInformation,
5158
+ microsoft_graph_quota,
5159
+ microsoft_graph_drive,
5160
+ microsoft_graph_longRunningOperationStatus,
5161
+ microsoft_graph_publicErrorDetail,
5162
+ microsoft_graph_publicInnerError,
5163
+ microsoft_graph_publicError,
5164
+ microsoft_graph_richLongRunningOperation,
5165
+ microsoft_graph_subscription,
5166
+ microsoft_graph_list,
5167
+ microsoft_graph_columnDefinitionCollectionResponse,
5168
+ microsoft_graph_listItemCollectionResponse,
5119
5169
  microsoft_graph_groupAccessType,
5120
5170
  microsoft_graph_assignedLabel,
5121
5171
  microsoft_graph_licenseProcessingState,
@@ -5201,49 +5251,6 @@ const schemas = {
5201
5251
  microsoft_graph_usageRightsIncluded,
5202
5252
  microsoft_graph_sensitivityLabel,
5203
5253
  microsoft_graph_sensitivityLabelCollectionResponse,
5204
- microsoft_graph_storagePlanInformation,
5205
- microsoft_graph_quota,
5206
- microsoft_graph_systemFacet,
5207
- microsoft_graph_listInfo,
5208
- microsoft_graph_columnTypes,
5209
- microsoft_graph_booleanColumn,
5210
- microsoft_graph_calculatedColumn,
5211
- microsoft_graph_choiceColumn,
5212
- microsoft_graph_contentApprovalStatusColumn,
5213
- microsoft_graph_currencyColumn,
5214
- microsoft_graph_dateTimeColumn,
5215
- microsoft_graph_defaultColumnValue,
5216
- microsoft_graph_geolocationColumn,
5217
- microsoft_graph_hyperlinkOrPictureColumn,
5218
- microsoft_graph_lookupColumn,
5219
- microsoft_graph_numberColumn,
5220
- microsoft_graph_personOrGroupColumn,
5221
- microsoft_graph_columnDefinition,
5222
- microsoft_graph_contentTypeInfo,
5223
- microsoft_graph_documentSetContent,
5224
- microsoft_graph_documentSet,
5225
- microsoft_graph_contentTypeOrder,
5226
- microsoft_graph_columnLink,
5227
- microsoft_graph_contentType,
5228
- microsoft_graph_itemActionStat,
5229
- microsoft_graph_incompleteData,
5230
- microsoft_graph_accessAction,
5231
- microsoft_graph_itemActivity,
5232
- microsoft_graph_itemActivityStat,
5233
- microsoft_graph_itemAnalytics,
5234
- microsoft_graph_fieldValueSet,
5235
- microsoft_graph_documentSetVersionItem,
5236
- microsoft_graph_documentSetVersion,
5237
- microsoft_graph_listItemVersion,
5238
- microsoft_graph_listItem,
5239
- microsoft_graph_longRunningOperationStatus,
5240
- microsoft_graph_publicErrorDetail,
5241
- microsoft_graph_publicInnerError,
5242
- microsoft_graph_publicError,
5243
- microsoft_graph_richLongRunningOperation,
5244
- microsoft_graph_subscription,
5245
- microsoft_graph_list,
5246
- microsoft_graph_drive,
5247
5254
  microsoft_graph_driveCollectionResponse,
5248
5255
  microsoft_graph_attachmentType,
5249
5256
  microsoft_graph_attachmentItem,
@@ -5430,10 +5437,9 @@ const schemas = {
5430
5437
  microsoft_graph_baseItem,
5431
5438
  microsoft_graph_site,
5432
5439
  microsoft_graph_siteCollectionResponse,
5440
+ microsoft_graph_contentTypeCollectionResponse,
5433
5441
  microsoft_graph_baseItemCollectionResponse,
5434
5442
  microsoft_graph_listCollectionResponse,
5435
- microsoft_graph_columnDefinitionCollectionResponse,
5436
- microsoft_graph_listItemCollectionResponse,
5437
5443
  microsoft_graph_listItemVersionCollectionResponse,
5438
5444
  microsoft_graph_endpointType,
5439
5445
  microsoft_graph_communicationsIdentitySet,
@@ -6209,6 +6215,26 @@ Items with this property set should be removed from your local state.`,
6209
6215
  ],
6210
6216
  response: z.void()
6211
6217
  },
6218
+ {
6219
+ method: "get",
6220
+ path: "/drives/:driveId/items/:driveItemId/listItem",
6221
+ alias: "get-drive-item-list-item",
6222
+ description: `For drives in SharePoint, the associated document library list item. Read-only. Nullable.`,
6223
+ requestFormat: "json",
6224
+ parameters: [
6225
+ {
6226
+ name: "$select",
6227
+ type: "Query",
6228
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
6229
+ },
6230
+ {
6231
+ name: "$expand",
6232
+ type: "Query",
6233
+ schema: z.array(z.string()).describe("Expand related entities").optional()
6234
+ }
6235
+ ],
6236
+ response: z.void()
6237
+ },
6212
6238
  {
6213
6239
  method: "get",
6214
6240
  path: "/drives/:driveId/items/:driveItemId/permissions",
@@ -6969,6 +6995,126 @@ Items with this property set should be removed from your local state.`,
6969
6995
  requestFormat: "json",
6970
6996
  response: z.void()
6971
6997
  },
6998
+ {
6999
+ method: "get",
7000
+ path: "/drives/:driveId/list",
7001
+ alias: "get-drive-list",
7002
+ description: `For drives in SharePoint, the underlying document library list. Read-only. Nullable.`,
7003
+ requestFormat: "json",
7004
+ parameters: [
7005
+ {
7006
+ name: "$select",
7007
+ type: "Query",
7008
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
7009
+ },
7010
+ {
7011
+ name: "$expand",
7012
+ type: "Query",
7013
+ schema: z.array(z.string()).describe("Expand related entities").optional()
7014
+ }
7015
+ ],
7016
+ response: z.void()
7017
+ },
7018
+ {
7019
+ method: "get",
7020
+ path: "/drives/:driveId/list/columns",
7021
+ alias: "list-drive-list-columns",
7022
+ description: `The collection of field definitions for this list.`,
7023
+ requestFormat: "json",
7024
+ parameters: [
7025
+ {
7026
+ name: "$top",
7027
+ type: "Query",
7028
+ schema: z.number().int().gte(0).describe("Show only the first n items").optional()
7029
+ },
7030
+ {
7031
+ name: "$skip",
7032
+ type: "Query",
7033
+ schema: z.number().int().gte(0).describe("Skip the first n items").optional()
7034
+ },
7035
+ {
7036
+ name: "$search",
7037
+ type: "Query",
7038
+ schema: z.string().describe("Search items by search phrases").optional()
7039
+ },
7040
+ {
7041
+ name: "$filter",
7042
+ type: "Query",
7043
+ schema: z.string().describe("Filter items by property values").optional()
7044
+ },
7045
+ {
7046
+ name: "$count",
7047
+ type: "Query",
7048
+ schema: z.boolean().describe("Include count of items").optional()
7049
+ },
7050
+ {
7051
+ name: "$orderby",
7052
+ type: "Query",
7053
+ schema: z.array(z.string()).describe("Order items by property values").optional()
7054
+ },
7055
+ {
7056
+ name: "$select",
7057
+ type: "Query",
7058
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
7059
+ },
7060
+ {
7061
+ name: "$expand",
7062
+ type: "Query",
7063
+ schema: z.array(z.string()).describe("Expand related entities").optional()
7064
+ }
7065
+ ],
7066
+ response: z.void()
7067
+ },
7068
+ {
7069
+ method: "get",
7070
+ path: "/drives/:driveId/list/items",
7071
+ alias: "list-drive-list-items",
7072
+ description: `All items contained in the list.`,
7073
+ requestFormat: "json",
7074
+ parameters: [
7075
+ {
7076
+ name: "$top",
7077
+ type: "Query",
7078
+ schema: z.number().int().gte(0).describe("Show only the first n items").optional()
7079
+ },
7080
+ {
7081
+ name: "$skip",
7082
+ type: "Query",
7083
+ schema: z.number().int().gte(0).describe("Skip the first n items").optional()
7084
+ },
7085
+ {
7086
+ name: "$search",
7087
+ type: "Query",
7088
+ schema: z.string().describe("Search items by search phrases").optional()
7089
+ },
7090
+ {
7091
+ name: "$filter",
7092
+ type: "Query",
7093
+ schema: z.string().describe("Filter items by property values").optional()
7094
+ },
7095
+ {
7096
+ name: "$count",
7097
+ type: "Query",
7098
+ schema: z.boolean().describe("Include count of items").optional()
7099
+ },
7100
+ {
7101
+ name: "$orderby",
7102
+ type: "Query",
7103
+ schema: z.array(z.string()).describe("Order items by property values").optional()
7104
+ },
7105
+ {
7106
+ name: "$select",
7107
+ type: "Query",
7108
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
7109
+ },
7110
+ {
7111
+ name: "$expand",
7112
+ type: "Query",
7113
+ schema: z.array(z.string()).describe("Expand related entities").optional()
7114
+ }
7115
+ ],
7116
+ response: z.void()
7117
+ },
6972
7118
  {
6973
7119
  method: "get",
6974
7120
  path: "/drives/:driveId/root",
@@ -13456,6 +13602,106 @@ A site resource represents a team site in SharePoint.`,
13456
13602
  ],
13457
13603
  response: z.void()
13458
13604
  },
13605
+ {
13606
+ method: "get",
13607
+ path: "/sites/:siteId/columns",
13608
+ alias: "list-sharepoint-site-columns",
13609
+ description: `Get the collection of columns represented as columnDefinition resources in a site.`,
13610
+ requestFormat: "json",
13611
+ parameters: [
13612
+ {
13613
+ name: "$top",
13614
+ type: "Query",
13615
+ schema: z.number().int().gte(0).describe("Show only the first n items").optional()
13616
+ },
13617
+ {
13618
+ name: "$skip",
13619
+ type: "Query",
13620
+ schema: z.number().int().gte(0).describe("Skip the first n items").optional()
13621
+ },
13622
+ {
13623
+ name: "$search",
13624
+ type: "Query",
13625
+ schema: z.string().describe("Search items by search phrases").optional()
13626
+ },
13627
+ {
13628
+ name: "$filter",
13629
+ type: "Query",
13630
+ schema: z.string().describe("Filter items by property values").optional()
13631
+ },
13632
+ {
13633
+ name: "$count",
13634
+ type: "Query",
13635
+ schema: z.boolean().describe("Include count of items").optional()
13636
+ },
13637
+ {
13638
+ name: "$orderby",
13639
+ type: "Query",
13640
+ schema: z.array(z.string()).describe("Order items by property values").optional()
13641
+ },
13642
+ {
13643
+ name: "$select",
13644
+ type: "Query",
13645
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
13646
+ },
13647
+ {
13648
+ name: "$expand",
13649
+ type: "Query",
13650
+ schema: z.array(z.string()).describe("Expand related entities").optional()
13651
+ }
13652
+ ],
13653
+ response: z.void()
13654
+ },
13655
+ {
13656
+ method: "get",
13657
+ path: "/sites/:siteId/contentTypes",
13658
+ alias: "list-sharepoint-site-content-types",
13659
+ description: `Get the collection of contentType resources in a site.`,
13660
+ requestFormat: "json",
13661
+ parameters: [
13662
+ {
13663
+ name: "$top",
13664
+ type: "Query",
13665
+ schema: z.number().int().gte(0).describe("Show only the first n items").optional()
13666
+ },
13667
+ {
13668
+ name: "$skip",
13669
+ type: "Query",
13670
+ schema: z.number().int().gte(0).describe("Skip the first n items").optional()
13671
+ },
13672
+ {
13673
+ name: "$search",
13674
+ type: "Query",
13675
+ schema: z.string().describe("Search items by search phrases").optional()
13676
+ },
13677
+ {
13678
+ name: "$filter",
13679
+ type: "Query",
13680
+ schema: z.string().describe("Filter items by property values").optional()
13681
+ },
13682
+ {
13683
+ name: "$count",
13684
+ type: "Query",
13685
+ schema: z.boolean().describe("Include count of items").optional()
13686
+ },
13687
+ {
13688
+ name: "$orderby",
13689
+ type: "Query",
13690
+ schema: z.array(z.string()).describe("Order items by property values").optional()
13691
+ },
13692
+ {
13693
+ name: "$select",
13694
+ type: "Query",
13695
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
13696
+ },
13697
+ {
13698
+ name: "$expand",
13699
+ type: "Query",
13700
+ schema: z.array(z.string()).describe("Expand related entities").optional()
13701
+ }
13702
+ ],
13703
+ response: z.void()
13704
+ },
13459
13705
  {
13460
13706
  method: "get",
13461
13707
  path: "/sites/:siteId/drives",
@@ -13868,6 +14114,56 @@ To list them, include system in your $select statement.`,
13868
14114
  ],
13869
14115
  response: z.void()
13870
14116
  },
14117
+ {
14118
+ method: "get",
14119
+ path: "/sites/:siteId/lists/:listId/contentTypes",
14120
+ alias: "list-sharepoint-list-content-types",
14121
+ description: `Get the collection of contentType resources in a list.`,
14122
+ requestFormat: "json",
14123
+ parameters: [
14124
+ {
14125
+ name: "$top",
14126
+ type: "Query",
14127
+ schema: z.number().int().gte(0).describe("Show only the first n items").optional()
14128
+ },
14129
+ {
14130
+ name: "$skip",
14131
+ type: "Query",
14132
+ schema: z.number().int().gte(0).describe("Skip the first n items").optional()
14133
+ },
14134
+ {
14135
+ name: "$search",
14136
+ type: "Query",
14137
+ schema: z.string().describe("Search items by search phrases").optional()
14138
+ },
14139
+ {
14140
+ name: "$filter",
14141
+ type: "Query",
14142
+ schema: z.string().describe("Filter items by property values").optional()
14143
+ },
14144
+ {
14145
+ name: "$count",
14146
+ type: "Query",
14147
+ schema: z.boolean().describe("Include count of items").optional()
14148
+ },
14149
+ {
14150
+ name: "$orderby",
14151
+ type: "Query",
14152
+ schema: z.array(z.string()).describe("Order items by property values").optional()
14153
+ },
14154
+ {
14155
+ name: "$select",
14156
+ type: "Query",
14157
+ schema: z.array(z.string()).describe("Select properties to be returned").optional()
14158
+ },
14159
+ {
14160
+ name: "$expand",
14161
+ type: "Query",
14162
+ schema: z.array(z.string()).describe("Expand related entities").optional()
14163
+ }
14164
+ ],
14165
+ response: z.void()
14166
+ },
13871
14167
  {
13872
14168
  method: "get",
13873
14169
  path: "/sites/:siteId/lists/:listId/items",