@credal/actions 0.2.68 → 0.2.70

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 (32) hide show
  1. package/dist/actions/actionMapper.js +7 -1
  2. package/dist/actions/autogen/templates.d.ts +1 -0
  3. package/dist/actions/autogen/templates.js +68 -0
  4. package/dist/actions/autogen/types.d.ts +59 -0
  5. package/dist/actions/autogen/types.js +18 -0
  6. package/dist/actions/providers/confluence/updatePage.js +15 -14
  7. package/dist/actions/providers/gitlab/listDirectory.d.ts +6 -0
  8. package/dist/actions/providers/gitlab/listDirectory.js +55 -0
  9. package/dist/actions/providers/gitlab/searchGroup.js +25 -63
  10. package/dist/actions/providers/jamf/types.d.ts +8 -0
  11. package/dist/actions/providers/jamf/types.js +7 -0
  12. package/package.json +1 -1
  13. package/dist/actions/providers/generic/fillTemplateAction.d.ts +0 -7
  14. package/dist/actions/providers/generic/fillTemplateAction.js +0 -18
  15. package/dist/actions/providers/generic/genericApiCall.d.ts +0 -3
  16. package/dist/actions/providers/generic/genericApiCall.js +0 -38
  17. package/dist/actions/providers/google-oauth/getDriveContentById.d.ts +0 -3
  18. package/dist/actions/providers/google-oauth/getDriveContentById.js +0 -161
  19. package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.d.ts +0 -3
  20. package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.js +0 -47
  21. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.d.ts +0 -3
  22. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.js +0 -110
  23. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.d.ts +0 -3
  24. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.js +0 -78
  25. package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.d.ts +0 -15
  26. package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.js +0 -129
  27. package/dist/actions/providers/googlemaps/nearbysearch.d.ts +0 -3
  28. package/dist/actions/providers/googlemaps/nearbysearch.js +0 -96
  29. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.d.ts +0 -3
  30. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.js +0 -154
  31. package/dist/actions/providers/x/scrapeTweetDataWithNitter.d.ts +0 -3
  32. package/dist/actions/providers/x/scrapeTweetDataWithNitter.js +0 -45
