/** * @rma-dev/http-proxy-util * * Gate any HTTP API behind machine payments. Configure which payment methods * to accept (stripe / tempo / base) and the proxy handles everything else. * * import { createProxy } from '@rma-dev/http-proxy-util' * * const proxy = createProxy({ * stripe: { secretKey: '...', networkId: 'internal' }, * services: { * inference: { * origin: 'https://api.yourservice.com', * routes: [ * { method: 'POST', path: '/v1/inference', amount: '0.05', currency: 'usd' }, * ], * }, * }, * }) * * Bun.serve({ fetch: proxy.fetch }) */ export { createProxy, createStripeProxy } from './create-proxy.js' export type { ProxyOptions, StripeProxyOptions, StripeProxy, ServiceConfig } from './create-proxy.js' export type { RoutePriceConfig, RoutePrice, RoutePricing, StripePrice, TempoPrice, BasePrice, StripeConfig, TempoConfig, BaseConfig, RouteSchema, SchemaValidator, } from './config.js' export { matchRoute } from './config.js' export type { CryptoCustomerInput } from './stripe-customer.js'