@atom8n/n8n 2.5.3 → 2.5.5

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.
@@ -16,8 +16,8 @@ declare const flagsSchema: z.ZodObject<{
16
16
  retries: z.ZodDefault<z.ZodNumber>;
17
17
  shortOutput: z.ZodOptional<z.ZodBoolean>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- debug: boolean;
20
19
  concurrency: number;
20
+ debug: boolean;
21
21
  retries: number;
22
22
  output?: string | undefined;
23
23
  compare?: string | undefined;
@@ -28,9 +28,9 @@ declare const flagsSchema: z.ZodObject<{
28
28
  skipList?: string | undefined;
29
29
  shortOutput?: boolean | undefined;
30
30
  }, {
31
- debug?: boolean | undefined;
32
31
  output?: string | undefined;
33
32
  concurrency?: number | undefined;
33
+ debug?: boolean | undefined;
34
34
  compare?: string | undefined;
35
35
  ids?: string | undefined;
36
36
  snapshot?: string | undefined;
@@ -5,12 +5,12 @@ declare const flagsSchema: z.ZodObject<{
5
5
  rawOutput: z.ZodOptional<z.ZodBoolean>;
6
6
  file: z.ZodOptional<z.ZodString>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- id?: string | undefined;
9
8
  file?: string | undefined;
9
+ id?: string | undefined;
10
10
  rawOutput?: boolean | undefined;
11
11
  }, {
12
- id?: string | undefined;
13
12
  file?: string | undefined;
13
+ id?: string | undefined;
14
14
  rawOutput?: boolean | undefined;
15
15
  }>;
16
16
  export declare class Execute extends BaseCommand<z.infer<typeof flagsSchema>> {
@@ -9,16 +9,16 @@ declare const flagsSchema: z.ZodObject<{
9
9
  separate: z.ZodOptional<z.ZodBoolean>;
10
10
  decrypted: z.ZodOptional<z.ZodBoolean>;
11
11
  }, "strip", z.ZodTypeAny, {
12
- output?: string | undefined;
13
12
  id?: string | undefined;
13
+ output?: string | undefined;
14
14
  all?: boolean | undefined;
15
15
  backup?: boolean | undefined;
16
16
  pretty?: boolean | undefined;
17
17
  separate?: boolean | undefined;
18
18
  decrypted?: boolean | undefined;
19
19
  }, {
20
- output?: string | undefined;
21
20
  id?: string | undefined;
21
+ output?: string | undefined;
22
22
  all?: boolean | undefined;
23
23
  backup?: boolean | undefined;
24
24
  pretty?: boolean | undefined;
@@ -8,15 +8,15 @@ declare const flagsSchema: z.ZodObject<{
8
8
  pretty: z.ZodOptional<z.ZodBoolean>;
9
9
  separate: z.ZodOptional<z.ZodBoolean>;
10
10
  }, "strip", z.ZodTypeAny, {
11
- output?: string | undefined;
12
11
  id?: string | undefined;
12
+ output?: string | undefined;
13
13
  all?: boolean | undefined;
14
14
  backup?: boolean | undefined;
15
15
  pretty?: boolean | undefined;
16
16
  separate?: boolean | undefined;
17
17
  }, {
18
- output?: string | undefined;
19
18
  id?: string | undefined;
19
+ output?: string | undefined;
20
20
  all?: boolean | undefined;
21
21
  backup?: boolean | undefined;
22
22
  pretty?: boolean | undefined;
@@ -7,13 +7,13 @@ declare const flagsSchema: z.ZodObject<{
7
7
  projectId: z.ZodOptional<z.ZodString>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  separate: boolean;
10
- input?: string | undefined;
11
- projectId?: string | undefined;
12
10
  userId?: string | undefined;
13
- }, {
14
- input?: string | undefined;
15
11
  projectId?: string | undefined;
12
+ input?: string | undefined;
13
+ }, {
16
14
  userId?: string | undefined;
15
+ projectId?: string | undefined;
16
+ input?: string | undefined;
17
17
  separate?: boolean | undefined;
18
18
  }>;
19
19
  export declare class ImportCredentialsCommand extends BaseCommand<z.infer<typeof flagsSchema>> {
@@ -7,13 +7,13 @@ declare const flagsSchema: z.ZodObject<{
7
7
  projectId: z.ZodOptional<z.ZodString>;
8
8
  }, "strip", z.ZodTypeAny, {
9
9
  separate: boolean;
10
- input?: string | undefined;
11
- projectId?: string | undefined;
12
10
  userId?: string | undefined;
13
- }, {
14
- input?: string | undefined;
15
11
  projectId?: string | undefined;
12
+ input?: string | undefined;
13
+ }, {
16
14
  userId?: string | undefined;
15
+ projectId?: string | undefined;
16
+ input?: string | undefined;
17
17
  separate?: boolean | undefined;
18
18
  }>;
19
19
  export declare class ImportWorkflowsCommand extends BaseCommand<z.infer<typeof flagsSchema>> {
@@ -5,12 +5,12 @@ declare const flagsSchema: z.ZodObject<{
5
5
  projectId: z.ZodOptional<z.ZodString>;
6
6
  deleteWorkflowsAndCredentials: z.ZodOptional<z.ZodBoolean>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- projectId?: string | undefined;
9
8
  userId?: string | undefined;
9
+ projectId?: string | undefined;
10
10
  deleteWorkflowsAndCredentials?: boolean | undefined;
11
11
  }, {
12
- projectId?: string | undefined;
13
12
  userId?: string | undefined;
13
+ projectId?: string | undefined;
14
14
  deleteWorkflowsAndCredentials?: boolean | undefined;
15
15
  }>;
16
16
  export declare class Reset extends BaseCommand<z.infer<typeof flagsSchema>> {
@@ -7,15 +7,15 @@ declare const flagsSchema: z.ZodObject<{
7
7
  limit: z.ZodDefault<z.ZodNumber>;
8
8
  concurrency: z.ZodDefault<z.ZodNumber>;
9
9
  }, "strip", z.ZodTypeAny, {
10
- output: string;
11
10
  limit: number;
11
+ output: string;
12
12
  concurrency: number;
13
13
  input?: string | undefined;
14
14
  prompt?: string | undefined;
15
15
  }, {
16
+ limit?: number | undefined;
16
17
  output?: string | undefined;
17
18
  input?: string | undefined;
18
- limit?: number | undefined;
19
19
  concurrency?: number | undefined;
20
20
  prompt?: string | undefined;
21
21
  }>;
@@ -71,13 +71,13 @@ let CliController = CliController_1 = class CliController {
71
71
  this.logger.info(`[cli] Workflow: "${fileData.name}", Nodes: ${fileData.nodes.length}`);
72
72
  try {
73
73
  const user = await this.ownershipService.getInstanceOwner();
74
- const workflowId = await this.syncWorkflow(fileData, user.id, fileModifiedAt);
75
- const workflow = await this.workflowRepository.findOneBy({ id: workflowId });
74
+ const syncResult = await this.syncWorkflow(fileData, user.id, fileModifiedAt);
75
+ const workflow = await this.workflowRepository.findOneBy({ id: syncResult.id });
76
76
  if (!workflow) {
77
77
  res.status(500).json({ error: 'Failed to sync workflow to database' });
78
78
  return;
79
79
  }
80
- this.logger.info(`[cli] Synced workflow: "${workflow.name}" (ID: ${workflowId})`);
80
+ this.logger.info(`[cli] Synced workflow: "${workflow.name}" (ID: ${syncResult.id})`);
81
81
  const triggerNode = workflow.nodes.find((node) => node.type.toLowerCase().includes('trigger') ||
82
82
  node.type.toLowerCase().includes('webhook') ||
83
83
  node.type === 'n8n-nodes-base.start');
@@ -205,13 +205,17 @@ let CliController = CliController_1 = class CliController {
205
205
  includeData: true,
206
206
  unflattenData: true,
207
207
  });
208
- res.json({
208
+ const responsePayload = {
209
209
  success: isSuccess,
210
210
  executionId,
211
211
  status: runResult.status,
212
212
  executionTime: totalTime,
213
213
  data: fullExecution?.data?.resultData ?? runResult.data.resultData,
214
- });
214
+ };
215
+ if (syncResult.syncedWorkflow) {
216
+ responsePayload.syncedWorkflow = syncResult.syncedWorkflow;
217
+ }
218
+ res.json(responsePayload);
215
219
  }
216
220
  catch (error) {
217
221
  if (timeoutId)
@@ -250,12 +254,22 @@ let CliController = CliController_1 = class CliController {
250
254
  name: fileData.name,
251
255
  updatedAt: new Date(),
252
256
  });
257
+ return { id: existing.id };
253
258
  }
254
259
  else {
255
260
  this.logger.info(`[cli] Using existing workflow (ID match): ${existing.id} ` +
256
261
  `(server is newer: ${serverUpdatedAt.toISOString()} > ${fileUpdatedAt.toISOString()})`);
262
+ return {
263
+ id: existing.id,
264
+ syncedWorkflow: {
265
+ name: existing.name,
266
+ nodes: existing.nodes,
267
+ connections: existing.connections,
268
+ settings: existing.settings,
269
+ pinData: existing.pinData ?? {},
270
+ },
271
+ };
257
272
  }
258
- return existing.id;
259
273
  }
260
274
  }
261
275
  if (fileData.name) {
@@ -278,12 +292,22 @@ let CliController = CliController_1 = class CliController {
278
292
  name: fileData.name,
279
293
  updatedAt: new Date(),
280
294
  });
295
+ return { id: existing.id };
281
296
  }
282
297
  else {
283
298
  this.logger.info(`[cli] Using existing workflow (name match): ${existing.id} ` +
284
299
  `(server is newer: ${serverUpdatedAt.toISOString()} > ${fileUpdatedAt.toISOString()})`);
300
+ return {
301
+ id: existing.id,
302
+ syncedWorkflow: {
303
+ name: existing.name,
304
+ nodes: existing.nodes,
305
+ connections: existing.connections,
306
+ settings: existing.settings,
307
+ pinData: existing.pinData ?? {},
308
+ },
309
+ };
285
310
  }
286
- return existing.id;
287
311
  }
288
312
  }
289
313
  const workflowId = fileData.id && (0, utils_1.isWorkflowIdValid)(fileData.id) ? fileData.id : (0, db_1.generateNanoId)();
@@ -308,7 +332,7 @@ let CliController = CliController_1 = class CliController {
308
332
  });
309
333
  await transactionManager.save(sharedWorkflow);
310
334
  });
