@credal/actions 0.2.171 → 0.2.172

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, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, 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, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, } 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, salesforceUpdateRecordParamsSchema, salesforceUpdateRecordOutputSchema, salesforceCreateCaseParamsSchema, salesforceCreateCaseOutputSchema, salesforceGenerateSalesReportParamsSchema, salesforceGenerateSalesReportOutputSchema, salesforceGetRecordParamsSchema, salesforceGetRecordOutputSchema, microsoftMessageTeamsChatParamsSchema, microsoftMessageTeamsChatOutputSchema, microsoftMessageTeamsChannelParamsSchema, microsoftMessageTeamsChannelOutputSchema, salesforceGetSalesforceRecordsByQueryParamsSchema, salesforceGetSalesforceRecordsByQueryOutputSchema, asanaCommentTaskParamsSchema, asanaCommentTaskOutputSchema, asanaCreateTaskParamsSchema, asanaCreateTaskOutputSchema, asanaUpdateTaskParamsSchema, asanaUpdateTaskOutputSchema, githubCreateOrUpdateFileParamsSchema, githubCreateOrUpdateFileOutputSchema, githubCreateBranchParamsSchema, githubCreateBranchOutputSchema, githubCreatePullRequestParamsSchema, githubCreatePullRequestOutputSchema, microsoftUpdateSpreadsheetParamsSchema, microsoftUpdateSpreadsheetOutputSchema, microsoftUpdateDocumentParamsSchema, microsoftUpdateDocumentOutputSchema, microsoftGetDocumentParamsSchema, microsoftGetDocumentOutputSchema, githubListPullRequestsParamsSchema, githubListPullRequestsOutputSchema, jiraGetJiraIssuesByQueryOutputSchema, jiraGetJiraIssuesByQueryParamsSchema, salesforceCreateRecordParamsSchema, salesforceCreateRecordOutputSchema, firecrawlDeepResearchParamsSchema, firecrawlDeepResearchOutputSchema, bingGetTopNSearchResultUrlsParamsSchema, bingGetTopNSearchResultUrlsOutputSchema, microsoftCreateDocumentParamsSchema, microsoftCreateDocumentOutputSchema, asanaListAsanaTasksByProjectParamsSchema, asanaListAsanaTasksByProjectOutputSchema, asanaSearchTasksParamsSchema, asanaSearchTasksOutputSchema, asanaGetTasksDetailsParamsSchema, asanaGetTasksDetailsOutputSchema, notionSearchByTitleParamsSchema, notionSearchByTitleOutputSchema, googlemailSearchGmailMessagesOutputSchema, googlemailSearchGmailMessagesParamsSchema, googlemailListGmailThreadsOutputSchema, googlemailListGmailThreadsParamsSchema, gitlabSearchGroupOutputSchema, gitlabSearchGroupParamsSchema, 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, gitlabGetMergeRequestParamsSchema, gitlabGetMergeRequestOutputSchema, jiraPublicCommentOnServiceDeskRequestParamsSchema, jiraPublicCommentOnServiceDeskRequestOutputSchema, googlemailSendGmailParamsSchema, googlemailSendGmailOutputSchema, gitlabListDirectoryParamsSchema, gitlabListDirectoryOutputSchema, firecrawlSearchAndScrapeOutputSchema, firecrawlSearchAndScrapeParamsSchema, firecrawlGetTopNSearchResultUrlsParamsSchema, firecrawlGetTopNSearchResultUrlsOutputSchema, googleOauthSearchDriveByKeywordsAndGetFileContentParamsSchema, googleOauthSearchDriveByKeywordsAndGetFileContentOutputSchema, perplexityPerplexityDeepResearchParamsSchema, perplexityPerplexityDeepResearchOutputSchema, slackUserSearchSlackParamsSchema, slackUserSearchSlackOutputSchema, oktaOrgGetOktaUserByNameParamsSchema, oktaOrgGetOktaUserByNameOutputSchema, googleSearchCustomSearchParamsSchema, googleSearchCustomSearchOutputSchema, salesforceSearchAllSalesforceRecordsParamsSchema, salesforceSearchAllSalesforceRecordsOutputSchema, slackSendDmFromBotParamsSchema, slackSendDmFromBotOutputSchema, } 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";
@@ -124,6 +124,7 @@ import firecrawlGetTopNSearchResultUrls from "./providers/firecrawl/getTopNSearc
124
124
  import searchDriveByKeywordsAndGetFileContent from "./providers/google-oauth/searchDriveByKeywordsAndGetFileContent.js";
