-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroutes.ts
More file actions
23 lines (22 loc) · 825 Bytes
/
Copy pathroutes.ts
File metadata and controls
23 lines (22 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
* Single source of truth for what each priced endpoint costs. Consumed by the
* x402 payment gate AND documented in the README, so price and paywall never
* drift apart.
*
* Design note (the "protect, don't hurt" bit): search is cheap and bounded;
* full-record detail is where the value + price sits. This makes bulk
* extraction pay-per-bill instead of one-cheap-call-scrapes-everything.
*/
export const PRICED_ROUTES = {
"GET /v1/bills/search": {
price: "$0.01",
network: "base",
description: "Search Puerto Rico legislative measures. Summary rows only, max 25.",
},
"GET /v1/bills/:identifier": {
price: "$0.03",
network: "base",
description: "Full measure detail: abstract, sponsors, and action history.",
},
} as const;
export type PricedRoute = keyof typeof PRICED_ROUTES;