@oomol-lab/open-flow 0.1.0-beta.73 → 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 +59 -22
- 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
|
@@ -8771,7 +8771,8 @@ var waitAutoContinueDraftSchema = discriminatedUnion("kind", [strictObject({
|
|
|
8771
8771
|
at: string(),
|
|
8772
8772
|
timezone: string().optional()
|
|
8773
8773
|
})]);
|
|
8774
|
-
|
|
8774
|
+
/** Static business configuration; the deployment owns the allowed wait lifetime. */
|
|
8775
|
+
var waitAutoContinueSchema = discriminatedUnion("kind", [waitAutoContinueDraftSchema.options[0].extend({ durationMs: number().int().positive().max(Number.MAX_SAFE_INTEGER) }), waitAutoContinueDraftSchema.options[1].extend({
|
|
8775
8776
|
at: datetime({ offset: true }),
|
|
8776
8777
|
timezone: string().refine(isTimeZone, "Select a valid IANA timezone.").optional()
|
|
8777
8778
|
})]);
|
|
@@ -8841,7 +8842,7 @@ var ports = {
|
|
|
8841
8842
|
inputs: array(union([input, group])),
|
|
8842
8843
|
outputs: array(union([port, group]))
|
|
8843
8844
|
};
|
|
8844
|
-
var
|
|
8845
|
+
var connectorCapabilitySchema = union([
|
|
8845
8846
|
strictObject({
|
|
8846
8847
|
kind: literal("connector"),
|
|
8847
8848
|
action: text,
|
|
@@ -8873,6 +8874,15 @@ var capability = union([
|
|
|
8873
8874
|
})).optional()
|
|
8874
8875
|
})
|
|
8875
8876
|
]);
|
|
8877
|
+
var workflowCapabilitySchema = strictObject({
|
|
8878
|
+
kind: literal("workflow"),
|
|
8879
|
+
name: text,
|
|
8880
|
+
flowId: text,
|
|
8881
|
+
revisionId: text,
|
|
8882
|
+
inputs: array(port),
|
|
8883
|
+
outputs: array(port).nullable()
|
|
8884
|
+
});
|
|
8885
|
+
var capability = union([connectorCapabilitySchema, workflowCapabilitySchema]);
|
|
8876
8886
|
var inline = object({
|
|
8877
8887
|
...ports,
|
|
8878
8888
|
name: text,
|
|
@@ -8887,6 +8897,20 @@ var agentValue = union([object({
|
|
|
8887
8897
|
input: text
|
|
8888
8898
|
})]);
|
|
8889
8899
|
var agentInput = union([agentValue, object({ kind: literal("model") })]);
|
|
8900
|
+
var agentToolFields = {
|
|
8901
|
+
id: text,
|
|
8902
|
+
name: text,
|
|
8903
|
+
description: text,
|
|
8904
|
+
approval: boolean(),
|
|
8905
|
+
inputs: array(input.extend({ source: agentInput }))
|
|
8906
|
+
};
|
|
8907
|
+
var connectorAgentToolSchema = object({
|
|
8908
|
+
...agentToolFields,
|
|
8909
|
+
kind: literal("connector").optional(),
|
|
8910
|
+
action: text,
|
|
8911
|
+
connectionId: actionConnection.optional()
|
|
8912
|
+
});
|
|
8913
|
+
var workflowAgentToolSchema = workflowCapabilitySchema.extend(agentToolFields);
|
|
8890
8914
|
var decisionQuestion = discriminatedUnion("type", [
|
|
8891
8915
|
strictObject({
|
|
8892
8916
|
name: text,
|
|
@@ -8955,15 +8979,7 @@ var managedFields = object({
|
|
|
8955
8979
|
model: text,
|
|
8956
8980
|
prompt: text,
|
|
8957
8981
|
maxRounds: number(),
|
|
8958
|
-
tools: array(
|
|
8959
|
-
id: text,
|
|
8960
|
-
name: text,
|
|
8961
|
-
description: text,
|
|
8962
|
-
action: text,
|
|
8963
|
-
connectionId: actionConnection.optional(),
|
|
8964
|
-
approval: boolean(),
|
|
8965
|
-
inputs: array(input.extend({ source: agentInput }))
|
|
8966
|
-
})),
|
|
8982
|
+
tools: array(union([workflowAgentToolSchema, connectorAgentToolSchema])),
|
|
8967
8983
|
notification: object({
|
|
8968
8984
|
action: text,
|
|
8969
8985
|
connectionId: actionConnection.optional(),
|
|
@@ -9189,10 +9205,26 @@ var node = union([
|
|
|
9189
9205
|
})
|
|
9190
9206
|
})
|
|
9191
9207
|
]);
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9208
|
+
/** Configuration schemas shared by the node authoring boundary. */
|
|
9209
|
+
var authoringDefinitionSchemas = {
|
|
9210
|
+
input,
|
|
9211
|
+
port,
|
|
9212
|
+
ports,
|
|
9213
|
+
condition: strictObject(condition),
|
|
9214
|
+
wait: strictObject(wait),
|
|
9215
|
+
waitAutoContinue: waitAutoContinueSchema,
|
|
9216
|
+
webhook: strictObject(webhook),
|
|
9217
|
+
schedule: triggerScheduleSchema,
|
|
9218
|
+
capabilities: array(capability),
|
|
9219
|
+
connector: managedFields.shape.executor.options[0].omit({ kind: true }).strict(),
|
|
9220
|
+
openapi: managedFields.shape.executor.options[1].omit({ kind: true }).strict(),
|
|
9221
|
+
decision: managedFields.shape.executor.options[2].omit({ kind: true }).strict(),
|
|
9222
|
+
llm: managedFields.shape.executor.options[3].omit({ kind: true }).strict(),
|
|
9223
|
+
agent: managedFields.shape.executor.options[4].omit({
|
|
9224
|
+
kind: true,
|
|
9225
|
+
notification: true
|
|
9226
|
+
}).strict()
|
|
9227
|
+
};
|
|
9196
9228
|
var edge = object({
|
|
9197
9229
|
source: text,
|
|
9198
9230
|
target: text,
|
|
@@ -9228,7 +9260,8 @@ var revision = object({
|
|
|
9228
9260
|
literal(7),
|
|
9229
9261
|
literal(8),
|
|
9230
9262
|
literal(9),
|
|
9231
|
-
literal(10)
|
|
9263
|
+
literal(10),
|
|
9264
|
+
literal(11)
|
|
9232
9265
|
]),
|
|
9233
9266
|
document,
|
|
9234
9267
|
modules: record$1(text, module)
|
|
@@ -9429,6 +9462,7 @@ array(union([...new Map(Object.entries(shapes).map(([kind, shape]) => [kind, sha
|
|
|
9429
9462
|
...shape
|
|
9430
9463
|
})])).values()])).min(1);
|
|
9431
9464
|
function checkModelVersion(content) {
|
|
9465
|
+
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.");
|
|
9432
9466
|
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.");
|
|
9433
9467
|
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.");
|
|
9434
9468
|
if (content.modelVersion < 9 && Object.values(content.document.graph.nodes).some((candidateNode) => {
|
|
@@ -9505,6 +9539,24 @@ function supportsNodeErrorHandling(node) {
|
|
|
9505
9539
|
}
|
|
9506
9540
|
//#endregion
|
|
9507
9541
|
//#region src/flow/common/change.ts
|
|
9542
|
+
var workflowToolNamePattern = /^[A-Za-z][A-Za-z0-9_-]{0,63}$/;
|
|
9543
|
+
function workflowToolNameIssue(name, otherNames = []) {
|
|
9544
|
+
if (!workflowToolNamePattern.test(name)) return "invalid";
|
|
9545
|
+
for (const other of otherNames) if (other == name) return "duplicate";
|
|
9546
|
+
}
|
|
9547
|
+
function decodeTaskCapabilities(value) {
|
|
9548
|
+
if (!Array.isArray(value)) throw new TypeError("Task capabilities must be an array.");
|
|
9549
|
+
const parsed = authoringDefinitionSchemas.capabilities.parse(value);
|
|
9550
|
+
const connectors = decodeConnectorCapabilities(parsed.filter((item) => item.kind == "connector"));
|
|
9551
|
+
const names = /* @__PURE__ */ new Set();
|
|
9552
|
+
for (const item of parsed) {
|
|
9553
|
+
if (item.kind != "workflow") continue;
|
|
9554
|
+
if (workflowToolNameIssue(item.name, names)) throw new TypeError("Workflow tool names must be unique provider-compatible names.");
|
|
9555
|
+
names.add(item.name);
|
|
9556
|
+
}
|
|
9557
|
+
let connectorIndex = 0;
|
|
9558
|
+
return parsed.map((item) => item.kind == "connector" ? connectors[connectorIndex++] : item);
|
|
9559
|
+
}
|
|
9508
9560
|
function decodeConnectorCapabilities(value) {
|
|
9509
9561
|
if (!Array.isArray(value)) throw new TypeError("Connector capabilities must be an array.");
|
|
9510
9562
|
if (value.length == 0) return [];
|
|
@@ -9632,10 +9684,10 @@ function isTriggerNode(node) {
|
|
|
9632
9684
|
function upgradeDecodedRevisionContent(content) {
|
|
9633
9685
|
const graph = content.document.graph;
|
|
9634
9686
|
const hasManual = Object.values(graph.nodes).some((node) => node.kind == "manual");
|
|
9635
|
-
if (!hasManual && content.modelVersion ==
|
|
9687
|
+
if (!hasManual && content.modelVersion == 11) return content;
|
|
9636
9688
|
return {
|
|
9637
9689
|
...content,
|
|
9638
|
-
modelVersion:
|
|
9690
|
+
modelVersion: 11,
|
|
9639
9691
|
document: {
|
|
9640
9692
|
...content.document,
|
|
9641
9693
|
graph: hasManual ? {
|
|
@@ -9670,7 +9722,7 @@ function invalid(message) {
|
|
|
9670
9722
|
throw new FlowChangeError(message);
|
|
9671
9723
|
}
|
|
9672
9724
|
function applyFlowChanges(content, operations) {
|
|
9673
|
-
const source = content.modelVersion !=
|
|
9725
|
+
const source = content.modelVersion != 11 || Object.values(content.document.graph.nodes).some((node) => node.kind == "manual") ? decodeRevisionContent(content) : content;
|
|
9674
9726
|
const document = { ...source.document };
|
|
9675
9727
|
const modules = { ...source.modules };
|
|
9676
9728
|
for (const operation of operations) switch (operation.kind) {
|
|
@@ -9784,7 +9836,7 @@ function applyFlowChanges(content, operations) {
|
|
|
9784
9836
|
const graph = document.graph;
|
|
9785
9837
|
if (!dequal(graph.nodes[operation.nodeId], operation.before)) invalid("The Node changed before this operation was applied.");
|
|
9786
9838
|
if (operation.node.kind != operation.before.kind) invalid("Replacing a Node cannot change its kind.");
|
|
9787
|
-
if (operation.node.kind == "task" && "moduleId" in operation.node.task && operation.node.task.capabilities !== void 0)
|
|
9839
|
+
if (operation.node.kind == "task" && "moduleId" in operation.node.task && operation.node.task.capabilities !== void 0) decodeTaskCapabilities(operation.node.task.capabilities);
|
|
9788
9840
|
const name = normalizeNodeName(operation.node.name ?? "");
|
|
9789
9841
|
const issue = nodeNameIssue(graph, operation.nodeId, name);
|
|
9790
9842
|
if (issue != null) invalid(`Node name is ${issue}.`);
|
|
@@ -9806,7 +9858,7 @@ function applyFlowChanges(content, operations) {
|
|
|
9806
9858
|
if (graph.nodes[operation.nodeId] != null) invalid("A Node with this ID already exists in the target graph.");
|
|
9807
9859
|
if (operation.node.kind == "error" && Object.values(graph.nodes).some((node) => node.kind == "error")) invalid("A graph can contain only one Flow Error node.");
|
|
9808
9860
|
if ((operation.node.kind == "manual" || operation.node.kind == "start") && Object.values(graph.nodes).some((node) => node.kind == "manual" || node.kind == "start")) invalid("A graph can contain only one Start Trigger.");
|
|
9809
|
-
if (operation.node.kind == "task" && "moduleId" in operation.node.task && operation.node.task.capabilities !== void 0)
|
|
9861
|
+
if (operation.node.kind == "task" && "moduleId" in operation.node.task && operation.node.task.capabilities !== void 0) decodeTaskCapabilities(operation.node.task.capabilities);
|
|
9810
9862
|
if (operation.node.name == null) invalid("A Node name cannot be empty.");
|
|
9811
9863
|
if (operation.node.kind == "outputs" && Object.values(graph.nodes).some((node) => node.kind == "outputs")) invalid("A graph can contain only one Outputs node.");
|
|
9812
9864
|
const name = normalizeNodeName(operation.node.name);
|
|
@@ -9905,7 +9957,7 @@ function applyFlowChanges(content, operations) {
|
|
|
9905
9957
|
if (!dequal(node.task.capabilities, operation.before)) invalid("The inline Task capabilities changed before this operation was applied.");
|
|
9906
9958
|
const task = { ...node.task };
|
|
9907
9959
|
if (operation.value === void 0) delete task.capabilities;
|
|
9908
|
-
else task.capabilities =
|
|
9960
|
+
else task.capabilities = decodeTaskCapabilities(operation.value);
|
|
9909
9961
|
Object.assign(document, { graph: {
|
|
9910
9962
|
...graph,
|
|
9911
9963
|
nodes: {
|
|
@@ -10118,7 +10170,7 @@ function applyFlowChanges(content, operations) {
|
|
|
10118
10170
|
assertOpenApiAuthBindings(document);
|
|
10119
10171
|
return upgradeDecodedRevisionContent({
|
|
10120
10172
|
document,
|
|
10121
|
-
modelVersion:
|
|
10173
|
+
modelVersion: 11,
|
|
10122
10174
|
modules
|
|
10123
10175
|
});
|
|
10124
10176
|
}
|
|
@@ -1,6 +1,129 @@
|
|
|
1
1
|
import type { ChangeOperation, FlowDocument, JsonValue, RevisionContent } from './flow-change.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export declare const currentFlowModelVersion =
|
|
3
|
+
export declare const currentFlowModelVersion = 11;
|
|
4
|
+
export declare const connectorCapabilitySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
5
|
+
kind: z.ZodLiteral<"connector">;
|
|
6
|
+
action: z.ZodString;
|
|
7
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
connections: z.ZodArray<z.ZodObject<{
|
|
9
|
+
connectionId: z.ZodString;
|
|
10
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, z.core.$strict>>;
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
+
kind: z.ZodLiteral<"connector">;
|
|
14
|
+
mode: z.ZodLiteral<"shared">;
|
|
15
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"connector">;
|
|
17
|
+
mode: z.ZodLiteral<"independent">;
|
|
18
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
19
|
+
action: z.ZodString;
|
|
20
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>>;
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
|
+
kind: z.ZodLiteral<"connector">;
|
|
24
|
+
actionHints: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
|
+
connectionHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
+
action: z.ZodString;
|
|
27
|
+
connectionId: z.ZodString;
|
|
28
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>>>;
|
|
30
|
+
}, z.core.$strict>]>;
|
|
31
|
+
export declare const workflowCapabilitySchema: z.ZodObject<{
|
|
32
|
+
kind: z.ZodLiteral<"workflow">;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
flowId: z.ZodString;
|
|
35
|
+
revisionId: z.ZodString;
|
|
36
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
37
|
+
description: z.ZodOptional<z.ZodString>;
|
|
38
|
+
jsonSchema: z.ZodJSONSchema;
|
|
39
|
+
nullable: z.ZodBoolean;
|
|
40
|
+
handle: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
outputs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
43
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44
|
+
jsonSchema: z.ZodJSONSchema;
|
|
45
|
+
nullable: z.ZodBoolean;
|
|
46
|
+
handle: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
}, z.core.$strict>;
|
|
49
|
+
export declare const agentToolFields: {
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
name: z.ZodString;
|
|
52
|
+
description: z.ZodString;
|
|
53
|
+
approval: z.ZodBoolean;
|
|
54
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
55
|
+
description: z.ZodOptional<z.ZodString>;
|
|
56
|
+
jsonSchema: z.ZodJSONSchema;
|
|
57
|
+
nullable: z.ZodBoolean;
|
|
58
|
+
handle: z.ZodString;
|
|
59
|
+
value: z.ZodOptional<z.ZodJSONSchema>;
|
|
60
|
+
source: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
61
|
+
kind: z.ZodLiteral<"value">;
|
|
62
|
+
value: z.ZodJSONSchema;
|
|
63
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
+
kind: z.ZodLiteral<"input">;
|
|
65
|
+
input: z.ZodString;
|
|
66
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
67
|
+
kind: z.ZodLiteral<"model">;
|
|
68
|
+
}, z.core.$strip>]>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
};
|
|
71
|
+
export declare const connectorAgentToolSchema: z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
description: z.ZodString;
|
|
75
|
+
approval: z.ZodBoolean;
|
|
76
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
77
|
+
description: z.ZodOptional<z.ZodString>;
|
|
78
|
+
jsonSchema: z.ZodJSONSchema;
|
|
79
|
+
nullable: z.ZodBoolean;
|
|
80
|
+
handle: z.ZodString;
|
|
81
|
+
value: z.ZodOptional<z.ZodJSONSchema>;
|
|
82
|
+
source: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
83
|
+
kind: z.ZodLiteral<"value">;
|
|
84
|
+
value: z.ZodJSONSchema;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
kind: z.ZodLiteral<"input">;
|
|
87
|
+
input: z.ZodString;
|
|
88
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
89
|
+
kind: z.ZodLiteral<"model">;
|
|
90
|
+
}, z.core.$strip>]>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
kind: z.ZodOptional<z.ZodLiteral<"connector">>;
|
|
93
|
+
action: z.ZodString;
|
|
94
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export declare const workflowAgentToolSchema: z.ZodObject<{
|
|
97
|
+
kind: z.ZodLiteral<"workflow">;
|
|
98
|
+
flowId: z.ZodString;
|
|
99
|
+
revisionId: z.ZodString;
|
|
100
|
+
outputs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
101
|
+
description: z.ZodOptional<z.ZodString>;
|
|
102
|
+
jsonSchema: z.ZodJSONSchema;
|
|
103
|
+
nullable: z.ZodBoolean;
|
|
104
|
+
handle: z.ZodString;
|
|
105
|
+
}, z.core.$strip>>>;
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
name: z.ZodString;
|
|
108
|
+
description: z.ZodString;
|
|
109
|
+
approval: z.ZodBoolean;
|
|
110
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
111
|
+
description: z.ZodOptional<z.ZodString>;
|
|
112
|
+
jsonSchema: z.ZodJSONSchema;
|
|
113
|
+
nullable: z.ZodBoolean;
|
|
114
|
+
handle: z.ZodString;
|
|
115
|
+
value: z.ZodOptional<z.ZodJSONSchema>;
|
|
116
|
+
source: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
117
|
+
kind: z.ZodLiteral<"value">;
|
|
118
|
+
value: z.ZodJSONSchema;
|
|
119
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
120
|
+
kind: z.ZodLiteral<"input">;
|
|
121
|
+
input: z.ZodString;
|
|
122
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
123
|
+
kind: z.ZodLiteral<"model">;
|
|
124
|
+
}, z.core.$strip>]>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
}, z.core.$strict>;
|
|
4
127
|
/** Configuration schemas shared by the node authoring boundary. */
|
|
5
128
|
export declare const authoringDefinitionSchemas: {
|
|
6
129
|
input: z.ZodObject<{
|
|
@@ -179,7 +302,7 @@ export declare const authoringDefinitionSchemas: {
|
|
|
179
302
|
}>;
|
|
180
303
|
value: z.ZodNumber;
|
|
181
304
|
}, z.core.$strip>]>>;
|
|
182
|
-
capabilities: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
305
|
+
capabilities: z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
183
306
|
kind: z.ZodLiteral<"connector">;
|
|
184
307
|
action: z.ZodString;
|
|
185
308
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -205,6 +328,23 @@ export declare const authoringDefinitionSchemas: {
|
|
|
205
328
|
connectionId: z.ZodString;
|
|
206
329
|
alias: z.ZodOptional<z.ZodString>;
|
|
207
330
|
}, z.core.$strict>>>;
|
|
331
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
332
|
+
kind: z.ZodLiteral<"workflow">;
|
|
333
|
+
name: z.ZodString;
|
|
334
|
+
flowId: z.ZodString;
|
|
335
|
+
revisionId: z.ZodString;
|
|
336
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
337
|
+
description: z.ZodOptional<z.ZodString>;
|
|
338
|
+
jsonSchema: z.ZodJSONSchema;
|
|
339
|
+
nullable: z.ZodBoolean;
|
|
340
|
+
handle: z.ZodString;
|
|
341
|
+
}, z.core.$strip>>;
|
|
342
|
+
outputs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
343
|
+
description: z.ZodOptional<z.ZodString>;
|
|
344
|
+
jsonSchema: z.ZodJSONSchema;
|
|
345
|
+
nullable: z.ZodBoolean;
|
|
346
|
+
handle: z.ZodString;
|
|
347
|
+
}, z.core.$strip>>>;
|
|
208
348
|
}, z.core.$strict>]>>;
|
|
209
349
|
connector: z.ZodObject<{
|
|
210
350
|
action: z.ZodString;
|
|
@@ -266,12 +406,19 @@ export declare const authoringDefinitionSchemas: {
|
|
|
266
406
|
model: z.ZodString;
|
|
267
407
|
prompt: z.ZodString;
|
|
268
408
|
maxRounds: z.ZodNumber;
|
|
269
|
-
tools: z.ZodArray<z.ZodObject<{
|
|
409
|
+
tools: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
410
|
+
kind: z.ZodLiteral<"workflow">;
|
|
411
|
+
flowId: z.ZodString;
|
|
412
|
+
revisionId: z.ZodString;
|
|
413
|
+
outputs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
414
|
+
description: z.ZodOptional<z.ZodString>;
|
|
415
|
+
jsonSchema: z.ZodJSONSchema;
|
|
416
|
+
nullable: z.ZodBoolean;
|
|
417
|
+
handle: z.ZodString;
|
|
418
|
+
}, z.core.$strip>>>;
|
|
270
419
|
id: z.ZodString;
|
|
271
420
|
name: z.ZodString;
|
|
272
421
|
description: z.ZodString;
|
|
273
|
-
action: z.ZodString;
|
|
274
|
-
connectionId: z.ZodOptional<z.ZodString>;
|
|
275
422
|
approval: z.ZodBoolean;
|
|
276
423
|
inputs: z.ZodArray<z.ZodObject<{
|
|
277
424
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -289,7 +436,31 @@ export declare const authoringDefinitionSchemas: {
|
|
|
289
436
|
kind: z.ZodLiteral<"model">;
|
|
290
437
|
}, z.core.$strip>]>;
|
|
291
438
|
}, z.core.$strip>>;
|
|
292
|
-
}, z.core.$
|
|
439
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
440
|
+
id: z.ZodString;
|
|
441
|
+
name: z.ZodString;
|
|
442
|
+
description: z.ZodString;
|
|
443
|
+
approval: z.ZodBoolean;
|
|
444
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
445
|
+
description: z.ZodOptional<z.ZodString>;
|
|
446
|
+
jsonSchema: z.ZodJSONSchema;
|
|
447
|
+
nullable: z.ZodBoolean;
|
|
448
|
+
handle: z.ZodString;
|
|
449
|
+
value: z.ZodOptional<z.ZodJSONSchema>;
|
|
450
|
+
source: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
451
|
+
kind: z.ZodLiteral<"value">;
|
|
452
|
+
value: z.ZodJSONSchema;
|
|
453
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
454
|
+
kind: z.ZodLiteral<"input">;
|
|
455
|
+
input: z.ZodString;
|
|
456
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
457
|
+
kind: z.ZodLiteral<"model">;
|
|
458
|
+
}, z.core.$strip>]>;
|
|
459
|
+
}, z.core.$strip>>;
|
|
460
|
+
kind: z.ZodOptional<z.ZodLiteral<"connector">>;
|
|
461
|
+
action: z.ZodString;
|
|
462
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strip>]>>;
|
|
293
464
|
}, z.core.$strict>;
|
|
294
465
|
};
|
|
295
466
|
/** Explicit storage upgrade only. Normal reads and authoring still reject retired fields. */
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { JsonValue, Port, PortDefinition } from '../index.js';
|
|
2
2
|
export { fixedInputValue, inputValue, inputValues } from './flow-input-value.js';
|
|
3
|
-
import type { RetryConfiguration } from '
|
|
3
|
+
import type { RetryConfiguration } from './flow-retry.js';
|
|
4
4
|
import type { WebhookMethod } from './webhook-method.js';
|
|
5
5
|
import { currentFlowModelVersion } from './flow-change-schema.js';
|
|
6
6
|
export { changeOperationsSchema, currentFlowModelVersion, decodeChangeOperations } from './flow-change-schema.js';
|
|
7
|
-
export type { RetryConfiguration } from '
|
|
8
|
-
export { supportsNodeRetry } from '
|
|
9
|
-
export { nodeSystemOutputPorts, supportsNodeErrorHandling, nodeErrorSchema } from '
|
|
10
|
-
export type { NodeErrorData } from '
|
|
7
|
+
export type { RetryConfiguration } from './flow-retry.js';
|
|
8
|
+
export { supportsNodeRetry } from './flow-retry.js';
|
|
9
|
+
export { nodeSystemOutputPorts, supportsNodeErrorHandling, nodeErrorSchema } from './flow-errorHandling.js';
|
|
10
|
+
export type { NodeErrorData } from './flow-errorHandling.js';
|
|
11
11
|
export type { WebhookMethod };
|
|
12
12
|
export type { JsonValue, Port, PortDefinition } from '../index.js';
|
|
13
|
-
export { isSchemaKeyword } from '
|
|
14
|
-
export type { SchemaKeyword, SchemaMismatch } from '
|
|
13
|
+
export { isSchemaKeyword } from './flow-schemaKeywords.js';
|
|
14
|
+
export type { SchemaKeyword, SchemaMismatch } from './flow-schemaKeywords.js';
|
|
15
15
|
export declare const resourceNameMaxLength = 80;
|
|
16
16
|
export type ResourceNameIssue = 'controlCharacter' | 'empty' | 'specialCharacter' | 'tooLong';
|
|
17
17
|
export declare function resourceNameIssue(value: string): ResourceNameIssue | undefined;
|
|
@@ -113,7 +113,7 @@ export interface ConditionNode extends GraphNodeBase {
|
|
|
113
113
|
readonly matchMode: 'first' | 'all';
|
|
114
114
|
readonly kind: 'condition';
|
|
115
115
|
}
|
|
116
|
-
export type ManagedTaskExecutor = import('
|
|
116
|
+
export type ManagedTaskExecutor = import('./workflow.js').WorkflowExecutor | import('./decision.js').DecisionExecutor | import('./openapi.js').OpenApiExecutor | {
|
|
117
117
|
readonly kind: 'connector';
|
|
118
118
|
readonly action: string;
|
|
119
119
|
readonly connectionId?: string;
|
|
@@ -147,17 +147,37 @@ export type AgentInput = {
|
|
|
147
147
|
} | {
|
|
148
148
|
readonly kind: 'model';
|
|
149
149
|
};
|
|
150
|
-
|
|
150
|
+
interface AgentToolBase {
|
|
151
151
|
readonly id: string;
|
|
152
152
|
readonly name: string;
|
|
153
153
|
readonly description: string;
|
|
154
|
-
readonly action: string;
|
|
155
|
-
readonly connectionId?: string;
|
|
156
154
|
readonly approval: boolean;
|
|
157
155
|
readonly inputs: readonly (InputPort & {
|
|
158
156
|
readonly source: AgentInput;
|
|
159
157
|
})[];
|
|
160
158
|
}
|
|
159
|
+
export interface AgentConnectorTool extends AgentToolBase {
|
|
160
|
+
readonly kind?: 'connector';
|
|
161
|
+
readonly action: string;
|
|
162
|
+
readonly connectionId?: string;
|
|
163
|
+
}
|
|
164
|
+
export interface WorkflowCapability {
|
|
165
|
+
readonly kind: 'workflow';
|
|
166
|
+
readonly name: string;
|
|
167
|
+
readonly flowId: string;
|
|
168
|
+
readonly revisionId: string;
|
|
169
|
+
readonly inputs: readonly Port[];
|
|
170
|
+
readonly outputs: readonly Port[] | null;
|
|
171
|
+
}
|
|
172
|
+
export interface AgentWorkflowTool extends AgentToolBase, Omit<WorkflowCapability, 'inputs'> {
|
|
173
|
+
readonly action?: never;
|
|
174
|
+
readonly connectionId?: never;
|
|
175
|
+
}
|
|
176
|
+
export type AgentTool = AgentConnectorTool | AgentWorkflowTool;
|
|
177
|
+
export type TaskCapability = ConnectorCapability | WorkflowCapability;
|
|
178
|
+
export declare const workflowToolNamePattern: RegExp;
|
|
179
|
+
export declare function workflowToolNameIssue(name: string, otherNames?: Iterable<string>): 'invalid' | 'duplicate' | undefined;
|
|
180
|
+
export declare function decodeTaskCapabilities(value: unknown): readonly TaskCapability[];
|
|
161
181
|
export interface ConnectorAccessCapability {
|
|
162
182
|
readonly actionHints?: readonly string[];
|
|
163
183
|
readonly connectionHints?: readonly {
|
|
@@ -195,7 +215,7 @@ interface TaskDefinitionBase {
|
|
|
195
215
|
readonly outputs: readonly (Port | Group)[];
|
|
196
216
|
}
|
|
197
217
|
export interface InlineTaskDefinition extends TaskDefinitionBase {
|
|
198
|
-
readonly capabilities?: readonly
|
|
218
|
+
readonly capabilities?: readonly TaskCapability[];
|
|
199
219
|
readonly moduleId: string;
|
|
200
220
|
}
|
|
201
221
|
export interface ManagedTaskDefinition extends TaskDefinitionBase {
|
|
@@ -334,7 +354,7 @@ export interface CodeModule {
|
|
|
334
354
|
}
|
|
335
355
|
export interface RevisionContent {
|
|
336
356
|
readonly document: FlowDocument;
|
|
337
|
-
readonly modelVersion: 2 | 4 | 5 | 6 | 7 | 8 | 9 | typeof currentFlowModelVersion;
|
|
357
|
+
readonly modelVersion: 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | typeof currentFlowModelVersion;
|
|
338
358
|
readonly modules: Readonly<Record<string, CodeModule>>;
|
|
339
359
|
}
|
|
340
360
|
export interface GraphEdge {
|
|
@@ -354,10 +374,10 @@ export type ChangeOperation = {
|
|
|
354
374
|
readonly before: GraphNode;
|
|
355
375
|
readonly node: GraphNode;
|
|
356
376
|
} | {
|
|
357
|
-
readonly before?: readonly
|
|
377
|
+
readonly before?: readonly TaskCapability[];
|
|
358
378
|
readonly kind: 'graph.node.task.capabilities.set';
|
|
359
379
|
readonly nodeId: string;
|
|
360
|
-
readonly value?: readonly
|
|
380
|
+
readonly value?: readonly TaskCapability[];
|
|
361
381
|
} | {
|
|
362
382
|
readonly kind: 'graph.trigger.sources.set';
|
|
363
383
|
readonly nodeId: string;
|