@atom8n/n8n-core 2.2.0

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 (352) hide show
  1. package/README.md +13 -0
  2. package/bin/common.js +19 -0
  3. package/bin/copy-static-files +24 -0
  4. package/bin/generate-metadata +75 -0
  5. package/bin/generate-translations +99 -0
  6. package/dist/binary-data/binary-data.config.d.ts +15 -0
  7. package/dist/binary-data/binary-data.config.js +62 -0
  8. package/dist/binary-data/binary-data.config.js.map +1 -0
  9. package/dist/binary-data/binary-data.service.d.ts +32 -0
  10. package/dist/binary-data/binary-data.service.js +243 -0
  11. package/dist/binary-data/binary-data.service.js.map +1 -0
  12. package/dist/binary-data/file-system.manager.d.ts +31 -0
  13. package/dist/binary-data/file-system.manager.js +154 -0
  14. package/dist/binary-data/file-system.manager.js.map +1 -0
  15. package/dist/binary-data/index.d.ts +5 -0
  16. package/dist/binary-data/index.js +27 -0
  17. package/dist/binary-data/index.js.map +1 -0
  18. package/dist/binary-data/object-store/object-store.config.d.ts +19 -0
  19. package/dist/binary-data/object-store/object-store.config.js +83 -0
  20. package/dist/binary-data/object-store/object-store.config.js.map +1 -0
  21. package/dist/binary-data/object-store/object-store.service.ee.d.ts +46 -0
  22. package/dist/binary-data/object-store/object-store.service.ee.js +235 -0
  23. package/dist/binary-data/object-store/object-store.service.ee.js.map +1 -0
  24. package/dist/binary-data/object-store/types.d.ts +8 -0
  25. package/dist/binary-data/object-store/types.js +3 -0
  26. package/dist/binary-data/object-store/types.js.map +1 -0
  27. package/dist/binary-data/object-store.manager.d.ts +23 -0
  28. package/dist/binary-data/object-store.manager.js +86 -0
  29. package/dist/binary-data/object-store.manager.js.map +1 -0
  30. package/dist/binary-data/types.d.ts +46 -0
  31. package/dist/binary-data/types.js +3 -0
  32. package/dist/binary-data/types.js.map +1 -0
  33. package/dist/binary-data/utils.d.ts +15 -0
  34. package/dist/binary-data/utils.js +66 -0
  35. package/dist/binary-data/utils.js.map +1 -0
  36. package/dist/build.tsbuildinfo +1 -0
  37. package/dist/constants.d.ts +19 -0
  38. package/dist/constants.js +23 -0
  39. package/dist/constants.js.map +1 -0
  40. package/dist/credentials.d.ts +12 -0
  41. package/dist/credentials.js +99 -0
  42. package/dist/credentials.js.map +1 -0
  43. package/dist/data-deduplication-service.d.ts +16 -0
  44. package/dist/data-deduplication-service.js +95 -0
  45. package/dist/data-deduplication-service.js.map +1 -0
  46. package/dist/encryption/cipher.d.ts +8 -0
  47. package/dist/encryption/cipher.js +57 -0
  48. package/dist/encryption/cipher.js.map +1 -0
  49. package/dist/encryption/index.d.ts +1 -0
  50. package/dist/encryption/index.js +6 -0
  51. package/dist/encryption/index.js.map +1 -0
  52. package/dist/errors/abstract/binary-data.error.d.ts +3 -0
  53. package/dist/errors/abstract/binary-data.error.js +8 -0
  54. package/dist/errors/abstract/binary-data.error.js.map +1 -0
  55. package/dist/errors/abstract/filesystem.error.d.ts +4 -0
  56. package/dist/errors/abstract/filesystem.error.js +11 -0
  57. package/dist/errors/abstract/filesystem.error.js.map +1 -0
  58. package/dist/errors/binary-data-file-not-found.error.d.ts +4 -0
  59. package/dist/errors/binary-data-file-not-found.error.js +11 -0
  60. package/dist/errors/binary-data-file-not-found.error.js.map +1 -0
  61. package/dist/errors/disallowed-filepath.error.d.ts +4 -0
  62. package/dist/errors/disallowed-filepath.error.js +11 -0
  63. package/dist/errors/disallowed-filepath.error.js.map +1 -0
  64. package/dist/errors/error-reporter.d.ts +35 -0
  65. package/dist/errors/error-reporter.js +256 -0
  66. package/dist/errors/error-reporter.js.map +1 -0
  67. package/dist/errors/file-not-found.error.d.ts +4 -0
  68. package/dist/errors/file-not-found.error.js +11 -0
  69. package/dist/errors/file-not-found.error.js.map +1 -0
  70. package/dist/errors/file-too-large.error.d.ts +9 -0
  71. package/dist/errors/file-too-large.error.js +13 -0
  72. package/dist/errors/file-too-large.error.js.map +1 -0
  73. package/dist/errors/index.d.ts +11 -0
  74. package/dist/errors/index.js +26 -0
  75. package/dist/errors/index.js.map +1 -0
  76. package/dist/errors/invalid-execution-metadata.error.d.ts +5 -0
  77. package/dist/errors/invalid-execution-metadata.error.js +12 -0
  78. package/dist/errors/invalid-execution-metadata.error.js.map +1 -0
  79. package/dist/errors/invalid-manager.error.d.ts +4 -0
  80. package/dist/errors/invalid-manager.error.js +11 -0
  81. package/dist/errors/invalid-manager.error.js.map +1 -0
  82. package/dist/errors/invalid-source-type.error.d.ts +4 -0
  83. package/dist/errors/invalid-source-type.error.js +11 -0
  84. package/dist/errors/invalid-source-type.error.js.map +1 -0
  85. package/dist/errors/missing-source-id.error.d.ts +4 -0
  86. package/dist/errors/missing-source-id.error.js +11 -0
  87. package/dist/errors/missing-source-id.error.js.map +1 -0
  88. package/dist/errors/unrecognized-credential-type.error.d.ts +4 -0
  89. package/dist/errors/unrecognized-credential-type.error.js +11 -0
  90. package/dist/errors/unrecognized-credential-type.error.js.map +1 -0
  91. package/dist/errors/unrecognized-node-type.error.d.ts +4 -0
  92. package/dist/errors/unrecognized-node-type.error.js +11 -0
  93. package/dist/errors/unrecognized-node-type.error.js.map +1 -0
  94. package/dist/errors/workflow-has-issues.error.d.ts +4 -0
  95. package/dist/errors/workflow-has-issues.error.js +11 -0
  96. package/dist/errors/workflow-has-issues.error.js.map +1 -0
  97. package/dist/execution-engine/active-workflows.d.ts +23 -0
  98. package/dist/execution-engine/active-workflows.js +153 -0
  99. package/dist/execution-engine/active-workflows.js.map +1 -0
  100. package/dist/execution-engine/execution-context-hook-registry.service.d.ts +12 -0
  101. package/dist/execution-engine/execution-context-hook-registry.service.js +69 -0
  102. package/dist/execution-engine/execution-context-hook-registry.service.js.map +1 -0
  103. package/dist/execution-engine/execution-context.d.ts +2 -0
  104. package/dist/execution-engine/execution-context.js +56 -0
  105. package/dist/execution-engine/execution-context.js.map +1 -0
  106. package/dist/execution-engine/execution-context.service.d.ts +17 -0
  107. package/dist/execution-engine/execution-context.service.js +108 -0
  108. package/dist/execution-engine/execution-context.service.js.map +1 -0
  109. package/dist/execution-engine/execution-lifecycle-hooks.d.ts +20 -0
  110. package/dist/execution-engine/execution-lifecycle-hooks.js +31 -0
  111. package/dist/execution-engine/execution-lifecycle-hooks.js.map +1 -0
  112. package/dist/execution-engine/external-secrets-proxy.d.ts +18 -0
  113. package/dist/execution-engine/external-secrets-proxy.js +38 -0
  114. package/dist/execution-engine/external-secrets-proxy.js.map +1 -0
  115. package/dist/execution-engine/index.d.ts +26 -0
  116. package/dist/execution-engine/index.js +31 -0
  117. package/dist/execution-engine/index.js.map +1 -0
  118. package/dist/execution-engine/interfaces.d.ts +7 -0
  119. package/dist/execution-engine/interfaces.js +3 -0
  120. package/dist/execution-engine/interfaces.js.map +1 -0
  121. package/dist/execution-engine/node-execution-context/base-execute-context.d.ts +47 -0
  122. package/dist/execution-engine/node-execution-context/base-execute-context.js +150 -0
  123. package/dist/execution-engine/node-execution-context/base-execute-context.js.map +1 -0
  124. package/dist/execution-engine/node-execution-context/credentials-test-context.d.ts +7 -0
  125. package/dist/execution-engine/node-execution-context/credentials-test-context.js +37 -0
  126. package/dist/execution-engine/node-execution-context/credentials-test-context.js.map +1 -0
  127. package/dist/execution-engine/node-execution-context/execute-context.d.ts +24 -0
  128. package/dist/execution-engine/node-execution-context/execute-context.js +108 -0
  129. package/dist/execution-engine/node-execution-context/execute-context.js.map +1 -0
  130. package/dist/execution-engine/node-execution-context/execute-single-context.d.ts +15 -0
  131. package/dist/execution-engine/node-execution-context/execute-single-context.js +53 -0
  132. package/dist/execution-engine/node-execution-context/execute-single-context.js.map +1 -0
  133. package/dist/execution-engine/node-execution-context/hook-context.d.ts +13 -0
  134. package/dist/execution-engine/node-execution-context/hook-context.js +35 -0
  135. package/dist/execution-engine/node-execution-context/hook-context.js.map +1 -0
  136. package/dist/execution-engine/node-execution-context/index.d.ts +17 -0
  137. package/dist/execution-engine/node-execution-context/index.js +51 -0
  138. package/dist/execution-engine/node-execution-context/index.js.map +1 -0
  139. package/dist/execution-engine/node-execution-context/load-options-context.d.ts +10 -0
  140. package/dist/execution-engine/node-execution-context/load-options-context.js +43 -0
  141. package/dist/execution-engine/node-execution-context/load-options-context.js.map +1 -0
  142. package/dist/execution-engine/node-execution-context/local-load-options-context.d.ts +10 -0
  143. package/dist/execution-engine/node-execution-context/local-load-options-context.js +51 -0
  144. package/dist/execution-engine/node-execution-context/local-load-options-context.js.map +1 -0
  145. package/dist/execution-engine/node-execution-context/node-execution-context.d.ts +68 -0
  146. package/dist/execution-engine/node-execution-context/node-execution-context.js +324 -0
  147. package/dist/execution-engine/node-execution-context/node-execution-context.js.map +1 -0
  148. package/dist/execution-engine/node-execution-context/poll-context.d.ts +11 -0
  149. package/dist/execution-engine/node-execution-context/poll-context.js +38 -0
  150. package/dist/execution-engine/node-execution-context/poll-context.js.map +1 -0
  151. package/dist/execution-engine/node-execution-context/supply-data-context.d.ts +26 -0
  152. package/dist/execution-engine/node-execution-context/supply-data-context.js +181 -0
  153. package/dist/execution-engine/node-execution-context/supply-data-context.js.map +1 -0
  154. package/dist/execution-engine/node-execution-context/trigger-context.d.ts +11 -0
  155. package/dist/execution-engine/node-execution-context/trigger-context.js +40 -0
  156. package/dist/execution-engine/node-execution-context/trigger-context.js.map +1 -0
  157. package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.d.ts +10 -0
  158. package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.js +213 -0
  159. package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.js.map +1 -0
  160. package/dist/execution-engine/node-execution-context/utils/cleanup-parameter-data.d.ts +2 -0
  161. package/dist/execution-engine/node-execution-context/utils/cleanup-parameter-data.js +27 -0
  162. package/dist/execution-engine/node-execution-context/utils/cleanup-parameter-data.js.map +1 -0
  163. package/dist/execution-engine/node-execution-context/utils/construct-execution-metadata.d.ts +4 -0
  164. package/dist/execution-engine/node-execution-context/utils/construct-execution-metadata.js +11 -0
  165. package/dist/execution-engine/node-execution-context/utils/construct-execution-metadata.js.map +1 -0
  166. package/dist/execution-engine/node-execution-context/utils/copy-input-items.d.ts +2 -0
  167. package/dist/execution-engine/node-execution-context/utils/copy-input-items.js +19 -0
  168. package/dist/execution-engine/node-execution-context/utils/copy-input-items.js.map +1 -0
  169. package/dist/execution-engine/node-execution-context/utils/create-node-as-tool.d.ts +21 -0
  170. package/dist/execution-engine/node-execution-context/utils/create-node-as-tool.js +65 -0
  171. package/dist/execution-engine/node-execution-context/utils/create-node-as-tool.js.map +1 -0
  172. package/dist/execution-engine/node-execution-context/utils/data-table-helper-functions.d.ts +2 -0
  173. package/dist/execution-engine/node-execution-context/utils/data-table-helper-functions.js +13 -0
  174. package/dist/execution-engine/node-execution-context/utils/data-table-helper-functions.js.map +1 -0
  175. package/dist/execution-engine/node-execution-context/utils/deduplication-helper-functions.d.ts +2 -0
  176. package/dist/execution-engine/node-execution-context/utils/deduplication-helper-functions.js +38 -0
  177. package/dist/execution-engine/node-execution-context/utils/deduplication-helper-functions.js.map +1 -0
  178. package/dist/execution-engine/node-execution-context/utils/ensure-type.d.ts +6 -0
  179. package/dist/execution-engine/node-execution-context/utils/ensure-type.js +75 -0
  180. package/dist/execution-engine/node-execution-context/utils/ensure-type.js.map +1 -0
  181. package/dist/execution-engine/node-execution-context/utils/execution-metadata.d.ts +6 -0
  182. package/dist/execution-engine/node-execution-context/utils/execution-metadata.js +57 -0
  183. package/dist/execution-engine/node-execution-context/utils/execution-metadata.js.map +1 -0
  184. package/dist/execution-engine/node-execution-context/utils/extract-value.d.ts +2 -0
  185. package/dist/execution-engine/node-execution-context/utils/extract-value.js +135 -0
  186. package/dist/execution-engine/node-execution-context/utils/extract-value.js.map +1 -0
  187. package/dist/execution-engine/node-execution-context/utils/file-system-helper-functions.d.ts +2 -0
  188. package/dist/execution-engine/node-execution-context/utils/file-system-helper-functions.js +144 -0
  189. package/dist/execution-engine/node-execution-context/utils/file-system-helper-functions.js.map +1 -0
  190. package/dist/execution-engine/node-execution-context/utils/get-additional-keys.d.ts +4 -0
  191. package/dist/execution-engine/node-execution-context/utils/get-additional-keys.js +57 -0
  192. package/dist/execution-engine/node-execution-context/utils/get-additional-keys.js.map +1 -0
  193. package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.d.ts +5 -0
  194. package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js +211 -0
  195. package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js.map +1 -0
  196. package/dist/execution-engine/node-execution-context/utils/get-secrets-proxy.d.ts +2 -0
  197. package/dist/execution-engine/node-execution-context/utils/get-secrets-proxy.js +68 -0
  198. package/dist/execution-engine/node-execution-context/utils/get-secrets-proxy.js.map +1 -0
  199. package/dist/execution-engine/node-execution-context/utils/normalize-items.d.ts +2 -0
  200. package/dist/execution-engine/node-execution-context/utils/normalize-items.js +36 -0
  201. package/dist/execution-engine/node-execution-context/utils/normalize-items.js.map +1 -0
  202. package/dist/execution-engine/node-execution-context/utils/parse-incoming-message.d.ts +16 -0
  203. package/dist/execution-engine/node-execution-context/utils/parse-incoming-message.js +57 -0
  204. package/dist/execution-engine/node-execution-context/utils/parse-incoming-message.js.map +1 -0
  205. package/dist/execution-engine/node-execution-context/utils/request-helper-functions.d.ts +18 -0
  206. package/dist/execution-engine/node-execution-context/utils/request-helper-functions.js +1213 -0
  207. package/dist/execution-engine/node-execution-context/utils/request-helper-functions.js.map +1 -0
  208. package/dist/execution-engine/node-execution-context/utils/return-json-array.d.ts +2 -0
  209. package/dist/execution-engine/node-execution-context/utils/return-json-array.js +19 -0
  210. package/dist/execution-engine/node-execution-context/utils/return-json-array.js.map +1 -0
  211. package/dist/execution-engine/node-execution-context/utils/scheduling-helper-functions.d.ts +2 -0
  212. package/dist/execution-engine/node-execution-context/utils/scheduling-helper-functions.js +22 -0
  213. package/dist/execution-engine/node-execution-context/utils/scheduling-helper-functions.js.map +1 -0
  214. package/dist/execution-engine/node-execution-context/utils/ssh-tunnel-helper-functions.d.ts +2 -0
  215. package/dist/execution-engine/node-execution-context/utils/ssh-tunnel-helper-functions.js +14 -0
  216. package/dist/execution-engine/node-execution-context/utils/ssh-tunnel-helper-functions.js.map +1 -0
  217. package/dist/execution-engine/node-execution-context/utils/validate-value-against-schema.d.ts +2 -0
  218. package/dist/execution-engine/node-execution-context/utils/validate-value-against-schema.js +132 -0
  219. package/dist/execution-engine/node-execution-context/utils/validate-value-against-schema.js.map +1 -0
  220. package/dist/execution-engine/node-execution-context/utils/webhook-helper-functions.d.ts +3 -0
  221. package/dist/execution-engine/node-execution-context/utils/webhook-helper-functions.js +31 -0
  222. package/dist/execution-engine/node-execution-context/utils/webhook-helper-functions.js.map +1 -0
  223. package/dist/execution-engine/node-execution-context/webhook-context.d.ts +21 -0
  224. package/dist/execution-engine/node-execution-context/webhook-context.js +87 -0
  225. package/dist/execution-engine/node-execution-context/webhook-context.js.map +1 -0
  226. package/dist/execution-engine/node-execution-context/workflow-node-context.d.ts +6 -0
  227. package/dist/execution-engine/node-execution-context/workflow-node-context.js +14 -0
  228. package/dist/execution-engine/node-execution-context/workflow-node-context.js.map +1 -0
  229. package/dist/execution-engine/partial-execution-utils/clean-run-data.d.ts +3 -0
  230. package/dist/execution-engine/partial-execution-utils/clean-run-data.js +28 -0
  231. package/dist/execution-engine/partial-execution-utils/clean-run-data.js.map +1 -0
  232. package/dist/execution-engine/partial-execution-utils/directed-graph.d.ts +65 -0
  233. package/dist/execution-engine/partial-execution-utils/directed-graph.js +370 -0
  234. package/dist/execution-engine/partial-execution-utils/directed-graph.js.map +1 -0
  235. package/dist/execution-engine/partial-execution-utils/filter-disabled-nodes.d.ts +2 -0
  236. package/dist/execution-engine/partial-execution-utils/filter-disabled-nodes.js +17 -0
  237. package/dist/execution-engine/partial-execution-utils/filter-disabled-nodes.js.map +1 -0
  238. package/dist/execution-engine/partial-execution-utils/find-start-nodes.d.ts +10 -0
  239. package/dist/execution-engine/partial-execution-utils/find-start-nodes.js +74 -0
  240. package/dist/execution-engine/partial-execution-utils/find-start-nodes.js.map +1 -0
  241. package/dist/execution-engine/partial-execution-utils/find-subgraph.d.ts +7 -0
  242. package/dist/execution-engine/partial-execution-utils/find-subgraph.js +59 -0
  243. package/dist/execution-engine/partial-execution-utils/find-subgraph.js.map +1 -0
  244. package/dist/execution-engine/partial-execution-utils/find-trigger-for-partial-execution.d.ts +4 -0
  245. package/dist/execution-engine/partial-execution-utils/find-trigger-for-partial-execution.js +102 -0
  246. package/dist/execution-engine/partial-execution-utils/find-trigger-for-partial-execution.js.map +1 -0
  247. package/dist/execution-engine/partial-execution-utils/get-incoming-data.d.ts +6 -0
  248. package/dist/execution-engine/partial-execution-utils/get-incoming-data.js +21 -0
  249. package/dist/execution-engine/partial-execution-utils/get-incoming-data.js.map +1 -0
  250. package/dist/execution-engine/partial-execution-utils/get-source-data-groups.d.ts +8 -0
  251. package/dist/execution-engine/partial-execution-utils/get-source-data-groups.js +65 -0
  252. package/dist/execution-engine/partial-execution-utils/get-source-data-groups.js.map +1 -0
  253. package/dist/execution-engine/partial-execution-utils/handle-cycles.d.ts +3 -0
  254. package/dist/execution-engine/partial-execution-utils/handle-cycles.js +60 -0
  255. package/dist/execution-engine/partial-execution-utils/handle-cycles.js.map +1 -0
  256. package/dist/execution-engine/partial-execution-utils/index.d.ts +10 -0
  257. package/dist/execution-engine/partial-execution-utils/index.js +25 -0
  258. package/dist/execution-engine/partial-execution-utils/index.js.map +1 -0
  259. package/dist/execution-engine/partial-execution-utils/recreate-node-execution-stack.d.ts +9 -0
  260. package/dist/execution-engine/partial-execution-utils/recreate-node-execution-stack.js +146 -0
  261. package/dist/execution-engine/partial-execution-utils/recreate-node-execution-stack.js.map +1 -0
  262. package/dist/execution-engine/partial-execution-utils/rewire-graph.d.ts +3 -0
  263. package/dist/execution-engine/partial-execution-utils/rewire-graph.js +72 -0
  264. package/dist/execution-engine/partial-execution-utils/rewire-graph.js.map +1 -0
  265. package/dist/execution-engine/partial-execution-utils/run-data-utils.d.ts +2 -0
  266. package/dist/execution-engine/partial-execution-utils/run-data-utils.js +15 -0
  267. package/dist/execution-engine/partial-execution-utils/run-data-utils.js.map +1 -0
  268. package/dist/execution-engine/requests-response.d.ts +23 -0
  269. package/dist/execution-engine/requests-response.js +128 -0
  270. package/dist/execution-engine/requests-response.js.map +1 -0
  271. package/dist/execution-engine/routing-node.d.ts +17 -0
  272. package/dist/execution-engine/routing-node.js +571 -0
  273. package/dist/execution-engine/routing-node.js.map +1 -0
  274. package/dist/execution-engine/scheduled-task-manager.d.ts +27 -0
  275. package/dist/execution-engine/scheduled-task-manager.js +140 -0
  276. package/dist/execution-engine/scheduled-task-manager.js.map +1 -0
  277. package/dist/execution-engine/ssh-clients-manager.d.ts +27 -0
  278. package/dist/execution-engine/ssh-clients-manager.js +170 -0
  279. package/dist/execution-engine/ssh-clients-manager.js.map +1 -0
  280. package/dist/execution-engine/triggers-and-pollers.d.ts +6 -0
  281. package/dist/execution-engine/triggers-and-pollers.js +66 -0
  282. package/dist/execution-engine/triggers-and-pollers.js.map +1 -0
  283. package/dist/execution-engine/workflow-execute.d.ts +46 -0
  284. package/dist/execution-engine/workflow-execute.js +1490 -0
  285. package/dist/execution-engine/workflow-execute.js.map +1 -0
  286. package/dist/html-sandbox.d.ts +3 -0
  287. package/dist/html-sandbox.js +19 -0
  288. package/dist/html-sandbox.js.map +1 -0
  289. package/dist/http-proxy.d.ts +6 -0
  290. package/dist/http-proxy.js +109 -0
  291. package/dist/http-proxy.js.map +1 -0
  292. package/dist/index.d.ts +17 -0
  293. package/dist/index.js +57 -0
  294. package/dist/index.js.map +1 -0
  295. package/dist/instance-settings/index.d.ts +1 -0
  296. package/dist/instance-settings/index.js +6 -0
  297. package/dist/instance-settings/index.js.map +1 -0
  298. package/dist/instance-settings/instance-settings.d.ts +49 -0
  299. package/dist/instance-settings/instance-settings.js +210 -0
  300. package/dist/instance-settings/instance-settings.js.map +1 -0
  301. package/dist/instance-settings/worker-missing-encryption-key.error.d.ts +4 -0
  302. package/dist/instance-settings/worker-missing-encryption-key.error.js +15 -0
  303. package/dist/instance-settings/worker-missing-encryption-key.error.js.map +1 -0
  304. package/dist/interfaces.d.ts +16 -0
  305. package/dist/interfaces.js +3 -0
  306. package/dist/interfaces.js.map +1 -0
  307. package/dist/node-execute-functions.d.ts +3 -0
  308. package/dist/node-execute-functions.js +12 -0
  309. package/dist/node-execute-functions.js.map +1 -0
  310. package/dist/nodes-loader/constants.d.ts +5 -0
  311. package/dist/nodes-loader/constants.js +106 -0
  312. package/dist/nodes-loader/constants.js.map +1 -0
  313. package/dist/nodes-loader/custom-directory-loader.d.ts +6 -0
  314. package/dist/nodes-loader/custom-directory-loader.js +34 -0
  315. package/dist/nodes-loader/custom-directory-loader.js.map +1 -0
  316. package/dist/nodes-loader/directory-loader.d.ts +41 -0
  317. package/dist/nodes-loader/directory-loader.js +371 -0
  318. package/dist/nodes-loader/directory-loader.js.map +1 -0
  319. package/dist/nodes-loader/index.d.ts +5 -0
  320. package/dist/nodes-loader/index.js +12 -0
  321. package/dist/nodes-loader/index.js.map +1 -0
  322. package/dist/nodes-loader/lazy-package-directory-loader.d.ts +4 -0
  323. package/dist/nodes-loader/lazy-package-directory-loader.js +42 -0
  324. package/dist/nodes-loader/lazy-package-directory-loader.js.map +1 -0
  325. package/dist/nodes-loader/load-class-in-isolation.d.ts +1 -0
  326. package/dist/nodes-loader/load-class-in-isolation.js +20 -0
  327. package/dist/nodes-loader/load-class-in-isolation.js.map +1 -0
  328. package/dist/nodes-loader/package-directory-loader.d.ts +12 -0
  329. package/dist/nodes-loader/package-directory-loader.js +86 -0
  330. package/dist/nodes-loader/package-directory-loader.js.map +1 -0
  331. package/dist/nodes-loader/types.d.ts +14 -0
  332. package/dist/nodes-loader/types.js +3 -0
  333. package/dist/nodes-loader/types.js.map +1 -0
  334. package/dist/utils/assertions.d.ts +2 -0
  335. package/dist/utils/assertions.js +16 -0
  336. package/dist/utils/assertions.js.map +1 -0
  337. package/dist/utils/deep-merge.d.ts +1 -0
  338. package/dist/utils/deep-merge.js +33 -0
  339. package/dist/utils/deep-merge.js.map +1 -0
  340. package/dist/utils/index.d.ts +2 -0
  341. package/dist/utils/index.js +19 -0
  342. package/dist/utils/index.js.map +1 -0
  343. package/dist/utils/is-json-compatible.d.ts +7 -0
  344. package/dist/utils/is-json-compatible.js +81 -0
  345. package/dist/utils/is-json-compatible.js.map +1 -0
  346. package/dist/utils/serialized-buffer.d.ts +6 -0
  347. package/dist/utils/serialized-buffer.js +16 -0
  348. package/dist/utils/serialized-buffer.js.map +1 -0
  349. package/dist/utils/signature-helpers.d.ts +2 -0
  350. package/dist/utils/signature-helpers.js +16 -0
  351. package/dist/utils/signature-helpers.js.map +1 -0
  352. package/package.json +81 -0
