@xyo-network/react-standard-node 4.4.3 → 4.4.4
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/browser/index.d.ts +1066 -5
- package/package.json +9 -9
- package/dist/browser/components/ActiveStandardNode.d.ts +0 -7
- package/dist/browser/components/ActiveStandardNode.d.ts.map +0 -1
- package/dist/browser/components/index.d.ts +0 -2
- package/dist/browser/components/index.d.ts.map +0 -1
- package/dist/browser/contexts/StandardRemoteNodes/Context.d.ts +0 -3
- package/dist/browser/contexts/StandardRemoteNodes/Context.d.ts.map +0 -1
- package/dist/browser/contexts/StandardRemoteNodes/Providers.d.ts +0 -11
- package/dist/browser/contexts/StandardRemoteNodes/Providers.d.ts.map +0 -1
- package/dist/browser/contexts/StandardRemoteNodes/State.d.ts +0 -8
- package/dist/browser/contexts/StandardRemoteNodes/State.d.ts.map +0 -1
- package/dist/browser/contexts/StandardRemoteNodes/index.d.ts +0 -5
- package/dist/browser/contexts/StandardRemoteNodes/index.d.ts.map +0 -1
- package/dist/browser/contexts/StandardRemoteNodes/use.d.ts +0 -2
- package/dist/browser/contexts/StandardRemoteNodes/use.d.ts.map +0 -1
- package/dist/browser/contexts/index.d.ts +0 -2
- package/dist/browser/contexts/index.d.ts.map +0 -1
- package/dist/browser/hooks/index.d.ts +0 -2
- package/dist/browser/hooks/index.d.ts.map +0 -1
- package/dist/browser/hooks/useActiveNodeAddress.d.ts +0 -2
- package/dist/browser/hooks/useActiveNodeAddress.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/lib/Builders/MemoryNodeBuilder.d.ts +0 -311
- package/dist/browser/lib/Builders/MemoryNodeBuilder.d.ts.map +0 -1
- package/dist/browser/lib/Builders/SentinelBuilder.d.ts +0 -500
- package/dist/browser/lib/Builders/SentinelBuilder.d.ts.map +0 -1
- package/dist/browser/lib/Builders/StorageArchivistBuilder.d.ts +0 -212
- package/dist/browser/lib/Builders/StorageArchivistBuilder.d.ts.map +0 -1
- package/dist/browser/lib/Builders/index.d.ts +0 -4
- package/dist/browser/lib/Builders/index.d.ts.map +0 -1
- package/dist/browser/lib/ModuleAccountPaths.d.ts +0 -4
- package/dist/browser/lib/ModuleAccountPaths.d.ts.map +0 -1
- package/dist/browser/lib/ModuleNames.d.ts +0 -3
- package/dist/browser/lib/ModuleNames.d.ts.map +0 -1
- package/dist/browser/lib/buildNodes.d.ts +0 -4
- package/dist/browser/lib/buildNodes.d.ts.map +0 -1
- package/dist/browser/lib/index.d.ts +0 -5
- package/dist/browser/lib/index.d.ts.map +0 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,5 +1,1066 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { PropsWithChildren } from 'react';
|
|
3
|
+
import * as _xyo_network_react_shared from '@xyo-network/react-shared';
|
|
4
|
+
import { ContextExState } from '@xyo-network/react-shared';
|
|
5
|
+
import { Address } from '@xylabs/hex';
|
|
6
|
+
import { MemoryNode } from '@xyo-network/node-memory';
|
|
7
|
+
import { WithChildren } from '@xylabs/react-shared';
|
|
8
|
+
import { WalletInstance } from '@xyo-network/wallet-model';
|
|
9
|
+
import * as _xyo_network_sentinel_memory from '@xyo-network/sentinel-memory';
|
|
10
|
+
import { MemorySentinel } from '@xyo-network/sentinel-memory';
|
|
11
|
+
import * as _xyo_network_sentinel_model from '@xyo-network/sentinel-model';
|
|
12
|
+
import { SentinelConfig } from '@xyo-network/sentinel-model';
|
|
13
|
+
import * as _xyo_network_node_model from '@xyo-network/node-model';
|
|
14
|
+
import * as _xylabs_logger from '@xylabs/logger';
|
|
15
|
+
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
16
|
+
import { AttachableModuleInstance } from '@xyo-network/module-model';
|
|
17
|
+
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
18
|
+
import * as _xylabs_object from '@xylabs/object';
|
|
19
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
20
|
+
import { PayloadSetPluginResolver } from '@xyo-network/payloadset-plugin';
|
|
21
|
+
import { AttachableWitnessInstance } from '@xyo-network/witness-model';
|
|
22
|
+
import * as _xyo_network_archivist_model from '@xyo-network/archivist-model';
|
|
23
|
+
import { StorageArchivist, StorageArchivistConfig } from '@xyo-network/archivist-storage';
|
|
24
|
+
|
|
25
|
+
interface ActiveStandardNodeProps extends PropsWithChildren {
|
|
26
|
+
nodeNameOrAddress?: string;
|
|
27
|
+
}
|
|
28
|
+
declare const ActiveStandardNode: React__default.FC<ActiveStandardNodeProps>;
|
|
29
|
+
|
|
30
|
+
interface StandardNodesState extends ContextExState {
|
|
31
|
+
findAddressByName?: (name?: string) => Address | undefined;
|
|
32
|
+
nodes?: MemoryNode[];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare const StandardNodesContext: React.Context<StandardNodesState & _xyo_network_react_shared.ContextExState>;
|
|
36
|
+
|
|
37
|
+
interface StandardNodesProviderProps extends WithChildren {
|
|
38
|
+
defaultRemoteNodes?: StandardNodesState['nodes'];
|
|
39
|
+
wallet?: WalletInstance | null;
|
|
40
|
+
}
|
|
41
|
+
declare const StandardNodesProvider: React__default.FC<StandardNodesProviderProps>;
|
|
42
|
+
declare const StandardNodesProviderWithWallet: React__default.FC<Omit<StandardNodesProviderProps, 'wallet'>>;
|
|
43
|
+
|
|
44
|
+
declare const useStandardNodes: (required?: boolean) => Omit<StandardNodesState & _xyo_network_react_shared.ContextExState, "provided">;
|
|
45
|
+
|
|
46
|
+
declare const useActiveNodeAddress: (networkName?: string) => Lowercase<string> | undefined;
|
|
47
|
+
|
|
48
|
+
interface MemoryNodeBuilderConfig {
|
|
49
|
+
name?: string;
|
|
50
|
+
node?: MemoryNode;
|
|
51
|
+
}
|
|
52
|
+
declare class MemoryNodeBuilder {
|
|
53
|
+
private _node;
|
|
54
|
+
get node(): MemoryNode<_xylabs_object.BaseParamsFields & {
|
|
55
|
+
account?: AccountInstance | "random";
|
|
56
|
+
addToResolvers?: boolean;
|
|
57
|
+
additionalSigners?: AccountInstance[];
|
|
58
|
+
allowNameResolution?: boolean;
|
|
59
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
60
|
+
schema: _xyo_network_payload_model.Schema;
|
|
61
|
+
readonly archiving?: {
|
|
62
|
+
readonly archivists?: string[] | undefined;
|
|
63
|
+
readonly queries?: string[] | undefined;
|
|
64
|
+
} | undefined;
|
|
65
|
+
readonly allowedQueries?: string[] | undefined;
|
|
66
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
67
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
68
|
+
readonly labels?: {
|
|
69
|
+
[x: string]: string | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
72
|
+
readonly paging?: {
|
|
73
|
+
[x: string]: {
|
|
74
|
+
size?: number | undefined;
|
|
75
|
+
};
|
|
76
|
+
} | undefined;
|
|
77
|
+
readonly retry?: {
|
|
78
|
+
backoff?: number | undefined;
|
|
79
|
+
interval?: number | undefined;
|
|
80
|
+
retries?: number | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
readonly security?: {
|
|
83
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
84
|
+
readonly allowed?: {
|
|
85
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
86
|
+
} | undefined;
|
|
87
|
+
readonly disallowed?: {
|
|
88
|
+
[x: string]: Lowercase<string>[];
|
|
89
|
+
} | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
readonly sign?: boolean | undefined;
|
|
92
|
+
readonly storeQueries?: boolean | undefined;
|
|
93
|
+
readonly timestamp?: boolean | undefined;
|
|
94
|
+
}>;
|
|
95
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
96
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
97
|
+
}, _xyo_network_node_model.NodeModuleEventData>;
|
|
98
|
+
static create({ name, node }: MemoryNodeBuilderConfig, account?: AccountInstance): Promise<MemoryNodeBuilder>;
|
|
99
|
+
addArchivist(account: AccountInstance, moduleName?: string, namespace?: string): Promise<void>;
|
|
100
|
+
addArchivistMemory(moduleName?: string, account?: AccountInstance): Promise<void>;
|
|
101
|
+
addArchivistStorage(account: AccountInstance, moduleName?: string, namespace?: string): Promise<void>;
|
|
102
|
+
addBridge(apiDomain: string, moduleName?: string, account?: AccountInstance): Promise<void>;
|
|
103
|
+
addSentinel(config: SentinelConfig, account: AccountInstance): Promise<_xyo_network_sentinel_memory.MemorySentinel<_xylabs_object.BaseParamsFields & {
|
|
104
|
+
account?: AccountInstance | "random";
|
|
105
|
+
addToResolvers?: boolean;
|
|
106
|
+
additionalSigners?: AccountInstance[];
|
|
107
|
+
allowNameResolution?: boolean;
|
|
108
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
109
|
+
schema: _xyo_network_payload_model.Schema;
|
|
110
|
+
readonly archiving?: {
|
|
111
|
+
readonly archivists?: string[] | undefined;
|
|
112
|
+
readonly queries?: string[] | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
readonly allowedQueries?: string[] | undefined;
|
|
115
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
116
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
117
|
+
readonly labels?: {
|
|
118
|
+
[x: string]: string | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
121
|
+
readonly paging?: {
|
|
122
|
+
[x: string]: {
|
|
123
|
+
size?: number | undefined;
|
|
124
|
+
};
|
|
125
|
+
} | undefined;
|
|
126
|
+
readonly retry?: {
|
|
127
|
+
backoff?: number | undefined;
|
|
128
|
+
interval?: number | undefined;
|
|
129
|
+
retries?: number | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
readonly security?: {
|
|
132
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
133
|
+
readonly allowed?: {
|
|
134
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
135
|
+
} | undefined;
|
|
136
|
+
readonly disallowed?: {
|
|
137
|
+
[x: string]: Lowercase<string>[];
|
|
138
|
+
} | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
readonly sign?: boolean | undefined;
|
|
141
|
+
readonly storeQueries?: boolean | undefined;
|
|
142
|
+
readonly timestamp?: boolean | undefined;
|
|
143
|
+
automations?: ({
|
|
144
|
+
schema: "network.xyo.automation.interval";
|
|
145
|
+
type: "interval";
|
|
146
|
+
end?: number | undefined;
|
|
147
|
+
frequency?: number | undefined;
|
|
148
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
149
|
+
remaining?: number | undefined;
|
|
150
|
+
start: number;
|
|
151
|
+
} | {
|
|
152
|
+
schema: "network.xyo.automation.event";
|
|
153
|
+
type: "interval";
|
|
154
|
+
end?: number | undefined;
|
|
155
|
+
frequency?: number | undefined;
|
|
156
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
157
|
+
remaining?: number | undefined;
|
|
158
|
+
start: number;
|
|
159
|
+
} | {
|
|
160
|
+
schema: "network.xyo.automation";
|
|
161
|
+
type: "interval";
|
|
162
|
+
end?: number | undefined;
|
|
163
|
+
frequency?: number | undefined;
|
|
164
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
165
|
+
remaining?: number | undefined;
|
|
166
|
+
start: number;
|
|
167
|
+
} | {
|
|
168
|
+
schema: "network.xyo.automation.interval";
|
|
169
|
+
type: "event";
|
|
170
|
+
} | {
|
|
171
|
+
schema: "network.xyo.automation.event";
|
|
172
|
+
type: "event";
|
|
173
|
+
} | {
|
|
174
|
+
schema: "network.xyo.automation";
|
|
175
|
+
type: "event";
|
|
176
|
+
})[] | undefined;
|
|
177
|
+
synchronous?: boolean | undefined;
|
|
178
|
+
tasks: ({
|
|
179
|
+
endPoint?: "observe" | undefined;
|
|
180
|
+
input?: string | boolean | string[] | undefined;
|
|
181
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
182
|
+
required?: boolean | undefined;
|
|
183
|
+
} | {
|
|
184
|
+
endPoint?: "divine" | undefined;
|
|
185
|
+
input?: string | boolean | string[] | undefined;
|
|
186
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
187
|
+
required?: boolean | undefined;
|
|
188
|
+
} | {
|
|
189
|
+
endPoint?: "all" | "clear" | "commit" | "delete" | "get" | "insert" | undefined;
|
|
190
|
+
input?: string | boolean | string[] | undefined;
|
|
191
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
192
|
+
required?: boolean | undefined;
|
|
193
|
+
} | {
|
|
194
|
+
endPoint?: string | undefined;
|
|
195
|
+
input?: string | boolean | string[] | undefined;
|
|
196
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
197
|
+
required?: boolean | undefined;
|
|
198
|
+
})[];
|
|
199
|
+
throwErrors?: boolean | undefined;
|
|
200
|
+
}>;
|
|
201
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
202
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
203
|
+
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_sentinel_model.SentinelInstance<_xylabs_object.BaseParamsFields & {
|
|
204
|
+
account?: AccountInstance | "random";
|
|
205
|
+
addToResolvers?: boolean;
|
|
206
|
+
additionalSigners?: AccountInstance[];
|
|
207
|
+
allowNameResolution?: boolean;
|
|
208
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
209
|
+
schema: _xyo_network_payload_model.Schema;
|
|
210
|
+
readonly archiving?: {
|
|
211
|
+
readonly archivists?: string[] | undefined;
|
|
212
|
+
readonly queries?: string[] | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
readonly allowedQueries?: string[] | undefined;
|
|
215
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
216
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
217
|
+
readonly labels?: {
|
|
218
|
+
[x: string]: string | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
221
|
+
readonly paging?: {
|
|
222
|
+
[x: string]: {
|
|
223
|
+
size?: number | undefined;
|
|
224
|
+
};
|
|
225
|
+
} | undefined;
|
|
226
|
+
readonly retry?: {
|
|
227
|
+
backoff?: number | undefined;
|
|
228
|
+
interval?: number | undefined;
|
|
229
|
+
retries?: number | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
readonly security?: {
|
|
232
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
233
|
+
readonly allowed?: {
|
|
234
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
235
|
+
} | undefined;
|
|
236
|
+
readonly disallowed?: {
|
|
237
|
+
[x: string]: Lowercase<string>[];
|
|
238
|
+
} | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
readonly sign?: boolean | undefined;
|
|
241
|
+
readonly storeQueries?: boolean | undefined;
|
|
242
|
+
readonly timestamp?: boolean | undefined;
|
|
243
|
+
automations?: ({
|
|
244
|
+
schema: "network.xyo.automation.interval";
|
|
245
|
+
type: "interval";
|
|
246
|
+
end?: number | undefined;
|
|
247
|
+
frequency?: number | undefined;
|
|
248
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
249
|
+
remaining?: number | undefined;
|
|
250
|
+
start: number;
|
|
251
|
+
} | {
|
|
252
|
+
schema: "network.xyo.automation.event";
|
|
253
|
+
type: "interval";
|
|
254
|
+
end?: number | undefined;
|
|
255
|
+
frequency?: number | undefined;
|
|
256
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
257
|
+
remaining?: number | undefined;
|
|
258
|
+
start: number;
|
|
259
|
+
} | {
|
|
260
|
+
schema: "network.xyo.automation";
|
|
261
|
+
type: "interval";
|
|
262
|
+
end?: number | undefined;
|
|
263
|
+
frequency?: number | undefined;
|
|
264
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
265
|
+
remaining?: number | undefined;
|
|
266
|
+
start: number;
|
|
267
|
+
} | {
|
|
268
|
+
schema: "network.xyo.automation.interval";
|
|
269
|
+
type: "event";
|
|
270
|
+
} | {
|
|
271
|
+
schema: "network.xyo.automation.event";
|
|
272
|
+
type: "event";
|
|
273
|
+
} | {
|
|
274
|
+
schema: "network.xyo.automation";
|
|
275
|
+
type: "event";
|
|
276
|
+
})[] | undefined;
|
|
277
|
+
synchronous?: boolean | undefined;
|
|
278
|
+
tasks: ({
|
|
279
|
+
endPoint?: "observe" | undefined;
|
|
280
|
+
input?: string | boolean | string[] | undefined;
|
|
281
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
282
|
+
required?: boolean | undefined;
|
|
283
|
+
} | {
|
|
284
|
+
endPoint?: "divine" | undefined;
|
|
285
|
+
input?: string | boolean | string[] | undefined;
|
|
286
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
287
|
+
required?: boolean | undefined;
|
|
288
|
+
} | {
|
|
289
|
+
endPoint?: "all" | "clear" | "commit" | "delete" | "get" | "insert" | undefined;
|
|
290
|
+
input?: string | boolean | string[] | undefined;
|
|
291
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
292
|
+
required?: boolean | undefined;
|
|
293
|
+
} | {
|
|
294
|
+
endPoint?: string | undefined;
|
|
295
|
+
input?: string | boolean | string[] | undefined;
|
|
296
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
297
|
+
required?: boolean | undefined;
|
|
298
|
+
})[];
|
|
299
|
+
throwErrors?: boolean | undefined;
|
|
300
|
+
}>;
|
|
301
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
302
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
303
|
+
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
|
|
304
|
+
account?: AccountInstance | "random";
|
|
305
|
+
addToResolvers?: boolean;
|
|
306
|
+
additionalSigners?: AccountInstance[];
|
|
307
|
+
allowNameResolution?: boolean;
|
|
308
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
309
|
+
schema: _xyo_network_payload_model.Schema;
|
|
310
|
+
readonly archiving?: {
|
|
311
|
+
readonly archivists?: string[] | undefined;
|
|
312
|
+
readonly queries?: string[] | undefined;
|
|
313
|
+
} | undefined;
|
|
314
|
+
readonly allowedQueries?: string[] | undefined;
|
|
315
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
316
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
317
|
+
readonly labels?: {
|
|
318
|
+
[x: string]: string | undefined;
|
|
319
|
+
} | undefined;
|
|
320
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
321
|
+
readonly paging?: {
|
|
322
|
+
[x: string]: {
|
|
323
|
+
size?: number | undefined;
|
|
324
|
+
};
|
|
325
|
+
} | undefined;
|
|
326
|
+
readonly retry?: {
|
|
327
|
+
backoff?: number | undefined;
|
|
328
|
+
interval?: number | undefined;
|
|
329
|
+
retries?: number | undefined;
|
|
330
|
+
} | undefined;
|
|
331
|
+
readonly security?: {
|
|
332
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
333
|
+
readonly allowed?: {
|
|
334
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
335
|
+
} | undefined;
|
|
336
|
+
readonly disallowed?: {
|
|
337
|
+
[x: string]: Lowercase<string>[];
|
|
338
|
+
} | undefined;
|
|
339
|
+
} | undefined;
|
|
340
|
+
readonly sign?: boolean | undefined;
|
|
341
|
+
readonly storeQueries?: boolean | undefined;
|
|
342
|
+
readonly timestamp?: boolean | undefined;
|
|
343
|
+
}>;
|
|
344
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
345
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
346
|
+
}, _xyo_network_module_model.ModuleEventData<object>>>>>>>;
|
|
347
|
+
addWitnesses(pluginSetResolver: PayloadSetPluginResolver, witnesses?: (() => Promise<AttachableWitnessInstance>)[]): Promise<void>;
|
|
348
|
+
attach(mod: AttachableModuleInstance, external?: boolean, safeAttach?: boolean): Promise<void>;
|
|
349
|
+
private witnessCleanup;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
declare class SentinelBuilder {
|
|
353
|
+
private config;
|
|
354
|
+
private account;
|
|
355
|
+
private _sentinel;
|
|
356
|
+
protected constructor(config: SentinelConfig, account: AccountInstance);
|
|
357
|
+
get sentinel(): MemorySentinel<_xylabs_object.BaseParamsFields & {
|
|
358
|
+
account?: AccountInstance | "random";
|
|
359
|
+
addToResolvers?: boolean;
|
|
360
|
+
additionalSigners?: AccountInstance[];
|
|
361
|
+
allowNameResolution?: boolean;
|
|
362
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
363
|
+
schema: _xyo_network_payload_model.Schema;
|
|
364
|
+
readonly archiving?: {
|
|
365
|
+
readonly archivists?: string[] | undefined;
|
|
366
|
+
readonly queries?: string[] | undefined;
|
|
367
|
+
} | undefined;
|
|
368
|
+
readonly allowedQueries?: string[] | undefined;
|
|
369
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
370
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
371
|
+
readonly labels?: {
|
|
372
|
+
[x: string]: string | undefined;
|
|
373
|
+
} | undefined;
|
|
374
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
375
|
+
readonly paging?: {
|
|
376
|
+
[x: string]: {
|
|
377
|
+
size?: number | undefined;
|
|
378
|
+
};
|
|
379
|
+
} | undefined;
|
|
380
|
+
readonly retry?: {
|
|
381
|
+
backoff?: number | undefined;
|
|
382
|
+
interval?: number | undefined;
|
|
383
|
+
retries?: number | undefined;
|
|
384
|
+
} | undefined;
|
|
385
|
+
readonly security?: {
|
|
386
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
387
|
+
readonly allowed?: {
|
|
388
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
389
|
+
} | undefined;
|
|
390
|
+
readonly disallowed?: {
|
|
391
|
+
[x: string]: Lowercase<string>[];
|
|
392
|
+
} | undefined;
|
|
393
|
+
} | undefined;
|
|
394
|
+
readonly sign?: boolean | undefined;
|
|
395
|
+
readonly storeQueries?: boolean | undefined;
|
|
396
|
+
readonly timestamp?: boolean | undefined;
|
|
397
|
+
automations?: ({
|
|
398
|
+
schema: "network.xyo.automation.interval";
|
|
399
|
+
type: "interval";
|
|
400
|
+
end?: number | undefined;
|
|
401
|
+
frequency?: number | undefined;
|
|
402
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
403
|
+
remaining?: number | undefined;
|
|
404
|
+
start: number;
|
|
405
|
+
} | {
|
|
406
|
+
schema: "network.xyo.automation.event";
|
|
407
|
+
type: "interval";
|
|
408
|
+
end?: number | undefined;
|
|
409
|
+
frequency?: number | undefined;
|
|
410
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
411
|
+
remaining?: number | undefined;
|
|
412
|
+
start: number;
|
|
413
|
+
} | {
|
|
414
|
+
schema: "network.xyo.automation";
|
|
415
|
+
type: "interval";
|
|
416
|
+
end?: number | undefined;
|
|
417
|
+
frequency?: number | undefined;
|
|
418
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
419
|
+
remaining?: number | undefined;
|
|
420
|
+
start: number;
|
|
421
|
+
} | {
|
|
422
|
+
schema: "network.xyo.automation.interval";
|
|
423
|
+
type: "event";
|
|
424
|
+
} | {
|
|
425
|
+
schema: "network.xyo.automation.event";
|
|
426
|
+
type: "event";
|
|
427
|
+
} | {
|
|
428
|
+
schema: "network.xyo.automation";
|
|
429
|
+
type: "event";
|
|
430
|
+
})[] | undefined;
|
|
431
|
+
synchronous?: boolean | undefined;
|
|
432
|
+
tasks: ({
|
|
433
|
+
endPoint?: "observe" | undefined;
|
|
434
|
+
input?: string | boolean | string[] | undefined;
|
|
435
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
436
|
+
required?: boolean | undefined;
|
|
437
|
+
} | {
|
|
438
|
+
endPoint?: "divine" | undefined;
|
|
439
|
+
input?: string | boolean | string[] | undefined;
|
|
440
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
441
|
+
required?: boolean | undefined;
|
|
442
|
+
} | {
|
|
443
|
+
endPoint?: "all" | "clear" | "commit" | "delete" | "get" | "insert" | undefined;
|
|
444
|
+
input?: string | boolean | string[] | undefined;
|
|
445
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
446
|
+
required?: boolean | undefined;
|
|
447
|
+
} | {
|
|
448
|
+
endPoint?: string | undefined;
|
|
449
|
+
input?: string | boolean | string[] | undefined;
|
|
450
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
451
|
+
required?: boolean | undefined;
|
|
452
|
+
})[];
|
|
453
|
+
throwErrors?: boolean | undefined;
|
|
454
|
+
}>;
|
|
455
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
456
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
457
|
+
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_sentinel_model.SentinelInstance<_xylabs_object.BaseParamsFields & {
|
|
458
|
+
account?: AccountInstance | "random";
|
|
459
|
+
addToResolvers?: boolean;
|
|
460
|
+
additionalSigners?: AccountInstance[];
|
|
461
|
+
allowNameResolution?: boolean;
|
|
462
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
463
|
+
schema: _xyo_network_payload_model.Schema;
|
|
464
|
+
readonly archiving?: {
|
|
465
|
+
readonly archivists?: string[] | undefined;
|
|
466
|
+
readonly queries?: string[] | undefined;
|
|
467
|
+
} | undefined;
|
|
468
|
+
readonly allowedQueries?: string[] | undefined;
|
|
469
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
470
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
471
|
+
readonly labels?: {
|
|
472
|
+
[x: string]: string | undefined;
|
|
473
|
+
} | undefined;
|
|
474
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
475
|
+
readonly paging?: {
|
|
476
|
+
[x: string]: {
|
|
477
|
+
size?: number | undefined;
|
|
478
|
+
};
|
|
479
|
+
} | undefined;
|
|
480
|
+
readonly retry?: {
|
|
481
|
+
backoff?: number | undefined;
|
|
482
|
+
interval?: number | undefined;
|
|
483
|
+
retries?: number | undefined;
|
|
484
|
+
} | undefined;
|
|
485
|
+
readonly security?: {
|
|
486
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
487
|
+
readonly allowed?: {
|
|
488
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
489
|
+
} | undefined;
|
|
490
|
+
readonly disallowed?: {
|
|
491
|
+
[x: string]: Lowercase<string>[];
|
|
492
|
+
} | undefined;
|
|
493
|
+
} | undefined;
|
|
494
|
+
readonly sign?: boolean | undefined;
|
|
495
|
+
readonly storeQueries?: boolean | undefined;
|
|
496
|
+
readonly timestamp?: boolean | undefined;
|
|
497
|
+
automations?: ({
|
|
498
|
+
schema: "network.xyo.automation.interval";
|
|
499
|
+
type: "interval";
|
|
500
|
+
end?: number | undefined;
|
|
501
|
+
frequency?: number | undefined;
|
|
502
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
503
|
+
remaining?: number | undefined;
|
|
504
|
+
start: number;
|
|
505
|
+
} | {
|
|
506
|
+
schema: "network.xyo.automation.event";
|
|
507
|
+
type: "interval";
|
|
508
|
+
end?: number | undefined;
|
|
509
|
+
frequency?: number | undefined;
|
|
510
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
511
|
+
remaining?: number | undefined;
|
|
512
|
+
start: number;
|
|
513
|
+
} | {
|
|
514
|
+
schema: "network.xyo.automation";
|
|
515
|
+
type: "interval";
|
|
516
|
+
end?: number | undefined;
|
|
517
|
+
frequency?: number | undefined;
|
|
518
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
519
|
+
remaining?: number | undefined;
|
|
520
|
+
start: number;
|
|
521
|
+
} | {
|
|
522
|
+
schema: "network.xyo.automation.interval";
|
|
523
|
+
type: "event";
|
|
524
|
+
} | {
|
|
525
|
+
schema: "network.xyo.automation.event";
|
|
526
|
+
type: "event";
|
|
527
|
+
} | {
|
|
528
|
+
schema: "network.xyo.automation";
|
|
529
|
+
type: "event";
|
|
530
|
+
})[] | undefined;
|
|
531
|
+
synchronous?: boolean | undefined;
|
|
532
|
+
tasks: ({
|
|
533
|
+
endPoint?: "observe" | undefined;
|
|
534
|
+
input?: string | boolean | string[] | undefined;
|
|
535
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
536
|
+
required?: boolean | undefined;
|
|
537
|
+
} | {
|
|
538
|
+
endPoint?: "divine" | undefined;
|
|
539
|
+
input?: string | boolean | string[] | undefined;
|
|
540
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
541
|
+
required?: boolean | undefined;
|
|
542
|
+
} | {
|
|
543
|
+
endPoint?: "all" | "clear" | "commit" | "delete" | "get" | "insert" | undefined;
|
|
544
|
+
input?: string | boolean | string[] | undefined;
|
|
545
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
546
|
+
required?: boolean | undefined;
|
|
547
|
+
} | {
|
|
548
|
+
endPoint?: string | undefined;
|
|
549
|
+
input?: string | boolean | string[] | undefined;
|
|
550
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
551
|
+
required?: boolean | undefined;
|
|
552
|
+
})[];
|
|
553
|
+
throwErrors?: boolean | undefined;
|
|
554
|
+
}>;
|
|
555
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
556
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
557
|
+
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
|
|
558
|
+
account?: AccountInstance | "random";
|
|
559
|
+
addToResolvers?: boolean;
|
|
560
|
+
additionalSigners?: AccountInstance[];
|
|
561
|
+
allowNameResolution?: boolean;
|
|
562
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
563
|
+
schema: _xyo_network_payload_model.Schema;
|
|
564
|
+
readonly archiving?: {
|
|
565
|
+
readonly archivists?: string[] | undefined;
|
|
566
|
+
readonly queries?: string[] | undefined;
|
|
567
|
+
} | undefined;
|
|
568
|
+
readonly allowedQueries?: string[] | undefined;
|
|
569
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
570
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
571
|
+
readonly labels?: {
|
|
572
|
+
[x: string]: string | undefined;
|
|
573
|
+
} | undefined;
|
|
574
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
575
|
+
readonly paging?: {
|
|
576
|
+
[x: string]: {
|
|
577
|
+
size?: number | undefined;
|
|
578
|
+
};
|
|
579
|
+
} | undefined;
|
|
580
|
+
readonly retry?: {
|
|
581
|
+
backoff?: number | undefined;
|
|
582
|
+
interval?: number | undefined;
|
|
583
|
+
retries?: number | undefined;
|
|
584
|
+
} | undefined;
|
|
585
|
+
readonly security?: {
|
|
586
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
587
|
+
readonly allowed?: {
|
|
588
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
589
|
+
} | undefined;
|
|
590
|
+
readonly disallowed?: {
|
|
591
|
+
[x: string]: Lowercase<string>[];
|
|
592
|
+
} | undefined;
|
|
593
|
+
} | undefined;
|
|
594
|
+
readonly sign?: boolean | undefined;
|
|
595
|
+
readonly storeQueries?: boolean | undefined;
|
|
596
|
+
readonly timestamp?: boolean | undefined;
|
|
597
|
+
}>;
|
|
598
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
599
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
600
|
+
}, _xyo_network_module_model.ModuleEventData<object>>>>>>;
|
|
601
|
+
static create(config: SentinelConfig, account: AccountInstance): Promise<SentinelBuilder>;
|
|
602
|
+
buildSentinel(): Promise<MemorySentinel<_xylabs_object.BaseParamsFields & {
|
|
603
|
+
account?: AccountInstance | "random";
|
|
604
|
+
addToResolvers?: boolean;
|
|
605
|
+
additionalSigners?: AccountInstance[];
|
|
606
|
+
allowNameResolution?: boolean;
|
|
607
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
608
|
+
schema: _xyo_network_payload_model.Schema;
|
|
609
|
+
readonly archiving?: {
|
|
610
|
+
readonly archivists?: string[] | undefined;
|
|
611
|
+
readonly queries?: string[] | undefined;
|
|
612
|
+
} | undefined;
|
|
613
|
+
readonly allowedQueries?: string[] | undefined;
|
|
614
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
615
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
616
|
+
readonly labels?: {
|
|
617
|
+
[x: string]: string | undefined;
|
|
618
|
+
} | undefined;
|
|
619
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
620
|
+
readonly paging?: {
|
|
621
|
+
[x: string]: {
|
|
622
|
+
size?: number | undefined;
|
|
623
|
+
};
|
|
624
|
+
} | undefined;
|
|
625
|
+
readonly retry?: {
|
|
626
|
+
backoff?: number | undefined;
|
|
627
|
+
interval?: number | undefined;
|
|
628
|
+
retries?: number | undefined;
|
|
629
|
+
} | undefined;
|
|
630
|
+
readonly security?: {
|
|
631
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
632
|
+
readonly allowed?: {
|
|
633
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
634
|
+
} | undefined;
|
|
635
|
+
readonly disallowed?: {
|
|
636
|
+
[x: string]: Lowercase<string>[];
|
|
637
|
+
} | undefined;
|
|
638
|
+
} | undefined;
|
|
639
|
+
readonly sign?: boolean | undefined;
|
|
640
|
+
readonly storeQueries?: boolean | undefined;
|
|
641
|
+
readonly timestamp?: boolean | undefined;
|
|
642
|
+
automations?: ({
|
|
643
|
+
schema: "network.xyo.automation.interval";
|
|
644
|
+
type: "interval";
|
|
645
|
+
end?: number | undefined;
|
|
646
|
+
frequency?: number | undefined;
|
|
647
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
648
|
+
remaining?: number | undefined;
|
|
649
|
+
start: number;
|
|
650
|
+
} | {
|
|
651
|
+
schema: "network.xyo.automation.event";
|
|
652
|
+
type: "interval";
|
|
653
|
+
end?: number | undefined;
|
|
654
|
+
frequency?: number | undefined;
|
|
655
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
656
|
+
remaining?: number | undefined;
|
|
657
|
+
start: number;
|
|
658
|
+
} | {
|
|
659
|
+
schema: "network.xyo.automation";
|
|
660
|
+
type: "interval";
|
|
661
|
+
end?: number | undefined;
|
|
662
|
+
frequency?: number | undefined;
|
|
663
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
664
|
+
remaining?: number | undefined;
|
|
665
|
+
start: number;
|
|
666
|
+
} | {
|
|
667
|
+
schema: "network.xyo.automation.interval";
|
|
668
|
+
type: "event";
|
|
669
|
+
} | {
|
|
670
|
+
schema: "network.xyo.automation.event";
|
|
671
|
+
type: "event";
|
|
672
|
+
} | {
|
|
673
|
+
schema: "network.xyo.automation";
|
|
674
|
+
type: "event";
|
|
675
|
+
})[] | undefined;
|
|
676
|
+
synchronous?: boolean | undefined;
|
|
677
|
+
tasks: ({
|
|
678
|
+
endPoint?: "observe" | undefined;
|
|
679
|
+
input?: string | boolean | string[] | undefined;
|
|
680
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
681
|
+
required?: boolean | undefined;
|
|
682
|
+
} | {
|
|
683
|
+
endPoint?: "divine" | undefined;
|
|
684
|
+
input?: string | boolean | string[] | undefined;
|
|
685
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
686
|
+
required?: boolean | undefined;
|
|
687
|
+
} | {
|
|
688
|
+
endPoint?: "all" | "clear" | "commit" | "delete" | "get" | "insert" | undefined;
|
|
689
|
+
input?: string | boolean | string[] | undefined;
|
|
690
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
691
|
+
required?: boolean | undefined;
|
|
692
|
+
} | {
|
|
693
|
+
endPoint?: string | undefined;
|
|
694
|
+
input?: string | boolean | string[] | undefined;
|
|
695
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
696
|
+
required?: boolean | undefined;
|
|
697
|
+
})[];
|
|
698
|
+
throwErrors?: boolean | undefined;
|
|
699
|
+
}>;
|
|
700
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
701
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
702
|
+
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_sentinel_model.SentinelInstance<_xylabs_object.BaseParamsFields & {
|
|
703
|
+
account?: AccountInstance | "random";
|
|
704
|
+
addToResolvers?: boolean;
|
|
705
|
+
additionalSigners?: AccountInstance[];
|
|
706
|
+
allowNameResolution?: boolean;
|
|
707
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
708
|
+
schema: _xyo_network_payload_model.Schema;
|
|
709
|
+
readonly archiving?: {
|
|
710
|
+
readonly archivists?: string[] | undefined;
|
|
711
|
+
readonly queries?: string[] | undefined;
|
|
712
|
+
} | undefined;
|
|
713
|
+
readonly allowedQueries?: string[] | undefined;
|
|
714
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
715
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
716
|
+
readonly labels?: {
|
|
717
|
+
[x: string]: string | undefined;
|
|
718
|
+
} | undefined;
|
|
719
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
720
|
+
readonly paging?: {
|
|
721
|
+
[x: string]: {
|
|
722
|
+
size?: number | undefined;
|
|
723
|
+
};
|
|
724
|
+
} | undefined;
|
|
725
|
+
readonly retry?: {
|
|
726
|
+
backoff?: number | undefined;
|
|
727
|
+
interval?: number | undefined;
|
|
728
|
+
retries?: number | undefined;
|
|
729
|
+
} | undefined;
|
|
730
|
+
readonly security?: {
|
|
731
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
732
|
+
readonly allowed?: {
|
|
733
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
734
|
+
} | undefined;
|
|
735
|
+
readonly disallowed?: {
|
|
736
|
+
[x: string]: Lowercase<string>[];
|
|
737
|
+
} | undefined;
|
|
738
|
+
} | undefined;
|
|
739
|
+
readonly sign?: boolean | undefined;
|
|
740
|
+
readonly storeQueries?: boolean | undefined;
|
|
741
|
+
readonly timestamp?: boolean | undefined;
|
|
742
|
+
automations?: ({
|
|
743
|
+
schema: "network.xyo.automation.interval";
|
|
744
|
+
type: "interval";
|
|
745
|
+
end?: number | undefined;
|
|
746
|
+
frequency?: number | undefined;
|
|
747
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
748
|
+
remaining?: number | undefined;
|
|
749
|
+
start: number;
|
|
750
|
+
} | {
|
|
751
|
+
schema: "network.xyo.automation.event";
|
|
752
|
+
type: "interval";
|
|
753
|
+
end?: number | undefined;
|
|
754
|
+
frequency?: number | undefined;
|
|
755
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
756
|
+
remaining?: number | undefined;
|
|
757
|
+
start: number;
|
|
758
|
+
} | {
|
|
759
|
+
schema: "network.xyo.automation";
|
|
760
|
+
type: "interval";
|
|
761
|
+
end?: number | undefined;
|
|
762
|
+
frequency?: number | undefined;
|
|
763
|
+
frequencyUnits?: "second" | "minute" | "hour" | "day" | "millis" | undefined;
|
|
764
|
+
remaining?: number | undefined;
|
|
765
|
+
start: number;
|
|
766
|
+
} | {
|
|
767
|
+
schema: "network.xyo.automation.interval";
|
|
768
|
+
type: "event";
|
|
769
|
+
} | {
|
|
770
|
+
schema: "network.xyo.automation.event";
|
|
771
|
+
type: "event";
|
|
772
|
+
} | {
|
|
773
|
+
schema: "network.xyo.automation";
|
|
774
|
+
type: "event";
|
|
775
|
+
})[] | undefined;
|
|
776
|
+
synchronous?: boolean | undefined;
|
|
777
|
+
tasks: ({
|
|
778
|
+
endPoint?: "observe" | undefined;
|
|
779
|
+
input?: string | boolean | string[] | undefined;
|
|
780
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
781
|
+
required?: boolean | undefined;
|
|
782
|
+
} | {
|
|
783
|
+
endPoint?: "divine" | undefined;
|
|
784
|
+
input?: string | boolean | string[] | undefined;
|
|
785
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
786
|
+
required?: boolean | undefined;
|
|
787
|
+
} | {
|
|
788
|
+
endPoint?: "all" | "clear" | "commit" | "delete" | "get" | "insert" | undefined;
|
|
789
|
+
input?: string | boolean | string[] | undefined;
|
|
790
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
791
|
+
required?: boolean | undefined;
|
|
792
|
+
} | {
|
|
793
|
+
endPoint?: string | undefined;
|
|
794
|
+
input?: string | boolean | string[] | undefined;
|
|
795
|
+
mod: _xyo_network_module_model.ModuleIdentifier;
|
|
796
|
+
required?: boolean | undefined;
|
|
797
|
+
})[];
|
|
798
|
+
throwErrors?: boolean | undefined;
|
|
799
|
+
}>;
|
|
800
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
801
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
802
|
+
}, _xyo_network_sentinel_model.SentinelModuleEventData<_xyo_network_module_model.Module<_xylabs_object.BaseParamsFields & {
|
|
803
|
+
account?: AccountInstance | "random";
|
|
804
|
+
addToResolvers?: boolean;
|
|
805
|
+
additionalSigners?: AccountInstance[];
|
|
806
|
+
allowNameResolution?: boolean;
|
|
807
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
808
|
+
schema: _xyo_network_payload_model.Schema;
|
|
809
|
+
readonly archiving?: {
|
|
810
|
+
readonly archivists?: string[] | undefined;
|
|
811
|
+
readonly queries?: string[] | undefined;
|
|
812
|
+
} | undefined;
|
|
813
|
+
readonly allowedQueries?: string[] | undefined;
|
|
814
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
815
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
816
|
+
readonly labels?: {
|
|
817
|
+
[x: string]: string | undefined;
|
|
818
|
+
} | undefined;
|
|
819
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
820
|
+
readonly paging?: {
|
|
821
|
+
[x: string]: {
|
|
822
|
+
size?: number | undefined;
|
|
823
|
+
};
|
|
824
|
+
} | undefined;
|
|
825
|
+
readonly retry?: {
|
|
826
|
+
backoff?: number | undefined;
|
|
827
|
+
interval?: number | undefined;
|
|
828
|
+
retries?: number | undefined;
|
|
829
|
+
} | undefined;
|
|
830
|
+
readonly security?: {
|
|
831
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
832
|
+
readonly allowed?: {
|
|
833
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
834
|
+
} | undefined;
|
|
835
|
+
readonly disallowed?: {
|
|
836
|
+
[x: string]: Lowercase<string>[];
|
|
837
|
+
} | undefined;
|
|
838
|
+
} | undefined;
|
|
839
|
+
readonly sign?: boolean | undefined;
|
|
840
|
+
readonly storeQueries?: boolean | undefined;
|
|
841
|
+
readonly timestamp?: boolean | undefined;
|
|
842
|
+
}>;
|
|
843
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
844
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
845
|
+
}, _xyo_network_module_model.ModuleEventData<object>>>>>>>;
|
|
846
|
+
private buildParams;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
interface ArchivistBuilderConfig {
|
|
850
|
+
name?: string;
|
|
851
|
+
namespace?: string;
|
|
852
|
+
}
|
|
853
|
+
declare class StorageArchivistBuilder {
|
|
854
|
+
private config;
|
|
855
|
+
private account;
|
|
856
|
+
private node?;
|
|
857
|
+
private _archivist;
|
|
858
|
+
private remoteArchivist;
|
|
859
|
+
protected constructor(config: ArchivistBuilderConfig, account: AccountInstance, node?: MemoryNode | undefined);
|
|
860
|
+
get archivist(): StorageArchivist<_xylabs_object.BaseParamsFields & {
|
|
861
|
+
account?: AccountInstance | "random";
|
|
862
|
+
addToResolvers?: boolean;
|
|
863
|
+
additionalSigners?: AccountInstance[];
|
|
864
|
+
allowNameResolution?: boolean;
|
|
865
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
866
|
+
schema: _xyo_network_payload_model.Schema;
|
|
867
|
+
readonly archiving?: {
|
|
868
|
+
readonly archivists?: string[] | undefined;
|
|
869
|
+
readonly queries?: string[] | undefined;
|
|
870
|
+
} | undefined;
|
|
871
|
+
readonly allowedQueries?: string[] | undefined;
|
|
872
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
873
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
874
|
+
readonly labels?: {
|
|
875
|
+
[x: string]: string | undefined;
|
|
876
|
+
} | undefined;
|
|
877
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
878
|
+
readonly paging?: {
|
|
879
|
+
[x: string]: {
|
|
880
|
+
size?: number | undefined;
|
|
881
|
+
};
|
|
882
|
+
} | undefined;
|
|
883
|
+
readonly retry?: {
|
|
884
|
+
backoff?: number | undefined;
|
|
885
|
+
interval?: number | undefined;
|
|
886
|
+
retries?: number | undefined;
|
|
887
|
+
} | undefined;
|
|
888
|
+
readonly security?: {
|
|
889
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
890
|
+
readonly allowed?: {
|
|
891
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
892
|
+
} | undefined;
|
|
893
|
+
readonly disallowed?: {
|
|
894
|
+
[x: string]: Lowercase<string>[];
|
|
895
|
+
} | undefined;
|
|
896
|
+
} | undefined;
|
|
897
|
+
readonly sign?: boolean | undefined;
|
|
898
|
+
readonly storeQueries?: boolean | undefined;
|
|
899
|
+
readonly timestamp?: boolean | undefined;
|
|
900
|
+
type?: "local" | "session" | "page" | undefined;
|
|
901
|
+
parents?: {
|
|
902
|
+
commit?: string[] | undefined;
|
|
903
|
+
read?: string[] | undefined;
|
|
904
|
+
write?: string[] | undefined;
|
|
905
|
+
} | undefined;
|
|
906
|
+
requireAllParents?: boolean | undefined;
|
|
907
|
+
storage?: {
|
|
908
|
+
indexes?: {
|
|
909
|
+
key: {
|
|
910
|
+
[x: string]: _xyo_network_archivist_model.IndexDirection;
|
|
911
|
+
};
|
|
912
|
+
multiEntry?: boolean | undefined;
|
|
913
|
+
name?: string | undefined;
|
|
914
|
+
unique?: boolean | undefined;
|
|
915
|
+
}[] | undefined;
|
|
916
|
+
} | undefined;
|
|
917
|
+
storeParentReads?: boolean | undefined;
|
|
918
|
+
maxEntries?: number | undefined;
|
|
919
|
+
maxEntrySize?: number | undefined;
|
|
920
|
+
namespace?: string | undefined;
|
|
921
|
+
}>;
|
|
922
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
923
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
924
|
+
} & _xyo_network_archivist_model.ArchivistParamFields & object, _xyo_network_archivist_model.ArchivistModuleEventData>;
|
|
925
|
+
static create(config: ArchivistBuilderConfig, account: AccountInstance, node: MemoryNode): Promise<StorageArchivistBuilder>;
|
|
926
|
+
buildArchivist(): Promise<StorageArchivist<_xylabs_object.BaseParamsFields & {
|
|
927
|
+
account?: AccountInstance | "random";
|
|
928
|
+
addToResolvers?: boolean;
|
|
929
|
+
additionalSigners?: AccountInstance[];
|
|
930
|
+
allowNameResolution?: boolean;
|
|
931
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
932
|
+
schema: _xyo_network_payload_model.Schema;
|
|
933
|
+
readonly archiving?: {
|
|
934
|
+
readonly archivists?: string[] | undefined;
|
|
935
|
+
readonly queries?: string[] | undefined;
|
|
936
|
+
} | undefined;
|
|
937
|
+
readonly allowedQueries?: string[] | undefined;
|
|
938
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
939
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
940
|
+
readonly labels?: {
|
|
941
|
+
[x: string]: string | undefined;
|
|
942
|
+
} | undefined;
|
|
943
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
944
|
+
readonly paging?: {
|
|
945
|
+
[x: string]: {
|
|
946
|
+
size?: number | undefined;
|
|
947
|
+
};
|
|
948
|
+
} | undefined;
|
|
949
|
+
readonly retry?: {
|
|
950
|
+
backoff?: number | undefined;
|
|
951
|
+
interval?: number | undefined;
|
|
952
|
+
retries?: number | undefined;
|
|
953
|
+
} | undefined;
|
|
954
|
+
readonly security?: {
|
|
955
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
956
|
+
readonly allowed?: {
|
|
957
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
958
|
+
} | undefined;
|
|
959
|
+
readonly disallowed?: {
|
|
960
|
+
[x: string]: Lowercase<string>[];
|
|
961
|
+
} | undefined;
|
|
962
|
+
} | undefined;
|
|
963
|
+
readonly sign?: boolean | undefined;
|
|
964
|
+
readonly storeQueries?: boolean | undefined;
|
|
965
|
+
readonly timestamp?: boolean | undefined;
|
|
966
|
+
type?: "local" | "session" | "page" | undefined;
|
|
967
|
+
parents?: {
|
|
968
|
+
commit?: string[] | undefined;
|
|
969
|
+
read?: string[] | undefined;
|
|
970
|
+
write?: string[] | undefined;
|
|
971
|
+
} | undefined;
|
|
972
|
+
requireAllParents?: boolean | undefined;
|
|
973
|
+
storage?: {
|
|
974
|
+
indexes?: {
|
|
975
|
+
key: {
|
|
976
|
+
[x: string]: _xyo_network_archivist_model.IndexDirection;
|
|
977
|
+
};
|
|
978
|
+
multiEntry?: boolean | undefined;
|
|
979
|
+
name?: string | undefined;
|
|
980
|
+
unique?: boolean | undefined;
|
|
981
|
+
}[] | undefined;
|
|
982
|
+
} | undefined;
|
|
983
|
+
storeParentReads?: boolean | undefined;
|
|
984
|
+
maxEntries?: number | undefined;
|
|
985
|
+
maxEntrySize?: number | undefined;
|
|
986
|
+
namespace?: string | undefined;
|
|
987
|
+
}>;
|
|
988
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
989
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
990
|
+
} & _xyo_network_archivist_model.ArchivistParamFields & object, _xyo_network_archivist_model.ArchivistModuleEventData>>;
|
|
991
|
+
buildConfig(): StorageArchivistConfig;
|
|
992
|
+
findParentArchivist(): Promise<_xyo_network_archivist_model.ArchivistInstance<_xylabs_object.BaseParamsFields & {
|
|
993
|
+
account?: AccountInstance | "random";
|
|
994
|
+
addToResolvers?: boolean;
|
|
995
|
+
additionalSigners?: AccountInstance[];
|
|
996
|
+
allowNameResolution?: boolean;
|
|
997
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
998
|
+
schema: _xyo_network_payload_model.Schema;
|
|
999
|
+
parents?: {
|
|
1000
|
+
commit?: string[] | undefined;
|
|
1001
|
+
read?: string[] | undefined;
|
|
1002
|
+
write?: string[] | undefined;
|
|
1003
|
+
} | undefined;
|
|
1004
|
+
requireAllParents?: boolean | undefined;
|
|
1005
|
+
storage?: {
|
|
1006
|
+
indexes?: {
|
|
1007
|
+
key: {
|
|
1008
|
+
[x: string]: _xyo_network_archivist_model.IndexDirection;
|
|
1009
|
+
};
|
|
1010
|
+
multiEntry?: boolean | undefined;
|
|
1011
|
+
name?: string | undefined;
|
|
1012
|
+
unique?: boolean | undefined;
|
|
1013
|
+
}[] | undefined;
|
|
1014
|
+
} | undefined;
|
|
1015
|
+
storeParentReads?: boolean | undefined;
|
|
1016
|
+
readonly archiving?: {
|
|
1017
|
+
readonly archivists?: string[] | undefined;
|
|
1018
|
+
readonly queries?: string[] | undefined;
|
|
1019
|
+
} | undefined;
|
|
1020
|
+
readonly allowedQueries?: string[] | undefined;
|
|
1021
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
1022
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
1023
|
+
readonly labels?: {
|
|
1024
|
+
[x: string]: string | undefined;
|
|
1025
|
+
} | undefined;
|
|
1026
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
1027
|
+
readonly paging?: {
|
|
1028
|
+
[x: string]: {
|
|
1029
|
+
size?: number | undefined;
|
|
1030
|
+
};
|
|
1031
|
+
} | undefined;
|
|
1032
|
+
readonly retry?: {
|
|
1033
|
+
backoff?: number | undefined;
|
|
1034
|
+
interval?: number | undefined;
|
|
1035
|
+
retries?: number | undefined;
|
|
1036
|
+
} | undefined;
|
|
1037
|
+
readonly security?: {
|
|
1038
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
1039
|
+
readonly allowed?: {
|
|
1040
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
1041
|
+
} | undefined;
|
|
1042
|
+
readonly disallowed?: {
|
|
1043
|
+
[x: string]: Lowercase<string>[];
|
|
1044
|
+
} | undefined;
|
|
1045
|
+
} | undefined;
|
|
1046
|
+
readonly sign?: boolean | undefined;
|
|
1047
|
+
readonly storeQueries?: boolean | undefined;
|
|
1048
|
+
readonly timestamp?: boolean | undefined;
|
|
1049
|
+
}>;
|
|
1050
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
1051
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
1052
|
+
} & _xyo_network_archivist_model.ArchivistParamFields & object, _xyo_network_archivist_model.ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
|
|
1053
|
+
schema: _xyo_network_payload_model.Schema;
|
|
1054
|
+
}>> | undefined>;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
declare const BuildStandardNodes: (wallet: WalletInstance, onNodeBuilt?: (node: MemoryNode) => void) => Promise<MemoryNode[]>;
|
|
1058
|
+
|
|
1059
|
+
declare const GlobalNodeOffsetPath = "15";
|
|
1060
|
+
declare const RemoteNodeOffsetPaths: Record<string, string>;
|
|
1061
|
+
declare const RemoteNodeArchivistOffsetPaths: Record<string, Record<string, string>>;
|
|
1062
|
+
|
|
1063
|
+
declare const GlobalNode = "GlobalNode";
|
|
1064
|
+
declare const RootStorageArchivist = "RootStorageArchivist";
|
|
1065
|
+
|
|
1066
|
+
export { ActiveStandardNode, type ActiveStandardNodeProps, type ArchivistBuilderConfig, BuildStandardNodes, GlobalNode, GlobalNodeOffsetPath, MemoryNodeBuilder, type MemoryNodeBuilderConfig, RemoteNodeArchivistOffsetPaths, RemoteNodeOffsetPaths, RootStorageArchivist, SentinelBuilder, StandardNodesContext, StandardNodesProvider, type StandardNodesProviderProps, StandardNodesProviderWithWallet, type StandardNodesState, StorageArchivistBuilder, useActiveNodeAddress, useStandardNodes };
|