@xyo-network/diviner-jsonpath-model 7.0.1 → 7.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,7 +1,7 @@
1
- import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk-js';
1
+ import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk';
2
2
  import type { DivinerConfig } from '@xyo-network/diviner-model';
3
3
  import { DivinerConfigZod } from '@xyo-network/diviner-model';
4
- import type { Schema } from '@xyo-network/sdk-protocol-js';
4
+ import type { Schema } from '@xyo-network/sdk-protocol';
5
5
  import * as z from 'zod/mini';
6
6
  import type { JsonPathTransformExpression } from './jsonpath/index.ts';
7
7
  /**
@@ -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,gBAAgB,CAAA;AACvB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAE1D,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAA;AAGtE;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,GAAG;IACjD,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CAC4B,CAAA;AAErD;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAA;AAE5E;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CACpD,IAAI,CAAC,CAAC,OAAO,gBAAgB,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,GAAG;IACnD,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 +3,13 @@ import {
3
3
  zodAsFactory,
4
4
  zodIsFactory,
5
5
  zodToFactory
6
- } from "@xylabs/sdk-js";
6
+ } from "@xylabs/sdk";
7
7
  import { DivinerConfigZod } from "@xyo-network/diviner-model";
8
- import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol-js";
8
+ import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol";
9
9
  import * as z from "zod/mini";
10
10
 
11
11
  // src/Schema.ts
12
- import { asSchema } from "@xyo-network/sdk-protocol-js";
12
+ import { asSchema } from "@xyo-network/sdk-protocol";
13
13
  var JsonPathDivinerSchema = asSchema("network.xyo.diviner.jsonpath", true);
14
14
 
15
15
  // src/Config.ts
@@ -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-js'\nimport type { DivinerConfig } from '@xyo-network/diviner-model'\nimport { DivinerConfigZod } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/sdk-protocol-js'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\nimport * as z from 'zod/mini'\n\nimport type { JsonPathTransformExpression } from './jsonpath/index.ts'\nimport { JsonPathDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${JsonPathDivinerSchema}.config`, true)\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = typeof JsonPathDivinerConfigSchema\n\n/**\n * The Zod schema for the JSON Path diviner config\n */\nexport const JsonPathDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n destinationSchema: z.ZodMiniOptional<z.ZodMiniCustom<Schema, Schema>>\n schema: z.ZodMiniLiteral<JsonPathDivinerConfigSchema>\n transforms: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<JsonPathTransformExpression, JsonPathTransformExpression>>>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, {\n destinationSchema: z.optional(z.custom<Schema>()),\n schema: z.literal(JsonPathDivinerConfigSchema),\n transforms: z.optional(z.array(z.custom<JsonPathTransformExpression>())),\n})\n\n/**\n * The configuration for the JSON Path diviner\n */\nexport type JsonPathDivinerConfig = DivinerConfig<\n {\n /**\n * The schema to use for the destination payloads\n */\n destinationSchema?: Schema\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n\nexport const isJsonPathDivinerConfig: ReturnType<typeof zodIsFactory<JsonPathDivinerConfig>> = zodIsFactory(JsonPathDivinerConfigZod)\nexport const asJsonPathDivinerConfig: ReturnType<typeof zodAsFactory<JsonPathDivinerConfig>> = zodAsFactory(JsonPathDivinerConfigZod, 'asJsonPathDivinerConfig')\nexport const toJsonPathDivinerConfig: ReturnType<typeof zodToFactory<JsonPathDivinerConfig>> = zodToFactory(JsonPathDivinerConfigZod, 'toJsonPathDivinerConfig')\n", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathDivinerSchema: 'network.xyo.diviner.jsonpath' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.jsonpath', true)\n\n/**\n * The schema type used for the JSONPath Diviner.\n */\nexport type JsonPathDivinerSchema = typeof JsonPathDivinerSchema\n"],
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 { JsonPathTransformExpression } from './jsonpath/index.ts'\nimport { JsonPathDivinerSchema } from './Schema.ts'\n\n/**\n * The config schema for the JSON Path diviner\n */\nexport const JsonPathDivinerConfigSchema: string & {\n readonly __schema: true\n} = asSchema(`${JsonPathDivinerSchema}.config`, true)\n\n/**\n * The config schema type for the JSON Path diviner\n */\nexport type JsonPathDivinerConfigSchema = typeof JsonPathDivinerConfigSchema\n\n/**\n * The Zod schema for the JSON Path diviner config\n */\nexport const JsonPathDivinerConfigZod: z.ZodMiniObject<\n Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {\n destinationSchema: z.ZodMiniOptional<z.ZodMiniCustom<Schema, Schema>>\n schema: z.ZodMiniLiteral<JsonPathDivinerConfigSchema>\n transforms: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniCustom<JsonPathTransformExpression, JsonPathTransformExpression>>>\n },\n z.core.$strip\n> = z.extend(DivinerConfigZod, {\n destinationSchema: z.optional(z.custom<Schema>()),\n schema: z.literal(JsonPathDivinerConfigSchema),\n transforms: z.optional(z.array(z.custom<JsonPathTransformExpression>())),\n})\n\n/**\n * The configuration for the JSON Path diviner\n */\nexport type JsonPathDivinerConfig = DivinerConfig<\n {\n /**\n * The schema to use for the destination payloads\n */\n destinationSchema?: Schema\n /**\n * The JSON Path transform expressions to apply to the payloads\n */\n transforms?: JsonPathTransformExpression[]\n } & { schema: JsonPathDivinerConfigSchema }\n>\n\nexport const isJsonPathDivinerConfig: ReturnType<typeof zodIsFactory<JsonPathDivinerConfig>> = zodIsFactory(JsonPathDivinerConfigZod)\nexport const asJsonPathDivinerConfig: ReturnType<typeof zodAsFactory<JsonPathDivinerConfig>> = zodAsFactory(JsonPathDivinerConfigZod, 'asJsonPathDivinerConfig')\nexport const toJsonPathDivinerConfig: ReturnType<typeof zodToFactory<JsonPathDivinerConfig>> = zodToFactory(JsonPathDivinerConfigZod, 'toJsonPathDivinerConfig')\n", "import { asSchema } from '@xyo-network/sdk-protocol'\n/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathDivinerSchema: 'network.xyo.diviner.jsonpath' & {\n readonly __schema: true\n} = asSchema('network.xyo.diviner.jsonpath', true)\n\n/**\n * The schema type used for the JSONPath Diviner.\n */\nexport type JsonPathDivinerSchema = typeof JsonPathDivinerSchema\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;AAIlB,IAAM,wBAET,SAAS,gCAAgC,IAAI;;;ADS1C,IAAM,8BAETC,UAAS,GAAG,qBAAqB,WAAW,IAAI;AAU7C,IAAM,2BAOP,SAAO,kBAAkB;AAAA,EAC7B,mBAAqB,WAAW,SAAe,CAAC;AAAA,EAChD,QAAU,UAAQ,2BAA2B;AAAA,EAC7C,YAAc,WAAW,QAAQ,SAAoC,CAAC,CAAC;AACzE,CAAC;AAkBM,IAAM,0BAAkF,aAAa,wBAAwB;AAC7H,IAAM,0BAAkF,aAAa,0BAA0B,yBAAyB;AACxJ,IAAM,0BAAkF,aAAa,0BAA0B,yBAAyB;",
6
6
  "names": ["asSchema", "asSchema"]
