@credal/actions 0.2.12 → 0.2.14

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 { ActionTemplate } from "../parse.js";
1
+ import { ActionTemplate } from "../../actions/parse";
2
2
  export declare const genericFillTemplateDefinition: ActionTemplate;
3
3
  export declare const asanaCommentTaskDefinition: ActionTemplate;
4
4
  export declare const asanaListAsanaTasksByProjectDefinition: ActionTemplate;
@@ -1,4 +1,36 @@
1
1
  import { z } from "zod";
2
+ export declare enum ProviderName {
3
+ GENERIC = "generic",
4
+ ASANA = "asana",
5
+ SLACK = "slack",
6
+ MATH = "math",
7
+ CONFLUENCE = "confluence",
8
+ JIRA = "jira",
9
+ KANDJI = "kandji",
10
+ GOOGLEMAPS = "googlemaps",
11
+ BING = "bing",
12
+ ZENDESK = "zendesk",
13
+ LINKEDIN = "linkedin",
14
+ X = "x",
15
+ MONGO = "mongo",
16
+ SNOWFLAKE = "snowflake",
17
+ OPENSTREETMAP = "openstreetmap",
18
+ NWS = "nws",
19
+ FIRECRAWL = "firecrawl",
20
+ RESEND = "resend",
21
+ GOOGLEOAUTH = "googleOauth",
22
+ GOOGLEMAIL = "googlemail",
23
+ OKTA = "okta",
24
+ GONG = "gong",
25
+ FINNHUB = "finnhub",
26
+ LOOKER = "looker",
27
+ ASHBY = "ashby",
28
+ SALESFORCE = "salesforce",
29
+ MICROSOFT = "microsoft",
30
+ GITHUB = "github",
31
+ NOTION = "notion",
32
+ JAMF = "jamf"
33
+ }
2
34
  export type ActionFunction<P, A, O> = (input: {
3
35
  params: P;
4
36
  authParams: A;
@@ -1,4 +1,37 @@
1
1
  import { z } from "zod";
2
+ export var ProviderName;
3
+ (function (ProviderName) {
4
+ ProviderName["GENERIC"] = "generic";
5
+ ProviderName["ASANA"] = "asana";
6
+ ProviderName["SLACK"] = "slack";
7
+ ProviderName["MATH"] = "math";
8
+ ProviderName["CONFLUENCE"] = "confluence";
9
+ ProviderName["JIRA"] = "jira";
10
+ ProviderName["KANDJI"] = "kandji";
11
+ ProviderName["GOOGLEMAPS"] = "googlemaps";
12
+ ProviderName["BING"] = "bing";
13
+ ProviderName["ZENDESK"] = "zendesk";
14
+ ProviderName["LINKEDIN"] = "linkedin";
15
+ ProviderName["X"] = "x";
16
+ ProviderName["MONGO"] = "mongo";
17
+ ProviderName["SNOWFLAKE"] = "snowflake";
18
+ ProviderName["OPENSTREETMAP"] = "openstreetmap";
19
+ ProviderName["NWS"] = "nws";
20
+ ProviderName["FIRECRAWL"] = "firecrawl";
21
+ ProviderName["RESEND"] = "resend";
22
+ ProviderName["GOOGLEOAUTH"] = "googleOauth";
23
+ ProviderName["GOOGLEMAIL"] = "googlemail";
24
+ ProviderName["OKTA"] = "okta";
25
+ ProviderName["GONG"] = "gong";
26
+ ProviderName["FINNHUB"] = "finnhub";
27
+ ProviderName["LOOKER"] = "looker";
28
+ ProviderName["ASHBY"] = "ashby";
29
+ ProviderName["SALESFORCE"] = "salesforce";
30
+ ProviderName["MICROSOFT"] = "microsoft";
31
+ ProviderName["GITHUB"] = "github";
32
+ ProviderName["NOTION"] = "notion";
33
+ ProviderName["JAMF"] = "jamf";
34
+ })(ProviderName || (ProviderName = {}));
2
35
  export const AuthParamsSchema = z.object({
3
36
  authToken: z.string().optional(),
4
37
  baseUrl: z.string().optional(),
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import snowflake from "snowflake-sdk";
11
- import * as forge from "node-forge";
11
+ import forge from "node-forge";
12
12
  const getPrivateKeyCorrectFormat = (privateKey) => {
13
13
  try {
14
14
  // Parse the private key
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credal/actions",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "type": "module",
5
5
  "description": "AI Actions by Credal AI",
6
6
  "sideEffects": false,
@@ -11,7 +11,7 @@
11
11
  "jest-test": "jest",
12
12
  "build": "tsc",
13
13
  "dev": "node --loader ts-node/esm src/app.ts",
14
- "generate:types": "ts-node -r tsconfig-paths/register src/actions/parse.ts",
14
+ "generate:types": "node --loader ts-node/esm src/actions/parse.ts",
15
15
  "prepare": "npm run build",
16
16
  "lint": "eslint 'src/**/*.{js,ts}'",
17
17
  "prettier-check": "prettier --check 'src/**/*.{js,ts,json,css,md}'",