@credal/actions 0.2.37 → 0.2.39

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 (31) hide show
  1. package/dist/actions/actionMapper.js +7 -1
  2. package/dist/actions/autogen/templates.d.ts +1 -1
  3. package/dist/actions/autogen/templates.js +60 -59
  4. package/dist/actions/autogen/types.d.ts +51 -48
  5. package/dist/actions/autogen/types.js +17 -15
  6. package/dist/actions/groups.js +2 -1
  7. package/dist/actions/providers/google-oauth/searchDriveByQuery.d.ts +3 -0
  8. package/dist/actions/providers/google-oauth/{searchAndGetDriveContentByKeywords.js → searchDriveByQuery.js} +10 -15
  9. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +3 -0
  10. package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +43 -0
  11. package/dist/actions/providers/salesforce/searchSalesforceRecords.js +10 -1
  12. package/package.json +1 -1
  13. package/dist/actions/providers/confluence/updatePage.d.ts +0 -3
  14. package/dist/actions/providers/confluence/updatePage.js +0 -46
  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/searchDriveAndGetContentByKeywords.d.ts +0 -3
  23. package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.js +0 -110
  24. package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.d.ts +0 -15
  25. package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.js +0 -129
  26. package/dist/actions/providers/googlemaps/nearbysearch.d.ts +0 -3
  27. package/dist/actions/providers/googlemaps/nearbysearch.js +0 -96
  28. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.d.ts +0 -3
  29. package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.js +0 -154
  30. package/dist/actions/providers/x/scrapeTweetDataWithNitter.d.ts +0 -3
  31. 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, } 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, } 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";
@@ -114,6 +114,7 @@ import getServiceDesks from "./providers/jira/getServiceDesks.js";
114
114
  import createServiceDeskRequest from "./providers/jira/createServiceDeskRequest.js";
115
115
  import searchSalesforceRecords from "./providers/salesforce/searchSalesforceRecords.js";
116
116
  import getDriveFileContentById from "./providers/google-oauth/getDriveFileContentById.js";
