@n8n/api-types 1.37.2 → 1.38.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.
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/index.js +1 -0
- package/dist/agents/index.js.map +1 -1
- package/dist/agents/model-providers.d.ts +4 -1
- package/dist/agents/model-providers.js +6 -0
- package/dist/agents/model-providers.js.map +1 -1
- package/dist/agents/provider-capabilities.js +14 -0
- package/dist/agents/provider-capabilities.js.map +1 -1
- package/dist/agents/sub-agent.schema.d.ts +1 -1
- package/dist/agents/types.d.ts +8 -2
- package/dist/agents/types.js +1 -4
- package/dist/agents/types.js.map +1 -1
- package/dist/agents/workflow-wait.d.ts +4 -0
- package/dist/agents/workflow-wait.js +8 -0
- package/dist/agents/workflow-wait.js.map +1 -0
- package/dist/build.tsbuildinfo +1 -1
- package/dist/dto/git-connections/git-connections.dto.d.ts +854 -0
- package/dist/dto/git-connections/git-connections.dto.js +46 -3
- package/dist/dto/git-connections/git-connections.dto.js.map +1 -1
- package/dist/dto/index.d.ts +5 -3
- package/dist/dto/index.js +13 -4
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/source-control/push-work-folder-request.dto.d.ts +114 -0
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js +1 -1
- package/dist/dto/workflow-reviews/create-workflow-review-request.dto.js.map +1 -1
- package/dist/dto/workflow-reviews/get-workflow-review-request-detail.dto.d.ts +1 -1
- package/dist/dto/workflows/base-workflow-public.dto.d.ts +287 -0
- package/dist/dto/workflows/base-workflow-public.dto.js +161 -0
- package/dist/dto/workflows/base-workflow-public.dto.js.map +1 -0
- package/dist/dto/workflows/create-workflow-public.dto.d.ts +108 -111
- package/dist/dto/workflows/create-workflow-public.dto.js +2 -158
- package/dist/dto/workflows/create-workflow-public.dto.js.map +1 -1
- package/dist/dto/workflows/publish-workflow-public.dto.d.ts +24 -0
- package/dist/dto/workflows/publish-workflow-public.dto.js +17 -1
- package/dist/dto/workflows/publish-workflow-public.dto.js.map +1 -1
- package/dist/dto/workflows/update-workflow-public.dto.d.ts +371 -0
- package/dist/dto/workflows/update-workflow-public.dto.js +20 -0
- package/dist/dto/workflows/update-workflow-public.dto.js.map +1 -0
- package/dist/dto/workflows/update-workflow-query.dto.d.ts +9 -0
- package/dist/dto/workflows/update-workflow-query.dto.js +13 -0
- package/dist/dto/workflows/update-workflow-query.dto.js.map +1 -0
- package/dist/dto/workflows/workflow-public.dto.d.ts +1116 -0
- package/dist/dto/workflows/workflow-public.dto.js +16 -1
- package/dist/dto/workflows/workflow-public.dto.js.map +1 -1
- package/dist/dto/workflows/workflow-public.openapi.d.ts +12 -0
- package/dist/dto/workflows/workflow-public.openapi.js +15 -1
- package/dist/dto/workflows/workflow-public.openapi.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/schemas/content-import-policy-result.schema.d.ts +67 -0
- package/dist/schemas/content-import-policy-result.schema.js +11 -0
- package/dist/schemas/content-import-policy-result.schema.js.map +1 -0
- package/dist/schemas/instance-ai.schema.d.ts +11 -3
- package/dist/schemas/instance-ai.schema.js +28 -9
- package/dist/schemas/instance-ai.schema.js.map +1 -1
- package/dist/schemas/policy-check-failure.schema.d.ts +12 -0
- package/dist/schemas/policy-check-failure.schema.js +9 -0
- package/dist/schemas/policy-check-failure.schema.js.map +1 -0
- package/dist/schemas/policy-violation.schema.d.ts +27 -0
- package/dist/schemas/policy-violation.schema.js +14 -0
- package/dist/schemas/policy-violation.schema.js.map +1 -0
- package/dist/schemas/source-controlled-file.schema.d.ts +98 -0
- package/dist/schemas/source-controlled-file.schema.js +3 -0
- package/dist/schemas/source-controlled-file.schema.js.map +1 -1
- package/dist/workflow-review-activity.d.ts +3 -2
- package/dist/workflow-review-activity.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import '../../openapi-extend';
|
|
2
|
-
import type { IConnections } from 'n8n-workflow';
|
|
3
|
-
import { z } from 'zod';
|
|
4
1
|
declare const CreateWorkflowPublicDto_base: import("../../zod-class").ZodClass<{
|
|
5
2
|
id?: undefined;
|
|
6
3
|
name: string;
|
|
@@ -38,7 +35,7 @@ declare const CreateWorkflowPublicDto_base: import("../../zod-class").ZodClass<{
|
|
|
38
35
|
createdAt?: undefined;
|
|
39
36
|
updatedAt?: undefined;
|
|
40
37
|
}[];
|
|
41
|
-
connections: IConnections;
|
|
38
|
+
connections: import("n8n-workflow").IConnections;
|
|
42
39
|
settings: {
|
|
43
40
|
saveExecutionProgress?: boolean | undefined;
|
|
44
41
|
saveManualExecutions?: boolean | undefined;
|
|
@@ -75,55 +72,55 @@ declare const CreateWorkflowPublicDto_base: import("../../zod-class").ZodClass<{
|
|
|
75
72
|
role?: string | undefined;
|
|
76
73
|
workflowId?: string | undefined;
|
|
77
74
|
projectId?: string | undefined;
|
|
78
|
-
project?:
|
|
79
|
-
id:
|
|
80
|
-
name:
|
|
81
|
-
type:
|
|
82
|
-
},
|
|
75
|
+
project?: import("zod").objectOutputType<{
|
|
76
|
+
id: import("zod").ZodUndefined;
|
|
77
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
|
+
type: import("zod").ZodUndefined;
|
|
79
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
83
80
|
createdAt?: undefined;
|
|
84
81
|
updatedAt?: undefined;
|
|
85
82
|
}[] | undefined;
|
|
86
83
|
activeVersion?: undefined;
|
|
87
84
|
}, {
|
|
88
|
-
readonly id:
|
|
89
|
-
readonly name:
|
|
90
|
-
readonly active:
|
|
91
|
-
readonly createdAt:
|
|
92
|
-
readonly updatedAt:
|
|
93
|
-
readonly isArchived:
|
|
94
|
-
readonly versionId:
|
|
95
|
-
readonly triggerCount:
|
|
96
|
-
readonly nodes:
|
|
97
|
-
id:
|
|
98
|
-
name:
|
|
99
|
-
webhookId:
|
|
100
|
-
disabled:
|
|
101
|
-
notesInFlow:
|
|
102
|
-
notes:
|
|
103
|
-
type:
|
|
104
|
-
typeVersion:
|
|
105
|
-
executeOnce:
|
|
106
|
-
alwaysOutputData:
|
|
107
|
-
retryOnFail:
|
|
108
|
-
maxTries:
|
|
109
|
-
waitBetweenTries:
|
|
110
|
-
continueOnFail:
|
|
111
|
-
onError:
|
|
112
|
-
position:
|
|
113
|
-
parameters:
|
|
114
|
-
credentials:
|
|
115
|
-
customTelemetryTags:
|
|
116
|
-
tag:
|
|
117
|
-
key:
|
|
118
|
-
value:
|
|
119
|
-
}, "strict",
|
|
85
|
+
readonly id: import("zod").ZodUndefined;
|
|
86
|
+
readonly name: import("zod").ZodString;
|
|
87
|
+
readonly active: import("zod").ZodUndefined;
|
|
88
|
+
readonly createdAt: import("zod").ZodUndefined;
|
|
89
|
+
readonly updatedAt: import("zod").ZodUndefined;
|
|
90
|
+
readonly isArchived: import("zod").ZodUndefined;
|
|
91
|
+
readonly versionId: import("zod").ZodUndefined;
|
|
92
|
+
readonly triggerCount: import("zod").ZodUndefined;
|
|
93
|
+
readonly nodes: import("zod").ZodArray<import("zod").ZodObject<{
|
|
94
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
95
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
96
|
+
webhookId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
+
disabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
98
|
+
notesInFlow: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
99
|
+
notes: import("zod").ZodOptional<import("zod").ZodString>;
|
|
100
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
101
|
+
typeVersion: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
102
|
+
executeOnce: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
103
|
+
alwaysOutputData: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
104
|
+
retryOnFail: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
105
|
+
maxTries: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
106
|
+
waitBetweenTries: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
107
|
+
continueOnFail: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
108
|
+
onError: import("zod").ZodOptional<import("zod").ZodString>;
|
|
109
|
+
position: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
110
|
+
parameters: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
111
|
+
credentials: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
112
|
+
customTelemetryTags: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
113
|
+
tag: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
114
|
+
key: import("zod").ZodString;
|
|
115
|
+
value: import("zod").ZodString;
|
|
116
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
120
117
|
key: string;
|
|
121
118
|
value: string;
|
|
122
119
|
}, {
|
|
123
120
|
key: string;
|
|
124
121
|
value: string;
|
|
125
122
|
}>, "many">>;
|
|
126
|
-
}, "strict",
|
|
123
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
127
124
|
tag?: {
|
|
128
125
|
key: string;
|
|
129
126
|
value: string;
|
|
@@ -134,9 +131,9 @@ declare const CreateWorkflowPublicDto_base: import("../../zod-class").ZodClass<{
|
|
|
134
131
|
value: string;
|
|
135
132
|
}[] | undefined;
|
|
136
133
|
}>>;
|
|
137
|
-
createdAt:
|
|
138
|
-
updatedAt:
|
|
139
|
-
}, "strict",
|
|
134
|
+
createdAt: import("zod").ZodUndefined;
|
|
135
|
+
updatedAt: import("zod").ZodUndefined;
|
|
136
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
140
137
|
id?: string | undefined;
|
|
141
138
|
name?: string | undefined;
|
|
142
139
|
webhookId?: string | undefined;
|
|
@@ -191,35 +188,35 @@ declare const CreateWorkflowPublicDto_base: import("../../zod-class").ZodClass<{
|
|
|
191
188
|
createdAt?: undefined;
|
|
192
189
|
updatedAt?: undefined;
|
|
193
190
|
}>, "many">;
|
|
194
|
-
readonly connections:
|
|
195
|
-
readonly settings:
|
|
196
|
-
saveExecutionProgress:
|
|
197
|
-
saveManualExecutions:
|
|
198
|
-
saveDataErrorExecution:
|
|
199
|
-
saveDataSuccessExecution:
|
|
200
|
-
executionTimeout:
|
|
201
|
-
errorWorkflow:
|
|
202
|
-
timezone:
|
|
203
|
-
executionOrder:
|
|
204
|
-
binaryMode:
|
|
205
|
-
callerPolicy:
|
|
206
|
-
callerIds:
|
|
207
|
-
timeSavedMode:
|
|
208
|
-
timeSavedPerExecution:
|
|
209
|
-
redactionPolicy:
|
|
210
|
-
availableInMCP:
|
|
211
|
-
customTelemetryTags:
|
|
212
|
-
key:
|
|
213
|
-
value:
|
|
214
|
-
}, "strict",
|
|
191
|
+
readonly connections: import("zod").ZodType<import("n8n-workflow").IConnections, import("zod").ZodTypeDef, import("n8n-workflow").IConnections>;
|
|
192
|
+
readonly settings: import("zod").ZodEffects<import("zod").ZodObject<{
|
|
193
|
+
saveExecutionProgress: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
194
|
+
saveManualExecutions: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
195
|
+
saveDataErrorExecution: import("zod").ZodOptional<import("zod").ZodEnum<["all", "none"]>>;
|
|
196
|
+
saveDataSuccessExecution: import("zod").ZodOptional<import("zod").ZodEnum<["all", "none"]>>;
|
|
197
|
+
executionTimeout: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
198
|
+
errorWorkflow: import("zod").ZodOptional<import("zod").ZodString>;
|
|
199
|
+
timezone: import("zod").ZodOptional<import("zod").ZodString>;
|
|
200
|
+
executionOrder: import("zod").ZodOptional<import("zod").ZodString>;
|
|
201
|
+
binaryMode: import("zod").ZodOptional<import("zod").ZodEnum<["separate", "combined"]>>;
|
|
202
|
+
callerPolicy: import("zod").ZodOptional<import("zod").ZodEnum<["any", "none", "workflowsFromAList", "workflowsFromSameOwner"]>>;
|
|
203
|
+
callerIds: import("zod").ZodOptional<import("zod").ZodString>;
|
|
204
|
+
timeSavedMode: import("zod").ZodOptional<import("zod").ZodEnum<["fixed", "dynamic"]>>;
|
|
205
|
+
timeSavedPerExecution: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
206
|
+
redactionPolicy: import("zod").ZodOptional<import("zod").ZodEnum<["none", "non-manual", "manual-only", "all"]>>;
|
|
207
|
+
availableInMCP: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
208
|
+
customTelemetryTags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
209
|
+
key: import("zod").ZodString;
|
|
210
|
+
value: import("zod").ZodString;
|
|
211
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
215
212
|
key: string;
|
|
216
213
|
value: string;
|
|
217
214
|
}, {
|
|
218
215
|
key: string;
|
|
219
216
|
value: string;
|
|
220
217
|
}>, "many">>;
|
|
221
|
-
credentialResolverId:
|
|
222
|
-
}, "strict",
|
|
218
|
+
credentialResolverId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
219
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
223
220
|
saveExecutionProgress?: boolean | undefined;
|
|
224
221
|
saveManualExecutions?: boolean | undefined;
|
|
225
222
|
saveDataErrorExecution?: "all" | "none" | undefined;
|
|
@@ -302,12 +299,12 @@ declare const CreateWorkflowPublicDto_base: import("../../zod-class").ZodClass<{
|
|
|
302
299
|
}[] | undefined;
|
|
303
300
|
credentialResolverId?: string | undefined;
|
|
304
301
|
}>;
|
|
305
|
-
readonly nodeGroups:
|
|
306
|
-
id:
|
|
307
|
-
name:
|
|
308
|
-
description:
|
|
309
|
-
nodeIds:
|
|
310
|
-
}, "strict",
|
|
302
|
+
readonly nodeGroups: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
303
|
+
id: import("zod").ZodString;
|
|
304
|
+
name: import("zod").ZodString;
|
|
305
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
306
|
+
nodeIds: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
307
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
311
308
|
id: string;
|
|
312
309
|
name: string;
|
|
313
310
|
description?: string | undefined;
|
|
@@ -318,55 +315,55 @@ declare const CreateWorkflowPublicDto_base: import("../../zod-class").ZodClass<{
|
|
|
318
315
|
description?: string | undefined;
|
|
319
316
|
nodeIds: string[];
|
|
320
317
|
}>, "many">>;
|
|
321
|
-
readonly staticData:
|
|
322
|
-
readonly pinData:
|
|
323
|
-
readonly projectId:
|
|
324
|
-
readonly parentFolderId:
|
|
325
|
-
readonly meta:
|
|
326
|
-
readonly tags:
|
|
327
|
-
readonly shared:
|
|
328
|
-
role:
|
|
329
|
-
workflowId:
|
|
330
|
-
projectId:
|
|
331
|
-
project:
|
|
332
|
-
id:
|
|
333
|
-
name:
|
|
334
|
-
type:
|
|
335
|
-
}, "passthrough",
|
|
336
|
-
id:
|
|
337
|
-
name:
|
|
338
|
-
type:
|
|
339
|
-
},
|
|
340
|
-
id:
|
|
341
|
-
name:
|
|
342
|
-
type:
|
|
343
|
-
},
|
|
344
|
-
createdAt:
|
|
345
|
-
updatedAt:
|
|
346
|
-
}, "strict",
|
|
318
|
+
readonly staticData: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>]>>>;
|
|
319
|
+
readonly pinData: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
320
|
+
readonly projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
321
|
+
readonly parentFolderId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
322
|
+
readonly meta: import("zod").ZodUndefined;
|
|
323
|
+
readonly tags: import("zod").ZodUndefined;
|
|
324
|
+
readonly shared: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
325
|
+
role: import("zod").ZodOptional<import("zod").ZodString>;
|
|
326
|
+
workflowId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
327
|
+
projectId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
328
|
+
project: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
329
|
+
id: import("zod").ZodUndefined;
|
|
330
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
331
|
+
type: import("zod").ZodUndefined;
|
|
332
|
+
}, "passthrough", import("zod").ZodTypeAny, import("zod").objectOutputType<{
|
|
333
|
+
id: import("zod").ZodUndefined;
|
|
334
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
335
|
+
type: import("zod").ZodUndefined;
|
|
336
|
+
}, import("zod").ZodTypeAny, "passthrough">, import("zod").objectInputType<{
|
|
337
|
+
id: import("zod").ZodUndefined;
|
|
338
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
339
|
+
type: import("zod").ZodUndefined;
|
|
340
|
+
}, import("zod").ZodTypeAny, "passthrough">>>;
|
|
341
|
+
createdAt: import("zod").ZodUndefined;
|
|
342
|
+
updatedAt: import("zod").ZodUndefined;
|
|
343
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
347
344
|
role?: string | undefined;
|
|
348
345
|
workflowId?: string | undefined;
|
|
349
346
|
projectId?: string | undefined;
|
|
350
|
-
project?:
|
|
351
|
-
id:
|
|
352
|
-
name:
|
|
353
|
-
type:
|
|
354
|
-
},
|
|
347
|
+
project?: import("zod").objectOutputType<{
|
|
348
|
+
id: import("zod").ZodUndefined;
|
|
349
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
350
|
+
type: import("zod").ZodUndefined;
|
|
351
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
355
352
|
createdAt?: undefined;
|
|
356
353
|
updatedAt?: undefined;
|
|
357
354
|
}, {
|
|
358
355
|
role?: string | undefined;
|
|
359
356
|
workflowId?: string | undefined;
|
|
360
357
|
projectId?: string | undefined;
|
|
361
|
-
project?:
|
|
362
|
-
id:
|
|
363
|
-
name:
|
|
364
|
-
type:
|
|
365
|
-
},
|
|
358
|
+
project?: import("zod").objectInputType<{
|
|
359
|
+
id: import("zod").ZodUndefined;
|
|
360
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
361
|
+
type: import("zod").ZodUndefined;
|
|
362
|
+
}, import("zod").ZodTypeAny, "passthrough"> | undefined;
|
|
366
363
|
createdAt?: undefined;
|
|
367
364
|
updatedAt?: undefined;
|
|
368
365
|
}>, "many">>;
|
|
369
|
-
readonly activeVersion:
|
|
366
|
+
readonly activeVersion: import("zod").ZodUndefined;
|
|
370
367
|
}>;
|
|
371
368
|
export declare class CreateWorkflowPublicDto extends CreateWorkflowPublicDto_base {
|
|
372
369
|
}
|
|
@@ -1,165 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateWorkflowPublicDto = void 0;
|
|
4
|
-
require("
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const workflow_public_openapi_1 = require("./workflow-public.openapi");
|
|
4
|
+
const base_workflow_public_dto_1 = require("./base-workflow-public.dto");
|
|
7
5
|
const zod_class_1 = require("../../zod-class");
|
|
8
|
-
|
|
9
|
-
const customTelemetryTagPublicSchema = zod_1.z
|
|
10
|
-
.object({
|
|
11
|
-
key: zod_1.z.string(),
|
|
12
|
-
value: zod_1.z.string(),
|
|
13
|
-
})
|
|
14
|
-
.strict();
|
|
15
|
-
const workflowNodeCreatePublicSchema = zod_1.z
|
|
16
|
-
.object({
|
|
17
|
-
id: zod_1.z.string().optional().openapi(workflow_public_openapi_1.workflowNodeFieldDocs.id),
|
|
18
|
-
name: zod_1.z.string().optional().openapi(workflow_public_openapi_1.workflowNodeFieldDocs.name),
|
|
19
|
-
webhookId: zod_1.z.string().optional(),
|
|
20
|
-
disabled: zod_1.z.boolean().optional(),
|
|
21
|
-
notesInFlow: zod_1.z.boolean().optional(),
|
|
22
|
-
notes: zod_1.z.string().optional(),
|
|
23
|
-
type: zod_1.z.string().optional().openapi(workflow_public_openapi_1.workflowNodeFieldDocs.type),
|
|
24
|
-
typeVersion: zod_1.z.number().optional().openapi(workflow_public_openapi_1.workflowNodeFieldDocs.typeVersion),
|
|
25
|
-
executeOnce: zod_1.z.boolean().optional().openapi(workflow_public_openapi_1.workflowNodeFieldDocs.executeOnce),
|
|
26
|
-
alwaysOutputData: zod_1.z.boolean().optional().openapi(workflow_public_openapi_1.workflowNodeFieldDocs.alwaysOutputData),
|
|
27
|
-
retryOnFail: zod_1.z.boolean().optional().openapi(workflow_public_openapi_1.workflowNodeFieldDocs.retryOnFail),
|
|
28
|
-
maxTries: zod_1.z.number().optional(),
|
|
29
|
-
waitBetweenTries: zod_1.z.number().optional(),
|
|
30
|
-
continueOnFail: zod_1.z
|
|
31
|
-
.boolean()
|
|
32
|
-
.optional()
|
|
33
|
-
.openapi({ ...workflow_public_openapi_1.workflowNodeFieldDocs.continueOnFail, deprecated: true }),
|
|
34
|
-
onError: zod_1.z.string().optional().openapi(workflow_public_openapi_1.workflowNodeFieldDocs.onError),
|
|
35
|
-
position: zod_1.z
|
|
36
|
-
.array(zod_1.z.number())
|
|
37
|
-
.optional()
|
|
38
|
-
.openapi({ example: [...workflow_public_openapi_1.workflowNodeFieldDocs.position.example] }),
|
|
39
|
-
parameters: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
40
|
-
credentials: zod_1.z.record(zod_1.z.unknown()).optional().openapi(workflow_public_openapi_1.workflowNodeFieldDocs.credentials),
|
|
41
|
-
customTelemetryTags: zod_1.z
|
|
42
|
-
.object({ tag: zod_1.z.array(customTelemetryTagPublicSchema).optional() })
|
|
43
|
-
.strict()
|
|
44
|
-
.optional(),
|
|
45
|
-
createdAt: readOnlyPublicSchema(workflow_public_openapi_1.readOnlyTimestampOpenApi),
|
|
46
|
-
updatedAt: readOnlyPublicSchema(workflow_public_openapi_1.readOnlyTimestampOpenApi),
|
|
47
|
-
})
|
|
48
|
-
.strict();
|
|
49
|
-
const workflowNodeGroupCreatePublicSchema = zod_1.z
|
|
50
|
-
.object({
|
|
51
|
-
id: zod_1.z.string().openapi(workflow_public_openapi_1.workflowNodeGroupFieldDocs.id),
|
|
52
|
-
name: zod_1.z.string().openapi(workflow_public_openapi_1.workflowNodeGroupFieldDocs.name),
|
|
53
|
-
description: zod_1.z.string().max(155).optional().openapi(workflow_public_openapi_1.workflowNodeGroupFieldDocs.description),
|
|
54
|
-
nodeIds: zod_1.z.array(zod_1.z.string()).openapi(workflow_public_openapi_1.workflowNodeGroupFieldDocs.nodeIds),
|
|
55
|
-
})
|
|
56
|
-
.strict();
|
|
57
|
-
const workflowSettingsCreatePublicSchema = zod_1.z
|
|
58
|
-
.object({
|
|
59
|
-
saveExecutionProgress: zod_1.z.boolean().optional(),
|
|
60
|
-
saveManualExecutions: zod_1.z.boolean().optional(),
|
|
61
|
-
saveDataErrorExecution: zod_1.z.enum(['all', 'none']).optional(),
|
|
62
|
-
saveDataSuccessExecution: zod_1.z.enum(['all', 'none']).optional(),
|
|
63
|
-
executionTimeout: zod_1.z.number().optional().openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.executionTimeout),
|
|
64
|
-
errorWorkflow: zod_1.z.string().optional().openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.errorWorkflow),
|
|
65
|
-
timezone: zod_1.z.string().optional().openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.timezone),
|
|
66
|
-
executionOrder: zod_1.z.string().optional().openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.executionOrder),
|
|
67
|
-
binaryMode: zod_1.z
|
|
68
|
-
.enum(['separate', 'combined'])
|
|
69
|
-
.optional()
|
|
70
|
-
.openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.binaryMode),
|
|
71
|
-
callerPolicy: zod_1.z
|
|
72
|
-
.enum(['any', 'none', 'workflowsFromAList', 'workflowsFromSameOwner'])
|
|
73
|
-
.optional()
|
|
74
|
-
.openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.callerPolicy),
|
|
75
|
-
callerIds: zod_1.z.string().optional().openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.callerIds),
|
|
76
|
-
timeSavedMode: zod_1.z
|
|
77
|
-
.enum(['fixed', 'dynamic'])
|
|
78
|
-
.optional()
|
|
79
|
-
.openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.timeSavedMode),
|
|
80
|
-
timeSavedPerExecution: zod_1.z
|
|
81
|
-
.number()
|
|
82
|
-
.optional()
|
|
83
|
-
.openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.timeSavedPerExecution),
|
|
84
|
-
redactionPolicy: zod_1.z
|
|
85
|
-
.enum(['none', 'non-manual', 'manual-only', 'all'])
|
|
86
|
-
.optional()
|
|
87
|
-
.openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.redactionPolicy),
|
|
88
|
-
availableInMCP: zod_1.z.boolean().optional().openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.availableInMCP),
|
|
89
|
-
customTelemetryTags: zod_1.z.array(customTelemetryTagPublicSchema).optional(),
|
|
90
|
-
credentialResolverId: zod_1.z
|
|
91
|
-
.string()
|
|
92
|
-
.optional()
|
|
93
|
-
.openapi(workflow_public_openapi_1.workflowSettingsFieldDocs.credentialResolverId),
|
|
94
|
-
})
|
|
95
|
-
.strict()
|
|
96
|
-
.transform(({ binaryMode: _binaryMode, credentialResolverId: _resolverId, ...settings }) => settings);
|
|
97
|
-
const sharedWorkflowCreatePublicSchema = zod_1.z
|
|
98
|
-
.object({
|
|
99
|
-
role: zod_1.z.string().optional().openapi({ example: 'workflow:owner' }),
|
|
100
|
-
workflowId: zod_1.z.string().optional().openapi({ example: '2tUt1wbLX592XDdX' }),
|
|
101
|
-
projectId: zod_1.z.string().optional().openapi({ example: '2tUt1wbLX592XDdX' }),
|
|
102
|
-
project: zod_1.z
|
|
103
|
-
.object({
|
|
104
|
-
id: readOnlyPublicSchema({ type: 'string', readOnly: true }),
|
|
105
|
-
name: zod_1.z.string().optional(),
|
|
106
|
-
type: readOnlyPublicSchema({ type: 'string', readOnly: true }),
|
|
107
|
-
})
|
|
108
|
-
.passthrough()
|
|
109
|
-
.optional(),
|
|
110
|
-
createdAt: readOnlyPublicSchema(workflow_public_openapi_1.readOnlyTimestampOpenApi),
|
|
111
|
-
updatedAt: readOnlyPublicSchema(workflow_public_openapi_1.readOnlyTimestampOpenApi),
|
|
112
|
-
})
|
|
113
|
-
.strict();
|
|
114
|
-
const staticDataCreatePublicSchema = zod_1.z
|
|
115
|
-
.union([
|
|
116
|
-
zod_1.z
|
|
117
|
-
.string()
|
|
118
|
-
.refine((value) => {
|
|
119
|
-
try {
|
|
120
|
-
JSON.parse(value);
|
|
121
|
-
return true;
|
|
122
|
-
}
|
|
123
|
-
catch {
|
|
124
|
-
return false;
|
|
125
|
-
}
|
|
126
|
-
}, { message: 'must be a JSON string' })
|
|
127
|
-
.openapi({ format: 'jsonString' }),
|
|
128
|
-
zod_1.z.record(zod_1.z.unknown()),
|
|
129
|
-
])
|
|
130
|
-
.nullable()
|
|
131
|
-
.openapi(workflow_public_openapi_1.workflowCreateFieldDocs.staticData);
|
|
132
|
-
const createWorkflowPublicShape = {
|
|
133
|
-
id: readOnlyPublicSchema(workflow_public_openapi_1.workflowCreateReadOnlyFieldDocs.id),
|
|
134
|
-
name: zod_1.z.string().openapi(workflow_public_openapi_1.workflowCreateFieldDocs.name),
|
|
135
|
-
active: readOnlyPublicSchema(workflow_public_openapi_1.workflowCreateReadOnlyFieldDocs.active),
|
|
136
|
-
createdAt: readOnlyPublicSchema(workflow_public_openapi_1.workflowCreateReadOnlyFieldDocs.createdAt),
|
|
137
|
-
updatedAt: readOnlyPublicSchema(workflow_public_openapi_1.workflowCreateReadOnlyFieldDocs.updatedAt),
|
|
138
|
-
isArchived: readOnlyPublicSchema(workflow_public_openapi_1.workflowCreateReadOnlyFieldDocs.isArchived),
|
|
139
|
-
versionId: readOnlyPublicSchema(workflow_public_openapi_1.workflowCreateReadOnlyFieldDocs.versionId),
|
|
140
|
-
triggerCount: readOnlyPublicSchema(workflow_public_openapi_1.workflowCreateReadOnlyFieldDocs.triggerCount),
|
|
141
|
-
nodes: zod_1.z.array(workflowNodeCreatePublicSchema).openapi(workflow_public_openapi_1.workflowCreateFieldDocs.nodes),
|
|
142
|
-
connections: zod_1.z
|
|
143
|
-
.custom((value) => typeof value === 'object' && value !== null && !Array.isArray(value), { message: 'must be object' })
|
|
144
|
-
.openapi(workflow_public_openapi_1.connectionsOpenApi),
|
|
145
|
-
settings: workflowSettingsCreatePublicSchema,
|
|
146
|
-
nodeGroups: zod_1.z
|
|
147
|
-
.array(workflowNodeGroupCreatePublicSchema)
|
|
148
|
-
.optional()
|
|
149
|
-
.openapi(workflow_public_openapi_1.workflowCreateFieldDocs.nodeGroups),
|
|
150
|
-
staticData: staticDataCreatePublicSchema.optional(),
|
|
151
|
-
pinData: zod_1.z.record(zod_1.z.unknown()).nullable().optional().openapi(workflow_public_openapi_1.workflowCreateFieldDocs.pinData),
|
|
152
|
-
projectId: zod_1.z.string().optional().openapi(workflow_public_openapi_1.workflowCreateFieldDocs.projectId),
|
|
153
|
-
parentFolderId: zod_1.z.string().nullable().optional().openapi(workflow_public_openapi_1.workflowCreateFieldDocs.parentFolderId),
|
|
154
|
-
meta: readOnlyPublicSchema(workflow_public_openapi_1.workflowCreateReadOnlyFieldDocs.meta),
|
|
155
|
-
tags: readOnlyPublicSchema(workflow_public_openapi_1.workflowCreateReadOnlyFieldDocs.tags),
|
|
156
|
-
shared: zod_1.z
|
|
157
|
-
.array(sharedWorkflowCreatePublicSchema)
|
|
158
|
-
.optional()
|
|
159
|
-
.openapi(workflow_public_openapi_1.workflowCreateFieldDocs.shared),
|
|
160
|
-
activeVersion: readOnlyPublicSchema(workflow_public_openapi_1.workflowCreateReadOnlyFieldDocs.activeVersion),
|
|
161
|
-
};
|
|
162
|
-
class CreateWorkflowPublicDto extends zod_class_1.Z.class(createWorkflowPublicShape, {
|
|
6
|
+
class CreateWorkflowPublicDto extends zod_class_1.Z.class(base_workflow_public_dto_1.workflowWritePublicShape, {
|
|
163
7
|
strict: true,
|
|
164
8
|
}) {
|
|
165
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-workflow-public.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/create-workflow-public.dto.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"create-workflow-public.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/create-workflow-public.dto.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AACtE,+CAAoC;AAEpC,6BAAqC,SAAQ,aAAC,CAAC,KAAK,CAAC,mDAAwB,EAAE;IAC9E,MAAM,EAAE,IAAI;CACZ,CAAC;CAAG"}
|
|
@@ -24,4 +24,28 @@ declare const PublishWorkflowPublicDto_base: import("../../zod-class").ZodClass<
|
|
|
24
24
|
}>;
|
|
25
25
|
export declare class PublishWorkflowPublicDto extends PublishWorkflowPublicDto_base {
|
|
26
26
|
}
|
|
27
|
+
export declare const activateWorkflowPublicSchema: z.ZodObject<{
|
|
28
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
29
|
+
name: z.ZodOptional<z.ZodString>;
|
|
30
|
+
description: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
versionId?: string | undefined;
|
|
33
|
+
name?: string | undefined;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
versionId?: string | undefined;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
description?: string | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
declare const ActivateWorkflowPublicDto_base: import("../../zod-class").ZodClass<{
|
|
41
|
+
versionId?: string | undefined;
|
|
42
|
+
name?: string | undefined;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
46
|
+
name: z.ZodOptional<z.ZodString>;
|
|
47
|
+
description: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}>;
|
|
49
|
+
export declare class ActivateWorkflowPublicDto extends ActivateWorkflowPublicDto_base {
|
|
50
|
+
}
|
|
27
51
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PublishWorkflowPublicDto = exports.publishWorkflowPublicSchema = void 0;
|
|
3
|
+
exports.ActivateWorkflowPublicDto = exports.activateWorkflowPublicSchema = exports.PublishWorkflowPublicDto = exports.publishWorkflowPublicSchema = void 0;
|
|
4
4
|
require("../../openapi-extend");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
const zod_class_1 = require("../../zod-class");
|
|
@@ -20,4 +20,20 @@ exports.publishWorkflowPublicSchema = zod_1.z.object({
|
|
|
20
20
|
class PublishWorkflowPublicDto extends zod_class_1.Z.class(exports.publishWorkflowPublicSchema.shape) {
|
|
21
21
|
}
|
|
22
22
|
exports.PublishWorkflowPublicDto = PublishWorkflowPublicDto;
|
|
23
|
+
exports.activateWorkflowPublicSchema = zod_1.z.object({
|
|
24
|
+
versionId: zod_1.z.string().optional().openapi({
|
|
25
|
+
description: 'The specific version ID to activate or publish. If not provided, the latest version is used.',
|
|
26
|
+
}),
|
|
27
|
+
name: zod_1.z
|
|
28
|
+
.string()
|
|
29
|
+
.optional()
|
|
30
|
+
.openapi({ description: 'Optional name for the workflow version during activation.' }),
|
|
31
|
+
description: zod_1.z
|
|
32
|
+
.string()
|
|
33
|
+
.optional()
|
|
34
|
+
.openapi({ description: 'Optional description for the workflow version during activation.' }),
|
|
35
|
+
});
|
|
36
|
+
class ActivateWorkflowPublicDto extends zod_class_1.Z.class(exports.activateWorkflowPublicSchema.shape) {
|
|
37
|
+
}
|
|
38
|
+
exports.ActivateWorkflowPublicDto = ActivateWorkflowPublicDto;
|
|
23
39
|
//# sourceMappingURL=publish-workflow-public.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish-workflow-public.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/publish-workflow-public.dto.ts"],"names":[],"mappings":";;;AAAA,gCAA8B;AAE9B,6BAAwB;AAExB,+CAAoC;AAEvB,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QACxC,WAAW,EAAE,kFAAkF;KAC/F,CAAC;IACF,IAAI,EAAE,OAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,WAAW,EAAE,4DAA4D,EAAE,CAAC;IACxF,WAAW,EAAE,OAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,WAAW,EAAE,mEAAmE,EAAE,CAAC;CAC/F,CAAC,CAAC;AAEH,8BAAsC,SAAQ,aAAC,CAAC,KAAK,CAAC,QAAA,2BAA2B,CAAC,KAAK,CAAC;CAAG"}
|
|
1
|
+
{"version":3,"file":"publish-workflow-public.dto.js","sourceRoot":"","sources":["../../../src/dto/workflows/publish-workflow-public.dto.ts"],"names":[],"mappings":";;;AAAA,gCAA8B;AAE9B,6BAAwB;AAExB,+CAAoC;AAEvB,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QACxC,WAAW,EAAE,kFAAkF;KAC/F,CAAC;IACF,IAAI,EAAE,OAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,WAAW,EAAE,4DAA4D,EAAE,CAAC;IACxF,WAAW,EAAE,OAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,WAAW,EAAE,mEAAmE,EAAE,CAAC;CAC/F,CAAC,CAAC;AAEH,8BAAsC,SAAQ,aAAC,CAAC,KAAK,CAAC,QAAA,2BAA2B,CAAC,KAAK,CAAC;CAAG;;AAE9E,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC;QACxC,WAAW,EACV,8FAA8F;KAC/F,CAAC;IACF,IAAI,EAAE,OAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,WAAW,EAAE,2DAA2D,EAAE,CAAC;IACvF,WAAW,EAAE,OAAC;SACZ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,OAAO,CAAC,EAAE,WAAW,EAAE,kEAAkE,EAAE,CAAC;CAC9F,CAAC,CAAC;AAEH,+BAAuC,SAAQ,aAAC,CAAC,KAAK,CAAC,QAAA,4BAA4B,CAAC,KAAK,CAAC;CAAG"}
|