@xyo-network/archivist-model 3.9.2 → 3.9.4

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.
@@ -10,7 +10,6 @@ import { Payload, WithStorageMeta, Query } from '@xyo-network/payload-model';
10
10
  import { EventData } from '@xyo-network/module-events';
11
11
  import * as _xyo_network_account_model from '@xyo-network/account-model';
12
12
  import { AccountInstance } from '@xyo-network/account-model';
13
- import * as _xylabs_logger from '@xylabs/logger';
14
13
  import { ObjectTypeShape } from '@xylabs/typeof';
15
14
  import { BoundWitness } from '@xyo-network/boundwitness-model';
16
15
 
@@ -145,189 +144,27 @@ declare const asAttachableArchivistInstance: {
145
144
  addToResolvers?: boolean;
146
145
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
147
146
  allowNameResolution?: boolean;
148
- config: _xylabs_object.DeepRestrictToStringKeys<{
149
- schema: _xyo_network_payload_model.Schema;
150
- parents?: {
151
- commit?: string[] | undefined;
152
- read?: string[] | undefined;
153
- write?: string[] | undefined;
154
- } | undefined;
155
- requireAllParents?: boolean | undefined;
156
- storage?: {
157
- indexes?: {
158
- key: {
159
- [x: string]: IndexDirection;
160
- };
161
- multiEntry?: boolean | undefined;
162
- name?: string | undefined;
163
- unique?: boolean | undefined;
164
- }[] | undefined;
165
- } | undefined;
166
- storeParentReads?: boolean | undefined;
167
- readonly archiving?: {
168
- readonly archivists?: string[] | undefined;
169
- readonly queries?: string[] | undefined;
170
- } | undefined;
171
- readonly allowedQueries?: string[] | undefined;
172
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
173
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
174
- readonly labels?: {
175
- [x: string]: string | undefined;
176
- } | undefined;
177
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
178
- readonly paging?: {
179
- [x: string]: {
180
- size?: number | undefined;
181
- };
182
- } | undefined;
183
- readonly retry?: {
184
- backoff?: number | undefined;
185
- interval?: number | undefined;
186
- retries?: number | undefined;
187
- } | undefined;
188
- readonly security?: {
189
- readonly allowAnonymous?: boolean | undefined;
190
- readonly allowed?: {
191
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
192
- } | undefined;
193
- readonly disallowed?: {
194
- [x: string]: Lowercase<string>[];
195
- } | undefined;
196
- } | undefined;
197
- readonly sign?: boolean | undefined;
198
- readonly storeQueries?: boolean | undefined;
199
- readonly timestamp?: boolean | undefined;
200
- }>;
147
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
201
148
  ephemeralQueryAccountEnabled?: boolean;
202
149
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
203
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
204
- schema: _xyo_network_payload_model.Schema;
205
- }>>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
150
+ } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
206
151
  <TType extends AttachableArchivistInstance<_xylabs_object.BaseParamsFields & {
207
152
  account?: _xyo_network_account_model.AccountInstance | "random";
208
153
  addToResolvers?: boolean;
209
154
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
210
155
  allowNameResolution?: boolean;
211
- config: _xylabs_object.DeepRestrictToStringKeys<{
212
- schema: _xyo_network_payload_model.Schema;
213
- parents?: {
214
- commit?: string[] | undefined;
215
- read?: string[] | undefined;
216
- write?: string[] | undefined;
217
- } | undefined;
218
- requireAllParents?: boolean | undefined;
219
- storage?: {
220
- indexes?: {
221
- key: {
222
- [x: string]: IndexDirection;
223
- };
224
- multiEntry?: boolean | undefined;
225
- name?: string | undefined;
226
- unique?: boolean | undefined;
227
- }[] | undefined;
228
- } | undefined;
229
- storeParentReads?: boolean | undefined;
230
- readonly archiving?: {
231
- readonly archivists?: string[] | undefined;
232
- readonly queries?: string[] | undefined;
233
- } | undefined;
234
- readonly allowedQueries?: string[] | undefined;
235
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
236
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
237
- readonly labels?: {
238
- [x: string]: string | undefined;
239
- } | undefined;
240
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
241
- readonly paging?: {
242
- [x: string]: {
243
- size?: number | undefined;
244
- };
245
- } | undefined;
246
- readonly retry?: {
247
- backoff?: number | undefined;
248
- interval?: number | undefined;
249
- retries?: number | undefined;
250
- } | undefined;
251
- readonly security?: {
252
- readonly allowAnonymous?: boolean | undefined;
253
- readonly allowed?: {
254
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
255
- } | undefined;
256
- readonly disallowed?: {
257
- [x: string]: Lowercase<string>[];
258
- } | undefined;
259
- } | undefined;
260
- readonly sign?: boolean | undefined;
261
- readonly storeQueries?: boolean | undefined;
262
- readonly timestamp?: boolean | undefined;
263
- }>;
156
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
264
157
  ephemeralQueryAccountEnabled?: boolean;
265
158
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
266
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
267
- schema: _xyo_network_payload_model.Schema;
268
- }>>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<AttachableArchivistInstance<_xylabs_object.BaseParamsFields & {
159
+ } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<AttachableArchivistInstance<_xylabs_object.BaseParamsFields & {
269
160
  account?: _xyo_network_account_model.AccountInstance | "random";
270
161
  addToResolvers?: boolean;
271
162
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
272
163
  allowNameResolution?: boolean;
273
- config: _xylabs_object.DeepRestrictToStringKeys<{
274
- schema: _xyo_network_payload_model.Schema;
275
- parents?: {
276
- commit?: string[] | undefined;
277
- read?: string[] | undefined;
278
- write?: string[] | undefined;
279
- } | undefined;
280
- requireAllParents?: boolean | undefined;
281
- storage?: {
282
- indexes?: {
283
- key: {
284
- [x: string]: IndexDirection;
285
- };
286
- multiEntry?: boolean | undefined;
287
- name?: string | undefined;
288
- unique?: boolean | undefined;
289
- }[] | undefined;
290
- } | undefined;
291
- storeParentReads?: boolean | undefined;
292
- readonly archiving?: {
293
- readonly archivists?: string[] | undefined;
294
- readonly queries?: string[] | undefined;
295
- } | undefined;
296
- readonly allowedQueries?: string[] | undefined;
297
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
298
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
299
- readonly labels?: {
300
- [x: string]: string | undefined;
301
- } | undefined;
302
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
303
- readonly paging?: {
304
- [x: string]: {
305
- size?: number | undefined;
306
- };
307
- } | undefined;
308
- readonly retry?: {
309
- backoff?: number | undefined;
310
- interval?: number | undefined;
311
- retries?: number | undefined;
312
- } | undefined;
313
- readonly security?: {
314
- readonly allowAnonymous?: boolean | undefined;
315
- readonly allowed?: {
316
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
317
- } | undefined;
318
- readonly disallowed?: {
319
- [x: string]: Lowercase<string>[];
320
- } | undefined;
321
- } | undefined;
322
- readonly sign?: boolean | undefined;
323
- readonly storeQueries?: boolean | undefined;
324
- readonly timestamp?: boolean | undefined;
325
- }>;
164
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
326
165
  ephemeralQueryAccountEnabled?: boolean;
327
166
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
328
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
329
- schema: _xyo_network_payload_model.Schema;
330
- }>>>, config?: _xylabs_object.TypeCheckConfig): TType;
167
+ } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>, config?: _xylabs_object.TypeCheckConfig): TType;
331
168
  };