311
- return workflowId;
335
+ return { id: workflowId };
312
336
  }
313
337
  async health() {
314
338
  return { status: 'ok', timestamp: new Date().toISOString() };
@@ -68,6 +68,10 @@ exports.PROVIDER_NODE_TYPE_MAP = {
68
68
  name: '@n8n/n8n-nodes-langchain.lmChatMistralCloud',
69
69
  version: 1,
70
70
  },
71
+ cursorAgent: {
72
+ name: '@n8n/n8n-nodes-langchain.lmChatCursorAgent',
73
+ version: 1,
74
+ },
71
75
  };
72
76
  exports.NODE_NAMES = {
73
77
  CHAT_TRIGGER: 'When chat message received',
@@ -30,6 +30,7 @@ export declare class ChatHubModelsService {
30
30
  private fetchGroqModels;
31
31
  private fetchXAiGrokModels;
32
32
  private fetchVercelAiGatewayModels;
33
+ private fetchCursorAgentModels;
33
34
  private fetchAgentWorkflowsAsModels;
34
35
  extractModelFromWorkflow({ name, activeVersion, id, shared }: WorkflowEntity, scopes: Scope[]): ChatModelDto | null;
35
36
  private transformAndFilterModels;
@@ -128,6 +128,10 @@ let ChatHubModelsService = class ChatHubModelsService {
128
128
  const rawModels = await this.fetchMistralCloudModels(credentials, additionalData);
129
129
  return { models: this.transformAndFilterModels(rawModels, 'mistralCloud') };
130
130
  }
131
+ case 'cursorAgent': {
132
+ const rawModels = this.fetchCursorAgentModels();
133
+ return { models: this.transformAndFilterModels(rawModels, 'cursorAgent') };
134
+ }
131
135
  case 'n8n':
132
136
  return { models: await this.fetchAgentWorkflowsAsModels(user) };
133
137
  case 'custom-agent':
@@ -530,6 +534,24 @@ let ChatHubModelsService = class ChatHubModelsService {
530
534
  },
531
535
  }, additionalData, chat_hub_constants_1.PROVIDER_NODE_TYPE_MAP.vercelAiGateway, {}, credentials);
