@xyo-network/react-standard-node 2.58.0-rc.1 → 2.58.0-rc.2
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/cjs/lib/Builders/MemoryNodeBuilder.js.map +1 -1
- package/dist/cjs/lib/Builders/StorageArchivistBuilder.js +2 -2
- package/dist/cjs/lib/Builders/StorageArchivistBuilder.js.map +1 -1
- package/dist/esm/lib/Builders/MemoryNodeBuilder.js.map +1 -1
- package/dist/esm/lib/Builders/StorageArchivistBuilder.js +3 -3
- package/dist/esm/lib/Builders/StorageArchivistBuilder.js.map +1 -1
- package/dist/types/lib/Builders/MemoryNodeBuilder.d.ts +125 -61
- package/dist/types/lib/Builders/MemoryNodeBuilder.d.ts.map +1 -1
- package/dist/types/lib/Builders/SentinelBuilder.d.ts +158 -112
- package/dist/types/lib/Builders/SentinelBuilder.d.ts.map +1 -1
- package/dist/types/lib/Builders/StorageArchivistBuilder.d.ts +188 -41
- package/dist/types/lib/Builders/StorageArchivistBuilder.d.ts.map +1 -1
- package/package.json +15 -15
- package/src/lib/Builders/MemoryNodeBuilder.ts +4 -4
- package/src/lib/Builders/StorageArchivistBuilder.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemoryNodeBuilder.js","sourceRoot":"","sources":["../../../../src/lib/Builders/MemoryNodeBuilder.ts"],"names":[],"mappings":";;;;AACA,sDAA4G;AAC5G,0DAA6E;AAE7E,4CAAgE;AAEhE,4DAA2D;AAI3D,uDAAmD;AACnD,uEAAmE;AAOnE,MAAa,iBAAiB;IAG5B,IAAI,IAAI;QACN,OAAO,IAAA,8BAAe,EAAC,IAAI,CAAC,KAAK,EAAE,wCAAwC,CAAC,CAAA;IAC9E,CAAC;IAED,MAAM,CAAO,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAA2B,EAAE,OAAyB;;YACpF,MAAM,QAAQ,GAAG,IAAI,IAAI,EAAE,CAAA;YAE3B,M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
@@ -45,8 +45,8 @@ class StorageArchivistBuilder {
|
|
|
45
45
|
findParentArchivist() {
|
|
46
46
|
var _a, _b, _c;
|
|
47
47
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
const
|
|
49
|
-
const [bridge] = (_a = (yield
|
|
48
|
+
const node = (0, node_1.asNodeInstance)(this.node, 'node not defined');
|
|
49
|
+
const [bridge] = (_a = (yield node.resolve({ name: ['RemoteNodeBridge'] }))) !== null && _a !== void 0 ? _a : [];
|
|
50
50
|
if (bridge) {
|
|
51
51
|
try {
|
|
52
52
|
const [archivist] = (_b = (yield bridge.resolve({ name: ['Archivist'] }))) !== null && _b !== void 0 ? _b : [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageArchivistBuilder.js","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":";;;;AACA,sDAAgI;AAChI,
|
|
1
|
+
{"version":3,"file":"StorageArchivistBuilder.js","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":";;;;AACA,sDAAgI;AAChI,4CAA8D;AAC9D,4DAA2D;AAM3D,MAAa,uBAAuB;IAIlC,YACU,MAA8B,EAC9B,OAAwB,EACxB,IAAiB;QAFjB,WAAM,GAAN,MAAM,CAAwB;QAC9B,YAAO,GAAP,OAAO,CAAiB;QACxB,SAAI,GAAJ,IAAI,CAAa;IACxB,CAAC;IAEJ,IAAI,SAAS;QACX,OAAO,IAAA,8BAAe,EAAC,IAAI,CAAC,UAAU,EAAE,uCAAuC,CAAC,CAAA;IAClF,CAAC;IAED,MAAM,CAAO,MAAM,CAAC,MAA8B,EAAE,OAAwB,EAAE,IAAgB;;YAC5F,MAAM,QAAQ,GAAG,IAAI,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,CAAA;YAChD,QAAQ,CAAC,eAAe,GAAG,MAAM,QAAQ,CAAC,mBAAmB,EAAE,CA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C;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StorageArchivist, StorageArchivistConfigSchema } from '@xyo-network/archivist';
|
|
2
|
-
import {
|
|
2
|
+
import { asNodeInstance } from '@xyo-network/node';
|
|
3
3
|
import { assertDefinedEx } from '@xyo-network/react-shared';
|
|
4
4
|
export class StorageArchivistBuilder {
|
|
5
5
|
config;
|
|
@@ -39,8 +39,8 @@ export class StorageArchivistBuilder {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
async findParentArchivist() {
|
|
42
|
-
const
|
|
43
|
-
const [bridge] = (await
|
|
42
|
+
const node = asNodeInstance(this.node, 'node not defined');
|
|
43
|
+
const [bridge] = (await node.resolve({ name: ['RemoteNodeBridge'] })) ?? [];
|
|
44
44
|
if (bridge) {
|
|
45
45
|
try {
|
|
46
46
|
const [archivist] = (await bridge.resolve({ name: ['Archivist'] })) ?? [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageArchivistBuilder.js","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,gBAAgB,EAA0B,4BAA4B,EAAE,MAAM,wBAAwB,CAAA;AAChI,OAAO,
|
|
1
|
+
{"version":3,"file":"StorageArchivistBuilder.js","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,gBAAgB,EAA0B,4BAA4B,EAAE,MAAM,wBAAwB,CAAA;AAChI,OAAO,EAAE,cAAc,EAAc,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAM3D,MAAM,OAAO,uBAAuB;IAKxB;IACA;IACA;IANF,UAAU,CAA8B;IACxC,eAAe,CAA6B;IAEpD,YACU,MAA8B,EAC9B,OAAwB,EACxB,IAAiB;QAFjB,WAAM,GAAN,MAAM,CAAwB;QAC9B,YAAO,GAAP,O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GAAG,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAA;QAC1D,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;QAC3E,IAAI,MAAM,EAAE;YACV,IAAI;gBACF,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAA;gBACzE,OAAO,SAA4B,CAAA;aACpC;YAAC,OAAO,CAAC,EAAE;gBACV,OAAO,CAAC,KAAK,CAAC,kCAAkC,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;aACvF;SACF;IACH,CAAC;CACF"}
|
|
@@ -1,80 +1,144 @@
|
|
|
1
1
|
import { AccountInstance } from '@xyo-network/account-model';
|
|
2
|
-
import {
|
|
2
|
+
import { ModuleInstance } from '@xyo-network/module';
|
|
3
3
|
import { MemoryNode } from '@xyo-network/node';
|
|
4
4
|
import { PayloadSetPluginResolver } from '@xyo-network/payloadset-plugin';
|
|
5
5
|
import { SentinelConfig } from '@xyo-network/sentinel';
|
|
6
|
-
import {
|
|
6
|
+
import { WitnessInstance } from '@xyo-network/witness';
|
|
7
7
|
export interface MemoryNodeBuilderConfig {
|
|
8
8
|
name?: string;
|
|
9
9
|
node?: MemoryNode;
|
|
10
10
|
}
|
|
11
11
|
export declare class MemoryNodeBuilder {
|
|
12
12
|
private _node;
|
|
13
|
-
get node(): MemoryNode<import("@xyo-network/
|
|
13
|
+
get node(): MemoryNode<import("@xyo-network/core").BaseParamsFields & {
|
|
14
|
+
account?: AccountInstance | "random" | undefined;
|
|
15
|
+
accountDerivationPath?: string | undefined;
|
|
16
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
17
|
+
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
18
|
+
readonly name?: string | undefined;
|
|
19
|
+
readonly paging?: Record<string, {
|
|
20
|
+
size?: number | undefined;
|
|
21
|
+
}> | undefined;
|
|
22
|
+
readonly schema: string;
|
|
23
|
+
readonly security?: {
|
|
24
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
25
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
|
|
26
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
readonly storeQueries?: boolean | undefined;
|
|
29
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
30
|
+
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
31
|
+
readonly name?: string | undefined;
|
|
32
|
+
readonly paging?: Record<string, {
|
|
33
|
+
size?: number | undefined;
|
|
34
|
+
}> | undefined;
|
|
35
|
+
readonly schema: "network.xyo.node.config";
|
|
36
|
+
readonly security?: {
|
|
37
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
38
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
|
|
39
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
readonly storeQueries?: boolean | undefined;
|
|
42
|
+
} & Omit<{
|
|
43
|
+
archivist?: string | undefined;
|
|
44
|
+
schema: "network.xyo.node.config";
|
|
45
|
+
} & Omit<undefined, "schema">, "schema"> & {
|
|
46
|
+
schema: "network.xyo.node.config";
|
|
47
|
+
}, "schema"> & {
|
|
48
|
+
schema: string;
|
|
49
|
+
}, "schema"> & {
|
|
50
|
+
schema: string;
|
|
51
|
+
};
|
|
52
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
53
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
54
|
+
}, import("@xyo-network/node").NodeModuleEventData>;
|
|
14
55
|
static create({ name, node }: MemoryNodeBuilderConfig, account?: AccountInstance): Promise<MemoryNodeBuilder>;
|
|
15
56
|
/** @deprecated - call specific method that corresponds to a type of archivist (i.e. addArchivistStorage) */
|
|
16
57
|
addArchivist(account: AccountInstance, moduleName?: string, namespace?: string): Promise<void>;
|
|
17
58
|
addArchivistMemory(moduleName?: string, account?: AccountInstance): Promise<void>;
|
|
18
59
|
addArchivistStorage(account: AccountInstance, moduleName?: string, namespace?: string): Promise<void>;
|
|
19
60
|
addBridge(apiDomain: string, moduleName?: string, account?: AccountInstance): Promise<void>;
|
|
20
|
-
addSentinel(config: SentinelConfig, account: AccountInstance): Promise<import("@xyo-network/sentinel").MemorySentinel<import("@xyo-network/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
readonly
|
|
56
|
-
readonly
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
61
|
+
addSentinel(config: SentinelConfig, account: AccountInstance): Promise<import("@xyo-network/sentinel").MemorySentinel<import("@xyo-network/core").BaseParamsFields & {
|
|
62
|
+
account?: AccountInstance | "random" | undefined;
|
|
63
|
+
accountDerivationPath?: string | undefined;
|
|
64
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
65
|
+
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
66
|
+
readonly name?: string | undefined;
|
|
67
|
+
readonly paging?: Record<string, {
|
|
68
|
+
size?: number | undefined;
|
|
69
|
+
}> | undefined;
|
|
70
|
+
readonly schema: string;
|
|
71
|
+
readonly security?: {
|
|
72
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
73
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
|
|
74
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
75
|
+
} | undefined;
|
|
76
|
+
readonly storeQueries?: boolean | undefined;
|
|
77
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
78
|
+
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
79
|
+
readonly name?: string | undefined;
|
|
80
|
+
readonly paging?: Record<string, {
|
|
81
|
+
size?: number | undefined;
|
|
82
|
+
}> | undefined;
|
|
83
|
+
readonly schema: string;
|
|
84
|
+
readonly security?: {
|
|
85
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
86
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
|
|
87
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
readonly storeQueries?: boolean | undefined;
|
|
90
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
91
|
+
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
92
|
+
readonly name?: string | undefined;
|
|
93
|
+
readonly paging?: Record<string, {
|
|
94
|
+
size?: number | undefined;
|
|
95
|
+
}> | undefined;
|
|
96
|
+
readonly schema: "network.xyo.sentinel.config";
|
|
97
|
+
readonly security?: {
|
|
98
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
99
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
|
|
100
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
101
|
+
} | undefined;
|
|
102
|
+
readonly storeQueries?: boolean | undefined;
|
|
103
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
104
|
+
readonly archivist?: import("@xyo-network/module").ArchivistModuleConfig | undefined;
|
|
105
|
+
readonly name?: string | undefined;
|
|
106
|
+
readonly paging?: Record<string, {
|
|
107
|
+
size?: number | undefined;
|
|
108
|
+
}> | undefined;
|
|
109
|
+
readonly schema: string;
|
|
110
|
+
readonly security?: {
|
|
111
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
112
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module").CosigningAddressSet)[]> | undefined;
|
|
113
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
114
|
+
} | undefined;
|
|
115
|
+
readonly storeQueries?: boolean | undefined;
|
|
116
|
+
} & Omit<{
|
|
117
|
+
archivists?: string[] | undefined;
|
|
118
|
+
schema: string;
|
|
119
|
+
}, "schema"> & {
|
|
120
|
+
schema: string;
|
|
121
|
+
} & {
|
|
122
|
+
schema: "network.xyo.sentinel.config";
|
|
123
|
+
witnesses?: string[] | undefined;
|
|
124
|
+
} & {
|
|
125
|
+
schema: string;
|
|
126
|
+
}, "schema"> & {
|
|
127
|
+
schema: "network.xyo.sentinel.config";
|
|
128
|
+
}, "schema"> & {
|
|
129
|
+
schema: string;
|
|
130
|
+
}, "schema"> & {
|
|
131
|
+
schema: string;
|
|
132
|
+
}, "schema"> & {
|
|
133
|
+
schema: string;
|
|
134
|
+
}, "schema"> & {
|
|
135
|
+
schema: string;
|
|
136
|
+
};
|
|
137
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
138
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
139
|
+
}, import("@xyo-network/sentinel").SentinelModuleEventData>>;
|
|
140
|
+
addWitnesses(pluginSetResolver: PayloadSetPluginResolver, witnesses?: (() => Promise<WitnessInstance>)[]): Promise<void>;
|
|
141
|
+
attach(module: ModuleInstance, external?: boolean, safeAttach?: boolean): Promise<void>;
|
|
78
142
|
private witnessCleanup;
|
|
79
143
|
}
|
|
80
144
|
//# sourceMappingURL=MemoryNodeBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemoryNodeBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/MemoryNodeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"MemoryNodeBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/MemoryNodeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAG5D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAoB,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AAEzE,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,eAAe,EAAiB,MAAM,sBAAsB,CAAA;AAKrE,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,UAAU,CAAA;CAClB;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,KAAK,CAAwB;IAErC,IAAI,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wDAEP;WAEY,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAQnH,4GAA4G;IACtG,YAAY,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAI9E,kBAAkB,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe;IAOjE,mBAAmB,CAAC,OAAO,EAAE,eAAe,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAOrF,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,SAAqB,EAAE,OAAO,CAAC,EAAE,eAAe;IAYvF,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM5D,YAAY,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,SAAS,GAAE,CAAC,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC,EAAO;IAkB5G,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,OAAO;YAgB/D,cAAc;CAM7B"}
|
|
@@ -5,119 +5,165 @@ export declare class SentinelBuilder {
|
|
|
5
5
|
private account;
|
|
6
6
|
private _sentinel;
|
|
7
7
|
protected constructor(config: SentinelConfig, account: AccountInstance);
|
|
8
|
-
get sentinel(): MemorySentinel<import("@xyo-network/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
8
|
+
get sentinel(): MemorySentinel<import("@xyo-network/core").BaseParamsFields & {
|
|
9
|
+
account?: AccountInstance | "random" | undefined;
|
|
10
|
+
accountDerivationPath?: string | undefined;
|
|
11
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
12
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
13
|
+
readonly name?: string | undefined;
|
|
14
|
+
readonly paging?: Record<string, {
|
|
15
|
+
size?: number | undefined;
|
|
16
|
+
}> | undefined;
|
|
17
|
+
readonly schema: string;
|
|
18
|
+
readonly security?: {
|
|
19
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
20
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
21
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
22
|
+
} | undefined;
|
|
23
|
+
readonly storeQueries?: boolean | undefined;
|
|
24
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
25
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
26
|
+
readonly name?: string | undefined;
|
|
27
|
+
readonly paging?: Record<string, {
|
|
28
|
+
size?: number | undefined;
|
|
29
|
+
}> | undefined;
|
|
30
|
+
readonly schema: string;
|
|
31
|
+
readonly security?: {
|
|
32
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
33
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
34
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
readonly storeQueries?: boolean | undefined;
|
|
37
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
38
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
39
|
+
readonly name?: string | undefined;
|
|
40
|
+
readonly paging?: Record<string, {
|
|
41
|
+
size?: number | undefined;
|
|
42
|
+
}> | undefined;
|
|
43
|
+
readonly schema: "network.xyo.sentinel.config";
|
|
44
|
+
readonly security?: {
|
|
45
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
46
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
47
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
readonly storeQueries?: boolean | undefined;
|
|
50
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
51
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
52
|
+
readonly name?: string | undefined;
|
|
53
|
+
readonly paging?: Record<string, {
|
|
54
|
+
size?: number | undefined;
|
|
55
|
+
}> | undefined;
|
|
56
|
+
readonly schema: string;
|
|
57
|
+
readonly security?: {
|
|
58
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
59
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
60
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
readonly storeQueries?: boolean | undefined;
|
|
63
|
+
} & Omit<{
|
|
64
|
+
archivists?: string[] | undefined;
|
|
65
|
+
schema: string;
|
|
66
|
+
}, "schema"> & {
|
|
67
|
+
schema: string;
|
|
68
|
+
} & {
|
|
69
|
+
schema: "network.xyo.sentinel.config";
|
|
70
|
+
witnesses?: string[] | undefined;
|
|
71
|
+
} & {
|
|
72
|
+
schema: string;
|
|
73
|
+
}, "schema"> & {
|
|
74
|
+
schema: "network.xyo.sentinel.config";
|
|
75
|
+
}, "schema"> & {
|
|
76
|
+
schema: string;
|
|
77
|
+
}, "schema"> & {
|
|
78
|
+
schema: string;
|
|
79
|
+
}, "schema"> & {
|
|
80
|
+
schema: string;
|
|
81
|
+
}, "schema"> & {
|
|
82
|
+
schema: string;
|
|
83
|
+
};
|
|
84
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
85
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
86
|
+
}, import("@xyo-network/sentinel").SentinelModuleEventData>;
|
|
64
87
|
static create(config: SentinelConfig, account: AccountInstance): Promise<SentinelBuilder>;
|
|
65
|
-
buildSentinel(): Promise<MemorySentinel<import("@xyo-network/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
readonly
|
|
75
|
-
readonly
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
readonly
|
|
88
|
-
readonly
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
88
|
+
buildSentinel(): Promise<MemorySentinel<import("@xyo-network/core").BaseParamsFields & {
|
|
89
|
+
account?: AccountInstance | "random" | undefined;
|
|
90
|
+
accountDerivationPath?: string | undefined;
|
|
91
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
92
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
93
|
+
readonly name?: string | undefined;
|
|
94
|
+
readonly paging?: Record<string, {
|
|
95
|
+
size?: number | undefined;
|
|
96
|
+
}> | undefined;
|
|
97
|
+
readonly schema: string;
|
|
98
|
+
readonly security?: {
|
|
99
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
100
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
101
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
readonly storeQueries?: boolean | undefined;
|
|
104
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
105
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
106
|
+
readonly name?: string | undefined;
|
|
107
|
+
readonly paging?: Record<string, {
|
|
108
|
+
size?: number | undefined;
|
|
109
|
+
}> | undefined;
|
|
110
|
+
readonly schema: string;
|
|
111
|
+
readonly security?: {
|
|
112
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
113
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
114
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
115
|
+
} | undefined;
|
|
116
|
+
readonly storeQueries?: boolean | undefined;
|
|
117
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
118
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
119
|
+
readonly name?: string | undefined;
|
|
120
|
+
readonly paging?: Record<string, {
|
|
121
|
+
size?: number | undefined;
|
|
122
|
+
}> | undefined;
|
|
123
|
+
readonly schema: "network.xyo.sentinel.config";
|
|
124
|
+
readonly security?: {
|
|
125
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
126
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
127
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
readonly storeQueries?: boolean | undefined;
|
|
130
|
+
} & Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
131
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
132
|
+
readonly name?: string | undefined;
|
|
133
|
+
readonly paging?: Record<string, {
|
|
134
|
+
size?: number | undefined;
|
|
135
|
+
}> | undefined;
|
|
136
|
+
readonly schema: string;
|
|
137
|
+
readonly security?: {
|
|
138
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
139
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
140
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
readonly storeQueries?: boolean | undefined;
|
|
143
|
+
} & Omit<{
|
|
144
|
+
archivists?: string[] | undefined;
|
|
145
|
+
schema: string;
|
|
146
|
+
}, "schema"> & {
|
|
147
|
+
schema: string;
|
|
148
|
+
} & {
|
|
149
|
+
schema: "network.xyo.sentinel.config";
|
|
150
|
+
witnesses?: string[] | undefined;
|
|
151
|
+
} & {
|
|
152
|
+
schema: string;
|
|
153
|
+
}, "schema"> & {
|
|
154
|
+
schema: "network.xyo.sentinel.config";
|
|
155
|
+
}, "schema"> & {
|
|
156
|
+
schema: string;
|
|
157
|
+
}, "schema"> & {
|
|
158
|
+
schema: string;
|
|
159
|
+
}, "schema"> & {
|
|
160
|
+
schema: string;
|
|
161
|
+
}, "schema"> & {
|
|
162
|
+
schema: string;
|
|
163
|
+
};
|
|
164
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
165
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
166
|
+
}, import("@xyo-network/sentinel").SentinelModuleEventData>>;
|
|
121
167
|
private buildParams;
|
|
122
168
|
}
|
|
123
169
|
//# sourceMappingURL=SentinelBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SentinelBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/SentinelBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAkB,MAAM,uBAAuB,CAAA;AAEtF,qBAAa,eAAe;IAIxB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IAJjB,OAAO,CAAC,SAAS,CAA4B;IAE7C,SAAS,aACC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,eAAe;IAKlC,IAAI,QAAQ
|
|
1
|
+
{"version":3,"file":"SentinelBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/SentinelBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAkB,MAAM,uBAAuB,CAAA;AAEtF,qBAAa,eAAe;IAIxB,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IAJjB,OAAO,CAAC,SAAS,CAA4B;IAE7C,SAAS,aACC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,eAAe;IAKlC,IAAI,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gEAEX;WAEY,MAAM,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IAMzF,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKnB,OAAO,CAAC,WAAW;CAMpB"}
|
|
@@ -11,48 +11,195 @@ export declare class StorageArchivistBuilder {
|
|
|
11
11
|
private node?;
|
|
12
12
|
private _archivist;
|
|
13
13
|
private remoteArchivist;
|
|
14
|
-
protected constructor(config: ArchivistBuilderConfig, account: AccountInstance, node?: MemoryNode<import("@xyo-network/
|
|
15
|
-
|
|
14
|
+
protected constructor(config: ArchivistBuilderConfig, account: AccountInstance, node?: MemoryNode<import("@xyo-network/core").BaseParamsFields & {
|
|
15
|
+
account?: AccountInstance | "random" | undefined;
|
|
16
|
+
accountDerivationPath?: string | undefined;
|
|
17
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
18
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
19
|
+
readonly name?: string | undefined;
|
|
20
|
+
readonly paging?: Record<string, {
|
|
21
|
+
size?: number | undefined;
|
|
22
|
+
}> | undefined;
|
|
23
|
+
readonly schema: string;
|
|
24
|
+
readonly security?: {
|
|
25
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
26
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
27
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
readonly storeQueries?: boolean | undefined;
|
|
30
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
31
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
32
|
+
readonly name?: string | undefined;
|
|
33
|
+
readonly paging?: Record<string, {
|
|
34
|
+
size?: number | undefined;
|
|
35
|
+
}> | undefined;
|
|
36
|
+
readonly schema: "network.xyo.node.config";
|
|
37
|
+
readonly security?: {
|
|
38
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
39
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
40
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
readonly storeQueries?: boolean | undefined;
|
|
43
|
+
} & Omit<{
|
|
44
|
+
archivist?: string | undefined;
|
|
45
|
+
schema: "network.xyo.node.config";
|
|
46
|
+
} & Omit<undefined, "schema">, "schema"> & {
|
|
47
|
+
schema: "network.xyo.node.config";
|
|
48
|
+
}, "schema"> & {
|
|
49
|
+
schema: string;
|
|
50
|
+
}, "schema"> & {
|
|
51
|
+
schema: string;
|
|
52
|
+
};
|
|
53
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
54
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
55
|
+
}, import("@xyo-network/node").NodeModuleEventData> | undefined);
|
|
56
|
+
get archivist(): StorageArchivist<import("@xyo-network/core").BaseParamsFields & {
|
|
57
|
+
account?: AccountInstance | "random" | undefined;
|
|
58
|
+
accountDerivationPath?: string | undefined;
|
|
59
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
60
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
61
|
+
readonly name?: string | undefined;
|
|
62
|
+
readonly paging?: Record<string, {
|
|
63
|
+
size?: number | undefined;
|
|
64
|
+
}> | undefined;
|
|
65
|
+
readonly schema: string;
|
|
66
|
+
readonly security?: {
|
|
67
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
68
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
69
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
readonly storeQueries?: boolean | undefined;
|
|
72
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
73
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
74
|
+
readonly name?: string | undefined;
|
|
75
|
+
readonly paging?: Record<string, {
|
|
76
|
+
size?: number | undefined;
|
|
77
|
+
}> | undefined;
|
|
78
|
+
readonly schema: "network.xyo.archivist.storage.config";
|
|
79
|
+
readonly security?: {
|
|
80
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
81
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
82
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
83
|
+
} | undefined;
|
|
84
|
+
readonly storeQueries?: boolean | undefined;
|
|
85
|
+
} & Omit<{
|
|
86
|
+
parents?: import("@xyo-network/archivist").ArchivistParents | undefined;
|
|
87
|
+
requireAllParents?: boolean | undefined;
|
|
88
|
+
schema: "network.xyo.archivist.storage.config";
|
|
89
|
+
storeParentReads?: boolean | undefined;
|
|
90
|
+
} & Omit<{
|
|
91
|
+
maxEntries?: number | undefined;
|
|
92
|
+
maxEntrySize?: number | undefined;
|
|
93
|
+
namespace?: string | undefined;
|
|
94
|
+
persistAccount?: boolean | undefined;
|
|
95
|
+
schema: "network.xyo.archivist.storage.config";
|
|
96
|
+
type?: "local" | "session" | "page" | undefined;
|
|
97
|
+
}, "schema">, "schema"> & {
|
|
98
|
+
schema: "network.xyo.archivist.storage.config";
|
|
99
|
+
}, "schema"> & {
|
|
100
|
+
schema: string;
|
|
101
|
+
}, "schema"> & {
|
|
102
|
+
schema: string;
|
|
103
|
+
};
|
|
104
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
105
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
106
|
+
}, import("@xyo-network/archivist").ArchivistModuleEventData>;
|
|
16
107
|
static create(config: ArchivistBuilderConfig, account: AccountInstance, node: MemoryNode): Promise<StorageArchivistBuilder>;
|
|
17
|
-
buildArchivist(): Promise<StorageArchivist<import("@xyo-network/
|
|
108
|
+
buildArchivist(): Promise<StorageArchivist<import("@xyo-network/core").BaseParamsFields & {
|
|
109
|
+
account?: AccountInstance | "random" | undefined;
|
|
110
|
+
accountDerivationPath?: string | undefined;
|
|
111
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
112
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
113
|
+
readonly name?: string | undefined;
|
|
114
|
+
readonly paging?: Record<string, {
|
|
115
|
+
size?: number | undefined;
|
|
116
|
+
}> | undefined;
|
|
117
|
+
readonly schema: string;
|
|
118
|
+
readonly security?: {
|
|
119
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
120
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
121
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
readonly storeQueries?: boolean | undefined;
|
|
124
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
125
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
126
|
+
readonly name?: string | undefined;
|
|
127
|
+
readonly paging?: Record<string, {
|
|
128
|
+
size?: number | undefined;
|
|
129
|
+
}> | undefined;
|
|
130
|
+
readonly schema: "network.xyo.archivist.storage.config";
|
|
131
|
+
readonly security?: {
|
|
132
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
133
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
134
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
readonly storeQueries?: boolean | undefined;
|
|
137
|
+
} & Omit<{
|
|
138
|
+
parents?: import("@xyo-network/archivist").ArchivistParents | undefined;
|
|
139
|
+
requireAllParents?: boolean | undefined;
|
|
140
|
+
schema: "network.xyo.archivist.storage.config";
|
|
141
|
+
storeParentReads?: boolean | undefined;
|
|
142
|
+
} & Omit<{
|
|
143
|
+
maxEntries?: number | undefined;
|
|
144
|
+
maxEntrySize?: number | undefined;
|
|
145
|
+
namespace?: string | undefined;
|
|
146
|
+
persistAccount?: boolean | undefined;
|
|
147
|
+
schema: "network.xyo.archivist.storage.config";
|
|
148
|
+
type?: "local" | "session" | "page" | undefined;
|
|
149
|
+
}, "schema">, "schema"> & {
|
|
150
|
+
schema: "network.xyo.archivist.storage.config";
|
|
151
|
+
}, "schema"> & {
|
|
152
|
+
schema: string;
|
|
153
|
+
}, "schema"> & {
|
|
154
|
+
schema: string;
|
|
155
|
+
};
|
|
156
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
157
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
158
|
+
}, import("@xyo-network/archivist").ArchivistModuleEventData>>;
|
|
18
159
|
buildConfig(): StorageArchivistConfig;
|
|
19
|
-
findParentArchivist(): Promise<ArchivistModule<import("@xyo-network/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
schema
|
|
54
|
-
|
|
55
|
-
schema
|
|
56
|
-
|
|
160
|
+
findParentArchivist(): Promise<ArchivistModule<import("@xyo-network/core").BaseParamsFields & {
|
|
161
|
+
account?: AccountInstance | "random" | undefined;
|
|
162
|
+
accountDerivationPath?: string | undefined;
|
|
163
|
+
config: import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
164
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
165
|
+
readonly name?: string | undefined;
|
|
166
|
+
readonly paging?: Record<string, {
|
|
167
|
+
size?: number | undefined;
|
|
168
|
+
}> | undefined;
|
|
169
|
+
readonly schema: string;
|
|
170
|
+
readonly security?: {
|
|
171
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
172
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
173
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
readonly storeQueries?: boolean | undefined;
|
|
176
|
+
} & Omit<Omit<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
177
|
+
readonly archivist?: import("@xyo-network/module-model").ArchivistModuleConfig | undefined;
|
|
178
|
+
readonly name?: string | undefined;
|
|
179
|
+
readonly paging?: Record<string, {
|
|
180
|
+
size?: number | undefined;
|
|
181
|
+
}> | undefined;
|
|
182
|
+
readonly schema: "network.xyo.archivist.config";
|
|
183
|
+
readonly security?: {
|
|
184
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
185
|
+
readonly allowed?: Record<string, (string | import("@xyo-network/module-model").CosigningAddressSet)[]> | undefined;
|
|
186
|
+
readonly disallowed?: Record<string, string[]> | undefined;
|
|
187
|
+
} | undefined;
|
|
188
|
+
readonly storeQueries?: boolean | undefined;
|
|
189
|
+
} & Omit<{
|
|
190
|
+
parents?: import("@xyo-network/archivist").ArchivistParents | undefined;
|
|
191
|
+
requireAllParents?: boolean | undefined;
|
|
192
|
+
schema: "network.xyo.archivist.config";
|
|
193
|
+
storeParentReads?: boolean | undefined;
|
|
194
|
+
} & Omit<undefined, "schema">, "schema"> & {
|
|
195
|
+
schema: "network.xyo.archivist.config";
|
|
196
|
+
}, "schema"> & {
|
|
197
|
+
schema: string;
|
|
198
|
+
}, "schema"> & {
|
|
199
|
+
schema: string;
|
|
200
|
+
};
|
|
201
|
+
ephemeralQueryAccountEnabled?: boolean | undefined;
|
|
202
|
+
wallet?: import("@xyo-network/wallet-model").WalletInstance | undefined;
|
|
203
|
+
}, import("@xyo-network/module-model").ModuleEventData> | undefined>;
|
|
57
204
|
}
|
|
58
205
|
//# sourceMappingURL=StorageArchivistBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageArchivistBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,sBAAsB,EAAgC,MAAM,wBAAwB,CAAA;AAChI,OAAO,
|
|
1
|
+
{"version":3,"file":"StorageArchivistBuilder.d.ts","sourceRoot":"","sources":["../../../../src/lib/Builders/StorageArchivistBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,sBAAsB,EAAgC,MAAM,wBAAwB,CAAA;AAChI,OAAO,EAAkB,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAG9D,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AACD,qBAAa,uBAAuB;IAKhC,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,IAAI,CAAC;IANf,OAAO,CAAC,UAAU,CAA8B;IAChD,OAAO,CAAC,eAAe,CAA6B;IAEpD,SAAS,aACC,MAAM,EAAE,sBAAsB,EAC9B,OAAO,EAAE,eAAe,EACxB,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAAY;IAG3B,IAAI,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAEZ;WAEY,MAAM,CAAC,MAAM,EAAE,sBAAsB,EAAE,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,uBAAuB,CAAC;IAO3H,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKpB,WAAW,IAAI,sBAAsB;IAc/B,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY1B"}
|
package/package.json
CHANGED
|
@@ -13,22 +13,22 @@
|
|
|
13
13
|
"@xylabs/react-async-effect": "~2.17.6",
|
|
14
14
|
"@xylabs/react-promise": "~2.17.6",
|
|
15
15
|
"@xylabs/react-shared": "~2.17.6",
|
|
16
|
-
"@xyo-network/account-model": "
|
|
17
|
-
"@xyo-network/archivist": "
|
|
18
|
-
"@xyo-network/http-bridge": "
|
|
19
|
-
"@xyo-network/module": "
|
|
20
|
-
"@xyo-network/node": "
|
|
21
|
-
"@xyo-network/payloadset-plugin": "
|
|
22
|
-
"@xyo-network/react-network": "~2.58.0-rc.
|
|
23
|
-
"@xyo-network/react-node": "~2.58.0-rc.
|
|
24
|
-
"@xyo-network/react-shared": "~2.58.0-rc.
|
|
25
|
-
"@xyo-network/react-wallet": "~2.58.0-rc.
|
|
26
|
-
"@xyo-network/sentinel": "
|
|
27
|
-
"@xyo-network/wallet-model": "
|
|
28
|
-
"@xyo-network/witness": "
|
|
16
|
+
"@xyo-network/account-model": "^2.67.0-rc.2",
|
|
17
|
+
"@xyo-network/archivist": "^2.67.0-rc.2",
|
|
18
|
+
"@xyo-network/http-bridge": "^2.67.0-rc.2",
|
|
19
|
+
"@xyo-network/module": "^2.67.0-rc.2",
|
|
20
|
+
"@xyo-network/node": "^2.67.0-rc.2",
|
|
21
|
+
"@xyo-network/payloadset-plugin": "^2.67.0-rc.2",
|
|
22
|
+
"@xyo-network/react-network": "~2.58.0-rc.2",
|
|
23
|
+
"@xyo-network/react-node": "~2.58.0-rc.2",
|
|
24
|
+
"@xyo-network/react-shared": "~2.58.0-rc.2",
|
|
25
|
+
"@xyo-network/react-wallet": "~2.58.0-rc.2",
|
|
26
|
+
"@xyo-network/sentinel": "^2.67.0-rc.2",
|
|
27
|
+
"@xyo-network/wallet-model": "^2.67.0-rc.2",
|
|
28
|
+
"@xyo-network/witness": "^2.67.0-rc.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@storybook/react": "^7.1.
|
|
31
|
+
"@storybook/react": "^7.1.1",
|
|
32
32
|
"@xylabs/ts-scripts-yarn3": "^2.19.0",
|
|
33
33
|
"@xylabs/tsconfig-react": "^2.19.0",
|
|
34
34
|
"typescript": "^5.1.6"
|
|
@@ -85,6 +85,6 @@
|
|
|
85
85
|
},
|
|
86
86
|
"sideEffects": false,
|
|
87
87
|
"types": "dist/types/index.d.ts",
|
|
88
|
-
"version": "2.58.0-rc.
|
|
88
|
+
"version": "2.58.0-rc.2",
|
|
89
89
|
"stableVersion": "2.57.7"
|
|
90
90
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AccountInstance } from '@xyo-network/account-model'
|
|
2
2
|
import { MemoryArchivist, MemoryArchivistConfig, MemoryArchivistConfigSchema } from '@xyo-network/archivist'
|
|
3
3
|
import { HttpBridge, HttpBridgeConfigSchema } from '@xyo-network/http-bridge'
|
|
4
|
-
import {
|
|
4
|
+
import { ModuleInstance } from '@xyo-network/module'
|
|
5
5
|
import { MemoryNode, NodeConfigSchema } from '@xyo-network/node'
|
|
6
6
|
import { PayloadSetPluginResolver } from '@xyo-network/payloadset-plugin'
|
|
7
7
|
import { assertDefinedEx } from '@xyo-network/react-shared'
|
|
8
8
|
import { SentinelConfig } from '@xyo-network/sentinel'
|
|
9
|
-
import { WitnessModule } from '@xyo-network/witness'
|
|
9
|
+
import { WitnessInstance, WitnessModule } from '@xyo-network/witness'
|
|
10
10
|
|
|
11
11
|
import { SentinelBuilder } from './SentinelBuilder'
|
|
12
12
|
import { StorageArchivistBuilder } from './StorageArchivistBuilder'
|
|
@@ -68,7 +68,7 @@ export class MemoryNodeBuilder {
|
|
|
68
68
|
return sentinel
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
async addWitnesses(pluginSetResolver: PayloadSetPluginResolver, witnesses: (() => Promise<
|
|
71
|
+
async addWitnesses(pluginSetResolver: PayloadSetPluginResolver, witnesses: (() => Promise<WitnessInstance>)[] = []) {
|
|
72
72
|
await Promise.all(
|
|
73
73
|
pluginSetResolver.witnesses().map(async (pluginSet, index) => {
|
|
74
74
|
// Pass the prebuilt witness at the same index
|
|
@@ -86,7 +86,7 @@ export class MemoryNodeBuilder {
|
|
|
86
86
|
)
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
async attach(module:
|
|
89
|
+
async attach(module: ModuleInstance, external?: boolean, safeAttach?: boolean) {
|
|
90
90
|
try {
|
|
91
91
|
if (safeAttach) {
|
|
92
92
|
const existingModule = (await this.node.resolve({ address: [module.address] })).pop()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccountInstance } from '@xyo-network/account-model'
|
|
2
2
|
import { ArchivistModule, StorageArchivist, StorageArchivistConfig, StorageArchivistConfigSchema } from '@xyo-network/archivist'
|
|
3
|
-
import {
|
|
3
|
+
import { asNodeInstance, MemoryNode } from '@xyo-network/node'
|
|
4
4
|
import { assertDefinedEx } from '@xyo-network/react-shared'
|
|
5
5
|
|
|
6
6
|
export interface ArchivistBuilderConfig {
|
|
@@ -48,8 +48,8 @@ export class StorageArchivistBuilder {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
async findParentArchivist() {
|
|
51
|
-
const
|
|
52
|
-
const [bridge] = (await
|
|
51
|
+
const node = asNodeInstance(this.node, 'node not defined')
|
|
52
|
+
const [bridge] = (await node.resolve({ name: ['RemoteNodeBridge'] })) ?? []
|
|
53
53
|
if (bridge) {
|
|
54
54
|
try {
|
|
55
55
|
const [archivist] = (await bridge.resolve({ name: ['Archivist'] })) ?? []
|