@xyo-network/witness-model 3.9.2 → 3.9.3

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.
@@ -9,7 +9,6 @@ import { Payload, WithoutPrivateStorageMeta, Query } from '@xyo-network/payload-
9
9
  import { EventData } from '@xyo-network/module-events';
10
10
  import * as _xyo_network_account_model from '@xyo-network/account-model';
11
11
  import { AccountInstance } from '@xyo-network/account-model';
12
- import * as _xylabs_logger from '@xylabs/logger';
13
12
  import { ObjectTypeShape } from '@xylabs/typeof';
14
13
 
15
14
  type ObserveEndEventArgs<T extends ModuleInstance = ModuleInstance, TIn extends Payload = Payload, TOut extends Payload = Payload> = ModuleEventArgs<T, {
@@ -61,144 +60,27 @@ declare const asAttachableWitnessInstance: {
61
60
  addToResolvers?: boolean;
62
61
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
63
62
  allowNameResolution?: boolean;
64
- config: _xylabs_object.DeepRestrictToStringKeys<{
65
- schema: _xyo_network_payload_model.Schema;
66
- readonly archiving?: {
67
- readonly archivists?: string[] | undefined;
68
- readonly queries?: string[] | undefined;
69
- } | undefined;
70
- readonly allowedQueries?: string[] | undefined;
71
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
72
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
73
- readonly labels?: {
74
- [x: string]: string | undefined;
75
- } | undefined;
76
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
77
- readonly paging?: {
78
- [x: string]: {
79
- size?: number | undefined;
80
- };
81
- } | undefined;
82
- readonly retry?: {
83
- backoff?: number | undefined;
84
- interval?: number | undefined;
85
- retries?: number | undefined;
86
- } | undefined;
87
- readonly security?: {
88
- readonly allowAnonymous?: boolean | undefined;
89
- readonly allowed?: {
90
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
91
- } | undefined;
92
- readonly disallowed?: {
93
- [x: string]: Lowercase<string>[];
94
- } | undefined;
95
- } | undefined;
96
- readonly sign?: boolean | undefined;
97
- readonly storeQueries?: boolean | undefined;
98
- readonly timestamp?: boolean | undefined;
99
- }>;
63
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
100
64
  ephemeralQueryAccountEnabled?: boolean;
101
65
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
102
- }, _xylabs_object.DeepRestrictToStringKeys<{
103
- schema: _xyo_network_payload_model.Schema;
104
- }>, _xylabs_object.DeepRestrictToStringKeys<{
105
- schema: _xyo_network_payload_model.Schema;
106
- }>, WitnessModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
66
+ }, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload, WitnessModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
107
67
  <TType extends AttachableWitnessInstance<_xylabs_object.BaseParamsFields & {
108
68
  account?: _xyo_network_account_model.AccountInstance | "random";
109
69
  addToResolvers?: boolean;
110
70
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
111
71
  allowNameResolution?: boolean;
112
- config: _xylabs_object.DeepRestrictToStringKeys<{
113
- schema: _xyo_network_payload_model.Schema;
114
- readonly archiving?: {
115
- readonly archivists?: string[] | undefined;
116
- readonly queries?: string[] | undefined;
117
- } | undefined;
118
- readonly allowedQueries?: string[] | undefined;
119
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
120
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
121
- readonly labels?: {
122
- [x: string]: string | undefined;
123
- } | undefined;
124
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
125
- readonly paging?: {
126
- [x: string]: {
127
- size?: number | undefined;
128
- };
129
- } | undefined;
130
- readonly retry?: {
131
- backoff?: number | undefined;
132
- interval?: number | undefined;
133
- retries?: number | undefined;
134
- } | undefined;
135
- readonly security?: {
136
- readonly allowAnonymous?: boolean | undefined;
137
- readonly allowed?: {
138
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
139
- } | undefined;
140
- readonly disallowed?: {
141
- [x: string]: Lowercase<string>[];
142
- } | undefined;
143
- } | undefined;
144
- readonly sign?: boolean | undefined;
145
- readonly storeQueries?: boolean | undefined;
146
- readonly timestamp?: boolean | undefined;
147
- }>;
72
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
148
73
  ephemeralQueryAccountEnabled?: boolean;
149
74
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
150
- }, _xylabs_object.DeepRestrictToStringKeys<{
151
- schema: _xyo_network_payload_model.Schema;
152
- }>, _xylabs_object.DeepRestrictToStringKeys<{
153
- schema: _xyo_network_payload_model.Schema;
154
- }>, WitnessModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<AttachableWitnessInstance<_xylabs_object.BaseParamsFields & {
75
+ }, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload, WitnessModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<AttachableWitnessInstance<_xylabs_object.BaseParamsFields & {
155
76
  account?: _xyo_network_account_model.AccountInstance | "random";
156
77
  addToResolvers?: boolean;
157
78
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
158
79
  allowNameResolution?: boolean;
159
- config: _xylabs_object.DeepRestrictToStringKeys<{
160
- schema: _xyo_network_payload_model.Schema;
161
- readonly archiving?: {
162
- readonly archivists?: string[] | undefined;
163
- readonly queries?: string[] | undefined;
164
- } | undefined;
165
- readonly allowedQueries?: string[] | undefined;
166
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
167
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
168
- readonly labels?: {
169
- [x: string]: string | undefined;
170
- } | undefined;
171
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
172
- readonly paging?: {
173
- [x: string]: {
174
- size?: number | undefined;
175
- };
176
- } | undefined;
177
- readonly retry?: {
178
- backoff?: number | undefined;
179
- interval?: number | undefined;
180
- retries?: number | undefined;
181
- } | undefined;
182
- readonly security?: {
183
- readonly allowAnonymous?: boolean | undefined;
184
- readonly allowed?: {
185
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
186
- } | undefined;
187
- readonly disallowed?: {
188
- [x: string]: Lowercase<string>[];
189
- } | undefined;
190
- } | undefined;
191
- readonly sign?: boolean | undefined;
192
- readonly storeQueries?: boolean | undefined;
193
- readonly timestamp?: boolean | undefined;
194
- }>;
80
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
195
81
  ephemeralQueryAccountEnabled?: boolean;
196
82
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
197
- }, _xylabs_object.DeepRestrictToStringKeys<{
198
- schema: _xyo_network_payload_model.Schema;
199
- }>, _xylabs_object.DeepRestrictToStringKeys<{
200
- schema: _xyo_network_payload_model.Schema;
201
- }>, WitnessModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
83
+ }, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload, WitnessModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
202
84
  };
