@coasys/ad4m-connect 0.13.1-staging.3 → 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 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.3";
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"
@@ -429,7 +430,7 @@ var ApiClient = class {
429
430
  ws.onclose = (event) => {
430
431
  reject(event?.code === CLOSE_AUTH_FAILED ? new RpcError(401, event.reason || "token expired or revoked") : closedError(event?.code === CLOSE_TRY_AGAIN_LATER ? event.reason : void 0));
431
432
  if (event?.code === CLOSE_AUTH_FAILED && this._ws === ws) {
432
- this._failAuth(event.reason || "token expired or revoked");
433
+ this._failAuth(event.reason || "Unauthorized access: the token expired or was revoked");
433
434
  } else {
434
435
  this._onClose(ws, event?.code === CLOSE_TRY_AGAIN_LATER ? event.reason : void 0);
435
436
  }
@@ -1195,8 +1196,8 @@ var AgentClient = class {
1195
1196
  async entanglementProofPreFlight(deviceKey, deviceKeyType) {
1196
1197
  return __classPrivateFieldGet$c(this, _AgentClient_apiClient, "f").call("agent.entanglementProofPreflight", { deviceKey, deviceKeyType });
1197
1198
  }
1198
- async requestCapability(authInfo) {
1199
- return __classPrivateFieldGet$c(this, _AgentClient_apiClient, "f").call("agent.requestCapability", { authInfo });
1199
+ async requestCapability(authInfo, agent) {
1200
+ return __classPrivateFieldGet$c(this, _AgentClient_apiClient, "f").call("agent.requestCapability", agent === void 0 ? { authInfo } : { authInfo, agent });
1200
1201
  }
1201
1202
  async permitCapability(auth) {
1202
1203
  return __classPrivateFieldGet$c(this, _AgentClient_apiClient, "f").call("agent.permitCapability", { auth });
@@ -1231,6 +1232,12 @@ var AgentClient = class {
1231
1232
  async verifyEmailCode(email, code2, verificationType) {
1232
1233
  return __classPrivateFieldGet$c(this, _AgentClient_apiClient, "f").call("user.verifyEmail", { email, code: code2, verificationType });
1233
1234
  }
1235
+ async logout() {
1236
+ return __classPrivateFieldGet$c(this, _AgentClient_apiClient, "f").call("user.logout", {});
1237
+ }
1238
+ async revokeAllSessions(email) {
1239
+ return __classPrivateFieldGet$c(this, _AgentClient_apiClient, "f").call("user.revokeAllSessions", email === void 0 ? {} : { email });
1240
+ }
1234
1241
  async hostingUserInfo() {
1235
1242
  const info = (await __classPrivateFieldGet$c(this, _AgentClient_apiClient, "f").call("hosting.info", {})).userInfo ?? {
1236
1243
  email: "",
@@ -1622,6 +1629,7 @@ var SfuManager = class {
1622
1629
  this.rosterUnsubscribe = null;
1623
1630
  this.dataChannelUnsubscribe = null;
1624
1631
  this.disconnectedTimer = null;
1632
+ this.unlistedTimer = null;
1625
1633
  this.neighbourhood = neighbourhood;
1626
1634
  this.neighbourhoodUrl = neighbourhoodUrl || "";
1627
1635
  this.roomId = roomId;
@@ -1845,6 +1853,28 @@ var SfuManager = class {
1845
1853
  this.renegotiationUnsubscribe = null;
1846
1854
  this.rosterUnsubscribe?.();
1847
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);
1848
1878
  }
1849
1879
  abandon(pc) {
1850
1880
  this.releaseServerEvents();
@@ -1864,8 +1894,10 @@ var SfuManager = class {
1864
1894
  if (!ours(roster) || this.state.peerConnection !== pc)
1865
1895
  return;
1866
1896
  void joined.then(() => {
1867
- if (this.state.peerConnection === pc)
1868
- this.applyRoster(roster.participants, true);
1897
+ if (this.state.peerConnection !== pc)
1898
+ return;
1899
+ this.applyRoster(roster.participants, true);
1900
+ this.noticeRoster(pc, roster.participants);
1869
1901
  });
1870
1902
  });
1871
1903
  for (const unsubscribe of previous)
@@ -2031,6 +2063,7 @@ var SfuManager = class {
2031
2063
  SfuManager.MAX_RECONNECTS = 3;
2032
2064
  SfuManager.REJOIN_WINDOW_MS = 12e4;
2033
2065
  SfuManager.DISCONNECT_GRACE_MS = 1e4;
2066
+ SfuManager.UNLISTED_GRACE_MS = 3e3;
2034
2067
  var CALL_PROTOCOL_VERSION = 1;
2035
2068
  function parseCallMessage(payload) {
2036
2069
  if (typeof payload !== "object" || payload === null)
@@ -5570,6 +5603,9 @@ var PerspectiveProxy = class {
5570
5603
  async runInterpretationWithHarness(transcript, basePrefix, maxToolCalls, classes, modelOverride, observationId, emitDebugEvents, options) {
5571
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);
5572
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
+ }
5573
5609
  async addAutoProcessor(config) {
5574
5610
  return await __classPrivateFieldGet$6(this, _PerspectiveProxy_client, "f").addAutoProcessor(__classPrivateFieldGet$6(this, _PerspectiveProxy_handle, "f").uuid, config);
5575
5611
  }
@@ -6606,6 +6642,9 @@ var PerspectiveClient = class {
6606
6642
  emitDebugEvents
6607
6643
  }, options);
6608
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
+ }
6609
6648
  async addAutoProcessor(uuid, config) {
6610
6649
  return __classPrivateFieldGet$5(this, _PerspectiveClient_apiClient, "f").call("perspective.addAutoProcessor", { ...config, uuid });
6611
6650
  }
@@ -13515,7 +13554,7 @@ var ExceptionType;
13515
13554
  })(ExceptionType || (ExceptionType = {}));
13516
13555
  var LanguageExpression = class extends ExpressionGeneric() {
13517
13556
  };
13518
- var __decorate$3 = function(decorators, target, key, desc) {
13557
+ var __decorate$4 = function(decorators, target, key, desc) {
13519
13558
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13520
13559
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
13521
13560
  r = Reflect.decorate(decorators, target, key, desc);
@@ -13525,7 +13564,7 @@ var __decorate$3 = function(decorators, target, key, desc) {
13525
13564
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
13526
13565
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13527
13566
  };
13528
- var __metadata$3 = function(k, v) {
13567
+ var __metadata$4 = function(k, v) {
13529
13568
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
13530
13569
  return Reflect.metadata(k, v);
13531
13570
  };
@@ -13541,71 +13580,71 @@ var AutoProcessorConfig = class AutoProcessorConfig2 extends Ad4mModel {
13541
13580
  this.claimTtlMs = "60000";
13542
13581
  }
13543
13582
  };
13544
- __decorate$3([
13583
+ __decorate$4([
13545
13584
  Property({ through: "ad4m://processor_id", required: true, identity: true }),
13546
- __metadata$3("design:type", String)
13585
+ __metadata$4("design:type", String)
13547
13586
  ], AutoProcessorConfig.prototype, "processorId", void 0);
13548
- __decorate$3([
13587
+ __decorate$4([
13549
13588
  Property({ through: "ad4m://source_scope_query", required: true }),
13550
- __metadata$3("design:type", String)
13589
+ __metadata$4("design:type", String)
13551
13590
  ], AutoProcessorConfig.prototype, "sourceScopeQuery", void 0);
13552
- __decorate$3([
13591
+ __decorate$4([
13553
13592
  Optional({ through: "ad4m://base_prefix" }),
13554
- __metadata$3("design:type", String)
13593
+ __metadata$4("design:type", String)
13555
13594
  ], AutoProcessorConfig.prototype, "basePrefix", void 0);
13556
- __decorate$3([
13595
+ __decorate$4([
13557
13596
  HasMany({ through: "ad4m://interpretation_class", datatype: "xsd:string" }),
13558
- __metadata$3("design:type", Array)
13597
+ __metadata$4("design:type", Array)
13559
13598
  ], AutoProcessorConfig.prototype, "interpretationClasses", void 0);
13560
- __decorate$3([
13599
+ __decorate$4([
13561
13600
  HasMany({ through: "ad4m://flow", datatype: "xsd:string" }),
13562
- __metadata$3("design:type", Array)
13601
+ __metadata$4("design:type", Array)
13563
13602
  ], AutoProcessorConfig.prototype, "flows", void 0);
13564
- __decorate$3([
13603
+ __decorate$4([
13565
13604
  Property({ through: "ad4m://debounce_ms", required: true }),
13566
- __metadata$3("design:type", String)
13605
+ __metadata$4("design:type", String)
13567
13606
  ], AutoProcessorConfig.prototype, "debounceMs", void 0);
13568
- __decorate$3([
13607
+ __decorate$4([
13569
13608
  Optional({ through: "ad4m://batch_min" }),
13570
- __metadata$3("design:type", String)
13609
+ __metadata$4("design:type", String)
13571
13610
  ], AutoProcessorConfig.prototype, "batchMin", void 0);
13572
- __decorate$3([
13611
+ __decorate$4([
13573
13612
  Property({ through: "ad4m://batch_max", required: true }),
13574
- __metadata$3("design:type", String)
13613
+ __metadata$4("design:type", String)
13575
13614
  ], AutoProcessorConfig.prototype, "batchMax", void 0);
13576
- __decorate$3([
13615
+ __decorate$4([
13577
13616
  Optional({ through: "ad4m://max_wait_ms" }),
13578
- __metadata$3("design:type", String)
13617
+ __metadata$4("design:type", String)
13579
13618
  ], AutoProcessorConfig.prototype, "maxWaitMs", void 0);
13580
- __decorate$3([
13619
+ __decorate$4([
13581
13620
  Property({ through: "ad4m://claim_ttl_ms", required: true }),
13582
- __metadata$3("design:type", String)
13621
+ __metadata$4("design:type", String)
13583
13622
  ], AutoProcessorConfig.prototype, "claimTtlMs", void 0);
13584
- __decorate$3([
13623
+ __decorate$4([
13585
13624
  Optional({ through: "ad4m://source_window_ms" }),
13586
- __metadata$3("design:type", String)
13625
+ __metadata$4("design:type", String)
13587
13626
  ], AutoProcessorConfig.prototype, "sourceWindowMs", void 0);
13588
- __decorate$3([
13627
+ __decorate$4([
13589
13628
  Optional({ through: "ad4m://dedup_strategy" }),
13590
- __metadata$3("design:type", String)
13629
+ __metadata$4("design:type", String)
13591
13630
  ], AutoProcessorConfig.prototype, "dedupStrategy", void 0);
13592
- __decorate$3([
13631
+ __decorate$4([
13593
13632
  Optional({ through: "ad4m://existing_scope" }),
13594
- __metadata$3("design:type", String)
13633
+ __metadata$4("design:type", String)
13595
13634
  ], AutoProcessorConfig.prototype, "existingScope", void 0);
13596
- __decorate$3([
13635
+ __decorate$4([
13597
13636
  Optional({ through: "ad4m://mint_scope" }),
13598
- __metadata$3("design:type", String)
13637
+ __metadata$4("design:type", String)
13599
13638
  ], AutoProcessorConfig.prototype, "mintScope", void 0);
13600
- __decorate$3([
13639
+ __decorate$4([
13601
13640
  Optional({ through: "ad4m://max_tool_calls" }),
13602
- __metadata$3("design:type", String)
13641
+ __metadata$4("design:type", String)
13603
13642
  ], AutoProcessorConfig.prototype, "maxToolCalls", void 0);
13604
- __decorate$3([
13643
+ __decorate$4([
13605
13644
  Optional({ through: "ad4m://emit_debug_events", resolveLanguage: "literal" }),
13606
- __metadata$3("design:type", String)
13645
+ __metadata$4("design:type", String)
13607
13646
  ], AutoProcessorConfig.prototype, "emitDebugEvents", void 0);
13608
- AutoProcessorConfig = __decorate$3([
13647
+ AutoProcessorConfig = __decorate$4([
13609
13648
  Model$1({ name: "AutoProcessor" })
13610
13649
  ], AutoProcessorConfig);
13611
13650
  var InterpretationRun = class InterpretationRun2 extends Ad4mModel {
@@ -13615,39 +13654,39 @@ var InterpretationRun = class InterpretationRun2 extends Ad4mModel {
13615
13654
  this.sources = [];
13616
13655
  }
13617
13656
  };
13618
- __decorate$3([
13657
+ __decorate$4([
13619
13658
  Property({ through: "ad4m://interp/run_id", required: true, identity: true }),
13620
- __metadata$3("design:type", String)
13659
+ __metadata$4("design:type", String)
13621
13660
  ], InterpretationRun.prototype, "runId", void 0);
13622
- __decorate$3([
13661
+ __decorate$4([
13623
13662
  Optional({ through: "ad4m://interp/model" }),
13624
- __metadata$3("design:type", String)
13663
+ __metadata$4("design:type", String)
13625
13664
  ], InterpretationRun.prototype, "model", void 0);
13626
- __decorate$3([
13665
+ __decorate$4([
13627
13666
  Optional({ through: "ad4m://interp/prompt_version" }),
13628
- __metadata$3("design:type", String)
13667
+ __metadata$4("design:type", String)
13629
13668
  ], InterpretationRun.prototype, "promptVersion", void 0);
13630
- __decorate$3([
13669
+ __decorate$4([
13631
13670
  Optional({ through: "ad4m://interp/ran_at" }),
13632
- __metadata$3("design:type", String)
13671
+ __metadata$4("design:type", String)
13633
13672
  ], InterpretationRun.prototype, "ranAt", void 0);
13634
- __decorate$3([
13673
+ __decorate$4([
13635
13674
  Optional({ through: "ad4m://interp/processor" }),
13636
- __metadata$3("design:type", String)
13675
+ __metadata$4("design:type", String)
13637
13676
  ], InterpretationRun.prototype, "processor", void 0);
13638
- __decorate$3([
13677
+ __decorate$4([
13639
13678
  HasMany({ through: "ad4m://interp/sources", datatype: "xsd:string" }),
13640
- __metadata$3("design:type", Array)
13679
+ __metadata$4("design:type", Array)
13641
13680
  ], InterpretationRun.prototype, "sources", void 0);
13642
- __decorate$3([
13681
+ __decorate$4([
13643
13682
  Optional({ through: "ad4m://interp/debug_prompt", resolveLanguage: "literal" }),
13644
- __metadata$3("design:type", String)
13683
+ __metadata$4("design:type", String)
13645
13684
  ], InterpretationRun.prototype, "debugPrompt", void 0);
13646
- __decorate$3([
13685
+ __decorate$4([
13647
13686
  Optional({ through: "ad4m://interp/debug_response", resolveLanguage: "literal" }),
13648
- __metadata$3("design:type", String)
13687
+ __metadata$4("design:type", String)
13649
13688
  ], InterpretationRun.prototype, "debugResponse", void 0);
13650
- InterpretationRun = __decorate$3([
13689
+ InterpretationRun = __decorate$4([
13651
13690
  Model$1({ name: "InterpretationRun" })
13652
13691
  ], InterpretationRun);
13653
13692
  var InterpretationOverlay = class InterpretationOverlay2 extends Ad4mModel {
@@ -13656,18 +13695,18 @@ var InterpretationOverlay = class InterpretationOverlay2 extends Ad4mModel {
13656
13695
  this.kind = "";
13657
13696
  }
13658
13697
  };
13659
- __decorate$3([
13698
+ __decorate$4([
13660
13699
  Property({ through: "ad4m://interp/kind", required: true }),
13661
- __metadata$3("design:type", String)
13700
+ __metadata$4("design:type", String)
13662
13701
  ], InterpretationOverlay.prototype, "kind", void 0);
13663
- __decorate$3([
13702
+ __decorate$4([
13664
13703
  Optional({ through: "ad4m://interp/run" }),
13665
- __metadata$3("design:type", String)
13704
+ __metadata$4("design:type", String)
13666
13705
  ], InterpretationOverlay.prototype, "run", void 0);
13667
- InterpretationOverlay = __decorate$3([
13706
+ InterpretationOverlay = __decorate$4([
13668
13707
  Model$1({ name: "InterpretationOverlay" })
13669
13708
  ], InterpretationOverlay);
13670
- var __decorate$2 = function(decorators, target, key, desc) {
13709
+ var __decorate$3 = function(decorators, target, key, desc) {
13671
13710
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13672
13711
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
13673
13712
  r = Reflect.decorate(decorators, target, key, desc);
@@ -13677,7 +13716,7 @@ var __decorate$2 = function(decorators, target, key, desc) {
13677
13716
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
13678
13717
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13679
13718
  };
13680
- var __metadata$2 = function(k, v) {
13719
+ var __metadata$3 = function(k, v) {
13681
13720
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
13682
13721
  return Reflect.metadata(k, v);
13683
13722
  };
@@ -13698,55 +13737,55 @@ var FlowTransitionProposal = class FlowTransitionProposal2 extends Ad4mModel {
13698
13737
  this.acceptedBy = [];
13699
13738
  }
13700
13739
  };
13701
- __decorate$2([
13740
+ __decorate$3([
13702
13741
  Property({ through: "ad4m://flow/instance", required: true, identity: true }),
13703
- __metadata$2("design:type", String)
13742
+ __metadata$3("design:type", String)
13704
13743
  ], FlowTransitionProposal.prototype, "flowInstance", void 0);
13705
- __decorate$2([
13744
+ __decorate$3([
13706
13745
  Property({ through: "ad4m://flow/from_state", required: true }),
13707
- __metadata$2("design:type", String)
13746
+ __metadata$3("design:type", String)
13708
13747
  ], FlowTransitionProposal.prototype, "fromState", void 0);
13709
- __decorate$2([
13748
+ __decorate$3([
13710
13749
  Property({ through: "ad4m://flow/to_state", required: true }),
13711
- __metadata$2("design:type", String)
13750
+ __metadata$3("design:type", String)
13712
13751
  ], FlowTransitionProposal.prototype, "toState", void 0);
13713
- __decorate$2([
13752
+ __decorate$3([
13714
13753
  Property({ through: "ad4m://flow/proposer", required: true, getter: PROPOSER_GETTER, datatype: "xsd:string" }),
13715
- __metadata$2("design:type", String)
13754
+ __metadata$3("design:type", String)
13716
13755
  ], FlowTransitionProposal.prototype, "proposer", void 0);
13717
- __decorate$2([
13756
+ __decorate$3([
13718
13757
  HasMany({ through: "ad4m://flow/evidence", datatype: "xsd:string" }),
13719
- __metadata$2("design:type", Array)
13758
+ __metadata$3("design:type", Array)
13720
13759
  ], FlowTransitionProposal.prototype, "evidence", void 0);
13721
- __decorate$2([
13760
+ __decorate$3([
13722
13761
  Property({ through: "ad4m://flow/evidence_hashes", required: true }),
13723
- __metadata$2("design:type", String)
13762
+ __metadata$3("design:type", String)
13724
13763
  ], FlowTransitionProposal.prototype, "evidenceHashes", void 0);
13725
- __decorate$2([
13764
+ __decorate$3([
13726
13765
  HasMany({ through: "ad4m://flow/output", datatype: "xsd:string" }),
13727
- __metadata$2("design:type", Array)
13766
+ __metadata$3("design:type", Array)
13728
13767
  ], FlowTransitionProposal.prototype, "outputs", void 0);
13729
- __decorate$2([
13768
+ __decorate$3([
13730
13769
  Property({ through: "ad4m://flow/outputs_hash" }),
13731
- __metadata$2("design:type", String)
13770
+ __metadata$3("design:type", String)
13732
13771
  ], FlowTransitionProposal.prototype, "outputsHash", void 0);
13733
- __decorate$2([
13772
+ __decorate$3([
13734
13773
  Property({ through: "ad4m://flow/nonce" }),
13735
- __metadata$2("design:type", String)
13774
+ __metadata$3("design:type", String)
13736
13775
  ], FlowTransitionProposal.prototype, "nonce", void 0);
13737
- __decorate$2([
13776
+ __decorate$3([
13738
13777
  Optional({ through: "ad4m://flow/run_uri" }),
13739
- __metadata$2("design:type", String)
13778
+ __metadata$3("design:type", String)
13740
13779
  ], FlowTransitionProposal.prototype, "runUri", void 0);
13741
- __decorate$2([
13780
+ __decorate$3([
13742
13781
  Optional({ through: "ad4m://flow/rationale" }),
13743
- __metadata$2("design:type", String)
13782
+ __metadata$3("design:type", String)
13744
13783
  ], FlowTransitionProposal.prototype, "rationale", void 0);
13745
- __decorate$2([
13784
+ __decorate$3([
13746
13785
  HasMany({ through: "ad4m://acceptedBy", getter: ACCEPTED_BY_GETTER, readOnly: true }),
13747
- __metadata$2("design:type", Array)
13786
+ __metadata$3("design:type", Array)
13748
13787
  ], FlowTransitionProposal.prototype, "acceptedBy", void 0);
13749
- FlowTransitionProposal = __decorate$2([
13788
+ FlowTransitionProposal = __decorate$3([
13750
13789
  Model$1({ name: "FlowTransitionProposal" })
13751
13790
  ], FlowTransitionProposal);
13752
13791
  var FlowInstanceRecord = class FlowInstanceRecord2 extends Ad4mModel {
@@ -13756,18 +13795,18 @@ var FlowInstanceRecord = class FlowInstanceRecord2 extends Ad4mModel {
13756
13795
  this.subject = "";
13757
13796
  }
13758
13797
  };
13759
- __decorate$2([
13798
+ __decorate$3([
13760
13799
  Property({ through: "ad4m://flow/flow_uri", required: true, identity: true }),
13761
- __metadata$2("design:type", String)
13800
+ __metadata$3("design:type", String)
13762
13801
  ], FlowInstanceRecord.prototype, "flowUri", void 0);
13763
- __decorate$2([
13802
+ __decorate$3([
13764
13803
  Property({ through: "ad4m://flow/base", required: true }),
13765
- __metadata$2("design:type", String)
13804
+ __metadata$3("design:type", String)
13766
13805
  ], FlowInstanceRecord.prototype, "subject", void 0);
13767
- FlowInstanceRecord = __decorate$2([
13806
+ FlowInstanceRecord = __decorate$3([
13768
13807
  Model$1({ name: "FlowInstance" })
13769
13808
  ], FlowInstanceRecord);
13770
- var __decorate$1 = function(decorators, target, key, desc) {
13809
+ var __decorate$2 = function(decorators, target, key, desc) {
13771
13810
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13772
13811
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
13773
13812
  r = Reflect.decorate(decorators, target, key, desc);
@@ -13777,7 +13816,7 @@ var __decorate$1 = function(decorators, target, key, desc) {
13777
13816
  r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
13778
13817
  return c > 3 && r && Object.defineProperty(target, key, r), r;
13779
13818
  };
13780
- var __metadata$1 = function(k, v) {
13819
+ var __metadata$2 = function(k, v) {
13781
13820
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
13782
13821
  return Reflect.metadata(k, v);
13783
13822
  };
@@ -13788,13 +13827,41 @@ var TextContent = class TextContent2 extends Ad4mModel {
13788
13827
  }
13789
13828
  };
13790
13829
  TextContent.builtinUri = "ad4m://TextContent";
13791
- __decorate$1([
13830
+ __decorate$2([
13792
13831
  Property({ through: "ad4m://text" }),
13793
- __metadata$1("design:type", String)
13832
+ __metadata$2("design:type", String)
13794
13833
  ], TextContent.prototype, "text", void 0);
13795
- TextContent = __decorate$1([
13834
+ TextContent = __decorate$2([
13796
13835
  Model$1({ name: "TextContent", abstract: true })
13797
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);
13798
13865
  var __decorate = function(decorators, target, key, desc) {
13799
13866
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13800
13867
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function")