@credal/actions 0.2.126 → 0.2.128

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 (41) hide show
  1. package/dist/actions/autogen/templates.js +903 -581
  2. package/dist/actions/autogen/types.d.ts +860 -944
  3. package/dist/actions/autogen/types.js +362 -212
  4. package/dist/actions/providers/firecrawl/scrapeUrl.js +11 -4
  5. package/dist/actions/providers/github/getFileContent.js +13 -5
  6. package/dist/actions/providers/github/listDirectory.js +12 -11
  7. package/dist/actions/providers/github/listPullRequests.js +58 -30
  8. package/dist/actions/providers/github/searchOrganization.d.ts +1 -1
  9. package/dist/actions/providers/github/searchOrganization.js +26 -4
  10. package/dist/actions/providers/gitlab/getFileContent.js +15 -6
  11. package/dist/actions/providers/gitlab/listDirectory.js +10 -6
  12. package/dist/actions/providers/gitlab/searchGroup.js +84 -55
  13. package/dist/actions/providers/google-oauth/getDriveFileContentById.js +10 -1
  14. package/dist/actions/providers/google-oauth/searchDriveByKeywordsAndGetFileContent.js +12 -4
  15. package/dist/actions/providers/google-oauth/searchDriveByQueryAndGetFileContent.js +2 -1
  16. package/dist/actions/providers/jira/createJiraTicket.js +11 -3
  17. package/dist/actions/providers/jira/getJiraIssuesByQuery.js +9 -7
  18. package/dist/actions/providers/jira/getJiraTicketDetails.js +8 -1
  19. package/dist/actions/providers/jira/updateJiraTicketDetails.js +11 -2
  20. package/dist/actions/providers/jira/updateServiceDeskRequest.d.ts +3 -0
  21. package/dist/actions/providers/jira/updateServiceDeskRequest.js +72 -0
  22. package/dist/actions/providers/jira/utils.d.ts +1 -0
  23. package/dist/actions/providers/jira/utils.js +40 -0
  24. package/dist/actions/providers/salesforce/getSalesforceRecordsByQuery.js +10 -3
  25. package/dist/actions/providers/salesforce/searchSalesforceRecords.js +9 -7
  26. package/dist/actions/providers/slackUser/searchSlack.js +8 -1
  27. package/package.json +1 -1
  28. package/dist/actions/groups.d.ts +0 -6
  29. package/dist/actions/groups.js +0 -248
  30. package/dist/actions/providers/credal/callCopilot.d.ts +0 -3
  31. package/dist/actions/providers/credal/callCopilot.js +0 -36
  32. package/dist/actions/providers/math/index.d.ts +0 -1
  33. package/dist/actions/providers/math/index.js +0 -37
  34. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +0 -3
  35. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +0 -43
  36. package/dist/actions/providers/slack/archiveChannel.d.ts +0 -3
  37. package/dist/actions/providers/slack/archiveChannel.js +0 -35
  38. package/dist/actions/providers/slack/index.d.ts +0 -1
  39. package/dist/actions/providers/slack/index.js +0 -37
  40. package/dist/actions/providers/slack/listConversations.d.ts +0 -3
  41. package/dist/actions/providers/slack/listConversations.js +0 -41
