@credal/actions 0.2.79 → 0.2.82
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 +13 -1
- package/dist/actions/autogen/templates.d.ts +2 -0
- package/dist/actions/autogen/templates.js +90 -0
- package/dist/actions/autogen/types.d.ts +69 -0
- package/dist/actions/autogen/types.js +26 -0
- package/dist/actions/providers/confluence/updatePage.js +15 -14
- package/dist/actions/providers/firecrawl/searchAndScrape.d.ts +3 -0
- package/dist/actions/providers/firecrawl/searchAndScrape.js +44 -0
- package/dist/actions/providers/googlemail/sendGmail.js +61 -2
- package/dist/actions/providers/jamf/types.d.ts +8 -0
- package/dist/actions/providers/jamf/types.js +7 -0
- package/dist/actions/providers/resend/sendEmailHtml.d.ts +3 -0
- package/dist/actions/providers/resend/sendEmailHtml.js +37 -0
- package/package.json +1 -1
- package/dist/actions/providers/generic/fillTemplateAction.d.ts +0 -7
- package/dist/actions/providers/generic/fillTemplateAction.js +0 -18
- package/dist/actions/providers/generic/genericApiCall.d.ts +0 -3
- package/dist/actions/providers/generic/genericApiCall.js +0 -38
- package/dist/actions/providers/google-oauth/getDriveContentById.d.ts +0 -3
- package/dist/actions/providers/google-oauth/getDriveContentById.js +0 -161
- package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.d.ts +0 -3
- package/dist/actions/providers/google-oauth/searchAndGetDriveContentByKeywords.js +0 -47
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.d.ts +0 -3
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByKeywords.js +0 -110
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.d.ts +0 -3
- package/dist/actions/providers/google-oauth/searchDriveAndGetContentByQuery.js +0 -78
- package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.d.ts +0 -15
- package/dist/actions/providers/google-oauth/utils/extractContentFromDriveFileId.js +0 -129
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +0 -3
- package/dist/actions/providers/googlemaps/nearbysearch.js +0 -96
- package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.d.ts +0 -3
- package/dist/actions/providers/snowflake/runSnowflakeQueryWriteResultsToS3.js +0 -154
- package/dist/actions/providers/x/scrapeTweetDataWithNitter.d.ts +0 -3
- package/dist/actions/providers/x/scrapeTweetDataWithNitter.js +0 -45
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackArchiveChannelParamsSchema, slackArchiveChannelOutputSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraGetServiceDesksParamsSchema, jiraGetServiceDesksOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, gongGetGongTranscriptsParamsSchema, gongGetGongTranscriptsOutputSchema, ashbyCreateNoteParamsSchema, ashbyCreateNoteOutputSchema, ashbyGetCandidateInfoParamsSchema, ashbyGetCandidateInfoOutputSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, ashbyListCandidatesParamsSchema, ashbyListCandidatesOutputSchema, ashbyListCandidateNotesParamsSchema, ashbyListCandidateNotesOutputSchema, ashbySearchCandidatesParamsSchema, ashbySearchCandidatesOutputSchema, ashbyCreateCandidateParamsSchema, ashbyCreateCandidateOutputSchema, ashbyUpdateCandidateParamsSchema, ashbyUpdateCandidateOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, salesforceFetchSalesforceSchemaByObjectParamsSchema, salesforceFetchSalesforceSchemaByObjectOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, ashbyAddCandidateToProjectParamsSchema, ashbyAddCandidateToProjectOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, kandjiGetFVRecoveryKeyForDeviceParamsSchema, kandjiGetFVRecoveryKeyForDeviceOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, jamfGetJamfComputerInventoryParamsSchema, jamfGetJamfComputerInventoryOutputSchema, jamfGetJamfFileVaultRecoveryKeyParamsSchema, jamfGetJamfFileVaultRecoveryKeyOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, oktaListOktaUsersParamsSchema, oktaListOktaUsersOutputSchema, oktaGetOktaUserParamsSchema, oktaGetOktaUserOutputSchema, oktaListOktaUserGroupsParamsSchema, oktaListOktaUserGroupsOutputSchema, oktaListOktaGroupsParamsSchema, oktaListOktaGroupsOutputSchema, oktaGetOktaGroupParamsSchema, oktaGetOktaGroupOutputSchema, oktaListOktaGroupMembersParamsSchema, oktaListOktaGroupMembersOutputSchema, oktaRemoveUserFromGroupParamsSchema, oktaRemoveUserFromGroupOutputSchema, oktaAddUserToGroupParamsSchema, oktaAddUserToGroupOutputSchema, oktaResetPasswordParamsSchema, oktaResetPasswordOutputSchema, oktaResetMFAParamsSchema, oktaResetMFAOutputSchema, oktaListMFAParamsSchema, oktaListMFAOutputSchema, jamfGetJamfUserComputerIdParamsSchema, jamfGetJamfUserComputerIdOutputSchema, jamfLockJamfComputerByIdParamsSchema, jamfLockJamfComputerByIdOutputSchema, oktaTriggerOktaWorkflowParamsSchema, oktaTriggerOktaWorkflowOutputSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchRepositoryOutputSchema, githubSearchRepositoryParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, 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, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, } from "./autogen/types.js";
|
|
1
|
+
import { genericFillTemplateParamsSchema, genericFillTemplateOutputSchema, confluenceOverwritePageParamsSchema, confluenceOverwritePageOutputSchema, googlemapsValidateAddressOutputSchema, googlemapsValidateAddressParamsSchema, googleOauthCreateNewGoogleDocParamsSchema, googleOauthCreateNewGoogleDocOutputSchema, mathAddOutputSchema, mathAddParamsSchema, mongoInsertMongoDocOutputSchema, mongoInsertMongoDocParamsSchema, slackSendMessageOutputSchema, slackSendMessageParamsSchema, slackGetChannelMessagesOutputSchema, slackGetChannelMessagesParamsSchema, slackArchiveChannelParamsSchema, slackArchiveChannelOutputSchema, slackCreateChannelParamsSchema, slackCreateChannelOutputSchema, snowflakeGetRowByFieldValueOutputSchema, snowflakeGetRowByFieldValueParamsSchema, zendeskCreateZendeskTicketOutputSchema, zendeskCreateZendeskTicketParamsSchema, zendeskGetTicketDetailsOutputSchema, zendeskGetTicketDetailsParamsSchema, zendeskUpdateTicketStatusOutputSchema, zendeskUpdateTicketStatusParamsSchema, zendeskAddCommentToTicketOutputSchema, zendeskAddCommentToTicketParamsSchema, zendeskAssignTicketOutputSchema, zendeskAssignTicketParamsSchema, zendeskListZendeskTicketsOutputSchema, zendeskListZendeskTicketsParamsSchema, zendeskSearchZendeskByQueryOutputSchema, zendeskSearchZendeskByQueryParamsSchema, jiraAssignJiraTicketParamsSchema, jiraAssignJiraTicketOutputSchema, jiraCommentJiraTicketParamsSchema, jiraCommentJiraTicketOutputSchema, jiraCreateJiraTicketParamsSchema, jiraCreateJiraTicketOutputSchema, jiraGetJiraTicketDetailsParamsSchema, jiraGetJiraTicketDetailsOutputSchema, jiraGetJiraTicketHistoryParamsSchema, jiraGetJiraTicketHistoryOutputSchema, jiraUpdateJiraTicketDetailsParamsSchema, jiraUpdateJiraTicketDetailsOutputSchema, jiraUpdateJiraTicketStatusParamsSchema, jiraUpdateJiraTicketStatusOutputSchema, jiraGetServiceDesksParamsSchema, jiraGetServiceDesksOutputSchema, jiraCreateServiceDeskRequestParamsSchema, jiraCreateServiceDeskRequestOutputSchema, openstreetmapGetLatitudeLongitudeFromLocationParamsSchema, openstreetmapGetLatitudeLongitudeFromLocationOutputSchema, nwsGetForecastForLocationParamsSchema, nwsGetForecastForLocationOutputSchema, googlemapsNearbysearchRestaurantsOutputSchema, googlemapsNearbysearchRestaurantsParamsSchema, firecrawlScrapeUrlOutputSchema, firecrawlScrapeUrlParamsSchema, resendSendEmailOutputSchema, resendSendEmailHtmlParamsSchema, resendSendEmailHtmlOutputSchema, firecrawlScrapeTweetDataWithNitterParamsSchema, firecrawlScrapeTweetDataWithNitterOutputSchema, resendSendEmailParamsSchema, linkedinCreateShareLinkedinPostUrlParamsSchema, linkedinCreateShareLinkedinPostUrlOutputSchema, xCreateShareXPostUrlParamsSchema, xCreateShareXPostUrlOutputSchema, finnhubSymbolLookupParamsSchema, finnhubSymbolLookupOutputSchema, finnhubGetBasicFinancialsParamsSchema, finnhubGetBasicFinancialsOutputSchema, confluenceFetchPageContentParamsSchema, confluenceFetchPageContentOutputSchema, snowflakeRunSnowflakeQueryParamsSchema, snowflakeRunSnowflakeQueryOutputSchema, lookerEnableUserByEmailParamsSchema, lookerEnableUserByEmailOutputSchema, googleOauthUpdateDocParamsSchema, googleOauthUpdateDocOutputSchema, googleOauthCreateSpreadsheetParamsSchema, googleOauthCreateSpreadsheetOutputSchema, googleOauthUpdateSpreadsheetParamsSchema, googleOauthUpdateSpreadsheetOutputSchema, googleOauthScheduleCalendarMeetingParamsSchema, googleOauthScheduleCalendarMeetingOutputSchema, googleOauthListCalendarsParamsSchema, googleOauthListCalendarsOutputSchema, googleOauthListCalendarEventsParamsSchema, googleOauthListCalendarEventsOutputSchema, googleOauthUpdateCalendarEventParamsSchema, googleOauthUpdateCalendarEventOutputSchema, googleOauthDeleteCalendarEventParamsSchema, googleOauthDeleteCalendarEventOutputSchema, googleOauthEditAGoogleCalendarEventParamsSchema, googleOauthEditAGoogleCalendarEventOutputSchema, googleOauthCreatePresentationParamsSchema, googleOauthCreatePresentationOutputSchema, googleOauthUpdatePresentationParamsSchema, googleOauthUpdatePresentationOutputSchema, googleOauthSearchDriveByKeywordsParamsSchema, googleOauthSearchDriveByKeywordsOutputSchema, googleOauthListGroupsOutputSchema, googleOauthListGroupsParamsSchema, googleOauthGetGroupOutputSchema, googleOauthGetGroupParamsSchema, googleOauthListGroupMembersOutputSchema, googleOauthListGroupMembersParamsSchema, googleOauthHasGroupMemberOutputSchema, googleOauthHasGroupMemberParamsSchema, googleOauthAddGroupMemberOutputSchema, googleOauthAddGroupMemberParamsSchema, googleOauthDeleteGroupMemberOutputSchema, googleOauthDeleteGroupMemberParamsSchema, gongGetGongTranscriptsParamsSchema, gongGetGongTranscriptsOutputSchema, ashbyCreateNoteParamsSchema, ashbyCreateNoteOutputSchema, ashbyGetCandidateInfoParamsSchema, ashbyGetCandidateInfoOutputSchema, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, ashbyListCandidatesParamsSchema, ashbyListCandidatesOutputSchema, ashbyListCandidateNotesParamsSchema, ashbyListCandidateNotesOutputSchema, ashbySearchCandidatesParamsSchema, ashbySearchCandidatesOutputSchema, ashbyCreateCandidateParamsSchema, ashbyCreateCandidateOutputSchema, ashbyUpdateCandidateParamsSchema, ashbyUpdateCandidateOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, salesforceFetchSalesforceSchemaByObjectParamsSchema, salesforceFetchSalesforceSchemaByObjectOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, ashbyAddCandidateToProjectParamsSchema, ashbyAddCandidateToProjectOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, kandjiGetFVRecoveryKeyForDeviceParamsSchema, kandjiGetFVRecoveryKeyForDeviceOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, jamfGetJamfComputerInventoryParamsSchema, jamfGetJamfComputerInventoryOutputSchema, jamfGetJamfFileVaultRecoveryKeyParamsSchema, jamfGetJamfFileVaultRecoveryKeyOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, oktaListOktaUsersParamsSchema, oktaListOktaUsersOutputSchema, oktaGetOktaUserParamsSchema, oktaGetOktaUserOutputSchema, oktaListOktaUserGroupsParamsSchema, oktaListOktaUserGroupsOutputSchema, oktaListOktaGroupsParamsSchema, oktaListOktaGroupsOutputSchema, oktaGetOktaGroupParamsSchema, oktaGetOktaGroupOutputSchema, oktaListOktaGroupMembersParamsSchema, oktaListOktaGroupMembersOutputSchema, oktaRemoveUserFromGroupParamsSchema, oktaRemoveUserFromGroupOutputSchema, oktaAddUserToGroupParamsSchema, oktaAddUserToGroupOutputSchema, oktaResetPasswordParamsSchema, oktaResetPasswordOutputSchema, oktaResetMFAParamsSchema, oktaResetMFAOutputSchema, oktaListMFAParamsSchema, oktaListMFAOutputSchema, jamfGetJamfUserComputerIdParamsSchema, jamfGetJamfUserComputerIdOutputSchema, jamfLockJamfComputerByIdParamsSchema, jamfLockJamfComputerByIdOutputSchema, oktaTriggerOktaWorkflowParamsSchema, oktaTriggerOktaWorkflowOutputSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, githubSearchRepositoryOutputSchema, githubSearchRepositoryParamsSchema, githubSearchOrganizationOutputSchema, githubSearchOrganizationParamsSchema, salesforceSearchSalesforceRecordsParamsSchema, salesforceSearchSalesforceRecordsOutputSchema, googleOauthGetDriveFileContentByIdOutputSchema, googleOauthGetDriveFileContentByIdParamsSchema, googleOauthSearchDriveByQueryOutputSchema, googleOauthSearchDriveByQueryParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentParamsSchema, googleOauthSearchDriveByQueryAndGetFileContentOutputSchema, googleOauthQueryGoogleBigQueryParamsSchema, googleOauthQueryGoogleBigQueryOutputSchema, githubGetFileContentParamsSchema, githubGetFileContentOutputSchema, githubListDirectoryOutputSchema, githubListDirectoryParamsSchema, 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, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, } 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";
|
|
@@ -26,6 +26,7 @@ import getSalesforceRecordsByQuery from "./providers/salesforce/getSalesforceRec
|
|
|
26
26
|
import nearbysearch from "./providers/googlemaps/nearbysearchRestaurants.js";
|
|
27
27
|
import scrapeUrl from "./providers/firecrawl/scrapeUrl.js";
|
|
28
28
|
import sendEmail from "./providers/resend/sendEmail.js";
|
|
29
|
+
import sendEmailHtml from "./providers/resend/sendEmailHtml.js";
|
|
29
30
|
import commentAsanaTask from "./providers/asana/commentAsanaTask.js";
|
|
30
31
|
import createAsanaTask from "./providers/asana/createAsanaTask.js";
|
|
31
32
|
import updateAsanaTask from "./providers/asana/updateAsanaTask.js";
|
|
@@ -140,6 +141,7 @@ import gitlabGetFileContent from "./providers/gitlab/getFileContent.js";
|
|
|
140
141
|
import gitlabListDirectory from "./providers/gitlab/listDirectory.js";
|
|
141
142
|
import publicCommentOnServiceDeskRequest from "./providers/jira/publicCommentOnServiceDeskRequest.js";
|
|
142
143
|
import sendGmail from "./providers/googlemail/sendGmail.js";
|
|
144
|
+
import searchAndScrape from "./providers/firecrawl/searchAndScrape.js";
|
|
143
145
|
const jiraActions = {
|
|
144
146
|
getJiraIssuesByQuery: {
|
|
145
147
|
fn: getJiraIssuesByQuery,
|
|
@@ -421,6 +423,11 @@ export const ActionMapper = {
|
|
|
421
423
|
paramsSchema: firecrawlDeepResearchParamsSchema,
|
|
422
424
|
outputSchema: firecrawlDeepResearchOutputSchema,
|
|
423
425
|
},
|
|
426
|
+
searchAndScrape: {
|
|
427
|
+
fn: searchAndScrape,
|
|
428
|
+
paramsSchema: firecrawlSearchAndScrapeParamsSchema,
|
|
429
|
+
outputSchema: firecrawlSearchAndScrapeOutputSchema,
|
|
430
|
+
},
|
|
424
431
|
},
|
|
425
432
|
resend: {
|
|
426
433
|
sendEmail: {
|
|
@@ -428,6 +435,11 @@ export const ActionMapper = {
|
|
|
428
435
|
paramsSchema: resendSendEmailParamsSchema,
|
|
429
436
|
outputSchema: resendSendEmailOutputSchema,
|
|
430
437
|
},
|
|
438
|
+
sendEmailHtml: {
|
|
439
|
+
fn: sendEmailHtml,
|
|
440
|
+
paramsSchema: resendSendEmailHtmlParamsSchema,
|
|
441
|
+
outputSchema: resendSendEmailHtmlOutputSchema,
|
|
442
|
+
},
|
|
431
443
|
},
|
|
432
444
|
googleOauth: {
|
|
433
445
|
createNewGoogleDoc: {
|
|
@@ -55,8 +55,10 @@ export declare const openstreetmapGetLatitudeLongitudeFromLocationDefinition: Ac
|
|
|
55
55
|
export declare const nwsGetForecastForLocationDefinition: ActionTemplate;
|
|
56
56
|
export declare const firecrawlDeepResearchDefinition: ActionTemplate;
|
|
57
57
|
export declare const firecrawlScrapeUrlDefinition: ActionTemplate;
|
|
58
|
+
export declare const firecrawlSearchAndScrapeDefinition: ActionTemplate;
|
|
58
59
|
export declare const firecrawlScrapeTweetDataWithNitterDefinition: ActionTemplate;
|
|
59
60
|
export declare const resendSendEmailDefinition: ActionTemplate;
|
|
61
|
+
export declare const resendSendEmailHtmlDefinition: ActionTemplate;
|
|
60
62
|
export declare const googleOauthCreateNewGoogleDocDefinition: ActionTemplate;
|
|
61
63
|
export declare const googleOauthUpdateDocDefinition: ActionTemplate;
|
|
62
64
|
export declare const googleOauthScheduleCalendarMeetingDefinition: ActionTemplate;
|
|
@@ -3037,6 +3037,58 @@ export const firecrawlScrapeUrlDefinition = {
|
|
|
3037
3037
|
name: "scrapeUrl",
|
|
3038
3038
|
provider: "firecrawl",
|
|
3039
3039
|
};
|
|
3040
|
+
export const firecrawlSearchAndScrapeDefinition = {
|
|
3041
|
+
description: "Search and scrape the web using Firecrawl",
|
|
3042
|
+
scopes: [],
|
|
3043
|
+
parameters: {
|
|
3044
|
+
type: "object",
|
|
3045
|
+
required: ["query"],
|
|
3046
|
+
properties: {
|
|
3047
|
+
query: {
|
|
3048
|
+
type: "string",
|
|
3049
|
+
description: "The query to search for",
|
|
3050
|
+
},
|
|
3051
|
+
count: {
|
|
3052
|
+
type: "number",
|
|
3053
|
+
description: "The number of results to return. Default is 5.",
|
|
3054
|
+
},
|
|
3055
|
+
site: {
|
|
3056
|
+
type: "string",
|
|
3057
|
+
description: "The site to restrict the search to (by inserting site:<site.com> in the query). Examples include openai.com, github.com",
|
|
3058
|
+
},
|
|
3059
|
+
},
|
|
3060
|
+
},
|
|
3061
|
+
output: {
|
|
3062
|
+
type: "object",
|
|
3063
|
+
required: ["results"],
|
|
3064
|
+
properties: {
|
|
3065
|
+
results: {
|
|
3066
|
+
type: "array",
|
|
3067
|
+
description: "The results of the search",
|
|
3068
|
+
items: {
|
|
3069
|
+
type: "object",
|
|
3070
|
+
required: ["url", "title", "contents"],
|
|
3071
|
+
properties: {
|
|
3072
|
+
url: {
|
|
3073
|
+
type: "string",
|
|
3074
|
+
description: "The URL of the result",
|
|
3075
|
+
},
|
|
3076
|
+
title: {
|
|
3077
|
+
type: "string",
|
|
3078
|
+
description: "The title of the result",
|
|
3079
|
+
},
|
|
3080
|
+
contents: {
|
|
3081
|
+
type: "string",
|
|
3082
|
+
description: "The contents of the result",
|
|
3083
|
+
},
|
|
3084
|
+
},
|
|
3085
|
+
},
|
|
3086
|
+
},
|
|
3087
|
+
},
|
|
3088
|
+
},
|
|
3089
|
+
name: "searchAndScrape",
|
|
3090
|
+
provider: "firecrawl",
|
|
3091
|
+
};
|
|
3040
3092
|
export const firecrawlScrapeTweetDataWithNitterDefinition = {
|
|
3041
3093
|
description: "Given A tweet URL scrape the tweet data with nitter+firecrawl",
|
|
3042
3094
|
scopes: [],
|
|
@@ -3101,6 +3153,44 @@ export const resendSendEmailDefinition = {
|
|
|
3101
3153
|
name: "sendEmail",
|
|
3102
3154
|
provider: "resend",
|
|
3103
3155
|
};
|
|
3156
|
+
export const resendSendEmailHtmlDefinition = {
|
|
3157
|
+
description: "Send an HTML email using Resend",
|
|
3158
|
+
scopes: [],
|
|
3159
|
+
parameters: {
|
|
3160
|
+
type: "object",
|
|
3161
|
+
required: ["to", "subject", "html"],
|
|
3162
|
+
properties: {
|
|
3163
|
+
to: {
|
|
3164
|
+
type: "string",
|
|
3165
|
+
description: "The email address to send the email to",
|
|
3166
|
+
},
|
|
3167
|
+
subject: {
|
|
3168
|
+
type: "string",
|
|
3169
|
+
description: "The subject of the email",
|
|
3170
|
+
},
|
|
3171
|
+
html: {
|
|
3172
|
+
type: "string",
|
|
3173
|
+
description: "The HTML content of the email",
|
|
3174
|
+
},
|
|
3175
|
+
},
|
|
3176
|
+
},
|
|
3177
|
+
output: {
|
|
3178
|
+
type: "object",
|
|
3179
|
+
required: ["success"],
|
|
3180
|
+
properties: {
|
|
3181
|
+
success: {
|
|
3182
|
+
type: "boolean",
|
|
3183
|
+
description: "Whether the email was sent successfully",
|
|
3184
|
+
},
|
|
3185
|
+
error: {
|
|
3186
|
+
type: "string",
|
|
3187
|
+
description: "The error that occurred if the email was not sent successfully",
|
|
3188
|
+
},
|
|
3189
|
+
},
|
|
3190
|
+
},
|
|
3191
|
+
name: "sendEmailHtml",
|
|
3192
|
+
provider: "resend",
|
|
3193
|
+
};
|
|
3104
3194
|
export const googleOauthCreateNewGoogleDocDefinition = {
|
|
3105
3195
|
description: "Create a new Google Docs document using OAuth authentication",
|
|
3106
3196
|
scopes: [],
|
|
@@ -2995,6 +2995,49 @@ export declare const firecrawlScrapeUrlOutputSchema: z.ZodObject<{
|
|
|
2995
2995
|
}>;
|
|
2996
2996
|
export type firecrawlScrapeUrlOutputType = z.infer<typeof firecrawlScrapeUrlOutputSchema>;
|
|
2997
2997
|
export type firecrawlScrapeUrlFunction = ActionFunction<firecrawlScrapeUrlParamsType, AuthParamsType, firecrawlScrapeUrlOutputType>;
|
|
2998
|
+
export declare const firecrawlSearchAndScrapeParamsSchema: z.ZodObject<{
|
|
2999
|
+
query: z.ZodString;
|
|
3000
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
3001
|
+
site: z.ZodOptional<z.ZodString>;
|
|
3002
|
+
}, "strip", z.ZodTypeAny, {
|
|
3003
|
+
query: string;
|
|
3004
|
+
count?: number | undefined;
|
|
3005
|
+
site?: string | undefined;
|
|
3006
|
+
}, {
|
|
3007
|
+
query: string;
|
|
3008
|
+
count?: number | undefined;
|
|
3009
|
+
site?: string | undefined;
|
|
3010
|
+
}>;
|
|
3011
|
+
export type firecrawlSearchAndScrapeParamsType = z.infer<typeof firecrawlSearchAndScrapeParamsSchema>;
|
|
3012
|
+
export declare const firecrawlSearchAndScrapeOutputSchema: z.ZodObject<{
|
|
3013
|
+
results: z.ZodArray<z.ZodObject<{
|
|
3014
|
+
url: z.ZodString;
|
|
3015
|
+
title: z.ZodString;
|
|
3016
|
+
contents: z.ZodString;
|
|
3017
|
+
}, "strip", z.ZodTypeAny, {
|
|
3018
|
+
title: string;
|
|
3019
|
+
url: string;
|
|
3020
|
+
contents: string;
|
|
3021
|
+
}, {
|
|
3022
|
+
title: string;
|
|
3023
|
+
url: string;
|
|
3024
|
+
contents: string;
|
|
3025
|
+
}>, "many">;
|
|
3026
|
+
}, "strip", z.ZodTypeAny, {
|
|
3027
|
+
results: {
|
|
3028
|
+
title: string;
|
|
3029
|
+
url: string;
|
|
3030
|
+
contents: string;
|
|
3031
|
+
}[];
|
|
3032
|
+
}, {
|
|
3033
|
+
results: {
|
|
3034
|
+
title: string;
|
|
3035
|
+
url: string;
|
|
3036
|
+
contents: string;
|
|
3037
|
+
}[];
|
|
3038
|
+
}>;
|
|
3039
|
+
export type firecrawlSearchAndScrapeOutputType = z.infer<typeof firecrawlSearchAndScrapeOutputSchema>;
|
|
3040
|
+
export type firecrawlSearchAndScrapeFunction = ActionFunction<firecrawlSearchAndScrapeParamsType, AuthParamsType, firecrawlSearchAndScrapeOutputType>;
|
|
2998
3041
|
export declare const firecrawlScrapeTweetDataWithNitterParamsSchema: z.ZodObject<{
|
|
2999
3042
|
tweetUrl: z.ZodString;
|
|
3000
3043
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3038,6 +3081,32 @@ export declare const resendSendEmailOutputSchema: z.ZodObject<{
|
|
|
3038
3081
|
}>;
|
|
3039
3082
|
export type resendSendEmailOutputType = z.infer<typeof resendSendEmailOutputSchema>;
|
|
3040
3083
|
export type resendSendEmailFunction = ActionFunction<resendSendEmailParamsType, AuthParamsType, resendSendEmailOutputType>;
|
|
3084
|
+
export declare const resendSendEmailHtmlParamsSchema: z.ZodObject<{
|
|
3085
|
+
to: z.ZodString;
|
|
3086
|
+
subject: z.ZodString;
|
|
3087
|
+
html: z.ZodString;
|
|
3088
|
+
}, "strip", z.ZodTypeAny, {
|
|
3089
|
+
subject: string;
|
|
3090
|
+
to: string;
|
|
3091
|
+
html: string;
|
|
3092
|
+
}, {
|
|
3093
|
+
subject: string;
|
|
3094
|
+
to: string;
|
|
3095
|
+
html: string;
|
|
3096
|
+
}>;
|
|
3097
|
+
export type resendSendEmailHtmlParamsType = z.infer<typeof resendSendEmailHtmlParamsSchema>;
|
|
3098
|
+
export declare const resendSendEmailHtmlOutputSchema: z.ZodObject<{
|
|
3099
|
+
success: z.ZodBoolean;
|
|
3100
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3101
|
+
}, "strip", z.ZodTypeAny, {
|
|
3102
|
+
success: boolean;
|
|
3103
|
+
error?: string | undefined;
|
|
3104
|
+
}, {
|
|
3105
|
+
success: boolean;
|
|
3106
|
+
error?: string | undefined;
|
|
3107
|
+
}>;
|
|
3108
|
+
export type resendSendEmailHtmlOutputType = z.infer<typeof resendSendEmailHtmlOutputSchema>;
|
|
3109
|
+
export type resendSendEmailHtmlFunction = ActionFunction<resendSendEmailHtmlParamsType, AuthParamsType, resendSendEmailHtmlOutputType>;
|
|
3041
3110
|
export declare const googleOauthCreateNewGoogleDocParamsSchema: z.ZodObject<{
|
|
3042
3111
|
title: z.ZodString;
|
|
3043
3112
|
content: z.ZodOptional<z.ZodString>;
|
|
@@ -911,6 +911,23 @@ export const firecrawlDeepResearchOutputSchema = z.object({
|
|
|
911
911
|
});
|
|
912
912
|
export const firecrawlScrapeUrlParamsSchema = z.object({ url: z.string().describe("The URL to scrape") });
|
|
913
913
|
export const firecrawlScrapeUrlOutputSchema = z.object({ content: z.string().describe("The content of the URL") });
|
|
914
|
+
export const firecrawlSearchAndScrapeParamsSchema = z.object({
|
|
915
|
+
query: z.string().describe("The query to search for"),
|
|
916
|
+
count: z.number().describe("The number of results to return. Default is 5.").optional(),
|
|
917
|
+
site: z
|
|
918
|
+
.string()
|
|
919
|
+
.describe("The site to restrict the search to (by inserting site:<site.com> in the query). Examples include openai.com, github.com")
|
|
920
|
+
.optional(),
|
|
921
|
+
});
|
|
922
|
+
export const firecrawlSearchAndScrapeOutputSchema = z.object({
|
|
923
|
+
results: z
|
|
924
|
+
.array(z.object({
|
|
925
|
+
url: z.string().describe("The URL of the result"),
|
|
926
|
+
title: z.string().describe("The title of the result"),
|
|
927
|
+
contents: z.string().describe("The contents of the result"),
|
|
928
|
+
}))
|
|
929
|
+
.describe("The results of the search"),
|
|
930
|
+
});
|
|
914
931
|
export const firecrawlScrapeTweetDataWithNitterParamsSchema = z.object({
|
|
915
932
|
tweetUrl: z.string().describe("The url for the X(formerly twitter) post"),
|
|
916
933
|
});
|
|
@@ -926,6 +943,15 @@ export const resendSendEmailOutputSchema = z.object({
|
|
|
926
943
|
success: z.boolean().describe("Whether the email was sent successfully"),
|
|
927
944
|
error: z.string().describe("The error that occurred if the email was not sent successfully").optional(),
|
|
928
945
|
});
|
|
946
|
+
export const resendSendEmailHtmlParamsSchema = z.object({
|
|
947
|
+
to: z.string().describe("The email address to send the email to"),
|
|
948
|
+
subject: z.string().describe("The subject of the email"),
|
|
949
|
+
html: z.string().describe("The HTML content of the email"),
|
|
950
|
+
});
|
|
951
|
+
export const resendSendEmailHtmlOutputSchema = z.object({
|
|
952
|
+
success: z.boolean().describe("Whether the email was sent successfully"),
|
|
953
|
+
error: z.string().describe("The error that occurred if the email was not sent successfully").optional(),
|
|
954
|
+
});
|
|
929
955
|
export const googleOauthCreateNewGoogleDocParamsSchema = z.object({
|
|
930
956
|
title: z.string().describe("The title of the new Google Doc"),
|
|
931
957
|
content: z.string().describe("The content to add to the new Google Doc").optional(),
|
|
@@ -8,28 +8,30 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
+
const axios_1 = __importDefault(require("axios"));
|
|
16
|
+
function getConfluenceApi(baseUrl, username, apiToken) {
|
|
17
|
+
const api = axios_1.default.create({
|
|
15
18
|
baseURL: baseUrl,
|
|
16
19
|
headers: {
|
|
17
20
|
Accept: "application/json",
|
|
21
|
+
// Tokens are associated with a specific user.
|
|
18
22
|
Authorization: `Basic ${Buffer.from(`${username}:${apiToken}`).toString("base64")}`,
|
|
19
23
|
},
|
|
20
|
-
};
|
|
24
|
+
});
|
|
25
|
+
return api;
|
|
21
26
|
}
|
|
22
27
|
const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
23
|
-
const { pageId, content, title } = params;
|
|
24
|
-
const { baseUrl, authToken
|
|
25
|
-
|
|
26
|
-
throw new Error("Missing required authentication information");
|
|
27
|
-
}
|
|
28
|
-
const config = getConfluenceRequestConfig(baseUrl, username, authToken);
|
|
28
|
+
const { pageId, username, content, title } = params;
|
|
29
|
+
const { baseUrl, authToken } = authParams;
|
|
30
|
+
const api = getConfluenceApi(baseUrl, username, authToken);
|
|
29
31
|
// Get current version number
|
|
30
|
-
const response = yield
|
|
32
|
+
const response = yield api.get(`/api/v2/pages/${pageId}`);
|
|
31
33
|
const currVersion = response.data.version.number;
|
|
32
|
-
|
|
34
|
+
yield api.put(`/api/v2/pages/${pageId}`, {
|
|
33
35
|
id: pageId,
|
|
34
36
|
status: "current",
|
|
35
37
|
title,
|
|
@@ -40,7 +42,6 @@ const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* (
|
|
|
40
42
|
version: {
|
|
41
43
|
number: currVersion + 1,
|
|
42
44
|
},
|
|
43
|
-
};
|
|
44
|
-
yield axiosClient_1.axiosClient.put(`/api/v2/pages/${pageId}`, payload, config);
|
|
45
|
+
});
|
|
45
46
|
});
|
|
46
47
|
exports.default = confluenceUpdatePage;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 FirecrawlApp from "@mendable/firecrawl-js";
|
|
11
|
+
const searchAndScrape = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
|
+
const { apiKey } = authParams;
|
|
13
|
+
if (!apiKey)
|
|
14
|
+
throw new Error("Missing Firecrawl API key");
|
|
15
|
+
const app = new FirecrawlApp({ apiKey });
|
|
16
|
+
const { query, count = 5, site } = params;
|
|
17
|
+
const searchQuery = `${query}${site ? ` site:${site}` : ""}`;
|
|
18
|
+
const searchRes = yield app.search(searchQuery, {
|
|
19
|
+
limit: count,
|
|
20
|
+
scrapeOptions: {
|
|
21
|
+
formats: ["markdown"],
|
|
22
|
+
timeout: 7500,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
if (!(searchRes === null || searchRes === void 0 ? void 0 : searchRes.success)) {
|
|
26
|
+
return { results: [] };
|
|
27
|
+
}
|
|
28
|
+
const results = searchRes.data
|
|
29
|
+
.map(r => {
|
|
30
|
+
var _a, _b, _c;
|
|
31
|
+
const url = r.url;
|
|
32
|
+
const contents = r.markdown;
|
|
33
|
+
const title = (_c = (_a = r.title) !== null && _a !== void 0 ? _a : (_b = r.metadata) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : null;
|
|
34
|
+
if (!url || !contents || !title)
|
|
35
|
+
return undefined;
|
|
36
|
+
return { url, title, contents };
|
|
37
|
+
})
|
|
38
|
+
.filter(NotEmpty);
|
|
39
|
+
return { results };
|
|
40
|
+
});
|
|
41
|
+
export default searchAndScrape;
|
|
42
|
+
function NotEmpty(value) {
|
|
43
|
+
return value !== null && value !== undefined;
|
|
44
|
+
}
|
|
@@ -10,11 +10,61 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { axiosClient } from "../../util/axiosClient.js";
|
|
11
11
|
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
12
|
const sendGmail = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
|
+
var _b, _c, _d;
|
|
13
14
|
if (!authParams.authToken) {
|
|
14
15
|
return { success: false, error: MISSING_AUTH_TOKEN };
|
|
15
16
|
}
|
|
16
17
|
const { to, cc, bcc, subject, content, threadId } = params;
|
|
17
18
|
try {
|
|
19
|
+
// If replying to a thread, get the original message details
|
|
20
|
+
let inReplyTo = "";
|
|
21
|
+
let references = "";
|
|
22
|
+
let formattedSubject = subject;
|
|
23
|
+
if (threadId) {
|
|
24
|
+
try {
|
|
25
|
+
// Get the thread to find the last message ID and subject
|
|
26
|
+
const threadResponse = yield axiosClient.get(`https://gmail.googleapis.com/gmail/v1/users/me/threads/${threadId}`, {
|
|
27
|
+
headers: {
|
|
28
|
+
Authorization: `Bearer ${authParams.authToken}`,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
const messages = threadResponse.data.messages;
|
|
32
|
+
if (messages && messages.length > 0) {
|
|
33
|
+
const lastMessage = messages[messages.length - 1];
|
|
34
|
+
// Get the Message-ID header from the last message
|
|
35
|
+
const messageIdHeader = (_b = lastMessage.payload.headers) === null || _b === void 0 ? void 0 : _b.find((h) => h.name.toLowerCase() === "message-id");
|
|
36
|
+
if (messageIdHeader) {
|
|
37
|
+
inReplyTo = messageIdHeader.value;
|
|
38
|
+
}
|
|
39
|
+
// Get existing References header or create new one
|
|
40
|
+
const referencesHeader = (_c = lastMessage.payload.headers) === null || _c === void 0 ? void 0 : _c.find((h) => h.name.toLowerCase() === "references");
|
|
41
|
+
if (referencesHeader) {
|
|
42
|
+
references = `${referencesHeader.value} ${inReplyTo}`.trim();
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
references = inReplyTo;
|
|
46
|
+
}
|
|
47
|
+
// Get original subject and format as reply
|
|
48
|
+
const subjectHeader = (_d = lastMessage.payload.headers) === null || _d === void 0 ? void 0 : _d.find((h) => h.name.toLowerCase() === "subject");
|
|
49
|
+
// When threadId is provided, ALWAYS use the original thread's subject
|
|
50
|
+
// Ignore the subject parameter completely to ensure proper threading
|
|
51
|
+
if (subjectHeader) {
|
|
52
|
+
const originalSubject = subjectHeader.value;
|
|
53
|
+
formattedSubject = originalSubject.toLowerCase().startsWith("re:")
|
|
54
|
+
? originalSubject
|
|
55
|
+
: `Re: ${originalSubject}`;
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
formattedSubject = "Re: (no subject)";
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch (threadError) {
|
|
63
|
+
console.warn("Could not fetch thread details for proper reply formatting:", threadError);
|
|
64
|
+
// When threadId is provided but thread fetch fails, still ignore the subject param
|
|
65
|
+
formattedSubject = "Re: (no subject)";
|
|
66
|
+
}
|
|
67
|
+
}
|
|
18
68
|
// Create the email message in RFC 2822 format
|
|
19
69
|
let message = "";
|
|
20
70
|
// Add recipients
|
|
@@ -27,8 +77,15 @@ const sendGmail = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, a
|
|
|
27
77
|
if (bcc && bcc.length > 0) {
|
|
28
78
|
message += `Bcc: ${bcc.join(", ")}\r\n`;
|
|
29
79
|
}
|
|
30
|
-
// Add subject
|
|
31
|
-
message += `Subject: ${
|
|
80
|
+
// Add subject (formatted for reply if needed)
|
|
81
|
+
message += `Subject: ${formattedSubject}\r\n`;
|
|
82
|
+
// Add threading headers if replying - CRITICAL for proper threading
|
|
83
|
+
if (threadId && inReplyTo) {
|
|
84
|
+
message += `In-Reply-To: ${inReplyTo}\r\n`;
|
|
85
|
+
if (references) {
|
|
86
|
+
message += `References: ${references}\r\n`;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
32
89
|
message += `Content-Type: text/html; charset=utf-8\r\n`;
|
|
33
90
|
message += `MIME-Version: 1.0\r\n`;
|
|
34
91
|
message += `\r\n`;
|
|
@@ -42,6 +99,7 @@ const sendGmail = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, a
|
|
|
42
99
|
const requestBody = {
|
|
43
100
|
raw: encodedMessage,
|
|
44
101
|
};
|
|
102
|
+
// IMPORTANT: Include threadId in the request body for proper threading
|
|
45
103
|
if (threadId) {
|
|
46
104
|
requestBody.threadId = threadId;
|
|
47
105
|
}
|
|
@@ -57,6 +115,7 @@ const sendGmail = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, a
|
|
|
57
115
|
};
|
|
58
116
|
}
|
|
59
117
|
catch (error) {
|
|
118
|
+
console.error("Gmail send error:", error);
|
|
60
119
|
return {
|
|
61
120
|
success: false,
|
|
62
121
|
error: error instanceof Error ? error.message : "Unknown error sending email",
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { Resend } from "resend";
|
|
11
|
+
import { resendSendEmailHtmlOutputSchema } from "../../autogen/types.js";
|
|
12
|
+
const sendEmailHtml = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
13
|
+
try {
|
|
14
|
+
const resend = new Resend(authParams.apiKey);
|
|
15
|
+
const result = yield resend.emails.send({
|
|
16
|
+
from: authParams.emailFrom,
|
|
17
|
+
replyTo: authParams.emailReplyTo,
|
|
18
|
+
bcc: authParams.emailBcc,
|
|
19
|
+
to: params.to,
|
|
20
|
+
subject: params.subject,
|
|
21
|
+
html: params.html,
|
|
22
|
+
});
|
|
23
|
+
if (result.error) {
|
|
24
|
+
throw new Error(result.error.message);
|
|
25
|
+
}
|
|
26
|
+
return resendSendEmailHtmlOutputSchema.parse({
|
|
27
|
+
success: true,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
return resendSendEmailHtmlOutputSchema.parse({
|
|
32
|
+
success: false,
|
|
33
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export default sendEmailHtml;
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const fillTemplateAction = (_a) => __awaiter(void 0, [_a], void 0, function* ({ template }) {
|
|
13
|
-
// Simply return the template without any modification
|
|
14
|
-
return {
|
|
15
|
-
result: template,
|
|
16
|
-
};
|
|
17
|
-
});
|
|
18
|
-
exports.default = fillTemplateAction;
|