@decaf-ts/as-graph 0.7.0 → 0.8.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 (383) hide show
  1. package/README.md +92 -12
  2. package/assets/i18n/en.json +1519 -130
  3. package/dist/as-graph.cjs +1 -1
  4. package/dist/as-graph.cjs.map +1 -1
  5. package/dist/as-graph.js +1 -1
  6. package/dist/as-graph.js.map +1 -1
  7. package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs +13 -0
  8. package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs.map +1 -1
  9. package/lib/cjs/dagster/capabilities.cjs +5 -0
  10. package/lib/cjs/dagster/capabilities.cjs.map +1 -1
  11. package/lib/cjs/engine/execution/GraphCodeMode.cjs +42 -0
  12. package/lib/cjs/engine/execution/GraphCodeMode.cjs.map +1 -1
  13. package/lib/cjs/engine/execution/GraphExecutionEngine.cjs +35 -4
  14. package/lib/cjs/engine/execution/GraphExecutionEngine.cjs.map +1 -1
  15. package/lib/cjs/engine/validation/GraphNodeInstanceValidator.cjs +29 -1
  16. package/lib/cjs/engine/validation/GraphNodeInstanceValidator.cjs.map +1 -1
  17. package/lib/cjs/engine/validation/GraphWorkflowDocumentValidator.cjs +6 -2
  18. package/lib/cjs/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -1
  19. package/lib/cjs/mastra/MastraWorkflowCompiler.cjs +41 -9
  20. package/lib/cjs/mastra/MastraWorkflowCompiler.cjs.map +1 -1
  21. package/lib/cjs/nest/graph/GraphEngineController.cjs +18 -0
  22. package/lib/cjs/nest/graph/GraphEngineController.cjs.map +1 -1
  23. package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +14 -0
  24. package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +1 -1
  25. package/lib/cjs/nest/graph/GraphRunController.cjs +17 -0
  26. package/lib/cjs/nest/graph/GraphRunController.cjs.map +1 -1
  27. package/lib/cjs/nest/graph/GraphWorkflowController.cjs +34 -5
  28. package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +1 -1
  29. package/lib/cjs/node/comms/discord/node.cjs +384 -0
  30. package/lib/cjs/node/comms/discord/node.cjs.map +1 -0
  31. package/lib/cjs/node/comms/outlook/node.cjs +395 -0
  32. package/lib/cjs/node/comms/outlook/node.cjs.map +1 -0
  33. package/lib/cjs/node/comms/whatsapp/node.cjs +341 -0
  34. package/lib/cjs/node/comms/whatsapp/node.cjs.map +1 -0
  35. package/lib/cjs/node/data/aggregate/node.cjs +196 -0
  36. package/lib/cjs/node/data/aggregate/node.cjs.map +1 -0
  37. package/lib/cjs/node/data/compare-datasets/node.cjs +331 -0
  38. package/lib/cjs/node/data/compare-datasets/node.cjs.map +1 -0
  39. package/lib/cjs/node/data/item-lists/node.cjs +416 -0
  40. package/lib/cjs/node/data/item-lists/node.cjs.map +1 -0
  41. package/lib/cjs/node/data/remove-duplicates/node.cjs +141 -0
  42. package/lib/cjs/node/data/remove-duplicates/node.cjs.map +1 -0
  43. package/lib/cjs/node/data/summarize/node.cjs +155 -0
  44. package/lib/cjs/node/data/summarize/node.cjs.map +1 -0
  45. package/lib/cjs/node/data/support.cjs +5 -0
  46. package/lib/cjs/node/data/support.cjs.map +1 -1
  47. package/lib/cjs/node/data/transform-utils.cjs +719 -0
  48. package/lib/cjs/node/data/transform-utils.cjs.map +1 -0
  49. package/lib/cjs/node/index.cjs +216 -110
  50. package/lib/cjs/node/index.cjs.map +1 -1
  51. package/lib/cjs/node/io/confluence/node.cjs +253 -0
  52. package/lib/cjs/node/io/confluence/node.cjs.map +1 -0
  53. package/lib/cjs/node/io/convert-to-file/node.cjs +349 -0
  54. package/lib/cjs/node/io/convert-to-file/node.cjs.map +1 -0
  55. package/lib/cjs/node/io/file-support.cjs +311 -0
  56. package/lib/cjs/node/io/file-support.cjs.map +1 -0
  57. package/lib/cjs/node/io/google-calendar/node.cjs +359 -0
  58. package/lib/cjs/node/io/google-calendar/node.cjs.map +1 -0
  59. package/lib/cjs/node/io/google-docs/node.cjs +272 -0
  60. package/lib/cjs/node/io/google-docs/node.cjs.map +1 -0
  61. package/lib/cjs/node/io/html/node.cjs +275 -0
  62. package/lib/cjs/node/io/html/node.cjs.map +1 -0
  63. package/lib/cjs/node/io/html-extract/node.cjs +162 -0
  64. package/lib/cjs/node/io/html-extract/node.cjs.map +1 -0
  65. package/lib/cjs/node/io/html-support.cjs +246 -0
  66. package/lib/cjs/node/io/html-support.cjs.map +1 -0
  67. package/lib/cjs/node/io/jira/node.cjs +351 -0
  68. package/lib/cjs/node/io/jira/node.cjs.map +1 -0
  69. package/lib/cjs/node/io/markdown/node.cjs +229 -0
  70. package/lib/cjs/node/io/markdown/node.cjs.map +1 -0
  71. package/lib/cjs/node/io/microsoft-excel/node.cjs +261 -0
  72. package/lib/cjs/node/io/microsoft-excel/node.cjs.map +1 -0
  73. package/lib/cjs/node/io/microsoft-sharepoint/node.cjs +274 -0
  74. package/lib/cjs/node/io/microsoft-sharepoint/node.cjs.map +1 -0
  75. package/lib/cjs/node/io/read-binary-file/node.cjs +114 -0
  76. package/lib/cjs/node/io/read-binary-file/node.cjs.map +1 -0
  77. package/lib/cjs/node/io/read-binary-files/node.cjs +113 -0
  78. package/lib/cjs/node/io/read-binary-files/node.cjs.map +1 -0
  79. package/lib/cjs/node/io/write-binary-file/node.cjs +164 -0
  80. package/lib/cjs/node/io/write-binary-file/node.cjs.map +1 -0
  81. package/lib/cjs/node/io/xml/node.cjs +322 -0
  82. package/lib/cjs/node/io/xml/node.cjs.map +1 -0
  83. package/lib/cjs/node/manifests.cjs +137 -79
  84. package/lib/cjs/node/manifests.cjs.map +1 -1
  85. package/lib/cjs/node/storage/rabbitmq/node.cjs +252 -0
  86. package/lib/cjs/node/storage/rabbitmq/node.cjs.map +1 -0
  87. package/lib/cjs/node/triggers/error/node.cjs +108 -0
  88. package/lib/cjs/node/triggers/error/node.cjs.map +1 -0
  89. package/lib/cjs/node/triggers/postgres/node.cjs +244 -0
  90. package/lib/cjs/node/triggers/postgres/node.cjs.map +1 -0
  91. package/lib/cjs/node/triggers/rabbitmq/node.cjs +284 -0
  92. package/lib/cjs/node/triggers/rabbitmq/node.cjs.map +1 -0
  93. package/lib/cjs/node/triggers/redis/node.cjs +233 -0
  94. package/lib/cjs/node/triggers/redis/node.cjs.map +1 -0
  95. package/lib/cjs/node/triggers/sse/node.cjs +196 -0
  96. package/lib/cjs/node/triggers/sse/node.cjs.map +1 -0
  97. package/lib/cjs/node/triggers/support.cjs +107 -0
  98. package/lib/cjs/node/triggers/support.cjs.map +1 -0
  99. package/lib/cjs/node/triggers/workflow/node.cjs +193 -0
  100. package/lib/cjs/node/triggers/workflow/node.cjs.map +1 -0
  101. package/lib/cjs/shared/graph/catalog/GraphValueSchemaDerivation.cjs +20 -3
  102. package/lib/cjs/shared/graph/catalog/GraphValueSchemaDerivation.cjs.map +1 -1
  103. package/lib/cjs/workflows/boundary-value.workflow.cjs +38 -0
  104. package/lib/cjs/workflows/boundary-value.workflow.cjs.map +1 -0
  105. package/lib/cjs/workflows/builders.cjs +47 -0
  106. package/lib/cjs/workflows/builders.cjs.map +1 -0
  107. package/lib/cjs/workflows/chat-agent.workflow.cjs +40 -0
  108. package/lib/cjs/workflows/chat-agent.workflow.cjs.map +1 -0
  109. package/lib/cjs/workflows/error-boundary.workflow.cjs +54 -0
  110. package/lib/cjs/workflows/error-boundary.workflow.cjs.map +1 -0
  111. package/lib/cjs/workflows/event-map.workflow.cjs +37 -0
  112. package/lib/cjs/workflows/event-map.workflow.cjs.map +1 -0
  113. package/lib/cjs/workflows/foreach-break.workflow.cjs +58 -0
  114. package/lib/cjs/workflows/foreach-break.workflow.cjs.map +1 -0
  115. package/lib/cjs/workflows/human-approval.workflow.cjs +44 -0
  116. package/lib/cjs/workflows/human-approval.workflow.cjs.map +1 -0
  117. package/lib/cjs/workflows/if-switch.workflow.cjs +66 -0
  118. package/lib/cjs/workflows/if-switch.workflow.cjs.map +1 -0
  119. package/lib/cjs/workflows/index.cjs +135 -0
  120. package/lib/cjs/workflows/index.cjs.map +1 -0
  121. package/lib/cjs/workflows/loops-while-until.workflow.cjs +76 -0
  122. package/lib/cjs/workflows/loops-while-until.workflow.cjs.map +1 -0
  123. package/lib/cjs/workflows/manual-log.workflow.cjs +52 -0
  124. package/lib/cjs/workflows/manual-log.workflow.cjs.map +1 -0
  125. package/lib/cjs/workflows/schedule-code.workflow.cjs +42 -0
  126. package/lib/cjs/workflows/schedule-code.workflow.cjs.map +1 -0
  127. package/lib/cjs/workflows/types.cjs +4 -0
  128. package/lib/cjs/workflows/types.cjs.map +1 -0
  129. package/lib/cjs/workflows/value-templates.workflow.cjs +43 -0
  130. package/lib/cjs/workflows/value-templates.workflow.cjs.map +1 -0
  131. package/lib/cjs/workflows/webhook-form.workflow.cjs +48 -0
  132. package/lib/cjs/workflows/webhook-form.workflow.cjs.map +1 -0
  133. package/lib/esm/dagster/DagsterGraphExecutionBackend.js +13 -0
  134. package/lib/esm/dagster/DagsterGraphExecutionBackend.js.map +1 -1
  135. package/lib/esm/dagster/capabilities.js +5 -0
  136. package/lib/esm/dagster/capabilities.js.map +1 -1
  137. package/lib/esm/engine/execution/GraphCodeMode.js +40 -0
  138. package/lib/esm/engine/execution/GraphCodeMode.js.map +1 -1
  139. package/lib/esm/engine/execution/GraphExecutionBackend.js.map +1 -1
  140. package/lib/esm/engine/execution/GraphExecutionEngine.js +36 -5
  141. package/lib/esm/engine/execution/GraphExecutionEngine.js.map +1 -1
  142. package/lib/esm/engine/validation/GraphNodeInstanceValidator.js +29 -1
  143. package/lib/esm/engine/validation/GraphNodeInstanceValidator.js.map +1 -1
  144. package/lib/esm/engine/validation/GraphWorkflowDocumentValidator.js +6 -2
  145. package/lib/esm/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -1
  146. package/lib/esm/mastra/MastraMemory.js.map +1 -1
  147. package/lib/esm/mastra/MastraWorkflowCompiler.js +41 -9
  148. package/lib/esm/mastra/MastraWorkflowCompiler.js.map +1 -1
  149. package/lib/esm/nest/graph/GraphEngineController.js +19 -1
  150. package/lib/esm/nest/graph/GraphEngineController.js.map +1 -1
  151. package/lib/esm/nest/graph/GraphNodeCatalogueController.js +15 -1
  152. package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +1 -1
  153. package/lib/esm/nest/graph/GraphRunController.js +18 -1
  154. package/lib/esm/nest/graph/GraphRunController.js.map +1 -1
  155. package/lib/esm/nest/graph/GraphWorkflowController.js +35 -6
  156. package/lib/esm/nest/graph/GraphWorkflowController.js.map +1 -1
  157. package/lib/esm/node/comms/discord/node.js +375 -0
  158. package/lib/esm/node/comms/discord/node.js.map +1 -0
  159. package/lib/esm/node/comms/outlook/node.js +386 -0
  160. package/lib/esm/node/comms/outlook/node.js.map +1 -0
  161. package/lib/esm/node/comms/whatsapp/node.js +332 -0
  162. package/lib/esm/node/comms/whatsapp/node.js.map +1 -0
  163. package/lib/esm/node/data/aggregate/node.js +187 -0
  164. package/lib/esm/node/data/aggregate/node.js.map +1 -0
  165. package/lib/esm/node/data/compare-datasets/node.js +322 -0
  166. package/lib/esm/node/data/compare-datasets/node.js.map +1 -0
  167. package/lib/esm/node/data/item-lists/node.js +407 -0
  168. package/lib/esm/node/data/item-lists/node.js.map +1 -0
  169. package/lib/esm/node/data/remove-duplicates/node.js +132 -0
  170. package/lib/esm/node/data/remove-duplicates/node.js.map +1 -0
  171. package/lib/esm/node/data/summarize/node.js +146 -0
  172. package/lib/esm/node/data/summarize/node.js.map +1 -0
  173. package/lib/esm/node/data/support.js +5 -1
  174. package/lib/esm/node/data/support.js.map +1 -1
  175. package/lib/esm/node/data/transform-utils.js +702 -0
  176. package/lib/esm/node/data/transform-utils.js.map +1 -0
  177. package/lib/esm/node/index.js +110 -4
  178. package/lib/esm/node/index.js.map +1 -1
  179. package/lib/esm/node/io/confluence/node.js +244 -0
  180. package/lib/esm/node/io/confluence/node.js.map +1 -0
  181. package/lib/esm/node/io/convert-to-file/node.js +340 -0
  182. package/lib/esm/node/io/convert-to-file/node.js.map +1 -0
  183. package/lib/esm/node/io/file-support.js +299 -0
  184. package/lib/esm/node/io/file-support.js.map +1 -0
  185. package/lib/esm/node/io/google-calendar/node.js +350 -0
  186. package/lib/esm/node/io/google-calendar/node.js.map +1 -0
  187. package/lib/esm/node/io/google-docs/node.js +263 -0
  188. package/lib/esm/node/io/google-docs/node.js.map +1 -0
  189. package/lib/esm/node/io/html/node.js +266 -0
  190. package/lib/esm/node/io/html/node.js.map +1 -0
  191. package/lib/esm/node/io/html-extract/node.js +153 -0
  192. package/lib/esm/node/io/html-extract/node.js.map +1 -0
  193. package/lib/esm/node/io/html-support.js +206 -0
  194. package/lib/esm/node/io/html-support.js.map +1 -0
  195. package/lib/esm/node/io/jira/node.js +342 -0
  196. package/lib/esm/node/io/jira/node.js.map +1 -0
  197. package/lib/esm/node/io/markdown/node.js +217 -0
  198. package/lib/esm/node/io/markdown/node.js.map +1 -0
  199. package/lib/esm/node/io/microsoft-excel/node.js +252 -0
  200. package/lib/esm/node/io/microsoft-excel/node.js.map +1 -0
  201. package/lib/esm/node/io/microsoft-sharepoint/node.js +265 -0
  202. package/lib/esm/node/io/microsoft-sharepoint/node.js.map +1 -0
  203. package/lib/esm/node/io/read-binary-file/node.js +105 -0
  204. package/lib/esm/node/io/read-binary-file/node.js.map +1 -0
  205. package/lib/esm/node/io/read-binary-files/node.js +104 -0
  206. package/lib/esm/node/io/read-binary-files/node.js.map +1 -0
  207. package/lib/esm/node/io/write-binary-file/node.js +155 -0
  208. package/lib/esm/node/io/write-binary-file/node.js.map +1 -0
  209. package/lib/esm/node/io/xml/node.js +313 -0
  210. package/lib/esm/node/io/xml/node.js.map +1 -0
  211. package/lib/esm/node/manifests.js +58 -0
  212. package/lib/esm/node/manifests.js.map +1 -1
  213. package/lib/esm/node/storage/rabbitmq/node.js +243 -0
  214. package/lib/esm/node/storage/rabbitmq/node.js.map +1 -0
  215. package/lib/esm/node/triggers/error/node.js +99 -0
  216. package/lib/esm/node/triggers/error/node.js.map +1 -0
  217. package/lib/esm/node/triggers/postgres/node.js +235 -0
  218. package/lib/esm/node/triggers/postgres/node.js.map +1 -0
  219. package/lib/esm/node/triggers/rabbitmq/node.js +275 -0
  220. package/lib/esm/node/triggers/rabbitmq/node.js.map +1 -0
  221. package/lib/esm/node/triggers/redis/node.js +224 -0
  222. package/lib/esm/node/triggers/redis/node.js.map +1 -0
  223. package/lib/esm/node/triggers/sse/node.js +187 -0
  224. package/lib/esm/node/triggers/sse/node.js.map +1 -0
  225. package/lib/esm/node/triggers/support.js +99 -0
  226. package/lib/esm/node/triggers/support.js.map +1 -0
  227. package/lib/esm/node/triggers/workflow/node.js +184 -0
  228. package/lib/esm/node/triggers/workflow/node.js.map +1 -0
  229. package/lib/esm/shared/graph/catalog/GraphValueSchemaDerivation.js +20 -3
  230. package/lib/esm/shared/graph/catalog/GraphValueSchemaDerivation.js.map +1 -1
  231. package/lib/esm/workflows/boundary-value.workflow.js +34 -0
  232. package/lib/esm/workflows/boundary-value.workflow.js.map +1 -0
  233. package/lib/esm/workflows/builders.js +40 -0
  234. package/lib/esm/workflows/builders.js.map +1 -0
  235. package/lib/esm/workflows/chat-agent.workflow.js +36 -0
  236. package/lib/esm/workflows/chat-agent.workflow.js.map +1 -0
  237. package/lib/esm/workflows/error-boundary.workflow.js +50 -0
  238. package/lib/esm/workflows/error-boundary.workflow.js.map +1 -0
  239. package/lib/esm/workflows/event-map.workflow.js +33 -0
  240. package/lib/esm/workflows/event-map.workflow.js.map +1 -0
  241. package/lib/esm/workflows/foreach-break.workflow.js +54 -0
  242. package/lib/esm/workflows/foreach-break.workflow.js.map +1 -0
  243. package/lib/esm/workflows/human-approval.workflow.js +40 -0
  244. package/lib/esm/workflows/human-approval.workflow.js.map +1 -0
  245. package/lib/esm/workflows/if-switch.workflow.js +62 -0
  246. package/lib/esm/workflows/if-switch.workflow.js.map +1 -0
  247. package/lib/esm/workflows/index.js +116 -0
  248. package/lib/esm/workflows/index.js.map +1 -0
  249. package/lib/esm/workflows/loops-while-until.workflow.js +72 -0
  250. package/lib/esm/workflows/loops-while-until.workflow.js.map +1 -0
  251. package/lib/esm/workflows/manual-log.workflow.js +48 -0
  252. package/lib/esm/workflows/manual-log.workflow.js.map +1 -0
  253. package/lib/esm/workflows/schedule-code.workflow.js +38 -0
  254. package/lib/esm/workflows/schedule-code.workflow.js.map +1 -0
  255. package/lib/esm/workflows/types.js +2 -0
  256. package/lib/esm/workflows/types.js.map +1 -0
  257. package/lib/esm/workflows/value-templates.workflow.js +39 -0
  258. package/lib/esm/workflows/value-templates.workflow.js.map +1 -0
  259. package/lib/esm/workflows/webhook-form.workflow.js +44 -0
  260. package/lib/esm/workflows/webhook-form.workflow.js.map +1 -0
  261. package/lib/types/dagster/DagsterGraphExecutionBackend.d.cts +7 -0
  262. package/lib/types/dagster/DagsterGraphExecutionBackend.d.mts +7 -0
  263. package/lib/types/engine/execution/GraphCodeMode.d.cts +46 -0
  264. package/lib/types/engine/execution/GraphCodeMode.d.mts +46 -0
  265. package/lib/types/engine/execution/GraphExecutionBackend.d.cts +21 -0
  266. package/lib/types/engine/execution/GraphExecutionBackend.d.mts +21 -0
  267. package/lib/types/engine/execution/GraphExecutionEngine.d.cts +28 -3
  268. package/lib/types/engine/execution/GraphExecutionEngine.d.mts +28 -3
  269. package/lib/types/engine/validation/GraphNodeInstanceValidator.d.cts +11 -1
  270. package/lib/types/engine/validation/GraphNodeInstanceValidator.d.mts +11 -1
  271. package/lib/types/engine/validation/GraphWorkflowDocumentValidator.d.cts +7 -0
  272. package/lib/types/engine/validation/GraphWorkflowDocumentValidator.d.mts +7 -0
  273. package/lib/types/mastra/MastraWorkflowCompiler.d.cts +23 -8
  274. package/lib/types/mastra/MastraWorkflowCompiler.d.mts +23 -8
  275. package/lib/types/nest/graph/GraphEngineController.d.cts +19 -0
  276. package/lib/types/nest/graph/GraphEngineController.d.mts +19 -0
  277. package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +13 -0
  278. package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +13 -0
  279. package/lib/types/nest/graph/GraphRunController.d.cts +16 -0
  280. package/lib/types/nest/graph/GraphRunController.d.mts +16 -0
  281. package/lib/types/nest/graph/GraphWorkflowController.d.cts +26 -3
  282. package/lib/types/nest/graph/GraphWorkflowController.d.mts +26 -3
  283. package/lib/types/node/comms/discord/node.d.cts +67 -0
  284. package/lib/types/node/comms/discord/node.d.mts +67 -0
  285. package/lib/types/node/comms/outlook/node.d.cts +77 -0
  286. package/lib/types/node/comms/outlook/node.d.mts +77 -0
  287. package/lib/types/node/comms/whatsapp/node.d.cts +71 -0
  288. package/lib/types/node/comms/whatsapp/node.d.mts +71 -0
  289. package/lib/types/node/data/aggregate/node.d.cts +58 -0
  290. package/lib/types/node/data/aggregate/node.d.mts +58 -0
  291. package/lib/types/node/data/compare-datasets/node.d.cts +72 -0
  292. package/lib/types/node/data/compare-datasets/node.d.mts +72 -0
  293. package/lib/types/node/data/item-lists/node.d.cts +92 -0
  294. package/lib/types/node/data/item-lists/node.d.mts +92 -0
  295. package/lib/types/node/data/remove-duplicates/node.d.cts +47 -0
  296. package/lib/types/node/data/remove-duplicates/node.d.mts +47 -0
  297. package/lib/types/node/data/summarize/node.d.cts +44 -0
  298. package/lib/types/node/data/summarize/node.d.mts +44 -0
  299. package/lib/types/node/data/support.d.cts +13 -0
  300. package/lib/types/node/data/support.d.mts +13 -0
  301. package/lib/types/node/data/transform-utils.d.cts +236 -0
  302. package/lib/types/node/data/transform-utils.d.mts +236 -0
  303. package/lib/types/node/index.d.cts +54 -6
  304. package/lib/types/node/index.d.mts +54 -6
  305. package/lib/types/node/io/confluence/node.d.cts +49 -0
  306. package/lib/types/node/io/confluence/node.d.mts +49 -0
  307. package/lib/types/node/io/convert-to-file/node.d.cts +75 -0
  308. package/lib/types/node/io/convert-to-file/node.d.mts +75 -0
  309. package/lib/types/node/io/file-support.d.cts +118 -0
  310. package/lib/types/node/io/file-support.d.mts +118 -0
  311. package/lib/types/node/io/google-calendar/node.d.cts +65 -0
  312. package/lib/types/node/io/google-calendar/node.d.mts +65 -0
  313. package/lib/types/node/io/google-docs/node.d.cts +51 -0
  314. package/lib/types/node/io/google-docs/node.d.mts +51 -0
  315. package/lib/types/node/io/html/node.d.cts +68 -0
  316. package/lib/types/node/io/html/node.d.mts +68 -0
  317. package/lib/types/node/io/html-extract/node.d.cts +42 -0
  318. package/lib/types/node/io/html-extract/node.d.mts +42 -0
  319. package/lib/types/node/io/html-support.d.cts +69 -0
  320. package/lib/types/node/io/html-support.d.mts +69 -0
  321. package/lib/types/node/io/jira/node.d.cts +57 -0
  322. package/lib/types/node/io/jira/node.d.mts +57 -0
  323. package/lib/types/node/io/markdown/node.d.cts +61 -0
  324. package/lib/types/node/io/markdown/node.d.mts +61 -0
  325. package/lib/types/node/io/microsoft-excel/node.d.cts +45 -0
  326. package/lib/types/node/io/microsoft-excel/node.d.mts +45 -0
  327. package/lib/types/node/io/microsoft-sharepoint/node.d.cts +47 -0
  328. package/lib/types/node/io/microsoft-sharepoint/node.d.mts +47 -0
  329. package/lib/types/node/io/read-binary-file/node.d.cts +45 -0
  330. package/lib/types/node/io/read-binary-file/node.d.mts +45 -0
  331. package/lib/types/node/io/read-binary-files/node.d.cts +41 -0
  332. package/lib/types/node/io/read-binary-files/node.d.mts +41 -0
  333. package/lib/types/node/io/write-binary-file/node.d.cts +55 -0
  334. package/lib/types/node/io/write-binary-file/node.d.mts +55 -0
  335. package/lib/types/node/io/xml/node.d.cts +67 -0
  336. package/lib/types/node/io/xml/node.d.mts +67 -0
  337. package/lib/types/node/storage/rabbitmq/node.d.cts +55 -0
  338. package/lib/types/node/storage/rabbitmq/node.d.mts +55 -0
  339. package/lib/types/node/triggers/error/node.d.cts +34 -0
  340. package/lib/types/node/triggers/error/node.d.mts +34 -0
  341. package/lib/types/node/triggers/postgres/node.d.cts +54 -0
  342. package/lib/types/node/triggers/postgres/node.d.mts +54 -0
  343. package/lib/types/node/triggers/rabbitmq/node.d.cts +59 -0
  344. package/lib/types/node/triggers/rabbitmq/node.d.mts +59 -0
  345. package/lib/types/node/triggers/redis/node.d.cts +53 -0
  346. package/lib/types/node/triggers/redis/node.d.mts +53 -0
  347. package/lib/types/node/triggers/sse/node.d.cts +43 -0
  348. package/lib/types/node/triggers/sse/node.d.mts +43 -0
  349. package/lib/types/node/triggers/support.d.cts +41 -0
  350. package/lib/types/node/triggers/support.d.mts +41 -0
  351. package/lib/types/node/triggers/workflow/node.d.cts +46 -0
  352. package/lib/types/node/triggers/workflow/node.d.mts +46 -0
  353. package/lib/types/workflows/boundary-value.workflow.d.cts +3 -0
  354. package/lib/types/workflows/boundary-value.workflow.d.mts +3 -0
  355. package/lib/types/workflows/builders.d.cts +31 -0
  356. package/lib/types/workflows/builders.d.mts +31 -0
  357. package/lib/types/workflows/chat-agent.workflow.d.cts +3 -0
  358. package/lib/types/workflows/chat-agent.workflow.d.mts +3 -0
  359. package/lib/types/workflows/error-boundary.workflow.d.cts +3 -0
  360. package/lib/types/workflows/error-boundary.workflow.d.mts +3 -0
  361. package/lib/types/workflows/event-map.workflow.d.cts +3 -0
  362. package/lib/types/workflows/event-map.workflow.d.mts +3 -0
  363. package/lib/types/workflows/foreach-break.workflow.d.cts +3 -0
  364. package/lib/types/workflows/foreach-break.workflow.d.mts +3 -0
  365. package/lib/types/workflows/human-approval.workflow.d.cts +3 -0
  366. package/lib/types/workflows/human-approval.workflow.d.mts +3 -0
  367. package/lib/types/workflows/if-switch.workflow.d.cts +3 -0
  368. package/lib/types/workflows/if-switch.workflow.d.mts +3 -0
  369. package/lib/types/workflows/index.d.cts +37 -0
  370. package/lib/types/workflows/index.d.mts +37 -0
  371. package/lib/types/workflows/loops-while-until.workflow.d.cts +3 -0
  372. package/lib/types/workflows/loops-while-until.workflow.d.mts +3 -0
  373. package/lib/types/workflows/manual-log.workflow.d.cts +3 -0
  374. package/lib/types/workflows/manual-log.workflow.d.mts +3 -0
  375. package/lib/types/workflows/schedule-code.workflow.d.cts +3 -0
  376. package/lib/types/workflows/schedule-code.workflow.d.mts +3 -0
  377. package/lib/types/workflows/types.d.cts +32 -0
  378. package/lib/types/workflows/types.d.mts +32 -0
  379. package/lib/types/workflows/value-templates.workflow.d.cts +16 -0
  380. package/lib/types/workflows/value-templates.workflow.d.mts +16 -0
  381. package/lib/types/workflows/webhook-form.workflow.d.cts +3 -0
  382. package/lib/types/workflows/webhook-form.workflow.d.mts +3 -0
  383. package/package.json +247 -25