@@ -782,54 +782,68 @@ export const slackUserSearchSlackDefinition = {
782
782
  description: "Hydrated search results (threads or small context windows), sorted by ts desc.",
783
783
  items: {
784
784
  type: "object",
785
- required: ["channelId", "ts"],
785
+ required: ["name", "url", "contents"],
786
786
  properties: {
787
- channelId: {
788
- type: "string",
789
- description: "Slack channel/conversation ID (C…/G…/D… or name).",
790
- },
791
- ts: {
792
- type: "string",
793
- description: "Slack message timestamp of the hit (or thread root when hydrated as thread).",
794
- },
795
- text: {
796
- type: "string",
797
- description: "Message text of the anchor (hit or thread root).",
798
- },
799
- userEmail: {
800
- type: "string",
801
- description: "User email of the anchor message’s author (if available).",
802
- },
803
- userName: {
787
+ name: {
804
788
  type: "string",
805
- description: "User name of the anchor message’s author (if available).",
789
+ description: "The name of the result",
806
790
  },
807
- permalink: {
791
+ url: {
808
792
  type: "string",
809
- description: "A Slack permalink to the anchor (message or thread root), if resolvable.",
793
+ description: "The URL of the result",
810
794
  },
811
- context: {
812
- type: "array",
813
- description: "When a hit is in a thread, this is the full thread (root first). Otherwise, a small surrounding context window (~3 before, 5 after).",
814
- items: {
815
- type: "object",
816
- required: ["ts"],
817
- properties: {
818
- ts: {
819
- type: "string",
820
- description: "Timestamp of the contextual message.",
821
- },
822
- text: {
823
- type: "string",
824
- description: "Text of the contextual message.",
825
- },
826
- userEmail: {
827
- type: "string",
828
- description: "Author user email of the contextual message.",
829
- },
830
- userName: {
831
- type: "string",
832
- description: "Author user name of the contextual message.",
795
+ contents: {
796
+ type: "object",
797
+ required: ["channelId", "ts"],
798
+ properties: {
799
+ channelId: {
800
+ type: "string",
801
+ description: "Slack channel/conversation ID (C…/G…/D… or name).",
802
+ },
803
+ ts: {
804
+ type: "string",
805
+ description: "Slack message timestamp of the hit (or thread root when hydrated as thread).",
806
+ },
807
+ text: {
808
+ type: "string",
809
+ description: "Message text of the anchor (hit or thread root).",
810
+ },
811
+ userEmail: {
812
+ type: "string",
813
+ description: "User email of the anchor message’s author (if available).",
814
+ },
815
+ userName: {
816
+ type: "string",
817
+ description: "User name of the anchor message’s author (if available).",
818
+ },
819
+ permalink: {
820
+ type: "string",
821
+ description: "A Slack permalink to the anchor (message or thread root), if resolvable.",
822
+ },
823
+ context: {
824
+ type: "array",
825
+ description: "When a hit is in a thread, this is the full thread (root first). Otherwise, a small surrounding context window (~3 before, 5 after).",
826
+ items: {
827
+ type: "object",
828
+ required: ["ts"],
829
+ properties: {
830
+ ts: {
831
+ type: "string",
832
+ description: "Timestamp of the contextual message.",
833
+ },
834
+ text: {
835
+ type: "string",
836
+ description: "Text of the contextual message.",
837
+ },
838
+ userEmail: {
839
+ type: "string",
840
+ description: "Author user email of the contextual message.",
841
+ },
842
+ userName: {
843
+ type: "string",
844
+ description: "Author user name of the contextual message.",
845
+ },
846
+ },
833
847
  },
834
848
  },
835
849
  },
@@ -1110,6 +1124,10 @@ export const jiraCreateJiraTicketDefinition = {
1110
1124
  type: "string",
1111
1125
  description: "The assignee for the new ticket creation",
1112
1126
  },
1127
+ requestTypeId: {
1128
+ type: "string",
1129
+ description: "The request type ID for Jira Service Management tickets",
1130
+ },
1113
1131
  customFields: {
1114
1132
  type: "object",
1115
1133
  description: "Custom fields to be set on the create ticket request",
@@ -1310,9 +1328,27 @@ export const jiraGetJiraTicketDetailsDefinition = {
1310
1328
  type: "string",
1311
1329
  description: "The error that occurred if the retrieval was unsuccessful",
1312
1330
  },
1313
- data: {
1314
- type: "object",
1315
- description: "The data of the Jira ticket",
1331
+ results: {
1332
+ type: "array",
1333
+ description: "The results of the Jira ticket",
1334
+ items: {
1335
+ type: "object",
1336
+ required: ["name", "url", "contents"],
1337
+ properties: {
1338
+ name: {
1339
+ type: "string",
1340
+ description: "The name of the result",
1341
+ },
1342
+ url: {
1343
+ type: "string",
1344
+ description: "The URL of the result",
1345
+ },
1346
+ contents: {
1347
+ type: "object",
1348
+ description: "The data of the Jira ticket",
1349
+ },
1350
+ },
1351
+ },
1316
1352
  },
1317
1353
  },
1318
1354
  },
@@ -1384,6 +1420,10 @@ export const jiraUpdateJiraTicketDetailsDefinition = {
1384
1420
  type: "string",
1385
1421
  description: "The updated issue type",
1386
1422
  },
1423
+ requestTypeId: {
1424
+ type: "string",
1425
+ description: "The request type ID for Jira Service Management tickets",
1426
+ },
1387
1427
  customFields: {
1388
1428
  type: "object",
1389
1429
  description: "Custom fields to be set on the update ticket request",
@@ -1471,15 +1511,24 @@ export const jiraGetJiraIssuesByQueryDefinition = {
1471
1511
  type: "boolean",
1472
1512
  description: "Whether the records were successfully retrieved",
1473
1513
  },
1474
- records: {
1475
- type: "object",
1476
- description: "The result object containing issues",
1477
- properties: {
1478
- issues: {
1479
- type: "array",
1480
- description: "The retrieved Jira issues",
1481
- items: {
1514
+ results: {
1515
+ type: "array",
1516
+ description: "The results of the Jira issues",
1517
+ items: {
1518
+ type: "object",
1519
+ required: ["name", "url", "contents"],
1520
+ properties: {
1521
+ name: {
1522
+ type: "string",
1523
+ description: "The name of the result",
1524
+ },
1525
+ url: {
1526
+ type: "string",
1527
+ description: "The URL of the result",
1528
+ },
1529
+ contents: {
1482
1530
  type: "object",
1531
+ description: "The result object containing issues",
1483
1532
  required: [
1484
1533
  "id",
1485
1534
  "key",
@@ -1751,6 +1800,10 @@ export const jiraOrgCreateJiraTicketDefinition = {
1751
1800
  type: "string",
1752
1801
  description: "The assignee for the new ticket creation",
1753
1802
  },
1803
+ requestTypeId: {
1804
+ type: "string",
1805
+ description: "The request type ID for Jira Service Management tickets",
1806
+ },
1754
1807
  customFields: {
1755
1808
  type: "object",
1756
1809
  description: "Custom fields to be set on the create ticket request",
@@ -1951,9 +2004,27 @@ export const jiraOrgGetJiraTicketDetailsDefinition = {
1951
2004
  type: "string",
1952
2005
  description: "The error that occurred if the retrieval was unsuccessful",
1953
2006
  },
1954
- data: {
1955
- type: "object",
1956
- description: "The data of the Jira ticket",
2007
+ results: {
2008
+ type: "array",
2009
+ description: "The results of the Jira ticket",
2010
+ items: {
2011
+ type: "object",
2012
+ required: ["name", "url", "contents"],
2013
+ properties: {
2014
+ name: {
2015
+ type: "string",
2016
+ description: "The name of the result",
2017
+ },
2018
+ url: {
2019
+ type: "string",
2020
+ description: "The URL of the result",
2021
+ },
2022
+ contents: {
2023
+ type: "object",
2024
+ description: "The data of the Jira ticket",
2025
+ },
2026
+ },
2027
+ },
1957
2028
  },
1958
2029
  },
1959
2030
  },
@@ -2025,6 +2096,10 @@ export const jiraOrgUpdateJiraTicketDetailsDefinition = {
2025
2096
  type: "string",
2026
2097
  description: "The updated issue type",
2027
2098
  },
2099
+ requestTypeId: {
2100
+ type: "string",
2101
+ description: "The request type ID for Jira Service Management tickets",
2102
+ },
2028
2103
  customFields: {
2029
2104
  type: "object",
2030
2105
  description: "Custom fields to be set on the update ticket request",
@@ -2112,15 +2187,24 @@ export const jiraOrgGetJiraIssuesByQueryDefinition = {
2112
2187
  type: "boolean",
2113
2188
  description: "Whether the records were successfully retrieved",
2114
2189
  },
2115
- records: {
2116
- type: "object",
2117
- description: "The result object containing issues",
2118
- properties: {
2119
- issues: {
2120
- type: "array",
2121
- description: "The retrieved Jira issues",
2122
- items: {
2190
+ results: {
2191
+ type: "array",
2192
+ description: "The results of the Jira issues",
2193
+ items: {
2194
+ type: "object",
2195
+ required: ["name", "url", "contents"],
2196
+ properties: {
2197
+ name: {
2198
+ type: "string",
2199
+ description: "The name of the result",
2200
+ },
2201
+ url: {
2202
+ type: "string",
2203
+ description: "The URL of the result",
2204
+ },
2205
+ contents: {
2123
2206
  type: "object",
2207
+ description: "The result object containing issues",
2124
2208
  required: [
2125
2209
  "id",
2126
2210
  "key",
@@ -3224,11 +3308,37 @@ export const firecrawlScrapeUrlDefinition = {
3224
3308
  },
3225
3309
  output: {
3226
3310
  type: "object",
3227
- required: ["content"],
3311
+ required: ["success"],
3228
3312
  properties: {
3229
- content: {
3313
+ success: {
3314
+ type: "boolean",
3315
+ description: "Whether the operation was successful",
3316
+ },
3317
+ error: {
3230
3318
  type: "string",
3231
- description: "The content of the URL",
3319
+ description: "Error message if the operation failed",
3320
+ },
3321
+ results: {
3322
+ type: "array",
3323
+ description: "The results of the scrape",
3324
+ items: {
3325
+ type: "object",
3326
+ required: ["name", "url", "contents"],
3327
+ properties: {
3328
+ name: {
3329
+ type: "string",
3330
+ description: "The name of the result",
3331
+ },
3332
+ url: {
3333
+ type: "string",
3334
+ description: "The URL of the result",
3335
+ },
3336
+ contents: {
3337
+ type: "string",
3338
+ description: "The content of the URL",
3339
+ },
3340
+ },
3341
+ },
3232
3342
  },
3233
3343
  },
3234
3344
  },
@@ -7205,32 +7315,47 @@ export const googleOauthSearchDriveByKeywordsAndGetFileContentDefinition = {
7205
7315
  type: "boolean",
7206
7316
  description: "Whether the search was successful",
7207
7317
  },
7208
- files: {
7318
+ results: {
7209
7319
  type: "array",
7210
7320
  description: "List of files matching the search",
7211
7321
  items: {
7212
7322
  type: "object",
7213
- required: ["id", "name", "mimeType", "url"],
7323
+ required: ["name", "url", "contents"],
7214
7324
  properties: {
7215
- id: {
7216
- type: "string",
7217
- description: "The file ID",
7218
- },
7219
7325
  name: {
7220
7326
  type: "string",
7221
- description: "The file name",
7222
- },
7223
- mimeType: {
7224
- type: "string",
7225
- description: "The MIME type of the file",
7327
+ description: "The name of the file",
7226
7328
  },
7227
7329
  url: {
7228
7330
  type: "string",
7229
- description: "The web link to view the file",
7331
+ description: "The URL of the file",
7230
7332
  },
7231
- content: {
7232
- type: "string",
7233
- description: "The data returned from the file, subject to fileSizeLimit",
7333
+ contents: {
7334
+ type: "object",
7335
+ description: "The contents of the file",
7336
+ required: ["id", "name", "mimeType", "url"],
7337
+ properties: {
7338
+ id: {
7339
+ type: "string",
7340
+ description: "The file ID",
7341
+ },
7342
+ name: {
7343
+ type: "string",
7344
+ description: "The file name",
7345
+ },
7346
+ mimeType: {
7347
+ type: "string",
7348
+ description: "The MIME type of the file",
7349
+ },
7350
+ url: {
7351
+ type: "string",
7352
+ description: "The web link to view the file",
7353
+ },
7354
+ content: {
7355
+ type: "string",
7356
+ description: "The data returned from the file, subject to fileSizeLimit",
7357
+ },
7358
+ },
7234
7359
  },
7235
7360
  },
7236
7361
  },
@@ -7353,17 +7478,41 @@ export const googleOauthGetDriveFileContentByIdDefinition = {
7353
7478
  type: "boolean",
7354
7479
  description: "Whether the file content was retrieved successfully",
7355
7480
  },
7356
- content: {
7357
- type: "string",
7358
- description: "The content of the file",
7359
- },
7360
- fileName: {
7361
- type: "string",
7362
- description: "The name of the file",
7363
- },
7364
- fileLength: {
7365
- type: "number",
7366
- description: "The length of the file content prior to truncating",
7481
+ results: {
7482
+ type: "array",
7483
+ description: "The results of the file content",
7484
+ items: {
7485
+ type: "object",
7486
+ required: ["name", "url", "contents"],
7487
+ properties: {
7488
+ name: {
7489
+ type: "string",
7490
+ description: "The name of the file",
7491
+ },
7492
+ url: {
7493
+ type: "string",
7494
+ description: "The URL of the file",
7495
+ },
7496
+ contents: {
7497
+ type: "object",
7498
+ description: "The contents of the file",
7499
+ properties: {
7500
+ content: {
7501
+ type: "string",
7502
+ description: "The content of the file",
7503
+ },
7504
+ fileName: {
7505
+ type: "string",
7506
+ description: "The name of the file",
7507
+ },
7508
+ fileLength: {
7509
+ type: "number",
7510
+ description: "The length of the file content prior to truncating",
7511
+ },
7512
+ },
7513
+ },
7514
+ },
7515
+ },
7367
7516
  },
7368
7517
  error: {
7369
7518
  type: "string",
@@ -9877,32 +10026,46 @@ export const salesforceSearchSalesforceRecordsDefinition = {
9877
10026
  type: "boolean",
9878
10027
  description: "Whether the records were successfully retrieved",
9879
10028
  },
9880
- searchRecords: {
10029
+ results: {
9881
10030
  type: "array",
9882
10031
  description: "The records that match the search",
9883
10032
  items: {
9884
10033
  type: "object",
9885
10034
  description: "A record from Salesforce",
9886
10035
  properties: {
9887
- id: {
10036
+ name: {
10037
+ type: "string",
10038
+ description: "The name of the record",
10039
+ },
10040
+ url: {
9888
10041
  type: "string",
9889
- description: "The Salesforce record ID",
10042
+ description: "The URL of the record",
9890
10043
  },
9891
- attributes: {
10044
+ contents: {
9892
10045
  type: "object",
9893
- description: "Metadata about the Salesforce record",
10046
+ description: "The contents of the record",
9894
10047
  properties: {
9895
- type: {
10048
+ id: {
9896
10049
  type: "string",
9897
- description: "The Salesforce object type",
10050
+ description: "The Salesforce record ID",
9898
10051
  },
9899
- url: {
9900
- type: "string",
9901
- description: "The Salesforce record URL",
10052
+ attributes: {
10053
+ type: "object",
10054
+ description: "Metadata about the Salesforce record",
10055
+ properties: {
10056
+ type: {
10057
+ type: "string",
10058
+ description: "The Salesforce object type",
10059
+ },
10060
+ url: {
10061
+ type: "string",
10062
+ description: "The Salesforce record URL",
10063
+ },
10064
+ },
10065
+ required: ["type", "url"],
10066
+ additionalProperties: true,
9902
10067
  },
9903
10068
  },
9904
- required: ["type", "url"],
9905
- additionalProperties: true,
9906
10069
  },
9907
10070
  },
9908
10071
  },
@@ -9941,14 +10104,24 @@ export const salesforceGetSalesforceRecordsByQueryDefinition = {
9941
10104
  type: "boolean",
9942
10105
  description: "Whether the records were successfully retrieved",
9943
10106
  },
9944
- records: {
10107
+ results: {
9945
10108
  type: "array",
9946
- description: "The retrieved records",
9947
- items: {
9948
- type: "object",
9949
- description: "A record from Salesforce",
9950
- additionalProperties: {
10109
+ description: "Array of standardized results objects",
10110
+ properties: {
10111
+ name: {
10112
+ type: "string",
10113
+ description: "The name of the record",
10114
+ },
10115
+ url: {
9951
10116
  type: "string",
10117
+ description: "The url of the record",
10118
+ },
10119
+ contents: {
10120
+ type: "object",
10121
+ description: "A record from Salesforce",
10122
+ additionalProperties: {
10123
+ type: "string",
10124
+ },
9952
10125
  },
9953
10126
  },
9954
10127
  },
@@ -10491,51 +10664,72 @@ export const githubListPullRequestsDefinition = {
10491
10664
  },
10492
10665
  output: {
10493
10666
  type: "object",
10494
- required: ["pullRequests"],
10667
+ required: ["success"],
10495
10668
  properties: {
10496
- pullRequests: {
10669
+ success: {
10670
+ type: "boolean",
10671
+ description: "Whether the operation was successful",
10672
+ },
10673
+ error: {
10674
+ type: "string",
10675
+ description: "The error that occurred if the operation was not successful",
10676
+ },
10677
+ results: {
10497
10678
  type: "array",
10498
10679
  description: "A list of pull requests in the repository",
10499
10680
  items: {
10500
10681
  type: "object",
10501
10682
  properties: {
10502
- number: {
10503
- type: "number",
10504
- description: "The number of the pull request",
10505
- },
10506
- title: {
10683
+ name: {
10507
10684
  type: "string",
10508
10685
  description: "The title of the pull request",
10509
10686
  },
10510
- state: {
10511
- type: "string",
10512
- description: "The state of the pull request (e.g., open, closed)",
10513
- },
10514
10687
  url: {
10515
10688
  type: "string",
10516
10689
  description: "The URL of the pull request",
10517
10690
  },
10518
- createdAt: {
10519
- type: "string",
10520
- description: "The date and time when the pull request was created",
10521
- },
10522
- updatedAt: {
10523
- type: "string",
10524
- description: "The date and time when the pull request was last updated",
10525
- },
10526
- user: {
10691
+ contents: {
10527
10692
  type: "object",
10528
10693
  properties: {
10529
- login: {
10694
+ number: {
10695
+ type: "number",
10696
+ description: "The number of the pull request",
10697
+ },
10698
+ title: {
10699
+ type: "string",
10700
+ description: "The title of the pull request",
10701
+ },
10702
+ state: {
10703
+ type: "string",
10704
+ description: "The state of the pull request (e.g., open, closed)",
10705
+ },
10706
+ url: {
10707
+ type: "string",
10708
+ description: "The URL of the pull request",
10709
+ },
10710
+ createdAt: {
10711
+ type: "string",
10712
+ description: "The date and time when the pull request was created",
10713
+ },
10714
+ updatedAt: {
10715
+ type: "string",
10716
+ description: "The date and time when the pull request was last updated",
10717
+ },
10718
+ user: {
10719
+ type: "object",
10720
+ properties: {
10721
+ login: {
10722
+ type: "string",
10723
+ description: "The username of the user who created the pull request",
10724
+ },
10725
+ },
10726
+ },
10727
+ description: {
10530
10728
  type: "string",
10531
- description: "The username of the user who created the pull request",
10729
+ description: "The description of the pull request",
10532
10730
  },
10533
10731
  },
10534
10732
  },
10535
- description: {
10536
- type: "string",
10537
- description: "The description of the pull request",
10538
- },
10539
10733
  },
10540
10734
  },
10541
10735
  },
@@ -10854,21 +11048,43 @@ export const githubGetFileContentDefinition = {
10854
11048
  type: "string",
10855
11049
  description: "The error that occurred if the operation was not successful",
10856
11050
  },
10857
- content: {
10858
- type: "string",
10859
- description: "The decoded file content as a string",
10860
- },
10861
- size: {
10862
- type: "number",
10863
- description: "The size of the file in bytes",
10864
- },
10865
- name: {
10866
- type: "string",
10867
- description: "The name of the file",
10868
- },
10869
- htmlUrl: {
10870
- type: "string",
10871
- description: "The URL of the file in the Github UI",
11051
+ results: {
11052
+ type: "array",
11053
+ description: "A list of Github files",
11054
+ items: {
11055
+ type: "object",
11056
+ properties: {
11057
+ name: {
11058
+ type: "string",
11059
+ description: "The name of the file",
11060
+ },
11061
+ url: {
11062
+ type: "string",
11063
+ description: "The URL of the file in the Github UI",
11064
+ },
11065
+ contents: {
11066
+ type: "object",
11067
+ properties: {
11068
+ content: {
11069
+ type: "string",
11070
+ description: "The decoded file content as a string",
11071
+ },
11072
+ size: {
11073
+ type: "number",
11074
+ description: "The size of the file in bytes",
11075
+ },
11076
+ name: {
11077
+ type: "string",
11078
+ description: "The name of the file",
11079
+ },
11080
+ htmlUrl: {
11081
+ type: "string",
11082
+ description: "The URL of the file in the Github UI",
11083
+ },
11084
+ },
11085
+ },
11086
+ },
11087
+ },
10872
11088
  },
10873
11089
  },
10874
11090
  },
@@ -10908,33 +11124,40 @@ export const githubListDirectoryDefinition = {
10908
11124
  type: "string",
10909
11125
  description: "Error message if the operation failed",
10910
11126
  },
10911
- content: {
11127
+ results: {
10912
11128
  type: "array",
10913
11129
  description: "Array of directory contents",
10914
11130
  items: {
10915
11131
  type: "object",
10916
- required: ["name", "path", "type", "size", "htmlUrl"],
11132
+ required: ["name", "url", "contents"],
10917
11133
  properties: {
10918
11134
  name: {
10919
11135
  type: "string",
10920
11136
  description: "The name of the file",
10921
11137
  },
10922
- path: {
10923
- type: "string",
10924
- description: "The path of the file",
10925
- },
10926
- type: {
10927
- type: "string",
10928
- description: "The type of the file",
10929
- },
10930
- size: {
10931
- type: "number",
10932
- description: "The size of the file in bytes",
10933
- },
10934
- htmlUrl: {
11138
+ url: {
10935
11139
  type: "string",
10936
11140
  description: "The URL of the file in the Github UI",
10937
11141
  },
11142
+ contents: {
11143
+ type: "object",
11144
+ required: ["path", "type", "size"],
11145
+ description: "The contents of the file",
11146
+ properties: {
11147
+ path: {
11148
+ type: "string",
11149
+ description: "The path of the file",
11150
+ },
11151
+ type: {
11152
+ type: "string",
11153
+ description: "The type of the file",
11154
+ },
11155
+ size: {
11156
+ type: "number",
11157
+ description: "The size of the file in bytes",
11158
+ },
11159
+ },
11160
+ },
10938
11161
  },
10939
11162
  },
10940
11163
  },
@@ -11201,209 +11424,235 @@ export const githubSearchOrganizationDefinition = {
11201
11424
  },
11202
11425
  output: {
11203
11426
  type: "object",
11204
- required: ["code", "commits", "issuesAndPullRequests"],
11427
+ required: ["success"],
11205
11428
  properties: {
11206
- code: {
11429
+ success: {
11430
+ type: "boolean",
11431
+ description: "Whether the operation was successful",
11432
+ },
11433
+ error: {
11434
+ type: "string",
11435
+ description: "Error message if the operation failed",
11436
+ },
11437
+ results: {
11207
11438
  type: "array",
11208
- description: "A list of code results that match the query",
11439
+ description: "Array of search results",
11209
11440
  items: {
11210
11441
  type: "object",
11211
- required: ["name", "path", "sha", "url", "score", "textMatches"],
11442
+ required: ["name", "url", "type", "content"],
11212
11443
  properties: {
11213
11444
  name: {
11214
11445
  type: "string",
11215
- description: "The name of the file that had a match",
11216
- },
11217
- path: {
11218
- type: "string",
11219
- description: "The path of the file that had a match",
11220
- },
11221
- sha: {
11222
- type: "string",
11223
- description: "The SHA of the commit that had a match",
11446
+ description: "The name of the result (file name, commit SHA, or issue/PR title)",
11224
11447
  },
11225
11448
  url: {
11226
11449
  type: "string",
11227
- description: "The URL of the file that had a match",
11228
- },
11229
- score: {
11230
- type: "number",
11231
- description: "The similarity score of the match",
11232
- },
11233
- textMatches: {
11234
- type: "array",
11235
- description: "A list of text matches that match the query",
11236
- items: {
11237
- type: "object",
11238
- required: ["matches"],
11239
- properties: {
11240
- object_url: {
11241
- type: "string",
11242
- description: "The URL of the object that had a match",
11243
- },
11244
- object_type: {
11245
- type: "string",
11246
- description: "The type of the object that had a match",
11247
- },
11248
- fragment: {
11249
- type: "string",
11250
- description: "The fragment of the text that had a match",
11251
- },
11252
- matches: {
11253
- type: "array",
11254
- description: "A list of matches that match the query",
11255
- items: {
11256
- type: "object",
11257
- properties: {
11258
- text: {
11259
- type: "string",
11260
- description: "The text that had a match",
11261
- },
11262
- indices: {
11263
- type: "array",
11264
- description: "The indices of the text that had a match",
11265
- items: {
11266
- type: "number",
11267
- },
11268
- },
11269
- },
11270
- },
11271
- },
11272
- },
11273
- },
11274
- },
11275
- },
11276
- },
11277
- },
11278
- commits: {
11279
- type: "array",
11280
- description: "A list of commits that match the query",
11281
- items: {
11282
- type: "object",
11283
- required: ["sha", "url", "message", "author", "committer", "parents", "tree", "commitDate"],
11284
- properties: {
11285
- sha: {
11286
- type: "string",
11287
- description: "The SHA of the commit that had a match",
11450
+ description: "The URL of the result",
11288
11451
  },
11289
- url: {
11452
+ type: {
11290
11453
  type: "string",
11291
- description: "The URL of the commit that had a match",
11454
+ enum: ["code", "commit", "issueOrPullRequest"],
11455
+ description: "The type of the result",
11292
11456
  },
11293
- commit: {
11294
- type: "object",
11295
- required: ["message", "author", "score", "files"],
11296
- properties: {
11297
- author: {
11457
+ content: {
11458
+ oneOf: [
11459
+ {
11298
11460
  type: "object",
11299
- required: ["name", "email", "date"],
11461
+ description: "Code result content",
11462
+ required: ["name", "path", "sha", "url", "score", "textMatches"],
11300
11463
  properties: {
11301
11464
  name: {
11302
11465
  type: "string",
11303
- description: "The name of the author",
11466
+ description: "The name of the file that had a match",
11304
11467
  },
11305
- email: {
11468
+ path: {
11306
11469
  type: "string",
11307
- description: "The email of the author",
11470
+ description: "The path of the file that had a match",
11308
11471
  },
11309
- date: {
11472
+ sha: {
11310
11473
  type: "string",
11311
- description: "The date of the commit",
11474
+ description: "The SHA of the commit that had a match",
11312
11475
  },
11313
- },
11314
- },
11315
- message: {
11316
- type: "string",
11317
- description: "The message of the commit",
11318
- },
11319
- },
11320
- score: {
11321
- type: "number",
11322
- description: "The score of the commit",
11323
- },
11324
- files: {
11325
- type: "array",
11326
- description: "A list of files that match the query",
11327
- items: {
11328
- type: "object",
11329
- required: ["filename", "status", "patch"],
11330
- properties: {
11331
- filename: {
11476
+ url: {
11332
11477
  type: "string",
11333
- description: "The filename of the file",
11478
+ description: "The URL of the file that had a match",
11334
11479
  },
11335
- status: {
11336
- type: "string",
11337
- description: "The status of the file",
11480
+ score: {
11481
+ type: "number",
11482
+ description: "The similarity score of the match",
11338
11483
  },
11339
- patch: {
11340
- type: "string",
11341
- description: "The patch of the file",
11484
+ textMatches: {
11485
+ type: "array",
11486
+ description: "A list of text matches that match the query",
11487
+ items: {
11488
+ type: "object",
11489
+ required: ["matches"],
11490
+ properties: {
11491
+ object_url: {
11492
+ type: "string",
11493
+ description: "The URL of the object that had a match",
11494
+ },
11495
+ object_type: {
11496
+ type: "string",
11497
+ description: "The type of the object that had a match",
11498
+ },
11499
+ fragment: {
11500
+ type: "string",
11501
+ description: "The fragment of the text that had a match",
11502
+ },
11503
+ matches: {
11504
+ type: "array",
11505
+ description: "A list of matches that match the query",
11506
+ items: {
11507
+ type: "object",
11508
+ properties: {
11509
+ text: {
11510
+ type: "string",
11511
+ description: "The text that had a match",
11512
+ },
11513
+ indices: {
11514
+ type: "array",
11515
+ description: "The indices of the text that had a match",
11516
+ items: {
11517
+ type: "number",
11518
+ },
11519
+ },
11520
+ },
11521
+ },
11522
+ },
11523
+ },
11524
+ },
11342
11525
  },
11343
11526
  },
11344
11527
  },
11345
- },
11346
- },
11347
- },
11348
- },
11349
- },
11350
- issuesAndPullRequests: {
11351
- type: "array",
11352
- description: "A list of issues and pull requests that match the query",
11353
- items: {
11354
- type: "object",
11355
- required: ["title", "url", "state", "createdAt", "updatedAt", "user"],
11356
- properties: {
11357
- number: {
11358
- type: "number",
11359
- description: "The number of the issue or pull request",
11360
- },
11361
- title: {
11362
- type: "string",
11363
- description: "The title of the issue or pull request",
11364
- },
11365
- html_url: {
11366
- type: "string",
11367
- description: "The URL of the issue or pull request",
11368
- },
11369
- state: {
11370
- type: "string",
11371
- description: "The state of the issue or pull request",
11372
- enum: ["open", "closed"],
11373
- },
11374
- isPullRequest: {
11375
- type: "boolean",
11376
- description: "Whether the issue or pull request is a pull request",
11377
- },
11378
- body: {
11379
- type: "string",
11380
- description: "The body of the issue or pull request",
11381
- },
11382
- score: {
11383
- type: "number",
11384
- description: "The score of the issue or pull request",
11385
- },
11386
- files: {
11387
- type: "array",
11388
- description: "A list of files that match the query",
11389
- items: {
11390
- type: "object",
11391
- required: ["filename", "status"],
11392
- properties: {
11393
- filename: {
11394
- type: "string",
11395
- description: "The filename of the file",
11396
- },
11397
- status: {
11398
- type: "string",
11399
- description: "The status of the file",
11528
+ {
11529
+ type: "object",
11530
+ description: "Commit result content",
11531
+ required: ["sha", "url", "message", "author", "committer", "parents", "tree", "commitDate"],
11532
+ properties: {
11533
+ sha: {
11534
+ type: "string",
11535
+ description: "The SHA of the commit that had a match",
11536
+ },
11537
+ url: {
11538
+ type: "string",
11539
+ description: "The URL of the commit that had a match",
11540
+ },
11541
+ commit: {
11542
+ type: "object",
11543
+ required: ["message", "author", "score", "files"],
11544
+ properties: {
11545
+ author: {
11546
+ type: "object",
11547
+ required: ["name", "email", "date"],
11548
+ properties: {
11549
+ name: {
11550
+ type: "string",
11551
+ description: "The name of the author",
11552
+ },
11553
+ email: {
11554
+ type: "string",
11555
+ description: "The email of the author",
11556
+ },
11557
+ date: {
11558
+ type: "string",
11559
+ description: "The date of the commit",
11560
+ },
11561
+ },
11562
+ },
11563
+ message: {
11564
+ type: "string",
11565
+ description: "The message of the commit",
11566
+ },
11567
+ },
11568
+ score: {
11569
+ type: "number",
11570
+ description: "The score of the commit",
11571
+ },
11572
+ files: {
11573
+ type: "array",
11574
+ description: "A list of files that match the query",
11575
+ items: {
11576
+ type: "object",
11577
+ required: ["filename", "status", "patch"],
11578
+ properties: {
11579
+ filename: {
11580
+ type: "string",
11581
+ description: "The filename of the file",
11582
+ },
11583
+ status: {
11584
+ type: "string",
11585
+ description: "The status of the file",
11586
+ },
11587
+ patch: {
11588
+ type: "string",
11589
+ description: "The patch of the file",
11590
+ },
11591
+ },
11592
+ },
11593
+ },
11594
+ },
11400
11595
  },
11401
- patch: {
11402
- type: "string",
11403
- description: "The patch of the file",
11596
+ },
11597
+ {
11598
+ type: "object",
11599
+ description: "Issue or pull request result content",
11600
+ required: ["title", "url", "state", "createdAt", "updatedAt", "user"],
11601
+ properties: {
11602
+ number: {
11603
+ type: "number",
11604
+ description: "The number of the issue or pull request",
11605
+ },
11606
+ title: {
11607
+ type: "string",
11608
+ description: "The title of the issue or pull request",
11609
+ },
11610
+ html_url: {
11611
+ type: "string",
11612
+ description: "The URL of the issue or pull request",
11613
+ },
11614
+ state: {
11615
+ type: "string",
11616
+ description: "The state of the issue or pull request",
11617
+ enum: ["open", "closed"],
11618
+ },
11619
+ isPullRequest: {
11620
+ type: "boolean",
11621
+ description: "Whether the issue or pull request is a pull request",
11622
+ },
11623
+ body: {
11624
+ type: "string",
11625
+ description: "The body of the issue or pull request",
11626
+ },
11627
+ score: {
11628
+ type: "number",
11629
+ description: "The score of the issue or pull request",
11630
+ },
11631
+ files: {
11632
+ type: "array",
11633
+ description: "A list of files that match the query",
11634
+ items: {
11635
+ type: "object",
11636
+ required: ["filename", "status"],
11637
+ properties: {
11638
+ filename: {
11639
+ type: "string",
11640
+ description: "The filename of the file",
11641
+ },
11642
+ status: {
11643
+ type: "string",
11644
+ description: "The status of the file",
11645
+ },
11646
+ patch: {
11647
+ type: "string",
11648
+ description: "The patch of the file",
11649
+ },
11650
+ },
11651
+ },
11652
+ },
11404
11653
  },
11405
11654
  },
11406
- },
11655
+ ],
11407
11656
  },
11408
11657
  },
11409
11658
  },
@@ -12065,233 +12314,259 @@ export const gitlabSearchGroupDefinition = {
12065
12314
  },
12066
12315
  output: {
12067
12316
  type: "object",
12068
- required: ["mergeRequests", "blobs"],
12317
+ required: ["success"],
12069
12318
  properties: {
12070
- mergeRequests: {
12071
- type: "array",
12072
- description: "A list of merge requests that match the query",
12073
- items: {
12074
- type: "object",
12075
- required: ["metadata", "diffs"],
12076
- properties: {
12077
- metadata: {
12078
- type: "object",
12079
- required: ["id", "iid", "project_id", "title", "web_url"],
12080
- description: "The metadata of the merge request",
12081
- properties: {
12082
- id: {
12083
- type: "number",
12084
- description: "The ID of the merge request",
12085
- },
12086
- iid: {
12087
- type: "number",
12088
- description: "The internal ID of the merge request",
12089
- },
12090
- project_id: {
12091
- type: "number",
12092
- description: "The ID of the project the merge request belongs to",
12093
- },
12094
- title: {
12095
- type: "string",
12096
- description: "The title of the merge request",
12097
- },
12098
- web_url: {
12099
- type: "string",
12100
- description: "The URL of the merge request",
12101
- },
12102
- description: {
12103
- type: "string",
12104
- description: "The description of the merge request",
12105
- },
12106
- author: {
12107
- type: "object",
12108
- description: "The author of the merge request",
12109
- properties: {
12110
- name: {
12111
- type: "string",
12112
- description: "The name of the author",
12113
- },
12114
- },
12115
- },
12116
- merged_at: {
12117
- type: "string",
12118
- description: "The date and time the merge request was merged",
12119
- },
12120
- },
12121
- },
12122
- diffs: {
12123
- type: "array",
12124
- description: "A list of diffs that match the query",
12125
- items: {
12126
- type: "object",
12127
- required: ["old_path", "new_path", "diff", "new_file", "renamed_file", "deleted_file"],
12128
- properties: {
12129
- old_path: {
12130
- type: "string",
12131
- description: "The old path of the diff",
12132
- },
12133
- new_path: {
12134
- type: "string",
12135
- description: "The new path of the diff",
12136
- },
12137
- diff: {
12138
- type: "string",
12139
- description: "The contents of the diff",
12140
- },
12141
- new_file: {
12142
- type: "boolean",
12143
- description: "Whether the diff is a new file",
12144
- },
12145
- renamed_file: {
12146
- type: "boolean",
12147
- description: "Whether the diff is a renamed file",
12148
- },
12149
- deleted_file: {
12150
- type: "boolean",
12151
- description: "Whether the diff is a deleted file",
12152
- },
12153
- too_large: {
12154
- type: "boolean",
12155
- description: "Whether the diff is too large",
12156
- },
12157
- },
12158
- },
12159
- },
12160
- },
12161
- },
12319
+ success: {
12320
+ type: "boolean",
12321
+ description: "Whether the search operation was successful",
12162
12322
  },
12163
- blobs: {
12164
- type: "array",
12165
- description: "A list of blobs that match the query",
12166
- items: {
12167
- type: "object",
12168
- required: ["metadata", "diffs"],
12169
- properties: {
12170
- metadata: {
12171
- type: "object",
12172
- required: ["path", "basename", "data", "project_id", "ref", "startline", "filename", "web_url"],
12173
- properties: {
12174
- path: {
12175
- type: "string",
12176
- description: "The path of the blob",
12177
- },
12178
- basename: {
12179
- type: "string",
12180
- description: "The basename of the blob",
12181
- },
12182
- data: {
12183
- type: "string",
12184
- description: "The data of the blob",
12185
- },
12186
- project_id: {
12187
- type: "number",
12188
- description: "The ID of the project the blob belongs to",
12189
- },
12190
- ref: {
12191
- type: "string",
12192
- description: "The ref of the blob",
12193
- },
12194
- startline: {
12195
- type: "number",
12196
- description: "The start line of the blob",
12197
- },
12198
- filename: {
12199
- type: "string",
12200
- description: "The filename of the blob",
12201
- },
12202
- web_url: {
12203
- type: "string",
12204
- description: "The URL of the blob",
12205
- },
12206
- },
12207
- },
12208
- matchedMergeRequests: {
12209
- type: "array",
12210
- description: "A list of merge requests that match the blob",
12211
- items: {
12212
- type: "object",
12213
- required: ["title", "web_url"],
12214
- properties: {
12215
- title: {
12216
- type: "string",
12217
- description: "The title of the merge request",
12218
- },
12219
- web_url: {
12220
- type: "string",
12221
- description: "The URL of the merge request",
12222
- },
12223
- author: {
12224
- type: "object",
12225
- description: "The author of the merge request",
12226
- },
12227
- merged_at: {
12228
- type: "string",
12229
- description: "The date and time the merge request was merged",
12230
- },
12231
- },
12232
- },
12233
- },
12234
- },
12235
- },
12323
+ error: {
12324
+ type: "string",
12325
+ description: "Error message if the search operation failed",
12236
12326
  },
12237
- commits: {
12327
+ results: {
12238
12328
  type: "array",
12239
- description: "A list of commits that match the query",
12329
+ description: "A list of search results that match the query",
12240
12330
  items: {
12241
12331
  type: "object",
12242
- required: ["sha", "web_url", "message", "author", "created_at", "files"],
12332
+ required: ["name", "url", "type", "contents"],
12243
12333
  properties: {
12244
- sha: {
12245
- type: "string",
12246
- description: "The commit SHA",
12247
- },
12248
- web_url: {
12334
+ name: {
12249
12335
  type: "string",
12250
- description: "The URL to view the commit in GitLab",
12336
+ description: "The name/title of the search result",
12251
12337
  },
12252
- message: {
12338
+ url: {
12253
12339
  type: "string",
12254
- description: "The full commit message",
12340
+ description: "The URL to view the result in GitLab",
12255
12341
  },
12256
- author: {
12257
- type: "object",
12258
- required: ["name", "email"],
12259
- properties: {
12260
- name: {
12261
- type: "string",
12262
- description: "The name of the commit author",
12263
- },
12264
- email: {
12265
- type: "string",
12266
- description: "The email of the commit author",
12267
- },
12268
- },
12269
- },
12270
- created_at: {
12342
+ type: {
12271
12343
  type: "string",
12272
- description: "The date/time the commit was created",
12344
+ enum: ["mergeRequest", "blob", "commit"],
12345
+ description: "The type of search result",
12273
12346
  },
12274
- files: {
12275
- type: "array",
12276
- description: "A list of files changed in the commit",
12277
- items: {
12278
- type: "object",
12279
- required: ["old_path", "new_path", "diff"],
12280
- properties: {
12281
- old_path: {
12282
- type: "string",
12283
- description: "The old path of the file",
12347
+ contents: {
12348
+ oneOf: [
12349
+ {
12350
+ type: "object",
12351
+ description: "Merge request contents",
12352
+ required: ["metadata", "diffs"],
12353
+ properties: {
12354
+ metadata: {
12355
+ type: "object",
12356
+ required: ["id", "iid", "project_id", "title", "web_url"],
12357
+ description: "The metadata of the merge request",
12358
+ properties: {
12359
+ id: {
12360
+ type: "number",
12361
+ description: "The ID of the merge request",
12362
+ },
12363
+ iid: {
12364
+ type: "number",
12365
+ description: "The internal ID of the merge request",
12366
+ },
12367
+ project_id: {
12368
+ type: "number",
12369
+ description: "The ID of the project the merge request belongs to",
12370
+ },
12371
+ title: {
12372
+ type: "string",
12373
+ description: "The title of the merge request",
12374
+ },
12375
+ web_url: {
12376
+ type: "string",
12377
+ description: "The URL of the merge request",
12378
+ },
12379
+ description: {
12380
+ type: "string",
12381
+ description: "The description of the merge request",
12382
+ },
12383
+ author: {
12384
+ type: "object",
12385
+ description: "The author of the merge request",
12386
+ properties: {
12387
+ name: {
12388
+ type: "string",
12389
+ description: "The name of the author",
12390
+ },
12391
+ },
12392
+ },
12393
+ merged_at: {
12394
+ type: "string",
12395
+ description: "The date and time the merge request was merged",
12396
+ },
12397
+ },
12398
+ },
12399
+ diffs: {
12400
+ type: "array",
12401
+ description: "A list of diffs that match the query",
12402
+ items: {
12403
+ type: "object",
12404
+ required: ["old_path", "new_path", "diff", "new_file", "renamed_file", "deleted_file"],
12405
+ properties: {
12406
+ old_path: {
12407
+ type: "string",
12408
+ description: "The old path of the diff",
12409
+ },
12410
+ new_path: {
12411
+ type: "string",
12412
+ description: "The new path of the diff",
12413
+ },
12414
+ diff: {
12415
+ type: "string",
12416
+ description: "The contents of the diff",
12417
+ },
12418
+ new_file: {
12419
+ type: "boolean",
12420
+ description: "Whether the diff is a new file",
12421
+ },
12422
+ renamed_file: {
12423
+ type: "boolean",
12424
+ description: "Whether the diff is a renamed file",
12425
+ },
12426
+ deleted_file: {
12427
+ type: "boolean",
12428
+ description: "Whether the diff is a deleted file",
12429
+ },
12430
+ too_large: {
12431
+ type: "boolean",
12432
+ description: "Whether the diff is too large",
12433
+ },
12434
+ },
12435
+ },
12436
+ },
12284
12437
  },
12285
- new_path: {
12286
- type: "string",
12287
- description: "The new path of the file",
12438
+ },
12439
+ {
12440
+ type: "object",
12441
+ description: "Blob contents",
12442
+ required: ["metadata", "matchedMergeRequests"],
12443
+ properties: {
12444
+ metadata: {
12445
+ type: "object",
12446
+ required: ["path", "basename", "data", "project_id", "ref", "startline", "filename", "web_url"],
12447
+ properties: {
12448
+ path: {
12449
+ type: "string",
12450
+ description: "The path of the blob",
12451
+ },
12452
+ basename: {
12453
+ type: "string",
12454
+ description: "The basename of the blob",
12455
+ },
12456
+ data: {
12457
+ type: "string",
12458
+ description: "The data of the blob",
12459
+ },
12460
+ project_id: {
12461
+ type: "number",
12462
+ description: "The ID of the project the blob belongs to",
12463
+ },
12464
+ ref: {
12465
+ type: "string",
12466
+ description: "The ref of the blob",
12467
+ },
12468
+ startline: {
12469
+ type: "number",
12470
+ description: "The start line of the blob",
12471
+ },
12472
+ filename: {
12473
+ type: "string",
12474
+ description: "The filename of the blob",
12475
+ },
12476
+ web_url: {
12477
+ type: "string",
12478
+ description: "The URL of the blob",
12479
+ },
12480
+ },
12481
+ },
12482
+ matchedMergeRequests: {
12483
+ type: "array",
12484
+ description: "A list of merge requests that match the blob",
12485
+ items: {
12486
+ type: "object",
12487
+ required: ["title", "web_url"],
12488
+ properties: {
12489
+ title: {
12490
+ type: "string",
12491
+ description: "The title of the merge request",
12492
+ },
12493
+ web_url: {
12494
+ type: "string",
12495
+ description: "The URL of the merge request",
12496
+ },
12497
+ author: {
12498
+ type: "object",
12499
+ description: "The author of the merge request",
12500
+ },
12501
+ merged_at: {
12502
+ type: "string",
12503
+ description: "The date and time the merge request was merged",
12504
+ },
12505
+ },
12506
+ },
12507
+ },
12288
12508
  },
12289
- diff: {
12290
- type: "string",
12291
- description: "The diff contents for the file",
12509
+ },
12510
+ {
12511
+ type: "object",
12512
+ description: "Commit contents",
12513
+ required: ["sha", "web_url", "message", "author", "created_at", "files"],
12514
+ properties: {
12515
+ sha: {
12516
+ type: "string",
12517
+ description: "The commit SHA",
12518
+ },
12519
+ web_url: {
12520
+ type: "string",
12521
+ description: "The URL to view the commit in GitLab",
12522
+ },
12523
+ message: {
12524
+ type: "string",
12525
+ description: "The full commit message",
12526
+ },
12527
+ author: {
12528
+ type: "object",
12529
+ required: ["name", "email"],
12530
+ properties: {
12531
+ name: {
12532
+ type: "string",
12533
+ description: "The name of the commit author",
12534
+ },
12535
+ email: {
12536
+ type: "string",
12537
+ description: "The email of the commit author",
12538
+ },
12539
+ },
12540
+ },
12541
+ created_at: {
12542
+ type: "string",
12543
+ description: "The date/time the commit was created",
12544
+ },
12545
+ files: {
12546
+ type: "array",
12547
+ description: "A list of files changed in the commit",
12548
+ items: {
12549
+ type: "object",
12550
+ required: ["old_path", "new_path", "diff"],
12551
+ properties: {
12552
+ old_path: {
12553
+ type: "string",
12554
+ description: "The old path of the file",
12555
+ },
12556
+ new_path: {
12557
+ type: "string",
12558
+ description: "The new path of the file",
12559
+ },
12560
+ diff: {
12561
+ type: "string",
12562
+ description: "The diff contents for the file",
12563
+ },
12564
+ },
12565
+ },
12566
+ },
12292
12567
  },
12293
12568
  },
12294
- },
12569
+ ],
12295
12570
  },
12296
12571
  },
12297
12572
  },
@@ -12334,21 +12609,45 @@ export const gitlabGetFileContentDefinition = {
12334
12609
  type: "string",
12335
12610
  description: "The error that occurred if the operation was not successful",
12336
12611
  },
12337
- content: {
12338
- type: "string",
12339
- description: "The decoded file content as a string",
12340
- },
12341
- size: {
12342
- type: "number",
12343
- description: "The size of the file in bytes",
12344
- },
12345
- name: {
12346
- type: "string",
12347
- description: "The name of the file",
12348
- },
12349
- htmlUrl: {
12350
- type: "string",
12351
- description: "The URL of the file in the GitLab UI",
12612
+ results: {
12613
+ type: "array",
12614
+ description: "The results of the file content",
12615
+ items: {
12616
+ type: "object",
12617
+ required: ["name", "url", "contents"],
12618
+ properties: {
12619
+ name: {
12620
+ type: "string",
12621
+ description: "The name of the file",
12622
+ },
12623
+ url: {
12624
+ type: "string",
12625
+ description: "The url of the file",
12626
+ },
12627
+ contents: {
12628
+ type: "object",
12629
+ required: ["content", "size", "name", "htmlUrl"],
12630
+ properties: {
12631
+ content: {
12632
+ type: "string",
12633
+ description: "The decoded file content as a string",
12634
+ },
12635
+ size: {
12636
+ type: "number",
12637
+ description: "The size of the file in bytes",
12638
+ },
12639
+ name: {
12640
+ type: "string",
12641
+ description: "The name of the file",
12642
+ },
12643
+ htmlUrl: {
12644
+ type: "string",
12645
+ description: "The URL of the file in the GitLab UI",
12646
+ },
12647
+ },
12648
+ },
12649
+ },
12650
+ },
12352
12651
  },
12353
12652
  },
12354
12653
  },
@@ -12382,34 +12681,57 @@ export const gitlabListDirectoryDefinition = {
12382
12681
  },
12383
12682
  output: {
12384
12683
  type: "object",
12385
- required: ["content"],
12684
+ required: ["success"],
12386
12685
  properties: {
12387
- content: {
12686
+ success: {
12687
+ type: "boolean",
12688
+ description: "Whether the operation was successful",
12689
+ },
12690
+ error: {
12691
+ type: "string",
12692
+ description: "Error message if the operation failed",
12693
+ },
12694
+ results: {
12388
12695
  type: "array",
12389
12696
  description: "Array of directory contents",
12390
12697
  items: {
12391
12698
  type: "object",
12392
- required: ["name", "path", "type", "htmlUrl"],
12699
+ required: ["name", "url", "contents"],
12393
12700
  properties: {
12394
12701
  name: {
12395
12702
  type: "string",
12396
12703
  description: "The name of the file or directory",
12397
12704
  },
12398
- path: {
12399
- type: "string",
12400
- description: "The path of the file or directory",
12401
- },
12402
- type: {
12705
+ url: {
12403
12706
  type: "string",
12404
- description: 'The type of the entry (either "blob" for file or "tree" for directory)',
12707
+ description: "The URL of the file or directory",
12405
12708
  },
12406
- size: {
12407
- type: "number",
12408
- description: "The size of the file in bytes (only for blobs; omitted or 0 for trees)",
12409
- },
12410
- htmlUrl: {
12411
- type: "string",
12412
- description: "The URL of the file or folder in the GitLab UI",
12709
+ contents: {
12710
+ type: "object",
12711
+ description: "The contents of the directory",
12712
+ required: ["name", "path", "type", "htmlUrl"],
12713
+ properties: {
12714
+ name: {
12715
+ type: "string",
12716
+ description: "The name of the file or directory",
12717
+ },
12718
+ path: {
12719
+ type: "string",
12720
+ description: "The path of the file or directory",
12721
+ },
12722
+ type: {
12723
+ type: "string",
12724
+ description: 'The type of the entry (either "blob" for file or "tree" for directory)',
12725
+ },
12726
+ size: {
12727
+ type: "number",
12728
+ description: "The size of the file in bytes (only for blobs; omitted or 0 for trees)",
12729
+ },
12730
+ htmlUrl: {
12731
+ type: "string",
12732
+ description: "The URL of the file or folder in the GitLab UI",
12733
+ },
12734
+ },
12413
12735
  },
12414
12736
  },
12415
12737
  },