@xyo-network/diviner-jsonpath-aggregate-model 7.0.4 → 7.0.5

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,4 +1,4 @@
1
- import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk';
1
+ import { zodAsFactory, zodIsFactory, zodToFactory } from '@ariestools/sdk';
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model';
3
3
  import { DivinerConfigZod } from '@xyo-network/diviner-model';
4
4
  import type { Schema } from '@xyo-network/sdk-protocol';
@@ -1 +1 @@
1
- {"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EAAE,YAAY,EAAE,YAAY,EACzC,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,KAAK,EAAE,8CAA8C,EAAE,MAAM,qBAAqB,CAAA;AAGzF;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,MAAM,GAAG;IAC1D,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CACqC,CAAA;AAE9D;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,OAAO,oCAAoC,CAAA;AAE9F;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,aAAa,CAC7D,IAAI,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,GAAG;IACnD,iBAAiB,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACrE,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F,CAAA;AACpM,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,8BAA8B,CAAC,CAAuF,CAAA"}
@@ -3,7 +3,7 @@ import {
3
3
  zodAsFactory,
4
4
  zodIsFactory,
5
5
  zodToFactory
6
- } from "@xylabs/sdk";
6
+ } from "@ariestools/sdk";
7
7
  import { DivinerConfigZod } from "@xyo-network/diviner-model";
8
8
  import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol";
9
9
  import * as z from "zod/mini";
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Config.ts", "../../src/Schema.ts"],
4
- "sourcesContent": ["import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/sdk-protocol'\nimport { asSchema } from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\n\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from './jsonpath/index.ts'\nimport { JsonPathAggregateDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathAggregateDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${JsonPathAggregateDivinerSchema}.config`, true)\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathAggregateDivinerConfigSchema = typeof JsonPathAggregateDivinerConfigSchema\n\n/**\n * The Zod schema for the JSON Path aggregate diviner config\n */\nexport const JsonPathAggregateDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n destinationSchema: z.ZodMiniOptional<z.ZodMiniCustom<Schema, Schema>>\n excludeSources: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>\n schema: z.ZodMiniLiteral<JsonPathAggregateDivinerConfigSchema>\n schemaTransforms: z.ZodMiniOptional<\n z.ZodMiniCustom<SchemaToJsonPathTransformExpressionsDictionary, SchemaToJsonPathTransformExpressionsDictionary>\n >\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, {\n destinationSchema: z.optional(z.custom<Schema>()),\n excludeSources: z.optional(z.boolean()),\n schema: z.literal(JsonPathAggregateDivinerConfigSchema),\n schemaTransforms: z.optional(z.custom<SchemaToJsonPathTransformExpressionsDictionary>()),\n})\n\n/**\n * The configuration for the JSON Path diviner\n */\nexport type JsonPathAggregateDivinerConfig = DivinerConfig<\n {\n /**\n * The schema to use for the destination payloads\n */\n destinationSchema?: Schema\n /**\n * Exclude the source hashes from the destination payload.\n */\n excludeSources?: boolean\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n } & { schema: JsonPathAggregateDivinerConfigSchema }\n>\n\nexport const isJsonPathAggregateDivinerConfig: ReturnType<typeof zodIsFactory<JsonPathAggregateDivinerConfig>> = zodIsFactory(JsonPathAggregateDivinerConfigZod)\nexport const asJsonPathAggregateDivinerConfig: ReturnType<typeof zodAsFactory<JsonPathAggregateDivinerConfig>> = zodAsFactory(JsonPathAggregateDivinerConfigZod, 'asJsonPathAggregateDivinerConfig')\nexport const toJsonPathAggregateDivinerConfig: ReturnType<typeof zodToFactory<JsonPathAggregateDivinerConfig>> = zodToFactory(JsonPathAggregateDivinerConfigZod, 'toJsonPathAggregateDivinerConfig')\n", "import { asSchema } from '@xyo-network/sdk-protocol'\n\n/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathAggregateDivinerSchema: 'network.xyo.diviner.jsonpath.aggregate' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.jsonpath.aggregate', true)\n\n/**\n * The schema type used for the JSONPath Diviner.\n */\nexport type JsonPathAggregateDivinerSchema = typeof JsonPathAggregateDivinerSchema\n"],
4
+ "sourcesContent": ["import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@ariestools/sdk'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/sdk-protocol'\nimport { asSchema } from '@xyo-network/sdk-protocol'\nimport * as z from 'zod/mini'\n\nimport type { SchemaToJsonPathTransformExpressionsDictionary } from './jsonpath/index.ts'\nimport { JsonPathAggregateDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathAggregateDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${JsonPathAggregateDivinerSchema}.config`, true)\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathAggregateDivinerConfigSchema = typeof JsonPathAggregateDivinerConfigSchema\n\n/**\n * The Zod schema for the JSON Path aggregate diviner config\n */\nexport const JsonPathAggregateDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n destinationSchema: z.ZodMiniOptional<z.ZodMiniCustom<Schema, Schema>>\n excludeSources: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>\n schema: z.ZodMiniLiteral<JsonPathAggregateDivinerConfigSchema>\n schemaTransforms: z.ZodMiniOptional<\n z.ZodMiniCustom<SchemaToJsonPathTransformExpressionsDictionary, SchemaToJsonPathTransformExpressionsDictionary>\n >\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, {\n destinationSchema: z.optional(z.custom<Schema>()),\n excludeSources: z.optional(z.boolean()),\n schema: z.literal(JsonPathAggregateDivinerConfigSchema),\n schemaTransforms: z.optional(z.custom<SchemaToJsonPathTransformExpressionsDictionary>()),\n})\n\n/**\n * The configuration for the JSON Path diviner\n */\nexport type JsonPathAggregateDivinerConfig = DivinerConfig<\n {\n /**\n * The schema to use for the destination payloads\n */\n destinationSchema?: Schema\n /**\n * Exclude the source hashes from the destination payload.\n */\n excludeSources?: boolean\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n schemaTransforms?: SchemaToJsonPathTransformExpressionsDictionary\n } & { schema: JsonPathAggregateDivinerConfigSchema }\n>\n\nexport const isJsonPathAggregateDivinerConfig: ReturnType<typeof zodIsFactory<JsonPathAggregateDivinerConfig>> = zodIsFactory(JsonPathAggregateDivinerConfigZod)\nexport const asJsonPathAggregateDivinerConfig: ReturnType<typeof zodAsFactory<JsonPathAggregateDivinerConfig>> = zodAsFactory(JsonPathAggregateDivinerConfigZod, 'asJsonPathAggregateDivinerConfig')\nexport const toJsonPathAggregateDivinerConfig: ReturnType<typeof zodToFactory<JsonPathAggregateDivinerConfig>> = zodToFactory(JsonPathAggregateDivinerConfigZod, 'toJsonPathAggregateDivinerConfig')\n", "import { asSchema } from '@xyo-network/sdk-protocol'\n\n/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathAggregateDivinerSchema: 'network.xyo.diviner.jsonpath.aggregate' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.jsonpath.aggregate', true)\n\n/**\n * The schema type used for the JSONPath Diviner.\n */\nexport type JsonPathAggregateDivinerSchema = typeof JsonPathAggregateDivinerSchema\n"],
5
5
  "mappings": ";AAAA;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AAEP,SAAS,wBAAwB;AAEjC,SAAS,YAAAA,iBAAgB;AACzB,YAAY,OAAO;;;ACPnB,SAAS,gBAAgB;AAKlB,IAAM,iCAET,SAAS,0CAA0C,IAAI;;;ADQpD,IAAM,uCAETC,UAAS,GAAG,8BAA8B,WAAW,IAAI;AAUtD,IAAM,oCAUP,SAAO,kBAAkB;AAAA,EAC7B,mBAAqB,WAAW,SAAe,CAAC;AAAA,EAChD,gBAAkB,WAAW,UAAQ,CAAC;AAAA,EACtC,QAAU,UAAQ,oCAAoC;AAAA,EACtD,kBAAoB,WAAW,SAAuD,CAAC;AACzF,CAAC;AAsBM,IAAM,mCAAoG,aAAa,iCAAiC;AACxJ,IAAM,mCAAoG,aAAa,mCAAmC,kCAAkC;AAC5L,IAAM,mCAAoG,aAAa,mCAAmC,kCAAkC;",
