@credal/actions 0.2.11 → 0.2.13
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 "
|
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;
|
@@ -2817,22 +2849,22 @@ export declare const googleOauthListGroupMembersOutputSchema: z.ZodObject<{
|
|
2817
2849
|
}>, "many">;
|
2818
2850
|
error: z.ZodOptional<z.ZodString>;
|
2819
2851
|
}, "strip", z.ZodTypeAny, {
|
2820
|
-
success: boolean;
|
2821
2852
|
members: {
|
2822
2853
|
type: string;
|
2823
2854
|
id: string;
|
2824
2855
|
email: string;
|
2825
2856
|
role: string;
|
2826
2857
|
}[];
|
2858
|
+
success: boolean;
|
2827
2859
|
error?: string | undefined;
|
2828
2860
|
}, {
|
2829
|
-
success: boolean;
|
2830
2861
|
members: {
|
2831
2862
|
type: string;
|
2832
2863
|
id: string;
|
2833
2864
|
email: string;
|
2834
2865
|
role: string;
|
2835
2866
|
}[];
|
2867
|
+
success: boolean;
|
2836
2868
|
error?: string | undefined;
|
2837
2869
|
}>;
|
2838
2870
|
export type googleOauthListGroupMembersOutputType = z.infer<typeof googleOauthListGroupMembersOutputSchema>;
|
@@ -3691,7 +3723,6 @@ export declare const oktaListOktaGroupMembersOutputSchema: z.ZodObject<{
|
|
3691
3723
|
error: z.ZodOptional<z.ZodString>;
|
3692
3724
|
}, "strip", z.ZodTypeAny, {
|
3693
3725
|
success: boolean;
|
3694
|
-
error?: string | undefined;
|
3695
3726
|
members?: {
|
3696
3727
|
type?: {
|
3697
3728
|
id?: string | undefined;
|
@@ -3713,9 +3744,9 @@ export declare const oktaListOktaGroupMembersOutputSchema: z.ZodObject<{
|
|
3713
3744
|
lastUpdated?: string | undefined;
|
3714
3745
|
passwordChanged?: string | undefined;
|
3715
3746
|
}[] | undefined;
|
3747
|
+
error?: string | undefined;
|
3716
3748
|
}, {
|
3717
3749
|
success: boolean;
|
3718
|
-
error?: string | undefined;
|
3719
3750
|
members?: {
|
3720
3751
|
type?: {
|
3721
3752
|
id?: string | undefined;
|
@@ -3737,6 +3768,7 @@ export declare const oktaListOktaGroupMembersOutputSchema: z.ZodObject<{
|
|
3737
3768
|
lastUpdated?: string | undefined;
|
3738
3769
|
passwordChanged?: string | undefined;
|
3739
3770
|
}[] | undefined;
|
3771
|
+
error?: string | undefined;
|
3740
3772
|
}>;
|
3741
3773
|
export type oktaListOktaGroupMembersOutputType = z.infer<typeof oktaListOktaGroupMembersOutputSchema>;
|
3742
3774
|
export type oktaListOktaGroupMembersFunction = ActionFunction<oktaListOktaGroupMembersParamsType, AuthParamsType, oktaListOktaGroupMembersOutputType>;
|
@@ -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(),
|
package/dist/actions/parse.js
CHANGED
@@ -137,16 +137,16 @@ function generateTypes(_a) {
|
|
137
137
|
const project = new Project();
|
138
138
|
const templatesFile = project.createSourceFile(outputPath, "", { overwrite: true });
|
139
139
|
const typesFile = project.createSourceFile(templatesOutputPath, "", { overwrite: true });
|
140
|
-
//
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
140
|
+
// Set the ProviderName enum based on the schema providers
|
141
|
+
typesFile
|
142
|
+
.addEnum({
|
143
|
+
name: "ProviderName",
|
144
|
+
members: Object.keys(parsedConfig.actions).map(providerName => ({
|
145
|
+
name: providerName.toUpperCase().replace(/-/g, "_"),
|
146
|
+
value: providerName,
|
147
|
+
})),
|
148
|
+
})
|
149
|
+
.setIsExported(true);
|
150
150
|
// Add imports
|
151
151
|
templatesFile.addImportDeclaration({
|
152
152
|
moduleSpecifier: "../../actions/parse",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@credal/actions",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.13",
|
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": "
|
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}'",
|