203
85
 
204
86
  declare const requiredAttachableWitnessInstanceFunctions: ObjectTypeShape;
@@ -223,90 +105,16 @@ declare const isWitnessInstance: _xylabs_object.TypeCheck<WitnessInstance<_xylab
223
105
  addToResolvers?: boolean;
224
106
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
225
107
  allowNameResolution?: boolean;
226
- config: _xylabs_object.DeepRestrictToStringKeys<{
227
- schema: _xyo_network_payload_model.Schema;
228
- readonly archiving?: {
229
- readonly archivists?: string[] | undefined;
230
- readonly queries?: string[] | undefined;
231
- } | undefined;
232
- readonly allowedQueries?: string[] | undefined;
233
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
234
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
235
- readonly labels?: {
236
- [x: string]: string | undefined;
237
- } | undefined;
238
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
239
- readonly paging?: {
240
- [x: string]: {
241
- size?: number | undefined;
242
- };
243
- } | undefined;
244
- readonly retry?: {
245
- backoff?: number | undefined;
246
- interval?: number | undefined;
247
- retries?: number | undefined;
248
- } | undefined;
249
- readonly security?: {
250
- readonly allowAnonymous?: boolean | undefined;
251
- readonly allowed?: {
252
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
253
- } | undefined;
254
- readonly disallowed?: {
255
- [x: string]: Lowercase<string>[];
256
- } | undefined;
257
- } | undefined;
258
- readonly sign?: boolean | undefined;
259
- readonly storeQueries?: boolean | undefined;
260
- readonly timestamp?: boolean | undefined;
261
- }>;
108
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
262
109
  ephemeralQueryAccountEnabled?: boolean;
