@xyo-network/archivist-storage 5.3.29 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -38,3872 +38,6 @@ bun add {{name}}
38
38
 
39
39
  See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
40
 
41
- ## Reference
42
-
43
- ### packages
44
-
45
- ### modules
46
-
47
- ### packages
48
-
49
- ### archivist
50
-
51
- ### packages
52
-
53
- ### storage
54
-
55
- ### .temp-typedoc
56
-
57
- ### classes
58
-
59
- ### <a id="StorageArchivist"></a>StorageArchivist
60
-
61
- [**@xyo-network/archivist-storage**](#../README)
62
-
63
- ***
64
-
65
- ## Extends
66
-
67
- - `AbstractArchivist`\<`TParams`, `TEventData`\>
68
-
69
- ## Type Parameters
70
-
71
- ### TParams
72
-
73
- `TParams` *extends* [`StorageArchivistParams`](#../type-aliases/StorageArchivistParams) = [`StorageArchivistParams`](#../type-aliases/StorageArchivistParams)
74
-
75
- ### TEventData
76
-
77
- `TEventData` *extends* `ArchivistModuleEventData` = `ArchivistModuleEventData`
78
-
79
- ## Implements
80
-
81
- - `ArchivistInstance`
82
-
83
- ## Constructors
84
-
85
- ### Constructor
86
-
87
- ```ts
88
- new StorageArchivist<TParams, TEventData>(key, params): StorageArchivist<TParams, TEventData>;
89
- ```
90
-
91
- ### Parameters
92
-
93
- #### key
94
-
95
- `unknown`
96
-
97
- #### params
98
-
99
- `Partial`\<`TParams` & `RequiredCreatableParams`\>
100
-
101
- ### Returns
102
-
103
- `StorageArchivist`\<`TParams`, `TEventData`\>
104
-
105
- ### Inherited from
106
-
107
- ```ts
108
- AbstractArchivist<TParams, TEventData>.constructor
109
- ```
110
-
111
- ## Properties
112
-
113
- ### uniqueName
114
-
115
- ```ts
116
- readonly static uniqueName: string;
117
- ```
118
-
119
- ### Inherited from
120
-
121
- ```ts
122
- AbstractArchivist.uniqueName
123
- ```
124
-
125
- ***
126
-
127
- ### defaultNextLimitSetting
128
-
129
- ```ts
130
- protected static defaultNextLimitSetting: number;
131
- ```
132
-
133
- ### Inherited from
134
-
135
- ```ts
136
- AbstractArchivist.defaultNextLimitSetting
137
- ```
138
-
139
- ***
140
-
141
- ### configSchemas
142
-
143
- ```ts
144
- readonly static configSchemas: Schema[];
145
- ```
146
-
147
- ### Overrides
148
-
149
- ```ts
150
- AbstractArchivist.configSchemas
151
- ```
152
-
153
- ***
154
-
155
- ### defaultConfigSchema
156
-
157
- ```ts
158
- readonly static defaultConfigSchema: Schema = StorageArchivistConfigSchema;
159
- ```
160
-
161
- ### Overrides
162
-
163
- ```ts
164
- AbstractArchivist.defaultConfigSchema
165
- ```
166
-
167
- ***
168
-
169
- ### labels
170
-
171
- ```ts
172
- readonly static labels: object;
173
- ```
174
-
175
- #### network.xyo.storage.class
176
-
177
- ```ts
178
- network.xyo.storage.class: string = 'disk';
179
- ```
180
-
181
- ### Overrides
182
-
183
- ```ts
184
- AbstractArchivist.labels
185
- ```
186
-
187
- ***
188
-
189
- ### allowRandomAccount
190
-
191
- ```ts
192
- readonly static allowRandomAccount: boolean;
193
- ```
194
-
195
- ### Inherited from
196
-
197
- ```ts
198
- AbstractArchivist.allowRandomAccount
199
- ```
200
-
201
- ***
202
-
203
- ### defaultLogger
204
-
205
- ```ts
206
- static defaultLogger: Logger;
207
- ```
208
-
209
- ### Inherited from
210
-
211
- ```ts
212
- AbstractArchivist.defaultLogger
213
- ```
214
-
215
- ***
216
-
217
- ### enableLazyLoad
218
-
219
- ```ts
220
- static enableLazyLoad: boolean;
221
- ```
222
-
223
- ### Inherited from
224
-
225
- ```ts
226
- AbstractArchivist.enableLazyLoad
227
- ```
228
-
229
- ***
230
-
231
- ### privateConstructorKey
232
-
233
- ```ts
234
- protected static privateConstructorKey: string;
235
- ```
236
-
237
- ### Inherited from
238
-
239
- ```ts
240
- AbstractArchivist.privateConstructorKey
241
- ```
242
-
243
- ***
244
-
245
- ### \_account
246
-
247
- ```ts
248
- protected _account: AccountInstance | undefined;
249
- ```
250
-
251
- ### Inherited from
252
-
253
- ```ts
254
- AbstractArchivist._account
255
- ```
256
-
257
- ***
258
-
259
- ### \_cachedManifests
260
-
261
- ```ts
262
- protected _cachedManifests: LRUCache<number, ModuleManifestPayload, unknown>;
263
- ```
264
-
265
- ### Inherited from
266
-
267
- ```ts
268
- AbstractArchivist._cachedManifests
269
- ```
270
-
271
- ***
272
-
273
- ### \_globalReentrancyMutex
274
-
275
- ```ts
276
- protected _globalReentrancyMutex: Mutex | undefined;
277
- ```
278
-
279
- ### Inherited from
280
-
281
- ```ts
282
- AbstractArchivist._globalReentrancyMutex
283
- ```
284
-
285
- ***
286
-
287
- ### \_lastError?
288
-
289
- ```ts
290
- protected optional _lastError?: ModuleDetailsError;
291
- ```
292
-
293
- ### Inherited from
294
-
295
- ```ts
296
- AbstractArchivist._lastError
297
- ```
298
-
299
- ***
300
-
301
- ### \_moduleConfigQueryValidator
302
-
303
- ```ts
304
- protected _moduleConfigQueryValidator: Queryable | undefined;
305
- ```
306
-
307
- ### Inherited from
308
-
309
- ```ts
310
- AbstractArchivist._moduleConfigQueryValidator
311
- ```
312
-
313
- ***
314
-
315
- ### \_supportedQueryValidator
316
-
317
- ```ts
318
- protected _supportedQueryValidator: Queryable | undefined;
319
- ```
320
-
321
- ### Inherited from
322
-
323
- ```ts
324
- AbstractArchivist._supportedQueryValidator
325
- ```
326
-
327
- ***
328
-
329
- ### useNewResolver
330
-
331
- ```ts
332
- readonly static useNewResolver: false = false;
333
- ```
334
-
335
- ### Inherited from
336
-
337
- ```ts
338
- AbstractArchivist.useNewResolver
339
- ```
340
-
341
- ## Accessors
342
-
343
- ### defaultNextLimit
344
-
345
- ### Get Signature
346
-
347
- ```ts
348
- get static defaultNextLimit(): number;
349
- ```
350
-
351
- #### Returns
352
-
353
- `number`
354
-
355
- ### Inherited from
356
-
357
- ```ts
358
- AbstractArchivist.defaultNextLimit
359
- ```
360
-
361
- ***
362
-
363
- ### requireAllParents
364
-
365
- ### Get Signature
366
-
367
- ```ts
368
- get requireAllParents(): boolean;
369
- ```
370
-
371
- #### Returns
372
-
373
- `boolean`
374
-
375
- ### Inherited from
376
-
377
- ```ts
378
- AbstractArchivist.requireAllParents
379
- ```
380
-
381
- ***
382
-
383
- ### payloadCountGauge
384
-
385
- ### Get Signature
386
-
387
- ```ts
388
- get protected payloadCountGauge(): Gauge<Attributes> | null | undefined;
389
- ```
390
-
391
- #### Returns
392
-
393
- `Gauge`\<`Attributes`\> \| `null` \| `undefined`
394
-
395
- ### Inherited from
396
-
397
- ```ts
398
- AbstractArchivist.payloadCountGauge
399
- ```
400
-
401
- ***
402
-
403
- ### payloadCountMeter
404
-
405
- ### Get Signature
406
-
407
- ```ts
408
- get protected payloadCountMeter(): Meter | null;
409
- ```
410
-
411
- #### Returns
412
-
413
- `Meter` \| `null`
414
-
415
- ### Inherited from
416
-
417
- ```ts
418
- AbstractArchivist.payloadCountMeter
419
- ```
420
-
421
- ***
422
-
423
- ### storeParentReads
424
-
425
- ### Get Signature
426
-
427
- ```ts
428
- get protected storeParentReads(): boolean;
429
- ```
430
-
431
- #### Returns
432
-
433
- `boolean`
434
-
435
- ### Inherited from
436
-
437
- ```ts
438
- AbstractArchivist.storeParentReads
439
- ```
440
-
441
- ***
442
-
443
- ### maxEntries
444
-
445
- ### Get Signature
446
-
447
- ```ts
448
- get maxEntries(): number;
449
- ```
450
-
451
- #### Returns
452
-
453
- `number`
454
-
455
- ***
456
-
457
- ### maxEntrySize
458
-
459
- ### Get Signature
460
-
461
- ```ts
462
- get maxEntrySize(): number;
463
- ```
464
-
465
- #### Returns
466
-
467
- `number`
468
-
469
- ***
470
-
471
- ### namespace
472
-
473
- ### Get Signature
474
-
475
- ```ts
476
- get namespace(): string;
477
- ```
478
-
479
- #### Returns
480
-
481
- `string`
482
-
483
- ***
484
-
485
- ### queries
486
-
487
- ### Get Signature
488
-
489
- ```ts
490
- get queries(): Schema[];
491
- ```
492
-
493
- #### Returns
494
-
495
- `Schema`[]
496
-
497
- ### Implementation of
498
-
499
- ```ts
500
- ArchivistInstance.queries
501
- ```
502
-
503
- ### Overrides
504
-
505
- ```ts
506
- AbstractArchivist.queries
507
- ```
508
-
509
- ***
510
-
511
- ### type
512
-
513
- ### Get Signature
514
-
515
- ```ts
516
- get type(): "local" | "session" | "page";
517
- ```
518
-
519
- #### Returns
520
-
521
- `"local"` \| `"session"` \| `"page"`
522
-
523
- ***
524
-
525
- ### account
526
-
527
- ### Get Signature
528
-
529
- ```ts
530
- get account(): AccountInstance;
531
- ```
532
-
533
- #### Returns
534
-
535
- `AccountInstance`
536
-
537
- ### Implementation of
538
-
539
- ```ts
540
- ArchivistInstance.account
541
- ```
542
-
543
- ### Inherited from
544
-
545
- ```ts
546
- AbstractArchivist.account
547
- ```
548
-
549
- ***
550
-
551
- ### additionalSigners
552
-
553
- ### Get Signature
554
-
555
- ```ts
556
- get additionalSigners(): AccountInstance[];
557
- ```
558
-
559
- #### Returns
560
-
561
- `AccountInstance`[]
562
-
563
- ### Inherited from
564
-
565
- ```ts
566
- AbstractArchivist.additionalSigners
567
- ```
568
-
569
- ***
570
-
571
- ### address
572
-
573
- ### Get Signature
574
-
575
- ```ts
576
- get address(): Lowercase<string> & object & object;
577
- ```
578
-
579
- #### Returns
580
-
581
- `Lowercase`\<`string`\> & `object` & `object`
582
-
583
- ### Implementation of
584
-
585
- ```ts
586
- ArchivistInstance.address
587
- ```
588
-
589
- ### Inherited from
590
-
591
- ```ts
592
- AbstractArchivist.address
593
- ```
594
-
595
- ***
596
-
597
- ### allowAnonymous
598
-
599
- ### Get Signature
600
-
601
- ```ts
602
- get allowAnonymous(): boolean;
603
- ```
604
-
605
- #### Returns
606
-
607
- `boolean`
608
-
609
- ### Inherited from
610
-
611
- ```ts
612
- AbstractArchivist.allowAnonymous
613
- ```
614
-
615
- ***
616
-
617
- ### allowNameResolution
618
-
619
- ### Get Signature
620
-
621
- ```ts
622
- get allowNameResolution(): boolean;
623
- ```
624
-
625
- #### Returns
626
-
627
- `boolean`
628
-
629
- ### Inherited from
630
-
631
- ```ts
632
- AbstractArchivist.allowNameResolution
633
- ```
634
-
635
- ***
636
-
637
- ### archiving
638
-
639
- ### Get Signature
640
-
641
- ```ts
642
- get archiving():
643
- | {
644
- archivists?: ModuleIdentifier[];
645
- queries?: Schema[];
646
- }
647
- | undefined;
648
- ```
649
-
650
- #### Returns
651
-
652
- \| \{
653
- `archivists?`: `ModuleIdentifier`[];
654
- `queries?`: `Schema`[];
655
- \}
656
- \| `undefined`
657
-
658
- ### Inherited from
659
-
660
- ```ts
661
- AbstractArchivist.archiving
662
- ```
663
-
664
- ***
665
-
666
- ### archivist
667
-
668
- ### Get Signature
669
-
670
- ```ts
671
- get archivist(): ModuleIdentifier | undefined;
672
- ```
673
-
674
- #### Returns
675
-
676
- `ModuleIdentifier` \| `undefined`
677
-
678
- ### Inherited from
679
-
680
- ```ts
681
- AbstractArchivist.archivist
682
- ```
683
-
684
- ***
685
-
686
- ### config
687
-
688
- ### Get Signature
689
-
690
- ```ts
691
- get config(): TParams["config"] & object;
692
- ```
693
-
694
- #### Returns
695
-
696
- `TParams`\[`"config"`\] & `object`
697
-
698
- ### Implementation of
699
-
700
- ```ts
701
- ArchivistInstance.config
702
- ```
703
-
704
- ### Inherited from
705
-
706
- ```ts
707
- AbstractArchivist.config
708
- ```
709
-
710
- ***
711
-
712
- ### dead
713
-
714
- ### Get Signature
715
-
716
- ```ts
717
- get dead(): boolean;
718
- ```
719
-
720
- #### Returns
721
-
722
- `boolean`
723
-
724
- ### Inherited from
725
-
726
- ```ts
727
- AbstractArchivist.dead
728
- ```
729
-
730
- ***
731
-
732
- ### ephemeralQueryAccountEnabled
733
-
734
- ### Get Signature
735
-
736
- ```ts
737
- get ephemeralQueryAccountEnabled(): boolean;
738
- ```
739
-
740
- #### Returns
741
-
742
- `boolean`
743
-
744
- ### Inherited from
745
-
746
- ```ts
747
- AbstractArchivist.ephemeralQueryAccountEnabled
748
- ```
749
-
750
- ***
751
-
752
- ### globalReentrancyMutex
753
-
754
- ### Get Signature
755
-
756
- ```ts
757
- get globalReentrancyMutex(): Mutex | undefined;
758
- ```
759
-
760
- #### Returns
761
-
762
- `Mutex` \| `undefined`
763
-
764
- ### Inherited from
765
-
766
- ```ts
767
- AbstractArchivist.globalReentrancyMutex
768
- ```
769
-
770
- ***
771
-
772
- ### id
773
-
774
- ### Get Signature
775
-
776
- ```ts
777
- get id(): string;
778
- ```
779
-
780
- The name (if specified) or address of the module
781
-
782
- #### Returns
783
-
784
- `string`
785
-
786
- ### Implementation of
787
-
788
- ```ts
789
- ArchivistInstance.id
790
- ```
791
-
792
- ### Inherited from
793
-
794
- ```ts
795
- AbstractArchivist.id
796
- ```
797
-
798
- ***
799
-
800
- ### logger
801
-
802
- ### Get Signature
803
-
804
- ```ts
805
- get logger(): Logger | undefined;
806
- ```
807
-
808
- #### Returns
809
-
810
- `Logger` \| `undefined`
811
-
812
- ### Inherited from
813
-
814
- ```ts
815
- AbstractArchivist.logger
816
- ```
817
-
818
- ***
819
-
820
- ### priority
821
-
822
- ### Get Signature
823
-
824
- ```ts
825
- get priority(): 2;
826
- ```
827
-
828
- #### Returns
829
-
830
- `2`
831
-
832
- ### Implementation of
833
-
834
- ```ts
835
- ArchivistInstance.priority
836
- ```
837
-
838
- ### Inherited from
839
-
840
- ```ts
841
- AbstractArchivist.priority
842
- ```
843
-
844
- ***
845
-
846
- ### reentrancy
847
-
848
- ### Get Signature
849
-
850
- ```ts
851
- get reentrancy():
852
- | {
853
- action: "skip" | "wait";
854
- scope: "global";
855
- }
856
- | undefined;
857
- ```
858
-
859
- #### Returns
860
-
861
- \| \{
862
- `action`: `"skip"` \| `"wait"`;
863
- `scope`: `"global"`;
864
- \}
865
- \| `undefined`
866
-
867
- ### Inherited from
868
-
869
- ```ts
870
- AbstractArchivist.reentrancy
871
- ```
872
-
873
- ***
874
-
875
- ### statusReporter
876
-
877
- ### Get Signature
878
-
879
- ```ts
880
- get statusReporter():
881
- | ModuleStatusReporter & CreatableStatusReporter<void>
882
- | undefined;
883
- ```
884
-
885
- The status reporter used to broadcast lifecycle changes.
886
-
887
- #### Returns
888
-
889
- \| `ModuleStatusReporter` & `CreatableStatusReporter`\<`void`\>
890
- \| `undefined`
891
-
892
- ### Inherited from
893
-
894
- ```ts
895
- AbstractArchivist.statusReporter
896
- ```
897
-
898
- ***
899
-
900
- ### timestamp
901
-
902
- ### Get Signature
903
-
904
- ```ts
905
- get timestamp(): boolean;
906
- ```
907
-
908
- #### Returns
909
-
910
- `boolean`
911
-
912
- ### Inherited from
913
-
914
- ```ts
915
- AbstractArchivist.timestamp
916
- ```
917
-
918
- ***
919
-
920
- ### moduleConfigQueryValidator
921
-
922
- ### Get Signature
923
-
924
- ```ts
925
- get protected moduleConfigQueryValidator(): Queryable;
926
- ```
927
-
928
- #### Returns
929
-
930
- `Queryable`
931
-
932
- ### Inherited from
933
-
934
- ```ts
935
- AbstractArchivist.moduleConfigQueryValidator
936
- ```
937
-
938
- ***
939
-
940
- ### supportedQueryValidator
941
-
942
- ### Get Signature
943
-
944
- ```ts
945
- get protected supportedQueryValidator(): Queryable;
946
- ```
947
-
948
- #### Returns
949
-
950
- `Queryable`
951
-
952
- ### Inherited from
953
-
954
- ```ts
955
- AbstractArchivist.supportedQueryValidator
956
- ```
957
-
958
- ***
959
-
960
- ### downResolver
961
-
962
- ### Get Signature
963
-
964
- ```ts
965
- get downResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
966
- ```
967
-
968
- #### Returns
969
-
970
- `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
971
-
972
- ### Inherited from
973
-
974
- ```ts
975
- AbstractArchivist.downResolver
976
- ```
977
-
978
- ***
979
-
980
- ### modName
981
-
982
- ### Get Signature
983
-
984
- ```ts
985
- get modName(): string | undefined;
986
- ```
987
-
988
- #### Returns
989
-
990
- `string` \| `undefined`
991
-
992
- ### Implementation of
993
-
994
- ```ts
995
- ArchivistInstance.modName
996
- ```
997
-
998
- ### Inherited from
999
-
1000
- ```ts
1001
- AbstractArchivist.modName
1002
- ```
1003
-
1004
- ***
1005
-
1006
- ### moduleIdentifierTransformers
1007
-
1008
- ### Get Signature
1009
-
1010
- ```ts
1011
- get moduleIdentifierTransformers(): ModuleIdentifierTransformer[];
1012
- ```
1013
-
1014
- #### Returns
1015
-
1016
- `ModuleIdentifierTransformer`[]
1017
-
1018
- ### Inherited from
1019
-
1020
- ```ts
1021
- AbstractArchivist.moduleIdentifierTransformers
1022
- ```
1023
-
1024
- ***
1025
-
1026
- ### privateResolver
1027
-
1028
- ### Get Signature
1029
-
1030
- ```ts
1031
- get privateResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
1032
- ```
1033
-
1034
- #### Returns
1035
-
1036
- `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
1037
-
1038
- ### Inherited from
1039
-
1040
- ```ts
1041
- AbstractArchivist.privateResolver
1042
- ```
1043
-
1044
- ***
1045
-
1046
- ### root
1047
-
1048
- ### Get Signature
1049
-
1050
- ```ts
1051
- get root(): this;
1052
- ```
1053
-
1054
- #### Returns
1055
-
1056
- `this`
1057
-
1058
- ### Inherited from
1059
-
1060
- ```ts
1061
- AbstractArchivist.root
1062
- ```
1063
-
1064
- ***
1065
-
1066
- ### timeBudget
1067
-
1068
- ### Get Signature
1069
-
1070
- ```ts
1071
- get timeBudget(): number | undefined;
1072
- ```
1073
-
1074
- #### Returns
1075
-
1076
- `number` \| `undefined`
1077
-
1078
- ### Inherited from
1079
-
1080
- ```ts
1081
- AbstractArchivist.timeBudget
1082
- ```
1083
-
1084
- ***
1085
-
1086
- ### upResolver
1087
-
1088
- ### Get Signature
1089
-
1090
- ```ts
1091
- get upResolver(): CompositeModuleResolver<CompositeModuleResolverParams>;
1092
- ```
1093
-
1094
- #### Returns
1095
-
1096
- `CompositeModuleResolver`\<`CompositeModuleResolverParams`\>
1097
-
1098
- ### Inherited from
1099
-
1100
- ```ts
1101
- AbstractArchivist.upResolver
1102
- ```
1103
-
1104
- ## Methods
1105
-
1106
- ### ~~all()~~
1107
-
1108
- ```ts
1109
- all(): Promise<WithStorageMeta<Payload>[]>;
1110
- ```
1111
-
1112
- ### Returns
1113
-
1114
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1115
-
1116
- ### Deprecated
1117
-
1118
- use next or snapshot instead
1119
-
1120
- ### Implementation of
1121
-
1122
- ```ts
1123
- ArchivistInstance.all
1124
- ```
1125
-
1126
- ### Inherited from
1127
-
1128
- ```ts
1129
- AbstractArchivist.all
1130
- ```
1131
-
1132
- ***
1133
-
1134
- ### allQuery()
1135
-
1136
- ```ts
1137
- allQuery(account): Promise<ModuleQueryResult>;
1138
- ```
1139
-
1140
- deprecated use nextQuery or snapshotQuery instead
1141
-
1142
- ### Parameters
1143
-
1144
- #### account
1145
-
1146
- `AccountInstance`
1147
-
1148
- ### Returns
1149
-
1150
- `Promise`\<`ModuleQueryResult`\>
1151
-
1152
- ### Implementation of
1153
-
1154
- ```ts
1155
- ArchivistInstance.allQuery
1156
- ```
1157
-
1158
- ### Inherited from
1159
-
1160
- ```ts
1161
- AbstractArchivist.allQuery
1162
- ```
1163
-
1164
- ***
1165
-
1166
- ### clear()
1167
-
1168
- ```ts
1169
- clear(): Promise<void>;
1170
- ```
1171
-
1172
- ### Returns
1173
-
1174
- `Promise`\<`void`\>
1175
-
1176
- ### Implementation of
1177
-
1178
- ```ts
1179
- ArchivistInstance.clear
1180
- ```
1181
-
1182
- ### Inherited from
1183
-
1184
- ```ts
1185
- AbstractArchivist.clear
1186
- ```
1187
-
1188
- ***
1189
-
1190
- ### clearQuery()
1191
-
1192
- ```ts
1193
- clearQuery(account): Promise<ModuleQueryResult>;
1194
- ```
1195
-
1196
- ### Parameters
1197
-
1198
- #### account
1199
-
1200
- `AccountInstance`
1201
-
1202
- ### Returns
1203
-
1204
- `Promise`\<`ModuleQueryResult`\>
1205
-
1206
- ### Implementation of
1207
-
1208
- ```ts
1209
- ArchivistInstance.clearQuery
1210
- ```
1211
-
1212
- ### Inherited from
1213
-
1214
- ```ts
1215
- AbstractArchivist.clearQuery
1216
- ```
1217
-
1218
- ***
1219
-
1220
- ### commit()
1221
-
1222
- ```ts
1223
- commit(): Promise<object[]>;
1224
- ```
1225
-
1226
- ### Returns
1227
-
1228
- `Promise`\<`object`[]\>
1229
-
1230
- ### Implementation of
1231
-
1232
- ```ts
1233
- ArchivistInstance.commit
1234
- ```
1235
-
1236
- ### Inherited from
1237
-
1238
- ```ts
1239
- AbstractArchivist.commit
1240
- ```
1241
-
1242
- ***
1243
-
1244
- ### commitQuery()
1245
-
1246
- ```ts
1247
- commitQuery(account): Promise<ModuleQueryResult>;
1248
- ```
1249
-
1250
- ### Parameters
1251
-
1252
- #### account
1253
-
1254
- `AccountInstance`
1255
-
1256
- ### Returns
1257
-
1258
- `Promise`\<`ModuleQueryResult`\>
1259
-
1260
- ### Implementation of
1261
-
1262
- ```ts
1263
- ArchivistInstance.commitQuery
1264
- ```
1265
-
1266
- ### Inherited from
1267
-
1268
- ```ts
1269
- AbstractArchivist.commitQuery
1270
- ```
1271
-
1272
- ***
1273
-
1274
- ### delete()
1275
-
1276
- ```ts
1277
- delete(hashes): Promise<WithStorageMeta<Payload>[]>;
1278
- ```
1279
-
1280
- ### Parameters
1281
-
1282
- #### hashes
1283
-
1284
- `BrandedHash`[]
1285
-
1286
- ### Returns
1287
-
1288
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1289
-
1290
- ### Implementation of
1291
-
1292
- ```ts
1293
- ArchivistInstance.delete
1294
- ```
1295
-
1296
- ### Inherited from
1297
-
1298
- ```ts
1299
- AbstractArchivist.delete
1300
- ```
1301
-
1302
- ***
1303
-
1304
- ### deleteQuery()
1305
-
1306
- ```ts
1307
- deleteQuery(hashes, account?): Promise<ModuleQueryResult>;
1308
- ```
1309
-
1310
- ### Parameters
1311
-
1312
- #### hashes
1313
-
1314
- `BrandedHash`[]
1315
-
1316
- #### account?
1317
-
1318
- `AccountInstance`
1319
-
1320
- ### Returns
1321
-
1322
- `Promise`\<`ModuleQueryResult`\>
1323
-
1324
- ### Implementation of
1325
-
1326
- ```ts
1327
- ArchivistInstance.deleteQuery
1328
- ```
1329
-
1330
- ### Inherited from
1331
-
1332
- ```ts
1333
- AbstractArchivist.deleteQuery
1334
- ```
1335
-
1336
- ***
1337
-
1338
- ### get()
1339
-
1340
- ```ts
1341
- get(hashes): Promise<WithStorageMeta<Payload>[]>;
1342
- ```
1343
-
1344
- ### Parameters
1345
-
1346
- #### hashes
1347
-
1348
- `BrandedHash`[]
1349
-
1350
- ### Returns
1351
-
1352
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1353
-
1354
- ### Implementation of
1355
-
1356
- ```ts
1357
- ArchivistInstance.get
1358
- ```
1359
-
1360
- ### Inherited from
1361
-
1362
- ```ts
1363
- AbstractArchivist.get
1364
- ```
1365
-
1366
- ***
1367
-
1368
- ### getQuery()
1369
-
1370
- ```ts
1371
- getQuery(hashes, account?): Promise<ModuleQueryResult>;
1372
- ```
1373
-
1374
- ### Parameters
1375
-
1376
- #### hashes
1377
-
1378
- `BrandedHash`[]
1379
-
1380
- #### account?
1381
-
1382
- `AccountInstance`
1383
-
1384
- ### Returns
1385
-
1386
- `Promise`\<`ModuleQueryResult`\>
1387
-
1388
- ### Implementation of
1389
-
1390
- ```ts
1391
- ArchivistInstance.getQuery
1392
- ```
1393
-
1394
- ### Inherited from
1395
-
1396
- ```ts
1397
- AbstractArchivist.getQuery
1398
- ```
1399
-
1400
- ***
1401
-
1402
- ### insert()
1403
-
1404
- ```ts
1405
- insert(payloads): Promise<WithStorageMeta<Payload>[]>;
1406
- ```
1407
-
1408
- ### Parameters
1409
-
1410
- #### payloads
1411
-
1412
- `Payload`[]
1413
-
1414
- ### Returns
1415
-
1416
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1417
-
1418
- ### Implementation of
1419
-
1420
- ```ts
1421
- ArchivistInstance.insert
1422
- ```
1423
-
1424
- ### Inherited from
1425
-
1426
- ```ts
1427
- AbstractArchivist.insert
1428
- ```
1429
-
1430
- ***
1431
-
1432
- ### insertQuery()
1433
-
1434
- ```ts
1435
- insertQuery(payloads, account?): Promise<ModuleQueryResult>;
1436
- ```
1437
-
1438
- ### Parameters
1439
-
1440
- #### payloads
1441
-
1442
- `Payload`[]
1443
-
1444
- #### account?
1445
-
1446
- `AccountInstance`
1447
-
1448
- ### Returns
1449
-
1450
- `Promise`\<`ModuleQueryResult`\>
1451
-
1452
- ### Implementation of
1453
-
1454
- ```ts
1455
- ArchivistInstance.insertQuery
1456
- ```
1457
-
1458
- ### Inherited from
1459
-
1460
- ```ts
1461
- AbstractArchivist.insertQuery
1462
- ```
1463
-
1464
- ***
1465
-
1466
- ### next()
1467
-
1468
- ```ts
1469
- next(options?): Promise<WithStorageMeta<Payload>[]>;
1470
- ```
1471
-
1472
- ### Parameters
1473
-
1474
- #### options?
1475
-
1476
- `ArchivistNextOptions`
1477
-
1478
- ### Returns
1479
-
1480
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1481
-
1482
- ### Implementation of
1483
-
1484
- ```ts
1485
- ArchivistInstance.next
1486
- ```
1487
-
1488
- ### Inherited from
1489
-
1490
- ```ts
1491
- AbstractArchivist.next
1492
- ```
1493
-
1494
- ***
1495
-
1496
- ### nextQuery()
1497
-
1498
- ```ts
1499
- nextQuery(options?, account?): Promise<ModuleQueryResult>;
1500
- ```
1501
-
1502
- ### Parameters
1503
-
1504
- #### options?
1505
-
1506
- `ArchivistNextOptions`
1507
-
1508
- #### account?
1509
-
1510
- `AccountInstance`
1511
-
1512
- ### Returns
1513
-
1514
- `Promise`\<`ModuleQueryResult`\>
1515
-
1516
- ### Implementation of
1517
-
1518
- ```ts
1519
- ArchivistInstance.nextQuery
1520
- ```
1521
-
1522
- ### Inherited from
1523
-
1524
- ```ts
1525
- AbstractArchivist.nextQuery
1526
- ```
1527
-
1528
- ***
1529
-
1530
- ### snapshot()
1531
-
1532
- ```ts
1533
- snapshot(): Promise<ArchivistSnapshotPayload<WithStorageMeta<Payload>, BrandedHash>[]>;
1534
- ```
1535
-
1536
- ### Returns
1537
-
1538
- `Promise`\<`ArchivistSnapshotPayload`\<`WithStorageMeta`\<`Payload`\>, `BrandedHash`\>[]\>
1539
-
1540
- ### Implementation of
1541
-
1542
- ```ts
1543
- ArchivistInstance.snapshot
1544
- ```
1545
-
1546
- ### Inherited from
1547
-
1548
- ```ts
1549
- AbstractArchivist.snapshot
1550
- ```
1551
-
1552
- ***
1553
-
1554
- ### snapshotQuery()
1555
-
1556
- ```ts
1557
- snapshotQuery(account?): Promise<ModuleQueryResult>;
1558
- ```
1559
-
1560
- ### Parameters
1561
-
1562
- #### account?
1563
-
1564
- `AccountInstance`
1565
-
1566
- ### Returns
1567
-
1568
- `Promise`\<`ModuleQueryResult`\>
1569
-
1570
- ### Inherited from
1571
-
1572
- ```ts
1573
- AbstractArchivist.snapshotQuery
1574
- ```
1575
-
1576
- ***
1577
-
1578
- ### deleteWithConfig()
1579
-
1580
- ```ts
1581
- protected deleteWithConfig(hashes, config?): Promise<WithStorageMeta<Payload>[]>;
1582
- ```
1583
-
1584
- ### Parameters
1585
-
1586
- #### hashes
1587
-
1588
- `BrandedHash`[]
1589
-
1590
- #### config?
1591
-
1592
- `ActionConfig`
1593
-
1594
- ### Returns
1595
-
1596
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1597
-
1598
- ### Inherited from
1599
-
1600
- ```ts
1601
- AbstractArchivist.deleteWithConfig
1602
- ```
1603
-
1604
- ***
1605
-
1606
- ### generateStats()
1607
-
1608
- ```ts
1609
- protected generateStats(): Promisable<ArchivistStatsPayload>;
1610
- ```
1611
-
1612
- ### Returns
1613
-
1614
- `Promisable`\<`ArchivistStatsPayload`\>
1615
-
1616
- ### Inherited from
1617
-
1618
- ```ts
1619
- AbstractArchivist.generateStats
1620
- ```
1621
-
1622
- ***
1623
-
1624
- ### getFromParent()
1625
-
1626
- ```ts
1627
- protected getFromParent(hashes, archivist): Promise<[WithStorageMeta<Payload>[], BrandedHash[]]>;
1628
- ```
1629
-
1630
- ### Parameters
1631
-
1632
- #### hashes
1633
-
1634
- `BrandedHash`[]
1635
-
1636
- #### archivist
1637
-
1638
- `ReadArchivist`
1639
-
1640
- ### Returns
1641
-
1642
- `Promise`\<\[`WithStorageMeta`\<`Payload`\>[], `BrandedHash`[]\]\>
1643
-
1644
- ### Inherited from
1645
-
1646
- ```ts
1647
- AbstractArchivist.getFromParent
1648
- ```
1649
-
1650
- ***
1651
-
1652
- ### getFromParents()
1653
-
1654
- ```ts
1655
- protected getFromParents(hashes): Promise<[WithStorageMeta<Payload>[], BrandedHash[]]>;
1656
- ```
1657
-
1658
- ### Parameters
1659
-
1660
- #### hashes
1661
-
1662
- `BrandedHash`[]
1663
-
1664
- ### Returns
1665
-
1666
- `Promise`\<\[`WithStorageMeta`\<`Payload`\>[], `BrandedHash`[]\]\>
1667
-
1668
- ### Inherited from
1669
-
1670
- ```ts
1671
- AbstractArchivist.getFromParents
1672
- ```
1673
-
1674
- ***
1675
-
1676
- ### getWithConfig()
1677
-
1678
- ```ts
1679
- protected getWithConfig(hashes, _config?): Promise<WithStorageMeta<Payload>[]>;
1680
- ```
1681
-
1682
- ### Parameters
1683
-
1684
- #### hashes
1685
-
1686
- `BrandedHash`[]
1687
-
1688
- #### \_config?
1689
-
1690
- `InsertConfig`
1691
-
1692
- ### Returns
1693
-
1694
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1695
-
1696
- ### Inherited from
1697
-
1698
- ```ts
1699
- AbstractArchivist.getWithConfig
1700
- ```
1701
-
1702
- ***
1703
-
1704
- ### insertQueryHandler()
1705
-
1706
- ```ts
1707
- protected insertQueryHandler<T>(query, payloads?): Promise<WithStorageMeta<Payload>[]>;
1708
- ```
1709
-
1710
- ### Type Parameters
1711
-
1712
- #### T
1713
-
1714
- `T` *extends* `QueryBoundWitnessWrapper`\<`Query`\> = `QueryBoundWitnessWrapper`\<`Query`\>
1715
-
1716
- ### Parameters
1717
-
1718
- #### query
1719
-
1720
- `T`
1721
-
1722
- #### payloads?
1723
-
1724
- `Payload`[]
1725
-
1726
- ### Returns
1727
-
1728
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1729
-
1730
- ### Inherited from
1731
-
1732
- ```ts
1733
- AbstractArchivist.insertQueryHandler
1734
- ```
1735
-
1736
- ***
1737
-
1738
- ### insertWithConfig()
1739
-
1740
- ```ts
1741
- protected insertWithConfig(payloads, config?): Promise<WithStorageMeta<Payload>[]>;
1742
- ```
1743
-
1744
- ### Parameters
1745
-
1746
- #### payloads
1747
-
1748
- `Payload`[]
1749
-
1750
- #### config?
1751
-
1752
- `InsertConfig`
1753
-
1754
- ### Returns
1755
-
1756
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1757
-
1758
- ### Inherited from
1759
-
1760
- ```ts
1761
- AbstractArchivist.insertWithConfig
1762
- ```
1763
-
1764
- ***
1765
-
1766
- ### nextWithConfig()
1767
-
1768
- ```ts
1769
- protected nextWithConfig(options?, _config?): Promise<WithStorageMeta<Payload>[]>;
1770
- ```
1771
-
1772
- ### Parameters
1773
-
1774
- #### options?
1775
-
1776
- `ArchivistNextOptions`
1777
-
1778
- #### \_config?
1779
-
1780
- `InsertConfig`
1781
-
1782
- ### Returns
1783
-
1784
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
1785
-
1786
- ### Inherited from
1787
-
1788
- ```ts
1789
- AbstractArchivist.nextWithConfig
1790
- ```
1791
-
1792
- ***
1793
-
1794
- ### parentArchivists()
1795
-
1796
- ```ts
1797
- protected parentArchivists(): Promise<ArchivistParentInstanceMap>;
1798
- ```
1799
-
1800
- ### Returns
1801
-
1802
- `Promise`\<`ArchivistParentInstanceMap`\>
1803
-
1804
- ### Inherited from
1805
-
1806
- ```ts
1807
- AbstractArchivist.parentArchivists
1808
- ```
1809
-
1810
- ***
1811
-
1812
- ### payloadCountHandler()
1813
-
1814
- ```ts
1815
- protected payloadCountHandler(): number;
1816
- ```
1817
-
1818
- ### Returns
1819
-
1820
- `number`
1821
-
1822
- ### Inherited from
1823
-
1824
- ```ts
1825
- AbstractArchivist.payloadCountHandler
1826
- ```
1827
-
1828
- ***
1829
-
1830
- ### queryHandler()
1831
-
1832
- ```ts
1833
- protected queryHandler<T, TConfig>(
1834
- query,
1835
- payloads,
1836
- queryConfig?): Promise<ModuleQueryHandlerResult>;
1837
- ```
1838
-
1839
- ### Type Parameters
1840
-
1841
- #### T
1842
-
1843
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
1844
-
1845
- #### TConfig
1846
-
1847
- `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
1848
-
1849
- ### Parameters
1850
-
1851
- #### query
1852
-
1853
- `T`
1854
-
1855
- #### payloads
1856
-
1857
- `Payload`[]
1858
-
1859
- #### queryConfig?
1860
-
1861
- `TConfig`
1862
-
1863
- ### Returns
1864
-
1865
- `Promise`\<`ModuleQueryHandlerResult`\>
1866
-
1867
- ### Inherited from
1868
-
1869
- ```ts
1870
- AbstractArchivist.queryHandler
1871
- ```
1872
-
1873
- ***
1874
-
1875
- ### reportPayloadCount()
1876
-
1877
- ```ts
1878
- protected reportPayloadCount(): void;
1879
- ```
1880
-
1881
- ### Returns
1882
-
1883
- `void`
1884
-
1885
- ### Inherited from
1886
-
1887
- ```ts
1888
- AbstractArchivist.reportPayloadCount
1889
- ```
1890
-
1891
- ***
1892
-
1893
- ### snapshotHandler()
1894
-
1895
- ```ts
1896
- protected snapshotHandler(): PromisableArray<ArchivistSnapshotPayload<WithStorageMeta<Payload>, BrandedHash>>;
1897
- ```
1898
-
1899
- ### Returns
1900
-
1901
- `PromisableArray`\<`ArchivistSnapshotPayload`\<`WithStorageMeta`\<`Payload`\>, `BrandedHash`\>\>
1902
-
1903
- ### Inherited from
1904
-
1905
- ```ts
1906
- AbstractArchivist.snapshotHandler
1907
- ```
1908
-
1909
- ***
1910
-
1911
- ### stateHandler()
1912
-
1913
- ```ts
1914
- protected stateHandler(): Promise<Payload[]>;
1915
- ```
1916
-
1917
- ### Returns
1918
-
1919
- `Promise`\<`Payload`[]\>
1920
-
1921
- ### Inherited from
1922
-
1923
- ```ts
1924
- AbstractArchivist.stateHandler
1925
- ```
1926
-
1927
- ***
1928
-
1929
- ### writeToParent()
1930
-
1931
- ```ts
1932
- protected writeToParent(parent, payloads): Promise<Payload[]>;
1933
- ```
1934
-
1935
- ### Parameters
1936
-
1937
- #### parent
1938
-
1939
- `ArchivistInstance`
1940
-
1941
- #### payloads
1942
-
1943
- `Payload`[]
1944
-
1945
- ### Returns
1946
-
1947
- `Promise`\<`Payload`[]\>
1948
-
1949
- ### Inherited from
1950
-
1951
- ```ts
1952
- AbstractArchivist.writeToParent
1953
- ```
1954
-
1955
- ***
1956
-
1957
- ### writeToParents()
1958
-
1959
- ```ts
1960
- protected writeToParents(payloads): Promise<Payload[]>;
1961
- ```
1962
-
1963
- ### Parameters
1964
-
1965
- #### payloads
1966
-
1967
- `Payload`[]
1968
-
1969
- ### Returns
1970
-
1971
- `Promise`\<`Payload`[]\>
1972
-
1973
- ### Inherited from
1974
-
1975
- ```ts
1976
- AbstractArchivist.writeToParents
1977
- ```
1978
-
1979
- ***
1980
-
1981
- ### allHandler()
1982
-
1983
- ```ts
1984
- protected allHandler(): PromisableArray<WithStorageMeta<Payload>>;
1985
- ```
1986
-
1987
- ### Returns
1988
-
1989
- `PromisableArray`\<`WithStorageMeta`\<`Payload`\>\>
1990
-
1991
- ### Overrides
1992
-
1993
- ```ts
1994
- AbstractArchivist.allHandler
1995
- ```
1996
-
1997
- ***
1998
-
1999
- ### clearHandler()
2000
-
2001
- ```ts
2002
- protected clearHandler(): void | Promise<void>;
2003
- ```
2004
-
2005
- ### Returns
2006
-
2007
- `void` \| `Promise`\<`void`\>
2008
-
2009
- ### Overrides
2010
-
2011
- ```ts
2012
- AbstractArchivist.clearHandler
2013
- ```
2014
-
2015
- ***
2016
-
2017
- ### commitHandler()
2018
-
2019
- ```ts
2020
- protected commitHandler(): Promise<object[]>;
2021
- ```
2022
-
2023
- ### Returns
2024
-
2025
- `Promise`\<`object`[]\>
2026
-
2027
- ### Overrides
2028
-
2029
- ```ts
2030
- AbstractArchivist.commitHandler
2031
- ```
2032
-
2033
- ***
2034
-
2035
- ### deleteHandler()
2036
-
2037
- ```ts
2038
- protected deleteHandler(hashes): Promise<WithStorageMeta<Payload>[]>;
2039
- ```
2040
-
2041
- ### Parameters
2042
-
2043
- #### hashes
2044
-
2045
- `BrandedHash`[]
2046
-
2047
- ### Returns
2048
-
2049
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
2050
-
2051
- ### Overrides
2052
-
2053
- ```ts
2054
- AbstractArchivist.deleteHandler
2055
- ```
2056
-
2057
- ***
2058
-
2059
- ### getFromCursor()
2060
-
2061
- ```ts
2062
- protected getFromCursor(
2063
- order?,
2064
- limit?,
2065
- cursor?,
2066
- open?): WithStorageMeta[];
2067
- ```
2068
-
2069
- ### Parameters
2070
-
2071
- #### order?
2072
-
2073
- `"asc"` \| `"desc"`
2074
-
2075
- #### limit?
2076
-
2077
- `number` = `10`
2078
-
2079
- #### cursor?
2080
-
2081
- `BrandedHex`
2082
-
2083
- #### open?
2084
-
2085
- `boolean`
2086
-
2087
- ### Returns
2088
-
2089
- `WithStorageMeta`[]
2090
-
2091
- ***
2092
-
2093
- ### getHandler()
2094
-
2095
- ```ts
2096
- protected getHandler(hashes): Promisable<WithStorageMeta<Payload>[]>;
2097
- ```
2098
-
2099
- ### Parameters
2100
-
2101
- #### hashes
2102
-
2103
- `string`[]
2104
-
2105
- ### Returns
2106
-
2107
- `Promisable`\<`WithStorageMeta`\<`Payload`\>[]\>
2108
-
2109
- ### Overrides
2110
-
2111
- ```ts
2112
- AbstractArchivist.getHandler
2113
- ```
2114
-
2115
- ***
2116
-
2117
- ### insertHandler()
2118
-
2119
- ```ts
2120
- protected insertHandler(payloads): Promise<WithStorageMeta<Payload>[]>;
2121
- ```
2122
-
2123
- ### Parameters
2124
-
2125
- #### payloads
2126
-
2127
- `WithStorageMeta`\<`Payload`\>[]
2128
-
2129
- ### Returns
2130
-
2131
- `Promise`\<`WithStorageMeta`\<`Payload`\>[]\>
2132
-
2133
- ### Overrides
2134
-
2135
- ```ts
2136
- AbstractArchivist.insertHandler
2137
- ```
2138
-
2139
- ***
2140
-
2141
- ### nextHandler()
2142
-
2143
- ```ts
2144
- protected nextHandler(options?): Promisable<WithStorageMeta<Payload>[]>;
2145
- ```
2146
-
2147
- ### Parameters
2148
-
2149
- #### options?
2150
-
2151
- `ArchivistNextOptions`
2152
-
2153
- ### Returns
2154
-
2155
- `Promisable`\<`WithStorageMeta`\<`Payload`\>[]\>
2156
-
2157
- ### Overrides
2158
-
2159
- ```ts
2160
- AbstractArchivist.nextHandler
2161
- ```
2162
-
2163
- ***
2164
-
2165
- ### startHandler()
2166
-
2167
- ```ts
2168
- protected startHandler(): Promise<void>;
2169
- ```
2170
-
2171
- ### Returns
2172
-
2173
- `Promise`\<`void`\>
2174
-
2175
- ### Overrides
2176
-
2177
- ```ts
2178
- AbstractArchivist.startHandler
2179
- ```
2180
-
2181
- ***
2182
-
2183
- ### \_getRootFunction()
2184
-
2185
- ```ts
2186
- static _getRootFunction(funcName): any;
2187
- ```
2188
-
2189
- ### Parameters
2190
-
2191
- #### funcName
2192
-
2193
- `string`
2194
-
2195
- ### Returns
2196
-
2197
- `any`
2198
-
2199
- ### Inherited from
2200
-
2201
- ```ts
2202
- AbstractArchivist._getRootFunction
2203
- ```
2204
-
2205
- ***
2206
-
2207
- ### \_noOverride()
2208
-
2209
- ```ts
2210
- static _noOverride(functionName): void;
2211
- ```
2212
-
2213
- ### Parameters
2214
-
2215
- #### functionName
2216
-
2217
- `string`
2218
-
2219
- ### Returns
2220
-
2221
- `void`
2222
-
2223
- ### Inherited from
2224
-
2225
- ```ts
2226
- AbstractArchivist._noOverride
2227
- ```
2228
-
2229
- ***
2230
-
2231
- ### createHandler()
2232
-
2233
- ```ts
2234
- static createHandler<T>(inInstance): Promise<T & AbstractModule<any, any>>;
2235
- ```
2236
-
2237
- Static hook called during creation to perform additional initialization.
2238
- Override in subclasses to customize post-construction setup.
2239
-
2240
- ### Type Parameters
2241
-
2242
- #### T
2243
-
2244
- `T` *extends* `CreatableInstance`\<`CreatableParams`, `EventData`\>
2245
-
2246
- ### Parameters
2247
-
2248
- #### inInstance
2249
-
2250
- `T`
2251
-
2252
- ### Returns
2253
-
2254
- `Promise`\<`T` & `AbstractModule`\<`any`, `any`\>\>
2255
-
2256
- The instance, potentially modified
2257
-
2258
- ### Inherited from
2259
-
2260
- ```ts
2261
- AbstractArchivist.createHandler
2262
- ```
2263
-
2264
- ***
2265
-
2266
- ### determineAccount()
2267
-
2268
- ```ts
2269
- static determineAccount(params): Promise<AccountInstance>;
2270
- ```
2271
-
2272
- ### Parameters
2273
-
2274
- #### params
2275
-
2276
- ##### account?
2277
-
2278
- `AccountInstance` \| `"random"`
2279
-
2280
- ##### accountPath?
2281
-
2282
- `string`
2283
-
2284
- ##### wallet?
2285
-
2286
- `WalletInstance`
2287
-
2288
- ### Returns
2289
-
2290
- `Promise`\<`AccountInstance`\>
2291
-
2292
- ### Inherited from
2293
-
2294
- ```ts
2295
- AbstractArchivist.determineAccount
2296
- ```
2297
-
2298
- ***
2299
-
2300
- ### factory()
2301
-
2302
- ```ts
2303
- static factory<TModule>(this, params?): CreatableModuleFactory<TModule>;
2304
- ```
2305
-
2306
- ### Type Parameters
2307
-
2308
- #### TModule
2309
-
2310
- `TModule` *extends* `CreatableModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2311
-
2312
- ### Parameters
2313
-
2314
- #### this
2315
-
2316
- `CreatableModule`\<`TModule`\>
2317
-
2318
- #### params?
2319
-
2320
- `Partial`\<`TModule`\[`"params"`\]\>
2321
-
2322
- ### Returns
2323
-
2324
- `CreatableModuleFactory`\<`TModule`\>
2325
-
2326
- ### Inherited from
2327
-
2328
- ```ts
2329
- AbstractArchivist.factory
2330
- ```
2331
-
2332
- ***
2333
-
2334
- ### isAllowedSchema()
2335
-
2336
- ```ts
2337
- static isAllowedSchema(schema): boolean;
2338
- ```
2339
-
2340
- ### Parameters
2341
-
2342
- #### schema
2343
-
2344
- `Schema`
2345
-
2346
- ### Returns
2347
-
2348
- `boolean`
2349
-
2350
- ### Inherited from
2351
-
2352
- ```ts
2353
- AbstractArchivist.isAllowedSchema
2354
- ```
2355
-
2356
- ***
2357
-
2358
- ### paramsHandler()
2359
-
2360
- ```ts
2361
- static paramsHandler<T>(inParams?): Promise<T["params"]>;
2362
- ```
2363
-
2364
- Static hook called during creation to validate and transform params.
2365
- Override in subclasses to add default values or validation.
2366
-
2367
- ### Type Parameters
2368
-
2369
- #### T
2370
-
2371
- `T` *extends* `AttachableModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
2372
-
2373
- ### Parameters
2374
-
2375
- #### inParams?
2376
-
2377
- `Partial`\<`T`\[`"params"`\]\>
2378
-
2379
- ### Returns
2380
-
2381
- `Promise`\<`T`\[`"params"`\]\>
2382
-
2383
- The processed params ready for construction
2384
-
2385
- ### Inherited from
2386
-
2387
- ```ts
2388
- AbstractArchivist.paramsHandler
2389
- ```
2390
-
2391
- ***
2392
-
2393
- ### \_getRootFunction()
2394
-
2395
- ```ts
2396
- _getRootFunction(funcName): any;
2397
- ```
2398
-
2399
- ### Parameters
2400
-
2401
- #### funcName
2402
-
2403
- `string`
2404
-
2405
- ### Returns
2406
-
2407
- `any`
2408
-
2409
- ### Inherited from
2410
-
2411
- ```ts
2412
- AbstractArchivist._getRootFunction
2413
- ```
2414
-
2415
- ***
2416
-
2417
- ### busy()
2418
-
2419
- ```ts
2420
- busy<R>(closure): Promise<R>;
2421
- ```
2422
-
2423
- ### Type Parameters
2424
-
2425
- #### R
2426
-
2427
- `R`
2428
-
2429
- ### Parameters
2430
-
2431
- #### closure
2432
-
2433
- () => `Promise`\<`R`\>
2434
-
2435
- ### Returns
2436
-
2437
- `Promise`\<`R`\>
2438
-
2439
- ### Inherited from
2440
-
2441
- ```ts
2442
- AbstractArchivist.busy
2443
- ```
2444
-
2445
- ***
2446
-
2447
- ### emit()
2448
-
2449
- ```ts
2450
- emit<TEventName, TEventArgs>(eventName, eventArgs): Promise<void>;
2451
- ```
2452
-
2453
- Emits an event, invoking all registered listeners concurrently.
2454
-
2455
- ### Type Parameters
2456
-
2457
- #### TEventName
2458
-
2459
- `TEventName` *extends* `string` \| `number` \| `symbol` = keyof `TEventData`
2460
-
2461
- #### TEventArgs
2462
-
2463
- `TEventArgs` *extends* `EventArgs` = `TEventData`\[`TEventName`\]
2464
-
2465
- ### Parameters
2466
-
2467
- #### eventName
2468
-
2469
- `TEventName`
2470
-
2471
- The event to emit.
2472
-
2473
- #### eventArgs
2474
-
2475
- `TEventArgs`
2476
-
2477
- The data to pass to listeners.
2478
-
2479
- ### Returns
2480
-
2481
- `Promise`\<`void`\>
2482
-
2483
- ### Implementation of
2484
-
2485
- ```ts
2486
- ArchivistInstance.emit
2487
- ```
2488
-
2489
- ### Inherited from
2490
-
2491
- ```ts
2492
- AbstractArchivist.emit
2493
- ```
2494
-
2495
- ***
2496
-
2497
- ### isSupportedQuery()
2498
-
2499
- ```ts
2500
- isSupportedQuery(query, assert?): boolean;
2501
- ```
2502
-
2503
- ### Parameters
2504
-
2505
- #### query
2506
-
2507
- `Schema`
2508
-
2509
- #### assert?
2510
-
2511
- `string` \| `boolean`
2512
-
2513
- ### Returns
2514
-
2515
- `boolean`
2516
-
2517
- ### Inherited from
2518
-
2519
- ```ts
2520
- AbstractArchivist.isSupportedQuery
2521
- ```
2522
-
2523
- ***
2524
-
2525
- ### previousHash()
2526
-
2527
- ```ts
2528
- previousHash(): Promisable<string | undefined>;
2529
- ```
2530
-
2531
- ### Returns
2532
-
2533
- `Promisable`\<`string` \| `undefined`\>
2534
-
2535
- ### Implementation of
2536
-
2537
- ```ts
2538
- ArchivistInstance.previousHash
2539
- ```
2540
-
2541
- ### Inherited from
2542
-
2543
- ```ts
2544
- AbstractArchivist.previousHash
2545
- ```
2546
-
2547
- ***
2548
-
2549
- ### query()
2550
-
2551
- ```ts
2552
- query<T, TConfig>(
2553
- query,
2554
- payloads?,
2555
- queryConfig?): Promise<ModuleQueryResult>;
2556
- ```
2557
-
2558
- ### Type Parameters
2559
-
2560
- #### T
2561
-
2562
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
2563
-
2564
- #### TConfig
2565
-
2566
- `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
2567
-
2568
- ### Parameters
2569
-
2570
- #### query
2571
-
2572
- `T`
2573
-
2574
- #### payloads?
2575
-
2576
- `Payload`[]
2577
-
2578
- #### queryConfig?
2579
-
2580
- `TConfig`
2581
-
2582
- ### Returns
2583
-
2584
- `Promise`\<`ModuleQueryResult`\>
2585
-
2586
- ### Implementation of
2587
-
2588
- ```ts
2589
- ArchivistInstance.query
2590
- ```
2591
-
2592
- ### Inherited from
2593
-
2594
- ```ts
2595
- AbstractArchivist.query
2596
- ```
2597
-
2598
- ***
2599
-
2600
- ### queryable()
2601
-
2602
- ```ts
2603
- queryable<T, TConfig>(
2604
- query,
2605
- payloads?,
2606
- queryConfig?): Promise<boolean>;
2607
- ```
2608
-
2609
- ### Type Parameters
2610
-
2611
- #### T
2612
-
2613
- `T` *extends* `UnsignedQueryBoundWitness` = `UnsignedQueryBoundWitness`
2614
-
2615
- #### TConfig
2616
-
2617
- `TConfig` *extends* `ModuleConfig` = `ModuleConfig`
2618
-
2619
- ### Parameters
2620
-
2621
- #### query
2622
-
2623
- `T`
2624
-
2625
- #### payloads?
2626
-
2627
- `Payload`[]
2628
-
2629
- #### queryConfig?
2630
-
2631
- `TConfig`
2632
-
2633
- ### Returns
2634
-
2635
- `Promise`\<`boolean`\>
2636
-
2637
- ### Implementation of
2638
-
2639
- ```ts
2640
- ArchivistInstance.queryable
2641
- ```
2642
-
2643
- ### Inherited from
2644
-
2645
- ```ts
2646
- AbstractArchivist.queryable
2647
- ```
2648
-
2649
- ***
2650
-
2651
- ### \_checkDead()
2652
-
2653
- ```ts
2654
- protected _checkDead(): void;
2655
- ```
2656
-
2657
- ### Returns
2658
-
2659
- `void`
2660
-
2661
- ### Inherited from
2662
-
2663
- ```ts
2664
- AbstractArchivist._checkDead
2665
- ```
2666
-
2667
- ***
2668
-
2669
- ### archivistInstance()
2670
-
2671
- ### Call Signature
2672
-
2673
- ```ts
2674
- protected archivistInstance(): Promise<
2675
- | ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
2676
- | undefined>;
2677
- ```
2678
-
2679
- #### Returns
2680
-
2681
- `Promise`\<
2682
- \| `ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>
2683
- \| `undefined`\>
2684
-
2685
- #### Inherited from
2686
-
2687
- ```ts
2688
- AbstractArchivist.archivistInstance
2689
- ```
2690
-
2691
- ### Call Signature
2692
-
2693
- ```ts
2694
- protected archivistInstance(required): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>>;
2695
- ```
2696
-
2697
- #### Parameters
2698
-
2699
- ##### required
2700
-
2701
- `true`
2702
-
2703
- #### Returns
2704
-
2705
- `Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>\>
2706
-
2707
- #### Inherited from
2708
-
2709
- ```ts
2710
- AbstractArchivist.archivistInstance
2711
- ```
2712
-
2713
- ***
2714
-
2715
- ### bindHashes()
2716
-
2717
- ```ts
2718
- protected bindHashes(
2719
- hashes,
2720
- schema,
2721
- account?): PromiseEx<unknown, AccountInstance>;
2722
- ```
2723
-
2724
- ### Parameters
2725
-
2726
- #### hashes
2727
-
2728
- `BrandedHash`[]
2729
-
2730
- #### schema
2731
-
2732
- `Schema`[]
2733
-
2734
- #### account?
2735
-
2736
- `AccountInstance`
2737
-
2738
- ### Returns
2739
-
2740
- `PromiseEx`\<`unknown`, `AccountInstance`\>
2741
-
2742
- ### Inherited from
2743
-
2744
- ```ts
2745
- AbstractArchivist.bindHashes
2746
- ```
2747
-
2748
- ***
2749
-
2750
- ### bindHashesInternal()
2751
-
2752
- ```ts
2753
- protected bindHashesInternal(
2754
- hashes,
2755
- schema,
2756
- account?): Promise<{
2757
- schema: "network.xyo.boundwitness" & object;
2758
- addresses: Lowercase<string> & object & object[];
2759
- payload_hashes: BrandedHash[];
2760
- payload_schemas: BrandedSchema<string>[];
2761
- previous_hashes: (BrandedHash | null)[];
2762
- $destination?: Lowercase<string> & object & object;
2763
- $sourceQuery?: BrandedHash;
2764
- $signatures: (BrandedHex | null)[];
2765
- }>;
2766
- ```
2767
-
2768
- ### Parameters
2769
-
2770
- #### hashes
2771
-
2772
- `BrandedHash`[]
2773
-
2774
- #### schema
2775
-
2776
- `Schema`[]
2777
-
2778
- #### account?
2779
-
2780
- `AccountInstance`
2781
-
2782
- ### Returns
2783
-
2784
- `Promise`\<\{
2785
- `schema`: `"network.xyo.boundwitness"` & `object`;
2786
- `addresses`: `Lowercase`\<`string`\> & `object` & `object`[];
2787
- `payload_hashes`: `BrandedHash`[];
2788
- `payload_schemas`: `BrandedSchema`\<`string`\>[];
2789
- `previous_hashes`: (`BrandedHash` \| `null`)[];
2790
- `$destination?`: `Lowercase`\<`string`\> & `object` & `object`;
2791
- `$sourceQuery?`: `BrandedHash`;
2792
- `$signatures`: (`BrandedHex` \| `null`)[];
2793
- \}\>
2794
-
2795
- ### Inherited from
2796
-
2797
- ```ts
2798
- AbstractArchivist.bindHashesInternal
2799
- ```
2800
-
2801
- ***
2802
-
2803
- ### bindQuery()
2804
-
2805
- ```ts
2806
- protected bindQuery<T>(
2807
- query,
2808
- payloads?,
2809
- account?,
2810
- additionalSigners?): PromiseEx<[UnsignedQueryBoundWitness, Payload[], Payload[]], AccountInstance>;
2811
- ```
2812
-
2813
- ### Type Parameters
2814
-
2815
- #### T
2816
-
2817
- `T` *extends* `Query`
2818
-
2819
- ### Parameters
2820
-
2821
- #### query
2822
-
2823
- `T`
2824
-
2825
- #### payloads?
2826
-
2827
- `Payload`[]
2828
-
2829
- #### account?
2830
-
2831
- `AccountInstance`
2832
-
2833
- #### additionalSigners?
2834
-
2835
- `AccountInstance`[]
2836
-
2837
- ### Returns
2838
-
2839
- `PromiseEx`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `Payload`[]\], `AccountInstance`\>
2840
-
2841
- ### Inherited from
2842
-
2843
- ```ts
2844
- AbstractArchivist.bindQuery
2845
- ```
2846
-
2847
- ***
2848
-
2849
- ### bindQueryInternal()
2850
-
2851
- ```ts
2852
- protected bindQueryInternal<T>(
2853
- query,
2854
- payloads?,
2855
- account?,
2856
- additionalSigners?): Promise<[UnsignedQueryBoundWitness, Payload[], Payload[]]>;
2857
- ```
2858
-
2859
- ### Type Parameters
2860
-
2861
- #### T
2862
-
2863
- `T` *extends* `Query`
2864
-
2865
- ### Parameters
2866
-
2867
- #### query
2868
-
2869
- `T`
2870
-
2871
- #### payloads?
2872
-
2873
- `Payload`[]
2874
-
2875
- #### account?
2876
-
2877
- `AccountInstance`
2878
-
2879
- #### additionalSigners?
2880
-
2881
- `AccountInstance`[]
2882
-
2883
- ### Returns
2884
-
2885
- `Promise`\<\[`UnsignedQueryBoundWitness`, `Payload`[], `Payload`[]\]\>
2886
-
2887
- ### Inherited from
2888
-
2889
- ```ts
2890
- AbstractArchivist.bindQueryInternal
2891
- ```
2892
-
2893
- ***
2894
-
2895
- ### bindQueryResult()
2896
-
2897
- ```ts
2898
- protected bindQueryResult<T>(
2899
- query,
2900
- payloads,
2901
- additionalWitnesses?,
2902
- errors?): Promise<ModuleQueryResult>;
2903
- ```
2904
-
2905
- ### Type Parameters
2906
-
2907
- #### T
2908
-
2909
- `T` *extends* `Query`
2910
-
2911
- ### Parameters
2912
-
2913
- #### query
2914
-
2915
- `T`
2916
-
2917
- #### payloads
2918
-
2919
- `Payload`[]
2920
-
2921
- #### additionalWitnesses?
2922
-
2923
- `AccountInstance`[]
2924
-
2925
- #### errors?
2926
-
2927
- `ModuleError`[]
2928
-
2929
- ### Returns
2930
-
2931
- `Promise`\<`ModuleQueryResult`\>
2932
-
2933
- ### Inherited from
2934
-
2935
- ```ts
2936
- AbstractArchivist.bindQueryResult
2937
- ```
2938
-
2939
- ***
2940
-
2941
- ### generateConfigAndAddress()
2942
-
2943
- ```ts
2944
- protected generateConfigAndAddress(_maxDepth?): Promisable<Payload[]>;
2945
- ```
2946
-
2947
- ### Parameters
2948
-
2949
- #### \_maxDepth?
2950
-
2951
- `number`
2952
-
2953
- ### Returns
2954
-
2955
- `Promisable`\<`Payload`[]\>
2956
-
2957
- ### Inherited from
2958
-
2959
- ```ts
2960
- AbstractArchivist.generateConfigAndAddress
2961
- ```
2962
-
2963
- ***
2964
-
2965
- ### generateDescribe()
2966
-
2967
- ```ts
2968
- protected generateDescribe(): Promise<ModuleDescriptionPayload>;
2969
- ```
2970
-
2971
- ### Returns
2972
-
2973
- `Promise`\<`ModuleDescriptionPayload`\>
2974
-
2975
- ### Inherited from
2976
-
2977
- ```ts
2978
- AbstractArchivist.generateDescribe
2979
- ```
2980
-
2981
- ***
2982
-
2983
- ### ~~getArchivist()~~
2984
-
2985
- ```ts
2986
- protected getArchivist(): Promise<
2987
- | ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>
2988
- | undefined>;
2989
- ```
2990
-
2991
- ### Returns
2992
-
2993
- `Promise`\<
2994
- \| `ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>
2995
- \| `undefined`\>
2996
-
2997
- ### Deprecated
2998
-
2999
- use archivistInstance() instead
3000
-
3001
- ### Inherited from
3002
-
3003
- ```ts
3004
- AbstractArchivist.getArchivist
3005
- ```
3006
-
3007
- ***
3008
-
3009
- ### isAllowedArchivingQuery()
3010
-
3011
- ```ts
3012
- protected isAllowedArchivingQuery(schema): boolean;
3013
- ```
3014
-
3015
- ### Parameters
3016
-
3017
- #### schema
3018
-
3019
- `Schema`
3020
-
3021
- ### Returns
3022
-
3023
- `boolean`
3024
-
3025
- ### Inherited from
3026
-
3027
- ```ts
3028
- AbstractArchivist.isAllowedArchivingQuery
3029
- ```
3030
-
3031
- ***
3032
-
3033
- ### moduleAddressHandler()
3034
-
3035
- ```ts
3036
- protected moduleAddressHandler(): Promisable<(AddressPayload | AddressPreviousHashPayload)[]>;
3037
- ```
3038
-
3039
- ### Returns
3040
-
3041
- `Promisable`\<(`AddressPayload` \| `AddressPreviousHashPayload`)[]\>
3042
-
3043
- ### Inherited from
3044
-
3045
- ```ts
3046
- AbstractArchivist.moduleAddressHandler
3047
- ```
3048
-
3049
- ***
3050
-
3051
- ### stopHandler()
3052
-
3053
- ```ts
3054
- protected stopHandler(): Promise<void>;
3055
- ```
3056
-
3057
- Override in subclasses to define stop behavior. Throw an error on failure.
3058
-
3059
- ### Returns
3060
-
3061
- `Promise`\<`void`\>
3062
-
3063
- ### Inherited from
3064
-
3065
- ```ts
3066
- AbstractArchivist.stopHandler
3067
- ```
3068
-
3069
- ***
3070
-
3071
- ### subscribeHandler()
3072
-
3073
- ```ts
3074
- protected subscribeHandler(): void;
3075
- ```
3076
-
3077
- ### Returns
3078
-
3079
- `void`
3080
-
3081
- ### Inherited from
3082
-
3083
- ```ts
3084
- AbstractArchivist.subscribeHandler
3085
- ```
3086
-
3087
- ***
3088
-
3089
- ### validateConfig()
3090
-
3091
- ```ts
3092
- protected validateConfig(config?, parents?): boolean;
3093
- ```
3094
-
3095
- ### Parameters
3096
-
3097
- #### config?
3098
-
3099
- `unknown`
3100
-
3101
- #### parents?
3102
-
3103
- `string`[]
3104
-
3105
- ### Returns
3106
-
3107
- `boolean`
3108
-
3109
- ### Inherited from
3110
-
3111
- ```ts
3112
- AbstractArchivist.validateConfig
3113
- ```
3114
-
3115
- ***
3116
-
3117
- ### addParent()
3118
-
3119
- ```ts
3120
- addParent(mod): void;
3121
- ```
3122
-
3123
- ### Parameters
3124
-
3125
- #### mod
3126
-
3127
- `ModuleInstance`
3128
-
3129
- ### Returns
3130
-
3131
- `void`
3132
-
3133
- ### Implementation of
3134
-
3135
- ```ts
3136
- ArchivistInstance.addParent
3137
- ```
3138
-
3139
- ### Inherited from
3140
-
3141
- ```ts
3142
- AbstractArchivist.addParent
3143
- ```
3144
-
3145
- ***
3146
-
3147
- ### certifyParents()
3148
-
3149
- ```ts
3150
- certifyParents(): Promise<Payload[]>;
3151
- ```
3152
-
3153
- ### Returns
3154
-
3155
- `Promise`\<`Payload`[]\>
3156
-
3157
- ### Inherited from
3158
-
3159
- ```ts
3160
- AbstractArchivist.certifyParents
3161
- ```
3162
-
3163
- ***
3164
-
3165
- ### createHandler()
3166
-
3167
- ```ts
3168
- createHandler(): Promise<void>;
3169
- ```
3170
-
3171
- ### Returns
3172
-
3173
- `Promise`\<`void`\>
3174
-
3175
- ### Inherited from
3176
-
3177
- ```ts
3178
- AbstractArchivist.createHandler
3179
- ```
3180
-
3181
- ***
3182
-
3183
- ### manifest()
3184
-
3185
- ```ts
3186
- manifest(maxDepth?): Promise<ModuleManifestPayload>;
3187
- ```
3188
-
3189
- ### Parameters
3190
-
3191
- #### maxDepth?
3192
-
3193
- `number`
3194
-
3195
- ### Returns
3196
-
3197
- `Promise`\<`ModuleManifestPayload`\>
3198
-
3199
- ### Implementation of
3200
-
3201
- ```ts
3202
- ArchivistInstance.manifest
3203
- ```
3204
-
3205
- ### Inherited from
3206
-
3207
- ```ts
3208
- AbstractArchivist.manifest
3209
- ```
3210
-
3211
- ***
3212
-
3213
- ### manifestQuery()
3214
-
3215
- ```ts
3216
- manifestQuery(account, maxDepth?): Promise<ModuleQueryResult<ModuleManifestPayload>>;
3217
- ```
3218
-
3219
- ### Parameters
3220
-
3221
- #### account
3222
-
3223
- `AccountInstance`
3224
-
3225
- #### maxDepth?
3226
-
3227
- `number`
3228
-
3229
- ### Returns
3230
-
3231
- `Promise`\<`ModuleQueryResult`\<`ModuleManifestPayload`\>\>
3232
-
3233
- ### Implementation of
3234
-
3235
- ```ts
3236
- ArchivistInstance.manifestQuery
3237
- ```
3238
-
3239
- ### Inherited from
3240
-
3241
- ```ts
3242
- AbstractArchivist.manifestQuery
3243
- ```
3244
-
3245
- ***
3246
-
3247
- ### moduleAddress()
3248
-
3249
- ```ts
3250
- moduleAddress(): Promise<(AddressPayload | AddressPreviousHashPayload)[]>;
3251
- ```
3252
-
3253
- ### Returns
3254
-
3255
- `Promise`\<(`AddressPayload` \| `AddressPreviousHashPayload`)[]\>
3256
-
3257
- ### Implementation of
3258
-
3259
- ```ts
3260
- ArchivistInstance.moduleAddress
3261
- ```
3262
-
3263
- ### Inherited from
3264
-
3265
- ```ts
3266
- AbstractArchivist.moduleAddress
3267
- ```
3268
-
3269
- ***
3270
-
3271
- ### parents()
3272
-
3273
- ```ts
3274
- parents(): Promisable<NodeInstance<NodeParams<AnyConfigSchema<NodeConfig>>, NodeModuleEventData>[]>;
3275
- ```
3276
-
3277
- ### Returns
3278
-
3279
- `Promisable`\<`NodeInstance`\<`NodeParams`\<`AnyConfigSchema`\<`NodeConfig`\>\>, `NodeModuleEventData`\>[]\>
3280
-
3281
- ### Implementation of
3282
-
3283
- ```ts
3284
- ArchivistInstance.parents
3285
- ```
3286
-
3287
- ### Inherited from
3288
-
3289
- ```ts
3290
- AbstractArchivist.parents
3291
- ```
3292
-
3293
- ***
3294
-
3295
- ### privateChildren()
3296
-
3297
- ```ts
3298
- privateChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
3299
- ```
3300
-
3301
- ### Returns
3302
-
3303
- `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
3304
-
3305
- ### Implementation of
3306
-
3307
- ```ts
3308
- ArchivistInstance.privateChildren
3309
- ```
3310
-
3311
- ### Inherited from
3312
-
3313
- ```ts
3314
- AbstractArchivist.privateChildren
3315
- ```
3316
-
3317
- ***
3318
-
3319
- ### publicChildren()
3320
-
3321
- ```ts
3322
- publicChildren(): Promisable<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
3323
- ```
3324
-
3325
- ### Returns
3326
-
3327
- `Promisable`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
3328
-
3329
- ### Implementation of
3330
-
3331
- ```ts
3332
- ArchivistInstance.publicChildren
3333
- ```
3334
-
3335
- ### Inherited from
3336
-
3337
- ```ts
3338
- AbstractArchivist.publicChildren
3339
- ```
3340
-
3341
- ***
3342
-
3343
- ### removeParent()
3344
-
3345
- ```ts
3346
- removeParent(address): void;
3347
- ```
3348
-
3349
- ### Parameters
3350
-
3351
- #### address
3352
-
3353
- `BrandedAddress`
3354
-
3355
- ### Returns
3356
-
3357
- `void`
3358
-
3359
- ### Implementation of
3360
-
3361
- ```ts
3362
- ArchivistInstance.removeParent
3363
- ```
3364
-
3365
- ### Inherited from
3366
-
3367
- ```ts
3368
- AbstractArchivist.removeParent
3369
- ```
3370
-
3371
- ***
3372
-
3373
- ### resolve()
3374
-
3375
- ### Call Signature
3376
-
3377
- ```ts
3378
- resolve(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
3379
- ```
3380
-
3381
- #### Returns
3382
-
3383
- `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
3384
-
3385
- #### Implementation of
3386
-
3387
- ```ts
3388
- ArchivistInstance.resolve
3389
- ```
3390
-
3391
- #### Inherited from
3392
-
3393
- ```ts
3394
- AbstractArchivist.resolve
3395
- ```
3396
-
3397
- ### Call Signature
3398
-
3399
- ```ts
3400
- resolve<T>(all, options?): Promise<T[]>;
3401
- ```
3402
-
3403
- #### Type Parameters
3404
-
3405
- ##### T
3406
-
3407
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
3408
-
3409
- #### Parameters
3410
-
3411
- ##### all
3412
-
3413
- `"*"`
3414
-
3415
- ##### options?
3416
-
3417
- `ModuleFilterOptions`\<`T`\>
3418
-
3419
- #### Returns
3420
-
3421
- `Promise`\<`T`[]\>
3422
-
3423
- #### Implementation of
3424
-
3425
- ```ts
3426
- ArchivistInstance.resolve
3427
- ```
3428
-
3429
- #### Inherited from
3430
-
3431
- ```ts
3432
- AbstractArchivist.resolve
3433
- ```
3434
-
3435
- ### Call Signature
3436
-
3437
- ```ts
3438
- resolve<T>(id, options?): Promise<T | undefined>;
3439
- ```
3440
-
3441
- #### Type Parameters
3442
-
3443
- ##### T
3444
-
3445
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
3446
-
3447
- #### Parameters
3448
-
3449
- ##### id
3450
-
3451
- `ModuleIdentifier`
3452
-
3453
- ##### options?
3454
-
3455
- `ModuleFilterOptions`\<`T`\>
3456
-
3457
- #### Returns
3458
-
3459
- `Promise`\<`T` \| `undefined`\>
3460
-
3461
- #### Implementation of
3462
-
3463
- ```ts
3464
- ArchivistInstance.resolve
3465
- ```
3466
-
3467
- #### Inherited from
3468
-
3469
- ```ts
3470
- AbstractArchivist.resolve
3471
- ```
3472
-
3473
- ***
3474
-
3475
- ### resolveIdentifier()
3476
-
3477
- ```ts
3478
- resolveIdentifier(id, options?): Promise<BrandedAddress | undefined>;
3479
- ```
3480
-
3481
- ### Parameters
3482
-
3483
- #### id
3484
-
3485
- `ModuleIdentifier`
3486
-
3487
- #### options?
3488
-
3489
- `ObjectFilterOptions`\<`AnyObject`\>
3490
-
3491
- ### Returns
3492
-
3493
- `Promise`\<`BrandedAddress` \| `undefined`\>
3494
-
3495
- ### Inherited from
3496
-
3497
- ```ts
3498
- AbstractArchivist.resolveIdentifier
3499
- ```
3500
-
3501
- ***
3502
-
3503
- ### resolvePrivate()
3504
-
3505
- ### Call Signature
3506
-
3507
- ```ts
3508
- resolvePrivate<T>(all, options?): Promise<T[]>;
3509
- ```
3510
-
3511
- #### Type Parameters
3512
-
3513
- ##### T
3514
-
3515
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
3516
-
3517
- #### Parameters
3518
-
3519
- ##### all
3520
-
3521
- `"*"`
3522
-
3523
- ##### options?
3524
-
3525
- `ModuleFilterOptions`\<`T`\>
3526
-
3527
- #### Returns
3528
-
3529
- `Promise`\<`T`[]\>
3530
-
3531
- #### Implementation of
3532
-
3533
- ```ts
3534
- ArchivistInstance.resolvePrivate
3535
- ```
3536
-
3537
- #### Inherited from
3538
-
3539
- ```ts
3540
- AbstractArchivist.resolvePrivate
3541
- ```
3542
-
3543
- ### Call Signature
3544
-
3545
- ```ts
3546
- resolvePrivate<T>(id, options?): Promise<T | undefined>;
3547
- ```
3548
-
3549
- #### Type Parameters
3550
-
3551
- ##### T
3552
-
3553
- `T` *extends* `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\> = `ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>
3554
-
3555
- #### Parameters
3556
-
3557
- ##### id
3558
-
3559
- `ModuleIdentifier`
3560
-
3561
- ##### options?
3562
-
3563
- `ModuleFilterOptions`\<`T`\>
3564
-
3565
- #### Returns
3566
-
3567
- `Promise`\<`T` \| `undefined`\>
3568
-
3569
- #### Implementation of
3570
-
3571
- ```ts
3572
- ArchivistInstance.resolvePrivate
3573
- ```
3574
-
3575
- #### Inherited from
3576
-
3577
- ```ts
3578
- AbstractArchivist.resolvePrivate
3579
- ```
3580
-
3581
- ***
3582
-
3583
- ### siblings()
3584
-
3585
- ```ts
3586
- siblings(): Promise<ModuleInstance<QueryableModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>[]>;
3587
- ```
3588
-
3589
- ### Returns
3590
-
3591
- `Promise`\<`ModuleInstance`\<`QueryableModuleParams`\<`AnyConfigSchema`\<`ModuleConfig`\>\>, `ModuleEventData`\<`object`\>\>[]\>
3592
-
3593
- ### Implementation of
3594
-
3595
- ```ts
3596
- ArchivistInstance.siblings
3597
- ```
3598
-
3599
- ### Inherited from
3600
-
3601
- ```ts
3602
- AbstractArchivist.siblings
3603
- ```
3604
-
3605
- ***
3606
-
3607
- ### state()
3608
-
3609
- ```ts
3610
- state(): Promise<Payload[]>;
3611
- ```
3612
-
3613
- ### Returns
3614
-
3615
- `Promise`\<`Payload`[]\>
3616
-
3617
- ### Implementation of
3618
-
3619
- ```ts
3620
- ArchivistInstance.state
3621
- ```
3622
-
3623
- ### Inherited from
3624
-
3625
- ```ts
3626
- AbstractArchivist.state
3627
- ```
3628
-
3629
- ***
3630
-
3631
- ### stateQuery()
3632
-
3633
- ```ts
3634
- stateQuery(account): Promise<ModuleQueryResult>;
3635
- ```
3636
-
3637
- ### Parameters
3638
-
3639
- #### account
3640
-
3641
- `AccountInstance`
3642
-
3643
- ### Returns
3644
-
3645
- `Promise`\<`ModuleQueryResult`\>
3646
-
3647
- ### Implementation of
3648
-
3649
- ```ts
3650
- ArchivistInstance.stateQuery
3651
- ```
3652
-
3653
- ### Inherited from
3654
-
3655
- ```ts
3656
- AbstractArchivist.stateQuery
3657
- ```
3658
-
3659
- ***
3660
-
3661
- ### subscribe()
3662
-
3663
- ```ts
3664
- subscribe(_queryAccount?): void;
3665
- ```
3666
-
3667
- ### Parameters
3668
-
3669
- #### \_queryAccount?
3670
-
3671
- `AccountInstance`
3672
-
3673
- ### Returns
3674
-
3675
- `void`
3676
-
3677
- ### Inherited from
3678
-
3679
- ```ts
3680
- AbstractArchivist.subscribe
3681
- ```
3682
-
3683
- ***
3684
-
3685
- ### manifestHandler()
3686
-
3687
- ```ts
3688
- protected manifestHandler(maxDepth?, _ignoreAddresses?): Promise<ModuleManifestPayload>;
3689
- ```
3690
-
3691
- ### Parameters
3692
-
3693
- #### maxDepth?
3694
-
3695
- `number`
3696
-
3697
- #### \_ignoreAddresses?
3698
-
3699
- `BrandedAddress`[]
3700
-
3701
- ### Returns
3702
-
3703
- `Promise`\<`ModuleManifestPayload`\>
3704
-
3705
- ### Inherited from
3706
-
3707
- ```ts
3708
- AbstractArchivist.manifestHandler
3709
- ```
3710
-
3711
- ***
3712
-
3713
- ### resolveArchivingArchivists()
3714
-
3715
- ```ts
3716
- protected resolveArchivingArchivists(): Promise<ArchivistInstance<ArchivistParams<AnyConfigSchema<ArchivistConfig>>, ArchivistModuleEventData, Payload>[]>;
3717
- ```
3718
-
3719
- ### Returns
3720
-
3721
- `Promise`\<`ArchivistInstance`\<`ArchivistParams`\<`AnyConfigSchema`\<`ArchivistConfig`\>\>, `ArchivistModuleEventData`, `Payload`\>[]\>
3722
-
3723
- ### Inherited from
3724
-
3725
- ```ts
3726
- AbstractArchivist.resolveArchivingArchivists
3727
- ```
3728
-
3729
- ***
3730
-
3731
- ### sendQuery()
3732
-
3733
- ```ts
3734
- protected sendQuery<T, P, R>(
3735
- queryPayload,
3736
- payloads?,
3737
- account?): Promise<R[]>;
3738
- ```
3739
-
3740
- ### Type Parameters
3741
-
3742
- #### T
3743
-
3744
- `T` *extends* `Query`
3745
-
3746
- #### P
3747
-
3748
- `P` *extends* `Payload` = `Payload`
3749
-
3750
- #### R
3751
-
3752
- `R` *extends* `Payload` = `Payload`
3753
-
3754
- ### Parameters
3755
-
3756
- #### queryPayload
3757
-
3758
- `T`
3759
-
3760
- #### payloads?
3761
-
3762
- `P`[]
3763
-
3764
- #### account?
3765
-
3766
- `AccountInstance`
3767
-
3768
- ### Returns
3769
-
3770
- `Promise`\<`R`[]\>
3771
-
3772
- ### Inherited from
3773
-
3774
- ```ts
3775
- AbstractArchivist.sendQuery
3776
- ```
3777
-
3778
- ***
3779
-
3780
- ### sendQueryRaw()
3781
-
3782
- ```ts
3783
- protected sendQueryRaw<T, P, R>(
3784
- queryPayload,
3785
- payloads?,
3786
- account?): Promise<ModuleQueryResult<R>>;
3787
- ```
3788
-
3789
- ### Type Parameters
3790
-
3791
- #### T
3792
-
3793
- `T` *extends* `Query`
3794
-
3795
- #### P
3796
-
3797
- `P` *extends* `Payload` = `Payload`
3798
-
3799
- #### R
3800
-
3801
- `R` *extends* `Payload` = `Payload`
3802
-
3803
- ### Parameters
3804
-
3805
- #### queryPayload
3806
-
3807
- `T`
3808
-
3809
- #### payloads?
3810
-
3811
- `P`[]
3812
-
3813
- #### account?
3814
-
3815
- `AccountInstance`
3816
-
3817
- ### Returns
3818
-
3819
- `Promise`\<`ModuleQueryResult`\<`R`\>\>
3820
-
3821
- ### Inherited from
3822
-
3823
- ```ts
3824
- AbstractArchivist.sendQueryRaw
3825
- ```
3826
-
3827
- ***
3828
-
3829
- ### storeToArchivists()
3830
-
3831
- ```ts
3832
- protected storeToArchivists(payloads): Promise<Payload[]>;
3833
- ```
3834
-
3835
- ### Parameters
3836
-
3837
- #### payloads
3838
-
3839
- `Payload`[]
3840
-
3841
- ### Returns
3842
-
3843
- `Promise`\<`Payload`[]\>
3844
-
3845
- ### Inherited from
3846
-
3847
- ```ts
3848
- AbstractArchivist.storeToArchivists
3849
- ```
3850
-
3851
- ### type-aliases
3852
-
3853
- ### <a id="StorageArchivistConfig"></a>StorageArchivistConfig
3854
-
3855
- [**@xyo-network/archivist-storage**](#../README)
3856
-
3857
- ***
3858
-
3859
- ```ts
3860
- type StorageArchivistConfig = ArchivistConfig<{
3861
- maxEntries?: number;
3862
- maxEntrySize?: number;
3863
- namespace?: string;
3864
- type?: "local" | "session" | "page";
3865
- }, StorageArchivistConfigSchema>;
3866
- ```
3867
-
3868
- ### <a id="StorageArchivistConfigSchema"></a>StorageArchivistConfigSchema
3869
-
3870
- [**@xyo-network/archivist-storage**](#../README)
3871
-
3872
- ***
3873
-
3874
- ```ts
3875
- type StorageArchivistConfigSchema = typeof StorageArchivistConfigSchema;
3876
- ```
3877
-
3878
- ### <a id="StorageArchivistParams"></a>StorageArchivistParams
3879
-
3880
- [**@xyo-network/archivist-storage**](#../README)
3881
-
3882
- ***
3883
-
3884
- ```ts
3885
- type StorageArchivistParams = ArchivistParams<AnyConfigSchema<StorageArchivistConfig>>;
3886
- ```
3887
-
3888
- ### variables
3889
-
3890
- ### <a id="StorageArchivistConfigSchema"></a>StorageArchivistConfigSchema
3891
-
3892
- [**@xyo-network/archivist-storage**](#../README)
3893
-
3894
- ***
3895
-
3896
- ```ts
3897
- const StorageArchivistConfigSchema: "network.xyo.archivist.storage.config" & object;
3898
- ```
3899
-
3900
- ## Type Declaration
3901
-
3902
- ### \_\_schema
3903
-
3904
- ```ts
3905
- readonly __schema: true;
3906
- ```
3907
41
 
3908
42
 
3909
43
  [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png