@@ -1,4 +1,4 @@
1
- import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackArchiveChannelParamsSchema, slackArchiveChannelOutputSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraGetServiceDesksParamsSchema, jiraGetServiceDesksOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, gongGetGongTranscriptsParamsSchema, gongGetGongTranscriptsOutputSchema, ashbyCreateNoteParamsSchema, ashbyCreateNoteOutputSchema, ashbyGetCandidateInfoParamsSchema, ashbyGetCandidateInfoOutputSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, ashbyListCandidatesParamsSchema, ashbyListCandidatesOutputSchema, ashbyListCandidateNotesParamsSchema, ashbyListCandidateNotesOutputSchema, ashbySearchCandidatesParamsSchema, ashbySearchCandidatesOutputSchema, ashbyCreateCandidateParamsSchema, ashbyCreateCandidateOutputSchema, ashbyUpdateCandidateParamsSchema, ashbyUpdateCandidateOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, salesforceFetchSalesforceSchemaByObjectParamsSchema, salesforceFetchSalesforceSchemaByObjectOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, ashbyAddCandidateToProjectParamsSchema, ashbyAddCandidateToProjectOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, kandjiGetFVRecoveryKeyForDeviceParamsSchema, kandjiGetFVRecoveryKeyForDeviceOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, jamfGetJamfComputerInventoryParamsSchema, jamfGetJamfComputerInventoryOutputSchema, jamfGetJamfFileVaultRecoveryKeyParamsSchema, jamfGetJamfFileVaultRecoveryKeyOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, oktaListOktaUsersParamsSchema, oktaListOktaUsersOutputSchema, oktaGetOktaUserParamsSchema, oktaGetOktaUserOutputSchema, oktaListOktaUserGroupsParamsSchema, oktaListOktaUserGroupsOutputSchema, oktaListOktaGroupsParamsSchema, oktaListOktaGroupsOutputSchema, oktaGetOktaGroupParamsSchema, oktaGetOktaGroupOutputSchema, oktaListOktaGroupMembersParamsSchema, oktaListOktaGroupMembersOutputSchema, oktaRemoveUserFromGroupParamsSchema, oktaRemoveUserFromGroupOutputSchema, oktaAddUserToGroupParamsSchema, oktaAddUserToGroupOutputSchema, oktaResetPasswordParamsSchema, oktaResetPasswordOutputSchema, oktaResetMFAParamsSchema, oktaResetMFAOutputSchema, oktaListMFAParamsSchema, oktaListMFAOutputSchema, jamfGetJamfUserComputerIdParamsSchema, jamfGetJamfUserComputerIdOutputSchema, jamfLockJamfComputerByIdParamsSchema, jamfLockJamfComputerByIdOutputSchema, oktaTriggerOktaWorkflowParamsSchema, oktaTriggerOktaWorkflowOutputSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchRepositoryOutputSchema, githubSearchRepositoryParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, } from "./autogen/types.js";
1
+ import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackArchiveChannelParamsSchema, slackArchiveChannelOutputSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraGetServiceDesksParamsSchema, jiraGetServiceDesksOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, gongGetGongTranscriptsParamsSchema, gongGetGongTranscriptsOutputSchema, ashbyCreateNoteParamsSchema, ashbyCreateNoteOutputSchema, ashbyGetCandidateInfoParamsSchema, ashbyGetCandidateInfoOutputSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, ashbyListCandidatesParamsSchema, ashbyListCandidatesOutputSchema, ashbyListCandidateNotesParamsSchema, ashbyListCandidateNotesOutputSchema, ashbySearchCandidatesParamsSchema, ashbySearchCandidatesOutputSchema, ashbyCreateCandidateParamsSchema, ashbyCreateCandidateOutputSchema, ashbyUpdateCandidateParamsSchema, ashbyUpdateCandidateOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, salesforceFetchSalesforceSchemaByObjectParamsSchema, salesforceFetchSalesforceSchemaByObjectOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, ashbyAddCandidateToProjectParamsSchema, ashbyAddCandidateToProjectOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, kandjiGetFVRecoveryKeyForDeviceParamsSchema, kandjiGetFVRecoveryKeyForDeviceOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, jamfGetJamfComputerInventoryParamsSchema, jamfGetJamfComputerInventoryOutputSchema, jamfGetJamfFileVaultRecoveryKeyParamsSchema, jamfGetJamfFileVaultRecoveryKeyOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, oktaListOktaUsersParamsSchema, oktaListOktaUsersOutputSchema, oktaGetOktaUserParamsSchema, oktaGetOktaUserOutputSchema, oktaListOktaUserGroupsParamsSchema, oktaListOktaUserGroupsOutputSchema, oktaListOktaGroupsParamsSchema, oktaListOktaGroupsOutputSchema, oktaGetOktaGroupParamsSchema, oktaGetOktaGroupOutputSchema, oktaListOktaGroupMembersParamsSchema, oktaListOktaGroupMembersOutputSchema, oktaRemoveUserFromGroupParamsSchema, oktaRemoveUserFromGroupOutputSchema, oktaAddUserToGroupParamsSchema, oktaAddUserToGroupOutputSchema, oktaResetPasswordParamsSchema, oktaResetPasswordOutputSchema, oktaResetMFAParamsSchema, oktaResetMFAOutputSchema, oktaListMFAParamsSchema, oktaListMFAOutputSchema, jamfGetJamfUserComputerIdParamsSchema, jamfGetJamfUserComputerIdOutputSchema, jamfLockJamfComputerByIdParamsSchema, jamfLockJamfComputerByIdOutputSchema, oktaTriggerOktaWorkflowParamsSchema, oktaTriggerOktaWorkflowOutputSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchRepositoryOutputSchema, githubSearchRepositoryParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, } from "./autogen/types.js";
2
2
  import validateAddress from "./providers/googlemaps/validateAddress.js";
3
3
  import add from "./providers/math/add.js";
4
4
  import fillTemplate from "./providers/generic/fillTemplate.js";
