@credal/actions 0.2.197 → 0.2.199
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.
- package/dist/actions/actionMapper.js +8 -1
- package/dist/actions/autogen/templates.d.ts +1 -0
- package/dist/actions/autogen/templates.js +79 -18
- package/dist/actions/autogen/types.d.ts +39 -0
- package/dist/actions/autogen/types.js +43 -8
- package/dist/actions/groups.js +4 -1
- package/dist/actions/invoke.js +11 -22
- package/dist/actions/parse.js +231 -244
- package/dist/actions/providers/asana/commentAsanaTask.js +8 -15
- package/dist/actions/providers/asana/createAsanaTask.js +20 -21
- package/dist/actions/providers/asana/getTasksDetails.js +18 -34
- package/dist/actions/providers/asana/listAsanaTasksByProject.js +62 -79
- package/dist/actions/providers/asana/searchAsanaTasks.js +6 -16
- package/dist/actions/providers/asana/updateAsanaTask.js +16 -15
- package/dist/actions/providers/asana/utils.js +47 -64
- package/dist/actions/providers/bing/getTopNSearchResultUrls.js +4 -14
- package/dist/actions/providers/confluence/fetchPageContent.js +5 -15
- package/dist/actions/providers/confluence/overwritePage.js +5 -14
- package/dist/actions/providers/finnhub/getBasicFinancials.js +7 -19
- package/dist/actions/providers/finnhub/symbolLookup.js +3 -12
- package/dist/actions/providers/firecrawl/deepResearch.js +11 -21
- package/dist/actions/providers/firecrawl/getTopNSearchResultUrls.js +8 -21
- package/dist/actions/providers/firecrawl/scrapeTweetDataWithNitter.js +4 -13
- package/dist/actions/providers/firecrawl/scrapeUrl.js +16 -21
- package/dist/actions/providers/firecrawl/searchAndScrape.js +6 -17
- package/dist/actions/providers/generic/fillTemplate.js +2 -11
- package/dist/actions/providers/github/createBranch.js +9 -18
- package/dist/actions/providers/github/createOrUpdateFile.js +6 -15
- package/dist/actions/providers/github/createPullRequest.js +5 -14
- package/dist/actions/providers/github/fetchFile.d.ts +3 -0
- package/dist/actions/providers/github/fetchFile.js +131 -0
- package/dist/actions/providers/github/getBranch.js +4 -13
- package/dist/actions/providers/github/getContents.d.ts +3 -0
- package/dist/actions/providers/github/getContents.js +41 -0
- package/dist/actions/providers/github/getFileContent.js +6 -16
- package/dist/actions/providers/github/getPullRequestDetails.js +39 -18
- package/dist/actions/providers/github/listCommits.js +17 -15
- package/dist/actions/providers/github/listDirectory.js +13 -25
- package/dist/actions/providers/github/listPullRequests.js +4 -13
- package/dist/actions/providers/github/searchOrganization.js +29 -49
- package/dist/actions/providers/github/utils.js +5 -16
- package/dist/actions/providers/gitlab/getFileContent.js +13 -24
- package/dist/actions/providers/gitlab/getMergeRequest.js +18 -30
- package/dist/actions/providers/gitlab/listDirectory.js +15 -27
- package/dist/actions/providers/gitlab/searchGroup.js +45 -52
- package/dist/actions/providers/gitlab/utils.js +19 -32
- package/dist/actions/providers/google-oauth/addGroupMember.js +3 -12
- package/dist/actions/providers/google-oauth/addTextToTopOfDoc.js +3 -12
- package/dist/actions/providers/google-oauth/appendRowsToSpreadsheet.js +4 -13
- package/dist/actions/providers/google-oauth/createNewGoogleDoc.js +7 -17
- package/dist/actions/providers/google-oauth/createPresentation.js +7 -13
- package/dist/actions/providers/google-oauth/createSpreadsheet.js +7 -13
- package/dist/actions/providers/google-oauth/deleteCalendarEvent.js +3 -12
- package/dist/actions/providers/google-oauth/deleteGroupMember.js +3 -12
- package/dist/actions/providers/google-oauth/deleteRowFromSpreadsheet.js +3 -12
- package/dist/actions/providers/google-oauth/editAGoogleCalendarEvent.js +4 -14
- package/dist/actions/providers/google-oauth/getDriveFileContentById.js +23 -33
- package/dist/actions/providers/google-oauth/getGroup.js +3 -12
- package/dist/actions/providers/google-oauth/getPresentation.js +23 -37
- package/dist/actions/providers/google-oauth/hasGroupMember.js +3 -12
- package/dist/actions/providers/google-oauth/listCalendarEvents.js +27 -21
- package/dist/actions/providers/google-oauth/listCalendars.js +4 -14
- package/dist/actions/providers/google-oauth/listGroupMembers.js +4 -13
- package/dist/actions/providers/google-oauth/listGroups.js +4 -14
- package/dist/actions/providers/google-oauth/queryGoogleBigQuery.js +10 -21
- package/dist/actions/providers/google-oauth/scheduleCalendarMeeting.js +11 -14
- package/dist/actions/providers/google-oauth/searchDriveByKeywords.js +3 -12
- package/dist/actions/providers/google-oauth/searchDriveByKeywordsAndGetFileContent.js +12 -23
- package/dist/actions/providers/google-oauth/searchDriveByQuery.js +30 -42
- package/dist/actions/providers/google-oauth/searchDriveByQueryAndGetFileContent.js +9 -20
- package/dist/actions/providers/google-oauth/updateCalendarEvent.js +3 -12
- package/dist/actions/providers/google-oauth/updateDoc.js +3 -12
- package/dist/actions/providers/google-oauth/updatePresentation.js +3 -12
- package/dist/actions/providers/google-oauth/updateRowsInSpreadsheet.js +4 -13
- package/dist/actions/providers/google-oauth/updateSpreadsheet.js +3 -12
- package/dist/actions/providers/google-oauth/utils/decodeMessage.js +7 -8
- package/dist/actions/providers/googleSearch/customSearch.js +18 -36
- package/dist/actions/providers/googlemail/listGmailThreads.js +7 -16
- package/dist/actions/providers/googlemail/replyToGmail.d.ts +3 -0
- package/dist/actions/providers/googlemail/replyToGmail.js +89 -0
- package/dist/actions/providers/googlemail/searchGmailMessages.js +10 -20
- package/dist/actions/providers/googlemail/sendGmail.js +7 -17
- package/dist/actions/providers/googlemaps/nearbysearchRestaurants.js +13 -25
- package/dist/actions/providers/googlemaps/validateAddress.js +3 -12
- package/dist/actions/providers/hubspot/getCompanies.js +4 -14
- package/dist/actions/providers/hubspot/getCompanyDetails.js +3 -12
- package/dist/actions/providers/hubspot/getContactDetails.js +3 -12
- package/dist/actions/providers/hubspot/getContacts.js +4 -14
- package/dist/actions/providers/hubspot/getDealDetails.js +3 -12
- package/dist/actions/providers/hubspot/getDeals.js +3 -12
- package/dist/actions/providers/hubspot/getTicketDetails.js +3 -12
- package/dist/actions/providers/hubspot/getTickets.js +3 -12
- package/dist/actions/providers/jira/assignJiraTicket.js +4 -13
- package/dist/actions/providers/jira/commentJiraTicket.js +3 -12
- package/dist/actions/providers/jira/createJiraTicket.js +22 -18
- package/dist/actions/providers/jira/createServiceDeskRequest.js +3 -12
- package/dist/actions/providers/jira/getJiraDCIssuesByQuery.js +5 -14
- package/dist/actions/providers/jira/getJiraIssuesByQuery.js +19 -29
- package/dist/actions/providers/jira/getJiraTicketDetails.js +3 -12
- package/dist/actions/providers/jira/getJiraTicketHistory.js +3 -12
- package/dist/actions/providers/jira/moveJiraTicketToProject.js +11 -21
- package/dist/actions/providers/jira/publicCommentOnServiceDeskRequest.js +3 -12
- package/dist/actions/providers/jira/updateJiraTicketDetails.js +15 -15
- package/dist/actions/providers/jira/updateJiraTicketStatus.js +4 -13
- package/dist/actions/providers/jira/utils.js +104 -126
- package/dist/actions/providers/linear/getIssueDetails.js +10 -20
- package/dist/actions/providers/linear/getIssues.js +11 -21
- package/dist/actions/providers/linear/getProjectDetails.js +10 -20
- package/dist/actions/providers/linear/getProjects.js +6 -16
- package/dist/actions/providers/linear/getTeamDetails.js +7 -17
- package/dist/actions/providers/linear/getTeams.js +5 -15
- package/dist/actions/providers/looker/enableUserByEmail.js +5 -14
- package/dist/actions/providers/math/add.js +2 -11
- package/dist/actions/providers/microsoft/createDocument.js +4 -13
- package/dist/actions/providers/microsoft/getDocument.js +4 -13
- package/dist/actions/providers/microsoft/messageTeamsChannel.js +4 -13
- package/dist/actions/providers/microsoft/messageTeamsChat.js +4 -13
- package/dist/actions/providers/microsoft/updateDocument.js +4 -13
- package/dist/actions/providers/microsoft/updateSpreadsheet.js +4 -13
- package/dist/actions/providers/microsoft/utils.js +9 -20
- package/dist/actions/providers/mongodb/insertMongoDoc.js +5 -14
- package/dist/actions/providers/notion/searchByTitle.js +3 -12
- package/dist/actions/providers/nws/getForecastForLocation.js +4 -13
- package/dist/actions/providers/oktaOrg/getOktaUserByName.js +3 -12
- package/dist/actions/providers/openstreetmap/getLatitudeLongitudeFromLocation.js +3 -12
- package/dist/actions/providers/perplexity/perplexityDeepResearch.js +11 -21
- package/dist/actions/providers/resend/sendEmail.js +3 -12
- package/dist/actions/providers/resend/sendEmailHtml.js +3 -12
- package/dist/actions/providers/salesforce/createCase.js +10 -13
- package/dist/actions/providers/salesforce/createRecord.js +3 -12
- package/dist/actions/providers/salesforce/executeReport.js +3 -12
- package/dist/actions/providers/salesforce/generateSalesReport.js +3 -12
- package/dist/actions/providers/salesforce/getRecord.js +3 -12
- package/dist/actions/providers/salesforce/getReportMetadata.js +11 -21
- package/dist/actions/providers/salesforce/getSalesforceRecordsByQuery.js +7 -17
- package/dist/actions/providers/salesforce/listReports.js +3 -12
- package/dist/actions/providers/salesforce/searchAllSalesforceRecords.js +3 -12
- package/dist/actions/providers/salesforce/searchSalesforceRecords.js +3 -12
- package/dist/actions/providers/salesforce/updateRecord.js +3 -12
- package/dist/actions/providers/slack/archiveChannel.js +9 -2
- package/dist/actions/providers/slack/createChannel.js +7 -17
- package/dist/actions/providers/slack/getChannelMembers.js +8 -18
- package/dist/actions/providers/slack/getChannelMessages.js +8 -18
- package/dist/actions/providers/slack/helpers.js +16 -47
- package/dist/actions/providers/slack/messageTransformers.js +10 -13
- package/dist/actions/providers/slack/sendDmFromBot.js +9 -19
- package/dist/actions/providers/slack/sendMessage.js +7 -17
- package/dist/actions/providers/slackUser/searchSlack.js +179 -212
- package/dist/actions/providers/slackUser/searchSlackRTS.js +20 -33
- package/dist/actions/providers/slackUser/utils.js +1 -1
- package/dist/actions/providers/snowflake/auth/getSnowflakeConnection.js +23 -34
- package/dist/actions/providers/snowflake/getRowByFieldValue.js +4 -13
- package/dist/actions/providers/snowflake/runSnowflakeQuery.js +9 -19
- package/dist/actions/providers/zendesk/addCommentToTicket.js +5 -14
- package/dist/actions/providers/zendesk/assignTicket.js +3 -12
- package/dist/actions/providers/zendesk/createZendeskTicket.js +3 -12
- package/dist/actions/providers/zendesk/getTicketDetails.js +3 -12
- package/dist/actions/providers/zendesk/listTickets.js +3 -12
- package/dist/actions/providers/zendesk/searchZendeskByQuery.js +3 -12
- package/dist/actions/providers/zendesk/updateTicketStatus.js +3 -12
- package/dist/actions/util/axiosClient.js +5 -5
- package/dist/app.js +14 -25
- package/dist/utils/google.js +122 -143
- package/dist/utils/pdf.js +10 -21
- package/package.json +10 -9
- package/dist/actions/providers/credal/callCopilot.d.ts +0 -3
- package/dist/actions/providers/credal/callCopilot.js +0 -36
- package/dist/actions/providers/math/index.d.ts +0 -1
- package/dist/actions/providers/math/index.js +0 -37
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +0 -3
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +0 -43
- package/dist/actions/providers/slack/index.d.ts +0 -1
- package/dist/actions/providers/slack/index.js +0 -37
- package/dist/actions/providers/slack/listConversations.d.ts +0 -3
- package/dist/actions/providers/slack/listConversations.js +0 -41
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraMoveJiraTicketToProjectParamsSchema, jiraMoveJiraTicketToProjectOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthAddTextToTopOfDocParamsSchema, googleOauthAddTextToTopOfDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthAppendRowsToSpreadsheetParamsSchema, googleOauthAppendRowsToSpreadsheetOutputSchema, googleOauthDeleteRowFromSpreadsheetParamsSchema, googleOauthDeleteRowFromSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, slackUserSearchSlackRTSParamsSchema, slackUserSearchSlackRTSOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, salesforceListReportsParamsSchema, salesforceListReportsOutputSchema, salesforceExecuteReportParamsSchema, salesforceExecuteReportOutputSchema, slackSendDmFromBotParamsSchema, slackSendDmFromBotOutputSchema, slackGetChannelMembersParamsSchema, slackGetChannelMembersOutputSchema, salesforceGetReportMetadataParamsSchema, salesforceGetReportMetadataOutputSchema, googleOauthUpdateRowsInSpreadsheetParamsSchema, googleOauthUpdateRowsInSpreadsheetOutputSchema, } from "./autogen/types.js";
|
|
1
|
+
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraMoveJiraTicketToProjectParamsSchema, jiraMoveJiraTicketToProjectOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthAddTextToTopOfDocParamsSchema, googleOauthAddTextToTopOfDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthAppendRowsToSpreadsheetParamsSchema, googleOauthAppendRowsToSpreadsheetOutputSchema, googleOauthDeleteRowFromSpreadsheetParamsSchema, googleOauthDeleteRowFromSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, googlemailReplyToGmailParamsSchema, googlemailReplyToGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, slackUserSearchSlackRTSParamsSchema, slackUserSearchSlackRTSOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, salesforceListReportsParamsSchema, salesforceListReportsOutputSchema, salesforceExecuteReportParamsSchema, salesforceExecuteReportOutputSchema, slackSendDmFromBotParamsSchema, slackSendDmFromBotOutputSchema, slackGetChannelMembersParamsSchema, slackGetChannelMembersOutputSchema, salesforceGetReportMetadataParamsSchema, salesforceGetReportMetadataOutputSchema, googleOauthUpdateRowsInSpreadsheetParamsSchema, googleOauthUpdateRowsInSpreadsheetOutputSchema, } 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";
|
|
@@ -123,6 +123,7 @@ import gitlabGetMergeRequest from "./providers/gitlab/getMergeRequest.js";
|
|
|
123
123
|
import gitlabListDirectory from "./providers/gitlab/listDirectory.js";
|
|
124
124
|
import publicCommentOnServiceDeskRequest from "./providers/jira/publicCommentOnServiceDeskRequest.js";
|
|
125
125
|
import sendGmail from "./providers/googlemail/sendGmail.js";
|
|
126
|
+
import replyToGmail from "./providers/googlemail/replyToGmail.js";
|
|
126
127
|
import searchAndScrape from "./providers/firecrawl/searchAndScrape.js";
|
|
127
128
|
import firecrawlGetTopNSearchResultUrls from "./providers/firecrawl/getTopNSearchResultUrls.js";
|
|
128
129
|
import searchDriveByKeywordsAndGetFileContent from "./providers/google-oauth/searchDriveByKeywordsAndGetFileContent.js";
|
|
@@ -719,6 +720,12 @@ export const ActionMapper = {
|
|
|
719
720
|
outputSchema: googlemailSendGmailOutputSchema,
|
|
720
721
|
actionType: "write",
|
|
721
722
|
},
|
|
723
|
+
replyToGmail: {
|
|
724
|
+
fn: replyToGmail,
|
|
725
|
+
paramsSchema: googlemailReplyToGmailParamsSchema,
|
|
726
|
+
outputSchema: googlemailReplyToGmailOutputSchema,
|
|
727
|
+
actionType: "write",
|
|
728
|
+
},
|
|
722
729
|
},
|
|
723
730
|
googleSearch: {
|
|
724
731
|
customSearch: {
|
|
@@ -106,6 +106,7 @@ export declare const googleOauthQueryGoogleBigQueryDefinition: ActionTemplate;
|
|
|
106
106
|
export declare const googlemailSearchGmailMessagesDefinition: ActionTemplate;
|
|
107
107
|
export declare const googlemailListGmailThreadsDefinition: ActionTemplate;
|
|
108
108
|
export declare const googlemailSendGmailDefinition: ActionTemplate;
|
|
109
|
+
export declare const googlemailReplyToGmailDefinition: ActionTemplate;
|
|
109
110
|
export declare const googleSearchCustomSearchDefinition: ActionTemplate;
|
|
110
111
|
export declare const oktaOrgGetOktaUserByNameDefinition: ActionTemplate;
|
|
111
112
|
export declare const finnhubSymbolLookupDefinition: ActionTemplate;
|
|
@@ -1691,8 +1691,8 @@ export const jiraGetJiraTicketHistoryDefinition = {
|
|
|
1691
1691
|
provider: "jira",
|
|
1692
1692
|
};
|
|
1693
1693
|
export const jiraMoveJiraTicketToProjectDefinition = {
|
|
1694
|
-
displayName: "
|
|
1695
|
-
description: "Moves a Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
1694
|
+
displayName: "Move Jira ticket to another project",
|
|
1695
|
+
description: "Moves a single Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
1696
1696
|
scopes: ["write:jira-work", "read:jira-work"],
|
|
1697
1697
|
tags: [],
|
|
1698
1698
|
parameters: {
|
|
@@ -2402,8 +2402,8 @@ export const jiraOrgGetJiraTicketHistoryDefinition = {
|
|
|
2402
2402
|
provider: "jiraOrg",
|
|
2403
2403
|
};
|
|
2404
2404
|
export const jiraOrgMoveJiraTicketToProjectDefinition = {
|
|
2405
|
-
displayName: "
|
|
2406
|
-
description: "Moves a Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
2405
|
+
displayName: "Move Jira ticket to another project",
|
|
2406
|
+
description: "Moves a single Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
2407
2407
|
scopes: ["write:jira-work", "read:jira-work"],
|
|
2408
2408
|
tags: [],
|
|
2409
2409
|
parameters: {
|
|
@@ -3113,8 +3113,8 @@ export const jiraDataCenterGetJiraTicketHistoryDefinition = {
|
|
|
3113
3113
|
provider: "jiraDataCenter",
|
|
3114
3114
|
};
|
|
3115
3115
|
export const jiraDataCenterMoveJiraTicketToProjectDefinition = {
|
|
3116
|
-
displayName: "
|
|
3117
|
-
description: "Moves a Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
3116
|
+
displayName: "Move Jira ticket to another project",
|
|
3117
|
+
description: "Moves a single Jira ticket from one project to another, optionally updating the issue type. Note: This action only works with Jira Cloud, not Jira Data Center.",
|
|
3118
3118
|
scopes: ["write:jira-work", "read:jira-work"],
|
|
3119
3119
|
tags: [],
|
|
3120
3120
|
parameters: {
|
|
@@ -8644,7 +8644,7 @@ export const googleOauthSearchDriveByKeywordsDefinition = {
|
|
|
8644
8644
|
},
|
|
8645
8645
|
includeTrashed: {
|
|
8646
8646
|
type: "boolean",
|
|
8647
|
-
description: "Whether to include trashed files in the search results",
|
|
8647
|
+
description: "Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.",
|
|
8648
8648
|
},
|
|
8649
8649
|
},
|
|
8650
8650
|
},
|
|
@@ -8710,7 +8710,7 @@ export const googleOauthSearchDriveByQueryDefinition = {
|
|
|
8710
8710
|
},
|
|
8711
8711
|
searchDriveByDrive: {
|
|
8712
8712
|
type: "boolean",
|
|
8713
|
-
description: "Whether we should search drive by drive or run a general search",
|
|
8713
|
+
description: "Whether we should search drive by drive or run a general search. Usually false unless otherwise noted by the user.",
|
|
8714
8714
|
},
|
|
8715
8715
|
orderByQuery: {
|
|
8716
8716
|
type: "string",
|
|
@@ -8718,7 +8718,7 @@ export const googleOauthSearchDriveByQueryDefinition = {
|
|
|
8718
8718
|
},
|
|
8719
8719
|
includeTrashed: {
|
|
8720
8720
|
type: "boolean",
|
|
8721
|
-
description: "Whether to include trashed files in the search results",
|
|
8721
|
+
description: "Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.",
|
|
8722
8722
|
},
|
|
8723
8723
|
},
|
|
8724
8724
|
},
|
|
@@ -8788,7 +8788,7 @@ export const googleOauthSearchDriveByKeywordsAndGetFileContentDefinition = {
|
|
|
8788
8788
|
},
|
|
8789
8789
|
searchDriveByDrive: {
|
|
8790
8790
|
type: "boolean",
|
|
8791
|
-
description: "Search drive by drive or run a general search",
|
|
8791
|
+
description: "Search drive by drive or run a general search. Usually false unless otherwise noted by the user.",
|
|
8792
8792
|
},
|
|
8793
8793
|
orderByQuery: {
|
|
8794
8794
|
type: "string",
|
|
@@ -8796,8 +8796,7 @@ export const googleOauthSearchDriveByKeywordsAndGetFileContentDefinition = {
|
|
|
8796
8796
|
},
|
|
8797
8797
|
includeTrashed: {
|
|
8798
8798
|
type: "boolean",
|
|
8799
|
-
description: "Whether to include trashed files in the search results",
|
|
8800
|
-
tags: ["recommend-predefined"],
|
|
8799
|
+
description: "Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.",
|
|
8801
8800
|
},
|
|
8802
8801
|
},
|
|
8803
8802
|
},
|
|
@@ -8886,8 +8885,7 @@ export const googleOauthSearchDriveByQueryAndGetFileContentDefinition = {
|
|
|
8886
8885
|
},
|
|
8887
8886
|
searchDriveByDrive: {
|
|
8888
8887
|
type: "boolean",
|
|
8889
|
-
description: "Search drive by drive or run a general search",
|
|
8890
|
-
tags: ["recommend-predefined"],
|
|
8888
|
+
description: "Search drive by drive or run a general search. Usually false unless otherwise noted by the user.",
|
|
8891
8889
|
},
|
|
8892
8890
|
orderByQuery: {
|
|
8893
8891
|
type: "string",
|
|
@@ -8895,8 +8893,7 @@ export const googleOauthSearchDriveByQueryAndGetFileContentDefinition = {
|
|
|
8895
8893
|
},
|
|
8896
8894
|
includeTrashed: {
|
|
8897
8895
|
type: "boolean",
|
|
8898
|
-
description: "Whether to include trashed files in the search results",
|
|
8899
|
-
tags: ["recommend-predefined"],
|
|
8896
|
+
description: "Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.",
|
|
8900
8897
|
},
|
|
8901
8898
|
},
|
|
8902
8899
|
},
|
|
@@ -9665,6 +9662,71 @@ export const googlemailSendGmailDefinition = {
|
|
|
9665
9662
|
name: "sendGmail",
|
|
9666
9663
|
provider: "googlemail",
|
|
9667
9664
|
};
|
|
9665
|
+
export const googlemailReplyToGmailDefinition = {
|
|
9666
|
+
displayName: "Reply to email thread with Gmail",
|
|
9667
|
+
description: "Reply to an existing Gmail email thread. Automatically handles threading headers and subject line.",
|
|
9668
|
+
scopes: ["https://www.googleapis.com/auth/gmail.send", "https://www.googleapis.com/auth/gmail.readonly"],
|
|
9669
|
+
tags: [],
|
|
9670
|
+
parameters: {
|
|
9671
|
+
type: "object",
|
|
9672
|
+
required: ["threadId", "content"],
|
|
9673
|
+
properties: {
|
|
9674
|
+
threadId: {
|
|
9675
|
+
type: "string",
|
|
9676
|
+
description: "The Gmail thread ID to reply to",
|
|
9677
|
+
},
|
|
9678
|
+
to: {
|
|
9679
|
+
type: "array",
|
|
9680
|
+
description: "List of recipient email addresses. If not provided, the reply will be sent to the sender of the last message in the thread.",
|
|
9681
|
+
items: {
|
|
9682
|
+
type: "string",
|
|
9683
|
+
},
|
|
9684
|
+
},
|
|
9685
|
+
cc: {
|
|
9686
|
+
type: "array",
|
|
9687
|
+
description: "List of CC recipient email addresses (optional)",
|
|
9688
|
+
items: {
|
|
9689
|
+
type: "string",
|
|
9690
|
+
},
|
|
9691
|
+
},
|
|
9692
|
+
bcc: {
|
|
9693
|
+
type: "array",
|
|
9694
|
+
description: "List of BCC recipient email addresses (optional)",
|
|
9695
|
+
items: {
|
|
9696
|
+
type: "string",
|
|
9697
|
+
},
|
|
9698
|
+
},
|
|
9699
|
+
content: {
|
|
9700
|
+
type: "string",
|
|
9701
|
+
description: "Email body content in HTML format",
|
|
9702
|
+
},
|
|
9703
|
+
},
|
|
9704
|
+
},
|
|
9705
|
+
output: {
|
|
9706
|
+
type: "object",
|
|
9707
|
+
required: ["success"],
|
|
9708
|
+
properties: {
|
|
9709
|
+
success: {
|
|
9710
|
+
type: "boolean",
|
|
9711
|
+
description: "Whether the reply was sent successfully",
|
|
9712
|
+
},
|
|
9713
|
+
messageId: {
|
|
9714
|
+
type: "string",
|
|
9715
|
+
description: "The ID of the sent message",
|
|
9716
|
+
},
|
|
9717
|
+
threadId: {
|
|
9718
|
+
type: "string",
|
|
9719
|
+
description: "The thread ID of the reply",
|
|
9720
|
+
},
|
|
9721
|
+
error: {
|
|
9722
|
+
type: "string",
|
|
9723
|
+
description: "Error message if sending failed",
|
|
9724
|
+
},
|
|
9725
|
+
},
|
|
9726
|
+
},
|
|
9727
|
+
name: "replyToGmail",
|
|
9728
|
+
provider: "googlemail",
|
|
9729
|
+
};
|
|
9668
9730
|
export const googleSearchCustomSearchDefinition = {
|
|
9669
9731
|
displayName: "Custom Search",
|
|
9670
9732
|
description: "Search for information using the Google Custom Search API",
|
|
@@ -10240,8 +10302,7 @@ export const salesforceSearchAllSalesforceRecordsDefinition = {
|
|
|
10240
10302
|
},
|
|
10241
10303
|
usesLightningKnowledge: {
|
|
10242
10304
|
type: "boolean",
|
|
10243
|
-
description: 'Whether your Salesforce instance uses lightning knowledge articles ("true" or "false")',
|
|
10244
|
-
tags: ["recommend-predefined"],
|
|
10305
|
+
description: 'Whether your Salesforce instance uses lightning knowledge articles ("true" or "false"). Ask the user if unsure.',
|
|
10245
10306
|
},
|
|
10246
10307
|
limit: {
|
|
10247
10308
|
type: "number",
|
|
@@ -121,6 +121,7 @@ export declare enum ActionName {
|
|
|
121
121
|
SEARCHGMAILMESSAGES = "searchGmailMessages",
|
|
122
122
|
LISTGMAILTHREADS = "listGmailThreads",
|
|
123
123
|
SENDGMAIL = "sendGmail",
|
|
124
|
+
REPLYTOGMAIL = "replyToGmail",
|
|
124
125
|
CUSTOMSEARCH = "customSearch",
|
|
125
126
|
GETOKTAUSERBYNAME = "getOktaUserByName",
|
|
126
127
|
SYMBOLLOOKUP = "symbolLookup",
|
|
@@ -6717,6 +6718,44 @@ export declare const googlemailSendGmailOutputSchema: z.ZodObject<{
|
|
|
6717
6718
|
}>;
|
|
6718
6719
|
export type googlemailSendGmailOutputType = z.infer<typeof googlemailSendGmailOutputSchema>;
|
|
6719
6720
|
export type googlemailSendGmailFunction = ActionFunction<googlemailSendGmailParamsType, AuthParamsType, googlemailSendGmailOutputType>;
|
|
6721
|
+
export declare const googlemailReplyToGmailParamsSchema: z.ZodObject<{
|
|
6722
|
+
threadId: z.ZodString;
|
|
6723
|
+
to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6724
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6725
|
+
bcc: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6726
|
+
content: z.ZodString;
|
|
6727
|
+
}, "strip", z.ZodTypeAny, {
|
|
6728
|
+
content: string;
|
|
6729
|
+
threadId: string;
|
|
6730
|
+
to?: string[] | undefined;
|
|
6731
|
+
cc?: string[] | undefined;
|
|
6732
|
+
bcc?: string[] | undefined;
|
|
6733
|
+
}, {
|
|
6734
|
+
content: string;
|
|
6735
|
+
threadId: string;
|
|
6736
|
+
to?: string[] | undefined;
|
|
6737
|
+
cc?: string[] | undefined;
|
|
6738
|
+
bcc?: string[] | undefined;
|
|
6739
|
+
}>;
|
|
6740
|
+
export type googlemailReplyToGmailParamsType = z.infer<typeof googlemailReplyToGmailParamsSchema>;
|
|
6741
|
+
export declare const googlemailReplyToGmailOutputSchema: z.ZodObject<{
|
|
6742
|
+
success: z.ZodBoolean;
|
|
6743
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
6744
|
+
threadId: z.ZodOptional<z.ZodString>;
|
|
6745
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6746
|
+
}, "strip", z.ZodTypeAny, {
|
|
6747
|
+
success: boolean;
|
|
6748
|
+
error?: string | undefined;
|
|
6749
|
+
messageId?: string | undefined;
|
|
6750
|
+
threadId?: string | undefined;
|
|
6751
|
+
}, {
|
|
6752
|
+
success: boolean;
|
|
6753
|
+
error?: string | undefined;
|
|
6754
|
+
messageId?: string | undefined;
|
|
6755
|
+
threadId?: string | undefined;
|
|
6756
|
+
}>;
|
|
6757
|
+
export type googlemailReplyToGmailOutputType = z.infer<typeof googlemailReplyToGmailOutputSchema>;
|
|
6758
|
+
export type googlemailReplyToGmailFunction = ActionFunction<googlemailReplyToGmailParamsType, AuthParamsType, googlemailReplyToGmailOutputType>;
|
|
6720
6759
|
export declare const googleSearchCustomSearchParamsSchema: z.ZodObject<{
|
|
6721
6760
|
query: z.ZodString;
|
|
6722
6761
|
customSearchEngineId: z.ZodString;
|
|
@@ -123,6 +123,7 @@ export var ActionName;
|
|
|
123
123
|
ActionName["SEARCHGMAILMESSAGES"] = "searchGmailMessages";
|
|
124
124
|
ActionName["LISTGMAILTHREADS"] = "listGmailThreads";
|
|
125
125
|
ActionName["SENDGMAIL"] = "sendGmail";
|
|
126
|
+
ActionName["REPLYTOGMAIL"] = "replyToGmail";
|
|
126
127
|
ActionName["CUSTOMSEARCH"] = "customSearch";
|
|
127
128
|
ActionName["GETOKTAUSERBYNAME"] = "getOktaUserByName";
|
|
128
129
|
ActionName["SYMBOLLOOKUP"] = "symbolLookup";
|
|
@@ -3269,7 +3270,10 @@ export const googleOauthGetPresentationOutputSchema = z.object({
|
|
|
3269
3270
|
export const googleOauthSearchDriveByKeywordsParamsSchema = z.object({
|
|
3270
3271
|
keywords: z.array(z.string()).describe("List of keywords to search for in file contents."),
|
|
3271
3272
|
limit: z.number().describe("The maximum number of files to return").optional(),
|
|
3272
|
-
includeTrashed: z
|
|
3273
|
+
includeTrashed: z
|
|
3274
|
+
.boolean()
|
|
3275
|
+
.describe("Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.")
|
|
3276
|
+
.optional(),
|
|
3273
3277
|
});
|
|
3274
3278
|
export const googleOauthSearchDriveByKeywordsOutputSchema = z.object({
|
|
3275
3279
|
success: z.boolean().describe("Whether the search was successful"),
|
|
@@ -3287,12 +3291,17 @@ export const googleOauthSearchDriveByKeywordsOutputSchema = z.object({
|
|
|
3287
3291
|
export const googleOauthSearchDriveByQueryParamsSchema = z.object({
|
|
3288
3292
|
query: z.string().describe("The query to search for in file contents."),
|
|
3289
3293
|
limit: z.number().describe("The maximum number of files to return").optional(),
|
|
3290
|
-
searchDriveByDrive: z
|
|
3294
|
+
searchDriveByDrive: z
|
|
3295
|
+
.boolean()
|
|
3296
|
+
.describe("Whether we should search drive by drive or run a general search. Usually false unless otherwise noted by the user."),
|
|
3291
3297
|
orderByQuery: z
|
|
3292
3298
|
.string()
|
|
3293
3299
|
.describe("The orderBy query for sorting results (e.g., 'modifiedTime desc', 'name', 'createdTime desc'). Defaults to 'modifiedTime desc'")
|
|
3294
3300
|
.optional(),
|
|
3295
|
-
includeTrashed: z
|
|
3301
|
+
includeTrashed: z
|
|
3302
|
+
.boolean()
|
|
3303
|
+
.describe("Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.")
|
|
3304
|
+
.optional(),
|
|
3296
3305
|
});
|
|
3297
3306
|
export const googleOauthSearchDriveByQueryOutputSchema = z.object({
|
|
3298
3307
|
success: z.boolean().describe("Whether the search was successful"),
|
|
@@ -3311,12 +3320,17 @@ export const googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema = z.o
|
|
|
3311
3320
|
searchQuery: z.string().describe("The query input to Google Drive search"),
|
|
3312
3321
|
limit: z.number().describe("The maximum number of files to return").optional(),
|
|
3313
3322
|
fileSizeLimit: z.number().describe("The maximum length of a file in characters").optional(),
|
|
3314
|
-
searchDriveByDrive: z
|
|
3323
|
+
searchDriveByDrive: z
|
|
3324
|
+
.boolean()
|
|
3325
|
+
.describe("Search drive by drive or run a general search. Usually false unless otherwise noted by the user."),
|
|
3315
3326
|
orderByQuery: z
|
|
3316
3327
|
.string()
|
|
3317
3328
|
.describe("The orderBy query for sorting results (e.g., 'modifiedTime desc', 'name', 'createdTime desc'). Defaults to 'modifiedTime desc'")
|
|
3318
3329
|
.optional(),
|
|
3319
|
-
includeTrashed: z
|
|
3330
|
+
includeTrashed: z
|
|
3331
|
+
.boolean()
|
|
3332
|
+
.describe("Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.")
|
|
3333
|
+
.optional(),
|
|
3320
3334
|
});
|
|
3321
3335
|
export const googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema = z.object({
|
|
3322
3336
|
success: z.boolean().describe("Whether the search was successful"),
|
|
@@ -3342,12 +3356,17 @@ export const googleOauthSearchDriveByQueryAndGetFileContentParamsSchema = z.obje
|
|
|
3342
3356
|
query: z.string().describe("Google Drive API search syntax, eg \"fullText contains 'Valentine\\'s Day'\""),
|
|
3343
3357
|
limit: z.number().describe("The maximum number of files to return").optional(),
|
|
3344
3358
|
fileSizeLimit: z.number().describe("The maximum length of a file in characters").optional(),
|
|
3345
|
-
searchDriveByDrive: z
|
|
3359
|
+
searchDriveByDrive: z
|
|
3360
|
+
.boolean()
|
|
3361
|
+
.describe("Search drive by drive or run a general search. Usually false unless otherwise noted by the user."),
|
|
3346
3362
|
orderByQuery: z
|
|
3347
3363
|
.string()
|
|
3348
3364
|
.describe("The orderBy query for sorting results (e.g., 'modifiedTime desc', 'name', 'createdTime desc'). Defaults to 'modifiedTime desc'")
|
|
3349
3365
|
.optional(),
|
|
3350
|
-
includeTrashed: z
|
|
3366
|
+
includeTrashed: z
|
|
3367
|
+
.boolean()
|
|
3368
|
+
.describe("Whether to include trashed files in the search results. Usually false unless otherwise noted by the user.")
|
|
3369
|
+
.optional(),
|
|
3351
3370
|
});
|
|
3352
3371
|
export const googleOauthSearchDriveByQueryAndGetFileContentOutputSchema = z.object({
|
|
3353
3372
|
success: z.boolean().describe("Whether the search was successful"),
|
|
@@ -3554,6 +3573,22 @@ export const googlemailSendGmailOutputSchema = z.object({
|
|
|
3554
3573
|
messageId: z.string().describe("The ID of the sent message").optional(),
|
|
3555
3574
|
error: z.string().describe("Error message if sending failed").optional(),
|
|
3556
3575
|
});
|
|
3576
|
+
export const googlemailReplyToGmailParamsSchema = z.object({
|
|
3577
|
+
threadId: z.string().describe("The Gmail thread ID to reply to"),
|
|
3578
|
+
to: z
|
|
3579
|
+
.array(z.string())
|
|
3580
|
+
.describe("List of recipient email addresses. If not provided, the reply will be sent to the sender of the last message in the thread.")
|
|
3581
|
+
.optional(),
|
|
3582
|
+
cc: z.array(z.string()).describe("List of CC recipient email addresses (optional)").optional(),
|
|
3583
|
+
bcc: z.array(z.string()).describe("List of BCC recipient email addresses (optional)").optional(),
|
|
3584
|
+
content: z.string().describe("Email body content in HTML format"),
|
|
3585
|
+
});
|
|
3586
|
+
export const googlemailReplyToGmailOutputSchema = z.object({
|
|
3587
|
+
success: z.boolean().describe("Whether the reply was sent successfully"),
|
|
3588
|
+
messageId: z.string().describe("The ID of the sent message").optional(),
|
|
3589
|
+
threadId: z.string().describe("The thread ID of the reply").optional(),
|
|
3590
|
+
error: z.string().describe("Error message if sending failed").optional(),
|
|
3591
|
+
});
|
|
3557
3592
|
export const googleSearchCustomSearchParamsSchema = z.object({
|
|
3558
3593
|
query: z.string().describe("Query string to search for"),
|
|
3559
3594
|
customSearchEngineId: z.string().describe("The Programmable Search Engine ID to use for this request"),
|
|
@@ -3742,7 +3777,7 @@ export const salesforceSearchAllSalesforceRecordsParamsSchema = z.object({
|
|
|
3742
3777
|
keyword: z.string().describe("The keyword to search for"),
|
|
3743
3778
|
usesLightningKnowledge: z
|
|
3744
3779
|
.boolean()
|
|
3745
|
-
.describe('Whether your Salesforce instance uses lightning knowledge articles ("true" or "false")')
|
|
3780
|
+
.describe('Whether your Salesforce instance uses lightning knowledge articles ("true" or "false"). Ask the user if unsure.')
|
|
3746
3781
|
.optional(),
|
|
3747
3782
|
limit: z.number().describe("The maximum number of records to return").optional(),
|
|
3748
3783
|
maxLimit: z.number().describe("The absolute maximum limit for records that can be returned").optional(),
|
package/dist/actions/groups.js
CHANGED
|
@@ -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, googleOauthSearchDriveByQueryDefinition, } 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, googleOauthSearchDriveByQueryAndGetFileContentDefinition, githubGetFileContentDefinition, githubListDirectoryDefinition, } from "./autogen/templates.js";
|
|
2
2
|
export const ACTION_GROUPS = {
|
|
3
3
|
GENERIC: {
|
|
4
4
|
description: "Generic utility actions",
|
|
@@ -47,6 +47,7 @@ export const ACTION_GROUPS = {
|
|
|
47
47
|
googleOauthUpdatePresentationDefinition,
|
|
48
48
|
googleOauthSearchDriveByKeywordsDefinition,
|
|
49
49
|
googleOauthSearchDriveByQueryDefinition,
|
|
50
|
+
googleOauthSearchDriveByQueryAndGetFileContentDefinition,
|
|
50
51
|
googleOauthGetDriveFileContentByIdDefinition,
|
|
51
52
|
],
|
|
52
53
|
},
|
|
@@ -198,6 +199,8 @@ export const ACTION_GROUPS = {
|
|
|
198
199
|
githubCreateBranchDefinition,
|
|
199
200
|
githubCreatePullRequestDefinition,
|
|
200
201
|
githubListPullRequestsDefinition,
|
|
202
|
+
githubGetFileContentDefinition,
|
|
203
|
+
githubListDirectoryDefinition,
|
|
201
204
|
],
|
|
202
205
|
},
|
|
203
206
|
ASHBY: {
|
package/dist/actions/invoke.js
CHANGED
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import { ActionMapper } from "./actionMapper.js";
|
|
11
2
|
import { ProviderName } from "./autogen/types.js";
|
|
12
|
-
export function invokeAction(input) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return providerFunction({ params: parameters, authParams: Object.assign(Object.assign({}, authParams), { provider }) });
|
|
24
|
-
});
|
|
3
|
+
export async function invokeAction(input) {
|
|
4
|
+
const { provider, name, parameters, authParams } = input;
|
|
5
|
+
if (!isProviderName(provider)) {
|
|
6
|
+
throw new Error(`Provider '${provider}' not found`);
|
|
7
|
+
}
|
|
8
|
+
const providerFunction = ActionMapper[provider][name].fn;
|
|
9
|
+
const safeParseParams = ActionMapper[provider][name].paramsSchema.safeParse(parameters);
|
|
10
|
+
if (!safeParseParams.success) {
|
|
11
|
+
throw new Error(`Invalid parameters for action '${name}': ${safeParseParams.error}`);
|
|
12
|
+
}
|
|
13
|
+
return providerFunction({ params: parameters, authParams: { ...authParams, provider } });
|
|
25
14
|
}
|
|
26
15
|
function isProviderName(value) {
|
|
27
16
|
return Object.values(ProviderName).includes(value);
|