@egose/n8n-client 0.1.1 → 0.1.2
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/CHANGELOG.md +9 -1
- package/{chunk-ZEQL5KU2.js → chunk-2DSU5F3J.js} +8 -7
- package/{chunk-DJCG37LZ.js → chunk-2H3GEKKO.js} +7 -4
- package/{chunk-4FXZT5HT.js → chunk-2JBRCS53.js} +6 -6
- package/chunk-4QPHBRTA.js +15 -0
- package/{chunk-TRHGCMFH.cjs → chunk-5WH4FOE2.cjs} +7 -7
- package/{chunk-CUO2M75Z.js → chunk-6L3JVMUK.js} +6 -6
- package/{chunk-I7NGIQIM.cjs → chunk-75AXCCWF.cjs} +7 -7
- package/chunk-ACVK7R2L.cjs +12 -0
- package/{chunk-QYAIEIF5.js → chunk-BI6R6RFB.js} +6 -6
- package/{chunk-SK4VCTMD.js → chunk-CDYFI72K.js} +8 -7
- package/{chunk-TCPZWXKM.js → chunk-DO5OI6ZU.js} +6 -6
- package/{chunk-4AODYIOB.cjs → chunk-FKHPF5R5.cjs} +9 -8
- package/{chunk-5FIB7YIT.js → chunk-GYCE5P4Y.js} +6 -6
- package/chunk-HDN3VTQ4.cjs +15 -0
- package/{chunk-NAZ5MLBL.cjs → chunk-HYJ7KYNG.cjs} +8 -5
- package/{chunk-5SY4KM4Q.js → chunk-IDD662MQ.js} +6 -6
- package/chunk-JUWY746V.cjs +15 -0
- package/{chunk-BWLFUF76.js → chunk-JWSD43W3.js} +6 -6
- package/{chunk-5PHEDSSO.cjs → chunk-L36NK3EC.cjs} +7 -7
- package/{chunk-U7PGEXKS.cjs → chunk-LBBJ6MTN.cjs} +7 -7
- package/{chunk-5DYA4LAX.cjs → chunk-LC3TKRMX.cjs} +1 -1
- package/{chunk-MNL65GQB.js → chunk-NMKH2J77.js} +6 -6
- package/chunk-OHQBXLTJ.js +12 -0
- package/{chunk-QLAAM7TG.cjs → chunk-ONBMQHLH.cjs} +9 -8
- package/chunk-R3HQQ6JP.cjs +15 -0
- package/{chunk-DK5NLZ6U.js → chunk-RMEH2UPX.js} +1 -1
- package/{chunk-FZX275Y3.js → chunk-RXHHER7R.js} +6 -6
- package/{chunk-JR7A75YV.js → chunk-THVPKRZ6.js} +6 -6
- package/{chunk-CES6KIG5.cjs → chunk-UKWCRX4F.cjs} +7 -7
- package/chunk-UPL3BYDO.js +15 -0
- package/chunk-UU6H6FNY.cjs +15 -0
- package/{chunk-ZAZJHB3O.cjs → chunk-VS6V3PD6.cjs} +7 -7
- package/{chunk-OOMGKLOT.cjs → chunk-XHPNV55G.cjs} +7 -7
- package/{chunk-YPK2BDPO.cjs → chunk-YONLN7XM.cjs} +7 -7
- package/handles/audit.cjs +3 -2
- package/handles/audit.d.cts +3 -4
- package/handles/audit.d.ts +3 -4
- package/handles/audit.js +2 -1
- package/handles/base.cjs +7 -0
- package/handles/base.d.cts +10 -0
- package/handles/base.d.ts +10 -0
- package/handles/base.js +7 -0
- package/handles/community-package.cjs +3 -2
- package/handles/community-package.d.cts +5 -9
- package/handles/community-package.d.ts +5 -9
- package/handles/community-package.js +2 -1
- package/handles/credential.cjs +3 -2
- package/handles/credential.d.cts +5 -6
- package/handles/credential.d.ts +5 -6
- package/handles/credential.js +2 -1
- package/handles/data-table.cjs +3 -2
- package/handles/data-table.d.cts +7 -15
- package/handles/data-table.d.ts +7 -15
- package/handles/data-table.js +2 -1
- package/handles/discover.cjs +3 -2
- package/handles/discover.d.cts +5 -10
- package/handles/discover.d.ts +5 -10
- package/handles/discover.js +2 -1
- package/handles/execution.cjs +3 -2
- package/handles/execution.d.cts +8 -20
- package/handles/execution.d.ts +8 -20
- package/handles/execution.js +2 -1
- package/handles/folder.cjs +3 -2
- package/handles/folder.d.cts +6 -13
- package/handles/folder.d.ts +6 -13
- package/handles/folder.js +2 -1
- package/handles/insights.cjs +3 -2
- package/handles/insights.d.cts +5 -10
- package/handles/insights.d.ts +5 -10
- package/handles/insights.js +2 -1
- package/handles/n8n-package.cjs +3 -2
- package/handles/n8n-package.d.cts +5 -12
- package/handles/n8n-package.d.ts +5 -12
- package/handles/n8n-package.js +2 -1
- package/handles/project.cjs +3 -2
- package/handles/project.d.cts +7 -15
- package/handles/project.d.ts +7 -15
- package/handles/project.js +2 -1
- package/handles/source-control.cjs +3 -2
- package/handles/source-control.d.cts +3 -4
- package/handles/source-control.d.ts +3 -4
- package/handles/source-control.js +2 -1
- package/handles/tag.cjs +3 -2
- package/handles/tag.d.cts +6 -11
- package/handles/tag.d.ts +6 -11
- package/handles/tag.js +2 -1
- package/handles/user.cjs +3 -2
- package/handles/user.d.cts +7 -14
- package/handles/user.d.ts +7 -14
- package/handles/user.js +2 -1
- package/handles/variable.cjs +3 -2
- package/handles/variable.d.cts +6 -10
- package/handles/variable.d.ts +6 -10
- package/handles/variable.js +2 -1
- package/handles/workflow.cjs +3 -2
- package/handles/workflow.d.cts +8 -21
- package/handles/workflow.d.ts +8 -21
- package/handles/workflow.js +2 -1
- package/http-client.cjs +2 -2
- package/http-client.d.cts +6 -18
- package/http-client.d.ts +6 -18
- package/http-client.js +1 -1
- package/index.cjs +35 -34
- package/index.d.cts +7 -16
- package/index.d.ts +7 -16
- package/index.js +21 -20
- package/package.json +16 -16
- package/types.d.cts +201 -55
- package/types.d.ts +201 -55
- package/chunk-3SBD4UJS.js +0 -15
- package/chunk-FHAZIAHR.js +0 -15
- package/chunk-M7GX3MEN.cjs +0 -15
- package/chunk-NM6A7DX4.cjs +0 -15
- package/chunk-NSCKTOQK.cjs +0 -15
- package/chunk-RATHO5IW.cjs +0 -15
package/types.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import { PaginationParams } from './pagination.js';
|
|
2
|
+
export { PaginatedResponse } from './pagination.js';
|
|
2
3
|
|
|
4
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
5
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonArray;
|
|
6
|
+
interface JsonObject {
|
|
7
|
+
[key: string]: JsonValue;
|
|
8
|
+
}
|
|
9
|
+
interface JsonArray extends Array<JsonValue> {
|
|
10
|
+
}
|
|
3
11
|
type N8nClientConfig = {
|
|
4
12
|
baseUrl: string;
|
|
5
13
|
} & ({
|
|
@@ -24,11 +32,11 @@ interface Workflow {
|
|
|
24
32
|
versionId: string;
|
|
25
33
|
triggerCount: number;
|
|
26
34
|
nodes: WorkflowNode[];
|
|
27
|
-
connections:
|
|
35
|
+
connections: WorkflowConnections;
|
|
28
36
|
settings?: WorkflowSettings;
|
|
29
|
-
staticData?:
|
|
30
|
-
pinData?:
|
|
31
|
-
meta?:
|
|
37
|
+
staticData?: string | JsonObject | null;
|
|
38
|
+
pinData?: WorkflowPinData | null;
|
|
39
|
+
meta?: WorkflowMeta | null;
|
|
32
40
|
tags?: Tag[];
|
|
33
41
|
shared?: SharedWorkflow[];
|
|
34
42
|
activeVersion?: ActiveVersion | null;
|
|
@@ -37,7 +45,7 @@ interface ActiveVersion {
|
|
|
37
45
|
versionId: string;
|
|
38
46
|
workflowId: string;
|
|
39
47
|
nodes: WorkflowNode[];
|
|
40
|
-
connections:
|
|
48
|
+
connections: WorkflowConnections;
|
|
41
49
|
authors: string;
|
|
42
50
|
name?: string;
|
|
43
51
|
description?: string;
|
|
@@ -48,20 +56,20 @@ interface WorkflowCreate {
|
|
|
48
56
|
name: string;
|
|
49
57
|
description?: string;
|
|
50
58
|
nodes: WorkflowNode[];
|
|
51
|
-
connections:
|
|
59
|
+
connections: WorkflowConnections;
|
|
52
60
|
settings: WorkflowSettings;
|
|
53
|
-
staticData?:
|
|
54
|
-
pinData?:
|
|
61
|
+
staticData?: string | JsonObject | null;
|
|
62
|
+
pinData?: WorkflowPinData | null;
|
|
55
63
|
projectId?: string;
|
|
56
64
|
}
|
|
57
65
|
interface WorkflowUpdate {
|
|
58
66
|
name: string;
|
|
59
67
|
description?: string;
|
|
60
68
|
nodes: WorkflowNode[];
|
|
61
|
-
connections:
|
|
69
|
+
connections: WorkflowConnections;
|
|
62
70
|
settings: WorkflowSettings;
|
|
63
|
-
staticData?:
|
|
64
|
-
pinData?:
|
|
71
|
+
staticData?: string | JsonObject | null;
|
|
72
|
+
pinData?: WorkflowPinData | null;
|
|
65
73
|
}
|
|
66
74
|
interface WorkflowSettings {
|
|
67
75
|
saveExecutionProgress?: boolean;
|
|
@@ -77,10 +85,7 @@ interface WorkflowSettings {
|
|
|
77
85
|
timeSavedPerExecution?: number;
|
|
78
86
|
redactionPolicy?: 'none' | 'non-manual' | 'manual-only' | 'all';
|
|
79
87
|
availableInMCP?: boolean;
|
|
80
|
-
customTelemetryTags?:
|
|
81
|
-
key: string;
|
|
82
|
-
value: string;
|
|
83
|
-
}>;
|
|
88
|
+
customTelemetryTags?: WorkflowTelemetryTag[];
|
|
84
89
|
}
|
|
85
90
|
interface WorkflowNode {
|
|
86
91
|
id?: string;
|
|
@@ -88,8 +93,8 @@ interface WorkflowNode {
|
|
|
88
93
|
type: string;
|
|
89
94
|
typeVersion?: number;
|
|
90
95
|
position: number[];
|
|
91
|
-
parameters?:
|
|
92
|
-
credentials?:
|
|
96
|
+
parameters?: JsonObject;
|
|
97
|
+
credentials?: JsonObject;
|
|
93
98
|
disabled?: boolean;
|
|
94
99
|
notesInFlow?: boolean;
|
|
95
100
|
notes?: string;
|
|
@@ -99,33 +104,58 @@ interface WorkflowNode {
|
|
|
99
104
|
retryOnFail?: boolean;
|
|
100
105
|
maxTries?: number;
|
|
101
106
|
waitBetweenTries?: number;
|
|
107
|
+
continueOnFail?: boolean;
|
|
102
108
|
onError?: string;
|
|
103
|
-
customTelemetryTags?:
|
|
104
|
-
tag?: Array<{
|
|
105
|
-
key: string;
|
|
106
|
-
value: string;
|
|
107
|
-
}>;
|
|
108
|
-
};
|
|
109
|
+
customTelemetryTags?: WorkflowNodeTelemetryTags;
|
|
109
110
|
createdAt?: string;
|
|
110
111
|
updatedAt?: string;
|
|
111
112
|
}
|
|
113
|
+
interface WorkflowConnection {
|
|
114
|
+
node: string;
|
|
115
|
+
type: string;
|
|
116
|
+
index: number;
|
|
117
|
+
}
|
|
118
|
+
type WorkflowConnectionBranch = WorkflowConnection[];
|
|
119
|
+
interface WorkflowConnectionTypeMap {
|
|
120
|
+
[connectionType: string]: WorkflowConnectionBranch[];
|
|
121
|
+
}
|
|
122
|
+
interface WorkflowConnections {
|
|
123
|
+
[sourceNode: string]: WorkflowConnectionTypeMap;
|
|
124
|
+
}
|
|
125
|
+
interface WorkflowTelemetryTag {
|
|
126
|
+
key: string;
|
|
127
|
+
value: string;
|
|
128
|
+
}
|
|
129
|
+
interface WorkflowNodeTelemetryTags {
|
|
130
|
+
tag?: WorkflowTelemetryTag[];
|
|
131
|
+
}
|
|
132
|
+
interface WorkflowPinData {
|
|
133
|
+
[nodeName: string]: JsonValue;
|
|
134
|
+
}
|
|
135
|
+
interface WorkflowMeta {
|
|
136
|
+
onboardingId?: string;
|
|
137
|
+
templateId?: string;
|
|
138
|
+
instanceId?: string;
|
|
139
|
+
templateCredsSetupCompleted?: boolean;
|
|
140
|
+
}
|
|
112
141
|
interface SharedWorkflow {
|
|
113
142
|
role: string;
|
|
114
143
|
workflowId: string;
|
|
115
144
|
projectId: string;
|
|
116
|
-
project?:
|
|
117
|
-
id: string;
|
|
118
|
-
name: string;
|
|
119
|
-
type: string;
|
|
120
|
-
};
|
|
145
|
+
project?: SharedWorkflowProject;
|
|
121
146
|
createdAt: string;
|
|
122
147
|
updatedAt: string;
|
|
123
148
|
}
|
|
149
|
+
interface SharedWorkflowProject {
|
|
150
|
+
id: string;
|
|
151
|
+
name: string;
|
|
152
|
+
type: string;
|
|
153
|
+
}
|
|
124
154
|
interface WorkflowVersion {
|
|
125
155
|
versionId: string;
|
|
126
156
|
workflowId: string;
|
|
127
157
|
nodes: WorkflowNode[];
|
|
128
|
-
connections:
|
|
158
|
+
connections: WorkflowConnections;
|
|
129
159
|
authors: string;
|
|
130
160
|
name?: string;
|
|
131
161
|
description?: string;
|
|
@@ -136,11 +166,26 @@ interface WorkflowListResponse {
|
|
|
136
166
|
data: Workflow[];
|
|
137
167
|
nextCursor?: string;
|
|
138
168
|
}
|
|
169
|
+
interface WorkflowListParams extends PaginationParams {
|
|
170
|
+
active?: boolean;
|
|
171
|
+
tags?: string;
|
|
172
|
+
name?: string;
|
|
173
|
+
projectId?: string;
|
|
174
|
+
excludePinnedData?: boolean;
|
|
175
|
+
}
|
|
176
|
+
interface WorkflowGetParams {
|
|
177
|
+
excludePinnedData?: boolean;
|
|
178
|
+
}
|
|
179
|
+
interface WorkflowActivateRequest {
|
|
180
|
+
versionId?: string;
|
|
181
|
+
name?: string;
|
|
182
|
+
description?: string;
|
|
183
|
+
}
|
|
139
184
|
type ExecutionStatus = 'canceled' | 'crashed' | 'error' | 'new' | 'running' | 'success' | 'unknown' | 'waiting';
|
|
140
185
|
type ExecutionMode = 'cli' | 'error' | 'integrated' | 'internal' | 'manual' | 'retry' | 'trigger' | 'webhook' | 'evaluation' | 'chat';
|
|
141
186
|
interface Execution {
|
|
142
187
|
id: number;
|
|
143
|
-
data?:
|
|
188
|
+
data?: JsonObject;
|
|
144
189
|
finished: boolean;
|
|
145
190
|
mode: ExecutionMode;
|
|
146
191
|
retryOf?: number;
|
|
@@ -149,7 +194,7 @@ interface Execution {
|
|
|
149
194
|
stoppedAt?: string;
|
|
150
195
|
workflowId: number;
|
|
151
196
|
waitTill?: string;
|
|
152
|
-
customData?:
|
|
197
|
+
customData?: JsonObject;
|
|
153
198
|
status: ExecutionStatus;
|
|
154
199
|
}
|
|
155
200
|
interface ExecutionListResponse {
|
|
@@ -165,11 +210,25 @@ interface StopManyExecutionsRequest {
|
|
|
165
210
|
interface StopManyExecutionsResponse {
|
|
166
211
|
stopped: number;
|
|
167
212
|
}
|
|
213
|
+
interface ExecutionListParams extends PaginationParams {
|
|
214
|
+
includeData?: boolean;
|
|
215
|
+
redactExecutionData?: boolean;
|
|
216
|
+
status?: ExecutionStatus;
|
|
217
|
+
workflowId?: string;
|
|
218
|
+
projectId?: string;
|
|
219
|
+
}
|
|
220
|
+
interface ExecutionGetParams {
|
|
221
|
+
includeData?: boolean;
|
|
222
|
+
redactExecutionData?: boolean;
|
|
223
|
+
}
|
|
224
|
+
interface ExecutionRetryRequest {
|
|
225
|
+
loadWorkflow?: boolean;
|
|
226
|
+
}
|
|
168
227
|
interface Credential {
|
|
169
228
|
id: string;
|
|
170
229
|
name: string;
|
|
171
230
|
type: string;
|
|
172
|
-
data?:
|
|
231
|
+
data?: JsonObject;
|
|
173
232
|
isResolvable?: boolean;
|
|
174
233
|
createdAt: string;
|
|
175
234
|
updatedAt: string;
|
|
@@ -177,13 +236,13 @@ interface Credential {
|
|
|
177
236
|
interface CredentialCreate {
|
|
178
237
|
name: string;
|
|
179
238
|
type: string;
|
|
180
|
-
data:
|
|
239
|
+
data: JsonObject;
|
|
181
240
|
projectId?: string;
|
|
182
241
|
}
|
|
183
242
|
interface CredentialUpdate {
|
|
184
243
|
name?: string;
|
|
185
244
|
type?: string;
|
|
186
|
-
data?:
|
|
245
|
+
data?: JsonObject;
|
|
187
246
|
isGlobal?: boolean;
|
|
188
247
|
isResolvable?: boolean;
|
|
189
248
|
isPartialData?: boolean;
|
|
@@ -231,6 +290,9 @@ interface TagListResponse {
|
|
|
231
290
|
data: Tag[];
|
|
232
291
|
nextCursor?: string;
|
|
233
292
|
}
|
|
293
|
+
interface TagMutation {
|
|
294
|
+
name: string;
|
|
295
|
+
}
|
|
234
296
|
interface User {
|
|
235
297
|
id: string;
|
|
236
298
|
email: string;
|
|
@@ -259,6 +321,17 @@ interface UserListResponse {
|
|
|
259
321
|
data: User[];
|
|
260
322
|
nextCursor?: string;
|
|
261
323
|
}
|
|
324
|
+
interface UserListParams extends PaginationParams {
|
|
325
|
+
offset?: number;
|
|
326
|
+
includeRole?: boolean;
|
|
327
|
+
projectId?: string;
|
|
328
|
+
}
|
|
329
|
+
interface UserGetParams {
|
|
330
|
+
includeRole?: boolean;
|
|
331
|
+
}
|
|
332
|
+
interface UserRoleChangeRequest {
|
|
333
|
+
newRoleName: string;
|
|
334
|
+
}
|
|
262
335
|
interface Variable {
|
|
263
336
|
id: string;
|
|
264
337
|
key: string;
|
|
@@ -275,6 +348,10 @@ interface VariableListResponse {
|
|
|
275
348
|
data: Variable[];
|
|
276
349
|
nextCursor?: string;
|
|
277
350
|
}
|
|
351
|
+
interface VariableListParams extends PaginationParams {
|
|
352
|
+
projectId?: string;
|
|
353
|
+
state?: 'empty';
|
|
354
|
+
}
|
|
278
355
|
interface Project {
|
|
279
356
|
id: string;
|
|
280
357
|
name: string;
|
|
@@ -297,6 +374,16 @@ interface ProjectMemberListResponse {
|
|
|
297
374
|
data: ProjectMember[];
|
|
298
375
|
nextCursor?: string;
|
|
299
376
|
}
|
|
377
|
+
interface ProjectMutation {
|
|
378
|
+
name: string;
|
|
379
|
+
}
|
|
380
|
+
interface ProjectMemberRelation {
|
|
381
|
+
userId: string;
|
|
382
|
+
role: string;
|
|
383
|
+
}
|
|
384
|
+
interface ProjectMemberRoleChangeRequest {
|
|
385
|
+
role: string;
|
|
386
|
+
}
|
|
300
387
|
interface DataTable {
|
|
301
388
|
id: string;
|
|
302
389
|
name: string;
|
|
@@ -316,7 +403,7 @@ interface DataTableRow {
|
|
|
316
403
|
id: number;
|
|
317
404
|
createdAt?: string;
|
|
318
405
|
updatedAt?: string;
|
|
319
|
-
[key: string]:
|
|
406
|
+
[key: string]: JsonValue | undefined;
|
|
320
407
|
}
|
|
321
408
|
interface CreateDataTableRequest {
|
|
322
409
|
name: string;
|
|
@@ -338,8 +425,17 @@ interface UpdateColumnRequest {
|
|
|
338
425
|
name?: string;
|
|
339
426
|
index?: number;
|
|
340
427
|
}
|
|
428
|
+
interface DataTableListParams extends PaginationParams {
|
|
429
|
+
filter?: string;
|
|
430
|
+
sortBy?: string;
|
|
431
|
+
}
|
|
432
|
+
interface DataTableRowListParams extends PaginationParams {
|
|
433
|
+
filter?: string;
|
|
434
|
+
sortBy?: string;
|
|
435
|
+
search?: string;
|
|
436
|
+
}
|
|
341
437
|
interface InsertRowsRequest {
|
|
342
|
-
data:
|
|
438
|
+
data: JsonObject[];
|
|
343
439
|
returnType?: 'count' | 'id' | 'all';
|
|
344
440
|
}
|
|
345
441
|
interface InsertRowsCountRequest extends InsertRowsRequest {
|
|
@@ -356,12 +452,12 @@ interface DataTableFilter {
|
|
|
356
452
|
filters: Array<{
|
|
357
453
|
columnName: string;
|
|
358
454
|
condition: 'eq' | 'neq' | 'like' | 'ilike' | 'gt' | 'gte' | 'lt' | 'lte';
|
|
359
|
-
value:
|
|
455
|
+
value: JsonValue;
|
|
360
456
|
}>;
|
|
361
457
|
}
|
|
362
458
|
interface UpdateRowsRequest {
|
|
363
459
|
filter: DataTableFilter;
|
|
364
|
-
data:
|
|
460
|
+
data: JsonObject;
|
|
365
461
|
returnData?: boolean;
|
|
366
462
|
dryRun?: boolean;
|
|
367
463
|
}
|
|
@@ -373,7 +469,7 @@ interface UpdateRowsDataRequest extends UpdateRowsRequest {
|
|
|
373
469
|
}
|
|
374
470
|
interface UpsertRowRequest {
|
|
375
471
|
filter: DataTableFilter;
|
|
376
|
-
data:
|
|
472
|
+
data: JsonObject;
|
|
377
473
|
returnData?: boolean;
|
|
378
474
|
dryRun?: boolean;
|
|
379
475
|
}
|
|
@@ -426,26 +522,38 @@ interface FolderDetail extends Folder {
|
|
|
426
522
|
totalSubFolders?: number;
|
|
427
523
|
totalWorkflows?: number;
|
|
428
524
|
}
|
|
525
|
+
interface FolderListParams extends PaginationParams {
|
|
526
|
+
filter?: string;
|
|
527
|
+
select?: string;
|
|
528
|
+
sortBy?: 'name:asc' | 'name:desc' | 'createdAt:asc' | 'createdAt:desc' | 'updatedAt:asc' | 'updatedAt:desc';
|
|
529
|
+
skip?: string;
|
|
530
|
+
take?: string;
|
|
531
|
+
}
|
|
429
532
|
interface CommunityPackage {
|
|
430
533
|
packageName: string;
|
|
431
534
|
installedVersion: string;
|
|
432
535
|
authorName: string;
|
|
433
536
|
authorEmail: string;
|
|
434
|
-
installedNodes:
|
|
435
|
-
name: string;
|
|
436
|
-
type: string;
|
|
437
|
-
latestVersion: number;
|
|
438
|
-
}>;
|
|
537
|
+
installedNodes: CommunityPackageNode[];
|
|
439
538
|
createdAt: string;
|
|
440
539
|
updatedAt: string;
|
|
441
540
|
updateAvailable?: string;
|
|
442
541
|
failedLoading?: boolean;
|
|
443
542
|
}
|
|
543
|
+
interface CommunityPackageNode {
|
|
544
|
+
name: string;
|
|
545
|
+
type: string;
|
|
546
|
+
latestVersion: number;
|
|
547
|
+
}
|
|
444
548
|
interface InstallCommunityPackageRequest {
|
|
445
549
|
name: string;
|
|
446
550
|
version?: string;
|
|
447
551
|
verify?: boolean;
|
|
448
552
|
}
|
|
553
|
+
interface UpdateCommunityPackageRequest {
|
|
554
|
+
version?: string;
|
|
555
|
+
verify?: boolean;
|
|
556
|
+
}
|
|
449
557
|
interface AuditAdditionalOptions {
|
|
450
558
|
daysAbandonedWorkflow?: number;
|
|
451
559
|
categories?: Array<'credentials' | 'database' | 'nodes' | 'filesystem' | 'instance'>;
|
|
@@ -457,12 +565,32 @@ interface AuditRiskSection {
|
|
|
457
565
|
title: string;
|
|
458
566
|
description: string;
|
|
459
567
|
recommendation: string;
|
|
460
|
-
location?:
|
|
568
|
+
location?: AuditRiskLocation[];
|
|
461
569
|
}
|
|
462
570
|
interface AuditRiskReport {
|
|
463
|
-
risk:
|
|
571
|
+
risk: AuditRisk;
|
|
464
572
|
sections: AuditRiskSection[];
|
|
465
573
|
}
|
|
574
|
+
type AuditRisk = 'credentials' | 'database' | 'filesystem' | 'nodes' | 'execution';
|
|
575
|
+
interface AuditCredentialLocation {
|
|
576
|
+
kind: 'credential';
|
|
577
|
+
id: string;
|
|
578
|
+
name: string;
|
|
579
|
+
}
|
|
580
|
+
interface AuditNodeLocation {
|
|
581
|
+
kind: 'node';
|
|
582
|
+
workflowId: string;
|
|
583
|
+
workflowName: string;
|
|
584
|
+
nodeId: string;
|
|
585
|
+
nodeName: string;
|
|
586
|
+
nodeType: string;
|
|
587
|
+
}
|
|
588
|
+
interface AuditCommunityLocation {
|
|
589
|
+
kind: 'community';
|
|
590
|
+
nodeType: string;
|
|
591
|
+
packageUrl: string;
|
|
592
|
+
}
|
|
593
|
+
type AuditRiskLocation = AuditCredentialLocation | AuditNodeLocation | AuditCommunityLocation;
|
|
466
594
|
interface Audit {
|
|
467
595
|
'Credentials Risk Report'?: AuditRiskReport;
|
|
468
596
|
'Database Risk Report'?: AuditRiskReport;
|
|
@@ -482,6 +610,11 @@ interface InsightsSummary {
|
|
|
482
610
|
timeSaved: InsightsMetric;
|
|
483
611
|
averageRunTime: InsightsMetric;
|
|
484
612
|
}
|
|
613
|
+
interface InsightsSummaryParams {
|
|
614
|
+
startDate?: string;
|
|
615
|
+
endDate?: string;
|
|
616
|
+
projectId?: string;
|
|
617
|
+
}
|
|
485
618
|
interface PullRequest {
|
|
486
619
|
force?: boolean;
|
|
487
620
|
autoPublish?: 'none' | 'all' | 'published';
|
|
@@ -498,20 +631,21 @@ interface SourceControlledFile {
|
|
|
498
631
|
pushed?: boolean;
|
|
499
632
|
isLocalPublished?: boolean;
|
|
500
633
|
isRemoteArchived?: boolean;
|
|
501
|
-
parentFolderId?: string;
|
|
634
|
+
parentFolderId?: string | null;
|
|
502
635
|
folderPath?: string[];
|
|
503
|
-
owner?:
|
|
504
|
-
type: 'personal' | 'team';
|
|
505
|
-
projectId: string;
|
|
506
|
-
projectName: string;
|
|
507
|
-
};
|
|
636
|
+
owner?: SourceControlledOwner;
|
|
508
637
|
publishingError?: string;
|
|
509
638
|
}
|
|
639
|
+
interface SourceControlledOwner {
|
|
640
|
+
type: 'personal' | 'team';
|
|
641
|
+
projectId: string;
|
|
642
|
+
projectName: string;
|
|
643
|
+
}
|
|
510
644
|
interface DiscoverEndpoint {
|
|
511
645
|
method: string;
|
|
512
646
|
path: string;
|
|
513
647
|
operationId: string;
|
|
514
|
-
requestSchema?:
|
|
648
|
+
requestSchema?: JsonObject;
|
|
515
649
|
}
|
|
516
650
|
interface DiscoverResource {
|
|
517
651
|
operations: string[];
|
|
@@ -529,6 +663,11 @@ interface DiscoverResponse {
|
|
|
529
663
|
specUrl: string;
|
|
530
664
|
};
|
|
531
665
|
}
|
|
666
|
+
interface DiscoverParams {
|
|
667
|
+
include?: 'schemas';
|
|
668
|
+
resource?: string;
|
|
669
|
+
operation?: string;
|
|
670
|
+
}
|
|
532
671
|
interface ExportWorkflowsRequest {
|
|
533
672
|
workflowIds: string[];
|
|
534
673
|
}
|
|
@@ -554,6 +693,13 @@ interface ImportPackageResponse {
|
|
|
554
693
|
workflows: ImportPackageWorkflow[];
|
|
555
694
|
bindings: ImportPackageBindings;
|
|
556
695
|
}
|
|
696
|
+
interface ImportPackageOptions {
|
|
697
|
+
projectId?: string;
|
|
698
|
+
folderId?: string;
|
|
699
|
+
credentialMatchingMode?: 'id-only';
|
|
700
|
+
credentialMissingMode?: 'must-preexist';
|
|
701
|
+
workflowConflictPolicy: 'new-version' | 'fail' | 'skip';
|
|
702
|
+
}
|
|
557
703
|
interface ImportPackageConflictError {
|
|
558
704
|
code: number;
|
|
559
705
|
message: string;
|
|
@@ -575,4 +721,4 @@ interface ImportPackageUnprocessableError {
|
|
|
575
721
|
}>;
|
|
576
722
|
}
|
|
577
723
|
|
|
578
|
-
export type
|
|
724
|
+
export { type ActiveVersion, type Audit, type AuditAdditionalOptions, type AuditCommunityLocation, type AuditCredentialLocation, type AuditNodeLocation, type AuditRequest, type AuditRisk, type AuditRiskLocation, type AuditRiskReport, type AuditRiskSection, type CommunityPackage, type CommunityPackageNode, type CreateColumnRequest, type CreateDataTableRequest, type Credential, type CredentialCreate, type CredentialListItem, type CredentialListResponse, type CredentialResponse, type CredentialSharedItem, type CredentialTestResponse, type CredentialUpdate, type DataTable, type DataTableColumn, type DataTableFilter, type DataTableListParams, type DataTableListResponse, type DataTableRow, type DataTableRowListParams, type DataTableRowListResponse, type DeleteRowsBooleanParams, type DeleteRowsDataParams, type DeleteRowsParams, type DiscoverEndpoint, type DiscoverFilter, type DiscoverParams, type DiscoverResource, type DiscoverResponse, type Execution, type ExecutionGetParams, type ExecutionListParams, type ExecutionListResponse, type ExecutionMode, type ExecutionRetryRequest, type ExecutionStatus, type ExportWorkflowsRequest, type Folder, type FolderCreate, type FolderDetail, type FolderListParams, type FolderListResponse, type FolderUpdate, type ImportPackageBindings, type ImportPackageConflictError, type ImportPackageOptions, type ImportPackageResponse, type ImportPackageUnprocessableError, type ImportPackageWorkflow, type InsertRowsAllRequest, type InsertRowsCountRequest, type InsertRowsIdsRequest, type InsertRowsRequest, type InsightsMetric, type InsightsSummary, type InsightsSummaryParams, type InstallCommunityPackageRequest, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type N8nApiError, type N8nClientConfig, PaginationParams, type Project, type ProjectListResponse, type ProjectMember, type ProjectMemberListResponse, type ProjectMemberRelation, type ProjectMemberRoleChangeRequest, type ProjectMutation, type PullRequest, type SharedWorkflow, type SharedWorkflowProject, type SourceControlledFile, type SourceControlledOwner, type StopManyExecutionsRequest, type StopManyExecutionsResponse, type Tag, type TagId, type TagListResponse, type TagMutation, type UpdateColumnRequest, type UpdateCommunityPackageRequest, type UpdateDataTableRequest, type UpdateRowsBooleanRequest, type UpdateRowsDataRequest, type UpdateRowsRequest, type UpsertRowBooleanRequest, type UpsertRowDataRequest, type UpsertRowRequest, type User, type UserCreate, type UserCreateResponse, type UserGetParams, type UserListParams, type UserListResponse, type UserRoleChangeRequest, type Variable, type VariableCreate, type VariableListParams, type VariableListResponse, type Workflow, type WorkflowActivateRequest, type WorkflowConnection, type WorkflowConnectionBranch, type WorkflowConnectionTypeMap, type WorkflowConnections, type WorkflowCreate, type WorkflowGetParams, type WorkflowListParams, type WorkflowListResponse, type WorkflowMeta, type WorkflowNode, type WorkflowNodeTelemetryTags, type WorkflowPinData, type WorkflowSettings, type WorkflowTelemetryTag, type WorkflowUpdate, type WorkflowVersion };
|
package/chunk-3SBD4UJS.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// src/handles/audit.ts
|
|
2
|
-
var AuditHandle = class {
|
|
3
|
-
http;
|
|
4
|
-
constructor(http) {
|
|
5
|
-
this.http = http;
|
|
6
|
-
}
|
|
7
|
-
async generate(data) {
|
|
8
|
-
return this.http.post("/audit", data);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
AuditHandle
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=chunk-3SBD4UJS.js.map
|
package/chunk-FHAZIAHR.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// src/handles/discover.ts
|
|
2
|
-
var DiscoverHandle = class {
|
|
3
|
-
http;
|
|
4
|
-
constructor(http) {
|
|
5
|
-
this.http = http;
|
|
6
|
-
}
|
|
7
|
-
async get(params) {
|
|
8
|
-
return this.http.get("/discover", params);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
DiscoverHandle
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=chunk-FHAZIAHR.js.map
|
package/chunk-M7GX3MEN.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/handles/audit.ts
|
|
2
|
-
var AuditHandle = class {
|
|
3
|
-
|
|
4
|
-
constructor(http) {
|
|
5
|
-
this.http = http;
|
|
6
|
-
}
|
|
7
|
-
async generate(data) {
|
|
8
|
-
return this.http.post("/audit", data);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.AuditHandle = AuditHandle;
|
|
15
|
-
//# sourceMappingURL=chunk-M7GX3MEN.cjs.map
|
package/chunk-NM6A7DX4.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/handles/source-control.ts
|
|
2
|
-
var SourceControlHandle = class {
|
|
3
|
-
|
|
4
|
-
constructor(http) {
|
|
5
|
-
this.http = http;
|
|
6
|
-
}
|
|
7
|
-
async pull(data) {
|
|
8
|
-
return this.http.post("/source-control/pull", data);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.SourceControlHandle = SourceControlHandle;
|
|
15
|
-
//# sourceMappingURL=chunk-NM6A7DX4.cjs.map
|
package/chunk-NSCKTOQK.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/handles/insights.ts
|
|
2
|
-
var InsightsHandle = class {
|
|
3
|
-
|
|
4
|
-
constructor(http) {
|
|
5
|
-
this.http = http;
|
|
6
|
-
}
|
|
7
|
-
async getSummary(params) {
|
|
8
|
-
return this.http.get("/insights/summary", params);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.InsightsHandle = InsightsHandle;
|
|
15
|
-
//# sourceMappingURL=chunk-NSCKTOQK.cjs.map
|
package/chunk-RATHO5IW.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/handles/discover.ts
|
|
2
|
-
var DiscoverHandle = class {
|
|
3
|
-
|
|
4
|
-
constructor(http) {
|
|
5
|
-
this.http = http;
|
|
6
|
-
}
|
|
7
|
-
async get(params) {
|
|
8
|
-
return this.http.get("/discover", params);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.DiscoverHandle = DiscoverHandle;
|
|
15
|
-
//# sourceMappingURL=chunk-RATHO5IW.cjs.map
|