332
169
 
333
170
  declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
@@ -399,122 +236,16 @@ declare const isArchivistInstance: _xylabs_object.TypeCheck<ArchivistInstance<_x
399
236
  addToResolvers?: boolean;
400
237
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
401
238
  allowNameResolution?: boolean;
402
- config: _xylabs_object.DeepRestrictToStringKeys<{
403
- schema: _xyo_network_payload_model.Schema;
404
- parents?: {
405
- commit?: string[] | undefined;
406
- read?: string[] | undefined;
407
- write?: string[] | undefined;
408
- } | undefined;
409
- requireAllParents?: boolean | undefined;
410
- storage?: {
411
- indexes?: {
412
- key: {
413
- [x: string]: IndexDirection;
414
- };
415
- multiEntry?: boolean | undefined;
416
- name?: string | undefined;
417
- unique?: boolean | undefined;
418
- }[] | undefined;
419
- } | undefined;
420
- storeParentReads?: boolean | undefined;
421
- readonly archiving?: {
422
- readonly archivists?: string[] | undefined;
423
- readonly queries?: string[] | undefined;
424
- } | undefined;
425
- readonly allowedQueries?: string[] | undefined;
426
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
427
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
428
- readonly labels?: {
429
- [x: string]: string | undefined;
430
- } | undefined;
431
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
432
- readonly paging?: {
433
- [x: string]: {
434
- size?: number | undefined;
435
- };
436
- } | undefined;
437
- readonly retry?: {
438
- backoff?: number | undefined;
439
- interval?: number | undefined;
440
- retries?: number | undefined;
441
- } | undefined;
442
- readonly security?: {
443
- readonly allowAnonymous?: boolean | undefined;
444
- readonly allowed?: {
445
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
446
- } | undefined;
447
- readonly disallowed?: {
448
- [x: string]: Lowercase<string>[];
449
- } | undefined;
450
- } | undefined;
451
- readonly sign?: boolean | undefined;
452
- readonly storeQueries?: boolean | undefined;
453
- readonly timestamp?: boolean | undefined;
454
- }>;
239
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
455
240
  ephemeralQueryAccountEnabled?: boolean;
