@xyo-network/diviner-indexing-model 2.111.2 → 3.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.
Files changed (138) hide show
  1. package/dist/neutral/index.d.ts +38 -7
  2. package/package.json +11 -30
  3. package/xy.config.ts +12 -0
  4. package/dist/browser/Config.d.cts +0 -15
  5. package/dist/browser/Config.d.cts.map +0 -1
  6. package/dist/browser/Config.d.mts +0 -15
  7. package/dist/browser/Config.d.mts.map +0 -1
  8. package/dist/browser/Config.d.ts +0 -15
  9. package/dist/browser/Config.d.ts.map +0 -1
  10. package/dist/browser/Labels.d.cts +0 -6
  11. package/dist/browser/Labels.d.cts.map +0 -1
  12. package/dist/browser/Labels.d.mts +0 -6
  13. package/dist/browser/Labels.d.mts.map +0 -1
  14. package/dist/browser/Labels.d.ts +0 -6
  15. package/dist/browser/Labels.d.ts.map +0 -1
  16. package/dist/browser/Params.d.cts +0 -5
  17. package/dist/browser/Params.d.cts.map +0 -1
  18. package/dist/browser/Params.d.mts +0 -5
  19. package/dist/browser/Params.d.mts.map +0 -1
  20. package/dist/browser/Params.d.ts +0 -5
  21. package/dist/browser/Params.d.ts.map +0 -1
  22. package/dist/browser/Schema.d.cts +0 -3
  23. package/dist/browser/Schema.d.cts.map +0 -1
  24. package/dist/browser/Schema.d.mts +0 -3
  25. package/dist/browser/Schema.d.mts.map +0 -1
  26. package/dist/browser/Schema.d.ts +0 -3
  27. package/dist/browser/Schema.d.ts.map +0 -1
  28. package/dist/browser/Stage.d.cts +0 -8
  29. package/dist/browser/Stage.d.cts.map +0 -1
  30. package/dist/browser/Stage.d.mts +0 -8
  31. package/dist/browser/Stage.d.mts.map +0 -1
  32. package/dist/browser/Stage.d.ts +0 -8
  33. package/dist/browser/Stage.d.ts.map +0 -1
  34. package/dist/browser/State.d.cts +0 -5
  35. package/dist/browser/State.d.cts.map +0 -1
  36. package/dist/browser/State.d.mts +0 -5
  37. package/dist/browser/State.d.mts.map +0 -1
  38. package/dist/browser/State.d.ts +0 -5
  39. package/dist/browser/State.d.ts.map +0 -1
  40. package/dist/browser/index.cjs +0 -37
  41. package/dist/browser/index.cjs.map +0 -1
  42. package/dist/browser/index.d.cts +0 -7
  43. package/dist/browser/index.d.cts.map +0 -1
  44. package/dist/browser/index.d.mts +0 -7
  45. package/dist/browser/index.d.mts.map +0 -1
  46. package/dist/browser/index.d.ts +0 -7
  47. package/dist/browser/index.d.ts.map +0 -1
  48. package/dist/browser/index.mjs +0 -14
  49. package/dist/browser/index.mjs.map +0 -1
  50. package/dist/neutral/Config.d.cts +0 -15
  51. package/dist/neutral/Config.d.cts.map +0 -1
  52. package/dist/neutral/Config.d.mts +0 -15
  53. package/dist/neutral/Config.d.mts.map +0 -1
  54. package/dist/neutral/Config.d.ts +0 -15
  55. package/dist/neutral/Config.d.ts.map +0 -1
  56. package/dist/neutral/Labels.d.cts +0 -6
  57. package/dist/neutral/Labels.d.cts.map +0 -1
  58. package/dist/neutral/Labels.d.mts +0 -6
  59. package/dist/neutral/Labels.d.mts.map +0 -1
  60. package/dist/neutral/Labels.d.ts +0 -6
  61. package/dist/neutral/Labels.d.ts.map +0 -1
  62. package/dist/neutral/Params.d.cts +0 -5
  63. package/dist/neutral/Params.d.cts.map +0 -1
  64. package/dist/neutral/Params.d.mts +0 -5
  65. package/dist/neutral/Params.d.mts.map +0 -1
  66. package/dist/neutral/Params.d.ts +0 -5
  67. package/dist/neutral/Params.d.ts.map +0 -1
  68. package/dist/neutral/Schema.d.cts +0 -3
  69. package/dist/neutral/Schema.d.cts.map +0 -1
  70. package/dist/neutral/Schema.d.mts +0 -3
  71. package/dist/neutral/Schema.d.mts.map +0 -1
  72. package/dist/neutral/Schema.d.ts +0 -3
  73. package/dist/neutral/Schema.d.ts.map +0 -1
  74. package/dist/neutral/Stage.d.cts +0 -8
  75. package/dist/neutral/Stage.d.cts.map +0 -1
  76. package/dist/neutral/Stage.d.mts +0 -8
  77. package/dist/neutral/Stage.d.mts.map +0 -1
  78. package/dist/neutral/Stage.d.ts +0 -8
  79. package/dist/neutral/Stage.d.ts.map +0 -1
  80. package/dist/neutral/State.d.cts +0 -5
  81. package/dist/neutral/State.d.cts.map +0 -1
  82. package/dist/neutral/State.d.mts +0 -5
  83. package/dist/neutral/State.d.mts.map +0 -1
  84. package/dist/neutral/State.d.ts +0 -5
  85. package/dist/neutral/State.d.ts.map +0 -1
  86. package/dist/neutral/index.cjs +0 -37
  87. package/dist/neutral/index.cjs.map +0 -1
  88. package/dist/neutral/index.d.cts +0 -7
  89. package/dist/neutral/index.d.cts.map +0 -1
  90. package/dist/neutral/index.d.mts +0 -7
  91. package/dist/neutral/index.d.mts.map +0 -1
  92. package/dist/neutral/index.d.ts.map +0 -1
  93. package/dist/node/Config.d.cts +0 -15
  94. package/dist/node/Config.d.cts.map +0 -1
  95. package/dist/node/Config.d.mts +0 -15
  96. package/dist/node/Config.d.mts.map +0 -1
  97. package/dist/node/Config.d.ts +0 -15
  98. package/dist/node/Config.d.ts.map +0 -1
  99. package/dist/node/Labels.d.cts +0 -6
  100. package/dist/node/Labels.d.cts.map +0 -1
  101. package/dist/node/Labels.d.mts +0 -6
  102. package/dist/node/Labels.d.mts.map +0 -1
  103. package/dist/node/Labels.d.ts +0 -6
  104. package/dist/node/Labels.d.ts.map +0 -1
  105. package/dist/node/Params.d.cts +0 -5
  106. package/dist/node/Params.d.cts.map +0 -1
  107. package/dist/node/Params.d.mts +0 -5
  108. package/dist/node/Params.d.mts.map +0 -1
  109. package/dist/node/Params.d.ts +0 -5
  110. package/dist/node/Params.d.ts.map +0 -1
  111. package/dist/node/Schema.d.cts +0 -3
  112. package/dist/node/Schema.d.cts.map +0 -1
  113. package/dist/node/Schema.d.mts +0 -3
  114. package/dist/node/Schema.d.mts.map +0 -1
  115. package/dist/node/Schema.d.ts +0 -3
  116. package/dist/node/Schema.d.ts.map +0 -1
  117. package/dist/node/Stage.d.cts +0 -8
  118. package/dist/node/Stage.d.cts.map +0 -1
  119. package/dist/node/Stage.d.mts +0 -8
  120. package/dist/node/Stage.d.mts.map +0 -1
  121. package/dist/node/Stage.d.ts +0 -8
  122. package/dist/node/Stage.d.ts.map +0 -1
  123. package/dist/node/State.d.cts +0 -5
  124. package/dist/node/State.d.cts.map +0 -1
  125. package/dist/node/State.d.mts +0 -5
  126. package/dist/node/State.d.mts.map +0 -1
  127. package/dist/node/State.d.ts +0 -5
  128. package/dist/node/State.d.ts.map +0 -1
  129. package/dist/node/index.cjs +0 -43
  130. package/dist/node/index.cjs.map +0 -1
  131. package/dist/node/index.d.cts +0 -7
  132. package/dist/node/index.d.cts.map +0 -1
  133. package/dist/node/index.d.mts +0 -7
  134. package/dist/node/index.d.mts.map +0 -1
  135. package/dist/node/index.d.ts +0 -7
  136. package/dist/node/index.d.ts.map +0 -1
  137. package/dist/node/index.mjs +0 -14
  138. package/dist/node/index.mjs.map +0 -1