@@ -127,6 +127,7 @@ import getTeamDetails from "./providers/linear/getTeamDetails.js";
127
127
  import getProjects from "./providers/linear/getProjects.js";
128
128
  import getTeams from "./providers/linear/getTeams.js";
129
129
  import gitlabGetFileContent from "./providers/gitlab/getFileContent.js";
130
+ import gitlabListDirectory from "./providers/gitlab/listDirectory.js";
130
131
  import publicCommentOnServiceDeskRequest from "./providers/jira/publicCommentOnServiceDeskRequest.js";
131
132
  import sendGmail from "./providers/googlemail/sendGmail.js";
132
133
  const jiraActions = {
@@ -813,6 +814,11 @@ export const ActionMapper = {
813
814
  paramsSchema: gitlabGetFileContentParamsSchema,
814
815
  outputSchema: gitlabGetFileContentOutputSchema,
815
816
  },
817
+ listDirectory: {
818
+ fn: gitlabListDirectory,
819
+ paramsSchema: gitlabListDirectoryParamsSchema,
820
+ outputSchema: gitlabListDirectoryOutputSchema,
821
+ },
816
822
  },
817
823
  linear: {
818
824
  getIssues: {
@@ -134,6 +134,7 @@ export declare const jamfGetJamfUserComputerIdDefinition: ActionTemplate;
134
134
  export declare const jamfLockJamfComputerByIdDefinition: ActionTemplate;
135
135
  export declare const gitlabSearchGroupDefinition: ActionTemplate;
136
136
  export declare const gitlabGetFileContentDefinition: ActionTemplate;
137
+ export declare const gitlabListDirectoryDefinition: ActionTemplate;
137
138
  export declare const linearGetIssuesDefinition: ActionTemplate;
138
139
  export declare const linearGetIssueDetailsDefinition: ActionTemplate;
139
140
  export declare const linearGetProjectsDefinition: ActionTemplate;
@@ -10229,6 +10229,10 @@ export const gitlabSearchGroupDefinition = {
10229
10229
  type: "string",
10230
10230
  description: "The group ID of the project to search in",
10231
10231
  },
10232
+ project: {
10233
+ type: "string",
10234
+ description: "The name of the project to search in",
10235
+ },
10232
10236
  },
10233
10237
  },