456
241
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
457
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
458
- schema: _xyo_network_payload_model.Schema;
459
- }>>>;
242
+ } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>;
460
243
  declare const isArchivistModule: _xyo_network_module_model.ModuleTypeCheck<ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
461
244
  account?: _xyo_network_account_model.AccountInstance | "random";
462
245
  addToResolvers?: boolean;
463
246
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
464
247
  allowNameResolution?: boolean;
465
- config: _xylabs_object.DeepRestrictToStringKeys<{
466
- schema: _xyo_network_payload_model.Schema;
467
- parents?: {
468
- commit?: string[] | undefined;
469
- read?: string[] | undefined;
470
- write?: string[] | undefined;
471
- } | undefined;
472
- requireAllParents?: boolean | undefined;
473
- storage?: {
474
- indexes?: {
475
- key: {
476
- [x: string]: IndexDirection;
477
- };
478
- multiEntry?: boolean | undefined;
479
- name?: string | undefined;
480
- unique?: boolean | undefined;
481
- }[] | undefined;
482
- } | undefined;
483
- storeParentReads?: boolean | undefined;
484
- readonly archiving?: {
485
- readonly archivists?: string[] | undefined;
486
- readonly queries?: string[] | undefined;
487
- } | undefined;
488
- readonly allowedQueries?: string[] | undefined;
489
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
490
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
491
- readonly labels?: {
492
- [x: string]: string | undefined;
493
- } | undefined;
494
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
495
- readonly paging?: {
496
- [x: string]: {
497
- size?: number | undefined;
498
- };
499
- } | undefined;
500
- readonly retry?: {
501
- backoff?: number | undefined;
502
- interval?: number | undefined;
503
- retries?: number | undefined;
504
- } | undefined;
505
- readonly security?: {
506
- readonly allowAnonymous?: boolean | undefined;
507
- readonly allowed?: {
508
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
509
- } | undefined;
510
- readonly disallowed?: {
511
- [x: string]: Lowercase<string>[];
512
- } | undefined;
513
- } | undefined;
514
- readonly sign?: boolean | undefined;
515
- readonly storeQueries?: boolean | undefined;
516
- readonly timestamp?: boolean | undefined;
517
- }>;
248
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
518
249
  ephemeralQueryAccountEnabled?: boolean;
519
250
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
520
251
  }, ArchivistModuleEventData>>;
