@xyo-network/diviner-indexing-model 2.106.0 → 2.107.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.
Files changed (67) hide show
  1. package/dist/browser/Config.d.cts +0 -18
  2. package/dist/browser/Config.d.cts.map +1 -1
  3. package/dist/browser/Config.d.mts +0 -18
  4. package/dist/browser/Config.d.mts.map +1 -1
  5. package/dist/browser/Config.d.ts +0 -18
  6. package/dist/browser/Config.d.ts.map +1 -1
  7. package/dist/browser/Labels.d.cts +0 -3
  8. package/dist/browser/Labels.d.cts.map +1 -1
  9. package/dist/browser/Labels.d.mts +0 -3
  10. package/dist/browser/Labels.d.mts.map +1 -1
  11. package/dist/browser/Labels.d.ts +0 -3
  12. package/dist/browser/Labels.d.ts.map +1 -1
  13. package/dist/browser/Stage.d.cts +1 -23
  14. package/dist/browser/Stage.d.cts.map +1 -1
  15. package/dist/browser/Stage.d.mts +1 -23
  16. package/dist/browser/Stage.d.mts.map +1 -1
  17. package/dist/browser/Stage.d.ts +1 -23
  18. package/dist/browser/Stage.d.ts.map +1 -1
  19. package/dist/browser/index.cjs +1 -36
  20. package/dist/browser/index.cjs.map +1 -1
  21. package/dist/browser/index.js +1 -13
  22. package/dist/browser/index.js.map +1 -1
  23. package/dist/neutral/Config.d.cts +0 -18
  24. package/dist/neutral/Config.d.cts.map +1 -1
  25. package/dist/neutral/Config.d.mts +0 -18
  26. package/dist/neutral/Config.d.mts.map +1 -1
  27. package/dist/neutral/Config.d.ts +0 -18
  28. package/dist/neutral/Config.d.ts.map +1 -1
  29. package/dist/neutral/Labels.d.cts +0 -3
  30. package/dist/neutral/Labels.d.cts.map +1 -1
  31. package/dist/neutral/Labels.d.mts +0 -3
  32. package/dist/neutral/Labels.d.mts.map +1 -1
  33. package/dist/neutral/Labels.d.ts +0 -3
  34. package/dist/neutral/Labels.d.ts.map +1 -1
  35. package/dist/neutral/Stage.d.cts +1 -23
  36. package/dist/neutral/Stage.d.cts.map +1 -1
  37. package/dist/neutral/Stage.d.mts +1 -23
  38. package/dist/neutral/Stage.d.mts.map +1 -1
  39. package/dist/neutral/Stage.d.ts +1 -23
  40. package/dist/neutral/Stage.d.ts.map +1 -1
  41. package/dist/neutral/index.cjs +1 -36
  42. package/dist/neutral/index.cjs.map +1 -1
  43. package/dist/neutral/index.js +1 -13
  44. package/dist/neutral/index.js.map +1 -1
  45. package/dist/node/Config.d.cts +0 -18
  46. package/dist/node/Config.d.cts.map +1 -1
  47. package/dist/node/Config.d.mts +0 -18
  48. package/dist/node/Config.d.mts.map +1 -1
  49. package/dist/node/Config.d.ts +0 -18
  50. package/dist/node/Config.d.ts.map +1 -1
  51. package/dist/node/Labels.d.cts +0 -3
  52. package/dist/node/Labels.d.cts.map +1 -1
  53. package/dist/node/Labels.d.mts +0 -3
  54. package/dist/node/Labels.d.mts.map +1 -1
  55. package/dist/node/Labels.d.ts +0 -3
  56. package/dist/node/Labels.d.ts.map +1 -1
  57. package/dist/node/Stage.d.cts +1 -23
  58. package/dist/node/Stage.d.cts.map +1 -1
  59. package/dist/node/Stage.d.mts +1 -23
  60. package/dist/node/Stage.d.mts.map +1 -1
  61. package/dist/node/Stage.d.ts +1 -23
  62. package/dist/node/Stage.d.ts.map +1 -1
  63. package/dist/node/index.cjs +1 -42
  64. package/dist/node/index.cjs.map +1 -1
  65. package/dist/node/index.js +1 -13
  66. package/dist/node/index.js.map +1 -1
  67. package/package.json +7 -7
@@ -5,29 +5,11 @@ import { IndexingDivinerStageConfig } from './Stage';
5
5
  export declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
6
6
  export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
7
7
  export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
8
- /**
9
- * Where the diviner should store it's index
10
- */
11
8
  indexStore?: SearchableStorage;
12
- /**
13
- * Config section for name/address of individual diviner stages
14
- */
15
9
  indexingDivinerStages?: IndexingDivinerStageConfig;
16
- /**
17
- * The maximum number of payloads to index at a time
18
- */
19
10
  payloadDivinerLimit?: number;
20
- /**
21
- * How often to poll for new payloads to index
22
- */
23
11
  pollFrequency?: number;
24
- /**
25
- * The schema for the Diviner config
26
- */
27
12
  schema: IndexingDivinerConfigSchema;
28
- /**
29
- * Where the diviner should persist its internal state
30
- */
31
13
  stateStore?: SearchableStorage;
32
14
  }, TConfig>, TSchema>;
33
15
  //# sourceMappingURL=Config.d.ts.map
@@ -1 +1 @@
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,SAAS,CAAA;AAEpD,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;IACE;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
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,SAAS,CAAA;AAEpD,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"}
@@ -5,29 +5,11 @@ import { IndexingDivinerStageConfig } from './Stage';
5
5
  export declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
6
6
  export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
7
7
  export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
8
- /**
9
- * Where the diviner should store it's index
10
- */
11
8
  indexStore?: SearchableStorage;
12
- /**
13
- * Config section for name/address of individual diviner stages
14
- */
15
9
  indexingDivinerStages?: IndexingDivinerStageConfig;
16
- /**
17
- * The maximum number of payloads to index at a time
18
- */
19
10
  payloadDivinerLimit?: number;
20
- /**
21
- * How often to poll for new payloads to index
22
- */
23
11
  pollFrequency?: number;
24
- /**
25
- * The schema for the Diviner config
26
- */
27
12
  schema: IndexingDivinerConfigSchema;
28
- /**
29
- * Where the diviner should persist its internal state
30
- */
31
13
  stateStore?: SearchableStorage;
32
14
  }, TConfig>, TSchema>;
33
15
  //# sourceMappingURL=Config.d.ts.map
@@ -1 +1 @@
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,SAAS,CAAA;AAEpD,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;IACE;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
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,SAAS,CAAA;AAEpD,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"}
@@ -5,29 +5,11 @@ import { IndexingDivinerStageConfig } from './Stage';
5
5
  export declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
6
6
  export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
7
7
  export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
8
- /**
9
- * Where the diviner should store it's index
10
- */
11
8
  indexStore?: SearchableStorage;
12
- /**
13
- * Config section for name/address of individual diviner stages
14
- */
15
9
  indexingDivinerStages?: IndexingDivinerStageConfig;
16
- /**
17
- * The maximum number of payloads to index at a time
18
- */
19
10
  payloadDivinerLimit?: number;
20
- /**
21
- * How often to poll for new payloads to index
22
- */
23
11
  pollFrequency?: number;
24
- /**
25
- * The schema for the Diviner config
26
- */
27
12
  schema: IndexingDivinerConfigSchema;
28
- /**
29
- * Where the diviner should persist its internal state
30
- */
31
13
  stateStore?: SearchableStorage;
32
14
  }, TConfig>, TSchema>;
33
15
  //# sourceMappingURL=Config.d.ts.map
@@ -1 +1 @@
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,SAAS,CAAA;AAEpD,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;IACE;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
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,SAAS,CAAA;AAEpD,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,8 +1,5 @@
1
1
  import { Labels } from '@xyo-network/module-model';
2
2
  import { DivinerStageSchema, IndexingDivinerStage } from './Stage';
3
- /**
4
- * Labels for Indexing Diviner Stage Diviners
5
- */
6
3
  export type IndexingDivinerStageLabels = Labels & {
7
4
  [key in DivinerStageSchema]: IndexingDivinerStage;
8
5
  };
@@ -1 +1 @@
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,SAAS,CAAA;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
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,SAAS,CAAA;AAKlE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,8 +1,5 @@
1
1
  import { Labels } from '@xyo-network/module-model';
2
2
  import { DivinerStageSchema, IndexingDivinerStage } from './Stage';
3
- /**
4
- * Labels for Indexing Diviner Stage Diviners
5
- */
6
3
  export type IndexingDivinerStageLabels = Labels & {
7
4
  [key in DivinerStageSchema]: IndexingDivinerStage;
8
5
  };
@@ -1 +1 @@
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,SAAS,CAAA;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
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,SAAS,CAAA;AAKlE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,8 +1,5 @@
1
1
  import { Labels } from '@xyo-network/module-model';
2
2
  import { DivinerStageSchema, IndexingDivinerStage } from './Stage';
