@xyo-network/bridge-abstract 3.9.2 → 3.9.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.
@@ -5,13 +5,11 @@ import { QueryBoundWitness } from '@xyo-network/boundwitness-model';
5
5
  import { BridgeParams, BridgeModuleEventData, AttachableBridgeInstance, BridgeExposeOptions, BridgeUnexposeOptions, QuerySendFinishedEventArgs, QuerySendStartedEventArgs, BridgeInstance } from '@xyo-network/bridge-model';
6
6
  import { AbstractModuleInstance } from '@xyo-network/module-abstract';
7
7
  import * as _xyo_network_module_model from '@xyo-network/module-model';
8
- import { ModuleInstance, ModuleResolverInstance, ModuleIdentifier, ModuleFilterOptions, ModuleQueryHandlerResult, ModuleParams, ModuleConfigSchema, ArchivingModuleConfig, ModuleResolver, ModuleName, Module, AddressPreviousHashPayload, ModuleQueryResult, ModuleIdentifierTransformer, ObjectFilterOptions, CacheConfig } from '@xyo-network/module-model';
9
- import * as _xyo_network_payload_model from '@xyo-network/payload-model';
8
+ import { ModuleInstance, ModuleResolverInstance, ModuleIdentifier, ModuleFilterOptions, ModuleQueryHandlerResult, ModuleParams, ModuleConfigSchema, ArchivingModuleConfig, ModuleResolver, Module, AddressPreviousHashPayload, ModuleName, ModuleQueryResult, ModuleIdentifierTransformer, ObjectFilterOptions, CacheConfig } from '@xyo-network/module-model';
10
9
  import { Schema, Payload, ModuleError } from '@xyo-network/payload-model';
11
10
  import { AccountInstance } from '@xyo-network/account-model';
12
11
  import { ModuleResolverParams, CompositeModuleResolver } from '@xyo-network/module-resolver';
13
12
  import * as _xylabs_object from '@xylabs/object';
14
- import * as _xylabs_logger from '@xylabs/logger';
15
13
  import { ModuleManifestPayload } from '@xyo-network/manifest-model';
16
14
  import * as _xyo_network_account from '@xyo-network/account';
17
15
  import { ModuleWrapper } from '@xyo-network/module-wrapper';
@@ -68,42 +66,7 @@ declare abstract class AbstractModuleProxy<TWrappedModule extends ModuleInstance
68
66
  constructor(params: TParams);
69
67
  get address(): Lowercase<string>;
70
68
  get archiving(): ArchivingModuleConfig['archiving'] | undefined;
71
- get config(): _xylabs_object.DeepRestrictToStringKeys<{
72
- schema: _xyo_network_payload_model.Schema;
73
- readonly archiving?: {
74
- readonly archivists?: string[] | undefined;
75
- readonly queries?: string[] | undefined;
76
- } | undefined;
77
- readonly allowedQueries?: string[] | undefined;
78
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
79
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
80
- readonly labels?: {
81
- [x: string]: string | undefined;
82
- } | undefined;
83
- readonly name?: ModuleName | undefined;
84
- readonly paging?: {
85
- [x: string]: {
86
- size?: number | undefined;
87
- };
88
- } | undefined;
89
- readonly retry?: {
90
- backoff?: number | undefined;
91
- interval?: number | undefined;
92
- retries?: number | undefined;
93
- } | undefined;
94
- readonly security?: {
95
- readonly allowAnonymous?: boolean | undefined;
96
- readonly allowed?: {
97
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
98
- } | undefined;
99
- readonly disallowed?: {
100
- [x: string]: Lowercase<string>[];
101
- } | undefined;
102
- } | undefined;
103
- readonly sign?: boolean | undefined;
104
- readonly storeQueries?: boolean | undefined;
105
- readonly timestamp?: boolean | undefined;
106
- }>;
69
+ get config(): _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
107
70
  get queries(): string[];
108
71
  static hasRequiredQueries(mod: Module): boolean;
109
72
  static missingRequiredQueries(mod: Module): string[];
@@ -118,42 +81,7 @@ declare abstract class AbstractModuleProxy<TWrappedModule extends ModuleInstance
118
81
  addToResolvers?: boolean;
119
82
  additionalSigners?: AccountInstance[];
120
83
  allowNameResolution?: boolean;
