@peac/adapter-x402 0.12.6 → 0.12.7
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/raw-v2.d.ts +2 -2
- package/dist/raw-v2.js +2 -2
- package/dist/raw.d.ts +3 -3
- package/dist/raw.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @peac/adapter-x402
|
|
3
3
|
*
|
|
4
4
|
* Verification, term-matching, and evidence mapping for the
|
|
5
|
-
* x402 Offer/Receipt extension (compatible with upstream
|
|
5
|
+
* x402 Offer/Receipt extension (compatible with upstream x402-foundation/x402).
|
|
6
6
|
*
|
|
7
7
|
* Architecture:
|
|
8
8
|
* - Layer A (raw.ts): Exact upstream wire types and extraction
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @peac/adapter-x402
|
|
4
4
|
*
|
|
5
5
|
* Verification, term-matching, and evidence mapping for the
|
|
6
|
-
* x402 Offer/Receipt extension (compatible with upstream
|
|
6
|
+
* x402 Offer/Receipt extension (compatible with upstream x402-foundation/x402).
|
|
7
7
|
*
|
|
8
8
|
* Architecture:
|
|
9
9
|
* - Layer A (raw.ts): Exact upstream wire types and extraction
|
package/dist/raw-v2.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* x402 V2 raw HTTP transport types (Layer A)
|
|
3
3
|
*
|
|
4
|
-
* Exact mirror of upstream
|
|
4
|
+
* Exact mirror of upstream x402-foundation/x402 V2 HTTP transport spec at
|
|
5
5
|
* specs/transports-v2/http.md.
|
|
6
6
|
*
|
|
7
7
|
* V2 moves all protocol data to HTTP headers (Base64-encoded JSON):
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* Do NOT rename fields, add PEAC-specific fields, or change types.
|
|
17
17
|
* Normalization belongs in Layer B (normalize-v2.ts, PR5).
|
|
18
18
|
*
|
|
19
|
-
* Upstream pin:
|
|
19
|
+
* Upstream pin: x402-foundation/x402 specs/transports-v2/http.md
|
|
20
20
|
* Weekly drift CI: .github/workflows/x402-drift.yml
|
|
21
21
|
*/
|
|
22
22
|
/**
|
package/dist/raw-v2.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* x402 V2 raw HTTP transport types (Layer A)
|
|
4
4
|
*
|
|
5
|
-
* Exact mirror of upstream
|
|
5
|
+
* Exact mirror of upstream x402-foundation/x402 V2 HTTP transport spec at
|
|
6
6
|
* specs/transports-v2/http.md.
|
|
7
7
|
*
|
|
8
8
|
* V2 moves all protocol data to HTTP headers (Base64-encoded JSON):
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* Do NOT rename fields, add PEAC-specific fields, or change types.
|
|
18
18
|
* Normalization belongs in Layer B (normalize-v2.ts, PR5).
|
|
19
19
|
*
|
|
20
|
-
* Upstream pin:
|
|
20
|
+
* Upstream pin: x402-foundation/x402 specs/transports-v2/http.md
|
|
21
21
|
* Weekly drift CI: .github/workflows/x402-drift.yml
|
|
22
22
|
*/
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/raw.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* x402 raw wire types and extraction (Layer A)
|
|
3
3
|
*
|
|
4
|
-
* Exact mirror of upstream
|
|
4
|
+
* Exact mirror of upstream x402-foundation/x402 TypeScript types and field shapes
|
|
5
5
|
* after PR #935 (Offer/Receipt Extension) merged at commit f2bbb5c.
|
|
6
6
|
*
|
|
7
7
|
* This layer exists to:
|
|
@@ -27,7 +27,7 @@ export declare const OFFER_RECEIPT: "offer-receipt";
|
|
|
27
27
|
/**
|
|
28
28
|
* Exact upstream x402 offer payload (encoded, Layer A2)
|
|
29
29
|
*
|
|
30
|
-
* Field names and types match
|
|
30
|
+
* Field names and types match x402-foundation/x402 PR #935 TS interface exactly.
|
|
31
31
|
* All fields are always present in the encoded payload.
|
|
32
32
|
* EIP-712 uses `0` for unused `validUntil` (encoding placeholder, not semantic absence).
|
|
33
33
|
* Conversion to semantic optionality happens exclusively in Layer B (normalize.ts).
|
|
@@ -59,7 +59,7 @@ export interface RawOfferPayload {
|
|
|
59
59
|
/**
|
|
60
60
|
* Exact upstream x402 receipt payload (encoded, Layer A2)
|
|
61
61
|
*
|
|
62
|
-
* Field names and types match
|
|
62
|
+
* Field names and types match x402-foundation/x402 PR #935 TS interface exactly.
|
|
63
63
|
* All fields are always present in the encoded payload.
|
|
64
64
|
* EIP-712 uses `""` for unused `transaction` (encoding placeholder, not semantic absence).
|
|
65
65
|
* Conversion to semantic optionality happens exclusively in Layer B (normalize.ts).
|
package/dist/raw.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* x402 raw wire types and extraction (Layer A)
|
|
4
4
|
*
|
|
5
|
-
* Exact mirror of upstream
|
|
5
|
+
* Exact mirror of upstream x402-foundation/x402 TypeScript types and field shapes
|
|
6
6
|
* after PR #935 (Offer/Receipt Extension) merged at commit f2bbb5c.
|
|
7
7
|
*
|
|
8
8
|
* This layer exists to:
|
package/dist/version.d.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* If no V2-specific header is found, falls back to V1.
|
|
17
17
|
* Ambiguous cases (mixed V1+V2 headers) resolve to V2.
|
|
18
18
|
*
|
|
19
|
-
* Upstream:
|
|
19
|
+
* Upstream: x402-foundation/x402 specs/transports-v2/http.md
|
|
20
20
|
*/
|
|
21
21
|
/** Wire version discriminant */
|
|
22
22
|
export type X402WireVersion = 1 | 2;
|
package/dist/version.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* If no V2-specific header is found, falls back to V1.
|
|
18
18
|
* Ambiguous cases (mixed V1+V2 headers) resolve to V2.
|
|
19
19
|
*
|
|
20
|
-
* Upstream:
|
|
20
|
+
* Upstream: x402-foundation/x402 specs/transports-v2/http.md
|
|
21
21
|
*/
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.detectX402Version = detectX402Version;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peac/adapter-x402",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.7",
|
|
4
4
|
"description": "x402 offer/receipt verification, term-matching, and PEAC record mapping",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@peac/
|
|
23
|
-
"@peac/
|
|
24
|
-
"@peac/
|
|
25
|
-
"@peac/
|
|
22
|
+
"@peac/crypto": "0.12.7",
|
|
23
|
+
"@peac/adapter-core": "0.12.7",
|
|
24
|
+
"@peac/kernel": "0.12.7",
|
|
25
|
+
"@peac/schema": "0.12.7"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.19.11",
|