@xyo-network/diviner-indexing-memory 3.9.1 → 3.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/neutral/index.d.ts +12 -299
  2. package/package.json +12 -12
@@ -1,9 +1,8 @@
1
1
  import * as _xyo_network_diviner_model from '@xyo-network/diviner-model';
2
2
  import { DivinerModuleEventData, DivinerInstance } from '@xyo-network/diviner-model';
3
- import * as _xyo_network_archivist_model from '@xyo-network/archivist-model';
4
- import * as _xylabs_logger from '@xylabs/logger';
5
3
  import * as _xyo_network_module_model from '@xyo-network/module-model';
6
4
  import { ModuleState } from '@xyo-network/module-model';
5
+ import * as _xyo_network_archivist_model from '@xyo-network/archivist-model';
7
6
  import * as _xyo_network_account_model from '@xyo-network/account-model';
8
7
  import * as _xylabs_object from '@xylabs/object';
9
8
  import { ArchivistWrapper } from '@xyo-network/archivist-wrapper';
@@ -30,59 +29,7 @@ declare class IndexingDiviner<TParams extends IndexingDivinerParams = IndexingDi
30
29
  addToResolvers?: boolean;
31
30
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
32
31
  allowNameResolution?: boolean;
33
- config: _xylabs_object.DeepRestrictToStringKeys<{
34
- schema: Schema;
35
- readonly archiving?: {
36
- readonly archivists?: string[] | undefined;
37
- readonly queries?: string[] | undefined;
38
- } | undefined;
39
- readonly allowedQueries?: string[] | undefined;
40
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
41
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
42
- readonly labels?: {
43
- [x: string]: string | undefined;
44
- } | undefined;
45
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
46
- readonly paging?: {
47
- [x: string]: {
48
- size?: number | undefined;
49
- };
50
- } | undefined;
51
- readonly retry?: {
52
- backoff?: number | undefined;
53
- interval?: number | undefined;
54
- retries?: number | undefined;
55
- } | undefined;
56
- readonly security?: {
57
- readonly allowAnonymous?: boolean | undefined;
58
- readonly allowed?: {
59
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
60
- } | undefined;
61
- readonly disallowed?: {
62
- [x: string]: Lowercase<string>[];
63
- } | undefined;
64
- } | undefined;
65
- readonly sign?: boolean | undefined;
66
- readonly storeQueries?: boolean | undefined;
67
- readonly timestamp?: boolean | undefined;
68
- parents?: {
69
- commit?: string[] | undefined;
70
- read?: string[] | undefined;
71
- write?: string[] | undefined;
72
- } | undefined;
73
- requireAllParents?: boolean | undefined;
74
- storage?: {
75
- indexes?: {
76
- key: {
77
- [x: string]: _xyo_network_archivist_model.IndexDirection;
78
- };
79
- multiEntry?: boolean | undefined;
80
- name?: string | undefined;
81
- unique?: boolean | undefined;
82
- }[] | undefined;
83
- } | undefined;
84
- storeParentReads?: boolean | undefined;
85
- }>;
32
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_archivist_model.ArchivistConfig<void, void>>;
86
33
  ephemeralQueryAccountEnabled?: boolean;
87
34
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
88
35
  }, _xyo_network_archivist_model.ArchivistModuleEventData>>>;
@@ -91,42 +38,7 @@ declare class IndexingDiviner<TParams extends IndexingDivinerParams = IndexingDi
91
38
  addToResolvers?: boolean;
92
39
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
93
40
  allowNameResolution?: boolean;
94
- config: _xylabs_object.DeepRestrictToStringKeys<{
95
- schema: Schema;
96
- readonly archiving?: {
97
- readonly archivists?: string[] | undefined;
98
- readonly queries?: string[] | undefined;
99
- } | undefined;
100
- readonly allowedQueries?: string[] | undefined;
101
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
102
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
103
- readonly labels?: {
104
- [x: string]: string | undefined;
105
- } | undefined;
106
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
107
- readonly paging?: {
108
- [x: string]: {
109
- size?: number | undefined;
110
- };
111
- } | undefined;
112
- readonly retry?: {
113
- backoff?: number | undefined;
114
- interval?: number | undefined;
115
- retries?: number | undefined;
116
- } | undefined;
117
- readonly security?: {
118
- readonly allowAnonymous?: boolean | undefined;
119
- readonly allowed?: {
120
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
121
- } | undefined;
122
- readonly disallowed?: {
123
- [x: string]: Lowercase<string>[];
124
- } | undefined;
125
- } | undefined;
126
- readonly sign?: boolean | undefined;
127
- readonly storeQueries?: boolean | undefined;
128
- readonly timestamp?: boolean | undefined;
129
- }>;
41
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_diviner_model.DivinerConfig<void, void>>;
130
42
  ephemeralQueryAccountEnabled?: boolean;
