@xyo-network/react-standard-node 2.57.7 → 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/SentinelBuilder.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/SentinelBuilder.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 +18 -17
- package/src/lib/Builders/MemoryNodeBuilder.ts +4 -4
- package/src/lib/Builders/SentinelBuilder.ts +4 -1
- package/src/lib/Builders/StorageArchivistBuilder.ts +8 -4
- package/dist/docs.json +0 -8150
|
@@ -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;
|
|
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,24 +13,24 @@
|
|
|
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.
|
|
23
|
-
"@xyo-network/react-node": "~2.
|
|
24
|
-
"@xyo-network/react-shared": "~2.
|
|
25
|
-
"@xyo-network/react-wallet": "~2.
|
|
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.
|
|
32
|
-
"@xylabs/ts-scripts-yarn3": "^2.
|
|
33
|
-
"@xylabs/tsconfig-react": "^2.
|
|
31
|
+
"@storybook/react": "^7.1.1",
|
|
32
|
+
"@xylabs/ts-scripts-yarn3": "^2.19.0",
|
|
33
|
+
"@xylabs/tsconfig-react": "^2.19.0",
|
|
34
34
|
"typescript": "^5.1.6"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
@@ -85,5 +85,6 @@
|
|
|
85
85
|
},
|
|
86
86
|
"sideEffects": false,
|
|
87
87
|
"types": "dist/types/index.d.ts",
|
|
88
|
-
"version": "2.
|
|
88
|
+
"version": "2.58.0-rc.2",
|
|
89
|
+
"stableVersion": "2.57.7"
|
|
89
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()
|