@credal/actions 0.2.223 → 0.2.224

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.
Files changed (76) hide show
  1. package/dist/actions/actionMapper.js +29 -1
  2. package/dist/actions/autogen/templates.d.ts +4 -0
  3. package/dist/actions/autogen/templates.js +365 -0
  4. package/dist/actions/autogen/types.d.ts +367 -0
  5. package/dist/actions/autogen/types.js +129 -0
  6. package/dist/actions/groups.d.ts +6 -0
  7. package/dist/actions/groups.js +220 -0
  8. package/dist/actions/providers/ashby/addCandidateToProject.d.ts +3 -0
  9. package/dist/actions/providers/ashby/addCandidateToProject.js +31 -0
  10. package/dist/actions/providers/ashby/createCandidate.d.ts +3 -0
  11. package/dist/actions/providers/ashby/createCandidate.js +38 -0
  12. package/dist/actions/providers/ashby/createNote.d.ts +3 -0
  13. package/dist/actions/providers/ashby/createNote.js +31 -0
  14. package/dist/actions/providers/ashby/getCandidateInfo.d.ts +3 -0
  15. package/dist/actions/providers/ashby/getCandidateInfo.js +33 -0
  16. package/dist/actions/providers/ashby/listCandidateNotes.d.ts +3 -0
  17. package/dist/actions/providers/ashby/listCandidateNotes.js +33 -0
  18. package/dist/actions/providers/ashby/listCandidates.d.ts +3 -0
  19. package/dist/actions/providers/ashby/listCandidates.js +30 -0
  20. package/dist/actions/providers/ashby/searchCandidates.d.ts +3 -0
  21. package/dist/actions/providers/ashby/searchCandidates.js +34 -0
  22. package/dist/actions/providers/ashby/updateCandidate.d.ts +3 -0
  23. package/dist/actions/providers/ashby/updateCandidate.js +56 -0
  24. package/dist/actions/providers/gong/getGongTranscripts.d.ts +3 -0
  25. package/dist/actions/providers/gong/getGongTranscripts.js +315 -0
  26. package/dist/actions/providers/jamf/getJamfComputerInventory.d.ts +3 -0
  27. package/dist/actions/providers/jamf/getJamfComputerInventory.js +37 -0
  28. package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.d.ts +3 -0
  29. package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.js +39 -0
  30. package/dist/actions/providers/jamf/getJamfUserComputerId.d.ts +3 -0
  31. package/dist/actions/providers/jamf/getJamfUserComputerId.js +45 -0
  32. package/dist/actions/providers/jamf/lockJamfComputerById.d.ts +3 -0
  33. package/dist/actions/providers/jamf/lockJamfComputerById.js +39 -0
  34. package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.d.ts +3 -0
  35. package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.js +85 -0
  36. package/dist/actions/providers/microsoft/getSharepointItem.d.ts +3 -0
  37. package/dist/actions/providers/microsoft/getSharepointItem.js +61 -0
  38. package/dist/actions/providers/microsoft/listSharepointFolder.d.ts +3 -0
  39. package/dist/actions/providers/microsoft/listSharepointFolder.js +92 -0
  40. package/dist/actions/providers/microsoft/readSharepointContent.d.ts +3 -0
  41. package/dist/actions/providers/microsoft/readSharepointContent.js +157 -0
  42. package/dist/actions/providers/microsoft/searchSharepoint.d.ts +3 -0
  43. package/dist/actions/providers/microsoft/searchSharepoint.js +147 -0
  44. package/dist/actions/providers/microsoft/sharepointUtils.d.ts +56 -0
  45. package/dist/actions/providers/microsoft/sharepointUtils.js +153 -0
  46. package/dist/actions/providers/microsoft/utils.d.ts +1 -0
  47. package/dist/actions/providers/microsoft/utils.js +1 -0
  48. package/dist/actions/providers/okta/addUserToGroup.d.ts +3 -0
  49. package/dist/actions/providers/okta/addUserToGroup.js +56 -0
  50. package/dist/actions/providers/okta/getOktaGroup.d.ts +3 -0
  51. package/dist/actions/providers/okta/getOktaGroup.js +73 -0
  52. package/dist/actions/providers/okta/getOktaUser.d.ts +3 -0
  53. package/dist/actions/providers/okta/getOktaUser.js +40 -0
  54. package/dist/actions/providers/okta/listMFA.d.ts +3 -0
  55. package/dist/actions/providers/okta/listMFA.js +52 -0
  56. package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +3 -0
  57. package/dist/actions/providers/okta/listOktaGroupMembers.js +99 -0
  58. package/dist/actions/providers/okta/listOktaGroups.d.ts +3 -0
  59. package/dist/actions/providers/okta/listOktaGroups.js +92 -0
  60. package/dist/actions/providers/okta/listOktaUserGroups.d.ts +3 -0
  61. package/dist/actions/providers/okta/listOktaUserGroups.js +83 -0
  62. package/dist/actions/providers/okta/listOktaUsers.d.ts +3 -0
  63. package/dist/actions/providers/okta/listOktaUsers.js +100 -0
  64. package/dist/actions/providers/okta/removeUserFromGroup.d.ts +3 -0
  65. package/dist/actions/providers/okta/removeUserFromGroup.js +56 -0
  66. package/dist/actions/providers/okta/resetMFA.d.ts +3 -0
  67. package/dist/actions/providers/okta/resetMFA.js +62 -0
  68. package/dist/actions/providers/okta/resetPassword.d.ts +3 -0
  69. package/dist/actions/providers/okta/resetPassword.js +57 -0
  70. package/dist/actions/providers/okta/triggerOktaWorkflow.d.ts +3 -0
  71. package/dist/actions/providers/okta/triggerOktaWorkflow.js +44 -0
  72. package/dist/actions/providers/salesforce/fetchSalesforceSchema.d.ts +3 -0
  73. package/dist/actions/providers/salesforce/fetchSalesforceSchema.js +40 -0
  74. package/dist/actions/providers/slack/archiveChannel.d.ts +3 -0
  75. package/dist/actions/providers/slack/archiveChannel.js +35 -0
  76. package/package.json +1 -1
