@oomol-lab/open-flow 0.1.0-beta.39 → 0.1.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/codeDiagnostics-BtH_YuXu.js +44 -0
- package/dist/browser/{createResourceDialog-DnlKSqIs.js → createResourceDialog-BOrW62JW.js} +1 -1
- package/dist/browser/{dist-DYjIVIZC.js → dist-Cdna4VV_.js} +1 -1
- package/dist/browser/{dist-CeSZ2xSM.js → dist-DINmJ4Gr.js} +171 -112
- package/dist/browser/{editorComponent-T-GmTa-C.js → editorComponent-0skblWYk.js} +190 -107
- package/dist/browser/flow-authoring-node.d.ts +2 -5
- package/dist/browser/flow-authoring.js +111 -83
- package/dist/browser/flow-change-schema.d.ts +1 -1
- package/dist/browser/flow-change.d.ts +16 -5
- package/dist/browser/flow-change.js +196 -143
- package/dist/browser/{flowChanges-BXqN4jyH.js → flowChanges-3o9Vs_1I.js} +2479 -3906
- package/dist/browser/{flowWorkspace-a5QLISui.js → flowWorkspace-DJzQVVtZ.js} +12035 -10159
- package/dist/browser/{inputValues-Do4FrC_6.js → inputValues-DkDT6u0o.js} +1 -1
- package/dist/browser/{typeScriptSession-vC9uPDVV.js → typeScriptSession-v9Pb3G6d.js} +136 -136
- package/dist/browser/ui.css +1 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +0 -3
- package/dist/browser/workbench.js +1046 -1025
- package/dist/browser/{workbenchSelect-Dx2Y46cD.js → workbenchSelect-B5zXyaaX.js} +1116 -1063
- package/dist/common/connectorDecoders.d.ts +2 -1
- package/dist/common/control-api-conformance.js +1589 -1518
- package/dist/common/control-api.d.ts +18 -6
- package/dist/common/control-api.js +1470 -1392
- package/dist/common/control-requests.js +1550 -1535
- package/dist/common/draftOperations.d.ts +0 -1
- package/dist/common/flow-connectionUsage.d.ts +1 -1
- package/dist/common/flow-encoding.js +1092 -1060
- package/dist/common/flow-semantics.d.ts +1 -0
- package/dist/common/flow-semantics.js +2777 -2699
- package/dist/common/flowInspection.d.ts +1 -1
- package/dist/common/integration-trigger.js +350 -328
- package/dist/common/mcp.d.ts +27 -0
- package/dist/common/mcp.js +807 -728
- package/dist/common/poll-trigger.js +993 -971
- package/dist/common/provider-triggers.js +1521 -1203
- package/dist/common/runtime-contract.js +13 -6
- package/dist/common/scheduler.js +1430 -1408
- package/dist/common/trigger-catalog.d.ts +2 -1
- package/dist/common/webhook-trigger.js +221 -199
- package/dist/common/{zh-CN-D2od3TNw.js → zh-CN-CxZ3yYfR.js} +2 -2
- package/package.json +1 -1
|
@@ -3749,7 +3749,7 @@ var L = /*@__PURE__*/ T("ZodType", (e, t) => (ds(), A.init(e, t), e.def = t, e.t
|
|
|
3749
3749
|
return _c(this, e);
|
|
3750
3750
|
},
|
|
3751
3751
|
array() {
|
|
3752
|
-
return
|
|
3752
|
+
return B(this);
|
|
3753
3753
|
},
|
|
3754
3754
|
or(e) {
|
|
3755
3755
|
return U([this, e]);
|
|
@@ -4122,28 +4122,28 @@ function Vs(e) {
|
|
|
4122
4122
|
var Hs = /*@__PURE__*/ T("ZodBoolean", (e, t) => {
|
|
4123
4123
|
gr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => ro(e, t, n, r);
|
|
4124
4124
|
});
|
|
4125
|
-
function
|
|
4125
|
+
function Us(e) {
|
|
4126
4126
|
return /* @__PURE__ */ ea(Hs, e);
|
|
4127
4127
|
}
|
|
4128
|
-
var
|
|
4128
|
+
var Ws = /*@__PURE__*/ T("ZodNull", (e, t) => {
|
|
4129
4129
|
_r.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => oo(e, t, n, r);
|
|
4130
4130
|
});
|
|
4131
|
-
function
|
|
4132
|
-
return /* @__PURE__ */ ta(
|
|
4131
|
+
function Gs(e) {
|
|
4132
|
+
return /* @__PURE__ */ ta(Ws, e);
|
|
4133
4133
|
}
|
|
4134
|
-
var
|
|
4134
|
+
var Ks = /*@__PURE__*/ T("ZodUnknown", (e, t) => {
|
|
4135
4135
|
vr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (e, t, n) => void 0;
|
|
4136
4136
|
});
|
|
4137
|
-
function
|
|
4138
|
-
return /* @__PURE__ */ na(
|
|
4137
|
+
function qs() {
|
|
4138
|
+
return /* @__PURE__ */ na(Ks);
|
|
4139
4139
|
}
|
|
4140
|
-
var
|
|
4140
|
+
var Js = /*@__PURE__*/ T("ZodNever", (e, t) => {
|
|
4141
4141
|
yr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => lo(e, t, n, r);
|
|
4142
4142
|
});
|
|
4143
|
-
function
|
|
4144
|
-
return /* @__PURE__ */ ra(
|
|
4143
|
+
function Ys(e) {
|
|
4144
|
+
return /* @__PURE__ */ ra(Js, e);
|
|
4145
4145
|
}
|
|
4146
|
-
var
|
|
4146
|
+
var Xs = /*@__PURE__*/ T("ZodArray", (e, t) => {
|
|
4147
4147
|
fs(), xr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => To(e, t, n, r), e.element = t.element;
|
|
4148
4148
|
}, {
|
|
4149
4149
|
min(e, t) {
|
|
@@ -4162,10 +4162,10 @@ var Ys = /*@__PURE__*/ T("ZodArray", (e, t) => {
|
|
|
4162
4162
|
return this.element;
|
|
4163
4163
|
}
|
|
4164
4164
|
});
|
|
4165
|
-
function
|
|
4166
|
-
return /* @__PURE__ */ wa(
|
|
4165
|
+
function B(e, t) {
|
|
4166
|
+
return /* @__PURE__ */ wa(Xs, e, t);
|
|
4167
4167
|
}
|
|
4168
|
-
var
|
|
4168
|
+
var Zs = /*@__PURE__*/ T("ZodObject", (e, t) => {
|
|
4169
4169
|
fs(), Dr.init(e, t), L.init(e, t), e._zod.processJSONSchema = (t, n, r) => Do(e, t, n, r), Ue(e, "shape", (e) => e._zod.def.shape, !1);
|
|
4170
4170
|
}, {
|
|
4171
4171
|
keyof() {
|
|
@@ -4175,13 +4175,13 @@ var Xs = /*@__PURE__*/ T("ZodObject", (e, t) => {
|
|
|
4175
4175
|
return this.clone(v(this._zod.def, { catchall: e }));
|
|
4176
4176
|
},
|
|
4177
4177
|
passthrough() {
|
|
4178
|
-
return this.clone(v(this._zod.def, { catchall:
|
|
4178
|
+
return this.clone(v(this._zod.def, { catchall: qs() }));
|
|
4179
4179
|
},
|
|
4180
4180
|
loose() {
|
|
4181
|
-
return this.clone(v(this._zod.def, { catchall:
|
|
4181
|
+
return this.clone(v(this._zod.def, { catchall: qs() }));
|
|
4182
4182
|
},
|
|
4183
4183
|
strict() {
|
|
4184
|
-
return this.clone(v(this._zod.def, { catchall:
|
|
4184
|
+
return this.clone(v(this._zod.def, { catchall: Ys() }));
|
|
4185
4185
|
},
|
|
4186
4186
|
strip() {
|
|
4187
4187
|
return this.clone(v(this._zod.def, { catchall: void 0 }));
|
|
@@ -4211,18 +4211,18 @@ var Xs = /*@__PURE__*/ T("ZodObject", (e, t) => {
|
|
|
4211
4211
|
return Te(gc, this, e[0]);
|
|
4212
4212
|
}
|
|
4213
4213
|
});
|
|
4214
|
-
function
|
|
4215
|
-
return new
|
|
4214
|
+
function V(e, t) {
|
|
4215
|
+
return new Zs({
|
|
4216
4216
|
type: "object",
|
|
4217
4217
|
shape: e ?? {},
|
|
4218
4218
|
...b(t)
|
|
4219
4219
|
});
|
|
4220
4220
|
}
|
|
4221
|
-
function
|
|
4222
|
-
return new
|
|
4221
|
+
function H(e, t) {
|
|
4222
|
+
return new Zs({
|
|
4223
4223
|
type: "object",
|
|
4224
4224
|
shape: e,
|
|
4225
|
-
catchall:
|
|
4225
|
+
catchall: Ys(),
|
|
4226
4226
|
...b(t)
|
|
4227
4227
|
});
|
|
4228
4228
|
}
|
|
@@ -4439,9 +4439,9 @@ function kc(e) {
|
|
|
4439
4439
|
let t = Tc(() => U([
|
|
4440
4440
|
hs(e),
|
|
4441
4441
|
z(),
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4442
|
+
Us(),
|
|
4443
|
+
Gs(),
|
|
4444
|
+
B(t),
|
|
4445
4445
|
W(hs(), t)
|
|
4446
4446
|
]));
|
|
4447
4447
|
return t;
|
|
@@ -4452,11 +4452,11 @@ function Ac(e, t = 0) {
|
|
|
4452
4452
|
}
|
|
4453
4453
|
//#endregion
|
|
4454
4454
|
//#region src/flow/common/triggerScheduleSchema.ts
|
|
4455
|
-
var jc =
|
|
4455
|
+
var jc = B(U([V({
|
|
4456
4456
|
type: K("cron"),
|
|
4457
4457
|
expression: hs(),
|
|
4458
4458
|
timezone: hs()
|
|
4459
|
-
}),
|
|
4459
|
+
}), V({
|
|
4460
4460
|
type: K("every"),
|
|
4461
4461
|
unit: G([
|
|
4462
4462
|
"day",
|
|
@@ -4472,114 +4472,129 @@ var jc = V(U([H({
|
|
|
4472
4472
|
"PUT",
|
|
4473
4473
|
"PATCH",
|
|
4474
4474
|
"DELETE"
|
|
4475
|
-
], Nc =
|
|
4475
|
+
], Nc = 4, q = hs(), Pc = kc(), Fc = B(q), Ic = V({
|
|
4476
4476
|
description: q.optional(),
|
|
4477
4477
|
jsonSchema: Pc,
|
|
4478
|
-
nullable:
|
|
4478
|
+
nullable: Us(),
|
|
4479
4479
|
handle: q
|
|
4480
|
-
}), J = Ic.extend({ value: Pc.optional() }), Lc =
|
|
4481
|
-
collapsed:
|
|
4480
|
+
}), J = Ic.extend({ value: Pc.optional() }), Lc = V({
|
|
4481
|
+
collapsed: Us().optional(),
|
|
4482
4482
|
group: q
|
|
4483
|
-
}), Rc =
|
|
4483
|
+
}), Rc = V({
|
|
4484
4484
|
kind: K("node"),
|
|
4485
4485
|
nodeId: q,
|
|
4486
4486
|
output: q,
|
|
4487
4487
|
field: q.optional()
|
|
4488
|
-
}), zc =
|
|
4488
|
+
}), zc = V({
|
|
4489
4489
|
kind: K("flow"),
|
|
4490
4490
|
input: q
|
|
4491
4491
|
}), Bc = U([
|
|
4492
4492
|
Rc,
|
|
4493
4493
|
zc,
|
|
4494
|
-
|
|
4494
|
+
V({
|
|
4495
4495
|
kind: K("binding"),
|
|
4496
4496
|
bindingId: q
|
|
4497
4497
|
})
|
|
4498
|
-
]), Vc = U([
|
|
4498
|
+
]), Vc = U([V({ kind: K("unset") }), V({
|
|
4499
4499
|
kind: K("value"),
|
|
4500
4500
|
value: Pc
|
|
4501
|
-
})]), Hc = U([Vc,
|
|
4501
|
+
})]), Hc = U([Vc, V({
|
|
4502
4502
|
kind: K("sources"),
|
|
4503
|
-
sources:
|
|
4503
|
+
sources: B(Bc)
|
|
4504
4504
|
})]), Uc = W(q, Hc), Wc = {
|
|
4505
|
-
inputs:
|
|
4506
|
-
outputs:
|
|
4507
|
-
}, Gc = U([
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
connectionId: q.optional(),
|
|
4511
|
-
connections: V(Zs({
|
|
4512
|
-
connectionId: q,
|
|
4513
|
-
alias: q.optional()
|
|
4514
|
-
}))
|
|
4515
|
-
}), Zs({
|
|
4516
|
-
kind: K("connector"),
|
|
4517
|
-
actionHints: V(q).optional(),
|
|
4518
|
-
connectionHints: V(Zs({
|
|
4505
|
+
inputs: B(U([J, Lc])),
|
|
4506
|
+
outputs: B(U([Ic, Lc]))
|
|
4507
|
+
}, Gc = U([
|
|
4508
|
+
H({
|
|
4509
|
+
kind: K("connector"),
|
|
4519
4510
|
action: q,
|
|
4520
|
-
connectionId: q,
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4511
|
+
connectionId: q.optional(),
|
|
4512
|
+
connections: B(H({
|
|
4513
|
+
connectionId: q,
|
|
4514
|
+
alias: q.optional()
|
|
4515
|
+
}))
|
|
4516
|
+
}),
|
|
4517
|
+
H({
|
|
4518
|
+
kind: K("connector"),
|
|
4519
|
+
mode: K("shared")
|
|
4520
|
+
}),
|
|
4521
|
+
H({
|
|
4522
|
+
kind: K("connector"),
|
|
4523
|
+
mode: K("independent"),
|
|
4524
|
+
actions: B(H({
|
|
4525
|
+
action: q,
|
|
4526
|
+
connectionId: q.optional()
|
|
4527
|
+
}))
|
|
4528
|
+
}),
|
|
4529
|
+
H({
|
|
4530
|
+
kind: K("connector"),
|
|
4531
|
+
actionHints: B(q).optional(),
|
|
4532
|
+
connectionHints: B(H({
|
|
4533
|
+
action: q,
|
|
4534
|
+
connectionId: q,
|
|
4535
|
+
alias: q.optional()
|
|
4536
|
+
})).optional()
|
|
4537
|
+
})
|
|
4538
|
+
]), Kc = V({
|
|
4524
4539
|
...Wc,
|
|
4525
4540
|
name: q,
|
|
4526
4541
|
moduleId: q,
|
|
4527
|
-
capabilities:
|
|
4528
|
-
}), qc = U([
|
|
4542
|
+
capabilities: B(Gc).optional()
|
|
4543
|
+
}), qc = U([V({
|
|
4529
4544
|
kind: K("value"),
|
|
4530
4545
|
value: Pc
|
|
4531
|
-
}),
|
|
4546
|
+
}), V({
|
|
4532
4547
|
kind: K("input"),
|
|
4533
4548
|
input: q
|
|
4534
|
-
})]), Jc = U([qc,
|
|
4549
|
+
})]), Jc = U([qc, V({ kind: K("model") })]), Yc = V({
|
|
4535
4550
|
...Wc,
|
|
4536
4551
|
name: q,
|
|
4537
4552
|
executor: U([
|
|
4538
|
-
|
|
4553
|
+
V({
|
|
4539
4554
|
kind: K("connector"),
|
|
4540
4555
|
action: q,
|
|
4541
4556
|
connectionId: q.optional()
|
|
4542
4557
|
}),
|
|
4543
|
-
|
|
4558
|
+
V({
|
|
4544
4559
|
kind: K("llm"),
|
|
4545
4560
|
mode: G(["chat", "json"])
|
|
4546
4561
|
}),
|
|
4547
|
-
|
|
4562
|
+
V({
|
|
4548
4563
|
kind: K("agent"),
|
|
4549
|
-
code:
|
|
4564
|
+
code: Us().optional(),
|
|
4550
4565
|
model: q,
|
|
4551
4566
|
prompt: qc,
|
|
4552
4567
|
system: q,
|
|
4553
4568
|
maxRounds: z(),
|
|
4554
|
-
tools: V(
|
|
4569
|
+
tools: B(V({
|
|
4555
4570
|
id: q,
|
|
4556
4571
|
name: q,
|
|
4557
4572
|
description: q,
|
|
4558
4573
|
action: q,
|
|
4559
4574
|
connectionId: q.optional(),
|
|
4560
|
-
approval:
|
|
4561
|
-
inputs:
|
|
4575
|
+
approval: Us(),
|
|
4576
|
+
inputs: B(J.extend({ source: Jc }))
|
|
4562
4577
|
})),
|
|
4563
|
-
notification:
|
|
4578
|
+
notification: V({
|
|
4564
4579
|
taskId: q,
|
|
4565
4580
|
messageHandle: q,
|
|
4566
4581
|
inputs: W(q, qc)
|
|
4567
4582
|
}).optional()
|
|
4568
4583
|
})
|
|
4569
4584
|
])
|
|
4570
|
-
}), Xc = U([
|
|
4585
|
+
}), Xc = U([V({
|
|
4571
4586
|
kind: K("value"),
|
|
4572
4587
|
value: Pc.optional(),
|
|
4573
4588
|
jsonSchema: Pc.optional()
|
|
4574
|
-
}),
|
|
4589
|
+
}), V({
|
|
4575
4590
|
kind: K("source"),
|
|
4576
4591
|
source: Bc
|
|
4577
4592
|
})]), Zc = {
|
|
4578
4593
|
matchMode: G(["first", "all"]),
|
|
4579
|
-
cases: V(
|
|
4594
|
+
cases: B(V({
|
|
4580
4595
|
description: q.optional(),
|
|
4581
4596
|
output: q,
|
|
4582
|
-
groups: V(
|
|
4597
|
+
groups: B(V({ expressions: B(V({
|
|
4583
4598
|
left: Xc,
|
|
4584
4599
|
operator: G([
|
|
4585
4600
|
"!=",
|
|
@@ -4607,17 +4622,17 @@ var jc = V(U([H({
|
|
|
4607
4622
|
})) }))
|
|
4608
4623
|
}))
|
|
4609
4624
|
}, Qc = {
|
|
4610
|
-
inputDefinitions:
|
|
4625
|
+
inputDefinitions: B(J),
|
|
4611
4626
|
prompt: q
|
|
4612
|
-
}, $c =
|
|
4613
|
-
allowedMethods:
|
|
4627
|
+
}, $c = V({
|
|
4628
|
+
allowedMethods: Ys().optional(),
|
|
4614
4629
|
allowedOrigins: Fc.optional(),
|
|
4615
|
-
noResponseBody:
|
|
4630
|
+
noResponseBody: Ys().optional(),
|
|
4616
4631
|
responseData: q.optional(),
|
|
4617
4632
|
responseHeaders: W(q, q).optional(),
|
|
4618
4633
|
responseStatusCode: z().int().min(200).max(599).optional()
|
|
4619
4634
|
}), el = {
|
|
4620
|
-
bodyFields:
|
|
4635
|
+
bodyFields: B(J),
|
|
4621
4636
|
method: G(Mc),
|
|
4622
4637
|
options: $c.optional()
|
|
4623
4638
|
}, tl = {
|
|
@@ -4627,20 +4642,20 @@ var jc = V(U([H({
|
|
|
4627
4642
|
displayName: q,
|
|
4628
4643
|
key: q,
|
|
4629
4644
|
name: q,
|
|
4630
|
-
outputs:
|
|
4645
|
+
outputs: B(Ic).refine((e) => new Set(e.map((e) => e.handle)).size === e.length, "Duplicate Trigger output handle."),
|
|
4631
4646
|
provider: q
|
|
4632
|
-
}, nl =
|
|
4633
|
-
body:
|
|
4634
|
-
allowArray:
|
|
4635
|
-
allowEmpty:
|
|
4636
|
-
formats:
|
|
4647
|
+
}, nl = V({
|
|
4648
|
+
body: V({
|
|
4649
|
+
allowArray: Us(),
|
|
4650
|
+
allowEmpty: Us(),
|
|
4651
|
+
formats: B(G([
|
|
4637
4652
|
"form",
|
|
4638
4653
|
"json",
|
|
4639
4654
|
"multipart",
|
|
4640
4655
|
"text"
|
|
4641
4656
|
]))
|
|
4642
4657
|
}),
|
|
4643
|
-
methods:
|
|
4658
|
+
methods: B(G([
|
|
4644
4659
|
"DELETE",
|
|
4645
4660
|
"GET",
|
|
4646
4661
|
"HEAD",
|
|
@@ -4661,113 +4676,113 @@ var jc = V(U([H({
|
|
|
4661
4676
|
icon: q.optional(),
|
|
4662
4677
|
timeoutMs: z().optional()
|
|
4663
4678
|
}, al = U([
|
|
4664
|
-
|
|
4679
|
+
V({
|
|
4665
4680
|
...il,
|
|
4666
|
-
inputs: W(q,
|
|
4681
|
+
inputs: W(q, Ys()),
|
|
4667
4682
|
kind: K("condition"),
|
|
4668
4683
|
...Zc
|
|
4669
4684
|
}),
|
|
4670
|
-
|
|
4685
|
+
V({
|
|
4671
4686
|
...il,
|
|
4672
|
-
inputs:
|
|
4687
|
+
inputs: qs().transform(() => ({})).default({}),
|
|
4673
4688
|
kind: K("value"),
|
|
4674
|
-
values:
|
|
4689
|
+
values: B(J)
|
|
4675
4690
|
}),
|
|
4676
|
-
|
|
4691
|
+
V({
|
|
4677
4692
|
...il,
|
|
4678
4693
|
kind: K("subflow"),
|
|
4679
4694
|
subflowId: q
|
|
4680
4695
|
}),
|
|
4681
|
-
|
|
4696
|
+
V({
|
|
4682
4697
|
...il,
|
|
4683
4698
|
kind: K("task"),
|
|
4684
4699
|
task: Kc,
|
|
4685
|
-
additionalInputs:
|
|
4700
|
+
additionalInputs: B(J).optional()
|
|
4686
4701
|
}),
|
|
4687
|
-
|
|
4702
|
+
V({
|
|
4688
4703
|
...il,
|
|
4689
4704
|
kind: K("task"),
|
|
4690
4705
|
taskId: q,
|
|
4691
|
-
additionalInputs:
|
|
4706
|
+
additionalInputs: B(J).optional()
|
|
4692
4707
|
}),
|
|
4693
|
-
|
|
4708
|
+
H({
|
|
4694
4709
|
...il,
|
|
4695
4710
|
kind: K("approval"),
|
|
4696
4711
|
...Qc
|
|
4697
4712
|
}).omit({ timeoutMs: !0 }),
|
|
4698
|
-
|
|
4713
|
+
H({
|
|
4699
4714
|
...il,
|
|
4700
4715
|
kind: K("wait"),
|
|
4701
4716
|
...Qc
|
|
4702
4717
|
}).omit({ timeoutMs: !0 }),
|
|
4703
|
-
|
|
4718
|
+
V({
|
|
4704
4719
|
...rl,
|
|
4705
4720
|
kind: K("manual")
|
|
4706
4721
|
}),
|
|
4707
|
-
|
|
4722
|
+
V({
|
|
4708
4723
|
...rl,
|
|
4709
4724
|
kind: K("webhook"),
|
|
4710
4725
|
...el
|
|
4711
4726
|
}),
|
|
4712
|
-
|
|
4727
|
+
V({
|
|
4713
4728
|
...rl,
|
|
4714
4729
|
kind: K("cron"),
|
|
4715
4730
|
cronTimes: jc
|
|
4716
4731
|
}),
|
|
4717
|
-
|
|
4732
|
+
V({
|
|
4718
4733
|
...rl,
|
|
4719
4734
|
kind: K("poll"),
|
|
4720
|
-
|
|
4735
|
+
connectionId: q.min(1).optional(),
|
|
4721
4736
|
config: W(q, Vc),
|
|
4722
|
-
definition:
|
|
4737
|
+
definition: V({
|
|
4723
4738
|
...tl,
|
|
4724
4739
|
type: K("poll")
|
|
4725
4740
|
}),
|
|
4726
4741
|
pollTimes: jc
|
|
4727
4742
|
}),
|
|
4728
|
-
|
|
4743
|
+
V({
|
|
4729
4744
|
...rl,
|
|
4730
4745
|
kind: K("integration"),
|
|
4731
|
-
|
|
4746
|
+
connectionId: q.min(1).optional(),
|
|
4732
4747
|
config: W(q, Vc),
|
|
4733
|
-
definition:
|
|
4748
|
+
definition: V({
|
|
4734
4749
|
...tl,
|
|
4735
4750
|
type: K("integration"),
|
|
4736
4751
|
endpoint: nl
|
|
4737
4752
|
})
|
|
4738
4753
|
})
|
|
4739
|
-
]), ol = U([
|
|
4754
|
+
]), ol = U([V({ kind: K("flow") }), V({
|
|
4740
4755
|
kind: K("subflow"),
|
|
4741
4756
|
id: q
|
|
4742
|
-
})]), sl =
|
|
4757
|
+
})]), sl = V({
|
|
4743
4758
|
source: q,
|
|
4744
4759
|
target: q,
|
|
4745
4760
|
sourceHandle: q.optional()
|
|
4746
4761
|
}), Y = {
|
|
4747
4762
|
nodeId: q,
|
|
4748
4763
|
target: ol
|
|
4749
|
-
}, cl =
|
|
4764
|
+
}, cl = V({
|
|
4750
4765
|
name: q,
|
|
4751
|
-
inputs:
|
|
4752
|
-
outputs:
|
|
4753
|
-
}), ll =
|
|
4766
|
+
inputs: B(J),
|
|
4767
|
+
outputs: B(Ic.extend({ sources: B(U([Rc, zc])) }))
|
|
4768
|
+
}), ll = V({
|
|
4754
4769
|
nodes: W(q, al),
|
|
4755
|
-
edges:
|
|
4756
|
-
}), ul =
|
|
4757
|
-
kind:
|
|
4770
|
+
edges: B(sl).default([])
|
|
4771
|
+
}), ul = V({
|
|
4772
|
+
kind: K("variable"),
|
|
4758
4773
|
target: q
|
|
4759
|
-
}), dl =
|
|
4774
|
+
}), dl = V({
|
|
4760
4775
|
name: q,
|
|
4761
4776
|
imports: Fc,
|
|
4762
4777
|
source: q
|
|
4763
|
-
}), fl =
|
|
4778
|
+
}), fl = V({
|
|
4764
4779
|
bindings: W(q, ul),
|
|
4765
4780
|
graph: ll,
|
|
4766
4781
|
subflows: W(q, cl.extend({ graph: ll })),
|
|
4767
4782
|
tasks: W(q, Yc)
|
|
4768
4783
|
});
|
|
4769
|
-
|
|
4770
|
-
modelVersion: U([K(2), K(
|
|
4784
|
+
V({
|
|
4785
|
+
modelVersion: U([K(2), K(4)]),
|
|
4771
4786
|
document: fl,
|
|
4772
4787
|
modules: W(q, dl)
|
|
4773
4788
|
}).extend({
|
|
@@ -4799,7 +4814,14 @@ var pl = {
|
|
|
4799
4814
|
},
|
|
4800
4815
|
"graph.node.delete": Y,
|
|
4801
4816
|
"graph.node.field.set": U([
|
|
4802
|
-
|
|
4817
|
+
V({
|
|
4818
|
+
...Y,
|
|
4819
|
+
kind: K("graph.node.field.set"),
|
|
4820
|
+
field: K("connectionId"),
|
|
4821
|
+
before: q.min(1).optional(),
|
|
4822
|
+
value: q.min(1).optional()
|
|
4823
|
+
}),
|
|
4824
|
+
V({
|
|
4803
4825
|
...Y,
|
|
4804
4826
|
kind: K("graph.node.field.set"),
|
|
4805
4827
|
field: G([
|
|
@@ -4810,14 +4832,14 @@ var pl = {
|
|
|
4810
4832
|
before: q.optional(),
|
|
4811
4833
|
value: q.optional()
|
|
4812
4834
|
}),
|
|
4813
|
-
|
|
4835
|
+
V({
|
|
4814
4836
|
...Y,
|
|
4815
4837
|
kind: K("graph.node.field.set"),
|
|
4816
4838
|
field: K("maxExecutions"),
|
|
4817
4839
|
before: z().int().positive().max(2 ** 53 - 1).optional(),
|
|
4818
4840
|
value: z().int().positive().max(2 ** 53 - 1).optional()
|
|
4819
4841
|
}),
|
|
4820
|
-
|
|
4842
|
+
V({
|
|
4821
4843
|
...Y,
|
|
4822
4844
|
kind: K("graph.node.field.set"),
|
|
4823
4845
|
field: K("timeoutMs"),
|
|
@@ -4833,35 +4855,35 @@ var pl = {
|
|
|
4833
4855
|
},
|
|
4834
4856
|
"graph.node.additional-inputs.set": {
|
|
4835
4857
|
...Y,
|
|
4836
|
-
before:
|
|
4837
|
-
value:
|
|
4858
|
+
before: B(J).optional(),
|
|
4859
|
+
value: B(J).optional()
|
|
4838
4860
|
},
|
|
4839
4861
|
"graph.node.condition.set": {
|
|
4840
4862
|
...Y,
|
|
4841
|
-
before:
|
|
4842
|
-
value:
|
|
4863
|
+
before: V(Zc),
|
|
4864
|
+
value: V(Zc)
|
|
4843
4865
|
},
|
|
4844
4866
|
"graph.node.values.set": {
|
|
4845
4867
|
...Y,
|
|
4846
|
-
before:
|
|
4847
|
-
value:
|
|
4868
|
+
before: B(J),
|
|
4869
|
+
value: B(J)
|
|
4848
4870
|
},
|
|
4849
4871
|
"graph.node.resolution.set": {
|
|
4850
4872
|
...Y,
|
|
4851
|
-
target:
|
|
4852
|
-
before:
|
|
4853
|
-
value:
|
|
4873
|
+
target: V({ kind: K("flow") }),
|
|
4874
|
+
before: V(Qc),
|
|
4875
|
+
value: V(Qc)
|
|
4854
4876
|
},
|
|
4855
4877
|
"graph.node.webhook.set": {
|
|
4856
4878
|
...Y,
|
|
4857
|
-
target:
|
|
4858
|
-
before:
|
|
4859
|
-
value:
|
|
4879
|
+
target: V({ kind: K("flow") }),
|
|
4880
|
+
before: V(el),
|
|
4881
|
+
value: V(el)
|
|
4860
4882
|
},
|
|
4861
4883
|
"graph.node.task.ports.set": {
|
|
4862
4884
|
...Y,
|
|
4863
|
-
before:
|
|
4864
|
-
value:
|
|
4885
|
+
before: V(Wc),
|
|
4886
|
+
value: V(Wc)
|
|
4865
4887
|
},
|
|
4866
4888
|
"graph.node.task.name.set": {
|
|
4867
4889
|
...Y,
|
|
@@ -4870,8 +4892,8 @@ var pl = {
|
|
|
4870
4892
|
},
|
|
4871
4893
|
"graph.node.task.capabilities.set": {
|
|
4872
4894
|
...Y,
|
|
4873
|
-
before:
|
|
4874
|
-
value:
|
|
4895
|
+
before: B(Gc).optional(),
|
|
4896
|
+
value: B(Gc).optional()
|
|
4875
4897
|
},
|
|
4876
4898
|
"graph.trigger.config.set": {
|
|
4877
4899
|
nodeId: q,
|
|
@@ -4936,10 +4958,10 @@ var pl = {
|
|
|
4936
4958
|
before: q,
|
|
4937
4959
|
value: q
|
|
4938
4960
|
}
|
|
4939
|
-
}, ml = new Map(Object.entries(pl).map(([e, t]) => [e, t instanceof L ? t :
|
|
4961
|
+
}, ml = new Map(Object.entries(pl).map(([e, t]) => [e, t instanceof L ? t : V({
|
|
4940
4962
|
kind: K(e),
|
|
4941
4963
|
...t
|
|
4942
|
-
})])), hl =
|
|
4964
|
+
})])), hl = B(U([...ml.values()])).min(1);
|
|
4943
4965
|
function gl(e, t, n) {
|
|
4944
4966
|
try {
|
|
4945
4967
|
return n(e);
|
|
@@ -4948,12 +4970,12 @@ function gl(e, t, n) {
|
|
|
4948
4970
|
}
|
|
4949
4971
|
}
|
|
4950
4972
|
function _l(e, t) {
|
|
4951
|
-
let { kind: n } = gl(e, t,
|
|
4973
|
+
let { kind: n } = gl(e, t, V({ kind: q }).parse), r = ml.get(n);
|
|
4952
4974
|
if (r == null) throw TypeError(`operations[${t}]: Unknown operation ${JSON.stringify(n)}.`);
|
|
4953
4975
|
return gl(e, t, r.parse);
|
|
4954
4976
|
}
|
|
4955
4977
|
function vl(e) {
|
|
4956
|
-
return Ac(e),
|
|
4978
|
+
return Ac(e), B(qs()).min(1).parse(e).map(_l);
|
|
4957
4979
|
}
|
|
4958
4980
|
function yl(e) {
|
|
4959
4981
|
let t = e == null ? hl : ml.get(e);
|
|
@@ -5054,6 +5076,37 @@ function Al(e) {
|
|
|
5054
5076
|
function jl(e) {
|
|
5055
5077
|
if (!Array.isArray(e)) throw TypeError("Connector capabilities must be an array.");
|
|
5056
5078
|
if (e.length == 0) return [];
|
|
5079
|
+
if (e.some((e) => typeof e == "object" && !!e && !Array.isArray(e) && Object.hasOwn(e, "mode"))) {
|
|
5080
|
+
if (e.length != 1) throw TypeError("Connector capability is declared more than once.");
|
|
5081
|
+
let t = e[0];
|
|
5082
|
+
if (t.mode == "shared") {
|
|
5083
|
+
if (t.kind != "connector" || Object.keys(t).some((e) => !["kind", "mode"].includes(e))) throw TypeError("Invalid shared Connector permission capability.");
|
|
5084
|
+
return [{
|
|
5085
|
+
kind: "connector",
|
|
5086
|
+
mode: "shared"
|
|
5087
|
+
}];
|
|
5088
|
+
}
|
|
5089
|
+
if (Object.keys(t).some((e) => ![
|
|
5090
|
+
"kind",
|
|
5091
|
+
"mode",
|
|
5092
|
+
"actions"
|
|
5093
|
+
].includes(e)) || t.kind != "connector" || t.mode != "independent" || !Array.isArray(t.actions)) throw TypeError("Invalid Connector permission capability.");
|
|
5094
|
+
let n = t.actions.map((e) => {
|
|
5095
|
+
if (typeof e != "object" || !e || Array.isArray(e)) throw TypeError("Invalid Connector Action.");
|
|
5096
|
+
let t = e;
|
|
5097
|
+
if (Object.keys(t).some((e) => !["action", "connectionId"].includes(e)) || typeof t.action != "string" || !/^[A-Za-z0-9_-]+\.[A-Za-z0-9_.-]+$/.test(t.action) || Object.hasOwn(t, "connectionId") && (typeof t.connectionId != "string" || t.connectionId.length == 0)) throw TypeError("Invalid Connector Action permission.");
|
|
5098
|
+
return t.connectionId == null ? { action: t.action } : {
|
|
5099
|
+
action: t.action,
|
|
5100
|
+
connectionId: t.connectionId
|
|
5101
|
+
};
|
|
5102
|
+
});
|
|
5103
|
+
if (new Set(n.map((e) => e.action)).size != n.length) throw TypeError("Duplicate Connector Action permission.");
|
|
5104
|
+
return [{
|
|
5105
|
+
kind: "connector",
|
|
5106
|
+
mode: "independent",
|
|
5107
|
+
actions: n
|
|
5108
|
+
}];
|
|
5109
|
+
}
|
|
5057
5110
|
if (e.some((e) => typeof e == "object" && !!e && !Array.isArray(e) && !Object.hasOwn(e, "action"))) {
|
|
5058
5111
|
if (e.length != 1) throw TypeError("Connector capability is declared more than once.");
|
|
5059
5112
|
let t = e[0];
|
|
@@ -5279,7 +5332,7 @@ function Fl(e, t) {
|
|
|
5279
5332
|
}
|
|
5280
5333
|
case "graph.node.field.set": {
|
|
5281
5334
|
let t = Q(n, e.target), r = t.nodes[e.nodeId];
|
|
5282
|
-
r ?? Z("The Node does not exist in the target graph."), i(Reflect.get(r, e.field), e.before) || Z("The Node field changed before this operation was applied.");
|
|
5335
|
+
r ?? Z("The Node does not exist in the target graph."), e.field == "connectionId" && r.kind != "poll" && r.kind != "integration" && Z("Only provider Triggers select a node Connection."), i(Reflect.get(r, e.field), e.before) || Z("The Node field changed before this operation was applied.");
|
|
5283
5336
|
let a = { ...r };
|
|
5284
5337
|
if (e.field == "name") {
|
|
5285
5338
|
typeof e.value != "string" && Z("A Node name cannot be empty.");
|
|
@@ -5573,7 +5626,7 @@ function Fl(e, t) {
|
|
|
5573
5626
|
}
|
|
5574
5627
|
return {
|
|
5575
5628
|
document: n,
|
|
5576
|
-
modelVersion:
|
|
5629
|
+
modelVersion: 4,
|
|
5577
5630
|
modules: r
|
|
5578
5631
|
};
|
|
5579
5632
|
}
|