@turbofy-ai/app-runtime 0.0.18 → 0.0.20

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/src/dsl.js CHANGED
@@ -28,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  mod
29
29
  ));
30
30
 
31
- // ../../../my.graphapi.io/node_modules/short-unique-id/dist/short-unique-id.js
31
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/short-unique-id/dist/short-unique-id.js
32
32
  var require_short_unique_id = __commonJS({
33
- "../../../my.graphapi.io/node_modules/short-unique-id/dist/short-unique-id.js"(exports, module) {
33
+ "../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/short-unique-id/dist/short-unique-id.js"(exports, module) {
34
34
  "use strict";
35
35
  var ShortUniqueId2 = (() => {
36
36
  var __defProp2 = Object.defineProperty;
@@ -637,7 +637,7 @@ function blockDynamicDataCode(blockTypeTableId) {
637
637
  ].join("\n");
638
638
  }
639
639
 
640
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/external.js
640
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/external.js
641
641
  var external_exports = {};
642
642
  __export(external_exports, {
643
643
  $brand: () => $brand,
@@ -878,7 +878,7 @@ __export(external_exports, {
878
878
  xor: () => xor
879
879
  });
880
880
 
881
- // ../../../my.graphapi.io/node_modules/zod/v4/core/index.js
881
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/index.js
882
882
  var core_exports2 = {};
883
883
  __export(core_exports2, {
884
884
  $ZodAny: () => $ZodAny,
@@ -1156,7 +1156,7 @@ __export(core_exports2, {
1156
1156
  version: () => version
1157
1157
  });
1158
1158
 
1159
- // ../../../my.graphapi.io/node_modules/zod/v4/core/core.js
1159
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/core.js
1160
1160
  var NEVER = Object.freeze({
1161
1161
  status: "aborted"
1162
1162
  });
@@ -1231,7 +1231,7 @@ function config(newConfig) {
1231
1231
  return globalConfig;
1232
1232
  }
1233
1233
 
1234
- // ../../../my.graphapi.io/node_modules/zod/v4/core/util.js
1234
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/util.js
1235
1235
  var util_exports = {};
1236
1236
  __export(util_exports, {
1237
1237
  BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
@@ -1910,7 +1910,7 @@ var Class = class {
1910
1910
  }
1911
1911
  };
1912
1912
 
1913
- // ../../../my.graphapi.io/node_modules/zod/v4/core/errors.js
1913
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/errors.js
1914
1914
  var initializer = (inst, def) => {
1915
1915
  inst.name = "$ZodError";
1916
1916
  Object.defineProperty(inst, "_zod", {
@@ -2046,7 +2046,7 @@ function prettifyError(error48) {
2046
2046
  return lines.join("\n");
2047
2047
  }
2048
2048
 
2049
- // ../../../my.graphapi.io/node_modules/zod/v4/core/parse.js
2049
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/parse.js
2050
2050
  var _parse = (_Err) => (schema, value, _ctx, _params) => {
2051
2051
  const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
2052
2052
  const result = schema._zod.run({ value, issues: [] }, ctx);
@@ -2134,7 +2134,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
2134
2134
  };
2135
2135
  var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
2136
2136
 
2137
- // ../../../my.graphapi.io/node_modules/zod/v4/core/regexes.js
2137
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/regexes.js
2138
2138
  var regexes_exports = {};
2139
2139
  __export(regexes_exports, {
2140
2140
  base64: () => base64,
@@ -2291,7 +2291,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
2291
2291
  var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
2292
2292
  var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
2293
2293
 
2294
- // ../../../my.graphapi.io/node_modules/zod/v4/core/checks.js
2294
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/checks.js
2295
2295
  var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
2296
2296
  var _a2;
2297
2297
  inst._zod ?? (inst._zod = {});
@@ -2839,7 +2839,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
2839
2839
  };
2840
2840
  });
2841
2841
 
2842
- // ../../../my.graphapi.io/node_modules/zod/v4/core/doc.js
2842
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/doc.js
2843
2843
  var Doc = class {
2844
2844
  constructor(args = []) {
2845
2845
  this.content = [];
@@ -2875,14 +2875,14 @@ var Doc = class {
2875
2875
  }
2876
2876
  };
2877
2877
 
2878
- // ../../../my.graphapi.io/node_modules/zod/v4/core/versions.js
2878
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/versions.js
2879
2879
  var version = {
2880
2880
  major: 4,
2881
2881
  minor: 3,
2882
2882
  patch: 6
2883
2883
  };
2884
2884
 
2885
- // ../../../my.graphapi.io/node_modules/zod/v4/core/schemas.js
2885
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/schemas.js
2886
2886
  var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
2887
2887
  var _a2;
2888
2888
  inst ?? (inst = {});
@@ -4853,7 +4853,7 @@ function handleRefineResult(result, payload, input, inst) {
4853
4853
  }
4854
4854
  }
4855
4855
 
4856
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/index.js
4856
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/index.js
4857
4857
  var locales_exports = {};
4858
4858
  __export(locales_exports, {
4859
4859
  ar: () => ar_default,
@@ -4907,7 +4907,7 @@ __export(locales_exports, {
4907
4907
  zhTW: () => zh_TW_default
4908
4908
  });
4909
4909
 
4910
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ar.js
4910
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ar.js
4911
4911
  var error = () => {
4912
4912
  const Sizable = {
4913
4913
  string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
@@ -5014,7 +5014,7 @@ function ar_default() {
5014
5014
  };
5015
5015
  }
5016
5016
 
5017
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/az.js
5017
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/az.js
5018
5018
  var error2 = () => {
5019
5019
  const Sizable = {
5020
5020
  string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
@@ -5120,7 +5120,7 @@ function az_default() {
5120
5120
  };
5121
5121
  }
5122
5122
 
5123
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/be.js
5123
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/be.js
5124
5124
  function getBelarusianPlural(count, one, few, many) {
5125
5125
  const absCount = Math.abs(count);
5126
5126
  const lastDigit = absCount % 10;
@@ -5277,7 +5277,7 @@ function be_default() {
5277
5277
  };
5278
5278
  }
5279
5279
 
5280
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/bg.js
5280
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/bg.js
5281
5281
  var error4 = () => {
5282
5282
  const Sizable = {
5283
5283
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
@@ -5398,7 +5398,7 @@ function bg_default() {
5398
5398
  };
5399
5399
  }
5400
5400
 
5401
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ca.js
5401
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ca.js
5402
5402
  var error5 = () => {
5403
5403
  const Sizable = {
5404
5404
  string: { unit: "car\xE0cters", verb: "contenir" },
@@ -5507,7 +5507,7 @@ function ca_default() {
5507
5507
  };
5508
5508
  }
5509
5509
 
5510
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/cs.js
5510
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/cs.js
5511
5511
  var error6 = () => {
5512
5512
  const Sizable = {
5513
5513
  string: { unit: "znak\u016F", verb: "m\xEDt" },
@@ -5619,7 +5619,7 @@ function cs_default() {
5619
5619
  };
5620
5620
  }
5621
5621
 
5622
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/da.js
5622
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/da.js
5623
5623
  var error7 = () => {
5624
5624
  const Sizable = {
5625
5625
  string: { unit: "tegn", verb: "havde" },
@@ -5735,7 +5735,7 @@ function da_default() {
5735
5735
  };
5736
5736
  }
5737
5737
 
5738
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/de.js
5738
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/de.js
5739
5739
  var error8 = () => {
5740
5740
  const Sizable = {
5741
5741
  string: { unit: "Zeichen", verb: "zu haben" },
@@ -5844,7 +5844,7 @@ function de_default() {
5844
5844
  };
5845
5845
  }
5846
5846
 
5847
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/en.js
5847
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/en.js
5848
5848
  var error9 = () => {
5849
5849
  const Sizable = {
5850
5850
  string: { unit: "characters", verb: "to have" },
@@ -5953,7 +5953,7 @@ function en_default() {
5953
5953
  };
5954
5954
  }
5955
5955
 
5956
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/eo.js
5956
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/eo.js
5957
5957
  var error10 = () => {
5958
5958
  const Sizable = {
5959
5959
  string: { unit: "karaktrojn", verb: "havi" },
@@ -6063,7 +6063,7 @@ function eo_default() {
6063
6063
  };
6064
6064
  }
6065
6065
 
6066
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/es.js
6066
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/es.js
6067
6067
  var error11 = () => {
6068
6068
  const Sizable = {
6069
6069
  string: { unit: "caracteres", verb: "tener" },
@@ -6196,7 +6196,7 @@ function es_default() {
6196
6196
  };
6197
6197
  }
6198
6198
 
6199
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/fa.js
6199
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/fa.js
6200
6200
  var error12 = () => {
6201
6201
  const Sizable = {
6202
6202
  string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
@@ -6311,7 +6311,7 @@ function fa_default() {
6311
6311
  };
6312
6312
  }
6313
6313
 
6314
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/fi.js
6314
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/fi.js
6315
6315
  var error13 = () => {
6316
6316
  const Sizable = {
6317
6317
  string: { unit: "merkki\xE4", subject: "merkkijonon" },
@@ -6424,7 +6424,7 @@ function fi_default() {
6424
6424
  };
6425
6425
  }
6426
6426
 
6427
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/fr.js
6427
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/fr.js
6428
6428
  var error14 = () => {
6429
6429
  const Sizable = {
6430
6430
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -6533,7 +6533,7 @@ function fr_default() {
6533
6533
  };
6534
6534
  }
6535
6535
 
6536
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/fr-CA.js
6536
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/fr-CA.js
6537
6537
  var error15 = () => {
6538
6538
  const Sizable = {
6539
6539
  string: { unit: "caract\xE8res", verb: "avoir" },
@@ -6641,7 +6641,7 @@ function fr_CA_default() {
6641
6641
  };
6642
6642
  }
6643
6643
 
6644
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/he.js
6644
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/he.js
6645
6645
  var error16 = () => {
6646
6646
  const TypeNames = {
6647
6647
  string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
@@ -6836,7 +6836,7 @@ function he_default() {
6836
6836
  };
6837
6837
  }
6838
6838
 
6839
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/hu.js
6839
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/hu.js
6840
6840
  var error17 = () => {
6841
6841
  const Sizable = {
6842
6842
  string: { unit: "karakter", verb: "legyen" },
@@ -6945,7 +6945,7 @@ function hu_default() {
6945
6945
  };
6946
6946
  }
6947
6947
 
6948
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/hy.js
6948
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/hy.js
6949
6949
  function getArmenianPlural(count, one, many) {
6950
6950
  return Math.abs(count) === 1 ? one : many;
6951
6951
  }
@@ -7093,7 +7093,7 @@ function hy_default() {
7093
7093
  };
7094
7094
  }
7095
7095
 
7096
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/id.js
7096
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/id.js
7097
7097
  var error19 = () => {
7098
7098
  const Sizable = {
7099
7099
  string: { unit: "karakter", verb: "memiliki" },
@@ -7200,7 +7200,7 @@ function id_default() {
7200
7200
  };
7201
7201
  }
7202
7202
 
7203
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/is.js
7203
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/is.js
7204
7204
  var error20 = () => {
7205
7205
  const Sizable = {
7206
7206
  string: { unit: "stafi", verb: "a\xF0 hafa" },
@@ -7310,7 +7310,7 @@ function is_default() {
7310
7310
  };
7311
7311
  }
7312
7312
 
7313
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/it.js
7313
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/it.js
7314
7314
  var error21 = () => {
7315
7315
  const Sizable = {
7316
7316
  string: { unit: "caratteri", verb: "avere" },
@@ -7419,7 +7419,7 @@ function it_default() {
7419
7419
  };
7420
7420
  }
7421
7421
 
7422
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ja.js
7422
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ja.js
7423
7423
  var error22 = () => {
7424
7424
  const Sizable = {
7425
7425
  string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
@@ -7527,7 +7527,7 @@ function ja_default() {
7527
7527
  };
7528
7528
  }
7529
7529
 
7530
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ka.js
7530
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ka.js
7531
7531
  var error23 = () => {
7532
7532
  const Sizable = {
7533
7533
  string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
@@ -7640,7 +7640,7 @@ function ka_default() {
7640
7640
  };
7641
7641
  }
7642
7642
 
7643
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/km.js
7643
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/km.js
7644
7644
  var error24 = () => {
7645
7645
  const Sizable = {
7646
7646
  string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
@@ -7751,12 +7751,12 @@ function km_default() {
7751
7751
  };
7752
7752
  }
7753
7753
 
7754
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/kh.js
7754
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/kh.js
7755
7755
  function kh_default() {
7756
7756
  return km_default();
7757
7757
  }
7758
7758
 
7759
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ko.js
7759
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ko.js
7760
7760
  var error25 = () => {
7761
7761
  const Sizable = {
7762
7762
  string: { unit: "\uBB38\uC790", verb: "to have" },
@@ -7868,7 +7868,7 @@ function ko_default() {
7868
7868
  };
7869
7869
  }
7870
7870
 
7871
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/lt.js
7871
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/lt.js
7872
7872
  var capitalizeFirstCharacter = (text) => {
7873
7873
  return text.charAt(0).toUpperCase() + text.slice(1);
7874
7874
  };
@@ -8072,7 +8072,7 @@ function lt_default() {
8072
8072
  };
8073
8073
  }
8074
8074
 
8075
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/mk.js
8075
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/mk.js
8076
8076
  var error27 = () => {
8077
8077
  const Sizable = {
8078
8078
  string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
@@ -8182,7 +8182,7 @@ function mk_default() {
8182
8182
  };
8183
8183
  }
8184
8184
 
8185
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ms.js
8185
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ms.js
8186
8186
  var error28 = () => {
8187
8187
  const Sizable = {
8188
8188
  string: { unit: "aksara", verb: "mempunyai" },
@@ -8290,7 +8290,7 @@ function ms_default() {
8290
8290
  };
8291
8291
  }
8292
8292
 
8293
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/nl.js
8293
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/nl.js
8294
8294
  var error29 = () => {
8295
8295
  const Sizable = {
8296
8296
  string: { unit: "tekens", verb: "heeft" },
@@ -8401,7 +8401,7 @@ function nl_default() {
8401
8401
  };
8402
8402
  }
8403
8403
 
8404
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/no.js
8404
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/no.js
8405
8405
  var error30 = () => {
8406
8406
  const Sizable = {
8407
8407
  string: { unit: "tegn", verb: "\xE5 ha" },
@@ -8510,7 +8510,7 @@ function no_default() {
8510
8510
  };
8511
8511
  }
8512
8512
 
8513
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ota.js
8513
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ota.js
8514
8514
  var error31 = () => {
8515
8515
  const Sizable = {
8516
8516
  string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
@@ -8620,7 +8620,7 @@ function ota_default() {
8620
8620
  };
8621
8621
  }
8622
8622
 
8623
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ps.js
8623
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ps.js
8624
8624
  var error32 = () => {
8625
8625
  const Sizable = {
8626
8626
  string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
@@ -8735,7 +8735,7 @@ function ps_default() {
8735
8735
  };
8736
8736
  }
8737
8737
 
8738
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/pl.js
8738
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/pl.js
8739
8739
  var error33 = () => {
8740
8740
  const Sizable = {
8741
8741
  string: { unit: "znak\xF3w", verb: "mie\u0107" },
@@ -8845,7 +8845,7 @@ function pl_default() {
8845
8845
  };
8846
8846
  }
8847
8847
 
8848
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/pt.js
8848
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/pt.js
8849
8849
  var error34 = () => {
8850
8850
  const Sizable = {
8851
8851
  string: { unit: "caracteres", verb: "ter" },
@@ -8954,7 +8954,7 @@ function pt_default() {
8954
8954
  };
8955
8955
  }
8956
8956
 
8957
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ru.js
8957
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ru.js
8958
8958
  function getRussianPlural(count, one, few, many) {
8959
8959
  const absCount = Math.abs(count);
8960
8960
  const lastDigit = absCount % 10;
@@ -9111,7 +9111,7 @@ function ru_default() {
9111
9111
  };
9112
9112
  }
9113
9113
 
9114
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/sl.js
9114
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/sl.js
9115
9115
  var error36 = () => {
9116
9116
  const Sizable = {
9117
9117
  string: { unit: "znakov", verb: "imeti" },
@@ -9221,7 +9221,7 @@ function sl_default() {
9221
9221
  };
9222
9222
  }
9223
9223
 
9224
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/sv.js
9224
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/sv.js
9225
9225
  var error37 = () => {
9226
9226
  const Sizable = {
9227
9227
  string: { unit: "tecken", verb: "att ha" },
@@ -9332,7 +9332,7 @@ function sv_default() {
9332
9332
  };
9333
9333
  }
9334
9334
 
9335
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ta.js
9335
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ta.js
9336
9336
  var error38 = () => {
9337
9337
  const Sizable = {
9338
9338
  string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
@@ -9443,7 +9443,7 @@ function ta_default() {
9443
9443
  };
9444
9444
  }
9445
9445
 
9446
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/th.js
9446
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/th.js
9447
9447
  var error39 = () => {
9448
9448
  const Sizable = {
9449
9449
  string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
@@ -9554,7 +9554,7 @@ function th_default() {
9554
9554
  };
9555
9555
  }
9556
9556
 
9557
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/tr.js
9557
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/tr.js
9558
9558
  var error40 = () => {
9559
9559
  const Sizable = {
9560
9560
  string: { unit: "karakter", verb: "olmal\u0131" },
@@ -9660,7 +9660,7 @@ function tr_default() {
9660
9660
  };
9661
9661
  }
9662
9662
 
9663
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/uk.js
9663
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/uk.js
9664
9664
  var error41 = () => {
9665
9665
  const Sizable = {
9666
9666
  string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
@@ -9769,12 +9769,12 @@ function uk_default() {
9769
9769
  };
9770
9770
  }
9771
9771
 
9772
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ua.js
9772
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ua.js
9773
9773
  function ua_default() {
9774
9774
  return uk_default();
9775
9775
  }
9776
9776
 
9777
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/ur.js
9777
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/ur.js
9778
9778
  var error42 = () => {
9779
9779
  const Sizable = {
9780
9780
  string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
@@ -9885,7 +9885,7 @@ function ur_default() {
9885
9885
  };
9886
9886
  }
9887
9887
 
9888
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/uz.js
9888
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/uz.js
9889
9889
  var error43 = () => {
9890
9890
  const Sizable = {
9891
9891
  string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
@@ -9995,7 +9995,7 @@ function uz_default() {
9995
9995
  };
9996
9996
  }
9997
9997
 
9998
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/vi.js
9998
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/vi.js
9999
9999
  var error44 = () => {
10000
10000
  const Sizable = {
10001
10001
  string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
@@ -10104,7 +10104,7 @@ function vi_default() {
10104
10104
  };
10105
10105
  }
10106
10106
 
10107
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/zh-CN.js
10107
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/zh-CN.js
10108
10108
  var error45 = () => {
10109
10109
  const Sizable = {
10110
10110
  string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
@@ -10214,7 +10214,7 @@ function zh_CN_default() {
10214
10214
  };
10215
10215
  }
10216
10216
 
10217
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/zh-TW.js
10217
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/zh-TW.js
10218
10218
  var error46 = () => {
10219
10219
  const Sizable = {
10220
10220
  string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
@@ -10322,7 +10322,7 @@ function zh_TW_default() {
10322
10322
  };
10323
10323
  }
10324
10324
 
10325
- // ../../../my.graphapi.io/node_modules/zod/v4/locales/yo.js
10325
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/locales/yo.js
10326
10326
  var error47 = () => {
10327
10327
  const Sizable = {
10328
10328
  string: { unit: "\xE0mi", verb: "n\xED" },
@@ -10430,7 +10430,7 @@ function yo_default() {
10430
10430
  };
10431
10431
  }
10432
10432
 
10433
- // ../../../my.graphapi.io/node_modules/zod/v4/core/registries.js
10433
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/registries.js
10434
10434
  var _a;
10435
10435
  var $output = /* @__PURE__ */ Symbol("ZodOutput");
10436
10436
  var $input = /* @__PURE__ */ Symbol("ZodInput");
@@ -10480,7 +10480,7 @@ function registry() {
10480
10480
  (_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
10481
10481
  var globalRegistry = globalThis.__zod_globalRegistry;
10482
10482
 
10483
- // ../../../my.graphapi.io/node_modules/zod/v4/core/api.js
10483
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/api.js
10484
10484
  // @__NO_SIDE_EFFECTS__
10485
10485
  function _string(Class2, params) {
10486
10486
  return new Class2({
@@ -11519,7 +11519,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
11519
11519
  return inst;
11520
11520
  }
11521
11521
 
11522
- // ../../../my.graphapi.io/node_modules/zod/v4/core/to-json-schema.js
11522
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/to-json-schema.js
11523
11523
  function initializeContext(params) {
11524
11524
  let target = params?.target ?? "draft-2020-12";
11525
11525
  if (target === "draft-4")
@@ -11635,7 +11635,7 @@ function extractDefs(ctx, schema) {
11635
11635
  return;
11636
11636
  }
11637
11637
  const seen = entry[1];
11638
- const { ref: ref2, defId } = makeURI(entry);
11638
+ const { ref: ref3, defId } = makeURI(entry);
11639
11639
  seen.def = { ...seen.schema };
11640
11640
  if (defId)
11641
11641
  seen.defId = defId;
@@ -11643,7 +11643,7 @@ function extractDefs(ctx, schema) {
11643
11643
  for (const key in schema2) {
11644
11644
  delete schema2[key];
11645
11645
  }
11646
- schema2.$ref = ref2;
11646
+ schema2.$ref = ref3;
11647
11647
  };
11648
11648
  if (ctx.cycles === "throw") {
11649
11649
  for (const entry of ctx.seen.entries()) {
@@ -11695,11 +11695,11 @@ function finalize(ctx, schema) {
11695
11695
  return;
11696
11696
  const schema2 = seen.def ?? seen.schema;
11697
11697
  const _cached = { ...schema2 };
11698
- const ref2 = seen.ref;
11698
+ const ref3 = seen.ref;
11699
11699
  seen.ref = null;
11700
- if (ref2) {
11701
- flattenRef(ref2);
11702
- const refSeen = ctx.seen.get(ref2);
11700
+ if (ref3) {
11701
+ flattenRef(ref3);
11702
+ const refSeen = ctx.seen.get(ref3);
11703
11703
  const refSchema = refSeen.schema;
11704
11704
  if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
11705
11705
  schema2.allOf = schema2.allOf ?? [];
@@ -11708,7 +11708,7 @@ function finalize(ctx, schema) {
11708
11708
  Object.assign(schema2, refSchema);
11709
11709
  }
11710
11710
  Object.assign(schema2, _cached);
11711
- const isParentRef = zodSchema._zod.parent === ref2;
11711
+ const isParentRef = zodSchema._zod.parent === ref3;
11712
11712
  if (isParentRef) {
11713
11713
  for (const key in schema2) {
11714
11714
  if (key === "$ref" || key === "allOf")
@@ -11729,7 +11729,7 @@ function finalize(ctx, schema) {
11729
11729
  }
11730
11730
  }
11731
11731
  const parent = zodSchema._zod.parent;
11732
- if (parent && parent !== ref2) {
11732
+ if (parent && parent !== ref3) {
11733
11733
  flattenRef(parent);
11734
11734
  const parentSeen = ctx.seen.get(parent);
11735
11735
  if (parentSeen?.schema.$ref) {
@@ -11871,7 +11871,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
11871
11871
  return finalize(ctx, schema);
11872
11872
  };
11873
11873
 
11874
- // ../../../my.graphapi.io/node_modules/zod/v4/core/json-schema-processors.js
11874
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/json-schema-processors.js
11875
11875
  var formatMap = {
11876
11876
  guid: "uuid",
11877
11877
  url: "uri",
@@ -12422,7 +12422,7 @@ function toJSONSchema(input, params) {
12422
12422
  return finalize(ctx, input);
12423
12423
  }
12424
12424
 
12425
- // ../../../my.graphapi.io/node_modules/zod/v4/core/json-schema-generator.js
12425
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/json-schema-generator.js
12426
12426
  var JSONSchemaGenerator = class {
12427
12427
  /** @deprecated Access via ctx instead */
12428
12428
  get metadataRegistry() {
@@ -12497,10 +12497,10 @@ var JSONSchemaGenerator = class {
12497
12497
  }
12498
12498
  };
12499
12499
 
12500
- // ../../../my.graphapi.io/node_modules/zod/v4/core/json-schema.js
12500
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/core/json-schema.js
12501
12501
  var json_schema_exports = {};
12502
12502
 
12503
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/schemas.js
12503
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/schemas.js
12504
12504
  var schemas_exports2 = {};
12505
12505
  __export(schemas_exports2, {
12506
12506
  ZodAny: () => ZodAny,
@@ -12669,7 +12669,7 @@ __export(schemas_exports2, {
12669
12669
  xor: () => xor
12670
12670
  });
12671
12671
 
12672
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/checks.js
12672
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/checks.js
12673
12673
  var checks_exports2 = {};
12674
12674
  __export(checks_exports2, {
12675
12675
  endsWith: () => _endsWith,
@@ -12703,7 +12703,7 @@ __export(checks_exports2, {
12703
12703
  uppercase: () => _uppercase
12704
12704
  });
12705
12705
 
12706
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/iso.js
12706
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/iso.js
12707
12707
  var iso_exports = {};
12708
12708
  __export(iso_exports, {
12709
12709
  ZodISODate: () => ZodISODate,
@@ -12744,7 +12744,7 @@ function duration2(params) {
12744
12744
  return _isoDuration(ZodISODuration, params);
12745
12745
  }
12746
12746
 
12747
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/errors.js
12747
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/errors.js
12748
12748
  var initializer2 = (inst, issues) => {
12749
12749
  $ZodError.init(inst, issues);
12750
12750
  inst.name = "ZodError";
@@ -12784,7 +12784,7 @@ var ZodRealError = $constructor("ZodError", initializer2, {
12784
12784
  Parent: Error
12785
12785
  });
12786
12786
 
12787
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/parse.js
12787
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/parse.js
12788
12788
  var parse2 = /* @__PURE__ */ _parse(ZodRealError);
12789
12789
  var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
12790
12790
  var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
@@ -12798,7 +12798,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
12798
12798
  var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
12799
12799
  var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
12800
12800
 
12801
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/schemas.js
12801
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/schemas.js
12802
12802
  var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
12803
12803
  $ZodType.init(inst, def);
12804
12804
  Object.assign(inst["~standard"], {
@@ -13877,7 +13877,7 @@ function preprocess(fn, schema) {
13877
13877
  return pipe(transform(fn), schema);
13878
13878
  }
13879
13879
 
13880
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/compat.js
13880
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/compat.js
13881
13881
  var ZodIssueCode = {
13882
13882
  invalid_type: "invalid_type",
13883
13883
  too_big: "too_big",
@@ -13903,7 +13903,7 @@ var ZodFirstPartyTypeKind;
13903
13903
  /* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
13904
13904
  })(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
13905
13905
 
13906
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/from-json-schema.js
13906
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/from-json-schema.js
13907
13907
  var z = {
13908
13908
  ...schemas_exports2,
13909
13909
  ...checks_exports2,
@@ -13993,11 +13993,11 @@ function detectVersion(schema, defaultTarget) {
13993
13993
  }
13994
13994
  return defaultTarget ?? "draft-2020-12";
13995
13995
  }
13996
- function resolveRef(ref2, ctx) {
13997
- if (!ref2.startsWith("#")) {
13996
+ function resolveRef(ref3, ctx) {
13997
+ if (!ref3.startsWith("#")) {
13998
13998
  throw new Error("External $ref is not supported, only local refs (#/...) are allowed");
13999
13999
  }
14000
- const path = ref2.slice(1).split("/").filter(Boolean);
14000
+ const path = ref3.slice(1).split("/").filter(Boolean);
14001
14001
  if (path.length === 0) {
14002
14002
  return ctx.rootSchema;
14003
14003
  }
@@ -14005,11 +14005,11 @@ function resolveRef(ref2, ctx) {
14005
14005
  if (path[0] === defsKey) {
14006
14006
  const key = path[1];
14007
14007
  if (!key || !ctx.defs[key]) {
14008
- throw new Error(`Reference not found: ${ref2}`);
14008
+ throw new Error(`Reference not found: ${ref3}`);
14009
14009
  }
14010
14010
  return ctx.defs[key];
14011
14011
  }
14012
- throw new Error(`Reference not found: ${ref2}`);
14012
+ throw new Error(`Reference not found: ${ref3}`);
14013
14013
  }
14014
14014
  function convertBaseSchema(schema, ctx) {
14015
14015
  if (schema.not !== void 0) {
@@ -14377,7 +14377,7 @@ function fromJSONSchema(schema, params) {
14377
14377
  return convertSchema(schema, ctx);
14378
14378
  }
14379
14379
 
14380
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/coerce.js
14380
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/coerce.js
14381
14381
  var coerce_exports = {};
14382
14382
  __export(coerce_exports, {
14383
14383
  bigint: () => bigint3,
@@ -14402,10 +14402,10 @@ function date4(params) {
14402
14402
  return _coercedDate(ZodDate, params);
14403
14403
  }
14404
14404
 
14405
- // ../../../my.graphapi.io/node_modules/zod/v4/classic/external.js
14405
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/v4/classic/external.js
14406
14406
  config(en_default());
14407
14407
 
14408
- // ../../../my.graphapi.io/node_modules/zod/index.js
14408
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/zod/index.js
14409
14409
  var zod_default = external_exports;
14410
14410
 
14411
14411
  // ../declarations/src/api/field-type.schema.ts
@@ -15028,6 +15028,36 @@ function build(schema) {
15028
15028
  return finalSchema;
15029
15029
  }
15030
15030
 
15031
+ // ../declarations/src/flows/schemas/branch.schema.ts
15032
+ var branchSchema = {
15033
+ params: external_exports.object({
15034
+ branches: external_exports.record(external_exports.string().min(1), external_exports.boolean())
15035
+ }),
15036
+ result: external_exports.object({
15037
+ matchedSteps: external_exports.array(external_exports.string())
15038
+ })
15039
+ };
15040
+
15041
+ // ../declarations/src/flows/schemas/for-each.schema.ts
15042
+ var MAX_FLOW_ITERATIONS = 1e4;
15043
+ var itemsSchema = external_exports.array(external_exports.unknown()).max(
15044
+ MAX_FLOW_ITERATIONS,
15045
+ `For-each supports at most ${MAX_FLOW_ITERATIONS} items`
15046
+ );
15047
+ var forEachSchema = {
15048
+ params: external_exports.object({
15049
+ items: itemsSchema,
15050
+ bodyStep: external_exports.string().min(1).nullable()
15051
+ }),
15052
+ result: external_exports.union([
15053
+ external_exports.object({
15054
+ items: itemsSchema,
15055
+ result: itemsSchema.optional()
15056
+ }),
15057
+ external_exports.object({ item: external_exports.unknown(), index: external_exports.number().int().nonnegative() })
15058
+ ])
15059
+ };
15060
+
15031
15061
  // ../declarations/src/flows/schemas/stripe-sync.schema.ts
15032
15062
  var field = external_exports.string().min(1).optional();
15033
15063
  var destination = external_exports.object({
@@ -15911,52 +15941,14 @@ var notifyWebSocketSchema = {
15911
15941
  result: resultSchema16
15912
15942
  };
15913
15943
 
15914
- // ../declarations/src/flows/schemas/openai-image-generation.schema.ts
15915
- var dallE3ParamsSchema = external_exports.object({
15916
- model: external_exports.literal("dall-e-3"),
15917
- prompt: external_exports.string(),
15918
- quality: external_exports.enum(["standard", "hd"]).optional(),
15919
- size: external_exports.enum(["1024x1024", "1792x1024", "1024x1792"]).optional(),
15920
- style: external_exports.enum(["vivid", "natural"]).optional(),
15921
- outputFilename: external_exports.string().optional(),
15922
- apiKey: external_exports.string().optional()
15923
- });
15924
- var dallE2ParamsSchema = external_exports.object({
15925
- model: external_exports.literal("dall-e-2"),
15926
- prompt: external_exports.string(),
15927
- size: external_exports.enum(["256x256", "512x512", "1024x1024"]).optional(),
15928
- n: external_exports.literal([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]).optional(),
15929
- outputFilename: external_exports.string().optional(),
15930
- apiKey: external_exports.string().optional()
15931
- });
15932
- var paramsSchema17 = external_exports.discriminatedUnion("model", [
15933
- dallE3ParamsSchema,
15934
- dallE2ParamsSchema
15935
- ]);
15936
- var resultSuccessSchema = external_exports.object({
15937
- type: external_exports.literal("result"),
15938
- url: external_exports.string(),
15939
- key: external_exports.string(),
15940
- mimeType: external_exports.string()
15941
- });
15942
- var resultErrorSchema = external_exports.object({
15943
- type: external_exports.literal("error"),
15944
- value: external_exports.string()
15945
- });
15946
- var resultSchema17 = external_exports.union([resultSuccessSchema, resultErrorSchema]);
15947
- var openAIImageGenerationSchema = {
15948
- params: paramsSchema17,
15949
- result: resultSchema17
15950
- };
15951
-
15952
15944
  // ../declarations/src/flows/schemas/type.schema.ts
15953
- var paramsSchema18 = external_exports.object({
15945
+ var paramsSchema17 = external_exports.object({
15954
15946
  id: external_exports.string(),
15955
15947
  ofType: external_exports.string(),
15956
15948
  namespace: external_exports.string().optional(),
15957
15949
  dynamicArgs: external_exports.looseObject({}).optional()
15958
15950
  });
15959
- var resultSchema18 = external_exports.object({
15951
+ var resultSchema17 = external_exports.object({
15960
15952
  id: external_exports.string(),
15961
15953
  createdAt: external_exports.string(),
15962
15954
  updatedAt: external_exports.string(),
@@ -15966,12 +15958,12 @@ var resultSchema18 = external_exports.object({
15966
15958
  directives: external_exports.array(external_exports.string())
15967
15959
  });
15968
15960
  var typeSchema = {
15969
- params: paramsSchema18,
15970
- result: resultSchema18
15961
+ params: paramsSchema17,
15962
+ result: resultSchema17
15971
15963
  };
15972
15964
 
15973
15965
  // ../declarations/src/flows/schemas/update-type.schema.ts
15974
- var paramsSchema19 = external_exports.object({
15966
+ var paramsSchema18 = external_exports.object({
15975
15967
  id: external_exports.string(),
15976
15968
  ofType: external_exports.string(),
15977
15969
  fields: external_exports.looseObject({}).optional(),
@@ -15980,7 +15972,7 @@ var paramsSchema19 = external_exports.object({
15980
15972
  directives: external_exports.array(external_exports.string()).optional(),
15981
15973
  dynamicArgs: external_exports.looseObject({}).optional()
15982
15974
  });
15983
- var resultSchema19 = external_exports.object({
15975
+ var resultSchema18 = external_exports.object({
15984
15976
  id: external_exports.string(),
15985
15977
  createdAt: external_exports.string(),
15986
15978
  updatedAt: external_exports.string(),
@@ -15989,12 +15981,14 @@ var resultSchema19 = external_exports.object({
15989
15981
  namespace: external_exports.string()
15990
15982
  });
15991
15983
  var updateTypeSchema = {
15992
- params: paramsSchema19,
15993
- result: resultSchema19
15984
+ params: paramsSchema18,
15985
+ result: resultSchema18
15994
15986
  };
15995
15987
 
15996
15988
  // ../declarations/src/flows/schemas/index.ts
15997
15989
  var schemas = {
15990
+ branch: branchSchema,
15991
+ forEach: forEachSchema,
15998
15992
  batchCreateType: batchCreateTypeSchema,
15999
15993
  batchGetType: batchGetTypeSchema,
16000
15994
  createType: createTypeSchema,
@@ -16008,7 +16002,6 @@ var schemas = {
16008
16002
  listTypeByParent: listTypeByParentSchema,
16009
16003
  listType: listTypeSchema,
16010
16004
  notifyWebSocket: notifyWebSocketSchema,
16011
- openAIImageGeneration: openAIImageGenerationSchema,
16012
16005
  type: typeSchema,
16013
16006
  updateType: updateTypeSchema,
16014
16007
  extractImageMetadata: extractImageMetadataSchema,
@@ -16163,6 +16156,124 @@ var webhookConfigSchema = external_exports.object({
16163
16156
  }
16164
16157
  });
16165
16158
 
16159
+ // ../declarations/src/flows/branch.ts
16160
+ var getBranchTargets = (step2) => {
16161
+ if (step2.type !== "branch" /* branch */) return [];
16162
+ const branches = step2.params.branches;
16163
+ if (!branches || typeof branches !== "object" || Array.isArray(branches)) {
16164
+ return [];
16165
+ }
16166
+ return Object.keys(branches);
16167
+ };
16168
+ var getForEachBodyTarget = (step2) => step2.type === "forEach" /* forEach */ && typeof step2.params.bodyStep === "string" ? step2.params.bodyStep : null;
16169
+ var getFlowStepTargets = (step2) => {
16170
+ if (step2.type === "branch" /* branch */) return getBranchTargets(step2);
16171
+ if (step2.type === "forEach" /* forEach */) {
16172
+ const body = getForEachBodyTarget(step2);
16173
+ return [body, step2.nextStep].filter(
16174
+ (target) => target !== null
16175
+ );
16176
+ }
16177
+ return step2.nextStep === null ? [] : [step2.nextStep];
16178
+ };
16179
+ var getBranchOwnershipErrors = (declaration) => {
16180
+ const owners = /* @__PURE__ */ new Map();
16181
+ const errors = [];
16182
+ const visit = (name, scope) => {
16183
+ const step2 = declaration.steps[name];
16184
+ if (!Object.hasOwn(declaration.steps, name)) return;
16185
+ const owner = JSON.stringify(scope);
16186
+ const previousOwner = owners.get(name);
16187
+ if (previousOwner !== void 0) {
16188
+ if (previousOwner !== owner) {
16189
+ errors.push({
16190
+ stepName: name,
16191
+ message: `Step "${name}" is reached from different branch paths; each step must belong to a single path`
16192
+ });
16193
+ }
16194
+ return;
16195
+ }
16196
+ owners.set(name, owner);
16197
+ if (step2.type === "forEach" /* forEach */) {
16198
+ const body = getForEachBodyTarget(step2);
16199
+ if (body !== null) visit(body, [...scope, name, body]);
16200
+ if (step2.nextStep !== null) visit(step2.nextStep, scope);
16201
+ return;
16202
+ }
16203
+ for (const target of getFlowStepTargets(step2)) {
16204
+ visit(
16205
+ target,
16206
+ step2.type === "branch" /* branch */ ? [...scope, name, target] : scope
16207
+ );
16208
+ }
16209
+ };
16210
+ if (declaration.startStep) visit(declaration.startStep, []);
16211
+ const names = Object.keys(declaration.steps);
16212
+ const targets = new Set(
16213
+ Object.values(declaration.steps).flatMap(getFlowStepTargets)
16214
+ );
16215
+ for (const name of [
16216
+ ...names.filter((name2) => !targets.has(name2)),
16217
+ ...names
16218
+ ]) {
16219
+ if (!owners.has(name)) visit(name, []);
16220
+ }
16221
+ return errors;
16222
+ };
16223
+ var getFlowReferenceErrors = (declaration) => {
16224
+ const errors = [];
16225
+ if (declaration.startStep && !Object.hasOwn(declaration.steps, declaration.startStep)) {
16226
+ errors.push({
16227
+ stepName: declaration.startStep,
16228
+ message: `Unknown start step "${declaration.startStep}"`
16229
+ });
16230
+ }
16231
+ for (const [name, step2] of Object.entries(declaration.steps)) {
16232
+ if (step2.type === "branch" /* branch */ && step2.nextStep !== null) {
16233
+ errors.push({
16234
+ stepName: name,
16235
+ message: `Branch "${name}" must have nextStep: null`
16236
+ });
16237
+ }
16238
+ for (const target of getFlowStepTargets(step2)) {
16239
+ if (!Object.hasOwn(declaration.steps, target)) {
16240
+ errors.push({
16241
+ stepName: name,
16242
+ message: `Step "${name}" points to unknown step "${target}"`
16243
+ });
16244
+ }
16245
+ }
16246
+ }
16247
+ return errors;
16248
+ };
16249
+ var getFlowCycleErrors = (declaration) => {
16250
+ const visiting = /* @__PURE__ */ new Set();
16251
+ const visited = /* @__PURE__ */ new Set();
16252
+ const errors = [];
16253
+ const visit = (name) => {
16254
+ if (visiting.has(name)) {
16255
+ errors.push({
16256
+ stepName: name,
16257
+ message: `Flow contains a cycle at step "${name}"`
16258
+ });
16259
+ return;
16260
+ }
16261
+ if (visited.has(name) || !Object.hasOwn(declaration.steps, name)) return;
16262
+ visiting.add(name);
16263
+ for (const target of getFlowStepTargets(declaration.steps[name]))
16264
+ visit(target);
16265
+ visiting.delete(name);
16266
+ visited.add(name);
16267
+ };
16268
+ for (const name of Object.keys(declaration.steps)) visit(name);
16269
+ return errors;
16270
+ };
16271
+ var getFlowGraphErrors = (declaration) => [
16272
+ ...getFlowReferenceErrors(declaration),
16273
+ ...getFlowCycleErrors(declaration),
16274
+ ...getBranchOwnershipErrors(declaration)
16275
+ ];
16276
+
16166
16277
  // .tmp/declarations.ts
16167
16278
  var PAGE_VISIBILITY = ["public", "guest", "authenticated", "group", "user"];
16168
16279
 
@@ -16178,7 +16289,7 @@ __export(app_builder_exports, {
16178
16289
  page: () => page
16179
16290
  });
16180
16291
 
16181
- // ../../../my.graphapi.io/node_modules/acorn/dist/acorn.mjs
16292
+ // ../../../../../Users/tomaszmorawski/Development/my.graphapi.io/node_modules/acorn/dist/acorn.mjs
16182
16293
  var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
16183
16294
  var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
16184
16295
  var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
@@ -16680,8 +16791,8 @@ prototypeAccessors.inAsync.get = function() {
16680
16791
  };
16681
16792
  prototypeAccessors.canAwait.get = function() {
16682
16793
  for (var i = this.scopeStack.length - 1; i >= 0; i--) {
16683
- var ref2 = this.scopeStack[i];
16684
- var flags = ref2.flags;
16794
+ var ref3 = this.scopeStack[i];
16795
+ var flags = ref3.flags;
16685
16796
  if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT)) {
16686
16797
  return false;
16687
16798
  }
@@ -16701,8 +16812,8 @@ prototypeAccessors.allowReturn.get = function() {
16701
16812
  return false;
16702
16813
  };
16703
16814
  prototypeAccessors.allowSuper.get = function() {
16704
- var ref2 = this.currentThisScope();
16705
- var flags = ref2.flags;
16815
+ var ref3 = this.currentThisScope();
16816
+ var flags = ref3.flags;
16706
16817
  return (flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod;
16707
16818
  };
16708
16819
  prototypeAccessors.allowDirectSuper.get = function() {
@@ -16713,8 +16824,8 @@ prototypeAccessors.treatFunctionsAsVar.get = function() {
16713
16824
  };
16714
16825
  prototypeAccessors.allowNewDotTarget.get = function() {
16715
16826
  for (var i = this.scopeStack.length - 1; i >= 0; i--) {
16716
- var ref2 = this.scopeStack[i];
16717
- var flags = ref2.flags;
16827
+ var ref3 = this.scopeStack[i];
16828
+ var flags = ref3.flags;
16718
16829
  if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) || flags & SCOPE_FUNCTION && !(flags & SCOPE_ARROW)) {
16719
16830
  return true;
16720
16831
  }
@@ -16722,8 +16833,8 @@ prototypeAccessors.allowNewDotTarget.get = function() {
16722
16833
  return false;
16723
16834
  };
16724
16835
  prototypeAccessors.allowUsing.get = function() {
16725
- var ref2 = this.currentScope();
16726
- var flags = ref2.flags;
16836
+ var ref3 = this.currentScope();
16837
+ var flags = ref3.flags;
16727
16838
  if (flags & SCOPE_SWITCH) {
16728
16839
  return false;
16729
16840
  }
@@ -17698,9 +17809,9 @@ pp$8.enterClassBody = function() {
17698
17809
  return element.declared;
17699
17810
  };
17700
17811
  pp$8.exitClassBody = function() {
17701
- var ref2 = this.privateNameStack.pop();
17702
- var declared = ref2.declared;
17703
- var used = ref2.used;
17812
+ var ref3 = this.privateNameStack.pop();
17813
+ var declared = ref3.declared;
17814
+ var used = ref3.used;
17704
17815
  if (!this.options.checkPrivateFields) {
17705
17816
  return;
17706
17817
  }
@@ -19058,8 +19169,8 @@ pp$5.parseNew = function() {
19058
19169
  }
19059
19170
  return this.finishNode(node, "NewExpression");
19060
19171
  };
19061
- pp$5.parseTemplateElement = function(ref2) {
19062
- var isTagged = ref2.isTagged;
19172
+ pp$5.parseTemplateElement = function(ref3) {
19173
+ var isTagged = ref3.isTagged;
19063
19174
  var elem = this.startNode();
19064
19175
  if (this.type === types$1.invalidTemplate) {
19065
19176
  if (!isTagged) {
@@ -19079,9 +19190,9 @@ pp$5.parseTemplateElement = function(ref2) {
19079
19190
  elem.tail = this.type === types$1.backQuote;
19080
19191
  return this.finishNode(elem, "TemplateElement");
19081
19192
  };
19082
- pp$5.parseTemplate = function(ref2) {
19083
- if (ref2 === void 0) ref2 = {};
19084
- var isTagged = ref2.isTagged;
19193
+ pp$5.parseTemplate = function(ref3) {
19194
+ if (ref3 === void 0) ref3 = {};
19195
+ var isTagged = ref3.isTagged;
19085
19196
  if (isTagged === void 0) isTagged = false;
19086
19197
  var node = this.startNode();
19087
19198
  this.next();
@@ -19359,10 +19470,10 @@ pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestruct
19359
19470
  }
19360
19471
  return elts;
19361
19472
  };
19362
- pp$5.checkUnreserved = function(ref2) {
19363
- var start = ref2.start;
19364
- var end = ref2.end;
19365
- var name = ref2.name;
19473
+ pp$5.checkUnreserved = function(ref3) {
19474
+ var start = ref3.start;
19475
+ var end = ref3.end;
19476
+ var name = ref3.name;
19366
19477
  if (this.inGenerator && name === "yield") {
19367
19478
  this.raiseRecoverable(start, "Cannot use 'yield' as identifier inside a generator");
19368
19479
  }
@@ -22309,7 +22420,10 @@ function buildApp(opts) {
22309
22420
  blockTypes,
22310
22421
  slugConfig: opts.slugConfig,
22311
22422
  ...i18n ? { i18n } : {},
22312
- ...opts.auth ? { auth: opts.auth } : {}
22423
+ ...opts.auth ? { auth: opts.auth } : {},
22424
+ ...opts.description ? { description: opts.description } : {},
22425
+ ...opts.color ? { color: opts.color } : {},
22426
+ ...opts.icon ? { icon: opts.icon } : {}
22313
22427
  };
22314
22428
  }
22315
22429
  function resolveI18n(opts) {
@@ -22377,6 +22491,48 @@ function validateBlockLocalizations(pages, supportedLocales) {
22377
22491
  }
22378
22492
  }
22379
22493
 
22494
+ // ../dsl-builders/src/cloud-functions/cloud-function-builder.ts
22495
+ var cloud_function_builder_exports = {};
22496
+ __export(cloud_function_builder_exports, {
22497
+ CLOUD_FUNCTION_REFERENCE_PREFIX: () => CLOUD_FUNCTION_REFERENCE_PREFIX,
22498
+ buildFunction: () => buildFunction,
22499
+ ref: () => ref2,
22500
+ validateCloudFunctionName: () => validateCloudFunctionName
22501
+ });
22502
+ var CLOUD_FUNCTION_REFERENCE_PREFIX = "cloud-function:";
22503
+ var validateCloudFunctionName = (name) => {
22504
+ if (!/^[a-z][a-z0-9-]{0,47}$/.test(name)) {
22505
+ throw new Error(
22506
+ "Cloud function names must start with a lowercase letter and contain at most 48 lowercase letters, digits or hyphens"
22507
+ );
22508
+ }
22509
+ };
22510
+ var buildFunction = (definition) => {
22511
+ validateCloudFunctionName(definition.name);
22512
+ if (definition.runtime === "DOCKER") {
22513
+ return { name: definition.name, runtime: definition.runtime };
22514
+ }
22515
+ if (!["NODEJS_22_X", "NODEJS_24_X"].includes(definition.runtime)) {
22516
+ throw new Error(
22517
+ `Unsupported cloud function runtime: ${definition.runtime}`
22518
+ );
22519
+ }
22520
+ if (typeof definition.entry !== "string" || !/^[a-zA-Z0-9_./-]+\.(?:ts|js|mts|mjs|cts|cjs)$/.test(definition.entry) || definition.entry.split("/").some((part) => !part || part === "." || part === "..")) {
22521
+ throw new Error(
22522
+ "Cloud function entry must be a relative JavaScript or TypeScript path inside its directory"
22523
+ );
22524
+ }
22525
+ return {
22526
+ name: definition.name,
22527
+ runtime: definition.runtime,
22528
+ entry: definition.entry
22529
+ };
22530
+ };
22531
+ var ref2 = (name) => {
22532
+ validateCloudFunctionName(name);
22533
+ return `${CLOUD_FUNCTION_REFERENCE_PREFIX}${name}`;
22534
+ };
22535
+
22380
22536
  // ../dsl-builders/src/flows/flow-builder.ts
22381
22537
  var flow_builder_exports = {};
22382
22538
  __export(flow_builder_exports, {
@@ -22476,7 +22632,6 @@ function lowerParams(params) {
22476
22632
  var KNOWN_SECRET_PARAMS = {
22477
22633
  ["elevenLabsTTS" /* elevenLabsTTS */]: ["apiKey"],
22478
22634
  ["googleSearch" /* googleSearch */]: ["apiKey"],
22479
- ["openAIImageGeneration" /* openAIImageGeneration */]: ["apiKey"],
22480
22635
  ["genericAI" /* genericAI */]: ["apiKey"],
22481
22636
  ["stripeSync" /* stripeSync */]: ["secretId"]
22482
22637
  };
@@ -22636,6 +22791,63 @@ function validateStepParams(step2, issue2, errors, warnings) {
22636
22791
  function tableIdsMatch(a, b) {
22637
22792
  return a.toLowerCase() === b.toLowerCase();
22638
22793
  }
22794
+ function collectReachableSteps(startStep, steps) {
22795
+ const reachable = /* @__PURE__ */ new Set();
22796
+ const visit = (name) => {
22797
+ if (reachable.has(name) || !Object.hasOwn(steps, name)) return;
22798
+ reachable.add(name);
22799
+ getFlowStepTargets(steps[name]).forEach(visit);
22800
+ };
22801
+ if (startStep !== null) visit(startStep);
22802
+ return reachable;
22803
+ }
22804
+ function validateControlStep(step2, issue2, errors) {
22805
+ if (step2.type === "forEach" /* forEach */) {
22806
+ const body = step2.params.bodyStep;
22807
+ if (body !== null && typeof body !== "string" || !isStaticParamConfig(step2.paramsConfig?.bodyStep)) {
22808
+ errors.push(
22809
+ issue2(
22810
+ `steps.${step2.name}.params.bodyStep`,
22811
+ `For-each "${step2.name}" must have a fixed bodyStep pointing to an existing step, or null`
22812
+ )
22813
+ );
22814
+ }
22815
+ if (isStaticParamConfig(step2.paramsConfig?.items)) {
22816
+ const items = schemas.forEach.params.shape.items.safeParse(
22817
+ step2.params.items
22818
+ );
22819
+ if (!items.success) {
22820
+ for (const error48 of items.error.issues) {
22821
+ errors.push(issue2(`steps.${step2.name}.params.items`, error48.message));
22822
+ }
22823
+ }
22824
+ }
22825
+ return;
22826
+ }
22827
+ if (step2.type !== "branch" /* branch */) return;
22828
+ const branches = step2.params.branches;
22829
+ const config2 = step2.paramsConfig?.branches;
22830
+ if (!branches || typeof branches !== "object" || Array.isArray(branches) || config2 && config2.type !== "object" && !isStaticParamConfig(config2)) {
22831
+ errors.push(
22832
+ issue2(
22833
+ `steps.${step2.name}.params.branches`,
22834
+ "Branches must be an object with fixed target step names and a condition for each target"
22835
+ )
22836
+ );
22837
+ return;
22838
+ }
22839
+ for (const [target, condition] of Object.entries(branches)) {
22840
+ const conditionConfig = config2?.type === "object" ? config2.subParams?.[target] : void 0;
22841
+ if (isStaticParamConfig(conditionConfig) && typeof condition !== "boolean") {
22842
+ errors.push(
22843
+ issue2(
22844
+ `steps.${step2.name}.params.branches.${target}`,
22845
+ "Branch conditions must be booleans or dynamic expressions"
22846
+ )
22847
+ );
22848
+ }
22849
+ }
22850
+ }
22639
22851
  function validateFlow(declaration, ctx) {
22640
22852
  const errors = [];
22641
22853
  const warnings = [];
@@ -22668,7 +22880,7 @@ function validateFlow(declaration, ctx) {
22668
22880
  )
22669
22881
  );
22670
22882
  }
22671
- } else if (!(declaration.startStep in steps)) {
22883
+ } else if (!Object.hasOwn(steps, declaration.startStep)) {
22672
22884
  errors.push(
22673
22885
  issue2(
22674
22886
  "startStep",
@@ -22677,32 +22889,15 @@ function validateFlow(declaration, ctx) {
22677
22889
  );
22678
22890
  }
22679
22891
  for (const step2 of Object.values(steps)) {
22680
- if (step2.nextStep !== null && !(step2.nextStep in steps)) {
22681
- errors.push(
22682
- issue2(
22683
- `steps.${step2.name}.nextStep`,
22684
- `Step "${step2.name}" points to unknown step "${step2.nextStep}"`
22685
- )
22686
- );
22687
- }
22892
+ validateControlStep(step2, issue2, errors);
22688
22893
  }
22689
- const visited = /* @__PURE__ */ new Set();
22690
- let current2 = declaration.startStep;
22691
- while (current2 !== null && current2 in steps) {
22692
- if (visited.has(current2)) {
22693
- errors.push(
22694
- issue2(
22695
- `steps.${current2}.nextStep`,
22696
- `Step "${current2}" is executed twice \u2014 steps must form a linked list; nextStep must not point to itself or a previous step`
22697
- )
22698
- );
22699
- break;
22700
- }
22701
- visited.add(current2);
22702
- current2 = steps[current2].nextStep;
22894
+ for (const error48 of getFlowGraphErrors({ ...declaration, steps })) {
22895
+ if (!Object.hasOwn(steps, error48.stepName)) continue;
22896
+ errors.push(issue2(`steps.${error48.stepName}`, error48.message));
22703
22897
  }
22898
+ const reachable = collectReachableSteps(declaration.startStep, steps);
22704
22899
  for (const name of stepNames) {
22705
- if (!visited.has(name)) {
22900
+ if (!reachable.has(name)) {
22706
22901
  warnings.push(
22707
22902
  issue2(
22708
22903
  `steps.${name}`,
@@ -22959,14 +23154,110 @@ var step = {
22959
23154
  listTypeByParent: createStepFactory("listTypeByParent" /* listTypeByParent */),
22960
23155
  listType: createStepFactory("listType" /* listType */),
22961
23156
  notifyWebSocket: createStepFactory("notifyWebSocket" /* notifyWebSocket */),
22962
- openAIImageGeneration: createStepFactory("openAIImageGeneration" /* openAIImageGeneration */),
22963
23157
  type: createStepFactory("type" /* type */),
22964
23158
  updateType: createStepFactory("updateType" /* updateType */),
22965
23159
  extractImageMetadata: createStepFactory("extractImageMetadata" /* extractImageMetadata */),
22966
23160
  cloudFunction: createStepFactory("cloudFunction" /* cloudFunction */),
22967
23161
  genericAI: createStepFactory("genericAI" /* genericAI */),
22968
- stripeSync: createStepFactory("stripeSync" /* stripeSync */)
23162
+ stripeSync: createStepFactory("stripeSync" /* stripeSync */),
23163
+ forEach(name, opts) {
23164
+ return {
23165
+ ...createStepFactory("forEach" /* forEach */)(name, {
23166
+ ...opts,
23167
+ params: { items: opts.items }
23168
+ }),
23169
+ steps: opts.steps
23170
+ };
23171
+ },
23172
+ branch(name, opts) {
23173
+ return {
23174
+ ...createStepFactory("branch" /* branch */)(name, { ...opts, params: {} }),
23175
+ branches: opts.branches
23176
+ };
23177
+ }
22969
23178
  };
23179
+ function flattenLoopBody(parent, errors) {
23180
+ const { definition } = parent;
23181
+ if (!definition.steps)
23182
+ errors.push(`For-each "${definition.name}" requires nested "steps"`);
23183
+ const body = definition.steps ?? [];
23184
+ return [
23185
+ {
23186
+ ...parent,
23187
+ definition: {
23188
+ ...definition,
23189
+ params: { ...definition.params, bodyStep: body[0]?.name ?? null }
23190
+ }
23191
+ },
23192
+ ...flattenSequence(body, errors, JSON.stringify([definition.name, "body"]))
23193
+ ];
23194
+ }
23195
+ function flattenBranchPaths(parent, hasFollowingStep, errors) {
23196
+ const { definition } = parent;
23197
+ if (!definition.branches) {
23198
+ errors.push(
23199
+ `Branch "${definition.name}" requires branch-local steps in "branches"`
23200
+ );
23201
+ }
23202
+ if (parent.nextStep !== null || hasFollowingStep) {
23203
+ errors.push(
23204
+ `Branch "${definition.name}" must end its sequence; continuations belong inside its branches`
23205
+ );
23206
+ }
23207
+ const paths = definition.branches ?? [];
23208
+ const nested = paths.flatMap((path, pathIndex) => {
23209
+ if (path.steps.length === 0)
23210
+ errors.push(
23211
+ `Branch "${definition.name}" path ${pathIndex + 1} must contain at least one step`
23212
+ );
23213
+ if (typeof path.when !== "boolean" && !isFlowParamMarker(path.when)) {
23214
+ errors.push(
23215
+ `Branch "${definition.name}" path ${pathIndex + 1} requires a boolean or dynamic condition`
23216
+ );
23217
+ }
23218
+ return flattenSequence(
23219
+ path.steps,
23220
+ errors,
23221
+ JSON.stringify([definition.name, pathIndex])
23222
+ );
23223
+ });
23224
+ return [
23225
+ {
23226
+ ...parent,
23227
+ definition: {
23228
+ ...definition,
23229
+ params: {
23230
+ branches: Object.fromEntries(
23231
+ paths.filter((path) => path.steps.length).map((path) => [path.steps[0].name, path.when])
23232
+ )
23233
+ }
23234
+ },
23235
+ nextStep: null
23236
+ },
23237
+ ...nested
23238
+ ];
23239
+ }
23240
+ function flattenSequence(definitions, errors, scope = "flow", detached = false) {
23241
+ return definitions.flatMap((definition, index) => {
23242
+ const nextStep = definition.next !== void 0 ? definition.next : detached || definition.type === "branch" /* branch */ ? null : definitions[index + 1]?.name ?? null;
23243
+ const parent = { definition, nextStep, scope };
23244
+ if (definition.type === "forEach" /* forEach */)
23245
+ return flattenLoopBody(parent, errors);
23246
+ if (definition.type === "branch" /* branch */) {
23247
+ return flattenBranchPaths(
23248
+ parent,
23249
+ !detached && index < definitions.length - 1,
23250
+ errors
23251
+ );
23252
+ }
23253
+ if (detached && definition.next === void 0) {
23254
+ errors.push(
23255
+ `Detached step "${definition.name}" requires an explicit "next" (step name or null)`
23256
+ );
23257
+ }
23258
+ return [parent];
23259
+ });
23260
+ }
22970
23261
  function buildDeclarationStep(definition, nextStep, errors) {
22971
23262
  for (const paramName of KNOWN_SECRET_PARAMS[definition.type] ?? []) {
22972
23263
  const value = definition.params[paramName];
@@ -23013,31 +23304,25 @@ function buildFlow(opts) {
23013
23304
  const errors = [];
23014
23305
  const chainSteps = opts.steps;
23015
23306
  const detachedSteps = opts.detachedSteps ?? [];
23016
- const allSteps = [...chainSteps, ...detachedSteps];
23017
- const seenNames = /* @__PURE__ */ new Set();
23018
- for (const definition of allSteps) {
23019
- if (seenNames.has(definition.name)) {
23307
+ const allSteps = [
23308
+ ...flattenSequence(chainSteps, errors),
23309
+ ...flattenSequence(detachedSteps, errors, "flow", true)
23310
+ ];
23311
+ const scopes = /* @__PURE__ */ new Map();
23312
+ for (const { definition, scope } of allSteps) {
23313
+ if (scopes.has(definition.name)) {
23020
23314
  errors.push(`Duplicate step name "${definition.name}"`);
23021
23315
  }
23022
- seenNames.add(definition.name);
23316
+ scopes.set(definition.name, scope);
23023
23317
  }
23024
23318
  const steps = {};
23025
- for (let i = 0; i < chainSteps.length; i++) {
23026
- const definition = chainSteps[i];
23027
- const nextStep = definition.next !== void 0 ? definition.next : chainSteps[i + 1]?.name ?? null;
23028
- steps[definition.name] = buildDeclarationStep(definition, nextStep, errors);
23029
- }
23030
- for (const definition of detachedSteps) {
23031
- if (definition.next === void 0) {
23319
+ for (const { definition, nextStep, scope } of allSteps) {
23320
+ if (nextStep && scopes.has(nextStep) && scopes.get(nextStep) !== scope) {
23032
23321
  errors.push(
23033
- `Detached step "${definition.name}" requires an explicit "next" (step name or null)`
23322
+ `Step "${definition.name}" cannot point to "${nextStep}" outside its own branch sequence`
23034
23323
  );
23035
23324
  }
23036
- steps[definition.name] = buildDeclarationStep(
23037
- definition,
23038
- definition.next ?? null,
23039
- errors
23040
- );
23325
+ steps[definition.name] = buildDeclarationStep(definition, nextStep, errors);
23041
23326
  }
23042
23327
  const triggers = {};
23043
23328
  for (const [name, definition] of Object.entries(opts.triggers)) {
@@ -23049,7 +23334,9 @@ function buildFlow(opts) {
23049
23334
  steps,
23050
23335
  ...opts.debug !== void 0 ? { debug: opts.debug } : {},
23051
23336
  ...opts.disabled !== void 0 ? { disabled: opts.disabled } : {},
23052
- ...opts.color !== void 0 ? { color: opts.color } : {}
23337
+ ...opts.description !== void 0 ? { description: opts.description } : {},
23338
+ ...opts.color !== void 0 ? { color: opts.color } : {},
23339
+ ...opts.icon !== void 0 ? { icon: opts.icon } : {}
23053
23340
  };
23054
23341
  const validation = validateFlow(declaration, { name: opts.name });
23055
23342
  errors.push(...validation.errors.map((issue2) => issue2.message));
@@ -23069,6 +23356,7 @@ export {
23069
23356
  PAGE_VISIBILITY,
23070
23357
  PublishingTypeEnum,
23071
23358
  app_builder_exports as appBuilder,
23359
+ cloud_function_builder_exports as cloudFunctionBuilder,
23072
23360
  collectSecretIds,
23073
23361
  builder_exports as dataBuilder,
23074
23362
  dataSchemaDeclarationSchema,