@credal/actions 0.2.113 → 0.2.114
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 +68 -4
- package/dist/actions/autogen/types.d.ts +78 -12
- package/dist/actions/autogen/types.js +21 -2
- package/dist/actions/providers/confluence/updatePage.js +13 -9
- package/dist/actions/providers/oktaOrg/getOktaUserByName.d.ts +3 -0
- package/dist/actions/providers/oktaOrg/getOktaUserByName.js +54 -0
- package/dist/actions/providers/slack/listConversations.d.ts +1 -1
- package/package.json +1 -1
- package/dist/actions/autogen/definitions.d.ts +0 -5
- package/dist/actions/autogen/definitions.js +0 -132
- package/dist/actions/definitions.js +0 -35
- package/dist/actions/invokeMapper.d.ts +0 -9
- package/dist/actions/invokeMapper.js +0 -33
- package/dist/actions/providers/google-oauth/getSheetValue.d.ts +0 -3
- package/dist/actions/providers/google-oauth/getSheetValue.js +0 -50
- package/dist/actions/providers/google-oauth/getSheetValues.d.ts +0 -3
- package/dist/actions/providers/google-oauth/getSheetValues.js +0 -50
- package/dist/actions/providers/google-oauth/listGmailThreads.d.ts +0 -3
- package/dist/actions/providers/google-oauth/listGmailThreads.js +0 -98
- package/dist/actions/providers/google-oauth/searchGmailMessages.d.ts +0 -3
- package/dist/actions/providers/google-oauth/searchGmailMessages.js +0 -91
- package/dist/actions/providers/googlemaps/nearbysearch.d.ts +0 -3
- package/dist/actions/providers/googlemaps/nearbysearch.js +0 -96
- package/dist/actions/providers/jira/createTicket.d.ts +0 -3
- package/dist/actions/providers/jira/createTicket.js +0 -34
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.d.ts +0 -3
- package/dist/actions/providers/salesforce/getSalesforceRecordByQuery.js +0 -43
- package/dist/actions/providers/slack/list_conversations.d.ts +0 -3
- package/dist/actions/providers/slack/list_conversations.js +0 -60
- package/dist/actions/providers/slack/summarizeChannel.d.ts +0 -3
- package/dist/actions/providers/slack/summarizeChannel.js +0 -51
- package/dist/actions/schema.js +0 -6
- package/dist/actions/types.js +0 -2
- package/dist/main.js +0 -11
|
@@ -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, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, } 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, githubGetBranchParamsSchema, githubGetBranchOutputSchema, githubListCommitsParamsSchema, githubListCommitsOutputSchema, githubGetPullRequestDetailsParamsSchema, githubGetPullRequestDetailsOutputSchema, linearGetIssuesParamsSchema, linearGetIssuesOutputSchema, linearGetIssueDetailsParamsSchema, linearGetIssueDetailsOutputSchema, linearGetProjectDetailsParamsSchema, linearGetProjectDetailsOutputSchema, linearGetTeamDetailsParamsSchema, linearGetTeamDetailsOutputSchema, linearGetProjectsParamsSchema, linearGetProjectsOutputSchema, linearGetTeamsParamsSchema, linearGetTeamsOutputSchema, hubspotGetContactsParamsSchema, hubspotGetContactsOutputSchema, hubspotGetContactDetailsParamsSchema, hubspotGetContactDetailsOutputSchema, hubspotGetCompaniesParamsSchema, hubspotGetCompaniesOutputSchema, hubspotGetCompanyDetailsParamsSchema, hubspotGetCompanyDetailsOutputSchema, hubspotGetDealsParamsSchema, hubspotGetDealsOutputSchema, hubspotGetDealDetailsParamsSchema, hubspotGetDealDetailsOutputSchema, hubspotGetTicketsParamsSchema, hubspotGetTicketsOutputSchema, hubspotGetTicketDetailsParamsSchema, hubspotGetTicketDetailsOutputSchema, gitlabGetFileContentParamsSchema, gitlabGetFileContentOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, } 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";
|
|
@@ -149,6 +149,7 @@ import firecrawlGetTopNSearchResultUrls from "./providers/firecrawl/getTopNSearc
|
|
|
149
149
|
import searchDriveByKeywordsAndGetFileContent from "./providers/google-oauth/searchDriveByKeywordsAndGetFileContent.js";
|
|
150
150
|
import perplexityDeepResearch from "./providers/perplexity/perplexityDeepResearch.js";
|
|
151
151
|
import searchSlack from "./providers/slackUser/searchSlack.js";
|
|
152
|
+
import getOktaUserByName from "./providers/oktaOrg/getOktaUserByName.js";
|
|
152
153
|
const jiraActions = {
|
|
153
154
|
getJiraIssuesByQuery: {
|
|
154
155
|
fn: getJiraIssuesByQuery,
|
|
@@ -881,6 +882,13 @@ export const ActionMapper = {
|
|
|
881
882
|
outputSchema: oktaTriggerOktaWorkflowOutputSchema,
|
|
882
883
|
},
|
|
883
884
|
},
|
|
885
|
+
oktaOrg: {
|
|
886
|
+
getOktaUserByName: {
|
|
887
|
+
fn: getOktaUserByName,
|
|
888
|
+
paramsSchema: oktaOrgGetOktaUserByNameParamsSchema,
|
|
889
|
+
outputSchema: oktaOrgGetOktaUserByNameOutputSchema,
|
|
890
|
+
},
|
|
891
|
+
},
|
|
884
892
|
gitlab: {
|
|
885
893
|
searchGroup: {
|
|
886
894
|
fn: searchGroup,
|
|
@@ -101,6 +101,7 @@ export declare const oktaResetMFADefinition: ActionTemplate;
|
|
|
101
101
|
export declare const oktaListMFADefinition: ActionTemplate;
|
|
102
102
|
export declare const oktaResetPasswordDefinition: ActionTemplate;
|
|
103
103
|
export declare const oktaTriggerOktaWorkflowDefinition: ActionTemplate;
|
|
104
|
+
export declare const oktaOrgGetOktaUserByNameDefinition: ActionTemplate;
|
|
104
105
|
export declare const gongGetGongTranscriptsDefinition: ActionTemplate;
|
|
105
106
|
export declare const finnhubSymbolLookupDefinition: ActionTemplate;
|
|
106
107
|
export declare const finnhubGetBasicFinancialsDefinition: ActionTemplate;
|
|
@@ -796,9 +796,13 @@ export const slackUserSearchSlackDefinition = {
|
|
|
796
796
|
type: "string",
|
|
797
797
|
description: "Message text of the anchor (hit or thread root).",
|
|
798
798
|
},
|
|
799
|
-
|
|
799
|
+
userEmail: {
|
|
800
800
|
type: "string",
|
|
801
|
-
description: "User
|
|
801
|
+
description: "User email of the anchor message’s author (if available).",
|
|
802
|
+
},
|
|
803
|
+
userName: {
|
|
804
|
+
type: "string",
|
|
805
|
+
description: "User name of the anchor message’s author (if available).",
|
|
802
806
|
},
|
|
803
807
|
permalink: {
|
|
804
808
|
type: "string",
|
|
@@ -819,9 +823,13 @@ export const slackUserSearchSlackDefinition = {
|
|
|
819
823
|
type: "string",
|
|
820
824
|
description: "Text of the contextual message.",
|
|
821
825
|
},
|
|
822
|
-
|
|
826
|
+
userEmail: {
|
|
827
|
+
type: "string",
|
|
828
|
+
description: "Author user email of the contextual message.",
|
|
829
|
+
},
|
|
830
|
+
userName: {
|
|
823
831
|
type: "string",
|
|
824
|
-
description: "Author user
|
|
832
|
+
description: "Author user name of the contextual message.",
|
|
825
833
|
},
|
|
826
834
|
},
|
|
827
835
|
},
|
|
@@ -8850,6 +8858,62 @@ export const oktaTriggerOktaWorkflowDefinition = {
|
|
|
8850
8858
|
name: "triggerOktaWorkflow",
|
|
8851
8859
|
provider: "okta",
|
|
8852
8860
|
};
|
|
8861
|
+
export const oktaOrgGetOktaUserByNameDefinition = {
|
|
8862
|
+
description: "Retrieve details of a specific Okta user by their name.",
|
|
8863
|
+
scopes: ["okta.users.read"],
|
|
8864
|
+
parameters: {
|
|
8865
|
+
type: "object",
|
|
8866
|
+
required: ["name"],
|
|
8867
|
+
properties: {
|
|
8868
|
+
name: {
|
|
8869
|
+
type: "string",
|
|
8870
|
+
description: "The name of the user to retrieve.",
|
|
8871
|
+
},
|
|
8872
|
+
},
|
|
8873
|
+
},
|
|
8874
|
+
output: {
|
|
8875
|
+
type: "object",
|
|
8876
|
+
required: ["success"],
|
|
8877
|
+
properties: {
|
|
8878
|
+
success: {
|
|
8879
|
+
type: "boolean",
|
|
8880
|
+
description: "Whether the user details were successfully retrieved.",
|
|
8881
|
+
},
|
|
8882
|
+
user: {
|
|
8883
|
+
type: "object",
|
|
8884
|
+
required: ["id", "email"],
|
|
8885
|
+
properties: {
|
|
8886
|
+
id: {
|
|
8887
|
+
type: "string",
|
|
8888
|
+
description: "The user's Okta ID",
|
|
8889
|
+
},
|
|
8890
|
+
email: {
|
|
8891
|
+
type: "string",
|
|
8892
|
+
description: "The user's email address",
|
|
8893
|
+
},
|
|
8894
|
+
title: {
|
|
8895
|
+
type: "string",
|
|
8896
|
+
description: "The user's title",
|
|
8897
|
+
},
|
|
8898
|
+
division: {
|
|
8899
|
+
type: "string",
|
|
8900
|
+
description: "The user's division",
|
|
8901
|
+
},
|
|
8902
|
+
department: {
|
|
8903
|
+
type: "string",
|
|
8904
|
+
description: "The user's department",
|
|
8905
|
+
},
|
|
8906
|
+
},
|
|
8907
|
+
},
|
|
8908
|
+
error: {
|
|
8909
|
+
type: "string",
|
|
8910
|
+
description: "Error message if retrieval failed.",
|
|
8911
|
+
},
|
|
8912
|
+
},
|
|
8913
|
+
},
|
|
8914
|
+
name: "getOktaUserByName",
|
|
8915
|
+
provider: "oktaOrg",
|
|
8916
|
+
};
|
|
8853
8917
|
export const gongGetGongTranscriptsDefinition = {
|
|
8854
8918
|
description: "Get sales call transcripts from Gong",
|
|
8855
8919
|
scopes: [],
|
|
@@ -24,6 +24,7 @@ export declare enum ProviderName {
|
|
|
24
24
|
GOOGLEOAUTH = "googleOauth",
|
|
25
25
|
GOOGLEMAIL = "googlemail",
|
|
26
26
|
OKTA = "okta",
|
|
27
|
+
OKTAORG = "oktaOrg",
|
|
27
28
|
GONG = "gong",
|
|
28
29
|
FINNHUB = "finnhub",
|
|
29
30
|
LOOKER = "looker",
|
|
@@ -887,42 +888,50 @@ export declare const slackUserSearchSlackOutputSchema: z.ZodObject<{
|
|
|
887
888
|
channelId: z.ZodString;
|
|
888
889
|
ts: z.ZodString;
|
|
889
890
|
text: z.ZodOptional<z.ZodString>;
|
|
890
|
-
|
|
891
|
+
userEmail: z.ZodOptional<z.ZodString>;
|
|
892
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
891
893
|
permalink: z.ZodOptional<z.ZodString>;
|
|
892
894
|
context: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
893
895
|
ts: z.ZodString;
|
|
894
896
|
text: z.ZodOptional<z.ZodString>;
|
|
895
|
-
|
|
897
|
+
userEmail: z.ZodOptional<z.ZodString>;
|
|
898
|
+
userName: z.ZodOptional<z.ZodString>;
|
|
896
899
|
}, "strip", z.ZodTypeAny, {
|
|
897
900
|
ts: string;
|
|
898
901
|
text?: string | undefined;
|
|
899
|
-
|
|
902
|
+
userEmail?: string | undefined;
|
|
903
|
+
userName?: string | undefined;
|
|
900
904
|
}, {
|
|
901
905
|
ts: string;
|
|
902
906
|
text?: string | undefined;
|
|
903
|
-
|
|
907
|
+
userEmail?: string | undefined;
|
|
908
|
+
userName?: string | undefined;
|
|
904
909
|
}>, "many">>;
|
|
905
910
|
}, "strip", z.ZodTypeAny, {
|
|
906
911
|
channelId: string;
|
|
907
912
|
ts: string;
|
|
908
913
|
text?: string | undefined;
|
|
909
|
-
|
|
914
|
+
userEmail?: string | undefined;
|
|
915
|
+
userName?: string | undefined;
|
|
910
916
|
permalink?: string | undefined;
|
|
911
917
|
context?: {
|
|
912
918
|
ts: string;
|
|
913
919
|
text?: string | undefined;
|
|
914
|
-
|
|
920
|
+
userEmail?: string | undefined;
|
|
921
|
+
userName?: string | undefined;
|
|
915
922
|
}[] | undefined;
|
|
916
923
|
}, {
|
|
917
924
|
channelId: string;
|
|
918
925
|
ts: string;
|
|
919
926
|
text?: string | undefined;
|
|
920
|
-
|
|
927
|
+
userEmail?: string | undefined;
|
|
928
|
+
userName?: string | undefined;
|
|
921
929
|
permalink?: string | undefined;
|
|
922
930
|
context?: {
|
|
923
931
|
ts: string;
|
|
924
932
|
text?: string | undefined;
|
|
925
|
-
|
|
933
|
+
userEmail?: string | undefined;
|
|
934
|
+
userName?: string | undefined;
|
|
926
935
|
}[] | undefined;
|
|
927
936
|
}>, "many">;
|
|
928
937
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -931,12 +940,14 @@ export declare const slackUserSearchSlackOutputSchema: z.ZodObject<{
|
|
|
931
940
|
channelId: string;
|
|
932
941
|
ts: string;
|
|
933
942
|
text?: string | undefined;
|
|
934
|
-
|
|
943
|
+
userEmail?: string | undefined;
|
|
944
|
+
userName?: string | undefined;
|
|
935
945
|
permalink?: string | undefined;
|
|
936
946
|
context?: {
|
|
937
947
|
ts: string;
|
|
938
948
|
text?: string | undefined;
|
|
939
|
-
|
|
949
|
+
userEmail?: string | undefined;
|
|
950
|
+
userName?: string | undefined;
|
|
940
951
|
}[] | undefined;
|
|
941
952
|
}[];
|
|
942
953
|
}, {
|
|
@@ -945,12 +956,14 @@ export declare const slackUserSearchSlackOutputSchema: z.ZodObject<{
|
|
|
945
956
|
channelId: string;
|
|
946
957
|
ts: string;
|
|
947
958
|
text?: string | undefined;
|
|
948
|
-
|
|
959
|
+
userEmail?: string | undefined;
|
|
960
|
+
userName?: string | undefined;
|
|
949
961
|
permalink?: string | undefined;
|
|
950
962
|
context?: {
|
|
951
963
|
ts: string;
|
|
952
964
|
text?: string | undefined;
|
|
953
|
-
|
|
965
|
+
userEmail?: string | undefined;
|
|
966
|
+
userName?: string | undefined;
|
|
954
967
|
}[] | undefined;
|
|
955
968
|
}[];
|
|
956
969
|
}>;
|
|
@@ -5970,6 +5983,59 @@ export declare const oktaTriggerOktaWorkflowOutputSchema: z.ZodObject<{
|
|
|
5970
5983
|
}>;
|
|
5971
5984
|
export type oktaTriggerOktaWorkflowOutputType = z.infer<typeof oktaTriggerOktaWorkflowOutputSchema>;
|
|
5972
5985
|
export type oktaTriggerOktaWorkflowFunction = ActionFunction<oktaTriggerOktaWorkflowParamsType, AuthParamsType, oktaTriggerOktaWorkflowOutputType>;
|
|
5986
|
+
export declare const oktaOrgGetOktaUserByNameParamsSchema: z.ZodObject<{
|
|
5987
|
+
name: z.ZodString;
|
|
5988
|
+
}, "strip", z.ZodTypeAny, {
|
|
5989
|
+
name: string;
|
|
5990
|
+
}, {
|
|
5991
|
+
name: string;
|
|
5992
|
+
}>;
|
|
5993
|
+
export type oktaOrgGetOktaUserByNameParamsType = z.infer<typeof oktaOrgGetOktaUserByNameParamsSchema>;
|
|
5994
|
+
export declare const oktaOrgGetOktaUserByNameOutputSchema: z.ZodObject<{
|
|
5995
|
+
success: z.ZodBoolean;
|
|
5996
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
5997
|
+
id: z.ZodString;
|
|
5998
|
+
email: z.ZodString;
|
|
5999
|
+
title: z.ZodOptional<z.ZodString>;
|
|
6000
|
+
division: z.ZodOptional<z.ZodString>;
|
|
6001
|
+
department: z.ZodOptional<z.ZodString>;
|
|
6002
|
+
}, "strip", z.ZodTypeAny, {
|
|
6003
|
+
id: string;
|
|
6004
|
+
email: string;
|
|
6005
|
+
title?: string | undefined;
|
|
6006
|
+
division?: string | undefined;
|
|
6007
|
+
department?: string | undefined;
|
|
6008
|
+
}, {
|
|
6009
|
+
id: string;
|
|
6010
|
+
email: string;
|
|
6011
|
+
title?: string | undefined;
|
|
6012
|
+
division?: string | undefined;
|
|
6013
|
+
department?: string | undefined;
|
|
6014
|
+
}>>;
|
|
6015
|
+
error: z.ZodOptional<z.ZodString>;
|
|
6016
|
+
}, "strip", z.ZodTypeAny, {
|
|
6017
|
+
success: boolean;
|
|
6018
|
+
error?: string | undefined;
|
|
6019
|
+
user?: {
|
|
6020
|
+
id: string;
|
|
6021
|
+
email: string;
|
|
6022
|
+
title?: string | undefined;
|
|
6023
|
+
division?: string | undefined;
|
|
6024
|
+
department?: string | undefined;
|
|
6025
|
+
} | undefined;
|
|
6026
|
+
}, {
|
|
6027
|
+
success: boolean;
|
|
6028
|
+
error?: string | undefined;
|
|
6029
|
+
user?: {
|
|
6030
|
+
id: string;
|
|
6031
|
+
email: string;
|
|
6032
|
+
title?: string | undefined;
|
|
6033
|
+
division?: string | undefined;
|
|
6034
|
+
department?: string | undefined;
|
|
6035
|
+
} | undefined;
|
|
6036
|
+
}>;
|
|
6037
|
+
export type oktaOrgGetOktaUserByNameOutputType = z.infer<typeof oktaOrgGetOktaUserByNameOutputSchema>;
|
|
6038
|
+
export type oktaOrgGetOktaUserByNameFunction = ActionFunction<oktaOrgGetOktaUserByNameParamsType, AuthParamsType, oktaOrgGetOktaUserByNameOutputType>;
|
|
5973
6039
|
export declare const gongGetGongTranscriptsParamsSchema: z.ZodObject<{
|
|
5974
6040
|
userRole: z.ZodString;
|
|
5975
6041
|
trackers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -25,6 +25,7 @@ export var ProviderName;
|
|
|
25
25
|
ProviderName["GOOGLEOAUTH"] = "googleOauth";
|
|
26
26
|
ProviderName["GOOGLEMAIL"] = "googlemail";
|
|
27
27
|
ProviderName["OKTA"] = "okta";
|
|
28
|
+
ProviderName["OKTAORG"] = "oktaOrg";
|
|
28
29
|
ProviderName["GONG"] = "gong";
|
|
29
30
|
ProviderName["FINNHUB"] = "finnhub";
|
|
30
31
|
ProviderName["LOOKER"] = "looker";
|
|
@@ -301,7 +302,8 @@ export const slackUserSearchSlackOutputSchema = z.object({
|
|
|
301
302
|
channelId: z.string().describe("Slack channel/conversation ID (C…/G…/D… or name)."),
|
|
302
303
|
ts: z.string().describe("Slack message timestamp of the hit (or thread root when hydrated as thread)."),
|
|
303
304
|
text: z.string().describe("Message text of the anchor (hit or thread root).").optional(),
|
|
304
|
-
|
|
305
|
+
userEmail: z.string().describe("User email of the anchor message’s author (if available).").optional(),
|
|
306
|
+
userName: z.string().describe("User name of the anchor message’s author (if available).").optional(),
|
|
305
307
|
permalink: z
|
|
306
308
|
.string()
|
|
307
309
|
.describe("A Slack permalink to the anchor (message or thread root), if resolvable.")
|
|
@@ -310,7 +312,8 @@ export const slackUserSearchSlackOutputSchema = z.object({
|
|
|
310
312
|
.array(z.object({
|
|
311
313
|
ts: z.string().describe("Timestamp of the contextual message."),
|
|
312
314
|
text: z.string().describe("Text of the contextual message.").optional(),
|
|
313
|
-
|
|
315
|
+
userEmail: z.string().describe("Author user email of the contextual message.").optional(),
|
|
316
|
+
userName: z.string().describe("Author user name of the contextual message.").optional(),
|
|
314
317
|
}))
|
|
315
318
|
.describe("When a hit is in a thread, this is the full thread (root first). Otherwise, a small surrounding context window (~3 before, 5 after).")
|
|
316
319
|
.optional(),
|
|
@@ -3212,6 +3215,22 @@ export const oktaTriggerOktaWorkflowOutputSchema = z.object({
|
|
|
3212
3215
|
output: z.object({}).catchall(z.any()).describe("The output of the triggered workflow, if applicable.").optional(),
|
|
3213
3216
|
error: z.string().describe("Error message if the workflow trigger failed.").optional(),
|
|
3214
3217
|
});
|
|
3218
|
+
export const oktaOrgGetOktaUserByNameParamsSchema = z.object({
|
|
3219
|
+
name: z.string().describe("The name of the user to retrieve."),
|
|
3220
|
+
});
|
|
3221
|
+
export const oktaOrgGetOktaUserByNameOutputSchema = z.object({
|
|
3222
|
+
success: z.boolean().describe("Whether the user details were successfully retrieved."),
|
|
3223
|
+
user: z
|
|
3224
|
+
.object({
|
|
3225
|
+
id: z.string().describe("The user's Okta ID"),
|
|
3226
|
+
email: z.string().describe("The user's email address"),
|
|
3227
|
+
title: z.string().describe("The user's title").optional(),
|
|
3228
|
+
division: z.string().describe("The user's division").optional(),
|
|
3229
|
+
department: z.string().describe("The user's department").optional(),
|
|
3230
|
+
})
|
|
3231
|
+
.optional(),
|
|
3232
|
+
error: z.string().describe("Error message if retrieval failed.").optional(),
|
|
3233
|
+
});
|
|
3215
3234
|
export const gongGetGongTranscriptsParamsSchema = z.object({
|
|
3216
3235
|
userRole: z.string().describe("The role of users whose transcripts are being fetched"),
|
|
3217
3236
|
trackers: z
|
|
@@ -8,25 +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
28
|
const { pageId, username, content, title } = params;
|
|
24
29
|
const { baseUrl, authToken } = authParams;
|
|
25
|
-
const
|
|
30
|
+
const api = getConfluenceApi(baseUrl, username, authToken);
|
|
26
31
|
// Get current version number
|
|
27
|
-
const response = yield
|
|
32
|
+
const response = yield api.get(`/api/v2/pages/${pageId}`);
|
|
28
33
|
const currVersion = response.data.version.number;
|
|
29
|
-
|
|
34
|
+
yield api.put(`/api/v2/pages/${pageId}`, {
|
|
30
35
|
id: pageId,
|
|
31
36
|
status: "current",
|
|
32
37
|
title,
|
|
@@ -37,7 +42,6 @@ const confluenceUpdatePage = (_a) => __awaiter(void 0, [_a], void 0, function* (
|
|
|
37
42
|
version: {
|
|
38
43
|
number: currVersion + 1,
|
|
39
44
|
},
|
|
40
|
-
};
|
|
41
|
-
yield axiosClient_1.axiosClient.put(`/api/v2/pages/${pageId}`, payload, config);
|
|
45
|
+
});
|
|
42
46
|
});
|
|
43
47
|
exports.default = confluenceUpdatePage;
|
|
@@ -0,0 +1,54 @@
|
|
|
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 getOktaUserByName = (_a) => __awaiter(void 0, [_a], void 0, function* ({ authParams, params, }) {
|
|
12
|
+
const { authToken, baseUrl } = authParams;
|
|
13
|
+
if (!authToken || !baseUrl) {
|
|
14
|
+
return {
|
|
15
|
+
success: false,
|
|
16
|
+
error: "Missing Okta OAuth token (authToken) or base URL (baseUrl) in authParams.",
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
const requestConfig = {
|
|
21
|
+
headers: {
|
|
22
|
+
Authorization: `Bearer ${authToken}`,
|
|
23
|
+
Accept: "application/json",
|
|
24
|
+
"Content-Type": "application/json",
|
|
25
|
+
},
|
|
26
|
+
params: {
|
|
27
|
+
q: params.name,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
const endpointUrl = new URL(`/api/v1/users`, baseUrl).toString();
|
|
31
|
+
const response = yield axiosClient.get(endpointUrl, requestConfig);
|
|
32
|
+
if (response.status === 200 && response.data && response.data.length > 0) {
|
|
33
|
+
const user = response.data[0];
|
|
34
|
+
return {
|
|
35
|
+
success: true,
|
|
36
|
+
user: {
|
|
37
|
+
id: user.id,
|
|
38
|
+
email: user.profile.email,
|
|
39
|
+
title: user.profile.title,
|
|
40
|
+
division: user.profile.division,
|
|
41
|
+
department: user.profile.department,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return { success: false, error: "Failed to retrieve user details" };
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
console.error("Error retrieving user details:", error);
|
|
51
|
+
return { success: false, error: error instanceof Error ? error.message : "Unknown error occurred" };
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
export default getOktaUserByName;
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ActionTemplate } from "@/actions/parse";
|
|
2
|
-
export declare const slackSendMessageDefinition: ActionTemplate;
|
|
3
|
-
export declare const slackListConversationsDefinition: ActionTemplate;
|
|
4
|
-
export declare const mathAddDefinition: ActionTemplate;
|
|
5
|
-
export declare const confluenceUpdatePageDefinition: ActionTemplate;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.confluenceUpdatePageDefinition = exports.mathAddDefinition = exports.slackListConversationsDefinition = exports.slackSendMessageDefinition = void 0;
|
|
4
|
-
exports.slackSendMessageDefinition = {
|
|
5
|
-
provider: "slack",
|
|
6
|
-
name: "send_message",
|
|
7
|
-
description: "Sends a message to a Slack channel",
|
|
8
|
-
scopes: ["chat:write"],
|
|
9
|
-
parameters: {
|
|
10
|
-
channel: {
|
|
11
|
-
type: "string",
|
|
12
|
-
description: "The Slack channel to send the message to (e.g., \\#general, \\#alerts)",
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
message: {
|
|
16
|
-
type: "string",
|
|
17
|
-
description: "The message content to send to Slack. Can include markdown formatting.",
|
|
18
|
-
required: true,
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
output: {},
|
|
22
|
-
};
|
|
23
|
-
exports.slackListConversationsDefinition = {
|
|
24
|
-
provider: "slack",
|
|
25
|
-
name: "list_conversations",
|
|
26
|
-
description: "Lists all conversations in a Slack workspace",
|
|
27
|
-
scopes: ["channels:read", "groups:read", "im:read", "mpim:read"],
|
|
28
|
-
authToken: {
|
|
29
|
-
type: "string",
|
|
30
|
-
description: "The Slack access token to use",
|
|
31
|
-
required: true,
|
|
32
|
-
},
|
|
33
|
-
parameters: {},
|
|
34
|
-
output: {
|
|
35
|
-
channels: {
|
|
36
|
-
type: "array",
|
|
37
|
-
description: "A list of channels in Slack",
|
|
38
|
-
required: true,
|
|
39
|
-
items: {
|
|
40
|
-
type: "object",
|
|
41
|
-
description: "A channel in Slack",
|
|
42
|
-
required: true,
|
|
43
|
-
properties: {
|
|
44
|
-
id: {
|
|
45
|
-
type: "string",
|
|
46
|
-
description: "The ID of the channel",
|
|
47
|
-
required: true,
|
|
48
|
-
},
|
|
49
|
-
name: {
|
|
50
|
-
type: "string",
|
|
51
|
-
description: "The name of the channel",
|
|
52
|
-
required: true,
|
|
53
|
-
},
|
|
54
|
-
topic: {
|
|
55
|
-
type: "string",
|
|
56
|
-
description: "The topic of the channel",
|
|
57
|
-
required: true,
|
|
58
|
-
},
|
|
59
|
-
purpose: {
|
|
60
|
-
type: "string",
|
|
61
|
-
description: "The purpose of the channel",
|
|
62
|
-
required: true,
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
exports.mathAddDefinition = {
|
|
70
|
-
provider: "math",
|
|
71
|
-
name: "add",
|
|
72
|
-
description: "Adds two numbers together",
|
|
73
|
-
scopes: [],
|
|
74
|
-
parameters: {
|
|
75
|
-
a: {
|
|
76
|
-
type: "number",
|
|
77
|
-
description: "The first number to add",
|
|
78
|
-
required: true,
|
|
79
|
-
},
|
|
80
|
-
b: {
|
|
81
|
-
type: "number",
|
|
82
|
-
description: "The second number to add",
|
|
83
|
-
required: true,
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
output: {
|
|
87
|
-
result: {
|
|
88
|
-
type: "number",
|
|
89
|
-
description: "The sum of the two numbers",
|
|
90
|
-
required: true,
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
exports.confluenceUpdatePageDefinition = {
|
|
95
|
-
provider: "confluence",
|
|
96
|
-
name: "updatePage",
|
|
97
|
-
description: "Updates a confluence page with the new content specified",
|
|
98
|
-
scopes: [],
|
|
99
|
-
authToken: {
|
|
100
|
-
type: "string",
|
|
101
|
-
description: "The access token to use for confluence",
|
|
102
|
-
required: true,
|
|
103
|
-
},
|
|
104
|
-
baseUrl: {
|
|
105
|
-
type: "string",
|
|
106
|
-
description: "The base url required to access the confluence instance",
|
|
107
|
-
required: true,
|
|
108
|
-
},
|
|
109
|
-
parameters: {
|
|
110
|
-
pageId: {
|
|
111
|
-
type: "string",
|
|
112
|
-
description: "The page id that should be updated",
|
|
113
|
-
required: true,
|
|
114
|
-
},
|
|
115
|
-
title: {
|
|
116
|
-
type: "string",
|
|
117
|
-
description: "The title of the page that should be updated",
|
|
118
|
-
required: true,
|
|
119
|
-
},
|
|
120
|
-
username: {
|
|
121
|
-
type: "string",
|
|
122
|
-
description: "The username of the person updating the page",
|
|
123
|
-
required: true,
|
|
124
|
-
},
|
|
125
|
-
content: {
|
|
126
|
-
type: "string",
|
|
127
|
-
description: "The new content for the page",
|
|
128
|
-
required: true,
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
output: {},
|
|
132
|
-
};
|