@xyo-network/os-runtime 5.0.13 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neutral/index.mjs +88 -55
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/index.mjs +88 -55
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/scripts/xyos/index.mjs +57 -38
- package/dist/node/scripts/xyos/index.mjs.map +1 -1
- package/dist/types/DappCallerBase.d.ts +4 -52
- package/dist/types/DappCallerBase.d.ts.map +1 -1
- package/dist/types/OsCallerBase.d.ts +5 -61
- package/dist/types/OsCallerBase.d.ts.map +1 -1
- package/dist/types/XyOs.d.ts +2 -18
- package/dist/types/XyOs.d.ts.map +1 -1
- package/dist/types/XyOsDapp.d.ts +2 -18
- package/dist/types/XyOsDapp.d.ts.map +1 -1
- package/dist/types/access/RunningAccessDappCache.d.ts +1 -9
- package/dist/types/access/RunningAccessDappCache.d.ts.map +1 -1
- package/dist/types/access/interfaces/registered-names/helpers/AccessNodeQueries.d.ts +1 -9
- package/dist/types/access/interfaces/registered-names/helpers/AccessNodeQueries.d.ts.map +1 -1
- package/dist/types/access/interfaces/registered-names/helpers/resource/AbstractXnsCaller.d.ts +3 -35
- package/dist/types/access/interfaces/registered-names/helpers/resource/AbstractXnsCaller.d.ts.map +1 -1
- package/dist/types/adapter/Base.d.ts +1 -9
- package/dist/types/adapter/Base.d.ts.map +1 -1
- package/dist/types/adapter/Network.d.ts +1 -9
- package/dist/types/adapter/Network.d.ts.map +1 -1
- package/dist/types/adapter/Settings.d.ts +1 -9
- package/dist/types/adapter/Settings.d.ts.map +1 -1
- package/dist/types/classes/settings/CallerBase.d.ts +2 -26
- package/dist/types/classes/settings/CallerBase.d.ts.map +1 -1
- package/dist/types/event/bus/EventBus.d.ts +1 -9
- package/dist/types/event/bus/EventBus.d.ts.map +1 -1
- package/dist/types/lib/isPayload.d.ts +1 -4
- package/dist/types/lib/isPayload.d.ts.map +1 -1
- package/dist/types/stack/OsPubSubNetworkStack.d.ts +2 -18
- package/dist/types/stack/OsPubSubNetworkStack.d.ts.map +1 -1
- package/package.json +44 -44
- package/src/DappCallerBase.ts +4 -4
- package/src/OsCallerBase.ts +5 -5
- package/src/PubSubBridgeCaller.ts +1 -1
- package/src/access/Caller.ts +1 -1
- package/src/access/interfaces/registered-names/helpers/AccessNodeQueries.ts +2 -2
- package/src/access/interfaces/registered-names/helpers/resource/AbstractXnsCaller.ts +3 -3
- package/src/adapter/Base.ts +2 -2
- package/src/classes/settings/CallerBase.ts +2 -2
- package/src/dapp/context/creator/createDappContext.ts +1 -1
- package/src/event/bus/EventBus.ts +1 -0
- package/src/loadOsNode.ts +2 -2
- package/src/stack/Base.ts +1 -1
package/dist/neutral/index.mjs
CHANGED
|
@@ -28,27 +28,37 @@ var OsCallerBase = class {
|
|
|
28
28
|
// Get the dapps archivist
|
|
29
29
|
async getDappsArchivist() {
|
|
30
30
|
const mod = assertEx(await this.context.root.resolve(DappsArchivistModuleName), () => `${DappsArchivistModuleName} not found`);
|
|
31
|
-
return asArchivistInstance(mod, () => `${DappsArchivistModuleName} is not an archivist
|
|
31
|
+
return asArchivistInstance(mod, () => `${DappsArchivistModuleName} is not an archivist`, {
|
|
32
|
+
required: true
|
|
33
|
+
});
|
|
32
34
|
}
|
|
33
35
|
// Get the dapps archivist development
|
|
34
36
|
async getDappsArchivistDevelopment() {
|
|
35
37
|
const mod = assertEx(await this.context.root.resolve(DappsArchivistDevelopmentModuleName), () => `${DappsArchivistDevelopmentModuleName} not found`);
|
|
36
|
-
return asArchivistInstance(mod, () => `${DappsArchivistDevelopmentModuleName} is not an archivist
|
|
38
|
+
return asArchivistInstance(mod, () => `${DappsArchivistDevelopmentModuleName} is not an archivist`, {
|
|
39
|
+
required: true
|
|
40
|
+
});
|
|
37
41
|
}
|
|
38
42
|
// Get the dapps archivist payload diviner
|
|
39
43
|
async getDappsArchivistPayloadDiviner() {
|
|
40
44
|
const mod = assertEx(await this.context.root.resolve(DappsArchivistPayloadDivinerModuleName), () => `${DappsArchivistPayloadDivinerModuleName} not found`);
|
|
41
|
-
return asDivinerInstance(mod, () => `${DappsArchivistPayloadDivinerModuleName} is not a diviner
|
|
45
|
+
return asDivinerInstance(mod, () => `${DappsArchivistPayloadDivinerModuleName} is not a diviner`, {
|
|
46
|
+
required: true
|
|
47
|
+
});
|
|
42
48
|
}
|
|
43
49
|
// Get the dapps archivist payload diviner development
|
|
44
50
|
async getDappsArchivistPayloadDivinerDevelopment() {
|
|
45
51
|
const mod = assertEx(await this.context.root.resolve(DappsArchivistPayloadDevelopmentDivinerModuleName), () => `${DappsArchivistPayloadDevelopmentDivinerModuleName} not found`);
|
|
46
|
-
return asDivinerInstance(mod, () => `${DappsArchivistPayloadDevelopmentDivinerModuleName} is not a diviner
|
|
52
|
+
return asDivinerInstance(mod, () => `${DappsArchivistPayloadDevelopmentDivinerModuleName} is not a diviner`, {
|
|
53
|
+
required: true
|
|
54
|
+
});
|
|
47
55
|
}
|
|
48
56
|
// Get the registered dapp interfaces archivist
|
|
49
57
|
async getRegisteredDappInterfacesArchivist() {
|
|
50
58
|
const mod = assertEx(await this.context.root.resolve(RegisteredDappInterfacesArchivistModuleName), () => `${RegisteredDappInterfacesArchivistModuleName} not found`);
|
|
51
|
-
return asArchivistInstance(mod, () => `${RegisteredDappInterfacesArchivistModuleName} is not an archivist
|
|
59
|
+
return asArchivistInstance(mod, () => `${RegisteredDappInterfacesArchivistModuleName} is not an archivist`, {
|
|
60
|
+
required: true
|
|
61
|
+
});
|
|
52
62
|
}
|
|
53
63
|
};
|
|
54
64
|
|
|
@@ -72,11 +82,11 @@ var DappSeedPhraseRepository = class extends OsCallerBase {
|
|
|
72
82
|
}
|
|
73
83
|
allowedNames;
|
|
74
84
|
// record of all dapps that have requested a seed phrase with the OS
|
|
75
|
-
dappIdRepository;
|
|
85
|
+
dappIdRepository = /* @__PURE__ */ new Map();
|
|
76
86
|
// record of all walletIds that have been issued to registered dapps
|
|
77
|
-
walletIdRepository;
|
|
87
|
+
walletIdRepository = /* @__PURE__ */ new Map();
|
|
78
88
|
constructor(xyOs, allowedNames) {
|
|
79
|
-
super(xyOs), this.allowedNames = allowedNames
|
|
89
|
+
super(xyOs), this.allowedNames = allowedNames;
|
|
80
90
|
}
|
|
81
91
|
async add(dappId) {
|
|
82
92
|
const archivist = await this.getDappsArchivist();
|
|
@@ -181,26 +191,34 @@ var DappCallerBase = class {
|
|
|
181
191
|
*/
|
|
182
192
|
async getDappArchivist() {
|
|
183
193
|
const mod = assertEx2(await this.context.root.resolve(DappArchivistModuleName), () => `${DappArchivistModuleName} not found [${toJsonString(this.context.root.publicChildren())}]`);
|
|
184
|
-
return asArchivistInstance2(mod, () => `${DappArchivistModuleName} is not an archivist
|
|
194
|
+
return asArchivistInstance2(mod, () => `${DappArchivistModuleName} is not an archivist`, {
|
|
195
|
+
required: true
|
|
196
|
+
});
|
|
185
197
|
}
|
|
186
198
|
/**
|
|
187
199
|
* Get the DappArchivistPayloadDiviner
|
|
188
200
|
*/
|
|
189
201
|
async getDappArchivistPayloadDiviner() {
|
|
190
202
|
const mod = assertEx2(await this.context.root.resolve(DappArchivistPayloadDivinerModuleName), () => `${DappArchivistPayloadDivinerModuleName} not found`);
|
|
191
|
-
return asDivinerInstance2(mod, () => `${DappArchivistPayloadDivinerModuleName} is not a diviner
|
|
203
|
+
return asDivinerInstance2(mod, () => `${DappArchivistPayloadDivinerModuleName} is not a diviner`, {
|
|
204
|
+
required: true
|
|
205
|
+
});
|
|
192
206
|
}
|
|
193
207
|
/**
|
|
194
208
|
* Get the IntentArchivist
|
|
195
209
|
*/
|
|
196
210
|
async getDappIntentArchivist() {
|
|
197
211
|
const mod = assertEx2(await this.context.root.resolve(IntentArchivistModuleName), () => `${IntentArchivistModuleName} not found`);
|
|
198
|
-
return asArchivistInstance2(mod, () => `${IntentArchivistModuleName} is not an archivist
|
|
212
|
+
return asArchivistInstance2(mod, () => `${IntentArchivistModuleName} is not an archivist`, {
|
|
213
|
+
required: true
|
|
214
|
+
});
|
|
199
215
|
}
|
|
200
216
|
// Get the IntentArchivistPayloadDiviner
|
|
201
217
|
async getDappIntentArchivistPayloadDiviner() {
|
|
202
218
|
const mod = assertEx2(await this.context.root.resolve(IntentArchivistPayloadDivinerModuleName), () => `${IntentArchivistPayloadDivinerModuleName} not found`);
|
|
203
|
-
return asDivinerInstance2(mod, () => `${IntentArchivistPayloadDivinerModuleName} is not a diviner
|
|
219
|
+
return asDivinerInstance2(mod, () => `${IntentArchivistPayloadDivinerModuleName} is not a diviner`, {
|
|
220
|
+
required: true
|
|
221
|
+
});
|
|
204
222
|
}
|
|
205
223
|
};
|
|
206
224
|
|
|
@@ -566,7 +584,7 @@ var GenericPayloadDivinerTags = {
|
|
|
566
584
|
};
|
|
567
585
|
var resolveLocator = /* @__PURE__ */ __name((existingLocator) => {
|
|
568
586
|
const locator = existingLocator ?? new ModuleFactoryLocator2();
|
|
569
|
-
locator.register(GenericPayloadDiviner, GenericPayloadDivinerTags);
|
|
587
|
+
locator.register(GenericPayloadDiviner.factory(), GenericPayloadDivinerTags);
|
|
570
588
|
return locator;
|
|
571
589
|
}, "resolveLocator");
|
|
572
590
|
var createDappContext = /* @__PURE__ */ __name(async (dapp, context, allowedNames, xnsNodeUrl, xnsNetwork) => {
|
|
@@ -655,7 +673,9 @@ var EventBus = class {
|
|
|
655
673
|
publisherCallbacks = {};
|
|
656
674
|
startMutex = new Mutex();
|
|
657
675
|
get archivist() {
|
|
658
|
-
return asArchivistInstance4(assertEx5(this._archivist, () => "Archivist not found. Did you forget to call start()?"), "not a valid archivist instance"
|
|
676
|
+
return asArchivistInstance4(assertEx5(this._archivist, () => "Archivist not found. Did you forget to call start()?"), "not a valid archivist instance", {
|
|
677
|
+
required: true
|
|
678
|
+
});
|
|
659
679
|
}
|
|
660
680
|
addConnection(connection) {
|
|
661
681
|
const id = uuid2();
|
|
@@ -956,16 +976,12 @@ var PayloadStore = class {
|
|
|
956
976
|
__name(this, "PayloadStore");
|
|
957
977
|
}
|
|
958
978
|
archivist;
|
|
959
|
-
latest;
|
|
960
|
-
deleteListeners;
|
|
961
|
-
insertListeners;
|
|
962
|
-
listeners;
|
|
979
|
+
latest = [];
|
|
980
|
+
deleteListeners = [];
|
|
981
|
+
insertListeners = [];
|
|
982
|
+
listeners = [];
|
|
963
983
|
constructor(archivist) {
|
|
964
984
|
this.archivist = archivist;
|
|
965
|
-
this.latest = [];
|
|
966
|
-
this.deleteListeners = [];
|
|
967
|
-
this.insertListeners = [];
|
|
968
|
-
this.listeners = [];
|
|
969
985
|
}
|
|
970
986
|
/**
|
|
971
987
|
* Initialize listeners on the archivist that update class member variables when new payloads are inserted
|
|
@@ -1063,10 +1079,10 @@ import { ModuleFactoryLocator as ModuleFactoryLocator3 } from "@xyo-network/modu
|
|
|
1063
1079
|
var OS_NODE_PATH = "1'";
|
|
1064
1080
|
var getDefaultOsNodeLocator = /* @__PURE__ */ __name(() => {
|
|
1065
1081
|
const locator = new ModuleFactoryLocator3();
|
|
1066
|
-
locator.register(IndexedDbArchivist, {
|
|
1082
|
+
locator.register(IndexedDbArchivist.factory(), {
|
|
1067
1083
|
"network.xyo.archivist.persistence.scope": "device"
|
|
1068
1084
|
});
|
|
1069
|
-
locator.register(IndexedDbPayloadDiviner, {
|
|
1085
|
+
locator.register(IndexedDbPayloadDiviner.factory(), {
|
|
1070
1086
|
"network.xyo.archivist.persistence.scope": "device"
|
|
1071
1087
|
});
|
|
1072
1088
|
return locator;
|
|
@@ -1299,9 +1315,9 @@ var ManageSystemDapps = class extends OsCallerBase {
|
|
|
1299
1315
|
defaultSystemDappParams;
|
|
1300
1316
|
locator;
|
|
1301
1317
|
developmentMode;
|
|
1302
|
-
onErrorCallbacks;
|
|
1318
|
+
onErrorCallbacks = [];
|
|
1303
1319
|
constructor(context, defaultSystemNames, defaultSystemDapps, defaultSystemDappParams, locator, developmentMode) {
|
|
1304
|
-
super(context), this.defaultSystemNames = defaultSystemNames, this.defaultSystemDapps = defaultSystemDapps, this.defaultSystemDappParams = defaultSystemDappParams, this.locator = locator, this.developmentMode = developmentMode
|
|
1320
|
+
super(context), this.defaultSystemNames = defaultSystemNames, this.defaultSystemDapps = defaultSystemDapps, this.defaultSystemDappParams = defaultSystemDappParams, this.locator = locator, this.developmentMode = developmentMode;
|
|
1305
1321
|
}
|
|
1306
1322
|
/**
|
|
1307
1323
|
* Add a callback to listen for errors throwing during system dapp registration
|
|
@@ -1721,10 +1737,9 @@ var DappRegistry = class {
|
|
|
1721
1737
|
__name(this, "DappRegistry");
|
|
1722
1738
|
}
|
|
1723
1739
|
dappSeedPhraseRepository;
|
|
1724
|
-
dappRegistry;
|
|
1740
|
+
dappRegistry = /* @__PURE__ */ new Map();
|
|
1725
1741
|
constructor(dappSeedPhraseRepository) {
|
|
1726
1742
|
this.dappSeedPhraseRepository = dappSeedPhraseRepository;
|
|
1727
|
-
this.dappRegistry = /* @__PURE__ */ new Map();
|
|
1728
1743
|
}
|
|
1729
1744
|
/**
|
|
1730
1745
|
* Register a Dapp with window manager and if successful, return its id
|
|
@@ -1821,18 +1836,18 @@ var DappRegistrationService = class {
|
|
|
1821
1836
|
locator;
|
|
1822
1837
|
developmentMode;
|
|
1823
1838
|
// Dapps that have been built with their own context
|
|
1824
|
-
builtDapps;
|
|
1839
|
+
builtDapps = {};
|
|
1825
1840
|
dappRegistry;
|
|
1826
1841
|
dappSeedPhraseRepository;
|
|
1827
1842
|
manageSystemDapps;
|
|
1828
1843
|
// Dapps that have been registered with dappAccessRequests
|
|
1829
|
-
registeredAccessDappSets;
|
|
1844
|
+
registeredAccessDappSets = /* @__PURE__ */ new Set();
|
|
1830
1845
|
// Dapps that have been registered with the dapp registry
|
|
1831
|
-
registeredDappSets;
|
|
1846
|
+
registeredDappSets = /* @__PURE__ */ new Set();
|
|
1832
1847
|
// Dapps that have been registered with exposeDappRequests
|
|
1833
|
-
registeredExposedDappSets;
|
|
1834
|
-
dappAccessRequestConnection;
|
|
1835
|
-
exposeDappRequestConnection;
|
|
1848
|
+
registeredExposedDappSets = /* @__PURE__ */ new Set();
|
|
1849
|
+
dappAccessRequestConnection = dappAccessRequestConnection();
|
|
1850
|
+
exposeDappRequestConnection = exposeDappRequestConnection();
|
|
1836
1851
|
constructor(context, params = {
|
|
1837
1852
|
dappNames: [],
|
|
1838
1853
|
dappParams: {},
|
|
@@ -1842,12 +1857,6 @@ var DappRegistrationService = class {
|
|
|
1842
1857
|
this.params = params;
|
|
1843
1858
|
this.locator = locator;
|
|
1844
1859
|
this.developmentMode = developmentMode;
|
|
1845
|
-
this.builtDapps = {};
|
|
1846
|
-
this.registeredAccessDappSets = /* @__PURE__ */ new Set();
|
|
1847
|
-
this.registeredDappSets = /* @__PURE__ */ new Set();
|
|
1848
|
-
this.registeredExposedDappSets = /* @__PURE__ */ new Set();
|
|
1849
|
-
this.dappAccessRequestConnection = dappAccessRequestConnection();
|
|
1850
|
-
this.exposeDappRequestConnection = exposeDappRequestConnection();
|
|
1851
1860
|
this.manageSystemDapps = new ManageSystemDapps(context, this.params?.dappNames ?? [], this.params?.dappPayloads ?? [], this.params?.dappParams ?? {}, this.locator, this.developmentMode);
|
|
1852
1861
|
this.dappSeedPhraseRepository = new DappSeedPhraseRepository(context, this.params?.dappNames ?? []);
|
|
1853
1862
|
this.dappRegistry = new DappRegistry(this.dappSeedPhraseRepository);
|
|
@@ -2083,7 +2092,9 @@ var StackBase = class extends BaseEmitter3 {
|
|
|
2083
2092
|
}
|
|
2084
2093
|
async getStackNode() {
|
|
2085
2094
|
const mod = assertEx11(await this.context.root.resolve(this.stackNodeModuleId), () => `${this.stackNodeModuleId} not found`);
|
|
2086
|
-
return asAttachableNodeInstance(mod, () => `${this.stackNodeModuleId} not a NodeInstance
|
|
2095
|
+
return asAttachableNodeInstance(mod, () => `${this.stackNodeModuleId} not a NodeInstance`, {
|
|
2096
|
+
required: true
|
|
2097
|
+
});
|
|
2087
2098
|
}
|
|
2088
2099
|
async handleDriverReady(node) {
|
|
2089
2100
|
try {
|
|
@@ -2161,10 +2172,10 @@ var NodeAdapterBase = class extends BaseEmitter4 {
|
|
|
2161
2172
|
}
|
|
2162
2173
|
kernel;
|
|
2163
2174
|
driverName;
|
|
2164
|
-
initialized;
|
|
2165
|
-
_id;
|
|
2175
|
+
initialized = false;
|
|
2176
|
+
_id = "";
|
|
2166
2177
|
constructor(kernel, driverName) {
|
|
2167
|
-
super({}), this.kernel = kernel, this.driverName = driverName
|
|
2178
|
+
super({}), this.kernel = kernel, this.driverName = driverName;
|
|
2168
2179
|
this._id = uuid3();
|
|
2169
2180
|
}
|
|
2170
2181
|
get id() {
|
|
@@ -2201,12 +2212,16 @@ var NodeAdapterBase = class extends BaseEmitter4 {
|
|
|
2201
2212
|
}
|
|
2202
2213
|
async getEventsArchivist() {
|
|
2203
2214
|
const mod = assertEx12(await (await this.kernel.getNode()).resolve("KernelNode:ModuleEvents"), () => "KernelNode:ModuleEvents not found");
|
|
2204
|
-
return asArchivistInstance5(mod, () => `${mod.id} is not an archivist
|
|
2215
|
+
return asArchivistInstance5(mod, () => `${mod.id} is not an archivist`, {
|
|
2216
|
+
required: true
|
|
2217
|
+
});
|
|
2205
2218
|
}
|
|
2206
2219
|
validateAndReturnDriver() {
|
|
2207
2220
|
const mod = this.kernel.initialized[this.driverName];
|
|
2208
2221
|
if (mod) {
|
|
2209
|
-
const node = asAttachableNodeInstance2(mod, () => `${mod.id} is not a node
|
|
2222
|
+
const node = asAttachableNodeInstance2(mod, () => `${mod.id} is not a node`, {
|
|
2223
|
+
required: true
|
|
2224
|
+
});
|
|
2210
2225
|
this.initialized = true;
|
|
2211
2226
|
const emit = /* @__PURE__ */ __name(async () => await this.emit("driverReady", {
|
|
2212
2227
|
node
|
|
@@ -2596,7 +2611,9 @@ var DappAccessCaller = class extends OsCallerBase {
|
|
|
2596
2611
|
async cacheAccessNode(dappAccessor, context) {
|
|
2597
2612
|
const accessNodeId = dappAccessor.rootModuleId;
|
|
2598
2613
|
const accessNodeModule = assertEx16(await context.root.resolve(accessNodeId), () => "Access Node Module not found");
|
|
2599
|
-
const accessNode = asNodeInstance2(accessNodeModule, () => "Access Node Module is not a NodeInstance"
|
|
2614
|
+
const accessNode = asNodeInstance2(accessNodeModule, () => "Access Node Module is not a NodeInstance", {
|
|
2615
|
+
required: true
|
|
2616
|
+
});
|
|
2600
2617
|
RunningDappAccessCache.set(dappAccessor.registeringDappId, accessNode);
|
|
2601
2618
|
}
|
|
2602
2619
|
async saveRegisteredDappInterfaces(registeredDappAccess) {
|
|
@@ -2647,7 +2664,9 @@ var AccessNodeQueries = class {
|
|
|
2647
2664
|
async getArchivistFromDappNode() {
|
|
2648
2665
|
const archivistPath = this.accessRequest?.destinationArchivist || "DappArchivist";
|
|
2649
2666
|
const mod = assertEx17(await this.xyOsContext.root.resolve(archivistPath), () => `Unable to find archivist at ${archivistPath}`);
|
|
2650
|
-
return asArchivistInstance6(mod, () => `Module at ${archivistPath} is not an archivist
|
|
2667
|
+
return asArchivistInstance6(mod, () => `Module at ${archivistPath} is not an archivist`, {
|
|
2668
|
+
required: true
|
|
2669
|
+
});
|
|
2651
2670
|
}
|
|
2652
2671
|
async getPayloadsFromAccessNode() {
|
|
2653
2672
|
const archivistFromAccessNode = await this.resolveArchivistFromAccessNode();
|
|
@@ -2660,7 +2679,9 @@ var AccessNodeQueries = class {
|
|
|
2660
2679
|
}
|
|
2661
2680
|
async resolveArchivistFromAccessNode() {
|
|
2662
2681
|
const archivist = assertEx17(await this.nameServiceNamesAccessNode.resolve("PublicXnsArchivist"), () => "Unable to find archivist at PublicXnsArchivist");
|
|
2663
|
-
return asArchivistInstance6(archivist, () => "PublicXnsArchivist is not an archivist"
|
|
2682
|
+
return asArchivistInstance6(archivist, () => "PublicXnsArchivist is not an archivist", {
|
|
2683
|
+
required: true
|
|
2684
|
+
});
|
|
2664
2685
|
}
|
|
2665
2686
|
};
|
|
2666
2687
|
|
|
@@ -2685,7 +2706,9 @@ var AbstractXnsCaller = class {
|
|
|
2685
2706
|
async getXnsArchivist(pathPrefix) {
|
|
2686
2707
|
const fullyQualifiedPath = pathPrefix ? `${pathPrefix}:${XnsArchivistModuleName}` : XnsArchivistModuleName;
|
|
2687
2708
|
const mod = assertEx18(await this.context.root.resolve(fullyQualifiedPath), () => `${fullyQualifiedPath} not found`);
|
|
2688
|
-
return asArchivistInstance7(mod, () => `${fullyQualifiedPath} is not an archivist
|
|
2709
|
+
return asArchivistInstance7(mod, () => `${fullyQualifiedPath} is not an archivist`, {
|
|
2710
|
+
required: true
|
|
2711
|
+
});
|
|
2689
2712
|
}
|
|
2690
2713
|
/**
|
|
2691
2714
|
* Get the XnsArchivistPayloadDiviner
|
|
@@ -2693,7 +2716,9 @@ var AbstractXnsCaller = class {
|
|
|
2693
2716
|
async getXnsArchivistPayloadDiviner(pathPrefix) {
|
|
2694
2717
|
const fullyQualifiedPath = pathPrefix ? `${pathPrefix}:${XnsArchivistPayloadDivinerModuleName}` : XnsArchivistPayloadDivinerModuleName;
|
|
2695
2718
|
const mod = assertEx18(await this.context.root.resolve(fullyQualifiedPath), () => `${fullyQualifiedPath} not found`);
|
|
2696
|
-
return asDivinerInstance4(mod, () => `${fullyQualifiedPath} is not an diviner
|
|
2719
|
+
return asDivinerInstance4(mod, () => `${fullyQualifiedPath} is not an diviner`, {
|
|
2720
|
+
required: true
|
|
2721
|
+
});
|
|
2697
2722
|
}
|
|
2698
2723
|
/**
|
|
2699
2724
|
* Get the XnsRegistrationsArchivist
|
|
@@ -2701,7 +2726,9 @@ var AbstractXnsCaller = class {
|
|
|
2701
2726
|
async getXnsRegistrationsArchivist(pathPrefix) {
|
|
2702
2727
|
const fullyQualifiedPath = pathPrefix ? `${pathPrefix}:${XnsRegistrationsArchivistModuleName}` : XnsRegistrationsArchivistModuleName;
|
|
2703
2728
|
const mod = assertEx18(await this.context.root.resolve(fullyQualifiedPath), () => `${fullyQualifiedPath} not found`);
|
|
2704
|
-
return asArchivistInstance7(mod, () => `${fullyQualifiedPath} is not an archivist
|
|
2729
|
+
return asArchivistInstance7(mod, () => `${fullyQualifiedPath} is not an archivist`, {
|
|
2730
|
+
required: true
|
|
2731
|
+
});
|
|
2705
2732
|
}
|
|
2706
2733
|
};
|
|
2707
2734
|
|
|
@@ -3355,11 +3382,15 @@ var OsSettingsCallerBase = class {
|
|
|
3355
3382
|
}
|
|
3356
3383
|
async getOsSettingsArchivist() {
|
|
3357
3384
|
const mod = assertEx24(await this.context.root.resolve(OsSettingsArchivistModuleName), () => `${OsSettingsArchivistModuleName} not found`);
|
|
3358
|
-
return asArchivistInstance8(mod, () => `${OsSettingsArchivistModuleName} is not an archivist
|
|
3385
|
+
return asArchivistInstance8(mod, () => `${OsSettingsArchivistModuleName} is not an archivist`, {
|
|
3386
|
+
required: true
|
|
3387
|
+
});
|
|
3359
3388
|
}
|
|
3360
3389
|
async getOsSettingsPayloadDiviner() {
|
|
3361
3390
|
const mod = assertEx24(await this.context.root.resolve(OsSettingsArchivistPayloadDivinerModuleName), () => `${OsSettingsArchivistPayloadDivinerModuleName} not found`);
|
|
3362
|
-
return asDivinerInstance5(mod, () => `${OsSettingsArchivistPayloadDivinerModuleName} is not a diviner
|
|
3391
|
+
return asDivinerInstance5(mod, () => `${OsSettingsArchivistPayloadDivinerModuleName} is not a diviner`, {
|
|
3392
|
+
required: true
|
|
3393
|
+
});
|
|
3363
3394
|
}
|
|
3364
3395
|
};
|
|
3365
3396
|
|
|
@@ -3845,7 +3876,9 @@ var PubSubBridgeCaller = class {
|
|
|
3845
3876
|
}
|
|
3846
3877
|
async getPubSubBridge() {
|
|
3847
3878
|
const mod = assertEx29(await this.node.resolve(BridgedPubSubModuleName), () => `${BridgedPubSubModuleName} not found`);
|
|
3848
|
-
return asBridgeInstance(mod, () => `${BridgedPubSubModuleName} is not a bridge
|
|
3879
|
+
return asBridgeInstance(mod, () => `${BridgedPubSubModuleName} is not a bridge`, {
|
|
3880
|
+
required: true
|
|
3881
|
+
});
|
|
3849
3882
|
}
|
|
3850
3883
|
};
|
|
3851
3884
|
export {
|