@@ -524,59 +255,7 @@ declare const asArchivistModule: {
524
255
  addToResolvers?: boolean;
525
256
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
526
257
  allowNameResolution?: boolean;
527
- config: _xylabs_object.DeepRestrictToStringKeys<{
528
- schema: _xyo_network_payload_model.Schema;
529
- parents?: {
530
- commit?: string[] | undefined;
531
- read?: string[] | undefined;
532
- write?: string[] | undefined;
533
- } | undefined;
534
- requireAllParents?: boolean | undefined;
535
- storage?: {
536
- indexes?: {
537
- key: {
538
- [x: string]: IndexDirection;
539
- };
540
- multiEntry?: boolean | undefined;
541
- name?: string | undefined;
542
- unique?: boolean | undefined;
543
- }[] | undefined;
544
- } | undefined;
545
- storeParentReads?: boolean | undefined;
546
- readonly archiving?: {
547
- readonly archivists?: string[] | undefined;
548
- readonly queries?: string[] | undefined;
549
- } | undefined;
550
- readonly allowedQueries?: string[] | undefined;
551
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
552
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
553
- readonly labels?: {
554
- [x: string]: string | undefined;
555
- } | undefined;
556
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
557
- readonly paging?: {
558
- [x: string]: {
559
- size?: number | undefined;
560
- };
561
- } | undefined;
562
- readonly retry?: {
563
- backoff?: number | undefined;
564
- interval?: number | undefined;
565
- retries?: number | undefined;
566
- } | undefined;
567
- readonly security?: {
568
- readonly allowAnonymous?: boolean | undefined;
569
- readonly allowed?: {
570
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
571
- } | undefined;
572
- readonly disallowed?: {
573
- [x: string]: Lowercase<string>[];
574
- } | undefined;
575
- } | undefined;
576
- readonly sign?: boolean | undefined;
577
- readonly storeQueries?: boolean | undefined;
578
- readonly timestamp?: boolean | undefined;
579
- }>;
258
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
580
259
  ephemeralQueryAccountEnabled?: boolean;
581
260
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
582
261
  }, ArchivistModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
@@ -585,59 +264,7 @@ declare const asArchivistModule: {
585
264
  addToResolvers?: boolean;
586
265
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
587
266
  allowNameResolution?: boolean;
588
- config: _xylabs_object.DeepRestrictToStringKeys<{
589
- schema: _xyo_network_payload_model.Schema;
590
- parents?: {
591
- commit?: string[] | undefined;
592
- read?: string[] | undefined;
593
- write?: string[] | undefined;
594
- } | undefined;
595
- requireAllParents?: boolean | undefined;
596
- storage?: {
597
- indexes?: {
598
- key: {
599
- [x: string]: IndexDirection;
600
- };
601
- multiEntry?: boolean | undefined;
602
- name?: string | undefined;
603
- unique?: boolean | undefined;
604
- }[] | undefined;
605
- } | undefined;
606
- storeParentReads?: boolean | undefined;
607
- readonly archiving?: {
608
- readonly archivists?: string[] | undefined;
609
- readonly queries?: string[] | undefined;
610
- } | undefined;
611
- readonly allowedQueries?: string[] | undefined;
612
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
613
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
614
- readonly labels?: {
615
- [x: string]: string | undefined;
616
- } | undefined;
617
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
618
- readonly paging?: {
619
- [x: string]: {
620
- size?: number | undefined;
621
- };
622
- } | undefined;
623
- readonly retry?: {
624
- backoff?: number | undefined;
625
- interval?: number | undefined;
626
- retries?: number | undefined;
627
- } | undefined;
628
- readonly security?: {
629
- readonly allowAnonymous?: boolean | undefined;
630
- readonly allowed?: {
631
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
632
- } | undefined;
633
- readonly disallowed?: {
634
- [x: string]: Lowercase<string>[];
635
- } | undefined;
636
- } | undefined;
637
- readonly sign?: boolean | undefined;
638
- readonly storeQueries?: boolean | undefined;
639
- readonly timestamp?: boolean | undefined;
640
- }>;
267
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
641
268
  ephemeralQueryAccountEnabled?: boolean;
642
269
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
643
270
  }, ArchivistModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
