@credal/actions 0.2.181 → 0.2.183

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.
Files changed (35) hide show
  1. package/dist/actions/autogen/types.d.ts +125 -0
  2. package/dist/actions/autogen/types.js +126 -0
  3. package/dist/actions/groups.js +1 -14
  4. package/dist/actions/parse.js +9 -0
  5. package/dist/actions/providers/slack/archiveChannel.js +2 -9
  6. package/dist/actions/providers/slack/listConversations.d.ts +1 -1
  7. package/package.json +6 -3
  8. package/dist/actions/autogen/definitions.d.ts +0 -5
  9. package/dist/actions/autogen/definitions.js +0 -132
  10. package/dist/actions/definitions.js +0 -35
  11. package/dist/actions/invokeMapper.d.ts +0 -9
  12. package/dist/actions/invokeMapper.js +0 -33
  13. package/dist/actions/providers/confluence/updatePage.d.ts +0 -3
  14. package/dist/actions/providers/confluence/updatePage.js +0 -43
  15. package/dist/actions/providers/google-oauth/getSheetValue.d.ts +0 -3
  16. package/dist/actions/providers/google-oauth/getSheetValue.js +0 -50
  17. package/dist/actions/providers/google-oauth/getSheetValues.d.ts +0 -3
  18. package/dist/actions/providers/google-oauth/getSheetValues.js +0 -50
  19. package/dist/actions/providers/google-oauth/listGmailThreads.d.ts +0 -3
  20. package/dist/actions/providers/google-oauth/listGmailThreads.js +0 -98
  21. package/dist/actions/providers/google-oauth/searchGmailMessages.d.ts +0 -3
  22. package/dist/actions/providers/google-oauth/searchGmailMessages.js +0 -91
  23. package/dist/actions/providers/googlemaps/nearbysearch.d.ts +0 -3
  24. package/dist/actions/providers/googlemaps/nearbysearch.js +0 -96
  25. package/dist/actions/providers/jamf/types.d.ts +0 -8
  26. package/dist/actions/providers/jamf/types.js +0 -7
  27. package/dist/actions/providers/jira/createTicket.d.ts +0 -3
  28. package/dist/actions/providers/jira/createTicket.js +0 -34
  29. package/dist/actions/providers/slack/list_conversations.d.ts +0 -3
  30. package/dist/actions/providers/slack/list_conversations.js +0 -60
  31. package/dist/actions/providers/slack/summarizeChannel.d.ts +0 -3
  32. package/dist/actions/providers/slack/summarizeChannel.js +0 -51
  33. package/dist/actions/schema.js +0 -6
  34. package/dist/actions/types.js +0 -2
  35. package/dist/main.js +0 -11
@@ -35,6 +35,131 @@ export declare enum ProviderName {
35
35
  LINEAR = "linear",
36
36
  HUBSPOT = "hubspot"
37
37
  }
