@xyo-network/module-model 4.1.2 → 4.1.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.
Files changed (2) hide show
  1. package/dist/neutral/index.d.ts +22 -671
  2. package/package.json +18 -18
@@ -1,671 +1,22 @@
1
- import { Schema, Payload, ModuleError, WithoutPrivateStorageMeta, WithSources, Query } from '@xyo-network/payload-model';
2
- import { Address } from '@xylabs/hex';
3
- import * as _xylabs_object from '@xylabs/object';
4
- import { EmptyObject, TypeCheck, AnyObject, IsObjectFactory, JsonValue } from '@xylabs/object';
5
- import { LogLevel, Logger } from '@xylabs/logger';
6
- import { RetryConfig } from '@xylabs/retry';
7
- import { CreatableStatusReporter, CreatableParams, CreatableStatus, CreatableInstance, Creatable } from '@xylabs/creatable';
8
- import { EventArgs, EventData, EventEmitter } from '@xylabs/events';
9
- import { BoundWitness, QueryBoundWitness } from '@xyo-network/boundwitness-model';
10
- import { AccountInstance } from '@xyo-network/account-model';
11
- import * as _xylabs_promise from '@xylabs/promise';
12
- import { Promisable } from '@xylabs/promise';
13
- import { ModuleManifestPayload } from '@xyo-network/manifest-model';
14
- import { ObjectTypeShape } from '@xylabs/typeof';
15
-
16
- interface CacheConfig {
17
- max?: number;
18
- maxSize?: number;
19
- ttl?: number;
20
- }
21
-
22
- declare const MODULE_PATH_SEPARATOR: ":";
23
- declare const DisallowedModuleIdentifierCharacters: {
24
- ' ': boolean;
25
- '!': boolean;
26
- '"': boolean;
27
- '#': boolean;
28
- $: boolean;
29
- '%': boolean;
30
- '&': boolean;
31
- "'": boolean;
32
- '(': boolean;
33
- ')': boolean;
34
- '*': boolean;
35
- ',': boolean;
36
- '.': boolean;
37
- '/': boolean;
38
- ':': boolean;
39
- ';': boolean;
40
- '<': boolean;
41
- '=': boolean;
42
- '>': boolean;
43
- '?': boolean;
44
- '@': boolean;
45
- '[': boolean;
46
- ']': boolean;
47
- '^': boolean;
48
- _: boolean;
49
- '{': boolean;
50
- '|': boolean;
51
- '}': boolean;
52
- '~': boolean;
53
- };
54
- type ReservedModuleIdentifierCharacter = keyof typeof DisallowedModuleIdentifierCharacters;
55
- declare const ReservedModuleIdentifierCharacters: Set<":" | " " | "!" | "\"" | "#" | "$" | "%" | "&" | "'" | "(" | ")" | "*" | "," | "." | "/" | ";" | "<" | "=" | ">" | "?" | "@" | "[" | "]" | "^" | "_" | "{" | "|" | "}" | "~">;
56
- type ModuleName = Exclude<string, 'reserved-module-name-56487634'>;
57
- type ModuleIdentifier = ColonPair<ModuleIdentifierPart> | ColonPair<ColonPair<ModuleIdentifierPart>> | ColonPair<ColonPair<ColonPair<ModuleIdentifierPart>>> | ColonPair<ColonPair<ColonPair<ColonPair<ModuleIdentifierPart>>>> | ColonPair<ColonPair<ColonPair<ColonPair<ColonPair<ModuleIdentifierPart>>>>> | ColonPair<ColonPair<ColonPair<ColonPair<ColonPair<ColonPair<ModuleIdentifierPart>>>>>> | ColonPair<ColonPair<ColonPair<ColonPair<ColonPair<ColonPair<ColonPair<ModuleIdentifierPart>>>>>>>;
58
- type ColonPair<T extends string> = `${T}:${T}` | T;
59
- type ModuleIdentifierPart = Exclude<Address | ModuleName, '*'>;
60
- declare const isModuleName: (value: unknown) => value is ModuleName;
61
- declare const includesReservedModuleIdentifierCharacter: (value: unknown) => boolean;
62
- declare const isModuleIdentifierPart: (value: unknown) => value is ModuleIdentifierPart;
63
-
64
- interface ArchivingModuleConfig {
65
- readonly archiving?: {
66
- readonly archivists?: ModuleIdentifier[];
67
- readonly queries?: Schema[];
68
- };
69
- }
70
-
71
- /**
72
- * Object used to represent labels identifying a resource.
73
- */
74
- interface Labels {
75
- [key: string]: string | undefined;
76
- }
77
- /**
78
- * Interface for objects that have labels.
79
- */
80
- interface WithLabels<T extends Labels = Labels> {
81
- labels: T;
82
- }
83
- /**
84
- * Interface for objects that have labels.
85
- */
86
- interface WithOptionalLabels<T extends Labels = Labels> {
87
- labels?: T;
88
- }
89
- /**
90
- * Returns true if the source object has all the labels from the required set
91
- * @param source Source object to check against
92
- * @param required Set of labels to check for in source
93
- * @returns True of the source object has all the labels from the required set
94
- */
95
- declare const hasAllLabels: (source?: Labels, required?: Labels) => boolean;
96
-
97
- declare const ModuleLimitationLabelName = "network.xyo.module.limitation";
98
- type ModuleLimitationLabelName = typeof ModuleLimitationLabelName;
99
- declare const ModuleLimitationViewLabel: {
100
- ModuleLimitationLabelName: string;
101
- };
102
-
103
- type CosigningAddressSet = Address[];
104
- interface ModuleSecurityConfig {
105
- /** @field Will the module process queries that have unsigned BoundWitness in query tuples */
106
- readonly allowAnonymous?: boolean;
107
- /** @field If schema in record, then only these address sets can access query */
108
- readonly allowed?: Record<Schema, (Address | CosigningAddressSet)[]>;
109
- /** @field If schema in record, then anyone except these addresses can access query */
110
- readonly disallowed?: Record<Schema, Address[]>;
111
- }
112
-
113
- interface ModuleConfigFields {
114
- /** Limit to only these allowed queries */
115
- readonly allowedQueries?: Schema[];
116
- /** @field The name/address of the Archivist to use for this module */
117
- readonly archivist?: ModuleIdentifier;
118
- /**
119
- * @field The labels used for this module. If a label is specified, then the
120
- * ModuleFactoryLocator will attempt to find a ModuleFactory with the corresponding
121
- * labels to construct this module.
122
- */
123
- readonly labels?: Labels;
124
- readonly logLevel?: LogLevel;
125
- /** @field Friendly name of module (not collision resistant). Can be used to resolve module when registered/attached to Node. */
126
- readonly name?: ModuleName;
127
- /** @field paging settings for queries */
128
- readonly paging?: Record<string, {
129
- size?: number;
130
- }>;
131
- readonly retry?: RetryConfig;
132
- /** @field The query schemas and allowed/disallowed addresses which are allowed to issue them against the module.
133
- * If both allowed and disallowed is specified, then disallowed takes priority. */
134
- readonly security?: ModuleSecurityConfig;
135
- /** @field sign every query */
136
- readonly sign?: boolean;
137
- /** @field Store the queries made to the module in an archivist if possible */
138
- readonly storeQueries?: boolean;
139
- /** @field add a timestamp payload to every query */
140
- readonly timestamp?: boolean;
141
- }
142
-
143
- interface ArchivingReentrancyConfig {
144
- readonly reentrancy?: {
145
- action: 'skip' | 'wait';
146
- scope: 'global';
147
- };
148
- }
149
-
150
- declare const ModuleConfigSchema: "network.xyo.module.config";
151
- type ModuleConfigSchema = typeof ModuleConfigSchema;
152
- type WithAdditional<T extends EmptyObject = EmptyObject, TAdditional extends EmptyObject = EmptyObject> = T & TAdditional;
153
- type ModuleConfig<TConfig extends EmptyObject | Payload = EmptyObject, TSchema extends Schema | void = void> = Payload<WithAdditional<ArchivingModuleConfig & ModuleConfigFields & ArchivingReentrancyConfig, TConfig>, TSchema extends void ? TConfig extends Payload ? TConfig['schema'] : Schema : TSchema>;
154
- type AnyConfigSchema<TConfig extends Omit<ModuleConfig, 'schema'> & {
155
- schema: Schema;
156
- } = Omit<ModuleConfig, 'schema'> & {
157
- schema: Schema;
158
- }> = ModuleConfig<TConfig, string>;
159
- type OptionalConfigSchema<TConfig extends AnyConfigSchema<ModuleConfig> = AnyConfigSchema<ModuleConfig>> = Omit<TConfig, 'schema'> & {
160
- schema?: TConfig['schema'];
161
- };
162
- type AnyModuleConfig = AnyConfigSchema<ModuleConfig>;
163
-
164
- type ModuleEventArgs<TModule extends object = object, TArgs extends EventArgs | undefined = undefined> = TArgs extends EventArgs ? {
165
- mod: TModule;
166
- } & TArgs : {
167
- mod: TModule;
168
- };
169
-
170
- type ModuleBusyEventArgs<TModule extends object = object> = ModuleEventArgs<TModule, {
171
- busy: boolean;
172
- }>;
173
- interface ModuleBusyEventData<TModule extends object = object> extends EventData {
174
- moduleBusy: ModuleBusyEventArgs<TModule>;
175
- }
176
-
177
- type ModuleErrorEventArgs<TModule extends object = object> = ModuleEventArgs<TModule, {
178
- error: Error;
179
- }>;
180
- interface ModuleErrorEventData<TModule extends object = object> extends EventData {
181
- moduleError: ModuleErrorEventArgs<TModule>;
182
- }
183
-
184
- type ModuleQueryResult<P extends Payload = Payload, E extends ModuleError = ModuleError, B extends BoundWitness = BoundWitness> = [
185
- WithoutPrivateStorageMeta<B>,
186
- WithoutPrivateStorageMeta<P>[],
187
- WithoutPrivateStorageMeta<E>[]
188
- ];
189
-
190
- type ModuleQueriedEventArgs<TModule extends object = object> = ModuleEventArgs<TModule, {
191
- payloads?: Payload[];
192
- query: QueryBoundWitness;
193
- result: ModuleQueryResult;
194
- }>;
195
- interface ModuleQueriedEventData<TModule extends object = object> extends EventData {
196
- moduleQueried: ModuleQueriedEventArgs<TModule>;
197
- }
198
-
199
- interface ModuleEventData<TModule extends object = object> extends ModuleQueriedEventData<TModule>, ModuleBusyEventData<TModule>, ModuleErrorEventData<TModule> {
200
- }
201
-
202
- type ModuleIdentifierTransformerFunc = (id: ModuleIdentifier) => Promisable<ModuleIdentifier | undefined>;
203
- interface ModuleIdentifierTransformer {
204
- transform: ModuleIdentifierTransformerFunc;
205
- }
206
-
207
- interface ModuleStatusReporter extends CreatableStatusReporter {
208
- }
209
-
210
- type ModuleChildrenParams = {
211
- privateChildren?: ModuleInstance[];
212
- publicChildren?: ModuleInstance[];
213
- };
214
- interface ModuleParams<TConfig extends AnyConfigSchema<ModuleConfig> = AnyConfigSchema<ModuleConfig>> extends CreatableParams, ModuleChildrenParams {
215
- account?: AccountInstance | 'random';
216
- addToResolvers?: boolean;
217
- additionalSigners?: AccountInstance[];
218
- allowNameResolution?: boolean;
219
- config: Partial<TConfig>;
220
- ephemeralQueryAccountEnabled?: boolean;
221
- moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
222
- statusReporter?: ModuleStatusReporter;
223
- }
224
-
225
- interface ModuleFields<TParams extends ModuleParams = ModuleParams> {
226
- address: Address;
227
- config: TParams['config'];
228
- /** The name (if specified) or address of the module */
229
- id: string;
230
- modName?: ModuleName;
231
- params: TParams;
232
- previousHash: () => Promisable<string | undefined>;
233
- queries: string[];
234
- query: <T extends QueryBoundWitness = QueryBoundWitness, TConf extends ModuleConfig = ModuleConfig>(query: T, payloads?: Payload[], queryConfig?: TConf) => Promisable<ModuleQueryResult>;
235
- queryable: <T extends QueryBoundWitness = QueryBoundWitness, TConf extends ModuleConfig = ModuleConfig>(query: T, payloads?: Payload[], queryConfig?: TConf) => Promisable<boolean>;
236
- start?: () => Promisable<boolean>;
237
- stop?: () => Promisable<boolean>;
238
- }
239
-
240
- interface Module<TParams extends ModuleParams = ModuleParams, TEventData extends ModuleEventData<object> = ModuleEventData<object>> extends ModuleFields<TParams>, EventEmitter<TEventData> {
241
- }
242
-
243
- declare const asModule: _xylabs_object.AsTypeFunction<Module<ModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
244
-
245
- declare const asModuleObject: _xylabs_object.AsTypeFunction<Module<ModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
246
-
247
- declare const requiredModuleQueries: Schema[];
248
- declare const isModule: TypeCheck<Module>;
249
-
250
- type ModuleTypeCheck<T extends Module = Module> = TypeCheck<T>;
251
- declare class IsModuleFactory<T extends Module = Module> {
252
- create(expectedQueries?: string[], additionalChecks?: TypeCheck<AnyObject | EmptyObject>[]): ModuleTypeCheck<T>;
253
- }
254
-
255
- declare const requiredModuleShape: ObjectTypeShape;
256
- declare const isModuleObject: TypeCheck<Module>;
257
-
258
- declare const AddressSchema: "network.xyo.address";
259
- type AddressSchema = typeof AddressSchema;
260
- declare const AddressChildSchema: "network.xyo.address.child";
261
- type AddressChildSchema = typeof AddressChildSchema;
262
- interface AddressFields {
263
- address: Address;
264
- }
265
- type AddressPayload = Payload<AddressFields, AddressSchema>;
266
- /**
267
- * Identity function for determining if an object is an Address
268
- */
269
- declare const isAddressPayload: (x?: unknown | null) => x is AddressPayload;
270
- declare const asAddressPayload: _xylabs_object.AsTypeFunction<AddressPayload>;
271
- declare const asOptionalAddressPayload: (value: _xylabs_promise.AnyNonPromise) => AddressPayload | undefined;
272
- interface AddressChildFields extends AddressFields {
273
- /**
274
- * The derivation path of the child address
275
- */
276
- path?: string;
277
- /**
278
- * The public address of the root of the hierarchy
279
- */
280
- root?: Address;
281
- }
282
- type AddressChildPayload = Payload<AddressChildFields, AddressChildSchema>;
283
-
284
- declare const AddressPreviousHashSchema: "network.xyo.address.hash.previous";
285
- type AddressPreviousHashSchema = typeof AddressPreviousHashSchema;
286
- type AddressPreviousHashPayload = Payload<{
287
- address: Address;
288
- previousHash?: string;
289
- }, AddressPreviousHashSchema>;
290
-
291
- interface ModuleDescription {
292
- address: Address;
293
- children?: string[];
294
- name?: ModuleName;
295
- queries: string[];
296
- }
297
-
298
- declare const ModuleDescriptionSchema: "network.xyo.module.description";
299
- type ModuleDescriptionSchema = typeof ModuleDescriptionSchema;
300
- type ModuleDescriptionPayload = Payload<ModuleDescription, ModuleDescriptionSchema>;
301
-
302
- interface StateDictionary {
303
- [key: string]: string | number;
304
- }
305
- interface State<T extends StateDictionary = StateDictionary> {
306
- state: T;
307
- }
308
- declare const ModuleStateSchema: "network.xyo.module.state";
309
- type ModuleStateSchema = typeof ModuleStateSchema;
310
- type ModuleState<T extends StateDictionary = StateDictionary> = Payload<State<T>, ModuleStateSchema>;
311
- declare const isModuleState: <T extends StateDictionary = StateDictionary>(payload?: unknown) => payload is ModuleState<T>;
312
- declare const isModuleStateWithSources: <T extends StateDictionary = StateDictionary>(payload?: unknown) => payload is WithSources<ModuleState<T>>;
313
- declare const asModuleState: _xylabs_object.AsTypeFunction<ModuleState<StateDictionary>>;
314
- declare const asOptionalModuleState: (value: _xylabs_promise.AnyNonPromise) => ModuleState<StateDictionary> | undefined;
315
-
316
- interface ModuleQueryFunctions {
317
- manifest: (maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleManifestPayload>;
318
- manifestQuery: (account: AccountInstance, maxDepth?: number, ignoreAddresses?: Address[]) => Promisable<ModuleQueryResult<ModuleManifestPayload>>;
319
- moduleAddress: () => Promisable<(AddressPreviousHashPayload | AddressPayload)[]>;
320
- state: () => Promisable<Payload[]>;
321
- stateQuery: (account: AccountInstance) => Promisable<ModuleQueryResult>;
322
- }
323
-
324
- type Direction = 'up' | 'down' | 'all';
325
- type Visibility = 'public' | 'private' | 'all';
326
- interface ResolveStrategy {
327
- maxDepth?: number;
328
- required?: boolean | 'warn' | 'log';
329
- retry?: number;
330
- timeout?: number;
331
- }
332
- interface ObjectFilterOptions<T extends EmptyObject = AnyObject> extends ResolveStrategy {
333
- direction?: Direction;
334
- identity?: TypeCheck<T>;
335
- }
336
- interface AddressObjectFilter<T extends EmptyObject = AnyObject> extends ObjectFilterOptions<T> {
337
- address: Address[];
338
- }
339
- declare const isAddressObjectFilter: <T extends EmptyObject = AnyObject>(value: unknown) => value is AddressObjectFilter<T>;
340
- interface NameObjectFilter<T extends EmptyObject = AnyObject> extends ObjectFilterOptions<T> {
341
- name: ModuleName[];
342
- }
343
- declare const isNameObjectFilter: <T extends EmptyObject = AnyObject>(value: unknown) => value is NameObjectFilter<T>;
344
- interface QueryObjectFilter<T extends EmptyObject = AnyObject> extends ObjectFilterOptions<T> {
345
- query: string[][];
346
- }
347
- declare const isQueryObjectFilter: <T extends EmptyObject = AnyObject>(value: unknown) => value is QueryObjectFilter<T>;
348
- type AnyObjectFilter<T extends EmptyObject = AnyObject> = Partial<AddressObjectFilter<T>> & Partial<NameObjectFilter<T>> & Partial<QueryObjectFilter<T>>;
349
- type ObjectFilter<T extends EmptyObject> = ObjectFilterOptions<T> | AddressObjectFilter<T> | NameObjectFilter<T> | QueryObjectFilter<T>;
350
-
351
- declare const isObjectResolver: <T extends EmptyObject = AnyObject>(value?: unknown) => value is ObjectResolver<T>;
352
- declare const ObjectResolverPriority: {
353
- readonly Disabled: -1;
354
- readonly VeryLow: 0;
355
- readonly Low: 1;
356
- readonly Normal: 2;
357
- readonly High: 3;
358
- readonly VeryHigh: 4;
359
- };
360
- type ObjectResolverPriority = typeof ObjectResolverPriority[keyof typeof ObjectResolverPriority];
361
- interface ObjectResolver<TResult extends EmptyObject> {
362
- priority: ObjectResolverPriority;
363
- /** @deprecated do not pass undefined. If trying to get all, pass '*' */
364
- resolve<T extends TResult = TResult>(): Promisable<T | undefined>;
365
- resolve<T extends TResult = TResult>(all: '*', options?: ObjectFilterOptions<T>): Promisable<T[]>;
366
- resolve<T extends TResult = TResult>(id: ModuleIdentifier, options?: ObjectFilterOptions<T>): Promisable<T | undefined>;
367
- resolve<T extends TResult = TResult>(id?: ModuleIdentifier, options?: ObjectFilterOptions<T>): Promisable<T | T[] | undefined>;
368
- resolvePrivate<T extends TResult = TResult>(all: '*', options?: ObjectFilterOptions<T>): Promise<T[]>;
369
- resolvePrivate<T extends TResult = TResult>(id: ModuleIdentifier, options?: ObjectFilterOptions<T>): Promise<T | undefined>;
370
- resolvePrivate<T extends TResult = TResult>(id: ModuleIdentifier, options?: ObjectFilterOptions<T>): Promise<T | T[] | undefined>;
371
- }
372
- interface ObjectResolverInstance<TResult extends EmptyObject> extends ObjectResolver<TResult> {
373
- addResolver: (resolver: ObjectResolverInstance<TResult>) => this;
374
- removeResolver: (resolver: ObjectResolverInstance<TResult>) => this;
375
- }
376
-
377
- type ModulePipeLine = Lowercase<'one-to-one' | 'one-to-many' | 'many-to-one' | 'many-to-many'>;
378
- type ModuleStatus = CreatableStatus | 'wrapped' | 'proxy';
379
- declare class DeadModuleError extends Error {
380
- id: ModuleIdentifier;
381
- error: Error | undefined;
382
- constructor(id: ModuleIdentifier, error: Error | undefined, msg?: string);
383
- }
384
- interface AddressToWeakInstanceCache {
385
- get: (address: Address) => WeakRef<ModuleInstance> | null;
386
- set: (address: Address, instance: WeakRef<ModuleInstance> | null) => void;
387
- }
388
- interface ModuleFamilyFunctions {
389
- account?: AccountInstance;
390
- addParent: (mod: ModuleInstance) => void;
391
- addressCache?: (direction: Direction, includePrivate: boolean) => AddressToWeakInstanceCache | undefined;
392
- modName?: ModuleName;
393
- parents: () => Promisable<ModuleInstance[]>;
394
- privateChildren: () => Promisable<ModuleInstance[]>;
395
- publicChildren: () => Promisable<ModuleInstance[]>;
396
- removeParent: (address: Address) => void;
397
- siblings: () => Promisable<ModuleInstance[]>;
398
- }
399
- interface ModuleInstance<TParams extends ModuleParams = ModuleParams, TEventData extends ModuleEventData = ModuleEventData> extends Module<TParams, TEventData>, ObjectResolver<ModuleInstance>, ModuleQueryFunctions, ModuleFamilyFunctions {
400
- readonly pipeline?: ModulePipeLine;
401
- readonly status: ModuleStatus;
402
- }
403
- type InstanceTypeCheck<T extends ModuleInstance = ModuleInstance> = TypeCheck<T>;
404
- declare class IsInstanceFactory<T extends ModuleInstance = ModuleInstance> extends IsObjectFactory<T> {
405
- }
406
-
407
- declare const asModuleInstance: _xylabs_object.AsTypeFunction<ModuleInstance<ModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
408
-
409
- declare const isModuleResolver: (value?: unknown) => value is ObjectResolver<ModuleInstance<ModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
410
- interface ModuleResolver<TResult extends ModuleInstance = ModuleInstance> extends ObjectResolver<TResult> {
411
- }
412
- interface ModuleNameResolver {
413
- readonly root: ModuleInstance;
414
- resolveIdentifier(id: ModuleIdentifier, options?: ObjectFilterOptions): Promisable<Address | undefined>;
415
- }
416
- interface ModuleResolverInstance<TResult extends ModuleInstance = ModuleInstance> extends ModuleResolver<TResult>, ModuleNameResolver {
417
- addResolver: (resolver: ModuleResolverInstance<TResult>) => this;
418
- removeResolver: (resolver: ModuleResolverInstance<TResult>) => this;
419
- }
420
-
421
- interface AttachableModuleInstance<TParams extends ModuleParams = ModuleParams, TEventData extends ModuleEventData = ModuleEventData> extends ModuleInstance<TParams, TEventData>, CreatableInstance<TParams, TEventData> {
422
- config: TParams['config'];
423
- readonly downResolver: ModuleResolverInstance;
424
- readonly privateResolver: ModuleResolverInstance;
425
- readonly upResolver: ModuleResolverInstance;
426
- }
427
- type AttachableModuleInstanceTypeCheck<T extends AttachableModuleInstance = AttachableModuleInstance> = TypeCheck<T>;
428
- declare class IsAttachableModuleInstanceFactory<T extends AttachableModuleInstance = AttachableModuleInstance> extends IsObjectFactory<T> {
429
- }
430
-
431
- declare const asAttachableModuleInstance: _xylabs_object.AsTypeFunction<AttachableModuleInstance<ModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
432
-
433
- declare const requiredAttachableModuleInstanceFunctions: ObjectTypeShape;
434
- declare const isAttachableModuleInstance: TypeCheck<AttachableModuleInstance>;
435
-
436
- declare const requiredModuleInstanceFunctions: ObjectTypeShape;
437
- declare const isModuleInstance: TypeCheck<ModuleInstance>;
438
-
439
- interface ModuleFilterOptions<T extends ModuleInstance = ModuleInstance> extends ObjectFilterOptions<T> {
440
- }
441
- declare const isAddressModuleFilter: (value: unknown) => value is AddressObjectFilter<ModuleInstance<ModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
442
- declare const isNameModuleFilter: (value: unknown) => value is NameObjectFilter<ModuleInstance<ModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
443
- declare const isQueryModuleFilter: (value: unknown) => value is QueryObjectFilter<ModuleInstance<ModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>>;
444
- type AnyModuleFilter<T extends ModuleInstance = ModuleInstance> = AnyObjectFilter<T>;
445
- type AddressModuleFilter<T extends ModuleInstance = ModuleInstance> = AddressObjectFilter<T>;
446
- type NameModuleFilter<T extends ModuleInstance = ModuleInstance> = NameObjectFilter<T>;
447
- type QueryModuleFilter<T extends ModuleInstance = ModuleInstance> = QueryObjectFilter<T>;
448
- /** @deprecated use ModuleIdentifier instead */
449
- type ModuleFilter<T extends ModuleInstance = ModuleInstance> = ObjectFilter<T>;
450
-
451
- interface ModuleRepository<T extends ModuleInstance = ModuleInstance> extends ModuleResolverInstance<T> {
452
- add(mod: T): this;
453
- add(mod: T[]): this;
454
- add(mod: T | T[]): this;
455
- remove(address: Address | string[]): this;
456
- }
457
-
458
- type LabeledCreatableModuleFactory<T extends CreatableModuleInstance = CreatableModuleInstance> = CreatableModuleFactory<T> & WithOptionalLabels;
459
- declare const hasLabels: (factory: CreatableModuleFactory | LabeledCreatableModuleFactory) => factory is LabeledCreatableModuleFactory;
460
- /**
461
- * Class annotation to be used to decorate Modules which support
462
- * an asynchronous labeled creation factory pattern
463
- * @returns The decorated Module requiring it implement the members
464
- * of the CreatableModule as statics properties/methods
465
- */
466
- declare function labeledCreatableModuleFactory<TModule extends CreatableModuleInstance = CreatableModuleInstance>(): <U extends LabeledCreatableModuleFactory<TModule>>(constructor: U) => void;
467
-
468
- interface CreatableModuleInstance<TParams extends ModuleParams = ModuleParams, TEventData extends ModuleEventData = ModuleEventData> extends CreatableInstance<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData> {
469
- }
470
- interface CreatableModuleFactory<T extends CreatableModuleInstance = CreatableModuleInstance> extends Omit<CreatableModule<T>, 'create' | 'createHandler' | 'paramsHandler'> {
471
- creatableModule: CreatableModule<T>;
472
- defaultParams?: Partial<T['params']>;
473
- create(this: CreatableModuleFactory<T>, params?: Partial<T['params']>): Promise<T>;
474
- }
475
- interface LabeledCreatableModule<T extends CreatableModuleInstance = CreatableModuleInstance> extends CreatableModule<T>, WithOptionalLabels {
476
- factory(params?: Partial<T['params']>): LabeledCreatableModuleFactory<T>;
477
- }
478
- interface CreatableModule<T extends CreatableModuleInstance = CreatableModuleInstance> extends Creatable<T> {
479
- configSchemas: Schema[];
480
- defaultConfigSchema: Schema;
481
- defaultLogger?: Logger;
482
- new (key: unknown, params: Partial<T['params']>): T;
483
- factory(params?: Partial<T['params']>): CreatableModuleFactory<T>;
484
- }
485
- /**
486
- * Class annotation to be used to decorate Modules which support
487
- * an asynchronous creation pattern
488
- * @returns The decorated Module requiring it implement the members
489
- * of the CreatableModule as statics properties/methods
490
- */
491
- declare function creatableModule<TModule extends CreatableModuleInstance = CreatableModuleInstance>(): <U extends CreatableModule<TModule>>(constructor: U) => void;
492
- /**
493
- * Class annotation to be used to decorate Modules which support
494
- * an asynchronous creation pattern
495
- * @returns The decorated Module requiring it implement the members
496
- * of the CreatableModule as statics properties/methods
497
- */
498
- declare function labeledCreatableModule<TModule extends CreatableModuleInstance = CreatableModuleInstance>(): <U extends LabeledCreatableModule<TModule>>(constructor: U) => void;
499
-
500
- interface CreatableModuleRegistry {
501
- [key: Schema]: (CreatableModuleFactory | LabeledCreatableModuleFactory)[] | undefined;
502
- }
503
- declare const registerCreatableModuleFactory: <TModule extends CreatableModuleInstance>(registry: CreatableModuleRegistry, factory: CreatableModuleFactory<TModule> | LabeledCreatableModuleFactory<TModule>, labels?: Labels,
504
- /** register this as the primary factory for every schema it supports */
505
- primary?: boolean | Schema | Schema[]) => void;
506
- declare const registerCreatableModuleFactories: (factories: (CreatableModuleFactory | LabeledCreatableModuleFactory)[], registry?: CreatableModuleRegistry, primary?: boolean) => CreatableModuleRegistry;
507
- /** @deprecated use registerCreatableModuleFactory instead */
508
- declare const assignCreatableModuleRegistry: (target?: CreatableModuleRegistry, ...sources: CreatableModuleRegistry[]) => CreatableModuleRegistry;
509
-
510
- declare class ModuleFactory<TModule extends CreatableModuleInstance> implements CreatableModuleFactory<TModule> {
511
- configSchemas: CreatableModule<TModule>['configSchemas'];
512
- creatableModule: CreatableModule<TModule>;
513
- defaultConfigSchema: Schema;
514
- defaultLogger?: Logger;
515
- defaultParams?: Partial<TModule['params']>;
516
- labels?: Labels;
517
- constructor(creatableModule: CreatableModule<TModule>, params?: Partial<TModule['params']>, labels?: Labels);
518
- static withParams<T extends CreatableModuleInstance>(creatableModule: CreatableModule<T>, params?: Partial<T['params']>, labels?: Labels): ModuleFactory<T>;
519
- create(this: CreatableModuleFactory<TModule>, params?: Partial<TModule['params']>): Promise<TModule>;
520
- factory<T extends CreatableModuleInstance>(this: CreatableModuleFactory<T>, params?: Partial<T['params']>, labels?: Labels): CreatableModuleFactory<T>;
521
- }
522
-
523
- declare class ModuleDetailsError extends Error {
524
- details?: JsonValue | undefined;
525
- constructor(message: string, details?: JsonValue | undefined);
526
- }
527
-
528
- /**
529
- * Used to filter duplicates from an array of modules
530
- * @example: modulesArray.filter(duplicateModules)
531
- * @param value Current Module
532
- * @param index Current Module's index
533
- * @param array Module Array
534
- * @returns True if the Module's address is the first occurrence of
535
- * that address in the array, false otherwise
536
- */
537
- declare const duplicateModules: (value: Module, index: number, array: Module[]) => value is Module;
538
-
539
- declare const isSerializable: (value: unknown, maxDepth?: number) => boolean;
540
-
541
- interface ModuleFactoryLocatorInstance {
542
- /**
543
- * The current registry for the module factory
544
- */
545
- registry: Readonly<CreatableModuleRegistry>;
546
- freeze(): void;
547
- /**
548
- * Locates a module factory that matches the supplied schema and labels
549
- * @param schema The config schema for the module
550
- * @param labels The labels for the module factory
551
- * @returns A module factory that matches the supplied schema and labels or throws if one is not found
552
- */
553
- locate(schema: string, labels?: Labels): CreatableModuleFactory | LabeledCreatableModuleFactory;
554
- merge(locator: ModuleFactoryLocatorInstance): ModuleFactoryLocatorInstance;
555
- /**
556
- * Registers a single module factory (with optional tags) with the locator
557
- * @param factory The factory to register
558
- * @param labels The labels for the module factory
559
- */
560
- register(factory: CreatableModuleFactory, labels?: Labels, primary?: boolean | Schema | Schema[]): ModuleFactoryLocatorInstance;
561
- /**
562
- * Registers multiple module factories with the locator
563
- * @param factories The factories to register
564
- */
565
- registerMany(factories: CreatableModuleFactory[]): ModuleFactoryLocatorInstance;
566
- /**
567
- * Tries to locate a module factory that matches the supplied schema and labels
568
- * @param schema The config schema for the module
569
- * @param labels The labels for the module factory
570
- * @returns A module factory that matches the supplied schema and labels or undefined
571
- */
572
- tryLocate(schema: string, labels?: Labels): CreatableModuleFactory | LabeledCreatableModuleFactory | undefined;
573
- }
574
-
575
- type ModuleQueryHandlerResult = Payload[];
576
-
577
- declare const ModuleManifestQuerySchema: "network.xyo.query.module.manifest";
578
- type ModuleManifestQuerySchema = typeof ModuleManifestQuerySchema;
579
- type ModuleManifestQuery = Query<{
580
- maxDepth?: number;
581
- schema: ModuleManifestQuerySchema;
582
- }>;
583
-
584
- declare const ModuleAddressQuerySchema: "network.xyo.query.module.address";
585
- type ModuleAddressQuerySchema = typeof ModuleAddressQuerySchema;
586
- type ModuleAddressQuery = Query<{
587
- schema: ModuleAddressQuerySchema;
588
- }>;
589
-
590
- declare const ModuleStateQuerySchema: "network.xyo.query.module.state";
591
- type ModuleStateQuerySchema = typeof ModuleStateQuerySchema;
592
- type ModuleStateQuery = Query<void, ModuleStateQuerySchema>;
593
-
594
- declare const ModuleSubscribeQuerySchema: "network.xyo.query.module.subscribe";
595
- type ModuleSubscribeQuerySchema = typeof ModuleSubscribeQuerySchema;
596
- interface ModuleSubscribeFilter {
597
- /** @field if specified, at least one of the schemas must be present in the boundwtness to generate a notification */
598
- schema?: string[];
599
- }
600
- type ModuleSubscribeQuery = Query<{
601
- /** @field The address that will receive notifications */
602
- address: Address;
603
- /** @field A subscribe with a null for filter is an unsubscribe */
604
- filter?: ModuleSubscribeFilter | null;
605
- /** @field The maximum events queued per send [may increase frequency] */
606
- maxQueue?: number;
607
- schema: ModuleSubscribeQuerySchema;
608
- }>;
609
-
610
- type ModuleQueries = ModuleAddressQuery | ModuleSubscribeQuery | ModuleManifestQuery | ModuleStateQuery;
611
-
612
- type ModuleResolveDirection = 'all' | 'up' | 'down';
613
-
614
- declare const resolveAddressToInstanceDown: (root: ModuleInstance, address: Address, includePrivate?: boolean | undefined, ignore?: Address[]) => Promise<ModuleInstance | undefined>;
615
- declare const resolveAddressToInstanceSiblings: (root: ModuleInstance, address: Address, includePrivate?: boolean | undefined, ignore?: Address[]) => Promise<ModuleInstance | undefined>;
616
- declare const resolveAddressToInstanceUp: (root: ModuleInstance, address: Address, includePrivate?: boolean | undefined, ignore?: Address[]) => Promise<ModuleInstance | undefined>;
617
- declare const resolveAddressToInstanceAll: (root: ModuleInstance, address: Address, includePrivate?: boolean | undefined, ignore?: Address[]) => Promise<ModuleInstance | undefined>;
618
- declare const resolveAddressToInstance: (root: ModuleInstance, address: Address, includePrivate?: boolean | undefined, ignore?: Address[], direction?: ModuleResolveDirection) => Promise<ModuleInstance | undefined>;
619
-
620
- declare const resolveAllUp: (root: ModuleInstance, maxDepth?: number, exclude?: Address[]) => Promise<ModuleInstance[]>;
621
- declare const resolveAllDown: (root: ModuleInstance, maxDepth?: number, exclude?: Address[], includePrivate?: boolean) => Promise<ModuleInstance[]>;
622
- declare const resolveAll: (root: ModuleInstance, maxDepth?: number, exclude?: Address[]) => Promise<ModuleInstance[]>;
623
-
624
- declare class ResolveHelperStatic {
625
- static readonly defaultLogger?: Logger;
626
- static transformers: ModuleIdentifierTransformer[];
627
- }
628
-
629
- interface ResolveHelperConfig {
630
- address: Address;
631
- dead?: boolean;
632
- downResolver?: ModuleResolver;
633
- logger?: Logger;
634
- mod: ModuleInstance;
635
- privateResolver?: ModuleResolver;
636
- transformers: ModuleIdentifierTransformer[];
637
- upResolver?: ModuleResolver;
638
- }
639
- declare class ResolveHelper extends ResolveHelperStatic {
640
- static resolve<T extends ModuleInstance = ModuleInstance>(config: ResolveHelperConfig, all: '*', options?: ModuleFilterOptions<T>): Promise<T[]>;
641
- static resolve<T extends ModuleInstance = ModuleInstance>(config: ResolveHelperConfig, id: ModuleIdentifier, options?: ModuleFilterOptions<T>): Promise<T | undefined>;
642
- static resolveModuleIdentifier<T extends ModuleInstance = ModuleInstance>(resolver: ModuleResolver, path: ModuleIdentifier, required?: boolean): Promise<T | undefined>;
643
- static traceModuleIdentifier(resolver: ModuleResolver, path: ModuleIdentifier): Promise<Lowercase<string>[]>;
644
- static transformModuleIdentifier(identifier: ModuleIdentifier, transformers?: ModuleIdentifierTransformer[]): Promise<string | undefined>;
645
- static validateRequiredResolve(required: boolean | 'warn' | 'log', result: ModuleInstance[] | ModuleInstance | undefined, id: ModuleIdentifier, logger?: Logger | undefined): void;
646
- }
647
-
648
- declare const resolveLocalNameToAddressUp: (root: ModuleInstance, modName: ModuleName) => Promise<Address | undefined>;
649
- declare const resolveLocalNameToAddressDown: (root: ModuleInstance, modName: ModuleName, includePrivate?: boolean | undefined) => Promise<Address | undefined>;
650
- declare const resolveLocalNameToAddressAll: (root: ModuleInstance, modName: ModuleName, includePrivate?: boolean | undefined) => Promise<Address | undefined>;
651
- declare const resolveLocalNameToAddress: (root: ModuleInstance, modName: ModuleName, includePrivate?: boolean | undefined, direction?: ModuleResolveDirection) => Promise<Address | undefined>;
652
-
653
- declare const resolveLocalNameToInstanceUp: (root: ModuleInstance, modName: ModuleName) => Promise<ModuleInstance | undefined>;
654
- declare const resolveLocalNameToInstanceDown: (root: ModuleInstance, modName: ModuleName, includePrivate?: boolean | undefined) => Promise<ModuleInstance | undefined>;
655
- declare const resolveLocalNameToInstanceAll: (root: ModuleInstance, modName: ModuleName, includePrivate?: boolean) => Promise<ModuleInstance | undefined>;
656
- declare const resolveLocalNameToInstance: (root: ModuleInstance, modName: ModuleName, includePrivate?: boolean, direction?: ModuleResolveDirection) => Promise<ModuleInstance | undefined>;
657
-
658
- declare const resolvePathToAddress: (root: ModuleInstance, path: string, includePrivate?: boolean | undefined, transformers?: ModuleIdentifierTransformer[]) => Promise<Address | undefined>;
659
-
660
- declare const resolvePathToInstance: (root: ModuleInstance, path: string, includePrivate?: boolean | undefined, transformers?: ModuleIdentifierTransformer[]) => Promise<ModuleInstance | undefined>;
661
-
662
- declare const transformModuleIdentifier: (id: ModuleIdentifier, transformers: ModuleIdentifierTransformer[]) => Promise<ModuleIdentifier | undefined>;
663
-
664
- declare const WithFactory: {
665
- create: <T extends object>(typeCheck: TypeCheck<T>) => <R>(mod: any, closure: (mod: T) => R) => R | undefined;
666
- };
667
- declare const withModule: <R>(mod: any, closure: (mod: Module<ModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>) => R) => R | undefined;
668
- declare const withModuleInstance: <R>(mod: any, closure: (mod: ModuleInstance<ModuleParams<AnyConfigSchema<ModuleConfig>>, ModuleEventData<object>>) => R) => R | undefined;
669
-
670
- export { AddressChildSchema, AddressPreviousHashSchema, AddressSchema, DeadModuleError, DisallowedModuleIdentifierCharacters, IsAttachableModuleInstanceFactory, IsInstanceFactory, IsModuleFactory, MODULE_PATH_SEPARATOR, ModuleAddressQuerySchema, ModuleConfigSchema, ModuleDescriptionSchema, ModuleDetailsError, ModuleFactory, ModuleLimitationLabelName, ModuleLimitationViewLabel, ModuleManifestQuerySchema, ModuleStateQuerySchema, ModuleStateSchema, ModuleSubscribeQuerySchema, ObjectResolverPriority, ReservedModuleIdentifierCharacters, ResolveHelper, WithFactory, asAddressPayload, asAttachableModuleInstance, asModule, asModuleInstance, asModuleObject, asModuleState, asOptionalAddressPayload, asOptionalModuleState, assignCreatableModuleRegistry, creatableModule, duplicateModules, hasAllLabels, hasLabels, includesReservedModuleIdentifierCharacter, isAddressModuleFilter, isAddressObjectFilter, isAddressPayload, isAttachableModuleInstance, isModule, isModuleIdentifierPart, isModuleInstance, isModuleName, isModuleObject, isModuleResolver, isModuleState, isModuleStateWithSources, isNameModuleFilter, isNameObjectFilter, isObjectResolver, isQueryModuleFilter, isQueryObjectFilter, isSerializable, labeledCreatableModule, labeledCreatableModuleFactory, registerCreatableModuleFactories, registerCreatableModuleFactory, requiredAttachableModuleInstanceFunctions, requiredModuleInstanceFunctions, requiredModuleQueries, requiredModuleShape, resolveAddressToInstance, resolveAddressToInstanceAll, resolveAddressToInstanceDown, resolveAddressToInstanceSiblings, resolveAddressToInstanceUp, resolveAll, resolveAllDown, resolveAllUp, resolveLocalNameToAddress, resolveLocalNameToAddressAll, resolveLocalNameToAddressDown, resolveLocalNameToAddressUp, resolveLocalNameToInstance, resolveLocalNameToInstanceAll, resolveLocalNameToInstanceDown, resolveLocalNameToInstanceUp, resolvePathToAddress, resolvePathToInstance, transformModuleIdentifier, withModule, withModuleInstance };
671
- export type { AddressChildFields, AddressChildPayload, AddressFields, AddressModuleFilter, AddressObjectFilter, AddressPayload, AddressPreviousHashPayload, AddressToWeakInstanceCache, AnyConfigSchema, AnyModuleConfig, AnyModuleFilter, AnyObjectFilter, ArchivingModuleConfig, ArchivingReentrancyConfig, AttachableModuleInstance, AttachableModuleInstanceTypeCheck, CacheConfig, ColonPair, CosigningAddressSet, CreatableModule, CreatableModuleFactory, CreatableModuleInstance, CreatableModuleRegistry, Direction, InstanceTypeCheck, LabeledCreatableModule, LabeledCreatableModuleFactory, Labels, Module, ModuleAddressQuery, ModuleBusyEventArgs, ModuleBusyEventData, ModuleChildrenParams, ModuleConfig, ModuleConfigFields, ModuleDescription, ModuleDescriptionPayload, ModuleErrorEventArgs, ModuleErrorEventData, ModuleEventArgs, ModuleEventData, ModuleFactoryLocatorInstance, ModuleFamilyFunctions, ModuleFields, ModuleFilter, ModuleFilterOptions, ModuleIdentifier, ModuleIdentifierPart, ModuleIdentifierTransformer, ModuleIdentifierTransformerFunc, ModuleInstance, ModuleManifestQuery, ModuleName, ModuleNameResolver, ModuleParams, ModulePipeLine, ModuleQueriedEventArgs, ModuleQueriedEventData, ModuleQueries, ModuleQueryFunctions, ModuleQueryHandlerResult, ModuleQueryResult, ModuleRepository, ModuleResolveDirection, ModuleResolver, ModuleResolverInstance, ModuleSecurityConfig, ModuleState, ModuleStateQuery, ModuleStatus, ModuleStatusReporter, ModuleSubscribeFilter, ModuleSubscribeQuery, ModuleTypeCheck, NameModuleFilter, NameObjectFilter, ObjectFilter, ObjectFilterOptions, ObjectResolver, ObjectResolverInstance, OptionalConfigSchema, QueryModuleFilter, QueryObjectFilter, ReservedModuleIdentifierCharacter, ResolveHelperConfig, ResolveStrategy, State, StateDictionary, Visibility, WithAdditional, WithLabels, WithOptionalLabels };
1
+ export * from './cache.ts';
2
+ export * from './Config/index.ts';
3
+ export * from './CreatableModule/index.ts';
4
+ export * from './DetailsError.ts';
5
+ export * from './EventsModels/index.ts';
6
+ export * from './instance/index.ts';
7
+ export * from './Labels/index.ts';
8
+ export * from './lib/index.ts';
9
+ export * from './module/index.ts';
10
+ export * from './ModuleDescription.ts';
11
+ export * from './ModuleFactoryLocatorInstance.ts';
12
+ export * from './ModuleIdentifier.ts';
13
+ export * from './ModuleIdentifierTransformer.ts';
14
+ export * from './ModuleParams.ts';
15
+ export * from './ModuleQueryHandlerResult.ts';
16
+ export * from './ModuleQueryResult.ts';
17
+ export * from './ModuleStatusReporter.ts';
18
+ export * from './Payload/index.ts';
19
+ export * from './Queries/index.ts';
20
+ export * from './ResolveHelper/index.ts';
21
+ export * from './withModule.ts';
22
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/module-model",
3
- "version": "4.1.2",
3
+ "version": "4.1.4",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,25 +29,25 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/assert": "^4.13.15",
33
- "@xylabs/creatable": "^4.13.15",
34
- "@xylabs/events": "^4.13.15",
35
- "@xylabs/exists": "^4.13.15",
36
- "@xylabs/hex": "^4.13.15",
37
- "@xylabs/logger": "^4.13.15",
38
- "@xylabs/object": "^4.13.15",
39
- "@xylabs/promise": "^4.13.15",
40
- "@xylabs/retry": "^4.13.15",
41
- "@xylabs/typeof": "^4.13.15",
42
- "@xyo-network/account-model": "^4.1.2",
43
- "@xyo-network/boundwitness-model": "^4.1.2",
44
- "@xyo-network/manifest-model": "^4.1.2",
45
- "@xyo-network/payload-model": "^4.1.2"
32
+ "@xylabs/assert": "^4.13.16",
33
+ "@xylabs/creatable": "^4.13.16",
34
+ "@xylabs/events": "^4.13.16",
35
+ "@xylabs/exists": "^4.13.16",
36
+ "@xylabs/hex": "^4.13.16",
37
+ "@xylabs/logger": "^4.13.16",
38
+ "@xylabs/object": "^4.13.16",
39
+ "@xylabs/promise": "^4.13.16",
40
+ "@xylabs/retry": "^4.13.16",
41
+ "@xylabs/typeof": "^4.13.16",
42
+ "@xyo-network/account-model": "^4.1.4",
43
+ "@xyo-network/boundwitness-model": "^4.1.4",
44
+ "@xyo-network/manifest-model": "^4.1.4",
45
+ "@xyo-network/payload-model": "^4.1.4"
46
46
  },
47
47
  "devDependencies": {
48
- "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
49
- "@xylabs/tsconfig": "^7.0.0-rc.23",
50
- "@xylabs/vitest-extended": "^4.13.15",
48
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
49
+ "@xylabs/tsconfig": "^7.0.0-rc.27",
50
+ "@xylabs/vitest-extended": "^4.13.16",
51
51
  "typescript": "^5.8.3",
52
52
  "vitest": "^3.2.4"
53
53
  },