@xyo-network/diviner-temporal-indexing-model 6.0.4 → 7.0.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.
- package/README.md +3 -1
- package/dist/neutral/Config.d.ts +21 -0
- package/dist/neutral/Config.d.ts.map +1 -1
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/Config.d.ts +14 -0
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/Config.d.ts.map +1 -1
- package/dist/neutral/IndexCandidateToIndexDiviner/Config.d.ts +11 -0
- package/dist/neutral/IndexCandidateToIndexDiviner/Config.d.ts.map +1 -1
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts +11 -0
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts.map +1 -1
- package/dist/neutral/Result/Payload.d.ts +11 -6
- package/dist/neutral/Result/Payload.d.ts.map +1 -1
- package/dist/neutral/ResultIndex/Payload.d.ts +12 -5
- package/dist/neutral/ResultIndex/Payload.d.ts.map +1 -1
- package/dist/neutral/StateToIndexCandidateDiviner/Config.d.ts +13 -0
- package/dist/neutral/StateToIndexCandidateDiviner/Config.d.ts.map +1 -1
- package/dist/neutral/index.mjs +160 -7
- package/dist/neutral/index.mjs.map +3 -3
- package/package.json +18 -19
- package/dist/browser/Config.d.ts +0 -53
- package/dist/browser/Config.d.ts.map +0 -1
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Config.d.ts +0 -33
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Config.d.ts.map +0 -1
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Params.d.ts +0 -5
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Params.d.ts.map +0 -1
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Schema.d.ts +0 -5
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Schema.d.ts.map +0 -1
- package/dist/browser/DivinerQueryToIndexQueryDiviner/index.d.ts +0 -4
- package/dist/browser/DivinerQueryToIndexQueryDiviner/index.d.ts.map +0 -1
- package/dist/browser/IndexCandidateToIndexDiviner/Config.d.ts +0 -20
- package/dist/browser/IndexCandidateToIndexDiviner/Config.d.ts.map +0 -1
- package/dist/browser/IndexCandidateToIndexDiviner/Params.d.ts +0 -8
- package/dist/browser/IndexCandidateToIndexDiviner/Params.d.ts.map +0 -1
- package/dist/browser/IndexCandidateToIndexDiviner/Schema.d.ts +0 -5
- package/dist/browser/IndexCandidateToIndexDiviner/Schema.d.ts.map +0 -1
- package/dist/browser/IndexCandidateToIndexDiviner/index.d.ts +0 -4
- package/dist/browser/IndexCandidateToIndexDiviner/index.d.ts.map +0 -1
- package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts +0 -20
- package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts.map +0 -1
- package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts +0 -5
- package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts.map +0 -1
- package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts +0 -5
- package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts.map +0 -1
- package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts +0 -4
- package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map +0 -1
- package/dist/browser/Params.d.ts +0 -5
- package/dist/browser/Params.d.ts.map +0 -1
- package/dist/browser/Result/Payload.d.ts +0 -9
- package/dist/browser/Result/Payload.d.ts.map +0 -1
- package/dist/browser/Result/Schema.d.ts +0 -5
- package/dist/browser/Result/Schema.d.ts.map +0 -1
- package/dist/browser/Result/index.d.ts +0 -3
- package/dist/browser/Result/index.d.ts.map +0 -1
- package/dist/browser/ResultIndex/Payload.d.ts +0 -7
- package/dist/browser/ResultIndex/Payload.d.ts.map +0 -1
- package/dist/browser/ResultIndex/Schema.d.ts +0 -5
- package/dist/browser/ResultIndex/Schema.d.ts.map +0 -1
- package/dist/browser/ResultIndex/index.d.ts +0 -3
- package/dist/browser/ResultIndex/index.d.ts.map +0 -1
- package/dist/browser/Schema.d.ts +0 -5
- package/dist/browser/Schema.d.ts.map +0 -1
- package/dist/browser/StateToIndexCandidateDiviner/Config.d.ts +0 -28
- package/dist/browser/StateToIndexCandidateDiviner/Config.d.ts.map +0 -1
- package/dist/browser/StateToIndexCandidateDiviner/Params.d.ts +0 -5
- package/dist/browser/StateToIndexCandidateDiviner/Params.d.ts.map +0 -1
- package/dist/browser/StateToIndexCandidateDiviner/Schema.d.ts +0 -5
- package/dist/browser/StateToIndexCandidateDiviner/Schema.d.ts.map +0 -1
- package/dist/browser/StateToIndexCandidateDiviner/index.d.ts +0 -4
- package/dist/browser/StateToIndexCandidateDiviner/index.d.ts.map +0 -1
- package/dist/browser/index.d.ts +0 -10
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/index.mjs +0 -89
- package/dist/browser/index.mjs.map +0 -7
- package/dist/node/Config.d.ts +0 -53
- package/dist/node/Config.d.ts.map +0 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/Config.d.ts +0 -33
- package/dist/node/DivinerQueryToIndexQueryDiviner/Config.d.ts.map +0 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/Params.d.ts +0 -5
- package/dist/node/DivinerQueryToIndexQueryDiviner/Params.d.ts.map +0 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/Schema.d.ts +0 -5
- package/dist/node/DivinerQueryToIndexQueryDiviner/Schema.d.ts.map +0 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/index.d.ts +0 -4
- package/dist/node/DivinerQueryToIndexQueryDiviner/index.d.ts.map +0 -1
- package/dist/node/IndexCandidateToIndexDiviner/Config.d.ts +0 -20
- package/dist/node/IndexCandidateToIndexDiviner/Config.d.ts.map +0 -1
- package/dist/node/IndexCandidateToIndexDiviner/Params.d.ts +0 -8
- package/dist/node/IndexCandidateToIndexDiviner/Params.d.ts.map +0 -1
- package/dist/node/IndexCandidateToIndexDiviner/Schema.d.ts +0 -5
- package/dist/node/IndexCandidateToIndexDiviner/Schema.d.ts.map +0 -1
- package/dist/node/IndexCandidateToIndexDiviner/index.d.ts +0 -4
- package/dist/node/IndexCandidateToIndexDiviner/index.d.ts.map +0 -1
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts +0 -20
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts.map +0 -1
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts +0 -5
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts.map +0 -1
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts +0 -5
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts.map +0 -1
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts +0 -4
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map +0 -1
- package/dist/node/Params.d.ts +0 -5
- package/dist/node/Params.d.ts.map +0 -1
- package/dist/node/Result/Payload.d.ts +0 -9
- package/dist/node/Result/Payload.d.ts.map +0 -1
- package/dist/node/Result/Schema.d.ts +0 -5
- package/dist/node/Result/Schema.d.ts.map +0 -1
- package/dist/node/Result/index.d.ts +0 -3
- package/dist/node/Result/index.d.ts.map +0 -1
- package/dist/node/ResultIndex/Payload.d.ts +0 -7
- package/dist/node/ResultIndex/Payload.d.ts.map +0 -1
- package/dist/node/ResultIndex/Schema.d.ts +0 -5
- package/dist/node/ResultIndex/Schema.d.ts.map +0 -1
- package/dist/node/ResultIndex/index.d.ts +0 -3
- package/dist/node/ResultIndex/index.d.ts.map +0 -1
- package/dist/node/Schema.d.ts +0 -5
- package/dist/node/Schema.d.ts.map +0 -1
- package/dist/node/StateToIndexCandidateDiviner/Config.d.ts +0 -28
- package/dist/node/StateToIndexCandidateDiviner/Config.d.ts.map +0 -1
- package/dist/node/StateToIndexCandidateDiviner/Params.d.ts +0 -5
- package/dist/node/StateToIndexCandidateDiviner/Params.d.ts.map +0 -1
- package/dist/node/StateToIndexCandidateDiviner/Schema.d.ts +0 -5
- package/dist/node/StateToIndexCandidateDiviner/Schema.d.ts.map +0 -1
- package/dist/node/StateToIndexCandidateDiviner/index.d.ts +0 -4
- package/dist/node/StateToIndexCandidateDiviner/index.d.ts.map +0 -1
- package/dist/node/index.d.ts +0 -10
- package/dist/node/index.d.ts.map +0 -1
- package/dist/node/index.mjs +0 -89
- package/dist/node/index.mjs.map +0 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Config.ts", "../../src/Schema.ts", "../../src/DivinerQueryToIndexQueryDiviner/Config.ts", "../../src/DivinerQueryToIndexQueryDiviner/Schema.ts", "../../src/IndexCandidateToIndexDiviner/Config.ts", "../../src/IndexCandidateToIndexDiviner/Schema.ts", "../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts", "../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts", "../../src/Result/Payload.ts", "../../src/Result/Schema.ts", "../../src/ResultIndex/Payload.ts", "../../src/ResultIndex/Schema.ts", "../../src/StateToIndexCandidateDiviner/Config.ts", "../../src/StateToIndexCandidateDiviner/Schema.ts"],
|
|
4
|
-
"sourcesContent": ["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts'\nimport type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts'\nimport { TemporalIndexingDivinerSchema } from './Schema.ts'\nimport type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts'\n\nexport const TemporalIndexingDivinerConfigSchema = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\n /**\n * Where the diviner should store it's index\n */\n indexStore?: SearchableStorage\n /**\n * Config section for name/address of individual diviner stages\n */\n indexingDivinerStages?: IndexingDivinerStageConfig\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * How often to poll for new payloads to index\n */\n pollFrequency?: number\n /**\n * The schema for this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n", "import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n", "import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/sdk-protocol-js'\nimport { isPayloadOfSchemaType } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResult = Payload<\n {\n sources: Hash[]\n timestamp: string\n },\n TemporalIndexingDivinerResultSchema\n>\nexport const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n", "import type { PayloadWithSources } from '@xyo-network/sdk-protocol-js'\nimport { isPayloadOfSchemaType } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n", "import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness/model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],
|
|
5
|
-
"mappings": ";
|
|
6
|
-
"names": ["asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "
|
|
4
|
+
"sourcesContent": ["import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts'\nimport type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts'\nimport { TemporalIndexingDivinerSchema } from './Schema.ts'\nimport type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts'\n\nexport const TemporalIndexingDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\n /**\n * Where the diviner should store it's index\n */\n indexStore?: SearchableStorage\n /**\n * Config section for name/address of individual diviner stages\n */\n indexingDivinerStages?: IndexingDivinerStageConfig\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * How often to poll for new payloads to index\n */\n pollFrequency?: number\n /**\n * The schema for this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n\nexport const TemporalIndexingDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n indexStore: z.ZodMiniOptional<z.ZodMiniCustom<SearchableStorage, SearchableStorage>>\n indexingDivinerStages: z.ZodMiniOptional<z.ZodMiniCustom<IndexingDivinerStageConfig, IndexingDivinerStageConfig>>\n payloadDivinerLimit: z.ZodMiniOptional<z.ZodMiniNumber<number>>\n pollFrequency: z.ZodMiniOptional<z.ZodMiniNumber<number>>\n schema: z.ZodMiniLiteral<TemporalIndexingDivinerConfigSchema>\n stageConfigs: z.ZodMiniOptional<z.ZodMiniObject<{\n divinerQueryToIndexQueryDiviner: z.ZodMiniOptional<\n z.ZodMiniCustom<\n Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>,\n Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n >\n >\n indexCandidateToIndexDiviner: z.ZodMiniOptional<\n z.ZodMiniCustom<\n Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>,\n Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n >\n >\n indexQueryResponseToDivinerQueryResponseDiviner: z.ZodMiniOptional<\n z.ZodMiniCustom<\n Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>,\n Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n >\n >\n stateToIndexCandidateDiviner: z.ZodMiniOptional<\n z.ZodMiniCustom<\n Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>,\n Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n >\n >\n }, z.core.$strip>>\n stateStore: z.ZodMiniOptional<z.ZodMiniCustom<SearchableStorage, SearchableStorage>>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, {\n indexStore: z.optional(z.custom<SearchableStorage>()),\n indexingDivinerStages: z.optional(z.custom<IndexingDivinerStageConfig>()),\n payloadDivinerLimit: z.optional(z.number()),\n pollFrequency: z.optional(z.number()),\n schema: z.literal(TemporalIndexingDivinerConfigSchema),\n stageConfigs: z.optional(z.object({\n divinerQueryToIndexQueryDiviner: z.optional(z.custom<Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>>()),\n indexCandidateToIndexDiviner: z.optional(z.custom<Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>>()),\n indexQueryResponseToDivinerQueryResponseDiviner: z.optional(\n z.custom<Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>>(),\n ),\n stateToIndexCandidateDiviner: z.optional(z.custom<Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>>()),\n })),\n stateStore: z.optional(z.custom<SearchableStorage>()),\n})\n\nexport type TemporalIndexingDivinerConfigBase = z.infer<typeof TemporalIndexingDivinerConfigZod>\n\nexport const isTemporalIndexingDivinerConfig: ReturnType<typeof zodIsFactory<TemporalIndexingDivinerConfigBase>>\n = zodIsFactory(TemporalIndexingDivinerConfigZod)\nexport const asTemporalIndexingDivinerConfig: ReturnType<typeof zodAsFactory<TemporalIndexingDivinerConfigBase>>\n = zodAsFactory(TemporalIndexingDivinerConfigZod, 'asTemporalIndexingDivinerConfig')\nexport const toTemporalIndexingDivinerConfig: ReturnType<typeof zodToFactory<TemporalIndexingDivinerConfigBase>>\n = zodToFactory(TemporalIndexingDivinerConfigZod, 'toTemporalIndexingDivinerConfig')\n", "import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n divinerQuerySchema: z.ZodMiniOptional<z.ZodMiniCustom<Schema, Schema>>\n indexQuerySchema: z.ZodMiniOptional<z.ZodMiniCustom<Schema, Schema>>\n indexSchema: z.ZodMiniOptional<z.ZodMiniCustom<Schema, Schema>>\n schema: z.ZodMiniLiteral<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema>\n schemaTransforms: z.ZodMiniOptional<\n z.ZodMiniCustom<SchemaToJsonPathTransformExpressionsDictionary, SchemaToJsonPathTransformExpressionsDictionary>\n >\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, {\n divinerQuerySchema: z.optional(z.custom<Schema>()),\n indexQuerySchema: z.optional(z.custom<Schema>()),\n indexSchema: z.optional(z.custom<Schema>()),\n schema: z.literal(TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema),\n schemaTransforms: z.optional(z.custom<SchemaToJsonPathTransformExpressionsDictionary>()),\n})\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigBase = z.infer<\n typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigZod\n>\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n\nexport const isTemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig: ReturnType<\n typeof zodIsFactory<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigBase>\n> = zodIsFactory(TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigZod)\nexport const asTemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig: ReturnType<\n typeof zodAsFactory<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigBase>\n> = zodAsFactory(\n TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigZod,\n 'asTemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig',\n)\nexport const toTemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig: ReturnType<\n typeof zodToFactory<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigBase>\n> = zodToFactory(\n TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigZod,\n 'toTemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig',\n)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n schema: z.ZodMiniLiteral<TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema>\n schemaTransforms: z.ZodMiniOptional<\n z.ZodMiniCustom<SchemaToJsonPathTransformExpressionsDictionary, SchemaToJsonPathTransformExpressionsDictionary>\n >\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, {\n schema: z.literal(TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema),\n schemaTransforms: z.optional(z.custom<SchemaToJsonPathTransformExpressionsDictionary>()),\n})\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigBase = z.infer<\n typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigZod\n>\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n\nexport const isTemporalIndexingDivinerIndexCandidateToIndexDivinerConfig: ReturnType<\n typeof zodIsFactory<TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigBase>\n> = zodIsFactory(TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigZod)\nexport const asTemporalIndexingDivinerIndexCandidateToIndexDivinerConfig: ReturnType<\n typeof zodAsFactory<TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigBase>\n> = zodAsFactory(TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigZod, 'asTemporalIndexingDivinerIndexCandidateToIndexDivinerConfig')\nexport const toTemporalIndexingDivinerIndexCandidateToIndexDivinerConfig: ReturnType<\n typeof zodToFactory<TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigBase>\n> = zodToFactory(TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigZod, 'toTemporalIndexingDivinerIndexCandidateToIndexDivinerConfig')\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n schema: z.ZodMiniLiteral<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema>\n schemaTransforms: z.ZodMiniOptional<\n z.ZodMiniCustom<SchemaToJsonPathTransformExpressionsDictionary, SchemaToJsonPathTransformExpressionsDictionary>\n >\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, {\n schema: z.literal(TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema),\n schemaTransforms: z.optional(z.custom<SchemaToJsonPathTransformExpressionsDictionary>()),\n})\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigBase = z.infer<\n typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigZod\n>\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n\nexport const isTemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig: ReturnType<\n typeof zodIsFactory<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigBase>\n> = zodIsFactory(TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigZod)\nexport const asTemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig: ReturnType<\n typeof zodAsFactory<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigBase>\n> = zodAsFactory(\n TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigZod,\n 'asTemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig',\n)\nexport const toTemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig: ReturnType<\n typeof zodToFactory<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigBase>\n> = zodToFactory(\n TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigZod,\n 'toTemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig',\n)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n", "import type { Hash } from '@xylabs/sdk-js'\nimport {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerResultZod: z.ZodMiniObject<{\n schema: z.ZodMiniLiteral<TemporalIndexingDivinerResultSchema>\n sources: z.ZodMiniArray<z.ZodMiniCustom<Hash, Hash>>\n timestamp: z.ZodMiniString<string>\n}, z.core.$strip> = z.extend(PayloadZodOfSchema(TemporalIndexingDivinerResultSchema), {\n sources: z.array(z.custom<Hash>()),\n timestamp: z.string(),\n})\n\nexport type TemporalIndexingDivinerResult = z.infer<typeof TemporalIndexingDivinerResultZod>\n\nexport const isTemporalIndexingDivinerResult: ReturnType<typeof zodIsFactory<TemporalIndexingDivinerResult>>\n = zodIsFactory(TemporalIndexingDivinerResultZod)\nexport const asTemporalIndexingDivinerResult: ReturnType<typeof zodAsFactory<TemporalIndexingDivinerResult>>\n = zodAsFactory(TemporalIndexingDivinerResultZod, 'asTemporalIndexingDivinerResult')\nexport const toTemporalIndexingDivinerResult: ReturnType<typeof zodToFactory<TemporalIndexingDivinerResult>>\n = zodToFactory(TemporalIndexingDivinerResultZod, 'toTemporalIndexingDivinerResult')\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n", "import type { Hash } from '@xylabs/sdk-js'\nimport {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerResultIndexZod: z.ZodMiniObject<{\n $sources: z.ZodMiniArray<z.ZodMiniCustom<Hash, Hash>>\n schema: z.ZodMiniLiteral<TemporalIndexingDivinerResultIndexSchema>\n timestamp: z.ZodMiniNumber<number>\n}, z.core.$strip> = z.extend(PayloadZodOfSchema(TemporalIndexingDivinerResultIndexSchema), {\n $sources: z.array(z.custom<Hash>()),\n timestamp: z.number(),\n})\n\nexport type TemporalIndexingDivinerResultIndex = z.infer<typeof TemporalIndexingDivinerResultIndexZod>\n\nexport const isTemporalIndexingDivinerResultIndex: ReturnType<typeof zodIsFactory<TemporalIndexingDivinerResultIndex>>\n = zodIsFactory(TemporalIndexingDivinerResultIndexZod)\nexport const asTemporalIndexingDivinerResultIndex: ReturnType<typeof zodAsFactory<TemporalIndexingDivinerResultIndex>>\n = zodAsFactory(TemporalIndexingDivinerResultIndexZod, 'asTemporalIndexingDivinerResultIndex')\nexport const toTemporalIndexingDivinerResultIndex: ReturnType<typeof zodToFactory<TemporalIndexingDivinerResultIndex>>\n = zodToFactory(TemporalIndexingDivinerResultIndexZod, 'toTemporalIndexingDivinerResultIndex')\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n", "import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness/model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n filter: z.ZodMiniOptional<z.ZodMiniCustom<BoundWitnessDivinerPredicate, BoundWitnessDivinerPredicate>>\n payloadDivinerLimit: z.ZodMiniOptional<z.ZodMiniNumber<number>>\n payloadStore: z.ZodMiniOptional<z.ZodMiniCustom<SearchableStorage, SearchableStorage>>\n schema: z.ZodMiniLiteral<TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, {\n filter: z.optional(z.custom<BoundWitnessDivinerPredicate>()),\n payloadDivinerLimit: z.optional(z.number()),\n payloadStore: z.optional(z.custom<SearchableStorage>()),\n schema: z.literal(TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema),\n})\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigBase = z.infer<\n typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigZod\n>\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n\nexport const isTemporalIndexingDivinerStateToIndexCandidateDivinerConfig: ReturnType<\n typeof zodIsFactory<TemporalIndexingDivinerStateToIndexCandidateDivinerConfigBase>\n> = zodIsFactory(TemporalIndexingDivinerStateToIndexCandidateDivinerConfigZod)\nexport const asTemporalIndexingDivinerStateToIndexCandidateDivinerConfig: ReturnType<\n typeof zodAsFactory<TemporalIndexingDivinerStateToIndexCandidateDivinerConfigBase>\n> = zodAsFactory(\n TemporalIndexingDivinerStateToIndexCandidateDivinerConfigZod,\n 'asTemporalIndexingDivinerStateToIndexCandidateDivinerConfig',\n)\nexport const toTemporalIndexingDivinerStateToIndexCandidateDivinerConfig: ReturnType<\n typeof zodToFactory<TemporalIndexingDivinerStateToIndexCandidateDivinerConfigBase>\n> = zodToFactory(\n TemporalIndexingDivinerStateToIndexCandidateDivinerConfigZod,\n 'toTemporalIndexingDivinerStateToIndexCandidateDivinerConfig',\n)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["asSchema", "asSchema", "zodAsFactory", "zodIsFactory", "zodToFactory", "DivinerConfigZod", "asSchema", "z", "asSchema", "asSchema", "asSchema", "DivinerConfigZod", "zodIsFactory", "zodAsFactory", "zodToFactory", "zodAsFactory", "zodIsFactory", "zodToFactory", "DivinerConfigZod", "asSchema", "z", "asSchema", "asSchema", "asSchema", "DivinerConfigZod", "zodIsFactory", "zodAsFactory", "zodToFactory", "zodAsFactory", "zodIsFactory", "zodToFactory", "DivinerConfigZod", "asSchema", "z", "asSchema", "asSchema", "asSchema", "DivinerConfigZod", "zodIsFactory", "zodAsFactory", "zodToFactory", "zodAsFactory", "zodIsFactory", "zodToFactory", "z", "asSchema", "asSchema", "zodIsFactory", "zodAsFactory", "zodToFactory", "zodAsFactory", "zodIsFactory", "zodToFactory", "PayloadZodOfSchema", "z", "asSchema", "asSchema", "PayloadZodOfSchema", "zodIsFactory", "zodAsFactory", "zodToFactory", "zodAsFactory", "zodIsFactory", "zodToFactory", "DivinerConfigZod", "asSchema", "z", "asSchema", "asSchema", "asSchema", "DivinerConfigZod", "zodIsFactory", "zodAsFactory", "zodToFactory"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-temporal-indexing-model",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -34,32 +34,30 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@xyo-network/diviner-boundwitness": "~
|
|
38
|
-
"@xyo-network/diviner-
|
|
39
|
-
"@xyo-network/diviner-jsonpath-model": "~
|
|
40
|
-
"@xyo-network/diviner-model": "~
|
|
41
|
-
"@xyo-network/module-model": "~
|
|
37
|
+
"@xyo-network/diviner-boundwitness": "~7.0.0",
|
|
38
|
+
"@xyo-network/diviner-model": "~7.0.0",
|
|
39
|
+
"@xyo-network/diviner-jsonpath-model": "~7.0.0",
|
|
40
|
+
"@xyo-network/diviner-indexing-model": "~7.0.0",
|
|
41
|
+
"@xyo-network/module-model": "~7.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@bitauth/libauth": "~3.0.0",
|
|
45
45
|
"@metamask/providers": "^22.1.1",
|
|
46
46
|
"@noble/post-quantum": "~0.6.1",
|
|
47
47
|
"@opentelemetry/api": "^1.9.1",
|
|
48
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
48
|
+
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
|
49
49
|
"@scure/base": "~2.2.0",
|
|
50
50
|
"@scure/bip39": "~2.2.0",
|
|
51
|
-
"@xylabs/geo": "^6.
|
|
52
|
-
"@xylabs/sdk-js": "^6.
|
|
53
|
-
"@xylabs/threads": "^6.
|
|
54
|
-
"@xylabs/toolchain": "
|
|
55
|
-
"@xylabs/tsconfig": "
|
|
56
|
-
"@xyo-network/sdk-protocol-js": "~
|
|
51
|
+
"@xylabs/geo": "^6.1.1",
|
|
52
|
+
"@xylabs/sdk-js": "^6.1.1",
|
|
53
|
+
"@xylabs/threads": "^6.1.1",
|
|
54
|
+
"@xylabs/toolchain": "^8.1.20",
|
|
55
|
+
"@xylabs/tsconfig": "^8.1.20",
|
|
56
|
+
"@xyo-network/sdk-protocol-js": "~7.0",
|
|
57
57
|
"ajv": "^8.20.0",
|
|
58
58
|
"async-mutex": "^0.5.0",
|
|
59
|
-
"bn.js": "^5.2.3",
|
|
60
|
-
"buffer": "^6.0.3",
|
|
61
59
|
"debug": "~4.4.3",
|
|
62
|
-
"eslint": "^10.
|
|
60
|
+
"eslint": "^10.5.0",
|
|
63
61
|
"ethers": "^6.16.0",
|
|
64
62
|
"hash-wasm": "~4.12.0",
|
|
65
63
|
"idb": "^8.0.3",
|
|
@@ -80,11 +78,9 @@
|
|
|
80
78
|
"@xylabs/geo": "^6.0",
|
|
81
79
|
"@xylabs/sdk-js": "^6.0",
|
|
82
80
|
"@xylabs/threads": "^6.0",
|
|
83
|
-
"@xyo-network/sdk-protocol-js": "
|
|
81
|
+
"@xyo-network/sdk-protocol-js": "^7.0",
|
|
84
82
|
"ajv": "^8.20",
|
|
85
83
|
"async-mutex": "^0.5",
|
|
86
|
-
"bn.js": "^5.2",
|
|
87
|
-
"buffer": "^6.0",
|
|
88
84
|
"debug": "~4.4",
|
|
89
85
|
"ethers": "^6.16",
|
|
90
86
|
"hash-wasm": "~4.12",
|
|
@@ -94,6 +90,9 @@
|
|
|
94
90
|
"webextension-polyfill": "^0.12",
|
|
95
91
|
"zod": "^4.4"
|
|
96
92
|
},
|
|
93
|
+
"engines": {
|
|
94
|
+
"node": "^24"
|
|
95
|
+
},
|
|
97
96
|
"publishConfig": {
|
|
98
97
|
"access": "public"
|
|
99
98
|
}
|
package/dist/browser/Config.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model';
|
|
2
|
-
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
|
|
3
|
-
import type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model';
|
|
4
|
-
import type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts';
|
|
5
|
-
import type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts';
|
|
6
|
-
import type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts';
|
|
7
|
-
export declare const TemporalIndexingDivinerConfigSchema: string & {
|
|
8
|
-
readonly __schema: true;
|
|
9
|
-
};
|
|
10
|
-
export type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema;
|
|
11
|
-
/**
|
|
12
|
-
* Config section for declaring each indexing diviner stage
|
|
13
|
-
*/
|
|
14
|
-
export type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>;
|
|
15
|
-
/**
|
|
16
|
-
* Diviner Config for a Diviner which Indexes Payloads
|
|
17
|
-
*/
|
|
18
|
-
export type TemporalIndexingDivinerConfig = DivinerConfig<{
|
|
19
|
-
/**
|
|
20
|
-
* Where the diviner should store it's index
|
|
21
|
-
*/
|
|
22
|
-
indexStore?: SearchableStorage;
|
|
23
|
-
/**
|
|
24
|
-
* Config section for name/address of individual diviner stages
|
|
25
|
-
*/
|
|
26
|
-
indexingDivinerStages?: IndexingDivinerStageConfig;
|
|
27
|
-
/**
|
|
28
|
-
* The maximum number of payloads to index at a time
|
|
29
|
-
*/
|
|
30
|
-
payloadDivinerLimit?: number;
|
|
31
|
-
/**
|
|
32
|
-
* How often to poll for new payloads to index
|
|
33
|
-
*/
|
|
34
|
-
pollFrequency?: number;
|
|
35
|
-
/**
|
|
36
|
-
* The schema for this config
|
|
37
|
-
*/
|
|
38
|
-
schema: TemporalIndexingDivinerConfigSchema;
|
|
39
|
-
/**
|
|
40
|
-
* Optional config section for individual diviner stages
|
|
41
|
-
*/
|
|
42
|
-
stageConfigs?: {
|
|
43
|
-
divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>;
|
|
44
|
-
indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>;
|
|
45
|
-
indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>;
|
|
46
|
-
stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Where the diviner should persist its internal state
|
|
50
|
-
*/
|
|
51
|
-
stateStore?: SearchableStorage;
|
|
52
|
-
}>;
|
|
53
|
-
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AAC3G,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAGlF,OAAO,KAAK,EAAE,4DAA4D,EAAE,MAAM,4CAA4C,CAAA;AAC9H,OAAO,KAAK,EAAE,4EAA4E,EAAE,MAAM,4DAA4D,CAAA;AAE9J,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,yCAAyC,CAAA;AAExH,eAAO,MAAM,mCAAmC;;CAA4D,CAAA;AAC5G,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA;AAE5F;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,MAAM,CAAC,oBAAoB,EAAE,8CAA8C,CAAC,CAAA;AAG9H;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC;IACxD;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,mCAAmC,CAAA;IAC3C;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,+BAA+B,CAAC,EAAE,IAAI,CAAC,4DAA4D,EAAE,QAAQ,CAAC,CAAA;QAC9G,4BAA4B,CAAC,EAAE,IAAI,CAAC,4DAA4D,EAAE,QAAQ,CAAC,CAAA;QAC3G,+CAA+C,CAAC,EAAE,IAAI,CAAC,4EAA4E,EAAE,QAAQ,CAAC,CAAA;QAC9I,4BAA4B,CAAC,EAAE,IAAI,CAAC,yDAAyD,EAAE,QAAQ,CAAC,CAAA;KACzG,CAAA;IACD;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,CAAC,CAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
|
|
2
|
-
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
-
import { type Schema } from '@xyo-network/sdk-protocol-js';
|
|
4
|
-
export declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: string & {
|
|
5
|
-
readonly __schema: true;
|
|
6
|
-
};
|
|
7
|
-
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema;
|
|
8
|
-
/**
|
|
9
|
-
* Diviner Config for a Diviner which transforms a Diviner Query to an Index Query
|
|
10
|
-
*/
|
|
11
|
-
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{
|
|
12
|
-
/**
|
|
13
|
-
* The schema of the diviner query payloads
|
|
14
|
-
*/
|
|
15
|
-
divinerQuerySchema?: Schema;
|
|
16
|
-
/**
|
|
17
|
-
* The schema of the index query payloads
|
|
18
|
-
*/
|
|
19
|
-
indexQuerySchema?: Schema;
|
|
20
|
-
/**
|
|
21
|
-
* The schema of the index payloads
|
|
22
|
-
*/
|
|
23
|
-
indexSchema?: Schema;
|
|
24
|
-
/**
|
|
25
|
-
* The config schema
|
|
26
|
-
*/
|
|
27
|
-
schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema;
|
|
28
|
-
/**
|
|
29
|
-
* The transforms to apply to the source payloads
|
|
30
|
-
*/
|
|
31
|
-
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
32
|
-
}>;
|
|
33
|
-
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAIpE,eAAO,MAAM,kEAAkE;;CACa,CAAA;AAE5F,MAAM,MAAM,kEAAkE,GAC1E,OAAO,kEAAkE,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,4DAA4D,GAAG,aAAa,CAAC;IACvF;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,kEAAkE,CAAA;IAC1E;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
-
import type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './Config.ts';
|
|
4
|
-
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig>>;
|
|
5
|
-
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,4DAA4D,EAAE,MAAM,aAAa,CAAA;AAE/F,MAAM,MAAM,4DAA4D,GAAG,aAAa,CACtF,eAAe,CAAC,4DAA4D,CAAC,CAC9E,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema: string & {
|
|
2
|
-
readonly __schema: true;
|
|
3
|
-
};
|
|
4
|
-
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema;
|
|
5
|
-
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4DAA4D;;CACwB,CAAA;AAEjG,MAAM,MAAM,4DAA4D,GAAG,OAAO,4DAA4D,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
|
|
2
|
-
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
-
export declare const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema: string & {
|
|
4
|
-
readonly __schema: true;
|
|
5
|
-
};
|
|
6
|
-
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema;
|
|
7
|
-
/**
|
|
8
|
-
* Diviner Config for a Diviner which transforms Index Candidates to Indexes
|
|
9
|
-
*/
|
|
10
|
-
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{
|
|
11
|
-
/**
|
|
12
|
-
* The config schema
|
|
13
|
-
*/
|
|
14
|
-
schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema;
|
|
15
|
-
/**
|
|
16
|
-
* The transforms to apply to the source payloads
|
|
17
|
-
*/
|
|
18
|
-
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
19
|
-
}>;
|
|
20
|
-
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAK/D,eAAO,MAAM,+DAA+D;;CACa,CAAA;AAEzF,MAAM,MAAM,+DAA+D,GAAG,OAAO,+DAA+D,CAAA;AAEpJ;;GAEG;AACH,MAAM,MAAM,yDAAyD,GAAG,aAAa,CAAC;IACpF;;OAEG;IACH,MAAM,EAAE,+DAA+D,CAAA;IACvE;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
-
import type { TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig } from './Config.ts';
|
|
4
|
-
/**
|
|
5
|
-
* Diviner Params for a Diviner which transforms Index Candidates to Indexes
|
|
6
|
-
*/
|
|
7
|
-
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig>>;
|
|
8
|
-
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,aAAa,CAAA;AAE5F;;GAEG;AACH,MAAM,MAAM,yDAAyD,GAAG,aAAa,CACnF,eAAe,CAAC,yDAAyD,CAAC,CAC3E,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema: string & {
|
|
2
|
-
readonly __schema: true;
|
|
3
|
-
};
|
|
4
|
-
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema;
|
|
5
|
-
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yDAAyD;;CACuB,CAAA;AAE7F,MAAM,MAAM,yDAAyD,GAAG,OAAO,yDAAyD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
|
|
2
|
-
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
-
export declare const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema: string & {
|
|
4
|
-
readonly __schema: true;
|
|
5
|
-
};
|
|
6
|
-
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema;
|
|
7
|
-
/**
|
|
8
|
-
* Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response
|
|
9
|
-
*/
|
|
10
|
-
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{
|
|
11
|
-
/**
|
|
12
|
-
* The config schema
|
|
13
|
-
*/
|
|
14
|
-
schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema;
|
|
15
|
-
/**
|
|
16
|
-
* The transforms to apply to the source payloads
|
|
17
|
-
*/
|
|
18
|
-
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
19
|
-
}>;
|
|
20
|
-
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAK/D,eAAO,MAAM,kFAAkF;;CACa,CAAA;AAE5G,MAAM,MAAM,kFAAkF,GAC1F,OAAO,kFAAkF,CAAA;AAE7F;;GAEG;AACH,MAAM,MAAM,4EAA4E,GAAG,aAAa,CAAC;IACvG;;OAEG;IACH,MAAM,EAAE,kFAAkF,CAAA;IAC1F;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
-
import type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './Config.ts';
|
|
4
|
-
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig>>;
|
|
5
|
-
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,4EAA4E,EAAE,MAAM,aAAa,CAAA;AAE/G,MAAM,MAAM,4EAA4E,GAAG,aAAa,CACtG,eAAe,CAAC,4EAA4E,CAAC,CAC9F,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: string & {
|
|
2
|
-
readonly __schema: true;
|
|
3
|
-
};
|
|
4
|
-
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema;
|
|
5
|
-
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4EAA4E;;CAC0B,CAAA;AAEnH,MAAM,MAAM,4EAA4E,GAAG,OAAO,4EAA4E,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
package/dist/browser/Params.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
-
import type { TemporalIndexingDivinerConfig } from './Config.ts';
|
|
4
|
-
export type TemporalIndexingDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerConfig>>;
|
|
5
|
-
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAGhE,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/sdk-js';
|
|
2
|
-
import type { Payload } from '@xyo-network/sdk-protocol-js';
|
|
3
|
-
import { TemporalIndexingDivinerResultSchema } from './Schema.ts';
|
|
4
|
-
export type TemporalIndexingDivinerResult = Payload<{
|
|
5
|
-
sources: Hash[];
|
|
6
|
-
timestamp: string;
|
|
7
|
-
}, TemporalIndexingDivinerResultSchema>;
|
|
8
|
-
export declare const isTemporalIndexingDivinerResult: (x?: unknown) => x is TemporalIndexingDivinerResult;
|
|
9
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AAEjE,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,IAAI,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B,qDAA4F,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Result/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mCAAmC;;CAA4D,CAAA;AAC5G,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Result/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources } from '@xyo-network/sdk-protocol-js';
|
|
2
|
-
import { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts';
|
|
3
|
-
export type TemporalIndexingDivinerResultIndex = PayloadWithSources<{
|
|
4
|
-
timestamp: number;
|
|
5
|
-
}, TemporalIndexingDivinerResultIndexSchema>;
|
|
6
|
-
export declare const isTemporalIndexingDivinerResultIndex: (x?: unknown) => x is TemporalIndexingDivinerResultIndex;
|
|
7
|
-
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGtE,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAA;AAEtE,MAAM,MAAM,kCAAkC,GAAG,kBAAkB,CACjE;IACE,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AAED,eAAO,MAAM,oCAAoC,0DAEhD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,wCAAwC;;CAAiE,CAAA;AACtH,MAAM,MAAM,wCAAwC,GAAG,OAAO,wCAAwC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
package/dist/browser/Schema.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,6BAA6B;;CAAsD,CAAA;AAChG,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness/model';
|
|
2
|
-
import type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model';
|
|
3
|
-
export declare const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema: string & {
|
|
4
|
-
readonly __schema: true;
|
|
5
|
-
};
|
|
6
|
-
export type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema;
|
|
7
|
-
/**
|
|
8
|
-
* Diviner Config for a Diviner which transforms a Diviner State to Index Candidates
|
|
9
|
-
*/
|
|
10
|
-
export type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{
|
|
11
|
-
/**
|
|
12
|
-
* The filter to use to identify index candidates
|
|
13
|
-
*/
|
|
14
|
-
filter?: BoundWitnessDivinerPredicate;
|
|
15
|
-
/**
|
|
16
|
-
* The maximum number of payloads to index at a time
|
|
17
|
-
*/
|
|
18
|
-
payloadDivinerLimit?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Where the diviner should look for stored thumbnails
|
|
21
|
-
*/
|
|
22
|
-
payloadStore?: SearchableStorage;
|
|
23
|
-
/**
|
|
24
|
-
* The config schema
|
|
25
|
-
*/
|
|
26
|
-
schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema;
|
|
27
|
-
}>;
|
|
28
|
-
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAA;AAC3F,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAKlF,eAAO,MAAM,+DAA+D;;CACa,CAAA;AAEzF,MAAM,MAAM,+DAA+D,GAAG,OAAO,+DAA+D,CAAA;AAEpJ;;GAEG;AACH,MAAM,MAAM,yDAAyD,GAAG,aAAa,CAAC;IACpF;;OAEG;IACH,MAAM,CAAC,EAAE,4BAA4B,CAAA;IACrC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC;;OAEG;IACH,MAAM,EAAE,+DAA+D,CAAA;CACxE,CAAC,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
-
import type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './Config.ts';
|
|
4
|
-
export type TemporalIndexingDivinerStateToIndexCandidateDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig>>;
|
|
5
|
-
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,aAAa,CAAA;AAE5F,MAAM,MAAM,yDAAyD,GAAG,aAAa,CACnF,eAAe,CAAC,yDAAyD,CAAC,CAC3E,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema: string & {
|
|
2
|
-
readonly __schema: true;
|
|
3
|
-
};
|
|
4
|
-
export type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema;
|
|
5
|
-
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yDAAyD;;CACuB,CAAA;AAE7F,MAAM,MAAM,yDAAyD,GAAG,OAAO,yDAAyD,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|