@xyo-network/diviner-indexing-model 5.3.29 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -202
- package/dist/neutral/Labels.d.ts +1 -3
- package/dist/neutral/Labels.d.ts.map +1 -1
- package/dist/neutral/Stage.d.ts +1 -3
- package/dist/neutral/Stage.d.ts.map +1 -1
- package/dist/neutral/index.mjs.map +1 -1
- package/package.json +13 -17
package/README.md
CHANGED
|
@@ -38,208 +38,6 @@ bun add {{name}}
|
|
|
38
38
|
|
|
39
39
|
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
40
|
|
|
41
|
-
## Reference
|
|
42
|
-
|
|
43
|
-
### packages
|
|
44
|
-
|
|
45
|
-
### modules
|
|
46
|
-
|
|
47
|
-
### packages
|
|
48
|
-
|
|
49
|
-
### diviner
|
|
50
|
-
|
|
51
|
-
### packages
|
|
52
|
-
|
|
53
|
-
### indexing
|
|
54
|
-
|
|
55
|
-
### packages
|
|
56
|
-
|
|
57
|
-
### model
|
|
58
|
-
|
|
59
|
-
### .temp-typedoc
|
|
60
|
-
|
|
61
|
-
### type-aliases
|
|
62
|
-
|
|
63
|
-
### <a id="DivinerStageSchema"></a>DivinerStageSchema
|
|
64
|
-
|
|
65
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
66
|
-
|
|
67
|
-
***
|
|
68
|
-
|
|
69
|
-
```ts
|
|
70
|
-
type DivinerStageSchema = typeof DivinerStageSchema;
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### <a id="ImageThumbnailDivinerSchema"></a>ImageThumbnailDivinerSchema
|
|
74
|
-
|
|
75
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
76
|
-
|
|
77
|
-
***
|
|
78
|
-
|
|
79
|
-
```ts
|
|
80
|
-
type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema;
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
### <a id="IndexingDivinerConfig"></a>IndexingDivinerConfig
|
|
84
|
-
|
|
85
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
86
|
-
|
|
87
|
-
***
|
|
88
|
-
|
|
89
|
-
```ts
|
|
90
|
-
type IndexingDivinerConfig<TConfig, TSchema> = DivinerConfig<WithAdditional<{
|
|
91
|
-
indexStore?: SearchableStorage;
|
|
92
|
-
indexingDivinerStages?: IndexingDivinerStageConfig;
|
|
93
|
-
payloadDivinerLimit?: number;
|
|
94
|
-
pollFrequency?: number;
|
|
95
|
-
schema: IndexingDivinerConfigSchema;
|
|
96
|
-
stateStore?: SearchableStorage;
|
|
97
|
-
}, TConfig>, TSchema>;
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Type Parameters
|
|
101
|
-
|
|
102
|
-
### TConfig
|
|
103
|
-
|
|
104
|
-
`TConfig` *extends* `Payload` \| `EmptyObject` \| `void` = `void`
|
|
105
|
-
|
|
106
|
-
### TSchema
|
|
107
|
-
|
|
108
|
-
`TSchema` *extends* `Schema` \| `void` = `void`
|
|
109
|
-
|
|
110
|
-
### <a id="IndexingDivinerConfigSchema"></a>IndexingDivinerConfigSchema
|
|
111
|
-
|
|
112
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
113
|
-
|
|
114
|
-
***
|
|
115
|
-
|
|
116
|
-
```ts
|
|
117
|
-
type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
### <a id="IndexingDivinerParams"></a>IndexingDivinerParams
|
|
121
|
-
|
|
122
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
123
|
-
|
|
124
|
-
***
|
|
125
|
-
|
|
126
|
-
```ts
|
|
127
|
-
type IndexingDivinerParams = DivinerParams<AnyConfigSchema<IndexingDivinerConfig>>;
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
### <a id="IndexingDivinerStage"></a>IndexingDivinerStage
|
|
131
|
-
|
|
132
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
133
|
-
|
|
134
|
-
***
|
|
135
|
-
|
|
136
|
-
```ts
|
|
137
|
-
type IndexingDivinerStage =
|
|
138
|
-
| "divinerQueryToIndexQueryDiviner"
|
|
139
|
-
| "indexCandidateToIndexDiviner"
|
|
140
|
-
| "indexQueryResponseToDivinerQueryResponseDiviner"
|
|
141
|
-
| "stateToIndexCandidateDiviner";
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
The diviners for each stage of an indexing diviner
|
|
145
|
-
|
|
146
|
-
### <a id="IndexingDivinerStageConfig"></a>IndexingDivinerStageConfig
|
|
147
|
-
|
|
148
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
149
|
-
|
|
150
|
-
***
|
|
151
|
-
|
|
152
|
-
```ts
|
|
153
|
-
type IndexingDivinerStageConfig = { [key in IndexingDivinerStage]: ModuleIdentifier };
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
Config section for declaring each indexing diviner stage
|
|
157
|
-
|
|
158
|
-
### <a id="IndexingDivinerStageLabels"></a>IndexingDivinerStageLabels
|
|
159
|
-
|
|
160
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
161
|
-
|
|
162
|
-
***
|
|
163
|
-
|
|
164
|
-
```ts
|
|
165
|
-
type IndexingDivinerStageLabels = Labels & { [key in DivinerStageSchema]: IndexingDivinerStage };
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
Labels for Indexing Diviner Stage Diviners
|
|
169
|
-
|
|
170
|
-
### <a id="IndexingDivinerState"></a>IndexingDivinerState
|
|
171
|
-
|
|
172
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
173
|
-
|
|
174
|
-
***
|
|
175
|
-
|
|
176
|
-
```ts
|
|
177
|
-
type IndexingDivinerState = StateDictionary & object;
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
## Type Declaration
|
|
181
|
-
|
|
182
|
-
### cursor
|
|
183
|
-
|
|
184
|
-
```ts
|
|
185
|
-
cursor: Sequence;
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
### variables
|
|
189
|
-
|
|
190
|
-
### <a id="DivinerStageSchema"></a>DivinerStageSchema
|
|
191
|
-
|
|
192
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
193
|
-
|
|
194
|
-
***
|
|
195
|
-
|
|
196
|
-
```ts
|
|
197
|
-
const DivinerStageSchema: "network.xyo.diviner.stage" & object;
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
## Type Declaration
|
|
201
|
-
|
|
202
|
-
### \_\_schema
|
|
203
|
-
|
|
204
|
-
```ts
|
|
205
|
-
readonly __schema: true;
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
### <a id="IndexingDivinerConfigSchema"></a>IndexingDivinerConfigSchema
|
|
209
|
-
|
|
210
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
211
|
-
|
|
212
|
-
***
|
|
213
|
-
|
|
214
|
-
```ts
|
|
215
|
-
const IndexingDivinerConfigSchema: string & object;
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
## Type Declaration
|
|
219
|
-
|
|
220
|
-
### \_\_schema
|
|
221
|
-
|
|
222
|
-
```ts
|
|
223
|
-
readonly __schema: true;
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
### <a id="IndexingDivinerSchema"></a>IndexingDivinerSchema
|
|
227
|
-
|
|
228
|
-
[**@xyo-network/diviner-indexing-model**](#../README)
|
|
229
|
-
|
|
230
|
-
***
|
|
231
|
-
|
|
232
|
-
```ts
|
|
233
|
-
const IndexingDivinerSchema: "network.xyo.diviner.indexing" & object;
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## Type Declaration
|
|
237
|
-
|
|
238
|
-
### \_\_schema
|
|
239
|
-
|
|
240
|
-
```ts
|
|
241
|
-
readonly __schema: true;
|
|
242
|
-
```
|
|
243
41
|
|
|
244
42
|
|
|
245
43
|
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
package/dist/neutral/Labels.d.ts
CHANGED
|
@@ -3,7 +3,5 @@ import type { DivinerStageSchema, IndexingDivinerStage } from './Stage.ts';
|
|
|
3
3
|
/**
|
|
4
4
|
* Labels for Indexing Diviner Stage Diviners
|
|
5
5
|
*/
|
|
6
|
-
export type IndexingDivinerStageLabels = Labels &
|
|
7
|
-
[key in DivinerStageSchema]: IndexingDivinerStage;
|
|
8
|
-
};
|
|
6
|
+
export type IndexingDivinerStageLabels = Labels & Record<DivinerStageSchema, IndexingDivinerStage>;
|
|
9
7
|
//# sourceMappingURL=Labels.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Labels.d.ts","sourceRoot":"","sources":["../../src/Labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAE1E;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"Labels.d.ts","sourceRoot":"","sources":["../../src/Labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAE1E;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,MAAM,CAAC,kBAAkB,EAAE,oBAAoB,CAAC,CAAA"}
|
package/dist/neutral/Stage.d.ts
CHANGED
|
@@ -22,7 +22,5 @@ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner'
|
|
|
22
22
|
/**
|
|
23
23
|
* Config section for declaring each indexing diviner stage
|
|
24
24
|
*/
|
|
25
|
-
export type IndexingDivinerStageConfig =
|
|
26
|
-
[key in IndexingDivinerStage]: ModuleIdentifier;
|
|
27
|
-
};
|
|
25
|
+
export type IndexingDivinerStageConfig = Record<IndexingDivinerStage, ModuleIdentifier>;
|
|
28
26
|
//# sourceMappingURL=Stage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stage.d.ts","sourceRoot":"","sources":["../../src/Stage.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;CAA8C,CAAA;AAC7E,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA;AAE1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAI1B,iCAAiC;AACrC;;GAEG;GACC,8BAA8B;AAClC;;GAEG;GACC,iDAAiD;AACrD;;GAEG;GACC,8BAA8B,CAAA;AAEpC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG
|
|
1
|
+
{"version":3,"file":"Stage.d.ts","sourceRoot":"","sources":["../../src/Stage.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;CAA8C,CAAA;AAC7E,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA;AAE1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAGjE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAI1B,iCAAiC;AACrC;;GAEG;GACC,8BAA8B;AAClC;;GAEG;GACC,iDAAiD;AACrD;;GAEG;GACC,8BAA8B,CAAA;AAEpC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/Stage.ts"],"sourcesContent":["import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport {\n asSchema, type Payload, type Schema,\n} from '@xyo-network/payload-model'\n\nimport { IndexingDivinerSchema } from './Schema.ts'\nimport type { IndexingDivinerStageConfig } from './Stage.ts'\n\nexport const IndexingDivinerConfigSchema = asSchema(`${IndexingDivinerSchema}.config`, true)\nexport type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema\n\nexport type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends Schema | void = void> = DivinerConfig<\n WithAdditional<\n {\n /**\n * Where the diviner should store it's index\n */\n indexStore?: SearchableStorage\n /**\n * Config section for name/address of individual diviner stages\n */\n indexingDivinerStages?: IndexingDivinerStageConfig\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * How often to poll for new payloads to index\n */\n pollFrequency?: number\n /**\n * The schema for the Diviner config\n */\n schema: IndexingDivinerConfigSchema\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n },\n TConfig\n >,\n TSchema\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const IndexingDivinerSchema = asSchema('network.xyo.diviner.indexing', true)\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n","export const DivinerStageSchema = asSchema('network.xyo.diviner.stage', true)\nexport type DivinerStageSchema = typeof DivinerStageSchema\n\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\n/**\n * The diviners for each stage of an indexing diviner\n */\nexport type IndexingDivinerStage\n /**\n * Transforms a diviner query into an index query\n */\n = | 'divinerQueryToIndexQueryDiviner'\n /**\n * Transforms the index candidates into indexes\n */\n | 'indexCandidateToIndexDiviner'\n /**\n * Transforms an index query response into a diviner divine query response\n */\n | 'indexQueryResponseToDivinerQueryResponseDiviner'\n /**\n * Uses the current state to determine the next batch of index candidates\n */\n | 'stateToIndexCandidateDiviner'\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageConfig =
|
|
1
|
+
{"version":3,"sources":["../../src/Config.ts","../../src/Schema.ts","../../src/Stage.ts"],"sourcesContent":["import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport {\n asSchema, type Payload, type Schema,\n} from '@xyo-network/payload-model'\n\nimport { IndexingDivinerSchema } from './Schema.ts'\nimport type { IndexingDivinerStageConfig } from './Stage.ts'\n\nexport const IndexingDivinerConfigSchema = asSchema(`${IndexingDivinerSchema}.config`, true)\nexport type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema\n\nexport type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends Schema | void = void> = DivinerConfig<\n WithAdditional<\n {\n /**\n * Where the diviner should store it's index\n */\n indexStore?: SearchableStorage\n /**\n * Config section for name/address of individual diviner stages\n */\n indexingDivinerStages?: IndexingDivinerStageConfig\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * How often to poll for new payloads to index\n */\n pollFrequency?: number\n /**\n * The schema for the Diviner config\n */\n schema: IndexingDivinerConfigSchema\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n },\n TConfig\n >,\n TSchema\n>\n","import { asSchema } from '@xyo-network/payload-model'\n\nexport const IndexingDivinerSchema = asSchema('network.xyo.diviner.indexing', true)\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n","export const DivinerStageSchema = asSchema('network.xyo.diviner.stage', true)\nexport type DivinerStageSchema = typeof DivinerStageSchema\n\nimport type { ModuleIdentifier } from '@xyo-network/module-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\n/**\n * The diviners for each stage of an indexing diviner\n */\nexport type IndexingDivinerStage\n /**\n * Transforms a diviner query into an index query\n */\n = | 'divinerQueryToIndexQueryDiviner'\n /**\n * Transforms the index candidates into indexes\n */\n | 'indexCandidateToIndexDiviner'\n /**\n * Transforms an index query response into a diviner divine query response\n */\n | 'indexQueryResponseToDivinerQueryResponseDiviner'\n /**\n * Uses the current state to determine the next batch of index candidates\n */\n | 'stateToIndexCandidateDiviner'\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageConfig = Record<IndexingDivinerStage, ModuleIdentifier>\n"],"mappings":";AAEA;AAAA,EACE,YAAAA;AAAA,OACK;;;ACJP,SAAS,gBAAgB;AAElB,IAAM,wBAAwB,SAAS,gCAAgC,IAAI;;;ADO3E,IAAM,8BAA8BC,UAAS,GAAG,qBAAqB,WAAW,IAAI;;;AEL3F,SAAS,YAAAC,iBAAgB;AAJlB,IAAM,qBAAqBA,UAAS,6BAA6B,IAAI;","names":["asSchema","asSchema","asSchema"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-indexing-model",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -22,12 +22,10 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/neutral/index.d.ts",
|
|
25
|
-
"import": "./dist/neutral/index.mjs",
|
|
26
25
|
"default": "./dist/neutral/index.mjs"
|
|
27
26
|
},
|
|
28
27
|
"./package.json": "./package.json"
|
|
29
28
|
},
|
|
30
|
-
"types": "dist/neutral/index.d.ts",
|
|
31
29
|
"files": [
|
|
32
30
|
"dist",
|
|
33
31
|
"!**/*.bench.*",
|
|
@@ -36,28 +34,26 @@
|
|
|
36
34
|
"README.md"
|
|
37
35
|
],
|
|
38
36
|
"dependencies": {
|
|
39
|
-
"@xyo-network/diviner-model": "~5.
|
|
40
|
-
"@xyo-network/module-model": "~5.
|
|
41
|
-
"@xyo-network/payload-model": "~5.
|
|
37
|
+
"@xyo-network/diviner-model": "~5.4.0",
|
|
38
|
+
"@xyo-network/module-model": "~5.4.0",
|
|
39
|
+
"@xyo-network/payload-model": "~5.4.0"
|
|
42
40
|
},
|
|
43
41
|
"devDependencies": {
|
|
44
42
|
"@opentelemetry/api": "^1.9.1",
|
|
45
|
-
"@xylabs/sdk-js": "^5.0.
|
|
46
|
-
"@xylabs/
|
|
47
|
-
"@xylabs/
|
|
48
|
-
"@xylabs/tsconfig": "~7.8.4",
|
|
49
|
-
"axios": "^1.14.0",
|
|
43
|
+
"@xylabs/sdk-js": "^5.0.97",
|
|
44
|
+
"@xylabs/toolchain": "~7.10.8",
|
|
45
|
+
"@xylabs/tsconfig": "~7.10.8",
|
|
50
46
|
"pako": "~2.1.0",
|
|
51
47
|
"typescript": "~5.9.3",
|
|
52
48
|
"zod": "^4.3.6",
|
|
53
|
-
"@xyo-network/
|
|
54
|
-
"@xyo-network/manifest-model": "~5.
|
|
55
|
-
"@xyo-network/
|
|
49
|
+
"@xyo-network/previous-hash-store-model": "~5.4.0",
|
|
50
|
+
"@xyo-network/manifest-model": "~5.4.0",
|
|
51
|
+
"@xyo-network/account-model": "~5.4.0"
|
|
56
52
|
},
|
|
57
53
|
"peerDependencies": {
|
|
58
|
-
"@xylabs/sdk-js": "^5",
|
|
59
|
-
"@xyo-network/account-model": "~5.
|
|
60
|
-
"@xyo-network/manifest-model": "~5.
|
|
54
|
+
"@xylabs/sdk-js": "^5.0.97",
|
|
55
|
+
"@xyo-network/account-model": "~5.4",
|
|
56
|
+
"@xyo-network/manifest-model": "~5.4"
|
|
61
57
|
},
|
|
62
58
|
"publishConfig": {
|
|
63
59
|
"access": "public"
|