@xyo-network/node-system-info-payload-plugin 6.0.3 → 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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
[![logo][]](https://xyo.network)
|
|
2
|
+
|
|
1
3
|
# @xyo-network/node-system-info-payload-plugin
|
|
2
4
|
|
|
3
5
|
[![npm][npm-badge]][npm-link]
|
|
@@ -36,9 +38,12 @@ bun add {{name}}
|
|
|
36
38
|
|
|
37
39
|
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
38
40
|
|
|
41
|
+
## Credits
|
|
39
42
|
|
|
43
|
+
[Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)
|
|
40
44
|
|
|
41
45
|
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/node-system-info-payload-plugin.svg
|
|
42
46
|
[npm-link]: https://www.npmjs.com/package/@xyo-network/node-system-info-payload-plugin
|
|
43
47
|
[license-badge]: https://img.shields.io/npm/l/@xyo-network/node-system-info-payload-plugin.svg
|
|
44
48
|
[license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
|
|
49
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
@@ -1,7 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
export declare const NodeSystemInfoPayloadZod: z.ZodMiniObject<{
|
|
3
|
+
schema: z.ZodMiniLiteral<"network.xyo.system.info.node" & {
|
|
4
|
+
readonly __schema: true;
|
|
5
|
+
}>;
|
|
6
|
+
systeminfo: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnknown>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type NodeSystemInfoPayload = z.infer<typeof NodeSystemInfoPayloadZod>;
|
|
9
|
+
export declare const isNodeSystemInfoPayload: <T>(value: T) => value is T & {
|
|
10
|
+
schema: "network.xyo.system.info.node" & {
|
|
11
|
+
readonly __schema: true;
|
|
12
|
+
};
|
|
13
|
+
systeminfo?: Record<string, unknown> | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare const asNodeSystemInfoPayload: {
|
|
16
|
+
<T>(value: T): (T & {
|
|
17
|
+
schema: "network.xyo.system.info.node" & {
|
|
18
|
+
readonly __schema: true;
|
|
19
|
+
};
|
|
20
|
+
systeminfo?: Record<string, unknown> | undefined;
|
|
21
|
+
}) | undefined;
|
|
22
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
23
|
+
schema: "network.xyo.system.info.node" & {
|
|
24
|
+
readonly __schema: true;
|
|
25
|
+
};
|
|
26
|
+
systeminfo?: Record<string, unknown> | undefined;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export declare const toNodeSystemInfoPayload: {
|
|
30
|
+
<T>(value: T): (T & {
|
|
31
|
+
schema: "network.xyo.system.info.node" & {
|
|
32
|
+
readonly __schema: true;
|
|
33
|
+
};
|
|
34
|
+
systeminfo?: Record<string, unknown> | undefined;
|
|
35
|
+
}) | undefined;
|
|
36
|
+
<T>(value: T, assert: import("@xylabs/sdk-js").ZodFactoryConfig): T & {
|
|
37
|
+
schema: "network.xyo.system.info.node" & {
|
|
38
|
+
readonly __schema: true;
|
|
39
|
+
};
|
|
40
|
+
systeminfo?: Record<string, unknown> | undefined;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
7
43
|
//# sourceMappingURL=Payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Payload.d.ts","sourceRoot":"","sources":["../../src/Payload.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAI7B,eAAO,MAAM,wBAAwB;;;;;iBAAoH,CAAA;AAEzJ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE5E,eAAO,MAAM,uBAAuB;;;;;CAAyC,CAAA;AAC7E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAAoE,CAAA;AACxG,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;CAAoE,CAAA"}
|
package/dist/neutral/Plugin.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export declare const NodeSystemInfoPayloadPlugin: () => import("@xyo-network/sdk-js").PayloadPlugin<{
|
|
2
|
+
schema: "network.xyo.system.info.node" & {
|
|
3
|
+
readonly __schema: true;
|
|
4
|
+
};
|
|
5
|
+
systeminfo?: Record<string, unknown> | undefined;
|
|
6
|
+
}>;
|
|
3
7
|
//# sourceMappingURL=Plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Plugin.d.ts","sourceRoot":"","sources":["../../src/Plugin.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,2BAA2B;;;;;EAIpC,CAAA"}
|
package/dist/neutral/index.mjs
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
import {
|
|
1
|
+
// src/Payload.ts
|
|
2
|
+
import {
|
|
3
|
+
zodAsFactory,
|
|
4
|
+
zodIsFactory,
|
|
5
|
+
zodToFactory
|
|
6
|
+
} from "@xylabs/sdk-js";
|
|
7
|
+
import { PayloadZodOfSchema } from "@xyo-network/sdk-js";
|
|
8
|
+
import * as z from "zod/mini";
|
|
3
9
|
|
|
4
10
|
// src/Schema.ts
|
|
5
11
|
import { asSchema } from "@xyo-network/sdk-js";
|
|
6
12
|
var NodeSystemInfoSchema = asSchema("network.xyo.system.info.node", true);
|
|
7
13
|
|
|
14
|
+
// src/Payload.ts
|
|
15
|
+
var NodeSystemInfoPayloadZod = z.extend(PayloadZodOfSchema(NodeSystemInfoSchema), { systeminfo: z.optional(z.record(z.string(), z.unknown())) });
|
|
16
|
+
var isNodeSystemInfoPayload = zodIsFactory(NodeSystemInfoPayloadZod);
|
|
17
|
+
var asNodeSystemInfoPayload = zodAsFactory(NodeSystemInfoPayloadZod, "asNodeSystemInfoPayload");
|
|
18
|
+
var toNodeSystemInfoPayload = zodToFactory(NodeSystemInfoPayloadZod, "toNodeSystemInfoPayload");
|
|
19
|
+
|
|
20
|
+
// src/Plugin.ts
|
|
21
|
+
import { createPayloadPlugin } from "@xyo-network/sdk-js";
|
|
22
|
+
|
|
8
23
|
// src/Template.ts
|
|
9
24
|
var defaultSystemInfoConfig = () => {
|
|
10
25
|
return {
|
|
@@ -32,9 +47,13 @@ var NodeSystemInfoPayloadPlugin = () => createPayloadPlugin({
|
|
|
32
47
|
});
|
|
33
48
|
export {
|
|
34
49
|
NodeSystemInfoPayloadPlugin,
|
|
50
|
+
NodeSystemInfoPayloadZod,
|
|
35
51
|
NodeSystemInfoSchema,
|
|
52
|
+
asNodeSystemInfoPayload,
|
|
36
53
|
NodeSystemInfoPayloadPlugin as default,
|
|
37
54
|
defaultSystemInfoConfig,
|
|
38
|
-
|
|
55
|
+
isNodeSystemInfoPayload,
|
|
56
|
+
systemInfoNodeWitnessTemplate,
|
|
57
|
+
toNodeSystemInfoPayload
|
|
39
58
|
};
|
|
40
59
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": ";AAAA,SAAS,
|
|
3
|
+
"sources": ["../../src/Payload.ts", "../../src/Schema.ts", "../../src/Plugin.ts", "../../src/Template.ts"],
|
|
4
|
+
"sourcesContent": ["import {\n zodAsFactory, zodIsFactory, zodToFactory,\n} from '@xylabs/sdk-js'\nimport { PayloadZodOfSchema } from '@xyo-network/sdk-js'\nimport * as z from 'zod/mini'\n\nimport { NodeSystemInfoSchema } from './Schema.ts'\n\nexport const NodeSystemInfoPayloadZod = z.extend(PayloadZodOfSchema(NodeSystemInfoSchema), { systeminfo: z.optional(z.record(z.string(), z.unknown())) })\n\nexport type NodeSystemInfoPayload = z.infer<typeof NodeSystemInfoPayloadZod>\n\nexport const isNodeSystemInfoPayload = zodIsFactory(NodeSystemInfoPayloadZod)\nexport const asNodeSystemInfoPayload = zodAsFactory(NodeSystemInfoPayloadZod, 'asNodeSystemInfoPayload')\nexport const toNodeSystemInfoPayload = zodToFactory(NodeSystemInfoPayloadZod, 'toNodeSystemInfoPayload')\n", "import { asSchema } from '@xyo-network/sdk-js'\n\nexport type NodeSystemInfoSchema = typeof NodeSystemInfoSchema\nexport const NodeSystemInfoSchema = asSchema('network.xyo.system.info.node', true)\n", "import { createPayloadPlugin } from '@xyo-network/sdk-js'\n\nimport type { NodeSystemInfoPayload } from './Payload.ts'\nimport { NodeSystemInfoSchema } from './Schema.ts'\nimport { systemInfoNodeWitnessTemplate } from './Template.ts'\n\nexport const NodeSystemInfoPayloadPlugin = () =>\n createPayloadPlugin<NodeSystemInfoPayload>({\n schema: NodeSystemInfoSchema,\n template: systemInfoNodeWitnessTemplate,\n })\n", "import type { NodeSystemInfoPayload } from './Payload.ts'\nimport { NodeSystemInfoSchema } from './Schema.ts'\n\nconst defaultSystemInfoConfig = () => {\n return {\n audio: '*',\n battery: '*',\n bluetooth: '*',\n cpu: '*',\n diskLayout: '*',\n graphics: '*',\n mem: '*',\n networkInterfaces: '*',\n osInfo: '*',\n printer: '*',\n system: '*',\n usb: '*',\n wifiInterfaces: '*',\n }\n}\n\nconst systemInfoNodeWitnessTemplate = (): NodeSystemInfoPayload => ({ schema: NodeSystemInfoSchema })\n\nexport { defaultSystemInfoConfig, systemInfoNodeWitnessTemplate }\n"],
|
|
5
|
+
"mappings": ";AAAA;AAAA,EACE;AAAA,EAAc;AAAA,EAAc;AAAA,OACvB;AACP,SAAS,0BAA0B;AACnC,YAAY,OAAO;;;ACJnB,SAAS,gBAAgB;AAGlB,IAAM,uBAAuB,SAAS,gCAAgC,IAAI;;;ADK1E,IAAM,2BAA6B,SAAO,mBAAmB,oBAAoB,GAAG,EAAE,YAAc,WAAW,SAAS,SAAO,GAAK,UAAQ,CAAC,CAAC,EAAE,CAAC;AAIjJ,IAAM,0BAA0B,aAAa,wBAAwB;AACrE,IAAM,0BAA0B,aAAa,0BAA0B,yBAAyB;AAChG,IAAM,0BAA0B,aAAa,0BAA0B,yBAAyB;;;AEdvG,SAAS,2BAA2B;;;ACGpC,IAAM,0BAA0B,MAAM;AACpC,SAAO;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,IACT,WAAW;AAAA,IACX,KAAK;AAAA,IACL,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,KAAK;AAAA,IACL,mBAAmB;AAAA,IACnB,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,gBAAgB;AAAA,EAClB;AACF;AAEA,IAAM,gCAAgC,OAA8B,EAAE,QAAQ,qBAAqB;;;ADf5F,IAAM,8BAA8B,MACzC,oBAA2C;AAAA,EACzC,QAAQ;AAAA,EACR,UAAU;AACZ,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/node-system-info-payload-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Typescript/Javascript Plugins for XYO Platform",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -35,23 +35,21 @@
|
|
|
35
35
|
"@metamask/providers": "^22.1.1",
|
|
36
36
|
"@noble/post-quantum": "~0.6.1",
|
|
37
37
|
"@opentelemetry/api": "^1.9.1",
|
|
38
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
38
|
+
"@opentelemetry/sdk-trace-base": "^2.8.0",
|
|
39
39
|
"@scure/base": "^2.2.0",
|
|
40
40
|
"@scure/bip39": "~2.2.0",
|
|
41
|
-
"@xylabs/geo": "^6.
|
|
42
|
-
"@xylabs/sdk-js": "^6.
|
|
43
|
-
"@xylabs/threads": "^6.
|
|
44
|
-
"@xylabs/toolchain": "~8.
|
|
45
|
-
"@xylabs/tsconfig": "~8.
|
|
46
|
-
"@xylabs/vitest-extended": "
|
|
47
|
-
"@xyo-network/sdk-js": "^
|
|
48
|
-
"@xyo-network/sdk-protocol-js": "~
|
|
41
|
+
"@xylabs/geo": "^6.1.3",
|
|
42
|
+
"@xylabs/sdk-js": "^6.1.3",
|
|
43
|
+
"@xylabs/threads": "^6.1.3",
|
|
44
|
+
"@xylabs/toolchain": "~8.2.7",
|
|
45
|
+
"@xylabs/tsconfig": "~8.2.7",
|
|
46
|
+
"@xylabs/vitest-extended": "^6.1.3",
|
|
47
|
+
"@xyo-network/sdk-js": "^7.0.0",
|
|
48
|
+
"@xyo-network/sdk-protocol-js": "~7.0",
|
|
49
49
|
"ajv": "^8.20.0",
|
|
50
50
|
"async-mutex": "^0.5.0",
|
|
51
|
-
"bn.js": "^5.2.3",
|
|
52
|
-
"buffer": "^6.0.3",
|
|
53
51
|
"debug": "~4.4.3",
|
|
54
|
-
"eslint": "^10.
|
|
52
|
+
"eslint": "^10.5.0",
|
|
55
53
|
"ethers": "^6.16.0",
|
|
56
54
|
"hash-wasm": "^4.12.0",
|
|
57
55
|
"idb": "^8.0.3",
|
|
@@ -59,7 +57,7 @@
|
|
|
59
57
|
"observable-fns": "~0.6.1",
|
|
60
58
|
"typescript": "~6.0.3",
|
|
61
59
|
"vite": "^8.0.16",
|
|
62
|
-
"vitest": "^4.1.
|
|
60
|
+
"vitest": "^4.1.9",
|
|
63
61
|
"webextension-polyfill": "^0.12.0",
|
|
64
62
|
"zod": "^4.4.3"
|
|
65
63
|
},
|
|
@@ -74,12 +72,10 @@
|
|
|
74
72
|
"@xylabs/geo": "^6.0",
|
|
75
73
|
"@xylabs/sdk-js": "^6.0",
|
|
76
74
|
"@xylabs/threads": "^6.0",
|
|
77
|
-
"@xyo-network/sdk-js": "^
|
|
78
|
-
"@xyo-network/sdk-protocol-js": "~
|
|
75
|
+
"@xyo-network/sdk-js": "^7.0",
|
|
76
|
+
"@xyo-network/sdk-protocol-js": "~7.0",
|
|
79
77
|
"ajv": "^8.20",
|
|
80
78
|
"async-mutex": "^0.5",
|
|
81
|
-
"bn.js": "^5.2",
|
|
82
|
-
"buffer": "^6.0",
|
|
83
79
|
"debug": "~4.4",
|
|
84
80
|
"ethers": "^6.16",
|
|
85
81
|
"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
|
}
|