263
110
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
264
- }, _xylabs_object.DeepRestrictToStringKeys<{
265
- schema: _xyo_network_payload_model.Schema;
266
- }>, _xylabs_object.DeepRestrictToStringKeys<{
267
- schema: _xyo_network_payload_model.Schema;
268
- }>, WitnessModuleEventData>>;
111
+ }, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload, WitnessModuleEventData>>;
269
112
  declare const isWitnessModule: _xyo_network_module_model.ModuleTypeCheck<WitnessModule<_xylabs_object.BaseParamsFields & {
270
113
  account?: _xyo_network_account_model.AccountInstance | "random";
271
114
  addToResolvers?: boolean;
272
115
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
273
116
  allowNameResolution?: boolean;
274
- config: _xylabs_object.DeepRestrictToStringKeys<{
275
- schema: _xyo_network_payload_model.Schema;
276
- readonly archiving?: {
277
- readonly archivists?: string[] | undefined;
278
- readonly queries?: string[] | undefined;
279
- } | undefined;
280
- readonly allowedQueries?: string[] | undefined;
281
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
282
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
283
- readonly labels?: {
284
- [x: string]: string | undefined;
285
- } | undefined;
286
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
287
- readonly paging?: {
288
- [x: string]: {
289
- size?: number | undefined;
290
- };
291
- } | undefined;
292
- readonly retry?: {
293
- backoff?: number | undefined;
294
- interval?: number | undefined;
295
- retries?: number | undefined;
296
- } | undefined;
297
- readonly security?: {
298
- readonly allowAnonymous?: boolean | undefined;
299
- readonly allowed?: {
300
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
301
- } | undefined;
302
- readonly disallowed?: {
303
- [x: string]: Lowercase<string>[];
304
- } | undefined;
305
- } | undefined;
306
- readonly sign?: boolean | undefined;
307
- readonly storeQueries?: boolean | undefined;
308
- readonly timestamp?: boolean | undefined;
309
- }>;
117
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
310
118
  ephemeralQueryAccountEnabled?: boolean;
311
119
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
312
120
  }, WitnessModuleEventData>>;
@@ -316,42 +124,7 @@ declare const asWitnessModule: {
316
124
  addToResolvers?: boolean;
317
125
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
318
126
  allowNameResolution?: boolean;
319
- config: _xylabs_object.DeepRestrictToStringKeys<{
320
- schema: _xyo_network_payload_model.Schema;
321
- readonly archiving?: {
322
- readonly archivists?: string[] | undefined;
323
- readonly queries?: string[] | undefined;
324
- } | undefined;
325
- readonly allowedQueries?: string[] | undefined;
326
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
327
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
328
- readonly labels?: {
329
- [x: string]: string | undefined;
330
- } | undefined;
331
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
332
- readonly paging?: {
333
- [x: string]: {
334
- size?: number | undefined;
335
- };
336
- } | undefined;
337
- readonly retry?: {
338
- backoff?: number | undefined;
339
- interval?: number | undefined;
340
- retries?: number | undefined;
341
- } | undefined;
342
- readonly security?: {
343
- readonly allowAnonymous?: boolean | undefined;
344
- readonly allowed?: {
345
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
346
- } | undefined;
347
- readonly disallowed?: {
348
- [x: string]: Lowercase<string>[];
349
- } | undefined;
350
- } | undefined;
351
- readonly sign?: boolean | undefined;
352
- readonly storeQueries?: boolean | undefined;
353
- readonly timestamp?: boolean | undefined;
354
- }>;
127
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
355
128
  ephemeralQueryAccountEnabled?: boolean;
356
129
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
357
130
  }, WitnessModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
