@xyo-network/diviner-indexing-model 2.90.23 → 2.91.1

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.
@@ -1,5 +1,6 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
+ import { ModuleIdentifier } from '@xyo-network/module-model';
3
4
  /**
4
5
  * The diviners for each stage of an indexing diviner
5
6
  */
@@ -24,6 +25,6 @@ export type IndexingDivinerStage =
24
25
  * Config section for declaring each indexing diviner stage
25
26
  */
26
27
  export type IndexingDivinerStageConfig = {
27
- [key in IndexingDivinerStage]: string;
28
+ [key in IndexingDivinerStage]: ModuleIdentifier;
28
29
  };
29
30
  //# sourceMappingURL=Stage.d.ts.map
@@ -1 +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;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,MAAM;CACtC,CAAA"}
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,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,gBAAgB;CAChD,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
+ import { ModuleIdentifier } from '@xyo-network/module-model';
3
4
  /**
4
5
  * The diviners for each stage of an indexing diviner
5
6
  */
@@ -24,6 +25,6 @@ export type IndexingDivinerStage =
24
25
  * Config section for declaring each indexing diviner stage
25
26
  */
26
27
  export type IndexingDivinerStageConfig = {
27
- [key in IndexingDivinerStage]: string;
28
+ [key in IndexingDivinerStage]: ModuleIdentifier;
28
29
  };
29
30
  //# sourceMappingURL=Stage.d.ts.map
@@ -1 +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;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,MAAM;CACtC,CAAA"}
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,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,gBAAgB;CAChD,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
+ import { ModuleIdentifier } from '@xyo-network/module-model';
3
4
  /**
4
5
  * The diviners for each stage of an indexing diviner
5
6
  */
@@ -24,6 +25,6 @@ export type IndexingDivinerStage =
24
25
  * Config section for declaring each indexing diviner stage
25
26
  */
26
27
  export type IndexingDivinerStageConfig = {
27
- [key in IndexingDivinerStage]: string;
28
+ [key in IndexingDivinerStage]: ModuleIdentifier;
28
29
  };
29
30
  //# sourceMappingURL=Stage.d.ts.map
