@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.
- package/README.md +92 -12
- package/assets/i18n/en.json +1519 -130
- package/dist/as-graph.cjs +1 -1
- package/dist/as-graph.cjs.map +1 -1
- package/dist/as-graph.js +1 -1
- package/dist/as-graph.js.map +1 -1
- package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs +13 -0
- package/lib/cjs/dagster/DagsterGraphExecutionBackend.cjs.map +1 -1
- package/lib/cjs/dagster/capabilities.cjs +5 -0
- package/lib/cjs/dagster/capabilities.cjs.map +1 -1
- package/lib/cjs/engine/execution/GraphCodeMode.cjs +42 -0
- package/lib/cjs/engine/execution/GraphCodeMode.cjs.map +1 -1
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs +35 -4
- package/lib/cjs/engine/execution/GraphExecutionEngine.cjs.map +1 -1
- package/lib/cjs/engine/validation/GraphNodeInstanceValidator.cjs +29 -1
- package/lib/cjs/engine/validation/GraphNodeInstanceValidator.cjs.map +1 -1
- package/lib/cjs/engine/validation/GraphWorkflowDocumentValidator.cjs +6 -2
- package/lib/cjs/engine/validation/GraphWorkflowDocumentValidator.cjs.map +1 -1
- package/lib/cjs/mastra/MastraWorkflowCompiler.cjs +41 -9
- package/lib/cjs/mastra/MastraWorkflowCompiler.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphEngineController.cjs +18 -0
- package/lib/cjs/nest/graph/GraphEngineController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs +14 -0
- package/lib/cjs/nest/graph/GraphNodeCatalogueController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphRunController.cjs +17 -0
- package/lib/cjs/nest/graph/GraphRunController.cjs.map +1 -1
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs +34 -5
- package/lib/cjs/nest/graph/GraphWorkflowController.cjs.map +1 -1
- package/lib/cjs/node/comms/discord/node.cjs +384 -0
- package/lib/cjs/node/comms/discord/node.cjs.map +1 -0
- package/lib/cjs/node/comms/outlook/node.cjs +395 -0
- package/lib/cjs/node/comms/outlook/node.cjs.map +1 -0
- package/lib/cjs/node/comms/whatsapp/node.cjs +341 -0
- package/lib/cjs/node/comms/whatsapp/node.cjs.map +1 -0
- package/lib/cjs/node/data/aggregate/node.cjs +196 -0
- package/lib/cjs/node/data/aggregate/node.cjs.map +1 -0
- package/lib/cjs/node/data/compare-datasets/node.cjs +331 -0
- package/lib/cjs/node/data/compare-datasets/node.cjs.map +1 -0
- package/lib/cjs/node/data/item-lists/node.cjs +416 -0
- package/lib/cjs/node/data/item-lists/node.cjs.map +1 -0
- package/lib/cjs/node/data/remove-duplicates/node.cjs +141 -0
- package/lib/cjs/node/data/remove-duplicates/node.cjs.map +1 -0
- package/lib/cjs/node/data/summarize/node.cjs +155 -0
- package/lib/cjs/node/data/summarize/node.cjs.map +1 -0
- package/lib/cjs/node/data/support.cjs +5 -0
- package/lib/cjs/node/data/support.cjs.map +1 -1
- package/lib/cjs/node/data/transform-utils.cjs +719 -0
- package/lib/cjs/node/data/transform-utils.cjs.map +1 -0
- package/lib/cjs/node/index.cjs +216 -110
- package/lib/cjs/node/index.cjs.map +1 -1
- package/lib/cjs/node/io/confluence/node.cjs +253 -0
- package/lib/cjs/node/io/confluence/node.cjs.map +1 -0
- package/lib/cjs/node/io/convert-to-file/node.cjs +349 -0
- package/lib/cjs/node/io/convert-to-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/file-support.cjs +311 -0
- package/lib/cjs/node/io/file-support.cjs.map +1 -0
- package/lib/cjs/node/io/google-calendar/node.cjs +359 -0
- package/lib/cjs/node/io/google-calendar/node.cjs.map +1 -0
- package/lib/cjs/node/io/google-docs/node.cjs +272 -0
- package/lib/cjs/node/io/google-docs/node.cjs.map +1 -0
- package/lib/cjs/node/io/html/node.cjs +275 -0
- package/lib/cjs/node/io/html/node.cjs.map +1 -0
- package/lib/cjs/node/io/html-extract/node.cjs +162 -0
- package/lib/cjs/node/io/html-extract/node.cjs.map +1 -0
- package/lib/cjs/node/io/html-support.cjs +246 -0
- package/lib/cjs/node/io/html-support.cjs.map +1 -0
- package/lib/cjs/node/io/jira/node.cjs +351 -0
- package/lib/cjs/node/io/jira/node.cjs.map +1 -0
- package/lib/cjs/node/io/markdown/node.cjs +229 -0
- package/lib/cjs/node/io/markdown/node.cjs.map +1 -0
- package/lib/cjs/node/io/microsoft-excel/node.cjs +261 -0
- package/lib/cjs/node/io/microsoft-excel/node.cjs.map +1 -0
- package/lib/cjs/node/io/microsoft-sharepoint/node.cjs +274 -0
- package/lib/cjs/node/io/microsoft-sharepoint/node.cjs.map +1 -0
- package/lib/cjs/node/io/read-binary-file/node.cjs +114 -0
- package/lib/cjs/node/io/read-binary-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/read-binary-files/node.cjs +113 -0
- package/lib/cjs/node/io/read-binary-files/node.cjs.map +1 -0
- package/lib/cjs/node/io/write-binary-file/node.cjs +164 -0
- package/lib/cjs/node/io/write-binary-file/node.cjs.map +1 -0
- package/lib/cjs/node/io/xml/node.cjs +322 -0
- package/lib/cjs/node/io/xml/node.cjs.map +1 -0
- package/lib/cjs/node/manifests.cjs +137 -79
- package/lib/cjs/node/manifests.cjs.map +1 -1
- package/lib/cjs/node/storage/rabbitmq/node.cjs +252 -0
- package/lib/cjs/node/storage/rabbitmq/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/error/node.cjs +108 -0
- package/lib/cjs/node/triggers/error/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/postgres/node.cjs +244 -0
- package/lib/cjs/node/triggers/postgres/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/rabbitmq/node.cjs +284 -0
- package/lib/cjs/node/triggers/rabbitmq/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/redis/node.cjs +233 -0
- package/lib/cjs/node/triggers/redis/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/sse/node.cjs +196 -0
- package/lib/cjs/node/triggers/sse/node.cjs.map +1 -0
- package/lib/cjs/node/triggers/support.cjs +107 -0
- package/lib/cjs/node/triggers/support.cjs.map +1 -0
- package/lib/cjs/node/triggers/workflow/node.cjs +193 -0
- package/lib/cjs/node/triggers/workflow/node.cjs.map +1 -0
- package/lib/cjs/shared/graph/catalog/GraphValueSchemaDerivation.cjs +20 -3
- package/lib/cjs/shared/graph/catalog/GraphValueSchemaDerivation.cjs.map +1 -1
- package/lib/cjs/workflows/boundary-value.workflow.cjs +38 -0
- package/lib/cjs/workflows/boundary-value.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/builders.cjs +47 -0
- package/lib/cjs/workflows/builders.cjs.map +1 -0
- package/lib/cjs/workflows/chat-agent.workflow.cjs +40 -0
- package/lib/cjs/workflows/chat-agent.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/error-boundary.workflow.cjs +54 -0
- package/lib/cjs/workflows/error-boundary.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/event-map.workflow.cjs +37 -0
- package/lib/cjs/workflows/event-map.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/foreach-break.workflow.cjs +58 -0
- package/lib/cjs/workflows/foreach-break.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/human-approval.workflow.cjs +44 -0
- package/lib/cjs/workflows/human-approval.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/if-switch.workflow.cjs +66 -0
- package/lib/cjs/workflows/if-switch.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/index.cjs +135 -0
- package/lib/cjs/workflows/index.cjs.map +1 -0
- package/lib/cjs/workflows/loops-while-until.workflow.cjs +76 -0
- package/lib/cjs/workflows/loops-while-until.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/manual-log.workflow.cjs +52 -0
- package/lib/cjs/workflows/manual-log.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/schedule-code.workflow.cjs +42 -0
- package/lib/cjs/workflows/schedule-code.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/types.cjs +4 -0
- package/lib/cjs/workflows/types.cjs.map +1 -0
- package/lib/cjs/workflows/value-templates.workflow.cjs +43 -0
- package/lib/cjs/workflows/value-templates.workflow.cjs.map +1 -0
- package/lib/cjs/workflows/webhook-form.workflow.cjs +48 -0
- package/lib/cjs/workflows/webhook-form.workflow.cjs.map +1 -0
- package/lib/esm/dagster/DagsterGraphExecutionBackend.js +13 -0
- package/lib/esm/dagster/DagsterGraphExecutionBackend.js.map +1 -1
- package/lib/esm/dagster/capabilities.js +5 -0
- package/lib/esm/dagster/capabilities.js.map +1 -1
- package/lib/esm/engine/execution/GraphCodeMode.js +40 -0
- package/lib/esm/engine/execution/GraphCodeMode.js.map +1 -1
- package/lib/esm/engine/execution/GraphExecutionBackend.js.map +1 -1
- package/lib/esm/engine/execution/GraphExecutionEngine.js +36 -5
- package/lib/esm/engine/execution/GraphExecutionEngine.js.map +1 -1
- package/lib/esm/engine/validation/GraphNodeInstanceValidator.js +29 -1
- package/lib/esm/engine/validation/GraphNodeInstanceValidator.js.map +1 -1
- package/lib/esm/engine/validation/GraphWorkflowDocumentValidator.js +6 -2
- package/lib/esm/engine/validation/GraphWorkflowDocumentValidator.js.map +1 -1
- package/lib/esm/mastra/MastraMemory.js.map +1 -1
- package/lib/esm/mastra/MastraWorkflowCompiler.js +41 -9
- package/lib/esm/mastra/MastraWorkflowCompiler.js.map +1 -1
- package/lib/esm/nest/graph/GraphEngineController.js +19 -1
- package/lib/esm/nest/graph/GraphEngineController.js.map +1 -1
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js +15 -1
- package/lib/esm/nest/graph/GraphNodeCatalogueController.js.map +1 -1
- package/lib/esm/nest/graph/GraphRunController.js +18 -1
- package/lib/esm/nest/graph/GraphRunController.js.map +1 -1
- package/lib/esm/nest/graph/GraphWorkflowController.js +35 -6
- package/lib/esm/nest/graph/GraphWorkflowController.js.map +1 -1
- package/lib/esm/node/comms/discord/node.js +375 -0
- package/lib/esm/node/comms/discord/node.js.map +1 -0
- package/lib/esm/node/comms/outlook/node.js +386 -0
- package/lib/esm/node/comms/outlook/node.js.map +1 -0
- package/lib/esm/node/comms/whatsapp/node.js +332 -0
- package/lib/esm/node/comms/whatsapp/node.js.map +1 -0
- package/lib/esm/node/data/aggregate/node.js +187 -0
- package/lib/esm/node/data/aggregate/node.js.map +1 -0
- package/lib/esm/node/data/compare-datasets/node.js +322 -0
- package/lib/esm/node/data/compare-datasets/node.js.map +1 -0
- package/lib/esm/node/data/item-lists/node.js +407 -0
- package/lib/esm/node/data/item-lists/node.js.map +1 -0
- package/lib/esm/node/data/remove-duplicates/node.js +132 -0
- package/lib/esm/node/data/remove-duplicates/node.js.map +1 -0
- package/lib/esm/node/data/summarize/node.js +146 -0
- package/lib/esm/node/data/summarize/node.js.map +1 -0
- package/lib/esm/node/data/support.js +5 -1
- package/lib/esm/node/data/support.js.map +1 -1
- package/lib/esm/node/data/transform-utils.js +702 -0
- package/lib/esm/node/data/transform-utils.js.map +1 -0
- package/lib/esm/node/index.js +110 -4
- package/lib/esm/node/index.js.map +1 -1
- package/lib/esm/node/io/confluence/node.js +244 -0
- package/lib/esm/node/io/confluence/node.js.map +1 -0
- package/lib/esm/node/io/convert-to-file/node.js +340 -0
- package/lib/esm/node/io/convert-to-file/node.js.map +1 -0
- package/lib/esm/node/io/file-support.js +299 -0
- package/lib/esm/node/io/file-support.js.map +1 -0
- package/lib/esm/node/io/google-calendar/node.js +350 -0
- package/lib/esm/node/io/google-calendar/node.js.map +1 -0
- package/lib/esm/node/io/google-docs/node.js +263 -0
- package/lib/esm/node/io/google-docs/node.js.map +1 -0
- package/lib/esm/node/io/html/node.js +266 -0
- package/lib/esm/node/io/html/node.js.map +1 -0
- package/lib/esm/node/io/html-extract/node.js +153 -0
- package/lib/esm/node/io/html-extract/node.js.map +1 -0
- package/lib/esm/node/io/html-support.js +206 -0
- package/lib/esm/node/io/html-support.js.map +1 -0
- package/lib/esm/node/io/jira/node.js +342 -0
- package/lib/esm/node/io/jira/node.js.map +1 -0
- package/lib/esm/node/io/markdown/node.js +217 -0
- package/lib/esm/node/io/markdown/node.js.map +1 -0
- package/lib/esm/node/io/microsoft-excel/node.js +252 -0
- package/lib/esm/node/io/microsoft-excel/node.js.map +1 -0
- package/lib/esm/node/io/microsoft-sharepoint/node.js +265 -0
- package/lib/esm/node/io/microsoft-sharepoint/node.js.map +1 -0
- package/lib/esm/node/io/read-binary-file/node.js +105 -0
- package/lib/esm/node/io/read-binary-file/node.js.map +1 -0
- package/lib/esm/node/io/read-binary-files/node.js +104 -0
- package/lib/esm/node/io/read-binary-files/node.js.map +1 -0
- package/lib/esm/node/io/write-binary-file/node.js +155 -0
- package/lib/esm/node/io/write-binary-file/node.js.map +1 -0
- package/lib/esm/node/io/xml/node.js +313 -0
- package/lib/esm/node/io/xml/node.js.map +1 -0
- package/lib/esm/node/manifests.js +58 -0
- package/lib/esm/node/manifests.js.map +1 -1
- package/lib/esm/node/storage/rabbitmq/node.js +243 -0
- package/lib/esm/node/storage/rabbitmq/node.js.map +1 -0
- package/lib/esm/node/triggers/error/node.js +99 -0
- package/lib/esm/node/triggers/error/node.js.map +1 -0
- package/lib/esm/node/triggers/postgres/node.js +235 -0
- package/lib/esm/node/triggers/postgres/node.js.map +1 -0
- package/lib/esm/node/triggers/rabbitmq/node.js +275 -0
- package/lib/esm/node/triggers/rabbitmq/node.js.map +1 -0
- package/lib/esm/node/triggers/redis/node.js +224 -0
- package/lib/esm/node/triggers/redis/node.js.map +1 -0
- package/lib/esm/node/triggers/sse/node.js +187 -0
- package/lib/esm/node/triggers/sse/node.js.map +1 -0
- package/lib/esm/node/triggers/support.js +99 -0
- package/lib/esm/node/triggers/support.js.map +1 -0
- package/lib/esm/node/triggers/workflow/node.js +184 -0
- package/lib/esm/node/triggers/workflow/node.js.map +1 -0
- package/lib/esm/shared/graph/catalog/GraphValueSchemaDerivation.js +20 -3
- package/lib/esm/shared/graph/catalog/GraphValueSchemaDerivation.js.map +1 -1
- package/lib/esm/workflows/boundary-value.workflow.js +34 -0
- package/lib/esm/workflows/boundary-value.workflow.js.map +1 -0
- package/lib/esm/workflows/builders.js +40 -0
- package/lib/esm/workflows/builders.js.map +1 -0
- package/lib/esm/workflows/chat-agent.workflow.js +36 -0
- package/lib/esm/workflows/chat-agent.workflow.js.map +1 -0
- package/lib/esm/workflows/error-boundary.workflow.js +50 -0
- package/lib/esm/workflows/error-boundary.workflow.js.map +1 -0
- package/lib/esm/workflows/event-map.workflow.js +33 -0
- package/lib/esm/workflows/event-map.workflow.js.map +1 -0
- package/lib/esm/workflows/foreach-break.workflow.js +54 -0
- package/lib/esm/workflows/foreach-break.workflow.js.map +1 -0
- package/lib/esm/workflows/human-approval.workflow.js +40 -0
- package/lib/esm/workflows/human-approval.workflow.js.map +1 -0
- package/lib/esm/workflows/if-switch.workflow.js +62 -0
- package/lib/esm/workflows/if-switch.workflow.js.map +1 -0
- package/lib/esm/workflows/index.js +116 -0
- package/lib/esm/workflows/index.js.map +1 -0
- package/lib/esm/workflows/loops-while-until.workflow.js +72 -0
- package/lib/esm/workflows/loops-while-until.workflow.js.map +1 -0
- package/lib/esm/workflows/manual-log.workflow.js +48 -0
- package/lib/esm/workflows/manual-log.workflow.js.map +1 -0
- package/lib/esm/workflows/schedule-code.workflow.js +38 -0
- package/lib/esm/workflows/schedule-code.workflow.js.map +1 -0
- package/lib/esm/workflows/types.js +2 -0
- package/lib/esm/workflows/types.js.map +1 -0
- package/lib/esm/workflows/value-templates.workflow.js +39 -0
- package/lib/esm/workflows/value-templates.workflow.js.map +1 -0
- package/lib/esm/workflows/webhook-form.workflow.js +44 -0
- package/lib/esm/workflows/webhook-form.workflow.js.map +1 -0
- package/lib/types/dagster/DagsterGraphExecutionBackend.d.cts +7 -0
- package/lib/types/dagster/DagsterGraphExecutionBackend.d.mts +7 -0
- package/lib/types/engine/execution/GraphCodeMode.d.cts +46 -0
- package/lib/types/engine/execution/GraphCodeMode.d.mts +46 -0
- package/lib/types/engine/execution/GraphExecutionBackend.d.cts +21 -0
- package/lib/types/engine/execution/GraphExecutionBackend.d.mts +21 -0
- package/lib/types/engine/execution/GraphExecutionEngine.d.cts +28 -3
- package/lib/types/engine/execution/GraphExecutionEngine.d.mts +28 -3
- package/lib/types/engine/validation/GraphNodeInstanceValidator.d.cts +11 -1
- package/lib/types/engine/validation/GraphNodeInstanceValidator.d.mts +11 -1
- package/lib/types/engine/validation/GraphWorkflowDocumentValidator.d.cts +7 -0
- package/lib/types/engine/validation/GraphWorkflowDocumentValidator.d.mts +7 -0
- package/lib/types/mastra/MastraWorkflowCompiler.d.cts +23 -8
- package/lib/types/mastra/MastraWorkflowCompiler.d.mts +23 -8
- package/lib/types/nest/graph/GraphEngineController.d.cts +19 -0
- package/lib/types/nest/graph/GraphEngineController.d.mts +19 -0
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.cts +13 -0
- package/lib/types/nest/graph/GraphNodeCatalogueController.d.mts +13 -0
- package/lib/types/nest/graph/GraphRunController.d.cts +16 -0
- package/lib/types/nest/graph/GraphRunController.d.mts +16 -0
- package/lib/types/nest/graph/GraphWorkflowController.d.cts +26 -3
- package/lib/types/nest/graph/GraphWorkflowController.d.mts +26 -3
- package/lib/types/node/comms/discord/node.d.cts +67 -0
- package/lib/types/node/comms/discord/node.d.mts +67 -0
- package/lib/types/node/comms/outlook/node.d.cts +77 -0
- package/lib/types/node/comms/outlook/node.d.mts +77 -0
- package/lib/types/node/comms/whatsapp/node.d.cts +71 -0
- package/lib/types/node/comms/whatsapp/node.d.mts +71 -0
- package/lib/types/node/data/aggregate/node.d.cts +58 -0
- package/lib/types/node/data/aggregate/node.d.mts +58 -0
- package/lib/types/node/data/compare-datasets/node.d.cts +72 -0
- package/lib/types/node/data/compare-datasets/node.d.mts +72 -0
- package/lib/types/node/data/item-lists/node.d.cts +92 -0
- package/lib/types/node/data/item-lists/node.d.mts +92 -0
- package/lib/types/node/data/remove-duplicates/node.d.cts +47 -0
- package/lib/types/node/data/remove-duplicates/node.d.mts +47 -0
- package/lib/types/node/data/summarize/node.d.cts +44 -0
- package/lib/types/node/data/summarize/node.d.mts +44 -0
- package/lib/types/node/data/support.d.cts +13 -0
- package/lib/types/node/data/support.d.mts +13 -0
- package/lib/types/node/data/transform-utils.d.cts +236 -0
- package/lib/types/node/data/transform-utils.d.mts +236 -0
- package/lib/types/node/index.d.cts +54 -6
- package/lib/types/node/index.d.mts +54 -6
- package/lib/types/node/io/confluence/node.d.cts +49 -0
- package/lib/types/node/io/confluence/node.d.mts +49 -0
- package/lib/types/node/io/convert-to-file/node.d.cts +75 -0
- package/lib/types/node/io/convert-to-file/node.d.mts +75 -0
- package/lib/types/node/io/file-support.d.cts +118 -0
- package/lib/types/node/io/file-support.d.mts +118 -0
- package/lib/types/node/io/google-calendar/node.d.cts +65 -0
- package/lib/types/node/io/google-calendar/node.d.mts +65 -0
- package/lib/types/node/io/google-docs/node.d.cts +51 -0
- package/lib/types/node/io/google-docs/node.d.mts +51 -0
- package/lib/types/node/io/html/node.d.cts +68 -0
- package/lib/types/node/io/html/node.d.mts +68 -0
- package/lib/types/node/io/html-extract/node.d.cts +42 -0
- package/lib/types/node/io/html-extract/node.d.mts +42 -0
- package/lib/types/node/io/html-support.d.cts +69 -0
- package/lib/types/node/io/html-support.d.mts +69 -0
- package/lib/types/node/io/jira/node.d.cts +57 -0
- package/lib/types/node/io/jira/node.d.mts +57 -0
- package/lib/types/node/io/markdown/node.d.cts +61 -0
- package/lib/types/node/io/markdown/node.d.mts +61 -0
- package/lib/types/node/io/microsoft-excel/node.d.cts +45 -0
- package/lib/types/node/io/microsoft-excel/node.d.mts +45 -0
- package/lib/types/node/io/microsoft-sharepoint/node.d.cts +47 -0
- package/lib/types/node/io/microsoft-sharepoint/node.d.mts +47 -0
- package/lib/types/node/io/read-binary-file/node.d.cts +45 -0
- package/lib/types/node/io/read-binary-file/node.d.mts +45 -0
- package/lib/types/node/io/read-binary-files/node.d.cts +41 -0
- package/lib/types/node/io/read-binary-files/node.d.mts +41 -0
- package/lib/types/node/io/write-binary-file/node.d.cts +55 -0
- package/lib/types/node/io/write-binary-file/node.d.mts +55 -0
- package/lib/types/node/io/xml/node.d.cts +67 -0
- package/lib/types/node/io/xml/node.d.mts +67 -0
- package/lib/types/node/storage/rabbitmq/node.d.cts +55 -0
- package/lib/types/node/storage/rabbitmq/node.d.mts +55 -0
- package/lib/types/node/triggers/error/node.d.cts +34 -0
- package/lib/types/node/triggers/error/node.d.mts +34 -0
- package/lib/types/node/triggers/postgres/node.d.cts +54 -0
- package/lib/types/node/triggers/postgres/node.d.mts +54 -0
- package/lib/types/node/triggers/rabbitmq/node.d.cts +59 -0
- package/lib/types/node/triggers/rabbitmq/node.d.mts +59 -0
- package/lib/types/node/triggers/redis/node.d.cts +53 -0
- package/lib/types/node/triggers/redis/node.d.mts +53 -0
- package/lib/types/node/triggers/sse/node.d.cts +43 -0
- package/lib/types/node/triggers/sse/node.d.mts +43 -0
- package/lib/types/node/triggers/support.d.cts +41 -0
- package/lib/types/node/triggers/support.d.mts +41 -0
- package/lib/types/node/triggers/workflow/node.d.cts +46 -0
- package/lib/types/node/triggers/workflow/node.d.mts +46 -0
- package/lib/types/workflows/boundary-value.workflow.d.cts +3 -0
- package/lib/types/workflows/boundary-value.workflow.d.mts +3 -0
- package/lib/types/workflows/builders.d.cts +31 -0
- package/lib/types/workflows/builders.d.mts +31 -0
- package/lib/types/workflows/chat-agent.workflow.d.cts +3 -0
- package/lib/types/workflows/chat-agent.workflow.d.mts +3 -0
- package/lib/types/workflows/error-boundary.workflow.d.cts +3 -0
- package/lib/types/workflows/error-boundary.workflow.d.mts +3 -0
- package/lib/types/workflows/event-map.workflow.d.cts +3 -0
- package/lib/types/workflows/event-map.workflow.d.mts +3 -0
- package/lib/types/workflows/foreach-break.workflow.d.cts +3 -0
- package/lib/types/workflows/foreach-break.workflow.d.mts +3 -0
- package/lib/types/workflows/human-approval.workflow.d.cts +3 -0
- package/lib/types/workflows/human-approval.workflow.d.mts +3 -0
- package/lib/types/workflows/if-switch.workflow.d.cts +3 -0
- package/lib/types/workflows/if-switch.workflow.d.mts +3 -0
- package/lib/types/workflows/index.d.cts +37 -0
- package/lib/types/workflows/index.d.mts +37 -0
- package/lib/types/workflows/loops-while-until.workflow.d.cts +3 -0
- package/lib/types/workflows/loops-while-until.workflow.d.mts +3 -0
- package/lib/types/workflows/manual-log.workflow.d.cts +3 -0
- package/lib/types/workflows/manual-log.workflow.d.mts +3 -0
- package/lib/types/workflows/schedule-code.workflow.d.cts +3 -0
- package/lib/types/workflows/schedule-code.workflow.d.mts +3 -0
- package/lib/types/workflows/types.d.cts +32 -0
- package/lib/types/workflows/types.d.mts +32 -0
- package/lib/types/workflows/value-templates.workflow.d.cts +16 -0
- package/lib/types/workflows/value-templates.workflow.d.mts +16 -0
- package/lib/types/workflows/webhook-form.workflow.d.cts +3 -0
- package/lib/types/workflows/webhook-form.workflow.d.mts +3 -0
- package/package.json +247 -25
|
@@ -2,6 +2,7 @@ import type { GraphWorkflowDocument } from "../../shared/graph/index.d.mts";
|
|
|
2
2
|
import { DecafRequestContext } from "@decaf-ts/for-nest";
|
|
3
3
|
import type { GraphWorkflowValidationResult } from "../..//index.d.mts";
|
|
4
4
|
import { GraphWorkflowService } from "../../engine/services/GraphWorkflowService.d.mts";
|
|
5
|
+
import { GraphExecutionEngine } from "../../engine/execution/GraphExecutionEngine.d.mts";
|
|
5
6
|
import type { GraphWorkflowDocumentLimits } from "../../engine/validation/GraphWorkflowDocumentLimits.d.mts";
|
|
6
7
|
/** DI token for {@link GraphWorkflowControllerOptions}. */
|
|
7
8
|
export declare const GRAPH_WORKFLOW_OPTIONS = "GRAPH_WORKFLOW_OPTIONS";
|
|
@@ -44,15 +45,32 @@ export interface GraphWorkflowSummary {
|
|
|
44
45
|
* editor state is preserved verbatim for lossless round trips).
|
|
45
46
|
* - `GET /graph/workflows/{workflowId}` — load the canonical document;
|
|
46
47
|
* legacy persisted snapshots are converted losslessly on the read path.
|
|
47
|
-
* - `POST /graph/workflows/validate` — run
|
|
48
|
+
* - `POST /graph/workflows/validate` — run the execution engine's nine-stage
|
|
49
|
+
* validation gate (the same gate `POST /graph/runs` applies) and return
|
|
48
50
|
* structured issues (`code`, `path`, `nodeId`, `edgeId`, `message`,
|
|
49
51
|
* safe `details`).
|
|
52
|
+
*
|
|
53
|
+
* ### Authentication
|
|
54
|
+
*
|
|
55
|
+
* The class is annotated `@Public()` so the for-nest global `AuthInterceptor`
|
|
56
|
+
* (installed by `DecafAuthModule` when `authGlobal` is true) does not pre-empt
|
|
57
|
+
* these routes with its own model/role/namespace gate; it is not a public or
|
|
58
|
+
* anonymous endpoint. The for-nest `AuthMiddleware` still primes the injected
|
|
59
|
+
* {@link DecafRequestContext}, and every route calls
|
|
60
|
+
* `requireAuthenticatedContext()`, which defaults to `auth: "required"` (`401`
|
|
61
|
+
* without a request context or a resolved owner user) and admits anonymous
|
|
62
|
+
* callers only under `auth: "optional"`. Per-user ownership is enforced by
|
|
63
|
+
* {@link GraphWorkflowService}: the service-level `allowAnonymousAccess`
|
|
64
|
+
* tolerance relaxes reads for owner-less resources only and never authorizes
|
|
65
|
+
* an overwrite. The execution engine's `GraphAuthValidator` still checks
|
|
66
|
+
* workflow and node namespaces when a document is run.
|
|
50
67
|
*/
|
|
51
68
|
export declare class GraphWorkflowController {
|
|
52
69
|
private readonly workflowService;
|
|
53
70
|
private readonly requestContext?;
|
|
54
71
|
private readonly options;
|
|
55
|
-
|
|
72
|
+
private readonly executionEngine?;
|
|
73
|
+
constructor(workflowService: GraphWorkflowService, requestContext?: DecafRequestContext | undefined, options?: GraphWorkflowControllerOptions, executionEngine?: GraphExecutionEngine | undefined);
|
|
56
74
|
/**
|
|
57
75
|
* Enforces the configured authentication mode: `auth` defaults to
|
|
58
76
|
* `"required"` (SAA-595 secure-defaults alignment) and rejects a request
|
|
@@ -95,7 +113,12 @@ export declare class GraphWorkflowController {
|
|
|
95
113
|
*/
|
|
96
114
|
getWorkflow(workflowId: string): Promise<GraphWorkflowDocument>;
|
|
97
115
|
/**
|
|
98
|
-
* Validates a workflow document
|
|
116
|
+
* Validates a workflow document without persisting it. When the execution
|
|
117
|
+
* engine is available the run path's own nine-stage validator is used, so
|
|
118
|
+
* this endpoint accepts and rejects exactly what `POST /graph/runs` will
|
|
119
|
+
* (SAA-1357 D2); the resolved workflow is never returned over the wire.
|
|
120
|
+
* Without a wired engine (standalone controller use) the persistence
|
|
121
|
+
* boundary gate remains the fallback.
|
|
99
122
|
*
|
|
100
123
|
* @param {unknown} body - Bare `GraphWorkflowDocument` or canonical snapshot wrapper.
|
|
101
124
|
* @return {Promise<GraphWorkflowValidationResult>} Structured validation result.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.cts";
|
|
4
|
+
/** Operations the node can run against the Discord Bot API. */
|
|
5
|
+
export type DiscordOperation = "sendMessage" | "getMessage" | "listMessages" | "getChannel" | "listChannels" | "createChannel" | "deleteChannel" | "addReaction";
|
|
6
|
+
/** Inputs accepted by the Discord node. */
|
|
7
|
+
export type DiscordNodeInput = Record<string, unknown>;
|
|
8
|
+
/** Outputs produced by the Discord node. */
|
|
9
|
+
export interface DiscordNodeOutput {
|
|
10
|
+
/** Raw service response for the executed operation. */
|
|
11
|
+
result: unknown;
|
|
12
|
+
/** Channel the operation targeted or the created channel ID. */
|
|
13
|
+
channelId?: string;
|
|
14
|
+
/** Message ID fetched, reacted to, or created by `sendMessage`. */
|
|
15
|
+
messageId?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Discord node (`core.comms.discord`): messaging, channel administration, and
|
|
19
|
+
* reactions through the Decaf `DiscordService`.
|
|
20
|
+
*/
|
|
21
|
+
export declare class DiscordNode extends GraphNode<DiscordNodeInput, DiscordNodeOutput> {
|
|
22
|
+
/**
|
|
23
|
+
* Executes the configured Discord operation.
|
|
24
|
+
*
|
|
25
|
+
* @param request - Execution request carrying the credential secrets; the optional `discord` bot token is resolved via `resolveNodeCredential`.
|
|
26
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
27
|
+
* @returns Execution values with the service response on `result`, the targeted/created `channelId`, and the created/fetched/reaction `messageId` where available.
|
|
28
|
+
* @throws {GraphExecutionError} with codes `GRAPH_DISCORD_OPERATION_REQUIRED` (no operation configured), `GRAPH_DISCORD_CHANNEL_REQUIRED`/`GRAPH_DISCORD_MESSAGE_REQUIRED`/`GRAPH_DISCORD_CONTENT_REQUIRED`/`GRAPH_DISCORD_GUILD_REQUIRED`/`GRAPH_DISCORD_CHANNEL_CREATE_REQUIRED`/`GRAPH_DISCORD_REACTION_REQUIRED` (missing per-operation inputs), `GRAPH_DISCORD_EMBEDS_INVALID` (malformed embeds), or `GRAPH_DISCORD_OPERATION_FAILED` when the service call fails.
|
|
29
|
+
*/
|
|
30
|
+
execute(request: GraphNodeExecutionRequest<DiscordNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
31
|
+
/** Discord operation to perform (default `sendMessage`). */
|
|
32
|
+
operation: DiscordOperation;
|
|
33
|
+
/** Channel ID used by message, channel, and reaction operations. */
|
|
34
|
+
channelId?: string;
|
|
35
|
+
/** Guild ID used by channel list/create operations. */
|
|
36
|
+
guildId?: string;
|
|
37
|
+
/** Message ID used by get/fetch and reaction operations. */
|
|
38
|
+
messageId?: string;
|
|
39
|
+
/** Message text (falls back to the `value` input). */
|
|
40
|
+
content?: string;
|
|
41
|
+
/** Embed objects, array, or JSON string sent with the message. */
|
|
42
|
+
embeds?: unknown;
|
|
43
|
+
/** Whether Discord reads the message with text-to-speech. */
|
|
44
|
+
tts?: boolean;
|
|
45
|
+
/** Name of the channel created by `createChannel`. */
|
|
46
|
+
name?: string;
|
|
47
|
+
/** Numeric Discord channel type (default text channel). */
|
|
48
|
+
channelType?: number;
|
|
49
|
+
/** Optional topic for a created channel. */
|
|
50
|
+
topic?: string;
|
|
51
|
+
/** Optional parent category ID for a created channel. */
|
|
52
|
+
parentId?: string;
|
|
53
|
+
/** Emoji added by `addReaction`. */
|
|
54
|
+
emoji?: string;
|
|
55
|
+
/** Maximum number of messages returned by `listMessages`. */
|
|
56
|
+
limit?: number;
|
|
57
|
+
/** Message ID cursor for paging older messages. */
|
|
58
|
+
before?: string;
|
|
59
|
+
/** Optional Discord API base URL override. */
|
|
60
|
+
baseUrl?: string;
|
|
61
|
+
/** Raw service response for the executed operation. */
|
|
62
|
+
result: unknown;
|
|
63
|
+
/** Targeted or created channel ID. */
|
|
64
|
+
resultChannelId?: string;
|
|
65
|
+
/** Created, fetched, or reacted-to message ID. */
|
|
66
|
+
resultMessageId?: string;
|
|
67
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.mts";
|
|
4
|
+
/** Operations the node can run against the Discord Bot API. */
|
|
5
|
+
export type DiscordOperation = "sendMessage" | "getMessage" | "listMessages" | "getChannel" | "listChannels" | "createChannel" | "deleteChannel" | "addReaction";
|
|
6
|
+
/** Inputs accepted by the Discord node. */
|
|
7
|
+
export type DiscordNodeInput = Record<string, unknown>;
|
|
8
|
+
/** Outputs produced by the Discord node. */
|
|
9
|
+
export interface DiscordNodeOutput {
|
|
10
|
+
/** Raw service response for the executed operation. */
|
|
11
|
+
result: unknown;
|
|
12
|
+
/** Channel the operation targeted or the created channel ID. */
|
|
13
|
+
channelId?: string;
|
|
14
|
+
/** Message ID fetched, reacted to, or created by `sendMessage`. */
|
|
15
|
+
messageId?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Discord node (`core.comms.discord`): messaging, channel administration, and
|
|
19
|
+
* reactions through the Decaf `DiscordService`.
|
|
20
|
+
*/
|
|
21
|
+
export declare class DiscordNode extends GraphNode<DiscordNodeInput, DiscordNodeOutput> {
|
|
22
|
+
/**
|
|
23
|
+
* Executes the configured Discord operation.
|
|
24
|
+
*
|
|
25
|
+
* @param request - Execution request carrying the credential secrets; the optional `discord` bot token is resolved via `resolveNodeCredential`.
|
|
26
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
27
|
+
* @returns Execution values with the service response on `result`, the targeted/created `channelId`, and the created/fetched/reaction `messageId` where available.
|
|
28
|
+
* @throws {GraphExecutionError} with codes `GRAPH_DISCORD_OPERATION_REQUIRED` (no operation configured), `GRAPH_DISCORD_CHANNEL_REQUIRED`/`GRAPH_DISCORD_MESSAGE_REQUIRED`/`GRAPH_DISCORD_CONTENT_REQUIRED`/`GRAPH_DISCORD_GUILD_REQUIRED`/`GRAPH_DISCORD_CHANNEL_CREATE_REQUIRED`/`GRAPH_DISCORD_REACTION_REQUIRED` (missing per-operation inputs), `GRAPH_DISCORD_EMBEDS_INVALID` (malformed embeds), or `GRAPH_DISCORD_OPERATION_FAILED` when the service call fails.
|
|
29
|
+
*/
|
|
30
|
+
execute(request: GraphNodeExecutionRequest<DiscordNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
31
|
+
/** Discord operation to perform (default `sendMessage`). */
|
|
32
|
+
operation: DiscordOperation;
|
|
33
|
+
/** Channel ID used by message, channel, and reaction operations. */
|
|
34
|
+
channelId?: string;
|
|
35
|
+
/** Guild ID used by channel list/create operations. */
|
|
36
|
+
guildId?: string;
|
|
37
|
+
/** Message ID used by get/fetch and reaction operations. */
|
|
38
|
+
messageId?: string;
|
|
39
|
+
/** Message text (falls back to the `value` input). */
|
|
40
|
+
content?: string;
|
|
41
|
+
/** Embed objects, array, or JSON string sent with the message. */
|
|
42
|
+
embeds?: unknown;
|
|
43
|
+
/** Whether Discord reads the message with text-to-speech. */
|
|
44
|
+
tts?: boolean;
|
|
45
|
+
/** Name of the channel created by `createChannel`. */
|
|
46
|
+
name?: string;
|
|
47
|
+
/** Numeric Discord channel type (default text channel). */
|
|
48
|
+
channelType?: number;
|
|
49
|
+
/** Optional topic for a created channel. */
|
|
50
|
+
topic?: string;
|
|
51
|
+
/** Optional parent category ID for a created channel. */
|
|
52
|
+
parentId?: string;
|
|
53
|
+
/** Emoji added by `addReaction`. */
|
|
54
|
+
emoji?: string;
|
|
55
|
+
/** Maximum number of messages returned by `listMessages`. */
|
|
56
|
+
limit?: number;
|
|
57
|
+
/** Message ID cursor for paging older messages. */
|
|
58
|
+
before?: string;
|
|
59
|
+
/** Optional Discord API base URL override. */
|
|
60
|
+
baseUrl?: string;
|
|
61
|
+
/** Raw service response for the executed operation. */
|
|
62
|
+
result: unknown;
|
|
63
|
+
/** Targeted or created channel ID. */
|
|
64
|
+
resultChannelId?: string;
|
|
65
|
+
/** Created, fetched, or reacted-to message ID. */
|
|
66
|
+
resultMessageId?: string;
|
|
67
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.cts";
|
|
4
|
+
/** Operations the node can run against Microsoft Outlook. */
|
|
5
|
+
export type OutlookOperation = "sendMail" | "listMessages" | "getMessage" | "listEvents" | "createEvent" | "deleteEvent";
|
|
6
|
+
/** Inputs accepted by the Microsoft Outlook node. */
|
|
7
|
+
export type OutlookNodeInput = Record<string, unknown>;
|
|
8
|
+
/** Outputs produced by the Microsoft Outlook node. */
|
|
9
|
+
export interface OutlookNodeOutput {
|
|
10
|
+
/** Raw service response for the executed operation. */
|
|
11
|
+
result: unknown;
|
|
12
|
+
/** Message ID fetched by `getMessage`. */
|
|
13
|
+
messageId?: string;
|
|
14
|
+
/** Event ID created or deleted by the calendar operations. */
|
|
15
|
+
eventId?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Microsoft Outlook node (`core.comms.microsoftOutlook`): mail and calendar
|
|
19
|
+
* operations through the Decaf `MicrosoftOutlookService`.
|
|
20
|
+
*/
|
|
21
|
+
export declare class MicrosoftOutlookNode extends GraphNode<OutlookNodeInput, OutlookNodeOutput> {
|
|
22
|
+
/**
|
|
23
|
+
* Executes the configured Microsoft Outlook operation.
|
|
24
|
+
*
|
|
25
|
+
* @param request - Execution request carrying the credential secrets; the optional `microsoft-outlook` Graph access token is resolved via `resolveNodeCredential`.
|
|
26
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
27
|
+
* @returns Execution values with the service response on `result`, plus `messageId` for `getMessage` and `eventId` for created/deleted events.
|
|
28
|
+
* @throws {GraphExecutionError} with codes `GRAPH_OUTLOOK_OPERATION_REQUIRED` (no operation configured), `GRAPH_OUTLOOK_MAIL_REQUIRED`/`GRAPH_OUTLOOK_MESSAGE_REQUIRED`/`GRAPH_OUTLOOK_EVENT_REQUIRED` (missing per-operation inputs), `GRAPH_OUTLOOK_ATTENDEES_INVALID` (malformed attendees), or `GRAPH_OUTLOOK_OPERATION_FAILED` when the service call fails.
|
|
29
|
+
*/
|
|
30
|
+
execute(request: GraphNodeExecutionRequest<OutlookNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
31
|
+
/** Outlook operation to perform (default `sendMail`). */
|
|
32
|
+
operation: OutlookOperation;
|
|
33
|
+
/** Primary recipient address(es). */
|
|
34
|
+
to?: string;
|
|
35
|
+
/** Carbon-copy recipient address(es). */
|
|
36
|
+
cc?: string;
|
|
37
|
+
/** Blind-carbon-copy recipient address(es). */
|
|
38
|
+
bcc?: string;
|
|
39
|
+
/** Mail subject or event subject. */
|
|
40
|
+
subject?: string;
|
|
41
|
+
/** Mail/event body text (mail falls back to the `value` input). */
|
|
42
|
+
body?: string;
|
|
43
|
+
/** Mail body content type (default `Text`). */
|
|
44
|
+
contentType?: "Text" | "HTML";
|
|
45
|
+
/** Whether sent mail is saved to Sent Items. */
|
|
46
|
+
saveToSentItems?: boolean;
|
|
47
|
+
/** Mail folder ID used by `listMessages` (default `inbox`). */
|
|
48
|
+
folderId?: string;
|
|
49
|
+
/** Message ID fetched by `getMessage`. */
|
|
50
|
+
messageId?: string;
|
|
51
|
+
/** Event ID deleted by `deleteEvent`. */
|
|
52
|
+
eventId?: string;
|
|
53
|
+
/** Event start date-time (ISO 8601). */
|
|
54
|
+
start?: string;
|
|
55
|
+
/** Event end date-time (ISO 8601). */
|
|
56
|
+
end?: string;
|
|
57
|
+
/** IANA time zone for event start/end (default `UTC`). */
|
|
58
|
+
timeZone?: string;
|
|
59
|
+
/** Event location display name. */
|
|
60
|
+
location?: string;
|
|
61
|
+
/** Event attendees, array, or comma-separated/JSON string. */
|
|
62
|
+
attendees?: unknown;
|
|
63
|
+
/** Maximum number of results for list operations. */
|
|
64
|
+
top?: number;
|
|
65
|
+
/** OData filter expression for list operations. */
|
|
66
|
+
filter?: string;
|
|
67
|
+
/** OData search expression for list operations. */
|
|
68
|
+
search?: string;
|
|
69
|
+
/** Optional Microsoft Graph base URL override. */
|
|
70
|
+
baseUrl?: string;
|
|
71
|
+
/** Raw service response for the executed operation. */
|
|
72
|
+
result: unknown;
|
|
73
|
+
/** Fetched message ID. */
|
|
74
|
+
resultMessageId?: string;
|
|
75
|
+
/** Created or deleted event ID. */
|
|
76
|
+
resultEventId?: string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.mts";
|
|
4
|
+
/** Operations the node can run against Microsoft Outlook. */
|
|
5
|
+
export type OutlookOperation = "sendMail" | "listMessages" | "getMessage" | "listEvents" | "createEvent" | "deleteEvent";
|
|
6
|
+
/** Inputs accepted by the Microsoft Outlook node. */
|
|
7
|
+
export type OutlookNodeInput = Record<string, unknown>;
|
|
8
|
+
/** Outputs produced by the Microsoft Outlook node. */
|
|
9
|
+
export interface OutlookNodeOutput {
|
|
10
|
+
/** Raw service response for the executed operation. */
|
|
11
|
+
result: unknown;
|
|
12
|
+
/** Message ID fetched by `getMessage`. */
|
|
13
|
+
messageId?: string;
|
|
14
|
+
/** Event ID created or deleted by the calendar operations. */
|
|
15
|
+
eventId?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Microsoft Outlook node (`core.comms.microsoftOutlook`): mail and calendar
|
|
19
|
+
* operations through the Decaf `MicrosoftOutlookService`.
|
|
20
|
+
*/
|
|
21
|
+
export declare class MicrosoftOutlookNode extends GraphNode<OutlookNodeInput, OutlookNodeOutput> {
|
|
22
|
+
/**
|
|
23
|
+
* Executes the configured Microsoft Outlook operation.
|
|
24
|
+
*
|
|
25
|
+
* @param request - Execution request carrying the credential secrets; the optional `microsoft-outlook` Graph access token is resolved via `resolveNodeCredential`.
|
|
26
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
27
|
+
* @returns Execution values with the service response on `result`, plus `messageId` for `getMessage` and `eventId` for created/deleted events.
|
|
28
|
+
* @throws {GraphExecutionError} with codes `GRAPH_OUTLOOK_OPERATION_REQUIRED` (no operation configured), `GRAPH_OUTLOOK_MAIL_REQUIRED`/`GRAPH_OUTLOOK_MESSAGE_REQUIRED`/`GRAPH_OUTLOOK_EVENT_REQUIRED` (missing per-operation inputs), `GRAPH_OUTLOOK_ATTENDEES_INVALID` (malformed attendees), or `GRAPH_OUTLOOK_OPERATION_FAILED` when the service call fails.
|
|
29
|
+
*/
|
|
30
|
+
execute(request: GraphNodeExecutionRequest<OutlookNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
31
|
+
/** Outlook operation to perform (default `sendMail`). */
|
|
32
|
+
operation: OutlookOperation;
|
|
33
|
+
/** Primary recipient address(es). */
|
|
34
|
+
to?: string;
|
|
35
|
+
/** Carbon-copy recipient address(es). */
|
|
36
|
+
cc?: string;
|
|
37
|
+
/** Blind-carbon-copy recipient address(es). */
|
|
38
|
+
bcc?: string;
|
|
39
|
+
/** Mail subject or event subject. */
|
|
40
|
+
subject?: string;
|
|
41
|
+
/** Mail/event body text (mail falls back to the `value` input). */
|
|
42
|
+
body?: string;
|
|
43
|
+
/** Mail body content type (default `Text`). */
|
|
44
|
+
contentType?: "Text" | "HTML";
|
|
45
|
+
/** Whether sent mail is saved to Sent Items. */
|
|
46
|
+
saveToSentItems?: boolean;
|
|
47
|
+
/** Mail folder ID used by `listMessages` (default `inbox`). */
|
|
48
|
+
folderId?: string;
|
|
49
|
+
/** Message ID fetched by `getMessage`. */
|
|
50
|
+
messageId?: string;
|
|
51
|
+
/** Event ID deleted by `deleteEvent`. */
|
|
52
|
+
eventId?: string;
|
|
53
|
+
/** Event start date-time (ISO 8601). */
|
|
54
|
+
start?: string;
|
|
55
|
+
/** Event end date-time (ISO 8601). */
|
|
56
|
+
end?: string;
|
|
57
|
+
/** IANA time zone for event start/end (default `UTC`). */
|
|
58
|
+
timeZone?: string;
|
|
59
|
+
/** Event location display name. */
|
|
60
|
+
location?: string;
|
|
61
|
+
/** Event attendees, array, or comma-separated/JSON string. */
|
|
62
|
+
attendees?: unknown;
|
|
63
|
+
/** Maximum number of results for list operations. */
|
|
64
|
+
top?: number;
|
|
65
|
+
/** OData filter expression for list operations. */
|
|
66
|
+
filter?: string;
|
|
67
|
+
/** OData search expression for list operations. */
|
|
68
|
+
search?: string;
|
|
69
|
+
/** Optional Microsoft Graph base URL override. */
|
|
70
|
+
baseUrl?: string;
|
|
71
|
+
/** Raw service response for the executed operation. */
|
|
72
|
+
result: unknown;
|
|
73
|
+
/** Fetched message ID. */
|
|
74
|
+
resultMessageId?: string;
|
|
75
|
+
/** Created or deleted event ID. */
|
|
76
|
+
resultEventId?: string;
|
|
77
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.cts";
|
|
4
|
+
import { type WhatsAppMediaType } from "@decaf-ts/integrations/comms/whatsapp";
|
|
5
|
+
/** Operations the node can run against the WhatsApp Cloud API. */
|
|
6
|
+
export type WhatsAppOperation = "sendText" | "sendTemplate" | "sendMedia" | "markAsRead" | "getMedia";
|
|
7
|
+
/** Inputs accepted by the WhatsApp node. */
|
|
8
|
+
export type WhatsAppNodeInput = Record<string, unknown>;
|
|
9
|
+
/** Outputs produced by the WhatsApp node. */
|
|
10
|
+
export interface WhatsAppNodeOutput {
|
|
11
|
+
/** Raw service response for the executed operation. */
|
|
12
|
+
result: unknown;
|
|
13
|
+
/** ID of the message sent or marked as read. */
|
|
14
|
+
messageId?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* WhatsApp node (`core.comms.whatsApp`): messaging, read receipts, and media
|
|
18
|
+
* lookup through the Decaf `WhatsAppService`.
|
|
19
|
+
*/
|
|
20
|
+
export declare class WhatsAppNode extends GraphNode<WhatsAppNodeInput, WhatsAppNodeOutput> {
|
|
21
|
+
/**
|
|
22
|
+
* Executes the configured WhatsApp operation.
|
|
23
|
+
*
|
|
24
|
+
* @param request - Execution request carrying the credential secrets; the optional `whatsapp` credential supplies the access token and may supply `phoneNumberId`.
|
|
25
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
26
|
+
* @returns Execution values with the service response on `result` and the message ID on `messageId` for sends and read receipts.
|
|
27
|
+
* @throws {GraphExecutionError} with codes `GRAPH_WHATSAPP_OPERATION_REQUIRED` (no operation configured), `GRAPH_WHATSAPP_TEXT_REQUIRED`/`GRAPH_WHATSAPP_TEMPLATE_REQUIRED`/`GRAPH_WHATSAPP_MEDIA_REQUIRED`/`GRAPH_WHATSAPP_MESSAGE_REQUIRED` (missing per-operation inputs), `GRAPH_WHATSAPP_COMPONENTS_INVALID` (malformed components), or `GRAPH_WHATSAPP_OPERATION_FAILED` when the service call fails.
|
|
28
|
+
*/
|
|
29
|
+
execute(request: GraphNodeExecutionRequest<WhatsAppNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
30
|
+
/**
|
|
31
|
+
* Extracts the first message ID from a WhatsApp send response.
|
|
32
|
+
*
|
|
33
|
+
* @param result - Raw service response from a send operation.
|
|
34
|
+
* @returns The first message ID when present, otherwise an empty object.
|
|
35
|
+
*/
|
|
36
|
+
private messageIdOf;
|
|
37
|
+
/** WhatsApp operation to perform (default `sendText`). */
|
|
38
|
+
operation: WhatsAppOperation;
|
|
39
|
+
/** Sender phone number ID (overrides the credential's default). */
|
|
40
|
+
phoneNumberId?: string;
|
|
41
|
+
/** Recipient phone number in international format. */
|
|
42
|
+
to?: string;
|
|
43
|
+
/** Text message body (falls back to the `value` input). */
|
|
44
|
+
text?: string;
|
|
45
|
+
/** Whether WhatsApp generates a link preview. */
|
|
46
|
+
previewUrl?: boolean;
|
|
47
|
+
/** Approved template name used by `sendTemplate`. */
|
|
48
|
+
templateName?: string;
|
|
49
|
+
/** Template language code (e.g. `en_US`). */
|
|
50
|
+
languageCode?: string;
|
|
51
|
+
/** Template components, array, or JSON string. */
|
|
52
|
+
components?: unknown;
|
|
53
|
+
/** Media kind for `sendMedia` (default `image`). */
|
|
54
|
+
mediaType?: WhatsAppMediaType;
|
|
55
|
+
/** Uploaded WhatsApp media ID. */
|
|
56
|
+
mediaId?: string;
|
|
57
|
+
/** Public media URL sent as the media link. */
|
|
58
|
+
mediaUrl?: string;
|
|
59
|
+
/** Optional media caption. */
|
|
60
|
+
caption?: string;
|
|
61
|
+
/** Optional document filename. */
|
|
62
|
+
filename?: string;
|
|
63
|
+
/** Inbound message ID acknowledged by `markAsRead`. */
|
|
64
|
+
messageId?: string;
|
|
65
|
+
/** Optional WhatsApp Graph API base URL override. */
|
|
66
|
+
baseUrl?: string;
|
|
67
|
+
/** Raw service response for the executed operation. */
|
|
68
|
+
result: unknown;
|
|
69
|
+
/** Sent or acknowledged message ID. */
|
|
70
|
+
resultMessageId?: string;
|
|
71
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
import type { GraphExecutionContext } from "../../../engine/execution/GraphExecutionContext.d.mts";
|
|
4
|
+
import { type WhatsAppMediaType } from "@decaf-ts/integrations/comms/whatsapp";
|
|
5
|
+
/** Operations the node can run against the WhatsApp Cloud API. */
|
|
6
|
+
export type WhatsAppOperation = "sendText" | "sendTemplate" | "sendMedia" | "markAsRead" | "getMedia";
|
|
7
|
+
/** Inputs accepted by the WhatsApp node. */
|
|
8
|
+
export type WhatsAppNodeInput = Record<string, unknown>;
|
|
9
|
+
/** Outputs produced by the WhatsApp node. */
|
|
10
|
+
export interface WhatsAppNodeOutput {
|
|
11
|
+
/** Raw service response for the executed operation. */
|
|
12
|
+
result: unknown;
|
|
13
|
+
/** ID of the message sent or marked as read. */
|
|
14
|
+
messageId?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* WhatsApp node (`core.comms.whatsApp`): messaging, read receipts, and media
|
|
18
|
+
* lookup through the Decaf `WhatsAppService`.
|
|
19
|
+
*/
|
|
20
|
+
export declare class WhatsAppNode extends GraphNode<WhatsAppNodeInput, WhatsAppNodeOutput> {
|
|
21
|
+
/**
|
|
22
|
+
* Executes the configured WhatsApp operation.
|
|
23
|
+
*
|
|
24
|
+
* @param request - Execution request carrying the credential secrets; the optional `whatsapp` credential supplies the access token and may supply `phoneNumberId`.
|
|
25
|
+
* @param context - Node execution context forwarded to the ctx-bound credential resolver.
|
|
26
|
+
* @returns Execution values with the service response on `result` and the message ID on `messageId` for sends and read receipts.
|
|
27
|
+
* @throws {GraphExecutionError} with codes `GRAPH_WHATSAPP_OPERATION_REQUIRED` (no operation configured), `GRAPH_WHATSAPP_TEXT_REQUIRED`/`GRAPH_WHATSAPP_TEMPLATE_REQUIRED`/`GRAPH_WHATSAPP_MEDIA_REQUIRED`/`GRAPH_WHATSAPP_MESSAGE_REQUIRED` (missing per-operation inputs), `GRAPH_WHATSAPP_COMPONENTS_INVALID` (malformed components), or `GRAPH_WHATSAPP_OPERATION_FAILED` when the service call fails.
|
|
28
|
+
*/
|
|
29
|
+
execute(request: GraphNodeExecutionRequest<WhatsAppNodeInput>, context: GraphExecutionContext): Promise<GraphExecutionValues>;
|
|
30
|
+
/**
|
|
31
|
+
* Extracts the first message ID from a WhatsApp send response.
|
|
32
|
+
*
|
|
33
|
+
* @param result - Raw service response from a send operation.
|
|
34
|
+
* @returns The first message ID when present, otherwise an empty object.
|
|
35
|
+
*/
|
|
36
|
+
private messageIdOf;
|
|
37
|
+
/** WhatsApp operation to perform (default `sendText`). */
|
|
38
|
+
operation: WhatsAppOperation;
|
|
39
|
+
/** Sender phone number ID (overrides the credential's default). */
|
|
40
|
+
phoneNumberId?: string;
|
|
41
|
+
/** Recipient phone number in international format. */
|
|
42
|
+
to?: string;
|
|
43
|
+
/** Text message body (falls back to the `value` input). */
|
|
44
|
+
text?: string;
|
|
45
|
+
/** Whether WhatsApp generates a link preview. */
|
|
46
|
+
previewUrl?: boolean;
|
|
47
|
+
/** Approved template name used by `sendTemplate`. */
|
|
48
|
+
templateName?: string;
|
|
49
|
+
/** Template language code (e.g. `en_US`). */
|
|
50
|
+
languageCode?: string;
|
|
51
|
+
/** Template components, array, or JSON string. */
|
|
52
|
+
components?: unknown;
|
|
53
|
+
/** Media kind for `sendMedia` (default `image`). */
|
|
54
|
+
mediaType?: WhatsAppMediaType;
|
|
55
|
+
/** Uploaded WhatsApp media ID. */
|
|
56
|
+
mediaId?: string;
|
|
57
|
+
/** Public media URL sent as the media link. */
|
|
58
|
+
mediaUrl?: string;
|
|
59
|
+
/** Optional media caption. */
|
|
60
|
+
caption?: string;
|
|
61
|
+
/** Optional document filename. */
|
|
62
|
+
filename?: string;
|
|
63
|
+
/** Inbound message ID acknowledged by `markAsRead`. */
|
|
64
|
+
messageId?: string;
|
|
65
|
+
/** Optional WhatsApp Graph API base URL override. */
|
|
66
|
+
baseUrl?: string;
|
|
67
|
+
/** Raw service response for the executed operation. */
|
|
68
|
+
result: unknown;
|
|
69
|
+
/** Sent or acknowledged message ID. */
|
|
70
|
+
resultMessageId?: string;
|
|
71
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.cts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.cts";
|
|
3
|
+
import { type AggregateFieldSpec } from "../transform-utils.d.cts";
|
|
4
|
+
/**
|
|
5
|
+
* Aggregation strategy: one output list per configured field, or one
|
|
6
|
+
* destination field holding every aggregated item.
|
|
7
|
+
*/
|
|
8
|
+
export type AggregateMode = "aggregateIndividualFields" | "aggregateAllItemData";
|
|
9
|
+
/**
|
|
10
|
+
* Field projection applied by `aggregateAllItemData`: keep every field, keep
|
|
11
|
+
* only the listed fields, or keep every field except the listed ones.
|
|
12
|
+
*/
|
|
13
|
+
export type AggregateInclude = "allFields" | "specifiedFields" | "allFieldsExcept";
|
|
14
|
+
/** Inputs accepted by the Aggregate node; `value` carries the item collection. */
|
|
15
|
+
export type AggregateNodeInput = Record<string, unknown>;
|
|
16
|
+
/** Outputs produced by the Aggregate node. */
|
|
17
|
+
export interface AggregateNodeOutput {
|
|
18
|
+
/** Aggregated record keyed by output field name (or by `destinationFieldName` for `aggregateAllItemData`). */
|
|
19
|
+
result: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Aggregate node (`core.data.aggregate`): collects values from a list of items
|
|
23
|
+
* into per-field arrays or one grouped record.
|
|
24
|
+
*/
|
|
25
|
+
export declare class AggregateNode extends GraphNode<AggregateNodeInput, AggregateNodeOutput> {
|
|
26
|
+
/**
|
|
27
|
+
* Aggregates the configured input items.
|
|
28
|
+
*
|
|
29
|
+
* @param request - Execution request; `inputs.value` holds the item collection.
|
|
30
|
+
* @returns Execution values with the aggregated `result` record.
|
|
31
|
+
* @throws {GraphExecutionError} `GRAPH_AGGREGATE_FIELDS_REQUIRED` when
|
|
32
|
+
* `aggregateIndividualFields` has no usable field specs, or
|
|
33
|
+
* `GRAPH_AGGREGATE_DUPLICATE_FIELD` when two specs map to the same output.
|
|
34
|
+
*/
|
|
35
|
+
execute(request: GraphNodeExecutionRequest<AggregateNodeInput>): GraphExecutionValues;
|
|
36
|
+
/** Items to aggregate (array, single item, or nil). */
|
|
37
|
+
value: unknown;
|
|
38
|
+
/** Aggregation strategy (default `aggregateIndividualFields`). */
|
|
39
|
+
aggregate: AggregateMode;
|
|
40
|
+
/** Source fields to aggregate, with optional rename/output-name options. */
|
|
41
|
+
fieldsToAggregate?: AggregateFieldSpec[];
|
|
42
|
+
/** Destination field for `aggregateAllItemData` (default `data`). */
|
|
43
|
+
destinationFieldName: string;
|
|
44
|
+
/** Field projection used by `aggregateAllItemData` (default `allFields`). */
|
|
45
|
+
include: AggregateInclude;
|
|
46
|
+
/** Comma-separated or array field list kept when `include` is `specifiedFields`. */
|
|
47
|
+
fieldsToInclude?: string | string[];
|
|
48
|
+
/** Comma-separated or array field list dropped when `include` is `allFieldsExcept`. */
|
|
49
|
+
fieldsToExclude?: string | string[];
|
|
50
|
+
/** Flatten array values into a single output list (default `false`). */
|
|
51
|
+
mergeLists?: boolean;
|
|
52
|
+
/** Keep `null`/`undefined` values instead of skipping them (default `false`). */
|
|
53
|
+
keepMissing?: boolean;
|
|
54
|
+
/** Treat field names literally instead of as dot-separated paths (default `false`). */
|
|
55
|
+
disableDotNotation?: boolean;
|
|
56
|
+
/** Aggregated output record. */
|
|
57
|
+
result: Record<string, unknown>;
|
|
58
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { GraphNode } from "../../base.d.mts";
|
|
2
|
+
import type { GraphExecutionValues, GraphNodeExecutionRequest } from "../../../engine/types.d.mts";
|
|
3
|
+
import { type AggregateFieldSpec } from "../transform-utils.d.mts";
|
|
4
|
+
/**
|
|
5
|
+
* Aggregation strategy: one output list per configured field, or one
|
|
6
|
+
* destination field holding every aggregated item.
|
|
7
|
+
*/
|
|
8
|
+
export type AggregateMode = "aggregateIndividualFields" | "aggregateAllItemData";
|
|
9
|
+
/**
|
|
10
|
+
* Field projection applied by `aggregateAllItemData`: keep every field, keep
|
|
11
|
+
* only the listed fields, or keep every field except the listed ones.
|
|
12
|
+
*/
|
|
13
|
+
export type AggregateInclude = "allFields" | "specifiedFields" | "allFieldsExcept";
|
|
14
|
+
/** Inputs accepted by the Aggregate node; `value` carries the item collection. */
|
|
15
|
+
export type AggregateNodeInput = Record<string, unknown>;
|
|
16
|
+
/** Outputs produced by the Aggregate node. */
|
|
17
|
+
export interface AggregateNodeOutput {
|
|
18
|
+
/** Aggregated record keyed by output field name (or by `destinationFieldName` for `aggregateAllItemData`). */
|
|
19
|
+
result: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Aggregate node (`core.data.aggregate`): collects values from a list of items
|
|
23
|
+
* into per-field arrays or one grouped record.
|
|
24
|
+
*/
|
|
25
|
+
export declare class AggregateNode extends GraphNode<AggregateNodeInput, AggregateNodeOutput> {
|
|
26
|
+
/**
|
|
27
|
+
* Aggregates the configured input items.
|
|
28
|
+
*
|
|
29
|
+
* @param request - Execution request; `inputs.value` holds the item collection.
|
|
30
|
+
* @returns Execution values with the aggregated `result` record.
|
|
31
|
+
* @throws {GraphExecutionError} `GRAPH_AGGREGATE_FIELDS_REQUIRED` when
|
|
32
|
+
* `aggregateIndividualFields` has no usable field specs, or
|
|
33
|
+
* `GRAPH_AGGREGATE_DUPLICATE_FIELD` when two specs map to the same output.
|
|
34
|
+
*/
|
|
35
|
+
execute(request: GraphNodeExecutionRequest<AggregateNodeInput>): GraphExecutionValues;
|
|
36
|
+
/** Items to aggregate (array, single item, or nil). */
|
|
37
|
+
value: unknown;
|
|
38
|
+
/** Aggregation strategy (default `aggregateIndividualFields`). */
|
|
39
|
+
aggregate: AggregateMode;
|
|
40
|
+
/** Source fields to aggregate, with optional rename/output-name options. */
|
|
41
|
+
fieldsToAggregate?: AggregateFieldSpec[];
|
|
42
|
+
/** Destination field for `aggregateAllItemData` (default `data`). */
|
|
43
|
+
destinationFieldName: string;
|
|
44
|
+
/** Field projection used by `aggregateAllItemData` (default `allFields`). */
|
|
45
|
+
include: AggregateInclude;
|
|
46
|
+
/** Comma-separated or array field list kept when `include` is `specifiedFields`. */
|
|
47
|
+
fieldsToInclude?: string | string[];
|
|
48
|
+
/** Comma-separated or array field list dropped when `include` is `allFieldsExcept`. */
|
|
49
|
+
fieldsToExclude?: string | string[];
|
|
50
|
+
/** Flatten array values into a single output list (default `false`). */
|
|
51
|
+
mergeLists?: boolean;
|
|
52
|
+
/** Keep `null`/`undefined` values instead of skipping them (default `false`). */
|
|
53
|
+
keepMissing?: boolean;
|
|
54
|
+
/** Treat field names literally instead of as dot-separated paths (default `false`). */
|
|
55
|
+
disableDotNotation?: boolean;
|
|
56
|
+
/** Aggregated output record. */
|
|
57
|
+
result: Record<string, unknown>;
|
|
58
|
+
}
|