@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.
Files changed (102) hide show
  1. package/dist/browser/{FlowCanvas-CZoHhB1y.js → FlowCanvas-SqPUBqze.js} +3 -3
  2. package/dist/browser/{createResourceDialog-Bi4fUnbD.js → createResourceDialog-CB3eiK7e.js} +3 -3
  3. package/dist/browser/{dialog-BzoSxhXQ.js → dialog-Bi-MVTGj.js} +291 -143
  4. package/dist/browser/{exportPng-CXVWVlLc.js → exportPng-CLZKdNzR.js} +2 -2
  5. package/dist/browser/{flowChanges-C567g-Pc.js → flowChanges-azhepfr-.js} +375 -83
  6. package/dist/browser/{flowWorkspace-BNdBKtla.js → flowWorkspace-Cs2ZGBYK.js} +1619 -475
  7. package/dist/browser/fr-CNTSedYU.js +593 -0
  8. package/dist/browser/ja-CxQBHr2J.js +593 -0
  9. package/dist/browser/ko-D1Exiv1h.js +593 -0
  10. package/dist/browser/licenses.md +1 -1
  11. package/dist/browser/{markdownContent-DF39sd9T.js → markdownContent-D0BBrFcF.js} +1 -1
  12. package/dist/browser/preview.css +193 -191
  13. package/dist/browser/preview.js +1997 -624
  14. package/dist/browser/ru-BzLZv0B7.js +593 -0
  15. package/dist/browser/theme.css +3 -1
  16. package/dist/browser/{tooltip-DGj5pudg.js → tooltip-BZ6tpqnr.js} +58 -24
  17. package/dist/browser/ui.css +12 -10
  18. package/dist/browser/ui.d.ts +1 -0
  19. package/dist/browser/ui.js +110 -63
  20. package/dist/browser/workbench.css +193 -191
  21. package/dist/browser/workbench.js +86 -17
  22. package/dist/browser/{workbenchSelect-BIaEVTx6.js → workbenchSelect-CHOeceKA.js} +2 -2
  23. package/dist/browser/{wrapLayout-C4moMKgb.js → wrapLayout-BB_qwy3k.js} +1 -1
  24. package/dist/browser/zh-CN-Dg_xSGde.js +593 -0
  25. package/dist/browser/zh-TW-oxuLwsV0.js +593 -0
  26. package/dist/command/index.js +61 -57
  27. package/dist/command/licenses.md +28 -4
  28. package/dist/common/authoring.d.ts +5 -5
  29. package/dist/common/authoringExamples.d.ts +3 -2
  30. package/dist/common/authoringSchema.d.ts +41 -4
  31. package/dist/common/catalogCache.d.ts +46 -0
  32. package/dist/common/connector-action.js +13 -10
  33. package/dist/common/connector-proxy.d.ts +96 -0
  34. package/dist/common/connector-proxy.js +5209 -0
  35. package/dist/common/control-api-conformance.js +312 -46
  36. package/dist/common/control-api.d.ts +12 -1
  37. package/dist/common/control-api.js +303 -41
  38. package/dist/common/control-requests.d.ts +4 -3
  39. package/dist/common/control-requests.js +14111 -171
  40. package/dist/common/engine-contract.d.ts +3 -2
  41. package/dist/common/event-source.js +55 -23
  42. package/dist/common/flow-authoring-node.d.ts +2 -0
  43. package/dist/common/flow-authoring.js +6936 -6781
  44. package/dist/common/flow-change-schema.d.ts +1 -1
  45. package/dist/common/flow-change.d.ts +2 -2
  46. package/dist/common/flow-change.js +91 -36
  47. package/dist/common/flow-connectionUsage.d.ts +1 -1
  48. package/dist/common/flow-encoding.js +93 -38
  49. package/dist/common/flow-requestParameters.d.ts +34 -0
  50. package/dist/common/flow-semantics.js +9429 -9236
  51. package/dist/common/flow-state.js +55 -23
  52. package/dist/common/flow-workflowFile.d.ts +3 -1
  53. package/dist/common/http-request.d.ts +6 -11
  54. package/dist/common/http-request.js +192 -141
  55. package/dist/common/licenses.md +1 -1
  56. package/dist/common/mcp.d.ts +3 -3
  57. package/dist/common/mcp.js +303 -41
  58. package/dist/common/run-events.js +1 -0
  59. package/dist/common/runtime-contract.js +10 -4
  60. package/dist/common/runtime-nodejs-compat.js +55 -23
  61. package/dist/common/scheduler-checkpoint.d.ts +3 -3
  62. package/dist/common/scheduler-dependencies.d.ts +22 -28
  63. package/dist/common/scheduler-node-execution.d.ts +1 -0
  64. package/dist/common/scheduler.d.ts +8 -2
  65. package/dist/common/scheduler.js +274 -95
  66. package/dist/common/workflow.js +51 -19
  67. package/dist/common/workflowAuthoring.d.ts +411 -0
  68. package/dist/render/browser/licenses.md +1 -1
  69. package/dist/render/browser/runtime.css +12 -10
  70. package/dist/render/browser/runtime.js +183 -49
  71. package/dist/render/node/index.js +85 -30
  72. package/dist/render/node/licenses.md +1 -1
  73. package/package.json +1 -1
  74. package/skills/open-flow/references/flow-authoring.md +14 -13
  75. package/src/base/common/jsonSchema.ts +11 -0
  76. package/src/connector/common/actionSchema.ts +4 -11
  77. package/src/connector/common/proxy.ts +152 -0
  78. package/src/control/common/api.ts +99 -3
  79. package/src/control/common/authoring.ts +23 -9
  80. package/src/control/common/authoringExamples.ts +9 -0
  81. package/src/control/common/authoringSchema.ts +21 -12
  82. package/src/control/common/catalogCache.ts +145 -0
  83. package/src/control/common/conformance.ts +9 -3
  84. package/src/control/common/connectorQueries.ts +17 -2
  85. package/src/control/common/requests.ts +1 -0
  86. package/src/control/common/workflowAuthoring.ts +120 -0
  87. package/src/execution/common/checkpoint.ts +18 -12
  88. package/src/execution/common/dependencies.ts +132 -15
  89. package/src/execution/common/events.ts +3 -0
  90. package/src/execution/common/node-execution.ts +22 -15
  91. package/src/execution/common/scheduler.ts +20 -31
  92. package/src/flow/common/change.ts +2 -1
  93. package/src/flow/common/changeSchema.ts +11 -1
  94. package/src/flow/common/connectionUsage.ts +4 -2
  95. package/src/flow/common/errorHandling.ts +3 -1
  96. package/src/flow/common/nodeChanges.ts +35 -18
  97. package/src/flow/common/requestParameters.ts +120 -0
  98. package/src/flow/common/semantics.ts +51 -1
  99. package/src/flow/common/sourceField.ts +3 -2
  100. package/src/flow/common/workflowFile.ts +2 -2
  101. package/src/http/common/httpRequest.ts +28 -78
  102. package/src/runtime/common/engineContract.ts +6 -3