@@ -645,59 +272,7 @@ declare const asArchivistModule: {
645
272
  addToResolvers?: boolean;
646
273
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
647
274
  allowNameResolution?: boolean;
648
- config: _xylabs_object.DeepRestrictToStringKeys<{
649
- schema: _xyo_network_payload_model.Schema;
650
- parents?: {
651
- commit?: string[] | undefined;
652
- read?: string[] | undefined;
653
- write?: string[] | undefined;
654
- } | undefined;
655
- requireAllParents?: boolean | undefined;
656
- storage?: {
657
- indexes?: {
658
- key: {
659
- [x: string]: IndexDirection;
660
- };
661
- multiEntry?: boolean | undefined;
662
- name?: string | undefined;
663
- unique?: boolean | undefined;
664
- }[] | undefined;
665
- } | undefined;
666
- storeParentReads?: boolean | undefined;
667
- readonly archiving?: {
668
- readonly archivists?: string[] | undefined;
669
- readonly queries?: string[] | undefined;
670
- } | undefined;
671
- readonly allowedQueries?: string[] | undefined;
672
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
673
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
674
- readonly labels?: {
675
- [x: string]: string | undefined;
676
- } | undefined;
677
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
678
- readonly paging?: {
679
- [x: string]: {
680
- size?: number | undefined;
681
- };
682
- } | undefined;
683
- readonly retry?: {
684
- backoff?: number | undefined;
685
- interval?: number | undefined;
686
- retries?: number | undefined;
687
- } | undefined;
688
- readonly security?: {
689
- readonly allowAnonymous?: boolean | undefined;
690
- readonly allowed?: {
691
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
692
- } | undefined;
693
- readonly disallowed?: {
694
- [x: string]: Lowercase<string>[];
695
- } | undefined;
696
- } | undefined;
697
- readonly sign?: boolean | undefined;
698
- readonly storeQueries?: boolean | undefined;
699
- readonly timestamp?: boolean | undefined;
700
- }>;
275
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
701
276
  ephemeralQueryAccountEnabled?: boolean;
702
277
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
703
278
  }, ArchivistModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
