verdifax 0.2.8 → 0.2.10
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 +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The official Node.js SDK for the [Verdifax](https://verdifax.com)
|
|
4
4
|
orchestrator REST API. TypeScript-native, ships dual CJS+ESM,
|
|
5
|
-
zero runtime dependencies (uses native `fetch` from Node
|
|
5
|
+
zero runtime dependencies (uses native `fetch` from Node 22+).
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -14,7 +14,7 @@ yarn add verdifax
|
|
|
14
14
|
pnpm add verdifax
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Requires Node
|
|
17
|
+
Requires Node 22 or newer.
|
|
18
18
|
|
|
19
19
|
## Quickstart
|
|
20
20
|
|
package/dist/index.d.mts
CHANGED
|
@@ -44,7 +44,7 @@ interface ExecuteRequest {
|
|
|
44
44
|
program_id: Hex64;
|
|
45
45
|
route_id: string;
|
|
46
46
|
registry_record_hash: Hex64;
|
|
47
|
-
/** When non-empty, opts the request into the AIVP
|
|
47
|
+
/** When non-empty, opts the request into the AIVP governance pipeline. */
|
|
48
48
|
ai_output_text?: string;
|
|
49
49
|
/** Caller-attested actor + decision metadata; open schema. */
|
|
50
50
|
attested_context?: Record<string, unknown>;
|
|
@@ -302,7 +302,7 @@ declare class VerdifaxClient {
|
|
|
302
302
|
adminListKeys(): Promise<AdminAPIKey[]>;
|
|
303
303
|
adminRevokeKey(keyId: number): Promise<void>;
|
|
304
304
|
/** Convenience for attesting an Anthropic Claude API response.
|
|
305
|
-
* Wires the response text into the AIVP
|
|
305
|
+
* Wires the response text into the AIVP governance pipeline
|
|
306
306
|
* by setting `ai_output_text`. */
|
|
307
307
|
attestClaudeResponse(args: {
|
|
308
308
|
program_id: Hex64;
|
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ interface ExecuteRequest {
|
|
|
44
44
|
program_id: Hex64;
|
|
45
45
|
route_id: string;
|
|
46
46
|
registry_record_hash: Hex64;
|
|
47
|
-
/** When non-empty, opts the request into the AIVP
|
|
47
|
+
/** When non-empty, opts the request into the AIVP governance pipeline. */
|
|
48
48
|
ai_output_text?: string;
|
|
49
49
|
/** Caller-attested actor + decision metadata; open schema. */
|
|
50
50
|
attested_context?: Record<string, unknown>;
|
|
@@ -302,7 +302,7 @@ declare class VerdifaxClient {
|
|
|
302
302
|
adminListKeys(): Promise<AdminAPIKey[]>;
|
|
303
303
|
adminRevokeKey(keyId: number): Promise<void>;
|
|
304
304
|
/** Convenience for attesting an Anthropic Claude API response.
|
|
305
|
-
* Wires the response text into the AIVP
|
|
305
|
+
* Wires the response text into the AIVP governance pipeline
|
|
306
306
|
* by setting `ai_output_text`. */
|
|
307
307
|
attestClaudeResponse(args: {
|
|
308
308
|
program_id: Hex64;
|
package/dist/index.js
CHANGED
|
@@ -105,7 +105,7 @@ function validateRouteId(value) {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
// src/version.ts
|
|
108
|
-
var SDK_VERSION = "0.2.
|
|
108
|
+
var SDK_VERSION = "0.2.10";
|
|
109
109
|
|
|
110
110
|
// src/client.ts
|
|
111
111
|
var DEFAULT_BASE_URL = "https://api.verdifax.com";
|
|
@@ -313,7 +313,7 @@ var VerdifaxClient = class {
|
|
|
313
313
|
}
|
|
314
314
|
// ── Provider helpers (Claude / OpenAI) ───────────────────────
|
|
315
315
|
/** Convenience for attesting an Anthropic Claude API response.
|
|
316
|
-
* Wires the response text into the AIVP
|
|
316
|
+
* Wires the response text into the AIVP governance pipeline
|
|
317
317
|
* by setting `ai_output_text`. */
|
|
318
318
|
async attestClaudeResponse(args) {
|
|
319
319
|
return this.attestProviderResponse({ ...args, provider: "anthropic" });
|
package/dist/index.mjs
CHANGED
|
@@ -71,7 +71,7 @@ function validateRouteId(value) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// src/version.ts
|
|
74
|
-
var SDK_VERSION = "0.2.
|
|
74
|
+
var SDK_VERSION = "0.2.10";
|
|
75
75
|
|
|
76
76
|
// src/client.ts
|
|
77
77
|
var DEFAULT_BASE_URL = "https://api.verdifax.com";
|
|
@@ -279,7 +279,7 @@ var VerdifaxClient = class {
|
|
|
279
279
|
}
|
|
280
280
|
// ── Provider helpers (Claude / OpenAI) ───────────────────────
|
|
281
281
|
/** Convenience for attesting an Anthropic Claude API response.
|
|
282
|
-
* Wires the response text into the AIVP
|
|
282
|
+
* Wires the response text into the AIVP governance pipeline
|
|
283
283
|
* by setting `ai_output_text`. */
|
|
284
284
|
async attestClaudeResponse(args) {
|
|
285
285
|
return this.attestProviderResponse({ ...args, provider: "anthropic" });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "verdifax",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "Official Node.js / TypeScript SDK for the Verdifax orchestrator REST API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Verdifax <team@verdifax.com>",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"LICENSE"
|
|
44
44
|
],
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": ">=
|
|
46
|
+
"node": ">=22.0.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsup src/index.ts --format cjs,esm --dts --clean",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"lint": "tsc --noEmit"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^20.
|
|
55
|
+
"@types/node": "^22.20.5",
|
|
56
56
|
"tsup": "^8.0.0",
|
|
57
57
|
"typescript": "^5.4.0"
|
|
58
58
|
},
|