@xyo-network/diviner-indexing-model 3.0.7 → 3.0.9

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.
@@ -0,0 +1,15 @@
1
+ import type { EmptyObject, WithAdditional } from '@xylabs/object';
2
+ import type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model';
3
+ import type { Payload } from '@xyo-network/payload-model';
4
+ import type { IndexingDivinerStageConfig } from './Stage.ts';
5
+ export declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
6
+ export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
7
+ export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
8
+ indexStore?: SearchableStorage;
9
+ indexingDivinerStages?: IndexingDivinerStageConfig;
10
+ payloadDivinerLimit?: number;
11
+ pollFrequency?: number;
12
+ schema: IndexingDivinerConfigSchema;
13
+ stateStore?: SearchableStorage;
14
+ }, TConfig>, TSchema>;
15
+ //# sourceMappingURL=Config.d.ts.map
@@ -0,0 +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,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAE5D,eAAO,MAAM,2BAA2B,uCAA6C,CAAA;AACrF,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;IAIE,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAI9B,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAIlD,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAI5B,aAAa,CAAC,EAAE,MAAM,CAAA;IAItB,MAAM,EAAE,2BAA2B,CAAA;IAInC,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { Labels } from '@xyo-network/module-model';
2
+ import type { DivinerStageSchema, IndexingDivinerStage } from './Stage.ts';
3
+ export type IndexingDivinerStageLabels = Labels & {
4
+ [key in DivinerStageSchema]: IndexingDivinerStage;
5
+ };
6
+ //# sourceMappingURL=Labels.d.ts.map
@@ -0,0 +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;AAK1E,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { DivinerParams } from '@xyo-network/diviner-model';
2
+ import type { AnyConfigSchema } from '@xyo-network/module-model';
3
+ import type { IndexingDivinerConfig } from './Config.ts';
4
+ export type IndexingDivinerParams = DivinerParams<AnyConfigSchema<IndexingDivinerConfig>>;
5
+ //# sourceMappingURL=Params.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const IndexingDivinerSchema: "network.xyo.diviner.indexing";
2
+ export type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema;
3
+ //# sourceMappingURL=Schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,gCAA0C,CAAA;AAC5E,MAAM,MAAM,2BAA2B,GAAG,OAAO,qBAAqB,CAAA"}
@@ -0,0 +1,8 @@
1
+ export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
+ export declare const DivinerStageSchema: DivinerStageSchema;
3
+ import type { ModuleIdentifier } from '@xyo-network/module-model';
4
+ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
5
+ export type IndexingDivinerStageConfig = {
6
+ [key in IndexingDivinerStage]: ModuleIdentifier;
7
+ };
8
+ //# sourceMappingURL=Stage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Stage.d.ts","sourceRoot":"","sources":["../../src/Stage.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,2BAA2B,CAAA;AAC5D,eAAO,MAAM,kBAAkB,EAAE,kBAAgD,CAAA;AAEjF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAKjE,MAAM,MAAM,oBAAoB,GAI5B,iCAAiC,GAIjC,8BAA8B,GAI9B,iDAAiD,GAIjD,8BAA8B,CAAA;AAKlC,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,gBAAgB;CAChD,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { StateDictionary } from '@xyo-network/module-model';
2
+ export type IndexingDivinerState = StateDictionary & {
3
+ offset: number;
4
+ };
5
+ //# sourceMappingURL=State.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../src/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IACnD,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -1,38 +1,7 @@
1
- import { EmptyObject, WithAdditional } from '@xylabs/object';
2
- import { DivinerConfig, SearchableStorage, DivinerParams } from '@xyo-network/diviner-model';
3
- import { Payload } from '@xyo-network/payload-model';
4
- import { ModuleIdentifier, Labels, AnyConfigSchema, StateDictionary } from '@xyo-network/module-model';
5
-
6
- type DivinerStageSchema = 'network.xyo.diviner.stage';
7
- declare const DivinerStageSchema: DivinerStageSchema;
8
-
9
- type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
10
- type IndexingDivinerStageConfig = {
11
- [key in IndexingDivinerStage]: ModuleIdentifier;
12
- };
13
-
14
- declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
15
- type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
16
- type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
17
- indexStore?: SearchableStorage;
18
- indexingDivinerStages?: IndexingDivinerStageConfig;
19
- payloadDivinerLimit?: number;
20
- pollFrequency?: number;
21
- schema: IndexingDivinerConfigSchema;
22
- stateStore?: SearchableStorage;
23
- }, TConfig>, TSchema>;
24
-
25
- type IndexingDivinerStageLabels = Labels & {
26
- [key in DivinerStageSchema]: IndexingDivinerStage;
27
- };
28
-
29
- type IndexingDivinerParams = DivinerParams<AnyConfigSchema<IndexingDivinerConfig>>;
30
-
31
- declare const IndexingDivinerSchema: "network.xyo.diviner.indexing";
32
- type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema;
33
-
34
- type IndexingDivinerState = StateDictionary & {
35
- offset: number;
36
- };
37
-
38
- export { DivinerStageSchema, type ImageThumbnailDivinerSchema, type IndexingDivinerConfig, IndexingDivinerConfigSchema, type IndexingDivinerParams, IndexingDivinerSchema, type IndexingDivinerStage, type IndexingDivinerStageConfig, type IndexingDivinerStageLabels, type IndexingDivinerState };
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';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-indexing-model",
3
- "version": "3.0.7",
3
+ "version": "3.0.9",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -29,14 +29,14 @@
29
29
  "module": "dist/neutral/index.mjs",
30
30
  "types": "dist/neutral/index.d.ts",
31
31
  "dependencies": {
32
- "@xylabs/object": "^4.0.2",
33
- "@xyo-network/diviner-model": "^3.0.7",
34
- "@xyo-network/module-model": "^3.0.7",
35
- "@xyo-network/payload-model": "^3.0.7"
32
+ "@xylabs/object": "^4.0.3",
33
+ "@xyo-network/diviner-model": "^3.0.9",
34
+ "@xyo-network/module-model": "^3.0.9",
35
+ "@xyo-network/payload-model": "^3.0.9"
36
36
  },
37
37
  "devDependencies": {
38
- "@xylabs/ts-scripts-yarn3": "^4.0.0",
39
- "@xylabs/tsconfig": "^4.0.0",
38
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
39
+ "@xylabs/tsconfig": "^4.0.7",
40
40
  "typescript": "^5.5.4"
41
41
  },
42
42
  "publishConfig": {
package/xy.config.ts CHANGED
@@ -2,9 +2,7 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},
5
- neutral: {
6
- src: true,
7
- },
5
+ neutral: { src: true },
8
6
  node: {},
9
7
  },
10
8
  }