@@ -1 +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;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,MAAM;CACtC,CAAA"}
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,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,gBAAgB;CAChD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts","../../src/Stage.ts"],"sourcesContent":["export * from './Config'\nexport * from './Labels'\nexport * from './Params'\nexport * from './Schema'\nexport * from './Stage'\nexport * from './State'\n","export const IndexingDivinerSchema = 'network.xyo.diviner.indexing' as const\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n","import { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexingDivinerSchema } from './Schema'\nimport { IndexingDivinerStageConfig } from './Stage'\n\nexport const IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config` as const\nexport type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema\n\nexport type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | 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","export type DivinerStageSchema = 'network.xyo.diviner.stage'\nexport const DivinerStageSchema: DivinerStageSchema = 'network.xyo.diviner.stage'\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 = {\n [key in IndexingDivinerStage]: string\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;ACAO,IAAMA,wBAAwB;;;ACO9B,IAAMC,8BAA8B,GAAGC,qBAAAA;;;ACNvC,IAAMC,qBAAyC;","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts","../../src/Stage.ts"],"sourcesContent":["export * from './Config'\nexport * from './Labels'\nexport * from './Params'\nexport * from './Schema'\nexport * from './Stage'\nexport * from './State'\n","export const IndexingDivinerSchema = 'network.xyo.diviner.indexing' as const\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n","import { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexingDivinerSchema } from './Schema'\nimport { IndexingDivinerStageConfig } from './Stage'\n\nexport const IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config` as const\nexport type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema\n\nexport type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | 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","export type DivinerStageSchema = 'network.xyo.diviner.stage'\nexport const DivinerStageSchema: DivinerStageSchema = 'network.xyo.diviner.stage'\n\nimport { ModuleIdentifier } from '@xyo-network/module-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 = {\n [key in IndexingDivinerStage]: ModuleIdentifier\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;ACAO,IAAMA,wBAAwB;;;ACO9B,IAAMC,8BAA8B,GAAGC,qBAAAA;;;ACNvC,IAAMC,qBAAyC;","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Stage.ts"],"sourcesContent":["export const IndexingDivinerSchema = 'network.xyo.diviner.indexing' as const\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n","import { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexingDivinerSchema } from './Schema'\nimport { IndexingDivinerStageConfig } from './Stage'\n\nexport const IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config` as const\nexport type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema\n\nexport type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | 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","export type DivinerStageSchema = 'network.xyo.diviner.stage'\nexport const DivinerStageSchema: DivinerStageSchema = 'network.xyo.diviner.stage'\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 = {\n [key in IndexingDivinerStage]: string\n}\n"],"mappings":";AAAO,IAAMA,wBAAwB;;;ACO9B,IAAMC,8BAA8B,GAAGC,qBAAAA;;;ACNvC,IAAMC,qBAAyC;","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
1
+ {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Stage.ts"],"sourcesContent":["export const IndexingDivinerSchema = 'network.xyo.diviner.indexing' as const\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n","import { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexingDivinerSchema } from './Schema'\nimport { IndexingDivinerStageConfig } from './Stage'\n\nexport const IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config` as const\nexport type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema\n\nexport type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | 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","export type DivinerStageSchema = 'network.xyo.diviner.stage'\nexport const DivinerStageSchema: DivinerStageSchema = 'network.xyo.diviner.stage'\n\nimport { ModuleIdentifier } from '@xyo-network/module-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 = {\n [key in IndexingDivinerStage]: ModuleIdentifier\n}\n"],"mappings":";AAAO,IAAMA,wBAAwB;;;ACO9B,IAAMC,8BAA8B,GAAGC,qBAAAA;;;ACNvC,IAAMC,qBAAyC;","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
@@ -1,5 +1,6 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
+ import { ModuleIdentifier } from '@xyo-network/module-model';
3
4
  /**
4
5
  * The diviners for each stage of an indexing diviner
5
6
  */
@@ -24,6 +25,6 @@ export type IndexingDivinerStage =
24
25
  * Config section for declaring each indexing diviner stage
25
26
  */
26
27
  export type IndexingDivinerStageConfig = {
27
- [key in IndexingDivinerStage]: string;
28
+ [key in IndexingDivinerStage]: ModuleIdentifier;
28
29
  };
29
30
  //# sourceMappingURL=Stage.d.ts.map
@@ -1 +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;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,MAAM;CACtC,CAAA"}
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,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,gBAAgB;CAChD,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
+ import { ModuleIdentifier } from '@xyo-network/module-model';
3
4
  /**
4
5
  * The diviners for each stage of an indexing diviner
5
6
  */
@@ -24,6 +25,6 @@ export type IndexingDivinerStage =
24
25
  * Config section for declaring each indexing diviner stage
25
26
  */
26
27
  export type IndexingDivinerStageConfig = {
27
- [key in IndexingDivinerStage]: string;
28
+ [key in IndexingDivinerStage]: ModuleIdentifier;
28
29
  };
29
30
  //# sourceMappingURL=Stage.d.ts.map
@@ -1 +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;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,MAAM;CACtC,CAAA"}
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,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,gBAAgB;CAChD,CAAA"}
@@ -1,5 +1,6 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
+ import { ModuleIdentifier } from '@xyo-network/module-model';
3
4
  /**
4
5
  * The diviners for each stage of an indexing diviner
5
6
  */
@@ -24,6 +25,6 @@ export type IndexingDivinerStage =
24
25
  * Config section for declaring each indexing diviner stage
25
26
  */
26
27
  export type IndexingDivinerStageConfig = {
27
- [key in IndexingDivinerStage]: string;
28
+ [key in IndexingDivinerStage]: ModuleIdentifier;
28
29
  };
29
30
  //# sourceMappingURL=Stage.d.ts.map
@@ -1 +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;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,MAAM;CACtC,CAAA"}
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,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,oBAAoB;AAC9B;;GAEG;AACD,iCAAiC;AACnC;;GAEG;GACD,8BAA8B;AAChC;;GAEG;GACD,iDAAiD;AACnD;;GAEG;GACD,8BAA8B,CAAA;AAElC;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;KACtC,GAAG,IAAI,oBAAoB,GAAG,gBAAgB;CAChD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts","../../src/Stage.ts"],"sourcesContent":["export * from './Config'\nexport * from './Labels'\nexport * from './Params'\nexport * from './Schema'\nexport * from './Stage'\nexport * from './State'\n","export const IndexingDivinerSchema = 'network.xyo.diviner.indexing' as const\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n","import { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexingDivinerSchema } from './Schema'\nimport { IndexingDivinerStageConfig } from './Stage'\n\nexport const IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config` as const\nexport type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema\n\nexport type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | 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","export type DivinerStageSchema = 'network.xyo.diviner.stage'\nexport const DivinerStageSchema: DivinerStageSchema = 'network.xyo.diviner.stage'\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 = {\n [key in IndexingDivinerStage]: string\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;ACAO,IAAMA,wBAAwB;;;ACO9B,IAAMC,8BAA8B,GAAGC,qBAAAA;;;ACNvC,IAAMC,qBAAyC;","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
1
+ {"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts","../../src/Stage.ts"],"sourcesContent":["export * from './Config'\nexport * from './Labels'\nexport * from './Params'\nexport * from './Schema'\nexport * from './Stage'\nexport * from './State'\n","export const IndexingDivinerSchema = 'network.xyo.diviner.indexing' as const\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n","import { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexingDivinerSchema } from './Schema'\nimport { IndexingDivinerStageConfig } from './Stage'\n\nexport const IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config` as const\nexport type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema\n\nexport type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | 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","export type DivinerStageSchema = 'network.xyo.diviner.stage'\nexport const DivinerStageSchema: DivinerStageSchema = 'network.xyo.diviner.stage'\n\nimport { ModuleIdentifier } from '@xyo-network/module-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 = {\n [key in IndexingDivinerStage]: ModuleIdentifier\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;ACAO,IAAMA,wBAAwB;;;ACO9B,IAAMC,8BAA8B,GAAGC,qBAAAA;;;ACNvC,IAAMC,qBAAyC;","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Stage.ts"],"sourcesContent":["export const IndexingDivinerSchema = 'network.xyo.diviner.indexing' as const\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n","import { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexingDivinerSchema } from './Schema'\nimport { IndexingDivinerStageConfig } from './Stage'\n\nexport const IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config` as const\nexport type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema\n\nexport type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | 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","export type DivinerStageSchema = 'network.xyo.diviner.stage'\nexport const DivinerStageSchema: DivinerStageSchema = 'network.xyo.diviner.stage'\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 = {\n [key in IndexingDivinerStage]: string\n}\n"],"mappings":";AAAO,IAAMA,wBAAwB;;;ACO9B,IAAMC,8BAA8B,GAAGC,qBAAAA;;;ACNvC,IAAMC,qBAAyC;","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
1
+ {"version":3,"sources":["../../src/Schema.ts","../../src/Config.ts","../../src/Stage.ts"],"sourcesContent":["export const IndexingDivinerSchema = 'network.xyo.diviner.indexing' as const\nexport type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema\n","import { EmptyObject, WithAdditional } from '@xylabs/object'\nimport { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { Payload } from '@xyo-network/payload-model'\n\nimport { IndexingDivinerSchema } from './Schema'\nimport { IndexingDivinerStageConfig } from './Stage'\n\nexport const IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config` as const\nexport type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema\n\nexport type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | 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","export type DivinerStageSchema = 'network.xyo.diviner.stage'\nexport const DivinerStageSchema: DivinerStageSchema = 'network.xyo.diviner.stage'\n\nimport { ModuleIdentifier } from '@xyo-network/module-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 = {\n [key in IndexingDivinerStage]: ModuleIdentifier\n}\n"],"mappings":";AAAO,IAAMA,wBAAwB;;;ACO9B,IAAMC,8BAA8B,GAAGC,qBAAAA;;;ACNvC,IAAMC,qBAAyC;","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
package/package.json CHANGED
@@ -10,14 +10,14 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/object": "^2.89.3",
14
- "@xyo-network/diviner-model": "~2.90.23",
15
- "@xyo-network/module-model": "~2.90.23",
16
- "@xyo-network/payload-model": "~2.90.23"
13
+ "@xylabs/object": "^3.0.2",
14
+ "@xyo-network/diviner-model": "~2.91.1",
15
+ "@xyo-network/module-model": "~2.91.1",
16
+ "@xyo-network/payload-model": "~2.91.1"
17
17
  },
18
18
  "devDependencies": {
19
- "@xylabs/ts-scripts-yarn3": "^3.2.42",
20
- "@xylabs/tsconfig": "^3.2.42",
19
+ "@xylabs/ts-scripts-yarn3": "^3.4.1",
20
+ "@xylabs/tsconfig": "^3.4.1",
21
21
  "typescript": "^5.3.3"
22
22
  },
23
23
  "description": "Primary SDK for using XYO Protocol 2.0",
@@ -59,6 +59,6 @@
59
59
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
60
60
  },
61
61
  "sideEffects": false,
62
- "version": "2.90.23",
62
+ "version": "2.91.1",
63
63
  "type": "module"
64
64
  }
package/src/Stage.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage'
2
2
  export const DivinerStageSchema: DivinerStageSchema = 'network.xyo.diviner.stage'
3
3
 
4
+ import { ModuleIdentifier } from '@xyo-network/module-model'
5
+
4
6
  /**
5
7
  * The diviners for each stage of an indexing diviner
6
8
  */
@@ -26,5 +28,5 @@ export type IndexingDivinerStage =
26
28
  * Config section for declaring each indexing diviner stage
27
29
  */
28
30
  export type IndexingDivinerStageConfig = {
29
- [key in IndexingDivinerStage]: string
31
+ [key in IndexingDivinerStage]: ModuleIdentifier
30
32
  }