@@ -360,42 +133,7 @@ declare const asWitnessModule: {
360
133
  addToResolvers?: boolean;
361
134
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
362
135
  allowNameResolution?: boolean;
363
- config: _xylabs_object.DeepRestrictToStringKeys<{
364
- schema: _xyo_network_payload_model.Schema;
365
- readonly archiving?: {
366
- readonly archivists?: string[] | undefined;
367
- readonly queries?: string[] | undefined;
368
- } | undefined;
369
- readonly allowedQueries?: string[] | undefined;
370
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
371
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
372
- readonly labels?: {
373
- [x: string]: string | undefined;
374
- } | undefined;
375
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
376
- readonly paging?: {
377
- [x: string]: {
378
- size?: number | undefined;
379
- };
380
- } | undefined;
381
- readonly retry?: {
382
- backoff?: number | undefined;
383
- interval?: number | undefined;
384
- retries?: number | undefined;
385
- } | undefined;
386
- readonly security?: {
387
- readonly allowAnonymous?: boolean | undefined;
388
- readonly allowed?: {
389
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
390
- } | undefined;
391
- readonly disallowed?: {
392
- [x: string]: Lowercase<string>[];
393
- } | undefined;
394
- } | undefined;
395
- readonly sign?: boolean | undefined;
396
- readonly storeQueries?: boolean | undefined;
397
- readonly timestamp?: boolean | undefined;
398
- }>;
136
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
399
137
  ephemeralQueryAccountEnabled?: boolean;
400
138
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
401
139
  }, WitnessModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WitnessModule<_xylabs_object.BaseParamsFields & {
@@ -403,42 +141,7 @@ declare const asWitnessModule: {
403
141
  addToResolvers?: boolean;
404
142
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
405
143
  allowNameResolution?: boolean;
406
- config: _xylabs_object.DeepRestrictToStringKeys<{
407
- schema: _xyo_network_payload_model.Schema;
408
- readonly archiving?: {
409
- readonly archivists?: string[] | undefined;
410
- readonly queries?: string[] | undefined;
411
- } | undefined;
412
- readonly allowedQueries?: string[] | undefined;
413
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
414
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
415
- readonly labels?: {
416
- [x: string]: string | undefined;
417
- } | undefined;
418
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
419
- readonly paging?: {
420
- [x: string]: {
421
- size?: number | undefined;
422
- };
423
- } | undefined;
424
- readonly retry?: {
425
- backoff?: number | undefined;
426
- interval?: number | undefined;
427
- retries?: number | undefined;
428
- } | undefined;
429
- readonly security?: {
430
- readonly allowAnonymous?: boolean | undefined;
431
- readonly allowed?: {
432
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
433
- } | undefined;
434
- readonly disallowed?: {
435
- [x: string]: Lowercase<string>[];
436
- } | undefined;
437
- } | undefined;
438
- readonly sign?: boolean | undefined;
439
- readonly storeQueries?: boolean | undefined;
440
- readonly timestamp?: boolean | undefined;
441
- }>;
144
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
442
145
  ephemeralQueryAccountEnabled?: boolean;
443
146
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
444
147
  }, WitnessModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
@@ -449,186 +152,34 @@ declare const asWitnessInstance: {
449
152
  addToResolvers?: boolean;
450
153
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
451
154
  allowNameResolution?: boolean;
452
- config: _xylabs_object.DeepRestrictToStringKeys<{
453
- schema: _xyo_network_payload_model.Schema;
454
- readonly archiving?: {
455
- readonly archivists?: string[] | undefined;
456
- readonly queries?: string[] | undefined;
457
- } | undefined;
458
- readonly allowedQueries?: string[] | undefined;
459
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
460
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
461
- readonly labels?: {
462
- [x: string]: string | undefined;
463
- } | undefined;
464
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
465
- readonly paging?: {
466
- [x: string]: {
467
- size?: number | undefined;
468
- };
469
- } | undefined;
470
- readonly retry?: {
471
- backoff?: number | undefined;
472
- interval?: number | undefined;
473
- retries?: number | undefined;
474
- } | undefined;
475
- readonly security?: {
476
- readonly allowAnonymous?: boolean | undefined;
477
- readonly allowed?: {
478
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
479
- } | undefined;
480
- readonly disallowed?: {
481
- [x: string]: Lowercase<string>[];
482
- } | undefined;
483
- } | undefined;
484
- readonly sign?: boolean | undefined;
485
- readonly storeQueries?: boolean | undefined;
486
- readonly timestamp?: boolean | undefined;
487
- }>;
155
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
488
156
  ephemeralQueryAccountEnabled?: boolean;
489
157
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
490
- }, _xylabs_object.DeepRestrictToStringKeys<{
491
- schema: _xyo_network_payload_model.Schema;
492
- }>, _xylabs_object.DeepRestrictToStringKeys<{
493
- schema: _xyo_network_payload_model.Schema;
494
- }>, WitnessModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
158
+ }, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload, WitnessModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
495
159
  <TType extends WitnessInstance<_xylabs_object.BaseParamsFields & {
496
160
  account?: _xyo_network_account_model.AccountInstance | "random";
497
161
  addToResolvers?: boolean;
498
162
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
499
163
  allowNameResolution?: boolean;
500
- config: _xylabs_object.DeepRestrictToStringKeys<{
501
- schema: _xyo_network_payload_model.Schema;
502
- readonly archiving?: {
503
- readonly archivists?: string[] | undefined;
504
- readonly queries?: string[] | undefined;
505
- } | undefined;
506
- readonly allowedQueries?: string[] | undefined;
507
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
508
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
509
- readonly labels?: {
510
- [x: string]: string | undefined;
511
- } | undefined;
512
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
513
- readonly paging?: {
514
- [x: string]: {
515
- size?: number | undefined;
516
- };
517
- } | undefined;
518
- readonly retry?: {
519
- backoff?: number | undefined;
520
- interval?: number | undefined;
521
- retries?: number | undefined;
522
- } | undefined;
523
- readonly security?: {
524
- readonly allowAnonymous?: boolean | undefined;
525
- readonly allowed?: {
526
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
527
- } | undefined;
528
- readonly disallowed?: {
529
- [x: string]: Lowercase<string>[];
530
- } | undefined;
531
- } | undefined;
532
- readonly sign?: boolean | undefined;
533
- readonly storeQueries?: boolean | undefined;
534
- readonly timestamp?: boolean | undefined;
535
- }>;
164
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
536
165
  ephemeralQueryAccountEnabled?: boolean;
537
166
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
538
- }, _xylabs_object.DeepRestrictToStringKeys<{
539
- schema: _xyo_network_payload_model.Schema;
540
- }>, _xylabs_object.DeepRestrictToStringKeys<{
541
- schema: _xyo_network_payload_model.Schema;
542
- }>, WitnessModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WitnessInstance<_xylabs_object.BaseParamsFields & {
167
+ }, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload, WitnessModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<WitnessInstance<_xylabs_object.BaseParamsFields & {
543
168
  account?: _xyo_network_account_model.AccountInstance | "random";
544
169
  addToResolvers?: boolean;
545
170
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
546
171
  allowNameResolution?: boolean;
547
- config: _xylabs_object.DeepRestrictToStringKeys<{
548
- schema: _xyo_network_payload_model.Schema;
549
- readonly archiving?: {
550
- readonly archivists?: string[] | undefined;
551
- readonly queries?: string[] | undefined;
552
- } | undefined;
553
- readonly allowedQueries?: string[] | undefined;
554
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
555
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
556
- readonly labels?: {
557
- [x: string]: string | undefined;
558
- } | undefined;
559
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
560
- readonly paging?: {
561
- [x: string]: {
562
- size?: number | undefined;
563
- };
564
- } | undefined;
565
- readonly retry?: {
566
- backoff?: number | undefined;
567
- interval?: number | undefined;
568
- retries?: number | undefined;
569
- } | undefined;
570
- readonly security?: {
571
- readonly allowAnonymous?: boolean | undefined;
572
- readonly allowed?: {
573
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
574
- } | undefined;
575
- readonly disallowed?: {
576
- [x: string]: Lowercase<string>[];
577
- } | undefined;
578
- } | undefined;
579
- readonly sign?: boolean | undefined;
580
- readonly storeQueries?: boolean | undefined;
581
- readonly timestamp?: boolean | undefined;
582
- }>;
172
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
583
173
  ephemeralQueryAccountEnabled?: boolean;
584
174
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
585
- }, _xylabs_object.DeepRestrictToStringKeys<{
586
- schema: _xyo_network_payload_model.Schema;
587
- }>, _xylabs_object.DeepRestrictToStringKeys<{
588
- schema: _xyo_network_payload_model.Schema;
589
- }>, WitnessModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
175
+ }, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload, WitnessModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
590
176
  };