38
+ export declare enum ActionName {
39
+ FILLTEMPLATE = "fillTemplate",
40
+ PERPLEXITYDEEPRESEARCH = "perplexityDeepResearch",
41
+ COMMENTTASK = "commentTask",
42
+ LISTASANATASKSBYPROJECT = "listAsanaTasksByProject",
43
+ CREATETASK = "createTask",
44
+ UPDATETASK = "updateTask",
45
+ SEARCHTASKS = "searchTasks",
46
+ GETTASKSDETAILS = "getTasksDetails",
47
+ SENDDMFROMBOT = "sendDmFromBot",
48
+ CREATECHANNEL = "createChannel",
49
+ SENDMESSAGE = "sendMessage",
50
+ GETCHANNELMESSAGES = "getChannelMessages",
51
+ GETCHANNELMEMBERS = "getChannelMembers",
52
+ SEARCHSLACK = "searchSlack",
53
+ ADD = "add",
54
+ OVERWRITEPAGE = "overwritePage",
55
+ FETCHPAGECONTENT = "fetchPageContent",
56
+ ASSIGNJIRATICKET = "assignJiraTicket",
57
+ PUBLICCOMMENTONSERVICEDESKREQUEST = "publicCommentOnServiceDeskRequest",
58
+ COMMENTJIRATICKET = "commentJiraTicket",
59
+ CREATEJIRATICKET = "createJiraTicket",
60
+ CREATESERVICEDESKREQUEST = "createServiceDeskRequest",
61
+ GETJIRATICKETDETAILS = "getJiraTicketDetails",
62
+ GETJIRATICKETHISTORY = "getJiraTicketHistory",
63
+ UPDATEJIRATICKETDETAILS = "updateJiraTicketDetails",
64
+ UPDATEJIRATICKETSTATUS = "updateJiraTicketStatus",
65
+ GETJIRAISSUESBYQUERY = "getJiraIssuesByQuery",
66
+ VALIDATEADDRESS = "validateAddress",
67
+ NEARBYSEARCHRESTAURANTS = "nearbysearchRestaurants",
68
+ GETTOPNSEARCHRESULTURLS = "getTopNSearchResultUrls",
69
+ CREATEZENDESKTICKET = "createZendeskTicket",
70
+ LISTZENDESKTICKETS = "listZendeskTickets",
71
+ GETTICKETDETAILS = "getTicketDetails",
72
+ UPDATETICKETSTATUS = "updateTicketStatus",
73
+ ADDCOMMENTTOTICKET = "addCommentToTicket",
74
+ ASSIGNTICKET = "assignTicket",
75
+ SEARCHZENDESKBYQUERY = "searchZendeskByQuery",
76
+ CREATESHARELINKEDINPOSTURL = "createShareLinkedinPostUrl",
77
+ CREATESHAREXPOSTURL = "createShareXPostUrl",
78
+ INSERTMONGODOC = "insertMongoDoc",
79
+ GETROWBYFIELDVALUE = "getRowByFieldValue",
80
+ RUNSNOWFLAKEQUERY = "runSnowflakeQuery",
81
+ GETLATITUDELONGITUDEFROMLOCATION = "getLatitudeLongitudeFromLocation",
82
+ GETFORECASTFORLOCATION = "getForecastForLocation",
83
+ DEEPRESEARCH = "deepResearch",
84
+ SCRAPEURL = "scrapeUrl",
85
+ SEARCHANDSCRAPE = "searchAndScrape",
86
+ SCRAPETWEETDATAWITHNITTER = "scrapeTweetDataWithNitter",
87
+ SENDEMAIL = "sendEmail",
88
+ SENDEMAILHTML = "sendEmailHtml",
89
+ CREATENEWGOOGLEDOC = "createNewGoogleDoc",
90
+ UPDATEDOC = "updateDoc",
91
+ SCHEDULECALENDARMEETING = "scheduleCalendarMeeting",
92
+ LISTCALENDARS = "listCalendars",
93
+ LISTCALENDAREVENTS = "listCalendarEvents",
94
+ UPDATECALENDAREVENT = "updateCalendarEvent",
95
+ EDITAGOOGLECALENDAREVENT = "editAGoogleCalendarEvent",
96
+ DELETECALENDAREVENT = "deleteCalendarEvent",
97
+ CREATESPREADSHEET = "createSpreadsheet",
98
+ UPDATESPREADSHEET = "updateSpreadsheet",
99
+ APPENDROWSTOSPREADSHEET = "appendRowsToSpreadsheet",
100
+ CREATEPRESENTATION = "createPresentation",
101
+ UPDATEPRESENTATION = "updatePresentation",
102
+ GETPRESENTATION = "getPresentation",
103
+ SEARCHDRIVEBYKEYWORDS = "searchDriveByKeywords",
104
+ SEARCHDRIVEBYQUERY = "searchDriveByQuery",
105
+ SEARCHDRIVEBYKEYWORDSANDGETFILECONTENT = "searchDriveByKeywordsAndGetFileContent",
106
+ SEARCHDRIVEBYQUERYANDGETFILECONTENT = "searchDriveByQueryAndGetFileContent",
107
+ GETDRIVEFILECONTENTBYID = "getDriveFileContentById",
108
+ LISTGROUPS = "listGroups",
109
+ GETGROUP = "getGroup",
110
+ LISTGROUPMEMBERS = "listGroupMembers",
111
+ HASGROUPMEMBER = "hasGroupMember",
112
+ ADDGROUPMEMBER = "addGroupMember",
113
+ DELETEGROUPMEMBER = "deleteGroupMember",
114
+ QUERYGOOGLEBIGQUERY = "queryGoogleBigQuery",
115
+ SEARCHGMAILMESSAGES = "searchGmailMessages",
116
+ LISTGMAILTHREADS = "listGmailThreads",
117
+ SENDGMAIL = "sendGmail",
118
+ CUSTOMSEARCH = "customSearch",
119
+ GETOKTAUSERBYNAME = "getOktaUserByName",
120
+ SYMBOLLOOKUP = "symbolLookup",
121
+ GETBASICFINANCIALS = "getBasicFinancials",
122
+ ENABLEUSERBYEMAIL = "enableUserByEmail",
123
+ UPDATERECORD = "updateRecord",
124
+ CREATERECORD = "createRecord",
125
+ CREATECASE = "createCase",
126
+ GENERATESALESREPORT = "generateSalesReport",
127
+ SEARCHALLSALESFORCERECORDS = "searchAllSalesforceRecords",
128
+ SEARCHSALESFORCERECORDS = "searchSalesforceRecords",
129
+ GETSALESFORCERECORDSBYQUERY = "getSalesforceRecordsByQuery",
130
+ GETRECORD = "getRecord",
131
+ CREATEDOCUMENT = "createDocument",
132
+ UPDATEDOCUMENT = "updateDocument",
133
+ MESSAGETEAMSCHAT = "messageTeamsChat",
134
+ MESSAGETEAMSCHANNEL = "messageTeamsChannel",
135
+ GETDOCUMENT = "getDocument",
136
+ CREATEORUPDATEFILE = "createOrUpdateFile",
137
+ CREATEBRANCH = "createBranch",
138
+ CREATEPULLREQUEST = "createPullRequest",
139
+ LISTPULLREQUESTS = "listPullRequests",
140
+ GETPULLREQUESTDETAILS = "getPullRequestDetails",
141
+ GETFILECONTENT = "getFileContent",
142
+ LISTDIRECTORY = "listDirectory",
143
+ SEARCHORGANIZATION = "searchOrganization",
144
+ GETBRANCH = "getBranch",
145
+ LISTCOMMITS = "listCommits",
146
+ SEARCHBYTITLE = "searchByTitle",
147
+ SEARCHGROUP = "searchGroup",
148
+ GETMERGEREQUEST = "getMergeRequest",
149
+ GETISSUES = "getIssues",
150
+ GETISSUEDETAILS = "getIssueDetails",
151
+ GETPROJECTS = "getProjects",
152
+ GETPROJECTDETAILS = "getProjectDetails",
153
+ GETTEAMDETAILS = "getTeamDetails",
154
+ GETTEAMS = "getTeams",
155
+ GETCONTACTS = "getContacts",
156
+ GETCONTACTDETAILS = "getContactDetails",
157
+ GETCOMPANIES = "getCompanies",
158
+ GETCOMPANYDETAILS = "getCompanyDetails",
159
+ GETDEALS = "getDeals",
160
+ GETDEALDETAILS = "getDealDetails",
161
+ GETTICKETS = "getTickets"
162
+ }
38
163
  export type ActionFunction<P, A, O> = (input: {
39
164
  params: P;
40
165
  authParams: A;
@@ -36,6 +36,132 @@ export var ProviderName;
36
36
  ProviderName["LINEAR"] = "linear";
37
37
  ProviderName["HUBSPOT"] = "hubspot";
38
38
  })(ProviderName || (ProviderName = {}));
