@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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-temporal-indexing-model",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -21,25 +21,25 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./dist/
|
|
24
|
+
"types": "./dist/neutral/index.d.ts",
|
|
25
25
|
"default": "./dist/neutral/index.mjs"
|
|
26
26
|
},
|
|
27
27
|
"./package.json": "./package.json"
|
|
28
28
|
},
|
|
29
29
|
"module": "dist/neutral/index.mjs",
|
|
30
|
-
"types": "dist/
|
|
30
|
+
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@xylabs/hex": "^4.13.
|
|
33
|
-
"@xyo-network/diviner-boundwitness-model": "^4.
|
|
34
|
-
"@xyo-network/diviner-indexing-model": "^4.
|
|
35
|
-
"@xyo-network/diviner-jsonpath-model": "^4.
|
|
36
|
-
"@xyo-network/diviner-model": "^4.
|
|
37
|
-
"@xyo-network/module-model": "^4.
|
|
38
|
-
"@xyo-network/payload-model": "^4.
|
|
32
|
+
"@xylabs/hex": "^4.13.15",
|
|
33
|
+
"@xyo-network/diviner-boundwitness-model": "^4.1.1",
|
|
34
|
+
"@xyo-network/diviner-indexing-model": "^4.1.1",
|
|
35
|
+
"@xyo-network/diviner-jsonpath-model": "^4.1.1",
|
|
36
|
+
"@xyo-network/diviner-model": "^4.1.1",
|
|
37
|
+
"@xyo-network/module-model": "^4.1.1",
|
|
38
|
+
"@xyo-network/payload-model": "^4.1.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
42
|
-
"@xylabs/tsconfig": "^
|
|
41
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.23",
|
|
42
|
+
"@xylabs/tsconfig": "^7.0.0-rc.23",
|
|
43
43
|
"typescript": "^5.8.3"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,10 +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';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Config.d.ts.map
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Params.d.ts.map
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.d.ts.map
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{types → browser}/IndexQueryResponseToDivinerQueryResponseDiviner/index.d.ts.map
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|