@credal/actions 0.2.223 → 0.2.225
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/dist/actions/actionMapper.js +29 -1
- package/dist/actions/autogen/templates.d.ts +4 -0
- package/dist/actions/autogen/templates.js +385 -4
- package/dist/actions/autogen/types.d.ts +379 -0
- package/dist/actions/autogen/types.js +161 -4
- package/dist/actions/providers/ashby/addCandidateToProject.d.ts +3 -0
- package/dist/actions/providers/ashby/addCandidateToProject.js +31 -0
- package/dist/actions/providers/ashby/createCandidate.d.ts +3 -0
- package/dist/actions/providers/ashby/createCandidate.js +38 -0
- package/dist/actions/providers/ashby/createNote.d.ts +3 -0
- package/dist/actions/providers/ashby/createNote.js +31 -0
- package/dist/actions/providers/ashby/getCandidateInfo.d.ts +3 -0
- package/dist/actions/providers/ashby/getCandidateInfo.js +33 -0
- package/dist/actions/providers/ashby/listCandidateNotes.d.ts +3 -0
- package/dist/actions/providers/ashby/listCandidateNotes.js +33 -0
- package/dist/actions/providers/ashby/listCandidates.d.ts +3 -0
- package/dist/actions/providers/ashby/listCandidates.js +30 -0
- package/dist/actions/providers/ashby/searchCandidates.d.ts +3 -0
- package/dist/actions/providers/ashby/searchCandidates.js +34 -0
- package/dist/actions/providers/ashby/updateCandidate.d.ts +3 -0
- package/dist/actions/providers/ashby/updateCandidate.js +56 -0
- package/dist/actions/providers/github/searchRepository.js +7 -7
- package/dist/actions/providers/gong/getGongTranscripts.d.ts +3 -0
- package/dist/actions/providers/gong/getGongTranscripts.js +315 -0
- package/dist/actions/providers/google-oauth/listFilesWithAssignedComments.d.ts +3 -0
- package/dist/actions/providers/google-oauth/listFilesWithAssignedComments.js +41 -0
- package/dist/actions/providers/jamf/getJamfComputerInventory.d.ts +3 -0
- package/dist/actions/providers/jamf/getJamfComputerInventory.js +37 -0
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.d.ts +3 -0
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.js +39 -0
- package/dist/actions/providers/jamf/getJamfUserComputerId.d.ts +3 -0
- package/dist/actions/providers/jamf/getJamfUserComputerId.js +45 -0
- package/dist/actions/providers/jamf/lockJamfComputerById.d.ts +3 -0
- package/dist/actions/providers/jamf/lockJamfComputerById.js +39 -0
- package/dist/actions/providers/jira/updateServiceDeskRequest.d.ts +3 -0
- package/dist/actions/providers/jira/updateServiceDeskRequest.js +72 -0
- package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.d.ts +3 -0
- package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.js +85 -0
- package/dist/actions/providers/microsoft/createDocument.js +3 -4
- package/dist/actions/providers/microsoft/getDocument.js +3 -6
- package/dist/actions/providers/microsoft/getSharepointItem.d.ts +3 -0
- package/dist/actions/providers/microsoft/getSharepointItem.js +61 -0
- package/dist/actions/providers/microsoft/listSharepointFolder.d.ts +3 -0
- package/dist/actions/providers/microsoft/listSharepointFolder.js +92 -0
- package/dist/actions/providers/microsoft/readSharepointContent.d.ts +3 -0
- package/dist/actions/providers/microsoft/readSharepointContent.js +157 -0
- package/dist/actions/providers/microsoft/searchSharepoint.d.ts +3 -0
- package/dist/actions/providers/microsoft/searchSharepoint.js +147 -0
- package/dist/actions/providers/microsoft/sendOutlookEmail.d.ts +3 -0
- package/dist/actions/providers/microsoft/sendOutlookEmail.js +48 -0
- package/dist/actions/providers/microsoft/sharepointUtils.d.ts +56 -0
- package/dist/actions/providers/microsoft/sharepointUtils.js +153 -0
- package/dist/actions/providers/microsoft/updateDocument.js +3 -6
- package/dist/actions/providers/microsoft/updateSpreadsheet.js +3 -4
- package/dist/actions/providers/microsoft/utils.d.ts +10 -0
- package/dist/actions/providers/microsoft/utils.js +9 -0
- package/dist/actions/providers/okta/addUserToGroup.d.ts +3 -0
- package/dist/actions/providers/okta/addUserToGroup.js +56 -0
- package/dist/actions/providers/okta/getOktaGroup.d.ts +3 -0
- package/dist/actions/providers/okta/getOktaGroup.js +73 -0
- package/dist/actions/providers/okta/getOktaUser.d.ts +3 -0
- package/dist/actions/providers/okta/getOktaUser.js +40 -0
- package/dist/actions/providers/okta/listMFA.d.ts +3 -0
- package/dist/actions/providers/okta/listMFA.js +52 -0
- package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaGroupMembers.js +99 -0
- package/dist/actions/providers/okta/listOktaGroups.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaGroups.js +92 -0
- package/dist/actions/providers/okta/listOktaUserGroups.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaUserGroups.js +83 -0
- package/dist/actions/providers/okta/listOktaUsers.d.ts +3 -0
- package/dist/actions/providers/okta/listOktaUsers.js +100 -0
- package/dist/actions/providers/okta/removeUserFromGroup.d.ts +3 -0
- package/dist/actions/providers/okta/removeUserFromGroup.js +56 -0
- package/dist/actions/providers/okta/resetMFA.d.ts +3 -0
- package/dist/actions/providers/okta/resetMFA.js +62 -0
- package/dist/actions/providers/okta/resetPassword.d.ts +3 -0
- package/dist/actions/providers/okta/resetPassword.js +57 -0
- package/dist/actions/providers/okta/triggerOktaWorkflow.d.ts +3 -0
- package/dist/actions/providers/okta/triggerOktaWorkflow.js +44 -0
- package/dist/actions/providers/salesforce/fetchSalesforceSchema.d.ts +3 -0
- package/dist/actions/providers/salesforce/fetchSalesforceSchema.js +40 -0
- package/package.json +2 -2
|
@@ -151,6 +151,10 @@ export declare enum ActionName {
|
|
|
151
151
|
MESSAGETEAMSCHAT = "messageTeamsChat",
|
|
152
152
|
MESSAGETEAMSCHANNEL = "messageTeamsChannel",
|
|
153
153
|
GETDOCUMENT = "getDocument",
|
|
154
|
+
GETSHAREPOINTITEM = "getSharepointItem",
|
|
155
|
+
LISTSHAREPOINTFOLDER = "listSharepointFolder",
|
|
156
|
+
READSHAREPOINTCONTENT = "readSharepointContent",
|
|
157
|
+
SEARCHSHAREPOINT = "searchSharepoint",
|
|
154
158
|
CREATEORUPDATEFILE = "createOrUpdateFile",
|
|
155
159
|
CREATEBRANCH = "createBranch",
|
|
156
160
|
CREATEPULLREQUEST = "createPullRequest",
|
|
@@ -8224,6 +8228,7 @@ export type salesforceGetReportMetadataOutputType = z.infer<typeof salesforceGet
|
|
|
8224
8228
|
export type salesforceGetReportMetadataFunction = ActionFunction<salesforceGetReportMetadataParamsType, AuthParamsType, salesforceGetReportMetadataOutputType>;
|
|
8225
8229
|
export declare const microsoftCreateDocumentParamsSchema: z.ZodObject<{
|
|
8226
8230
|
siteId: z.ZodOptional<z.ZodString>;
|
|
8231
|
+
driveId: z.ZodOptional<z.ZodString>;
|
|
8227
8232
|
name: z.ZodString;
|
|
8228
8233
|
content: z.ZodString;
|
|
8229
8234
|
folderId: z.ZodOptional<z.ZodString>;
|
|
@@ -8231,11 +8236,13 @@ export declare const microsoftCreateDocumentParamsSchema: z.ZodObject<{
|
|
|
8231
8236
|
name: string;
|
|
8232
8237
|
content: string;
|
|
8233
8238
|
siteId?: string | undefined;
|
|
8239
|
+
driveId?: string | undefined;
|
|
8234
8240
|
folderId?: string | undefined;
|
|
8235
8241
|
}, {
|
|
8236
8242
|
name: string;
|
|
8237
8243
|
content: string;
|
|
8238
8244
|
siteId?: string | undefined;
|
|
8245
|
+
driveId?: string | undefined;
|
|
8239
8246
|
folderId?: string | undefined;
|
|
8240
8247
|
}>;
|
|
8241
8248
|
export type microsoftCreateDocumentParamsType = z.infer<typeof microsoftCreateDocumentParamsSchema>;
|
|
@@ -8262,16 +8269,19 @@ export type microsoftCreateDocumentOutputType = z.infer<typeof microsoftCreateDo
|
|
|
8262
8269
|
export type microsoftCreateDocumentFunction = ActionFunction<microsoftCreateDocumentParamsType, AuthParamsType, microsoftCreateDocumentOutputType>;
|
|
8263
8270
|
export declare const microsoftUpdateDocumentParamsSchema: z.ZodObject<{
|
|
8264
8271
|
siteId: z.ZodOptional<z.ZodString>;
|
|
8272
|
+
driveId: z.ZodOptional<z.ZodString>;
|
|
8265
8273
|
documentId: z.ZodString;
|
|
8266
8274
|
content: z.ZodString;
|
|
8267
8275
|
}, "strip", z.ZodTypeAny, {
|
|
8268
8276
|
content: string;
|
|
8269
8277
|
documentId: string;
|
|
8270
8278
|
siteId?: string | undefined;
|
|
8279
|
+
driveId?: string | undefined;
|
|
8271
8280
|
}, {
|
|
8272
8281
|
content: string;
|
|
8273
8282
|
documentId: string;
|
|
8274
8283
|
siteId?: string | undefined;
|
|
8284
|
+
driveId?: string | undefined;
|
|
8275
8285
|
}>;
|
|
8276
8286
|
export type microsoftUpdateDocumentParamsType = z.infer<typeof microsoftUpdateDocumentParamsSchema>;
|
|
8277
8287
|
export declare const microsoftUpdateDocumentOutputSchema: z.ZodObject<{
|
|
@@ -8294,16 +8304,19 @@ export declare const microsoftUpdateSpreadsheetParamsSchema: z.ZodObject<{
|
|
|
8294
8304
|
range: z.ZodString;
|
|
8295
8305
|
values: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
|
|
8296
8306
|
siteId: z.ZodOptional<z.ZodString>;
|
|
8307
|
+
driveId: z.ZodOptional<z.ZodString>;
|
|
8297
8308
|
}, "strip", z.ZodTypeAny, {
|
|
8298
8309
|
values: string[][];
|
|
8299
8310
|
range: string;
|
|
8300
8311
|
spreadsheetId: string;
|
|
8301
8312
|
siteId?: string | undefined;
|
|
8313
|
+
driveId?: string | undefined;
|
|
8302
8314
|
}, {
|
|
8303
8315
|
values: string[][];
|
|
8304
8316
|
range: string;
|
|
8305
8317
|
spreadsheetId: string;
|
|
8306
8318
|
siteId?: string | undefined;
|
|
8319
|
+
driveId?: string | undefined;
|
|
8307
8320
|
}>;
|
|
8308
8321
|
export type microsoftUpdateSpreadsheetParamsType = z.infer<typeof microsoftUpdateSpreadsheetParamsSchema>;
|
|
8309
8322
|
export declare const microsoftUpdateSpreadsheetOutputSchema: z.ZodObject<{
|
|
@@ -8378,13 +8391,16 @@ export type microsoftMessageTeamsChannelOutputType = z.infer<typeof microsoftMes
|
|
|
8378
8391
|
export type microsoftMessageTeamsChannelFunction = ActionFunction<microsoftMessageTeamsChannelParamsType, AuthParamsType, microsoftMessageTeamsChannelOutputType>;
|
|
8379
8392
|
export declare const microsoftGetDocumentParamsSchema: z.ZodObject<{
|
|
8380
8393
|
siteId: z.ZodOptional<z.ZodString>;
|
|
8394
|
+
driveId: z.ZodOptional<z.ZodString>;
|
|
8381
8395
|
documentId: z.ZodString;
|
|
8382
8396
|
}, "strip", z.ZodTypeAny, {
|
|
8383
8397
|
documentId: string;
|
|
8384
8398
|
siteId?: string | undefined;
|
|
8399
|
+
driveId?: string | undefined;
|
|
8385
8400
|
}, {
|
|
8386
8401
|
documentId: string;
|
|
8387
8402
|
siteId?: string | undefined;
|
|
8403
|
+
driveId?: string | undefined;
|
|
8388
8404
|
}>;
|
|
8389
8405
|
export type microsoftGetDocumentParamsType = z.infer<typeof microsoftGetDocumentParamsSchema>;
|
|
8390
8406
|
export declare const microsoftGetDocumentOutputSchema: z.ZodObject<{
|
|
@@ -8402,6 +8418,369 @@ export declare const microsoftGetDocumentOutputSchema: z.ZodObject<{
|
|
|
8402
8418
|
}>;
|
|
8403
8419
|
export type microsoftGetDocumentOutputType = z.infer<typeof microsoftGetDocumentOutputSchema>;
|
|
8404
8420
|
export type microsoftGetDocumentFunction = ActionFunction<microsoftGetDocumentParamsType, AuthParamsType, microsoftGetDocumentOutputType>;
|
|
8421
|
+
export declare const microsoftGetSharepointItemParamsSchema: z.ZodObject<{
|
|
8422
|
+
url: z.ZodString;
|
|
8423
|
+
}, "strip", z.ZodTypeAny, {
|
|
8424
|
+
url: string;
|
|
8425
|
+
}, {
|
|
8426
|
+
url: string;
|
|
8427
|
+
}>;
|
|
8428
|
+
export type microsoftGetSharepointItemParamsType = z.infer<typeof microsoftGetSharepointItemParamsSchema>;
|
|
8429
|
+
export declare const microsoftGetSharepointItemOutputSchema: z.ZodObject<{
|
|
8430
|
+
success: z.ZodBoolean;
|
|
8431
|
+
item: z.ZodOptional<z.ZodObject<{
|
|
8432
|
+
itemType: z.ZodOptional<z.ZodString>;
|
|
8433
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8434
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
8435
|
+
driveId: z.ZodOptional<z.ZodString>;
|
|
8436
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
8437
|
+
siteId: z.ZodOptional<z.ZodString>;
|
|
8438
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
8439
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
8440
|
+
drives: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8441
|
+
driveId: z.ZodOptional<z.ZodString>;
|
|
8442
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8443
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
8444
|
+
}, "strip", z.ZodTypeAny, {
|
|
8445
|
+
name?: string | undefined;
|
|
8446
|
+
driveId?: string | undefined;
|
|
8447
|
+
webUrl?: string | undefined;
|
|
8448
|
+
}, {
|
|
8449
|
+
name?: string | undefined;
|
|
8450
|
+
driveId?: string | undefined;
|
|
8451
|
+
webUrl?: string | undefined;
|
|
8452
|
+
}>, "many">>;
|
|
8453
|
+
}, "strip", z.ZodTypeAny, {
|
|
8454
|
+
name?: string | undefined;
|
|
8455
|
+
mimeType?: string | undefined;
|
|
8456
|
+
siteId?: string | undefined;
|
|
8457
|
+
driveId?: string | undefined;
|
|
8458
|
+
itemId?: string | undefined;
|
|
8459
|
+
itemType?: string | undefined;
|
|
8460
|
+
webUrl?: string | undefined;
|
|
8461
|
+
sizeBytes?: number | undefined;
|
|
8462
|
+
drives?: {
|
|
8463
|
+
name?: string | undefined;
|
|
8464
|
+
driveId?: string | undefined;
|
|
8465
|
+
webUrl?: string | undefined;
|
|
8466
|
+
}[] | undefined;
|
|
8467
|
+
}, {
|
|
8468
|
+
name?: string | undefined;
|
|
8469
|
+
mimeType?: string | undefined;
|
|
8470
|
+
siteId?: string | undefined;
|
|
8471
|
+
driveId?: string | undefined;
|
|
8472
|
+
itemId?: string | undefined;
|
|
8473
|
+
itemType?: string | undefined;
|
|
8474
|
+
webUrl?: string | undefined;
|
|
8475
|
+
sizeBytes?: number | undefined;
|
|
8476
|
+
drives?: {
|
|
8477
|
+
name?: string | undefined;
|
|
8478
|
+
driveId?: string | undefined;
|
|
8479
|
+
webUrl?: string | undefined;
|
|
8480
|
+
}[] | undefined;
|
|
8481
|
+
}>>;
|
|
8482
|
+
error: z.ZodOptional<z.ZodString>;
|
|
8483
|
+
}, "strip", z.ZodTypeAny, {
|
|
8484
|
+
success: boolean;
|
|
8485
|
+
error?: string | undefined;
|
|
8486
|
+
item?: {
|
|
8487
|
+
name?: string | undefined;
|
|
8488
|
+
mimeType?: string | undefined;
|
|
8489
|
+
siteId?: string | undefined;
|
|
8490
|
+
driveId?: string | undefined;
|
|
8491
|
+
itemId?: string | undefined;
|
|
8492
|
+
itemType?: string | undefined;
|
|
8493
|
+
webUrl?: string | undefined;
|
|
8494
|
+
sizeBytes?: number | undefined;
|
|
8495
|
+
drives?: {
|
|
8496
|
+
name?: string | undefined;
|
|
8497
|
+
driveId?: string | undefined;
|
|
8498
|
+
webUrl?: string | undefined;
|
|
8499
|
+
}[] | undefined;
|
|
8500
|
+
} | undefined;
|
|
8501
|
+
}, {
|
|
8502
|
+
success: boolean;
|
|
8503
|
+
error?: string | undefined;
|
|
8504
|
+
item?: {
|
|
8505
|
+
name?: string | undefined;
|
|
8506
|
+
mimeType?: string | undefined;
|
|
8507
|
+
siteId?: string | undefined;
|
|
8508
|
+
driveId?: string | undefined;
|
|
8509
|
+
itemId?: string | undefined;
|
|
8510
|
+
itemType?: string | undefined;
|
|
8511
|
+
webUrl?: string | undefined;
|
|
8512
|
+
sizeBytes?: number | undefined;
|
|
8513
|
+
drives?: {
|
|
8514
|
+
name?: string | undefined;
|
|
8515
|
+
driveId?: string | undefined;
|
|
8516
|
+
webUrl?: string | undefined;
|
|
8517
|
+
}[] | undefined;
|
|
8518
|
+
} | undefined;
|
|
8519
|
+
}>;
|
|
8520
|
+
export type microsoftGetSharepointItemOutputType = z.infer<typeof microsoftGetSharepointItemOutputSchema>;
|
|
8521
|
+
export type microsoftGetSharepointItemFunction = ActionFunction<microsoftGetSharepointItemParamsType, AuthParamsType, microsoftGetSharepointItemOutputType>;
|
|
8522
|
+
export declare const microsoftListSharepointFolderParamsSchema: z.ZodObject<{
|
|
8523
|
+
url: z.ZodOptional<z.ZodString>;
|
|
8524
|
+
driveItem: z.ZodOptional<z.ZodObject<{
|
|
8525
|
+
driveId: z.ZodString;
|
|
8526
|
+
itemId: z.ZodString;
|
|
8527
|
+
}, "strip", z.ZodTypeAny, {
|
|
8528
|
+
driveId: string;
|
|
8529
|
+
itemId: string;
|
|
8530
|
+
}, {
|
|
8531
|
+
driveId: string;
|
|
8532
|
+
itemId: string;
|
|
8533
|
+
}>>;
|
|
8534
|
+
recursive: z.ZodOptional<z.ZodBoolean>;
|
|
8535
|
+
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
8536
|
+
}, "strip", z.ZodTypeAny, {
|
|
8537
|
+
url?: string | undefined;
|
|
8538
|
+
driveItem?: {
|
|
8539
|
+
driveId: string;
|
|
8540
|
+
itemId: string;
|
|
8541
|
+
} | undefined;
|
|
8542
|
+
recursive?: boolean | undefined;
|
|
8543
|
+
maxItems?: number | undefined;
|
|
8544
|
+
}, {
|
|
8545
|
+
url?: string | undefined;
|
|
8546
|
+
driveItem?: {
|
|
8547
|
+
driveId: string;
|
|
8548
|
+
itemId: string;
|
|
8549
|
+
} | undefined;
|
|
8550
|
+
recursive?: boolean | undefined;
|
|
8551
|
+
maxItems?: number | undefined;
|
|
8552
|
+
}>;
|
|
8553
|
+
export type microsoftListSharepointFolderParamsType = z.infer<typeof microsoftListSharepointFolderParamsSchema>;
|
|
8554
|
+
export declare const microsoftListSharepointFolderOutputSchema: z.ZodObject<{
|
|
8555
|
+
success: z.ZodBoolean;
|
|
8556
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8557
|
+
itemId: z.ZodString;
|
|
8558
|
+
driveId: z.ZodOptional<z.ZodString>;
|
|
8559
|
+
name: z.ZodString;
|
|
8560
|
+
itemType: z.ZodString;
|
|
8561
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
8562
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
8563
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
8564
|
+
lastModified: z.ZodOptional<z.ZodString>;
|
|
8565
|
+
}, "strip", z.ZodTypeAny, {
|
|
8566
|
+
name: string;
|
|
8567
|
+
itemId: string;
|
|
8568
|
+
itemType: string;
|
|
8569
|
+
mimeType?: string | undefined;
|
|
8570
|
+
driveId?: string | undefined;
|
|
8571
|
+
webUrl?: string | undefined;
|
|
8572
|
+
sizeBytes?: number | undefined;
|
|
8573
|
+
lastModified?: string | undefined;
|
|
8574
|
+
}, {
|
|
8575
|
+
name: string;
|
|
8576
|
+
itemId: string;
|
|
8577
|
+
itemType: string;
|
|
8578
|
+
mimeType?: string | undefined;
|
|
8579
|
+
driveId?: string | undefined;
|
|
8580
|
+
webUrl?: string | undefined;
|
|
8581
|
+
sizeBytes?: number | undefined;
|
|
8582
|
+
lastModified?: string | undefined;
|
|
8583
|
+
}>, "many">>;
|
|
8584
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
8585
|
+
error: z.ZodOptional<z.ZodString>;
|
|
8586
|
+
}, "strip", z.ZodTypeAny, {
|
|
8587
|
+
success: boolean;
|
|
8588
|
+
error?: string | undefined;
|
|
8589
|
+
items?: {
|
|
8590
|
+
name: string;
|
|
8591
|
+
itemId: string;
|
|
8592
|
+
itemType: string;
|
|
8593
|
+
mimeType?: string | undefined;
|
|
8594
|
+
driveId?: string | undefined;
|
|
8595
|
+
webUrl?: string | undefined;
|
|
8596
|
+
sizeBytes?: number | undefined;
|
|
8597
|
+
lastModified?: string | undefined;
|
|
8598
|
+
}[] | undefined;
|
|
8599
|
+
truncated?: boolean | undefined;
|
|
8600
|
+
}, {
|
|
8601
|
+
success: boolean;
|
|
8602
|
+
error?: string | undefined;
|
|
8603
|
+
items?: {
|
|
8604
|
+
name: string;
|
|
8605
|
+
itemId: string;
|
|
8606
|
+
itemType: string;
|
|
8607
|
+
mimeType?: string | undefined;
|
|
8608
|
+
driveId?: string | undefined;
|
|
8609
|
+
webUrl?: string | undefined;
|
|
8610
|
+
sizeBytes?: number | undefined;
|
|
8611
|
+
lastModified?: string | undefined;
|
|
8612
|
+
}[] | undefined;
|
|
8613
|
+
truncated?: boolean | undefined;
|
|
8614
|
+
}>;
|
|
8615
|
+
export type microsoftListSharepointFolderOutputType = z.infer<typeof microsoftListSharepointFolderOutputSchema>;
|
|
8616
|
+
export type microsoftListSharepointFolderFunction = ActionFunction<microsoftListSharepointFolderParamsType, AuthParamsType, microsoftListSharepointFolderOutputType>;
|
|
8617
|
+
export declare const microsoftReadSharepointContentParamsSchema: z.ZodObject<{
|
|
8618
|
+
url: z.ZodOptional<z.ZodString>;
|
|
8619
|
+
driveItem: z.ZodOptional<z.ZodObject<{
|
|
8620
|
+
driveId: z.ZodString;
|
|
8621
|
+
itemId: z.ZodString;
|
|
8622
|
+
}, "strip", z.ZodTypeAny, {
|
|
8623
|
+
driveId: string;
|
|
8624
|
+
itemId: string;
|
|
8625
|
+
}, {
|
|
8626
|
+
driveId: string;
|
|
8627
|
+
itemId: string;
|
|
8628
|
+
}>>;
|
|
8629
|
+
charLimit: z.ZodOptional<z.ZodNumber>;
|
|
8630
|
+
fileSizeLimit: z.ZodOptional<z.ZodNumber>;
|
|
8631
|
+
}, "strip", z.ZodTypeAny, {
|
|
8632
|
+
url?: string | undefined;
|
|
8633
|
+
fileSizeLimit?: number | undefined;
|
|
8634
|
+
driveItem?: {
|
|
8635
|
+
driveId: string;
|
|
8636
|
+
itemId: string;
|
|
8637
|
+
} | undefined;
|
|
8638
|
+
charLimit?: number | undefined;
|
|
8639
|
+
}, {
|
|
8640
|
+
url?: string | undefined;
|
|
8641
|
+
fileSizeLimit?: number | undefined;
|
|
8642
|
+
driveItem?: {
|
|
8643
|
+
driveId: string;
|
|
8644
|
+
itemId: string;
|
|
8645
|
+
} | undefined;
|
|
8646
|
+
charLimit?: number | undefined;
|
|
8647
|
+
}>;
|
|
8648
|
+
export type microsoftReadSharepointContentParamsType = z.infer<typeof microsoftReadSharepointContentParamsSchema>;
|
|
8649
|
+
export declare const microsoftReadSharepointContentOutputSchema: z.ZodObject<{
|
|
8650
|
+
success: z.ZodBoolean;
|
|
8651
|
+
results: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8652
|
+
name: z.ZodString;
|
|
8653
|
+
url: z.ZodString;
|
|
8654
|
+
contents: z.ZodObject<{
|
|
8655
|
+
content: z.ZodOptional<z.ZodString>;
|
|
8656
|
+
fileName: z.ZodOptional<z.ZodString>;
|
|
8657
|
+
fileLength: z.ZodOptional<z.ZodNumber>;
|
|
8658
|
+
}, "strip", z.ZodTypeAny, {
|
|
8659
|
+
content?: string | undefined;
|
|
8660
|
+
fileName?: string | undefined;
|
|
8661
|
+
fileLength?: number | undefined;
|
|
8662
|
+
}, {
|
|
8663
|
+
content?: string | undefined;
|
|
8664
|
+
fileName?: string | undefined;
|
|
8665
|
+
fileLength?: number | undefined;
|
|
8666
|
+
}>;
|
|
8667
|
+
}, "strip", z.ZodTypeAny, {
|
|
8668
|
+
name: string;
|
|
8669
|
+
url: string;
|
|
8670
|
+
contents: {
|
|
8671
|
+
content?: string | undefined;
|
|
8672
|
+
fileName?: string | undefined;
|
|
8673
|
+
fileLength?: number | undefined;
|
|
8674
|
+
};
|
|
8675
|
+
}, {
|
|
8676
|
+
name: string;
|
|
8677
|
+
url: string;
|
|
8678
|
+
contents: {
|
|
8679
|
+
content?: string | undefined;
|
|
8680
|
+
fileName?: string | undefined;
|
|
8681
|
+
fileLength?: number | undefined;
|
|
8682
|
+
};
|
|
8683
|
+
}>, "many">>;
|
|
8684
|
+
error: z.ZodOptional<z.ZodString>;
|
|
8685
|
+
}, "strip", z.ZodTypeAny, {
|
|
8686
|
+
success: boolean;
|
|
8687
|
+
error?: string | undefined;
|
|
8688
|
+
results?: {
|
|
8689
|
+
name: string;
|
|
8690
|
+
url: string;
|
|
8691
|
+
contents: {
|
|
8692
|
+
content?: string | undefined;
|
|
8693
|
+
fileName?: string | undefined;
|
|
8694
|
+
fileLength?: number | undefined;
|
|
8695
|
+
};
|
|
8696
|
+
}[] | undefined;
|
|
8697
|
+
}, {
|
|
8698
|
+
success: boolean;
|
|
8699
|
+
error?: string | undefined;
|
|
8700
|
+
results?: {
|
|
8701
|
+
name: string;
|
|
8702
|
+
url: string;
|
|
8703
|
+
contents: {
|
|
8704
|
+
content?: string | undefined;
|
|
8705
|
+
fileName?: string | undefined;
|
|
8706
|
+
fileLength?: number | undefined;
|
|
8707
|
+
};
|
|
8708
|
+
}[] | undefined;
|
|
8709
|
+
}>;
|
|
8710
|
+
export type microsoftReadSharepointContentOutputType = z.infer<typeof microsoftReadSharepointContentOutputSchema>;
|
|
8711
|
+
export type microsoftReadSharepointContentFunction = ActionFunction<microsoftReadSharepointContentParamsType, AuthParamsType, microsoftReadSharepointContentOutputType>;
|
|
8712
|
+
export declare const microsoftSearchSharepointParamsSchema: z.ZodObject<{
|
|
8713
|
+
query: z.ZodString;
|
|
8714
|
+
scopeUrl: z.ZodOptional<z.ZodString>;
|
|
8715
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
8716
|
+
}, "strip", z.ZodTypeAny, {
|
|
8717
|
+
query: string;
|
|
8718
|
+
limit?: number | undefined;
|
|
8719
|
+
scopeUrl?: string | undefined;
|
|
8720
|
+
}, {
|
|
8721
|
+
query: string;
|
|
8722
|
+
limit?: number | undefined;
|
|
8723
|
+
scopeUrl?: string | undefined;
|
|
8724
|
+
}>;
|
|
8725
|
+
export type microsoftSearchSharepointParamsType = z.infer<typeof microsoftSearchSharepointParamsSchema>;
|
|
8726
|
+
export declare const microsoftSearchSharepointOutputSchema: z.ZodObject<{
|
|
8727
|
+
success: z.ZodBoolean;
|
|
8728
|
+
files: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8729
|
+
itemId: z.ZodString;
|
|
8730
|
+
driveId: z.ZodOptional<z.ZodString>;
|
|
8731
|
+
name: z.ZodString;
|
|
8732
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
8733
|
+
webUrl: z.ZodOptional<z.ZodString>;
|
|
8734
|
+
snippet: z.ZodOptional<z.ZodString>;
|
|
8735
|
+
lastModified: z.ZodOptional<z.ZodString>;
|
|
8736
|
+
}, "strip", z.ZodTypeAny, {
|
|
8737
|
+
name: string;
|
|
8738
|
+
itemId: string;
|
|
8739
|
+
mimeType?: string | undefined;
|
|
8740
|
+
snippet?: string | undefined;
|
|
8741
|
+
driveId?: string | undefined;
|
|
8742
|
+
webUrl?: string | undefined;
|
|
8743
|
+
lastModified?: string | undefined;
|
|
8744
|
+
}, {
|
|
8745
|
+
name: string;
|
|
8746
|
+
itemId: string;
|
|
8747
|
+
mimeType?: string | undefined;
|
|
8748
|
+
snippet?: string | undefined;
|
|
8749
|
+
driveId?: string | undefined;
|
|
8750
|
+
webUrl?: string | undefined;
|
|
8751
|
+
lastModified?: string | undefined;
|
|
8752
|
+
}>, "many">>;
|
|
8753
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
8754
|
+
error: z.ZodOptional<z.ZodString>;
|
|
8755
|
+
}, "strip", z.ZodTypeAny, {
|
|
8756
|
+
success: boolean;
|
|
8757
|
+
error?: string | undefined;
|
|
8758
|
+
files?: {
|
|
8759
|
+
name: string;
|
|
8760
|
+
itemId: string;
|
|
8761
|
+
mimeType?: string | undefined;
|
|
8762
|
+
snippet?: string | undefined;
|
|
8763
|
+
driveId?: string | undefined;
|
|
8764
|
+
webUrl?: string | undefined;
|
|
8765
|
+
lastModified?: string | undefined;
|
|
8766
|
+
}[] | undefined;
|
|
8767
|
+
truncated?: boolean | undefined;
|
|
8768
|
+
}, {
|
|
8769
|
+
success: boolean;
|
|
8770
|
+
error?: string | undefined;
|
|
8771
|
+
files?: {
|
|
8772
|
+
name: string;
|
|
8773
|
+
itemId: string;
|
|
8774
|
+
mimeType?: string | undefined;
|
|
8775
|
+
snippet?: string | undefined;
|
|
8776
|
+
driveId?: string | undefined;
|
|
8777
|
+
webUrl?: string | undefined;
|
|
8778
|
+
lastModified?: string | undefined;
|
|
8779
|
+
}[] | undefined;
|
|
8780
|
+
truncated?: boolean | undefined;
|
|
8781
|
+
}>;
|
|
8782
|
+
export type microsoftSearchSharepointOutputType = z.infer<typeof microsoftSearchSharepointOutputSchema>;
|
|
8783
|
+
export type microsoftSearchSharepointFunction = ActionFunction<microsoftSearchSharepointParamsType, AuthParamsType, microsoftSearchSharepointOutputType>;
|
|
8405
8784
|
export declare const githubCreateOrUpdateFileParamsSchema: z.ZodObject<{
|
|
8406
8785
|
repositoryOwner: z.ZodString;
|
|
8407
8786
|
repositoryName: z.ZodString;
|
|
@@ -153,6 +153,10 @@ export var ActionName;
|
|
|
153
153
|
ActionName["MESSAGETEAMSCHAT"] = "messageTeamsChat";
|
|
154
154
|
ActionName["MESSAGETEAMSCHANNEL"] = "messageTeamsChannel";
|
|
155
155
|
ActionName["GETDOCUMENT"] = "getDocument";
|
|
156
|
+
ActionName["GETSHAREPOINTITEM"] = "getSharepointItem";
|
|
157
|
+
ActionName["LISTSHAREPOINTFOLDER"] = "listSharepointFolder";
|
|
158
|
+
ActionName["READSHAREPOINTCONTENT"] = "readSharepointContent";
|
|
159
|
+
ActionName["SEARCHSHAREPOINT"] = "searchSharepoint";
|
|
156
160
|
ActionName["CREATEORUPDATEFILE"] = "createOrUpdateFile";
|
|
157
161
|
ActionName["CREATEBRANCH"] = "createBranch";
|
|
158
162
|
ActionName["CREATEPULLREQUEST"] = "createPullRequest";
|
|
@@ -4256,7 +4260,14 @@ export const salesforceGetReportMetadataOutputSchema = z.object({
|
|
|
4256
4260
|
.optional(),
|
|
4257
4261
|
});
|
|
4258
4262
|
export const microsoftCreateDocumentParamsSchema = z.object({
|
|
4259
|
-
siteId: z
|
|
4263
|
+
siteId: z
|
|
4264
|
+
.string()
|
|
4265
|
+
.describe("The ID of the site where the document will be created (targets the site's default document library; ignored if driveId is provided)")
|
|
4266
|
+
.optional(),
|
|
4267
|
+
driveId: z
|
|
4268
|
+
.string()
|
|
4269
|
+
.describe("The ID of the drive (document library) to create the document in. Required to target a non-default document library; takes precedence over siteId. Can be resolved from a SharePoint URL with the getSharepointItem action")
|
|
4270
|
+
.optional(),
|
|
4260
4271
|
name: z.string().describe("The name of the new document (include extension like .docx or .xlsx)"),
|
|
4261
4272
|
content: z.string().describe("The content to add to the new document"),
|
|
4262
4273
|
folderId: z.string().describe("The ID of the folder to create the document in (optional)").optional(),
|
|
@@ -4269,7 +4280,14 @@ export const microsoftCreateDocumentOutputSchema = z.object({
|
|
|
4269
4280
|
error: z.string().describe("The error that occurred if the document was not created successfully").optional(),
|
|
4270
4281
|
});
|
|
4271
4282
|
export const microsoftUpdateDocumentParamsSchema = z.object({
|
|
4272
|
-
siteId: z
|
|
4283
|
+
siteId: z
|
|
4284
|
+
.string()
|
|
4285
|
+
.describe("The ID of the site where the document is located (targets the site's default document library; ignored if driveId is provided)")
|
|
4286
|
+
.optional(),
|
|
4287
|
+
driveId: z
|
|
4288
|
+
.string()
|
|
4289
|
+
.describe("The ID of the drive (document library) containing the document. Required when the document is in a non-default document library; takes precedence over siteId. Can be resolved from a SharePoint URL with the getSharepointItem action")
|
|
4290
|
+
.optional(),
|
|
4273
4291
|
documentId: z.string().describe("The ID of the document"),
|
|
4274
4292
|
content: z.string().describe("The new content to update in the document"),
|
|
4275
4293
|
});
|
|
@@ -4282,7 +4300,14 @@ export const microsoftUpdateSpreadsheetParamsSchema = z.object({
|
|
|
4282
4300
|
spreadsheetId: z.string().describe("The ID of the spreadsheet to update"),
|
|
4283
4301
|
range: z.string().describe('The range of cells to update (e.g., "Sheet1!A1:B2")'),
|
|
4284
4302
|
values: z.array(z.array(z.string())).describe("The values to update in the specified range"),
|
|
4285
|
-
siteId: z
|
|
4303
|
+
siteId: z
|
|
4304
|
+
.string()
|
|
4305
|
+
.describe("The ID of the site where the spreadsheet is located (targets the site's default document library; ignored if driveId is provided)")
|
|
4306
|
+
.optional(),
|
|
4307
|
+
driveId: z
|
|
4308
|
+
.string()
|
|
4309
|
+
.describe("The ID of the drive (document library) containing the spreadsheet. Required when the spreadsheet is in a non-default document library; takes precedence over siteId. Can be resolved from a SharePoint URL with the getSharepointItem action")
|
|
4310
|
+
.optional(),
|
|
4286
4311
|
});
|
|
4287
4312
|
export const microsoftUpdateSpreadsheetOutputSchema = z.object({
|
|
4288
4313
|
success: z.boolean().describe("Whether the spreadsheet was updated successfully"),
|
|
@@ -4309,7 +4334,14 @@ export const microsoftMessageTeamsChannelOutputSchema = z.object({
|
|
|
4309
4334
|
messageId: z.string().describe("The ID of the message that was sent").optional(),
|
|
4310
4335
|
});
|
|
4311
4336
|
export const microsoftGetDocumentParamsSchema = z.object({
|
|
4312
|
-
siteId: z
|
|
4337
|
+
siteId: z
|
|
4338
|
+
.string()
|
|
4339
|
+
.describe("The ID of the site where the document is located (optional for OneDrive; targets the site's default document library; ignored if driveId is provided)")
|
|
4340
|
+
.optional(),
|
|
4341
|
+
driveId: z
|
|
4342
|
+
.string()
|
|
4343
|
+
.describe("The ID of the drive (document library) containing the document. Required when the document is in a non-default document library; takes precedence over siteId. Can be resolved from a SharePoint URL with the getSharepointItem action")
|
|
4344
|
+
.optional(),
|
|
4313
4345
|
documentId: z.string().describe("The ID of the document to retrieve"),
|
|
4314
4346
|
});
|
|
4315
4347
|
export const microsoftGetDocumentOutputSchema = z.object({
|
|
@@ -4317,6 +4349,131 @@ export const microsoftGetDocumentOutputSchema = z.object({
|
|
|
4317
4349
|
content: z.string().describe("The content of the document").optional(),
|
|
4318
4350
|
error: z.string().describe("The error that occurred if the document was not successfully retrieved").optional(),
|
|
4319
4351
|
});
|
|
4352
|
+
export const microsoftGetSharepointItemParamsSchema = z.object({
|
|
4353
|
+
url: z.string().describe("The SharePoint or OneDrive URL to resolve (file, folder, site, or page link)"),
|
|
4354
|
+
});
|
|
4355
|
+
export const microsoftGetSharepointItemOutputSchema = z.object({
|
|
4356
|
+
success: z.boolean().describe("Whether the URL was resolved successfully"),
|
|
4357
|
+
item: z
|
|
4358
|
+
.object({
|
|
4359
|
+
itemType: z.string().describe("One of: file | folder | site | page").optional(),
|
|
4360
|
+
name: z.string().describe("The name of the item").optional(),
|
|
4361
|
+
webUrl: z.string().describe("The web URL of the item").optional(),
|
|
4362
|
+
driveId: z.string().describe("The ID of the drive containing the item (files and folders)").optional(),
|
|
4363
|
+
itemId: z
|
|
4364
|
+
.string()
|
|
4365
|
+
.describe("The ID of the item within its drive (for pages this is the site page ID)")
|
|
4366
|
+
.optional(),
|
|
4367
|
+
siteId: z.string().describe("The ID of the SharePoint site (sites, pages, and site-hosted items)").optional(),
|
|
4368
|
+
mimeType: z.string().describe("The MIME type of the file").optional(),
|
|
4369
|
+
sizeBytes: z.coerce.number().describe("The size of the file in bytes").optional(),
|
|
4370
|
+
drives: z
|
|
4371
|
+
.array(z.object({
|
|
4372
|
+
driveId: z.string().describe("The ID of the document library drive").optional(),
|
|
4373
|
+
name: z.string().describe("The name of the document library").optional(),
|
|
4374
|
+
webUrl: z
|
|
4375
|
+
.string()
|
|
4376
|
+
.describe("The web URL of the document library (usable as a searchSharepoint scopeUrl)")
|
|
4377
|
+
.optional(),
|
|
4378
|
+
}))
|
|
4379
|
+
.describe("For sites — the document libraries in the site")
|
|
4380
|
+
.optional(),
|
|
4381
|
+
})
|
|
4382
|
+
.describe("The resolved item")
|
|
4383
|
+
.optional(),
|
|
4384
|
+
error: z.string().describe("The error that occurred if the URL was not resolved").optional(),
|
|
4385
|
+
});
|
|
4386
|
+
export const microsoftListSharepointFolderParamsSchema = z.object({
|
|
4387
|
+
url: z.string().describe("The URL of the folder (or site) to list. Provide either this or driveItem.").optional(),
|
|
4388
|
+
driveItem: z
|
|
4389
|
+
.object({
|
|
4390
|
+
driveId: z.string().describe("The ID of the drive containing the folder"),
|
|
4391
|
+
itemId: z.string().describe("The ID of the folder to list"),
|
|
4392
|
+
})
|
|
4393
|
+
.describe("The exact folder to list, as returned by getSharepointItem. Provide either this or url.")
|
|
4394
|
+
.optional(),
|
|
4395
|
+
recursive: z.boolean().describe("Whether to recursively enumerate subfolders (default false)").optional(),
|
|
4396
|
+
maxItems: z.coerce.number().describe("Maximum number of items to return (default 200)").optional(),
|
|
4397
|
+
});
|
|
4398
|
+
export const microsoftListSharepointFolderOutputSchema = z.object({
|
|
4399
|
+
success: z.boolean().describe("Whether the folder was listed successfully"),
|
|
4400
|
+
items: z
|
|
4401
|
+
.array(z.object({
|
|
4402
|
+
itemId: z.string().describe("The ID of the item"),
|
|
4403
|
+
driveId: z.string().describe("The ID of the drive containing the item").optional(),
|
|
4404
|
+
name: z.string().describe("The name of the item"),
|
|
4405
|
+
itemType: z.string().describe("One of: file | folder"),
|
|
4406
|
+
mimeType: z.string().describe("The MIME type of the file").optional(),
|
|
4407
|
+
sizeBytes: z.coerce.number().describe("The size of the file in bytes").optional(),
|
|
4408
|
+
webUrl: z.string().describe("The web URL of the item").optional(),
|
|
4409
|
+
lastModified: z.string().describe("The last modified timestamp of the item").optional(),
|
|
4410
|
+
}))
|
|
4411
|
+
.describe("The items in the folder")
|
|
4412
|
+
.optional(),
|
|
4413
|
+
truncated: z.boolean().describe("True if enumeration stopped at maxItems before listing everything").optional(),
|
|
4414
|
+
error: z.string().describe("The error that occurred if the folder was not listed").optional(),
|
|
4415
|
+
});
|
|
4416
|
+
export const microsoftReadSharepointContentParamsSchema = z.object({
|
|
4417
|
+
url: z
|
|
4418
|
+
.string()
|
|
4419
|
+
.describe("The URL of the file or page to read. Provide either this or driveItem; when both are given, driveItem takes precedence and the url is ignored.")
|
|
4420
|
+
.optional(),
|
|
4421
|
+
driveItem: z
|
|
4422
|
+
.object({
|
|
4423
|
+
driveId: z.string().describe("The ID of the drive containing the file"),
|
|
4424
|
+
itemId: z.string().describe("The ID of the file to read"),
|
|
4425
|
+
})
|
|
4426
|
+
.describe("The exact file to read, as returned by getSharepointItem. Provide either this or url.")
|
|
4427
|
+
.optional(),
|
|
4428
|
+
charLimit: z.coerce.number().describe("The character limit for the returned content (soft truncation)").optional(),
|
|
4429
|
+
fileSizeLimit: z.coerce
|
|
4430
|
+
.number()
|
|
4431
|
+
.describe("Max file size (in MB) to retrieve content from (default of 50MB)")
|
|
4432
|
+
.optional(),
|
|
4433
|
+
});
|
|
4434
|
+
export const microsoftReadSharepointContentOutputSchema = z.object({
|
|
4435
|
+
success: z.boolean().describe("Whether the content was retrieved successfully"),
|
|
4436
|
+
results: z
|
|
4437
|
+
.array(z.object({
|
|
4438
|
+
name: z.string().describe("The name of the file or page"),
|
|
4439
|
+
url: z.string().describe("The URL of the file or page"),
|
|
4440
|
+
contents: z
|
|
4441
|
+
.object({
|
|
4442
|
+
content: z.string().describe("The text content of the file or page").optional(),
|
|
4443
|
+
fileName: z.string().describe("The name of the file or page").optional(),
|
|
4444
|
+
fileLength: z.coerce.number().describe("The length of the content prior to truncating").optional(),
|
|
4445
|
+
})
|
|
4446
|
+
.describe("The contents of the file or page"),
|
|
4447
|
+
}))
|
|
4448
|
+
.describe("The results of the content read")
|
|
4449
|
+
.optional(),
|
|
4450
|
+
error: z.string().describe("Error message if content retrieval failed").optional(),
|
|
4451
|
+
});
|
|
4452
|
+
export const microsoftSearchSharepointParamsSchema = z.object({
|
|
4453
|
+
query: z.string().describe("The text to search for"),
|
|
4454
|
+
scopeUrl: z
|
|
4455
|
+
.string()
|
|
4456
|
+
.describe("A site, folder, or document library URL to restrict results to (optional — omit to search everything the user can access)")
|
|
4457
|
+
.optional(),
|
|
4458
|
+
limit: z.coerce.number().describe("Maximum number of results to return (default 25)").optional(),
|
|
4459
|
+
});
|
|
4460
|
+
export const microsoftSearchSharepointOutputSchema = z.object({
|
|
4461
|
+
success: z.boolean().describe("Whether the search completed successfully"),
|
|
4462
|
+
files: z
|
|
4463
|
+
.array(z.object({
|
|
4464
|
+
itemId: z.string().describe("The ID of the file"),
|
|
4465
|
+
driveId: z.string().describe("The ID of the drive containing the file").optional(),
|
|
4466
|
+
name: z.string().describe("The name of the file"),
|
|
4467
|
+
mimeType: z.string().describe("The MIME type of the file").optional(),
|
|
4468
|
+
webUrl: z.string().describe("The web URL of the file").optional(),
|
|
4469
|
+
snippet: z.string().describe("A text snippet summarizing the match").optional(),
|
|
4470
|
+
lastModified: z.string().describe("The last modified timestamp of the file").optional(),
|
|
4471
|
+
}))
|
|
4472
|
+
.describe("The files matching the search query")
|
|
4473
|
+
.optional(),
|
|
4474
|
+
truncated: z.boolean().describe("True if more results were available than the limit allowed").optional(),
|
|
4475
|
+
error: z.string().describe("The error that occurred if the search failed").optional(),
|
|
4476
|
+
});
|
|
4320
4477
|
export const githubCreateOrUpdateFileParamsSchema = z.object({
|
|
4321
4478
|
repositoryOwner: z.string().describe("The owner of the repository, this is a GitHub username"),
|
|
4322
4479
|
repositoryName: z.string().describe("The name of the repository"),
|