@@ -708,248 +283,34 @@ declare const asArchivistInstance: {
708
283
  addToResolvers?: boolean;
709
284
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
710
285
  allowNameResolution?: boolean;
711
- config: _xylabs_object.DeepRestrictToStringKeys<{
712
- schema: _xyo_network_payload_model.Schema;
713
- parents?: {
714
- commit?: string[] | undefined;
715
- read?: string[] | undefined;
716
- write?: string[] | undefined;
717
- } | undefined;
718
- requireAllParents?: boolean | undefined;
719
- storage?: {
720
- indexes?: {
721
- key: {
722
- [x: string]: IndexDirection;
723
- };
724
- multiEntry?: boolean | undefined;
725
- name?: string | undefined;
726
- unique?: boolean | undefined;
727
- }[] | undefined;
728
- } | undefined;
729
- storeParentReads?: boolean | undefined;
730
- readonly archiving?: {
731
- readonly archivists?: string[] | undefined;
732
- readonly queries?: string[] | undefined;
733
- } | undefined;
734
- readonly allowedQueries?: string[] | undefined;
735
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
736
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
737
- readonly labels?: {
738
- [x: string]: string | undefined;
739
- } | undefined;
740
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
741
- readonly paging?: {
742
- [x: string]: {
743
- size?: number | undefined;
744
- };
745
- } | undefined;
746
- readonly retry?: {
747
- backoff?: number | undefined;
748
- interval?: number | undefined;
749
- retries?: number | undefined;
750
- } | undefined;
751
- readonly security?: {
752
- readonly allowAnonymous?: boolean | undefined;
753
- readonly allowed?: {
754
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
755
- } | undefined;
756
- readonly disallowed?: {
757
- [x: string]: Lowercase<string>[];
758
- } | undefined;
759
- } | undefined;
760
- readonly sign?: boolean | undefined;
761
- readonly storeQueries?: boolean | undefined;
762
- readonly timestamp?: boolean | undefined;
763
- }>;
286
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
764
287
  ephemeralQueryAccountEnabled?: boolean;
765
288
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
766
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
767
- schema: _xyo_network_payload_model.Schema;
768
- }>>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
289
+ } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
769
290
  <TType extends ArchivistInstance<_xylabs_object.BaseParamsFields & {
770
291
  account?: _xyo_network_account_model.AccountInstance | "random";
771
292
  addToResolvers?: boolean;
772
293
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
773
294
  allowNameResolution?: boolean;
774
- config: _xylabs_object.DeepRestrictToStringKeys<{
775
- schema: _xyo_network_payload_model.Schema;
776
- parents?: {
777
- commit?: string[] | undefined;
778
- read?: string[] | undefined;
779
- write?: string[] | undefined;
780
- } | undefined;
781
- requireAllParents?: boolean | undefined;
782
- storage?: {
783
- indexes?: {
784
- key: {
785
- [x: string]: IndexDirection;
786
- };
787
- multiEntry?: boolean | undefined;
788
- name?: string | undefined;
789
- unique?: boolean | undefined;
790
- }[] | undefined;
791
- } | undefined;
792
- storeParentReads?: boolean | undefined;
793
- readonly archiving?: {
794
- readonly archivists?: string[] | undefined;
795
- readonly queries?: string[] | undefined;
796
- } | undefined;
797
- readonly allowedQueries?: string[] | undefined;
798
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
799
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
800
- readonly labels?: {
801
- [x: string]: string | undefined;
802
- } | undefined;
803
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
804
- readonly paging?: {
805
- [x: string]: {
806
- size?: number | undefined;
807
- };
808
- } | undefined;
809
- readonly retry?: {
810
- backoff?: number | undefined;
811
- interval?: number | undefined;
812
- retries?: number | undefined;
813
- } | undefined;
814
- readonly security?: {
815
- readonly allowAnonymous?: boolean | undefined;
816
- readonly allowed?: {
817
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
818
- } | undefined;
819
- readonly disallowed?: {
820
- [x: string]: Lowercase<string>[];
821
- } | undefined;
822
- } | undefined;
823
- readonly sign?: boolean | undefined;
824
- readonly storeQueries?: boolean | undefined;
825
- readonly timestamp?: boolean | undefined;
826
- }>;
295
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
827
296
  ephemeralQueryAccountEnabled?: boolean;
828
297
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
829
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
830
- schema: _xyo_network_payload_model.Schema;
831
- }>>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ArchivistInstance<_xylabs_object.BaseParamsFields & {
298
+ } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ArchivistInstance<_xylabs_object.BaseParamsFields & {
832
299
  account?: _xyo_network_account_model.AccountInstance | "random";
833
300
  addToResolvers?: boolean;
834
301
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
835
302
  allowNameResolution?: boolean;
836
- config: _xylabs_object.DeepRestrictToStringKeys<{
837
- schema: _xyo_network_payload_model.Schema;
838
- parents?: {
839
- commit?: string[] | undefined;
840
- read?: string[] | undefined;
841
- write?: string[] | undefined;
842
- } | undefined;
843
- requireAllParents?: boolean | undefined;
844
- storage?: {
845
- indexes?: {
846
- key: {
847
- [x: string]: IndexDirection;
848
- };
849
- multiEntry?: boolean | undefined;
850
- name?: string | undefined;
851
- unique?: boolean | undefined;
852
- }[] | undefined;
853
- } | undefined;
854
- storeParentReads?: boolean | undefined;
855
- readonly archiving?: {
856
- readonly archivists?: string[] | undefined;
857
- readonly queries?: string[] | undefined;
858
- } | undefined;
859
- readonly allowedQueries?: string[] | undefined;
860
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
861
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
862
- readonly labels?: {
863
- [x: string]: string | undefined;
864
- } | undefined;
865
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
866
- readonly paging?: {
867
- [x: string]: {
868
- size?: number | undefined;
869
- };
870
- } | undefined;
871
- readonly retry?: {
872
- backoff?: number | undefined;
873
- interval?: number | undefined;
874
- retries?: number | undefined;
875
- } | undefined;
876
- readonly security?: {
877
- readonly allowAnonymous?: boolean | undefined;
878
- readonly allowed?: {
879
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
880
- } | undefined;
881
- readonly disallowed?: {
882
- [x: string]: Lowercase<string>[];
883
- } | undefined;
884
- } | undefined;
885
- readonly sign?: boolean | undefined;
886
- readonly storeQueries?: boolean | undefined;
887
- readonly timestamp?: boolean | undefined;
888
- }>;
303
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
889
304
  ephemeralQueryAccountEnabled?: boolean;
890
305
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
891
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
892
- schema: _xyo_network_payload_model.Schema;
893
- }>>>, config?: _xylabs_object.TypeCheckConfig): TType;
306
+ } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>>, config?: _xylabs_object.TypeCheckConfig): TType;
894
307
  };
