@credal/actions 0.2.54 → 0.2.56

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 (34) 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 +59 -1
  4. package/dist/actions/autogen/types.d.ts +45 -0
  5. package/dist/actions/autogen/types.js +17 -0
  6. package/dist/actions/providers/confluence/updatePage.js +15 -14
  7. package/dist/actions/providers/gitlab/getFileContent.d.ts +6 -0
  8. package/dist/actions/providers/gitlab/getFileContent.js +53 -0
  9. package/dist/actions/providers/gitlab/searchGroup.d.ts +1 -1
  10. package/dist/actions/providers/gitlab/searchGroup.js +81 -7
  11. package/dist/actions/providers/google-oauth/listCalendarEvents.js +9 -1
  12. package/dist/actions/providers/jamf/types.d.ts +8 -0
  13. package/dist/actions/providers/jamf/types.js +7 -0
  14. package/package.json +1 -1
  15. package/dist/actions/providers/generic/fillTemplateAction.d.ts +0 -7
  16. package/dist/actions/providers/generic/fillTemplateAction.js +0 -18
  17. package/dist/actions/providers/generic/genericApiCall.d.ts +0 -3
  18. package/dist/actions/providers/generic/genericApiCall.js +0 -38
  19. package/dist/actions/providers/google-oauth/getDriveContentById.d.ts +0 -3
  20. package/dist/actions/providers/google-oauth/getDriveContentById.js +0 -161
  21. package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.d.ts +0 -3
  22. package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.js +0 -47
  23. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.d.ts +0 -3
  24. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.js +0 -110
  25. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.d.ts +0 -3
  26. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.js +0 -78
  27. package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.d.ts +0 -15
  28. package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.js +0 -129
  29. package/dist/actions/providers/googlemaps/nearbysearch.d.ts +0 -3
  30. package/dist/actions/providers/googlemaps/nearbysearch.js +0 -96
  31. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.d.ts +0 -3
  32. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.js +0 -154
  33. package/dist/actions/providers/x/scrapeTweetDataWithNitter.d.ts +0 -3
  34. 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, 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, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, } 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, 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, 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, } 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";
@@ -124,6 +124,7 @@ import getProjectDetails from "./providers/linear/getProjectDetails.js";
124
124
  import getTeamDetails from "./providers/linear/getTeamDetails.js";
125
125
  import getProjects from "./providers/linear/getProjects.js";
126
126
  import getTeams from "./providers/linear/getTeams.js";