591
177
  declare const withWitnessModule: <R>(mod: any, closure: (mod: WitnessModule<_xylabs_object.BaseParamsFields & {
592
178
  account?: _xyo_network_account_model.AccountInstance | "random";
593
179
  addToResolvers?: boolean;
594
180
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
595
181
  allowNameResolution?: boolean;
596
- config: _xylabs_object.DeepRestrictToStringKeys<{
597
- schema: _xyo_network_payload_model.Schema;
598
- readonly archiving?: {
599
- readonly archivists?: string[] | undefined;
600
- readonly queries?: string[] | undefined;
601
- } | undefined;
602
- readonly allowedQueries?: string[] | undefined;
603
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
604
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
605
- readonly labels?: {
606
- [x: string]: string | undefined;
607
- } | undefined;
608
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
609
- readonly paging?: {
610
- [x: string]: {
611
- size?: number | undefined;
612
- };
613
- } | undefined;
614
- readonly retry?: {
615
- backoff?: number | undefined;
616
- interval?: number | undefined;
617
- retries?: number | undefined;
618
- } | undefined;
619
- readonly security?: {
620
- readonly allowAnonymous?: boolean | undefined;
621
- readonly allowed?: {
622
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
623
- } | undefined;
624
- readonly disallowed?: {
625
- [x: string]: Lowercase<string>[];
626
- } | undefined;
627
- } | undefined;
628
- readonly sign?: boolean | undefined;
629
- readonly storeQueries?: boolean | undefined;
630
- readonly timestamp?: boolean | undefined;
631
- }>;
182
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
632
183
  ephemeralQueryAccountEnabled?: boolean;
633
184
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
634
185
  }, WitnessModuleEventData>) => R) => R | undefined;
