@xyo-network/diviner-temporal-indexing-memory 6.0.3 → 6.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 (48) hide show
  1. package/README.md +3 -1
  2. package/dist/neutral/StateToIndexCandidateDiviner/Diviner.d.ts +2 -2
  3. package/dist/neutral/index.mjs.map +1 -1
  4. package/package.json +32 -35
  5. package/dist/browser/Diviner.d.ts +0 -10
  6. package/dist/browser/Diviner.d.ts.map +0 -1
  7. package/dist/browser/DivinerQueryToIndexQueryDiviner/Diviner.d.ts +0 -45
  8. package/dist/browser/DivinerQueryToIndexQueryDiviner/Diviner.d.ts.map +0 -1
  9. package/dist/browser/DivinerQueryToIndexQueryDiviner/index.d.ts +0 -2
  10. package/dist/browser/DivinerQueryToIndexQueryDiviner/index.d.ts.map +0 -1
  11. package/dist/browser/IndexCandidateToIndexDiviner/Diviner.d.ts +0 -45
  12. package/dist/browser/IndexCandidateToIndexDiviner/Diviner.d.ts.map +0 -1
  13. package/dist/browser/IndexCandidateToIndexDiviner/index.d.ts +0 -2
  14. package/dist/browser/IndexCandidateToIndexDiviner/index.d.ts.map +0 -1
  15. package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.d.ts +0 -13
  16. package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.d.ts.map +0 -1
  17. package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts +0 -2
  18. package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map +0 -1
  19. package/dist/browser/StateToIndexCandidateDiviner/Diviner.d.ts +0 -130
  20. package/dist/browser/StateToIndexCandidateDiviner/Diviner.d.ts.map +0 -1
  21. package/dist/browser/StateToIndexCandidateDiviner/index.d.ts +0 -2
  22. package/dist/browser/StateToIndexCandidateDiviner/index.d.ts.map +0 -1
  23. package/dist/browser/index.d.ts +0 -6
  24. package/dist/browser/index.d.ts.map +0 -1
  25. package/dist/browser/index.mjs +0 -315
  26. package/dist/browser/index.mjs.map +0 -7
  27. package/dist/node/Diviner.d.ts +0 -10
  28. package/dist/node/Diviner.d.ts.map +0 -1
  29. package/dist/node/DivinerQueryToIndexQueryDiviner/Diviner.d.ts +0 -45
  30. package/dist/node/DivinerQueryToIndexQueryDiviner/Diviner.d.ts.map +0 -1
  31. package/dist/node/DivinerQueryToIndexQueryDiviner/index.d.ts +0 -2
  32. package/dist/node/DivinerQueryToIndexQueryDiviner/index.d.ts.map +0 -1
  33. package/dist/node/IndexCandidateToIndexDiviner/Diviner.d.ts +0 -45
  34. package/dist/node/IndexCandidateToIndexDiviner/Diviner.d.ts.map +0 -1
  35. package/dist/node/IndexCandidateToIndexDiviner/index.d.ts +0 -2
  36. package/dist/node/IndexCandidateToIndexDiviner/index.d.ts.map +0 -1
  37. package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.d.ts +0 -13
  38. package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.d.ts.map +0 -1
  39. package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts +0 -2
  40. package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map +0 -1
  41. package/dist/node/StateToIndexCandidateDiviner/Diviner.d.ts +0 -130
  42. package/dist/node/StateToIndexCandidateDiviner/Diviner.d.ts.map +0 -1
  43. package/dist/node/StateToIndexCandidateDiviner/index.d.ts +0 -2
  44. package/dist/node/StateToIndexCandidateDiviner/index.d.ts.map +0 -1
  45. package/dist/node/index.d.ts +0 -6
  46. package/dist/node/index.d.ts.map +0 -1
  47. package/dist/node/index.mjs +0 -315
  48. package/dist/node/index.mjs.map +0 -7
package/README.md CHANGED
@@ -38,10 +38,12 @@ bun add {{name}}
38
38
 
39
39
  See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
40
 
41
+ ## Credits
41
42
 
43
+ [Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)
42
44
 
