@xyo-network/diviner-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 +2619 -10
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -1,23 +1,2632 @@
1
+ [![logo][]](https://xyo.network)
2
+
1
3
  # @xyo-network/diviner-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__diviner-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
+ ### diviner
50
+
51
+ ### packages
52
+
53
+ ### model
54
+
55
+ ### .temp-typedoc
56
+
57
+ ### classes
58
+
59
+ ### <a id="IsAttachableDivinerInstanceFactory"></a>IsAttachableDivinerInstanceFactory
60
+
61
+ [**@xyo-network/diviner-model**](#../README)
62
+
63
+ ***
64
+
65
+ ## Extends
66
+
67
+ - `IsObjectFactory`\<`T`\>
68
+
69
+ ## Type Parameters
70
+
71
+ ### T
72
+
73
+ `T` *extends* [`AttachableDivinerInstance`](#../interfaces/AttachableDivinerInstance) = [`AttachableDivinerInstance`](#../interfaces/AttachableDivinerInstance)
74
+
75
+ ## Constructors
76
+
77
+ ### Constructor
78
+
79
+ ```ts
80
+ new IsAttachableDivinerInstanceFactory<T>(): IsAttachableDivinerInstanceFactory<T>;
81
+ ```
82
+
83
+ ### Returns
84
+
85
+ `IsAttachableDivinerInstanceFactory`\<`T`\>
86
+
87
+ ### Inherited from
88
+
89
+ ```ts
90
+ IsObjectFactory<T>.constructor
91
+ ```
92
+
93
+ ### interfaces
94
+
95
+ ### <a id="AttachableDivinerInstance"></a>AttachableDivinerInstance
96
+
97
+ [**@xyo-network/diviner-model**](#../README)
98
+
99
+ ***
100
+
101
+ ## Extends
102
+
103
+ - [`DivinerInstance`](#DivinerInstance)\<`TParams`, `TIn`, `TOut`, `TEventData`\>.`AttachableModuleInstance`\<`TParams`, `TEventData`\>
104
+
105
+ ## Type Parameters
106
+
107
+ ### TParams
108
+
109
+ `TParams` *extends* [`DivinerParams`](#DivinerParams) = [`DivinerParams`](#DivinerParams)
110
+
111
+ ### TIn
112
+
113
+ `TIn` *extends* `Payload` = `Payload`
114
+
115
+ ### TOut
116
+
117
+ `TOut` *extends* `Payload` = `Payload`
118
+
119
+ ### TEventData
120
+
121
+ `TEventData` *extends* [`DivinerModuleEventData`](#../type-aliases/DivinerModuleEventData) = [`DivinerModuleEventData`](#../type-aliases/DivinerModuleEventData)
122
+
123
+ ## Properties
124
+
125
+ ### divine
126
+
127
+ ```ts
128
+ divine: (payloads?, retry?) => Promise<DivinerDivineResult<TOut>[]>;
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+ #### payloads?
134
+
135
+ `TIn`[]
136
+
137
+ #### retry?
138
+
139
+ `RetryConfig`
140
+
141
+ ### Returns
142
+
143
+ `Promise`\<[`DivinerDivineResult`](#../type-aliases/DivinerDivineResult)\<`TOut`\>[]\>
144
+
145
+ ### Inherited from
146
+
147
+ [`DivinerInstance`](#DivinerInstance).[`divine`](DivinerInstance.md#divine)
148
+
149
+ ***
150
+
151
+ ### divineQuery
152
+
153
+ ```ts
154
+ divineQuery: (payloads?, account?, retry?) => Promise<ModuleQueryResult<TOut>>;
155
+ ```
156
+
157
+ ### Parameters
158
+
159
+ #### payloads?
160
+
161
+ `TIn`[]
162
+
163
+ #### account?
164
+
165
+ `AccountInstance`
166
+
167
+ #### retry?
168
+
169
+ `RetryConfig`
170
+
171
+ ### Returns
172
+
173
+ `Promise`\<`ModuleQueryResult`\<`TOut`\>\>
174
+
175
+ ### Inherited from
176
+
177
+ [`DivinerInstance`](#DivinerInstance).[`divineQuery`](DivinerInstance.md#divinequery)
178
+
179
+ ***
180
+
181
+ ### address
182
+
183
+ ```ts
184
+ address: BrandedAddress;
185
+ ```
186
+
187
+ ### Inherited from
188
+
189
+ [`DivinerInstance`](#DivinerInstance).[`address`](DivinerInstance.md#address)
190
+
191
+ ***
192
+
193
+ ### config
194
+
195
+ ```ts
196
+ config: TParams["config"];
197
+ ```
198
+
199
+ ### Inherited from
200
+
201
+ [`DivinerInstance`](#DivinerInstance).[`config`](DivinerInstance.md#config)
202
+
203
+ ***
204
+
205
+ ### id
206
+
207
+ ```ts
208
+ id: string;
209
+ ```
210
+
211
+ The name (if specified) or address of the module
212
+
213
+ ### Inherited from
214
+
215
+ [`DivinerInstance`](#DivinerInstance).[`id`](DivinerInstance.md#id)
216
+
217
+ ***
218
+
219
+ ### modName?
220
+
221
+ ```ts
222
+ optional modName?: string;
223
+ ```
224
+
225
+ ### Inherited from
226
+
227
+ [`DivinerInstance`](#DivinerInstance).[`modName`](DivinerInstance.md#modname)
228
+
229
+ ***
230
+
231
+ ### params
232
+
233
+ ```ts
234
+ params: TParams;
235
+ ```
236
+
237
+ ### Inherited from
238
+
239
+ [`DivinerInstance`](#DivinerInstance).[`params`](DivinerInstance.md#params)
240
+
241
+ ***
242
+
243
+ ### previousHash
244
+
245
+ ```ts
246
+ previousHash: () => Promisable<string | undefined>;
247
+ ```
248
+
249
+ ### Returns
250
+
251
+ `Promisable`\<`string` \| `undefined`\>
252
+
253
+ ### Inherited from
254
+
255
+ [`DivinerInstance`](#DivinerInstance).[`previousHash`](DivinerInstance.md#previoushash)
256
+
257
+ ***
258
+
259
+ ### queries
260
+
261
+ ```ts
262
+ queries: string[];
263
+ ```
264
+
265
+ ### Inherited from
266
+
267
+ [`DivinerInstance`](#DivinerInstance).[`queries`](DivinerInstance.md#queries)
268
+
269
+ ***
270
+
271
+ ### query
272
+
273
+ ```ts
274
+ query: <T, TConf>(query, payloads?, queryConfig?) => Promisable<ModuleQueryResult>;
275
+ ```
276
+
277
+ ### Type Parameters
278
+
279
+ #### T
280
+
281
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
282
+
283
+ #### TConf
284
+
285
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
286
+
287
+ ### Parameters
288
+
289
+ #### query
290
+
291
+ `T`
292
+
293
+ #### payloads?
294
+
295
+ `Payload`[]
296
+
297
+ #### queryConfig?
298
+
299
+ `TConf`
300
+
301
+ ### Returns
302
+
303
+ `Promisable`\<`ModuleQueryResult`\>
304
+
305
+ ### Inherited from
306
+
307
+ [`DivinerInstance`](#DivinerInstance).[`query`](DivinerInstance.md#query)
308
+
309
+ ***
310
+
311
+ ### queryable
312
+
313
+ ```ts
314
+ queryable: <T, TConf>(query, payloads?, queryConfig?) => Promisable<boolean>;
315
+ ```
316
+
317
+ ### Type Parameters
318
+
319
+ #### T
320
+
321
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
322
+
323
+ #### TConf
324
+
325
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
326
+
327
+ ### Parameters
328
+
329
+ #### query
330
+
331
+ `T`
332
+
333
+ #### payloads?
334
+
335
+ `Payload`[]
336
+
337
+ #### queryConfig?
338
+
339
+ `TConf`
340
+
341
+ ### Returns
342
+
343
+ `Promisable`\<`boolean`\>
344
+
345
+ ### Inherited from
346
+
347
+ [`DivinerInstance`](#DivinerInstance).[`queryable`](DivinerInstance.md#queryable)
348
+
349
+ ***
350
+
351
+ ### manifest
352
+
353
+ ```ts
354
+ manifest: (maxDepth?, ignoreAddresses?) => Promisable<ModuleManifestPayload>;
355
+ ```
356
+
357
+ ### Parameters
358
+
359
+ #### maxDepth?
360
+
361
+ `number`
362
+
363
+ #### ignoreAddresses?
364
+
365
+ `BrandedAddress`[]
366
+
367
+ ### Returns
368
+
369
+ `Promisable`\<`ModuleManifestPayload`\>
370
+
371
+ ### Inherited from
372
+
373
+ [`DivinerInstance`](#DivinerInstance).[`manifest`](DivinerInstance.md#manifest)
374
+
375
+ ***
376
+
377
+ ### manifestQuery
378
+
379
+ ```ts
380
+ manifestQuery: (account, maxDepth?, ignoreAddresses?) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
381
+ ```
382
+
383
+ ### Parameters
384
+
385
+ #### account
386
+
387
+ `AccountInstance`
388
+
389
+ #### maxDepth?
390
+
391
+ `number`
392
+
393
+ #### ignoreAddresses?
394
+
395
+ `BrandedAddress`[]
396
+
397
+ ### Returns
398
+
399
+ `Promisable`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
400
+
401
+ ### Inherited from
402
+
403
+ [`DivinerInstance`](#DivinerInstance).[`manifestQuery`](DivinerInstance.md#manifestquery)
404
+
405
+ ***
406
+
407
+ ### moduleAddress
408
+
409
+ ```ts
410
+ moduleAddress: () => Promisable<(AddressPreviousHashPayload | AddressPayload)[]>;
411
+ ```
412
+
413
+ ### Returns
414
+
415
+ `Promisable`\<(`AddressPreviousHashPayload` \| `AddressPayload`)[]\>
416
+
417
+ ### Inherited from
418
+
419
+ [`DivinerInstance`](#DivinerInstance).[`moduleAddress`](DivinerInstance.md#moduleaddress)
420
+
421
+ ***
422
+
423
+ ### state
424
+
425
+ ```ts
426
+ state: () => Promisable<Payload[]>;
427
+ ```
428
+
429
+ ### Returns
430
+
431
+ `Promisable`\<`Payload`[]\>
432
+
433
+ ### Inherited from
434
+
435
+ [`DivinerInstance`](#DivinerInstance).[`state`](DivinerInstance.md#state)
436
+
437
+ ***
438
+
439
+ ### stateQuery
440
+
441
+ ```ts
442
+ stateQuery: (account) => Promisable<ModuleQueryResult>;
443
+ ```
444
+
445
+ ### Parameters
446
+
447
+ #### account
448
+
449
+ `AccountInstance`
450
+
451
+ ### Returns
452
+
453
+ `Promisable`\<`ModuleQueryResult`\>
454
+
455
+ ### Inherited from
456
+
457
+ [`DivinerInstance`](#DivinerInstance).[`stateQuery`](DivinerInstance.md#statequery)
458
+
459
+ ***
460
+
461
+ ### account?
462
+
463
+ ```ts
464
+ optional account?: AccountInstance;
465
+ ```
466
+
467
+ ### Inherited from
468
+
469
+ [`DivinerInstance`](#DivinerInstance).[`account`](DivinerInstance.md#account)
470
+
471
+ ***
472
+
473
+ ### addParent
474
+
475
+ ```ts
476
+ addParent: (mod) => void;
477
+ ```
478
+
479
+ ### Parameters
480
+
481
+ #### mod
482
+
483
+ `ModuleInstance`
484
+
485
+ ### Returns
486
+
487
+ `void`
488
+
489
+ ### Inherited from
490
+
491
+ [`DivinerInstance`](#DivinerInstance).[`addParent`](DivinerInstance.md#addparent)
492
+
493
+ ***
494
+
495
+ ### addressCache?
496
+
497
+ ```ts
498
+ optional addressCache?: (direction, includePrivate) => AddressToWeakInstanceCache | undefined;
499
+ ```
500
+
501
+ ### Parameters
502
+
503
+ #### direction
504
+
505
+ `Direction`
506
+
507
+ #### includePrivate
508
+
509
+ `boolean`
510
+
511
+ ### Returns
512
+
513
+ `AddressToWeakInstanceCache` \| `undefined`
514
+
515
+ ### Inherited from
516
+
517
+ [`DivinerInstance`](#DivinerInstance).[`addressCache`](DivinerInstance.md#addresscache)
518
+
519
+ ***
520
+
521
+ ### parents
522
+
523
+ ```ts
524
+ parents: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
525
+ ```
526
+
527
+ ### Returns
528
+
529
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
530
+
531
+ ### Inherited from
532
+
533
+ [`DivinerInstance`](#DivinerInstance).[`parents`](DivinerInstance.md#parents)
534
+
535
+ ***
536
+
537
+ ### privateChildren
538
+
539
+ ```ts
540
+ privateChildren: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
541
+ ```
542
+
543
+ ### Returns
544
+
545
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
546
+
547
+ ### Inherited from
548
+
549
+ [`DivinerInstance`](#DivinerInstance).[`privateChildren`](DivinerInstance.md#privatechildren)
550
+
551
+ ***
552
+
553
+ ### publicChildren
554
+
555
+ ```ts
556
+ publicChildren: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
557
+ ```
558
+
559
+ ### Returns
560
+
561
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
562
+
563
+ ### Inherited from
564
+
565
+ [`DivinerInstance`](#DivinerInstance).[`publicChildren`](DivinerInstance.md#publicchildren)
566
+
567
+ ***
568
+
569
+ ### removeParent
570
+
571
+ ```ts
572
+ removeParent: (address) => void;
573
+ ```
574
+
575
+ ### Parameters
576
+
577
+ #### address
578
+
579
+ `BrandedAddress`
580
+
581
+ ### Returns
582
+
583
+ `void`
584
+
585
+ ### Inherited from
586
+
587
+ [`DivinerInstance`](#DivinerInstance).[`removeParent`](DivinerInstance.md#removeparent)
588
+
589
+ ***
590
+
591
+ ### siblings
592
+
593
+ ```ts
594
+ siblings: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
595
+ ```
596
+
597
+ ### Returns
598
+
599
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
600
+
601
+ ### Inherited from
602
+
603
+ [`DivinerInstance`](#DivinerInstance).[`siblings`](DivinerInstance.md#siblings)
604
+
605
+ ***
606
+
607
+ ### pipeline?
608
+
609
+ ```ts
610
+ readonly optional pipeline?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
611
+ ```
612
+
613
+ ### Inherited from
614
+
615
+ [`DivinerInstance`](#DivinerInstance).[`pipeline`](DivinerInstance.md#pipeline)
616
+
617
+ ***
618
+
619
+ ### status
620
+
621
+ ```ts
622
+ readonly status: ModuleStatus | null;
623
+ ```
624
+
625
+ ### Inherited from
626
+
627
+ [`DivinerInstance`](#DivinerInstance).[`status`](DivinerInstance.md#status)
628
+
629
+ ***
630
+
631
+ ### priority
632
+
633
+ ```ts
634
+ priority: ObjectResolverPriority;
635
+ ```
636
+
637
+ ### Inherited from
638
+
639
+ [`DivinerInstance`](#DivinerInstance).[`priority`](DivinerInstance.md#priority)
640
+
641
+ ***
642
+
643
+ ### downResolver
644
+
645
+ ```ts
646
+ readonly downResolver: ModuleResolverInstance;
647
+ ```
648
+
649
+ ### Inherited from
650
+
651
+ ```ts
652
+ AttachableModuleInstance.downResolver
653
+ ```
654
+
655
+ ***
656
+
657
+ ### privateResolver
658
+
659
+ ```ts
660
+ readonly privateResolver: ModuleResolverInstance;
661
+ ```
662
+
663
+ ### Inherited from
664
+
665
+ ```ts
666
+ AttachableModuleInstance.privateResolver
667
+ ```
668
+
669
+ ***
670
+
671
+ ### upResolver
672
+
673
+ ```ts
674
+ readonly upResolver: ModuleResolverInstance;
675
+ ```
676
+
677
+ ### Inherited from
678
+
679
+ ```ts
680
+ AttachableModuleInstance.upResolver
681
+ ```
682
+
683
+ ## Methods
684
+
685
+ ### resolve()
686
+
687
+ ### Call Signature
688
+
689
+ ```ts
690
+ resolve<T>(all, options?): Promisable<T[]>;
691
+ ```
692
+
693
+ #### Type Parameters
694
+
695
+ ##### T
696
+
697
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
698
+
699
+ #### Parameters
700
+
701
+ ##### all
702
+
703
+ `"*"`
704
+
705
+ ##### options?
706
+
707
+ `ObjectFilterOptions`\<`T`\>
708
+
709
+ #### Returns
710
+
711
+ `Promisable`\<`T`[]\>
712
+
713
+ #### Inherited from
714
+
715
+ [`DivinerInstance`](#DivinerInstance).[`resolve`](DivinerInstance.md#resolve)
716
+
717
+ ### Call Signature
718
+
719
+ ```ts
720
+ resolve<T>(id, options?): Promisable<T | undefined>;
721
+ ```
722
+
723
+ #### Type Parameters
724
+
725
+ ##### T
726
+
727
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
728
+
729
+ #### Parameters
730
+
731
+ ##### id
732
+
733
+ `ModuleIdentifier`
734
+
735
+ ##### options?
736
+
737
+ `ObjectFilterOptions`\<`T`\>
738
+
739
+ #### Returns
740
+
741
+ `Promisable`\<`T` \| `undefined`\>
742
+
743
+ #### Inherited from
744
+
745
+ [`DivinerInstance`](#DivinerInstance).[`resolve`](DivinerInstance.md#resolve)
746
+
747
+ ### Call Signature
748
+
749
+ ```ts
750
+ resolve<T>(id?, options?): Promisable<T | T[] | undefined>;
751
+ ```
752
+
753
+ #### Type Parameters
754
+
755
+ ##### T
756
+
757
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
758
+
759
+ #### Parameters
760
+
761
+ ##### id?
762
+
763
+ `ModuleIdentifier`
764
+
765
+ ##### options?
766
+
767
+ `ObjectFilterOptions`\<`T`\>
768
+
769
+ #### Returns
770
+
771
+ `Promisable`\<`T` \| `T`[] \| `undefined`\>
772
+
773
+ #### Inherited from
774
+
775
+ [`DivinerInstance`](#DivinerInstance).[`resolve`](DivinerInstance.md#resolve)
776
+
777
+ ***
778
+
779
+ ### resolvePrivate()
780
+
781
+ ### Call Signature
782
+
783
+ ```ts
784
+ resolvePrivate<T>(all, options?): Promise<T[]>;
785
+ ```
786
+
787
+ #### Type Parameters
788
+
789
+ ##### T
790
+
791
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
792
+
793
+ #### Parameters
794
+
795
+ ##### all
796
+
797
+ `"*"`
798
+
799
+ ##### options?
800
+
801
+ `ObjectFilterOptions`\<`T`\>
802
+
803
+ #### Returns
804
+
805
+ `Promise`\<`T`[]\>
806
+
807
+ #### Inherited from
808
+
809
+ [`DivinerInstance`](#DivinerInstance).[`resolvePrivate`](DivinerInstance.md#resolveprivate)
810
+
811
+ ### Call Signature
812
+
813
+ ```ts
814
+ resolvePrivate<T>(id, options?): Promise<T | undefined>;
815
+ ```
816
+
817
+ #### Type Parameters
818
+
819
+ ##### T
820
+
821
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
822
+
823
+ #### Parameters
824
+
825
+ ##### id
826
+
827
+ `ModuleIdentifier`
828
+
829
+ ##### options?
830
+
831
+ `ObjectFilterOptions`\<`T`\>
832
+
833
+ #### Returns
834
+
835
+ `Promise`\<`T` \| `undefined`\>
836
+
837
+ #### Inherited from
838
+
839
+ [`DivinerInstance`](#DivinerInstance).[`resolvePrivate`](DivinerInstance.md#resolveprivate)
840
+
841
+ ### Call Signature
842
+
843
+ ```ts
844
+ resolvePrivate<T>(id, options?): Promise<T | T[] | undefined>;
845
+ ```
846
+
847
+ #### Type Parameters
848
+
849
+ ##### T
850
+
851
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
852
+
853
+ #### Parameters
854
+
855
+ ##### id
856
+
857
+ `ModuleIdentifier`
858
+
859
+ ##### options?
860
+
861
+ `ObjectFilterOptions`\<`T`\>
862
+
863
+ #### Returns
864
+
865
+ `Promise`\<`T` \| `T`[] \| `undefined`\>
866
+
867
+ #### Inherited from
868
+
869
+ [`DivinerInstance`](#DivinerInstance).[`resolvePrivate`](DivinerInstance.md#resolveprivate)
870
+
871
+ ### <a id="DivineEndEventData"></a>DivineEndEventData
872
+
873
+ [**@xyo-network/diviner-model**](#../README)
874
+
875
+ ***
876
+
877
+ ## Extends
878
+
879
+ - `EventData`
880
+
881
+ ## Type Parameters
882
+
883
+ ### T
884
+
885
+ `T` *extends* `QueryableModule` = `QueryableModule`
886
+
887
+ ### TIn
888
+
889
+ `TIn` *extends* `Payload` = `Payload`
890
+
891
+ ### TOut
892
+
893
+ `TOut` *extends* `Payload` = `Payload`
894
+
895
+ ## Indexable
896
+
897
+ ```ts
898
+ [key: string | number | symbol]: EventArgs
899
+ ```
900
+
901
+ ## Properties
902
+
903
+ ### divineEnd
904
+
905
+ ```ts
906
+ divineEnd: object & object;
907
+ ```
908
+
909
+ ### Type Declaration
910
+
911
+ #### mod
912
+
913
+ ```ts
914
+ mod: T;
915
+ ```
916
+
917
+ ### Type Declaration
918
+
919
+ #### errors
920
+
921
+ ```ts
922
+ errors: Error[];
923
+ ```
924
+
925
+ #### inPayloads
926
+
927
+ ```ts
928
+ inPayloads: TIn[];
929
+ ```
930
+
931
+ #### outPayloads
932
+
933
+ ```ts
934
+ outPayloads: TOut[];
935
+ ```
936
+
937
+ ### <a id="DivineStartEventData"></a>DivineStartEventData
938
+
939
+ [**@xyo-network/diviner-model**](#../README)
940
+
941
+ ***
942
+
943
+ ## Extends
944
+
945
+ - `EventData`
946
+
947
+ ## Type Parameters
948
+
949
+ ### T
950
+
951
+ `T` *extends* `QueryableModule` = `QueryableModule`
952
+
953
+ ### TIn
954
+
955
+ `TIn` *extends* `Payload` = `Payload`
956
+
957
+ ## Indexable
958
+
959
+ ```ts
960
+ [key: string | number | symbol]: EventArgs
961
+ ```
962
+
963
+ ## Properties
964
+
965
+ ### divineStart
966
+
967
+ ```ts
968
+ divineStart: object & object;
969
+ ```
970
+
971
+ ### Type Declaration
972
+
973
+ #### mod
974
+
975
+ ```ts
976
+ mod: T;
977
+ ```
978
+
979
+ ### Type Declaration
980
+
981
+ #### inPayloads
982
+
983
+ ```ts
984
+ inPayloads: TIn[];
985
+ ```
986
+
987
+ ### <a id="DivinerInstance"></a>DivinerInstance
988
+
989
+ [**@xyo-network/diviner-model**](#../README)
990
+
991
+ ***
992
+
993
+ ## Extends
994
+
995
+ - [`DivinerModule`](#DivinerModule)\<`TParams`, `TEvents`\>.[`DivinerQueryFunctions`](#DivinerQueryFunctions)\<`TIn`, `TOut`\>.`ModuleInstance`\<`TParams`, `TEvents`\>
996
+
997
+ ## Extended by
998
+
999
+ - [`AttachableDivinerInstance`](#AttachableDivinerInstance)
1000
+
1001
+ ## Type Parameters
1002
+
1003
+ ### TParams
1004
+
1005
+ `TParams` *extends* [`DivinerParams`](#DivinerParams) = [`DivinerParams`](#DivinerParams)
1006
+
1007
+ ### TIn
1008
+
1009
+ `TIn` *extends* `Payload` = `Payload`
1010
+
1011
+ ### TOut
1012
+
1013
+ `TOut` *extends* `Payload` = `Payload`
1014
+
1015
+ ### TEvents
1016
+
1017
+ `TEvents` *extends* [`DivinerModuleEventData`](#../type-aliases/DivinerModuleEventData) = [`DivinerModuleEventData`](#../type-aliases/DivinerModuleEventData)
1018
+
1019
+ ## Properties
1020
+
1021
+ ### divine
1022
+
1023
+ ```ts
1024
+ divine: (payloads?, retry?) => Promise<DivinerDivineResult<TOut>[]>;
1025
+ ```
1026
+
1027
+ ### Parameters
1028
+
1029
+ #### payloads?
1030
+
1031
+ `TIn`[]
1032
+
1033
+ #### retry?
1034
+
1035
+ `RetryConfig`
1036
+
1037
+ ### Returns
1038
+
1039
+ `Promise`\<[`DivinerDivineResult`](#../type-aliases/DivinerDivineResult)\<`TOut`\>[]\>
1040
+
1041
+ ### Inherited from
1042
+
1043
+ [`DivinerQueryFunctions`](#DivinerQueryFunctions).[`divine`](DivinerQueryFunctions.md#divine)
1044
+
1045
+ ***
1046
+
1047
+ ### divineQuery
1048
+
1049
+ ```ts
1050
+ divineQuery: (payloads?, account?, retry?) => Promise<ModuleQueryResult<TOut>>;
1051
+ ```
1052
+
1053
+ ### Parameters
1054
+
1055
+ #### payloads?
1056
+
1057
+ `TIn`[]
1058
+
1059
+ #### account?
1060
+
1061
+ `AccountInstance`
1062
+
1063
+ #### retry?
1064
+
1065
+ `RetryConfig`
1066
+
1067
+ ### Returns
1068
+
1069
+ `Promise`\<`ModuleQueryResult`\<`TOut`\>\>
1070
+
1071
+ ### Inherited from
1072
+
1073
+ [`DivinerQueryFunctions`](#DivinerQueryFunctions).[`divineQuery`](DivinerQueryFunctions.md#divinequery)
1074
+
1075
+ ***
1076
+
1077
+ ### address
1078
+
1079
+ ```ts
1080
+ address: BrandedAddress;
1081
+ ```
1082
+
1083
+ ### Inherited from
1084
+
1085
+ [`DivinerModule`](#DivinerModule).[`address`](DivinerModule.md#address)
1086
+
1087
+ ***
1088
+
1089
+ ### config
1090
+
1091
+ ```ts
1092
+ config: TParams["config"];
1093
+ ```
1094
+
1095
+ ### Inherited from
1096
+
1097
+ [`DivinerModule`](#DivinerModule).[`config`](DivinerModule.md#config)
1098
+
1099
+ ***
1100
+
1101
+ ### id
1102
+
1103
+ ```ts
1104
+ id: string;
1105
+ ```
1106
+
1107
+ The name (if specified) or address of the module
1108
+
1109
+ ### Inherited from
1110
+
1111
+ [`DivinerModule`](#DivinerModule).[`id`](DivinerModule.md#id)
1112
+
1113
+ ***
1114
+
1115
+ ### modName?
1116
+
1117
+ ```ts
1118
+ optional modName?: string;
1119
+ ```
1120
+
1121
+ ### Inherited from
1122
+
1123
+ [`DivinerModule`](#DivinerModule).[`modName`](DivinerModule.md#modname)
1124
+
1125
+ ***
1126
+
1127
+ ### params
1128
+
1129
+ ```ts
1130
+ params: TParams;
1131
+ ```
1132
+
1133
+ ### Inherited from
1134
+
1135
+ [`DivinerModule`](#DivinerModule).[`params`](DivinerModule.md#params)
1136
+
1137
+ ***
1138
+
1139
+ ### previousHash
1140
+
1141
+ ```ts
1142
+ previousHash: () => Promisable<string | undefined>;
1143
+ ```
1144
+
1145
+ ### Returns
1146
+
1147
+ `Promisable`\<`string` \| `undefined`\>
1148
+
1149
+ ### Inherited from
1150
+
1151
+ [`DivinerModule`](#DivinerModule).[`previousHash`](DivinerModule.md#previoushash)
1152
+
1153
+ ***
1154
+
1155
+ ### queries
1156
+
1157
+ ```ts
1158
+ queries: string[];
1159
+ ```
1160
+
1161
+ ### Inherited from
1162
+
1163
+ [`DivinerModule`](#DivinerModule).[`queries`](DivinerModule.md#queries)
1164
+
1165
+ ***
1166
+
1167
+ ### query
1168
+
1169
+ ```ts
1170
+ query: <T, TConf>(query, payloads?, queryConfig?) => Promisable<ModuleQueryResult>;
1171
+ ```
1172
+
1173
+ ### Type Parameters
1174
+
1175
+ #### T
1176
+
1177
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1178
+
1179
+ #### TConf
1180
+
1181
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
1182
+
1183
+ ### Parameters
1184
+
1185
+ #### query
1186
+
1187
+ `T`
1188
+
1189
+ #### payloads?
1190
+
1191
+ `Payload`[]
1192
+
1193
+ #### queryConfig?
1194
+
1195
+ `TConf`
1196
+
1197
+ ### Returns
1198
+
1199
+ `Promisable`\<`ModuleQueryResult`\>
1200
+
1201
+ ### Inherited from
1202
+
1203
+ [`DivinerModule`](#DivinerModule).[`query`](DivinerModule.md#query)
1204
+
1205
+ ***
1206
+
1207
+ ### queryable
1208
+
1209
+ ```ts
1210
+ queryable: <T, TConf>(query, payloads?, queryConfig?) => Promisable<boolean>;
1211
+ ```
1212
+
1213
+ ### Type Parameters
1214
+
1215
+ #### T
1216
+
1217
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1218
+
1219
+ #### TConf
1220
+
1221
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
1222
+
1223
+ ### Parameters
1224
+
1225
+ #### query
1226
+
1227
+ `T`
1228
+
1229
+ #### payloads?
1230
+
1231
+ `Payload`[]
1232
+
1233
+ #### queryConfig?
1234
+
1235
+ `TConf`
1236
+
1237
+ ### Returns
1238
+
1239
+ `Promisable`\<`boolean`\>
1240
+
1241
+ ### Inherited from
1242
+
1243
+ [`DivinerModule`](#DivinerModule).[`queryable`](DivinerModule.md#queryable)
1244
+
1245
+ ***
1246
+
1247
+ ### manifest
1248
+
1249
+ ```ts
1250
+ manifest: (maxDepth?, ignoreAddresses?) => Promisable<ModuleManifestPayload>;
1251
+ ```
1252
+
1253
+ ### Parameters
1254
+
1255
+ #### maxDepth?
1256
+
1257
+ `number`
1258
+
1259
+ #### ignoreAddresses?
1260
+
1261
+ `BrandedAddress`[]
1262
+
1263
+ ### Returns
1264
+
1265
+ `Promisable`\<`ModuleManifestPayload`\>
1266
+
1267
+ ### Inherited from
1268
+
1269
+ ```ts
1270
+ ModuleInstance.manifest
1271
+ ```
1272
+
1273
+ ***
1274
+
1275
+ ### manifestQuery
1276
+
1277
+ ```ts
1278
+ manifestQuery: (account, maxDepth?, ignoreAddresses?) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
1279
+ ```
1280
+
1281
+ ### Parameters
1282
+
1283
+ #### account
1284
+
1285
+ `AccountInstance`
1286
+
1287
+ #### maxDepth?
1288
+
1289
+ `number`
1290
+
1291
+ #### ignoreAddresses?
1292
+
1293
+ `BrandedAddress`[]
1294
+
1295
+ ### Returns
1296
+
1297
+ `Promisable`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
1298
+
1299
+ ### Inherited from
1300
+
1301
+ ```ts
1302
+ ModuleInstance.manifestQuery
1303
+ ```
1304
+
1305
+ ***
1306
+
1307
+ ### moduleAddress
1308
+
1309
+ ```ts
1310
+ moduleAddress: () => Promisable<(AddressPreviousHashPayload | AddressPayload)[]>;
1311
+ ```
1312
+
1313
+ ### Returns
1314
+
1315
+ `Promisable`\<(`AddressPreviousHashPayload` \| `AddressPayload`)[]\>
1316
+
1317
+ ### Inherited from
1318
+
1319
+ ```ts
1320
+ ModuleInstance.moduleAddress
1321
+ ```
1322
+
1323
+ ***
1324
+
1325
+ ### state
1326
+
1327
+ ```ts
1328
+ state: () => Promisable<Payload[]>;
1329
+ ```
1330
+
1331
+ ### Returns
1332
+
1333
+ `Promisable`\<`Payload`[]\>
1334
+
1335
+ ### Inherited from
1336
+
1337
+ ```ts
1338
+ ModuleInstance.state
1339
+ ```
1340
+
1341
+ ***
1342
+
1343
+ ### stateQuery
1344
+
1345
+ ```ts
1346
+ stateQuery: (account) => Promisable<ModuleQueryResult>;
1347
+ ```
1348
+
1349
+ ### Parameters
1350
+
1351
+ #### account
1352
+
1353
+ `AccountInstance`
1354
+
1355
+ ### Returns
1356
+
1357
+ `Promisable`\<`ModuleQueryResult`\>
1358
+
1359
+ ### Inherited from
1360
+
1361
+ ```ts
1362
+ ModuleInstance.stateQuery
1363
+ ```
1364
+
1365
+ ***
1366
+
1367
+ ### account?
1368
+
1369
+ ```ts
1370
+ optional account?: AccountInstance;
1371
+ ```
1372
+
1373
+ ### Inherited from
1374
+
1375
+ ```ts
1376
+ ModuleInstance.account
1377
+ ```
1378
+
1379
+ ***
1380
+
1381
+ ### addParent
1382
+
1383
+ ```ts
1384
+ addParent: (mod) => void;
1385
+ ```
1386
+
1387
+ ### Parameters
1388
+
1389
+ #### mod
1390
+
1391
+ `ModuleInstance`
1392
+
1393
+ ### Returns
1394
+
1395
+ `void`
1396
+
1397
+ ### Inherited from
1398
+
1399
+ ```ts
1400
+ ModuleInstance.addParent
1401
+ ```
1402
+
1403
+ ***
1404
+
1405
+ ### addressCache?
1406
+
1407
+ ```ts
1408
+ optional addressCache?: (direction, includePrivate) => AddressToWeakInstanceCache | undefined;
1409
+ ```
1410
+
1411
+ ### Parameters
1412
+
1413
+ #### direction
1414
+
1415
+ `Direction`
1416
+
1417
+ #### includePrivate
1418
+
1419
+ `boolean`
1420
+
1421
+ ### Returns
1422
+
1423
+ `AddressToWeakInstanceCache` \| `undefined`
1424
+
1425
+ ### Inherited from
1426
+
1427
+ ```ts
1428
+ ModuleInstance.addressCache
1429
+ ```
1430
+
1431
+ ***
1432
+
1433
+ ### parents
1434
+
1435
+ ```ts
1436
+ parents: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1437
+ ```
1438
+
1439
+ ### Returns
1440
+
1441
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1442
+
1443
+ ### Inherited from
1444
+
1445
+ ```ts
1446
+ ModuleInstance.parents
1447
+ ```
1448
+
1449
+ ***
1450
+
1451
+ ### privateChildren
1452
+
1453
+ ```ts
1454
+ privateChildren: () => 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.privateChildren
1465
+ ```
1466
+
1467
+ ***
1468
+
1469
+ ### publicChildren
1470
+
1471
+ ```ts
1472
+ publicChildren: () => 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.publicChildren
1483
+ ```
1484
+
1485
+ ***
1486
+
1487
+ ### removeParent
1488
+
1489
+ ```ts
1490
+ removeParent: (address) => void;
1491
+ ```
1492
+
1493
+ ### Parameters
1494
+
1495
+ #### address
1496
+
1497
+ `BrandedAddress`
1498
+
1499
+ ### Returns
1500
+
1501
+ `void`
1502
+
1503
+ ### Inherited from
1504
+
1505
+ ```ts
1506
+ ModuleInstance.removeParent
1507
+ ```
1508
+
1509
+ ***
1510
+
1511
+ ### siblings
1512
+
1513
+ ```ts
1514
+ siblings: () => Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
1515
+ ```
1516
+
1517
+ ### Returns
1518
+
1519
+ `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
1520
+
1521
+ ### Inherited from
1522
+
1523
+ ```ts
1524
+ ModuleInstance.siblings
1525
+ ```
1526
+
1527
+ ***
1528
+
1529
+ ### pipeline?
1530
+
1531
+ ```ts
1532
+ readonly optional pipeline?: "one-to-one" | "one-to-many" | "many-to-one" | "many-to-many";
1533
+ ```
1534
+
1535
+ ### Inherited from
1536
+
1537
+ ```ts
1538
+ ModuleInstance.pipeline
1539
+ ```
1540
+
1541
+ ***
1542
+
1543
+ ### status
1544
+
1545
+ ```ts
1546
+ readonly status: ModuleStatus | null;
1547
+ ```
1548
+
1549
+ ### Inherited from
1550
+
1551
+ ```ts
1552
+ ModuleInstance.status
1553
+ ```
1554
+
1555
+ ***
1556
+
1557
+ ### priority
1558
+
1559
+ ```ts
1560
+ priority: ObjectResolverPriority;
1561
+ ```
1562
+
1563
+ ### Inherited from
1564
+
1565
+ ```ts
1566
+ ModuleInstance.priority
1567
+ ```
1568
+
1569
+ ## Methods
1570
+
1571
+ ### resolve()
1572
+
1573
+ ### Call Signature
1574
+
1575
+ ```ts
1576
+ resolve<T>(all, options?): Promisable<T[]>;
1577
+ ```
1578
+
1579
+ #### Type Parameters
1580
+
1581
+ ##### T
1582
+
1583
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1584
+
1585
+ #### Parameters
1586
+
1587
+ ##### all
1588
+
1589
+ `"*"`
1590
+
1591
+ ##### options?
1592
+
1593
+ `ObjectFilterOptions`\<`T`\>
1594
+
1595
+ #### Returns
1596
+
1597
+ `Promisable`\<`T`[]\>
1598
+
1599
+ #### Inherited from
1600
+
1601
+ ```ts
1602
+ ModuleInstance.resolve
1603
+ ```
1604
+
1605
+ ### Call Signature
1606
+
1607
+ ```ts
1608
+ resolve<T>(id, options?): Promisable<T | undefined>;
1609
+ ```
1610
+
1611
+ #### Type Parameters
1612
+
1613
+ ##### T
1614
+
1615
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1616
+
1617
+ #### Parameters
1618
+
1619
+ ##### id
1620
+
1621
+ `ModuleIdentifier`
1622
+
1623
+ ##### options?
1624
+
1625
+ `ObjectFilterOptions`\<`T`\>
1626
+
1627
+ #### Returns
1628
+
1629
+ `Promisable`\<`T` \| `undefined`\>
1630
+
1631
+ #### Inherited from
1632
+
1633
+ ```ts
1634
+ ModuleInstance.resolve
1635
+ ```
1636
+
1637
+ ### Call Signature
1638
+
1639
+ ```ts
1640
+ resolve<T>(id?, options?): Promisable<T | T[] | undefined>;
1641
+ ```
1642
+
1643
+ #### Type Parameters
1644
+
1645
+ ##### T
1646
+
1647
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1648
+
1649
+ #### Parameters
1650
+
1651
+ ##### id?
1652
+
1653
+ `ModuleIdentifier`
1654
+
1655
+ ##### options?
1656
+
1657
+ `ObjectFilterOptions`\<`T`\>
1658
+
1659
+ #### Returns
1660
+
1661
+ `Promisable`\<`T` \| `T`[] \| `undefined`\>
1662
+
1663
+ #### Inherited from
1664
+
1665
+ ```ts
1666
+ ModuleInstance.resolve
1667
+ ```
1668
+
1669
+ ***
1670
+
1671
+ ### resolvePrivate()
1672
+
1673
+ ### Call Signature
1674
+
1675
+ ```ts
1676
+ resolvePrivate<T>(all, options?): Promise<T[]>;
1677
+ ```
1678
+
1679
+ #### Type Parameters
1680
+
1681
+ ##### T
1682
+
1683
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1684
+
1685
+ #### Parameters
1686
+
1687
+ ##### all
1688
+
1689
+ `"*"`
1690
+
1691
+ ##### options?
1692
+
1693
+ `ObjectFilterOptions`\<`T`\>
1694
+
1695
+ #### Returns
1696
+
1697
+ `Promise`\<`T`[]\>
1698
+
1699
+ #### Inherited from
1700
+
1701
+ ```ts
1702
+ ModuleInstance.resolvePrivate
1703
+ ```
1704
+
1705
+ ### Call Signature
1706
+
1707
+ ```ts
1708
+ resolvePrivate<T>(id, options?): Promise<T | undefined>;
1709
+ ```
1710
+
1711
+ #### Type Parameters
1712
+
1713
+ ##### T
1714
+
1715
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1716
+
1717
+ #### Parameters
1718
+
1719
+ ##### id
1720
+
1721
+ `ModuleIdentifier`
1722
+
1723
+ ##### options?
1724
+
1725
+ `ObjectFilterOptions`\<`T`\>
1726
+
1727
+ #### Returns
1728
+
1729
+ `Promise`\<`T` \| `undefined`\>
1730
+
1731
+ #### Inherited from
1732
+
1733
+ ```ts
1734
+ ModuleInstance.resolvePrivate
1735
+ ```
1736
+
1737
+ ### Call Signature
1738
+
1739
+ ```ts
1740
+ resolvePrivate<T>(id, options?): Promise<T | T[] | undefined>;
1741
+ ```
1742
+
1743
+ #### Type Parameters
1744
+
1745
+ ##### T
1746
+
1747
+ `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1748
+
1749
+ #### Parameters
1750
+
1751
+ ##### id
1752
+
1753
+ `ModuleIdentifier`
1754
+
1755
+ ##### options?
1756
+
1757
+ `ObjectFilterOptions`\<`T`\>
1758
+
1759
+ #### Returns
1760
+
1761
+ `Promise`\<`T` \| `T`[] \| `undefined`\>
1762
+
1763
+ #### Inherited from
1764
+
1765
+ ```ts
1766
+ ModuleInstance.resolvePrivate
1767
+ ```
1768
+
1769
+ ### <a id="DivinerModule"></a>DivinerModule
1770
+
1771
+ [**@xyo-network/diviner-model**](#../README)
1772
+
1773
+ ***
1774
+
1775
+ ## Extends
1776
+
1777
+ - `QueryableModule`\<`TParams`, `TEvents`\>
1778
+
1779
+ ## Extended by
1780
+
1781
+ - [`DivinerInstance`](#DivinerInstance)
1782
+
1783
+ ## Type Parameters
1784
+
1785
+ ### TParams
1786
+
1787
+ `TParams` *extends* [`DivinerParams`](#DivinerParams) = [`DivinerParams`](#DivinerParams)
1788
+
1789
+ ### TEvents
1790
+
1791
+ `TEvents` *extends* [`DivinerModuleEventData`](#../type-aliases/DivinerModuleEventData) = [`DivinerModuleEventData`](#../type-aliases/DivinerModuleEventData)
1792
+
1793
+ ## Properties
1794
+
1795
+ ### address
1796
+
1797
+ ```ts
1798
+ address: BrandedAddress;
1799
+ ```
1800
+
1801
+ ### Inherited from
1802
+
1803
+ ```ts
1804
+ QueryableModule.address
1805
+ ```
1806
+
1807
+ ***
1808
+
1809
+ ### config
1810
+
1811
+ ```ts
1812
+ config: TParams["config"];
1813
+ ```
1814
+
1815
+ ### Inherited from
1816
+
1817
+ ```ts
1818
+ QueryableModule.config
1819
+ ```
1820
+
1821
+ ***
1822
+
1823
+ ### id
1824
+
1825
+ ```ts
1826
+ id: string;
1827
+ ```
1828
+
1829
+ The name (if specified) or address of the module
1830
+
1831
+ ### Inherited from
1832
+
1833
+ ```ts
1834
+ QueryableModule.id
1835
+ ```
1836
+
1837
+ ***
1838
+
1839
+ ### modName?
1840
+
1841
+ ```ts
1842
+ optional modName?: string;
1843
+ ```
1844
+
1845
+ ### Inherited from
1846
+
1847
+ ```ts
1848
+ QueryableModule.modName
1849
+ ```
1850
+
1851
+ ***
1852
+
1853
+ ### params
1854
+
1855
+ ```ts
1856
+ params: TParams;
1857
+ ```
1858
+
1859
+ ### Inherited from
1860
+
1861
+ ```ts
1862
+ QueryableModule.params
1863
+ ```
1864
+
1865
+ ***
1866
+
1867
+ ### previousHash
1868
+
1869
+ ```ts
1870
+ previousHash: () => Promisable<string | undefined>;
1871
+ ```
1872
+
1873
+ ### Returns
1874
+
1875
+ `Promisable`\<`string` \| `undefined`\>
1876
+
1877
+ ### Inherited from
1878
+
1879
+ ```ts
1880
+ QueryableModule.previousHash
1881
+ ```
1882
+
1883
+ ***
1884
+
1885
+ ### queries
1886
+
1887
+ ```ts
1888
+ queries: string[];
1889
+ ```
1890
+
1891
+ ### Inherited from
1892
+
1893
+ ```ts
1894
+ QueryableModule.queries
1895
+ ```
1896
+
1897
+ ***
1898
+
1899
+ ### query
1900
+
1901
+ ```ts
1902
+ query: <T, TConf>(query, payloads?, queryConfig?) => Promisable<ModuleQueryResult>;
1903
+ ```
1904
+
1905
+ ### Type Parameters
1906
+
1907
+ #### T
1908
+
1909
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1910
+
1911
+ #### TConf
1912
+
1913
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
1914
+
1915
+ ### Parameters
1916
+
1917
+ #### query
1918
+
1919
+ `T`
1920
+
1921
+ #### payloads?
1922
+
1923
+ `Payload`[]
1924
+
1925
+ #### queryConfig?
1926
+
1927
+ `TConf`
1928
+
1929
+ ### Returns
1930
+
1931
+ `Promisable`\<`ModuleQueryResult`\>
1932
+
1933
+ ### Inherited from
1934
+
1935
+ ```ts
1936
+ QueryableModule.query
1937
+ ```
1938
+
1939
+ ***
1940
+
1941
+ ### queryable
1942
+
1943
+ ```ts
1944
+ queryable: <T, TConf>(query, payloads?, queryConfig?) => Promisable<boolean>;
1945
+ ```
1946
+
1947
+ ### Type Parameters
1948
+
1949
+ #### T
1950
+
1951
+ `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1952
+
1953
+ #### TConf
1954
+
1955
+ `TConf` *extends* `ModuleConfig` = `ModuleConfig`
1956
+
1957
+ ### Parameters
1958
+
1959
+ #### query
1960
+
1961
+ `T`
1962
+
1963
+ #### payloads?
1964
+
1965
+ `Payload`[]
1966
+
1967
+ #### queryConfig?
1968
+
1969
+ `TConf`
1970
+
1971
+ ### Returns
1972
+
1973
+ `Promisable`\<`boolean`\>
1974
+
1975
+ ### Inherited from
1976
+
1977
+ ```ts
1978
+ QueryableModule.queryable
1979
+ ```
1980
+
1981
+ ### <a id="DivinerParams"></a>DivinerParams
1982
+
1983
+ [**@xyo-network/diviner-model**](#../README)
1984
+
1985
+ ***
1986
+
1987
+ ## Extends
1988
+
1989
+ - `QueryableModuleParams`\<`TConfig`\>
1990
+
1991
+ ## Type Parameters
1992
+
1993
+ ### TConfig
1994
+
1995
+ `TConfig` *extends* `AnyConfigSchema`\<[`DivinerConfig`](#../type-aliases/DivinerConfig)\> = `AnyConfigSchema`\<[`DivinerConfig`](#../type-aliases/DivinerConfig)\>
1996
+
1997
+ ## Properties
1998
+
1999
+ ### account?
2000
+
2001
+ ```ts
2002
+ optional account?: AccountInstance | "random";
2003
+ ```
2004
+
2005
+ ### Inherited from
2006
+
2007
+ ```ts
2008
+ QueryableModuleParams.account
2009
+ ```
2010
+
2011
+ ***
2012
+
2013
+ ### addToResolvers?
2014
+
2015
+ ```ts
2016
+ optional addToResolvers?: boolean;
2017
+ ```
2018
+
2019
+ ### Inherited from
2020
+
2021
+ ```ts
2022
+ QueryableModuleParams.addToResolvers
2023
+ ```
2024
+
2025
+ ***
2026
+
2027
+ ### additionalSigners?
2028
+
2029
+ ```ts
2030
+ optional additionalSigners?: AccountInstance[];
2031
+ ```
2032
+
2033
+ ### Inherited from
2034
+
2035
+ ```ts
2036
+ QueryableModuleParams.additionalSigners
2037
+ ```
2038
+
2039
+ ***
2040
+
2041
+ ### allowNameResolution?
2042
+
2043
+ ```ts
2044
+ optional allowNameResolution?: boolean;
2045
+ ```
2046
+
2047
+ ### Inherited from
2048
+
2049
+ ```ts
2050
+ QueryableModuleParams.allowNameResolution
2051
+ ```
2052
+
2053
+ ***
2054
+
2055
+ ### config
2056
+
2057
+ ```ts
2058
+ config: Partial<TConfig>;
2059
+ ```
2060
+
2061
+ ### Inherited from
2062
+
2063
+ ```ts
2064
+ QueryableModuleParams.config
2065
+ ```
2066
+
2067
+ ***
2068
+
2069
+ ### ephemeralQueryAccountEnabled?
2070
+
2071
+ ```ts
2072
+ optional ephemeralQueryAccountEnabled?: boolean;
2073
+ ```
2074
+
2075
+ ### Inherited from
2076
+
2077
+ ```ts
2078
+ QueryableModuleParams.ephemeralQueryAccountEnabled
2079
+ ```
2080
+
2081
+ ***
2082
+
2083
+ ### moduleIdentifierTransformers?
2084
+
2085
+ ```ts
2086
+ optional moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
2087
+ ```
2088
+
2089
+ ### Inherited from
2090
+
2091
+ ```ts
2092
+ QueryableModuleParams.moduleIdentifierTransformers
2093
+ ```
2094
+
2095
+ ***
2096
+
2097
+ ### statusReporter?
2098
+
2099
+ ```ts
2100
+ optional statusReporter?: ModuleStatusReporter;
2101
+ ```
2102
+
2103
+ Optional reporter for broadcasting status changes.
2104
+
2105
+ ### Inherited from
2106
+
2107
+ ```ts
2108
+ QueryableModuleParams.statusReporter
2109
+ ```
2110
+
2111
+ ### <a id="DivinerQueryFunctions"></a>DivinerQueryFunctions
2112
+
2113
+ [**@xyo-network/diviner-model**](#../README)
2114
+
2115
+ ***
2116
+
2117
+ ## Extended by
2118
+
2119
+ - [`DivinerInstance`](#DivinerInstance)
2120
+
2121
+ ## Type Parameters
2122
+
2123
+ ### TIn
2124
+
2125
+ `TIn` *extends* `Payload` = `Payload`
2126
+
2127
+ ### TOut
2128
+
2129
+ `TOut` *extends* `Payload` = `Payload`
2130
+
2131
+ ## Properties
2132
+
2133
+ ### divine
2134
+
2135
+ ```ts
2136
+ divine: (payloads?, retry?) => Promise<DivinerDivineResult<TOut>[]>;
2137
+ ```
2138
+
2139
+ ### Parameters
2140
+
2141
+ #### payloads?
2142
+
2143
+ `TIn`[]
2144
+
2145
+ #### retry?
2146
+
2147
+ `RetryConfig`
2148
+
2149
+ ### Returns
2150
+
2151
+ `Promise`\<[`DivinerDivineResult`](#../type-aliases/DivinerDivineResult)\<`TOut`\>[]\>
2152
+
2153
+ ***
2154
+
2155
+ ### divineQuery
2156
+
2157
+ ```ts
2158
+ divineQuery: (payloads?, account?, retry?) => Promise<ModuleQueryResult<TOut>>;
2159
+ ```
2160
+
2161
+ ### Parameters
2162
+
2163
+ #### payloads?
2164
+
2165
+ `TIn`[]
2166
+
2167
+ #### account?
2168
+
2169
+ `AccountInstance`
2170
+
2171
+ #### retry?
2172
+
2173
+ `RetryConfig`
2174
+
2175
+ ### Returns
2176
+
2177
+ `Promise`\<`ModuleQueryResult`\<`TOut`\>\>
2178
+
2179
+ ### <a id="ModuleEventSubscription"></a>ModuleEventSubscription
2180
+
2181
+ [**@xyo-network/diviner-model**](#../README)
2182
+
2183
+ ***
2184
+
2185
+ ## Properties
2186
+
2187
+ ### sourceEvent
2188
+
2189
+ ```ts
2190
+ sourceEvent: string;
2191
+ ```
2192
+
2193
+ ***
2194
+
2195
+ ### sourceModule
2196
+
2197
+ ```ts
2198
+ sourceModule: ModuleIdentifier;
2199
+ ```
2200
+
2201
+ ***
2202
+
2203
+ ### targetModuleFunction?
2204
+
2205
+ ```ts
2206
+ optional targetModuleFunction?: string;
2207
+ ```
2208
+
2209
+ ### <a id="SearchableStorage"></a>SearchableStorage
2210
+
2211
+ [**@xyo-network/diviner-model**](#../README)
2212
+
2213
+ ***
2214
+
2215
+ Configuration for searchable storage of local state
2216
+
2217
+ ## Properties
2218
+
2219
+ ### archivist
2220
+
2221
+ ```ts
2222
+ archivist: ModuleIdentifier;
2223
+ ```
2224
+
2225
+ Name/Address of the archivist where intermediate communications are stored
2226
+
2227
+ ***
2228
+
2229
+ ### boundWitnessDiviner?
2230
+
2231
+ ```ts
2232
+ optional boundWitnessDiviner?: ModuleIdentifier;
2233
+ ```
2234
+
2235
+ Name/Address of the diviner where intermediate communications are filtered
2236
+
2237
+ ***
2238
+
2239
+ ### payloadDiviner?
2240
+
2241
+ ```ts
2242
+ optional payloadDiviner?: ModuleIdentifier;
2243
+ ```
2244
+
2245
+ Name/Address of the diviner where intermediate communications are filtered
2246
+
2247
+ ### type-aliases
2248
+
2249
+ ### <a id="AttachableDivinerInstanceTypeCheck"></a>AttachableDivinerInstanceTypeCheck
2250
+
2251
+ [**@xyo-network/diviner-model**](#../README)
2252
+
2253
+ ***
2254
+
2255
+ ```ts
2256
+ type AttachableDivinerInstanceTypeCheck<T> = TypeCheck<T>;
2257
+ ```
2258
+
2259
+ ## Type Parameters
2260
+
2261
+ ### T
2262
+
2263
+ `T` *extends* [`AttachableDivinerInstance`](#../interfaces/AttachableDivinerInstance) = [`AttachableDivinerInstance`](#../interfaces/AttachableDivinerInstance)
2264
+
2265
+ ### <a id="DivineEndEventArgs"></a>DivineEndEventArgs
2266
+
2267
+ [**@xyo-network/diviner-model**](#../README)
2268
+
2269
+ ***
2270
+
2271
+ ```ts
2272
+ type DivineEndEventArgs<T, TIn, TOut> = ModuleEventArgs<T, {
2273
+ errors: Error[];
2274
+ inPayloads: TIn[];
2275
+ outPayloads: TOut[];
2276
+ }>;
2277
+ ```
2278
+
2279
+ ## Type Parameters
2280
+
2281
+ ### T
2282
+
2283
+ `T` *extends* `QueryableModule` = `QueryableModule`
2284
+
2285
+ ### TIn
2286
+
2287
+ `TIn` *extends* `Payload` = `Payload`
2288
+
2289
+ ### TOut
2290
+
2291
+ `TOut` *extends* `Payload` = `Payload`
2292
+
2293
+ ### <a id="DivineStartEventArgs"></a>DivineStartEventArgs
2294
+
2295
+ [**@xyo-network/diviner-model**](#../README)
2296
+
2297
+ ***
2298
+
2299
+ ```ts
2300
+ type DivineStartEventArgs<T, TIn> = ModuleEventArgs<T, {
2301
+ inPayloads: TIn[];
2302
+ }>;
2303
+ ```
2304
+
2305
+ ## Type Parameters
2306
+
2307
+ ### T
2308
+
2309
+ `T` *extends* `QueryableModule` = `QueryableModule`
2310
+
2311
+ ### TIn
2312
+
2313
+ `TIn` *extends* `Payload` = `Payload`
2314
+
2315
+ ### <a id="DivinedPayload"></a>DivinedPayload
2316
+
2317
+ [**@xyo-network/diviner-model**](#../README)
2318
+
2319
+ ***
2320
+
2321
+ ```ts
2322
+ type DivinedPayload<T, S> = Payload<WithAdditional<{
2323
+ sources: Hash[];
2324
+ }, T>, S>;
2325
+ ```
2326
+
2327
+ ## Type Parameters
2328
+
2329
+ ### T
2330
+
2331
+ `T` *extends* `void` \| `EmptyObject` \| `WithSchema` = `void`
2332
+
2333
+ ### S
2334
+
2335
+ `S` *extends* `Schema` \| `void` = `void`
2336
+
2337
+ ### <a id="DivinerConfig"></a>DivinerConfig
2338
+
2339
+ [**@xyo-network/diviner-model**](#../README)
2340
+
2341
+ ***
2342
+
2343
+ ```ts
2344
+ type DivinerConfig<TConfig, TSchema> = ModuleConfig<WithAdditional<{
2345
+ eventSubscriptions?: ModuleEventSubscription[];
2346
+ }, Omit<TConfig, "schema">>, TSchema extends Schema ? TSchema : TConfig extends Payload ? TConfig["schema"] : DivinerConfigSchema>;
2347
+ ```
2348
+
2349
+ ## Type Parameters
2350
+
2351
+ ### TConfig
2352
+
2353
+ `TConfig` *extends* `Payload` \| `EmptyObject` \| `void` = `void`
2354
+
2355
+ ### TSchema
2356
+
2357
+ `TSchema` *extends* `Schema` \| `void` = `void`
2358
+
2359
+ ### <a id="DivinerConfigSchema"></a>DivinerConfigSchema
2360
+
2361
+ [**@xyo-network/diviner-model**](#../README)
2362
+
2363
+ ***
2364
+
2365
+ ```ts
2366
+ type DivinerConfigSchema = typeof DivinerConfigSchema;
2367
+ ```
2368
+
2369
+ ### <a id="DivinerDivineQuery"></a>DivinerDivineQuery
2370
+
2371
+ [**@xyo-network/diviner-model**](#../README)
2372
+
2373
+ ***
2374
+
2375
+ ```ts
2376
+ type DivinerDivineQuery = Query<{
2377
+ schema: DivinerDivineQuerySchema;
2378
+ }>;
2379
+ ```
2380
+
2381
+ ### <a id="DivinerDivineQuerySchema"></a>DivinerDivineQuerySchema
2382
+
2383
+ [**@xyo-network/diviner-model**](#../README)
2384
+
2385
+ ***
2386
+
2387
+ ```ts
2388
+ type DivinerDivineQuerySchema = typeof DivinerDivineQuerySchema;
2389
+ ```
2390
+
2391
+ ### <a id="DivinerDivineResult"></a>DivinerDivineResult
2392
+
2393
+ [**@xyo-network/diviner-model**](#../README)
2394
+
2395
+ ***
2396
+
2397
+ ```ts
2398
+ type DivinerDivineResult<T> = WithoutPrivateStorageMeta<T>;
2399
+ ```
2400
+
2401
+ ## Type Parameters
2402
+
2403
+ ### T
2404
+
2405
+ `T` *extends* `Payload`
2406
+
2407
+ ### <a id="DivinerModuleEventData"></a>DivinerModuleEventData
2408
+
2409
+ [**@xyo-network/diviner-model**](#../README)
2410
+
2411
+ ***
2412
+
2413
+ ```ts
2414
+ type DivinerModuleEventData<TInstance, TIn, TOut> = DivineEndEventData<TInstance, TIn, TOut> & DivineStartEventData<TInstance, TIn> & ModuleEventData<TInstance>;
2415
+ ```
2416
+
2417
+ ## Type Parameters
2418
+
2419
+ ### TInstance
2420
+
2421
+ `TInstance` *extends* `ModuleInstance` = `ModuleInstance`
2422
+
2423
+ ### TIn
2424
+
2425
+ `TIn` *extends* `Payload` = `Payload`
2426
+
2427
+ ### TOut
2428
+
2429
+ `TOut` *extends* `Payload` = `Payload`
2430
+
2431
+ ### <a id="DivinerModuleQueries"></a>DivinerModuleQueries
2432
+
2433
+ [**@xyo-network/diviner-model**](#../README)
2434
+
2435
+ ***
2436
+
2437
+ ```ts
2438
+ type DivinerModuleQueries = ModuleQueries | DivinerQueries;
2439
+ ```
2440
+
2441
+ ### <a id="DivinerQueries"></a>DivinerQueries
2442
+
2443
+ [**@xyo-network/diviner-model**](#../README)
2444
+
2445
+ ***
2446
+
2447
+ ```ts
2448
+ type DivinerQueries = DivinerDivineQuery;
2449
+ ```
2450
+
2451
+ ### variables
2452
+
2453
+ ### <a id="DivinerConfigSchema"></a>DivinerConfigSchema
2454
+
2455
+ [**@xyo-network/diviner-model**](#../README)
2456
+
2457
+ ***
2458
+
2459
+ ```ts
2460
+ const DivinerConfigSchema: "network.xyo.diviner.config" & object;
2461
+ ```
2462
+
2463
+ ## Type Declaration
2464
+
2465
+ ### \_\_schema
2466
+
2467
+ ```ts
2468
+ readonly __schema: true;
2469
+ ```
2470
+
2471
+ ### <a id="DivinerDivineQuerySchema"></a>DivinerDivineQuerySchema
2472
+
2473
+ [**@xyo-network/diviner-model**](#../README)
2474
+
2475
+ ***
2476
+
2477
+ ```ts
2478
+ const DivinerDivineQuerySchema: "network.xyo.query.diviner.divine" & object;
2479
+ ```
2480
+
2481
+ ## Type Declaration
2482
+
2483
+ ### \_\_schema
2484
+
2485
+ ```ts
2486
+ readonly __schema: true;
2487
+ ```
2488
+
2489
+ ### <a id="asAttachableDivinerInstance"></a>asAttachableDivinerInstance
2490
+
2491
+ [**@xyo-network/diviner-model**](#../README)
2492
+
2493
+ ***
2494
+
2495
+ ```ts
2496
+ const asAttachableDivinerInstance: AsTypeFunction<AttachableDivinerInstance<DivinerParams<AnyConfigSchema<DivinerConfig>>, Payload, Payload, DivinerModuleEventData>>;
2497
+ ```
2498
+
2499
+ ### <a id="asDivinerInstance"></a>asDivinerInstance
2500
+
2501
+ [**@xyo-network/diviner-model**](#../README)
2502
+
2503
+ ***
2504
+
2505
+ ```ts
2506
+ const asDivinerInstance: AsTypeFunction<DivinerInstance<DivinerParams<AnyConfigSchema<DivinerConfig>>, Payload, Payload, DivinerModuleEventData>>;
2507
+ ```
2508
+
2509
+ ### <a id="asDivinerModule"></a>asDivinerModule
2510
+
2511
+ [**@xyo-network/diviner-model**](#../README)
2512
+
2513
+ ***
2514
+
2515
+ ```ts
2516
+ const asDivinerModule: AsTypeFunction<DivinerModule<DivinerParams<AnyConfigSchema<DivinerConfig>>, DivinerModuleEventData>>;
2517
+ ```
2518
+
2519
+ ### <a id="isAttachableDivinerInstance"></a>isAttachableDivinerInstance
2520
+
2521
+ [**@xyo-network/diviner-model**](#../README)
2522
+
2523
+ ***
2524
+
2525
+ ```ts
2526
+ const isAttachableDivinerInstance: TypeCheck<AttachableDivinerInstance>;
2527
+ ```
2528
+
2529
+ ### <a id="isDivinerInstance"></a>isDivinerInstance
2530
+
2531
+ [**@xyo-network/diviner-model**](#../README)
2532
+
2533
+ ***
2534
+
2535
+ ```ts
2536
+ const isDivinerInstance: TypeCheck<DivinerInstance>;
2537
+ ```
2538
+
2539
+ ### <a id="isDivinerModule"></a>isDivinerModule
2540
+
2541
+ [**@xyo-network/diviner-model**](#../README)
2542
+
2543
+ ***
2544
+
2545
+ ```ts
2546
+ const isDivinerModule: TypeCheck<DivinerModule>;
2547
+ ```
2548
+
2549
+ ### <a id="requiredAttachableDivinerInstanceFunctions"></a>requiredAttachableDivinerInstanceFunctions
2550
+
2551
+ [**@xyo-network/diviner-model**](#../README)
2552
+
2553
+ ***
2554
+
2555
+ ```ts
2556
+ const requiredAttachableDivinerInstanceFunctions: ObjectTypeShape = {};
2557
+ ```
2558
+
2559
+ ### <a id="withDivinerInstance"></a>withDivinerInstance
2560
+
2561
+ [**@xyo-network/diviner-model**](#../README)
2562
+
2563
+ ***
2564
+
2565
+ ```ts
2566
+ const withDivinerInstance: <R>(mod, closure) => R | undefined;
2567
+ ```
2568
+
2569
+ ## Type Parameters
2570
+
2571
+ ### R
2572
+
2573
+ `R`
2574
+
2575
+ ## Parameters
2576
+
2577
+ ### mod
2578
+
2579
+ `any`
2580
+
2581
+ ### closure
2582
+
2583
+ (`mod`) => `R`
2584
+
2585
+ ## Returns
2586
+
2587
+ `R` \| `undefined`
2588
+
2589
+ ## Deprecated
2590
+
2591
+ use narrowing instead [ if(is) ]
2592
+
2593
+ ### <a id="withDivinerModule"></a>withDivinerModule
2594
+
2595
+ [**@xyo-network/diviner-model**](#../README)
2596
+
2597
+ ***
2598
+
2599
+ ```ts
2600
+ const withDivinerModule: <R>(mod, closure) => R | undefined;
2601
+ ```
2602
+
2603
+ ## Type Parameters
2604
+
2605
+ ### R
2606
+
2607
+ `R`
2608
+
2609
+ ## Parameters
2610
+
2611
+ ### mod
2612
+
2613
+ `any`
2614
+
2615
+ ### closure
2616
+
2617
+ (`mod`) => `R`
2618
+
2619
+ ## Returns
2620
+
2621
+ `R` \| `undefined`
2622
+
2623
+ ## Deprecated
18
2624
 
19
- ## Credits
2625
+ use narrowing instead [ if(is) ]
20
2626
 
21
- [Made with 🔥 and ❄️ by XYO](https://xyo.network)
22
2627
 
23
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
2628
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
2629
+ [npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-model.svg
2630
+ [npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-model
2631
+ [license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-model.svg
2632
+ [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE