@xyo-network/diviner-temporal-indexing-model 6.0.0 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model';
3
- import { type Schema } from '@xyo-network/payload-model';
3
+ import { type Schema } from '@xyo-network/sdk-protocol-js';
4
4
  export declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: string & {
5
5
  readonly __schema: true;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAIlE,eAAO,MAAM,kEAAkE;;CACa,CAAA;AAE5F,MAAM,MAAM,kEAAkE,GAC1E,OAAO,kEAAkE,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,4DAA4D,GAAG,aAAa,CAAC;IACvF;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,kEAAkE,CAAA;IAC1E;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAIpE,eAAO,MAAM,kEAAkE;;CACa,CAAA;AAE5F,MAAM,MAAM,kEAAkE,GAC1E,OAAO,kEAAkE,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,4DAA4D,GAAG,aAAa,CAAC;IACvF;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,kEAAkE,CAAA;IAC1E;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import type { Hash } from '@xylabs/sdk-js';
2
- import type { Payload } from '@xyo-network/payload-model';
2
+ import type { Payload } from '@xyo-network/sdk-protocol-js';
3
3
  import { TemporalIndexingDivinerResultSchema } from './Schema.ts';
4
4
  export type TemporalIndexingDivinerResult = Payload<{
5
5
  sources: Hash[];
6
6
  timestamp: string;
7
7
  }, TemporalIndexingDivinerResultSchema>;
8
- export declare const isTemporalIndexingDivinerResult: (x?: unknown | null) => x is TemporalIndexingDivinerResult;
8
+ export declare const isTemporalIndexingDivinerResult: (x?: unknown) => x is TemporalIndexingDivinerResult;
9
9
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AAEjE,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,IAAI,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B,4DAA4F,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AAEjE,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,IAAI,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B,qDAA4F,CAAA"}
@@ -1,7 +1,7 @@
1
- import type { PayloadWithSources } from '@xyo-network/payload-model';
1
+ import type { PayloadWithSources } from '@xyo-network/sdk-protocol-js';
2
2
  import { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts';
3
3
  export type TemporalIndexingDivinerResultIndex = PayloadWithSources<{
4
4
  timestamp: number;
5
5
  }, TemporalIndexingDivinerResultIndexSchema>;
6
- export declare const isTemporalIndexingDivinerResultIndex: (x?: unknown | null) => x is TemporalIndexingDivinerResultIndex;
6
+ export declare const isTemporalIndexingDivinerResultIndex: (x?: unknown) => x is TemporalIndexingDivinerResultIndex;
7
7
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAGpE,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAA;AAEtE,MAAM,MAAM,kCAAkC,GAAG,kBAAkB,CACjE;IACE,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AAED,eAAO,MAAM,oCAAoC,iEAEhD,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGtE,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAA;AAEtE,MAAM,MAAM,kCAAkC,GAAG,kBAAkB,CACjE;IACE,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AAED,eAAO,MAAM,oCAAoC,0DAEhD,CAAA"}
@@ -1,59 +1,59 @@
1
1
  // src/Config.ts
2
- import { asSchema as asSchema2 } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol-js";
3
3
 
4
4
  // src/Schema.ts
5
5
  import { IndexingDivinerSchema } from "@xyo-network/diviner-indexing-model";
6
- import { asSchema } from "@xyo-network/payload-model";
6
+ import { asSchema } from "@xyo-network/sdk-protocol-js";
7
7
  var TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true);
8
8
 
9
9
  // src/Config.ts
10
10
  var TemporalIndexingDivinerConfigSchema = asSchema2(`${TemporalIndexingDivinerSchema}.config`, true);
11
11
 
12
12
  // src/DivinerQueryToIndexQueryDiviner/Config.ts
13
- import { asSchema as asSchema4 } from "@xyo-network/payload-model";
13
+ import { asSchema as asSchema4 } from "@xyo-network/sdk-protocol-js";
14
14
 
15
15
  // src/DivinerQueryToIndexQueryDiviner/Schema.ts
16
- import { asSchema as asSchema3 } from "@xyo-network/payload-model";
16
+ import { asSchema as asSchema3 } from "@xyo-network/sdk-protocol-js";
17
17
  var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = asSchema3(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true);
18
18
 
19
19
  // src/DivinerQueryToIndexQueryDiviner/Config.ts
20
20
  var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = asSchema4(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true);
21
21
 
22
22
  // src/IndexCandidateToIndexDiviner/Config.ts
23
- import { asSchema as asSchema6 } from "@xyo-network/payload-model";
23
+ import { asSchema as asSchema6 } from "@xyo-network/sdk-protocol-js";
24
24
 
25
25
  // src/IndexCandidateToIndexDiviner/Schema.ts
26
- import { asSchema as asSchema5 } from "@xyo-network/payload-model";
26
+ import { asSchema as asSchema5 } from "@xyo-network/sdk-protocol-js";
27
27
  var TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = asSchema5(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true);
28
28
 
29
29
  // src/IndexCandidateToIndexDiviner/Config.ts
30
30
  var TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = asSchema6(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true);
31
31
 
32
32
  // src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
33
- import { asSchema as asSchema8 } from "@xyo-network/payload-model";
33
+ import { asSchema as asSchema8 } from "@xyo-network/sdk-protocol-js";
34
34
 
35
35
  // src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts
36
- import { asSchema as asSchema7 } from "@xyo-network/payload-model";
36
+ import { asSchema as asSchema7 } from "@xyo-network/sdk-protocol-js";
37
37
  var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = asSchema7(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true);
38
38
 
39
39
  // src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
40
40
  var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema = asSchema8(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true);
41
41
 
42
42
  // src/Result/Payload.ts
43
- import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
43
+ import { isPayloadOfSchemaType } from "@xyo-network/sdk-protocol-js";
44
44
 
45
45
  // src/Result/Schema.ts
46
- import { asSchema as asSchema9 } from "@xyo-network/payload-model";
46
+ import { asSchema as asSchema9 } from "@xyo-network/sdk-protocol-js";
47
47
  var TemporalIndexingDivinerResultSchema = asSchema9(`${TemporalIndexingDivinerSchema}.result`, true);
48
48
 
49
49
  // src/Result/Payload.ts
50
50
  var isTemporalIndexingDivinerResult = isPayloadOfSchemaType(TemporalIndexingDivinerResultSchema);
51
51
 
52
52
  // src/ResultIndex/Payload.ts
53
- import { isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/payload-model";
53
+ import { isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/sdk-protocol-js";
54
54
 
55
55
  // src/ResultIndex/Schema.ts
56
- import { asSchema as asSchema10 } from "@xyo-network/payload-model";
56
+ import { asSchema as asSchema10 } from "@xyo-network/sdk-protocol-js";
57
57
  var TemporalIndexingDivinerResultIndexSchema = asSchema10(`${TemporalIndexingDivinerResultSchema}.index`, true);
58
58
 
59
59
  // src/ResultIndex/Payload.ts
@@ -62,10 +62,10 @@ var isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType2(
62
62
  );
63
63
 
64
64
  // src/StateToIndexCandidateDiviner/Config.ts
65
- import { asSchema as asSchema12 } from "@xyo-network/payload-model";
65
+ import { asSchema as asSchema12 } from "@xyo-network/sdk-protocol-js";
66
66
 
67
67
  // src/StateToIndexCandidateDiviner/Schema.ts
68
- import { asSchema as asSchema11 } from "@xyo-network/payload-model";
68
+ import { asSchema as asSchema11 } from "@xyo-network/sdk-protocol-js";
69
69
  var TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = asSchema11(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true);
70
70
 
71
71
  // src/StateToIndexCandidateDiviner/Config.ts
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Config.ts", "../../src/Schema.ts", "../../src/DivinerQueryToIndexQueryDiviner/Config.ts", "../../src/DivinerQueryToIndexQueryDiviner/Schema.ts", "../../src/IndexCandidateToIndexDiviner/Config.ts", "../../src/IndexCandidateToIndexDiviner/Schema.ts", "../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts", "../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts", "../../src/Result/Payload.ts", "../../src/Result/Schema.ts", "../../src/ResultIndex/Payload.ts", "../../src/ResultIndex/Schema.ts", "../../src/StateToIndexCandidateDiviner/Config.ts", "../../src/StateToIndexCandidateDiviner/Schema.ts"],
4
- "sourcesContent": ["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts'\nimport type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts'\nimport { TemporalIndexingDivinerSchema } from './Schema.ts'\nimport type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts'\n\nexport const TemporalIndexingDivinerConfigSchema = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\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 this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n", "import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n", "import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResult = Payload<\n {\n sources: Hash[]\n timestamp: string\n },\n TemporalIndexingDivinerResultSchema\n>\nexport const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n", "import type { PayloadWithSources } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n", "import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness/model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],
4
+ "sourcesContent": ["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts'\nimport type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts'\nimport { TemporalIndexingDivinerSchema } from './Schema.ts'\nimport type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts'\n\nexport const TemporalIndexingDivinerConfigSchema = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\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 this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n", "import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n", "import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/sdk-protocol-js'\nimport { isPayloadOfSchemaType } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResult = Payload<\n {\n sources: Hash[]\n timestamp: string\n },\n TemporalIndexingDivinerResultSchema\n>\nexport const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n", "import type { PayloadWithSources } from '@xyo-network/sdk-protocol-js'\nimport { isPayloadOfSchemaType } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n", "import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness/model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],
5
5
  "mappings": ";AAGA,SAAS,YAAAA,iBAAgB;;;ACHzB,SAAS,6BAA6B;AACtC,SAAS,gBAAgB;AAElB,IAAM,gCAAgC,SAAS,GAAG,qBAAqB,aAAa,IAAI;;;ADOxF,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;AER3G,SAAS,YAAAC,iBAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+DACTC,UAAS,GAAG,6BAA6B,+CAA+C,IAAI;;;ADCzF,IAAM,qEACTC,UAAS,GAAG,4DAA4D,WAAW,IAAI;;;AEL3F,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,4DACTC,UAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,UAAS,GAAG,yDAAyD,WAAW,IAAI;;;AELxF,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+EACTC,UAAS,GAAG,6BAA6B,iEAAiE,IAAI;;;ADC3G,IAAM,qFACTC,UAAS,GAAG,4EAA4E,WAAW,IAAI;;;AEL3G,SAAS,6BAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;ADSpG,IAAM,kCAAkC,sBAAqD,mCAAmC;;;AEZvI,SAAS,yBAAAC,8BAA6B;;;ACDtC,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,2CAA2CC,WAAS,GAAG,mCAAmC,UAAU,IAAI;;;ADQ9G,IAAM,uCAAuCC;AAAA,EAClD;AACF;;;AEZA,SAAS,YAAAC,kBAAgB;;;ACFzB,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,4DACTC,WAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,WAAS,GAAG,yDAAyD,WAAW,IAAI;",
6
6
  "names": ["asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "isPayloadOfSchemaType", "asSchema", "asSchema", "isPayloadOfSchemaType", "asSchema", "asSchema", "asSchema", "asSchema"]
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model';
3
- import { type Schema } from '@xyo-network/payload-model';
3
+ import { type Schema } from '@xyo-network/sdk-protocol-js';
4
4
  export declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: string & {
5
5
  readonly __schema: true;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAIlE,eAAO,MAAM,kEAAkE;;CACa,CAAA;AAE5F,MAAM,MAAM,kEAAkE,GAC1E,OAAO,kEAAkE,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,4DAA4D,GAAG,aAAa,CAAC;IACvF;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,kEAAkE,CAAA;IAC1E;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAIpE,eAAO,MAAM,kEAAkE;;CACa,CAAA;AAE5F,MAAM,MAAM,kEAAkE,GAC1E,OAAO,kEAAkE,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,4DAA4D,GAAG,aAAa,CAAC;IACvF;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,kEAAkE,CAAA;IAC1E;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import type { Hash } from '@xylabs/sdk-js';
2
- import type { Payload } from '@xyo-network/payload-model';
2
+ import type { Payload } from '@xyo-network/sdk-protocol-js';
3
3
  import { TemporalIndexingDivinerResultSchema } from './Schema.ts';
4
4
  export type TemporalIndexingDivinerResult = Payload<{
5
5
  sources: Hash[];
6
6
  timestamp: string;
7
7
  }, TemporalIndexingDivinerResultSchema>;
8
- export declare const isTemporalIndexingDivinerResult: (x?: unknown | null) => x is TemporalIndexingDivinerResult;
8
+ export declare const isTemporalIndexingDivinerResult: (x?: unknown) => x is TemporalIndexingDivinerResult;
9
9
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AAEjE,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,IAAI,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B,4DAA4F,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AAEjE,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,IAAI,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B,qDAA4F,CAAA"}
@@ -1,7 +1,7 @@
1
- import type { PayloadWithSources } from '@xyo-network/payload-model';
1
+ import type { PayloadWithSources } from '@xyo-network/sdk-protocol-js';
2
2
  import { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts';
3
3
  export type TemporalIndexingDivinerResultIndex = PayloadWithSources<{
4
4
  timestamp: number;
5
5
  }, TemporalIndexingDivinerResultIndexSchema>;
6
- export declare const isTemporalIndexingDivinerResultIndex: (x?: unknown | null) => x is TemporalIndexingDivinerResultIndex;
6
+ export declare const isTemporalIndexingDivinerResultIndex: (x?: unknown) => x is TemporalIndexingDivinerResultIndex;
7
7
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAGpE,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAA;AAEtE,MAAM,MAAM,kCAAkC,GAAG,kBAAkB,CACjE;IACE,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AAED,eAAO,MAAM,oCAAoC,iEAEhD,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGtE,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAA;AAEtE,MAAM,MAAM,kCAAkC,GAAG,kBAAkB,CACjE;IACE,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AAED,eAAO,MAAM,oCAAoC,0DAEhD,CAAA"}
@@ -1,59 +1,59 @@
1
1
  // src/Config.ts
2
- import { asSchema as asSchema2 } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol-js";
3
3
 
4
4
  // src/Schema.ts
5
5
  import { IndexingDivinerSchema } from "@xyo-network/diviner-indexing-model";
6
- import { asSchema } from "@xyo-network/payload-model";
6
+ import { asSchema } from "@xyo-network/sdk-protocol-js";
7
7
  var TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true);
8
8
 
9
9
  // src/Config.ts
10
10
  var TemporalIndexingDivinerConfigSchema = asSchema2(`${TemporalIndexingDivinerSchema}.config`, true);
11
11
 
12
12
  // src/DivinerQueryToIndexQueryDiviner/Config.ts
13
- import { asSchema as asSchema4 } from "@xyo-network/payload-model";
13
+ import { asSchema as asSchema4 } from "@xyo-network/sdk-protocol-js";
14
14
 
15
15
  // src/DivinerQueryToIndexQueryDiviner/Schema.ts
16
- import { asSchema as asSchema3 } from "@xyo-network/payload-model";
16
+ import { asSchema as asSchema3 } from "@xyo-network/sdk-protocol-js";
17
17
  var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = asSchema3(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true);
18
18
 
19
19
  // src/DivinerQueryToIndexQueryDiviner/Config.ts
20
20
  var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = asSchema4(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true);
21
21
 
22
22
  // src/IndexCandidateToIndexDiviner/Config.ts
23
- import { asSchema as asSchema6 } from "@xyo-network/payload-model";
23
+ import { asSchema as asSchema6 } from "@xyo-network/sdk-protocol-js";
24
24
 
25
25
  // src/IndexCandidateToIndexDiviner/Schema.ts
26
- import { asSchema as asSchema5 } from "@xyo-network/payload-model";
26
+ import { asSchema as asSchema5 } from "@xyo-network/sdk-protocol-js";
27
27
  var TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = asSchema5(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true);
28
28
 
29
29
  // src/IndexCandidateToIndexDiviner/Config.ts
30
30
  var TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = asSchema6(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true);
31
31
 
32
32
  // src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
33
- import { asSchema as asSchema8 } from "@xyo-network/payload-model";
33
+ import { asSchema as asSchema8 } from "@xyo-network/sdk-protocol-js";
34
34
 
35
35
  // src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts
36
- import { asSchema as asSchema7 } from "@xyo-network/payload-model";
36
+ import { asSchema as asSchema7 } from "@xyo-network/sdk-protocol-js";
37
37
  var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = asSchema7(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true);
38
38
 
39
39
  // src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
40
40
  var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema = asSchema8(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true);
41
41
 
42
42
  // src/Result/Payload.ts
43
- import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
43
+ import { isPayloadOfSchemaType } from "@xyo-network/sdk-protocol-js";
44
44
 
45
45
  // src/Result/Schema.ts
46
- import { asSchema as asSchema9 } from "@xyo-network/payload-model";
46
+ import { asSchema as asSchema9 } from "@xyo-network/sdk-protocol-js";
47
47
  var TemporalIndexingDivinerResultSchema = asSchema9(`${TemporalIndexingDivinerSchema}.result`, true);
48
48
 
49
49
  // src/Result/Payload.ts
50
50
  var isTemporalIndexingDivinerResult = isPayloadOfSchemaType(TemporalIndexingDivinerResultSchema);
51
51
 
52
52
  // src/ResultIndex/Payload.ts
53
- import { isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/payload-model";
53
+ import { isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/sdk-protocol-js";
54
54
 
55
55
  // src/ResultIndex/Schema.ts
56
- import { asSchema as asSchema10 } from "@xyo-network/payload-model";
56
+ import { asSchema as asSchema10 } from "@xyo-network/sdk-protocol-js";
57
57
  var TemporalIndexingDivinerResultIndexSchema = asSchema10(`${TemporalIndexingDivinerResultSchema}.index`, true);
58
58
 
59
59
  // src/ResultIndex/Payload.ts
@@ -62,10 +62,10 @@ var isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType2(
62
62
  );
63
63
 
64
64
  // src/StateToIndexCandidateDiviner/Config.ts
65
- import { asSchema as asSchema12 } from "@xyo-network/payload-model";
65
+ import { asSchema as asSchema12 } from "@xyo-network/sdk-protocol-js";
66
66
 
67
67
  // src/StateToIndexCandidateDiviner/Schema.ts
68
- import { asSchema as asSchema11 } from "@xyo-network/payload-model";
68
+ import { asSchema as asSchema11 } from "@xyo-network/sdk-protocol-js";
69
69
  var TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = asSchema11(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true);
70
70
 
71
71
  // src/StateToIndexCandidateDiviner/Config.ts
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Config.ts", "../../src/Schema.ts", "../../src/DivinerQueryToIndexQueryDiviner/Config.ts", "../../src/DivinerQueryToIndexQueryDiviner/Schema.ts", "../../src/IndexCandidateToIndexDiviner/Config.ts", "../../src/IndexCandidateToIndexDiviner/Schema.ts", "../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts", "../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts", "../../src/Result/Payload.ts", "../../src/Result/Schema.ts", "../../src/ResultIndex/Payload.ts", "../../src/ResultIndex/Schema.ts", "../../src/StateToIndexCandidateDiviner/Config.ts", "../../src/StateToIndexCandidateDiviner/Schema.ts"],
4
- "sourcesContent": ["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts'\nimport type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts'\nimport { TemporalIndexingDivinerSchema } from './Schema.ts'\nimport type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts'\n\nexport const TemporalIndexingDivinerConfigSchema = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\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 this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n", "import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n", "import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResult = Payload<\n {\n sources: Hash[]\n timestamp: string\n },\n TemporalIndexingDivinerResultSchema\n>\nexport const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n", "import type { PayloadWithSources } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n", "import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness/model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],
4
+ "sourcesContent": ["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts'\nimport type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts'\nimport { TemporalIndexingDivinerSchema } from './Schema.ts'\nimport type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts'\n\nexport const TemporalIndexingDivinerConfigSchema = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\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 this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n", "import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n", "import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/sdk-protocol-js'\nimport { isPayloadOfSchemaType } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResult = Payload<\n {\n sources: Hash[]\n timestamp: string\n },\n TemporalIndexingDivinerResultSchema\n>\nexport const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n", "import type { PayloadWithSources } from '@xyo-network/sdk-protocol-js'\nimport { isPayloadOfSchemaType } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n", "import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness/model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],
5
5
  "mappings": ";AAGA,SAAS,YAAAA,iBAAgB;;;ACHzB,SAAS,6BAA6B;AACtC,SAAS,gBAAgB;AAElB,IAAM,gCAAgC,SAAS,GAAG,qBAAqB,aAAa,IAAI;;;ADOxF,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;AER3G,SAAS,YAAAC,iBAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+DACTC,UAAS,GAAG,6BAA6B,+CAA+C,IAAI;;;ADCzF,IAAM,qEACTC,UAAS,GAAG,4DAA4D,WAAW,IAAI;;;AEL3F,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,4DACTC,UAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,UAAS,GAAG,yDAAyD,WAAW,IAAI;;;AELxF,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+EACTC,UAAS,GAAG,6BAA6B,iEAAiE,IAAI;;;ADC3G,IAAM,qFACTC,UAAS,GAAG,4EAA4E,WAAW,IAAI;;;AEL3G,SAAS,6BAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;ADSpG,IAAM,kCAAkC,sBAAqD,mCAAmC;;;AEZvI,SAAS,yBAAAC,8BAA6B;;;ACDtC,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,2CAA2CC,WAAS,GAAG,mCAAmC,UAAU,IAAI;;;ADQ9G,IAAM,uCAAuCC;AAAA,EAClD;AACF;;;AEZA,SAAS,YAAAC,kBAAgB;;;ACFzB,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,4DACTC,WAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,WAAS,GAAG,yDAAyD,WAAW,IAAI;",
6
6
  "names": ["asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "isPayloadOfSchemaType", "asSchema", "asSchema", "isPayloadOfSchemaType", "asSchema", "asSchema", "asSchema", "asSchema"]
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model';
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model';
3
- import { type Schema } from '@xyo-network/payload-model';
3
+ import { type Schema } from '@xyo-network/sdk-protocol-js';
4
4
  export declare const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema: string & {
5
5
  readonly __schema: true;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAIlE,eAAO,MAAM,kEAAkE;;CACa,CAAA;AAE5F,MAAM,MAAM,kEAAkE,GAC1E,OAAO,kEAAkE,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,4DAA4D,GAAG,aAAa,CAAC;IACvF;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,kEAAkE,CAAA;IAC1E;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
1
+ {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../../src/DivinerQueryToIndexQueryDiviner/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qCAAqC,CAAA;AACzG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAIpE,eAAO,MAAM,kEAAkE;;CACa,CAAA;AAE5F,MAAM,MAAM,kEAAkE,GAC1E,OAAO,kEAAkE,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,4DAA4D,GAAG,aAAa,CAAC;IACvF;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,MAAM,EAAE,kEAAkE,CAAA;IAC1E;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,CAAC,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import type { Hash } from '@xylabs/sdk-js';
2
- import type { Payload } from '@xyo-network/payload-model';
2
+ import type { Payload } from '@xyo-network/sdk-protocol-js';
3
3
  import { TemporalIndexingDivinerResultSchema } from './Schema.ts';
4
4
  export type TemporalIndexingDivinerResult = Payload<{
5
5
  sources: Hash[];
6
6
  timestamp: string;
7
7
  }, TemporalIndexingDivinerResultSchema>;
8
- export declare const isTemporalIndexingDivinerResult: (x?: unknown | null) => x is TemporalIndexingDivinerResult;
8
+ export declare const isTemporalIndexingDivinerResult: (x?: unknown) => x is TemporalIndexingDivinerResult;
9
9
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAGzD,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AAEjE,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,IAAI,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B,4DAA4F,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/Result/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAG3D,OAAO,EAAE,mCAAmC,EAAE,MAAM,aAAa,CAAA;AAEjE,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD;IACE,OAAO,EAAE,IAAI,EAAE,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,mCAAmC,CACpC,CAAA;AACD,eAAO,MAAM,+BAA+B,qDAA4F,CAAA"}
@@ -1,7 +1,7 @@
1
- import type { PayloadWithSources } from '@xyo-network/payload-model';
1
+ import type { PayloadWithSources } from '@xyo-network/sdk-protocol-js';
2
2
  import { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts';
3
3
  export type TemporalIndexingDivinerResultIndex = PayloadWithSources<{
4
4
  timestamp: number;
5
5
  }, TemporalIndexingDivinerResultIndexSchema>;
6
- export declare const isTemporalIndexingDivinerResultIndex: (x?: unknown | null) => x is TemporalIndexingDivinerResultIndex;
6
+ export declare const isTemporalIndexingDivinerResultIndex: (x?: unknown) => x is TemporalIndexingDivinerResultIndex;
7
7
  //# sourceMappingURL=Payload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAGpE,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAA;AAEtE,MAAM,MAAM,kCAAkC,GAAG,kBAAkB,CACjE;IACE,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AAED,eAAO,MAAM,oCAAoC,iEAEhD,CAAA"}
1
+ {"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../../src/ResultIndex/Payload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGtE,OAAO,EAAE,wCAAwC,EAAE,MAAM,aAAa,CAAA;AAEtE,MAAM,MAAM,kCAAkC,GAAG,kBAAkB,CACjE;IACE,SAAS,EAAE,MAAM,CAAA;CAClB,EACD,wCAAwC,CACzC,CAAA;AAED,eAAO,MAAM,oCAAoC,0DAEhD,CAAA"}
@@ -1,59 +1,59 @@
1
1
  // src/Config.ts
2
- import { asSchema as asSchema2 } from "@xyo-network/payload-model";
2
+ import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol-js";
3
3
 
4
4
  // src/Schema.ts
5
5
  import { IndexingDivinerSchema } from "@xyo-network/diviner-indexing-model";
6
- import { asSchema } from "@xyo-network/payload-model";
6
+ import { asSchema } from "@xyo-network/sdk-protocol-js";
7
7
  var TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true);
8
8
 
9
9
  // src/Config.ts
10
10
  var TemporalIndexingDivinerConfigSchema = asSchema2(`${TemporalIndexingDivinerSchema}.config`, true);
11
11
 
12
12
  // src/DivinerQueryToIndexQueryDiviner/Config.ts
13
- import { asSchema as asSchema4 } from "@xyo-network/payload-model";
13
+ import { asSchema as asSchema4 } from "@xyo-network/sdk-protocol-js";
14
14
 
15
15
  // src/DivinerQueryToIndexQueryDiviner/Schema.ts
16
- import { asSchema as asSchema3 } from "@xyo-network/payload-model";
16
+ import { asSchema as asSchema3 } from "@xyo-network/sdk-protocol-js";
17
17
  var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = asSchema3(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true);
18
18
 
19
19
  // src/DivinerQueryToIndexQueryDiviner/Config.ts
20
20
  var TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema = asSchema4(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true);
21
21
 
22
22
  // src/IndexCandidateToIndexDiviner/Config.ts
23
- import { asSchema as asSchema6 } from "@xyo-network/payload-model";
23
+ import { asSchema as asSchema6 } from "@xyo-network/sdk-protocol-js";
24
24
 
25
25
  // src/IndexCandidateToIndexDiviner/Schema.ts
26
- import { asSchema as asSchema5 } from "@xyo-network/payload-model";
26
+ import { asSchema as asSchema5 } from "@xyo-network/sdk-protocol-js";
27
27
  var TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = asSchema5(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true);
28
28
 
29
29
  // src/IndexCandidateToIndexDiviner/Config.ts
30
30
  var TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = asSchema6(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true);
31
31
 
32
32
  // src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
33
- import { asSchema as asSchema8 } from "@xyo-network/payload-model";
33
+ import { asSchema as asSchema8 } from "@xyo-network/sdk-protocol-js";
34
34
 
35
35
  // src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts
36
- import { asSchema as asSchema7 } from "@xyo-network/payload-model";
36
+ import { asSchema as asSchema7 } from "@xyo-network/sdk-protocol-js";
37
37
  var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = asSchema7(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true);
38
38
 
39
39
  // src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts
40
40
  var TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema = asSchema8(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true);
41
41
 
42
42
  // src/Result/Payload.ts
43
- import { isPayloadOfSchemaType } from "@xyo-network/payload-model";
43
+ import { isPayloadOfSchemaType } from "@xyo-network/sdk-protocol-js";
44
44
 
45
45
  // src/Result/Schema.ts
46
- import { asSchema as asSchema9 } from "@xyo-network/payload-model";
46
+ import { asSchema as asSchema9 } from "@xyo-network/sdk-protocol-js";
47
47
  var TemporalIndexingDivinerResultSchema = asSchema9(`${TemporalIndexingDivinerSchema}.result`, true);
48
48
 
49
49
  // src/Result/Payload.ts
50
50
  var isTemporalIndexingDivinerResult = isPayloadOfSchemaType(TemporalIndexingDivinerResultSchema);
51
51
 
52
52
  // src/ResultIndex/Payload.ts
53
- import { isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/payload-model";
53
+ import { isPayloadOfSchemaType as isPayloadOfSchemaType2 } from "@xyo-network/sdk-protocol-js";
54
54
 
55
55
  // src/ResultIndex/Schema.ts
56
- import { asSchema as asSchema10 } from "@xyo-network/payload-model";
56
+ import { asSchema as asSchema10 } from "@xyo-network/sdk-protocol-js";
57
57
  var TemporalIndexingDivinerResultIndexSchema = asSchema10(`${TemporalIndexingDivinerResultSchema}.index`, true);
58
58
 
59
59
  // src/ResultIndex/Payload.ts
@@ -62,10 +62,10 @@ var isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType2(
62
62
  );
63
63
 
64
64
  // src/StateToIndexCandidateDiviner/Config.ts
65
- import { asSchema as asSchema12 } from "@xyo-network/payload-model";
65
+ import { asSchema as asSchema12 } from "@xyo-network/sdk-protocol-js";
66
66
 
67
67
  // src/StateToIndexCandidateDiviner/Schema.ts
68
- import { asSchema as asSchema11 } from "@xyo-network/payload-model";
68
+ import { asSchema as asSchema11 } from "@xyo-network/sdk-protocol-js";
69
69
  var TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = asSchema11(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true);
70
70
 
71
71
  // src/StateToIndexCandidateDiviner/Config.ts
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Config.ts", "../../src/Schema.ts", "../../src/DivinerQueryToIndexQueryDiviner/Config.ts", "../../src/DivinerQueryToIndexQueryDiviner/Schema.ts", "../../src/IndexCandidateToIndexDiviner/Config.ts", "../../src/IndexCandidateToIndexDiviner/Schema.ts", "../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Config.ts", "../../src/IndexQueryResponseToDivinerQueryResponseDiviner/Schema.ts", "../../src/Result/Payload.ts", "../../src/Result/Schema.ts", "../../src/ResultIndex/Payload.ts", "../../src/ResultIndex/Schema.ts", "../../src/StateToIndexCandidateDiviner/Config.ts", "../../src/StateToIndexCandidateDiviner/Schema.ts"],
4
- "sourcesContent": ["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts'\nimport type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts'\nimport { TemporalIndexingDivinerSchema } from './Schema.ts'\nimport type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts'\n\nexport const TemporalIndexingDivinerConfigSchema = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\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 this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n", "import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n", "import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResult = Payload<\n {\n sources: Hash[]\n timestamp: string\n },\n TemporalIndexingDivinerResultSchema\n>\nexport const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n", "import type { PayloadWithSources } from '@xyo-network/payload-model'\nimport { isPayloadOfSchemaType } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n", "import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness/model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n", "import { asSchema } from '@xyo-network/payload-model'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],
4
+ "sourcesContent": ["import type { IndexingDivinerStage, IndexingDivinerStageConfig } from '@xyo-network/diviner-indexing-model'\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport type { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig } from './DivinerQueryToIndexQueryDiviner/index.ts'\nimport type { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig } from './IndexQueryResponseToDivinerQueryResponseDiviner/index.ts'\nimport { TemporalIndexingDivinerSchema } from './Schema.ts'\nimport type { TemporalIndexingDivinerStateToIndexCandidateDivinerConfig } from './StateToIndexCandidateDiviner/index.ts'\n\nexport const TemporalIndexingDivinerConfigSchema = asSchema(`${TemporalIndexingDivinerSchema}.config`, true)\nexport type TemporalIndexingDivinerConfigSchema = typeof TemporalIndexingDivinerConfigSchema\n\n/**\n * Config section for declaring each indexing diviner stage\n */\nexport type IndexingDivinerStageTransformConfig = Record<IndexingDivinerStage, SchemaToJsonPathTransformExpressionsDictionary>\n\n// TODO: Extend indexing diviner config\n/**\n * Diviner Config for a Diviner which Indexes Payloads\n */\nexport type TemporalIndexingDivinerConfig = DivinerConfig<{\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 this config\n */\n schema: TemporalIndexingDivinerConfigSchema\n /**\n * Optional config section for individual diviner stages\n */\n stageConfigs?: {\n divinerQueryToIndexQueryDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexCandidateToIndexDiviner?: Omit<TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig, 'schema'>\n indexQueryResponseToDivinerQueryResponseDiviner?: Omit<TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig, 'schema'>\n stateToIndexCandidateDiviner?: Omit<TemporalIndexingDivinerStateToIndexCandidateDivinerConfig, 'schema'>\n }\n /**\n * Where the diviner should persist its internal state\n */\n stateStore?: SearchableStorage\n}>\n", "import { IndexingDivinerSchema } from '@xyo-network/diviner-indexing-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nexport const TemporalIndexingDivinerSchema = asSchema(`${IndexingDivinerSchema}.temporal`, true)\nexport type TemporalIndexingDivinerSchema = typeof TemporalIndexingDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema, type Schema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner Query to an Index Query\n */\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfig = DivinerConfig<{\n /**\n * The schema of the diviner query payloads\n */\n divinerQuerySchema?: Schema\n /**\n * The schema of the index query payloads\n */\n indexQuerySchema?: Schema\n /**\n * The schema of the index payloads\n */\n indexSchema?: Schema\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.diviner.query.to.index.query.diviner`, true)\n\nexport type TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema = typeof TemporalIndexingDivinerDivinerQueryToIndexQueryDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms Index Candidates to Indexes\n */\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexCandidateToIndexDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.candidate.to.index.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema = typeof TemporalIndexingDivinerIndexCandidateToIndexDivinerSchema\n", "import type { SchemaToJsonPathTransformExpressionsDictionary } from '@xyo-network/diviner-jsonpath-model'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms an Index Query Response to a Diviner Query Response\n */\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfig = DivinerConfig<{\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerConfigSchema\n /**\n * The transforms to apply to the source payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.index.query.response.to.diviner.query.response.diviner`, true)\n\nexport type TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema = typeof TemporalIndexingDivinerIndexQueryResponseToDivinerQueryResponseDivinerSchema\n", "import type { Hash } from '@xylabs/sdk-js'\nimport type { Payload } from '@xyo-network/sdk-protocol-js'\nimport { isPayloadOfSchemaType } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResult = Payload<\n {\n sources: Hash[]\n timestamp: string\n },\n TemporalIndexingDivinerResultSchema\n>\nexport const isTemporalIndexingDivinerResult = isPayloadOfSchemaType<TemporalIndexingDivinerResult>(TemporalIndexingDivinerResultSchema)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerResultSchema = asSchema(`${TemporalIndexingDivinerSchema}.result`, true)\nexport type TemporalIndexingDivinerResultSchema = typeof TemporalIndexingDivinerResultSchema\n", "import type { PayloadWithSources } from '@xyo-network/sdk-protocol-js'\nimport { isPayloadOfSchemaType } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultIndexSchema } from './Schema.ts'\n\nexport type TemporalIndexingDivinerResultIndex = PayloadWithSources<\n {\n timestamp: number\n },\n TemporalIndexingDivinerResultIndexSchema\n>\n\nexport const isTemporalIndexingDivinerResultIndex = isPayloadOfSchemaType<TemporalIndexingDivinerResultIndex>(\n TemporalIndexingDivinerResultIndexSchema,\n)\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerResultSchema } from '../Result/index.ts'\n\nexport const TemporalIndexingDivinerResultIndexSchema = asSchema(`${TemporalIndexingDivinerResultSchema}.index`, true)\nexport type TemporalIndexingDivinerResultIndexSchema = typeof TemporalIndexingDivinerResultIndexSchema\n", "import type { BoundWitnessDivinerPredicate } from '@xyo-network/diviner-boundwitness/model'\nimport type { DivinerConfig, SearchableStorage } from '@xyo-network/diviner-model'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerStateToIndexCandidateDivinerSchema } from './Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n = asSchema(`${TemporalIndexingDivinerStateToIndexCandidateDivinerSchema}.config`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n\n/**\n * Diviner Config for a Diviner which transforms a Diviner State to Index Candidates\n */\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerConfig = DivinerConfig<{\n /**\n * The filter to use to identify index candidates\n */\n filter?: BoundWitnessDivinerPredicate\n /**\n * The maximum number of payloads to index at a time\n */\n payloadDivinerLimit?: number\n /**\n * Where the diviner should look for stored thumbnails\n */\n payloadStore?: SearchableStorage\n /**\n * The config schema\n */\n schema: TemporalIndexingDivinerStateToIndexCandidateDivinerConfigSchema\n}>\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\nimport { TemporalIndexingDivinerSchema } from '../Schema.ts'\n\nexport const TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n = asSchema(`${TemporalIndexingDivinerSchema}.stage.state.to.index.candidate.diviner`, true)\n\nexport type TemporalIndexingDivinerStateToIndexCandidateDivinerSchema = typeof TemporalIndexingDivinerStateToIndexCandidateDivinerSchema\n"],
5
5
  "mappings": ";AAGA,SAAS,YAAAA,iBAAgB;;;ACHzB,SAAS,6BAA6B;AACtC,SAAS,gBAAgB;AAElB,IAAM,gCAAgC,SAAS,GAAG,qBAAqB,aAAa,IAAI;;;ADOxF,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;AER3G,SAAS,YAAAC,iBAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+DACTC,UAAS,GAAG,6BAA6B,+CAA+C,IAAI;;;ADCzF,IAAM,qEACTC,UAAS,GAAG,4DAA4D,WAAW,IAAI;;;AEL3F,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,4DACTC,UAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,UAAS,GAAG,yDAAyD,WAAW,IAAI;;;AELxF,SAAS,YAAAC,iBAAgB;;;ACFzB,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,+EACTC,UAAS,GAAG,6BAA6B,iEAAiE,IAAI;;;ADC3G,IAAM,qFACTC,UAAS,GAAG,4EAA4E,WAAW,IAAI;;;AEL3G,SAAS,6BAA6B;;;ACFtC,SAAS,YAAAC,iBAAgB;AAIlB,IAAM,sCAAsCC,UAAS,GAAG,6BAA6B,WAAW,IAAI;;;ADSpG,IAAM,kCAAkC,sBAAqD,mCAAmC;;;AEZvI,SAAS,yBAAAC,8BAA6B;;;ACDtC,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,2CAA2CC,WAAS,GAAG,mCAAmC,UAAU,IAAI;;;ADQ9G,IAAM,uCAAuCC;AAAA,EAClD;AACF;;;AEZA,SAAS,YAAAC,kBAAgB;;;ACFzB,SAAS,YAAAC,kBAAgB;AAIlB,IAAM,4DACTC,WAAS,GAAG,6BAA6B,2CAA2C,IAAI;;;ADCrF,IAAM,kEACTC,WAAS,GAAG,yDAAyD,WAAW,IAAI;",
6
6
  "names": ["asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "asSchema", "isPayloadOfSchemaType", "asSchema", "asSchema", "isPayloadOfSchemaType", "asSchema", "asSchema", "asSchema", "asSchema"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-temporal-indexing-model",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,76 +34,66 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/diviner-boundwitness": "~6.0.0",
38
- "@xyo-network/diviner-indexing-model": "~6.0.0",
39
- "@xyo-network/diviner-model": "~6.0.0",
40
- "@xyo-network/diviner-jsonpath-model": "~6.0.0",
41
- "@xyo-network/module-model": "~6.0.0"
37
+ "@xyo-network/diviner-boundwitness": "~6.0.2",
38
+ "@xyo-network/diviner-indexing-model": "~6.0.2",
39
+ "@xyo-network/diviner-jsonpath-model": "~6.0.2",
40
+ "@xyo-network/diviner-model": "~6.0.2",
41
+ "@xyo-network/module-model": "~6.0.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@bitauth/libauth": "~3.0.0",
45
+ "@metamask/providers": "^22.1.1",
46
+ "@noble/post-quantum": "~0.6.1",
45
47
  "@opentelemetry/api": "^1.9.1",
46
48
  "@opentelemetry/sdk-trace-base": "^2.7.1",
47
49
  "@scure/base": "~2.2.0",
48
- "@xylabs/sdk-js": "^6.0.0",
49
- "@xylabs/threads": "~6.0.0",
50
- "@xylabs/toolchain": "~8.0.17",
51
- "@xylabs/tsconfig": "~8.0.17",
52
- "@xyo-network/account": "~6.0",
53
- "@xyo-network/account-model": "~6.0",
54
- "@xyo-network/boundwitness-builder": "~6.0",
55
- "@xyo-network/boundwitness-model": "~6.0",
56
- "@xyo-network/boundwitness-wrapper": "~6.0",
57
- "@xyo-network/config-payload-plugin": "~6.0",
58
- "@xyo-network/manifest-model": "~6.0",
59
- "@xyo-network/payload-builder": "~6.0.0",
60
- "@xyo-network/payload-model": "~6.0.0",
61
- "@xyo-network/query-payload-plugin": "~6.0",
62
- "@xyo-network/wallet-model": "~6.0",
50
+ "@scure/bip39": "~2.2.0",
51
+ "@xylabs/geo": "^6.0.6",
52
+ "@xylabs/sdk-js": "^6.0.6",
53
+ "@xylabs/threads": "^6.0.6",
54
+ "@xylabs/toolchain": "~8.1.8",
55
+ "@xylabs/tsconfig": "~8.1.8",
56
+ "@xyo-network/sdk-protocol-js": "~6.0.7",
57
+ "ajv": "^8.20.0",
63
58
  "async-mutex": "^0.5.0",
64
59
  "bn.js": "^5.2.3",
65
60
  "buffer": "^6.0.3",
66
- "chalk": "^5.6.2",
67
61
  "debug": "~4.4.3",
68
- "eslint": "^10.4.0",
62
+ "eslint": "^10.4.1",
69
63
  "ethers": "^6.16.0",
70
64
  "hash-wasm": "~4.12.0",
71
- "lru-cache": "^11.5.0",
65
+ "idb": "^8.0.3",
66
+ "lru-cache": "^11.5.1",
72
67
  "observable-fns": "~0.6.1",
73
68
  "pako": "~2.1.0",
74
69
  "typescript": "~6.0.3",
75
- "wasm-feature-detect": "~1.8.0",
70
+ "webextension-polyfill": "^0.12.0",
76
71
  "zod": "^4.4.3"
77
72
  },
78
73
  "peerDependencies": {
79
74
  "@bitauth/libauth": "~3.0",
75
+ "@metamask/providers": "^22.1",
76
+ "@noble/post-quantum": "~0.6.1",
80
77
  "@opentelemetry/api": "^1.9",
81
78
  "@opentelemetry/sdk-trace-base": "^2.7",
82
79
  "@scure/base": "~2.2",
80
+ "@scure/bip39": "~2.2",
81
+ "@xylabs/geo": "^6.0",
83
82
  "@xylabs/sdk-js": "^6.0",
84
- "@xylabs/threads": "~6.0",
85
- "@xyo-network/account": "~6.0",
86
- "@xyo-network/account-model": "~6.0",
87
- "@xyo-network/boundwitness-builder": "~6.0",
88
- "@xyo-network/boundwitness-model": "~6.0",
89
- "@xyo-network/boundwitness-wrapper": "~6.0",
90
- "@xyo-network/config-payload-plugin": "~6.0",
91
- "@xyo-network/manifest-model": "~6.0",
92
- "@xyo-network/payload-builder": "~6.0",
93
- "@xyo-network/payload-model": "~6.0",
94
- "@xyo-network/query-payload-plugin": "~6.0",
95
- "@xyo-network/wallet-model": "~6.0",
83
+ "@xylabs/threads": "^6.0",
84
+ "@xyo-network/sdk-protocol-js": "~6.0",
85
+ "ajv": "^8.20",
96
86
  "async-mutex": "^0.5",
97
87
  "bn.js": "^5.2",
98
88
  "buffer": "^6.0",
99
- "chalk": "^5.6",
100
89
  "debug": "~4.4",
101
90
  "ethers": "^6.16",
102
91
  "hash-wasm": "~4.12",
92
+ "idb": "^8.0",
103
93
  "lru-cache": "^11.3",
104
94
  "observable-fns": "~0.6",
105
95
  "pako": "~2.1",
106
- "wasm-feature-detect": "~1.8",
96
+ "webextension-polyfill": "^0.12",
107
97
  "zod": "^4.4"
108
98
  },
109
99
  "publishConfig": {