@xyo-network/archivist-model
Advanced tools
Comparing version 2.111.3 to 3.0.0
@@ -1,14 +0,436 @@ | ||
export * from './attachable/index.ts'; | ||
export * from './Config.ts'; | ||
export * from './EventData.ts'; | ||
export * from './IndexDescription.ts'; | ||
export * from './Instance.ts'; | ||
export * from './Labels.ts'; | ||
export * from './Module.ts'; | ||
export * from './NextOptions.ts'; | ||
export * from './Params.ts'; | ||
export * from './Queries/index.ts'; | ||
export * from './QueryFunctions.ts'; | ||
export * from './RawQueryFunctions.ts'; | ||
export * from './typeChecks.ts'; | ||
//# sourceMappingURL=index.d.ts.map | ||
import * as _xylabs_promise from '@xylabs/promise'; | ||
import { PromisableArray, Promisable } from '@xylabs/promise'; | ||
import * as _xylabs_object from '@xylabs/object'; | ||
import { EmptyObject, WithAdditional, TypeCheck, IsObjectFactory, ObjectTypeShape } from '@xylabs/object'; | ||
import * as _xyo_network_module_model from '@xyo-network/module-model'; | ||
import { Module, ModuleEventArgs, ModuleEventData, ModuleConfig, ModuleParams, AnyConfigSchema, ModuleQueryFunctions, ModuleQueryResult, ModuleInstance, AttachableModuleInstance, Labels, ModuleQueries } from '@xyo-network/module-model'; | ||
import * as _xyo_network_payload_model from '@xyo-network/payload-model'; | ||
import { WithMeta, Payload, Query } from '@xyo-network/payload-model'; | ||
import { EventData } from '@xyo-network/module-events'; | ||
import { Hash, Address } from '@xylabs/hex'; | ||
import * as _xyo_network_account_model from '@xyo-network/account-model'; | ||
import { AccountInstance } from '@xyo-network/account-model'; | ||
type ClearedEventArgs<T extends Module = Module> = ModuleEventArgs<T>; | ||
interface ClearedEventData<T extends Module = Module> extends EventData { | ||
cleared: ClearedEventArgs<T>; | ||
} | ||
type DeletedEventArgs<T extends Module = Module> = ModuleEventArgs<T, { | ||
hashes: Hash[]; | ||
}>; | ||
interface DeletedEventData<T extends Module = Module> extends EventData { | ||
deleted: DeletedEventArgs<T>; | ||
} | ||
type InsertedEventArgs<T extends Module = Module> = ModuleEventArgs<T, { | ||
payloads: WithMeta<Payload>[]; | ||
}>; | ||
interface InsertedEventData<T extends Module = Module> extends EventData { | ||
inserted: InsertedEventArgs<T>; | ||
} | ||
interface ArchivistModuleEventData extends InsertedEventData, DeletedEventData, ClearedEventData, ModuleEventData { | ||
} | ||
type IndexDirection = -1 | 1; | ||
type IndexDescription = { | ||
key: { | ||
[key: string]: IndexDirection; | ||
} | Map<string, IndexDirection>; | ||
multiEntry?: boolean; | ||
name?: string; | ||
unique?: boolean; | ||
}; | ||
declare const IndexSeparator = "-"; | ||
declare const buildStandardIndexName: (index: IndexDescription) => string; | ||
interface ArchivistParents { | ||
commit?: Address[]; | ||
read?: Address[]; | ||
write?: Address[]; | ||
} | ||
interface ArchivistStorage { | ||
indexes?: IndexDescription[]; | ||
} | ||
declare const ArchivistConfigSchema: "network.xyo.archivist.config"; | ||
type ArchivistConfigSchema = typeof ArchivistConfigSchema; | ||
type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{ | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, TConfig>, TSchema>; | ||
interface ArchivistModule<TParams extends ModuleParams<AnyConfigSchema<ArchivistConfig>> = ModuleParams<AnyConfigSchema<ArchivistConfig>>, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData> extends Module<TParams, TEventData> { | ||
} | ||
type ArchivistParams<TConfig extends AnyConfigSchema<ArchivistConfig> = AnyConfigSchema<ArchivistConfig>, TAdditionalParams extends EmptyObject | undefined = undefined> = ModuleParams<TConfig, TAdditionalParams>; | ||
interface NextOptions<TId = string> { | ||
limit?: number; | ||
offset?: TId; | ||
order?: 'asc' | 'desc'; | ||
} | ||
interface ArchivistNextOptions extends NextOptions<Hash> { | ||
} | ||
interface ReadArchivist<TReadResponse, TId = string> { | ||
all(): PromisableArray<TReadResponse>; | ||
get(ids: TId[]): PromisableArray<TReadResponse>; | ||
next(options?: NextOptions<TId>): PromisableArray<TReadResponse>; | ||
} | ||
interface WriteArchivist<TReadResponse, TWriteResponse = TReadResponse, TWrite = TReadResponse, TId = string> { | ||
clear(): Promisable<void>; | ||
delete(ids: TId[]): PromisableArray<TId>; | ||
insert(item: TWrite[]): PromisableArray<TWriteResponse>; | ||
} | ||
interface StashArchivist<TWriteResponse> { | ||
commit(): PromisableArray<TWriteResponse>; | ||
} | ||
interface Archivist<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = Payload, TWrite extends Payload = TReadResponse & Payload, TId = Hash> extends ReadArchivist<WithMeta<TReadResponse>, TId>, WriteArchivist<WithMeta<TReadResponse>, WithMeta<TWriteResponse>, TWrite, TId>, StashArchivist<WithMeta<TWriteResponse>> { | ||
} | ||
interface ArchivistQueryFunctions<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = Payload, TWrite extends Payload = TReadResponse & Payload, TId = Hash> extends Archivist<TReadResponse, TWriteResponse, TWrite, TId>, ModuleQueryFunctions { | ||
} | ||
interface ArchivistRawQueryFunctions { | ||
allQuery(account?: AccountInstance): Promisable<ModuleQueryResult>; | ||
clearQuery(account?: AccountInstance): Promisable<ModuleQueryResult>; | ||
commitQuery(account?: AccountInstance): Promisable<ModuleQueryResult>; | ||
deleteQuery(hashes: Hash[], account?: AccountInstance): Promisable<ModuleQueryResult>; | ||
getQuery(hashes: Hash[], account?: AccountInstance): Promisable<ModuleQueryResult>; | ||
insertQuery(payloads: Payload[], account?: AccountInstance): Promisable<ModuleQueryResult>; | ||
nextQuery(options?: ArchivistNextOptions, account?: AccountInstance): Promisable<ModuleQueryResult>; | ||
} | ||
interface ArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModule<TParams, TEventData>, ArchivistQueryFunctions<TPayload, WithMeta<TPayload>>, ModuleInstance<TParams, TEventData>, ArchivistRawQueryFunctions { | ||
} | ||
interface AttachableArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModule<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, ArchivistInstance<TParams, TEventData, TPayload> { | ||
} | ||
type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>; | ||
declare class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> { | ||
} | ||
declare const asAttachableArchivistInstance: { | ||
<TType extends AttachableArchivistInstance<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData, { | ||
schema: string; | ||
} & _xyo_network_payload_model.PayloadFields>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined; | ||
<TType extends AttachableArchivistInstance<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData, { | ||
schema: string; | ||
} & _xyo_network_payload_model.PayloadFields>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<AttachableArchivistInstance<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData, { | ||
schema: string; | ||
} & _xyo_network_payload_model.PayloadFields>>, config?: _xylabs_object.TypeCheckConfig): TType; | ||
}; | ||
declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape; | ||
declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>; | ||
interface ArchivistLabels extends Labels { | ||
'network.xyo.archivist.persistence.scope': 'memory' | 'thread' | 'process' | 'device' | 'network'; | ||
} | ||
type ArchivistAllQuerySchema = 'network.xyo.query.archivist.all'; | ||
declare const ArchivistAllQuerySchema: ArchivistAllQuerySchema; | ||
type ArchivistAllQuery = Query<{ | ||
schema: ArchivistAllQuerySchema; | ||
}>; | ||
type ArchivistClearQuerySchema = 'network.xyo.query.archivist.clear'; | ||
declare const ArchivistClearQuerySchema: ArchivistClearQuerySchema; | ||
type ArchivistClearQuery = Query<{ | ||
schema: ArchivistClearQuerySchema; | ||
}>; | ||
type ArchivistCommitQuerySchema = 'network.xyo.query.archivist.commit'; | ||
declare const ArchivistCommitQuerySchema: ArchivistCommitQuerySchema; | ||
type ArchivistCommitQuery = Query<{ | ||
schema: ArchivistCommitQuerySchema; | ||
}>; | ||
type ArchivistDeleteQuerySchema = 'network.xyo.query.archivist.delete'; | ||
declare const ArchivistDeleteQuerySchema: ArchivistDeleteQuerySchema; | ||
type ArchivistDeleteQuery = Query<{ | ||
hashes: Hash[]; | ||
schema: ArchivistDeleteQuerySchema; | ||
}>; | ||
type ArchivistGetQuerySchema = 'network.xyo.query.archivist.get'; | ||
declare const ArchivistGetQuerySchema: ArchivistGetQuerySchema; | ||
type ArchivistGetQuery = Query<{ | ||
hashes: Hash[]; | ||
schema: ArchivistGetQuerySchema; | ||
}>; | ||
type ArchivistInsertQuerySchema = 'network.xyo.query.archivist.insert'; | ||
declare const ArchivistInsertQuerySchema: ArchivistInsertQuerySchema; | ||
type ArchivistInsertQuery = Query<{ | ||
schema: ArchivistInsertQuerySchema; | ||
}>; | ||
type ArchivistNextQuerySchema = 'network.xyo.query.archivist.next'; | ||
declare const ArchivistNextQuerySchema: ArchivistNextQuerySchema; | ||
type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>; | ||
type ArchivistQueries = ArchivistAllQuery | ArchivistClearQuery | ArchivistCommitQuery | ArchivistDeleteQuery | ArchivistGetQuery | ArchivistInsertQuery | ArchivistNextQuery; | ||
type ArchivistModuleQueries = ModuleQueries | ArchivistQueries; | ||
declare const isArchivistInstance: _xylabs_object.TypeCheck<ArchivistInstance<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData, { | ||
schema: string; | ||
} & _xyo_network_payload_model.PayloadFields>>; | ||
declare const isArchivistModule: _xyo_network_module_model.ModuleTypeCheck<ArchivistModule<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData>>; | ||
declare const asArchivistModule: { | ||
<TType extends ArchivistModule<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined; | ||
<TType extends ArchivistModule<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ArchivistModule<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType; | ||
}; | ||
declare const asArchivistInstance: { | ||
<TType extends ArchivistInstance<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData, { | ||
schema: string; | ||
} & _xyo_network_payload_model.PayloadFields>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined; | ||
<TType extends ArchivistInstance<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData, { | ||
schema: string; | ||
} & _xyo_network_payload_model.PayloadFields>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ArchivistInstance<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData, { | ||
schema: string; | ||
} & _xyo_network_payload_model.PayloadFields>>, config?: _xylabs_object.TypeCheckConfig): TType; | ||
}; | ||
declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModule<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData>) => R) => R | undefined; | ||
declare const withArchivistInstance: <R>(mod: any, closure: (mod: ArchivistInstance<_xylabs_object.BaseParamsFields & { | ||
account?: _xyo_network_account_model.AccountInstance | "random"; | ||
addToResolvers?: boolean; | ||
additionalSigners?: _xyo_network_account_model.AccountInstance[]; | ||
allowNameResolution?: boolean; | ||
config: _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & _xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & Omit<_xyo_network_module_model.ArchivingModuleConfig & _xyo_network_module_model.ModuleConfigFields & { | ||
parents?: ArchivistParents; | ||
requireAllParents?: boolean; | ||
schema: "network.xyo.archivist.config"; | ||
storage?: ArchivistStorage; | ||
storeParentReads?: boolean; | ||
}, "schema"> & { | ||
schema: "network.xyo.archivist.config"; | ||
}, "schema"> & { | ||
schema: string; | ||
}; | ||
ephemeralQueryAccountEnabled?: boolean; | ||
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[]; | ||
}, ArchivistModuleEventData, { | ||
schema: string; | ||
} & _xyo_network_payload_model.PayloadFields>) => R) => R | undefined; | ||
export { 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 ArchivistModule, type ArchivistModuleEventData, type ArchivistModuleQueries, type ArchivistNextOptions, type ArchivistNextQuery, ArchivistNextQuerySchema, type ArchivistParams, type ArchivistParents, type ArchivistQueries, type ArchivistQueryFunctions, type ArchivistRawQueryFunctions, type ArchivistStorage, type AttachableArchivistInstance, type AttachableArchivistInstanceTypeCheck, type IndexDescription, type IndexDirection, IndexSeparator, IsAttachableArchivistInstanceFactory, type NextOptions, type ReadArchivist, type StashArchivist, type WriteArchivist, asArchivistInstance, asArchivistModule, asAttachableArchivistInstance, buildStandardIndexName, isArchivistInstance, isArchivistModule, isAttachableArchivistInstance, requiredAttachableArchivistInstanceFunctions, withArchivistInstance, withArchivistModule }; |
@@ -16,41 +16,22 @@ { | ||
"@xylabs/promise": "^3.6.12", | ||
"@xyo-network/account-model": "^2.111.3", | ||
"@xyo-network/module-events": "^2.111.3", | ||
"@xyo-network/module-model": "^2.111.3", | ||
"@xyo-network/payload-model": "^2.111.3" | ||
"@xyo-network/account-model": "^3.0.0", | ||
"@xyo-network/module-events": "^3.0.0", | ||
"@xyo-network/module-model": "^3.0.0", | ||
"@xyo-network/payload-model": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.15.14", | ||
"@xylabs/tsconfig": "^3.15.14", | ||
"@xylabs/ts-scripts-yarn3": "next", | ||
"@xylabs/tsconfig": "next", | ||
"typescript": "^5.5.4" | ||
}, | ||
"description": "Primary SDK for using XYO Protocol 2.0", | ||
"types": "dist/node/index.d.ts", | ||
"types": "dist/neutral/index.d.ts", | ||
"exports": { | ||
".": { | ||
"browser": { | ||
"require": { | ||
"types": "./dist/browser/index.d.cts", | ||
"default": "./dist/browser/index.cjs" | ||
}, | ||
"import": { | ||
"types": "./dist/browser/index.d.mts", | ||
"default": "./dist/browser/index.mjs" | ||
} | ||
}, | ||
"node": { | ||
"require": { | ||
"types": "./dist/node/index.d.cts", | ||
"default": "./dist/node/index.cjs" | ||
}, | ||
"import": { | ||
"types": "./dist/node/index.d.mts", | ||
"default": "./dist/node/index.mjs" | ||
} | ||
} | ||
"types": "./dist/neutral/index.d.ts", | ||
"default": "./dist/neutral/index.mjs" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "dist/node/index.cjs", | ||
"module": "dist/node/index.mjs", | ||
"module": "dist/neutral/index.mjs", | ||
"homepage": "https://xyo.network", | ||
@@ -66,4 +47,4 @@ "license": "LGPL-3.0-only", | ||
"sideEffects": false, | ||
"version": "2.111.3", | ||
"version": "3.0.0", | ||
"type": "module" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64775
36
855
1
+ Added@types/node@22.7.5(transitive)
+ Added@xylabs/arraybuffer@4.3.4(transitive)
+ Added@xylabs/assert@4.3.4(transitive)
+ Added@xylabs/delay@4.3.4(transitive)
+ Added@xylabs/error@4.3.4(transitive)
+ Added@xylabs/exists@4.3.4(transitive)
+ Added@xylabs/forget@4.3.4(transitive)
+ Added@xylabs/hex@4.3.4(transitive)
+ Added@xylabs/logger@4.3.4(transitive)
+ Added@xylabs/object@4.3.4(transitive)
+ Added@xylabs/promise@4.3.4(transitive)
+ Added@xylabs/retry@4.3.4(transitive)
+ Added@xylabs/timer@4.3.4(transitive)
+ Added@xylabs/typeof@4.3.4(transitive)
+ Added@xyo-network/account-model@3.3.3(transitive)
+ Added@xyo-network/boundwitness-model@3.3.3(transitive)
+ Added@xyo-network/data@3.3.3(transitive)
+ Added@xyo-network/key-model@3.3.3(transitive)
+ Added@xyo-network/manifest-model@3.3.3(transitive)
+ Added@xyo-network/module-events@3.3.3(transitive)
+ Added@xyo-network/module-model@3.3.3(transitive)
+ Added@xyo-network/payload-model@3.3.3(transitive)
+ Added@xyo-network/previous-hash-store-model@3.3.3(transitive)
+ Addedethers@6.13.4(transitive)
+ Addedtslib@2.7.0(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removed@types/lodash@4.17.13(transitive)
- Removed@types/lodash-es@4.17.12(transitive)
- Removed@types/node@18.15.13(transitive)
- Removed@xylabs/arraybuffer@3.6.12(transitive)
- Removed@xylabs/delay@3.6.12(transitive)
- Removed@xylabs/exists@3.6.12(transitive)
- Removed@xylabs/forget@3.6.12(transitive)
- Removed@xylabs/lodash@3.6.12(transitive)
- Removed@xylabs/retry@3.6.12(transitive)
- Removed@xylabs/timer@3.6.12(transitive)
- Removed@xylabs/typeof@3.6.12(transitive)
- Removed@xyo-network/account-model@2.111.3(transitive)
- Removed@xyo-network/boundwitness-model@2.111.3(transitive)
- Removed@xyo-network/data@2.111.3(transitive)
- Removed@xyo-network/key-model@2.111.3(transitive)
- Removed@xyo-network/manifest-model@2.111.3(transitive)
- Removed@xyo-network/module-events@2.111.3(transitive)
- Removed@xyo-network/module-model@2.111.3(transitive)
- Removed@xyo-network/payload-model@2.111.3(transitive)
- Removed@xyo-network/previous-hash-store-model@2.111.3(transitive)
- Removedethers@6.13.2(transitive)
- Removedtslib@2.4.0(transitive)