39
+ export var ActionName;
40
+ (function (ActionName) {
41
+ ActionName["FILLTEMPLATE"] = "fillTemplate";
42
+ ActionName["PERPLEXITYDEEPRESEARCH"] = "perplexityDeepResearch";
43
+ ActionName["COMMENTTASK"] = "commentTask";
44
+ ActionName["LISTASANATASKSBYPROJECT"] = "listAsanaTasksByProject";
45
+ ActionName["CREATETASK"] = "createTask";
46
+ ActionName["UPDATETASK"] = "updateTask";
47
+ ActionName["SEARCHTASKS"] = "searchTasks";
48
+ ActionName["GETTASKSDETAILS"] = "getTasksDetails";
49
+ ActionName["SENDDMFROMBOT"] = "sendDmFromBot";
50
+ ActionName["CREATECHANNEL"] = "createChannel";
51
+ ActionName["SENDMESSAGE"] = "sendMessage";
52
+ ActionName["GETCHANNELMESSAGES"] = "getChannelMessages";
53
+ ActionName["GETCHANNELMEMBERS"] = "getChannelMembers";
54
+ ActionName["SEARCHSLACK"] = "searchSlack";
55
+ ActionName["ADD"] = "add";
56
+ ActionName["OVERWRITEPAGE"] = "overwritePage";
57
+ ActionName["FETCHPAGECONTENT"] = "fetchPageContent";
58
+ ActionName["ASSIGNJIRATICKET"] = "assignJiraTicket";
59
+ ActionName["PUBLICCOMMENTONSERVICEDESKREQUEST"] = "publicCommentOnServiceDeskRequest";
60
+ ActionName["COMMENTJIRATICKET"] = "commentJiraTicket";
61
+ ActionName["CREATEJIRATICKET"] = "createJiraTicket";
62
+ ActionName["CREATESERVICEDESKREQUEST"] = "createServiceDeskRequest";
63
+ ActionName["GETJIRATICKETDETAILS"] = "getJiraTicketDetails";
64
+ ActionName["GETJIRATICKETHISTORY"] = "getJiraTicketHistory";
65
+ ActionName["UPDATEJIRATICKETDETAILS"] = "updateJiraTicketDetails";
66
+ ActionName["UPDATEJIRATICKETSTATUS"] = "updateJiraTicketStatus";
67
+ ActionName["GETJIRAISSUESBYQUERY"] = "getJiraIssuesByQuery";
68
+ ActionName["VALIDATEADDRESS"] = "validateAddress";
69
+ ActionName["NEARBYSEARCHRESTAURANTS"] = "nearbysearchRestaurants";
70
+ ActionName["GETTOPNSEARCHRESULTURLS"] = "getTopNSearchResultUrls";
71
+ ActionName["CREATEZENDESKTICKET"] = "createZendeskTicket";
72
+ ActionName["LISTZENDESKTICKETS"] = "listZendeskTickets";
73
+ ActionName["GETTICKETDETAILS"] = "getTicketDetails";
74
+ ActionName["UPDATETICKETSTATUS"] = "updateTicketStatus";
75
+ ActionName["ADDCOMMENTTOTICKET"] = "addCommentToTicket";
76
+ ActionName["ASSIGNTICKET"] = "assignTicket";
77
+ ActionName["SEARCHZENDESKBYQUERY"] = "searchZendeskByQuery";
78
+ ActionName["CREATESHARELINKEDINPOSTURL"] = "createShareLinkedinPostUrl";
79
+ ActionName["CREATESHAREXPOSTURL"] = "createShareXPostUrl";
80
+ ActionName["INSERTMONGODOC"] = "insertMongoDoc";
81
+ ActionName["GETROWBYFIELDVALUE"] = "getRowByFieldValue";
82
+ ActionName["RUNSNOWFLAKEQUERY"] = "runSnowflakeQuery";
83
+ ActionName["GETLATITUDELONGITUDEFROMLOCATION"] = "getLatitudeLongitudeFromLocation";
84
+ ActionName["GETFORECASTFORLOCATION"] = "getForecastForLocation";
85
+ ActionName["DEEPRESEARCH"] = "deepResearch";
86
+ ActionName["SCRAPEURL"] = "scrapeUrl";
87
+ ActionName["SEARCHANDSCRAPE"] = "searchAndScrape";
88
+ ActionName["SCRAPETWEETDATAWITHNITTER"] = "scrapeTweetDataWithNitter";
89
+ ActionName["SENDEMAIL"] = "sendEmail";
90
+ ActionName["SENDEMAILHTML"] = "sendEmailHtml";
91
+ ActionName["CREATENEWGOOGLEDOC"] = "createNewGoogleDoc";
92
+ ActionName["UPDATEDOC"] = "updateDoc";
93
+ ActionName["SCHEDULECALENDARMEETING"] = "scheduleCalendarMeeting";
94
+ ActionName["LISTCALENDARS"] = "listCalendars";
95
+ ActionName["LISTCALENDAREVENTS"] = "listCalendarEvents";
96
+ ActionName["UPDATECALENDAREVENT"] = "updateCalendarEvent";
97
+ ActionName["EDITAGOOGLECALENDAREVENT"] = "editAGoogleCalendarEvent";
98
+ ActionName["DELETECALENDAREVENT"] = "deleteCalendarEvent";
99
+ ActionName["CREATESPREADSHEET"] = "createSpreadsheet";
100
+ ActionName["UPDATESPREADSHEET"] = "updateSpreadsheet";
101
+ ActionName["APPENDROWSTOSPREADSHEET"] = "appendRowsToSpreadsheet";
102
+ ActionName["CREATEPRESENTATION"] = "createPresentation";
103
+ ActionName["UPDATEPRESENTATION"] = "updatePresentation";
104
+ ActionName["GETPRESENTATION"] = "getPresentation";
105
+ ActionName["SEARCHDRIVEBYKEYWORDS"] = "searchDriveByKeywords";
106
+ ActionName["SEARCHDRIVEBYQUERY"] = "searchDriveByQuery";
107
+ ActionName["SEARCHDRIVEBYKEYWORDSANDGETFILECONTENT"] = "searchDriveByKeywordsAndGetFileContent";
108
+ ActionName["SEARCHDRIVEBYQUERYANDGETFILECONTENT"] = "searchDriveByQueryAndGetFileContent";
109
+ ActionName["GETDRIVEFILECONTENTBYID"] = "getDriveFileContentById";
110
+ ActionName["LISTGROUPS"] = "listGroups";
111
+ ActionName["GETGROUP"] = "getGroup";
112
+ ActionName["LISTGROUPMEMBERS"] = "listGroupMembers";
113
+ ActionName["HASGROUPMEMBER"] = "hasGroupMember";
114
+ ActionName["ADDGROUPMEMBER"] = "addGroupMember";
115
+ ActionName["DELETEGROUPMEMBER"] = "deleteGroupMember";
116
+ ActionName["QUERYGOOGLEBIGQUERY"] = "queryGoogleBigQuery";
117
+ ActionName["SEARCHGMAILMESSAGES"] = "searchGmailMessages";
118
+ ActionName["LISTGMAILTHREADS"] = "listGmailThreads";
119
+ ActionName["SENDGMAIL"] = "sendGmail";
120
+ ActionName["CUSTOMSEARCH"] = "customSearch";
121
+ ActionName["GETOKTAUSERBYNAME"] = "getOktaUserByName";
122
+ ActionName["SYMBOLLOOKUP"] = "symbolLookup";
123
+ ActionName["GETBASICFINANCIALS"] = "getBasicFinancials";
124
+ ActionName["ENABLEUSERBYEMAIL"] = "enableUserByEmail";
125
+ ActionName["UPDATERECORD"] = "updateRecord";
126
+ ActionName["CREATERECORD"] = "createRecord";
127
+ ActionName["CREATECASE"] = "createCase";
128
+ ActionName["GENERATESALESREPORT"] = "generateSalesReport";
129
+ ActionName["SEARCHALLSALESFORCERECORDS"] = "searchAllSalesforceRecords";
130
+ ActionName["SEARCHSALESFORCERECORDS"] = "searchSalesforceRecords";
131
+ ActionName["GETSALESFORCERECORDSBYQUERY"] = "getSalesforceRecordsByQuery";
132
+ ActionName["GETRECORD"] = "getRecord";
133
+ ActionName["CREATEDOCUMENT"] = "createDocument";
134
+ ActionName["UPDATEDOCUMENT"] = "updateDocument";
135
+ ActionName["MESSAGETEAMSCHAT"] = "messageTeamsChat";
136
+ ActionName["MESSAGETEAMSCHANNEL"] = "messageTeamsChannel";
137
+ ActionName["GETDOCUMENT"] = "getDocument";
138
+ ActionName["CREATEORUPDATEFILE"] = "createOrUpdateFile";
139
+ ActionName["CREATEBRANCH"] = "createBranch";
140
+ ActionName["CREATEPULLREQUEST"] = "createPullRequest";
141
+ ActionName["LISTPULLREQUESTS"] = "listPullRequests";
142
+ ActionName["GETPULLREQUESTDETAILS"] = "getPullRequestDetails";
143
+ ActionName["GETFILECONTENT"] = "getFileContent";
144
+ ActionName["LISTDIRECTORY"] = "listDirectory";
145
+ ActionName["SEARCHORGANIZATION"] = "searchOrganization";
146
+ ActionName["GETBRANCH"] = "getBranch";
147
+ ActionName["LISTCOMMITS"] = "listCommits";
148
+ ActionName["SEARCHBYTITLE"] = "searchByTitle";
149
+ ActionName["SEARCHGROUP"] = "searchGroup";
150
+ ActionName["GETMERGEREQUEST"] = "getMergeRequest";
151
+ ActionName["GETISSUES"] = "getIssues";
152
+ ActionName["GETISSUEDETAILS"] = "getIssueDetails";
153
+ ActionName["GETPROJECTS"] = "getProjects";
154
+ ActionName["GETPROJECTDETAILS"] = "getProjectDetails";
155
+ ActionName["GETTEAMDETAILS"] = "getTeamDetails";
156
+ ActionName["GETTEAMS"] = "getTeams";
157
+ ActionName["GETCONTACTS"] = "getContacts";
158
+ ActionName["GETCONTACTDETAILS"] = "getContactDetails";
159
+ ActionName["GETCOMPANIES"] = "getCompanies";
160
+ ActionName["GETCOMPANYDETAILS"] = "getCompanyDetails";
161
+ ActionName["GETDEALS"] = "getDeals";
162
+ ActionName["GETDEALDETAILS"] = "getDealDetails";
163
+ ActionName["GETTICKETS"] = "getTickets";
164
+ })(ActionName || (ActionName = {}));
39
165
  export const AuthParamsSchema = z.object({
40
166
  authToken: z.string().optional(),
41
167
  baseUrl: z.string().optional(),
@@ -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
  };
@@ -178,6 +178,15 @@ function generateTypes(_a) {
178
178
  })),
