@neus/sdk 1.1.4 → 1.1.6
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 +11 -10
- package/cjs/client.cjs +100 -20
- package/cjs/index.cjs +100 -20
- package/cli/neus.mjs +106 -32
- package/client.js +105 -20
- package/package.json +147 -147
- package/types.d.ts +1154 -1011
- package/widgets/verify-gate/dist/ProofBadge.js +1 -1
- package/widgets/verify-gate/dist/VerifyGate.js +1 -1
package/package.json
CHANGED
|
@@ -1,147 +1,147 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@neus/sdk",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "NEUS makes trust portable across the internet — so people, apps, and AI agents can prove what is real before access, payout, or execution.",
|
|
5
|
-
"bin": {
|
|
6
|
-
"neus": "cli/neus.mjs"
|
|
7
|
-
},
|
|
8
|
-
"main": "index.js",
|
|
9
|
-
"type": "module",
|
|
10
|
-
"types": "types.d.ts",
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"types": "./types.d.ts",
|
|
14
|
-
"import": "./index.js",
|
|
15
|
-
"require": "./cjs/index.cjs"
|
|
16
|
-
},
|
|
17
|
-
"./client": {
|
|
18
|
-
"types": "./types.d.ts",
|
|
19
|
-
"import": "./client.js",
|
|
20
|
-
"require": "./cjs/client.cjs"
|
|
21
|
-
},
|
|
22
|
-
"./utils": {
|
|
23
|
-
"import": "./utils.js",
|
|
24
|
-
"require": "./cjs/utils.cjs"
|
|
25
|
-
},
|
|
26
|
-
"./errors": {
|
|
27
|
-
"import": "./errors.js",
|
|
28
|
-
"require": "./cjs/errors.cjs"
|
|
29
|
-
},
|
|
30
|
-
"./gates": {
|
|
31
|
-
"import": "./gates.js",
|
|
32
|
-
"require": "./cjs/gates.cjs"
|
|
33
|
-
},
|
|
34
|
-
"./mcp-hosts": {
|
|
35
|
-
"import": "./mcp-hosts.js",
|
|
36
|
-
"require": "./cjs/mcp-hosts.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./widgets": {
|
|
39
|
-
"types": "./types.d.ts",
|
|
40
|
-
"import": "./widgets/index.js",
|
|
41
|
-
"require": "./widgets.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./widgets/verify-gate": {
|
|
44
|
-
"types": "./types.d.ts",
|
|
45
|
-
"import": "./widgets/verify-gate/index.js",
|
|
46
|
-
"require": "./widgets.cjs"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"sideEffects": false,
|
|
50
|
-
"scripts": {
|
|
51
|
-
"test": "npm run build:cjs && vitest run",
|
|
52
|
-
"test:coverage": "vitest run --coverage",
|
|
53
|
-
"lint": "eslint . --ignore-pattern widgets/verify-gate/dist/**",
|
|
54
|
-
"format": "prettier --write \"**/*.js\"",
|
|
55
|
-
"build": "npm run build:widgets && npm run build:cjs",
|
|
56
|
-
"build:widgets": "npx esbuild widgets/verify-gate/VerifyGate.jsx widgets/verify-gate/ProofBadge.jsx --bundle --platform=browser --format=esm --outdir=widgets/verify-gate/dist --jsx=automatic --legal-comments=none --external:react --external:react-dom --external:react/jsx-runtime --external:@neus/sdk/client",
|
|
57
|
-
"build:cjs": "npx esbuild index.js client.js utils.js errors.js gates.js mcp-hosts.js --bundle --platform=node --format=cjs --outdir=cjs --out-extension:.js=.cjs --legal-comments=none --external:ethers --external:@zkpassport/sdk --external:react --external:react-dom --external:react/jsx-runtime",
|
|
58
|
-
"prepack": "npm run build",
|
|
59
|
-
"prepublishOnly": "npm run lint && npm test && npm run build"
|
|
60
|
-
},
|
|
61
|
-
"keywords": [
|
|
62
|
-
"neus",
|
|
63
|
-
"verification",
|
|
64
|
-
"cryptographic-proofs",
|
|
65
|
-
"identity",
|
|
66
|
-
"authentication",
|
|
67
|
-
"blockchain",
|
|
68
|
-
"cross-chain",
|
|
69
|
-
"web3",
|
|
70
|
-
"passwordless",
|
|
71
|
-
"universal-protocol",
|
|
72
|
-
"proof",
|
|
73
|
-
"ownership",
|
|
74
|
-
"sdk",
|
|
75
|
-
"mcp",
|
|
76
|
-
"model-context-protocol",
|
|
77
|
-
"oauth"
|
|
78
|
-
],
|
|
79
|
-
"author": "NEUS Network",
|
|
80
|
-
"license": "Apache-2.0",
|
|
81
|
-
"repository": {
|
|
82
|
-
"type": "git",
|
|
83
|
-
"url": "git+https://github.com/neus/network.git",
|
|
84
|
-
"directory": "sdk"
|
|
85
|
-
},
|
|
86
|
-
"bugs": {
|
|
87
|
-
"url": "https://github.com/neus/network/issues"
|
|
88
|
-
},
|
|
89
|
-
"homepage": "https://neus.network",
|
|
90
|
-
"publishConfig": {
|
|
91
|
-
"access": "public",
|
|
92
|
-
"registry": "https://registry.npmjs.org"
|
|
93
|
-
},
|
|
94
|
-
"engines": {
|
|
95
|
-
"node": ">=20.0.0"
|
|
96
|
-
},
|
|
97
|
-
"peerDependencies": {
|
|
98
|
-
"ethers": "^6.0.0",
|
|
99
|
-
"react": ">=17.0.0",
|
|
100
|
-
"react-dom": ">=17.0.0"
|
|
101
|
-
},
|
|
102
|
-
"peerDependenciesMeta": {
|
|
103
|
-
"@zkpassport/sdk": {
|
|
104
|
-
"optional": true
|
|
105
|
-
},
|
|
106
|
-
"react": {
|
|
107
|
-
"optional": true
|
|
108
|
-
},
|
|
109
|
-
"react-dom": {
|
|
110
|
-
"optional": true
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"optionalDependencies": {
|
|
114
|
-
"@zkpassport/sdk": "^0.14.0"
|
|
115
|
-
},
|
|
116
|
-
"dependencies": {
|
|
117
|
-
"bs58": "^6.0.0"
|
|
118
|
-
},
|
|
119
|
-
"devDependencies": {
|
|
120
|
-
"@vitest/coverage-v8": "^4.1.3",
|
|
121
|
-
"esbuild": "^0.28.0",
|
|
122
|
-
"eslint": "^8.56.0",
|
|
123
|
-
"eslint-plugin-react": "^7.37.2",
|
|
124
|
-
"prettier": "^3.2.0",
|
|
125
|
-
"vitest": "^4.1.3"
|
|
126
|
-
},
|
|
127
|
-
"files": [
|
|
128
|
-
"cli/neus.mjs",
|
|
129
|
-
"mcp-hosts.js",
|
|
130
|
-
"index.js",
|
|
131
|
-
"client.js",
|
|
132
|
-
"utils.js",
|
|
133
|
-
"errors.js",
|
|
134
|
-
"gates.js",
|
|
135
|
-
"sponsor.js",
|
|
136
|
-
"cjs/**",
|
|
137
|
-
"widgets.cjs",
|
|
138
|
-
"types.d.ts",
|
|
139
|
-
"README.md",
|
|
140
|
-
"SECURITY.md",
|
|
141
|
-
"LICENSE",
|
|
142
|
-
"widgets/index.js",
|
|
143
|
-
"widgets/verify-gate/index.js",
|
|
144
|
-
"widgets/verify-gate/dist/VerifyGate.js",
|
|
145
|
-
"widgets/verify-gate/dist/ProofBadge.js"
|
|
146
|
-
]
|
|
147
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@neus/sdk",
|
|
3
|
+
"version": "1.1.6",
|
|
4
|
+
"description": "NEUS makes trust portable across the internet — so people, apps, and AI agents can prove what is real before access, payout, or execution.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"neus": "cli/neus.mjs"
|
|
7
|
+
},
|
|
8
|
+
"main": "index.js",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"types": "types.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./types.d.ts",
|
|
14
|
+
"import": "./index.js",
|
|
15
|
+
"require": "./cjs/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./client": {
|
|
18
|
+
"types": "./types.d.ts",
|
|
19
|
+
"import": "./client.js",
|
|
20
|
+
"require": "./cjs/client.cjs"
|
|
21
|
+
},
|
|
22
|
+
"./utils": {
|
|
23
|
+
"import": "./utils.js",
|
|
24
|
+
"require": "./cjs/utils.cjs"
|
|
25
|
+
},
|
|
26
|
+
"./errors": {
|
|
27
|
+
"import": "./errors.js",
|
|
28
|
+
"require": "./cjs/errors.cjs"
|
|
29
|
+
},
|
|
30
|
+
"./gates": {
|
|
31
|
+
"import": "./gates.js",
|
|
32
|
+
"require": "./cjs/gates.cjs"
|
|
33
|
+
},
|
|
34
|
+
"./mcp-hosts": {
|
|
35
|
+
"import": "./mcp-hosts.js",
|
|
36
|
+
"require": "./cjs/mcp-hosts.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./widgets": {
|
|
39
|
+
"types": "./types.d.ts",
|
|
40
|
+
"import": "./widgets/index.js",
|
|
41
|
+
"require": "./widgets.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./widgets/verify-gate": {
|
|
44
|
+
"types": "./types.d.ts",
|
|
45
|
+
"import": "./widgets/verify-gate/index.js",
|
|
46
|
+
"require": "./widgets.cjs"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"sideEffects": false,
|
|
50
|
+
"scripts": {
|
|
51
|
+
"test": "npm run build:cjs && vitest run",
|
|
52
|
+
"test:coverage": "vitest run --coverage",
|
|
53
|
+
"lint": "eslint . --ignore-pattern widgets/verify-gate/dist/**",
|
|
54
|
+
"format": "prettier --write \"**/*.js\"",
|
|
55
|
+
"build": "npm run build:widgets && npm run build:cjs",
|
|
56
|
+
"build:widgets": "npx esbuild widgets/verify-gate/VerifyGate.jsx widgets/verify-gate/ProofBadge.jsx --bundle --platform=browser --format=esm --outdir=widgets/verify-gate/dist --jsx=automatic --legal-comments=none --external:react --external:react-dom --external:react/jsx-runtime --external:@neus/sdk/client",
|
|
57
|
+
"build:cjs": "npx esbuild index.js client.js utils.js errors.js gates.js mcp-hosts.js --bundle --platform=node --format=cjs --outdir=cjs --out-extension:.js=.cjs --legal-comments=none --external:ethers --external:@zkpassport/sdk --external:react --external:react-dom --external:react/jsx-runtime",
|
|
58
|
+
"prepack": "npm run build",
|
|
59
|
+
"prepublishOnly": "npm run lint && npm test && npm run build"
|
|
60
|
+
},
|
|
61
|
+
"keywords": [
|
|
62
|
+
"neus",
|
|
63
|
+
"verification",
|
|
64
|
+
"cryptographic-proofs",
|
|
65
|
+
"identity",
|
|
66
|
+
"authentication",
|
|
67
|
+
"blockchain",
|
|
68
|
+
"cross-chain",
|
|
69
|
+
"web3",
|
|
70
|
+
"passwordless",
|
|
71
|
+
"universal-protocol",
|
|
72
|
+
"proof",
|
|
73
|
+
"ownership",
|
|
74
|
+
"sdk",
|
|
75
|
+
"mcp",
|
|
76
|
+
"model-context-protocol",
|
|
77
|
+
"oauth"
|
|
78
|
+
],
|
|
79
|
+
"author": "NEUS Network",
|
|
80
|
+
"license": "Apache-2.0",
|
|
81
|
+
"repository": {
|
|
82
|
+
"type": "git",
|
|
83
|
+
"url": "git+https://github.com/neus/network.git",
|
|
84
|
+
"directory": "sdk"
|
|
85
|
+
},
|
|
86
|
+
"bugs": {
|
|
87
|
+
"url": "https://github.com/neus/network/issues"
|
|
88
|
+
},
|
|
89
|
+
"homepage": "https://neus.network",
|
|
90
|
+
"publishConfig": {
|
|
91
|
+
"access": "public",
|
|
92
|
+
"registry": "https://registry.npmjs.org"
|
|
93
|
+
},
|
|
94
|
+
"engines": {
|
|
95
|
+
"node": ">=20.0.0"
|
|
96
|
+
},
|
|
97
|
+
"peerDependencies": {
|
|
98
|
+
"ethers": "^6.0.0",
|
|
99
|
+
"react": ">=17.0.0",
|
|
100
|
+
"react-dom": ">=17.0.0"
|
|
101
|
+
},
|
|
102
|
+
"peerDependenciesMeta": {
|
|
103
|
+
"@zkpassport/sdk": {
|
|
104
|
+
"optional": true
|
|
105
|
+
},
|
|
106
|
+
"react": {
|
|
107
|
+
"optional": true
|
|
108
|
+
},
|
|
109
|
+
"react-dom": {
|
|
110
|
+
"optional": true
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"optionalDependencies": {
|
|
114
|
+
"@zkpassport/sdk": "^0.14.0"
|
|
115
|
+
},
|
|
116
|
+
"dependencies": {
|
|
117
|
+
"bs58": "^6.0.0"
|
|
118
|
+
},
|
|
119
|
+
"devDependencies": {
|
|
120
|
+
"@vitest/coverage-v8": "^4.1.3",
|
|
121
|
+
"esbuild": "^0.28.0",
|
|
122
|
+
"eslint": "^8.56.0",
|
|
123
|
+
"eslint-plugin-react": "^7.37.2",
|
|
124
|
+
"prettier": "^3.2.0",
|
|
125
|
+
"vitest": "^4.1.3"
|
|
126
|
+
},
|
|
127
|
+
"files": [
|
|
128
|
+
"cli/neus.mjs",
|
|
129
|
+
"mcp-hosts.js",
|
|
130
|
+
"index.js",
|
|
131
|
+
"client.js",
|
|
132
|
+
"utils.js",
|
|
133
|
+
"errors.js",
|
|
134
|
+
"gates.js",
|
|
135
|
+
"sponsor.js",
|
|
136
|
+
"cjs/**",
|
|
137
|
+
"widgets.cjs",
|
|
138
|
+
"types.d.ts",
|
|
139
|
+
"README.md",
|
|
140
|
+
"SECURITY.md",
|
|
141
|
+
"LICENSE",
|
|
142
|
+
"widgets/index.js",
|
|
143
|
+
"widgets/verify-gate/index.js",
|
|
144
|
+
"widgets/verify-gate/dist/VerifyGate.js",
|
|
145
|
+
"widgets/verify-gate/dist/ProofBadge.js"
|
|
146
|
+
]
|
|
147
|
+
}
|