3
- /**
4
- * Labels for Indexing Diviner Stage Diviners
5
- */
6
3
  export type IndexingDivinerStageLabels = Labels & {
7
4
  [key in DivinerStageSchema]: IndexingDivinerStage;
8
5
  };
@@ -1 +1 @@
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,SAAS,CAAA;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
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,SAAS,CAAA;AAKlE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,29 +1,7 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
3
  import { ModuleIdentifier } from '@xyo-network/module-model';
4
- /**
5
- * The diviners for each stage of an indexing diviner
6
- */
7
- export type IndexingDivinerStage =
8
- /**
9
- * Transforms a diviner query into an index query
10
- */
11
- 'divinerQueryToIndexQueryDiviner'
12
- /**
13
- * Transforms the index candidates into indexes
14
- */
15
- | 'indexCandidateToIndexDiviner'
16
- /**
17
- * Transforms an index query response into a diviner divine query response
18
- */
19
- | 'indexQueryResponseToDivinerQueryResponseDiviner'
20
- /**
21
- * Uses the current state to determine the next batch of index candidates
22
- */
23
- | 'stateToIndexCandidateDiviner';
24
- /**
25
- * Config section for declaring each indexing diviner stage
26
- */
4
+ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
27
5
  export type IndexingDivinerStageConfig = {
28
6
  [key in IndexingDivinerStage]: ModuleIdentifier;
29
7
  };
