x402-proxy 0.10.12 → 0.11.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.
Files changed (79) hide show
  1. package/README.md +3 -3
  2. package/dist/{Credential-0iRzpJkF.js → Mcp-CKylLH8N.js} +209 -211
  3. package/dist/accounts-D5u2KBgr.js +4 -0
  4. package/dist/{hashTypedData-CtEdfx4y.js → accounts-D9KsVVpJ.js} +228 -3
  5. package/dist/{auth-J9VuNMoG.js → auth-CaCZiNCk.js} +3 -3
  6. package/dist/bin/cli.js +46 -51
  7. package/dist/{decodeFunctionData-JPOUdvil.js → call-CNxk2xpg.js} +2084 -144
  8. package/dist/{decodeFunctionData-DuFcwhC_.js → call-DdUUzMfg.js} +11 -16
  9. package/dist/{ccip-C6CQOJYv.js → ccip-Cc1Fdazz.js} +1 -1
  10. package/dist/{ccip-Bx-zoUCJ.js → ccip-IumNC20V.js} +13 -3
  11. package/dist/{ccip-C2k1DD1T.js → ccip-JDVib6lf.js} +1 -1
  12. package/dist/{ccip-RZzsZ5Mv.js → ccip-RzF9aX_O.js} +3 -4
  13. package/dist/{chain-CafcHffR.js → chain-C_3Km9Dx.js} +1 -1
  14. package/dist/{client-Bcl2uC6u.js → client-C2DwSbYN.js} +1 -2
  15. package/dist/{Sse-DGR-tH7K.js → client-DqtxTnu6.js} +10249 -6224
  16. package/dist/client-DuqEc8Iw.js +3 -0
  17. package/dist/{client-DZV1cVsW.js → client-uAaF6lv2.js} +2 -2
  18. package/dist/{derive-DNUl8LU9.js → config-cyNyKO4-.js} +1024 -919
  19. package/dist/{dist-DM5_F3r5.js → dist-CFt2UZ4W.js} +1 -1
  20. package/dist/{dist-DxJCYyL5.js → dist-Cwt2qrTK.js} +2 -2
  21. package/dist/{helpers-ChcFbdC0.js → helpers-DebIs_21.js} +2 -2
  22. package/dist/{sendRawTransactionSync-DvSkhZtW.js → http-J0KYM-2Y.js} +2186 -169
  23. package/dist/index.d.ts +0 -1
  24. package/dist/index.js +30107 -771
  25. package/dist/{index.node-l8K03uWn.js → index.node-xc-jRJ78.js} +1 -1
  26. package/dist/{localBatchGatewayRequest-DOdQ9bR7.js → localBatchGatewayRequest-0gr8vzH3.js} +14 -2
  27. package/dist/{localBatchGatewayRequest-DQkbZaSy.js → localBatchGatewayRequest-CBsFXIAU.js} +2 -2
  28. package/dist/{localBatchGatewayRequest-C-RPJyDO.js → localBatchGatewayRequest-CPqqSJcB.js} +2 -2
  29. package/dist/{schemas-BxMFYNbH.js → schemas-DzZjufD1.js} +1 -1
  30. package/dist/{secp256k1-BZpiyffY.js → secp256k1-Bp7LcNvI.js} +2 -7
  31. package/dist/secp256k1-BsaSkXlH.js +2 -0
  32. package/dist/{secp256k1-BjenrLl5.js → secp256k1-BwSAYyif.js} +2 -2
  33. package/dist/secp256k1-CHAXu2gP.js +3 -0
  34. package/dist/{server-D2apWWY9.js → server-Dbsk9dql.js} +2 -2
  35. package/dist/setup-BdSfEdx4.js +3 -0
  36. package/dist/{setup-BY4J49Lv.js → setup-C10O8N36.js} +16 -33
  37. package/dist/{hmac-59IlS_by.js → sha2-XLg3s2a9.js} +81 -81
  38. package/dist/{sha256-FAs0qeni.js → sha256-DCLdwsRU.js} +1 -1
  39. package/dist/{sha3-DbMJRJ3C.js → sha3-03id956K.js} +1 -1
  40. package/dist/{sha3-CYkWM8Xa.js → sha3-VSia5eGE.js} +1 -1
  41. package/dist/{sse-qIEKrJEZ.js → sse-kba68iqF.js} +2 -2
  42. package/dist/status-B2xUewrq.js +3 -0
  43. package/dist/{status-CD_fCzGf.js → status-DjZdIeES.js} +2 -3
  44. package/dist/{stdio-BfDjLLnd.js → stdio-CdmkLt8r.js} +3 -3
  45. package/dist/{streamableHttp-BkayeoEQ.js → streamableHttp-DRntYTFN.js} +2 -2
  46. package/dist/{types-BmyZIQ8G.js → types-BQ17ZF7g.js} +1 -1
  47. package/dist/{types-DlqDf-zE.js → types-DH9rDVeP.js} +1 -1
  48. package/dist/{utils-SeGHMW9O.js → utils-psFtUKLa.js} +53 -53
  49. package/dist/wallet-BsCgqUun.js +3 -0
  50. package/dist/{wallet-C4RiduwM.js → wallet-CUCoLEqs.js} +179 -147
  51. package/package.json +1 -1
  52. package/dist/Mcp-CSyD7Hxz.js +0 -10
  53. package/dist/Sse-C-KDPYh0.js +0 -16482
  54. package/dist/accounts-DsuvWwph.js +0 -232
  55. package/dist/accounts-DzvAlQRn.js +0 -5
  56. package/dist/accounts-IG-Cmrwy.js +0 -229
  57. package/dist/chain-DwfP5RGZ.js +0 -1968
  58. package/dist/chunk-DBEY4PJZ.js +0 -16
  59. package/dist/client-1XQsO-Eh.js +0 -5152
  60. package/dist/client-Co7Fg1lv.js +0 -6388
  61. package/dist/config-BUQsit4s.js +0 -3
  62. package/dist/config-DR1Fs_wL.js +0 -6600
  63. package/dist/config-rvKA3SYT.js +0 -96
  64. package/dist/hashTypedData-BHmP9dBd.js +0 -859
  65. package/dist/http-BAtucMbS.js +0 -2060
  66. package/dist/isAddressEqual-BLrd1Hg1.js +0 -9
  67. package/dist/isAddressEqual-DsAqfQOD.js +0 -10
  68. package/dist/parseUnits-CApwcKSD.js +0 -49
  69. package/dist/parseUnits-cMO2udMe.js +0 -48
  70. package/dist/secp256k1-CLPUX17u.js +0 -3
  71. package/dist/setup-wMOAgrsN.js +0 -3
  72. package/dist/status-_TcPMyzr.js +0 -3
  73. package/dist/tempo-BcTkftHK.js +0 -17
  74. package/dist/tempo-Bs_aydgm.js +0 -18
  75. package/dist/wallet-BymEHYms.js +0 -3
  76. /package/dist/{api-CUzmQvTQ.js → api-B5mo8tpE.js} +0 -0
  77. /package/dist/{dist-C2YO6HSQ.js → dist-CvV4mGO6.js} +0 -0
  78. /package/dist/{index.node-DPDV8w2j.js → index.node-DCvOPMK7.js} +0 -0
  79. /package/dist/{utils-BYjkXZDF.js → utils-B1qOlJzL.js} +0 -0
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ## Quick Start
6
6
 
