@n8n/workflow-sdk 0.2.0 → 0.2.1
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,5 +1,5 @@
|
|
|
1
1
|
import type { AiConnectionType } from './types';
|
|
2
2
|
export declare const AI_CONNECTION_TO_CONFIG_KEY: Record<AiConnectionType, string>;
|
|
3
3
|
export declare const AI_CONNECTION_TO_BUILDER: Record<AiConnectionType, string>;
|
|
4
|
-
export declare const AI_ALWAYS_ARRAY_TYPES: Set<"
|
|
5
|
-
export declare const AI_OPTIONAL_ARRAY_TYPES: Set<"
|
|
4
|
+
export declare const AI_ALWAYS_ARRAY_TYPES: Set<"ai_document" | "ai_embedding" | "ai_languageModel" | "ai_memory" | "ai_outputParser" | "ai_retriever" | "ai_reranker" | "ai_textSplitter" | "ai_tool" | "ai_vectorStore">;
|
|
5
|
+
export declare const AI_OPTIONAL_ARRAY_TYPES: Set<"ai_document" | "ai_embedding" | "ai_languageModel" | "ai_memory" | "ai_outputParser" | "ai_retriever" | "ai_reranker" | "ai_textSplitter" | "ai_tool" | "ai_vectorStore">;
|
|
@@ -11,14 +11,14 @@ export declare const resourceLocatorValueSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
11
11
|
cachedResultName: z.ZodOptional<z.ZodString>;
|
|
12
12
|
cachedResultUrl: z.ZodOptional<z.ZodString>;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
value: string | number;
|
|
15
14
|
__rl: true;
|
|
15
|
+
value: string | number;
|
|
16
16
|
mode: string;
|
|
17
17
|
cachedResultName?: string | undefined;
|
|
18
18
|
cachedResultUrl?: string | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
value: string | number;
|
|
21
20
|
__rl: true;
|
|
21
|
+
value: string | number;
|
|
22
22
|
mode: string;
|
|
23
23
|
cachedResultName?: string | undefined;
|
|
24
24
|
cachedResultUrl?: string | undefined;
|
|
@@ -143,13 +143,13 @@ export declare const assignmentSchema: z.ZodObject<{
|
|
|
143
143
|
}, "strip", z.ZodTypeAny, {
|
|
144
144
|
id: string;
|
|
145
145
|
name: string;
|
|
146
|
-
type?: string | undefined;
|
|
147
146
|
value?: unknown;
|
|
147
|
+
type?: string | undefined;
|
|
148
148
|
}, {
|
|
149
149
|
id: string;
|
|
150
150
|
name: string;
|
|
151
|
-
type?: string | undefined;
|
|
152
151
|
value?: unknown;
|
|
152
|
+
type?: string | undefined;
|
|
153
153
|
}>;
|
|
154
154
|
export declare const assignmentCollectionValueSchema: z.ZodObject<{
|
|
155
155
|
assignments: z.ZodArray<z.ZodObject<{
|
|
@@ -160,27 +160,27 @@ export declare const assignmentCollectionValueSchema: z.ZodObject<{
|
|
|
160
160
|
}, "strip", z.ZodTypeAny, {
|
|
161
161
|
id: string;
|
|
162
162
|
name: string;
|
|
163
|
-
type?: string | undefined;
|
|
164
163
|
value?: unknown;
|
|
164
|
+
type?: string | undefined;
|
|
165
165
|
}, {
|
|
166
166
|
id: string;
|
|
167
167
|
name: string;
|
|
168
|
-
type?: string | undefined;
|
|
169
168
|
value?: unknown;
|
|
169
|
+
type?: string | undefined;
|
|
170
170
|
}>, "many">;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
172
|
assignments: {
|
|
173
173
|
id: string;
|
|
174
174
|
name: string;
|
|
175
|
-
type?: string | undefined;
|
|
176
175
|
value?: unknown;
|
|
176
|
+
type?: string | undefined;
|
|
177
177
|
}[];
|
|
178
178
|
}, {
|
|
179
179
|
assignments: {
|
|
180
180
|
id: string;
|
|
181
181
|
name: string;
|
|
182
|
-
type?: string | undefined;
|
|
183
182
|
value?: unknown;
|
|
183
|
+
type?: string | undefined;
|
|
184
184
|
}[];
|
|
185
185
|
}>;
|
|
186
186
|
export declare const iDataObjectSchema: z.ZodType<Record<string, unknown>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/workflow-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "TypeScript SDK for programmatically creating n8n workflows",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -23,7 +23,9 @@
|
|
|
23
23
|
"module": "src/index.ts",
|
|
24
24
|
"types": "dist/index.d.ts",
|
|
25
25
|
"files": [
|
|
26
|
-
"dist/**/*"
|
|
26
|
+
"dist/**/*",
|
|
27
|
+
"LICENSE.md",
|
|
28
|
+
"LICENSE_EE.md"
|
|
27
29
|
],
|
|
28
30
|
"devDependencies": {
|
|
29
31
|
"@types/adm-zip": "^0.5.7",
|
|
@@ -35,7 +37,17 @@
|
|
|
35
37
|
"acorn": "8.14.0",
|
|
36
38
|
"uuid": "10.0.0",
|
|
37
39
|
"zod": "3.25.67",
|
|
38
|
-
"n8n-workflow": "2.9.
|
|
40
|
+
"n8n-workflow": "2.9.1"
|
|
41
|
+
},
|
|
42
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
43
|
+
"homepage": "https://n8n.io",
|
|
44
|
+
"author": {
|
|
45
|
+
"name": "Jan Oberhauser",
|
|
46
|
+
"email": "jan@n8n.io"
|
|
47
|
+
},
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "git+https://github.com/n8n-io/n8n.git"
|
|
39
51
|
},
|
|
40
52
|
"scripts": {
|
|
41
53
|
"clean": "rimraf dist .turbo",
|