127
+ import gitlabGetFileContent from "./providers/gitlab/getFileContent.js";
127
128
  const jiraActions = {
128
129
  getJiraIssuesByQuery: {
129
130
  fn: getJiraIssuesByQuery,
@@ -783,6 +784,11 @@ export const ActionMapper = {
783
784
  paramsSchema: gitlabSearchGroupParamsSchema,
784
785
  outputSchema: gitlabSearchGroupOutputSchema,
785
786
  },
787
+ getFileContent: {
788
+ fn: gitlabGetFileContent,
789
+ paramsSchema: gitlabGetFileContentParamsSchema,
790
+ outputSchema: gitlabGetFileContentOutputSchema,
791
+ },
786
792
  },
787
793
  linear: {
788
794
  getIssues: {
@@ -128,6 +128,7 @@ export declare const jamfGetJamfComputerInventoryDefinition: ActionTemplate;
128
128
  export declare const jamfGetJamfUserComputerIdDefinition: ActionTemplate;
129
129
  export declare const jamfLockJamfComputerByIdDefinition: ActionTemplate;
130
130
  export declare const gitlabSearchGroupDefinition: ActionTemplate;
131
+ export declare const gitlabGetFileContentDefinition: ActionTemplate;
131
132
  export declare const linearGetIssuesDefinition: ActionTemplate;
132
133
  export declare const linearGetIssueDetailsDefinition: ActionTemplate;
133
134
  export declare const linearGetProjectsDefinition: ActionTemplate;
@@ -9913,7 +9913,7 @@ export const gitlabSearchGroupDefinition = {
9913
9913
  properties: {
9914
9914
  metadata: {
9915
9915
  type: "object",
9916
- required: ["path", "basename", "data", "project_id", "ref", "startline", "filename"],
9916
+ required: ["path", "basename", "data", "project_id", "ref", "startline", "filename", "web_url"],
9917
9917
  properties: {
9918
9918
  path: {
9919
9919
  type: "string",
@@ -9943,6 +9943,10 @@ export const gitlabSearchGroupDefinition = {
9943
9943
  type: "string",
9944
9944
  description: "The filename of the blob",
9945
9945
  },
9946
+ web_url: {
9947
+ type: "string",
9948
+ description: "The URL of the blob",
9949
+ },
9946
9950
  },
9947
9951
  },
9948
9952
  matchedMergeRequests: {
@@ -9979,6 +9983,60 @@ export const gitlabSearchGroupDefinition = {
9979
9983
  name: "searchGroup",
9980
9984
  provider: "gitlab",
9981
9985
  };
9986
+ export const gitlabGetFileContentDefinition = {
9987
+ description: "Get specified file content from a GitLab repository",
9988
+ scopes: [],
9989
+ parameters: {
9990
+ type: "object",
9991
+ required: ["project_id", "path"],
9992
+ properties: {
9993
+ project_id: {
9994
+ type: "integer",
9995
+ description: "Numeric project ID in GitLab (unique per project)",
9996
+ },
9997
+ path: {
9998
+ type: "string",
9999
+ description: "The file path to get content from (e.g., src/index.js)",
10000
+ },
10001
+ ref: {
10002
+ type: "string",
10003
+ description: "Branch, tag, or commit to get the file from (defaults to HEAD, the repo’s default branch)",
10004
+ },
10005
+ },
10006
+ },
10007
+ output: {
10008
+ type: "object",
10009
+ required: ["success"],
10010
+ properties: {
10011
+ success: {
10012
+ type: "boolean",
10013
+ description: "Whether the operation was successful",
10014
+ },
10015
+ error: {
10016
+ type: "string",
10017
+ description: "The error that occurred if the operation was not successful",
10018
+ },
10019
+ content: {
10020
+ type: "string",
10021
+ description: "The decoded file content as a string",
10022
+ },
10023
+ size: {
10024
+ type: "number",
10025
+ description: "The size of the file in bytes",
10026
+ },
10027
+ name: {
10028
+ type: "string",
10029
+ description: "The name of the file",
10030
+ },
10031
+ htmlUrl: {
10032
+ type: "string",
10033
+ description: "The URL of the file in the GitLab UI",
10034
+ },
10035
+ },
10036
+ },
10037
+ name: "getFileContent",
10038
+ provider: "gitlab",
10039
+ };
9982
10040
  export const linearGetIssuesDefinition = {
9983
10041
  description: "Get Linear issues with optional query filter",
9984
10042
  scopes: [],
@@ -6716,11 +6716,13 @@ export declare const gitlabSearchGroupOutputSchema: z.ZodObject<{
6716
6716
  ref: z.ZodString;
6717
6717
  startline: z.ZodNumber;
6718
6718
  filename: z.ZodString;
6719
+ web_url: z.ZodString;
6719
6720
  }, "strip", z.ZodTypeAny, {
6720
6721
  path: string;
6721
6722
  data: string;
6722
6723
  filename: string;
6723
6724
  project_id: number;
6725
+ web_url: string;
6724
6726
  basename: string;
6725
6727
  ref: string;
6726
6728
  startline: number;
@@ -6729,6 +6731,7 @@ export declare const gitlabSearchGroupOutputSchema: z.ZodObject<{
6729
6731
  data: string;
6730
6732
  filename: string;
6731
6733
  project_id: number;
6734
+ web_url: string;
6732
6735
  basename: string;
6733
6736
  ref: string;
6734
6737
  startline: number;
@@ -6755,6 +6758,7 @@ export declare const gitlabSearchGroupOutputSchema: z.ZodObject<{
6755
6758
  data: string;
6756
6759
  filename: string;
6757
6760
  project_id: number;
6761
+ web_url: string;
6758
6762
  basename: string;
6759
6763
  ref: string;
6760
6764
  startline: number;
@@ -6771,6 +6775,7 @@ export declare const gitlabSearchGroupOutputSchema: z.ZodObject<{
6771
6775
  data: string;
6772
6776
  filename: string;
6773
6777
  project_id: number;
6778
+ web_url: string;
6774
6779
  basename: string;
6775
6780
  ref: string;
6776
6781
  startline: number;
@@ -6812,6 +6817,7 @@ export declare const gitlabSearchGroupOutputSchema: z.ZodObject<{
6812
6817
  data: string;
6813
6818
  filename: string;
6814
6819
  project_id: number;
6820
+ web_url: string;
6815
6821
  basename: string;
6816
6822
  ref: string;
6817
6823
  startline: number;
@@ -6853,6 +6859,7 @@ export declare const gitlabSearchGroupOutputSchema: z.ZodObject<{
6853
6859
  data: string;
6854
6860
  filename: string;
6855
6861
  project_id: number;
6862
+ web_url: string;
6856
6863
  basename: string;
6857
6864
  ref: string;
6858
6865
  startline: number;
@@ -6867,6 +6874,44 @@ export declare const gitlabSearchGroupOutputSchema: z.ZodObject<{
6867
6874
  }>;
6868
6875
  export type gitlabSearchGroupOutputType = z.infer<typeof gitlabSearchGroupOutputSchema>;
6869
6876
  export type gitlabSearchGroupFunction = ActionFunction<gitlabSearchGroupParamsType, AuthParamsType, gitlabSearchGroupOutputType>;
6877
+ export declare const gitlabGetFileContentParamsSchema: z.ZodObject<{
6878
+ project_id: z.ZodNumber;
6879
+ path: z.ZodString;
6880
+ ref: z.ZodOptional<z.ZodString>;
6881
+ }, "strip", z.ZodTypeAny, {
6882
+ path: string;
6883
+ project_id: number;
6884
+ ref?: string | undefined;
6885
+ }, {
6886
+ path: string;
6887
+ project_id: number;
6888
+ ref?: string | undefined;
6889
+ }>;
6890
+ export type gitlabGetFileContentParamsType = z.infer<typeof gitlabGetFileContentParamsSchema>;
6891
+ export declare const gitlabGetFileContentOutputSchema: z.ZodObject<{
6892
+ success: z.ZodBoolean;
6893
+ error: z.ZodOptional<z.ZodString>;
6894
+ content: z.ZodOptional<z.ZodString>;
6895
+ size: z.ZodOptional<z.ZodNumber>;
6896
+ name: z.ZodOptional<z.ZodString>;
6897
+ htmlUrl: z.ZodOptional<z.ZodString>;
6898
+ }, "strip", z.ZodTypeAny, {
6899
+ success: boolean;
6900
+ name?: string | undefined;
6901
+ error?: string | undefined;
6902
+ content?: string | undefined;
6903
+ size?: number | undefined;
6904
+ htmlUrl?: string | undefined;
6905
+ }, {
6906
+ success: boolean;
6907
+ name?: string | undefined;
6908
+ error?: string | undefined;
6909
+ content?: string | undefined;
6910
+ size?: number | undefined;
6911
+ htmlUrl?: string | undefined;
6912
+ }>;
6913
+ export type gitlabGetFileContentOutputType = z.infer<typeof gitlabGetFileContentOutputSchema>;
6914
+ export type gitlabGetFileContentFunction = ActionFunction<gitlabGetFileContentParamsType, AuthParamsType, gitlabGetFileContentOutputType>;
6870
6915
  export declare const linearGetIssuesParamsSchema: z.ZodObject<{
6871
6916
  query: z.ZodOptional<z.ZodString>;
6872
6917
  maxResults: z.ZodOptional<z.ZodNumber>;
@@ -3475,6 +3475,7 @@ export const gitlabSearchGroupOutputSchema = z.object({
3475
3475
  ref: z.string().describe("The ref of the blob"),
3476
3476
  startline: z.number().describe("The start line of the blob"),
3477
3477
  filename: z.string().describe("The filename of the blob"),
3478
+ web_url: z.string().describe("The URL of the blob"),
3478
3479
  }),
3479
3480
  matchedMergeRequests: z
3480
3481
  .array(z.object({
@@ -3488,6 +3489,22 @@ export const gitlabSearchGroupOutputSchema = z.object({
3488
3489
  }))
3489
3490
  .describe("A list of blobs that match the query"),
3490
3491
  });
3492
+ export const gitlabGetFileContentParamsSchema = z.object({
3493
+ project_id: z.number().int().describe("Numeric project ID in GitLab (unique per project)"),
3494
+ path: z.string().describe("The file path to get content from (e.g., src/index.js)"),
3495
+ ref: z
3496
+ .string()
3497
+ .describe("Branch, tag, or commit to get the file from (defaults to HEAD, the repo’s default branch)")
3498
+ .optional(),
3499
+ });
3500
+ export const gitlabGetFileContentOutputSchema = z.object({
3501
+ success: z.boolean().describe("Whether the operation was successful"),
3502
+ error: z.string().describe("The error that occurred if the operation was not successful").optional(),
3503
+ content: z.string().describe("The decoded file content as a string").optional(),
3504
+ size: z.number().describe("The size of the file in bytes").optional(),
3505
+ name: z.string().describe("The name of the file").optional(),
3506
+ htmlUrl: z.string().describe("The URL of the file in the GitLab UI").optional(),
3507
+ });
3491
3508
  export const linearGetIssuesParamsSchema = z.object({
3492
3509
  query: z.string().describe("Optional query string to filter issues").optional(),
3493
3510
  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 { gitlabGetFileContentFunction } from "../../autogen/types.js";
2
+ /**
3
+ * Get file content from GitLab by project_id
4
+ */
5
+ declare const getFileContent: gitlabGetFileContentFunction;
6
+ export default getFileContent;
@@ -0,0 +1,53 @@
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
+ throw new Error(`GitLab API error: ${res.status} ${res.statusText}`);
21
+ return res.json();
22
+ });
23
+ }
24
+ /**
25
+ * Get file content from GitLab by project_id
26
+ */
27
+ const getFileContent = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
28
+ const { authToken, baseUrl } = authParams;
29
+ const gitlabBaseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : GITLAB_API_URL;
30
+ if (!authToken) {
31
+ return {
32
+ success: false,
33
+ error: MISSING_AUTH_TOKEN,
34
+ };
35
+ }
36
+ const { project_id, path, ref = "HEAD" } = params;
37
+ // The file path must be URL-encoded per GitLab API docs
38
+ const filePath = encodeURIComponent(path);
39
+ const url = `${gitlabBaseUrl}/api/v4/projects/${project_id}/repository/files/${filePath}?ref=${encodeURIComponent(ref)}`;
40
+ const data = yield gitlabFetch(url, authToken);
41
+ if (data.encoding !== "base64" || typeof data.content !== "string") {
42
+ return { success: false, error: `Unexpected response: ${JSON.stringify(data)}` };
43
+ }
44
+ const content = Buffer.from(data.content, "base64").toString("utf-8");
45
+ return {
46
+ success: true,
47
+ content,
48
+ size: Buffer.byteLength(content),
49
+ name: data.file_name,
50
+ htmlUrl: data.web_url || `${gitlabBaseUrl}/${project_id}/-/blob/${ref}/${path}`,
51
+ };
52
+ });
53
+ export default getFileContent;
@@ -1,6 +1,6 @@
1
1
  import type { gitlabSearchGroupFunction } from "../../autogen/types.js";
2
2
  /**
3
- * Creates a new branch in a GitHub repository
3
+ * Searches for merge requests and blobs in a GitLab group
4
4
  */
5
5
  declare const searchGroup: gitlabSearchGroupFunction;
6
6
  export default searchGroup;
@@ -9,16 +9,75 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
11
11
  const GITLAB_API_URL = "https://gitlab.com";
12
+ // Cache for project paths to avoid repeated API calls
13
+ const projectPathCache = new Map();
12
14
  function gitlabFetch(endpoint, authToken) {
13
15
  return __awaiter(this, void 0, void 0, function* () {
14
16
  const res = yield fetch(endpoint, {
15
- headers: { Authorization: `Bearer ${authToken}` },
17
+ headers: {
18
+ Authorization: `Bearer ${authToken}`,
19
+ },
16
20
  });
17
21
  if (!res.ok)
18
22
  throw new Error(`GitLab API error: ${res.status} ${res.statusText}`);
19
23
  return res.json();
20
24
  });
21
25
  }
26
+ function getProjectPath(projectId, authToken, baseUrl) {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ // Check cache first
29
+ if (projectPathCache.has(projectId)) {
30
+ return projectPathCache.get(projectId);
31
+ }
32
+ try {
33
+ const project = yield gitlabFetch(`${baseUrl}/projects/${projectId}`, authToken);
34
+ const path = project.path_with_namespace;
35
+ projectPathCache.set(projectId, path);
36
+ return path;
37
+ }
38
+ catch (error) {
39
+ console.warn(`Failed to fetch project path for project ${projectId}:`, error);
40
+ // Fallback to project ID if we can't get the path
41
+ return `project-${projectId}`;
42
+ }
43
+ });
44
+ }
45
+ function constructBlobUrl(input) {
46
+ const { baseUrl, projectPath, ref, path, startline } = input;
47
+ let url = `${baseUrl}/${projectPath}/-/blob/${ref}/${path}`;
48
+ // Add line number anchor if provided
49
+ if (startline && startline > 0) {
50
+ url += `#L${startline}`;
51
+ }
52
+ return url;
53
+ }
54
+ function enhanceBlobWithUrl(blob, authToken, baseUrl, gitlabWebBaseUrl) {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ try {
57
+ const projectPath = yield getProjectPath(blob.project_id, authToken, baseUrl);
58
+ const web_url = constructBlobUrl({
59
+ baseUrl: gitlabWebBaseUrl,
60
+ projectPath,
61
+ ref: blob.ref,
62
+ path: blob.path,
63
+ startline: blob.startline,
64
+ });
65
+ return Object.assign(Object.assign({}, blob), { web_url });
66
+ }
67
+ catch (error) {
68
+ console.warn(`Failed to construct URL for blob in project ${blob.project_id}:`, error);
69
+ // Fallback URL construction
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
+ }
22
81
  function globalSearch(input) {
23
82
  return __awaiter(this, void 0, void 0, function* () {
24
83
  const { scope, query, groupId, authToken, baseUrl } = input;
@@ -34,29 +93,44 @@ function getMRDiffs(input) {
34
93
  });
35
94
  }
36
95
  /**
37
- * Creates a new branch in a GitHub repository
96
+ * Searches for merge requests and blobs in a GitLab group
38
97
  */
39
98
  const searchGroup = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
40
99
  const { authToken, baseUrl } = authParams;
41
- const gitlabBaseUrl = `${baseUrl !== null && baseUrl !== void 0 ? baseUrl : GITLAB_API_URL}/api/v4`;
100
+ const gitlabBaseUrl = baseUrl !== null && baseUrl !== void 0 ? baseUrl : GITLAB_API_URL;
101
+ const gitlabBaseApiUrl = `${gitlabBaseUrl}/api/v4`;
42
102
  if (!authToken) {
43
103
  throw new Error(MISSING_AUTH_TOKEN);
44
104
  }
45
105
  const { query, groupId } = params;
46
106
  const [mrResults, blobResults] = yield Promise.all([
47
- globalSearch({ scope: "merge_requests", query, groupId, authToken, baseUrl: gitlabBaseUrl }),
48
- globalSearch({ scope: "blobs", query, groupId, authToken, baseUrl: gitlabBaseUrl }),
107
+ globalSearch({
108
+ scope: "merge_requests",
109
+ query,
110
+ groupId,
111
+ authToken,
112
+ baseUrl: gitlabBaseApiUrl,
113
+ }),
114
+ globalSearch({
115
+ scope: "blobs",
116
+ query,
117
+ groupId,
118
+ authToken,
119
+ baseUrl: gitlabBaseApiUrl,
120
+ }),
49
121
  ]);
50
122
  const mergeRequests = yield Promise.all(mrResults.map((metadata) => __awaiter(void 0, void 0, void 0, function* () {
51
123
  const diffs = yield getMRDiffs({
52
124
  projectId: metadata.project_id,
53
125
  mrIid: metadata.iid,
54
126
  authToken,
55
- baseUrl: gitlabBaseUrl,
127
+ baseUrl: gitlabBaseApiUrl,
56
128
  });
57
129
  return { metadata, diffs };
58
130
  })));
59
- const blobs = blobResults.map(blob => {
131
+ // Enhance blobs with web URLs
132
+ const blobsWithUrls = yield Promise.all(blobResults.map(blob => enhanceBlobWithUrl(blob, authToken, gitlabBaseApiUrl, gitlabBaseUrl)));
133
+ const blobs = blobsWithUrls.map(blob => {
60
134
  const matches = mergeRequests
61
135
  .filter(mr => mr.metadata.project_id === blob.project_id && mr.diffs.some(diff => diff.new_path === blob.path))
62
136
  .map(mr => {
@@ -39,7 +39,7 @@ const listCalendarEvents = (_a) => __awaiter(void 0, [_a], void 0, function* ({
39
39
  if (!Array.isArray(items) || items.length <= 0)
40
40
  break;
41
41
  const batch = items.slice(0, max - fetchedCount);
42
- allEvents.push(...batch.map(({ id, status, htmlLink, summary, description, location, start, end, attendees, organizer, hangoutLink, created, updated, }) => ({
42
+ allEvents.push(...batch.map(({ id, status, htmlLink, summary, description, location, start, end, attendees, organizer, hangoutLink, created, updated, attachments, }) => ({
43
43
  id,
44
44
  status,
45
45
  url: htmlLink,
@@ -64,6 +64,14 @@ const listCalendarEvents = (_a) => __awaiter(void 0, [_a], void 0, function* ({
64
64
  hangoutLink,
65
65
  created,
66
66
  updated,
67
+ attachments: Array.isArray(attachments)
68
+ ? attachments.map(({ fileId, fileUrl, title, mimeType }) => ({
69
+ fileId,
70
+ fileUrl,
71
+ title,
72
+ mimeType,
73
+ }))
74
+ : [],
67
75
  })));
68
76
  fetchedCount = allEvents.length;
69
77
  if (!nextPageToken || fetchedCount >= max)
@@ -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.54",
3
+ "version": "0.2.56",
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;