@credal/actions 0.2.104 → 0.2.106
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 +9 -1
- package/dist/actions/autogen/templates.d.ts +1 -0
- package/dist/actions/autogen/templates.js +81 -0
- package/dist/actions/autogen/types.d.ts +65 -2
- package/dist/actions/autogen/types.js +22 -0
- package/dist/actions/groups.js +1 -14
- package/dist/actions/parse.d.ts +3 -3
- package/dist/actions/providers/github/searchOrganization.js +3 -3
- package/dist/actions/providers/google-oauth/listGmailThreads.d.ts +3 -0
- package/dist/actions/providers/google-oauth/listGmailThreads.js +98 -0
- package/dist/actions/providers/google-oauth/searchGmailMessages.d.ts +3 -0
- package/dist/actions/providers/google-oauth/searchGmailMessages.js +91 -0
- package/dist/actions/providers/jamf/getComputerInventory.d.ts +3 -0
- package/dist/actions/providers/jamf/getComputerInventory.js +45 -0
- package/dist/actions/providers/jamf/getFileVaultRecoveryKey.d.ts +3 -0
- package/dist/actions/providers/jamf/getFileVaultRecoveryKey.js +40 -0
- package/dist/actions/providers/jamf/restartJamfComputerById.d.ts +3 -0
- package/dist/actions/providers/jamf/restartJamfComputerById.js +37 -0
- package/dist/actions/providers/perplexity/perplexityDeepResearch.d.ts +3 -0
- package/dist/actions/providers/perplexity/perplexityDeepResearch.js +62 -0
- package/dist/actions/providers/slack/archiveChannel.js +9 -5
- package/package.json +1 -1
- package/dist/actions/providers/confluence/updatePage.d.ts +0 -3
- package/dist/actions/providers/confluence/updatePage.js +0 -47
|
@@ -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, 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, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, 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, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, } 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, 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, googleOauthGetPresentationParamsSchema, googleOauthGetPresentationOutputSchema, 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, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, } 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";
|
|
@@ -144,6 +144,7 @@ import sendGmail from "./providers/googlemail/sendGmail.js";
|
|
|
144
144
|
import searchAndScrape from "./providers/firecrawl/searchAndScrape.js";
|
|
145
145
|
import firecrawlGetTopNSearchResultUrls from "./providers/firecrawl/getTopNSearchResultUrls.js";
|
|
146
146
|
import searchDriveByKeywordsAndGetFileContent from "./providers/google-oauth/searchDriveByKeywordsAndGetFileContent.js";
|
|
147
|
+
import perplexityDeepResearch from "./providers/perplexity/perplexityDeepResearch.js";
|
|
147
148
|
const jiraActions = {
|
|
148
149
|
getJiraIssuesByQuery: {
|
|
149
150
|
fn: getJiraIssuesByQuery,
|
|
@@ -209,6 +210,13 @@ export const ActionMapper = {
|
|
|
209
210
|
outputSchema: genericFillTemplateOutputSchema,
|
|
210
211
|
},
|
|
211
212
|
},
|
|
213
|
+
perplexity: {
|
|
214
|
+
perplexityDeepResearch: {
|
|
215
|
+
fn: perplexityDeepResearch,
|
|
216
|
+
paramsSchema: perplexityPerplexityDeepResearchParamsSchema,
|
|
217
|
+
outputSchema: perplexityPerplexityDeepResearchOutputSchema,
|
|
218
|
+
},
|
|
219
|
+
},
|
|
212
220
|
asana: {
|
|
213
221
|
commentTask: {
|
|
214
222
|
fn: commentAsanaTask,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ActionTemplate } from "../../actions/parse";
|
|
2
2
|
export declare const genericFillTemplateDefinition: ActionTemplate;
|
|
3
|
+
export declare const perplexityPerplexityDeepResearchDefinition: ActionTemplate;
|
|
3
4
|
export declare const asanaCommentTaskDefinition: ActionTemplate;
|
|
4
5
|
export declare const asanaListAsanaTasksByProjectDefinition: ActionTemplate;
|
|
5
6
|
export declare const asanaCreateTaskDefinition: ActionTemplate;
|
|
@@ -24,6 +24,87 @@ export const genericFillTemplateDefinition = {
|
|
|
24
24
|
name: "fillTemplate",
|
|
25
25
|
provider: "generic",
|
|
26
26
|
};
|
|
27
|
+
export const perplexityPerplexityDeepResearchDefinition = {
|
|
28
|
+
description: "Performs deep research using Perplexity AI",
|
|
29
|
+
scopes: [],
|
|
30
|
+
parameters: {
|
|
31
|
+
type: "object",
|
|
32
|
+
required: ["query"],
|
|
33
|
+
properties: {
|
|
34
|
+
query: {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "The research query/question",
|
|
37
|
+
},
|
|
38
|
+
reasoningEffort: {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: 'Optional reasoning effort level ("low", "medium", "high"). Defaults to "medium".',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
output: {
|
|
45
|
+
type: "object",
|
|
46
|
+
required: ["success"],
|
|
47
|
+
properties: {
|
|
48
|
+
error: {
|
|
49
|
+
type: "string",
|
|
50
|
+
description: "Error if comment was unsuccessful",
|
|
51
|
+
},
|
|
52
|
+
success: {
|
|
53
|
+
type: "boolean",
|
|
54
|
+
description: "Whether comment was successfully made",
|
|
55
|
+
},
|
|
56
|
+
result: {
|
|
57
|
+
type: "object",
|
|
58
|
+
description: "The main research response/analysis",
|
|
59
|
+
properties: {
|
|
60
|
+
content: {
|
|
61
|
+
type: "string",
|
|
62
|
+
description: "The main research response/analysis",
|
|
63
|
+
},
|
|
64
|
+
sources: {
|
|
65
|
+
type: "array",
|
|
66
|
+
description: "Array of source citations",
|
|
67
|
+
items: {
|
|
68
|
+
type: "object",
|
|
69
|
+
properties: {
|
|
70
|
+
title: {
|
|
71
|
+
type: "string",
|
|
72
|
+
},
|
|
73
|
+
url: {
|
|
74
|
+
type: "string",
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
snippet: {
|
|
79
|
+
type: "string",
|
|
80
|
+
nullable: true,
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
usage: {
|
|
85
|
+
type: "object",
|
|
86
|
+
description: "Token usage metrics",
|
|
87
|
+
properties: {
|
|
88
|
+
input_tokens: {
|
|
89
|
+
type: "number",
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
output_tokens: {
|
|
93
|
+
type: "number",
|
|
94
|
+
},
|
|
95
|
+
reasoning_tokens: {
|
|
96
|
+
type: "number",
|
|
97
|
+
},
|
|
98
|
+
search_queries: {
|
|
99
|
+
type: "number",
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
name: "perplexityDeepResearch",
|
|
106
|
+
provider: "perplexity",
|
|
107
|
+
};
|
|
27
108
|
export const asanaCommentTaskDefinition = {
|
|
28
109
|
description: "Comments on an Asana task with specified content",
|
|
29
110
|
scopes: [],
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare enum ProviderName {
|
|
3
3
|
GENERIC = "generic",
|
|
4
|
+
PERPLEXITY = "perplexity",
|
|
4
5
|
ASANA = "asana",
|
|
5
6
|
SLACK = "slack",
|
|
6
7
|
MATH = "math",
|
|
@@ -118,6 +119,68 @@ export declare const genericFillTemplateOutputSchema: z.ZodObject<{
|
|
|
118
119
|
}>;
|
|
119
120
|
export type genericFillTemplateOutputType = z.infer<typeof genericFillTemplateOutputSchema>;
|
|
120
121
|
export type genericFillTemplateFunction = ActionFunction<genericFillTemplateParamsType, AuthParamsType, genericFillTemplateOutputType>;
|
|
122
|
+
export declare const perplexityPerplexityDeepResearchParamsSchema: z.ZodObject<{
|
|
123
|
+
query: z.ZodString;
|
|
124
|
+
reasoningEffort: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
query: string;
|
|
127
|
+
reasoningEffort?: string | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
query: string;
|
|
130
|
+
reasoningEffort?: string | undefined;
|
|
131
|
+
}>;
|
|
132
|
+
export type perplexityPerplexityDeepResearchParamsType = z.infer<typeof perplexityPerplexityDeepResearchParamsSchema>;
|
|
133
|
+
export declare const perplexityPerplexityDeepResearchOutputSchema: z.ZodObject<{
|
|
134
|
+
error: z.ZodOptional<z.ZodString>;
|
|
135
|
+
success: z.ZodBoolean;
|
|
136
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
137
|
+
content: z.ZodOptional<z.ZodString>;
|
|
138
|
+
sources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
|
+
title: z.ZodOptional<z.ZodString>;
|
|
140
|
+
url: z.ZodOptional<z.ZodString>;
|
|
141
|
+
}, "strip", z.ZodTypeAny, {
|
|
142
|
+
title?: string | undefined;
|
|
143
|
+
url?: string | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
title?: string | undefined;
|
|
146
|
+
url?: string | undefined;
|
|
147
|
+
}>, "many">>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
content?: string | undefined;
|
|
150
|
+
sources?: {
|
|
151
|
+
title?: string | undefined;
|
|
152
|
+
url?: string | undefined;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
content?: string | undefined;
|
|
156
|
+
sources?: {
|
|
157
|
+
title?: string | undefined;
|
|
158
|
+
url?: string | undefined;
|
|
159
|
+
}[] | undefined;
|
|
160
|
+
}>>;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
success: boolean;
|
|
163
|
+
result?: {
|
|
164
|
+
content?: string | undefined;
|
|
165
|
+
sources?: {
|
|
166
|
+
title?: string | undefined;
|
|
167
|
+
url?: string | undefined;
|
|
168
|
+
}[] | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
error?: string | undefined;
|
|
171
|
+
}, {
|
|
172
|
+
success: boolean;
|
|
173
|
+
result?: {
|
|
174
|
+
content?: string | undefined;
|
|
175
|
+
sources?: {
|
|
176
|
+
title?: string | undefined;
|
|
177
|
+
url?: string | undefined;
|
|
178
|
+
}[] | undefined;
|
|
179
|
+
} | undefined;
|
|
180
|
+
error?: string | undefined;
|
|
181
|
+
}>;
|
|
182
|
+
export type perplexityPerplexityDeepResearchOutputType = z.infer<typeof perplexityPerplexityDeepResearchOutputSchema>;
|
|
183
|
+
export type perplexityPerplexityDeepResearchFunction = ActionFunction<perplexityPerplexityDeepResearchParamsType, AuthParamsType, perplexityPerplexityDeepResearchOutputType>;
|
|
121
184
|
export declare const asanaCommentTaskParamsSchema: z.ZodObject<{
|
|
122
185
|
taskId: z.ZodString;
|
|
123
186
|
commentText: z.ZodString;
|
|
@@ -4486,14 +4549,14 @@ export declare const googleOauthQueryGoogleBigQueryParamsSchema: z.ZodObject<{
|
|
|
4486
4549
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
4487
4550
|
maximumBytesProcessed: z.ZodOptional<z.ZodString>;
|
|
4488
4551
|
}, "strip", z.ZodTypeAny, {
|
|
4489
|
-
projectId: string;
|
|
4490
4552
|
query: string;
|
|
4553
|
+
projectId: string;
|
|
4491
4554
|
maxResults?: number | undefined;
|
|
4492
4555
|
timeoutMs?: number | undefined;
|
|
4493
4556
|
maximumBytesProcessed?: string | undefined;
|
|
4494
4557
|
}, {
|
|
4495
|
-
projectId: string;
|
|
4496
4558
|
query: string;
|
|
4559
|
+
projectId: string;
|
|
4497
4560
|
maxResults?: number | undefined;
|
|
4498
4561
|
timeoutMs?: number | undefined;
|
|
4499
4562
|
maximumBytesProcessed?: string | undefined;
|
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export var ProviderName;
|
|
3
3
|
(function (ProviderName) {
|
|
4
4
|
ProviderName["GENERIC"] = "generic";
|
|
5
|
+
ProviderName["PERPLEXITY"] = "perplexity";
|
|
5
6
|
ProviderName["ASANA"] = "asana";
|
|
6
7
|
ProviderName["SLACK"] = "slack";
|
|
7
8
|
ProviderName["MATH"] = "math";
|
|
@@ -63,6 +64,27 @@ export const genericFillTemplateParamsSchema = z.object({
|
|
|
63
64
|
export const genericFillTemplateOutputSchema = z.object({
|
|
64
65
|
result: z.string().describe("The template string returned filled in"),
|
|
65
66
|
});
|
|
67
|
+
export const perplexityPerplexityDeepResearchParamsSchema = z.object({
|
|
68
|
+
query: z.string().describe("The research query/question"),
|
|
69
|
+
reasoningEffort: z
|
|
70
|
+
.string()
|
|
71
|
+
.describe('Optional reasoning effort level ("low", "medium", "high"). Defaults to "medium".')
|
|
72
|
+
.optional(),
|
|
73
|
+
});
|
|
74
|
+
export const perplexityPerplexityDeepResearchOutputSchema = z.object({
|
|
75
|
+
error: z.string().describe("Error if comment was unsuccessful").optional(),
|
|
76
|
+
success: z.boolean().describe("Whether comment was successfully made"),
|
|
77
|
+
result: z
|
|
78
|
+
.object({
|
|
79
|
+
content: z.string().describe("The main research response/analysis").optional(),
|
|
80
|
+
sources: z
|
|
81
|
+
.array(z.object({ title: z.string().optional(), url: z.string().optional() }))
|
|
82
|
+
.describe("Array of source citations")
|
|
83
|
+
.optional(),
|
|
84
|
+
})
|
|
85
|
+
.describe("The main research response/analysis")
|
|
86
|
+
.optional(),
|
|
87
|
+
});
|
|
66
88
|
export const asanaCommentTaskParamsSchema = z.object({
|
|
67
89
|
taskId: z.string().describe("Task gid the comment should be added to"),
|
|
68
90
|
commentText: z.string().describe("The comment text to be added"),
|
package/dist/actions/groups.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, jiraGetServiceDesksDefinition, jiraCreateServiceDeskRequestDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition,
|
|
1
|
+
import { genericFillTemplateDefinition, confluenceOverwritePageDefinition, googlemapsValidateAddressDefinition, mathAddDefinition, mongoInsertMongoDocDefinition, slackSendMessageDefinition, slackGetChannelMessagesDefinition, slackCreateChannelDefinition, slackArchiveChannelDefinition, snowflakeGetRowByFieldValueDefinition, zendeskCreateZendeskTicketDefinition, zendeskListZendeskTicketsDefinition, zendeskGetTicketDetailsDefinition, zendeskUpdateTicketStatusDefinition, zendeskAddCommentToTicketDefinition, zendeskAssignTicketDefinition, openstreetmapGetLatitudeLongitudeFromLocationDefinition, nwsGetForecastForLocationDefinition, jiraAssignJiraTicketDefinition, jiraCommentJiraTicketDefinition, jiraCreateJiraTicketDefinition, jiraGetJiraTicketDetailsDefinition, jiraGetJiraTicketHistoryDefinition, jiraUpdateJiraTicketDetailsDefinition, jiraUpdateJiraTicketStatusDefinition, jiraGetServiceDesksDefinition, jiraCreateServiceDeskRequestDefinition, googlemapsNearbysearchRestaurantsDefinition, firecrawlScrapeUrlDefinition, resendSendEmailDefinition, linkedinCreateShareLinkedinPostUrlDefinition, googleOauthCreateNewGoogleDocDefinition, xCreateShareXPostUrlDefinition, firecrawlScrapeTweetDataWithNitterDefinition, finnhubSymbolLookupDefinition, finnhubGetBasicFinancialsDefinition, confluenceFetchPageContentDefinition, snowflakeRunSnowflakeQueryDefinition, lookerEnableUserByEmailDefinition, googleOauthUpdateDocDefinition, googleOauthScheduleCalendarMeetingDefinition, googleOauthListCalendarsDefinition, googleOauthListCalendarEventsDefinition, googleOauthUpdateCalendarEventDefinition, googleOauthDeleteCalendarEventDefinition, googleOauthCreateSpreadsheetDefinition, googleOauthUpdateSpreadsheetDefinition, googleOauthCreatePresentationDefinition, googleOauthUpdatePresentationDefinition, googleOauthSearchDriveByKeywordsDefinition, googlemailSearchGmailMessagesDefinition, googlemailListGmailThreadsDefinition, googleOauthListGroupsDefinition, googleOauthGetGroupDefinition, googleOauthListGroupMembersDefinition, googleOauthHasGroupMemberDefinition, googleOauthAddGroupMemberDefinition, googleOauthDeleteGroupMemberDefinition, salesforceUpdateRecordDefinition, salesforceCreateCaseDefinition, salesforceGenerateSalesReportDefinition, salesforceGetRecordDefinition, salesforceGetSalesforceRecordsByQueryDefinition, microsoftMessageTeamsChatDefinition, microsoftMessageTeamsChannelDefinition, asanaCommentTaskDefinition, asanaCreateTaskDefinition, asanaUpdateTaskDefinition, asanaSearchTasksDefinition, githubCreateOrUpdateFileDefinition, githubCreateBranchDefinition, githubCreatePullRequestDefinition, microsoftUpdateSpreadsheetDefinition, microsoftUpdateDocumentDefinition, microsoftCreateDocumentDefinition, microsoftGetDocumentDefinition, salesforceFetchSalesforceSchemaByObjectDefinition, firecrawlDeepResearchDefinition, jiraGetJiraIssuesByQueryDefinition, githubListPullRequestsDefinition, salesforceCreateRecordDefinition, ashbyCreateNoteDefinition, ashbyGetCandidateInfoDefinition, ashbyListCandidatesDefinition, ashbyListCandidateNotesDefinition, ashbySearchCandidatesDefinition, ashbyCreateCandidateDefinition, ashbyUpdateCandidateDefinition, ashbyAddCandidateToProjectDefinition, bingGetTopNSearchResultUrlsDefinition, gongGetGongTranscriptsDefinition, kandjiGetFVRecoveryKeyForDeviceDefinition, asanaListAsanaTasksByProjectDefinition, notionSearchByTitleDefinition, asanaGetTasksDetailsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, googleOauthGetDriveFileContentByIdDefinition, googleOauthSearchDriveByQueryDefinition, } from "./autogen/templates.js";
|
|
2
2
|
export const ACTION_GROUPS = {
|
|
3
3
|
GENERIC: {
|
|
4
4
|
description: "Generic utility actions",
|
|
@@ -47,7 +47,6 @@ export const ACTION_GROUPS = {
|
|
|
47
47
|
googleOauthUpdatePresentationDefinition,
|
|
48
48
|
googleOauthSearchDriveByKeywordsDefinition,
|
|
49
49
|
googleOauthSearchDriveByQueryDefinition,
|
|
50
|
-
googleOauthSearchDriveByQueryAndGetFileContentDefinition,
|
|
51
50
|
googleOauthGetDriveFileContentByIdDefinition,
|
|
52
51
|
],
|
|
53
52
|
},
|
|
@@ -199,8 +198,6 @@ export const ACTION_GROUPS = {
|
|
|
199
198
|
githubCreateBranchDefinition,
|
|
200
199
|
githubCreatePullRequestDefinition,
|
|
201
200
|
githubListPullRequestsDefinition,
|
|
202
|
-
githubGetFileContentDefinition,
|
|
203
|
-
githubListDirectoryDefinition,
|
|
204
201
|
],
|
|
205
202
|
},
|
|
206
203
|
ASHBY: {
|
|
@@ -248,14 +245,4 @@ export const ACTION_GROUPS = {
|
|
|
248
245
|
oktaTriggerOktaWorkflowDefinition,
|
|
249
246
|
],
|
|
250
247
|
},
|
|
251
|
-
LINEAR: {
|
|
252
|
-
description: "Actions for interacting with Linear",
|
|
253
|
-
actions: [
|
|
254
|
-
linearGetIssueDetailsDefinition,
|
|
255
|
-
linearGetProjectsDefinition,
|
|
256
|
-
linearGetProjectDetailsDefinition,
|
|
257
|
-
linearGetTeamDetailsDefinition,
|
|
258
|
-
linearGetTeamsDefinition,
|
|
259
|
-
],
|
|
260
|
-
},
|
|
261
248
|
};
|
package/dist/actions/parse.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
declare const actionTemplateSchema: z.ZodObject<
|
|
2
|
+
declare const actionTemplateSchema: z.ZodObject<{
|
|
3
3
|
description: z.ZodString;
|
|
4
4
|
scopes: z.ZodArray<z.ZodString, "many">;
|
|
5
5
|
parameters: z.ZodOptional<z.ZodObject<{
|
|
@@ -34,10 +34,10 @@ declare const actionTemplateSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
34
34
|
properties?: Record<string, any> | undefined;
|
|
35
35
|
oneOf?: any[] | undefined;
|
|
36
36
|
}>>;
|
|
37
|
-
}
|
|
37
|
+
} & {
|
|
38
38
|
name: z.ZodString;
|
|
39
39
|
provider: z.ZodString;
|
|
40
|
-
}
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
41
|
description: string;
|
|
42
42
|
scopes: string[];
|
|
43
43
|
name: string;
|
|
@@ -61,17 +61,17 @@ const searchOrganization = (_a) => __awaiter(void 0, [_a], void 0, function* ({
|
|
|
61
61
|
})
|
|
62
62
|
: [],
|
|
63
63
|
}));
|
|
64
|
-
const commitDetailsWithErrors = yield Promise.all(commitResults.data.items.slice(0, MAX_COMMITS).map(item => {
|
|
64
|
+
const commitDetailsWithErrors = yield Promise.all(commitResults.data.items.slice(0, MAX_COMMITS).map((item) => __awaiter(void 0, void 0, void 0, function* () {
|
|
65
65
|
// Get the repo details from the commit search result
|
|
66
66
|
const { owner, name } = item.repository;
|
|
67
67
|
try {
|
|
68
|
-
return octokit.rest.repos.getCommit({ owner: owner.login, repo: name, ref: item.sha });
|
|
68
|
+
return yield octokit.rest.repos.getCommit({ owner: owner.login, repo: name, ref: item.sha });
|
|
69
69
|
}
|
|
70
70
|
catch (error) {
|
|
71
71
|
console.error(`Error fetching commit ${item.sha} in ${owner.login}/${name}:`, error);
|
|
72
72
|
return null;
|
|
73
73
|
}
|
|
74
|
-
}));
|
|
74
|
+
})));
|
|
75
75
|
const commitDetails = commitDetailsWithErrors.filter(c => c !== null);
|
|
76
76
|
const enrichedCommits = commitResults.data.items.slice(0, MAX_COMMITS).map(item => {
|
|
77
77
|
var _a, _b;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const axiosClient_1 = require("../../util/axiosClient");
|
|
13
|
+
const missingAuthConstants_1 = require("../../util/missingAuthConstants");
|
|
14
|
+
const decodeMessage_1 = require("./utils/decodeMessage");
|
|
15
|
+
const listGmailThreads = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
16
|
+
if (!authParams.authToken) {
|
|
17
|
+
return { success: false, error: missingAuthConstants_1.MISSING_AUTH_TOKEN, threads: [] };
|
|
18
|
+
}
|
|
19
|
+
const { query, maxResults } = params;
|
|
20
|
+
const allThreads = [];
|
|
21
|
+
const errorMessages = [];
|
|
22
|
+
const max = maxResults !== null && maxResults !== void 0 ? maxResults : 100;
|
|
23
|
+
let fetched = 0;
|
|
24
|
+
let pageToken = undefined;
|
|
25
|
+
try {
|
|
26
|
+
while (fetched < max) {
|
|
27
|
+
const url = `https://gmail.googleapis.com/gmail/v1/users/me/threads?q=${encodeURIComponent(query)}` +
|
|
28
|
+
(pageToken ? `&pageToken=${encodeURIComponent(pageToken)}` : "") +
|
|
29
|
+
`&maxResults=${Math.min(100, max - fetched)}`;
|
|
30
|
+
const listRes = yield axiosClient_1.axiosClient.get(url, {
|
|
31
|
+
headers: {
|
|
32
|
+
Authorization: `Bearer ${authParams.authToken}`,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
const { threads: threadList = [], nextPageToken } = listRes.data;
|
|
36
|
+
if (!Array.isArray(threadList) || threadList.length === 0)
|
|
37
|
+
break;
|
|
38
|
+
const remaining = max - allThreads.length;
|
|
39
|
+
const batch = threadList.slice(0, remaining);
|
|
40
|
+
const results = yield Promise.all(batch.map((thread) => __awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
+
try {
|
|
42
|
+
const threadRes = yield axiosClient_1.axiosClient.get(`https://gmail.googleapis.com/gmail/v1/users/me/threads/${thread.id}?format=full`, {
|
|
43
|
+
headers: {
|
|
44
|
+
Authorization: `Bearer ${authParams.authToken}`,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
const { id, historyId, messages } = threadRes.data;
|
|
48
|
+
return {
|
|
49
|
+
id,
|
|
50
|
+
historyId,
|
|
51
|
+
messages: Array.isArray(messages)
|
|
52
|
+
? messages.map(msg => {
|
|
53
|
+
const { id, threadId, snippet, labelIds, internalDate } = msg;
|
|
54
|
+
const emailBody = (0, decodeMessage_1.getEmailContent)(msg) || "";
|
|
55
|
+
return {
|
|
56
|
+
id,
|
|
57
|
+
threadId,
|
|
58
|
+
snippet,
|
|
59
|
+
labelIds,
|
|
60
|
+
internalDate,
|
|
61
|
+
emailBody,
|
|
62
|
+
};
|
|
63
|
+
})
|
|
64
|
+
: [],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
errorMessages.push(err instanceof Error ? err.message : "Failed to fetch thread details");
|
|
69
|
+
return {
|
|
70
|
+
id: thread.id,
|
|
71
|
+
snippet: "",
|
|
72
|
+
historyId: "",
|
|
73
|
+
messages: [],
|
|
74
|
+
error: err instanceof Error ? err.message : "Failed to fetch thread details",
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
})));
|
|
78
|
+
allThreads.push(...results);
|
|
79
|
+
fetched = allThreads.length;
|
|
80
|
+
if (!nextPageToken || allThreads.length >= max)
|
|
81
|
+
break;
|
|
82
|
+
pageToken = nextPageToken;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
success: errorMessages.length === 0,
|
|
86
|
+
threads: allThreads,
|
|
87
|
+
error: errorMessages.join("; "),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
catch (error) {
|
|
91
|
+
return {
|
|
92
|
+
success: false,
|
|
93
|
+
error: error instanceof Error ? error.message : "Unknown error listing Gmail threads",
|
|
94
|
+
threads: [],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
exports.default = listGmailThreads;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const axiosClient_1 = require("../../util/axiosClient");
|
|
13
|
+
const missingAuthConstants_1 = require("../../util/missingAuthConstants");
|
|
14
|
+
const decodeMessage_1 = require("./utils/decodeMessage");
|
|
15
|
+
const searchGmailMessages = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
16
|
+
if (!authParams.authToken) {
|
|
17
|
+
return { success: false, error: missingAuthConstants_1.MISSING_AUTH_TOKEN, messages: [] };
|
|
18
|
+
}
|
|
19
|
+
const { query, maxResults } = params;
|
|
20
|
+
const allMessages = [];
|
|
21
|
+
const max = maxResults !== null && maxResults !== void 0 ? maxResults : 100;
|
|
22
|
+
const errorMessages = [];
|
|
23
|
+
let pageToken = undefined;
|
|
24
|
+
let fetched = 0;
|
|
25
|
+
try {
|
|
26
|
+
while (fetched < max) {
|
|
27
|
+
const url = `https://gmail.googleapis.com/gmail/v1/users/me/messages?q=${encodeURIComponent(query)}` +
|
|
28
|
+
(pageToken ? `&pageToken=${encodeURIComponent(pageToken)}` : "") +
|
|
29
|
+
`&maxResults=${Math.min(100, max - fetched)}`;
|
|
30
|
+
const listRes = yield axiosClient_1.axiosClient.get(url, {
|
|
31
|
+
headers: {
|
|
32
|
+
Authorization: `Bearer ${authParams.authToken}`,
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
const { messages: messageList = [], nextPageToken } = listRes.data;
|
|
36
|
+
if (!Array.isArray(messageList) || messageList.length === 0)
|
|
37
|
+
break;
|
|
38
|
+
const remaining = max - allMessages.length;
|
|
39
|
+
const batch = messageList.slice(0, remaining);
|
|
40
|
+
const results = yield Promise.all(batch.map((msg) => __awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
+
try {
|
|
42
|
+
const msgRes = yield axiosClient_1.axiosClient.get(`https://gmail.googleapis.com/gmail/v1/users/me/messages/${msg.id}?format=full`, {
|
|
43
|
+
headers: {
|
|
44
|
+
Authorization: `Bearer ${authParams.authToken}`,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
const { id, threadId, snippet, labelIds, internalDate } = msgRes.data;
|
|
48
|
+
const emailBody = (0, decodeMessage_1.getEmailContent)(msgRes.data) || "";
|
|
49
|
+
return {
|
|
50
|
+
id,
|
|
51
|
+
threadId,
|
|
52
|
+
snippet,
|
|
53
|
+
labelIds,
|
|
54
|
+
internalDate,
|
|
55
|
+
emailBody,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
catch (err) {
|
|
59
|
+
errorMessages.push(err instanceof Error ? err.message : "Failed to fetch message details");
|
|
60
|
+
return {
|
|
61
|
+
id: msg.id,
|
|
62
|
+
threadId: "",
|
|
63
|
+
snippet: "",
|
|
64
|
+
labelIds: [],
|
|
65
|
+
internalDate: "",
|
|
66
|
+
payload: {},
|
|
67
|
+
error: err instanceof Error ? err.message : "Failed to fetch message details",
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
})));
|
|
71
|
+
allMessages.push(...results);
|
|
72
|
+
fetched = allMessages.length;
|
|
73
|
+
if (!nextPageToken || allMessages.length >= max)
|
|
74
|
+
break;
|
|
75
|
+
pageToken = nextPageToken;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
success: errorMessages.length === 0,
|
|
79
|
+
messages: allMessages,
|
|
80
|
+
error: errorMessages.join("; "),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
catch (error) {
|
|
84
|
+
return {
|
|
85
|
+
success: false,
|
|
86
|
+
error: error instanceof Error ? error.message : "Unknown error searching Gmail",
|
|
87
|
+
messages: [],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
exports.default = searchGmailMessages;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const axiosClient_1 = require("../../util/axiosClient");
|
|
13
|
+
const getComputerInventory = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
14
|
+
const { authToken, baseUrl } = authParams;
|
|
15
|
+
const { section } = params;
|
|
16
|
+
if (!baseUrl) {
|
|
17
|
+
throw new Error("Base URL is required to fetch computer inventory");
|
|
18
|
+
}
|
|
19
|
+
const apiUrl = `${baseUrl}/v1/computer-inventory`;
|
|
20
|
+
const queryParams = {};
|
|
21
|
+
if (section) {
|
|
22
|
+
queryParams.section = section;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const response = yield axiosClient_1.axiosClient.get(apiUrl, {
|
|
26
|
+
headers: {
|
|
27
|
+
Authorization: `Bearer ${authToken}`,
|
|
28
|
+
Accept: "application/json",
|
|
29
|
+
},
|
|
30
|
+
params: queryParams,
|
|
31
|
+
});
|
|
32
|
+
return {
|
|
33
|
+
success: true,
|
|
34
|
+
data: response.data,
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
console.error("Error retrieving computer inventory: ", error);
|
|
39
|
+
return {
|
|
40
|
+
success: false,
|
|
41
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
exports.default = getComputerInventory;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const axiosClient_1 = require("../../util/axiosClient");
|
|
13
|
+
const getFileVaultRecoveryKey = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
14
|
+
const { authToken, baseUrl } = authParams;
|
|
15
|
+
const { computerId } = params;
|
|
16
|
+
if (!baseUrl || !computerId) {
|
|
17
|
+
throw new Error("Base URL and Computer ID are required to fetch FileVault2 recovery key");
|
|
18
|
+
}
|
|
19
|
+
const apiUrl = `${baseUrl}/JSSResource/computers/${computerId}/FileVault2RecoveryKey`;
|
|
20
|
+
try {
|
|
21
|
+
const response = yield axiosClient_1.axiosClient.get(apiUrl, {
|
|
22
|
+
headers: {
|
|
23
|
+
Authorization: `Bearer ${authToken}`,
|
|
24
|
+
Accept: "application/json",
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
success: true,
|
|
29
|
+
data: response.data,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
console.error("Error retrieving FileVault2 recovery key: ", error);
|
|
34
|
+
return {
|
|
35
|
+
success: false,
|
|
36
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
exports.default = getFileVaultRecoveryKey;
|
|
@@ -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 { axiosClient } from "../../util/axiosClient.js";
|
|
11
|
+
const restartJamfComputerById = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
|
+
const { authToken, subdomain } = authParams;
|
|
13
|
+
const { computerId } = params;
|
|
14
|
+
if (!subdomain || !authToken) {
|
|
15
|
+
throw new Error("Instance and authToken are required to fetch Jamf user computer ID");
|
|
16
|
+
}
|
|
17
|
+
const url = `https://${subdomain}.jamfcloud.com`;
|
|
18
|
+
try {
|
|
19
|
+
yield axiosClient.post(`${url}/api/command/v1/computers/${computerId}/restart`, {
|
|
20
|
+
headers: {
|
|
21
|
+
Authorization: `Bearer ${authToken}`,
|
|
22
|
+
Accept: "application/json",
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
return {
|
|
26
|
+
success: true,
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
console.error("Error restarting Jamf computer: ", error);
|
|
31
|
+
return {
|
|
32
|
+
success: false,
|
|
33
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export default restartJamfComputerById;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 { perplexityPerplexityDeepResearchOutputSchema } from "../../autogen/types.js";
|
|
11
|
+
const perplexityDeepResearch = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
12
|
+
var _b, _c, _d, _e, _f, _g, _h, _j;
|
|
13
|
+
const { query, reasoningEffort = "medium" } = params;
|
|
14
|
+
try {
|
|
15
|
+
const response = yield fetch("https://api.perplexity.ai/chat/completions", {
|
|
16
|
+
method: "POST",
|
|
17
|
+
headers: {
|
|
18
|
+
Authorization: `Bearer ${authParams.apiKey}`,
|
|
19
|
+
"Content-Type": "application/json",
|
|
20
|
+
},
|
|
21
|
+
body: JSON.stringify({
|
|
22
|
+
model: "sonar-deep-research",
|
|
23
|
+
messages: [{ role: "user", content: query }],
|
|
24
|
+
reasoning_effort: reasoningEffort,
|
|
25
|
+
}),
|
|
26
|
+
});
|
|
27
|
+
if (!response.ok) {
|
|
28
|
+
return perplexityPerplexityDeepResearchOutputSchema.parse({
|
|
29
|
+
success: false,
|
|
30
|
+
error: `Perplexity API error: ${response.status} ${response.statusText}`,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
const result = yield response.json();
|
|
34
|
+
const content = ((_d = (_c = (_b = result.choices) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.message) === null || _d === void 0 ? void 0 : _d.content) || "";
|
|
35
|
+
const sources = ((_e = result.search_results) === null || _e === void 0 ? void 0 : _e.map((source) => ({
|
|
36
|
+
title: source.title,
|
|
37
|
+
url: source.url,
|
|
38
|
+
snippet: source.snippet,
|
|
39
|
+
}))) || [];
|
|
40
|
+
const usage = {
|
|
41
|
+
input_tokens: (_f = result.usage) === null || _f === void 0 ? void 0 : _f.prompt_tokens,
|
|
42
|
+
output_tokens: (_g = result.usage) === null || _g === void 0 ? void 0 : _g.completion_tokens,
|
|
43
|
+
reasoning_tokens: (_h = result.usage) === null || _h === void 0 ? void 0 : _h.reasoning_tokens,
|
|
44
|
+
search_queries: (_j = result.usage) === null || _j === void 0 ? void 0 : _j.search_queries,
|
|
45
|
+
};
|
|
46
|
+
return perplexityPerplexityDeepResearchOutputSchema.parse({
|
|
47
|
+
success: true,
|
|
48
|
+
result: {
|
|
49
|
+
content,
|
|
50
|
+
sources,
|
|
51
|
+
usage,
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
return perplexityPerplexityDeepResearchOutputSchema.parse({
|
|
57
|
+
success: false,
|
|
58
|
+
error: error instanceof Error ? error.message : "Unknown error",
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
export default perplexityDeepResearch;
|
|
@@ -11,19 +11,23 @@ import { WebClient } from "@slack/web-api";
|
|
|
11
11
|
import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
|
|
12
12
|
import { getSlackChannels } from "./helpers.js";
|
|
13
13
|
const archiveChannel = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
14
|
+
var _b;
|
|
14
15
|
if (!authParams.authToken) {
|
|
15
16
|
throw new Error(MISSING_AUTH_TOKEN);
|
|
16
17
|
}
|
|
17
18
|
try {
|
|
18
19
|
const client = new WebClient(authParams.authToken);
|
|
19
|
-
const { channelName } = params;
|
|
20
|
+
const { channelId: inputChannelId, channelName } = params;
|
|
21
|
+
if (!inputChannelId && !channelName) {
|
|
22
|
+
throw Error("Either channelId or channelName must be provided");
|
|
23
|
+
}
|
|
20
24
|
const allChannels = yield getSlackChannels(client);
|
|
21
|
-
const
|
|
22
|
-
if (!
|
|
25
|
+
const channelId = inputChannelId !== null && inputChannelId !== void 0 ? inputChannelId : (_b = allChannels.find(channel => channel.name == channelName)) === null || _b === void 0 ? void 0 : _b.id;
|
|
26
|
+
if (!channelId) {
|
|
23
27
|
throw Error(`Channel with name ${channelName} not found`);
|
|
24
28
|
}
|
|
25
|
-
yield client.conversations.join({ channel:
|
|
26
|
-
const result = yield client.conversations.archive({ channel:
|
|
29
|
+
yield client.conversations.join({ channel: channelId });
|
|
30
|
+
const result = yield client.conversations.archive({ channel: channelId });
|
|
27
31
|
if (!result.ok) {
|
|
28
32
|
return {
|
|
29
33
|
success: false,
|
package/package.json
CHANGED
|
@@ -1,47 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const axios_1 = __importDefault(require("axios"));
|
|
16
|
-
function getConfluenceApi(baseUrl, username, apiToken) {
|
|
17
|
-
const api = axios_1.default.create({
|
|
18
|
-
baseURL: baseUrl,
|
|
19
|
-
headers: {
|
|
20
|
-
Accept: "application/json",
|
|
21
|
-
// Tokens are associated with a specific user.
|
|
22
|
-
Authorization: `Basic ${Buffer.from(`${username}:${apiToken}`).toString("base64")}`,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
return api;
|
|
26
|
-
}
|
|
27
|
-
const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
|
|
28
|
-
const { pageId, username, content, title } = params;
|
|
29
|
-
const { baseUrl, authToken } = authParams;
|
|
30
|
-
const api = getConfluenceApi(baseUrl, username, authToken);
|
|
31
|
-
// Get current version number
|
|
32
|
-
const response = yield api.get(`/api/v2/pages/${pageId}`);
|
|
33
|
-
const currVersion = response.data.version.number;
|
|
34
|
-
yield api.put(`/api/v2/pages/${pageId}`, {
|
|
35
|
-
id: pageId,
|
|
36
|
-
status: "current",
|
|
37
|
-
title,
|
|
38
|
-
body: {
|
|
39
|
-
representation: "storage",
|
|
40
|
-
value: content,
|
|
41
|
-
},
|
|
42
|
-
version: {
|
|
43
|
-
number: currVersion + 1,
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
exports.default = confluenceUpdatePage;
|