@xyo-network/diviner-indexing-model 5.3.22 → 5.3.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-indexing-model",
3
- "version": "5.3.22",
3
+ "version": "5.3.24",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -30,35 +30,31 @@
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "files": [
32
32
  "dist",
33
- "src",
34
33
  "!**/*.bench.*",
35
34
  "!**/*.spec.*",
36
35
  "!**/*.test.*",
37
36
  "README.md"
38
37
  ],
39
38
  "dependencies": {
40
- "@xyo-network/diviner-model": "~5.3.22",
41
- "@xyo-network/module-model": "~5.3.22",
42
- "@xyo-network/payload-model": "~5.3.22"
39
+ "@xyo-network/diviner-model": "~5.3.24",
40
+ "@xyo-network/payload-model": "~5.3.24",
41
+ "@xyo-network/module-model": "~5.3.24"
43
42
  },
44
43
  "devDependencies": {
45
44
  "@opentelemetry/api": "^1.9.1",
46
45
  "@types/node": "^25.5.0",
47
- "@xylabs/sdk-js": "^5.0.91",
48
- "@xylabs/ts-scripts-common": "~7.6.8",
49
- "@xylabs/ts-scripts-yarn3": "~7.6.8",
50
- "@xylabs/tsconfig": "~7.6.8",
51
- "@xyo-network/diviner-model": "~5.3.22",
52
- "@xyo-network/module-model": "~5.3.22",
53
- "@xyo-network/payload-model": "~5.3.22",
46
+ "@xylabs/sdk-js": "^5.0.93",
47
+ "@xylabs/ts-scripts-common": "~7.6.16",
48
+ "@xylabs/ts-scripts-pnpm": "~7.6.16",
49
+ "@xylabs/tsconfig": "~7.6.16",
54
50
  "acorn": "^8.16.0",
55
51
  "axios": "^1.14.0",
56
- "cosmiconfig": "^9.0.1",
57
- "esbuild": "^0.27.4",
58
- "eslint": "^10.1.0",
59
- "rollup": "^4.60.1",
52
+ "esbuild": "^0.28.0",
60
53
  "typescript": "~5.9.3",
61
- "zod": "^4.3.6"
54
+ "zod": "^4.3.6",
55
+ "@xyo-network/diviner-model": "~5.3.24",
56
+ "@xyo-network/module-model": "~5.3.24",
57
+ "@xyo-network/payload-model": "~5.3.24"
62
58
  },
63
59
  "peerDependencies": {
64
60
  "@xylabs/sdk-js": "^5",
@@ -67,4 +63,4 @@
67
63
  "publishConfig": {
68
64
  "access": "public"
69
65
  }
70
- }
66
+ }
package/src/Config.ts DELETED
@@ -1,44 +0,0 @@
1
- import type { EmptyObject, WithAdditional } from '@xylabs/sdk-js'
2
- import type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'
3
- import {
4
- asSchema, type Payload, type Schema,
5
- } from '@xyo-network/payload-model'
6
-
7
- import { IndexingDivinerSchema } from './Schema.ts'
8
- import type { IndexingDivinerStageConfig } from './Stage.ts'
9
-
10
- export const IndexingDivinerConfigSchema = asSchema(`${IndexingDivinerSchema}.config`, true)
11
- export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema
12
-
13
- export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends Schema | void = void> = DivinerConfig<
14
- WithAdditional<
15
- {
16
- /**
17
- * Where the diviner should store it's index
18
- */
19
- indexStore?: SearchableStorage
20
- /**
21
- * Config section for name/address of individual diviner stages
22
- */
23
- indexingDivinerStages?: IndexingDivinerStageConfig
24
- /**
25
- * The maximum number of payloads to index at a time
26
- */
27
- payloadDivinerLimit?: number
28
- /**
29
- * How often to poll for new payloads to index
30
- */
31
- pollFrequency?: number
32
- /**
33
- * The schema for the Diviner config
34
- */
35
- schema: IndexingDivinerConfigSchema
36
- /**
37
- * Where the diviner should persist its internal state
38
- */
39
- stateStore?: SearchableStorage
40
- },
41
- TConfig
42
- >,
43
- TSchema
44
- >
package/src/Labels.ts DELETED
@@ -1,13 +0,0 @@
1
- import type { Labels } from '@xyo-network/module-model'
2
-
3
- import type { DivinerStageSchema, IndexingDivinerStage } from './Stage.ts'
4
-
5
- /**
6
- * Labels for Indexing Diviner Stage Diviners
7
- */
8
- export type IndexingDivinerStageLabels = Labels & {
9
- /**
10
- * Labels for the stage of the Indexing Diviner Stage Diviner
11
- */
12
- [key in DivinerStageSchema]: IndexingDivinerStage
13
- }
package/src/Params.ts DELETED
@@ -1,6 +0,0 @@
1
- import type { DivinerParams } from '@xyo-network/diviner-model'
2
- import type { AnyConfigSchema } from '@xyo-network/module-model'
3
-
4
- import type { IndexingDivinerConfig } from './Config.ts'
5
-
6
- export type IndexingDivinerParams = DivinerParams<AnyConfigSchema<IndexingDivinerConfig>>
package/src/Schema.ts DELETED
@@ -1,4 +0,0 @@
1
- import { asSchema } from '@xyo-network/payload-model'
2
-
3
- export const IndexingDivinerSchema = asSchema('network.xyo.diviner.indexing', true)
4
- export type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema
package/src/Stage.ts DELETED
@@ -1,33 +0,0 @@
1
- export const DivinerStageSchema = asSchema('network.xyo.diviner.stage', true)
2
- export type DivinerStageSchema = typeof DivinerStageSchema
3
-
4
- import type { ModuleIdentifier } from '@xyo-network/module-model'
5
- import { asSchema } from '@xyo-network/payload-model'
6
-
7
- /**
8
- * The diviners for each stage of an indexing diviner
9
- */
10
- export type IndexingDivinerStage
11
- /**
12
- * Transforms a diviner query into an index query
13
- */
14
- = | 'divinerQueryToIndexQueryDiviner'
15
- /**
16
- * Transforms the index candidates into indexes
17
- */
18
- | 'indexCandidateToIndexDiviner'
19
- /**
20
- * Transforms an index query response into a diviner divine query response
21
- */
22
- | 'indexQueryResponseToDivinerQueryResponseDiviner'
23
- /**
24
- * Uses the current state to determine the next batch of index candidates
25
- */
26
- | 'stateToIndexCandidateDiviner'
27
-
28
- /**
29
- * Config section for declaring each indexing diviner stage
30
- */
31
- export type IndexingDivinerStageConfig = {
32
- [key in IndexingDivinerStage]: ModuleIdentifier
33
- }
package/src/State.ts DELETED
@@ -1,6 +0,0 @@
1
- import type { StateDictionary } from '@xyo-network/module-model'
2
- import type { Sequence } from '@xyo-network/payload-model'
3
-
4
- export type IndexingDivinerState = StateDictionary & {
5
- cursor: Sequence
6
- }
package/src/index.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from './Config.ts'
2
- export * from './Labels.ts'
3
- export * from './Params.ts'
4
- export * from './Schema.ts'
5
- export * from './Stage.ts'
6
- export * from './State.ts'