@xyo-network/bridge-model 5.3.25 → 5.3.26

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.
Files changed (2) hide show
  1. package/README.md +3654 -10
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -1,23 +1,3667 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/bridge-model
2
4
 
3
- [![logo][]](https://xyo.network)
5
+ [![npm][npm-badge]][npm-link]
6
+ [![license][license-badge]][license-link]
7
+
8
+ > Primary SDK for using XYO Protocol 2.0
9
+
10
+ ## Install
11
+
12
+ Using npm:
13
+
14
+ ```sh
15
+ npm install {{name}}
16
+ ```
17
+
18
+ Using yarn:
4
19
 
5
- Version: 5.0.2
20
+ ```sh
21
+ yarn add {{name}}
22
+ ```
6
23
 
7
- Primary SDK for using XYO Protocol 2.0
24
+ Using pnpm:
8
25
 
9
- ## Documentation
26
+ ```sh
27
+ pnpm add {{name}}
28
+ ```
10
29
 
11
- [TypeDoc Generated Documentation](https://gitbook.xyo.network/xyo-data-lab/xyo-reference/package-documentation/xyo-network__bridge-model)
30
+ Using bun:
31
+
32
+ ```sh
33
+ bun add {{name}}
34
+ ```
12
35
 
13
- Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
14
36
 
15
37
  ## License
16
38
 
17
- > See the [LICENSE](LICENSE) file for license details
39
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
+
41
+ ## Reference
42
+
43
+ ### packages
44
+
45
+ ### modules
46
+
47
+ ### packages
48
+
49
+ ### bridge
50
+
51
+ ### packages
52
+
53
+ ### model
54
+
55
+ ### .temp-typedoc
56
+
57
+ ### classes
58
+
59
+ ### <a id="IsAttachableBridgeInstanceFactory"></a>IsAttachableBridgeInstanceFactory
60
+
61
+ [**@xyo-network/bridge-model**](#../README)
62
+
63
+ ***
64
+
65
+ ## Extends
66
+
67
+ - `IsObjectFactory`\<`T`\>
68
+
69
+ ## Type Parameters
70
+
71
+ ### T
72
+
73
+ `T` *extends* [`AttachableBridgeInstance`](#../interfaces/AttachableBridgeInstance) = [`AttachableBridgeInstance`](#../interfaces/AttachableBridgeInstance)
74
+
75
+ ## Constructors
76
+
77
+ ### Constructor
78
+
79
+ ```ts
80
+ new IsAttachableBridgeInstanceFactory<T>(): IsAttachableBridgeInstanceFactory<T>;
81
+ ```
82
+
83
+ ### Returns
84
+
85
+ `IsAttachableBridgeInstanceFactory`\<`T`\>
86
+
87
+ ### Inherited from
88
+
89
+ ```ts
90
+ IsObjectFactory<T>.constructor
91
+ ```
92
+
93
+ ### interfaces
94
+
95
+ ### <a id="AttachableBridgeInstance"></a>AttachableBridgeInstance
96
+
97
+ [**@xyo-network/bridge-model**](#../README)
98
+
99
+ ***
100
+
101
+ ## Extends
102
+
103
+ - [`BridgeModule`](#BridgeModule)\<`TParams`, `TEventData`\>.`AttachableModuleInstance`\<`TParams`, `TEventData`\>.[`BridgeInstance`](#BridgeInstance)\<`TParams`, `TEventData`\>
104
+
105
+ ## Type Parameters
106
+
107
+ ### TParams
108
+
109
+ `TParams` *extends* [`BridgeParams`](#BridgeParams) = [`BridgeParams`](#BridgeParams)
110
+
111
+ ### TEventData
112
+
113
+ `TEventData` *extends* [`BridgeModuleEventData`](#BridgeModuleEventData) = [`BridgeModuleEventData`](#BridgeModuleEventData)
114
+
115
+ ## Properties
116
+
117
+ ### exposed?
118
+
119
+ ```ts
120
+ optional exposed?: () => Promisable<BrandedAddress[]>;
121
+ ```
122
+
123
+ ### Returns
124
+
125
+ `Promisable`\<`BrandedAddress`[]\>
126
+
127
+ ### Inherited from
128
+
129
+ [`BridgeInstance`](#BridgeInstance).[`exposed`](BridgeInstance.md#exposed)
130
+
131
+ ***
132
+
133
+ ### connect?
134
+
135
+ ```ts
136
+ optional connect?: (id, maxDepth?) => Promisable<BrandedAddress | undefined>;
137
+ ```
138
+
139
+ ### Parameters
140
+
141
+ #### id
142
+
143
+ `ModuleIdentifier`
144
+
145
+ #### maxDepth?
146
+
147
+ `number`
148
+
149
+ ### Returns
150
+
151
+ `Promisable`\<`BrandedAddress` \| `undefined`\>
152
+
153
+ ### Inherited from
154
+
155
+ [`BridgeInstance`](#BridgeInstance).[`connect`](BridgeInstance.md#connect)
156
+
157
+ ***
158
+
159
+ ### disconnect?
160
+
161
+ ```ts
162
+ optional disconnect?: (id, maxDepth?) => Promisable<BrandedAddress | undefined>;
163
+ ```
164
+
165
+ ### Parameters
166
+
167
+ #### id
168
+
169
+ `ModuleIdentifier`
170
+
171
+ #### maxDepth?
172
+
173
+ `number`
174
+
175
+ ### Returns
176
+
177
+ `Promisable`\<`BrandedAddress` \| `undefined`\>
178
+
179
+ ### Inherited from
180
+
181
+ [`BridgeInstance`](#BridgeInstance).[`disconnect`](BridgeInstance.md#disconnect)
182
+
183
+ ***
184
+
185
+ ### expose
186
+
187
+ ```ts
188
+ expose: (id, options?) => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
189
+ ```
190
+
191
+ ### Parameters
192
+
193
+ #### id
194
+
195
+ `ModuleIdentifier`
196
+
197
+ #### options?
198
+
199
+ [`BridgeExposeOptions`](#BridgeExposeOptions)
200
+
201
+ ### Returns
202
+
203
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
204
+
205
+ ### Inherited from
206
+
207
+ [`BridgeInstance`](#BridgeInstance).[`expose`](BridgeInstance.md#expose)
208
+
209
+ ***
210
+
211
+ ### unexpose?
212
+
213
+ ```ts
214
+ optional unexpose?: (id, options?) => Promisable<BrandedAddress[]>;
215
+ ```
216
+
217
+ ### Parameters
218
+
219
+ #### id
220
+
221
+ `ModuleIdentifier`
222
+
223
+ #### options?
224
+
225
+ [`BridgeUnexposeOptions`](#BridgeUnexposeOptions)
226
+
227
+ ### Returns
228
+
229
+ `Promisable`\<`BrandedAddress`[]\>
230
+
231
+ ### Inherited from
232
+
233
+ [`BridgeInstance`](#BridgeInstance).[`unexpose`](BridgeInstance.md#unexpose)
234
+
235
+ ***
236
+
237
+ ### address
238
+
239
+ ```ts
240
+ address: BrandedAddress;
241
+ ```
242
+
243
+ ### Inherited from
244
+
245
+ [`BridgeModule`](#BridgeModule).[`address`](BridgeModule.md#address)
246
+
247
+ ***
248
+
249
+ ### config
250
+
251
+ ```ts
252
+ config: TParams["config"];
253
+ ```
254
+
255
+ ### Inherited from
256
+
257
+ [`BridgeModule`](#BridgeModule).[`config`](BridgeModule.md#config)
258
+
259
+ ***
260
+
261
+ ### id
262
+
263
+ ```ts
264
+ id: string;
265
+ ```
266
+
267
+ The name (if specified) or address of the module
268
+
269
+ ### Inherited from
270
+
271
+ [`BridgeInstance`](#BridgeInstance).[`id`](BridgeInstance.md#id)
272
+
273
+ ***
274
+
275
+ ### modName?
276
+
277
+ ```ts
278
+ optional modName?: string;
279
+ ```
280
+
281
+ ### Inherited from
282
+
283
+ [`BridgeInstance`](#BridgeInstance).[`modName`](BridgeInstance.md#modname)
284
+
285
+ ***
286
+
287
+ ### params
288
+
289
+ ```ts
290
+ params: TParams;
291
+ ```
292
+
293
+ ### Inherited from
294
+
295
+ [`BridgeModule`](#BridgeModule).[`params`](BridgeModule.md#params)
296
+
297
+ ***
298
+
299
+ ### previousHash
300
+
301
+ ```ts
302
+ previousHash: () => Promisable<string | undefined>;
303
+ ```
304
+
305
+ ### Returns
306
+
307
+ `Promisable`\<`string` \| `undefined`\>
308
+
309
+ ### Inherited from
310
+
311
+ [`BridgeModule`](#BridgeModule).[`previousHash`](BridgeModule.md#previoushash)
312
+
313
+ ***
314
+
315
+ ### queries
316
+
317
+ ```ts
318
+ queries: string[];
319
+ ```
320
+
321
+ ### Inherited from
322
+
323
+ [`BridgeInstance`](#BridgeInstance).[`queries`](BridgeInstance.md#queries)
324
+
325
+ ***
326
+
327
+ ### query
328
+
329
+ ```ts
330
+ query: <T, TConf>(query, payloads?, queryConfig?) => Promisable<ModuleQueryResult>;
331
+ ```
332
+
333
+ ### Type Parameters
334
+
335
+ #### T
336
+
337
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
338
+
339
+ #### TConf
340
+
341
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
342
+
343
+ ### Parameters
344
+
345
+ #### query
346
+
347
+ `T`
348
+
349
+ #### payloads?
350
+
351
+ `Payload`[]
352
+
353
+ #### queryConfig?
354
+
355
+ `TConf`
356
+
357
+ ### Returns
358
+
359
+ `Promisable`\<`ModuleQueryResult`\>
360
+
361
+ ### Inherited from
362
+
363
+ [`BridgeModule`](#BridgeModule).[`query`](BridgeModule.md#query)
364
+
365
+ ***
366
+
367
+ ### queryable
368
+
369
+ ```ts
370
+ queryable: <T, TConf>(query, payloads?, queryConfig?) => Promisable<boolean>;
371
+ ```
372
+
373
+ ### Type Parameters
374
+
375
+ #### T
376
+
377
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
378
+
379
+ #### TConf
380
+
381
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
382
+
383
+ ### Parameters
384
+
385
+ #### query
386
+
387
+ `T`
388
+
389
+ #### payloads?
390
+
391
+ `Payload`[]
392
+
393
+ #### queryConfig?
394
+
395
+ `TConf`
396
+
397
+ ### Returns
398
+
399
+ `Promisable`\<`boolean`\>
400
+
401
+ ### Inherited from
402
+
403
+ [`BridgeModule`](#BridgeModule).[`queryable`](BridgeModule.md#queryable)
404
+
405
+ ***
406
+
407
+ ### manifest
408
+
409
+ ```ts
410
+ manifest: (maxDepth?, ignoreAddresses?) => Promisable<ModuleManifestPayload>;
411
+ ```
412
+
413
+ ### Parameters
414
+
415
+ #### maxDepth?
416
+
417
+ `number`
418
+
419
+ #### ignoreAddresses?
420
+
421
+ `BrandedAddress`[]
422
+
423
+ ### Returns
424
+
425
+ `Promisable`\<`ModuleManifestPayload`\>
426
+
427
+ ### Inherited from
428
+
429
+ [`BridgeInstance`](#BridgeInstance).[`manifest`](BridgeInstance.md#manifest)
430
+
431
+ ***
432
+
433
+ ### manifestQuery
434
+
435
+ ```ts
436
+ manifestQuery: (account, maxDepth?, ignoreAddresses?) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
437
+ ```
438
+
439
+ ### Parameters
440
+
441
+ #### account
442
+
443
+ `AccountInstance`
444
+
445
+ #### maxDepth?
446
+
447
+ `number`
448
+
449
+ #### ignoreAddresses?
450
+
451
+ `BrandedAddress`[]
452
+
453
+ ### Returns
454
+
455
+ `Promisable`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
456
+
457
+ ### Inherited from
458
+
459
+ [`BridgeInstance`](#BridgeInstance).[`manifestQuery`](BridgeInstance.md#manifestquery)
460
+
461
+ ***
462
+
463
+ ### moduleAddress
464
+
465
+ ```ts
466
+ moduleAddress: () => Promisable<(AddressPreviousHashPayload | AddressPayload)[]>;
467
+ ```
468
+
469
+ ### Returns
470
+
471
+ `Promisable`\<(`AddressPreviousHashPayload` \| `AddressPayload`)[]\>
472
+
473
+ ### Inherited from
474
+
475
+ [`BridgeInstance`](#BridgeInstance).[`moduleAddress`](BridgeInstance.md#moduleaddress)
476
+
477
+ ***
478
+
479
+ ### state
480
+
481
+ ```ts
482
+ state: () => Promisable<Payload[]>;
483
+ ```
484
+
485
+ ### Returns
486
+
487
+ `Promisable`\<`Payload`[]\>
488
+
489
+ ### Inherited from
490
+
491
+ [`BridgeInstance`](#BridgeInstance).[`state`](BridgeInstance.md#state)
492
+
493
+ ***
494
+
495
+ ### stateQuery
496
+
497
+ ```ts
498
+ stateQuery: (account) => Promisable<ModuleQueryResult>;
499
+ ```
500
+
501
+ ### Parameters
502
+
503
+ #### account
504
+
505
+ `AccountInstance`
506
+
507
+ ### Returns
508
+
509
+ `Promisable`\<`ModuleQueryResult`\>
510
+
511
+ ### Inherited from
512
+
513
+ [`BridgeInstance`](#BridgeInstance).[`stateQuery`](BridgeInstance.md#statequery)
514
+
515
+ ***
516
+
517
+ ### account?
518
+
519
+ ```ts
520
+ optional account?: AccountInstance;
521
+ ```
522
+
523
+ ### Inherited from
524
+
525
+ [`BridgeInstance`](#BridgeInstance).[`account`](BridgeInstance.md#account)
526
+
527
+ ***
528
+
529
+ ### addParent
530
+
531
+ ```ts
532
+ addParent: (mod) => void;
533
+ ```
534
+
535
+ ### Parameters
536
+
537
+ #### mod
538
+
539
+ `ModuleInstance`
540
+
541
+ ### Returns
542
+
543
+ `void`
544
+
545
+ ### Inherited from
546
+
547
+ [`BridgeInstance`](#BridgeInstance).[`addParent`](BridgeInstance.md#addparent)
548
+
549
+ ***
550
+
551
+ ### addressCache?
552
+
553
+ ```ts
554
+ optional addressCache?: (direction, includePrivate) => AddressToWeakInstanceCache | undefined;
555
+ ```
556
+
557
+ ### Parameters
558
+
559
+ #### direction
560
+
561
+ `Direction`
562
+
563
+ #### includePrivate
564
+
565
+ `boolean`
566
+
567
+ ### Returns
568
+
569
+ `AddressToWeakInstanceCache` \| `undefined`
570
+
571
+ ### Inherited from
572
+
573
+ [`BridgeInstance`](#BridgeInstance).[`addressCache`](BridgeInstance.md#addresscache)
574
+
575
+ ***
576
+
577
+ ### parents
578
+
579
+ ```ts
580
+ parents: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
581
+ ```
582
+
583
+ ### Returns
584
+
585
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
586
+
587
+ ### Inherited from
588
+
589
+ [`BridgeInstance`](#BridgeInstance).[`parents`](BridgeInstance.md#parents)
590
+
591
+ ***
592
+
593
+ ### privateChildren
594
+
595
+ ```ts
596
+ privateChildren: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
597
+ ```
598
+
599
+ ### Returns
600
+
601
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
602
+
603
+ ### Inherited from
604
+
605
+ [`BridgeInstance`](#BridgeInstance).[`privateChildren`](BridgeInstance.md#privatechildren)
606
+
607
+ ***
608
+
609
+ ### publicChildren
610
+
611
+ ```ts
612
+ publicChildren: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
613
+ ```
614
+
615
+ ### Returns
616
+
617
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
618
+
619
+ ### Inherited from
620
+
621
+ [`BridgeInstance`](#BridgeInstance).[`publicChildren`](BridgeInstance.md#publicchildren)
622
+
623
+ ***
624
+
625
+ ### removeParent
626
+
627
+ ```ts
628
+ removeParent: (address) => void;
629
+ ```
630
+
631
+ ### Parameters
632
+
633
+ #### address
634
+
635
+ `BrandedAddress`
636
+
637
+ ### Returns
638
+
639
+ `void`
640
+
641
+ ### Inherited from
642
+
643
+ [`BridgeInstance`](#BridgeInstance).[`removeParent`](BridgeInstance.md#removeparent)
644
+
645
+ ***
646
+
647
+ ### siblings
648
+
649
+ ```ts
650
+ siblings: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
651
+ ```
652
+
653
+ ### Returns
654
+
655
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
656
+
657
+ ### Inherited from
658
+
659
+ [`BridgeInstance`](#BridgeInstance).[`siblings`](BridgeInstance.md#siblings)
660
+
661
+ ***
662
+
663
+ ### pipeline?
664
+
665
+ ```ts
666
+ readonly optional pipeline?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
667
+ ```
668
+
669
+ ### Inherited from
670
+
671
+ [`BridgeInstance`](#BridgeInstance).[`pipeline`](BridgeInstance.md#pipeline)
672
+
673
+ ***
674
+
675
+ ### status
676
+
677
+ ```ts
678
+ readonly status: ModuleStatus | null;
679
+ ```
680
+
681
+ ### Inherited from
682
+
683
+ [`BridgeInstance`](#BridgeInstance).[`status`](BridgeInstance.md#status)
684
+
685
+ ***
686
+
687
+ ### priority
688
+
689
+ ```ts
690
+ priority: ObjectResolverPriority;
691
+ ```
692
+
693
+ ### Inherited from
694
+
695
+ [`BridgeInstance`](#BridgeInstance).[`priority`](BridgeInstance.md#priority)
696
+
697
+ ***
698
+
699
+ ### downResolver
700
+
701
+ ```ts
702
+ readonly downResolver: ModuleResolverInstance;
703
+ ```
704
+
705
+ ### Inherited from
706
+
707
+ ```ts
708
+ AttachableModuleInstance.downResolver
709
+ ```
710
+
711
+ ***
712
+
713
+ ### privateResolver
714
+
715
+ ```ts
716
+ readonly privateResolver: ModuleResolverInstance;
717
+ ```
718
+
719
+ ### Inherited from
720
+
721
+ ```ts
722
+ AttachableModuleInstance.privateResolver
723
+ ```
724
+
725
+ ***
726
+
727
+ ### upResolver
728
+
729
+ ```ts
730
+ readonly upResolver: ModuleResolverInstance;
731
+ ```
732
+
733
+ ### Inherited from
734
+
735
+ ```ts
736
+ AttachableModuleInstance.upResolver
737
+ ```
738
+
739
+ ## Methods
740
+
741
+ ### resolve()
742
+
743
+ ### Call Signature
744
+
745
+ ```ts
746
+ resolve<T>(all, options?): Promisable<T[]>;
747
+ ```
748
+
749
+ #### Type Parameters
750
+
751
+ ##### T
752
+
753
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
754
+
755
+ #### Parameters
756
+
757
+ ##### all
758
+
759
+ `"*"`
760
+
761
+ ##### options?
762
+
763
+ `ObjectFilterOptions`\<`T`\>
764
+
765
+ #### Returns
766
+
767
+ `Promisable`\<`T`[]\>
768
+
769
+ #### Inherited from
770
+
771
+ [`BridgeInstance`](#BridgeInstance).[`resolve`](BridgeInstance.md#resolve)
772
+
773
+ ### Call Signature
774
+
775
+ ```ts
776
+ resolve<T>(id, options?): Promisable<T | undefined>;
777
+ ```
778
+
779
+ #### Type Parameters
780
+
781
+ ##### T
782
+
783
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
784
+
785
+ #### Parameters
786
+
787
+ ##### id
788
+
789
+ `ModuleIdentifier`
790
+
791
+ ##### options?
792
+
793
+ `ObjectFilterOptions`\<`T`\>
794
+
795
+ #### Returns
796
+
797
+ `Promisable`\<`T` \| `undefined`\>
798
+
799
+ #### Inherited from
800
+
801
+ [`BridgeInstance`](#BridgeInstance).[`resolve`](BridgeInstance.md#resolve)
802
+
803
+ ### Call Signature
804
+
805
+ ```ts
806
+ resolve<T>(id?, options?): Promisable<T | T[] | undefined>;
807
+ ```
808
+
809
+ #### Type Parameters
810
+
811
+ ##### T
812
+
813
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
814
+
815
+ #### Parameters
816
+
817
+ ##### id?
818
+
819
+ `ModuleIdentifier`
820
+
821
+ ##### options?
822
+
823
+ `ObjectFilterOptions`\<`T`\>
824
+
825
+ #### Returns
826
+
827
+ `Promisable`\<`T` \| `T`[] \| `undefined`\>
828
+
829
+ #### Inherited from
830
+
831
+ [`BridgeInstance`](#BridgeInstance).[`resolve`](BridgeInstance.md#resolve)
832
+
833
+ ***
834
+
835
+ ### resolvePrivate()
836
+
837
+ ### Call Signature
838
+
839
+ ```ts
840
+ resolvePrivate<T>(all, options?): Promise<T[]>;
841
+ ```
842
+
843
+ #### Type Parameters
844
+
845
+ ##### T
846
+
847
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
848
+
849
+ #### Parameters
850
+
851
+ ##### all
852
+
853
+ `"*"`
854
+
855
+ ##### options?
856
+
857
+ `ObjectFilterOptions`\<`T`\>
858
+
859
+ #### Returns
860
+
861
+ `Promise`\<`T`[]\>
862
+
863
+ #### Inherited from
864
+
865
+ [`BridgeInstance`](#BridgeInstance).[`resolvePrivate`](BridgeInstance.md#resolveprivate)
866
+
867
+ ### Call Signature
868
+
869
+ ```ts
870
+ resolvePrivate<T>(id, options?): Promise<T | undefined>;
871
+ ```
872
+
873
+ #### Type Parameters
874
+
875
+ ##### T
876
+
877
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
878
+
879
+ #### Parameters
880
+
881
+ ##### id
882
+
883
+ `ModuleIdentifier`
884
+
885
+ ##### options?
886
+
887
+ `ObjectFilterOptions`\<`T`\>
888
+
889
+ #### Returns
890
+
891
+ `Promise`\<`T` \| `undefined`\>
892
+
893
+ #### Inherited from
894
+
895
+ [`BridgeInstance`](#BridgeInstance).[`resolvePrivate`](BridgeInstance.md#resolveprivate)
896
+
897
+ ### Call Signature
898
+
899
+ ```ts
900
+ resolvePrivate<T>(id, options?): Promise<T | T[] | undefined>;
901
+ ```
902
+
903
+ #### Type Parameters
904
+
905
+ ##### T
906
+
907
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
908
+
909
+ #### Parameters
910
+
911
+ ##### id
912
+
913
+ `ModuleIdentifier`
914
+
915
+ ##### options?
916
+
917
+ `ObjectFilterOptions`\<`T`\>
918
+
919
+ #### Returns
920
+
921
+ `Promise`\<`T` \| `T`[] \| `undefined`\>
922
+
923
+ #### Inherited from
924
+
925
+ [`BridgeInstance`](#BridgeInstance).[`resolvePrivate`](BridgeInstance.md#resolveprivate)
926
+
927
+ ### <a id="BridgeExposeOptions"></a>BridgeExposeOptions
928
+
929
+ [**@xyo-network/bridge-model**](#../README)
930
+
931
+ ***
932
+
933
+ ## Extended by
934
+
935
+ - [`BridgeUnexposeOptions`](#BridgeUnexposeOptions)
936
+
937
+ ## Properties
938
+
939
+ ### maxDepth?
940
+
941
+ ```ts
942
+ optional maxDepth?: number;
943
+ ```
944
+
945
+ ***
946
+
947
+ ### required?
948
+
949
+ ```ts
950
+ optional required?: boolean;
951
+ ```
952
+
953
+ ### <a id="BridgeInstance"></a>BridgeInstance
954
+
955
+ [**@xyo-network/bridge-model**](#../README)
956
+
957
+ ***
958
+
959
+ ## Extends
960
+
961
+ - [`BridgeModule`](#BridgeModule)\<`TParams`, `TEventData`\>.[`BridgeQueryFunctions`](#BridgeQueryFunctions).`ModuleInstance`\<`TParams`, `TEventData`\>
962
+
963
+ ## Extended by
964
+
965
+ - [`AttachableBridgeInstance`](#AttachableBridgeInstance)
966
+
967
+ ## Type Parameters
968
+
969
+ ### TParams
970
+
971
+ `TParams` *extends* [`BridgeParams`](#BridgeParams) = [`BridgeParams`](#BridgeParams)
972
+
973
+ ### TEventData
974
+
975
+ `TEventData` *extends* [`BridgeModuleEventData`](#BridgeModuleEventData) = [`BridgeModuleEventData`](#BridgeModuleEventData)
976
+
977
+ ## Properties
978
+
979
+ ### exposed?
980
+
981
+ ```ts
982
+ optional exposed?: () => Promisable<BrandedAddress[]>;
983
+ ```
984
+
985
+ ### Returns
986
+
987
+ `Promisable`\<`BrandedAddress`[]\>
988
+
989
+ ***
990
+
991
+ ### connect?
992
+
993
+ ```ts
994
+ optional connect?: (id, maxDepth?) => Promisable<BrandedAddress | undefined>;
995
+ ```
996
+
997
+ ### Parameters
998
+
999
+ #### id
1000
+
1001
+ `ModuleIdentifier`
1002
+
1003
+ #### maxDepth?
1004
+
1005
+ `number`
1006
+
1007
+ ### Returns
1008
+
1009
+ `Promisable`\<`BrandedAddress` \| `undefined`\>
1010
+
1011
+ ### Inherited from
1012
+
1013
+ [`BridgeQueryFunctions`](#BridgeQueryFunctions).[`connect`](BridgeQueryFunctions.md#connect)
1014
+
1015
+ ***
1016
+
1017
+ ### disconnect?
1018
+
1019
+ ```ts
1020
+ optional disconnect?: (id, maxDepth?) => Promisable<BrandedAddress | undefined>;
1021
+ ```
1022
+
1023
+ ### Parameters
1024
+
1025
+ #### id
1026
+
1027
+ `ModuleIdentifier`
1028
+
1029
+ #### maxDepth?
1030
+
1031
+ `number`
1032
+
1033
+ ### Returns
1034
+
1035
+ `Promisable`\<`BrandedAddress` \| `undefined`\>
1036
+
1037
+ ### Inherited from
1038
+
1039
+ [`BridgeQueryFunctions`](#BridgeQueryFunctions).[`disconnect`](BridgeQueryFunctions.md#disconnect)
1040
+
1041
+ ***
1042
+
1043
+ ### expose
1044
+
1045
+ ```ts
1046
+ expose: (id, options?) => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1047
+ ```
1048
+
1049
+ ### Parameters
1050
+
1051
+ #### id
1052
+
1053
+ `ModuleIdentifier`
1054
+
1055
+ #### options?
1056
+
1057
+ [`BridgeExposeOptions`](#BridgeExposeOptions)
1058
+
1059
+ ### Returns
1060
+
1061
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1062
+
1063
+ ### Inherited from
1064
+
1065
+ [`BridgeQueryFunctions`](#BridgeQueryFunctions).[`expose`](BridgeQueryFunctions.md#expose)
1066
+
1067
+ ***
1068
+
1069
+ ### unexpose?
1070
+
1071
+ ```ts
1072
+ optional unexpose?: (id, options?) => Promisable<BrandedAddress[]>;
1073
+ ```
1074
+
1075
+ ### Parameters
1076
+
1077
+ #### id
1078
+
1079
+ `ModuleIdentifier`
1080
+
1081
+ #### options?
1082
+
1083
+ [`BridgeUnexposeOptions`](#BridgeUnexposeOptions)
1084
+
1085
+ ### Returns
1086
+
1087
+ `Promisable`\<`BrandedAddress`[]\>
1088
+
1089
+ ### Inherited from
1090
+
1091
+ [`BridgeQueryFunctions`](#BridgeQueryFunctions).[`unexpose`](BridgeQueryFunctions.md#unexpose)
1092
+
1093
+ ***
1094
+
1095
+ ### address
1096
+
1097
+ ```ts
1098
+ address: BrandedAddress;
1099
+ ```
1100
+
1101
+ ### Inherited from
1102
+
1103
+ [`BridgeModule`](#BridgeModule).[`address`](BridgeModule.md#address)
1104
+
1105
+ ***
1106
+
1107
+ ### config
1108
+
1109
+ ```ts
1110
+ config: TParams["config"];
1111
+ ```
1112
+
1113
+ ### Inherited from
1114
+
1115
+ [`BridgeModule`](#BridgeModule).[`config`](BridgeModule.md#config)
1116
+
1117
+ ***
1118
+
1119
+ ### id
1120
+
1121
+ ```ts
1122
+ id: string;
1123
+ ```
1124
+
1125
+ The name (if specified) or address of the module
1126
+
1127
+ ### Inherited from
1128
+
1129
+ [`BridgeModule`](#BridgeModule).[`id`](BridgeModule.md#id)
1130
+
1131
+ ***
1132
+
1133
+ ### modName?
1134
+
1135
+ ```ts
1136
+ optional modName?: string;
1137
+ ```
1138
+
1139
+ ### Inherited from
1140
+
1141
+ [`BridgeModule`](#BridgeModule).[`modName`](BridgeModule.md#modname)
1142
+
1143
+ ***
1144
+
1145
+ ### params
1146
+
1147
+ ```ts
1148
+ params: TParams;
1149
+ ```
1150
+
1151
+ ### Inherited from
1152
+
1153
+ [`BridgeModule`](#BridgeModule).[`params`](BridgeModule.md#params)
1154
+
1155
+ ***
1156
+
1157
+ ### previousHash
1158
+
1159
+ ```ts
1160
+ previousHash: () => Promisable<string | undefined>;
1161
+ ```
1162
+
1163
+ ### Returns
1164
+
1165
+ `Promisable`\<`string` \| `undefined`\>
1166
+
1167
+ ### Inherited from
1168
+
1169
+ [`BridgeModule`](#BridgeModule).[`previousHash`](BridgeModule.md#previoushash)
1170
+
1171
+ ***
1172
+
1173
+ ### queries
1174
+
1175
+ ```ts
1176
+ queries: string[];
1177
+ ```
1178
+
1179
+ ### Inherited from
1180
+
1181
+ [`BridgeModule`](#BridgeModule).[`queries`](BridgeModule.md#queries)
1182
+
1183
+ ***
1184
+
1185
+ ### query
1186
+
1187
+ ```ts
1188
+ query: <T, TConf>(query, payloads?, queryConfig?) => Promisable<ModuleQueryResult>;
1189
+ ```
1190
+
1191
+ ### Type Parameters
1192
+
1193
+ #### T
1194
+
1195
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1196
+
1197
+ #### TConf
1198
+
1199
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
1200
+
1201
+ ### Parameters
1202
+
1203
+ #### query
1204
+
1205
+ `T`
1206
+
1207
+ #### payloads?
1208
+
1209
+ `Payload`[]
1210
+
1211
+ #### queryConfig?
1212
+
1213
+ `TConf`
1214
+
1215
+ ### Returns
1216
+
1217
+ `Promisable`\<`ModuleQueryResult`\>
1218
+
1219
+ ### Inherited from
1220
+
1221
+ [`BridgeModule`](#BridgeModule).[`query`](BridgeModule.md#query)
1222
+
1223
+ ***
1224
+
1225
+ ### queryable
1226
+
1227
+ ```ts
1228
+ queryable: <T, TConf>(query, payloads?, queryConfig?) => Promisable<boolean>;
1229
+ ```
1230
+
1231
+ ### Type Parameters
1232
+
1233
+ #### T
1234
+
1235
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1236
+
1237
+ #### TConf
1238
+
1239
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
1240
+
1241
+ ### Parameters
1242
+
1243
+ #### query
1244
+
1245
+ `T`
1246
+
1247
+ #### payloads?
1248
+
1249
+ `Payload`[]
1250
+
1251
+ #### queryConfig?
1252
+
1253
+ `TConf`
1254
+
1255
+ ### Returns
1256
+
1257
+ `Promisable`\<`boolean`\>
1258
+
1259
+ ### Inherited from
1260
+
1261
+ [`BridgeModule`](#BridgeModule).[`queryable`](BridgeModule.md#queryable)
1262
+
1263
+ ***
1264
+
1265
+ ### manifest
1266
+
1267
+ ```ts
1268
+ manifest: (maxDepth?, ignoreAddresses?) => Promisable<ModuleManifestPayload>;
1269
+ ```
1270
+
1271
+ ### Parameters
1272
+
1273
+ #### maxDepth?
1274
+
1275
+ `number`
1276
+
1277
+ #### ignoreAddresses?
1278
+
1279
+ `BrandedAddress`[]
1280
+
1281
+ ### Returns
1282
+
1283
+ `Promisable`\<`ModuleManifestPayload`\>
1284
+
1285
+ ### Inherited from
1286
+
1287
+ ```ts
1288
+ ModuleInstance.manifest
1289
+ ```
1290
+
1291
+ ***
1292
+
1293
+ ### manifestQuery
1294
+
1295
+ ```ts
1296
+ manifestQuery: (account, maxDepth?, ignoreAddresses?) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
1297
+ ```
1298
+
1299
+ ### Parameters
1300
+
1301
+ #### account
1302
+
1303
+ `AccountInstance`
1304
+
1305
+ #### maxDepth?
1306
+
1307
+ `number`
1308
+
1309
+ #### ignoreAddresses?
1310
+
1311
+ `BrandedAddress`[]
1312
+
1313
+ ### Returns
1314
+
1315
+ `Promisable`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
1316
+
1317
+ ### Inherited from
1318
+
1319
+ ```ts
1320
+ ModuleInstance.manifestQuery
1321
+ ```
1322
+
1323
+ ***
1324
+
1325
+ ### moduleAddress
1326
+
1327
+ ```ts
1328
+ moduleAddress: () => Promisable<(AddressPreviousHashPayload | AddressPayload)[]>;
1329
+ ```
1330
+
1331
+ ### Returns
1332
+
1333
+ `Promisable`\<(`AddressPreviousHashPayload` \| `AddressPayload`)[]\>
1334
+
1335
+ ### Inherited from
1336
+
1337
+ ```ts
1338
+ ModuleInstance.moduleAddress
1339
+ ```
1340
+
1341
+ ***
1342
+
1343
+ ### state
1344
+
1345
+ ```ts
1346
+ state: () => Promisable<Payload[]>;
1347
+ ```
1348
+
1349
+ ### Returns
1350
+
1351
+ `Promisable`\<`Payload`[]\>
1352
+
1353
+ ### Inherited from
1354
+
1355
+ ```ts
1356
+ ModuleInstance.state
1357
+ ```
1358
+
1359
+ ***
1360
+
1361
+ ### stateQuery
1362
+
1363
+ ```ts
1364
+ stateQuery: (account) => Promisable<ModuleQueryResult>;
1365
+ ```
1366
+
1367
+ ### Parameters
1368
+
1369
+ #### account
1370
+
1371
+ `AccountInstance`
1372
+
1373
+ ### Returns
1374
+
1375
+ `Promisable`\<`ModuleQueryResult`\>
1376
+
1377
+ ### Inherited from
1378
+
1379
+ ```ts
1380
+ ModuleInstance.stateQuery
1381
+ ```
1382
+
1383
+ ***
1384
+
1385
+ ### account?
1386
+
1387
+ ```ts
1388
+ optional account?: AccountInstance;
1389
+ ```
1390
+
1391
+ ### Inherited from
1392
+
1393
+ ```ts
1394
+ ModuleInstance.account
1395
+ ```
1396
+
1397
+ ***
1398
+
1399
+ ### addParent
1400
+
1401
+ ```ts
1402
+ addParent: (mod) => void;
1403
+ ```
1404
+
1405
+ ### Parameters
1406
+
1407
+ #### mod
1408
+
1409
+ `ModuleInstance`
1410
+
1411
+ ### Returns
1412
+
1413
+ `void`
1414
+
1415
+ ### Inherited from
1416
+
1417
+ ```ts
1418
+ ModuleInstance.addParent
1419
+ ```
1420
+
1421
+ ***
1422
+
1423
+ ### addressCache?
1424
+
1425
+ ```ts
1426
+ optional addressCache?: (direction, includePrivate) => AddressToWeakInstanceCache | undefined;
1427
+ ```
1428
+
1429
+ ### Parameters
1430
+
1431
+ #### direction
1432
+
1433
+ `Direction`
1434
+
1435
+ #### includePrivate
1436
+
1437
+ `boolean`
1438
+
1439
+ ### Returns
1440
+
1441
+ `AddressToWeakInstanceCache` \| `undefined`
1442
+
1443
+ ### Inherited from
1444
+
1445
+ ```ts
1446
+ ModuleInstance.addressCache
1447
+ ```
1448
+
1449
+ ***
1450
+
1451
+ ### parents
1452
+
1453
+ ```ts
1454
+ parents: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1455
+ ```
1456
+
1457
+ ### Returns
1458
+
1459
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1460
+
1461
+ ### Inherited from
1462
+
1463
+ ```ts
1464
+ ModuleInstance.parents
1465
+ ```
1466
+
1467
+ ***
1468
+
1469
+ ### privateChildren
1470
+
1471
+ ```ts
1472
+ privateChildren: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1473
+ ```
1474
+
1475
+ ### Returns
1476
+
1477
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1478
+
1479
+ ### Inherited from
1480
+
1481
+ ```ts
1482
+ ModuleInstance.privateChildren
1483
+ ```
1484
+
1485
+ ***
1486
+
1487
+ ### publicChildren
1488
+
1489
+ ```ts
1490
+ publicChildren: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1491
+ ```
1492
+
1493
+ ### Returns
1494
+
1495
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1496
+
1497
+ ### Inherited from
1498
+
1499
+ ```ts
1500
+ ModuleInstance.publicChildren
1501
+ ```
1502
+
1503
+ ***
1504
+
1505
+ ### removeParent
1506
+
1507
+ ```ts
1508
+ removeParent: (address) => void;
1509
+ ```
1510
+
1511
+ ### Parameters
1512
+
1513
+ #### address
1514
+
1515
+ `BrandedAddress`
1516
+
1517
+ ### Returns
1518
+
1519
+ `void`
1520
+
1521
+ ### Inherited from
1522
+
1523
+ ```ts
1524
+ ModuleInstance.removeParent
1525
+ ```
1526
+
1527
+ ***
1528
+
1529
+ ### siblings
1530
+
1531
+ ```ts
1532
+ siblings: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1533
+ ```
1534
+
1535
+ ### Returns
1536
+
1537
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1538
+
1539
+ ### Inherited from
1540
+
1541
+ ```ts
1542
+ ModuleInstance.siblings
1543
+ ```
1544
+
1545
+ ***
1546
+
1547
+ ### pipeline?
1548
+
1549
+ ```ts
1550
+ readonly optional pipeline?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
1551
+ ```
1552
+
1553
+ ### Inherited from
1554
+
1555
+ ```ts
1556
+ ModuleInstance.pipeline
1557
+ ```
1558
+
1559
+ ***
1560
+
1561
+ ### status
1562
+
1563
+ ```ts
1564
+ readonly status: ModuleStatus | null;
1565
+ ```
1566
+
1567
+ ### Inherited from
1568
+
1569
+ ```ts
1570
+ ModuleInstance.status
1571
+ ```
1572
+
1573
+ ***
1574
+
1575
+ ### priority
1576
+
1577
+ ```ts
1578
+ priority: ObjectResolverPriority;
1579
+ ```
1580
+
1581
+ ### Inherited from
1582
+
1583
+ ```ts
1584
+ ModuleInstance.priority
1585
+ ```
1586
+
1587
+ ## Methods
1588
+
1589
+ ### resolve()
1590
+
1591
+ ### Call Signature
1592
+
1593
+ ```ts
1594
+ resolve<T>(all, options?): Promisable<T[]>;
1595
+ ```
1596
+
1597
+ #### Type Parameters
1598
+
1599
+ ##### T
1600
+
1601
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1602
+
1603
+ #### Parameters
1604
+
1605
+ ##### all
1606
+
1607
+ `"*"`
1608
+
1609
+ ##### options?
1610
+
1611
+ `ObjectFilterOptions`\<`T`\>
1612
+
1613
+ #### Returns
1614
+
1615
+ `Promisable`\<`T`[]\>
1616
+
1617
+ #### Inherited from
1618
+
1619
+ ```ts
1620
+ ModuleInstance.resolve
1621
+ ```
1622
+
1623
+ ### Call Signature
1624
+
1625
+ ```ts
1626
+ resolve<T>(id, options?): Promisable<T | undefined>;
1627
+ ```
1628
+
1629
+ #### Type Parameters
1630
+
1631
+ ##### T
1632
+
1633
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1634
+
1635
+ #### Parameters
1636
+
1637
+ ##### id
1638
+
1639
+ `ModuleIdentifier`
1640
+
1641
+ ##### options?
1642
+
1643
+ `ObjectFilterOptions`\<`T`\>
1644
+
1645
+ #### Returns
1646
+
1647
+ `Promisable`\<`T` \| `undefined`\>
1648
+
1649
+ #### Inherited from
1650
+
1651
+ ```ts
1652
+ ModuleInstance.resolve
1653
+ ```
1654
+
1655
+ ### Call Signature
1656
+
1657
+ ```ts
1658
+ resolve<T>(id?, options?): Promisable<T | T[] | undefined>;
1659
+ ```
1660
+
1661
+ #### Type Parameters
1662
+
1663
+ ##### T
1664
+
1665
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1666
+
1667
+ #### Parameters
1668
+
1669
+ ##### id?
1670
+
1671
+ `ModuleIdentifier`
1672
+
1673
+ ##### options?
1674
+
1675
+ `ObjectFilterOptions`\<`T`\>
1676
+
1677
+ #### Returns
1678
+
1679
+ `Promisable`\<`T` \| `T`[] \| `undefined`\>
1680
+
1681
+ #### Inherited from
1682
+
1683
+ ```ts
1684
+ ModuleInstance.resolve
1685
+ ```
1686
+
1687
+ ***
1688
+
1689
+ ### resolvePrivate()
1690
+
1691
+ ### Call Signature
1692
+
1693
+ ```ts
1694
+ resolvePrivate<T>(all, options?): Promise<T[]>;
1695
+ ```
1696
+
1697
+ #### Type Parameters
1698
+
1699
+ ##### T
1700
+
1701
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1702
+
1703
+ #### Parameters
1704
+
1705
+ ##### all
1706
+
1707
+ `"*"`
1708
+
1709
+ ##### options?
1710
+
1711
+ `ObjectFilterOptions`\<`T`\>
1712
+
1713
+ #### Returns
1714
+
1715
+ `Promise`\<`T`[]\>
1716
+
1717
+ #### Inherited from
1718
+
1719
+ ```ts
1720
+ ModuleInstance.resolvePrivate
1721
+ ```
1722
+
1723
+ ### Call Signature
1724
+
1725
+ ```ts
1726
+ resolvePrivate<T>(id, options?): Promise<T | undefined>;
1727
+ ```
1728
+
1729
+ #### Type Parameters
1730
+
1731
+ ##### T
1732
+
1733
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1734
+
1735
+ #### Parameters
1736
+
1737
+ ##### id
1738
+
1739
+ `ModuleIdentifier`
1740
+
1741
+ ##### options?
1742
+
1743
+ `ObjectFilterOptions`\<`T`\>
1744
+
1745
+ #### Returns
1746
+
1747
+ `Promise`\<`T` \| `undefined`\>
1748
+
1749
+ #### Inherited from
1750
+
1751
+ ```ts
1752
+ ModuleInstance.resolvePrivate
1753
+ ```
1754
+
1755
+ ### Call Signature
1756
+
1757
+ ```ts
1758
+ resolvePrivate<T>(id, options?): Promise<T | T[] | undefined>;
1759
+ ```
1760
+
1761
+ #### Type Parameters
1762
+
1763
+ ##### T
1764
+
1765
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1766
+
1767
+ #### Parameters
1768
+
1769
+ ##### id
1770
+
1771
+ `ModuleIdentifier`
1772
+
1773
+ ##### options?
1774
+
1775
+ `ObjectFilterOptions`\<`T`\>
1776
+
1777
+ #### Returns
1778
+
1779
+ `Promise`\<`T` \| `T`[] \| `undefined`\>
1780
+
1781
+ #### Inherited from
1782
+
1783
+ ```ts
1784
+ ModuleInstance.resolvePrivate
1785
+ ```
1786
+
1787
+ ### <a id="BridgeModule"></a>BridgeModule
1788
+
1789
+ [**@xyo-network/bridge-model**](#../README)
1790
+
1791
+ ***
1792
+
1793
+ ## Extends
1794
+
1795
+ - `QueryableModule`\<`TParams`, `TEventData`\>
1796
+
1797
+ ## Extended by
1798
+
1799
+ - [`AttachableBridgeInstance`](#AttachableBridgeInstance)
1800
+ - [`BridgeInstance`](#BridgeInstance)
1801
+
1802
+ ## Type Parameters
1803
+
1804
+ ### TParams
1805
+
1806
+ `TParams` *extends* [`BridgeParams`](#BridgeParams) = [`BridgeParams`](#BridgeParams)
1807
+
1808
+ ### TEventData
1809
+
1810
+ `TEventData` *extends* [`BridgeModuleEventData`](#BridgeModuleEventData) = [`BridgeModuleEventData`](#BridgeModuleEventData)
1811
+
1812
+ ## Properties
1813
+
1814
+ ### address
1815
+
1816
+ ```ts
1817
+ address: BrandedAddress;
1818
+ ```
1819
+
1820
+ ### Inherited from
1821
+
1822
+ ```ts
1823
+ QueryableModule.address
1824
+ ```
1825
+
1826
+ ***
1827
+
1828
+ ### config
1829
+
1830
+ ```ts
1831
+ config: TParams["config"];
1832
+ ```
1833
+
1834
+ ### Inherited from
1835
+
1836
+ ```ts
1837
+ QueryableModule.config
1838
+ ```
1839
+
1840
+ ***
1841
+
1842
+ ### id
1843
+
1844
+ ```ts
1845
+ id: string;
1846
+ ```
1847
+
1848
+ The name (if specified) or address of the module
1849
+
1850
+ ### Inherited from
1851
+
1852
+ ```ts
1853
+ QueryableModule.id
1854
+ ```
1855
+
1856
+ ***
1857
+
1858
+ ### modName?
1859
+
1860
+ ```ts
1861
+ optional modName?: string;
1862
+ ```
1863
+
1864
+ ### Inherited from
1865
+
1866
+ ```ts
1867
+ QueryableModule.modName
1868
+ ```
1869
+
1870
+ ***
1871
+
1872
+ ### params
1873
+
1874
+ ```ts
1875
+ params: TParams;
1876
+ ```
1877
+
1878
+ ### Inherited from
1879
+
1880
+ ```ts
1881
+ QueryableModule.params
1882
+ ```
1883
+
1884
+ ***
1885
+
1886
+ ### previousHash
1887
+
1888
+ ```ts
1889
+ previousHash: () => Promisable<string | undefined>;
1890
+ ```
1891
+
1892
+ ### Returns
1893
+
1894
+ `Promisable`\<`string` \| `undefined`\>
1895
+
1896
+ ### Inherited from
1897
+
1898
+ ```ts
1899
+ QueryableModule.previousHash
1900
+ ```
1901
+
1902
+ ***
1903
+
1904
+ ### queries
1905
+
1906
+ ```ts
1907
+ queries: string[];
1908
+ ```
1909
+
1910
+ ### Inherited from
1911
+
1912
+ ```ts
1913
+ QueryableModule.queries
1914
+ ```
1915
+
1916
+ ***
1917
+
1918
+ ### query
1919
+
1920
+ ```ts
1921
+ query: <T, TConf>(query, payloads?, queryConfig?) => Promisable<ModuleQueryResult>;
1922
+ ```
1923
+
1924
+ ### Type Parameters
1925
+
1926
+ #### T
1927
+
1928
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1929
+
1930
+ #### TConf
1931
+
1932
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
1933
+
1934
+ ### Parameters
1935
+
1936
+ #### query
1937
+
1938
+ `T`
1939
+
1940
+ #### payloads?
1941
+
1942
+ `Payload`[]
1943
+
1944
+ #### queryConfig?
1945
+
1946
+ `TConf`
1947
+
1948
+ ### Returns
1949
+
1950
+ `Promisable`\<`ModuleQueryResult`\>
1951
+
1952
+ ### Inherited from
1953
+
1954
+ ```ts
1955
+ QueryableModule.query
1956
+ ```
1957
+
1958
+ ***
1959
+
1960
+ ### queryable
1961
+
1962
+ ```ts
1963
+ queryable: <T, TConf>(query, payloads?, queryConfig?) => Promisable<boolean>;
1964
+ ```
1965
+
1966
+ ### Type Parameters
1967
+
1968
+ #### T
1969
+
1970
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1971
+
1972
+ #### TConf
1973
+
1974
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
1975
+
1976
+ ### Parameters
1977
+
1978
+ #### query
1979
+
1980
+ `T`
1981
+
1982
+ #### payloads?
1983
+
1984
+ `Payload`[]
1985
+
1986
+ #### queryConfig?
1987
+
1988
+ `TConf`
1989
+
1990
+ ### Returns
1991
+
1992
+ `Promisable`\<`boolean`\>
1993
+
1994
+ ### Inherited from
1995
+
1996
+ ```ts
1997
+ QueryableModule.queryable
1998
+ ```
1999
+
2000
+ ### <a id="BridgeModuleEventData"></a>BridgeModuleEventData
2001
+
2002
+ [**@xyo-network/bridge-model**](#../README)
2003
+
2004
+ ***
2005
+
2006
+ ## Extends
2007
+
2008
+ - [`QuerySendFinishedEventData`](#QuerySendFinishedEventData).[`QuerySendStartedEventData`](#QuerySendStartedEventData).[`QueryFulfillFinishedEventData`](#QueryFulfillFinishedEventData).[`QueryFulfillStartedEventData`](#QueryFulfillStartedEventData).[`ExposedEventData`](#ExposedEventData).[`UnexposedEventData`](#UnexposedEventData).`ModuleEventData`
2009
+
2010
+ ## Indexable
2011
+
2012
+ ```ts
2013
+ [key: string | number | symbol]: EventArgs
2014
+ ```
2015
+
2016
+ ## Properties
2017
+
2018
+ ### exposed
2019
+
2020
+ ```ts
2021
+ exposed: object & object;
2022
+ ```
2023
+
2024
+ ### Type Declaration
2025
+
2026
+ #### mod
2027
+
2028
+ ```ts
2029
+ mod: QueryableModule;
2030
+ ```
2031
+
2032
+ ### Type Declaration
2033
+
2034
+ #### modules
2035
+
2036
+ ```ts
2037
+ modules: ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[];
2038
+ ```
2039
+
2040
+ ### Inherited from
2041
+
2042
+ [`ExposedEventData`](#ExposedEventData).[`exposed`](ExposedEventData.md#exposed)
2043
+
2044
+ ***
2045
+
2046
+ ### queryFulfillFinished
2047
+
2048
+ ```ts
2049
+ queryFulfillFinished: object & object;
2050
+ ```
2051
+
2052
+ ### Type Declaration
2053
+
2054
+ #### mod
2055
+
2056
+ ```ts
2057
+ mod: QueryableModule;
2058
+ ```
2059
+
2060
+ ### Type Declaration
2061
+
2062
+ #### payloads?
2063
+
2064
+ ```ts
2065
+ optional payloads?: Payload[];
2066
+ ```
2067
+
2068
+ #### query
2069
+
2070
+ ```ts
2071
+ query: UnsignedQueryBoundWitness;
2072
+ ```
2073
+
2074
+ #### result?
2075
+
2076
+ ```ts
2077
+ optional result?: ModuleQueryResult;
2078
+ ```
2079
+
2080
+ #### status
2081
+
2082
+ ```ts
2083
+ status: "success" | "failure";
2084
+ ```
2085
+
2086
+ ### Inherited from
2087
+
2088
+ [`QueryFulfillFinishedEventData`](#QueryFulfillFinishedEventData).[`queryFulfillFinished`](QueryFulfillFinishedEventData.md#queryfulfillfinished)
2089
+
2090
+ ***
2091
+
2092
+ ### queryFulfillStarted
2093
+
2094
+ ```ts
2095
+ queryFulfillStarted: object & object;
2096
+ ```
2097
+
2098
+ ### Type Declaration
2099
+
2100
+ #### mod
2101
+
2102
+ ```ts
2103
+ mod: QueryableModule;
2104
+ ```
2105
+
2106
+ ### Type Declaration
2107
+
2108
+ #### payloads?
2109
+
2110
+ ```ts
2111
+ optional payloads?: Payload[];
2112
+ ```
2113
+
2114
+ #### query
2115
+
2116
+ ```ts
2117
+ query: UnsignedQueryBoundWitness;
2118
+ ```
2119
+
2120
+ ### Inherited from
2121
+
2122
+ [`QueryFulfillStartedEventData`](#QueryFulfillStartedEventData).[`queryFulfillStarted`](QueryFulfillStartedEventData.md#queryfulfillstarted)
2123
+
2124
+ ***
2125
+
2126
+ ### querySendFinished
2127
+
2128
+ ```ts
2129
+ querySendFinished: object & object;
2130
+ ```
2131
+
2132
+ ### Type Declaration
2133
+
2134
+ #### mod
2135
+
2136
+ ```ts
2137
+ mod: QueryableModule;
2138
+ ```
2139
+
2140
+ ### Type Declaration
2141
+
2142
+ #### payloads?
2143
+
2144
+ ```ts
2145
+ optional payloads?: Payload[];
2146
+ ```
2147
+
2148
+ #### query
2149
+
2150
+ ```ts
2151
+ query: UnsignedQueryBoundWitness;
2152
+ ```
2153
+
2154
+ #### result?
2155
+
2156
+ ```ts
2157
+ optional result?: ModuleQueryResult;
2158
+ ```
2159
+
2160
+ #### status
2161
+
2162
+ ```ts
2163
+ status: "success" | "failure";
2164
+ ```
2165
+
2166
+ ### Inherited from
2167
+
2168
+ [`QuerySendFinishedEventData`](#QuerySendFinishedEventData).[`querySendFinished`](QuerySendFinishedEventData.md#querysendfinished)
2169
+
2170
+ ***
2171
+
2172
+ ### querySendStarted
2173
+
2174
+ ```ts
2175
+ querySendStarted: object & object;
2176
+ ```
2177
+
2178
+ ### Type Declaration
2179
+
2180
+ #### mod
2181
+
2182
+ ```ts
2183
+ mod: QueryableModule;
2184
+ ```
2185
+
2186
+ ### Type Declaration
2187
+
2188
+ #### payloads?
2189
+
2190
+ ```ts
2191
+ optional payloads?: Payload[];
2192
+ ```
2193
+
2194
+ #### query
2195
+
2196
+ ```ts
2197
+ query: UnsignedQueryBoundWitness;
2198
+ ```
2199
+
2200
+ ### Inherited from
2201
+
2202
+ [`QuerySendStartedEventData`](#QuerySendStartedEventData).[`querySendStarted`](QuerySendStartedEventData.md#querysendstarted)
2203
+
2204
+ ***
2205
+
2206
+ ### unexposed
2207
+
2208
+ ```ts
2209
+ unexposed: object & object;
2210
+ ```
2211
+
2212
+ ### Type Declaration
2213
+
2214
+ #### mod
2215
+
2216
+ ```ts
2217
+ mod: QueryableModule;
2218
+ ```
2219
+
2220
+ ### Type Declaration
2221
+
2222
+ #### modules
2223
+
2224
+ ```ts
2225
+ modules: ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[];
2226
+ ```
2227
+
2228
+ ### Inherited from
2229
+
2230
+ [`UnexposedEventData`](#UnexposedEventData).[`unexposed`](UnexposedEventData.md#unexposed)
2231
+
2232
+ ***
2233
+
2234
+ ### moduleBusy
2235
+
2236
+ ```ts
2237
+ moduleBusy: object & object;
2238
+ ```
2239
+
2240
+ ### Type Declaration
2241
+
2242
+ #### mod
2243
+
2244
+ ```ts
2245
+ mod: object;
2246
+ ```
2247
+
2248
+ ### Type Declaration
2249
+
2250
+ #### busy
2251
+
2252
+ ```ts
2253
+ busy: boolean;
2254
+ ```
2255
+
2256
+ ### Inherited from
2257
+
2258
+ ```ts
2259
+ ModuleEventData.moduleBusy
2260
+ ```
2261
+
2262
+ ***
2263
+
2264
+ ### moduleError
2265
+
2266
+ ```ts
2267
+ moduleError: object & object;
2268
+ ```
2269
+
2270
+ ### Type Declaration
2271
+
2272
+ #### mod
2273
+
2274
+ ```ts
2275
+ mod: object;
2276
+ ```
2277
+
2278
+ ### Type Declaration
2279
+
2280
+ #### error
2281
+
2282
+ ```ts
2283
+ error: Error;
2284
+ ```
2285
+
2286
+ ### Inherited from
2287
+
2288
+ ```ts
2289
+ ModuleEventData.moduleError
2290
+ ```
2291
+
2292
+ ***
2293
+
2294
+ ### moduleQueried
2295
+
2296
+ ```ts
2297
+ moduleQueried: object & object;
2298
+ ```
2299
+
2300
+ ### Type Declaration
2301
+
2302
+ #### mod
2303
+
2304
+ ```ts
2305
+ mod: object;
2306
+ ```
2307
+
2308
+ ### Type Declaration
2309
+
2310
+ #### payloads?
2311
+
2312
+ ```ts
2313
+ optional payloads?: Payload[];
2314
+ ```
2315
+
2316
+ #### query
2317
+
2318
+ ```ts
2319
+ query: UnsignedQueryBoundWitness;
2320
+ ```
2321
+
2322
+ #### result
2323
+
2324
+ ```ts
2325
+ result: ModuleQueryResult;
2326
+ ```
2327
+
2328
+ ### Inherited from
2329
+
2330
+ ```ts
2331
+ ModuleEventData.moduleQueried
2332
+ ```
2333
+
2334
+ ### <a id="BridgeParams"></a>BridgeParams
2335
+
2336
+ [**@xyo-network/bridge-model**](#../README)
2337
+
2338
+ ***
2339
+
2340
+ ## Extends
2341
+
2342
+ - `QueryableModuleParams`\<`TConfig`\>
2343
+
2344
+ ## Type Parameters
2345
+
2346
+ ### TConfig
2347
+
2348
+ `TConfig` *extends* `AnyConfigSchema`\<[`BridgeConfig`](#../type-aliases/BridgeConfig)\> = `AnyConfigSchema`\<[`BridgeConfig`](#../type-aliases/BridgeConfig)\>
2349
+
2350
+ ## Properties
2351
+
2352
+ ### resolver?
2353
+
2354
+ ```ts
2355
+ optional resolver?: ModuleResolverInstance<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
2356
+ ```
2357
+
2358
+ ***
2359
+
2360
+ ### account?
2361
+
2362
+ ```ts
2363
+ optional account?: AccountInstance | "random";
2364
+ ```
2365
+
2366
+ ### Inherited from
2367
+
2368
+ ```ts
2369
+ QueryableModuleParams.account
2370
+ ```
2371
+
2372
+ ***
2373
+
2374
+ ### addToResolvers?
2375
+
2376
+ ```ts
2377
+ optional addToResolvers?: boolean;
2378
+ ```
2379
+
2380
+ ### Inherited from
2381
+
2382
+ ```ts
2383
+ QueryableModuleParams.addToResolvers
2384
+ ```
2385
+
2386
+ ***
2387
+
2388
+ ### additionalSigners?
2389
+
2390
+ ```ts
2391
+ optional additionalSigners?: AccountInstance[];
2392
+ ```
2393
+
2394
+ ### Inherited from
2395
+
2396
+ ```ts
2397
+ QueryableModuleParams.additionalSigners
2398
+ ```
2399
+
2400
+ ***
2401
+
2402
+ ### allowNameResolution?
2403
+
2404
+ ```ts
2405
+ optional allowNameResolution?: boolean;
2406
+ ```
2407
+
2408
+ ### Inherited from
2409
+
2410
+ ```ts
2411
+ QueryableModuleParams.allowNameResolution
2412
+ ```
2413
+
2414
+ ***
2415
+
2416
+ ### config
2417
+
2418
+ ```ts
2419
+ config: Partial<TConfig>;
2420
+ ```
2421
+
2422
+ ### Inherited from
2423
+
2424
+ ```ts
2425
+ QueryableModuleParams.config
2426
+ ```
2427
+
2428
+ ***
2429
+
2430
+ ### ephemeralQueryAccountEnabled?
2431
+
2432
+ ```ts
2433
+ optional ephemeralQueryAccountEnabled?: boolean;
2434
+ ```
2435
+
2436
+ ### Inherited from
2437
+
2438
+ ```ts
2439
+ QueryableModuleParams.ephemeralQueryAccountEnabled
2440
+ ```
2441
+
2442
+ ***
2443
+
2444
+ ### moduleIdentifierTransformers?
2445
+
2446
+ ```ts
2447
+ optional moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
2448
+ ```
2449
+
2450
+ ### Inherited from
2451
+
2452
+ ```ts
2453
+ QueryableModuleParams.moduleIdentifierTransformers
2454
+ ```
2455
+
2456
+ ***
2457
+
2458
+ ### statusReporter?
2459
+
2460
+ ```ts
2461
+ optional statusReporter?: ModuleStatusReporter;
2462
+ ```
2463
+
2464
+ Optional reporter for broadcasting status changes.
2465
+
2466
+ ### Inherited from
2467
+
2468
+ ```ts
2469
+ QueryableModuleParams.statusReporter
2470
+ ```
2471
+
2472
+ ### <a id="BridgeQueryFunctions"></a>BridgeQueryFunctions
2473
+
2474
+ [**@xyo-network/bridge-model**](#../README)
2475
+
2476
+ ***
2477
+
2478
+ ## Extended by
2479
+
2480
+ - [`BridgeInstance`](#BridgeInstance)
2481
+
2482
+ ## Properties
2483
+
2484
+ ### connect?
2485
+
2486
+ ```ts
2487
+ optional connect?: (id, maxDepth?) => Promisable<BrandedAddress | undefined>;
2488
+ ```
2489
+
2490
+ ### Parameters
2491
+
2492
+ #### id
2493
+
2494
+ `ModuleIdentifier`
2495
+
2496
+ #### maxDepth?
2497
+
2498
+ `number`
2499
+
2500
+ ### Returns
2501
+
2502
+ `Promisable`\<`BrandedAddress` \| `undefined`\>
2503
+
2504
+ ***
2505
+
2506
+ ### disconnect?
2507
+
2508
+ ```ts
2509
+ optional disconnect?: (id, maxDepth?) => Promisable<BrandedAddress | undefined>;
2510
+ ```
2511
+
2512
+ ### Parameters
2513
+
2514
+ #### id
2515
+
2516
+ `ModuleIdentifier`
2517
+
2518
+ #### maxDepth?
2519
+
2520
+ `number`
2521
+
2522
+ ### Returns
2523
+
2524
+ `Promisable`\<`BrandedAddress` \| `undefined`\>
2525
+
2526
+ ***
2527
+
2528
+ ### expose
2529
+
2530
+ ```ts
2531
+ expose: (id, options?) => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
2532
+ ```
2533
+
2534
+ ### Parameters
2535
+
2536
+ #### id
2537
+
2538
+ `ModuleIdentifier`
2539
+
2540
+ #### options?
2541
+
2542
+ [`BridgeExposeOptions`](#BridgeExposeOptions)
2543
+
2544
+ ### Returns
2545
+
2546
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
2547
+
2548
+ ***
2549
+
2550
+ ### unexpose?
2551
+
2552
+ ```ts
2553
+ optional unexpose?: (id, options?) => Promisable<BrandedAddress[]>;
2554
+ ```
2555
+
2556
+ ### Parameters
2557
+
2558
+ #### id
2559
+
2560
+ `ModuleIdentifier`
2561
+
2562
+ #### options?
2563
+
2564
+ [`BridgeUnexposeOptions`](#BridgeUnexposeOptions)
2565
+
2566
+ ### Returns
2567
+
2568
+ `Promisable`\<`BrandedAddress`[]\>
2569
+
2570
+ ### <a id="BridgeRawQueryFunctions"></a>BridgeRawQueryFunctions
2571
+
2572
+ [**@xyo-network/bridge-model**](#../README)
2573
+
2574
+ ***
2575
+
2576
+ ## Properties
2577
+
2578
+ ### connectQuery?
2579
+
2580
+ ```ts
2581
+ optional connectQuery?: (id, maxDepth?) => Promisable<ModuleQueryResult>;
2582
+ ```
2583
+
2584
+ ### Parameters
2585
+
2586
+ #### id
2587
+
2588
+ `ModuleIdentifier`
2589
+
2590
+ #### maxDepth?
2591
+
2592
+ `number`
2593
+
2594
+ ### Returns
2595
+
2596
+ `Promisable`\<`ModuleQueryResult`\>
2597
+
2598
+ ***
2599
+
2600
+ ### disconnectQuery?
2601
+
2602
+ ```ts
2603
+ optional disconnectQuery?: (id, maxDepth?) => Promisable<ModuleQueryResult>;
2604
+ ```
2605
+
2606
+ ### Parameters
2607
+
2608
+ #### id
2609
+
2610
+ `ModuleIdentifier`
2611
+
2612
+ #### maxDepth?
2613
+
2614
+ `number`
2615
+
2616
+ ### Returns
2617
+
2618
+ `Promisable`\<`ModuleQueryResult`\>
2619
+
2620
+ ***
2621
+
2622
+ ### exposeQuery
2623
+
2624
+ ```ts
2625
+ exposeQuery: (id, options?) => Promisable<ModuleQueryResult>;
2626
+ ```
2627
+
2628
+ ### Parameters
2629
+
2630
+ #### id
2631
+
2632
+ `ModuleIdentifier`
2633
+
2634
+ #### options?
2635
+
2636
+ [`BridgeExposeOptions`](#BridgeExposeOptions)
2637
+
2638
+ ### Returns
2639
+
2640
+ `Promisable`\<`ModuleQueryResult`\>
2641
+
2642
+ ***
2643
+
2644
+ ### unexposeQuery?
2645
+
2646
+ ```ts
2647
+ optional unexposeQuery?: (id, options?) => Promisable<ModuleQueryResult>;
2648
+ ```
2649
+
2650
+ ### Parameters
2651
+
2652
+ #### id
2653
+
2654
+ `ModuleIdentifier`
2655
+
2656
+ #### options?
2657
+
2658
+ [`BridgeUnexposeOptions`](#BridgeUnexposeOptions)
2659
+
2660
+ ### Returns
2661
+
2662
+ `Promisable`\<`ModuleQueryResult`\>
2663
+
2664
+ ### <a id="BridgeUnexposeOptions"></a>BridgeUnexposeOptions
2665
+
2666
+ [**@xyo-network/bridge-model**](#../README)
2667
+
2668
+ ***
2669
+
2670
+ ## Extends
2671
+
2672
+ - [`BridgeExposeOptions`](#BridgeExposeOptions)
2673
+
2674
+ ## Properties
2675
+
2676
+ ### maxDepth?
2677
+
2678
+ ```ts
2679
+ optional maxDepth?: number;
2680
+ ```
2681
+
2682
+ ### Inherited from
2683
+
2684
+ [`BridgeExposeOptions`](#BridgeExposeOptions).[`maxDepth`](BridgeExposeOptions.md#maxdepth)
2685
+
2686
+ ***
2687
+
2688
+ ### required?
2689
+
2690
+ ```ts
2691
+ optional required?: boolean;
2692
+ ```
2693
+
2694
+ ### Inherited from
2695
+
2696
+ [`BridgeExposeOptions`](#BridgeExposeOptions).[`required`](BridgeExposeOptions.md#required)
2697
+
2698
+ ### <a id="ExposedEventData"></a>ExposedEventData
2699
+
2700
+ [**@xyo-network/bridge-model**](#../README)
2701
+
2702
+ ***
2703
+
2704
+ ## Extends
2705
+
2706
+ - `EventData`
2707
+
2708
+ ## Extended by
2709
+
2710
+ - [`BridgeModuleEventData`](#BridgeModuleEventData)
2711
+
2712
+ ## Type Parameters
2713
+
2714
+ ### T
2715
+
2716
+ `T` *extends* `QueryableModule` = `QueryableModule`
2717
+
2718
+ ## Indexable
2719
+
2720
+ ```ts
2721
+ [key: string | number | symbol]: EventArgs
2722
+ ```
2723
+
2724
+ ## Properties
2725
+
2726
+ ### exposed
2727
+
2728
+ ```ts
2729
+ exposed: object & object;
2730
+ ```
2731
+
2732
+ ### Type Declaration
2733
+
2734
+ #### mod
2735
+
2736
+ ```ts
2737
+ mod: T;
2738
+ ```
2739
+
2740
+ ### Type Declaration
2741
+
2742
+ #### modules
2743
+
2744
+ ```ts
2745
+ modules: ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[];
2746
+ ```
2747
+
2748
+ ### <a id="QueryFulfillFinishedEventData"></a>QueryFulfillFinishedEventData
2749
+
2750
+ [**@xyo-network/bridge-model**](#../README)
2751
+
2752
+ ***
2753
+
2754
+ ## Extends
2755
+
2756
+ - `EventData`
2757
+
2758
+ ## Extended by
2759
+
2760
+ - [`BridgeModuleEventData`](#BridgeModuleEventData)
2761
+
2762
+ ## Type Parameters
2763
+
2764
+ ### T
2765
+
2766
+ `T` *extends* `QueryableModule` = `QueryableModule`
2767
+
2768
+ ## Indexable
2769
+
2770
+ ```ts
2771
+ [key: string | number | symbol]: EventArgs
2772
+ ```
2773
+
2774
+ ## Properties
2775
+
2776
+ ### queryFulfillFinished
2777
+
2778
+ ```ts
2779
+ queryFulfillFinished: object & object;
2780
+ ```
2781
+
2782
+ ### Type Declaration
2783
+
2784
+ #### mod
2785
+
2786
+ ```ts
2787
+ mod: T;
2788
+ ```
2789
+
2790
+ ### Type Declaration
2791
+
2792
+ #### payloads?
2793
+
2794
+ ```ts
2795
+ optional payloads?: Payload[];
2796
+ ```
2797
+
2798
+ #### query
2799
+
2800
+ ```ts
2801
+ query: UnsignedQueryBoundWitness;
2802
+ ```
2803
+
2804
+ #### result?
2805
+
2806
+ ```ts
2807
+ optional result?: ModuleQueryResult;
2808
+ ```
2809
+
2810
+ #### status
2811
+
2812
+ ```ts
2813
+ status: "success" | "failure";
2814
+ ```
2815
+
2816
+ ### <a id="QueryFulfillStartedEventData"></a>QueryFulfillStartedEventData
2817
+
2818
+ [**@xyo-network/bridge-model**](#../README)
2819
+
2820
+ ***
2821
+
2822
+ ## Extends
2823
+
2824
+ - `EventData`
2825
+
2826
+ ## Extended by
2827
+
2828
+ - [`BridgeModuleEventData`](#BridgeModuleEventData)
2829
+
2830
+ ## Type Parameters
2831
+
2832
+ ### T
2833
+
2834
+ `T` *extends* `QueryableModule` = `QueryableModule`
2835
+
2836
+ ## Indexable
2837
+
2838
+ ```ts
2839
+ [key: string | number | symbol]: EventArgs
2840
+ ```
2841
+
2842
+ ## Properties
2843
+
2844
+ ### queryFulfillStarted
2845
+
2846
+ ```ts
2847
+ queryFulfillStarted: object & object;
2848
+ ```
2849
+
2850
+ ### Type Declaration
2851
+
2852
+ #### mod
2853
+
2854
+ ```ts
2855
+ mod: T;
2856
+ ```
2857
+
2858
+ ### Type Declaration
2859
+
2860
+ #### payloads?
2861
+
2862
+ ```ts
2863
+ optional payloads?: Payload[];
2864
+ ```
2865
+
2866
+ #### query
2867
+
2868
+ ```ts
2869
+ query: UnsignedQueryBoundWitness;
2870
+ ```
2871
+
2872
+ ### <a id="QuerySendFinishedEventData"></a>QuerySendFinishedEventData
2873
+
2874
+ [**@xyo-network/bridge-model**](#../README)
2875
+
2876
+ ***
2877
+
2878
+ ## Extends
2879
+
2880
+ - `EventData`
2881
+
2882
+ ## Extended by
2883
+
2884
+ - [`BridgeModuleEventData`](#BridgeModuleEventData)
2885
+
2886
+ ## Type Parameters
2887
+
2888
+ ### T
2889
+
2890
+ `T` *extends* `QueryableModule` = `QueryableModule`
2891
+
2892
+ ## Indexable
2893
+
2894
+ ```ts
2895
+ [key: string | number | symbol]: EventArgs
2896
+ ```
2897
+
2898
+ ## Properties
2899
+
2900
+ ### querySendFinished
2901
+
2902
+ ```ts
2903
+ querySendFinished: object & object;
2904
+ ```
2905
+
2906
+ ### Type Declaration
2907
+
2908
+ #### mod
2909
+
2910
+ ```ts
2911
+ mod: T;
2912
+ ```
2913
+
2914
+ ### Type Declaration
2915
+
2916
+ #### payloads?
2917
+
2918
+ ```ts
2919
+ optional payloads?: Payload[];
2920
+ ```
2921
+
2922
+ #### query
2923
+
2924
+ ```ts
2925
+ query: UnsignedQueryBoundWitness;
2926
+ ```
2927
+
2928
+ #### result?
2929
+
2930
+ ```ts
2931
+ optional result?: ModuleQueryResult;
2932
+ ```
2933
+
2934
+ #### status
2935
+
2936
+ ```ts
2937
+ status: "success" | "failure";
2938
+ ```
2939
+
2940
+ ### <a id="QuerySendStartedEventData"></a>QuerySendStartedEventData
2941
+
2942
+ [**@xyo-network/bridge-model**](#../README)
2943
+
2944
+ ***
2945
+
2946
+ ## Extends
2947
+
2948
+ - `EventData`
2949
+
2950
+ ## Extended by
2951
+
2952
+ - [`BridgeModuleEventData`](#BridgeModuleEventData)
2953
+
2954
+ ## Type Parameters
2955
+
2956
+ ### T
2957
+
2958
+ `T` *extends* `QueryableModule` = `QueryableModule`
2959
+
2960
+ ## Indexable
2961
+
2962
+ ```ts
2963
+ [key: string | number | symbol]: EventArgs
2964
+ ```
2965
+
2966
+ ## Properties
2967
+
2968
+ ### querySendStarted
2969
+
2970
+ ```ts
2971
+ querySendStarted: object & object;
2972
+ ```
2973
+
2974
+ ### Type Declaration
2975
+
2976
+ #### mod
2977
+
2978
+ ```ts
2979
+ mod: T;
2980
+ ```
2981
+
2982
+ ### Type Declaration
2983
+
2984
+ #### payloads?
2985
+
2986
+ ```ts
2987
+ optional payloads?: Payload[];
2988
+ ```
2989
+
2990
+ #### query
2991
+
2992
+ ```ts
2993
+ query: UnsignedQueryBoundWitness;
2994
+ ```
2995
+
2996
+ ### <a id="UnexposedEventData"></a>UnexposedEventData
2997
+
2998
+ [**@xyo-network/bridge-model**](#../README)
2999
+
3000
+ ***
3001
+
3002
+ ## Extends
3003
+
3004
+ - `EventData`
3005
+
3006
+ ## Extended by
3007
+
3008
+ - [`BridgeModuleEventData`](#BridgeModuleEventData)
3009
+
3010
+ ## Type Parameters
3011
+
3012
+ ### T
3013
+
3014
+ `T` *extends* `QueryableModule` = `QueryableModule`
3015
+
3016
+ ## Indexable
3017
+
3018
+ ```ts
3019
+ [key: string | number | symbol]: EventArgs
3020
+ ```
3021
+
3022
+ ## Properties
3023
+
3024
+ ### unexposed
3025
+
3026
+ ```ts
3027
+ unexposed: object & object;
3028
+ ```
3029
+
3030
+ ### Type Declaration
3031
+
3032
+ #### mod
3033
+
3034
+ ```ts
3035
+ mod: T;
3036
+ ```
3037
+
3038
+ ### Type Declaration
3039
+
3040
+ #### modules
3041
+
3042
+ ```ts
3043
+ modules: ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[];
3044
+ ```
3045
+
3046
+ ### type-aliases
3047
+
3048
+ ### <a id="AttachableBridgeInstanceTypeCheck"></a>AttachableBridgeInstanceTypeCheck
3049
+
3050
+ [**@xyo-network/bridge-model**](#../README)
3051
+
3052
+ ***
3053
+
3054
+ ```ts
3055
+ type AttachableBridgeInstanceTypeCheck<T> = TypeCheck<T>;
3056
+ ```
3057
+
3058
+ ## Type Parameters
3059
+
3060
+ ### T
3061
+
3062
+ `T` *extends* [`AttachableBridgeInstance`](#../interfaces/AttachableBridgeInstance) = [`AttachableBridgeInstance`](#../interfaces/AttachableBridgeInstance)
3063
+
3064
+ ### <a id="BridgeClientConfig"></a>BridgeClientConfig
3065
+
3066
+ [**@xyo-network/bridge-model**](#../README)
3067
+
3068
+ ***
3069
+
3070
+ ```ts
3071
+ type BridgeClientConfig = object;
3072
+ ```
3073
+
3074
+ ## Properties
3075
+
3076
+ ### cache?
3077
+
3078
+ ```ts
3079
+ optional cache?: CacheConfig | true;
3080
+ ```
3081
+
3082
+ ***
3083
+
3084
+ ### discoverRoots?
3085
+
3086
+ ```ts
3087
+ optional discoverRoots?: "start" | "lazy";
3088
+ ```
3089
+
3090
+ ***
3091
+
3092
+ ### maxDepth?
3093
+
3094
+ ```ts
3095
+ optional maxDepth?: number;
3096
+ ```
3097
+
3098
+ ### <a id="BridgeConfig"></a>BridgeConfig
3099
+
3100
+ [**@xyo-network/bridge-model**](#../README)
3101
+
3102
+ ***
3103
+
3104
+ ```ts
3105
+ type BridgeConfig<TConfig, TSchema, TClient, THost> = ModuleConfig<WithAdditional<{
3106
+ client?: WithAdditional<BridgeClientConfig, TClient>;
3107
+ host?: WithAdditional<BridgeHostConfig, THost>;
3108
+ schema: TConfig extends Payload ? TConfig["schema"] : BridgeConfigSchema;
3109
+ }, TConfig>, TSchema>;
3110
+ ```
3111
+
3112
+ ## Type Parameters
3113
+
3114
+ ### TConfig
3115
+
3116
+ `TConfig` *extends* `Payload` \| `EmptyObject` \| `void` = `void`
3117
+
3118
+ ### TSchema
3119
+
3120
+ `TSchema` *extends* `Schema` \| `void` = `void`
3121
+
3122
+ ### TClient
3123
+
3124
+ `TClient` *extends* `EmptyObject` \| `void` = `void`
3125
+
3126
+ ### THost
3127
+
3128
+ `THost` *extends* `EmptyObject` \| `void` = `void`
3129
+
3130
+ ### <a id="BridgeConfigSchema"></a>BridgeConfigSchema
3131
+
3132
+ [**@xyo-network/bridge-model**](#../README)
3133
+
3134
+ ***
3135
+
3136
+ ```ts
3137
+ type BridgeConfigSchema = typeof BridgeConfigSchema;
3138
+ ```
3139
+
3140
+ ### <a id="BridgeConnectQuery"></a>BridgeConnectQuery
3141
+
3142
+ [**@xyo-network/bridge-model**](#../README)
3143
+
3144
+ ***
3145
+
3146
+ ```ts
3147
+ type BridgeConnectQuery = Query<{
3148
+ id?: ModuleIdentifier;
3149
+ maxDepth?: number;
3150
+ schema: BridgeConnectQuerySchema;
3151
+ }>;
3152
+ ```
3153
+
3154
+ ### <a id="BridgeConnectQuerySchema"></a>BridgeConnectQuerySchema
3155
+
3156
+ [**@xyo-network/bridge-model**](#../README)
3157
+
3158
+ ***
3159
+
3160
+ ```ts
3161
+ type BridgeConnectQuerySchema = typeof BridgeConnectQuerySchema;
3162
+ ```
3163
+
3164
+ ### <a id="BridgeDisconnectQuery"></a>BridgeDisconnectQuery
3165
+
3166
+ [**@xyo-network/bridge-model**](#../README)
3167
+
3168
+ ***
3169
+
3170
+ ```ts
3171
+ type BridgeDisconnectQuery = Query<{
3172
+ id?: ModuleIdentifier;
3173
+ maxDepth?: number;
3174
+ schema: BridgeDisconnectQuerySchema;
3175
+ }>;
3176
+ ```
3177
+
3178
+ ### <a id="BridgeDisconnectQuerySchema"></a>BridgeDisconnectQuerySchema
3179
+
3180
+ [**@xyo-network/bridge-model**](#../README)
3181
+
3182
+ ***
3183
+
3184
+ ```ts
3185
+ type BridgeDisconnectQuerySchema = typeof BridgeDisconnectQuerySchema;
3186
+ ```
3187
+
3188
+ ### <a id="BridgeExposeQuery"></a>BridgeExposeQuery
3189
+
3190
+ [**@xyo-network/bridge-model**](#../README)
3191
+
3192
+ ***
3193
+
3194
+ ```ts
3195
+ type BridgeExposeQuery = Query<void, BridgeExposeQuerySchema>;
3196
+ ```
3197
+
3198
+ ### <a id="BridgeExposeQuerySchema"></a>BridgeExposeQuerySchema
3199
+
3200
+ [**@xyo-network/bridge-model**](#../README)
3201
+
3202
+ ***
3203
+
3204
+ ```ts
3205
+ type BridgeExposeQuerySchema = typeof BridgeExposeQuerySchema;
3206
+ ```
3207
+
3208
+ ### <a id="BridgeHostConfig"></a>BridgeHostConfig
3209
+
3210
+ [**@xyo-network/bridge-model**](#../README)
3211
+
3212
+ ***
3213
+
3214
+ ```ts
3215
+ type BridgeHostConfig = object;
3216
+ ```
3217
+
3218
+ ## Properties
3219
+
3220
+ ### cache?
3221
+
3222
+ ```ts
3223
+ optional cache?: CacheConfig | true;
3224
+ ```
3225
+
3226
+ ***
3227
+
3228
+ ### maxDepth?
3229
+
3230
+ ```ts
3231
+ optional maxDepth?: number;
3232
+ ```
3233
+
3234
+ ### <a id="BridgeModuleQueries"></a>BridgeModuleQueries
3235
+
3236
+ [**@xyo-network/bridge-model**](#../README)
3237
+
3238
+ ***
3239
+
3240
+ ```ts
3241
+ type BridgeModuleQueries = ModuleQueries | BridgeQueries;
3242
+ ```
3243
+
3244
+ ### <a id="BridgeQueries"></a>BridgeQueries
3245
+
3246
+ [**@xyo-network/bridge-model**](#../README)
3247
+
3248
+ ***
3249
+
3250
+ ```ts
3251
+ type BridgeQueries =
3252
+ | BridgeConnectQuery
3253
+ | BridgeDisconnectQuery
3254
+ | BridgeExposeQuery
3255
+ | BridgeUnexposeQuery;
3256
+ ```
3257
+
3258
+ ### <a id="BridgeUnexposeQuery"></a>BridgeUnexposeQuery
3259
+
3260
+ [**@xyo-network/bridge-model**](#../README)
3261
+
3262
+ ***
3263
+
3264
+ ```ts
3265
+ type BridgeUnexposeQuery = Query<void, BridgeUnexposeQuerySchema>;
3266
+ ```
3267
+
3268
+ ### <a id="BridgeUnexposeQuerySchema"></a>BridgeUnexposeQuerySchema
3269
+
3270
+ [**@xyo-network/bridge-model**](#../README)
3271
+
3272
+ ***
3273
+
3274
+ ```ts
3275
+ type BridgeUnexposeQuerySchema = typeof BridgeUnexposeQuerySchema;
3276
+ ```
3277
+
3278
+ ### <a id="ExposedEventArgs"></a>ExposedEventArgs
3279
+
3280
+ [**@xyo-network/bridge-model**](#../README)
3281
+
3282
+ ***
3283
+
3284
+ ```ts
3285
+ type ExposedEventArgs<T> = ModuleEventArgs<T, {
3286
+ modules: ModuleInstance[];
3287
+ }>;
3288
+ ```
3289
+
3290
+ ## Type Parameters
3291
+
3292
+ ### T
3293
+
3294
+ `T` *extends* `QueryableModule` = `QueryableModule`
3295
+
3296
+ ### <a id="ModuleFilterPayload"></a>ModuleFilterPayload
3297
+
3298
+ [**@xyo-network/bridge-model**](#../README)
3299
+
3300
+ ***
3301
+
3302
+ ```ts
3303
+ type ModuleFilterPayload = Payload<object & BridgeExposeOptions, ModuleFilterPayloadSchema>;
3304
+ ```
3305
+
3306
+ ### <a id="ModuleFilterPayloadSchema"></a>ModuleFilterPayloadSchema
3307
+
3308
+ [**@xyo-network/bridge-model**](#../README)
3309
+
3310
+ ***
3311
+
3312
+ ```ts
3313
+ type ModuleFilterPayloadSchema = typeof ModuleFilterPayloadSchema;
3314
+ ```
3315
+
3316
+ ### <a id="QueryFulfillFinishedEventArgs"></a>QueryFulfillFinishedEventArgs
3317
+
3318
+ [**@xyo-network/bridge-model**](#../README)
3319
+
3320
+ ***
3321
+
3322
+ ```ts
3323
+ type QueryFulfillFinishedEventArgs<T> = ModuleEventArgs<T, {
3324
+ payloads?: Payload[];
3325
+ query: QueryBoundWitness;
3326
+ result?: ModuleQueryResult;
3327
+ status: "success" | "failure";
3328
+ }>;
3329
+ ```
3330
+
3331
+ ## Type Parameters
3332
+
3333
+ ### T
3334
+
3335
+ `T` *extends* `QueryableModule` = `QueryableModule`
3336
+
3337
+ ### <a id="QueryFulfillStartedEventArgs"></a>QueryFulfillStartedEventArgs
3338
+
3339
+ [**@xyo-network/bridge-model**](#../README)
3340
+
3341
+ ***
3342
+
3343
+ ```ts
3344
+ type QueryFulfillStartedEventArgs<T> = ModuleEventArgs<T, {
3345
+ payloads?: Payload[];
3346
+ query: QueryBoundWitness;
3347
+ }>;
3348
+ ```
3349
+
3350
+ ## Type Parameters
3351
+
3352
+ ### T
3353
+
3354
+ `T` *extends* `QueryableModule` = `QueryableModule`
3355
+
3356
+ ### <a id="QuerySendFinishedEventArgs"></a>QuerySendFinishedEventArgs
3357
+
3358
+ [**@xyo-network/bridge-model**](#../README)
3359
+
3360
+ ***
3361
+
3362
+ ```ts
3363
+ type QuerySendFinishedEventArgs<T> = ModuleEventArgs<T, {
3364
+ payloads?: Payload[];
3365
+ query: QueryBoundWitness;
3366
+ result?: ModuleQueryResult;
3367
+ status: "success" | "failure";
3368
+ }>;
3369
+ ```
3370
+
3371
+ ## Type Parameters
3372
+
3373
+ ### T
3374
+
3375
+ `T` *extends* `QueryableModule` = `QueryableModule`
3376
+
3377
+ ### <a id="QuerySendStartedEventArgs"></a>QuerySendStartedEventArgs
3378
+
3379
+ [**@xyo-network/bridge-model**](#../README)
3380
+
3381
+ ***
3382
+
3383
+ ```ts
3384
+ type QuerySendStartedEventArgs<T> = ModuleEventArgs<T, {
3385
+ payloads?: Payload[];
3386
+ query: QueryBoundWitness;
3387
+ }>;
3388
+ ```
3389
+
3390
+ ## Type Parameters
3391
+
3392
+ ### T
3393
+
3394
+ `T` *extends* `QueryableModule` = `QueryableModule`
3395
+
3396
+ ### <a id="UnexposedEventArgs"></a>UnexposedEventArgs
3397
+
3398
+ [**@xyo-network/bridge-model**](#../README)
3399
+
3400
+ ***
3401
+
3402
+ ```ts
3403
+ type UnexposedEventArgs<T> = ModuleEventArgs<T, {
3404
+ modules: ModuleInstance[];
3405
+ }>;
3406
+ ```
3407
+
3408
+ ## Type Parameters
3409
+
3410
+ ### T
3411
+
3412
+ `T` *extends* `QueryableModule` = `QueryableModule`
3413
+
3414
+ ### variables
3415
+
3416
+ ### <a id="BridgeConfigSchema"></a>BridgeConfigSchema
3417
+
3418
+ [**@xyo-network/bridge-model**](#../README)
3419
+
3420
+ ***
3421
+
3422
+ ```ts
3423
+ const BridgeConfigSchema: "network.xyo.bridge.config" & object;
3424
+ ```
3425
+
3426
+ ## Type Declaration
3427
+
3428
+ ### \_\_schema
3429
+
3430
+ ```ts
3431
+ readonly __schema: true;
3432
+ ```
3433
+
3434
+ ### <a id="BridgeConnectQuerySchema"></a>BridgeConnectQuerySchema
3435
+
3436
+ [**@xyo-network/bridge-model**](#../README)
3437
+
3438
+ ***
3439
+
3440
+ ```ts
3441
+ const BridgeConnectQuerySchema: "network.xyo.query.bridge.connect" & object;
3442
+ ```
3443
+
3444
+ ## Type Declaration
3445
+
3446
+ ### \_\_schema
3447
+
3448
+ ```ts
3449
+ readonly __schema: true;
3450
+ ```
3451
+
3452
+ ### <a id="BridgeDisconnectQuerySchema"></a>BridgeDisconnectQuerySchema
3453
+
3454
+ [**@xyo-network/bridge-model**](#../README)
3455
+
3456
+ ***
3457
+
3458
+ ```ts
3459
+ const BridgeDisconnectQuerySchema: "network.xyo.query.bridge.disconnect" & object;
3460
+ ```
3461
+
3462
+ ## Type Declaration
3463
+
3464
+ ### \_\_schema
3465
+
3466
+ ```ts
3467
+ readonly __schema: true;
3468
+ ```
3469
+
3470
+ ### <a id="BridgeExposeQuerySchema"></a>BridgeExposeQuerySchema
3471
+
3472
+ [**@xyo-network/bridge-model**](#../README)
3473
+
3474
+ ***
3475
+
3476
+ ```ts
3477
+ const BridgeExposeQuerySchema: "network.xyo.query.bridge.expose" & object;
3478
+ ```
3479
+
3480
+ ## Type Declaration
3481
+
3482
+ ### \_\_schema
3483
+
3484
+ ```ts
3485
+ readonly __schema: true;
3486
+ ```
3487
+
3488
+ ### <a id="BridgeUnexposeQuerySchema"></a>BridgeUnexposeQuerySchema
3489
+
3490
+ [**@xyo-network/bridge-model**](#../README)
3491
+
3492
+ ***
3493
+
3494
+ ```ts
3495
+ const BridgeUnexposeQuerySchema: "network.xyo.query.bridge.unexpose" & object;
3496
+ ```
3497
+
3498
+ ## Type Declaration
3499
+
3500
+ ### \_\_schema
3501
+
3502
+ ```ts
3503
+ readonly __schema: true;
3504
+ ```
3505
+
3506
+ ### <a id="ModuleFilterPayloadSchema"></a>ModuleFilterPayloadSchema
3507
+
3508
+ [**@xyo-network/bridge-model**](#../README)
3509
+
3510
+ ***
3511
+
3512
+ ```ts
3513
+ const ModuleFilterPayloadSchema: "network.xyo.module.filter" & object;
3514
+ ```
3515
+
3516
+ ## Type Declaration
3517
+
3518
+ ### \_\_schema
3519
+
3520
+ ```ts
3521
+ readonly __schema: true;
3522
+ ```
3523
+
3524
+ ### <a id="asAttachableBridgeInstance"></a>asAttachableBridgeInstance
3525
+
3526
+ [**@xyo-network/bridge-model**](#../README)
3527
+
3528
+ ***
3529
+
3530
+ ```ts
3531
+ const asAttachableBridgeInstance: AsTypeFunction<AttachableBridgeInstance<BridgeParams<AnyConfigSchema<BridgeConfig>>, BridgeModuleEventData>>;
3532
+ ```
3533
+
3534
+ ### <a id="asBridgeInstance"></a>asBridgeInstance
3535
+
3536
+ [**@xyo-network/bridge-model**](#../README)
3537
+
3538
+ ***
3539
+
3540
+ ```ts
3541
+ const asBridgeInstance: AsTypeFunction<BridgeInstance<BridgeParams<AnyConfigSchema<BridgeConfig>>, BridgeModuleEventData>>;
3542
+ ```
3543
+
3544
+ ### <a id="asBridgeModule"></a>asBridgeModule
3545
+
3546
+ [**@xyo-network/bridge-model**](#../README)
3547
+
3548
+ ***
3549
+
3550
+ ```ts
3551
+ const asBridgeModule: AsTypeFunction<BridgeModule<BridgeParams<AnyConfigSchema<BridgeConfig>>, BridgeModuleEventData>>;
3552
+ ```
3553
+
3554
+ ### <a id="isAttachableBridgeInstance"></a>isAttachableBridgeInstance
3555
+
3556
+ [**@xyo-network/bridge-model**](#../README)
3557
+
3558
+ ***
3559
+
3560
+ ```ts
3561
+ const isAttachableBridgeInstance: TypeCheck<AttachableBridgeInstance>;
3562
+ ```
3563
+
3564
+ ### <a id="isBridgeInstance"></a>isBridgeInstance
3565
+
3566
+ [**@xyo-network/bridge-model**](#../README)
3567
+
3568
+ ***
3569
+
3570
+ ```ts
3571
+ const isBridgeInstance: TypeCheck<BridgeInstance<BridgeParams<AnyConfigSchema<BridgeConfig>>, BridgeModuleEventData>>;
3572
+ ```
3573
+
3574
+ ### <a id="isBridgeModule"></a>isBridgeModule
3575
+
3576
+ [**@xyo-network/bridge-model**](#../README)
3577
+
3578
+ ***
3579
+
3580
+ ```ts
3581
+ const isBridgeModule: QueryableModuleTypeCheck<BridgeModule<BridgeParams<AnyConfigSchema<BridgeConfig>>, BridgeModuleEventData>>;
3582
+ ```
3583
+
3584
+ ### <a id="requiredAttachableBridgeInstanceFunctions"></a>requiredAttachableBridgeInstanceFunctions
3585
+
3586
+ [**@xyo-network/bridge-model**](#../README)
3587
+
3588
+ ***
3589
+
3590
+ ```ts
3591
+ const requiredAttachableBridgeInstanceFunctions: ObjectTypeShape = {};
3592
+ ```
3593
+
3594
+ ### <a id="withBridgeInstance"></a>withBridgeInstance
3595
+
3596
+ [**@xyo-network/bridge-model**](#../README)
3597
+
3598
+ ***
3599
+
3600
+ ```ts
3601
+ const withBridgeInstance: <R>(mod, closure) => R | undefined;
3602
+ ```
3603
+
3604
+ ## Type Parameters
3605
+
3606
+ ### R
3607
+
3608
+ `R`
3609
+
3610
+ ## Parameters
3611
+
3612
+ ### mod
3613
+
3614
+ `any`
3615
+
3616
+ ### closure
3617
+
3618
+ (`mod`) => `R`
3619
+
3620
+ ## Returns
3621
+
3622
+ `R` \| `undefined`
3623
+
3624
+ ## Deprecated
3625
+
3626
+ use narrowing instead [ if(is) ]
3627
+
3628
+ ### <a id="withBridgeModule"></a>withBridgeModule
3629
+
3630
+ [**@xyo-network/bridge-model**](#../README)
3631
+
3632
+ ***
3633
+
3634
+ ```ts
3635
+ const withBridgeModule: <R>(mod, closure) => R | undefined;
3636
+ ```
3637
+
3638
+ ## Type Parameters
3639
+
3640
+ ### R
3641
+
3642
+ `R`
3643
+
3644
+ ## Parameters
3645
+
3646
+ ### mod
3647
+
3648
+ `any`
3649
+
3650
+ ### closure
3651
+
3652
+ (`mod`) => `R`
3653
+
3654
+ ## Returns
3655
+
3656
+ `R` \| `undefined`
3657
+
3658
+ ## Deprecated
18
3659
 
19
- ## Credits
3660
+ use narrowing instead [ if(is) ]
20
3661
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
3662
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
3663
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
3664
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/bridge-model.svg
3665
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/bridge-model
3666
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/bridge-model.svg
3667
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE