@credal/actions 0.1.40 → 0.1.41

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 (76) hide show
  1. package/README.md +2 -1
  2. package/dist/actions/actionMapper.d.ts +1 -1
  3. package/dist/actions/groups.d.ts +1 -1
  4. package/dist/actions/providers/asana/commentAsanaTask.d.ts +1 -1
  5. package/dist/actions/providers/asana/createAsanaTask.d.ts +1 -1
  6. package/dist/actions/providers/asana/updateAsanaTask.d.ts +1 -1
  7. package/dist/actions/providers/ashby/addCandidateToProject.d.ts +1 -1
  8. package/dist/actions/providers/ashby/createCandidate.d.ts +1 -1
  9. package/dist/actions/providers/ashby/createNote.d.ts +1 -1
  10. package/dist/actions/providers/ashby/getCandidateInfo.d.ts +1 -1
  11. package/dist/actions/providers/ashby/listCandidateNotes.d.ts +1 -1
  12. package/dist/actions/providers/ashby/listCandidates.d.ts +1 -1
  13. package/dist/actions/providers/ashby/searchCandidates.d.ts +1 -1
  14. package/dist/actions/providers/ashby/updateCandidate.d.ts +1 -1
  15. package/dist/actions/providers/confluence/fetchPageContent.d.ts +1 -1
  16. package/dist/actions/providers/confluence/overwritePage.d.ts +1 -1
  17. package/dist/actions/providers/credal/callCopilot.d.ts +1 -1
  18. package/dist/actions/providers/finnhub/getBasicFinancials.d.ts +1 -1
  19. package/dist/actions/providers/finnhub/symbolLookup.d.ts +1 -1
  20. package/dist/actions/providers/firecrawl/scrapeTweetDataWithNitter.d.ts +1 -1
  21. package/dist/actions/providers/firecrawl/scrapeUrl.d.ts +1 -1
  22. package/dist/actions/providers/github/createBranch.d.ts +1 -1
  23. package/dist/actions/providers/github/createOrUpdateFile.d.ts +1 -1
  24. package/dist/actions/providers/github/createPullRequest.d.ts +1 -1
  25. package/dist/actions/providers/google-oauth/createNewGoogleDoc.d.ts +1 -1
  26. package/dist/actions/providers/google-oauth/createPresentation.d.ts +1 -1
  27. package/dist/actions/providers/google-oauth/createSpreadsheet.d.ts +1 -1
  28. package/dist/actions/providers/google-oauth/scheduleCalendarMeeting.d.ts +1 -1
  29. package/dist/actions/providers/google-oauth/updateDoc.d.ts +1 -1
  30. package/dist/actions/providers/google-oauth/updatePresentation.d.ts +1 -1
  31. package/dist/actions/providers/google-oauth/updateSpreadsheet.d.ts +1 -1
  32. package/dist/actions/providers/googlemaps/nearbysearchRestaurants.d.ts +1 -1
  33. package/dist/actions/providers/googlemaps/validateAddress.d.ts +1 -1
  34. package/dist/actions/providers/jira/assignJiraTicket.d.ts +1 -1
  35. package/dist/actions/providers/jira/commentJiraTicket.d.ts +1 -1
  36. package/dist/actions/providers/jira/createJiraTicket.d.ts +1 -1
  37. package/dist/actions/providers/jira/getJiraTicketDetails.d.ts +1 -1
  38. package/dist/actions/providers/jira/getJiraTicketHistory.d.ts +1 -1
  39. package/dist/actions/providers/jira/updateJiraTicketDetails.d.ts +1 -1
  40. package/dist/actions/providers/jira/updateJiraTicketStatus.d.ts +1 -1
  41. package/dist/actions/providers/linkedin/createSharePostLinkedinUrl.d.ts +1 -1
  42. package/dist/actions/providers/looker/enableUserByEmail.d.ts +1 -1
  43. package/dist/actions/providers/math/add.d.ts +1 -1
  44. package/dist/actions/providers/microsoft/createDocument.d.ts +1 -1
  45. package/dist/actions/providers/microsoft/getDocument.d.ts +1 -1
  46. package/dist/actions/providers/microsoft/messageTeamsChannel.d.ts +1 -1
  47. package/dist/actions/providers/microsoft/messageTeamsChat.d.ts +1 -1
  48. package/dist/actions/providers/microsoft/updateDocument.d.ts +1 -1
  49. package/dist/actions/providers/microsoft/updateSpreadsheet.d.ts +1 -1
  50. package/dist/actions/providers/microsoft/utils.d.ts +1 -1
  51. package/dist/actions/providers/mongodb/insertMongoDoc.d.ts +1 -1
  52. package/dist/actions/providers/nws/getForecastForLocation.d.ts +1 -1
  53. package/dist/actions/providers/openstreetmap/getLatitudeLongitudeFromLocation.d.ts +1 -1
  54. package/dist/actions/providers/resend/sendEmail.d.ts +1 -1
  55. package/dist/actions/providers/salesforce/createCase.d.ts +1 -1
  56. package/dist/actions/providers/salesforce/generateSalesReport.d.ts +1 -1
  57. package/dist/actions/providers/salesforce/getRecord.d.ts +1 -1
  58. package/dist/actions/providers/salesforce/getSalesforceRecordsByQuery.d.ts +1 -1
  59. package/dist/actions/providers/salesforce/getSalesforceRecordsByQuery.js +1 -1
  60. package/dist/actions/providers/salesforce/updateRecord.d.ts +1 -1
  61. package/dist/actions/providers/slack/getChannelMessages.d.ts +1 -1
  62. package/dist/actions/providers/slack/helpers.d.ts +2 -2
  63. package/dist/actions/providers/slack/listConversations.d.ts +1 -1
  64. package/dist/actions/providers/slack/sendMessage.d.ts +1 -1
  65. package/dist/actions/providers/snowflake/getRowByFieldValue.d.ts +1 -1
  66. package/dist/actions/providers/snowflake/runSnowflakeQuery.d.ts +1 -1
  67. package/dist/actions/providers/x/createXSharePostUrl.d.ts +1 -1
  68. package/dist/actions/providers/zendesk/addCommentToTicket.d.ts +1 -1
  69. package/dist/actions/providers/zendesk/assignTicket.d.ts +1 -1
  70. package/dist/actions/providers/zendesk/createZendeskTicket.d.ts +1 -1
  71. package/dist/actions/providers/zendesk/getTicketDetails.d.ts +1 -1
  72. package/dist/actions/providers/zendesk/updateTicketStatus.d.ts +1 -1
  73. package/dist/actions/util/axiosClient.d.ts +1 -1
  74. package/dist/actions/util/axiosClient.js +0 -1
  75. package/dist/app.d.ts +2 -2
  76. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  ![Credal Logo](assets/credal-logo.svg)