121
- config: _xylabs_object.DeepRestrictToStringKeys<{
122
- schema: _xyo_network_payload_model.Schema;
123
- readonly archiving?: {
124
- readonly archivists?: string[] | undefined;
125
- readonly queries?: string[] | undefined;
126
- } | undefined;
127
- readonly allowedQueries?: string[] | undefined;
128
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
129
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
130
- readonly labels?: {
131
- [x: string]: string | undefined;
132
- } | undefined;
133
- readonly name?: ModuleName | undefined;
134
- readonly paging?: {
135
- [x: string]: {
136
- size?: number | undefined;
137
- };
138
- } | undefined;
139
- readonly retry?: {
140
- backoff?: number | undefined;
141
- interval?: number | undefined;
142
- retries?: number | undefined;
143
- } | undefined;
144
- readonly security?: {
145
- readonly allowAnonymous?: boolean | undefined;
146
- readonly allowed?: {
147
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
148
- } | undefined;
149
- readonly disallowed?: {
150
- [x: string]: Lowercase<string>[];
151
- } | undefined;
152
- } | undefined;
153
- readonly sign?: boolean | undefined;
154
- readonly storeQueries?: boolean | undefined;
155
- readonly timestamp?: boolean | undefined;
156
- }>;
84
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
157
85
  ephemeralQueryAccountEnabled?: boolean;
158
86
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
159
87
  }, _xyo_network_module_model.ModuleEventData<object>>[]>;
@@ -188,42 +116,7 @@ declare class ModuleProxyResolver<T extends ModuleProxyResolverOptions = ModuleP
188
116
  addToResolvers?: boolean;
189
117
  additionalSigners?: _xyo_network_account.AccountInstance[];
190
118
  allowNameResolution?: boolean;
191
- config: _xylabs_object.DeepRestrictToStringKeys<{
192
- schema: _xyo_network_payload_model.Schema;
193
- readonly archiving?: {
194
- readonly archivists?: string[] | undefined;
195
- readonly queries?: string[] | undefined;
196
- } | undefined;
197
- readonly allowedQueries?: string[] | undefined;
198
- readonly archivist?: ModuleIdentifier | undefined;
199
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
200
- readonly labels?: {
201
- [x: string]: string | undefined;
202
- } | undefined;
203
- readonly name?: ModuleName | undefined;
204
- readonly paging?: {
205
- [x: string]: {
206
- size?: number | undefined;
207
- };
208
- } | undefined;
209
- readonly retry?: {
210
- backoff?: number | undefined;
211
- interval?: number | undefined;
212
- retries?: number | undefined;
213
- } | undefined;
214
- readonly security?: {
215
- readonly allowAnonymous?: boolean | undefined;
216
- readonly allowed?: {
217
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
218
- } | undefined;
219
- readonly disallowed?: {
220
- [x: string]: Lowercase<string>[];
221
- } | undefined;
222
- } | undefined;
223
- readonly sign?: boolean | undefined;
224
- readonly storeQueries?: boolean | undefined;
225
- readonly timestamp?: boolean | undefined;
226
- }>;
119
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
227
120
  ephemeralQueryAccountEnabled?: boolean;
228
121
  moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
229
122
  }, _xyo_network_module_model.ModuleEventData<object>>;
@@ -233,42 +126,7 @@ declare class ModuleProxyResolver<T extends ModuleProxyResolverOptions = ModuleP
233
126
  addToResolvers?: boolean;
234
127
  additionalSigners?: _xyo_network_account.AccountInstance[];
235
128
  allowNameResolution?: boolean;
236
- config: _xylabs_object.DeepRestrictToStringKeys<{
237
- schema: _xyo_network_payload_model.Schema;
238
- readonly archiving?: {
239
- readonly archivists?: string[] | undefined;
240
- readonly queries?: string[] | undefined;
241
- } | undefined;
242
- readonly allowedQueries?: string[] | undefined;
243
- readonly archivist?: ModuleIdentifier | undefined;
244
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
245
- readonly labels?: {
246
- [x: string]: string | undefined;
247
- } | undefined;
248
- readonly name?: ModuleName | undefined;
249
- readonly paging?: {
250
- [x: string]: {
251
- size?: number | undefined;
252
- };
253
- } | undefined;
254
- readonly retry?: {
255
- backoff?: number | undefined;
256
- interval?: number | undefined;
257
- retries?: number | undefined;
258
- } | undefined;
259
- readonly security?: {
260
- readonly allowAnonymous?: boolean | undefined;
261
- readonly allowed?: {
262
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
263
- } | undefined;
264
- readonly disallowed?: {
265
- [x: string]: Lowercase<string>[];
266
- } | undefined;
267
- } | undefined;
268
- readonly sign?: boolean | undefined;
269
- readonly storeQueries?: boolean | undefined;
270
- readonly timestamp?: boolean | undefined;
271
- }>;
129
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
272
130
  ephemeralQueryAccountEnabled?: boolean;
