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