@valiron/sdk 0.8.0 → 0.9.1
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 +174 -43
- package/dist/clients.d.ts +13 -2
- package/dist/clients.js +46 -5
- package/dist/index.d.ts +52 -2
- package/dist/index.js +56 -2
- package/dist/middleware.d.ts +49 -0
- package/dist/middleware.js +61 -0
- package/dist/telemetry.d.ts +4 -2
- package/dist/telemetry.js +24 -4
- package/dist/types.d.ts +35 -30
- package/dist/types.js +0 -1
- package/package.json +12 -2
- package/dist/clients.d.ts.map +0 -1
- package/dist/clients.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/telemetry.d.ts.map +0 -1
- package/dist/telemetry.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
package/README.md
CHANGED
|
@@ -61,19 +61,19 @@ console.log(profile.onchainReputation.averageScore); // 92.5
|
|
|
61
61
|
|
|
62
62
|
The SDK returns one of four routing decisions:
|
|
63
63
|
|
|
64
|
-
| Route | Meaning |
|
|
65
|
-
|
|
66
|
-
| `prod` | Full access |
|
|
67
|
-
| `prod_throttled` | Rate-limited access |
|
|
68
|
-
| `sandbox` | Agent under evaluation |
|
|
69
|
-
| `sandbox_only` | Access denied |
|
|
64
|
+
| Route | Meaning |
|
|
65
|
+
|-------|--------|
|
|
66
|
+
| `prod` | Full access |
|
|
67
|
+
| `prod_throttled` | Rate-limited access |
|
|
68
|
+
| `sandbox` | Agent under evaluation |
|
|
69
|
+
| `sandbox_only` | Access denied |
|
|
70
70
|
|
|
71
71
|
### Trust Evaluation
|
|
72
72
|
|
|
73
73
|
Valiron evaluates agents using:
|
|
74
74
|
|
|
75
75
|
1. **On-chain Reputation** — ERC-8004 feedback submitted by other organizations
|
|
76
|
-
2. **Behavioral Analysis** —
|
|
76
|
+
2. **Behavioral Analysis** — Proprietary sandbox evaluation of agent behavior
|
|
77
77
|
3. **Credit Rating** — Moody's-style scoring system (AAA to C)
|
|
78
78
|
|
|
79
79
|
### Architecture
|
|
@@ -163,15 +163,14 @@ const arbProfile = await valiron.getAgentProfile('8348', { chain: 'arbitrum' });
|
|
|
163
163
|
tier: MoodysRating,
|
|
164
164
|
riskLevel: 'GREEN' | 'YELLOW' | 'RED',
|
|
165
165
|
graduated: boolean,
|
|
166
|
-
metrics: BehavioralMetrics,
|
|
167
166
|
} | null,
|
|
168
167
|
routing: {
|
|
169
168
|
finalRoute: RouteDecision,
|
|
170
|
-
decision: string,
|
|
171
|
-
reasons: string[],
|
|
169
|
+
decision: string,
|
|
170
|
+
reasons: string[],
|
|
172
171
|
signals: {
|
|
173
|
-
onchain: { feedbackCount, averageScore,
|
|
174
|
-
local: { exists, graduated, tier, riskLevel
|
|
172
|
+
onchain: { feedbackCount, averageScore, meetsThreshold },
|
|
173
|
+
local: { exists, graduated, tier, riskLevel },
|
|
175
174
|
},
|
|
176
175
|
},
|
|
177
176
|
timestamp: string,
|
|
@@ -203,13 +202,113 @@ const result = await valiron.triggerSandboxTest('25459');
|
|
|
203
202
|
console.log(result.valironScore); // 95
|
|
204
203
|
console.log(result.tier); // 'AAA'
|
|
205
204
|
console.log(result.riskLevel); // 'GREEN'
|
|
206
|
-
console.log(result.mode); // 'endpoint-probe' | 'sandbox-relay'
|
|
207
|
-
console.log(result.testSummary);
|
|
208
|
-
// { totalRequests, successCount, rateLimitCount, errorCount, avgLatencyMs }
|
|
209
205
|
```
|
|
210
206
|
|
|
211
207
|
---
|
|
212
208
|
|
|
209
|
+
### `gate(agentId, options?): Promise<GateResult>`
|
|
210
|
+
|
|
211
|
+
Trust gate — single call combining on-chain reputation + sandbox tests. Designed to sit in front of payment protocols (x402 etc.). Always computes a combined Valiron score and returns an allow/deny decision. Cached sandbox results are reused within the TTL window.
|
|
212
|
+
|
|
213
|
+
```typescript
|
|
214
|
+
const result = await valiron.gate('25459');
|
|
215
|
+
console.log(result.allow); // true
|
|
216
|
+
console.log(result.score); // 95
|
|
217
|
+
console.log(result.tier); // 'AAA'
|
|
218
|
+
console.log(result.riskLevel); // 'GREEN'
|
|
219
|
+
console.log(result.sandboxRan); // true (first call) / false (cached)
|
|
220
|
+
|
|
221
|
+
// Custom threshold + TTL
|
|
222
|
+
const result2 = await valiron.gate('8348', {
|
|
223
|
+
minScore: 85, // require A tier or above
|
|
224
|
+
ttlMs: 3600_000, // re-test every hour
|
|
225
|
+
chain: 'monad', // chain override
|
|
226
|
+
});
|
|
227
|
+
|
|
228
|
+
if (result2.allow) {
|
|
229
|
+
// proceed to payment
|
|
230
|
+
}
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
| Option | Type | Default | Description |
|
|
234
|
+
|--------|------|---------|-------------|
|
|
235
|
+
| `minScore` | `number` | `65` | Minimum score to allow (0–110) |
|
|
236
|
+
| `ttlMs` | `number` | `86400000` | Cache TTL for sandbox results (ms) |
|
|
237
|
+
| `chain` | `SupportedChain` | constructor default | Blockchain network override |
|
|
238
|
+
|
|
239
|
+
**Response shape:**
|
|
240
|
+
|
|
241
|
+
```typescript
|
|
242
|
+
{
|
|
243
|
+
allow: boolean, // allow or deny
|
|
244
|
+
score: number, // combined Valiron score
|
|
245
|
+
tier: MoodysRating, // 'AAA' | 'AA' | ... | 'C'
|
|
246
|
+
riskLevel: RiskLevel, // 'GREEN' | 'YELLOW' | 'RED'
|
|
247
|
+
route: RouteDecision, // 'prod' | 'prod_throttled' | 'sandbox' | 'sandbox_only'
|
|
248
|
+
agentId: string,
|
|
249
|
+
wallet: string,
|
|
250
|
+
sandboxRan: boolean, // whether sandbox was freshly executed
|
|
251
|
+
cached: boolean, // whether cached metrics were reused
|
|
252
|
+
}
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
> **`gate()` vs `checkAgent()`:** `checkAgent()` returns a route decision based on existing data. `gate()` actively runs sandbox tests (if stale/missing), computes a combined score, and returns a binary allow/deny decision — ideal for protecting payment endpoints.
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
259
|
+
### `createValironGate(config): Middleware`
|
|
260
|
+
|
|
261
|
+
Express-compatible middleware factory that wraps `gate()`. Drop it in front of your routes and it handles agent extraction, trust gating, and error responses automatically.
|
|
262
|
+
|
|
263
|
+
```typescript
|
|
264
|
+
import { ValironSDK, createValironGate } from '@valiron/sdk';
|
|
265
|
+
|
|
266
|
+
const valiron = new ValironSDK({ chain: 'monad' });
|
|
267
|
+
|
|
268
|
+
// Basic — uses x-agent-id header, minScore 65, 24h TTL
|
|
269
|
+
app.use('/api/paid', createValironGate({ sdk: valiron }));
|
|
270
|
+
|
|
271
|
+
// Custom threshold and TTL
|
|
272
|
+
app.use('/api/premium', createValironGate({
|
|
273
|
+
sdk: valiron,
|
|
274
|
+
minScore: 85,
|
|
275
|
+
ttlMs: 3600_000,
|
|
276
|
+
}));
|
|
277
|
+
|
|
278
|
+
// Custom agent ID extraction + hooks
|
|
279
|
+
app.use('/api/custom', createValironGate({
|
|
280
|
+
sdk: valiron,
|
|
281
|
+
extractAgentId: (req) => req.query.agent_id as string,
|
|
282
|
+
onAllow: (req, result) => {
|
|
283
|
+
console.log(`Allowed agent ${result.agentId} (score: ${result.score})`);
|
|
284
|
+
},
|
|
285
|
+
onDeny: (req, res, result) => {
|
|
286
|
+
res.status(403).json({
|
|
287
|
+
error: 'Insufficient trust score',
|
|
288
|
+
requiredTier: 'A',
|
|
289
|
+
currentTier: result.tier,
|
|
290
|
+
});
|
|
291
|
+
},
|
|
292
|
+
}));
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
| Option | Type | Default | Description |
|
|
296
|
+
|--------|------|---------|-------------|
|
|
297
|
+
| `sdk` | `ValironSDK` | *required* | Configured SDK instance |
|
|
298
|
+
| `extractAgentId` | `(req) => string \| null` | `req.headers['x-agent-id']` | How to get the agent ID |
|
|
299
|
+
| `minScore` | `number` | `65` | Minimum score to allow |
|
|
300
|
+
| `ttlMs` | `number` | `86400000` | Sandbox cache TTL (ms) |
|
|
301
|
+
| `onDeny` | `(req, res, result) => void` | 403 JSON response | Custom deny handler |
|
|
302
|
+
| `onAllow` | `(req, result) => void` | — | Hook after allow, before next() |
|
|
303
|
+
|
|
304
|
+
**Behavior:**
|
|
305
|
+
- On **allow**: sets `req.valiron` to the `GateResult` and calls `next()`
|
|
306
|
+
- On **deny**: returns 403 (or delegates to `onDeny`)
|
|
307
|
+
- On **missing agent ID**: returns 401
|
|
308
|
+
- On **error**: returns 503 (fail-closed)
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
213
312
|
## Multichain Support
|
|
214
313
|
|
|
215
314
|
Valiron supports multiple blockchain networks. Set the chain globally or per-call:
|
|
@@ -234,19 +333,30 @@ await valiron3.getAgentProfile('8348', { chain: 'monad' }); // Monad override
|
|
|
234
333
|
|
|
235
334
|
All SDK methods accept an optional `CallOptions` object with a `chain` field.
|
|
236
335
|
|
|
237
|
-
## Telemetry
|
|
336
|
+
## Telemetry
|
|
337
|
+
|
|
338
|
+
Valiron SDK collects anonymous usage telemetry by default (opt-out) to help track adoption, usage, route outcomes, and stability. No personally identifiable information is collected; geo data is derived server-side from the request IP (coarse country/region only).
|
|
238
339
|
|
|
239
|
-
|
|
340
|
+
To **disable** telemetry:
|
|
341
|
+
|
|
342
|
+
```ts
|
|
343
|
+
const valiron = new ValironSDK({
|
|
344
|
+
telemetry: {
|
|
345
|
+
enabled: false,
|
|
346
|
+
},
|
|
347
|
+
});
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
You can also customise the telemetry behaviour:
|
|
240
351
|
|
|
241
352
|
```ts
|
|
242
353
|
const valiron = new ValironSDK({
|
|
243
354
|
telemetry: {
|
|
244
|
-
enabled: true,
|
|
245
355
|
appId: "my-app",
|
|
246
356
|
workspaceId: "ws_123",
|
|
247
357
|
env: "prod",
|
|
248
358
|
// Optional: custom ingest endpoint (defaults to `${endpoint}/telemetry/sdk`)
|
|
249
|
-
//
|
|
359
|
+
// endpoint: "https://my-collector.example.com/events",
|
|
250
360
|
},
|
|
251
361
|
});
|
|
252
362
|
```
|
|
@@ -319,39 +429,57 @@ export const config = { matcher: '/api/protected/:path*' };
|
|
|
319
429
|
|
|
320
430
|
### x402 Payment Integration
|
|
321
431
|
|
|
322
|
-
Valiron integrates with x402 payment-gated APIs (e.g., [Orthogonal](https://www.orth.sh/)).
|
|
432
|
+
Valiron integrates with x402 payment-gated APIs (e.g., [Orthogonal](https://www.orth.sh/)). Use `createValironGate()` to verify trust before processing payments:
|
|
323
433
|
|
|
324
434
|
```typescript
|
|
325
|
-
|
|
435
|
+
import express from 'express';
|
|
436
|
+
import { ValironSDK, createValironGate } from '@valiron/sdk';
|
|
326
437
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
438
|
+
const app = express();
|
|
439
|
+
const valiron = new ValironSDK({ chain: 'monad' });
|
|
440
|
+
|
|
441
|
+
// Trust gate sits in front of x402 payment flow
|
|
442
|
+
const trustGate = createValironGate({
|
|
443
|
+
sdk: valiron,
|
|
444
|
+
minScore: 65,
|
|
445
|
+
ttlMs: 24 * 60 * 60_000, // 24h
|
|
446
|
+
});
|
|
330
447
|
|
|
331
|
-
//
|
|
332
|
-
|
|
333
|
-
const
|
|
334
|
-
|
|
448
|
+
// Payment handler runs AFTER trust gate passes
|
|
449
|
+
async function x402PaymentCheck(req: any, res: any, next: any) {
|
|
450
|
+
const paymentValid = await verifyPayment(req.headers['x-payment']);
|
|
451
|
+
if (!paymentValid) {
|
|
452
|
+
// Trust-based pricing — better agents pay less
|
|
453
|
+
const tier = req.valiron?.tier || 'B';
|
|
454
|
+
const pricing: Record<string, number> = {
|
|
455
|
+
AAA: 5, AA: 5, A: 8, BAA: 10, BA: 25, B: 50,
|
|
456
|
+
};
|
|
457
|
+
return res.status(402).json({
|
|
458
|
+
accepts: [{ scheme: 'exact', maxAmountRequired: pricing[tier] || 50, payTo: '0x…' }],
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
next();
|
|
462
|
+
}
|
|
335
463
|
|
|
336
|
-
//
|
|
337
|
-
|
|
338
|
-
|
|
464
|
+
// Flow: Trust Gate → x402 Payment → Handler
|
|
465
|
+
app.get('/api/premium/data', trustGate, x402PaymentCheck, (req, res) => {
|
|
466
|
+
res.json({ data: 'Premium content', tier: (req as any).valiron.tier });
|
|
339
467
|
});
|
|
340
468
|
```
|
|
341
469
|
|
|
342
470
|
## Moody's Credit Rating Tiers
|
|
343
471
|
|
|
344
|
-
| Tier |
|
|
345
|
-
|
|
346
|
-
| AAA |
|
|
347
|
-
| AA |
|
|
348
|
-
| A |
|
|
349
|
-
| BAA |
|
|
350
|
-
| BA |
|
|
351
|
-
| B |
|
|
352
|
-
| CAA |
|
|
353
|
-
| CA |
|
|
354
|
-
| C |
|
|
472
|
+
| Tier | Risk | Access Level |
|
|
473
|
+
|------|------|--------------|
|
|
474
|
+
| AAA | Prime | Full production |
|
|
475
|
+
| AA | High grade | Full production |
|
|
476
|
+
| A | Upper medium | Full production |
|
|
477
|
+
| BAA | Medium | Full production (monitored) |
|
|
478
|
+
| BA | Speculative | Throttled |
|
|
479
|
+
| B | Highly speculative | Throttled |
|
|
480
|
+
| CAA | Substantial risk | Sandbox only |
|
|
481
|
+
| CA | Extremely speculative | Sandbox only |
|
|
482
|
+
| C | Default risk | Sandbox only |
|
|
355
483
|
|
|
356
484
|
## TypeScript Types
|
|
357
485
|
|
|
@@ -368,14 +496,17 @@ import {
|
|
|
368
496
|
AgentProfile,
|
|
369
497
|
WalletProfile,
|
|
370
498
|
SandboxResult,
|
|
499
|
+
GateResult,
|
|
500
|
+
GateOptions,
|
|
371
501
|
AgentIdentity,
|
|
372
502
|
OnchainReputation,
|
|
373
503
|
LocalReputation,
|
|
374
504
|
RoutingExplanation,
|
|
375
|
-
BehavioralMetrics,
|
|
376
505
|
FeedbackEntry,
|
|
377
506
|
ValironError,
|
|
378
507
|
ValironClient,
|
|
508
|
+
createValironGate,
|
|
509
|
+
ValironGateConfig,
|
|
379
510
|
} from '@valiron/sdk';
|
|
380
511
|
```
|
|
381
512
|
|
package/dist/clients.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValironConfig, AgentProfile, WalletProfile, SandboxResult, CallOptions } from "./types";
|
|
1
|
+
import { ValironConfig, AgentProfile, WalletProfile, SandboxResult, GateResult, GateOptions, CallOptions } from "./types";
|
|
2
2
|
/**
|
|
3
3
|
* HTTP client for the Valiron Operator API.
|
|
4
4
|
*
|
|
@@ -40,9 +40,20 @@ export declare class ValironClient {
|
|
|
40
40
|
* `POST /operator/trigger-sandbox/:agentId`
|
|
41
41
|
*/
|
|
42
42
|
triggerSandboxTest(agentId: string, options?: CallOptions): Promise<SandboxResult>;
|
|
43
|
+
/**
|
|
44
|
+
* Trust gate — single call combining on-chain reputation + sandbox tests.
|
|
45
|
+
*
|
|
46
|
+
* Designed to sit in front of payment protocols (x402 etc.). Always
|
|
47
|
+
* computes a combined Valiron score and returns an allow/deny decision.
|
|
48
|
+
* Cached sandbox results are reused within the TTL window.
|
|
49
|
+
*
|
|
50
|
+
* `POST /operator/gate/:agentId`
|
|
51
|
+
*/
|
|
52
|
+
gate(agentId: string, options?: GateOptions): Promise<GateResult>;
|
|
53
|
+
/** Flush any pending telemetry events and clean up resources. */
|
|
54
|
+
dispose(): Promise<void>;
|
|
43
55
|
private buildHeaders;
|
|
44
56
|
private get;
|
|
45
57
|
private post;
|
|
46
58
|
private extractMethodName;
|
|
47
59
|
}
|
|
48
|
-
//# sourceMappingURL=clients.d.ts.map
|
package/dist/clients.js
CHANGED
|
@@ -35,6 +35,11 @@ class ValironClient {
|
|
|
35
35
|
async getAgentProfile(agentId, options) {
|
|
36
36
|
const chain = this.resolveChain(options);
|
|
37
37
|
const profile = await this.get(`/operator/agent/${agentId}`, chain);
|
|
38
|
+
// Strip internal fields that the API returns but SDK consumers should not see
|
|
39
|
+
if (profile?.localReputation) {
|
|
40
|
+
delete profile.localReputation.metrics;
|
|
41
|
+
delete profile.localReputation.ipfsCid;
|
|
42
|
+
}
|
|
38
43
|
const totalFeedback = Number(profile?.onchainReputation?.totalFeedback || 0);
|
|
39
44
|
const avgScore = Number(profile?.onchainReputation?.averageScore || 0);
|
|
40
45
|
const feedbackBucket = totalFeedback === 0 ? "0" : totalFeedback <= 5 ? "1-5" : totalFeedback <= 20 ? "6-20" : "20+";
|
|
@@ -55,7 +60,13 @@ class ValironClient {
|
|
|
55
60
|
* `GET /operator/wallet/:wallet`
|
|
56
61
|
*/
|
|
57
62
|
async getWalletProfile(wallet, options) {
|
|
58
|
-
|
|
63
|
+
const profile = await this.get(`/operator/wallet/${wallet}`, this.resolveChain(options));
|
|
64
|
+
// Strip internal fields from local reputation
|
|
65
|
+
if (profile?.localReputation) {
|
|
66
|
+
delete profile.localReputation.metrics;
|
|
67
|
+
delete profile.localReputation.ipfsCid;
|
|
68
|
+
}
|
|
69
|
+
return profile;
|
|
59
70
|
}
|
|
60
71
|
/**
|
|
61
72
|
* Trigger real sandbox testing for an agent.
|
|
@@ -67,7 +78,32 @@ class ValironClient {
|
|
|
67
78
|
* `POST /operator/trigger-sandbox/:agentId`
|
|
68
79
|
*/
|
|
69
80
|
async triggerSandboxTest(agentId, options) {
|
|
70
|
-
|
|
81
|
+
const result = await this.post(`/operator/trigger-sandbox/${agentId}`, undefined, this.resolveChain(options));
|
|
82
|
+
// Strip internal behavioral metrics and execution details from sandbox response
|
|
83
|
+
delete result.metrics;
|
|
84
|
+
delete result.testSummary;
|
|
85
|
+
delete result.mode;
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Trust gate — single call combining on-chain reputation + sandbox tests.
|
|
90
|
+
*
|
|
91
|
+
* Designed to sit in front of payment protocols (x402 etc.). Always
|
|
92
|
+
* computes a combined Valiron score and returns an allow/deny decision.
|
|
93
|
+
* Cached sandbox results are reused within the TTL window.
|
|
94
|
+
*
|
|
95
|
+
* `POST /operator/gate/:agentId`
|
|
96
|
+
*/
|
|
97
|
+
async gate(agentId, options) {
|
|
98
|
+
const { chain, ...body } = options || {};
|
|
99
|
+
const result = await this.post(`/operator/gate/${agentId}`, Object.keys(body).length > 0 ? body : undefined, chain ?? this.defaultChain);
|
|
100
|
+
// Strip detailed scoring reasons — SDK consumers get allow/deny + tier only
|
|
101
|
+
delete result.reasons;
|
|
102
|
+
return result;
|
|
103
|
+
}
|
|
104
|
+
/** Flush any pending telemetry events and clean up resources. */
|
|
105
|
+
async dispose() {
|
|
106
|
+
await this.telemetry.dispose();
|
|
71
107
|
}
|
|
72
108
|
// ─── HTTP helpers ───────────────────────────────────────────────────────
|
|
73
109
|
buildHeaders() {
|
|
@@ -177,10 +213,14 @@ class ValironClient {
|
|
|
177
213
|
const timeoutId = setTimeout(() => controller.abort(), this.timeout);
|
|
178
214
|
const start = Date.now();
|
|
179
215
|
try {
|
|
216
|
+
const headers = this.buildHeaders();
|
|
217
|
+
const hasBody = body !== undefined && body !== null;
|
|
218
|
+
if (!hasBody)
|
|
219
|
+
delete headers["Content-Type"];
|
|
180
220
|
const response = await fetch(url.toString(), {
|
|
181
221
|
method: "POST",
|
|
182
|
-
headers
|
|
183
|
-
body:
|
|
222
|
+
headers,
|
|
223
|
+
body: hasBody ? JSON.stringify(body) : undefined,
|
|
184
224
|
signal: controller.signal,
|
|
185
225
|
});
|
|
186
226
|
clearTimeout(timeoutId);
|
|
@@ -261,8 +301,9 @@ class ValironClient {
|
|
|
261
301
|
return "getWalletProfile";
|
|
262
302
|
if (path.startsWith("/operator/trigger-sandbox/"))
|
|
263
303
|
return "triggerSandboxTest";
|
|
304
|
+
if (path.startsWith("/operator/gate/"))
|
|
305
|
+
return "gate";
|
|
264
306
|
return "unknown";
|
|
265
307
|
}
|
|
266
308
|
}
|
|
267
309
|
exports.ValironClient = ValironClient;
|
|
268
|
-
//# sourceMappingURL=clients.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValironConfig, CallOptions, AgentProfile, WalletProfile, SandboxResult, RouteDecision } from "./types";
|
|
1
|
+
import { ValironConfig, CallOptions, AgentProfile, WalletProfile, SandboxResult, GateResult, GateOptions, RouteDecision } from "./types";
|
|
2
2
|
/**
|
|
3
3
|
* Valiron SDK – Official TypeScript SDK for the Trust Layer for Agentic Economy
|
|
4
4
|
*
|
|
@@ -118,7 +118,57 @@ export declare class ValironSDK {
|
|
|
118
118
|
* ```
|
|
119
119
|
*/
|
|
120
120
|
triggerSandboxTest(agentId: string, options?: CallOptions): Promise<SandboxResult>;
|
|
121
|
+
/**
|
|
122
|
+
* Trust gate — checks an agent by combining on-chain reputation with
|
|
123
|
+
* sandbox behavioral tests and returns a single allow/deny decision.
|
|
124
|
+
*
|
|
125
|
+
* Designed to sit in front of payment protocols like x402. Every call
|
|
126
|
+
* computes a combined Valiron score. Cached sandbox results are reused
|
|
127
|
+
* within the TTL window; stale or missing data triggers fresh tests.
|
|
128
|
+
*
|
|
129
|
+
* @param agentId - The ERC-8004 agent ID
|
|
130
|
+
* @param options - Optional gate-specific overrides
|
|
131
|
+
* @returns Gate decision with score, tier, and reasons
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```typescript
|
|
135
|
+
* const result = await valiron.gate('25459');
|
|
136
|
+
* if (result.allow) {
|
|
137
|
+
* // proceed to x402 payment
|
|
138
|
+
* } else {
|
|
139
|
+
* // block agent — reasons in result.reasons
|
|
140
|
+
* }
|
|
141
|
+
*
|
|
142
|
+
* // Custom threshold & TTL
|
|
143
|
+
* const result = await valiron.gate('8348', {
|
|
144
|
+
* minScore: 75,
|
|
145
|
+
* ttlMs: 3600000, // 1 hour
|
|
146
|
+
* chain: 'monad',
|
|
147
|
+
* });
|
|
148
|
+
* ```
|
|
149
|
+
*/
|
|
150
|
+
gate(agentId: string, options?: GateOptions): Promise<GateResult>;
|
|
151
|
+
/**
|
|
152
|
+
* Flush any pending telemetry events and release resources.
|
|
153
|
+
*
|
|
154
|
+
* Call this when you are done using the SDK in long-running processes
|
|
155
|
+
* to ensure all queued telemetry is sent before shutdown. In short-lived
|
|
156
|
+
* scripts the SDK flushes automatically on process exit; calling dispose
|
|
157
|
+
* is optional but recommended for deterministic cleanup.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* const valiron = new ValironSDK();
|
|
162
|
+
* try {
|
|
163
|
+
* const profile = await valiron.getAgentProfile('25459');
|
|
164
|
+
* } finally {
|
|
165
|
+
* await valiron.dispose();
|
|
166
|
+
* }
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
dispose(): Promise<void>;
|
|
121
170
|
}
|
|
122
171
|
export * from "./types";
|
|
123
172
|
export { ValironClient } from "./clients";
|
|
124
|
-
|
|
173
|
+
export { createValironGate } from "./middleware";
|
|
174
|
+
export type { ValironGateConfig } from "./middleware";
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ValironClient = exports.ValironSDK = void 0;
|
|
17
|
+
exports.createValironGate = exports.ValironClient = exports.ValironSDK = void 0;
|
|
18
18
|
const clients_1 = require("./clients");
|
|
19
19
|
/**
|
|
20
20
|
* Valiron SDK – Official TypeScript SDK for the Trust Layer for Agentic Economy
|
|
@@ -145,10 +145,64 @@ class ValironSDK {
|
|
|
145
145
|
async triggerSandboxTest(agentId, options) {
|
|
146
146
|
return this.client.triggerSandboxTest(agentId, options);
|
|
147
147
|
}
|
|
148
|
+
/**
|
|
149
|
+
* Trust gate — checks an agent by combining on-chain reputation with
|
|
150
|
+
* sandbox behavioral tests and returns a single allow/deny decision.
|
|
151
|
+
*
|
|
152
|
+
* Designed to sit in front of payment protocols like x402. Every call
|
|
153
|
+
* computes a combined Valiron score. Cached sandbox results are reused
|
|
154
|
+
* within the TTL window; stale or missing data triggers fresh tests.
|
|
155
|
+
*
|
|
156
|
+
* @param agentId - The ERC-8004 agent ID
|
|
157
|
+
* @param options - Optional gate-specific overrides
|
|
158
|
+
* @returns Gate decision with score, tier, and reasons
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* ```typescript
|
|
162
|
+
* const result = await valiron.gate('25459');
|
|
163
|
+
* if (result.allow) {
|
|
164
|
+
* // proceed to x402 payment
|
|
165
|
+
* } else {
|
|
166
|
+
* // block agent — reasons in result.reasons
|
|
167
|
+
* }
|
|
168
|
+
*
|
|
169
|
+
* // Custom threshold & TTL
|
|
170
|
+
* const result = await valiron.gate('8348', {
|
|
171
|
+
* minScore: 75,
|
|
172
|
+
* ttlMs: 3600000, // 1 hour
|
|
173
|
+
* chain: 'monad',
|
|
174
|
+
* });
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
177
|
+
async gate(agentId, options) {
|
|
178
|
+
return this.client.gate(agentId, options);
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Flush any pending telemetry events and release resources.
|
|
182
|
+
*
|
|
183
|
+
* Call this when you are done using the SDK in long-running processes
|
|
184
|
+
* to ensure all queued telemetry is sent before shutdown. In short-lived
|
|
185
|
+
* scripts the SDK flushes automatically on process exit; calling dispose
|
|
186
|
+
* is optional but recommended for deterministic cleanup.
|
|
187
|
+
*
|
|
188
|
+
* @example
|
|
189
|
+
* ```typescript
|
|
190
|
+
* const valiron = new ValironSDK();
|
|
191
|
+
* try {
|
|
192
|
+
* const profile = await valiron.getAgentProfile('25459');
|
|
193
|
+
* } finally {
|
|
194
|
+
* await valiron.dispose();
|
|
195
|
+
* }
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
dispose() {
|
|
199
|
+
return this.client.dispose();
|
|
200
|
+
}
|
|
148
201
|
}
|
|
149
202
|
exports.ValironSDK = ValironSDK;
|
|
150
203
|
// Re-export everything
|
|
151
204
|
__exportStar(require("./types"), exports);
|
|
152
205
|
var clients_2 = require("./clients");
|
|
153
206
|
Object.defineProperty(exports, "ValironClient", { enumerable: true, get: function () { return clients_2.ValironClient; } });
|
|
154
|
-
|
|
207
|
+
var middleware_1 = require("./middleware");
|
|
208
|
+
Object.defineProperty(exports, "createValironGate", { enumerable: true, get: function () { return middleware_1.createValironGate; } });
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ValironSDK } from "./index";
|
|
2
|
+
import type { GateResult } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for the Valiron trust gate middleware.
|
|
5
|
+
*/
|
|
6
|
+
export interface ValironGateConfig {
|
|
7
|
+
/** Configured ValironSDK instance. */
|
|
8
|
+
sdk: ValironSDK;
|
|
9
|
+
/**
|
|
10
|
+
* Extract the agent ID from an incoming request.
|
|
11
|
+
* Defaults to `req.headers['x-agent-id']`.
|
|
12
|
+
*/
|
|
13
|
+
extractAgentId?: (req: any) => string | null;
|
|
14
|
+
/** Minimum Valiron score to allow (default: 65). */
|
|
15
|
+
minScore?: number;
|
|
16
|
+
/** TTL for cached sandbox results in ms (default: 86400000 = 24 h). */
|
|
17
|
+
ttlMs?: number;
|
|
18
|
+
/** Custom handler when an agent is denied. If provided, must send a response. */
|
|
19
|
+
onDeny?: (req: any, res: any, result: GateResult) => void;
|
|
20
|
+
/** Hook called after an agent is allowed — runs before next(). */
|
|
21
|
+
onAllow?: (req: any, result: GateResult) => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Create an Express-compatible middleware that sits in front of payment
|
|
25
|
+
* protocols (x402 etc.) and gates access based on the agent's combined
|
|
26
|
+
* Valiron trust score (on-chain reputation + sandbox tests).
|
|
27
|
+
*
|
|
28
|
+
* On allow: sets `req.valiron` to the {@link GateResult} and calls `next()`.
|
|
29
|
+
* On deny: returns 403 with the gate result (or delegates to `onDeny`).
|
|
30
|
+
* On error: returns 503 (fail-closed).
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```typescript
|
|
34
|
+
* import { ValironSDK, createValironGate } from '@valiron/sdk';
|
|
35
|
+
*
|
|
36
|
+
* const valiron = new ValironSDK({ chain: 'monad' });
|
|
37
|
+
*
|
|
38
|
+
* // Apply before your x402 / payment handler
|
|
39
|
+
* app.use('/api/paid', createValironGate({ sdk: valiron }));
|
|
40
|
+
*
|
|
41
|
+
* // Custom threshold
|
|
42
|
+
* app.use('/api/premium', createValironGate({
|
|
43
|
+
* sdk: valiron,
|
|
44
|
+
* minScore: 85,
|
|
45
|
+
* ttlMs: 3600_000, // re-test every hour
|
|
46
|
+
* }));
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare function createValironGate(config: ValironGateConfig): (req: any, res: any, next: any) => Promise<any>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createValironGate = createValironGate;
|
|
4
|
+
/**
|
|
5
|
+
* Create an Express-compatible middleware that sits in front of payment
|
|
6
|
+
* protocols (x402 etc.) and gates access based on the agent's combined
|
|
7
|
+
* Valiron trust score (on-chain reputation + sandbox tests).
|
|
8
|
+
*
|
|
9
|
+
* On allow: sets `req.valiron` to the {@link GateResult} and calls `next()`.
|
|
10
|
+
* On deny: returns 403 with the gate result (or delegates to `onDeny`).
|
|
11
|
+
* On error: returns 503 (fail-closed).
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import { ValironSDK, createValironGate } from '@valiron/sdk';
|
|
16
|
+
*
|
|
17
|
+
* const valiron = new ValironSDK({ chain: 'monad' });
|
|
18
|
+
*
|
|
19
|
+
* // Apply before your x402 / payment handler
|
|
20
|
+
* app.use('/api/paid', createValironGate({ sdk: valiron }));
|
|
21
|
+
*
|
|
22
|
+
* // Custom threshold
|
|
23
|
+
* app.use('/api/premium', createValironGate({
|
|
24
|
+
* sdk: valiron,
|
|
25
|
+
* minScore: 85,
|
|
26
|
+
* ttlMs: 3600_000, // re-test every hour
|
|
27
|
+
* }));
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
function createValironGate(config) {
|
|
31
|
+
const { sdk, extractAgentId = (req) => req.headers?.["x-agent-id"], minScore, ttlMs, onDeny, onAllow, } = config;
|
|
32
|
+
return async function valironGate(req, res, next) {
|
|
33
|
+
const agentId = extractAgentId(req);
|
|
34
|
+
if (!agentId) {
|
|
35
|
+
return res.status(401).json({ error: "Missing agent id" });
|
|
36
|
+
}
|
|
37
|
+
try {
|
|
38
|
+
const result = await sdk.gate(agentId, { minScore, ttlMs });
|
|
39
|
+
if (result.allow) {
|
|
40
|
+
req.valiron = result;
|
|
41
|
+
if (onAllow)
|
|
42
|
+
onAllow(req, result);
|
|
43
|
+
return next();
|
|
44
|
+
}
|
|
45
|
+
// Denied
|
|
46
|
+
if (onDeny) {
|
|
47
|
+
return onDeny(req, res, result);
|
|
48
|
+
}
|
|
49
|
+
return res.status(403).json({
|
|
50
|
+
error: "Agent blocked by Valiron trust gate",
|
|
51
|
+
...result,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
catch {
|
|
55
|
+
// Fail-closed: deny on any error
|
|
56
|
+
return res.status(503).json({
|
|
57
|
+
error: "Trust gate unavailable — request denied (fail-closed)",
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -13,10 +13,12 @@ export declare class TelemetryClient {
|
|
|
13
13
|
private queue;
|
|
14
14
|
private flushTimer?;
|
|
15
15
|
private latencyByKey;
|
|
16
|
+
private beforeExitHandler?;
|
|
17
|
+
/** Returns the Node.js process object when running in Node, undefined otherwise. */
|
|
18
|
+
private getNodeProcess;
|
|
16
19
|
constructor(config: TelemetryConfig | undefined, apiEndpoint: string);
|
|
17
|
-
dispose(): void
|
|
20
|
+
dispose(): Promise<void>;
|
|
18
21
|
emit(event: string, payload: Record<string, unknown>): void;
|
|
19
22
|
recordLatency(method: string, chain: string, durationMs: number): void;
|
|
20
23
|
private flush;
|
|
21
24
|
}
|
|
22
|
-
//# sourceMappingURL=telemetry.d.ts.map
|
package/dist/telemetry.js
CHANGED
|
@@ -13,10 +13,16 @@ function percentile(values, p) {
|
|
|
13
13
|
return sorted[idx] ?? 0;
|
|
14
14
|
}
|
|
15
15
|
class TelemetryClient {
|
|
16
|
+
/** Returns the Node.js process object when running in Node, undefined otherwise. */
|
|
17
|
+
getNodeProcess() {
|
|
18
|
+
if (this.runtime !== "node")
|
|
19
|
+
return undefined;
|
|
20
|
+
return globalThis.process;
|
|
21
|
+
}
|
|
16
22
|
constructor(config, apiEndpoint) {
|
|
17
23
|
this.queue = [];
|
|
18
24
|
this.latencyByKey = new Map();
|
|
19
|
-
this.enabled = config?.enabled ??
|
|
25
|
+
this.enabled = config?.enabled ?? true;
|
|
20
26
|
this.endpoint = config?.endpoint || `${apiEndpoint.replace(/\/$/, "")}/telemetry/sdk`;
|
|
21
27
|
this.appId = config?.appId;
|
|
22
28
|
this.workspaceId = config?.workspaceId;
|
|
@@ -30,13 +36,28 @@ class TelemetryClient {
|
|
|
30
36
|
this.flushTimer = setInterval(() => {
|
|
31
37
|
void this.flush();
|
|
32
38
|
}, this.flushIntervalMs);
|
|
39
|
+
// Prevent the timer from keeping the Node.js event loop alive when
|
|
40
|
+
// telemetry is running silently in the background (e.g., CLI scripts).
|
|
41
|
+
this.flushTimer.unref?.();
|
|
42
|
+
// In Node.js, flush any pending events when the process is about to
|
|
43
|
+
// exit naturally. This ensures that telemetry emitted in short-lived
|
|
44
|
+
// scripts (where the flush interval never fires) is still reported.
|
|
45
|
+
const nodeProcess = this.getNodeProcess();
|
|
46
|
+
if (nodeProcess?.on) {
|
|
47
|
+
this.beforeExitHandler = () => { void this.flush(); };
|
|
48
|
+
nodeProcess.on("beforeExit", this.beforeExitHandler);
|
|
49
|
+
}
|
|
33
50
|
this.emit("sdk_initialized", {});
|
|
34
51
|
}
|
|
35
52
|
}
|
|
36
|
-
dispose() {
|
|
53
|
+
async dispose() {
|
|
37
54
|
if (this.flushTimer)
|
|
38
55
|
clearInterval(this.flushTimer);
|
|
39
|
-
|
|
56
|
+
if (this.beforeExitHandler) {
|
|
57
|
+
this.getNodeProcess()?.off?.("beforeExit", this.beforeExitHandler);
|
|
58
|
+
this.beforeExitHandler = undefined;
|
|
59
|
+
}
|
|
60
|
+
await this.flush();
|
|
40
61
|
}
|
|
41
62
|
emit(event, payload) {
|
|
42
63
|
if (!this.enabled)
|
|
@@ -91,4 +112,3 @@ class TelemetryClient {
|
|
|
91
112
|
}
|
|
92
113
|
}
|
|
93
114
|
exports.TelemetryClient = TelemetryClient;
|
|
94
|
-
//# sourceMappingURL=telemetry.js.map
|
package/dist/types.d.ts
CHANGED
|
@@ -27,13 +27,14 @@ export interface FeedbackEntry {
|
|
|
27
27
|
score: number;
|
|
28
28
|
tag1: string;
|
|
29
29
|
tag2: string;
|
|
30
|
-
uri
|
|
31
|
-
hash
|
|
32
|
-
blockNumber
|
|
33
|
-
transactionHash
|
|
30
|
+
uri?: string;
|
|
31
|
+
hash?: string;
|
|
32
|
+
blockNumber?: string;
|
|
33
|
+
transactionHash?: string;
|
|
34
34
|
feedbackIndex?: string;
|
|
35
35
|
indexedTag1?: string;
|
|
36
36
|
endpoint?: string;
|
|
37
|
+
isRevoked?: boolean;
|
|
37
38
|
}
|
|
38
39
|
export interface OnchainReputation {
|
|
39
40
|
count: string;
|
|
@@ -42,26 +43,14 @@ export interface OnchainReputation {
|
|
|
42
43
|
totalFeedback: number;
|
|
43
44
|
error?: string;
|
|
44
45
|
}
|
|
45
|
-
export interface BehavioralMetrics {
|
|
46
|
-
loops?: number;
|
|
47
|
-
totalRequests?: number;
|
|
48
|
-
respected429?: boolean;
|
|
49
|
-
errorRate?: number;
|
|
50
|
-
averageLatency?: number;
|
|
51
|
-
burstiness?: number;
|
|
52
|
-
onChainFeedbackCount?: number;
|
|
53
|
-
onChainAverageScore?: number;
|
|
54
|
-
}
|
|
55
46
|
export interface LocalReputation {
|
|
56
47
|
exists: boolean;
|
|
57
48
|
score?: number;
|
|
58
49
|
tier?: MoodysRating | string;
|
|
59
50
|
riskLevel?: RiskLevel | string;
|
|
60
51
|
graduated?: boolean;
|
|
61
|
-
metrics?: BehavioralMetrics;
|
|
62
|
-
ipfsCid?: string | null;
|
|
63
|
-
agentId?: string | null;
|
|
64
52
|
lastUpdated?: string | null;
|
|
53
|
+
agentId?: string | null;
|
|
65
54
|
message?: string;
|
|
66
55
|
error?: string;
|
|
67
56
|
}
|
|
@@ -69,14 +58,13 @@ export interface RoutingSignals {
|
|
|
69
58
|
onchain: {
|
|
70
59
|
feedbackCount: number;
|
|
71
60
|
averageScore: number;
|
|
72
|
-
|
|
61
|
+
meetsThreshold: boolean;
|
|
73
62
|
};
|
|
74
63
|
local: {
|
|
75
64
|
exists: boolean;
|
|
76
65
|
graduated: boolean;
|
|
77
66
|
tier: string;
|
|
78
67
|
riskLevel: string;
|
|
79
|
-
score: number;
|
|
80
68
|
};
|
|
81
69
|
}
|
|
82
70
|
export interface RoutingExplanation {
|
|
@@ -116,13 +104,6 @@ export interface WalletProfile {
|
|
|
116
104
|
chain: ChainContext;
|
|
117
105
|
timestamp: string;
|
|
118
106
|
}
|
|
119
|
-
export interface SandboxTestSummary {
|
|
120
|
-
totalRequests: number;
|
|
121
|
-
successCount: number;
|
|
122
|
-
rateLimitCount: number;
|
|
123
|
-
errorCount: number;
|
|
124
|
-
avgLatencyMs: number;
|
|
125
|
-
}
|
|
126
107
|
/**
|
|
127
108
|
* Response from `POST /operator/trigger-sandbox/:agentId`
|
|
128
109
|
*/
|
|
@@ -130,15 +111,40 @@ export interface SandboxResult {
|
|
|
130
111
|
ok: boolean;
|
|
131
112
|
agentId: string;
|
|
132
113
|
wallet: string;
|
|
133
|
-
mode: "endpoint-probe" | "sandbox-relay";
|
|
134
|
-
metrics: BehavioralMetrics;
|
|
135
114
|
valironScore: number;
|
|
136
115
|
tier: MoodysRating;
|
|
137
116
|
riskLevel: RiskLevel;
|
|
138
|
-
testSummary: SandboxTestSummary;
|
|
139
117
|
chain: ChainContext;
|
|
140
118
|
message: string;
|
|
141
119
|
}
|
|
120
|
+
/** Options for `gate()` call. */
|
|
121
|
+
export interface GateOptions {
|
|
122
|
+
/** Minimum Valiron score to allow (default: 65 = BA tier). */
|
|
123
|
+
minScore?: number;
|
|
124
|
+
/** TTL in ms for cached sandbox results. Stale results trigger re-testing (default: 86400000 = 24 h). */
|
|
125
|
+
ttlMs?: number;
|
|
126
|
+
/** Override the blockchain network for this call. */
|
|
127
|
+
chain?: SupportedChain;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Response from `POST /operator/gate/:agentId`
|
|
131
|
+
*
|
|
132
|
+
* Combined trust check: on-chain reputation + sandbox tests → allow/deny.
|
|
133
|
+
*/
|
|
134
|
+
export interface GateResult {
|
|
135
|
+
allow: boolean;
|
|
136
|
+
score: number;
|
|
137
|
+
tier: MoodysRating;
|
|
138
|
+
riskLevel: RiskLevel;
|
|
139
|
+
route: RouteDecision;
|
|
140
|
+
agentId: string;
|
|
141
|
+
wallet: string;
|
|
142
|
+
chain: ChainContext;
|
|
143
|
+
/** Whether sandbox tests ran this call (false = used cached results). */
|
|
144
|
+
sandboxRan: boolean;
|
|
145
|
+
/** Whether cached results were used. */
|
|
146
|
+
cached: boolean;
|
|
147
|
+
}
|
|
142
148
|
/** Options that can be passed to individual SDK method calls. */
|
|
143
149
|
export interface CallOptions {
|
|
144
150
|
/**
|
|
@@ -205,4 +211,3 @@ export declare class ValironError extends Error {
|
|
|
205
211
|
statusCode?: number | undefined;
|
|
206
212
|
constructor(message: string, code: string, statusCode?: number | undefined);
|
|
207
213
|
}
|
|
208
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valiron/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Official TypeScript SDK for Valiron - Trust Layer for Agentic Economy",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/vatsashah45/Valiron.git",
|
|
8
|
+
"directory": "packages/valiron-sdk"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/vatsashah45/Valiron/tree/main/packages/valiron-sdk#readme",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/vatsashah45/Valiron/issues"
|
|
13
|
+
},
|
|
5
14
|
"main": "dist/index.js",
|
|
6
15
|
"types": "dist/index.d.ts",
|
|
7
16
|
"engines": {
|
|
8
17
|
"node": ">=18.0.0"
|
|
9
18
|
},
|
|
10
19
|
"scripts": {
|
|
11
|
-
"
|
|
20
|
+
"clean": "node -e \"const fs=require('fs');fs.rmSync('dist',{recursive:true,force:true});\"",
|
|
21
|
+
"build": "pnpm clean && tsc",
|
|
12
22
|
"dev": "tsc --watch",
|
|
13
23
|
"test": "node test/validate.mjs && node test/validate-examples.mjs",
|
|
14
24
|
"prepublishOnly": "pnpm build"
|
package/dist/clients.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../src/clients.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EAGZ,MAAM,SAAS,CAAC;AAGjB;;;;;GAKG;AACH,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,YAAY,CAAC,CAAiB;IACtC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,KAAK,CAAU;IACvB,OAAO,CAAC,SAAS,CAAkB;gBAEvB,MAAM,GAAE,aAAkB;IA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