@atom8n/n8n 2.4.7 → 2.5.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.
Files changed (231) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/chat/chat-service.types.d.ts +6 -6
  3. package/dist/commands/execute-batch.d.ts +2 -2
  4. package/dist/commands/execute.js +0 -0
  5. package/dist/commands/import/credentials.d.ts +2 -2
  6. package/dist/commands/import/credentials.js +0 -0
  7. package/dist/commands/import/workflow.d.ts +2 -2
  8. package/dist/commands/ldap/reset.d.ts +2 -2
  9. package/dist/commands/mcp.d.ts +23 -0
  10. package/dist/commands/mcp.js +315 -0
  11. package/dist/commands/run.d.ts +23 -0
  12. package/dist/commands/run.js +162 -0
  13. package/dist/controllers/annotation-tags.controller.ee.d.ts +1 -1
  14. package/dist/controllers/cli.controller.d.ts +26 -0
  15. package/dist/controllers/cli.controller.js +334 -0
  16. package/dist/controllers/orchestration.controller.js +0 -0
  17. package/dist/controllers/users.controller.d.ts +1 -1
  18. package/dist/environments.ee/source-control/source-control-status.service.ee.d.ts +2 -2
  19. package/dist/environments.ee/source-control/source-control.controller.ee.d.ts +4 -4
  20. package/dist/environments.ee/source-control/source-control.service.ee.d.ts +2 -2
  21. package/dist/environments.ee/source-control/types/source-control-set-branch.js +0 -0
  22. package/dist/eventbus/event-message-classes/index.js +0 -0
  23. package/dist/events/relays/workflow-failure-notification.event-relay.d.ts +13 -0
  24. package/dist/events/relays/workflow-failure-notification.event-relay.js +77 -0
  25. package/dist/executions/execution-data/types.d.ts +17 -0
  26. package/dist/executions/execution-data/types.js +2 -0
  27. package/dist/executions/failed-run-factory.d.ts +4 -0
  28. package/dist/executions/failed-run-factory.js +71 -0
  29. package/dist/index.d.ts +2 -1
  30. package/dist/index.js +8 -0
  31. package/dist/interfaces.d.ts +1 -1
  32. package/dist/license.js +1 -1
  33. package/dist/middlewares/webview-frame-options.d.ts +2 -0
  34. package/dist/middlewares/webview-frame-options.js +22 -0
  35. package/dist/modules/chat-hub/chat-hub-extractor.d.ts +22 -0
  36. package/dist/modules/chat-hub/chat-hub-extractor.js +63 -0
  37. package/dist/modules/dynamic-credentials.ee/credential-resolvers/storage/dynamic-credential-user-entry-storage.d.ts +11 -0
  38. package/dist/modules/dynamic-credentials.ee/credential-resolvers/storage/dynamic-credential-user-entry-storage.js +58 -0
  39. package/dist/modules/dynamic-credentials.ee/database/entities/dynamic-credential-user-entry.d.ts +12 -0
  40. package/dist/modules/dynamic-credentials.ee/database/entities/dynamic-credential-user-entry.js +64 -0
  41. package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.d.ts +5 -0
  42. package/dist/modules/dynamic-credentials.ee/database/repositories/dynamic-credential-user-entry.repository.js +25 -0
  43. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.d.ts +5 -0
  44. package/dist/modules/dynamic-credentials.ee/dynamic-credentials.config.js +36 -0
  45. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.d.ts +12 -0
  46. package/dist/modules/dynamic-credentials.ee/services/dynamic-credential-cors.service.js +69 -0
  47. package/dist/modules/dynamic-credentials.ee/services/resolver-config-expression.service.d.ts +7 -0
  48. package/dist/modules/dynamic-credentials.ee/services/resolver-config-expression.service.js +46 -0
  49. package/dist/modules/insights/database/entities/insights-metadata.js +1 -1
  50. package/dist/modules/insights/database/repositories/insights-by-period-query.helper.js +4 -1
  51. package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +1 -1
  52. package/dist/modules/insights/insights.module.d.ts +1 -1
  53. package/dist/modules/insights/insights.service.d.ts +1 -1
  54. package/dist/modules/log-streaming.ee/database/entities/event-destination.entity.d.ts +6 -0
  55. package/dist/modules/log-streaming.ee/database/entities/event-destination.entity.js +28 -0
  56. package/dist/modules/log-streaming.ee/database/entities/index.d.ts +1 -0
  57. package/dist/modules/log-streaming.ee/database/entities/index.js +5 -0
  58. package/dist/modules/log-streaming.ee/database/repositories/event-destination.repository.d.ts +5 -0
  59. package/dist/modules/log-streaming.ee/database/repositories/event-destination.repository.js +25 -0
  60. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-from-db.d.ts +4 -0
  61. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-from-db.js +24 -0
  62. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-sentry.ee.d.ts +17 -0
  63. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-sentry.ee.js +131 -0
  64. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-syslog.ee.d.ts +22 -0
  65. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-syslog.ee.js +116 -0
  66. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.d.ts +35 -0
  67. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination-webhook.ee.js +328 -0
  68. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination.ee.d.ts +28 -0
  69. package/dist/modules/log-streaming.ee/destinations/message-event-bus-destination.ee.js +74 -0
  70. package/dist/modules/log-streaming.ee/log-streaming-destination.service.d.ts +32 -0
  71. package/dist/modules/log-streaming.ee/log-streaming-destination.service.js +175 -0
  72. package/dist/modules/log-streaming.ee/log-streaming.controller.d.ts +15 -0
  73. package/dist/modules/log-streaming.ee/log-streaming.controller.js +149 -0
  74. package/dist/modules/log-streaming.ee/log-streaming.module.d.ts +5 -0
  75. package/dist/modules/log-streaming.ee/log-streaming.module.js +66 -0
  76. package/dist/modules/mcp/mcp-oauth.helpers.js +0 -0
  77. package/dist/modules/mcp/mcp.oauth-clients.controller.js +0 -0
  78. package/dist/modules/mcp/tools/execute-workflow.tool.d.ts +10 -10
  79. package/dist/modules/mcp/tools/schemas.d.ts +10 -10
  80. package/dist/modules/source-control.ee/constants.d.ts +17 -0
  81. package/dist/modules/source-control.ee/constants.js +22 -0
  82. package/dist/modules/source-control.ee/middleware/source-control-enabled-middleware.ee.d.ts +2 -0
  83. package/dist/modules/source-control.ee/middleware/source-control-enabled-middleware.ee.js +18 -0
  84. package/dist/modules/source-control.ee/source-control-export.service.ee.d.ts +37 -0
  85. package/dist/modules/source-control.ee/source-control-export.service.ee.js +426 -0
  86. package/dist/modules/source-control.ee/source-control-git.service.ee.d.ts +59 -0
  87. package/dist/modules/source-control.ee/source-control-git.service.ee.js +427 -0
  88. package/dist/modules/source-control.ee/source-control-helper.ee.d.ts +49 -0
  89. package/dist/modules/source-control.ee/source-control-helper.ee.js +241 -0
  90. package/dist/modules/source-control.ee/source-control-import.service.ee.d.ts +110 -0
  91. package/dist/modules/source-control.ee/source-control-import.service.ee.js +957 -0
  92. package/dist/modules/source-control.ee/source-control-preferences.service.ee.d.ts +46 -0
  93. package/dist/modules/source-control.ee/source-control-preferences.service.ee.js +309 -0
  94. package/dist/modules/source-control.ee/source-control-resource-helper.d.ts +4 -0
  95. package/dist/modules/source-control.ee/source-control-resource-helper.js +20 -0
  96. package/dist/modules/source-control.ee/source-control-scoped.service.d.ts +17 -0
  97. package/dist/modules/source-control.ee/source-control-scoped.service.js +134 -0
  98. package/dist/modules/source-control.ee/source-control-status.service.ee.d.ts +90 -0
  99. package/dist/modules/source-control.ee/source-control-status.service.ee.js +596 -0
  100. package/dist/modules/source-control.ee/source-control.config.d.ts +3 -0
  101. package/dist/modules/source-control.ee/source-control.config.js +26 -0
  102. package/dist/modules/source-control.ee/source-control.controller.ee.d.ts +157 -0
  103. package/dist/modules/source-control.ee/source-control.controller.ee.js +347 -0
  104. package/dist/modules/source-control.ee/source-control.module.d.ts +4 -0
  105. package/dist/modules/source-control.ee/source-control.module.js +59 -0
  106. package/dist/modules/source-control.ee/source-control.service.ee.d.ts +125 -0
  107. package/dist/modules/source-control.ee/source-control.service.ee.js +466 -0
  108. package/dist/modules/source-control.ee/types/export-result.d.ts +10 -0
  109. package/dist/modules/source-control.ee/types/export-result.js +2 -0
  110. package/dist/modules/source-control.ee/types/exportable-credential.d.ts +14 -0
  111. package/dist/modules/source-control.ee/types/exportable-credential.js +2 -0
  112. package/dist/modules/source-control.ee/types/exportable-folders.d.ts +11 -0
  113. package/dist/modules/source-control.ee/types/exportable-folders.js +2 -0
  114. package/dist/modules/source-control.ee/types/exportable-project.d.ts +17 -0
  115. package/dist/modules/source-control.ee/types/exportable-project.js +2 -0
  116. package/dist/modules/source-control.ee/types/exportable-tags.d.ts +5 -0
  117. package/dist/modules/source-control.ee/types/exportable-tags.js +2 -0
  118. package/dist/modules/source-control.ee/types/exportable-variable.d.ts +7 -0
  119. package/dist/modules/source-control.ee/types/exportable-variable.js +2 -0
  120. package/dist/modules/source-control.ee/types/exportable-workflow.d.ts +14 -0
  121. package/dist/modules/source-control.ee/types/exportable-workflow.js +2 -0
  122. package/dist/modules/source-control.ee/types/import-result.d.ts +20 -0
  123. package/dist/modules/source-control.ee/types/import-result.js +2 -0
  124. package/dist/modules/source-control.ee/types/key-pair-type.d.ts +1 -0
  125. package/dist/modules/source-control.ee/types/key-pair-type.js +2 -0
  126. package/dist/modules/source-control.ee/types/key-pair.d.ts +4 -0
  127. package/dist/modules/source-control.ee/types/key-pair.js +2 -0
  128. package/dist/modules/source-control.ee/types/requests.d.ts +21 -0
  129. package/dist/modules/source-control.ee/types/requests.js +2 -0
  130. package/dist/modules/source-control.ee/types/resource-owner.d.ts +17 -0
  131. package/dist/modules/source-control.ee/types/resource-owner.js +2 -0
  132. package/dist/modules/source-control.ee/types/source-control-commit.d.ts +3 -0
  133. package/dist/modules/source-control.ee/types/source-control-commit.js +20 -0
  134. package/dist/modules/source-control.ee/types/source-control-context.d.ts +7 -0
  135. package/dist/modules/source-control.ee/types/source-control-context.js +16 -0
  136. package/dist/modules/source-control.ee/types/source-control-disconnect.d.ts +3 -0
  137. package/dist/modules/source-control.ee/types/source-control-disconnect.js +21 -0
  138. package/dist/modules/source-control.ee/types/source-control-generate-key-pair.d.ts +4 -0
  139. package/dist/modules/source-control.ee/types/source-control-generate-key-pair.js +21 -0
  140. package/dist/modules/source-control.ee/types/source-control-get-status.d.ts +10 -0
  141. package/dist/modules/source-control.ee/types/source-control-get-status.js +42 -0
  142. package/dist/modules/source-control.ee/types/source-control-preferences.d.ts +17 -0
  143. package/dist/modules/source-control.ee/types/source-control-preferences.js +88 -0
  144. package/dist/modules/source-control.ee/types/source-control-push.d.ts +3 -0
  145. package/dist/modules/source-control.ee/types/source-control-push.js +21 -0
  146. package/dist/modules/source-control.ee/types/source-control-set-branch.d.ts +3 -0
  147. package/dist/modules/source-control.ee/types/source-control-set-branch.js +20 -0
  148. package/dist/modules/source-control.ee/types/source-control-set-read-only.d.ts +3 -0
  149. package/dist/modules/source-control.ee/types/source-control-set-read-only.js +20 -0
  150. package/dist/modules/source-control.ee/types/source-control-stage.d.ts +5 -0
  151. package/dist/modules/source-control.ee/types/source-control-stage.js +31 -0
  152. package/dist/modules/source-control.ee/types/source-control-workflow-version-id.d.ts +12 -0
  153. package/dist/modules/source-control.ee/types/source-control-workflow-version-id.js +2 -0
  154. package/dist/modules/sso-oidc/constants.d.ts +3 -0
  155. package/dist/modules/sso-oidc/constants.js +6 -0
  156. package/dist/modules/sso-oidc/oidc.controller.ee.d.ts +23 -0
  157. package/dist/modules/sso-oidc/oidc.controller.ee.js +123 -0
  158. package/dist/modules/sso-oidc/oidc.service.ee.d.ts +56 -0
  159. package/dist/modules/sso-oidc/oidc.service.ee.js +468 -0
  160. package/dist/modules/sso-oidc/sso-oidc.module.d.ts +4 -0
  161. package/dist/modules/sso-oidc/sso-oidc.module.js +55 -0
  162. package/dist/modules/sso-saml/constants.d.ts +3 -0
  163. package/dist/modules/sso-saml/constants.js +6 -0
  164. package/dist/modules/sso-saml/errors/invalid-saml-metadata-url.error.d.ts +4 -0
  165. package/dist/modules/sso-saml/errors/invalid-saml-metadata-url.error.js +10 -0
  166. package/dist/modules/sso-saml/errors/invalid-saml-metadata.error.d.ts +4 -0
  167. package/dist/modules/sso-saml/errors/invalid-saml-metadata.error.js +10 -0
  168. package/dist/modules/sso-saml/middleware/saml-enabled-middleware.d.ts +3 -0
  169. package/dist/modules/sso-saml/middleware/saml-enabled-middleware.js +22 -0
  170. package/dist/modules/sso-saml/saml-helpers.d.ts +19 -0
  171. package/dist/modules/sso-saml/saml-helpers.js +129 -0
  172. package/dist/modules/sso-saml/saml-validator.d.ts +16 -0
  173. package/dist/modules/sso-saml/saml-validator.js +129 -0
  174. package/dist/modules/sso-saml/saml.controller.ee.d.ts +50 -0
  175. package/dist/modules/sso-saml/saml.controller.ee.js +227 -0
  176. package/dist/modules/sso-saml/saml.service.ee.d.ts +52 -0
  177. package/dist/modules/sso-saml/saml.service.ee.js +462 -0
  178. package/dist/modules/sso-saml/schema/metadata-exchange.xsd.d.ts +2 -0
  179. package/dist/modules/sso-saml/schema/metadata-exchange.xsd.js +118 -0
  180. package/dist/modules/sso-saml/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd.d.ts +2 -0
  181. package/dist/modules/sso-saml/schema/oasis-200401-wss-wssecurity-secext-1.0.xsd.js +201 -0
  182. package/dist/modules/sso-saml/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd.d.ts +2 -0
  183. package/dist/modules/sso-saml/schema/oasis-200401-wss-wssecurity-utility-1.0.xsd.js +114 -0
  184. package/dist/modules/sso-saml/schema/saml-schema-assertion-2.0.xsd.d.ts +2 -0
  185. package/dist/modules/sso-saml/schema/saml-schema-assertion-2.0.xsd.js +289 -0
  186. package/dist/modules/sso-saml/schema/saml-schema-metadata-2.0.xsd.d.ts +2 -0
  187. package/dist/modules/sso-saml/schema/saml-schema-metadata-2.0.xsd.js +344 -0
  188. package/dist/modules/sso-saml/schema/saml-schema-protocol-2.0.xsd.d.ts +2 -0
  189. package/dist/modules/sso-saml/schema/saml-schema-protocol-2.0.xsd.js +308 -0
  190. package/dist/modules/sso-saml/schema/ws-addr.xsd.d.ts +2 -0
  191. package/dist/modules/sso-saml/schema/ws-addr.xsd.js +143 -0
  192. package/dist/modules/sso-saml/schema/ws-authorization.xsd.d.ts +2 -0
  193. package/dist/modules/sso-saml/schema/ws-authorization.xsd.js +151 -0
  194. package/dist/modules/sso-saml/schema/ws-federation.xsd.d.ts +2 -0
  195. package/dist/modules/sso-saml/schema/ws-federation.xsd.js +476 -0
  196. package/dist/modules/sso-saml/schema/ws-securitypolicy-1.2.xsd.d.ts +2 -0
  197. package/dist/modules/sso-saml/schema/ws-securitypolicy-1.2.xsd.js +1211 -0
  198. package/dist/modules/sso-saml/schema/xenc-schema.xsd.d.ts +2 -0
  199. package/dist/modules/sso-saml/schema/xenc-schema.xsd.js +151 -0
  200. package/dist/modules/sso-saml/schema/xml.xsd.d.ts +2 -0
  201. package/dist/modules/sso-saml/schema/xml.xsd.js +123 -0
  202. package/dist/modules/sso-saml/schema/xmldsig-core-schema.xsd.d.ts +2 -0
  203. package/dist/modules/sso-saml/schema/xmldsig-core-schema.xsd.js +324 -0
  204. package/dist/modules/sso-saml/service-provider.ee.d.ts +6 -0
  205. package/dist/modules/sso-saml/service-provider.ee.js +44 -0
  206. package/dist/modules/sso-saml/sso-saml.module.d.ts +4 -0
  207. package/dist/modules/sso-saml/sso-saml.module.js +55 -0
  208. package/dist/modules/sso-saml/types.d.ts +4 -0
  209. package/dist/modules/sso-saml/types.js +2 -0
  210. package/dist/modules/sso-saml/views/init-sso-post.d.ts +2 -0
  211. package/dist/modules/sso-saml/views/init-sso-post.js +16 -0
  212. package/dist/node-lib.d.ts +10 -0
  213. package/dist/node-lib.js +137 -0
  214. package/dist/push/index.d.ts +1 -1
  215. package/dist/server.d.ts +1 -0
  216. package/dist/server.js +1 -0
  217. package/dist/services/cors-service.d.ts +7 -0
  218. package/dist/services/cors-service.js +50 -0
  219. package/dist/services/static-auth-service.d.ts +4 -0
  220. package/dist/services/static-auth-service.js +29 -0
  221. package/dist/sso.ee/saml/schema/metadata-exchange.xsd.js +0 -0
  222. package/dist/task-runners/task-broker/errors/task-runner-accept-timeout.error.js +0 -0
  223. package/dist/typecheck.tsbuildinfo +1 -0
  224. package/dist/user-management/email/templates/workflow-failure.handlebars +211 -0
  225. package/dist/utils/cors.util.d.ts +2 -0
  226. package/dist/utils/cors.util.js +17 -0
  227. package/dist/webhooks/waiting-forms.js +3 -3
  228. package/dist/webhooks/waiting-webhooks.js +2 -0
  229. package/dist/workflows/workflow.service.d.ts +2 -2
  230. package/dist/workflows/workflows.controller.d.ts +6 -6
  231. package/package.json +22 -21
