@devlab.group/agent-commerce 1.5.0 → 1.6.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 +73 -71
- package/dist/ap2.d.ts +20 -23
- package/dist/ap2.js +53 -75
- package/dist/ap2.js.map +1 -1
- package/dist/authorization-BpbWGGrf.d.ts +115 -0
- package/dist/chunk-AFI2CEZS.js +10 -0
- package/dist/chunk-AFI2CEZS.js.map +1 -0
- package/dist/{chunk-PBYN7EK2.js → chunk-CBJIT7QP.js} +10 -9
- package/dist/chunk-CBJIT7QP.js.map +1 -0
- package/dist/{chunk-NKNXVDHN.js → chunk-JKEKKXRJ.js} +45 -66
- package/dist/chunk-JKEKKXRJ.js.map +1 -0
- package/dist/{chunk-5GEWKNIH.js → chunk-N5KRK7YA.js} +63 -27
- package/dist/chunk-N5KRK7YA.js.map +1 -0
- package/dist/{chunk-6D2EZ5ME.js → chunk-V2V2E7HX.js} +2 -2
- package/dist/{chunk-6D2EZ5ME.js.map → chunk-V2V2E7HX.js.map} +1 -1
- package/dist/{chunk-US622BKF.js → chunk-VKDXMXHL.js} +5 -8
- package/dist/chunk-VKDXMXHL.js.map +1 -0
- package/dist/cli/index.js +501 -494
- package/dist/cli/index.js.map +1 -1
- package/dist/{constants-6mypC60h.d.ts → constants-Bkq04FRZ.d.ts} +1 -3
- package/dist/guardrails-71XwtXlT.d.ts +31 -0
- package/dist/index.d.ts +230 -265
- package/dist/index.js +1050 -607
- package/dist/index.js.map +1 -1
- package/dist/mcp.d.ts +6 -59
- package/dist/mcp.js +61 -53
- package/dist/mcp.js.map +1 -1
- package/dist/mpp.d.ts +4 -4
- package/dist/mpp.js +21 -19
- package/dist/mpp.js.map +1 -1
- package/dist/protocol-adapter-DTkrXTev.d.ts +238 -0
- package/dist/runtime-CiYbgGpi.d.ts +303 -0
- package/dist/{types-CJtwLu1c.d.ts → types-O6lg3Q5V.d.ts} +17 -23
- package/dist/x402.d.ts +43 -75
- package/dist/x402.js +10 -9
- package/dist/x402.js.map +1 -1
- package/package.json +7 -5
- package/dist/authorization-DA7mjy_O.d.ts +0 -123
- package/dist/chunk-5GEWKNIH.js.map +0 -1
- package/dist/chunk-NKNXVDHN.js.map +0 -1
- package/dist/chunk-PBYN7EK2.js.map +0 -1
- package/dist/chunk-US622BKF.js.map +0 -1
- package/dist/guardrails-Dmwi63KB.d.ts +0 -38
- package/dist/protocol-adapter-APRjs1E2.d.ts +0 -273
- package/dist/runtime-DC5XQ9Cc.d.ts +0 -351
|
@@ -42,9 +42,7 @@ declare const MPP_PROFILE: {
|
|
|
42
42
|
/** Supported CAIP-2 networks; gateway config applies the x402 mainnet guardrails */
|
|
43
43
|
declare const MPP_NETWORKS: readonly ["eip155:84532", "eip155:8453"];
|
|
44
44
|
type MppNetwork = (typeof MPP_NETWORKS)[number];
|
|
45
|
-
/**
|
|
46
|
-
* Compact descriptor value naming the core draft, intent and method
|
|
47
|
-
*/
|
|
45
|
+
/** Compact descriptor value naming the core draft, intent and method */
|
|
48
46
|
declare const MPP_SUPPORTED_SPEC: string;
|
|
49
47
|
|
|
50
48
|
export { type MppNetwork as M, MPPX_VERSION as a, MPP_PROFILE as b, MPP_SPEC_COMMIT as c, MPP_SPEC_DRAFTS as d, MPP_SPEC_REPOSITORY as e, MPP_SUPPORTED_SPEC as f };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How the gateway authenticates to a remote facilitator.
|
|
3
|
+
*
|
|
4
|
+
* - `none`: send no credential; use it when the facilitator accepts
|
|
5
|
+
* anonymous requests.
|
|
6
|
+
* - `bearer`: send a static token; no extra peer package is needed.
|
|
7
|
+
* - `cdp`: Coinbase Developer Platform. The optional peer `@coinbase/x402`,
|
|
8
|
+
* imported only for this type, signs a fresh JWT per request.
|
|
9
|
+
*
|
|
10
|
+
* Any other auth type is refused at config load.
|
|
11
|
+
*/
|
|
12
|
+
type FacilitatorAuth = {
|
|
13
|
+
readonly type: 'none';
|
|
14
|
+
} | {
|
|
15
|
+
readonly type: 'bearer';
|
|
16
|
+
readonly token: string;
|
|
17
|
+
} | {
|
|
18
|
+
readonly type: 'cdp';
|
|
19
|
+
readonly apiKeyId: string;
|
|
20
|
+
readonly apiKeySecret: string;
|
|
21
|
+
};
|
|
22
|
+
type X402FacilitatorConfig = {
|
|
23
|
+
readonly mode: 'local';
|
|
24
|
+
readonly signerPrivateKey: string;
|
|
25
|
+
} | {
|
|
26
|
+
readonly mode: 'remote';
|
|
27
|
+
readonly url: string;
|
|
28
|
+
readonly auth: FacilitatorAuth;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type { FacilitatorAuth as F, X402FacilitatorConfig as X };
|