@@ -1,6 +1,6 @@
1
1
  import type { ChangeOperation, FlowDocument, JsonValue, RevisionContent } from './flow-change.js';
2
2
  import { z } from 'zod';
3
- export declare const currentFlowModelVersion = 13;
3
+ export declare const currentFlowModelVersion = 14;
4
4
  export declare const connectorCapabilitySchema: z.ZodUnion<readonly [z.ZodObject<{
5
5
  kind: z.ZodLiteral<"connector">;
6
6
  action: z.ZodString;
@@ -71,7 +71,7 @@ export interface ConditionNode extends GraphNodeBase {
71
71
  readonly matchMode: 'first' | 'all';
72
72
  readonly kind: 'condition';
73
73
  }
74
- export type ManagedTaskExecutor = import('./http-request.js').HttpRequestExecutor | import('./flow-state.js').SkipDuplicatesExecutor | WorkflowExecutor | import('./decision.js').DecisionExecutor | import('./openapi.js').OpenApiExecutor | {
74
+ export type ManagedTaskExecutor = import('./connector-proxy.js').ConnectorProxyExecutor | import('./http-request.js').HttpRequestExecutor | import('./flow-state.js').SkipDuplicatesExecutor | WorkflowExecutor | import('./decision.js').DecisionExecutor | import('./openapi.js').OpenApiExecutor | {
75
75
  readonly kind: 'connector';
76
76
  readonly action: string;
77
77
  readonly connectionId?: string;
@@ -160,7 +160,7 @@ export interface FlowDocument {
160
160
  }
161
161
  export interface RevisionContent {
162
162
  readonly document: FlowDocument;
163
- readonly modelVersion: 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | typeof currentFlowModelVersion;
163
+ readonly modelVersion: 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | typeof currentFlowModelVersion;
164
164
  readonly modules: Readonly<Record<string, CodeModule>>;
165
165
  }
166
166
  export interface GraphEdge {
@@ -42,7 +42,7 @@ function dequal(foo, bar) {
42
42
  return foo !== foo && bar !== bar;
43
43
  }
44
44
  //#endregion
45
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/util.js
45
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/util.js
46
46
  function getEnumValues(entries) {
47
47
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
48
48
  return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -367,6 +367,17 @@ function prefixIssues(path, issues) {
367
367
  function unwrapMessage(message) {
368
368
  return typeof message === "string" ? message : message?.message;
369
369
  }
370
+ /** The leading size checks of `defChecks` that set an upper bound, each paired with it. */
371
+ function sizeCaps(defChecks) {
372
+ const caps = [];
373
+ for (const ch of defChecks ?? []) {
374
+ const d = ch._zod.def;
375
+ if (!/_(length|size)$|_equals$/.test(d.check)) break;
376
+ const max = d.maximum ?? d.length ?? d.size;
377
+ if (max >= 0) caps.push([max, ch]);
378
+ }
379
+ return caps;
380
+ }
370
381
  function attachSchema(issues, start, inst) {
371
382
  var _a;
372
383
  for (let i = start; i < issues.length; i++) (_a = issues[i]).schema ?? (_a.schema = inst);
@@ -583,7 +594,7 @@ function constantCatch(value) {
583
594
  return fn;
584
595
  }
585
596
  //#endregion
586
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/core.js
597
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/core.js
587
598
  var _a$1;
588
599
  var _zodDesc = {
589
600
  value: void 0,
@@ -689,7 +700,7 @@ function config(newConfig) {
689
700
  return globalConfig;
690
701
  }
691
702
  //#endregion
692
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/errors.js
703
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/errors.js
693
704
  function _getMessage() {
694
705
  const internals = this._zod;
695
706
  internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
@@ -805,7 +816,7 @@ function formatError(error, mapper = (issue) => issue.message) {
805
816
  return fieldErrors;
806
817
  }
807
818
  //#endregion
808
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/parse.js
819
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/parse.js
809
820
  function finalizeParams(callee, params) {
810
821
  return {
811
822
  callee: params?.callee ?? callee,
@@ -1008,7 +1019,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
1008
1019
  return _safeParseAsync(_Err)(schema, value, _ctx);
1009
1020
  };
1010
1021
  //#endregion
1011
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/regexes.js
1022
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/regexes.js
1012
1023
  /**
1013
1024
  * @deprecated CUID v1 is deprecated by its authors due to information leakage
1014
1025
  * (timestamps embedded in the id). Use {@link cuid2} instead.
@@ -1081,7 +1092,7 @@ var _null$2 = /^null$/i;
1081
1092
  var lowercase = /^[^A-Z]*$/;
1082
1093
  var uppercase = /^[^a-z]*$/;
1083
1094
  //#endregion
1084
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/checks.js
1095
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/checks.js
1085
1096
  var $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
1086
1097
  var _a;
1087
1098
  inst._zod ?? (inst._zod = {});
@@ -1377,7 +1388,7 @@ var $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (inst,
1377
1388
  };
1378
1389
  });
1379
1390
  //#endregion
1380
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/doc.js
1391
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/doc.js
1381
1392
  var Doc = class {
1382
1393
  constructor(args = [], closed = {}) {
1383
1394
  this.content = [];
@@ -1411,14 +1422,14 @@ var Doc = class {
1411
1422
  }
1412
1423
  };
1413
1424
  //#endregion
1414
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/versions.js
1425
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/versions.js
1415
1426
  var version = {
1416
1427
  major: 4,
1417
1428
  minor: 6,
1418
- patch: 5
1429
+ patch: 7
1419
1430
  };
1420
1431
  //#endregion
1421
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/schemas.js
1432
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/schemas.js
1422
1433
  var $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
1423
1434
  var _a;
1424
1435
  inst ?? (inst = {});
@@ -1931,6 +1942,26 @@ var $ZodNever = /*@__PURE__*/ $constructor("$ZodNever", (inst, def) => {
1931
1942
  return payload;
1932
1943
  };
1933
1944
  });
1945
+ function capSize(inst, size) {
1946
+ const caps = sizeCaps(inst._zod.def.checks);
1947
+ if (!caps.length) return;
1948
+ const cap = Math.min(...caps.map((c) => c[0]));
1949
+ const parse = inst._zod.parse;
1950
+ inst._zod.parse = (payload, ctx) => {
1951
+ const n = size(payload.value);
1952
+ if (n > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
1953
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) if (n > max && ch._zod.def.when(payload)) {
1954
+ const start = payload.issues.length;
1955
+ ch._zod.check(payload);
1956
+ payload.issues[start].continue = false;
1957
+ attachSchema(payload.issues, start, inst);
1958
+ return payload;
1959
+ }
1960
+ }
1961
+ return parse(payload, ctx);
1962
+ };
1963
+ }
1964
+ var arraySize = (input) => Array.isArray(input) ? input.length : -1;
1934
1965
  function handleArrayResult(result, final, index) {
1935
1966
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
1936
1967
  final.value[index] = result.value;
@@ -1968,6 +1999,7 @@ var $ZodArray = /*@__PURE__*/ $constructor("$ZodArray", (inst, def) => {
1968
1999
  if (proms.length) return Promise.all(proms).then(() => payload);
1969
2000
  return payload;
1970
2001
  };
2002
+ capSize(inst, arraySize);
1971
2003
  });
1972
2004
  function handlePropertyResult(result, final, key, input, optin, optout) {
1973
2005
  const isPresent = key in input;
@@ -2886,7 +2918,7 @@ function handleRefineResult(result, payload, input, inst) {
2886
2918
  }
2887
2919
  }
2888
2920
  //#endregion
2889
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
2921
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/memoizer.js
2890
2922
  var $ZodCyclicError = class extends Error {
2891
2923
  constructor() {
2892
2924
  super(`Cannot parse a reference cycle that closes through a transform`);
@@ -3139,7 +3171,7 @@ function isBackEdge(ctx, value) {
3139
3171
  return backEdges !== void 0 && isRef(value) && backEdges.has(value);
3140
3172
  }
3141
3173
  //#endregion
3142
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/locales/en.js
3174
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/locales/en.js
3143
3175
  var error = () => {
3144
3176
  const Sizable = {
3145
3177
  string: {
@@ -3247,7 +3279,7 @@ function en_default() {
3247
3279
  return { localeError: error() };
3248
3280
  }
3249
3281
  //#endregion
3250
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/registries.js
3282
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/registries.js
3251
3283
  var _a;
3252
3284
  var $ZodRegistry = class {
3253
3285
  constructor() {
@@ -3294,7 +3326,7 @@ function registry() {
3294
3326
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
3295
3327
  var globalRegistry = globalThis.__zod_globalRegistry;
3296
3328
  //#endregion
3297
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/api.js
3329
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/api.js
3298
3330
  function snapshotChecks(def) {
3299
3331
  if (def.checks) def.checks = [...def.checks];
3300
3332
  return def;
@@ -3810,7 +3842,7 @@ function _check(fn, params) {
3810
3842
  return ch;
3811
3843
  }
3812
3844
  //#endregion
3813
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
3845
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/to-json-schema.js
3814
3846
  function assignProps(target, ...sources) {
3815
3847
  for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
3816
3848
  return target;
@@ -4254,7 +4286,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
4254
4286
  return finalize(ctx, schema);
4255
4287
  };
4256
4288
  //#endregion
4257
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
4289
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/core/json-schema-processors.js
4258
4290
  var narrowMin = (agg, key, value) => {
4259
4291
  if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
4260
4292
  };
@@ -4900,7 +4932,7 @@ function toJSONSchema(input, params) {
4900
4932
  return finalize(ctx, input);
4901
4933
  }
4902
4934
  //#endregion
4903
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/errors.js
4935
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/errors.js
4904
4936
  var _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
4905
4937
  function _lazyMethod(proto, key, make) {
4906
4938
  Object.defineProperty(proto, key, {
@@ -4951,7 +4983,7 @@ var initializer = (inst, issues) => {
4951
4983
  var ZodError = /*@__PURE__*/ $constructor("ZodError", initializer);
4952
4984
  var ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
4953
4985
  //#endregion
4954
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/parse.js
4986
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/parse.js
4955
4987
  var parse = /* @__PURE__ */ _parse(ZodRealError);
4956
4988
  var parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
4957
4989
  var safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -4965,7 +4997,7 @@ var safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
4965
4997
  var safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
4966
4998
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
4967
4999
  //#endregion
4968
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
5000
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/schemas.js
4969
5001
  function _ensureDefaultLocale() {
4970
5002
  if (!globalConfig.localeError) config(en_default());
4971
5003
  }
@@ -5897,11 +5929,37 @@ function preprocess(fn, schema) {
5897
5929
  });
5898
5930
  }
5899
5931
  //#endregion
5900
- //#region ../../node_modules/.bun/zod@4.6.5/node_modules/zod/v4/classic/iso.js
5932
+ //#region ../../node_modules/.bun/zod@4.6.7/node_modules/zod/v4/classic/iso.js
5901
5933
  function datetime(params) {
5902
5934
  return /* @__PURE__ */ _isoDateTime(ZodISODateTime, params);
5903
5935
  }
5904
5936
  //#endregion
5937
+ //#region src/flow/common/requestParameters.ts
5938
+ var requestParameterSchema = strictObject({
5939
+ mode: _enum(["fields", "object"]).default("fields"),
5940
+ names: array(string()).default([])
5941
+ });
5942
+ var connectorProxyExecutorSchema = strictObject({
5943
+ providerId: string().min(1),
5944
+ connectionId: string().optional(),
5945
+ method: _enum([
5946
+ "GET",
5947
+ "POST",
5948
+ "PUT",
5949
+ "PATCH",
5950
+ "DELETE"
5951
+ ]).default("GET"),
5952
+ query: requestParameterSchema.default({
5953
+ mode: "fields",
5954
+ names: []
5955
+ }),
5956
+ headers: requestParameterSchema.default({
5957
+ mode: "fields",
5958
+ names: []
5959
+ }),
5960
+ bodyFormat: _enum(["none", "json"]).default("none")
5961
+ }).extend({ kind: literal("connector-proxy") });
5962
+ //#endregion
5905
5963
  //#region src/json-schema-subset/utils.ts
5906
5964
  var nextId = 0;
5907
5965
  function createId() {
@@ -8787,12 +8845,6 @@ var httpHostPattern = /^(?:\*\.)?(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0
8787
8845
  function isHttpHost(value) {
8788
8846
  return httpHostPattern.test(value) && (!value.startsWith("*.") || value.slice(2).includes("."));
8789
8847
  }
8790
- //#endregion
8791
- //#region src/http/common/httpRequest.ts
8792
- var parameterSchema = strictObject({
8793
- mode: _enum(["fields", "object"]).default("fields"),
8794
- names: array(string()).default([])
8795
- });
8796
8848
  var httpRequestExecutorSchema = strictObject({
8797
8849
  method: _enum([
8798
8850
  "GET",
@@ -8803,11 +8855,11 @@ var httpRequestExecutorSchema = strictObject({
8803
8855
  "HEAD",
8804
8856
  "OPTIONS"
8805
8857
  ]).default("GET"),
8806
- query: parameterSchema.default({
8858
+ query: requestParameterSchema.default({
8807
8859
  mode: "fields",
8808
8860
  names: []
8809
8861
  }),
8810
- headers: parameterSchema.default({
8862
+ headers: requestParameterSchema.default({
8811
8863
  mode: "fields",
8812
8864
  names: []
8813
8865
  }),
@@ -8995,7 +9047,7 @@ var webhookResponseTimeout = {
8995
9047
  }).jsonSchema;
8996
9048
  //#endregion
8997
9049
  //#region src/flow/common/changeSchema.ts
8998
- var currentFlowModelVersion = 13;
9050
+ var currentFlowModelVersion = 14;
8999
9051
  var text = string();
9000
9052
  var actionConnection = text.describe("Account selection: omit while unconfigured; use an account ID to select it; use \"\" to explicitly defer configuration. Deferred Actions fail if called; deferred Agent tools are excluded from the callable tool set. Not supported by Triggers.");
9001
9053
  var json = json$1();
@@ -9194,7 +9246,8 @@ var managedFields = object({
9194
9246
  revisionId: text
9195
9247
  }),
9196
9248
  httpRequestExecutorSchema,
9197
- skipDuplicatesExecutorSchema
9249
+ skipDuplicatesExecutorSchema,
9250
+ connectorProxyExecutorSchema
9198
9251
  ])
9199
9252
  });
9200
9253
  var managed = managedFields.transform(limitDecisionTask);
@@ -9465,7 +9518,8 @@ var revision = object({
9465
9518
  literal(10),
9466
9519
  literal(11),
9467
9520
  literal(12),
9468
- literal(13)
9521
+ literal(13),
9522
+ literal(14)
9469
9523
  ]),
9470
9524
  document,
9471
9525
  modules: record$1(text, module)
@@ -9690,6 +9744,7 @@ function changeOperationsSchema(kind) {
9690
9744
  return toJSONSchema(schema, { io: "input" });
9691
9745
  }
9692
9746
  function checkModelVersion(content) {
9747
+ if (content.modelVersion < 14 && Object.values(content.document.graph.nodes).some((candidateNode) => candidateNode.kind === "task" && "executor" in candidateNode.task && candidateNode.task.executor.kind === "connector-proxy")) throw new TypeError("Custom API Request requires Flow model v14.");
9693
9748
  if (content.modelVersion < 13 && Object.values(content.document.graph.nodes).some((candidateNode) => candidateNode.kind === "task" && "executor" in candidateNode.task && candidateNode.task.executor.kind === "skip-duplicates")) throw new Error("Skip Duplicates requires Flow model v13.");
9694
9749
  if (content.modelVersion < 12 && Object.values(content.document.graph.nodes).some((candidateNode) => candidateNode.kind == "task" && "moduleId" in candidateNode.task && candidateNode.task.capabilities?.some((item) => item.kind == "http"))) throw new TypeError("Code HTTP access requires Flow model version 12.");
9695
9750
  if (content.modelVersion < 11 && Object.values(content.document.graph.nodes).some((candidateNode) => candidateNode.kind == "task" && "executor" in candidateNode.task && candidateNode.task.executor.kind == "http-request")) throw new TypeError("HTTP Request requires Flow model version 11.");
@@ -9789,7 +9844,7 @@ var nodeErrorSchema = {
9789
9844
  }
9790
9845
  };
9791
9846
  function supportsNodeErrorHandling(node) {
9792
- return supportsNodeRetry(node) || node.kind === "task" && "executor" in node.task && node.task.executor.kind === "skip-duplicates";
9847
+ return supportsNodeRetry(node) || node.kind === "task" && "executor" in node.task && ["skip-duplicates", "connector-proxy"].includes(node.task.executor.kind);
9793
9848
  }
9794
9849
  function nodeSystemOutputPorts(node) {
9795
9850
  return supportsNodeErrorHandling(node) && node.onError == "error" ? { error: {
@@ -9970,10 +10025,10 @@ function upgradeRevisionContent(content) {
9970
10025
  function upgradeDecodedRevisionContent(content) {
9971
10026
  const graph = content.document.graph;
9972
10027
  const hasManual = Object.values(graph.nodes).some((node) => node.kind == "manual");
9973
- if (!hasManual && content.modelVersion == 13) return content;
10028
+ if (!hasManual && content.modelVersion == 14) return content;
9974
10029
  return {
9975
10030
  ...content,
9976
- modelVersion: 13,
10031
+ modelVersion: 14,
9977
10032
  document: {
9978
10033
  ...content.document,
9979
10034
  graph: hasManual ? {
@@ -10020,7 +10075,7 @@ function invalid(message) {
10020
10075
  throw new FlowChangeError(message);
10021
10076
  }
10022
10077
  function applyFlowChanges(content, operations) {
10023
- const source = content.modelVersion != 13 || Object.values(content.document.graph.nodes).some((node) => node.kind == "manual") ? decodeRevisionContent(content) : content;
10078
+ const source = content.modelVersion != 14 || Object.values(content.document.graph.nodes).some((node) => node.kind == "manual") ? decodeRevisionContent(content) : content;
10024
10079
  const document = { ...source.document };
10025
10080
  const modules = { ...source.modules };
10026
10081
  for (const operation of operations) switch (operation.kind) {
@@ -10468,7 +10523,7 @@ function applyFlowChanges(content, operations) {
10468
10523
  assertDocumentHttpAuthBindings(document);
10469
10524
  return upgradeDecodedRevisionContent({
10470
10525
  document,
10471
- modelVersion: 13,
10526
+ modelVersion: 14,
10472
10527
  modules
10473
10528
  });
10474
10529
  }
@@ -6,7 +6,7 @@ export interface ConnectionUsage {
6
6
  readonly triggerId?: string;
7
7
  readonly nodeId: string;
8
8
  readonly name: string;
9
- readonly kind: 'connector' | 'agent' | 'trigger' | 'notification' | 'code';
9
+ readonly kind: 'connector' | 'connector-proxy' | 'agent' | 'trigger' | 'notification' | 'code';
10
10
  }
11
11
  export declare function connectionUsage(document: FlowDocument): readonly ConnectionUsage[];
12
12
  export declare function removeConnectionUsage(content: RevisionContent, connectionId: string): RevisionContent;