532
536
  }
537
+ fetchCursorAgentModels() {
538
+ return [
539
+ { name: 'Auto', value: 'auto' },
540
+ { name: 'Composer 1', value: 'composer-1' },
541
+ { name: 'Composer 1.5', value: 'composer-1.5' },
542
+ { name: 'Gemini 3 Flash', value: 'gemini-3-flash' },
543
+ { name: 'Gemini 3 Pro', value: 'gemini-3-pro' },
544
+ { name: 'GPT-5.1 Codex Max', value: 'gpt-5.1-codex-max' },
545
+ { name: 'GPT-5.1 Codex Max High', value: 'gpt-5.1-codex-max-high' },
546
+ { name: 'GPT-5.2', value: 'gpt-5.2' },
547
+ { name: 'GPT-5.2 High', value: 'gpt-5.2-high' },
548
+ { name: 'Grok', value: 'grok' },
549
+ { name: 'Opus 4.5', value: 'opus-4.5' },
550
+ { name: 'Opus 4.5 Thinking', value: 'opus-4.5-thinking' },
551
+ { name: 'Sonnet 4.5', value: 'sonnet-4.5' },
552
+ { name: 'Sonnet 4.5 Thinking', value: 'sonnet-4.5-thinking' },
553
+ ];
554
+ }
533
555
  async fetchAgentWorkflowsAsModels(user) {
534
556
  const workflowsWithChatTrigger = await this.workflowService.getWorkflowsWithNodesIncluded(user, [n8n_workflow_1.CHAT_TRIGGER_NODE_TYPE], true);
535
557
  const activeWorkflows = workflowsWithChatTrigger
@@ -3,8 +3,8 @@ export declare class ChatHubModule implements ModuleInterface {
3
3
  init(): Promise<void>;
4
4
  settings(): Promise<{
5
5
  enabled: boolean;
6
- providers: Record<"openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud", {
7
- provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
6
+ providers: Record<"openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent", {
7
+ provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent";
8
8
  credentialId: string | null;
9
9
  allowedModels: {
10
10
  model: string;
@@ -16,6 +16,6 @@ export declare class ChatHubModule implements ModuleInterface {
16
16
  enabled?: boolean | undefined;
17
17
  }>;
18
18
  }>;
19
- entities(): Promise<(typeof import("./chat-hub-agent.entity").ChatHubAgent | typeof import("./chat-hub-session.entity").ChatHubSession | typeof import("./chat-hub-message.entity").ChatHubMessage)[]>;
19
+ entities(): Promise<(typeof import("./chat-hub-session.entity").ChatHubSession | typeof import("./chat-hub-message.entity").ChatHubMessage | typeof import("./chat-hub-agent.entity").ChatHubAgent)[]>;
20
20
  shutdown(): Promise<void>;
21
21
  }
@@ -8,8 +8,8 @@ export declare class ChatHubSettingsController {
8
8
  private readonly moduleRegistry;
9
9
  constructor(settings: ChatHubSettingsService, logger: Logger, moduleRegistry: ModuleRegistry);
10
10
  getSettings(_req: AuthenticatedRequest, _res: Response): Promise<{
11
- providers: Record<"openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud", {
12
- provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
11
+ providers: Record<"openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent", {
12
+ provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent";
13
13
  credentialId: string | null;
14
14
  allowedModels: {
15
15
  model: string;
@@ -23,7 +23,7 @@ export declare class ChatHubSettingsController {
23
23
  }>;
24
24
  getProviderSettings(_req: AuthenticatedRequest, _res: Response, provider: ChatHubLLMProvider): Promise<{
25
25
  settings: {
26
- provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
26
+ provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent";
27
27
  credentialId: string | null;
28
28
  allowedModels: {
29
29
  model: string;
@@ -36,7 +36,7 @@ export declare class ChatHubSettingsController {
36
36
  };
37
37
  }>;
38
38
  updateSettings(_req: AuthenticatedRequest, _res: Response, body: UpdateChatSettingsRequest): Promise<{
39
- provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud";
39
+ provider: "openai" | "anthropic" | "google" | "azureOpenAi" | "azureEntraId" | "ollama" | "awsBedrock" | "vercelAiGateway" | "xAiGrok" | "groq" | "openRouter" | "deepSeek" | "cohere" | "mistralCloud" | "cursorAgent";
40
40
  credentialId: string | null;
41
41
  allowedModels: {
42
42
  model: string;
@@ -58,31 +58,31 @@ export declare const chatTriggerParamsShape: z.ZodObject<{
58
58
  allowedFilesMimeTypes: z.ZodOptional<z.ZodString>;
59
59
  responseMode: z.ZodOptional<z.ZodEnum<["streaming", "lastNode", "responseNode", "responseNodes"]>>;
60
60
  }, "strip", z.ZodTypeAny, {
61
- responseMode?: "lastNode" | "responseNode" | "streaming" | "responseNodes" | undefined;
62
61
  allowFileUploads?: boolean | undefined;
63
62
  allowedFilesMimeTypes?: string | undefined;
63
+ responseMode?: "streaming" | "lastNode" | "responseNode" | "responseNodes" | undefined;
64
64
  }, {
65
- responseMode?: "lastNode" | "responseNode" | "streaming" | "responseNodes" | undefined;
66
65
  allowFileUploads?: boolean | undefined;
67
66
  allowedFilesMimeTypes?: string | undefined;
67
+ responseMode?: "streaming" | "lastNode" | "responseNode" | "responseNodes" | undefined;
68
68
  }>>;
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  availableInChat: boolean;
71
+ agentName?: string | undefined;
72
+ agentDescription?: string | undefined;
71
73
  options?: {
72
- responseMode?: "lastNode" | "responseNode" | "streaming" | "responseNodes" | undefined;
73
74
  allowFileUploads?: boolean | undefined;
74
75
  allowedFilesMimeTypes?: string | undefined;
76
+ responseMode?: "streaming" | "lastNode" | "responseNode" | "responseNodes" | undefined;
75
77
  } | undefined;
78
+ }, {
79
+ availableInChat?: boolean | undefined;
76
80
  agentName?: string | undefined;
77
81
  agentDescription?: string | undefined;
78
- }, {
79
82
  options?: {
80
- responseMode?: "lastNode" | "responseNode" | "streaming" | "responseNodes" | undefined;
81
83
  allowFileUploads?: boolean | undefined;
82
84
  allowedFilesMimeTypes?: string | undefined;
85
+ responseMode?: "streaming" | "lastNode" | "responseNode" | "responseNodes" | undefined;
83
86
  } | undefined;
84
- agentName?: string | undefined;
85
- availableInChat?: boolean | undefined;
86
- agentDescription?: string | undefined;
87
87
  }>;
88
88
  export {};
@@ -197,6 +197,7 @@ exports.maxContextWindowTokens = {
197
197
  'mistral-small-2506': 128000,
198
198
  'mistral-small-latest': 128000,
199
199
  },
200
+ cursorAgent: {},
200
201
  };
201
202
  const CONTEXT_WINDOW_SAFETY_FACTOR = 0.95;
202
203
  const getMaxContextWindowTokens = (provider, model) => {
@@ -1,6 +1,6 @@
1
1
  import { Z } from 'zod-class';
2
2
  declare const ChatModelsRequestDto_base: Z.Class<{
3
- credentials: import("zod").ZodRecord<import("zod").ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "n8n", "custom-agent"]>, import("zod").ZodNullable<import("zod").ZodString>>;
3
+ credentials: import("zod").ZodRecord<import("zod").ZodEnum<["openai", "anthropic", "google", "azureOpenAi", "azureEntraId", "ollama", "awsBedrock", "vercelAiGateway", "xAiGrok", "groq", "openRouter", "deepSeek", "cohere", "mistralCloud", "cursorAgent", "n8n", "custom-agent"]>, import("zod").ZodNullable<import("zod").ZodString>>;
4
4
  }>;
5
5
  export declare class ChatModelsRequestDto extends ChatModelsRequestDto_base {
6
6
  }
@@ -9,14 +9,14 @@ declare const flagsSchema: z.ZodObject<{
9
9
  credential: z.ZodOptional<z.ZodString>;
10
10
  userId: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
+ userId?: string | undefined;
12
13
  credential?: string | undefined;
13
14
  uninstall?: boolean | undefined;
14
- userId?: string | undefined;
15
15
  package?: string | undefined;
16
16
  }, {
17
+ userId?: string | undefined;
17
18
  credential?: string | undefined;
18
19
  uninstall?: boolean | undefined;
19
- userId?: string | undefined;
20
20
  package?: string | undefined;
21
21
  }>;
22
22
  export declare class CommunityNode extends BaseCommand<z.infer<typeof flagsSchema>> {
@@ -1,7 +1,7 @@
1
1
  import type { ModuleInterface } from '@n8n/decorators';
2
2
  export declare class InsightsModule implements ModuleInterface {
3
3
  init(): Promise<void>;
4
- entities(): Promise<(typeof import("./database/entities/insights-metadata").InsightsMetadata | typeof import("./database/entities/insights-raw").InsightsRaw | typeof import("./database/entities/insights-by-period").InsightsByPeriod)[]>;
4
+ entities(): Promise<(typeof import("./database/entities/insights-raw").InsightsRaw | typeof import("./database/entities/insights-metadata").InsightsMetadata | typeof import("./database/entities/insights-by-period").InsightsByPeriod)[]>;
5
5
  settings(): Promise<{
6
6
  summary: boolean;
7
7
  dashboard: boolean;
@@ -12,11 +12,11 @@ declare const inputSchema: z.ZodObject<{
12
12
  type: z.ZodLiteral<"chat">;
13
13
  chatInput: z.ZodString;
14
14
  }, "strip", z.ZodTypeAny, {
15
- chatInput: string;
16
15
  type: "chat";
17
- }, {
18
16
  chatInput: string;
17
+ }, {
19
18
  type: "chat";
19
+ chatInput: string;
20
20
  }>, z.ZodObject<{
21
21
  type: z.ZodLiteral<"form">;
22
22
  formData: z.ZodRecord<z.ZodString, z.ZodUnknown>;
@@ -34,65 +34,65 @@ declare const inputSchema: z.ZodObject<{
34
34
  body: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
35
35
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36
36
  }, "strip", z.ZodTypeAny, {
37
- method: "POST" | "OPTIONS" | "DELETE" | "GET" | "HEAD" | "PATCH" | "PUT";
37
+ method: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "OPTIONS";
38
+ headers?: Record<string, string> | undefined;
38
39
  body?: Record<string, unknown> | undefined;
39
40
  query?: Record<string, string> | undefined;
40
- headers?: Record<string, string> | undefined;
41
41
  }, {
42
- method?: "POST" | "OPTIONS" | "DELETE" | "GET" | "HEAD" | "PATCH" | "PUT" | undefined;
42
+ headers?: Record<string, string> | undefined;
43
+ method?: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "OPTIONS" | undefined;
43
44
  body?: Record<string, unknown> | undefined;
44
45
  query?: Record<string, string> | undefined;
45
- headers?: Record<string, string> | undefined;
46
46
  }>;
47
47
  }, "strip", z.ZodTypeAny, {
48
48
  type: "webhook";
49
49
  webhookData: {
50
- method: "POST" | "OPTIONS" | "DELETE" | "GET" | "HEAD" | "PATCH" | "PUT";
50
+ method: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "OPTIONS";
51
+ headers?: Record<string, string> | undefined;
51
52
  body?: Record<string, unknown> | undefined;
52
53
  query?: Record<string, string> | undefined;
53
- headers?: Record<string, string> | undefined;
54
54
  };
55
55
  }, {
56
56
  type: "webhook";
57
57
  webhookData: {
58
- method?: "POST" | "OPTIONS" | "DELETE" | "GET" | "HEAD" | "PATCH" | "PUT" | undefined;
58
+ headers?: Record<string, string> | undefined;
59
+ method?: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "OPTIONS" | undefined;
59
60
  body?: Record<string, unknown> | undefined;
60
61
  query?: Record<string, string> | undefined;
61
- headers?: Record<string, string> | undefined;
62
62
  };
63
63
  }>]>>;
64
64
  }, "strip", z.ZodTypeAny, {
65
65
  workflowId: string;
66
66
  inputs?: {
67
- chatInput: string;
68
67
  type: "chat";
68
+ chatInput: string;
69
69
  } | {
70
70
  type: "form";
71
71
  formData: Record<string, unknown>;
72
72
  } | {
73
73
  type: "webhook";
74
74
  webhookData: {
75
- method: "POST" | "OPTIONS" | "DELETE" | "GET" | "HEAD" | "PATCH" | "PUT";
75
+ method: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "OPTIONS";
76
+ headers?: Record<string, string> | undefined;
76
77
  body?: Record<string, unknown> | undefined;
77
78
  query?: Record<string, string> | undefined;
78
- headers?: Record<string, string> | undefined;
79
79
  };
80
80
  } | undefined;
81
81
  }, {
82
82
  workflowId: string;
83
83
  inputs?: {
84
- chatInput: string;
85
84
  type: "chat";
85
+ chatInput: string;
86
86
  } | {
87
87
  type: "form";
88
88
  formData: Record<string, unknown>;
89
89
  } | {
90
90
  type: "webhook";
91
91
  webhookData: {
92
- method?: "POST" | "OPTIONS" | "DELETE" | "GET" | "HEAD" | "PATCH" | "PUT" | undefined;
92
+ headers?: Record<string, string> | undefined;
93
+ method?: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "OPTIONS" | undefined;
93
94
  body?: Record<string, unknown> | undefined;
94
95
  query?: Record<string, string> | undefined;
95
- headers?: Record<string, string> | undefined;
96
96
  };
97
97
  } | undefined;
98
98
  }>;
@@ -43,7 +43,7 @@ export declare class WorkflowService {
43
43
  private readonly nodeTypes;
44
44
  constructor(logger: Logger, sharedWorkflowRepository: SharedWorkflowRepository, workflowRepository: WorkflowRepository, workflowTagMappingRepository: WorkflowTagMappingRepository, binaryDataService: BinaryDataService, ownershipService: OwnershipService, tagService: TagService, workflowHistoryService: WorkflowHistoryService, externalHooks: ExternalHooks, activeWorkflowManager: ActiveWorkflowManager, roleService: RoleService, workflowSharingService: WorkflowSharingService, projectService: ProjectService, executionRepository: ExecutionRepository, eventService: EventService, globalConfig: GlobalConfig, folderRepository: FolderRepository, workflowFinderService: WorkflowFinderService, workflowPublishHistoryRepository: WorkflowPublishHistoryRepository, workflowValidationService: WorkflowValidationService, nodeTypes: NodeTypes);
45
45
  getMany(user: User, options?: ListQuery.Options, includeScopes?: boolean, includeFolders?: boolean, onlySharedWithMe?: boolean, requiredScopes?: Scope[]): Promise<{
46
- workflows: ((Pick<WorkflowEntity, "id"> & Partial<Pick<WorkflowEntity, "name" | "description" | "tags" | "active" | "versionId" | "activeVersionId" | "createdAt" | "updatedAt">>) | (import("@n8n/db").Folder & {
46
+ workflows: ((Pick<WorkflowEntity, "id"> & Partial<Pick<WorkflowEntity, "name" | "description" | "active" | "versionId" | "activeVersionId" | "createdAt" | "updatedAt" | "tags">>) | (import("@n8n/db").Folder & {
47
47
  workflowCount?: boolean;
48
48
  subFolderCount?: number;
49
49
  } & {
@@ -84,12 +84,12 @@ export declare class WorkflowService {
84
84
  id: string;
85
85
  name?: string | undefined;
86
86
  description?: string | null | undefined;
87
- tags?: import("@n8n/db").TagEntity[] | undefined;
88
87
  active?: boolean | undefined;
89
88
  versionId?: string | undefined;
90
89
  activeVersionId?: string | null | undefined;
91
90
  createdAt?: Date | undefined;
92
91
  updatedAt?: Date | undefined;
92
+ tags?: import("@n8n/db").TagEntity[] | undefined;
93
93
  scopes: Scope[];
94
94
  shared?: SharedWorkflow[] | undefined;
95
95
  resourceType: string;
@@ -51,20 +51,17 @@ export declare class WorkflowsController {
51
51
  sharedWithProjects: import("@n8n/db").SlimProject[];
52
52
  usedCredentials?: import("@n8n/db").CredentialUsedByWorkflow[];
53
53
  name: string;
54
- nodes: import("n8n-workflow").INode[];
55
54
  description: string | null;
56
- tags?: import("@n8n/db").TagEntity[] | undefined;
57
55
  id: string;
58
56
  active: boolean;
59
57
  versionId: string;
60
58
  activeVersionId: string | null;
61
59
  createdAt: Date;
62
60
  updatedAt: Date;
63
- generateId: () => void;
64
- connections: import("n8n-workflow").IConnections;
65
- setUpdateDate: () => void;
61
+ tags?: import("@n8n/db").TagEntity[] | undefined;
62
+ nodes: import("n8n-workflow").INode[];
66
63
  isArchived: boolean;
67
- parentFolder: import("@n8n/db").Folder | null;
64
+ connections: import("n8n-workflow").IConnections;
68
65
  settings?: import("n8n-workflow").IWorkflowSettings | undefined;
69
66
  staticData?: import("n8n-workflow").IDataObject | undefined;
70
67
  meta?: import("n8n-workflow").WorkflowFEMeta | undefined;
@@ -74,7 +71,10 @@ export declare class WorkflowsController {
74
71
  activeVersion: import("@n8n/db").WorkflowHistory | null;
75
72
  versionCounter: number;
76
73
  triggerCount: number;
74
+ parentFolder: import("@n8n/db").Folder | null;
77
75
  testRuns: import("@n8n/db").TestRun[];
76
+ generateId: () => void;
77
+ setUpdateDate: () => void;
78
78
  }>;
79
79
  getAll(req: WorkflowRequest.GetMany, res: express.Response): Promise<void>;
80
80
  getNewName(req: WorkflowRequest.NewName): Promise<{
@@ -88,20 +88,17 @@ export declare class WorkflowsController {
88
88
  sharedWithProjects: import("@n8n/db").SlimProject[];
89
89
  usedCredentials?: import("@n8n/db").CredentialUsedByWorkflow[];
90
90
  name: string;
91
- nodes: import("n8n-workflow").INode[];
92
91
  description: string | null;
93
- tags?: import("@n8n/db").TagEntity[] | undefined;
94
92
  id: string;
95
93
  active: boolean;
96
94
  versionId: string;
97
95
  activeVersionId: string | null;
98
96
  createdAt: Date;
99
97
  updatedAt: Date;
100
- generateId: () => void;
101
- connections: import("n8n-workflow").IConnections;
102
- setUpdateDate: () => void;
98
+ tags?: import("@n8n/db").TagEntity[] | undefined;
99
+ nodes: import("n8n-workflow").INode[];
103
100
  isArchived: boolean;
104
- parentFolder: import("@n8n/db").Folder | null;
101
+ connections: import("n8n-workflow").IConnections;
105
102
  settings?: import("n8n-workflow").IWorkflowSettings | undefined;
106
103
  staticData?: import("n8n-workflow").IDataObject | undefined;
107
104
  meta?: import("n8n-workflow").WorkflowFEMeta | undefined;
@@ -111,7 +108,10 @@ export declare class WorkflowsController {
111
108
  activeVersion: import("@n8n/db").WorkflowHistory | null;
112
109
  versionCounter: number;
113
110
  triggerCount: number;
111
+ parentFolder: import("@n8n/db").Folder | null;
114
112
  testRuns: import("@n8n/db").TestRun[];
113
+ generateId: () => void;
114
+ setUpdateDate: () => void;
115
115
  } | {
116
116
  scopes: import("@n8n/permissions").Scope[];
117
117
  checksum: string;