@@ -0,0 +1,72 @@
1
+ import { GraphNode } from "../../base.d.cts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
3
+ /** A pair of field names to match across the two datasets (`field1`/`field2` or their `fieldA`/`fieldB` aliases). */
4
+ export interface CompareFieldPair {
5
+ field1?: string;
6
+ field2?: string;
7
+ fieldA?: string;
8
+ fieldB?: string;
9
+ }
10
+ /** How a matched pair with differing values is emitted: keep input 1, input 2, a mixed record, or both sides. */
11
+ export type CompareResolve = "preferInput1" | "preferInput2" | "mix" | "includeBoth";
12
+ /** Whether a left item matches only the first or every right item sharing the match fields. */
13
+ export type CompareMultipleMatches = "first" | "all";
14
+ /** Inputs accepted by the Compare Datasets node: `input` (A) and `input2` (B). */
15
+ export type CompareDatasetsNodeInput = Record<string, unknown>;
16
+ /** Items present only in the second dataset. */
17
+ /** Matched items with differing values, shaped by the configured resolution mode. */
18
+ /** Matched items whose remaining comparable fields are equal. */
19
+ /** Items present only in the first dataset. */
20
+ /** Outputs produced by the Compare Datasets node. */
21
+ export interface CompareDatasetsNodeOutput {
22
+ onlyInA: unknown[];
23
+ same: unknown[];
24
+ different: unknown[];
25
+ onlyInB: unknown[];
26
+ }
27
+ /**
28
+ * Compare Datasets node (`core.data.compareDatasets`): matches two item
29
+ * collections on field pairs and emits only-in-A, same, different, and
30
+ * only-in-B partitions.
31
+ */
32
+ export declare class CompareDatasetsNode extends GraphNode<CompareDatasetsNodeInput, CompareDatasetsNodeOutput> {
33
+ /**
34
+ * Compares the two input datasets.
35
+ *
36
+ * @param request - Execution request; `inputs.input` and `inputs.input2`
37
+ * hold the datasets to compare.
38
+ * @returns Execution values with `onlyInA`, `same`, `different`, and
39
+ * `onlyInB` partitions.
40
+ * @throws {GraphExecutionError} `GRAPH_COMPARE_DATASETS_MATCH_FIELDS_REQUIRED`
41
+ * when no complete field pair is configured.
42
+ */
43
+ execute(request: GraphNodeExecutionRequest<CompareDatasetsNodeInput>): GraphExecutionValues;
44
+ /** First dataset (input A). */
45
+ input: unknown;
46
+ /** Second dataset (input B). */
47
+ input2: unknown;
48
+ /** Field pairs used to decide whether two items refer to the same record. */
49
+ fieldsToMatch?: CompareFieldPair[];
50
+ /** Emission strategy for matched items with differing values (default `includeBoth`). */
51
+ resolve: CompareResolve;
52
+ /** Whether each left item may match one or every right item (default `first`). */
53
+ multipleMatches: CompareMultipleMatches;
54
+ /** Compare loosely (numeric strings, JSON strings, and empty values) instead of strictly (default `false`). */
55
+ fuzzyCompare?: boolean;
56
+ /** Preferred side for `mix` resolution (default `input1`). */
57
+ preferWhenMix: "input1" | "input2";
58
+ /** Fields copied from the other side when resolving with `mix`. */
59
+ exceptWhenMix?: string | string[];
60
+ /** Fields ignored when deciding whether matched items are `same` or `different`. */
61
+ skipFields?: string | string[];
62
+ /** Treat field names literally instead of as dot-separated paths (default `false`). */
63
+ disableDotNotation?: boolean;
64
+ /** Items present only in input A. */
65
+ onlyInA: unknown[];
66
+ /** Matched items judged equal. */
67
+ same: unknown[];
68
+ /** Matched items judged different. */
69
+ different: unknown[];
70
+ /** Items present only in input B. */
71
+ onlyInB: unknown[];
72
+ }
@@ -0,0 +1,72 @@
1
+ import { GraphNode } from "../../base.d.mts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
3
+ /** A pair of field names to match across the two datasets (`field1`/`field2` or their `fieldA`/`fieldB` aliases). */
4
+ export interface CompareFieldPair {
5
+ field1?: string;
6
+ field2?: string;
7
+ fieldA?: string;
8
+ fieldB?: string;
9
+ }
10
+ /** How a matched pair with differing values is emitted: keep input 1, input 2, a mixed record, or both sides. */
11
+ export type CompareResolve = "preferInput1" | "preferInput2" | "mix" | "includeBoth";
12
+ /** Whether a left item matches only the first or every right item sharing the match fields. */
13
+ export type CompareMultipleMatches = "first" | "all";
14
+ /** Inputs accepted by the Compare Datasets node: `input` (A) and `input2` (B). */
15
+ export type CompareDatasetsNodeInput = Record<string, unknown>;
16
+ /** Items present only in the second dataset. */
17
+ /** Matched items with differing values, shaped by the configured resolution mode. */
18
+ /** Matched items whose remaining comparable fields are equal. */
19
+ /** Items present only in the first dataset. */
20
+ /** Outputs produced by the Compare Datasets node. */
21
+ export interface CompareDatasetsNodeOutput {
22
+ onlyInA: unknown[];
23
+ same: unknown[];
24
+ different: unknown[];
25
+ onlyInB: unknown[];
26
+ }
27
+ /**
28
+ * Compare Datasets node (`core.data.compareDatasets`): matches two item
29
+ * collections on field pairs and emits only-in-A, same, different, and
30
+ * only-in-B partitions.
31
+ */
32
+ export declare class CompareDatasetsNode extends GraphNode<CompareDatasetsNodeInput, CompareDatasetsNodeOutput> {
33
+ /**
34
+ * Compares the two input datasets.
35
+ *
36
+ * @param request - Execution request; `inputs.input` and `inputs.input2`
37
+ * hold the datasets to compare.
38
+ * @returns Execution values with `onlyInA`, `same`, `different`, and
39
+ * `onlyInB` partitions.
40
+ * @throws {GraphExecutionError} `GRAPH_COMPARE_DATASETS_MATCH_FIELDS_REQUIRED`
41
+ * when no complete field pair is configured.
42
+ */
43
+ execute(request: GraphNodeExecutionRequest<CompareDatasetsNodeInput>): GraphExecutionValues;
44
+ /** First dataset (input A). */
45
+ input: unknown;
46
+ /** Second dataset (input B). */
47
+ input2: unknown;
48
+ /** Field pairs used to decide whether two items refer to the same record. */
49
+ fieldsToMatch?: CompareFieldPair[];
50
+ /** Emission strategy for matched items with differing values (default `includeBoth`). */
51
+ resolve: CompareResolve;
52
+ /** Whether each left item may match one or every right item (default `first`). */
53
+ multipleMatches: CompareMultipleMatches;
54
+ /** Compare loosely (numeric strings, JSON strings, and empty values) instead of strictly (default `false`). */
55
+ fuzzyCompare?: boolean;
56
+ /** Preferred side for `mix` resolution (default `input1`). */
57
+ preferWhenMix: "input1" | "input2";
58
+ /** Fields copied from the other side when resolving with `mix`. */
59
+ exceptWhenMix?: string | string[];
60
+ /** Fields ignored when deciding whether matched items are `same` or `different`. */
61
+ skipFields?: string | string[];
62
+ /** Treat field names literally instead of as dot-separated paths (default `false`). */
63
+ disableDotNotation?: boolean;
64
+ /** Items present only in input A. */
65
+ onlyInA: unknown[];
66
+ /** Matched items judged equal. */
67
+ same: unknown[];
68
+ /** Matched items judged different. */
69
+ different: unknown[];
70
+ /** Items present only in input B. */
71
+ onlyInB: unknown[];
72
+ }
@@ -0,0 +1,92 @@
1
+ import { GraphNode } from "../../base.d.cts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
3
+ import { type AggregateFieldSpec, type CompareMode, type SortSpec, type SummarizeField } from "../transform-utils.d.cts";
4
+ /** Item-list operation performed by the node. */
5
+ export type ItemListsOperation = "concatenateItems" | "limit" | "removeDuplicates" | "sort" | "splitOutItems" | "summarize";
6
+ /** Concatenation strategy: one output list per field, or one destination field holding every item. */
7
+ export type ItemListsAggregateMode = "aggregateIndividualFields" | "aggregateAllItemData";
8
+ /** Field projection applied when concatenating all item data. */
9
+ export type ItemListsInclude = "allFields" | "specifiedFields" | "allFieldsExcept";
10
+ /** Inputs accepted by the Item Lists node; `value` carries the item collection. */
11
+ export type ItemListsNodeInput = Record<string, unknown>;
12
+ /** Outputs produced by the Item Lists node. */
13
+ export interface ItemListsNodeOutput {
14
+ /** Operation result (an array for most operations, a record for concatenation). */
15
+ result: unknown;
16
+ /** Items removed by `removeDuplicates` only. */
17
+ discarded?: unknown[];
18
+ }
19
+ /**
20
+ * Item Lists node (`core.data.itemLists`): limit, dedupe, sort, split out,
21
+ * summarize, or concatenate a list of items.
22
+ */
23
+ export declare class ItemListsNode extends GraphNode<ItemListsNodeInput, ItemListsNodeOutput> {
24
+ /**
25
+ * Executes the configured item-list operation.
26
+ *
27
+ * @param request - Execution request; `inputs.value` holds the item collection.
28
+ * @returns Execution values with the transformed `result` and, for
29
+ * `removeDuplicates`, the `discarded` duplicates.
30
+ * @throws {GraphExecutionError} `GRAPH_ITEM_LISTS_UNSUPPORTED_OPERATION`,
31
+ * `GRAPH_ITEM_LISTS_FIELD_REQUIRED` (split out without a field),
32
+ * `GRAPH_SUMMARIZE_FIELDS_REQUIRED`, or `GRAPH_AGGREGATE_FIELDS_REQUIRED`
33
+ * (concatenate without field specs).
34
+ */
35
+ execute(request: GraphNodeExecutionRequest<ItemListsNodeInput>): GraphExecutionValues;
36
+ /** Items to process (array, single item, or nil). */
37
+ value: unknown;
38
+ /** Operation to perform (default `concatenateItems`). */
39
+ operation: ItemListsOperation;
40
+ /** Concatenation strategy used by `concatenateItems` (default `aggregateIndividualFields`). */
41
+ aggregate: ItemListsAggregateMode;
42
+ /** Source fields to concatenate, with optional rename/output-name options. */
43
+ fieldsToAggregate?: AggregateFieldSpec[];
44
+ /** Destination field when concatenating all item data (default `data`). */
45
+ destinationFieldName: string;
46
+ /** Field projection when concatenating all item data (default `allFields`). */
47
+ include: ItemListsInclude;
48
+ /** Comma-separated or array field list kept when `include` is `specifiedFields`. */
49
+ fieldsToInclude?: string | string[];
50
+ /** Comma-separated or array field list dropped when `include` is `allFieldsExcept`. */
51
+ fieldsToExclude?: string | string[];
52
+ /** Flatten array values into a single concatenated list (default `false`). */
53
+ mergeLists?: boolean;
54
+ /** Keep `null`/`undefined` concatenated values instead of skipping them (default `false`). */
55
+ keepMissing?: boolean;
56
+ /** Maximum number of items kept by `limit` (default `1`). */
57
+ maxItems: number;
58
+ /** Which end `limit` keeps (default `firstItems`). */
59
+ keep: "firstItems" | "lastItems";
60
+ /** Field selection used by `removeDuplicates` (default `allFields`). */
61
+ compareMode: CompareMode;
62
+ /** Comma-separated or array fields compared when `compareMode` is `selectedFields`. */
63
+ fieldsToCompare?: string | string[];
64
+ /** Project kept items onto the compared fields only (default `false`). */
65
+ removeOtherFields?: boolean;
66
+ /** Sort keys and directions used by `sort`. */
67
+ sortFields?: SortSpec[];
68
+ /** Value coercion used when comparing sort keys (default `auto`). */
69
+ sortValueType: "auto" | "string" | "number" | "date";
70
+ /** Array-valued field expanded by `splitOutItems`. */
71
+ field: string;
72
+ /** Whether `splitOutItems` keeps the other item fields (default `noOtherFields`). */
73
+ splitOutInclude: "noOtherFields" | "allOtherFields";
74
+ /** Field receiving the split-out value when other fields are kept. */
75
+ destinationField?: string;
76
+ /** Aggregations applied by `summarize`. */
77
+ fieldsToSummarize?: SummarizeField[];
78
+ /** Grouping fields used by `summarize`. */
79
+ fieldsToSplitBy?: string | string[];
80
+ /** Whether `summarize` returns one item per group or a single nested record (default `separateItems`). */
81
+ outputFormat: "separateItems" | "singleItem";
82
+ /** Skip items whose split fields are empty (default `false`). */
83
+ skipEmptySplitFields?: boolean;
84
+ /** Summarize a missing field as empty instead of failing (default `false`). */
85
+ continueIfFieldNotFound?: boolean;
86
+ /** Treat field names literally instead of as dot-separated paths (default `false`). */
87
+ disableDotNotation?: boolean;
88
+ /** Operation result. */
89
+ result: unknown;
90
+ /** Duplicates removed by `removeDuplicates`. */
91
+ discarded?: unknown[];
92
+ }
@@ -0,0 +1,92 @@
1
+ import { GraphNode } from "../../base.d.mts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
3
+ import { type AggregateFieldSpec, type CompareMode, type SortSpec, type SummarizeField } from "../transform-utils.d.mts";
4
+ /** Item-list operation performed by the node. */
5
+ export type ItemListsOperation = "concatenateItems" | "limit" | "removeDuplicates" | "sort" | "splitOutItems" | "summarize";
6
+ /** Concatenation strategy: one output list per field, or one destination field holding every item. */
7
+ export type ItemListsAggregateMode = "aggregateIndividualFields" | "aggregateAllItemData";
8
+ /** Field projection applied when concatenating all item data. */
9
+ export type ItemListsInclude = "allFields" | "specifiedFields" | "allFieldsExcept";
10
+ /** Inputs accepted by the Item Lists node; `value` carries the item collection. */
11
+ export type ItemListsNodeInput = Record<string, unknown>;
12
+ /** Outputs produced by the Item Lists node. */
13
+ export interface ItemListsNodeOutput {
14
+ /** Operation result (an array for most operations, a record for concatenation). */
15
+ result: unknown;
16
+ /** Items removed by `removeDuplicates` only. */
17
+ discarded?: unknown[];
18
+ }
19
+ /**
20
+ * Item Lists node (`core.data.itemLists`): limit, dedupe, sort, split out,
21
+ * summarize, or concatenate a list of items.
22
+ */
23
+ export declare class ItemListsNode extends GraphNode<ItemListsNodeInput, ItemListsNodeOutput> {
24
+ /**
25
+ * Executes the configured item-list operation.
26
+ *
27
+ * @param request - Execution request; `inputs.value` holds the item collection.
28
+ * @returns Execution values with the transformed `result` and, for
29
+ * `removeDuplicates`, the `discarded` duplicates.
30
+ * @throws {GraphExecutionError} `GRAPH_ITEM_LISTS_UNSUPPORTED_OPERATION`,
31
+ * `GRAPH_ITEM_LISTS_FIELD_REQUIRED` (split out without a field),
32
+ * `GRAPH_SUMMARIZE_FIELDS_REQUIRED`, or `GRAPH_AGGREGATE_FIELDS_REQUIRED`
33
+ * (concatenate without field specs).
34
+ */
35
+ execute(request: GraphNodeExecutionRequest<ItemListsNodeInput>): GraphExecutionValues;
36
+ /** Items to process (array, single item, or nil). */
37
+ value: unknown;
38
+ /** Operation to perform (default `concatenateItems`). */
39
+ operation: ItemListsOperation;
40
+ /** Concatenation strategy used by `concatenateItems` (default `aggregateIndividualFields`). */
41
+ aggregate: ItemListsAggregateMode;
42
+ /** Source fields to concatenate, with optional rename/output-name options. */
43
+ fieldsToAggregate?: AggregateFieldSpec[];
44
+ /** Destination field when concatenating all item data (default `data`). */
45
+ destinationFieldName: string;
46
+ /** Field projection when concatenating all item data (default `allFields`). */
47
+ include: ItemListsInclude;
48
+ /** Comma-separated or array field list kept when `include` is `specifiedFields`. */
49
+ fieldsToInclude?: string | string[];
50
+ /** Comma-separated or array field list dropped when `include` is `allFieldsExcept`. */
51
+ fieldsToExclude?: string | string[];
52
+ /** Flatten array values into a single concatenated list (default `false`). */
53
+ mergeLists?: boolean;
54
+ /** Keep `null`/`undefined` concatenated values instead of skipping them (default `false`). */
55
+ keepMissing?: boolean;
56
+ /** Maximum number of items kept by `limit` (default `1`). */
57
+ maxItems: number;
58
+ /** Which end `limit` keeps (default `firstItems`). */
59
+ keep: "firstItems" | "lastItems";
60
+ /** Field selection used by `removeDuplicates` (default `allFields`). */
61
+ compareMode: CompareMode;
62
+ /** Comma-separated or array fields compared when `compareMode` is `selectedFields`. */
63
+ fieldsToCompare?: string | string[];
64
+ /** Project kept items onto the compared fields only (default `false`). */
65
+ removeOtherFields?: boolean;
66
+ /** Sort keys and directions used by `sort`. */
67
+ sortFields?: SortSpec[];
68
+ /** Value coercion used when comparing sort keys (default `auto`). */
69
+ sortValueType: "auto" | "string" | "number" | "date";
70
+ /** Array-valued field expanded by `splitOutItems`. */
71
+ field: string;
72
+ /** Whether `splitOutItems` keeps the other item fields (default `noOtherFields`). */
73
+ splitOutInclude: "noOtherFields" | "allOtherFields";
74
+ /** Field receiving the split-out value when other fields are kept. */
75
+ destinationField?: string;
76
+ /** Aggregations applied by `summarize`. */
77
+ fieldsToSummarize?: SummarizeField[];
78
+ /** Grouping fields used by `summarize`. */
79
+ fieldsToSplitBy?: string | string[];
80
+ /** Whether `summarize` returns one item per group or a single nested record (default `separateItems`). */
81
+ outputFormat: "separateItems" | "singleItem";
82
+ /** Skip items whose split fields are empty (default `false`). */
83
+ skipEmptySplitFields?: boolean;
84
+ /** Summarize a missing field as empty instead of failing (default `false`). */
85
+ continueIfFieldNotFound?: boolean;
86
+ /** Treat field names literally instead of as dot-separated paths (default `false`). */
87
+ disableDotNotation?: boolean;
88
+ /** Operation result. */
89
+ result: unknown;
90
+ /** Duplicates removed by `removeDuplicates`. */
91
+ discarded?: unknown[];
92
+ }
@@ -0,0 +1,47 @@
1
+ import { GraphNode } from "../../base.d.cts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
3
+ import { type CompareMode } from "../transform-utils.d.cts";
4
+ /** Field selection used for duplicate detection. */
5
+ export type RemoveDuplicatesCompare = CompareMode;
6
+ /** Inputs accepted by the Remove Duplicates node; `value` carries the item collection. */
7
+ export type RemoveDuplicatesNodeInput = Record<string, unknown>;
8
+ /** Outputs produced by the Remove Duplicates node. */
9
+ export interface RemoveDuplicatesNodeOutput {
10
+ /** Unique items, in first-seen order. */
11
+ result: unknown[];
12
+ /** Items removed because their comparison signature was already seen. */
13
+ discarded?: unknown[];
14
+ }
15
+ /**
16
+ * Remove Duplicates node (`core.data.removeDuplicates`): keeps the first item
17
+ * of each comparison signature and emits the rest on `discarded`.
18
+ */
19
+ export declare class RemoveDuplicatesNode extends GraphNode<RemoveDuplicatesNodeInput, RemoveDuplicatesNodeOutput> {
20
+ /**
21
+ * Removes duplicate input items.
22
+ *
23
+ * @param request - Execution request; `inputs.value` holds the item collection.
24
+ * @returns Execution values with the unique `result` and removed `discarded` items.
25
+ * @throws {GraphExecutionError} `GRAPH_REMOVE_DUPLICATES_FIELDS_REQUIRED`
26
+ * when `selectedFields`/`allFieldsExcept` has no configured field list, or
27
+ * `GRAPH_REMOVE_DUPLICATES_FIELD_MISSING` when selected fields are absent
28
+ * from every item.
29
+ */
30
+ execute(request: GraphNodeExecutionRequest<RemoveDuplicatesNodeInput>): GraphExecutionValues;
31
+ /** Items to deduplicate (array, single item, or nil). */
32
+ value: unknown;
33
+ /** Field selection used for comparison (default `allFields`). */
34
+ compareMode: RemoveDuplicatesCompare;
35
+ /** Comma-separated or array fields compared when `compareMode` is `selectedFields`. */
36
+ fieldsToCompare?: string | string[];
37
+ /** Comma-separated or array fields ignored when `compareMode` is `allFieldsExcept`. */
38
+ fieldsToExclude?: string | string[];
39
+ /** Project kept items onto the compared fields only (default `false`). */
40
+ removeOtherFields?: boolean;
41
+ /** Treat field names literally instead of as dot-separated paths (default `false`). */
42
+ disableDotNotation?: boolean;
43
+ /** Unique items. */
44
+ result: unknown[];
45
+ /** Removed duplicates. */
46
+ discarded?: unknown[];
47
+ }
@@ -0,0 +1,47 @@
1
+ import { GraphNode } from "../../base.d.mts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
3
+ import { type CompareMode } from "../transform-utils.d.mts";
4
+ /** Field selection used for duplicate detection. */
5
+ export type RemoveDuplicatesCompare = CompareMode;
6
+ /** Inputs accepted by the Remove Duplicates node; `value` carries the item collection. */
7
+ export type RemoveDuplicatesNodeInput = Record<string, unknown>;
8
+ /** Outputs produced by the Remove Duplicates node. */
9
+ export interface RemoveDuplicatesNodeOutput {
10
+ /** Unique items, in first-seen order. */
11
+ result: unknown[];
12
+ /** Items removed because their comparison signature was already seen. */
13
+ discarded?: unknown[];
14
+ }
15
+ /**
16
+ * Remove Duplicates node (`core.data.removeDuplicates`): keeps the first item
17
+ * of each comparison signature and emits the rest on `discarded`.
18
+ */
19
+ export declare class RemoveDuplicatesNode extends GraphNode<RemoveDuplicatesNodeInput, RemoveDuplicatesNodeOutput> {
20
+ /**
21
+ * Removes duplicate input items.
22
+ *
23
+ * @param request - Execution request; `inputs.value` holds the item collection.
24
+ * @returns Execution values with the unique `result` and removed `discarded` items.
25
+ * @throws {GraphExecutionError} `GRAPH_REMOVE_DUPLICATES_FIELDS_REQUIRED`
26
+ * when `selectedFields`/`allFieldsExcept` has no configured field list, or
27
+ * `GRAPH_REMOVE_DUPLICATES_FIELD_MISSING` when selected fields are absent
28
+ * from every item.
29
+ */
30
+ execute(request: GraphNodeExecutionRequest<RemoveDuplicatesNodeInput>): GraphExecutionValues;
31
+ /** Items to deduplicate (array, single item, or nil). */
32
+ value: unknown;
33
+ /** Field selection used for comparison (default `allFields`). */
34
+ compareMode: RemoveDuplicatesCompare;
35
+ /** Comma-separated or array fields compared when `compareMode` is `selectedFields`. */
36
+ fieldsToCompare?: string | string[];
37
+ /** Comma-separated or array fields ignored when `compareMode` is `allFieldsExcept`. */
38
+ fieldsToExclude?: string | string[];
39
+ /** Project kept items onto the compared fields only (default `false`). */
40
+ removeOtherFields?: boolean;
41
+ /** Treat field names literally instead of as dot-separated paths (default `false`). */
42
+ disableDotNotation?: boolean;
43
+ /** Unique items. */
44
+ result: unknown[];
45
+ /** Removed duplicates. */
46
+ discarded?: unknown[];
47
+ }
@@ -0,0 +1,44 @@
1
+ import { GraphNode } from "../../base.d.cts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
3
+ import { type SummarizeField } from "../transform-utils.d.cts";
4
+ /** Whether summarized groups become separate items or one nested record. */
5
+ export type SummarizeOutputFormat = "separateItems" | "singleItem";
6
+ /** Inputs accepted by the Summarize node; `value` carries the item collection. */
7
+ export type SummarizeNodeInput = Record<string, unknown>;
8
+ /** Outputs produced by the Summarize node. */
9
+ export interface SummarizeNodeOutput {
10
+ /** Summary records, one per group (or a single record for `singleItem`). */
11
+ result: Record<string, unknown>[];
12
+ }
13
+ /**
14
+ * Summarize node (`core.data.summarize`): groups items by split fields and
15
+ * applies count/sum/average/min/max/unique/append/concatenate aggregations.
16
+ */
17
+ export declare class SummarizeNode extends GraphNode<SummarizeNodeInput, SummarizeNodeOutput> {
18
+ /**
19
+ * Summarizes the input items.
20
+ *
21
+ * @param request - Execution request; `inputs.value` holds the item collection.
22
+ * @returns Execution values with the summarized `result` records.
23
+ * @throws {GraphExecutionError} `GRAPH_SUMMARIZE_FIELDS_REQUIRED` when no
24
+ * aggregation is configured, or `GRAPH_SUMMARIZE_FIELD_NOT_FOUND` when a
25
+ * referenced field is absent and `continueIfFieldNotFound` is false.
26
+ */
27
+ execute(request: GraphNodeExecutionRequest<SummarizeNodeInput>): GraphExecutionValues;
28
+ /** Items to summarize (array, single item, or nil). */
29
+ value: unknown;
30
+ /** Aggregations to compute for every group. */
31
+ fieldsToSummarize?: SummarizeField[];
32
+ /** Grouping fields; an empty list summarizes all items as one group. */
33
+ fieldsToSplitBy?: string | string[];
34
+ /** Emit one item per group or one nested record (default `separateItems`). */
35
+ outputFormat: SummarizeOutputFormat;
36
+ /** Skip items whose split fields are empty (default `false`). */
37
+ skipEmptySplitFields?: boolean;
38
+ /** Treat field names literally instead of as dot-separated paths (default `false`). */
39
+ disableDotNotation?: boolean;
40
+ /** Summarize a missing field as empty instead of failing (default `false`). */
41
+ continueIfFieldNotFound?: boolean;
42
+ /** Summary records. */
43
+ result: Record<string, unknown>[];
44
+ }
@@ -0,0 +1,44 @@
1
+ import { GraphNode } from "../../base.d.mts";
2
+ import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
3
+ import { type SummarizeField } from "../transform-utils.d.mts";
4
+ /** Whether summarized groups become separate items or one nested record. */
5
+ export type SummarizeOutputFormat = "separateItems" | "singleItem";
6
+ /** Inputs accepted by the Summarize node; `value` carries the item collection. */
7
+ export type SummarizeNodeInput = Record<string, unknown>;
8
+ /** Outputs produced by the Summarize node. */
9
+ export interface SummarizeNodeOutput {
10
+ /** Summary records, one per group (or a single record for `singleItem`). */
11
+ result: Record<string, unknown>[];
12
+ }
13
+ /**
14
+ * Summarize node (`core.data.summarize`): groups items by split fields and
15
+ * applies count/sum/average/min/max/unique/append/concatenate aggregations.
16
+ */
17
+ export declare class SummarizeNode extends GraphNode<SummarizeNodeInput, SummarizeNodeOutput> {
18
+ /**
19
+ * Summarizes the input items.
20
+ *
21
+ * @param request - Execution request; `inputs.value` holds the item collection.
22
+ * @returns Execution values with the summarized `result` records.
23
+ * @throws {GraphExecutionError} `GRAPH_SUMMARIZE_FIELDS_REQUIRED` when no
24
+ * aggregation is configured, or `GRAPH_SUMMARIZE_FIELD_NOT_FOUND` when a
25
+ * referenced field is absent and `continueIfFieldNotFound` is false.
26
+ */
27
+ execute(request: GraphNodeExecutionRequest<SummarizeNodeInput>): GraphExecutionValues;
28
+ /** Items to summarize (array, single item, or nil). */
29
+ value: unknown;
30
+ /** Aggregations to compute for every group. */
31
+ fieldsToSummarize?: SummarizeField[];
32
+ /** Grouping fields; an empty list summarizes all items as one group. */
33
+ fieldsToSplitBy?: string | string[];
34
+ /** Emit one item per group or one nested record (default `separateItems`). */
35
+ outputFormat: SummarizeOutputFormat;
36
+ /** Skip items whose split fields are empty (default `false`). */
37
+ skipEmptySplitFields?: boolean;
38
+ /** Treat field names literally instead of as dot-separated paths (default `false`). */
39
+ disableDotNotation?: boolean;
40
+ /** Summarize a missing field as empty instead of failing (default `false`). */
41
+ continueIfFieldNotFound?: boolean;
42
+ /** Summary records. */
43
+ result: Record<string, unknown>[];
44
+ }
@@ -44,6 +44,19 @@ export declare function splitGraphDataPath(path: string): string[];
44
44
  * segment is `__proto__`, `constructor`, or `prototype`.
