@xyo-network/archivist-model 3.8.0 → 3.8.2
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.
- package/dist/neutral/index.d.ts +995 -14
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/ArchivistFunctions.ts +22 -0
- package/src/Instance.ts +3 -3
- package/src/Module.ts +10 -8
- package/src/ModuleInstance.ts +11 -0
- package/src/PayloadArchivist.ts +36 -0
- package/src/attachable/AttachableInstance.ts +2 -2
- package/src/index.ts +3 -2
- package/src/typeChecks.ts +2 -2
- package/dist/neutral/Config.d.ts +0 -27
- package/dist/neutral/Config.d.ts.map +0 -1
- package/dist/neutral/EventData.d.ts +0 -5
- package/dist/neutral/EventData.d.ts.map +0 -1
- package/dist/neutral/EventModels/Cleared.d.ts +0 -7
- package/dist/neutral/EventModels/Cleared.d.ts.map +0 -1
- package/dist/neutral/EventModels/Deleted.d.ts +0 -10
- package/dist/neutral/EventModels/Deleted.d.ts.map +0 -1
- package/dist/neutral/EventModels/Inserted.d.ts +0 -10
- package/dist/neutral/EventModels/Inserted.d.ts.map +0 -1
- package/dist/neutral/EventModels/index.d.ts +0 -4
- package/dist/neutral/EventModels/index.d.ts.map +0 -1
- package/dist/neutral/IndexDescription.d.ts +0 -34
- package/dist/neutral/IndexDescription.d.ts.map +0 -1
- package/dist/neutral/Instance.d.ts +0 -10
- package/dist/neutral/Instance.d.ts.map +0 -1
- package/dist/neutral/Labels.d.ts +0 -5
- package/dist/neutral/Labels.d.ts.map +0 -1
- package/dist/neutral/Module.d.ts +0 -6
- package/dist/neutral/Module.d.ts.map +0 -1
- package/dist/neutral/NextOptions.d.ts +0 -10
- package/dist/neutral/NextOptions.d.ts.map +0 -1
- package/dist/neutral/Params.d.ts +0 -5
- package/dist/neutral/Params.d.ts.map +0 -1
- package/dist/neutral/Queries/All.d.ts +0 -7
- package/dist/neutral/Queries/All.d.ts.map +0 -1
- package/dist/neutral/Queries/Clear.d.ts +0 -7
- package/dist/neutral/Queries/Clear.d.ts.map +0 -1
- package/dist/neutral/Queries/Commit.d.ts +0 -7
- package/dist/neutral/Queries/Commit.d.ts.map +0 -1
- package/dist/neutral/Queries/Delete.d.ts +0 -9
- package/dist/neutral/Queries/Delete.d.ts.map +0 -1
- package/dist/neutral/Queries/Get.d.ts +0 -9
- package/dist/neutral/Queries/Get.d.ts.map +0 -1
- package/dist/neutral/Queries/Insert.d.ts +0 -7
- package/dist/neutral/Queries/Insert.d.ts.map +0 -1
- package/dist/neutral/Queries/Next.d.ts +0 -6
- package/dist/neutral/Queries/Next.d.ts.map +0 -1
- package/dist/neutral/Queries/index.d.ts +0 -18
- package/dist/neutral/Queries/index.d.ts.map +0 -1
- package/dist/neutral/QueryFunctions.d.ts +0 -23
- package/dist/neutral/QueryFunctions.d.ts.map +0 -1
- package/dist/neutral/RawQueryFunctions.d.ts +0 -16
- package/dist/neutral/RawQueryFunctions.d.ts.map +0 -1
- package/dist/neutral/attachable/AttachableInstance.d.ts +0 -14
- package/dist/neutral/attachable/AttachableInstance.d.ts.map +0 -1
- package/dist/neutral/attachable/asAttachableInstance.d.ts +0 -191
- package/dist/neutral/attachable/asAttachableInstance.d.ts.map +0 -1
- package/dist/neutral/attachable/index.d.ts +0 -4
- package/dist/neutral/attachable/index.d.ts.map +0 -1
- package/dist/neutral/attachable/isAttachableInstance.d.ts +0 -6
- package/dist/neutral/attachable/isAttachableInstance.d.ts.map +0 -1
- package/dist/neutral/index.d.ts.map +0 -1
- package/dist/neutral/typeChecks.d.ts +0 -625
- package/dist/neutral/typeChecks.d.ts.map +0 -1
- package/src/QueryFunctions.ts +0 -39
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,14 +1,995 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import * as _xylabs_promise from '@xylabs/promise';
|
|
2
|
+
import { PromisableArray, Promisable } from '@xylabs/promise';
|
|
3
|
+
import { Hex, Hash } from '@xylabs/hex';
|
|
4
|
+
import * as _xylabs_object from '@xylabs/object';
|
|
5
|
+
import { EmptyObject, WithAdditional, TypeCheck, IsObjectFactory } from '@xylabs/object';
|
|
6
|
+
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
7
|
+
import { Module, ModuleEventArgs, ModuleEventData, ModuleQueryFunctions, ModuleConfig, ModuleIdentifier, ModuleParams, AnyConfigSchema, ModuleQueryResult, ModuleInstance, AttachableModuleInstance, Labels, ModuleQueries } from '@xyo-network/module-model';
|
|
8
|
+
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
9
|
+
import { Payload, WithStorageMeta, Query } from '@xyo-network/payload-model';
|
|
10
|
+
import { EventData } from '@xyo-network/module-events';
|
|
11
|
+
import * as _xyo_network_account_model from '@xyo-network/account-model';
|
|
12
|
+
import { AccountInstance } from '@xyo-network/account-model';
|
|
13
|
+
import * as _xylabs_logger from '@xylabs/logger';
|
|
14
|
+
import { ObjectTypeShape } from '@xylabs/typeof';
|
|
15
|
+
|
|
16
|
+
interface NextOptions<TId = Hex> {
|
|
17
|
+
cursor?: TId;
|
|
18
|
+
limit?: number;
|
|
19
|
+
open?: boolean;
|
|
20
|
+
order?: 'asc' | 'desc';
|
|
21
|
+
}
|
|
22
|
+
interface ArchivistNextOptions extends NextOptions<Hash> {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface AllArchivistFunctions<TReadResponse> {
|
|
26
|
+
all(): PromisableArray<TReadResponse>;
|
|
27
|
+
}
|
|
28
|
+
interface ReadArchivistFunctions<TReadResponse, TId = string> {
|
|
29
|
+
get(ids: TId[]): PromisableArray<TReadResponse>;
|
|
30
|
+
next(options?: NextOptions<TId>): PromisableArray<TReadResponse>;
|
|
31
|
+
}
|
|
32
|
+
interface WriteArchivistFunctions<TReadResponse, TWriteResponse = TReadResponse, TWrite = TReadResponse, TId = string> {
|
|
33
|
+
clear(): Promisable<void>;
|
|
34
|
+
delete(ids: TId[]): PromisableArray<TId>;
|
|
35
|
+
insert(item: TWrite[]): PromisableArray<TWriteResponse>;
|
|
36
|
+
}
|
|
37
|
+
interface StashArchivistFunctions<TWriteResponse> {
|
|
38
|
+
commit(): PromisableArray<TWriteResponse>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type ClearedEventArgs<T extends Module = Module> = ModuleEventArgs<T>;
|
|
42
|
+
interface ClearedEventData<T extends Module = Module> extends EventData {
|
|
43
|
+
cleared: ClearedEventArgs<T>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type DeletedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
47
|
+
hashes: Hash[];
|
|
48
|
+
}>;
|
|
49
|
+
interface DeletedEventData<T extends Module = Module> extends EventData {
|
|
50
|
+
deleted: DeletedEventArgs<T>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
type InsertedEventArgs<T extends Module = Module> = ModuleEventArgs<T, {
|
|
54
|
+
payloads: Payload[];
|
|
55
|
+
}>;
|
|
56
|
+
interface InsertedEventData<T extends Module = Module> extends EventData {
|
|
57
|
+
inserted: InsertedEventArgs<T>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface ArchivistModuleEventData extends InsertedEventData, DeletedEventData, ClearedEventData, ModuleEventData {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface AllArchivist<TReadResponse extends Payload = Payload> extends AllArchivistFunctions<WithStorageMeta<TReadResponse>> {
|
|
64
|
+
}
|
|
65
|
+
interface ReadArchivist<TReadResponse extends Payload = Payload, TId = Hash> extends ReadArchivistFunctions<WithStorageMeta<TReadResponse>, TId> {
|
|
66
|
+
}
|
|
67
|
+
interface WriteArchivist<TReadResponse extends Payload = Payload, TWriteResponse = TReadResponse, TWrite = TReadResponse, TId = Hash> extends WriteArchivistFunctions<WithStorageMeta<TReadResponse>, TWriteResponse, TWrite, TId> {
|
|
68
|
+
}
|
|
69
|
+
interface StashArchivist<TWriteResponse extends Payload = Payload> extends StashArchivistFunctions<WithStorageMeta<TWriteResponse>> {
|
|
70
|
+
}
|
|
71
|
+
interface Archivist<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = Payload, TWrite extends Payload = TReadResponse & Payload, TId = Hash> extends ReadArchivist<WithStorageMeta<TReadResponse>, TId>, AllArchivist<WithStorageMeta<TReadResponse>>, WriteArchivist<WithStorageMeta<TReadResponse>, WithStorageMeta<TWriteResponse>, TWrite, TId>, StashArchivistFunctions<TWriteResponse> {
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
interface ArchivistModule<TReadResponse extends Payload = Payload, TWriteResponse extends Payload = Payload, TWrite extends Payload = TReadResponse & Payload, TId = Hash> extends Archivist<TReadResponse, TWriteResponse, TWrite, TId>, ModuleQueryFunctions {
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
type IndexDirection = -1 | 1;
|
|
78
|
+
type IndexDescription = {
|
|
79
|
+
key: Record<string, IndexDirection>;
|
|
80
|
+
multiEntry?: boolean;
|
|
81
|
+
name?: string;
|
|
82
|
+
unique?: boolean;
|
|
83
|
+
};
|
|
84
|
+
declare const IndexSeparator = "-";
|
|
85
|
+
declare const buildStandardIndexName: (index: IndexDescription) => string;
|
|
86
|
+
|
|
87
|
+
interface ArchivistParents {
|
|
88
|
+
commit?: ModuleIdentifier[];
|
|
89
|
+
read?: ModuleIdentifier[];
|
|
90
|
+
write?: ModuleIdentifier[];
|
|
91
|
+
}
|
|
92
|
+
interface ArchivistStorage {
|
|
93
|
+
indexes?: IndexDescription[];
|
|
94
|
+
}
|
|
95
|
+
declare const ArchivistConfigSchema: "network.xyo.archivist.config";
|
|
96
|
+
type ArchivistConfigSchema = typeof ArchivistConfigSchema;
|
|
97
|
+
type ArchivistConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = ModuleConfig<WithAdditional<{
|
|
98
|
+
parents?: ArchivistParents;
|
|
99
|
+
requireAllParents?: boolean;
|
|
100
|
+
schema: TConfig extends Payload ? TConfig['schema'] : ArchivistConfigSchema;
|
|
101
|
+
storage?: ArchivistStorage;
|
|
102
|
+
storeParentReads?: boolean;
|
|
103
|
+
}, TConfig>, TSchema>;
|
|
104
|
+
|
|
105
|
+
interface ArchivistModuleInstance<TParams extends ModuleParams<AnyConfigSchema<ArchivistConfig>> = ModuleParams<AnyConfigSchema<ArchivistConfig>>, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData> extends Module<TParams, TEventData> {
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
type ArchivistParams<TConfig extends AnyConfigSchema<ArchivistConfig> = AnyConfigSchema<ArchivistConfig>, TAdditionalParams extends EmptyObject | undefined = undefined> = ModuleParams<TConfig, TAdditionalParams>;
|
|
109
|
+
|
|
110
|
+
interface ArchivistRawQueryFunctions {
|
|
111
|
+
allQuery(account?: AccountInstance): Promisable<ModuleQueryResult>;
|
|
112
|
+
clearQuery(account?: AccountInstance): Promisable<ModuleQueryResult>;
|
|
113
|
+
commitQuery(account?: AccountInstance): Promisable<ModuleQueryResult>;
|
|
114
|
+
deleteQuery(hashes: Hash[], account?: AccountInstance): Promisable<ModuleQueryResult>;
|
|
115
|
+
getQuery(hashes: Hash[], account?: AccountInstance): Promisable<ModuleQueryResult>;
|
|
116
|
+
insertQuery(payloads: Payload[], account?: AccountInstance): Promisable<ModuleQueryResult>;
|
|
117
|
+
nextQuery(options?: ArchivistNextOptions, account?: AccountInstance): Promisable<ModuleQueryResult>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
interface ArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModuleInstance<TParams, TEventData>, ArchivistModule<TPayload, TPayload>, ModuleInstance<TParams, TEventData>, ArchivistRawQueryFunctions {
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
interface AttachableArchivistInstance<TParams extends ArchivistParams = ArchivistParams, TEventData extends ArchivistModuleEventData = ArchivistModuleEventData, TPayload extends Payload = Payload> extends ArchivistModuleInstance<TParams, TEventData>, AttachableModuleInstance<TParams, TEventData>, ArchivistInstance<TParams, TEventData, TPayload> {
|
|
124
|
+
}
|
|
125
|
+
type AttachableArchivistInstanceTypeCheck<T extends AttachableArchivistInstance = AttachableArchivistInstance> = TypeCheck<T>;
|
|
126
|
+
declare class IsAttachableArchivistInstanceFactory<T extends AttachableArchivistInstance = AttachableArchivistInstance> extends IsObjectFactory<T> {
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
declare const asAttachableArchivistInstance: {
|
|
130
|
+
<TType extends AttachableArchivistInstance<_xylabs_object.BaseParamsFields & {
|
|
131
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
132
|
+
addToResolvers?: boolean;
|
|
133
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
134
|
+
allowNameResolution?: boolean;
|
|
135
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
136
|
+
schema: _xyo_network_payload_model.Schema;
|
|
137
|
+
parents?: {
|
|
138
|
+
commit?: string[] | undefined;
|
|
139
|
+
read?: string[] | undefined;
|
|
140
|
+
write?: string[] | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
requireAllParents?: boolean | undefined;
|
|
143
|
+
storage?: {
|
|
144
|
+
indexes?: {
|
|
145
|
+
key: {
|
|
146
|
+
[x: string]: IndexDirection;
|
|
147
|
+
};
|
|
148
|
+
multiEntry?: boolean | undefined;
|
|
149
|
+
name?: string | undefined;
|
|
150
|
+
unique?: boolean | undefined;
|
|
151
|
+
}[] | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
storeParentReads?: boolean | undefined;
|
|
154
|
+
readonly archiving?: {
|
|
155
|
+
readonly archivists?: string[] | undefined;
|
|
156
|
+
readonly queries?: string[] | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
readonly allowedQueries?: string[] | undefined;
|
|
159
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
160
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
161
|
+
readonly labels?: {
|
|
162
|
+
[x: string]: string | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
165
|
+
readonly paging?: {
|
|
166
|
+
[x: string]: {
|
|
167
|
+
size?: number | undefined;
|
|
168
|
+
};
|
|
169
|
+
} | undefined;
|
|
170
|
+
readonly retry?: {
|
|
171
|
+
backoff?: number | undefined;
|
|
172
|
+
interval?: number | undefined;
|
|
173
|
+
retries?: number | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
readonly security?: {
|
|
176
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
177
|
+
readonly allowed?: {
|
|
178
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
179
|
+
} | undefined;
|
|
180
|
+
readonly disallowed?: {
|
|
181
|
+
[x: string]: Lowercase<string>[];
|
|
182
|
+
} | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
readonly sign?: boolean | undefined;
|
|
185
|
+
readonly storeQueries?: boolean | undefined;
|
|
186
|
+
readonly timestamp?: boolean | undefined;
|
|
187
|
+
}>;
|
|
188
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
189
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
190
|
+
}, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
|
|
191
|
+
schema: _xyo_network_payload_model.Schema;
|
|
192
|
+
}>>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
193
|
+
<TType extends AttachableArchivistInstance<_xylabs_object.BaseParamsFields & {
|
|
194
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
195
|
+
addToResolvers?: boolean;
|
|
196
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
197
|
+
allowNameResolution?: boolean;
|
|
198
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
199
|
+
schema: _xyo_network_payload_model.Schema;
|
|
200
|
+
parents?: {
|
|
201
|
+
commit?: string[] | undefined;
|
|
202
|
+
read?: string[] | undefined;
|
|
203
|
+
write?: string[] | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
requireAllParents?: boolean | undefined;
|
|
206
|
+
storage?: {
|
|
207
|
+
indexes?: {
|
|
208
|
+
key: {
|
|
209
|
+
[x: string]: IndexDirection;
|
|
210
|
+
};
|
|
211
|
+
multiEntry?: boolean | undefined;
|
|
212
|
+
name?: string | undefined;
|
|
213
|
+
unique?: boolean | undefined;
|
|
214
|
+
}[] | undefined;
|
|
215
|
+
} | undefined;
|
|
216
|
+
storeParentReads?: boolean | undefined;
|
|
217
|
+
readonly archiving?: {
|
|
218
|
+
readonly archivists?: string[] | undefined;
|
|
219
|
+
readonly queries?: string[] | undefined;
|
|
220
|
+
} | undefined;
|
|
221
|
+
readonly allowedQueries?: string[] | undefined;
|
|
222
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
223
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
224
|
+
readonly labels?: {
|
|
225
|
+
[x: string]: string | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
228
|
+
readonly paging?: {
|
|
229
|
+
[x: string]: {
|
|
230
|
+
size?: number | undefined;
|
|
231
|
+
};
|
|
232
|
+
} | undefined;
|
|
233
|
+
readonly retry?: {
|
|
234
|
+
backoff?: number | undefined;
|
|
235
|
+
interval?: number | undefined;
|
|
236
|
+
retries?: number | undefined;
|
|
237
|
+
} | undefined;
|
|
238
|
+
readonly security?: {
|
|
239
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
240
|
+
readonly allowed?: {
|
|
241
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
242
|
+
} | undefined;
|
|
243
|
+
readonly disallowed?: {
|
|
244
|
+
[x: string]: Lowercase<string>[];
|
|
245
|
+
} | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
readonly sign?: boolean | undefined;
|
|
248
|
+
readonly storeQueries?: boolean | undefined;
|
|
249
|
+
readonly timestamp?: boolean | undefined;
|
|
250
|
+
}>;
|
|
251
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
252
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
253
|
+
}, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
|
|
254
|
+
schema: _xyo_network_payload_model.Schema;
|
|
255
|
+
}>>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<AttachableArchivistInstance<_xylabs_object.BaseParamsFields & {
|
|
256
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
257
|
+
addToResolvers?: boolean;
|
|
258
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
259
|
+
allowNameResolution?: boolean;
|
|
260
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
261
|
+
schema: _xyo_network_payload_model.Schema;
|
|
262
|
+
parents?: {
|
|
263
|
+
commit?: string[] | undefined;
|
|
264
|
+
read?: string[] | undefined;
|
|
265
|
+
write?: string[] | undefined;
|
|
266
|
+
} | undefined;
|
|
267
|
+
requireAllParents?: boolean | undefined;
|
|
268
|
+
storage?: {
|
|
269
|
+
indexes?: {
|
|
270
|
+
key: {
|
|
271
|
+
[x: string]: IndexDirection;
|
|
272
|
+
};
|
|
273
|
+
multiEntry?: boolean | undefined;
|
|
274
|
+
name?: string | undefined;
|
|
275
|
+
unique?: boolean | undefined;
|
|
276
|
+
}[] | undefined;
|
|
277
|
+
} | undefined;
|
|
278
|
+
storeParentReads?: boolean | undefined;
|
|
279
|
+
readonly archiving?: {
|
|
280
|
+
readonly archivists?: string[] | undefined;
|
|
281
|
+
readonly queries?: string[] | undefined;
|
|
282
|
+
} | undefined;
|
|
283
|
+
readonly allowedQueries?: string[] | undefined;
|
|
284
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
285
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
286
|
+
readonly labels?: {
|
|
287
|
+
[x: string]: string | undefined;
|
|
288
|
+
} | undefined;
|
|
289
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
290
|
+
readonly paging?: {
|
|
291
|
+
[x: string]: {
|
|
292
|
+
size?: number | undefined;
|
|
293
|
+
};
|
|
294
|
+
} | undefined;
|
|
295
|
+
readonly retry?: {
|
|
296
|
+
backoff?: number | undefined;
|
|
297
|
+
interval?: number | undefined;
|
|
298
|
+
retries?: number | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
readonly security?: {
|
|
301
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
302
|
+
readonly allowed?: {
|
|
303
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
304
|
+
} | undefined;
|
|
305
|
+
readonly disallowed?: {
|
|
306
|
+
[x: string]: Lowercase<string>[];
|
|
307
|
+
} | undefined;
|
|
308
|
+
} | undefined;
|
|
309
|
+
readonly sign?: boolean | undefined;
|
|
310
|
+
readonly storeQueries?: boolean | undefined;
|
|
311
|
+
readonly timestamp?: boolean | undefined;
|
|
312
|
+
}>;
|
|
313
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
314
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
315
|
+
}, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
|
|
316
|
+
schema: _xyo_network_payload_model.Schema;
|
|
317
|
+
}>>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
declare const requiredAttachableArchivistInstanceFunctions: ObjectTypeShape;
|
|
321
|
+
declare const isAttachableArchivistInstance: TypeCheck<AttachableArchivistInstance>;
|
|
322
|
+
|
|
323
|
+
interface ArchivistLabels extends Labels {
|
|
324
|
+
'network.xyo.archivist.persistence.scope': 'memory' | 'thread' | 'process' | 'device' | 'network';
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare const ArchivistAllQuerySchema: "network.xyo.query.archivist.all";
|
|
328
|
+
type ArchivistAllQuerySchema = typeof ArchivistAllQuerySchema;
|
|
329
|
+
type ArchivistAllQuery = Query<{
|
|
330
|
+
schema: ArchivistAllQuerySchema;
|
|
331
|
+
}>;
|
|
332
|
+
|
|
333
|
+
declare const ArchivistClearQuerySchema: "network.xyo.query.archivist.clear";
|
|
334
|
+
type ArchivistClearQuerySchema = typeof ArchivistClearQuerySchema;
|
|
335
|
+
type ArchivistClearQuery = Query<{
|
|
336
|
+
schema: ArchivistClearQuerySchema;
|
|
337
|
+
}>;
|
|
338
|
+
|
|
339
|
+
declare const ArchivistCommitQuerySchema: "network.xyo.query.archivist.commit";
|
|
340
|
+
type ArchivistCommitQuerySchema = typeof ArchivistCommitQuerySchema;
|
|
341
|
+
type ArchivistCommitQuery = Query<{
|
|
342
|
+
schema: ArchivistCommitQuerySchema;
|
|
343
|
+
}>;
|
|
344
|
+
|
|
345
|
+
declare const ArchivistDeleteQuerySchema: "network.xyo.query.archivist.delete";
|
|
346
|
+
type ArchivistDeleteQuerySchema = typeof ArchivistDeleteQuerySchema;
|
|
347
|
+
type ArchivistDeleteQuery = Query<{
|
|
348
|
+
hashes: Hash[];
|
|
349
|
+
schema: ArchivistDeleteQuerySchema;
|
|
350
|
+
}>;
|
|
351
|
+
|
|
352
|
+
declare const ArchivistGetQuerySchema: "network.xyo.query.archivist.get";
|
|
353
|
+
type ArchivistGetQuerySchema = typeof ArchivistGetQuerySchema;
|
|
354
|
+
type ArchivistGetQuery = Query<{
|
|
355
|
+
hashes: Hash[];
|
|
356
|
+
schema: ArchivistGetQuerySchema;
|
|
357
|
+
}>;
|
|
358
|
+
|
|
359
|
+
declare const ArchivistInsertQuerySchema: "network.xyo.query.archivist.insert";
|
|
360
|
+
type ArchivistInsertQuerySchema = typeof ArchivistInsertQuerySchema;
|
|
361
|
+
type ArchivistInsertQuery = Query<{
|
|
362
|
+
schema: ArchivistInsertQuerySchema;
|
|
363
|
+
}>;
|
|
364
|
+
|
|
365
|
+
declare const ArchivistNextQuerySchema: "network.xyo.query.archivist.next";
|
|
366
|
+
type ArchivistNextQuerySchema = typeof ArchivistNextQuerySchema;
|
|
367
|
+
type ArchivistNextQuery = Query<ArchivistNextOptions, ArchivistNextQuerySchema>;
|
|
368
|
+
|
|
369
|
+
type ArchivistQueries = ArchivistAllQuery | ArchivistClearQuery | ArchivistCommitQuery | ArchivistDeleteQuery | ArchivistGetQuery | ArchivistInsertQuery | ArchivistNextQuery;
|
|
370
|
+
type ArchivistModuleQueries = ModuleQueries | ArchivistQueries;
|
|
371
|
+
|
|
372
|
+
declare const isArchivistInstance: _xylabs_object.TypeCheck<ArchivistInstance<_xylabs_object.BaseParamsFields & {
|
|
373
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
374
|
+
addToResolvers?: boolean;
|
|
375
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
376
|
+
allowNameResolution?: boolean;
|
|
377
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
378
|
+
schema: _xyo_network_payload_model.Schema;
|
|
379
|
+
parents?: {
|
|
380
|
+
commit?: string[] | undefined;
|
|
381
|
+
read?: string[] | undefined;
|
|
382
|
+
write?: string[] | undefined;
|
|
383
|
+
} | undefined;
|
|
384
|
+
requireAllParents?: boolean | undefined;
|
|
385
|
+
storage?: {
|
|
386
|
+
indexes?: {
|
|
387
|
+
key: {
|
|
388
|
+
[x: string]: IndexDirection;
|
|
389
|
+
};
|
|
390
|
+
multiEntry?: boolean | undefined;
|
|
391
|
+
name?: string | undefined;
|
|
392
|
+
unique?: boolean | undefined;
|
|
393
|
+
}[] | undefined;
|
|
394
|
+
} | undefined;
|
|
395
|
+
storeParentReads?: boolean | undefined;
|
|
396
|
+
readonly archiving?: {
|
|
397
|
+
readonly archivists?: string[] | undefined;
|
|
398
|
+
readonly queries?: string[] | undefined;
|
|
399
|
+
} | undefined;
|
|
400
|
+
readonly allowedQueries?: string[] | undefined;
|
|
401
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
402
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
403
|
+
readonly labels?: {
|
|
404
|
+
[x: string]: string | undefined;
|
|
405
|
+
} | undefined;
|
|
406
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
407
|
+
readonly paging?: {
|
|
408
|
+
[x: string]: {
|
|
409
|
+
size?: number | undefined;
|
|
410
|
+
};
|
|
411
|
+
} | undefined;
|
|
412
|
+
readonly retry?: {
|
|
413
|
+
backoff?: number | undefined;
|
|
414
|
+
interval?: number | undefined;
|
|
415
|
+
retries?: number | undefined;
|
|
416
|
+
} | undefined;
|
|
417
|
+
readonly security?: {
|
|
418
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
419
|
+
readonly allowed?: {
|
|
420
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
421
|
+
} | undefined;
|
|
422
|
+
readonly disallowed?: {
|
|
423
|
+
[x: string]: Lowercase<string>[];
|
|
424
|
+
} | undefined;
|
|
425
|
+
} | undefined;
|
|
426
|
+
readonly sign?: boolean | undefined;
|
|
427
|
+
readonly storeQueries?: boolean | undefined;
|
|
428
|
+
readonly timestamp?: boolean | undefined;
|
|
429
|
+
}>;
|
|
430
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
431
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
432
|
+
}, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
|
|
433
|
+
schema: _xyo_network_payload_model.Schema;
|
|
434
|
+
}>>>;
|
|
435
|
+
declare const isArchivistModule: _xyo_network_module_model.ModuleTypeCheck<ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
|
|
436
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
437
|
+
addToResolvers?: boolean;
|
|
438
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
439
|
+
allowNameResolution?: boolean;
|
|
440
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
441
|
+
schema: _xyo_network_payload_model.Schema;
|
|
442
|
+
parents?: {
|
|
443
|
+
commit?: string[] | undefined;
|
|
444
|
+
read?: string[] | undefined;
|
|
445
|
+
write?: string[] | undefined;
|
|
446
|
+
} | undefined;
|
|
447
|
+
requireAllParents?: boolean | undefined;
|
|
448
|
+
storage?: {
|
|
449
|
+
indexes?: {
|
|
450
|
+
key: {
|
|
451
|
+
[x: string]: IndexDirection;
|
|
452
|
+
};
|
|
453
|
+
multiEntry?: boolean | undefined;
|
|
454
|
+
name?: string | undefined;
|
|
455
|
+
unique?: boolean | undefined;
|
|
456
|
+
}[] | undefined;
|
|
457
|
+
} | undefined;
|
|
458
|
+
storeParentReads?: boolean | undefined;
|
|
459
|
+
readonly archiving?: {
|
|
460
|
+
readonly archivists?: string[] | undefined;
|
|
461
|
+
readonly queries?: string[] | undefined;
|
|
462
|
+
} | undefined;
|
|
463
|
+
readonly allowedQueries?: string[] | undefined;
|
|
464
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
465
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
466
|
+
readonly labels?: {
|
|
467
|
+
[x: string]: string | undefined;
|
|
468
|
+
} | undefined;
|
|
469
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
470
|
+
readonly paging?: {
|
|
471
|
+
[x: string]: {
|
|
472
|
+
size?: number | undefined;
|
|
473
|
+
};
|
|
474
|
+
} | undefined;
|
|
475
|
+
readonly retry?: {
|
|
476
|
+
backoff?: number | undefined;
|
|
477
|
+
interval?: number | undefined;
|
|
478
|
+
retries?: number | undefined;
|
|
479
|
+
} | undefined;
|
|
480
|
+
readonly security?: {
|
|
481
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
482
|
+
readonly allowed?: {
|
|
483
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
484
|
+
} | undefined;
|
|
485
|
+
readonly disallowed?: {
|
|
486
|
+
[x: string]: Lowercase<string>[];
|
|
487
|
+
} | undefined;
|
|
488
|
+
} | undefined;
|
|
489
|
+
readonly sign?: boolean | undefined;
|
|
490
|
+
readonly storeQueries?: boolean | undefined;
|
|
491
|
+
readonly timestamp?: boolean | undefined;
|
|
492
|
+
}>;
|
|
493
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
494
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
495
|
+
}, ArchivistModuleEventData>>;
|
|
496
|
+
declare const asArchivistModule: {
|
|
497
|
+
<TType extends ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
|
|
498
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
499
|
+
addToResolvers?: boolean;
|
|
500
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
501
|
+
allowNameResolution?: boolean;
|
|
502
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
503
|
+
schema: _xyo_network_payload_model.Schema;
|
|
504
|
+
parents?: {
|
|
505
|
+
commit?: string[] | undefined;
|
|
506
|
+
read?: string[] | undefined;
|
|
507
|
+
write?: string[] | undefined;
|
|
508
|
+
} | undefined;
|
|
509
|
+
requireAllParents?: boolean | undefined;
|
|
510
|
+
storage?: {
|
|
511
|
+
indexes?: {
|
|
512
|
+
key: {
|
|
513
|
+
[x: string]: IndexDirection;
|
|
514
|
+
};
|
|
515
|
+
multiEntry?: boolean | undefined;
|
|
516
|
+
name?: string | undefined;
|
|
517
|
+
unique?: boolean | undefined;
|
|
518
|
+
}[] | undefined;
|
|
519
|
+
} | undefined;
|
|
520
|
+
storeParentReads?: boolean | undefined;
|
|
521
|
+
readonly archiving?: {
|
|
522
|
+
readonly archivists?: string[] | undefined;
|
|
523
|
+
readonly queries?: string[] | undefined;
|
|
524
|
+
} | undefined;
|
|
525
|
+
readonly allowedQueries?: string[] | undefined;
|
|
526
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
527
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
528
|
+
readonly labels?: {
|
|
529
|
+
[x: string]: string | undefined;
|
|
530
|
+
} | undefined;
|
|
531
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
532
|
+
readonly paging?: {
|
|
533
|
+
[x: string]: {
|
|
534
|
+
size?: number | undefined;
|
|
535
|
+
};
|
|
536
|
+
} | undefined;
|
|
537
|
+
readonly retry?: {
|
|
538
|
+
backoff?: number | undefined;
|
|
539
|
+
interval?: number | undefined;
|
|
540
|
+
retries?: number | undefined;
|
|
541
|
+
} | undefined;
|
|
542
|
+
readonly security?: {
|
|
543
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
544
|
+
readonly allowed?: {
|
|
545
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
546
|
+
} | undefined;
|
|
547
|
+
readonly disallowed?: {
|
|
548
|
+
[x: string]: Lowercase<string>[];
|
|
549
|
+
} | undefined;
|
|
550
|
+
} | undefined;
|
|
551
|
+
readonly sign?: boolean | undefined;
|
|
552
|
+
readonly storeQueries?: boolean | undefined;
|
|
553
|
+
readonly timestamp?: boolean | undefined;
|
|
554
|
+
}>;
|
|
555
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
556
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
557
|
+
}, ArchivistModuleEventData>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
558
|
+
<TType extends ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
|
|
559
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
560
|
+
addToResolvers?: boolean;
|
|
561
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
562
|
+
allowNameResolution?: boolean;
|
|
563
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
564
|
+
schema: _xyo_network_payload_model.Schema;
|
|
565
|
+
parents?: {
|
|
566
|
+
commit?: string[] | undefined;
|
|
567
|
+
read?: string[] | undefined;
|
|
568
|
+
write?: string[] | undefined;
|
|
569
|
+
} | undefined;
|
|
570
|
+
requireAllParents?: boolean | undefined;
|
|
571
|
+
storage?: {
|
|
572
|
+
indexes?: {
|
|
573
|
+
key: {
|
|
574
|
+
[x: string]: IndexDirection;
|
|
575
|
+
};
|
|
576
|
+
multiEntry?: boolean | undefined;
|
|
577
|
+
name?: string | undefined;
|
|
578
|
+
unique?: boolean | undefined;
|
|
579
|
+
}[] | undefined;
|
|
580
|
+
} | undefined;
|
|
581
|
+
storeParentReads?: boolean | undefined;
|
|
582
|
+
readonly archiving?: {
|
|
583
|
+
readonly archivists?: string[] | undefined;
|
|
584
|
+
readonly queries?: string[] | undefined;
|
|
585
|
+
} | undefined;
|
|
586
|
+
readonly allowedQueries?: string[] | undefined;
|
|
587
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
588
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
589
|
+
readonly labels?: {
|
|
590
|
+
[x: string]: string | undefined;
|
|
591
|
+
} | undefined;
|
|
592
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
593
|
+
readonly paging?: {
|
|
594
|
+
[x: string]: {
|
|
595
|
+
size?: number | undefined;
|
|
596
|
+
};
|
|
597
|
+
} | undefined;
|
|
598
|
+
readonly retry?: {
|
|
599
|
+
backoff?: number | undefined;
|
|
600
|
+
interval?: number | undefined;
|
|
601
|
+
retries?: number | undefined;
|
|
602
|
+
} | undefined;
|
|
603
|
+
readonly security?: {
|
|
604
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
605
|
+
readonly allowed?: {
|
|
606
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
607
|
+
} | undefined;
|
|
608
|
+
readonly disallowed?: {
|
|
609
|
+
[x: string]: Lowercase<string>[];
|
|
610
|
+
} | undefined;
|
|
611
|
+
} | undefined;
|
|
612
|
+
readonly sign?: boolean | undefined;
|
|
613
|
+
readonly storeQueries?: boolean | undefined;
|
|
614
|
+
readonly timestamp?: boolean | undefined;
|
|
615
|
+
}>;
|
|
616
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
617
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
618
|
+
}, ArchivistModuleEventData>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
|
|
619
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
620
|
+
addToResolvers?: boolean;
|
|
621
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
622
|
+
allowNameResolution?: boolean;
|
|
623
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
624
|
+
schema: _xyo_network_payload_model.Schema;
|
|
625
|
+
parents?: {
|
|
626
|
+
commit?: string[] | undefined;
|
|
627
|
+
read?: string[] | undefined;
|
|
628
|
+
write?: string[] | undefined;
|
|
629
|
+
} | undefined;
|
|
630
|
+
requireAllParents?: boolean | undefined;
|
|
631
|
+
storage?: {
|
|
632
|
+
indexes?: {
|
|
633
|
+
key: {
|
|
634
|
+
[x: string]: IndexDirection;
|
|
635
|
+
};
|
|
636
|
+
multiEntry?: boolean | undefined;
|
|
637
|
+
name?: string | undefined;
|
|
638
|
+
unique?: boolean | undefined;
|
|
639
|
+
}[] | undefined;
|
|
640
|
+
} | undefined;
|
|
641
|
+
storeParentReads?: boolean | undefined;
|
|
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
|
+
}>;
|
|
676
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
677
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
678
|
+
}, ArchivistModuleEventData>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
679
|
+
};
|
|
680
|
+
declare const asArchivistInstance: {
|
|
681
|
+
<TType extends ArchivistInstance<_xylabs_object.BaseParamsFields & {
|
|
682
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
683
|
+
addToResolvers?: boolean;
|
|
684
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
685
|
+
allowNameResolution?: boolean;
|
|
686
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
687
|
+
schema: _xyo_network_payload_model.Schema;
|
|
688
|
+
parents?: {
|
|
689
|
+
commit?: string[] | undefined;
|
|
690
|
+
read?: string[] | undefined;
|
|
691
|
+
write?: string[] | undefined;
|
|
692
|
+
} | undefined;
|
|
693
|
+
requireAllParents?: boolean | undefined;
|
|
694
|
+
storage?: {
|
|
695
|
+
indexes?: {
|
|
696
|
+
key: {
|
|
697
|
+
[x: string]: IndexDirection;
|
|
698
|
+
};
|
|
699
|
+
multiEntry?: boolean | undefined;
|
|
700
|
+
name?: string | undefined;
|
|
701
|
+
unique?: boolean | undefined;
|
|
702
|
+
}[] | undefined;
|
|
703
|
+
} | undefined;
|
|
704
|
+
storeParentReads?: boolean | undefined;
|
|
705
|
+
readonly archiving?: {
|
|
706
|
+
readonly archivists?: string[] | undefined;
|
|
707
|
+
readonly queries?: string[] | undefined;
|
|
708
|
+
} | undefined;
|
|
709
|
+
readonly allowedQueries?: string[] | undefined;
|
|
710
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
711
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
712
|
+
readonly labels?: {
|
|
713
|
+
[x: string]: string | undefined;
|
|
714
|
+
} | undefined;
|
|
715
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
716
|
+
readonly paging?: {
|
|
717
|
+
[x: string]: {
|
|
718
|
+
size?: number | undefined;
|
|
719
|
+
};
|
|
720
|
+
} | undefined;
|
|
721
|
+
readonly retry?: {
|
|
722
|
+
backoff?: number | undefined;
|
|
723
|
+
interval?: number | undefined;
|
|
724
|
+
retries?: number | undefined;
|
|
725
|
+
} | undefined;
|
|
726
|
+
readonly security?: {
|
|
727
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
728
|
+
readonly allowed?: {
|
|
729
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
730
|
+
} | undefined;
|
|
731
|
+
readonly disallowed?: {
|
|
732
|
+
[x: string]: Lowercase<string>[];
|
|
733
|
+
} | undefined;
|
|
734
|
+
} | undefined;
|
|
735
|
+
readonly sign?: boolean | undefined;
|
|
736
|
+
readonly storeQueries?: boolean | undefined;
|
|
737
|
+
readonly timestamp?: boolean | undefined;
|
|
738
|
+
}>;
|
|
739
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
740
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
741
|
+
}, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
|
|
742
|
+
schema: _xyo_network_payload_model.Schema;
|
|
743
|
+
}>>>(value: _xylabs_promise.AnyNonPromise, config?: _xylabs_object.TypeCheckConfig): TType | undefined;
|
|
744
|
+
<TType extends ArchivistInstance<_xylabs_object.BaseParamsFields & {
|
|
745
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
746
|
+
addToResolvers?: boolean;
|
|
747
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
748
|
+
allowNameResolution?: boolean;
|
|
749
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
750
|
+
schema: _xyo_network_payload_model.Schema;
|
|
751
|
+
parents?: {
|
|
752
|
+
commit?: string[] | undefined;
|
|
753
|
+
read?: string[] | undefined;
|
|
754
|
+
write?: string[] | undefined;
|
|
755
|
+
} | undefined;
|
|
756
|
+
requireAllParents?: boolean | undefined;
|
|
757
|
+
storage?: {
|
|
758
|
+
indexes?: {
|
|
759
|
+
key: {
|
|
760
|
+
[x: string]: IndexDirection;
|
|
761
|
+
};
|
|
762
|
+
multiEntry?: boolean | undefined;
|
|
763
|
+
name?: string | undefined;
|
|
764
|
+
unique?: boolean | undefined;
|
|
765
|
+
}[] | undefined;
|
|
766
|
+
} | undefined;
|
|
767
|
+
storeParentReads?: boolean | undefined;
|
|
768
|
+
readonly archiving?: {
|
|
769
|
+
readonly archivists?: string[] | undefined;
|
|
770
|
+
readonly queries?: string[] | undefined;
|
|
771
|
+
} | undefined;
|
|
772
|
+
readonly allowedQueries?: string[] | undefined;
|
|
773
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
774
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
775
|
+
readonly labels?: {
|
|
776
|
+
[x: string]: string | undefined;
|
|
777
|
+
} | undefined;
|
|
778
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
779
|
+
readonly paging?: {
|
|
780
|
+
[x: string]: {
|
|
781
|
+
size?: number | undefined;
|
|
782
|
+
};
|
|
783
|
+
} | undefined;
|
|
784
|
+
readonly retry?: {
|
|
785
|
+
backoff?: number | undefined;
|
|
786
|
+
interval?: number | undefined;
|
|
787
|
+
retries?: number | undefined;
|
|
788
|
+
} | undefined;
|
|
789
|
+
readonly security?: {
|
|
790
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
791
|
+
readonly allowed?: {
|
|
792
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
793
|
+
} | undefined;
|
|
794
|
+
readonly disallowed?: {
|
|
795
|
+
[x: string]: Lowercase<string>[];
|
|
796
|
+
} | undefined;
|
|
797
|
+
} | undefined;
|
|
798
|
+
readonly sign?: boolean | undefined;
|
|
799
|
+
readonly storeQueries?: boolean | undefined;
|
|
800
|
+
readonly timestamp?: boolean | undefined;
|
|
801
|
+
}>;
|
|
802
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
803
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
804
|
+
}, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
|
|
805
|
+
schema: _xyo_network_payload_model.Schema;
|
|
806
|
+
}>>>(value: _xylabs_promise.AnyNonPromise, assert: _xylabs_object.StringOrAlertFunction<ArchivistInstance<_xylabs_object.BaseParamsFields & {
|
|
807
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
808
|
+
addToResolvers?: boolean;
|
|
809
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
810
|
+
allowNameResolution?: boolean;
|
|
811
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
812
|
+
schema: _xyo_network_payload_model.Schema;
|
|
813
|
+
parents?: {
|
|
814
|
+
commit?: string[] | undefined;
|
|
815
|
+
read?: string[] | undefined;
|
|
816
|
+
write?: string[] | undefined;
|
|
817
|
+
} | undefined;
|
|
818
|
+
requireAllParents?: boolean | undefined;
|
|
819
|
+
storage?: {
|
|
820
|
+
indexes?: {
|
|
821
|
+
key: {
|
|
822
|
+
[x: string]: IndexDirection;
|
|
823
|
+
};
|
|
824
|
+
multiEntry?: boolean | undefined;
|
|
825
|
+
name?: string | undefined;
|
|
826
|
+
unique?: boolean | undefined;
|
|
827
|
+
}[] | undefined;
|
|
828
|
+
} | undefined;
|
|
829
|
+
storeParentReads?: boolean | undefined;
|
|
830
|
+
readonly archiving?: {
|
|
831
|
+
readonly archivists?: string[] | undefined;
|
|
832
|
+
readonly queries?: string[] | undefined;
|
|
833
|
+
} | undefined;
|
|
834
|
+
readonly allowedQueries?: string[] | undefined;
|
|
835
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
836
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
837
|
+
readonly labels?: {
|
|
838
|
+
[x: string]: string | undefined;
|
|
839
|
+
} | undefined;
|
|
840
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
841
|
+
readonly paging?: {
|
|
842
|
+
[x: string]: {
|
|
843
|
+
size?: number | undefined;
|
|
844
|
+
};
|
|
845
|
+
} | undefined;
|
|
846
|
+
readonly retry?: {
|
|
847
|
+
backoff?: number | undefined;
|
|
848
|
+
interval?: number | undefined;
|
|
849
|
+
retries?: number | undefined;
|
|
850
|
+
} | undefined;
|
|
851
|
+
readonly security?: {
|
|
852
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
853
|
+
readonly allowed?: {
|
|
854
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
855
|
+
} | undefined;
|
|
856
|
+
readonly disallowed?: {
|
|
857
|
+
[x: string]: Lowercase<string>[];
|
|
858
|
+
} | undefined;
|
|
859
|
+
} | undefined;
|
|
860
|
+
readonly sign?: boolean | undefined;
|
|
861
|
+
readonly storeQueries?: boolean | undefined;
|
|
862
|
+
readonly timestamp?: boolean | undefined;
|
|
863
|
+
}>;
|
|
864
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
865
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
866
|
+
}, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
|
|
867
|
+
schema: _xyo_network_payload_model.Schema;
|
|
868
|
+
}>>>, config?: _xylabs_object.TypeCheckConfig): TType;
|
|
869
|
+
};
|
|
870
|
+
declare const withArchivistModule: <R>(mod: any, closure: (mod: ArchivistModuleInstance<_xylabs_object.BaseParamsFields & {
|
|
871
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
872
|
+
addToResolvers?: boolean;
|
|
873
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
874
|
+
allowNameResolution?: boolean;
|
|
875
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
876
|
+
schema: _xyo_network_payload_model.Schema;
|
|
877
|
+
parents?: {
|
|
878
|
+
commit?: string[] | undefined;
|
|
879
|
+
read?: string[] | undefined;
|
|
880
|
+
write?: string[] | undefined;
|
|
881
|
+
} | undefined;
|
|
882
|
+
requireAllParents?: boolean | undefined;
|
|
883
|
+
storage?: {
|
|
884
|
+
indexes?: {
|
|
885
|
+
key: {
|
|
886
|
+
[x: string]: IndexDirection;
|
|
887
|
+
};
|
|
888
|
+
multiEntry?: boolean | undefined;
|
|
889
|
+
name?: string | undefined;
|
|
890
|
+
unique?: boolean | undefined;
|
|
891
|
+
}[] | undefined;
|
|
892
|
+
} | undefined;
|
|
893
|
+
storeParentReads?: boolean | undefined;
|
|
894
|
+
readonly archiving?: {
|
|
895
|
+
readonly archivists?: string[] | undefined;
|
|
896
|
+
readonly queries?: string[] | undefined;
|
|
897
|
+
} | undefined;
|
|
898
|
+
readonly allowedQueries?: string[] | undefined;
|
|
899
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
900
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
901
|
+
readonly labels?: {
|
|
902
|
+
[x: string]: string | undefined;
|
|
903
|
+
} | undefined;
|
|
904
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
905
|
+
readonly paging?: {
|
|
906
|
+
[x: string]: {
|
|
907
|
+
size?: number | undefined;
|
|
908
|
+
};
|
|
909
|
+
} | undefined;
|
|
910
|
+
readonly retry?: {
|
|
911
|
+
backoff?: number | undefined;
|
|
912
|
+
interval?: number | undefined;
|
|
913
|
+
retries?: number | undefined;
|
|
914
|
+
} | undefined;
|
|
915
|
+
readonly security?: {
|
|
916
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
917
|
+
readonly allowed?: {
|
|
918
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
919
|
+
} | undefined;
|
|
920
|
+
readonly disallowed?: {
|
|
921
|
+
[x: string]: Lowercase<string>[];
|
|
922
|
+
} | undefined;
|
|
923
|
+
} | undefined;
|
|
924
|
+
readonly sign?: boolean | undefined;
|
|
925
|
+
readonly storeQueries?: boolean | undefined;
|
|
926
|
+
readonly timestamp?: boolean | undefined;
|
|
927
|
+
}>;
|
|
928
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
929
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
930
|
+
}, ArchivistModuleEventData>) => R) => R | undefined;
|
|
931
|
+
declare const withArchivistInstance: <R>(mod: any, closure: (mod: ArchivistInstance<_xylabs_object.BaseParamsFields & {
|
|
932
|
+
account?: _xyo_network_account_model.AccountInstance | "random";
|
|
933
|
+
addToResolvers?: boolean;
|
|
934
|
+
additionalSigners?: _xyo_network_account_model.AccountInstance[];
|
|
935
|
+
allowNameResolution?: boolean;
|
|
936
|
+
config: _xylabs_object.DeepRestrictToStringKeys<{
|
|
937
|
+
schema: _xyo_network_payload_model.Schema;
|
|
938
|
+
parents?: {
|
|
939
|
+
commit?: string[] | undefined;
|
|
940
|
+
read?: string[] | undefined;
|
|
941
|
+
write?: string[] | undefined;
|
|
942
|
+
} | undefined;
|
|
943
|
+
requireAllParents?: boolean | undefined;
|
|
944
|
+
storage?: {
|
|
945
|
+
indexes?: {
|
|
946
|
+
key: {
|
|
947
|
+
[x: string]: IndexDirection;
|
|
948
|
+
};
|
|
949
|
+
multiEntry?: boolean | undefined;
|
|
950
|
+
name?: string | undefined;
|
|
951
|
+
unique?: boolean | undefined;
|
|
952
|
+
}[] | undefined;
|
|
953
|
+
} | undefined;
|
|
954
|
+
storeParentReads?: boolean | undefined;
|
|
955
|
+
readonly archiving?: {
|
|
956
|
+
readonly archivists?: string[] | undefined;
|
|
957
|
+
readonly queries?: string[] | undefined;
|
|
958
|
+
} | undefined;
|
|
959
|
+
readonly allowedQueries?: string[] | undefined;
|
|
960
|
+
readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
|
|
961
|
+
readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
|
|
962
|
+
readonly labels?: {
|
|
963
|
+
[x: string]: string | undefined;
|
|
964
|
+
} | undefined;
|
|
965
|
+
readonly name?: _xyo_network_module_model.ModuleName | undefined;
|
|
966
|
+
readonly paging?: {
|
|
967
|
+
[x: string]: {
|
|
968
|
+
size?: number | undefined;
|
|
969
|
+
};
|
|
970
|
+
} | undefined;
|
|
971
|
+
readonly retry?: {
|
|
972
|
+
backoff?: number | undefined;
|
|
973
|
+
interval?: number | undefined;
|
|
974
|
+
retries?: number | undefined;
|
|
975
|
+
} | undefined;
|
|
976
|
+
readonly security?: {
|
|
977
|
+
readonly allowAnonymous?: boolean | undefined;
|
|
978
|
+
readonly allowed?: {
|
|
979
|
+
[x: string]: (Lowercase<string> | Lowercase<string>[])[];
|
|
980
|
+
} | undefined;
|
|
981
|
+
readonly disallowed?: {
|
|
982
|
+
[x: string]: Lowercase<string>[];
|
|
983
|
+
} | undefined;
|
|
984
|
+
} | undefined;
|
|
985
|
+
readonly sign?: boolean | undefined;
|
|
986
|
+
readonly storeQueries?: boolean | undefined;
|
|
987
|
+
readonly timestamp?: boolean | undefined;
|
|
988
|
+
}>;
|
|
989
|
+
ephemeralQueryAccountEnabled?: boolean;
|
|
990
|
+
moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
|
|
991
|
+
}, ArchivistModuleEventData, _xylabs_object.DeepRestrictToStringKeys<{
|
|
992
|
+
schema: _xyo_network_payload_model.Schema;
|
|
993
|
+
}>>) => R) => R | undefined;
|
|
994
|
+
|
|
995
|
+
export { type AllArchivist, type AllArchivistFunctions, type Archivist, type ArchivistAllQuery, ArchivistAllQuerySchema, type ArchivistClearQuery, ArchivistClearQuerySchema, type ArchivistCommitQuery, ArchivistCommitQuerySchema, type ArchivistConfig, ArchivistConfigSchema, type ArchivistDeleteQuery, ArchivistDeleteQuerySchema, type ArchivistGetQuery, ArchivistGetQuerySchema, type ArchivistInsertQuery, ArchivistInsertQuerySchema, type ArchivistInstance, type ArchivistLabels, type ArchivistModuleEventData, type ArchivistModuleInstance, type ArchivistModuleQueries, type ArchivistNextOptions, type ArchivistNextQuery, ArchivistNextQuerySchema, type ArchivistParams, type ArchivistParents, type ArchivistQueries, type ArchivistRawQueryFunctions, type ArchivistStorage, type AttachableArchivistInstance, type AttachableArchivistInstanceTypeCheck, type IndexDescription, type IndexDirection, IndexSeparator, IsAttachableArchivistInstanceFactory, type NextOptions, type ReadArchivist, type ReadArchivistFunctions, type StashArchivist, type StashArchivistFunctions, type WriteArchivist, type WriteArchivistFunctions, asArchivistInstance, asArchivistModule, asAttachableArchivistInstance, buildStandardIndexName, isArchivistInstance, isArchivistModule, isAttachableArchivistInstance, requiredAttachableArchivistInstanceFunctions, withArchivistInstance, withArchivistModule };
|