@xyo-network/diviner-indexing-model 5.6.3 → 6.0.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.
@@ -18,4 +18,4 @@ export {
18
18
  IndexingDivinerConfigSchema,
19
19
  IndexingDivinerSchema
20
20
  };
21
- //# sourceMappingURL=index.mjs.map
21
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1,7 @@
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"]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Config.ts", "../../src/Schema.ts", "../../src/Stage.ts"],
4
+ "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"],
5
+ "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;",
6
+ "names": ["asSchema", "asSchema", "asSchema"]
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-indexing-model",
3
- "version": "5.6.3",
3
+ "version": "6.0.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,46 +34,46 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/diviner-model": "~5.6.3",
38
- "@xyo-network/module-model": "~5.6.3"
37
+ "@xyo-network/diviner-model": "~6.0.0",
38
+ "@xyo-network/module-model": "~6.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@opentelemetry/api": "^1.9.1",
42
42
  "@opentelemetry/sdk-trace-base": "^2.7.1",
43
43
  "@scure/base": "~2.2.0",
44
- "@xylabs/sdk-js": "^5.1.1",
45
- "@xylabs/toolchain": "~7.13.4",
46
- "@xylabs/tsconfig": "~7.13.4",
47
- "@xyo-network/account-model": "~5.6.2",
48
- "@xyo-network/boundwitness-model": "~5.6.2",
49
- "@xyo-network/manifest-model": "~5.6.2",
50
- "@xyo-network/payload-model": "~5.6.2",
44
+ "@xylabs/sdk-js": "^6.0.0",
45
+ "@xylabs/toolchain": "~8.0.17",
46
+ "@xylabs/tsconfig": "~8.0.17",
47
+ "@xyo-network/account-model": "~6.0",
48
+ "@xyo-network/boundwitness-model": "~6.0",
49
+ "@xyo-network/manifest-model": "~6.0",
50
+ "@xyo-network/payload-model": "~6.0.0",
51
51
  "async-mutex": "^0.5.0",
52
52
  "bn.js": "^5.2.3",
53
53
  "buffer": "^6.0.3",
54
54
  "chalk": "^5.6.2",
55
- "eslint": "^10.3.0",
55
+ "eslint": "^10.4.0",
56
56
  "ethers": "^6.16.0",
57
57
  "pako": "~2.1.0",
58
- "typescript": "~5.9.3",
58
+ "typescript": "~6.0.3",
59
59
  "zod": "^4.4.3"
60
60
  },
61
61
  "peerDependencies": {
62
- "@opentelemetry/api": ">=1.9.1 <2",
63
- "@opentelemetry/sdk-trace-base": ">=2.7.1 <3",
64
- "@scure/base": ">=2.2.0 <2.3",
65
- "@xylabs/sdk-js": ">=5.1.1 <6",
66
- "@xyo-network/account-model": ">=5.6.2 <5.7",
67
- "@xyo-network/boundwitness-model": ">=5.6.2 <5.7",
68
- "@xyo-network/manifest-model": ">=5.6.2 <5.7",
69
- "@xyo-network/payload-model": ">=5.6.2 <5.7",
70
- "async-mutex": ">=0.5.0 <1",
71
- "bn.js": ">=5.2.3 <6",
72
- "buffer": ">=6.0.3 <7",
73
- "chalk": ">=5.6.2 <6",
74
- "ethers": ">=6.16.0 <7",
75
- "pako": ">=2.1.0 <2.2",
76
- "zod": ">=4.4.3 <5"
62
+ "@opentelemetry/api": "^1.9",
63
+ "@opentelemetry/sdk-trace-base": "^2.7",
64
+ "@scure/base": "~2.2",
65
+ "@xylabs/sdk-js": "^6.0",
66
+ "@xyo-network/account-model": "~6.0",
67
+ "@xyo-network/boundwitness-model": "~6.0",
68
+ "@xyo-network/manifest-model": "~6.0",
69
+ "@xyo-network/payload-model": "~6.0",
70
+ "async-mutex": "^0.5",
71
+ "bn.js": "^5.2",
72
+ "buffer": "^6.0",
73
+ "chalk": "^5.6",
74
+ "ethers": "^6.16",
75
+ "pako": "~2.1",
76
+ "zod": "^4.4"
77
77
  },
78
78
  "publishConfig": {
79
79
  "access": "public"