@credal/actions 0.2.33 → 0.2.35

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 (51) hide show
  1. package/dist/actions/actionMapper.js +13 -1
  2. package/dist/actions/autogen/templates.d.ts +2 -0
  3. package/dist/actions/autogen/templates.js +125 -0
  4. package/dist/actions/autogen/types.d.ts +103 -0
  5. package/dist/actions/autogen/types.js +38 -0
  6. package/dist/actions/groups.js +2 -1
  7. package/dist/actions/providers/confluence/updatePage.js +5 -2
  8. package/dist/actions/providers/generic/fillTemplateAction.d.ts +7 -0
  9. package/dist/actions/providers/generic/fillTemplateAction.js +18 -0
  10. package/dist/actions/providers/generic/genericApiCall.d.ts +3 -0
  11. package/dist/actions/providers/{jira/createTicket.js → generic/genericApiCall.js} +22 -18
  12. package/dist/actions/providers/google-oauth/getDriveContentById.d.ts +3 -0
  13. package/dist/actions/providers/google-oauth/getDriveContentById.js +161 -0
  14. package/dist/actions/providers/google-oauth/getDriveFileContentById.d.ts +3 -0
  15. package/dist/actions/providers/google-oauth/getDriveFileContentById.js +180 -0
  16. package/dist/actions/providers/google-oauth/searchDriveByKeywords.js +2 -2
  17. package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.d.ts +16 -0
  18. package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.js +174 -0
  19. package/dist/actions/providers/googlemaps/nearbysearch.js +31 -31
  20. package/dist/actions/providers/salesforce/searchSalesforceRecords.d.ts +3 -0
  21. package/dist/actions/providers/salesforce/{getSalesforceRecordByQuery.js → searchSalesforceRecords.js} +20 -11
  22. package/dist/actions/providers/slack/listConversations.d.ts +1 -1
  23. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.d.ts +3 -0
  24. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.js +154 -0
  25. package/dist/actions/providers/x/scrapeTweetDataWithNitter.d.ts +3 -0
  26. package/dist/actions/providers/x/scrapeTweetDataWithNitter.js +45 -0
  27. package/package.json +3 -1
  28. package/dist/actions/autogen/definitions.d.ts +0 -5
  29. package/dist/actions/autogen/definitions.js +0 -132
  30. package/dist/actions/definitions.js +0 -35
  31. package/dist/actions/invokeMapper.d.ts +0 -9
  32. package/dist/actions/invokeMapper.js +0 -33
  33. package/dist/actions/providers/google-oauth/getSheetValue.d.ts +0 -3
  34. package/dist/actions/providers/google-oauth/getSheetValue.js +0 -50
  35. package/dist/actions/providers/google-oauth/getSheetValues.d.ts +0 -3
  36. package/dist/actions/providers/google-oauth/getSheetValues.js +0 -50
  37. package/dist/actions/providers/google-oauth/listGmailThreads.d.ts +0 -3
  38. package/dist/actions/providers/google-oauth/listGmailThreads.js +0 -98
  39. package/dist/actions/providers/google-oauth/searchGmailMessages.d.ts +0 -3
  40. package/dist/actions/providers/google-oauth/searchGmailMessages.js +0 -91
  41. package/dist/actions/providers/jamf/types.d.ts +0 -8
  42. package/dist/actions/providers/jamf/types.js +0 -7
  43. package/dist/actions/providers/jira/createTicket.d.ts +0 -3
  44. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +0 -3
  45. package/dist/actions/providers/slack/list_conversations.d.ts +0 -3
  46. package/dist/actions/providers/slack/list_conversations.js +0 -60
  47. package/dist/actions/providers/slack/summarizeChannel.d.ts +0 -3
  48. package/dist/actions/providers/slack/summarizeChannel.js +0 -51
  49. package/dist/actions/schema.js +0 -6
  50. package/dist/actions/types.js +0 -2
  51. package/dist/main.js +0 -11