@@ -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,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
+ {"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,29 +1,7 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
3
  import { ModuleIdentifier } from '@xyo-network/module-model';
4
- /**
5
- * The diviners for each stage of an indexing diviner
6
- */
7
- export type IndexingDivinerStage =
8
- /**
9
- * Transforms a diviner query into an index query
10
- */
11
- 'divinerQueryToIndexQueryDiviner'
12
- /**
13
- * Transforms the index candidates into indexes
14
- */
15
- | 'indexCandidateToIndexDiviner'
16
- /**
17
- * Transforms an index query response into a diviner divine query response
18
- */
19
- | 'indexQueryResponseToDivinerQueryResponseDiviner'
20
- /**
21
- * Uses the current state to determine the next batch of index candidates
22
- */
23
- | 'stateToIndexCandidateDiviner';
24
- /**
25
- * Config section for declaring each indexing diviner stage
26
- */
4
+ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
27
5
  export type IndexingDivinerStageConfig = {
28
6
  [key in IndexingDivinerStage]: ModuleIdentifier;
29
7
  };
@@ -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,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
+ {"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,29 +1,7 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
3
  import { ModuleIdentifier } from '@xyo-network/module-model';
4
- /**
5
- * The diviners for each stage of an indexing diviner
6
- */
7
- export type IndexingDivinerStage =
8
- /**
9
- * Transforms a diviner query into an index query
10
- */
11
- 'divinerQueryToIndexQueryDiviner'
12
- /**
13
- * Transforms the index candidates into indexes
14
- */
15
- | 'indexCandidateToIndexDiviner'
16
- /**
17
- * Transforms an index query response into a diviner divine query response
18
- */
19
- | 'indexQueryResponseToDivinerQueryResponseDiviner'
20
- /**
21
- * Uses the current state to determine the next batch of index candidates
22
- */
23
- | 'stateToIndexCandidateDiviner';
24
- /**
25
- * Config section for declaring each indexing diviner stage
26
- */
4
+ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
27
5
  export type IndexingDivinerStageConfig = {
28
6
  [key in IndexingDivinerStage]: ModuleIdentifier;
29
7
  };
@@ -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,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
+ {"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,37 +1,2 @@
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";
1
+ "use strict";var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var c=(o,e)=>{for(var n in e)i(o,n,{get:e[n],enumerable:!0})},g=(o,e,n,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!f.call(o,r)&&r!==n&&i(o,r,{get:()=>e[r],enumerable:!(x=m(e,r))||x.enumerable});return o};var a=o=>g(i({},"__esModule",{value:!0}),o);var S={};c(S,{DivinerStageSchema:()=>v,IndexingDivinerConfigSchema:()=>d,IndexingDivinerSchema:()=>t});module.exports=a(S);var t="network.xyo.diviner.indexing";var d=`${t}.config`;var v="network.xyo.diviner.stage";
37
2
  //# sourceMappingURL=index.cjs.map
@@ -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\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
+ {"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":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,gCAAAC,EAAA,0BAAAC,IAAA,eAAAC,EAAAL,GCAO,IAAMM,EAAwB,+BCO9B,IAAMC,EAA8B,GAAGC,CAAAA,UCNvC,IAAMC,EAAyC","names":["src_exports","__export","DivinerStageSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","__toCommonJS","IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
@@ -1,14 +1,2 @@
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
- };
1
+ var e="network.xyo.diviner.indexing";var n=`${e}.config`;var t="network.xyo.diviner.stage";export{t as DivinerStageSchema,n as IndexingDivinerConfigSchema,e as IndexingDivinerSchema};
14
2
  //# sourceMappingURL=index.js.map
@@ -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\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
+ {"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,EAAwB,+BCO9B,IAAMC,EAA8B,GAAGC,CAAAA,UCNvC,IAAMC,EAAyC","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
@@ -5,29 +5,11 @@ import { IndexingDivinerStageConfig } from './Stage';
5
5
  export declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
6
6
  export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
7
7
  export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
8
- /**
9
- * Where the diviner should store it's index
10
- */
11
8
  indexStore?: SearchableStorage;
12
- /**
13
- * Config section for name/address of individual diviner stages
14
- */
15
9
  indexingDivinerStages?: IndexingDivinerStageConfig;
16
- /**
17
- * The maximum number of payloads to index at a time
18
- */
19
10
  payloadDivinerLimit?: number;
20
- /**
21
- * How often to poll for new payloads to index
22
- */
23
11
  pollFrequency?: number;
24
- /**
25
- * The schema for the Diviner config
26
- */
27
12
  schema: IndexingDivinerConfigSchema;
28
- /**
29
- * Where the diviner should persist its internal state
30
- */
31
13
  stateStore?: SearchableStorage;
32
14
  }, TConfig>, TSchema>;
33
15
  //# sourceMappingURL=Config.d.ts.map
@@ -1 +1 @@
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,SAAS,CAAA;AAEpD,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;IACE;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
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,SAAS,CAAA;AAEpD,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"}
@@ -5,29 +5,11 @@ import { IndexingDivinerStageConfig } from './Stage';
5
5
  export declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
6
6
  export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
7
7
  export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
8
- /**
9
- * Where the diviner should store it's index
10
- */
11
8
  indexStore?: SearchableStorage;
12
- /**
13
- * Config section for name/address of individual diviner stages
14
- */
15
9
  indexingDivinerStages?: IndexingDivinerStageConfig;
16
- /**
17
- * The maximum number of payloads to index at a time
18
- */
19
10
  payloadDivinerLimit?: number;
20
- /**
21
- * How often to poll for new payloads to index
22
- */
23
11
  pollFrequency?: number;
24
- /**
25
- * The schema for the Diviner config
26
- */
27
12
  schema: IndexingDivinerConfigSchema;
28
- /**
29
- * Where the diviner should persist its internal state
30
- */
31
13
  stateStore?: SearchableStorage;
32
14
  }, TConfig>, TSchema>;
33
15
  //# sourceMappingURL=Config.d.ts.map
@@ -1 +1 @@
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,SAAS,CAAA;AAEpD,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;IACE;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
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,SAAS,CAAA;AAEpD,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"}
@@ -5,29 +5,11 @@ import { IndexingDivinerStageConfig } from './Stage';
5
5
  export declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
6
6
  export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
7
7
  export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
8
- /**
9
- * Where the diviner should store it's index
10
- */
11
8
  indexStore?: SearchableStorage;
12
- /**
13
- * Config section for name/address of individual diviner stages
14
- */
15
9
  indexingDivinerStages?: IndexingDivinerStageConfig;
16
- /**
17
- * The maximum number of payloads to index at a time
18
- */
19
10
  payloadDivinerLimit?: number;
20
- /**
21
- * How often to poll for new payloads to index
22
- */
23
11
  pollFrequency?: number;
24
- /**
25
- * The schema for the Diviner config
26
- */
27
12
  schema: IndexingDivinerConfigSchema;
28
- /**
29
- * Where the diviner should persist its internal state
30
- */
31
13
  stateStore?: SearchableStorage;
32
14
  }, TConfig>, TSchema>;
33
15
  //# sourceMappingURL=Config.d.ts.map
@@ -1 +1 @@
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,SAAS,CAAA;AAEpD,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;IACE;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
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,SAAS,CAAA;AAEpD,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,8 +1,5 @@
1
1
  import { Labels } from '@xyo-network/module-model';
2
2
  import { DivinerStageSchema, IndexingDivinerStage } from './Stage';
3
- /**
4
- * Labels for Indexing Diviner Stage Diviners
5
- */
6
3
  export type IndexingDivinerStageLabels = Labels & {
7
4
  [key in DivinerStageSchema]: IndexingDivinerStage;
8
5
  };
@@ -1 +1 @@
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,SAAS,CAAA;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
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,SAAS,CAAA;AAKlE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,8 +1,5 @@
1
1
  import { Labels } from '@xyo-network/module-model';
2
2
  import { DivinerStageSchema, IndexingDivinerStage } from './Stage';
3
- /**
4
- * Labels for Indexing Diviner Stage Diviners
5
- */
6
3
  export type IndexingDivinerStageLabels = Labels & {
7
4
  [key in DivinerStageSchema]: IndexingDivinerStage;
8
5
  };
@@ -1 +1 @@
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,SAAS,CAAA;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
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,SAAS,CAAA;AAKlE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,8 +1,5 @@
1
1
  import { Labels } from '@xyo-network/module-model';
2
2
  import { DivinerStageSchema, IndexingDivinerStage } from './Stage';
3
- /**
4
- * Labels for Indexing Diviner Stage Diviners
5
- */
6
3
  export type IndexingDivinerStageLabels = Labels & {
7
4
  [key in DivinerStageSchema]: IndexingDivinerStage;
8
5
  };
@@ -1 +1 @@
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,SAAS,CAAA;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
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,SAAS,CAAA;AAKlE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,29 +1,7 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
3
  import { ModuleIdentifier } from '@xyo-network/module-model';
4
- /**
5
- * The diviners for each stage of an indexing diviner
6
- */
7
- export type IndexingDivinerStage =
8
- /**
9
- * Transforms a diviner query into an index query
10
- */
11
- 'divinerQueryToIndexQueryDiviner'
12
- /**
13
- * Transforms the index candidates into indexes
14
- */
15
- | 'indexCandidateToIndexDiviner'
16
- /**
17
- * Transforms an index query response into a diviner divine query response
18
- */
19
- | 'indexQueryResponseToDivinerQueryResponseDiviner'
20
- /**
21
- * Uses the current state to determine the next batch of index candidates
22
- */
23
- | 'stateToIndexCandidateDiviner';
24
- /**
25
- * Config section for declaring each indexing diviner stage
26
- */
4
+ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
27
5
  export type IndexingDivinerStageConfig = {
28
6
  [key in IndexingDivinerStage]: ModuleIdentifier;
29
7
  };
@@ -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,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
+ {"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,29 +1,7 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
3
  import { ModuleIdentifier } from '@xyo-network/module-model';
4
- /**
5
- * The diviners for each stage of an indexing diviner
6
- */
7
- export type IndexingDivinerStage =
8
- /**
9
- * Transforms a diviner query into an index query
10
- */
11
- 'divinerQueryToIndexQueryDiviner'
12
- /**
13
- * Transforms the index candidates into indexes
14
- */
15
- | 'indexCandidateToIndexDiviner'
16
- /**
17
- * Transforms an index query response into a diviner divine query response
18
- */
19
- | 'indexQueryResponseToDivinerQueryResponseDiviner'
20
- /**
21
- * Uses the current state to determine the next batch of index candidates
22
- */
23
- | 'stateToIndexCandidateDiviner';
24
- /**
25
- * Config section for declaring each indexing diviner stage
26
- */
4
+ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
27
5
  export type IndexingDivinerStageConfig = {
28
6
  [key in IndexingDivinerStage]: ModuleIdentifier;
29
7
  };
@@ -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,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
+ {"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,29 +1,7 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
3
  import { ModuleIdentifier } from '@xyo-network/module-model';
4
- /**
5
- * The diviners for each stage of an indexing diviner
6
- */
7
- export type IndexingDivinerStage =
8
- /**
9
- * Transforms a diviner query into an index query
10
- */
11
- 'divinerQueryToIndexQueryDiviner'
12
- /**
13
- * Transforms the index candidates into indexes
14
- */
15
- | 'indexCandidateToIndexDiviner'
16
- /**
17
- * Transforms an index query response into a diviner divine query response
18
- */
19
- | 'indexQueryResponseToDivinerQueryResponseDiviner'
20
- /**
21
- * Uses the current state to determine the next batch of index candidates
22
- */
23
- | 'stateToIndexCandidateDiviner';
24
- /**
25
- * Config section for declaring each indexing diviner stage
26
- */
4
+ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
27
5
  export type IndexingDivinerStageConfig = {
28
6
  [key in IndexingDivinerStage]: ModuleIdentifier;
29
7
  };
@@ -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,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
+ {"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,37 +1,2 @@
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";
1
+ "use strict";var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var c=(o,e)=>{for(var n in e)i(o,n,{get:e[n],enumerable:!0})},g=(o,e,n,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!f.call(o,r)&&r!==n&&i(o,r,{get:()=>e[r],enumerable:!(x=m(e,r))||x.enumerable});return o};var a=o=>g(i({},"__esModule",{value:!0}),o);var S={};c(S,{DivinerStageSchema:()=>v,IndexingDivinerConfigSchema:()=>d,IndexingDivinerSchema:()=>t});module.exports=a(S);var t="network.xyo.diviner.indexing";var d=`${t}.config`;var v="network.xyo.diviner.stage";
37
2
  //# sourceMappingURL=index.cjs.map
@@ -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\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
+ {"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":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,gCAAAC,EAAA,0BAAAC,IAAA,eAAAC,EAAAL,GCAO,IAAMM,EAAwB,+BCO9B,IAAMC,EAA8B,GAAGC,CAAAA,UCNvC,IAAMC,EAAyC","names":["src_exports","__export","DivinerStageSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","__toCommonJS","IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
@@ -1,14 +1,2 @@
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
- };
1
+ var e="network.xyo.diviner.indexing";var n=`${e}.config`;var t="network.xyo.diviner.stage";export{t as DivinerStageSchema,n as IndexingDivinerConfigSchema,e as IndexingDivinerSchema};
14
2
  //# sourceMappingURL=index.js.map
@@ -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\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
+ {"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,EAAwB,+BCO9B,IAAMC,EAA8B,GAAGC,CAAAA,UCNvC,IAAMC,EAAyC","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
@@ -5,29 +5,11 @@ import { IndexingDivinerStageConfig } from './Stage';
5
5
  export declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
6
6
  export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
7
7
  export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
8
- /**
9
- * Where the diviner should store it's index
10
- */
11
8
  indexStore?: SearchableStorage;
12
- /**
13
- * Config section for name/address of individual diviner stages
14
- */
15
9
  indexingDivinerStages?: IndexingDivinerStageConfig;
16
- /**
17
- * The maximum number of payloads to index at a time
18
- */
19
10
  payloadDivinerLimit?: number;
20
- /**
21
- * How often to poll for new payloads to index
22
- */
23
11
  pollFrequency?: number;
24
- /**
25
- * The schema for the Diviner config
26
- */
27
12
  schema: IndexingDivinerConfigSchema;
28
- /**
29
- * Where the diviner should persist its internal state
30
- */
31
13
  stateStore?: SearchableStorage;
32
14
  }, TConfig>, TSchema>;
33
15
  //# sourceMappingURL=Config.d.ts.map
@@ -1 +1 @@
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,SAAS,CAAA;AAEpD,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;IACE;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
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,SAAS,CAAA;AAEpD,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"}
@@ -5,29 +5,11 @@ import { IndexingDivinerStageConfig } from './Stage';
5
5
  export declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
6
6
  export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
7
7
  export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
8
- /**
9
- * Where the diviner should store it's index
10
- */
11
8
  indexStore?: SearchableStorage;
12
- /**
13
- * Config section for name/address of individual diviner stages
14
- */
15
9
  indexingDivinerStages?: IndexingDivinerStageConfig;
16
- /**
17
- * The maximum number of payloads to index at a time
18
- */
19
10
  payloadDivinerLimit?: number;
20
- /**
21
- * How often to poll for new payloads to index
22
- */
23
11
  pollFrequency?: number;
24
- /**
25
- * The schema for the Diviner config
26
- */
27
12
  schema: IndexingDivinerConfigSchema;
28
- /**
29
- * Where the diviner should persist its internal state
30
- */
31
13
  stateStore?: SearchableStorage;
32
14
  }, TConfig>, TSchema>;
33
15
  //# sourceMappingURL=Config.d.ts.map
@@ -1 +1 @@
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,SAAS,CAAA;AAEpD,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;IACE;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
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,SAAS,CAAA;AAEpD,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"}
@@ -5,29 +5,11 @@ import { IndexingDivinerStageConfig } from './Stage';
5
5
  export declare const IndexingDivinerConfigSchema: "network.xyo.diviner.indexing.config";
6
6
  export type IndexingDivinerConfigSchema = typeof IndexingDivinerConfigSchema;
7
7
  export type IndexingDivinerConfig<TConfig extends Payload | EmptyObject | void = void, TSchema extends string | void = void> = DivinerConfig<WithAdditional<{
8
- /**
9
- * Where the diviner should store it's index
10
- */
11
8
  indexStore?: SearchableStorage;
12
- /**
13
- * Config section for name/address of individual diviner stages
14
- */
15
9
  indexingDivinerStages?: IndexingDivinerStageConfig;
16
- /**
17
- * The maximum number of payloads to index at a time
18
- */
19
10
  payloadDivinerLimit?: number;
20
- /**
21
- * How often to poll for new payloads to index
22
- */
23
11
  pollFrequency?: number;
24
- /**
25
- * The schema for the Diviner config
26
- */
27
12
  schema: IndexingDivinerConfigSchema;
28
- /**
29
- * Where the diviner should persist its internal state
30
- */
31
13
  stateStore?: SearchableStorage;
32
14
  }, TConfig>, TSchema>;
33
15
  //# sourceMappingURL=Config.d.ts.map
@@ -1 +1 @@
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,SAAS,CAAA;AAEpD,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;IACE;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B;;OAEG;IACH,qBAAqB,CAAC,EAAE,0BAA0B,CAAA;IAClD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAA;IACnC;;OAEG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAA;CAC/B,EACD,OAAO,CACR,EACD,OAAO,CACR,CAAA"}
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,SAAS,CAAA;AAEpD,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,8 +1,5 @@
1
1
  import { Labels } from '@xyo-network/module-model';
2
2
  import { DivinerStageSchema, IndexingDivinerStage } from './Stage';
3
- /**
4
- * Labels for Indexing Diviner Stage Diviners
5
- */
6
3
  export type IndexingDivinerStageLabels = Labels & {
7
4
  [key in DivinerStageSchema]: IndexingDivinerStage;
8
5
  };
@@ -1 +1 @@
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,SAAS,CAAA;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
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,SAAS,CAAA;AAKlE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,8 +1,5 @@
1
1
  import { Labels } from '@xyo-network/module-model';
2
2
  import { DivinerStageSchema, IndexingDivinerStage } from './Stage';
3
- /**
4
- * Labels for Indexing Diviner Stage Diviners
5
- */
6
3
  export type IndexingDivinerStageLabels = Labels & {
7
4
  [key in DivinerStageSchema]: IndexingDivinerStage;
8
5
  };
@@ -1 +1 @@
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,SAAS,CAAA;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
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,SAAS,CAAA;AAKlE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,8 +1,5 @@
1
1
  import { Labels } from '@xyo-network/module-model';
2
2
  import { DivinerStageSchema, IndexingDivinerStage } from './Stage';
3
- /**
4
- * Labels for Indexing Diviner Stage Diviners
5
- */
6
3
  export type IndexingDivinerStageLabels = Labels & {
7
4
  [key in DivinerStageSchema]: IndexingDivinerStage;
8
5
  };
@@ -1 +1 @@
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,SAAS,CAAA;AAElE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
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,SAAS,CAAA;AAKlE,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG;KAI/C,GAAG,IAAI,kBAAkB,GAAG,oBAAoB;CAClD,CAAA"}
@@ -1,29 +1,7 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
3
  import { ModuleIdentifier } from '@xyo-network/module-model';
4
- /**
5
- * The diviners for each stage of an indexing diviner
6
- */
7
- export type IndexingDivinerStage =
8
- /**
9
- * Transforms a diviner query into an index query
10
- */
11
- 'divinerQueryToIndexQueryDiviner'
12
- /**
13
- * Transforms the index candidates into indexes
14
- */
15
- | 'indexCandidateToIndexDiviner'
16
- /**
17
- * Transforms an index query response into a diviner divine query response
18
- */
19
- | 'indexQueryResponseToDivinerQueryResponseDiviner'
20
- /**
21
- * Uses the current state to determine the next batch of index candidates
22
- */
23
- | 'stateToIndexCandidateDiviner';
24
- /**
25
- * Config section for declaring each indexing diviner stage
26
- */
4
+ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
27
5
  export type IndexingDivinerStageConfig = {
28
6
  [key in IndexingDivinerStage]: ModuleIdentifier;
29
7
  };
@@ -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,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
+ {"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,29 +1,7 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
3
  import { ModuleIdentifier } from '@xyo-network/module-model';
4
- /**
5
- * The diviners for each stage of an indexing diviner
6
- */
7
- export type IndexingDivinerStage =
8
- /**
9
- * Transforms a diviner query into an index query
10
- */
11
- 'divinerQueryToIndexQueryDiviner'
12
- /**
13
- * Transforms the index candidates into indexes
14
- */
15
- | 'indexCandidateToIndexDiviner'
16
- /**
17
- * Transforms an index query response into a diviner divine query response
18
- */
19
- | 'indexQueryResponseToDivinerQueryResponseDiviner'
20
- /**
21
- * Uses the current state to determine the next batch of index candidates
22
- */
23
- | 'stateToIndexCandidateDiviner';
24
- /**
25
- * Config section for declaring each indexing diviner stage
26
- */
4
+ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
27
5
  export type IndexingDivinerStageConfig = {
28
6
  [key in IndexingDivinerStage]: ModuleIdentifier;
29
7
  };
@@ -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,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
+ {"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,29 +1,7 @@
1
1
  export type DivinerStageSchema = 'network.xyo.diviner.stage';
2
2
  export declare const DivinerStageSchema: DivinerStageSchema;
3
3
  import { ModuleIdentifier } from '@xyo-network/module-model';
4
- /**
5
- * The diviners for each stage of an indexing diviner
6
- */
7
- export type IndexingDivinerStage =
8
- /**
9
- * Transforms a diviner query into an index query
10
- */
11
- 'divinerQueryToIndexQueryDiviner'
12
- /**
13
- * Transforms the index candidates into indexes
14
- */
15
- | 'indexCandidateToIndexDiviner'
16
- /**
17
- * Transforms an index query response into a diviner divine query response
18
- */
19
- | 'indexQueryResponseToDivinerQueryResponseDiviner'
20
- /**
21
- * Uses the current state to determine the next batch of index candidates
22
- */
23
- | 'stateToIndexCandidateDiviner';
24
- /**
25
- * Config section for declaring each indexing diviner stage
26
- */
4
+ export type IndexingDivinerStage = 'divinerQueryToIndexQueryDiviner' | 'indexCandidateToIndexDiviner' | 'indexQueryResponseToDivinerQueryResponseDiviner' | 'stateToIndexCandidateDiviner';
27
5
  export type IndexingDivinerStageConfig = {
28
6
  [key in IndexingDivinerStage]: ModuleIdentifier;
29
7
  };
@@ -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,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
+ {"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,43 +1,2 @@
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
- });
1
+ "use strict";var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var c=(o,e)=>{for(var n in e)i(o,n,{get:e[n],enumerable:!0})},g=(o,e,n,x)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of p(e))!f.call(o,r)&&r!==n&&i(o,r,{get:()=>e[r],enumerable:!(x=m(e,r))||x.enumerable});return o};var a=o=>g(i({},"__esModule",{value:!0}),o);var S={};c(S,{DivinerStageSchema:()=>v,IndexingDivinerConfigSchema:()=>d,IndexingDivinerSchema:()=>t});module.exports=a(S);var t="network.xyo.diviner.indexing";var d=`${t}.config`;var v="network.xyo.diviner.stage";0&&(module.exports={DivinerStageSchema,IndexingDivinerConfigSchema,IndexingDivinerSchema});
43
2
  //# sourceMappingURL=index.cjs.map
@@ -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\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
+ {"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":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,gCAAAC,EAAA,0BAAAC,IAAA,eAAAC,EAAAL,GCAO,IAAMM,EAAwB,+BCO9B,IAAMC,EAA8B,GAAGC,CAAAA,UCNvC,IAAMC,EAAyC","names":["src_exports","__export","DivinerStageSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","__toCommonJS","IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
@@ -1,14 +1,2 @@
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
- };
1
+ var e="network.xyo.diviner.indexing";var n=`${e}.config`;var t="network.xyo.diviner.stage";export{t as DivinerStageSchema,n as IndexingDivinerConfigSchema,e as IndexingDivinerSchema};
14
2
  //# sourceMappingURL=index.js.map
@@ -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\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
+ {"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,EAAwB,+BCO9B,IAAMC,EAA8B,GAAGC,CAAAA,UCNvC,IAAMC,EAAyC","names":["IndexingDivinerSchema","IndexingDivinerConfigSchema","IndexingDivinerSchema","DivinerStageSchema"]}
package/package.json CHANGED
@@ -11,14 +11,14 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "@xylabs/object": "^3.5.1",
14
- "@xyo-network/diviner-model": "~2.106.0",
15
- "@xyo-network/module-model": "~2.106.0",
16
- "@xyo-network/payload-model": "~2.106.0"
14
+ "@xyo-network/diviner-model": "~2.107.1",
15
+ "@xyo-network/module-model": "~2.107.1",
16
+ "@xyo-network/payload-model": "~2.107.1"
17
17
  },
18
18
  "devDependencies": {
19
- "@xylabs/ts-scripts-yarn3": "^3.11.2",
20
- "@xylabs/tsconfig": "^3.11.2",
21
- "typescript": "^5.4.5"
19
+ "@xylabs/ts-scripts-yarn3": "^3.11.9",
20
+ "@xylabs/tsconfig": "^3.11.9",
21
+ "typescript": "^5.5.2"
22
22
  },
23
23
  "description": "Primary SDK for using XYO Protocol 2.0",
24
24
  "types": "dist/node/index.d.ts",
@@ -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.106.0",
62
+ "version": "2.107.1",
63
63
  "type": "module"
64
64
  }