@oomol-lab/open-flow 0.1.0-beta.85 → 0.1.0-beta.87
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/dist/browser/{FlowCanvas-CZoHhB1y.js → FlowCanvas-SqPUBqze.js} +3 -3
- package/dist/browser/{createResourceDialog-Bi4fUnbD.js → createResourceDialog-CB3eiK7e.js} +3 -3
- package/dist/browser/{dialog-BzoSxhXQ.js → dialog-Bi-MVTGj.js} +291 -143
- package/dist/browser/{exportPng-CXVWVlLc.js → exportPng-CLZKdNzR.js} +2 -2
- package/dist/browser/{flowChanges-C567g-Pc.js → flowChanges-azhepfr-.js} +375 -83
- package/dist/browser/{flowWorkspace-BNdBKtla.js → flowWorkspace-Cs2ZGBYK.js} +1619 -475
- package/dist/browser/fr-CNTSedYU.js +593 -0
- package/dist/browser/ja-CxQBHr2J.js +593 -0
- package/dist/browser/ko-D1Exiv1h.js +593 -0
- package/dist/browser/licenses.md +1 -1
- package/dist/browser/{markdownContent-DF39sd9T.js → markdownContent-D0BBrFcF.js} +1 -1
- package/dist/browser/preview.css +193 -191
- package/dist/browser/preview.js +1997 -624
- package/dist/browser/ru-BzLZv0B7.js +593 -0
- package/dist/browser/theme.css +3 -1
- package/dist/browser/{tooltip-DGj5pudg.js → tooltip-BZ6tpqnr.js} +58 -24
- package/dist/browser/ui.css +12 -10
- package/dist/browser/ui.d.ts +1 -0
- package/dist/browser/ui.js +110 -63
- package/dist/browser/workbench.css +193 -191
- package/dist/browser/workbench.js +86 -17
- package/dist/browser/{workbenchSelect-BIaEVTx6.js → workbenchSelect-CHOeceKA.js} +2 -2
- package/dist/browser/{wrapLayout-C4moMKgb.js → wrapLayout-BB_qwy3k.js} +1 -1
- package/dist/browser/zh-CN-Dg_xSGde.js +593 -0
- package/dist/browser/zh-TW-oxuLwsV0.js +593 -0
- package/dist/command/index.js +61 -57
- package/dist/command/licenses.md +28 -4
- package/dist/common/authoring.d.ts +5 -5
- package/dist/common/authoringExamples.d.ts +3 -2
- package/dist/common/authoringSchema.d.ts +41 -4
- package/dist/common/catalogCache.d.ts +46 -0
- package/dist/common/connector-action.js +13 -10
- package/dist/common/connector-proxy.d.ts +96 -0
- package/dist/common/connector-proxy.js +5209 -0
- package/dist/common/control-api-conformance.js +312 -46
- package/dist/common/control-api.d.ts +12 -1
- package/dist/common/control-api.js +303 -41
- package/dist/common/control-requests.d.ts +4 -3
- package/dist/common/control-requests.js +14111 -171
- package/dist/common/engine-contract.d.ts +3 -2
- package/dist/common/event-source.js +55 -23
- package/dist/common/flow-authoring-node.d.ts +2 -0
- package/dist/common/flow-authoring.js +6936 -6781
- package/dist/common/flow-change-schema.d.ts +1 -1
- package/dist/common/flow-change.d.ts +2 -2
- package/dist/common/flow-change.js +91 -36
- package/dist/common/flow-connectionUsage.d.ts +1 -1
- package/dist/common/flow-encoding.js +93 -38
- package/dist/common/flow-requestParameters.d.ts +34 -0
- package/dist/common/flow-semantics.js +9429 -9236
- package/dist/common/flow-state.js +55 -23
- package/dist/common/flow-workflowFile.d.ts +3 -1
- package/dist/common/http-request.d.ts +6 -11
- package/dist/common/http-request.js +192 -141
- package/dist/common/licenses.md +1 -1
- package/dist/common/mcp.d.ts +3 -3
- package/dist/common/mcp.js +303 -41
- package/dist/common/run-events.js +1 -0
- package/dist/common/runtime-contract.js +10 -4
- package/dist/common/runtime-nodejs-compat.js +55 -23
- package/dist/common/scheduler-checkpoint.d.ts +3 -3
- package/dist/common/scheduler-dependencies.d.ts +22 -28
- package/dist/common/scheduler-node-execution.d.ts +1 -0
- package/dist/common/scheduler.d.ts +8 -2
- package/dist/common/scheduler.js +274 -95
- package/dist/common/workflow.js +51 -19
- package/dist/common/workflowAuthoring.d.ts +411 -0
- package/dist/render/browser/licenses.md +1 -1
- package/dist/render/browser/runtime.css +12 -10
- package/dist/render/browser/runtime.js +183 -49
- package/dist/render/node/index.js +85 -30
- package/dist/render/node/licenses.md +1 -1
- package/package.json +1 -1
- package/skills/open-flow/references/flow-authoring.md +14 -13
- package/src/base/common/jsonSchema.ts +11 -0
- package/src/connector/common/actionSchema.ts +4 -11
- package/src/connector/common/proxy.ts +152 -0
- package/src/control/common/api.ts +99 -3
- package/src/control/common/authoring.ts +23 -9
- package/src/control/common/authoringExamples.ts +9 -0
- package/src/control/common/authoringSchema.ts +21 -12
- package/src/control/common/catalogCache.ts +145 -0
- package/src/control/common/conformance.ts +9 -3
- package/src/control/common/connectorQueries.ts +17 -2
- package/src/control/common/requests.ts +1 -0
- package/src/control/common/workflowAuthoring.ts +120 -0
- package/src/execution/common/checkpoint.ts +18 -12
- package/src/execution/common/dependencies.ts +132 -15
- package/src/execution/common/events.ts +3 -0
- package/src/execution/common/node-execution.ts +22 -15
- package/src/execution/common/scheduler.ts +20 -31
- package/src/flow/common/change.ts +2 -1
- package/src/flow/common/changeSchema.ts +11 -1
- package/src/flow/common/connectionUsage.ts +4 -2
- package/src/flow/common/errorHandling.ts +3 -1
- package/src/flow/common/nodeChanges.ts +35 -18
- package/src/flow/common/requestParameters.ts +120 -0
- package/src/flow/common/semantics.ts +51 -1
- package/src/flow/common/sourceField.ts +3 -2
- package/src/flow/common/workflowFile.ts +2 -2
- package/src/http/common/httpRequest.ts +28 -78
- package/src/runtime/common/engineContract.ts +6 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
1
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/util.js
|
|
2
2
|
function getEnumValues(entries) {
|
|
3
3
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
4
4
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -323,6 +323,17 @@ function prefixIssues(path, issues) {
|
|
|
323
323
|
function unwrapMessage(message) {
|
|
324
324
|
return typeof message === "string" ? message : message?.message;
|
|
325
325
|
}
|
|
326
|
+
/** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
|
|
327
|
+
function sizeCaps(defChecks) {
|
|
328
|
+
const caps = [];
|
|
329
|
+
for (const ch of defChecks ?? []) {
|
|
330
|
+
const d = ch._zod.def;
|
|
331
|
+
if (!/_(length|size)$|_equals$/.test(d.check)) break;
|
|
332
|
+
const max = d.maximum ?? d.length ?? d.size;
|
|
333
|
+
if (max >= 0) caps.push([max, ch]);
|
|
334
|
+
}
|
|
335
|
+
return caps;
|
|
336
|
+
}
|
|
326
337
|
function attachSchema(issues, start, inst) {
|
|
327
338
|
var _a;
|
|
328
339
|
for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
|
|
@@ -539,7 +550,7 @@ function constantCatch(value) {
|
|
|
539
550
|
return fn;
|
|
540
551
|
}
|
|
541
552
|
//#endregion
|
|
542
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
553
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/core.js
|
|
543
554
|
var _a$1;
|
|
544
555
|
var _zodDesc = {
|
|
545
556
|
value: void 0,
|
|
@@ -645,7 +656,7 @@ function config(newConfig) {
|
|
|
645
656
|
return globalConfig;
|
|
646
657
|
}
|
|
647
658
|
//#endregion
|
|
648
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
659
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/errors.js
|
|
649
660
|
function _getMessage() {
|
|
650
661
|
const internals = this._zod;
|
|
651
662
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -761,7 +772,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
761
772
|
return fieldErrors;
|
|
762
773
|
}
|
|
763
774
|
//#endregion
|
|
764
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
775
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/parse.js
|
|
765
776
|
function finalizeParams(callee, params) {
|
|
766
777
|
return {
|
|
767
778
|
callee: params?.callee ?? callee,
|
|
@@ -964,7 +975,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
964
975
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
965
976
|
};
|
|
966
977
|
//#endregion
|
|
967
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
978
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/regexes.js
|
|
968
979
|
/**
|
|
969
980
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
970
981
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -1037,7 +1048,7 @@ var _null$2 = /^null$/i;
|
|
|
1037
1048
|
var lowercase = /^[^A-Z]*$/;
|
|
1038
1049
|
var uppercase = /^[^a-z]*$/;
|
|
1039
1050
|
//#endregion
|
|
1040
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
1051
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/checks.js
|
|
1041
1052
|
var $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
1042
1053
|
var _a;
|
|
1043
1054
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1333,7 +1344,7 @@ var $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst,
|
|
|
1333
1344
|
};
|
|
1334
1345
|
});
|
|
1335
1346
|
//#endregion
|
|
1336
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
1347
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/doc.js
|
|
1337
1348
|
var Doc = class {
|
|
1338
1349
|
constructor(args = [], closed = {}) {
|
|
1339
1350
|
this.content = [];
|
|
@@ -1367,14 +1378,14 @@ var Doc = class {
|
|
|
1367
1378
|
}
|
|
1368
1379
|
};
|
|
1369
1380
|
//#endregion
|
|
1370
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
1381
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/versions.js
|
|
1371
1382
|
var version = {
|
|
1372
1383
|
major: 4,
|
|
1373
1384
|
minor: 6,
|
|
1374
|
-
patch:
|
|
1385
|
+
patch: 7
|
|
1375
1386
|
};
|
|
1376
1387
|
//#endregion
|
|
1377
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
1388
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/schemas.js
|
|
1378
1389
|
var $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1379
1390
|
var _a;
|
|
1380
1391
|
inst ?? (inst = {});
|
|
@@ -1887,6 +1898,26 @@ var $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
|
|
|
1887
1898
|
return payload;
|
|
1888
1899
|
};
|
|
1889
1900
|
});
|
|
1901
|
+
function capSize(inst, size) {
|
|
1902
|
+
const caps = sizeCaps(inst._zod.def.checks);
|
|
1903
|
+
if (!caps.length) return;
|
|
1904
|
+
const cap = Math.min(...caps.map((c) => c[0]));
|
|
1905
|
+
const parse = inst._zod.parse;
|
|
1906
|
+
inst._zod.parse = (payload, ctx) => {
|
|
1907
|
+
const n = size(payload.value);
|
|
1908
|
+
if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
|
|
1909
|
+
for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
|
|
1910
|
+
const start = payload.issues.length;
|
|
1911
|
+
ch._zod.check(payload);
|
|
1912
|
+
payload.issues[start].continue = false;
|
|
1913
|
+
attachSchema(payload.issues, start, inst);
|
|
1914
|
+
return payload;
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
return parse(payload, ctx);
|
|
1918
|
+
};
|
|
1919
|
+
}
|
|
1920
|
+
var arraySize = (input) => Array.isArray(input) ? input.length : -1;
|
|
1890
1921
|
function handleArrayResult(result, final, index) {
|
|
1891
1922
|
if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
|
|
1892
1923
|
final.value[index] = result.value;
|
|
@@ -1924,6 +1955,7 @@ var $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
|
|
|
1924
1955
|
if (proms.length) return Promise.all(proms).then(() => payload);
|
|
1925
1956
|
return payload;
|
|
1926
1957
|
};
|
|
1958
|
+
capSize(inst, arraySize);
|
|
1927
1959
|
});
|
|
1928
1960
|
function handlePropertyResult(result, final, key, input, optin, optout) {
|
|
1929
1961
|
const isPresent = key in input;
|
|
@@ -2032,7 +2064,7 @@ var $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
|
2032
2064
|
}
|
|
2033
2065
|
return propValues;
|
|
2034
2066
|
});
|
|
2035
|
-
const isObject$
|
|
2067
|
+
const isObject$1 = isObject;
|
|
2036
2068
|
const catchall = def.catchall;
|
|
2037
2069
|
let value;
|
|
2038
2070
|
const memo = globalConfig.memoizer;
|
|
@@ -2040,7 +2072,7 @@ var $ZodObject = /*@__PURE__*/ $constructor("$ZodObject", (inst, def) => {
|
|
|
2040
2072
|
inst._zod.parse = (payload, ctx) => {
|
|
2041
2073
|
value ?? (value = _normalized.value);
|
|
2042
2074
|
const input = payload.value;
|
|
2043
|
-
if (!isObject$
|
|
2075
|
+
if (!isObject$1(input)) {
|
|
2044
2076
|
payload.issues.push({
|
|
2045
2077
|
expected: "object",
|
|
2046
2078
|
code: "invalid_type",
|
|
@@ -2170,7 +2202,7 @@ var $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
|
2170
2202
|
return doc.compile();
|
|
2171
2203
|
};
|
|
2172
2204
|
let fastpass;
|
|
2173
|
-
const isObject$
|
|
2205
|
+
const isObject$2 = isObject;
|
|
2174
2206
|
const jit = !globalConfig.jitless;
|
|
2175
2207
|
const fastEnabled = jit && allowsEval.value;
|
|
2176
2208
|
const catchall = def.catchall;
|
|
@@ -2178,7 +2210,7 @@ var $ZodObjectJIT = /*@__PURE__*/ $constructor("$ZodObjectJIT", (inst, def) => {
|
|
|
2178
2210
|
inst._zod.parse = (payload, ctx) => {
|
|
2179
2211
|
value ?? (value = _normalized.value);
|
|
2180
2212
|
const input = payload.value;
|
|
2181
|
-
if (!isObject$
|
|
2213
|
+
if (!isObject$2(input)) {
|
|
2182
2214
|
payload.issues.push({
|
|
2183
2215
|
expected: "object",
|
|
2184
2216
|
code: "invalid_type",
|
|
@@ -2775,7 +2807,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2775
2807
|
}
|
|
2776
2808
|
}
|
|
2777
2809
|
//#endregion
|
|
2778
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
2810
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
|
|
2779
2811
|
var $ZodCyclicError = class extends Error {
|
|
2780
2812
|
constructor() {
|
|
2781
2813
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -3028,7 +3060,7 @@ function isBackEdge(ctx, value) {
|
|
|
3028
3060
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
3029
3061
|
}
|
|
3030
3062
|
//#endregion
|
|
3031
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
3063
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/locales/en.js
|
|
3032
3064
|
var error = () => {
|
|
3033
3065
|
const Sizable = {
|
|
3034
3066
|
string: {
|
|
@@ -3136,7 +3168,7 @@ function en_default() {
|
|
|
3136
3168
|
return { localeError: error() };
|
|
3137
3169
|
}
|
|
3138
3170
|
//#endregion
|
|
3139
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
3171
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/registries.js
|
|
3140
3172
|
var _a;
|
|
3141
3173
|
var $ZodRegistry = class {
|
|
3142
3174
|
constructor() {
|
|
@@ -3183,7 +3215,7 @@ function registry() {
|
|
|
3183
3215
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3184
3216
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
3185
3217
|
//#endregion
|
|
3186
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
3218
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/api.js
|
|
3187
3219
|
function snapshotChecks(def) {
|
|
3188
3220
|
if (def.checks) def.checks = [...def.checks];
|
|
3189
3221
|
return def;
|
|
@@ -3699,7 +3731,7 @@ function _check(fn, params) {
|
|
|
3699
3731
|
return ch;
|
|
3700
3732
|
}
|
|
3701
3733
|
//#endregion
|
|
3702
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
3734
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
|
|
3703
3735
|
function assignProps(target, ...sources) {
|
|
3704
3736
|
for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
|
|
3705
3737
|
return target;
|
|
@@ -4143,7 +4175,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
4143
4175
|
return finalize(ctx, schema);
|
|
4144
4176
|
};
|
|
4145
4177
|
//#endregion
|
|
4146
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
4178
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js
|
|
4147
4179
|
var narrowMin = (agg, key, value) => {
|
|
4148
4180
|
if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
|
|
4149
4181
|
};
|
|
@@ -4604,7 +4636,7 @@ var lazyProcessor = (schema, ctx, _json, params) => {
|
|
|
4604
4636
|
seen.ref = innerType;
|
|
4605
4637
|
};
|
|
4606
4638
|
//#endregion
|
|
4607
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
4639
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/errors.js
|
|
4608
4640
|
var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
4609
4641
|
function _lazyMethod(proto, key, make) {
|
|
4610
4642
|
Object.defineProperty(proto, key, {
|
|
@@ -4654,7 +4686,7 @@ var initializer = (inst, issues) => {
|
|
|
4654
4686
|
};
|
|
4655
4687
|
var ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
|
|
4656
4688
|
//#endregion
|
|
4657
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
4689
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/parse.js
|
|
4658
4690
|
var parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
4659
4691
|
var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
4660
4692
|
var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -4668,7 +4700,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
4668
4700
|
var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
4669
4701
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
4670
4702
|
//#endregion
|
|
4671
|
-
//#region ../../node_modules/.bun/zod@4.6.
|
|
4703
|
+
//#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
|
|
4672
4704
|
function _ensureDefaultLocale() {
|
|
4673
4705
|
if (!globalConfig.localeError) config(en_default());
|
|
4674
4706
|
}
|
|
@@ -20,6 +20,8 @@ export declare function cleanWorkflowFile(value: unknown): {
|
|
|
20
20
|
readonly file: WorkflowFile;
|
|
21
21
|
readonly summary: WorkflowCleanupSummary;
|
|
22
22
|
};
|
|
23
|
-
export declare function encodeWorkflowFile(file: WorkflowFile
|
|
23
|
+
export declare function encodeWorkflowFile(file: WorkflowFile, options?: {
|
|
24
|
+
readonly clean?: boolean;
|
|
25
|
+
}): string;
|
|
24
26
|
export declare function workflowFileName(name: string): string;
|
|
25
27
|
export declare function workflowNameFromFile(name: string): string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { InputMapping, JsonValue, ManagedTaskDefinitionOf, TaskDefinitionBase
|
|
1
|
+
import type { InputMapping, JsonValue, ManagedTaskDefinitionOf, TaskDefinitionBase } from './flow-model.js';
|
|
2
|
+
import type { RequestTaskNode } from './flow-requestParameters.js';
|
|
2
3
|
import { z } from 'zod';
|
|
4
|
+
import { requestInputMappings } from './flow-requestParameters.js';
|
|
3
5
|
export { httpHostAllowed, isHttpHost, maxHttpHosts } from './http-hosts.js';
|
|
4
6
|
export declare const httpRequestConfigSchema: z.ZodObject<{
|
|
5
7
|
method: z.ZodDefault<z.ZodEnum<{
|
|
@@ -151,14 +153,7 @@ export declare function buildHttpRequest(config: HttpRequestConfig, input: Reado
|
|
|
151
153
|
};
|
|
152
154
|
export declare function parseHttpResponse(config: HttpRequestConfig, status: number, headers: Headers, text: string): Record<string, JsonValue>;
|
|
153
155
|
/** Only a named parameter rename carries a value; changing source modes is not a rename. */
|
|
154
|
-
export declare
|
|
155
|
-
/** A Task node as HTTP helpers read it; inline Tasks have no executor. */
|
|
156
|
-
interface HttpTaskNode {
|
|
157
|
-
readonly inputs: Readonly<Record<string, InputMapping>>;
|
|
158
|
-
readonly task: TaskDefinitionBase & {
|
|
159
|
-
readonly executor?: TaskExecutor;
|
|
160
|
-
};
|
|
161
|
-
}
|
|
156
|
+
export declare const httpRequestInputs: typeof requestInputMappings;
|
|
162
157
|
/** The object editor assembles named inputs without changing unrelated request settings. */
|
|
163
|
-
export declare function withHttpParameterFields<Node extends
|
|
164
|
-
export declare function withHttpParameterSource<Node extends
|
|
158
|
+
export declare function withHttpParameterFields<Node extends RequestTaskNode>(node: Node, group: 'query' | 'headers', values: Record<string, JsonValue>): Node;
|
|
159
|
+
export declare function withHttpParameterSource<Node extends RequestTaskNode>(node: Node, group: 'query' | 'headers', mapping?: InputMapping): Node;
|