7
7
  ```bash
8
- npx x402-proxy -X POST -d '{"ref":"CoinbaseDev"}' https://surf.cascade.fyi/api/v1/twitter/user
8
+ npx x402-proxy https://surf.cascade.fyi/api/v1/twitter/user/openclaw
9
9
  ```
10
10
 
11
11
  That's it. The endpoint returns 402, x402-proxy pays and streams the response.
@@ -52,8 +52,8 @@ openclaw mcp set surf '{"command":"npx","args":["-y","x402-proxy","mcp","https:/
52
52
  Works like curl. Response body streams to stdout, payment info goes to stderr.
53
53
 
54
54
  ```bash
55
- # POST request
56
- $ npx x402-proxy -X POST -d '{"ref":"CoinbaseDev"}' https://surf.cascade.fyi/api/v1/twitter/user
55
+ # GET request
56
+ $ npx x402-proxy https://surf.cascade.fyi/api/v1/twitter/user/openclaw
57
57
 
58
58
  # POST with body and headers (curl-style short flags: -X, -H, -d)
59
59
  $ npx x402-proxy -X POST \
@@ -1,204 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { t as keccak_256 } from "./sha3-CYkWM8Xa.js";
3
- import { t as hmac } from "./hmac-59IlS_by.js";
4
- import { t as sha256 } from "./sha256-FAs0qeni.js";
5
- import { B as _number, Cn as safeParseAsync, Dn as clone, Fn as normalizeParams, Gt as $ZodObject, H as _refine, Jt as $ZodPipe, K as _string, Lt as $ZodLiteral, On as defineLazy, Q as _unknown, Qt as $ZodString, Sn as safeParse, Tt as $ZodEnum, U as _regex, Un as $constructor, Ut as $ZodNumber, Zt as $ZodRecord, a as _boolean, an as $ZodUnion, bn as parse, d as _custom, en as $ZodTransform, on as $ZodUnknown, pt as $ZodBoolean, qt as $ZodOptional, tn as $ZodType, ut as $ZodArray, xn as parseAsync, xt as $ZodDiscriminatedUnion, yt as $ZodCustom } from "./api-CUzmQvTQ.js";
6
- //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
7
- const ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
8
- if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
9
- $ZodType.init(inst, def);
10
- inst.def = def;
11
- inst.type = def.type;
12
- inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
13
- inst.safeParse = (data, params) => safeParse(inst, data, params);
14
- inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
15
- inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
16
- inst.check = (...checks) => {
17
- return inst.clone({
18
- ...def,
19
- checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: {
20
- check: ch,
21
- def: { check: "custom" },
22
- onattach: []
23
- } } : ch)]
24
- }, { parent: true });
25
- };
26
- inst.with = inst.check;
27
- inst.clone = (_def, params) => clone(inst, _def, params);
28
- inst.brand = () => inst;
29
- inst.register = ((reg, meta) => {
30
- reg.add(inst, meta);
31
- return inst;
32
- });
33
- inst.apply = (fn) => fn(inst);
34
- });
35
- const ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
36
- $ZodString.init(inst, def);
37
- ZodMiniType.init(inst, def);
38
- });
39
- /* @__NO_SIDE_EFFECTS__ */
40
- function string(params) {
41
- return _string(ZodMiniString, params);
42
- }
43
- const ZodMiniNumber = /* @__PURE__ */ $constructor("ZodMiniNumber", (inst, def) => {
44
- $ZodNumber.init(inst, def);
45
- ZodMiniType.init(inst, def);
46
- });
47
- /* @__NO_SIDE_EFFECTS__ */
48
- function number(params) {
49
- return _number(ZodMiniNumber, params);
50
- }
51
- const ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
52
- $ZodBoolean.init(inst, def);
53
- ZodMiniType.init(inst, def);
54
- });
55
- /* @__NO_SIDE_EFFECTS__ */
56
- function boolean(params) {
57
- return _boolean(ZodMiniBoolean, params);
58
- }
59
- const ZodMiniUnknown = /* @__PURE__ */ $constructor("ZodMiniUnknown", (inst, def) => {
60
- $ZodUnknown.init(inst, def);
61
- ZodMiniType.init(inst, def);
62
- });
63
- /* @__NO_SIDE_EFFECTS__ */
64
- function unknown() {
65
- return _unknown(ZodMiniUnknown);
66
- }
67
- const ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
68
- $ZodArray.init(inst, def);
69
- ZodMiniType.init(inst, def);
70
- });
71
- /* @__NO_SIDE_EFFECTS__ */
72
- function array(element, params) {
73
- return new ZodMiniArray({
74
- type: "array",
75
- element,
76
- ...normalizeParams(params)
77
- });
78
- }
79
- const ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
80
- $ZodObject.init(inst, def);
81
- ZodMiniType.init(inst, def);
82
- defineLazy(inst, "shape", () => def.shape);
83
- });
84
- /* @__NO_SIDE_EFFECTS__ */
85
- function object(shape, params) {
86
- return new ZodMiniObject({
87
- type: "object",
88
- shape: shape ?? {},
89
- ...normalizeParams(params)
90
- });
91
- }
92
- const ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
93
- $ZodUnion.init(inst, def);
94
- ZodMiniType.init(inst, def);
95
- });
96
- /* @__NO_SIDE_EFFECTS__ */
97
- function union(options, params) {
98
- return new ZodMiniUnion({
99
- type: "union",
100
- options,
101
- ...normalizeParams(params)
102
- });
103
- }
104
- const ZodMiniDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodMiniDiscriminatedUnion", (inst, def) => {
105
- $ZodDiscriminatedUnion.init(inst, def);
106
- ZodMiniType.init(inst, def);
107
- });
108
- /* @__NO_SIDE_EFFECTS__ */
109
- function discriminatedUnion(discriminator, options, params) {
110
- return new ZodMiniDiscriminatedUnion({
111
- type: "union",
112
- options,
113
- discriminator,
114
- ...normalizeParams(params)
115
- });
116
- }
117
- const ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
118
- $ZodRecord.init(inst, def);
119
- ZodMiniType.init(inst, def);
120
- });
121
- /* @__NO_SIDE_EFFECTS__ */
122
- function record(keyType, valueType, params) {
123
- return new ZodMiniRecord({
124
- type: "record",
125
- keyType,
126
- valueType,
127
- ...normalizeParams(params)
128
- });
129
- }
130
- const ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
131
- $ZodEnum.init(inst, def);
132
- ZodMiniType.init(inst, def);
133
- inst.options = Object.values(def.entries);
134
- });
135
- /* @__NO_SIDE_EFFECTS__ */
136
- function _enum(values, params) {
137
- return new ZodMiniEnum({
138
- type: "enum",
139
- entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values,
140
- ...normalizeParams(params)
141
- });
142
- }
143
- const ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
144
- $ZodLiteral.init(inst, def);
145
- ZodMiniType.init(inst, def);
146
- });
147
- /* @__NO_SIDE_EFFECTS__ */
148
- function literal(value, params) {
149
- return new ZodMiniLiteral({
150
- type: "literal",
151
- values: Array.isArray(value) ? value : [value],
152
- ...normalizeParams(params)
153
- });
154
- }
155
- const ZodMiniTransform = /* @__PURE__ */ $constructor("ZodMiniTransform", (inst, def) => {
156
- $ZodTransform.init(inst, def);
157
- ZodMiniType.init(inst, def);
158
- });
159
- /* @__NO_SIDE_EFFECTS__ */
160
- function transform(fn) {
161
- return new ZodMiniTransform({
162
- type: "transform",
163
- transform: fn
164
- });
165
- }
166
- const ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
167
- $ZodOptional.init(inst, def);
168
- ZodMiniType.init(inst, def);
169
- });
170
- /* @__NO_SIDE_EFFECTS__ */
171
- function optional(innerType) {
172
- return new ZodMiniOptional({
173
- type: "optional",
174
- innerType
175
- });
176
- }
177
- const ZodMiniPipe = /* @__PURE__ */ $constructor("ZodMiniPipe", (inst, def) => {
178
- $ZodPipe.init(inst, def);
179
- ZodMiniType.init(inst, def);
180
- });
181
- /* @__NO_SIDE_EFFECTS__ */
182
- function pipe(in_, out) {
183
- return new ZodMiniPipe({
184
- type: "pipe",
185
- in: in_,
186
- out
187
- });
188
- }
189
- const ZodMiniCustom = /* @__PURE__ */ $constructor("ZodMiniCustom", (inst, def) => {
190
- $ZodCustom.init(inst, def);
191
- ZodMiniType.init(inst, def);
192
- });
193
- /* @__NO_SIDE_EFFECTS__ */
194
- function custom(fn, _params) {
195
- return _custom(ZodMiniCustom, fn ?? (() => true), _params);
196
- }
197
- /* @__NO_SIDE_EFFECTS__ */
198
- function refine(fn, _params = {}) {
199
- return _refine(ZodMiniCustom, fn, _params);
200
- }
201
- //#endregion
2
+ import { i as hmac } from "./sha2-XLg3s2a9.js";
3
+ import { t as keccak_256 } from "./sha3-VSia5eGE.js";
4
+ import { t as sha256 } from "./sha256-DCLdwsRU.js";
5
+ import { B as _number, Cn as safeParseAsync, Dn as clone, Fn as normalizeParams, Gt as $ZodObject, H as _refine, Jt as $ZodPipe, K as _string, Lt as $ZodLiteral, On as defineLazy, Q as _unknown, Qt as $ZodString, Sn as safeParse, Tt as $ZodEnum, U as _regex, Un as $constructor, Ut as $ZodNumber, Zt as $ZodRecord, a as _boolean, an as $ZodUnion, bn as parse, d as _custom, en as $ZodTransform, on as $ZodUnknown, pt as $ZodBoolean, qt as $ZodOptional, tn as $ZodType, ut as $ZodArray, xn as parseAsync, xt as $ZodDiscriminatedUnion, yt as $ZodCustom } from "./api-B5mo8tpE.js";
202
6
  //#region node_modules/.pnpm/ox@0.14.10_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/version.js
203
7
  /** @internal */
204
8
  const version = "0.1.1";
@@ -1658,6 +1462,202 @@ function serialize$1(request) {
1658
1462
  });
1659
1463
  }
1660
1464
  //#endregion
1465
+ //#region node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/mini/schemas.js
1466
+ const ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
1467
+ if (!inst._zod) throw new Error("Uninitialized schema in ZodMiniType.");
1468
+ $ZodType.init(inst, def);
1469
+ inst.def = def;
1470
+ inst.type = def.type;
1471
+ inst.parse = (data, params) => parse(inst, data, params, { callee: inst.parse });
1472
+ inst.safeParse = (data, params) => safeParse(inst, data, params);
1473
+ inst.parseAsync = async (data, params) => parseAsync(inst, data, params, { callee: inst.parseAsync });
1474
+ inst.safeParseAsync = async (data, params) => safeParseAsync(inst, data, params);
1475
+ inst.check = (...checks) => {
1476
+ return inst.clone({
1477
+ ...def,
1478
+ checks: [...def.checks ?? [], ...checks.map((ch) => typeof ch === "function" ? { _zod: {
1479
+ check: ch,
1480
+ def: { check: "custom" },
1481
+ onattach: []
1482
+ } } : ch)]
1483
+ }, { parent: true });
1484
+ };
1485
+ inst.with = inst.check;
1486
+ inst.clone = (_def, params) => clone(inst, _def, params);
1487
+ inst.brand = () => inst;
1488
+ inst.register = ((reg, meta) => {
1489
+ reg.add(inst, meta);
1490
+ return inst;
1491
+ });
1492
+ inst.apply = (fn) => fn(inst);
1493
+ });
1494
+ const ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) => {
1495
+ $ZodString.init(inst, def);
1496
+ ZodMiniType.init(inst, def);
1497
+ });
1498
+ /* @__NO_SIDE_EFFECTS__ */
1499
+ function string(params) {
1500
+ return _string(ZodMiniString, params);
1501
+ }
1502
+ const ZodMiniNumber = /* @__PURE__ */ $constructor("ZodMiniNumber", (inst, def) => {
1503
+ $ZodNumber.init(inst, def);
1504
+ ZodMiniType.init(inst, def);
1505
+ });
1506
+ /* @__NO_SIDE_EFFECTS__ */
1507
+ function number(params) {
1508
+ return _number(ZodMiniNumber, params);
1509
+ }
1510
+ const ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
1511
+ $ZodBoolean.init(inst, def);
1512
+ ZodMiniType.init(inst, def);
1513
+ });
1514
+ /* @__NO_SIDE_EFFECTS__ */
1515
+ function boolean(params) {
1516
+ return _boolean(ZodMiniBoolean, params);
1517
+ }
1518
+ const ZodMiniUnknown = /* @__PURE__ */ $constructor("ZodMiniUnknown", (inst, def) => {
1519
+ $ZodUnknown.init(inst, def);
1520
+ ZodMiniType.init(inst, def);
1521
+ });
1522
+ /* @__NO_SIDE_EFFECTS__ */
1523
+ function unknown() {
1524
+ return _unknown(ZodMiniUnknown);
1525
+ }
1526
+ const ZodMiniArray = /* @__PURE__ */ $constructor("ZodMiniArray", (inst, def) => {
1527
+ $ZodArray.init(inst, def);
1528
+ ZodMiniType.init(inst, def);
1529
+ });
1530
+ /* @__NO_SIDE_EFFECTS__ */
1531
+ function array(element, params) {
1532
+ return new ZodMiniArray({
1533
+ type: "array",
1534
+ element,
1535
+ ...normalizeParams(params)
1536
+ });
1537
+ }
1538
+ const ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
1539
+ $ZodObject.init(inst, def);
1540
+ ZodMiniType.init(inst, def);
1541
+ defineLazy(inst, "shape", () => def.shape);
1542
+ });
1543
+ /* @__NO_SIDE_EFFECTS__ */
1544
+ function object(shape, params) {
1545
+ return new ZodMiniObject({
1546
+ type: "object",
1547
+ shape: shape ?? {},
1548
+ ...normalizeParams(params)
1549
+ });
1550
+ }
1551
+ const ZodMiniUnion = /* @__PURE__ */ $constructor("ZodMiniUnion", (inst, def) => {
1552
+ $ZodUnion.init(inst, def);
1553
+ ZodMiniType.init(inst, def);
1554
+ });
1555
+ /* @__NO_SIDE_EFFECTS__ */
1556
+ function union(options, params) {
1557
+ return new ZodMiniUnion({
1558
+ type: "union",
1559
+ options,
1560
+ ...normalizeParams(params)
1561
+ });
1562
+ }
1563
+ const ZodMiniDiscriminatedUnion = /* @__PURE__ */ $constructor("ZodMiniDiscriminatedUnion", (inst, def) => {
1564
+ $ZodDiscriminatedUnion.init(inst, def);
1565
+ ZodMiniType.init(inst, def);
1566
+ });
1567
+ /* @__NO_SIDE_EFFECTS__ */
1568
+ function discriminatedUnion(discriminator, options, params) {
1569
+ return new ZodMiniDiscriminatedUnion({
1570
+ type: "union",
1571
+ options,
1572
+ discriminator,
1573
+ ...normalizeParams(params)
1574
+ });
1575
+ }
1576
+ const ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
1577
+ $ZodRecord.init(inst, def);
1578
+ ZodMiniType.init(inst, def);
1579
+ });
1580
+ /* @__NO_SIDE_EFFECTS__ */
1581
+ function record(keyType, valueType, params) {
1582
+ return new ZodMiniRecord({
1583
+ type: "record",
1584
+ keyType,
1585
+ valueType,
1586
+ ...normalizeParams(params)
1587
+ });
1588
+ }
1589
+ const ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
1590
+ $ZodEnum.init(inst, def);
1591
+ ZodMiniType.init(inst, def);
1592
+ inst.options = Object.values(def.entries);
1593
+ });
1594
+ /* @__NO_SIDE_EFFECTS__ */
1595
+ function _enum(values, params) {
1596
+ return new ZodMiniEnum({
1597
+ type: "enum",
1598
+ entries: Array.isArray(values) ? Object.fromEntries(values.map((v) => [v, v])) : values,
1599
+ ...normalizeParams(params)
1600
+ });
1601
+ }
1602
+ const ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
1603
+ $ZodLiteral.init(inst, def);
1604
+ ZodMiniType.init(inst, def);
1605
+ });
1606
+ /* @__NO_SIDE_EFFECTS__ */
1607
+ function literal(value, params) {
1608
+ return new ZodMiniLiteral({
1609
+ type: "literal",
1610
+ values: Array.isArray(value) ? value : [value],
1611
+ ...normalizeParams(params)
1612
+ });
1613
+ }
1614
+ const ZodMiniTransform = /* @__PURE__ */ $constructor("ZodMiniTransform", (inst, def) => {
1615
+ $ZodTransform.init(inst, def);
1616
+ ZodMiniType.init(inst, def);
1617
+ });
1618
+ /* @__NO_SIDE_EFFECTS__ */
1619
+ function transform(fn) {
1620
+ return new ZodMiniTransform({
1621
+ type: "transform",
1622
+ transform: fn
1623
+ });
1624
+ }
1625
+ const ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
1626
+ $ZodOptional.init(inst, def);
1627
+ ZodMiniType.init(inst, def);
1628
+ });
1629
+ /* @__NO_SIDE_EFFECTS__ */
1630
+ function optional(innerType) {
1631
+ return new ZodMiniOptional({
1632
+ type: "optional",
1633
+ innerType
1634
+ });
1635
+ }
1636
+ const ZodMiniPipe = /* @__PURE__ */ $constructor("ZodMiniPipe", (inst, def) => {
1637
+ $ZodPipe.init(inst, def);
1638
+ ZodMiniType.init(inst, def);
1639
+ });
1640
+ /* @__NO_SIDE_EFFECTS__ */
1641
+ function pipe(in_, out) {
1642
+ return new ZodMiniPipe({
1643
+ type: "pipe",
1644
+ in: in_,
1645
+ out
1646
+ });
1647
+ }
1648
+ const ZodMiniCustom = /* @__PURE__ */ $constructor("ZodMiniCustom", (inst, def) => {
1649
+ $ZodCustom.init(inst, def);
1650
+ ZodMiniType.init(inst, def);
1651
+ });
1652
+ /* @__NO_SIDE_EFFECTS__ */
1653
+ function custom(fn, _params) {
1654
+ return _custom(ZodMiniCustom, fn ?? (() => true), _params);
1655
+ }
1656
+ /* @__NO_SIDE_EFFECTS__ */
1657
+ function refine(fn, _params = {}) {
1658
+ return _refine(ZodMiniCustom, fn, _params);
1659
+ }
1660
+ //#endregion
1661
1661
  //#region node_modules/.pnpm/mppx@0.5.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_7e96141f01ea299750883fead337550c/node_modules/mppx/dist/zod.js
1662
1662
  /** Numeric string amount (e.g., "1", "1.5", "1000000"). */
1663
1663
  function amount() {
@@ -2041,15 +2041,13 @@ function serialize(credential) {
2041
2041
  url: true
2042
2042
  })}`;