@@ -0,0 +1,211 @@
1
+ <!doctype html>
2
+ <html lang="und" dir="auto" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
3
+
4
+ <head>
5
+ <title></title>
6
+ <!--[if !mso]><!-->
7
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
+ <!--<![endif]-->
9
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
10
+ <meta name="viewport" content="width=device-width, initial-scale=1">
11
+ <style type="text/css">
12
+ #outlook a {
13
+ padding: 0;
14
+ }
15
+
16
+ body {
17
+ margin: 0;
18
+ padding: 0;
19
+ -webkit-text-size-adjust: 100%;
20
+ -ms-text-size-adjust: 100%;
21
+ }
22
+
23
+ table,
24
+ td {
25
+ border-collapse: collapse;
26
+ mso-table-lspace: 0pt;
27
+ mso-table-rspace: 0pt;
28
+ }
29
+
30
+ img {
31
+ border: 0;
32
+ height: auto;
33
+ line-height: 100%;
34
+ outline: none;
35
+ text-decoration: none;
36
+ -ms-interpolation-mode: bicubic;
37
+ }
38
+
39
+ p {
40
+ display: block;
41
+ margin: 13px 0;
42
+ }
43
+
44
+ </style>
45
+ <!--[if mso]>
46
+ <noscript>
47
+ <xml>
48
+ <o:OfficeDocumentSettings>
49
+ <o:AllowPNG/>
50
+ <o:PixelsPerInch>96</o:PixelsPerInch>
51
+ </o:OfficeDocumentSettings>
52
+ </xml>
53
+ </noscript>
54
+ <![endif]-->
55
+ <!--[if lte mso 11]>
56
+ <style type="text/css">
57
+ .mj-outlook-group-fix { width:100% !important; }
58
+ </style>
59
+ <![endif]-->
60
+ <!--[if !mso]><!-->
61
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet" type="text/css">
62
+ <style type="text/css">
63
+ @import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap);
64
+
65
+ </style>
66
+ <!--<![endif]-->
67
+ <style type="text/css">
68
+ @media only screen and (min-width:480px) {
69
+ .mj-column-per-100 {
70
+ width: 100% !important;
71
+ max-width: 100%;
72
+ }
73
+ }
74
+
75
+ </style>
76
+ <style media="screen and (min-width:480px)">
77
+ .moz-text-html .mj-column-per-100 {
78
+ width: 100% !important;
79
+ max-width: 100%;
80
+ }
81
+
82
+ </style>
83
+ <style type="text/css">
84
+ @media only screen and (max-width:479px) {
85
+ table.mj-full-width-mobile {
86
+ width: 100% !important;
87
+ }
88
+
89
+ td.mj-full-width-mobile {
90
+ width: auto !important;
91
+ }
92
+ }
93
+
94
+ </style>
95
+ </head>
96
+
97
+ <body style="word-spacing:normal;background-color:#ffffff;">
98
+ <div style="background-color:#ffffff;" lang="und" dir="auto">
99
+ <!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
100
+ <div style="margin:0px auto;max-width:600px;">
101
+ <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
102
+ <tbody>
103
+ <tr>
104
+ <td style="direction:ltr;font-size:0px;padding:0 20px;text-align:center;">
105
+ <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:560px;" ><![endif]-->
106
+ <div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
107
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
108
+ <tbody>
109
+ <tr>
110
+ <td style="vertical-align:top;padding:0px;">
111
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="" width="100%">
112
+ <tbody>
113
+ <tr>
114
+ <td align="left" style="font-size:0px;padding:0px;padding-top:20px;padding-bottom:40px;word-break:break-word;">
115
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
116
+ <tbody>
117
+ <tr>
118
+ <td style="width:125px;">
119
+ <a href="https://n8n.io/" target="_blank">
120
+ <img alt="n8n" src="cid:n8n-logo" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="125" height="auto" />
121
+ </a>
122
+ </td>
123
+ </tr>
124
+ </tbody>
125
+ </table>
126
+ </td>
127
+ </tr>
128
+ <tr>
129
+ <td align="left" style="font-size:0px;padding:8px 12px;word-break:break-word;">
130
+ <div style="font-family:Inter, Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;text-align:left;color:#414244;">Hi {{firstName}},</div>
131
+ </td>
132
+ </tr>
133
+ <tr>
134
+ <td align="left" style="font-size:0px;padding:8px 12px;word-break:break-word;">
135
+ <div style="font-family:Inter, Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;text-align:left;color:#414244;">⚠️ Your workflow "{{workflowName}}" ran into an error.</div>
136
+ </td>
137
+ </tr>
138
+ <tr>
139
+ <td align="left" style="font-size:0px;padding:8px 12px;word-break:break-word;">
140
+ <div style="font-family:Inter, Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;text-align:left;color:#414244;">Set up an error workflow now to get instant alerts on Gmail, Slack or any tool of your choice.</div>
141
+ </td>
142
+ </tr>
143
+ <tr>
144
+ <td align="left" style="font-size:0px;padding:20px 12px;word-break:break-word;">
145
+ <table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
146
+ <tbody>
147
+ <tr>
148
+ <td align="center" bgcolor="#ff6f5c" role="presentation" style="border:none;border-radius:8px;cursor:auto;mso-padding-alt:8px 40px;background:#ff6f5c;" valign="middle">
149
+ <a href="{{instanceURL}}/templates/2159" style="display:inline-block;background:#ff6f5c;color:#ffffff;font-family:Inter, Helvetica, Arial, sans-serif;font-size:16px;font-weight:normal;line-height:1.5;margin:0;text-decoration:none;text-transform:none;padding:8px 40px;mso-padding-alt:0px;border-radius:8px;" target="_blank"> Set up my Error Workflow </a>
150
+ </td>
151
+ </tr>
152
+ </tbody>
153
+ </table>
154
+ </td>
155
+ </tr>
156
+ <tr>
157
+ <td align="left" style="font-size:0px;padding:8px 12px;word-break:break-word;">
158
+ <div style="font-family:Inter, Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;text-align:left;color:#414244;">
159
+ <ul style="padding-left: 20px; margin: 0;">
160
+ <li style="margin-bottom: 8px;"><a href="https://www.youtube.com/watch?v=bTF3tACqPRU" style="color: #007bff; text-decoration: none;">Tutorial</a></li>
161
+ <li><a href="https://docs.n8n.io/flow-logic/error-handling/" style="color: #007bff; text-decoration: none;">Docs</a></li>
162
+ </ul>
163
+ </div>
164
+ </td>
165
+ </tr>
166
+ <tr>
167
+ <td align="left" style="font-size:0px;padding:8px 12px;word-break:break-word;">
168
+ <div style="font-family:Inter, Helvetica, Arial, sans-serif;font-size:16px;line-height:1.5;text-align:left;color:#414244;">Happy automating,<br />The n8n team</div>
169
+ </td>
170
+ </tr>
171
+ <tr>
172
+ <td style="font-size:0px;word-break:break-word;">
173
+ <div style="height:24px;line-height:24px;">&#8202;</div>
174
+ </td>
175
+ </tr>
176
+ <tr>
177
+ <td align="center" style="font-size:0px;padding:10px 12px;word-break:break-word;">
178
+ <p style="border-top:solid 1px #d9d9d9;font-size:1px;margin:0px auto;width:100%;">
179
+ </p>
180
+ <!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" style="border-top:solid 1px #d9d9d9;font-size:1px;margin:0px auto;width:536px;" role="presentation" width="536px" ><tr><td style="height:0;line-height:0;"> &nbsp;
181
+ </td></tr></table><![endif]-->
182
+ </td>
183
+ </tr>
184
+ <tr>
185
+ <td style="font-size:0px;word-break:break-word;">
186
+ <div style="height:16px;line-height:16px;">&#8202;</div>
187
+ </td>
188
+ </tr>
189
+ <tr>
190
+ <td align="left" style="font-size:0px;padding:8px 12px;word-break:break-word;">
191
+ <div style="font-family:Inter, Helvetica, Arial, sans-serif;font-size:14px;font-weight:300;line-height:1.5;text-align:left;color:#909398;">n8n GmbH, Novalisstraße 10, 10115 Berlin, Germany<br /> ©{{ currentYear }} n8n GmbH, all rights reserved<br /></div>
192
+ </td>
193
+ </tr>
194
+ </tbody>
195
+ </table>
196
+ </td>
197
+ </tr>
198
+ </tbody>
199
+ </table>
200
+ </div>
201
+ <!--[if mso | IE]></td></tr></table><![endif]-->
202
+ </td>
203
+ </tr>
204
+ </tbody>
205
+ </table>
206
+ </div>
207
+ <!--[if mso | IE]></td></tr></table><![endif]-->
208
+ </div>
209
+ </body>
210
+
211
+ </html>
@@ -0,0 +1,2 @@
1
+ import type { Request, Response } from 'express';
2
+ export declare function applyCors(req: Request, res: Response): void;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.applyCors = applyCors;
4
+ function applyCors(req, res) {
5
+ if (res.getHeader('Access-Control-Allow-Origin')) {
6
+ return;
7
+ }
8
+ const origin = req.headers.origin;
9
+ if (!origin || origin === 'null') {
10
+ res.setHeader('Access-Control-Allow-Origin', '*');
11
+ }
12
+ else {
13
+ res.setHeader('Access-Control-Allow-Origin', origin);
14
+ }
15
+ res.setHeader('Access-Control-Allow-Methods', 'POST, GET, OPTIONS');
16
+ res.setHeader('Access-Control-Allow-Headers', 'Content-Type');
17
+ }
@@ -15,6 +15,7 @@ const execution_utils_1 = require("../executions/execution.utils");
15
15
  const not_found_error_1 = require("../errors/response-errors/not-found.error");
