@xyo-network/diviner-temporal-indexing-model 4.0.3 → 4.1.1
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/dist/browser/index.d.ts +186 -0
- package/dist/neutral/Config.d.ts +53 -0
- package/dist/neutral/Config.d.ts.map +1 -0
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/Config.d.ts +32 -0
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/Config.d.ts.map +1 -0
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/Params.d.ts +5 -0
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/Params.d.ts.map +1 -0
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/Schema.d.ts +4 -0
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/Schema.d.ts.map +1 -0
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/index.d.ts +4 -0
- package/dist/neutral/DivinerQueryToIndexQueryDiviner/index.d.ts.map +1 -0
- package/dist/neutral/IndexCandidateToIndexDiviner/Config.d.ts +19 -0
- package/dist/neutral/IndexCandidateToIndexDiviner/Config.d.ts.map +1 -0
- package/dist/neutral/IndexCandidateToIndexDiviner/Params.d.ts +8 -0
- package/dist/neutral/IndexCandidateToIndexDiviner/Params.d.ts.map +1 -0
- package/dist/neutral/IndexCandidateToIndexDiviner/Schema.d.ts +4 -0
- package/dist/neutral/IndexCandidateToIndexDiviner/Schema.d.ts.map +1 -0
- package/dist/neutral/IndexCandidateToIndexDiviner/index.d.ts +4 -0
- package/dist/neutral/IndexCandidateToIndexDiviner/index.d.ts.map +1 -0
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts +19 -0
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts.map +1 -0
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts +5 -0
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts.map +1 -0
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts +4 -0
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts.map +1 -0
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts +4 -0
- package/dist/neutral/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map +1 -0
- package/dist/neutral/Params.d.ts +5 -0
- package/dist/neutral/Params.d.ts.map +1 -0
- package/dist/neutral/Result/Payload.d.ts +9 -0
- package/dist/neutral/Result/Payload.d.ts.map +1 -0
- package/dist/neutral/Result/Schema.d.ts +3 -0
- package/dist/neutral/Result/Schema.d.ts.map +1 -0
- package/dist/neutral/Result/index.d.ts +3 -0
- package/dist/neutral/Result/index.d.ts.map +1 -0
- package/dist/neutral/ResultIndex/Payload.d.ts +7 -0
- package/dist/neutral/ResultIndex/Payload.d.ts.map +1 -0
- package/dist/neutral/ResultIndex/Schema.d.ts +3 -0
- package/dist/neutral/ResultIndex/Schema.d.ts.map +1 -0
- package/dist/neutral/ResultIndex/index.d.ts +3 -0
- package/dist/neutral/ResultIndex/index.d.ts.map +1 -0
- package/dist/neutral/Schema.d.ts +3 -0
- package/dist/neutral/Schema.d.ts.map +1 -0
- package/dist/neutral/StateToIndexCandidateDiviner/Config.d.ts +27 -0
- package/dist/neutral/StateToIndexCandidateDiviner/Config.d.ts.map +1 -0
- package/dist/neutral/StateToIndexCandidateDiviner/Params.d.ts +5 -0
- package/dist/neutral/StateToIndexCandidateDiviner/Params.d.ts.map +1 -0
- package/dist/neutral/StateToIndexCandidateDiviner/Schema.d.ts +4 -0
- package/dist/neutral/StateToIndexCandidateDiviner/Schema.d.ts.map +1 -0
- package/dist/neutral/StateToIndexCandidateDiviner/index.d.ts +4 -0
- package/dist/neutral/StateToIndexCandidateDiviner/index.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +186 -0
- package/dist/neutral/index.d.ts.map +1 -0
- package/dist/node/Config.d.ts +53 -0
- package/dist/node/Config.d.ts.map +1 -0
- package/dist/node/DivinerQueryToIndexQueryDiviner/Config.d.ts +32 -0
- package/dist/node/DivinerQueryToIndexQueryDiviner/Config.d.ts.map +1 -0
- package/dist/node/DivinerQueryToIndexQueryDiviner/Params.d.ts +5 -0
- package/dist/node/DivinerQueryToIndexQueryDiviner/Params.d.ts.map +1 -0
- package/dist/node/DivinerQueryToIndexQueryDiviner/Schema.d.ts +4 -0
- package/dist/node/DivinerQueryToIndexQueryDiviner/Schema.d.ts.map +1 -0
- package/dist/node/DivinerQueryToIndexQueryDiviner/index.d.ts +4 -0
- package/dist/node/DivinerQueryToIndexQueryDiviner/index.d.ts.map +1 -0
- package/dist/node/IndexCandidateToIndexDiviner/Config.d.ts +19 -0
- package/dist/node/IndexCandidateToIndexDiviner/Config.d.ts.map +1 -0
- package/dist/node/IndexCandidateToIndexDiviner/Params.d.ts +8 -0
- package/dist/node/IndexCandidateToIndexDiviner/Params.d.ts.map +1 -0
- package/dist/node/IndexCandidateToIndexDiviner/Schema.d.ts +4 -0
- package/dist/node/IndexCandidateToIndexDiviner/Schema.d.ts.map +1 -0
- package/dist/node/IndexCandidateToIndexDiviner/index.d.ts +4 -0
- package/dist/node/IndexCandidateToIndexDiviner/index.d.ts.map +1 -0
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts +19 -0
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts.map +1 -0
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts +5 -0
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts.map +1 -0
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts +4 -0
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts.map +1 -0
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts +4 -0
- package/dist/node/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map +1 -0
- package/dist/node/Params.d.ts +5 -0
- package/dist/node/Params.d.ts.map +1 -0
- package/dist/node/Result/Payload.d.ts +9 -0
- package/dist/node/Result/Payload.d.ts.map +1 -0
- package/dist/node/Result/Schema.d.ts +3 -0
- package/dist/node/Result/Schema.d.ts.map +1 -0
- package/dist/node/Result/index.d.ts +3 -0
- package/dist/node/Result/index.d.ts.map +1 -0
- package/dist/node/ResultIndex/Payload.d.ts +7 -0
- package/dist/node/ResultIndex/Payload.d.ts.map +1 -0
- package/dist/node/ResultIndex/Schema.d.ts +3 -0
- package/dist/node/ResultIndex/Schema.d.ts.map +1 -0
- package/dist/node/ResultIndex/index.d.ts +3 -0
- package/dist/node/ResultIndex/index.d.ts.map +1 -0
- package/dist/node/Schema.d.ts +3 -0
- package/dist/node/Schema.d.ts.map +1 -0
- package/dist/node/StateToIndexCandidateDiviner/Config.d.ts +27 -0
- package/dist/node/StateToIndexCandidateDiviner/Config.d.ts.map +1 -0
- package/dist/node/StateToIndexCandidateDiviner/Params.d.ts +5 -0
- package/dist/node/StateToIndexCandidateDiviner/Params.d.ts.map +1 -0
- package/dist/node/StateToIndexCandidateDiviner/Schema.d.ts +4 -0
- package/dist/node/StateToIndexCandidateDiviner/Schema.d.ts.map +1 -0
- package/dist/node/StateToIndexCandidateDiviner/index.d.ts +4 -0
- package/dist/node/StateToIndexCandidateDiviner/index.d.ts.map +1 -0
- package/dist/node/index.d.ts +186 -0
- package/dist/node/index.d.ts.map +1 -0
- package/package.json +12 -12
- package/dist/types/index.d.ts +0 -10
- /package/dist/{types → browser}/Config.d.ts +0 -0
- /package/dist/{types → browser}/Config.d.ts.map +0 -0
- /package/dist/{types → browser}/DivinerQueryToIndexQueryDiviner/Config.d.ts +0 -0
- /package/dist/{types → browser}/DivinerQueryToIndexQueryDiviner/Config.d.ts.map +0 -0
- /package/dist/{types → browser}/DivinerQueryToIndexQueryDiviner/Params.d.ts +0 -0
- /package/dist/{types → browser}/DivinerQueryToIndexQueryDiviner/Params.d.ts.map +0 -0
- /package/dist/{types → browser}/DivinerQueryToIndexQueryDiviner/Schema.d.ts +0 -0
- /package/dist/{types → browser}/DivinerQueryToIndexQueryDiviner/Schema.d.ts.map +0 -0
- /package/dist/{types → browser}/DivinerQueryToIndexQueryDiviner/index.d.ts +0 -0
- /package/dist/{types → browser}/DivinerQueryToIndexQueryDiviner/index.d.ts.map +0 -0
- /package/dist/{types → browser}/IndexCandidateToIndexDiviner/Config.d.ts +0 -0
- /package/dist/{types → browser}/IndexCandidateToIndexDiviner/Config.d.ts.map +0 -0
- /package/dist/{types → browser}/IndexCandidateToIndexDiviner/Params.d.ts +0 -0
- /package/dist/{types → browser}/IndexCandidateToIndexDiviner/Params.d.ts.map +0 -0
- /package/dist/{types → browser}/IndexCandidateToIndexDiviner/Schema.d.ts +0 -0
- /package/dist/{types → browser}/IndexCandidateToIndexDiviner/Schema.d.ts.map +0 -0
- /package/dist/{types → browser}/IndexCandidateToIndexDiviner/index.d.ts +0 -0
- /package/dist/{types → browser}/IndexCandidateToIndexDiviner/index.d.ts.map +0 -0
- /package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts +0 -0
- /package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts.map +0 -0
- /package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts +0 -0
- /package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts.map +0 -0
- /package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts +0 -0
- /package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts.map +0 -0
- /package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts +0 -0
- /package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map +0 -0
- /package/dist/{types → browser}/Params.d.ts +0 -0
- /package/dist/{types → browser}/Params.d.ts.map +0 -0
- /package/dist/{types → browser}/Result/Payload.d.ts +0 -0
- /package/dist/{types → browser}/Result/Payload.d.ts.map +0 -0
- /package/dist/{types → browser}/Result/Schema.d.ts +0 -0
- /package/dist/{types → browser}/Result/Schema.d.ts.map +0 -0
- /package/dist/{types → browser}/Result/index.d.ts +0 -0
- /package/dist/{types → browser}/Result/index.d.ts.map +0 -0
- /package/dist/{types → browser}/ResultIndex/Payload.d.ts +0 -0
- /package/dist/{types → browser}/ResultIndex/Payload.d.ts.map +0 -0
- /package/dist/{types → browser}/ResultIndex/Schema.d.ts +0 -0
- /package/dist/{types → browser}/ResultIndex/Schema.d.ts.map +0 -0
- /package/dist/{types → browser}/ResultIndex/index.d.ts +0 -0
- /package/dist/{types → browser}/ResultIndex/index.d.ts.map +0 -0
- /package/dist/{types → browser}/Schema.d.ts +0 -0
- /package/dist/{types → browser}/Schema.d.ts.map +0 -0
- /package/dist/{types → browser}/StateToIndexCandidateDiviner/Config.d.ts +0 -0
- /package/dist/{types → browser}/StateToIndexCandidateDiviner/Config.d.ts.map +0 -0
- /package/dist/{types → browser}/StateToIndexCandidateDiviner/Params.d.ts +0 -0
- /package/dist/{types → browser}/StateToIndexCandidateDiviner/Params.d.ts.map +0 -0
- /package/dist/{types → browser}/StateToIndexCandidateDiviner/Schema.d.ts +0 -0
- /package/dist/{types → browser}/StateToIndexCandidateDiviner/Schema.d.ts.map +0 -0
- /package/dist/{types → browser}/StateToIndexCandidateDiviner/index.d.ts +0 -0
- /package/dist/{types → browser}/StateToIndexCandidateDiviner/index.d.ts.map +0 -0
- /package/dist/{types → browser}/index.d.ts.map +0 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model';
|
|
2
|
+
import { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
|
|
3
|
+
import { DivinerConfig, DivinerParams, SearchableStorage } from '@xyo-network/diviner-model';
|
|
4
|
+
import { Schema, Payload, PayloadWithSources } from '@xyo-network/payload-model';
|
|
5
|
+
import { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model';
|
|
6
|
+
import { AnyConfigSchema } from '@xyo-network/module-model';
|
|
7
|
+
import { Hash } from '@xylabs/hex';
|
|
8
|
+
|
|
9
|
+
declare const TemporalIndexingDivinerSchema: "network.xyo.diviner.indexing.temporal";
|
|
10
|
+
type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema;
|
|
11
|
+
|
|
12
|
+
type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`;
|
|
13
|
+
declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema;
|
|
14
|
+
|
|
15
|
+
type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`;
|
|
16
|
+
declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema;
|
|
17
|
+
/**
|
|
18
|
+
* Diviner Config for a Diviner which transforms a Diviner Query to an Index Query
|
|
19
|
+
*/
|
|
20
|
+
type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{
|
|
21
|
+
/**
|
|
22
|
+
* The schema of the diviner query payloads
|
|
23
|
+
*/
|
|
24
|
+
divinerQuerySchema?: Schema;
|
|
25
|
+
/**
|
|
26
|
+
* The schema of the index query payloads
|
|
27
|
+
*/
|
|
28
|
+
indexQuerySchema?: Schema;
|
|
29
|
+
/**
|
|
30
|
+
* The schema of the index payloads
|
|
31
|
+
*/
|
|
32
|
+
indexSchema?: Schema;
|
|
33
|
+
/**
|
|
34
|
+
* The config schema
|
|
35
|
+
*/
|
|
36
|
+
schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema;
|
|
37
|
+
/**
|
|
38
|
+
* The transforms to apply to the source payloads
|
|
39
|
+
*/
|
|
40
|
+
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
41
|
+
}>;
|
|
42
|
+
|
|
43
|
+
type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig>>;
|
|
44
|
+
|
|
45
|
+
type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`;
|
|
46
|
+
declare const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema;
|
|
47
|
+
|
|
48
|
+
type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema = `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`;
|
|
49
|
+
declare const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema;
|
|
50
|
+
/**
|
|
51
|
+
* Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response
|
|
52
|
+
*/
|
|
53
|
+
type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{
|
|
54
|
+
/**
|
|
55
|
+
* The config schema
|
|
56
|
+
*/
|
|
57
|
+
schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema;
|
|
58
|
+
/**
|
|
59
|
+
* The transforms to apply to the source payloads
|
|
60
|
+
*/
|
|
61
|
+
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
62
|
+
}>;
|
|
63
|
+
|
|
64
|
+
type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig>>;
|
|
65
|
+
|
|
66
|
+
type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`;
|
|
67
|
+
declare const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerSchema;
|
|
68
|
+
|
|
69
|
+
type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`;
|
|
70
|
+
declare const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema;
|
|
71
|
+
/**
|
|
72
|
+
* Diviner Config for a Diviner which transforms a Diviner State to Index Candidates
|
|
73
|
+
*/
|
|
74
|
+
type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{
|
|
75
|
+
/**
|
|
76
|
+
* The filter to use to identify index candidates
|
|
77
|
+
*/
|
|
78
|
+
filter?: BoundWitnessDivinerPredicate;
|
|
79
|
+
/**
|
|
80
|
+
* The maximum number of payloads to index at a time
|
|
81
|
+
*/
|
|
82
|
+
payloadDivinerLimit?: number;
|
|
83
|
+
/**
|
|
84
|
+
* Where the diviner should look for stored thumbnails
|
|
85
|
+
*/
|
|
86
|
+
payloadStore?: SearchableStorage;
|
|
87
|
+
/**
|
|
88
|
+
* The config schema
|
|
89
|
+
*/
|
|
90
|
+
schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema;
|
|
91
|
+
}>;
|
|
92
|
+
|
|
93
|
+
type TemporalIndexingDivinerStateToIndexCandidateDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig>>;
|
|
94
|
+
|
|
95
|
+
declare const TemporalIndexingDivinerConfigSchema: "network.xyo.diviner.indexing.temporal.config";
|
|
96
|
+
type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema;
|
|
97
|
+
/**
|
|
98
|
+
* Config section for declaring each indexing diviner stage
|
|
99
|
+
*/
|
|
100
|
+
type IndexingDivinerStageTransformConfig = {
|
|
101
|
+
[key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Diviner Config for a Diviner which Indexes Payloads
|
|
105
|
+
*/
|
|
106
|
+
type TemporalIndexingDivinerConfig = DivinerConfig<{
|
|
107
|
+
/**
|
|
108
|
+
* Where the diviner should store it's index
|
|
109
|
+
*/
|
|
110
|
+
indexStore?: SearchableStorage;
|
|
111
|
+
/**
|
|
112
|
+
* Config section for name/address of individual diviner stages
|
|
113
|
+
*/
|
|
114
|
+
indexingDivinerStages?: IndexingDivinerStageConfig;
|
|
115
|
+
/**
|
|
116
|
+
* The maximum number of payloads to index at a time
|
|
117
|
+
*/
|
|
118
|
+
payloadDivinerLimit?: number;
|
|
119
|
+
/**
|
|
120
|
+
* How often to poll for new payloads to index
|
|
121
|
+
*/
|
|
122
|
+
pollFrequency?: number;
|
|
123
|
+
/**
|
|
124
|
+
* The schema for this config
|
|
125
|
+
*/
|
|
126
|
+
schema: TemporalIndexingDivinerConfigSchema;
|
|
127
|
+
/**
|
|
128
|
+
* Optional config section for individual diviner stages
|
|
129
|
+
*/
|
|
130
|
+
stageConfigs?: {
|
|
131
|
+
divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>;
|
|
132
|
+
indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>;
|
|
133
|
+
indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>;
|
|
134
|
+
stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Where the diviner should persist its internal state
|
|
138
|
+
*/
|
|
139
|
+
stateStore?: SearchableStorage;
|
|
140
|
+
}>;
|
|
141
|
+
|
|
142
|
+
type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`;
|
|
143
|
+
declare const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema;
|
|
144
|
+
|
|
145
|
+
type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`;
|
|
146
|
+
declare const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema;
|
|
147
|
+
/**
|
|
148
|
+
* Diviner Config for a Diviner which transforms Index Candidates to Indexes
|
|
149
|
+
*/
|
|
150
|
+
type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{
|
|
151
|
+
/**
|
|
152
|
+
* The config schema
|
|
153
|
+
*/
|
|
154
|
+
schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema;
|
|
155
|
+
/**
|
|
156
|
+
* The transforms to apply to the source payloads
|
|
157
|
+
*/
|
|
158
|
+
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
159
|
+
}>;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Diviner Params for a Diviner which transforms Index Candidates to Indexes
|
|
163
|
+
*/
|
|
164
|
+
type TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig>>;
|
|
165
|
+
|
|
166
|
+
type TemporalIndexingDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerConfig>>;
|
|
167
|
+
|
|
168
|
+
declare const TemporalIndexingDivinerResultSchema: "network.xyo.diviner.indexing.temporal.result";
|
|
169
|
+
type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema;
|
|
170
|
+
|
|
171
|
+
type TemporalIndexingDivinerResult = Payload<{
|
|
172
|
+
sources: Hash[];
|
|
173
|
+
timestamp: string;
|
|
174
|
+
}, TemporalIndexingDivinerResultSchema>;
|
|
175
|
+
declare const isTemporalIndexingDivinerResult: (x?: unknown | null) => x is TemporalIndexingDivinerResult;
|
|
176
|
+
|
|
177
|
+
declare const TemporalIndexingDivinerResultIndexSchema: "network.xyo.diviner.indexing.temporal.result.index";
|
|
178
|
+
type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema;
|
|
179
|
+
|
|
180
|
+
type TemporalIndexingDivinerResultIndex = PayloadWithSources<{
|
|
181
|
+
timestamp: number;
|
|
182
|
+
}, TemporalIndexingDivinerResultIndexSchema>;
|
|
183
|
+
declare const isTemporalIndexingDivinerResultIndex: (x?: unknown | null) => x is TemporalIndexingDivinerResultIndex;
|
|
184
|
+
|
|
185
|
+
export { TemporalIndexingDivinerConfigSchema, TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema, TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema, TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema, TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema, TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema, TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema, TemporalIndexingDivinerResultIndexSchema, TemporalIndexingDivinerResultSchema, TemporalIndexingDivinerSchema, TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema, TemporalIndexingDivinerStateToIndexCandidateDivinerSchema, isTemporalIndexingDivinerResult, isTemporalIndexingDivinerResultIndex };
|
|
186
|
+
export type { IndexingDivinerStageTransformConfig, TemporalIndexingDivinerConfig, TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams, TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig, TemporalIndexingDivinerIndexCandidateToIndexDivinerParams, TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerParams, TemporalIndexingDivinerParams, TemporalIndexingDivinerResult, TemporalIndexingDivinerResultIndex, TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, TemporalIndexingDivinerStateToIndexCandidateDivinerParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,4CAA4C,CAAA;AAC1D,cAAc,yCAAyC,CAAA;AACvD,cAAc,4DAA4D,CAAA;AAC1E,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,yCAAyC,CAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model';
|
|
2
|
+
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
|
|
3
|
+
import type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model';
|
|
4
|
+
import type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts';
|
|
5
|
+
import type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts';
|
|
6
|
+
import type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts';
|
|
7
|
+
export declare const TemporalIndexingDivinerConfigSchema: "network.xyo.diviner.indexing.temporal.config";
|
|
8
|
+
export type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema;
|
|
9
|
+
/**
|
|
10
|
+
* Config section for declaring each indexing diviner stage
|
|
11
|
+
*/
|
|
12
|
+
export type IndexingDivinerStageTransformConfig = {
|
|
13
|
+
[key in IndexingDivinerStage]: SchemaToJsonPathTransformExpressionsDictionary;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Diviner Config for a Diviner which Indexes Payloads
|
|
17
|
+
*/
|
|
18
|
+
export type TemporalIndexingDivinerConfig = DivinerConfig<{
|
|
19
|
+
/**
|
|
20
|
+
* Where the diviner should store it's index
|
|
21
|
+
*/
|
|
22
|
+
indexStore?: SearchableStorage;
|
|
23
|
+
/**
|
|
24
|
+
* Config section for name/address of individual diviner stages
|
|
25
|
+
*/
|
|
26
|
+
indexingDivinerStages?: IndexingDivinerStageConfig;
|
|
27
|
+
/**
|
|
28
|
+
* The maximum number of payloads to index at a time
|
|
29
|
+
*/
|
|
30
|
+
payloadDivinerLimit?: number;
|
|
31
|
+
/**
|
|
32
|
+
* How often to poll for new payloads to index
|
|
33
|
+
*/
|
|
34
|
+
pollFrequency?: number;
|
|
35
|
+
/**
|
|
36
|
+
* The schema for this config
|
|
37
|
+
*/
|
|
38
|
+
schema: TemporalIndexingDivinerConfigSchema;
|
|
39
|
+
/**
|
|
40
|
+
* Optional config section for individual diviner stages
|
|
41
|
+
*/
|
|
42
|
+
stageConfigs?: {
|
|
43
|
+
divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>;
|
|
44
|
+
indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>;
|
|
45
|
+
indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>;
|
|
46
|
+
stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Where the diviner should persist its internal state
|
|
50
|
+
*/
|
|
51
|
+
stateStore?: SearchableStorage;
|
|
52
|
+
}>;
|
|
53
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +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;AAElF,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,gDAAqD,CAAA;AACrG,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA;AAE5F;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG;KAC/C,GAAG,IAAI,oBAAoB,GAAG,8CAA8C;CAC9E,CAAA;AAGD;;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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
|
|
2
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
+
import type { Schema } from '@xyo-network/payload-model';
|
|
4
|
+
import { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts';
|
|
5
|
+
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = `${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`;
|
|
6
|
+
export declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema;
|
|
7
|
+
/**
|
|
8
|
+
* Diviner Config for a Diviner which transforms a Diviner Query to an Index Query
|
|
9
|
+
*/
|
|
10
|
+
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{
|
|
11
|
+
/**
|
|
12
|
+
* The schema of the diviner query payloads
|
|
13
|
+
*/
|
|
14
|
+
divinerQuerySchema?: Schema;
|
|
15
|
+
/**
|
|
16
|
+
* The schema of the index query payloads
|
|
17
|
+
*/
|
|
18
|
+
indexQuerySchema?: Schema;
|
|
19
|
+
/**
|
|
20
|
+
* The schema of the index payloads
|
|
21
|
+
*/
|
|
22
|
+
indexSchema?: Schema;
|
|
23
|
+
/**
|
|
24
|
+
* The config schema
|
|
25
|
+
*/
|
|
26
|
+
schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema;
|
|
27
|
+
/**
|
|
28
|
+
* The transforms to apply to the source payloads
|
|
29
|
+
*/
|
|
30
|
+
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
31
|
+
}>;
|
|
32
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,4DAA4D,EAAE,MAAM,aAAa,CAAA;AAE1F,MAAM,MAAM,kEAAkE,GAC1E,GAAG,4DAA4D,SAAS,CAAA;AAC5E,eAAO,MAAM,kEAAkE,EAAE,kEACP,CAAA;AAE1E;;GAEG;AACH,MAAM,MAAM,4DAA4D,GAAG,aAAa,CAAC;IACvF;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,kEAAkE,CAAA;IAC1E;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
+
import type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './Config.ts';
|
|
4
|
+
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig>>;
|
|
5
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,4DAA4D,EAAE,MAAM,aAAa,CAAA;AAE/F,MAAM,MAAM,4DAA4D,GAAG,aAAa,CACtF,eAAe,CAAC,4DAA4D,CAAC,CAC9E,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TemporalIndexingDivinerSchema } from '../Schema.ts';
|
|
2
|
+
export type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.divinerQueryToIndexQueryDiviner`;
|
|
3
|
+
export declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema;
|
|
4
|
+
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAA;AAE5D,MAAM,MAAM,4DAA4D,GAAG,GAAG,6BAA6B,wCAAwC,CAAA;AACnJ,eAAO,MAAM,4DAA4D,EAAE,4DACD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
|
|
2
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
+
import { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts';
|
|
4
|
+
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = `${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`;
|
|
5
|
+
export declare const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema;
|
|
6
|
+
/**
|
|
7
|
+
* Diviner Config for a Diviner which transforms Index Candidates to Indexes
|
|
8
|
+
*/
|
|
9
|
+
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{
|
|
10
|
+
/**
|
|
11
|
+
* The config schema
|
|
12
|
+
*/
|
|
13
|
+
schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema;
|
|
14
|
+
/**
|
|
15
|
+
* The transforms to apply to the source payloads
|
|
16
|
+
*/
|
|
17
|
+
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,EAAE,yDAAyD,EAAE,MAAM,aAAa,CAAA;AAEvF,MAAM,MAAM,+DAA+D,GAAG,GAAG,yDAAyD,SAAS,CAAA;AACnJ,eAAO,MAAM,+DAA+D,EAAE,+DACP,CAAA;AAEvE;;GAEG;AACH,MAAM,MAAM,yDAAyD,GAAG,aAAa,CAAC;IACpF;;OAEG;IACH,MAAM,EAAE,+DAA+D,CAAA;IACvE;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
+
import type { TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig } from './Config.ts';
|
|
4
|
+
/**
|
|
5
|
+
* Diviner Params for a Diviner which transforms Index Candidates to Indexes
|
|
6
|
+
*/
|
|
7
|
+
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig>>;
|
|
8
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,aAAa,CAAA;AAE5F;;GAEG;AACH,MAAM,MAAM,yDAAyD,GAAG,aAAa,CACnF,eAAe,CAAC,yDAAyD,CAAC,CAC3E,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TemporalIndexingDivinerSchema } from '../Schema.ts';
|
|
2
|
+
export type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.indexCandidateToIndexDiviner`;
|
|
3
|
+
export declare const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema: TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema;
|
|
4
|
+
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/Schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAA;AAE5D,MAAM,MAAM,yDAAyD,GAAG,GAAG,6BAA6B,qCAAqC,CAAA;AAC7I,eAAO,MAAM,yDAAyD,EAAE,yDACA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/IndexCandidateToIndexDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
|
|
2
|
+
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
+
import { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts';
|
|
4
|
+
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema = `${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`;
|
|
5
|
+
export declare const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema;
|
|
6
|
+
/**
|
|
7
|
+
* Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response
|
|
8
|
+
*/
|
|
9
|
+
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{
|
|
10
|
+
/**
|
|
11
|
+
* The config schema
|
|
12
|
+
*/
|
|
13
|
+
schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema;
|
|
14
|
+
/**
|
|
15
|
+
* The transforms to apply to the source payloads
|
|
16
|
+
*/
|
|
17
|
+
schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE/D,OAAO,EAAE,4EAA4E,EAAE,MAAM,aAAa,CAAA;AAE1G,MAAM,MAAM,kFAAkF,GAC1F,GAAG,4EAA4E,SAAS,CAAA;AAE5F,eAAO,MAAM,kFAAkF,EAAE,kFACN,CAAA;AAE3F;;GAEG;AACH,MAAM,MAAM,4EAA4E,GAAG,aAAa,CAAC;IACvG;;OAEG;IACH,MAAM,EAAE,kFAAkF,CAAA;IAC1F;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
+
import type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './Config.ts';
|
|
4
|
+
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig>>;
|
|
5
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,4EAA4E,EAAE,MAAM,aAAa,CAAA;AAE/G,MAAM,MAAM,4EAA4E,GAAG,aAAa,CACtG,eAAe,CAAC,4EAA4E,CAAC,CAC9F,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TemporalIndexingDivinerSchema } from '../Schema.ts';
|
|
2
|
+
export type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.indexQueryResponseToDivinerQueryResponseDiviner`;
|
|
3
|
+
export declare const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema;
|
|
4
|
+
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAA;AAE5D,MAAM,MAAM,4EAA4E,GACpF,GAAG,6BAA6B,wDAAwD,CAAA;AAE5F,eAAO,MAAM,4EAA4E,EAAE,4EACD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/IndexQueryResponseToDivinerQueryResponseDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
+
import type { TemporalIndexingDivinerConfig } from './Config.ts';
|
|
4
|
+
export type TemporalIndexingDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerConfig>>;
|
|
5
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAGhE,MAAM,MAAM,6BAA6B,GAAG,aAAa,CAAC,eAAe,CAAC,6BAA6B,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
2
|
+
import type { Payload } from '@xyo-network/payload-model';
|
|
3
|
+
import { TemporalIndexingDivinerResultSchema } from './Schema.ts';
|
|
4
|
+
export type TemporalIndexingDivinerResult = Payload<{
|
|
5
|
+
sources: Hash[];
|
|
6
|
+
timestamp: string;
|
|
7
|
+
}, TemporalIndexingDivinerResultSchema>;
|
|
8
|
+
export declare const isTemporalIndexingDivinerResult: (x?: unknown | null) => x is TemporalIndexingDivinerResult;
|
|
9
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AAEjE,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,IAAI,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B,4DAA4F,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/Result/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mCAAmC,gDAAqD,CAAA;AACrG,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Result/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PayloadWithSources } from '@xyo-network/payload-model';
|
|
2
|
+
import { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts';
|
|
3
|
+
export type TemporalIndexingDivinerResultIndex = PayloadWithSources<{
|
|
4
|
+
timestamp: number;
|
|
5
|
+
}, TemporalIndexingDivinerResultIndexSchema>;
|
|
6
|
+
export declare const isTemporalIndexingDivinerResultIndex: (x?: unknown | null) => x is TemporalIndexingDivinerResultIndex;
|
|
7
|
+
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAGpE,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAA;AAEtE,MAAM,MAAM,kCAAkC,GAAG,kBAAkB,CACjE;IACE,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AAED,eAAO,MAAM,oCAAoC,iEAEhD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wCAAwC,sDAA0D,CAAA;AAC/G,MAAM,MAAM,wCAAwC,GAAG,OAAO,wCAAwC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,6BAA6B,yCAA+C,CAAA;AACzF,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness-model';
|
|
2
|
+
import type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model';
|
|
3
|
+
import { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts';
|
|
4
|
+
export type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = `${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`;
|
|
5
|
+
export declare const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema;
|
|
6
|
+
/**
|
|
7
|
+
* Diviner Config for a Diviner which transforms a Diviner State to Index Candidates
|
|
8
|
+
*/
|
|
9
|
+
export type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{
|
|
10
|
+
/**
|
|
11
|
+
* The filter to use to identify index candidates
|
|
12
|
+
*/
|
|
13
|
+
filter?: BoundWitnessDivinerPredicate;
|
|
14
|
+
/**
|
|
15
|
+
* The maximum number of payloads to index at a time
|
|
16
|
+
*/
|
|
17
|
+
payloadDivinerLimit?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Where the diviner should look for stored thumbnails
|
|
20
|
+
*/
|
|
21
|
+
payloadStore?: SearchableStorage;
|
|
22
|
+
/**
|
|
23
|
+
* The config schema
|
|
24
|
+
*/
|
|
25
|
+
schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema;
|
|
26
|
+
}>;
|
|
27
|
+
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAA;AAC3F,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAElF,OAAO,EAAE,yDAAyD,EAAE,MAAM,aAAa,CAAA;AAEvF,MAAM,MAAM,+DAA+D,GAAG,GAAG,yDAAyD,SAAS,CAAA;AACnJ,eAAO,MAAM,+DAA+D,EAAE,+DACP,CAAA;AAEvE;;GAEG;AACH,MAAM,MAAM,yDAAyD,GAAG,aAAa,CAAC;IACpF;;OAEG;IACH,MAAM,CAAC,EAAE,4BAA4B,CAAA;IACrC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAChC;;OAEG;IACH,MAAM,EAAE,+DAA+D,CAAA;CACxE,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { DivinerParams } from '@xyo-network/diviner-model';
|
|
2
|
+
import type { AnyConfigSchema } from '@xyo-network/module-model';
|
|
3
|
+
import type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './Config.ts';
|
|
4
|
+
export type TemporalIndexingDivinerStateToIndexCandidateDivinerParams = DivinerParams<AnyConfigSchema<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig>>;
|
|
5
|
+
//# sourceMappingURL=Params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,yDAAyD,EAAE,MAAM,aAAa,CAAA;AAE5F,MAAM,MAAM,yDAAyD,GAAG,aAAa,CACnF,eAAe,CAAC,yDAAyD,CAAC,CAC3E,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TemporalIndexingDivinerSchema } from '../Schema.ts';
|
|
2
|
+
export type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = `${TemporalIndexingDivinerSchema}.stage.stateToIndexCandidateDiviner`;
|
|
3
|
+
export declare const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema: TemporalIndexingDivinerStateToIndexCandidateDivinerSchema;
|
|
4
|
+
//# sourceMappingURL=Schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/Schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAA;AAE5D,MAAM,MAAM,yDAAyD,GAAG,GAAG,6BAA6B,qCAAqC,CAAA;AAC7I,eAAO,MAAM,yDAAyD,EAAE,yDACD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/StateToIndexCandidateDiviner/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}
|