6
6
  "names": ["asSchema", "asSchema"]
7
7
  }
@@ -1,4 +1,4 @@
1
- import type { JsonValue } from '@xylabs/sdk';
1
+ import type { JsonValue } from '@ariestools/sdk';
2
2
  /**
3
3
  * Describes the JSON-path transformation to retrieve a field on a source object
4
4
  * and the target field to store the value to on a destination object
@@ -1 +1 @@
1
- {"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
1
+ {"version":3,"file":"JsonPathTransformExpression.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/JsonPathTransformExpression.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAA;CAC7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-jsonpath-aggregate-model",
3
- "version": "7.0.4",
3
+ "version": "7.0.5",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,22 +34,22 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/diviner-model": "~7.0.4",
38
- "@xyo-network/module-model": "~7.0.4"
37
+ "@xyo-network/diviner-model": "~7.0.5",
38
+ "@xyo-network/module-model": "~7.0.5"
39
39
  },
40
40
  "devDependencies": {
41
+ "@ariestools/sdk": "^7.0.4",
41
42
  "@bitauth/libauth": "~3.0.0",
42
43
  "@noble/post-quantum": "~0.6.1",
43
44
  "@opentelemetry/api": "^1.9.1",
44
45
  "@opentelemetry/sdk-trace-base": "^2.8.0",
45
46
  "@scure/base": "~2.2.0",
46
47
  "@scure/bip39": "~2.2.0",
47
- "@xylabs/geo": "^7.0.1",
48
- "@xylabs/sdk": "^7.0.1",
49
- "@xylabs/threads": "^7.0.1",
50
- "@xylabs/toolchain": "^8.5.3",
51
- "@xylabs/tsconfig": "^8.5.3",
52
- "@xyo-network/sdk-protocol": "^7.0.4",
48
+ "@xylabs/geo": "^7.0.4",
49
+ "@xylabs/threads": "^7.0.4",
50
+ "@xylabs/toolchain": "^8.5.14",
51
+ "@xylabs/tsconfig": "^8.5.14",
52
+ "@xyo-network/sdk-protocol": "^7.0.8",
53
53
  "ajv": "^8.20.0",
54
54
  "async-mutex": "^0.5.0",
55
55
  "browserslist": "4.28.4",
@@ -64,6 +64,7 @@
64
64
  "zod": "^4.4.3"
65
65
  },
66
66
  "peerDependencies": {
67
+ "@ariestools/sdk": "^7.0",
67
68
  "@bitauth/libauth": "~3.0",
68
69
  "@noble/post-quantum": "~0.6.1",
69
70
  "@opentelemetry/api": "^1.9",
@@ -71,7 +72,6 @@
71
72
  "@scure/base": "~2.2",
72
73
  "@scure/bip39": "~2.2",
73
74
  "@xylabs/geo": "^7.0",
74
- "@xylabs/sdk": "^7.0",
75
75
  "@xylabs/threads": "^7.0",
76
76
  "@xyo-network/sdk-protocol": "^7.0",
77
77
  "ajv": "^8.20",