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