mppx 0.0.0-main-20260715214817
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/CHANGELOG.md +841 -0
- package/LICENSE +21 -0
- package/README.md +178 -0
- package/dist/BodyDigest.d.ts +42 -0
- package/dist/BodyDigest.d.ts.map +1 -0
- package/dist/BodyDigest.js +41 -0
- package/dist/BodyDigest.js.map +1 -0
- package/dist/Challenge.d.ts +312 -0
- package/dist/Challenge.d.ts.map +1 -0
- package/dist/Challenge.js +500 -0
- package/dist/Challenge.js.map +1 -0
- package/dist/Constants.d.ts +46 -0
- package/dist/Constants.d.ts.map +1 -0
- package/dist/Constants.js +46 -0
- package/dist/Constants.js.map +1 -0
- package/dist/Credential.d.ts +107 -0
- package/dist/Credential.d.ts.map +1 -0
- package/dist/Credential.js +172 -0
- package/dist/Credential.js.map +1 -0
- package/dist/Errors.d.ts +304 -0
- package/dist/Errors.d.ts.map +1 -0
- package/dist/Errors.js +250 -0
- package/dist/Errors.js.map +1 -0
- package/dist/Expires.d.ts +22 -0
- package/dist/Expires.d.ts.map +1 -0
- package/dist/Expires.js +50 -0
- package/dist/Expires.js.map +1 -0
- package/dist/Html.d.ts +11 -0
- package/dist/Html.d.ts.map +1 -0
- package/dist/Html.js +41 -0
- package/dist/Html.js.map +1 -0
- package/dist/Mcp.d.ts +77 -0
- package/dist/Mcp.d.ts.map +1 -0
- package/dist/Mcp.js +11 -0
- package/dist/Mcp.js.map +1 -0
- package/dist/Method.d.ts +245 -0
- package/dist/Method.d.ts.map +1 -0
- package/dist/Method.js +88 -0
- package/dist/Method.js.map +1 -0
- package/dist/PaymentRequest.d.ts +88 -0
- package/dist/PaymentRequest.d.ts.map +1 -0
- package/dist/PaymentRequest.js +81 -0
- package/dist/PaymentRequest.js.map +1 -0
- package/dist/Receipt.d.ts +124 -0
- package/dist/Receipt.d.ts.map +1 -0
- package/dist/Receipt.js +115 -0
- package/dist/Receipt.js.map +1 -0
- package/dist/Store.d.ts +127 -0
- package/dist/Store.d.ts.map +1 -0
- package/dist/Store.js +147 -0
- package/dist/Store.js.map +1 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +4 -0
- package/dist/bin.js.map +1 -0
- package/dist/cli/account.d.ts +53 -0
- package/dist/cli/account.d.ts.map +1 -0
- package/dist/cli/account.js +227 -0
- package/dist/cli/account.js.map +1 -0
- package/dist/cli/cli.d.ts +33 -0
- package/dist/cli/cli.d.ts.map +1 -0
- package/dist/cli/cli.js +1454 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/cli/config.d.ts +41 -0
- package/dist/cli/config.d.ts.map +1 -0
- package/dist/cli/config.js +30 -0
- package/dist/cli/config.js.map +1 -0
- package/dist/cli/internal.d.ts +25 -0
- package/dist/cli/internal.d.ts.map +1 -0
- package/dist/cli/internal.js +74 -0
- package/dist/cli/internal.js.map +1 -0
- package/dist/cli/plugins/evm.d.ts +2 -0
- package/dist/cli/plugins/evm.d.ts.map +1 -0
- package/dist/cli/plugins/evm.js +51 -0
- package/dist/cli/plugins/evm.js.map +1 -0
- package/dist/cli/plugins/index.d.ts +5 -0
- package/dist/cli/plugins/index.d.ts.map +1 -0
- package/dist/cli/plugins/index.js +5 -0
- package/dist/cli/plugins/index.js.map +1 -0
- package/dist/cli/plugins/plugin.d.ts +75 -0
- package/dist/cli/plugins/plugin.d.ts.map +1 -0
- package/dist/cli/plugins/plugin.js +4 -0
- package/dist/cli/plugins/plugin.js.map +1 -0
- package/dist/cli/plugins/stripe.d.ts +2 -0
- package/dist/cli/plugins/stripe.d.ts.map +1 -0
- package/dist/cli/plugins/stripe.js +147 -0
- package/dist/cli/plugins/stripe.js.map +1 -0
- package/dist/cli/plugins/tempo.d.ts +26 -0
- package/dist/cli/plugins/tempo.d.ts.map +1 -0
- package/dist/cli/plugins/tempo.js +904 -0
- package/dist/cli/plugins/tempo.js.map +1 -0
- package/dist/cli/utils.d.ts +108 -0
- package/dist/cli/utils.d.ts.map +1 -0
- package/dist/cli/utils.js +302 -0
- package/dist/cli/utils.js.map +1 -0
- package/dist/cli/validate/challenge.d.ts +18 -0
- package/dist/cli/validate/challenge.d.ts.map +1 -0
- package/dist/cli/validate/challenge.js +330 -0
- package/dist/cli/validate/challenge.js.map +1 -0
- package/dist/cli/validate/discovery.d.ts +11 -0
- package/dist/cli/validate/discovery.d.ts.map +1 -0
- package/dist/cli/validate/discovery.js +223 -0
- package/dist/cli/validate/discovery.js.map +1 -0
- package/dist/cli/validate/helpers.d.ts +47 -0
- package/dist/cli/validate/helpers.d.ts.map +1 -0
- package/dist/cli/validate/helpers.js +134 -0
- package/dist/cli/validate/helpers.js.map +1 -0
- package/dist/cli/validate/index.d.ts +19 -0
- package/dist/cli/validate/index.d.ts.map +1 -0
- package/dist/cli/validate/index.js +177 -0
- package/dist/cli/validate/index.js.map +1 -0
- package/dist/cli/validate/payment.d.ts +11 -0
- package/dist/cli/validate/payment.d.ts.map +1 -0
- package/dist/cli/validate/payment.js +587 -0
- package/dist/cli/validate/payment.js.map +1 -0
- package/dist/client/Methods.d.ts +9 -0
- package/dist/client/Methods.d.ts.map +1 -0
- package/dist/client/Methods.js +9 -0
- package/dist/client/Methods.js.map +1 -0
- package/dist/client/Mppx.d.ts +119 -0
- package/dist/client/Mppx.d.ts.map +1 -0
- package/dist/client/Mppx.js +214 -0
- package/dist/client/Mppx.js.map +1 -0
- package/dist/client/Transport.d.ts +60 -0
- package/dist/client/Transport.d.ts.map +1 -0
- package/dist/client/Transport.js +123 -0
- package/dist/client/Transport.js.map +1 -0
- package/dist/client/index.d.ts +10 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +8 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/internal/Fetch.d.ts +173 -0
- package/dist/client/internal/Fetch.d.ts.map +1 -0
- package/dist/client/internal/Fetch.js +548 -0
- package/dist/client/internal/Fetch.js.map +1 -0
- package/dist/client/internal/protocols/Mcp.d.ts +13 -0
- package/dist/client/internal/protocols/Mcp.d.ts.map +1 -0
- package/dist/client/internal/protocols/Mcp.js +177 -0
- package/dist/client/internal/protocols/Mcp.js.map +1 -0
- package/dist/client/internal/protocols/Mpp.d.ts +4 -0
- package/dist/client/internal/protocols/Mpp.d.ts.map +1 -0
- package/dist/client/internal/protocols/Mpp.js +18 -0
- package/dist/client/internal/protocols/Mpp.js.map +1 -0
- package/dist/client/internal/protocols/Protocol.d.ts +10 -0
- package/dist/client/internal/protocols/Protocol.d.ts.map +1 -0
- package/dist/client/internal/protocols/Protocol.js +2 -0
- package/dist/client/internal/protocols/Protocol.js.map +1 -0
- package/dist/client/internal/protocols/Shared.d.ts +5 -0
- package/dist/client/internal/protocols/Shared.d.ts.map +1 -0
- package/dist/client/internal/protocols/Shared.js +20 -0
- package/dist/client/internal/protocols/Shared.js.map +1 -0
- package/dist/client/internal/protocols/X402.d.ts +8 -0
- package/dist/client/internal/protocols/X402.d.ts.map +1 -0
- package/dist/client/internal/protocols/X402.js +45 -0
- package/dist/client/internal/protocols/X402.js.map +1 -0
- package/dist/discovery/Discovery.d.ts +362 -0
- package/dist/discovery/Discovery.d.ts.map +1 -0
- package/dist/discovery/Discovery.js +82 -0
- package/dist/discovery/Discovery.js.map +1 -0
- package/dist/discovery/OpenApi.d.ts +61 -0
- package/dist/discovery/OpenApi.d.ts.map +1 -0
- package/dist/discovery/OpenApi.js +140 -0
- package/dist/discovery/OpenApi.js.map +1 -0
- package/dist/discovery/Validate.d.ts +10 -0
- package/dist/discovery/Validate.d.ts.map +1 -0
- package/dist/discovery/Validate.js +64 -0
- package/dist/discovery/Validate.js.map +1 -0
- package/dist/discovery/index.d.ts +4 -0
- package/dist/discovery/index.d.ts.map +1 -0
- package/dist/discovery/index.js +4 -0
- package/dist/discovery/index.js.map +1 -0
- package/dist/evm/Assets.d.ts +2 -0
- package/dist/evm/Assets.d.ts.map +1 -0
- package/dist/evm/Assets.js +2 -0
- package/dist/evm/Assets.js.map +1 -0
- package/dist/evm/Chains.d.ts +9 -0
- package/dist/evm/Chains.d.ts.map +1 -0
- package/dist/evm/Chains.js +9 -0
- package/dist/evm/Chains.js.map +1 -0
- package/dist/evm/Methods.d.ts +68 -0
- package/dist/evm/Methods.d.ts.map +1 -0
- package/dist/evm/Methods.js +28 -0
- package/dist/evm/Methods.js.map +1 -0
- package/dist/evm/Types.d.ts +143 -0
- package/dist/evm/Types.d.ts.map +1 -0
- package/dist/evm/Types.js +102 -0
- package/dist/evm/Types.js.map +1 -0
- package/dist/evm/client/Charge.d.ts +102 -0
- package/dist/evm/client/Charge.d.ts.map +1 -0
- package/dist/evm/client/Charge.js +135 -0
- package/dist/evm/client/Charge.js.map +1 -0
- package/dist/evm/client/Methods.d.ts +81 -0
- package/dist/evm/client/Methods.d.ts.map +1 -0
- package/dist/evm/client/Methods.js +16 -0
- package/dist/evm/client/Methods.js.map +1 -0
- package/dist/evm/client/index.d.ts +7 -0
- package/dist/evm/client/index.d.ts.map +1 -0
- package/dist/evm/client/index.js +7 -0
- package/dist/evm/client/index.js.map +1 -0
- package/dist/evm/index.d.ts +12 -0
- package/dist/evm/index.d.ts.map +1 -0
- package/dist/evm/index.js +11 -0
- package/dist/evm/index.js.map +1 -0
- package/dist/evm/server/Charge.d.ts +62 -0
- package/dist/evm/server/Charge.d.ts.map +1 -0
- package/dist/evm/server/Charge.js +180 -0
- package/dist/evm/server/Charge.js.map +1 -0
- package/dist/evm/server/Methods.d.ts +80 -0
- package/dist/evm/server/Methods.d.ts.map +1 -0
- package/dist/evm/server/Methods.js +16 -0
- package/dist/evm/server/Methods.js.map +1 -0
- package/dist/evm/server/index.d.ts +7 -0
- package/dist/evm/server/index.d.ts.map +1 -0
- package/dist/evm/server/index.js +7 -0
- package/dist/evm/server/index.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/AcceptPayment.d.ts +91 -0
- package/dist/internal/AcceptPayment.d.ts.map +1 -0
- package/dist/internal/AcceptPayment.js +218 -0
- package/dist/internal/AcceptPayment.js.map +1 -0
- package/dist/internal/HeaderCodec.d.ts +18 -0
- package/dist/internal/HeaderCodec.d.ts.map +1 -0
- package/dist/internal/HeaderCodec.js +31 -0
- package/dist/internal/HeaderCodec.js.map +1 -0
- package/dist/internal/constantTimeEqual.d.ts +3 -0
- package/dist/internal/constantTimeEqual.d.ts.map +1 -0
- package/dist/internal/constantTimeEqual.js +11 -0
- package/dist/internal/constantTimeEqual.js.map +1 -0
- package/dist/internal/env.d.ts +19 -0
- package/dist/internal/env.d.ts.map +1 -0
- package/dist/internal/env.js +50 -0
- package/dist/internal/env.js.map +1 -0
- package/dist/internal/types.d.ts +335 -0
- package/dist/internal/types.d.ts.map +1 -0
- package/dist/internal/types.js +2 -0
- package/dist/internal/types.js.map +1 -0
- package/dist/mcp/client/McpClient.d.ts +101 -0
- package/dist/mcp/client/McpClient.d.ts.map +1 -0
- package/dist/mcp/client/McpClient.js +162 -0
- package/dist/mcp/client/McpClient.js.map +1 -0
- package/dist/mcp/client/index.d.ts +3 -0
- package/dist/mcp/client/index.d.ts.map +1 -0
- package/dist/mcp/client/index.js +3 -0
- package/dist/mcp/client/index.js.map +1 -0
- package/dist/mcp/server/Transport.d.ts +43 -0
- package/dist/mcp/server/Transport.d.ts.map +1 -0
- package/dist/mcp/server/Transport.js +84 -0
- package/dist/mcp/server/Transport.js.map +1 -0
- package/dist/mcp/server/index.d.ts +2 -0
- package/dist/mcp/server/index.d.ts.map +1 -0
- package/dist/mcp/server/index.js +2 -0
- package/dist/mcp/server/index.js.map +1 -0
- package/dist/middlewares/elysia.d.ts +102 -0
- package/dist/middlewares/elysia.d.ts.map +1 -0
- package/dist/middlewares/elysia.js +93 -0
- package/dist/middlewares/elysia.js.map +1 -0
- package/dist/middlewares/express.d.ts +58 -0
- package/dist/middlewares/express.d.ts.map +1 -0
- package/dist/middlewares/express.js +112 -0
- package/dist/middlewares/express.js.map +1 -0
- package/dist/middlewares/hono.d.ts +64 -0
- package/dist/middlewares/hono.d.ts.map +1 -0
- package/dist/middlewares/hono.js +126 -0
- package/dist/middlewares/hono.js.map +1 -0
- package/dist/middlewares/internal/mppx.d.ts +24 -0
- package/dist/middlewares/internal/mppx.d.ts.map +1 -0
- package/dist/middlewares/internal/mppx.js +34 -0
- package/dist/middlewares/internal/mppx.js.map +1 -0
- package/dist/middlewares/nextjs.d.ts +56 -0
- package/dist/middlewares/nextjs.d.ts.map +1 -0
- package/dist/middlewares/nextjs.js +86 -0
- package/dist/middlewares/nextjs.js.map +1 -0
- package/dist/proxy/Proxy.d.ts +57 -0
- package/dist/proxy/Proxy.d.ts.map +1 -0
- package/dist/proxy/Proxy.js +256 -0
- package/dist/proxy/Proxy.js.map +1 -0
- package/dist/proxy/Service.d.ts +119 -0
- package/dist/proxy/Service.d.ts.map +1 -0
- package/dist/proxy/Service.js +123 -0
- package/dist/proxy/Service.js.map +1 -0
- package/dist/proxy/index.d.ts +7 -0
- package/dist/proxy/index.d.ts.map +1 -0
- package/dist/proxy/index.js +7 -0
- package/dist/proxy/index.js.map +1 -0
- package/dist/proxy/internal/Headers.d.ts +17 -0
- package/dist/proxy/internal/Headers.d.ts.map +1 -0
- package/dist/proxy/internal/Headers.js +66 -0
- package/dist/proxy/internal/Headers.js.map +1 -0
- package/dist/proxy/internal/Route.d.ts +23 -0
- package/dist/proxy/internal/Route.d.ts.map +1 -0
- package/dist/proxy/internal/Route.js +58 -0
- package/dist/proxy/internal/Route.js.map +1 -0
- package/dist/proxy/services/anthropic.d.ts +29 -0
- package/dist/proxy/services/anthropic.d.ts.map +1 -0
- package/dist/proxy/services/anthropic.js +37 -0
- package/dist/proxy/services/anthropic.js.map +1 -0
- package/dist/proxy/services/openai.d.ts +30 -0
- package/dist/proxy/services/openai.d.ts.map +1 -0
- package/dist/proxy/services/openai.js +40 -0
- package/dist/proxy/services/openai.js.map +1 -0
- package/dist/proxy/services/stripe.d.ts +29 -0
- package/dist/proxy/services/stripe.d.ts.map +1 -0
- package/dist/proxy/services/stripe.js +39 -0
- package/dist/proxy/services/stripe.js.map +1 -0
- package/dist/server/Methods.d.ts +4 -0
- package/dist/server/Methods.d.ts.map +1 -0
- package/dist/server/Methods.js +4 -0
- package/dist/server/Methods.js.map +1 -0
- package/dist/server/Mppx.d.ts +350 -0
- package/dist/server/Mppx.d.ts.map +1 -0
- package/dist/server/Mppx.js +1565 -0
- package/dist/server/Mppx.js.map +1 -0
- package/dist/server/NodeListener.d.ts +9 -0
- package/dist/server/NodeListener.d.ts.map +1 -0
- package/dist/server/NodeListener.js +43 -0
- package/dist/server/NodeListener.js.map +1 -0
- package/dist/server/Request.d.ts +24 -0
- package/dist/server/Request.d.ts.map +1 -0
- package/dist/server/Request.js +129 -0
- package/dist/server/Request.js.map +1 -0
- package/dist/server/Response.d.ts +27 -0
- package/dist/server/Response.d.ts.map +1 -0
- package/dist/server/Response.js +33 -0
- package/dist/server/Response.js.map +1 -0
- package/dist/server/Transport.d.ts +113 -0
- package/dist/server/Transport.d.ts.map +1 -0
- package/dist/server/Transport.js +207 -0
- package/dist/server/Transport.js.map +1 -0
- package/dist/server/index.d.ts +10 -0
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/index.js +10 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/internal/html/compose.main.gen.d.ts +2 -0
- package/dist/server/internal/html/compose.main.gen.d.ts.map +1 -0
- package/dist/server/internal/html/compose.main.gen.js +3 -0
- package/dist/server/internal/html/compose.main.gen.js.map +1 -0
- package/dist/server/internal/html/config.d.ts +145 -0
- package/dist/server/internal/html/config.d.ts.map +1 -0
- package/dist/server/internal/html/config.js +516 -0
- package/dist/server/internal/html/config.js.map +1 -0
- package/dist/server/internal/html/constants.d.ts +26 -0
- package/dist/server/internal/html/constants.d.ts.map +1 -0
- package/dist/server/internal/html/constants.js +26 -0
- package/dist/server/internal/html/constants.js.map +1 -0
- package/dist/server/internal/html/serviceWorker.client.d.ts +2 -0
- package/dist/server/internal/html/serviceWorker.client.d.ts.map +1 -0
- package/dist/server/internal/html/serviceWorker.client.js +26 -0
- package/dist/server/internal/html/serviceWorker.client.js.map +1 -0
- package/dist/server/internal/html/serviceWorker.gen.d.ts +2 -0
- package/dist/server/internal/html/serviceWorker.gen.d.ts.map +1 -0
- package/dist/server/internal/html/serviceWorker.gen.js +3 -0
- package/dist/server/internal/html/serviceWorker.gen.js.map +1 -0
- package/dist/server/internal/scope.d.ts +19 -0
- package/dist/server/internal/scope.d.ts.map +1 -0
- package/dist/server/internal/scope.js +33 -0
- package/dist/server/internal/scope.js.map +1 -0
- package/dist/stripe/Methods.d.ts +51 -0
- package/dist/stripe/Methods.d.ts.map +1 -0
- package/dist/stripe/Methods.js +40 -0
- package/dist/stripe/Methods.js.map +1 -0
- package/dist/stripe/client/Charge.d.ts +115 -0
- package/dist/stripe/client/Charge.d.ts.map +1 -0
- package/dist/stripe/client/Charge.js +84 -0
- package/dist/stripe/client/Charge.js.map +1 -0
- package/dist/stripe/client/Methods.d.ts +78 -0
- package/dist/stripe/client/Methods.d.ts.map +1 -0
- package/dist/stripe/client/Methods.js +34 -0
- package/dist/stripe/client/Methods.js.map +1 -0
- package/dist/stripe/client/index.d.ts +3 -0
- package/dist/stripe/client/index.d.ts.map +1 -0
- package/dist/stripe/client/index.js +3 -0
- package/dist/stripe/client/index.js.map +1 -0
- package/dist/stripe/index.d.ts +2 -0
- package/dist/stripe/index.d.ts.map +1 -0
- package/dist/stripe/index.js +2 -0
- package/dist/stripe/index.js.map +1 -0
- package/dist/stripe/internal/constants.d.ts +8 -0
- package/dist/stripe/internal/constants.d.ts.map +1 -0
- package/dist/stripe/internal/constants.js +8 -0
- package/dist/stripe/internal/constants.js.map +1 -0
- package/dist/stripe/internal/types.d.ts +34 -0
- package/dist/stripe/internal/types.d.ts.map +1 -0
- package/dist/stripe/internal/types.js +2 -0
- package/dist/stripe/internal/types.js.map +1 -0
- package/dist/stripe/server/Charge.d.ts +132 -0
- package/dist/stripe/server/Charge.d.ts.map +1 -0
- package/dist/stripe/server/Charge.js +283 -0
- package/dist/stripe/server/Charge.js.map +1 -0
- package/dist/stripe/server/Methods.d.ts +63 -0
- package/dist/stripe/server/Methods.d.ts.map +1 -0
- package/dist/stripe/server/Methods.js +21 -0
- package/dist/stripe/server/Methods.js.map +1 -0
- package/dist/stripe/server/index.d.ts +3 -0
- package/dist/stripe/server/index.d.ts.map +1 -0
- package/dist/stripe/server/index.js +3 -0
- package/dist/stripe/server/index.js.map +1 -0
- package/dist/stripe/server/internal/html/types.d.ts +2 -0
- package/dist/stripe/server/internal/html/types.d.ts.map +1 -0
- package/dist/stripe/server/internal/html/types.js +2 -0
- package/dist/stripe/server/internal/html/types.js.map +1 -0
- package/dist/stripe/server/internal/html.gen.d.ts +2 -0
- package/dist/stripe/server/internal/html.gen.d.ts.map +1 -0
- package/dist/stripe/server/internal/html.gen.js +3 -0
- package/dist/stripe/server/internal/html.gen.js.map +1 -0
- package/dist/tempo/Attribution.d.ts +118 -0
- package/dist/tempo/Attribution.d.ts.map +1 -0
- package/dist/tempo/Attribution.js +150 -0
- package/dist/tempo/Attribution.js.map +1 -0
- package/dist/tempo/Methods.d.ts +273 -0
- package/dist/tempo/Methods.d.ts.map +1 -0
- package/dist/tempo/Methods.js +270 -0
- package/dist/tempo/Methods.js.map +1 -0
- package/dist/tempo/Proof.d.ts +101 -0
- package/dist/tempo/Proof.d.ts.map +1 -0
- package/dist/tempo/Proof.js +49 -0
- package/dist/tempo/Proof.js.map +1 -0
- package/dist/tempo/client/Charge.d.ts +148 -0
- package/dist/tempo/client/Charge.d.ts.map +1 -0
- package/dist/tempo/client/Charge.js +190 -0
- package/dist/tempo/client/Charge.js.map +1 -0
- package/dist/tempo/client/Methods.d.ts +220 -0
- package/dist/tempo/client/Methods.d.ts.map +1 -0
- package/dist/tempo/client/Methods.js +37 -0
- package/dist/tempo/client/Methods.js.map +1 -0
- package/dist/tempo/client/ResolveAccount.d.ts +40 -0
- package/dist/tempo/client/ResolveAccount.d.ts.map +1 -0
- package/dist/tempo/client/ResolveAccount.js +2 -0
- package/dist/tempo/client/ResolveAccount.js.map +1 -0
- package/dist/tempo/client/Subscription.d.ts +115 -0
- package/dist/tempo/client/Subscription.d.ts.map +1 -0
- package/dist/tempo/client/Subscription.js +101 -0
- package/dist/tempo/client/Subscription.js.map +1 -0
- package/dist/tempo/client/index.d.ts +10 -0
- package/dist/tempo/client/index.d.ts.map +1 -0
- package/dist/tempo/client/index.js +8 -0
- package/dist/tempo/client/index.js.map +1 -0
- package/dist/tempo/index.d.ts +6 -0
- package/dist/tempo/index.d.ts.map +1 -0
- package/dist/tempo/index.js +6 -0
- package/dist/tempo/index.js.map +1 -0
- package/dist/tempo/internal/account.d.ts +33 -0
- package/dist/tempo/internal/account.d.ts.map +1 -0
- package/dist/tempo/internal/account.js +45 -0
- package/dist/tempo/internal/account.js.map +1 -0
- package/dist/tempo/internal/address.d.ts +3 -0
- package/dist/tempo/internal/address.d.ts.map +1 -0
- package/dist/tempo/internal/address.js +4 -0
- package/dist/tempo/internal/address.js.map +1 -0
- package/dist/tempo/internal/auto-swap.d.ts +49 -0
- package/dist/tempo/internal/auto-swap.d.ts.map +1 -0
- package/dist/tempo/internal/auto-swap.js +104 -0
- package/dist/tempo/internal/auto-swap.js.map +1 -0
- package/dist/tempo/internal/charge.d.ts +20 -0
- package/dist/tempo/internal/charge.d.ts.map +1 -0
- package/dist/tempo/internal/charge.js +23 -0
- package/dist/tempo/internal/charge.js.map +1 -0
- package/dist/tempo/internal/defaults.d.ts +44 -0
- package/dist/tempo/internal/defaults.d.ts.map +1 -0
- package/dist/tempo/internal/defaults.js +40 -0
- package/dist/tempo/internal/defaults.js.map +1 -0
- package/dist/tempo/internal/fee-payer.d.ts +112 -0
- package/dist/tempo/internal/fee-payer.d.ts.map +1 -0
- package/dist/tempo/internal/fee-payer.js +537 -0
- package/dist/tempo/internal/fee-payer.js.map +1 -0
- package/dist/tempo/internal/fee-token.d.ts +15 -0
- package/dist/tempo/internal/fee-token.d.ts.map +1 -0
- package/dist/tempo/internal/fee-token.js +57 -0
- package/dist/tempo/internal/fee-token.js.map +1 -0
- package/dist/tempo/internal/proof.d.ts +99 -0
- package/dist/tempo/internal/proof.d.ts.map +1 -0
- package/dist/tempo/internal/proof.js +71 -0
- package/dist/tempo/internal/proof.js.map +1 -0
- package/dist/tempo/internal/selectors.d.ts +5 -0
- package/dist/tempo/internal/selectors.d.ts.map +1 -0
- package/dist/tempo/internal/selectors.js +7 -0
- package/dist/tempo/internal/selectors.js.map +1 -0
- package/dist/tempo/internal/types.d.ts +11 -0
- package/dist/tempo/internal/types.d.ts.map +1 -0
- package/dist/tempo/internal/types.js +2 -0
- package/dist/tempo/internal/types.js.map +1 -0
- package/dist/tempo/legacy/client/ChannelOps.d.ts +67 -0
- package/dist/tempo/legacy/client/ChannelOps.d.ts.map +1 -0
- package/dist/tempo/legacy/client/ChannelOps.js +157 -0
- package/dist/tempo/legacy/client/ChannelOps.js.map +1 -0
- package/dist/tempo/legacy/client/Session.d.ts +180 -0
- package/dist/tempo/legacy/client/Session.d.ts.map +1 -0
- package/dist/tempo/legacy/client/Session.js +272 -0
- package/dist/tempo/legacy/client/Session.js.map +1 -0
- package/dist/tempo/legacy/client/SessionManager.d.ts +98 -0
- package/dist/tempo/legacy/client/SessionManager.d.ts.map +1 -0
- package/dist/tempo/legacy/client/SessionManager.js +704 -0
- package/dist/tempo/legacy/client/SessionManager.js.map +1 -0
- package/dist/tempo/legacy/client/index.d.ts +7 -0
- package/dist/tempo/legacy/client/index.d.ts.map +1 -0
- package/dist/tempo/legacy/client/index.js +5 -0
- package/dist/tempo/legacy/client/index.js.map +1 -0
- package/dist/tempo/legacy/index.d.ts +7 -0
- package/dist/tempo/legacy/index.d.ts.map +1 -0
- package/dist/tempo/legacy/index.js +7 -0
- package/dist/tempo/legacy/index.js.map +1 -0
- package/dist/tempo/legacy/server/Session.d.ts +208 -0
- package/dist/tempo/legacy/server/Session.d.ts.map +1 -0
- package/dist/tempo/legacy/server/Session.js +698 -0
- package/dist/tempo/legacy/server/Session.js.map +1 -0
- package/dist/tempo/legacy/server/index.d.ts +5 -0
- package/dist/tempo/legacy/server/index.d.ts.map +1 -0
- package/dist/tempo/legacy/server/index.js +5 -0
- package/dist/tempo/legacy/server/index.js.map +1 -0
- package/dist/tempo/legacy/session/Chain.d.ts +90 -0
- package/dist/tempo/legacy/session/Chain.d.ts.map +1 -0
- package/dist/tempo/legacy/session/Chain.js +509 -0
- package/dist/tempo/legacy/session/Chain.js.map +1 -0
- package/dist/tempo/legacy/session/Channel.d.ts +27 -0
- package/dist/tempo/legacy/session/Channel.d.ts.map +1 -0
- package/dist/tempo/legacy/session/Channel.js +27 -0
- package/dist/tempo/legacy/session/Channel.js.map +1 -0
- package/dist/tempo/legacy/session/ChannelStore.d.ts +22 -0
- package/dist/tempo/legacy/session/ChannelStore.d.ts.map +1 -0
- package/dist/tempo/legacy/session/ChannelStore.js +6 -0
- package/dist/tempo/legacy/session/ChannelStore.js.map +1 -0
- package/dist/tempo/legacy/session/Types.d.ts +73 -0
- package/dist/tempo/legacy/session/Types.d.ts.map +1 -0
- package/dist/tempo/legacy/session/Types.js +2 -0
- package/dist/tempo/legacy/session/Types.js.map +1 -0
- package/dist/tempo/legacy/session/Voucher.d.ts +20 -0
- package/dist/tempo/legacy/session/Voucher.d.ts.map +1 -0
- package/dist/tempo/legacy/session/Voucher.js +132 -0
- package/dist/tempo/legacy/session/Voucher.js.map +1 -0
- package/dist/tempo/legacy/session/escrow.abi.d.ts +599 -0
- package/dist/tempo/legacy/session/escrow.abi.d.ts.map +1 -0
- package/dist/tempo/legacy/session/escrow.abi.js +761 -0
- package/dist/tempo/legacy/session/escrow.abi.js.map +1 -0
- package/dist/tempo/legacy/session/index.d.ts +9 -0
- package/dist/tempo/legacy/session/index.d.ts.map +1 -0
- package/dist/tempo/legacy/session/index.js +9 -0
- package/dist/tempo/legacy/session/index.js.map +1 -0
- package/dist/tempo/server/Charge.d.ts +176 -0
- package/dist/tempo/server/Charge.d.ts.map +1 -0
- package/dist/tempo/server/Charge.js +841 -0
- package/dist/tempo/server/Charge.js.map +1 -0
- package/dist/tempo/server/Methods.d.ts +233 -0
- package/dist/tempo/server/Methods.d.ts.map +1 -0
- package/dist/tempo/server/Methods.js +67 -0
- package/dist/tempo/server/Methods.js.map +1 -0
- package/dist/tempo/server/Subscription.d.ts +260 -0
- package/dist/tempo/server/Subscription.d.ts.map +1 -0
- package/dist/tempo/server/Subscription.js +842 -0
- package/dist/tempo/server/Subscription.js.map +1 -0
- package/dist/tempo/server/index.d.ts +9 -0
- package/dist/tempo/server/index.d.ts.map +1 -0
- package/dist/tempo/server/index.js +8 -0
- package/dist/tempo/server/index.js.map +1 -0
- package/dist/tempo/server/internal/html.gen.d.ts +2 -0
- package/dist/tempo/server/internal/html.gen.d.ts.map +1 -0
- package/dist/tempo/server/internal/html.gen.js +3 -0
- package/dist/tempo/server/internal/html.gen.js.map +1 -0
- package/dist/tempo/server/internal/request-body.d.ts +13 -0
- package/dist/tempo/server/internal/request-body.d.ts.map +1 -0
- package/dist/tempo/server/internal/request-body.js +49 -0
- package/dist/tempo/server/internal/request-body.js.map +1 -0
- package/dist/tempo/server/internal/transport.d.ts +51 -0
- package/dist/tempo/server/internal/transport.d.ts.map +1 -0
- package/dist/tempo/server/internal/transport.js +241 -0
- package/dist/tempo/server/internal/transport.js.map +1 -0
- package/dist/tempo/session/Snapshot.d.ts +32 -0
- package/dist/tempo/session/Snapshot.d.ts.map +1 -0
- package/dist/tempo/session/Snapshot.js +37 -0
- package/dist/tempo/session/Snapshot.js.map +1 -0
- package/dist/tempo/session/client/ChannelOps.d.ts +81 -0
- package/dist/tempo/session/client/ChannelOps.d.ts.map +1 -0
- package/dist/tempo/session/client/ChannelOps.js +201 -0
- package/dist/tempo/session/client/ChannelOps.js.map +1 -0
- package/dist/tempo/session/client/ChannelStore.d.ts +51 -0
- package/dist/tempo/session/client/ChannelStore.d.ts.map +1 -0
- package/dist/tempo/session/client/ChannelStore.js +63 -0
- package/dist/tempo/session/client/ChannelStore.js.map +1 -0
- package/dist/tempo/session/client/CredentialState.d.ts +245 -0
- package/dist/tempo/session/client/CredentialState.d.ts.map +1 -0
- package/dist/tempo/session/client/CredentialState.js +419 -0
- package/dist/tempo/session/client/CredentialState.js.map +1 -0
- package/dist/tempo/session/client/ReceiptCoordinator.d.ts +26 -0
- package/dist/tempo/session/client/ReceiptCoordinator.d.ts.map +1 -0
- package/dist/tempo/session/client/ReceiptCoordinator.js +61 -0
- package/dist/tempo/session/client/ReceiptCoordinator.js.map +1 -0
- package/dist/tempo/session/client/Runtime.d.ts +464 -0
- package/dist/tempo/session/client/Runtime.d.ts.map +1 -0
- package/dist/tempo/session/client/Runtime.js +499 -0
- package/dist/tempo/session/client/Runtime.js.map +1 -0
- package/dist/tempo/session/client/Session.d.ts +138 -0
- package/dist/tempo/session/client/Session.d.ts.map +1 -0
- package/dist/tempo/session/client/Session.js +69 -0
- package/dist/tempo/session/client/Session.js.map +1 -0
- package/dist/tempo/session/client/SessionManager.d.ts +87 -0
- package/dist/tempo/session/client/SessionManager.d.ts.map +1 -0
- package/dist/tempo/session/client/SessionManager.js +620 -0
- package/dist/tempo/session/client/SessionManager.js.map +1 -0
- package/dist/tempo/session/client/Transports.d.ts +469 -0
- package/dist/tempo/session/client/Transports.d.ts.map +1 -0
- package/dist/tempo/session/client/Transports.js +733 -0
- package/dist/tempo/session/client/Transports.js.map +1 -0
- package/dist/tempo/session/client/index.d.ts +11 -0
- package/dist/tempo/session/client/index.d.ts.map +1 -0
- package/dist/tempo/session/client/index.js +6 -0
- package/dist/tempo/session/client/index.js.map +1 -0
- package/dist/tempo/session/index.d.ts +8 -0
- package/dist/tempo/session/index.d.ts.map +1 -0
- package/dist/tempo/session/index.js +8 -0
- package/dist/tempo/session/index.js.map +1 -0
- package/dist/tempo/session/precompile/Chain.d.ts +343 -0
- package/dist/tempo/session/precompile/Chain.d.ts.map +1 -0
- package/dist/tempo/session/precompile/Chain.js +529 -0
- package/dist/tempo/session/precompile/Chain.js.map +1 -0
- package/dist/tempo/session/precompile/Channel.d.ts +46 -0
- package/dist/tempo/session/precompile/Channel.d.ts.map +1 -0
- package/dist/tempo/session/precompile/Channel.js +56 -0
- package/dist/tempo/session/precompile/Channel.js.map +1 -0
- package/dist/tempo/session/precompile/Protocol.d.ts +308 -0
- package/dist/tempo/session/precompile/Protocol.d.ts.map +1 -0
- package/dist/tempo/session/precompile/Protocol.js +264 -0
- package/dist/tempo/session/precompile/Protocol.js.map +1 -0
- package/dist/tempo/session/precompile/Voucher.d.ts +40 -0
- package/dist/tempo/session/precompile/Voucher.d.ts.map +1 -0
- package/dist/tempo/session/precompile/Voucher.js +125 -0
- package/dist/tempo/session/precompile/Voucher.js.map +1 -0
- package/dist/tempo/session/precompile/escrow.abi.d.ts +522 -0
- package/dist/tempo/session/precompile/escrow.abi.d.ts.map +1 -0
- package/dist/tempo/session/precompile/escrow.abi.js +224 -0
- package/dist/tempo/session/precompile/escrow.abi.js.map +1 -0
- package/dist/tempo/session/precompile/index.d.ts +24 -0
- package/dist/tempo/session/precompile/index.d.ts.map +1 -0
- package/dist/tempo/session/precompile/index.js +22 -0
- package/dist/tempo/session/precompile/index.js.map +1 -0
- package/dist/tempo/session/server/ChannelOps.d.ts +56 -0
- package/dist/tempo/session/server/ChannelOps.d.ts.map +1 -0
- package/dist/tempo/session/server/ChannelOps.js +91 -0
- package/dist/tempo/session/server/ChannelOps.js.map +1 -0
- package/dist/tempo/session/server/ChannelStore.d.ts +347 -0
- package/dist/tempo/session/server/ChannelStore.d.ts.map +1 -0
- package/dist/tempo/session/server/ChannelStore.js +404 -0
- package/dist/tempo/session/server/ChannelStore.js.map +1 -0
- package/dist/tempo/session/server/CredentialVerification.d.ts +99 -0
- package/dist/tempo/session/server/CredentialVerification.d.ts.map +1 -0
- package/dist/tempo/session/server/CredentialVerification.js +527 -0
- package/dist/tempo/session/server/CredentialVerification.js.map +1 -0
- package/dist/tempo/session/server/MeteredStream.d.ts +40 -0
- package/dist/tempo/session/server/MeteredStream.d.ts.map +1 -0
- package/dist/tempo/session/server/MeteredStream.js +42 -0
- package/dist/tempo/session/server/MeteredStream.js.map +1 -0
- package/dist/tempo/session/server/RequestState.d.ts +208 -0
- package/dist/tempo/session/server/RequestState.d.ts.map +1 -0
- package/dist/tempo/session/server/RequestState.js +252 -0
- package/dist/tempo/session/server/RequestState.js.map +1 -0
- package/dist/tempo/session/server/Session.d.ts +169 -0
- package/dist/tempo/session/server/Session.d.ts.map +1 -0
- package/dist/tempo/session/server/Session.js +355 -0
- package/dist/tempo/session/server/Session.js.map +1 -0
- package/dist/tempo/session/server/Settlement.d.ts +187 -0
- package/dist/tempo/session/server/Settlement.d.ts.map +1 -0
- package/dist/tempo/session/server/Settlement.js +259 -0
- package/dist/tempo/session/server/Settlement.js.map +1 -0
- package/dist/tempo/session/server/Sse.d.ts +103 -0
- package/dist/tempo/session/server/Sse.d.ts.map +1 -0
- package/dist/tempo/session/server/Sse.js +184 -0
- package/dist/tempo/session/server/Sse.js.map +1 -0
- package/dist/tempo/session/server/Transports.d.ts +89 -0
- package/dist/tempo/session/server/Transports.d.ts.map +1 -0
- package/dist/tempo/session/server/Transports.js +149 -0
- package/dist/tempo/session/server/Transports.js.map +1 -0
- package/dist/tempo/session/server/Ws.d.ts +48 -0
- package/dist/tempo/session/server/Ws.d.ts.map +1 -0
- package/dist/tempo/session/server/Ws.js +244 -0
- package/dist/tempo/session/server/Ws.js.map +1 -0
- package/dist/tempo/session/server/index.d.ts +4 -0
- package/dist/tempo/session/server/index.d.ts.map +1 -0
- package/dist/tempo/session/server/index.js +2 -0
- package/dist/tempo/session/server/index.js.map +1 -0
- package/dist/tempo/subscription/KeyAuthorization.d.ts +982 -0
- package/dist/tempo/subscription/KeyAuthorization.d.ts.map +1 -0
- package/dist/tempo/subscription/KeyAuthorization.js +288 -0
- package/dist/tempo/subscription/KeyAuthorization.js.map +1 -0
- package/dist/tempo/subscription/Receipt.d.ts +10 -0
- package/dist/tempo/subscription/Receipt.d.ts.map +1 -0
- package/dist/tempo/subscription/Receipt.js +16 -0
- package/dist/tempo/subscription/Receipt.js.map +1 -0
- package/dist/tempo/subscription/Store.d.ts +101 -0
- package/dist/tempo/subscription/Store.d.ts.map +1 -0
- package/dist/tempo/subscription/Store.js +307 -0
- package/dist/tempo/subscription/Store.js.map +1 -0
- package/dist/tempo/subscription/Types.d.ts +65 -0
- package/dist/tempo/subscription/Types.d.ts.map +1 -0
- package/dist/tempo/subscription/Types.js +2 -0
- package/dist/tempo/subscription/Types.js.map +1 -0
- package/dist/tempo/subscription/index.d.ts +6 -0
- package/dist/tempo/subscription/index.d.ts.map +1 -0
- package/dist/tempo/subscription/index.js +4 -0
- package/dist/tempo/subscription/index.js.map +1 -0
- package/dist/validation/core.d.ts +76 -0
- package/dist/validation/core.d.ts.map +1 -0
- package/dist/validation/core.js +274 -0
- package/dist/validation/core.js.map +1 -0
- package/dist/validation/index.d.ts +3 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +2 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/viem/Account.d.ts +12 -0
- package/dist/viem/Account.d.ts.map +1 -0
- package/dist/viem/Account.js +14 -0
- package/dist/viem/Account.js.map +1 -0
- package/dist/viem/Client.d.ts +23 -0
- package/dist/viem/Client.d.ts.map +1 -0
- package/dist/viem/Client.js +54 -0
- package/dist/viem/Client.js.map +1 -0
- package/dist/x402/Assets.d.ts +78 -0
- package/dist/x402/Assets.d.ts.map +1 -0
- package/dist/x402/Assets.js +157 -0
- package/dist/x402/Assets.js.map +1 -0
- package/dist/x402/Header.d.ts +23 -0
- package/dist/x402/Header.d.ts.map +1 -0
- package/dist/x402/Header.js +44 -0
- package/dist/x402/Header.js.map +1 -0
- package/dist/x402/Types.d.ts +289 -0
- package/dist/x402/Types.d.ts.map +1 -0
- package/dist/x402/Types.js +139 -0
- package/dist/x402/Types.js.map +1 -0
- package/dist/x402/client/Exact.d.ts +38 -0
- package/dist/x402/client/Exact.d.ts.map +1 -0
- package/dist/x402/client/Exact.js +134 -0
- package/dist/x402/client/Exact.js.map +1 -0
- package/dist/x402/index.d.ts +7 -0
- package/dist/x402/index.d.ts.map +1 -0
- package/dist/x402/index.js +7 -0
- package/dist/x402/index.js.map +1 -0
- package/dist/x402/internal/ChallengeBrand.d.ts +5 -0
- package/dist/x402/internal/ChallengeBrand.d.ts.map +1 -0
- package/dist/x402/internal/ChallengeBrand.js +13 -0
- package/dist/x402/internal/ChallengeBrand.js.map +1 -0
- package/dist/x402/internal/RouteBinding.d.ts +8 -0
- package/dist/x402/internal/RouteBinding.d.ts.map +1 -0
- package/dist/x402/internal/RouteBinding.js +12 -0
- package/dist/x402/internal/RouteBinding.js.map +1 -0
- package/dist/x402/server/EvmCharge.d.ts +50 -0
- package/dist/x402/server/EvmCharge.d.ts.map +1 -0
- package/dist/x402/server/EvmCharge.js +301 -0
- package/dist/x402/server/EvmCharge.js.map +1 -0
- package/dist/x402/server/Facilitator.d.ts +12 -0
- package/dist/x402/server/Facilitator.d.ts.map +1 -0
- package/dist/x402/server/Facilitator.js +42 -0
- package/dist/x402/server/Facilitator.js.map +1 -0
- package/dist/zod.d.ts +24 -0
- package/dist/zod.d.ts.map +1 -0
- package/dist/zod.js +53 -0
- package/dist/zod.js.map +1 -0
- package/package.json +182 -0
- package/src/BodyDigest.test.ts +43 -0
- package/src/BodyDigest.ts +55 -0
- package/src/Challenge.fuzz.test.ts +121 -0
- package/src/Challenge.test-d.ts +82 -0
- package/src/Challenge.test.ts +995 -0
- package/src/Challenge.ts +683 -0
- package/src/Constants.ts +58 -0
- package/src/Credential.fuzz.test.ts +62 -0
- package/src/Credential.test.ts +378 -0
- package/src/Credential.ts +217 -0
- package/src/Errors.test.ts +497 -0
- package/src/Errors.ts +429 -0
- package/src/Expires.test.ts +112 -0
- package/src/Expires.ts +59 -0
- package/src/Html.ts +67 -0
- package/src/Mcp.ts +85 -0
- package/src/Method.test.ts +76 -0
- package/src/Method.ts +381 -0
- package/src/PaymentRequest.test.ts +147 -0
- package/src/PaymentRequest.ts +108 -0
- package/src/Receipt.test.ts +151 -0
- package/src/Receipt.ts +146 -0
- package/src/Store.test-d.ts +195 -0
- package/src/Store.test.ts +357 -0
- package/src/Store.ts +329 -0
- package/src/bin.ts +4 -0
- package/src/cli/account.ts +234 -0
- package/src/cli/cli.test.ts +2126 -0
- package/src/cli/cli.ts +1584 -0
- package/src/cli/config.test.ts +89 -0
- package/src/cli/config.ts +50 -0
- package/src/cli/internal.ts +114 -0
- package/src/cli/mcp.test.ts +251 -0
- package/src/cli/plugins/evm.ts +55 -0
- package/src/cli/plugins/index.ts +4 -0
- package/src/cli/plugins/plugin.ts +84 -0
- package/src/cli/plugins/stripe.ts +174 -0
- package/src/cli/plugins/tempo.ts +1102 -0
- package/src/cli/utils.test.ts +133 -0
- package/src/cli/utils.ts +384 -0
- package/src/cli/validate/challenge.ts +565 -0
- package/src/cli/validate/discovery.test.ts +435 -0
- package/src/cli/validate/discovery.ts +221 -0
- package/src/cli/validate/helpers.ts +166 -0
- package/src/cli/validate/index.ts +231 -0
- package/src/cli/validate/payment.ts +760 -0
- package/src/cli/validate.test.ts +773 -0
- package/src/client/Methods.ts +8 -0
- package/src/client/Mppx.test-d.ts +270 -0
- package/src/client/Mppx.test.ts +1065 -0
- package/src/client/Mppx.ts +466 -0
- package/src/client/Transport.test.ts +619 -0
- package/src/client/Transport.ts +191 -0
- package/src/client/index.ts +29 -0
- package/src/client/internal/Fetch.browser.test.ts +197 -0
- package/src/client/internal/Fetch.test-d.ts +109 -0
- package/src/client/internal/Fetch.test.ts +2230 -0
- package/src/client/internal/Fetch.ts +923 -0
- package/src/client/internal/protocols/Mcp.test.ts +220 -0
- package/src/client/internal/protocols/Mcp.ts +186 -0
- package/src/client/internal/protocols/Mpp.ts +21 -0
- package/src/client/internal/protocols/Protocol.ts +10 -0
- package/src/client/internal/protocols/Shared.ts +25 -0
- package/src/client/internal/protocols/X402.ts +46 -0
- package/src/discovery/Discovery.test.ts +214 -0
- package/src/discovery/Discovery.ts +105 -0
- package/src/discovery/OpenApi.test.ts +453 -0
- package/src/discovery/OpenApi.ts +224 -0
- package/src/discovery/Validate.test.ts +305 -0
- package/src/discovery/Validate.ts +77 -0
- package/src/discovery/index.ts +3 -0
- package/src/env.d.ts +12 -0
- package/src/evm/Assets.ts +1 -0
- package/src/evm/Chains.ts +11 -0
- package/src/evm/Methods.ts +44 -0
- package/src/evm/PublicInterface.test-d.ts +134 -0
- package/src/evm/Types.ts +140 -0
- package/src/evm/client/Charge.test.ts +347 -0
- package/src/evm/client/Charge.ts +187 -0
- package/src/evm/client/Methods.ts +19 -0
- package/src/evm/client/index.ts +6 -0
- package/src/evm/index.ts +16 -0
- package/src/evm/server/Charge.test.ts +339 -0
- package/src/evm/server/Charge.ts +290 -0
- package/src/evm/server/Methods.ts +22 -0
- package/src/evm/server/index.ts +6 -0
- package/src/index.ts +14 -0
- package/src/internal/AcceptPayment.test.ts +343 -0
- package/src/internal/AcceptPayment.ts +366 -0
- package/src/internal/HeaderCodec.ts +36 -0
- package/src/internal/changeset.test.ts +106 -0
- package/src/internal/constantTimeEqual.test.ts +47 -0
- package/src/internal/constantTimeEqual.ts +10 -0
- package/src/internal/env.test.ts +42 -0
- package/src/internal/env.ts +49 -0
- package/src/internal/types.ts +437 -0
- package/src/mcp/client/McpClient.integration.test.ts +652 -0
- package/src/mcp/client/McpClient.test-d.ts +144 -0
- package/src/mcp/client/McpClient.test.ts +463 -0
- package/src/mcp/client/McpClient.ts +307 -0
- package/src/mcp/client/McpClient.unit.test.ts +135 -0
- package/src/mcp/client/index.ts +2 -0
- package/src/mcp/server/Transport.test.ts +191 -0
- package/src/mcp/server/Transport.ts +111 -0
- package/src/mcp/server/index.ts +1 -0
- package/src/middlewares/elysia.test.ts +295 -0
- package/src/middlewares/elysia.ts +116 -0
- package/src/middlewares/express.test.ts +371 -0
- package/src/middlewares/express.ts +140 -0
- package/src/middlewares/hono.test.ts +476 -0
- package/src/middlewares/hono.ts +153 -0
- package/src/middlewares/internal/mppx.test.ts +177 -0
- package/src/middlewares/internal/mppx.ts +67 -0
- package/src/middlewares/nextjs.test.ts +369 -0
- package/src/middlewares/nextjs.ts +107 -0
- package/src/proxy/Proxy.test.ts +1031 -0
- package/src/proxy/Proxy.ts +345 -0
- package/src/proxy/Service.test.ts +182 -0
- package/src/proxy/Service.ts +253 -0
- package/src/proxy/index.ts +6 -0
- package/src/proxy/internal/Headers.test.ts +139 -0
- package/src/proxy/internal/Headers.ts +66 -0
- package/src/proxy/internal/Route.test.ts +217 -0
- package/src/proxy/internal/Route.ts +64 -0
- package/src/proxy/services/anthropic.test.ts +132 -0
- package/src/proxy/services/anthropic.ts +52 -0
- package/src/proxy/services/openai.test.ts +157 -0
- package/src/proxy/services/openai.ts +59 -0
- package/src/proxy/services/stripe.test.ts +175 -0
- package/src/proxy/services/stripe.ts +58 -0
- package/src/server/Methods.ts +3 -0
- package/src/server/Mppx.authorize.test.ts +210 -0
- package/src/server/Mppx.test-d.ts +316 -0
- package/src/server/Mppx.test.ts +5608 -0
- package/src/server/Mppx.ts +2559 -0
- package/src/server/NodeListener.test.ts +293 -0
- package/src/server/NodeListener.ts +45 -0
- package/src/server/Request.test.ts +255 -0
- package/src/server/Request.ts +155 -0
- package/src/server/Response.test.ts +32 -0
- package/src/server/Response.ts +45 -0
- package/src/server/Transport.test.ts +598 -0
- package/src/server/Transport.ts +320 -0
- package/src/server/index.ts +9 -0
- package/src/server/internal/html/compose.main.gen.ts +2 -0
- package/src/server/internal/html/compose.main.ts +88 -0
- package/src/server/internal/html/config.ts +672 -0
- package/src/server/internal/html/constants.ts +28 -0
- package/src/server/internal/html/serviceWorker.client.ts +28 -0
- package/src/server/internal/html/serviceWorker.gen.ts +2 -0
- package/src/server/internal/html/serviceWorker.ts +27 -0
- package/src/server/internal/html/tsconfig.compose.json +8 -0
- package/src/server/internal/html/tsconfig.worker.client.json +8 -0
- package/src/server/internal/html/tsconfig.worker.json +8 -0
- package/src/server/internal/scope.ts +43 -0
- package/src/stripe/Charge.integration.test.ts +329 -0
- package/src/stripe/Methods.test.ts +52 -0
- package/src/stripe/Methods.ts +44 -0
- package/src/stripe/client/Charge.test.ts +205 -0
- package/src/stripe/client/Charge.ts +132 -0
- package/src/stripe/client/Methods.ts +37 -0
- package/src/stripe/client/index.ts +2 -0
- package/src/stripe/index.ts +1 -0
- package/src/stripe/internal/constants.ts +7 -0
- package/src/stripe/internal/types.ts +46 -0
- package/src/stripe/server/Charge.test.ts +621 -0
- package/src/stripe/server/Charge.ts +431 -0
- package/src/stripe/server/Methods.ts +24 -0
- package/src/stripe/server/index.ts +2 -0
- package/src/stripe/server/internal/html/main.ts +165 -0
- package/src/stripe/server/internal/html/node_modules/.bin/mppx +22 -0
- package/src/stripe/server/internal/html/node_modules/.bin/mppx.src +22 -0
- package/src/stripe/server/internal/html/package.json +9 -0
- package/src/stripe/server/internal/html/stripe-js-pure.d.ts +7 -0
- package/src/stripe/server/internal/html/tsconfig.json +8 -0
- package/src/stripe/server/internal/html/types.ts +5 -0
- package/src/stripe/server/internal/html.gen.ts +2 -0
- package/src/tempo/AccessKeyAuthorization.test.ts +141 -0
- package/src/tempo/Attribution.test.ts +294 -0
- package/src/tempo/Attribution.ts +185 -0
- package/src/tempo/Methods.test.ts +425 -0
- package/src/tempo/Methods.ts +367 -0
- package/src/tempo/Proof.conformance.test.ts +146 -0
- package/src/tempo/Proof.test-d.ts +32 -0
- package/src/tempo/Proof.test.ts +40 -0
- package/src/tempo/Proof.ts +69 -0
- package/src/tempo/PublicExports.test-d.ts +106 -0
- package/src/tempo/Subscription.integration.test.ts +591 -0
- package/src/tempo/client/Charge.test.ts +501 -0
- package/src/tempo/client/Charge.ts +289 -0
- package/src/tempo/client/Methods.ts +45 -0
- package/src/tempo/client/ResolveAccount.ts +46 -0
- package/src/tempo/client/Subscription.test.ts +180 -0
- package/src/tempo/client/Subscription.ts +156 -0
- package/src/tempo/client/index.ts +17 -0
- package/src/tempo/index.ts +5 -0
- package/src/tempo/internal/account.ts +56 -0
- package/src/tempo/internal/address.ts +6 -0
- package/src/tempo/internal/auto-swap.test.ts +198 -0
- package/src/tempo/internal/auto-swap.ts +188 -0
- package/src/tempo/internal/charge.test.ts +66 -0
- package/src/tempo/internal/charge.ts +43 -0
- package/src/tempo/internal/defaults.test.ts +95 -0
- package/src/tempo/internal/defaults.ts +53 -0
- package/src/tempo/internal/fee-payer.test.ts +1084 -0
- package/src/tempo/internal/fee-payer.ts +742 -0
- package/src/tempo/internal/fee-token.test.ts +165 -0
- package/src/tempo/internal/fee-token.ts +72 -0
- package/src/tempo/internal/proof.test.ts +97 -0
- package/src/tempo/internal/proof.ts +87 -0
- package/src/tempo/internal/selectors.ts +10 -0
- package/src/tempo/internal/types.ts +8 -0
- package/src/tempo/legacy/AccessKeyAuthorization.test.ts +162 -0
- package/src/tempo/legacy/README.md +9 -0
- package/src/tempo/legacy/client/ChannelOps.test.ts +351 -0
- package/src/tempo/legacy/client/ChannelOps.ts +263 -0
- package/src/tempo/legacy/client/Session.test.ts +699 -0
- package/src/tempo/legacy/client/Session.ts +387 -0
- package/src/tempo/legacy/client/SessionManager.test.ts +468 -0
- package/src/tempo/legacy/client/SessionManager.ts +909 -0
- package/src/tempo/legacy/client/index.ts +6 -0
- package/src/tempo/legacy/index.ts +6 -0
- package/src/tempo/legacy/server/Session.test.ts +6370 -0
- package/src/tempo/legacy/server/Session.ts +1023 -0
- package/src/tempo/legacy/server/index.ts +4 -0
- package/src/tempo/legacy/session/Chain.test.ts +1273 -0
- package/src/tempo/legacy/session/Chain.ts +826 -0
- package/src/tempo/legacy/session/Channel.test.ts +109 -0
- package/src/tempo/legacy/session/Channel.ts +51 -0
- package/src/tempo/legacy/session/ChannelStore.test.ts +58 -0
- package/src/tempo/legacy/session/ChannelStore.ts +39 -0
- package/src/tempo/legacy/session/Types.ts +91 -0
- package/src/tempo/legacy/session/Voucher.test.ts +410 -0
- package/src/tempo/legacy/session/Voucher.ts +183 -0
- package/src/tempo/legacy/session/escrow.abi.ts +760 -0
- package/src/tempo/legacy/session/index.ts +8 -0
- package/src/tempo/server/AtomicStore.test-d.ts +50 -0
- package/src/tempo/server/Charge.test.ts +5743 -0
- package/src/tempo/server/Charge.ts +1182 -0
- package/src/tempo/server/Methods.ts +88 -0
- package/src/tempo/server/Sse.test.ts +321 -0
- package/src/tempo/server/Subscription.test.ts +1869 -0
- package/src/tempo/server/Subscription.ts +1323 -0
- package/src/tempo/server/index.ts +8 -0
- package/src/tempo/server/internal/html/main.ts +115 -0
- package/src/tempo/server/internal/html/node_modules/.bin/mppx +22 -0
- package/src/tempo/server/internal/html/node_modules/.bin/mppx.src +22 -0
- package/src/tempo/server/internal/html/package.json +10 -0
- package/src/tempo/server/internal/html/tsconfig.json +8 -0
- package/src/tempo/server/internal/html.gen.ts +2 -0
- package/src/tempo/server/internal/request-body.test.ts +210 -0
- package/src/tempo/server/internal/request-body.ts +61 -0
- package/src/tempo/server/internal/transport.test.ts +903 -0
- package/src/tempo/server/internal/transport.ts +310 -0
- package/src/tempo/session/Snapshot.test.ts +41 -0
- package/src/tempo/session/Snapshot.ts +74 -0
- package/src/tempo/session/client/ChannelOps.test.ts +163 -0
- package/src/tempo/session/client/ChannelOps.ts +330 -0
- package/src/tempo/session/client/ChannelStore.ts +111 -0
- package/src/tempo/session/client/CredentialState.test.ts +789 -0
- package/src/tempo/session/client/CredentialState.ts +799 -0
- package/src/tempo/session/client/ReceiptCoordinator.ts +95 -0
- package/src/tempo/session/client/Runtime.test.ts +1092 -0
- package/src/tempo/session/client/Runtime.ts +986 -0
- package/src/tempo/session/client/Session.test.ts +774 -0
- package/src/tempo/session/client/Session.ts +123 -0
- package/src/tempo/session/client/SessionManager.test.ts +1461 -0
- package/src/tempo/session/client/SessionManager.ts +798 -0
- package/src/tempo/session/client/Transports.test.ts +871 -0
- package/src/tempo/session/client/Transports.ts +1319 -0
- package/src/tempo/session/client/index.ts +40 -0
- package/src/tempo/session/index.ts +7 -0
- package/src/tempo/session/precompile/Chain.integration.test.ts +321 -0
- package/src/tempo/session/precompile/Chain.test.ts +1419 -0
- package/src/tempo/session/precompile/Chain.ts +1034 -0
- package/src/tempo/session/precompile/Channel.test.ts +138 -0
- package/src/tempo/session/precompile/Channel.ts +103 -0
- package/src/tempo/session/precompile/Protocol.test.ts +358 -0
- package/src/tempo/session/precompile/Protocol.ts +520 -0
- package/src/tempo/session/precompile/Voucher.test.ts +354 -0
- package/src/tempo/session/precompile/Voucher.ts +162 -0
- package/src/tempo/session/precompile/escrow.abi.ts +226 -0
- package/src/tempo/session/precompile/index.ts +33 -0
- package/src/tempo/session/server/ChannelOps.test.ts +129 -0
- package/src/tempo/session/server/ChannelOps.ts +157 -0
- package/src/tempo/session/server/ChannelStore.test.ts +1093 -0
- package/src/tempo/session/server/ChannelStore.ts +835 -0
- package/src/tempo/session/server/CredentialVerification.test.ts +299 -0
- package/src/tempo/session/server/CredentialVerification.ts +758 -0
- package/src/tempo/session/server/MeteredStream.ts +88 -0
- package/src/tempo/session/server/RequestState.test.ts +531 -0
- package/src/tempo/session/server/RequestState.ts +500 -0
- package/src/tempo/session/server/Session.integration.test.ts +449 -0
- package/src/tempo/session/server/Session.test.ts +3319 -0
- package/src/tempo/session/server/Session.ts +547 -0
- package/src/tempo/session/server/Settlement.test.ts +345 -0
- package/src/tempo/session/server/Settlement.ts +482 -0
- package/src/tempo/session/server/Sse.fuzz.test.ts +138 -0
- package/src/tempo/session/server/Sse.test.ts +557 -0
- package/src/tempo/session/server/Sse.ts +254 -0
- package/src/tempo/session/server/Transports.test.ts +346 -0
- package/src/tempo/session/server/Transports.ts +255 -0
- package/src/tempo/session/server/Ws.test.ts +481 -0
- package/src/tempo/session/server/Ws.ts +380 -0
- package/src/tempo/session/server/index.ts +8 -0
- package/src/tempo/subscription/KeyAuthorization.test.ts +213 -0
- package/src/tempo/subscription/KeyAuthorization.ts +385 -0
- package/src/tempo/subscription/Receipt.ts +28 -0
- package/src/tempo/subscription/Store.test.ts +609 -0
- package/src/tempo/subscription/Store.ts +449 -0
- package/src/tempo/subscription/Types.ts +68 -0
- package/src/tempo/subscription/index.ts +23 -0
- package/src/tsconfig.json +10 -0
- package/src/validation/core.ts +380 -0
- package/src/validation/index.ts +11 -0
- package/src/viem/Account.test.ts +72 -0
- package/src/viem/Account.ts +30 -0
- package/src/viem/Client.test.ts +306 -0
- package/src/viem/Client.ts +73 -0
- package/src/x402/Assets.test.ts +253 -0
- package/src/x402/Assets.ts +221 -0
- package/src/x402/Exact.e2e.test.ts +448 -0
- package/src/x402/Exact.localnet.test.ts +475 -0
- package/src/x402/Header.test.ts +73 -0
- package/src/x402/Header.ts +79 -0
- package/src/x402/PublicInterface.test-d.ts +39 -0
- package/src/x402/Types.ts +248 -0
- package/src/x402/client/Exact.test.ts +309 -0
- package/src/x402/client/Exact.ts +186 -0
- package/src/x402/index.ts +6 -0
- package/src/x402/internal/ChallengeBrand.ts +14 -0
- package/src/x402/internal/RouteBinding.ts +18 -0
- package/src/x402/server/EvmCharge.ts +394 -0
- package/src/x402/server/Facilitator.test.ts +111 -0
- package/src/x402/server/Facilitator.ts +56 -0
- package/src/zod.test.ts +169 -0
- package/src/zod.ts +71 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,841 @@
|
|
|
1
|
+
# mppx
|
|
2
|
+
|
|
3
|
+
## 0.0.0-main-20260715214817
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c40a0fc: Added continuous `main` snapshot releases.
|
|
8
|
+
- 7207c0f: Added local Tempo charge fee-token selection with a pathUSD preference and an explicit override.
|
|
9
|
+
- 98abd92: Extracted session SSE payment handling into a response-preserving driver.
|
|
10
|
+
|
|
11
|
+
## 0.8.10
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- a6969b8: Added account resolution to Tempo session managers.
|
|
16
|
+
- fa73305: `mppx validate`: retry on 422, resolve `$ref` in body generation, add `--header`/`-H` flag, fix x402 validation for non-EVM chains.
|
|
17
|
+
|
|
18
|
+
## 0.8.9
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- 978f580: Fixed hosted fee-payer relays for TIP-1034 session opens and top-ups.
|
|
23
|
+
- 2fb3fa8: Normalize hosted fee-payer JSON-RPC signature parity before recovery.
|
|
24
|
+
|
|
25
|
+
## 0.8.8
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- be7d166: `mppx validate`: Stripe testmode payment support. Auto-detects Stripe CLI test keys and completes card payment flows end-to-end using a test card, with graceful livemode detection.
|
|
30
|
+
|
|
31
|
+
## 0.8.7
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- 38c8229: Added Celo and Celo Sepolia to known EVM chains and assets: `chains.celo`, `chains.celoSepolia`, `assets.celo.USDC`, `assets.celo.USDT`, and `assets.celoSepolia.USDC`.
|
|
36
|
+
- 264f079: Fixed session voucher replay checks for settled vouchers and mismatched credential sources.
|
|
37
|
+
- 89bd31e: Fixed empty Tempo session voucher POSTs being treated as application requests by HTTP adapters that expose empty body streams.
|
|
38
|
+
- 33a7c52: Updated client negotiation to prefer Payment-auth challenges before x402 challenges.
|
|
39
|
+
- d3d9d81: `mppx validate`: Multi-challenge support (parses all payment methods from WWW-Authenticate), per-method field validation for Stripe/EVM/Tempo, streaming CLI output, fixed URL resolution for subpaths, and improved error reporting for malformed challenges.
|
|
40
|
+
- 1157a26: `mppx validate`: EVM payment testing support. Uses the same wallet as Tempo to sign EIP-3009 authorizations, with pre-flight ERC-20 balance checks and chain-aware explorer links.
|
|
41
|
+
- fd45726: Added programmatic validation API (`mppx/validation` export), OpenAPI path parameter substitution, x402 protocol detection, multi-path discovery fallback, and `--outputJson` CLI flag.
|
|
42
|
+
- 86eb98c: `mppx validate`: Stream results as each phase completes instead of batching until the end. Discovery and challenge checks now appear before the payment prompt.
|
|
43
|
+
|
|
44
|
+
## 0.8.6
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- adf5207: Preserve raw response bytes when writing CLI response bodies to stdout.
|
|
49
|
+
- 5e27d04: Fixed payment-aware fetch to return a post-payment `402` response with no actionable challenge instead of throwing `No method found for challenges`.
|
|
50
|
+
- 8958754: Fixed Tempo session receipt waits after consecutive same-nonce transactions.
|
|
51
|
+
- a2bfcc5: Normalize sponsored Tempo charge transactions before client signing.
|
|
52
|
+
- 591ecf4: Preserved method-specific extension fields on receipts. `Receipt.from`, `Receipt.deserialize`, and `Receipt.fromResponse` previously stripped fields outside the base set; they now pass unknown fields through, per the core spec's Payment-Receipt provision ("Payment method specifications MAY define additional fields for receipts").
|
|
53
|
+
- 7fd4ecb: Removed the mainnet network option from `mppx account fund`.
|
|
54
|
+
- 00d72b0: Fixed a read-after-write race in Tempo session channel open/top-up verification. The on-chain read-back now pins to the block that included the management transaction (instead of reading `latest`) and retries transient failures, so a lagging load-balanced RPC replica can no longer reject a valid open with `on-chain channel state does not match open receipt`.
|
|
55
|
+
|
|
56
|
+
## 0.8.5
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- 754b491: Added viem token definitions and token sets to make managing tokens simpler.
|
|
61
|
+
|
|
62
|
+
## 0.8.4
|
|
63
|
+
|
|
64
|
+
### Patch Changes
|
|
65
|
+
|
|
66
|
+
- 3136195: Fixed Tempo auto-swap call building with `viem@>=2.54` and hardened account balance metadata formatting.
|
|
67
|
+
- 86b6586: Fixed Stripe CLI live-mode Shared Payment Token creation. SPT requests now send the preview `Stripe-Version` header, live-mode requests target the issued-tokens endpoint with `seller_details[network_business_profile]`, and restricted test keys (`rk_test_...`) are recognized as test mode.
|
|
68
|
+
- cdd989e: Added a `mppx validate` CLI command for discovering paid endpoints, validating payment challenges, checking malformed-credential handling, and exercising Tempo payment flows end to end.
|
|
69
|
+
|
|
70
|
+
## 0.8.3
|
|
71
|
+
|
|
72
|
+
### Patch Changes
|
|
73
|
+
|
|
74
|
+
- be8a655: Fixed Tempo charge credential creation with `viem@>=2.54` transfer call builders.
|
|
75
|
+
|
|
76
|
+
## 0.8.2
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- 80ed268: Added CLI selection of payable Tempo charge challenges and a currency override.
|
|
81
|
+
- 24ddf52: Filtered unsupported x402 accepts during HTTP client challenge extraction.
|
|
82
|
+
- 24ddcca: Rejected non-canonical fee-payer calldata and client-supplied access lists before sponsorship.
|
|
83
|
+
- 685f698: Fixed MCP payment-aware fetch retries for tool results with payment-required metadata.
|
|
84
|
+
- 8305a05: Added configurable incremental payment challenge retries for client fetch, defaulting to three.
|
|
85
|
+
|
|
86
|
+
## 0.8.1
|
|
87
|
+
|
|
88
|
+
### Patch Changes
|
|
89
|
+
|
|
90
|
+
- 2c4086f: Disabled automatic CLI configuration discovery from local directories.
|
|
91
|
+
- 2158a40: Enforced sponsor fee policies before hosted fee-payer signing.
|
|
92
|
+
- ca8687b: Validated session open deposit and voucher amounts before sponsored broadcast.
|
|
93
|
+
|
|
94
|
+
## 0.8.0
|
|
95
|
+
|
|
96
|
+
### Minor Changes
|
|
97
|
+
|
|
98
|
+
- daab9b8: **Breaking:** Collapsed `McpClient.wrap` and the in-place `wrapClient` variant into a single `McpClient.wrap` API on the `mppx/mcp/client` entrypoint.
|
|
99
|
+
|
|
100
|
+
`McpClient.wrap` now adds payment handling to an MCP SDK client in place: the client is mutated and the same reference is returned, so surfaces that keep using the original client become payment-aware (e.g. when another SDK owns the client reference, like Cloudflare Agents). The MCP SDK `callTool(params, resultSchema?, options?)` signature is preserved, payment challenges are handled whether they arrive as payment-required errors or as tool results carrying `org.paymentauth/payment-required` metadata, and the config accepts `orderChallenges` and `paymentPreferences` alongside `methods` and `onPaymentRequired`. Calling `wrap` on the same client again replaces its payment configuration.
|
|
101
|
+
|
|
102
|
+
Migration: move per-call options from the second argument to the third — `mcp.callTool(params, undefined, { context, timeout })` — and replace the approval-first overload `mcp.callTool(onPaymentRequired, params, options)` with the `onPaymentRequired` option: `mcp.callTool(params, undefined, { onPaymentRequired })` (pass `null` to bypass a configured hook). The MCP entrypoints moved to `mppx/mcp/client` and `mppx/mcp/server`; the `mppx/mcp-sdk/*` specifiers remain as aliases.
|
|
103
|
+
|
|
104
|
+
- e755222: Settled MCP-over-HTTP payment challenges in the same payment-aware fetch as HTTP `402`s, so `Transport.http()` can extract JSON-RPC `-32042` challenges and retry with credentials in MCP metadata.
|
|
105
|
+
- 18b57cc: Added a pluggable `channelStore` for persisting reusable payer session channels and removed the client-side `authorizedSigner` override so voucher authority is derived from the selected account.
|
|
106
|
+
|
|
107
|
+
### Patch Changes
|
|
108
|
+
|
|
109
|
+
- 4c79a78: Rejected empty Payment challenge IDs during construction and deserialization.
|
|
110
|
+
- 7c38c17: Deprecated uppercase asset and chain aliases in favor of lowercase exports.
|
|
111
|
+
- 0e88d07: Corrected PaymentRequest documentation examples to use the exported namespace name.
|
|
112
|
+
- 8da60b5: Documented explicit server secret key configuration in README examples.
|
|
113
|
+
- 7ab4e00: Fixed legacy session manager close amounts when receipts reported per-request spent deltas.
|
|
114
|
+
- b5d8657: Updated Hono dependencies to patched versions.
|
|
115
|
+
- 5e27ef2: Fixed SSE session accounting so voucher management posts no longer consumed stream charges.
|
|
116
|
+
- ec1ad50: Hardened server secret-key validation and capped oversized `WWW-Authenticate` request parameters.
|
|
117
|
+
- 11db0bd: Removed now-unused `wallet_authorizeChallenge` support.
|
|
118
|
+
- a1199b0: Added credential-required Tempo subscription reuse and signed-source lookup support so active subscriptions could be bound to the recovered payer instead of request metadata alone.
|
|
119
|
+
- e80feeb: The Tempo fee-payer (sponsor) pre-broadcast simulation now simulates the co-signed transaction the sponsor actually broadcasts — with the concrete fee payer and chosen fee token — instead of the pre-cosign `0x78` envelope, for both local and hosted (`feePayerUrl`) fee payers. This catches reverts in the exact transaction the sponsor pays gas for, and fails closed (no broadcast) when the simulation reverts.
|
|
120
|
+
- c2611f6: Added `tempo.common()` as an explicit alias for the Tempo charge and session method bundle.
|
|
121
|
+
- b84cc06: Added generic Tempo account resolution for charge/session credentials and primitive session voucher signatures.
|
|
122
|
+
- 034315e: Updated proxy route examples to use current route handler APIs.
|
|
123
|
+
- 4e5abf4: Hardened confirmed Tempo subscription settlement against T6 (TIP-1028) receive policies. Activation and renewal payments that wait for confirmation now verify that a TIP-20 `TransferWithMemo` log credits the intended recipient for the expected amount with the generated settlement memo, instead of trusting transaction success alone. Transfers held by a receiver's receive policy (redirected to `ReceivePolicyGuard`) are now rejected rather than treated as paid, and the memo binding excludes unrelated transfer effects in the same receipt. Documented that the optimistic `waitForConfirmation: false` mode cannot prove recipient credit under T6.
|
|
124
|
+
- c15be54: Added `wallet_authorizeChallenge` support. JSON-RPC accounts now delegate Tempo charge and session challenges to wallets that advertise MPP support via `wallet_getCapabilities`, falling back to local signing otherwise.
|
|
125
|
+
- d14d933: Bound Tempo zero-amount proof credentials to the payer wallet. The EIP-712 `Proof` typed-data now includes an `account` field (domain version bumped to `3`), so a proof signature commits to a specific payer address and can no longer be replayed against a different account — including across an access key authorized for multiple accounts. Exposed the canonical proof contract via `tempo.Proof` (`types`, `domain`, `primaryType`, `message`, `typedData`, `hash`) and added deterministic conformance vectors covering the wallet-binding property.
|
|
126
|
+
|
|
127
|
+
## 0.7.0
|
|
128
|
+
|
|
129
|
+
### Minor Changes
|
|
130
|
+
|
|
131
|
+
- 6ae92c4: Added TIP-1034-backed Tempo sessions as the default `tempo.session` interface and moved the previous session flow to `tempo.sessionLegacy`.
|
|
132
|
+
|
|
133
|
+
### Patch Changes
|
|
134
|
+
|
|
135
|
+
- da6383e: Defaulted account faucet funding to testnet unless a network or RPC URL was specified.
|
|
136
|
+
- 64e9d5f: Fixed hosted Tempo fee-payer fills for sender-signed sponsored charge transactions and validated sponsored fee tokens against pathUSD and chain default currencies.
|
|
137
|
+
- eaac057: Added MCP client payment approval callbacks before credential creation.
|
|
138
|
+
- 77520fa: Changed the Tempo session client API so `tempo.session()` created the low-level Mppx client method and `tempo.session.manager()` created the managed session lifecycle client.
|
|
139
|
+
- 9859f8f: Fixed payment-aware fetch to refuse credential retries when a redirected 402 challenge response resolves to a different origin.
|
|
140
|
+
- ef81337: Send the SSE `Accept` header on automatic session voucher POST updates.
|
|
141
|
+
- f0ff266: Declared `@stripe/stripe-js` as a dependency so the shipped sources type-check for consumers resolving the `src` export condition. The import is type-only, so no runtime code is added.
|
|
142
|
+
- 5a35a02: Added client-side Tempo chain pinning. `tempo.charge({ expectedChainId })` rejects charge challenges whose `methodDetails.chainId` conflicts with the configured chain ID, and signs on the pinned chain when the challenge omits it.
|
|
143
|
+
|
|
144
|
+
## 0.6.31
|
|
145
|
+
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- 1c286cd: Fixed host confusion in the Node adapter (`Request.fromNodeListener`/`toNodeListener`). Protocol-relative (`//evil.com/x`), triple-slash (`///evil.com/x`), backslash (`/\evil.com/x`), and embedded-authority (`//a//evil.com/x`) request targets could previously override the request host derived from the `Host` header, which in turn poisoned the auto-detected challenge `realm`. The adapter now copies only the parsed path and query onto a trusted origin, so the request target's authority can never influence the resulting URL host.
|
|
149
|
+
- e03f5c5: Fixed `tempo.session` voucher verification to treat lower-amount voucher replays idempotently. Per the session spec's idempotency requirement, a non-advancing voucher (with a `cumulativeAmount` at or below the highest accepted amount, but above the on-chain settled amount) now returns a 200 OK receipt with the current highest amount instead of being rejected as an error. Forged or at-or-below-settled vouchers are still rejected, and the at-or-below-settled rejection reason was clarified to match the inclusive (`<=`) bound.
|
|
150
|
+
- f7bf20c: Fixed SSE session voucher updates being charged as content requests.
|
|
151
|
+
|
|
152
|
+
## 0.6.30
|
|
153
|
+
|
|
154
|
+
### Patch Changes
|
|
155
|
+
|
|
156
|
+
- 77eac81: Added the root EVM charge method export for direct `mppx/evm` helper access.
|
|
157
|
+
|
|
158
|
+
## 0.6.29
|
|
159
|
+
|
|
160
|
+
### Patch Changes
|
|
161
|
+
|
|
162
|
+
- aca0e4a: Fixed challenge header serialization type checking for ES2020 TypeScript targets.
|
|
163
|
+
- 1edd30e: Fixed WWW-Authenticate challenge serialization to escape quoted-string values and reject CRLF.
|
|
164
|
+
- 5aed74b: Replaced Tempo session `authorizedSigner` options with `voucherSigner` accounts and added raw access-key voucher signing.
|
|
165
|
+
- d337c11: Preserved charge supported modes and split payment defaults in challenges.
|
|
166
|
+
- c95f4e2: Applied strict session fee-payer call validation to relay-sponsored transactions.
|
|
167
|
+
- 2f5b92a: Bound session voucher verification to stored channel chain metadata.
|
|
168
|
+
- 165bc9c: Required expiring nonce keys for fee-sponsored transactions.
|
|
169
|
+
- a171438: Blocked WebSocket session metering after channel close requests.
|
|
170
|
+
- ae76fb4: Retried payment credentials against the final challenge response URL.
|
|
171
|
+
- 6715802: Stripped caller-supplied OpenAI tenant headers before proxying requests.
|
|
172
|
+
- fbb7057: Added EVM charge support with x402 exact compatibility and resource-bound payment payload verification.
|
|
173
|
+
- bf72175: Added an x402 and mpp example server/client, fixed HTTP clients to parse x402 offers when Payment-auth challenges were also present, and fixed repeated x402 EIP-3009 payments for live facilitators.
|
|
174
|
+
|
|
175
|
+
## 0.6.28
|
|
176
|
+
|
|
177
|
+
### Patch Changes
|
|
178
|
+
|
|
179
|
+
- 6c789fa: Added store key prefix options for Store constructors and Tempo charge, session, and subscription stores.
|
|
180
|
+
- b051e6c: Stripped `Set-Cookie` from upstream responses in `Proxy.scrubResponse` so an upstream service cannot set cookies under the proxy's origin.
|
|
181
|
+
- 1ee47a2: Added server-side Stripe Connect settlement options for Stripe charges.
|
|
182
|
+
|
|
183
|
+
## 0.6.27
|
|
184
|
+
|
|
185
|
+
### Patch Changes
|
|
186
|
+
|
|
187
|
+
- 27d9218: Updated Tempo chain imports to use the `viem/tempo/chains` entrypoint.
|
|
188
|
+
- 22d8eed: Updated viem and ox dependencies to their latest published versions and fixed sponsored Tempo transaction gas estimation with the new versions.
|
|
189
|
+
|
|
190
|
+
## 0.6.26
|
|
191
|
+
|
|
192
|
+
### Patch Changes
|
|
193
|
+
|
|
194
|
+
- 3d9a9cf: Added `dev_second` subscription periods.
|
|
195
|
+
Added `mppx.tempo.subscription.renew`.
|
|
196
|
+
Raised default sponsor limits for subscription payments.
|
|
197
|
+
|
|
198
|
+
## 0.6.25
|
|
199
|
+
|
|
200
|
+
### Patch Changes
|
|
201
|
+
|
|
202
|
+
- 6c4af82: Fixed Tempo charge hash receipt verification to collapse paired transfer logs before matching expected transfers.
|
|
203
|
+
- d378d68: Added a Tempo charge sender validation hook for accepting authorized third-party transfer senders.
|
|
204
|
+
|
|
205
|
+
## 0.6.24
|
|
206
|
+
|
|
207
|
+
### Patch Changes
|
|
208
|
+
|
|
209
|
+
- bec7b56: Added challenge ordering hooks for client-side challenge filtering and sorting.
|
|
210
|
+
- 8f766f8: Fixed bug where forged scope metadata could result in cross route bypass of requests.
|
|
211
|
+
|
|
212
|
+
## 0.6.23
|
|
213
|
+
|
|
214
|
+
### Patch Changes
|
|
215
|
+
|
|
216
|
+
- c370c93: Added fee payer support and an optional `feePayerPolicy` parameter to `tempo.subscription` so activation and renewal payments can be sponsored without consuming the access key's spending limit.
|
|
217
|
+
|
|
218
|
+
## 0.6.22
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- 281fc16: Fixed Tempo subscription `wallet_authorizeAccessKey` RPC payload to send `scopes` (the spec-compliant field) instead of `allowedCalls`, and to hex-encode `limits[].limit` so the parameters match the encoded variant of the `wallet_authorizeAccessKey` schema.
|
|
223
|
+
|
|
224
|
+
## 0.6.21
|
|
225
|
+
|
|
226
|
+
### Patch Changes
|
|
227
|
+
|
|
228
|
+
- d752fb5: Added typed client payment events for challenge handling, credential creation, payment responses, and failures.
|
|
229
|
+
- 55a5b8f: Added typed server events for payment challenges, failed payments, and verified payments.
|
|
230
|
+
|
|
231
|
+
## 0.6.20
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- 868c2bf: Added Date challenge expirations and numeric Tempo subscription period counts.
|
|
236
|
+
- 868c2bf: Added Tempo subscription key authorization, subscription receipt identifiers, activation replay protection, renewal idempotency, and dynamic access key handling.
|
|
237
|
+
|
|
238
|
+
## 0.6.19
|
|
239
|
+
|
|
240
|
+
### Patch Changes
|
|
241
|
+
|
|
242
|
+
- 4fffc6a: Fixed pre-broadcast simulation in `tempo.charge` and `tempo.session` by stripping `feeToken` and `feePayerSignature` from the simulation request, so the node does not try to recover `feePayerSignature` against a sender signature that viem's `call` action never includes.
|
|
243
|
+
|
|
244
|
+
## 0.6.18
|
|
245
|
+
|
|
246
|
+
### Patch Changes
|
|
247
|
+
|
|
248
|
+
- d365b41: Added Tempo CLI auto-swap and payment source token options.
|
|
249
|
+
- 9f660c2: Added Tempo CLI network shortcuts and challenge chain mismatch checks.
|
|
250
|
+
- 538c7fb: Added CLI commands for browsing the MPP services registry.
|
|
251
|
+
|
|
252
|
+
## 0.6.17
|
|
253
|
+
|
|
254
|
+
### Patch Changes
|
|
255
|
+
|
|
256
|
+
- 33df58b: Fixed Tempo session close and settle transactions to resolve funded Tempo fee tokens before signing.
|
|
257
|
+
|
|
258
|
+
## 0.6.16
|
|
259
|
+
|
|
260
|
+
### Patch Changes
|
|
261
|
+
|
|
262
|
+
- b711dc5: Preserved raw challenge opaque values when parsing and echoing credentials.
|
|
263
|
+
- 5059bfa: Fixed Tempo charge push verification for smart-account transaction hashes.
|
|
264
|
+
|
|
265
|
+
## 0.6.15
|
|
266
|
+
|
|
267
|
+
### Patch Changes
|
|
268
|
+
|
|
269
|
+
- 2b1cf51: Rejected expired challenges before client-side credential creation.
|
|
270
|
+
|
|
271
|
+
## 0.6.14
|
|
272
|
+
|
|
273
|
+
### Patch Changes
|
|
274
|
+
|
|
275
|
+
- ddf590e: Hardened Tempo session billing against concurrent replay, bodyless POST bypasses, inflated receipts, and close races.
|
|
276
|
+
- e53d3cd: Fixed Express middleware to short-circuit Tempo session management responses before route handlers run.
|
|
277
|
+
- 02663ab: Hardened fee-payer gas sponsorship validation.
|
|
278
|
+
|
|
279
|
+
## 0.6.13
|
|
280
|
+
|
|
281
|
+
### Patch Changes
|
|
282
|
+
|
|
283
|
+
- Blocked Tempo session charges after a channel force-close was requested and rejected reserved SSE charges during pending close.
|
|
284
|
+
|
|
285
|
+
## 0.6.12
|
|
286
|
+
|
|
287
|
+
### Patch Changes
|
|
288
|
+
|
|
289
|
+
- Fixed missing challenge-bound memo validation for Tempo pull transactions.
|
|
290
|
+
|
|
291
|
+
## 0.6.11
|
|
292
|
+
|
|
293
|
+
### Patch Changes
|
|
294
|
+
|
|
295
|
+
- Fixed Tempo clients and the CLI to prioritize local escrow and deposit configuration over server-provided session challenge overrides.
|
|
296
|
+
|
|
297
|
+
## 0.6.10
|
|
298
|
+
|
|
299
|
+
### Patch Changes
|
|
300
|
+
|
|
301
|
+
- Fixed SSE message encoding so multiline payloads could not forge downstream payment control events.
|
|
302
|
+
|
|
303
|
+
## 0.6.9
|
|
304
|
+
|
|
305
|
+
### Patch Changes
|
|
306
|
+
|
|
307
|
+
- Fixed Stripe proxy to strip caller-supplied `Stripe-Account` headers before forwarding requests upstream.
|
|
308
|
+
|
|
309
|
+
## 0.6.8
|
|
310
|
+
|
|
311
|
+
### Patch Changes
|
|
312
|
+
|
|
313
|
+
- b5561f5: Added an actionable error when Linux account storage cannot find secret-tool.
|
|
314
|
+
|
|
315
|
+
## 0.6.7
|
|
316
|
+
|
|
317
|
+
### Patch Changes
|
|
318
|
+
|
|
319
|
+
- Fixed zero-amount Tempo proof verification to validate non-keychain signature envelopes before trusting their signer address.
|
|
320
|
+
|
|
321
|
+
## 0.6.6
|
|
322
|
+
|
|
323
|
+
### Patch Changes
|
|
324
|
+
|
|
325
|
+
- 78bb8c8: Bumped `ox` to `0.14.18` so the bundled Tempo payment UI preserves `limits[].period` in the on-chain `KeyAuthorization`. Without this, per-period access keys failed signer recovery and silent signing fell back to the wallet approval dialog.
|
|
326
|
+
|
|
327
|
+
## 0.6.5
|
|
328
|
+
|
|
329
|
+
### Patch Changes
|
|
330
|
+
|
|
331
|
+
- 3c5cd4b: Fixed zero-amount Tempo proof credentials to bind signatures to the challenge realm.
|
|
332
|
+
- 24604ff: Fixed MCP stdio startup and returned structured CLI command results without writing raw tool output to stdout.
|
|
333
|
+
|
|
334
|
+
## 0.6.4
|
|
335
|
+
|
|
336
|
+
### Patch Changes
|
|
337
|
+
|
|
338
|
+
- 0d1e548: Fixed credential `opaque` serialization to use the spec-compliant base64url string shape, while keeping deserialization backward-compatible with legacy object-shaped credentials.
|
|
339
|
+
- 9536014: Added canonical discovery output using `x-payment-info.offers[]` while continuing to accept the legacy flat shorthand during validation and parsing.
|
|
340
|
+
|
|
341
|
+
## 0.6.3
|
|
342
|
+
|
|
343
|
+
### Patch Changes
|
|
344
|
+
|
|
345
|
+
- 530a6ff: Validate session settle/close senders against the channel payee so raw delegated access-key accounts fail fast with a clear error, and use the raw Tempo transaction path for access-key-compatible settlement and close flows.
|
|
346
|
+
|
|
347
|
+
## 0.6.2
|
|
348
|
+
|
|
349
|
+
### Patch Changes
|
|
350
|
+
|
|
351
|
+
- 57354de: Added scope-bound challenge metadata for route replay protection, scope-aware `verifyCredential()` checks, and adapter auto-scoping for Hono and proxy routes.
|
|
352
|
+
|
|
353
|
+
## 0.6.1
|
|
354
|
+
|
|
355
|
+
### Patch Changes
|
|
356
|
+
|
|
357
|
+
- Fixed cross-route credential replay checks by binding `unitType` and allowing `verifyCredential()` to validate credentials against expected route context.
|
|
358
|
+
|
|
359
|
+
## 0.6.0
|
|
360
|
+
|
|
361
|
+
### Minor Changes
|
|
362
|
+
|
|
363
|
+
- e606fa9: **Breaking:** Removed default `Accept-Payment` headers on every outgoing request for polyfilled fetch in browsers. Now defaults to same-origin requests in browser environments. Non-browser environments are unaffected. Use `acceptPaymentPolicy` to control supported payment origins.
|
|
364
|
+
|
|
365
|
+
### Patch Changes
|
|
366
|
+
|
|
367
|
+
- e606fa9: Added `acceptPaymentPolicy` option to control when the `Accept-Payment` header is injected on outgoing requests, mitigating CORS preflight failures on non-payment-aware servers.
|
|
368
|
+
|
|
369
|
+
- In browsers, `Fetch.polyfill` and `Mppx.create` (with `polyfill: true`) default to `'same-origin'`, preventing cross-origin CORS issues.
|
|
370
|
+
- Non-browser environments and `Mppx.create` with `polyfill: false` default to `'always'`.
|
|
371
|
+
- Supported values: `'always'`, `'same-origin'`, `'never'`, `{ origins: string[] }` (with `*.` wildcard support).
|
|
372
|
+
- Exported `Fetch` namespace from `mppx/client`.
|
|
373
|
+
|
|
374
|
+
- 1a831eb: Fixed Tempo session content gating and SSE plain-response billing to share request-body detection so HTTP/2 POST requests without Content-Length were classified consistently.
|
|
375
|
+
|
|
376
|
+
## 0.5.17
|
|
377
|
+
|
|
378
|
+
### Patch Changes
|
|
379
|
+
|
|
380
|
+
- 3259157: Added `mppx account export` command for exporting the private key of local keychain-backed accounts.
|
|
381
|
+
|
|
382
|
+
## 0.5.16
|
|
383
|
+
|
|
384
|
+
### Patch Changes
|
|
385
|
+
|
|
386
|
+
- 5b6a938: Thread context through pinned requests so MCP tool calls and HEAD requests cannot bypass the shared management-vs-content gate.
|
|
387
|
+
- 22be301: Preserve `keyAuthorization` in fee-sponsored Tempo charge transactions and reject unsupported transaction fields instead of silently dropping them.
|
|
388
|
+
- 3e7320d: Charge `tempo/session` SSE streams with `unitType: "request"` once per streamed response instead of once per emitted SSE data event.
|
|
389
|
+
|
|
390
|
+
## 0.5.15
|
|
391
|
+
|
|
392
|
+
### Patch Changes
|
|
393
|
+
|
|
394
|
+
- 7aff8ab: Prevented default HTTP `tempo.session()` content requests from replaying the same accepted voucher without advancing request/response accounting.
|
|
395
|
+
- 7aff8ab: Pinned credential verification and compose dispatch to challenge `opaque` metadata so same-economics sibling routes could not replay each other's credentials.
|
|
396
|
+
|
|
397
|
+
## 0.5.14
|
|
398
|
+
|
|
399
|
+
### Patch Changes
|
|
400
|
+
|
|
401
|
+
- 1ba7af2: Hardened sponsored Tempo session `open` and `topUp` flows by enforcing fee-payer policy limits, blocking call smuggling, and adding `feePayerPolicy` support.
|
|
402
|
+
- 1ba7af2: Fixed fee-sponsored Tempo charge flows by simulating sponsored transactions before broadcast and binding swap approvals to the DEX input token.
|
|
403
|
+
- 1ba7af2: Normalized Tempo session channel IDs across storage and verification paths, preventing case-variant aliases from creating duplicate channel state.
|
|
404
|
+
|
|
405
|
+
## 0.5.13
|
|
406
|
+
|
|
407
|
+
### Patch Changes
|
|
408
|
+
|
|
409
|
+
- 7e16df7: Make Tempo charge fee-sponsorship policy resolve per chain and allow overriding it with `feePayerPolicy`.
|
|
410
|
+
- 13d2851: Fixed Tempo HTML pay button text overrides and make the HTML page title follow a custom `paymentRequired` label when `title` is omitted.
|
|
411
|
+
- e81f45c: Add Tempo charge `supportedModes` request support so clients and servers can explicitly negotiate `push` vs `pull` settlement.
|
|
412
|
+
|
|
413
|
+
## 0.5.12
|
|
414
|
+
|
|
415
|
+
### Patch Changes
|
|
416
|
+
|
|
417
|
+
- f6ce313: Add typed `paymentPreferences` support that emits `Accept-Payment` on client requests and filters composed server challenges accordingly.
|
|
418
|
+
- 7059598: Accept zero-dollar proof credentials signed by authorized Tempo access keys and export Tempo proof DID helpers from `mppx/tempo`.
|
|
419
|
+
- b6a18c4: Raised too low fee-payer `maxTotalFee` policy
|
|
420
|
+
|
|
421
|
+
## 0.5.11
|
|
422
|
+
|
|
423
|
+
### Patch Changes
|
|
424
|
+
|
|
425
|
+
- 2aff2c0: Handled malformed Host headers in the Node request listener instead of letting them crash the process.
|
|
426
|
+
|
|
427
|
+
## 0.5.10
|
|
428
|
+
|
|
429
|
+
### Patch Changes
|
|
430
|
+
|
|
431
|
+
- d95c01c: Pruned internal dependencies.
|
|
432
|
+
|
|
433
|
+
## 0.5.9
|
|
434
|
+
|
|
435
|
+
### Patch Changes
|
|
436
|
+
|
|
437
|
+
- 4d7fe94: Bumped internal deps
|
|
438
|
+
|
|
439
|
+
## 0.5.8
|
|
440
|
+
|
|
441
|
+
### Patch Changes
|
|
442
|
+
|
|
443
|
+
- 00572a0: Normalized Tempo fee-payer co-signing for charge flows so the final sponsored transaction is rebuilt from validated fields with centralized fee-payer policy checks.
|
|
444
|
+
- 7d4fdab: Centralize the authoritative challenge verification inputs by adding captured-request and verified-envelope context plumbing, shared canonical HMAC input generation, and a single pinned-request comparison path without changing the existing server hook model.
|
|
445
|
+
- b087c21: Add an optional atomic `Store.update()` primitive for custom store backends and use it to make Tempo replay protection and channel state updates safe across distributed deployments.
|
|
446
|
+
|
|
447
|
+
## 0.5.7
|
|
448
|
+
|
|
449
|
+
### Patch Changes
|
|
450
|
+
|
|
451
|
+
- 9cffd24: Added `Config`, `Text`, and `Theme` type exports to `mppx/html` entrypoint.
|
|
452
|
+
|
|
453
|
+
## 0.5.6
|
|
454
|
+
|
|
455
|
+
### Patch Changes
|
|
456
|
+
|
|
457
|
+
- 0c4ce6f: Added `.compose` support to HTML payment links.
|
|
458
|
+
|
|
459
|
+
## 0.5.5
|
|
460
|
+
|
|
461
|
+
### Patch Changes
|
|
462
|
+
|
|
463
|
+
- e7147c2: Bind attribution memo nonce to challenge ID. The 7-byte nonce field (bytes 25–31) is now derived from `keccak256(challengeId)[0..6]` instead of random bytes, preventing transaction hash stealing in push mode. `Attribution.encode()` now requires `challengeId`. The server verifies challenge binding and server fingerprint for `hash` (push) credentials. Pull-mode `transaction` credentials are not affected — the server controls broadcast, so there is no hash-stealing risk.
|
|
464
|
+
|
|
465
|
+
**Breaking:** `Attribution.encode()` now requires `challengeId` — callers must pass the challenge ID to generate a memo. Old push-mode clients that generate random attribution nonces or plain transfers without memos are rejected by the server. Pull-mode clients are unaffected.
|
|
466
|
+
|
|
467
|
+
## 0.5.4
|
|
468
|
+
|
|
469
|
+
### Patch Changes
|
|
470
|
+
|
|
471
|
+
- c3f522c: Fixed CLI defaulting to testnet when `--rpc-url` is omitted. The CLI now defaults to Tempo mainnet. Also added `resolveRpcUrl` helper so `MPPX_RPC_URL` and `RPC_URL` env vars are respected consistently across all commands.
|
|
472
|
+
- f086276: Added theming to automatic HTML payment links.
|
|
473
|
+
|
|
474
|
+
## 0.5.3
|
|
475
|
+
|
|
476
|
+
### Patch Changes
|
|
477
|
+
|
|
478
|
+
- ba0bb60: Override vulnerable `lodash` (`<=4.17.23`) to `>=4.18.0` in pnpm overrides. Fixes code injection via `_.template` ([GHSA-r5fr-rjxr-66jc](https://github.com/advisories/GHSA-r5fr-rjxr-66jc)) and prototype pollution via `_.unset`/`_.omit` ([GHSA-f23m-r3pf-42rh](https://github.com/advisories/GHSA-f23m-r3pf-42rh)).
|
|
479
|
+
|
|
480
|
+
## 0.5.2
|
|
481
|
+
|
|
482
|
+
### Patch Changes
|
|
483
|
+
|
|
484
|
+
- 2a7dbd3: Added experimental support for payment links
|
|
485
|
+
- 20f3fe4: Hardened credential verification, transport billing, error responses, and proxy routing. Credential request binding now verifies fields match the actual incoming request. SSE transport derives billing context directly from the verified credential payload. 402 error responses no longer leak internal details. Proxy routing binds management POST fallback to the credential's payment method and intent for correct disambiguation.
|
|
486
|
+
|
|
487
|
+
## 0.5.1
|
|
488
|
+
|
|
489
|
+
### Patch Changes
|
|
490
|
+
|
|
491
|
+
- dd27cb1: Validate the `did:pkh:eip155` source DID on zero-dollar Tempo proof credentials. Servers now reject malformed proof source DIDs and chain ID mismatches between the source DID and the challenge signing domain.
|
|
492
|
+
|
|
493
|
+
## 0.5.0
|
|
494
|
+
|
|
495
|
+
### Minor Changes
|
|
496
|
+
|
|
497
|
+
- 5e7750b: Added a `proof` credential type for zero-amount Tempo charge requests. Clients now sign an EIP-712 proof over the challenge ID instead of creating a broadcastable transaction, and servers verify the proof against the credential source DID before accepting the request. This prevents zero-dollar auth flows from burning gas when the payer would otherwise have been the fee payer.
|
|
498
|
+
|
|
499
|
+
## 0.4.12
|
|
500
|
+
|
|
501
|
+
### Patch Changes
|
|
502
|
+
|
|
503
|
+
- 5684b94: Fixed `settleOnChain` and `closeOnChain` to use the payee account as
|
|
504
|
+
`msg.sender` instead of the fee payer when submitting fee-sponsored
|
|
505
|
+
transactions. Previously, `sendFeePayerTx` used the fee payer as both
|
|
506
|
+
sender and gas sponsor, causing the escrow contract to revert with
|
|
507
|
+
`NotPayee()`. Added `account` option to `tempo.settle()` so callers can
|
|
508
|
+
specify the signing account separately from the fee payer.
|
|
509
|
+
- 3bc8657: Added compile-time guard to `tempo.session()` and `tempo.charge()`. Unknown properties (e.g. `stream` instead of `sse`) now cause a type error instead of being silently accepted.
|
|
510
|
+
- 0531edd: Added split-payment support to Tempo charge requests, including client transaction construction and stricter server verification for split transfers.
|
|
511
|
+
- 6188184: Added `realm` auto-detection from the request `Host` header when not explicitly configured. Resolution order: explicit value → env vars (`MPP_REALM`, `FLY_APP_NAME`, `VERCEL_URL`, etc.) → request URL hostname → `"MPP Payment"` fallback with a one-time warning. Removed the hard-coded `"MPP Payment"` default and deprioritized `HOST`/`HOSTNAME` env vars in favor of platform-specific alternatives.
|
|
512
|
+
- ba79504: Return `410 ChannelClosedError` instead of `402 AmountExceedsDepositError` when a channel's on-chain deposit is zero but the channel still exists (payer is non-zero). This handles a race window during settlement where the escrow contract zeros the deposit before setting the finalized flag.
|
|
513
|
+
|
|
514
|
+
## 0.4.11
|
|
515
|
+
|
|
516
|
+
### Patch Changes
|
|
517
|
+
|
|
518
|
+
- Fixed close voucher validation to reject vouchers equal to the on-chain settled amount. ([GHSA-mv9j-8jvg-j8mr](https://github.com/wevm/mppx/security/advisories/GHSA-mv9j-8jvg-j8mr))
|
|
519
|
+
- Added Stripe credential replay protection via the `Idempotent-Replayed` header. ([GHSA-8mhj-rffc-rcvw](https://github.com/wevm/mppx/security/advisories/GHSA-8mhj-rffc-rcvw))
|
|
520
|
+
|
|
521
|
+
## 0.4.10
|
|
522
|
+
|
|
523
|
+
### Patch Changes
|
|
524
|
+
|
|
525
|
+
- b4e1a3d: Add OpenAPI-first discovery tooling via `mppx/discovery`, framework `discovery()` helpers, and `mppx discover validate`.
|
|
526
|
+
|
|
527
|
+
This also changes `mppx/proxy` discovery routes:
|
|
528
|
+
|
|
529
|
+
- `GET /openapi.json` is now the canonical machine-readable discovery document.
|
|
530
|
+
- `GET /llms.txt` remains available as the text-friendly discovery view.
|
|
531
|
+
- Legacy `/discover*` routes now return `410 Gone`.
|
|
532
|
+
|
|
533
|
+
- 70f6595: Fix two production session/SSE robustness issues.
|
|
534
|
+
|
|
535
|
+
1. Accept exact voucher replays (`cumulativeAmount == highestVoucherAmount`) as idempotent success after signature verification, while still rejecting lower cumulative amounts and preserving monotonic state advancement rules.
|
|
536
|
+
2. Prevent invalid null-body response wrapping in SSE receipt transport by returning `101/204/205/304` responses directly instead of stream-wrapping them.
|
|
537
|
+
|
|
538
|
+
- 3c713c9: `tempo.session()` now throws immediately at initialization if no viem `Account` is provided, instead of failing later with an opaque error during channel close. The error message includes an example fix.
|
|
539
|
+
|
|
540
|
+
## 0.4.9
|
|
541
|
+
|
|
542
|
+
### Patch Changes
|
|
543
|
+
|
|
544
|
+
- d9b651d: Added `Store.redis()` adapter for standard Redis clients (ioredis, node-redis, Valkey) with BigInt-safe serialization.
|
|
545
|
+
- b69bbee: Fixed Express middleware hanging by constructing a Fetch `Request` directly from Express's `req` API.
|
|
546
|
+
- 7da6cfd: Fixed SSE header normalization.
|
|
547
|
+
- a2c6cc9: Skipped route amount/currency/recipient validation for topUp and voucher credentials. These `POST`s carry no application body so the route's request hook may produce a different amount than the challenge echoed from the original request. The on-chain voucher signature is the real validation.
|
|
548
|
+
|
|
549
|
+
## 0.4.8
|
|
550
|
+
|
|
551
|
+
### Patch Changes
|
|
552
|
+
|
|
553
|
+
- 99920d0: Updated validation. ([GHSA-8x4m-qw58-3pcx](https://github.com/wevm/mppx/security/advisories/GHSA-8x4m-qw58-3pcx))
|
|
554
|
+
|
|
555
|
+
## 0.4.7
|
|
556
|
+
|
|
557
|
+
### Patch Changes
|
|
558
|
+
|
|
559
|
+
- 2a0b88e: Fixed cooperative close to sign the server-reported spent amount instead of the high-water mark (`cumulativeAmount`), preventing overcharging when actual usage was below the pre-authorized voucher amount.
|
|
560
|
+
|
|
561
|
+
## 0.4.6
|
|
562
|
+
|
|
563
|
+
### Patch Changes
|
|
564
|
+
|
|
565
|
+
- 281005c: Added support for `feePayer` as a URL string on `tempo` method.
|
|
566
|
+
|
|
567
|
+
## 0.4.5
|
|
568
|
+
|
|
569
|
+
### Patch Changes
|
|
570
|
+
|
|
571
|
+
- bbd4b3f: Updated Moderato (testnet) escrow contract address to `0xe1c4d3dce17bc111181ddf716f75bae49e61a336`.
|
|
572
|
+
|
|
573
|
+
## 0.4.4
|
|
574
|
+
|
|
575
|
+
### Patch Changes
|
|
576
|
+
|
|
577
|
+
- b09a35a: fix: update getChannel ABI field order to match new escrow contract
|
|
578
|
+
- c520705: Fixed `Client.getResolver` to inject Tempo serializers onto clients missing them, preventing the default serializer from rejecting Tempo-specific transaction fields.
|
|
579
|
+
- b09a35a: chore: update mainnet escrow contract address
|
|
580
|
+
|
|
581
|
+
## 0.4.3
|
|
582
|
+
|
|
583
|
+
### Patch Changes
|
|
584
|
+
|
|
585
|
+
- 7f8d103: chore: update mainnet escrow contract address
|
|
586
|
+
|
|
587
|
+
## 0.4.2
|
|
588
|
+
|
|
589
|
+
### Patch Changes
|
|
590
|
+
|
|
591
|
+
- c089da5: Added CLI config via `mppx.config.(js|mjs|ts)`. Allows for extending `mppx` CLI to support non-built-in methods.
|
|
592
|
+
|
|
593
|
+
## 0.4.1
|
|
594
|
+
|
|
595
|
+
### Patch Changes
|
|
596
|
+
|
|
597
|
+
- f2bc051: Support keychain V2 (`0x04`) signatures via ox 0.14 upgrade
|
|
598
|
+
|
|
599
|
+
## 0.4.0
|
|
600
|
+
|
|
601
|
+
### Minor Changes
|
|
602
|
+
|
|
603
|
+
- 143ebc9: Support handler function refs in `compose()`.
|
|
604
|
+
- **`[mppx.tempo.charge, { amount: '1' }]` syntax** — `compose()` now accepts handler function references (e.g. `mppx.tempo.charge`) as the first element of entry tuples, in addition to `Method.AnyServer` objects and `"name/intent"` string keys.
|
|
605
|
+
- **`_method` metadata on nested handlers** — nested handler functions are tagged with their source `Method.AnyServer`, enabling `compose()` to resolve the correct handler.
|
|
606
|
+
|
|
607
|
+
### Patch Changes
|
|
608
|
+
|
|
609
|
+
- db2033c: Set `feeToken` during server co-sign and simulation for fee-payer transactions.
|
|
610
|
+
|
|
611
|
+
When the client sends a fee-payer (0x78) envelope, `feeToken` is intentionally omitted. The server must set it at co-sign time, but previously never did — causing "Fee token spending limit exceeded" errors. Now resolves `feeToken` from the deserialized transaction or falls back to the chain's default currency.
|
|
612
|
+
|
|
613
|
+
## 0.3.16
|
|
614
|
+
|
|
615
|
+
### Patch Changes
|
|
616
|
+
|
|
617
|
+
- 79bbfc6: Added multi-challenge `mppx.challenge()` combinator for presenting multiple payment methods in a single 402 response, nested accessors (`mppx.tempo.charge(...)`), `Mppx.challenge()` static, `Challenge.fromResponseList()`, and automatic client preference-based challenge selection.
|
|
618
|
+
- b4f3c92: Migrated to use `call` instead of manual `eth_estimateGas`.
|
|
619
|
+
|
|
620
|
+
## 0.3.15
|
|
621
|
+
|
|
622
|
+
### Patch Changes
|
|
623
|
+
|
|
624
|
+
- cd42c28: Added `rawFetch` property to the client `Mppx` instance, exposing the original unwrapped fetch function for requests that should bypass 402 payment interception.
|
|
625
|
+
- 230ef16: Moved CLI payment logs (Payment Required, Payment Receipt, channel open/close) behind `-v` flag. Added `-vv` for full HTTP headers.
|
|
626
|
+
|
|
627
|
+
## 0.3.14
|
|
628
|
+
|
|
629
|
+
### Patch Changes
|
|
630
|
+
|
|
631
|
+
- 345425f: Removed `expires` from charge request schemas (tempo, stripe). Expiry is now conveyed exclusively via the `expires` auth-param on the Challenge, not duplicated in the request body. Server handlers default to `Expires.minutes(5)` when `expires` is not explicitly provided.
|
|
632
|
+
- eb19f32: Added `mode` parameter to `tempo.charge()` client — `'push'` (client broadcasts tx, sends hash) and `'pull'` (client signs tx, server broadcasts). Defaults to `'push'` for JSON-RPC accounts, `'pull'` otherwise.
|
|
633
|
+
|
|
634
|
+
## 0.3.13
|
|
635
|
+
|
|
636
|
+
### Patch Changes
|
|
637
|
+
|
|
638
|
+
- 82206f5: Made `constantTimeEqual` isomorphic by replacing `node:crypto` with `ox` sha256 and a custom constant-time comparison.
|
|
639
|
+
|
|
640
|
+
## 0.3.12
|
|
641
|
+
|
|
642
|
+
### Patch Changes
|
|
643
|
+
|
|
644
|
+
- c28944e: Added `autoSwap` flag to `tempo` method. When enabled, the client automatically swaps from supported currencies via the DEX if the payer lacks the target token.
|
|
645
|
+
- 9c23cb7: Fixed fetch polyfill to pass `init` through unmodified for non-402 responses. Previously, every request eagerly destructured `init` to strip the `context` property, creating a new object that could break libraries relying on object identity (e.g. WebSocket upgrade handshakes).
|
|
646
|
+
|
|
647
|
+
## 0.3.11
|
|
648
|
+
|
|
649
|
+
### Patch Changes
|
|
650
|
+
|
|
651
|
+
- fd466c3: Added `waitForConfirmation` option to `session()` and `charge()` payment methods. When `false`, transactions are simulated via `eth_estimateGas` and broadcast without waiting for on-chain confirmation, reducing latency.
|
|
652
|
+
- ddb7057: Fixed `Handlers` type to omit shorthand intent keys when multiple methods share the same intent, matching runtime behavior and preventing `TypeError` on collision.
|
|
653
|
+
|
|
654
|
+
## 0.3.10
|
|
655
|
+
|
|
656
|
+
### Patch Changes
|
|
657
|
+
|
|
658
|
+
- 558279e: Added `closeRequestedAt` check in session voucher handler with configurable `channelStateTtl` (default: 60s). Prevented payers from using a channel after initiating a forced close.
|
|
659
|
+
- 558279e: Added expiration check on credentials in the core handler. Expired credentials are now rejected with `PaymentExpiredError` instead of being processed.
|
|
660
|
+
- 558279e: Added token address validation in `broadcastTopUpTransaction` fee-payer logic. Prevented approve calls to arbitrary contracts in fee-sponsored topUp transactions.
|
|
661
|
+
- 558279e: Bound credential verification to the route's configured request. Prevented cross-route scope confusion where a credential issued for one route could be presented at another.
|
|
662
|
+
- 558279e: Removed insecure hardcoded `'tmp'` fallback for `secretKey`. `Mppx.create()` now throws a clear error if neither `MPP_SECRET_KEY` env var nor explicit `secretKey` is provided.
|
|
663
|
+
- 5d4bb93: Removed `realm` from `PaymentRequiredError` detail message to avoid leaking deployment URLs and hostnames in error responses.
|
|
664
|
+
|
|
665
|
+
## 0.3.9
|
|
666
|
+
|
|
667
|
+
### Patch Changes
|
|
668
|
+
|
|
669
|
+
- a016e1f: Added fee payer support to `settleOnChain` and `closeOnChain` for server-originated transactions on chains where the server EOA has no native tokens. Transactions are built using `prepareTransactionRequest` → dual-sign → `sendRawTransactionSync` with an explicitly resolved fee token.
|
|
670
|
+
|
|
671
|
+
## 0.3.8
|
|
672
|
+
|
|
673
|
+
### Patch Changes
|
|
674
|
+
|
|
675
|
+
- 7cb0d5f: Fixed CLI failing with "No account found" when `MPPX_PRIVATE_KEY` is set to an empty string.
|
|
676
|
+
|
|
677
|
+
## 0.3.7
|
|
678
|
+
|
|
679
|
+
### Patch Changes
|
|
680
|
+
|
|
681
|
+
- e4f0138: Added `nonceKey: 'expiring'` to tempo charge transactions to avoid nonce collisions on parallel requests.
|
|
682
|
+
|
|
683
|
+
## 0.3.6
|
|
684
|
+
|
|
685
|
+
### Patch Changes
|
|
686
|
+
|
|
687
|
+
- d2fb5e3: Fixed issue where mainnet would not default to USDC unless `testnet: false` was explicitly passed.
|
|
688
|
+
|
|
689
|
+
## 0.3.5
|
|
690
|
+
|
|
691
|
+
### Patch Changes
|
|
692
|
+
|
|
693
|
+
- 6e2be11: Replaced `--channel <id>` and `--deposit <amount>` CLI flags with `-M`/`--method-opt` for passing method-specific options.
|
|
694
|
+
|
|
695
|
+
```diff
|
|
696
|
+
# Before
|
|
697
|
+
- mppx example.com/content --channel 0x123 --deposit 1000000
|
|
698
|
+
|
|
699
|
+
# After
|
|
700
|
+
+ mppx example.com/content -M channel=0x123 -M deposit=1000000
|
|
701
|
+
```
|
|
702
|
+
|
|
703
|
+
- 6e2be11: Added Stripe payment method support to the CLI.
|
|
704
|
+
|
|
705
|
+
```bash
|
|
706
|
+
# Set your Stripe test-mode secret key
|
|
707
|
+
export MPPX_STRIPE_SECRET_KEY=sk_test_...
|
|
708
|
+
|
|
709
|
+
# Make a request to a Stripe-enabled endpoint
|
|
710
|
+
mppx https://example.com/content
|
|
711
|
+
```
|
|
712
|
+
|
|
713
|
+
- 955deb2: Renamed USDC.e to USDC in account view token list.
|
|
714
|
+
|
|
715
|
+
## 0.3.4
|
|
716
|
+
|
|
717
|
+
### Patch Changes
|
|
718
|
+
|
|
719
|
+
- 9cf4943: Added USDC.e to account view mainnet token list and use `MPPX_RPC_URL` for default mainnet balance fetching.
|
|
720
|
+
- 11c0422: Renamed internal `stream` terminology to `session` to align with the MPP spec. This includes renaming the `src/tempo/stream/` directory to `src/tempo/session/`, updating all problem type URIs from `…/problems/stream/…` to `…/problems/session/…`, and renaming associated types (e.g., `StreamCredentialPayload` → `SessionCredentialPayload`). No public API changes.
|
|
721
|
+
|
|
722
|
+
## 0.3.3
|
|
723
|
+
|
|
724
|
+
### Patch Changes
|
|
725
|
+
|
|
726
|
+
- 04b04c9: Added auto-detection of `realm` and `secretKey` from environment variables in `Mppx.create()`.
|
|
727
|
+
- **Realm**: checks `MPP_REALM`, `FLY_APP_NAME`, `HEROKU_APP_NAME`, `HOST`, `HOSTNAME`, `RAILWAY_PUBLIC_DOMAIN`, `RENDER_EXTERNAL_HOSTNAME`, `VERCEL_URL`, `WEBSITE_HOSTNAME`
|
|
728
|
+
- **Secret key**: checks `MPP_SECRET_KEY`
|
|
729
|
+
|
|
730
|
+
## 0.3.2
|
|
731
|
+
|
|
732
|
+
### Patch Changes
|
|
733
|
+
|
|
734
|
+
- b927c06: - `mppx/proxy`: Modified routes to show service in path for completeness (e.g. `POST /openai/v1/chat/completions` instead of `POST /v1/chat/completions`).
|
|
735
|
+
|
|
736
|
+
## 0.3.1
|
|
737
|
+
|
|
738
|
+
### Patch Changes
|
|
739
|
+
|
|
740
|
+
- e6c9f85: Fixed `/discover.md` route returning 404.
|
|
741
|
+
|
|
742
|
+
## 0.3.0
|
|
743
|
+
|
|
744
|
+
### Minor Changes
|
|
745
|
+
|
|
746
|
+
- d60f623: - **`mpp/proxy` (Breaking):** Renamed `/services*` discovery routes to `/discover*`.
|
|
747
|
+
- `mpp/proxy`: Simplified `llms.txt` to a brief service overview, linking each service to `/discover/<id>`.
|
|
748
|
+
- `mpp/proxy`: Added `/discover` and `/discover/<id>` endpoints with content negotiation (JSON by default, markdown for `Accept: text/markdown`/`text/plain` or bot/CLI user agents).
|
|
749
|
+
- `mpp/proxy`: Added `.md` extension variants (`/discover.md`, `/discover/<id>.md`) for explicit markdown.
|
|
750
|
+
- `mpp/proxy`: Added `/discover/all` for full markdown listing with route details.
|
|
751
|
+
|
|
752
|
+
## 0.2.6
|
|
753
|
+
|
|
754
|
+
### Patch Changes
|
|
755
|
+
|
|
756
|
+
- 83c3bab: - Added `title` and `description` options to `Proxy.create` config, used to populate the `llms.txt` heading and description.
|
|
757
|
+
|
|
758
|
+
```ts
|
|
759
|
+
const proxy = Proxy.create({
|
|
760
|
+
title: 'My AI Gateway',
|
|
761
|
+
description: 'A paid proxy for LLM and AI services.',
|
|
762
|
+
services: [...]
|
|
763
|
+
})
|
|
764
|
+
```
|
|
765
|
+
|
|
766
|
+
- Added `title`, `description`, and `docsLlmsUrl` properties to `Service` type and `Service.from` config.
|
|
767
|
+
|
|
768
|
+
```ts
|
|
769
|
+
Service.from('my-api', {
|
|
770
|
+
baseUrl: 'https://api.example.com',
|
|
771
|
+
title: 'My API',
|
|
772
|
+
description: 'A custom API service.',
|
|
773
|
+
docsLlmsUrl: 'https://example.com/llms.txt',
|
|
774
|
+
routes: { ... },
|
|
775
|
+
})
|
|
776
|
+
|
|
777
|
+
// or with per-endpoint docs
|
|
778
|
+
Service.from('my-api', {
|
|
779
|
+
baseUrl: 'https://api.example.com',
|
|
780
|
+
docsLlmsUrl: (endpoint) =>
|
|
781
|
+
endpoint
|
|
782
|
+
? `https://example.com/api/${encodeURIComponent(endpoint)}.md`
|
|
783
|
+
: 'https://example.com/llms.txt',
|
|
784
|
+
routes: { ... },
|
|
785
|
+
})
|
|
786
|
+
```
|
|
787
|
+
|
|
788
|
+
## 0.2.5
|
|
789
|
+
|
|
790
|
+
### Patch Changes
|
|
791
|
+
|
|
792
|
+
- 01fa8ba: Added fallback `authorizedSigner` to `account.accessKeyAddress` when not explicitly provided.
|
|
793
|
+
|
|
794
|
+
## 0.2.4
|
|
795
|
+
|
|
796
|
+
### Patch Changes
|
|
797
|
+
|
|
798
|
+
- 83d0175: Bumped `viem` peer dependency to `>=2.46.2`.
|
|
799
|
+
|
|
800
|
+
## 0.2.3
|
|
801
|
+
|
|
802
|
+
### Patch Changes
|
|
803
|
+
|
|
804
|
+
- c0aa6ad: Fixed Stripe `createWithClient` to use `shared_payment_granted_token` instead of `payment_method` when creating a PaymentIntent with an SPT. This aligns the SDK client path with the raw fetch path and fixes 402 errors on credential retry.
|
|
805
|
+
- e7f5985: Rejected keychain and non-secp256k1 signatures in `verifyVoucher`.
|
|
806
|
+
|
|
807
|
+
## 0.2.2
|
|
808
|
+
|
|
809
|
+
### Patch Changes
|
|
810
|
+
|
|
811
|
+
- 360fc03: Added `Json.canonicalize` from `ox`
|
|
812
|
+
|
|
813
|
+
## 0.2.1
|
|
814
|
+
|
|
815
|
+
### Patch Changes
|
|
816
|
+
|
|
817
|
+
- eb72c76: **Breaking:**
|
|
818
|
+
- Renamed `Challenge.fromIntent` to `Challenge.fromMethod`.
|
|
819
|
+
- Renamed `PaymentRequest.fromIntent` to `PaymentRequest.fromMethod`.
|
|
820
|
+
|
|
821
|
+
## 0.2.0
|
|
822
|
+
|
|
823
|
+
### Minor Changes
|
|
824
|
+
|
|
825
|
+
- 627f5ec: **Breaking:**
|
|
826
|
+
- Renamed `Intent` and `MethodIntent` modules to `Method`.
|
|
827
|
+
- Removed `Intent` export from `mppx`. Use `Method` instead.
|
|
828
|
+
- Removed `MethodIntent` export from `mppx`. Use `Method` instead.
|
|
829
|
+
- Renamed `MethodIntents` export to `Methods` in `mppx/tempo` and `mppx/stripe`.
|
|
830
|
+
|
|
831
|
+
## 0.1.1
|
|
832
|
+
|
|
833
|
+
### Patch Changes
|
|
834
|
+
|
|
835
|
+
- 910102d: Fixed SSE streaming reliability: pass `signal` through `SessionManager.sse()` so HTTP connections close on abort, snapshot challenge at SSE open time to prevent concurrent requests from corrupting voucher credentials, and forward `request.signal` to `Sse.serve()` so `chargeOrWait` breaks on disconnect.
|
|
836
|
+
|
|
837
|
+
## 0.1.0
|
|
838
|
+
|
|
839
|
+
### Minor Changes
|
|
840
|
+
|
|
841
|
+
- badab1a: Initial release.
|