@xyo-network/diviner-indexing-model 6.0.3 → 6.1.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 CHANGED
@@ -38,10 +38,12 @@ bun add {{name}}
38
38
 
39
39
  See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
40
40
 
41
+ ## Credits
41
42
 
43
+ [Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)
42
44
 
43
- [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
44
45
  [npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-indexing-model.svg
45
46
  [npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-indexing-model
46
47
  [license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-indexing-model.svg
47
48
  [license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
49
+ [logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAClF,OAAO,EACK,KAAK,OAAO,EAAE,KAAK,MAAM,EACpC,MAAM,8BAA8B,CAAA;AAGrC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAE5D,eAAO,MAAM,2BAA2B;;CAAoD,CAAA;AAC5F,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E,MAAM,MAAM,qBAAqB,CAAC,OAAO,SAAS,OAAO,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI,EAAE,OAAO,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAI,aAAa,CAC1I,cAAc,CACZ;IACE;;OAEG;IACH,UAAU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A;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
@@ -1,4 +1,4 @@
1
- export declare const IndexingDivinerSchema: "network.xyo.diviner.indexing" & {
1
+ export declare const IndexingDivinerSchema: 'network.xyo.diviner.indexing' & {
2
2
  readonly __schema: true;
3
3
  };
4
4
  export type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema;
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB;;CAAiD,CAAA;AACnF,MAAM,MAAM,2BAA2B,GAAG,OAAO,qBAAqB,CAAA"}
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,EAAE,8BAA8B,GAAG;IACnE,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CACyB,CAAA;AAClD,MAAM,MAAM,2BAA2B,GAAG,OAAO,qBAAqB,CAAA"}
@@ -1,4 +1,4 @@
1
- export declare const DivinerStageSchema: "network.xyo.diviner.stage" & {
1
+ export declare const DivinerStageSchema: 'network.xyo.diviner.stage' & {
2
2
  readonly __schema: true;
3
3
  };
4
4
  export type DivinerStageSchema = typeof DivinerStageSchema;
@@ -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,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,CAAA"}
1
+ {"version":3,"file":"Stage.d.ts","sourceRoot":"","sources":["../../src/Stage.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAE,2BAA2B,GAAG;IAC7D,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CACsB,CAAA;AAC/C,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,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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/sdk-protocol-js'\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/sdk-protocol-js'\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/sdk-protocol-js'\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;",
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/sdk-protocol-js'\n\nimport { IndexingDivinerSchema } from './Schema.ts'\nimport type { IndexingDivinerStageConfig } from './Stage.ts'\n\nexport const IndexingDivinerConfigSchema: string & {\n readonly __schema: true\n} = 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/sdk-protocol-js'\n\nexport const IndexingDivinerSchema: 'network.xyo.diviner.indexing' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.indexing', true)\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n", "export const DivinerStageSchema: 'network.xyo.diviner.stage' & {\n readonly __schema: true\n} = 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/sdk-protocol-js'\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,wBAET,SAAS,gCAAgC,IAAI;;;ADK1C,IAAM,8BAETC,UAAS,GAAG,qBAAqB,WAAW,IAAI;;;AELpD,SAAS,YAAAC,iBAAgB;AANlB,IAAM,qBAETA,UAAS,6BAA6B,IAAI;",
6
6
  "names": ["asSchema", "asSchema", "asSchema"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-indexing-model",
3
- "version": "6.0.3",
3
+ "version": "6.1.0",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,8 +34,8 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/diviner-model": "~6.0.3",
38
- "@xyo-network/module-model": "~6.0.3"
37
+ "@xyo-network/module-model": "~6.1.0",
38
+ "@xyo-network/diviner-model": "~6.1.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@bitauth/libauth": "~3.0.0",
@@ -45,23 +45,20 @@
45
45
  "@opentelemetry/sdk-trace-base": "^2.7.1",
46
46
  "@scure/base": "~2.2.0",
47
47
  "@scure/bip39": "~2.2.0",
48
- "@xylabs/geo": "^6.0.7",
49
- "@xylabs/sdk-js": "^6.0.7",
50
- "@xylabs/threads": "^6.0.7",
51
- "@xylabs/toolchain": "~8.1.15",
52
- "@xylabs/tsconfig": "~8.1.15",
53
- "@xyo-network/sdk-protocol-js": "~6.0.8",
48
+ "@xylabs/geo": "^6.1.0",
49
+ "@xylabs/sdk-js": "^6.1.0",
50
+ "@xylabs/threads": "^6.1.0",
51
+ "@xylabs/toolchain": "^8.1.20",
52
+ "@xylabs/tsconfig": "^8.1.20",
53
+ "@xyo-network/sdk-protocol-js": "^6.1.0",
54
54
  "ajv": "^8.20.0",
55
55
  "async-mutex": "^0.5.0",
56
- "bn.js": "^5.2.3",
57
- "buffer": "^6.0.3",
58
56
  "debug": "~4.4.3",
59
57
  "eslint": "^10.4.1",
60
58
  "ethers": "^6.16.0",
61
59
  "hash-wasm": "~4.12.0",
62
60
  "idb": "^8.0.3",
63
61
  "observable-fns": "~0.6.1",
64
- "pako": "~2.1.0",
65
62
  "typescript": "~6.0.3",
66
63
  "webextension-polyfill": "^0.12.0",
67
64
  "zod": "^4.4.3"
@@ -77,20 +74,20 @@
77
74
  "@xylabs/geo": "^6.0",
78
75
  "@xylabs/sdk-js": "^6.0",
79
76
  "@xylabs/threads": "^6.0",
80
- "@xyo-network/sdk-protocol-js": "~6.0",
77
+ "@xyo-network/sdk-protocol-js": "^6.1",
81
78
  "ajv": "^8.20",
82
79
  "async-mutex": "^0.5",
83
- "bn.js": "^5.2",
84
- "buffer": "^6.0",
85
80
  "debug": "~4.4",
86
81
  "ethers": "^6.16",
87
82
  "hash-wasm": "~4.12",
88
83
  "idb": "^8.0",
89
84
  "observable-fns": "~0.6",
90
- "pako": "~2.1",
91
85
  "webextension-polyfill": "^0.12",
92
86
  "zod": "^4.4"
93
87
  },
88
+ "engines": {
89
+ "node": "^24"
90
+ },
94
91
  "publishConfig": {
95
92
  "access": "public"
96
93
  }