895
308
  declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
896
309
  account?: _xyo_network_account_model.AccountInstance | "random";
897
310
  addToResolvers?: boolean;
898
311
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
899
312
  allowNameResolution?: boolean;
900
- config: _xylabs_object.DeepRestrictToStringKeys<{
901
- schema: _xyo_network_payload_model.Schema;
902
- parents?: {
903
- commit?: string[] | undefined;
904
- read?: string[] | undefined;
905
- write?: string[] | undefined;
906
- } | undefined;
907
- requireAllParents?: boolean | undefined;
908
- storage?: {
909
- indexes?: {
910
- key: {
911
- [x: string]: IndexDirection;
912
- };
913
- multiEntry?: boolean | undefined;
914
- name?: string | undefined;
915
- unique?: boolean | undefined;
916
- }[] | undefined;
917
- } | undefined;
918
- storeParentReads?: boolean | undefined;
919
- readonly archiving?: {
920
- readonly archivists?: string[] | undefined;
921
- readonly queries?: string[] | undefined;
922
- } | undefined;
923
- readonly allowedQueries?: string[] | undefined;
924
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
925
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
926
- readonly labels?: {
927
- [x: string]: string | undefined;
928
- } | undefined;
929
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
930
- readonly paging?: {
931
- [x: string]: {
932
- size?: number | undefined;
933
- };
934
- } | undefined;
935
- readonly retry?: {
936
- backoff?: number | undefined;
937
- interval?: number | undefined;
938
- retries?: number | undefined;
939
- } | undefined;
940
- readonly security?: {
941
- readonly allowAnonymous?: boolean | undefined;
942
- readonly allowed?: {
943
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
944
- } | undefined;
945
- readonly disallowed?: {
946
- [x: string]: Lowercase<string>[];
947
- } | undefined;
948
- } | undefined;
949
- readonly sign?: boolean | undefined;
950
- readonly storeQueries?: boolean | undefined;
951
- readonly timestamp?: boolean | undefined;
952
- }>;
313
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
953
314
  ephemeralQueryAccountEnabled?: boolean;
954
315
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
955
316
  }, ArchivistModuleEventData>) => R) => R | undefined;
@@ -958,63 +319,9 @@ declare const withArchivistInstance: <R>(mod: any, closure: (mod: ArchivistInsta
958
319
  addToResolvers?: boolean;
959
320
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
960
321
  allowNameResolution?: boolean;
961
- config: _xylabs_object.DeepRestrictToStringKeys<{
962
- schema: _xyo_network_payload_model.Schema;
963
- parents?: {
964
- commit?: string[] | undefined;
965
- read?: string[] | undefined;
966
- write?: string[] | undefined;
967
- } | undefined;
968
- requireAllParents?: boolean | undefined;
969
- storage?: {
970
- indexes?: {
971
- key: {
972
- [x: string]: IndexDirection;
973
- };
974
- multiEntry?: boolean | undefined;
975
- name?: string | undefined;
976
- unique?: boolean | undefined;
977
- }[] | undefined;
978
- } | undefined;
979
- storeParentReads?: boolean | undefined;
980
- readonly archiving?: {
981
- readonly archivists?: string[] | undefined;
982
- readonly queries?: string[] | undefined;
983
- } | undefined;
984
- readonly allowedQueries?: string[] | undefined;
985
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
986
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
987
- readonly labels?: {
988
- [x: string]: string | undefined;
989
- } | undefined;
990
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
991
- readonly paging?: {
992
- [x: string]: {
993
- size?: number | undefined;
994
- };
995
- } | undefined;
996
- readonly retry?: {
997
- backoff?: number | undefined;
998
- interval?: number | undefined;
999
- retries?: number | undefined;
1000
- } | undefined;
1001
- readonly security?: {
1002
- readonly allowAnonymous?: boolean | undefined;
1003
- readonly allowed?: {
1004
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
1005
- } | undefined;
1006
- readonly disallowed?: {
1007
- [x: string]: Lowercase<string>[];
1008
- } | undefined;
1009
- } | undefined;
1010
- readonly sign?: boolean | undefined;
1011
- readonly storeQueries?: boolean | undefined;
1012
- readonly timestamp?: boolean | undefined;
1013
- }>;
322
+ config: _xyo_network_module_model.AnyConfigSchema<ArchivistConfig>;
1014
323
  ephemeralQueryAccountEnabled?: boolean;
1015
324
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
1016
- } & ArchivistParamFields & object, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
1017
- schema: _xyo_network_payload_model.Schema;
1018
- }>>) => R) => R | undefined;
325
+ } & ArchivistParamFields & object, ArchivistModuleEventData, _xyo_network_payload_model.Payload>) => R) => R | undefined;
1019
326
 