273
131
  moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
274
132
  }, _xyo_network_module_model.ModuleEventData<object>>>;
@@ -277,132 +135,13 @@ declare class ModuleProxyResolver<T extends ModuleProxyResolverOptions = ModuleP
277
135
  addToResolvers?: boolean;
278
136
  additionalSigners?: _xyo_network_account.AccountInstance[];
279
137
  allowNameResolution?: boolean;
280
- config: _xylabs_object.DeepRestrictToStringKeys<{
281
- schema: _xyo_network_payload_model.Schema;
282
- readonly archiving?: {
283
- readonly archivists?: string[] | undefined;
284
- readonly queries?: string[] | undefined;
285
- } | undefined;
286
- readonly allowedQueries?: string[] | undefined;
287
- readonly archivist?: ModuleIdentifier | undefined;
288
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
289
- readonly labels?: {
290
- [x: string]: string | undefined;
291
- } | undefined;
292
- readonly name?: ModuleName | undefined;
293
- readonly paging?: {
294
- [x: string]: {
295
- size?: number | undefined;
296
- };
297
- } | undefined;
298
- readonly retry?: {
299
- backoff?: number | undefined;
300
- interval?: number | undefined;
301
- retries?: number | undefined;
302
- } | undefined;
303
- readonly security?: {
304
- readonly allowAnonymous?: boolean | undefined;
305
- readonly allowed?: {
306
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
307
- } | undefined;
308
- readonly disallowed?: {
309
- [x: string]: Lowercase<string>[];
310
- } | undefined;
311
- } | undefined;
312
- readonly sign?: boolean | undefined;
313
- readonly storeQueries?: boolean | undefined;
314
- readonly timestamp?: boolean | undefined;
315
- }>;
138
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
316
139
  ephemeralQueryAccountEnabled?: boolean;
317
140
  moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
318
141
  }, _xyo_network_module_model.ModuleEventData<object>>;
319
142
  addResolver(_resolver: ModuleResolver): this;
320
- childManifest(address: Address): _xylabs_object.DeepRestrictToStringKeys<{
321
- schema: "network.xyo.module.manifest";
322
- config: {
323
- accountPath?: string | undefined;
324
- features?: string[] | undefined;
325
- labels?: {
326
- [x: string]: string | undefined;
327
- } | undefined;
328
- language?: string | undefined;
329
- name: string;
330
- os?: string | undefined;
331
- schema: string;
332
- };
333
- lazyStart?: boolean | undefined;
334
- status?: {
335
- address: Address;
336
- children?: {
337
- [x: Lowercase<string>]: string | null;
338
- } | undefined;
339
- } | undefined;
340
- description?: string | undefined;
341
- }> | _xylabs_object.DeepRestrictToStringKeys<{
342
- schema: "network.xyo.node.manifest";
343
- config: {
344
- accountPath?: string | undefined;
345
- features?: string[] | undefined;
346
- labels?: {
347
- [x: string]: string | undefined;
348
- } | undefined;
349
- language?: string | undefined;
350
- name: string;
351
- os?: string | undefined;
352
- schema: string;
353
- };
354
- lazyStart?: boolean | undefined;
355
- status?: {
356
- address: Address;
357
- children?: {
358
- [x: Lowercase<string>]: string | null;
359
- } | undefined;
360
- } | undefined;
361
- description?: string | undefined;
362
- }> | undefined;
363
- childState(address: Address): _xylabs_object.DeepRestrictToStringKeys<{
364
- schema: "network.xyo.module.manifest";
365
- config: {
366
- accountPath?: string | undefined;
367
- features?: string[] | undefined;
368
- labels?: {
369
- [x: string]: string | undefined;
370
- } | undefined;
371
- language?: string | undefined;
372
- name: string;
373
- os?: string | undefined;
374
- schema: string;
375
- };
376
- lazyStart?: boolean | undefined;
377
- status?: {
378
- address: Address;
379
- children?: {
380
- [x: Lowercase<string>]: string | null;
381
- } | undefined;
382
- } | undefined;
383
- description?: string | undefined;
384
- }> | _xylabs_object.DeepRestrictToStringKeys<{
385
- schema: "network.xyo.node.manifest";
386
- config: {
387
- accountPath?: string | undefined;
388
- features?: string[] | undefined;
389
- labels?: {
390
- [x: string]: string | undefined;
391
- } | undefined;
392
- language?: string | undefined;
393
- name: string;
394
- os?: string | undefined;
395
- schema: string;
396
- };
397
- lazyStart?: boolean | undefined;
398
- status?: {
399
- address: Address;
400
- children?: {
401
- [x: Lowercase<string>]: string | null;
402
- } | undefined;
403
- } | undefined;
404
- description?: string | undefined;
405
- }> | undefined;
143
+ childManifest(address: Address): ModuleManifestPayload | undefined;
144
+ childState(address: Address): ModuleManifestPayload | undefined;
406
145
  removeResolver(_resolver: ModuleResolver): this;
