// Copyright 2024-2026 Tymofii Pidlisnyi. Apache-2.0 license. See LICENSE.
// ══════════════════════════════════════════════════════════════════
// MPP — Machine Payments Protocol (Stripe + Tempo + Visa), draft-httpauth-payment-00
// ══════════════════════════════════════════════════════════════════
// MPP is an HTTP authentication scheme for machine-initiated
// payments. Co-authored by Stripe, Tempo, and Visa and announced
// March 18 2026; the IETF draft 'draft-httpauth-payment-00' was
// posted March 30 2026 (mpp.dev, paymentauth.org).
//
// Wire shape: a server returns 402 with a 'WWW-Authenticate: Payment'
// challenge listing one or more payment methods. The client fulfills
// one method (signs a chain transaction, runs a card auth via the
// Visa MPP card spec, settles a Lightning invoice) and retries with
// 'Authorization: Payment' carrying proof. The server then returns
// 200 plus a 'Payment-Receipt' header.
//
// Defining property: payment-method agnostic. Methods are first-class
// protocol extensions — Tempo stablecoins, Stripe cards via the Visa
// MPP card spec, Bitcoin Lightning, and any future scheme bolt on as
// new MppMethod variants without changing the envelope. This is what
// distinguishes MPP from x402, which assumes a USDC-on-EVM
// facilitator and a single 'exact' scheme.
//
// This adapter binds APS V2 governance to MPP at the 402 challenge-
// response boundary. APS signs and verifies receipts over each
// settled payment, crosswalks V2Delegation to permitted methods +
// currencies + per-charge caps, and maps APS denial reasons to MPP
// HTTP error envelopes (status code + WWW-Authenticate error= token)
// so the resource server emits a well-formed 402/403/410/503 instead
// of a transport failure.
//
// SDK scope: type model + crosswalk + APS-signed receipts/denials
// over canonicalized challenge/authorization envelopes. Out of scope
// (gateway product): live HTTP intercept, on-chain settlement
// verification, escrow session orchestration, multi-method routing
// policy, dispute orchestration.
// ══════════════════════════════════════════════════════════════════
export const MPP_VERSION = 'draft-httpauth-payment-00';
//# sourceMappingURL=types.js.map