@@ -0,0 +1,256 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ var __metadata = (this && this.__metadata) || function (k, v) {
42
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
43
+ };
44
+ Object.defineProperty(exports, "__esModule", { value: true });
45
+ exports.ErrorReporter = void 0;
46
+ const backend_common_1 = require("@n8n/backend-common");
47
+ const di_1 = require("@n8n/di");
48
+ const axios_1 = require("axios");
49
+ const n8n_workflow_1 = require("n8n-workflow");
50
+ const node_crypto_1 = require("node:crypto");
51
+ const ONE_DAY_IN_MS = 24 * 60 * 60 * 1000;
52
+ const SIX_WEEKS_IN_MS = 6 * 7 * ONE_DAY_IN_MS;
53
+ const RELEASE_EXPIRATION_WARNING = 'Error tracking disabled because this release is older than 6 weeks.';
54
+ let ErrorReporter = class ErrorReporter {
55
+ constructor(logger) {
56
+ this.logger = logger;
57
+ this.seenErrors = new Set();
58
+ this.report = this.defaultReport;
59
+ }
60
+ defaultReport(error, options) {
61
+ if (error instanceof Error) {
62
+ let e = error;
63
+ const { executionId } = options ?? {};
64
+ const context = executionId ? ` (execution ${executionId})` : '';
65
+ do {
66
+ let stack = '';
67
+ let meta = undefined;
68
+ if (e instanceof n8n_workflow_1.ApplicationError || e instanceof n8n_workflow_1.BaseError) {
69
+ if (e.level === 'error' && e.stack) {
70
+ stack = `\n${e.stack}\n`;
71
+ }
72
+ meta = e.extra;
73
+ }
74
+ const msg = [e.message + context, stack].join('');
75
+ if (options?.shouldBeLogged ?? true) {
76
+ this.logger.error(msg, meta);
77
+ }
78
+ e = e.cause;
79
+ } while (e);
80
+ }
81
+ }
82
+ async shutdown(timeoutInMs = 1000) {
83
+ clearTimeout(this.expirationTimer);
84
+ const { close } = await Promise.resolve().then(() => __importStar(require('@sentry/node')));
85
+ await close(timeoutInMs);
86
+ }
87
+ async init({ beforeSendFilter, dsn, serverType, release, environment, serverName, releaseDate, withEventLoopBlockDetection, }) {
88
+ if (backend_common_1.inTest)
89
+ return;
90
+ process.on('uncaughtException', (error) => {
91
+ this.error(error);
92
+ });
93
+ if (releaseDate) {
94
+ const releaseExpiresAtMs = releaseDate.getTime() + SIX_WEEKS_IN_MS;
95
+ const releaseExpiresInMs = () => releaseExpiresAtMs - Date.now();
96
+ if (releaseExpiresInMs() <= 0) {
97
+ this.logger.warn(RELEASE_EXPIRATION_WARNING);
98
+ return;
99
+ }
100
+ const checkForExpiration = () => {
101
+ if (releaseExpiresInMs() <= 0) {
102
+ this.logger.warn(RELEASE_EXPIRATION_WARNING);
103
+ this.report = this.defaultReport;
104
+ }
105
+ else {
106
+ this.expirationTimer = setTimeout(checkForExpiration, ONE_DAY_IN_MS);
107
+ }
108
+ };
109
+ checkForExpiration();
110
+ }
111
+ if (!dsn)
112
+ return;
113
+ Error.stackTraceLimit = 50;
114
+ const { init, captureException, setTag } = await Promise.resolve().then(() => __importStar(require('@sentry/node')));
115
+ const { requestDataIntegration, rewriteFramesIntegration } = await Promise.resolve().then(() => __importStar(require('@sentry/node')));
116
+ const enabledIntegrations = [
117
+ 'InboundFilters',
118
+ 'FunctionToString',
119
+ 'LinkedErrors',
120
+ 'OnUnhandledRejection',
121
+ 'ContextLines',
122
+ ];
123
+ const eventLoopBlockIntegration = withEventLoopBlockDetection
124
+ ?
125
+ await this.getEventLoopBlockIntegration({
126
+ server_name: serverName,
127
+ server_type: serverType,
128
+ })
129
+ : [];
130
+ init({
131
+ dsn,
132
+ release,
133
+ environment,
134
+ tracesSampleRate: backend_common_1.inProduction ? 0.01 : 0,
135
+ serverName,
136
+ beforeBreadcrumb: () => null,
137
+ beforeSend: this.beforeSend.bind(this),
138
+ integrations: (integrations) => [
139
+ ...integrations.filter(({ name }) => enabledIntegrations.includes(name)),
140
+ rewriteFramesIntegration({ root: '/' }),
141
+ requestDataIntegration({
142
+ include: {
143
+ cookies: false,
144
+ data: false,
145
+ headers: false,
146
+ query_string: false,
147
+ url: true,
148
+ },
149
+ }),
150
+ ...eventLoopBlockIntegration,
151
+ ],
152
+ });
153
+ setTag('server_type', serverType);
154
+ this.report = (error, options) => captureException(error, options);
155
+ this.beforeSendFilter = beforeSendFilter;
156
+ }
157
+ async beforeSend(event, hint) {
158
+ let { originalException } = hint;
159
+ if (!originalException)
160
+ return null;
161
+ if (originalException instanceof Promise) {
162
+ originalException = await originalException.catch((error) => error);
163
+ }
164
+ if (this.beforeSendFilter?.(event, {
165
+ ...hint,
166
+ originalException,
167
+ })) {
168
+ return null;
169
+ }
170
+ if (originalException instanceof axios_1.AxiosError)
171
+ return null;
172
+ if (originalException instanceof n8n_workflow_1.BaseError) {
173
+ if (!originalException.shouldReport)
174
+ return null;
175
+ this.extractEventDetailsFromN8nError(event, originalException);
176
+ }
177
+ if (this.isIgnoredSqliteError(originalException))
178
+ return null;
179
+ if (originalException instanceof n8n_workflow_1.ApplicationError || originalException instanceof n8n_workflow_1.BaseError) {
180
+ if (this.isIgnoredN8nError(originalException))
181
+ return null;
182
+ this.extractEventDetailsFromN8nError(event, originalException);
183
+ }
184
+ if (originalException instanceof Error &&
185
+ 'cause' in originalException &&
186
+ originalException.cause instanceof Error &&
187
+ 'level' in originalException.cause &&
188
+ (originalException.cause.level === 'warning' || originalException.cause.level === 'info')) {
189
+ return null;
190
+ }
191
+ if (originalException instanceof Error && originalException.stack) {
192
+ const eventHash = (0, node_crypto_1.createHash)('sha1').update(originalException.stack).digest('base64');
193
+ if (this.seenErrors.has(eventHash))
194
+ return null;
195
+ this.seenErrors.add(eventHash);
196
+ }
197
+ return event;
198
+ }
199
+ error(e, options) {
200
+ if (e instanceof n8n_workflow_1.ExecutionCancelledError)
201
+ return;
202
+ const toReport = this.wrap(e);
203
+ if (toReport)
204
+ this.report(toReport, options);
205
+ }
206
+ warn(warning, options) {
207
+ this.error(warning, { ...options, level: 'warning' });
208
+ }
209
+ info(msg, options) {
210
+ this.report(msg, { ...options, level: 'info' });
211
+ }
212
+ wrap(e) {
213
+ if (e instanceof Error)
214
+ return e;
215
+ if (typeof e === 'string')
216
+ return new n8n_workflow_1.ApplicationError(e);
217
+ return;
218
+ }
219
+ isIgnoredSqliteError(error) {
220
+ return (error instanceof Error &&
221
+ error.name === 'QueryFailedError' &&
222
+ typeof error.message === 'string' &&
223
+ ['SQLITE_FULL', 'SQLITE_IOERR'].some((errMsg) => error.message.includes(errMsg)));
224
+ }
225
+ isIgnoredN8nError(error) {
226
+ return error.level === 'warning' || error.level === 'info';
227
+ }
228
+ extractEventDetailsFromN8nError(event, originalException) {
229
+ const { level, extra, tags } = originalException;
230
+ event.level = level;
231
+ if (extra)
232
+ event.extra = { ...event.extra, ...extra };
233
+ if (tags)
234
+ event.tags = { ...event.tags, ...tags };
235
+ }
236
+ async getEventLoopBlockIntegration(tags) {
237
+ try {
238
+ const { eventLoopBlockIntegration } = await Promise.resolve().then(() => __importStar(require('@sentry/node-native')));
239
+ return [
240
+ eventLoopBlockIntegration({
241
+ staticTags: tags,
242
+ }),
243
+ ];
244
+ }
245
+ catch {
246
+ this.logger.debug("Sentry's event loop block integration is disabled, because the native binary for `@sentry/node-native` was not found");
247
+ return [];
248
+ }
249
+ }
250
+ };
251
+ exports.ErrorReporter = ErrorReporter;
252
+ exports.ErrorReporter = ErrorReporter = __decorate([
253
+ (0, di_1.Service)(),
254
+ __metadata("design:paramtypes", [backend_common_1.Logger])
255
+ ], ErrorReporter);
256
+ //# sourceMappingURL=error-reporter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-reporter.js","sourceRoot":"","sources":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AAK,CAAC,IAAI,GAAG,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC;IACnD,CAAC;IAEO,KAAK,CAAC,4BAA4B,CAAC,IAA4B;QACtE,IAAI,CAAC;YACJ,MAAM,EAAE,yBAAyB,EAAE,GAAG,wDAAa,qBAAqB,GAAC,CAAC;YAC1E,OAAO;gBACN,yBAAyB,CAAC;oBACzB,UAAU,EAAE,IAAI;iBAChB,CAAC;aACF,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACR,IAAI,CAAC,MAAM,CAAC,KAAK,CAChB,sHAAsH,CACtH,CAAC;YACF,OAAO,EAAE,CAAC;QACX,CAAC;IACF,CAAC;CACD,CAAA;AA1PY,sCAAa;wBAAb,aAAa;IADzB,IAAA,YAAO,GAAE;qCAW4B,uBAAM;GAV/B,aAAa,CA0PzB"}
@@ -0,0 +1,4 @@
1
+ import { FileSystemError } from './abstract/filesystem.error';
2
+ export declare class FileNotFoundError extends FileSystemError {
3
+ constructor(filePath: string);
4
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileNotFoundError = void 0;
4
+ const filesystem_error_1 = require("./abstract/filesystem.error");
5
+ class FileNotFoundError extends filesystem_error_1.FileSystemError {
6
+ constructor(filePath) {
7
+ super('File not found', filePath);
8
+ }
9
+ }
10
+ exports.FileNotFoundError = FileNotFoundError;
11
+ //# sourceMappingURL=file-not-found.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-not-found.error.js","sourceRoot":"","sources":["../../src/errors/file-not-found.error.ts"],"names":[],"mappings":";;;AAAA,kEAA8D;AAE9D,MAAa,iBAAkB,SAAQ,kCAAe;IACrD,YAAY,QAAgB;QAC3B,KAAK,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAC;IACnC,CAAC;CACD;AAJD,8CAIC"}
@@ -0,0 +1,9 @@
1
+ import { UserError } from 'n8n-workflow';
2
+ export declare class FileTooLargeError extends UserError {
3
+ constructor({ fileSizeMb, maxFileSizeMb, fileId, fileName, }: {
4
+ fileSizeMb: number;
5
+ maxFileSizeMb: number;
6
+ fileId: string;
7
+ fileName?: string;
8
+ });
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FileTooLargeError = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ class FileTooLargeError extends n8n_workflow_1.UserError {
6
+ constructor({ fileSizeMb, maxFileSizeMb, fileId, fileName, }) {
7
+ const id = fileName ? `"${fileName}" (${fileId})` : fileId;
8
+ const roundedSize = Math.round(fileSizeMb * 100) / 100;
9
+ super(`Failed to write binary file ${id} because its size of ${roundedSize} MB exceeds the max size limit of ${maxFileSizeMb} MB set for \`database\` mode. Consider increasing \`N8N_BINARY_DATA_DATABASE_MAX_FILE_SIZE\` up to 1 GB, or using S3 storage mode if you require writes larger than 1 GB.`);
10
+ }
11
+ }
12
+ exports.FileTooLargeError = FileTooLargeError;
13
+ //# sourceMappingURL=file-too-large.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-too-large.error.js","sourceRoot":"","sources":["../../src/errors/file-too-large.error.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AAEzC,MAAa,iBAAkB,SAAQ,wBAAS;IAC/C,YAAY,EACX,UAAU,EACV,aAAa,EACb,MAAM,EACN,QAAQ,GAMR;QACA,MAAM,EAAE,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,MAAM,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC;QAC3D,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;QACvD,KAAK,CACJ,+BAA+B,EAAE,wBAAwB,WAAW,qCAAqC,aAAa,4KAA4K,CAClS,CAAC;IACH,CAAC;CACD;AAlBD,8CAkBC"}
@@ -0,0 +1,11 @@
1
+ export { BinaryDataFileNotFoundError } from './binary-data-file-not-found.error';
2
+ export { FileNotFoundError } from './file-not-found.error';
3
+ export { FileTooLargeError } from './file-too-large.error';
4
+ export { DisallowedFilepathError } from './disallowed-filepath.error';
5
+ export { InvalidManagerError } from './invalid-manager.error';
6
+ export { InvalidExecutionMetadataError } from './invalid-execution-metadata.error';
7
+ export { InvalidSourceTypeError } from './invalid-source-type.error';
8
+ export { MissingSourceIdError } from './missing-source-id.error';
9
+ export { UnrecognizedCredentialTypeError } from './unrecognized-credential-type.error';
10
+ export { UnrecognizedNodeTypeError } from './unrecognized-node-type.error';
11
+ export { ErrorReporter } from './error-reporter';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorReporter = exports.UnrecognizedNodeTypeError = exports.UnrecognizedCredentialTypeError = exports.MissingSourceIdError = exports.InvalidSourceTypeError = exports.InvalidExecutionMetadataError = exports.InvalidManagerError = exports.DisallowedFilepathError = exports.FileTooLargeError = exports.FileNotFoundError = exports.BinaryDataFileNotFoundError = void 0;
4
+ var binary_data_file_not_found_error_1 = require("./binary-data-file-not-found.error");
5
+ Object.defineProperty(exports, "BinaryDataFileNotFoundError", { enumerable: true, get: function () { return binary_data_file_not_found_error_1.BinaryDataFileNotFoundError; } });
6
+ var file_not_found_error_1 = require("./file-not-found.error");
7
+ Object.defineProperty(exports, "FileNotFoundError", { enumerable: true, get: function () { return file_not_found_error_1.FileNotFoundError; } });
8
+ var file_too_large_error_1 = require("./file-too-large.error");
9
+ Object.defineProperty(exports, "FileTooLargeError", { enumerable: true, get: function () { return file_too_large_error_1.FileTooLargeError; } });
10
+ var disallowed_filepath_error_1 = require("./disallowed-filepath.error");
11
+ Object.defineProperty(exports, "DisallowedFilepathError", { enumerable: true, get: function () { return disallowed_filepath_error_1.DisallowedFilepathError; } });
12
+ var invalid_manager_error_1 = require("./invalid-manager.error");
13
+ Object.defineProperty(exports, "InvalidManagerError", { enumerable: true, get: function () { return invalid_manager_error_1.InvalidManagerError; } });
14
+ var invalid_execution_metadata_error_1 = require("./invalid-execution-metadata.error");
15
+ Object.defineProperty(exports, "InvalidExecutionMetadataError", { enumerable: true, get: function () { return invalid_execution_metadata_error_1.InvalidExecutionMetadataError; } });
16
+ var invalid_source_type_error_1 = require("./invalid-source-type.error");
17
+ Object.defineProperty(exports, "InvalidSourceTypeError", { enumerable: true, get: function () { return invalid_source_type_error_1.InvalidSourceTypeError; } });
18
+ var missing_source_id_error_1 = require("./missing-source-id.error");
19
+ Object.defineProperty(exports, "MissingSourceIdError", { enumerable: true, get: function () { return missing_source_id_error_1.MissingSourceIdError; } });
20
+ var unrecognized_credential_type_error_1 = require("./unrecognized-credential-type.error");
21
+ Object.defineProperty(exports, "UnrecognizedCredentialTypeError", { enumerable: true, get: function () { return unrecognized_credential_type_error_1.UnrecognizedCredentialTypeError; } });
22
+ var unrecognized_node_type_error_1 = require("./unrecognized-node-type.error");
23
+ Object.defineProperty(exports, "UnrecognizedNodeTypeError", { enumerable: true, get: function () { return unrecognized_node_type_error_1.UnrecognizedNodeTypeError; } });
24
+ var error_reporter_1 = require("./error-reporter");
25
+ Object.defineProperty(exports, "ErrorReporter", { enumerable: true, get: function () { return error_reporter_1.ErrorReporter; } });
26
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;AAAA,uFAAiF;AAAxE,+IAAA,2BAA2B,OAAA;AACpC,+DAA2D;AAAlD,yHAAA,iBAAiB,OAAA;AAC1B,+DAA2D;AAAlD,yHAAA,iBAAiB,OAAA;AAC1B,yEAAsE;AAA7D,oIAAA,uBAAuB,OAAA;AAChC,iEAA8D;AAArD,4HAAA,mBAAmB,OAAA;AAC5B,uFAAmF;AAA1E,iJAAA,6BAA6B,OAAA;AACtC,yEAAqE;AAA5D,mIAAA,sBAAsB,OAAA;AAC/B,qEAAiE;AAAxD,+HAAA,oBAAoB,OAAA;AAC7B,2FAAuF;AAA9E,qJAAA,+BAA+B,OAAA;AACxC,+EAA2E;AAAlE,yIAAA,yBAAyB,OAAA;AAElC,mDAAiD;AAAxC,+GAAA,aAAa,OAAA"}
@@ -0,0 +1,5 @@
1
+ import { ApplicationError } from '@n8n/errors';
2
+ export declare class InvalidExecutionMetadataError extends ApplicationError {
3
+ type: 'key' | 'value';
4
+ constructor(type: 'key' | 'value', key: unknown, message?: string, options?: ErrorOptions);
5
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidExecutionMetadataError = void 0;
4
+ const errors_1 = require("@n8n/errors");
5
+ class InvalidExecutionMetadataError extends errors_1.ApplicationError {
6
+ constructor(type, key, message, options) {
7
+ super(message ?? `Custom data ${type}s must be a string (key "${key}")`, options);
8
+ this.type = type;
9
+ }
10
+ }
11
+ exports.InvalidExecutionMetadataError = InvalidExecutionMetadataError;
12
+ //# sourceMappingURL=invalid-execution-metadata.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invalid-execution-metadata.error.js","sourceRoot":"","sources":["../../src/errors/invalid-execution-metadata.error.ts"],"names":[],"mappings":";;;AAAA,wCAA+C;AAE/C,MAAa,6BAA8B,SAAQ,yBAAgB;IAClE,YACQ,IAAqB,EAC5B,GAAY,EACZ,OAAgB,EAChB,OAAsB;QAGtB,KAAK,CAAC,OAAO,IAAI,eAAe,IAAI,4BAA4B,GAAG,IAAI,EAAE,OAAO,CAAC,CAAC;QAN3E,SAAI,GAAJ,IAAI,CAAiB;IAO7B,CAAC;CACD;AAVD,sEAUC"}
@@ -0,0 +1,4 @@
1
+ import { BinaryDataError } from './abstract/binary-data.error';
2
+ export declare class InvalidManagerError extends BinaryDataError {
3
+ constructor(mode: string);
4
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidManagerError = void 0;
4
+ const binary_data_error_1 = require("./abstract/binary-data.error");
5
+ class InvalidManagerError extends binary_data_error_1.BinaryDataError {
6
+ constructor(mode) {
7
+ super(`No binary data manager found for: ${mode}`);
8
+ }
9
+ }
10
+ exports.InvalidManagerError = InvalidManagerError;
11
+ //# sourceMappingURL=invalid-manager.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invalid-manager.error.js","sourceRoot":"","sources":["../../src/errors/invalid-manager.error.ts"],"names":[],"mappings":";;;AAAA,oEAA+D;AAE/D,MAAa,mBAAoB,SAAQ,mCAAe;IACvD,YAAY,IAAY;QACvB,KAAK,CAAC,qCAAqC,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;CACD;AAJD,kDAIC"}
@@ -0,0 +1,4 @@
1
+ import { UnexpectedError } from 'n8n-workflow';
2
+ export declare class InvalidSourceTypeError extends UnexpectedError {
3
+ constructor(sourceType: string);
4
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidSourceTypeError = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ class InvalidSourceTypeError extends n8n_workflow_1.UnexpectedError {
6
+ constructor(sourceType) {
7
+ super(`Custom file location with invalid source type: ${sourceType}`);
8
+ }
9
+ }
10
+ exports.InvalidSourceTypeError = InvalidSourceTypeError;
11
+ //# sourceMappingURL=invalid-source-type.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invalid-source-type.error.js","sourceRoot":"","sources":["../../src/errors/invalid-source-type.error.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAE/C,MAAa,sBAAuB,SAAQ,8BAAe;IAC1D,YAAY,UAAkB;QAC7B,KAAK,CAAC,kDAAkD,UAAU,EAAE,CAAC,CAAC;IACvE,CAAC;CACD;AAJD,wDAIC"}
@@ -0,0 +1,4 @@
1
+ import { UnexpectedError } from 'n8n-workflow';
2
+ export declare class MissingSourceIdError extends UnexpectedError {
3
+ constructor(pathSegments: string[]);
4
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MissingSourceIdError = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ class MissingSourceIdError extends n8n_workflow_1.UnexpectedError {
6
+ constructor(pathSegments) {
7
+ super(`Custom file location missing sourceId: ${pathSegments.join('/')}`);
8
+ }
9
+ }
10
+ exports.MissingSourceIdError = MissingSourceIdError;
11
+ //# sourceMappingURL=missing-source-id.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"missing-source-id.error.js","sourceRoot":"","sources":["../../src/errors/missing-source-id.error.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAE/C,MAAa,oBAAqB,SAAQ,8BAAe;IACxD,YAAY,YAAsB;QACjC,KAAK,CAAC,0CAA0C,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC3E,CAAC;CACD;AAJD,oDAIC"}
@@ -0,0 +1,4 @@
1
+ import { UserError } from 'n8n-workflow';
2
+ export declare class UnrecognizedCredentialTypeError extends UserError {
3
+ constructor(credentialType: string);
4
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnrecognizedCredentialTypeError = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ class UnrecognizedCredentialTypeError extends n8n_workflow_1.UserError {
6
+ constructor(credentialType) {
7
+ super(`Unrecognized credential type: ${credentialType}`);
8
+ }
9
+ }
10
+ exports.UnrecognizedCredentialTypeError = UnrecognizedCredentialTypeError;
11
+ //# sourceMappingURL=unrecognized-credential-type.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unrecognized-credential-type.error.js","sourceRoot":"","sources":["../../src/errors/unrecognized-credential-type.error.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AAEzC,MAAa,+BAAgC,SAAQ,wBAAS;IAC7D,YAAY,cAAsB;QACjC,KAAK,CAAC,iCAAiC,cAAc,EAAE,CAAC,CAAC;IAC1D,CAAC;CACD;AAJD,0EAIC"}
@@ -0,0 +1,4 @@
1
+ import { UserError } from 'n8n-workflow';
2
+ export declare class UnrecognizedNodeTypeError extends UserError {
3
+ constructor(packageName: string, nodeType: string);
4
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnrecognizedNodeTypeError = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ class UnrecognizedNodeTypeError extends n8n_workflow_1.UserError {
6
+ constructor(packageName, nodeType) {
7
+ super(`Unrecognized node type: ${packageName}.${nodeType}`);
8
+ }
9
+ }
10
+ exports.UnrecognizedNodeTypeError = UnrecognizedNodeTypeError;
11
+ //# sourceMappingURL=unrecognized-node-type.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unrecognized-node-type.error.js","sourceRoot":"","sources":["../../src/errors/unrecognized-node-type.error.ts"],"names":[],"mappings":";;;AAAA,+CAAyC;AAEzC,MAAa,yBAA0B,SAAQ,wBAAS;IACvD,YAAY,WAAmB,EAAE,QAAgB;QAChD,KAAK,CAAC,2BAA2B,WAAW,IAAI,QAAQ,EAAE,CAAC,CAAC;IAC7D,CAAC;CACD;AAJD,8DAIC"}
@@ -0,0 +1,4 @@
1
+ import { WorkflowOperationError } from 'n8n-workflow';
2
+ export declare class WorkflowHasIssuesError extends WorkflowOperationError {
3
+ constructor();
4
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowHasIssuesError = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ class WorkflowHasIssuesError extends n8n_workflow_1.WorkflowOperationError {
6
+ constructor() {
7
+ super('The workflow has issues and cannot be executed for that reason. Please fix them first.');
8
+ }
9
+ }
10
+ exports.WorkflowHasIssuesError = WorkflowHasIssuesError;
11
+ //# sourceMappingURL=workflow-has-issues.error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow-has-issues.error.js","sourceRoot":"","sources":["../../src/errors/workflow-has-issues.error.ts"],"names":[],"mappings":";;;AAAA,+CAAsD;AAEtD,MAAa,sBAAuB,SAAQ,qCAAsB;IACjE;QACC,KAAK,CAAC,wFAAwF,CAAC,CAAC;IACjG,CAAC;CACD;AAJD,wDAIC"}
@@ -0,0 +1,23 @@
1
+ import { Logger } from '@n8n/backend-common';
2
+ import type { IWorkflowExecuteAdditionalData, Workflow, WorkflowActivateMode, WorkflowExecuteMode } from 'n8n-workflow';
3
+ import { ErrorReporter } from '../errors/error-reporter';
4
+ import type { IWorkflowData } from '../interfaces';
5
+ import type { IGetExecutePollFunctions, IGetExecuteTriggerFunctions } from './interfaces';
6
+ import { ScheduledTaskManager } from './scheduled-task-manager';
7
+ import { TriggersAndPollers } from './triggers-and-pollers';
8
+ export declare class ActiveWorkflows {
9
+ private readonly logger;
10
+ private readonly scheduledTaskManager;
11
+ private readonly triggersAndPollers;
12
+ private readonly errorReporter;
13
+ constructor(logger: Logger, scheduledTaskManager: ScheduledTaskManager, triggersAndPollers: TriggersAndPollers, errorReporter: ErrorReporter);
14
+ private activeWorkflows;
15
+ isActive(workflowId: string): boolean;
16
+ allActiveWorkflows(): string[];
17
+ get(workflowId: string): IWorkflowData;
18
+ add(workflowId: string, workflow: Workflow, additionalData: IWorkflowExecuteAdditionalData, mode: WorkflowExecuteMode, activation: WorkflowActivateMode, getTriggerFunctions: IGetExecuteTriggerFunctions, getPollFunctions: IGetExecutePollFunctions): Promise<void>;
19
+ private activatePolling;
20
+ remove(workflowId: string): Promise<boolean>;
21
+ removeAllTriggerAndPollerBasedWorkflows(): Promise<void>;
22
+ private closeTrigger;
23
+ }