131
43
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
132
44
  }, DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xylabs_object.BaseParamsFields & {
@@ -134,189 +46,33 @@ declare class IndexingDiviner<TParams extends IndexingDivinerParams = IndexingDi
134
46
  addToResolvers?: boolean;
135
47
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
136
48
  allowNameResolution?: boolean;
137
- config: _xylabs_object.DeepRestrictToStringKeys<{
138
- schema: Schema;
139
- readonly archiving?: {
140
- readonly archivists?: string[] | undefined;
141
- readonly queries?: string[] | undefined;
142
- } | undefined;
143
- readonly allowedQueries?: string[] | undefined;
144
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
145
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
146
- readonly labels?: {
147
- [x: string]: string | undefined;
148
- } | undefined;
149
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
150
- readonly paging?: {
151
- [x: string]: {
152
- size?: number | undefined;
153
- };
154
- } | undefined;
155
- readonly retry?: {
156
- backoff?: number | undefined;
157
- interval?: number | undefined;
158
- retries?: number | undefined;
159
- } | undefined;
160
- readonly security?: {
161
- readonly allowAnonymous?: boolean | undefined;
162
- readonly allowed?: {
163
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
164
- } | undefined;
165
- readonly disallowed?: {
166
- [x: string]: Lowercase<string>[];
167
- } | undefined;
168
- } | undefined;
169
- readonly sign?: boolean | undefined;
170
- readonly storeQueries?: boolean | undefined;
171
- readonly timestamp?: boolean | undefined;
172
- }>;
49
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
173
50
  ephemeralQueryAccountEnabled?: boolean;
174
51
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
175
- }, _xyo_network_module_model.ModuleEventData<object>>, _xylabs_object.DeepRestrictToStringKeys<{
176
- schema: Schema;
177
- }>, _xylabs_object.DeepRestrictToStringKeys<{
178
- schema: Schema;
179
- }>>>, _xylabs_object.DeepRestrictToStringKeys<{
180
- schema: Schema;
181
- }>, _xylabs_object.DeepRestrictToStringKeys<{
182
- schema: Schema;
183
- }>>>;
52
+ }, _xyo_network_module_model.ModuleEventData<object>>, Payload, Payload>>, Payload, Payload>>;
184
53
  protected getIndexingDivinerStage(transform: IndexingDivinerStage): Promise<DivinerInstance<_xylabs_object.BaseParamsFields & {
185
54
  account?: _xyo_network_account_model.AccountInstance | "random";
186
55
  addToResolvers?: boolean;
187
56
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
188
57
  allowNameResolution?: boolean;
189
- config: _xylabs_object.DeepRestrictToStringKeys<{
190
- schema: Schema;
191
- readonly archiving?: {
192
- readonly archivists?: string[] | undefined;
193
- readonly queries?: string[] | undefined;
194
- } | undefined;
195
- readonly allowedQueries?: string[] | undefined;
196
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
197
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
198
- readonly labels?: {
199
- [x: string]: string | undefined;
200
- } | undefined;
201
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
202
- readonly paging?: {
203
- [x: string]: {
204
- size?: number | undefined;
205
- };
206
- } | undefined;
207
- readonly retry?: {
208
- backoff?: number | undefined;
209
- interval?: number | undefined;
210
- retries?: number | undefined;
211
- } | undefined;
212
- readonly security?: {
213
- readonly allowAnonymous?: boolean | undefined;
214
- readonly allowed?: {
215
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
216
- } | undefined;
217
- readonly disallowed?: {
218
- [x: string]: Lowercase<string>[];
219
- } | undefined;
220
- } | undefined;
221
- readonly sign?: boolean | undefined;
222
- readonly storeQueries?: boolean | undefined;
223
- readonly timestamp?: boolean | undefined;
224
- }>;
58
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_diviner_model.DivinerConfig<void, void>>;
225
59
  ephemeralQueryAccountEnabled?: boolean;
226
60
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
227
- }, _xylabs_object.DeepRestrictToStringKeys<{
228
- schema: Schema;
229
- }>, _xylabs_object.DeepRestrictToStringKeys<{
230
- schema: Schema;
231
- }>, DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xylabs_object.BaseParamsFields & {
61
+ }, Payload, Payload, DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xylabs_object.BaseParamsFields & {
232
62
  account?: _xyo_network_account_model.AccountInstance | "random";
233
63
  addToResolvers?: boolean;
234
64
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
235
65
  allowNameResolution?: boolean;
236
- config: _xylabs_object.DeepRestrictToStringKeys<{
237
- schema: Schema;
238
- readonly archiving?: {
239
- readonly archivists?: string[] | undefined;
240
- readonly queries?: string[] | undefined;
241
- } | undefined;
242
- readonly allowedQueries?: string[] | undefined;
243
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
244
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
245
- readonly labels?: {
246
- [x: string]: string | undefined;
247
- } | undefined;
248
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
249
- readonly paging?: {
250
- [x: string]: {
251
- size?: number | undefined;
252
- };
253
- } | undefined;
254
- readonly retry?: {
255
- backoff?: number | undefined;
256
- interval?: number | undefined;
257
- retries?: number | undefined;
258
- } | undefined;
259
- readonly security?: {
260
- readonly allowAnonymous?: boolean | undefined;
261
- readonly allowed?: {
262
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
263
- } | undefined;
264
- readonly disallowed?: {
265
- [x: string]: Lowercase<string>[];
266
- } | undefined;
267
- } | undefined;
268
- readonly sign?: boolean | undefined;
269
- readonly storeQueries?: boolean | undefined;
270
- readonly timestamp?: boolean | undefined;
271
- }>;
66
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
272
67
  ephemeralQueryAccountEnabled?: boolean;
273
68
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
274
- }, _xyo_network_module_model.ModuleEventData<object>>, _xylabs_object.DeepRestrictToStringKeys<{
275
- schema: Schema;
276
- }>, _xylabs_object.DeepRestrictToStringKeys<{
277
- schema: Schema;
278
- }>>>>;
69
+ }, _xyo_network_module_model.ModuleEventData<object>>, Payload, Payload>>>;
279
70
  protected getPayloadDivinerForStore(store: ConfigStore): Promise<DivinerWrapper<_xyo_network_diviner_model.DivinerModule<_xylabs_object.BaseParamsFields & {
280
71
  account?: _xyo_network_account_model.AccountInstance | "random";
281
72
  addToResolvers?: boolean;
282
73
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
283
74
  allowNameResolution?: boolean;
284
- config: _xylabs_object.DeepRestrictToStringKeys<{
285
- schema: Schema;
286
- readonly archiving?: {
287
- readonly archivists?: string[] | undefined;
288
- readonly queries?: string[] | undefined;
289
- } | undefined;
290
- readonly allowedQueries?: string[] | undefined;
291
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
292
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
293
- readonly labels?: {
294
- [x: string]: string | undefined;
295
- } | undefined;
296
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
297
- readonly paging?: {
298
- [x: string]: {
299
- size?: number | undefined;
300
- };
301
- } | undefined;
302
- readonly retry?: {
303
- backoff?: number | undefined;
304
- interval?: number | undefined;
305
- retries?: number | undefined;
306
- } | undefined;
307
- readonly security?: {
308
- readonly allowAnonymous?: boolean | undefined;
309
- readonly allowed?: {
310
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
311
- } | undefined;
312
- readonly disallowed?: {
313
- [x: string]: Lowercase<string>[];
314
- } | undefined;
315
- } | undefined;
316
- readonly sign?: boolean | undefined;
317
- readonly storeQueries?: boolean | undefined;
318
- readonly timestamp?: boolean | undefined;
319
- }>;
75
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_diviner_model.DivinerConfig<void, void>>;
320
76
  ephemeralQueryAccountEnabled?: boolean;
321
77
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
322
78
  }, DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xylabs_object.BaseParamsFields & {
@@ -324,53 +80,10 @@ declare class IndexingDiviner<TParams extends IndexingDivinerParams = IndexingDi
324
80
  addToResolvers?: boolean;
325
81
  additionalSigners?: _xyo_network_account_model.AccountInstance[];
326
82
  allowNameResolution?: boolean;
327
- config: _xylabs_object.DeepRestrictToStringKeys<{
328
- schema: Schema;
329
- readonly archiving?: {
330
- readonly archivists?: string[] | undefined;
331
- readonly queries?: string[] | undefined;
332
- } | undefined;
333
- readonly allowedQueries?: string[] | undefined;
334
- readonly archivist?: _xyo_network_module_model.ModuleIdentifier | undefined;
335
- readonly consoleLogger?: _xylabs_logger.LogLevel | undefined;
336
- readonly labels?: {
337
- [x: string]: string | undefined;
338
- } | undefined;
339
- readonly name?: _xyo_network_module_model.ModuleName | undefined;
340
- readonly paging?: {
341
- [x: string]: {
342
- size?: number | undefined;
343
- };
344
- } | undefined;
345
- readonly retry?: {
346
- backoff?: number | undefined;
347
- interval?: number | undefined;
348
- retries?: number | undefined;
349
- } | undefined;
350
- readonly security?: {
351
- readonly allowAnonymous?: boolean | undefined;
352
- readonly allowed?: {
353
- [x: string]: (Lowercase<string> | Lowercase<string>[])[];
354
- } | undefined;
355
- readonly disallowed?: {
356
- [x: string]: Lowercase<string>[];
357
- } | undefined;
358
- } | undefined;
359
- readonly sign?: boolean | undefined;
360
- readonly storeQueries?: boolean | undefined;
361
- readonly timestamp?: boolean | undefined;
362
- }>;
83
+ config: _xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<void, void>>;
363
84
  ephemeralQueryAccountEnabled?: boolean;
364
85
  moduleIdentifierTransformers?: _xyo_network_module_model.ModuleIdentifierTransformer[];
365
- }, _xyo_network_module_model.ModuleEventData<object>>, _xylabs_object.DeepRestrictToStringKeys<{
366
- schema: Schema;
367
- }>, _xylabs_object.DeepRestrictToStringKeys<{
368
- schema: Schema;
369
- }>>>, _xylabs_object.DeepRestrictToStringKeys<{
370
- schema: Schema;
371
- }>, _xylabs_object.DeepRestrictToStringKeys<{
372
- schema: Schema;
373
- }>>>;
86
+ }, _xyo_network_module_model.ModuleEventData<object>>, Payload, Payload>>, Payload, Payload>>;
374
87
  protected retrieveState(): Promise<ModuleState<IndexingDivinerState> | undefined>;
