@coasys/ad4m-connect 0.13.1-staging.4 → 0.13.1-staging.5
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/core.js +158 -97
- package/dist/core.js.map +3 -3
- package/dist/index.js +158 -97
- package/dist/index.js.map +3 -3
- package/dist/utils.js +1 -1
- package/dist/web.js +152 -97
- package/dist/web.js.map +3 -3
- package/package.json +3 -3
package/dist/core.js
CHANGED
|
@@ -39,7 +39,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
// ../package.json
|
|
42
|
-
var version = "0.13.1-staging.
|
|
42
|
+
var version = "0.13.1-staging.5";
|
|
43
43
|
|
|
44
44
|
// src/utils.ts
|
|
45
45
|
function isEmbedded() {
|
|
@@ -349,6 +349,7 @@ var LONG_METHODS = /* @__PURE__ */ new Set([
|
|
|
349
349
|
"language.publish",
|
|
350
350
|
"neighbourhood.join",
|
|
351
351
|
"neighbourhood.publish",
|
|
352
|
+
"perspective.runAgent",
|
|
352
353
|
"perspective.runInterpretation",
|
|
353
354
|
"perspective.runInterpretationWithHarness",
|
|
354
355
|
"runtime.restartHolochain"
|
|
@@ -1628,6 +1629,7 @@ var SfuManager = class {
|
|
|
1628
1629
|
this.rosterUnsubscribe = null;
|
|
1629
1630
|
this.dataChannelUnsubscribe = null;
|
|
1630
1631
|
this.disconnectedTimer = null;
|
|
1632
|
+
this.unlistedTimer = null;
|
|
1631
1633
|
this.neighbourhood = neighbourhood;
|
|
1632
1634
|
this.neighbourhoodUrl = neighbourhoodUrl || "";
|
|
1633
1635
|
this.roomId = roomId;
|
|
@@ -1851,6 +1853,28 @@ var SfuManager = class {
|
|
|
1851
1853
|
this.renegotiationUnsubscribe = null;
|
|
1852
1854
|
this.rosterUnsubscribe?.();
|
|
1853
1855
|
this.rosterUnsubscribe = null;
|
|
1856
|
+
this.clearUnlistedTimer();
|
|
1857
|
+
}
|
|
1858
|
+
clearUnlistedTimer() {
|
|
1859
|
+
if (this.unlistedTimer) {
|
|
1860
|
+
clearTimeout(this.unlistedTimer);
|
|
1861
|
+
this.unlistedTimer = null;
|
|
1862
|
+
}
|
|
1863
|
+
}
|
|
1864
|
+
noticeRoster(pc, dids) {
|
|
1865
|
+
if (dids.includes(this.agentDid)) {
|
|
1866
|
+
this.clearUnlistedTimer();
|
|
1867
|
+
return;
|
|
1868
|
+
}
|
|
1869
|
+
if (this.unlistedTimer)
|
|
1870
|
+
return;
|
|
1871
|
+
this.unlistedTimer = setTimeout(() => {
|
|
1872
|
+
this.unlistedTimer = null;
|
|
1873
|
+
if (this.state.peerConnection !== pc)
|
|
1874
|
+
return;
|
|
1875
|
+
console.info("SFU: the room no longer lists this session, rebuilding the call");
|
|
1876
|
+
void this.reconnect();
|
|
1877
|
+
}, SfuManager.UNLISTED_GRACE_MS);
|
|
1854
1878
|
}
|
|
1855
1879
|
abandon(pc) {
|
|
1856
1880
|
this.releaseServerEvents();
|
|
@@ -1870,8 +1894,10 @@ var SfuManager = class {
|
|
|
1870
1894
|
if (!ours(roster) || this.state.peerConnection !== pc)
|
|
1871
1895
|
return;
|
|
1872
1896
|
void joined.then(() => {
|
|
1873
|
-
if (this.state.peerConnection
|
|
1874
|
-
|
|
1897
|
+
if (this.state.peerConnection !== pc)
|
|
1898
|
+
return;
|
|
1899
|
+
this.applyRoster(roster.participants, true);
|
|
1900
|
+
this.noticeRoster(pc, roster.participants);
|
|
1875
1901
|
});
|
|
1876
1902
|
});
|
|
1877
1903
|
for (const unsubscribe of previous)
|
|
@@ -2037,6 +2063,7 @@ var SfuManager = class {
|
|
|
2037
2063
|
SfuManager.MAX_RECONNECTS = 3;
|
|
2038
2064
|
SfuManager.REJOIN_WINDOW_MS = 12e4;
|
|
2039
2065
|
SfuManager.DISCONNECT_GRACE_MS = 1e4;
|
|
2066
|
+
SfuManager.UNLISTED_GRACE_MS = 3e3;
|
|
2040
2067
|
var CALL_PROTOCOL_VERSION = 1;
|
|
2041
2068
|
function parseCallMessage(payload) {
|
|
2042
2069
|
if (typeof payload !== "object" || payload === null)
|
|
@@ -5576,6 +5603,9 @@ var PerspectiveProxy = class {
|
|
|
5576
5603
|
async runInterpretationWithHarness(transcript, basePrefix, maxToolCalls, classes, modelOverride, observationId, emitDebugEvents, options) {
|
|
5577
5604
|
return await __classPrivateFieldGet$6(this, _PerspectiveProxy_client, "f").runInterpretationWithHarness(__classPrivateFieldGet$6(this, _PerspectiveProxy_handle, "f").uuid, transcript, basePrefix, maxToolCalls, classes, modelOverride, void 0, observationId, emitDebugEvents, options);
|
|
5578
5605
|
}
|
|
5606
|
+
async runAgent(messages2, settings, options) {
|
|
5607
|
+
return await __classPrivateFieldGet$6(this, _PerspectiveProxy_client, "f").runAgent(__classPrivateFieldGet$6(this, _PerspectiveProxy_handle, "f").uuid, messages2, settings, options);
|
|
5608
|
+
}
|
|
5579
5609
|
async addAutoProcessor(config) {
|
|
5580
5610
|
return await __classPrivateFieldGet$6(this, _PerspectiveProxy_client, "f").addAutoProcessor(__classPrivateFieldGet$6(this, _PerspectiveProxy_handle, "f").uuid, config);
|
|
5581
5611
|
}
|
|
@@ -6612,6 +6642,9 @@ var PerspectiveClient = class {
|
|
|
6612
6642
|
emitDebugEvents
|
|
6613
6643
|
}, options);
|
|
6614
6644
|
}
|
|
6645
|
+
async runAgent(uuid, messages2, settings, options) {
|
|
6646
|
+
return __classPrivateFieldGet$5(this, _PerspectiveClient_apiClient, "f").call("perspective.runAgent", { uuid, messages: messages2, ...settings }, options);
|
|
6647
|
+
}
|
|
6615
6648
|
async addAutoProcessor(uuid, config) {
|
|
6616
6649
|
return __classPrivateFieldGet$5(this, _PerspectiveClient_apiClient, "f").call("perspective.addAutoProcessor", { ...config, uuid });
|
|
6617
6650
|
}
|
|
@@ -13521,7 +13554,7 @@ var ExceptionType;
|
|
|
13521
13554
|
})(ExceptionType || (ExceptionType = {}));
|
|
13522
13555
|
var LanguageExpression = class extends ExpressionGeneric() {
|
|
13523
13556
|
};
|
|
13524
|
-
var __decorate$
|
|
13557
|
+
var __decorate$4 = function(decorators, target, key, desc) {
|
|
13525
13558
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13526
13559
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
13527
13560
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -13531,7 +13564,7 @@ var __decorate$3 = function(decorators, target, key, desc) {
|
|
|
13531
13564
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13532
13565
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13533
13566
|
};
|
|
13534
|
-
var __metadata$
|
|
13567
|
+
var __metadata$4 = function(k, v) {
|
|
13535
13568
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
13536
13569
|
return Reflect.metadata(k, v);
|
|
13537
13570
|
};
|
|
@@ -13547,71 +13580,71 @@ var AutoProcessorConfig = class AutoProcessorConfig2 extends Ad4mModel {
|
|
|
13547
13580
|
this.claimTtlMs = "60000";
|
|
13548
13581
|
}
|
|
13549
13582
|
};
|
|
13550
|
-
__decorate$
|
|
13583
|
+
__decorate$4([
|
|
13551
13584
|
Property({ through: "ad4m://processor_id", required: true, identity: true }),
|
|
13552
|
-
__metadata$
|
|
13585
|
+
__metadata$4("design:type", String)
|
|
13553
13586
|
], AutoProcessorConfig.prototype, "processorId", void 0);
|
|
13554
|
-
__decorate$
|
|
13587
|
+
__decorate$4([
|
|
13555
13588
|
Property({ through: "ad4m://source_scope_query", required: true }),
|
|
13556
|
-
__metadata$
|
|
13589
|
+
__metadata$4("design:type", String)
|
|
13557
13590
|
], AutoProcessorConfig.prototype, "sourceScopeQuery", void 0);
|
|
13558
|
-
__decorate$
|
|
13591
|
+
__decorate$4([
|
|
13559
13592
|
Optional({ through: "ad4m://base_prefix" }),
|
|
13560
|
-
__metadata$
|
|
13593
|
+
__metadata$4("design:type", String)
|
|
13561
13594
|
], AutoProcessorConfig.prototype, "basePrefix", void 0);
|
|
13562
|
-
__decorate$
|
|
13595
|
+
__decorate$4([
|
|
13563
13596
|
HasMany({ through: "ad4m://interpretation_class", datatype: "xsd:string" }),
|
|
13564
|
-
__metadata$
|
|
13597
|
+
__metadata$4("design:type", Array)
|
|
13565
13598
|
], AutoProcessorConfig.prototype, "interpretationClasses", void 0);
|
|
13566
|
-
__decorate$
|
|
13599
|
+
__decorate$4([
|
|
13567
13600
|
HasMany({ through: "ad4m://flow", datatype: "xsd:string" }),
|
|
13568
|
-
__metadata$
|
|
13601
|
+
__metadata$4("design:type", Array)
|
|
13569
13602
|
], AutoProcessorConfig.prototype, "flows", void 0);
|
|
13570
|
-
__decorate$
|
|
13603
|
+
__decorate$4([
|
|
13571
13604
|
Property({ through: "ad4m://debounce_ms", required: true }),
|
|
13572
|
-
__metadata$
|
|
13605
|
+
__metadata$4("design:type", String)
|
|
13573
13606
|
], AutoProcessorConfig.prototype, "debounceMs", void 0);
|
|
13574
|
-
__decorate$
|
|
13607
|
+
__decorate$4([
|
|
13575
13608
|
Optional({ through: "ad4m://batch_min" }),
|
|
13576
|
-
__metadata$
|
|
13609
|
+
__metadata$4("design:type", String)
|
|
13577
13610
|
], AutoProcessorConfig.prototype, "batchMin", void 0);
|
|
13578
|
-
__decorate$
|
|
13611
|
+
__decorate$4([
|
|
13579
13612
|
Property({ through: "ad4m://batch_max", required: true }),
|
|
13580
|
-
__metadata$
|
|
13613
|
+
__metadata$4("design:type", String)
|
|
13581
13614
|
], AutoProcessorConfig.prototype, "batchMax", void 0);
|
|
13582
|
-
__decorate$
|
|
13615
|
+
__decorate$4([
|
|
13583
13616
|
Optional({ through: "ad4m://max_wait_ms" }),
|
|
13584
|
-
__metadata$
|
|
13617
|
+
__metadata$4("design:type", String)
|
|
13585
13618
|
], AutoProcessorConfig.prototype, "maxWaitMs", void 0);
|
|
13586
|
-
__decorate$
|
|
13619
|
+
__decorate$4([
|
|
13587
13620
|
Property({ through: "ad4m://claim_ttl_ms", required: true }),
|
|
13588
|
-
__metadata$
|
|
13621
|
+
__metadata$4("design:type", String)
|
|
13589
13622
|
], AutoProcessorConfig.prototype, "claimTtlMs", void 0);
|
|
13590
|
-
__decorate$
|
|
13623
|
+
__decorate$4([
|
|
13591
13624
|
Optional({ through: "ad4m://source_window_ms" }),
|
|
13592
|
-
__metadata$
|
|
13625
|
+
__metadata$4("design:type", String)
|
|
13593
13626
|
], AutoProcessorConfig.prototype, "sourceWindowMs", void 0);
|
|
13594
|
-
__decorate$
|
|
13627
|
+
__decorate$4([
|
|
13595
13628
|
Optional({ through: "ad4m://dedup_strategy" }),
|
|
13596
|
-
__metadata$
|
|
13629
|
+
__metadata$4("design:type", String)
|
|
13597
13630
|
], AutoProcessorConfig.prototype, "dedupStrategy", void 0);
|
|
13598
|
-
__decorate$
|
|
13631
|
+
__decorate$4([
|
|
13599
13632
|
Optional({ through: "ad4m://existing_scope" }),
|
|
13600
|
-
__metadata$
|
|
13633
|
+
__metadata$4("design:type", String)
|
|
13601
13634
|
], AutoProcessorConfig.prototype, "existingScope", void 0);
|
|
13602
|
-
__decorate$
|
|
13635
|
+
__decorate$4([
|
|
13603
13636
|
Optional({ through: "ad4m://mint_scope" }),
|
|
13604
|
-
__metadata$
|
|
13637
|
+
__metadata$4("design:type", String)
|
|
13605
13638
|
], AutoProcessorConfig.prototype, "mintScope", void 0);
|
|
13606
|
-
__decorate$
|
|
13639
|
+
__decorate$4([
|
|
13607
13640
|
Optional({ through: "ad4m://max_tool_calls" }),
|
|
13608
|
-
__metadata$
|
|
13641
|
+
__metadata$4("design:type", String)
|
|
13609
13642
|
], AutoProcessorConfig.prototype, "maxToolCalls", void 0);
|
|
13610
|
-
__decorate$
|
|
13643
|
+
__decorate$4([
|
|
13611
13644
|
Optional({ through: "ad4m://emit_debug_events", resolveLanguage: "literal" }),
|
|
13612
|
-
__metadata$
|
|
13645
|
+
__metadata$4("design:type", String)
|
|
13613
13646
|
], AutoProcessorConfig.prototype, "emitDebugEvents", void 0);
|
|
13614
|
-
AutoProcessorConfig = __decorate$
|
|
13647
|
+
AutoProcessorConfig = __decorate$4([
|
|
13615
13648
|
Model$1({ name: "AutoProcessor" })
|
|
13616
13649
|
], AutoProcessorConfig);
|
|
13617
13650
|
var InterpretationRun = class InterpretationRun2 extends Ad4mModel {
|
|
@@ -13621,39 +13654,39 @@ var InterpretationRun = class InterpretationRun2 extends Ad4mModel {
|
|
|
13621
13654
|
this.sources = [];
|
|
13622
13655
|
}
|
|
13623
13656
|
};
|
|
13624
|
-
__decorate$
|
|
13657
|
+
__decorate$4([
|
|
13625
13658
|
Property({ through: "ad4m://interp/run_id", required: true, identity: true }),
|
|
13626
|
-
__metadata$
|
|
13659
|
+
__metadata$4("design:type", String)
|
|
13627
13660
|
], InterpretationRun.prototype, "runId", void 0);
|
|
13628
|
-
__decorate$
|
|
13661
|
+
__decorate$4([
|
|
13629
13662
|
Optional({ through: "ad4m://interp/model" }),
|
|
13630
|
-
__metadata$
|
|
13663
|
+
__metadata$4("design:type", String)
|
|
13631
13664
|
], InterpretationRun.prototype, "model", void 0);
|
|
13632
|
-
__decorate$
|
|
13665
|
+
__decorate$4([
|
|
13633
13666
|
Optional({ through: "ad4m://interp/prompt_version" }),
|
|
13634
|
-
__metadata$
|
|
13667
|
+
__metadata$4("design:type", String)
|
|
13635
13668
|
], InterpretationRun.prototype, "promptVersion", void 0);
|
|
13636
|
-
__decorate$
|
|
13669
|
+
__decorate$4([
|
|
13637
13670
|
Optional({ through: "ad4m://interp/ran_at" }),
|
|
13638
|
-
__metadata$
|
|
13671
|
+
__metadata$4("design:type", String)
|
|
13639
13672
|
], InterpretationRun.prototype, "ranAt", void 0);
|
|
13640
|
-
__decorate$
|
|
13673
|
+
__decorate$4([
|
|
13641
13674
|
Optional({ through: "ad4m://interp/processor" }),
|
|
13642
|
-
__metadata$
|
|
13675
|
+
__metadata$4("design:type", String)
|
|
13643
13676
|
], InterpretationRun.prototype, "processor", void 0);
|
|
13644
|
-
__decorate$
|
|
13677
|
+
__decorate$4([
|
|
13645
13678
|
HasMany({ through: "ad4m://interp/sources", datatype: "xsd:string" }),
|
|
13646
|
-
__metadata$
|
|
13679
|
+
__metadata$4("design:type", Array)
|
|
13647
13680
|
], InterpretationRun.prototype, "sources", void 0);
|
|
13648
|
-
__decorate$
|
|
13681
|
+
__decorate$4([
|
|
13649
13682
|
Optional({ through: "ad4m://interp/debug_prompt", resolveLanguage: "literal" }),
|
|
13650
|
-
__metadata$
|
|
13683
|
+
__metadata$4("design:type", String)
|
|
13651
13684
|
], InterpretationRun.prototype, "debugPrompt", void 0);
|
|
13652
|
-
__decorate$
|
|
13685
|
+
__decorate$4([
|
|
13653
13686
|
Optional({ through: "ad4m://interp/debug_response", resolveLanguage: "literal" }),
|
|
13654
|
-
__metadata$
|
|
13687
|
+
__metadata$4("design:type", String)
|
|
13655
13688
|
], InterpretationRun.prototype, "debugResponse", void 0);
|
|
13656
|
-
InterpretationRun = __decorate$
|
|
13689
|
+
InterpretationRun = __decorate$4([
|
|
13657
13690
|
Model$1({ name: "InterpretationRun" })
|
|
13658
13691
|
], InterpretationRun);
|
|
13659
13692
|
var InterpretationOverlay = class InterpretationOverlay2 extends Ad4mModel {
|
|
@@ -13662,18 +13695,18 @@ var InterpretationOverlay = class InterpretationOverlay2 extends Ad4mModel {
|
|
|
13662
13695
|
this.kind = "";
|
|
13663
13696
|
}
|
|
13664
13697
|
};
|
|
13665
|
-
__decorate$
|
|
13698
|
+
__decorate$4([
|
|
13666
13699
|
Property({ through: "ad4m://interp/kind", required: true }),
|
|
13667
|
-
__metadata$
|
|
13700
|
+
__metadata$4("design:type", String)
|
|
13668
13701
|
], InterpretationOverlay.prototype, "kind", void 0);
|
|
13669
|
-
__decorate$
|
|
13702
|
+
__decorate$4([
|
|
13670
13703
|
Optional({ through: "ad4m://interp/run" }),
|
|
13671
|
-
__metadata$
|
|
13704
|
+
__metadata$4("design:type", String)
|
|
13672
13705
|
], InterpretationOverlay.prototype, "run", void 0);
|
|
13673
|
-
InterpretationOverlay = __decorate$
|
|
13706
|
+
InterpretationOverlay = __decorate$4([
|
|
13674
13707
|
Model$1({ name: "InterpretationOverlay" })
|
|
13675
13708
|
], InterpretationOverlay);
|
|
13676
|
-
var __decorate$
|
|
13709
|
+
var __decorate$3 = function(decorators, target, key, desc) {
|
|
13677
13710
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13678
13711
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
13679
13712
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -13683,7 +13716,7 @@ var __decorate$2 = function(decorators, target, key, desc) {
|
|
|
13683
13716
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13684
13717
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13685
13718
|
};
|
|
13686
|
-
var __metadata$
|
|
13719
|
+
var __metadata$3 = function(k, v) {
|
|
13687
13720
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
13688
13721
|
return Reflect.metadata(k, v);
|
|
13689
13722
|
};
|
|
@@ -13704,55 +13737,55 @@ var FlowTransitionProposal = class FlowTransitionProposal2 extends Ad4mModel {
|
|
|
13704
13737
|
this.acceptedBy = [];
|
|
13705
13738
|
}
|
|
13706
13739
|
};
|
|
13707
|
-
__decorate$
|
|
13740
|
+
__decorate$3([
|
|
13708
13741
|
Property({ through: "ad4m://flow/instance", required: true, identity: true }),
|
|
13709
|
-
__metadata$
|
|
13742
|
+
__metadata$3("design:type", String)
|
|
13710
13743
|
], FlowTransitionProposal.prototype, "flowInstance", void 0);
|
|
13711
|
-
__decorate$
|
|
13744
|
+
__decorate$3([
|
|
13712
13745
|
Property({ through: "ad4m://flow/from_state", required: true }),
|
|
13713
|
-
__metadata$
|
|
13746
|
+
__metadata$3("design:type", String)
|
|
13714
13747
|
], FlowTransitionProposal.prototype, "fromState", void 0);
|
|
13715
|
-
__decorate$
|
|
13748
|
+
__decorate$3([
|
|
13716
13749
|
Property({ through: "ad4m://flow/to_state", required: true }),
|
|
13717
|
-
__metadata$
|
|
13750
|
+
__metadata$3("design:type", String)
|
|
13718
13751
|
], FlowTransitionProposal.prototype, "toState", void 0);
|
|
13719
|
-
__decorate$
|
|
13752
|
+
__decorate$3([
|
|
13720
13753
|
Property({ through: "ad4m://flow/proposer", required: true, getter: PROPOSER_GETTER, datatype: "xsd:string" }),
|
|
13721
|
-
__metadata$
|
|
13754
|
+
__metadata$3("design:type", String)
|
|
13722
13755
|
], FlowTransitionProposal.prototype, "proposer", void 0);
|
|
13723
|
-
__decorate$
|
|
13756
|
+
__decorate$3([
|
|
13724
13757
|
HasMany({ through: "ad4m://flow/evidence", datatype: "xsd:string" }),
|
|
13725
|
-
__metadata$
|
|
13758
|
+
__metadata$3("design:type", Array)
|
|
13726
13759
|
], FlowTransitionProposal.prototype, "evidence", void 0);
|
|
13727
|
-
__decorate$
|
|
13760
|
+
__decorate$3([
|
|
13728
13761
|
Property({ through: "ad4m://flow/evidence_hashes", required: true }),
|
|
13729
|
-
__metadata$
|
|
13762
|
+
__metadata$3("design:type", String)
|
|
13730
13763
|
], FlowTransitionProposal.prototype, "evidenceHashes", void 0);
|
|
13731
|
-
__decorate$
|
|
13764
|
+
__decorate$3([
|
|
13732
13765
|
HasMany({ through: "ad4m://flow/output", datatype: "xsd:string" }),
|
|
13733
|
-
__metadata$
|
|
13766
|
+
__metadata$3("design:type", Array)
|
|
13734
13767
|
], FlowTransitionProposal.prototype, "outputs", void 0);
|
|
13735
|
-
__decorate$
|
|
13768
|
+
__decorate$3([
|
|
13736
13769
|
Property({ through: "ad4m://flow/outputs_hash" }),
|
|
13737
|
-
__metadata$
|
|
13770
|
+
__metadata$3("design:type", String)
|
|
13738
13771
|
], FlowTransitionProposal.prototype, "outputsHash", void 0);
|
|
13739
|
-
__decorate$
|
|
13772
|
+
__decorate$3([
|
|
13740
13773
|
Property({ through: "ad4m://flow/nonce" }),
|
|
13741
|
-
__metadata$
|
|
13774
|
+
__metadata$3("design:type", String)
|
|
13742
13775
|
], FlowTransitionProposal.prototype, "nonce", void 0);
|
|
13743
|
-
__decorate$
|
|
13776
|
+
__decorate$3([
|
|
13744
13777
|
Optional({ through: "ad4m://flow/run_uri" }),
|
|
13745
|
-
__metadata$
|
|
13778
|
+
__metadata$3("design:type", String)
|
|
13746
13779
|
], FlowTransitionProposal.prototype, "runUri", void 0);
|
|
13747
|
-
__decorate$
|
|
13780
|
+
__decorate$3([
|
|
13748
13781
|
Optional({ through: "ad4m://flow/rationale" }),
|
|
13749
|
-
__metadata$
|
|
13782
|
+
__metadata$3("design:type", String)
|
|
13750
13783
|
], FlowTransitionProposal.prototype, "rationale", void 0);
|
|
13751
|
-
__decorate$
|
|
13784
|
+
__decorate$3([
|
|
13752
13785
|
HasMany({ through: "ad4m://acceptedBy", getter: ACCEPTED_BY_GETTER, readOnly: true }),
|
|
13753
|
-
__metadata$
|
|
13786
|
+
__metadata$3("design:type", Array)
|
|
13754
13787
|
], FlowTransitionProposal.prototype, "acceptedBy", void 0);
|
|
13755
|
-
FlowTransitionProposal = __decorate$
|
|
13788
|
+
FlowTransitionProposal = __decorate$3([
|
|
13756
13789
|
Model$1({ name: "FlowTransitionProposal" })
|
|
13757
13790
|
], FlowTransitionProposal);
|
|
13758
13791
|
var FlowInstanceRecord = class FlowInstanceRecord2 extends Ad4mModel {
|
|
@@ -13762,18 +13795,18 @@ var FlowInstanceRecord = class FlowInstanceRecord2 extends Ad4mModel {
|
|
|
13762
13795
|
this.subject = "";
|
|
13763
13796
|
}
|
|
13764
13797
|
};
|
|
13765
|
-
__decorate$
|
|
13798
|
+
__decorate$3([
|
|
13766
13799
|
Property({ through: "ad4m://flow/flow_uri", required: true, identity: true }),
|
|
13767
|
-
__metadata$
|
|
13800
|
+
__metadata$3("design:type", String)
|
|
13768
13801
|
], FlowInstanceRecord.prototype, "flowUri", void 0);
|
|
13769
|
-
__decorate$
|
|
13802
|
+
__decorate$3([
|
|
13770
13803
|
Property({ through: "ad4m://flow/base", required: true }),
|
|
13771
|
-
__metadata$
|
|
13804
|
+
__metadata$3("design:type", String)
|
|
13772
13805
|
], FlowInstanceRecord.prototype, "subject", void 0);
|
|
13773
|
-
FlowInstanceRecord = __decorate$
|
|
13806
|
+
FlowInstanceRecord = __decorate$3([
|
|
13774
13807
|
Model$1({ name: "FlowInstance" })
|
|
13775
13808
|
], FlowInstanceRecord);
|
|
13776
|
-
var __decorate$
|
|
13809
|
+
var __decorate$2 = function(decorators, target, key, desc) {
|
|
13777
13810
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13778
13811
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
13779
13812
|
r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -13783,7 +13816,7 @@ var __decorate$1 = function(decorators, target, key, desc) {
|
|
|
13783
13816
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13784
13817
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13785
13818
|
};
|
|
13786
|
-
var __metadata$
|
|
13819
|
+
var __metadata$2 = function(k, v) {
|
|
13787
13820
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
13788
13821
|
return Reflect.metadata(k, v);
|
|
13789
13822
|
};
|
|
@@ -13794,13 +13827,41 @@ var TextContent = class TextContent2 extends Ad4mModel {
|
|
|
13794
13827
|
}
|
|
13795
13828
|
};
|
|
13796
13829
|
TextContent.builtinUri = "ad4m://TextContent";
|
|
13797
|
-
__decorate$
|
|
13830
|
+
__decorate$2([
|
|
13798
13831
|
Property({ through: "ad4m://text" }),
|
|
13799
|
-
__metadata$
|
|
13832
|
+
__metadata$2("design:type", String)
|
|
13800
13833
|
], TextContent.prototype, "text", void 0);
|
|
13801
|
-
TextContent = __decorate$
|
|
13834
|
+
TextContent = __decorate$2([
|
|
13802
13835
|
Model$1({ name: "TextContent", abstract: true })
|
|
13803
13836
|
], TextContent);
|
|
13837
|
+
var __decorate$1 = function(decorators, target, key, desc) {
|
|
13838
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13839
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
13840
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
13841
|
+
else
|
|
13842
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
13843
|
+
if (d = decorators[i])
|
|
13844
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
13845
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
13846
|
+
};
|
|
13847
|
+
var __metadata$1 = function(k, v) {
|
|
13848
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
13849
|
+
return Reflect.metadata(k, v);
|
|
13850
|
+
};
|
|
13851
|
+
var Mentioning = class Mentioning2 extends Ad4mModel {
|
|
13852
|
+
constructor() {
|
|
13853
|
+
super(...arguments);
|
|
13854
|
+
this.mentions = [];
|
|
13855
|
+
}
|
|
13856
|
+
};
|
|
13857
|
+
Mentioning.builtinUri = "ad4m://Mentioning";
|
|
13858
|
+
__decorate$1([
|
|
13859
|
+
HasMany({ through: "ad4m://mentions" }),
|
|
13860
|
+
__metadata$1("design:type", Array)
|
|
13861
|
+
], Mentioning.prototype, "mentions", void 0);
|
|
13862
|
+
Mentioning = __decorate$1([
|
|
13863
|
+
Model$1({ name: "Mentioning", abstract: true })
|
|
13864
|
+
], Mentioning);
|
|
13804
13865
|
var __decorate = function(decorators, target, key, desc) {
|
|
13805
13866
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
13806
13867
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|