10234
10238
  output: {
@@ -10523,6 +10527,70 @@ export const gitlabGetFileContentDefinition = {
10523
10527
  name: "getFileContent",
10524
10528
  provider: "gitlab",
10525
10529
  };
10530
+ export const gitlabListDirectoryDefinition = {
10531
+ description: "List directory contents of a path in a GitLab repository",
10532
+ scopes: [],
10533
+ parameters: {
10534
+ type: "object",
10535
+ required: ["group", "project", "path"],
10536
+ properties: {
10537
+ group: {
10538
+ type: "string",
10539
+ description: 'The group or namespace that owns the project (e.g., "my-group" or "org/subgroup")',
10540
+ },
10541
+ project: {
10542
+ type: "string",
10543
+ description: 'The name of the GitLab project (e.g., "my-repo")',
10544
+ },
10545
+ path: {
10546
+ type: "string",
10547
+ description: "The path to list directory contents from (empty string for root)",
10548
+ },
10549
+ ref: {
10550
+ type: "string",
10551
+ description: 'The branch, tag, or commit (defaults to "main")',
10552
+ },
10553
+ },
10554
+ },
10555
+ output: {
10556
+ type: "object",
10557
+ required: ["content"],
10558
+ properties: {
10559
+ content: {
10560
+ type: "array",
10561
+ description: "Array of directory contents",
10562
+ items: {
10563
+ type: "object",
10564
+ required: ["name", "path", "type", "htmlUrl"],
10565
+ properties: {
10566
+ name: {
10567
+ type: "string",
10568
+ description: "The name of the file or directory",
10569
+ },
10570
+ path: {
10571
+ type: "string",
10572
+ description: "The path of the file or directory",
10573
+ },
10574
+ type: {
10575
+ type: "string",
10576
+ description: 'The type of the entry (either "blob" for file or "tree" for directory)',
10577
+ },
10578
+ size: {
10579
+ type: "number",
10580
+ description: "The size of the file in bytes (only for blobs; omitted or 0 for trees)",
10581
+ },
10582
+ htmlUrl: {
10583
+ type: "string",
10584
+ description: "The URL of the file or folder in the GitLab UI",
10585
+ },
10586
+ },
10587
+ },
10588
+ },
10589
+ },
10590
+ },
10591
+ name: "listDirectory",
10592
+ provider: "gitlab",
10593
+ };
10526
10594
  export const linearGetIssuesDefinition = {
10527
10595
  description: "Get Linear issues with optional query filter",
10528
10596
  scopes: [],
@@ -6987,12 +6987,15 @@ export type jamfLockJamfComputerByIdFunction = ActionFunction<jamfLockJamfComput
6987
6987
  export declare const gitlabSearchGroupParamsSchema: z.ZodObject<{
6988
6988
  query: z.ZodString;
6989
6989
  groupId: z.ZodString;
6990
+ project: z.ZodOptional<z.ZodString>;
6990
6991
  }, "strip", z.ZodTypeAny, {
6991
6992
  query: string;
6992
6993
  groupId: string;
6994
+ project?: string | undefined;
6993
6995
  }, {
6994
6996
  query: string;
6995
6997
  groupId: string;
6998
+ project?: string | undefined;
6996
6999
  }>;
6997
7000
  export type gitlabSearchGroupParamsType = z.infer<typeof gitlabSearchGroupParamsSchema>;
6998
7001
  export declare const gitlabSearchGroupOutputSchema: z.ZodObject<{
@@ -7397,6 +7400,62 @@ export declare const gitlabGetFileContentOutputSchema: z.ZodObject<{
7397
7400
  }>;
7398
7401
  export type gitlabGetFileContentOutputType = z.infer<typeof gitlabGetFileContentOutputSchema>;
7399
7402
  export type gitlabGetFileContentFunction = ActionFunction<gitlabGetFileContentParamsType, AuthParamsType, gitlabGetFileContentOutputType>;
7403
+ export declare const gitlabListDirectoryParamsSchema: z.ZodObject<{
7404
+ group: z.ZodString;
7405
+ project: z.ZodString;
7406
+ path: z.ZodString;
7407
+ ref: z.ZodOptional<z.ZodString>;
7408
+ }, "strip", z.ZodTypeAny, {
7409
+ path: string;
7410
+ group: string;
7411
+ project: string;
7412
+ ref?: string | undefined;
7413
+ }, {
7414
+ path: string;
7415
+ group: string;
7416
+ project: string;
7417
+ ref?: string | undefined;
7418
+ }>;
7419
+ export type gitlabListDirectoryParamsType = z.infer<typeof gitlabListDirectoryParamsSchema>;
7420
+ export declare const gitlabListDirectoryOutputSchema: z.ZodObject<{
7421
+ content: z.ZodArray<z.ZodObject<{
7422
+ name: z.ZodString;
7423
+ path: z.ZodString;
7424
+ type: z.ZodString;
7425
+ size: z.ZodOptional<z.ZodNumber>;
7426
+ htmlUrl: z.ZodString;
7427
+ }, "strip", z.ZodTypeAny, {
7428
+ type: string;
7429
+ path: string;
7430
+ name: string;
7431
+ htmlUrl: string;
7432
+ size?: number | undefined;
7433
+ }, {
7434
+ type: string;
7435
+ path: string;
7436
+ name: string;
7437
+ htmlUrl: string;
7438
+ size?: number | undefined;
7439
+ }>, "many">;
7440
+ }, "strip", z.ZodTypeAny, {
7441
+ content: {
7442
+ type: string;
7443
+ path: string;
7444
+ name: string;
7445
+ htmlUrl: string;
7446
+ size?: number | undefined;
7447
+ }[];
7448
+ }, {
7449
+ content: {
7450
+ type: string;
7451
+ path: string;
7452
+ name: string;
7453
+ htmlUrl: string;
7454
+ size?: number | undefined;
7455
+ }[];
7456
+ }>;
7457
+ export type gitlabListDirectoryOutputType = z.infer<typeof gitlabListDirectoryOutputSchema>;
7458
+ export type gitlabListDirectoryFunction = ActionFunction<gitlabListDirectoryParamsType, AuthParamsType, gitlabListDirectoryOutputType>;
7400
7459
  export declare const linearGetIssuesParamsSchema: z.ZodObject<{
7401
7460
  query: z.ZodOptional<z.ZodString>;
7402
7461
  maxResults: z.ZodOptional<z.ZodNumber>;
@@ -3547,6 +3547,7 @@ export const jamfLockJamfComputerByIdOutputSchema = z.object({
3547
3547
  export const gitlabSearchGroupParamsSchema = z.object({
3548
3548
  query: z.string().describe("The query that will be used to search gitlab blobs and merge requests"),
3549
3549
  groupId: z.string().describe("The group ID of the project to search in"),
3550
+ project: z.string().describe("The name of the project to search in").optional(),
3550
3551
  });
3551
3552
  export const gitlabSearchGroupOutputSchema = z.object({
3552
3553
  mergeRequests: z
@@ -3639,6 +3640,23 @@ export const gitlabGetFileContentOutputSchema = z.object({
3639
3640
  name: z.string().describe("The name of the file").optional(),
3640
3641
  htmlUrl: z.string().describe("The URL of the file in the GitLab UI").optional(),
3641
3642
  });
3643
+ export const gitlabListDirectoryParamsSchema = z.object({
3644
+ group: z.string().describe('The group or namespace that owns the project (e.g., "my-group" or "org/subgroup")'),
3645
+ project: z.string().describe('The name of the GitLab project (e.g., "my-repo")'),
3646
+ path: z.string().describe("The path to list directory contents from (empty string for root)"),
3647
+ ref: z.string().describe('The branch, tag, or commit (defaults to "main")').optional(),
3648
+ });
3649
+ export const gitlabListDirectoryOutputSchema = z.object({
3650
+ content: z
3651
+ .array(z.object({
3652
+ name: z.string().describe("The name of the file or directory"),
3653
+ path: z.string().describe("The path of the file or directory"),
3654
+ type: z.string().describe('The type of the entry (either "blob" for file or "tree" for directory)'),
3655
+ size: z.number().describe("The size of the file in bytes (only for blobs; omitted or 0 for trees)").optional(),
3656
+ htmlUrl: z.string().describe("The URL of the file or folder in the GitLab UI"),
3657
+ }))
3658
+ .describe("Array of directory contents"),
3659
+ });
3642
3660
  export const linearGetIssuesParamsSchema = z.object({
3643
3661
  query: z.string().describe("Optional query string to filter issues").optional(),
3644
3662
  maxResults: z.number().describe("Optional limit to number of results").optional(),
@@ -8,28 +8,30 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const axiosClient_1 = require("../../util/axiosClient");
13
- function getConfluenceRequestConfig(baseUrl, username, apiToken) {
14
- return {
15
+ const axios_1 = __importDefault(require("axios"));
16
+ function getConfluenceApi(baseUrl, username, apiToken) {
17
+ const api = axios_1.default.create({
15
18
  baseURL: baseUrl,
16
19
  headers: {
17
20
  Accept: "application/json",
21
+ // Tokens are associated with a specific user.
18
22
  Authorization: `Basic ${Buffer.from(`${username}:${apiToken}`).toString("base64")}`,
19
23
  },
20
- };
24
+ });
25
+ return api;
21
26
  }
22
27
  const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
23
- const { pageId, content, title } = params;
24
- const { baseUrl, authToken, username } = authParams;
25
- if (!baseUrl || !authToken || !username) {
26
- throw new Error("Missing required authentication information");
27
- }
28
- const config = getConfluenceRequestConfig(baseUrl, username, authToken);
28
+ const { pageId, username, content, title } = params;
29
+ const { baseUrl, authToken } = authParams;
30
+ const api = getConfluenceApi(baseUrl, username, authToken);
29
31
  // Get current version number
30
- const response = yield axiosClient_1.axiosClient.get(`/api/v2/pages/${pageId}`, config);
32
+ const response = yield api.get(`/api/v2/pages/${pageId}`);
31
33
  const currVersion = response.data.version.number;
32
- const payload = {
34
+ yield api.put(`/api/v2/pages/${pageId}`, {
33
35
  id: pageId,
34
36
  status: "current",
35
37
  title,
@@ -40,7 +42,6 @@ const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* (
40
42
  version: {
41
43
  number: currVersion + 1,
42
44
  },
43
- };
44
- yield axiosClient_1.axiosClient.put(`/api/v2/pages/${pageId}`, payload, config);
45
+ });
45
46
  });
46
47
  exports.default = confluenceUpdatePage;
@@ -0,0 +1,6 @@
1
+ import type { gitlabListDirectoryFunction } from "../../autogen/types.js";
2
+ /**
3
+ * List directory contents from a GitLab project
4
+ */
5
+ declare const listDirectory: gitlabListDirectoryFunction;
6
+ export default listDirectory;
@@ -0,0 +1,55 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
11
+ const GITLAB_API_URL = "https://gitlab.com";
12
+ function gitlabFetch(endpoint, authToken) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ const res = yield fetch(endpoint, {
15
+ headers: {
16
+ Authorization: `Bearer ${authToken}`,
17
+ },
18
+ });
19
+ if (!res.ok) {
20
+ const text = yield res.text();
21
+ throw new Error(`GitLab API error: ${res.status} ${text}`);
22
+ }
23
+ return res.json();
24
+ });
25
+ }
26
+ /**
27
+ * List directory contents from a GitLab project
28
+ */
29
+ const listDirectory = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
30
+ const { authToken, baseUrl } = authParams;
31
+ const gitlabBaseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : GITLAB_API_URL;
32
+ if (!authToken)
33
+ throw new Error(MISSING_AUTH_TOKEN);
34
+ const { group, project, path, ref = "main" } = params;
35
+ const fullPath = `${group}/${project}`;
36
+ const encodedProjectPath = encodeURIComponent(fullPath);
37
+ const url = `${gitlabBaseUrl}/api/v4/projects/${encodedProjectPath}/repository/tree` +
38
+ `?path=${encodeURIComponent(path)}` +
39
+ `&ref=${encodeURIComponent(ref)}`;
40
+ const treeItems = yield gitlabFetch(url, authToken);
41
+ const content = treeItems.map(item => {
42
+ var _a;
43
+ const isFile = item.type === "blob";
44
+ const htmlUrl = `${gitlabBaseUrl}/${fullPath}/-/blob/${ref}/${item.path}`;
45
+ return {
46
+ name: item.name,
47
+ path: item.path,
48
+ type: item.type, // "blob" or "tree"
49
+ size: isFile ? ((_a = item.size) !== null && _a !== void 0 ? _a : 0) : 0, // Size may not be returned; fallback to 0
50
+ htmlUrl,
51
+ };
52
+ });
53
+ return { content };
54
+ });
55
+ export default listDirectory;
@@ -21,9 +21,7 @@ function createProjectPathCache() {
21
21
  }
22
22
  function gitlabFetch(endpoint, authToken) {
23
23
  return __awaiter(this, void 0, void 0, function* () {
24
- const res = yield fetch(endpoint, {
25
- headers: { Authorization: `Bearer ${authToken}` },
26
- });
24
+ const res = yield fetch(endpoint, { headers: { Authorization: `Bearer ${authToken}` } });
27
25
  if (!res.ok)
28
26
  throw new Error(`GitLab API error: ${res.status} ${res.statusText}`);
29
27
  return res.json();
@@ -54,35 +52,15 @@ function constructBlobUrl(input) {
54
52
  }
55
53
  function enhanceBlobWithUrl(blob, authToken, baseUrl, gitlabWebBaseUrl, projectPathCache) {
56
54
  return __awaiter(this, void 0, void 0, function* () {
57
- try {
58
- const projectPath = yield getProjectPath(blob.project_id, authToken, baseUrl, projectPathCache);
59
- const web_url = constructBlobUrl({
60
- baseUrl: gitlabWebBaseUrl,
61
- projectPath,
62
- ref: blob.ref,
63
- path: blob.path,
64
- startline: blob.startline,
65
- });
66
- return Object.assign(Object.assign({}, blob), { web_url });
67
- }
68
- catch (error) {
69
- console.warn(`Failed to construct URL for blob in project ${blob.project_id}:`, error);
70
- const fallbackUrl = constructBlobUrl({
71
- baseUrl: gitlabWebBaseUrl,
72
- projectPath: `project-${blob.project_id}`,
73
- ref: blob.ref,
74
- path: blob.path,
75
- startline: blob.startline,
76
- });
77
- return Object.assign(Object.assign({}, blob), { web_url: fallbackUrl });
78
- }
79
- });
80
- }
81
- function globalSearch(input) {
82
- return __awaiter(this, void 0, void 0, function* () {
83
- const { scope, query, groupId, authToken, baseUrl } = input;
84
- const endpoint = `${baseUrl}/groups/${encodeURIComponent(groupId)}/search?scope=${scope}&search=${encodeURIComponent(query)}`;
85
- return gitlabFetch(endpoint, authToken);
55
+ const projectPath = yield getProjectPath(blob.project_id, authToken, baseUrl, projectPathCache);
56
+ const web_url = constructBlobUrl({
57
+ baseUrl: gitlabWebBaseUrl,
58
+ projectPath,
59
+ ref: blob.ref,
60
+ path: blob.path,
61
+ startline: blob.startline,
62
+ });
63
+ return Object.assign(Object.assign({}, blob), { web_url });
86
64
  });
87
65
  }
88
66
  function getCommitDetails(input) {
@@ -95,10 +73,7 @@ function getCommitDetails(input) {
95
73
  sha: commit.id,
96
74
  web_url: `${webBaseUrl}/${projectPath}/-/commit/${commit.id}`,
97
75
  message: commit.message,
98
- author: {
99
- name: commit.author_name,
100
- email: commit.author_email,
101
- },
76
+ author: { name: commit.author_name, email: commit.author_email },
102
77
  created_at: commit.created_at,
103
78
  files: (diffs || []).slice(0, MAX_FILES_PER_COMMIT).map(diff => ({
104
79
  old_path: diff.old_path,
@@ -114,40 +89,28 @@ const searchGroup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params,
114
89
  const gitlabBaseApiUrl = `${gitlabBaseUrl}/api/v4`;
115
90
  if (!authToken)
116
91
  throw new Error(MISSING_AUTH_TOKEN);
117
- const { query, groupId } = params;
92
+ const { query, groupId, project } = params;
118
93
  const projectPathCache = createProjectPathCache();
119
- // --- Top-level: run all searches in parallel
94
+ const fullProjectPath = project ? `${groupId}/${project}` : undefined;
95
+ const encodedGroup = encodeURIComponent(groupId);
96
+ const fetchSearchResults = (scope) => __awaiter(void 0, void 0, void 0, function* () {
97
+ const endpoint = fullProjectPath
98
+ ? `${gitlabBaseApiUrl}/projects/${encodeURIComponent(fullProjectPath)}/search?scope=${scope}&search=${encodeURIComponent(query)}`
99
+ : `${gitlabBaseApiUrl}/groups/${encodedGroup}/search?scope=${scope}&search=${encodeURIComponent(query)}`;
100
+ return gitlabFetch(endpoint, authToken);
101
+ });
120
102
  const [mrResults, blobResults, commitResults] = yield Promise.all([
121
- globalSearch({
122
- scope: "merge_requests",
123
- query,
124
- groupId,
125
- authToken,
126
- baseUrl: gitlabBaseApiUrl,
127
- }),
128
- globalSearch({
129
- scope: "blobs",
130
- query,
131
- groupId,
132
- authToken,
133
- baseUrl: gitlabBaseApiUrl,
134
- }),
135
- globalSearch({
136
- scope: "commits",
137
- query,
138
- groupId,
139
- authToken,
140
- baseUrl: gitlabBaseApiUrl,
141
- }),
103
+ fetchSearchResults("merge_requests"),
104
+ fetchSearchResults("blobs"),
105
+ fetchSearchResults("commits"),
142
106
  ]);
143
- // --- Merge Requests: diffs in parallel
144
107
  const limitedMRResults = mrResults.slice(0, MAX_ISSUES_OR_PRS);
145
108
  const mergeRequests = yield Promise.all(limitedMRResults.map((metadata) => __awaiter(void 0, void 0, void 0, function* () {
146
- let diffs = yield gitlabFetch(`${gitlabBaseApiUrl}/projects/${metadata.project_id}/merge_requests/${metadata.iid}/diffs`, authToken);
109
+ const endpoint = `${gitlabBaseApiUrl}/projects/${metadata.project_id}/merge_requests/${metadata.iid}/diffs`;
110
+ let diffs = yield gitlabFetch(endpoint, authToken);
147
111
  diffs = (diffs || []).slice(0, MAX_FILES_PER_PR).map(diff => (Object.assign(Object.assign({}, diff), { diff: diff.diff ? diff.diff.split("\n").slice(0, MAX_PATCH_LINES).join("\n") : diff.diff })));
148
112
  return { metadata, diffs };
149
113
  })));
150
- // --- Blobs: enhance with URL in parallel
151
114
  const limitedBlobResults = blobResults.slice(0, MAX_CODE_RESULTS);
152
115
  const blobsWithUrls = yield Promise.all(limitedBlobResults.map(blob => enhanceBlobWithUrl(blob, authToken, gitlabBaseApiUrl, gitlabBaseUrl, projectPathCache)));
153
116
  const blobs = blobsWithUrls.map(blob => {
@@ -164,7 +127,6 @@ const searchGroup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params,
164
127
  matchedMergeRequests: matches,
165
128
  };
166
129
  });
167
- // --- Commits: details in parallel
168
130
  const limitedCommitResults = commitResults.slice(0, MAX_COMMITS);
169
131
  const commits = yield Promise.all(limitedCommitResults.map(commit => getCommitDetails({
170
132
  projectId: commit.project_id,
@@ -0,0 +1,8 @@
1
+ import { z } from "zod";
2
+ export declare const TokenResponseSchema: z.ZodObject<{
3
+ token: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ token: string;
6
+ }, {
7
+ token: string;
8
+ }>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TokenResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.TokenResponseSchema = zod_1.z.object({
6
+ token: zod_1.z.string(),
7
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.68",
3
+ "version": "0.2.70",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,
@@ -1,7 +0,0 @@
1
- import type { ActionFunction } from "../../autogen/types";
2
- declare const fillTemplateAction: ActionFunction<{
3
- template: string;
4
- }, {
5
- result: string;
6
- }, unknown>;
7
- export default fillTemplateAction;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- const fillTemplateAction = (_a) => __awaiter(void 0, [_a], void 0, function* ({ template }) {
13
- // Simply return the template without any modification
14
- return {
15
- result: template,
16
- };
17
- });
18
- exports.default = fillTemplateAction;
@@ -1,3 +0,0 @@
1
- import type { genericUniversalTestActionFunction } from "../../autogen/types";
2
- declare const genericApiCall: genericUniversalTestActionFunction;
3
- export default genericApiCall;
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const axios_1 = __importDefault(require("axios"));
16
- const genericApiCall = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, }) {
17
- try {
18
- const { endpoint, method, headers, body } = params;
19
- const response = yield (0, axios_1.default)({
20
- url: endpoint,
21
- method,
22
- headers,
23
- data: method !== "GET" ? body : undefined,
24
- });
25
- return {
26
- statusCode: response.status,
27
- headers: response.headers,
28
- data: response.data,
29
- };
30
- }
31
- catch (error) {
32
- if (axios_1.default.isAxiosError(error)) {
33
- throw Error("Axios Error: " + (error.message || "Failed to make API call"));
34
- }
35
- throw Error("Error: " + (error || "Failed to make API call"));
36
- }
37
- });
38
- exports.default = genericApiCall;
@@ -1,3 +0,0 @@
1
- import type { googleOauthGetDriveFileContentByIDFunction } from "../../autogen/types.js";
2
- declare const getDriveFileContentByID: googleOauthGetDriveFileContentByIDFunction;
3
- export default getDriveFileContentByID;