Interface ArchivistQueryFunctions<TReadResponse, TWriteResponse, TWrite, TId>
interface ArchivistQueryFunctions< TReadResponse extends Payload = Payload, TWriteResponse extends Payload = Payload, TWrite extends Payload = TReadResponse & Payload, TId = Hash,> { manifest: ( maxDepth?: number, ignoreAddresses?: Lowercase<string>[], ) => Promisable< | DeepRestrictToStringKeys< { config: { accountPath?: string; features?: string[]; labels?: { [key: string]: undefined | string }; language?: string; name: string; os?: string; schema: string; }; description?: string; lazyStart?: boolean; schema: "network.xyo.module.manifest"; status?: { address: Lowercase<string>; children?: { [key: Lowercase<string>]: null | string }; }; }, > | DeepRestrictToStringKeys< { config: { accountPath?: string; features?: string[]; labels?: { [key: string]: undefined | string }; language?: string; name: string; os?: string; schema: string; }; description?: string; lazyStart?: boolean; schema: "network.xyo.node.manifest"; status?: { address: Lowercase<string>; children?: { [key: Lowercase<string>]: null | string }; }; }, >, >; manifestQuery: ( account: AccountInstance, maxDepth?: number, ignoreAddresses?: Lowercase<string>[], ) => Promisable< ModuleQueryResult< | DeepRestrictToStringKeys< { config: { accountPath?: string; features?: string[]; labels?: { [key: string]: undefined | string }; language?: string; name: string; os?: string; schema: string; }; description?: string; lazyStart?: boolean; schema: "network.xyo.module.manifest"; status?: { address: Lowercase<string>; children?: { [key: Lowercase<(...)
>]: (...)
| (...)
}; }; }, > | DeepRestrictToStringKeys< { config: { accountPath?: string; features?: string[]; labels?: { [key: string]: undefined | string }; language?: string; name: string; os?: string; schema: string; }; description?: string; lazyStart?: boolean; schema: "network.xyo.node.manifest"; status?: { address: Lowercase<string>; children?: { [key: Lowercase<(...)
>]: (...)
| (...)
}; }; }, >, DeepRestrictToStringKeys< { details?: | null | string | number | boolean | { [key: string]: | null | string | number | boolean | (
{ [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null)[] | null; }
)
| (
string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
)
[]; } | (
| null | string | number | boolean | { [key: string]: string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
; } | (
(string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null)[]
)
)
[]; message?: string; name?: string; query?: Lowercase<string>; schema: "network.xyo.error.module"; }, >, BoundWitness, >, >; moduleAddress: () => Promisable< (
| DeepRestrictToStringKeys< { address: Lowercase<string>; schema: "network.xyo.address" }, > | DeepRestrictToStringKeys< { address: Lowercase<string>; previousHash?: string; schema: "network.xyo.address.hash.previous"; }, > )
[], >; state: () => Promisable<DeepRestrictToStringKeys<{ schema: string }>[]>; stateQuery: ( account: AccountInstance, ) => Promisable< ModuleQueryResult< DeepRestrictToStringKeys<{ schema: string }>, DeepRestrictToStringKeys< { details?: | null | string | number | boolean | { [key: string]: | null | string | number | boolean | (
{ [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null)[] | null; }
)
| (
string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
)
[]; } | (
| null | string | number | boolean | { [key: string]: string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
; } | (
(string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null)[]
)
)
[]; message?: string; name?: string; query?: Lowercase<string>; schema: "network.xyo.error.module"; }, >, BoundWitness, >, >; all(): PromisableArray<WithStorageMeta<TReadResponse>>; clear(): Promisable<void>; commit(): PromisableArray<TWriteResponse>; delete(ids: TId[]): PromisableArray<TId>; get(ids: TId[]): PromisableArray<WithStorageMeta<TReadResponse>>; insert(item: TWrite[]): PromisableArray<WithStorageMeta<TWriteResponse>>; next( options?: NextOptions<TId>, ): PromisableArray<WithStorageMeta<TReadResponse>>;} Properties
manifest
manifest: ( maxDepth?: number, ignoreAddresses?: Lowercase<string>[],) => Promisable< | DeepRestrictToStringKeys< { config: { accountPath?: string; features?: string[]; labels?: { [key: string]: undefined | string }; language?: string; name: string; os?: string; schema: string; }; description?: string; lazyStart?: boolean; schema: "network.xyo.module.manifest"; status?: { address: Lowercase<string>; children?: { [key: Lowercase<string>]: null | string }; }; }, > | DeepRestrictToStringKeys< { config: { accountPath?: string; features?: string[]; labels?: { [key: string]: undefined | string }; language?: string; name: string; os?: string; schema: string; }; description?: string; lazyStart?: boolean; schema: "network.xyo.node.manifest"; status?: { address: Lowercase<string>; children?: { [key: Lowercase<string>]: null | string }; }; }, >,> manifestQuery
manifestQuery: ( account: AccountInstance, maxDepth?: number, ignoreAddresses?: Lowercase<string>[],) => Promisable< ModuleQueryResult< | DeepRestrictToStringKeys< { config: { accountPath?: string; features?: string[]; labels?: { [key: string]: undefined | string }; language?: string; name: string; os?: string; schema: string; }; description?: string; lazyStart?: boolean; schema: "network.xyo.module.manifest"; status?: { address: Lowercase<string>; children?: { [key: Lowercase<(...)
>]: (...)
| (...)
}; }; }, > | DeepRestrictToStringKeys< { config: { accountPath?: string; features?: string[]; labels?: { [key: string]: undefined | string }; language?: string; name: string; os?: string; schema: string; }; description?: string; lazyStart?: boolean; schema: "network.xyo.node.manifest"; status?: { address: Lowercase<string>; children?: { [key: Lowercase<(...)
>]: (...)
| (...)
}; }; }, >, DeepRestrictToStringKeys< { details?: | null | string | number | boolean | { [key: string]: | null | string | number | boolean | (
{ [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null)[] | null; }
)
| (
string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
)
[]; } | (
| null | string | number | boolean | { [key: string]: string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
; } | (
(string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null)[]
)
)
[]; message?: string; name?: string; query?: Lowercase<string>; schema: "network.xyo.error.module"; }, >, BoundWitness, >,> moduleAddress
moduleAddress: () => Promisable< (
| DeepRestrictToStringKeys< { address: Lowercase<string>; schema: "network.xyo.address" }, > | DeepRestrictToStringKeys< { address: Lowercase<string>; previousHash?: string; schema: "network.xyo.address.hash.previous"; }, > )
[],> stateQuery
stateQuery: ( account: AccountInstance,) => Promisable< ModuleQueryResult< DeepRestrictToStringKeys<{ schema: string }>, DeepRestrictToStringKeys< { details?: | null | string | number | boolean | { [key: string]: | null | string | number | boolean | (
{ [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null)[] | null; }
)
| (
string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
)
[]; } | (
| null | string | number | boolean | { [key: string]: string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null
; } | (
(string | number | boolean | { [x: string]: string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | number | boolean | ... | (string | ... 4 more ... | null)[] | null)[] | null)[] | null)[] | null; } | (string | ... 4 more ... | null)[] | null)[]
)
)
[]; message?: string; name?: string; query?: Lowercase<string>; schema: "network.xyo.error.module"; }, >, BoundWitness, >,> Methods
clear
- clear(): Promisable<void>
Returns Promisable<void>
delete
- delete(ids: TId[]): PromisableArray<TId>
Returns PromisableArray<TId>