@blue-labs/sdk-dsl 4.1.1 → 5.0.0-rc.1
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/index.js +714 -599
- package/dist/lib/core/semantic-repository.d.ts +127 -163
- package/dist/lib/core/semantic-repository.d.ts.map +1 -1
- package/dist/lib/core/serialization.d.ts +3 -3
- package/dist/lib/core/serialization.d.ts.map +1 -1
- package/dist/lib/doc-builder/doc-builder.d.ts +2 -2
- package/dist/lib/doc-builder/doc-builder.d.ts.map +1 -1
- package/dist/lib/doc-builder/simple-doc-builder.d.ts +1 -1
- package/dist/lib/patch/blue-change-compiler.d.ts +1 -1
- package/dist/lib/patch/doc-patch.d.ts +1 -1
- package/dist/lib/samples/java-sandbox-samples.d.ts +1 -1
- package/dist/lib/samples/java-sandbox-samples.d.ts.map +1 -1
- package/dist/lib/steps/steps-builder.d.ts +1 -1
- package/dist/lib/steps/steps-builder.d.ts.map +1 -1
- package/dist/lib/structure/doc-structure.d.ts +1 -1
- package/dist/test-harness/runtime.d.ts +2 -2
- package/dist/test-harness/runtime.d.ts.map +1 -1
- package/dist/test-support/editing-support.d.ts +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createDefaultMergingProcessor as
|
|
2
|
-
import { Blue as
|
|
3
|
-
import { repository as
|
|
1
|
+
import { createDefaultMergingProcessor as at } from "@blue-labs/document-processor";
|
|
2
|
+
import { Properties as ct, BUILTIN_RUNTIME_TYPE_CONTENT_BY_BLUE_ID as ut, Blue as lt, BlueNode as N, applyBlueNodePatch as ht } from "@blue-labs/language";
|
|
3
|
+
import { repository as pt } from "@blue-repository/types";
|
|
4
4
|
const K = {
|
|
5
5
|
Text: "Text",
|
|
6
6
|
Integer: "Integer",
|
|
@@ -12,7 +12,7 @@ const K = {
|
|
|
12
12
|
function z(n) {
|
|
13
13
|
return typeof n == "object" && n !== null && !Array.isArray(n);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function dt(n) {
|
|
16
16
|
const e = n.trim();
|
|
17
17
|
if (e.length === 0)
|
|
18
18
|
throw new Error("Pointer cannot be empty");
|
|
@@ -28,28 +28,28 @@ function ee(n) {
|
|
|
28
28
|
function W(n) {
|
|
29
29
|
return n.replace(/~/gu, "~0").replace(/\//gu, "~1");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function mt(n) {
|
|
32
32
|
return n.replace(/~1/gu, "/").replace(/~0/gu, "~");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
const e =
|
|
36
|
-
return e === "/" ? [] : e.split("/").slice(1).map(
|
|
34
|
+
function be(n) {
|
|
35
|
+
const e = dt(n);
|
|
36
|
+
return e === "/" ? [] : e.split("/").slice(1).map(mt);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function ft(n, e) {
|
|
39
39
|
const t = n[e];
|
|
40
40
|
if (z(t))
|
|
41
41
|
return t;
|
|
42
42
|
const s = {};
|
|
43
43
|
return n[e] = s, s;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function gt(n, e) {
|
|
46
46
|
const t = n[e];
|
|
47
47
|
if (Array.isArray(t))
|
|
48
48
|
return t;
|
|
49
49
|
const s = [];
|
|
50
50
|
return n[e] = s, s;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function yt(n, e, t, s) {
|
|
53
53
|
if (!t && e >= n.length)
|
|
54
54
|
throw new Error(`Array index out of bounds while traversing: ${e}`);
|
|
55
55
|
for (; n.length <= e; )
|
|
@@ -67,15 +67,15 @@ function at(n, e, t, s) {
|
|
|
67
67
|
return n[e] = i, i;
|
|
68
68
|
}
|
|
69
69
|
function Z(n, e, t, s = {}) {
|
|
70
|
-
const { createMissing: r = !0 } = s, i =
|
|
70
|
+
const { createMissing: r = !0 } = s, i = be(e);
|
|
71
71
|
if (i.length === 0)
|
|
72
72
|
throw new Error("Pointer cannot target document root");
|
|
73
73
|
let o = n, c = null;
|
|
74
74
|
for (let p = 0; p < i.length - 1; p += 1) {
|
|
75
|
-
const g = i[p], k = i[p + 1],
|
|
75
|
+
const g = i[p], k = i[p + 1], u = /^\d+$/.test(k);
|
|
76
76
|
if (c) {
|
|
77
77
|
const d = ee(g);
|
|
78
|
-
o =
|
|
78
|
+
o = yt(
|
|
79
79
|
c,
|
|
80
80
|
d,
|
|
81
81
|
r,
|
|
@@ -84,19 +84,19 @@ function Z(n, e, t, s = {}) {
|
|
|
84
84
|
continue;
|
|
85
85
|
}
|
|
86
86
|
const a = o[g];
|
|
87
|
-
if (
|
|
87
|
+
if (u) {
|
|
88
88
|
if (!r && !Array.isArray(a))
|
|
89
89
|
throw new Error(`Missing array segment '${g}'`);
|
|
90
|
-
c =
|
|
90
|
+
c = gt(o, g);
|
|
91
91
|
continue;
|
|
92
92
|
}
|
|
93
93
|
if (!r && !z(a))
|
|
94
94
|
throw new Error(`Missing object segment '${g}'`);
|
|
95
|
-
o =
|
|
95
|
+
o = ft(o, g);
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const l = i[i.length - 1];
|
|
98
98
|
if (c) {
|
|
99
|
-
const p = ee(
|
|
99
|
+
const p = ee(l);
|
|
100
100
|
if (!r && p >= c.length)
|
|
101
101
|
throw new Error(`Array index out of bounds while writing: ${p}`);
|
|
102
102
|
for (; c.length <= p; )
|
|
@@ -104,10 +104,10 @@ function Z(n, e, t, s = {}) {
|
|
|
104
104
|
c[p] = t;
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
o[
|
|
107
|
+
o[l] = t;
|
|
108
108
|
}
|
|
109
109
|
function H(n, e) {
|
|
110
|
-
const t =
|
|
110
|
+
const t = be(e);
|
|
111
111
|
if (t.length === 0)
|
|
112
112
|
throw new Error("Pointer cannot target document root");
|
|
113
113
|
let s = n;
|
|
@@ -129,8 +129,8 @@ function H(n, e) {
|
|
|
129
129
|
}
|
|
130
130
|
z(s) && delete s[r];
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
const t =
|
|
132
|
+
function Ct(n, e) {
|
|
133
|
+
const t = be(e);
|
|
134
134
|
if (t.length === 0)
|
|
135
135
|
return n;
|
|
136
136
|
let s = n;
|
|
@@ -146,14 +146,14 @@ function ct(n, e) {
|
|
|
146
146
|
}
|
|
147
147
|
return s;
|
|
148
148
|
}
|
|
149
|
-
const
|
|
149
|
+
const vt = /* @__PURE__ */ new Set([
|
|
150
150
|
"name",
|
|
151
151
|
"description",
|
|
152
152
|
"type",
|
|
153
153
|
"contracts",
|
|
154
154
|
"policies"
|
|
155
155
|
]);
|
|
156
|
-
function
|
|
156
|
+
function _e(n, e, t, s = [], r = []) {
|
|
157
157
|
return {
|
|
158
158
|
key: n,
|
|
159
159
|
title: e,
|
|
@@ -168,7 +168,7 @@ function V(n, e) {
|
|
|
168
168
|
throw new Error(`${e} is required`);
|
|
169
169
|
return t;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function St(n, e) {
|
|
172
172
|
if (!n || typeof n != "object" || Array.isArray(n))
|
|
173
173
|
return null;
|
|
174
174
|
const t = n;
|
|
@@ -179,7 +179,7 @@ function lt(n, e) {
|
|
|
179
179
|
) : [], o = Array.isArray(t.relatedContracts) ? t.relatedContracts.filter(
|
|
180
180
|
(c) => typeof c == "string"
|
|
181
181
|
) : [];
|
|
182
|
-
return
|
|
182
|
+
return _e(
|
|
183
183
|
e,
|
|
184
184
|
s,
|
|
185
185
|
r,
|
|
@@ -187,7 +187,7 @@ function lt(n, e) {
|
|
|
187
187
|
o
|
|
188
188
|
);
|
|
189
189
|
}
|
|
190
|
-
class
|
|
190
|
+
class kt {
|
|
191
191
|
document;
|
|
192
192
|
sections = /* @__PURE__ */ new Map();
|
|
193
193
|
currentSection = null;
|
|
@@ -210,7 +210,7 @@ class ht {
|
|
|
210
210
|
return H(this.document, e), this.untrackField(e), this;
|
|
211
211
|
}
|
|
212
212
|
getValue(e) {
|
|
213
|
-
return
|
|
213
|
+
return Ct(this.document, e);
|
|
214
214
|
}
|
|
215
215
|
ensureContractsRoot() {
|
|
216
216
|
const e = this.document.contracts;
|
|
@@ -246,12 +246,12 @@ class ht {
|
|
|
246
246
|
throw new Error(
|
|
247
247
|
`Already in section '${this.currentSection.key}'. Call endSection() first.`
|
|
248
248
|
);
|
|
249
|
-
const r = V(e, "section key"), i = this.sections.get(r), o = this.ensureContractsRoot()[r], c = i ??
|
|
249
|
+
const r = V(e, "section key"), i = this.sections.get(r), o = this.ensureContractsRoot()[r], c = i ?? St(o, r);
|
|
250
250
|
if (!i && o !== void 0 && !c)
|
|
251
251
|
throw new Error(
|
|
252
252
|
`Section key '${r}' conflicts with an existing non-section contract.`
|
|
253
253
|
);
|
|
254
|
-
return this.currentSection = c ??
|
|
254
|
+
return this.currentSection = c ?? _e(
|
|
255
255
|
r,
|
|
256
256
|
V(t ?? r, "section title"),
|
|
257
257
|
s?.trim() || void 0
|
|
@@ -316,7 +316,7 @@ class ht {
|
|
|
316
316
|
if (!t.startsWith("/"))
|
|
317
317
|
return;
|
|
318
318
|
const s = t.split("/")[1];
|
|
319
|
-
if (s &&
|
|
319
|
+
if (s && vt.has(s))
|
|
320
320
|
throw new Error(`Path points at reserved root key: /${s}`);
|
|
321
321
|
}
|
|
322
322
|
syncPersistedSection(e) {
|
|
@@ -329,45 +329,152 @@ class ht {
|
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
332
|
+
const me = pt, Ot = Object.fromEntries(
|
|
333
|
+
Object.entries(ct.DEFAULT_BLUE_TYPE_NAME_TO_BLUE_ID_MAP)
|
|
334
|
+
), bt = Ie("coordination"), Ke = Ie("workflows"), Ge = {
|
|
335
|
+
...bt,
|
|
336
|
+
...ge(Ke, "Workflows/", "Coordination/")
|
|
337
|
+
}, It = {
|
|
338
|
+
...ge(Ge, "Coordination/", "Conversation/"),
|
|
339
|
+
...ge(Ke, "Workflows/", "Conversation/")
|
|
340
|
+
};
|
|
341
|
+
Ie("myos");
|
|
342
|
+
const Je = {
|
|
343
|
+
...ut
|
|
344
|
+
}, Pt = Object.fromEntries(
|
|
345
|
+
Object.entries(Je).map(([n, e]) => [
|
|
346
|
+
n,
|
|
347
|
+
{
|
|
348
|
+
status: "stable",
|
|
349
|
+
name: e.name,
|
|
350
|
+
versions: [
|
|
351
|
+
{
|
|
352
|
+
repositoryVersionIndex: 0,
|
|
353
|
+
typeBlueId: n,
|
|
354
|
+
attributesAdded: []
|
|
355
|
+
}
|
|
356
|
+
]
|
|
357
|
+
}
|
|
358
|
+
])
|
|
359
|
+
), fe = {
|
|
360
|
+
...me,
|
|
361
|
+
packages: {
|
|
362
|
+
compatibility: {
|
|
363
|
+
name: "compatibility",
|
|
364
|
+
aliases: {
|
|
365
|
+
...Ot,
|
|
366
|
+
...It,
|
|
367
|
+
...Ge
|
|
368
|
+
},
|
|
369
|
+
typesMeta: Pt,
|
|
370
|
+
contents: Je,
|
|
371
|
+
schemas: {}
|
|
372
|
+
},
|
|
373
|
+
...me.packages
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
function Ie(n) {
|
|
377
|
+
const e = me.packages[n];
|
|
337
378
|
if (!e)
|
|
338
379
|
throw new Error(`Missing Blue repository package ${n}.`);
|
|
339
380
|
return e.aliases;
|
|
340
381
|
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
382
|
+
function ge(n, e, t) {
|
|
383
|
+
return Object.fromEntries(
|
|
384
|
+
Object.entries(n).filter(([s]) => s.startsWith(e)).map(([s, r]) => [
|
|
385
|
+
`${t}${s.slice(e.length)}`,
|
|
386
|
+
r
|
|
387
|
+
])
|
|
388
|
+
);
|
|
389
|
+
}
|
|
390
|
+
const te = new lt({
|
|
391
|
+
repositories: [fe],
|
|
392
|
+
mergingProcessor: at()
|
|
344
393
|
});
|
|
345
|
-
function
|
|
394
|
+
function re(n) {
|
|
346
395
|
return te.jsonValueToNode(n);
|
|
347
396
|
}
|
|
348
|
-
function
|
|
349
|
-
if (
|
|
397
|
+
function ae(n) {
|
|
398
|
+
if (Ye(n))
|
|
350
399
|
return structuredClone(n);
|
|
351
|
-
const e = te.restoreInlineTypes(
|
|
400
|
+
const e = te.restoreInlineTypes(Qe(n));
|
|
352
401
|
return te.nodeToJson(e, "simple");
|
|
353
402
|
}
|
|
354
|
-
function
|
|
403
|
+
function vs(n) {
|
|
355
404
|
const e = te.restoreInlineTypes(
|
|
356
|
-
|
|
405
|
+
Ye(n) ? re(n) : Qe(n)
|
|
357
406
|
);
|
|
358
407
|
return te.nodeToYaml(e, "simple");
|
|
359
408
|
}
|
|
360
409
|
function A(n) {
|
|
361
|
-
|
|
362
|
-
|
|
410
|
+
return ze(n.trim());
|
|
411
|
+
}
|
|
412
|
+
function ze(n) {
|
|
413
|
+
const e = qt(n);
|
|
414
|
+
if (e.length > 1)
|
|
415
|
+
return { $add: e.map((r) => ze(r)) };
|
|
416
|
+
const t = n.match(/^document\(['"]([^'"]+)['"]\)$/u);
|
|
417
|
+
if (t)
|
|
418
|
+
return { $document: At(t[1]) };
|
|
419
|
+
if (n === "event")
|
|
420
|
+
return { $event: "/" };
|
|
421
|
+
if (n.startsWith("event."))
|
|
422
|
+
return { $event: Ae(n.slice(6)) };
|
|
423
|
+
if (n === "currentContract")
|
|
424
|
+
return { $currentContract: "/" };
|
|
425
|
+
if (n.startsWith("currentContract."))
|
|
426
|
+
return {
|
|
427
|
+
$currentContract: Ae(
|
|
428
|
+
n.slice(16)
|
|
429
|
+
)
|
|
430
|
+
};
|
|
431
|
+
if (n.startsWith("steps."))
|
|
432
|
+
return { $steps: n.slice(6) };
|
|
433
|
+
if (/^-?\d+(?:\.\d+)?$/u.test(n))
|
|
434
|
+
return Number(n);
|
|
435
|
+
const s = n.match(/^(['"])(.*)\1$/u);
|
|
436
|
+
if (s)
|
|
437
|
+
return s[2];
|
|
438
|
+
throw new Error(`Unsupported BEX expression shorthand: ${n}`);
|
|
439
|
+
}
|
|
440
|
+
function qt(n) {
|
|
441
|
+
const e = [];
|
|
442
|
+
let t = null, s = 0, r = 0;
|
|
443
|
+
for (let i = 0; i < n.length; i += 1) {
|
|
444
|
+
const o = n[i];
|
|
445
|
+
if (t) {
|
|
446
|
+
o === t && n[i - 1] !== "\\" && (t = null);
|
|
447
|
+
continue;
|
|
448
|
+
}
|
|
449
|
+
if (o === "'" || o === '"') {
|
|
450
|
+
t = o;
|
|
451
|
+
continue;
|
|
452
|
+
}
|
|
453
|
+
if (o === "(") {
|
|
454
|
+
s += 1;
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
if (o === ")") {
|
|
458
|
+
s -= 1;
|
|
459
|
+
continue;
|
|
460
|
+
}
|
|
461
|
+
o === "+" && s === 0 && (e.push(n.slice(r, i).trim()), r = i + 1);
|
|
462
|
+
}
|
|
463
|
+
return e.length === 0 ? [n] : (e.push(n.slice(r).trim()), e);
|
|
363
464
|
}
|
|
364
|
-
function
|
|
365
|
-
return
|
|
465
|
+
function At(n) {
|
|
466
|
+
return n.startsWith("/") ? n : `/${n}`;
|
|
366
467
|
}
|
|
367
|
-
function
|
|
468
|
+
function Ae(n) {
|
|
469
|
+
return `/${n.split(".").map((e) => e.replace(/~/gu, "~0").replace(/\//gu, "~1")).join("/")}`;
|
|
470
|
+
}
|
|
471
|
+
function Qe(n) {
|
|
472
|
+
return Rt(n) ? n.buildDocument() : n;
|
|
473
|
+
}
|
|
474
|
+
function Rt(n) {
|
|
368
475
|
return typeof n == "object" && n !== null && typeof n.buildDocument == "function";
|
|
369
476
|
}
|
|
370
|
-
function
|
|
477
|
+
function Ye(n) {
|
|
371
478
|
return typeof n == "object" && n !== null && !Array.isArray(n) && !(n instanceof N) && typeof n.buildDocument != "function";
|
|
372
479
|
}
|
|
373
480
|
function m(n) {
|
|
@@ -395,37 +502,37 @@ function m(n) {
|
|
|
395
502
|
return e;
|
|
396
503
|
}
|
|
397
504
|
}
|
|
398
|
-
function
|
|
505
|
+
function ue(n) {
|
|
399
506
|
return typeof n == "object" && n !== null;
|
|
400
507
|
}
|
|
401
|
-
function
|
|
402
|
-
if (!
|
|
508
|
+
function Tt() {
|
|
509
|
+
if (!ue(fe))
|
|
403
510
|
return [];
|
|
404
|
-
const n =
|
|
405
|
-
return
|
|
511
|
+
const n = fe.packages;
|
|
512
|
+
return ue(n) ? Object.values(n).filter(ue) : [];
|
|
406
513
|
}
|
|
407
|
-
function
|
|
514
|
+
function wt() {
|
|
408
515
|
const n = new Set(Object.values(K));
|
|
409
|
-
for (const e of
|
|
516
|
+
for (const e of Tt())
|
|
410
517
|
if (e.aliases)
|
|
411
518
|
for (const t of Object.keys(e.aliases))
|
|
412
519
|
n.add(t);
|
|
413
520
|
return n;
|
|
414
521
|
}
|
|
415
|
-
const
|
|
522
|
+
const Et = wt(), Y = {
|
|
416
523
|
NamedEvent: "Common/Named Event"
|
|
417
524
|
};
|
|
418
|
-
function
|
|
419
|
-
return
|
|
525
|
+
function Vt(n) {
|
|
526
|
+
return Et.has(n.trim());
|
|
420
527
|
}
|
|
421
|
-
function
|
|
528
|
+
function Ze(n, e) {
|
|
422
529
|
const t = n.trim();
|
|
423
|
-
if (!
|
|
530
|
+
if (!Vt(t))
|
|
424
531
|
throw new Error(
|
|
425
532
|
`${e} requires repository type alias '${t}', but this alias is not available in the currently installed @blue-repository/types package.`
|
|
426
533
|
);
|
|
427
534
|
}
|
|
428
|
-
function
|
|
535
|
+
function He(n) {
|
|
429
536
|
return m(n);
|
|
430
537
|
}
|
|
431
538
|
function v(n, e) {
|
|
@@ -434,10 +541,10 @@ function v(n, e) {
|
|
|
434
541
|
throw new Error(`${e} is required`);
|
|
435
542
|
return t;
|
|
436
543
|
}
|
|
437
|
-
function
|
|
544
|
+
function le(n) {
|
|
438
545
|
return n.replace(/[^A-Za-z0-9]+/gu, "_").replace(/^_+|_+$/gu, "").toUpperCase();
|
|
439
546
|
}
|
|
440
|
-
class
|
|
547
|
+
class Dt {
|
|
441
548
|
constructor(e, t) {
|
|
442
549
|
this.parent = e, this.taskName = t;
|
|
443
550
|
}
|
|
@@ -448,7 +555,7 @@ class yt {
|
|
|
448
555
|
return t.length > 0 && this.instructions.push(t), this;
|
|
449
556
|
}
|
|
450
557
|
expects(e) {
|
|
451
|
-
return this.expectedResponses.push(
|
|
558
|
+
return this.expectedResponses.push(He(e)), this;
|
|
452
559
|
}
|
|
453
560
|
done() {
|
|
454
561
|
if (this.instructions.length === 0)
|
|
@@ -462,7 +569,7 @@ class yt {
|
|
|
462
569
|
}), this.parent;
|
|
463
570
|
}
|
|
464
571
|
}
|
|
465
|
-
class
|
|
572
|
+
class Mt {
|
|
466
573
|
constructor(e, t) {
|
|
467
574
|
this.parent = e;
|
|
468
575
|
const s = v(t, "ai name");
|
|
@@ -470,9 +577,9 @@ class Ct {
|
|
|
470
577
|
name: s,
|
|
471
578
|
statusPath: `/ai/${s}/status`,
|
|
472
579
|
contextPath: `/ai/${s}/context`,
|
|
473
|
-
requesterId:
|
|
474
|
-
requestId: `REQ_${
|
|
475
|
-
subscriptionId: `SUB_${
|
|
580
|
+
requesterId: le(s),
|
|
581
|
+
requestId: `REQ_${le(s)}`,
|
|
582
|
+
subscriptionId: `SUB_${le(s)}`,
|
|
476
583
|
permissionTiming: "onInit",
|
|
477
584
|
tasks: {}
|
|
478
585
|
};
|
|
@@ -506,7 +613,7 @@ class Ct {
|
|
|
506
613
|
return this.definition.permissionTiming = "onInit", this.definition.permissionTriggerEventType = void 0, this.definition.permissionTriggerDocPath = void 0, this;
|
|
507
614
|
}
|
|
508
615
|
requestPermissionOnEvent(e) {
|
|
509
|
-
return this.definition.permissionTiming = "onEvent", this.definition.permissionTriggerEventType =
|
|
616
|
+
return this.definition.permissionTiming = "onEvent", this.definition.permissionTriggerEventType = He(e), this.definition.permissionTriggerDocPath = void 0, this;
|
|
510
617
|
}
|
|
511
618
|
requestPermissionOnDocChange(e) {
|
|
512
619
|
return this.definition.permissionTiming = "onDocChange", this.definition.permissionTriggerDocPath = v(
|
|
@@ -518,7 +625,7 @@ class Ct {
|
|
|
518
625
|
return this.definition.permissionTiming = "manual", this.definition.permissionTriggerDocPath = void 0, this.definition.permissionTriggerEventType = void 0, this;
|
|
519
626
|
}
|
|
520
627
|
task(e) {
|
|
521
|
-
return new
|
|
628
|
+
return new Dt(this, v(e, "task name"));
|
|
522
629
|
}
|
|
523
630
|
registerTask(e) {
|
|
524
631
|
if (this.definition.tasks[e.name])
|
|
@@ -535,11 +642,11 @@ function D(n, e) {
|
|
|
535
642
|
throw new Error(`${e} is required`);
|
|
536
643
|
return t;
|
|
537
644
|
}
|
|
538
|
-
function
|
|
645
|
+
function $t(n) {
|
|
539
646
|
const e = n.replace(/[^A-Za-z0-9]+/gu, "_").replace(/^_+|_+$/gu, "").toUpperCase();
|
|
540
647
|
return e.length > 0 ? e : "ACCESS";
|
|
541
648
|
}
|
|
542
|
-
class
|
|
649
|
+
class Bt {
|
|
543
650
|
constructor(e, t) {
|
|
544
651
|
this.parent = e, this.name = t;
|
|
545
652
|
}
|
|
@@ -616,7 +723,7 @@ class St {
|
|
|
616
723
|
return this.permissionTimingValue = "manual", this.permissionTriggerDocPathValue = void 0, this.permissionTriggerEventTypeValue = void 0, this;
|
|
617
724
|
}
|
|
618
725
|
done() {
|
|
619
|
-
const e =
|
|
726
|
+
const e = $t(this.name), t = {
|
|
620
727
|
name: this.name,
|
|
621
728
|
token: e,
|
|
622
729
|
targetSessionId: D(
|
|
@@ -725,11 +832,11 @@ function R(n, e) {
|
|
|
725
832
|
throw new Error(`${e} is required`);
|
|
726
833
|
return t;
|
|
727
834
|
}
|
|
728
|
-
function
|
|
835
|
+
function jt(n) {
|
|
729
836
|
const e = n.replace(/[^A-Za-z0-9]+/gu, "_").replace(/^_+|_+$/gu, "").toUpperCase();
|
|
730
837
|
return e.length > 0 ? e : "LINKED_ACCESS";
|
|
731
838
|
}
|
|
732
|
-
class
|
|
839
|
+
class xt {
|
|
733
840
|
constructor(e, t) {
|
|
734
841
|
this.parent = e, this.name = t;
|
|
735
842
|
}
|
|
@@ -766,7 +873,7 @@ class Ot {
|
|
|
766
873
|
read: !0,
|
|
767
874
|
operations: []
|
|
768
875
|
};
|
|
769
|
-
return this.linksValue.set(t, s), new
|
|
876
|
+
return this.linksValue.set(t, s), new Nt(this, s);
|
|
770
877
|
}
|
|
771
878
|
requestPermissionOnInit() {
|
|
772
879
|
return this.permissionTimingValue = "onInit", this.permissionTriggerEventTypeValue = void 0, this.permissionTriggerDocPathValue = void 0, this;
|
|
@@ -786,7 +893,7 @@ class Ot {
|
|
|
786
893
|
), this;
|
|
787
894
|
}
|
|
788
895
|
done() {
|
|
789
|
-
const e =
|
|
896
|
+
const e = jt(this.name);
|
|
790
897
|
if (this.linksValue.size === 0)
|
|
791
898
|
throw new Error("At least one linked access link must be configured");
|
|
792
899
|
const t = {};
|
|
@@ -819,9 +926,9 @@ class Ot {
|
|
|
819
926
|
e.statusPath && t.field(e.statusPath, "pending");
|
|
820
927
|
const s = `linkedAccess${e.token}`, r = (i) => {
|
|
821
928
|
const o = {};
|
|
822
|
-
for (const [c,
|
|
929
|
+
for (const [c, l] of Object.entries(e.links)) {
|
|
823
930
|
const p = {};
|
|
824
|
-
|
|
931
|
+
l.read && (p.read = !0), l.operations.length > 0 && (p.singleOps = [...l.operations]), o[c] = p;
|
|
825
932
|
}
|
|
826
933
|
i.myOs().requestLinkedDocsPermission(
|
|
827
934
|
e.onBehalfOf,
|
|
@@ -877,7 +984,7 @@ class Ot {
|
|
|
877
984
|
);
|
|
878
985
|
}
|
|
879
986
|
}
|
|
880
|
-
class
|
|
987
|
+
class Nt {
|
|
881
988
|
constructor(e, t) {
|
|
882
989
|
this.parent = e, this.draft = t;
|
|
883
990
|
}
|
|
@@ -901,11 +1008,11 @@ function U(n, e) {
|
|
|
901
1008
|
throw new Error(`${e} is required`);
|
|
902
1009
|
return t;
|
|
903
1010
|
}
|
|
904
|
-
function
|
|
1011
|
+
function Wt(n) {
|
|
905
1012
|
const e = n.replace(/[^A-Za-z0-9]+/gu, "_").replace(/^_+|_+$/gu, "").toUpperCase();
|
|
906
1013
|
return e.length > 0 ? e : "AGENCY";
|
|
907
1014
|
}
|
|
908
|
-
function
|
|
1015
|
+
function Lt(n, e) {
|
|
909
1016
|
return n.map((t) => ({
|
|
910
1017
|
type: "MyOS/Worker Agency Permission",
|
|
911
1018
|
workerType: t,
|
|
@@ -915,7 +1022,7 @@ function Pt(n, e) {
|
|
|
915
1022
|
}
|
|
916
1023
|
}));
|
|
917
1024
|
}
|
|
918
|
-
class
|
|
1025
|
+
class Ut {
|
|
919
1026
|
constructor(e, t) {
|
|
920
1027
|
this.parent = e, this.name = t;
|
|
921
1028
|
}
|
|
@@ -964,7 +1071,7 @@ class qt {
|
|
|
964
1071
|
return this.permissionTimingValue = "manual", this.permissionTriggerDocPathValue = void 0, this.permissionTriggerEventTypeValue = void 0, this;
|
|
965
1072
|
}
|
|
966
1073
|
done() {
|
|
967
|
-
const e =
|
|
1074
|
+
const e = Wt(this.name);
|
|
968
1075
|
if (this.allowedTypesValue.length === 0)
|
|
969
1076
|
throw new Error("agency(...).allowedTypes(...) is required");
|
|
970
1077
|
const t = {
|
|
@@ -986,7 +1093,7 @@ class qt {
|
|
|
986
1093
|
applyAutoWiring(e, t) {
|
|
987
1094
|
e.statusPath && t.field(e.statusPath, "pending");
|
|
988
1095
|
const s = `agency${e.token}`, r = (i) => {
|
|
989
|
-
const o =
|
|
1096
|
+
const o = Lt(
|
|
990
1097
|
e.allowedTypes,
|
|
991
1098
|
e.allowedOperations
|
|
992
1099
|
);
|
|
@@ -1036,7 +1143,7 @@ class qt {
|
|
|
1036
1143
|
);
|
|
1037
1144
|
}
|
|
1038
1145
|
}
|
|
1039
|
-
class
|
|
1146
|
+
class Ft {
|
|
1040
1147
|
bindings = {};
|
|
1041
1148
|
bind(e, t) {
|
|
1042
1149
|
const s = e.trim();
|
|
@@ -1052,16 +1159,16 @@ class At {
|
|
|
1052
1159
|
return structuredClone(this.bindings);
|
|
1053
1160
|
}
|
|
1054
1161
|
}
|
|
1055
|
-
function
|
|
1162
|
+
function Xe(n, e) {
|
|
1056
1163
|
const t = n.trim();
|
|
1057
1164
|
if (t.length === 0)
|
|
1058
1165
|
throw new Error(`${e} is required`);
|
|
1059
1166
|
return t;
|
|
1060
1167
|
}
|
|
1061
|
-
class
|
|
1168
|
+
class _t {
|
|
1062
1169
|
values = {};
|
|
1063
1170
|
set(e, t) {
|
|
1064
|
-
return this.values[
|
|
1171
|
+
return this.values[Xe(e, "capability name")] = t, this;
|
|
1065
1172
|
}
|
|
1066
1173
|
participantsOrchestration(e) {
|
|
1067
1174
|
return this.set("participantsOrchestration", e);
|
|
@@ -1076,12 +1183,12 @@ class Rt {
|
|
|
1076
1183
|
return structuredClone(this.values);
|
|
1077
1184
|
}
|
|
1078
1185
|
}
|
|
1079
|
-
class
|
|
1186
|
+
class Kt {
|
|
1080
1187
|
defaultMessageValue;
|
|
1081
1188
|
perChannelMessages = {};
|
|
1082
1189
|
capabilitiesValue = {};
|
|
1083
1190
|
bootstrapAssignee(e) {
|
|
1084
|
-
throw
|
|
1191
|
+
throw Xe(e, "bootstrapAssignee channelKey"), new Error(
|
|
1085
1192
|
"agency start worker session options do not support bootstrapAssignee; use the agency onBehalfOf channel plus initialMessages/capabilities"
|
|
1086
1193
|
);
|
|
1087
1194
|
}
|
|
@@ -1097,7 +1204,7 @@ class Tt {
|
|
|
1097
1204
|
capabilities(e) {
|
|
1098
1205
|
if (typeof e != "function")
|
|
1099
1206
|
throw new Error("capabilities customizer is required");
|
|
1100
|
-
const t = new
|
|
1207
|
+
const t = new _t();
|
|
1101
1208
|
return e(t), Object.assign(this.capabilitiesValue, t.build()), this;
|
|
1102
1209
|
}
|
|
1103
1210
|
build() {
|
|
@@ -1108,7 +1215,7 @@ class Tt {
|
|
|
1108
1215
|
}), Object.keys(this.capabilitiesValue).length > 0 && (e.capabilities = structuredClone(this.capabilitiesValue)), e;
|
|
1109
1216
|
}
|
|
1110
1217
|
}
|
|
1111
|
-
class
|
|
1218
|
+
class Gt {
|
|
1112
1219
|
constructor(e, t) {
|
|
1113
1220
|
this.parent = e, this.path = t;
|
|
1114
1221
|
}
|
|
@@ -1165,10 +1272,10 @@ class wt {
|
|
|
1165
1272
|
});
|
|
1166
1273
|
}
|
|
1167
1274
|
}
|
|
1168
|
-
function
|
|
1275
|
+
function Jt(n) {
|
|
1169
1276
|
return { type: n };
|
|
1170
1277
|
}
|
|
1171
|
-
class
|
|
1278
|
+
class zt {
|
|
1172
1279
|
constructor(e, t) {
|
|
1173
1280
|
this.parent = e, this.key = t;
|
|
1174
1281
|
}
|
|
@@ -1187,7 +1294,7 @@ class Vt {
|
|
|
1187
1294
|
return this.descriptionText(e);
|
|
1188
1295
|
}
|
|
1189
1296
|
requestType(e) {
|
|
1190
|
-
return this.requestSchemaValue =
|
|
1297
|
+
return this.requestSchemaValue = Jt(m(e)), this.clearRequest = !1, this;
|
|
1191
1298
|
}
|
|
1192
1299
|
requestSchema(e) {
|
|
1193
1300
|
return this.requestSchemaValue = structuredClone(e), this.clearRequest = !1, this;
|
|
@@ -1220,20 +1327,20 @@ class Vt {
|
|
|
1220
1327
|
});
|
|
1221
1328
|
}
|
|
1222
1329
|
}
|
|
1223
|
-
function
|
|
1330
|
+
function Qt(n) {
|
|
1224
1331
|
return structuredClone(n);
|
|
1225
1332
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return
|
|
1333
|
+
function Pe(n) {
|
|
1334
|
+
return Qt(n);
|
|
1228
1335
|
}
|
|
1229
|
-
class
|
|
1336
|
+
class B {
|
|
1230
1337
|
readValue;
|
|
1231
1338
|
shareValue;
|
|
1232
1339
|
allOpsValue;
|
|
1233
1340
|
singleOpsValue = [];
|
|
1234
1341
|
singleOpsSet = !1;
|
|
1235
1342
|
static create() {
|
|
1236
|
-
return new
|
|
1343
|
+
return new B();
|
|
1237
1344
|
}
|
|
1238
1345
|
read(e) {
|
|
1239
1346
|
return this.readValue = e, this;
|
|
@@ -1252,22 +1359,22 @@ class x {
|
|
|
1252
1359
|
return this.readValue !== void 0 && (e.read = this.readValue), this.shareValue !== void 0 && (e.share = this.shareValue), this.allOpsValue !== void 0 && (e.allOps = this.allOpsValue), this.singleOpsSet && (e.singleOps = [...this.singleOpsValue]), e;
|
|
1253
1360
|
}
|
|
1254
1361
|
}
|
|
1255
|
-
function
|
|
1256
|
-
return n instanceof
|
|
1362
|
+
function Yt(n) {
|
|
1363
|
+
return n instanceof B ? n.build() : n == null ? {} : typeof n == "object" ? Pe(n) : n;
|
|
1257
1364
|
}
|
|
1258
|
-
function
|
|
1365
|
+
function Zt(n) {
|
|
1259
1366
|
const e = {};
|
|
1260
1367
|
for (const [t, s] of Object.entries(n))
|
|
1261
|
-
e[t] = typeof s == "object" && s !== null ?
|
|
1368
|
+
e[t] = typeof s == "object" && s !== null ? Pe(s) : s;
|
|
1262
1369
|
return e;
|
|
1263
1370
|
}
|
|
1264
|
-
function
|
|
1371
|
+
function j(n) {
|
|
1265
1372
|
return n.onBehalfOf ?? n.permissionFrom ?? "ownerChannel";
|
|
1266
1373
|
}
|
|
1267
1374
|
function M(n) {
|
|
1268
1375
|
return n.onBehalfOf ?? n.permissionFrom ?? "ownerChannel";
|
|
1269
1376
|
}
|
|
1270
|
-
class
|
|
1377
|
+
class Ht {
|
|
1271
1378
|
constructor(e, t) {
|
|
1272
1379
|
this.parent = e, this.config = t;
|
|
1273
1380
|
}
|
|
@@ -1280,7 +1387,7 @@ class xt {
|
|
|
1280
1387
|
e,
|
|
1281
1388
|
"MyOS/Single Document Permission Grant Requested",
|
|
1282
1389
|
(r) => {
|
|
1283
|
-
r.put("onBehalfOf",
|
|
1390
|
+
r.put("onBehalfOf", j(this.config)), r.put("requestId", this.config.requestId), r.put("targetSessionId", t), r.put("permissions", Yt(s));
|
|
1284
1391
|
}
|
|
1285
1392
|
);
|
|
1286
1393
|
}
|
|
@@ -1293,7 +1400,7 @@ class xt {
|
|
|
1293
1400
|
);
|
|
1294
1401
|
const t = e ?? this.defaultPermissions();
|
|
1295
1402
|
return this.parent.myOs().requestSingleDocPermission(
|
|
1296
|
-
|
|
1403
|
+
j(this.config),
|
|
1297
1404
|
this.config.requestId,
|
|
1298
1405
|
this.config.targetSessionId,
|
|
1299
1406
|
t
|
|
@@ -1301,7 +1408,7 @@ class xt {
|
|
|
1301
1408
|
}
|
|
1302
1409
|
requestPermissionForTarget(e, t = { read: !0 }) {
|
|
1303
1410
|
return this.parent.myOs().requestSingleDocPermission(
|
|
1304
|
-
|
|
1411
|
+
j(this.config),
|
|
1305
1412
|
this.config.requestId,
|
|
1306
1413
|
e,
|
|
1307
1414
|
t
|
|
@@ -1309,14 +1416,14 @@ class xt {
|
|
|
1309
1416
|
}
|
|
1310
1417
|
revokePermission() {
|
|
1311
1418
|
return this.parent.myOs().revokeSingleDocPermission(
|
|
1312
|
-
|
|
1419
|
+
j(this.config),
|
|
1313
1420
|
this.config.requestId,
|
|
1314
1421
|
this.config.targetSessionId
|
|
1315
1422
|
);
|
|
1316
1423
|
}
|
|
1317
1424
|
revokePermissionForTarget(e) {
|
|
1318
1425
|
return this.parent.myOs().revokeSingleDocPermission(
|
|
1319
|
-
|
|
1426
|
+
j(this.config),
|
|
1320
1427
|
this.config.requestId,
|
|
1321
1428
|
e
|
|
1322
1429
|
);
|
|
@@ -1338,7 +1445,7 @@ class xt {
|
|
|
1338
1445
|
}
|
|
1339
1446
|
call(e, t) {
|
|
1340
1447
|
return this.parent.myOs().callOperation(
|
|
1341
|
-
|
|
1448
|
+
j(this.config),
|
|
1342
1449
|
this.config.targetSessionId,
|
|
1343
1450
|
e,
|
|
1344
1451
|
t,
|
|
@@ -1347,7 +1454,7 @@ class xt {
|
|
|
1347
1454
|
}
|
|
1348
1455
|
callOnTarget(e, t, s) {
|
|
1349
1456
|
return this.parent.myOs().callOperation(
|
|
1350
|
-
|
|
1457
|
+
j(this.config),
|
|
1351
1458
|
e,
|
|
1352
1459
|
t,
|
|
1353
1460
|
s,
|
|
@@ -1370,7 +1477,7 @@ class xt {
|
|
|
1370
1477
|
);
|
|
1371
1478
|
}
|
|
1372
1479
|
}
|
|
1373
|
-
class
|
|
1480
|
+
class Xt {
|
|
1374
1481
|
constructor(e, t) {
|
|
1375
1482
|
this.parent = e, this.config = t;
|
|
1376
1483
|
}
|
|
@@ -1387,7 +1494,7 @@ class Bt {
|
|
|
1387
1494
|
e,
|
|
1388
1495
|
"MyOS/Linked Documents Permission Grant Requested",
|
|
1389
1496
|
(r) => {
|
|
1390
|
-
r.put("onBehalfOf", M(this.config)), r.put("requestId", this.config.requestId), r.put("targetSessionId", t), r.put("links",
|
|
1497
|
+
r.put("onBehalfOf", M(this.config)), r.put("requestId", this.config.requestId), r.put("targetSessionId", t), r.put("links", Zt(s));
|
|
1391
1498
|
}
|
|
1392
1499
|
);
|
|
1393
1500
|
}
|
|
@@ -1482,7 +1589,7 @@ class Bt {
|
|
|
1482
1589
|
function Q(n) {
|
|
1483
1590
|
return n.onBehalfOf ?? n.permissionFrom ?? "ownerChannel";
|
|
1484
1591
|
}
|
|
1485
|
-
function
|
|
1592
|
+
function en(n, e) {
|
|
1486
1593
|
return n.map((t) => ({
|
|
1487
1594
|
type: "MyOS/Worker Agency Permission",
|
|
1488
1595
|
workerType: t,
|
|
@@ -1492,15 +1599,15 @@ function jt(n, e) {
|
|
|
1492
1599
|
}
|
|
1493
1600
|
}));
|
|
1494
1601
|
}
|
|
1495
|
-
function
|
|
1602
|
+
function tn(n) {
|
|
1496
1603
|
return Array.isArray(n.allowedWorkerAgencyPermissions) ? n.allowedWorkerAgencyPermissions : typeof n.workerType == "string" || n.type === "MyOS/Worker Agency Permission" ? [n] : n;
|
|
1497
1604
|
}
|
|
1498
|
-
class
|
|
1605
|
+
class nn {
|
|
1499
1606
|
constructor(e, t) {
|
|
1500
1607
|
this.parent = e, this.config = t;
|
|
1501
1608
|
}
|
|
1502
1609
|
defaultPermissions() {
|
|
1503
|
-
return
|
|
1610
|
+
return en(
|
|
1504
1611
|
this.config.allowedTypes,
|
|
1505
1612
|
this.config.allowedOperations
|
|
1506
1613
|
);
|
|
@@ -1517,7 +1624,7 @@ class Wt {
|
|
|
1517
1624
|
);
|
|
1518
1625
|
}
|
|
1519
1626
|
);
|
|
1520
|
-
const s = e === void 0 ? this.defaultPermissions() :
|
|
1627
|
+
const s = e === void 0 ? this.defaultPermissions() : tn(e), r = t;
|
|
1521
1628
|
return this.parent.myOs().grantWorkerAgencyPermission(
|
|
1522
1629
|
Q(this.config),
|
|
1523
1630
|
this.config.requestId,
|
|
@@ -1572,9 +1679,9 @@ class Wt {
|
|
|
1572
1679
|
);
|
|
1573
1680
|
}
|
|
1574
1681
|
startSessionWith(e, t, s, r) {
|
|
1575
|
-
const i = new
|
|
1682
|
+
const i = new Ft();
|
|
1576
1683
|
s?.(i);
|
|
1577
|
-
const o = new
|
|
1684
|
+
const o = new Kt();
|
|
1578
1685
|
return r?.(o), this.parent.myOs().startWorkerSession(
|
|
1579
1686
|
e,
|
|
1580
1687
|
t,
|
|
@@ -1609,25 +1716,25 @@ function S(n, e) {
|
|
|
1609
1716
|
throw new Error(e);
|
|
1610
1717
|
return t;
|
|
1611
1718
|
}
|
|
1612
|
-
function
|
|
1613
|
-
return n == null ? e ?
|
|
1719
|
+
function ye(n, e = !1) {
|
|
1720
|
+
return n == null ? e ? B.create().build() : null : n instanceof B ? n.build() : typeof n == "object" ? structuredClone(n) : n;
|
|
1614
1721
|
}
|
|
1615
|
-
function
|
|
1616
|
-
return n == null ? e ?
|
|
1722
|
+
function Re(n, e = !1) {
|
|
1723
|
+
return n == null ? e ? B.create().build() : null : n instanceof B ? n.build() : typeof n == "object" ? Pe(n) : n;
|
|
1617
1724
|
}
|
|
1618
|
-
function
|
|
1619
|
-
n.put("onBehalfOf", S(e, "onBehalfOf is required")),
|
|
1725
|
+
function x(n, e, t) {
|
|
1726
|
+
n.put("onBehalfOf", S(e, "onBehalfOf is required")), Ce(n, t);
|
|
1620
1727
|
}
|
|
1621
|
-
function
|
|
1622
|
-
e !== void 0 && n.put("targetSessionId",
|
|
1728
|
+
function Ce(n, e) {
|
|
1729
|
+
e !== void 0 && n.put("targetSessionId", ye(e));
|
|
1623
1730
|
}
|
|
1624
|
-
function
|
|
1731
|
+
function Te(n, e) {
|
|
1625
1732
|
const t = {
|
|
1626
1733
|
id: S(n, "subscriptionId is required")
|
|
1627
1734
|
};
|
|
1628
1735
|
return e && e.length > 0 && (t.events = e), t;
|
|
1629
1736
|
}
|
|
1630
|
-
function
|
|
1737
|
+
function sn(n) {
|
|
1631
1738
|
if (typeof n == "string" || typeof n == "function")
|
|
1632
1739
|
return { type: m(n) };
|
|
1633
1740
|
if (typeof n == "object" && n !== null && !Array.isArray(n)) {
|
|
@@ -1641,7 +1748,7 @@ function Lt(n) {
|
|
|
1641
1748
|
}
|
|
1642
1749
|
return { type: m(n) };
|
|
1643
1750
|
}
|
|
1644
|
-
class
|
|
1751
|
+
class rn {
|
|
1645
1752
|
constructor(e, t = "myOsAdminChannel") {
|
|
1646
1753
|
this.parent = e, this.adminChannelKey = t;
|
|
1647
1754
|
}
|
|
@@ -1650,10 +1757,10 @@ class Ut {
|
|
|
1650
1757
|
"RequestSingleDocumentPermission",
|
|
1651
1758
|
"MyOS/Single Document Permission Grant Requested",
|
|
1652
1759
|
(i) => {
|
|
1653
|
-
|
|
1760
|
+
x(i, e, s), i.put(
|
|
1654
1761
|
"requestId",
|
|
1655
1762
|
S(t, "requestId is required")
|
|
1656
|
-
), i.put("permissions",
|
|
1763
|
+
), i.put("permissions", Re(r, !0));
|
|
1657
1764
|
}
|
|
1658
1765
|
);
|
|
1659
1766
|
}
|
|
@@ -1662,14 +1769,14 @@ class Ut {
|
|
|
1662
1769
|
"RequestLinkedDocumentsPermission",
|
|
1663
1770
|
"MyOS/Linked Documents Permission Grant Requested",
|
|
1664
1771
|
(i) => {
|
|
1665
|
-
|
|
1772
|
+
x(i, e, s), i.put(
|
|
1666
1773
|
"requestId",
|
|
1667
1774
|
S(t, "requestId is required")
|
|
1668
1775
|
);
|
|
1669
1776
|
const o = {};
|
|
1670
|
-
for (const [c,
|
|
1777
|
+
for (const [c, l] of Object.entries(r)) {
|
|
1671
1778
|
const p = c.trim();
|
|
1672
|
-
p.length !== 0 && (o[p] =
|
|
1779
|
+
p.length !== 0 && (o[p] = Re(l, !0));
|
|
1673
1780
|
}
|
|
1674
1781
|
i.put("links", o);
|
|
1675
1782
|
}
|
|
@@ -1680,7 +1787,7 @@ class Ut {
|
|
|
1680
1787
|
"RevokeSingleDocumentPermission",
|
|
1681
1788
|
"MyOS/Single Document Permission Revoke Requested",
|
|
1682
1789
|
(r) => {
|
|
1683
|
-
|
|
1790
|
+
x(r, e, s), r.put(
|
|
1684
1791
|
"requestId",
|
|
1685
1792
|
S(t, "requestId is required")
|
|
1686
1793
|
);
|
|
@@ -1692,7 +1799,7 @@ class Ut {
|
|
|
1692
1799
|
"RevokeLinkedDocumentsPermission",
|
|
1693
1800
|
"MyOS/Linked Documents Permission Revoke Requested",
|
|
1694
1801
|
(r) => {
|
|
1695
|
-
|
|
1802
|
+
x(r, e, s), r.put(
|
|
1696
1803
|
"requestId",
|
|
1697
1804
|
S(t, "requestId is required")
|
|
1698
1805
|
);
|
|
@@ -1718,7 +1825,7 @@ class Ut {
|
|
|
1718
1825
|
}
|
|
1719
1826
|
s.put(
|
|
1720
1827
|
"participantBinding",
|
|
1721
|
-
|
|
1828
|
+
ye(t)
|
|
1722
1829
|
);
|
|
1723
1830
|
}
|
|
1724
1831
|
);
|
|
@@ -1740,7 +1847,7 @@ class Ut {
|
|
|
1740
1847
|
"CallOperation",
|
|
1741
1848
|
"MyOS/Call Operation Requested",
|
|
1742
1849
|
(o) => {
|
|
1743
|
-
|
|
1850
|
+
x(o, e, t), o.put(
|
|
1744
1851
|
"operation",
|
|
1745
1852
|
S(s, "operation is required")
|
|
1746
1853
|
), r !== void 0 && o.put("request", r), i !== void 0 && o.put(
|
|
@@ -1755,9 +1862,9 @@ class Ut {
|
|
|
1755
1862
|
"SubscribeToSession",
|
|
1756
1863
|
"MyOS/Subscribe to Session Requested",
|
|
1757
1864
|
(r) => {
|
|
1758
|
-
|
|
1865
|
+
Ce(r, e), r.put(
|
|
1759
1866
|
"subscription",
|
|
1760
|
-
|
|
1867
|
+
Te(
|
|
1761
1868
|
t,
|
|
1762
1869
|
s.map((i) => ({ type: m(i) }))
|
|
1763
1870
|
)
|
|
@@ -1770,12 +1877,12 @@ class Ut {
|
|
|
1770
1877
|
"SubscribeToSession",
|
|
1771
1878
|
"MyOS/Subscribe to Session Requested",
|
|
1772
1879
|
(r) => {
|
|
1773
|
-
|
|
1880
|
+
Ce(r, e), r.put(
|
|
1774
1881
|
"subscription",
|
|
1775
|
-
|
|
1882
|
+
Te(
|
|
1776
1883
|
t,
|
|
1777
1884
|
s.map(
|
|
1778
|
-
(i) =>
|
|
1885
|
+
(i) => sn(i)
|
|
1779
1886
|
)
|
|
1780
1887
|
)
|
|
1781
1888
|
);
|
|
@@ -1803,8 +1910,8 @@ class Ut {
|
|
|
1803
1910
|
throw new Error(
|
|
1804
1911
|
"MyOS/Start Worker Session Requested does not support bootstrapAssignee; use onBehalfOf plus initialMessages/capabilities"
|
|
1805
1912
|
);
|
|
1806
|
-
const c = o.initialMessages,
|
|
1807
|
-
c !== void 0 && i.put("initialMessages", c),
|
|
1913
|
+
const c = o.initialMessages, l = o.capabilities;
|
|
1914
|
+
c !== void 0 && i.put("initialMessages", c), l !== void 0 && i.put("capabilities", l);
|
|
1808
1915
|
}
|
|
1809
1916
|
}
|
|
1810
1917
|
);
|
|
@@ -1814,12 +1921,12 @@ class Ut {
|
|
|
1814
1921
|
"GrantWorkerAgencyPermission",
|
|
1815
1922
|
"MyOS/Worker Agency Permission Grant Requested",
|
|
1816
1923
|
(i) => {
|
|
1817
|
-
|
|
1924
|
+
x(i, e, r), i.put(
|
|
1818
1925
|
"requestId",
|
|
1819
1926
|
S(t, "requestId is required")
|
|
1820
1927
|
), i.put(
|
|
1821
1928
|
"allowedWorkerAgencyPermissions",
|
|
1822
|
-
|
|
1929
|
+
ye(s)
|
|
1823
1930
|
);
|
|
1824
1931
|
}
|
|
1825
1932
|
);
|
|
@@ -1829,7 +1936,7 @@ class Ut {
|
|
|
1829
1936
|
"RevokeWorkerAgencyPermission",
|
|
1830
1937
|
"MyOS/Worker Agency Permission Revoke Requested",
|
|
1831
1938
|
(r) => {
|
|
1832
|
-
|
|
1939
|
+
x(r, e, s), r.put(
|
|
1833
1940
|
"requestId",
|
|
1834
1941
|
S(t, "requestId is required")
|
|
1835
1942
|
);
|
|
@@ -1848,7 +1955,7 @@ class Ut {
|
|
|
1848
1955
|
);
|
|
1849
1956
|
}
|
|
1850
1957
|
}
|
|
1851
|
-
class
|
|
1958
|
+
class on {
|
|
1852
1959
|
entries = [];
|
|
1853
1960
|
replaceValue(e, t) {
|
|
1854
1961
|
return this.entries.push({ op: "replace", path: e, val: t }), this;
|
|
@@ -1870,7 +1977,7 @@ class Ft {
|
|
|
1870
1977
|
return structuredClone(this.entries);
|
|
1871
1978
|
}
|
|
1872
1979
|
}
|
|
1873
|
-
class
|
|
1980
|
+
class we {
|
|
1874
1981
|
payload = {};
|
|
1875
1982
|
put(e, t) {
|
|
1876
1983
|
return this.payload[e] = t, this;
|
|
@@ -1882,29 +1989,29 @@ class Ae {
|
|
|
1882
1989
|
return structuredClone(this.payload);
|
|
1883
1990
|
}
|
|
1884
1991
|
}
|
|
1885
|
-
function
|
|
1992
|
+
function an(n) {
|
|
1886
1993
|
const e = n.trim();
|
|
1887
1994
|
if (e.length === 0)
|
|
1888
1995
|
throw new Error("step name is required");
|
|
1889
1996
|
return e;
|
|
1890
1997
|
}
|
|
1891
1998
|
function F(n, e, t) {
|
|
1892
|
-
return { name:
|
|
1999
|
+
return { name: an(n), type: e, ...t };
|
|
1893
2000
|
}
|
|
1894
|
-
function
|
|
2001
|
+
function cn(n, e) {
|
|
1895
2002
|
return {
|
|
1896
2003
|
type: m(n),
|
|
1897
2004
|
...e
|
|
1898
2005
|
};
|
|
1899
2006
|
}
|
|
1900
|
-
function
|
|
2007
|
+
function un(n) {
|
|
1901
2008
|
if (!n.processorName())
|
|
1902
2009
|
throw new Error("payment payload requires processor");
|
|
1903
2010
|
}
|
|
1904
|
-
function
|
|
2011
|
+
function ve(n) {
|
|
1905
2012
|
return structuredClone(n);
|
|
1906
2013
|
}
|
|
1907
|
-
function
|
|
2014
|
+
function Ee(n, e) {
|
|
1908
2015
|
if (typeof n != "string")
|
|
1909
2016
|
throw new Error(e);
|
|
1910
2017
|
const t = n.trim();
|
|
@@ -1912,7 +2019,7 @@ function Re(n, e) {
|
|
|
1912
2019
|
throw new Error(e);
|
|
1913
2020
|
return t;
|
|
1914
2021
|
}
|
|
1915
|
-
class
|
|
2022
|
+
class ln {
|
|
1916
2023
|
constructor(e) {
|
|
1917
2024
|
this.parent = e;
|
|
1918
2025
|
}
|
|
@@ -1920,7 +2027,7 @@ class Jt {
|
|
|
1920
2027
|
return this.parent;
|
|
1921
2028
|
}
|
|
1922
2029
|
}
|
|
1923
|
-
class $ extends
|
|
2030
|
+
class $ extends ln {
|
|
1924
2031
|
constructor(e, t) {
|
|
1925
2032
|
super(e), this.putValue = t;
|
|
1926
2033
|
}
|
|
@@ -1928,7 +2035,7 @@ class $ extends Jt {
|
|
|
1928
2035
|
return this.putValue(e, t), this;
|
|
1929
2036
|
}
|
|
1930
2037
|
}
|
|
1931
|
-
class
|
|
2038
|
+
class hn {
|
|
1932
2039
|
payload = {};
|
|
1933
2040
|
processorValue;
|
|
1934
2041
|
processor(e) {
|
|
@@ -1956,7 +2063,7 @@ class zt {
|
|
|
1956
2063
|
return this.payload.amount = A(e), this;
|
|
1957
2064
|
}
|
|
1958
2065
|
attachPayNote(e) {
|
|
1959
|
-
return this.payload.attachedPayNote =
|
|
2066
|
+
return this.payload.attachedPayNote = ve(e), this;
|
|
1960
2067
|
}
|
|
1961
2068
|
reason(e) {
|
|
1962
2069
|
return this.payload.reason = e, this;
|
|
@@ -2010,13 +2117,13 @@ class zt {
|
|
|
2010
2117
|
});
|
|
2011
2118
|
}
|
|
2012
2119
|
build() {
|
|
2013
|
-
return
|
|
2120
|
+
return ve(this.payload);
|
|
2014
2121
|
}
|
|
2015
2122
|
processorName() {
|
|
2016
2123
|
return this.processorValue;
|
|
2017
2124
|
}
|
|
2018
2125
|
}
|
|
2019
|
-
class
|
|
2126
|
+
class pn {
|
|
2020
2127
|
constructor(e) {
|
|
2021
2128
|
this.parent = e;
|
|
2022
2129
|
}
|
|
@@ -2059,7 +2166,7 @@ class Qt {
|
|
|
2059
2166
|
});
|
|
2060
2167
|
}
|
|
2061
2168
|
}
|
|
2062
|
-
class
|
|
2169
|
+
class Ve {
|
|
2063
2170
|
constructor(e, t, s) {
|
|
2064
2171
|
this.parent = e, this.integration = t, this.stepName = s;
|
|
2065
2172
|
}
|
|
@@ -2111,7 +2218,7 @@ class Te {
|
|
|
2111
2218
|
);
|
|
2112
2219
|
}
|
|
2113
2220
|
}
|
|
2114
|
-
class
|
|
2221
|
+
class dn {
|
|
2115
2222
|
constructor(e, t) {
|
|
2116
2223
|
this.parent = e, this.integration = t;
|
|
2117
2224
|
}
|
|
@@ -2122,7 +2229,7 @@ class Yt {
|
|
|
2122
2229
|
(t) => {
|
|
2123
2230
|
t.put("onBehalfOf", this.integration.permissionFrom), t.put("requestId", this.integration.requestId), t.put("targetSessionId", this.integration.sessionId), t.put(
|
|
2124
2231
|
"permissions",
|
|
2125
|
-
|
|
2232
|
+
B.create().read(!0).singleOps("provideInstructions").build()
|
|
2126
2233
|
);
|
|
2127
2234
|
}
|
|
2128
2235
|
);
|
|
@@ -2139,7 +2246,7 @@ class Yt {
|
|
|
2139
2246
|
);
|
|
2140
2247
|
}
|
|
2141
2248
|
}
|
|
2142
|
-
class
|
|
2249
|
+
class mn {
|
|
2143
2250
|
steps = [];
|
|
2144
2251
|
aiIntegrations;
|
|
2145
2252
|
accessConfigs;
|
|
@@ -2150,11 +2257,11 @@ class Zt {
|
|
|
2150
2257
|
e.linkedAccessConfigs ?? {}
|
|
2151
2258
|
), this.agencyConfigs = structuredClone(e.agencyConfigs ?? {});
|
|
2152
2259
|
}
|
|
2153
|
-
|
|
2154
|
-
return this.steps.push(F(e, "Conversation/
|
|
2260
|
+
compute(e, t) {
|
|
2261
|
+
return this.steps.push(F(e, "Conversation/Compute", t)), this;
|
|
2155
2262
|
}
|
|
2156
2263
|
updateDocument(e, t) {
|
|
2157
|
-
const s = new
|
|
2264
|
+
const s = new on();
|
|
2158
2265
|
return t(s), this.steps.push(
|
|
2159
2266
|
F(e, "Conversation/Update Document", {
|
|
2160
2267
|
changeset: s.build()
|
|
@@ -2175,15 +2282,15 @@ class Zt {
|
|
|
2175
2282
|
return this.triggerEvent(e, t);
|
|
2176
2283
|
}
|
|
2177
2284
|
emitType(e, t, s) {
|
|
2178
|
-
const r = new
|
|
2285
|
+
const r = new we();
|
|
2179
2286
|
return s?.(r), this.steps.push(
|
|
2180
2287
|
F(e, "Conversation/Trigger Event", {
|
|
2181
|
-
event:
|
|
2288
|
+
event: cn(t, r.build())
|
|
2182
2289
|
})
|
|
2183
2290
|
), this;
|
|
2184
2291
|
}
|
|
2185
2292
|
namedEvent(e, t, s) {
|
|
2186
|
-
const r = new
|
|
2293
|
+
const r = new we();
|
|
2187
2294
|
s?.(r);
|
|
2188
2295
|
const i = r.build();
|
|
2189
2296
|
return this.steps.push(
|
|
@@ -2220,7 +2327,7 @@ class Zt {
|
|
|
2220
2327
|
);
|
|
2221
2328
|
}
|
|
2222
2329
|
requestBackwardPayment(e, t) {
|
|
2223
|
-
return
|
|
2330
|
+
return Ze(
|
|
2224
2331
|
"PayNote/Backward Payment Requested",
|
|
2225
2332
|
"steps.requestBackwardPayment(...)"
|
|
2226
2333
|
), typeof e == "function" ? this.emitPaymentRequest(
|
|
@@ -2238,9 +2345,9 @@ class Zt {
|
|
|
2238
2345
|
e,
|
|
2239
2346
|
"Conversation/Document Bootstrap Requested",
|
|
2240
2347
|
(o) => {
|
|
2241
|
-
o.put("document",
|
|
2348
|
+
o.put("document", ve(t)), o.put("channelBindings", structuredClone(s)), o.put(
|
|
2242
2349
|
"onBehalfOf",
|
|
2243
|
-
|
|
2350
|
+
Ee(r, "onBehalfOf is required")
|
|
2244
2351
|
), i?.(o);
|
|
2245
2352
|
}
|
|
2246
2353
|
);
|
|
@@ -2252,27 +2359,27 @@ class Zt {
|
|
|
2252
2359
|
(o) => {
|
|
2253
2360
|
o.putExpression("document", t), o.put("channelBindings", structuredClone(s)), o.put(
|
|
2254
2361
|
"onBehalfOf",
|
|
2255
|
-
|
|
2362
|
+
Ee(r, "onBehalfOf is required")
|
|
2256
2363
|
), i?.(o);
|
|
2257
2364
|
}
|
|
2258
2365
|
);
|
|
2259
2366
|
}
|
|
2260
2367
|
capture() {
|
|
2261
|
-
return new
|
|
2368
|
+
return new pn(this);
|
|
2262
2369
|
}
|
|
2263
2370
|
myOs(e = "myOsAdminChannel") {
|
|
2264
|
-
return new
|
|
2371
|
+
return new rn(this, e);
|
|
2265
2372
|
}
|
|
2266
2373
|
askAI(e, t, s) {
|
|
2267
2374
|
if (typeof t == "function") {
|
|
2268
|
-
const i = new
|
|
2375
|
+
const i = new Ve(
|
|
2269
2376
|
this,
|
|
2270
2377
|
this.requireAiIntegration(e),
|
|
2271
2378
|
"AskAI"
|
|
2272
2379
|
);
|
|
2273
2380
|
return t(i), i.done(), this;
|
|
2274
2381
|
}
|
|
2275
|
-
const r = new
|
|
2382
|
+
const r = new Ve(
|
|
2276
2383
|
this,
|
|
2277
2384
|
this.requireAiIntegration(e),
|
|
2278
2385
|
t
|
|
@@ -2280,19 +2387,19 @@ class Zt {
|
|
|
2280
2387
|
return s(r), r.done(), this;
|
|
2281
2388
|
}
|
|
2282
2389
|
ai(e) {
|
|
2283
|
-
return new
|
|
2390
|
+
return new dn(this, this.requireAiIntegration(e));
|
|
2284
2391
|
}
|
|
2285
2392
|
access(e) {
|
|
2286
|
-
return new
|
|
2393
|
+
return new Ht(this, this.requireAccessConfig(e));
|
|
2287
2394
|
}
|
|
2288
2395
|
accessLinked(e) {
|
|
2289
|
-
return new
|
|
2396
|
+
return new Xt(
|
|
2290
2397
|
this,
|
|
2291
2398
|
this.requireLinkedAccessConfig(e)
|
|
2292
2399
|
);
|
|
2293
2400
|
}
|
|
2294
2401
|
viaAgency(e) {
|
|
2295
|
-
return new
|
|
2402
|
+
return new nn(this, this.requireAgencyConfig(e));
|
|
2296
2403
|
}
|
|
2297
2404
|
raw(e) {
|
|
2298
2405
|
return this.steps.push(structuredClone(e)), this;
|
|
@@ -2301,8 +2408,8 @@ class Zt {
|
|
|
2301
2408
|
return structuredClone(this.steps);
|
|
2302
2409
|
}
|
|
2303
2410
|
emitPaymentRequest(e, t, s) {
|
|
2304
|
-
const r = new
|
|
2305
|
-
return s(r),
|
|
2411
|
+
const r = new hn();
|
|
2412
|
+
return s(r), un(r), this.emitType(e, t, (i) => {
|
|
2306
2413
|
for (const [o, c] of Object.entries(r.build()))
|
|
2307
2414
|
i.put(o, c);
|
|
2308
2415
|
});
|
|
@@ -2344,20 +2451,23 @@ function f(n, e) {
|
|
|
2344
2451
|
throw new Error(`${e} is required`);
|
|
2345
2452
|
return t;
|
|
2346
2453
|
}
|
|
2347
|
-
function
|
|
2348
|
-
n.
|
|
2454
|
+
function fn(n) {
|
|
2455
|
+
n.compute("EmitEvents", {
|
|
2456
|
+
do: [{ $appendEvents: { $event: "/message/request" } }],
|
|
2457
|
+
returnResult: !1
|
|
2458
|
+
});
|
|
2349
2459
|
}
|
|
2350
|
-
function
|
|
2460
|
+
function De(n) {
|
|
2351
2461
|
return n.replace(/[^A-Za-z0-9]+/gu, "_").replace(/^_+|_+$/gu, "").toUpperCase();
|
|
2352
2462
|
}
|
|
2353
|
-
function
|
|
2463
|
+
function gn(n) {
|
|
2354
2464
|
return n.endsWith("Channel") ? n.replace(/Channel$/u, "Update") : `${n}Update`;
|
|
2355
2465
|
}
|
|
2356
|
-
function
|
|
2466
|
+
function yn(n) {
|
|
2357
2467
|
return P(n);
|
|
2358
2468
|
}
|
|
2359
|
-
function
|
|
2360
|
-
if (!
|
|
2469
|
+
function Cn(n) {
|
|
2470
|
+
if (!yn(n))
|
|
2361
2471
|
return {
|
|
2362
2472
|
eventType: m(n),
|
|
2363
2473
|
matcher: {}
|
|
@@ -2368,13 +2478,10 @@ function tn(n) {
|
|
|
2368
2478
|
matcher: e
|
|
2369
2479
|
};
|
|
2370
2480
|
}
|
|
2371
|
-
function
|
|
2481
|
+
function vn(n) {
|
|
2372
2482
|
return `${n}OnCallResponseEnvelope`;
|
|
2373
2483
|
}
|
|
2374
|
-
function
|
|
2375
|
-
return `Emit${Ge(n)}OnCallResponseItems`;
|
|
2376
|
-
}
|
|
2377
|
-
function rn(n, e) {
|
|
2484
|
+
function Sn(n, e) {
|
|
2378
2485
|
const t = structuredClone(n);
|
|
2379
2486
|
t.requestId = e;
|
|
2380
2487
|
const s = P(
|
|
@@ -2382,15 +2489,7 @@ function rn(n, e) {
|
|
|
2382
2489
|
) ? structuredClone(t.inResponseTo) : {};
|
|
2383
2490
|
return s.requestId = e, t.inResponseTo = s, t;
|
|
2384
2491
|
}
|
|
2385
|
-
|
|
2386
|
-
return `const responses = Array.isArray(event.events) ? event.events : [];
|
|
2387
|
-
return {
|
|
2388
|
-
events: responses.filter(
|
|
2389
|
-
(response) => response && typeof response === 'object' && !Array.isArray(response),
|
|
2390
|
-
),
|
|
2391
|
-
};`;
|
|
2392
|
-
}
|
|
2393
|
-
class u {
|
|
2492
|
+
class h {
|
|
2394
2493
|
state;
|
|
2395
2494
|
aiIntegrations = /* @__PURE__ */ new Map();
|
|
2396
2495
|
accessConfigs = /* @__PURE__ */ new Map();
|
|
@@ -2398,22 +2497,22 @@ class u {
|
|
|
2398
2497
|
agencyConfigs = /* @__PURE__ */ new Map();
|
|
2399
2498
|
callResponseEnvelopeWorkflows = /* @__PURE__ */ new Map();
|
|
2400
2499
|
constructor(e) {
|
|
2401
|
-
this.state = new
|
|
2500
|
+
this.state = new kt(e);
|
|
2402
2501
|
}
|
|
2403
2502
|
static doc() {
|
|
2404
|
-
return new
|
|
2503
|
+
return new h();
|
|
2405
2504
|
}
|
|
2406
2505
|
static edit(e) {
|
|
2407
|
-
return new
|
|
2506
|
+
return new h(h.documentToJson(e));
|
|
2408
2507
|
}
|
|
2409
2508
|
static from(e) {
|
|
2410
|
-
return new
|
|
2509
|
+
return new h(h.documentToJson(e));
|
|
2411
2510
|
}
|
|
2412
2511
|
static expr(e) {
|
|
2413
2512
|
return A(e);
|
|
2414
2513
|
}
|
|
2415
2514
|
static documentToJson(e) {
|
|
2416
|
-
return e instanceof N ?
|
|
2515
|
+
return e instanceof N ? ae(e) : C(e);
|
|
2417
2516
|
}
|
|
2418
2517
|
name(e) {
|
|
2419
2518
|
return this.state.setName(e), this;
|
|
@@ -2425,7 +2524,7 @@ class u {
|
|
|
2425
2524
|
return this.state.setType(m(e)), this;
|
|
2426
2525
|
}
|
|
2427
2526
|
field(e, t) {
|
|
2428
|
-
return arguments.length === 1 ? new
|
|
2527
|
+
return arguments.length === 1 ? new Gt(this, e) : (this.state.setValue(e, t), this);
|
|
2429
2528
|
}
|
|
2430
2529
|
replace(e, t) {
|
|
2431
2530
|
return this.state.setValue(e, t), this;
|
|
@@ -2440,7 +2539,7 @@ class u {
|
|
|
2440
2539
|
return this.state.endSection(), this;
|
|
2441
2540
|
}
|
|
2442
2541
|
channel(e, t) {
|
|
2443
|
-
const s = f(e, "channel key"), r = t ? { ...C(t), type: t.type ?? "
|
|
2542
|
+
const s = f(e, "channel key"), r = t ? { ...C(t), type: t.type ?? "Channel" } : { type: "Channel" };
|
|
2444
2543
|
return this.state.setContract(s, r), this;
|
|
2445
2544
|
}
|
|
2446
2545
|
channels(...e) {
|
|
@@ -2469,7 +2568,7 @@ class u {
|
|
|
2469
2568
|
}
|
|
2470
2569
|
operation(e, t, s, r, i) {
|
|
2471
2570
|
if (t === void 0)
|
|
2472
|
-
return new
|
|
2571
|
+
return new zt(
|
|
2473
2572
|
this,
|
|
2474
2573
|
f(e, "operation key")
|
|
2475
2574
|
);
|
|
@@ -2501,14 +2600,14 @@ class u {
|
|
|
2501
2600
|
steps: g ? this.buildSteps(g) : void 0
|
|
2502
2601
|
});
|
|
2503
2602
|
}
|
|
2504
|
-
const o = s, c = typeof r == "string" ? r : void 0,
|
|
2603
|
+
const o = s, c = typeof r == "string" ? r : void 0, l = typeof r == "function" ? r : i;
|
|
2505
2604
|
return this.applyOperationDefinition({
|
|
2506
2605
|
key: e,
|
|
2507
2606
|
channelKey: t,
|
|
2508
2607
|
description: c,
|
|
2509
2608
|
request: { type: m(o) },
|
|
2510
2609
|
clearRequest: !1,
|
|
2511
|
-
steps:
|
|
2610
|
+
steps: l ? this.buildSteps(l) : void 0
|
|
2512
2611
|
});
|
|
2513
2612
|
}
|
|
2514
2613
|
requestDescription(e, t) {
|
|
@@ -2553,12 +2652,12 @@ class u {
|
|
|
2553
2652
|
onDocChange(e, t, s) {
|
|
2554
2653
|
const r = f(e, "workflow key"), i = `${r}DocUpdateChannel`;
|
|
2555
2654
|
return this.state.setContract(i, {
|
|
2556
|
-
type: "
|
|
2655
|
+
type: "Document Update Channel",
|
|
2557
2656
|
path: t
|
|
2558
2657
|
}), this.state.setContract(r, {
|
|
2559
2658
|
type: "Conversation/Sequential Workflow",
|
|
2560
2659
|
channel: i,
|
|
2561
|
-
event: { type: "
|
|
2660
|
+
event: { type: "Document Update" },
|
|
2562
2661
|
steps: this.buildSteps(s)
|
|
2563
2662
|
}), this;
|
|
2564
2663
|
}
|
|
@@ -2642,22 +2741,22 @@ class u {
|
|
|
2642
2741
|
);
|
|
2643
2742
|
}
|
|
2644
2743
|
ai(e) {
|
|
2645
|
-
return this.myOsAdmin(), new
|
|
2744
|
+
return this.myOsAdmin(), new Mt(this, e);
|
|
2646
2745
|
}
|
|
2647
2746
|
access(e) {
|
|
2648
|
-
return this.myOsAdmin(), new
|
|
2747
|
+
return this.myOsAdmin(), new Bt(
|
|
2649
2748
|
this,
|
|
2650
2749
|
f(e, "access name")
|
|
2651
2750
|
);
|
|
2652
2751
|
}
|
|
2653
2752
|
accessLinked(e) {
|
|
2654
|
-
return this.myOsAdmin(), new
|
|
2753
|
+
return this.myOsAdmin(), new xt(
|
|
2655
2754
|
this,
|
|
2656
2755
|
f(e, "linked access name")
|
|
2657
2756
|
);
|
|
2658
2757
|
}
|
|
2659
2758
|
agency(e) {
|
|
2660
|
-
return this.myOsAdmin(), new
|
|
2759
|
+
return this.myOsAdmin(), new Ut(
|
|
2661
2760
|
this,
|
|
2662
2761
|
f(e, "agency name")
|
|
2663
2762
|
);
|
|
@@ -2838,13 +2937,13 @@ class u {
|
|
|
2838
2937
|
},
|
|
2839
2938
|
s
|
|
2840
2939
|
);
|
|
2841
|
-
const o = f(t, "workflow key"), c =
|
|
2940
|
+
const o = f(t, "workflow key"), c = Cn(
|
|
2842
2941
|
s
|
|
2843
2942
|
);
|
|
2844
2943
|
return this.ensureCallResponseEnvelopeWorkflow(e, o), this.onTriggeredWithMatcher(
|
|
2845
2944
|
o,
|
|
2846
2945
|
c.eventType,
|
|
2847
|
-
|
|
2946
|
+
Sn(c.matcher, i.requestId),
|
|
2848
2947
|
r
|
|
2849
2948
|
);
|
|
2850
2949
|
}
|
|
@@ -2970,9 +3069,9 @@ class u {
|
|
|
2970
3069
|
permissionTriggerDocPath: e.permissionTriggerDocPath,
|
|
2971
3070
|
tasks: structuredClone(e.tasks)
|
|
2972
3071
|
};
|
|
2973
|
-
this.aiIntegrations.set(t, i), this.state.setValue(i.statusPath, "idle"), this.state.setValue(i.contextPath, {});
|
|
2974
|
-
const o =
|
|
2975
|
-
|
|
3072
|
+
this.aiIntegrations.set(t, i), this.state.setValue(i.statusPath, "idle"), this.state.setValue(i.contextPath, { type: "Dictionary" });
|
|
3073
|
+
const o = De(t), c = (l) => {
|
|
3074
|
+
l.myOs().requestSingleDocPermission(
|
|
2976
3075
|
i.permissionFrom,
|
|
2977
3076
|
i.requestId,
|
|
2978
3077
|
i.sessionId,
|
|
@@ -3009,7 +3108,7 @@ class u {
|
|
|
3009
3108
|
`subscribe${o}OnGranted`,
|
|
3010
3109
|
"MyOS/Single Document Permission Granted",
|
|
3011
3110
|
i.requestId,
|
|
3012
|
-
(
|
|
3111
|
+
(l) => l.myOs().subscribeToSessionWithMatchers(
|
|
3013
3112
|
i.sessionId,
|
|
3014
3113
|
i.subscriptionId,
|
|
3015
3114
|
[
|
|
@@ -3024,7 +3123,7 @@ class u {
|
|
|
3024
3123
|
"MyOS/Subscription to Session Initiated",
|
|
3025
3124
|
"subscriptionId",
|
|
3026
3125
|
i.subscriptionId,
|
|
3027
|
-
(
|
|
3126
|
+
(l) => l.replaceValue("SetAIStatusReady", i.statusPath, "ready")
|
|
3028
3127
|
), this;
|
|
3029
3128
|
}
|
|
3030
3129
|
registerAccessConfig(e) {
|
|
@@ -3037,7 +3136,7 @@ class u {
|
|
|
3037
3136
|
return this.agencyConfigs.set(e.name, structuredClone(e)), this;
|
|
3038
3137
|
}
|
|
3039
3138
|
canEmit(e, ...t) {
|
|
3040
|
-
const s = f(e, "channel key"), r =
|
|
3139
|
+
const s = f(e, "channel key"), r = gn(s), i = { type: "List" };
|
|
3041
3140
|
return t.length > 0 && (i.events = t.map((o) => ({
|
|
3042
3141
|
type: m(o)
|
|
3043
3142
|
}))), this.applyOperationDefinition({
|
|
@@ -3046,7 +3145,7 @@ class u {
|
|
|
3046
3145
|
description: "Operation for emitting events through channel",
|
|
3047
3146
|
request: i,
|
|
3048
3147
|
clearRequest: !1,
|
|
3049
|
-
steps: this.buildSteps(
|
|
3148
|
+
steps: this.buildSteps(fn)
|
|
3050
3149
|
}), this;
|
|
3051
3150
|
}
|
|
3052
3151
|
contractsPolicy(e = !0, t = "contractsPolicy") {
|
|
@@ -3167,7 +3266,7 @@ class u {
|
|
|
3167
3266
|
return this.state.build();
|
|
3168
3267
|
}
|
|
3169
3268
|
buildDocument() {
|
|
3170
|
-
return
|
|
3269
|
+
return re(this.buildJson());
|
|
3171
3270
|
}
|
|
3172
3271
|
applyFieldMetadata(e) {
|
|
3173
3272
|
const t = this.state.getValue(e.path), s = P(t) ? C(t) : {};
|
|
@@ -3200,7 +3299,7 @@ class u {
|
|
|
3200
3299
|
return e(t), t.build();
|
|
3201
3300
|
}
|
|
3202
3301
|
createStepsBuilder() {
|
|
3203
|
-
return new
|
|
3302
|
+
return new mn({
|
|
3204
3303
|
aiIntegrations: Object.fromEntries(this.aiIntegrations.entries()),
|
|
3205
3304
|
accessConfigs: Object.fromEntries(this.accessConfigs.entries()),
|
|
3206
3305
|
linkedAccessConfigs: Object.fromEntries(
|
|
@@ -3228,12 +3327,12 @@ class u {
|
|
|
3228
3327
|
}
|
|
3229
3328
|
}
|
|
3230
3329
|
},
|
|
3231
|
-
(
|
|
3232
|
-
|
|
3330
|
+
(l) => {
|
|
3331
|
+
l.replaceExpression(
|
|
3233
3332
|
"_SaveAIContext",
|
|
3234
3333
|
e.contextPath,
|
|
3235
3334
|
"event.update.context"
|
|
3236
|
-
), o(
|
|
3335
|
+
), o(l);
|
|
3237
3336
|
}
|
|
3238
3337
|
);
|
|
3239
3338
|
}
|
|
@@ -3272,14 +3371,26 @@ class u {
|
|
|
3272
3371
|
const s = f(e, "access name"), r = this.callResponseEnvelopeWorkflows.get(s);
|
|
3273
3372
|
if (r)
|
|
3274
3373
|
return r;
|
|
3275
|
-
const i =
|
|
3374
|
+
const i = vn(t);
|
|
3276
3375
|
return this.onEvent(
|
|
3277
3376
|
i,
|
|
3278
3377
|
"MyOS/Call Operation Responded",
|
|
3279
|
-
(o) => o.
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3378
|
+
(o) => o.compute(`Emit${De(t)}OnCallResponseItems`, {
|
|
3379
|
+
do: [
|
|
3380
|
+
{
|
|
3381
|
+
$appendEvents: {
|
|
3382
|
+
$filter: {
|
|
3383
|
+
in: { $event: "/events" },
|
|
3384
|
+
item: "response",
|
|
3385
|
+
where: {
|
|
3386
|
+
$eq: [{ $kind: { $var: "response" } }, "object"]
|
|
3387
|
+
}
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
}
|
|
3391
|
+
],
|
|
3392
|
+
returnResult: !1
|
|
3393
|
+
})
|
|
3283
3394
|
), this.callResponseEnvelopeWorkflows.set(
|
|
3284
3395
|
s,
|
|
3285
3396
|
i
|
|
@@ -3287,13 +3398,13 @@ class u {
|
|
|
3287
3398
|
}
|
|
3288
3399
|
ensureTriggeredEventChannel() {
|
|
3289
3400
|
this.state.setContract("triggeredEventChannel", {
|
|
3290
|
-
type: "
|
|
3401
|
+
type: "Triggered Event Channel"
|
|
3291
3402
|
});
|
|
3292
3403
|
}
|
|
3293
3404
|
ensureInitLifecycleChannel() {
|
|
3294
3405
|
this.state.setContract("initLifecycleChannel", {
|
|
3295
|
-
type: "
|
|
3296
|
-
event: { type: "
|
|
3406
|
+
type: "Lifecycle Event Channel",
|
|
3407
|
+
event: { type: "Document Processing Initiated" }
|
|
3297
3408
|
});
|
|
3298
3409
|
}
|
|
3299
3410
|
resolveChannelEventMatcher(e, t) {
|
|
@@ -3319,7 +3430,7 @@ class u {
|
|
|
3319
3430
|
}), this;
|
|
3320
3431
|
}
|
|
3321
3432
|
}
|
|
3322
|
-
class y extends
|
|
3433
|
+
class y extends h {
|
|
3323
3434
|
constructor(e) {
|
|
3324
3435
|
super(e);
|
|
3325
3436
|
}
|
|
@@ -3333,35 +3444,35 @@ class y extends u {
|
|
|
3333
3444
|
return new y(this.documentToJson(e));
|
|
3334
3445
|
}
|
|
3335
3446
|
}
|
|
3336
|
-
function
|
|
3447
|
+
function kn(n) {
|
|
3337
3448
|
const e = n.trim();
|
|
3338
3449
|
if (e.length === 0)
|
|
3339
3450
|
throw new Error("channelKey is required");
|
|
3340
3451
|
return e;
|
|
3341
3452
|
}
|
|
3342
|
-
function
|
|
3343
|
-
const t = W(
|
|
3453
|
+
function et(n, e) {
|
|
3454
|
+
const t = W(kn(n));
|
|
3344
3455
|
return {
|
|
3345
|
-
[e]:
|
|
3456
|
+
[e]: { $document: `/contracts/${t}/${e}` }
|
|
3346
3457
|
};
|
|
3347
3458
|
}
|
|
3348
|
-
function
|
|
3349
|
-
return
|
|
3459
|
+
function Me(n) {
|
|
3460
|
+
return et(n, "accountId");
|
|
3350
3461
|
}
|
|
3351
|
-
function
|
|
3352
|
-
return
|
|
3462
|
+
function Ss(n) {
|
|
3463
|
+
return et(n, "email");
|
|
3353
3464
|
}
|
|
3354
|
-
const
|
|
3465
|
+
const On = /* @__PURE__ */ new Set([
|
|
3355
3466
|
"name",
|
|
3356
3467
|
"description",
|
|
3357
3468
|
"type",
|
|
3358
3469
|
"contracts",
|
|
3359
3470
|
"policies"
|
|
3360
3471
|
]);
|
|
3361
|
-
function
|
|
3472
|
+
function bn(n) {
|
|
3362
3473
|
return Array.isArray(n.fields) && Array.isArray(n.contracts) && Array.isArray(n.sections) && Array.isArray(n.policies) && Array.isArray(n.unclassifiedContracts);
|
|
3363
3474
|
}
|
|
3364
|
-
function
|
|
3475
|
+
function $e(n) {
|
|
3365
3476
|
return structuredClone(n);
|
|
3366
3477
|
}
|
|
3367
3478
|
function _(n) {
|
|
@@ -3370,10 +3481,10 @@ function _(n) {
|
|
|
3370
3481
|
function X(n) {
|
|
3371
3482
|
return Object.keys(n).sort((e, t) => e.localeCompare(t));
|
|
3372
3483
|
}
|
|
3373
|
-
function
|
|
3484
|
+
function In(n) {
|
|
3374
3485
|
return Array.isArray(n) ? "array" : !n || typeof n != "object" ? "primitive" : typeof n.type == "string" ? "typed-node-like object" : "object";
|
|
3375
3486
|
}
|
|
3376
|
-
function
|
|
3487
|
+
function Pn(n) {
|
|
3377
3488
|
if (n === null)
|
|
3378
3489
|
return "null";
|
|
3379
3490
|
if (typeof n == "string")
|
|
@@ -3385,14 +3496,14 @@ function hn(n) {
|
|
|
3385
3496
|
const e = n;
|
|
3386
3497
|
return typeof e.type == "string" ? `<${e.type}>` : `{${Object.keys(e).length} keys}`;
|
|
3387
3498
|
}
|
|
3388
|
-
function
|
|
3389
|
-
const s =
|
|
3499
|
+
function tt(n, e, t) {
|
|
3500
|
+
const s = In(n);
|
|
3390
3501
|
if (s === "primitive" || s === "array" || s === "typed-node-like object") {
|
|
3391
3502
|
t.push({
|
|
3392
3503
|
path: e,
|
|
3393
3504
|
value: structuredClone(n),
|
|
3394
3505
|
kind: s,
|
|
3395
|
-
valuePreview:
|
|
3506
|
+
valuePreview: Pn(n)
|
|
3396
3507
|
});
|
|
3397
3508
|
return;
|
|
3398
3509
|
}
|
|
@@ -3407,24 +3518,24 @@ function ze(n, e, t) {
|
|
|
3407
3518
|
return;
|
|
3408
3519
|
}
|
|
3409
3520
|
for (const o of i)
|
|
3410
|
-
|
|
3521
|
+
tt(
|
|
3411
3522
|
r[o],
|
|
3412
3523
|
`${e}/${W(o)}`,
|
|
3413
3524
|
t
|
|
3414
3525
|
);
|
|
3415
3526
|
}
|
|
3416
|
-
function
|
|
3527
|
+
function Se(n) {
|
|
3417
3528
|
if (Array.isArray(n))
|
|
3418
|
-
return `[${n.map((t) =>
|
|
3529
|
+
return `[${n.map((t) => Se(t)).join(",")}]`;
|
|
3419
3530
|
if (!n || typeof n != "object")
|
|
3420
3531
|
return JSON.stringify(n);
|
|
3421
3532
|
const e = n;
|
|
3422
3533
|
return `{${X(e).map(
|
|
3423
|
-
(t) => `${JSON.stringify(t)}:${
|
|
3534
|
+
(t) => `${JSON.stringify(t)}:${Se(e[t])}`
|
|
3424
3535
|
).join(",")}}`;
|
|
3425
3536
|
}
|
|
3426
|
-
function
|
|
3427
|
-
const e =
|
|
3537
|
+
function qn(n) {
|
|
3538
|
+
const e = Se(n);
|
|
3428
3539
|
let t = 2166136261, s = 2166136261;
|
|
3429
3540
|
for (let o = 0; o < e.length; o += 1) {
|
|
3430
3541
|
const c = e.charCodeAt(o);
|
|
@@ -3433,21 +3544,21 @@ function pn(n) {
|
|
|
3433
3544
|
const r = (t >>> 0).toString(16).padStart(8, "0"), i = (s >>> 0).toString(16).padStart(8, "0");
|
|
3434
3545
|
return `${r}${i}${r}${i}${r}${i}${r}${i}`;
|
|
3435
3546
|
}
|
|
3436
|
-
function
|
|
3547
|
+
function An(n) {
|
|
3437
3548
|
return n ? n === "Conversation/Document Section" ? "section" : n.includes("Policy") ? "policy" : n.includes("Channel") ? "channel" : n.includes("Sequential Workflow Operation") ? "operationImpl" : n.includes("Operation") || n.includes("Change Operation") ? "operation" : n.includes("Workflow") ? "workflow" : "other" : "other";
|
|
3438
3549
|
}
|
|
3439
|
-
function
|
|
3550
|
+
function Rn(n) {
|
|
3440
3551
|
const e = {};
|
|
3441
3552
|
for (const t of n)
|
|
3442
3553
|
for (const s of t.relatedContracts)
|
|
3443
3554
|
e[s] || (e[s] = /* @__PURE__ */ new Set()), e[s]?.add(t.key);
|
|
3444
3555
|
return e;
|
|
3445
3556
|
}
|
|
3446
|
-
function
|
|
3557
|
+
function Be(n) {
|
|
3447
3558
|
const e = [], t = n.requireSectionChanges;
|
|
3448
3559
|
return typeof t == "boolean" && e.push(`requireSectionChanges=${String(t)}`), e.length === 0 ? `keys=${Object.keys(n).length}` : e.join(", ");
|
|
3449
3560
|
}
|
|
3450
|
-
function
|
|
3561
|
+
function Tn(n) {
|
|
3451
3562
|
return `Document: ${n ?? "(unnamed)"}`;
|
|
3452
3563
|
}
|
|
3453
3564
|
class J {
|
|
@@ -3461,17 +3572,17 @@ class J {
|
|
|
3461
3572
|
unclassifiedContracts;
|
|
3462
3573
|
unknownContracts;
|
|
3463
3574
|
constructor(e) {
|
|
3464
|
-
const t =
|
|
3575
|
+
const t = $e(e);
|
|
3465
3576
|
this.name = t.name, this.description = t.description, this.type = t.type, this.fields = t.fields, this.contracts = t.contracts, this.sections = t.sections, this.policies = t.policies, this.unclassifiedContracts = t.unclassifiedContracts, this.unknownContracts = t.unclassifiedContracts;
|
|
3466
3577
|
}
|
|
3467
3578
|
static from(e) {
|
|
3468
3579
|
if (e instanceof J)
|
|
3469
3580
|
return e;
|
|
3470
|
-
if (!(e instanceof N) &&
|
|
3581
|
+
if (!(e instanceof N) && bn(e))
|
|
3471
3582
|
return new J(e);
|
|
3472
|
-
const t = e instanceof N ?
|
|
3583
|
+
const t = e instanceof N ? ae(e) : structuredClone(e), s = [];
|
|
3473
3584
|
for (const a of X(t))
|
|
3474
|
-
|
|
3585
|
+
On.has(a) || tt(
|
|
3475
3586
|
t[a],
|
|
3476
3587
|
`/${W(a)}`,
|
|
3477
3588
|
s
|
|
@@ -3482,7 +3593,7 @@ class J {
|
|
|
3482
3593
|
i.push({
|
|
3483
3594
|
key: a,
|
|
3484
3595
|
type: O,
|
|
3485
|
-
kind:
|
|
3596
|
+
kind: An(O),
|
|
3486
3597
|
raw: structuredClone(d)
|
|
3487
3598
|
});
|
|
3488
3599
|
}
|
|
@@ -3499,13 +3610,13 @@ class J {
|
|
|
3499
3610
|
title: d,
|
|
3500
3611
|
summary: O,
|
|
3501
3612
|
relatedFields: [...new Set(w)].sort(
|
|
3502
|
-
(b,
|
|
3613
|
+
(b, ce) => b.localeCompare(ce)
|
|
3503
3614
|
),
|
|
3504
3615
|
relatedContracts: [...new Set(E)].sort(
|
|
3505
|
-
(b,
|
|
3616
|
+
(b, ce) => b.localeCompare(ce)
|
|
3506
3617
|
)
|
|
3507
3618
|
};
|
|
3508
|
-
}).sort((a, d) => a.key.localeCompare(d.key)), c =
|
|
3619
|
+
}).sort((a, d) => a.key.localeCompare(d.key)), c = Rn(o), l = i.map(
|
|
3509
3620
|
(a) => {
|
|
3510
3621
|
const d = _(a.raw.request), O = _(a.raw.event);
|
|
3511
3622
|
return {
|
|
@@ -3513,7 +3624,7 @@ class J {
|
|
|
3513
3624
|
type: a.type,
|
|
3514
3625
|
kind: a.kind,
|
|
3515
3626
|
raw: structuredClone(a.raw),
|
|
3516
|
-
fingerprint:
|
|
3627
|
+
fingerprint: qn(a.raw),
|
|
3517
3628
|
sectionKeys: [
|
|
3518
3629
|
...c[a.key] ?? /* @__PURE__ */ new Set()
|
|
3519
3630
|
].sort((w, E) => w.localeCompare(E)),
|
|
@@ -3524,10 +3635,10 @@ class J {
|
|
|
3524
3635
|
};
|
|
3525
3636
|
}
|
|
3526
3637
|
), p = [
|
|
3527
|
-
...
|
|
3638
|
+
...l.filter((a) => a.kind === "policy").map((a) => ({
|
|
3528
3639
|
key: a.key,
|
|
3529
3640
|
type: a.type,
|
|
3530
|
-
summary:
|
|
3641
|
+
summary: Be(a.raw)
|
|
3531
3642
|
}))
|
|
3532
3643
|
], g = _(t.policies);
|
|
3533
3644
|
if (g)
|
|
@@ -3536,10 +3647,10 @@ class J {
|
|
|
3536
3647
|
p.push({
|
|
3537
3648
|
key: a,
|
|
3538
3649
|
type: typeof d.type == "string" ? d.type : void 0,
|
|
3539
|
-
summary:
|
|
3650
|
+
summary: Be(d)
|
|
3540
3651
|
});
|
|
3541
3652
|
}
|
|
3542
|
-
const k = new Set(o.map((a) => a.key)),
|
|
3653
|
+
const k = new Set(o.map((a) => a.key)), u = l.filter(
|
|
3543
3654
|
(a) => !k.has(a.key)
|
|
3544
3655
|
);
|
|
3545
3656
|
return new J({
|
|
@@ -3547,12 +3658,12 @@ class J {
|
|
|
3547
3658
|
description: typeof t.description == "string" ? t.description : void 0,
|
|
3548
3659
|
type: typeof t.type == "string" ? t.type : void 0,
|
|
3549
3660
|
fields: s,
|
|
3550
|
-
contracts:
|
|
3661
|
+
contracts: l,
|
|
3551
3662
|
sections: o,
|
|
3552
3663
|
policies: p.sort(
|
|
3553
3664
|
(a, d) => a.key.localeCompare(d.key)
|
|
3554
3665
|
),
|
|
3555
|
-
unclassifiedContracts:
|
|
3666
|
+
unclassifiedContracts: u
|
|
3556
3667
|
});
|
|
3557
3668
|
}
|
|
3558
3669
|
getContract(e) {
|
|
@@ -3562,7 +3673,7 @@ class J {
|
|
|
3562
3673
|
return this.sections.find((t) => t.key === e);
|
|
3563
3674
|
}
|
|
3564
3675
|
toSummaryJson() {
|
|
3565
|
-
return
|
|
3676
|
+
return $e({
|
|
3566
3677
|
name: this.name,
|
|
3567
3678
|
description: this.description,
|
|
3568
3679
|
type: this.type,
|
|
@@ -3574,7 +3685,7 @@ class J {
|
|
|
3574
3685
|
});
|
|
3575
3686
|
}
|
|
3576
3687
|
toPromptText() {
|
|
3577
|
-
const e = [
|
|
3688
|
+
const e = [Tn(this.name)];
|
|
3578
3689
|
if (e.push(`Type: ${this.type ?? "n/a"}`), this.description && e.push(`Description: ${this.description}`), e.push(""), e.push(`Fields (${this.fields.length})`), this.fields.length === 0)
|
|
3579
3690
|
e.push("- none");
|
|
3580
3691
|
else
|
|
@@ -3602,39 +3713,39 @@ class J {
|
|
|
3602
3713
|
`);
|
|
3603
3714
|
}
|
|
3604
3715
|
}
|
|
3605
|
-
function
|
|
3716
|
+
function ie(n) {
|
|
3606
3717
|
return typeof n == "object" && n !== null && !Array.isArray(n);
|
|
3607
3718
|
}
|
|
3608
|
-
function
|
|
3719
|
+
function he(n, e) {
|
|
3609
3720
|
return n === "" ? `/${W(e)}` : `${n}/${W(e)}`;
|
|
3610
3721
|
}
|
|
3611
|
-
function
|
|
3722
|
+
function je(n) {
|
|
3612
3723
|
return Object.keys(n).sort((e, t) => e.localeCompare(t));
|
|
3613
3724
|
}
|
|
3614
|
-
function
|
|
3725
|
+
function ke(n, e) {
|
|
3615
3726
|
if (n === e)
|
|
3616
3727
|
return !0;
|
|
3617
3728
|
if (Array.isArray(n) && Array.isArray(e)) {
|
|
3618
3729
|
if (n.length !== e.length)
|
|
3619
3730
|
return !1;
|
|
3620
3731
|
for (let t = 0; t < n.length; t += 1)
|
|
3621
|
-
if (!
|
|
3732
|
+
if (!ke(n[t], e[t]))
|
|
3622
3733
|
return !1;
|
|
3623
3734
|
return !0;
|
|
3624
3735
|
}
|
|
3625
|
-
if (
|
|
3736
|
+
if (ie(n) && ie(e)) {
|
|
3626
3737
|
const t = Object.keys(n), s = Object.keys(e);
|
|
3627
3738
|
if (t.length !== s.length)
|
|
3628
3739
|
return !1;
|
|
3629
3740
|
for (const r of t)
|
|
3630
|
-
if (!
|
|
3741
|
+
if (!ke(n[r], e[r]))
|
|
3631
3742
|
return !1;
|
|
3632
3743
|
return !0;
|
|
3633
3744
|
}
|
|
3634
3745
|
return !1;
|
|
3635
3746
|
}
|
|
3636
|
-
function
|
|
3637
|
-
if (!
|
|
3747
|
+
function nt(n, e, t, s) {
|
|
3748
|
+
if (!ke(n, e)) {
|
|
3638
3749
|
if (Array.isArray(n) || Array.isArray(e)) {
|
|
3639
3750
|
s.push({
|
|
3640
3751
|
op: "replace",
|
|
@@ -3643,30 +3754,30 @@ function Qe(n, e, t, s) {
|
|
|
3643
3754
|
});
|
|
3644
3755
|
return;
|
|
3645
3756
|
}
|
|
3646
|
-
if (
|
|
3647
|
-
const r = new Set(
|
|
3757
|
+
if (ie(n) && ie(e)) {
|
|
3758
|
+
const r = new Set(je(n)), i = new Set(je(e));
|
|
3648
3759
|
for (const o of [...r].sort(
|
|
3649
|
-
(c,
|
|
3760
|
+
(c, l) => c.localeCompare(l)
|
|
3650
3761
|
))
|
|
3651
3762
|
i.has(o) || s.push({
|
|
3652
3763
|
op: "remove",
|
|
3653
|
-
path:
|
|
3764
|
+
path: he(t, o)
|
|
3654
3765
|
});
|
|
3655
3766
|
for (const o of [...i].sort(
|
|
3656
|
-
(c,
|
|
3767
|
+
(c, l) => c.localeCompare(l)
|
|
3657
3768
|
)) {
|
|
3658
3769
|
if (!r.has(o)) {
|
|
3659
3770
|
s.push({
|
|
3660
3771
|
op: "add",
|
|
3661
|
-
path:
|
|
3772
|
+
path: he(t, o),
|
|
3662
3773
|
val: structuredClone(e[o])
|
|
3663
3774
|
});
|
|
3664
3775
|
continue;
|
|
3665
3776
|
}
|
|
3666
|
-
|
|
3777
|
+
nt(
|
|
3667
3778
|
n[o],
|
|
3668
3779
|
e[o],
|
|
3669
|
-
|
|
3780
|
+
he(t, o),
|
|
3670
3781
|
s
|
|
3671
3782
|
);
|
|
3672
3783
|
}
|
|
@@ -3679,37 +3790,37 @@ function Qe(n, e, t, s) {
|
|
|
3679
3790
|
});
|
|
3680
3791
|
}
|
|
3681
3792
|
}
|
|
3682
|
-
function
|
|
3793
|
+
function st(n, e) {
|
|
3683
3794
|
const t = [];
|
|
3684
|
-
return
|
|
3795
|
+
return nt(n, e, "", t), t;
|
|
3685
3796
|
}
|
|
3686
|
-
function
|
|
3687
|
-
return n instanceof N ?
|
|
3797
|
+
function pe(n) {
|
|
3798
|
+
return n instanceof N ? ae(n) : structuredClone(n);
|
|
3688
3799
|
}
|
|
3689
|
-
function
|
|
3800
|
+
function wn(n) {
|
|
3690
3801
|
for (const e of n)
|
|
3691
3802
|
if (!e.path.startsWith("/"))
|
|
3692
3803
|
throw new Error(
|
|
3693
3804
|
`Invalid patch path '${e.path}'. Root replacement is unsupported.`
|
|
3694
3805
|
);
|
|
3695
3806
|
}
|
|
3696
|
-
function
|
|
3807
|
+
function xe(n) {
|
|
3697
3808
|
return `/contracts/${W(n)}`;
|
|
3698
3809
|
}
|
|
3699
|
-
class
|
|
3810
|
+
class rt {
|
|
3700
3811
|
originalJson;
|
|
3701
3812
|
nextJson;
|
|
3702
3813
|
constructor(e) {
|
|
3703
3814
|
this.originalJson = structuredClone(e), this.nextJson = structuredClone(e);
|
|
3704
3815
|
}
|
|
3705
3816
|
static from(e) {
|
|
3706
|
-
return new
|
|
3817
|
+
return new rt(pe(e));
|
|
3707
3818
|
}
|
|
3708
3819
|
diff(e) {
|
|
3709
|
-
return this.nextJson =
|
|
3820
|
+
return this.nextJson = pe(e), this;
|
|
3710
3821
|
}
|
|
3711
3822
|
mutate(e) {
|
|
3712
|
-
const t =
|
|
3823
|
+
const t = h.from(this.nextJson);
|
|
3713
3824
|
return e(t), this.nextJson = t.buildJson(), this;
|
|
3714
3825
|
}
|
|
3715
3826
|
field(e, t) {
|
|
@@ -3721,23 +3832,23 @@ class Ze {
|
|
|
3721
3832
|
contract(e, t) {
|
|
3722
3833
|
return Z(
|
|
3723
3834
|
this.nextJson,
|
|
3724
|
-
|
|
3835
|
+
xe(e),
|
|
3725
3836
|
structuredClone(t)
|
|
3726
3837
|
), this;
|
|
3727
3838
|
}
|
|
3728
3839
|
removeContract(e) {
|
|
3729
|
-
return H(this.nextJson,
|
|
3840
|
+
return H(this.nextJson, xe(e)), this;
|
|
3730
3841
|
}
|
|
3731
3842
|
build() {
|
|
3732
|
-
const e =
|
|
3733
|
-
return
|
|
3843
|
+
const e = st(this.originalJson, this.nextJson);
|
|
3844
|
+
return wn(e), e;
|
|
3734
3845
|
}
|
|
3735
3846
|
apply(e) {
|
|
3736
3847
|
if (e === void 0)
|
|
3737
3848
|
return this.nextDocumentNode();
|
|
3738
3849
|
if (e instanceof N)
|
|
3739
3850
|
return this.applyTo(e);
|
|
3740
|
-
const t =
|
|
3851
|
+
const t = pe(e);
|
|
3741
3852
|
for (const s of this.build()) {
|
|
3742
3853
|
if (s.op === "remove") {
|
|
3743
3854
|
H(t, s.path);
|
|
@@ -3745,13 +3856,13 @@ class Ze {
|
|
|
3745
3856
|
}
|
|
3746
3857
|
Z(t, s.path, structuredClone(s.val));
|
|
3747
3858
|
}
|
|
3748
|
-
return
|
|
3859
|
+
return re(t);
|
|
3749
3860
|
}
|
|
3750
3861
|
applyTo(e, t = !1) {
|
|
3751
3862
|
const s = this.build();
|
|
3752
3863
|
let r = t ? e : e.clone();
|
|
3753
3864
|
for (const i of s)
|
|
3754
|
-
r =
|
|
3865
|
+
r = ht(
|
|
3755
3866
|
r,
|
|
3756
3867
|
i,
|
|
3757
3868
|
!0
|
|
@@ -3765,49 +3876,49 @@ class Ze {
|
|
|
3765
3876
|
return this.nextDocumentJson();
|
|
3766
3877
|
}
|
|
3767
3878
|
nextDocumentNode() {
|
|
3768
|
-
return
|
|
3879
|
+
return re(this.nextDocumentJson());
|
|
3769
3880
|
}
|
|
3770
3881
|
}
|
|
3771
3882
|
function L(n) {
|
|
3772
|
-
return n instanceof N ?
|
|
3883
|
+
return n instanceof N ? ae(n) : structuredClone(n);
|
|
3773
3884
|
}
|
|
3774
3885
|
function G(n) {
|
|
3775
3886
|
return !n || typeof n != "object" || Array.isArray(n) ? null : n;
|
|
3776
3887
|
}
|
|
3777
|
-
function
|
|
3888
|
+
function Oe(n) {
|
|
3778
3889
|
return Object.keys(n).sort((e, t) => e.localeCompare(t));
|
|
3779
3890
|
}
|
|
3780
|
-
function
|
|
3891
|
+
function oe(n) {
|
|
3781
3892
|
if (Array.isArray(n))
|
|
3782
|
-
return `[${n.map((t) =>
|
|
3893
|
+
return `[${n.map((t) => oe(t)).join(",")}]`;
|
|
3783
3894
|
if (!n || typeof n != "object")
|
|
3784
3895
|
return JSON.stringify(n);
|
|
3785
3896
|
const e = n;
|
|
3786
|
-
return `{${
|
|
3787
|
-
(t) => `${JSON.stringify(t)}:${
|
|
3897
|
+
return `{${Oe(e).map(
|
|
3898
|
+
(t) => `${JSON.stringify(t)}:${oe(e[t])}`
|
|
3788
3899
|
).join(",")}}`;
|
|
3789
3900
|
}
|
|
3790
|
-
function
|
|
3901
|
+
function Ne(n) {
|
|
3791
3902
|
return `/contracts/${W(n)}`;
|
|
3792
3903
|
}
|
|
3793
|
-
function
|
|
3904
|
+
function We(n, e) {
|
|
3794
3905
|
const t = structuredClone(n);
|
|
3795
3906
|
return delete t[e], t;
|
|
3796
3907
|
}
|
|
3797
|
-
function
|
|
3908
|
+
function En(n) {
|
|
3798
3909
|
const e = n.key.toLowerCase(), t = (n.type ?? "").toLowerCase();
|
|
3799
3910
|
return n.kind === "channel" ? "participants" : e.includes("ai") || t.includes("/ai") || e.includes("llm") ? "ai" : t.startsWith("paynote/") ? "paynote" : e.includes("payment") || e.includes("reserve") || e.includes("release") || e.includes("capture") || e.includes("voucher") ? "payments" : n.kind === "operation" || n.kind === "operationImpl" || n.kind === "workflow" || n.kind === "policy" ? "logic" : "misc";
|
|
3800
3911
|
}
|
|
3801
|
-
function
|
|
3802
|
-
return e ?
|
|
3912
|
+
function Vn(n, e) {
|
|
3913
|
+
return e ? En(e) : n.toLowerCase().includes("channel") ? "participants" : "misc";
|
|
3803
3914
|
}
|
|
3804
|
-
function
|
|
3915
|
+
function Le(n) {
|
|
3805
3916
|
const e = {};
|
|
3806
3917
|
for (const t of n)
|
|
3807
3918
|
e[t.key] = t;
|
|
3808
3919
|
return e;
|
|
3809
3920
|
}
|
|
3810
|
-
function
|
|
3921
|
+
function Dn(n, e, t) {
|
|
3811
3922
|
const s = e?.sectionKeys ?? [];
|
|
3812
3923
|
if (s.length > 0)
|
|
3813
3924
|
return [...s].sort(
|
|
@@ -3818,28 +3929,28 @@ function vn(n, e, t) {
|
|
|
3818
3929
|
(i, o) => i.localeCompare(o)
|
|
3819
3930
|
)[0] : t;
|
|
3820
3931
|
}
|
|
3821
|
-
function
|
|
3822
|
-
const t = L(n), s = L(e), r =
|
|
3823
|
-
return
|
|
3932
|
+
function Mn(n, e) {
|
|
3933
|
+
const t = L(n), s = L(e), r = We(t, "contracts"), i = We(s, "contracts");
|
|
3934
|
+
return st(r, i);
|
|
3824
3935
|
}
|
|
3825
|
-
function
|
|
3936
|
+
function $n(n, e) {
|
|
3826
3937
|
const t = L(n), s = L(e), r = G(t.contracts) ?? {}, i = G(s.contracts) ?? {}, o = [
|
|
3827
3938
|
.../* @__PURE__ */ new Set([
|
|
3828
|
-
...
|
|
3829
|
-
...
|
|
3939
|
+
...Oe(r),
|
|
3940
|
+
...Oe(i)
|
|
3830
3941
|
])
|
|
3831
|
-
].sort((
|
|
3832
|
-
for (const
|
|
3942
|
+
].sort((u, a) => u.localeCompare(a)), c = J.from(t), l = J.from(s), p = Le(c.contracts), g = Le(l.contracts), k = [];
|
|
3943
|
+
for (const u of o) {
|
|
3833
3944
|
const a = G(
|
|
3834
|
-
r[
|
|
3945
|
+
r[u]
|
|
3835
3946
|
), d = G(
|
|
3836
|
-
i[
|
|
3837
|
-
), O = p[
|
|
3947
|
+
i[u]
|
|
3948
|
+
), O = p[u], w = g[u], E = Vn(u, w ?? O), b = Dn(O, w, E);
|
|
3838
3949
|
if (!a && d) {
|
|
3839
3950
|
k.push({
|
|
3840
3951
|
op: "add",
|
|
3841
|
-
key:
|
|
3842
|
-
contractKey:
|
|
3952
|
+
key: u,
|
|
3953
|
+
contractKey: u,
|
|
3843
3954
|
bucket: E,
|
|
3844
3955
|
sectionKey: b,
|
|
3845
3956
|
contract: structuredClone(d),
|
|
@@ -3851,8 +3962,8 @@ function kn(n, e) {
|
|
|
3851
3962
|
if (a && !d) {
|
|
3852
3963
|
k.push({
|
|
3853
3964
|
op: "remove",
|
|
3854
|
-
key:
|
|
3855
|
-
contractKey:
|
|
3965
|
+
key: u,
|
|
3966
|
+
contractKey: u,
|
|
3856
3967
|
bucket: E,
|
|
3857
3968
|
sectionKey: b,
|
|
3858
3969
|
contract: structuredClone(a),
|
|
@@ -3861,10 +3972,10 @@ function kn(n, e) {
|
|
|
3861
3972
|
});
|
|
3862
3973
|
continue;
|
|
3863
3974
|
}
|
|
3864
|
-
!a || !d ||
|
|
3975
|
+
!a || !d || oe(a) !== oe(d) && k.push({
|
|
3865
3976
|
op: "replace",
|
|
3866
|
-
key:
|
|
3867
|
-
contractKey:
|
|
3977
|
+
key: u,
|
|
3978
|
+
contractKey: u,
|
|
3868
3979
|
bucket: E,
|
|
3869
3980
|
sectionKey: b,
|
|
3870
3981
|
contract: structuredClone(d),
|
|
@@ -3874,16 +3985,16 @@ function kn(n, e) {
|
|
|
3874
3985
|
afterFingerprint: w?.fingerprint
|
|
3875
3986
|
});
|
|
3876
3987
|
}
|
|
3877
|
-
return k.sort((
|
|
3878
|
-
if (
|
|
3879
|
-
return
|
|
3880
|
-
if (
|
|
3881
|
-
return
|
|
3988
|
+
return k.sort((u, a) => {
|
|
3989
|
+
if (u.sectionKey !== a.sectionKey)
|
|
3990
|
+
return u.sectionKey.localeCompare(a.sectionKey);
|
|
3991
|
+
if (u.contractKey !== a.contractKey)
|
|
3992
|
+
return u.contractKey.localeCompare(a.contractKey);
|
|
3882
3993
|
const d = { remove: 1, add: 2, replace: 3 };
|
|
3883
|
-
return d[
|
|
3994
|
+
return d[u.op] - d[a.op];
|
|
3884
3995
|
});
|
|
3885
3996
|
}
|
|
3886
|
-
function
|
|
3997
|
+
function Bn(n) {
|
|
3887
3998
|
const e = {};
|
|
3888
3999
|
for (const t of n)
|
|
3889
4000
|
e[t.sectionKey] || (e[t.sectionKey] = []), e[t.sectionKey]?.push(t);
|
|
@@ -3904,7 +4015,7 @@ function On(n) {
|
|
|
3904
4015
|
};
|
|
3905
4016
|
});
|
|
3906
4017
|
}
|
|
3907
|
-
function
|
|
4018
|
+
function jn(n) {
|
|
3908
4019
|
const e = /* @__PURE__ */ new Map();
|
|
3909
4020
|
for (const t of n) {
|
|
3910
4021
|
const s = t.sectionKey !== t.bucket, r = s ? `section:${t.sectionKey}` : `bucket:${t.bucket}`, i = e.get(r);
|
|
@@ -3926,39 +4037,39 @@ function bn(n) {
|
|
|
3926
4037
|
)
|
|
3927
4038
|
})).sort((t, s) => t.key.localeCompare(s.key));
|
|
3928
4039
|
}
|
|
3929
|
-
function
|
|
4040
|
+
function xn(n, e) {
|
|
3930
4041
|
const t = [];
|
|
3931
4042
|
return n.length > 0 && t.push("Root-field changes are emitted as generic patch operations."), e.length > 0 && t.push("Contract changes are emitted as whole-contract atomic units."), t;
|
|
3932
4043
|
}
|
|
3933
|
-
function
|
|
3934
|
-
const r = L(n), i = L(e), o = !!G(r.contracts), c = !!G(i.contracts),
|
|
3935
|
-
(
|
|
4044
|
+
function Nn(n, e, t, s) {
|
|
4045
|
+
const r = L(n), i = L(e), o = !!G(r.contracts), c = !!G(i.contracts), l = [...t], p = s.filter(
|
|
4046
|
+
(u) => u.op === "add" || u.op === "replace"
|
|
3936
4047
|
);
|
|
3937
|
-
!o && c &&
|
|
4048
|
+
!o && c && l.push({
|
|
3938
4049
|
op: "add",
|
|
3939
4050
|
path: "/contracts",
|
|
3940
4051
|
val: {}
|
|
3941
4052
|
});
|
|
3942
|
-
const g = s.filter((
|
|
3943
|
-
for (const
|
|
3944
|
-
|
|
4053
|
+
const g = s.filter((u) => u.op === "remove").sort((u, a) => u.contractKey.localeCompare(a.contractKey));
|
|
4054
|
+
for (const u of g)
|
|
4055
|
+
l.push({
|
|
3945
4056
|
op: "remove",
|
|
3946
|
-
path:
|
|
4057
|
+
path: Ne(u.contractKey)
|
|
3947
4058
|
});
|
|
3948
|
-
o && !c && p.length === 0 &&
|
|
4059
|
+
o && !c && p.length === 0 && l.push({
|
|
3949
4060
|
op: "remove",
|
|
3950
4061
|
path: "/contracts"
|
|
3951
4062
|
});
|
|
3952
|
-
const k = s.filter((
|
|
3953
|
-
for (const
|
|
3954
|
-
const a =
|
|
3955
|
-
|
|
3956
|
-
op:
|
|
4063
|
+
const k = s.filter((u) => u.op !== "remove").sort((u, a) => u.contractKey.localeCompare(a.contractKey));
|
|
4064
|
+
for (const u of k) {
|
|
4065
|
+
const a = Ne(u.contractKey);
|
|
4066
|
+
l.push({
|
|
4067
|
+
op: u.op,
|
|
3957
4068
|
path: a,
|
|
3958
|
-
val: structuredClone(
|
|
4069
|
+
val: structuredClone(u.after ?? {})
|
|
3959
4070
|
});
|
|
3960
4071
|
}
|
|
3961
|
-
return
|
|
4072
|
+
return l;
|
|
3962
4073
|
}
|
|
3963
4074
|
function q(n) {
|
|
3964
4075
|
return {
|
|
@@ -3974,20 +4085,20 @@ function ne(n) {
|
|
|
3974
4085
|
val: structuredClone(n.val)
|
|
3975
4086
|
};
|
|
3976
4087
|
}
|
|
3977
|
-
function
|
|
4088
|
+
function Ue(n) {
|
|
3978
4089
|
return {
|
|
3979
4090
|
sectionKey: n.sectionKey,
|
|
3980
4091
|
contractKeys: [...n.contractKeys],
|
|
3981
4092
|
changes: n.changes.map(q)
|
|
3982
4093
|
};
|
|
3983
4094
|
}
|
|
3984
|
-
function
|
|
4095
|
+
function Fe(n) {
|
|
3985
4096
|
return {
|
|
3986
4097
|
...n,
|
|
3987
4098
|
changes: n.changes.map(q)
|
|
3988
4099
|
};
|
|
3989
4100
|
}
|
|
3990
|
-
class
|
|
4101
|
+
class Wn {
|
|
3991
4102
|
rootChanges;
|
|
3992
4103
|
contractChanges;
|
|
3993
4104
|
sectionChanges;
|
|
@@ -3998,18 +4109,18 @@ class qn {
|
|
|
3998
4109
|
groups;
|
|
3999
4110
|
notes;
|
|
4000
4111
|
constructor(e) {
|
|
4001
|
-
this.rootChanges = e.rootChanges.map(ne), this.contractChanges = e.contractChanges.map(q), this.sectionChanges = e.sectionChanges.map(
|
|
4112
|
+
this.rootChanges = e.rootChanges.map(ne), this.contractChanges = e.contractChanges.map(q), this.sectionChanges = e.sectionChanges.map(Ue), this.patchOperations = e.patchOperations.map(ne), this.contractAdds = e.contractAdds.map(q), this.contractReplacements = e.contractReplacements.map(q), this.contractRemovals = e.contractRemovals.map(q), this.groups = e.groups.map(Fe), this.notes = [...e.notes];
|
|
4002
4113
|
}
|
|
4003
4114
|
toSummaryJson() {
|
|
4004
4115
|
return {
|
|
4005
4116
|
rootChanges: this.rootChanges.map(ne),
|
|
4006
4117
|
contractChanges: this.contractChanges.map(q),
|
|
4007
|
-
sectionChanges: this.sectionChanges.map(
|
|
4118
|
+
sectionChanges: this.sectionChanges.map(Ue),
|
|
4008
4119
|
patchOperations: this.patchOperations.map(ne),
|
|
4009
4120
|
contractAdds: this.contractAdds.map(q),
|
|
4010
4121
|
contractReplacements: this.contractReplacements.map(q),
|
|
4011
4122
|
contractRemovals: this.contractRemovals.map(q),
|
|
4012
|
-
groups: this.groups.map(
|
|
4123
|
+
groups: this.groups.map(Fe),
|
|
4013
4124
|
notes: [...this.notes]
|
|
4014
4125
|
};
|
|
4015
4126
|
}
|
|
@@ -4039,7 +4150,7 @@ class qn {
|
|
|
4039
4150
|
`);
|
|
4040
4151
|
}
|
|
4041
4152
|
}
|
|
4042
|
-
function
|
|
4153
|
+
function ks(n, e) {
|
|
4043
4154
|
const t = L(n);
|
|
4044
4155
|
for (const s of e.patchOperations) {
|
|
4045
4156
|
if (s.op === "remove") {
|
|
@@ -4050,31 +4161,31 @@ function as(n, e) {
|
|
|
4050
4161
|
}
|
|
4051
4162
|
return t;
|
|
4052
4163
|
}
|
|
4053
|
-
class
|
|
4164
|
+
class Os {
|
|
4054
4165
|
static compile(e, t) {
|
|
4055
|
-
const s =
|
|
4166
|
+
const s = Mn(e, t), r = $n(
|
|
4056
4167
|
e,
|
|
4057
4168
|
t
|
|
4058
|
-
), i =
|
|
4059
|
-
(
|
|
4169
|
+
), i = Bn(r), o = r.filter(
|
|
4170
|
+
(u) => u.op === "add"
|
|
4060
4171
|
), c = r.filter(
|
|
4061
|
-
(
|
|
4062
|
-
),
|
|
4063
|
-
(
|
|
4064
|
-
), p =
|
|
4172
|
+
(u) => u.op === "replace"
|
|
4173
|
+
), l = r.filter(
|
|
4174
|
+
(u) => u.op === "remove"
|
|
4175
|
+
), p = jn(r), g = xn(s, r), k = Nn(
|
|
4065
4176
|
e,
|
|
4066
4177
|
t,
|
|
4067
4178
|
s,
|
|
4068
4179
|
r
|
|
4069
4180
|
);
|
|
4070
|
-
return new
|
|
4181
|
+
return new Wn({
|
|
4071
4182
|
rootChanges: s,
|
|
4072
4183
|
contractChanges: r,
|
|
4073
4184
|
sectionChanges: i,
|
|
4074
4185
|
patchOperations: k,
|
|
4075
4186
|
contractAdds: o,
|
|
4076
4187
|
contractReplacements: c,
|
|
4077
|
-
contractRemovals:
|
|
4188
|
+
contractRemovals: l,
|
|
4078
4189
|
groups: p,
|
|
4079
4190
|
notes: g
|
|
4080
4191
|
});
|
|
@@ -4083,20 +4194,20 @@ class cs {
|
|
|
4083
4194
|
function se(n) {
|
|
4084
4195
|
return m(n).replace(/[^A-Za-z0-9]+/gu, " ").trim().replace(/\s+/gu, "");
|
|
4085
4196
|
}
|
|
4086
|
-
function
|
|
4197
|
+
function Ln(n) {
|
|
4087
4198
|
const e = Number(n);
|
|
4088
4199
|
if (Number.isNaN(e))
|
|
4089
4200
|
throw new Error(`invalid major amount: ${n}`);
|
|
4090
4201
|
return Math.round(e * 100);
|
|
4091
4202
|
}
|
|
4092
4203
|
function T(n, e) {
|
|
4093
|
-
const t = (s) => (
|
|
4204
|
+
const t = (s) => (Ze(
|
|
4094
4205
|
s,
|
|
4095
4206
|
`payNotes.${n}().${e} helper`
|
|
4096
4207
|
), s);
|
|
4097
4208
|
return t(n === "capture" ? e === "lock" ? "PayNote/Card Transaction Capture Lock Requested" : e === "unlock" ? "PayNote/Card Transaction Capture Unlock Requested" : "PayNote/Capture Funds Requested" : n === "reserve" ? e === "lock" ? "PayNote/Reserve Lock Requested" : e === "unlock" ? "PayNote/Reserve Unlock Requested" : "PayNote/Reserve Funds Requested" : e === "lock" ? "PayNote/Reservation Release Lock Requested" : e === "unlock" ? "PayNote/Reservation Release Unlock Requested" : "PayNote/Reservation Release Requested");
|
|
4098
4209
|
}
|
|
4099
|
-
class
|
|
4210
|
+
class de {
|
|
4100
4211
|
constructor(e, t) {
|
|
4101
4212
|
this.parent = e, this.mode = t;
|
|
4102
4213
|
}
|
|
@@ -4119,7 +4230,7 @@ class me {
|
|
|
4119
4230
|
`${this.mode}RequestOnInit`,
|
|
4120
4231
|
(e) => e.triggerEvent("Request", {
|
|
4121
4232
|
type: T(this.mode, "request"),
|
|
4122
|
-
amount: "
|
|
4233
|
+
amount: h.expr("document('/amount/total')")
|
|
4123
4234
|
})
|
|
4124
4235
|
), this;
|
|
4125
4236
|
}
|
|
@@ -4131,7 +4242,7 @@ class me {
|
|
|
4131
4242
|
r,
|
|
4132
4243
|
{
|
|
4133
4244
|
type: T(this.mode, "request"),
|
|
4134
|
-
amount:
|
|
4245
|
+
amount: h.expr(s)
|
|
4135
4246
|
}
|
|
4136
4247
|
), this;
|
|
4137
4248
|
}
|
|
@@ -4155,7 +4266,7 @@ class me {
|
|
|
4155
4266
|
s,
|
|
4156
4267
|
{
|
|
4157
4268
|
type: T(this.mode, "request"),
|
|
4158
|
-
amount: "
|
|
4269
|
+
amount: h.expr("document('/amount/total')")
|
|
4159
4270
|
},
|
|
4160
4271
|
r
|
|
4161
4272
|
), this;
|
|
@@ -4173,7 +4284,7 @@ class me {
|
|
|
4173
4284
|
e,
|
|
4174
4285
|
(t) => t.triggerEvent("Request", {
|
|
4175
4286
|
type: T(this.mode, "request"),
|
|
4176
|
-
amount: "
|
|
4287
|
+
amount: h.expr("document('/amount/total')")
|
|
4177
4288
|
})
|
|
4178
4289
|
), this;
|
|
4179
4290
|
}
|
|
@@ -4184,7 +4295,7 @@ class me {
|
|
|
4184
4295
|
e,
|
|
4185
4296
|
(s) => s.triggerEvent("Request", {
|
|
4186
4297
|
type: T(this.mode, "request"),
|
|
4187
|
-
amount: "
|
|
4298
|
+
amount: h.expr("document('/amount/total')")
|
|
4188
4299
|
})
|
|
4189
4300
|
), this;
|
|
4190
4301
|
}
|
|
@@ -4192,7 +4303,7 @@ class me {
|
|
|
4192
4303
|
return this.parent;
|
|
4193
4304
|
}
|
|
4194
4305
|
}
|
|
4195
|
-
class
|
|
4306
|
+
class qe extends h {
|
|
4196
4307
|
constructor(e) {
|
|
4197
4308
|
super(), this.name(e).type("PayNote/PayNote"), this.channel("payerChannel", {
|
|
4198
4309
|
type: "MyOS/MyOS Timeline Channel"
|
|
@@ -4203,7 +4314,7 @@ class Ie extends u {
|
|
|
4203
4314
|
});
|
|
4204
4315
|
}
|
|
4205
4316
|
static create(e) {
|
|
4206
|
-
return new
|
|
4317
|
+
return new qe(e);
|
|
4207
4318
|
}
|
|
4208
4319
|
currency(e) {
|
|
4209
4320
|
return this.field("/currency", e), this;
|
|
@@ -4212,36 +4323,36 @@ class Ie extends u {
|
|
|
4212
4323
|
return this.field("/amount/total", e), this;
|
|
4213
4324
|
}
|
|
4214
4325
|
amountMajor(e) {
|
|
4215
|
-
return this.field("/amount/total",
|
|
4326
|
+
return this.field("/amount/total", Ln(e)), this;
|
|
4216
4327
|
}
|
|
4217
4328
|
capture() {
|
|
4218
|
-
return new
|
|
4329
|
+
return new de(this, "capture");
|
|
4219
4330
|
}
|
|
4220
4331
|
reserve() {
|
|
4221
|
-
return new
|
|
4332
|
+
return new de(this, "reserve");
|
|
4222
4333
|
}
|
|
4223
4334
|
release() {
|
|
4224
|
-
return new
|
|
4335
|
+
return new de(this, "release");
|
|
4225
4336
|
}
|
|
4226
4337
|
operationTrigger(e, t, s, r, i, o) {
|
|
4227
4338
|
const c = this.operation(e).channel(t);
|
|
4228
|
-
r && c.description(r), s && c.request(s), c.steps((
|
|
4229
|
-
|
|
4339
|
+
r && c.description(r), s && c.request(s), c.steps((l) => {
|
|
4340
|
+
l.triggerEvent("Trigger", i), o?.(l);
|
|
4230
4341
|
}).done();
|
|
4231
4342
|
}
|
|
4232
4343
|
}
|
|
4233
4344
|
class I {
|
|
4234
4345
|
static payNote(e) {
|
|
4235
|
-
return
|
|
4346
|
+
return qe.create(e);
|
|
4236
4347
|
}
|
|
4237
4348
|
}
|
|
4238
|
-
function
|
|
4349
|
+
function Un() {
|
|
4239
4350
|
return y.doc().name("Simple Permission Agent").description("Requests read access to provider session on init.").channel("ownerChannel").myOsAdmin("myOsAdminChannel").field("/providerSessionId", "session-abc-123").onInit(
|
|
4240
4351
|
"requestProviderAccess",
|
|
4241
4352
|
(n) => n.myOs().requestSingleDocPermission(
|
|
4242
4353
|
"ownerChannel",
|
|
4243
4354
|
"REQ_PROVIDER",
|
|
4244
|
-
|
|
4355
|
+
h.expr("document('/providerSessionId')"),
|
|
4245
4356
|
{ read: !0, singleOps: ["getStatus"] }
|
|
4246
4357
|
)
|
|
4247
4358
|
).onMyOsResponse(
|
|
@@ -4249,12 +4360,12 @@ function Rn() {
|
|
|
4249
4360
|
"MyOS/Single Document Permission Granted",
|
|
4250
4361
|
"REQ_PROVIDER",
|
|
4251
4362
|
(n) => n.myOs().subscribeToSession(
|
|
4252
|
-
|
|
4363
|
+
h.expr("document('/providerSessionId')"),
|
|
4253
4364
|
"SUB_PROVIDER"
|
|
4254
4365
|
).replaceValue("MarkReady", "/status", "ready")
|
|
4255
4366
|
).buildDocument();
|
|
4256
4367
|
}
|
|
4257
|
-
function
|
|
4368
|
+
function Fn() {
|
|
4258
4369
|
return y.doc().name("Collaboration Setup Agent").description("Adds Bob as participant and marks setup progress.").channel("aliceChannel").myOsAdmin("myOsAdminChannel").onInit(
|
|
4259
4370
|
"addBob",
|
|
4260
4371
|
(n) => n.myOs().addParticipant("bobChannel", "bob@gmail.com")
|
|
@@ -4268,13 +4379,13 @@ function Tn() {
|
|
|
4268
4379
|
(n) => n.replaceValue("Activate", "/status", "active")
|
|
4269
4380
|
).buildDocument();
|
|
4270
4381
|
}
|
|
4271
|
-
function
|
|
4382
|
+
function _n() {
|
|
4272
4383
|
return y.doc().name("Remote Operation Caller").description("Calls operation on linked session when /trigger changes.").channel("ownerChannel").myOsAdmin("myOsAdminChannel").field("/linkedSessionId", "session-xyz-789").onDocChange(
|
|
4273
4384
|
"onTriggerChanged",
|
|
4274
4385
|
"/trigger",
|
|
4275
4386
|
(n) => n.myOs().callOperation(
|
|
4276
4387
|
"ownerChannel",
|
|
4277
|
-
|
|
4388
|
+
h.expr("document('/linkedSessionId')"),
|
|
4278
4389
|
"processData"
|
|
4279
4390
|
)
|
|
4280
4391
|
).onEvent(
|
|
@@ -4283,18 +4394,18 @@ function wn() {
|
|
|
4283
4394
|
(n) => n.replaceValue("MarkQueued", "/remoteCallStatus", "queued")
|
|
4284
4395
|
).buildDocument();
|
|
4285
4396
|
}
|
|
4286
|
-
function
|
|
4397
|
+
function Kn() {
|
|
4287
4398
|
return y.doc().name("CV Classifier Agent").description("Classifies linked CVs via llm-provider.").channel("recruitmentChannel").myOsAdmin("myOsAdminChannel").field("/llmProviderSessionId", "session-llm-001").field("/recruitmentSessionId", "session-recruitment-001").field("/cvSubscriptionId", "SUB_CV_UPDATES").onInit(
|
|
4288
4399
|
"requestAccess",
|
|
4289
4400
|
(n) => n.myOs().requestSingleDocPermission(
|
|
4290
4401
|
"recruitmentChannel",
|
|
4291
4402
|
"REQ_RECRUITMENT_PROVIDER",
|
|
4292
|
-
|
|
4403
|
+
h.expr("document('/llmProviderSessionId')"),
|
|
4293
4404
|
{ read: !0, singleOps: ["provideInstructions"] }
|
|
4294
4405
|
).myOs().requestLinkedDocsPermission(
|
|
4295
4406
|
"recruitmentChannel",
|
|
4296
4407
|
"REQ_RECRUITMENT_CVS",
|
|
4297
|
-
|
|
4408
|
+
h.expr("document('/recruitmentSessionId')"),
|
|
4298
4409
|
{ cvs: { read: !0, allOps: !0 } }
|
|
4299
4410
|
)
|
|
4300
4411
|
).onMyOsResponse(
|
|
@@ -4302,20 +4413,20 @@ function En() {
|
|
|
4302
4413
|
"MyOS/Single Document Permission Granted",
|
|
4303
4414
|
"REQ_RECRUITMENT_PROVIDER",
|
|
4304
4415
|
(n) => n.myOs().subscribeToSession(
|
|
4305
|
-
|
|
4416
|
+
h.expr("document('/llmProviderSessionId')"),
|
|
4306
4417
|
"SUB_RECRUITMENT_PROVIDER"
|
|
4307
4418
|
)
|
|
4308
4419
|
).buildDocument();
|
|
4309
4420
|
}
|
|
4310
|
-
function
|
|
4311
|
-
return
|
|
4421
|
+
function Gn() {
|
|
4422
|
+
return h.doc().name("Procurement Orchestrator").description(
|
|
4312
4423
|
"Accesses catalog data and starts worker sessions through agency."
|
|
4313
|
-
).section("participants", "Participants", "User-facing channels").channel("userChannel").endSection().section("state", "State", "Session references and tracking").field("/catalogSessionId", "session-catalog-001").field("/plannerSessionId", "session-planner-001").field("/currentTask", "").field("/negotiations/count", 0).endSection().section("capabilities", "Capabilities", "Access + AI + agency").access("catalog").targetSessionId(
|
|
4424
|
+
).section("participants", "Participants", "User-facing channels").channel("userChannel").endSection().section("state", "State", "Session references and tracking").field("/catalogSessionId", "session-catalog-001").field("/plannerSessionId", "session-planner-001").field("/currentTask", "").field("/negotiations/count", 0).endSection().section("capabilities", "Capabilities", "Access + AI + agency").access("catalog").targetSessionId("session-catalog-001").onBehalfOf("userChannel").read(!0).operations("search", "getDetails").requestPermissionOnInit().subscribeAfterGranted().statusPath("/catalog/status").done().ai("planner").sessionId("session-planner-001").permissionFrom("userChannel").task("findBestDeal").instruction("Find the best deal across catalog results.").expects("Conversation/Event").done().done().agency("procurement").onBehalfOf("userChannel").allowedTypes("MyOS/MyOS Admin Base").allowedOperations("proposeOffer", "accept", "reject").requestPermissionOnInit().statusPath("/agency/status").done().endSection().section("workflow", "Workflow", "Find, analyze, negotiate").operation("findAndBuy").channel("userChannel").requestType(String).description("Find and buy a product").steps(
|
|
4314
4425
|
(n) => n.replaceExpression("SaveTask", "/currentTask", "event.message.request").myOs().callOperation(
|
|
4315
4426
|
"userChannel",
|
|
4316
|
-
|
|
4427
|
+
h.expr("document('/catalogSessionId')"),
|
|
4317
4428
|
"search",
|
|
4318
|
-
|
|
4429
|
+
h.expr("event.message.request")
|
|
4319
4430
|
)
|
|
4320
4431
|
).done().onCallResponse(
|
|
4321
4432
|
"catalog",
|
|
@@ -4335,7 +4446,7 @@ function Vn() {
|
|
|
4335
4446
|
"deal-found",
|
|
4336
4447
|
(n) => n.replaceExpression("SaveDeal", "/lastDeal", "event.update.payload").viaAgency("procurement").startSessionWith(
|
|
4337
4448
|
"userChannel",
|
|
4338
|
-
|
|
4449
|
+
h.doc().name("Auto-Purchase").channel("buyerChannel").channel("sellerChannel").field("/maxPrice", h.expr("event.update.payload.price")).buildJson(),
|
|
4339
4450
|
(e) => e.bind("sellerChannel", {
|
|
4340
4451
|
accountId: "event.update.payload.vendorEmail"
|
|
4341
4452
|
}).bind("buyerChannel", { accountId: "userChannel" }),
|
|
@@ -4351,20 +4462,20 @@ function Vn() {
|
|
|
4351
4462
|
)
|
|
4352
4463
|
).endSection().buildDocument();
|
|
4353
4464
|
}
|
|
4354
|
-
function
|
|
4355
|
-
return
|
|
4465
|
+
function Jn() {
|
|
4466
|
+
return h.doc().name("Linked Access Monitor").channel("ownerChannel").field("/projectSessionId", "session-project-99").accessLinked("projectData").targetSessionId("session-project-99").onBehalfOf("ownerChannel").link("invoices").read(!0).operations("list", "get").done().link("shipments").read(!0).operations("track").done().statusPath("/projectData/status").done().onLinkedAccessGranted(
|
|
4356
4467
|
"projectData",
|
|
4357
4468
|
"onLinkedGranted",
|
|
4358
4469
|
(n) => n.replaceValue("MarkReady", "/projectData/ready", !0)
|
|
4359
4470
|
).buildDocument();
|
|
4360
4471
|
}
|
|
4361
|
-
function
|
|
4472
|
+
function zn() {
|
|
4362
4473
|
return y.doc().name("Weather Monitor Agent").description("Requests access and subscribes to a provider session.").channel("ownerChannel").myOsAdmin("myOsAdminChannel").field("/weatherSessionId", "session-weather-prod").field("/status", "initializing").onInit(
|
|
4363
4474
|
"requestWeatherAccess",
|
|
4364
4475
|
(n) => n.myOs().requestSingleDocPermission(
|
|
4365
4476
|
"ownerChannel",
|
|
4366
4477
|
"REQ_WEATHER",
|
|
4367
|
-
|
|
4478
|
+
h.expr("document('/weatherSessionId')"),
|
|
4368
4479
|
{ read: !0 }
|
|
4369
4480
|
)
|
|
4370
4481
|
).onMyOsResponse(
|
|
@@ -4372,7 +4483,7 @@ function Mn() {
|
|
|
4372
4483
|
"MyOS/Single Document Permission Granted",
|
|
4373
4484
|
"REQ_WEATHER",
|
|
4374
4485
|
(n) => n.myOs().subscribeToSession(
|
|
4375
|
-
|
|
4486
|
+
h.expr("document('/weatherSessionId')"),
|
|
4376
4487
|
"SUB_WEATHER"
|
|
4377
4488
|
).replaceValue("MarkSubscribing", "/status", "subscribing")
|
|
4378
4489
|
).onSubscriptionUpdate(
|
|
@@ -4382,13 +4493,13 @@ function Mn() {
|
|
|
4382
4493
|
(n) => n.replaceValue("MarkReady", "/status", "monitoring")
|
|
4383
4494
|
).buildDocument();
|
|
4384
4495
|
}
|
|
4385
|
-
function
|
|
4496
|
+
function Qn() {
|
|
4386
4497
|
return y.doc().name("Data Analyzer Agent").description("Calls a provider operation after permission is granted.").channel("ownerChannel").myOsAdmin("myOsAdminChannel").field("/llmSessionId", "session-llm-prod").field("/analysisStatus", "idle").onInit(
|
|
4387
4498
|
"requestLlmAccess",
|
|
4388
4499
|
(n) => n.myOs().requestSingleDocPermission(
|
|
4389
4500
|
"ownerChannel",
|
|
4390
4501
|
"REQ_LLM",
|
|
4391
|
-
|
|
4502
|
+
h.expr("document('/llmSessionId')"),
|
|
4392
4503
|
{ read: !0, singleOps: ["provideInstructions"] }
|
|
4393
4504
|
)
|
|
4394
4505
|
).onMyOsResponse(
|
|
@@ -4396,13 +4507,13 @@ function $n() {
|
|
|
4396
4507
|
"MyOS/Single Document Permission Granted",
|
|
4397
4508
|
"REQ_LLM",
|
|
4398
4509
|
(n) => n.myOs().subscribeToSession(
|
|
4399
|
-
|
|
4510
|
+
h.expr("document('/llmSessionId')"),
|
|
4400
4511
|
"SUB_LLM_PROVIDER"
|
|
4401
4512
|
)
|
|
4402
4513
|
).operation("analyze").channel("ownerChannel").description("Analyze input with remote provider.").steps(
|
|
4403
4514
|
(n) => n.replaceValue("MarkAnalyzing", "/analysisStatus", "analyzing").myOs().callOperation(
|
|
4404
4515
|
"ownerChannel",
|
|
4405
|
-
|
|
4516
|
+
h.expr("document('/llmSessionId')"),
|
|
4406
4517
|
"provideInstructions",
|
|
4407
4518
|
{
|
|
4408
4519
|
requestId: "REQ_ANALYZE_001",
|
|
@@ -4420,7 +4531,7 @@ function $n() {
|
|
|
4420
4531
|
(n) => n.replaceValue("MarkFailed", "/analysisStatus", "failed")
|
|
4421
4532
|
).buildDocument();
|
|
4422
4533
|
}
|
|
4423
|
-
function
|
|
4534
|
+
function Yn() {
|
|
4424
4535
|
return y.doc().name("Team Setup Agent").description("Adds participants and marks setup progress.").channel("managerChannel").myOsAdmin("myOsAdminChannel").field("/status", "setting-up").onInit(
|
|
4425
4536
|
"addTeamMembers",
|
|
4426
4537
|
(n) => n.myOs().addParticipant("aliceChannel", "alice@company.com").myOs().addParticipant("bobChannel", "bob@company.com")
|
|
@@ -4438,13 +4549,13 @@ function xn() {
|
|
|
4438
4549
|
(n) => n.replaceValue("MarkReady", "/status", "ready")
|
|
4439
4550
|
).buildDocument();
|
|
4440
4551
|
}
|
|
4441
|
-
function
|
|
4552
|
+
function Zn() {
|
|
4442
4553
|
return y.doc().name("Invoice Monitor Agent").description("Requests linked-docs permission and tracks invoice totals.").channel("accountingChannel").myOsAdmin("myOsAdminChannel").field("/projectSessionId", "session-project-42").field("/invoiceSubscriptionId", "SUB_INVOICES").field("/totalInvoiced", 0).onInit(
|
|
4443
4554
|
"requestInvoiceAccess",
|
|
4444
4555
|
(n) => n.myOs().requestLinkedDocsPermission(
|
|
4445
4556
|
"accountingChannel",
|
|
4446
4557
|
"REQ_INVOICES",
|
|
4447
|
-
|
|
4558
|
+
h.expr("document('/projectSessionId')"),
|
|
4448
4559
|
{ invoices: { read: !0, allOps: !0 } }
|
|
4449
4560
|
)
|
|
4450
4561
|
).onMyOsResponse(
|
|
@@ -4452,22 +4563,24 @@ function Bn() {
|
|
|
4452
4563
|
"MyOS/Linked Documents Permission Granted",
|
|
4453
4564
|
"REQ_INVOICES",
|
|
4454
4565
|
(n) => n.myOs().subscribeToSession(
|
|
4455
|
-
|
|
4456
|
-
|
|
4566
|
+
h.expr("event.targetSessionId"),
|
|
4567
|
+
"SUB_INVOICES"
|
|
4457
4568
|
)
|
|
4458
4569
|
).onSubscriptionUpdate(
|
|
4459
4570
|
"onInvoiceUpdate",
|
|
4460
4571
|
"SUB_INVOICES",
|
|
4461
|
-
(n) => n.
|
|
4462
|
-
"ProcessInvoiceUpdate",
|
|
4463
|
-
"const amount = Number(event.update?.amount ?? 0); const current = Number(document('/totalInvoiced') ?? 0); return { changeset: [{ op:'replace', path:'/totalInvoiced', val: current + amount }] };"
|
|
4464
|
-
).updateDocumentFromExpression(
|
|
4572
|
+
(n) => n.updateDocument(
|
|
4465
4573
|
"PersistInvoiceTotal",
|
|
4466
|
-
|
|
4574
|
+
(e) => e.replaceValue("/totalInvoiced", {
|
|
4575
|
+
$add: [
|
|
4576
|
+
{ $number: { $coalesce: [{ $event: "/update/amount" }, 0] } },
|
|
4577
|
+
{ $number: { $coalesce: [{ $document: "/totalInvoiced" }, 0] } }
|
|
4578
|
+
]
|
|
4579
|
+
})
|
|
4467
4580
|
)
|
|
4468
4581
|
).buildDocument();
|
|
4469
4582
|
}
|
|
4470
|
-
function
|
|
4583
|
+
function Hn() {
|
|
4471
4584
|
return y.doc().name("Recruitment Classifier").description(
|
|
4472
4585
|
"Requests access, subscribes, and invokes provider classification."
|
|
4473
4586
|
).channel("recruitmentChannel").myOsAdmin("myOsAdminChannel").field("/recruitmentSessionId", "session-recruitment-001").field("/llmProviderSessionId", "session-llm-001").field("/cvSubscriptionId", "SUB_RECRUITMENT_CVS").onInit(
|
|
@@ -4475,12 +4588,12 @@ function jn() {
|
|
|
4475
4588
|
(n) => n.myOs().requestSingleDocPermission(
|
|
4476
4589
|
"recruitmentChannel",
|
|
4477
4590
|
"REQ_RECRUITMENT_PROVIDER",
|
|
4478
|
-
|
|
4591
|
+
h.expr("document('/llmProviderSessionId')"),
|
|
4479
4592
|
{ read: !0, singleOps: ["provideInstructions"] }
|
|
4480
4593
|
).myOs().requestLinkedDocsPermission(
|
|
4481
4594
|
"recruitmentChannel",
|
|
4482
4595
|
"REQ_RECRUITMENT_CVS",
|
|
4483
|
-
|
|
4596
|
+
h.expr("document('/recruitmentSessionId')"),
|
|
4484
4597
|
{ cvs: { read: !0, allOps: !0 } }
|
|
4485
4598
|
)
|
|
4486
4599
|
).onMyOsResponse(
|
|
@@ -4488,15 +4601,15 @@ function jn() {
|
|
|
4488
4601
|
"MyOS/Linked Documents Permission Granted",
|
|
4489
4602
|
"REQ_RECRUITMENT_CVS",
|
|
4490
4603
|
(n) => n.myOs().subscribeToSession(
|
|
4491
|
-
|
|
4492
|
-
|
|
4604
|
+
h.expr("event.targetSessionId"),
|
|
4605
|
+
"SUB_CVS"
|
|
4493
4606
|
)
|
|
4494
4607
|
).onMyOsResponse(
|
|
4495
4608
|
"onLlmProviderAccessGranted",
|
|
4496
4609
|
"MyOS/Single Document Permission Granted",
|
|
4497
4610
|
"REQ_RECRUITMENT_PROVIDER",
|
|
4498
4611
|
(n) => n.myOs().subscribeToSession(
|
|
4499
|
-
|
|
4612
|
+
h.expr("document('/llmProviderSessionId')"),
|
|
4500
4613
|
"SUB_RECRUITMENT_PROVIDER"
|
|
4501
4614
|
)
|
|
4502
4615
|
).onSubscriptionUpdate(
|
|
@@ -4504,7 +4617,7 @@ function jn() {
|
|
|
4504
4617
|
"SUB_RECRUITMENT_CVS",
|
|
4505
4618
|
(n) => n.myOs().callOperation(
|
|
4506
4619
|
"recruitmentChannel",
|
|
4507
|
-
|
|
4620
|
+
h.expr("document('/llmProviderSessionId')"),
|
|
4508
4621
|
"provideInstructions",
|
|
4509
4622
|
{
|
|
4510
4623
|
requestId: "REQ_CV_CLASSIFY",
|
|
@@ -4516,22 +4629,24 @@ function jn() {
|
|
|
4516
4629
|
"onClassificationResult",
|
|
4517
4630
|
"SUB_RECRUITMENT_PROVIDER",
|
|
4518
4631
|
"Conversation/Response",
|
|
4519
|
-
(n) => n.
|
|
4520
|
-
"ProcessResult",
|
|
4521
|
-
"const response = event.update ?? {}; const requestId = response.inResponseTo?.requestId ?? 'unknown'; return { changeset: [{ op:'replace', path:'/lastClassificationRequestId', val: requestId }] };"
|
|
4522
|
-
).updateDocumentFromExpression(
|
|
4632
|
+
(n) => n.updateDocument(
|
|
4523
4633
|
"PersistResult",
|
|
4524
|
-
|
|
4634
|
+
(e) => e.replaceValue("/lastClassificationRequestId", {
|
|
4635
|
+
$coalesce: [
|
|
4636
|
+
{ $event: "/update/inResponseTo/requestId" },
|
|
4637
|
+
"unknown"
|
|
4638
|
+
]
|
|
4639
|
+
})
|
|
4525
4640
|
)
|
|
4526
4641
|
).buildDocument();
|
|
4527
4642
|
}
|
|
4528
|
-
function
|
|
4529
|
-
return
|
|
4643
|
+
function Xn() {
|
|
4644
|
+
return h.doc().name("Access + Agency Orchestrator").description("Uses access(), ai(), and agency() together in one flow.").channel("userChannel").field("/catalogSessionId", "session-catalog-007").field("/plannerSessionId", "session-planner-007").field("/lastDeal", {}).access("catalog").targetSessionId("session-catalog-007").onBehalfOf("userChannel").read(!0).operations("search", "getDetails").subscribeAfterGranted().statusPath("/catalog/status").done().ai("planner").sessionId("session-planner-007").permissionFrom("userChannel").task("findDeal").instruction("Find the best deal from provided catalog results.").expects("Conversation/Event").done().done().agency("procurement").onBehalfOf("userChannel").allowedTypes("MyOS/MyOS Admin Base").allowedOperations("proposeOffer", "accept").statusPath("/agency/status").done().operation("findAndStart").channel("userChannel").requestType(String).description("Search catalog and start worker session for negotiation.").steps(
|
|
4530
4645
|
(n) => n.myOs().callOperation(
|
|
4531
4646
|
"userChannel",
|
|
4532
|
-
|
|
4647
|
+
h.expr("document('/catalogSessionId')"),
|
|
4533
4648
|
"search",
|
|
4534
|
-
|
|
4649
|
+
h.expr("event.message.request")
|
|
4535
4650
|
)
|
|
4536
4651
|
).done().onCallResponse(
|
|
4537
4652
|
"catalog",
|
|
@@ -4551,9 +4666,9 @@ function Nn() {
|
|
|
4551
4666
|
"deal-found",
|
|
4552
4667
|
(n) => n.replaceExpression("StoreDeal", "/lastDeal", "event.update.payload").viaAgency("procurement").startSessionWith(
|
|
4553
4668
|
"userChannel",
|
|
4554
|
-
|
|
4669
|
+
h.doc().name("Negotiation").channel("buyerChannel").channel("sellerChannel").field(
|
|
4555
4670
|
"/targetPrice",
|
|
4556
|
-
|
|
4671
|
+
h.expr("event.update.payload.price")
|
|
4557
4672
|
).buildJson(),
|
|
4558
4673
|
(e) => e.bind("buyerChannel", { accountId: "userChannel" }).bind("sellerChannel", {
|
|
4559
4674
|
accountId: "event.update.payload.vendorEmail"
|
|
@@ -4565,8 +4680,8 @@ function Nn() {
|
|
|
4565
4680
|
(n) => n.replaceValue("MarkStarted", "/negotiation/status", "started")
|
|
4566
4681
|
).buildDocument();
|
|
4567
4682
|
}
|
|
4568
|
-
function
|
|
4569
|
-
return
|
|
4683
|
+
function es() {
|
|
4684
|
+
return h.doc().name("Linked Access Permissions").description("Shows accessLinked() with multiple link permission blocks.").channel("ownerChannel").field("/projectSessionId", "session-project-88").accessLinked("projectData").targetSessionId("session-project-88").onBehalfOf("ownerChannel").statusPath("/projectData/status").link("invoices").read(!0).operations("list", "get").done().link("shipments").read(!0).operations("track").done().done().onLinkedAccessGranted(
|
|
4570
4685
|
"projectData",
|
|
4571
4686
|
"onProjectDataGranted",
|
|
4572
4687
|
(n) => n.replaceValue("MarkGranted", "/projectData/granted", !0)
|
|
@@ -4576,7 +4691,7 @@ function Wn() {
|
|
|
4576
4691
|
(n) => n.replaceValue("MarkRevoked", "/projectData/revoked", !0)
|
|
4577
4692
|
).buildDocument();
|
|
4578
4693
|
}
|
|
4579
|
-
function
|
|
4694
|
+
function it() {
|
|
4580
4695
|
return I.payNote("Balanced Bowl Voucher - 100 USD").description(
|
|
4581
4696
|
"Reserve voucher budget and capture spending reported by merchant monitoring."
|
|
4582
4697
|
).currency("USD").amountMinor(1e4).channel("merchantChannel", {
|
|
@@ -4595,13 +4710,13 @@ function He() {
|
|
|
4595
4710
|
})
|
|
4596
4711
|
);
|
|
4597
4712
|
}
|
|
4598
|
-
function
|
|
4599
|
-
return
|
|
4713
|
+
function ot() {
|
|
4714
|
+
return it().buildJson();
|
|
4600
4715
|
}
|
|
4601
|
-
function
|
|
4602
|
-
return
|
|
4716
|
+
function ts() {
|
|
4717
|
+
return it().buildDocument();
|
|
4603
4718
|
}
|
|
4604
|
-
function
|
|
4719
|
+
function ns() {
|
|
4605
4720
|
return I.payNote("Armchair Protection + Voucher").description(
|
|
4606
4721
|
"Capture unlocks after buyer satisfaction, then a voucher payment is requested."
|
|
4607
4722
|
).currency("USD").amountMinor(1e4).capture().lockOnInit().unlockOnOperation(
|
|
@@ -4615,11 +4730,11 @@ function Un() {
|
|
|
4615
4730
|
(n) => n.triggerPayment(
|
|
4616
4731
|
"VoucherCredit",
|
|
4617
4732
|
"Conversation/Event",
|
|
4618
|
-
(e) => e.processor("guarantorChannel").from("payeeChannel").to("payerChannel").currency("USD").amountMinor(1e4).reason("voucher-activation").attachPayNote(
|
|
4733
|
+
(e) => e.processor("guarantorChannel").from("payeeChannel").to("payerChannel").currency("USD").amountMinor(1e4).reason("voucher-activation").attachPayNote(ot())
|
|
4619
4734
|
)
|
|
4620
4735
|
).buildDocument();
|
|
4621
4736
|
}
|
|
4622
|
-
function
|
|
4737
|
+
function ss() {
|
|
4623
4738
|
return I.payNote("Shipment Escrow - Simple").description("Capture is locked until guarantor confirms delivery.").currency("USD").amountMinor(12e4).channel("shipmentCompanyChannel", {
|
|
4624
4739
|
type: "Conversation/Timeline Channel",
|
|
4625
4740
|
timelineId: "shipment-timeline"
|
|
@@ -4630,7 +4745,7 @@ function Fn() {
|
|
|
4630
4745
|
(n) => n.emitType("DeliveryConfirmed", "Conversation/Event")
|
|
4631
4746
|
).done().buildDocument();
|
|
4632
4747
|
}
|
|
4633
|
-
function
|
|
4748
|
+
function rs() {
|
|
4634
4749
|
return I.payNote("Capture Triggered From Channel Event").description(
|
|
4635
4750
|
"Shipment channel emits shipment confirmation, then the document captures funds."
|
|
4636
4751
|
).currency("USD").amountMinor(9e4).channel("shipmentCompanyChannel", {
|
|
@@ -4647,14 +4762,14 @@ function _n() {
|
|
|
4647
4762
|
(n) => n.capture().requestNow()
|
|
4648
4763
|
).buildDocument();
|
|
4649
4764
|
}
|
|
4650
|
-
function
|
|
4765
|
+
function is() {
|
|
4651
4766
|
return I.payNote("Capture Triggered From Document Update").description("When delivery confirmation path appears, unlock and capture.").currency("EUR").amountMinor(49900).capture().lockOnInit().unlockOnDocPathChange("/delivery/confirmedAt").done().onDocChange(
|
|
4652
4767
|
"captureAfterDeliveryPathUpdate",
|
|
4653
4768
|
"/delivery/confirmedAt",
|
|
4654
4769
|
(n) => n.capture().requestNow()
|
|
4655
4770
|
).buildDocument();
|
|
4656
4771
|
}
|
|
4657
|
-
function
|
|
4772
|
+
function os() {
|
|
4658
4773
|
return I.payNote("Reserve On Approval Then Capture On Confirmation").description(
|
|
4659
4774
|
"Reserve unlocks when /approved changes; capture unlocks on delivery confirmation."
|
|
4660
4775
|
).currency("USD").amountMinor(25e4).reserve().requestOnInit().done().onEvent(
|
|
@@ -4671,7 +4786,7 @@ function Gn() {
|
|
|
4671
4786
|
"Request full capture after confirmation."
|
|
4672
4787
|
).done().buildDocument();
|
|
4673
4788
|
}
|
|
4674
|
-
function
|
|
4789
|
+
function as() {
|
|
4675
4790
|
return I.payNote("Reserve Immediately Release On Dispute").description(
|
|
4676
4791
|
"Reserve on init; payer can open dispute for full reservation release."
|
|
4677
4792
|
).currency("EUR").amountMinor(75e3).reserve().requestOnInit().done().capture().requestOnOperation(
|
|
@@ -4684,7 +4799,7 @@ function Jn() {
|
|
|
4684
4799
|
"Payer opens dispute for full release."
|
|
4685
4800
|
).done().buildDocument();
|
|
4686
4801
|
}
|
|
4687
|
-
function
|
|
4802
|
+
function cs() {
|
|
4688
4803
|
return I.payNote("Milestone Reserve Partial Capture").description("Reserve full amount; guarantor approves milestone captures.").currency("USD").amountMinor(2e6).reserve().requestOnInit().done().capture().requestPartialOnOperation(
|
|
4689
4804
|
"approveMilestone1",
|
|
4690
4805
|
"guarantorChannel",
|
|
@@ -4712,7 +4827,7 @@ function zn() {
|
|
|
4712
4827
|
"Release unfinished work."
|
|
4713
4828
|
).done().buildDocument();
|
|
4714
4829
|
}
|
|
4715
|
-
function
|
|
4830
|
+
function us() {
|
|
4716
4831
|
return I.payNote("Reserve After KYC Capture On Settlement").description(
|
|
4717
4832
|
"Reserve unlocks after KYC; capture unlocks on settlement confirmation."
|
|
4718
4833
|
).currency("CHF").amountMinor(5e6).reserve().requestOnInit().done().capture().lockOnInit().unlockOnDocPathChange("/settlement/confirmed").requestOnDocPathChange("/settlement/confirmed").done().release().requestOnOperation(
|
|
@@ -4721,7 +4836,7 @@ function Qn() {
|
|
|
4721
4836
|
"Reject and release if KYC fails."
|
|
4722
4837
|
).done().buildDocument();
|
|
4723
4838
|
}
|
|
4724
|
-
function
|
|
4839
|
+
function ls() {
|
|
4725
4840
|
return I.payNote("Release Locked Until Window Opens").description(
|
|
4726
4841
|
"Capture runs on init; release unlocks only after guarantor opens a window."
|
|
4727
4842
|
).currency("USD").amountMinor(19900).reserve().requestOnInit().done().capture().requestOnInit().done().release().requestOnOperation(
|
|
@@ -4734,7 +4849,7 @@ function Yn() {
|
|
|
4734
4849
|
"Payer requests full release."
|
|
4735
4850
|
).done().buildDocument();
|
|
4736
4851
|
}
|
|
4737
|
-
function
|
|
4852
|
+
function hs() {
|
|
4738
4853
|
return I.payNote("Armchair With Voucher Bootstrap").currency("USD").amountMinor(8e4).capture().lockOnInit().unlockOnOperation(
|
|
4739
4854
|
"confirmSatisfaction",
|
|
4740
4855
|
"payerChannel",
|
|
@@ -4744,7 +4859,7 @@ function Zn() {
|
|
|
4744
4859
|
"PayNote/Funds Captured",
|
|
4745
4860
|
(n) => n.myOs().bootstrapDocument(
|
|
4746
4861
|
"BootstrapVoucherDoc",
|
|
4747
|
-
|
|
4862
|
+
ot(),
|
|
4748
4863
|
{
|
|
4749
4864
|
payerChannel: {
|
|
4750
4865
|
type: "Conversation/Timeline Channel",
|
|
@@ -4775,12 +4890,12 @@ function Zn() {
|
|
|
4775
4890
|
(n) => n.replaceValue("MarkFailed", "/voucher/status", "failed")
|
|
4776
4891
|
).buildDocument();
|
|
4777
4892
|
}
|
|
4778
|
-
function
|
|
4893
|
+
function ps() {
|
|
4779
4894
|
return y.doc().name("Orchestrated Document").channel("orchestratorChannel").channel("aliceChannel").channel("bobChannel").onInit(
|
|
4780
4895
|
"bootstrapChild",
|
|
4781
4896
|
(n) => n.bootstrapDocument(
|
|
4782
4897
|
"BootstrapChildDoc",
|
|
4783
|
-
|
|
4898
|
+
ms(),
|
|
4784
4899
|
{
|
|
4785
4900
|
participantA: {
|
|
4786
4901
|
type: "Conversation/Timeline Channel",
|
|
@@ -4808,15 +4923,15 @@ function Hn() {
|
|
|
4808
4923
|
)
|
|
4809
4924
|
).buildDocument();
|
|
4810
4925
|
}
|
|
4811
|
-
function
|
|
4926
|
+
function ds() {
|
|
4812
4927
|
return y.doc().name("With Messages").channel("sellerChannel", { type: "MyOS/MyOS Timeline Channel" }).channel("buyerChannel", { type: "MyOS/MyOS Timeline Channel" }).myOsAdmin("myOsAdminChannel").onInit(
|
|
4813
4928
|
"bootstrapDeal",
|
|
4814
4929
|
(n) => n.myOs().bootstrapDocument(
|
|
4815
4930
|
"BootstrapDeal",
|
|
4816
|
-
|
|
4931
|
+
fs(),
|
|
4817
4932
|
{
|
|
4818
|
-
sellerChannel:
|
|
4819
|
-
buyerChannel:
|
|
4933
|
+
sellerChannel: Me("sellerChannel"),
|
|
4934
|
+
buyerChannel: Me("buyerChannel")
|
|
4820
4935
|
},
|
|
4821
4936
|
"sellerChannel",
|
|
4822
4937
|
(e) => {
|
|
@@ -4830,121 +4945,121 @@ function Xn() {
|
|
|
4830
4945
|
)
|
|
4831
4946
|
).buildDocument();
|
|
4832
4947
|
}
|
|
4833
|
-
function
|
|
4948
|
+
function ms() {
|
|
4834
4949
|
return y.doc().name("Child Collaboration").channel("participantA").channel("participantB").buildJson();
|
|
4835
4950
|
}
|
|
4836
|
-
function
|
|
4951
|
+
function fs() {
|
|
4837
4952
|
return y.doc().name("Deal").channel("sellerChannel").channel("buyerChannel").field("/status", "draft").buildJson();
|
|
4838
4953
|
}
|
|
4839
|
-
function
|
|
4954
|
+
function bs() {
|
|
4840
4955
|
return {
|
|
4841
|
-
simpleAgentWithPermissions:
|
|
4842
|
-
agentAddsParticipantAndWaits:
|
|
4843
|
-
agentCallsRemoteOperation:
|
|
4844
|
-
cvClassifierAgent:
|
|
4845
|
-
orchestratorWithAccessAndAgency:
|
|
4846
|
-
linkedAccessMonitor:
|
|
4847
|
-
simplePermissionAndSubscribe:
|
|
4848
|
-
callRemoteOperation:
|
|
4849
|
-
addParticipantsDynamically:
|
|
4850
|
-
linkedDocsWithUpdates:
|
|
4851
|
-
cvClassifierFull:
|
|
4852
|
-
accessAndAgencyOrchestrator:
|
|
4853
|
-
linkedAccessPermissions:
|
|
4854
|
-
bootstrapVoucherOnCapture:
|
|
4855
|
-
bootstrapViaOrchestrator:
|
|
4856
|
-
bootstrapWithMessages:
|
|
4857
|
-
shipmentEscrowSimple:
|
|
4858
|
-
captureTriggeredFromChannelEvent:
|
|
4859
|
-
captureTriggeredFromDocUpdate:
|
|
4860
|
-
reserveOnApprovalThenCaptureOnConfirmation:
|
|
4861
|
-
reserveImmediatelyReleaseOnDispute:
|
|
4862
|
-
milestoneReservePartialCapture:
|
|
4863
|
-
reserveLockedUntilKycThenCaptureOnSettlement:
|
|
4864
|
-
releaseLockedUntilWindowOpens:
|
|
4865
|
-
armchairProtectionWithVoucherPayNoteTemplate:
|
|
4866
|
-
balancedBowlVoucherPayNoteTemplate:
|
|
4956
|
+
simpleAgentWithPermissions: Un(),
|
|
4957
|
+
agentAddsParticipantAndWaits: Fn(),
|
|
4958
|
+
agentCallsRemoteOperation: _n(),
|
|
4959
|
+
cvClassifierAgent: Kn(),
|
|
4960
|
+
orchestratorWithAccessAndAgency: Gn(),
|
|
4961
|
+
linkedAccessMonitor: Jn(),
|
|
4962
|
+
simplePermissionAndSubscribe: zn(),
|
|
4963
|
+
callRemoteOperation: Qn(),
|
|
4964
|
+
addParticipantsDynamically: Yn(),
|
|
4965
|
+
linkedDocsWithUpdates: Zn(),
|
|
4966
|
+
cvClassifierFull: Hn(),
|
|
4967
|
+
accessAndAgencyOrchestrator: Xn(),
|
|
4968
|
+
linkedAccessPermissions: es(),
|
|
4969
|
+
bootstrapVoucherOnCapture: hs(),
|
|
4970
|
+
bootstrapViaOrchestrator: ps(),
|
|
4971
|
+
bootstrapWithMessages: ds(),
|
|
4972
|
+
shipmentEscrowSimple: ss(),
|
|
4973
|
+
captureTriggeredFromChannelEvent: rs(),
|
|
4974
|
+
captureTriggeredFromDocUpdate: is(),
|
|
4975
|
+
reserveOnApprovalThenCaptureOnConfirmation: os(),
|
|
4976
|
+
reserveImmediatelyReleaseOnDispute: as(),
|
|
4977
|
+
milestoneReservePartialCapture: cs(),
|
|
4978
|
+
reserveLockedUntilKycThenCaptureOnSettlement: us(),
|
|
4979
|
+
releaseLockedUntilWindowOpens: ls(),
|
|
4980
|
+
armchairProtectionWithVoucherPayNoteTemplate: ns(),
|
|
4981
|
+
balancedBowlVoucherPayNoteTemplate: ts()
|
|
4867
4982
|
};
|
|
4868
4983
|
}
|
|
4869
4984
|
export {
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4985
|
+
dn as AISteps,
|
|
4986
|
+
Bt as AccessBuilder,
|
|
4987
|
+
Ht as AccessSteps,
|
|
4988
|
+
Ft as AgencyBindingsBuilder,
|
|
4989
|
+
Ut as AgencyBuilder,
|
|
4990
|
+
_t as AgencyCapabilitiesBuilder,
|
|
4991
|
+
Kt as AgencyOptionsBuilder,
|
|
4992
|
+
nn as AgencySteps,
|
|
4993
|
+
Mt as AiIntegrationBuilder,
|
|
4994
|
+
Dt as AiTaskBuilder,
|
|
4880
4995
|
K as BasicBlueTypes,
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4996
|
+
Os as BlueChangeCompiler,
|
|
4997
|
+
Wn as BlueChangePlan,
|
|
4998
|
+
pn as CaptureStepBuilder,
|
|
4999
|
+
on as ChangesetBuilder,
|
|
5000
|
+
h as DocBuilder,
|
|
5001
|
+
kt as DocJsonState,
|
|
5002
|
+
rt as DocPatch,
|
|
4888
5003
|
J as DocStructure,
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
5004
|
+
we as EventPayloadBuilder,
|
|
5005
|
+
Gt as FieldBuilder,
|
|
5006
|
+
xt as LinkedAccessBuilder,
|
|
5007
|
+
Xt as LinkedAccessSteps,
|
|
5008
|
+
B as MyOsPermissions,
|
|
5009
|
+
rn as MyOsSteps,
|
|
5010
|
+
zt as OperationBuilder,
|
|
5011
|
+
de as PayNoteActionBuilder,
|
|
5012
|
+
qe as PayNoteBuilder,
|
|
4898
5013
|
I as PayNotes,
|
|
4899
|
-
|
|
5014
|
+
hn as PaymentRequestPayloadBuilder,
|
|
4900
5015
|
Y as RuntimeEventTypes,
|
|
4901
5016
|
y as SimpleDocBuilder,
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
5017
|
+
mn as StepsBuilder,
|
|
5018
|
+
Xn as accessAndAgencyOrchestrator,
|
|
5019
|
+
Yn as addParticipantsDynamically,
|
|
5020
|
+
Fn as agentAddsParticipantAndWaits,
|
|
5021
|
+
_n as agentCallsRemoteOperation,
|
|
5022
|
+
bs as allJavaSandboxSampleDocs,
|
|
5023
|
+
ks as applyBlueChangePlan,
|
|
5024
|
+
ns as armchairProtectionWithVoucherPayNoteTemplate,
|
|
5025
|
+
Ze as assertRepositoryTypeAliasAvailable,
|
|
5026
|
+
ts as balancedBowlVoucherPayNoteTemplate,
|
|
5027
|
+
ps as bootstrapViaOrchestrator,
|
|
5028
|
+
hs as bootstrapVoucherOnCapture,
|
|
5029
|
+
ds as bootstrapWithMessages,
|
|
5030
|
+
Qn as callRemoteOperationSample,
|
|
5031
|
+
rs as captureTriggeredFromChannelEvent,
|
|
5032
|
+
is as captureTriggeredFromDocUpdate,
|
|
5033
|
+
$n as compileContractChanges,
|
|
5034
|
+
Mn as compileRootChanges,
|
|
5035
|
+
Kn as cvClassifierAgent,
|
|
5036
|
+
Hn as cvClassifierFull,
|
|
5037
|
+
st as diffJsonDocuments,
|
|
4923
5038
|
A as ensureExpression,
|
|
4924
5039
|
W as escapePointerSegment,
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
5040
|
+
Me as fromChannel,
|
|
5041
|
+
Ss as fromEmail,
|
|
5042
|
+
re as fromJsonDocument,
|
|
5043
|
+
Ct as getPointer,
|
|
5044
|
+
Vt as isRepositoryTypeAliasAvailable,
|
|
5045
|
+
Jn as linkedAccessMonitor,
|
|
5046
|
+
es as linkedAccessPermissions,
|
|
5047
|
+
Zn as linkedDocsWithUpdates,
|
|
5048
|
+
cs as milestoneReservePartialCapture,
|
|
5049
|
+
Pe as normalizeMyOsPermissionObject,
|
|
5050
|
+
He as normalizeTypeLike,
|
|
5051
|
+
Gn as orchestratorWithAccessAndAgency,
|
|
5052
|
+
ls as releaseLockedUntilWindowOpens,
|
|
4938
5053
|
H as removePointer,
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
5054
|
+
as as reserveImmediatelyReleaseOnDispute,
|
|
5055
|
+
us as reserveLockedUntilKycThenCaptureOnSettlement,
|
|
5056
|
+
os as reserveOnApprovalThenCaptureOnConfirmation,
|
|
4942
5057
|
te as sdkBlue,
|
|
4943
5058
|
Z as setPointer,
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
5059
|
+
ss as shipmentEscrowSimple,
|
|
5060
|
+
Un as simpleAgentWithPermissions,
|
|
5061
|
+
zn as simplePermissionAndSubscribe,
|
|
5062
|
+
ae as toOfficialJson,
|
|
5063
|
+
vs as toOfficialYaml,
|
|
4949
5064
|
m as toTypeAlias
|
|
4950
5065
|
};
|