2
2
 
3
3
  ## Credal.ai's Open Source Actions Framework
4
+
4
5
  Easily add custom actions for your Credal Copilots. Read more about Credal's Agent platform [here](https://www.credal.ai/products/ai-agent-platform).
5
6
 
6
7
  ## Adding or updating actions
@@ -24,7 +25,7 @@ const result = await runAction(
24
25
  "listConversations",
25
26
  "slack",
26
27
  { authToken: "xoxb-..." },
27
- {}
28
+ {},
28
29
  );
29
30
  ```
30
31
 
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import type { z } from "zod";
2
2
  import { type ActionFunction } from "./autogen/types";
3
3
  interface ActionFunctionComponents {
4
4
  fn: ActionFunction<any, any, any>;
@@ -1,4 +1,4 @@
1
- import { ActionTemplate } from "../actions/parse";
1
+ import type { ActionTemplate } from "../actions/parse";
2
2
  export type ActionGroups = Record<string, {
3
3
  description: string;
4
4
  actions: ActionTemplate[];
@@ -1,3 +1,3 @@
1
- import { asanaCommentTaskFunction } from "../../autogen/types";
1
+ import type { asanaCommentTaskFunction } from "../../autogen/types";
2
2
  declare const commentAsanaTask: asanaCommentTaskFunction;
3
3
  export default commentAsanaTask;
@@ -1,3 +1,3 @@
1
- import { asanaCreateTaskFunction } from "../../autogen/types";
1
+ import type { asanaCreateTaskFunction } from "../../autogen/types";
2
2
  declare const createAsanaTask: asanaCreateTaskFunction;
3
3
  export default createAsanaTask;
@@ -1,3 +1,3 @@
1
- import { asanaUpdateTaskFunction } from "../../autogen/types";
1
+ import type { asanaUpdateTaskFunction } from "../../autogen/types";
2
2
  declare const updateAsanaTask: asanaUpdateTaskFunction;
3
3
  export default updateAsanaTask;
@@ -1,3 +1,3 @@
1
- import { ashbyAddCandidateToProjectFunction } from "../../autogen/types";
1
+ import type { ashbyAddCandidateToProjectFunction } from "../../autogen/types";
2
2
  declare const addCandidateToProject: ashbyAddCandidateToProjectFunction;
3
3
  export default addCandidateToProject;
@@ -1,3 +1,3 @@
1
- import { ashbyCreateCandidateFunction } from "../../autogen/types";
1
+ import type { ashbyCreateCandidateFunction } from "../../autogen/types";
2
2
  declare const createCandidate: ashbyCreateCandidateFunction;
3
3
  export default createCandidate;
@@ -1,3 +1,3 @@
1
- import { ashbyCreateNoteFunction } from "../../autogen/types";
1
+ import type { ashbyCreateNoteFunction } from "../../autogen/types";
2
2
  declare const createNote: ashbyCreateNoteFunction;
3
3
  export default createNote;
@@ -1,3 +1,3 @@
1
- import { ashbyGetCandidateInfoFunction } from "../../autogen/types";
1
+ import type { ashbyGetCandidateInfoFunction } from "../../autogen/types";
2
2
  declare const getCandidateInfo: ashbyGetCandidateInfoFunction;
3
3
  export default getCandidateInfo;
@@ -1,3 +1,3 @@
1
- import { ashbyListCandidateNotesFunction } from "../../autogen/types";
1
+ import type { ashbyListCandidateNotesFunction } from "../../autogen/types";
2
2
  declare const listCandidateNotes: ashbyListCandidateNotesFunction;
3
3
  export default listCandidateNotes;
@@ -1,3 +1,3 @@
1
- import { ashbyListCandidatesFunction } from "../../autogen/types";
1
+ import type { ashbyListCandidatesFunction } from "../../autogen/types";
2
2
  declare const listCandidates: ashbyListCandidatesFunction;
3
3
  export default listCandidates;
@@ -1,3 +1,3 @@
1
- import { ashbySearchCandidatesFunction } from "../../autogen/types";
1
+ import type { ashbySearchCandidatesFunction } from "../../autogen/types";
2
2
  declare const searchCandidates: ashbySearchCandidatesFunction;
3
3
  export default searchCandidates;
@@ -1,3 +1,3 @@
1
- import { ashbyUpdateCandidateFunction } from "../../autogen/types";
1
+ import type { ashbyUpdateCandidateFunction } from "../../autogen/types";
2
2
  declare const updateCandidate: ashbyUpdateCandidateFunction;
3
3
  export default updateCandidate;
@@ -1,3 +1,3 @@
1
- import { confluenceFetchPageContentFunction } from "../../autogen/types";
1
+ import type { confluenceFetchPageContentFunction } from "../../autogen/types";
2
2
  declare const confluenceFetchPageContent: confluenceFetchPageContentFunction;
3
3
  export default confluenceFetchPageContent;
@@ -1,3 +1,3 @@
1
- import { confluenceOverwritePageFunction } from "../../autogen/types";
1
+ import type { confluenceOverwritePageFunction } from "../../autogen/types";
2
2
  declare const confluenceOverwritePage: confluenceOverwritePageFunction;
3
3
  export default confluenceOverwritePage;
@@ -1,3 +1,3 @@
1
- import { credalCallCopilotFunction } from "../../autogen/types";
1
+ import type { credalCallCopilotFunction } from "../../autogen/types";
2
2
  declare const callCopilot: credalCallCopilotFunction;
3
3
  export default callCopilot;
@@ -1,3 +1,3 @@
1
- import { finnhubGetBasicFinancialsFunction } from "../../autogen/types";
1
+ import type { finnhubGetBasicFinancialsFunction } from "../../autogen/types";
2
2
  declare const getBasicFinancials: finnhubGetBasicFinancialsFunction;
3
3
  export default getBasicFinancials;
@@ -1,3 +1,3 @@
1
- import { finnhubSymbolLookupFunction } from "../../autogen/types";
1
+ import type { finnhubSymbolLookupFunction } from "../../autogen/types";
2
2
  declare const symbolLookup: finnhubSymbolLookupFunction;
3
3
  export default symbolLookup;
@@ -1,3 +1,3 @@
1
- import { firecrawlScrapeTweetDataWithNitterFunction } from "../../autogen/types";
1
+ import type { firecrawlScrapeTweetDataWithNitterFunction } from "../../autogen/types";
2
2
  declare const scrapeTweetDataWithNitter: firecrawlScrapeTweetDataWithNitterFunction;
3
3
  export default scrapeTweetDataWithNitter;
@@ -1,3 +1,3 @@
1
- import { firecrawlScrapeUrlFunction } from "../../autogen/types";
1
+ import type { firecrawlScrapeUrlFunction } from "../../autogen/types";
2
2
  declare const scrapeUrl: firecrawlScrapeUrlFunction;
3
3
  export default scrapeUrl;
@@ -1,4 +1,4 @@
1
- import { githubCreateBranchFunction } from "../../autogen/types";
1
+ import type { githubCreateBranchFunction } from "../../autogen/types";
2
2
  /**
3
3
  * Creates a new branch in a GitHub repository
4
4
  */
@@ -1,4 +1,4 @@
1
- import { githubCreateOrUpdateFileFunction } from "../../autogen/types";
1
+ import type { githubCreateOrUpdateFileFunction } from "../../autogen/types";
2
2
  /**
3
3
  * Creates or updates a file in a GitHub repository
4
4
  */
@@ -1,4 +1,4 @@
1
- import { githubCreatePullRequestFunction } from "../../autogen/types";
1
+ import type { githubCreatePullRequestFunction } from "../../autogen/types";
2
2
  /**
3
3
  * Creates a pull request in a GitHub repository
4
4
  */
@@ -1,4 +1,4 @@
1
- import { googleOauthCreateNewGoogleDocFunction } from "../../autogen/types";
1
+ import type { googleOauthCreateNewGoogleDocFunction } from "../../autogen/types";
2
2
  /**
3
3
  * Creates a new Google Doc document using OAuth authentication
4
4
  */
@@ -1,4 +1,4 @@
1
- import { googleOauthCreatePresentationFunction } from "../../autogen/types";
1
+ import type { googleOauthCreatePresentationFunction } from "../../autogen/types";
2
2
  /**
3
3
  * Creates a new Google Slides presentation using OAuth authentication
4
4
  */
@@ -1,4 +1,4 @@
1
- import { googleOauthCreateSpreadsheetFunction } from "../../autogen/types";
1
+ import type { googleOauthCreateSpreadsheetFunction } from "../../autogen/types";
2
2
  /**
3
3
  * Creates a new Google Spreadsheet using OAuth authentication
4
4
  */
@@ -1,4 +1,4 @@
1
- import { googleOauthScheduleCalendarMeetingFunction } from "../../autogen/types";
1
+ import type { googleOauthScheduleCalendarMeetingFunction } from "../../autogen/types";
2
2
  /**
3
3
  * Creates a new Google calendar event using OAuth authentication
4
4
  */
@@ -1,4 +1,4 @@
1
- import { googleOauthUpdateDocFunction } from "../../autogen/types";
1
+ import type { googleOauthUpdateDocFunction } from "../../autogen/types";
2
2
  /**
3
3
  * Updates an existing Google Docs document using OAuth authentication with batch requests
4
4
  * https://developers.google.com/workspace/docs/api/reference/rest/v1/documents/batchUpdate
@@ -1,4 +1,4 @@
1
- import { googleOauthUpdatePresentationFunction } from "../../autogen/types";
1
+ import type { googleOauthUpdatePresentationFunction } from "../../autogen/types";
2
2
  /**
3
3
  * Updates an existing Google Slides presentation using OAuth authentication with batch requests
4
4
  * https://developers.google.com/slides/api/reference/rest/v1/presentations/batchUpdate
@@ -1,4 +1,4 @@
1
- import { googleOauthUpdateSpreadsheetFunction } from "../../autogen/types";
1
+ import type { googleOauthUpdateSpreadsheetFunction } from "../../autogen/types";
2
2
  /**
3
3
  * Update a Google Spreadsheet using OAuth authentication
4
4
  * https://developers.google.com/workspace/sheets/api/reference/rest/v4/spreadsheets/batchUpdate
@@ -1,3 +1,3 @@
1
- import { googlemapsNearbysearchRestaurantsFunction } from "../../autogen/types";
1
+ import type { googlemapsNearbysearchRestaurantsFunction } from "../../autogen/types";
2
2
  declare const nearbysearchRestaurants: googlemapsNearbysearchRestaurantsFunction;
3
3
  export default nearbysearchRestaurants;
@@ -1,3 +1,3 @@
1
- import { googlemapsValidateAddressFunction } from "../../autogen/types";
1
+ import type { googlemapsValidateAddressFunction } from "../../autogen/types";
2
2
  declare const validateAddress: googlemapsValidateAddressFunction;
3
3
  export default validateAddress;
@@ -1,3 +1,3 @@
1
- import { jiraAssignJiraTicketFunction } from "../../autogen/types";
1
+ import type { jiraAssignJiraTicketFunction } from "../../autogen/types";
2
2
  declare const assignJiraTicket: jiraAssignJiraTicketFunction;
3
3
  export default assignJiraTicket;
@@ -1,3 +1,3 @@
1
- import { jiraCommentJiraTicketFunction } from "../../autogen/types";
1
+ import type { jiraCommentJiraTicketFunction } from "../../autogen/types";
2
2
  declare const commentJiraTicket: jiraCommentJiraTicketFunction;
3
3
  export default commentJiraTicket;
@@ -1,3 +1,3 @@
1
- import { jiraCreateJiraTicketFunction } from "../../autogen/types";
1
+ import type { jiraCreateJiraTicketFunction } from "../../autogen/types";
2
2
  declare const createJiraTicket: jiraCreateJiraTicketFunction;
3
3
  export default createJiraTicket;
@@ -1,3 +1,3 @@
1
- import { jiraGetJiraTicketDetailsFunction } from "../../autogen/types";
1
+ import type { jiraGetJiraTicketDetailsFunction } from "../../autogen/types";
2
2
  declare const getJiraTicketDetails: jiraGetJiraTicketDetailsFunction;
3
3
  export default getJiraTicketDetails;
@@ -1,3 +1,3 @@
1
- import { jiraGetJiraTicketHistoryFunction } from "../../autogen/types";
1
+ import type { jiraGetJiraTicketHistoryFunction } from "../../autogen/types";
2
2
  declare const getJiraTicketHistory: jiraGetJiraTicketHistoryFunction;
3
3
  export default getJiraTicketHistory;
@@ -1,3 +1,3 @@
1
- import { jiraUpdateJiraTicketDetailsFunction } from "../../autogen/types";
1
+ import type { jiraUpdateJiraTicketDetailsFunction } from "../../autogen/types";
2
2
  declare const updateJiraTicketDetails: jiraUpdateJiraTicketDetailsFunction;
3
3
  export default updateJiraTicketDetails;
@@ -1,3 +1,3 @@
1
- import { jiraUpdateJiraTicketStatusFunction } from "../../autogen/types";
1
+ import type { jiraUpdateJiraTicketStatusFunction } from "../../autogen/types";
2
2
  declare const updateJiraTicketStatus: jiraUpdateJiraTicketStatusFunction;
3
3
  export default updateJiraTicketStatus;
@@ -1,3 +1,3 @@
1
- import { linkedinCreateShareLinkedinPostUrlFunction } from "../../autogen/types";
1
+ import type { linkedinCreateShareLinkedinPostUrlFunction } from "../../autogen/types";
2
2
  declare const createShareLinkedinPostUrl: linkedinCreateShareLinkedinPostUrlFunction;
3
3
  export default createShareLinkedinPostUrl;
@@ -1,3 +1,3 @@
1
- import { lookerEnableUserByEmailFunction } from "../../autogen/types";
1
+ import type { lookerEnableUserByEmailFunction } from "../../autogen/types";
2
2
  declare const enableUserByEmail: lookerEnableUserByEmailFunction;
3
3
  export default enableUserByEmail;
@@ -1,3 +1,3 @@
1
- import { mathAddFunction } from "../../../actions/autogen/types";
1
+ import type { mathAddFunction } from "../../../actions/autogen/types";
2
2
  declare const mathAdd: mathAddFunction;
3
3
  export default mathAdd;
@@ -1,3 +1,3 @@
1
- import { microsoftCreateDocumentFunction } from "../../autogen/types";
1
+ import type { microsoftCreateDocumentFunction } from "../../autogen/types";
2
2
  declare const createDocument: microsoftCreateDocumentFunction;
3
3
  export default createDocument;
@@ -1,3 +1,3 @@
1
- import { microsoftGetDocumentFunction } from "../../autogen/types";
1
+ import type { microsoftGetDocumentFunction } from "../../autogen/types";
2
2
  declare const getDocument: microsoftGetDocumentFunction;
3
3
  export default getDocument;
@@ -1,3 +1,3 @@
1
- import { microsoftMessageTeamsChannelFunction } from "../../autogen/types";
1
+ import type { microsoftMessageTeamsChannelFunction } from "../../autogen/types";
2
2
  declare const sendMessageToTeamsChannel: microsoftMessageTeamsChannelFunction;
3
3
  export default sendMessageToTeamsChannel;
@@ -1,3 +1,3 @@
1
- import { microsoftMessageTeamsChatFunction } from "../../autogen/types";
1
+ import type { microsoftMessageTeamsChatFunction } from "../../autogen/types";
2
2
  declare const sendMessageToTeamsChat: microsoftMessageTeamsChatFunction;
3
3
  export default sendMessageToTeamsChat;
@@ -1,3 +1,3 @@
1
- import { microsoftUpdateDocumentFunction } from "../../autogen/types";
1
+ import type { microsoftUpdateDocumentFunction } from "../../autogen/types";
2
2
  declare const updateDocument: microsoftUpdateDocumentFunction;
3
3
  export default updateDocument;
@@ -1,3 +1,3 @@
1
- import { microsoftUpdateSpreadsheetFunction } from "../../autogen/types";
1
+ import type { microsoftUpdateSpreadsheetFunction } from "../../autogen/types";
2
2
  declare const updateSpreadsheet: microsoftUpdateSpreadsheetFunction;
3
3
  export default updateSpreadsheet;
@@ -1,5 +1,5 @@
1
1
  import { Client } from "@microsoft/microsoft-graph-client";
2
- import { AuthParamsType } from "../../autogen/types";
2
+ import type { AuthParamsType } from "../../autogen/types";
3
3
  export declare function getGraphClient(authParams: AuthParamsType, scope: string): Promise<Client>;
4
4
  /**
5
5
  * Validates and sanitizes a filename for SharePoint or OneDrive.
@@ -1,3 +1,3 @@
1
- import { mongoInsertMongoDocFunction } from "../../autogen/types";
1
+ import type { mongoInsertMongoDocFunction } from "../../autogen/types";
2
2
  declare const insertMongoDoc: mongoInsertMongoDocFunction;
3
3
  export default insertMongoDoc;
@@ -1,3 +1,3 @@
1
- import { nwsGetForecastForLocationFunction } from "../../autogen/types";
1
+ import type { nwsGetForecastForLocationFunction } from "../../autogen/types";
2
2
  declare const getForecastForLocation: nwsGetForecastForLocationFunction;
3
3
  export default getForecastForLocation;
@@ -1,3 +1,3 @@
1
- import { openstreetmapGetLatitudeLongitudeFromLocationFunction } from "../../autogen/types";
1
+ import type { openstreetmapGetLatitudeLongitudeFromLocationFunction } from "../../autogen/types";
2
2
  declare const getLatitudeLongitudeFromLocation: openstreetmapGetLatitudeLongitudeFromLocationFunction;
3
3
  export default getLatitudeLongitudeFromLocation;
@@ -1,3 +1,3 @@
1
- import { resendSendEmailFunction } from "../../autogen/types";
1
+ import type { resendSendEmailFunction } from "../../autogen/types";
2
2
  declare const sendEmail: resendSendEmailFunction;
3
3
  export default sendEmail;
@@ -1,3 +1,3 @@
1
- import { salesforceCreateCaseFunction } from "../../autogen/types";
1
+ import type { salesforceCreateCaseFunction } from "../../autogen/types";
2
2
  declare const createCase: salesforceCreateCaseFunction;
3
3
  export default createCase;
@@ -1,3 +1,3 @@
1
- import { salesforceGenerateSalesReportFunction } from "../../autogen/types";
1
+ import type { salesforceGenerateSalesReportFunction } from "../../autogen/types";
2
2
  declare const generateSalesReport: salesforceGenerateSalesReportFunction;
3
3
  export default generateSalesReport;
@@ -1,3 +1,3 @@
1
- import { salesforceGetRecordFunction } from "../../autogen/types";
1
+ import type { salesforceGetRecordFunction } from "../../autogen/types";
2
2
  declare const getRecord: salesforceGetRecordFunction;
3
3
  export default getRecord;
@@ -1,3 +1,3 @@
1
- import { salesforceGetSalesforceRecordsByQueryFunction } from "../../autogen/types";
1
+ import type { salesforceGetSalesforceRecordsByQueryFunction } from "../../autogen/types";
2
2
  declare const getSalesforceRecordsByQuery: salesforceGetSalesforceRecordsByQueryFunction;
3
3
  export default getSalesforceRecordsByQuery;
@@ -20,7 +20,7 @@ const getSalesforceRecordsByQuery = (_a) => __awaiter(void 0, [_a], void 0, func
20
20
  };
21
21
  }
22
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))}`;
23
+ const url = `${baseUrl}/services/data/v56.0/queryAll?q=${encodeURIComponent(query + " LIMIT " + (limit != undefined && limit <= 2000 ? limit : 2000))}`;
24
24
  try {
25
25
  const response = yield axiosClient_1.axiosClient.get(url, {
26
26
  headers: {
@@ -1,3 +1,3 @@
1
- import { salesforceUpdateRecordFunction } from "../../autogen/types";
1
+ import type { salesforceUpdateRecordFunction } from "../../autogen/types";
2
2
  declare const updateRecord: salesforceUpdateRecordFunction;
3
3
  export default updateRecord;
@@ -1,3 +1,3 @@
1
- import { slackGetChannelMessagesFunction } from "../../autogen/types";
1
+ import type { slackGetChannelMessagesFunction } from "../../autogen/types";
2
2
  declare const getChannelMessages: slackGetChannelMessagesFunction;
3
3
  export default getChannelMessages;
@@ -1,5 +1,5 @@
1
- import { WebClient } from "@slack/web-api";
2
- import { Channel } from "@slack/web-api/dist/types/response/ConversationsListResponse";
1
+ import type { WebClient } from "@slack/web-api";
2
+ import type { Channel } from "@slack/web-api/dist/types/response/ConversationsListResponse";
3
3
  export type ChannelWithId = Channel & {
4
4
  id: string;
5
5
  };
@@ -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;
@@ -1,3 +1,3 @@
1
- import { slackSendMessageFunction } from "../../autogen/types";
1
+ import type { slackSendMessageFunction } from "../../autogen/types";
2
2
  declare const sendMessage: slackSendMessageFunction;
3
3
  export default sendMessage;
@@ -1,3 +1,3 @@
1
- import { snowflakeGetRowByFieldValueFunction } from "../../autogen/types";
1
+ import type { snowflakeGetRowByFieldValueFunction } from "../../autogen/types";
2
2
  declare const getRowByFieldValue: snowflakeGetRowByFieldValueFunction;
3
3
  export default getRowByFieldValue;
@@ -1,3 +1,3 @@
1
- import { snowflakeRunSnowflakeQueryFunction } from "../../autogen/types";
1
+ import type { snowflakeRunSnowflakeQueryFunction } from "../../autogen/types";
2
2
  declare const runSnowflakeQuery: snowflakeRunSnowflakeQueryFunction;
3
3
  export default runSnowflakeQuery;
@@ -1,3 +1,3 @@
1
- import { xCreateShareXPostUrlFunction } from "../../autogen/types";
1
+ import type { xCreateShareXPostUrlFunction } from "../../autogen/types";
2
2
  declare const createXSharePostUrl: xCreateShareXPostUrlFunction;
3
3
  export default createXSharePostUrl;
@@ -1,3 +1,3 @@
1
- import { zendeskAddCommentToTicketFunction } from "../../autogen/types";
1
+ import type { zendeskAddCommentToTicketFunction } from "../../autogen/types";
2
2
  declare const addCommentToTicket: zendeskAddCommentToTicketFunction;
3
3
  export default addCommentToTicket;
@@ -1,3 +1,3 @@
1
- import { zendeskAssignTicketFunction } from "../../autogen/types";
1
+ import type { zendeskAssignTicketFunction } from "../../autogen/types";
2
2
  declare const updateTicketStatus: zendeskAssignTicketFunction;
3
3
  export default updateTicketStatus;
@@ -1,3 +1,3 @@
1
- import { zendeskCreateZendeskTicketFunction } from "../../autogen/types";
1
+ import type { zendeskCreateZendeskTicketFunction } from "../../autogen/types";
2
2
  declare const createZendeskTicket: zendeskCreateZendeskTicketFunction;
3
3
  export default createZendeskTicket;
@@ -1,3 +1,3 @@
1
- import { zendeskGetTicketDetailsFunction } from "../../autogen/types";
1
+ import type { zendeskGetTicketDetailsFunction } from "../../autogen/types";
2
2
  declare const getZendeskTicketDetails: zendeskGetTicketDetailsFunction;
3
3
  export default getZendeskTicketDetails;
@@ -1,3 +1,3 @@
1
- import { zendeskUpdateTicketStatusFunction } from "../../autogen/types";
1
+ import type { zendeskUpdateTicketStatusFunction } from "../../autogen/types";
2
2
  declare const updateTicketStatus: zendeskUpdateTicketStatusFunction;
3
3
  export default updateTicketStatus;
@@ -1,4 +1,4 @@
1
- import { AxiosInstance } from "axios";
1
+ import type { AxiosInstance } from "axios";
2
2
  export declare class ApiError extends Error {
3
3
  status?: number;
4
4
  data?: any;
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.axiosClient = exports.ApiError = void 0;
7
- /* eslint-disable @typescript-eslint/no-explicit-any */
8
7
  const axios_1 = __importDefault(require("axios"));
9
8
  class ApiError extends Error {
10
9
  constructor(message, status, data) {
package/dist/app.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ActionTemplate } from "./actions/parse";
2
- import { AuthParamsType } from "./actions/autogen/types";
1
+ import type { ActionTemplate } from "./actions/parse";
2
+ import type { AuthParamsType } from "./actions/autogen/types";
3
3
  export declare function runAction(name: string, provider: string, authentication: AuthParamsType, parameters: Record<string, any>): Promise<any>;
4
4
  export type ActionGroupsReturn = {
5
5
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "AI Actions by Credal AI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",