407
146
  resolve(): Promise<ModuleInstance[]>;
408
147
  resolve<T extends ModuleInstance = ModuleInstance>(all: '*', options?: ModuleFilterOptions<T>): Promise<T[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/bridge-abstract",
3
- "version": "3.9.2",
3
+ "version": "3.9.4",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -35,29 +35,29 @@
35
35
  "@xylabs/hex": "^4.5.1",
36
36
  "@xylabs/object": "^4.5.1",
37
37
  "@xylabs/promise": "^4.5.1",
38
- "@xyo-network/account": "^3.9.2",
39
- "@xyo-network/account-model": "^3.9.2",
40
- "@xyo-network/archivist-model": "^3.9.2",
41
- "@xyo-network/archivist-wrapper": "^3.9.2",
42
- "@xyo-network/boundwitness-model": "^3.9.2",
43
- "@xyo-network/boundwitness-wrapper": "^3.9.2",
44
- "@xyo-network/bridge-model": "^3.9.2",
45
- "@xyo-network/diviner-model": "^3.9.2",
46
- "@xyo-network/diviner-wrapper": "^3.9.2",
47
- "@xyo-network/manifest-model": "^3.9.2",
48
- "@xyo-network/module-abstract": "^3.9.2",
49
- "@xyo-network/module-model": "^3.9.2",
50
- "@xyo-network/module-resolver": "^3.9.2",
51
- "@xyo-network/module-wrapper": "^3.9.2",
52
- "@xyo-network/node-model": "^3.9.2",
53
- "@xyo-network/node-wrapper": "^3.9.2",
54
- "@xyo-network/payload-builder": "^3.9.2",
55
- "@xyo-network/payload-model": "^3.9.2",
56
- "@xyo-network/query-payload-plugin": "^3.9.2",
57
- "@xyo-network/sentinel-model": "^3.9.2",
58
- "@xyo-network/sentinel-wrapper": "^3.9.2",
59
- "@xyo-network/witness-model": "^3.9.2",
60
- "@xyo-network/witness-wrapper": "^3.9.2",
38
+ "@xyo-network/account": "^3.9.4",
39
+ "@xyo-network/account-model": "^3.9.4",
40
+ "@xyo-network/archivist-model": "^3.9.4",
41
+ "@xyo-network/archivist-wrapper": "^3.9.4",
42
+ "@xyo-network/boundwitness-model": "^3.9.4",
43
+ "@xyo-network/boundwitness-wrapper": "^3.9.4",
44
+ "@xyo-network/bridge-model": "^3.9.4",
45
+ "@xyo-network/diviner-model": "^3.9.4",
46
+ "@xyo-network/diviner-wrapper": "^3.9.4",
47
+ "@xyo-network/manifest-model": "^3.9.4",
48
+ "@xyo-network/module-abstract": "^3.9.4",
49
+ "@xyo-network/module-model": "^3.9.4",
50
+ "@xyo-network/module-resolver": "^3.9.4",
51
+ "@xyo-network/module-wrapper": "^3.9.4",
52
+ "@xyo-network/node-model": "^3.9.4",
53
+ "@xyo-network/node-wrapper": "^3.9.4",
54
+ "@xyo-network/payload-builder": "^3.9.4",
55
+ "@xyo-network/payload-model": "^3.9.4",
56
+ "@xyo-network/query-payload-plugin": "^3.9.4",
57
+ "@xyo-network/sentinel-model": "^3.9.4",
58
+ "@xyo-network/sentinel-wrapper": "^3.9.4",
59
+ "@xyo-network/witness-model": "^3.9.4",
60
+ "@xyo-network/witness-wrapper": "^3.9.4",
61
61
  "lru-cache": "^11.0.2"
62
62
  },
63
63
  "devDependencies": {