@@ -637,48 +188,9 @@ declare const withWitnessInstance: <R>(mod: any, closure: (mod: WitnessInstance<
637
188
  addToResolvers?: boolean;
638
189
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
639
190
  allowNameResolution?: boolean;
640
- config: _xylabs_object.DeepRestrictToStringKeys<{
641
- schema: _xyo_network_payload_model.Schema;
642
- readonly archiving?: {
643
- readonly archivists?: string[] | undefined;
644
- readonly queries?: string[] | undefined;
645
- } | undefined;
646
- readonly allowedQueries?: string[] | undefined;
647
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
648
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
649
- readonly labels?: {
650
- [x: string]: string | undefined;
651
- } | undefined;
652
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
653
- readonly paging?: {
654
- [x: string]: {
655
- size?: number | undefined;
656
- };
657
- } | undefined;
658
- readonly retry?: {
659
- backoff?: number | undefined;
660
- interval?: number | undefined;
661
- retries?: number | undefined;
662
- } | undefined;
663
- readonly security?: {
664
- readonly allowAnonymous?: boolean | undefined;
665
- readonly allowed?: {
666
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
667
- } | undefined;
668
- readonly disallowed?: {
669
- [x: string]: Lowercase<string>[];
670
- } | undefined;
671
- } | undefined;
672
- readonly sign?: boolean | undefined;
673
- readonly storeQueries?: boolean | undefined;
674
- readonly timestamp?: boolean | undefined;
675
- }>;
191
+ config: _xyo_network_module_model.AnyConfigSchema<WitnessConfig>;
676
192
  ephemeralQueryAccountEnabled?: boolean;
677
193
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
678
- }, _xylabs_object.DeepRestrictToStringKeys<{
679
- schema: _xyo_network_payload_model.Schema;
680
- }>, _xylabs_object.DeepRestrictToStringKeys<{
681
- schema: _xyo_network_payload_model.Schema;
682
- }>, WitnessModuleEventData>) => R) => R | undefined;
194
+ }, _xyo_network_payload_model.Payload, _xyo_network_payload_model.Payload, WitnessModuleEventData>) => R) => R | undefined;
683
195
 
684
196
  export { type AttachableWitnessInstance, type AttachableWitnessInstanceTypeCheck, type CustomWitnessInstance, type CustomWitnessModule, IsAttachableWitnessInstanceFactory, type ObserveEndEventArgs, type ObserveEndEventData, type ObserveStartEventArgs, type ObserveStartEventData, type WitnessConfig, WitnessConfigSchema, type WitnessInstance, type WitnessModule, type WitnessModuleEventData, type WitnessModuleQueries, type WitnessObserveQuery, WitnessObserveQuerySchema, type WitnessParams, type WitnessQueries, type WitnessQueryFunctions, asAttachableWitnessInstance, asWitnessInstance, asWitnessModule, isAttachableWitnessInstance, isWitnessInstance, isWitnessModule, requiredAttachableWitnessInstanceFunctions, withWitnessInstance, withWitnessModule };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/witness-model",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -32,10 +32,10 @@
32
32
  "@xylabs/object": "^4.5.1",
33
33
  "@xylabs/promise": "^4.5.1",
34
34
  "@xylabs/typeof": "^4.5.1",
35
- "@xyo-network/account-model": "^3.9.2",
36
- "@xyo-network/module-events": "^3.9.2",
37
- "@xyo-network/module-model": "^3.9.2",
38
- "@xyo-network/payload-model": "^3.9.2"
35
+ "@xyo-network/account-model": "^3.9.3",
36
+ "@xyo-network/module-events": "^3.9.3",
37
+ "@xyo-network/module-model": "^3.9.3",
38
+ "@xyo-network/payload-model": "^3.9.3"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@xylabs/ts-scripts-yarn3": "^5.0.24",