1020
327
  export { type AllArchivist, type AllArchivistFunctions, type Archivist, type ArchivistAllQuery, ArchivistAllQuerySchema, type ArchivistClearQuery, ArchivistClearQuerySchema, type ArchivistCommitQuery, ArchivistCommitQuerySchema, type ArchivistConfig, ArchivistConfigSchema, type ArchivistDeleteQuery, ArchivistDeleteQuerySchema, type ArchivistGetQuery, ArchivistGetQuerySchema, type ArchivistInsertQuery, ArchivistInsertQuerySchema, type ArchivistInstance, type ArchivistLabels, type ArchivistModuleEventData, type ArchivistModuleInstance, type ArchivistModuleQueries, type ArchivistNextOptions, type ArchivistNextQuery, ArchivistNextQuerySchema, type ArchivistParamFields, type ArchivistParams, type ArchivistParentInstances, type ArchivistParents, type ArchivistQueries, type ArchivistRawQueryFunctions, type ArchivistStorage, type AttachableArchivistInstance, type AttachableArchivistInstanceTypeCheck, type FullArchivist, type HydratedBoundWitness, type IdentityFunction, type IndexDescription, type IndexDirection, IndexSeparator, IsAttachableArchivistInstanceFactory, type NextOptions, type ReadArchivist, type ReadArchivistFunctions, type ReadWriteArchivist, type StashArchivist, type StashArchivistFunctions, type WriteArchivist, type WriteArchivistFunctions, asArchivistInstance, asArchivistModule, asAttachableArchivistInstance, buildStandardIndexName, getBoundWitness, getTypedBoundWitness, hydrateBoundWitness, hydrateTypedBoundWitness, isArchivistInstance, isArchivistModule, isAttachableArchivistInstance, requiredAttachableArchivistInstanceFunctions, tryGetTypedBoundWitness, tryHydrateTypedBoundWitness, withArchivistInstance, withArchivistModule };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/archivist-model",
3
- "version": "3.9.2",
3
+ "version": "3.9.4",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -35,11 +35,11 @@
35
35
  "@xylabs/object": "^4.5.1",
36
36
  "@xylabs/promise": "^4.5.1",
37
37
  "@xylabs/typeof": "^4.5.1",
38
- "@xyo-network/account-model": "^3.9.2",
39
- "@xyo-network/boundwitness-model": "^3.9.2",
40
- "@xyo-network/module-events": "^3.9.2",
41
- "@xyo-network/module-model": "^3.9.2",
42
- "@xyo-network/payload-model": "^3.9.2"
38
+ "@xyo-network/account-model": "^3.9.4",
39
+ "@xyo-network/boundwitness-model": "^3.9.4",
40
+ "@xyo-network/module-events": "^3.9.4",
41
+ "@xyo-network/module-model": "^3.9.4",
42
+ "@xyo-network/payload-model": "^3.9.4"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@xylabs/ts-scripts-yarn3": "^5.0.24",