@@ -1,3 +0,0 @@
1
- export declare const IndexingDivinerSchema: "network.xyo.diviner.indexing";
2
- export type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema;
3
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- export declare const IndexingDivinerSchema: "network.xyo.diviner.indexing";
2
- export type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema;
3
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- export declare const IndexingDivinerSchema: "network.xyo.diviner.indexing";
2
- export type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema;
3
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,8 +0,0 @@
1
- export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
- export declare const DivinerStageSchema: DivinerStageSchema;
3
- import { 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
@@ -1 +0,0 @@
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;AAK5D,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"}
@@ -1,8 +0,0 @@
1
- export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
- export declare const DivinerStageSchema: DivinerStageSchema;
3
- import { 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
@@ -1 +0,0 @@
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;AAK5D,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"}
@@ -1,8 +0,0 @@
1
- export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
- export declare const DivinerStageSchema: DivinerStageSchema;
3
- import { 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
@@ -1 +0,0 @@
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;AAK5D,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"}
@@ -1,5 +0,0 @@
1
- import { StateDictionary } from '@xyo-network/module-model';
2
- export type IndexingDivinerState = StateDictionary & {
3
- offset: number;
4
- };
5
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../src/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IACnD,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -1,5 +0,0 @@
1
- import { StateDictionary } from '@xyo-network/module-model';
2
- export type IndexingDivinerState = StateDictionary & {
3
- offset: number;
4
- };
5
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../src/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IACnD,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -1,5 +0,0 @@
1
- import { StateDictionary } from '@xyo-network/module-model';
2
- export type IndexingDivinerState = StateDictionary & {
3
- offset: number;
4
- };
5
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../src/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IACnD,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
23
- DivinerStageSchema: () => DivinerStageSchema,
24
- IndexingDivinerConfigSchema: () => IndexingDivinerConfigSchema,
25
- IndexingDivinerSchema: () => IndexingDivinerSchema
26
- });
27
- module.exports = __toCommonJS(src_exports);
28
-
29
- // src/Schema.ts
30
- var IndexingDivinerSchema = "network.xyo.diviner.indexing";
31
-
32
- // src/Config.ts
33
- var IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config`;
34
-
35
- // src/Stage.ts
36
- var DivinerStageSchema = "network.xyo.diviner.stage";
37
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts","../../src/Stage.ts"],"sourcesContent":["export * from './Config.ts'\nexport * from './Labels.ts'\nexport * from './Params.ts'\nexport * from './Schema.ts'\nexport * from './Stage.ts'\nexport * from './State.ts'\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.ts'\nimport { IndexingDivinerStageConfig } from './Stage.ts'\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,7 +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';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,7 +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';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}
@@ -1,15 +0,0 @@
1
- import { EmptyObject, WithAdditional } from '@xylabs/object';
2
- import { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model';
3
- import { Payload } from '@xyo-network/payload-model';
4
- import { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAEvD,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"}
@@ -1,15 +0,0 @@
1
- import { EmptyObject, WithAdditional } from '@xylabs/object';
2
- import { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model';
3
- import { Payload } from '@xyo-network/payload-model';
4
- import { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAEvD,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"}
@@ -1,15 +0,0 @@
1
- import { EmptyObject, WithAdditional } from '@xylabs/object';
2
- import { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model';
3
- import { Payload } from '@xyo-network/payload-model';
4
- import { 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
@@ -1 +0,0 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGpD,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAA;AAEvD,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"}
@@ -1,6 +0,0 @@
1
- import { Labels } from '@xyo-network/module-model';
2
- import { DivinerStageSchema, IndexingDivinerStage } from './Stage.ts';
3
- export type IndexingDivinerStageLabels = Labels & {
4
- [key in DivinerStageSchema]: IndexingDivinerStage;
5
- };
6
- //# sourceMappingURL=Labels.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Labels.d.ts","sourceRoot":"","sources":["../../src/Labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAKrE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,6 +0,0 @@
1
- import { Labels } from '@xyo-network/module-model';
2
- import { DivinerStageSchema, IndexingDivinerStage } from './Stage.ts';
3
- export type IndexingDivinerStageLabels = Labels & {
4
- [key in DivinerStageSchema]: IndexingDivinerStage;
5
- };
6
- //# sourceMappingURL=Labels.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Labels.d.ts","sourceRoot":"","sources":["../../src/Labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAKrE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,6 +0,0 @@
1
- import { Labels } from '@xyo-network/module-model';
2
- import { DivinerStageSchema, IndexingDivinerStage } from './Stage.ts';
3
- export type IndexingDivinerStageLabels = Labels & {
4
- [key in DivinerStageSchema]: IndexingDivinerStage;
5
- };
6
- //# sourceMappingURL=Labels.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Labels.d.ts","sourceRoot":"","sources":["../../src/Labels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAKrE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,5 +0,0 @@
1
- import { DivinerParams } from '@xyo-network/diviner-model';
2
- import { AnyConfigSchema } from '@xyo-network/module-model';
3
- import { IndexingDivinerConfig } from './Config.ts';
4
- export type IndexingDivinerParams = DivinerParams<AnyConfigSchema<IndexingDivinerConfig>>;
5
- //# sourceMappingURL=Params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEnD,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import { DivinerParams } from '@xyo-network/diviner-model';
2
- import { AnyConfigSchema } from '@xyo-network/module-model';
3
- import { IndexingDivinerConfig } from './Config.ts';
4
- export type IndexingDivinerParams = DivinerParams<AnyConfigSchema<IndexingDivinerConfig>>;
5
- //# sourceMappingURL=Params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEnD,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import { DivinerParams } from '@xyo-network/diviner-model';
2
- import { AnyConfigSchema } from '@xyo-network/module-model';
3
- import { IndexingDivinerConfig } from './Config.ts';
4
- export type IndexingDivinerParams = DivinerParams<AnyConfigSchema<IndexingDivinerConfig>>;
5
- //# sourceMappingURL=Params.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Params.d.ts","sourceRoot":"","sources":["../../src/Params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAEnD,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- export declare const IndexingDivinerSchema: "network.xyo.diviner.indexing";
2
- export type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema;
3
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- export declare const IndexingDivinerSchema: "network.xyo.diviner.indexing";
2
- export type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema;
3
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,3 +0,0 @@
1
- export declare const IndexingDivinerSchema: "network.xyo.diviner.indexing";
2
- export type ImageThumbnailDivinerSchema = typeof IndexingDivinerSchema;
3
- //# sourceMappingURL=Schema.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,8 +0,0 @@
1
- export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
- export declare const DivinerStageSchema: DivinerStageSchema;
3
- import { 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
@@ -1 +0,0 @@
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;AAK5D,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"}
@@ -1,8 +0,0 @@
1
- export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
- export declare const DivinerStageSchema: DivinerStageSchema;
3
- import { 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
@@ -1 +0,0 @@
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;AAK5D,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"}
@@ -1,8 +0,0 @@
1
- export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
- export declare const DivinerStageSchema: DivinerStageSchema;
3
- import { 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
@@ -1 +0,0 @@
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;AAK5D,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"}
@@ -1,5 +0,0 @@
1
- import { StateDictionary } from '@xyo-network/module-model';
2
- export type IndexingDivinerState = StateDictionary & {
3
- offset: number;
4
- };
5
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../src/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IACnD,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -1,5 +0,0 @@
1
- import { StateDictionary } from '@xyo-network/module-model';
2
- export type IndexingDivinerState = StateDictionary & {
3
- offset: number;
4
- };
5
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../src/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IACnD,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -1,5 +0,0 @@
1
- import { StateDictionary } from '@xyo-network/module-model';
2
- export type IndexingDivinerState = StateDictionary & {
3
- offset: number;
4
- };
5
- //# sourceMappingURL=State.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../src/State.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IACnD,MAAM,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -1,43 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
23
- DivinerStageSchema: () => DivinerStageSchema,
24
- IndexingDivinerConfigSchema: () => IndexingDivinerConfigSchema,
25
- IndexingDivinerSchema: () => IndexingDivinerSchema
26
- });
27
- module.exports = __toCommonJS(src_exports);
28
-
29
- // src/Schema.ts
30
- var IndexingDivinerSchema = "network.xyo.diviner.indexing";
31
-
32
- // src/Config.ts
33
- var IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config`;
34
-
35
- // src/Stage.ts
36
- var DivinerStageSchema = "network.xyo.diviner.stage";
37
- // Annotate the CommonJS export names for ESM import in node:
38
- 0 && (module.exports = {
39
- DivinerStageSchema,
40
- IndexingDivinerConfigSchema,
41
- IndexingDivinerSchema
42
- });
43
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/index.ts","../../src/Schema.ts","../../src/Config.ts","../../src/Stage.ts"],"sourcesContent":["export * from './Config.ts'\nexport * from './Labels.ts'\nexport * from './Params.ts'\nexport * from './Schema.ts'\nexport * from './Stage.ts'\nexport * from './State.ts'\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.ts'\nimport { IndexingDivinerStageConfig } from './Stage.ts'\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,7 +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';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,7 +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';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,7 +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';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,14 +0,0 @@
1
- // src/Schema.ts
2
- var IndexingDivinerSchema = "network.xyo.diviner.indexing";
3
-
4
- // src/Config.ts
5
- var IndexingDivinerConfigSchema = `${IndexingDivinerSchema}.config`;
6
-
7
- // src/Stage.ts
8
- var DivinerStageSchema = "network.xyo.diviner.stage";
9
- export {
10
- DivinerStageSchema,
11
- IndexingDivinerConfigSchema,
12
- IndexingDivinerSchema
13
- };
14
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
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.ts'\nimport { IndexingDivinerStageConfig } from './Stage.ts'\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"]}