@@ -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, } 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, } 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";
@@ -112,6 +112,8 @@ import searchGroup from "./providers/gitlab/searchGroup.js";
112
112
  import searchRepository from "./providers/github/searchRepository.js";
113
113
  import getServiceDesks from "./providers/jira/getServiceDesks.js";
114
114
  import createServiceDeskRequest from "./providers/jira/createServiceDeskRequest.js";
115
+ import searchSalesforceRecords from "./providers/salesforce/searchSalesforceRecords.js";
116
+ import getDriveFileContentById from "./providers/google-oauth/getDriveFileContentById.js";
115
117
  const jiraActions = {
116
118
  getJiraIssuesByQuery: {
117
119
  fn: getJiraIssuesByQuery,
@@ -432,6 +434,11 @@ export const ActionMapper = {
432
434
  paramsSchema: googleOauthSearchDriveByKeywordsParamsSchema,
433
435
  outputSchema: googleOauthSearchDriveByKeywordsOutputSchema,
434
436
  },
437
+ getDriveFileContentById: {
438
+ fn: getDriveFileContentById,
439
+ paramsSchema: googleOauthGetDriveFileContentByIdParamsSchema,
440
+ outputSchema: googleOauthGetDriveFileContentByIdOutputSchema,
441
+ },
435
442
  listCalendars: {
436
443
  fn: listCalendars,
437
444
  paramsSchema: googleOauthListCalendarsParamsSchema,
@@ -596,6 +603,11 @@ export const ActionMapper = {
596
603
  paramsSchema: salesforceGetRecordParamsSchema,
597
604
  outputSchema: salesforceGetRecordOutputSchema,
598
605
  },
606
+ searchSalesforceRecords: {
607
+ fn: searchSalesforceRecords,
608
+ paramsSchema: salesforceSearchSalesforceRecordsParamsSchema,
609
+ outputSchema: salesforceSearchSalesforceRecordsOutputSchema,
610
+ },
599
611
  getSalesforceRecordsByQuery: {
600
612
  fn: getSalesforceRecordsByQuery,
601
613
  paramsSchema: salesforceGetSalesforceRecordsByQueryParamsSchema,
@@ -67,6 +67,7 @@ export declare const googleOauthUpdateSpreadsheetDefinition: ActionTemplate;
67
67
  export declare const googleOauthCreatePresentationDefinition: ActionTemplate;
68
68
  export declare const googleOauthUpdatePresentationDefinition: ActionTemplate;
69
69
  export declare const googleOauthSearchDriveByKeywordsDefinition: ActionTemplate;
70
+ export declare const googleOauthGetDriveFileContentByIdDefinition: ActionTemplate;
70
71
  export declare const googleOauthListGroupsDefinition: ActionTemplate;
71
72
  export declare const googleOauthGetGroupDefinition: ActionTemplate;
72
73
  export declare const googleOauthListGroupMembersDefinition: ActionTemplate;
@@ -103,6 +104,7 @@ export declare const salesforceUpdateRecordDefinition: ActionTemplate;
103
104
  export declare const salesforceCreateRecordDefinition: ActionTemplate;
104
105
  export declare const salesforceCreateCaseDefinition: ActionTemplate;
105
106
  export declare const salesforceGenerateSalesReportDefinition: ActionTemplate;
107
+ export declare const salesforceSearchSalesforceRecordsDefinition: ActionTemplate;
106
108
  export declare const salesforceGetSalesforceRecordsByQueryDefinition: ActionTemplate;
107
109
  export declare const salesforceGetRecordDefinition: ActionTemplate;
108
110
  export declare const salesforceFetchSalesforceSchemaByObjectDefinition: ActionTemplate;
@@ -6175,6 +6175,10 @@ export const googleOauthSearchDriveByKeywordsDefinition = {
6175
6175
  type: "string",
6176
6176
  },
6177
6177
  },
6178
+ limit: {
6179
+ type: "integer",
6180
+ description: "The maximum number of files to return",
6181
+ },
6178
6182
  },
6179
6183
  },
6180
6184
  output: {
@@ -6220,6 +6224,52 @@ export const googleOauthSearchDriveByKeywordsDefinition = {
6220
6224
  name: "searchDriveByKeywords",
6221
6225
  provider: "googleOauth",
6222
6226
  };
6227
+ export const googleOauthGetDriveFileContentByIdDefinition = {
6228
+ description: "Get text content of a Google Drive file by its ID.",
6229
+ scopes: ["drive.readonly"],
6230
+ parameters: {
6231
+ type: "object",
6232
+ required: ["fileId", "limit"],
6233
+ properties: {
6234
+ fileId: {
6235
+ type: "string",
6236
+ description: "The ID of the file to get content from",
6237
+ },
6238
+ limit: {
6239
+ type: "integer",
6240
+ description: "The character limit for the file content",
6241
+ },
6242
+ },
6243
+ },
6244
+ output: {
6245
+ type: "object",
6246
+ required: ["success"],
6247
+ properties: {
6248
+ success: {
6249
+ type: "boolean",
6250
+ description: "Whether the file content was retrieved successfully",
6251
+ },
6252
+ content: {
6253
+ type: "string",
6254
+ description: "The content of the file",
6255
+ },
6256
+ fileName: {
6257
+ type: "string",
6258
+ description: "The name of the file",
6259
+ },
6260
+ fileLength: {
6261
+ type: "integer",
6262
+ description: "The length of the file content prior to truncating",
6263
+ },
6264
+ error: {
6265
+ type: "string",
6266
+ description: "Error message if file content retrieval failed",
6267
+ },
6268
+ },
6269
+ },
6270
+ name: "getDriveFileContentById",
6271
+ provider: "googleOauth",
6272
+ };
6223
6273
  export const googleOauthListGroupsDefinition = {
6224
6274
  description: "List all Google Groups for the customer.",
6225
6275
  scopes: ["https://www.googleapis.com/auth/admin.directory.group.readonly"],
@@ -8379,6 +8429,81 @@ export const salesforceGenerateSalesReportDefinition = {
8379
8429
  name: "generateSalesReport",
8380
8430
  provider: "salesforce",
8381
8431
  };
8432
+ export const salesforceSearchSalesforceRecordsDefinition = {
8433
+ description: "Search for Salesforce records by keyword",
8434
+ scopes: [],
8435
+ parameters: {
8436
+ type: "object",
8437
+ required: ["keyword", "recordType", "fieldsToSearch"],
8438
+ properties: {
8439
+ keyword: {
8440
+ type: "string",
8441
+ description: "The keyword to search for",
8442
+ },
8443
+ recordType: {
8444
+ type: "string",
8445
+ description: "The type of record to search for",
8446
+ },
8447
+ fieldsToSearch: {
8448
+ type: "array",
8449
+ description: "The fields to search for the keyword",
8450
+ items: {
8451
+ type: "string",
8452
+ },
8453
+ },
8454
+ limit: {
8455
+ type: "number",
8456
+ description: "The maximum number of records to return",
8457
+ },
8458
+ },
8459
+ },
8460
+ output: {
8461
+ type: "object",
8462
+ required: ["success"],
8463
+ properties: {
8464
+ success: {
8465
+ type: "boolean",
8466
+ description: "Whether the records were successfully retrieved",
8467
+ },
8468
+ searchRecords: {
8469
+ type: "array",
8470
+ description: "The records that match the search",
8471
+ items: {
8472
+ type: "object",
8473
+ description: "A record from Salesforce",
8474
+ properties: {
8475
+ id: {
8476
+ type: "string",
8477
+ description: "The Salesforce record ID",
8478
+ },
8479
+ attributes: {
8480
+ type: "object",
8481
+ description: "Metadata about the Salesforce record",
8482
+ properties: {
8483
+ type: {
8484
+ type: "string",
8485
+ description: "The Salesforce object type",
8486
+ },
8487
+ url: {
8488
+ type: "string",
8489
+ description: "The Salesforce record URL",
8490
+ },
8491
+ },
8492
+ required: ["type", "url"],
8493
+ additionalProperties: true,
8494
+ },
8495
+ },
8496
+ },
8497
+ },
8498
+ error: {
8499
+ type: "string",
8500
+ description: "The error that occurred if the records were not successfully retrieved",
8501
+ },
8502
+ },
8503
+ },
8504
+ name: "searchSalesforceRecords",
8505
+ provider: "salesforce",
8506
+ };
8382
8507
  export const salesforceGetSalesforceRecordsByQueryDefinition = {
8383
8508
  description: "Retrieve Salesforce records by SOQL query",
8384
8509
  scopes: [],
@@ -3270,10 +3270,13 @@ export type googleOauthUpdatePresentationOutputType = z.infer<typeof googleOauth
3270
3270
  export type googleOauthUpdatePresentationFunction = ActionFunction<googleOauthUpdatePresentationParamsType, AuthParamsType, googleOauthUpdatePresentationOutputType>;
3271
3271
  export declare const googleOauthSearchDriveByKeywordsParamsSchema: z.ZodObject<{
3272
3272
  keywords: z.ZodArray<z.ZodString, "many">;
3273
+ limit: z.ZodOptional<z.ZodNumber>;
3273
3274
  }, "strip", z.ZodTypeAny, {
3274
3275
  keywords: string[];
3276
+ limit?: number | undefined;
3275
3277
  }, {
3276
3278
  keywords: string[];
3279
+ limit?: number | undefined;
3277
3280
  }>;
3278
3281
  export type googleOauthSearchDriveByKeywordsParamsType = z.infer<typeof googleOauthSearchDriveByKeywordsParamsSchema>;
3279
3282
  export declare const googleOauthSearchDriveByKeywordsOutputSchema: z.ZodObject<{
@@ -3316,6 +3319,38 @@ export declare const googleOauthSearchDriveByKeywordsOutputSchema: z.ZodObject<{
3316
3319
  }>;
3317
3320
  export type googleOauthSearchDriveByKeywordsOutputType = z.infer<typeof googleOauthSearchDriveByKeywordsOutputSchema>;
3318
3321
  export type googleOauthSearchDriveByKeywordsFunction = ActionFunction<googleOauthSearchDriveByKeywordsParamsType, AuthParamsType, googleOauthSearchDriveByKeywordsOutputType>;
3322
+ export declare const googleOauthGetDriveFileContentByIdParamsSchema: z.ZodObject<{
3323
+ fileId: z.ZodString;
3324
+ limit: z.ZodNumber;
3325
+ }, "strip", z.ZodTypeAny, {
3326
+ limit: number;
3327
+ fileId: string;
3328
+ }, {
3329
+ limit: number;
3330
+ fileId: string;
3331
+ }>;
3332
+ export type googleOauthGetDriveFileContentByIdParamsType = z.infer<typeof googleOauthGetDriveFileContentByIdParamsSchema>;
3333
+ export declare const googleOauthGetDriveFileContentByIdOutputSchema: z.ZodObject<{
3334
+ success: z.ZodBoolean;
3335
+ content: z.ZodOptional<z.ZodString>;
3336
+ fileName: z.ZodOptional<z.ZodString>;
3337
+ fileLength: z.ZodOptional<z.ZodNumber>;
3338
+ error: z.ZodOptional<z.ZodString>;
3339
+ }, "strip", z.ZodTypeAny, {
3340
+ success: boolean;
3341
+ error?: string | undefined;
3342
+ content?: string | undefined;
3343
+ fileName?: string | undefined;
3344
+ fileLength?: number | undefined;
3345
+ }, {
3346
+ success: boolean;
3347
+ error?: string | undefined;
3348
+ content?: string | undefined;
3349
+ fileName?: string | undefined;
3350
+ fileLength?: number | undefined;
3351
+ }>;
3352
+ export type googleOauthGetDriveFileContentByIdOutputType = z.infer<typeof googleOauthGetDriveFileContentByIdOutputSchema>;
3353
+ export type googleOauthGetDriveFileContentByIdFunction = ActionFunction<googleOauthGetDriveFileContentByIdParamsType, AuthParamsType, googleOauthGetDriveFileContentByIdOutputType>;
3319
3354
  export declare const googleOauthListGroupsParamsSchema: z.ZodObject<{
3320
3355
  maxResults: z.ZodOptional<z.ZodNumber>;
3321
3356
  }, "strip", z.ZodTypeAny, {
@@ -5420,6 +5455,74 @@ export declare const salesforceGenerateSalesReportOutputSchema: z.ZodObject<{
5420
5455
  }>;
5421
5456
  export type salesforceGenerateSalesReportOutputType = z.infer<typeof salesforceGenerateSalesReportOutputSchema>;
5422
5457
  export type salesforceGenerateSalesReportFunction = ActionFunction<salesforceGenerateSalesReportParamsType, AuthParamsType, salesforceGenerateSalesReportOutputType>;
5458
+ export declare const salesforceSearchSalesforceRecordsParamsSchema: z.ZodObject<{
5459
+ keyword: z.ZodString;
5460
+ recordType: z.ZodString;
5461
+ fieldsToSearch: z.ZodArray<z.ZodString, "many">;
5462
+ limit: z.ZodOptional<z.ZodNumber>;
5463
+ }, "strip", z.ZodTypeAny, {
5464
+ keyword: string;
5465
+ recordType: string;
5466
+ fieldsToSearch: string[];
5467
+ limit?: number | undefined;
5468
+ }, {
5469
+ keyword: string;
5470
+ recordType: string;
5471
+ fieldsToSearch: string[];
5472
+ limit?: number | undefined;
5473
+ }>;
5474
+ export type salesforceSearchSalesforceRecordsParamsType = z.infer<typeof salesforceSearchSalesforceRecordsParamsSchema>;
5475
+ export declare const salesforceSearchSalesforceRecordsOutputSchema: z.ZodObject<{
5476
+ success: z.ZodBoolean;
5477
+ searchRecords: z.ZodOptional<z.ZodArray<z.ZodObject<{
5478
+ id: z.ZodOptional<z.ZodString>;
5479
+ attributes: z.ZodOptional<z.ZodObject<{
5480
+ type: z.ZodString;
5481
+ url: z.ZodString;
5482
+ }, "strip", z.ZodAny, z.objectOutputType<{
5483
+ type: z.ZodString;
5484
+ url: z.ZodString;
5485
+ }, z.ZodAny, "strip">, z.objectInputType<{
5486
+ type: z.ZodString;
5487
+ url: z.ZodString;
5488
+ }, z.ZodAny, "strip">>>;
5489
+ }, "strip", z.ZodTypeAny, {
5490
+ attributes?: z.objectOutputType<{
5491
+ type: z.ZodString;
5492
+ url: z.ZodString;
5493
+ }, z.ZodAny, "strip"> | undefined;
5494
+ id?: string | undefined;
5495
+ }, {
5496
+ attributes?: z.objectInputType<{
5497
+ type: z.ZodString;
5498
+ url: z.ZodString;
5499
+ }, z.ZodAny, "strip"> | undefined;
5500
+ id?: string | undefined;
5501
+ }>, "many">>;
5502
+ error: z.ZodOptional<z.ZodString>;
5503
+ }, "strip", z.ZodTypeAny, {
5504
+ success: boolean;
5505
+ error?: string | undefined;
5506
+ searchRecords?: {
5507
+ attributes?: z.objectOutputType<{
5508
+ type: z.ZodString;
5509
+ url: z.ZodString;
5510
+ }, z.ZodAny, "strip"> | undefined;
5511
+ id?: string | undefined;
5512
+ }[] | undefined;
5513
+ }, {
5514
+ success: boolean;
5515
+ error?: string | undefined;
5516
+ searchRecords?: {
5517
+ attributes?: z.objectInputType<{
5518
+ type: z.ZodString;
5519
+ url: z.ZodString;
5520
+ }, z.ZodAny, "strip"> | undefined;
5521
+ id?: string | undefined;
5522
+ }[] | undefined;
5523
+ }>;
5524
+ export type salesforceSearchSalesforceRecordsOutputType = z.infer<typeof salesforceSearchSalesforceRecordsOutputSchema>;
5525
+ export type salesforceSearchSalesforceRecordsFunction = ActionFunction<salesforceSearchSalesforceRecordsParamsType, AuthParamsType, salesforceSearchSalesforceRecordsOutputType>;
5423
5526
  export declare const salesforceGetSalesforceRecordsByQueryParamsSchema: z.ZodObject<{
5424
5527
  query: z.ZodString;
5425
5528
  limit: z.ZodOptional<z.ZodNumber>;
@@ -2390,6 +2390,7 @@ export const googleOauthUpdatePresentationOutputSchema = z.object({
2390
2390
  });
2391
2391
  export const googleOauthSearchDriveByKeywordsParamsSchema = z.object({
2392
2392
  keywords: z.array(z.string()).describe("List of keywords to search for in file contents."),
2393
+ limit: z.number().int().describe("The maximum number of files to return").optional(),
2393
2394
  });
2394
2395
  export const googleOauthSearchDriveByKeywordsOutputSchema = z.object({
2395
2396
  success: z.boolean().describe("Whether the search was successful"),
@@ -2404,6 +2405,17 @@ export const googleOauthSearchDriveByKeywordsOutputSchema = z.object({
2404
2405
  .optional(),
2405
2406
  error: z.string().describe("Error message if search failed").optional(),
2406
2407
  });
2408
+ export const googleOauthGetDriveFileContentByIdParamsSchema = z.object({
2409
+ fileId: z.string().describe("The ID of the file to get content from"),
2410
+ limit: z.number().int().describe("The character limit for the file content"),
2411
+ });
2412
+ export const googleOauthGetDriveFileContentByIdOutputSchema = z.object({
2413
+ success: z.boolean().describe("Whether the file content was retrieved successfully"),
2414
+ content: z.string().describe("The content of the file").optional(),
2415
+ fileName: z.string().describe("The name of the file").optional(),
2416
+ fileLength: z.number().int().describe("The length of the file content prior to truncating").optional(),
2417
+ error: z.string().describe("Error message if file content retrieval failed").optional(),
2418
+ });
2407
2419
  export const googleOauthListGroupsParamsSchema = z.object({
2408
2420
  maxResults: z.number().int().describe("The maximum number of groups to return (max allowed is 200)").optional(),
2409
2421
  });
@@ -3071,6 +3083,32 @@ export const salesforceGenerateSalesReportOutputSchema = z.object({
3071
3083
  .optional(),
3072
3084
  error: z.string().describe("The error that occurred if the sales report was not successfully generated.").optional(),
3073
3085
  });
3086
+ export const salesforceSearchSalesforceRecordsParamsSchema = z.object({
3087
+ keyword: z.string().describe("The keyword to search for"),
3088
+ recordType: z.string().describe("The type of record to search for"),
3089
+ fieldsToSearch: z.array(z.string()).describe("The fields to search for the keyword"),
3090
+ limit: z.number().describe("The maximum number of records to return").optional(),
3091
+ });
3092
+ export const salesforceSearchSalesforceRecordsOutputSchema = z.object({
3093
+ success: z.boolean().describe("Whether the records were successfully retrieved"),
3094
+ searchRecords: z
3095
+ .array(z
3096
+ .object({
3097
+ id: z.string().describe("The Salesforce record ID").optional(),
3098
+ attributes: z
3099
+ .object({
3100
+ type: z.string().describe("The Salesforce object type"),
3101
+ url: z.string().describe("The Salesforce record URL"),
3102
+ })
3103
+ .catchall(z.any())
3104
+ .describe("Metadata about the Salesforce record")
3105
+ .optional(),
3106
+ })
3107
+ .describe("A record from Salesforce"))
3108
+ .describe("The records that match the search")
3109
+ .optional(),
3110
+ error: z.string().describe("The error that occurred if the records were not successfully retrieved").optional(),
3111
+ });
3074
3112
  export const salesforceGetSalesforceRecordsByQueryParamsSchema = z.object({
3075
3113
  query: z.string().describe("The SOQL query to execute"),
3076
3114
  limit: z.number().describe("The maximum number of records to retrieve").optional(),
@@ -1,4 +1,4 @@
1
- import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, jiraGetServiceDesksDefinition, jiraCreateServiceDeskRequestDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, } from "./autogen/templates.js";
1
+ import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, jiraGetServiceDesksDefinition, jiraCreateServiceDeskRequestDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, googleOauthGetDriveFileContentByIdDefinition, } from "./autogen/templates.js";
2
2
  export const ACTION_GROUPS = {
3
3
  GENERIC: {
4
4
  description: "Generic utility actions",
@@ -46,6 +46,7 @@ export const ACTION_GROUPS = {
46
46
  googleOauthCreatePresentationDefinition,
47
47
  googleOauthUpdatePresentationDefinition,
48
48
  googleOauthSearchDriveByKeywordsDefinition,
49
+ googleOauthGetDriveFileContentByIdDefinition,
49
50
  ],
50
51
  },
51
52
  GOOGLE_CALENDAR: {
@@ -20,8 +20,11 @@ function getConfluenceRequestConfig(baseUrl, username, apiToken) {
20
20
  };
21
21
  }
22
22
  const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
23
- const { pageId, username, content, title } = params;
24
- const { baseUrl, authToken } = 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
+ }
25
28
  const config = getConfluenceRequestConfig(baseUrl, username, authToken);
26
29
  // Get current version number
27
30
  const response = yield axiosClient_1.axiosClient.get(`/api/v2/pages/${pageId}`, config);
@@ -0,0 +1,7 @@
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;
@@ -0,0 +1,18 @@
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;
@@ -0,0 +1,3 @@
1
+ import type { genericUniversalTestActionFunction } from "../../autogen/types";
2
+ declare const genericApiCall: genericUniversalTestActionFunction;
3
+ export default genericApiCall;
@@ -13,22 +13,26 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const axios_1 = __importDefault(require("axios"));
16
- const createTicket = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
17
- const { authToken, baseUrl } = authParams;
18
- const url = `${baseUrl}/rest/api/3/issue`;
19
- const payload = {
20
- fields: Object.assign({ project: {
21
- key: params.projectKey,
22
- }, summary: params.summary, description: params.description, issuetype: {
23
- name: params.issueType,
24
- } }, (params.reporter ? { reporter: { id: params.reporter } } : {})),
25
- };
26
- const response = yield axios_1.default.post(url, payload, {
27
- headers: {
28
- Authorization: `Basic ${Buffer.from(`${params.username}:${authToken}`).toString("base64")}`,
29
- "Content-Type": "application/json",
30
- },
31
- });
32
- return response.data;
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
+ }
33
37
  });
34
- exports.default = createTicket;
38
+ exports.default = genericApiCall;
@@ -0,0 +1,3 @@
1
+ import type { googleOauthGetDriveFileContentByIDFunction } from "../../autogen/types.js";
2
+ declare const getDriveFileContentByID: googleOauthGetDriveFileContentByIDFunction;
3
+ export default getDriveFileContentByID;