117
+ import searchDriveByQuery from "./providers/google-oauth/searchDriveByQuery.js";
117
118
  const jiraActions = {
118
119
  getJiraIssuesByQuery: {
119
120
  fn: getJiraIssuesByQuery,
@@ -434,6 +435,11 @@ export const ActionMapper = {
434
435
  paramsSchema: googleOauthSearchDriveByKeywordsParamsSchema,
435
436
  outputSchema: googleOauthSearchDriveByKeywordsOutputSchema,
436
437
  },
438
+ searchDriveByQuery: {
439
+ fn: searchDriveByQuery,
440
+ paramsSchema: googleOauthSearchDriveByQueryParamsSchema,
441
+ outputSchema: googleOauthSearchDriveByQueryOutputSchema,
442
+ },
437
443
  getDriveFileContentById: {
438
444
  fn: getDriveFileContentById,
439
445
  paramsSchema: googleOauthGetDriveFileContentByIdParamsSchema,
@@ -54,7 +54,6 @@ export declare const firecrawlDeepResearchDefinition: ActionTemplate;
54
54
  export declare const firecrawlScrapeUrlDefinition: ActionTemplate;
55
55
  export declare const firecrawlScrapeTweetDataWithNitterDefinition: ActionTemplate;
56
56
  export declare const resendSendEmailDefinition: ActionTemplate;
57
- export declare const googleOauthSearchFilesByKeywordsDefinition: ActionTemplate;
58
57
  export declare const googleOauthCreateNewGoogleDocDefinition: ActionTemplate;
59
58
  export declare const googleOauthUpdateDocDefinition: ActionTemplate;
60
59
  export declare const googleOauthScheduleCalendarMeetingDefinition: ActionTemplate;
@@ -67,6 +66,7 @@ export declare const googleOauthUpdateSpreadsheetDefinition: ActionTemplate;
67
66
  export declare const googleOauthCreatePresentationDefinition: ActionTemplate;
68
67
  export declare const googleOauthUpdatePresentationDefinition: ActionTemplate;
69
68
  export declare const googleOauthSearchDriveByKeywordsDefinition: ActionTemplate;
69
+ export declare const googleOauthSearchDriveByQueryDefinition: ActionTemplate;
70
70
  export declare const googleOauthGetDriveFileContentByIdDefinition: ActionTemplate;
71
71
  export declare const googleOauthListGroupsDefinition: ActionTemplate;
72
72
  export declare const googleOauthGetGroupDefinition: ActionTemplate;
@@ -2723,65 +2723,6 @@ export const resendSendEmailDefinition = {
2723
2723
  name: "sendEmail",
2724
2724
  provider: "resend",
2725
2725
  };
2726
- export const googleOauthSearchFilesByKeywordsDefinition = {
2727
- description: "Search Google Drive files that contain one or more keywords in their full text.",
2728
- scopes: ["https://www.googleapis.com/auth/drive.readonly"],
2729
- parameters: {
2730
- type: "object",
2731
- required: ["keywords"],
2732
- properties: {
2733
- keywords: {
2734
- type: "array",
2735
- description: "List of keywords to search for in file contents.",
2736
- items: {
2737
- type: "string",
2738
- },
2739
- },
2740
- },
2741
- },
2742
- output: {
2743
- type: "object",
2744
- required: ["success", "files"],
2745
- properties: {
2746
- success: {
2747
- type: "boolean",
2748
- description: "Whether the search was successful",
2749
- },
2750
- files: {
2751
- type: "array",
2752
- description: "List of files matching the search",
2753
- items: {
2754
- type: "object",
2755
- required: ["id", "name", "mimeType", "webViewLink"],
2756
- properties: {
2757
- id: {
2758
- type: "string",
2759
- description: "The file ID",
2760
- },
2761
- name: {
2762
- type: "string",
2763
- description: "The file name",
2764
- },
2765
- mimeType: {
2766
- type: "string",
2767
- description: "The MIME type of the file",
2768
- },
2769
- webViewLink: {
2770
- type: "string",
2771
- description: "The web link to view the file",
2772
- },
2773
- },
2774
- },
2775
- },
2776
- error: {
2777
- type: "string",
2778
- description: "Error message if search failed",
2779
- },
2780
- },
2781
- },
2782
- name: "searchFilesByKeywords",
2783
- provider: "googleOauth",
2784
- };
2785
2726
  export const googleOauthCreateNewGoogleDocDefinition = {
2786
2727
  description: "Create a new Google Docs document using OAuth authentication",
2787
2728
  scopes: [],
@@ -6224,6 +6165,66 @@ export const googleOauthSearchDriveByKeywordsDefinition = {
6224
6165
  name: "searchDriveByKeywords",
6225
6166
  provider: "googleOauth",
6226
6167
  };
6168
+ export const googleOauthSearchDriveByQueryDefinition = {
6169
+ description: "Search Google Drive files based on a gdrive query provided.",
6170
+ scopes: ["drive.readonly"],
6171
+ parameters: {
6172
+ type: "object",
6173
+ required: ["query"],
6174
+ properties: {
6175
+ query: {
6176
+ type: "string",
6177
+ description: "The query to search for in file contents.",
6178
+ },
6179
+ limit: {
6180
+ type: "number",
6181
+ description: "The maximum number of files to return",
6182
+ },
6183
+ },
6184
+ },
6185
+ output: {
6186
+ type: "object",
6187
+ required: ["success"],
6188
+ properties: {
6189
+ success: {
6190
+ type: "boolean",
6191
+ description: "Whether the search was successful",
6192
+ },
6193
+ files: {
6194
+ type: "array",
6195
+ description: "List of files matching the search",
6196
+ items: {
6197
+ type: "object",
6198
+ required: ["id", "name", "mimeType", "url"],
6199
+ properties: {
6200
+ id: {
6201
+ type: "string",
6202
+ description: "The file ID",
6203
+ },
6204
+ name: {
6205
+ type: "string",
6206
+ description: "The file name",
6207
+ },
6208
+ mimeType: {
6209
+ type: "string",
6210
+ description: "The MIME type of the file",
6211
+ },
6212
+ url: {
6213
+ type: "string",
6214
+ description: "The web link to view the file",
6215
+ },
6216
+ },
6217
+ },
6218
+ },
6219
+ error: {
6220
+ type: "string",
6221
+ description: "Error message if search failed",
6222
+ },
6223
+ },
6224
+ },
6225
+ name: "searchDriveByQuery",
6226
+ provider: "googleOauth",
6227
+ };
6227
6228
  export const googleOauthGetDriveFileContentByIdDefinition = {
6228
6229
  description: "Get text content of a Google Drive file by its ID.",
6229
6230
  scopes: ["drive.readonly"],
@@ -2481,54 +2481,6 @@ export declare const resendSendEmailOutputSchema: z.ZodObject<{
2481
2481
  }>;
2482
2482
  export type resendSendEmailOutputType = z.infer<typeof resendSendEmailOutputSchema>;
2483
2483
  export type resendSendEmailFunction = ActionFunction<resendSendEmailParamsType, AuthParamsType, resendSendEmailOutputType>;
2484
- export declare const googleOauthSearchFilesByKeywordsParamsSchema: z.ZodObject<{
2485
- keywords: z.ZodArray<z.ZodString, "many">;
2486
- }, "strip", z.ZodTypeAny, {
2487
- keywords: string[];
2488
- }, {
2489
- keywords: string[];
2490
- }>;
2491
- export type googleOauthSearchFilesByKeywordsParamsType = z.infer<typeof googleOauthSearchFilesByKeywordsParamsSchema>;
2492
- export declare const googleOauthSearchFilesByKeywordsOutputSchema: z.ZodObject<{
2493
- success: z.ZodBoolean;
2494
- files: z.ZodArray<z.ZodObject<{
2495
- id: z.ZodString;
2496
- name: z.ZodString;
2497
- mimeType: z.ZodString;
2498
- webViewLink: z.ZodString;
2499
- }, "strip", z.ZodTypeAny, {
2500
- name: string;
2501
- id: string;
2502
- mimeType: string;
2503
- webViewLink: string;
2504
- }, {
2505
- name: string;
2506
- id: string;
2507
- mimeType: string;
2508
- webViewLink: string;
2509
- }>, "many">;
2510
- error: z.ZodOptional<z.ZodString>;
2511
- }, "strip", z.ZodTypeAny, {
2512
- success: boolean;
2513
- files: {
2514
- name: string;
2515
- id: string;
2516
- mimeType: string;
2517
- webViewLink: string;
2518
- }[];
2519
- error?: string | undefined;
2520
- }, {
2521
- success: boolean;
2522
- files: {
2523
- name: string;
2524
- id: string;
2525
- mimeType: string;
2526
- webViewLink: string;
2527
- }[];
2528
- error?: string | undefined;
2529
- }>;
2530
- export type googleOauthSearchFilesByKeywordsOutputType = z.infer<typeof googleOauthSearchFilesByKeywordsOutputSchema>;
2531
- export type googleOauthSearchFilesByKeywordsFunction = ActionFunction<googleOauthSearchFilesByKeywordsParamsType, AuthParamsType, googleOauthSearchFilesByKeywordsOutputType>;
2532
2484
  export declare const googleOauthCreateNewGoogleDocParamsSchema: z.ZodObject<{
2533
2485
  title: z.ZodString;
2534
2486
  content: z.ZodOptional<z.ZodString>;
@@ -3319,6 +3271,57 @@ export declare const googleOauthSearchDriveByKeywordsOutputSchema: z.ZodObject<{
3319
3271
  }>;
3320
3272
  export type googleOauthSearchDriveByKeywordsOutputType = z.infer<typeof googleOauthSearchDriveByKeywordsOutputSchema>;
3321
3273
  export type googleOauthSearchDriveByKeywordsFunction = ActionFunction<googleOauthSearchDriveByKeywordsParamsType, AuthParamsType, googleOauthSearchDriveByKeywordsOutputType>;
3274
+ export declare const googleOauthSearchDriveByQueryParamsSchema: z.ZodObject<{
3275
+ query: z.ZodString;
3276
+ limit: z.ZodOptional<z.ZodNumber>;
3277
+ }, "strip", z.ZodTypeAny, {
3278
+ query: string;
3279
+ limit?: number | undefined;
3280
+ }, {
3281
+ query: string;
3282
+ limit?: number | undefined;
3283
+ }>;
3284
+ export type googleOauthSearchDriveByQueryParamsType = z.infer<typeof googleOauthSearchDriveByQueryParamsSchema>;
3285
+ export declare const googleOauthSearchDriveByQueryOutputSchema: z.ZodObject<{
3286
+ success: z.ZodBoolean;
3287
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
3288
+ id: z.ZodString;
3289
+ name: z.ZodString;
3290
+ mimeType: z.ZodString;
3291
+ url: z.ZodString;
3292
+ }, "strip", z.ZodTypeAny, {
3293
+ name: string;
3294
+ id: string;
3295
+ url: string;
3296
+ mimeType: string;
3297
+ }, {
3298
+ name: string;
3299
+ id: string;
3300
+ url: string;
3301
+ mimeType: string;
3302
+ }>, "many">>;
3303
+ error: z.ZodOptional<z.ZodString>;
3304
+ }, "strip", z.ZodTypeAny, {
3305
+ success: boolean;
3306
+ error?: string | undefined;
3307
+ files?: {
3308
+ name: string;
3309
+ id: string;
3310
+ url: string;
3311
+ mimeType: string;
3312
+ }[] | undefined;
3313
+ }, {
3314
+ success: boolean;
3315
+ error?: string | undefined;
3316
+ files?: {
3317
+ name: string;
3318
+ id: string;
3319
+ url: string;
3320
+ mimeType: string;
3321
+ }[] | undefined;
3322
+ }>;
3323
+ export type googleOauthSearchDriveByQueryOutputType = z.infer<typeof googleOauthSearchDriveByQueryOutputSchema>;
3324
+ export type googleOauthSearchDriveByQueryFunction = ActionFunction<googleOauthSearchDriveByQueryParamsType, AuthParamsType, googleOauthSearchDriveByQueryOutputType>;
3322
3325
  export declare const googleOauthGetDriveFileContentByIdParamsSchema: z.ZodObject<{
3323
3326
  fileId: z.ZodString;
3324
3327
  limit: z.ZodNumber;
@@ -819,21 +819,6 @@ export const resendSendEmailOutputSchema = z.object({
819
819
  success: z.boolean().describe("Whether the email was sent successfully"),
820
820
  error: z.string().describe("The error that occurred if the email was not sent successfully").optional(),
821
821
  });
822
- export const googleOauthSearchFilesByKeywordsParamsSchema = z.object({
823
- keywords: z.array(z.string()).describe("List of keywords to search for in file contents."),
824
- });
825
- export const googleOauthSearchFilesByKeywordsOutputSchema = z.object({
826
- success: z.boolean().describe("Whether the search was successful"),
827
- files: z
828
- .array(z.object({
829
- id: z.string().describe("The file ID"),
830
- name: z.string().describe("The file name"),
831
- mimeType: z.string().describe("The MIME type of the file"),
832
- webViewLink: z.string().describe("The web link to view the file"),
833
- }))
834
- .describe("List of files matching the search"),
835
- error: z.string().describe("Error message if search failed").optional(),
836
- });
837
822
  export const googleOauthCreateNewGoogleDocParamsSchema = z.object({
838
823
  title: z.string().describe("The title of the new Google Doc"),
839
824
  content: z.string().describe("The content to add to the new Google Doc").optional(),
@@ -2389,6 +2374,23 @@ export const googleOauthSearchDriveByKeywordsOutputSchema = z.object({
2389
2374
  .optional(),
2390
2375
  error: z.string().describe("Error message if search failed").optional(),
2391
2376
  });
2377
+ export const googleOauthSearchDriveByQueryParamsSchema = z.object({
2378
+ query: z.string().describe("The query to search for in file contents."),
2379
+ limit: z.number().describe("The maximum number of files to return").optional(),
2380
+ });
2381
+ export const googleOauthSearchDriveByQueryOutputSchema = z.object({
2382
+ success: z.boolean().describe("Whether the search was successful"),
2383
+ files: z
2384
+ .array(z.object({
2385
+ id: z.string().describe("The file ID"),
2386
+ name: z.string().describe("The file name"),
2387
+ mimeType: z.string().describe("The MIME type of the file"),
2388
+ url: z.string().describe("The web link to view the file"),
2389
+ }))
2390
+ .describe("List of files matching the search")
2391
+ .optional(),
2392
+ error: z.string().describe("Error message if search failed").optional(),
2393
+ });
2392
2394
  export const googleOauthGetDriveFileContentByIdParamsSchema = z.object({
2393
2395
  fileId: z.string().describe("The ID of the file to get content from"),
2394
2396
  limit: z.number().describe("The character limit for the file content"),
@@ -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, googleOauthGetDriveFileContentByIdDefinition, } 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, googleOauthSearchDriveByQueryDefinition, } 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
+ googleOauthSearchDriveByQueryDefinition,
49
50
  googleOauthGetDriveFileContentByIdDefinition,
50
51
  ],
51
52
  },
@@ -0,0 +1,3 @@
1
+ import type { googleOauthSearchDriveByQueryFunction } from "../../autogen/types.js";
2
+ declare const searchDriveByQuery: googleOauthSearchDriveByQueryFunction;
3
+ export default searchDriveByQuery;
@@ -9,30 +9,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { axiosClient } from "../../util/axiosClient.js";
11
11
  import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
- const searchDriveByKeywords = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
12
+ const searchDriveByQuery = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
13
13
  var _b;
14
14
  if (!authParams.authToken) {
15
15
  return { success: false, error: MISSING_AUTH_TOKEN, files: [] };
16
16
  }
17
- const { keywords, limit } = params;
18
- // Build the query: fullText contains 'keyword1' or fullText contains 'keyword2' ...
19
- const query = keywords.map(kw => `fullText contains '${kw.replace(/'/g, "\\'")}'`).join(" or ");
17
+ const { query, limit } = params;
20
18
  const url = `https://www.googleapis.com/drive/v3/files?q=${encodeURIComponent(query)}&fields=files(id,name,mimeType,webViewLink)&supportsAllDrives=true&includeItemsFromAllDrives=true`;
21
- // 1. Get the file metadata from google drive search
22
- let files = [];
23
19
  try {
24
20
  const res = yield axiosClient.get(url, {
25
21
  headers: {
26
22
  Authorization: `Bearer ${authParams.authToken}`,
27
23
  },
28
24
  });
29
- files =
30
- ((_b = res.data.files) === null || _b === void 0 ? void 0 : _b.map((file) => ({
31
- id: file.id || "",
32
- name: file.name || "",
33
- mimeType: file.mimeType || "",
34
- url: file.webViewLink || "",
35
- }))) || [];
25
+ const files = ((_b = res.data.files) === null || _b === void 0 ? void 0 : _b.map((file) => ({
26
+ id: file.id || "",
27
+ name: file.name || "",
28
+ mimeType: file.mimeType || "",
29
+ url: file.webViewLink || "",
30
+ }))) || [];
31
+ return { success: true, files: limit ? files.splice(0, limit) : files };
36
32
  }
37
33
  catch (error) {
38
34
  console.error("Error searching Google Drive", error);
@@ -42,6 +38,5 @@ const searchDriveByKeywords = (_a) => __awaiter(void 0, [_a], void 0, function*
42
38
  files: [],
43
39
  };
44
40
  }
45
- files = limit ? files.splice(0, limit) : files;
46
41
  });
47
- export default searchDriveByKeywords;
42
+ export default searchDriveByQuery;
@@ -0,0 +1,3 @@
1
+ import { salesforceGetSalesforceRecordsByQueryFunction } from "../../autogen/types";
2
+ declare const getSalesforceRecordByQuery: salesforceGetSalesforceRecordsByQueryFunction;
3
+ export default getSalesforceRecordByQuery;
@@ -0,0 +1,43 @@
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 axiosClient_1 = require("../../util/axiosClient");
13
+ const getSalesforceRecordByQuery = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
14
+ const { authToken, baseUrl } = authParams;
15
+ const { query, limit } = params;
16
+ if (!authToken || !baseUrl) {
17
+ return {
18
+ success: false,
19
+ error: "authToken and baseUrl are required for Salesforce API",
20
+ };
21
+ }
22
+ // The API limits the maximum number of records returned to 2000, the limit lets the user set a smaller custom limit
23
+ const url = `${baseUrl}/services/data/v56.0/query/?q=${encodeURIComponent(query + " LIMIT " + (limit != undefined && limit <= 2000 ? limit : 2000))}`;
24
+ try {
25
+ const response = yield axiosClient_1.axiosClient.get(url, {
26
+ headers: {
27
+ Authorization: `Bearer ${authToken}`,
28
+ },
29
+ });
30
+ return {
31
+ success: true,
32
+ records: response.data,
33
+ };
34
+ }
35
+ catch (error) {
36
+ console.error("Error retrieving Salesforce record:", error);
37
+ return {
38
+ success: false,
39
+ error: error instanceof Error ? error.message : "An unknown error occurred",
40
+ };
41
+ }
42
+ });
43
+ exports.default = getSalesforceRecordByQuery;
@@ -28,7 +28,16 @@ const searchSalesforceRecords = (_a) => __awaiter(void 0, [_a], void 0, function
28
28
  if (recordType === "Knowledge__kav") {
29
29
  for (const record of response.data.searchRecords) {
30
30
  if (record.Article_Body__c) {
31
- record.Article_Body__c = record.Article_Body__c.replace(/<[^>]*>/g, "");
31
+ record.Article_Body__c = record.Article_Body__c
32
+ // Convert links to text (URL) format
33
+ .replace(/<a[^>]*href="([^"]*)"[^>]*>(.*?)<\/a>/gi, "$2 ($1)")
34
+ // Add line breaks for block elements
35
+ .replace(/<\/?(p|div|br|h[1-6])[^>]*>/gi, "\n")
36
+ // Remove all other HTML tags
37
+ .replace(/<[^>]*>/g, "")
38
+ // Clean up extra whitespace
39
+ .replace(/\n\s*\n/g, "\n")
40
+ .trim();
32
41
  }
33
42
  }
34
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.37",
3
+ "version": "0.2.39",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,
@@ -1,3 +0,0 @@
1
- import { confluenceUpdatePageFunction } from "../../../actions/autogen/types";
2
- declare const confluenceUpdatePage: confluenceUpdatePageFunction;
3
- export default confluenceUpdatePage;
@@ -1,46 +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 axiosClient_1 = require("../../util/axiosClient");
13
- function getConfluenceRequestConfig(baseUrl, username, apiToken) {
14
- return {
15
- baseURL: baseUrl,
16
- headers: {
17
- Accept: "application/json",
18
- Authorization: `Basic ${Buffer.from(`${username}:${apiToken}`).toString("base64")}`,
19
- },
20
- };
21
- }
22
- 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);
29
- // Get current version number
30
- const response = yield axiosClient_1.axiosClient.get(`/api/v2/pages/${pageId}`, config);
31
- const currVersion = response.data.version.number;
32
- const payload = {
33
- id: pageId,
34
- status: "current",
35
- title,
36
- body: {
37
- representation: "storage",
38
- value: content,
39
- },
40
- version: {
41
- number: currVersion + 1,
42
- },
43
- };
44
- yield axiosClient_1.axiosClient.put(`/api/v2/pages/${pageId}`, payload, config);
45
- });
46
- exports.default = confluenceUpdatePage;
@@ -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;