7
7
  }
@@ -1,4 +1,4 @@
1
- import type { JsonValue } from '@xylabs/sdk-js';
1
+ import type { JsonValue } from '@xylabs/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,gBAAgB,CAAA;AAE/C;;;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,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,3 +1,3 @@
1
- import type { Payload } from '@xyo-network/sdk-protocol-js';
1
+ import type { Payload } from '@xyo-network/sdk-protocol';
2
2
  export type PayloadTransformer = (x: Payload) => Partial<Payload>;
3
3
  //# sourceMappingURL=PayloadTransformer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PayloadTransformer.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/PayloadTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAI3D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"PayloadTransformer.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/PayloadTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAIxD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Schema } from '@xyo-network/sdk-protocol-js';
1
+ import type { Schema } from '@xyo-network/sdk-protocol';
2
2
  import type { JsonPathTransformExpression } from './JsonPathTransformExpression.ts';
3
3
  /**
4
4
  * A dictionary of schema to JSON Path transform expressions.
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaToJsonPathTransformExpressionDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToJsonPathTransformExpressionDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAE1D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAEnF;;GAEG;AACH,MAAM,MAAM,8CAA8C,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;KACvH,GAAG,IAAI,MAAM,CAAC,GAAG,2BAA2B,EAAE;CAChD,CAAA"}
1
+ {"version":3,"file":"SchemaToJsonPathTransformExpressionDictionary.d.ts","sourceRoot":"","sources":["../../../src/jsonpath/SchemaToJsonPathTransformExpressionDictionary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAEvD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAA;AAEnF;;GAEG;AACH,MAAM,MAAM,8CAA8C,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;KACvH,GAAG,IAAI,MAAM,CAAC,GAAG,2BAA2B,EAAE;CAChD,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/diviner-jsonpath-model",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "Primary SDK for using XYO Protocol 2.0",
5
5
  "homepage": "https://xyo.network",
6
6
  "bugs": {
@@ -34,8 +34,8 @@
34
34
  "README.md"
35
35
  ],
36
36
  "dependencies": {
37
- "@xyo-network/diviner-model": "~7.0.1",
38
- "@xyo-network/module-model": "~7.0.1"
37
+ "@xyo-network/diviner-model": "~7.0.2",
38
+ "@xyo-network/module-model": "~7.0.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@bitauth/libauth": "~3.0.0",
@@ -45,16 +45,16 @@
45
45
  "@opentelemetry/sdk-trace-base": "^2.8.0",
46
46
  "@scure/base": "~2.2.0",
47
47
  "@scure/bip39": "~2.2.0",
48
- "@xylabs/geo": "^6.1.4",
49
- "@xylabs/sdk-js": "^6.1.4",
50
- "@xylabs/threads": "^6.1.4",
51
- "@xylabs/toolchain": "^8.3.0",
52
- "@xylabs/tsconfig": "^8.3.0",
53
- "@xyo-network/sdk-protocol-js": "^7.0.3",
48
+ "@xylabs/geo": "^7.0.1",
49
+ "@xylabs/sdk": "^7.0.1",
50
+ "@xylabs/threads": "^7.0.1",
51
+ "@xylabs/toolchain": "^8.5.3",
52
+ "@xylabs/tsconfig": "^8.5.3",
53
+ "@xyo-network/sdk-protocol": "^7.0.4",
54
54
  "ajv": "^8.20.0",
55
55
  "async-mutex": "^0.5.0",
56
56
  "debug": "~4.4.3",
57
- "eslint": "^10.5.0",
57
+ "eslint": "^10.6.0",
58
58
  "ethers": "^6.17.0",
59
59
  "hash-wasm": "~4.12.0",
60
60
  "idb": "^8.0.3",
@@ -72,9 +72,9 @@
72
72
  "@scure/base": "~2.2",
73
73
  "@scure/bip39": "~2.2",
74
74
  "@xylabs/geo": "^6.0",
75
- "@xylabs/sdk-js": "^6.0",
75
+ "@xylabs/sdk": "^6.0",
76
76
  "@xylabs/threads": "^6.0",
77
- "@xyo-network/sdk-protocol-js": "^7.0",
77
+ "@xyo-network/sdk-protocol": "^7.0",
78
78
  "ajv": "^8.20",
79
79
  "async-mutex": "^0.5",
80
80
  "debug": "~4.4",