43
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
44
45
  [npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-temporal-indexing-memory.svg
45
46
  [npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-temporal-indexing-memory
46
47
  [license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-temporal-indexing-memory.svg
47
48
  [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
49
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
@@ -8,11 +8,11 @@ import type { TemporalIndexingDivinerStateToIndexCandidateDivinerParams } from '
8
8
  import { DivinerWrapper } from '@xyo-network/diviner-wrapper';
9
9
  import type { Labels, ModuleState } from '@xyo-network/module-model';
10
10
  import type { BoundWitness, Payload, Schema, WithStorageMeta } from '@xyo-network/sdk-protocol-js';
11
- import type { TimeStamp } from '@xyo-network/witness-timestamp';
11
+ import type { Timestamp } from '@xyo-network/witness-timestamp';
12
12
  /**
13
13
  * All Payload types involved in index candidates for indexing
14
14
  */
15
- export type IndexCandidate = BoundWitness | Payload | TimeStamp;
15
+ export type IndexCandidate = BoundWitness | Payload | Timestamp;
16
16
  /**
17
17
  * The response from the TemporalStateToIndexCandidateDiviner
18
18
  */
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Diviner.ts", "../../src/DivinerQueryToIndexQueryDiviner/Diviner.ts", "../../src/IndexCandidateToIndexDiviner/Diviner.ts", "../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Diviner.ts", "../../src/StateToIndexCandidateDiviner/Diviner.ts"],
4
- "sourcesContent": ["import { IndexingDiviner } from '@xyo-network/diviner-indexing-memory'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { TemporalIndexingDivinerParams } from '@xyo-network/diviner-temporal-indexing-model'\nimport { TemporalIndexingDivinerConfigSchema } from '@xyo-network/diviner-temporal-indexing-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\nexport class TemporalIndexingDiviner<\n TParams extends TemporalIndexingDivinerParams = TemporalIndexingDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends IndexingDiviner<TParams, TIn, TOut, TEventData> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TemporalIndexingDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TemporalIndexingDivinerConfigSchema\n\n protected override async startHandler() {\n await super.startHandler()\n }\n}\n", "import type { Hash } from '@xylabs/sdk-js'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { jsonPathToTransformersDictionary, reducePayloads } from '@xyo-network/diviner-jsonpath-aggregate-memory'\nimport type { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { PayloadDivinerQueryPayload } from '@xyo-network/diviner-payload-model'\nimport { PayloadDivinerQuerySchema } from '@xyo-network/diviner-payload-model'\nimport type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams } from '@xyo-network/diviner-temporal-indexing-model'\nimport {\n TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema,\n TemporalIndexingDivinerResultIndexSchema,\n} from '@xyo-network/diviner-temporal-indexing-model'\nimport type { Labels } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\nimport { isPayloadOfSchemaType, PayloadBuilder } from '@xyo-network/sdk-protocol-js'\n// TODO: Inherit from JsonPathAggregateDiviner\n/**\n * A diviner that converts diviner query to index query\n */\nexport class TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner<\n TParams extends TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams,\n> extends AbstractDiviner<TParams> {\n static override readonly configSchemas = [...super.configSchemas, TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema]\n static override readonly defaultConfigSchema = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n static override readonly labels: Labels = {\n ...super.labels,\n 'network.xyo.diviner.stage': 'divinerQueryToIndexQueryDiviner',\n }\n\n private _indexableSchemas: Schema[] | undefined\n private _payloadTransformers: SchemaToPayloadTransformersDictionary | undefined\n\n /**\n * The schema of the diviner query payloads\n */\n protected get divinerQuerySchema(): Schema {\n return this.config.divinerQuerySchema ?? PayloadDivinerQuerySchema\n }\n\n /**\n * The schema of the index query payloads\n */\n protected get indexQuerySchema(): Schema {\n return this.config.indexQuerySchema ?? PayloadDivinerQuerySchema\n }\n\n /**\n * The schema of the index payloads\n */\n protected get indexSchema(): Schema {\n return this.config.indexSchema ?? TemporalIndexingDivinerResultIndexSchema\n }\n\n /**\n * List of indexable schemas for this diviner\n */\n protected get indexableSchemas(): Schema[] {\n this._indexableSchemas ??= Object.keys(this.schemaTransforms) as Schema[]\n return this._indexableSchemas\n }\n\n /**\n * Dictionary of schemas to payload transformers for creating indexes\n * from the payloads within a Bound Witness\n */\n protected get payloadTransformers(): SchemaToPayloadTransformersDictionary {\n this._payloadTransformers ??= jsonPathToTransformersDictionary(this.schemaTransforms)\n return this._payloadTransformers\n }\n\n /**\n * The dictionary of schemas to JSON Path transform expressions for creating indexes\n * from the payloads within a Bound Witness\n */\n protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary {\n return (\n this.config?.schemaTransforms ?? {\n [this.divinerQuerySchema]: [\n {\n defaultValue: 1,\n destinationField: 'limit',\n sourcePathExpression: '$.limit',\n },\n {\n // defaultValue: 0,\n destinationField: 'cursor',\n sourcePathExpression: '$.cursor',\n },\n {\n defaultValue: 'desc',\n destinationField: 'order',\n sourcePathExpression: '$.order',\n },\n ],\n }\n )\n }\n\n protected override async divineHandler(payloads: Payload[] = []): Promise<Payload[]> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument\n const queries = payloads.filter(isPayloadOfSchemaType<PayloadDivinerQueryPayload>(this.divinerQuerySchema as any))\n if (queries.length > 0) {\n return await Promise.all(\n queries.map(async (query) => {\n const fields = await reducePayloads<PayloadDivinerQueryPayload & { $sources?: Hash[]; sources?: Hash[] }>(\n [query],\n this.payloadTransformers,\n this.indexQuerySchema,\n )\n // TODO: Make index schema configurable\n fields.schemas = [this.indexSchema]\n // TODO: Make sources not need to be deleted\n delete fields.sources\n delete fields?.$sources\n // TODO: Add support for additional filters\n return new PayloadBuilder<Payload>({ schema: this.indexQuerySchema }).fields(fields).build()\n }),\n )\n }\n return []\n }\n}\n", "import type { Hash } from '@xylabs/sdk-js'\nimport {\n assertEx, containsAll, exists,\n} from '@xylabs/sdk-js'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { jsonPathToTransformersDictionary } from '@xyo-network/diviner-jsonpath-aggregate-memory'\nimport type { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type {\n TemporalIndexingDivinerIndexCandidateToIndexDivinerParams,\n TemporalIndexingDivinerResultIndex,\n} from '@xyo-network/diviner-temporal-indexing-model'\nimport {\n TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema,\n TemporalIndexingDivinerResultIndexSchema,\n} from '@xyo-network/diviner-temporal-indexing-model'\nimport type { Labels } from '@xyo-network/module-model'\nimport type {\n BoundWitness, Payload, Schema,\n} from '@xyo-network/sdk-protocol-js'\nimport {\n intraBoundwitnessSchemaCombinations, isAnyPayload, isBoundWitness, PayloadBuilder,\n} from '@xyo-network/sdk-protocol-js'\n\ntype IndexableHashes = [Hash, ...Hash[]]\n\nconst moduleName = 'TemporalIndexingDivinerIndexCandidateToIndexDiviner'\n\n/**\n * Diviner which transforms index candidates to indexes using JSON Path to map\n * source properties in the supplied payloads to destination fields in the\n * resultant index\n */\nexport class TemporalIndexingDivinerIndexCandidateToIndexDiviner<\n TParams extends TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = TemporalIndexingDivinerIndexCandidateToIndexDivinerParams,\n> extends AbstractDiviner<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n static override readonly labels: Labels = {\n ...super.labels,\n 'network.xyo.diviner.stage': 'indexCandidateToIndexDiviner',\n }\n\n private _indexableSchemas: Schema[] | undefined\n private _payloadTransformers: SchemaToPayloadTransformersDictionary | undefined\n\n /**\n * List of indexable schemas for this diviner\n */\n protected get indexableSchemas(): Schema[] {\n this._indexableSchemas ??= Object.keys(this.schemaTransforms) as Schema[]\n return this._indexableSchemas\n }\n\n /**\n * Dictionary of schemas to payload transformers for creating indexes\n * from the payloads within a Bound Witness\n */\n protected get payloadTransformers(): SchemaToPayloadTransformersDictionary {\n this._payloadTransformers ??= jsonPathToTransformersDictionary(this.schemaTransforms)\n return this._payloadTransformers\n }\n\n /**\n * The dictionary of schemas to JSON Path transform expressions for creating indexes\n * from the payloads within a Bound Witness\n */\n protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary {\n return assertEx(this.config?.schemaTransforms, () => `${moduleName}: Missing config.schemaTransforms section`)\n }\n\n protected override async divineHandler(payloads: Payload[] = []): Promise<Payload[]> {\n // If the Bound Witness does not contain all the required schemas do not index it\n const indexableBoundWitnesses = payloads\n .filter(isBoundWitness)\n .filter(bw => containsAll(bw.payload_schemas, this.indexableSchemas))\n // If the Payload is not one of the indexable schemas do not index it\n const indexablePayloads = payloads.filter(p => this.isIndexablePayload(p))\n // If there is nothing to index, return an empty array\n if (indexableBoundWitnesses.length === 0 || indexablePayloads.length === 0) return []\n // Hash all the indexable data once\n const [bwDictionary, payloadDictionary] = await Promise.all([\n PayloadBuilder.toHashMap(indexableBoundWitnesses),\n PayloadBuilder.toAllHashMap(indexablePayloads),\n ])\n\n // Initialize the array for validIndexableTuples outside of the loop\n const validIndexableTuples: IndexableHashes[] = []\n\n // Iterate over each entry in bwDictionary\n for (const [bwHash, bw] of Object.entries(bwDictionary) as [Hash, BoundWitness][]) {\n // Find the combinations of payloads that satisfy the required schemas\n const combinations = intraBoundwitnessSchemaCombinations(bw, this.indexableSchemas)\n\n // Iterate over each combination\n for (const combination of combinations) {\n const indexablePayloads = combination.map(hash => payloadDictionary[hash]).filter(exists)\n\n // If we found the right amount of indexable payloads (of the correct schema as checked\n // above) in this BW, then index it\n if (indexablePayloads.length === this.indexableSchemas.length) {\n validIndexableTuples.push([bwHash, ...combination])\n }\n }\n }\n\n // Create the indexes from the tuples\n const indexes = validIndexableTuples.map<TemporalIndexingDivinerResultIndex>(([bwHash, ...sourcePayloadHashes]) => {\n const sourcePayloads = sourcePayloadHashes.map(hash => payloadDictionary[hash])\n // Use the payload transformers to convert the fields from the source payloads to the destination fields\n const indexFields = sourcePayloads.flatMap((payload) => {\n // Find the transformers for this payload\n const transformers = this.payloadTransformers[payload.schema]\n // If transformers exist, apply them to the payload otherwise return an empty array\n return transformers ? transformers.map(transform => transform(payload)) : []\n })\n // Include all the sources for reference\n const $sources: Hash[] = [bwHash, ...sourcePayloadHashes]\n // Build and return the index\n return new PayloadBuilder<TemporalIndexingDivinerResultIndex>({ schema: TemporalIndexingDivinerResultIndexSchema })\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n .fields(Object.assign({}, ...indexFields))\n .meta({ $sources })\n .build()\n })\n return indexes.flat()\n }\n\n /**\n * Identifies if a payload is one that is indexed by this diviner\n * @param x The candidate payload\n * @returns True if the payload is one indexed by this diviner, false otherwise\n */\n protected isIndexablePayload = (x: unknown) => {\n return isAnyPayload(x) && this.indexableSchemas.includes(x?.schema)\n }\n\n /**\n * Identifies if a schema is one that is indexed by this diviner\n * @param schema The candidate schema\n * @returns True if this schema is one indexed by this diviner, false otherwise\n */\n protected isIndexableSchema = (schema?: Schema | null) => {\n return typeof schema === 'string' ? this.indexableSchemas.includes(schema) : false\n }\n}\n", "import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { isPayloadDivinerQueryPayload } from '@xyo-network/diviner-payload-model'\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema } from '@xyo-network/diviner-temporal-indexing-model'\nimport type { Labels } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\n/**\n * Transforms an ImageThumbnailIndex response into an ImageThumbnailResponse response\n */\nexport class TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner extends AbstractDiviner {\n static override readonly configSchemas: Schema[] = [\n ...super.configSchemas,\n TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema,\n ]\n\n static override readonly defaultConfigSchema: Schema = TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n static override readonly labels: Labels = {\n ...super.labels,\n 'network.xyo.diviner.stage': 'indexQueryResponseToDivinerQueryResponseDiviner',\n }\n\n protected override async divineHandler(payloads: Payload[] = []): Promise<Payload[]> {\n // We're not doing anything with the query payloads but some diviners\n // might want to use this to transform from the query to the response (for example\n // if we use a plaintext value in the query to generate a hash key in the index)\n // const queries = payloads.filter(isPayloadDivinerQueryPayload)\n const responses = payloads.filter(p => !isPayloadDivinerQueryPayload(p))\n return await Promise.resolve(responses)\n }\n}\n", "import { assertEx, exists } from '@xylabs/sdk-js'\nimport type { ArchivistInstance, ArchivistNextOptions } from '@xyo-network/archivist-model'\nimport { ArchivistWrapper } from '@xyo-network/archivist-wrapper'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { BoundWitnessDiviner } from '@xyo-network/diviner-boundwitness/abstract'\nimport type { BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload } from '@xyo-network/diviner-boundwitness/model'\nimport type { IndexingDivinerState } from '@xyo-network/diviner-indexing-model'\nimport type { TemporalIndexingDivinerStateToIndexCandidateDivinerParams } from '@xyo-network/diviner-temporal-indexing-model'\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema } from '@xyo-network/diviner-temporal-indexing-model'\nimport { DivinerWrapper } from '@xyo-network/diviner-wrapper'\nimport type {\n Labels, ModuleIdentifier, ModuleState,\n} from '@xyo-network/module-model'\nimport { isModuleState, ModuleStateSchema } from '@xyo-network/module-model'\nimport type {\n BoundWitness,\n Payload, Schema,\n WithStorageMeta,\n} from '@xyo-network/sdk-protocol-js'\nimport {\n intraBoundwitnessSchemaCombinations, isBoundWitness, payloadSchemasContainsAll, SequenceConstants,\n} from '@xyo-network/sdk-protocol-js'\nimport type { TimeStamp } from '@xyo-network/witness-timestamp'\nimport { TimestampSchema } from '@xyo-network/witness-timestamp'\n\n/**\n * All Payload types involved in index candidates for indexing\n */\nexport type IndexCandidate = BoundWitness | Payload | TimeStamp\n\n/**\n * The response from the TemporalStateToIndexCandidateDiviner\n */\nexport type TemporalStateToIndexCandidateDivinerResponse = [\n /**\n * The next state of the diviner\n */\n nextState: ModuleState<IndexingDivinerState>,\n /**\n * The index candidates\n */\n ...IndexCandidate[],\n]\n\n/**\n * The default order to search Bound Witnesses to identify index candidates\n */\nconst order = 'asc'\n\n/**\n * The name of the module (for logging purposes)\n */\nconst moduleName = 'TemporalIndexingDivinerStateToIndexCandidateDiviner'\n\n/**\n * Transforms candidates for image thumbnail indexing into their indexed representation\n */\nexport class TemporalIndexingDivinerStateToIndexCandidateDiviner<\n TParams extends TemporalIndexingDivinerStateToIndexCandidateDivinerParams = TemporalIndexingDivinerStateToIndexCandidateDivinerParams,\n> extends AbstractDiviner<TParams, Payload, ModuleState | IndexCandidate> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n static override readonly labels: Labels = {\n ...super.labels,\n 'network.xyo.diviner.stage': 'stateToIndexCandidateDiviner',\n }\n\n get payloadDivinerLimit() {\n return this.config.payloadDivinerLimit ?? 1000\n }\n\n /**\n * The required payload_schemas within BoundWitnesses to identify index candidates\n */\n protected get payload_schemas(): Schema[] {\n const schemas = this.config.filter?.payload_schemas\n return [TimestampSchema, ...(schemas ?? [])]\n }\n\n protected override async divineHandler(payloads: Payload[] = []): Promise<TemporalStateToIndexCandidateDivinerResponse> {\n // Retrieve the last state from what was passed in\n const lastState = payloads.find(isModuleState<IndexingDivinerState>)\n // If there is no last state, start from the beginning\n ?? { schema: ModuleStateSchema, state: { cursor: SequenceConstants.minLocalSequence } }\n\n // Get the last cursor\n const cursor = lastState?.state?.cursor\n // Get the archivist for the store\n const sourceArchivist = await this.getArchivistForStore()\n if (!sourceArchivist) return [lastState]\n\n // Get the next batch of results\n const nextOffset: ArchivistNextOptions = { limit: this.payloadDivinerLimit, order }\n // Only use the cursor if it's a valid offset\n if (cursor !== SequenceConstants.minLocalSequence) nextOffset.cursor = cursor\n // Get next batch of results starting from the offset\n const next = await sourceArchivist.next(nextOffset)\n if (next.length === 0) return [lastState]\n\n const batch = next.filter(x => isBoundWitness(x))\n .filter(exists)\n .filter(bw => payloadSchemasContainsAll(bw, this.payload_schemas))\n // Get source data\n const indexCandidates: IndexCandidate[] = (await Promise.all(batch.map(bw => this.getPayloadsInBoundWitness(bw, sourceArchivist))))\n .filter(exists)\n .flat()\n const nextCursor = assertEx(next.at(-1)?._sequence, () => `${moduleName}: Expected next to have a sequence`)\n const nextState: ModuleState<IndexingDivinerState> = { schema: ModuleStateSchema, state: { ...lastState.state, cursor: nextCursor } }\n return [nextState, ...indexCandidates]\n }\n\n /**\n * Retrieves the archivist for the payloadStore\n * @returns The archivist for the payloadStore or undefined if not resolvable\n */\n protected async getArchivistForStore(): Promise<ArchivistWrapper | undefined> {\n // It should be defined, so we'll error if it's not\n const name: ModuleIdentifier = assertEx(\n this.config?.payloadStore?.archivist,\n () => `${moduleName}: Config for payloadStore.archivist not specified`,\n )\n // It might not be resolvable (yet), so we'll return undefined if it's not\n const mod = await this.resolve(name)\n if (!mod) return undefined\n // Return the wrapped archivist\n return ArchivistWrapper.wrap(mod, this.account)\n }\n\n /**\n * Retrieves the BoundWitness Diviner for the payloadStore\n * @returns The BoundWitness Diviner for the payloadStore or undefined if not resolvable\n */\n protected async getBoundWitnessDivinerForStore() {\n // It should be defined, so we'll error if it's not\n const name: ModuleIdentifier = assertEx(\n this.config?.payloadStore?.boundWitnessDiviner,\n () => `${moduleName}: Config for payloadStore.boundWitnessDiviner not specified`,\n )\n // It might not be resolvable (yet), so we'll return undefined if it's not\n const mod = await this.resolve(name)\n if (!mod) return\n // Return the wrapped diviner\n return DivinerWrapper.wrap<\n DivinerWrapper<\n BoundWitnessDiviner<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness>,\n BoundWitnessDivinerQueryPayload,\n WithStorageMeta<BoundWitness>\n >\n >(mod, this.account)\n }\n\n protected async getPayloadsInBoundWitness(bw: BoundWitness, archivist: ArchivistInstance): Promise<IndexCandidate[] | undefined> {\n const combinations = intraBoundwitnessSchemaCombinations(bw, this.payload_schemas).flat()\n if (combinations.length === 0) return undefined\n const hashes = new Set(combinations)\n const indexCandidates = await archivist.get([...hashes])\n return [bw, ...indexCandidates]\n }\n}\n"],
4
+ "sourcesContent": ["import { IndexingDiviner } from '@xyo-network/diviner-indexing-memory'\nimport type { DivinerInstance, DivinerModuleEventData } from '@xyo-network/diviner-model'\nimport type { TemporalIndexingDivinerParams } from '@xyo-network/diviner-temporal-indexing-model'\nimport { TemporalIndexingDivinerConfigSchema } from '@xyo-network/diviner-temporal-indexing-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\nexport class TemporalIndexingDiviner<\n TParams extends TemporalIndexingDivinerParams = TemporalIndexingDivinerParams,\n TIn extends Payload = Payload,\n TOut extends Payload = Payload,\n TEventData extends DivinerModuleEventData<DivinerInstance<TParams, TIn, TOut>, TIn, TOut> = DivinerModuleEventData<\n DivinerInstance<TParams, TIn, TOut>,\n TIn,\n TOut\n >,\n> extends IndexingDiviner<TParams, TIn, TOut, TEventData> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TemporalIndexingDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TemporalIndexingDivinerConfigSchema\n\n protected override async startHandler() {\n await super.startHandler()\n }\n}\n", "import type { Hash } from '@xylabs/sdk-js'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { jsonPathToTransformersDictionary, reducePayloads } from '@xyo-network/diviner-jsonpath-aggregate-memory'\nimport type { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { PayloadDivinerQueryPayload } from '@xyo-network/diviner-payload-model'\nimport { PayloadDivinerQuerySchema } from '@xyo-network/diviner-payload-model'\nimport type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams } from '@xyo-network/diviner-temporal-indexing-model'\nimport {\n TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema,\n TemporalIndexingDivinerResultIndexSchema,\n} from '@xyo-network/diviner-temporal-indexing-model'\nimport type { Labels } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\nimport { isPayloadOfSchemaType, PayloadBuilder } from '@xyo-network/sdk-protocol-js'\n// TODO: Inherit from JsonPathAggregateDiviner\n/**\n * A diviner that converts diviner query to index query\n */\nexport class TemporalIndexingDivinerDivinerQueryToIndexQueryDiviner<\n TParams extends TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams,\n> extends AbstractDiviner<TParams> {\n static override readonly configSchemas = [...super.configSchemas, TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema]\n static override readonly defaultConfigSchema = TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n static override readonly labels: Labels = {\n ...super.labels,\n 'network.xyo.diviner.stage': 'divinerQueryToIndexQueryDiviner',\n }\n\n private _indexableSchemas: Schema[] | undefined\n private _payloadTransformers: SchemaToPayloadTransformersDictionary | undefined\n\n /**\n * The schema of the diviner query payloads\n */\n protected get divinerQuerySchema(): Schema {\n return this.config.divinerQuerySchema ?? PayloadDivinerQuerySchema\n }\n\n /**\n * The schema of the index query payloads\n */\n protected get indexQuerySchema(): Schema {\n return this.config.indexQuerySchema ?? PayloadDivinerQuerySchema\n }\n\n /**\n * The schema of the index payloads\n */\n protected get indexSchema(): Schema {\n return this.config.indexSchema ?? TemporalIndexingDivinerResultIndexSchema\n }\n\n /**\n * List of indexable schemas for this diviner\n */\n protected get indexableSchemas(): Schema[] {\n this._indexableSchemas ??= Object.keys(this.schemaTransforms) as Schema[]\n return this._indexableSchemas\n }\n\n /**\n * Dictionary of schemas to payload transformers for creating indexes\n * from the payloads within a Bound Witness\n */\n protected get payloadTransformers(): SchemaToPayloadTransformersDictionary {\n this._payloadTransformers ??= jsonPathToTransformersDictionary(this.schemaTransforms)\n return this._payloadTransformers\n }\n\n /**\n * The dictionary of schemas to JSON Path transform expressions for creating indexes\n * from the payloads within a Bound Witness\n */\n protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary {\n return (\n this.config?.schemaTransforms ?? {\n [this.divinerQuerySchema]: [\n {\n defaultValue: 1,\n destinationField: 'limit',\n sourcePathExpression: '$.limit',\n },\n {\n // defaultValue: 0,\n destinationField: 'cursor',\n sourcePathExpression: '$.cursor',\n },\n {\n defaultValue: 'desc',\n destinationField: 'order',\n sourcePathExpression: '$.order',\n },\n ],\n }\n )\n }\n\n protected override async divineHandler(payloads: Payload[] = []): Promise<Payload[]> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument\n const queries = payloads.filter(isPayloadOfSchemaType<PayloadDivinerQueryPayload>(this.divinerQuerySchema as any))\n if (queries.length > 0) {\n return await Promise.all(\n queries.map(async (query) => {\n const fields = await reducePayloads<PayloadDivinerQueryPayload & { $sources?: Hash[]; sources?: Hash[] }>(\n [query],\n this.payloadTransformers,\n this.indexQuerySchema,\n )\n // TODO: Make index schema configurable\n fields.schemas = [this.indexSchema]\n // TODO: Make sources not need to be deleted\n delete fields.sources\n delete fields?.$sources\n // TODO: Add support for additional filters\n return new PayloadBuilder<Payload>({ schema: this.indexQuerySchema }).fields(fields).build()\n }),\n )\n }\n return []\n }\n}\n", "import type { Hash } from '@xylabs/sdk-js'\nimport {\n assertEx, containsAll, exists,\n} from '@xylabs/sdk-js'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { jsonPathToTransformersDictionary } from '@xyo-network/diviner-jsonpath-aggregate-memory'\nimport type { SchemaToJsonPathTransformExpressionsDictionary, SchemaToPayloadTransformersDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type {\n TemporalIndexingDivinerIndexCandidateToIndexDivinerParams,\n TemporalIndexingDivinerResultIndex,\n} from '@xyo-network/diviner-temporal-indexing-model'\nimport {\n TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema,\n TemporalIndexingDivinerResultIndexSchema,\n} from '@xyo-network/diviner-temporal-indexing-model'\nimport type { Labels } from '@xyo-network/module-model'\nimport type {\n BoundWitness, Payload, Schema,\n} from '@xyo-network/sdk-protocol-js'\nimport {\n intraBoundwitnessSchemaCombinations, isAnyPayload, isBoundWitness, PayloadBuilder,\n} from '@xyo-network/sdk-protocol-js'\n\ntype IndexableHashes = [Hash, ...Hash[]]\n\nconst moduleName = 'TemporalIndexingDivinerIndexCandidateToIndexDiviner'\n\n/**\n * Diviner which transforms index candidates to indexes using JSON Path to map\n * source properties in the supplied payloads to destination fields in the\n * resultant index\n */\nexport class TemporalIndexingDivinerIndexCandidateToIndexDiviner<\n TParams extends TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = TemporalIndexingDivinerIndexCandidateToIndexDivinerParams,\n> extends AbstractDiviner<TParams> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n static override readonly labels: Labels = {\n ...super.labels,\n 'network.xyo.diviner.stage': 'indexCandidateToIndexDiviner',\n }\n\n private _indexableSchemas: Schema[] | undefined\n private _payloadTransformers: SchemaToPayloadTransformersDictionary | undefined\n\n /**\n * List of indexable schemas for this diviner\n */\n protected get indexableSchemas(): Schema[] {\n this._indexableSchemas ??= Object.keys(this.schemaTransforms) as Schema[]\n return this._indexableSchemas\n }\n\n /**\n * Dictionary of schemas to payload transformers for creating indexes\n * from the payloads within a Bound Witness\n */\n protected get payloadTransformers(): SchemaToPayloadTransformersDictionary {\n this._payloadTransformers ??= jsonPathToTransformersDictionary(this.schemaTransforms)\n return this._payloadTransformers\n }\n\n /**\n * The dictionary of schemas to JSON Path transform expressions for creating indexes\n * from the payloads within a Bound Witness\n */\n protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary {\n return assertEx(this.config?.schemaTransforms, () => `${moduleName}: Missing config.schemaTransforms section`)\n }\n\n protected override async divineHandler(payloads: Payload[] = []): Promise<Payload[]> {\n // If the Bound Witness does not contain all the required schemas do not index it\n const indexableBoundWitnesses = payloads\n .filter(isBoundWitness)\n .filter(bw => containsAll(bw.payload_schemas, this.indexableSchemas))\n // If the Payload is not one of the indexable schemas do not index it\n const indexablePayloads = payloads.filter(p => this.isIndexablePayload(p))\n // If there is nothing to index, return an empty array\n if (indexableBoundWitnesses.length === 0 || indexablePayloads.length === 0) return []\n // Hash all the indexable data once\n const [bwDictionary, payloadDictionary] = await Promise.all([\n PayloadBuilder.toHashMap(indexableBoundWitnesses),\n PayloadBuilder.toAllHashMap(indexablePayloads),\n ])\n\n // Initialize the array for validIndexableTuples outside of the loop\n const validIndexableTuples: IndexableHashes[] = []\n\n // Iterate over each entry in bwDictionary\n for (const [bwHash, bw] of Object.entries(bwDictionary) as [Hash, BoundWitness][]) {\n // Find the combinations of payloads that satisfy the required schemas\n const combinations = intraBoundwitnessSchemaCombinations(bw, this.indexableSchemas)\n\n // Iterate over each combination\n for (const combination of combinations) {\n const indexablePayloads = combination.map(hash => payloadDictionary[hash]).filter(exists)\n\n // If we found the right amount of indexable payloads (of the correct schema as checked\n // above) in this BW, then index it\n if (indexablePayloads.length === this.indexableSchemas.length) {\n validIndexableTuples.push([bwHash, ...combination])\n }\n }\n }\n\n // Create the indexes from the tuples\n const indexes = validIndexableTuples.map<TemporalIndexingDivinerResultIndex>(([bwHash, ...sourcePayloadHashes]) => {\n const sourcePayloads = sourcePayloadHashes.map(hash => payloadDictionary[hash])\n // Use the payload transformers to convert the fields from the source payloads to the destination fields\n const indexFields = sourcePayloads.flatMap((payload) => {\n // Find the transformers for this payload\n const transformers = this.payloadTransformers[payload.schema]\n // If transformers exist, apply them to the payload otherwise return an empty array\n return transformers ? transformers.map(transform => transform(payload)) : []\n })\n // Include all the sources for reference\n const $sources: Hash[] = [bwHash, ...sourcePayloadHashes]\n // Build and return the index\n return new PayloadBuilder<TemporalIndexingDivinerResultIndex>({ schema: TemporalIndexingDivinerResultIndexSchema })\n // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n .fields(Object.assign({}, ...indexFields))\n .meta({ $sources })\n .build()\n })\n return indexes.flat()\n }\n\n /**\n * Identifies if a payload is one that is indexed by this diviner\n * @param x The candidate payload\n * @returns True if the payload is one indexed by this diviner, false otherwise\n */\n protected isIndexablePayload = (x: unknown) => {\n return isAnyPayload(x) && this.indexableSchemas.includes(x?.schema)\n }\n\n /**\n * Identifies if a schema is one that is indexed by this diviner\n * @param schema The candidate schema\n * @returns True if this schema is one indexed by this diviner, false otherwise\n */\n protected isIndexableSchema = (schema?: Schema | null) => {\n return typeof schema === 'string' ? this.indexableSchemas.includes(schema) : false\n }\n}\n", "import { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport { isPayloadDivinerQueryPayload } from '@xyo-network/diviner-payload-model'\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema } from '@xyo-network/diviner-temporal-indexing-model'\nimport type { Labels } from '@xyo-network/module-model'\nimport type { Payload, Schema } from '@xyo-network/sdk-protocol-js'\n\n/**\n * Transforms an ImageThumbnailIndex response into an ImageThumbnailResponse response\n */\nexport class TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDiviner extends AbstractDiviner {\n static override readonly configSchemas: Schema[] = [\n ...super.configSchemas,\n TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema,\n ]\n\n static override readonly defaultConfigSchema: Schema = TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n static override readonly labels: Labels = {\n ...super.labels,\n 'network.xyo.diviner.stage': 'indexQueryResponseToDivinerQueryResponseDiviner',\n }\n\n protected override async divineHandler(payloads: Payload[] = []): Promise<Payload[]> {\n // We're not doing anything with the query payloads but some diviners\n // might want to use this to transform from the query to the response (for example\n // if we use a plaintext value in the query to generate a hash key in the index)\n // const queries = payloads.filter(isPayloadDivinerQueryPayload)\n const responses = payloads.filter(p => !isPayloadDivinerQueryPayload(p))\n return await Promise.resolve(responses)\n }\n}\n", "import { assertEx, exists } from '@xylabs/sdk-js'\nimport type { ArchivistInstance, ArchivistNextOptions } from '@xyo-network/archivist-model'\nimport { ArchivistWrapper } from '@xyo-network/archivist-wrapper'\nimport { AbstractDiviner } from '@xyo-network/diviner-abstract'\nimport type { BoundWitnessDiviner } from '@xyo-network/diviner-boundwitness/abstract'\nimport type { BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload } from '@xyo-network/diviner-boundwitness/model'\nimport type { IndexingDivinerState } from '@xyo-network/diviner-indexing-model'\nimport type { TemporalIndexingDivinerStateToIndexCandidateDivinerParams } from '@xyo-network/diviner-temporal-indexing-model'\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema } from '@xyo-network/diviner-temporal-indexing-model'\nimport { DivinerWrapper } from '@xyo-network/diviner-wrapper'\nimport type {\n Labels, ModuleIdentifier, ModuleState,\n} from '@xyo-network/module-model'\nimport { isModuleState, ModuleStateSchema } from '@xyo-network/module-model'\nimport type {\n BoundWitness,\n Payload, Schema,\n WithStorageMeta,\n} from '@xyo-network/sdk-protocol-js'\nimport {\n intraBoundwitnessSchemaCombinations, isBoundWitness, payloadSchemasContainsAll, SequenceConstants,\n} from '@xyo-network/sdk-protocol-js'\nimport type { Timestamp } from '@xyo-network/witness-timestamp'\nimport { TimestampSchema } from '@xyo-network/witness-timestamp'\n\n/**\n * All Payload types involved in index candidates for indexing\n */\nexport type IndexCandidate = BoundWitness | Payload | Timestamp\n\n/**\n * The response from the TemporalStateToIndexCandidateDiviner\n */\nexport type TemporalStateToIndexCandidateDivinerResponse = [\n /**\n * The next state of the diviner\n */\n nextState: ModuleState<IndexingDivinerState>,\n /**\n * The index candidates\n */\n ...IndexCandidate[],\n]\n\n/**\n * The default order to search Bound Witnesses to identify index candidates\n */\nconst order = 'asc'\n\n/**\n * The name of the module (for logging purposes)\n */\nconst moduleName = 'TemporalIndexingDivinerStateToIndexCandidateDiviner'\n\n/**\n * Transforms candidates for image thumbnail indexing into their indexed representation\n */\nexport class TemporalIndexingDivinerStateToIndexCandidateDiviner<\n TParams extends TemporalIndexingDivinerStateToIndexCandidateDivinerParams = TemporalIndexingDivinerStateToIndexCandidateDivinerParams,\n> extends AbstractDiviner<TParams, Payload, ModuleState | IndexCandidate> {\n static override readonly configSchemas: Schema[] = [...super.configSchemas, TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema]\n static override readonly defaultConfigSchema: Schema = TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n static override readonly labels: Labels = {\n ...super.labels,\n 'network.xyo.diviner.stage': 'stateToIndexCandidateDiviner',\n }\n\n get payloadDivinerLimit() {\n return this.config.payloadDivinerLimit ?? 1000\n }\n\n /**\n * The required payload_schemas within BoundWitnesses to identify index candidates\n */\n protected get payload_schemas(): Schema[] {\n const schemas = this.config.filter?.payload_schemas\n return [TimestampSchema, ...(schemas ?? [])]\n }\n\n protected override async divineHandler(payloads: Payload[] = []): Promise<TemporalStateToIndexCandidateDivinerResponse> {\n // Retrieve the last state from what was passed in\n const lastState = payloads.find(isModuleState<IndexingDivinerState>)\n // If there is no last state, start from the beginning\n ?? { schema: ModuleStateSchema, state: { cursor: SequenceConstants.minLocalSequence } }\n\n // Get the last cursor\n const cursor = lastState?.state?.cursor\n // Get the archivist for the store\n const sourceArchivist = await this.getArchivistForStore()\n if (!sourceArchivist) return [lastState]\n\n // Get the next batch of results\n const nextOffset: ArchivistNextOptions = { limit: this.payloadDivinerLimit, order }\n // Only use the cursor if it's a valid offset\n if (cursor !== SequenceConstants.minLocalSequence) nextOffset.cursor = cursor\n // Get next batch of results starting from the offset\n const next = await sourceArchivist.next(nextOffset)\n if (next.length === 0) return [lastState]\n\n const batch = next.filter(x => isBoundWitness(x))\n .filter(exists)\n .filter(bw => payloadSchemasContainsAll(bw, this.payload_schemas))\n // Get source data\n const indexCandidates: IndexCandidate[] = (await Promise.all(batch.map(bw => this.getPayloadsInBoundWitness(bw, sourceArchivist))))\n .filter(exists)\n .flat()\n const nextCursor = assertEx(next.at(-1)?._sequence, () => `${moduleName}: Expected next to have a sequence`)\n const nextState: ModuleState<IndexingDivinerState> = { schema: ModuleStateSchema, state: { ...lastState.state, cursor: nextCursor } }\n return [nextState, ...indexCandidates]\n }\n\n /**\n * Retrieves the archivist for the payloadStore\n * @returns The archivist for the payloadStore or undefined if not resolvable\n */\n protected async getArchivistForStore(): Promise<ArchivistWrapper | undefined> {\n // It should be defined, so we'll error if it's not\n const name: ModuleIdentifier = assertEx(\n this.config?.payloadStore?.archivist,\n () => `${moduleName}: Config for payloadStore.archivist not specified`,\n )\n // It might not be resolvable (yet), so we'll return undefined if it's not\n const mod = await this.resolve(name)\n if (!mod) return undefined\n // Return the wrapped archivist\n return ArchivistWrapper.wrap(mod, this.account)\n }\n\n /**\n * Retrieves the BoundWitness Diviner for the payloadStore\n * @returns The BoundWitness Diviner for the payloadStore or undefined if not resolvable\n */\n protected async getBoundWitnessDivinerForStore() {\n // It should be defined, so we'll error if it's not\n const name: ModuleIdentifier = assertEx(\n this.config?.payloadStore?.boundWitnessDiviner,\n () => `${moduleName}: Config for payloadStore.boundWitnessDiviner not specified`,\n )\n // It might not be resolvable (yet), so we'll return undefined if it's not\n const mod = await this.resolve(name)\n if (!mod) return\n // Return the wrapped diviner\n return DivinerWrapper.wrap<\n DivinerWrapper<\n BoundWitnessDiviner<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, BoundWitness>,\n BoundWitnessDivinerQueryPayload,\n WithStorageMeta<BoundWitness>\n >\n >(mod, this.account)\n }\n\n protected async getPayloadsInBoundWitness(bw: BoundWitness, archivist: ArchivistInstance): Promise<IndexCandidate[] | undefined> {\n const combinations = intraBoundwitnessSchemaCombinations(bw, this.payload_schemas).flat()\n if (combinations.length === 0) return undefined\n const hashes = new Set(combinations)\n const indexCandidates = await archivist.get([...hashes])\n return [bw, ...indexCandidates]\n }\n}\n"],
5
5
  "mappings": ";AAAA,SAAS,uBAAuB;AAGhC,SAAS,2CAA2C;AAG7C,IAAM,0BAAN,cASG,gBAAgD;AAAA,EACxD,OAAyB,gBAA0B,CAAC,GAAG,MAAM,eAAe,mCAAmC;AAAA,EAC/G,OAAyB,sBAA8B;AAAA,EAEvD,MAAyB,eAAe;AACtC,UAAM,MAAM,aAAa;AAAA,EAC3B;AACF;;;ACrBA,SAAS,uBAAuB;AAChC,SAAS,kCAAkC,sBAAsB;AAGjE,SAAS,iCAAiC;AAE1C;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAGP,SAAS,uBAAuB,sBAAsB;AAK/C,IAAM,yDAAN,cAEG,gBAAyB;AAAA,EACjC,OAAyB,gBAAgB,CAAC,GAAG,MAAM,eAAe,kEAAkE;AAAA,E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AW,EAAE;AACpI,WAAO,CAAC,WAAW,GAAG,eAAe;AAAA,EACvC;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAgB,uBAA8D;AAE5E,UAAM,OAAyBL;AAAA,MAC7B,KAAK,QAAQ,cAAc;AAAA,MAC3B,MAAM,GAAGK,WAAU;AAAA,IACrB;AAEA,UAAM,MAAM,MAAM,KAAK,QAAQ,IAAI;AACnC,QAAI,CAAC,IAAK,QAAO;AAEjB,WAAO,iBAAiB,KAAK,KAAK,KAAK,OAAO;AAAA,EAChD;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,MAAgB,iCAAiC;AAE/C,UAAM,OAAyBL;AAAA,MAC7B,KAAK,QAAQ,cAAc;AAAA,MAC3B,MAAM,GAAGK,WAAU;AAAA,IACrB;AAEA,UAAM,MAAM,MAAM,KAAK,QAAQ,IAAI;AACnC,QAAI,CAAC,IAAK;AAEV,WAAO,eAAe,KAMpB,KAAK,KAAK,OAAO;AAAA,EACrB;AAAA,EAEA,MAAgB,0BAA0B,IAAkB,WAAqE;AAC/H,UAAM,eAAeF,qCAAoC,IAAI,KAAK,eAAe,EAAE,KAAK;AACxF,QAAI,aAAa,WAAW,EAAG,QAAO;AACtC,UAAM,SAAS,IAAI,IAAI,YAAY;AACnC,UAAM,kBAAkB,MAAM,UAAU,IAAI,CAAC,GAAG,MAAM,CAAC;AACvD,WAAO,CAAC,IAAI,GAAG,eAAe;AAAA,EAChC;AACF;",
6
6
  "names": ["AbstractDiviner", "jsonPathToTransformersDictionary", "TemporalIndexingDivinerResultIndexSchema", "PayloadBuilder", "indexablePayloads", "AbstractDiviner", "assertEx", "exists", "AbstractDiviner", "intraBoundwitnessSchemaCombinations", "isBoundWitness", "moduleName"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-temporal-indexing-memory",
3
- "version": "6.0.3",
3
+ "version": "6.1.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,20 +34,20 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/archivist-model": "~6.0.3",
38
- "@xyo-network/diviner-abstract": "~6.0.3",
39
- "@xyo-network/diviner-indexing-memory": "~6.0.3",
40
- "@xyo-network/diviner-indexing-model": "~6.0.3",
41
- "@xyo-network/diviner-boundwitness": "~6.0.3",
42
- "@xyo-network/diviner-model": "~6.0.3",
43
- "@xyo-network/diviner-jsonpath-model": "~6.0.3",
44
- "@xyo-network/diviner-jsonpath-aggregate-memory": "~6.0.3",
45
- "@xyo-network/diviner-payload-model": "~6.0.3",
46
- "@xyo-network/diviner-temporal-indexing-model": "~6.0.3",
47
- "@xyo-network/diviner-wrapper": "~6.0.3",
48
- "@xyo-network/archivist-wrapper": "~6.0.3",
49
- "@xyo-network/module-model": "~6.0.3",
50
- "@xyo-network/witness-timestamp": "~6.0.3"
37
+ "@xyo-network/archivist-model": "~6.1.0",
38
+ "@xyo-network/diviner-boundwitness": "~6.1.0",
39
+ "@xyo-network/archivist-wrapper": "~6.1.0",
40
+ "@xyo-network/diviner-abstract": "~6.1.0",
41
+ "@xyo-network/diviner-indexing-memory": "~6.1.0",
42
+ "@xyo-network/diviner-indexing-model": "~6.1.0",
43
+ "@xyo-network/diviner-jsonpath-aggregate-memory": "~6.1.0",
44
+ "@xyo-network/diviner-jsonpath-model": "~6.1.0",
45
+ "@xyo-network/diviner-model": "~6.1.0",
46
+ "@xyo-network/diviner-payload-model": "~6.1.0",
47
+ "@xyo-network/diviner-temporal-indexing-model": "~6.1.0",
48
+ "@xyo-network/diviner-wrapper": "~6.1.0",
49
+ "@xyo-network/module-model": "~6.1.0",
50
+ "@xyo-network/witness-timestamp": "~6.1.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@bitauth/libauth": "~3.0.0",
@@ -57,18 +57,16 @@
57
57
  "@opentelemetry/sdk-trace-base": "^2.7.1",
58
58
  "@scure/base": "~2.2.0",
59
59
  "@scure/bip39": "~2.2.0",
60
- "@xylabs/geo": "^6.0.7",
61
- "@xylabs/sdk-js": "^6.0.7",
62
- "@xylabs/threads": "^6.0.7",
63
- "@xylabs/toolchain": "~8.1.15",
64
- "@xylabs/tsconfig": "~8.1.15",
65
- "@xylabs/vitest-extended": "~6.0.7",
66
- "@xyo-network/payload-utils": "~6.0.8",
67
- "@xyo-network/sdk-protocol-js": "~6.0.8",
60
+ "@xylabs/geo": "^6.1.0",
61
+ "@xylabs/sdk-js": "^6.1.0",
62
+ "@xylabs/threads": "^6.1.0",
63
+ "@xylabs/toolchain": "^8.1.20",
64
+ "@xylabs/tsconfig": "^8.1.20",
65
+ "@xylabs/vitest-extended": "^6.1.0",
66
+ "@xyo-network/payload-utils": "~6.1",
67
+ "@xyo-network/sdk-protocol-js": "^6.1.0",
68
68
  "ajv": "^8.20.0",
69
69
  "async-mutex": "^0.5.0",
70
- "bn.js": "^5.2.3",
71
- "buffer": "^6.0.3",
72
70
  "debug": "~4.4.3",
73
71
  "eslint": "^10.4.1",
74
72
  "ethers": "^6.16.0",
@@ -77,16 +75,15 @@
77
75
  "jsonpath-plus": "^10.4.0",
78
76
  "lru-cache": "^11.5.1",
79
77
  "observable-fns": "~0.6.1",
80
- "pako": "~2.1.0",
81
78
  "typescript": "~6.0.3",
82
79
  "vite": "^8.0.16",
83
80
  "vitest": "~4.1.8",
84
81
  "webextension-polyfill": "^0.12.0",
85
82
  "zod": "^4.4.3",
86
- "@xyo-network/archivist-memory": "~6.0.3",
87
- "@xyo-network/manifest-wrapper": "~6.0.3",
88
- "@xyo-network/module-factory-locator": "~6.0.3",
89
- "@xyo-network/node-memory": "~6.0.3"
83
+ "@xyo-network/archivist-memory": "~6.1.0",
84
+ "@xyo-network/node-memory": "~6.1.0",
85
+ "@xyo-network/manifest-wrapper": "~6.1.0",
86
+ "@xyo-network/module-factory-locator": "~6.1.0"
90
87
  },
91
88
  "peerDependencies": {
92
89
  "@bitauth/libauth": "~3.0",
@@ -99,12 +96,10 @@
99
96
  "@xylabs/geo": "^6.0",
100
97
  "@xylabs/sdk-js": "^6.0",
101
98
  "@xylabs/threads": "^6.0",
102
- "@xyo-network/payload-utils": "~6.0",
103
- "@xyo-network/sdk-protocol-js": "~6.0",
99
+ "@xyo-network/payload-utils": "^6.1",
100
+ "@xyo-network/sdk-protocol-js": "^6.1",
104
101
  "ajv": "^8.20",
105
102
  "async-mutex": "^0.5",
106
- "bn.js": "^5.2",
107
- "buffer": "^6.0",
108
103
  "debug": "~4.4",
109
104
  "ethers": "^6.16",
110
105
  "hash-wasm": "~4.12",
@@ -112,10 +107,12 @@
112
107
  "jsonpath-plus": "^10.3",
113
108
  "lru-cache": "^11.3",
114
109
  "observable-fns": "~0.6",
115
- "pako": "~2.1",
116
110
  "webextension-polyfill": "^0.12",
117
111
  "zod": "^4.4"
118
112
  },
113
+ "engines": {
114
+ "node": "^24"
115
+ },
119
116
  "publishConfig": {
120
117
  "access": "public"
121
118
  }
@@ -1,10 +0,0 @@
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/sdk-protocol-js';
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
@@ -1 +0,0 @@
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,8BAA8B,CAAA;AAEnE,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"}
@@ -1,45 +0,0 @@
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/sdk-protocol-js';
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: Schema[];
11
- static readonly defaultConfigSchema: string & {
12
- readonly __schema: true;
13
- };
14
- static readonly labels: Labels;
15
- private _indexableSchemas;
16
- private _payloadTransformers;
17
- /**
18
- * The schema of the diviner query payloads
19
- */
20
- protected get divinerQuerySchema(): Schema;
21
- /**
22
- * The schema of the index query payloads
23
- */
24
- protected get indexQuerySchema(): Schema;
25
- /**
26
- * The schema of the index payloads
27
- */
28
- protected get indexSchema(): Schema;
29
- /**
30
- * List of indexable schemas for this diviner
31
- */
32
- protected get indexableSchemas(): Schema[];
33
- /**
34
- * Dictionary of schemas to payload transformers for creating indexes
35
- * from the payloads within a Bound Witness
36
- */
37
- protected get payloadTransformers(): SchemaToPayloadTransformersDictionary;
38
- /**
39
- * The dictionary of schemas to JSON Path transform expressions for creating indexes
40
- * from the payloads within a Bound Witness
41
- */
42
- protected get schemaTransforms(): SchemaToJsonPathTransformExpressionsDictionary;
43
- protected divineHandler(payloads?: Payload[]): Promise<Payload[]>;
44
- }
45
- //# sourceMappingURL=Diviner.d.ts.map
@@ -1 +0,0 @@
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;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAGnE;;GAEG;AACH,qBAAa,sDAAsD,CACjE,OAAO,SAAS,4DAA4D,GAAG,4DAA4D,CAC3I,SAAQ,eAAe,CAAC,OAAO,CAAC;IAChC,gBAAyB,aAAa,WAA+F;IACrI,gBAAyB,mBAAmB;;MAAqE;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"}
@@ -1,2 +0,0 @@
1
- export * from './Diviner.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1,45 +0,0 @@
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/sdk-protocol-js';
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(): Schema[];
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?: Schema | null) => boolean;
44
- }
45
- //# sourceMappingURL=Diviner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Diviner.ts"],"names":[],"mappings":"AAIA,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;AACvD,OAAO,KAAK,EACI,OAAO,EAAE,MAAM,EAC9B,MAAM,8BAA8B,CAAA;AASrC;;;;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;IAyDpF;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,GAAI,GAAG,OAAO,aAEzC;IAED;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,GAAI,SAAS,MAAM,GAAG,IAAI,aAEpD;CACF"}
@@ -1,2 +0,0 @@
1
- export * from './Diviner.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1,13 +0,0 @@
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/sdk-protocol-js';
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
@@ -1 +0,0 @@
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,8BAA8B,CAAA;AAEnE;;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"}
@@ -1,2 +0,0 @@
1
- export * from './Diviner.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1,130 +0,0 @@
1
- import type { ArchivistInstance } from '@xyo-network/archivist-model';
2
- import { ArchivistWrapper } from '@xyo-network/archivist-wrapper';
3
- import { AbstractDiviner } from '@xyo-network/diviner-abstract';
4
- import type { BoundWitnessDiviner } from '@xyo-network/diviner-boundwitness/abstract';
5
- import type { BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload } from '@xyo-network/diviner-boundwitness/model';
6
- import type { IndexingDivinerState } from '@xyo-network/diviner-indexing-model';
7
- import type { TemporalIndexingDivinerStateToIndexCandidateDivinerParams } from '@xyo-network/diviner-temporal-indexing-model';
8
- import { DivinerWrapper } from '@xyo-network/diviner-wrapper';
9
- import type { Labels, ModuleState } from '@xyo-network/module-model';
10
- import type { BoundWitness, Payload, Schema, WithStorageMeta } from '@xyo-network/sdk-protocol-js';
11
- import type { TimeStamp } from '@xyo-network/witness-timestamp';
12
- /**
13
- * All Payload types involved in index candidates for indexing
14
- */
15
- export type IndexCandidate = BoundWitness | Payload | TimeStamp;
16
- /**
17
- * The response from the TemporalStateToIndexCandidateDiviner
18
- */
19
- export type TemporalStateToIndexCandidateDivinerResponse = [
20
- /**
21
- * The next state of the diviner
22
- */
23
- nextState: ModuleState<IndexingDivinerState>,
24
- /**
25
- * The index candidates
26
- */
27
- ...IndexCandidate[]
28
- ];
29
- /**
30
- * Transforms candidates for image thumbnail indexing into their indexed representation
31
- */
32
- export declare class TemporalIndexingDivinerStateToIndexCandidateDiviner<TParams extends TemporalIndexingDivinerStateToIndexCandidateDivinerParams = TemporalIndexingDivinerStateToIndexCandidateDivinerParams> extends AbstractDiviner<TParams, Payload, ModuleState | IndexCandidate> {
33
- static readonly configSchemas: Schema[];
34
- static readonly defaultConfigSchema: Schema;
35
- static readonly labels: Labels;
36
- get payloadDivinerLimit(): number;
37
- /**
38
- * The required payload_schemas within BoundWitnesses to identify index candidates
39
- */
40
- protected get payload_schemas(): Schema[];
41
- protected divineHandler(payloads?: Payload[]): Promise<TemporalStateToIndexCandidateDivinerResponse>;
42
- /**
43
- * Retrieves the archivist for the payloadStore
44
- * @returns The archivist for the payloadStore or undefined if not resolvable
45
- */
46
- protected getArchivistForStore(): Promise<ArchivistWrapper | undefined>;
47
- /**
48
- * Retrieves the BoundWitness Diviner for the payloadStore
49
- * @returns The BoundWitness Diviner for the payloadStore or undefined if not resolvable
50
- */
51
- protected getBoundWitnessDivinerForStore(): Promise<DivinerWrapper<BoundWitnessDiviner<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, {
52
- schema: "network.xyo.boundwitness" & {
53
- readonly __schema: true;
54
- };
55
- addresses: (import("@xyo-network/sdk-protocol-js").XyoQuantAddress | (Lowercase<string> & {
56
- readonly __hex: true;
57
- } & {
58
- readonly __address: true;
59
- }))[];
60
- payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
61
- payload_schemas: import("@xyo-network/sdk-protocol-js").BrandedSchema<string>[];
62
- previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
63
- $signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
64
- $destination?: import("@xyo-network/sdk-protocol-js").XyoQuantAddress | (Lowercase<string> & {
65
- readonly __hex: true;
66
- } & {
67
- readonly __address: true;
68
- }) | undefined;
69
- $sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
70
- }, import("@xyo-network/diviner-model").DivinerModuleEventData<import("@xyo-network/diviner-model").DivinerInstance<BoundWitnessDivinerParams, BoundWitnessDivinerQueryPayload, {
71
- schema: "network.xyo.boundwitness" & {
72
- readonly __schema: true;
73
- };
74
- addresses: (import("@xyo-network/sdk-protocol-js").XyoQuantAddress | (Lowercase<string> & {
75
- readonly __hex: true;
76
- } & {
77
- readonly __address: true;
78
- }))[];
79
- payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
80
- payload_schemas: import("@xyo-network/sdk-protocol-js").BrandedSchema<string>[];
81
- previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
82
- $signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
83
- $destination?: import("@xyo-network/sdk-protocol-js").XyoQuantAddress | (Lowercase<string> & {
84
- readonly __hex: true;
85
- } & {
86
- readonly __address: true;
87
- }) | undefined;
88
- $sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
89
- }, import("@xyo-network/diviner-model").DivinerModuleEventData>, BoundWitnessDivinerQueryPayload, {
90
- schema: "network.xyo.boundwitness" & {
91
- readonly __schema: true;
92
- };
93
- addresses: (import("@xyo-network/sdk-protocol-js").XyoQuantAddress | (Lowercase<string> & {
94
- readonly __hex: true;
95
- } & {
96
- readonly __address: true;
97
- }))[];
98
- payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
99
- payload_schemas: import("@xyo-network/sdk-protocol-js").BrandedSchema<string>[];
100
- previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
101
- $signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
102
- $destination?: import("@xyo-network/sdk-protocol-js").XyoQuantAddress | (Lowercase<string> & {
103
- readonly __hex: true;
104
- } & {
105
- readonly __address: true;
106
- }) | undefined;
107
- $sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
108
- }>>, BoundWitnessDivinerQueryPayload, WithStorageMeta<{
109
- schema: "network.xyo.boundwitness" & {
110
- readonly __schema: true;
111
- };
112
- addresses: (import("@xyo-network/sdk-protocol-js").XyoQuantAddress | (Lowercase<string> & {
113
- readonly __hex: true;
114
- } & {
115
- readonly __address: true;
116
- }))[];
117
- payload_hashes: import("@xylabs/sdk-js").BrandedHash[];
118
- payload_schemas: import("@xyo-network/sdk-protocol-js").BrandedSchema<string>[];
119
- previous_hashes: (import("@xylabs/sdk-js").BrandedHash | null)[];
120
- $signatures: (import("@xylabs/sdk-js").BrandedHex | null)[];
121
- $destination?: import("@xyo-network/sdk-protocol-js").XyoQuantAddress | (Lowercase<string> & {
122
- readonly __hex: true;
123
- } & {
124
- readonly __address: true;
125
- }) | undefined;
126
- $sourceQuery?: import("@xylabs/sdk-js").BrandedHash | undefined;
127
- }>> | undefined>;
128
- protected getPayloadsInBoundWitness(bw: BoundWitness, archivist: ArchivistInstance): Promise<IndexCandidate[] | undefined>;
129
- }
130
- //# sourceMappingURL=Diviner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Diviner.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Diviner.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAwB,MAAM,8BAA8B,CAAA;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gC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AAO,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"}
@@ -1,2 +0,0 @@
1
- export * from './Diviner.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1,6 +0,0 @@
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
@@ -1 +0,0 @@
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"}