@@ -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",
@@ -8402,6 +8406,369 @@ export declare const microsoftGetDocumentOutputSchema: z.ZodObject<{
8402
8406
  }>;
8403
8407
  export type microsoftGetDocumentOutputType = z.infer<typeof microsoftGetDocumentOutputSchema>;
8404
8408
  export type microsoftGetDocumentFunction = ActionFunction<microsoftGetDocumentParamsType, AuthParamsType, microsoftGetDocumentOutputType>;
8409
+ export declare const microsoftGetSharepointItemParamsSchema: z.ZodObject<{
8410
+ url: z.ZodString;
8411
+ }, "strip", z.ZodTypeAny, {
8412
+ url: string;
8413
+ }, {
8414
+ url: string;
8415
+ }>;
8416
+ export type microsoftGetSharepointItemParamsType = z.infer<typeof microsoftGetSharepointItemParamsSchema>;
8417
+ export declare const microsoftGetSharepointItemOutputSchema: z.ZodObject<{
8418
+ success: z.ZodBoolean;
8419
+ item: z.ZodOptional<z.ZodObject<{
8420
+ itemType: z.ZodOptional<z.ZodString>;
8421
+ name: z.ZodOptional<z.ZodString>;
8422
+ webUrl: z.ZodOptional<z.ZodString>;
8423
+ driveId: z.ZodOptional<z.ZodString>;
8424
+ itemId: z.ZodOptional<z.ZodString>;
8425
+ siteId: z.ZodOptional<z.ZodString>;
8426
+ mimeType: z.ZodOptional<z.ZodString>;
8427
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
8428
+ drives: z.ZodOptional<z.ZodArray<z.ZodObject<{
8429
+ driveId: z.ZodOptional<z.ZodString>;
8430
+ name: z.ZodOptional<z.ZodString>;
8431
+ webUrl: z.ZodOptional<z.ZodString>;
8432
+ }, "strip", z.ZodTypeAny, {
8433
+ name?: string | undefined;
8434
+ driveId?: string | undefined;
8435
+ webUrl?: string | undefined;
8436
+ }, {
8437
+ name?: string | undefined;
8438
+ driveId?: string | undefined;
8439
+ webUrl?: string | undefined;
8440
+ }>, "many">>;
8441
+ }, "strip", z.ZodTypeAny, {
8442
+ name?: string | undefined;
8443
+ mimeType?: string | undefined;
8444
+ siteId?: string | undefined;
8445
+ driveId?: string | undefined;
8446
+ itemId?: string | undefined;
8447
+ itemType?: string | undefined;
8448
+ webUrl?: string | undefined;
8449
+ sizeBytes?: number | undefined;
8450
+ drives?: {
8451
+ name?: string | undefined;
8452
+ driveId?: string | undefined;
8453
+ webUrl?: string | undefined;
8454
+ }[] | undefined;
8455
+ }, {
8456
+ name?: string | undefined;
8457
+ mimeType?: string | undefined;
8458
+ siteId?: string | undefined;
8459
+ driveId?: string | undefined;
8460
+ itemId?: string | undefined;
8461
+ itemType?: string | undefined;
8462
+ webUrl?: string | undefined;
8463
+ sizeBytes?: number | undefined;
8464
+ drives?: {
8465
+ name?: string | undefined;
8466
+ driveId?: string | undefined;
8467
+ webUrl?: string | undefined;
8468
+ }[] | undefined;
8469
+ }>>;
8470
+ error: z.ZodOptional<z.ZodString>;
8471
+ }, "strip", z.ZodTypeAny, {
8472
+ success: boolean;
8473
+ error?: string | undefined;
8474
+ item?: {
8475
+ name?: string | undefined;
8476
+ mimeType?: string | undefined;
8477
+ siteId?: string | undefined;
8478
+ driveId?: string | undefined;
8479
+ itemId?: string | undefined;
8480
+ itemType?: string | undefined;
8481
+ webUrl?: string | undefined;
8482
+ sizeBytes?: number | undefined;
8483
+ drives?: {
8484
+ name?: string | undefined;
8485
+ driveId?: string | undefined;
8486
+ webUrl?: string | undefined;
8487
+ }[] | undefined;
8488
+ } | undefined;
8489
+ }, {
8490
+ success: boolean;
8491
+ error?: string | undefined;
8492
+ item?: {
8493
+ name?: string | undefined;
8494
+ mimeType?: string | undefined;
8495
+ siteId?: string | undefined;
8496
+ driveId?: string | undefined;
8497
+ itemId?: string | undefined;
8498
+ itemType?: string | undefined;
8499
+ webUrl?: string | undefined;
8500
+ sizeBytes?: number | undefined;
8501
+ drives?: {
8502
+ name?: string | undefined;
8503
+ driveId?: string | undefined;
8504
+ webUrl?: string | undefined;
8505
+ }[] | undefined;
8506
+ } | undefined;
8507
+ }>;
8508
+ export type microsoftGetSharepointItemOutputType = z.infer<typeof microsoftGetSharepointItemOutputSchema>;
8509
+ export type microsoftGetSharepointItemFunction = ActionFunction<microsoftGetSharepointItemParamsType, AuthParamsType, microsoftGetSharepointItemOutputType>;
8510
+ export declare const microsoftListSharepointFolderParamsSchema: z.ZodObject<{
8511
+ url: z.ZodOptional<z.ZodString>;
8512
+ driveItem: z.ZodOptional<z.ZodObject<{
8513
+ driveId: z.ZodString;
8514
+ itemId: z.ZodString;
8515
+ }, "strip", z.ZodTypeAny, {
8516
+ driveId: string;
8517
+ itemId: string;
8518
+ }, {
8519
+ driveId: string;
8520
+ itemId: string;
8521
+ }>>;
8522
+ recursive: z.ZodOptional<z.ZodBoolean>;
8523
+ maxItems: z.ZodOptional<z.ZodNumber>;
8524
+ }, "strip", z.ZodTypeAny, {
8525
+ url?: string | undefined;
8526
+ driveItem?: {
8527
+ driveId: string;
8528
+ itemId: string;
8529
+ } | undefined;
8530
+ recursive?: boolean | undefined;
8531
+ maxItems?: number | undefined;
8532
+ }, {
8533
+ url?: string | undefined;
8534
+ driveItem?: {
8535
+ driveId: string;
8536
+ itemId: string;
8537
+ } | undefined;
8538
+ recursive?: boolean | undefined;
8539
+ maxItems?: number | undefined;
8540
+ }>;
8541
+ export type microsoftListSharepointFolderParamsType = z.infer<typeof microsoftListSharepointFolderParamsSchema>;
8542
+ export declare const microsoftListSharepointFolderOutputSchema: z.ZodObject<{
8543
+ success: z.ZodBoolean;
8544
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
8545
+ itemId: z.ZodString;
8546
+ driveId: z.ZodOptional<z.ZodString>;
8547
+ name: z.ZodString;
8548
+ itemType: z.ZodString;
8549
+ mimeType: z.ZodOptional<z.ZodString>;
8550
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
8551
+ webUrl: z.ZodOptional<z.ZodString>;
8552
+ lastModified: z.ZodOptional<z.ZodString>;
8553
+ }, "strip", z.ZodTypeAny, {
8554
+ name: string;
8555
+ itemId: string;
8556
+ itemType: string;
8557
+ mimeType?: string | undefined;
8558
+ driveId?: string | undefined;
8559
+ webUrl?: string | undefined;
8560
+ sizeBytes?: number | undefined;
8561
+ lastModified?: string | undefined;
8562
+ }, {
8563
+ name: string;
8564
+ itemId: string;
8565
+ itemType: string;
8566
+ mimeType?: string | undefined;
8567
+ driveId?: string | undefined;
8568
+ webUrl?: string | undefined;
8569
+ sizeBytes?: number | undefined;
8570
+ lastModified?: string | undefined;
8571
+ }>, "many">>;
8572
+ truncated: z.ZodOptional<z.ZodBoolean>;
8573
+ error: z.ZodOptional<z.ZodString>;
8574
+ }, "strip", z.ZodTypeAny, {
8575
+ success: boolean;
8576
+ error?: string | undefined;
8577
+ items?: {
8578
+ name: string;
8579
+ itemId: string;
8580
+ itemType: string;
8581
+ mimeType?: string | undefined;
8582
+ driveId?: string | undefined;
8583
+ webUrl?: string | undefined;
8584
+ sizeBytes?: number | undefined;
8585
+ lastModified?: string | undefined;
8586
+ }[] | undefined;
8587
+ truncated?: boolean | undefined;
8588
+ }, {
8589
+ success: boolean;
8590
+ error?: string | undefined;
8591
+ items?: {
8592
+ name: string;
8593
+ itemId: string;
8594
+ itemType: string;
8595
+ mimeType?: string | undefined;
8596
+ driveId?: string | undefined;
8597
+ webUrl?: string | undefined;
8598
+ sizeBytes?: number | undefined;
8599
+ lastModified?: string | undefined;
8600
+ }[] | undefined;
8601
+ truncated?: boolean | undefined;
8602
+ }>;
8603
+ export type microsoftListSharepointFolderOutputType = z.infer<typeof microsoftListSharepointFolderOutputSchema>;
8604
+ export type microsoftListSharepointFolderFunction = ActionFunction<microsoftListSharepointFolderParamsType, AuthParamsType, microsoftListSharepointFolderOutputType>;
8605
+ export declare const microsoftReadSharepointContentParamsSchema: z.ZodObject<{
8606
+ url: z.ZodOptional<z.ZodString>;
8607
+ driveItem: z.ZodOptional<z.ZodObject<{
8608
+ driveId: z.ZodString;
8609
+ itemId: z.ZodString;
8610
+ }, "strip", z.ZodTypeAny, {
8611
+ driveId: string;
8612
+ itemId: string;
8613
+ }, {
8614
+ driveId: string;
8615
+ itemId: string;
8616
+ }>>;
8617
+ charLimit: z.ZodOptional<z.ZodNumber>;
8618
+ fileSizeLimit: z.ZodOptional<z.ZodNumber>;
8619
+ }, "strip", z.ZodTypeAny, {
8620
+ url?: string | undefined;
8621
+ fileSizeLimit?: number | undefined;
8622
+ driveItem?: {
8623
+ driveId: string;
8624
+ itemId: string;
8625
+ } | undefined;
8626
+ charLimit?: number | undefined;
8627
+ }, {
8628
+ url?: string | undefined;
8629
+ fileSizeLimit?: number | undefined;
8630
+ driveItem?: {
8631
+ driveId: string;
8632
+ itemId: string;
8633
+ } | undefined;
8634
+ charLimit?: number | undefined;
8635
+ }>;
8636
+ export type microsoftReadSharepointContentParamsType = z.infer<typeof microsoftReadSharepointContentParamsSchema>;
8637
+ export declare const microsoftReadSharepointContentOutputSchema: z.ZodObject<{
8638
+ success: z.ZodBoolean;
8639
+ results: z.ZodOptional<z.ZodArray<z.ZodObject<{
8640
+ name: z.ZodString;
8641
+ url: z.ZodString;
8642
+ contents: z.ZodObject<{
8643
+ content: z.ZodOptional<z.ZodString>;
8644
+ fileName: z.ZodOptional<z.ZodString>;
8645
+ fileLength: z.ZodOptional<z.ZodNumber>;
8646
+ }, "strip", z.ZodTypeAny, {
8647
+ content?: string | undefined;
8648
+ fileName?: string | undefined;
8649
+ fileLength?: number | undefined;
8650
+ }, {
8651
+ content?: string | undefined;
8652
+ fileName?: string | undefined;
8653
+ fileLength?: number | undefined;
8654
+ }>;
8655
+ }, "strip", z.ZodTypeAny, {
8656
+ name: string;
8657
+ url: string;
8658
+ contents: {
8659
+ content?: string | undefined;
8660
+ fileName?: string | undefined;
8661
+ fileLength?: number | undefined;
8662
+ };
8663
+ }, {
8664
+ name: string;
8665
+ url: string;
8666
+ contents: {
8667
+ content?: string | undefined;
8668
+ fileName?: string | undefined;
8669
+ fileLength?: number | undefined;
8670
+ };
8671
+ }>, "many">>;
8672
+ error: z.ZodOptional<z.ZodString>;
8673
+ }, "strip", z.ZodTypeAny, {
8674
+ success: boolean;
8675
+ error?: string | undefined;
8676
+ results?: {
8677
+ name: string;
8678
+ url: string;
8679
+ contents: {
8680
+ content?: string | undefined;
8681
+ fileName?: string | undefined;
8682
+ fileLength?: number | undefined;
8683
+ };
8684
+ }[] | undefined;
8685
+ }, {
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
+ export type microsoftReadSharepointContentOutputType = z.infer<typeof microsoftReadSharepointContentOutputSchema>;
8699
+ export type microsoftReadSharepointContentFunction = ActionFunction<microsoftReadSharepointContentParamsType, AuthParamsType, microsoftReadSharepointContentOutputType>;
8700
+ export declare const microsoftSearchSharepointParamsSchema: z.ZodObject<{
8701
+ query: z.ZodString;
8702
+ scopeUrl: z.ZodOptional<z.ZodString>;
8703
+ limit: z.ZodOptional<z.ZodNumber>;
8704
+ }, "strip", z.ZodTypeAny, {
8705
+ query: string;
8706
+ limit?: number | undefined;
8707
+ scopeUrl?: string | undefined;
8708
+ }, {
8709
+ query: string;
8710
+ limit?: number | undefined;
8711
+ scopeUrl?: string | undefined;
8712
+ }>;
8713
+ export type microsoftSearchSharepointParamsType = z.infer<typeof microsoftSearchSharepointParamsSchema>;
8714
+ export declare const microsoftSearchSharepointOutputSchema: z.ZodObject<{
8715
+ success: z.ZodBoolean;
8716
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
8717
+ itemId: z.ZodString;
8718
+ driveId: z.ZodOptional<z.ZodString>;
8719
+ name: z.ZodString;
8720
+ mimeType: z.ZodOptional<z.ZodString>;
8721
+ webUrl: z.ZodOptional<z.ZodString>;
8722
+ snippet: z.ZodOptional<z.ZodString>;
8723
+ lastModified: z.ZodOptional<z.ZodString>;
8724
+ }, "strip", z.ZodTypeAny, {
8725
+ name: string;
8726
+ itemId: string;
8727
+ mimeType?: string | undefined;
8728
+ snippet?: string | undefined;
8729
+ driveId?: string | undefined;
8730
+ webUrl?: string | undefined;
8731
+ lastModified?: string | undefined;
8732
+ }, {
8733
+ name: string;
8734
+ itemId: string;
8735
+ mimeType?: string | undefined;
8736
+ snippet?: string | undefined;
8737
+ driveId?: string | undefined;
8738
+ webUrl?: string | undefined;
8739
+ lastModified?: string | undefined;
8740
+ }>, "many">>;
8741
+ truncated: z.ZodOptional<z.ZodBoolean>;
8742
+ error: z.ZodOptional<z.ZodString>;
8743
+ }, "strip", z.ZodTypeAny, {
8744
+ success: boolean;
8745
+ error?: string | undefined;
8746
+ files?: {
8747
+ name: string;
8748
+ itemId: string;
8749
+ mimeType?: string | undefined;
8750
+ snippet?: string | undefined;
8751
+ driveId?: string | undefined;
8752
+ webUrl?: string | undefined;
8753
+ lastModified?: string | undefined;
8754
+ }[] | undefined;
8755
+ truncated?: boolean | undefined;
8756
+ }, {
8757
+ success: boolean;
8758
+ error?: string | undefined;
8759
+ files?: {
8760
+ name: string;
8761
+ itemId: string;
8762
+ mimeType?: string | undefined;
8763
+ snippet?: string | undefined;
8764
+ driveId?: string | undefined;
8765
+ webUrl?: string | undefined;
8766
+ lastModified?: string | undefined;
8767
+ }[] | undefined;
8768
+ truncated?: boolean | undefined;
8769
+ }>;
8770
+ export type microsoftSearchSharepointOutputType = z.infer<typeof microsoftSearchSharepointOutputSchema>;
8771
+ export type microsoftSearchSharepointFunction = ActionFunction<microsoftSearchSharepointParamsType, AuthParamsType, microsoftSearchSharepointOutputType>;
8405
8772
  export declare const githubCreateOrUpdateFileParamsSchema: z.ZodObject<{
8406
8773
  repositoryOwner: z.ZodString;
8407
8774
  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";
@@ -4317,6 +4321,131 @@ export const microsoftGetDocumentOutputSchema = z.object({
4317
4321
  content: z.string().describe("The content of the document").optional(),
4318
4322
  error: z.string().describe("The error that occurred if the document was not successfully retrieved").optional(),
4319
4323
  });
4324
+ export const microsoftGetSharepointItemParamsSchema = z.object({
4325
+ url: z.string().describe("The SharePoint or OneDrive URL to resolve (file, folder, site, or page link)"),
4326
+ });
4327
+ export const microsoftGetSharepointItemOutputSchema = z.object({
4328
+ success: z.boolean().describe("Whether the URL was resolved successfully"),
4329
+ item: z
4330
+ .object({
4331
+ itemType: z.string().describe("One of: file | folder | site | page").optional(),
4332
+ name: z.string().describe("The name of the item").optional(),
4333
+ webUrl: z.string().describe("The web URL of the item").optional(),
4334
+ driveId: z.string().describe("The ID of the drive containing the item (files and folders)").optional(),
4335
+ itemId: z
4336
+ .string()
4337
+ .describe("The ID of the item within its drive (for pages this is the site page ID)")
4338
+ .optional(),
4339
+ siteId: z.string().describe("The ID of the SharePoint site (sites, pages, and site-hosted items)").optional(),
4340
+ mimeType: z.string().describe("The MIME type of the file").optional(),
4341
+ sizeBytes: z.coerce.number().describe("The size of the file in bytes").optional(),
4342
+ drives: z
4343
+ .array(z.object({
4344
+ driveId: z.string().describe("The ID of the document library drive").optional(),
4345
+ name: z.string().describe("The name of the document library").optional(),
4346
+ webUrl: z
4347
+ .string()
4348
+ .describe("The web URL of the document library (usable as a searchSharepoint scopeUrl)")
4349
+ .optional(),
4350
+ }))
4351
+ .describe("For sites — the document libraries in the site")
4352
+ .optional(),
4353
+ })
4354
+ .describe("The resolved item")
4355
+ .optional(),
4356
+ error: z.string().describe("The error that occurred if the URL was not resolved").optional(),
4357
+ });
4358
+ export const microsoftListSharepointFolderParamsSchema = z.object({
4359
+ url: z.string().describe("The URL of the folder (or site) to list. Provide either this or driveItem.").optional(),
4360
+ driveItem: z
4361
+ .object({
4362
+ driveId: z.string().describe("The ID of the drive containing the folder"),
4363
+ itemId: z.string().describe("The ID of the folder to list"),
4364
+ })
4365
+ .describe("The exact folder to list, as returned by getSharepointItem. Provide either this or url.")
4366
+ .optional(),
4367
+ recursive: z.boolean().describe("Whether to recursively enumerate subfolders (default false)").optional(),
4368
+ maxItems: z.coerce.number().describe("Maximum number of items to return (default 200)").optional(),
4369
+ });
4370
+ export const microsoftListSharepointFolderOutputSchema = z.object({
4371
+ success: z.boolean().describe("Whether the folder was listed successfully"),
4372
+ items: z
4373
+ .array(z.object({
4374
+ itemId: z.string().describe("The ID of the item"),
4375
+ driveId: z.string().describe("The ID of the drive containing the item").optional(),
4376
+ name: z.string().describe("The name of the item"),
4377
+ itemType: z.string().describe("One of: file | folder"),
4378
+ mimeType: z.string().describe("The MIME type of the file").optional(),
4379
+ sizeBytes: z.coerce.number().describe("The size of the file in bytes").optional(),
4380
+ webUrl: z.string().describe("The web URL of the item").optional(),
4381
+ lastModified: z.string().describe("The last modified timestamp of the item").optional(),
4382
+ }))
4383
+ .describe("The items in the folder")
4384
+ .optional(),
4385
+ truncated: z.boolean().describe("True if enumeration stopped at maxItems before listing everything").optional(),
4386
+ error: z.string().describe("The error that occurred if the folder was not listed").optional(),
4387
+ });
4388
+ export const microsoftReadSharepointContentParamsSchema = z.object({
4389
+ url: z
4390
+ .string()
4391
+ .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.")
4392
+ .optional(),
4393
+ driveItem: z
4394
+ .object({
4395
+ driveId: z.string().describe("The ID of the drive containing the file"),
4396
+ itemId: z.string().describe("The ID of the file to read"),
4397
+ })
4398
+ .describe("The exact file to read, as returned by getSharepointItem. Provide either this or url.")
4399
+ .optional(),
4400
+ charLimit: z.coerce.number().describe("The character limit for the returned content (soft truncation)").optional(),
4401
+ fileSizeLimit: z.coerce
4402
+ .number()
4403
+ .describe("Max file size (in MB) to retrieve content from (default of 50MB)")
4404
+ .optional(),
4405
+ });
4406
+ export const microsoftReadSharepointContentOutputSchema = z.object({
4407
+ success: z.boolean().describe("Whether the content was retrieved successfully"),
4408
+ results: z
4409
+ .array(z.object({
4410
+ name: z.string().describe("The name of the file or page"),
4411
+ url: z.string().describe("The URL of the file or page"),
4412
+ contents: z
4413
+ .object({
4414
+ content: z.string().describe("The text content of the file or page").optional(),
4415
+ fileName: z.string().describe("The name of the file or page").optional(),
4416
+ fileLength: z.coerce.number().describe("The length of the content prior to truncating").optional(),
4417
+ })
4418
+ .describe("The contents of the file or page"),
4419
+ }))
4420
+ .describe("The results of the content read")
4421
+ .optional(),
4422
+ error: z.string().describe("Error message if content retrieval failed").optional(),
4423
+ });
4424
+ export const microsoftSearchSharepointParamsSchema = z.object({
4425
+ query: z.string().describe("The text to search for"),
4426
+ scopeUrl: z
4427
+ .string()
4428
+ .describe("A site, folder, or document library URL to restrict results to (optional — omit to search everything the user can access)")
4429
+ .optional(),
4430
+ limit: z.coerce.number().describe("Maximum number of results to return (default 25)").optional(),
4431
+ });
4432
+ export const microsoftSearchSharepointOutputSchema = z.object({
4433
+ success: z.boolean().describe("Whether the search completed successfully"),
4434
+ files: z
4435
+ .array(z.object({
4436
+ itemId: z.string().describe("The ID of the file"),
4437
+ driveId: z.string().describe("The ID of the drive containing the file").optional(),
4438
+ name: z.string().describe("The name of the file"),
4439
+ mimeType: z.string().describe("The MIME type of the file").optional(),
4440
+ webUrl: z.string().describe("The web URL of the file").optional(),
4441
+ snippet: z.string().describe("A text snippet summarizing the match").optional(),
4442
+ lastModified: z.string().describe("The last modified timestamp of the file").optional(),
4443
+ }))
4444
+ .describe("The files matching the search query")
4445
+ .optional(),
4446
+ truncated: z.boolean().describe("True if more results were available than the limit allowed").optional(),
4447
+ error: z.string().describe("The error that occurred if the search failed").optional(),
4448
+ });
4320
4449
  export const githubCreateOrUpdateFileParamsSchema = z.object({
4321
4450
  repositoryOwner: z.string().describe("The owner of the repository, this is a GitHub username"),
4322
4451
  repositoryName: z.string().describe("The name of the repository"),
@@ -0,0 +1,6 @@
1
+ import type { ActionTemplate } from "./parse.js";
2
+ export type ActionGroups = Record<string, {
3
+ description: string;
4
+ actions: ActionTemplate[];
5
+ }>;
6
+ export declare const ACTION_GROUPS: ActionGroups;