@atom8n/n8n 2.4.0 → 2.4.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.
@@ -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
- concurrency: number;
20
19
  debug: boolean;
20
+ concurrency: number;
21
21
  retries: number;
22
22
  output?: string | undefined;
23
23
  ids?: 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;
31
32
  output?: string | undefined;
32
33
  concurrency?: number | undefined;
33
- debug?: boolean | undefined;
34
34
  ids?: string | undefined;
35
35
  compare?: string | undefined;
36
36
  snapshot?: string | undefined;
@@ -10,16 +10,16 @@ declare const flagsSchema: z.ZodObject<{
10
10
  decrypted: z.ZodOptional<z.ZodBoolean>;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  output?: string | undefined;
13
- all?: boolean | undefined;
14
13
  id?: string | undefined;
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
20
  output?: string | undefined;
21
- all?: boolean | undefined;
22
21
  id?: string | undefined;
22
+ all?: boolean | undefined;
23
23
  backup?: boolean | undefined;
24
24
  pretty?: boolean | undefined;
25
25
  separate?: boolean | undefined;
@@ -9,15 +9,15 @@ declare const flagsSchema: z.ZodObject<{
9
9
  separate: z.ZodOptional<z.ZodBoolean>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  output?: string | undefined;
12
- all?: boolean | undefined;
13
12
  id?: string | undefined;
13
+ all?: boolean | undefined;
14
14
  backup?: boolean | undefined;
15
15
  pretty?: boolean | undefined;
16
16
  separate?: boolean | undefined;
17
17
  }, {
18
18
  output?: string | undefined;
19
- all?: boolean | undefined;
20
19
  id?: string | undefined;
20
+ all?: boolean | undefined;
21
21
  backup?: boolean | undefined;
22
22
  pretty?: boolean | undefined;
23
23
  separate?: boolean | undefined;
@@ -6,12 +6,12 @@ declare const flagsSchema: z.ZodObject<{
6
6
  all: z.ZodOptional<z.ZodBoolean>;
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  id: string;
9
- all?: boolean | undefined;
10
9
  versionId?: string | undefined;
10
+ all?: boolean | undefined;
11
11
  }, {
12
12
  id: string;
13
- all?: boolean | undefined;
14
13
  versionId?: string | undefined;
14
+ all?: boolean | undefined;
15
15
  }>;
16
16
  export declare class PublishWorkflowCommand extends BaseCommand<z.infer<typeof flagsSchema>> {
17
17
  run(): Promise<void>;
@@ -8,15 +8,15 @@ declare const flagsSchema: z.ZodObject<{
8
8
  concurrency: z.ZodDefault<z.ZodNumber>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  output: string;
11
- concurrency: number;
12
11
  limit: number;
12
+ concurrency: number;
13
13
  input?: string | undefined;
14
14
  prompt?: string | undefined;
15
15
  }, {
16
- input?: string | undefined;
17
16
  output?: string | undefined;
18
- concurrency?: number | undefined;
17
+ input?: string | undefined;
19
18
  limit?: number | undefined;
19
+ concurrency?: number | undefined;
20
20
  prompt?: string | undefined;
21
21
  }>;
22
22
  export declare class TTWFGenerateCommand extends BaseCommand<z.infer<typeof flagsSchema>> {
@@ -4,11 +4,11 @@ declare const flagsSchema: z.ZodObject<{
4
4
  all: z.ZodOptional<z.ZodBoolean>;
5
5
  id: z.ZodOptional<z.ZodString>;
6
6
  }, "strip", z.ZodTypeAny, {
7
- all?: boolean | undefined;
8
7
  id?: string | undefined;
9
- }, {
10
8
  all?: boolean | undefined;
9
+ }, {
11
10
  id?: string | undefined;
11
+ all?: boolean | undefined;
12
12
  }>;
13
13
  export declare class UnpublishWorkflowCommand extends BaseCommand<z.infer<typeof flagsSchema>> {
14
14
  run(): Promise<void>;
@@ -5,13 +5,13 @@ declare const flagsSchema: z.ZodObject<{
5
5
  all: z.ZodOptional<z.ZodBoolean>;
6
6
  id: z.ZodOptional<z.ZodString>;
7
7
  }, "strip", z.ZodTypeAny, {
8
- all?: boolean | undefined;
9
8
  id?: string | undefined;
10
9
  active?: string | undefined;
11
- }, {
12
10
  all?: boolean | undefined;
11
+ }, {
13
12
  id?: string | undefined;
14
13
  active?: string | undefined;
14
+ all?: boolean | undefined;
15
15
  }>;
16
16
  export declare class UpdateWorkflowCommand extends BaseCommand<z.infer<typeof flagsSchema>> {
17
17
  run(): Promise<void>;
@@ -4,10 +4,10 @@ export declare class AnnotationTagsController {
4
4
  private readonly annotationTagService;
5
5
  constructor(annotationTagService: AnnotationTagService);
6
6
  getAll(req: AnnotationTagsRequest.GetAll): Promise<{
7
+ id: string;
7
8
  name: string;
8
9
  createdAt: Date;
9
10
  updatedAt: Date;
10
- id: string;
11
11
  }[]>;
12
12
  createTag(req: AnnotationTagsRequest.Create): Promise<import("@n8n/db").AnnotationTagEntity>;
13
13
  updateTag(req: AnnotationTagsRequest.Update): Promise<import("@n8n/db").AnnotationTagEntity>;
@@ -23,5 +23,5 @@ export type EventNamesNodeType = (typeof eventNamesNode)[number];
23
23
  export type EventNamesExecutionType = (typeof eventNamesExecution)[number];
24
24
  export type EventNamesGenericType = (typeof eventNamesGeneric)[number];
25
25
  export type EventNamesTypes = EventNamesAuditType | EventNamesWorkflowType | EventNamesNodeType | EventNamesExecutionType | EventNamesGenericType | EventNamesAiNodesType | EventNamesRunnerType | EventNamesQueueType | 'n8n.destination.test';
26
- export declare const eventNamesAll: ("n8n.worker.started" | "n8n.audit.user.login.success" | "n8n.audit.user.login.failed" | "n8n.audit.user.signedup" | "n8n.audit.user.updated" | "n8n.audit.user.deleted" | "n8n.audit.user.invited" | "n8n.audit.user.invitation.accepted" | "n8n.audit.user.reinvited" | "n8n.audit.user.email.failed" | "n8n.audit.user.reset.requested" | "n8n.audit.user.reset" | "n8n.audit.user.credentials.created" | "n8n.audit.user.credentials.shared" | "n8n.audit.user.credentials.updated" | "n8n.audit.user.credentials.deleted" | "n8n.audit.user.api.created" | "n8n.audit.user.api.deleted" | "n8n.audit.user.mfa.enabled" | "n8n.audit.user.mfa.disabled" | "n8n.audit.package.installed" | "n8n.audit.package.updated" | "n8n.audit.package.deleted" | "n8n.audit.workflow.created" | "n8n.audit.workflow.deleted" | "n8n.audit.workflow.updated" | "n8n.audit.workflow.archived" | "n8n.audit.workflow.unarchived" | "n8n.audit.workflow.activated" | "n8n.audit.workflow.deactivated" | "n8n.audit.variable.created" | "n8n.audit.variable.updated" | "n8n.audit.variable.deleted" | "n8n.workflow.started" | "n8n.workflow.success" | "n8n.workflow.failed" | "n8n.workflow.cancelled" | "n8n.node.started" | "n8n.node.finished" | "n8n.worker.stopped" | "n8n.ai.memory.get.messages" | "n8n.ai.memory.added.message" | "n8n.ai.output.parser.parsed" | "n8n.ai.retriever.get.relevant.documents" | "n8n.ai.embeddings.embedded.document" | "n8n.ai.embeddings.embedded.query" | "n8n.ai.document.processed" | "n8n.ai.text.splitter.split" | "n8n.ai.tool.called" | "n8n.ai.vector.store.searched" | "n8n.ai.llm.generated" | "n8n.ai.llm.error" | "n8n.ai.vector.store.populated" | "n8n.ai.vector.store.updated" | "n8n.runner.task.requested" | "n8n.runner.response.received" | "n8n.queue.job.enqueued" | "n8n.queue.job.dequeued" | "n8n.queue.job.completed" | "n8n.queue.job.failed" | "n8n.queue.job.stalled")[];
26
+ export declare const eventNamesAll: ("n8n.audit.user.login.success" | "n8n.audit.user.login.failed" | "n8n.audit.user.signedup" | "n8n.audit.user.updated" | "n8n.audit.user.deleted" | "n8n.audit.user.invited" | "n8n.audit.user.invitation.accepted" | "n8n.audit.user.reinvited" | "n8n.audit.user.email.failed" | "n8n.audit.user.reset.requested" | "n8n.audit.user.reset" | "n8n.audit.user.credentials.created" | "n8n.audit.user.credentials.shared" | "n8n.audit.user.credentials.updated" | "n8n.audit.user.credentials.deleted" | "n8n.audit.user.api.created" | "n8n.audit.user.api.deleted" | "n8n.audit.user.mfa.enabled" | "n8n.audit.user.mfa.disabled" | "n8n.audit.package.installed" | "n8n.audit.package.updated" | "n8n.audit.package.deleted" | "n8n.audit.workflow.created" | "n8n.audit.workflow.deleted" | "n8n.audit.workflow.updated" | "n8n.audit.workflow.archived" | "n8n.audit.workflow.unarchived" | "n8n.audit.workflow.activated" | "n8n.audit.workflow.deactivated" | "n8n.audit.variable.created" | "n8n.audit.variable.updated" | "n8n.audit.variable.deleted" | "n8n.workflow.started" | "n8n.workflow.success" | "n8n.workflow.failed" | "n8n.workflow.cancelled" | "n8n.node.started" | "n8n.node.finished" | "n8n.worker.started" | "n8n.worker.stopped" | "n8n.ai.memory.get.messages" | "n8n.ai.memory.added.message" | "n8n.ai.output.parser.parsed" | "n8n.ai.retriever.get.relevant.documents" | "n8n.ai.embeddings.embedded.document" | "n8n.ai.embeddings.embedded.query" | "n8n.ai.document.processed" | "n8n.ai.text.splitter.split" | "n8n.ai.tool.called" | "n8n.ai.vector.store.searched" | "n8n.ai.llm.generated" | "n8n.ai.llm.error" | "n8n.ai.vector.store.populated" | "n8n.ai.vector.store.updated" | "n8n.runner.task.requested" | "n8n.runner.response.received" | "n8n.queue.job.enqueued" | "n8n.queue.job.dequeued" | "n8n.queue.job.completed" | "n8n.queue.job.failed" | "n8n.queue.job.stalled")[];
27
27
  export type EventMessageTypes = EventMessageGeneric | EventMessageWorkflow | EventMessageAudit | EventMessageNode | EventMessageExecution | EventMessageAiNode | EventMessageQueue | EventMessageRunner;
@@ -35,30 +35,30 @@ declare const inputSchema: z.ZodObject<{
35
35
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
38
- headers?: Record<string, string> | undefined;
39
38
  body?: Record<string, unknown> | undefined;
40
39
  query?: Record<string, string> | undefined;
41
- }, {
42
40
  headers?: Record<string, string> | undefined;
43
- method?: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH" | undefined;
41
+ }, {
44
42
  body?: Record<string, unknown> | undefined;
43
+ method?: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH" | undefined;
45
44
  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
50
  method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
51
- headers?: Record<string, string> | undefined;
52
51
  body?: Record<string, unknown> | undefined;
53
52
  query?: Record<string, string> | undefined;
53
+ headers?: Record<string, string> | undefined;
54
54
  };
55
55
  }, {
56
56
  type: "webhook";
57
57
  webhookData: {
58
- headers?: Record<string, string> | undefined;
59
- method?: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH" | undefined;
60
58
  body?: Record<string, unknown> | undefined;
59
+ method?: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH" | undefined;
61
60
  query?: Record<string, string> | undefined;
61
+ headers?: Record<string, string> | undefined;
62
62
  };
63
63
  }>]>>;
64
64
  }, "strip", z.ZodTypeAny, {
@@ -73,9 +73,9 @@ declare const inputSchema: z.ZodObject<{
73
73
  type: "webhook";
74
74
  webhookData: {
75
75
  method: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH";
76
- headers?: Record<string, string> | undefined;
77
76
  body?: Record<string, unknown> | undefined;
78
77
  query?: Record<string, string> | undefined;
78
+ headers?: Record<string, string> | undefined;
79
79
  };
80
80
  } | undefined;
81
81
  }, {
@@ -89,10 +89,10 @@ declare const inputSchema: z.ZodObject<{
89
89
  } | {
90
90
  type: "webhook";
91
91
  webhookData: {
92
- headers?: Record<string, string> | undefined;
93
- method?: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH" | undefined;
94
92
  body?: Record<string, unknown> | undefined;
93
+ method?: "GET" | "DELETE" | "HEAD" | "OPTIONS" | "POST" | "PUT" | "PATCH" | undefined;
95
94
  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" | "createdAt" | "updatedAt" | "active" | "tags" | "versionId" | "activeVersionId">>) | (import("@n8n/db").Folder & {
46
+ workflows: ((Pick<WorkflowEntity, "id"> & Partial<Pick<WorkflowEntity, "description" | "tags" | "name" | "active" | "versionId" | "activeVersionId" | "createdAt" | "updatedAt">>) | (import("@n8n/db").Folder & {
47
47
  workflowCount?: boolean;
48
48
  subFolderCount?: number;
49
49
  } & {
@@ -82,14 +82,14 @@ export declare class WorkflowService {
82
82
  getWorkflowsWithNodesIncluded(user: User, nodeTypes: string[], includeNodes?: boolean): Promise<{
83
83
  nodes?: INode[] | undefined;
84
84
  id: string;
85
- name?: string | undefined;
86
85
  description?: string | null | undefined;
87
- createdAt?: Date | undefined;
88
- updatedAt?: Date | undefined;
89
- active?: boolean | undefined;
90
86
  tags?: import("@n8n/db").TagEntity[] | undefined;
87
+ name?: string | undefined;
88
+ active?: boolean | undefined;
91
89
  versionId?: string | undefined;
92
90
  activeVersionId?: string | null | undefined;
91
+ createdAt?: Date | undefined;
92
+ updatedAt?: Date | undefined;
93
93
  scopes: Scope[];
94
94
  shared?: SharedWorkflow[] | undefined;
95
95
  resourceType: string;
@@ -50,30 +50,30 @@ export declare class WorkflowsController {
50
50
  homeProject?: import("@n8n/db").SlimProject | null;
51
51
  sharedWithProjects: import("@n8n/db").SlimProject[];
52
52
  usedCredentials?: import("@n8n/db").CredentialUsedByWorkflow[];
53
- name: string;
54
53
  description: string | null;
55
- nodes: import("n8n-workflow").INode[];
54
+ tags?: import("@n8n/db").TagEntity[] | undefined;
55
+ id: string;
56
+ name: string;
57
+ active: boolean;
58
+ versionId: string;
59
+ activeVersionId: string | null;
56
60
  createdAt: Date;
57
61
  updatedAt: Date;
58
- setUpdateDate: () => void;
59
- id: string;
60
62
  generateId: () => void;
61
- active: boolean;
62
- isArchived: boolean;
63
+ nodes: import("n8n-workflow").INode[];
63
64
  connections: import("n8n-workflow").IConnections;
65
+ setUpdateDate: () => void;
66
+ parentFolder: import("@n8n/db").Folder | null;
67
+ isArchived: boolean;
64
68
  settings?: import("n8n-workflow").IWorkflowSettings | undefined;
65
69
  staticData?: import("n8n-workflow").IDataObject | undefined;
66
70
  meta?: import("n8n-workflow").WorkflowFEMeta | undefined;
67
- tags?: import("@n8n/db").TagEntity[] | undefined;
68
71
  tagMappings: import("@n8n/db").WorkflowTagMapping[];
69
72
  statistics: import("@n8n/db").WorkflowStatistics[];
70
73
  pinData?: import("@n8n/db").ISimplifiedPinData | undefined;
71
- versionId: string;
72
- activeVersionId: string | null;
73
74
  activeVersion: import("@n8n/db").WorkflowHistory | null;
74
75
  versionCounter: number;
75
76
  triggerCount: number;
76
- parentFolder: import("@n8n/db").Folder | null;
77
77
  testRuns: import("@n8n/db").TestRun[];
78
78
  }>;
79
79
  getAll(req: WorkflowRequest.GetMany, res: express.Response): Promise<void>;
@@ -87,30 +87,30 @@ export declare class WorkflowsController {
87
87
  homeProject?: import("@n8n/db").SlimProject | null;
88
88
  sharedWithProjects: import("@n8n/db").SlimProject[];
89
89
  usedCredentials?: import("@n8n/db").CredentialUsedByWorkflow[];
90
- name: string;
91
90
  description: string | null;
92
- nodes: import("n8n-workflow").INode[];
91
+ tags?: import("@n8n/db").TagEntity[] | undefined;
92
+ id: string;
93
+ name: string;
94
+ active: boolean;
95
+ versionId: string;
96
+ activeVersionId: string | null;
93
97
  createdAt: Date;
94
98
  updatedAt: Date;
95
- setUpdateDate: () => void;
96
- id: string;
97
99
  generateId: () => void;
98
- active: boolean;
99
- isArchived: boolean;
100
+ nodes: import("n8n-workflow").INode[];
100
101
  connections: import("n8n-workflow").IConnections;
102
+ setUpdateDate: () => void;
103
+ parentFolder: import("@n8n/db").Folder | null;
104
+ isArchived: boolean;
101
105
  settings?: import("n8n-workflow").IWorkflowSettings | undefined;
102
106
  staticData?: import("n8n-workflow").IDataObject | undefined;
103
107
  meta?: import("n8n-workflow").WorkflowFEMeta | undefined;
104
- tags?: import("@n8n/db").TagEntity[] | undefined;
105
108
  tagMappings: import("@n8n/db").WorkflowTagMapping[];
106
109
  statistics: import("@n8n/db").WorkflowStatistics[];
107
110
  pinData?: import("@n8n/db").ISimplifiedPinData | undefined;
108
- versionId: string;
109
- activeVersionId: string | null;
110
111
  activeVersion: import("@n8n/db").WorkflowHistory | null;
111
112
  versionCounter: number;
112
113
  triggerCount: number;
113
- parentFolder: import("@n8n/db").Folder | null;
114
114
  testRuns: import("@n8n/db").TestRun[];
115
115
  } | {
116
116
  scopes: import("@n8n/permissions").Scope[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom8n/n8n",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "n8n Workflow Automation Tool",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index.d.ts",
@@ -151,7 +151,7 @@
151
151
  "lodash": "4.17.21",
152
152
  "luxon": "3.4.4",
153
153
  "mysql2": "3.15.0",
154
- "n8n-core": "npm:@atom8n/n8n-core@2.4.0",
154
+ "n8n-core": "npm:@atom8n/n8n-core@2.4.2",
155
155
  "n8n-editor-ui": "npm:@atom8n/n8n-editor-ui@2.4.0",
156
156
  "n8n-nodes-base": "npm:@atom8n/n8n-nodes-base@2.4.0",
157
157
  "n8n-workflow": "npm:@atom8n/n8n-workflow@2.4.0",