@xyo-network/diviner-temporal-indexing-model 5.3.29 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -574
- package/dist/browser/Config.d.ts +1 -3
- package/dist/browser/Config.d.ts.map +1 -1
- package/dist/browser/DivinerQueryToIndexQueryDiviner/Schema.d.ts.map +1 -1
- package/dist/browser/IndexCandidateToIndexDiviner/Schema.d.ts.map +1 -1
- package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts +4 -3
- package/dist/browser/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts.map +1 -1
- package/dist/browser/StateToIndexCandidateDiviner/Schema.d.ts.map +1 -1
- package/dist/browser/index.mjs +14 -13
- package/dist/browser/index.mjs.map +1 -1
- package/dist/neutral/Config.d.ts +1 -3
- package/dist/neutral/Config.d.ts.map +1 -1
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/Schema.d.ts.map +1 -1
- package/dist/neutral/IndexCandidateToIndexDiviner/Schema.d.ts.map +1 -1
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts +4 -3
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts.map +1 -1
- package/dist/neutral/StateToIndexCandidateDiviner/Schema.d.ts.map +1 -1
- package/dist/neutral/index.mjs +14 -13
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/node/Config.d.ts +1 -3
- package/dist/node/Config.d.ts.map +1 -1
- package/dist/node/DivinerQueryToIndexQueryDiviner/Schema.d.ts.map +1 -1
- package/dist/node/IndexCandidateToIndexDiviner/Schema.d.ts.map +1 -1
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts +4 -3
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts.map +1 -1
- package/dist/node/StateToIndexCandidateDiviner/Schema.d.ts.map +1 -1
- package/dist/node/index.mjs +14 -13
- package/dist/node/index.mjs.map +1 -1
- package/package.json +16 -20
package/dist/browser/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { asSchema as asSchema4 } from "@xyo-network/payload-model";
|
|
|
14
14
|
|
|
15
15
|
// src/DivinerQueryToIndexQueryDiviner/Schema.ts
|
|
16
16
|
import { asSchema as asSchema3 } from "@xyo-network/payload-model";
|
|
17
|
-
var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = asSchema3(`${TemporalIndexingDivinerSchema}.stage.
|
|
17
|
+
var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = asSchema3(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true);
|
|
18
18
|
|
|
19
19
|
// src/DivinerQueryToIndexQueryDiviner/Config.ts
|
|
20
20
|
var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = asSchema4(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true);
|
|
@@ -24,26 +24,27 @@ import { asSchema as asSchema6 } from "@xyo-network/payload-model";
|
|
|
24
24
|
|
|
25
25
|
// src/IndexCandidateToIndexDiviner/Schema.ts
|
|
26
26
|
import { asSchema as asSchema5 } from "@xyo-network/payload-model";
|
|
27
|
-
var TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = asSchema5(`${TemporalIndexingDivinerSchema}.stage.
|
|
27
|
+
var TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = asSchema5(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true);
|
|
28
28
|
|
|
29
29
|
// src/IndexCandidateToIndexDiviner/Config.ts
|
|
30
30
|
var TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = asSchema6(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true);
|
|
31
31
|
|
|
32
32
|
// src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
|
|
33
|
-
import { asSchema as
|
|
33
|
+
import { asSchema as asSchema8 } from "@xyo-network/payload-model";
|
|
34
34
|
|
|
35
35
|
// src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts
|
|
36
|
-
|
|
36
|
+
import { asSchema as asSchema7 } from "@xyo-network/payload-model";
|
|
37
|
+
var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = asSchema7(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true);
|
|
37
38
|
|
|
38
39
|
// src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
|
|
39
|
-
var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema =
|
|
40
|
+
var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema = asSchema8(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true);
|
|
40
41
|
|
|
41
42
|
// src/Result/Payload.ts
|
|
42
43
|
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
43
44
|
|
|
44
45
|
// src/Result/Schema.ts
|
|
45
|
-
import { asSchema as
|
|
46
|
-
var TemporalIndexingDivinerResultSchema =
|
|
46
|
+
import { asSchema as asSchema9 } from "@xyo-network/payload-model";
|
|
47
|
+
var TemporalIndexingDivinerResultSchema = asSchema9(`${TemporalIndexingDivinerSchema}.result`, true);
|
|
47
48
|
|
|
48
49
|
// src/Result/Payload.ts
|
|
49
50
|
var isTemporalIndexingDivinerResult = isPayloadOfSchemaType(TemporalIndexingDivinerResultSchema);
|
|
@@ -52,8 +53,8 @@ var isTemporalIndexingDivinerResult = isPayloadOfSchemaType(TemporalIndexingDivi
|
|
|
52
53
|
import { isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/payload-model";
|
|
53
54
|
|
|
54
55
|
// src/ResultIndex/Schema.ts
|
|
55
|
-
import { asSchema as
|
|
56
|
-
var TemporalIndexingDivinerResultIndexSchema =
|
|
56
|
+
import { asSchema as asSchema10 } from "@xyo-network/payload-model";
|
|
57
|
+
var TemporalIndexingDivinerResultIndexSchema = asSchema10(`${TemporalIndexingDivinerResultSchema}.index`, true);
|
|
57
58
|
|
|
58
59
|
// src/ResultIndex/Payload.ts
|
|
59
60
|
var isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType2(
|
|
@@ -61,14 +62,14 @@ var isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType2(
|
|
|
61
62
|
);
|
|
62
63
|
|
|
63
64
|
// src/StateToIndexCandidateDiviner/Config.ts
|
|
64
|
-
import { asSchema as
|
|
65
|
+
import { asSchema as asSchema12 } from "@xyo-network/payload-model";
|
|
65
66
|
|
|
66
67
|
// src/StateToIndexCandidateDiviner/Schema.ts
|
|
67
|
-
import { asSchema as
|
|
68
|
-
var TemporalIndexingDivinerStateToIndexCandidateDivinerSchema =
|
|
68
|
+
import { asSchema as asSchema11 } from "@xyo-network/payload-model";
|
|
69
|
+
var TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = asSchema11(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true);
|
|
69
70
|
|
|
70
71
|
// src/StateToIndexCandidateDiviner/Config.ts
|
|
71
|
-
var TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema =
|
|
72
|
+
var TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = asSchema12(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true);
|
|
72
73
|
export {
|
|
73
74
|
TemporalIndexingDivinerConfigSchema,
|
|
74
75
|
TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts","../../src/StateToIndexCandidateDiviner/Schema.ts"],"sourcesContent":["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-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 = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\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 { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n","import type { Hash } from '@xylabs/sdk-js'\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 { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { PayloadWithSources } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],"mappings":";AAGA,SAAS,YAAAA,iBAAgB;;;ACHzB,SAAS,6BAA6B;AACtC,SAAS,gBAAgB;AAElB,IAAM,gCAAgC,SAAS,GAAG,qBAAqB,aAAa,IAAI;;;ADOxF,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;AER3G,SAAS,YAAAC,iBAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+DACTC,UAAS,GAAG,6BAA6B,0CAA0C,IAAI;;;ADCpF,IAAM,qEACTC,UAAS,GAAG,4DAA4D,WAAW,IAAI;;;AEL3F,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,4DACTC,UAAS,GAAG,6BAA6B,uCAAuC,IAAI;;;ADCjF,IAAM,kEACTC,UAAS,GAAG,yDAAyD,WAAW,IAAI;;;AELxF,SAAS,YAAAC,iBAAgB;;;ACGlB,IAAM,+EACT,GAAG,6BAA6B;;;ADA7B,IAAM,qFACTC,UAAS,GAAG,4EAA4E,WAAW,IAAI;;;AEL3G,SAAS,6BAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;ADSpG,IAAM,kCAAkC,sBAAqD,mCAAmC;;;AEZvI,SAAS,yBAAAC,8BAA6B;;;ACDtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,2CAA2CC,UAAS,GAAG,mCAAmC,UAAU,IAAI;;;ADQ9G,IAAM,uCAAuCC;AAAA,EAClD;AACF;;;AEZA,SAAS,YAAAC,kBAAgB;;;ACFzB,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,4DACTC,WAAS,GAAG,6BAA6B,uCAAuC,IAAI;;;ADCjF,IAAM,kEACTC,WAAS,GAAG,yDAAyD,WAAW,IAAI;","names":["asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","asSchema","asSchema"]}
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts","../../src/StateToIndexCandidateDiviner/Schema.ts"],"sourcesContent":["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-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 = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\n /**\n * Where the diviner should store it's index\n */\n indexStore?: SearchableStorage\n /**\n * Config section for name/address of individual diviner stages\n */\n indexingDivinerStages?: IndexingDivinerStageConfig\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * How often to poll for new payloads to index\n */\n pollFrequency?: number\n /**\n * The schema for this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n","import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n","import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/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 { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { PayloadWithSources } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],"mappings":";AAGA,SAAS,YAAAA,iBAAgB;;;ACHzB,SAAS,6BAA6B;AACtC,SAAS,gBAAgB;AAElB,IAAM,gCAAgC,SAAS,GAAG,qBAAqB,aAAa,IAAI;;;ADOxF,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;AER3G,SAAS,YAAAC,iBAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+DACTC,UAAS,GAAG,6BAA6B,+CAA+C,IAAI;;;ADCzF,IAAM,qEACTC,UAAS,GAAG,4DAA4D,WAAW,IAAI;;;AEL3F,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,4DACTC,UAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,UAAS,GAAG,yDAAyD,WAAW,IAAI;;;AELxF,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+EACTC,UAAS,GAAG,6BAA6B,iEAAiE,IAAI;;;ADC3G,IAAM,qFACTC,UAAS,GAAG,4EAA4E,WAAW,IAAI;;;AEL3G,SAAS,6BAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;ADSpG,IAAM,kCAAkC,sBAAqD,mCAAmC;;;AEZvI,SAAS,yBAAAC,8BAA6B;;;ACDtC,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,2CAA2CC,WAAS,GAAG,mCAAmC,UAAU,IAAI;;;ADQ9G,IAAM,uCAAuCC;AAAA,EAClD;AACF;;;AEZA,SAAS,YAAAC,kBAAgB;;;ACFzB,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,4DACTC,WAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,WAAS,GAAG,yDAAyD,WAAW,IAAI;","names":["asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","asSchema","asSchema"]}
|
package/dist/neutral/Config.d.ts
CHANGED
|
@@ -11,9 +11,7 @@ export type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDiviner
|
|
|
11
11
|
/**
|
|
12
12
|
* Config section for declaring each indexing diviner stage
|
|
13
13
|
*/
|
|
14
|
-
export type IndexingDivinerStageTransformConfig =
|
|
15
|
-
[key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary;
|
|
16
|
-
};
|
|
14
|
+
export type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>;
|
|
17
15
|
/**
|
|
18
16
|
* Diviner Config for a Diviner which Indexes Payloads
|
|
19
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AAC3G,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAGlF,OAAO,KAAK,EAAE,4DAA4D,EAAE,MAAM,4CAA4C,CAAA;AAC9H,OAAO,KAAK,EAAE,4EAA4E,EAAE,MAAM,4DAA4D,CAAA;AAE9J,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,yCAAyC,CAAA;AAExH,eAAO,MAAM,mCAAmC;;CAA4D,CAAA;AAC5G,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA;AAE5F;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AAC3G,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAGlF,OAAO,KAAK,EAAE,4DAA4D,EAAE,MAAM,4CAA4C,CAAA;AAC9H,OAAO,KAAK,EAAE,4EAA4E,EAAE,MAAM,4DAA4D,CAAA;AAE9J,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,yCAAyC,CAAA;AAExH,eAAO,MAAM,mCAAmC;;CAA4D,CAAA;AAC5G,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA;AAE5F;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,MAAM,CAAC,oBAAoB,EAAE,8CAA8C,CAAC,CAAA;AAG9H;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC;IACxD;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,mCAAmC,CAAA;IAC3C;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,+BAA+B,CAAC,EAAE,IAAI,CAAC,4DAA4D,EAAE,QAAQ,CAAC,CAAA;QAC9G,4BAA4B,CAAC,EAAE,IAAI,CAAC,4DAA4D,EAAE,QAAQ,CAAC,CAAA;QAC3G,+CAA+C,CAAC,EAAE,IAAI,CAAC,4EAA4E,EAAE,QAAQ,CAAC,CAAA;QAC9I,4BAA4B,CAAC,EAAE,IAAI,CAAC,yDAAyD,EAAE,QAAQ,CAAC,CAAA;KACzG,CAAA;IACD;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4DAA4D;;
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4DAA4D;;CACwB,CAAA;AAEjG,MAAM,MAAM,4DAA4D,GAAG,OAAO,4DAA4D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yDAAyD;;
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yDAAyD;;CACuB,CAAA;AAE7F,MAAM,MAAM,yDAAyD,GAAG,OAAO,yDAAyD,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: string & {
|
|
2
|
+
readonly __schema: true;
|
|
3
|
+
};
|
|
4
|
+
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema;
|
|
4
5
|
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4EAA4E;;CAC0B,CAAA;AAEnH,MAAM,MAAM,4EAA4E,GAAG,OAAO,4EAA4E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yDAAyD;;
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yDAAyD;;CACuB,CAAA;AAE7F,MAAM,MAAM,yDAAyD,GAAG,OAAO,yDAAyD,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { asSchema as asSchema4 } from "@xyo-network/payload-model";
|
|
|
14
14
|
|
|
15
15
|
// src/DivinerQueryToIndexQueryDiviner/Schema.ts
|
|
16
16
|
import { asSchema as asSchema3 } from "@xyo-network/payload-model";
|
|
17
|
-
var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = asSchema3(`${TemporalIndexingDivinerSchema}.stage.
|
|
17
|
+
var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = asSchema3(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true);
|
|
18
18
|
|
|
19
19
|
// src/DivinerQueryToIndexQueryDiviner/Config.ts
|
|
20
20
|
var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = asSchema4(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true);
|
|
@@ -24,26 +24,27 @@ import { asSchema as asSchema6 } from "@xyo-network/payload-model";
|
|
|
24
24
|
|
|
25
25
|
// src/IndexCandidateToIndexDiviner/Schema.ts
|
|
26
26
|
import { asSchema as asSchema5 } from "@xyo-network/payload-model";
|
|
27
|
-
var TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = asSchema5(`${TemporalIndexingDivinerSchema}.stage.
|
|
27
|
+
var TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = asSchema5(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true);
|
|
28
28
|
|
|
29
29
|
// src/IndexCandidateToIndexDiviner/Config.ts
|
|
30
30
|
var TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = asSchema6(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true);
|
|
31
31
|
|
|
32
32
|
// src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
|
|
33
|
-
import { asSchema as
|
|
33
|
+
import { asSchema as asSchema8 } from "@xyo-network/payload-model";
|
|
34
34
|
|
|
35
35
|
// src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts
|
|
36
|
-
|
|
36
|
+
import { asSchema as asSchema7 } from "@xyo-network/payload-model";
|
|
37
|
+
var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = asSchema7(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true);
|
|
37
38
|
|
|
38
39
|
// src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
|
|
39
|
-
var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema =
|
|
40
|
+
var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema = asSchema8(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true);
|
|
40
41
|
|
|
41
42
|
// src/Result/Payload.ts
|
|
42
43
|
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
43
44
|
|
|
44
45
|
// src/Result/Schema.ts
|
|
45
|
-
import { asSchema as
|
|
46
|
-
var TemporalIndexingDivinerResultSchema =
|
|
46
|
+
import { asSchema as asSchema9 } from "@xyo-network/payload-model";
|
|
47
|
+
var TemporalIndexingDivinerResultSchema = asSchema9(`${TemporalIndexingDivinerSchema}.result`, true);
|
|
47
48
|
|
|
48
49
|
// src/Result/Payload.ts
|
|
49
50
|
var isTemporalIndexingDivinerResult = isPayloadOfSchemaType(TemporalIndexingDivinerResultSchema);
|
|
@@ -52,8 +53,8 @@ var isTemporalIndexingDivinerResult = isPayloadOfSchemaType(TemporalIndexingDivi
|
|
|
52
53
|
import { isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/payload-model";
|
|
53
54
|
|
|
54
55
|
// src/ResultIndex/Schema.ts
|
|
55
|
-
import { asSchema as
|
|
56
|
-
var TemporalIndexingDivinerResultIndexSchema =
|
|
56
|
+
import { asSchema as asSchema10 } from "@xyo-network/payload-model";
|
|
57
|
+
var TemporalIndexingDivinerResultIndexSchema = asSchema10(`${TemporalIndexingDivinerResultSchema}.index`, true);
|
|
57
58
|
|
|
58
59
|
// src/ResultIndex/Payload.ts
|
|
59
60
|
var isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType2(
|
|
@@ -61,14 +62,14 @@ var isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType2(
|
|
|
61
62
|
);
|
|
62
63
|
|
|
63
64
|
// src/StateToIndexCandidateDiviner/Config.ts
|
|
64
|
-
import { asSchema as
|
|
65
|
+
import { asSchema as asSchema12 } from "@xyo-network/payload-model";
|
|
65
66
|
|
|
66
67
|
// src/StateToIndexCandidateDiviner/Schema.ts
|
|
67
|
-
import { asSchema as
|
|
68
|
-
var TemporalIndexingDivinerStateToIndexCandidateDivinerSchema =
|
|
68
|
+
import { asSchema as asSchema11 } from "@xyo-network/payload-model";
|
|
69
|
+
var TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = asSchema11(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true);
|
|
69
70
|
|
|
70
71
|
// src/StateToIndexCandidateDiviner/Config.ts
|
|
71
|
-
var TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema =
|
|
72
|
+
var TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = asSchema12(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true);
|
|
72
73
|
export {
|
|
73
74
|
TemporalIndexingDivinerConfigSchema,
|
|
74
75
|
TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts","../../src/StateToIndexCandidateDiviner/Schema.ts"],"sourcesContent":["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-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 = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\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 { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n","import type { Hash } from '@xylabs/sdk-js'\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 { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { PayloadWithSources } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],"mappings":";AAGA,SAAS,YAAAA,iBAAgB;;;ACHzB,SAAS,6BAA6B;AACtC,SAAS,gBAAgB;AAElB,IAAM,gCAAgC,SAAS,GAAG,qBAAqB,aAAa,IAAI;;;ADOxF,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;AER3G,SAAS,YAAAC,iBAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+DACTC,UAAS,GAAG,6BAA6B,0CAA0C,IAAI;;;ADCpF,IAAM,qEACTC,UAAS,GAAG,4DAA4D,WAAW,IAAI;;;AEL3F,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,4DACTC,UAAS,GAAG,6BAA6B,uCAAuC,IAAI;;;ADCjF,IAAM,kEACTC,UAAS,GAAG,yDAAyD,WAAW,IAAI;;;AELxF,SAAS,YAAAC,iBAAgB;;;ACGlB,IAAM,+EACT,GAAG,6BAA6B;;;ADA7B,IAAM,qFACTC,UAAS,GAAG,4EAA4E,WAAW,IAAI;;;AEL3G,SAAS,6BAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;ADSpG,IAAM,kCAAkC,sBAAqD,mCAAmC;;;AEZvI,SAAS,yBAAAC,8BAA6B;;;ACDtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,2CAA2CC,UAAS,GAAG,mCAAmC,UAAU,IAAI;;;ADQ9G,IAAM,uCAAuCC;AAAA,EAClD;AACF;;;AEZA,SAAS,YAAAC,kBAAgB;;;ACFzB,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,4DACTC,WAAS,GAAG,6BAA6B,uCAAuC,IAAI;;;ADCjF,IAAM,kEACTC,WAAS,GAAG,yDAAyD,WAAW,IAAI;","names":["asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","asSchema","asSchema"]}
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts","../../src/StateToIndexCandidateDiviner/Schema.ts"],"sourcesContent":["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-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 = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\n /**\n * Where the diviner should store it's index\n */\n indexStore?: SearchableStorage\n /**\n * Config section for name/address of individual diviner stages\n */\n indexingDivinerStages?: IndexingDivinerStageConfig\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * How often to poll for new payloads to index\n */\n pollFrequency?: number\n /**\n * The schema for this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n","import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n","import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/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 { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { PayloadWithSources } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],"mappings":";AAGA,SAAS,YAAAA,iBAAgB;;;ACHzB,SAAS,6BAA6B;AACtC,SAAS,gBAAgB;AAElB,IAAM,gCAAgC,SAAS,GAAG,qBAAqB,aAAa,IAAI;;;ADOxF,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;AER3G,SAAS,YAAAC,iBAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+DACTC,UAAS,GAAG,6BAA6B,+CAA+C,IAAI;;;ADCzF,IAAM,qEACTC,UAAS,GAAG,4DAA4D,WAAW,IAAI;;;AEL3F,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,4DACTC,UAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,UAAS,GAAG,yDAAyD,WAAW,IAAI;;;AELxF,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+EACTC,UAAS,GAAG,6BAA6B,iEAAiE,IAAI;;;ADC3G,IAAM,qFACTC,UAAS,GAAG,4EAA4E,WAAW,IAAI;;;AEL3G,SAAS,6BAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;ADSpG,IAAM,kCAAkC,sBAAqD,mCAAmC;;;AEZvI,SAAS,yBAAAC,8BAA6B;;;ACDtC,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,2CAA2CC,WAAS,GAAG,mCAAmC,UAAU,IAAI;;;ADQ9G,IAAM,uCAAuCC;AAAA,EAClD;AACF;;;AEZA,SAAS,YAAAC,kBAAgB;;;ACFzB,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,4DACTC,WAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,WAAS,GAAG,yDAAyD,WAAW,IAAI;","names":["asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","asSchema","asSchema"]}
|
package/dist/node/Config.d.ts
CHANGED
|
@@ -11,9 +11,7 @@ export type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDiviner
|
|
|
11
11
|
/**
|
|
12
12
|
* Config section for declaring each indexing diviner stage
|
|
13
13
|
*/
|
|
14
|
-
export type IndexingDivinerStageTransformConfig =
|
|
15
|
-
[key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary;
|
|
16
|
-
};
|
|
14
|
+
export type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>;
|
|
17
15
|
/**
|
|
18
16
|
* Diviner Config for a Diviner which Indexes Payloads
|
|
19
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AAC3G,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAGlF,OAAO,KAAK,EAAE,4DAA4D,EAAE,MAAM,4CAA4C,CAAA;AAC9H,OAAO,KAAK,EAAE,4EAA4E,EAAE,MAAM,4DAA4D,CAAA;AAE9J,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,yCAAyC,CAAA;AAExH,eAAO,MAAM,mCAAmC;;CAA4D,CAAA;AAC5G,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA;AAE5F;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAA;AAC3G,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAGlF,OAAO,KAAK,EAAE,4DAA4D,EAAE,MAAM,4CAA4C,CAAA;AAC9H,OAAO,KAAK,EAAE,4EAA4E,EAAE,MAAM,4DAA4D,CAAA;AAE9J,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,yCAAyC,CAAA;AAExH,eAAO,MAAM,mCAAmC;;CAA4D,CAAA;AAC5G,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA;AAE5F;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,MAAM,CAAC,oBAAoB,EAAE,8CAA8C,CAAC,CAAA;AAG9H;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC;IACxD;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,mCAAmC,CAAA;IAC3C;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,+BAA+B,CAAC,EAAE,IAAI,CAAC,4DAA4D,EAAE,QAAQ,CAAC,CAAA;QAC9G,4BAA4B,CAAC,EAAE,IAAI,CAAC,4DAA4D,EAAE,QAAQ,CAAC,CAAA;QAC3G,+CAA+C,CAAC,EAAE,IAAI,CAAC,4EAA4E,EAAE,QAAQ,CAAC,CAAA;QAC9I,4BAA4B,CAAC,EAAE,IAAI,CAAC,yDAAyD,EAAE,QAAQ,CAAC,CAAA;KACzG,CAAA;IACD;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4DAA4D;;
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4DAA4D;;CACwB,CAAA;AAEjG,MAAM,MAAM,4DAA4D,GAAG,OAAO,4DAA4D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yDAAyD;;
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yDAAyD;;CACuB,CAAA;AAE7F,MAAM,MAAM,yDAAyD,GAAG,OAAO,yDAAyD,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export declare const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: string & {
|
|
2
|
+
readonly __schema: true;
|
|
3
|
+
};
|
|
4
|
+
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema;
|
|
4
5
|
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,4EAA4E;;CAC0B,CAAA;AAEnH,MAAM,MAAM,4EAA4E,GAAG,OAAO,4EAA4E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yDAAyD;;
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Schema.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,yDAAyD;;CACuB,CAAA;AAE7F,MAAM,MAAM,yDAAyD,GAAG,OAAO,yDAAyD,CAAA"}
|
package/dist/node/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { asSchema as asSchema4 } from "@xyo-network/payload-model";
|
|
|
14
14
|
|
|
15
15
|
// src/DivinerQueryToIndexQueryDiviner/Schema.ts
|
|
16
16
|
import { asSchema as asSchema3 } from "@xyo-network/payload-model";
|
|
17
|
-
var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = asSchema3(`${TemporalIndexingDivinerSchema}.stage.
|
|
17
|
+
var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = asSchema3(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true);
|
|
18
18
|
|
|
19
19
|
// src/DivinerQueryToIndexQueryDiviner/Config.ts
|
|
20
20
|
var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = asSchema4(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true);
|
|
@@ -24,26 +24,27 @@ import { asSchema as asSchema6 } from "@xyo-network/payload-model";
|
|
|
24
24
|
|
|
25
25
|
// src/IndexCandidateToIndexDiviner/Schema.ts
|
|
26
26
|
import { asSchema as asSchema5 } from "@xyo-network/payload-model";
|
|
27
|
-
var TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = asSchema5(`${TemporalIndexingDivinerSchema}.stage.
|
|
27
|
+
var TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = asSchema5(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true);
|
|
28
28
|
|
|
29
29
|
// src/IndexCandidateToIndexDiviner/Config.ts
|
|
30
30
|
var TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = asSchema6(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true);
|
|
31
31
|
|
|
32
32
|
// src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
|
|
33
|
-
import { asSchema as
|
|
33
|
+
import { asSchema as asSchema8 } from "@xyo-network/payload-model";
|
|
34
34
|
|
|
35
35
|
// src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts
|
|
36
|
-
|
|
36
|
+
import { asSchema as asSchema7 } from "@xyo-network/payload-model";
|
|
37
|
+
var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = asSchema7(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true);
|
|
37
38
|
|
|
38
39
|
// src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
|
|
39
|
-
var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema =
|
|
40
|
+
var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema = asSchema8(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true);
|
|
40
41
|
|
|
41
42
|
// src/Result/Payload.ts
|
|
42
43
|
import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
|
|
43
44
|
|
|
44
45
|
// src/Result/Schema.ts
|
|
45
|
-
import { asSchema as
|
|
46
|
-
var TemporalIndexingDivinerResultSchema =
|
|
46
|
+
import { asSchema as asSchema9 } from "@xyo-network/payload-model";
|
|
47
|
+
var TemporalIndexingDivinerResultSchema = asSchema9(`${TemporalIndexingDivinerSchema}.result`, true);
|
|
47
48
|
|
|
48
49
|
// src/Result/Payload.ts
|
|
49
50
|
var isTemporalIndexingDivinerResult = isPayloadOfSchemaType(TemporalIndexingDivinerResultSchema);
|
|
@@ -52,8 +53,8 @@ var isTemporalIndexingDivinerResult = isPayloadOfSchemaType(TemporalIndexingDivi
|
|
|
52
53
|
import { isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/payload-model";
|
|
53
54
|
|
|
54
55
|
// src/ResultIndex/Schema.ts
|
|
55
|
-
import { asSchema as
|
|
56
|
-
var TemporalIndexingDivinerResultIndexSchema =
|
|
56
|
+
import { asSchema as asSchema10 } from "@xyo-network/payload-model";
|
|
57
|
+
var TemporalIndexingDivinerResultIndexSchema = asSchema10(`${TemporalIndexingDivinerResultSchema}.index`, true);
|
|
57
58
|
|
|
58
59
|
// src/ResultIndex/Payload.ts
|
|
59
60
|
var isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType2(
|
|
@@ -61,14 +62,14 @@ var isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType2(
|
|
|
61
62
|
);
|
|
62
63
|
|
|
63
64
|
// src/StateToIndexCandidateDiviner/Config.ts
|
|
64
|
-
import { asSchema as
|
|
65
|
+
import { asSchema as asSchema12 } from "@xyo-network/payload-model";
|
|
65
66
|
|
|
66
67
|
// src/StateToIndexCandidateDiviner/Schema.ts
|
|
67
|
-
import { asSchema as
|
|
68
|
-
var TemporalIndexingDivinerStateToIndexCandidateDivinerSchema =
|
|
68
|
+
import { asSchema as asSchema11 } from "@xyo-network/payload-model";
|
|
69
|
+
var TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = asSchema11(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true);
|
|
69
70
|
|
|
70
71
|
// src/StateToIndexCandidateDiviner/Config.ts
|
|
71
|
-
var TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema =
|
|
72
|
+
var TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = asSchema12(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true);
|
|
72
73
|
export {
|
|
73
74
|
TemporalIndexingDivinerConfigSchema,
|
|
74
75
|
TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema,
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts","../../src/StateToIndexCandidateDiviner/Schema.ts"],"sourcesContent":["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-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 = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\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 { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`\n","import type { Hash } from '@xylabs/sdk-js'\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 { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { PayloadWithSources } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],"mappings":";AAGA,SAAS,YAAAA,iBAAgB;;;ACHzB,SAAS,6BAA6B;AACtC,SAAS,gBAAgB;AAElB,IAAM,gCAAgC,SAAS,GAAG,qBAAqB,aAAa,IAAI;;;ADOxF,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;AER3G,SAAS,YAAAC,iBAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+DACTC,UAAS,GAAG,6BAA6B,0CAA0C,IAAI;;;ADCpF,IAAM,qEACTC,UAAS,GAAG,4DAA4D,WAAW,IAAI;;;AEL3F,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,4DACTC,UAAS,GAAG,6BAA6B,uCAAuC,IAAI;;;ADCjF,IAAM,kEACTC,UAAS,GAAG,yDAAyD,WAAW,IAAI;;;AELxF,SAAS,YAAAC,iBAAgB;;;ACGlB,IAAM,+EACT,GAAG,6BAA6B;;;ADA7B,IAAM,qFACTC,UAAS,GAAG,4EAA4E,WAAW,IAAI;;;AEL3G,SAAS,6BAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;ADSpG,IAAM,kCAAkC,sBAAqD,mCAAmC;;;AEZvI,SAAS,yBAAAC,8BAA6B;;;ACDtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,2CAA2CC,UAAS,GAAG,mCAAmC,UAAU,IAAI;;;ADQ9G,IAAM,uCAAuCC;AAAA,EAClD;AACF;;;AEZA,SAAS,YAAAC,kBAAgB;;;ACFzB,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,4DACTC,WAAS,GAAG,6BAA6B,uCAAuC,IAAI;;;ADCjF,IAAM,kEACTC,WAAS,GAAG,yDAAyD,WAAW,IAAI;","names":["asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","asSchema","asSchema"]}
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/DivinerQueryToIndexQueryDiviner/Config.ts","../../src/DivinerQueryToIndexQueryDiviner/Schema.ts","../../src/IndexCandidateToIndexDiviner/Config.ts","../../src/IndexCandidateToIndexDiviner/Schema.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts","../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts","../../src/Result/Payload.ts","../../src/Result/Schema.ts","../../src/ResultIndex/Payload.ts","../../src/ResultIndex/Schema.ts","../../src/StateToIndexCandidateDiviner/Config.ts","../../src/StateToIndexCandidateDiviner/Schema.ts"],"sourcesContent":["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-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 = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\n /**\n * Where the diviner should store it's index\n */\n indexStore?: SearchableStorage\n /**\n * Config section for name/address of individual diviner stages\n */\n indexingDivinerStages?: IndexingDivinerStageConfig\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * How often to poll for new payloads to index\n */\n pollFrequency?: number\n /**\n * The schema for this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n","import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n","import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n","import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/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 { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n","import type { PayloadWithSources } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n","import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n","import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],"mappings":";AAGA,SAAS,YAAAA,iBAAgB;;;ACHzB,SAAS,6BAA6B;AACtC,SAAS,gBAAgB;AAElB,IAAM,gCAAgC,SAAS,GAAG,qBAAqB,aAAa,IAAI;;;ADOxF,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;AER3G,SAAS,YAAAC,iBAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+DACTC,UAAS,GAAG,6BAA6B,+CAA+C,IAAI;;;ADCzF,IAAM,qEACTC,UAAS,GAAG,4DAA4D,WAAW,IAAI;;;AEL3F,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,4DACTC,UAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,UAAS,GAAG,yDAAyD,WAAW,IAAI;;;AELxF,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+EACTC,UAAS,GAAG,6BAA6B,iEAAiE,IAAI;;;ADC3G,IAAM,qFACTC,UAAS,GAAG,4EAA4E,WAAW,IAAI;;;AEL3G,SAAS,6BAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;ADSpG,IAAM,kCAAkC,sBAAqD,mCAAmC;;;AEZvI,SAAS,yBAAAC,8BAA6B;;;ACDtC,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,2CAA2CC,WAAS,GAAG,mCAAmC,UAAU,IAAI;;;ADQ9G,IAAM,uCAAuCC;AAAA,EAClD;AACF;;;AEZA,SAAS,YAAAC,kBAAgB;;;ACFzB,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,4DACTC,WAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,WAAS,GAAG,yDAAyD,WAAW,IAAI;","names":["asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","isPayloadOfSchemaType","asSchema","asSchema","asSchema","asSchema"]}
|