125
125
  import perplexityDeepResearch from "./providers/perplexity/perplexityDeepResearch.js";
126
126
  import searchSlack from "./providers/slackUser/searchSlack.js";
127
+ import sendDmFromBot from "./providers/slack/sendDmFromBot.js";
127
128
  import getOktaUserByName from "./providers/oktaOrg/getOktaUserByName.js";
128
129
  import customSearch from "./providers/googleSearch/customSearch.js";
129
130
  import searchAllSalesforceRecords from "./providers/salesforce/searchAllSalesforceRecords.js";
@@ -254,6 +255,11 @@ export const ActionMapper = {
254
255
  paramsSchema: slackCreateChannelParamsSchema,
255
256
  outputSchema: slackCreateChannelOutputSchema,
256
257
  },
258
+ sendDmFromBot: {
259
+ fn: sendDmFromBot,
260
+ paramsSchema: slackSendDmFromBotParamsSchema,
261
+ outputSchema: slackSendDmFromBotOutputSchema,
262
+ },
257
263
  },
258
264
  slackUser: {
259
265
  searchSlack: {
@@ -7,6 +7,7 @@ export declare const asanaCreateTaskDefinition: ActionTemplate;
7
7
  export declare const asanaUpdateTaskDefinition: ActionTemplate;
8
8
  export declare const asanaSearchTasksDefinition: ActionTemplate;
9
9
  export declare const asanaGetTasksDetailsDefinition: ActionTemplate;
10
+ export declare const slackSendDmFromBotDefinition: ActionTemplate;
10
11
  export declare const slackCreateChannelDefinition: ActionTemplate;
11
12
  export declare const slackSendMessageDefinition: ActionTemplate;
12
13
  export declare const slackGetChannelMessagesDefinition: ActionTemplate;
@@ -583,6 +583,52 @@ export const asanaGetTasksDetailsDefinition = {
583
583
  name: "getTasksDetails",
584
584
  provider: "asana",
585
585
  };
586
+ export const slackSendDmFromBotDefinition = {
587
+ description: "Sends a direct message to a user on Slack using a bot",
588
+ scopes: ["users:read", "channels:manage", "chat:write"],
589
+ parameters: {
590
+ type: "object",
591
+ required: ["email", "message"],
592
+ properties: {
593
+ email: {
594
+ type: "string",
595
+ description: "The email of the user to send the DM to",
596
+ },
597
+ message: {
598
+ type: "string",
599
+ description: "The message content to send",
600
+ },
601
+ },
602
+ },
603
+ output: {
604
+ type: "object",
605
+ required: ["success"],
606
+ properties: {
607
+ success: {
608
+ type: "boolean",
609
+ description: "Whether the DM was sent successfully",
610
+ },
611
+ error: {
612
+ type: "string",
613
+ description: "Error message if the operation failed",
614
+ },
615
+ channelId: {
616
+ type: "string",
617
+ description: "The ID of the DM channel",
618
+ },
619
+ timestamp: {
620
+ type: "string",
621
+ description: "The timestamp of the sent message",
622
+ },
623
+ permalink: {
624
+ type: "string",
625
+ description: "The permalink to the sent message",
626
+ },
627
+ },
628
+ },
629
+ name: "sendDmFromBot",
630
+ provider: "slack",
631
+ };
586
632
  export const slackCreateChannelDefinition = {
587
633
  description: "Creates a new Slack channel using a bot token",
588
634
  scopes: ["channels:manage"],
@@ -758,6 +758,38 @@ export declare const asanaGetTasksDetailsOutputSchema: z.ZodObject<{
758
758
  }>;
759
759
  export type asanaGetTasksDetailsOutputType = z.infer<typeof asanaGetTasksDetailsOutputSchema>;
760
760
  export type asanaGetTasksDetailsFunction = ActionFunction<asanaGetTasksDetailsParamsType, AuthParamsType, asanaGetTasksDetailsOutputType>;
761
+ export declare const slackSendDmFromBotParamsSchema: z.ZodObject<{
762
+ email: z.ZodString;
763
+ message: z.ZodString;
764
+ }, "strip", z.ZodTypeAny, {
765
+ message: string;
766
+ email: string;
767
+ }, {
768
+ message: string;
769
+ email: string;
770
+ }>;
771
+ export type slackSendDmFromBotParamsType = z.infer<typeof slackSendDmFromBotParamsSchema>;
772
+ export declare const slackSendDmFromBotOutputSchema: z.ZodObject<{
773
+ success: z.ZodBoolean;
774
+ error: z.ZodOptional<z.ZodString>;
775
+ channelId: z.ZodOptional<z.ZodString>;
776
+ timestamp: z.ZodOptional<z.ZodString>;
777
+ permalink: z.ZodOptional<z.ZodString>;
778
+ }, "strip", z.ZodTypeAny, {
779
+ success: boolean;
780
+ error?: string | undefined;
781
+ channelId?: string | undefined;
782
+ timestamp?: string | undefined;
783
+ permalink?: string | undefined;
784
+ }, {
785
+ success: boolean;
786
+ error?: string | undefined;
787
+ channelId?: string | undefined;
788
+ timestamp?: string | undefined;
789
+ permalink?: string | undefined;
790
+ }>;
791
+ export type slackSendDmFromBotOutputType = z.infer<typeof slackSendDmFromBotOutputSchema>;
792
+ export type slackSendDmFromBotFunction = ActionFunction<slackSendDmFromBotParamsType, AuthParamsType, slackSendDmFromBotOutputType>;
761
793
  export declare const slackCreateChannelParamsSchema: z.ZodObject<{
762
794
  channelName: z.ZodString;
763
795
  isPrivate: z.ZodOptional<z.ZodBoolean>;
@@ -793,12 +825,12 @@ export declare const slackSendMessageParamsSchema: z.ZodObject<{
793
825
  message: z.ZodString;
794
826
  }, "strip", z.ZodTypeAny, {
795
827
  message: string;
796
- channelName?: string | undefined;
797
828
  channelId?: string | undefined;
829
+ channelName?: string | undefined;
798
830
  }, {
799
831
  message: string;
800
- channelName?: string | undefined;
801
832
  channelId?: string | undefined;
833
+ channelName?: string | undefined;
802
834
  }>;
803
835
  export type slackSendMessageParamsType = z.infer<typeof slackSendMessageParamsSchema>;
804
836
  export declare const slackSendMessageOutputSchema: z.ZodObject<{
@@ -826,16 +858,16 @@ export declare const slackGetChannelMessagesParamsSchema: z.ZodObject<{
826
858
  includeThreadReplies: z.ZodOptional<z.ZodBoolean>;
827
859
  }, "strip", z.ZodTypeAny, {
828
860
  oldest: string;
829
- channelName?: string | undefined;
830
861
  channelId?: string | undefined;
862
+ channelName?: string | undefined;
831
863
  latest?: string | undefined;
832
864
  limit?: number | undefined;
833
865
  cursor?: string | undefined;
834
866
  includeThreadReplies?: boolean | undefined;
835
867
  }, {
836
868
  oldest: string;
837
- channelName?: string | undefined;
838
869
  channelId?: string | undefined;
870
+ channelName?: string | undefined;
839
871
  latest?: string | undefined;
840
872
  limit?: number | undefined;
841
873
  cursor?: string | undefined;
@@ -953,9 +985,9 @@ export declare const slackUserSearchSlackOutputSchema: z.ZodObject<{
953
985
  userName?: string | undefined;
954
986
  }[] | undefined;
955
987
  text?: string | undefined;
988
+ permalink?: string | undefined;
956
989
  userEmail?: string | undefined;
957
990
  userName?: string | undefined;
958
- permalink?: string | undefined;
959
991
  context?: {
960
992
  ts: string;
961
993
  text?: string | undefined;
@@ -971,9 +1003,9 @@ export declare const slackUserSearchSlackOutputSchema: z.ZodObject<{
971
1003
  userName?: string | undefined;
972
1004
  }[] | undefined;
973
1005
  text?: string | undefined;
1006
+ permalink?: string | undefined;
974
1007
  userEmail?: string | undefined;
975
1008
  userName?: string | undefined;
976
- permalink?: string | undefined;
977
1009
  context?: {
978
1010
  ts: string;
979
1011
  text?: string | undefined;
@@ -993,9 +1025,9 @@ export declare const slackUserSearchSlackOutputSchema: z.ZodObject<{
993
1025
  userName?: string | undefined;
994
1026
  }[] | undefined;
995
1027
  text?: string | undefined;
1028
+ permalink?: string | undefined;
996
1029
  userEmail?: string | undefined;
997
1030
  userName?: string | undefined;
998
- permalink?: string | undefined;
999
1031
  context?: {
1000
1032
  ts: string;
1001
1033
  text?: string | undefined;
@@ -1015,9 +1047,9 @@ export declare const slackUserSearchSlackOutputSchema: z.ZodObject<{
1015
1047
  userName?: string | undefined;
1016
1048
  }[] | undefined;
1017
1049
  text?: string | undefined;
1050
+ permalink?: string | undefined;
1018
1051
  userEmail?: string | undefined;
1019
1052
  userName?: string | undefined;
1020
- permalink?: string | undefined;
1021
1053
  context?: {
1022
1054
  ts: string;
1023
1055
  text?: string | undefined;
@@ -1053,9 +1085,9 @@ export declare const slackUserSearchSlackOutputSchema: z.ZodObject<{
1053
1085
  userName?: string | undefined;
1054
1086
  }[] | undefined;
1055
1087
  text?: string | undefined;
1088
+ permalink?: string | undefined;
1056
1089
  userEmail?: string | undefined;
1057
1090
  userName?: string | undefined;
1058
- permalink?: string | undefined;
1059
1091
  context?: {
1060
1092
  ts: string;
1061
1093
  text?: string | undefined;
@@ -1083,9 +1115,9 @@ export declare const slackUserSearchSlackOutputSchema: z.ZodObject<{
1083
1115
  userName?: string | undefined;
1084
1116
  }[] | undefined;
1085
1117
  text?: string | undefined;
1118
+ permalink?: string | undefined;
1086
1119
  userEmail?: string | undefined;
1087
1120
  userName?: string | undefined;
1088
- permalink?: string | undefined;
1089
1121
  context?: {
1090
1122
  ts: string;
1091
1123
  text?: string | undefined;
@@ -228,6 +228,17 @@ export const asanaGetTasksDetailsOutputSchema = z.object({
228
228
  .describe("The list of tasks that match search query")
229
229
  .optional(),
230
230
  });
231
+ export const slackSendDmFromBotParamsSchema = z.object({
232
+ email: z.string().describe("The email of the user to send the DM to"),
233
+ message: z.string().describe("The message content to send"),
234
+ });
235
+ export const slackSendDmFromBotOutputSchema = z.object({
236
+ success: z.boolean().describe("Whether the DM was sent successfully"),
237
+ error: z.string().describe("Error message if the operation failed").optional(),
238
+ channelId: z.string().describe("The ID of the DM channel").optional(),
239
+ timestamp: z.string().describe("The timestamp of the sent message").optional(),
240
+ permalink: z.string().describe("The permalink to the sent message").optional(),
241
+ });
231
242
  export const slackCreateChannelParamsSchema = z.object({
232
243
  channelName: z.string().describe("The name of the channel to create (without '#')"),
233
244
  isPrivate: z.boolean().describe("Whether to create a private channel (defaults to false)").optional(),
@@ -0,0 +1,11 @@
1
+ import { type slackSendDmFromBotFunction } from "../../autogen/types.js";
2
+ /**
3
+ * Sends a direct message to a user on Slack.
4
+ *
5
+ * This action:
6
+ * 1. Looks up the user by email using users.lookupByEmail
7
+ * 2. Opens a DM channel with conversations.open (or uses existing)
8
+ * 3. Posts the message using chat.postMessage
9
+ */
10
+ declare const sendDmFromBot: slackSendDmFromBotFunction;
11
+ export default sendDmFromBot;
@@ -0,0 +1,86 @@
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 { WebClient } from "@slack/web-api";
11
+ import { MISSING_AUTH_TOKEN } from "../../util/missingAuthConstants.js";
12
+ /**
13
+ * Sends a direct message to a user on Slack.
14
+ *
15
+ * This action:
16
+ * 1. Looks up the user by email using users.lookupByEmail
17
+ * 2. Opens a DM channel with conversations.open (or uses existing)
18
+ * 3. Posts the message using chat.postMessage
19
+ */
20
+ const sendDmFromBot = (_a) => __awaiter(void 0, [_a], void 0, function* ({ params, authParams, }) {
21
+ var _b, _c;
22
+ if (!authParams.authToken)
23
+ throw new Error(MISSING_AUTH_TOKEN);
24
+ const client = new WebClient(authParams.authToken);
25
+ const { email, message } = params;
26
+ try {
27
+ // Step 1: Look up user by email
28
+ const userLookup = yield client.users.lookupByEmail({ email });
29
+ const userId = (_b = userLookup.user) === null || _b === void 0 ? void 0 : _b.id;
30
+ if (!userId) {
31
+ return {
32
+ success: false,
33
+ error: `User not found with email: ${email}`,
34
+ };
35
+ }
36
+ // Step 2: Open DM conversation (or get existing one)
37
+ const conversationOpen = yield client.conversations.open({
38
+ users: userId,
39
+ });
40
+ const channelId = (_c = conversationOpen.channel) === null || _c === void 0 ? void 0 : _c.id;
41
+ if (!channelId) {
42
+ return {
43
+ success: false,
44
+ error: "Failed to open DM conversation",
45
+ };
46
+ }
47
+ // Step 3: Send the message
48
+ const result = yield client.chat.postMessage({
49
+ channel: channelId,
50
+ text: message,
51
+ });
52
+ if (!result.ok) {
53
+ return {
54
+ success: false,
55
+ error: result.error || "Failed to send message",
56
+ };
57
+ }
58
+ // Get permalink for the sent message
59
+ let permalink;
60
+ if (result.ts) {
61
+ try {
62
+ const permalinkResult = yield client.chat.getPermalink({
63
+ channel: channelId,
64
+ message_ts: result.ts,
65
+ });
66
+ permalink = permalinkResult.permalink;
67
+ }
68
+ catch (_d) {
69
+ // Permalink fetch failed, but message was sent successfully
70
+ }
71
+ }
72
+ return {
73
+ success: true,
74
+ channelId,
75
+ timestamp: result.ts,
76
+ permalink,
77
+ };
78
+ }
79
+ catch (error) {
80
+ return {
81
+ success: false,
82
+ error: error instanceof Error ? error.message : "Unknown error occurred",
83
+ };
84
+ }
85
+ });
86
+ export default sendDmFromBot;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.171",
3
+ "version": "0.2.172",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,