@credal/actions 0.2.198 → 0.2.200
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 +65 -0
- package/dist/actions/autogen/types.d.ts +39 -0
- package/dist/actions/autogen/types.js +17 -0
- package/dist/actions/providers/googlemail/replyToGmail.d.ts +3 -0
- package/dist/actions/providers/googlemail/replyToGmail.js +89 -0
- package/package.json +1 -1
- package/dist/actions/groups.d.ts +0 -6
- package/dist/actions/groups.js +0 -251
- package/dist/actions/providers/ashby/addCandidateToProject.d.ts +0 -3
- package/dist/actions/providers/ashby/addCandidateToProject.js +0 -31
- package/dist/actions/providers/ashby/createCandidate.d.ts +0 -3
- package/dist/actions/providers/ashby/createCandidate.js +0 -38
- package/dist/actions/providers/ashby/createNote.d.ts +0 -3
- package/dist/actions/providers/ashby/createNote.js +0 -31
- package/dist/actions/providers/ashby/getCandidateInfo.d.ts +0 -3
- package/dist/actions/providers/ashby/getCandidateInfo.js +0 -33
- package/dist/actions/providers/ashby/listCandidateNotes.d.ts +0 -3
- package/dist/actions/providers/ashby/listCandidateNotes.js +0 -33
- package/dist/actions/providers/ashby/listCandidates.d.ts +0 -3
- package/dist/actions/providers/ashby/listCandidates.js +0 -30
- package/dist/actions/providers/ashby/searchCandidates.d.ts +0 -3
- package/dist/actions/providers/ashby/searchCandidates.js +0 -34
- package/dist/actions/providers/ashby/updateCandidate.d.ts +0 -3
- package/dist/actions/providers/ashby/updateCandidate.js +0 -56
- package/dist/actions/providers/github/fetchFile.d.ts +0 -3
- package/dist/actions/providers/github/fetchFile.js +0 -131
- package/dist/actions/providers/github/getContents.d.ts +0 -3
- package/dist/actions/providers/github/getContents.js +0 -41
- package/dist/actions/providers/gong/getGongTranscripts.d.ts +0 -3
- package/dist/actions/providers/gong/getGongTranscripts.js +0 -315
- package/dist/actions/providers/jamf/getJamfComputerInventory.d.ts +0 -3
- package/dist/actions/providers/jamf/getJamfComputerInventory.js +0 -37
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.d.ts +0 -3
- package/dist/actions/providers/jamf/getJamfFileVaultRecoveryKey.js +0 -39
- package/dist/actions/providers/jamf/getJamfUserComputerId.d.ts +0 -3
- package/dist/actions/providers/jamf/getJamfUserComputerId.js +0 -45
- package/dist/actions/providers/jamf/lockJamfComputerById.d.ts +0 -3
- package/dist/actions/providers/jamf/lockJamfComputerById.js +0 -39
- package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.d.ts +0 -3
- package/dist/actions/providers/kandji/getFVRecoveryKeyForDevice.js +0 -85
- package/dist/actions/providers/okta/addUserToGroup.d.ts +0 -3
- package/dist/actions/providers/okta/addUserToGroup.js +0 -56
- package/dist/actions/providers/okta/getOktaGroup.d.ts +0 -3
- package/dist/actions/providers/okta/getOktaGroup.js +0 -73
- package/dist/actions/providers/okta/getOktaUser.d.ts +0 -3
- package/dist/actions/providers/okta/getOktaUser.js +0 -40
- package/dist/actions/providers/okta/listMFA.d.ts +0 -3
- package/dist/actions/providers/okta/listMFA.js +0 -52
- package/dist/actions/providers/okta/listOktaGroupMembers.d.ts +0 -3
- package/dist/actions/providers/okta/listOktaGroupMembers.js +0 -99
- package/dist/actions/providers/okta/listOktaGroups.d.ts +0 -3
- package/dist/actions/providers/okta/listOktaGroups.js +0 -92
- package/dist/actions/providers/okta/listOktaUserGroups.d.ts +0 -3
- package/dist/actions/providers/okta/listOktaUserGroups.js +0 -83
- package/dist/actions/providers/okta/listOktaUsers.d.ts +0 -3
- package/dist/actions/providers/okta/listOktaUsers.js +0 -100
- package/dist/actions/providers/okta/removeUserFromGroup.d.ts +0 -3
- package/dist/actions/providers/okta/removeUserFromGroup.js +0 -56
- package/dist/actions/providers/okta/resetMFA.d.ts +0 -3
- package/dist/actions/providers/okta/resetMFA.js +0 -62
- package/dist/actions/providers/okta/resetPassword.d.ts +0 -3
- package/dist/actions/providers/okta/resetPassword.js +0 -57
- package/dist/actions/providers/okta/triggerOktaWorkflow.d.ts +0 -3
- package/dist/actions/providers/okta/triggerOktaWorkflow.js +0 -44
- package/dist/actions/providers/salesforce/fetchSalesforceSchema.d.ts +0 -3
- package/dist/actions/providers/salesforce/fetchSalesforceSchema.js +0 -40
- package/dist/actions/providers/slack/archiveChannel.d.ts +0 -3
- package/dist/actions/providers/slack/archiveChannel.js +0 -42
|
@@ -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;
|
|
@@ -9662,6 +9662,71 @@ export const googlemailSendGmailDefinition = {
|
|
|
9662
9662
|
name: "sendGmail",
|
|
9663
9663
|
provider: "googlemail",
|
|
9664
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
|
+
};
|
|
9665
9730
|
export const googleSearchCustomSearchDefinition = {
|
|
9666
9731
|
displayName: "Custom Search",
|
|
9667
9732
|
description: "Search for information using the Google Custom Search API",
|
|
@@ -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";
|
|
@@ -3572,6 +3573,22 @@ export const googlemailSendGmailOutputSchema = z.object({
|
|
|
3572
3573
|
messageId: z.string().describe("The ID of the sent message").optional(),
|
|
3573
3574
|
error: z.string().describe("Error message if sending failed").optional(),
|
|
3574
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
|
+
});
|
|
3575
3592
|
export const googleSearchCustomSearchParamsSchema = z.object({
|
|
3576
3593
|
query: z.string().describe("Query string to search for"),
|
|
3577
3594
|
customSearchEngineId: z.string().describe("The Programmable Search Engine ID to use for this request"),
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { axiosClient } from "../../util/axiosClient.js";
|
|
2
|
+
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
3
|
+
const replyToGmail = async ({ params, authParams, }) => {
|
|
4
|
+
if (!authParams.authToken) {
|
|
5
|
+
return { success: false, error: MISSING_AUTH_TOKEN };
|
|
6
|
+
}
|
|
7
|
+
const { threadId, to, cc, bcc, content } = params;
|
|
8
|
+
try {
|
|
9
|
+
// Fetch the thread to get message details for proper reply headers
|
|
10
|
+
const threadResponse = await axiosClient.get(`https://gmail.googleapis.com/gmail/v1/users/me/threads/${threadId}`, {
|
|
11
|
+
headers: {
|
|
12
|
+
Authorization: `Bearer ${authParams.authToken}`,
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
const messages = threadResponse.data.messages;
|
|
16
|
+
if (!messages || messages.length === 0) {
|
|
17
|
+
return { success: false, error: "Thread has no messages" };
|
|
18
|
+
}
|
|
19
|
+
const lastMessage = messages[messages.length - 1];
|
|
20
|
+
const getHeader = (name) => lastMessage.payload.headers?.find((h) => h.name.toLowerCase() === name.toLowerCase())?.value;
|
|
21
|
+
// Determine recipients - if not provided, reply to the sender of the last message
|
|
22
|
+
let recipients;
|
|
23
|
+
if (to && to.length > 0) {
|
|
24
|
+
recipients = to;
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
const from = getHeader("From");
|
|
28
|
+
if (!from) {
|
|
29
|
+
return { success: false, error: "Could not determine recipient from thread" };
|
|
30
|
+
}
|
|
31
|
+
recipients = [from];
|
|
32
|
+
}
|
|
33
|
+
// Build threading headers
|
|
34
|
+
const messageId = getHeader("Message-ID") || "";
|
|
35
|
+
const existingReferences = getHeader("References") || "";
|
|
36
|
+
const references = existingReferences ? `${existingReferences} ${messageId}`.trim() : messageId;
|
|
37
|
+
// Derive subject from the thread
|
|
38
|
+
const originalSubject = getHeader("Subject") || "(no subject)";
|
|
39
|
+
const subject = originalSubject.toLowerCase().startsWith("re:") ? originalSubject : `Re: ${originalSubject}`;
|
|
40
|
+
// Build RFC 2822 formatted email
|
|
41
|
+
let message = "";
|
|
42
|
+
message += `To: ${recipients.join(", ")}\r\n`;
|
|
43
|
+
if (cc && cc.length > 0) {
|
|
44
|
+
message += `Cc: ${cc.join(", ")}\r\n`;
|
|
45
|
+
}
|
|
46
|
+
if (bcc && bcc.length > 0) {
|
|
47
|
+
message += `Bcc: ${bcc.join(", ")}\r\n`;
|
|
48
|
+
}
|
|
49
|
+
message += `Subject: ${subject}\r\n`;
|
|
50
|
+
if (messageId) {
|
|
51
|
+
message += `In-Reply-To: ${messageId}\r\n`;
|
|
52
|
+
if (references) {
|
|
53
|
+
message += `References: ${references}\r\n`;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
message += `Content-Type: text/html; charset=utf-8\r\n`;
|
|
57
|
+
message += `MIME-Version: 1.0\r\n`;
|
|
58
|
+
message += `\r\n`;
|
|
59
|
+
message += content;
|
|
60
|
+
// Encode in base64url format
|
|
61
|
+
const encodedMessage = Buffer.from(message)
|
|
62
|
+
.toString("base64")
|
|
63
|
+
.replace(/\+/g, "-")
|
|
64
|
+
.replace(/\//g, "_")
|
|
65
|
+
.replace(/=+$/, "");
|
|
66
|
+
const response = await axiosClient.post("https://gmail.googleapis.com/gmail/v1/users/me/messages/send", {
|
|
67
|
+
raw: encodedMessage,
|
|
68
|
+
threadId: threadId,
|
|
69
|
+
}, {
|
|
70
|
+
headers: {
|
|
71
|
+
Authorization: `Bearer ${authParams.authToken}`,
|
|
72
|
+
"Content-Type": "application/json",
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
return {
|
|
76
|
+
success: true,
|
|
77
|
+
messageId: response.data.id,
|
|
78
|
+
threadId: response.data.threadId,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
console.error("Gmail reply error:", error);
|
|
83
|
+
return {
|
|
84
|
+
success: false,
|
|
85
|
+
error: error instanceof Error ? error.message : "Unknown error sending reply",
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
export default replyToGmail;
|
package/package.json
CHANGED
package/dist/actions/groups.d.ts
DELETED
package/dist/actions/groups.js
DELETED
|
@@ -1,251 +0,0 @@
|
|
|
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
|
-
export const ACTION_GROUPS = {
|
|
3
|
-
GENERIC: {
|
|
4
|
-
description: "Generic utility actions",
|
|
5
|
-
actions: [genericFillTemplateDefinition],
|
|
6
|
-
},
|
|
7
|
-
ASANA: {
|
|
8
|
-
description: "Actions for interacting with Asana",
|
|
9
|
-
actions: [
|
|
10
|
-
asanaCommentTaskDefinition,
|
|
11
|
-
asanaCreateTaskDefinition,
|
|
12
|
-
asanaUpdateTaskDefinition,
|
|
13
|
-
asanaSearchTasksDefinition,
|
|
14
|
-
asanaListAsanaTasksByProjectDefinition,
|
|
15
|
-
asanaGetTasksDetailsDefinition,
|
|
16
|
-
],
|
|
17
|
-
},
|
|
18
|
-
SLACK_LIST_CONVERSATIONS: {
|
|
19
|
-
description: "Actions for interacting with Slack",
|
|
20
|
-
actions: [
|
|
21
|
-
slackSendMessageDefinition,
|
|
22
|
-
slackGetChannelMessagesDefinition,
|
|
23
|
-
slackCreateChannelDefinition,
|
|
24
|
-
slackArchiveChannelDefinition,
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
CONFLUENCE: {
|
|
28
|
-
description: "Action for interacting with Confluence",
|
|
29
|
-
actions: [confluenceOverwritePageDefinition, confluenceFetchPageContentDefinition],
|
|
30
|
-
},
|
|
31
|
-
MATH_ADD: {
|
|
32
|
-
description: "Action for adding two numbers",
|
|
33
|
-
actions: [mathAddDefinition],
|
|
34
|
-
},
|
|
35
|
-
GOOGLE_MAPS: {
|
|
36
|
-
description: "Action for interacting with Google Maps",
|
|
37
|
-
actions: [googlemapsValidateAddressDefinition, googlemapsNearbysearchRestaurantsDefinition],
|
|
38
|
-
},
|
|
39
|
-
GOOGLE_DRIVE: {
|
|
40
|
-
description: "Action for interacting with Google Drive",
|
|
41
|
-
actions: [
|
|
42
|
-
googleOauthCreateNewGoogleDocDefinition,
|
|
43
|
-
googleOauthUpdateDocDefinition,
|
|
44
|
-
googleOauthCreateSpreadsheetDefinition,
|
|
45
|
-
googleOauthUpdateSpreadsheetDefinition,
|
|
46
|
-
googleOauthCreatePresentationDefinition,
|
|
47
|
-
googleOauthUpdatePresentationDefinition,
|
|
48
|
-
googleOauthSearchDriveByKeywordsDefinition,
|
|
49
|
-
googleOauthSearchDriveByQueryDefinition,
|
|
50
|
-
googleOauthSearchDriveByQueryAndGetFileContentDefinition,
|
|
51
|
-
googleOauthGetDriveFileContentByIdDefinition,
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
GOOGLE_CALENDAR: {
|
|
55
|
-
description: "Actions for interacting with Google Calendar",
|
|
56
|
-
actions: [
|
|
57
|
-
googleOauthScheduleCalendarMeetingDefinition,
|
|
58
|
-
googleOauthListCalendarsDefinition,
|
|
59
|
-
googleOauthListCalendarEventsDefinition,
|
|
60
|
-
googleOauthUpdateCalendarEventDefinition,
|
|
61
|
-
googleOauthDeleteCalendarEventDefinition,
|
|
62
|
-
],
|
|
63
|
-
},
|
|
64
|
-
GMAIL: {
|
|
65
|
-
description: "Actions for interacting with Gmail",
|
|
66
|
-
actions: [googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition],
|
|
67
|
-
},
|
|
68
|
-
LINKEDIN_SHARE_POST: {
|
|
69
|
-
description: "Action for creating a share post url on linkedin",
|
|
70
|
-
actions: [linkedinCreateShareLinkedinPostUrlDefinition],
|
|
71
|
-
},
|
|
72
|
-
ZENDESK_ACTIONS: {
|
|
73
|
-
description: "Actions for interacting with Zendesk",
|
|
74
|
-
actions: [
|
|
75
|
-
zendeskCreateZendeskTicketDefinition,
|
|
76
|
-
zendeskListZendeskTicketsDefinition,
|
|
77
|
-
zendeskGetTicketDetailsDefinition,
|
|
78
|
-
zendeskUpdateTicketStatusDefinition,
|
|
79
|
-
zendeskAddCommentToTicketDefinition,
|
|
80
|
-
zendeskAssignTicketDefinition,
|
|
81
|
-
],
|
|
82
|
-
},
|
|
83
|
-
BING_SEARCH: {
|
|
84
|
-
description: "Action for searching Bing",
|
|
85
|
-
actions: [bingGetTopNSearchResultUrlsDefinition],
|
|
86
|
-
},
|
|
87
|
-
MONGO_INSERT_DOC: {
|
|
88
|
-
description: "Action for inserting a document into a MongoDB collection",
|
|
89
|
-
actions: [mongoInsertMongoDocDefinition],
|
|
90
|
-
},
|
|
91
|
-
SNOWFLAKE_ACTIONS: {
|
|
92
|
-
description: "Action for getting content from a Snowflake table",
|
|
93
|
-
actions: [snowflakeGetRowByFieldValueDefinition, snowflakeRunSnowflakeQueryDefinition],
|
|
94
|
-
},
|
|
95
|
-
JIRA_ACTIONS: {
|
|
96
|
-
description: "Action for interacting with Jira tickets",
|
|
97
|
-
actions: [
|
|
98
|
-
jiraAssignJiraTicketDefinition,
|
|
99
|
-
jiraCreateJiraTicketDefinition,
|
|
100
|
-
jiraCommentJiraTicketDefinition,
|
|
101
|
-
jiraGetJiraTicketDetailsDefinition,
|
|
102
|
-
jiraGetJiraTicketHistoryDefinition,
|
|
103
|
-
jiraUpdateJiraTicketDetailsDefinition,
|
|
104
|
-
jiraUpdateJiraTicketStatusDefinition,
|
|
105
|
-
jiraGetJiraIssuesByQueryDefinition,
|
|
106
|
-
jiraGetServiceDesksDefinition,
|
|
107
|
-
jiraCreateServiceDeskRequestDefinition,
|
|
108
|
-
],
|
|
109
|
-
},
|
|
110
|
-
JIRA_ORG_ACTIONS: {
|
|
111
|
-
description: "Action for interacting with Jira tickets",
|
|
112
|
-
actions: [
|
|
113
|
-
jiraOrgAssignJiraTicketDefinition,
|
|
114
|
-
jiraOrgCreateJiraTicketDefinition,
|
|
115
|
-
jiraOrgCommentJiraTicketDefinition,
|
|
116
|
-
jiraOrgGetJiraTicketDetailsDefinition,
|
|
117
|
-
jiraOrgGetJiraTicketHistoryDefinition,
|
|
118
|
-
jiraOrgUpdateJiraTicketDetailsDefinition,
|
|
119
|
-
jiraOrgUpdateJiraTicketStatusDefinition,
|
|
120
|
-
jiraOrgGetJiraIssuesByQueryDefinition,
|
|
121
|
-
],
|
|
122
|
-
},
|
|
123
|
-
OPENSTREETMAP_GET_LATITUDE_LONGITUDE_FROM_LOCATION: {
|
|
124
|
-
description: "Action for getting the latitude and longitude of a location",
|
|
125
|
-
actions: [openstreetmapGetLatitudeLongitudeFromLocationDefinition],
|
|
126
|
-
},
|
|
127
|
-
NWS_GET_FORECAST_FOR_LOCATION: {
|
|
128
|
-
description: "Action for getting the weather forecast for a location",
|
|
129
|
-
actions: [nwsGetForecastForLocationDefinition],
|
|
130
|
-
},
|
|
131
|
-
FIRECRAWL: {
|
|
132
|
-
description: "Actions for interacting with Firecrawl",
|
|
133
|
-
actions: [
|
|
134
|
-
firecrawlScrapeUrlDefinition,
|
|
135
|
-
firecrawlScrapeTweetDataWithNitterDefinition,
|
|
136
|
-
firecrawlDeepResearchDefinition,
|
|
137
|
-
],
|
|
138
|
-
},
|
|
139
|
-
RESEND: {
|
|
140
|
-
description: "Action for sending an email",
|
|
141
|
-
actions: [resendSendEmailDefinition],
|
|
142
|
-
},
|
|
143
|
-
X: {
|
|
144
|
-
description: "Actions for interacting with X(formerly twitter)",
|
|
145
|
-
actions: [xCreateShareXPostUrlDefinition],
|
|
146
|
-
},
|
|
147
|
-
GONG: {
|
|
148
|
-
description: "Actions for interacting with Gong",
|
|
149
|
-
actions: [gongGetGongTranscriptsDefinition],
|
|
150
|
-
},
|
|
151
|
-
FINNHUB: {
|
|
152
|
-
description: "Action for interacting with Finnhub for stock market data",
|
|
153
|
-
actions: [finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition],
|
|
154
|
-
},
|
|
155
|
-
JAMF: {
|
|
156
|
-
description: "Actions for interacting with Jamf",
|
|
157
|
-
actions: [
|
|
158
|
-
jamfGetJamfComputerInventoryDefinition,
|
|
159
|
-
jamfGetJamfFileVaultRecoveryKeyDefinition,
|
|
160
|
-
jamfGetJamfUserComputerIdDefinition,
|
|
161
|
-
jamfLockJamfComputerByIdDefinition,
|
|
162
|
-
],
|
|
163
|
-
},
|
|
164
|
-
LOOKER: {
|
|
165
|
-
description: "Actions for interacting with Looker",
|
|
166
|
-
actions: [lookerEnableUserByEmailDefinition],
|
|
167
|
-
},
|
|
168
|
-
SALESFORCE: {
|
|
169
|
-
description: "Actions for interacting with Salesforce",
|
|
170
|
-
actions: [
|
|
171
|
-
salesforceUpdateRecordDefinition,
|
|
172
|
-
salesforceCreateRecordDefinition,
|
|
173
|
-
salesforceCreateCaseDefinition,
|
|
174
|
-
salesforceGenerateSalesReportDefinition,
|
|
175
|
-
salesforceGetRecordDefinition,
|
|
176
|
-
salesforceGetSalesforceRecordsByQueryDefinition,
|
|
177
|
-
salesforceFetchSalesforceSchemaByObjectDefinition,
|
|
178
|
-
],
|
|
179
|
-
},
|
|
180
|
-
MICROSOFT: {
|
|
181
|
-
description: "Actions for interacting with Microsoft 365",
|
|
182
|
-
actions: [
|
|
183
|
-
microsoftMessageTeamsChatDefinition,
|
|
184
|
-
microsoftMessageTeamsChannelDefinition,
|
|
185
|
-
microsoftUpdateSpreadsheetDefinition,
|
|
186
|
-
microsoftUpdateDocumentDefinition,
|
|
187
|
-
microsoftCreateDocumentDefinition,
|
|
188
|
-
microsoftGetDocumentDefinition,
|
|
189
|
-
],
|
|
190
|
-
},
|
|
191
|
-
KANDJI: {
|
|
192
|
-
description: "Actions for interacting with Kandji",
|
|
193
|
-
actions: [kandjiGetFVRecoveryKeyForDeviceDefinition],
|
|
194
|
-
},
|
|
195
|
-
GITHUB: {
|
|
196
|
-
description: "Actions for interacting with GitHub",
|
|
197
|
-
actions: [
|
|
198
|
-
githubCreateOrUpdateFileDefinition,
|
|
199
|
-
githubCreateBranchDefinition,
|
|
200
|
-
githubCreatePullRequestDefinition,
|
|
201
|
-
githubListPullRequestsDefinition,
|
|
202
|
-
githubGetFileContentDefinition,
|
|
203
|
-
githubListDirectoryDefinition,
|
|
204
|
-
],
|
|
205
|
-
},
|
|
206
|
-
ASHBY: {
|
|
207
|
-
description: "Actions for interacting with Ashby",
|
|
208
|
-
actions: [
|
|
209
|
-
ashbyCreateNoteDefinition,
|
|
210
|
-
ashbyGetCandidateInfoDefinition,
|
|
211
|
-
ashbyListCandidatesDefinition,
|
|
212
|
-
ashbyListCandidateNotesDefinition,
|
|
213
|
-
ashbySearchCandidatesDefinition,
|
|
214
|
-
ashbyCreateCandidateDefinition,
|
|
215
|
-
ashbyUpdateCandidateDefinition,
|
|
216
|
-
ashbyAddCandidateToProjectDefinition,
|
|
217
|
-
],
|
|
218
|
-
},
|
|
219
|
-
NOTION: {
|
|
220
|
-
description: "Actions for interacting with Notion",
|
|
221
|
-
actions: [notionSearchByTitleDefinition],
|
|
222
|
-
},
|
|
223
|
-
GOOGLE_GROUPS: {
|
|
224
|
-
description: "Google Workspace Groups management actions",
|
|
225
|
-
actions: [
|
|
226
|
-
googleOauthListGroupsDefinition,
|
|
227
|
-
googleOauthGetGroupDefinition,
|
|
228
|
-
googleOauthListGroupMembersDefinition,
|
|
229
|
-
googleOauthHasGroupMemberDefinition,
|
|
230
|
-
googleOauthAddGroupMemberDefinition,
|
|
231
|
-
googleOauthDeleteGroupMemberDefinition,
|
|
232
|
-
],
|
|
233
|
-
},
|
|
234
|
-
OKTA: {
|
|
235
|
-
description: "Actions for interacting with Okta",
|
|
236
|
-
actions: [
|
|
237
|
-
oktaListOktaUsersDefinition,
|
|
238
|
-
oktaGetOktaUserDefinition,
|
|
239
|
-
oktaListOktaUserGroupsDefinition,
|
|
240
|
-
oktaListOktaGroupsDefinition,
|
|
241
|
-
oktaGetOktaGroupDefinition,
|
|
242
|
-
oktaListOktaGroupMembersDefinition,
|
|
243
|
-
oktaRemoveUserFromGroupDefinition,
|
|
244
|
-
oktaAddUserToGroupDefinition,
|
|
245
|
-
oktaResetPasswordDefinition,
|
|
246
|
-
oktaResetMFADefinition,
|
|
247
|
-
oktaListMFADefinition,
|
|
248
|
-
oktaTriggerOktaWorkflowDefinition,
|
|
249
|
-
],
|
|
250
|
-
},
|
|
251
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
|
-
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
|
-
const addCandidateToProject = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
|
-
const { candidateId, projectId } = params;
|
|
14
|
-
const { authToken } = authParams;
|
|
15
|
-
if (!authToken) {
|
|
16
|
-
throw new Error(MISSING_AUTH_TOKEN);
|
|
17
|
-
}
|
|
18
|
-
const response = yield axiosClient.post(`https://api.ashbyhq.com/candidate.addProject`, {
|
|
19
|
-
candidateId,
|
|
20
|
-
projectId,
|
|
21
|
-
}, {
|
|
22
|
-
auth: {
|
|
23
|
-
username: authToken,
|
|
24
|
-
password: "",
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
if (!response.data.success) {
|
|
28
|
-
throw new Error(response.data.errors.join("; "));
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
export default addCandidateToProject;
|