@oomol-lab/open-flow 0.1.0-beta.29 → 0.1.0-beta.30

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.
@@ -4638,18 +4638,18 @@ var nc = j(P([M({
4638
4638
  subflows: F(R, Dc.extend({ graph: Oc })),
4639
4639
  tasks: F(R, gc)
4640
4640
  }), Mc = M({
4641
- modelVersion: L(2),
4641
+ modelVersion: P([L(2), L(3)]),
4642
4642
  document: jc,
4643
4643
  modules: F(R, Ac)
4644
- });
4644
+ }), Nc = Mc.extend({ modelVersion: L(3) });
4645
4645
  Mc.extend({
4646
4646
  kind: L("open-flow-flow-revision"),
4647
4647
  version: L(1)
4648
4648
  });
4649
- function Nc(e) {
4650
- return tc(e), Mc.parse(e);
4649
+ function Pc(e) {
4650
+ return tc(e), Nc.parse(e);
4651
4651
  }
4652
- var Pc = {
4652
+ var Fc = {
4653
4653
  "binding.create": {
4654
4654
  bindingId: R,
4655
4655
  binding: kc
@@ -4812,13 +4812,13 @@ var Pc = {
4812
4812
  value: R
4813
4813
  }
4814
4814
  };
4815
- j(P([...new Map(Object.entries(Pc).map(([e, t]) => [e, t instanceof E ? t : M({
4815
+ j(P([...new Map(Object.entries(Fc).map(([e, t]) => [e, t instanceof E ? t : M({
4816
4816
  kind: L(e),
4817
4817
  ...t
4818
4818
  })])).values()])).min(1);
4819
4819
  //#endregion
4820
4820
  //#region src/flow/common/change.ts
4821
- var Fc = /* @__PURE__ */ new Set([
4821
+ var Ic = /* @__PURE__ */ new Set([
4822
4822
  "const",
4823
4823
  "enum",
4824
4824
  "exclusiveMaximum",
@@ -4836,10 +4836,10 @@ var Fc = /* @__PURE__ */ new Set([
4836
4836
  "required",
4837
4837
  "type"
4838
4838
  ]);
4839
- function Ic(e) {
4840
- return Fc.has(e);
4841
- }
4842
4839
  function Lc(e) {
4840
+ return Ic.has(e);
4841
+ }
4842
+ function Rc(e) {
4843
4843
  let t = e.trim();
4844
4844
  if (t.length == 0) return "empty";
4845
4845
  if (t.length > 80) return "tooLong";
@@ -4851,23 +4851,23 @@ function Lc(e) {
4851
4851
  }
4852
4852
  //#endregion
4853
4853
  //#region src/control/common/resultQuery.ts
4854
- var Rc = N({
4854
+ var zc = N({
4855
4855
  pointer: D().max(4096).default(""),
4856
4856
  offset: k().int().nonnegative().default(0),
4857
4857
  limit: k().int().min(1).max(100).default(20),
4858
4858
  maxBytes: k().int().min(1).max(1048576).default(15e3)
4859
- }), zc = D().min(1).max(256), Bc = D().regex(/^[a-z][a-z0-9_.]{0,127}$/), Vc = D().trim().min(1).max(128), Hc = N({
4859
+ }), Bc = D().min(1).max(256), Vc = D().regex(/^[a-z][a-z0-9_.]{0,127}$/), Hc = D().trim().min(1).max(128), Uc = N({
4860
4860
  version: L(1),
4861
- sourceId: zc,
4861
+ sourceId: Bc,
4862
4862
  revision: cs().positive(),
4863
- name: Vc,
4863
+ name: Hc,
4864
4864
  provider: I(["feishu", "feishu_app_bot"]),
4865
- appId: zc,
4866
- tenantKey: zc,
4867
- connectionId: zc,
4868
- teamId: zc.nullable(),
4865
+ appId: Bc,
4866
+ tenantKey: Bc,
4867
+ connectionId: Bc,
4868
+ teamId: Bc.nullable(),
4869
4869
  enabled: A(),
4870
- eventTypes: j(Bc),
4870
+ eventTypes: j(Vc),
4871
4871
  manageSubscriptions: A(),
4872
4872
  verificationTokenConfigured: A(),
4873
4873
  encryptKeyConfigured: A(),
@@ -4876,22 +4876,22 @@ var Rc = N({
4876
4876
  lastReceivedAt: D().nullable(),
4877
4877
  updatedAt: D(),
4878
4878
  consumers: j(N({
4879
- flowId: zc,
4879
+ flowId: Bc,
4880
4880
  flowName: D(),
4881
- triggerNodeId: zc
4881
+ triggerNodeId: Bc
4882
4882
  }))
4883
4883
  });
4884
- function Uc(e) {
4885
- return Hc.parse(e);
4886
- }
4887
4884
  function Wc(e) {
4885
+ return Uc.parse(e);
4886
+ }
4887
+ function Gc(e) {
4888
4888
  return N({
4889
4889
  version: L(1),
4890
- sources: j(Hc),
4891
- teamId: zc.nullable().optional()
4890
+ sources: j(Uc),
4891
+ teamId: Bc.nullable().optional()
4892
4892
  }).parse(e);
4893
4893
  }
4894
- var Gc = new Map([
4894
+ var Kc = new Map([
4895
4895
  "en",
4896
4896
  "zh-CN",
4897
4897
  "zh-TW",
@@ -4900,8 +4900,8 @@ var Gc = new Map([
4900
4900
  "ru",
4901
4901
  "fr"
4902
4902
  ].map((e) => [e.toLowerCase(), e]));
4903
- function Kc(e) {
4904
- return typeof e == "string" && Gc.get(e.toLowerCase()) == e;
4903
+ function qc(e) {
4904
+ return typeof e == "string" && Kc.get(e.toLowerCase()) == e;
4905
4905
  }
4906
4906
  //#endregion
4907
4907
  //#region src/control/common/errors.ts
@@ -4950,7 +4950,7 @@ var H = {
4950
4950
  variableNotFound: "variable.not-found"
4951
4951
  };
4952
4952
  H.eventSourceInvalid, H.eventSourceIdentityUnavailable, H.eventSourceNotFound, H.eventSourceConflict, H.authenticationRequired, H.authorizationDenied, H.bindingUnresolved, H.connectorActionNotFound, H.connectorUnconfigured, H.connectorUnavailable, H.connectorConsoleUnconfigured, H.engineUnavailable, H.engineUnsupported, H.flowInvalid, H.flowRepairRequired, H.flowUpgradeRequired, H.flowNotFound, H.flowBusy, H.flowConflict, H.flowPresentationConflict, H.flowRevisionConflict, H.liveConflict, H.liveNotFound, H.pageInvalidCursor, H.publicationConflict, H.publicationNotFound, H.publicationUnsupported, H.publishOperationNotFound, H.routeNotFound, H.runConflict, H.runEventsExpired, H.runInvalid, H.runNotFound, H.runNotTerminal, H.runOverloaded, H.runWaitNotFound, H.triggerKeyInvalid, H.triggerKeyNotFound, H.triggerNotFound, H.variableInvalid, H.variableLimitReached, H.variableNotFound;
4953
- var qc = class extends Error {
4953
+ var Jc = class extends Error {
4954
4954
  constructor(e, t, n) {
4955
4955
  super(n), this.code = t, this.name = "ApiError", this.status = e;
4956
4956
  }
@@ -4958,7 +4958,7 @@ var qc = class extends Error {
4958
4958
  //#endregion
4959
4959
  //#region src/control/common/decoding.ts
4960
4960
  function U() {
4961
- throw new qc(502, "response.invalid", "The Control API returned an invalid response.");
4961
+ throw new Jc(502, "response.invalid", "The Control API returned an invalid response.");
4962
4962
  }
4963
4963
  function W(e) {
4964
4964
  return typeof e != "object" || !e || Array.isArray(e) ? U() : e;
@@ -4979,12 +4979,12 @@ function J(e) {
4979
4979
  let t = W(e);
4980
4980
  return Object.fromEntries(Object.entries(t).map(([e, t]) => [e, J(t)]));
4981
4981
  }
4982
- function Jc(e) {
4982
+ function Yc(e) {
4983
4983
  if (e != null) return G(e);
4984
4984
  }
4985
4985
  //#endregion
4986
4986
  //#region src/control/common/triggerDecoders.ts
4987
- function Yc(e) {
4987
+ function Xc(e) {
4988
4988
  let t = W(e), n = t.type;
4989
4989
  return n != "integration" && n != "poll" ? U() : {
4990
4990
  description: typeof t.description == "string" ? t.description : U(),
@@ -4995,8 +4995,8 @@ function Yc(e) {
4995
4995
  type: n
4996
4996
  };
4997
4997
  }
4998
- function Xc(e) {
4999
- let t = W(e), n = Yc(t), r = {
4998
+ function Zc(e) {
4999
+ let t = W(e), n = Xc(t), r = {
5000
5000
  configSchema: J(t.configSchema),
5001
5001
  definitionVersion: t.definitionVersion === 2 ? 2 : U(),
5002
5002
  description: n.description,
@@ -5046,18 +5046,18 @@ function Xc(e) {
5046
5046
  type: "integration"
5047
5047
  };
5048
5048
  }
5049
- var Zc = /* @__PURE__ */ new Set([
5049
+ var Qc = /* @__PURE__ */ new Set([
5050
5050
  "cron",
5051
5051
  "integration",
5052
5052
  "poll",
5053
5053
  "webhook"
5054
- ]), Qc = /* @__PURE__ */ new Set([
5054
+ ]), $c = /* @__PURE__ */ new Set([
5055
5055
  "failed",
5056
5056
  "healthy",
5057
5057
  "initializing",
5058
5058
  "needs_reauth",
5059
5059
  "suspended"
5060
- ]), $c = /* @__PURE__ */ new Set([
5060
+ ]), el = /* @__PURE__ */ new Set([
5061
5061
  "delivery.failed",
5062
5062
  "health.failed",
5063
5063
  "health.needs_reauth",
@@ -5066,11 +5066,11 @@ var Zc = /* @__PURE__ */ new Set([
5066
5066
  "operator.paused",
5067
5067
  "operator.resumed"
5068
5068
  ]);
5069
- function el(e) {
5069
+ function tl(e) {
5070
5070
  let t = W(e), n = t.health, r = t.listener == null ? void 0 : W(t.listener);
5071
5071
  if (r != null && r.health != "healthy" && r.health != "failed" && r.health != "needs_reauth") return U();
5072
5072
  let i = t.kind, a = t.operatorState, o = q(t.runtimeVersion);
5073
- return t.version != 1 || typeof n != "string" || !Qc.has(n) || typeof i != "string" || !Zc.has(i) || a != "active" && a != "paused" || o <= 0 ? U() : {
5073
+ return t.version != 1 || typeof n != "string" || !$c.has(n) || typeof i != "string" || !Qc.has(i) || a != "active" && a != "paused" || o <= 0 ? U() : {
5074
5074
  ...t.currentPublicationId == null ? {} : { currentPublicationId: G(t.currentPublicationId) },
5075
5075
  ...t.currentRevisionId == null ? {} : { currentRevisionId: G(t.currentRevisionId) },
5076
5076
  ...t.endpointUrl == null ? {} : { endpointUrl: G(t.endpointUrl) },
@@ -5089,17 +5089,17 @@ function el(e) {
5089
5089
  version: 1
5090
5090
  };
5091
5091
  }
5092
- function tl(e) {
5092
+ function nl(e) {
5093
5093
  let t = W(e);
5094
5094
  return t.version == 1 ? {
5095
- binding: el(t.binding),
5095
+ binding: tl(t.binding),
5096
5096
  version: 1
5097
5097
  } : U();
5098
5098
  }
5099
- function nl(e) {
5099
+ function rl(e) {
5100
5100
  let t = W(e), n = t.kind;
5101
- if (typeof n != "string" || !$c.has(n)) return U();
5102
- let r = Jc(t.errorCode), i = Jc(t.errorMessage);
5101
+ if (typeof n != "string" || !el.has(n)) return U();
5102
+ let r = Yc(t.errorCode), i = Yc(t.errorMessage);
5103
5103
  return i != null && i.length > 512 ? U() : {
5104
5104
  activityId: G(t.activityId),
5105
5105
  createdAt: G(t.createdAt),
@@ -5108,15 +5108,15 @@ function nl(e) {
5108
5108
  kind: n
5109
5109
  };
5110
5110
  }
5111
- function rl(e) {
5112
- let t = W(e), n = Jc(t.nextCursor);
5111
+ function il(e) {
5112
+ let t = W(e), n = Yc(t.nextCursor);
5113
5113
  return t.version != 1 || !Array.isArray(t.activities) ? U() : {
5114
- activities: t.activities.map(nl),
5114
+ activities: t.activities.map(rl),
5115
5115
  ...n == null ? {} : { nextCursor: n },
5116
5116
  version: 1
5117
5117
  };
5118
5118
  }
5119
- function il(e) {
5119
+ function al(e) {
5120
5120
  let t = W(e), n = q(t.filtered);
5121
5121
  return t.version != 1 || !Array.isArray(t.events) || typeof t.hasMore != "boolean" || n < 0 ? U() : {
5122
5122
  events: t.events.map((e) => {
@@ -5130,15 +5130,15 @@ function il(e) {
5130
5130
  }
5131
5131
  //#endregion
5132
5132
  //#region src/control/common/triggerCatalog.ts
5133
- function al(e) {
5133
+ function ol(e) {
5134
5134
  let t = W(e);
5135
5135
  if (K(t, [
5136
5136
  "version",
5137
5137
  "locale",
5138
5138
  "definitions",
5139
5139
  "display"
5140
- ]), t.version != 1 || !Kc(t.locale) || !Array.isArray(t.definitions)) return U();
5141
- let n = t.definitions.map(Xc), r = W(t.display), i = new Set(n.map((e) => e.key));
5140
+ ]), t.version != 1 || !qc(t.locale) || !Array.isArray(t.definitions)) return U();
5141
+ let n = t.definitions.map(Zc), r = W(t.display), i = new Set(n.map((e) => e.key));
5142
5142
  if (i.size != n.length || Object.keys(r).length != i.size) return U();
5143
5143
  let a = Object.fromEntries(n.map(({ key: e }) => {
5144
5144
  let t = W(r[e]);
@@ -5156,7 +5156,7 @@ function al(e) {
5156
5156
  }
5157
5157
  //#endregion
5158
5158
  //#region src/control/common/results.ts
5159
- var ol = Zs(), sl = N({
5159
+ var sl = Zs(), cl = N({
5160
5160
  pointer: D(),
5161
5161
  type: I([
5162
5162
  "object",
@@ -5168,12 +5168,12 @@ var ol = Zs(), sl = N({
5168
5168
  ]),
5169
5169
  length: k().int().nonnegative().optional(),
5170
5170
  complete: A(),
5171
- value: ol.optional()
5172
- }), cl = sl.extend({
5171
+ value: sl.optional()
5172
+ }), ll = cl.extend({
5173
5173
  offset: k().int().nonnegative(),
5174
5174
  nextOffset: k().int().positive().optional(),
5175
- entries: j(sl).optional()
5176
- }), ll = N({
5175
+ entries: j(cl).optional()
5176
+ }), ul = N({
5177
5177
  resultId: D().min(1),
5178
5178
  callId: D().min(1),
5179
5179
  toolId: D().min(1),
@@ -5184,59 +5184,59 @@ var ol = Zs(), sl = N({
5184
5184
  bytes: k().int().nonnegative(),
5185
5185
  digest: D().regex(/^[a-f0-9]{64}$/),
5186
5186
  createdAt: D().datetime()
5187
- }), ul = N({
5187
+ }), dl = N({
5188
5188
  version: L(1),
5189
5189
  runId: D(),
5190
- results: j(ll),
5190
+ results: j(ul),
5191
5191
  nextAfter: D().optional()
5192
- }), dl = N({
5192
+ }), fl = N({
5193
5193
  version: L(1),
5194
5194
  runId: D(),
5195
- result: ll,
5196
- page: cl
5195
+ result: ul,
5196
+ page: ll
5197
5197
  });
5198
- function fl(e) {
5199
- return ul.parse(e);
5200
- }
5201
5198
  function pl(e) {
5202
5199
  return dl.parse(e);
5203
5200
  }
5201
+ function ml(e) {
5202
+ return fl.parse(e);
5203
+ }
5204
5204
  new TextEncoder();
5205
5205
  //#endregion
5206
5206
  //#region src/control/common/checkDecoders.ts
5207
- function ml(e) {
5207
+ function hl(e) {
5208
5208
  return Array.isArray(e) ? e.map((e) => typeof e == "string" || Number.isSafeInteger(e) ? e : U()) : U();
5209
5209
  }
5210
- function hl(e) {
5210
+ function gl(e) {
5211
5211
  let t = W(e), n = G(t.kind);
5212
5212
  return n == "artifact" || n == "binary" || n == "nullable" ? { kind: n } : n == "schema" ? {
5213
5213
  kind: n,
5214
- path: t.path == null ? void 0 : ml(t.path)
5215
- } : n != "keyword" || typeof t.keyword != "string" || !Ic(t.keyword) ? U() : {
5214
+ path: t.path == null ? void 0 : hl(t.path)
5215
+ } : n != "keyword" || typeof t.keyword != "string" || !Lc(t.keyword) ? U() : {
5216
5216
  kind: n,
5217
5217
  keyword: t.keyword,
5218
- path: ml(t.path),
5218
+ path: hl(t.path),
5219
5219
  source: t.source === void 0 ? void 0 : J(t.source),
5220
5220
  target: t.target === void 0 ? void 0 : J(t.target)
5221
5221
  };
5222
5222
  }
5223
- function gl(e) {
5223
+ function _l(e) {
5224
5224
  let t = W(e), n = t.values == null ? void 0 : W(t.values);
5225
5225
  return {
5226
5226
  code: G(t.code),
5227
5227
  column: q(t.column),
5228
5228
  line: q(t.line),
5229
5229
  message: G(t.message),
5230
- mismatch: t.mismatch == null ? void 0 : hl(t.mismatch),
5230
+ mismatch: t.mismatch == null ? void 0 : gl(t.mismatch),
5231
5231
  path: typeof t.path == "string" ? t.path : U(),
5232
5232
  ...n == null ? {} : { values: Object.fromEntries(Object.entries(n).map(([e, t]) => [e, typeof t == "string" || typeof t == "number" ? t : U()])) }
5233
5233
  };
5234
5234
  }
5235
- function _l(e) {
5235
+ function vl(e) {
5236
5236
  let t = W(e);
5237
5237
  return t.version != 1 || typeof t.valid != "boolean" || !Array.isArray(t.diagnostics) ? U() : {
5238
5238
  closureDigest: G(t.closureDigest),
5239
- diagnostics: t.diagnostics.map(gl),
5239
+ diagnostics: t.diagnostics.map(_l),
5240
5240
  engineContract: G(t.engineContract),
5241
5241
  flowId: G(t.flowId),
5242
5242
  modelVersion: q(t.modelVersion),
@@ -5248,7 +5248,7 @@ function _l(e) {
5248
5248
  }
5249
5249
  //#endregion
5250
5250
  //#region src/control/common/connectorDecoders.ts
5251
- function vl(e) {
5251
+ function yl(e) {
5252
5252
  let t = W(e);
5253
5253
  if (K(t, [
5254
5254
  ...Object.hasOwn(t, "providerAccountId") ? ["providerAccountId"] : [],
@@ -5272,7 +5272,7 @@ function vl(e) {
5272
5272
  status: n
5273
5273
  };
5274
5274
  }
5275
- function yl(e, t = !1) {
5275
+ function bl(e, t = !1) {
5276
5276
  let n = W(e), r = n.description, i = t && Object.hasOwn(n, "value");
5277
5277
  return K(n, [
5278
5278
  "jsonSchema",
@@ -5286,13 +5286,13 @@ function yl(e, t = !1) {
5286
5286
  ...i ? { value: J(n.value) } : {}
5287
5287
  };
5288
5288
  }
5289
- function bl(e) {
5290
- return yl(e, !0);
5289
+ function xl(e) {
5290
+ return bl(e, !0);
5291
5291
  }
5292
- function xl(e, t) {
5292
+ function Sl(e, t) {
5293
5293
  return Object.fromEntries(Object.entries(W(e)).map(([e, n]) => [e, t(n)]));
5294
5294
  }
5295
- function Sl(e) {
5295
+ function Cl(e) {
5296
5296
  let t = W(e), n = t.homepageUrl, r = t.icon;
5297
5297
  return K(t, [
5298
5298
  "actionId",
@@ -5317,23 +5317,23 @@ function Sl(e) {
5317
5317
  description: typeof t.description == "string" ? t.description : U(),
5318
5318
  ...n == null ? {} : { homepageUrl: n },
5319
5319
  ...r == null ? {} : { icon: r },
5320
- inputs: xl(t.inputs, bl),
5320
+ inputs: Sl(t.inputs, xl),
5321
5321
  name: G(t.name),
5322
- outputs: xl(t.outputs, yl),
5322
+ outputs: Sl(t.outputs, bl),
5323
5323
  serviceId: G(t.serviceId),
5324
5324
  serviceName: G(t.serviceName)
5325
5325
  };
5326
5326
  }
5327
- function Cl(e) {
5328
- let { defaultConnection: t, ...n } = W(e), r = Sl(n);
5327
+ function wl(e) {
5328
+ let { defaultConnection: t, ...n } = W(e), r = Cl(n);
5329
5329
  if (t == null) return r;
5330
- let i = vl(t);
5330
+ let i = yl(t);
5331
5331
  return i.serviceId != r.serviceId || i.status != "active" ? U() : {
5332
5332
  ...r,
5333
5333
  defaultConnection: i
5334
5334
  };
5335
5335
  }
5336
- function wl(e) {
5336
+ function Tl(e) {
5337
5337
  let t = W(e), n = t.homepageUrl, r = t.icon;
5338
5338
  return t.noSetup !== void 0 && typeof t.noSetup != "boolean" || (K(t, [
5339
5339
  ...Object.hasOwn(t, "noSetup") ? ["noSetup"] : [],
@@ -5351,8 +5351,8 @@ function wl(e) {
5351
5351
  }
5352
5352
  //#endregion
5353
5353
  //#region src/control/common/connectorQueries.ts
5354
- var Tl = (e) => e == null ? "" : `?flowId=${encodeURIComponent(e)}`;
5355
- function El(e, t) {
5354
+ var El = (e) => e == null ? "" : `?flowId=${encodeURIComponent(e)}`;
5355
+ function Dl(e, t) {
5356
5356
  let n = new URLSearchParams({
5357
5357
  ...e == null ? {} : { flowId: e },
5358
5358
  ...t == null ? {} : { locale: t }
@@ -5361,11 +5361,11 @@ function El(e, t) {
5361
5361
  path: `/v1/connector/providers${n ? `?${n}` : ""}`,
5362
5362
  decode: (e) => {
5363
5363
  let t = W(e);
5364
- return K(t, ["providers", "version"]), t.version != 1 || !Array.isArray(t.providers) ? U() : t.providers.map(wl);
5364
+ return K(t, ["providers", "version"]), t.version != 1 || !Array.isArray(t.providers) ? U() : t.providers.map(Tl);
5365
5365
  }
5366
5366
  };
5367
5367
  }
5368
- function Dl(e, t, n) {
5368
+ function Ol(e, t, n) {
5369
5369
  let r = new URLSearchParams({
5370
5370
  ...t == null ? {} : { flowId: t },
5371
5371
  ...n == null ? {} : { locale: n }
@@ -5374,35 +5374,35 @@ function Dl(e, t, n) {
5374
5374
  path: `/v1/connector/actions/${encodeURIComponent(e)}${r ? `?${r}` : ""}`,
5375
5375
  decode: (e) => {
5376
5376
  let t = W(e);
5377
- return K(t, ["action", "version"]), t.version == 1 ? Cl(t.action) : U();
5377
+ return K(t, ["action", "version"]), t.version == 1 ? wl(t.action) : U();
5378
5378
  }
5379
5379
  };
5380
5380
  }
5381
- function Ol(e) {
5381
+ function kl(e) {
5382
5382
  return {
5383
- path: `/v1/connector/connections${Tl(e)}`,
5383
+ path: `/v1/connector/connections${El(e)}`,
5384
5384
  decode: (e) => {
5385
5385
  let t = W(e);
5386
- return K(t, ["connections", "version"]), t.version != 1 || !Array.isArray(t.connections) ? U() : t.connections.map(vl);
5386
+ return K(t, ["connections", "version"]), t.version != 1 || !Array.isArray(t.connections) ? U() : t.connections.map(yl);
5387
5387
  }
5388
5388
  };
5389
5389
  }
5390
- function kl(e, t) {
5390
+ function Al(e, t) {
5391
5391
  return {
5392
- path: `/v1/connector/connections/${encodeURIComponent(e)}${Tl(t)}`,
5392
+ path: `/v1/connector/connections/${encodeURIComponent(e)}${El(t)}`,
5393
5393
  decode: (t) => {
5394
5394
  let n = W(t);
5395
5395
  return K(n, [
5396
5396
  "connections",
5397
5397
  "serviceId",
5398
5398
  "version"
5399
- ]), n.version != 1 || G(n.serviceId) != e || !Array.isArray(n.connections) ? U() : n.connections.map(vl);
5399
+ ]), n.version != 1 || G(n.serviceId) != e || !Array.isArray(n.connections) ? U() : n.connections.map(yl);
5400
5400
  }
5401
5401
  };
5402
5402
  }
5403
5403
  //#endregion
5404
5404
  //#region src/control/common/flowDecoders.ts
5405
- function Al(e) {
5405
+ function jl(e) {
5406
5406
  let t = W(e), n = t.status;
5407
5407
  if (t.version != 1 || n != "active" && n != "retiring") return U();
5408
5408
  let r = t.live == null ? void 0 : W(t.live);
@@ -5421,18 +5421,18 @@ function Al(e) {
5421
5421
  version: 1
5422
5422
  };
5423
5423
  }
5424
- function jl(e) {
5424
+ function Ml(e) {
5425
5425
  let t = W(e);
5426
5426
  if (t.version != 1 || !Array.isArray(t.flows)) return U();
5427
5427
  let n = t.nextCursor, r = t.total;
5428
5428
  return n != null && typeof n != "string" || r != null && !Number.isSafeInteger(r) ? U() : {
5429
5429
  ...n == null ? {} : { nextCursor: n },
5430
- flows: t.flows.map(Al),
5430
+ flows: t.flows.map(jl),
5431
5431
  ...r == null ? {} : { total: r },
5432
5432
  version: 1
5433
5433
  };
5434
5434
  }
5435
- function Ml(e) {
5435
+ function Nl(e) {
5436
5436
  let t = W(e);
5437
5437
  if (K(t, [
5438
5438
  "name",
@@ -5455,7 +5455,7 @@ function Ml(e) {
5455
5455
  }
5456
5456
  //#endregion
5457
5457
  //#region src/control/common/publicationDecoders.ts
5458
- function Nl(e) {
5458
+ function Pl(e) {
5459
5459
  let t = W(e), n = t.operation, r = t.sourcePublicationId;
5460
5460
  return t.version != 1 || n != "publish" && n != "rollback" || r != null && typeof r != "string" ? U() : {
5461
5461
  actorId: G(t.actorId),
@@ -5472,7 +5472,7 @@ function Nl(e) {
5472
5472
  version: 1
5473
5473
  };
5474
5474
  }
5475
- function Pl(e) {
5475
+ function Fl(e) {
5476
5476
  let t = W(e), n = t.status, r = {
5477
5477
  createdAt: G(t.createdAt),
5478
5478
  flowId: G(t.flowId),
@@ -5538,33 +5538,33 @@ function Pl(e) {
5538
5538
  default: return U();
5539
5539
  }
5540
5540
  }
5541
- function Fl(e) {
5541
+ function Il(e) {
5542
5542
  let t = W(e), n = t.status, r = t.publication;
5543
5543
  return t.version != 1 || typeof t.hasUnpublishedChanges != "boolean" || n != "not-published" && n != "runnable" && n != "suspended" || n == "not-published" && r !== null || n != "not-published" && r === null ? U() : {
5544
5544
  flowId: G(t.flowId),
5545
5545
  hasUnpublishedChanges: t.hasUnpublishedChanges,
5546
- publication: r === null ? null : Nl(r),
5546
+ publication: r === null ? null : Pl(r),
5547
5547
  revision: q(t.revision),
5548
5548
  status: n,
5549
5549
  version: 1
5550
5550
  };
5551
5551
  }
5552
- function Il(e) {
5552
+ function Ll(e) {
5553
5553
  let t = W(e), n = t.nextCursor, r = t.total;
5554
5554
  return t.version != 1 || !Array.isArray(t.publications) || n != null && typeof n != "string" || r != null && !Number.isSafeInteger(r) ? U() : {
5555
5555
  ...n == null ? {} : { nextCursor: n },
5556
- publications: t.publications.map(Nl),
5556
+ publications: t.publications.map(Pl),
5557
5557
  ...r == null ? {} : { total: r },
5558
5558
  version: 1
5559
5559
  };
5560
5560
  }
5561
5561
  new TextEncoder();
5562
- var Ll = F(D(), ps()), Rl = M({
5562
+ var Rl = F(D(), ps()), zl = M({
5563
5563
  jsonSchema: ps(),
5564
5564
  nullable: A(),
5565
5565
  value: ps().optional(),
5566
5566
  description: D().optional()
5567
- }).strict(), zl = F(D(), Rl), Bl = P([M({
5567
+ }).strict(), Bl = F(D(), zl), Vl = P([M({
5568
5568
  kind: L("value"),
5569
5569
  value: ps()
5570
5570
  }).strict(), M({
@@ -5574,36 +5574,36 @@ var Ll = F(D(), ps()), Rl = M({
5574
5574
  nodeId: D(),
5575
5575
  output: D()
5576
5576
  }).strict())
5577
- }).strict()]), Vl = {
5577
+ }).strict()]), Hl = {
5578
5578
  name: D().optional(),
5579
5579
  description: D().optional(),
5580
5580
  icon: D().optional()
5581
- }, Hl = P([
5581
+ }, Ul = P([
5582
5582
  M({
5583
- ...Vl,
5583
+ ...Hl,
5584
5584
  kind: L("cron"),
5585
5585
  cronTimes: j(ps())
5586
5586
  }).strict(),
5587
5587
  M({
5588
- ...Vl,
5588
+ ...Hl,
5589
5589
  kind: L("manual")
5590
5590
  }).strict(),
5591
5591
  M({
5592
- ...Vl,
5592
+ ...Hl,
5593
5593
  kind: L("task"),
5594
5594
  concurrency: L(1).optional(),
5595
- inputs: F(D(), Bl),
5595
+ inputs: F(D(), Vl),
5596
5596
  task: M({
5597
5597
  name: D(),
5598
5598
  moduleId: D(),
5599
- inputs: zl,
5600
- outputs: F(D(), Rl.omit({ value: !0 }))
5599
+ inputs: Bl,
5600
+ outputs: F(D(), zl.omit({ value: !0 }))
5601
5601
  }).strict()
5602
5602
  }).strict()
5603
5603
  ]);
5604
5604
  M({
5605
5605
  name: D(),
5606
- graph: M({ nodes: F(D(), Hl) }).strict()
5606
+ graph: M({ nodes: F(D(), Ul) }).strict()
5607
5607
  }).strict(), M({
5608
5608
  kind: L("open-flow-project-revision"),
5609
5609
  version: L(1),
@@ -5614,15 +5614,15 @@ M({
5614
5614
  imports: j(D())
5615
5615
  }).strict()),
5616
5616
  document: M({
5617
- bindings: Ll,
5618
- flows: Ll,
5619
- subflows: Ll,
5620
- tasks: Ll
5617
+ bindings: Rl,
5618
+ flows: Rl,
5619
+ subflows: Rl,
5620
+ tasks: Rl
5621
5621
  }).strict()
5622
5622
  }).strict();
5623
5623
  //#endregion
5624
5624
  //#region src/control/common/revisionDecoders.ts
5625
- function Ul(e) {
5625
+ function Wl(e) {
5626
5626
  let t = W(e), n = t.parentRevisionId;
5627
5627
  return t.version != 1 || n !== null && typeof n != "string" ? U() : {
5628
5628
  actorId: G(t.actorId),
@@ -5635,18 +5635,18 @@ function Ul(e) {
5635
5635
  version: 1
5636
5636
  };
5637
5637
  }
5638
- function Wl(e) {
5638
+ function Gl(e) {
5639
5639
  let t = W(e);
5640
5640
  try {
5641
5641
  return {
5642
- ...Ul(t),
5643
- content: Nc(t.content)
5642
+ ...Wl(t),
5643
+ content: Pc(t.content)
5644
5644
  };
5645
5645
  } catch {
5646
5646
  return U();
5647
5647
  }
5648
5648
  }
5649
- function Gl(e) {
5649
+ function Kl(e) {
5650
5650
  let t = W(e);
5651
5651
  return t.version != 1 || q(t.revision) < 1 ? U() : {
5652
5652
  revision: q(t.revision),
@@ -5655,28 +5655,28 @@ function Gl(e) {
5655
5655
  version: 1
5656
5656
  };
5657
5657
  }
5658
- function Kl(e) {
5658
+ function ql(e) {
5659
5659
  let t = W(e);
5660
5660
  return t.version == 1 ? {
5661
- revision: Ul(t.revision),
5661
+ revision: Wl(t.revision),
5662
5662
  version: 1
5663
5663
  } : U();
5664
5664
  }
5665
- function ql(e) {
5665
+ function Jl(e) {
5666
5666
  let t = W(e);
5667
5667
  return t.version != 1 || t.kind != "snapshot" ? U() : {
5668
- draft: Wl(t.draft),
5668
+ draft: Gl(t.draft),
5669
5669
  kind: "snapshot",
5670
5670
  version: 1
5671
5671
  };
5672
5672
  }
5673
5673
  //#endregion
5674
5674
  //#region src/control/common/runDecoders.ts
5675
- var Jl = new Set(ec);
5676
- function Yl(e) {
5677
- return typeof e == "string" && Jl.has(e) ? e : U();
5678
- }
5675
+ var Yl = new Set(ec);
5679
5676
  function Xl(e) {
5677
+ return typeof e == "string" && Yl.has(e) ? e : U();
5678
+ }
5679
+ function Zl(e) {
5680
5680
  let t = W(e), n = t.source, r = t.startedAt, i = t.finishedAt;
5681
5681
  return t.version != 1 || n != "draft" && n != "live" && n != "trigger" || r != null && typeof r != "string" || i != null && typeof i != "string" ? U() : {
5682
5682
  createdAt: G(t.createdAt),
@@ -5686,11 +5686,11 @@ function Xl(e) {
5686
5686
  runId: G(t.runId),
5687
5687
  source: n,
5688
5688
  ...r == null ? {} : { startedAt: r },
5689
- status: Yl(t.status),
5689
+ status: Xl(t.status),
5690
5690
  version: 1
5691
5691
  };
5692
5692
  }
5693
- function Zl(e) {
5693
+ function Ql(e) {
5694
5694
  let t = W(e);
5695
5695
  K(t, [
5696
5696
  "actions",
@@ -5710,10 +5710,10 @@ function Zl(e) {
5710
5710
  waitingSince: G(t.waitingSince)
5711
5711
  };
5712
5712
  }
5713
- function Ql(e) {
5714
- let t = W(e), n = Xl(t), r = t.eventsExpiresAt;
5713
+ function $l(e) {
5714
+ let t = W(e), n = Zl(t), r = t.eventsExpiresAt;
5715
5715
  if (r != null && typeof r != "string" || t.waiting !== void 0 || !Array.isArray(t.waits)) return U();
5716
- let i = t.waits.map(Zl);
5716
+ let i = t.waits.map(Ql);
5717
5717
  if (new Set(i.map((e) => e.waitId)).size != i.length || n.status == "waiting" && i.length == 0 || [
5718
5718
  "completed",
5719
5719
  "failed",
@@ -5752,17 +5752,17 @@ function Ql(e) {
5752
5752
  };
5753
5753
  }
5754
5754
  }
5755
- function $l(e) {
5755
+ function eu(e) {
5756
5756
  let t = W(e), n = t.nextCursor;
5757
5757
  return t.version != 1 || !Array.isArray(t.runs) || n != null && typeof n != "string" ? U() : {
5758
5758
  flowId: G(t.flowId),
5759
5759
  ...n == null ? {} : { nextCursor: n },
5760
- runs: t.runs.map(Xl),
5760
+ runs: t.runs.map(Zl),
5761
5761
  version: 1
5762
5762
  };
5763
5763
  }
5764
- function eu(e) {
5765
- let t = W(e), n = Yl(t.status);
5764
+ function tu(e) {
5765
+ let t = W(e), n = Xl(t.status);
5766
5766
  return t.version != 1 || typeof t.cancelAccepted != "boolean" || n == "queued" || n == "starting" || n == "running" || n == "waiting" ? U() : {
5767
5767
  cancelAccepted: t.cancelAccepted,
5768
5768
  runId: G(t.runId),
@@ -5770,7 +5770,7 @@ function eu(e) {
5770
5770
  version: 1
5771
5771
  };
5772
5772
  }
5773
- function tu(e) {
5773
+ function nu(e) {
5774
5774
  let t = W(e);
5775
5775
  K(t, [
5776
5776
  "action",
@@ -5787,12 +5787,12 @@ function tu(e) {
5787
5787
  resolutionAccepted: t.resolutionAccepted,
5788
5788
  resolvedAt: r,
5789
5789
  runId: G(t.runId),
5790
- status: Yl(t.status),
5790
+ status: Xl(t.status),
5791
5791
  version: 1,
5792
5792
  waitId: G(t.waitId)
5793
5793
  };
5794
5794
  }
5795
- function nu(e) {
5795
+ function ru(e) {
5796
5796
  let t = W(e), n = t.status;
5797
5797
  if (t.version != 1) return U();
5798
5798
  let r = {
@@ -5835,7 +5835,7 @@ function nu(e) {
5835
5835
  }
5836
5836
  //#endregion
5837
5837
  //#region src/control/common/random.ts
5838
- function ru() {
5838
+ function iu() {
5839
5839
  let e = globalThis.crypto;
5840
5840
  if (e != null) {
5841
5841
  try {
@@ -5852,7 +5852,7 @@ function ru() {
5852
5852
  }
5853
5853
  //#endregion
5854
5854
  //#region src/control/common/api.ts
5855
- function iu(e) {
5855
+ function au(e) {
5856
5856
  let t = W(e), n = q(t.sequence);
5857
5857
  if (n < 0) return U();
5858
5858
  let r = {
@@ -5880,7 +5880,7 @@ function iu(e) {
5880
5880
  payload: {
5881
5881
  flowId: G(i.flowId),
5882
5882
  scopeId: G(i.scopeId),
5883
- progress: au(i.progress)
5883
+ progress: ou(i.progress)
5884
5884
  }
5885
5885
  };
5886
5886
  case "run.waiting": return Array.isArray(i.waitIds) ? {
@@ -5988,7 +5988,7 @@ function iu(e) {
5988
5988
  kind: a,
5989
5989
  payload: {
5990
5990
  ...e,
5991
- progress: au(i.progress)
5991
+ progress: ou(i.progress)
5992
5992
  }
5993
5993
  };
5994
5994
  case "node.artifact": {
@@ -6014,14 +6014,14 @@ function iu(e) {
6014
6014
  default: return U();
6015
6015
  }
6016
6016
  }
6017
- function au(e) {
6017
+ function ou(e) {
6018
6018
  return typeof e == "number" && Number.isFinite(e) && e >= 0 && e <= 100 ? e : U();
6019
6019
  }
6020
- function ou(e) {
6020
+ function su(e) {
6021
6021
  let t = W(e), n = t.eventsExpiresAt, r = q(t.nextAfter);
6022
6022
  return t.version != 1 || !Array.isArray(t.events) || typeof t.done != "boolean" || typeof t.historyComplete != "boolean" || n != null && typeof n != "string" || r < 0 ? U() : {
6023
6023
  done: t.done,
6024
- events: t.events.map(iu),
6024
+ events: t.events.map(au),
6025
6025
  ...n == null ? {} : { eventsExpiresAt: n },
6026
6026
  historyComplete: t.historyComplete,
6027
6027
  nextAfter: r,
@@ -6030,10 +6030,10 @@ function ou(e) {
6030
6030
  };
6031
6031
  }
6032
6032
  var Y = encodeURIComponent;
6033
- function su(e) {
6034
- return `${e}-${ru()}`;
6033
+ function cu(e) {
6034
+ return `${e}-${iu()}`;
6035
6035
  }
6036
- var cu = class {
6036
+ var lu = class {
6037
6037
  constructor(e) {
6038
6038
  this.requestControl = e;
6039
6039
  }
@@ -6041,23 +6041,23 @@ var cu = class {
6041
6041
  let t = new URLSearchParams();
6042
6042
  e.cursor != null && t.set("cursor", e.cursor), e.limit != null && t.set("limit", String(e.limit)), e.includeTotal != null && t.set("includeTotal", String(e.includeTotal));
6043
6043
  let n = t.size == 0 ? "" : `?${t}`;
6044
- return jl(await this.request(`/v1/flows${n}`));
6044
+ return Ml(await this.request(`/v1/flows${n}`));
6045
6045
  }
6046
6046
  async listEventSources(e, t) {
6047
- return Wc(await this.request("/v1/event-sources" + (e == null ? "" : `?flowId=${Y(e)}`), { signal: t }));
6047
+ return Gc(await this.request("/v1/event-sources" + (e == null ? "" : `?flowId=${Y(e)}`), { signal: t }));
6048
6048
  }
6049
6049
  async listEventSourceConnections(e, t) {
6050
6050
  let n = W(await this.request(`/v1/event-sources/connections${e == null ? "" : `?teamId=${Y(e)}`}`, { signal: t }));
6051
- return K(n, ["version", "connections"]), n.version != 1 || !Array.isArray(n.connections) ? U() : n.connections.map(vl);
6051
+ return K(n, ["version", "connections"]), n.version != 1 || !Array.isArray(n.connections) ? U() : n.connections.map(yl);
6052
6052
  }
6053
6053
  async createEventSource(e) {
6054
- return Uc(await this.request("/v1/event-sources", {
6054
+ return Wc(await this.request("/v1/event-sources", {
6055
6055
  method: "POST",
6056
6056
  body: JSON.stringify(e)
6057
6057
  }));
6058
6058
  }
6059
6059
  async updateEventSource(e, t) {
6060
- return Uc(await this.request(`/v1/event-sources/${Y(e)}`, {
6060
+ return Wc(await this.request(`/v1/event-sources/${Y(e)}`, {
6061
6061
  method: "PUT",
6062
6062
  body: JSON.stringify(t)
6063
6063
  }));
@@ -6074,15 +6074,15 @@ var cu = class {
6074
6074
  async listVariables() {
6075
6075
  let e = W(await this.request("/v1/variables"));
6076
6076
  return K(e, ["variables", "version"]), e.version != 1 || !Array.isArray(e.variables) ? U() : {
6077
- variables: e.variables.map(Ml),
6077
+ variables: e.variables.map(Nl),
6078
6078
  version: 1
6079
6079
  };
6080
6080
  }
6081
6081
  async getVariable(e) {
6082
- return Ml(await this.request(`/v1/variables/${Y(e)}`));
6082
+ return Nl(await this.request(`/v1/variables/${Y(e)}`));
6083
6083
  }
6084
6084
  async putVariable(e, t) {
6085
- return Ml(await this.request(`/v1/variables/${Y(e)}`, {
6085
+ return Nl(await this.request(`/v1/variables/${Y(e)}`, {
6086
6086
  body: JSON.stringify({ value: t }),
6087
6087
  method: "PUT"
6088
6088
  }));
@@ -6091,8 +6091,8 @@ var cu = class {
6091
6091
  let t = W(await this.request(`/v1/variables/${Y(e)}`, { method: "DELETE" }));
6092
6092
  if (K(t, ["version"]), t.version != 1) return U();
6093
6093
  }
6094
- async createFlow(e, t = `flow-${ru()}`) {
6095
- return Al(await this.request("/v1/flows", {
6094
+ async createFlow(e, t = `flow-${iu()}`) {
6095
+ return jl(await this.request("/v1/flows", {
6096
6096
  body: JSON.stringify({
6097
6097
  name: e,
6098
6098
  version: 1
@@ -6102,10 +6102,10 @@ var cu = class {
6102
6102
  }));
6103
6103
  }
6104
6104
  async getFlow(e) {
6105
- return Al(await this.request(`/v1/flows/${Y(e)}`));
6105
+ return jl(await this.request(`/v1/flows/${Y(e)}`));
6106
6106
  }
6107
6107
  async renameFlow(e, t) {
6108
- return Al(await this.request(`/v1/flows/${Y(e)}`, {
6108
+ return jl(await this.request(`/v1/flows/${Y(e)}`, {
6109
6109
  body: JSON.stringify({
6110
6110
  name: t,
6111
6111
  version: 1
@@ -6114,15 +6114,15 @@ var cu = class {
6114
6114
  }));
6115
6115
  }
6116
6116
  async deleteFlow(e) {
6117
- return Al(await this.request(`/v1/flows/${Y(e)}`, { method: "DELETE" }));
6117
+ return jl(await this.request(`/v1/flows/${Y(e)}`, { method: "DELETE" }));
6118
6118
  }
6119
6119
  async listTriggerKeys(e, t) {
6120
6120
  let n = W(await this.request(`/v1/trigger-keys${t == null ? "" : `?locale=${encodeURIComponent(t)}`}`, { signal: e }));
6121
- return n.version != 1 || !Array.isArray(n.keys) ? U() : n.keys.map(Yc);
6121
+ return n.version != 1 || !Array.isArray(n.keys) ? U() : n.keys.map(Xc);
6122
6122
  }
6123
6123
  async listTriggerDefinitions(e) {
6124
6124
  let t = W(await this.request("/v1/trigger-keys/catalog", { signal: e }));
6125
- return t.version != 1 || !Array.isArray(t.definitions) ? U() : t.definitions.map(Xc);
6125
+ return t.version != 1 || !Array.isArray(t.definitions) ? U() : t.definitions.map(Zc);
6126
6126
  }
6127
6127
  async readCatalog(e, t, n) {
6128
6128
  let r = new Headers();
@@ -6151,41 +6151,41 @@ var cu = class {
6151
6151
  ...t,
6152
6152
  etag: i.headers.get("etag")?.trim() || t.etag
6153
6153
  } : {
6154
- data: al(await i.json()),
6154
+ data: ol(await i.json()),
6155
6155
  etag: i.headers.get("etag")?.trim() || null
6156
6156
  };
6157
6157
  }
6158
6158
  async getTriggerKey(e, t) {
6159
6159
  let n = W(await this.request(`/v1/trigger-keys/${Y(e)}`, { signal: t }));
6160
- return n.version == 1 ? Xc(n.definition) : U();
6160
+ return n.version == 1 ? Zc(n.definition) : U();
6161
6161
  }
6162
6162
  async listFlowTriggerBindings(e, t) {
6163
6163
  let n = W(await this.request(`/v1/flows/${Y(e)}/triggers`, { signal: t }));
6164
- return n.version != 1 || G(n.flowId) != e || !Array.isArray(n.bindings) ? U() : n.bindings.map(el);
6164
+ return n.version != 1 || G(n.flowId) != e || !Array.isArray(n.bindings) ? U() : n.bindings.map(tl);
6165
6165
  }
6166
6166
  async getFlowTriggerBinding(e, t) {
6167
- return tl(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}`));
6167
+ return nl(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}`));
6168
6168
  }
6169
6169
  async listFlowTriggerActivities(e, t, n = {}) {
6170
6170
  let r = new URLSearchParams();
6171
6171
  n.cursor != null && r.set("cursor", n.cursor), n.limit != null && r.set("limit", String(n.limit));
6172
6172
  let i = r.size == 0 ? "" : `?${r}`;
6173
- return rl(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/activities${i}`));
6173
+ return il(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/activities${i}`));
6174
6174
  }
6175
6175
  async pauseFlowTrigger(e, t) {
6176
- return el(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/pause`, {
6176
+ return tl(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/pause`, {
6177
6177
  body: JSON.stringify({ version: 1 }),
6178
6178
  method: "POST"
6179
6179
  }));
6180
6180
  }
6181
6181
  async resumeFlowTrigger(e, t) {
6182
- return el(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/resume`, {
6182
+ return tl(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/resume`, {
6183
6183
  body: JSON.stringify({ version: 1 }),
6184
6184
  method: "POST"
6185
6185
  }));
6186
6186
  }
6187
6187
  async testFlowPollTrigger(e, t) {
6188
- return il(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/test`, {
6188
+ return al(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/test`, {
6189
6189
  body: JSON.stringify({ version: 1 }),
6190
6190
  method: "POST"
6191
6191
  }));
@@ -6194,25 +6194,25 @@ var cu = class {
6194
6194
  let t = W(await this.request(`/v1/flows/${Y(e)}/editor`));
6195
6195
  if (t.version != 1) return U();
6196
6196
  let n = {
6197
- flow: Al(t.flow),
6198
- draft: Wl(t.draft),
6199
- live: Fl(t.live),
6200
- presentation: Gl(t.presentation),
6197
+ flow: jl(t.flow),
6198
+ draft: Gl(t.draft),
6199
+ live: Il(t.live),
6200
+ presentation: Kl(t.presentation),
6201
6201
  version: 1
6202
6202
  };
6203
6203
  return n.flow.flowId != e || n.draft.flowId != e || n.live.flowId != e || n.flow.draftRevisionId != n.draft.revisionId ? U() : n;
6204
6204
  }
6205
6205
  async getPresentation(e) {
6206
- return Gl(await this.request(`/v1/flows/${Y(e)}/presentation`));
6206
+ return Kl(await this.request(`/v1/flows/${Y(e)}/presentation`));
6207
6207
  }
6208
6208
  async getDraft(e) {
6209
- return Wl(await this.request(`/v1/flows/${Y(e)}/draft`));
6209
+ return Gl(await this.request(`/v1/flows/${Y(e)}/draft`));
6210
6210
  }
6211
6211
  async syncDraft(e) {
6212
- return ql(await this.request(`/v1/flows/${Y(e)}/draft/sync`));
6212
+ return Jl(await this.request(`/v1/flows/${Y(e)}/draft/sync`));
6213
6213
  }
6214
6214
  async getRevision(e, t) {
6215
- return Wl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}`));
6215
+ return Gl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}`));
6216
6216
  }
6217
6217
  async listTriggerConfigOptions(e, t, n, r) {
6218
6218
  let i = W(await this.request(`/v1/flows/${Y(e)}/triggers/${Y(t)}/options/${Y(n)}`, { signal: r }));
@@ -6235,7 +6235,7 @@ var cu = class {
6235
6235
  });
6236
6236
  }
6237
6237
  async listConnectorProviders(e, t, n) {
6238
- let r = El(t, n);
6238
+ let r = Dl(t, n);
6239
6239
  return this.connectorRequest(r.path, "providers", e, r.decode);
6240
6240
  }
6241
6241
  async listConnectorActions(e, t, n, r) {
@@ -6253,15 +6253,15 @@ var cu = class {
6253
6253
  }, t);
6254
6254
  }
6255
6255
  async getConnectorAction(e, t, n, r, i = !1) {
6256
- let a = Dl(e, n, r);
6256
+ let a = Ol(e, n, r);
6257
6257
  return this.connectorRequest(a.path, "actions", t, a.decode, i);
6258
6258
  }
6259
6259
  async listAllConnectorConnections(e, t, n = !1) {
6260
- let r = Ol(t);
6260
+ let r = kl(t);
6261
6261
  return this.connectorRequest(r.path, "connections", e, r.decode, n);
6262
6262
  }
6263
6263
  async listConnectorConnections(e, t, n, r = !1) {
6264
- let i = kl(e, n);
6264
+ let i = Al(e, n);
6265
6265
  return this.connectorRequest(i.path, "connections", t, i.decode, r);
6266
6266
  }
6267
6267
  async createConnectorConnectionPage(e, t, n) {
@@ -6279,8 +6279,8 @@ var cu = class {
6279
6279
  return U();
6280
6280
  }
6281
6281
  }
6282
- async changeDraft(e, t, n, r = su("change")) {
6283
- return Kl(await this.request(`/v1/flows/${Y(e)}/draft/changes`, {
6282
+ async changeDraft(e, t, n, r = cu("change")) {
6283
+ return ql(await this.request(`/v1/flows/${Y(e)}/draft/changes`, {
6284
6284
  body: JSON.stringify({
6285
6285
  expectedRevisionId: t,
6286
6286
  operations: n,
@@ -6290,8 +6290,8 @@ var cu = class {
6290
6290
  method: "POST"
6291
6291
  }));
6292
6292
  }
6293
- async repairDraft(e, t, n = su("repair")) {
6294
- return Kl(await this.request(`/v1/flows/${Y(e)}/draft/repair`, {
6293
+ async repairDraft(e, t, n = cu("repair")) {
6294
+ return ql(await this.request(`/v1/flows/${Y(e)}/draft/repair`, {
6295
6295
  body: JSON.stringify({
6296
6296
  expectedRevisionId: t,
6297
6297
  version: 1
@@ -6301,7 +6301,7 @@ var cu = class {
6301
6301
  }));
6302
6302
  }
6303
6303
  async checkFlow(e, t) {
6304
- return _l(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/check`, {
6304
+ return vl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/check`, {
6305
6305
  body: JSON.stringify({
6306
6306
  engineContract: "open-flow-engine/v5",
6307
6307
  version: 1
@@ -6310,42 +6310,42 @@ var cu = class {
6310
6310
  }));
6311
6311
  }
6312
6312
  async getLive(e, t) {
6313
- return Fl(await this.request(`/v1/flows/${Y(e)}/live`, { signal: t }));
6313
+ return Il(await this.request(`/v1/flows/${Y(e)}/live`, { signal: t }));
6314
6314
  }
6315
6315
  async listPublications(e, t = {}, n) {
6316
6316
  let r = new URLSearchParams();
6317
6317
  t.cursor != null && r.set("cursor", t.cursor), t.limit != null && r.set("limit", String(t.limit)), t.includeTotal != null && r.set("includeTotal", String(t.includeTotal));
6318
6318
  let i = r.size == 0 ? "" : `?${r}`;
6319
- return Il(await this.request(`/v1/flows/${Y(e)}/publications${i}`, { signal: n }));
6319
+ return Ll(await this.request(`/v1/flows/${Y(e)}/publications${i}`, { signal: n }));
6320
6320
  }
6321
6321
  async createDraftRun(e, t, n) {
6322
- let r = Ql(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/runs`, {
6322
+ let r = $l(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/runs`, {
6323
6323
  body: JSON.stringify({
6324
6324
  engineContract: "open-flow-engine/v5",
6325
6325
  inputs: n.inputs ?? {},
6326
6326
  trigger: n.trigger,
6327
6327
  version: 2
6328
6328
  }),
6329
- headers: { "idempotency-key": n.idempotencyKey ?? su("run") },
6329
+ headers: { "idempotency-key": n.idempotencyKey ?? cu("run") },
6330
6330
  method: "POST"
6331
6331
  }));
6332
6332
  return r.source == "draft" ? r : U();
6333
6333
  }
6334
6334
  async createLiveRun(e, t) {
6335
- let n = Ql(await this.request("/v1/runs", {
6335
+ let n = $l(await this.request("/v1/runs", {
6336
6336
  body: JSON.stringify({
6337
6337
  inputs: t.inputs ?? {},
6338
6338
  trigger: t.trigger,
6339
6339
  publicationId: e,
6340
6340
  version: 2
6341
6341
  }),
6342
- headers: { "idempotency-key": t.idempotencyKey ?? su("run") },
6342
+ headers: { "idempotency-key": t.idempotencyKey ?? cu("run") },
6343
6343
  method: "POST"
6344
6344
  }));
6345
6345
  return n.source == "live" ? n : U();
6346
6346
  }
6347
6347
  async setFlowEnabled(e, t, n) {
6348
- return Al(await this.request(`/v1/flows/${Y(e)}/enabled`, {
6348
+ return jl(await this.request(`/v1/flows/${Y(e)}/enabled`, {
6349
6349
  method: "PUT",
6350
6350
  body: JSON.stringify({
6351
6351
  enabled: n,
@@ -6355,65 +6355,65 @@ var cu = class {
6355
6355
  }));
6356
6356
  }
6357
6357
  async publishFlow(e, t, n, r = {}) {
6358
- return Pl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/publications`, {
6358
+ return Fl(await this.request(`/v1/flows/${Y(e)}/revisions/${Y(t)}/publications`, {
6359
6359
  body: JSON.stringify({
6360
6360
  engineContract: "open-flow-engine/v5",
6361
6361
  expectedLivePublicationId: n,
6362
6362
  version: 1
6363
6363
  }),
6364
- headers: { "idempotency-key": r.idempotencyKey ?? su("publication") },
6364
+ headers: { "idempotency-key": r.idempotencyKey ?? cu("publication") },
6365
6365
  method: "POST"
6366
6366
  }));
6367
6367
  }
6368
6368
  async getPublishOperation(e, t, n) {
6369
- return Pl(await this.request(`/v1/flows/${Y(e)}/publish-operations/${Y(t)}`, { signal: n }));
6369
+ return Fl(await this.request(`/v1/flows/${Y(e)}/publish-operations/${Y(t)}`, { signal: n }));
6370
6370
  }
6371
6371
  async rollbackFlow(e, t, n, r = {}) {
6372
- return Nl(await this.request(`/v1/flows/${Y(e)}/publications/${Y(t)}/rollback`, {
6372
+ return Pl(await this.request(`/v1/flows/${Y(e)}/publications/${Y(t)}/rollback`, {
6373
6373
  body: JSON.stringify({
6374
6374
  expectedLivePublicationId: n,
6375
6375
  version: 1
6376
6376
  }),
6377
- headers: { "idempotency-key": r.idempotencyKey ?? su("publication") },
6377
+ headers: { "idempotency-key": r.idempotencyKey ?? cu("publication") },
6378
6378
  method: "POST"
6379
6379
  }));
6380
6380
  }
6381
6381
  async getRun(e, t) {
6382
- return Ql(await this.request(`/v1/runs/${Y(e)}`, { signal: t }));
6382
+ return $l(await this.request(`/v1/runs/${Y(e)}`, { signal: t }));
6383
6383
  }
6384
6384
  async listRuns(e, t = {}) {
6385
6385
  let n = new URLSearchParams();
6386
6386
  t.cursor != null && n.set("cursor", t.cursor), t.limit != null && n.set("limit", String(t.limit)), t.status != null && n.set("status", t.status), t.pendingWait != null && n.set("pendingWait", String(t.pendingWait)), t.source != null && n.set("source", t.source), t.createdFrom != null && n.set("createdFrom", t.createdFrom), t.createdBefore != null && n.set("createdBefore", t.createdBefore), t.runId != null && n.set("runId", t.runId);
6387
6387
  let r = n.size == 0 ? "" : `?${n}`;
6388
- return $l(await this.request(`/v1/flows/${Y(e)}/runs${r}`));
6388
+ return eu(await this.request(`/v1/flows/${Y(e)}/runs${r}`));
6389
6389
  }
6390
6390
  async getRunEvents(e, t = {}, n) {
6391
6391
  let r = new URLSearchParams();
6392
6392
  t.after != null && r.set("after", String(t.after)), t.limit != null && r.set("limit", String(t.limit));
6393
6393
  let i = r.size == 0 ? "" : `?${r}`;
6394
- return ou(await this.request(`/v1/runs/${Y(e)}/events${i}`, { signal: n }));
6394
+ return su(await this.request(`/v1/runs/${Y(e)}/events${i}`, { signal: n }));
6395
6395
  }
6396
6396
  async listRunResults(e, t, n) {
6397
- return fl(await this.request(`/v1/runs/${Y(e)}/results${t == null ? "" : `?after=${encodeURIComponent(t)}`}`, { signal: n }));
6397
+ return pl(await this.request(`/v1/runs/${Y(e)}/results${t == null ? "" : `?after=${encodeURIComponent(t)}`}`, { signal: n }));
6398
6398
  }
6399
6399
  async readRunResult(e, t, n = {}, r) {
6400
6400
  let i = new URLSearchParams(Object.entries(n).map(([e, t]) => [e, String(t)]));
6401
- return pl(await this.request(`/v1/runs/${Y(e)}/results/${Y(t)}?${i}`, { signal: r }));
6401
+ return ml(await this.request(`/v1/runs/${Y(e)}/results/${Y(t)}?${i}`, { signal: r }));
6402
6402
  }
6403
6403
  async downloadRunResult(e, t, n) {
6404
6404
  return (await this.response(`/v1/runs/${Y(e)}/results/${Y(t)}/content`, { signal: n })).blob();
6405
6405
  }
6406
6406
  async getRunResult(e, t) {
6407
- return nu(await this.request(`/v1/runs/${Y(e)}/result`, { signal: t }));
6407
+ return ru(await this.request(`/v1/runs/${Y(e)}/result`, { signal: t }));
6408
6408
  }
6409
6409
  async cancelRun(e) {
6410
- return eu(await this.request(`/v1/runs/${Y(e)}/cancel`, {
6410
+ return tu(await this.request(`/v1/runs/${Y(e)}/cancel`, {
6411
6411
  body: JSON.stringify({ version: 1 }),
6412
6412
  method: "POST"
6413
6413
  }));
6414
6414
  }
6415
6415
  async resolveRunWait(e, t, n) {
6416
- return tu(await this.request(`/v1/runs/${Y(e)}/waits/${Y(t)}/resolve`, {
6416
+ return nu(await this.request(`/v1/runs/${Y(e)}/waits/${Y(t)}/resolve`, {
6417
6417
  body: JSON.stringify({
6418
6418
  action: n,
6419
6419
  version: 1
@@ -6425,7 +6425,7 @@ var cu = class {
6425
6425
  let n = Object.entries(e).map(([e, t]) => `${Y(e)}=${Y(t)}`).join("&"), r = n == "" ? "" : `?${n}`;
6426
6426
  return this.connectorRequest(`/v1/connector/actions${r}`, "actions", t, (e) => {
6427
6427
  let t = W(e);
6428
- return K(t, ["actions", "version"]), t.version != 1 || !Array.isArray(t.actions) ? U() : t.actions.map(Cl);
6428
+ return K(t, ["actions", "version"]), t.version != 1 || !Array.isArray(t.actions) ? U() : t.actions.map(wl);
6429
6429
  });
6430
6430
  }
6431
6431
  async connectorRequest(e, t, n, r, i = !1) {
@@ -6446,7 +6446,7 @@ var cu = class {
6446
6446
  return U();
6447
6447
  }
6448
6448
  let t = W(e).error, n = t == null ? void 0 : W(t);
6449
- throw new qc(i.status, typeof n?.code == "string" ? n.code : "request.failed", typeof n?.message == "string" ? n.message : `Request failed with status ${i.status}.`);
6449
+ throw new Jc(i.status, typeof n?.code == "string" ? n.code : "request.failed", typeof n?.message == "string" ? n.message : `Request failed with status ${i.status}.`);
6450
6450
  }
6451
6451
  return i;
6452
6452
  }
@@ -6464,13 +6464,13 @@ var cu = class {
6464
6464
  function X(e, t) {
6465
6465
  if (!e) throw Error(t);
6466
6466
  }
6467
- async function lu(e, t, n) {
6467
+ async function uu(e, t, n) {
6468
6468
  let r = await e.request(new Request(new URL("/v1/mcp", e.origin), {
6469
6469
  method: "POST",
6470
6470
  headers: {
6471
6471
  "content-type": "application/json",
6472
6472
  accept: "application/json, text/event-stream",
6473
- "mcp-protocol-version": du,
6473
+ "mcp-protocol-version": fu,
6474
6474
  "mcp-method": t,
6475
6475
  ...t == "tools/call" ? { "mcp-name": String(n?.name) } : {}
6476
6476
  },
@@ -6481,7 +6481,7 @@ async function lu(e, t, n) {
6481
6481
  params: {
6482
6482
  ...n,
6483
6483
  _meta: {
6484
- "io.modelcontextprotocol/protocolVersion": du,
6484
+ "io.modelcontextprotocol/protocolVersion": fu,
6485
6485
  "io.modelcontextprotocol/clientCapabilities": {}
6486
6486
  }
6487
6487
  }
@@ -6491,13 +6491,13 @@ async function lu(e, t, n) {
6491
6491
  let i = await r.text(), a = r.headers.get("content-type")?.includes("text/event-stream") ? JSON.parse(i.split("\n").findLast((e) => e.startsWith("data:"))?.slice(5) ?? "null") : JSON.parse(i);
6492
6492
  return X(a != null && a.error == null, `MCP ${t} failed: ${JSON.stringify(a)}.`), a.result;
6493
6493
  }
6494
- var uu = [
6494
+ var du = [
6495
6495
  {
6496
6496
  name: "publishes the public MCP catalog, input schemas and annotations",
6497
6497
  async verify(e) {
6498
- let t = await lu(e, "tools/list");
6499
- X(Array.isArray(t.tools), "MCP tools must be an array."), X(t.tools.length == Object.keys(_u).length, "MCP tool count differs from the public contract.");
6500
- for (let [e, n] of Object.entries(_u)) {
6498
+ let t = await uu(e, "tools/list");
6499
+ X(Array.isArray(t.tools), "MCP tools must be an array."), X(t.tools.length == Object.keys(vu).length, "MCP tool count differs from the public contract.");
6500
+ for (let [e, n] of Object.entries(vu)) {
6501
6501
  let r = t.tools.find((t) => t.name == e);
6502
6502
  X(r != null, `Missing MCP tool ${e}.`), X(r.description == n.description, `${e} description differs.`), X($s(r.annotations, n.annotations), `${e} annotations differ.`);
6503
6503
  let { $schema: i, ...a } = n.inputSchema["~standard"].jsonSchema.input(), { $schema: o, ...s } = r.inputSchema;
@@ -6508,7 +6508,7 @@ var uu = [
6508
6508
  {
6509
6509
  name: "shares Run pagination, status filters and cancellation between MCP and REST",
6510
6510
  async verify(e) {
6511
- let t = new cu((t, n) => e.request(new Request(new URL(t, e.origin), n))), n = await t.createFlow("MCP Run listing"), r = await t.changeDraft(n.flowId, n.draftRevisionId, [{
6511
+ let t = new lu((t, n) => e.request(new Request(new URL(t, e.origin), n))), n = await t.createFlow("MCP Run listing"), r = await t.changeDraft(n.flowId, n.draftRevisionId, [{
6512
6512
  kind: "graph.node.create",
6513
6513
  target: { kind: "flow" },
6514
6514
  nodeId: "start",
@@ -6526,7 +6526,7 @@ var uu = [
6526
6526
  }
6527
6527
  }, a = [];
6528
6528
  for (let t = 0; t < 2; t++) {
6529
- let t = (await lu(e, "tools/call", {
6529
+ let t = (await uu(e, "tools/call", {
6530
6530
  name: "flow_run",
6531
6531
  arguments: {
6532
6532
  ...i,
@@ -6535,7 +6535,7 @@ var uu = [
6535
6535
  })).structuredContent;
6536
6536
  X(typeof t.runId == "string", "MCP must return an accepted Run ID."), a.push(t.runId);
6537
6537
  }
6538
- let o = (await lu(e, "tools/call", {
6538
+ let o = (await uu(e, "tools/call", {
6539
6539
  name: "run_list",
6540
6540
  arguments: {
6541
6541
  flowId: n.flowId,
@@ -6549,24 +6549,24 @@ var uu = [
6549
6549
  });
6550
6550
  X(s.runs.length == 1 && s.runs[0]?.runId != o.runs[0]?.runId, "REST must continue the MCP Run cursor without duplicates.");
6551
6551
  let c = await t.listRuns(n.flowId, { limit: 1 });
6552
- X($s((await lu(e, "tools/call", {
6552
+ X($s((await uu(e, "tools/call", {
6553
6553
  name: "run_list",
6554
6554
  arguments: {
6555
6555
  flowId: n.flowId,
6556
6556
  cursor: c.nextCursor,
6557
6557
  limit: 1
6558
6558
  }
6559
- })).structuredContent, s), "MCP must continue the REST Run cursor."), await lu(e, "tools/call", {
6559
+ })).structuredContent, s), "MCP must continue the REST Run cursor."), await uu(e, "tools/call", {
6560
6560
  name: "run_cancel",
6561
6561
  arguments: { runId: a[0] }
6562
- }), X($s((await lu(e, "tools/call", {
6562
+ }), X($s((await uu(e, "tools/call", {
6563
6563
  name: "run_list",
6564
6564
  arguments: {
6565
6565
  flowId: n.flowId,
6566
6566
  status: "canceled"
6567
6567
  }
6568
6568
  })).structuredContent, await t.listRuns(n.flowId, { status: "canceled" })), "MCP and REST status filters differ.");
6569
- let l = await lu(e, "tools/call", {
6569
+ let l = await uu(e, "tools/call", {
6570
6570
  name: "run_list",
6571
6571
  arguments: {
6572
6572
  flowId: (await t.createFlow("Other Run scope")).flowId,
@@ -6582,7 +6582,7 @@ var uu = [
6582
6582
  let t = {
6583
6583
  name: "MCP conformance",
6584
6584
  idempotencyKey: crypto.randomUUID()
6585
- }, n = () => lu(e, "tools/call", {
6585
+ }, n = () => uu(e, "tools/call", {
6586
6586
  name: "flow_create",
6587
6587
  arguments: t
6588
6588
  }), r = await n();
@@ -6591,7 +6591,7 @@ var uu = [
6591
6591
  X(typeof i.flowId == "string", "MCP did not return a Flow ID."), X($s((await n()).structuredContent, i), "MCP mutation replay changed identity.");
6592
6592
  let a = await e.request(new Request(new URL(`/v1/flows/${encodeURIComponent(i.flowId)}/draft`, e.origin)));
6593
6593
  X(a.ok, "REST cannot read the Flow created through MCP."), X((await a.json()).revisionId == i.draftRevisionId, "MCP and REST disagree on the Draft head.");
6594
- let o = await lu(e, "tools/call", {
6594
+ let o = await uu(e, "tools/call", {
6595
6595
  name: "flow_create",
6596
6596
  arguments: {
6597
6597
  ...t,
@@ -6601,7 +6601,7 @@ var uu = [
6601
6601
  X(o.isError == 1, "MCP must reject a changed idempotent replay."), X(o.structuredContent.error.code == "flow.conflict", "MCP must preserve the Control error code.");
6602
6602
  }
6603
6603
  }
6604
- ], du = "2026-07-28", fu = Zs(), Z = D().min(1), pu = Z.max(256).describe("Stable identity for this mutation. Retry with the same key and identical arguments, even after a lost response."), mu = cs().min(1).max(100).default(50), Q = Z.describe("Exact Flow ID returned by flow_list or flow_create."), hu = Z.describe("Exact Run ID returned by flow_run or run_list."), gu = "Use flow_list and flow_get to inspect a Flow. Use flow_schema to learn atomic edit operations, then flow_apply with the observed expectedRevisionId and a stable idempotencyKey. Use flow_check before flow_run. Select an explicit Trigger node ID and fixed revision or publication. A new Flow has no Trigger until you add one. Use flow_publish to publish a fixed Revision, then poll flow_publish_status until succeeded or failed. Use flow_set_enabled to enable or disable the observed Live publication. flow_run returns an accepted Run, not its final result. Find Runs with run_list, poll run_get and use run_result after terminal. Resolve a waiting Run only with an explicit run_resolve_wait action allowed by run_get. Use run_results and run_result_read to inspect stored Agent tool results; these are separate from the terminal Run result. Retry flow_create, flow_apply, flow_publish and flow_run only with identical arguments and the same idempotencyKey; a new key can execute the Flow again. Other mutations use the same resource identity and arguments when retrying. Cancel a Run explicitly with run_cancel. Use nextCursor and nextAfter to read subsequent pages. Connector-backed deployments may require a Team; inspect connector_teams before creating a Flow.";
6604
+ ], fu = "2026-07-28", pu = Zs(), Z = D().min(1), mu = Z.max(256).describe("Stable identity for this mutation. Retry with the same key and identical arguments, even after a lost response."), hu = cs().min(1).max(100).default(50), Q = Z.describe("Exact Flow ID returned by flow_list or flow_create."), gu = Z.describe("Exact Run ID returned by flow_run or run_list."), _u = "Use flow_list and flow_get to inspect a Flow. Use flow_schema to learn atomic edit operations, then flow_apply with the observed expectedRevisionId and a stable idempotencyKey. Use flow_check before flow_run. Select an explicit Trigger node ID and fixed revision or publication. A new Flow has no Trigger until you add one. Use flow_publish to publish a fixed Revision, then poll flow_publish_status until succeeded or failed. Use flow_set_enabled to enable or disable the observed Live publication. flow_run returns an accepted Run, not its final result. Find Runs with run_list, poll run_get and use run_result after terminal. Resolve a waiting Run only with an explicit run_resolve_wait action allowed by run_get. Use run_results and run_result_read to inspect stored Agent tool results; these are separate from the terminal Run result. Retry flow_create, flow_apply, flow_publish and flow_run only with identical arguments and the same idempotencyKey; a new key can execute the Flow again. Other mutations use the same resource identity and arguments when retrying. Cancel a Run explicitly with run_cancel. Use nextCursor and nextAfter to read subsequent pages. Connector-backed deployments may require a Team; inspect connector_teams before creating a Flow.";
6605
6605
  function $(e, t, n) {
6606
6606
  return {
6607
6607
  description: e,
@@ -6628,10 +6628,10 @@ function $(e, t, n) {
6628
6628
  } }
6629
6629
  };
6630
6630
  }
6631
- var _u = {
6631
+ var vu = {
6632
6632
  flow_list: $("List Flows in this deployment. Continue with nextCursor; cursors are compatible with the Control API.", N({
6633
6633
  cursor: Z.optional(),
6634
- limit: mu
6634
+ limit: hu
6635
6635
  }), !0),
6636
6636
  flow_get: $("Read Flow metadata, the full Draft and current Live publication. Unreadable Drafts return draft=null and draftIssue; flow.live still identifies the published version. Use draft.revisionId as the base of an edit.", N({ flowId: Q }), !0),
6637
6637
  flow_schema: $("Get an operation schema by kind, or a complete apply batch by example (connector, poll, poll-notification, code, wait). Use example=index to list examples. graph.trigger.create resolves a provider key into a fixed definition at commit.", N({
@@ -6639,15 +6639,15 @@ var _u = {
6639
6639
  example: Z.optional()
6640
6640
  }).refine((e) => e.kind == null || e.example == null, "Choose kind or example, not both."), !0),
6641
6641
  flow_create: $("Create an empty Flow. If this deployment uses OOMOL Connector, choose a teamId from connector_teams. Keep the key and arguments stable when retrying.", N({
6642
- name: Z.refine((e) => e == e.trim() && Lc(e) == null, "Flow name is invalid."),
6643
- idempotencyKey: pu,
6642
+ name: Z.refine((e) => e == e.trim() && Rc(e) == null, "Flow name is invalid."),
6643
+ idempotencyKey: mu,
6644
6644
  teamId: Z.optional()
6645
6645
  }), !1),
6646
6646
  flow_apply: $("Apply ordered atomic changes. Read flow_schema first. A stale expectedRevisionId is a conflict; reread the Draft before deciding on a new edit.", N({
6647
6647
  flowId: Q,
6648
6648
  expectedRevisionId: Z,
6649
- idempotencyKey: pu,
6650
- operations: j(fu).min(1).describe("Change operations defined by flow_schema. Explicit IDs and before values refer to the base Revision.")
6649
+ idempotencyKey: mu,
6650
+ operations: j(pu).min(1).describe("Change operations defined by flow_schema. Explicit IDs and before values refer to the base Revision.")
6651
6651
  }), !1),
6652
6652
  flow_check: $("Validate a fixed Revision and return diagnostics. Get its revisionId from flow_get or flow_apply.", N({
6653
6653
  flowId: Q,
@@ -6657,7 +6657,7 @@ var _u = {
6657
6657
  flowId: Q,
6658
6658
  revisionId: Z,
6659
6659
  expectedLivePublicationId: Z.nullable(),
6660
- idempotencyKey: pu
6660
+ idempotencyKey: mu
6661
6661
  }), !1),
6662
6662
  flow_publish_status: $("Read a publish operation. Only succeeded confirms publication; failed includes the failure details. Keep polling while pending.", N({
6663
6663
  flowId: Q,
@@ -6675,35 +6675,35 @@ var _u = {
6675
6675
  publicationId: Z.optional(),
6676
6676
  trigger: N({
6677
6677
  nodeId: Z,
6678
- outputs: F(D(), fu)
6678
+ outputs: F(D(), pu)
6679
6679
  }),
6680
- inputs: F(D(), F(D(), fu)).default({}),
6681
- idempotencyKey: pu
6680
+ inputs: F(D(), F(D(), pu)).default({}),
6681
+ idempotencyKey: mu
6682
6682
  }), !1),
6683
6683
  run_list: $("List Runs for a Flow, optionally filtered by status. Continue with nextCursor; cursors are compatible with the Control API.", N({
6684
6684
  flowId: Q,
6685
6685
  pendingWait: A().optional(),
6686
6686
  status: I(ec).optional(),
6687
6687
  cursor: Z.optional(),
6688
- limit: mu
6688
+ limit: hu
6689
6689
  }), !0),
6690
- run_get: $("Read Run status, including waiting details and allowed actions. Completed, failed, canceled and indeterminate are terminal.", N({ runId: hu }), !0),
6690
+ run_get: $("Read Run status, including waiting details and allowed actions. Completed, failed, canceled and indeterminate are terminal.", N({ runId: gu }), !0),
6691
6691
  run_events: $("Read one page of Run events. Continue with nextAfter. Events can expire independently of the terminal result.", N({
6692
- runId: hu,
6692
+ runId: gu,
6693
6693
  after: cs().min(0).default(0),
6694
- limit: mu
6694
+ limit: hu
6695
6695
  }), !0),
6696
- run_result: $("Read the terminal result. A queued, running or waiting Run returns run.not-terminal; inspect run_get first.", N({ runId: hu }), !0),
6696
+ run_result: $("Read the terminal result. A queued, running or waiting Run returns run.not-terminal; inspect run_get first.", N({ runId: gu }), !0),
6697
6697
  run_results: $("List stored Agent tool result metadata for a Run, including Connector and code results. Continue with nextAfter as after. Use run_result_read to inspect content.", N({
6698
- runId: hu,
6698
+ runId: gu,
6699
6699
  after: Z.optional()
6700
6700
  }), !0),
6701
- run_result_read: $("Read a bounded page of a stored Agent tool result. Select a JSON Pointer with pointer and continue with nextOffset as offset at the same pointer. A complete value contains all data at that pointer.", Rc.extend({
6702
- runId: hu,
6701
+ run_result_read: $("Read a bounded page of a stored Agent tool result. Select a JSON Pointer with pointer and continue with nextOffset as offset at the same pointer. A complete value contains all data at that pointer.", zc.extend({
6702
+ runId: gu,
6703
6703
  resultId: Z
6704
6704
  }), !0),
6705
6705
  run_resolve_wait: $("Explicitly resolve the waitId observed in run_get with one of its allowed actions. The first decision wins; inspect resolutionAccepted and action. Resume the same Run and poll run_get; do not create a replacement Run.", N({
6706
- runId: hu,
6706
+ runId: gu,
6707
6707
  waitId: Z,
6708
6708
  action: I([
6709
6709
  "approve",
@@ -6711,7 +6711,7 @@ var _u = {
6711
6711
  "reject"
6712
6712
  ])
6713
6713
  }), !1),
6714
- run_cancel: $("Explicitly cancel a Run. Inspect cancelAccepted and the authoritative status; completion can win the race.", N({ runId: hu }), !1),
6714
+ run_cancel: $("Explicitly cancel a Run. Inspect cancelAccepted and the authoritative status; completion can win the race.", N({ runId: gu }), !1),
6715
6715
  connector_teams: $("List OOMOL Teams available for Flow creation. An unconfigured or custom Connector may not provide Teams.", N({}), !0),
6716
6716
  connector_list: $("List Connector providers available in the Flow scope.", N({ flowId: Q.optional() }), !0),
6717
6717
  connector_search: $("Search Connector actions in the Flow scope.", N({
@@ -6730,4 +6730,4 @@ var _u = {
6730
6730
  trigger_get: $("Read a provider Trigger definition before creating its node.", N({ key: Z }), !0)
6731
6731
  };
6732
6732
  //#endregion
6733
- export { uu as mcpConformanceCases, gu as mcpInstructions, du as mcpProtocolVersion, _u as mcpTools };
6733
+ export { du as mcpConformanceCases, _u as mcpInstructions, fu as mcpProtocolVersion, vu as mcpTools };