@xyo-network/os-runtime 3.0.10 → 3.0.11
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.d.ts +15 -4
- package/dist/neutral/index.mjs +2599 -2573
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/XyOs.ts +9 -0
- package/src/XyOsBase.ts +11 -1
- package/src/XyOsDapp.ts +6 -1
- package/src/classes/registration/DappRegistrationService.ts +11 -2
- package/src/classes/signer/Signers.ts +4 -0
package/dist/neutral/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
|
8
8
|
import * as _xylabs_object from '@xylabs/object';
|
|
9
9
|
import { BaseParams, JsonObject } from '@xylabs/object';
|
|
10
10
|
import * as _xyo_network_os_model from '@xyo-network/os-model';
|
|
11
|
-
import { XyOsContext, DappAccessRequest, RegisteredDappAccess, TemporalIndexRegistrationResults, RegisteredNames, DappAccessInterface, NodeAdapterBaseEvents, NodeAdapter, NetworkAdapterBase, AdapterSetCreator, DappInjectableParams, SigningKey, DappId, DappIntentTypes, DappMode, DappIntent, RegisteredDapp, WindowDappNodeSet, PostRegistrationHandler, RegisteredDappSetResult, DappName, DappPackageManifestPayload, DappNavItemSelection, DappNavMenuConfig, DappNavItem, ExternalModule, WalletId, DappConfig, DappIcon, DappSet, PayloadWithVersion, DappParams, UnregisteredDapp, XyOsDappContext, DappRegistrationResults, ValidOsAchievements, OsBadge, NodeBackground, WalletSeedPhrase, SignersExternal, WalletKindSignerPaths, EventBusConnectionInterface, EventBusConnectionType, EventBusConnectionRequest, EventBusInterface, EventBusPubSubConnectionInterface, PublisherEventListenerEventData, SubscribableEventListeners, EventBusPubSubConnectionRequest, StackBaseEvents, StackInitializer, XyOsGlobal, XyOsDappDetails } from '@xyo-network/os-model';
|
|
11
|
+
import { XyOsContext, DappAccessRequest, RegisteredDappAccess, TemporalIndexRegistrationResults, RegisteredNames, DappAccessInterface, NodeAdapterBaseEvents, NodeAdapter, NetworkAdapterBase, AdapterSetCreator, DappInjectableParams, SigningKey, DappId, DappIntentTypes, DappMode, DappIntent, RegisteredDapp, WindowDappNodeSet, PostRegistrationHandler, RegisteredDappSetResult, DappName, DappPackageManifestPayload, DappNavItemSelection, DappNavMenuConfig, DappNavItem, ExternalModule, WalletId, DappConfig, DappIcon, DappSet, PayloadWithVersion, DappParams, UnregisteredDapp, XyOsDappContext, DappRegistrationResults, ValidOsAchievements, OsBadge, NodeBackground, WalletSeedPhrase, SignersExternal, WalletKindSignerPaths, SignerAccounts, EventBusConnectionInterface, EventBusConnectionType, EventBusConnectionRequest, EventBusInterface, EventBusPubSubConnectionInterface, PublisherEventListenerEventData, SubscribableEventListeners, EventBusPubSubConnectionRequest, StackBaseEvents, StackInitializer, OsUser, XyOsGlobal, XyOsDappDetails } from '@xyo-network/os-model';
|
|
12
12
|
import * as _xyo_network_diviner_model from '@xyo-network/diviner-model';
|
|
13
13
|
import { DivinerInstance } from '@xyo-network/diviner-model';
|
|
14
14
|
import * as _xyo_network_archivist_model from '@xyo-network/archivist-model';
|
|
@@ -24,10 +24,10 @@ import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator';
|
|
|
24
24
|
import { ModuleManifest, PackageManifest } from '@xyo-network/manifest';
|
|
25
25
|
import { WalletInstance } from '@xyo-network/wallet-model';
|
|
26
26
|
import { ManifestWrapper } from '@xyo-network/manifest-wrapper';
|
|
27
|
-
import * as _xylabs_promise from '@xylabs/promise';
|
|
28
|
-
import { Promisable } from '@xylabs/promise';
|
|
29
27
|
import { WalletSeedPhraseStore, WalletKind } from '@xyo-network/bios-model';
|
|
30
28
|
import { EventData } from '@xyo-network/module-events';
|
|
29
|
+
import * as _xylabs_promise from '@xylabs/promise';
|
|
30
|
+
import { Promisable } from '@xylabs/promise';
|
|
31
31
|
import { BridgeExposeOptions } from '@xyo-network/bridge-model';
|
|
32
32
|
import { Mutex } from 'async-mutex';
|
|
33
33
|
|
|
@@ -876,10 +876,11 @@ declare class DappRegistrationService {
|
|
|
876
876
|
private dappAccessRequestConnection;
|
|
877
877
|
private exposeDappRequestConnection;
|
|
878
878
|
constructor(context: XyOsContext, params?: DappRegistrationServiceParams, locator?: ModuleFactoryLocator, developmentMode?: boolean | undefined);
|
|
879
|
-
buildDapp(manifest: DappPackageManifestPayload, dappId?: string, name?: string):
|
|
879
|
+
buildDapp(manifest: DappPackageManifestPayload, dappId?: string, name?: string): Promise<XyOsDappContext>;
|
|
880
880
|
getParamsForRegisteredDapp(dappId: string): DappParams;
|
|
881
881
|
start(): Promise<DappRegistrationResults>;
|
|
882
882
|
private addConnectionRequests;
|
|
883
|
+
private getUser;
|
|
883
884
|
private postRegistrationHandlers;
|
|
884
885
|
}
|
|
885
886
|
|
|
@@ -1061,6 +1062,7 @@ declare class Signers implements SignersExternal {
|
|
|
1061
1062
|
private get signerAccounts();
|
|
1062
1063
|
private get walletStore();
|
|
1063
1064
|
getSigner(walletKind: WalletKind, signer: string): AccountInstance | undefined;
|
|
1065
|
+
getWalletKindSigner(walletKind: WalletKind): SignerAccounts | undefined;
|
|
1064
1066
|
initialize(): Promise<void>;
|
|
1065
1067
|
private initializeSigners;
|
|
1066
1068
|
}
|
|
@@ -1536,6 +1538,7 @@ interface XyOsContextParams<TManifest extends PackageManifest = PackageManifest>
|
|
|
1536
1538
|
locator?: ModuleFactoryLocator;
|
|
1537
1539
|
manifest?: TManifest;
|
|
1538
1540
|
platformLocator?: ModuleFactoryLocator;
|
|
1541
|
+
signerPaths?: WalletKindSignerPaths;
|
|
1539
1542
|
}
|
|
1540
1543
|
declare class XyOsContextBase<TParams extends XyOsContextParams | void = void> extends BaseEmitter<TParams extends XyOsContextParams ? TParams : XyOsContextParams> {
|
|
1541
1544
|
protected _bootMutex: Mutex;
|
|
@@ -1552,7 +1555,9 @@ declare class XyOsContextBase<TParams extends XyOsContextParams | void = void> e
|
|
|
1552
1555
|
get possibleRoot(): NodeInstance | undefined;
|
|
1553
1556
|
get root(): NodeInstance;
|
|
1554
1557
|
get runningDapps(): DappId[];
|
|
1558
|
+
get signerPaths(): WalletKindSignerPaths | undefined;
|
|
1555
1559
|
get state(): "stopped" | "running";
|
|
1560
|
+
get user(): OsUser;
|
|
1556
1561
|
boot(_wallet: WalletInstance$1, _locator: ModuleFactoryLocator): void;
|
|
1557
1562
|
buildDapp(_manifest: DappPackageManifestPayload, _dappId?: DappId): Promisable<XyOsDappContext>;
|
|
1558
1563
|
dappByName(_dappId: DappId): Promisable<XyOsDappContext | undefined>;
|
|
@@ -1581,6 +1586,7 @@ declare class XyOs extends XyOsContextBase<XyOsParams> implements XyOsContext {
|
|
|
1581
1586
|
protected _kernel: KernelExternal;
|
|
1582
1587
|
protected _locator: ModuleFactoryLocator;
|
|
1583
1588
|
protected dappRegistrationService: DappRegistrationService;
|
|
1589
|
+
protected signers: SignersExternal | undefined;
|
|
1584
1590
|
private stackManager;
|
|
1585
1591
|
constructor({ eventBus, kernel, locator, dappsConfiguration, developmentMode, stackMap, ...params }?: XyOsParams);
|
|
1586
1592
|
static get monitoring(): XyOsMonitor | undefined;
|
|
@@ -1619,6 +1625,9 @@ declare class XyOs extends XyOsContextBase<XyOsParams> implements XyOsContext {
|
|
|
1619
1625
|
get kernel(): XyOsContext['kernel'] | undefined;
|
|
1620
1626
|
get locator(): ModuleFactoryLocator;
|
|
1621
1627
|
get stacks(): string[];
|
|
1628
|
+
get user(): {
|
|
1629
|
+
signers: _xyo_network_os_model.SignerAccounts | undefined;
|
|
1630
|
+
};
|
|
1622
1631
|
static monitor<T>(fn: () => Promise<T>, eventConfig: MonitorEventConfig): Promise<T>;
|
|
1623
1632
|
boot(wallet: WalletInstance, locator?: ModuleFactoryLocator): Promise<void>;
|
|
1624
1633
|
buildDapp(manifest: DappPackageManifestPayload, dappId?: string, name?: string): Promisable<XyOsDappContext>;
|
|
@@ -1633,6 +1642,7 @@ interface XyOsDappContextParams extends XyOsContextParams<DappPackageManifestPay
|
|
|
1633
1642
|
dapp: XyOsDappDetails;
|
|
1634
1643
|
locator: ModuleFactoryLocator;
|
|
1635
1644
|
parent: XyOsContext;
|
|
1645
|
+
user: OsUser;
|
|
1636
1646
|
}
|
|
1637
1647
|
declare class XyOsDapp extends XyOsContextBase<XyOsDappContextParams> implements XyOsDappContext {
|
|
1638
1648
|
dapp: XyOsDappDetails;
|
|
@@ -1671,6 +1681,7 @@ declare class XyOsDapp extends XyOsContextBase<XyOsDappContextParams> implements
|
|
|
1671
1681
|
get kernel(): XyOsContextBase['kernel'];
|
|
1672
1682
|
get parent(): XyOsContext;
|
|
1673
1683
|
get stacks(): never[];
|
|
1684
|
+
get user(): OsUser;
|
|
1674
1685
|
boot(wallet: WalletInstance$1, locator?: ModuleFactoryLocator): Promise<void>;
|
|
1675
1686
|
getStack(stackName: string): _xyo_network_os_model.StackInitializer<_xyo_network_os_model.StackBaseEvents>;
|
|
1676
1687
|
}
|