@oomol-lab/open-flow 0.1.0-beta.73 → 0.1.0-beta.75
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/LICENSE +36 -0
- package/NOTICE +7 -0
- package/README.md +41 -0
- package/dist/browser/{ContentIcon-CUQHjQIw.js → ContentIcon-FCpKiwjp.js} +2 -1
- package/dist/browser/{FlowCanvas-Dtf8_cQp.js → FlowCanvas-dzRBnlUT.js} +1 -1
- package/dist/browser/{createResourceDialog-BWJkjiOO.js → createResourceDialog-BeYDdUl-.js} +2 -2
- package/dist/browser/{dialog-CUy_fwx9.js → dialog-ZtpsFbl4.js} +337 -31
- package/dist/browser/{exportSvg-BOoy7-Db.js → exportSvg-DqXw1yf-.js} +2 -2
- package/dist/browser/{flowChanges-CgSnSqqP.js → flowChanges-b_5UobFj.js} +586 -87
- package/dist/browser/{flowWorkspace-Bf7H-r0t.js → flowWorkspace-ItojZbO4.js} +21162 -20242
- package/dist/browser/preview.css +254 -179
- package/dist/browser/preview.js +22201 -20625
- package/dist/browser/{typeScriptSession-B0hC-C8y.js → typeScriptSession-CSRwWmZm.js} +1 -1
- package/dist/browser/ui.css +72 -2
- package/dist/browser/workbench.css +254 -179
- package/dist/browser/workbench.js +22 -78
- package/dist/browser/{workbenchSelect-C3e4J93X.js → workbenchSelect-M441Lz0d.js} +1 -1
- package/dist/command/index.js +42 -42
- package/dist/common/authoring.d.ts +5 -5
- package/dist/common/authoringExamples.d.ts +3 -2
- package/dist/common/authoringFields.d.ts +1 -1
- package/dist/common/authoringSchema.d.ts +95 -8
- package/dist/common/connector-proxy.d.ts +1 -1
- package/dist/common/control-api-conformance.d.ts +1 -1
- package/dist/common/control-api-conformance.js +119 -31
- package/dist/common/control-api.d.ts +4 -3
- package/dist/common/control-api.js +117 -29
- package/dist/common/control-requests.d.ts +5 -4
- package/dist/common/control-requests.js +437 -103
- package/dist/common/cron-trigger.d.ts +1 -1
- package/dist/common/decision.d.ts +1 -1
- package/dist/common/draftOperations.d.ts +1 -1
- package/dist/common/engine-contract.d.ts +4 -2
- package/dist/common/event-source-definition.d.ts +1 -1
- package/dist/common/flow-agent.d.ts +1 -1
- package/dist/{browser → common}/flow-authoring-node.d.ts +3 -3
- package/dist/{browser → common}/flow-authoring.js +131 -30
- package/dist/{browser → common}/flow-change-schema.d.ts +177 -6
- package/dist/{browser → common}/flow-change.d.ts +35 -15
- package/dist/{browser → common}/flow-change.js +133 -32
- package/dist/common/flow-connectionUsage.d.ts +1 -1
- package/dist/common/flow-encoding.d.ts +1 -1
- package/dist/common/flow-encoding.js +89 -23
- package/dist/common/flow-errorHandling.d.ts +1 -1
- package/dist/common/flow-graph.d.ts +3 -2
- package/dist/common/flow-modules.d.ts +1 -1
- package/dist/common/flow-promptTemplate.d.ts +1 -1
- package/dist/common/flow-retry.d.ts +2 -2
- package/dist/common/flow-semantics.d.ts +1 -1
- package/dist/common/flow-semantics.js +966 -614
- package/dist/common/flow-workflowFile.d.ts +1 -1
- package/dist/common/flowInspection.d.ts +3 -3
- package/dist/common/http-request.d.ts +156 -0
- package/dist/common/http-request.js +5254 -0
- package/dist/common/integration-trigger.d.ts +1 -1
- package/dist/common/licenses.md +118 -1
- package/dist/common/liveDetails.d.ts +1 -1
- package/dist/common/mcp.d.ts +5 -4
- package/dist/common/mcp.js +117 -29
- package/dist/common/openapi.d.ts +1 -1
- package/dist/common/poll-trigger.d.ts +1 -1
- package/dist/common/run-events.js +11 -9
- package/dist/common/run-results.d.ts +8 -1
- package/dist/common/runtime-contract.d.ts +8 -2
- package/dist/common/runtime-contract.js +25 -5
- package/dist/common/scheduler-checkpoint.d.ts +1 -1
- package/dist/common/scheduler-dependencies.d.ts +1 -1
- package/dist/common/scheduler-node-execution.d.ts +1 -1
- package/dist/common/scheduler.d.ts +3 -3
- package/dist/common/scheduler.js +101 -33
- package/dist/common/trigger-catalog.d.ts +1 -1
- package/dist/common/trigger-config-options.d.ts +1 -1
- package/dist/common/trigger-config.d.ts +1 -1
- package/dist/common/trigger-contract.d.ts +2 -2
- package/dist/common/trigger-localization.d.ts +1 -1
- package/dist/common/webhook-response.d.ts +1 -3
- package/dist/common/webhook-trigger.d.ts +1 -1
- package/dist/common/webhook-trigger.js +12 -11
- package/dist/common/workflow.d.ts +17 -1
- package/dist/common/workflow.js +68 -22
- package/dist/index.d.ts +6 -3
- package/package.json +11 -6
- package/skills/open-flow/references/flow-authoring.md +1 -0
- package/skills/open-flow/references/flow-n8n-conversion.md +19 -15
- package/src/base/common/json.ts +90 -0
- package/src/canvas/common/commands.ts +15 -0
- package/src/connector/common/actionSchema.ts +168 -0
- package/src/connector/common/proxy.ts +44 -0
- package/src/control/common/api.ts +1506 -0
- package/src/control/common/authoring.ts +923 -0
- package/src/control/common/authoringCondition.ts +110 -0
- package/src/control/common/authoringDiagnosticFields.ts +136 -0
- package/src/control/common/authoringExamples.ts +200 -0
- package/src/control/common/authoringFields.ts +53 -0
- package/src/control/common/authoringLlm.ts +70 -0
- package/src/control/common/authoringOpenApi.ts +129 -0
- package/src/control/common/authoringSchema.ts +410 -0
- package/src/control/common/authoringTools.ts +123 -0
- package/src/control/common/authoringTriggers.ts +26 -0
- package/src/control/common/checkDecoders.ts +65 -0
- package/src/control/common/conformance.ts +1989 -0
- package/src/control/common/connectorDecoders.ts +370 -0
- package/src/control/common/connectorQueries.ts +61 -0
- package/src/control/common/decoding.ts +60 -0
- package/src/control/common/draftOperations.ts +61 -0
- package/src/control/common/errors.ts +114 -0
- package/src/control/common/eventSourceSchemas.ts +13 -0
- package/src/control/common/eventSources.ts +186 -0
- package/src/control/common/flowDecoders.ts +153 -0
- package/src/control/common/flowInspection.ts +181 -0
- package/src/control/common/flowNotifications.ts +37 -0
- package/src/control/common/liveDetails.ts +124 -0
- package/src/control/common/mcp.ts +241 -0
- package/src/control/common/mcpConformance.ts +142 -0
- package/src/control/common/providerAccess.ts +28 -0
- package/src/control/common/providerIconSprite.ts +42 -0
- package/src/control/common/publicationDecoders.ts +98 -0
- package/src/control/common/random.ts +16 -0
- package/src/control/common/requests.ts +112 -0
- package/src/control/common/resultQuery.ts +8 -0
- package/src/control/common/results.ts +176 -0
- package/src/control/common/revisionDecoders.ts +52 -0
- package/src/control/common/runDecoders.ts +240 -0
- package/src/control/common/triggerCatalog.ts +89 -0
- package/src/control/common/triggerDecoders.ts +175 -0
- package/src/decision/common/decision.ts +168 -0
- package/src/event-source/common/catalog.generated.json +65 -0
- package/src/event-source/common/definition.ts +66 -0
- package/src/event-source/common/index.ts +99 -0
- package/src/execution/common/checkpoint.ts +311 -0
- package/src/execution/common/dependencies.ts +440 -0
- package/src/execution/common/engineContract.ts +84 -0
- package/src/execution/common/events.ts +331 -0
- package/src/execution/common/node-execution.ts +469 -0
- package/src/execution/common/runLifecycle.ts +250 -0
- package/src/execution/common/runtime.ts +563 -0
- package/src/execution/common/scheduler.ts +697 -0
- package/src/execution/common/wait.ts +36 -0
- package/src/flow/common/agent.ts +305 -0
- package/src/flow/common/authoring.ts +30 -0
- package/src/flow/common/change.ts +1037 -0
- package/src/flow/common/changeSchema.ts +792 -0
- package/src/flow/common/codePermissions.ts +2 -0
- package/src/flow/common/condition.ts +265 -0
- package/src/flow/common/connectionUsage.ts +131 -0
- package/src/flow/common/edgeChanges.ts +35 -0
- package/src/flow/common/encoding.ts +437 -0
- package/src/flow/common/errorHandling.ts +34 -0
- package/src/flow/common/graph.ts +898 -0
- package/src/flow/common/inputValue.ts +16 -0
- package/src/flow/common/json.ts +8 -0
- package/src/flow/common/moduleChanges.ts +31 -0
- package/src/flow/common/modules.ts +292 -0
- package/src/flow/common/nodeChanges.ts +762 -0
- package/src/flow/common/portChanges.ts +36 -0
- package/src/flow/common/promptTemplate.ts +15 -0
- package/src/flow/common/retry.ts +20 -0
- package/src/flow/common/schema.ts +162 -0
- package/src/flow/common/schemaCompare.ts +176 -0
- package/src/flow/common/schemaComparer.ts +178 -0
- package/src/flow/common/schemaKeywords.ts +53 -0
- package/src/flow/common/semantics.ts +531 -0
- package/src/flow/common/sourceField.ts +35 -0
- package/src/flow/common/triggerScheduleSchema.ts +8 -0
- package/src/flow/common/wait.ts +30 -0
- package/src/flow/common/webhookMethod.ts +7 -0
- package/src/flow/common/webhookResponse.ts +71 -0
- package/src/flow/common/workflowFile.ts +97 -0
- package/src/http/common/authBindings.ts +12 -0
- package/src/http/common/headers.ts +5 -0
- package/src/http/common/httpRequest.ts +251 -0
- package/src/json-schema-subset/checker/array.ts +142 -0
- package/src/json-schema-subset/checker/cache.ts +57 -0
- package/src/json-schema-subset/checker/checker.ts +230 -0
- package/src/json-schema-subset/checker/enumAndConst.ts +113 -0
- package/src/json-schema-subset/checker/equals.ts +93 -0
- package/src/json-schema-subset/checker/numeric/checker.ts +50 -0
- package/src/json-schema-subset/checker/numeric/float.ts +121 -0
- package/src/json-schema-subset/checker/numeric/index.ts +1 -0
- package/src/json-schema-subset/checker/numeric/integer.ts +119 -0
- package/src/json-schema-subset/checker/numeric/integerNormalizer.ts +72 -0
- package/src/json-schema-subset/checker/object.ts +354 -0
- package/src/json-schema-subset/checker/range.ts +91 -0
- package/src/json-schema-subset/checker/string.ts +60 -0
- package/src/json-schema-subset/checker/tools/index.ts +3 -0
- package/src/json-schema-subset/checker/tools/mark.ts +82 -0
- package/src/json-schema-subset/checker/tools/quantum.ts +106 -0
- package/src/json-schema-subset/checker/tools/range.ts +210 -0
- package/src/json-schema-subset/checker/validator.ts +23 -0
- package/src/json-schema-subset/compiler/array.ts +163 -0
- package/src/json-schema-subset/compiler/combination.ts +109 -0
- package/src/json-schema-subset/compiler/common.ts +99 -0
- package/src/json-schema-subset/compiler/compiler.ts +188 -0
- package/src/json-schema-subset/compiler/enumAndConst.ts +75 -0
- package/src/json-schema-subset/compiler/index.ts +11 -0
- package/src/json-schema-subset/compiler/object.ts +411 -0
- package/src/json-schema-subset/compiler/primitive.ts +144 -0
- package/src/json-schema-subset/compiler/utils.ts +24 -0
- package/src/json-schema-subset/compiler/wrapper.ts +192 -0
- package/src/json-schema-subset/error.ts +55 -0
- package/src/json-schema-subset/expression/calculator.ts +442 -0
- package/src/json-schema-subset/expression/combination.ts +49 -0
- package/src/json-schema-subset/expression/expression.ts +191 -0
- package/src/json-schema-subset/expression/index.ts +25 -0
- package/src/json-schema-subset/expression/result.ts +88 -0
- package/src/json-schema-subset/expression/types.ts +36 -0
- package/src/json-schema-subset/extends/extendsContext.ts +89 -0
- package/src/json-schema-subset/extends/index.ts +2 -0
- package/src/json-schema-subset/extends/types.ts +12 -0
- package/src/json-schema-subset/global.ts +60 -0
- package/src/json-schema-subset/index.ts +8 -0
- package/src/json-schema-subset/preprocessing.ts +74 -0
- package/src/json-schema-subset/types.ts +8 -0
- package/src/json-schema-subset/utils.ts +95 -0
- package/src/localization/common/languages.ts +118 -0
- package/src/localization/common/timeZone.ts +25 -0
- package/src/openapi/common/openapi.ts +459 -0
- package/src/trigger/common/config.ts +56 -0
- package/src/trigger/common/configOptions.ts +15 -0
- package/src/trigger/common/configSchema.ts +8 -0
- package/src/trigger/common/contract.ts +132 -0
- package/src/trigger/common/cron.ts +151 -0
- package/src/trigger/common/integration.ts +498 -0
- package/src/trigger/common/poll.ts +187 -0
- package/src/trigger/common/webhook.ts +413 -0
- package/src/trigger/providers/airtable/locales/fr.json +18 -0
- package/src/trigger/providers/airtable/locales/ja.json +18 -0
- package/src/trigger/providers/airtable/locales/ko.json +18 -0
- package/src/trigger/providers/airtable/locales/ru.json +18 -0
- package/src/trigger/providers/airtable/locales/zh-CN.json +18 -0
- package/src/trigger/providers/airtable/locales/zh-TW.json +18 -0
- package/src/trigger/providers/asana/locales/fr.json +15 -0
- package/src/trigger/providers/asana/locales/ja.json +15 -0
- package/src/trigger/providers/asana/locales/ko.json +15 -0
- package/src/trigger/providers/asana/locales/ru.json +15 -0
- package/src/trigger/providers/asana/locales/zh-CN.json +15 -0
- package/src/trigger/providers/asana/locales/zh-TW.json +15 -0
- package/src/trigger/providers/calendly/locales/fr.json +16 -0
- package/src/trigger/providers/calendly/locales/ja.json +16 -0
- package/src/trigger/providers/calendly/locales/ko.json +16 -0
- package/src/trigger/providers/calendly/locales/ru.json +16 -0
- package/src/trigger/providers/calendly/locales/zh-CN.json +16 -0
- package/src/trigger/providers/calendly/locales/zh-TW.json +16 -0
- package/src/trigger/providers/catalog.generated.json +4996 -0
- package/src/trigger/providers/clickup/locales/fr.json +16 -0
- package/src/trigger/providers/clickup/locales/ja.json +16 -0
- package/src/trigger/providers/clickup/locales/ko.json +16 -0
- package/src/trigger/providers/clickup/locales/ru.json +16 -0
- package/src/trigger/providers/clickup/locales/zh-CN.json +16 -0
- package/src/trigger/providers/clickup/locales/zh-TW.json +16 -0
- package/src/trigger/providers/definitions.ts +19 -0
- package/src/trigger/providers/feishu/locales/fr.json +20 -0
- package/src/trigger/providers/feishu/locales/ja.json +20 -0
- package/src/trigger/providers/feishu/locales/ko.json +20 -0
- package/src/trigger/providers/feishu/locales/ru.json +20 -0
- package/src/trigger/providers/feishu/locales/zh-CN.json +20 -0
- package/src/trigger/providers/feishu/locales/zh-TW.json +20 -0
- package/src/trigger/providers/fieldDescriptions.ts +392 -0
- package/src/trigger/providers/fieldLabels.ts +256 -0
- package/src/trigger/providers/fireflies/locales/fr.json +17 -0
- package/src/trigger/providers/fireflies/locales/ja.json +17 -0
- package/src/trigger/providers/fireflies/locales/ko.json +17 -0
- package/src/trigger/providers/fireflies/locales/ru.json +17 -0
- package/src/trigger/providers/fireflies/locales/zh-CN.json +17 -0
- package/src/trigger/providers/fireflies/locales/zh-TW.json +17 -0
- package/src/trigger/providers/github/locales/fr.json +30 -0
- package/src/trigger/providers/github/locales/ja.json +30 -0
- package/src/trigger/providers/github/locales/ko.json +30 -0
- package/src/trigger/providers/github/locales/ru.json +30 -0
- package/src/trigger/providers/github/locales/zh-CN.json +30 -0
- package/src/trigger/providers/github/locales/zh-TW.json +30 -0
- package/src/trigger/providers/gitlab/locales/fr.json +18 -0
- package/src/trigger/providers/gitlab/locales/ja.json +18 -0
- package/src/trigger/providers/gitlab/locales/ko.json +18 -0
- package/src/trigger/providers/gitlab/locales/ru.json +18 -0
- package/src/trigger/providers/gitlab/locales/zh-CN.json +18 -0
- package/src/trigger/providers/gitlab/locales/zh-TW.json +18 -0
- package/src/trigger/providers/gmail/locales/fr.json +18 -0
- package/src/trigger/providers/gmail/locales/ja.json +18 -0
- package/src/trigger/providers/gmail/locales/ko.json +18 -0
- package/src/trigger/providers/gmail/locales/ru.json +18 -0
- package/src/trigger/providers/gmail/locales/zh-CN.json +18 -0
- package/src/trigger/providers/gmail/locales/zh-TW.json +18 -0
- package/src/trigger/providers/google-calendar/locales/fr.json +15 -0
- package/src/trigger/providers/google-calendar/locales/ja.json +15 -0
- package/src/trigger/providers/google-calendar/locales/ko.json +15 -0
- package/src/trigger/providers/google-calendar/locales/ru.json +15 -0
- package/src/trigger/providers/google-calendar/locales/zh-CN.json +15 -0
- package/src/trigger/providers/google-calendar/locales/zh-TW.json +15 -0
- package/src/trigger/providers/google-drive/locales/fr.json +48 -0
- package/src/trigger/providers/google-drive/locales/ja.json +48 -0
- package/src/trigger/providers/google-drive/locales/ko.json +48 -0
- package/src/trigger/providers/google-drive/locales/ru.json +48 -0
- package/src/trigger/providers/google-drive/locales/zh-CN.json +48 -0
- package/src/trigger/providers/google-drive/locales/zh-TW.json +48 -0
- package/src/trigger/providers/google-sheets/locales/fr.json +19 -0
- package/src/trigger/providers/google-sheets/locales/ja.json +19 -0
- package/src/trigger/providers/google-sheets/locales/ko.json +19 -0
- package/src/trigger/providers/google-sheets/locales/ru.json +19 -0
- package/src/trigger/providers/google-sheets/locales/zh-CN.json +19 -0
- package/src/trigger/providers/google-sheets/locales/zh-TW.json +19 -0
- package/src/trigger/providers/intercom/locales/fr.json +17 -0
- package/src/trigger/providers/intercom/locales/ja.json +17 -0
- package/src/trigger/providers/intercom/locales/ko.json +17 -0
- package/src/trigger/providers/intercom/locales/ru.json +17 -0
- package/src/trigger/providers/intercom/locales/zh-CN.json +17 -0
- package/src/trigger/providers/intercom/locales/zh-TW.json +17 -0
- package/src/trigger/providers/jira/locales/fr.json +17 -0
- package/src/trigger/providers/jira/locales/ja.json +17 -0
- package/src/trigger/providers/jira/locales/ko.json +17 -0
- package/src/trigger/providers/jira/locales/ru.json +17 -0
- package/src/trigger/providers/jira/locales/zh-CN.json +17 -0
- package/src/trigger/providers/jira/locales/zh-TW.json +17 -0
- package/src/trigger/providers/linear/locales/fr.json +13 -0
- package/src/trigger/providers/linear/locales/ja.json +13 -0
- package/src/trigger/providers/linear/locales/ko.json +13 -0
- package/src/trigger/providers/linear/locales/ru.json +13 -0
- package/src/trigger/providers/linear/locales/zh-CN.json +13 -0
- package/src/trigger/providers/linear/locales/zh-TW.json +13 -0
- package/src/trigger/providers/locales/fr.ts +71 -0
- package/src/trigger/providers/locales/ja.ts +71 -0
- package/src/trigger/providers/locales/ko.ts +71 -0
- package/src/trigger/providers/locales/ru.ts +71 -0
- package/src/trigger/providers/locales/zh-CN.ts +71 -0
- package/src/trigger/providers/locales/zh-TW.ts +71 -0
- package/src/trigger/providers/localization.ts +59 -0
- package/src/trigger/providers/notion/locales/fr.json +16 -0
- package/src/trigger/providers/notion/locales/ja.json +16 -0
- package/src/trigger/providers/notion/locales/ko.json +16 -0
- package/src/trigger/providers/notion/locales/ru.json +16 -0
- package/src/trigger/providers/notion/locales/zh-CN.json +16 -0
- package/src/trigger/providers/notion/locales/zh-TW.json +16 -0
- package/src/trigger/providers/one-drive/locales/fr.json +16 -0
- package/src/trigger/providers/one-drive/locales/ja.json +16 -0
- package/src/trigger/providers/one-drive/locales/ko.json +16 -0
- package/src/trigger/providers/one-drive/locales/ru.json +16 -0
- package/src/trigger/providers/one-drive/locales/zh-CN.json +16 -0
- package/src/trigger/providers/one-drive/locales/zh-TW.json +16 -0
- package/src/trigger/providers/outlook/locales/fr.json +18 -0
- package/src/trigger/providers/outlook/locales/ja.json +18 -0
- package/src/trigger/providers/outlook/locales/ko.json +18 -0
- package/src/trigger/providers/outlook/locales/ru.json +18 -0
- package/src/trigger/providers/outlook/locales/zh-CN.json +18 -0
- package/src/trigger/providers/outlook/locales/zh-TW.json +18 -0
- package/src/trigger/providers/pandadoc/locales/fr.json +12 -0
- package/src/trigger/providers/pandadoc/locales/ja.json +12 -0
- package/src/trigger/providers/pandadoc/locales/ko.json +12 -0
- package/src/trigger/providers/pandadoc/locales/ru.json +12 -0
- package/src/trigger/providers/pandadoc/locales/zh-CN.json +12 -0
- package/src/trigger/providers/pandadoc/locales/zh-TW.json +12 -0
- package/src/trigger/providers/pipedrive/locales/fr.json +15 -0
- package/src/trigger/providers/pipedrive/locales/ja.json +15 -0
- package/src/trigger/providers/pipedrive/locales/ko.json +15 -0
- package/src/trigger/providers/pipedrive/locales/ru.json +15 -0
- package/src/trigger/providers/pipedrive/locales/zh-CN.json +15 -0
- package/src/trigger/providers/pipedrive/locales/zh-TW.json +15 -0
- package/src/trigger/providers/remote.ts +163 -0
- package/src/trigger/providers/resend/locales/fr.json +16 -0
- package/src/trigger/providers/resend/locales/ja.json +16 -0
- package/src/trigger/providers/resend/locales/ko.json +16 -0
- package/src/trigger/providers/resend/locales/ru.json +16 -0
- package/src/trigger/providers/resend/locales/zh-CN.json +16 -0
- package/src/trigger/providers/resend/locales/zh-TW.json +16 -0
- package/src/trigger/providers/sentry/locales/fr.json +19 -0
- package/src/trigger/providers/sentry/locales/ja.json +19 -0
- package/src/trigger/providers/sentry/locales/ko.json +19 -0
- package/src/trigger/providers/sentry/locales/ru.json +19 -0
- package/src/trigger/providers/sentry/locales/zh-CN.json +19 -0
- package/src/trigger/providers/sentry/locales/zh-TW.json +19 -0
- package/src/trigger/providers/shopify/locales/fr.json +18 -0
- package/src/trigger/providers/shopify/locales/ja.json +18 -0
- package/src/trigger/providers/shopify/locales/ko.json +18 -0
- package/src/trigger/providers/shopify/locales/ru.json +18 -0
- package/src/trigger/providers/shopify/locales/zh-CN.json +18 -0
- package/src/trigger/providers/shopify/locales/zh-TW.json +18 -0
- package/src/trigger/providers/slack/locales/fr.json +18 -0
- package/src/trigger/providers/slack/locales/ja.json +18 -0
- package/src/trigger/providers/slack/locales/ko.json +18 -0
- package/src/trigger/providers/slack/locales/ru.json +18 -0
- package/src/trigger/providers/slack/locales/zh-CN.json +18 -0
- package/src/trigger/providers/slack/locales/zh-TW.json +18 -0
- package/src/trigger/providers/slackbot/locales/fr.json +23 -0
- package/src/trigger/providers/slackbot/locales/ja.json +23 -0
- package/src/trigger/providers/slackbot/locales/ko.json +23 -0
- package/src/trigger/providers/slackbot/locales/ru.json +23 -0
- package/src/trigger/providers/slackbot/locales/zh-CN.json +23 -0
- package/src/trigger/providers/slackbot/locales/zh-TW.json +23 -0
- package/src/trigger/providers/source-events.ts +25 -0
- package/src/trigger/providers/stripe/locales/fr.json +17 -0
- package/src/trigger/providers/stripe/locales/ja.json +17 -0
- package/src/trigger/providers/stripe/locales/ko.json +17 -0
- package/src/trigger/providers/stripe/locales/ru.json +17 -0
- package/src/trigger/providers/stripe/locales/zh-CN.json +17 -0
- package/src/trigger/providers/stripe/locales/zh-TW.json +17 -0
- package/src/trigger/providers/tally/locales/fr.json +12 -0
- package/src/trigger/providers/tally/locales/ja.json +12 -0
- package/src/trigger/providers/tally/locales/ko.json +12 -0
- package/src/trigger/providers/tally/locales/ru.json +12 -0
- package/src/trigger/providers/tally/locales/zh-CN.json +12 -0
- package/src/trigger/providers/tally/locales/zh-TW.json +12 -0
- package/src/trigger/providers/telegram/locales/fr.json +17 -0
- package/src/trigger/providers/telegram/locales/ja.json +17 -0
- package/src/trigger/providers/telegram/locales/ko.json +17 -0
- package/src/trigger/providers/telegram/locales/ru.json +17 -0
- package/src/trigger/providers/telegram/locales/zh-CN.json +17 -0
- package/src/trigger/providers/telegram/locales/zh-TW.json +17 -0
- package/src/trigger/providers/typeform/locales/fr.json +12 -0
- package/src/trigger/providers/typeform/locales/ja.json +12 -0
- package/src/trigger/providers/typeform/locales/ko.json +12 -0
- package/src/trigger/providers/typeform/locales/ru.json +12 -0
- package/src/trigger/providers/typeform/locales/zh-CN.json +12 -0
- package/src/trigger/providers/typeform/locales/zh-TW.json +12 -0
- package/src/trigger/providers/vercel/locales/fr.json +18 -0
- package/src/trigger/providers/vercel/locales/ja.json +18 -0
- package/src/trigger/providers/vercel/locales/ko.json +18 -0
- package/src/trigger/providers/vercel/locales/ru.json +18 -0
- package/src/trigger/providers/vercel/locales/zh-CN.json +18 -0
- package/src/trigger/providers/vercel/locales/zh-TW.json +18 -0
- package/src/trigger/providers/woocommerce/locales/fr.json +19 -0
- package/src/trigger/providers/woocommerce/locales/ja.json +19 -0
- package/src/trigger/providers/woocommerce/locales/ko.json +19 -0
- package/src/trigger/providers/woocommerce/locales/ru.json +19 -0
- package/src/trigger/providers/woocommerce/locales/zh-CN.json +19 -0
- package/src/trigger/providers/woocommerce/locales/zh-TW.json +19 -0
- package/src/trigger/providers/zendesk/locales/fr.json +15 -0
- package/src/trigger/providers/zendesk/locales/ja.json +15 -0
- package/src/trigger/providers/zendesk/locales/ko.json +15 -0
- package/src/trigger/providers/zendesk/locales/ru.json +15 -0
- package/src/trigger/providers/zendesk/locales/zh-CN.json +15 -0
- package/src/trigger/providers/zendesk/locales/zh-TW.json +15 -0
- package/src/trigger/providers/zoom/locales/fr.json +17 -0
- package/src/trigger/providers/zoom/locales/ja.json +17 -0
- package/src/trigger/providers/zoom/locales/ko.json +17 -0
- package/src/trigger/providers/zoom/locales/ru.json +17 -0
- package/src/trigger/providers/zoom/locales/zh-CN.json +17 -0
- package/src/trigger/providers/zoom/locales/zh-TW.json +17 -0
- package/src/types/index.ts +112 -0
- package/src/workflow/common/workflow.ts +273 -0
- package/dist/browser/lib-DrKav3HG.js +0 -11403
- /package/dist/{browser → common}/flow-authoring-edge.d.ts +0 -0
- /package/dist/{browser → common}/flow-authoring-module.d.ts +0 -0
- /package/dist/{browser → common}/flow-authoring.d.ts +0 -0
- /package/dist/{browser → common}/flow-input-value.d.ts +0 -0
- /package/dist/{browser → common}/webhook-method.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChangeOperation, JsonValue, RevisionContent, TriggerKeySnapshot } from '
|
|
1
|
+
import type { ChangeOperation, JsonValue, RevisionContent, TriggerKeySnapshot } from './flow-change.js';
|
|
2
2
|
import type { WorkflowContract, WorkflowCandidate } from './workflow.js';
|
|
3
3
|
import type { ConnectorAction, Diagnostic } from './control-api.js';
|
|
4
4
|
import type { AuthoringRead, AuthoringRequest, AuthoringSearch } from './authoringSchema.js';
|
|
@@ -10,7 +10,7 @@ export declare class AuthoringError extends Error {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function authoringNode(content: RevisionContent, ref: string): {
|
|
12
12
|
ref: string;
|
|
13
|
-
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
13
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "http-request" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
14
14
|
name: string;
|
|
15
15
|
readOnly: boolean;
|
|
16
16
|
description?: string | undefined;
|
|
@@ -82,7 +82,6 @@ export declare function authoringNode(content: RevisionContent, ref: string): {
|
|
|
82
82
|
})[];
|
|
83
83
|
};
|
|
84
84
|
export declare function readAuthoring(content: RevisionContent, query?: AuthoringRead): {
|
|
85
|
-
nodes?: undefined;
|
|
86
85
|
text: {
|
|
87
86
|
node: string;
|
|
88
87
|
field: "code" | "prompt";
|
|
@@ -93,12 +92,13 @@ export declare function readAuthoring(content: RevisionContent, query?: Authorin
|
|
|
93
92
|
nextStart?: number | undefined;
|
|
94
93
|
truncated: boolean;
|
|
95
94
|
};
|
|
95
|
+
nodes?: undefined;
|
|
96
96
|
edges?: undefined;
|
|
97
97
|
} | {
|
|
98
98
|
text?: undefined;
|
|
99
99
|
nodes: {
|
|
100
100
|
ref: string;
|
|
101
|
-
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
101
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "http-request" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
102
102
|
name: string;
|
|
103
103
|
readOnly: boolean;
|
|
104
104
|
description?: string | undefined;
|
|
@@ -174,7 +174,7 @@ export declare function readAuthoring(content: RevisionContent, query?: Authorin
|
|
|
174
174
|
text?: undefined;
|
|
175
175
|
nodes: {
|
|
176
176
|
ref: string;
|
|
177
|
-
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
177
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "http-request" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
178
178
|
name: string;
|
|
179
179
|
readOnly: boolean;
|
|
180
180
|
inputHandles: string[];
|
|
@@ -8,6 +8,7 @@ declare const descriptions: {
|
|
|
8
8
|
readonly poll: 'Gmail polling by key; replace CONNECTION_ID with an active Gmail connection.';
|
|
9
9
|
readonly integration: 'Telegram webhook integration by key; replace CONNECTION_ID with an active Telegram connection.';
|
|
10
10
|
readonly decision: 'AI Decision evaluates named questions against target and returns a complete answer object per output. Configure target before running.';
|
|
11
|
+
readonly 'http-request': 'A single HTTP request. Bind url and request inputs; outputs are body, statusCode and headers.';
|
|
11
12
|
readonly openapi: 'A fixed JSON API operation. Replace the example document and URL before running.';
|
|
12
13
|
readonly connector: 'A Connector Task and its node. Replace ACTION_ID, CONNECTION_ID and port definitions using connector_get / connector show. Set connectionId to an empty string to defer account configuration; execution will require an account.';
|
|
13
14
|
readonly code: 'A JavaScript module and its node. Use Code for custom computation; use Connector Tasks for existing actions.';
|
|
@@ -22,8 +23,8 @@ declare const descriptions: {
|
|
|
22
23
|
};
|
|
23
24
|
export declare const authoringExampleNames: (keyof typeof descriptions)[];
|
|
24
25
|
export declare const authoringExamples: {
|
|
25
|
-
name: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm-chat" | "llm-json" | "openapi" | "poll" | "poll-notification" | "start" | "value" | "wait" | "webhook" | "webhook-response";
|
|
26
|
-
description: "A Connector Task and its node. Replace ACTION_ID, CONNECTION_ID and port definitions using connector_get / connector show. Set connectionId to an empty string to defer account configuration; execution will require an account." | "A Flow Error node. Select upstream Flows, then publish and enable this Flow to listen for failures in their automatic runs." | "A JavaScript module and its node. Use Code for custom computation; use Connector Tasks for existing actions." | "A Start node with a required message parameter. Supply it through trigger.outputs." | "A Wait with a continue action and a built-in notification output." | "A Webhook start node." | "A condition with true and false execution branches." | "A fixed JSON API operation. Replace the example document and URL before running." | "A fixed value node." | "AI Decision evaluates named questions against target and returns a complete answer object per output. Configure target before running." | "An Agent with code computation enabled. Configure a model available in the deployment." | "An Approval with approve and reject decision branches and a built-in notification output." | "An HTTP response node with body, statusCode and headers inputs. Select it from a reachable Webhook." | "An LLM JSON Task and its node; configure a model available in the deployment." | "An LLM chat Task and its node; configure a model available in the deployment." | "An hourly scheduled start node." | "Gmail events → JavaScript text formatting → Connector notification. Replace connection/action IDs and match the notification input ports." | "Gmail polling by key; replace CONNECTION_ID with an active Gmail connection." | "Telegram webhook integration by key; replace CONNECTION_ID with an active Telegram connection.";
|
|
26
|
+
name: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "http-request" | "integration" | "llm-chat" | "llm-json" | "openapi" | "poll" | "poll-notification" | "start" | "value" | "wait" | "webhook" | "webhook-response";
|
|
27
|
+
description: "A Connector Task and its node. Replace ACTION_ID, CONNECTION_ID and port definitions using connector_get / connector show. Set connectionId to an empty string to defer account configuration; execution will require an account." | "A Flow Error node. Select upstream Flows, then publish and enable this Flow to listen for failures in their automatic runs." | "A JavaScript module and its node. Use Code for custom computation; use Connector Tasks for existing actions." | "A Start node with a required message parameter. Supply it through trigger.outputs." | "A Wait with a continue action and a built-in notification output." | "A Webhook start node." | "A condition with true and false execution branches." | "A fixed JSON API operation. Replace the example document and URL before running." | "A fixed value node." | "A single HTTP request. Bind url and request inputs; outputs are body, statusCode and headers." | "AI Decision evaluates named questions against target and returns a complete answer object per output. Configure target before running." | "An Agent with code computation enabled. Configure a model available in the deployment." | "An Approval with approve and reject decision branches and a built-in notification output." | "An HTTP response node with body, statusCode and headers inputs. Select it from a reachable Webhook." | "An LLM JSON Task and its node; configure a model available in the deployment." | "An LLM chat Task and its node; configure a model available in the deployment." | "An hourly scheduled start node." | "Gmail events → JavaScript text formatting → Connector notification. Replace connection/action IDs and match the notification input ports." | "Gmail polling by key; replace CONNECTION_ID with an active Gmail connection." | "Telegram webhook integration by key; replace CONNECTION_ID with an active Telegram connection.";
|
|
27
28
|
}[];
|
|
28
29
|
export declare function authoringExample(name: string): {
|
|
29
30
|
version: 1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InputPort, Group, JsonValue, RevisionContent } from '
|
|
1
|
+
import type { InputPort, Group, JsonValue, RevisionContent } from './flow-change.js';
|
|
2
2
|
/** Business field contracts, independent of storage handles and presentation groups. */
|
|
3
3
|
export declare function fieldsView(ports: readonly (InputPort | Group)[]): {
|
|
4
4
|
[k: string]: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JsonValue } from '../index.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export declare const authoringTypes: readonly ['start', 'outputs', 'webhook-response', 'workflow', 'webhook', 'cron', 'error', 'poll', 'integration', 'code', 'connector', 'agent', 'llm', 'decision', 'openapi', 'condition', 'value', 'wait', 'approval'];
|
|
3
|
+
export declare const authoringTypes: readonly ['start', 'outputs', 'webhook-response', 'workflow', 'webhook', 'cron', 'error', 'poll', 'integration', 'code', 'connector', 'agent', 'llm', 'decision', 'openapi', 'http-request', 'condition', 'value', 'wait', 'approval'];
|
|
4
4
|
declare const type: z.ZodEnum<{
|
|
5
5
|
agent: "agent";
|
|
6
6
|
approval: "approval";
|
|
@@ -10,6 +10,7 @@ declare const type: z.ZodEnum<{
|
|
|
10
10
|
cron: "cron";
|
|
11
11
|
decision: "decision";
|
|
12
12
|
error: "error";
|
|
13
|
+
"http-request": "http-request";
|
|
13
14
|
integration: "integration";
|
|
14
15
|
llm: "llm";
|
|
15
16
|
openapi: "openapi";
|
|
@@ -187,7 +188,7 @@ export declare const authoringConfigurations: {
|
|
|
187
188
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
188
189
|
description: z.ZodOptional<z.ZodString>;
|
|
189
190
|
}, z.core.$strict>>;
|
|
190
|
-
capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
191
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
191
192
|
kind: z.ZodLiteral<"connector">;
|
|
192
193
|
action: z.ZodString;
|
|
193
194
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -213,6 +214,10 @@ export declare const authoringConfigurations: {
|
|
|
213
214
|
connectionId: z.ZodString;
|
|
214
215
|
alias: z.ZodOptional<z.ZodString>;
|
|
215
216
|
}, z.core.$strict>>>;
|
|
217
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
218
|
+
kind: z.ZodLiteral<"workflow">;
|
|
219
|
+
name: z.ZodString;
|
|
220
|
+
flowId: z.ZodString;
|
|
216
221
|
}, z.core.$strict>]>>>;
|
|
217
222
|
}, z.core.$strict>;
|
|
218
223
|
connector: z.ZodObject<{
|
|
@@ -240,6 +245,61 @@ export declare const authoringConfigurations: {
|
|
|
240
245
|
}>;
|
|
241
246
|
}, z.core.$strict>]>>;
|
|
242
247
|
}, z.core.$strict>;
|
|
248
|
+
'http-request': z.ZodObject<{
|
|
249
|
+
method: z.ZodDefault<z.ZodEnum<{
|
|
250
|
+
DELETE: "DELETE";
|
|
251
|
+
GET: "GET";
|
|
252
|
+
HEAD: "HEAD";
|
|
253
|
+
OPTIONS: "OPTIONS";
|
|
254
|
+
PATCH: "PATCH";
|
|
255
|
+
POST: "POST";
|
|
256
|
+
PUT: "PUT";
|
|
257
|
+
}>>;
|
|
258
|
+
query: z.ZodDefault<z.ZodObject<{
|
|
259
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
260
|
+
fields: "fields";
|
|
261
|
+
object: "object";
|
|
262
|
+
}>>;
|
|
263
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
264
|
+
}, z.core.$strict>>;
|
|
265
|
+
headers: z.ZodDefault<z.ZodObject<{
|
|
266
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
267
|
+
fields: "fields";
|
|
268
|
+
object: "object";
|
|
269
|
+
}>>;
|
|
270
|
+
names: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
271
|
+
}, z.core.$strict>>;
|
|
272
|
+
bodyFormat: z.ZodDefault<z.ZodEnum<{
|
|
273
|
+
form: "form";
|
|
274
|
+
json: "json";
|
|
275
|
+
none: "none";
|
|
276
|
+
text: "text";
|
|
277
|
+
}>>;
|
|
278
|
+
authentication: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
279
|
+
type: z.ZodLiteral<"none">;
|
|
280
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
281
|
+
type: z.ZodEnum<{
|
|
282
|
+
basic: "basic";
|
|
283
|
+
bearer: "bearer";
|
|
284
|
+
}>;
|
|
285
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
286
|
+
type: z.ZodLiteral<"apiKey">;
|
|
287
|
+
name: z.ZodString;
|
|
288
|
+
in: z.ZodEnum<{
|
|
289
|
+
header: "header";
|
|
290
|
+
query: "query";
|
|
291
|
+
}>;
|
|
292
|
+
}, z.core.$strict>]>>;
|
|
293
|
+
responseFormat: z.ZodDefault<z.ZodEnum<{
|
|
294
|
+
auto: "auto";
|
|
295
|
+
json: "json";
|
|
296
|
+
text: "text";
|
|
297
|
+
}>>;
|
|
298
|
+
statusPolicy: z.ZodDefault<z.ZodEnum<{
|
|
299
|
+
all: "all";
|
|
300
|
+
success: "success";
|
|
301
|
+
}>>;
|
|
302
|
+
}, z.core.$strict>;
|
|
243
303
|
agent: z.ZodObject<{
|
|
244
304
|
code: z.ZodOptional<z.ZodBoolean>;
|
|
245
305
|
model: z.ZodString;
|
|
@@ -251,12 +311,28 @@ export declare const authoringConfigurations: {
|
|
|
251
311
|
default: z.ZodOptional<z.ZodJSONSchema>;
|
|
252
312
|
}, z.core.$strict>>;
|
|
253
313
|
resultSchema: z.ZodJSONSchema;
|
|
254
|
-
tools: z.ZodArray<z.ZodObject<{
|
|
314
|
+
tools: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
315
|
+
kind: z.ZodLiteral<"workflow">;
|
|
316
|
+
flowId: z.ZodString;
|
|
317
|
+
name: z.ZodString;
|
|
318
|
+
description: z.ZodString;
|
|
319
|
+
approval: z.ZodBoolean;
|
|
320
|
+
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
321
|
+
kind: z.ZodLiteral<"value">;
|
|
322
|
+
value: z.ZodJSONSchema;
|
|
323
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
324
|
+
kind: z.ZodLiteral<"input">;
|
|
325
|
+
input: z.ZodString;
|
|
326
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
327
|
+
kind: z.ZodLiteral<"model">;
|
|
328
|
+
}, z.core.$strip>]>>>;
|
|
329
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
255
330
|
name: z.ZodString;
|
|
256
331
|
description: z.ZodString;
|
|
332
|
+
approval: z.ZodBoolean;
|
|
333
|
+
kind: z.ZodOptional<z.ZodLiteral<"connector">>;
|
|
257
334
|
action: z.ZodString;
|
|
258
335
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
259
|
-
approval: z.ZodBoolean;
|
|
260
336
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
261
337
|
kind: z.ZodLiteral<"value">;
|
|
262
338
|
value: z.ZodJSONSchema;
|
|
@@ -266,7 +342,7 @@ export declare const authoringConfigurations: {
|
|
|
266
342
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
267
343
|
kind: z.ZodLiteral<"model">;
|
|
268
344
|
}, z.core.$strip>]>>>;
|
|
269
|
-
}, z.core.$strict>>;
|
|
345
|
+
}, z.core.$strict>]>>;
|
|
270
346
|
notification: z.ZodOptional<z.ZodObject<{
|
|
271
347
|
action: z.ZodString;
|
|
272
348
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -619,6 +695,7 @@ export declare const authoringEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
619
695
|
cron: "cron";
|
|
620
696
|
decision: "decision";
|
|
621
697
|
error: "error";
|
|
698
|
+
"http-request": "http-request";
|
|
622
699
|
integration: "integration";
|
|
623
700
|
llm: "llm";
|
|
624
701
|
openapi: "openapi";
|
|
@@ -703,6 +780,7 @@ export declare const authoringEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
703
780
|
}, z.core.$strict>, z.ZodObject<{
|
|
704
781
|
op: z.ZodLiteral<"node.refresh">;
|
|
705
782
|
node: z.ZodString;
|
|
783
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
706
784
|
}, z.core.$strict>, z.ZodObject<{
|
|
707
785
|
op: z.ZodLiteral<"node.remove">;
|
|
708
786
|
node: z.ZodString;
|
|
@@ -788,6 +866,7 @@ export declare const authoringRequestSchema: z.ZodObject<{
|
|
|
788
866
|
cron: "cron";
|
|
789
867
|
decision: "decision";
|
|
790
868
|
error: "error";
|
|
869
|
+
"http-request": "http-request";
|
|
791
870
|
integration: "integration";
|
|
792
871
|
llm: "llm";
|
|
793
872
|
openapi: "openapi";
|
|
@@ -872,6 +951,7 @@ export declare const authoringRequestSchema: z.ZodObject<{
|
|
|
872
951
|
}, z.core.$strict>, z.ZodObject<{
|
|
873
952
|
op: z.ZodLiteral<"node.refresh">;
|
|
874
953
|
node: z.ZodString;
|
|
954
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
875
955
|
}, z.core.$strict>, z.ZodObject<{
|
|
876
956
|
op: z.ZodLiteral<"node.remove">;
|
|
877
957
|
node: z.ZodString;
|
|
@@ -971,6 +1051,7 @@ export declare const authoringSearchSchema: z.ZodObject<{
|
|
|
971
1051
|
cron: "cron";
|
|
972
1052
|
decision: "decision";
|
|
973
1053
|
error: "error";
|
|
1054
|
+
"http-request": "http-request";
|
|
974
1055
|
integration: "integration";
|
|
975
1056
|
llm: "llm";
|
|
976
1057
|
openapi: "openapi";
|
|
@@ -1001,6 +1082,7 @@ export declare const authoringSchemaQuery: z.ZodObject<{
|
|
|
1001
1082
|
cron: "cron";
|
|
1002
1083
|
decision: "decision";
|
|
1003
1084
|
error: "error";
|
|
1085
|
+
"http-request": "http-request";
|
|
1004
1086
|
integration: "integration";
|
|
1005
1087
|
llm: "llm";
|
|
1006
1088
|
openapi: "openapi";
|
|
@@ -1032,6 +1114,7 @@ export declare function authoringRequestContract(name: string): {
|
|
|
1032
1114
|
cron: "cron";
|
|
1033
1115
|
decision: "decision";
|
|
1034
1116
|
error: "error";
|
|
1117
|
+
"http-request": "http-request";
|
|
1035
1118
|
integration: "integration";
|
|
1036
1119
|
llm: "llm";
|
|
1037
1120
|
openapi: "openapi";
|
|
@@ -1116,6 +1199,7 @@ export declare function authoringRequestContract(name: string): {
|
|
|
1116
1199
|
}, z.core.$strict>, z.ZodObject<{
|
|
1117
1200
|
op: z.ZodLiteral<"node.refresh">;
|
|
1118
1201
|
node: z.ZodString;
|
|
1202
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
1119
1203
|
}, z.core.$strict>, z.ZodObject<{
|
|
1120
1204
|
op: z.ZodLiteral<"node.remove">;
|
|
1121
1205
|
node: z.ZodString;
|
|
@@ -1212,6 +1296,7 @@ export declare function authoringRequestContract(name: string): {
|
|
|
1212
1296
|
cron: "cron";
|
|
1213
1297
|
decision: "decision";
|
|
1214
1298
|
error: "error";
|
|
1299
|
+
"http-request": "http-request";
|
|
1215
1300
|
integration: "integration";
|
|
1216
1301
|
llm: "llm";
|
|
1217
1302
|
openapi: "openapi";
|
|
@@ -1310,7 +1395,7 @@ export declare function authoringRequestContract(name: string): {
|
|
|
1310
1395
|
} | undefined;
|
|
1311
1396
|
export declare function authoringSchema(kind?: AuthoringType): {
|
|
1312
1397
|
type?: undefined;
|
|
1313
|
-
types: readonly ["start", "outputs", "webhook-response", "workflow", "webhook", "cron", "error", "poll", "integration", "code", "connector", "agent", "llm", "decision", "openapi", "condition", "value", "wait", "approval"];
|
|
1398
|
+
types: readonly ["start", "outputs", "webhook-response", "workflow", "webhook", "cron", "error", "poll", "integration", "code", "connector", "agent", "llm", "decision", "openapi", "http-request", "condition", "value", "wait", "approval"];
|
|
1314
1399
|
request: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
1315
1400
|
baseRevision: z.ZodString;
|
|
1316
1401
|
requestId: z.ZodString;
|
|
@@ -1326,6 +1411,7 @@ export declare function authoringSchema(kind?: AuthoringType): {
|
|
|
1326
1411
|
cron: "cron";
|
|
1327
1412
|
decision: "decision";
|
|
1328
1413
|
error: "error";
|
|
1414
|
+
"http-request": "http-request";
|
|
1329
1415
|
integration: "integration";
|
|
1330
1416
|
llm: "llm";
|
|
1331
1417
|
openapi: "openapi";
|
|
@@ -1410,6 +1496,7 @@ export declare function authoringSchema(kind?: AuthoringType): {
|
|
|
1410
1496
|
}, z.core.$strict>, z.ZodObject<{
|
|
1411
1497
|
op: z.ZodLiteral<"node.refresh">;
|
|
1412
1498
|
node: z.ZodString;
|
|
1499
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
1413
1500
|
}, z.core.$strict>, z.ZodObject<{
|
|
1414
1501
|
op: z.ZodLiteral<"node.remove">;
|
|
1415
1502
|
node: z.ZodString;
|
|
@@ -1492,7 +1579,7 @@ export declare function authoringSchema(kind?: AuthoringType): {
|
|
|
1492
1579
|
} | {
|
|
1493
1580
|
types?: undefined;
|
|
1494
1581
|
request?: undefined;
|
|
1495
|
-
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
1582
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "http-request" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
1496
1583
|
onError: boolean | {
|
|
1497
1584
|
enum: string[];
|
|
1498
1585
|
};
|
|
@@ -1506,7 +1593,7 @@ export declare function authoringSchema(kind?: AuthoringType): {
|
|
|
1506
1593
|
example: {
|
|
1507
1594
|
op: string;
|
|
1508
1595
|
as: string;
|
|
1509
|
-
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
1596
|
+
type: "agent" | "approval" | "code" | "condition" | "connector" | "cron" | "decision" | "error" | "http-request" | "integration" | "llm" | "openapi" | "outputs" | "poll" | "start" | "value" | "wait" | "webhook" | "webhook-response" | "workflow";
|
|
1510
1597
|
name: string;
|
|
1511
1598
|
};
|
|
1512
1599
|
configuration: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SourceOperation, SourceReferenceOperation } from './event-source-definition.js';
|
|
2
|
-
import type { JsonValue } from '
|
|
2
|
+
import type { JsonValue } from './flow-change.js';
|
|
3
3
|
export type TriggerOperationRequest = {
|
|
4
4
|
readonly operation: 'sourceReference';
|
|
5
5
|
readonly request: SourceReferenceOperation;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonValue, RevisionContent, TriggerKeySnapshot } from '
|
|
1
|
+
import type { JsonValue, RevisionContent, TriggerKeySnapshot } from './flow-change.js';
|
|
2
2
|
import type { TriggerConfigOption } from './trigger-config-options.js';
|
|
3
3
|
import type { ConnectorConnection, ResultInfo, PollTriggerTestResult } from './control-api.js';
|
|
4
4
|
import type { ProviderAccessIdentity } from './providerAccess.js';
|
|
@@ -23,7 +23,7 @@ function dequal(foo, bar) {
|
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/execution/common/engineContract.ts
|
|
26
|
-
var currentEngineContract = "open-flow-engine/
|
|
26
|
+
var currentEngineContract = "open-flow-engine/v8";
|
|
27
27
|
`${JSON.stringify(currentEngineContract)}`, new Set([
|
|
28
28
|
"assert",
|
|
29
29
|
"assert/strict",
|
|
@@ -49,14 +49,14 @@ var currentEngineContract = "open-flow-engine/v7";
|
|
|
49
49
|
"url",
|
|
50
50
|
"util",
|
|
51
51
|
"zlib"
|
|
52
|
-
].flatMap((name) => [name, `node:${name}`])), `${JSON.stringify("open-flow-engine/
|
|
52
|
+
].flatMap((name) => [name, `node:${name}`])), `${JSON.stringify("open-flow-engine/v8/nodejs-compat-v1")}`;
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region src/
|
|
54
|
+
//#region src/http/common/authBindings.ts
|
|
55
55
|
/** Never allow credentials to enter a Revision as literal node inputs. */
|
|
56
|
-
function
|
|
56
|
+
function assertHttpAuthBindings(document) {
|
|
57
57
|
for (const node of Object.values(document.graph.nodes)) {
|
|
58
|
-
if (node.kind != "task" || !("executor" in node.task) || node.task.executor.kind
|
|
59
|
-
for (const [handle, mapping] of Object.entries(node.inputs)) if (handle.startsWith("auth.") && mapping.kind == "value") throw new TypeError("
|
|
58
|
+
if (node.kind != "task" || !("executor" in node.task) || !["openapi", "http-request"].includes(node.task.executor.kind)) continue;
|
|
59
|
+
for (const [handle, mapping] of Object.entries(node.inputs)) if (handle.startsWith("auth.") && mapping.kind == "value") throw new TypeError("HTTP authentication accepts deployment variables and upstream outputs only.");
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
//#endregion
|
|
@@ -8602,6 +8602,53 @@ function answerSchema(question) {
|
|
|
8602
8602
|
required: Object.keys(properties)
|
|
8603
8603
|
};
|
|
8604
8604
|
}
|
|
8605
|
+
//#endregion
|
|
8606
|
+
//#region src/http/common/httpRequest.ts
|
|
8607
|
+
var parameterSchema = strictObject({
|
|
8608
|
+
mode: _enum(["fields", "object"]).default("fields"),
|
|
8609
|
+
names: array(string$1()).default([])
|
|
8610
|
+
});
|
|
8611
|
+
var httpRequestConfigSchema = strictObject({
|
|
8612
|
+
method: _enum([
|
|
8613
|
+
"GET",
|
|
8614
|
+
"POST",
|
|
8615
|
+
"PUT",
|
|
8616
|
+
"PATCH",
|
|
8617
|
+
"DELETE",
|
|
8618
|
+
"HEAD",
|
|
8619
|
+
"OPTIONS"
|
|
8620
|
+
]).default("GET"),
|
|
8621
|
+
query: parameterSchema.default({
|
|
8622
|
+
mode: "fields",
|
|
8623
|
+
names: []
|
|
8624
|
+
}),
|
|
8625
|
+
headers: parameterSchema.default({
|
|
8626
|
+
mode: "fields",
|
|
8627
|
+
names: []
|
|
8628
|
+
}),
|
|
8629
|
+
bodyFormat: _enum([
|
|
8630
|
+
"none",
|
|
8631
|
+
"json",
|
|
8632
|
+
"text",
|
|
8633
|
+
"form"
|
|
8634
|
+
]).default("none"),
|
|
8635
|
+
authentication: union([
|
|
8636
|
+
strictObject({ type: literal("none") }),
|
|
8637
|
+
strictObject({ type: _enum(["bearer", "basic"]) }),
|
|
8638
|
+
strictObject({
|
|
8639
|
+
type: literal("apiKey"),
|
|
8640
|
+
name: string$1(),
|
|
8641
|
+
in: _enum(["header", "query"])
|
|
8642
|
+
})
|
|
8643
|
+
]).default({ type: "none" }),
|
|
8644
|
+
responseFormat: _enum([
|
|
8645
|
+
"auto",
|
|
8646
|
+
"json",
|
|
8647
|
+
"text"
|
|
8648
|
+
]).default("auto"),
|
|
8649
|
+
statusPolicy: _enum(["success", "all"]).default("success")
|
|
8650
|
+
});
|
|
8651
|
+
var httpRequestExecutorSchema = httpRequestConfigSchema.extend({ kind: literal("http-request") });
|
|
8605
8652
|
function checkJsonDepth(value, depth = 0) {
|
|
8606
8653
|
if (depth > 64) throw new TypeError("Value exceeds the maximum JSON depth.");
|
|
8607
8654
|
if (value != null && typeof value == "object") for (const child of Object.values(value)) checkJsonDepth(child, depth + 1);
|
|
@@ -8731,7 +8778,7 @@ var ports$1 = {
|
|
|
8731
8778
|
inputs: array(union([input, group])),
|
|
8732
8779
|
outputs: array(union([port$1, group]))
|
|
8733
8780
|
};
|
|
8734
|
-
var
|
|
8781
|
+
var connectorCapabilitySchema = union([
|
|
8735
8782
|
strictObject({
|
|
8736
8783
|
kind: literal("connector"),
|
|
8737
8784
|
action: text,
|
|
@@ -8763,6 +8810,15 @@ var capability = union([
|
|
|
8763
8810
|
})).optional()
|
|
8764
8811
|
})
|
|
8765
8812
|
]);
|
|
8813
|
+
var workflowCapabilitySchema = strictObject({
|
|
8814
|
+
kind: literal("workflow"),
|
|
8815
|
+
name: text,
|
|
8816
|
+
flowId: text,
|
|
8817
|
+
revisionId: text,
|
|
8818
|
+
inputs: array(port$1),
|
|
8819
|
+
outputs: array(port$1).nullable()
|
|
8820
|
+
});
|
|
8821
|
+
var capability = union([connectorCapabilitySchema, workflowCapabilitySchema]);
|
|
8766
8822
|
var inline = object({
|
|
8767
8823
|
...ports$1,
|
|
8768
8824
|
name: text,
|
|
@@ -8777,6 +8833,20 @@ var agentValue = union([object({
|
|
|
8777
8833
|
input: text
|
|
8778
8834
|
})]);
|
|
8779
8835
|
var agentInput = union([agentValue, object({ kind: literal("model") })]);
|
|
8836
|
+
var agentToolFields = {
|
|
8837
|
+
id: text,
|
|
8838
|
+
name: text,
|
|
8839
|
+
description: text,
|
|
8840
|
+
approval: boolean(),
|
|
8841
|
+
inputs: array(input.extend({ source: agentInput }))
|
|
8842
|
+
};
|
|
8843
|
+
var connectorAgentToolSchema = object({
|
|
8844
|
+
...agentToolFields,
|
|
8845
|
+
kind: literal("connector").optional(),
|
|
8846
|
+
action: text,
|
|
8847
|
+
connectionId: actionConnection.optional()
|
|
8848
|
+
});
|
|
8849
|
+
var workflowAgentToolSchema = workflowCapabilitySchema.extend(agentToolFields);
|
|
8780
8850
|
var decisionQuestion = discriminatedUnion("type", [
|
|
8781
8851
|
strictObject({
|
|
8782
8852
|
name: text,
|
|
@@ -8845,15 +8915,7 @@ var managedFields = object({
|
|
|
8845
8915
|
model: text,
|
|
8846
8916
|
prompt: text,
|
|
8847
8917
|
maxRounds: number(),
|
|
8848
|
-
tools: array(
|
|
8849
|
-
id: text,
|
|
8850
|
-
name: text,
|
|
8851
|
-
description: text,
|
|
8852
|
-
action: text,
|
|
8853
|
-
connectionId: actionConnection.optional(),
|
|
8854
|
-
approval: boolean(),
|
|
8855
|
-
inputs: array(input.extend({ source: agentInput }))
|
|
8856
|
-
})),
|
|
8918
|
+
tools: array(union([workflowAgentToolSchema, connectorAgentToolSchema])),
|
|
8857
8919
|
notification: object({
|
|
8858
8920
|
action: text,
|
|
8859
8921
|
connectionId: actionConnection.optional(),
|
|
@@ -8866,7 +8928,8 @@ var managedFields = object({
|
|
|
8866
8928
|
kind: literal("workflow"),
|
|
8867
8929
|
flowId: text,
|
|
8868
8930
|
revisionId: text
|
|
8869
|
-
})
|
|
8931
|
+
}),
|
|
8932
|
+
httpRequestExecutorSchema
|
|
8870
8933
|
])
|
|
8871
8934
|
});
|
|
8872
8935
|
var managed = managedFields.transform(limitDecisionTask);
|
|
@@ -9134,7 +9197,8 @@ var revision = object({
|
|
|
9134
9197
|
literal(7),
|
|
9135
9198
|
literal(8),
|
|
9136
9199
|
literal(9),
|
|
9137
|
-
literal(10)
|
|
9200
|
+
literal(10),
|
|
9201
|
+
literal(11)
|
|
9138
9202
|
]),
|
|
9139
9203
|
document,
|
|
9140
9204
|
modules: record$3(text, module)
|
|
@@ -9165,7 +9229,7 @@ function decodeRevisionContent(value) {
|
|
|
9165
9229
|
checkJsonDepth(value);
|
|
9166
9230
|
const content = revision.parse(value);
|
|
9167
9231
|
checkModelVersion(content);
|
|
9168
|
-
|
|
9232
|
+
assertHttpAuthBindings(content.document);
|
|
9169
9233
|
return content;
|
|
9170
9234
|
}
|
|
9171
9235
|
var shapes = {
|
|
@@ -9335,6 +9399,8 @@ array(union([...new Map(Object.entries(shapes).map(([kind, shape]) => [kind, sha
|
|
|
9335
9399
|
...shape
|
|
9336
9400
|
})])).values()])).min(1);
|
|
9337
9401
|
function checkModelVersion(content) {
|
|
9402
|
+
if (content.modelVersion < 11 && Object.values(content.document.graph.nodes).some((candidateNode) => candidateNode.kind == "task" && "executor" in candidateNode.task && candidateNode.task.executor.kind == "http-request")) throw new TypeError("HTTP Request requires Flow model version 11.");
|
|
9403
|
+
if (content.modelVersion < 11 && Object.values(content.document.graph.nodes).some((candidateNode) => candidateNode.kind == "task" && ("moduleId" in candidateNode.task ? candidateNode.task.capabilities?.some((item) => item.kind == "workflow") : candidateNode.task.executor.kind == "agent" && candidateNode.task.executor.tools.some((item) => item.kind == "workflow")))) throw new TypeError("Workflow tools require Flow model version 11.");
|
|
9338
9404
|
if (content.modelVersion < 10 && Object.values(content.document.graph.nodes).some((candidateNode) => candidateNode.kind == "webhook" && (candidateNode.options?.responseBody != null || candidateNode.options?.responseStatusCodeOutput != null || candidateNode.options?.responseHeadersSource != null || candidateNode.options?.responseHeaderOutputs != null))) throw new TypeError("Dynamic Webhook responses require Flow model version 10.");
|
|
9339
9405
|
if (content.modelVersion < 9 && Object.values(content.document.graph.nodes).some((candidateNode) => "retry" in candidateNode && candidateNode.retry != null)) throw new TypeError("Node retries require Flow model version 9.");
|
|
9340
9406
|
if (content.modelVersion < 9 && Object.values(content.document.graph.nodes).some((candidateNode) => {
|
|
@@ -9358,10 +9424,10 @@ function upgradeRevisionContent(content) {
|
|
|
9358
9424
|
function upgradeDecodedRevisionContent(content) {
|
|
9359
9425
|
const graph = content.document.graph;
|
|
9360
9426
|
const hasManual = Object.values(graph.nodes).some((node) => node.kind == "manual");
|
|
9361
|
-
if (!hasManual && content.modelVersion ==
|
|
9427
|
+
if (!hasManual && content.modelVersion == 11) return content;
|
|
9362
9428
|
return {
|
|
9363
9429
|
...content,
|
|
9364
|
-
modelVersion:
|
|
9430
|
+
modelVersion: 11,
|
|
9365
9431
|
document: {
|
|
9366
9432
|
...content.document,
|
|
9367
9433
|
graph: hasManual ? {
|
|
@@ -9463,6 +9529,7 @@ var type = _enum([
|
|
|
9463
9529
|
"llm",
|
|
9464
9530
|
"decision",
|
|
9465
9531
|
"openapi",
|
|
9532
|
+
"http-request",
|
|
9466
9533
|
"condition",
|
|
9467
9534
|
"value",
|
|
9468
9535
|
"wait",
|
|
@@ -9514,10 +9581,21 @@ var operand = union([
|
|
|
9514
9581
|
system,
|
|
9515
9582
|
variable$1
|
|
9516
9583
|
]);
|
|
9517
|
-
var
|
|
9584
|
+
var toolSources = record$3(id$1, agentToolFields.inputs.element.shape.source).optional().describe("Tool input sources by name. The platform resolves types from the selected Action or workflow. New inputs default to model-provided; omitted existing sources are preserved.");
|
|
9585
|
+
var agentTool = union([workflowAgentToolSchema.omit({
|
|
9586
|
+
id: true,
|
|
9587
|
+
inputs: true,
|
|
9588
|
+
outputs: true,
|
|
9589
|
+
revisionId: true
|
|
9590
|
+
}).extend({ inputs: toolSources }).strict(), connectorAgentToolSchema.omit({
|
|
9518
9591
|
id: true,
|
|
9519
9592
|
inputs: true
|
|
9520
|
-
}).extend({ inputs:
|
|
9593
|
+
}).extend({ inputs: toolSources }).strict()]);
|
|
9594
|
+
var authoringCapabilities = array(union([connectorCapabilitySchema, strictObject({
|
|
9595
|
+
kind: literal("workflow"),
|
|
9596
|
+
name: id$1,
|
|
9597
|
+
flowId: id$1
|
|
9598
|
+
})]));
|
|
9521
9599
|
var notification = strictObject({
|
|
9522
9600
|
...authoringDefinitionSchemas.connector.shape,
|
|
9523
9601
|
messageHandle: id$1,
|
|
@@ -9573,10 +9651,11 @@ var authoringConfigurations = {
|
|
|
9573
9651
|
"code": strictObject({
|
|
9574
9652
|
inputs: inputFields,
|
|
9575
9653
|
outputs: outputFields,
|
|
9576
|
-
capabilities:
|
|
9654
|
+
capabilities: authoringCapabilities.optional()
|
|
9577
9655
|
}),
|
|
9578
9656
|
"connector": authoringDefinitionSchemas.connector.omit({ outputMode: true }).strict(),
|
|
9579
9657
|
"openapi": authoringOpenApiSchema,
|
|
9658
|
+
"http-request": httpRequestConfigSchema,
|
|
9580
9659
|
"agent": authoringDefinitionSchemas.agent.omit({
|
|
9581
9660
|
prompt: true,
|
|
9582
9661
|
tools: true
|
|
@@ -9637,7 +9716,8 @@ var authoringEditSchema = discriminatedUnion("op", [
|
|
|
9637
9716
|
}),
|
|
9638
9717
|
strictObject({
|
|
9639
9718
|
op: literal("node.refresh"),
|
|
9640
|
-
node: referenceSchema
|
|
9719
|
+
node: referenceSchema,
|
|
9720
|
+
tool: id$1.optional().describe("Name of a workflow tool on an Agent or Code node. Omit for a Call Workflow node.")
|
|
9641
9721
|
}),
|
|
9642
9722
|
strictObject({
|
|
9643
9723
|
op: literal("node.remove"),
|
|
@@ -10890,10 +10970,17 @@ var result = object({
|
|
|
10890
10970
|
resultId: string$1().min(1),
|
|
10891
10971
|
callId: string$1().min(1),
|
|
10892
10972
|
toolId: string$1().min(1),
|
|
10893
|
-
source: discriminatedUnion("kind", [
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10973
|
+
source: discriminatedUnion("kind", [
|
|
10974
|
+
object({
|
|
10975
|
+
kind: literal("connector"),
|
|
10976
|
+
action: string$1().min(1)
|
|
10977
|
+
}),
|
|
10978
|
+
object({ kind: literal("code") }),
|
|
10979
|
+
object({
|
|
10980
|
+
kind: literal("workflow"),
|
|
10981
|
+
flowId: string$1().min(1)
|
|
10982
|
+
})
|
|
10983
|
+
]),
|
|
10897
10984
|
bytes: number().int().nonnegative(),
|
|
10898
10985
|
digest: string$1().regex(/^[a-f0-9]{64}$/),
|
|
10899
10986
|
createdAt: string$1().datetime()
|
|
@@ -11310,7 +11397,8 @@ function workflowIdentity(value) {
|
|
|
11310
11397
|
flowId: string(ref.flowId),
|
|
11311
11398
|
runId: string(ref.runId),
|
|
11312
11399
|
nodeId: string(ref.nodeId),
|
|
11313
|
-
executionId: string(ref.executionId)
|
|
11400
|
+
executionId: string(ref.executionId),
|
|
11401
|
+
...ref.callId == null ? {} : { callId: string(ref.callId) }
|
|
11314
11402
|
};
|
|
11315
11403
|
}
|
|
11316
11404
|
function runInitiator(value) {
|
|
@@ -11629,7 +11717,7 @@ function decodeRunEvent(value) {
|
|
|
11629
11717
|
switch (kind) {
|
|
11630
11718
|
case "node.started": {
|
|
11631
11719
|
const nodeKind = payload.nodeKind;
|
|
11632
|
-
if (nodeKind !== void 0 && nodeKind !== "approval" && nodeKind !== "condition" && nodeKind !== "connector" && nodeKind !== "javascript" && nodeKind !== "decision" && nodeKind !== "openapi" && nodeKind !== "llm" && nodeKind !== "agent" && nodeKind !== "value" && nodeKind !== "outputs" && nodeKind !== "webhook-response" && nodeKind !== "workflow" && nodeKind !== "wait") return invalidResponse();
|
|
11720
|
+
if (nodeKind !== void 0 && nodeKind !== "approval" && nodeKind !== "condition" && nodeKind !== "connector" && nodeKind !== "javascript" && nodeKind !== "decision" && nodeKind !== "openapi" && nodeKind !== "http-request" && nodeKind !== "llm" && nodeKind !== "agent" && nodeKind !== "value" && nodeKind !== "outputs" && nodeKind !== "webhook-response" && nodeKind !== "workflow" && nodeKind !== "wait") return invalidResponse();
|
|
11633
11721
|
return {
|
|
11634
11722
|
...base,
|
|
11635
11723
|
kind,
|