@credal/actions 0.2.124 → 0.2.126

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.
@@ -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, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, } 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, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, } 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";
@@ -150,6 +150,7 @@ import searchDriveByKeywordsAndGetFileContent from "./providers/google-oauth/sea
150
150
  import perplexityDeepResearch from "./providers/perplexity/perplexityDeepResearch.js";
151
151
  import searchSlack from "./providers/slackUser/searchSlack.js";
152
152
  import getOktaUserByName from "./providers/oktaOrg/getOktaUserByName.js";
153
+ import customSearch from "./providers/googleSearch/customSearch.js";
153
154
  const jiraActions = {
154
155
  getJiraIssuesByQuery: {
155
156
  fn: getJiraIssuesByQuery,
@@ -607,6 +608,13 @@ export const ActionMapper = {
607
608
  outputSchema: googlemailSendGmailOutputSchema,
608
609
  },
609
610
  },
611
+ googleSearch: {
612
+ customSearch: {
613
+ fn: customSearch,
614
+ paramsSchema: googleSearchCustomSearchParamsSchema,
615
+ outputSchema: googleSearchCustomSearchOutputSchema,
616
+ },
617
+ },
610
618
  x: {
611
619
  createShareXPostUrl: {
612
620
  fn: createXSharePostUrl,
@@ -89,6 +89,7 @@ export declare const googleOauthQueryGoogleBigQueryDefinition: ActionTemplate;
89
89
  export declare const googlemailSearchGmailMessagesDefinition: ActionTemplate;
90
90
  export declare const googlemailListGmailThreadsDefinition: ActionTemplate;
91
91
  export declare const googlemailSendGmailDefinition: ActionTemplate;
92
+ export declare const googleSearchCustomSearchDefinition: ActionTemplate;
92
93
  export declare const oktaGetOktaUserDefinition: ActionTemplate;
93
94
  export declare const oktaListOktaUserGroupsDefinition: ActionTemplate;
94
95
  export declare const oktaListOktaGroupsDefinition: ActionTemplate;
@@ -761,7 +761,7 @@ export const slackUserSearchSlackDefinition = {
761
761
  default: "latest",
762
762
  },
763
763
  limit: {
764
- type: "integer",
764
+ type: "number",
765
765
  description: "Max matches to request (passed to Slack search; results are then hydrated and sorted newest-first).",
766
766
  minimum: 1,
767
767
  maximum: 100,
@@ -3217,7 +3217,7 @@ export const firecrawlScrapeUrlDefinition = {
3217
3217
  description: "Array of formats to return",
3218
3218
  items: {
3219
3219
  type: "string",
3220
- enum: ["json", "html", "screenshot", "markdown", "rawHtml", "links", "changeTracking"],
3220
+ enum: ["html", "screenshot", "markdown", "rawHtml", "links", "changeTracking"],
3221
3221
  },
3222
3222
  },
3223
3223
  },
@@ -4638,12 +4638,12 @@ export const googleOauthScheduleCalendarMeetingDefinition = {
4638
4638
  description: "How often the meeting repeats",
4639
4639
  },
4640
4640
  interval: {
4641
- type: "integer",
4641
+ type: "number",
4642
4642
  minimum: 1,
4643
4643
  description: "The interval between recurrences (e.g., every 2 weeks)",
4644
4644
  },
4645
4645
  count: {
4646
- type: "integer",
4646
+ type: "number",
4647
4647
  minimum: 1,
4648
4648
  description: "Number of occurrences after which to stop the recurrence",
4649
4649
  },
@@ -4663,7 +4663,7 @@ export const googleOauthScheduleCalendarMeetingDefinition = {
4663
4663
  type: "array",
4664
4664
  description: "Days of the month when the meeting occurs (for MONTHLY frequency)",
4665
4665
  items: {
4666
- type: "integer",
4666
+ type: "number",
4667
4667
  minimum: 1,
4668
4668
  maximum: 31,
4669
4669
  },
@@ -7946,6 +7946,112 @@ export const googlemailSendGmailDefinition = {
7946
7946
  name: "sendGmail",
7947
7947
  provider: "googlemail",
7948
7948
  };
7949
+ export const googleSearchCustomSearchDefinition = {
7950
+ description: "Search for information using the Google Custom Search API",
7951
+ scopes: [],
7952
+ parameters: {
7953
+ type: "object",
7954
+ required: ["query", "customSearchEngineId"],
7955
+ properties: {
7956
+ query: {
7957
+ type: "string",
7958
+ description: "Query string to search for",
7959
+ },
7960
+ customSearchEngineId: {
7961
+ type: "string",
7962
+ description: "The Programmable Search Engine ID to use for this request",
7963
+ },
7964
+ dateRestrict: {
7965
+ type: "string",
7966
+ description: "Restricts results to URLs based on date (e.g., d[number], w[number], m[number], y[number])",
7967
+ },
7968
+ exactTerms: {
7969
+ type: "string",
7970
+ description: "Identifies a phrase that all documents in the search results must contain",
7971
+ },
7972
+ excludeTerms: {
7973
+ type: "string",
7974
+ description: "Identifies a word or phrase that should not appear in any documents in the search results",
7975
+ },
7976
+ num: {
7977
+ type: "integer",
7978
+ minimum: 1,
7979
+ maximum: 10,
7980
+ description: "Number of search results to return (1-10)",
7981
+ },
7982
+ siteSearch: {
7983
+ type: "string",
7984
+ description: "Specifies a given site which should always be included or excluded from results",
7985
+ },
7986
+ siteSearchFilter: {
7987
+ type: "string",
7988
+ enum: ["e", "i"],
7989
+ description: "Controls whether to include or exclude results from the site named in siteSearch (e=exclude, i=include)",
7990
+ },
7991
+ start: {
7992
+ type: "integer",
7993
+ minimum: 1,
7994
+ maximum: 100,
7995
+ description: "The index of the first result to return",
7996
+ },
7997
+ },
7998
+ },
7999
+ output: {
8000
+ type: "object",
8001
+ required: ["success"],
8002
+ properties: {
8003
+ success: {
8004
+ type: "boolean",
8005
+ description: "Whether the search was successful",
8006
+ },
8007
+ items: {
8008
+ type: "array",
8009
+ description: "Array of search result items",
8010
+ items: {
8011
+ type: "object",
8012
+ properties: {
8013
+ title: {
8014
+ type: "string",
8015
+ description: "The title of the search result",
8016
+ },
8017
+ link: {
8018
+ type: "string",
8019
+ description: "The URL of the search result",
8020
+ },
8021
+ snippet: {
8022
+ type: "string",
8023
+ description: "A snippet of text from the search result",
8024
+ },
8025
+ displayLink: {
8026
+ type: "string",
8027
+ description: "The displayed URL",
8028
+ },
8029
+ },
8030
+ },
8031
+ },
8032
+ searchInformation: {
8033
+ type: "object",
8034
+ description: "Metadata about the search",
8035
+ properties: {
8036
+ searchTime: {
8037
+ type: "number",
8038
+ description: "Time taken to perform the search",
8039
+ },
8040
+ totalResults: {
8041
+ type: "string",
8042
+ description: "Total number of search results available",
8043
+ },
8044
+ },
8045
+ },
8046
+ error: {
8047
+ type: "string",
8048
+ description: "Error message if search failed",
8049
+ },
8050
+ },
8051
+ },
8052
+ name: "customSearch",
8053
+ provider: "googleSearch",
8054
+ };
7949
8055
  export const oktaGetOktaUserDefinition = {
7950
8056
  description: "Retrieve details of a specific Okta user by their ID.",
7951
8057
  scopes: ["okta.users.read"],
@@ -11429,7 +11535,7 @@ export const githubGetBranchDefinition = {
11429
11535
  description: "The commit URL",
11430
11536
  },
11431
11537
  comment_count: {
11432
- type: "integer",
11538
+ type: "number",
11433
11539
  description: "Number of comments on the commit",
11434
11540
  },
11435
11541
  },
@@ -11443,7 +11549,7 @@ export const githubGetBranchDefinition = {
11443
11549
  type: "string",
11444
11550
  },
11445
11551
  id: {
11446
- type: "integer",
11552
+ type: "number",
11447
11553
  },
11448
11554
  node_id: {
11449
11555
  type: "string",
@@ -11468,7 +11574,7 @@ export const githubGetBranchDefinition = {
11468
11574
  type: "string",
11469
11575
  },
11470
11576
  id: {
11471
- type: "integer",
11577
+ type: "number",
11472
11578
  },
11473
11579
  node_id: {
11474
11580
  type: "string",
@@ -12203,7 +12309,7 @@ export const gitlabGetFileContentDefinition = {
12203
12309
  required: ["project_id", "path"],
12204
12310
  properties: {
12205
12311
  project_id: {
12206
- type: "integer",
12312
+ type: "number",
12207
12313
  description: "Numeric project ID in GitLab (unique per project)",
12208
12314
  },
12209
12315
  path: {
@@ -23,6 +23,7 @@ export declare enum ProviderName {
23
23
  RESEND = "resend",
24
24
  GOOGLEOAUTH = "googleOauth",
25
25
  GOOGLEMAIL = "googlemail",
26
+ GOOGLESEARCH = "googleSearch",
26
27
  OKTA = "okta",
27
28
  OKTAORG = "oktaOrg",
28
29
  GONG = "gong",
@@ -3143,17 +3144,17 @@ export declare const firecrawlScrapeUrlParamsSchema: z.ZodObject<{
3143
3144
  url: z.ZodString;
3144
3145
  waitMs: z.ZodOptional<z.ZodNumber>;
3145
3146
  onlyMainContent: z.ZodOptional<z.ZodBoolean>;
3146
- formats: z.ZodOptional<z.ZodArray<z.ZodEnum<["json", "html", "screenshot", "markdown", "rawHtml", "links", "changeTracking"]>, "many">>;
3147
+ formats: z.ZodOptional<z.ZodArray<z.ZodEnum<["html", "screenshot", "markdown", "rawHtml", "links", "changeTracking"]>, "many">>;
3147
3148
  }, "strip", z.ZodTypeAny, {
3148
3149
  url: string;
3149
3150
  waitMs?: number | undefined;
3150
3151
  onlyMainContent?: boolean | undefined;
3151
- formats?: ("json" | "html" | "screenshot" | "markdown" | "rawHtml" | "links" | "changeTracking")[] | undefined;
3152
+ formats?: ("html" | "screenshot" | "markdown" | "rawHtml" | "links" | "changeTracking")[] | undefined;
3152
3153
  }, {
3153
3154
  url: string;
3154
3155
  waitMs?: number | undefined;
3155
3156
  onlyMainContent?: boolean | undefined;
3156
- formats?: ("json" | "html" | "screenshot" | "markdown" | "rawHtml" | "links" | "changeTracking")[] | undefined;
3157
+ formats?: ("html" | "screenshot" | "markdown" | "rawHtml" | "links" | "changeTracking")[] | undefined;
3157
3158
  }>;
3158
3159
  export type firecrawlScrapeUrlParamsType = z.infer<typeof firecrawlScrapeUrlParamsSchema>;
3159
3160
  export declare const firecrawlScrapeUrlOutputSchema: z.ZodObject<{
@@ -4969,6 +4970,96 @@ export declare const googlemailSendGmailOutputSchema: z.ZodObject<{
4969
4970
  }>;
4970
4971
  export type googlemailSendGmailOutputType = z.infer<typeof googlemailSendGmailOutputSchema>;
4971
4972
  export type googlemailSendGmailFunction = ActionFunction<googlemailSendGmailParamsType, AuthParamsType, googlemailSendGmailOutputType>;
4973
+ export declare const googleSearchCustomSearchParamsSchema: z.ZodObject<{
4974
+ query: z.ZodString;
4975
+ customSearchEngineId: z.ZodString;
4976
+ dateRestrict: z.ZodOptional<z.ZodString>;
4977
+ exactTerms: z.ZodOptional<z.ZodString>;
4978
+ excludeTerms: z.ZodOptional<z.ZodString>;
4979
+ num: z.ZodOptional<z.ZodNumber>;
4980
+ siteSearch: z.ZodOptional<z.ZodString>;
4981
+ siteSearchFilter: z.ZodOptional<z.ZodEnum<["e", "i"]>>;
4982
+ start: z.ZodOptional<z.ZodNumber>;
4983
+ }, "strip", z.ZodTypeAny, {
4984
+ query: string;
4985
+ customSearchEngineId: string;
4986
+ start?: number | undefined;
4987
+ dateRestrict?: string | undefined;
4988
+ exactTerms?: string | undefined;
4989
+ excludeTerms?: string | undefined;
4990
+ num?: number | undefined;
4991
+ siteSearch?: string | undefined;
4992
+ siteSearchFilter?: "e" | "i" | undefined;
4993
+ }, {
4994
+ query: string;
4995
+ customSearchEngineId: string;
4996
+ start?: number | undefined;
4997
+ dateRestrict?: string | undefined;
4998
+ exactTerms?: string | undefined;
4999
+ excludeTerms?: string | undefined;
5000
+ num?: number | undefined;
5001
+ siteSearch?: string | undefined;
5002
+ siteSearchFilter?: "e" | "i" | undefined;
5003
+ }>;
5004
+ export type googleSearchCustomSearchParamsType = z.infer<typeof googleSearchCustomSearchParamsSchema>;
5005
+ export declare const googleSearchCustomSearchOutputSchema: z.ZodObject<{
5006
+ success: z.ZodBoolean;
5007
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
5008
+ title: z.ZodOptional<z.ZodString>;
5009
+ link: z.ZodOptional<z.ZodString>;
5010
+ snippet: z.ZodOptional<z.ZodString>;
5011
+ displayLink: z.ZodOptional<z.ZodString>;
5012
+ }, "strip", z.ZodTypeAny, {
5013
+ link?: string | undefined;
5014
+ title?: string | undefined;
5015
+ snippet?: string | undefined;
5016
+ displayLink?: string | undefined;
5017
+ }, {
5018
+ link?: string | undefined;
5019
+ title?: string | undefined;
5020
+ snippet?: string | undefined;
5021
+ displayLink?: string | undefined;
5022
+ }>, "many">>;
5023
+ searchInformation: z.ZodOptional<z.ZodObject<{
5024
+ searchTime: z.ZodOptional<z.ZodNumber>;
5025
+ totalResults: z.ZodOptional<z.ZodString>;
5026
+ }, "strip", z.ZodTypeAny, {
5027
+ searchTime?: number | undefined;
5028
+ totalResults?: string | undefined;
5029
+ }, {
5030
+ searchTime?: number | undefined;
5031
+ totalResults?: string | undefined;
5032
+ }>>;
5033
+ error: z.ZodOptional<z.ZodString>;
5034
+ }, "strip", z.ZodTypeAny, {
5035
+ success: boolean;
5036
+ error?: string | undefined;
5037
+ items?: {
5038
+ link?: string | undefined;
5039
+ title?: string | undefined;
5040
+ snippet?: string | undefined;
5041
+ displayLink?: string | undefined;
5042
+ }[] | undefined;
5043
+ searchInformation?: {
5044
+ searchTime?: number | undefined;
5045
+ totalResults?: string | undefined;
5046
+ } | undefined;
5047
+ }, {
5048
+ success: boolean;
5049
+ error?: string | undefined;
5050
+ items?: {
5051
+ link?: string | undefined;
5052
+ title?: string | undefined;
5053
+ snippet?: string | undefined;
5054
+ displayLink?: string | undefined;
5055
+ }[] | undefined;
5056
+ searchInformation?: {
5057
+ searchTime?: number | undefined;
5058
+ totalResults?: string | undefined;
5059
+ } | undefined;
5060
+ }>;
5061
+ export type googleSearchCustomSearchOutputType = z.infer<typeof googleSearchCustomSearchOutputSchema>;
5062
+ export type googleSearchCustomSearchFunction = ActionFunction<googleSearchCustomSearchParamsType, AuthParamsType, googleSearchCustomSearchOutputType>;
4972
5063
  export declare const oktaGetOktaUserParamsSchema: z.ZodObject<{
4973
5064
  userId: z.ZodString;
4974
5065
  }, "strip", z.ZodTypeAny, {
@@ -24,6 +24,7 @@ export var ProviderName;
24
24
  ProviderName["RESEND"] = "resend";
25
25
  ProviderName["GOOGLEOAUTH"] = "googleOauth";
26
26
  ProviderName["GOOGLEMAIL"] = "googlemail";
27
+ ProviderName["GOOGLESEARCH"] = "googleSearch";
27
28
  ProviderName["OKTA"] = "okta";
28
29
  ProviderName["OKTAORG"] = "oktaOrg";
29
30
  ProviderName["GONG"] = "gong";
@@ -289,7 +290,6 @@ export const slackUserSearchSlackParamsSchema = z.object({
289
290
  .default("latest"),
290
291
  limit: z
291
292
  .number()
292
- .int()
293
293
  .gte(1)
294
294
  .lte(100)
295
295
  .describe("Max matches to request (passed to Slack search; results are then hydrated and sorted newest-first).")
@@ -984,7 +984,7 @@ export const firecrawlScrapeUrlParamsSchema = z.object({
984
984
  .describe("Extract only the main content of the page, excluding headers, footers, and navigation")
985
985
  .optional(),
986
986
  formats: z
987
- .array(z.enum(["json", "html", "screenshot", "markdown", "rawHtml", "links", "changeTracking"]))
987
+ .array(z.enum(["html", "screenshot", "markdown", "rawHtml", "links", "changeTracking"]))
988
988
  .describe("Array of formats to return")
989
989
  .optional(),
990
990
  });
@@ -1601,15 +1601,15 @@ export const googleOauthScheduleCalendarMeetingParamsSchema = z.object({
1601
1601
  recurrence: z
1602
1602
  .object({
1603
1603
  frequency: z.enum(["DAILY", "WEEKLY", "MONTHLY", "YEARLY"]).describe("How often the meeting repeats").optional(),
1604
- interval: z.number().int().gte(1).describe("The interval between recurrences (e.g., every 2 weeks)").optional(),
1605
- count: z.number().int().gte(1).describe("Number of occurrences after which to stop the recurrence").optional(),
1604
+ interval: z.number().gte(1).describe("The interval between recurrences (e.g., every 2 weeks)").optional(),
1605
+ count: z.number().gte(1).describe("Number of occurrences after which to stop the recurrence").optional(),
1606
1606
  until: z.string().describe("End date for the recurrence in RFC3339 format (YYYY-MM-DD)").optional(),
1607
1607
  byDay: z
1608
1608
  .array(z.enum(["MO", "TU", "WE", "TH", "FR", "SA", "SU"]))
1609
1609
  .describe("Days of the week when the meeting occurs (for WEEKLY frequency)")
1610
1610
  .optional(),
1611
1611
  byMonthDay: z
1612
- .array(z.number().int().gte(1).lte(31))
1612
+ .array(z.number().gte(1).lte(31))
1613
1613
  .describe("Days of the month when the meeting occurs (for MONTHLY frequency)")
1614
1614
  .optional(),
1615
1615
  })
@@ -2924,6 +2924,52 @@ export const googlemailSendGmailOutputSchema = z.object({
2924
2924
  messageId: z.string().describe("The ID of the sent message").optional(),
2925
2925
  error: z.string().describe("Error message if sending failed").optional(),
2926
2926
  });
2927
+ export const googleSearchCustomSearchParamsSchema = z.object({
2928
+ query: z.string().describe("Query string to search for"),
2929
+ customSearchEngineId: z.string().describe("The Programmable Search Engine ID to use for this request"),
2930
+ dateRestrict: z
2931
+ .string()
2932
+ .describe("Restricts results to URLs based on date (e.g., d[number], w[number], m[number], y[number])")
2933
+ .optional(),
2934
+ exactTerms: z
2935
+ .string()
2936
+ .describe("Identifies a phrase that all documents in the search results must contain")
2937
+ .optional(),
2938
+ excludeTerms: z
2939
+ .string()
2940
+ .describe("Identifies a word or phrase that should not appear in any documents in the search results")
2941
+ .optional(),
2942
+ num: z.number().int().gte(1).lte(10).describe("Number of search results to return (1-10)").optional(),
2943
+ siteSearch: z
2944
+ .string()
2945
+ .describe("Specifies a given site which should always be included or excluded from results")
2946
+ .optional(),
2947
+ siteSearchFilter: z
2948
+ .enum(["e", "i"])
2949
+ .describe("Controls whether to include or exclude results from the site named in siteSearch (e=exclude, i=include)")
2950
+ .optional(),
2951
+ start: z.number().int().gte(1).lte(100).describe("The index of the first result to return").optional(),
2952
+ });
2953
+ export const googleSearchCustomSearchOutputSchema = z.object({
2954
+ success: z.boolean().describe("Whether the search was successful"),
2955
+ items: z
2956
+ .array(z.object({
2957
+ title: z.string().describe("The title of the search result").optional(),
2958
+ link: z.string().describe("The URL of the search result").optional(),
2959
+ snippet: z.string().describe("A snippet of text from the search result").optional(),
2960
+ displayLink: z.string().describe("The displayed URL").optional(),
2961
+ }))
2962
+ .describe("Array of search result items")
2963
+ .optional(),
2964
+ searchInformation: z
2965
+ .object({
2966
+ searchTime: z.number().describe("Time taken to perform the search").optional(),
2967
+ totalResults: z.string().describe("Total number of search results available").optional(),
2968
+ })
2969
+ .describe("Metadata about the search")
2970
+ .optional(),
2971
+ error: z.string().describe("Error message if search failed").optional(),
2972
+ });
2927
2973
  export const oktaGetOktaUserParamsSchema = z.object({ userId: z.string().describe("The ID of the user to retrieve.") });
2928
2974
  export const oktaGetOktaUserOutputSchema = z.object({
2929
2975
  success: z.boolean().describe("Whether the user details were successfully retrieved."),
@@ -3965,14 +4011,14 @@ export const githubGetBranchOutputSchema = z.object({
3965
4011
  .describe("The commit tree")
3966
4012
  .optional(),
3967
4013
  url: z.string().describe("The commit URL").optional(),
3968
- comment_count: z.number().int().describe("Number of comments on the commit").optional(),
4014
+ comment_count: z.number().describe("Number of comments on the commit").optional(),
3969
4015
  })
3970
4016
  .describe("The git commit object")
3971
4017
  .optional(),
3972
4018
  author: z
3973
4019
  .object({
3974
4020
  login: z.string().optional(),
3975
- id: z.number().int().optional(),
4021
+ id: z.number().optional(),
3976
4022
  node_id: z.string().optional(),
3977
4023
  avatar_url: z.string().optional(),
3978
4024
  html_url: z.string().optional(),
@@ -3984,7 +4030,7 @@ export const githubGetBranchOutputSchema = z.object({
3984
4030
  committer: z
3985
4031
  .object({
3986
4032
  login: z.string().optional(),
3987
- id: z.number().int().optional(),
4033
+ id: z.number().optional(),
3988
4034
  node_id: z.string().optional(),
3989
4035
  avatar_url: z.string().optional(),
3990
4036
  html_url: z.string().optional(),
@@ -4216,7 +4262,7 @@ export const gitlabSearchGroupOutputSchema = z.object({
4216
4262
  .optional(),
4217
4263
  });
4218
4264
  export const gitlabGetFileContentParamsSchema = z.object({
4219
- project_id: z.number().int().describe("Numeric project ID in GitLab (unique per project)"),
4265
+ project_id: z.number().describe("Numeric project ID in GitLab (unique per project)"),
4220
4266
  path: z.string().describe("The file path to get content from (e.g., src/index.js)"),
4221
4267
  ref: z
4222
4268
  .string()
@@ -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, linearGetIssueDetailsDefinition, linearGetProjectsDefinition, linearGetProjectDetailsDefinition, linearGetTeamDetailsDefinition, linearGetTeamsDefinition, jamfGetJamfComputerInventoryDefinition, jamfGetJamfFileVaultRecoveryKeyDefinition, oktaListOktaUsersDefinition, oktaGetOktaUserDefinition, oktaListOktaUserGroupsDefinition, oktaListOktaGroupsDefinition, oktaGetOktaGroupDefinition, oktaListOktaGroupMembersDefinition, oktaRemoveUserFromGroupDefinition, oktaAddUserToGroupDefinition, oktaResetPasswordDefinition, oktaResetMFADefinition, oktaListMFADefinition, jamfGetJamfUserComputerIdDefinition, jamfLockJamfComputerByIdDefinition, oktaTriggerOktaWorkflowDefinition, jiraOrgAssignJiraTicketDefinition, jiraOrgCreateJiraTicketDefinition, jiraOrgCommentJiraTicketDefinition, jiraOrgGetJiraTicketDetailsDefinition, jiraOrgGetJiraTicketHistoryDefinition, jiraOrgUpdateJiraTicketDetailsDefinition, jiraOrgUpdateJiraTicketStatusDefinition, jiraOrgGetJiraIssuesByQueryDefinition, googleOauthGetDriveFileContentByIdDefinition, googleOauthSearchDriveByQueryDefinition, googleOauthSearchDriveByQueryAndGetFileContentDefinition, githubGetFileContentDefinition, githubListDirectoryDefinition, } from "./autogen/templates.js";
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
  };
@@ -44,9 +44,6 @@ const scrapeUrl = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, a
44
44
  ? result.links.map(link => (typeof link === "string" ? link : JSON.stringify(link))).join("\n")
45
45
  : JSON.stringify(result.links);
46
46
  break;
47
- case "json":
48
- formatContent = result.json ? JSON.stringify(result.json, null, 2) : undefined;
49
- break;
50
47
  case "screenshot":
51
48
  formatContent = result.screenshot;
52
49
  break;
@@ -0,0 +1,3 @@
1
+ import type { googleSearchCustomSearchFunction } from "../../autogen/types.js";
2
+ declare const customSearch: googleSearchCustomSearchFunction;
3
+ export default customSearch;
@@ -0,0 +1,81 @@
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
+ var __rest = (this && this.__rest) || function (s, e) {
11
+ var t = {};
12
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
13
+ t[p] = s[p];
14
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
15
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
17
+ t[p[i]] = s[p[i]];
18
+ }
19
+ return t;
20
+ };
21
+ import { axiosClient } from "../../util/axiosClient.js";
22
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
23
+ // https://developers.google.com/custom-search/v1/reference/rest/v1/cse/list#request
24
+ const customSearch = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
25
+ var _b, _c;
26
+ if (!authParams.authToken) {
27
+ return { success: false, error: MISSING_AUTH_TOKEN };
28
+ }
29
+ const url = "https://customsearch.googleapis.com/customsearch/v1";
30
+ try {
31
+ // Filter out undefined values from params
32
+ const queryParams = Object.fromEntries(Object.entries(params).filter(([, value]) => value !== undefined));
33
+ // Add API key to query parameters
34
+ queryParams.key = authParams.authToken;
35
+ const { query, customSearchEngineId } = queryParams, filteredParams = __rest(queryParams, ["query", "customSearchEngineId"]);
36
+ const res = yield axiosClient.get(url, {
37
+ params: Object.assign({ q: query, cx: customSearchEngineId, filter: "1", safe: "active" }, filteredParams),
38
+ });
39
+ const { items = [], searchInformation } = res.data;
40
+ // Transform the response to match our schema
41
+ const results = items
42
+ .map((item) => {
43
+ var _a, _b, _c, _d;
44
+ return ({
45
+ title: (_a = item.title) !== null && _a !== void 0 ? _a : "",
46
+ link: (_b = item.link) !== null && _b !== void 0 ? _b : "",
47
+ snippet: (_c = item.snippet) !== null && _c !== void 0 ? _c : "",
48
+ displayLink: (_d = item.displayLink) !== null && _d !== void 0 ? _d : "",
49
+ });
50
+ })
51
+ .filter((item) => item.link !== undefined);
52
+ return {
53
+ success: true,
54
+ items: results,
55
+ searchInformation: searchInformation
56
+ ? {
57
+ searchTime: searchInformation.searchTime,
58
+ totalResults: searchInformation.totalResults,
59
+ }
60
+ : undefined,
61
+ };
62
+ }
63
+ catch (error) {
64
+ let errorMessage = "Unknown error performing search";
65
+ if (error && typeof error === "object" && "response" in error) {
66
+ const axiosError = error;
67
+ if ((_c = (_b = axiosError.response) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.error) {
68
+ const apiError = axiosError.response.data.error;
69
+ errorMessage = apiError.message || `API Error: ${apiError.code}`;
70
+ }
71
+ }
72
+ else if (error instanceof Error) {
73
+ errorMessage = error.message;
74
+ }
75
+ return {
76
+ success: false,
77
+ error: errorMessage,
78
+ };
79
+ }
80
+ });
81
+ export default customSearch;
@@ -0,0 +1,3 @@
1
+ import { salesforceGetSalesforceRecordsByQueryFunction } from "../../autogen/types";
2
+ declare const getSalesforceRecordByQuery: salesforceGetSalesforceRecordsByQueryFunction;
3
+ export default getSalesforceRecordByQuery;
@@ -0,0 +1,43 @@
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 getSalesforceRecordByQuery = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
14
+ const { authToken, baseUrl } = authParams;
15
+ const { query, limit } = params;
16
+ if (!authToken || !baseUrl) {
17
+ return {
18
+ success: false,
19
+ error: "authToken and baseUrl are required for Salesforce API",
20
+ };
21
+ }
22
+ // The API limits the maximum number of records returned to 2000, the limit lets the user set a smaller custom limit
23
+ const url = `${baseUrl}/services/data/v56.0/query/?q=${encodeURIComponent(query + " LIMIT " + (limit != undefined && limit <= 2000 ? limit : 2000))}`;
24
+ try {
25
+ const response = yield axiosClient_1.axiosClient.get(url, {
26
+ headers: {
27
+ Authorization: `Bearer ${authToken}`,
28
+ },
29
+ });
30
+ return {
31
+ success: true,
32
+ records: response.data,
33
+ };
34
+ }
35
+ catch (error) {
36
+ console.error("Error retrieving Salesforce record:", error);
37
+ return {
38
+ success: false,
39
+ error: error instanceof Error ? error.message : "An unknown error occurred",
40
+ };
41
+ }
42
+ });
43
+ exports.default = getSalesforceRecordByQuery;
@@ -9,21 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { WebClient } from "@slack/web-api";
11
11
  import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
- import { getSlackChannels } from "./helpers.js";
13
12
  const archiveChannel = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
14
13
  if (!authParams.authToken) {
15
14
  throw new Error(MISSING_AUTH_TOKEN);
16
15
  }
17
16
  try {
18
17
  const client = new WebClient(authParams.authToken);
19
- const { channelName } = params;
20
- const allChannels = yield getSlackChannels(client);
21
- const channel = allChannels.find(channel => channel.name == channelName);
22
- if (!channel || !channel.id) {
23
- throw Error(`Channel with name ${channelName} not found`);
24
- }
25
- yield client.conversations.join({ channel: channel.id });
26
- const result = yield client.conversations.archive({ channel: channel.id });
18
+ const { channelId } = params;
19
+ const result = yield client.conversations.archive({ channel: channelId });
27
20
  if (!result.ok) {
28
21
  return {
29
22
  success: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.124",
3
+ "version": "0.2.126",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,
@@ -1,3 +0,0 @@
1
- import { confluenceUpdatePageFunction } from "../../../actions/autogen/types";
2
- declare const confluenceUpdatePage: confluenceUpdatePageFunction;
3
- export default confluenceUpdatePage;
@@ -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;
@@ -1,8 +0,0 @@
1
- import { z } from "zod";
2
- export declare const TokenResponseSchema: z.ZodObject<{
3
- token: z.ZodString;
4
- }, "strip", z.ZodTypeAny, {
5
- token: string;
6
- }, {
7
- token: string;
8
- }>;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TokenResponseSchema = void 0;
4
- const zod_1 = require("zod");
5
- exports.TokenResponseSchema = zod_1.z.object({
6
- token: zod_1.z.string(),
7
- });