375
88
  protected startHandler(): Promise<boolean>;
376
89
  protected stopHandler(_timeout?: number | undefined): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-indexing-memory",
3
- "version": "3.9.1",
3
+ "version": "3.9.3",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -32,17 +32,17 @@
32
32
  "@xylabs/assert": "^4.5.1",
33
33
  "@xylabs/hex": "^4.5.1",
34
34
  "@xylabs/timer": "^4.5.1",
35
- "@xyo-network/archivist-wrapper": "^3.9.1",
36
- "@xyo-network/boundwitness-builder": "^3.9.1",
37
- "@xyo-network/boundwitness-model": "^3.9.1",
38
- "@xyo-network/diviner-abstract": "^3.9.1",
39
- "@xyo-network/diviner-boundwitness-model": "^3.9.1",
40
- "@xyo-network/diviner-indexing-model": "^3.9.1",
41
- "@xyo-network/diviner-model": "^3.9.1",
42
- "@xyo-network/diviner-wrapper": "^3.9.1",
43
- "@xyo-network/module-model": "^3.9.1",
44
- "@xyo-network/payload-builder": "^3.9.1",
45
- "@xyo-network/payload-model": "^3.9.1"
35
+ "@xyo-network/archivist-wrapper": "^3.9.3",
36
+ "@xyo-network/boundwitness-builder": "^3.9.3",
37
+ "@xyo-network/boundwitness-model": "^3.9.3",
38
+ "@xyo-network/diviner-abstract": "^3.9.3",
39
+ "@xyo-network/diviner-boundwitness-model": "^3.9.3",
40
+ "@xyo-network/diviner-indexing-model": "^3.9.3",
41
+ "@xyo-network/diviner-model": "^3.9.3",
42
+ "@xyo-network/diviner-wrapper": "^3.9.3",
43
+ "@xyo-network/module-model": "^3.9.3",
44
+ "@xyo-network/payload-builder": "^3.9.3",
45
+ "@xyo-network/payload-model": "^3.9.3"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@xylabs/ts-scripts-yarn3": "^5.0.24",