@oomol-lab/open-flow 0.1.0-beta.72 → 0.1.0-beta.74
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 +40 -0
- package/dist/browser/{createResourceDialog-BWJkjiOO.js → createResourceDialog-DI9pL-Yr.js} +2 -2
- package/dist/browser/{dialog-CUy_fwx9.js → dialog-BYJGvItc.js} +54 -19
- package/dist/browser/{flowChanges-CgSnSqqP.js → flowChanges-RL-H4CjD.js} +306 -48
- package/dist/browser/{flowWorkspace-Bf7H-r0t.js → flowWorkspace-BkDsETj0.js} +20745 -20186
- package/dist/browser/preview.css +73 -3
- package/dist/browser/preview.js +21410 -20607
- package/dist/browser/{typeScriptSession-B0hC-C8y.js → typeScriptSession-CSRwWmZm.js} +1 -1
- package/dist/browser/ui.css +72 -2
- package/dist/browser/workbench.css +73 -3
- package/dist/browser/workbench.js +14 -76
- package/dist/browser/{workbenchSelect-C3e4J93X.js → workbenchSelect-BcWPWGzw.js} +1 -1
- package/dist/command/index.js +34 -34
- package/dist/common/authoring.d.ts +1 -1
- package/dist/common/authoringFields.d.ts +1 -1
- package/dist/common/authoringSchema.d.ts +28 -4
- 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 +61 -24
- package/dist/common/control-api.d.ts +4 -3
- package/dist/common/control-api.js +90 -42
- package/dist/common/control-requests.d.ts +2 -1
- package/dist/common/control-requests.js +204 -42
- 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 +3 -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 +75 -23
- 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 +77 -25
- package/dist/common/flow-connectionUsage.d.ts +1 -1
- package/dist/common/flow-encoding.d.ts +1 -1
- package/dist/common/flow-encoding.js +34 -16
- package/dist/common/flow-errorHandling.d.ts +1 -1
- package/dist/common/flow-graph.d.ts +1 -1
- 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 +1 -1
- package/dist/common/flow-semantics.d.ts +1 -1
- package/dist/common/flow-semantics.js +151 -32
- package/dist/common/flow-workflowFile.d.ts +1 -1
- package/dist/common/flowInspection.d.ts +3 -3
- 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 +2 -1
- package/dist/common/mcp.js +59 -22
- package/dist/common/openapi.d.ts +1 -1
- package/dist/common/poll-trigger.d.ts +1 -1
- package/dist/common/run-results.d.ts +8 -1
- package/dist/common/runtime-contract.d.ts +8 -2
- package/dist/common/runtime-contract.js +22 -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 +2 -2
- package/dist/common/scheduler.js +31 -12
- 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 -1
- package/dist/common/webhook-trigger.d.ts +1 -1
- 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 +7 -6
- 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 +1505 -0
- package/src/control/common/authoring.ts +912 -0
- package/src/control/common/authoringCondition.ts +110 -0
- package/src/control/common/authoringDiagnosticFields.ts +136 -0
- package/src/control/common/authoringExamples.ts +192 -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 +404 -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 +80 -0
- package/src/execution/common/events.ts +328 -0
- package/src/execution/common/node-execution.ts +467 -0
- package/src/execution/common/runLifecycle.ts +250 -0
- package/src/execution/common/runtime.ts +563 -0
- package/src/execution/common/scheduler.ts +696 -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 +1036 -0
- package/src/flow/common/changeSchema.ts +783 -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 +892 -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 +474 -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 +75 -0
- package/src/flow/common/workflowFile.ts +97 -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/authBindings.ts +12 -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 +412 -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';
|
|
@@ -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]: {
|
|
@@ -187,7 +187,7 @@ export declare const authoringConfigurations: {
|
|
|
187
187
|
nullable: z.ZodOptional<z.ZodBoolean>;
|
|
188
188
|
description: z.ZodOptional<z.ZodString>;
|
|
189
189
|
}, z.core.$strict>>;
|
|
190
|
-
capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
190
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
191
191
|
kind: z.ZodLiteral<"connector">;
|
|
192
192
|
action: z.ZodString;
|
|
193
193
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -213,6 +213,10 @@ export declare const authoringConfigurations: {
|
|
|
213
213
|
connectionId: z.ZodString;
|
|
214
214
|
alias: z.ZodOptional<z.ZodString>;
|
|
215
215
|
}, z.core.$strict>>>;
|
|
216
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
217
|
+
kind: z.ZodLiteral<"workflow">;
|
|
218
|
+
name: z.ZodString;
|
|
219
|
+
flowId: z.ZodString;
|
|
216
220
|
}, z.core.$strict>]>>>;
|
|
217
221
|
}, z.core.$strict>;
|
|
218
222
|
connector: z.ZodObject<{
|
|
@@ -251,12 +255,28 @@ export declare const authoringConfigurations: {
|
|
|
251
255
|
default: z.ZodOptional<z.ZodJSONSchema>;
|
|
252
256
|
}, z.core.$strict>>;
|
|
253
257
|
resultSchema: z.ZodJSONSchema;
|
|
254
|
-
tools: z.ZodArray<z.ZodObject<{
|
|
258
|
+
tools: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
259
|
+
kind: z.ZodLiteral<"workflow">;
|
|
260
|
+
flowId: z.ZodString;
|
|
261
|
+
name: z.ZodString;
|
|
262
|
+
description: z.ZodString;
|
|
263
|
+
approval: z.ZodBoolean;
|
|
264
|
+
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
265
|
+
kind: z.ZodLiteral<"value">;
|
|
266
|
+
value: z.ZodJSONSchema;
|
|
267
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
268
|
+
kind: z.ZodLiteral<"input">;
|
|
269
|
+
input: z.ZodString;
|
|
270
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
271
|
+
kind: z.ZodLiteral<"model">;
|
|
272
|
+
}, z.core.$strip>]>>>;
|
|
273
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
255
274
|
name: z.ZodString;
|
|
256
275
|
description: z.ZodString;
|
|
276
|
+
approval: z.ZodBoolean;
|
|
277
|
+
kind: z.ZodOptional<z.ZodLiteral<"connector">>;
|
|
257
278
|
action: z.ZodString;
|
|
258
279
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
259
|
-
approval: z.ZodBoolean;
|
|
260
280
|
inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
261
281
|
kind: z.ZodLiteral<"value">;
|
|
262
282
|
value: z.ZodJSONSchema;
|
|
@@ -266,7 +286,7 @@ export declare const authoringConfigurations: {
|
|
|
266
286
|
}, z.core.$strip>]>, z.ZodObject<{
|
|
267
287
|
kind: z.ZodLiteral<"model">;
|
|
268
288
|
}, z.core.$strip>]>>>;
|
|
269
|
-
}, z.core.$strict>>;
|
|
289
|
+
}, z.core.$strict>]>>;
|
|
270
290
|
notification: z.ZodOptional<z.ZodObject<{
|
|
271
291
|
action: z.ZodString;
|
|
272
292
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -703,6 +723,7 @@ export declare const authoringEditSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
703
723
|
}, z.core.$strict>, z.ZodObject<{
|
|
704
724
|
op: z.ZodLiteral<"node.refresh">;
|
|
705
725
|
node: z.ZodString;
|
|
726
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
706
727
|
}, z.core.$strict>, z.ZodObject<{
|
|
707
728
|
op: z.ZodLiteral<"node.remove">;
|
|
708
729
|
node: z.ZodString;
|
|
@@ -872,6 +893,7 @@ export declare const authoringRequestSchema: z.ZodObject<{
|
|
|
872
893
|
}, z.core.$strict>, z.ZodObject<{
|
|
873
894
|
op: z.ZodLiteral<"node.refresh">;
|
|
874
895
|
node: z.ZodString;
|
|
896
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
875
897
|
}, z.core.$strict>, z.ZodObject<{
|
|
876
898
|
op: z.ZodLiteral<"node.remove">;
|
|
877
899
|
node: z.ZodString;
|
|
@@ -1116,6 +1138,7 @@ export declare function authoringRequestContract(name: string): {
|
|
|
1116
1138
|
}, z.core.$strict>, z.ZodObject<{
|
|
1117
1139
|
op: z.ZodLiteral<"node.refresh">;
|
|
1118
1140
|
node: z.ZodString;
|
|
1141
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
1119
1142
|
}, z.core.$strict>, z.ZodObject<{
|
|
1120
1143
|
op: z.ZodLiteral<"node.remove">;
|
|
1121
1144
|
node: z.ZodString;
|
|
@@ -1410,6 +1433,7 @@ export declare function authoringSchema(kind?: AuthoringType): {
|
|
|
1410
1433
|
}, z.core.$strict>, z.ZodObject<{
|
|
1411
1434
|
op: z.ZodLiteral<"node.refresh">;
|
|
1412
1435
|
node: z.ZodString;
|
|
1436
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
1413
1437
|
}, z.core.$strict>, z.ZodObject<{
|
|
1414
1438
|
op: z.ZodLiteral<"node.remove">;
|
|
1415
1439
|
node: z.ZodString;
|
|
@@ -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,7 +49,7 @@ 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
54
|
//#region src/openapi/common/authBindings.ts
|
|
55
55
|
/** Never allow credentials to enter a Revision as literal node inputs. */
|
|
@@ -8731,7 +8731,7 @@ var ports$1 = {
|
|
|
8731
8731
|
inputs: array(union([input, group])),
|
|
8732
8732
|
outputs: array(union([port$1, group]))
|
|
8733
8733
|
};
|
|
8734
|
-
var
|
|
8734
|
+
var connectorCapabilitySchema = union([
|
|
8735
8735
|
strictObject({
|
|
8736
8736
|
kind: literal("connector"),
|
|
8737
8737
|
action: text,
|
|
@@ -8763,6 +8763,15 @@ var capability = union([
|
|
|
8763
8763
|
})).optional()
|
|
8764
8764
|
})
|
|
8765
8765
|
]);
|
|
8766
|
+
var workflowCapabilitySchema = strictObject({
|
|
8767
|
+
kind: literal("workflow"),
|
|
8768
|
+
name: text,
|
|
8769
|
+
flowId: text,
|
|
8770
|
+
revisionId: text,
|
|
8771
|
+
inputs: array(port$1),
|
|
8772
|
+
outputs: array(port$1).nullable()
|
|
8773
|
+
});
|
|
8774
|
+
var capability = union([connectorCapabilitySchema, workflowCapabilitySchema]);
|
|
8766
8775
|
var inline = object({
|
|
8767
8776
|
...ports$1,
|
|
8768
8777
|
name: text,
|
|
@@ -8777,6 +8786,20 @@ var agentValue = union([object({
|
|
|
8777
8786
|
input: text
|
|
8778
8787
|
})]);
|
|
8779
8788
|
var agentInput = union([agentValue, object({ kind: literal("model") })]);
|
|
8789
|
+
var agentToolFields = {
|
|
8790
|
+
id: text,
|
|
8791
|
+
name: text,
|
|
8792
|
+
description: text,
|
|
8793
|
+
approval: boolean(),
|
|
8794
|
+
inputs: array(input.extend({ source: agentInput }))
|
|
8795
|
+
};
|
|
8796
|
+
var connectorAgentToolSchema = object({
|
|
8797
|
+
...agentToolFields,
|
|
8798
|
+
kind: literal("connector").optional(),
|
|
8799
|
+
action: text,
|
|
8800
|
+
connectionId: actionConnection.optional()
|
|
8801
|
+
});
|
|
8802
|
+
var workflowAgentToolSchema = workflowCapabilitySchema.extend(agentToolFields);
|
|
8780
8803
|
var decisionQuestion = discriminatedUnion("type", [
|
|
8781
8804
|
strictObject({
|
|
8782
8805
|
name: text,
|
|
@@ -8845,15 +8868,7 @@ var managedFields = object({
|
|
|
8845
8868
|
model: text,
|
|
8846
8869
|
prompt: text,
|
|
8847
8870
|
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
|
-
})),
|
|
8871
|
+
tools: array(union([workflowAgentToolSchema, connectorAgentToolSchema])),
|
|
8857
8872
|
notification: object({
|
|
8858
8873
|
action: text,
|
|
8859
8874
|
connectionId: actionConnection.optional(),
|
|
@@ -9134,7 +9149,8 @@ var revision = object({
|
|
|
9134
9149
|
literal(7),
|
|
9135
9150
|
literal(8),
|
|
9136
9151
|
literal(9),
|
|
9137
|
-
literal(10)
|
|
9152
|
+
literal(10),
|
|
9153
|
+
literal(11)
|
|
9138
9154
|
]),
|
|
9139
9155
|
document,
|
|
9140
9156
|
modules: record$3(text, module)
|
|
@@ -9335,6 +9351,7 @@ array(union([...new Map(Object.entries(shapes).map(([kind, shape]) => [kind, sha
|
|
|
9335
9351
|
...shape
|
|
9336
9352
|
})])).values()])).min(1);
|
|
9337
9353
|
function checkModelVersion(content) {
|
|
9354
|
+
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
9355
|
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
9356
|
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
9357
|
if (content.modelVersion < 9 && Object.values(content.document.graph.nodes).some((candidateNode) => {
|
|
@@ -9358,10 +9375,10 @@ function upgradeRevisionContent(content) {
|
|
|
9358
9375
|
function upgradeDecodedRevisionContent(content) {
|
|
9359
9376
|
const graph = content.document.graph;
|
|
9360
9377
|
const hasManual = Object.values(graph.nodes).some((node) => node.kind == "manual");
|
|
9361
|
-
if (!hasManual && content.modelVersion ==
|
|
9378
|
+
if (!hasManual && content.modelVersion == 11) return content;
|
|
9362
9379
|
return {
|
|
9363
9380
|
...content,
|
|
9364
|
-
modelVersion:
|
|
9381
|
+
modelVersion: 11,
|
|
9365
9382
|
document: {
|
|
9366
9383
|
...content.document,
|
|
9367
9384
|
graph: hasManual ? {
|
|
@@ -9514,10 +9531,21 @@ var operand = union([
|
|
|
9514
9531
|
system,
|
|
9515
9532
|
variable$1
|
|
9516
9533
|
]);
|
|
9517
|
-
var
|
|
9534
|
+
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.");
|
|
9535
|
+
var agentTool = union([workflowAgentToolSchema.omit({
|
|
9536
|
+
id: true,
|
|
9537
|
+
inputs: true,
|
|
9538
|
+
outputs: true,
|
|
9539
|
+
revisionId: true
|
|
9540
|
+
}).extend({ inputs: toolSources }).strict(), connectorAgentToolSchema.omit({
|
|
9518
9541
|
id: true,
|
|
9519
9542
|
inputs: true
|
|
9520
|
-
}).extend({ inputs:
|
|
9543
|
+
}).extend({ inputs: toolSources }).strict()]);
|
|
9544
|
+
var authoringCapabilities = array(union([connectorCapabilitySchema, strictObject({
|
|
9545
|
+
kind: literal("workflow"),
|
|
9546
|
+
name: id$1,
|
|
9547
|
+
flowId: id$1
|
|
9548
|
+
})]));
|
|
9521
9549
|
var notification = strictObject({
|
|
9522
9550
|
...authoringDefinitionSchemas.connector.shape,
|
|
9523
9551
|
messageHandle: id$1,
|
|
@@ -9573,7 +9601,7 @@ var authoringConfigurations = {
|
|
|
9573
9601
|
"code": strictObject({
|
|
9574
9602
|
inputs: inputFields,
|
|
9575
9603
|
outputs: outputFields,
|
|
9576
|
-
capabilities:
|
|
9604
|
+
capabilities: authoringCapabilities.optional()
|
|
9577
9605
|
}),
|
|
9578
9606
|
"connector": authoringDefinitionSchemas.connector.omit({ outputMode: true }).strict(),
|
|
9579
9607
|
"openapi": authoringOpenApiSchema,
|
|
@@ -9637,7 +9665,8 @@ var authoringEditSchema = discriminatedUnion("op", [
|
|
|
9637
9665
|
}),
|
|
9638
9666
|
strictObject({
|
|
9639
9667
|
op: literal("node.refresh"),
|
|
9640
|
-
node: referenceSchema
|
|
9668
|
+
node: referenceSchema,
|
|
9669
|
+
tool: id$1.optional().describe("Name of a workflow tool on an Agent or Code node. Omit for a Call Workflow node.")
|
|
9641
9670
|
}),
|
|
9642
9671
|
strictObject({
|
|
9643
9672
|
op: literal("node.remove"),
|
|
@@ -10890,10 +10919,17 @@ var result = object({
|
|
|
10890
10919
|
resultId: string$1().min(1),
|
|
10891
10920
|
callId: string$1().min(1),
|
|
10892
10921
|
toolId: string$1().min(1),
|
|
10893
|
-
source: discriminatedUnion("kind", [
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10922
|
+
source: discriminatedUnion("kind", [
|
|
10923
|
+
object({
|
|
10924
|
+
kind: literal("connector"),
|
|
10925
|
+
action: string$1().min(1)
|
|
10926
|
+
}),
|
|
10927
|
+
object({ kind: literal("code") }),
|
|
10928
|
+
object({
|
|
10929
|
+
kind: literal("workflow"),
|
|
10930
|
+
flowId: string$1().min(1)
|
|
10931
|
+
})
|
|
10932
|
+
]),
|
|
10897
10933
|
bytes: number().int().nonnegative(),
|
|
10898
10934
|
digest: string$1().regex(/^[a-f0-9]{64}$/),
|
|
10899
10935
|
createdAt: string$1().datetime()
|
|
@@ -11310,7 +11346,8 @@ function workflowIdentity(value) {
|
|
|
11310
11346
|
flowId: string(ref.flowId),
|
|
11311
11347
|
runId: string(ref.runId),
|
|
11312
11348
|
nodeId: string(ref.nodeId),
|
|
11313
|
-
executionId: string(ref.executionId)
|
|
11349
|
+
executionId: string(ref.executionId),
|
|
11350
|
+
...ref.callId == null ? {} : { callId: string(ref.callId) }
|
|
11314
11351
|
};
|
|
11315
11352
|
}
|
|
11316
11353
|
function runInitiator(value) {
|
|
@@ -14,7 +14,7 @@ export { parseProviderAccessSource, providerAccessBindingId, type ProviderAccess
|
|
|
14
14
|
import type { DraftOperation } from './draftOperations.js';
|
|
15
15
|
export { inspectFlowDraft, flowInspection, actionSummary, nodeDetails } from './flowInspection.js';
|
|
16
16
|
export type { DraftOperation } from './draftOperations.js';
|
|
17
|
-
import type { SchemaMismatch } from '
|
|
17
|
+
import type { SchemaMismatch } from './flow-change.js';
|
|
18
18
|
import type { CreateEventSource, UpdateEventSource, EventSource } from './event-sources.js';
|
|
19
19
|
export { decodeEventSource, decodeEventSources, type CreateEventSource, type UpdateEventSource, type EventSource } from './event-sources.js';
|
|
20
20
|
import type { TriggerCatalogCache } from './trigger-catalog.js';
|
|
@@ -27,9 +27,9 @@ export { readResult, parseResultQuery, decodeResultList, decodeResultRead, type
|
|
|
27
27
|
import type { RunStatus } from './run-lifecycle.js';
|
|
28
28
|
import type { WorkflowFile } from './flow-workflowFile.js';
|
|
29
29
|
export type { WorkflowFile, WorkflowCleanupSummary } from './flow-workflowFile.js';
|
|
30
|
-
import type { InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot, WaitAction } from '
|
|
30
|
+
import type { InputPortDefinition, JsonValue, PortDefinition, RevisionContent, TriggerKeySnapshot, WaitAction } from './flow-change.js';
|
|
31
31
|
import type { FlowResourceReferences } from './flow-semantics.js';
|
|
32
|
-
export type { JsonValue, TriggerKeySnapshot, WaitAction } from '
|
|
32
|
+
export type { JsonValue, TriggerKeySnapshot, WaitAction } from './flow-change.js';
|
|
33
33
|
export type { RunStatus } from './run-lifecycle.js';
|
|
34
34
|
export { ApiError, controlErrorCode, controlErrorMetadata, type ControlErrorCode } from './control-api-errors.js';
|
|
35
35
|
export type { FlowCatalogEvent, FlowChangeEvent } from './flow-notifications.js';
|
|
@@ -419,6 +419,7 @@ export type ErrorDispatch = {
|
|
|
419
419
|
readonly message: string;
|
|
420
420
|
};
|
|
421
421
|
export interface WorkflowCaller {
|
|
422
|
+
readonly callId?: string;
|
|
422
423
|
readonly flowId: string;
|
|
423
424
|
readonly runId: string;
|
|
424
425
|
readonly nodeId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/execution/common/engineContract.ts
|
|
2
|
-
var currentEngineContract = "open-flow-engine/
|
|
2
|
+
var currentEngineContract = "open-flow-engine/v8";
|
|
3
3
|
`${JSON.stringify(currentEngineContract)}`, new Set([
|
|
4
4
|
"assert",
|
|
5
5
|
"assert/strict",
|
|
@@ -25,7 +25,7 @@ var currentEngineContract = "open-flow-engine/v7";
|
|
|
25
25
|
"url",
|
|
26
26
|
"util",
|
|
27
27
|
"zlib"
|
|
28
|
-
].flatMap((name) => [name, `node:${name}`])), `${JSON.stringify("open-flow-engine/
|
|
28
|
+
].flatMap((name) => [name, `node:${name}`])), `${JSON.stringify("open-flow-engine/v8/nodejs-compat-v1")}`;
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region ../../node_modules/.bun/dequal@2.0.3/node_modules/dequal/lite/index.mjs
|
|
31
31
|
var has = Object.prototype.hasOwnProperty;
|
|
@@ -8788,7 +8788,7 @@ var ports$1 = {
|
|
|
8788
8788
|
inputs: array(union([input, group])),
|
|
8789
8789
|
outputs: array(union([port$1, group]))
|
|
8790
8790
|
};
|
|
8791
|
-
var
|
|
8791
|
+
var connectorCapabilitySchema = union([
|
|
8792
8792
|
strictObject({
|
|
8793
8793
|
kind: literal("connector"),
|
|
8794
8794
|
action: text,
|
|
@@ -8820,6 +8820,15 @@ var capability = union([
|
|
|
8820
8820
|
})).optional()
|
|
8821
8821
|
})
|
|
8822
8822
|
]);
|
|
8823
|
+
var workflowCapabilitySchema = strictObject({
|
|
8824
|
+
kind: literal("workflow"),
|
|
8825
|
+
name: text,
|
|
8826
|
+
flowId: text,
|
|
8827
|
+
revisionId: text,
|
|
8828
|
+
inputs: array(port$1),
|
|
8829
|
+
outputs: array(port$1).nullable()
|
|
8830
|
+
});
|
|
8831
|
+
var capability = union([connectorCapabilitySchema, workflowCapabilitySchema]);
|
|
8823
8832
|
var inline = object({
|
|
8824
8833
|
...ports$1,
|
|
8825
8834
|
name: text,
|
|
@@ -8834,6 +8843,20 @@ var agentValue = union([object({
|
|
|
8834
8843
|
input: text
|
|
8835
8844
|
})]);
|
|
8836
8845
|
var agentInput = union([agentValue, object({ kind: literal("model") })]);
|
|
8846
|
+
var agentToolFields = {
|
|
8847
|
+
id: text,
|
|
8848
|
+
name: text,
|
|
8849
|
+
description: text,
|
|
8850
|
+
approval: boolean(),
|
|
8851
|
+
inputs: array(input.extend({ source: agentInput }))
|
|
8852
|
+
};
|
|
8853
|
+
var connectorAgentToolSchema = object({
|
|
8854
|
+
...agentToolFields,
|
|
8855
|
+
kind: literal("connector").optional(),
|
|
8856
|
+
action: text,
|
|
8857
|
+
connectionId: actionConnection.optional()
|
|
8858
|
+
});
|
|
8859
|
+
var workflowAgentToolSchema = workflowCapabilitySchema.extend(agentToolFields);
|
|
8837
8860
|
var decisionQuestion = discriminatedUnion("type", [
|
|
8838
8861
|
strictObject({
|
|
8839
8862
|
name: text,
|
|
@@ -8902,15 +8925,7 @@ var managedFields = object({
|
|
|
8902
8925
|
model: text,
|
|
8903
8926
|
prompt: text,
|
|
8904
8927
|
maxRounds: number(),
|
|
8905
|
-
tools: array(
|
|
8906
|
-
id: text,
|
|
8907
|
-
name: text,
|
|
8908
|
-
description: text,
|
|
8909
|
-
action: text,
|
|
8910
|
-
connectionId: actionConnection.optional(),
|
|
8911
|
-
approval: boolean(),
|
|
8912
|
-
inputs: array(input.extend({ source: agentInput }))
|
|
8913
|
-
})),
|
|
8928
|
+
tools: array(union([workflowAgentToolSchema, connectorAgentToolSchema])),
|
|
8914
8929
|
notification: object({
|
|
8915
8930
|
action: text,
|
|
8916
8931
|
connectionId: actionConnection.optional(),
|
|
@@ -9191,7 +9206,8 @@ var revision = object({
|
|
|
9191
9206
|
literal(7),
|
|
9192
9207
|
literal(8),
|
|
9193
9208
|
literal(9),
|
|
9194
|
-
literal(10)
|
|
9209
|
+
literal(10),
|
|
9210
|
+
literal(11)
|
|
9195
9211
|
]),
|
|
9196
9212
|
document,
|
|
9197
9213
|
modules: record$2(text, module)
|
|
@@ -9392,6 +9408,7 @@ array(union([...new Map(Object.entries(shapes).map(([kind, shape]) => [kind, sha
|
|
|
9392
9408
|
...shape
|
|
9393
9409
|
})])).values()])).min(1);
|
|
9394
9410
|
function checkModelVersion(content) {
|
|
9411
|
+
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.");
|
|
9395
9412
|
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.");
|
|
9396
9413
|
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.");
|
|
9397
9414
|
if (content.modelVersion < 9 && Object.values(content.document.graph.nodes).some((candidateNode) => {
|
|
@@ -9504,10 +9521,21 @@ var operand = union([
|
|
|
9504
9521
|
system,
|
|
9505
9522
|
variable$1
|
|
9506
9523
|
]);
|
|
9507
|
-
var
|
|
9524
|
+
var toolSources = record$2(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.");
|
|
9525
|
+
var agentTool = union([workflowAgentToolSchema.omit({
|
|
9526
|
+
id: true,
|
|
9527
|
+
inputs: true,
|
|
9528
|
+
outputs: true,
|
|
9529
|
+
revisionId: true
|
|
9530
|
+
}).extend({ inputs: toolSources }).strict(), connectorAgentToolSchema.omit({
|
|
9508
9531
|
id: true,
|
|
9509
9532
|
inputs: true
|
|
9510
|
-
}).extend({ inputs:
|
|
9533
|
+
}).extend({ inputs: toolSources }).strict()]);
|
|
9534
|
+
var authoringCapabilities = array(union([connectorCapabilitySchema, strictObject({
|
|
9535
|
+
kind: literal("workflow"),
|
|
9536
|
+
name: id$1,
|
|
9537
|
+
flowId: id$1
|
|
9538
|
+
})]));
|
|
9511
9539
|
var notification = strictObject({
|
|
9512
9540
|
...authoringDefinitionSchemas.connector.shape,
|
|
9513
9541
|
messageHandle: id$1,
|
|
@@ -9563,7 +9591,7 @@ var authoringConfigurations = {
|
|
|
9563
9591
|
"code": strictObject({
|
|
9564
9592
|
inputs: inputFields,
|
|
9565
9593
|
outputs: outputFields,
|
|
9566
|
-
capabilities:
|
|
9594
|
+
capabilities: authoringCapabilities.optional()
|
|
9567
9595
|
}),
|
|
9568
9596
|
"connector": authoringDefinitionSchemas.connector.omit({ outputMode: true }).strict(),
|
|
9569
9597
|
"openapi": authoringOpenApiSchema,
|
|
@@ -9627,7 +9655,8 @@ var authoringEditSchema = discriminatedUnion("op", [
|
|
|
9627
9655
|
}),
|
|
9628
9656
|
strictObject({
|
|
9629
9657
|
op: literal("node.refresh"),
|
|
9630
|
-
node: referenceSchema
|
|
9658
|
+
node: referenceSchema,
|
|
9659
|
+
tool: id$1.optional().describe("Name of a workflow tool on an Agent or Code node. Omit for a Call Workflow node.")
|
|
9631
9660
|
}),
|
|
9632
9661
|
strictObject({
|
|
9633
9662
|
op: literal("node.remove"),
|
|
@@ -11455,10 +11484,17 @@ var result = object({
|
|
|
11455
11484
|
resultId: string$1().min(1),
|
|
11456
11485
|
callId: string$1().min(1),
|
|
11457
11486
|
toolId: string$1().min(1),
|
|
11458
|
-
source: discriminatedUnion("kind", [
|
|
11459
|
-
|
|
11460
|
-
|
|
11461
|
-
|
|
11487
|
+
source: discriminatedUnion("kind", [
|
|
11488
|
+
object({
|
|
11489
|
+
kind: literal("connector"),
|
|
11490
|
+
action: string$1().min(1)
|
|
11491
|
+
}),
|
|
11492
|
+
object({ kind: literal("code") }),
|
|
11493
|
+
object({
|
|
11494
|
+
kind: literal("workflow"),
|
|
11495
|
+
flowId: string$1().min(1)
|
|
11496
|
+
})
|
|
11497
|
+
]),
|
|
11462
11498
|
bytes: number().int().nonnegative(),
|
|
11463
11499
|
digest: string$1().regex(/^[a-f0-9]{64}$/),
|
|
11464
11500
|
createdAt: string$1().datetime()
|
|
@@ -11520,11 +11556,16 @@ function readResult(value, query = {}) {
|
|
|
11520
11556
|
offset,
|
|
11521
11557
|
value: selected
|
|
11522
11558
|
};
|
|
11523
|
-
if (offset == 0 && (query.limit == null || description.length == null || description.length <= limit) && bytes(whole) <= maxBytes) return whole;
|
|
11559
|
+
if (offset == 0 && (query.limit == null || description.length == null || description.length <= limit) && (typeof selected != "string" || selected.length <= maxBytes) && bytes(whole) <= maxBytes) return whole;
|
|
11524
11560
|
const root = description;
|
|
11525
11561
|
if (typeof selected == "string") {
|
|
11526
11562
|
let length = 0;
|
|
11527
|
-
|
|
11563
|
+
let start = 0;
|
|
11564
|
+
for (let index = 0; index < selected.length; length++) {
|
|
11565
|
+
if (length == offset) start = index;
|
|
11566
|
+
const point = selected.codePointAt(index);
|
|
11567
|
+
index += point > 65535 ? 2 : 1;
|
|
11568
|
+
}
|
|
11528
11569
|
if (offset >= length) throw new Error("Result offset is out of range.");
|
|
11529
11570
|
const budget = maxBytes - bytes({
|
|
11530
11571
|
...root,
|
|
@@ -11534,17 +11575,23 @@ function readResult(value, query = {}) {
|
|
|
11534
11575
|
nextOffset: length
|
|
11535
11576
|
});
|
|
11536
11577
|
let used = 0;
|
|
11537
|
-
let
|
|
11578
|
+
let cursor = start;
|
|
11538
11579
|
let end = offset;
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11580
|
+
while (cursor < selected.length) {
|
|
11581
|
+
const point = selected.codePointAt(cursor);
|
|
11582
|
+
let size;
|
|
11583
|
+
if (point == 34 || point == 92 || point == 8 || point == 9 || point == 10 || point == 12 || point == 13) size = 2;
|
|
11584
|
+
else if (point < 32 || point >= 55296 && point <= 57343) size = 6;
|
|
11585
|
+
else if (point < 128) size = 1;
|
|
11586
|
+
else if (point < 2048) size = 2;
|
|
11587
|
+
else if (point <= 65535) size = 3;
|
|
11588
|
+
else size = 4;
|
|
11543
11589
|
if (used + size > budget) break;
|
|
11544
|
-
|
|
11590
|
+
cursor += point > 65535 ? 2 : 1;
|
|
11545
11591
|
used += size;
|
|
11546
11592
|
end++;
|
|
11547
11593
|
}
|
|
11594
|
+
const text = selected.slice(start, cursor);
|
|
11548
11595
|
if (end == offset) throw new Error("Result byte budget cannot fit a string character and page metadata.");
|
|
11549
11596
|
return {
|
|
11550
11597
|
...root,
|
|
@@ -11559,6 +11606,13 @@ function readResult(value, query = {}) {
|
|
|
11559
11606
|
const keys = Object.keys(selected);
|
|
11560
11607
|
if (offset >= keys.length) throw new Error("Result offset is out of range.");
|
|
11561
11608
|
const entries = [];
|
|
11609
|
+
const overhead = bytes({
|
|
11610
|
+
...root,
|
|
11611
|
+
offset,
|
|
11612
|
+
entries: [],
|
|
11613
|
+
nextOffset: keys.length
|
|
11614
|
+
});
|
|
11615
|
+
let used = overhead;
|
|
11562
11616
|
for (const key of keys.slice(offset, offset + limit)) {
|
|
11563
11617
|
const path = `${pointer}/${key.replace(/~/g, "~0").replace(/\//g, "~1")}`;
|
|
11564
11618
|
const item = Array.isArray(selected) ? selected[Number(key)] : selected[key];
|
|
@@ -11568,19 +11622,12 @@ function readResult(value, query = {}) {
|
|
|
11568
11622
|
complete: true,
|
|
11569
11623
|
value: item
|
|
11570
11624
|
};
|
|
11571
|
-
const
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
nextOffset: keys.length
|
|
11576
|
-
}) <= maxBytes ? full : metadata;
|
|
11577
|
-
if (bytes({
|
|
11578
|
-
...root,
|
|
11579
|
-
offset,
|
|
11580
|
-
entries: [...entries, next],
|
|
11581
|
-
nextOffset: keys.length
|
|
11582
|
-
}) > maxBytes) break;
|
|
11625
|
+
const fullBytes = bytes(full);
|
|
11626
|
+
const next = overhead + fullBytes <= maxBytes ? full : metadata;
|
|
11627
|
+
const size = (next === full ? fullBytes : bytes(metadata)) + (entries.length == 0 ? 0 : 1);
|
|
11628
|
+
if (used + size > maxBytes) break;
|
|
11583
11629
|
entries.push(next);
|
|
11630
|
+
used += size;
|
|
11584
11631
|
}
|
|
11585
11632
|
if (entries.length == 0) throw new Error("Result property name exceeds the preview limit. Download the full result.");
|
|
11586
11633
|
const end = offset + entries.length;
|
|
@@ -11984,7 +12031,8 @@ function workflowIdentity(value) {
|
|
|
11984
12031
|
flowId: string(ref.flowId),
|
|
11985
12032
|
runId: string(ref.runId),
|
|
11986
12033
|
nodeId: string(ref.nodeId),
|
|
11987
|
-
executionId: string(ref.executionId)
|
|
12034
|
+
executionId: string(ref.executionId),
|
|
12035
|
+
...ref.callId == null ? {} : { callId: string(ref.callId) }
|
|
11988
12036
|
};
|
|
11989
12037
|
}
|
|
11990
12038
|
function runInitiator(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { canvasCommandSchema } from './canvas-commands.js';
|
|
2
2
|
export * from './authoring.js';
|
|
3
|
-
import type { JsonValue } from '
|
|
3
|
+
import type { JsonValue } from './flow-change.js';
|
|
4
4
|
import type { DraftOperation } from './draftOperations.js';
|
|
5
5
|
export { decodeDraftOperations, draftOperationsSchema, resolveDraftOperations, type DraftOperation } from './draftOperations.js';
|
|
6
6
|
import { z } from 'zod';
|
|
@@ -102,6 +102,7 @@ export declare const controlRequests: {
|
|
|
102
102
|
} | {
|
|
103
103
|
op: "node.refresh";
|
|
104
104
|
node: string;
|
|
105
|
+
tool?: string | undefined;
|
|
105
106
|
} | {
|
|
106
107
|
op: "node.remove";
|
|
107
108
|
node: string;
|