@xyo-network/diviner-temporal-indexing-model 5.3.20 → 5.3.24
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/package.json +26 -13
- package/src/Config.ts +0 -59
- package/src/DivinerQueryToIndexQueryDiviner/Config.ts +0 -37
- package/src/DivinerQueryToIndexQueryDiviner/Params.ts +0 -8
- package/src/DivinerQueryToIndexQueryDiviner/Schema.ts +0 -8
- package/src/DivinerQueryToIndexQueryDiviner/index.ts +0 -3
- package/src/IndexCandidateToIndexDiviner/Config.ts +0 -24
- package/src/IndexCandidateToIndexDiviner/Params.ts +0 -11
- package/src/IndexCandidateToIndexDiviner/Schema.ts +0 -8
- package/src/IndexCandidateToIndexDiviner/index.ts +0 -3
- package/src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts +0 -25
- package/src/IndexQueryResponseToDivinerQueryResponseDiviner/Params.ts +0 -8
- package/src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts +0 -7
- package/src/IndexQueryResponseToDivinerQueryResponseDiviner/index.ts +0 -3
- package/src/Params.ts +0 -7
- package/src/Result/Payload.ts +0 -14
- package/src/Result/Schema.ts +0 -6
- package/src/Result/index.ts +0 -2
- package/src/ResultIndex/Payload.ts +0 -15
- package/src/ResultIndex/Schema.ts +0 -6
- package/src/ResultIndex/index.ts +0 -2
- package/src/Schema.ts +0 -5
- package/src/StateToIndexCandidateDiviner/Config.ts +0 -32
- package/src/StateToIndexCandidateDiviner/Params.ts +0 -8
- package/src/StateToIndexCandidateDiviner/Schema.ts +0 -8
- package/src/StateToIndexCandidateDiviner/index.ts +0 -3
- package/src/index.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-temporal-indexing-model",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.24",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -30,24 +30,37 @@
|
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|
|
33
|
-
"src",
|
|
34
33
|
"!**/*.bench.*",
|
|
35
34
|
"!**/*.spec.*",
|
|
36
|
-
"!**/*.test.*"
|
|
35
|
+
"!**/*.test.*",
|
|
36
|
+
"README.md"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xyo-network/diviner-boundwitness-model": "~5.3.
|
|
40
|
-
"@xyo-network/diviner-indexing-model": "~5.3.
|
|
41
|
-
"@xyo-network/
|
|
42
|
-
"@xyo-network/diviner-model": "~5.3.
|
|
43
|
-
"@xyo-network/
|
|
44
|
-
"@xyo-network/payload-model": "~5.3.
|
|
39
|
+
"@xyo-network/diviner-boundwitness-model": "~5.3.24",
|
|
40
|
+
"@xyo-network/diviner-indexing-model": "~5.3.24",
|
|
41
|
+
"@xyo-network/module-model": "~5.3.24",
|
|
42
|
+
"@xyo-network/diviner-model": "~5.3.24",
|
|
43
|
+
"@xyo-network/diviner-jsonpath-model": "~5.3.24",
|
|
44
|
+
"@xyo-network/payload-model": "~5.3.24"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
47
|
+
"@opentelemetry/api": "^1.9.1",
|
|
48
|
+
"@types/node": "^25.5.0",
|
|
49
|
+
"@xylabs/sdk-js": "^5.0.93",
|
|
50
|
+
"@xylabs/ts-scripts-common": "~7.6.16",
|
|
51
|
+
"@xylabs/ts-scripts-pnpm": "~7.6.16",
|
|
52
|
+
"@xylabs/tsconfig": "~7.6.16",
|
|
53
|
+
"acorn": "^8.16.0",
|
|
54
|
+
"axios": "^1.14.0",
|
|
55
|
+
"esbuild": "^0.28.0",
|
|
49
56
|
"typescript": "~5.9.3",
|
|
50
|
-
"zod": "^4.3.6"
|
|
57
|
+
"zod": "^4.3.6",
|
|
58
|
+
"@xyo-network/diviner-boundwitness-model": "~5.3.24",
|
|
59
|
+
"@xyo-network/diviner-model": "~5.3.24",
|
|
60
|
+
"@xyo-network/diviner-jsonpath-model": "~5.3.24",
|
|
61
|
+
"@xyo-network/module-model": "~5.3.24",
|
|
62
|
+
"@xyo-network/payload-model": "~5.3.24",
|
|
63
|
+
"@xyo-network/diviner-indexing-model": "~5.3.24"
|
|
51
64
|
},
|
|
52
65
|
"peerDependencies": {
|
|
53
66
|
"@xylabs/sdk-js": "^5",
|
|
@@ -56,4 +69,4 @@
|
|
|
56
69
|
"publishConfig": {
|
|
57
70
|
"access": "public"
|
|
58
71
|
}
|
|
59
|
-
}
|
|
72
|
+
}
|
package/src/Config.ts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'
|
|
2
|
-
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'
|
|
3
|
-
import type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'
|
|
4
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
5
|
-
|
|
6
|
-
import type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts'
|
|
7
|
-
import type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts'
|
|
8
|
-
import { TemporalIndexingDivinerSchema } from './Schema.ts'
|
|
9
|
-
import type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts'
|
|
10
|
-
|
|
11
|
-
export const TemporalIndexingDivinerConfigSchema = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)
|
|
12
|
-
export type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Config section for declaring each indexing diviner stage
|
|
16
|
-
*/
|
|
17
|
-
export type IndexingDivinerStageTransformConfig = {
|
|
18
|
-
[key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// TODO: Extend indexing diviner config
|
|
22
|
-
/**
|
|
23
|
-
* Diviner Config for a Diviner which Indexes Payloads
|
|
24
|
-
*/
|
|
25
|
-
export type TemporalIndexingDivinerConfig = DivinerConfig<{
|
|
26
|
-
/**
|
|
27
|
-
* Where the diviner should store it's index
|
|
28
|
-
*/
|
|
29
|
-
indexStore?: SearchableStorage
|
|
30
|
-
/**
|
|
31
|
-
* Config section for name/address of individual diviner stages
|
|
32
|
-
*/
|
|
33
|
-
indexingDivinerStages?: IndexingDivinerStageConfig
|
|
34
|
-
/**
|
|
35
|
-
* The maximum number of payloads to index at a time
|
|
36
|
-
*/
|
|
37
|
-
payloadDivinerLimit?: number
|
|
38
|
-
/**
|
|
39
|
-
* How often to poll for new payloads to index
|
|
40
|
-
*/
|
|
41
|
-
pollFrequency?: number
|
|
42
|
-
/**
|
|
43
|
-
* The schema for this config
|
|
44
|
-
*/
|
|
45
|
-
schema: TemporalIndexingDivinerConfigSchema
|
|
46
|
-
/**
|
|
47
|
-
* Optional config section for individual diviner stages
|
|
48
|
-
*/
|
|
49
|
-
stageConfigs?: {
|
|
50
|
-
divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>
|
|
51
|
-
indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>
|
|
52
|
-
indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>
|
|
53
|
-
stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Where the diviner should persist its internal state
|
|
57
|
-
*/
|
|
58
|
-
stateStore?: SearchableStorage
|
|
59
|
-
}>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'
|
|
2
|
-
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
3
|
-
import { asSchema, type Schema } from '@xyo-network/payload-model'
|
|
4
|
-
|
|
5
|
-
import { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'
|
|
6
|
-
|
|
7
|
-
export const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema
|
|
8
|
-
= asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)
|
|
9
|
-
|
|
10
|
-
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema
|
|
11
|
-
= typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Diviner Config for a Diviner which transforms a Diviner Query to an Index Query
|
|
15
|
-
*/
|
|
16
|
-
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{
|
|
17
|
-
/**
|
|
18
|
-
* The schema of the diviner query payloads
|
|
19
|
-
*/
|
|
20
|
-
divinerQuerySchema?: Schema
|
|
21
|
-
/**
|
|
22
|
-
* The schema of the index query payloads
|
|
23
|
-
*/
|
|
24
|
-
indexQuerySchema?: Schema
|
|
25
|
-
/**
|
|
26
|
-
* The schema of the index payloads
|
|
27
|
-
*/
|
|
28
|
-
indexSchema?: Schema
|
|
29
|
-
/**
|
|
30
|
-
* The config schema
|
|
31
|
-
*/
|
|
32
|
-
schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema
|
|
33
|
-
/**
|
|
34
|
-
* The transforms to apply to the source payloads
|
|
35
|
-
*/
|
|
36
|
-
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary
|
|
37
|
-
}>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
3
|
-
|
|
4
|
-
import type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './Config.ts'
|
|
5
|
-
|
|
6
|
-
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = DivinerParams<
|
|
7
|
-
AnyConfigSchema<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig>
|
|
8
|
-
>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
import { TemporalIndexingDivinerSchema } from '../Schema.ts'
|
|
4
|
-
|
|
5
|
-
export const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema
|
|
6
|
-
= asSchema(`${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`, true)
|
|
7
|
-
|
|
8
|
-
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'
|
|
2
|
-
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
3
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
4
|
-
|
|
5
|
-
import { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'
|
|
6
|
-
|
|
7
|
-
export const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema
|
|
8
|
-
= asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)
|
|
9
|
-
|
|
10
|
-
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Diviner Config for a Diviner which transforms Index Candidates to Indexes
|
|
14
|
-
*/
|
|
15
|
-
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{
|
|
16
|
-
/**
|
|
17
|
-
* The config schema
|
|
18
|
-
*/
|
|
19
|
-
schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema
|
|
20
|
-
/**
|
|
21
|
-
* The transforms to apply to the source payloads
|
|
22
|
-
*/
|
|
23
|
-
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary
|
|
24
|
-
}>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
3
|
-
|
|
4
|
-
import type { TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig } from './Config.ts'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Diviner Params for a Diviner which transforms Index Candidates to Indexes
|
|
8
|
-
*/
|
|
9
|
-
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = DivinerParams<
|
|
10
|
-
AnyConfigSchema<TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig>
|
|
11
|
-
>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
import { TemporalIndexingDivinerSchema } from '../Schema.ts'
|
|
4
|
-
|
|
5
|
-
export const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema
|
|
6
|
-
= asSchema(`${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`, true)
|
|
7
|
-
|
|
8
|
-
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'
|
|
2
|
-
import type { DivinerConfig } from '@xyo-network/diviner-model'
|
|
3
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
4
|
-
|
|
5
|
-
import { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'
|
|
6
|
-
|
|
7
|
-
export const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema
|
|
8
|
-
= asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)
|
|
9
|
-
|
|
10
|
-
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema
|
|
11
|
-
= typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response
|
|
15
|
-
*/
|
|
16
|
-
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{
|
|
17
|
-
/**
|
|
18
|
-
* The config schema
|
|
19
|
-
*/
|
|
20
|
-
schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema
|
|
21
|
-
/**
|
|
22
|
-
* The transforms to apply to the source payloads
|
|
23
|
-
*/
|
|
24
|
-
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary
|
|
25
|
-
}>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
3
|
-
|
|
4
|
-
import type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './Config.ts'
|
|
5
|
-
|
|
6
|
-
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerParams = DivinerParams<
|
|
7
|
-
AnyConfigSchema<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig>
|
|
8
|
-
>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TemporalIndexingDivinerSchema } from '../Schema.ts'
|
|
2
|
-
|
|
3
|
-
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema
|
|
4
|
-
= `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`
|
|
5
|
-
|
|
6
|
-
export const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema
|
|
7
|
-
= `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`
|
package/src/Params.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
3
|
-
|
|
4
|
-
import type { TemporalIndexingDivinerConfig } from './Config.ts'
|
|
5
|
-
|
|
6
|
-
// TODO: Extend indexing diviner params and just remove fields that are not needed?
|
|
7
|
-
export type TemporalIndexingDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerConfig>>
|
package/src/Result/Payload.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Hash } from '@xylabs/sdk-js'
|
|
2
|
-
import type { Payload } from '@xyo-network/payload-model'
|
|
3
|
-
import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
|
4
|
-
|
|
5
|
-
import { TemporalIndexingDivinerResultSchema } from './Schema.ts'
|
|
6
|
-
|
|
7
|
-
export type TemporalIndexingDivinerResult = Payload<
|
|
8
|
-
{
|
|
9
|
-
sources: Hash[]
|
|
10
|
-
timestamp: string
|
|
11
|
-
},
|
|
12
|
-
TemporalIndexingDivinerResultSchema
|
|
13
|
-
>
|
|
14
|
-
export const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)
|
package/src/Result/Schema.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
import { TemporalIndexingDivinerSchema } from '../Schema.ts'
|
|
4
|
-
|
|
5
|
-
export const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)
|
|
6
|
-
export type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema
|
package/src/Result/index.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { PayloadWithSources } from '@xyo-network/payload-model'
|
|
2
|
-
import { isPayloadOfSchemaType } from '@xyo-network/payload-model'
|
|
3
|
-
|
|
4
|
-
import { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'
|
|
5
|
-
|
|
6
|
-
export type TemporalIndexingDivinerResultIndex = PayloadWithSources<
|
|
7
|
-
{
|
|
8
|
-
timestamp: number
|
|
9
|
-
},
|
|
10
|
-
TemporalIndexingDivinerResultIndexSchema
|
|
11
|
-
>
|
|
12
|
-
|
|
13
|
-
export const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(
|
|
14
|
-
TemporalIndexingDivinerResultIndexSchema,
|
|
15
|
-
)
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
import { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'
|
|
4
|
-
|
|
5
|
-
export const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)
|
|
6
|
-
export type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema
|
package/src/ResultIndex/index.ts
DELETED
package/src/Schema.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'
|
|
2
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
3
|
-
|
|
4
|
-
export const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)
|
|
5
|
-
export type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model'
|
|
2
|
-
import type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'
|
|
3
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
4
|
-
|
|
5
|
-
import { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'
|
|
6
|
-
|
|
7
|
-
export const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema
|
|
8
|
-
= asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)
|
|
9
|
-
|
|
10
|
-
export type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Diviner Config for a Diviner which transforms a Diviner State to Index Candidates
|
|
14
|
-
*/
|
|
15
|
-
export type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{
|
|
16
|
-
/**
|
|
17
|
-
* The filter to use to identify index candidates
|
|
18
|
-
*/
|
|
19
|
-
filter?: BoundWitnessDivinerPredicate
|
|
20
|
-
/**
|
|
21
|
-
* The maximum number of payloads to index at a time
|
|
22
|
-
*/
|
|
23
|
-
payloadDivinerLimit?: number
|
|
24
|
-
/**
|
|
25
|
-
* Where the diviner should look for stored thumbnails
|
|
26
|
-
*/
|
|
27
|
-
payloadStore?: SearchableStorage
|
|
28
|
-
/**
|
|
29
|
-
* The config schema
|
|
30
|
-
*/
|
|
31
|
-
schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema
|
|
32
|
-
}>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { DivinerParams } from '@xyo-network/diviner-model'
|
|
2
|
-
import type { AnyConfigSchema } from '@xyo-network/module-model'
|
|
3
|
-
|
|
4
|
-
import type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './Config.ts'
|
|
5
|
-
|
|
6
|
-
export type TemporalIndexingDivinerStateToIndexCandidateDivinerParams = DivinerParams<
|
|
7
|
-
AnyConfigSchema<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig>
|
|
8
|
-
>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { asSchema } from '@xyo-network/payload-model'
|
|
2
|
-
|
|
3
|
-
import { TemporalIndexingDivinerSchema } from '../Schema.ts'
|
|
4
|
-
|
|
5
|
-
export const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema
|
|
6
|
-
= asSchema(`${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`, true)
|
|
7
|
-
|
|
8
|
-
export type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema
|
package/src/index.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './Config.ts'
|
|
2
|
-
export * from './DivinerQueryToIndexQueryDiviner/index.ts'
|
|
3
|
-
export * from './IndexCandidateToIndexDiviner/index.ts'
|
|
4
|
-
export * from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts'
|
|
5
|
-
export * from './Params.ts'
|
|
6
|
-
export * from './Result/index.ts'
|
|
7
|
-
export * from './ResultIndex/index.ts'
|
|
8
|
-
export * from './Schema.ts'
|
|
9
|
-
export * from './StateToIndexCandidateDiviner/index.ts'
|