@blue-labs/sdk-dsl 4.0.0-rc.1 → 4.0.0-rc.3
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createDefaultMergingProcessor as
|
|
2
|
-
import {
|
|
3
|
-
import { repository as
|
|
1
|
+
import { createDefaultMergingProcessor as et } from "@blue-labs/document-processor";
|
|
2
|
+
import { Blue as tt, BlueNode as N, applyBlueNodePatch as nt } from "@blue-labs/language";
|
|
3
|
+
import { repository as re } 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 st(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 rt(n) {
|
|
32
32
|
return n.replace(/~1/gu, "/").replace(/~0/gu, "~");
|
|
33
33
|
}
|
|
34
34
|
function ke(n) {
|
|
35
|
-
const e =
|
|
36
|
-
return e === "/" ? [] : e.split("/").slice(1).map(
|
|
35
|
+
const e = st(n);
|
|
36
|
+
return e === "/" ? [] : e.split("/").slice(1).map(rt);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function it(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 ot(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 at(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; )
|
|
@@ -75,7 +75,7 @@ function Z(n, e, t, s = {}) {
|
|
|
75
75
|
const g = i[p], k = i[p + 1], l = /^\d+$/.test(k);
|
|
76
76
|
if (c) {
|
|
77
77
|
const d = ee(g);
|
|
78
|
-
o =
|
|
78
|
+
o = at(
|
|
79
79
|
c,
|
|
80
80
|
d,
|
|
81
81
|
r,
|
|
@@ -87,12 +87,12 @@ function Z(n, e, t, s = {}) {
|
|
|
87
87
|
if (l) {
|
|
88
88
|
if (!r && !Array.isArray(a))
|
|
89
89
|
throw new Error(`Missing array segment '${g}'`);
|
|
90
|
-
c =
|
|
90
|
+
c = ot(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 = it(o, g);
|
|
96
96
|
}
|
|
97
97
|
const h = i[i.length - 1];
|
|
98
98
|
if (c) {
|
|
@@ -129,7 +129,7 @@ function H(n, e) {
|
|
|
129
129
|
}
|
|
130
130
|
z(s) && delete s[r];
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function ct(n, e) {
|
|
133
133
|
const t = ke(e);
|
|
134
134
|
if (t.length === 0)
|
|
135
135
|
return n;
|
|
@@ -146,14 +146,14 @@ function lt(n, e) {
|
|
|
146
146
|
}
|
|
147
147
|
return s;
|
|
148
148
|
}
|
|
149
|
-
const
|
|
149
|
+
const ut = /* @__PURE__ */ new Set([
|
|
150
150
|
"name",
|
|
151
151
|
"description",
|
|
152
152
|
"type",
|
|
153
153
|
"contracts",
|
|
154
154
|
"policies"
|
|
155
155
|
]);
|
|
156
|
-
function
|
|
156
|
+
function We(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 lt(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 pt(n, e) {
|
|
|
179
179
|
) : [], o = Array.isArray(t.relatedContracts) ? t.relatedContracts.filter(
|
|
180
180
|
(c) => typeof c == "string"
|
|
181
181
|
) : [];
|
|
182
|
-
return
|
|
182
|
+
return We(
|
|
183
183
|
e,
|
|
184
184
|
s,
|
|
185
185
|
r,
|
|
@@ -187,7 +187,7 @@ function pt(n, e) {
|
|
|
187
187
|
o
|
|
188
188
|
);
|
|
189
189
|
}
|
|
190
|
-
class
|
|
190
|
+
class ht {
|
|
191
191
|
document;
|
|
192
192
|
sections = /* @__PURE__ */ new Map();
|
|
193
193
|
currentSection = null;
|
|
@@ -210,7 +210,7 @@ class dt {
|
|
|
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 dt {
|
|
|
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 ?? lt(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 ?? We(
|
|
255
255
|
r,
|
|
256
256
|
V(t ?? r, "section title"),
|
|
257
257
|
s?.trim() || void 0
|
|
@@ -316,7 +316,7 @@ class dt {
|
|
|
316
316
|
if (!t.startsWith("/"))
|
|
317
317
|
return;
|
|
318
318
|
const s = t.split("/")[1];
|
|
319
|
-
if (s &&
|
|
319
|
+
if (s && ut.has(s))
|
|
320
320
|
throw new Error(`Path points at reserved root key: /${s}`);
|
|
321
321
|
}
|
|
322
322
|
syncPersistedSection(e) {
|
|
@@ -329,39 +329,31 @@ class dt {
|
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
const re = tt(
|
|
333
|
-
rt,
|
|
334
|
-
{
|
|
335
|
-
mergingProcessor: We()
|
|
336
|
-
}
|
|
337
|
-
);
|
|
338
332
|
Oe("core");
|
|
339
333
|
Oe("conversation");
|
|
340
334
|
Oe("myos");
|
|
341
335
|
function Oe(n) {
|
|
342
336
|
const e = re.packages[n];
|
|
343
337
|
if (!e)
|
|
344
|
-
throw new Error(
|
|
345
|
-
`Missing reindexed Blue repository package ${n}.`
|
|
346
|
-
);
|
|
338
|
+
throw new Error(`Missing Blue repository package ${n}.`);
|
|
347
339
|
return e.aliases;
|
|
348
340
|
}
|
|
349
|
-
const te = new
|
|
341
|
+
const te = new tt({
|
|
350
342
|
repositories: [re],
|
|
351
|
-
mergingProcessor:
|
|
343
|
+
mergingProcessor: et()
|
|
352
344
|
});
|
|
353
345
|
function ie(n) {
|
|
354
346
|
return te.jsonValueToNode(n);
|
|
355
347
|
}
|
|
356
348
|
function ce(n) {
|
|
357
|
-
if (
|
|
349
|
+
if (Ue(n))
|
|
358
350
|
return structuredClone(n);
|
|
359
|
-
const e = te.restoreInlineTypes(
|
|
351
|
+
const e = te.restoreInlineTypes(Le(n));
|
|
360
352
|
return te.nodeToJson(e, "simple");
|
|
361
353
|
}
|
|
362
|
-
function
|
|
354
|
+
function is(n) {
|
|
363
355
|
const e = te.restoreInlineTypes(
|
|
364
|
-
|
|
356
|
+
Ue(n) ? ie(n) : Le(n)
|
|
365
357
|
);
|
|
366
358
|
return te.nodeToYaml(e, "simple");
|
|
367
359
|
}
|
|
@@ -369,13 +361,13 @@ function A(n) {
|
|
|
369
361
|
const e = n.trim();
|
|
370
362
|
return e.startsWith("${") && e.endsWith("}") ? e : `\${${e}}`;
|
|
371
363
|
}
|
|
372
|
-
function
|
|
373
|
-
return
|
|
364
|
+
function Le(n) {
|
|
365
|
+
return pt(n) ? n.buildDocument() : n;
|
|
374
366
|
}
|
|
375
|
-
function
|
|
367
|
+
function pt(n) {
|
|
376
368
|
return typeof n == "object" && n !== null && typeof n.buildDocument == "function";
|
|
377
369
|
}
|
|
378
|
-
function
|
|
370
|
+
function Ue(n) {
|
|
379
371
|
return typeof n == "object" && n !== null && !Array.isArray(n) && !(n instanceof N) && typeof n.buildDocument != "function";
|
|
380
372
|
}
|
|
381
373
|
function m(n) {
|
|
@@ -406,34 +398,34 @@ function m(n) {
|
|
|
406
398
|
function le(n) {
|
|
407
399
|
return typeof n == "object" && n !== null;
|
|
408
400
|
}
|
|
409
|
-
function
|
|
401
|
+
function dt() {
|
|
410
402
|
if (!le(re))
|
|
411
403
|
return [];
|
|
412
404
|
const n = re.packages;
|
|
413
405
|
return le(n) ? Object.values(n).filter(le) : [];
|
|
414
406
|
}
|
|
415
|
-
function
|
|
407
|
+
function mt() {
|
|
416
408
|
const n = new Set(Object.values(K));
|
|
417
|
-
for (const e of
|
|
409
|
+
for (const e of dt())
|
|
418
410
|
if (e.aliases)
|
|
419
411
|
for (const t of Object.keys(e.aliases))
|
|
420
412
|
n.add(t);
|
|
421
413
|
return n;
|
|
422
414
|
}
|
|
423
|
-
const
|
|
415
|
+
const ft = mt(), Y = {
|
|
424
416
|
NamedEvent: "Common/Named Event"
|
|
425
417
|
};
|
|
426
|
-
function
|
|
427
|
-
return
|
|
418
|
+
function gt(n) {
|
|
419
|
+
return ft.has(n.trim());
|
|
428
420
|
}
|
|
429
|
-
function
|
|
421
|
+
function Fe(n, e) {
|
|
430
422
|
const t = n.trim();
|
|
431
|
-
if (!
|
|
423
|
+
if (!gt(t))
|
|
432
424
|
throw new Error(
|
|
433
425
|
`${e} requires repository type alias '${t}', but this alias is not available in the currently installed @blue-repository/types package.`
|
|
434
426
|
);
|
|
435
427
|
}
|
|
436
|
-
function
|
|
428
|
+
function _e(n) {
|
|
437
429
|
return m(n);
|
|
438
430
|
}
|
|
439
431
|
function v(n, e) {
|
|
@@ -445,7 +437,7 @@ function v(n, e) {
|
|
|
445
437
|
function he(n) {
|
|
446
438
|
return n.replace(/[^A-Za-z0-9]+/gu, "_").replace(/^_+|_+$/gu, "").toUpperCase();
|
|
447
439
|
}
|
|
448
|
-
class
|
|
440
|
+
class yt {
|
|
449
441
|
constructor(e, t) {
|
|
450
442
|
this.parent = e, this.taskName = t;
|
|
451
443
|
}
|
|
@@ -456,7 +448,7 @@ class vt {
|
|
|
456
448
|
return t.length > 0 && this.instructions.push(t), this;
|
|
457
449
|
}
|
|
458
450
|
expects(e) {
|
|
459
|
-
return this.expectedResponses.push(
|
|
451
|
+
return this.expectedResponses.push(_e(e)), this;
|
|
460
452
|
}
|
|
461
453
|
done() {
|
|
462
454
|
if (this.instructions.length === 0)
|
|
@@ -470,7 +462,7 @@ class vt {
|
|
|
470
462
|
}), this.parent;
|
|
471
463
|
}
|
|
472
464
|
}
|
|
473
|
-
class
|
|
465
|
+
class Ct {
|
|
474
466
|
constructor(e, t) {
|
|
475
467
|
this.parent = e;
|
|
476
468
|
const s = v(t, "ai name");
|
|
@@ -514,7 +506,7 @@ class St {
|
|
|
514
506
|
return this.definition.permissionTiming = "onInit", this.definition.permissionTriggerEventType = void 0, this.definition.permissionTriggerDocPath = void 0, this;
|
|
515
507
|
}
|
|
516
508
|
requestPermissionOnEvent(e) {
|
|
517
|
-
return this.definition.permissionTiming = "onEvent", this.definition.permissionTriggerEventType =
|
|
509
|
+
return this.definition.permissionTiming = "onEvent", this.definition.permissionTriggerEventType = _e(e), this.definition.permissionTriggerDocPath = void 0, this;
|
|
518
510
|
}
|
|
519
511
|
requestPermissionOnDocChange(e) {
|
|
520
512
|
return this.definition.permissionTiming = "onDocChange", this.definition.permissionTriggerDocPath = v(
|
|
@@ -526,7 +518,7 @@ class St {
|
|
|
526
518
|
return this.definition.permissionTiming = "manual", this.definition.permissionTriggerDocPath = void 0, this.definition.permissionTriggerEventType = void 0, this;
|
|
527
519
|
}
|
|
528
520
|
task(e) {
|
|
529
|
-
return new
|
|
521
|
+
return new yt(this, v(e, "task name"));
|
|
530
522
|
}
|
|
531
523
|
registerTask(e) {
|
|
532
524
|
if (this.definition.tasks[e.name])
|
|
@@ -543,11 +535,11 @@ function D(n, e) {
|
|
|
543
535
|
throw new Error(`${e} is required`);
|
|
544
536
|
return t;
|
|
545
537
|
}
|
|
546
|
-
function
|
|
538
|
+
function vt(n) {
|
|
547
539
|
const e = n.replace(/[^A-Za-z0-9]+/gu, "_").replace(/^_+|_+$/gu, "").toUpperCase();
|
|
548
540
|
return e.length > 0 ? e : "ACCESS";
|
|
549
541
|
}
|
|
550
|
-
class
|
|
542
|
+
class St {
|
|
551
543
|
constructor(e, t) {
|
|
552
544
|
this.parent = e, this.name = t;
|
|
553
545
|
}
|
|
@@ -624,7 +616,7 @@ class Ot {
|
|
|
624
616
|
return this.permissionTimingValue = "manual", this.permissionTriggerDocPathValue = void 0, this.permissionTriggerEventTypeValue = void 0, this;
|
|
625
617
|
}
|
|
626
618
|
done() {
|
|
627
|
-
const e =
|
|
619
|
+
const e = vt(this.name), t = {
|
|
628
620
|
name: this.name,
|
|
629
621
|
token: e,
|
|
630
622
|
targetSessionId: D(
|
|
@@ -733,11 +725,11 @@ function R(n, e) {
|
|
|
733
725
|
throw new Error(`${e} is required`);
|
|
734
726
|
return t;
|
|
735
727
|
}
|
|
736
|
-
function
|
|
728
|
+
function kt(n) {
|
|
737
729
|
const e = n.replace(/[^A-Za-z0-9]+/gu, "_").replace(/^_+|_+$/gu, "").toUpperCase();
|
|
738
730
|
return e.length > 0 ? e : "LINKED_ACCESS";
|
|
739
731
|
}
|
|
740
|
-
class
|
|
732
|
+
class Ot {
|
|
741
733
|
constructor(e, t) {
|
|
742
734
|
this.parent = e, this.name = t;
|
|
743
735
|
}
|
|
@@ -774,7 +766,7 @@ class It {
|
|
|
774
766
|
read: !0,
|
|
775
767
|
operations: []
|
|
776
768
|
};
|
|
777
|
-
return this.linksValue.set(t, s), new
|
|
769
|
+
return this.linksValue.set(t, s), new bt(this, s);
|
|
778
770
|
}
|
|
779
771
|
requestPermissionOnInit() {
|
|
780
772
|
return this.permissionTimingValue = "onInit", this.permissionTriggerEventTypeValue = void 0, this.permissionTriggerDocPathValue = void 0, this;
|
|
@@ -794,7 +786,7 @@ class It {
|
|
|
794
786
|
), this;
|
|
795
787
|
}
|
|
796
788
|
done() {
|
|
797
|
-
const e =
|
|
789
|
+
const e = kt(this.name);
|
|
798
790
|
if (this.linksValue.size === 0)
|
|
799
791
|
throw new Error("At least one linked access link must be configured");
|
|
800
792
|
const t = {};
|
|
@@ -885,7 +877,7 @@ class It {
|
|
|
885
877
|
);
|
|
886
878
|
}
|
|
887
879
|
}
|
|
888
|
-
class
|
|
880
|
+
class bt {
|
|
889
881
|
constructor(e, t) {
|
|
890
882
|
this.parent = e, this.draft = t;
|
|
891
883
|
}
|
|
@@ -909,11 +901,11 @@ function U(n, e) {
|
|
|
909
901
|
throw new Error(`${e} is required`);
|
|
910
902
|
return t;
|
|
911
903
|
}
|
|
912
|
-
function
|
|
904
|
+
function It(n) {
|
|
913
905
|
const e = n.replace(/[^A-Za-z0-9]+/gu, "_").replace(/^_+|_+$/gu, "").toUpperCase();
|
|
914
906
|
return e.length > 0 ? e : "AGENCY";
|
|
915
907
|
}
|
|
916
|
-
function
|
|
908
|
+
function Pt(n, e) {
|
|
917
909
|
return n.map((t) => ({
|
|
918
910
|
type: "MyOS/Worker Agency Permission",
|
|
919
911
|
workerType: t,
|
|
@@ -923,7 +915,7 @@ function At(n, e) {
|
|
|
923
915
|
}
|
|
924
916
|
}));
|
|
925
917
|
}
|
|
926
|
-
class
|
|
918
|
+
class qt {
|
|
927
919
|
constructor(e, t) {
|
|
928
920
|
this.parent = e, this.name = t;
|
|
929
921
|
}
|
|
@@ -972,7 +964,7 @@ class Rt {
|
|
|
972
964
|
return this.permissionTimingValue = "manual", this.permissionTriggerDocPathValue = void 0, this.permissionTriggerEventTypeValue = void 0, this;
|
|
973
965
|
}
|
|
974
966
|
done() {
|
|
975
|
-
const e =
|
|
967
|
+
const e = It(this.name);
|
|
976
968
|
if (this.allowedTypesValue.length === 0)
|
|
977
969
|
throw new Error("agency(...).allowedTypes(...) is required");
|
|
978
970
|
const t = {
|
|
@@ -994,7 +986,7 @@ class Rt {
|
|
|
994
986
|
applyAutoWiring(e, t) {
|
|
995
987
|
e.statusPath && t.field(e.statusPath, "pending");
|
|
996
988
|
const s = `agency${e.token}`, r = (i) => {
|
|
997
|
-
const o =
|
|
989
|
+
const o = Pt(
|
|
998
990
|
e.allowedTypes,
|
|
999
991
|
e.allowedOperations
|
|
1000
992
|
);
|
|
@@ -1044,7 +1036,7 @@ class Rt {
|
|
|
1044
1036
|
);
|
|
1045
1037
|
}
|
|
1046
1038
|
}
|
|
1047
|
-
class
|
|
1039
|
+
class At {
|
|
1048
1040
|
bindings = {};
|
|
1049
1041
|
bind(e, t) {
|
|
1050
1042
|
const s = e.trim();
|
|
@@ -1060,16 +1052,16 @@ class Tt {
|
|
|
1060
1052
|
return structuredClone(this.bindings);
|
|
1061
1053
|
}
|
|
1062
1054
|
}
|
|
1063
|
-
function
|
|
1055
|
+
function Ke(n, e) {
|
|
1064
1056
|
const t = n.trim();
|
|
1065
1057
|
if (t.length === 0)
|
|
1066
1058
|
throw new Error(`${e} is required`);
|
|
1067
1059
|
return t;
|
|
1068
1060
|
}
|
|
1069
|
-
class
|
|
1061
|
+
class Rt {
|
|
1070
1062
|
values = {};
|
|
1071
1063
|
set(e, t) {
|
|
1072
|
-
return this.values[
|
|
1064
|
+
return this.values[Ke(e, "capability name")] = t, this;
|
|
1073
1065
|
}
|
|
1074
1066
|
participantsOrchestration(e) {
|
|
1075
1067
|
return this.set("participantsOrchestration", e);
|
|
@@ -1084,12 +1076,12 @@ class wt {
|
|
|
1084
1076
|
return structuredClone(this.values);
|
|
1085
1077
|
}
|
|
1086
1078
|
}
|
|
1087
|
-
class
|
|
1079
|
+
class Tt {
|
|
1088
1080
|
defaultMessageValue;
|
|
1089
1081
|
perChannelMessages = {};
|
|
1090
1082
|
capabilitiesValue = {};
|
|
1091
1083
|
bootstrapAssignee(e) {
|
|
1092
|
-
throw
|
|
1084
|
+
throw Ke(e, "bootstrapAssignee channelKey"), new Error(
|
|
1093
1085
|
"agency start worker session options do not support bootstrapAssignee; use the agency onBehalfOf channel plus initialMessages/capabilities"
|
|
1094
1086
|
);
|
|
1095
1087
|
}
|
|
@@ -1105,7 +1097,7 @@ class Et {
|
|
|
1105
1097
|
capabilities(e) {
|
|
1106
1098
|
if (typeof e != "function")
|
|
1107
1099
|
throw new Error("capabilities customizer is required");
|
|
1108
|
-
const t = new
|
|
1100
|
+
const t = new Rt();
|
|
1109
1101
|
return e(t), Object.assign(this.capabilitiesValue, t.build()), this;
|
|
1110
1102
|
}
|
|
1111
1103
|
build() {
|
|
@@ -1116,7 +1108,7 @@ class Et {
|
|
|
1116
1108
|
}), Object.keys(this.capabilitiesValue).length > 0 && (e.capabilities = structuredClone(this.capabilitiesValue)), e;
|
|
1117
1109
|
}
|
|
1118
1110
|
}
|
|
1119
|
-
class
|
|
1111
|
+
class wt {
|
|
1120
1112
|
constructor(e, t) {
|
|
1121
1113
|
this.parent = e, this.path = t;
|
|
1122
1114
|
}
|
|
@@ -1173,10 +1165,10 @@ class Vt {
|
|
|
1173
1165
|
});
|
|
1174
1166
|
}
|
|
1175
1167
|
}
|
|
1176
|
-
function
|
|
1168
|
+
function Et(n) {
|
|
1177
1169
|
return { type: n };
|
|
1178
1170
|
}
|
|
1179
|
-
class
|
|
1171
|
+
class Vt {
|
|
1180
1172
|
constructor(e, t) {
|
|
1181
1173
|
this.parent = e, this.key = t;
|
|
1182
1174
|
}
|
|
@@ -1195,7 +1187,7 @@ class Mt {
|
|
|
1195
1187
|
return this.descriptionText(e);
|
|
1196
1188
|
}
|
|
1197
1189
|
requestType(e) {
|
|
1198
|
-
return this.requestSchemaValue =
|
|
1190
|
+
return this.requestSchemaValue = Et(m(e)), this.clearRequest = !1, this;
|
|
1199
1191
|
}
|
|
1200
1192
|
requestSchema(e) {
|
|
1201
1193
|
return this.requestSchemaValue = structuredClone(e), this.clearRequest = !1, this;
|
|
@@ -1228,11 +1220,11 @@ class Mt {
|
|
|
1228
1220
|
});
|
|
1229
1221
|
}
|
|
1230
1222
|
}
|
|
1231
|
-
function
|
|
1223
|
+
function Dt(n) {
|
|
1232
1224
|
return structuredClone(n);
|
|
1233
1225
|
}
|
|
1234
1226
|
function be(n) {
|
|
1235
|
-
return
|
|
1227
|
+
return Dt(n);
|
|
1236
1228
|
}
|
|
1237
1229
|
class x {
|
|
1238
1230
|
readValue;
|
|
@@ -1260,10 +1252,10 @@ class x {
|
|
|
1260
1252
|
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;
|
|
1261
1253
|
}
|
|
1262
1254
|
}
|
|
1263
|
-
function
|
|
1255
|
+
function Mt(n) {
|
|
1264
1256
|
return n instanceof x ? n.build() : n == null ? {} : typeof n == "object" ? be(n) : n;
|
|
1265
1257
|
}
|
|
1266
|
-
function
|
|
1258
|
+
function $t(n) {
|
|
1267
1259
|
const e = {};
|
|
1268
1260
|
for (const [t, s] of Object.entries(n))
|
|
1269
1261
|
e[t] = typeof s == "object" && s !== null ? be(s) : s;
|
|
@@ -1275,7 +1267,7 @@ function B(n) {
|
|
|
1275
1267
|
function M(n) {
|
|
1276
1268
|
return n.onBehalfOf ?? n.permissionFrom ?? "ownerChannel";
|
|
1277
1269
|
}
|
|
1278
|
-
class
|
|
1270
|
+
class xt {
|
|
1279
1271
|
constructor(e, t) {
|
|
1280
1272
|
this.parent = e, this.config = t;
|
|
1281
1273
|
}
|
|
@@ -1288,7 +1280,7 @@ class jt {
|
|
|
1288
1280
|
e,
|
|
1289
1281
|
"MyOS/Single Document Permission Grant Requested",
|
|
1290
1282
|
(r) => {
|
|
1291
|
-
r.put("onBehalfOf", B(this.config)), r.put("requestId", this.config.requestId), r.put("targetSessionId", t), r.put("permissions",
|
|
1283
|
+
r.put("onBehalfOf", B(this.config)), r.put("requestId", this.config.requestId), r.put("targetSessionId", t), r.put("permissions", Mt(s));
|
|
1292
1284
|
}
|
|
1293
1285
|
);
|
|
1294
1286
|
}
|
|
@@ -1378,7 +1370,7 @@ class jt {
|
|
|
1378
1370
|
);
|
|
1379
1371
|
}
|
|
1380
1372
|
}
|
|
1381
|
-
class
|
|
1373
|
+
class Bt {
|
|
1382
1374
|
constructor(e, t) {
|
|
1383
1375
|
this.parent = e, this.config = t;
|
|
1384
1376
|
}
|
|
@@ -1395,7 +1387,7 @@ class Nt {
|
|
|
1395
1387
|
e,
|
|
1396
1388
|
"MyOS/Linked Documents Permission Grant Requested",
|
|
1397
1389
|
(r) => {
|
|
1398
|
-
r.put("onBehalfOf", M(this.config)), r.put("requestId", this.config.requestId), r.put("targetSessionId", t), r.put("links",
|
|
1390
|
+
r.put("onBehalfOf", M(this.config)), r.put("requestId", this.config.requestId), r.put("targetSessionId", t), r.put("links", $t(s));
|
|
1399
1391
|
}
|
|
1400
1392
|
);
|
|
1401
1393
|
}
|
|
@@ -1490,7 +1482,7 @@ class Nt {
|
|
|
1490
1482
|
function Q(n) {
|
|
1491
1483
|
return n.onBehalfOf ?? n.permissionFrom ?? "ownerChannel";
|
|
1492
1484
|
}
|
|
1493
|
-
function
|
|
1485
|
+
function jt(n, e) {
|
|
1494
1486
|
return n.map((t) => ({
|
|
1495
1487
|
type: "MyOS/Worker Agency Permission",
|
|
1496
1488
|
workerType: t,
|
|
@@ -1500,15 +1492,15 @@ function Wt(n, e) {
|
|
|
1500
1492
|
}
|
|
1501
1493
|
}));
|
|
1502
1494
|
}
|
|
1503
|
-
function
|
|
1495
|
+
function Nt(n) {
|
|
1504
1496
|
return Array.isArray(n.allowedWorkerAgencyPermissions) ? n.allowedWorkerAgencyPermissions : typeof n.workerType == "string" || n.type === "MyOS/Worker Agency Permission" ? [n] : n;
|
|
1505
1497
|
}
|
|
1506
|
-
class
|
|
1498
|
+
class Wt {
|
|
1507
1499
|
constructor(e, t) {
|
|
1508
1500
|
this.parent = e, this.config = t;
|
|
1509
1501
|
}
|
|
1510
1502
|
defaultPermissions() {
|
|
1511
|
-
return
|
|
1503
|
+
return jt(
|
|
1512
1504
|
this.config.allowedTypes,
|
|
1513
1505
|
this.config.allowedOperations
|
|
1514
1506
|
);
|
|
@@ -1525,7 +1517,7 @@ class Ut {
|
|
|
1525
1517
|
);
|
|
1526
1518
|
}
|
|
1527
1519
|
);
|
|
1528
|
-
const s = e === void 0 ? this.defaultPermissions() :
|
|
1520
|
+
const s = e === void 0 ? this.defaultPermissions() : Nt(e), r = t;
|
|
1529
1521
|
return this.parent.myOs().grantWorkerAgencyPermission(
|
|
1530
1522
|
Q(this.config),
|
|
1531
1523
|
this.config.requestId,
|
|
@@ -1580,9 +1572,9 @@ class Ut {
|
|
|
1580
1572
|
);
|
|
1581
1573
|
}
|
|
1582
1574
|
startSessionWith(e, t, s, r) {
|
|
1583
|
-
const i = new
|
|
1575
|
+
const i = new At();
|
|
1584
1576
|
s?.(i);
|
|
1585
|
-
const o = new
|
|
1577
|
+
const o = new Tt();
|
|
1586
1578
|
return r?.(o), this.parent.myOs().startWorkerSession(
|
|
1587
1579
|
e,
|
|
1588
1580
|
t,
|
|
@@ -1635,7 +1627,7 @@ function qe(n, e) {
|
|
|
1635
1627
|
};
|
|
1636
1628
|
return e && e.length > 0 && (t.events = e), t;
|
|
1637
1629
|
}
|
|
1638
|
-
function
|
|
1630
|
+
function Lt(n) {
|
|
1639
1631
|
if (typeof n == "string" || typeof n == "function")
|
|
1640
1632
|
return { type: m(n) };
|
|
1641
1633
|
if (typeof n == "object" && n !== null && !Array.isArray(n)) {
|
|
@@ -1649,7 +1641,7 @@ function Ft(n) {
|
|
|
1649
1641
|
}
|
|
1650
1642
|
return { type: m(n) };
|
|
1651
1643
|
}
|
|
1652
|
-
class
|
|
1644
|
+
class Ut {
|
|
1653
1645
|
constructor(e, t = "myOsAdminChannel") {
|
|
1654
1646
|
this.parent = e, this.adminChannelKey = t;
|
|
1655
1647
|
}
|
|
@@ -1783,7 +1775,7 @@ class _t {
|
|
|
1783
1775
|
qe(
|
|
1784
1776
|
t,
|
|
1785
1777
|
s.map(
|
|
1786
|
-
(i) =>
|
|
1778
|
+
(i) => Lt(i)
|
|
1787
1779
|
)
|
|
1788
1780
|
)
|
|
1789
1781
|
);
|
|
@@ -1856,7 +1848,7 @@ class _t {
|
|
|
1856
1848
|
);
|
|
1857
1849
|
}
|
|
1858
1850
|
}
|
|
1859
|
-
class
|
|
1851
|
+
class Ft {
|
|
1860
1852
|
entries = [];
|
|
1861
1853
|
replaceValue(e, t) {
|
|
1862
1854
|
return this.entries.push({ op: "replace", path: e, val: t }), this;
|
|
@@ -1890,22 +1882,22 @@ class Ae {
|
|
|
1890
1882
|
return structuredClone(this.payload);
|
|
1891
1883
|
}
|
|
1892
1884
|
}
|
|
1893
|
-
function
|
|
1885
|
+
function _t(n) {
|
|
1894
1886
|
const e = n.trim();
|
|
1895
1887
|
if (e.length === 0)
|
|
1896
1888
|
throw new Error("step name is required");
|
|
1897
1889
|
return e;
|
|
1898
1890
|
}
|
|
1899
1891
|
function F(n, e, t) {
|
|
1900
|
-
return { name:
|
|
1892
|
+
return { name: _t(n), type: e, ...t };
|
|
1901
1893
|
}
|
|
1902
|
-
function
|
|
1894
|
+
function Kt(n, e) {
|
|
1903
1895
|
return {
|
|
1904
1896
|
type: m(n),
|
|
1905
1897
|
...e
|
|
1906
1898
|
};
|
|
1907
1899
|
}
|
|
1908
|
-
function
|
|
1900
|
+
function Gt(n) {
|
|
1909
1901
|
if (!n.processorName())
|
|
1910
1902
|
throw new Error("payment payload requires processor");
|
|
1911
1903
|
}
|
|
@@ -1920,7 +1912,7 @@ function Re(n, e) {
|
|
|
1920
1912
|
throw new Error(e);
|
|
1921
1913
|
return t;
|
|
1922
1914
|
}
|
|
1923
|
-
class
|
|
1915
|
+
class Jt {
|
|
1924
1916
|
constructor(e) {
|
|
1925
1917
|
this.parent = e;
|
|
1926
1918
|
}
|
|
@@ -1928,7 +1920,7 @@ class Qt {
|
|
|
1928
1920
|
return this.parent;
|
|
1929
1921
|
}
|
|
1930
1922
|
}
|
|
1931
|
-
class $ extends
|
|
1923
|
+
class $ extends Jt {
|
|
1932
1924
|
constructor(e, t) {
|
|
1933
1925
|
super(e), this.putValue = t;
|
|
1934
1926
|
}
|
|
@@ -1936,7 +1928,7 @@ class $ extends Qt {
|
|
|
1936
1928
|
return this.putValue(e, t), this;
|
|
1937
1929
|
}
|
|
1938
1930
|
}
|
|
1939
|
-
class
|
|
1931
|
+
class zt {
|
|
1940
1932
|
payload = {};
|
|
1941
1933
|
processorValue;
|
|
1942
1934
|
processor(e) {
|
|
@@ -2024,7 +2016,7 @@ class Yt {
|
|
|
2024
2016
|
return this.processorValue;
|
|
2025
2017
|
}
|
|
2026
2018
|
}
|
|
2027
|
-
class
|
|
2019
|
+
class Qt {
|
|
2028
2020
|
constructor(e) {
|
|
2029
2021
|
this.parent = e;
|
|
2030
2022
|
}
|
|
@@ -2119,7 +2111,7 @@ class Te {
|
|
|
2119
2111
|
);
|
|
2120
2112
|
}
|
|
2121
2113
|
}
|
|
2122
|
-
class
|
|
2114
|
+
class Yt {
|
|
2123
2115
|
constructor(e, t) {
|
|
2124
2116
|
this.parent = e, this.integration = t;
|
|
2125
2117
|
}
|
|
@@ -2147,7 +2139,7 @@ class Ht {
|
|
|
2147
2139
|
);
|
|
2148
2140
|
}
|
|
2149
2141
|
}
|
|
2150
|
-
class
|
|
2142
|
+
class Zt {
|
|
2151
2143
|
steps = [];
|
|
2152
2144
|
aiIntegrations;
|
|
2153
2145
|
accessConfigs;
|
|
@@ -2162,7 +2154,7 @@ class Xt {
|
|
|
2162
2154
|
return this.steps.push(F(e, "Conversation/JavaScript Code", { code: t })), this;
|
|
2163
2155
|
}
|
|
2164
2156
|
updateDocument(e, t) {
|
|
2165
|
-
const s = new
|
|
2157
|
+
const s = new Ft();
|
|
2166
2158
|
return t(s), this.steps.push(
|
|
2167
2159
|
F(e, "Conversation/Update Document", {
|
|
2168
2160
|
changeset: s.build()
|
|
@@ -2186,7 +2178,7 @@ class Xt {
|
|
|
2186
2178
|
const r = new Ae();
|
|
2187
2179
|
return s?.(r), this.steps.push(
|
|
2188
2180
|
F(e, "Conversation/Trigger Event", {
|
|
2189
|
-
event:
|
|
2181
|
+
event: Kt(t, r.build())
|
|
2190
2182
|
})
|
|
2191
2183
|
), this;
|
|
2192
2184
|
}
|
|
@@ -2228,7 +2220,7 @@ class Xt {
|
|
|
2228
2220
|
);
|
|
2229
2221
|
}
|
|
2230
2222
|
requestBackwardPayment(e, t) {
|
|
2231
|
-
return
|
|
2223
|
+
return Fe(
|
|
2232
2224
|
"PayNote/Backward Payment Requested",
|
|
2233
2225
|
"steps.requestBackwardPayment(...)"
|
|
2234
2226
|
), typeof e == "function" ? this.emitPaymentRequest(
|
|
@@ -2266,10 +2258,10 @@ class Xt {
|
|
|
2266
2258
|
);
|
|
2267
2259
|
}
|
|
2268
2260
|
capture() {
|
|
2269
|
-
return new
|
|
2261
|
+
return new Qt(this);
|
|
2270
2262
|
}
|
|
2271
2263
|
myOs(e = "myOsAdminChannel") {
|
|
2272
|
-
return new
|
|
2264
|
+
return new Ut(this, e);
|
|
2273
2265
|
}
|
|
2274
2266
|
askAI(e, t, s) {
|
|
2275
2267
|
if (typeof t == "function") {
|
|
@@ -2288,19 +2280,19 @@ class Xt {
|
|
|
2288
2280
|
return s(r), r.done(), this;
|
|
2289
2281
|
}
|
|
2290
2282
|
ai(e) {
|
|
2291
|
-
return new
|
|
2283
|
+
return new Yt(this, this.requireAiIntegration(e));
|
|
2292
2284
|
}
|
|
2293
2285
|
access(e) {
|
|
2294
|
-
return new
|
|
2286
|
+
return new xt(this, this.requireAccessConfig(e));
|
|
2295
2287
|
}
|
|
2296
2288
|
accessLinked(e) {
|
|
2297
|
-
return new
|
|
2289
|
+
return new Bt(
|
|
2298
2290
|
this,
|
|
2299
2291
|
this.requireLinkedAccessConfig(e)
|
|
2300
2292
|
);
|
|
2301
2293
|
}
|
|
2302
2294
|
viaAgency(e) {
|
|
2303
|
-
return new
|
|
2295
|
+
return new Wt(this, this.requireAgencyConfig(e));
|
|
2304
2296
|
}
|
|
2305
2297
|
raw(e) {
|
|
2306
2298
|
return this.steps.push(structuredClone(e)), this;
|
|
@@ -2309,8 +2301,8 @@ class Xt {
|
|
|
2309
2301
|
return structuredClone(this.steps);
|
|
2310
2302
|
}
|
|
2311
2303
|
emitPaymentRequest(e, t, s) {
|
|
2312
|
-
const r = new
|
|
2313
|
-
return s(r),
|
|
2304
|
+
const r = new zt();
|
|
2305
|
+
return s(r), Gt(r), this.emitType(e, t, (i) => {
|
|
2314
2306
|
for (const [o, c] of Object.entries(r.build()))
|
|
2315
2307
|
i.put(o, c);
|
|
2316
2308
|
});
|
|
@@ -2352,20 +2344,20 @@ function f(n, e) {
|
|
|
2352
2344
|
throw new Error(`${e} is required`);
|
|
2353
2345
|
return t;
|
|
2354
2346
|
}
|
|
2355
|
-
function
|
|
2347
|
+
function Ht(n) {
|
|
2356
2348
|
n.jsRaw("EmitEvents", "return { events: event.message.request };");
|
|
2357
2349
|
}
|
|
2358
|
-
function
|
|
2350
|
+
function Ge(n) {
|
|
2359
2351
|
return n.replace(/[^A-Za-z0-9]+/gu, "_").replace(/^_+|_+$/gu, "").toUpperCase();
|
|
2360
2352
|
}
|
|
2361
|
-
function
|
|
2353
|
+
function Xt(n) {
|
|
2362
2354
|
return n.endsWith("Channel") ? n.replace(/Channel$/u, "Update") : `${n}Update`;
|
|
2363
2355
|
}
|
|
2364
|
-
function
|
|
2356
|
+
function en(n) {
|
|
2365
2357
|
return P(n);
|
|
2366
2358
|
}
|
|
2367
|
-
function
|
|
2368
|
-
if (!
|
|
2359
|
+
function tn(n) {
|
|
2360
|
+
if (!en(n))
|
|
2369
2361
|
return {
|
|
2370
2362
|
eventType: m(n),
|
|
2371
2363
|
matcher: {}
|
|
@@ -2376,13 +2368,13 @@ function sn(n) {
|
|
|
2376
2368
|
matcher: e
|
|
2377
2369
|
};
|
|
2378
2370
|
}
|
|
2379
|
-
function
|
|
2371
|
+
function nn(n) {
|
|
2380
2372
|
return `${n}OnCallResponseEnvelope`;
|
|
2381
2373
|
}
|
|
2382
|
-
function
|
|
2383
|
-
return `Emit${
|
|
2374
|
+
function sn(n) {
|
|
2375
|
+
return `Emit${Ge(n)}OnCallResponseItems`;
|
|
2384
2376
|
}
|
|
2385
|
-
function
|
|
2377
|
+
function rn(n, e) {
|
|
2386
2378
|
const t = structuredClone(n);
|
|
2387
2379
|
t.requestId = e;
|
|
2388
2380
|
const s = P(
|
|
@@ -2390,7 +2382,7 @@ function an(n, e) {
|
|
|
2390
2382
|
) ? structuredClone(t.inResponseTo) : {};
|
|
2391
2383
|
return s.requestId = e, t.inResponseTo = s, t;
|
|
2392
2384
|
}
|
|
2393
|
-
function
|
|
2385
|
+
function on() {
|
|
2394
2386
|
return `const responses = Array.isArray(event.events) ? event.events : [];
|
|
2395
2387
|
return {
|
|
2396
2388
|
events: responses.filter(
|
|
@@ -2406,7 +2398,7 @@ class u {
|
|
|
2406
2398
|
agencyConfigs = /* @__PURE__ */ new Map();
|
|
2407
2399
|
callResponseEnvelopeWorkflows = /* @__PURE__ */ new Map();
|
|
2408
2400
|
constructor(e) {
|
|
2409
|
-
this.state = new
|
|
2401
|
+
this.state = new ht(e);
|
|
2410
2402
|
}
|
|
2411
2403
|
static doc() {
|
|
2412
2404
|
return new u();
|
|
@@ -2433,7 +2425,7 @@ class u {
|
|
|
2433
2425
|
return this.state.setType(m(e)), this;
|
|
2434
2426
|
}
|
|
2435
2427
|
field(e, t) {
|
|
2436
|
-
return arguments.length === 1 ? new
|
|
2428
|
+
return arguments.length === 1 ? new wt(this, e) : (this.state.setValue(e, t), this);
|
|
2437
2429
|
}
|
|
2438
2430
|
replace(e, t) {
|
|
2439
2431
|
return this.state.setValue(e, t), this;
|
|
@@ -2477,7 +2469,7 @@ class u {
|
|
|
2477
2469
|
}
|
|
2478
2470
|
operation(e, t, s, r, i) {
|
|
2479
2471
|
if (t === void 0)
|
|
2480
|
-
return new
|
|
2472
|
+
return new Vt(
|
|
2481
2473
|
this,
|
|
2482
2474
|
f(e, "operation key")
|
|
2483
2475
|
);
|
|
@@ -2650,22 +2642,22 @@ class u {
|
|
|
2650
2642
|
);
|
|
2651
2643
|
}
|
|
2652
2644
|
ai(e) {
|
|
2653
|
-
return this.myOsAdmin(), new
|
|
2645
|
+
return this.myOsAdmin(), new Ct(this, e);
|
|
2654
2646
|
}
|
|
2655
2647
|
access(e) {
|
|
2656
|
-
return this.myOsAdmin(), new
|
|
2648
|
+
return this.myOsAdmin(), new St(
|
|
2657
2649
|
this,
|
|
2658
2650
|
f(e, "access name")
|
|
2659
2651
|
);
|
|
2660
2652
|
}
|
|
2661
2653
|
accessLinked(e) {
|
|
2662
|
-
return this.myOsAdmin(), new
|
|
2654
|
+
return this.myOsAdmin(), new Ot(
|
|
2663
2655
|
this,
|
|
2664
2656
|
f(e, "linked access name")
|
|
2665
2657
|
);
|
|
2666
2658
|
}
|
|
2667
2659
|
agency(e) {
|
|
2668
|
-
return this.myOsAdmin(), new
|
|
2660
|
+
return this.myOsAdmin(), new qt(
|
|
2669
2661
|
this,
|
|
2670
2662
|
f(e, "agency name")
|
|
2671
2663
|
);
|
|
@@ -2846,13 +2838,13 @@ class u {
|
|
|
2846
2838
|
},
|
|
2847
2839
|
s
|
|
2848
2840
|
);
|
|
2849
|
-
const o = f(t, "workflow key"), c =
|
|
2841
|
+
const o = f(t, "workflow key"), c = tn(
|
|
2850
2842
|
s
|
|
2851
2843
|
);
|
|
2852
2844
|
return this.ensureCallResponseEnvelopeWorkflow(e, o), this.onTriggeredWithMatcher(
|
|
2853
2845
|
o,
|
|
2854
2846
|
c.eventType,
|
|
2855
|
-
|
|
2847
|
+
rn(c.matcher, i.requestId),
|
|
2856
2848
|
r
|
|
2857
2849
|
);
|
|
2858
2850
|
}
|
|
@@ -2979,7 +2971,7 @@ class u {
|
|
|
2979
2971
|
tasks: structuredClone(e.tasks)
|
|
2980
2972
|
};
|
|
2981
2973
|
this.aiIntegrations.set(t, i), this.state.setValue(i.statusPath, "idle"), this.state.setValue(i.contextPath, {});
|
|
2982
|
-
const o =
|
|
2974
|
+
const o = Ge(t), c = (h) => {
|
|
2983
2975
|
h.myOs().requestSingleDocPermission(
|
|
2984
2976
|
i.permissionFrom,
|
|
2985
2977
|
i.requestId,
|
|
@@ -3045,7 +3037,7 @@ class u {
|
|
|
3045
3037
|
return this.agencyConfigs.set(e.name, structuredClone(e)), this;
|
|
3046
3038
|
}
|
|
3047
3039
|
canEmit(e, ...t) {
|
|
3048
|
-
const s = f(e, "channel key"), r =
|
|
3040
|
+
const s = f(e, "channel key"), r = Xt(s), i = { type: "List" };
|
|
3049
3041
|
return t.length > 0 && (i.events = t.map((o) => ({
|
|
3050
3042
|
type: m(o)
|
|
3051
3043
|
}))), this.applyOperationDefinition({
|
|
@@ -3054,7 +3046,7 @@ class u {
|
|
|
3054
3046
|
description: "Operation for emitting events through channel",
|
|
3055
3047
|
request: i,
|
|
3056
3048
|
clearRequest: !1,
|
|
3057
|
-
steps: this.buildSteps(
|
|
3049
|
+
steps: this.buildSteps(Ht)
|
|
3058
3050
|
}), this;
|
|
3059
3051
|
}
|
|
3060
3052
|
contractsPolicy(e = !0, t = "contractsPolicy") {
|
|
@@ -3208,7 +3200,7 @@ class u {
|
|
|
3208
3200
|
return e(t), t.build();
|
|
3209
3201
|
}
|
|
3210
3202
|
createStepsBuilder() {
|
|
3211
|
-
return new
|
|
3203
|
+
return new Zt({
|
|
3212
3204
|
aiIntegrations: Object.fromEntries(this.aiIntegrations.entries()),
|
|
3213
3205
|
accessConfigs: Object.fromEntries(this.accessConfigs.entries()),
|
|
3214
3206
|
linkedAccessConfigs: Object.fromEntries(
|
|
@@ -3280,13 +3272,13 @@ class u {
|
|
|
3280
3272
|
const s = f(e, "access name"), r = this.callResponseEnvelopeWorkflows.get(s);
|
|
3281
3273
|
if (r)
|
|
3282
3274
|
return r;
|
|
3283
|
-
const i =
|
|
3275
|
+
const i = nn(t);
|
|
3284
3276
|
return this.onEvent(
|
|
3285
3277
|
i,
|
|
3286
3278
|
"MyOS/Call Operation Responded",
|
|
3287
3279
|
(o) => o.jsRaw(
|
|
3288
|
-
|
|
3289
|
-
|
|
3280
|
+
sn(t),
|
|
3281
|
+
on()
|
|
3290
3282
|
)
|
|
3291
3283
|
), this.callResponseEnvelopeWorkflows.set(
|
|
3292
3284
|
s,
|
|
@@ -3341,32 +3333,32 @@ class y extends u {
|
|
|
3341
3333
|
return new y(this.documentToJson(e));
|
|
3342
3334
|
}
|
|
3343
3335
|
}
|
|
3344
|
-
function
|
|
3336
|
+
function an(n) {
|
|
3345
3337
|
const e = n.trim();
|
|
3346
3338
|
if (e.length === 0)
|
|
3347
3339
|
throw new Error("channelKey is required");
|
|
3348
3340
|
return e;
|
|
3349
3341
|
}
|
|
3350
|
-
function
|
|
3351
|
-
const t = W(
|
|
3342
|
+
function Je(n, e) {
|
|
3343
|
+
const t = W(an(n));
|
|
3352
3344
|
return {
|
|
3353
3345
|
[e]: "${document('/contracts/" + t + "/" + e + "')}"
|
|
3354
3346
|
};
|
|
3355
3347
|
}
|
|
3356
3348
|
function we(n) {
|
|
3357
|
-
return
|
|
3349
|
+
return Je(n, "accountId");
|
|
3358
3350
|
}
|
|
3359
|
-
function
|
|
3360
|
-
return
|
|
3351
|
+
function os(n) {
|
|
3352
|
+
return Je(n, "email");
|
|
3361
3353
|
}
|
|
3362
|
-
const
|
|
3354
|
+
const cn = /* @__PURE__ */ new Set([
|
|
3363
3355
|
"name",
|
|
3364
3356
|
"description",
|
|
3365
3357
|
"type",
|
|
3366
3358
|
"contracts",
|
|
3367
3359
|
"policies"
|
|
3368
3360
|
]);
|
|
3369
|
-
function
|
|
3361
|
+
function un(n) {
|
|
3370
3362
|
return Array.isArray(n.fields) && Array.isArray(n.contracts) && Array.isArray(n.sections) && Array.isArray(n.policies) && Array.isArray(n.unclassifiedContracts);
|
|
3371
3363
|
}
|
|
3372
3364
|
function Ee(n) {
|
|
@@ -3378,10 +3370,10 @@ function _(n) {
|
|
|
3378
3370
|
function X(n) {
|
|
3379
3371
|
return Object.keys(n).sort((e, t) => e.localeCompare(t));
|
|
3380
3372
|
}
|
|
3381
|
-
function
|
|
3373
|
+
function ln(n) {
|
|
3382
3374
|
return Array.isArray(n) ? "array" : !n || typeof n != "object" ? "primitive" : typeof n.type == "string" ? "typed-node-like object" : "object";
|
|
3383
3375
|
}
|
|
3384
|
-
function
|
|
3376
|
+
function hn(n) {
|
|
3385
3377
|
if (n === null)
|
|
3386
3378
|
return "null";
|
|
3387
3379
|
if (typeof n == "string")
|
|
@@ -3393,14 +3385,14 @@ function dn(n) {
|
|
|
3393
3385
|
const e = n;
|
|
3394
3386
|
return typeof e.type == "string" ? `<${e.type}>` : `{${Object.keys(e).length} keys}`;
|
|
3395
3387
|
}
|
|
3396
|
-
function
|
|
3397
|
-
const s =
|
|
3388
|
+
function ze(n, e, t) {
|
|
3389
|
+
const s = ln(n);
|
|
3398
3390
|
if (s === "primitive" || s === "array" || s === "typed-node-like object") {
|
|
3399
3391
|
t.push({
|
|
3400
3392
|
path: e,
|
|
3401
3393
|
value: structuredClone(n),
|
|
3402
3394
|
kind: s,
|
|
3403
|
-
valuePreview:
|
|
3395
|
+
valuePreview: hn(n)
|
|
3404
3396
|
});
|
|
3405
3397
|
return;
|
|
3406
3398
|
}
|
|
@@ -3415,7 +3407,7 @@ function Qe(n, e, t) {
|
|
|
3415
3407
|
return;
|
|
3416
3408
|
}
|
|
3417
3409
|
for (const o of i)
|
|
3418
|
-
|
|
3410
|
+
ze(
|
|
3419
3411
|
r[o],
|
|
3420
3412
|
`${e}/${W(o)}`,
|
|
3421
3413
|
t
|
|
@@ -3431,7 +3423,7 @@ function Ce(n) {
|
|
|
3431
3423
|
(t) => `${JSON.stringify(t)}:${Ce(e[t])}`
|
|
3432
3424
|
).join(",")}}`;
|
|
3433
3425
|
}
|
|
3434
|
-
function
|
|
3426
|
+
function pn(n) {
|
|
3435
3427
|
const e = Ce(n);
|
|
3436
3428
|
let t = 2166136261, s = 2166136261;
|
|
3437
3429
|
for (let o = 0; o < e.length; o += 1) {
|
|
@@ -3441,10 +3433,10 @@ function mn(n) {
|
|
|
3441
3433
|
const r = (t >>> 0).toString(16).padStart(8, "0"), i = (s >>> 0).toString(16).padStart(8, "0");
|
|
3442
3434
|
return `${r}${i}${r}${i}${r}${i}${r}${i}`;
|
|
3443
3435
|
}
|
|
3444
|
-
function
|
|
3436
|
+
function dn(n) {
|
|
3445
3437
|
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";
|
|
3446
3438
|
}
|
|
3447
|
-
function
|
|
3439
|
+
function mn(n) {
|
|
3448
3440
|
const e = {};
|
|
3449
3441
|
for (const t of n)
|
|
3450
3442
|
for (const s of t.relatedContracts)
|
|
@@ -3455,7 +3447,7 @@ function Ve(n) {
|
|
|
3455
3447
|
const e = [], t = n.requireSectionChanges;
|
|
3456
3448
|
return typeof t == "boolean" && e.push(`requireSectionChanges=${String(t)}`), e.length === 0 ? `keys=${Object.keys(n).length}` : e.join(", ");
|
|
3457
3449
|
}
|
|
3458
|
-
function
|
|
3450
|
+
function fn(n) {
|
|
3459
3451
|
return `Document: ${n ?? "(unnamed)"}`;
|
|
3460
3452
|
}
|
|
3461
3453
|
class J {
|
|
@@ -3475,11 +3467,11 @@ class J {
|
|
|
3475
3467
|
static from(e) {
|
|
3476
3468
|
if (e instanceof J)
|
|
3477
3469
|
return e;
|
|
3478
|
-
if (!(e instanceof N) &&
|
|
3470
|
+
if (!(e instanceof N) && un(e))
|
|
3479
3471
|
return new J(e);
|
|
3480
3472
|
const t = e instanceof N ? ce(e) : structuredClone(e), s = [];
|
|
3481
3473
|
for (const a of X(t))
|
|
3482
|
-
|
|
3474
|
+
cn.has(a) || ze(
|
|
3483
3475
|
t[a],
|
|
3484
3476
|
`/${W(a)}`,
|
|
3485
3477
|
s
|
|
@@ -3490,7 +3482,7 @@ class J {
|
|
|
3490
3482
|
i.push({
|
|
3491
3483
|
key: a,
|
|
3492
3484
|
type: O,
|
|
3493
|
-
kind:
|
|
3485
|
+
kind: dn(O),
|
|
3494
3486
|
raw: structuredClone(d)
|
|
3495
3487
|
});
|
|
3496
3488
|
}
|
|
@@ -3513,7 +3505,7 @@ class J {
|
|
|
3513
3505
|
(b, ue) => b.localeCompare(ue)
|
|
3514
3506
|
)
|
|
3515
3507
|
};
|
|
3516
|
-
}).sort((a, d) => a.key.localeCompare(d.key)), c =
|
|
3508
|
+
}).sort((a, d) => a.key.localeCompare(d.key)), c = mn(o), h = i.map(
|
|
3517
3509
|
(a) => {
|
|
3518
3510
|
const d = _(a.raw.request), O = _(a.raw.event);
|
|
3519
3511
|
return {
|
|
@@ -3521,7 +3513,7 @@ class J {
|
|
|
3521
3513
|
type: a.type,
|
|
3522
3514
|
kind: a.kind,
|
|
3523
3515
|
raw: structuredClone(a.raw),
|
|
3524
|
-
fingerprint:
|
|
3516
|
+
fingerprint: pn(a.raw),
|
|
3525
3517
|
sectionKeys: [
|
|
3526
3518
|
...c[a.key] ?? /* @__PURE__ */ new Set()
|
|
3527
3519
|
].sort((w, E) => w.localeCompare(E)),
|
|
@@ -3582,7 +3574,7 @@ class J {
|
|
|
3582
3574
|
});
|
|
3583
3575
|
}
|
|
3584
3576
|
toPromptText() {
|
|
3585
|
-
const e = [
|
|
3577
|
+
const e = [fn(this.name)];
|
|
3586
3578
|
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)
|
|
3587
3579
|
e.push("- none");
|
|
3588
3580
|
else
|
|
@@ -3641,7 +3633,7 @@ function ve(n, e) {
|
|
|
3641
3633
|
}
|
|
3642
3634
|
return !1;
|
|
3643
3635
|
}
|
|
3644
|
-
function
|
|
3636
|
+
function Qe(n, e, t, s) {
|
|
3645
3637
|
if (!ve(n, e)) {
|
|
3646
3638
|
if (Array.isArray(n) || Array.isArray(e)) {
|
|
3647
3639
|
s.push({
|
|
@@ -3671,7 +3663,7 @@ function Ye(n, e, t, s) {
|
|
|
3671
3663
|
});
|
|
3672
3664
|
continue;
|
|
3673
3665
|
}
|
|
3674
|
-
|
|
3666
|
+
Qe(
|
|
3675
3667
|
n[o],
|
|
3676
3668
|
e[o],
|
|
3677
3669
|
pe(t, o),
|
|
@@ -3687,14 +3679,14 @@ function Ye(n, e, t, s) {
|
|
|
3687
3679
|
});
|
|
3688
3680
|
}
|
|
3689
3681
|
}
|
|
3690
|
-
function
|
|
3682
|
+
function Ye(n, e) {
|
|
3691
3683
|
const t = [];
|
|
3692
|
-
return
|
|
3684
|
+
return Qe(n, e, "", t), t;
|
|
3693
3685
|
}
|
|
3694
3686
|
function de(n) {
|
|
3695
3687
|
return n instanceof N ? ce(n) : structuredClone(n);
|
|
3696
3688
|
}
|
|
3697
|
-
function
|
|
3689
|
+
function gn(n) {
|
|
3698
3690
|
for (const e of n)
|
|
3699
3691
|
if (!e.path.startsWith("/"))
|
|
3700
3692
|
throw new Error(
|
|
@@ -3704,14 +3696,14 @@ function Cn(n) {
|
|
|
3704
3696
|
function Me(n) {
|
|
3705
3697
|
return `/contracts/${W(n)}`;
|
|
3706
3698
|
}
|
|
3707
|
-
class
|
|
3699
|
+
class Ze {
|
|
3708
3700
|
originalJson;
|
|
3709
3701
|
nextJson;
|
|
3710
3702
|
constructor(e) {
|
|
3711
3703
|
this.originalJson = structuredClone(e), this.nextJson = structuredClone(e);
|
|
3712
3704
|
}
|
|
3713
3705
|
static from(e) {
|
|
3714
|
-
return new
|
|
3706
|
+
return new Ze(de(e));
|
|
3715
3707
|
}
|
|
3716
3708
|
diff(e) {
|
|
3717
3709
|
return this.nextJson = de(e), this;
|
|
@@ -3737,8 +3729,8 @@ class He {
|
|
|
3737
3729
|
return H(this.nextJson, Me(e)), this;
|
|
3738
3730
|
}
|
|
3739
3731
|
build() {
|
|
3740
|
-
const e =
|
|
3741
|
-
return
|
|
3732
|
+
const e = Ye(this.originalJson, this.nextJson);
|
|
3733
|
+
return gn(e), e;
|
|
3742
3734
|
}
|
|
3743
3735
|
apply(e) {
|
|
3744
3736
|
if (e === void 0)
|
|
@@ -3759,7 +3751,7 @@ class He {
|
|
|
3759
3751
|
const s = this.build();
|
|
3760
3752
|
let r = t ? e : e.clone();
|
|
3761
3753
|
for (const i of s)
|
|
3762
|
-
r =
|
|
3754
|
+
r = nt(
|
|
3763
3755
|
r,
|
|
3764
3756
|
i,
|
|
3765
3757
|
!0
|
|
@@ -3802,12 +3794,12 @@ function xe(n, e) {
|
|
|
3802
3794
|
const t = structuredClone(n);
|
|
3803
3795
|
return delete t[e], t;
|
|
3804
3796
|
}
|
|
3805
|
-
function
|
|
3797
|
+
function yn(n) {
|
|
3806
3798
|
const e = n.key.toLowerCase(), t = (n.type ?? "").toLowerCase();
|
|
3807
3799
|
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";
|
|
3808
3800
|
}
|
|
3809
|
-
function
|
|
3810
|
-
return e ?
|
|
3801
|
+
function Cn(n, e) {
|
|
3802
|
+
return e ? yn(e) : n.toLowerCase().includes("channel") ? "participants" : "misc";
|
|
3811
3803
|
}
|
|
3812
3804
|
function Be(n) {
|
|
3813
3805
|
const e = {};
|
|
@@ -3815,7 +3807,7 @@ function Be(n) {
|
|
|
3815
3807
|
e[t.key] = t;
|
|
3816
3808
|
return e;
|
|
3817
3809
|
}
|
|
3818
|
-
function
|
|
3810
|
+
function vn(n, e, t) {
|
|
3819
3811
|
const s = e?.sectionKeys ?? [];
|
|
3820
3812
|
if (s.length > 0)
|
|
3821
3813
|
return [...s].sort(
|
|
@@ -3826,11 +3818,11 @@ function kn(n, e, t) {
|
|
|
3826
3818
|
(i, o) => i.localeCompare(o)
|
|
3827
3819
|
)[0] : t;
|
|
3828
3820
|
}
|
|
3829
|
-
function
|
|
3821
|
+
function Sn(n, e) {
|
|
3830
3822
|
const t = L(n), s = L(e), r = xe(t, "contracts"), i = xe(s, "contracts");
|
|
3831
|
-
return
|
|
3823
|
+
return Ye(r, i);
|
|
3832
3824
|
}
|
|
3833
|
-
function
|
|
3825
|
+
function kn(n, e) {
|
|
3834
3826
|
const t = L(n), s = L(e), r = G(t.contracts) ?? {}, i = G(s.contracts) ?? {}, o = [
|
|
3835
3827
|
.../* @__PURE__ */ new Set([
|
|
3836
3828
|
...Se(r),
|
|
@@ -3842,7 +3834,7 @@ function bn(n, e) {
|
|
|
3842
3834
|
r[l]
|
|
3843
3835
|
), d = G(
|
|
3844
3836
|
i[l]
|
|
3845
|
-
), O = p[l], w = g[l], E =
|
|
3837
|
+
), O = p[l], w = g[l], E = Cn(l, w ?? O), b = vn(O, w, E);
|
|
3846
3838
|
if (!a && d) {
|
|
3847
3839
|
k.push({
|
|
3848
3840
|
op: "add",
|
|
@@ -3891,7 +3883,7 @@ function bn(n, e) {
|
|
|
3891
3883
|
return d[l.op] - d[a.op];
|
|
3892
3884
|
});
|
|
3893
3885
|
}
|
|
3894
|
-
function
|
|
3886
|
+
function On(n) {
|
|
3895
3887
|
const e = {};
|
|
3896
3888
|
for (const t of n)
|
|
3897
3889
|
e[t.sectionKey] || (e[t.sectionKey] = []), e[t.sectionKey]?.push(t);
|
|
@@ -3912,7 +3904,7 @@ function In(n) {
|
|
|
3912
3904
|
};
|
|
3913
3905
|
});
|
|
3914
3906
|
}
|
|
3915
|
-
function
|
|
3907
|
+
function bn(n) {
|
|
3916
3908
|
const e = /* @__PURE__ */ new Map();
|
|
3917
3909
|
for (const t of n) {
|
|
3918
3910
|
const s = t.sectionKey !== t.bucket, r = s ? `section:${t.sectionKey}` : `bucket:${t.bucket}`, i = e.get(r);
|
|
@@ -3934,11 +3926,11 @@ function Pn(n) {
|
|
|
3934
3926
|
)
|
|
3935
3927
|
})).sort((t, s) => t.key.localeCompare(s.key));
|
|
3936
3928
|
}
|
|
3937
|
-
function
|
|
3929
|
+
function In(n, e) {
|
|
3938
3930
|
const t = [];
|
|
3939
3931
|
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;
|
|
3940
3932
|
}
|
|
3941
|
-
function
|
|
3933
|
+
function Pn(n, e, t, s) {
|
|
3942
3934
|
const r = L(n), i = L(e), o = !!G(r.contracts), c = !!G(i.contracts), h = [...t], p = s.filter(
|
|
3943
3935
|
(l) => l.op === "add" || l.op === "replace"
|
|
3944
3936
|
);
|
|
@@ -3995,7 +3987,7 @@ function Ne(n) {
|
|
|
3995
3987
|
changes: n.changes.map(q)
|
|
3996
3988
|
};
|
|
3997
3989
|
}
|
|
3998
|
-
class
|
|
3990
|
+
class qn {
|
|
3999
3991
|
rootChanges;
|
|
4000
3992
|
contractChanges;
|
|
4001
3993
|
sectionChanges;
|
|
@@ -4047,7 +4039,7 @@ class Rn {
|
|
|
4047
4039
|
`);
|
|
4048
4040
|
}
|
|
4049
4041
|
}
|
|
4050
|
-
function
|
|
4042
|
+
function as(n, e) {
|
|
4051
4043
|
const t = L(n);
|
|
4052
4044
|
for (const s of e.patchOperations) {
|
|
4053
4045
|
if (s.op === "remove") {
|
|
@@ -4058,24 +4050,24 @@ function us(n, e) {
|
|
|
4058
4050
|
}
|
|
4059
4051
|
return t;
|
|
4060
4052
|
}
|
|
4061
|
-
class
|
|
4053
|
+
class cs {
|
|
4062
4054
|
static compile(e, t) {
|
|
4063
|
-
const s =
|
|
4055
|
+
const s = Sn(e, t), r = kn(
|
|
4064
4056
|
e,
|
|
4065
4057
|
t
|
|
4066
|
-
), i =
|
|
4058
|
+
), i = On(r), o = r.filter(
|
|
4067
4059
|
(l) => l.op === "add"
|
|
4068
4060
|
), c = r.filter(
|
|
4069
4061
|
(l) => l.op === "replace"
|
|
4070
4062
|
), h = r.filter(
|
|
4071
4063
|
(l) => l.op === "remove"
|
|
4072
|
-
), p =
|
|
4064
|
+
), p = bn(r), g = In(s, r), k = Pn(
|
|
4073
4065
|
e,
|
|
4074
4066
|
t,
|
|
4075
4067
|
s,
|
|
4076
4068
|
r
|
|
4077
4069
|
);
|
|
4078
|
-
return new
|
|
4070
|
+
return new qn({
|
|
4079
4071
|
rootChanges: s,
|
|
4080
4072
|
contractChanges: r,
|
|
4081
4073
|
sectionChanges: i,
|
|
@@ -4091,14 +4083,14 @@ class ls {
|
|
|
4091
4083
|
function se(n) {
|
|
4092
4084
|
return m(n).replace(/[^A-Za-z0-9]+/gu, " ").trim().replace(/\s+/gu, "");
|
|
4093
4085
|
}
|
|
4094
|
-
function
|
|
4086
|
+
function An(n) {
|
|
4095
4087
|
const e = Number(n);
|
|
4096
4088
|
if (Number.isNaN(e))
|
|
4097
4089
|
throw new Error(`invalid major amount: ${n}`);
|
|
4098
4090
|
return Math.round(e * 100);
|
|
4099
4091
|
}
|
|
4100
4092
|
function T(n, e) {
|
|
4101
|
-
const t = (s) => (
|
|
4093
|
+
const t = (s) => (Fe(
|
|
4102
4094
|
s,
|
|
4103
4095
|
`payNotes.${n}().${e} helper`
|
|
4104
4096
|
), s);
|
|
@@ -4220,7 +4212,7 @@ class Ie extends u {
|
|
|
4220
4212
|
return this.field("/amount/total", e), this;
|
|
4221
4213
|
}
|
|
4222
4214
|
amountMajor(e) {
|
|
4223
|
-
return this.field("/amount/total",
|
|
4215
|
+
return this.field("/amount/total", An(e)), this;
|
|
4224
4216
|
}
|
|
4225
4217
|
capture() {
|
|
4226
4218
|
return new me(this, "capture");
|
|
@@ -4243,7 +4235,7 @@ class I {
|
|
|
4243
4235
|
return Ie.create(e);
|
|
4244
4236
|
}
|
|
4245
4237
|
}
|
|
4246
|
-
function
|
|
4238
|
+
function Rn() {
|
|
4247
4239
|
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(
|
|
4248
4240
|
"requestProviderAccess",
|
|
4249
4241
|
(n) => n.myOs().requestSingleDocPermission(
|
|
@@ -4262,7 +4254,7 @@ function wn() {
|
|
|
4262
4254
|
).replaceValue("MarkReady", "/status", "ready")
|
|
4263
4255
|
).buildDocument();
|
|
4264
4256
|
}
|
|
4265
|
-
function
|
|
4257
|
+
function Tn() {
|
|
4266
4258
|
return y.doc().name("Collaboration Setup Agent").description("Adds Bob as participant and marks setup progress.").channel("aliceChannel").myOsAdmin("myOsAdminChannel").onInit(
|
|
4267
4259
|
"addBob",
|
|
4268
4260
|
(n) => n.myOs().addParticipant("bobChannel", "bob@gmail.com")
|
|
@@ -4276,7 +4268,7 @@ function En() {
|
|
|
4276
4268
|
(n) => n.replaceValue("Activate", "/status", "active")
|
|
4277
4269
|
).buildDocument();
|
|
4278
4270
|
}
|
|
4279
|
-
function
|
|
4271
|
+
function wn() {
|
|
4280
4272
|
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(
|
|
4281
4273
|
"onTriggerChanged",
|
|
4282
4274
|
"/trigger",
|
|
@@ -4291,7 +4283,7 @@ function Vn() {
|
|
|
4291
4283
|
(n) => n.replaceValue("MarkQueued", "/remoteCallStatus", "queued")
|
|
4292
4284
|
).buildDocument();
|
|
4293
4285
|
}
|
|
4294
|
-
function
|
|
4286
|
+
function En() {
|
|
4295
4287
|
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(
|
|
4296
4288
|
"requestAccess",
|
|
4297
4289
|
(n) => n.myOs().requestSingleDocPermission(
|
|
@@ -4315,7 +4307,7 @@ function Dn() {
|
|
|
4315
4307
|
)
|
|
4316
4308
|
).buildDocument();
|
|
4317
4309
|
}
|
|
4318
|
-
function
|
|
4310
|
+
function Vn() {
|
|
4319
4311
|
return u.doc().name("Procurement Orchestrator").description(
|
|
4320
4312
|
"Accesses catalog data and starts worker sessions through agency."
|
|
4321
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(u.expr("document('/catalogSessionId')")).onBehalfOf("userChannel").read(!0).operations("search", "getDetails").requestPermissionOnInit().subscribeAfterGranted().statusPath("/catalog/status").done().ai("planner").sessionId(u.expr("document('/plannerSessionId')")).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(
|
|
@@ -4359,14 +4351,14 @@ function Mn() {
|
|
|
4359
4351
|
)
|
|
4360
4352
|
).endSection().buildDocument();
|
|
4361
4353
|
}
|
|
4362
|
-
function
|
|
4354
|
+
function Dn() {
|
|
4363
4355
|
return u.doc().name("Linked Access Monitor").channel("ownerChannel").field("/projectSessionId", "session-project-99").accessLinked("projectData").targetSessionId(u.expr("document('/projectSessionId')")).onBehalfOf("ownerChannel").link("invoices").read(!0).operations("list", "get").done().link("shipments").read(!0).operations("track").done().statusPath("/projectData/status").done().onLinkedAccessGranted(
|
|
4364
4356
|
"projectData",
|
|
4365
4357
|
"onLinkedGranted",
|
|
4366
4358
|
(n) => n.replaceValue("MarkReady", "/projectData/ready", !0)
|
|
4367
4359
|
).buildDocument();
|
|
4368
4360
|
}
|
|
4369
|
-
function
|
|
4361
|
+
function Mn() {
|
|
4370
4362
|
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(
|
|
4371
4363
|
"requestWeatherAccess",
|
|
4372
4364
|
(n) => n.myOs().requestSingleDocPermission(
|
|
@@ -4390,7 +4382,7 @@ function xn() {
|
|
|
4390
4382
|
(n) => n.replaceValue("MarkReady", "/status", "monitoring")
|
|
4391
4383
|
).buildDocument();
|
|
4392
4384
|
}
|
|
4393
|
-
function
|
|
4385
|
+
function $n() {
|
|
4394
4386
|
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(
|
|
4395
4387
|
"requestLlmAccess",
|
|
4396
4388
|
(n) => n.myOs().requestSingleDocPermission(
|
|
@@ -4428,7 +4420,7 @@ function Bn() {
|
|
|
4428
4420
|
(n) => n.replaceValue("MarkFailed", "/analysisStatus", "failed")
|
|
4429
4421
|
).buildDocument();
|
|
4430
4422
|
}
|
|
4431
|
-
function
|
|
4423
|
+
function xn() {
|
|
4432
4424
|
return y.doc().name("Team Setup Agent").description("Adds participants and marks setup progress.").channel("managerChannel").myOsAdmin("myOsAdminChannel").field("/status", "setting-up").onInit(
|
|
4433
4425
|
"addTeamMembers",
|
|
4434
4426
|
(n) => n.myOs().addParticipant("aliceChannel", "alice@company.com").myOs().addParticipant("bobChannel", "bob@company.com")
|
|
@@ -4446,7 +4438,7 @@ function jn() {
|
|
|
4446
4438
|
(n) => n.replaceValue("MarkReady", "/status", "ready")
|
|
4447
4439
|
).buildDocument();
|
|
4448
4440
|
}
|
|
4449
|
-
function
|
|
4441
|
+
function Bn() {
|
|
4450
4442
|
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(
|
|
4451
4443
|
"requestInvoiceAccess",
|
|
4452
4444
|
(n) => n.myOs().requestLinkedDocsPermission(
|
|
@@ -4475,7 +4467,7 @@ function Nn() {
|
|
|
4475
4467
|
)
|
|
4476
4468
|
).buildDocument();
|
|
4477
4469
|
}
|
|
4478
|
-
function
|
|
4470
|
+
function jn() {
|
|
4479
4471
|
return y.doc().name("Recruitment Classifier").description(
|
|
4480
4472
|
"Requests access, subscribes, and invokes provider classification."
|
|
4481
4473
|
).channel("recruitmentChannel").myOsAdmin("myOsAdminChannel").field("/recruitmentSessionId", "session-recruitment-001").field("/llmProviderSessionId", "session-llm-001").field("/cvSubscriptionId", "SUB_RECRUITMENT_CVS").onInit(
|
|
@@ -4533,7 +4525,7 @@ function Wn() {
|
|
|
4533
4525
|
)
|
|
4534
4526
|
).buildDocument();
|
|
4535
4527
|
}
|
|
4536
|
-
function
|
|
4528
|
+
function Nn() {
|
|
4537
4529
|
return u.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(u.expr("document('/catalogSessionId')")).onBehalfOf("userChannel").read(!0).operations("search", "getDetails").subscribeAfterGranted().statusPath("/catalog/status").done().ai("planner").sessionId(u.expr("document('/plannerSessionId')")).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(
|
|
4538
4530
|
(n) => n.myOs().callOperation(
|
|
4539
4531
|
"userChannel",
|
|
@@ -4573,7 +4565,7 @@ function Ln() {
|
|
|
4573
4565
|
(n) => n.replaceValue("MarkStarted", "/negotiation/status", "started")
|
|
4574
4566
|
).buildDocument();
|
|
4575
4567
|
}
|
|
4576
|
-
function
|
|
4568
|
+
function Wn() {
|
|
4577
4569
|
return u.doc().name("Linked Access Permissions").description("Shows accessLinked() with multiple link permission blocks.").channel("ownerChannel").field("/projectSessionId", "session-project-88").accessLinked("projectData").targetSessionId(u.expr("document('/projectSessionId')")).onBehalfOf("ownerChannel").statusPath("/projectData/status").link("invoices").read(!0).operations("list", "get").done().link("shipments").read(!0).operations("track").done().done().onLinkedAccessGranted(
|
|
4578
4570
|
"projectData",
|
|
4579
4571
|
"onProjectDataGranted",
|
|
@@ -4584,7 +4576,7 @@ function Un() {
|
|
|
4584
4576
|
(n) => n.replaceValue("MarkRevoked", "/projectData/revoked", !0)
|
|
4585
4577
|
).buildDocument();
|
|
4586
4578
|
}
|
|
4587
|
-
function
|
|
4579
|
+
function He() {
|
|
4588
4580
|
return I.payNote("Balanced Bowl Voucher - 100 USD").description(
|
|
4589
4581
|
"Reserve voucher budget and capture spending reported by merchant monitoring."
|
|
4590
4582
|
).currency("USD").amountMinor(1e4).channel("merchantChannel", {
|
|
@@ -4603,13 +4595,13 @@ function Xe() {
|
|
|
4603
4595
|
})
|
|
4604
4596
|
);
|
|
4605
4597
|
}
|
|
4606
|
-
function
|
|
4607
|
-
return
|
|
4598
|
+
function Xe() {
|
|
4599
|
+
return He().buildJson();
|
|
4608
4600
|
}
|
|
4609
|
-
function
|
|
4610
|
-
return
|
|
4601
|
+
function Ln() {
|
|
4602
|
+
return He().buildDocument();
|
|
4611
4603
|
}
|
|
4612
|
-
function
|
|
4604
|
+
function Un() {
|
|
4613
4605
|
return I.payNote("Armchair Protection + Voucher").description(
|
|
4614
4606
|
"Capture unlocks after buyer satisfaction, then a voucher payment is requested."
|
|
4615
4607
|
).currency("USD").amountMinor(1e4).capture().lockOnInit().unlockOnOperation(
|
|
@@ -4623,11 +4615,11 @@ function _n() {
|
|
|
4623
4615
|
(n) => n.triggerPayment(
|
|
4624
4616
|
"VoucherCredit",
|
|
4625
4617
|
"Conversation/Event",
|
|
4626
|
-
(e) => e.processor("guarantorChannel").from("payeeChannel").to("payerChannel").currency("USD").amountMinor(1e4).reason("voucher-activation").attachPayNote(
|
|
4618
|
+
(e) => e.processor("guarantorChannel").from("payeeChannel").to("payerChannel").currency("USD").amountMinor(1e4).reason("voucher-activation").attachPayNote(Xe())
|
|
4627
4619
|
)
|
|
4628
4620
|
).buildDocument();
|
|
4629
4621
|
}
|
|
4630
|
-
function
|
|
4622
|
+
function Fn() {
|
|
4631
4623
|
return I.payNote("Shipment Escrow - Simple").description("Capture is locked until guarantor confirms delivery.").currency("USD").amountMinor(12e4).channel("shipmentCompanyChannel", {
|
|
4632
4624
|
type: "Conversation/Timeline Channel",
|
|
4633
4625
|
timelineId: "shipment-timeline"
|
|
@@ -4638,7 +4630,7 @@ function Kn() {
|
|
|
4638
4630
|
(n) => n.emitType("DeliveryConfirmed", "Conversation/Event")
|
|
4639
4631
|
).done().buildDocument();
|
|
4640
4632
|
}
|
|
4641
|
-
function
|
|
4633
|
+
function _n() {
|
|
4642
4634
|
return I.payNote("Capture Triggered From Channel Event").description(
|
|
4643
4635
|
"Shipment channel emits shipment confirmation, then the document captures funds."
|
|
4644
4636
|
).currency("USD").amountMinor(9e4).channel("shipmentCompanyChannel", {
|
|
@@ -4655,14 +4647,14 @@ function Gn() {
|
|
|
4655
4647
|
(n) => n.capture().requestNow()
|
|
4656
4648
|
).buildDocument();
|
|
4657
4649
|
}
|
|
4658
|
-
function
|
|
4650
|
+
function Kn() {
|
|
4659
4651
|
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(
|
|
4660
4652
|
"captureAfterDeliveryPathUpdate",
|
|
4661
4653
|
"/delivery/confirmedAt",
|
|
4662
4654
|
(n) => n.capture().requestNow()
|
|
4663
4655
|
).buildDocument();
|
|
4664
4656
|
}
|
|
4665
|
-
function
|
|
4657
|
+
function Gn() {
|
|
4666
4658
|
return I.payNote("Reserve On Approval Then Capture On Confirmation").description(
|
|
4667
4659
|
"Reserve unlocks when /approved changes; capture unlocks on delivery confirmation."
|
|
4668
4660
|
).currency("USD").amountMinor(25e4).reserve().requestOnInit().done().onEvent(
|
|
@@ -4679,7 +4671,7 @@ function zn() {
|
|
|
4679
4671
|
"Request full capture after confirmation."
|
|
4680
4672
|
).done().buildDocument();
|
|
4681
4673
|
}
|
|
4682
|
-
function
|
|
4674
|
+
function Jn() {
|
|
4683
4675
|
return I.payNote("Reserve Immediately Release On Dispute").description(
|
|
4684
4676
|
"Reserve on init; payer can open dispute for full reservation release."
|
|
4685
4677
|
).currency("EUR").amountMinor(75e3).reserve().requestOnInit().done().capture().requestOnOperation(
|
|
@@ -4692,7 +4684,7 @@ function Qn() {
|
|
|
4692
4684
|
"Payer opens dispute for full release."
|
|
4693
4685
|
).done().buildDocument();
|
|
4694
4686
|
}
|
|
4695
|
-
function
|
|
4687
|
+
function zn() {
|
|
4696
4688
|
return I.payNote("Milestone Reserve Partial Capture").description("Reserve full amount; guarantor approves milestone captures.").currency("USD").amountMinor(2e6).reserve().requestOnInit().done().capture().requestPartialOnOperation(
|
|
4697
4689
|
"approveMilestone1",
|
|
4698
4690
|
"guarantorChannel",
|
|
@@ -4720,7 +4712,7 @@ function Yn() {
|
|
|
4720
4712
|
"Release unfinished work."
|
|
4721
4713
|
).done().buildDocument();
|
|
4722
4714
|
}
|
|
4723
|
-
function
|
|
4715
|
+
function Qn() {
|
|
4724
4716
|
return I.payNote("Reserve After KYC Capture On Settlement").description(
|
|
4725
4717
|
"Reserve unlocks after KYC; capture unlocks on settlement confirmation."
|
|
4726
4718
|
).currency("CHF").amountMinor(5e6).reserve().requestOnInit().done().capture().lockOnInit().unlockOnDocPathChange("/settlement/confirmed").requestOnDocPathChange("/settlement/confirmed").done().release().requestOnOperation(
|
|
@@ -4729,7 +4721,7 @@ function Zn() {
|
|
|
4729
4721
|
"Reject and release if KYC fails."
|
|
4730
4722
|
).done().buildDocument();
|
|
4731
4723
|
}
|
|
4732
|
-
function
|
|
4724
|
+
function Yn() {
|
|
4733
4725
|
return I.payNote("Release Locked Until Window Opens").description(
|
|
4734
4726
|
"Capture runs on init; release unlocks only after guarantor opens a window."
|
|
4735
4727
|
).currency("USD").amountMinor(19900).reserve().requestOnInit().done().capture().requestOnInit().done().release().requestOnOperation(
|
|
@@ -4742,7 +4734,7 @@ function Hn() {
|
|
|
4742
4734
|
"Payer requests full release."
|
|
4743
4735
|
).done().buildDocument();
|
|
4744
4736
|
}
|
|
4745
|
-
function
|
|
4737
|
+
function Zn() {
|
|
4746
4738
|
return I.payNote("Armchair With Voucher Bootstrap").currency("USD").amountMinor(8e4).capture().lockOnInit().unlockOnOperation(
|
|
4747
4739
|
"confirmSatisfaction",
|
|
4748
4740
|
"payerChannel",
|
|
@@ -4752,7 +4744,7 @@ function Xn() {
|
|
|
4752
4744
|
"PayNote/Funds Captured",
|
|
4753
4745
|
(n) => n.myOs().bootstrapDocument(
|
|
4754
4746
|
"BootstrapVoucherDoc",
|
|
4755
|
-
|
|
4747
|
+
Xe(),
|
|
4756
4748
|
{
|
|
4757
4749
|
payerChannel: {
|
|
4758
4750
|
type: "Conversation/Timeline Channel",
|
|
@@ -4783,12 +4775,12 @@ function Xn() {
|
|
|
4783
4775
|
(n) => n.replaceValue("MarkFailed", "/voucher/status", "failed")
|
|
4784
4776
|
).buildDocument();
|
|
4785
4777
|
}
|
|
4786
|
-
function
|
|
4778
|
+
function Hn() {
|
|
4787
4779
|
return y.doc().name("Orchestrated Document").channel("orchestratorChannel").channel("aliceChannel").channel("bobChannel").onInit(
|
|
4788
4780
|
"bootstrapChild",
|
|
4789
4781
|
(n) => n.bootstrapDocument(
|
|
4790
4782
|
"BootstrapChildDoc",
|
|
4791
|
-
|
|
4783
|
+
es(),
|
|
4792
4784
|
{
|
|
4793
4785
|
participantA: {
|
|
4794
4786
|
type: "Conversation/Timeline Channel",
|
|
@@ -4816,12 +4808,12 @@ function es() {
|
|
|
4816
4808
|
)
|
|
4817
4809
|
).buildDocument();
|
|
4818
4810
|
}
|
|
4819
|
-
function
|
|
4811
|
+
function Xn() {
|
|
4820
4812
|
return y.doc().name("With Messages").channel("sellerChannel", { type: "MyOS/MyOS Timeline Channel" }).channel("buyerChannel", { type: "MyOS/MyOS Timeline Channel" }).myOsAdmin("myOsAdminChannel").onInit(
|
|
4821
4813
|
"bootstrapDeal",
|
|
4822
4814
|
(n) => n.myOs().bootstrapDocument(
|
|
4823
4815
|
"BootstrapDeal",
|
|
4824
|
-
|
|
4816
|
+
ts(),
|
|
4825
4817
|
{
|
|
4826
4818
|
sellerChannel: we("sellerChannel"),
|
|
4827
4819
|
buyerChannel: we("buyerChannel")
|
|
@@ -4838,121 +4830,121 @@ function ts() {
|
|
|
4838
4830
|
)
|
|
4839
4831
|
).buildDocument();
|
|
4840
4832
|
}
|
|
4841
|
-
function
|
|
4833
|
+
function es() {
|
|
4842
4834
|
return y.doc().name("Child Collaboration").channel("participantA").channel("participantB").buildJson();
|
|
4843
4835
|
}
|
|
4844
|
-
function
|
|
4836
|
+
function ts() {
|
|
4845
4837
|
return y.doc().name("Deal").channel("sellerChannel").channel("buyerChannel").field("/status", "draft").buildJson();
|
|
4846
4838
|
}
|
|
4847
|
-
function
|
|
4839
|
+
function us() {
|
|
4848
4840
|
return {
|
|
4849
|
-
simpleAgentWithPermissions:
|
|
4850
|
-
agentAddsParticipantAndWaits:
|
|
4851
|
-
agentCallsRemoteOperation:
|
|
4852
|
-
cvClassifierAgent:
|
|
4853
|
-
orchestratorWithAccessAndAgency:
|
|
4854
|
-
linkedAccessMonitor:
|
|
4855
|
-
simplePermissionAndSubscribe:
|
|
4856
|
-
callRemoteOperation:
|
|
4857
|
-
addParticipantsDynamically:
|
|
4858
|
-
linkedDocsWithUpdates:
|
|
4859
|
-
cvClassifierFull:
|
|
4860
|
-
accessAndAgencyOrchestrator:
|
|
4861
|
-
linkedAccessPermissions:
|
|
4862
|
-
bootstrapVoucherOnCapture:
|
|
4863
|
-
bootstrapViaOrchestrator:
|
|
4864
|
-
bootstrapWithMessages:
|
|
4865
|
-
shipmentEscrowSimple:
|
|
4866
|
-
captureTriggeredFromChannelEvent:
|
|
4867
|
-
captureTriggeredFromDocUpdate:
|
|
4868
|
-
reserveOnApprovalThenCaptureOnConfirmation:
|
|
4869
|
-
reserveImmediatelyReleaseOnDispute:
|
|
4870
|
-
milestoneReservePartialCapture:
|
|
4871
|
-
reserveLockedUntilKycThenCaptureOnSettlement:
|
|
4872
|
-
releaseLockedUntilWindowOpens:
|
|
4873
|
-
armchairProtectionWithVoucherPayNoteTemplate:
|
|
4874
|
-
balancedBowlVoucherPayNoteTemplate:
|
|
4841
|
+
simpleAgentWithPermissions: Rn(),
|
|
4842
|
+
agentAddsParticipantAndWaits: Tn(),
|
|
4843
|
+
agentCallsRemoteOperation: wn(),
|
|
4844
|
+
cvClassifierAgent: En(),
|
|
4845
|
+
orchestratorWithAccessAndAgency: Vn(),
|
|
4846
|
+
linkedAccessMonitor: Dn(),
|
|
4847
|
+
simplePermissionAndSubscribe: Mn(),
|
|
4848
|
+
callRemoteOperation: $n(),
|
|
4849
|
+
addParticipantsDynamically: xn(),
|
|
4850
|
+
linkedDocsWithUpdates: Bn(),
|
|
4851
|
+
cvClassifierFull: jn(),
|
|
4852
|
+
accessAndAgencyOrchestrator: Nn(),
|
|
4853
|
+
linkedAccessPermissions: Wn(),
|
|
4854
|
+
bootstrapVoucherOnCapture: Zn(),
|
|
4855
|
+
bootstrapViaOrchestrator: Hn(),
|
|
4856
|
+
bootstrapWithMessages: Xn(),
|
|
4857
|
+
shipmentEscrowSimple: Fn(),
|
|
4858
|
+
captureTriggeredFromChannelEvent: _n(),
|
|
4859
|
+
captureTriggeredFromDocUpdate: Kn(),
|
|
4860
|
+
reserveOnApprovalThenCaptureOnConfirmation: Gn(),
|
|
4861
|
+
reserveImmediatelyReleaseOnDispute: Jn(),
|
|
4862
|
+
milestoneReservePartialCapture: zn(),
|
|
4863
|
+
reserveLockedUntilKycThenCaptureOnSettlement: Qn(),
|
|
4864
|
+
releaseLockedUntilWindowOpens: Yn(),
|
|
4865
|
+
armchairProtectionWithVoucherPayNoteTemplate: Un(),
|
|
4866
|
+
balancedBowlVoucherPayNoteTemplate: Ln()
|
|
4875
4867
|
};
|
|
4876
4868
|
}
|
|
4877
4869
|
export {
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4870
|
+
Yt as AISteps,
|
|
4871
|
+
St as AccessBuilder,
|
|
4872
|
+
xt as AccessSteps,
|
|
4873
|
+
At as AgencyBindingsBuilder,
|
|
4874
|
+
qt as AgencyBuilder,
|
|
4875
|
+
Rt as AgencyCapabilitiesBuilder,
|
|
4876
|
+
Tt as AgencyOptionsBuilder,
|
|
4877
|
+
Wt as AgencySteps,
|
|
4878
|
+
Ct as AiIntegrationBuilder,
|
|
4879
|
+
yt as AiTaskBuilder,
|
|
4888
4880
|
K as BasicBlueTypes,
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4881
|
+
cs as BlueChangeCompiler,
|
|
4882
|
+
qn as BlueChangePlan,
|
|
4883
|
+
Qt as CaptureStepBuilder,
|
|
4884
|
+
Ft as ChangesetBuilder,
|
|
4893
4885
|
u as DocBuilder,
|
|
4894
|
-
|
|
4895
|
-
|
|
4886
|
+
ht as DocJsonState,
|
|
4887
|
+
Ze as DocPatch,
|
|
4896
4888
|
J as DocStructure,
|
|
4897
4889
|
Ae as EventPayloadBuilder,
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4890
|
+
wt as FieldBuilder,
|
|
4891
|
+
Ot as LinkedAccessBuilder,
|
|
4892
|
+
Bt as LinkedAccessSteps,
|
|
4901
4893
|
x as MyOsPermissions,
|
|
4902
|
-
|
|
4903
|
-
|
|
4894
|
+
Ut as MyOsSteps,
|
|
4895
|
+
Vt as OperationBuilder,
|
|
4904
4896
|
me as PayNoteActionBuilder,
|
|
4905
4897
|
Ie as PayNoteBuilder,
|
|
4906
4898
|
I as PayNotes,
|
|
4907
|
-
|
|
4899
|
+
zt as PaymentRequestPayloadBuilder,
|
|
4908
4900
|
Y as RuntimeEventTypes,
|
|
4909
4901
|
y as SimpleDocBuilder,
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4902
|
+
Zt as StepsBuilder,
|
|
4903
|
+
Nn as accessAndAgencyOrchestrator,
|
|
4904
|
+
xn as addParticipantsDynamically,
|
|
4905
|
+
Tn as agentAddsParticipantAndWaits,
|
|
4906
|
+
wn as agentCallsRemoteOperation,
|
|
4907
|
+
us as allJavaSandboxSampleDocs,
|
|
4908
|
+
as as applyBlueChangePlan,
|
|
4909
|
+
Un as armchairProtectionWithVoucherPayNoteTemplate,
|
|
4910
|
+
Fe as assertRepositoryTypeAliasAvailable,
|
|
4911
|
+
Ln as balancedBowlVoucherPayNoteTemplate,
|
|
4912
|
+
Hn as bootstrapViaOrchestrator,
|
|
4913
|
+
Zn as bootstrapVoucherOnCapture,
|
|
4914
|
+
Xn as bootstrapWithMessages,
|
|
4915
|
+
$n as callRemoteOperationSample,
|
|
4916
|
+
_n as captureTriggeredFromChannelEvent,
|
|
4917
|
+
Kn as captureTriggeredFromDocUpdate,
|
|
4918
|
+
kn as compileContractChanges,
|
|
4919
|
+
Sn as compileRootChanges,
|
|
4920
|
+
En as cvClassifierAgent,
|
|
4921
|
+
jn as cvClassifierFull,
|
|
4922
|
+
Ye as diffJsonDocuments,
|
|
4931
4923
|
A as ensureExpression,
|
|
4932
4924
|
W as escapePointerSegment,
|
|
4933
4925
|
we as fromChannel,
|
|
4934
|
-
|
|
4926
|
+
os as fromEmail,
|
|
4935
4927
|
ie as fromJsonDocument,
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4928
|
+
ct as getPointer,
|
|
4929
|
+
gt as isRepositoryTypeAliasAvailable,
|
|
4930
|
+
Dn as linkedAccessMonitor,
|
|
4931
|
+
Wn as linkedAccessPermissions,
|
|
4932
|
+
Bn as linkedDocsWithUpdates,
|
|
4933
|
+
zn as milestoneReservePartialCapture,
|
|
4942
4934
|
be as normalizeMyOsPermissionObject,
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4935
|
+
_e as normalizeTypeLike,
|
|
4936
|
+
Vn as orchestratorWithAccessAndAgency,
|
|
4937
|
+
Yn as releaseLockedUntilWindowOpens,
|
|
4946
4938
|
H as removePointer,
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4939
|
+
Jn as reserveImmediatelyReleaseOnDispute,
|
|
4940
|
+
Qn as reserveLockedUntilKycThenCaptureOnSettlement,
|
|
4941
|
+
Gn as reserveOnApprovalThenCaptureOnConfirmation,
|
|
4950
4942
|
te as sdkBlue,
|
|
4951
4943
|
Z as setPointer,
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4944
|
+
Fn as shipmentEscrowSimple,
|
|
4945
|
+
Rn as simpleAgentWithPermissions,
|
|
4946
|
+
Mn as simplePermissionAndSubscribe,
|
|
4955
4947
|
ce as toOfficialJson,
|
|
4956
|
-
|
|
4948
|
+
is as toOfficialYaml,
|
|
4957
4949
|
m as toTypeAlias
|
|
4958
4950
|
};
|