@xyo-network/diviner-jsonpath-aggregate-memory 5.3.25 → 5.3.27

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