@xyo-network/diviner-jsonpath-aggregate-model 6.0.4 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -38,10 +38,12 @@ bun add {{name}}
|
|
|
38
38
|
|
|
39
39
|
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
40
|
|
|
41
|
+
## Credits
|
|
41
42
|
|
|
43
|
+
[Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)
|
|
42
44
|
|
|
43
|
-
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
44
45
|
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/diviner-jsonpath-aggregate-model.svg
|
|
45
46
|
[npm-link]: https://www.npmjs.com/package/@xyo-network/diviner-jsonpath-aggregate-model
|
|
46
47
|
[license-badge]: https://img.shields.io/npm/l/@xyo-network/diviner-jsonpath-aggregate-model.svg
|
|
47
48
|
[license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
|
|
49
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
package/dist/neutral/Config.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { zodAsFactory, zodIsFactory, zodToFactory } from '@xylabs/sdk-js';
|
|
1
2
|
import type { DivinerConfig } from '@xyo-network/diviner-model';
|
|
3
|
+
import { DivinerConfigZod } from '@xyo-network/diviner-model';
|
|
2
4
|
import type { Schema } from '@xyo-network/sdk-protocol-js';
|
|
5
|
+
import * as z from 'zod/mini';
|
|
3
6
|
import type { SchemaToJsonPathTransformExpressionsDictionary } from './jsonpath/index.ts';
|
|
4
7
|
/**
|
|
5
8
|
* The config schema for the JSON Path diviner
|
|
@@ -11,6 +14,15 @@ export declare const JsonPathAggregateDivinerConfigSchema: string & {
|
|
|
11
14
|
* The config schema type for the JSON Path diviner
|
|
12
15
|
*/
|
|
13
16
|
export type JsonPathAggregateDivinerConfigSchema = typeof JsonPathAggregateDivinerConfigSchema;
|
|
17
|
+
/**
|
|
18
|
+
* The Zod schema for the JSON Path aggregate diviner config
|
|
19
|
+
*/
|
|
20
|
+
export declare const JsonPathAggregateDivinerConfigZod: z.ZodMiniObject<Omit<(typeof DivinerConfigZod)['shape'], 'schema'> & {
|
|
21
|
+
destinationSchema: z.ZodMiniOptional<z.ZodMiniCustom<Schema, Schema>>;
|
|
22
|
+
excludeSources: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
23
|
+
schema: z.ZodMiniLiteral<JsonPathAggregateDivinerConfigSchema>;
|
|
24
|
+
schemaTransforms: z.ZodMiniOptional<z.ZodMiniCustom<SchemaToJsonPathTransformExpressionsDictionary, SchemaToJsonPathTransformExpressionsDictionary>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
14
26
|
/**
|
|
15
27
|
* The configuration for the JSON Path diviner
|
|
16
28
|
*/
|
|
@@ -30,4 +42,7 @@ export type JsonPathAggregateDivinerConfig = DivinerConfig<{
|
|
|
30
42
|
} & {
|
|
31
43
|
schema: JsonPathAggregateDivinerConfigSchema;
|
|
32
44
|
}>;
|
|
45
|
+
export declare const isJsonPathAggregateDivinerConfig: ReturnType<typeof zodIsFactory<JsonPathAggregateDivinerConfig>>;
|
|
46
|
+
export declare const asJsonPathAggregateDivinerConfig: ReturnType<typeof zodAsFactory<JsonPathAggregateDivinerConfig>>;
|
|
47
|
+
export declare const toJsonPathAggregateDivinerConfig: ReturnType<typeof zodToFactory<JsonPathAggregateDivinerConfig>>;
|
|
33
48
|
//# sourceMappingURL=Config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Config.d.ts","sourceRoot":"","sources":["../../src/Config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3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iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;OAEG;IACH,gBAAgB,CAAC,EAAE,8CAA8C,CAAA;CAClE,GAAG;IAAE,MAAM,EAAE,oCAAoC,CAAA;CAAE,CACrD,CAAA;AAED,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,8BAA8B,CAAC,CAAmD,CAAA;AAChK,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,8BAA8B,CAAC,CAAuF,CAAA;AACpM,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,8BAA8B,CAAC,CAAuF,CAAA"}
|
package/dist/neutral/Schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The schema used for the JSONPath Diviner.
|
|
3
3
|
*/
|
|
4
|
-
export declare const JsonPathAggregateDivinerSchema:
|
|
4
|
+
export declare const JsonPathAggregateDivinerSchema: 'network.xyo.diviner.jsonpath.aggregate' & {
|
|
5
5
|
readonly __schema: true;
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,8BAA8B
|
|
1
|
+
{"version":3,"file":"Schema.d.ts","sourceRoot":"","sources":["../../src/Schema.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,wCAAwC,GAAG;IACtF,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAA;CACmC,CAAA;AAE5D;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,OAAO,8BAA8B,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
// src/Config.ts
|
|
2
|
+
import {
|
|
3
|
+
zodAsFactory,
|
|
4
|
+
zodIsFactory,
|
|
5
|
+
zodToFactory
|
|
6
|
+
} from "@xylabs/sdk-js";
|
|
7
|
+
import { DivinerConfigZod } from "@xyo-network/diviner-model";
|
|
2
8
|
import { asSchema as asSchema2 } from "@xyo-network/sdk-protocol-js";
|
|
9
|
+
import * as z from "zod/mini";
|
|
3
10
|
|
|
4
11
|
// src/Schema.ts
|
|
5
12
|
import { asSchema } from "@xyo-network/sdk-protocol-js";
|
|
@@ -7,8 +14,21 @@ var JsonPathAggregateDivinerSchema = asSchema("network.xyo.diviner.jsonpath.aggr
|
|
|
7
14
|
|
|
8
15
|
// src/Config.ts
|
|
9
16
|
var JsonPathAggregateDivinerConfigSchema = asSchema2(`${JsonPathAggregateDivinerSchema}.config`, true);
|
|
17
|
+
var JsonPathAggregateDivinerConfigZod = z.extend(DivinerConfigZod, {
|
|
18
|
+
destinationSchema: z.optional(z.custom()),
|
|
19
|
+
excludeSources: z.optional(z.boolean()),
|
|
20
|
+
schema: z.literal(JsonPathAggregateDivinerConfigSchema),
|
|
21
|
+
schemaTransforms: z.optional(z.custom())
|
|
22
|
+
});
|
|
23
|
+
var isJsonPathAggregateDivinerConfig = zodIsFactory(JsonPathAggregateDivinerConfigZod);
|
|
24
|
+
var asJsonPathAggregateDivinerConfig = zodAsFactory(JsonPathAggregateDivinerConfigZod, "asJsonPathAggregateDivinerConfig");
|
|
25
|
+
var toJsonPathAggregateDivinerConfig = zodToFactory(JsonPathAggregateDivinerConfigZod, "toJsonPathAggregateDivinerConfig");
|
|
10
26
|
export {
|
|
11
27
|
JsonPathAggregateDivinerConfigSchema,
|
|
12
|
-
|
|
28
|
+
JsonPathAggregateDivinerConfigZod,
|
|
29
|
+
JsonPathAggregateDivinerSchema,
|
|
30
|
+
asJsonPathAggregateDivinerConfig,
|
|
31
|
+
isJsonPathAggregateDivinerConfig,
|
|
32
|
+
toJsonPathAggregateDivinerConfig
|
|
13
33
|
};
|
|
14
34
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Config.ts", "../../src/Schema.ts"],
|
|
4
|
-
"sourcesContent": ["import type { DivinerConfig } from '@xyo-network/diviner-model'\nimport type { Schema } from '@xyo-network/sdk-protocol-js'\nimport { asSchema } from '@xyo-network/sdk-protocol-js'\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 = 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 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", "import { asSchema } from '@xyo-network/sdk-protocol-js'\n\n/**\n * The schema used for the JSONPath Diviner.\n */\nexport const JsonPathAggregateDivinerSchema = 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
|
-
"mappings": ";
|
|
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 { 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-js'\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
|
+
"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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/diviner-jsonpath-aggregate-model",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -34,29 +34,27 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@xyo-network/diviner-model": "~
|
|
38
|
-
"@xyo-network/module-model": "~
|
|
37
|
+
"@xyo-network/diviner-model": "~7.0.0",
|
|
38
|
+
"@xyo-network/module-model": "~7.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@bitauth/libauth": "~3.0.0",
|
|
42
42
|
"@metamask/providers": "^22.1.1",
|
|
43
43
|
"@noble/post-quantum": "~0.6.1",
|
|
44
44
|
"@opentelemetry/api": "^1.9.1",
|
|
45
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
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.
|
|
49
|
-
"@xylabs/sdk-js": "^6.
|
|
50
|
-
"@xylabs/threads": "^6.
|
|
51
|
-
"@xylabs/toolchain": "
|
|
52
|
-
"@xylabs/tsconfig": "
|
|
53
|
-
"@xyo-network/sdk-protocol-js": "~
|
|
48
|
+
"@xylabs/geo": "^6.1.1",
|
|
49
|
+
"@xylabs/sdk-js": "^6.1.1",
|
|
50
|
+
"@xylabs/threads": "^6.1.1",
|
|
51
|
+
"@xylabs/toolchain": "^8.1.20",
|
|
52
|
+
"@xylabs/tsconfig": "^8.1.20",
|
|
53
|
+
"@xyo-network/sdk-protocol-js": "~7.0",
|
|
54
54
|
"ajv": "^8.20.0",
|
|
55
55
|
"async-mutex": "^0.5.0",
|
|
56
|
-
"bn.js": "^5.2.3",
|
|
57
|
-
"buffer": "^6.0.3",
|
|
58
56
|
"debug": "~4.4.3",
|
|
59
|
-
"eslint": "^10.
|
|
57
|
+
"eslint": "^10.5.0",
|
|
60
58
|
"ethers": "^6.16.0",
|
|
61
59
|
"hash-wasm": "~4.12.0",
|
|
62
60
|
"idb": "^8.0.3",
|
|
@@ -76,11 +74,9 @@
|
|
|
76
74
|
"@xylabs/geo": "^6.0",
|
|
77
75
|
"@xylabs/sdk-js": "^6.0",
|
|
78
76
|
"@xylabs/threads": "^6.0",
|
|
79
|
-
"@xyo-network/sdk-protocol-js": "
|
|
77
|
+
"@xyo-network/sdk-protocol-js": "^7.0",
|
|
80
78
|
"ajv": "^8.20",
|
|
81
79
|
"async-mutex": "^0.5",
|
|
82
|
-
"bn.js": "^5.2",
|
|
83
|
-
"buffer": "^6.0",
|
|
84
80
|
"debug": "~4.4",
|
|
85
81
|
"ethers": "^6.16",
|
|
86
82
|
"hash-wasm": "~4.12",
|
|
@@ -89,6 +85,9 @@
|
|
|
89
85
|
"webextension-polyfill": "^0.12",
|
|
90
86
|
"zod": "^4.4"
|
|
91
87
|
},
|
|
88
|
+
"engines": {
|
|
89
|
+
"node": "^24"
|
|
90
|
+
},
|
|
92
91
|
"publishConfig": {
|
|
93
92
|
"access": "public"
|
|
94
93
|
}
|