179
179
  })
180
180
  .setIsExported(true);
181
+ typesFile
182
+ .addEnum({
183
+ name: "ActionName",
184
+ members: Array.from(new Set(Object.values(parsedConfig.actions).flatMap(provider => Object.keys(provider)))).map(actionName => ({
185
+ name: actionName.toUpperCase().replace(/-/g, "_"),
186
+ value: actionName,
187
+ })),
188
+ })
189
+ .setIsExported(true);
181
190
  // Add imports
182
191
  templatesFile.addImportDeclaration({
183
192
  moduleSpecifier: "../../actions/parse",
@@ -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,
@@ -1,3 +1,3 @@
1
- import { slackListConversationsFunction } from "../../autogen/types";
1
+ import type { slackListConversationsFunction } from "../../autogen/types";
2
2
  declare const slackListConversations: slackListConversationsFunction;
3
3
  export default slackListConversations;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.181",
3
+ "version": "0.2.183",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,
@@ -23,6 +23,9 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
+ "engines": {
27
+ "node": ">=24.0.0"
28
+ },
26
29
  "author": "",
27
30
  "license": "ISC",
28
31
  "devDependencies": {
@@ -31,7 +34,7 @@
31
34
  "@types/html-to-text": "^9.0.4",
32
35
  "@types/js-yaml": "^4.0.9",
33
36
  "@types/jsonwebtoken": "^9.0.9",
34
- "@types/node": "^22.10.1",
37
+ "@types/node": "^24.0.0",
35
38
  "@types/node-forge": "^1.3.11",
36
39
  "@typescript-eslint/eslint-plugin": "^8.18.0",
37
40
  "@typescript-eslint/parser": "^8.18.0",
@@ -68,7 +71,7 @@
68
71
  "mammoth": "^1.11.00",
69
72
  "mongodb": "^6.13.1",
70
73
  "node-forge": "^1.3.3",
71
- "officeparser": "^5.2.0",
74
+ "officeparser": "^5.2.2",
72
75
  "p-limit": "^7.1.1",
73
76
  "resend": "^4.7.0",
74
77
  "snowflake-sdk": "^2.0.2",
@@ -1,5 +0,0 @@
1
- import { ActionTemplate } from "@/actions/parse";
2
- export declare const slackSendMessageDefinition: ActionTemplate;
3
- export declare const slackListConversationsDefinition: ActionTemplate;
4
- export declare const mathAddDefinition: ActionTemplate;
5
- export declare const confluenceUpdatePageDefinition: ActionTemplate;
@@ -1,132 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.confluenceUpdatePageDefinition = exports.mathAddDefinition = exports.slackListConversationsDefinition = exports.slackSendMessageDefinition = void 0;
4
- exports.slackSendMessageDefinition = {
5
- provider: "slack",
6
- name: "send_message",
7
- description: "Sends a message to a Slack channel",
8
- scopes: ["chat:write"],
9
- parameters: {
10
- channel: {
11
- type: "string",
12
- description: "The Slack channel to send the message to (e.g., \\#general, \\#alerts)",
13
- required: true,
14
- },
15
- message: {
16
- type: "string",
17
- description: "The message content to send to Slack. Can include markdown formatting.",
18
- required: true,
19
- },
20
- },
21
- output: {},
22
- };
23
- exports.slackListConversationsDefinition = {
24
- provider: "slack",
25
- name: "list_conversations",
26
- description: "Lists all conversations in a Slack workspace",
27
- scopes: ["channels:read", "groups:read", "im:read", "mpim:read"],
28
- authToken: {
29
- type: "string",
30
- description: "The Slack access token to use",
31
- required: true,
32
- },
33
- parameters: {},
34
- output: {
35
- channels: {
36
- type: "array",
37
- description: "A list of channels in Slack",
38
- required: true,
39
- items: {
40
- type: "object",
41
- description: "A channel in Slack",
42
- required: true,
43
- properties: {
44
- id: {
45
- type: "string",
46
- description: "The ID of the channel",
47
- required: true,
48
- },
49
- name: {
50
- type: "string",
51
- description: "The name of the channel",
52
- required: true,
53
- },
54
- topic: {
55
- type: "string",
56
- description: "The topic of the channel",
57
- required: true,
58
- },
59
- purpose: {
60
- type: "string",
61
- description: "The purpose of the channel",
62
- required: true,
63
- },
64
- },
65
- },
66
- },
67
- },
68
- };
69
- exports.mathAddDefinition = {
70
- provider: "math",
71
- name: "add",
72
- description: "Adds two numbers together",
73
- scopes: [],
74
- parameters: {
75
- a: {
76
- type: "number",
77
- description: "The first number to add",
78
- required: true,
79
- },
80
- b: {
81
- type: "number",
82
- description: "The second number to add",
83
- required: true,
84
- },
85
- },
86
- output: {
87
- result: {
88
- type: "number",
89
- description: "The sum of the two numbers",
90
- required: true,
91
- },
92
- },
93
- };
94
- exports.confluenceUpdatePageDefinition = {
95
- provider: "confluence",
96
- name: "updatePage",
97
- description: "Updates a confluence page with the new content specified",
98
- scopes: [],
99
- authToken: {
100
- type: "string",
101
- description: "The access token to use for confluence",
102
- required: true,
103
- },
104
- baseUrl: {
105
- type: "string",
106
- description: "The base url required to access the confluence instance",
107
- required: true,
108
- },
109
- parameters: {
110
- pageId: {
111
- type: "string",
112
- description: "The page id that should be updated",
113
- required: true,
114
- },
115
- title: {
116
- type: "string",
117
- description: "The title of the page that should be updated",
118
- required: true,
119
- },
120
- username: {
121
- type: "string",
122
- description: "The username of the person updating the page",
123
- required: true,
124
- },
125
- content: {
126
- type: "string",
127
- description: "The new content for the page",
128
- required: true,
129
- },
130
- },
131
- output: {},
132
- };
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mathAddDefinition = exports.slackSendMessageDefinition = void 0;
4
- exports.slackSendMessageDefinition = {
5
- name: "send_message",
6
- description: "Sends a message to a Slack channel",
7
- parameters: {
8
- "channel": {
9
- "type": "string",
10
- "description": "The Slack channel to send the message to (e.g., \\#general, \\#alerts)",
11
- "required": true
12
- },
13
- "message": {
14
- "type": "string",
15
- "description": "The message content to send to Slack. Can include markdown formatting.",
16
- "required": true
17
- }
18
- }
19
- };
20
- exports.mathAddDefinition = {
21
- name: "add",
22
- description: "Adds two numbers together",
23
- parameters: {
24
- "a": {
25
- "type": "number",
26
- "description": "The first number to add",
27
- "required": true
28
- },
29
- "b": {
30
- "type": "number",
31
- "description": "The second number to add",
32
- "required": true
33
- }
34
- }
35
- };
@@ -1,9 +0,0 @@
1
- import { type ActionFunction } from "./autogen/types";
2
- import { z } from "zod";
3
- interface ActionFunctionComponents {
4
- fn: ActionFunction<any, any, any>;
5
- paramsSchema: z.ZodSchema;
6
- outputSchema: z.ZodSchema;
7
- }
8
- export declare const FunctionMapper: Record<string, Record<string, ActionFunctionComponents>>;
9
- export {};
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.FunctionMapper = void 0;
7
- const add_1 = __importDefault(require("./providers/math/add"));
8
- const list_conversations_1 = __importDefault(require("./providers/slack/list_conversations"));
9
- const updatePage_1 = __importDefault(require("./providers/confluence/updatePage"));
10
- const types_1 = require("./autogen/types");
11
- exports.FunctionMapper = {
12
- math: {
13
- add: {
14
- fn: add_1.default,
15
- paramsSchema: types_1.mathAddParamsSchema,
16
- outputSchema: types_1.mathAddOutputSchema,
17
- },
18
- },
19
- slack: {
20
- listConversations: {
21
- fn: list_conversations_1.default,
22
- paramsSchema: types_1.slackListConversationsParamsSchema,
23
- outputSchema: types_1.slackListConversationsOutputSchema,
24
- },
25
- },
26
- confluence: {
27
- updatePage: {
28
- fn: updatePage_1.default,
29
- paramsSchema: types_1.confluenceUpdatePageParamsSchema,
30
- outputSchema: types_1.confluenceUpdatePageOutputSchema,
31
- },
32
- },
33
- };
@@ -1,3 +0,0 @@
1
- import { confluenceUpdatePageFunction } from "../../../actions/autogen/types";
2
- declare const confluenceUpdatePage: confluenceUpdatePageFunction;
3
- export default confluenceUpdatePage;