@xyo-network/diviner-temporal-indexing-model 3.6.3 → 3.6.5

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.
@@ -1,5 +1,6 @@
1
1
  import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model';
3
+ import type { Schema } from '@xyo-network/payload-model';
3
4
  import { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts';
4
5
  export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`;
5
6
  export declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema;
@@ -10,15 +11,15 @@ export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = Divin
10
11
  /**
11
12
  * The schema of the diviner query payloads
12
13
  */
13
- divinerQuerySchema?: string;
14
+ divinerQuerySchema?: Schema;
14
15
  /**
15
16
  * The schema of the index query payloads
16
17
  */
17
- indexQuerySchema?: string;
18
+ indexQuerySchema?: Schema;
18
19
  /**
19
20
  * The schema of the index payloads
20
21
  */
21
- indexSchema?: string;
22
+ indexSchema?: Schema;
22
23
  /**
23
24
  * The config schema
24
25
  */
@@ -1 +1 @@
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;AAE/D,OAAO,EAAE,4DAA4D,EAAE,MAAM,aAAa,CAAA;AAE1F,MAAM,MAAM,kEAAkE,GAC5E,GAAG,4DAA4D,SAAS,CAAA;AAC1E,eAAO,MAAM,kEAAkE,EAAE,kEACP,CAAA;AAE1E;;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
+ {"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,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,4DAA4D,EAAE,MAAM,aAAa,CAAA;AAE1F,MAAM,MAAM,kEAAkE,GAC5E,GAAG,4DAA4D,SAAS,CAAA;AAC1E,eAAO,MAAM,kEAAkE,EAAE,kEACP,CAAA;AAE1E;;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 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts"],"sourcesContent":["import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\n\nexport const TemporalIndexingDivinerSchema = `${IndexingDivinerSchema}.temporal` as const\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","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'\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 = `${TemporalIndexingDivinerSchema}.config` as const\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = {\n [key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary\n}\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema =\n `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n= `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\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?: string\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: string\n /**\n * The schema of the index payloads\n */\n indexSchema?: string\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n= `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema =\n `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema =\n `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\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 type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result` as const\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = Payload<\n {\n sources: Hash[]\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index` as const\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n= `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\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"],"mappings":";AAAA,SAASA,6BAA6B;AAE/B,IAAMC,gCAAgC,GAAGD,qBAAAA;;;ACOzC,IAAME,sCAAsC,GAAGC,6BAAAA;;;ACN/C,IAAMC,+DACX,GAAGC,6BAAAA;;;ACGE,IAAMC,qEACX,GAAGC,4DAAAA;;;ACLE,IAAMC,4DACV,GAAGC,6BAAAA;;;ACEC,IAAMC,kEACX,GAAGC,yDAAAA;;;ACFE,IAAMC,+EACX,GAAGC,6BAAAA;;;ACEE,IAAMC,qFACV,GAAGC,4EAAAA;;;ACPN,SAASC,6BAA6B;;;ACA/B,IAAMC,sCAAsC,GAAGC,6BAAAA;;;ADW/C,IAAMC,kCAAkCC,sBAAqDC,mCAAAA;;;AEXpG,SAASC,yBAAAA,8BAA6B;;;ACA/B,IAAMC,2CAA2C,GAAGC,mCAAAA;;;ADYpD,IAAMC,uCAAuCC,uBAClDC,wCAAAA;;;AEZK,IAAMC,4DACX,GAAGC,6BAAAA;;;ACEE,IAAMC,kEACX,GAAGC,yDAAAA;","names":["IndexingDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerConfigSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","TemporalIndexingDivinerSchema","isTemporalIndexingDivinerResult","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerResultSchema","isTemporalIndexingDivinerResultIndex","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema"]}
1
+ {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts"],"sourcesContent":["import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\n\nexport const TemporalIndexingDivinerSchema = `${IndexingDivinerSchema}.temporal` as const\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","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'\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 = `${TemporalIndexingDivinerSchema}.config` as const\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = {\n [key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary\n}\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema =\n `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n= `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n= `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema =\n `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema =\n `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\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 type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result` as const\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = Payload<\n {\n sources: Hash[]\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index` as const\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n= `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\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"],"mappings":";AAAA,SAASA,6BAA6B;AAE/B,IAAMC,gCAAgC,GAAGD,qBAAAA;;;ACOzC,IAAME,sCAAsC,GAAGC,6BAAAA;;;ACN/C,IAAMC,+DACX,GAAGC,6BAAAA;;;ACIE,IAAMC,qEACX,GAAGC,4DAAAA;;;ACNE,IAAMC,4DACV,GAAGC,6BAAAA;;;ACEC,IAAMC,kEACX,GAAGC,yDAAAA;;;ACFE,IAAMC,+EACX,GAAGC,6BAAAA;;;ACEE,IAAMC,qFACV,GAAGC,4EAAAA;;;ACPN,SAASC,6BAA6B;;;ACA/B,IAAMC,sCAAsC,GAAGC,6BAAAA;;;ADW/C,IAAMC,kCAAkCC,sBAAqDC,mCAAAA;;;AEXpG,SAASC,yBAAAA,8BAA6B;;;ACA/B,IAAMC,2CAA2C,GAAGC,mCAAAA;;;ADYpD,IAAMC,uCAAuCC,uBAClDC,wCAAAA;;;AEZK,IAAMC,4DACX,GAAGC,6BAAAA;;;ACEE,IAAMC,kEACX,GAAGC,yDAAAA;","names":["IndexingDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerConfigSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","TemporalIndexingDivinerSchema","isTemporalIndexingDivinerResult","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerResultSchema","isTemporalIndexingDivinerResultIndex","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema"]}
@@ -1,5 +1,6 @@
1
1
  import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model';
3
+ import type { Schema } from '@xyo-network/payload-model';
3
4
  import { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts';
4
5
  export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`;
5
6
  export declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema;
@@ -10,15 +11,15 @@ export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = Divin
10
11
  /**
11
12
  * The schema of the diviner query payloads
12
13
  */
13
- divinerQuerySchema?: string;
14
+ divinerQuerySchema?: Schema;
14
15
  /**
15
16
  * The schema of the index query payloads
16
17
  */
17
- indexQuerySchema?: string;
18
+ indexQuerySchema?: Schema;
18
19
  /**
19
20
  * The schema of the index payloads
20
21
  */
21
- indexSchema?: string;
22
+ indexSchema?: Schema;
22
23
  /**
23
24
  * The config schema
24
25
  */
@@ -1 +1 @@
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;AAE/D,OAAO,EAAE,4DAA4D,EAAE,MAAM,aAAa,CAAA;AAE1F,MAAM,MAAM,kEAAkE,GAC5E,GAAG,4DAA4D,SAAS,CAAA;AAC1E,eAAO,MAAM,kEAAkE,EAAE,kEACP,CAAA;AAE1E;;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
+ {"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,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,4DAA4D,EAAE,MAAM,aAAa,CAAA;AAE1F,MAAM,MAAM,kEAAkE,GAC5E,GAAG,4DAA4D,SAAS,CAAA;AAC1E,eAAO,MAAM,kEAAkE,EAAE,kEACP,CAAA;AAE1E;;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 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts"],"sourcesContent":["import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\n\nexport const TemporalIndexingDivinerSchema = `${IndexingDivinerSchema}.temporal` as const\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","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'\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 = `${TemporalIndexingDivinerSchema}.config` as const\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = {\n [key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary\n}\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema =\n `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n= `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\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?: string\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: string\n /**\n * The schema of the index payloads\n */\n indexSchema?: string\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n= `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema =\n `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema =\n `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\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 type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result` as const\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = Payload<\n {\n sources: Hash[]\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index` as const\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n= `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\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"],"mappings":";AAAA,SAASA,6BAA6B;AAE/B,IAAMC,gCAAgC,GAAGD,qBAAAA;;;ACOzC,IAAME,sCAAsC,GAAGC,6BAAAA;;;ACN/C,IAAMC,+DACX,GAAGC,6BAAAA;;;ACGE,IAAMC,qEACX,GAAGC,4DAAAA;;;ACLE,IAAMC,4DACV,GAAGC,6BAAAA;;;ACEC,IAAMC,kEACX,GAAGC,yDAAAA;;;ACFE,IAAMC,+EACX,GAAGC,6BAAAA;;;ACEE,IAAMC,qFACV,GAAGC,4EAAAA;;;ACPN,SAASC,6BAA6B;;;ACA/B,IAAMC,sCAAsC,GAAGC,6BAAAA;;;ADW/C,IAAMC,kCAAkCC,sBAAqDC,mCAAAA;;;AEXpG,SAASC,yBAAAA,8BAA6B;;;ACA/B,IAAMC,2CAA2C,GAAGC,mCAAAA;;;ADYpD,IAAMC,uCAAuCC,uBAClDC,wCAAAA;;;AEZK,IAAMC,4DACX,GAAGC,6BAAAA;;;ACEE,IAAMC,kEACX,GAAGC,yDAAAA;","names":["IndexingDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerConfigSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","TemporalIndexingDivinerSchema","isTemporalIndexingDivinerResult","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerResultSchema","isTemporalIndexingDivinerResultIndex","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema"]}
1
+ {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts"],"sourcesContent":["import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\n\nexport const TemporalIndexingDivinerSchema = `${IndexingDivinerSchema}.temporal` as const\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","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'\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 = `${TemporalIndexingDivinerSchema}.config` as const\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = {\n [key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary\n}\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema =\n `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n= `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n= `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema =\n `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema =\n `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\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 type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result` as const\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = Payload<\n {\n sources: Hash[]\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index` as const\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n= `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\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"],"mappings":";AAAA,SAASA,6BAA6B;AAE/B,IAAMC,gCAAgC,GAAGD,qBAAAA;;;ACOzC,IAAME,sCAAsC,GAAGC,6BAAAA;;;ACN/C,IAAMC,+DACX,GAAGC,6BAAAA;;;ACIE,IAAMC,qEACX,GAAGC,4DAAAA;;;ACNE,IAAMC,4DACV,GAAGC,6BAAAA;;;ACEC,IAAMC,kEACX,GAAGC,yDAAAA;;;ACFE,IAAMC,+EACX,GAAGC,6BAAAA;;;ACEE,IAAMC,qFACV,GAAGC,4EAAAA;;;ACPN,SAASC,6BAA6B;;;ACA/B,IAAMC,sCAAsC,GAAGC,6BAAAA;;;ADW/C,IAAMC,kCAAkCC,sBAAqDC,mCAAAA;;;AEXpG,SAASC,yBAAAA,8BAA6B;;;ACA/B,IAAMC,2CAA2C,GAAGC,mCAAAA;;;ADYpD,IAAMC,uCAAuCC,uBAClDC,wCAAAA;;;AEZK,IAAMC,4DACX,GAAGC,6BAAAA;;;ACEE,IAAMC,kEACX,GAAGC,yDAAAA;","names":["IndexingDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerConfigSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","TemporalIndexingDivinerSchema","isTemporalIndexingDivinerResult","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerResultSchema","isTemporalIndexingDivinerResultIndex","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema"]}
@@ -1,5 +1,6 @@
1
1
  import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model';
3
+ import type { Schema } from '@xyo-network/payload-model';
3
4
  import { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts';
4
5
  export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`;
5
6
  export declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema;
@@ -10,15 +11,15 @@ export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = Divin
10
11
  /**
11
12
  * The schema of the diviner query payloads
12
13
  */
13
- divinerQuerySchema?: string;
14
+ divinerQuerySchema?: Schema;
14
15
  /**
15
16
  * The schema of the index query payloads
16
17
  */
17
- indexQuerySchema?: string;
18
+ indexQuerySchema?: Schema;
18
19
  /**
19
20
  * The schema of the index payloads
20
21
  */
21
- indexSchema?: string;
22
+ indexSchema?: Schema;
22
23
  /**
23
24
  * The config schema
24
25
  */
@@ -1 +1 @@
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;AAE/D,OAAO,EAAE,4DAA4D,EAAE,MAAM,aAAa,CAAA;AAE1F,MAAM,MAAM,kEAAkE,GAC5E,GAAG,4DAA4D,SAAS,CAAA;AAC1E,eAAO,MAAM,kEAAkE,EAAE,kEACP,CAAA;AAE1E;;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
+ {"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,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,4DAA4D,EAAE,MAAM,aAAa,CAAA;AAE1F,MAAM,MAAM,kEAAkE,GAC5E,GAAG,4DAA4D,SAAS,CAAA;AAC1E,eAAO,MAAM,kEAAkE,EAAE,kEACP,CAAA;AAE1E;;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 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts"],"sourcesContent":["import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\n\nexport const TemporalIndexingDivinerSchema = `${IndexingDivinerSchema}.temporal` as const\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","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'\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 = `${TemporalIndexingDivinerSchema}.config` as const\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = {\n [key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary\n}\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema =\n `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n= `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\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?: string\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: string\n /**\n * The schema of the index payloads\n */\n indexSchema?: string\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n= `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema =\n `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema =\n `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\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 type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result` as const\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = Payload<\n {\n sources: Hash[]\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index` as const\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n= `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\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"],"mappings":";AAAA,SAASA,6BAA6B;AAE/B,IAAMC,gCAAgC,GAAGD,qBAAAA;;;ACOzC,IAAME,sCAAsC,GAAGC,6BAAAA;;;ACN/C,IAAMC,+DACX,GAAGC,6BAAAA;;;ACGE,IAAMC,qEACX,GAAGC,4DAAAA;;;ACLE,IAAMC,4DACV,GAAGC,6BAAAA;;;ACEC,IAAMC,kEACX,GAAGC,yDAAAA;;;ACFE,IAAMC,+EACX,GAAGC,6BAAAA;;;ACEE,IAAMC,qFACV,GAAGC,4EAAAA;;;ACPN,SAASC,6BAA6B;;;ACA/B,IAAMC,sCAAsC,GAAGC,6BAAAA;;;ADW/C,IAAMC,kCAAkCC,sBAAqDC,mCAAAA;;;AEXpG,SAASC,yBAAAA,8BAA6B;;;ACA/B,IAAMC,2CAA2C,GAAGC,mCAAAA;;;ADYpD,IAAMC,uCAAuCC,uBAClDC,wCAAAA;;;AEZK,IAAMC,4DACX,GAAGC,6BAAAA;;;ACEE,IAAMC,kEACX,GAAGC,yDAAAA;","names":["IndexingDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerConfigSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","TemporalIndexingDivinerSchema","isTemporalIndexingDivinerResult","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerResultSchema","isTemporalIndexingDivinerResultIndex","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema"]}
1
+ {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts"],"sourcesContent":["import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\n\nexport const TemporalIndexingDivinerSchema = `${IndexingDivinerSchema}.temporal` as const\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","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'\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 = `${TemporalIndexingDivinerSchema}.config` as const\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = {\n [key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary\n}\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema =\n `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n= `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n= `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema =\n `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema =\n `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\n// eslint-disable-next-line @stylistic/max-len\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`\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 type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\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 { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = `${TemporalIndexingDivinerSchema}.result` as const\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { Hash } from '@xylabs/hex'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = Payload<\n {\n sources: Hash[]\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = `${TemporalIndexingDivinerResultSchema}.index` as const\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n= `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n= `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`\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"],"mappings":";AAAA,SAASA,6BAA6B;AAE/B,IAAMC,gCAAgC,GAAGD,qBAAAA;;;ACOzC,IAAME,sCAAsC,GAAGC,6BAAAA;;;ACN/C,IAAMC,+DACX,GAAGC,6BAAAA;;;ACIE,IAAMC,qEACX,GAAGC,4DAAAA;;;ACNE,IAAMC,4DACV,GAAGC,6BAAAA;;;ACEC,IAAMC,kEACX,GAAGC,yDAAAA;;;ACFE,IAAMC,+EACX,GAAGC,6BAAAA;;;ACEE,IAAMC,qFACV,GAAGC,4EAAAA;;;ACPN,SAASC,6BAA6B;;;ACA/B,IAAMC,sCAAsC,GAAGC,6BAAAA;;;ADW/C,IAAMC,kCAAkCC,sBAAqDC,mCAAAA;;;AEXpG,SAASC,yBAAAA,8BAA6B;;;ACA/B,IAAMC,2CAA2C,GAAGC,mCAAAA;;;ADYpD,IAAMC,uCAAuCC,uBAClDC,wCAAAA;;;AEZK,IAAMC,4DACX,GAAGC,6BAAAA;;;ACEE,IAAMC,kEACX,GAAGC,yDAAAA;","names":["IndexingDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerConfigSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema","TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema","TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema","TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","TemporalIndexingDivinerSchema","isTemporalIndexingDivinerResult","isPayloadOfSchemaType","TemporalIndexingDivinerResultSchema","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerResultSchema","isTemporalIndexingDivinerResultIndex","isPayloadOfSchemaType","TemporalIndexingDivinerResultIndexSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema","TemporalIndexingDivinerSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema","TemporalIndexingDivinerStateToIndexCandidateDivinerSchema"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-temporal-indexing-model",
3
- "version": "3.6.3",
3
+ "version": "3.6.5",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,13 +29,13 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/hex": "^4.4.26",
33
- "@xyo-network/diviner-boundwitness-model": "^3.6.3",
34
- "@xyo-network/diviner-indexing-model": "^3.6.3",
35
- "@xyo-network/diviner-jsonpath-model": "^3.6.3",
36
- "@xyo-network/diviner-model": "^3.6.3",
37
- "@xyo-network/module-model": "^3.6.3",
38
- "@xyo-network/payload-model": "^3.6.3"
32
+ "@xylabs/hex": "^4.4.27",
33
+ "@xyo-network/diviner-boundwitness-model": "^3.6.5",
34
+ "@xyo-network/diviner-indexing-model": "^3.6.5",
35
+ "@xyo-network/diviner-jsonpath-model": "^3.6.5",
36
+ "@xyo-network/diviner-model": "^3.6.5",
37
+ "@xyo-network/module-model": "^3.6.5",
38
+ "@xyo-network/payload-model": "^3.6.5"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@xylabs/ts-scripts-yarn3": "^4.2.6",
@@ -1,5 +1,6 @@
1
1
  import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model'
3
+ import type { Schema } from '@xyo-network/payload-model'
3
4
 
4
5
  import { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'
5
6
 
@@ -15,15 +16,15 @@ export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = Divin
15
16
  /**
16
17
  * The schema of the diviner query payloads
17
18
  */
18
- divinerQuerySchema?: string
19
+ divinerQuerySchema?: Schema
19
20
  /**
20
21
  * The schema of the index query payloads
21
22
  */
22
- indexQuerySchema?: string
23
+ indexQuerySchema?: Schema
23
24
  /**
24
25
  * The schema of the index payloads
25
26
  */
26
- indexSchema?: string
27
+ indexSchema?: Schema
27
28
  /**
28
29
  * The config schema
29
30
  */