@xyo-network/diviner-indexing-memory 5.3.30 → 5.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,2808 +38,6 @@ bun add {{name}}
38
38
 
39
39
  See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
40
 
41
- ## Reference
42
-
43
- ### packages
44
-
45
- ### modules
46
-
47
- ### packages
48
-
49
- ### diviner
50
-
51
- ### packages
52
-
53
- ### indexing
54
-
55
- ### packages
56
-
57
- ### memory
58
-
59
- ### .temp-typedoc
60
-
61
- ### classes
62
-
63
- ### <a id="IndexingDiviner"></a>IndexingDiviner
64
-
65
- [**@xyo-network/diviner-indexing-memory**](#../README)
66
-
67
- ***
68
-
69
- ## Extends
70
-
71
- - `AbstractDiviner`\<`TParams`, `TIn`, `TOut`, `TEventData`\>
72
-
73
- ## Type Parameters
74
-
75
- ### TParams
76
-
77
- `TParams` *extends* `IndexingDivinerParams` = `IndexingDivinerParams`
78
-
79
- ### TIn
80
-
81
- `TIn` *extends* `Payload` = `Payload`
82
-
83
- ### TOut
84
-
85
- `TOut` *extends* `Payload` = `Payload`
86
-
87
- ### TEventData
88
-
89
- `TEventData` *extends* `DivinerModuleEventData`\<`DivinerInstance`\<`TParams`, `TIn`, `TOut`\>, `TIn`, `TOut`\> = `DivinerModuleEventData`\<`DivinerInstance`\<`TParams`, `TIn`, `TOut`\>, `TIn`, `TOut`\>
90
-
91
- ## Constructors
92
-
93
- ### Constructor
94
-
95
- ```ts
96
- new IndexingDiviner<TParams, TIn, TOut, TEventData>(key, params): IndexingDiviner<TParams, TIn, TOut, TEventData>;
97
- ```
98
-
99
- ### Parameters
100
-
101
- #### key
102
-
103
- `unknown`
104
-
105
- #### params
106
-
107
- `Partial`\<`TParams` & `RequiredCreatableParams`\>
108
-
109
- ### Returns
110
-
111
- `IndexingDiviner`\<`TParams`, `TIn`, `TOut`, `TEventData`\>
112
-
113
- ### Inherited from
114
-
115
- ```ts
116
- AbstractDiviner<TParams, TIn, TOut, TEventData>.constructor
117
- ```
118
-
119
- ## Properties
120
-
121
- ### targetSchema
122
-
123
- ```ts
124
- readonly static targetSchema: Schema;
125
- ```
126
-
127
- ### Inherited from
128
-
129
- ```ts
130
- AbstractDiviner.targetSchema
131
- ```
132
-
133
- ***
134
-
135
- ### uniqueName
136
-
137
- ```ts
138
- readonly static uniqueName: string;
139
- ```
140
-
141
- ### Inherited from
142
-
143
- ```ts
144
- AbstractDiviner.uniqueName
145
- ```
146
-
147
- ***
148
-
149
- ### allowRandomAccount
150
-
151
- ```ts
152
- readonly static allowRandomAccount: true = true;
153
- ```
154
-
155
- ### Overrides
156
-
157
- ```ts
158
- AbstractDiviner.allowRandomAccount
159
- ```
160
-
161
- ***
162
-
163
- ### configSchemas
164
-
165
- ```ts
166
- readonly static configSchemas: Schema[];
167
- ```
168
-
169
- ### Overrides
170
-
171
- ```ts
172
- AbstractDiviner.configSchemas
173
- ```
174
-
175
- ***
176
-
177
- ### defaultConfigSchema
178
-
179
- ```ts
180
- readonly static defaultConfigSchema: Schema = IndexingDivinerConfigSchema;
181
- ```
182
-
183
- ### Overrides
184
-
185
- ```ts
186
- AbstractDiviner.defaultConfigSchema
187
- ```
188
-
189
- ***
190
-
191
- ### defaultLogger
192
-
193
- ```ts
194
- static defaultLogger: Logger;
195
- ```
196
-
197
- ### Inherited from
198
-
199
- ```ts
200
- AbstractDiviner.defaultLogger
201
- ```
202
-
203
- ***
204
-
205
- ### enableLazyLoad
206
-
207
- ```ts
208
- static enableLazyLoad: boolean;
209
- ```
210
-
211
- ### Inherited from
212
-
213
- ```ts
214
- AbstractDiviner.enableLazyLoad
215
- ```
216
-
217
- ***
218
-
219
- ### labels
220
-
221
- ```ts
222
- readonly static labels: Labels;
223
- ```
224
-
225
- ### Inherited from
226
-
227
- ```ts
228
- AbstractDiviner.labels
229
- ```
230
-
231
- ***
232
-
233
- ### privateConstructorKey
234
-
235
- ```ts
236
- protected static privateConstructorKey: string;
237
- ```
238
-
239
- ### Inherited from
240
-
241
- ```ts
242
- AbstractDiviner.privateConstructorKey
243
- ```
244
-
245
- ***
246
-
247
- ### \_account
248
-
249
- ```ts
250
- protected _account: AccountInstance | undefined;
251
- ```
252
-
253
- ### Inherited from
254
-
255
- ```ts
256
- AbstractDiviner._account
257
- ```
258
-
259
- ***
260
-
261
- ### \_cachedManifests
262
-
263
- ```ts
264
- protected _cachedManifests: LRUCache<number, ModuleManifestPayload, unknown>;
265
- ```
266
-
267
- ### Inherited from
268
-
269
- ```ts
270
- AbstractDiviner._cachedManifests
271
- ```
272
-
273
- ***
274
-
275
- ### \_globalReentrancyMutex
276
-
277
- ```ts
278
- protected _globalReentrancyMutex: Mutex | undefined;
279
- ```
280
-
281
- ### Inherited from
282
-
283
- ```ts
284
- AbstractDiviner._globalReentrancyMutex
285
- ```
286
-
287
- ***
288
-
289
- ### \_lastError?
290
-
291
- ```ts
292
- protected optional _lastError?: ModuleDetailsError;
293
- ```
294
-
295
- ### Inherited from
296
-
297
- ```ts
298
- AbstractDiviner._lastError
299
- ```
300
-
301
- ***
302
-
303
- ### \_moduleConfigQueryValidator
304
-
305
- ```ts
306
- protected _moduleConfigQueryValidator: Queryable | undefined;
307
- ```
308
-
309
- ### Inherited from
310
-
311
- ```ts
312
- AbstractDiviner._moduleConfigQueryValidator
313
- ```
314
-
315
- ***
316
-
317
- ### \_supportedQueryValidator
318
-
319
- ```ts
320
- protected _supportedQueryValidator: Queryable | undefined;
321
- ```
322
-
323
- ### Inherited from
324
-
325
- ```ts
326
- AbstractDiviner._supportedQueryValidator
327
- ```
328
-
329
- ***
330
-
331
- ### useNewResolver
332
-
333
- ```ts
334
- readonly static useNewResolver: false = false;
335
- ```
336
-
337
- ### Inherited from
338
-
339
- ```ts
340
- AbstractDiviner.useNewResolver
341
- ```
342
-
343
- ## Accessors
344
-
345
- ### queries
346
-
347
- ### Get Signature
348
-
349
- ```ts
350
- get queries(): Schema[];
351
- ```
352
-
353
- #### Returns
354
-
355
- `Schema`[]
356
-
357
- ### Inherited from
358
-
359
- ```ts
360
- AbstractDiviner.queries
361
- ```
362
-
363
- ***
364
-
365
- ### payloadDivinerLimit
366
-
367
- ### Get Signature
368
-
369
- ```ts
370
- get payloadDivinerLimit(): number;
371
- ```
372
-
373
- #### Returns
374
-
375
- `number`
376
-
377
- ***
378
-
379
- ### pollFrequency
380
-
381
- ### Get Signature
382
-
383
- ```ts
384
- get pollFrequency(): number;
385
- ```
386
-
387
- #### Returns
388
-
389
- `number`
390
-
391
- ***
392
-
393
- ### account
394
-
395
- ### Get Signature
396
-
397
- ```ts
398
- get account(): AccountInstance;
399
- ```
400
-
401
- #### Returns
402
-
403
- `AccountInstance`
404
-
405
- ### Inherited from
406
-
407
- ```ts
408
- AbstractDiviner.account
409
- ```
410
-
411
- ***
412
-
413
- ### additionalSigners
414
-
415
- ### Get Signature
416
-
417
- ```ts
418
- get additionalSigners(): AccountInstance[];
419
- ```
420
-
421
- #### Returns
422
-
423
- `AccountInstance`[]
424
-
425
- ### Inherited from
426
-
427
- ```ts
428
- AbstractDiviner.additionalSigners
429
- ```
430
-
431
- ***
432
-
433
- ### address
434
-
435
- ### Get Signature
436
-
437
- ```ts
438
- get address(): Lowercase<string> & object & object;
439
- ```
440
-
441
- #### Returns
442
-
443
- `Lowercase`\<`string`\> & `object` & `object`
444
-
445
- ### Inherited from
446
-
447
- ```ts
448
- AbstractDiviner.address
449
- ```
450
-
451
- ***
452
-
453
- ### allowAnonymous
454
-
455
- ### Get Signature
456
-
457
- ```ts
458
- get allowAnonymous(): boolean;
459
- ```
460
-
461
- #### Returns
462
-
463
- `boolean`
464
-
465
- ### Inherited from
466
-
467
- ```ts
468
- AbstractDiviner.allowAnonymous
469
- ```
470
-
471
- ***
472
-
473
- ### allowNameResolution
474
-
475
- ### Get Signature
476
-
477
- ```ts
478
- get allowNameResolution(): boolean;
479
- ```
480
-
481
- #### Returns
482
-
483
- `boolean`
484
-
485
- ### Inherited from
486
-
487
- ```ts
488
- AbstractDiviner.allowNameResolution
489
- ```
490
-
491
- ***
492
-
493
- ### archiving
494
-
495
- ### Get Signature
496
-
497
- ```ts
498
- get archiving():
499
- | {
500
- archivists?: ModuleIdentifier[];
501
- queries?: Schema[];
502
- }
503
- | undefined;
504
- ```
505
-
506
- #### Returns
507
-
508
- \| \{
509
- `archivists?`: `ModuleIdentifier`[];
510
- `queries?`: `Schema`[];
511
- \}
512
- \| `undefined`
513
-
514
- ### Inherited from
515
-
516
- ```ts
517
- AbstractDiviner.archiving
518
- ```
519
-
520
- ***
521
-
522
- ### archivist
523
-
524
- ### Get Signature
525
-
526
- ```ts
527
- get archivist(): ModuleIdentifier | undefined;
528
- ```
529
-
530
- #### Returns
531
-
532
- `ModuleIdentifier` \| `undefined`
533
-
534
- ### Inherited from
535
-
536
- ```ts
537
- AbstractDiviner.archivist
538
- ```
539
-
540
- ***
541
-
542
- ### config
543
-
544
- ### Get Signature
545
-
546
- ```ts
547
- get config(): TParams["config"] & object;
548
- ```
549
-
550
- #### Returns
551
-
552
- `TParams`\[`"config"`\] & `object`
553
-
554
- ### Inherited from
555
-
556
- ```ts
557
- AbstractDiviner.config
558
- ```
559
-
560
- ***
561
-
562
- ### dead
563
-
564
- ### Get Signature
565
-
566
- ```ts
567
- get dead(): boolean;
568
- ```
569
-
570
- #### Returns
571
-
572
- `boolean`
573
-
574
- ### Inherited from
575
-
576
- ```ts
577
- AbstractDiviner.dead
578
- ```
579
-
580
- ***
581
-
582
- ### ephemeralQueryAccountEnabled
583
-
584
- ### Get Signature
585
-
586
- ```ts
587
- get ephemeralQueryAccountEnabled(): boolean;
588
- ```
589
-
590
- #### Returns
591
-
592
- `boolean`
593
-
594
- ### Inherited from
595
-
596
- ```ts
597
- AbstractDiviner.ephemeralQueryAccountEnabled
598
- ```
599
-
600
- ***
601
-
602
- ### globalReentrancyMutex
603
-
604
- ### Get Signature
605
-
606
- ```ts
607
- get globalReentrancyMutex(): Mutex | undefined;
608
- ```
609
-
610
- #### Returns
611
-
612
- `Mutex` \| `undefined`
613
-
614
- ### Inherited from
615
-
616
- ```ts
617
- AbstractDiviner.globalReentrancyMutex
618
- ```
619
-
620
- ***
621
-
622
- ### id
623
-
624
- ### Get Signature
625
-
626
- ```ts
627
- get id(): string;
628
- ```
629
-
630
- The name (if specified) or address of the module
631
-
632
- #### Returns
633
-
634
- `string`
635
-
636
- ### Inherited from
637
-
638
- ```ts
639
- AbstractDiviner.id
640
- ```
641
-
642
- ***
643
-
644
- ### logger
645
-
646
- ### Get Signature
647
-
648
- ```ts
649
- get logger(): Logger | undefined;
650
- ```
651
-
652
- #### Returns
653
-
654
- `Logger` \| `undefined`
655
-
656
- ### Inherited from
657
-
658
- ```ts
659
- AbstractDiviner.logger
660
- ```
661
-
662
- ***
663
-
664
- ### priority
665
-
666
- ### Get Signature
667
-
668
- ```ts
669
- get priority(): 2;
670
- ```
671
-
672
- #### Returns
673
-
674
- `2`
675
-
676
- ### Inherited from
677
-
678
- ```ts
679
- AbstractDiviner.priority
680
- ```
681
-
682
- ***
683
-
684
- ### reentrancy
685
-
686
- ### Get Signature
687
-
688
- ```ts
689
- get reentrancy():
690
- | {
691
- action: "skip" | "wait";
692
- scope: "global";
693
- }
694
- | undefined;
695
- ```
696
-
697
- #### Returns
698
-
699
- \| \{
700
- `action`: `"skip"` \| `"wait"`;
701
- `scope`: `"global"`;
702
- \}
703
- \| `undefined`
704
-
705
- ### Inherited from
706
-
707
- ```ts
708
- AbstractDiviner.reentrancy
709
- ```
710
-
711
- ***
712
-
713
- ### statusReporter
714
-
715
- ### Get Signature
716
-
717
- ```ts
718
- get statusReporter():
719
- | ModuleStatusReporter & CreatableStatusReporter<void>
720
- | undefined;
721
- ```
722
-
723
- The status reporter used to broadcast lifecycle changes.
724
-
725
- #### Returns
726
-
727
- \| `ModuleStatusReporter` & `CreatableStatusReporter`\<`void`\>
728
- \| `undefined`
729
-
730
- ### Inherited from
731
-
732
- ```ts
733
- AbstractDiviner.statusReporter
734
- ```
735
-
736
- ***
737
-
738
- ### timestamp
739
-
740
- ### Get Signature
741
-
742
- ```ts
743
- get timestamp(): boolean;
744
- ```
745
-
746
- #### Returns
747
-
748
- `boolean`
749
-
750
- ### Inherited from
751
-
752
- ```ts
753
- AbstractDiviner.timestamp
754
- ```
755
-
756
- ***
757
-
758
- ### moduleConfigQueryValidator
759
-
760
- ### Get Signature
761
-
762
- ```ts
763
- get protected moduleConfigQueryValidator(): Queryable;
764
- ```
765
-
766
- #### Returns
767
-
768
- `Queryable`
769
-
770
- ### Inherited from
771
-
772
- ```ts
773
- AbstractDiviner.moduleConfigQueryValidator
774
- ```
775
-
776
- ***
777
-
778
- ### supportedQueryValidator
779
-
780
- ### Get Signature
781
-
782
- ```ts
783
- get protected supportedQueryValidator(): Queryable;
784
- ```
785
-
786
- #### Returns
787
-
788
- `Queryable`
789
-
790
- ### Inherited from
791
-
792
- ```ts
793
- AbstractDiviner.supportedQueryValidator
794
- ```
795
-
796
- ***
797
-
798
- ### downResolver
799
-
800
- ### Get Signature
801
-
802
- ```ts
803
- get downResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
804
- ```
805
-
806
- #### Returns
807
-
808
- `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
809
-
810
- ### Inherited from
811
-
812
- ```ts
813
- AbstractDiviner.downResolver
814
- ```
815
-
816
- ***
817
-
818
- ### modName
819
-
820
- ### Get Signature
821
-
822
- ```ts
823
- get modName(): string | undefined;
824
- ```
825
-
826
- #### Returns
827
-
828
- `string` \| `undefined`
829
-
830
- ### Inherited from
831
-
832
- ```ts
833
- AbstractDiviner.modName
834
- ```
835
-
836
- ***
837
-
838
- ### moduleIdentifierTransformers
839
-
840
- ### Get Signature
841
-
842
- ```ts
843
- get moduleIdentifierTransformers(): ModuleIdentifierTransformer[];
844
- ```
845
-
846
- #### Returns
847
-
848
- `ModuleIdentifierTransformer`[]
849
-
850
- ### Inherited from
851
-
852
- ```ts
853
- AbstractDiviner.moduleIdentifierTransformers
854
- ```
855
-
856
- ***
857
-
858
- ### privateResolver
859
-
860
- ### Get Signature
861
-
862
- ```ts
863
- get privateResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
864
- ```
865
-
866
- #### Returns
867
-
868
- `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
869
-
870
- ### Inherited from
871
-
872
- ```ts
873
- AbstractDiviner.privateResolver
874
- ```
875
-
876
- ***
877
-
878
- ### root
879
-
880
- ### Get Signature
881
-
882
- ```ts
883
- get root(): this;
884
- ```
885
-
886
- #### Returns
887
-
888
- `this`
889
-
890
- ### Inherited from
891
-
892
- ```ts
893
- AbstractDiviner.root
894
- ```
895
-
896
- ***
897
-
898
- ### timeBudget
899
-
900
- ### Get Signature
901
-
902
- ```ts
903
- get timeBudget(): number | undefined;
904
- ```
905
-
906
- #### Returns
907
-
908
- `number` \| `undefined`
909
-
910
- ### Inherited from
911
-
912
- ```ts
913
- AbstractDiviner.timeBudget
914
- ```
915
-
916
- ***
917
-
918
- ### upResolver
919
-
920
- ### Get Signature
921
-
922
- ```ts
923
- get upResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
924
- ```
925
-
926
- #### Returns
927
-
928
- `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
929
-
930
- ### Inherited from
931
-
932
- ```ts
933
- AbstractDiviner.upResolver
934
- ```
935
-
936
- ## Methods
937
-
938
- ### divine()
939
-
940
- ```ts
941
- divine(payloads?, retryConfigIn?): Promise<DivinerDivineResult<TOut>[]>;
942
- ```
943
-
944
- **`Function`**
945
-
946
- divine The main entry point for a diviner. Do not override this function. Implement/override divineHandler for custom functionality
947
-
948
- ### Parameters
949
-
950
- #### payloads?
951
-
952
- `TIn`[]
953
-
954
- #### retryConfigIn?
955
-
956
- `RetryConfigWithComplete`\<`unknown`\>
957
-
958
- ### Returns
959
-
960
- `Promise`\<`DivinerDivineResult`\<`TOut`\>[]\>
961
-
962
- ### Inherited from
963
-
964
- ```ts
965
- AbstractDiviner.divine
966
- ```
967
-
968
- ***
969
-
970
- ### divineQuery()
971
-
972
- ```ts
973
- divineQuery(
974
- payloads?,
975
- account?,
976
- _retry?): Promise<ModuleQueryResult<TOut>>;
977
- ```
978
-
979
- ### Parameters
980
-
981
- #### payloads?
982
-
983
- `TIn`[]
984
-
985
- #### account?
986
-
987
- `AccountInstance`
988
-
989
- #### \_retry?
990
-
991
- `RetryConfig`
992
-
993
- ### Returns
994
-
995
- `Promise`\<`ModuleQueryResult`\<`TOut`\>\>
996
-
997
- ### Inherited from
998
-
999
- ```ts
1000
- AbstractDiviner.divineQuery
1001
- ```
1002
-
1003
- ***
1004
-
1005
- ### queryHandler()
1006
-
1007
- ```ts
1008
- protected queryHandler<T, TConfig>(
1009
- query,
1010
- payloads?,
1011
- queryConfig?): Promise<ModuleQueryHandlerResult>;
1012
- ```
1013
-
1014
- **`Function`**
1015
-
1016
- queryHandler Calls divine for a divine query. Override to support additional queries.
1017
-
1018
- ### Type Parameters
1019
-
1020
- #### T
1021
-
1022
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1023
-
1024
- #### TConfig
1025
-
1026
- `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
1027
-
1028
- ### Parameters
1029
-
1030
- #### query
1031
-
1032
- `T`
1033
-
1034
- #### payloads?
1035
-
1036
- `Payload`[]
1037
-
1038
- #### queryConfig?
1039
-
1040
- `TConfig`
1041
-
1042
- ### Returns
1043
-
1044
- `Promise`\<`ModuleQueryHandlerResult`\>
1045
-
1046
- ### Inherited from
1047
-
1048
- ```ts
1049
- AbstractDiviner.queryHandler
1050
- ```
1051
-
1052
- ***
1053
-
1054
- ### backgroundDivine()
1055
-
1056
- ```ts
1057
- protected backgroundDivine(): Promise<void>;
1058
- ```
1059
-
1060
- Works via batched iteration of the source archivist to populate the index.
1061
-
1062
- ### Returns
1063
-
1064
- `Promise`\<`void`\>
1065
-
1066
- A promise that resolves when the background process is complete
1067
-
1068
- ***
1069
-
1070
- ### commitState()
1071
-
1072
- ```ts
1073
- protected commitState(nextState): Promise<void>;
1074
- ```
1075
-
1076
- Commit the internal state of the Diviner process. This is similar
1077
- to a transaction completion in a database and should only be called
1078
- when results have been successfully persisted to the appropriate
1079
- external stores.
1080
-
1081
- ### Parameters
1082
-
1083
- #### nextState
1084
-
1085
- `ModuleState`\<`IndexingDivinerState`\>
1086
-
1087
- The state to commit
1088
-
1089
- ### Returns
1090
-
1091
- `Promise`\<`void`\>
1092
-
1093
- ***
1094
-
1095
- ### divineHandler()
1096
-
1097
- ```ts
1098
- protected divineHandler(payloads?): Promise<TOut[]>;
1099
- ```
1100
-
1101
- **`Function`**
1102
-
1103
- divineHandler Implement or override to add custom functionality to a diviner
1104
-
1105
- ### Parameters
1106
-
1107
- #### payloads?
1108
-
1109
- `TIn`[] = `[]`
1110
-
1111
- ### Returns
1112
-
1113
- `Promise`\<`TOut`[]\>
1114
-
1115
- ### Overrides
1116
-
1117
- ```ts
1118
- AbstractDiviner.divineHandler
1119
- ```
1120
-
1121
- ***
1122
-
1123
- ### getArchivistForStore()
1124
-
1125
- ```ts
1126
- protected getArchivistForStore(store): Promise<ArchivistWrapper<ArchivistModuleInstance<QueryableModuleParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData>>>;
1127
- ```
1128
-
1129
- Retrieves the archivist for the specified store
1130
-
1131
- ### Parameters
1132
-
1133
- #### store
1134
-
1135
- [`ConfigStore`](#../type-aliases/ConfigStore)
1136
-
1137
- The store to retrieve the archivist for
1138
-
1139
- ### Returns
1140
-
1141
- `Promise`\<`ArchivistWrapper`\<`ArchivistModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`\>\>\>
1142
-
1143
- The archivist for the specified store
1144
-
1145
- ***
1146
-
1147
- ### getBoundWitnessDivinerForStore()
1148
-
1149
- ```ts
1150
- protected getBoundWitnessDivinerForStore(store): Promise<DivinerWrapper<DivinerModule<DivinerParams<AnyConfigSchema<DivinerConfig>>, DivinerModuleEventData>, Payload, Payload>>;
1151
- ```
1152
-
1153
- Retrieves the BoundWitness Diviner for the specified store
1154
-
1155
- ### Parameters
1156
-
1157
- #### store
1158
-
1159
- [`ConfigStore`](#../type-aliases/ConfigStore)
1160
-
1161
- The store to retrieve the BoundWitness Diviner for
1162
-
1163
- ### Returns
1164
-
1165
- `Promise`\<`DivinerWrapper`\<`DivinerModule`\<`DivinerParams`\<`AnyConfigSchema`\<`DivinerConfig`\>\>, `DivinerModuleEventData`\>, `Payload`, `Payload`\>\>
1166
-
1167
- The BoundWitness Diviner for the specified store
1168
-
1169
- ***
1170
-
1171
- ### getIndexingDivinerStage()
1172
-
1173
- ```ts
1174
- protected getIndexingDivinerStage(transform): Promise<DivinerInstance<DivinerParams<AnyConfigSchema<DivinerConfig>>, Payload, Payload, DivinerModuleEventData>>;
1175
- ```
1176
-
1177
- Gets the Diviner for the supplied Indexing Diviner stage
1178
-
1179
- ### Parameters
1180
-
1181
- #### transform
1182
-
1183
- `IndexingDivinerStage`
1184
-
1185
- The Indexing Diviner stage
1186
-
1187
- ### Returns
1188
-
1189
- `Promise`\<`DivinerInstance`\<`DivinerParams`\<`AnyConfigSchema`\<`DivinerConfig`\>\>, `Payload`, `Payload`, `DivinerModuleEventData`\>\>
1190
-
1191
- The diviner corresponding to the Indexing Diviner stage
1192
-
1193
- ***
1194
-
1195
- ### getPayloadDivinerForStore()
1196
-
1197
- ```ts
1198
- protected getPayloadDivinerForStore(store): Promise<DivinerWrapper<DivinerModule<DivinerParams<AnyConfigSchema<DivinerConfig>>, DivinerModuleEventData>, Payload, Payload>>;
1199
- ```
1200
-
1201
- Retrieves the Payload Diviner for the specified store
1202
-
1203
- ### Parameters
1204
-
1205
- #### store
1206
-
1207
- [`ConfigStore`](#../type-aliases/ConfigStore)
1208
-
1209
- The store to retrieve the Payload Diviner for
1210
-
1211
- ### Returns
1212
-
1213
- `Promise`\<`DivinerWrapper`\<`DivinerModule`\<`DivinerParams`\<`AnyConfigSchema`\<`DivinerConfig`\>\>, `DivinerModuleEventData`\>, `Payload`, `Payload`\>\>
1214
-
1215
- The Payload Diviner for the specified store
1216
-
1217
- ***
1218
-
1219
- ### retrieveState()
1220
-
1221
- ```ts
1222
- protected retrieveState(): Promise<ModuleState<IndexingDivinerState> | undefined>;
1223
- ```
1224
-
1225
- Retrieves the last state of the Diviner process. Used to recover state after
1226
- preemptions, reboots, etc.
1227
-
1228
- ### Returns
1229
-
1230
- `Promise`\<`ModuleState`\<`IndexingDivinerState`\> \| `undefined`\>
1231
-
1232
- ***
1233
-
1234
- ### startHandler()
1235
-
1236
- ```ts
1237
- protected startHandler(): Promise<void>;
1238
- ```
1239
-
1240
- ### Returns
1241
-
1242
- `Promise`\<`void`\>
1243
-
1244
- ### Overrides
1245
-
1246
- ```ts
1247
- AbstractDiviner.startHandler
1248
- ```
1249
-
1250
- ***
1251
-
1252
- ### stopHandler()
1253
-
1254
- ```ts
1255
- protected stopHandler(_timeout?): Promise<void>;
1256
- ```
1257
-
1258
- ### Parameters
1259
-
1260
- #### \_timeout?
1261
-
1262
- `number`
1263
-
1264
- ### Returns
1265
-
1266
- `Promise`\<`void`\>
1267
-
1268
- ### Overrides
1269
-
1270
- ```ts
1271
- AbstractDiviner.stopHandler
1272
- ```
1273
-
1274
- ***
1275
-
1276
- ### \_getRootFunction()
1277
-
1278
- ```ts
1279
- static _getRootFunction(funcName): any;
1280
- ```
1281
-
1282
- ### Parameters
1283
-
1284
- #### funcName
1285
-
1286
- `string`
1287
-
1288
- ### Returns
1289
-
1290
- `any`
1291
-
1292
- ### Inherited from
1293
-
1294
- ```ts
1295
- AbstractDiviner._getRootFunction
1296
- ```
1297
-
1298
- ***
1299
-
1300
- ### \_noOverride()
1301
-
1302
- ```ts
1303
- static _noOverride(functionName): void;
1304
- ```
1305
-
1306
- ### Parameters
1307
-
1308
- #### functionName
1309
-
1310
- `string`
1311
-
1312
- ### Returns
1313
-
1314
- `void`
1315
-
1316
- ### Inherited from
1317
-
1318
- ```ts
1319
- AbstractDiviner._noOverride
1320
- ```
1321
-
1322
- ***
1323
-
1324
- ### createHandler()
1325
-
1326
- ```ts
1327
- static createHandler<T>(inInstance): Promise<T & AbstractModule<any, any>>;
1328
- ```
1329
-
1330
- Static hook called during creation to perform additional initialization.
1331
- Override in subclasses to customize post-construction setup.
1332
-
1333
- ### Type Parameters
1334
-
1335
- #### T
1336
-
1337
- `T` *extends* `CreatableInstance`\<`CreatableParams`, `EventData`\>
1338
-
1339
- ### Parameters
1340
-
1341
- #### inInstance
1342
-
1343
- `T`
1344
-
1345
- ### Returns
1346
-
1347
- `Promise`\<`T` & `AbstractModule`\<`any`, `any`\>\>
1348
-
1349
- The instance, potentially modified
1350
-
1351
- ### Inherited from
1352
-
1353
- ```ts
1354
- AbstractDiviner.createHandler
1355
- ```
1356
-
1357
- ***
1358
-
1359
- ### determineAccount()
1360
-
1361
- ```ts
1362
- static determineAccount(params): Promise<AccountInstance>;
1363
- ```
1364
-
1365
- ### Parameters
1366
-
1367
- #### params
1368
-
1369
- ##### account?
1370
-
1371
- `AccountInstance` \| `"random"`
1372
-
1373
- ##### accountPath?
1374
-
1375
- `string`
1376
-
1377
- ##### wallet?
1378
-
1379
- `WalletInstance`
1380
-
1381
- ### Returns
1382
-
1383
- `Promise`\<`AccountInstance`\>
1384
-
1385
- ### Inherited from
1386
-
1387
- ```ts
1388
- AbstractDiviner.determineAccount
1389
- ```
1390
-
1391
- ***
1392
-
1393
- ### factory()
1394
-
1395
- ```ts
1396
- static factory<TModule>(this, params?): CreatableModuleFactory<TModule>;
1397
- ```
1398
-
1399
- ### Type Parameters
1400
-
1401
- #### TModule
1402
-
1403
- `TModule` *extends* `CreatableModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1404
-
1405
- ### Parameters
1406
-
1407
- #### this
1408
-
1409
- `CreatableModule`\<`TModule`\>
1410
-
1411
- #### params?
1412
-
1413
- `Partial`\<`TModule`\[`"params"`\]\>
1414
-
1415
- ### Returns
1416
-
1417
- `CreatableModuleFactory`\<`TModule`\>
1418
-
1419
- ### Inherited from
1420
-
1421
- ```ts
1422
- AbstractDiviner.factory
1423
- ```
1424
-
1425
- ***
1426
-
1427
- ### isAllowedSchema()
1428
-
1429
- ```ts
1430
- static isAllowedSchema(schema): boolean;
1431
- ```
1432
-
1433
- ### Parameters
1434
-
1435
- #### schema
1436
-
1437
- `Schema`
1438
-
1439
- ### Returns
1440
-
1441
- `boolean`
1442
-
1443
- ### Inherited from
1444
-
1445
- ```ts
1446
- AbstractDiviner.isAllowedSchema
1447
- ```
1448
-
1449
- ***
1450
-
1451
- ### paramsHandler()
1452
-
1453
- ```ts
1454
- static paramsHandler<T>(inParams?): Promise<T["params"]>;
1455
- ```
1456
-
1457
- Static hook called during creation to validate and transform params.
1458
- Override in subclasses to add default values or validation.
1459
-
1460
- ### Type Parameters
1461
-
1462
- #### T
1463
-
1464
- `T` *extends* `AttachableModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
1465
-
1466
- ### Parameters
1467
-
1468
- #### inParams?
1469
-
1470
- `Partial`\<`T`\[`"params"`\]\>
1471
-
1472
- ### Returns
1473
-
1474
- `Promise`\<`T`\[`"params"`\]\>
1475
-
1476
- The processed params ready for construction
1477
-
1478
- ### Inherited from
1479
-
1480
- ```ts
1481
- AbstractDiviner.paramsHandler
1482
- ```
1483
-
1484
- ***
1485
-
1486
- ### \_getRootFunction()
1487
-
1488
- ```ts
1489
- _getRootFunction(funcName): any;
1490
- ```
1491
-
1492
- ### Parameters
1493
-
1494
- #### funcName
1495
-
1496
- `string`
1497
-
1498
- ### Returns
1499
-
1500
- `any`
1501
-
1502
- ### Inherited from
1503
-
1504
- ```ts
1505
- AbstractDiviner._getRootFunction
1506
- ```
1507
-
1508
- ***
1509
-
1510
- ### busy()
1511
-
1512
- ```ts
1513
- busy<R>(closure): Promise<R>;
1514
- ```
1515
-
1516
- ### Type Parameters
1517
-
1518
- #### R
1519
-
1520
- `R`
1521
-
1522
- ### Parameters
1523
-
1524
- #### closure
1525
-
1526
- () => `Promise`\<`R`\>
1527
-
1528
- ### Returns
1529
-
1530
- `Promise`\<`R`\>
1531
-
1532
- ### Inherited from
1533
-
1534
- ```ts
1535
- AbstractDiviner.busy
1536
- ```
1537
-
1538
- ***
1539
-
1540
- ### emit()
1541
-
1542
- ```ts
1543
- emit<TEventName, TEventArgs>(eventName, eventArgs): Promise<void>;
1544
- ```
1545
-
1546
- Emits an event, invoking all registered listeners concurrently.
1547
-
1548
- ### Type Parameters
1549
-
1550
- #### TEventName
1551
-
1552
- `TEventName` *extends* `string` \| `number` \| `symbol` = keyof `TEventData`
1553
-
1554
- #### TEventArgs
1555
-
1556
- `TEventArgs` *extends* `EventArgs` = `TEventData`\[`TEventName`\]
1557
-
1558
- ### Parameters
1559
-
1560
- #### eventName
1561
-
1562
- `TEventName`
1563
-
1564
- The event to emit.
1565
-
1566
- #### eventArgs
1567
-
1568
- `TEventArgs`
1569
-
1570
- The data to pass to listeners.
1571
-
1572
- ### Returns
1573
-
1574
- `Promise`\<`void`\>
1575
-
1576
- ### Inherited from
1577
-
1578
- ```ts
1579
- AbstractDiviner.emit
1580
- ```
1581
-
1582
- ***
1583
-
1584
- ### isSupportedQuery()
1585
-
1586
- ```ts
1587
- isSupportedQuery(query, assert?): boolean;
1588
- ```
1589
-
1590
- ### Parameters
1591
-
1592
- #### query
1593
-
1594
- `Schema`
1595
-
1596
- #### assert?
1597
-
1598
- `string` \| `boolean`
1599
-
1600
- ### Returns
1601
-
1602
- `boolean`
1603
-
1604
- ### Inherited from
1605
-
1606
- ```ts
1607
- AbstractDiviner.isSupportedQuery
1608
- ```
1609
-
1610
- ***
1611
-
1612
- ### previousHash()
1613
-
1614
- ```ts
1615
- previousHash(): Promisable<string | undefined>;
1616
- ```
1617
-
1618
- ### Returns
1619
-
1620
- `Promisable`\<`string` \| `undefined`\>
1621
-
1622
- ### Inherited from
1623
-
1624
- ```ts
1625
- AbstractDiviner.previousHash
1626
- ```
1627
-
1628
- ***
1629
-
1630
- ### query()
1631
-
1632
- ```ts
1633
- query<T, TConfig>(
1634
- query,
1635
- payloads?,
1636
- queryConfig?): Promise<ModuleQueryResult>;
1637
- ```
1638
-
1639
- ### Type Parameters
1640
-
1641
- #### T
1642
-
1643
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1644
-
1645
- #### TConfig
1646
-
1647
- `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
1648
-
1649
- ### Parameters
1650
-
1651
- #### query
1652
-
1653
- `T`
1654
-
1655
- #### payloads?
1656
-
1657
- `Payload`[]
1658
-
1659
- #### queryConfig?
1660
-
1661
- `TConfig`
1662
-
1663
- ### Returns
1664
-
1665
- `Promise`\<`ModuleQueryResult`\>
1666
-
1667
- ### Inherited from
1668
-
1669
- ```ts
1670
- AbstractDiviner.query
1671
- ```
1672
-
1673
- ***
1674
-
1675
- ### queryable()
1676
-
1677
- ```ts
1678
- queryable<T, TConfig>(
1679
- query,
1680
- payloads?,
1681
- queryConfig?): Promise<boolean>;
1682
- ```
1683
-
1684
- ### Type Parameters
1685
-
1686
- #### T
1687
-
1688
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1689
-
1690
- #### TConfig
1691
-
1692
- `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
1693
-
1694
- ### Parameters
1695
-
1696
- #### query
1697
-
1698
- `T`
1699
-
1700
- #### payloads?
1701
-
1702
- `Payload`[]
1703
-
1704
- #### queryConfig?
1705
-
1706
- `TConfig`
1707
-
1708
- ### Returns
1709
-
1710
- `Promise`\<`boolean`\>
1711
-
1712
- ### Inherited from
1713
-
1714
- ```ts
1715
- AbstractDiviner.queryable
1716
- ```
1717
-
1718
- ***
1719
-
1720
- ### \_checkDead()
1721
-
1722
- ```ts
1723
- protected _checkDead(): void;
1724
- ```
1725
-
1726
- ### Returns
1727
-
1728
- `void`
1729
-
1730
- ### Inherited from
1731
-
1732
- ```ts
1733
- AbstractDiviner._checkDead
1734
- ```
1735
-
1736
- ***
1737
-
1738
- ### archivistInstance()
1739
-
1740
- ### Call Signature
1741
-
1742
- ```ts
1743
- protected archivistInstance(): Promise<
1744
- | ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
1745
- | undefined>;
1746
- ```
1747
-
1748
- #### Returns
1749
-
1750
- `Promise`\<
1751
- \| `ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>
1752
- \| `undefined`\>
1753
-
1754
- #### Inherited from
1755
-
1756
- ```ts
1757
- AbstractDiviner.archivistInstance
1758
- ```
1759
-
1760
- ### Call Signature
1761
-
1762
- ```ts
1763
- protected archivistInstance(required): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>>;
1764
- ```
1765
-
1766
- #### Parameters
1767
-
1768
- ##### required
1769
-
1770
- `true`
1771
-
1772
- #### Returns
1773
-
1774
- `Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>\>
1775
-
1776
- #### Inherited from
1777
-
1778
- ```ts
1779
- AbstractDiviner.archivistInstance
1780
- ```
1781
-
1782
- ***
1783
-
1784
- ### bindHashes()
1785
-
1786
- ```ts
1787
- protected bindHashes(
1788
- hashes,
1789
- schema,
1790
- account?): PromiseEx<unknown, AccountInstance>;
1791
- ```
1792
-
1793
- ### Parameters
1794
-
1795
- #### hashes
1796
-
1797
- `BrandedHash`[]
1798
-
1799
- #### schema
1800
-
1801
- `Schema`[]
1802
-
1803
- #### account?
1804
-
1805
- `AccountInstance`
1806
-
1807
- ### Returns
1808
-
1809
- `PromiseEx`\<`unknown`, `AccountInstance`\>
1810
-
1811
- ### Inherited from
1812
-
1813
- ```ts
1814
- AbstractDiviner.bindHashes
1815
- ```
1816
-
1817
- ***
1818
-
1819
- ### bindHashesInternal()
1820
-
1821
- ```ts
1822
- protected bindHashesInternal(
1823
- hashes,
1824
- schema,
1825
- account?): Promise<{
1826
- schema: "network.xyo.boundwitness" & object;
1827
- addresses: Lowercase<string> & object & object[];
1828
- payload_hashes: BrandedHash[];
1829
- payload_schemas: BrandedSchema<string>[];
1830
- previous_hashes: (BrandedHash | null)[];
1831
- $destination?: Lowercase<string> & object & object;
1832
- $sourceQuery?: BrandedHash;
1833
- $signatures: (BrandedHex | null)[];
1834
- }>;
1835
- ```
1836
-
1837
- ### Parameters
1838
-
1839
- #### hashes
1840
-
1841
- `BrandedHash`[]
1842
-
1843
- #### schema
1844
-
1845
- `Schema`[]
1846
-
1847
- #### account?
1848
-
1849
- `AccountInstance`
1850
-
1851
- ### Returns
1852
-
1853
- `Promise`\<\{
1854
- `schema`: `"network.xyo.boundwitness"` & `object`;
1855
- `addresses`: `Lowercase`\<`string`\> & `object` & `object`[];
1856
- `payload_hashes`: `BrandedHash`[];
1857
- `payload_schemas`: `BrandedSchema`\<`string`\>[];
1858
- `previous_hashes`: (`BrandedHash` \| `null`)[];
1859
- `$destination?`: `Lowercase`\<`string`\> & `object` & `object`;
1860
- `$sourceQuery?`: `BrandedHash`;
1861
- `$signatures`: (`BrandedHex` \| `null`)[];
1862
- \}\>
1863
-
1864
- ### Inherited from
1865
-
1866
- ```ts
1867
- AbstractDiviner.bindHashesInternal
1868
- ```
1869
-
1870
- ***
1871
-
1872
- ### bindQuery()
1873
-
1874
- ```ts
1875
- protected bindQuery<T>(
1876
- query,
1877
- payloads?,
1878
- account?,
1879
- additionalSigners?): PromiseEx<[UnsignedQueryBoundWitness, Payload[], Payload[]], AccountInstance>;
1880
- ```
1881
-
1882
- ### Type Parameters
1883
-
1884
- #### T
1885
-
1886
- `T` *extends* `Query`
1887
-
1888
- ### Parameters
1889
-
1890
- #### query
1891
-
1892
- `T`
1893
-
1894
- #### payloads?
1895
-
1896
- `Payload`[]
1897
-
1898
- #### account?
1899
-
1900
- `AccountInstance`
1901
-
1902
- #### additionalSigners?
1903
-
1904
- `AccountInstance`[]
1905
-
1906
- ### Returns
1907
-
1908
- `PromiseEx`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `Payload`[]\], `AccountInstance`\>
1909
-
1910
- ### Inherited from
1911
-
1912
- ```ts
1913
- AbstractDiviner.bindQuery
1914
- ```
1915
-
1916
- ***
1917
-
1918
- ### bindQueryInternal()
1919
-
1920
- ```ts
1921
- protected bindQueryInternal<T>(
1922
- query,
1923
- payloads?,
1924
- account?,
1925
- additionalSigners?): Promise<[UnsignedQueryBoundWitness, Payload[], Payload[]]>;
1926
- ```
1927
-
1928
- ### Type Parameters
1929
-
1930
- #### T
1931
-
1932
- `T` *extends* `Query`
1933
-
1934
- ### Parameters
1935
-
1936
- #### query
1937
-
1938
- `T`
1939
-
1940
- #### payloads?
1941
-
1942
- `Payload`[]
1943
-
1944
- #### account?
1945
-
1946
- `AccountInstance`
1947
-
1948
- #### additionalSigners?
1949
-
1950
- `AccountInstance`[]
1951
-
1952
- ### Returns
1953
-
1954
- `Promise`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `Payload`[]\]\>
1955
-
1956
- ### Inherited from
1957
-
1958
- ```ts
1959
- AbstractDiviner.bindQueryInternal
1960
- ```
1961
-
1962
- ***
1963
-
1964
- ### bindQueryResult()
1965
-
1966
- ```ts
1967
- protected bindQueryResult<T>(
1968
- query,
1969
- payloads,
1970
- additionalWitnesses?,
1971
- errors?): Promise<ModuleQueryResult>;
1972
- ```
1973
-
1974
- ### Type Parameters
1975
-
1976
- #### T
1977
-
1978
- `T` *extends* `Query`
1979
-
1980
- ### Parameters
1981
-
1982
- #### query
1983
-
1984
- `T`
1985
-
1986
- #### payloads
1987
-
1988
- `Payload`[]
1989
-
1990
- #### additionalWitnesses?
1991
-
1992
- `AccountInstance`[]
1993
-
1994
- #### errors?
1995
-
1996
- `ModuleError`[]
1997
-
1998
- ### Returns
1999
-
2000
- `Promise`\<`ModuleQueryResult`\>
2001
-
2002
- ### Inherited from
2003
-
2004
- ```ts
2005
- AbstractDiviner.bindQueryResult
2006
- ```
2007
-
2008
- ***
2009
-
2010
- ### generateConfigAndAddress()
2011
-
2012
- ```ts
2013
- protected generateConfigAndAddress(_maxDepth?): Promisable<Payload[]>;
2014
- ```
2015
-
2016
- ### Parameters
2017
-
2018
- #### \_maxDepth?
2019
-
2020
- `number`
2021
-
2022
- ### Returns
2023
-
2024
- `Promisable`\<`Payload`[]\>
2025
-
2026
- ### Inherited from
2027
-
2028
- ```ts
2029
- AbstractDiviner.generateConfigAndAddress
2030
- ```
2031
-
2032
- ***
2033
-
2034
- ### generateDescribe()
2035
-
2036
- ```ts
2037
- protected generateDescribe(): Promise<ModuleDescriptionPayload>;
2038
- ```
2039
-
2040
- ### Returns
2041
-
2042
- `Promise`\<`ModuleDescriptionPayload`\>
2043
-
2044
- ### Inherited from
2045
-
2046
- ```ts
2047
- AbstractDiviner.generateDescribe
2048
- ```
2049
-
2050
- ***
2051
-
2052
- ### ~~getArchivist()~~
2053
-
2054
- ```ts
2055
- protected getArchivist(): Promise<
2056
- | ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
2057
- | undefined>;
2058
- ```
2059
-
2060
- ### Returns
2061
-
2062
- `Promise`\<
2063
- \| `ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>
2064
- \| `undefined`\>
2065
-
2066
- ### Deprecated
2067
-
2068
- use archivistInstance() instead
2069
-
2070
- ### Inherited from
2071
-
2072
- ```ts
2073
- AbstractDiviner.getArchivist
2074
- ```
2075
-
2076
- ***
2077
-
2078
- ### isAllowedArchivingQuery()
2079
-
2080
- ```ts
2081
- protected isAllowedArchivingQuery(schema): boolean;
2082
- ```
2083
-
2084
- ### Parameters
2085
-
2086
- #### schema
2087
-
2088
- `Schema`
2089
-
2090
- ### Returns
2091
-
2092
- `boolean`
2093
-
2094
- ### Inherited from
2095
-
2096
- ```ts
2097
- AbstractDiviner.isAllowedArchivingQuery
2098
- ```
2099
-
2100
- ***
2101
-
2102
- ### moduleAddressHandler()
2103
-
2104
- ```ts
2105
- protected moduleAddressHandler(): Promisable<(AddressPreviousHashPayload | AddressPayload)[]>;
2106
- ```
2107
-
2108
- ### Returns
2109
-
2110
- `Promisable`\<(`AddressPreviousHashPayload` \| `AddressPayload`)[]\>
2111
-
2112
- ### Inherited from
2113
-
2114
- ```ts
2115
- AbstractDiviner.moduleAddressHandler
2116
- ```
2117
-
2118
- ***
2119
-
2120
- ### stateHandler()
2121
-
2122
- ```ts
2123
- protected stateHandler(): Promise<Payload[]>;
2124
- ```
2125
-
2126
- ### Returns
2127
-
2128
- `Promise`\<`Payload`[]\>
2129
-
2130
- ### Inherited from
2131
-
2132
- ```ts
2133
- AbstractDiviner.stateHandler
2134
- ```
2135
-
2136
- ***
2137
-
2138
- ### subscribeHandler()
2139
-
2140
- ```ts
2141
- protected subscribeHandler(): void;
2142
- ```
2143
-
2144
- ### Returns
2145
-
2146
- `void`
2147
-
2148
- ### Inherited from
2149
-
2150
- ```ts
2151
- AbstractDiviner.subscribeHandler
2152
- ```
2153
-
2154
- ***
2155
-
2156
- ### validateConfig()
2157
-
2158
- ```ts
2159
- protected validateConfig(config?, parents?): boolean;
2160
- ```
2161
-
2162
- ### Parameters
2163
-
2164
- #### config?
2165
-
2166
- `unknown`
2167
-
2168
- #### parents?
2169
-
2170
- `string`[]
2171
-
2172
- ### Returns
2173
-
2174
- `boolean`
2175
-
2176
- ### Inherited from
2177
-
2178
- ```ts
2179
- AbstractDiviner.validateConfig
2180
- ```
2181
-
2182
- ***
2183
-
2184
- ### addParent()
2185
-
2186
- ```ts
2187
- addParent(mod): void;
2188
- ```
2189
-
2190
- ### Parameters
2191
-
2192
- #### mod
2193
-
2194
- `ModuleInstance`
2195
-
2196
- ### Returns
2197
-
2198
- `void`
2199
-
2200
- ### Inherited from
2201
-
2202
- ```ts
2203
- AbstractDiviner.addParent
2204
- ```
2205
-
2206
- ***
2207
-
2208
- ### certifyParents()
2209
-
2210
- ```ts
2211
- certifyParents(): Promise<Payload[]>;
2212
- ```
2213
-
2214
- ### Returns
2215
-
2216
- `Promise`\<`Payload`[]\>
2217
-
2218
- ### Inherited from
2219
-
2220
- ```ts
2221
- AbstractDiviner.certifyParents
2222
- ```
2223
-
2224
- ***
2225
-
2226
- ### createHandler()
2227
-
2228
- ```ts
2229
- createHandler(): Promise<void>;
2230
- ```
2231
-
2232
- ### Returns
2233
-
2234
- `Promise`\<`void`\>
2235
-
2236
- ### Inherited from
2237
-
2238
- ```ts
2239
- AbstractDiviner.createHandler
2240
- ```
2241
-
2242
- ***
2243
-
2244
- ### manifest()
2245
-
2246
- ```ts
2247
- manifest(maxDepth?): Promise<ModuleManifestPayload>;
2248
- ```
2249
-
2250
- ### Parameters
2251
-
2252
- #### maxDepth?
2253
-
2254
- `number`
2255
-
2256
- ### Returns
2257
-
2258
- `Promise`\<`ModuleManifestPayload`\>
2259
-
2260
- ### Inherited from
2261
-
2262
- ```ts
2263
- AbstractDiviner.manifest
2264
- ```
2265
-
2266
- ***
2267
-
2268
- ### manifestQuery()
2269
-
2270
- ```ts
2271
- manifestQuery(account, maxDepth?): Promise<ModuleQueryResult<ModuleManifestPayload>>;
2272
- ```
2273
-
2274
- ### Parameters
2275
-
2276
- #### account
2277
-
2278
- `AccountInstance`
2279
-
2280
- #### maxDepth?
2281
-
2282
- `number`
2283
-
2284
- ### Returns
2285
-
2286
- `Promise`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
2287
-
2288
- ### Inherited from
2289
-
2290
- ```ts
2291
- AbstractDiviner.manifestQuery
2292
- ```
2293
-
2294
- ***
2295
-
2296
- ### moduleAddress()
2297
-
2298
- ```ts
2299
- moduleAddress(): Promise<(AddressPreviousHashPayload | AddressPayload)[]>;
2300
- ```
2301
-
2302
- ### Returns
2303
-
2304
- `Promise`\<(`AddressPreviousHashPayload` \| `AddressPayload`)[]\>
2305
-
2306
- ### Inherited from
2307
-
2308
- ```ts
2309
- AbstractDiviner.moduleAddress
2310
- ```
2311
-
2312
- ***
2313
-
2314
- ### parents()
2315
-
2316
- ```ts
2317
- parents(): Promisable<NodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>[]>;
2318
- ```
2319
-
2320
- ### Returns
2321
-
2322
- `Promisable`\<`NodeInstance`\<`NodeParams`\<`AnyConfigSchema`\<`NodeConfig`\>\>, `NodeModuleEventData`\>[]\>
2323
-
2324
- ### Inherited from
2325
-
2326
- ```ts
2327
- AbstractDiviner.parents
2328
- ```
2329
-
2330
- ***
2331
-
2332
- ### privateChildren()
2333
-
2334
- ```ts
2335
- privateChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
2336
- ```
2337
-
2338
- ### Returns
2339
-
2340
- `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
2341
-
2342
- ### Inherited from
2343
-
2344
- ```ts
2345
- AbstractDiviner.privateChildren
2346
- ```
2347
-
2348
- ***
2349
-
2350
- ### publicChildren()
2351
-
2352
- ```ts
2353
- publicChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
2354
- ```
2355
-
2356
- ### Returns
2357
-
2358
- `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
2359
-
2360
- ### Inherited from
2361
-
2362
- ```ts
2363
- AbstractDiviner.publicChildren
2364
- ```
2365
-
2366
- ***
2367
-
2368
- ### removeParent()
2369
-
2370
- ```ts
2371
- removeParent(address): void;
2372
- ```
2373
-
2374
- ### Parameters
2375
-
2376
- #### address
2377
-
2378
- `BrandedAddress`
2379
-
2380
- ### Returns
2381
-
2382
- `void`
2383
-
2384
- ### Inherited from
2385
-
2386
- ```ts
2387
- AbstractDiviner.removeParent
2388
- ```
2389
-
2390
- ***
2391
-
2392
- ### resolve()
2393
-
2394
- ### Call Signature
2395
-
2396
- ```ts
2397
- resolve(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
2398
- ```
2399
-
2400
- #### Returns
2401
-
2402
- `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
2403
-
2404
- #### Inherited from
2405
-
2406
- ```ts
2407
- AbstractDiviner.resolve
2408
- ```
2409
-
2410
- ### Call Signature
2411
-
2412
- ```ts
2413
- resolve<T>(all, options?): Promise<T[]>;
2414
- ```
2415
-
2416
- #### Type Parameters
2417
-
2418
- ##### T
2419
-
2420
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2421
-
2422
- #### Parameters
2423
-
2424
- ##### all
2425
-
2426
- `"*"`
2427
-
2428
- ##### options?
2429
-
2430
- `ModuleFilterOptions`\<`T`\>
2431
-
2432
- #### Returns
2433
-
2434
- `Promise`\<`T`[]\>
2435
-
2436
- #### Inherited from
2437
-
2438
- ```ts
2439
- AbstractDiviner.resolve
2440
- ```
2441
-
2442
- ### Call Signature
2443
-
2444
- ```ts
2445
- resolve<T>(id, options?): Promise<T | undefined>;
2446
- ```
2447
-
2448
- #### Type Parameters
2449
-
2450
- ##### T
2451
-
2452
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2453
-
2454
- #### Parameters
2455
-
2456
- ##### id
2457
-
2458
- `ModuleIdentifier`
2459
-
2460
- ##### options?
2461
-
2462
- `ModuleFilterOptions`\<`T`\>
2463
-
2464
- #### Returns
2465
-
2466
- `Promise`\<`T` \| `undefined`\>
2467
-
2468
- #### Inherited from
2469
-
2470
- ```ts
2471
- AbstractDiviner.resolve
2472
- ```
2473
-
2474
- ***
2475
-
2476
- ### resolveIdentifier()
2477
-
2478
- ```ts
2479
- resolveIdentifier(id, options?): Promise<BrandedAddress | undefined>;
2480
- ```
2481
-
2482
- ### Parameters
2483
-
2484
- #### id
2485
-
2486
- `ModuleIdentifier`
2487
-
2488
- #### options?
2489
-
2490
- `ObjectFilterOptions`\<`AnyObject`\>
2491
-
2492
- ### Returns
2493
-
2494
- `Promise`\<`BrandedAddress` \| `undefined`\>
2495
-
2496
- ### Inherited from
2497
-
2498
- ```ts
2499
- AbstractDiviner.resolveIdentifier
2500
- ```
2501
-
2502
- ***
2503
-
2504
- ### resolvePrivate()
2505
-
2506
- ### Call Signature
2507
-
2508
- ```ts
2509
- resolvePrivate<T>(all, options?): Promise<T[]>;
2510
- ```
2511
-
2512
- #### Type Parameters
2513
-
2514
- ##### T
2515
-
2516
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2517
-
2518
- #### Parameters
2519
-
2520
- ##### all
2521
-
2522
- `"*"`
2523
-
2524
- ##### options?
2525
-
2526
- `ModuleFilterOptions`\<`T`\>
2527
-
2528
- #### Returns
2529
-
2530
- `Promise`\<`T`[]\>
2531
-
2532
- #### Inherited from
2533
-
2534
- ```ts
2535
- AbstractDiviner.resolvePrivate
2536
- ```
2537
-
2538
- ### Call Signature
2539
-
2540
- ```ts
2541
- resolvePrivate<T>(id, options?): Promise<T | undefined>;
2542
- ```
2543
-
2544
- #### Type Parameters
2545
-
2546
- ##### T
2547
-
2548
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2549
-
2550
- #### Parameters
2551
-
2552
- ##### id
2553
-
2554
- `ModuleIdentifier`
2555
-
2556
- ##### options?
2557
-
2558
- `ModuleFilterOptions`\<`T`\>
2559
-
2560
- #### Returns
2561
-
2562
- `Promise`\<`T` \| `undefined`\>
2563
-
2564
- #### Inherited from
2565
-
2566
- ```ts
2567
- AbstractDiviner.resolvePrivate
2568
- ```
2569
-
2570
- ***
2571
-
2572
- ### siblings()
2573
-
2574
- ```ts
2575
- siblings(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
2576
- ```
2577
-
2578
- ### Returns
2579
-
2580
- `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
2581
-
2582
- ### Inherited from
2583
-
2584
- ```ts
2585
- AbstractDiviner.siblings
2586
- ```
2587
-
2588
- ***
2589
-
2590
- ### state()
2591
-
2592
- ```ts
2593
- state(): Promise<Payload[]>;
2594
- ```
2595
-
2596
- ### Returns
2597
-
2598
- `Promise`\<`Payload`[]\>
2599
-
2600
- ### Inherited from
2601
-
2602
- ```ts
2603
- AbstractDiviner.state
2604
- ```
2605
-
2606
- ***
2607
-
2608
- ### stateQuery()
2609
-
2610
- ```ts
2611
- stateQuery(account): Promise<ModuleQueryResult>;
2612
- ```
2613
-
2614
- ### Parameters
2615
-
2616
- #### account
2617
-
2618
- `AccountInstance`
2619
-
2620
- ### Returns
2621
-
2622
- `Promise`\<`ModuleQueryResult`\>
2623
-
2624
- ### Inherited from
2625
-
2626
- ```ts
2627
- AbstractDiviner.stateQuery
2628
- ```
2629
-
2630
- ***
2631
-
2632
- ### subscribe()
2633
-
2634
- ```ts
2635
- subscribe(_queryAccount?): void;
2636
- ```
2637
-
2638
- ### Parameters
2639
-
2640
- #### \_queryAccount?
2641
-
2642
- `AccountInstance`
2643
-
2644
- ### Returns
2645
-
2646
- `void`
2647
-
2648
- ### Inherited from
2649
-
2650
- ```ts
2651
- AbstractDiviner.subscribe
2652
- ```
2653
-
2654
- ***
2655
-
2656
- ### manifestHandler()
2657
-
2658
- ```ts
2659
- protected manifestHandler(maxDepth?, _ignoreAddresses?): Promise<ModuleManifestPayload>;
2660
- ```
2661
-
2662
- ### Parameters
2663
-
2664
- #### maxDepth?
2665
-
2666
- `number`
2667
-
2668
- #### \_ignoreAddresses?
2669
-
2670
- `BrandedAddress`[]
2671
-
2672
- ### Returns
2673
-
2674
- `Promise`\<`ModuleManifestPayload`\>
2675
-
2676
- ### Inherited from
2677
-
2678
- ```ts
2679
- AbstractDiviner.manifestHandler
2680
- ```
2681
-
2682
- ***
2683
-
2684
- ### resolveArchivingArchivists()
2685
-
2686
- ```ts
2687
- protected resolveArchivingArchivists(): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>[]>;
2688
- ```
2689
-
2690
- ### Returns
2691
-
2692
- `Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>[]\>
2693
-
2694
- ### Inherited from
2695
-
2696
- ```ts
2697
- AbstractDiviner.resolveArchivingArchivists
2698
- ```
2699
-
2700
- ***
2701
-
2702
- ### sendQuery()
2703
-
2704
- ```ts
2705
- protected sendQuery<T, P, R>(
2706
- queryPayload,
2707
- payloads?,
2708
- account?): Promise<R[]>;
2709
- ```
2710
-
2711
- ### Type Parameters
2712
-
2713
- #### T
2714
-
2715
- `T` *extends* `Query`
2716
-
2717
- #### P
2718
-
2719
- `P` *extends* `Payload` = `Payload`
2720
-
2721
- #### R
2722
-
2723
- `R` *extends* `Payload` = `Payload`
2724
-
2725
- ### Parameters
2726
-
2727
- #### queryPayload
2728
-
2729
- `T`
2730
-
2731
- #### payloads?
2732
-
2733
- `P`[]
2734
-
2735
- #### account?
2736
-
2737
- `AccountInstance`
2738
-
2739
- ### Returns
2740
-
2741
- `Promise`\<`R`[]\>
2742
-
2743
- ### Inherited from
2744
-
2745
- ```ts
2746
- AbstractDiviner.sendQuery
2747
- ```
2748
-
2749
- ***
2750
-
2751
- ### sendQueryRaw()
2752
-
2753
- ```ts
2754
- protected sendQueryRaw<T, P, R>(
2755
- queryPayload,
2756
- payloads?,
2757
- account?): Promise<ModuleQueryResult<R>>;
2758
- ```
2759
-
2760
- ### Type Parameters
2761
-
2762
- #### T
2763
-
2764
- `T` *extends* `Query`
2765
-
2766
- #### P
2767
-
2768
- `P` *extends* `Payload` = `Payload`
2769
-
2770
- #### R
2771
-
2772
- `R` *extends* `Payload` = `Payload`
2773
-
2774
- ### Parameters
2775
-
2776
- #### queryPayload
2777
-
2778
- `T`
2779
-
2780
- #### payloads?
2781
-
2782
- `P`[]
2783
-
2784
- #### account?
2785
-
2786
- `AccountInstance`
2787
-
2788
- ### Returns
2789
-
2790
- `Promise`\<`ModuleQueryResult`\<`R`\>\>
2791
-
2792
- ### Inherited from
2793
-
2794
- ```ts
2795
- AbstractDiviner.sendQueryRaw
2796
- ```
2797
-
2798
- ***
2799
-
2800
- ### storeToArchivists()
2801
-
2802
- ```ts
2803
- protected storeToArchivists(payloads): Promise<Payload[]>;
2804
- ```
2805
-
2806
- ### Parameters
2807
-
2808
- #### payloads
2809
-
2810
- `Payload`[]
2811
-
2812
- ### Returns
2813
-
2814
- `Promise`\<`Payload`[]\>
2815
-
2816
- ### Inherited from
2817
-
2818
- ```ts
2819
- AbstractDiviner.storeToArchivists
2820
- ```
2821
-
2822
- ### type-aliases
2823
-
2824
- ### <a id="ConfigStore"></a>ConfigStore
2825
-
2826
- [**@xyo-network/diviner-indexing-memory**](#../README)
2827
-
2828
- ***
2829
-
2830
- ```ts
2831
- type ConfigStore = Extract<keyof IndexingDivinerConfig, ConfigStoreKey>;
2832
- ```
2833
-
2834
- ### <a id="ConfigStoreKey"></a>ConfigStoreKey
2835
-
2836
- [**@xyo-network/diviner-indexing-memory**](#../README)
2837
-
2838
- ***
2839
-
2840
- ```ts
2841
- type ConfigStoreKey = "indexStore" | "stateStore";
2842
- ```
2843
41
 
2844
42
 
2845
43
  [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png