16
16
  const waiting_webhooks_1 = require("../webhooks/waiting-webhooks");
17
17
  const webhook_request_sanitizer_1 = require("./webhook-request-sanitizer");
18
+ const cors_util_1 = require("../utils/cors.util");
18
19
  let WaitingForms = class WaitingForms extends waiting_webhooks_1.WaitingWebhooks {
19
20
  constructor() {
20
21
  super(...arguments);
@@ -76,9 +77,7 @@ let WaitingForms = class WaitingForms extends waiting_webhooks_1.WaitingWebhooks
76
77
  status = 'form-waiting';
77
78
  }
78
79
  }
79
- if (req.headers.origin) {
80
- res.header('Access-Control-Allow-Origin', req.headers.origin);
81
- }
80
+ (0, cors_util_1.applyCors)(req, res);
82
81
  res.send(status);
83
82
  return { noWebhookResponse: true };
84
83
  }
@@ -112,6 +111,7 @@ let WaitingForms = class WaitingForms extends waiting_webhooks_1.WaitingWebhooks
112
111
  lastNodeExecuted = completionPage;
113
112
  }
114
113
  }
114
+ (0, cors_util_1.applyCors)(req, res);
115
115
  return await this.getWebhookExecutionData({
116
116
  execution,
117
117
  req,
@@ -60,6 +60,7 @@ const execution_utils_1 = require("../executions/execution.utils");
60
60
  const node_types_1 = require("../node-types");
61
61
  const WebhookHelpers = __importStar(require("../webhooks/webhook-helpers"));
62
62
  const WorkflowExecuteAdditionalData = __importStar(require("../workflow-execute-additional-data"));
63
+ const cors_util_1 = require("../utils/cors.util");
63
64
  let WaitingWebhooks = class WaitingWebhooks {
64
65
  constructor(logger, nodeTypes, executionRepository, webhookService, instanceSettings) {
65
66
  this.logger = logger;
@@ -151,6 +152,7 @@ let WaitingWebhooks = class WaitingWebhooks {
151
152
  }
152
153
  }
153
154
  const lastNodeExecuted = execution.data.resultData.lastNodeExecuted;
155
+ (0, cors_util_1.applyCors)(req, res);
154
156
  return await this.getWebhookExecutionData({
155
157
  execution,
156
158
  req,
@@ -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, "description" | "tags" | "name" | "active" | "versionId" | "activeVersionId" | "createdAt" | "updatedAt">>) | (import("@n8n/db").Folder & {
46
+ workflows: ((Pick<WorkflowEntity, "id"> & Partial<Pick<WorkflowEntity, "name" | "description" | "tags" | "active" | "versionId" | "activeVersionId" | "createdAt" | "updatedAt">>) | (import("@n8n/db").Folder & {
47
47
  workflowCount?: boolean;
48
48
  subFolderCount?: number;
49
49
  } & {
@@ -82,9 +82,9 @@ 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;
85
86
  description?: string | null | undefined;
86
87
  tags?: import("@n8n/db").TagEntity[] | undefined;
87
- name?: string | undefined;
88
88
  active?: boolean | undefined;
89
89
  versionId?: string | undefined;
90
90
  activeVersionId?: string | null | undefined;
@@ -50,21 +50,21 @@ 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
+ nodes: import("n8n-workflow").INode[];
53
55
  description: string | null;
54
56
  tags?: import("@n8n/db").TagEntity[] | undefined;
55
57
  id: string;
56
- name: string;
57
58
  active: boolean;
58
59
  versionId: string;
59
60
  activeVersionId: string | null;
60
61
  createdAt: Date;
61
62
  updatedAt: Date;
62
63
  generateId: () => void;
63
- nodes: import("n8n-workflow").INode[];
64
64
  connections: import("n8n-workflow").IConnections;
65
65
  setUpdateDate: () => void;
66
- parentFolder: import("@n8n/db").Folder | null;
67
66
  isArchived: boolean;
67
+ parentFolder: import("@n8n/db").Folder | null;
68
68
  settings?: import("n8n-workflow").IWorkflowSettings | undefined;
69
69
  staticData?: import("n8n-workflow").IDataObject | undefined;
70
70
  meta?: import("n8n-workflow").WorkflowFEMeta | undefined;
@@ -87,21 +87,21 @@ 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
+ nodes: import("n8n-workflow").INode[];
90
92
  description: string | null;
91
93
  tags?: import("@n8n/db").TagEntity[] | undefined;
92
94
  id: string;
93
- name: string;
94
95
  active: boolean;
95
96
  versionId: string;
96
97
  activeVersionId: string | null;
97
98
  createdAt: Date;
98
99
  updatedAt: Date;
99
100
  generateId: () => void;
100
- nodes: import("n8n-workflow").INode[];
101
101
  connections: import("n8n-workflow").IConnections;
102
102
  setUpdateDate: () => void;
103
- parentFolder: import("@n8n/db").Folder | null;
104
103
  isArchived: boolean;
104
+ parentFolder: import("@n8n/db").Folder | null;
105
105
  settings?: import("n8n-workflow").IWorkflowSettings | undefined;
106
106
  staticData?: import("n8n-workflow").IDataObject | undefined;
107
107
  meta?: import("n8n-workflow").WorkflowFEMeta | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom8n/n8n",
3
- "version": "2.4.7",
3
+ "version": "2.5.1",
4
4
  "description": "n8n Workflow Automation Tool",
5
5
  "main": "dist/index",
6
6
  "types": "dist/index.d.ts",
@@ -56,8 +56,8 @@
56
56
  "dist"
57
57
  ],
58
58
  "devDependencies": {
59
- "@n8n/typescript-config": "npm:@atom8n/typescript-config@1.5.3",
60
- "@n8n/backend-test-utils": "npm:@atom8n/backend-test-utils@1.4.3",
59
+ "@n8n/typescript-config": "npm:@atom8n/typescript-config@1.6.1",
60
+ "@n8n/backend-test-utils": "npm:@atom8n/backend-test-utils@1.5.1",
61
61
  "@redocly/cli": "^1.28.5",
62
62
  "@types/aws4": "^1.5.1",
63
63
  "@types/bcryptjs": "^2.4.2",
@@ -95,22 +95,23 @@
95
95
  "@azure/identity": "4.13.0",
96
96
  "@azure/keyvault-secrets": "4.8.0",
97
97
  "@google-cloud/secret-manager": "5.6.0",
98
- "@n8n/ai-workflow-builder": "npm:@atom8n/ai-workflow-builder@1.4.3",
99
- "@n8n/api-types": "npm:@atom8n/api-types@1.4.3",
100
- "@n8n/backend-common": "npm:@atom8n/backend-common@1.4.4",
101
- "@n8n/client-oauth2": "npm:@atom8n/client-oauth2@1.2.3",
102
- "@n8n/config": "npm:@atom8n/config@2.3.3",
103
- "@n8n/constants": "npm:@atom8n/constants@0.17.3",
104
- "@n8n/db": "npm:@atom8n/db@1.4.3",
105
- "@n8n/decorators": "npm:@atom8n/decorators@1.4.3",
106
- "@n8n/di": "npm:@atom8n/di@0.12.3",
107
- "@n8n/errors": "npm:@atom8n/errors@0.7.3",
98
+ "@modelcontextprotocol/sdk": "1.24.0",
99
+ "@n8n/ai-workflow-builder": "npm:@atom8n/ai-workflow-builder@1.5.1",
100
+ "@n8n/api-types": "npm:@atom8n/api-types@1.5.1",
101
+ "@n8n/backend-common": "npm:@atom8n/backend-common@1.5.1",
102
+ "@n8n/client-oauth2": "npm:@atom8n/client-oauth2@1.3.1",
103
+ "@n8n/config": "npm:@atom8n/config@2.4.1",
104
+ "@n8n/constants": "npm:@atom8n/constants@0.18.1",
105
+ "@n8n/db": "npm:@atom8n/db@1.5.1",
106
+ "@n8n/decorators": "npm:@atom8n/decorators@1.5.1",
107
+ "@n8n/di": "npm:@atom8n/di@0.13.1",
108
+ "@n8n/errors": "npm:@atom8n/errors@0.8.1",
108
109
  "@n8n/localtunnel": "3.0.0",
109
- "@n8n/n8n-nodes-langchain": "npm:@atom8n/n8n-nodes-langchain@2.4.3",
110
- "@n8n/permissions": "npm:@atom8n/permissions@0.47.3",
111
- "@n8n/task-runner": "npm:@atom8n/task-runner@2.4.3",
110
+ "@n8n/n8n-nodes-langchain": "npm:@atom8n/n8n-nodes-langchain@2.5.1",
111
+ "@n8n/permissions": "npm:@atom8n/permissions@0.48.1",
112
+ "@n8n/task-runner": "npm:@atom8n/task-runner@2.5.1",
112
113
  "@n8n/typeorm": "0.3.20-15",
113
- "@n8n/utils": "npm:@atom8n/utils@1.23.3",
114
+ "@n8n/utils": "npm:@atom8n/utils@1.24.1",
114
115
  "@n8n_io/ai-assistant-sdk": "1.19.1",
115
116
  "@n8n_io/license-sdk": "2.24.1",
116
117
  "@rudderstack/rudder-sdk-node": "2.1.4",
@@ -151,10 +152,10 @@
151
152
  "lodash": "4.17.21",
152
153
  "luxon": "3.4.4",
153
154
  "mysql2": "3.15.0",
154
- "n8n-core": "npm:@atom8n/n8n-core@2.4.5",
155
- "n8n-editor-ui": "npm:@atom8n/n8n-editor-ui@2.4.3",
156
- "n8n-nodes-base": "npm:@atom8n/n8n-nodes-base@2.4.3",
157
- "n8n-workflow": "npm:@atom8n/n8n-workflow@2.4.3",
155
+ "n8n-core": "npm:@atom8n/n8n-core@2.5.1",
156
+ "n8n-editor-ui": "npm:@atom8n/n8n-editor-ui@2.5.1",
157
+ "n8n-nodes-base": "npm:@atom8n/n8n-nodes-base@2.5.1",
158
+ "n8n-workflow": "npm:@atom8n/n8n-workflow@2.5.1",
158
159
  "nanoid": "3.3.8",
159
160
  "nodemailer": "7.0.11",
160
161
  "oauth-1.0a": "2.2.6",