@valiron/sdk 0.3.0 → 0.5.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 +21 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +10 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +8 -9
package/README.md
CHANGED
|
@@ -29,10 +29,20 @@ if (route === 'prod') {
|
|
|
29
29
|
|
|
30
30
|
// Query a Monad agent — per-call override
|
|
31
31
|
const monadRoute = await valiron.checkAgent('8348', { chain: 'monad' });
|
|
32
|
+
// You can also target other supported chains:
|
|
33
|
+
const baseRoute = await valiron.checkAgent('8348', { chain: 'base' });
|
|
34
|
+
const arbRoute = await valiron.checkAgent('8348', { chain: 'arbitrum' });
|
|
35
|
+
const avaxRoute = await valiron.checkAgent('1719', { chain: 'avalanche' });
|
|
36
|
+
const celoRoute = await valiron.checkAgent('123', { chain: 'celo' });
|
|
32
37
|
|
|
33
38
|
// Or set the default chain at construction
|
|
34
39
|
const monadValiron = new ValironSDK({ chain: 'monad' });
|
|
35
40
|
const profile = await monadValiron.getAgentProfile('8348');
|
|
41
|
+
// or use base/arbitrum clients:
|
|
42
|
+
const baseValiron = new ValironSDK({ chain: 'base' });
|
|
43
|
+
const arbValiron = new ValironSDK({ chain: 'arbitrum' });
|
|
44
|
+
const avaxValiron = new ValironSDK({ chain: 'avalanche' });
|
|
45
|
+
const celoValiron = new ValironSDK({ chain: 'celo' });
|
|
36
46
|
console.log(profile.routing.finalRoute); // 'prod'
|
|
37
47
|
console.log(profile.localReputation?.tier); // 'AAA'
|
|
38
48
|
console.log(profile.onchainReputation.averageScore); // 92.5
|
|
@@ -80,7 +90,7 @@ new ValironSDK(config?: ValironConfig)
|
|
|
80
90
|
|--------|------|---------|-------------|
|
|
81
91
|
| `apiKey` | `string` | — | API key (reserved for future use) |
|
|
82
92
|
| `endpoint` | `string` | `https://valiron-edge-proxy.onrender.com` | API endpoint URL |
|
|
83
|
-
| `chain` | `'ethereum' \| 'monad'` | `undefined` (server default) | Default blockchain network for all calls |
|
|
93
|
+
| `chain` | `'ethereum' \| 'monad' \| 'arbitrum' \| 'base' \| 'avalanche' \| 'celo'` | `undefined` (server default) | Default blockchain network for all calls |
|
|
84
94
|
| `timeout` | `number` | `5000` | Request timeout (ms) |
|
|
85
95
|
| `debug` | `boolean` | `false` | Enable debug logging |
|
|
86
96
|
|
|
@@ -96,6 +106,12 @@ const route = await valiron.checkAgent('25459');
|
|
|
96
106
|
|
|
97
107
|
// With chain override
|
|
98
108
|
const monadRoute = await valiron.checkAgent('8348', { chain: 'monad' });
|
|
109
|
+
// Arbitrum or Base also supported
|
|
110
|
+
const baseRoute = await valiron.checkAgent('8348', { chain: 'base' });
|
|
111
|
+
const arbRoute = await valiron.checkAgent('8348', { chain: 'arbitrum' });
|
|
112
|
+
const avaxRoute = await valiron.checkAgent('1719', { chain: 'avalanche' });
|
|
113
|
+
const celoRoute = await valiron.checkAgent('123', { chain: 'celo' });
|
|
114
|
+
// general helper: `valiron.checkAgent('id', { chain: 'base' })` works
|
|
99
115
|
```
|
|
100
116
|
|
|
101
117
|
---
|
|
@@ -109,6 +125,9 @@ const profile = await valiron.getAgentProfile('25459');
|
|
|
109
125
|
|
|
110
126
|
// Query a Monad agent
|
|
111
127
|
const monadProfile = await valiron.getAgentProfile('8348', { chain: 'monad' });
|
|
128
|
+
// You can also query on Arbitrum or Base
|
|
129
|
+
const baseProfile = await valiron.getAgentProfile('8348', { chain: 'base' });
|
|
130
|
+
const arbProfile = await valiron.getAgentProfile('8348', { chain: 'arbitrum' });
|
|
112
131
|
```
|
|
113
132
|
|
|
114
133
|
**Response shape:**
|
|
@@ -205,7 +224,7 @@ const valiron3 = new ValironSDK({ chain: 'ethereum' });
|
|
|
205
224
|
await valiron3.getAgentProfile('8348', { chain: 'monad' }); // Monad override
|
|
206
225
|
```
|
|
207
226
|
|
|
208
|
-
**Supported chains:** `ethereum`, `monad`
|
|
227
|
+
**Supported chains:** `ethereum`, `monad`, `arbitrum`, `base`, `avalanche`, `celo`
|
|
209
228
|
|
|
210
229
|
All SDK methods accept an optional `CallOptions` object with a `chain` field.
|
|
211
230
|
|
package/dist/index.d.ts
CHANGED
|
@@ -11,12 +11,15 @@ import { ValironConfig, CallOptions, AgentProfile, WalletProfile, SandboxResult,
|
|
|
11
11
|
*
|
|
12
12
|
* // Or set a default chain at construction
|
|
13
13
|
* const monadValiron = new ValironSDK({ chain: 'monad' });
|
|
14
|
+
* const avaxValiron = new ValironSDK({ chain: 'avalanche' });
|
|
15
|
+
* const celoValiron = new ValironSDK({ chain: 'celo' });
|
|
14
16
|
*
|
|
15
17
|
* // Get full trust profile (identity + reputation + routing)
|
|
16
18
|
* const profile = await valiron.getAgentProfile('25459');
|
|
17
19
|
*
|
|
18
20
|
* // Override chain per-call
|
|
19
21
|
* const monadProfile = await valiron.getAgentProfile('8348', { chain: 'monad' });
|
|
22
|
+
* const avaxProfile = await valiron.getAgentProfile('1719', { chain: 'avalanche' });
|
|
20
23
|
*
|
|
21
24
|
* if (profile.routing.finalRoute === 'prod') {
|
|
22
25
|
* // Allow full production access
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAgB;gBAElB,MAAM,GAAE,aAAkB;IAItC;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC;IAIpF;;;;;;;;;;;;;;;;;;OAkBG;IACG,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAKhF;;;;;;;;;;;;;;;;OAgBG;IACG,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAIrF;;;;;;;;;;;;;;;;;;;OAmBG;IACG,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;CAGzF;AAGD,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -28,12 +28,15 @@ const clients_1 = require("./clients");
|
|
|
28
28
|
*
|
|
29
29
|
* // Or set a default chain at construction
|
|
30
30
|
* const monadValiron = new ValironSDK({ chain: 'monad' });
|
|
31
|
+
* const avaxValiron = new ValironSDK({ chain: 'avalanche' });
|
|
32
|
+
* const celoValiron = new ValironSDK({ chain: 'celo' });
|
|
31
33
|
*
|
|
32
34
|
* // Get full trust profile (identity + reputation + routing)
|
|
33
35
|
* const profile = await valiron.getAgentProfile('25459');
|
|
34
36
|
*
|
|
35
37
|
* // Override chain per-call
|
|
36
38
|
* const monadProfile = await valiron.getAgentProfile('8348', { chain: 'monad' });
|
|
39
|
+
* const avaxProfile = await valiron.getAgentProfile('1719', { chain: 'avalanche' });
|
|
37
40
|
*
|
|
38
41
|
* if (profile.routing.finalRoute === 'prod') {
|
|
39
42
|
* // Allow full production access
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAA0C;AAU1C
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,uCAA0C;AAU1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,UAAU;IAGrB,YAAY,SAAwB,EAAE;QACpC,IAAI,CAAC,MAAM,GAAG,IAAI,uBAAa,CAAC,MAAM,CAAC,CAAC;IAC1C,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CAAC,eAAe,CAAC,OAAe,EAAE,OAAqB;QAC1D,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,UAAU,CAAC,OAAe,EAAE,OAAqB;QACrD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACpE,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;IACpC,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,gBAAgB,CAAC,MAAc,EAAE,OAAqB;QAC1D,OAAO,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CAAC,kBAAkB,CAAC,OAAe,EAAE,OAAqB;QAC7D,OAAO,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AAxGD,gCAwGC;AAED,uBAAuB;AACvB,0CAAwB;AACxB,qCAA0C;AAAjC,wGAAA,aAAa,OAAA"}
|
package/dist/types.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Matches the actual edge-proxy /operator/* endpoints
|
|
6
6
|
*/
|
|
7
7
|
/** Blockchain networks supported by the Valiron Operator API. */
|
|
8
|
-
export type SupportedChain = "ethereum" | "monad";
|
|
8
|
+
export type SupportedChain = "ethereum" | "monad" | "arbitrum" | "base" | "avalanche" | "celo";
|
|
9
9
|
export type RouteDecision = "prod" | "prod_throttled" | "sandbox" | "sandbox_only";
|
|
10
10
|
export type RiskLevel = "GREEN" | "YELLOW" | "RED";
|
|
11
11
|
export type MoodysRating = "AAA" | "AA" | "A" | "BAA" | "BA" | "B" | "CAA" | "CA" | "C";
|
|
@@ -85,6 +85,12 @@ export interface RoutingExplanation {
|
|
|
85
85
|
reasons: string[];
|
|
86
86
|
signals: RoutingSignals;
|
|
87
87
|
}
|
|
88
|
+
export interface ChainContext {
|
|
89
|
+
network: SupportedChain;
|
|
90
|
+
rpcUrl: string;
|
|
91
|
+
identityRegistry: string;
|
|
92
|
+
reputationRegistry: string;
|
|
93
|
+
}
|
|
88
94
|
/**
|
|
89
95
|
* Response from `GET /operator/agent/:agentId`
|
|
90
96
|
*/
|
|
@@ -94,6 +100,7 @@ export interface AgentProfile {
|
|
|
94
100
|
onchainReputation: OnchainReputation;
|
|
95
101
|
localReputation: LocalReputation | null;
|
|
96
102
|
routing: RoutingExplanation;
|
|
103
|
+
chain: ChainContext;
|
|
97
104
|
timestamp: string;
|
|
98
105
|
}
|
|
99
106
|
/**
|
|
@@ -106,6 +113,7 @@ export interface WalletProfile {
|
|
|
106
113
|
onchainReputation: OnchainReputation | null;
|
|
107
114
|
localReputation: LocalReputation | null;
|
|
108
115
|
routing: RoutingExplanation;
|
|
116
|
+
chain: ChainContext;
|
|
109
117
|
timestamp: string;
|
|
110
118
|
}
|
|
111
119
|
export interface SandboxTestSummary {
|
|
@@ -128,6 +136,7 @@ export interface SandboxResult {
|
|
|
128
136
|
tier: MoodysRating;
|
|
129
137
|
riskLevel: RiskLevel;
|
|
130
138
|
testSummary: SandboxTestSummary;
|
|
139
|
+
chain: ChainContext;
|
|
131
140
|
message: string;
|
|
132
141
|
}
|
|
133
142
|
/** Options that can be passed to individual SDK method calls. */
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,iEAAiE;AACjE,MAAM,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,iEAAiE;AACjE,MAAM,MAAM,cAAc,GACtB,UAAU,GACV,OAAO,GACP,UAAU,GACV,MAAM,GACN,WAAW,GACX,MAAM,CAAC;AAEX,MAAM,MAAM,aAAa,GACrB,MAAM,GACN,gBAAgB,GAChB,SAAS,GACT,cAAc,CAAC;AAEnB,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEnD,MAAM,MAAM,YAAY,GACpB,KAAK,GACL,IAAI,GACJ,GAAG,GACH,KAAK,GACL,IAAI,GACJ,GAAG,GACH,KAAK,GACL,IAAI,GACJ,GAAG,CAAC;AAIR,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,+DAA+D;IAC/D,CAAC,GAAG,EAAE,MAAM,GA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F1B,OAAO,EAAE,MAAM,EACR,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,YAAA;CAK7B"}
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAuOH,+EAA+E;AAE/E,MAAa,YAAa,SAAQ,KAAK;IACrC,YACE,OAAe,EACR,IAAY,EACZ,UAAmB;QAE1B,KAAK,CAAC,OAAO,CAAC,CAAC;QAHR,SAAI,GAAJ,IAAI,CAAQ;QACZ,eAAU,GAAV,UAAU,CAAS;QAG1B,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;IAC7B,CAAC;CACF;AATD,oCASC"}
|
package/package.json
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiron/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Official TypeScript SDK for Valiron - Trust Layer for Agentic Economy",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=18.0.0"
|
|
9
9
|
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
12
|
-
"dev": "tsc --watch",
|
|
13
|
-
"test": "node test/validate.mjs && node test/validate-examples.mjs",
|
|
14
|
-
"prepublishOnly": "pnpm build"
|
|
15
|
-
},
|
|
16
10
|
"keywords": [
|
|
17
11
|
"valiron",
|
|
18
12
|
"ai-agents",
|
|
@@ -37,5 +31,10 @@
|
|
|
37
31
|
"files": [
|
|
38
32
|
"dist",
|
|
39
33
|
"README.md"
|
|
40
|
-
]
|
|
41
|
-
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "tsc",
|
|
37
|
+
"dev": "tsc --watch",
|
|
38
|
+
"test": "node test/validate.mjs && node test/validate-examples.mjs"
|
|
39
|
+
}
|
|
40
|
+
}
|