@softeria/ms-365-mcp-server 0.176.0 → 0.177.0
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.
- package/README.md +41 -0
- package/SECURITY.md +9 -0
- package/bin/modules/generate-mcp-tools.mjs +24 -1
- package/dist/__tests__/graph-tools.test.js +4 -4
- package/dist/app-mode.js +137 -0
- package/dist/auth.js +66 -12
- package/dist/cli.js +10 -1
- package/dist/endpoints.json +250 -41
- package/dist/generated/client-beta.js +50 -50
- package/dist/generated/client.js +503 -503
- package/dist/graph-client.js +8 -2
- package/dist/graph-tools.js +66 -49
- package/dist/index.js +18 -3
- package/dist/lib/tool-schema.js +39 -12
- package/dist/mcp-instructions.js +4 -0
- package/dist/normalize-tool-schema.js +170 -1
- package/dist/server.js +3 -1
- package/package.json +2 -3
- package/src/endpoints.json +250 -41
|
@@ -17,28 +17,28 @@ const microsoft_graph_identity = z.object({
|
|
|
17
17
|
id: z.string().describe(
|
|
18
18
|
"Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review."
|
|
19
19
|
).nullish()
|
|
20
|
-
}).
|
|
20
|
+
}).loose();
|
|
21
21
|
const microsoft_graph_identitySet = z.object({
|
|
22
22
|
application: microsoft_graph_identity.optional(),
|
|
23
23
|
device: microsoft_graph_identity.optional(),
|
|
24
24
|
user: microsoft_graph_identity.optional()
|
|
25
|
-
}).
|
|
25
|
+
}).loose();
|
|
26
26
|
const microsoft_graph_inferenceData = z.object({
|
|
27
27
|
confidenceScore: z.number().describe(
|
|
28
28
|
"Confidence score reflecting the accuracy of the data inferred about the user. [Simplified from 3 options]"
|
|
29
29
|
).nullish(),
|
|
30
30
|
userHasVerifiedAccuracy: z.boolean().describe("Records if the user has confirmed this inference as being True or False.").nullish()
|
|
31
|
-
}).
|
|
32
|
-
const microsoft_graph_personDataSources = z.object({ type: z.array(z.string().nullable()).optional() }).
|
|
31
|
+
}).loose();
|
|
32
|
+
const microsoft_graph_personDataSources = z.object({ type: z.array(z.string().nullable()).optional() }).loose();
|
|
33
33
|
const microsoft_graph_profileSourceAnnotation = z.object({
|
|
34
34
|
isDefaultSource: z.boolean().describe("Indicates whether the source is the default one.").nullish(),
|
|
35
35
|
properties: z.array(z.string().nullable()).describe("Names of properties that have data from this source.").optional(),
|
|
36
36
|
sourceId: z.string().nullish()
|
|
37
|
-
}).
|
|
37
|
+
}).loose();
|
|
38
38
|
const microsoft_graph_originTenantInfo = z.object({
|
|
39
39
|
originTenantId: z.string().describe("The identifier of the tenant where the user account was originally provisioned.").nullish(),
|
|
40
40
|
originUserId: z.string().describe("The identifier of the user in the origin tenant.").nullish()
|
|
41
|
-
}).
|
|
41
|
+
}).loose();
|
|
42
42
|
const microsoft_graph_localeInfo = z.object({
|
|
43
43
|
displayName: z.string().describe(
|
|
44
44
|
"A name representing the user's locale in natural language, for example, 'English (United States)'."
|
|
@@ -46,7 +46,7 @@ const microsoft_graph_localeInfo = z.object({
|
|
|
46
46
|
locale: z.string().describe(
|
|
47
47
|
"A locale representation for the user, which includes the user's preferred language and country/region. For example, 'en-us'. The language component follows 2-letter codes as defined in ISO 639-1, and the country component follows 2-letter codes as defined in ISO 3166-1 alpha-2."
|
|
48
48
|
).nullish()
|
|
49
|
-
}).
|
|
49
|
+
}).loose();
|
|
50
50
|
const microsoft_graph_userPersona = z.enum([
|
|
51
51
|
"unknown",
|
|
52
52
|
"externalMember",
|
|
@@ -78,7 +78,7 @@ const microsoft_graph_userAccountInformation = z.object({
|
|
|
78
78
|
preferredLanguageTag: microsoft_graph_localeInfo.optional(),
|
|
79
79
|
userPersona: microsoft_graph_userPersona.optional(),
|
|
80
80
|
userPrincipalName: z.string().describe("The user principal name (UPN) of the user associated with the account.").nullish()
|
|
81
|
-
}).
|
|
81
|
+
}).loose();
|
|
82
82
|
const microsoft_graph_physicalAddressType = z.enum(["unknown", "home", "business", "other"]);
|
|
83
83
|
const microsoft_graph_physicalAddress = z.object({
|
|
84
84
|
city: z.string().describe("The city.").nullish(),
|
|
@@ -90,7 +90,7 @@ const microsoft_graph_physicalAddress = z.object({
|
|
|
90
90
|
state: z.string().describe("The state.").nullish(),
|
|
91
91
|
street: z.string().describe("The street.").nullish(),
|
|
92
92
|
type: microsoft_graph_physicalAddressType.optional()
|
|
93
|
-
}).
|
|
93
|
+
}).loose();
|
|
94
94
|
const microsoft_graph_geoCoordinates = z.object({
|
|
95
95
|
altitude: z.number().describe(
|
|
96
96
|
"Optional. The altitude (height), in feet, above sea level for the item. Read-only. [Simplified from 3 options]"
|
|
@@ -101,7 +101,7 @@ const microsoft_graph_geoCoordinates = z.object({
|
|
|
101
101
|
longitude: z.number().describe(
|
|
102
102
|
"Optional. The longitude, in decimal, for the item. Writable on OneDrive Personal. [Simplified from 3 options]"
|
|
103
103
|
).nullish()
|
|
104
|
-
}).
|
|
104
|
+
}).loose();
|
|
105
105
|
const microsoft_graph_itemAddress = z.object({
|
|
106
106
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
107
107
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -120,7 +120,7 @@ const microsoft_graph_itemAddress = z.object({
|
|
|
120
120
|
detail: microsoft_graph_physicalAddress.optional(),
|
|
121
121
|
displayName: z.string().describe("Friendly name the user has assigned to this address.").nullish(),
|
|
122
122
|
geoCoordinates: microsoft_graph_geoCoordinates.optional()
|
|
123
|
-
}).
|
|
123
|
+
}).loose();
|
|
124
124
|
const microsoft_graph_personAnnualEventType = z.enum([
|
|
125
125
|
"birthday",
|
|
126
126
|
"wedding",
|
|
@@ -146,7 +146,7 @@ const microsoft_graph_personAnnualEvent = z.object({
|
|
|
146
146
|
date: z.string().regex(/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/).nullish(),
|
|
147
147
|
displayName: z.string().nullish(),
|
|
148
148
|
type: microsoft_graph_personAnnualEventType.optional()
|
|
149
|
-
}).
|
|
149
|
+
}).loose();
|
|
150
150
|
const microsoft_graph_personAward = z.object({
|
|
151
151
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
152
152
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -168,7 +168,7 @@ const microsoft_graph_personAward = z.object({
|
|
|
168
168
|
issuingAuthority: z.string().describe("Authority which granted the award or honor.").nullish(),
|
|
169
169
|
thumbnailUrl: z.string().describe("URL referencing a thumbnail of the award or honor.").nullish(),
|
|
170
170
|
webUrl: z.string().describe("URL referencing the award or honor.").nullish()
|
|
171
|
-
}).
|
|
171
|
+
}).loose();
|
|
172
172
|
const microsoft_graph_personCertification = z.object({
|
|
173
173
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
174
174
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -194,13 +194,13 @@ const microsoft_graph_personCertification = z.object({
|
|
|
194
194
|
startDate: z.string().regex(/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/).describe("The date that the certification became valid.").nullish(),
|
|
195
195
|
thumbnailUrl: z.string().describe("URL referencing a thumbnail of the certification.").nullish(),
|
|
196
196
|
webUrl: z.string().describe("URL referencing the certification.").nullish()
|
|
197
|
-
}).
|
|
197
|
+
}).loose();
|
|
198
198
|
const microsoft_graph_institutionData = z.object({
|
|
199
199
|
description: z.string().describe("Short description of the institution the user studied at.").nullish(),
|
|
200
200
|
displayName: z.string().describe("Name of the institution the user studied at.").nullish(),
|
|
201
201
|
location: microsoft_graph_physicalAddress.optional(),
|
|
202
202
|
webUrl: z.string().describe("Link to the institution or department homepage.").nullish()
|
|
203
|
-
}).
|
|
203
|
+
}).loose();
|
|
204
204
|
const microsoft_graph_educationalActivityDetail = z.object({
|
|
205
205
|
abbreviation: z.string().describe("Shortened name of the degree or program, for example, PhD and MBA.").nullish(),
|
|
206
206
|
activities: z.array(z.string().nullable()).describe("Extracurricular activities undertaken alongside the program.").optional(),
|
|
@@ -211,7 +211,7 @@ const microsoft_graph_educationalActivityDetail = z.object({
|
|
|
211
211
|
grade: z.string().describe("The final grade, class, grade point average (GPA), or score.").nullish(),
|
|
212
212
|
notes: z.string().describe("More notes provided by the user.").nullish(),
|
|
213
213
|
webUrl: z.string().describe("Link to the degree or program page.").nullish()
|
|
214
|
-
}).
|
|
214
|
+
}).loose();
|
|
215
215
|
const microsoft_graph_educationalActivity = z.object({
|
|
216
216
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
217
217
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -232,7 +232,7 @@ const microsoft_graph_educationalActivity = z.object({
|
|
|
232
232
|
institution: microsoft_graph_institutionData.optional(),
|
|
233
233
|
program: microsoft_graph_educationalActivityDetail.optional(),
|
|
234
234
|
startMonthYear: z.string().regex(/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/).describe("The month and year the user commenced the activity referenced.").nullish()
|
|
235
|
-
}).
|
|
235
|
+
}).loose();
|
|
236
236
|
const microsoft_graph_emailType = z.enum(["unknown", "work", "personal", "main", "other"]);
|
|
237
237
|
const microsoft_graph_itemEmail = z.object({
|
|
238
238
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
@@ -252,7 +252,7 @@ const microsoft_graph_itemEmail = z.object({
|
|
|
252
252
|
address: z.string().describe("The email address itself.").nullish(),
|
|
253
253
|
displayName: z.string().describe("The name or label a user has associated with a particular email address.").nullish(),
|
|
254
254
|
type: microsoft_graph_emailType.optional()
|
|
255
|
-
}).
|
|
255
|
+
}).loose();
|
|
256
256
|
const microsoft_graph_personInterest = z.object({
|
|
257
257
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
258
258
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -278,7 +278,7 @@ const microsoft_graph_personInterest = z.object({
|
|
|
278
278
|
displayName: z.string().describe("Contains a friendly name for the interest.").nullish(),
|
|
279
279
|
thumbnailUrl: z.string().nullish(),
|
|
280
280
|
webUrl: z.string().describe("Contains a link to a web page or resource about the interest.").nullish()
|
|
281
|
-
}).
|
|
281
|
+
}).loose();
|
|
282
282
|
const microsoft_graph_languageProficiencyLevel = z.enum([
|
|
283
283
|
"elementary",
|
|
284
284
|
"conversational",
|
|
@@ -310,14 +310,14 @@ const microsoft_graph_languageProficiency = z.object({
|
|
|
310
310
|
tag: z.string().describe("Contains the four-character BCP47 name for the language (en-US, no-NB, en-AU).").nullish(),
|
|
311
311
|
thumbnailUrl: z.string().nullish(),
|
|
312
312
|
written: microsoft_graph_languageProficiencyLevel.optional()
|
|
313
|
-
}).
|
|
313
|
+
}).loose();
|
|
314
314
|
const microsoft_graph_personNamePronounciation = z.object({
|
|
315
315
|
displayName: z.string().nullish(),
|
|
316
316
|
first: z.string().nullish(),
|
|
317
317
|
last: z.string().nullish(),
|
|
318
318
|
maiden: z.string().nullish(),
|
|
319
319
|
middle: z.string().nullish()
|
|
320
|
-
}).
|
|
320
|
+
}).loose();
|
|
321
321
|
const microsoft_graph_personName = z.object({
|
|
322
322
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
323
323
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -348,12 +348,12 @@ const microsoft_graph_personName = z.object({
|
|
|
348
348
|
pronunciation: microsoft_graph_personNamePronounciation.optional(),
|
|
349
349
|
suffix: z.string().describe("Designators used after the users name (eg: PhD.)").nullish(),
|
|
350
350
|
title: z.string().describe("Honorifics used to prefix a users name (eg: Dr, Sir, Madam, Mrs.)").nullish()
|
|
351
|
-
}).
|
|
351
|
+
}).loose();
|
|
352
352
|
const microsoft_graph_bodyType = z.enum(["text", "html"]);
|
|
353
353
|
const microsoft_graph_itemBody = z.object({
|
|
354
354
|
content: z.string().describe("The content of the item.").nullish(),
|
|
355
355
|
contentType: microsoft_graph_bodyType.optional()
|
|
356
|
-
}).
|
|
356
|
+
}).loose();
|
|
357
357
|
const microsoft_graph_personAnnotation = z.object({
|
|
358
358
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
359
359
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -372,7 +372,7 @@ const microsoft_graph_personAnnotation = z.object({
|
|
|
372
372
|
detail: microsoft_graph_itemBody.optional(),
|
|
373
373
|
displayName: z.string().describe("Contains a friendly name for the note.").nullish(),
|
|
374
374
|
thumbnailUrl: z.string().nullish()
|
|
375
|
-
}).
|
|
375
|
+
}).loose();
|
|
376
376
|
const microsoft_graph_itemPatent = z.object({
|
|
377
377
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
378
378
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -395,7 +395,7 @@ const microsoft_graph_itemPatent = z.object({
|
|
|
395
395
|
issuingAuthority: z.string().describe("Authority that granted the patent.").nullish(),
|
|
396
396
|
number: z.string().describe("The patent number.").nullish(),
|
|
397
397
|
webUrl: z.string().describe("URL referencing the patent or filing.").nullish()
|
|
398
|
-
}).
|
|
398
|
+
}).loose();
|
|
399
399
|
const microsoft_graph_phoneType = z.enum([
|
|
400
400
|
"home",
|
|
401
401
|
"business",
|
|
@@ -426,7 +426,7 @@ const microsoft_graph_itemPhone = z.object({
|
|
|
426
426
|
displayName: z.string().describe("Friendly name the user has assigned this phone number.").nullish(),
|
|
427
427
|
number: z.string().describe("Phone number provided by the user.").nullish(),
|
|
428
428
|
type: microsoft_graph_phoneType.optional()
|
|
429
|
-
}).
|
|
429
|
+
}).loose();
|
|
430
430
|
const microsoft_graph_personRelationship = z.enum([
|
|
431
431
|
"manager",
|
|
432
432
|
"colleague",
|
|
@@ -453,7 +453,7 @@ const microsoft_graph_relatedPerson = z.object({
|
|
|
453
453
|
).nullish(),
|
|
454
454
|
userId: z.string().describe("The user's directory object ID (Microsoft Entra ID or CID).").nullish(),
|
|
455
455
|
userPrincipalName: z.string().describe("Email address or reference to person within the organization.").nullish()
|
|
456
|
-
}).
|
|
456
|
+
}).loose();
|
|
457
457
|
const microsoft_graph_companyDetail = z.object({
|
|
458
458
|
address: microsoft_graph_physicalAddress.optional(),
|
|
459
459
|
companyCode: z.string().describe(
|
|
@@ -467,7 +467,7 @@ const microsoft_graph_companyDetail = z.object({
|
|
|
467
467
|
pronunciation: z.string().describe("Pronunciation guide for the company name.").nullish(),
|
|
468
468
|
secondaryDepartment: z.string().describe("Secondary Department Name within a company.").nullish(),
|
|
469
469
|
webUrl: z.string().describe("Link to the company home page.").nullish()
|
|
470
|
-
}).
|
|
470
|
+
}).loose();
|
|
471
471
|
const microsoft_graph_positionDetail = z.object({
|
|
472
472
|
company: microsoft_graph_companyDetail.optional(),
|
|
473
473
|
description: z.string().describe("A description for the position in question.").nullish(),
|
|
@@ -482,7 +482,7 @@ const microsoft_graph_positionDetail = z.object({
|
|
|
482
482
|
secondaryRole: z.string().describe("An optional role for the position entailed.").nullish(),
|
|
483
483
|
startMonthYear: z.string().regex(/^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])$/).describe("The start date of the position.").nullish(),
|
|
484
484
|
summary: z.string().describe("The summary of the position.").nullish()
|
|
485
|
-
}).
|
|
485
|
+
}).loose();
|
|
486
486
|
const microsoft_graph_workPosition = z.object({
|
|
487
487
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
488
488
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -503,7 +503,7 @@ const microsoft_graph_workPosition = z.object({
|
|
|
503
503
|
detail: microsoft_graph_positionDetail.optional(),
|
|
504
504
|
isCurrent: z.boolean().describe("Denotes whether or not the position is current.").nullish(),
|
|
505
505
|
manager: microsoft_graph_relatedPerson.optional()
|
|
506
|
-
}).
|
|
506
|
+
}).loose();
|
|
507
507
|
const microsoft_graph_projectParticipation = z.object({
|
|
508
508
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
509
509
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -531,7 +531,7 @@ const microsoft_graph_projectParticipation = z.object({
|
|
|
531
531
|
displayName: z.string().describe("Contains a friendly name for the project.").nullish(),
|
|
532
532
|
sponsors: z.array(microsoft_graph_relatedPerson).describe("The Person or people who sponsored the project.").optional(),
|
|
533
533
|
thumbnailUrl: z.string().nullish()
|
|
534
|
-
}).
|
|
534
|
+
}).loose();
|
|
535
535
|
const microsoft_graph_itemPublication = z.object({
|
|
536
536
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
537
537
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -553,7 +553,7 @@ const microsoft_graph_itemPublication = z.object({
|
|
|
553
553
|
publisher: z.string().describe("Publication or publisher for the publication.").nullish(),
|
|
554
554
|
thumbnailUrl: z.string().describe("URL referencing a thumbnail of the publication.").nullish(),
|
|
555
555
|
webUrl: z.string().describe("URL referencing the publication.").nullish()
|
|
556
|
-
}).
|
|
556
|
+
}).loose();
|
|
557
557
|
const microsoft_graph_skillProficiencyLevel = z.enum([
|
|
558
558
|
"elementary",
|
|
559
559
|
"limitedWorking",
|
|
@@ -587,11 +587,11 @@ const microsoft_graph_skillProficiency = z.object({
|
|
|
587
587
|
proficiency: microsoft_graph_skillProficiencyLevel.optional(),
|
|
588
588
|
thumbnailUrl: z.string().nullish(),
|
|
589
589
|
webUrl: z.string().describe("Contains a link to an information source about the skill.").nullish()
|
|
590
|
-
}).
|
|
590
|
+
}).loose();
|
|
591
591
|
const microsoft_graph_serviceInformation = z.object({
|
|
592
592
|
name: z.string().describe("The name of the cloud service (for example, Twitter, Instagram).").nullish(),
|
|
593
593
|
webUrl: z.string().describe("Contains the URL for the service being referenced.").nullish()
|
|
594
|
-
}).
|
|
594
|
+
}).loose();
|
|
595
595
|
const microsoft_graph_webAccount = z.object({
|
|
596
596
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
597
597
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -615,7 +615,7 @@ const microsoft_graph_webAccount = z.object({
|
|
|
615
615
|
thumbnailUrl: z.string().nullish(),
|
|
616
616
|
userId: z.string().describe("The user name displayed for the webaccount.").nullish(),
|
|
617
617
|
webUrl: z.string().describe("Contains a link to the user's profile on the cloud service if one exists.").nullish()
|
|
618
|
-
}).
|
|
618
|
+
}).loose();
|
|
619
619
|
const microsoft_graph_personWebsite = z.object({
|
|
620
620
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
621
621
|
allowedAudiences: microsoft_graph_allowedAudiences.optional(),
|
|
@@ -638,7 +638,7 @@ const microsoft_graph_personWebsite = z.object({
|
|
|
638
638
|
displayName: z.string().describe("Contains a friendly name for the website.").nullish(),
|
|
639
639
|
thumbnailUrl: z.string().nullish(),
|
|
640
640
|
webUrl: z.string().describe("Contains a link to the website itself.").nullish()
|
|
641
|
-
}).
|
|
641
|
+
}).loose();
|
|
642
642
|
const microsoft_graph_profile = z.object({
|
|
643
643
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
644
644
|
account: z.array(microsoft_graph_userAccountInformation).optional(),
|
|
@@ -676,23 +676,23 @@ const microsoft_graph_profile = z.object({
|
|
|
676
676
|
websites: z.array(microsoft_graph_personWebsite).describe(
|
|
677
677
|
"Represents detailed information about websites associated with a user in various services."
|
|
678
678
|
).optional()
|
|
679
|
-
}).
|
|
680
|
-
const microsoft_graph_ODataErrors_ErrorDetails = z.object({ code: z.string(), message: z.string(), target: z.string().nullish() }).
|
|
679
|
+
}).loose();
|
|
680
|
+
const microsoft_graph_ODataErrors_ErrorDetails = z.object({ code: z.string(), message: z.string(), target: z.string().nullish() }).loose();
|
|
681
681
|
const microsoft_graph_ODataErrors_InnerError = z.object({
|
|
682
682
|
"request-id": z.string().describe("Request Id as tracked internally by the service").nullish(),
|
|
683
683
|
"client-request-id": z.string().describe("Client request Id as sent by the client application.").nullish(),
|
|
684
684
|
date: z.string().regex(
|
|
685
685
|
/^[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])$/
|
|
686
686
|
).datetime({ offset: true }).describe("Date when the error occured.").nullish()
|
|
687
|
-
}).
|
|
687
|
+
}).loose();
|
|
688
688
|
const microsoft_graph_ODataErrors_MainError = z.object({
|
|
689
689
|
code: z.string(),
|
|
690
690
|
message: z.string(),
|
|
691
691
|
target: z.string().nullish(),
|
|
692
692
|
details: z.array(microsoft_graph_ODataErrors_ErrorDetails).optional(),
|
|
693
693
|
innerError: microsoft_graph_ODataErrors_InnerError.optional()
|
|
694
|
-
}).
|
|
695
|
-
const microsoft_graph_ODataErrors_ODataError = z.object({ error: microsoft_graph_ODataErrors_MainError }).
|
|
694
|
+
}).loose();
|
|
695
|
+
const microsoft_graph_ODataErrors_ODataError = z.object({ error: microsoft_graph_ODataErrors_MainError }).loose();
|
|
696
696
|
const microsoft_graph_plannerTaskChatMentionType = z.enum([
|
|
697
697
|
"user",
|
|
698
698
|
"application",
|
|
@@ -702,7 +702,7 @@ const microsoft_graph_plannerTaskChatMention = z.object({
|
|
|
702
702
|
mentioned: z.string().describe("The ID of the mentioned user.").nullish(),
|
|
703
703
|
mentionType: microsoft_graph_plannerTaskChatMentionType.optional(),
|
|
704
704
|
position: z.number().gte(-2147483648).lte(2147483647).describe("The zero-based position of the mention in the message content.").optional()
|
|
705
|
-
}).
|
|
705
|
+
}).loose();
|
|
706
706
|
const microsoft_graph_plannerTaskChatMessageType = z.enum([
|
|
707
707
|
"richTextHtml",
|
|
708
708
|
"plainText",
|
|
@@ -715,11 +715,11 @@ const microsoft_graph_plannerTaskChatReactionEvent = z.object({
|
|
|
715
715
|
).datetime({ offset: true }).describe(
|
|
716
716
|
"The date and time when the reaction was added. 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."
|
|
717
717
|
).optional()
|
|
718
|
-
}).
|
|
718
|
+
}).loose();
|
|
719
719
|
const microsoft_graph_plannerTaskChatReaction = z.object({
|
|
720
720
|
reactionEvents: z.array(microsoft_graph_plannerTaskChatReactionEvent).optional(),
|
|
721
721
|
reactionType: z.string().describe("The type of reaction, such as like, heart, or emoji characters.").nullish()
|
|
722
|
-
}).
|
|
722
|
+
}).loose();
|
|
723
723
|
const microsoft_graph_plannerTaskChatMessage = z.object({
|
|
724
724
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
725
725
|
content: z.string().describe("The content of the chat message. Supports plain text and sanitized HTML.").nullish(),
|
|
@@ -739,17 +739,17 @@ const microsoft_graph_plannerTaskChatMessage = z.object({
|
|
|
739
739
|
messageType: microsoft_graph_plannerTaskChatMessageType.optional(),
|
|
740
740
|
parentEntityId: z.string().describe("The ID of the parent plannerTask that this message belongs to.").nullish(),
|
|
741
741
|
reactions: z.array(microsoft_graph_plannerTaskChatReaction).describe("The reactions on the message.").optional()
|
|
742
|
-
}).
|
|
742
|
+
}).loose();
|
|
743
743
|
const microsoft_graph_plannerTaskChatMessageCollectionResponse = z.object({
|
|
744
744
|
"@odata.count": z.number().int().nullable(),
|
|
745
745
|
"@odata.nextLink": z.string().nullable(),
|
|
746
746
|
value: z.array(microsoft_graph_plannerTaskChatMessage)
|
|
747
|
-
}).partial().
|
|
747
|
+
}).partial().loose();
|
|
748
748
|
const microsoft_graph_customEmojiFromIdentitySet = z.object({
|
|
749
749
|
application: microsoft_graph_identity.optional(),
|
|
750
750
|
device: microsoft_graph_identity.optional(),
|
|
751
751
|
user: microsoft_graph_identity.optional()
|
|
752
|
-
}).
|
|
752
|
+
}).loose();
|
|
753
753
|
const microsoft_graph_teamworkCustomEmoji = z.object({
|
|
754
754
|
id: z.string().describe("The unique identifier for an entity. Read-only.").optional(),
|
|
755
755
|
contentBytes: z.string().describe(
|
|
@@ -764,18 +764,18 @@ const microsoft_graph_teamworkCustomEmoji = z.object({
|
|
|
764
764
|
displayName: z.string().describe(
|
|
765
765
|
"The unique display name of the custom emoji. Key. Must be unique and must not conflict with existing emoji names."
|
|
766
766
|
).optional()
|
|
767
|
-
}).
|
|
767
|
+
}).loose();
|
|
768
768
|
const microsoft_graph_teamworkCustomEmojiCollectionResponse = z.object({
|
|
769
769
|
"@odata.count": z.number().int().nullable(),
|
|
770
770
|
"@odata.nextLink": z.string().nullable(),
|
|
771
771
|
value: z.array(microsoft_graph_teamworkCustomEmoji)
|
|
772
|
-
}).partial().
|
|
772
|
+
}).partial().loose();
|
|
773
773
|
const create_custom_emoji_Body = z.object({
|
|
774
774
|
displayName: z.string().describe(
|
|
775
775
|
"Exact unique custom emoji name, without surrounding colons. Must not conflict with an existing emoji name."
|
|
776
776
|
),
|
|
777
777
|
contentBytes: z.string().describe("Base64-encoded PNG or GIF file content; do not include a data-URL prefix.")
|
|
778
|
-
}).
|
|
778
|
+
}).loose();
|
|
779
779
|
const schemas = {
|
|
780
780
|
microsoft_graph_allowedAudiences,
|
|
781
781
|
microsoft_graph_identity,
|