@xyo-network/diviner-temporal-indexing-memory 4.0.2 → 4.1.0

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 (64) hide show
  1. package/{dist/types → build/browser}/StateToIndexCandidateDiviner/Diviner.d.ts +1 -1
  2. package/build/neutral/Diviner.d.ts +10 -0
  3. package/build/neutral/Diviner.d.ts.map +1 -0
  4. package/build/neutral/DivinerQueryToIndexQueryDiviner/Diviner.d.ts +43 -0
  5. package/build/neutral/DivinerQueryToIndexQueryDiviner/Diviner.d.ts.map +1 -0
  6. package/build/neutral/DivinerQueryToIndexQueryDiviner/index.d.ts +2 -0
  7. package/build/neutral/DivinerQueryToIndexQueryDiviner/index.d.ts.map +1 -0
  8. package/build/neutral/IndexCandidateToIndexDiviner/Diviner.d.ts +45 -0
  9. package/build/neutral/IndexCandidateToIndexDiviner/Diviner.d.ts.map +1 -0
  10. package/build/neutral/IndexCandidateToIndexDiviner/index.d.ts +2 -0
  11. package/build/neutral/IndexCandidateToIndexDiviner/index.d.ts.map +1 -0
  12. package/build/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.d.ts +13 -0
  13. package/build/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.d.ts.map +1 -0
  14. package/build/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts +2 -0
  15. package/build/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map +1 -0
  16. package/build/neutral/StateToIndexCandidateDiviner/Diviner.d.ts +55 -0
  17. package/build/neutral/StateToIndexCandidateDiviner/Diviner.d.ts.map +1 -0
  18. package/build/neutral/StateToIndexCandidateDiviner/index.d.ts +2 -0
  19. package/build/neutral/StateToIndexCandidateDiviner/index.d.ts.map +1 -0
  20. package/build/neutral/index.d.ts +6 -0
  21. package/build/neutral/index.d.ts.map +1 -0
  22. package/build/node/Diviner.d.ts +10 -0
  23. package/build/node/Diviner.d.ts.map +1 -0
  24. package/build/node/DivinerQueryToIndexQueryDiviner/Diviner.d.ts +43 -0
  25. package/build/node/DivinerQueryToIndexQueryDiviner/Diviner.d.ts.map +1 -0
  26. package/build/node/DivinerQueryToIndexQueryDiviner/index.d.ts +2 -0
  27. package/build/node/DivinerQueryToIndexQueryDiviner/index.d.ts.map +1 -0
  28. package/build/node/IndexCandidateToIndexDiviner/Diviner.d.ts +45 -0
  29. package/build/node/IndexCandidateToIndexDiviner/Diviner.d.ts.map +1 -0
  30. package/build/node/IndexCandidateToIndexDiviner/index.d.ts +2 -0
  31. package/build/node/IndexCandidateToIndexDiviner/index.d.ts.map +1 -0
  32. package/build/node/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.d.ts +13 -0
  33. package/build/node/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.d.ts.map +1 -0
  34. package/build/node/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts +2 -0
  35. package/build/node/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map +1 -0
  36. package/build/node/StateToIndexCandidateDiviner/Diviner.d.ts +55 -0
  37. package/build/node/StateToIndexCandidateDiviner/Diviner.d.ts.map +1 -0
  38. package/build/node/StateToIndexCandidateDiviner/index.d.ts +2 -0
  39. package/build/node/StateToIndexCandidateDiviner/index.d.ts.map +1 -0
  40. package/build/node/index.d.ts +6 -0
  41. package/build/node/index.d.ts.map +1 -0
  42. package/dist/browser/index.d.ts +157 -0
  43. package/dist/neutral/index.d.ts +157 -0
  44. package/dist/node/index.d.ts +157 -0
  45. package/package.json +39 -39
  46. /package/{dist/types → build/browser}/Diviner.d.ts +0 -0
  47. /package/{dist/types → build/browser}/Diviner.d.ts.map +0 -0
  48. /package/{dist/types → build/browser}/DivinerQueryToIndexQueryDiviner/Diviner.d.ts +0 -0
  49. /package/{dist/types → build/browser}/DivinerQueryToIndexQueryDiviner/Diviner.d.ts.map +0 -0
  50. /package/{dist/types → build/browser}/DivinerQueryToIndexQueryDiviner/index.d.ts +0 -0
  51. /package/{dist/types → build/browser}/DivinerQueryToIndexQueryDiviner/index.d.ts.map +0 -0
  52. /package/{dist/types → build/browser}/IndexCandidateToIndexDiviner/Diviner.d.ts +0 -0
  53. /package/{dist/types → build/browser}/IndexCandidateToIndexDiviner/Diviner.d.ts.map +0 -0
  54. /package/{dist/types → build/browser}/IndexCandidateToIndexDiviner/index.d.ts +0 -0
  55. /package/{dist/types → build/browser}/IndexCandidateToIndexDiviner/index.d.ts.map +0 -0
  56. /package/{dist/types → build/browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.d.ts +0 -0
  57. /package/{dist/types → build/browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.d.ts.map +0 -0
  58. /package/{dist/types → build/browser}/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts +0 -0
  59. /package/{dist/types → build/browser}/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map +0 -0
  60. /package/{dist/types → build/browser}/StateToIndexCandidateDiviner/Diviner.d.ts.map +0 -0
  61. /package/{dist/types → build/browser}/StateToIndexCandidateDiviner/index.d.ts +0 -0
  62. /package/{dist/types → build/browser}/StateToIndexCandidateDiviner/index.d.ts.map +0 -0
  63. /package/{dist/types → build/browser}/index.d.ts +0 -0
  64. /package/{dist/types → build/browser}/index.d.ts.map +0 -0
@@ -49,7 +49,7 @@ export declare class TemporalIndexingDivinerStateToIndexCandidateDiviner<TParams
49
49
  * Retrieves the BoundWitness Diviner for the payloadStore
50
50
  * @returns The BoundWitness Diviner for the payloadStore or undefined if not resolvable
51
51
  */
52
- protected getBoundWitnessDivinerForStore(): Promise<DivinerWrapper<BoundWitnessDiviner<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/diviner-model").DivinerInstance<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, import("@xyo-network/diviner-model").DivinerModuleEventData>, BoundWitnessDivinerQueryPayload, BoundWitness>>, BoundWitnessDivinerQueryPayload, WithStorageMeta<BoundWitness>> | undefined>;
52
+ protected getBoundWitnessDivinerForStore(): Promise<DivinerWrapper<BoundWitnessDiviner<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/diviner-model").DivinerInstance<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig<object, void>>>, import("@xyo-network/module-model").ModuleEventData<object>>, Payload, Payload>>, BoundWitnessDivinerQueryPayload, BoundWitness>>, BoundWitnessDivinerQueryPayload, WithStorageMeta<BoundWitness>> | undefined>;
53
53
  protected getPayloadsInBoundWitness(bw: BoundWitness, archivist: ArchivistInstance): Promise<IndexCandidate[] | undefined>;
54
54
  }
55
55
  //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { IndexingDiviner } from '@xyo-network/diviner-indexing-memory';
2
+ import type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model';
3
+ import type { TemporalIndexingDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
4
+ import type { Payload, Schema } from '@xyo-network/payload-model';
5
+ export declare class TemporalIndexingDiviner<TParams extends TemporalIndexingDivinerParams = TemporalIndexingDivinerParams, TIn extends Payload = Payload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends IndexingDiviner<TParams, TIn, TOut, TEventData> {
6
+ static readonly configSchemas: Schema[];
7
+ static readonly defaultConfigSchema: Schema;
8
+ protected startHandler(): Promise<void>;
9
+ }
10
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACzF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAA;AAEjG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE,qBAAa,uBAAuB,CAClC,OAAO,SAAS,6BAA6B,GAAG,6BAA6B,EAC7E,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,OAAO,GAAG,OAAO,EAC9B,UAAU,SAAS,sBAAsB,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,sBAAsB,CAChH,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EACnC,GAAG,EACH,IAAI,CACL,CACD,SAAQ,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,CAAC;IACvD,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAgE;IAChH,gBAAyB,mBAAmB,EAAE,MAAM,CAAsC;cAEjE,YAAY;CAGtC"}
@@ -0,0 +1,43 @@
1
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
+ import type { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-jsonpath-model';
3
+ import type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
4
+ import type { Labels } from '@xyo-network/module-model';
5
+ import type { Payload, Schema } from '@xyo-network/payload-model';
6
+ /**
7
+ * A diviner that converts diviner query to index query
8
+ */
9
+ export declare class TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner<TParams extends TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams> extends AbstractDiviner<TParams> {
10
+ static readonly configSchemas: string[];
11
+ static readonly defaultConfigSchema: "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config";
12
+ static readonly labels: Labels;
13
+ private _indexableSchemas;
14
+ private _payloadTransformers;
15
+ /**
16
+ * The schema of the diviner query payloads
17
+ */
18
+ protected get divinerQuerySchema(): Schema;
19
+ /**
20
+ * The schema of the index query payloads
21
+ */
22
+ protected get indexQuerySchema(): Schema;
23
+ /**
24
+ * The schema of the index payloads
25
+ */
26
+ protected get indexSchema(): Schema;
27
+ /**
28
+ * List of indexable schemas for this diviner
29
+ */
30
+ protected get indexableSchemas(): Schema[];
31
+ /**
32
+ * Dictionary of schemas to payload transformers for creating indexes
33
+ * from the payloads within a Bound Witness
34
+ */
35
+ protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
36
+ /**
37
+ * The dictionary of schemas to JSON Path transform expressions for creating indexes
38
+ * from the payloads within a Bound Witness
39
+ */
40
+ protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
41
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
42
+ }
43
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Diviner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,KAAK,EAAE,8CAA8C,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAA;AAGhJ,OAAO,KAAK,EAAE,4DAA4D,EAAE,MAAM,8CAA8C,CAAA;AAKhI,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAGjE;;GAEG;AACH,qBAAa,sDAAsD,CACjE,OAAO,SAAS,4DAA4D,GAAG,4DAA4D,CAC3I,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,gBAAyB,aAAa,WAA+F;IACrI,gBAAyB,mBAAmB,uFAAqE;IACjH,gBAAyB,MAAM,EAAE,MAAM,CAGtC;IAED,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,oBAAoB,CAAmD;IAE/E;;OAEG;IACH,SAAS,KAAK,kBAAkB,IAAI,MAAM,CAEzC;IAED;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,CAEvC;IAED;;OAEG;IACH,SAAS,KAAK,WAAW,IAAI,MAAM,CAElC;IAED;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,EAAE,CAGzC;IAED;;;OAGG;IACH,SAAS,KAAK,mBAAmB,IAAI,qCAAqC,CAGzE;IAED;;;OAGG;IACH,SAAS,KAAK,gBAAgB,IAAI,8CAA8C,CAsB/E;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAuBrF"}
@@ -0,0 +1,2 @@
1
+ export * from './Diviner.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,45 @@
1
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
+ import type { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-jsonpath-model';
3
+ import type { TemporalIndexingDivinerIndexCandidateToIndexDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
4
+ import type { Labels } from '@xyo-network/module-model';
5
+ import type { Payload, Schema } from '@xyo-network/payload-model';
6
+ /**
7
+ * Diviner which transforms index candidates to indexes using JSON Path to map
8
+ * source properties in the supplied payloads to destination fields in the
9
+ * resultant index
10
+ */
11
+ export declare class TemporalIndexingDivinerIndexCandidateToIndexDiviner<TParams extends TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = TemporalIndexingDivinerIndexCandidateToIndexDivinerParams> extends AbstractDiviner<TParams> {
12
+ static readonly configSchemas: Schema[];
13
+ static readonly defaultConfigSchema: Schema;
14
+ static readonly labels: Labels;
15
+ private _indexableSchemas;
16
+ private _payloadTransformers;
17
+ /**
18
+ * List of indexable schemas for this diviner
19
+ */
20
+ protected get indexableSchemas(): string[];
21
+ /**
22
+ * Dictionary of schemas to payload transformers for creating indexes
23
+ * from the payloads within a Bound Witness
24
+ */
25
+ protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
26
+ /**
27
+ * The dictionary of schemas to JSON Path transform expressions for creating indexes
28
+ * from the payloads within a Bound Witness
29
+ */
30
+ protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
31
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
32
+ /**
33
+ * Identifies if a payload is one that is indexed by this diviner
34
+ * @param x The candidate payload
35
+ * @returns True if the payload is one indexed by this diviner, false otherwise
36
+ */
37
+ protected isIndexablePayload: (x: unknown) => boolean;
38
+ /**
39
+ * Identifies if a schema is one that is indexed by this diviner
40
+ * @param schema The candidate schema
41
+ * @returns True if this schema is one indexed by this diviner, false otherwise
42
+ */
43
+ protected isIndexableSchema: (schema?: string | null) => boolean;
44
+ }
45
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Diviner.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,KAAK,EAAE,8CAA8C,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAA;AAChJ,OAAO,KAAK,EACV,yDAAyD,EAE1D,MAAM,8CAA8C,CAAA;AAKrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAQjE;;;;GAIG;AACH,qBAAa,mDAAmD,CAC9D,OAAO,SAAS,yDAAyD,GAAG,yDAAyD,CACrI,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA4F;IAC5I,gBAAyB,mBAAmB,EAAE,MAAM,CAAkE;IACtH,gBAAyB,MAAM,EAAE,MAAM,CAGtC;IAED,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,oBAAoB,CAAmD;IAE/E;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,EAAE,CAGzC;IAED;;;OAGG;IACH,SAAS,KAAK,mBAAmB,IAAI,qCAAqC,CAGzE;IAED;;;OAGG;IACH,SAAS,KAAK,gBAAgB,IAAI,8CAA8C,CAE/E;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAwDpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,GAAI,GAAG,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,GAAI,SAAS,MAAM,GAAG,IAAI,aAEpD;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './Diviner.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
+ import type { Labels } from '@xyo-network/module-model';
3
+ import type { Payload, Schema } from '@xyo-network/payload-model';
4
+ /**
5
+ * Transforms an ImageThumbnailIndex response into an ImageThumbnailResponse response
6
+ */
7
+ export declare class TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner extends AbstractDiviner {
8
+ static readonly configSchemas: Schema[];
9
+ static readonly defaultConfigSchema: Schema;
10
+ static readonly labels: Labels;
11
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
12
+ }
13
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAG/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE;;GAEG;AACH,qBAAa,sEAAuE,SAAQ,eAAe;IACzG,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAG/C;IAED,gBAAyB,mBAAmB,EAAE,MAAM,CAAqF;IACzI,gBAAyB,MAAM,EAAE,MAAM,CAGtC;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAQrF"}
@@ -0,0 +1,2 @@
1
+ export * from './Diviner.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,55 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import { ArchivistWrapper } from '@xyo-network/archivist-wrapper';
3
+ import type { BoundWitness } from '@xyo-network/boundwitness-model';
4
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
5
+ import type { BoundWitnessDiviner } from '@xyo-network/diviner-boundwitness-abstract';
6
+ import type { BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload } from '@xyo-network/diviner-boundwitness-model';
7
+ import type { IndexingDivinerState } from '@xyo-network/diviner-indexing-model';
8
+ import type { TemporalIndexingDivinerStateToIndexCandidateDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
9
+ import { DivinerWrapper } from '@xyo-network/diviner-wrapper';
10
+ import type { Labels, ModuleState } from '@xyo-network/module-model';
11
+ import type { Payload, Schema, WithStorageMeta } from '@xyo-network/payload-model';
12
+ import type { TimeStamp } from '@xyo-network/witness-timestamp';
13
+ /**
14
+ * All Payload types involved in index candidates for indexing
15
+ */
16
+ export type IndexCandidate = BoundWitness | Payload | TimeStamp;
17
+ /**
18
+ * The response from the TemporalStateToIndexCandidateDiviner
19
+ */
20
+ export type TemporalStateToIndexCandidateDivinerResponse = [
21
+ /**
22
+ * The next state of the diviner
23
+ */
24
+ nextState: ModuleState<IndexingDivinerState>,
25
+ /**
26
+ * The index candidates
27
+ */
28
+ ...IndexCandidate[]
29
+ ];
30
+ /**
31
+ * Transforms candidates for image thumbnail indexing into their indexed representation
32
+ */
33
+ export declare class TemporalIndexingDivinerStateToIndexCandidateDiviner<TParams extends TemporalIndexingDivinerStateToIndexCandidateDivinerParams = TemporalIndexingDivinerStateToIndexCandidateDivinerParams> extends AbstractDiviner<TParams, Payload, ModuleState | IndexCandidate> {
34
+ static readonly configSchemas: Schema[];
35
+ static readonly defaultConfigSchema: Schema;
36
+ static readonly labels: Labels;
37
+ get payloadDivinerLimit(): number;
38
+ /**
39
+ * The required payload_schemas within BoundWitnesses to identify index candidates
40
+ */
41
+ protected get payload_schemas(): string[];
42
+ protected divineHandler(payloads?: Payload[]): Promise<TemporalStateToIndexCandidateDivinerResponse>;
43
+ /**
44
+ * Retrieves the archivist for the payloadStore
45
+ * @returns The archivist for the payloadStore or undefined if not resolvable
46
+ */
47
+ protected getArchivistForStore(): Promise<ArchivistWrapper | undefined>;
48
+ /**
49
+ * Retrieves the BoundWitness Diviner for the payloadStore
50
+ * @returns The BoundWitness Diviner for the payloadStore or undefined if not resolvable
51
+ */
52
+ protected getBoundWitnessDivinerForStore(): Promise<DivinerWrapper<BoundWitnessDiviner<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/diviner-model").DivinerInstance<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig<object, void>>>, import("@xyo-network/module-model").ModuleEventData<object>>, Payload, Payload>>, BoundWitnessDivinerQueryPayload, BoundWitness>>, BoundWitnessDivinerQueryPayload, WithStorageMeta<BoundWitness>> | undefined>;
53
+ protected getPayloadsInBoundWitness(bw: BoundWitness, archivist: ArchivistInstance): Promise<IndexCandidate[] | undefined>;
54
+ }
55
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAwB,MAAM,8BAA8B,CAAA;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAGnE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAA;AACrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAA;AACzH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAC/E,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,8CAA8C,CAAA;AAE7H,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,KAAK,EACV,MAAM,EAAoB,WAAW,EACtC,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,EACV,OAAO,EAAE,MAAM,EACf,eAAe,EAChB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAA;AAE/D;;GAEG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD;;OAEG;IACH,SAAS,EAAE,WAAW,CAAC,oBAAoB,CAAC;IAC5C;;OAEG;IACH,GAAG,cAAc,EAAE;CACpB,CAAA;AAYD;;GAEG;AACH,qBAAa,mDAAmD,CAC9D,OAAO,SAAS,yDAAyD,GAAG,yDAAyD,CACrI,SAAQ,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,cAAc,CAAC;IACvE,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA4F;IAC5I,gBAAyB,mBAAmB,EAAE,MAAM,CAAkE;IACtH,gBAAyB,MAAM,EAAE,MAAM,CAGtC;IAED,IAAI,mBAAmB,WAEtB;IAED;;OAEG;IACH,SAAS,KAAK,eAAe,IAAI,MAAM,EAAE,CAGxC;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,4CAA4C,CAAC;IAgCvH;;;OAGG;cACa,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAa7E;;;OAGG;cACa,8BAA8B;cAmB9B,yBAAyB,CAAC,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,EAAE,GAAG,SAAS,CAAC;CAOjI"}
@@ -0,0 +1,2 @@
1
+ export * from './Diviner.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from './Diviner.ts';
2
+ export * from './DivinerQueryToIndexQueryDiviner/index.ts';
3
+ export * from './IndexCandidateToIndexDiviner/index.ts';
4
+ export * from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts';
5
+ export * from './StateToIndexCandidateDiviner/index.ts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,4CAA4C,CAAA;AAC1D,cAAc,yCAAyC,CAAA;AACvD,cAAc,4DAA4D,CAAA;AAC1E,cAAc,yCAAyC,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { IndexingDiviner } from '@xyo-network/diviner-indexing-memory';
2
+ import type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model';
3
+ import type { TemporalIndexingDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
4
+ import type { Payload, Schema } from '@xyo-network/payload-model';
5
+ export declare class TemporalIndexingDiviner<TParams extends TemporalIndexingDivinerParams = TemporalIndexingDivinerParams, TIn extends Payload = Payload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends IndexingDiviner<TParams, TIn, TOut, TEventData> {
6
+ static readonly configSchemas: Schema[];
7
+ static readonly defaultConfigSchema: Schema;
8
+ protected startHandler(): Promise<void>;
9
+ }
10
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../src/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACzF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,8CAA8C,CAAA;AAEjG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE,qBAAa,uBAAuB,CAClC,OAAO,SAAS,6BAA6B,GAAG,6BAA6B,EAC7E,GAAG,SAAS,OAAO,GAAG,OAAO,EAC7B,IAAI,SAAS,OAAO,GAAG,OAAO,EAC9B,UAAU,SAAS,sBAAsB,CAAC,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,sBAAsB,CAChH,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,EACnC,GAAG,EACH,IAAI,CACL,CACD,SAAQ,eAAe,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,CAAC;IACvD,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAAgE;IAChH,gBAAyB,mBAAmB,EAAE,MAAM,CAAsC;cAEjE,YAAY;CAGtC"}
@@ -0,0 +1,43 @@
1
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
+ import type { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-jsonpath-model';
3
+ import type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
4
+ import type { Labels } from '@xyo-network/module-model';
5
+ import type { Payload, Schema } from '@xyo-network/payload-model';
6
+ /**
7
+ * A diviner that converts diviner query to index query
8
+ */
9
+ export declare class TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner<TParams extends TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams> extends AbstractDiviner<TParams> {
10
+ static readonly configSchemas: string[];
11
+ static readonly defaultConfigSchema: "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config";
12
+ static readonly labels: Labels;
13
+ private _indexableSchemas;
14
+ private _payloadTransformers;
15
+ /**
16
+ * The schema of the diviner query payloads
17
+ */
18
+ protected get divinerQuerySchema(): Schema;
19
+ /**
20
+ * The schema of the index query payloads
21
+ */
22
+ protected get indexQuerySchema(): Schema;
23
+ /**
24
+ * The schema of the index payloads
25
+ */
26
+ protected get indexSchema(): Schema;
27
+ /**
28
+ * List of indexable schemas for this diviner
29
+ */
30
+ protected get indexableSchemas(): Schema[];
31
+ /**
32
+ * Dictionary of schemas to payload transformers for creating indexes
33
+ * from the payloads within a Bound Witness
34
+ */
35
+ protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
36
+ /**
37
+ * The dictionary of schemas to JSON Path transform expressions for creating indexes
38
+ * from the payloads within a Bound Witness
39
+ */
40
+ protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
41
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
42
+ }
43
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Diviner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,KAAK,EAAE,8CAA8C,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAA;AAGhJ,OAAO,KAAK,EAAE,4DAA4D,EAAE,MAAM,8CAA8C,CAAA;AAKhI,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAGjE;;GAEG;AACH,qBAAa,sDAAsD,CACjE,OAAO,SAAS,4DAA4D,GAAG,4DAA4D,CAC3I,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,gBAAyB,aAAa,WAA+F;IACrI,gBAAyB,mBAAmB,uFAAqE;IACjH,gBAAyB,MAAM,EAAE,MAAM,CAGtC;IAED,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,oBAAoB,CAAmD;IAE/E;;OAEG;IACH,SAAS,KAAK,kBAAkB,IAAI,MAAM,CAEzC;IAED;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,CAEvC;IAED;;OAEG;IACH,SAAS,KAAK,WAAW,IAAI,MAAM,CAElC;IAED;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,EAAE,CAGzC;IAED;;;OAGG;IACH,SAAS,KAAK,mBAAmB,IAAI,qCAAqC,CAGzE;IAED;;;OAGG;IACH,SAAS,KAAK,gBAAgB,IAAI,8CAA8C,CAsB/E;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAuBrF"}
@@ -0,0 +1,2 @@
1
+ export * from './Diviner.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,45 @@
1
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
+ import type { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-jsonpath-model';
3
+ import type { TemporalIndexingDivinerIndexCandidateToIndexDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
4
+ import type { Labels } from '@xyo-network/module-model';
5
+ import type { Payload, Schema } from '@xyo-network/payload-model';
6
+ /**
7
+ * Diviner which transforms index candidates to indexes using JSON Path to map
8
+ * source properties in the supplied payloads to destination fields in the
9
+ * resultant index
10
+ */
11
+ export declare class TemporalIndexingDivinerIndexCandidateToIndexDiviner<TParams extends TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = TemporalIndexingDivinerIndexCandidateToIndexDivinerParams> extends AbstractDiviner<TParams> {
12
+ static readonly configSchemas: Schema[];
13
+ static readonly defaultConfigSchema: Schema;
14
+ static readonly labels: Labels;
15
+ private _indexableSchemas;
16
+ private _payloadTransformers;
17
+ /**
18
+ * List of indexable schemas for this diviner
19
+ */
20
+ protected get indexableSchemas(): string[];
21
+ /**
22
+ * Dictionary of schemas to payload transformers for creating indexes
23
+ * from the payloads within a Bound Witness
24
+ */
25
+ protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
26
+ /**
27
+ * The dictionary of schemas to JSON Path transform expressions for creating indexes
28
+ * from the payloads within a Bound Witness
29
+ */
30
+ protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
31
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
32
+ /**
33
+ * Identifies if a payload is one that is indexed by this diviner
34
+ * @param x The candidate payload
35
+ * @returns True if the payload is one indexed by this diviner, false otherwise
36
+ */
37
+ protected isIndexablePayload: (x: unknown) => boolean;
38
+ /**
39
+ * Identifies if a schema is one that is indexed by this diviner
40
+ * @param schema The candidate schema
41
+ * @returns True if this schema is one indexed by this diviner, false otherwise
42
+ */
43
+ protected isIndexableSchema: (schema?: string | null) => boolean;
44
+ }
45
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Diviner.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAE/D,OAAO,KAAK,EAAE,8CAA8C,EAAE,qCAAqC,EAAE,MAAM,qCAAqC,CAAA;AAChJ,OAAO,KAAK,EACV,yDAAyD,EAE1D,MAAM,8CAA8C,CAAA;AAKrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAQjE;;;;GAIG;AACH,qBAAa,mDAAmD,CAC9D,OAAO,SAAS,yDAAyD,GAAG,yDAAyD,CACrI,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA4F;IAC5I,gBAAyB,mBAAmB,EAAE,MAAM,CAAkE;IACtH,gBAAyB,MAAM,EAAE,MAAM,CAGtC;IAED,OAAO,CAAC,iBAAiB,CAAsB;IAC/C,OAAO,CAAC,oBAAoB,CAAmD;IAE/E;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,MAAM,EAAE,CAGzC;IAED;;;OAGG;IACH,SAAS,KAAK,mBAAmB,IAAI,qCAAqC,CAGzE;IAED;;;OAGG;IACH,SAAS,KAAK,gBAAgB,IAAI,8CAA8C,CAE/E;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAwDpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,GAAI,GAAG,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,GAAI,SAAS,MAAM,GAAG,IAAI,aAEpD;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from './Diviner.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
2
+ import type { Labels } from '@xyo-network/module-model';
3
+ import type { Payload, Schema } from '@xyo-network/payload-model';
4
+ /**
5
+ * Transforms an ImageThumbnailIndex response into an ImageThumbnailResponse response
6
+ */
7
+ export declare class TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner extends AbstractDiviner {
8
+ static readonly configSchemas: Schema[];
9
+ static readonly defaultConfigSchema: Schema;
10
+ static readonly labels: Labels;
11
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
12
+ }
13
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAG/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAEjE;;GAEG;AACH,qBAAa,sEAAuE,SAAQ,eAAe;IACzG,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAG/C;IAED,gBAAyB,mBAAmB,EAAE,MAAM,CAAqF;IACzI,gBAAyB,MAAM,EAAE,MAAM,CAGtC;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;CAQrF"}
@@ -0,0 +1,2 @@
1
+ export * from './Diviner.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,55 @@
1
+ import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
+ import { ArchivistWrapper } from '@xyo-network/archivist-wrapper';
3
+ import type { BoundWitness } from '@xyo-network/boundwitness-model';
4
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
5
+ import type { BoundWitnessDiviner } from '@xyo-network/diviner-boundwitness-abstract';
6
+ import type { BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload } from '@xyo-network/diviner-boundwitness-model';
7
+ import type { IndexingDivinerState } from '@xyo-network/diviner-indexing-model';
8
+ import type { TemporalIndexingDivinerStateToIndexCandidateDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
9
+ import { DivinerWrapper } from '@xyo-network/diviner-wrapper';
10
+ import type { Labels, ModuleState } from '@xyo-network/module-model';
11
+ import type { Payload, Schema, WithStorageMeta } from '@xyo-network/payload-model';
12
+ import type { TimeStamp } from '@xyo-network/witness-timestamp';
13
+ /**
14
+ * All Payload types involved in index candidates for indexing
15
+ */
16
+ export type IndexCandidate = BoundWitness | Payload | TimeStamp;
17
+ /**
18
+ * The response from the TemporalStateToIndexCandidateDiviner
19
+ */
20
+ export type TemporalStateToIndexCandidateDivinerResponse = [
21
+ /**
22
+ * The next state of the diviner
23
+ */
24
+ nextState: ModuleState<IndexingDivinerState>,
25
+ /**
26
+ * The index candidates
27
+ */
28
+ ...IndexCandidate[]
29
+ ];
30
+ /**
31
+ * Transforms candidates for image thumbnail indexing into their indexed representation
32
+ */
33
+ export declare class TemporalIndexingDivinerStateToIndexCandidateDiviner<TParams extends TemporalIndexingDivinerStateToIndexCandidateDivinerParams = TemporalIndexingDivinerStateToIndexCandidateDivinerParams> extends AbstractDiviner<TParams, Payload, ModuleState | IndexCandidate> {
34
+ static readonly configSchemas: Schema[];
35
+ static readonly defaultConfigSchema: Schema;
36
+ static readonly labels: Labels;
37
+ get payloadDivinerLimit(): number;
38
+ /**
39
+ * The required payload_schemas within BoundWitnesses to identify index candidates
40
+ */
41
+ protected get payload_schemas(): string[];
42
+ protected divineHandler(payloads?: Payload[]): Promise<TemporalStateToIndexCandidateDivinerResponse>;
43
+ /**
44
+ * Retrieves the archivist for the payloadStore
45
+ * @returns The archivist for the payloadStore or undefined if not resolvable
46
+ */
47
+ protected getArchivistForStore(): Promise<ArchivistWrapper | undefined>;
48
+ /**
49
+ * Retrieves the BoundWitness Diviner for the payloadStore
50
+ * @returns The BoundWitness Diviner for the payloadStore or undefined if not resolvable
51
+ */
52
+ protected getBoundWitnessDivinerForStore(): Promise<DivinerWrapper<BoundWitnessDiviner<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/diviner-model").DivinerInstance<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/module-model").ModuleInstance<import("@xyo-network/module-model").ModuleParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/module-model").ModuleConfig<object, void>>>, import("@xyo-network/module-model").ModuleEventData<object>>, Payload, Payload>>, BoundWitnessDivinerQueryPayload, BoundWitness>>, BoundWitnessDivinerQueryPayload, WithStorageMeta<BoundWitness>> | undefined>;
53
+ protected getPayloadsInBoundWitness(bw: BoundWitness, archivist: ArchivistInstance): Promise<IndexCandidate[] | undefined>;
54
+ }
55
+ //# sourceMappingURL=Diviner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Diviner.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAwB,MAAM,8BAA8B,CAAA;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAGnE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAA;AACrF,OAAO,KAAK,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAA;AACzH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAC/E,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,8CAA8C,CAAA;AAE7H,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,KAAK,EACV,MAAM,EAAoB,WAAW,EACtC,MAAM,2BAA2B,CAAA;AAElC,OAAO,KAAK,EACV,OAAO,EAAE,MAAM,EACf,eAAe,EAChB,MAAM,4BAA4B,CAAA;AAGnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAA;AAG/D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,CAAA;AAE/D;;GAEG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD;;OAEG;IACH,SAAS,EAAE,WAAW,CAAC,oBAAoB,CAAC;IAC5C;;OAEG;IACH,GAAG,cAAc,EAAE;CACpB,CAAA;AAYD;;GAEG;AACH,qBAAa,mDAAmD,CAC9D,OAAO,SAAS,yDAAyD,GAAG,yDAAyD,CACrI,SAAQ,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,cAAc,CAAC;IACvE,gBAAyB,aAAa,EAAE,MAAM,EAAE,CAA4F;IAC5I,gBAAyB,mBAAmB,EAAE,MAAM,CAAkE;IACtH,gBAAyB,MAAM,EAAE,MAAM,CAGtC;IAED,IAAI,mBAAmB,WAEtB;IAED;;OAEG;IACH,SAAS,KAAK,eAAe,IAAI,MAAM,EAAE,CAGxC;cAEwB,aAAa,CAAC,QAAQ,GAAE,OAAO,EAAO,GAAG,OAAO,CAAC,4CAA4C,CAAC;IAgCvH;;;OAGG;cACa,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAa7E;;;OAGG;cACa,8BAA8B;cAmB9B,yBAAyB,CAAC,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,GAAG,OAAO,CAAC,cAAc,EAAE,GAAG,SAAS,CAAC;CAOjI"}
@@ -0,0 +1,2 @@
1
+ export * from './Diviner.ts';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from './Diviner.ts';
2
+ export * from './DivinerQueryToIndexQueryDiviner/index.ts';
3
+ export * from './IndexCandidateToIndexDiviner/index.ts';
4
+ export * from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts';
5
+ export * from './StateToIndexCandidateDiviner/index.ts';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,4CAA4C,CAAA;AAC1D,cAAc,yCAAyC,CAAA;AACvD,cAAc,4DAA4D,CAAA;AAC1E,cAAc,yCAAyC,CAAA"}
@@ -0,0 +1,157 @@
1
+ import { IndexingDiviner } from '@xyo-network/diviner-indexing-memory';
2
+ import * as _xyo_network_diviner_model from '@xyo-network/diviner-model';
3
+ import { DivinerModuleEventData, DivinerInstance } from '@xyo-network/diviner-model';
4
+ import { TemporalIndexingDivinerParams, TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams, TemporalIndexingDivinerIndexCandidateToIndexDivinerParams, TemporalIndexingDivinerStateToIndexCandidateDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
5
+ import { Payload, Schema, WithStorageMeta } from '@xyo-network/payload-model';
6
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
7
+ import { SchemaToPayloadTransformersDictionary, SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
8
+ import * as _xyo_network_module_model from '@xyo-network/module-model';
9
+ import { Labels, ModuleState } from '@xyo-network/module-model';
10
+ import { ArchivistInstance } from '@xyo-network/archivist-model';
11
+ import { ArchivistWrapper } from '@xyo-network/archivist-wrapper';
12
+ import { BoundWitness } from '@xyo-network/boundwitness-model';
13
+ import { BoundWitnessDiviner } from '@xyo-network/diviner-boundwitness-abstract';
14
+ import { BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload } from '@xyo-network/diviner-boundwitness-model';
15
+ import { IndexingDivinerState } from '@xyo-network/diviner-indexing-model';
16
+ import { DivinerWrapper } from '@xyo-network/diviner-wrapper';
17
+ import { TimeStamp } from '@xyo-network/witness-timestamp';
18
+
19
+ declare class TemporalIndexingDiviner<TParams extends TemporalIndexingDivinerParams = TemporalIndexingDivinerParams, TIn extends Payload = Payload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends IndexingDiviner<TParams, TIn, TOut, TEventData> {
20
+ static readonly configSchemas: Schema[];
21
+ static readonly defaultConfigSchema: Schema;
22
+ protected startHandler(): Promise<void>;
23
+ }
24
+
25
+ /**
26
+ * A diviner that converts diviner query to index query
27
+ */
28
+ declare class TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner<TParams extends TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams> extends AbstractDiviner<TParams> {
29
+ static readonly configSchemas: string[];
30
+ static readonly defaultConfigSchema: "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config";
31
+ static readonly labels: Labels;
32
+ private _indexableSchemas;
33
+ private _payloadTransformers;
34
+ /**
35
+ * The schema of the diviner query payloads
36
+ */
37
+ protected get divinerQuerySchema(): Schema;
38
+ /**
39
+ * The schema of the index query payloads
40
+ */
41
+ protected get indexQuerySchema(): Schema;
42
+ /**
43
+ * The schema of the index payloads
44
+ */
45
+ protected get indexSchema(): Schema;
46
+ /**
47
+ * List of indexable schemas for this diviner
48
+ */
49
+ protected get indexableSchemas(): Schema[];
50
+ /**
51
+ * Dictionary of schemas to payload transformers for creating indexes
52
+ * from the payloads within a Bound Witness
53
+ */
54
+ protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
55
+ /**
56
+ * The dictionary of schemas to JSON Path transform expressions for creating indexes
57
+ * from the payloads within a Bound Witness
58
+ */
59
+ protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
60
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
61
+ }
62
+
63
+ /**
64
+ * Diviner which transforms index candidates to indexes using JSON Path to map
65
+ * source properties in the supplied payloads to destination fields in the
66
+ * resultant index
67
+ */
68
+ declare class TemporalIndexingDivinerIndexCandidateToIndexDiviner<TParams extends TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = TemporalIndexingDivinerIndexCandidateToIndexDivinerParams> extends AbstractDiviner<TParams> {
69
+ static readonly configSchemas: Schema[];
70
+ static readonly defaultConfigSchema: Schema;
71
+ static readonly labels: Labels;
72
+ private _indexableSchemas;
73
+ private _payloadTransformers;
74
+ /**
75
+ * List of indexable schemas for this diviner
76
+ */
77
+ protected get indexableSchemas(): string[];
78
+ /**
79
+ * Dictionary of schemas to payload transformers for creating indexes
80
+ * from the payloads within a Bound Witness
81
+ */
82
+ protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
83
+ /**
84
+ * The dictionary of schemas to JSON Path transform expressions for creating indexes
85
+ * from the payloads within a Bound Witness
86
+ */
87
+ protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
88
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
89
+ /**
90
+ * Identifies if a payload is one that is indexed by this diviner
91
+ * @param x The candidate payload
92
+ * @returns True if the payload is one indexed by this diviner, false otherwise
93
+ */
94
+ protected isIndexablePayload: (x: unknown) => boolean;
95
+ /**
96
+ * Identifies if a schema is one that is indexed by this diviner
97
+ * @param schema The candidate schema
98
+ * @returns True if this schema is one indexed by this diviner, false otherwise
99
+ */
100
+ protected isIndexableSchema: (schema?: string | null) => boolean;
101
+ }
102
+
103
+ /**
104
+ * Transforms an ImageThumbnailIndex response into an ImageThumbnailResponse response
105
+ */
106
+ declare class TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner extends AbstractDiviner {
107
+ static readonly configSchemas: Schema[];
108
+ static readonly defaultConfigSchema: Schema;
109
+ static readonly labels: Labels;
110
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
111
+ }
112
+
113
+ /**
114
+ * All Payload types involved in index candidates for indexing
115
+ */
116
+ type IndexCandidate = BoundWitness | Payload | TimeStamp;
117
+ /**
118
+ * The response from the TemporalStateToIndexCandidateDiviner
119
+ */
120
+ type TemporalStateToIndexCandidateDivinerResponse = [
121
+ /**
122
+ * The next state of the diviner
123
+ */
124
+ nextState: ModuleState<IndexingDivinerState>,
125
+ /**
126
+ * The index candidates
127
+ */
128
+ ...IndexCandidate[]
129
+ ];
130
+ /**
131
+ * Transforms candidates for image thumbnail indexing into their indexed representation
132
+ */
133
+ declare class TemporalIndexingDivinerStateToIndexCandidateDiviner<TParams extends TemporalIndexingDivinerStateToIndexCandidateDivinerParams = TemporalIndexingDivinerStateToIndexCandidateDivinerParams> extends AbstractDiviner<TParams, Payload, ModuleState | IndexCandidate> {
134
+ static readonly configSchemas: Schema[];
135
+ static readonly defaultConfigSchema: Schema;
136
+ static readonly labels: Labels;
137
+ get payloadDivinerLimit(): number;
138
+ /**
139
+ * The required payload_schemas within BoundWitnesses to identify index candidates
140
+ */
141
+ protected get payload_schemas(): string[];
142
+ protected divineHandler(payloads?: Payload[]): Promise<TemporalStateToIndexCandidateDivinerResponse>;
143
+ /**
144
+ * Retrieves the archivist for the payloadStore
145
+ * @returns The archivist for the payloadStore or undefined if not resolvable
146
+ */
147
+ protected getArchivistForStore(): Promise<ArchivistWrapper | undefined>;
148
+ /**
149
+ * Retrieves the BoundWitness Diviner for the payloadStore
150
+ * @returns The BoundWitness Diviner for the payloadStore or undefined if not resolvable
151
+ */
152
+ protected getBoundWitnessDivinerForStore(): Promise<DivinerWrapper<BoundWitnessDiviner<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_diviner_model.DivinerInstance<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xyo_network_module_model.ModuleParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<object, void>>>, _xyo_network_module_model.ModuleEventData<object>>, Payload, Payload>>, BoundWitnessDivinerQueryPayload, BoundWitness>>, BoundWitnessDivinerQueryPayload, WithStorageMeta<BoundWitness>> | undefined>;
153
+ protected getPayloadsInBoundWitness(bw: BoundWitness, archivist: ArchivistInstance): Promise<IndexCandidate[] | undefined>;
154
+ }
155
+
156
+ export { TemporalIndexingDiviner, TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner, TemporalIndexingDivinerIndexCandidateToIndexDiviner, TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner, TemporalIndexingDivinerStateToIndexCandidateDiviner };
157
+ export type { IndexCandidate, TemporalStateToIndexCandidateDivinerResponse };
@@ -0,0 +1,157 @@
1
+ import { IndexingDiviner } from '@xyo-network/diviner-indexing-memory';
2
+ import * as _xyo_network_diviner_model from '@xyo-network/diviner-model';
3
+ import { DivinerModuleEventData, DivinerInstance } from '@xyo-network/diviner-model';
4
+ import { TemporalIndexingDivinerParams, TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams, TemporalIndexingDivinerIndexCandidateToIndexDivinerParams, TemporalIndexingDivinerStateToIndexCandidateDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
5
+ import { Payload, Schema, WithStorageMeta } from '@xyo-network/payload-model';
6
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
7
+ import { SchemaToPayloadTransformersDictionary, SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
8
+ import * as _xyo_network_module_model from '@xyo-network/module-model';
9
+ import { Labels, ModuleState } from '@xyo-network/module-model';
10
+ import { ArchivistInstance } from '@xyo-network/archivist-model';
11
+ import { ArchivistWrapper } from '@xyo-network/archivist-wrapper';
12
+ import { BoundWitness } from '@xyo-network/boundwitness-model';
13
+ import { BoundWitnessDiviner } from '@xyo-network/diviner-boundwitness-abstract';
14
+ import { BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload } from '@xyo-network/diviner-boundwitness-model';
15
+ import { IndexingDivinerState } from '@xyo-network/diviner-indexing-model';
16
+ import { DivinerWrapper } from '@xyo-network/diviner-wrapper';
17
+ import { TimeStamp } from '@xyo-network/witness-timestamp';
18
+
19
+ declare class TemporalIndexingDiviner<TParams extends TemporalIndexingDivinerParams = TemporalIndexingDivinerParams, TIn extends Payload = Payload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends IndexingDiviner<TParams, TIn, TOut, TEventData> {
20
+ static readonly configSchemas: Schema[];
21
+ static readonly defaultConfigSchema: Schema;
22
+ protected startHandler(): Promise<void>;
23
+ }
24
+
25
+ /**
26
+ * A diviner that converts diviner query to index query
27
+ */
28
+ declare class TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner<TParams extends TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams> extends AbstractDiviner<TParams> {
29
+ static readonly configSchemas: string[];
30
+ static readonly defaultConfigSchema: "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config";
31
+ static readonly labels: Labels;
32
+ private _indexableSchemas;
33
+ private _payloadTransformers;
34
+ /**
35
+ * The schema of the diviner query payloads
36
+ */
37
+ protected get divinerQuerySchema(): Schema;
38
+ /**
39
+ * The schema of the index query payloads
40
+ */
41
+ protected get indexQuerySchema(): Schema;
42
+ /**
43
+ * The schema of the index payloads
44
+ */
45
+ protected get indexSchema(): Schema;
46
+ /**
47
+ * List of indexable schemas for this diviner
48
+ */
49
+ protected get indexableSchemas(): Schema[];
50
+ /**
51
+ * Dictionary of schemas to payload transformers for creating indexes
52
+ * from the payloads within a Bound Witness
53
+ */
54
+ protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
55
+ /**
56
+ * The dictionary of schemas to JSON Path transform expressions for creating indexes
57
+ * from the payloads within a Bound Witness
58
+ */
59
+ protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
60
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
61
+ }
62
+
63
+ /**
64
+ * Diviner which transforms index candidates to indexes using JSON Path to map
65
+ * source properties in the supplied payloads to destination fields in the
66
+ * resultant index
67
+ */
68
+ declare class TemporalIndexingDivinerIndexCandidateToIndexDiviner<TParams extends TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = TemporalIndexingDivinerIndexCandidateToIndexDivinerParams> extends AbstractDiviner<TParams> {
69
+ static readonly configSchemas: Schema[];
70
+ static readonly defaultConfigSchema: Schema;
71
+ static readonly labels: Labels;
72
+ private _indexableSchemas;
73
+ private _payloadTransformers;
74
+ /**
75
+ * List of indexable schemas for this diviner
76
+ */
77
+ protected get indexableSchemas(): string[];
78
+ /**
79
+ * Dictionary of schemas to payload transformers for creating indexes
80
+ * from the payloads within a Bound Witness
81
+ */
82
+ protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
83
+ /**
84
+ * The dictionary of schemas to JSON Path transform expressions for creating indexes
85
+ * from the payloads within a Bound Witness
86
+ */
87
+ protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
88
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
89
+ /**
90
+ * Identifies if a payload is one that is indexed by this diviner
91
+ * @param x The candidate payload
92
+ * @returns True if the payload is one indexed by this diviner, false otherwise
93
+ */
94
+ protected isIndexablePayload: (x: unknown) => boolean;
95
+ /**
96
+ * Identifies if a schema is one that is indexed by this diviner
97
+ * @param schema The candidate schema
98
+ * @returns True if this schema is one indexed by this diviner, false otherwise
99
+ */
100
+ protected isIndexableSchema: (schema?: string | null) => boolean;
101
+ }
102
+
103
+ /**
104
+ * Transforms an ImageThumbnailIndex response into an ImageThumbnailResponse response
105
+ */
106
+ declare class TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner extends AbstractDiviner {
107
+ static readonly configSchemas: Schema[];
108
+ static readonly defaultConfigSchema: Schema;
109
+ static readonly labels: Labels;
110
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
111
+ }
112
+
113
+ /**
114
+ * All Payload types involved in index candidates for indexing
115
+ */
116
+ type IndexCandidate = BoundWitness | Payload | TimeStamp;
117
+ /**
118
+ * The response from the TemporalStateToIndexCandidateDiviner
119
+ */
120
+ type TemporalStateToIndexCandidateDivinerResponse = [
121
+ /**
122
+ * The next state of the diviner
123
+ */
124
+ nextState: ModuleState<IndexingDivinerState>,
125
+ /**
126
+ * The index candidates
127
+ */
128
+ ...IndexCandidate[]
129
+ ];
130
+ /**
131
+ * Transforms candidates for image thumbnail indexing into their indexed representation
132
+ */
133
+ declare class TemporalIndexingDivinerStateToIndexCandidateDiviner<TParams extends TemporalIndexingDivinerStateToIndexCandidateDivinerParams = TemporalIndexingDivinerStateToIndexCandidateDivinerParams> extends AbstractDiviner<TParams, Payload, ModuleState | IndexCandidate> {
134
+ static readonly configSchemas: Schema[];
135
+ static readonly defaultConfigSchema: Schema;
136
+ static readonly labels: Labels;
137
+ get payloadDivinerLimit(): number;
138
+ /**
139
+ * The required payload_schemas within BoundWitnesses to identify index candidates
140
+ */
141
+ protected get payload_schemas(): string[];
142
+ protected divineHandler(payloads?: Payload[]): Promise<TemporalStateToIndexCandidateDivinerResponse>;
143
+ /**
144
+ * Retrieves the archivist for the payloadStore
145
+ * @returns The archivist for the payloadStore or undefined if not resolvable
146
+ */
147
+ protected getArchivistForStore(): Promise<ArchivistWrapper | undefined>;
148
+ /**
149
+ * Retrieves the BoundWitness Diviner for the payloadStore
150
+ * @returns The BoundWitness Diviner for the payloadStore or undefined if not resolvable
151
+ */
152
+ protected getBoundWitnessDivinerForStore(): Promise<DivinerWrapper<BoundWitnessDiviner<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_diviner_model.DivinerInstance<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xyo_network_module_model.ModuleParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<object, void>>>, _xyo_network_module_model.ModuleEventData<object>>, Payload, Payload>>, BoundWitnessDivinerQueryPayload, BoundWitness>>, BoundWitnessDivinerQueryPayload, WithStorageMeta<BoundWitness>> | undefined>;
153
+ protected getPayloadsInBoundWitness(bw: BoundWitness, archivist: ArchivistInstance): Promise<IndexCandidate[] | undefined>;
154
+ }
155
+
156
+ export { TemporalIndexingDiviner, TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner, TemporalIndexingDivinerIndexCandidateToIndexDiviner, TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner, TemporalIndexingDivinerStateToIndexCandidateDiviner };
157
+ export type { IndexCandidate, TemporalStateToIndexCandidateDivinerResponse };
@@ -0,0 +1,157 @@
1
+ import { IndexingDiviner } from '@xyo-network/diviner-indexing-memory';
2
+ import * as _xyo_network_diviner_model from '@xyo-network/diviner-model';
3
+ import { DivinerModuleEventData, DivinerInstance } from '@xyo-network/diviner-model';
4
+ import { TemporalIndexingDivinerParams, TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams, TemporalIndexingDivinerIndexCandidateToIndexDivinerParams, TemporalIndexingDivinerStateToIndexCandidateDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
5
+ import { Payload, Schema, WithStorageMeta } from '@xyo-network/payload-model';
6
+ import { AbstractDiviner } from '@xyo-network/diviner-abstract';
7
+ import { SchemaToPayloadTransformersDictionary, SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
8
+ import * as _xyo_network_module_model from '@xyo-network/module-model';
9
+ import { Labels, ModuleState } from '@xyo-network/module-model';
10
+ import { ArchivistInstance } from '@xyo-network/archivist-model';
11
+ import { ArchivistWrapper } from '@xyo-network/archivist-wrapper';
12
+ import { BoundWitness } from '@xyo-network/boundwitness-model';
13
+ import { BoundWitnessDiviner } from '@xyo-network/diviner-boundwitness-abstract';
14
+ import { BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload } from '@xyo-network/diviner-boundwitness-model';
15
+ import { IndexingDivinerState } from '@xyo-network/diviner-indexing-model';
16
+ import { DivinerWrapper } from '@xyo-network/diviner-wrapper';
17
+ import { TimeStamp } from '@xyo-network/witness-timestamp';
18
+
19
+ declare class TemporalIndexingDiviner<TParams extends TemporalIndexingDivinerParams = TemporalIndexingDivinerParams, TIn extends Payload = Payload, TOut extends Payload = Payload, TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut>> extends IndexingDiviner<TParams, TIn, TOut, TEventData> {
20
+ static readonly configSchemas: Schema[];
21
+ static readonly defaultConfigSchema: Schema;
22
+ protected startHandler(): Promise<void>;
23
+ }
24
+
25
+ /**
26
+ * A diviner that converts diviner query to index query
27
+ */
28
+ declare class TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner<TParams extends TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams> extends AbstractDiviner<TParams> {
29
+ static readonly configSchemas: string[];
30
+ static readonly defaultConfigSchema: "network.xyo.diviner.indexing.temporal.stage.divinerQueryToIndexQueryDiviner.config";
31
+ static readonly labels: Labels;
32
+ private _indexableSchemas;
33
+ private _payloadTransformers;
34
+ /**
35
+ * The schema of the diviner query payloads
36
+ */
37
+ protected get divinerQuerySchema(): Schema;
38
+ /**
39
+ * The schema of the index query payloads
40
+ */
41
+ protected get indexQuerySchema(): Schema;
42
+ /**
43
+ * The schema of the index payloads
44
+ */
45
+ protected get indexSchema(): Schema;
46
+ /**
47
+ * List of indexable schemas for this diviner
48
+ */
49
+ protected get indexableSchemas(): Schema[];
50
+ /**
51
+ * Dictionary of schemas to payload transformers for creating indexes
52
+ * from the payloads within a Bound Witness
53
+ */
54
+ protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
55
+ /**
56
+ * The dictionary of schemas to JSON Path transform expressions for creating indexes
57
+ * from the payloads within a Bound Witness
58
+ */
59
+ protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
60
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
61
+ }
62
+
63
+ /**
64
+ * Diviner which transforms index candidates to indexes using JSON Path to map
65
+ * source properties in the supplied payloads to destination fields in the
66
+ * resultant index
67
+ */
68
+ declare class TemporalIndexingDivinerIndexCandidateToIndexDiviner<TParams extends TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = TemporalIndexingDivinerIndexCandidateToIndexDivinerParams> extends AbstractDiviner<TParams> {
69
+ static readonly configSchemas: Schema[];
70
+ static readonly defaultConfigSchema: Schema;
71
+ static readonly labels: Labels;
72
+ private _indexableSchemas;
73
+ private _payloadTransformers;
74
+ /**
75
+ * List of indexable schemas for this diviner
76
+ */
77
+ protected get indexableSchemas(): string[];
78
+ /**
79
+ * Dictionary of schemas to payload transformers for creating indexes
80
+ * from the payloads within a Bound Witness
81
+ */
82
+ protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
83
+ /**
84
+ * The dictionary of schemas to JSON Path transform expressions for creating indexes
85
+ * from the payloads within a Bound Witness
86
+ */
87
+ protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
88
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
89
+ /**
90
+ * Identifies if a payload is one that is indexed by this diviner
91
+ * @param x The candidate payload
92
+ * @returns True if the payload is one indexed by this diviner, false otherwise
93
+ */
94
+ protected isIndexablePayload: (x: unknown) => boolean;
95
+ /**
96
+ * Identifies if a schema is one that is indexed by this diviner
97
+ * @param schema The candidate schema
98
+ * @returns True if this schema is one indexed by this diviner, false otherwise
99
+ */
100
+ protected isIndexableSchema: (schema?: string | null) => boolean;
101
+ }
102
+
103
+ /**
104
+ * Transforms an ImageThumbnailIndex response into an ImageThumbnailResponse response
105
+ */
106
+ declare class TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner extends AbstractDiviner {
107
+ static readonly configSchemas: Schema[];
108
+ static readonly defaultConfigSchema: Schema;
109
+ static readonly labels: Labels;
110
+ protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
111
+ }
112
+
113
+ /**
114
+ * All Payload types involved in index candidates for indexing
115
+ */
116
+ type IndexCandidate = BoundWitness | Payload | TimeStamp;
117
+ /**
118
+ * The response from the TemporalStateToIndexCandidateDiviner
119
+ */
120
+ type TemporalStateToIndexCandidateDivinerResponse = [
121
+ /**
122
+ * The next state of the diviner
123
+ */
124
+ nextState: ModuleState<IndexingDivinerState>,
125
+ /**
126
+ * The index candidates
127
+ */
128
+ ...IndexCandidate[]
129
+ ];
130
+ /**
131
+ * Transforms candidates for image thumbnail indexing into their indexed representation
132
+ */
133
+ declare class TemporalIndexingDivinerStateToIndexCandidateDiviner<TParams extends TemporalIndexingDivinerStateToIndexCandidateDivinerParams = TemporalIndexingDivinerStateToIndexCandidateDivinerParams> extends AbstractDiviner<TParams, Payload, ModuleState | IndexCandidate> {
134
+ static readonly configSchemas: Schema[];
135
+ static readonly defaultConfigSchema: Schema;
136
+ static readonly labels: Labels;
137
+ get payloadDivinerLimit(): number;
138
+ /**
139
+ * The required payload_schemas within BoundWitnesses to identify index candidates
140
+ */
141
+ protected get payload_schemas(): string[];
142
+ protected divineHandler(payloads?: Payload[]): Promise<TemporalStateToIndexCandidateDivinerResponse>;
143
+ /**
144
+ * Retrieves the archivist for the payloadStore
145
+ * @returns The archivist for the payloadStore or undefined if not resolvable
146
+ */
147
+ protected getArchivistForStore(): Promise<ArchivistWrapper | undefined>;
148
+ /**
149
+ * Retrieves the BoundWitness Diviner for the payloadStore
150
+ * @returns The BoundWitness Diviner for the payloadStore or undefined if not resolvable
151
+ */
152
+ protected getBoundWitnessDivinerForStore(): Promise<DivinerWrapper<BoundWitnessDiviner<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_diviner_model.DivinerInstance<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness, _xyo_network_diviner_model.DivinerModuleEventData<_xyo_network_module_model.ModuleInstance<_xyo_network_module_model.ModuleParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_module_model.ModuleConfig<object, void>>>, _xyo_network_module_model.ModuleEventData<object>>, Payload, Payload>>, BoundWitnessDivinerQueryPayload, BoundWitness>>, BoundWitnessDivinerQueryPayload, WithStorageMeta<BoundWitness>> | undefined>;
153
+ protected getPayloadsInBoundWitness(bw: BoundWitness, archivist: ArchivistInstance): Promise<IndexCandidate[] | undefined>;
154
+ }
155
+
156
+ export { TemporalIndexingDiviner, TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner, TemporalIndexingDivinerIndexCandidateToIndexDiviner, TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner, TemporalIndexingDivinerStateToIndexCandidateDiviner };
157
+ export type { IndexCandidate, TemporalStateToIndexCandidateDivinerResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-temporal-indexing-memory",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -21,52 +21,52 @@
21
21
  "type": "module",
22
22
  "exports": {
23
23
  ".": {
24
- "types": "./dist/types/index.d.ts",
24
+ "types": "./dist/neutral/index.d.ts",
25
25
  "default": "./dist/neutral/index.mjs"
26
26
  },
27
27
  "./package.json": "./package.json"
28
28
  },
29
29
  "module": "dist/neutral/index.mjs",
30
- "types": "dist/types/index.d.ts",
30
+ "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/array": "^4.12.33",
33
- "@xylabs/assert": "^4.12.33",
34
- "@xylabs/exists": "^4.12.33",
35
- "@xylabs/object": "^4.12.33",
36
- "@xyo-network/archivist-model": "^4.0.2",
37
- "@xyo-network/archivist-wrapper": "^4.0.2",
38
- "@xyo-network/boundwitness-model": "^4.0.2",
39
- "@xyo-network/boundwitness-validator": "^4.0.2",
40
- "@xyo-network/diviner-abstract": "^4.0.2",
41
- "@xyo-network/diviner-boundwitness-abstract": "^4.0.2",
42
- "@xyo-network/diviner-boundwitness-model": "^4.0.2",
43
- "@xyo-network/diviner-indexing-memory": "^4.0.2",
44
- "@xyo-network/diviner-indexing-model": "^4.0.2",
45
- "@xyo-network/diviner-jsonpath-aggregate-memory": "^4.0.2",
46
- "@xyo-network/diviner-jsonpath-model": "^4.0.2",
47
- "@xyo-network/diviner-model": "^4.0.2",
48
- "@xyo-network/diviner-payload-model": "^4.0.2",
49
- "@xyo-network/diviner-temporal-indexing-model": "^4.0.2",
50
- "@xyo-network/diviner-wrapper": "^4.0.2",
51
- "@xyo-network/module-model": "^4.0.2",
52
- "@xyo-network/payload-builder": "^4.0.2",
53
- "@xyo-network/payload-model": "^4.0.2",
54
- "@xyo-network/payload-utils": "^4.0.2",
55
- "@xyo-network/witness-timestamp": "^4.0.2"
32
+ "@xylabs/array": "^4.13.15",
33
+ "@xylabs/assert": "^4.13.15",
34
+ "@xylabs/exists": "^4.13.15",
35
+ "@xyo-network/archivist-model": "^4.1.0",
36
+ "@xyo-network/archivist-wrapper": "^4.1.0",
37
+ "@xyo-network/boundwitness-model": "^4.1.0",
38
+ "@xyo-network/boundwitness-validator": "^4.1.0",
39
+ "@xyo-network/diviner-abstract": "^4.1.0",
40
+ "@xyo-network/diviner-boundwitness-abstract": "^4.1.0",
41
+ "@xyo-network/diviner-boundwitness-model": "^4.1.0",
42
+ "@xyo-network/diviner-indexing-memory": "^4.1.0",
43
+ "@xyo-network/diviner-indexing-model": "^4.1.0",
44
+ "@xyo-network/diviner-jsonpath-aggregate-memory": "^4.1.0",
45
+ "@xyo-network/diviner-jsonpath-model": "^4.1.0",
46
+ "@xyo-network/diviner-model": "^4.1.0",
47
+ "@xyo-network/diviner-payload-model": "^4.1.0",
48
+ "@xyo-network/diviner-temporal-indexing-model": "^4.1.0",
49
+ "@xyo-network/diviner-wrapper": "^4.1.0",
50
+ "@xyo-network/module-model": "^4.1.0",
51
+ "@xyo-network/payload-builder": "^4.1.0",
52
+ "@xyo-network/payload-model": "^4.1.0",
53
+ "@xyo-network/payload-utils": "^4.1.0",
54
+ "@xyo-network/witness-timestamp": "^4.1.0"
56
55
  },
57
56
  "devDependencies": {
58
- "@xylabs/delay": "^4.12.33",
59
- "@xylabs/hex": "^4.12.33",
60
- "@xylabs/promise": "^4.12.33",
61
- "@xylabs/ts-scripts-yarn3": "^6.5.12",
62
- "@xylabs/tsconfig": "^6.5.12",
63
- "@xylabs/vitest-extended": "^4.12.33",
64
- "@xyo-network/archivist-memory": "^4.0.2",
65
- "@xyo-network/boundwitness-builder": "^4.0.2",
66
- "@xyo-network/manifest": "^4.0.2",
67
- "@xyo-network/module-factory-locator": "^4.0.2",
68
- "@xyo-network/node-memory": "^4.0.2",
69
- "@xyo-network/wallet": "^4.0.2",
57
+ "@xylabs/delay": "^4.13.15",
58
+ "@xylabs/hex": "^4.13.15",
59
+ "@xylabs/object": "^4.13.15",
60
+ "@xylabs/promise": "^4.13.15",
61
+ "@xylabs/ts-scripts-yarn3": "^7.0.0-rc.20",
62
+ "@xylabs/tsconfig": "^7.0.0-rc.20",
63
+ "@xylabs/vitest-extended": "^4.13.15",
64
+ "@xyo-network/archivist-memory": "^4.1.0",
65
+ "@xyo-network/boundwitness-builder": "^4.1.0",
66
+ "@xyo-network/manifest": "^4.1.0",
67
+ "@xyo-network/module-factory-locator": "^4.1.0",
68
+ "@xyo-network/node-memory": "^4.1.0",
69
+ "@xyo-network/wallet": "^4.1.0",
70
70
  "typescript": "^5.8.3",
71
71
  "vitest": "^3.2.4"
72
72
  },
File without changes
File without changes
File without changes
File without changes