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