2043
2043
  }
2044
- /**
2045
- * Extracts the `Payment` scheme from an Authorization header value
2046
- * that may contain multiple schemes (comma-separated per RFC 9110).
2047
- *
2048
- * @param header - The raw Authorization header value.
2049
- * @returns The `Payment ...` scheme string, or `null` if not found.
2050
- */
2051
- function extractPaymentScheme(header) {
2052
- return header.split(",").map((s) => s.trim()).find((s) => /^Payment\s+/i.test(s)) ?? null;
2053
- }
2054
2044
  //#endregion
2055
- export { validate$1 as A, object as B, random$1 as C, toBytes$1 as D, toBigInt as E, boolean as F, transform as G, pipe as H, custom as I, union as K, discriminatedUnion as L, BaseError as M, _enum as N, toNumber as O, array as P, literal as R, padRight$1 as S, slice as T, refine as U, optional as V, string as W, fromBoolean as _, fromResponseList as a, fromString$2 as b, signature as c, keccak256 as d, fromString$1 as f, from$2 as g, concat as h, fromResponse as i, stringify as j, toString$2 as k, fromString as l, IntegerOutOfRangeError as m, extractPaymentScheme as n, amount as o, validate as p, serialize as r, hash as s, deserialize as t, toString as u, fromBytes$1 as v, size$1 as w, padLeft as x, fromNumber as y, number as z };
2045
+ //#region node_modules/.pnpm/mppx@0.5.1_@modelcontextprotocol+sdk@1.27.1_zod@4.3.6__express@5.2.1_hono@4.12.9_openap_7e96141f01ea299750883fead337550c/node_modules/mppx/dist/Mcp.js
2046
+ /** MCP JSON-RPC error code for payment required. */
2047
+ const paymentRequiredCode = -32042;
2048
+ /** MCP metadata key for credentials. */
2049
+ const credentialMetaKey = "org.paymentauth/credential";
2050
+ /** MCP metadata key for receipts. */
2051
+ const receiptMetaKey = "org.paymentauth/receipt";
2052
+ //#endregion
2053
+ export { concat as A, slice as B, transform as C, fromString$1 as D, keccak256 as E, fromString$2 as F, validate$1 as G, toBytes$1 as H, padLeft as I, stringify as K, padRight$1 as L, fromBoolean as M, fromBytes$1 as N, validate as O, fromNumber as P, random$1 as R, string as S, toString as T, toNumber as U, toBigInt as V, toString$2 as W, number as _, serialize as a, pipe as b, amount as c, _enum as d, array as f, literal as g, discriminatedUnion as h, deserialize as i, from$2 as j, IntegerOutOfRangeError as k, hash as l, custom as m, paymentRequiredCode as n, fromResponse as o, boolean as p, BaseError as q, receiptMetaKey as r, fromResponseList as s, credentialMetaKey as t, signature as u, object as v, union as w, refine as x, optional as y, size$1 as z };
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import "./chain-C_3Km9Dx.js";
3
+ import { t as privateKeyToAccount } from "./accounts-D9KsVVpJ.js";
4
+ export { privateKeyToAccount };