45
45
  */
46
46
  export declare function assertGraphDataPath(path: string): string[];
47
+ /**
48
+ * Rejects a reserved prototype-pollution key.
49
+ *
50
+ * Literal-key mode (no dot notation) bypasses path splitting, so the same
51
+ * reserved-key check is applied to the whole key: a configured `__proto__`
52
+ * assignment must fail even when it is not split into segments.
53
+ *
54
+ * @param path - The configured path or literal key, for the error message.
55
+ * @param segment - The single key being accessed.
56
+ * @throws {GraphExecutionError} with code `GRAPH_DATA_UNSAFE_PATH` when the key
57
+ * is `__proto__`, `constructor`, or `prototype`.
58
+ */
59
+ export declare function assertGraphDataSegment(path: string, segment: string): void;
47
60
  /**
48
61
  * Reads a value from a nested record.
49
62
  *
@@ -44,6 +44,19 @@ export declare function splitGraphDataPath(path: string): string[];
44
44
  * segment is `__proto__`, `constructor`, or `prototype`.
45
45
  */
46
46
  export declare function assertGraphDataPath(path: string): string[];
47
+ /**
48
+ * Rejects a reserved prototype-pollution key.
49
+ *
50
+ * Literal-key mode (no dot notation) bypasses path splitting, so the same
51
+ * reserved-key check is applied to the whole key: a configured `__proto__`
52
+ * assignment must fail even when it is not split into segments.
53
+ *
54
+ * @param path - The configured path or literal key, for the error message.
55
+ * @param segment - The single key being accessed.
56
+ * @throws {GraphExecutionError} with code `GRAPH_DATA_UNSAFE_PATH` when the key
57
+ * is `__proto__`, `constructor`, or `prototype`.
58
+ */
59
+ export declare function assertGraphDataSegment(path: string, segment: string): void;
47
60
  /**
48
61
  * Reads a value from a nested record.
49
62
  *