@xyo-network/diviner-indexing-model 5.3.25 → 5.3.27
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 +236 -10
- package/package.json +13 -17
package/README.md
CHANGED
|
@@ -1,23 +1,249 @@
|
|
|
1
|
+
[![logo][]](https://xyo.network)
|
|
2
|
+
|
|
1
3
|
# @xyo-network/diviner-indexing-model
|
|
2
4
|
|
|
3
|
-
[![
|
|
5
|
+
[![npm][npm-badge]][npm-link]
|
|
6
|
+
[![license][license-badge]][license-link]
|
|
7
|
+
|
|
8
|
+
> Primary SDK for using XYO Protocol 2.0
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
Using npm:
|
|
4
13
|
|
|
5
|
-
|
|
14
|
+
```sh
|
|
15
|
+
npm install {{name}}
|
|
16
|
+
```
|
|
6
17
|
|
|
7
|
-
|
|
18
|
+
Using yarn:
|
|
8
19
|
|
|
9
|
-
|
|
20
|
+
```sh
|
|
21
|
+
yarn add {{name}}
|
|
22
|
+
```
|
|
10
23
|
|
|
11
|
-
|
|
24
|
+
Using pnpm:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
pnpm add {{name}}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Using bun:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
bun add {{name}}
|
|
34
|
+
```
|
|
12
35
|
|
|
13
|
-
Part of [sdk-xyo-client-js](https://www.npmjs.com/package/@xyo-network/sdk-xyo-client-js)
|
|
14
36
|
|
|
15
37
|
## License
|
|
16
38
|
|
|
17
|
-
|
|
39
|
+
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
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
|
|
18
239
|
|
|
19
|
-
|
|
240
|
+
```ts
|
|
241
|
+
readonly __schema: true;
|
|
242
|
+
```
|
|
20
243
|
|
|
21
|
-
[Made with 🔥 and ❄️ by XYO](https://xyo.network)
|
|
22
244
|
|
|
23
|
-
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
245
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
246
|
+
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-indexing-model.svg
|
|
247
|
+
[npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-indexing-model
|
|
248
|
+
[license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-indexing-model.svg
|
|
249
|
+
[license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-indexing-model",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.27",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/neutral/index.d.ts",
|
|
25
|
+
"import": "./dist/neutral/index.mjs",
|
|
25
26
|
"default": "./dist/neutral/index.mjs"
|
|
26
27
|
},
|
|
27
28
|
"./package.json": "./package.json"
|
|
28
29
|
},
|
|
29
|
-
"module": "dist/neutral/index.mjs",
|
|
30
30
|
"types": "dist/neutral/index.d.ts",
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|
|
@@ -36,29 +36,25 @@
|
|
|
36
36
|
"README.md"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xyo-network/
|
|
40
|
-
"@xyo-network/
|
|
41
|
-
"@xyo-network/
|
|
39
|
+
"@xyo-network/diviner-model": "~5.3.27",
|
|
40
|
+
"@xyo-network/payload-model": "~5.3.27",
|
|
41
|
+
"@xyo-network/module-model": "~5.3.27"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@opentelemetry/api": "^1.9.1",
|
|
45
|
-
"@
|
|
46
|
-
"@xylabs/
|
|
47
|
-
"@xylabs/ts-scripts-
|
|
48
|
-
"@xylabs/
|
|
49
|
-
"@xylabs/tsconfig": "~7.6.16",
|
|
50
|
-
"acorn": "^8.16.0",
|
|
45
|
+
"@xylabs/sdk-js": "^5.0.94",
|
|
46
|
+
"@xylabs/ts-scripts-common": "~7.7.15",
|
|
47
|
+
"@xylabs/ts-scripts-pnpm": "~7.7.15",
|
|
48
|
+
"@xylabs/tsconfig": "~7.7.15",
|
|
51
49
|
"axios": "^1.14.0",
|
|
52
|
-
"esbuild": "^0.28.0",
|
|
53
50
|
"typescript": "~5.9.3",
|
|
54
51
|
"zod": "^4.3.6",
|
|
55
|
-
"@xyo-network/diviner-model": "~5.3.
|
|
56
|
-
"@xyo-network/module-model": "~5.3.
|
|
57
|
-
"@xyo-network/payload-model": "~5.3.
|
|
52
|
+
"@xyo-network/diviner-model": "~5.3.27",
|
|
53
|
+
"@xyo-network/module-model": "~5.3.27",
|
|
54
|
+
"@xyo-network/payload-model": "~5.3.27"
|
|
58
55
|
},
|
|
59
56
|
"peerDependencies": {
|
|
60
|
-
"@xylabs/sdk-js": "^5"
|
|
61
|
-
"zod": "^4"
|
|
57
|
+
"@xylabs/sdk-js": "^5"
|
|
62
58
|
},
|
|
63
59
|
"publishConfig": {
|
|
64
60
|
"access": "public"
|