tapimo 0.5.3 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/dist/App.d.ts +15830 -7220
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +9 -1
  4. package/dist/App.js.map +1 -1
  5. package/dist/Scope.d.ts +4 -0
  6. package/dist/Scope.d.ts.map +1 -1
  7. package/dist/Scope.js +5 -0
  8. package/dist/Scope.js.map +1 -1
  9. package/dist/admin/App.d.ts +1011 -412
  10. package/dist/admin/App.d.ts.map +1 -1
  11. package/dist/admin/App.js +4 -0
  12. package/dist/admin/App.js.map +1 -1
  13. package/dist/admin/apps/api-keys.d.ts +2 -1
  14. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  15. package/dist/admin/apps/early-access.d.ts +148 -0
  16. package/dist/admin/apps/early-access.d.ts.map +1 -0
  17. package/dist/admin/apps/early-access.js +133 -0
  18. package/dist/admin/apps/early-access.js.map +1 -0
  19. package/dist/admin/apps/organizations.d.ts +124 -1
  20. package/dist/admin/apps/organizations.d.ts.map +1 -1
  21. package/dist/admin/apps/organizations.js +97 -6
  22. package/dist/admin/apps/organizations.js.map +1 -1
  23. package/dist/admin/apps/verified-tokens.d.ts +526 -1
  24. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  25. package/dist/admin/apps/verified-tokens.js +214 -1
  26. package/dist/admin/apps/verified-tokens.js.map +1 -1
  27. package/dist/admin/ui.generated.d.ts +1 -1
  28. package/dist/admin/ui.generated.d.ts.map +1 -1
  29. package/dist/admin/ui.generated.js +95 -75
  30. package/dist/admin/ui.generated.js.map +1 -1
  31. package/dist/analytics/Analytics.d.ts.map +1 -1
  32. package/dist/analytics/Analytics.js +20 -0
  33. package/dist/analytics/Analytics.js.map +1 -1
  34. package/dist/analytics/tables/requestEvents.d.ts +18 -0
  35. package/dist/analytics/tables/requestEvents.d.ts.map +1 -1
  36. package/dist/analytics/tables/requestEvents.js +36 -7
  37. package/dist/analytics/tables/requestEvents.js.map +1 -1
  38. package/dist/apps/data/App.d.ts +6260 -4924
  39. package/dist/apps/data/App.d.ts.map +1 -1
  40. package/dist/apps/data/App.js +11 -6
  41. package/dist/apps/data/App.js.map +1 -1
  42. package/dist/apps/data/FundingQuoteProviders.d.ts +34 -1
  43. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
  44. package/dist/apps/data/FundingQuoteProviders.js +194 -16
  45. package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
  46. package/dist/apps/data/FxOracle.d.ts +71 -0
  47. package/dist/apps/data/FxOracle.d.ts.map +1 -0
  48. package/dist/apps/data/FxOracle.js +97 -0
  49. package/dist/apps/data/FxOracle.js.map +1 -0
  50. package/dist/apps/data/index.d.ts +1 -0
  51. package/dist/apps/data/index.d.ts.map +1 -1
  52. package/dist/apps/data/index.js +1 -0
  53. package/dist/apps/data/index.js.map +1 -1
  54. package/dist/apps/data/routes/activities.d.ts +3599 -1382
  55. package/dist/apps/data/routes/activities.d.ts.map +1 -1
  56. package/dist/apps/data/routes/activities.js +250 -88
  57. package/dist/apps/data/routes/activities.js.map +1 -1
  58. package/dist/apps/data/routes/addresses.d.ts +872 -251
  59. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  60. package/dist/apps/data/routes/addresses.js +11 -9
  61. package/dist/apps/data/routes/addresses.js.map +1 -1
  62. package/dist/apps/data/routes/balances.d.ts +77 -26
  63. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  64. package/dist/apps/data/routes/balances.js +88 -45
  65. package/dist/apps/data/routes/balances.js.map +1 -1
  66. package/dist/apps/data/routes/blocks.d.ts +39 -39
  67. package/dist/apps/data/routes/coingecko.d.ts +54 -54
  68. package/dist/apps/data/routes/exchanges.d.ts +856 -105
  69. package/dist/apps/data/routes/exchanges.d.ts.map +1 -1
  70. package/dist/apps/data/routes/exchanges.js +518 -76
  71. package/dist/apps/data/routes/exchanges.js.map +1 -1
  72. package/dist/apps/data/routes/fee-amm.d.ts +81 -67
  73. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -1
  74. package/dist/apps/data/routes/fee-amm.js +76 -91
  75. package/dist/apps/data/routes/fee-amm.js.map +1 -1
  76. package/dist/apps/data/routes/funding.d.ts +80 -36
  77. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  78. package/dist/apps/data/routes/funding.js +65 -31
  79. package/dist/apps/data/routes/funding.js.map +1 -1
  80. package/dist/apps/data/routes/receipts.d.ts +392 -315
  81. package/dist/apps/data/routes/receipts.d.ts.map +1 -1
  82. package/dist/apps/data/routes/receipts.js +152 -77
  83. package/dist/apps/data/routes/receipts.js.map +1 -1
  84. package/dist/apps/data/routes/tokens.d.ts +167 -174
  85. package/dist/apps/data/routes/tokens.d.ts.map +1 -1
  86. package/dist/apps/data/routes/tokens.js +15 -13
  87. package/dist/apps/data/routes/tokens.js.map +1 -1
  88. package/dist/apps/data/routes/transactions.d.ts +277 -536
  89. package/dist/apps/data/routes/transactions.d.ts.map +1 -1
  90. package/dist/apps/data/routes/transactions.js +96 -77
  91. package/dist/apps/data/routes/transactions.js.map +1 -1
  92. package/dist/apps/data/routes/transfers.d.ts +157 -81
  93. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  94. package/dist/apps/data/routes/transfers.js +272 -130
  95. package/dist/apps/data/routes/transfers.js.map +1 -1
  96. package/dist/apps/data/routes/valuation.d.ts +307 -0
  97. package/dist/apps/data/routes/valuation.d.ts.map +1 -0
  98. package/dist/apps/data/routes/valuation.js +292 -0
  99. package/dist/apps/data/routes/valuation.js.map +1 -0
  100. package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
  101. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -1
  102. package/dist/apps/data/routes/verified-tokens.js +7 -5
  103. package/dist/apps/data/routes/verified-tokens.js.map +1 -1
  104. package/dist/apps/data/routes/webhooks.d.ts +103 -123
  105. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  106. package/dist/apps/data/routes/webhooks.js +124 -25
  107. package/dist/apps/data/routes/webhooks.js.map +1 -1
  108. package/dist/apps/index.d.ts +2 -1
  109. package/dist/apps/index.d.ts.map +1 -1
  110. package/dist/apps/index.js +2 -1
  111. package/dist/apps/index.js.map +1 -1
  112. package/dist/apps/management/App.d.ts +8554 -1692
  113. package/dist/apps/management/App.d.ts.map +1 -1
  114. package/dist/apps/management/App.js +12 -1
  115. package/dist/apps/management/App.js.map +1 -1
  116. package/dist/apps/management/routes/api-keys.d.ts +7 -0
  117. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  118. package/dist/apps/management/routes/api-keys.js +17 -3
  119. package/dist/apps/management/routes/api-keys.js.map +1 -1
  120. package/dist/apps/management/routes/billing.d.ts +157 -162
  121. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  122. package/dist/apps/management/routes/billing.js +31 -23
  123. package/dist/apps/management/routes/billing.js.map +1 -1
  124. package/dist/apps/management/routes/faucet.d.ts +232 -0
  125. package/dist/apps/management/routes/faucet.d.ts.map +1 -0
  126. package/dist/apps/management/routes/faucet.js +154 -0
  127. package/dist/apps/management/routes/faucet.js.map +1 -0
  128. package/dist/apps/management/routes/invitations.d.ts +60 -60
  129. package/dist/apps/management/routes/invite-links.d.ts +49 -20
  130. package/dist/apps/management/routes/invite-links.d.ts.map +1 -1
  131. package/dist/apps/management/routes/invite-links.js +26 -1
  132. package/dist/apps/management/routes/invite-links.js.map +1 -1
  133. package/dist/apps/management/routes/me.d.ts +6 -6
  134. package/dist/apps/management/routes/members.d.ts +6 -6
  135. package/dist/apps/management/routes/orgs.d.ts +42 -42
  136. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  137. package/dist/apps/management/routes/orgs.js +5 -0
  138. package/dist/apps/management/routes/orgs.js.map +1 -1
  139. package/dist/apps/management/routes/projects.d.ts +44 -44
  140. package/dist/apps/management/routes/usage.d.ts +3 -0
  141. package/dist/apps/management/routes/usage.d.ts.map +1 -1
  142. package/dist/apps/management/routes/usage.js +4 -0
  143. package/dist/apps/management/routes/usage.js.map +1 -1
  144. package/dist/apps/management/routes/verified-token-requests.d.ts +697 -0
  145. package/dist/apps/management/routes/verified-token-requests.d.ts.map +1 -0
  146. package/dist/apps/management/routes/verified-token-requests.js +271 -0
  147. package/dist/apps/management/routes/verified-token-requests.js.map +1 -0
  148. package/dist/apps/management/routes/webhooks.d.ts +6977 -0
  149. package/dist/apps/management/routes/webhooks.d.ts.map +1 -0
  150. package/dist/apps/management/routes/webhooks.js +573 -0
  151. package/dist/apps/management/routes/webhooks.js.map +1 -0
  152. package/dist/apps/mpp/App.d.ts +363 -0
  153. package/dist/apps/mpp/App.d.ts.map +1 -0
  154. package/dist/apps/mpp/App.js +72 -0
  155. package/dist/apps/mpp/App.js.map +1 -0
  156. package/dist/apps/mpp/Mpp.d.ts +178 -0
  157. package/dist/apps/mpp/Mpp.d.ts.map +1 -0
  158. package/dist/apps/mpp/Mpp.js +183 -0
  159. package/dist/apps/mpp/Mpp.js.map +1 -0
  160. package/dist/apps/mpp/index.d.ts +3 -0
  161. package/dist/apps/mpp/index.d.ts.map +1 -0
  162. package/dist/apps/mpp/index.js +3 -0
  163. package/dist/apps/mpp/index.js.map +1 -0
  164. package/dist/apps/relay/App.d.ts.map +1 -1
  165. package/dist/apps/relay/App.js +56 -9
  166. package/dist/apps/relay/App.js.map +1 -1
  167. package/dist/db/Db.d.ts +6 -0
  168. package/dist/db/Db.d.ts.map +1 -1
  169. package/dist/db/Db.js +110 -0
  170. package/dist/db/Db.js.map +1 -1
  171. package/dist/db/Schema.d.ts +53 -0
  172. package/dist/db/Schema.d.ts.map +1 -1
  173. package/dist/db/Schema.js +56 -0
  174. package/dist/db/Schema.js.map +1 -1
  175. package/dist/db/tables/earlyAccess.d.ts +50 -0
  176. package/dist/db/tables/earlyAccess.d.ts.map +1 -0
  177. package/dist/db/tables/earlyAccess.js +63 -0
  178. package/dist/db/tables/earlyAccess.js.map +1 -0
  179. package/dist/db/tables/enabledBillingSources.d.ts +73 -0
  180. package/dist/db/tables/enabledBillingSources.d.ts.map +1 -0
  181. package/dist/db/tables/enabledBillingSources.js +69 -0
  182. package/dist/db/tables/enabledBillingSources.js.map +1 -0
  183. package/dist/db/tables/invitations.d.ts.map +1 -1
  184. package/dist/db/tables/invitations.js +3 -0
  185. package/dist/db/tables/invitations.js.map +1 -1
  186. package/dist/db/tables/inviteLinks.d.ts +10 -2
  187. package/dist/db/tables/inviteLinks.d.ts.map +1 -1
  188. package/dist/db/tables/inviteLinks.js +10 -1
  189. package/dist/db/tables/inviteLinks.js.map +1 -1
  190. package/dist/db/tables/organizations.d.ts +5 -2
  191. package/dist/db/tables/organizations.d.ts.map +1 -1
  192. package/dist/db/tables/organizations.js +13 -2
  193. package/dist/db/tables/organizations.js.map +1 -1
  194. package/dist/db/tables/sponsoredTransactions.d.ts +2 -0
  195. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  196. package/dist/db/tables/sponsoredTransactions.js +2 -0
  197. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  198. package/dist/db/tables/verifiedTokenRequests.d.ts +94 -0
  199. package/dist/db/tables/verifiedTokenRequests.d.ts.map +1 -0
  200. package/dist/db/tables/verifiedTokenRequests.js +120 -0
  201. package/dist/db/tables/verifiedTokenRequests.js.map +1 -0
  202. package/dist/db/tables/webhookSubscriptions.d.ts +14 -0
  203. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -1
  204. package/dist/db/tables/webhookSubscriptions.js +16 -0
  205. package/dist/db/tables/webhookSubscriptions.js.map +1 -1
  206. package/dist/handlers/internal/utils.d.ts +1 -16
  207. package/dist/handlers/internal/utils.d.ts.map +1 -1
  208. package/dist/handlers/internal/utils.js +17 -6
  209. package/dist/handlers/internal/utils.js.map +1 -1
  210. package/dist/handlers/relay.d.ts.map +1 -1
  211. package/dist/handlers/relay.js +37 -5
  212. package/dist/handlers/relay.js.map +1 -1
  213. package/dist/internal/Auth.d.ts +11 -2
  214. package/dist/internal/Auth.d.ts.map +1 -1
  215. package/dist/internal/Auth.js +14 -47
  216. package/dist/internal/Auth.js.map +1 -1
  217. package/dist/internal/FundingQuotes.d.ts +147 -47
  218. package/dist/internal/FundingQuotes.d.ts.map +1 -1
  219. package/dist/internal/FundingQuotes.js +119 -33
  220. package/dist/internal/FundingQuotes.js.map +1 -1
  221. package/dist/internal/Log.d.ts +37 -5
  222. package/dist/internal/Log.d.ts.map +1 -1
  223. package/dist/internal/Log.js +52 -3
  224. package/dist/internal/Log.js.map +1 -1
  225. package/dist/internal/MetricSink.d.ts.map +1 -1
  226. package/dist/internal/MetricSink.js +24 -0
  227. package/dist/internal/MetricSink.js.map +1 -1
  228. package/dist/internal/OpenApi.d.ts +2 -2
  229. package/dist/internal/OpenApi.d.ts.map +1 -1
  230. package/dist/internal/OpenApi.js +3 -0
  231. package/dist/internal/OpenApi.js.map +1 -1
  232. package/dist/internal/Response.d.ts +2 -2
  233. package/dist/internal/Response.d.ts.map +1 -1
  234. package/dist/internal/Response.js +12 -4
  235. package/dist/internal/Response.js.map +1 -1
  236. package/dist/internal/Schema.d.ts +14 -5
  237. package/dist/internal/Schema.d.ts.map +1 -1
  238. package/dist/internal/Schema.js +23 -5
  239. package/dist/internal/Schema.js.map +1 -1
  240. package/dist/internal/Value.d.ts +18 -0
  241. package/dist/internal/Value.d.ts.map +1 -1
  242. package/dist/internal/Value.js +11 -1
  243. package/dist/internal/Value.js.map +1 -1
  244. package/dist/internal/VerifiedTokens.d.ts.map +1 -1
  245. package/dist/internal/VerifiedTokens.js +10 -1
  246. package/dist/internal/VerifiedTokens.js.map +1 -1
  247. package/dist/internal/Webhooks.d.ts +24 -3
  248. package/dist/internal/Webhooks.d.ts.map +1 -1
  249. package/dist/internal/Webhooks.js +34 -8
  250. package/dist/internal/Webhooks.js.map +1 -1
  251. package/package.json +7 -2
  252. package/src/App.test.ts +9 -4
  253. package/src/App.ts +23 -3
  254. package/src/Client.test-d.ts +733 -20
  255. package/src/Scope.ts +5 -0
  256. package/src/admin/App.test.ts +4 -0
  257. package/src/admin/App.ts +4 -0
  258. package/src/admin/apps/early-access.test.ts +125 -0
  259. package/src/admin/apps/early-access.ts +176 -0
  260. package/src/admin/apps/organizations.test.ts +86 -2
  261. package/src/admin/apps/organizations.ts +155 -31
  262. package/src/admin/apps/scopes.test.ts +5 -0
  263. package/src/admin/apps/verified-tokens.test.ts +201 -0
  264. package/src/admin/apps/verified-tokens.ts +532 -286
  265. package/src/admin/ui/plugin.ts +2 -1
  266. package/src/admin/ui/src/lib/early-access.ts +63 -0
  267. package/src/admin/ui/src/lib/organizations.test.ts +81 -1
  268. package/src/admin/ui/src/lib/organizations.ts +92 -0
  269. package/src/admin/ui/src/lib/verified-tokens.ts +79 -0
  270. package/src/admin/ui/src/routeTree.gen.ts +33 -2
  271. package/src/admin/ui/src/routes/__root.tsx +2 -1
  272. package/src/admin/ui/src/routes/api-keys.tsx +1 -1
  273. package/src/admin/ui/src/routes/early-access.tsx +162 -0
  274. package/src/admin/ui/src/routes/organizations_.$orgId.tsx +103 -0
  275. package/src/admin/ui/src/routes/verified-tokens.tsx +230 -19
  276. package/src/admin/ui.generated.ts +95 -94
  277. package/src/analytics/Analytics.test.ts +83 -0
  278. package/src/analytics/Analytics.ts +20 -0
  279. package/src/analytics/tables/requestEvents.ts +60 -7
  280. package/src/apps/composition.test.ts +11 -2
  281. package/src/apps/data/App.test.ts +1 -1
  282. package/src/apps/data/App.ts +22 -14
  283. package/src/apps/data/FundingQuoteProviders.test.ts +297 -4
  284. package/src/apps/data/FundingQuoteProviders.ts +255 -29
  285. package/src/apps/data/FxOracle.test.ts +118 -0
  286. package/src/apps/data/FxOracle.ts +153 -0
  287. package/src/apps/data/index.ts +1 -0
  288. package/src/apps/data/routes/activities.test.ts +177 -3
  289. package/src/apps/data/routes/activities.ts +441 -132
  290. package/src/apps/data/routes/addresses.ts +19 -9
  291. package/src/apps/data/routes/balances.test.ts +148 -11
  292. package/src/apps/data/routes/balances.ts +140 -51
  293. package/src/apps/data/routes/exchanges.test.ts +544 -9
  294. package/src/apps/data/routes/exchanges.ts +690 -103
  295. package/src/apps/data/routes/fee-amm.test.ts +47 -23
  296. package/src/apps/data/routes/fee-amm.ts +98 -119
  297. package/src/apps/data/routes/funding.test.ts +113 -8
  298. package/src/apps/data/routes/funding.ts +77 -51
  299. package/src/apps/data/routes/receipts.test.ts +129 -23
  300. package/src/apps/data/routes/receipts.ts +205 -100
  301. package/src/apps/data/routes/tokens.test.ts +43 -0
  302. package/src/apps/data/routes/tokens.ts +28 -13
  303. package/src/apps/data/routes/transactions.test.ts +72 -19
  304. package/src/apps/data/routes/transactions.ts +162 -92
  305. package/src/apps/data/routes/transfers.test.ts +341 -31
  306. package/src/apps/data/routes/transfers.ts +358 -158
  307. package/src/apps/data/routes/valuation.test.ts +437 -0
  308. package/src/apps/data/routes/valuation.ts +423 -0
  309. package/src/apps/data/routes/verified-tokens.ts +14 -2
  310. package/src/apps/data/routes/webhooks.test.ts +56 -8
  311. package/src/apps/data/routes/webhooks.ts +144 -27
  312. package/src/apps/index.ts +2 -1
  313. package/src/apps/management/App.ts +13 -0
  314. package/src/apps/management/routes/api-keys.test.ts +14 -0
  315. package/src/apps/management/routes/api-keys.ts +27 -3
  316. package/src/apps/management/routes/billing.test.ts +152 -20
  317. package/src/apps/management/routes/billing.ts +34 -18
  318. package/src/apps/management/routes/faucet.test.ts +87 -0
  319. package/src/apps/management/routes/faucet.ts +201 -0
  320. package/src/apps/management/routes/invite-links.test.ts +117 -0
  321. package/src/apps/management/routes/invite-links.ts +43 -1
  322. package/src/apps/management/routes/me.test.ts +9 -99
  323. package/src/apps/management/routes/orgs.test.ts +45 -2
  324. package/src/apps/management/routes/orgs.ts +6 -0
  325. package/src/apps/management/routes/scopes.test.ts +1 -0
  326. package/src/apps/management/routes/usage.test.ts +6 -0
  327. package/src/apps/management/routes/usage.ts +7 -0
  328. package/src/apps/management/routes/verified-token-requests.test.ts +377 -0
  329. package/src/apps/management/routes/verified-token-requests.ts +397 -0
  330. package/src/apps/management/routes/webhooks.test.ts +426 -0
  331. package/src/apps/management/routes/webhooks.ts +672 -0
  332. package/src/apps/mpp/App.ts +86 -0
  333. package/src/apps/mpp/Mpp.test.ts +193 -0
  334. package/src/apps/mpp/Mpp.ts +353 -0
  335. package/src/apps/mpp/index.ts +2 -0
  336. package/src/apps/mpp/internal/Adapter.ts +11 -0
  337. package/src/apps/mpp/internal/Error.ts +9 -0
  338. package/src/apps/mpp/internal/Idempotency.ts +7 -0
  339. package/src/apps/mpp/internal/Screening.ts +10 -0
  340. package/src/apps/relay/App.test.ts +88 -6
  341. package/src/apps/relay/App.ts +61 -9
  342. package/src/db/Db.test.ts +19 -0
  343. package/src/db/Db.ts +125 -0
  344. package/src/db/Schema.ts +68 -0
  345. package/src/db/tables/earlyAccess.ts +86 -0
  346. package/src/db/tables/enabledBillingSources.test.ts +303 -0
  347. package/src/db/tables/enabledBillingSources.ts +118 -0
  348. package/src/db/tables/invitations.ts +3 -0
  349. package/src/db/tables/inviteLinks.ts +22 -3
  350. package/src/db/tables/organizations.test.ts +103 -0
  351. package/src/db/tables/organizations.ts +18 -2
  352. package/src/db/tables/sponsoredTransactions.ts +4 -0
  353. package/src/db/tables/verifiedTokenRequests.test.ts +200 -0
  354. package/src/db/tables/verifiedTokenRequests.ts +182 -0
  355. package/src/db/tables/webhookSubscriptions.ts +31 -0
  356. package/src/handlers/internal/utils.ts +22 -6
  357. package/src/handlers/relay.errors.test.ts +153 -0
  358. package/src/handlers/relay.ts +42 -7
  359. package/src/internal/Auth.test.ts +3 -3
  360. package/src/internal/Auth.ts +15 -47
  361. package/src/internal/FundingQuotes.test.ts +161 -6
  362. package/src/internal/FundingQuotes.ts +141 -39
  363. package/src/internal/Log.test-d.ts +21 -0
  364. package/src/internal/Log.test.ts +141 -0
  365. package/src/internal/Log.ts +93 -6
  366. package/src/internal/MetricSink.test.ts +215 -0
  367. package/src/internal/MetricSink.ts +24 -0
  368. package/src/internal/OpenApi.ts +3 -0
  369. package/src/internal/Response.test.ts +28 -0
  370. package/src/internal/Response.ts +12 -4
  371. package/src/internal/Schema.ts +50 -5
  372. package/src/internal/Value.test.ts +20 -0
  373. package/src/internal/Value.ts +24 -1
  374. package/src/internal/VerifiedTokens.ts +9 -1
  375. package/src/internal/Webhooks.test.ts +140 -0
  376. package/src/internal/Webhooks.ts +53 -9
@@ -56,6 +56,10 @@ export declare namespace schema {
56
56
  }, z.core.$strip>;
57
57
  /** An organization's billing state. */
58
58
  const Billing: z.ZodMiniObject<{
59
+ enabledSources: z.ZodMiniArray<z.ZodMiniEnum<{
60
+ stripe: "stripe";
61
+ tempo: "tempo";
62
+ }>>;
59
63
  spend: z.ZodMiniOptional<z.ZodMiniObject<{
60
64
  amount: z.ZodMiniString<string>;
61
65
  currency: z.ZodMiniEnum<{
@@ -124,41 +128,21 @@ export declare namespace schema {
124
128
  }, z.core.$strip>;
125
129
  }
126
130
  /**
127
- * Mounts billing routes. Reads require membership or scoped API key access; organizations without Stripe state return `none`.
131
+ * Mounts billing routes. Reads require membership or scoped API key access; organizations without provider state return `none`.
128
132
  */
129
133
  export declare function billing(): import("hono/hono-base").HonoBase<Environment, {
130
134
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
131
135
  $get: {
132
136
  output: {
133
137
  error: {
134
- code: "api_key_malformed";
135
- details?: readonly Response.error.Detail[] | undefined;
136
- message: string;
137
- };
138
- requestId: string;
139
- };
140
- outputFormat: "json";
141
- status: 400;
142
- input: {
143
- param: {
144
- orgId: string;
145
- };
146
- } & {
147
- query?: {
148
- environment?: string | string[];
149
- } | undefined;
150
- };
151
- } | {
152
- output: {
153
- error: {
154
- code: "api_key_invalid" | "api_key_missing";
138
+ code: "upstream_error";
155
139
  details?: readonly Response.error.Detail[] | undefined;
156
140
  message: string;
157
141
  };
158
142
  requestId: string;
159
143
  };
160
144
  outputFormat: "json";
161
- status: 401;
145
+ status: 502;
162
146
  input: {
163
147
  param: {
164
148
  orgId: string;
@@ -171,14 +155,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
171
155
  } | {
172
156
  output: {
173
157
  error: {
174
- code: "api_key_forbidden";
158
+ code: "api_key_malformed";
175
159
  details?: readonly Response.error.Detail[] | undefined;
176
160
  message: string;
177
161
  };
178
162
  requestId: string;
179
163
  };
180
164
  outputFormat: "json";
181
- status: 403;
165
+ status: 400;
182
166
  input: {
183
167
  param: {
184
168
  orgId: string;
@@ -191,14 +175,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
191
175
  } | {
192
176
  output: {
193
177
  error: {
194
- code: "payment_required" | "rate_limit_exceeded";
178
+ code: "api_key_invalid" | "api_key_missing";
195
179
  details?: readonly Response.error.Detail[] | undefined;
196
180
  message: string;
197
181
  };
198
182
  requestId: string;
199
183
  };
200
184
  outputFormat: "json";
201
- status: 429;
185
+ status: 401;
202
186
  input: {
203
187
  param: {
204
188
  orgId: string;
@@ -211,14 +195,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
211
195
  } | {
212
196
  output: {
213
197
  error: {
214
- code: "query_invalid";
198
+ code: "api_key_forbidden";
215
199
  details?: readonly Response.error.Detail[] | undefined;
216
200
  message: string;
217
201
  };
218
202
  requestId: string;
219
203
  };
220
204
  outputFormat: "json";
221
- status: 400;
205
+ status: 403;
222
206
  input: {
223
207
  param: {
224
208
  orgId: string;
@@ -231,14 +215,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
231
215
  } | {
232
216
  output: {
233
217
  error: {
234
- code: "upstream_error";
218
+ code: "payment_required" | "rate_limit_exceeded";
235
219
  details?: readonly Response.error.Detail[] | undefined;
236
220
  message: string;
237
221
  };
238
222
  requestId: string;
239
223
  };
240
224
  outputFormat: "json";
241
- status: 502;
225
+ status: 429;
242
226
  input: {
243
227
  param: {
244
228
  orgId: string;
@@ -251,7 +235,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
251
235
  } | {
252
236
  output: {
253
237
  error: {
254
- code: "param_invalid";
238
+ code: "query_invalid";
255
239
  details?: readonly Response.error.Detail[] | undefined;
256
240
  message: string;
257
241
  };
@@ -291,14 +275,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
291
275
  } | {
292
276
  output: {
293
277
  error: {
294
- code: "billing_unconfigured";
278
+ code: "param_invalid";
295
279
  details?: readonly Response.error.Detail[] | undefined;
296
280
  message: string;
297
281
  };
298
282
  requestId: string;
299
283
  };
300
284
  outputFormat: "json";
301
- status: 501;
285
+ status: 400;
302
286
  input: {
303
287
  param: {
304
288
  orgId: string;
@@ -310,6 +294,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
310
294
  };
311
295
  } | {
312
296
  output: {
297
+ enabledSources: ("stripe" | "tempo")[];
313
298
  spend?: {
314
299
  amount: string;
315
300
  currency: "usd";
@@ -345,14 +330,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
345
330
  $patch: {
346
331
  output: {
347
332
  error: {
348
- code: "api_key_malformed";
333
+ code: "upstream_error";
349
334
  details?: readonly Response.error.Detail[] | undefined;
350
335
  message: string;
351
336
  };
352
337
  requestId: string;
353
338
  };
354
339
  outputFormat: "json";
355
- status: 400;
340
+ status: 502;
356
341
  input: {
357
342
  param: {
358
343
  orgId: string;
@@ -377,14 +362,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
377
362
  } | {
378
363
  output: {
379
364
  error: {
380
- code: "api_key_invalid" | "api_key_missing";
365
+ code: "api_key_malformed";
381
366
  details?: readonly Response.error.Detail[] | undefined;
382
367
  message: string;
383
368
  };
384
369
  requestId: string;
385
370
  };
386
371
  outputFormat: "json";
387
- status: 401;
372
+ status: 400;
388
373
  input: {
389
374
  param: {
390
375
  orgId: string;
@@ -409,14 +394,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
409
394
  } | {
410
395
  output: {
411
396
  error: {
412
- code: "api_key_forbidden";
397
+ code: "api_key_invalid" | "api_key_missing";
413
398
  details?: readonly Response.error.Detail[] | undefined;
414
399
  message: string;
415
400
  };
416
401
  requestId: string;
417
402
  };
418
403
  outputFormat: "json";
419
- status: 403;
404
+ status: 401;
420
405
  input: {
421
406
  param: {
422
407
  orgId: string;
@@ -441,14 +426,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
441
426
  } | {
442
427
  output: {
443
428
  error: {
444
- code: "payment_required" | "rate_limit_exceeded";
429
+ code: "api_key_forbidden";
445
430
  details?: readonly Response.error.Detail[] | undefined;
446
431
  message: string;
447
432
  };
448
433
  requestId: string;
449
434
  };
450
435
  outputFormat: "json";
451
- status: 429;
436
+ status: 403;
452
437
  input: {
453
438
  param: {
454
439
  orgId: string;
@@ -473,14 +458,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
473
458
  } | {
474
459
  output: {
475
460
  error: {
476
- code: "query_invalid";
461
+ code: "payment_required" | "rate_limit_exceeded";
477
462
  details?: readonly Response.error.Detail[] | undefined;
478
463
  message: string;
479
464
  };
480
465
  requestId: string;
481
466
  };
482
467
  outputFormat: "json";
483
- status: 400;
468
+ status: 429;
484
469
  input: {
485
470
  param: {
486
471
  orgId: string;
@@ -505,14 +490,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
505
490
  } | {
506
491
  output: {
507
492
  error: {
508
- code: "upstream_error";
493
+ code: "query_invalid";
509
494
  details?: readonly Response.error.Detail[] | undefined;
510
495
  message: string;
511
496
  };
512
497
  requestId: string;
513
498
  };
514
499
  outputFormat: "json";
515
- status: 502;
500
+ status: 400;
516
501
  input: {
517
502
  param: {
518
503
  orgId: string;
@@ -537,14 +522,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
537
522
  } | {
538
523
  output: {
539
524
  error: {
540
- code: "body_invalid";
525
+ code: "organization_not_found";
541
526
  details?: readonly Response.error.Detail[] | undefined;
542
527
  message: string;
543
528
  };
544
529
  requestId: string;
545
530
  };
546
531
  outputFormat: "json";
547
- status: 400;
532
+ status: 404;
548
533
  input: {
549
534
  param: {
550
535
  orgId: string;
@@ -600,15 +585,26 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
600
585
  };
601
586
  } | {
602
587
  output: {
603
- error: {
604
- code: "organization_not_found";
605
- details?: readonly Response.error.Detail[] | undefined;
606
- message: string;
607
- };
608
- requestId: string;
588
+ enabledSources: ("stripe" | "tempo")[];
589
+ spend?: {
590
+ amount: string;
591
+ currency: "usd";
592
+ period: "month";
593
+ } | undefined;
594
+ spendLimit?: {
595
+ amount: string;
596
+ currency: "usd";
597
+ period: "month";
598
+ } | undefined;
599
+ status: "active" | "canceled" | "none" | "past_due";
600
+ txFeeLimit?: {
601
+ amount: string;
602
+ currency: "usd";
603
+ } | undefined;
604
+ updatedAt?: string | undefined;
609
605
  };
610
606
  outputFormat: "json";
611
- status: 404;
607
+ status: 200;
612
608
  input: {
613
609
  param: {
614
610
  orgId: string;
@@ -633,14 +629,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
633
629
  } | {
634
630
  output: {
635
631
  error: {
636
- code: "billing_unconfigured";
632
+ code: "body_invalid";
637
633
  details?: readonly Response.error.Detail[] | undefined;
638
634
  message: string;
639
635
  };
640
636
  requestId: string;
641
637
  };
642
638
  outputFormat: "json";
643
- status: 501;
639
+ status: 400;
644
640
  input: {
645
641
  param: {
646
642
  orgId: string;
@@ -662,27 +658,21 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
662
658
  } | null | undefined;
663
659
  };
664
660
  };
665
- } | {
661
+ };
662
+ };
663
+ } & {
664
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/checkout": {
665
+ $post: {
666
666
  output: {
667
- spend?: {
668
- amount: string;
669
- currency: "usd";
670
- period: "month";
671
- } | undefined;
672
- spendLimit?: {
673
- amount: string;
674
- currency: "usd";
675
- period: "month";
676
- } | undefined;
677
- status: "active" | "canceled" | "none" | "past_due";
678
- txFeeLimit?: {
679
- amount: string;
680
- currency: "usd";
681
- } | undefined;
682
- updatedAt?: string | undefined;
667
+ error: {
668
+ code: "upstream_error";
669
+ details?: readonly Response.error.Detail[] | undefined;
670
+ message: string;
671
+ };
672
+ requestId: string;
683
673
  };
684
674
  outputFormat: "json";
685
- status: 200;
675
+ status: 502;
686
676
  input: {
687
677
  param: {
688
678
  orgId: string;
@@ -691,24 +681,8 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
691
681
  query?: {
692
682
  environment?: string | string[];
693
683
  } | undefined;
694
- } & {
695
- json: {
696
- spendLimit?: {
697
- amount: string;
698
- currency?: "usd" | undefined;
699
- period?: "month" | undefined;
700
- } | null | undefined;
701
- txFeeLimit?: {
702
- amount: string;
703
- currency?: "usd" | undefined;
704
- } | null | undefined;
705
- };
706
684
  };
707
- };
708
- };
709
- } & {
710
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/checkout": {
711
- $post: {
685
+ } | {
712
686
  output: {
713
687
  error: {
714
688
  code: "api_key_malformed";
@@ -811,14 +785,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
811
785
  } | {
812
786
  output: {
813
787
  error: {
814
- code: "upstream_error";
788
+ code: "organization_not_found";
815
789
  details?: readonly Response.error.Detail[] | undefined;
816
790
  message: string;
817
791
  };
818
792
  requestId: string;
819
793
  };
820
794
  outputFormat: "json";
821
- status: 502;
795
+ status: 404;
822
796
  input: {
823
797
  param: {
824
798
  orgId: string;
@@ -851,14 +825,34 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
851
825
  } | {
852
826
  output: {
853
827
  error: {
854
- code: "organization_not_found";
828
+ code: "forbidden";
855
829
  details?: readonly Response.error.Detail[] | undefined;
856
830
  message: string;
857
831
  };
858
832
  requestId: string;
859
833
  };
860
834
  outputFormat: "json";
861
- status: 404;
835
+ status: 403;
836
+ input: {
837
+ param: {
838
+ orgId: string;
839
+ };
840
+ } & {
841
+ query?: {
842
+ environment?: string | string[];
843
+ } | undefined;
844
+ };
845
+ } | {
846
+ output: {
847
+ error: {
848
+ code: "billing_source_disabled";
849
+ details?: readonly Response.error.Detail[] | undefined;
850
+ message: string;
851
+ };
852
+ requestId: string;
853
+ };
854
+ outputFormat: "json";
855
+ status: 403;
862
856
  input: {
863
857
  param: {
864
858
  orgId: string;
@@ -910,14 +904,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
910
904
  $post: {
911
905
  output: {
912
906
  error: {
913
- code: "api_key_malformed";
907
+ code: "upstream_error";
914
908
  details?: readonly Response.error.Detail[] | undefined;
915
909
  message: string;
916
910
  };
917
911
  requestId: string;
918
912
  };
919
913
  outputFormat: "json";
920
- status: 400;
914
+ status: 502;
921
915
  input: {
922
916
  param: {
923
917
  orgId: string;
@@ -930,14 +924,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
930
924
  } | {
931
925
  output: {
932
926
  error: {
933
- code: "api_key_invalid" | "api_key_missing";
927
+ code: "api_key_malformed";
934
928
  details?: readonly Response.error.Detail[] | undefined;
935
929
  message: string;
936
930
  };
937
931
  requestId: string;
938
932
  };
939
933
  outputFormat: "json";
940
- status: 401;
934
+ status: 400;
941
935
  input: {
942
936
  param: {
943
937
  orgId: string;
@@ -950,14 +944,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
950
944
  } | {
951
945
  output: {
952
946
  error: {
953
- code: "api_key_forbidden";
947
+ code: "api_key_invalid" | "api_key_missing";
954
948
  details?: readonly Response.error.Detail[] | undefined;
955
949
  message: string;
956
950
  };
957
951
  requestId: string;
958
952
  };
959
953
  outputFormat: "json";
960
- status: 403;
954
+ status: 401;
961
955
  input: {
962
956
  param: {
963
957
  orgId: string;
@@ -970,14 +964,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
970
964
  } | {
971
965
  output: {
972
966
  error: {
973
- code: "payment_required" | "rate_limit_exceeded";
967
+ code: "api_key_forbidden";
974
968
  details?: readonly Response.error.Detail[] | undefined;
975
969
  message: string;
976
970
  };
977
971
  requestId: string;
978
972
  };
979
973
  outputFormat: "json";
980
- status: 429;
974
+ status: 403;
981
975
  input: {
982
976
  param: {
983
977
  orgId: string;
@@ -990,14 +984,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
990
984
  } | {
991
985
  output: {
992
986
  error: {
993
- code: "query_invalid";
987
+ code: "payment_required" | "rate_limit_exceeded";
994
988
  details?: readonly Response.error.Detail[] | undefined;
995
989
  message: string;
996
990
  };
997
991
  requestId: string;
998
992
  };
999
993
  outputFormat: "json";
1000
- status: 400;
994
+ status: 429;
1001
995
  input: {
1002
996
  param: {
1003
997
  orgId: string;
@@ -1010,14 +1004,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1010
1004
  } | {
1011
1005
  output: {
1012
1006
  error: {
1013
- code: "upstream_error";
1007
+ code: "query_invalid";
1014
1008
  details?: readonly Response.error.Detail[] | undefined;
1015
1009
  message: string;
1016
1010
  };
1017
1011
  requestId: string;
1018
1012
  };
1019
1013
  outputFormat: "json";
1020
- status: 502;
1014
+ status: 400;
1021
1015
  input: {
1022
1016
  param: {
1023
1017
  orgId: string;
@@ -1030,14 +1024,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1030
1024
  } | {
1031
1025
  output: {
1032
1026
  error: {
1033
- code: "param_invalid";
1027
+ code: "organization_not_found";
1034
1028
  details?: readonly Response.error.Detail[] | undefined;
1035
1029
  message: string;
1036
1030
  };
1037
1031
  requestId: string;
1038
1032
  };
1039
1033
  outputFormat: "json";
1040
- status: 400;
1034
+ status: 404;
1041
1035
  input: {
1042
1036
  param: {
1043
1037
  orgId: string;
@@ -1050,14 +1044,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1050
1044
  } | {
1051
1045
  output: {
1052
1046
  error: {
1053
- code: "organization_not_found";
1047
+ code: "param_invalid";
1054
1048
  details?: readonly Response.error.Detail[] | undefined;
1055
1049
  message: string;
1056
1050
  };
1057
1051
  requestId: string;
1058
1052
  };
1059
1053
  outputFormat: "json";
1060
- status: 404;
1054
+ status: 400;
1061
1055
  input: {
1062
1056
  param: {
1063
1057
  orgId: string;
@@ -1129,14 +1123,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1129
1123
  $get: {
1130
1124
  output: {
1131
1125
  error: {
1132
- code: "api_key_malformed";
1126
+ code: "upstream_error";
1133
1127
  details?: readonly Response.error.Detail[] | undefined;
1134
1128
  message: string;
1135
1129
  };
1136
1130
  requestId: string;
1137
1131
  };
1138
1132
  outputFormat: "json";
1139
- status: 400;
1133
+ status: 502;
1140
1134
  input: {
1141
1135
  param: {
1142
1136
  orgId: string;
@@ -1149,14 +1143,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1149
1143
  } | {
1150
1144
  output: {
1151
1145
  error: {
1152
- code: "api_key_invalid" | "api_key_missing";
1146
+ code: "api_key_malformed";
1153
1147
  details?: readonly Response.error.Detail[] | undefined;
1154
1148
  message: string;
1155
1149
  };
1156
1150
  requestId: string;
1157
1151
  };
1158
1152
  outputFormat: "json";
1159
- status: 401;
1153
+ status: 400;
1160
1154
  input: {
1161
1155
  param: {
1162
1156
  orgId: string;
@@ -1169,14 +1163,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1169
1163
  } | {
1170
1164
  output: {
1171
1165
  error: {
1172
- code: "api_key_forbidden";
1166
+ code: "api_key_invalid" | "api_key_missing";
1173
1167
  details?: readonly Response.error.Detail[] | undefined;
1174
1168
  message: string;
1175
1169
  };
1176
1170
  requestId: string;
1177
1171
  };
1178
1172
  outputFormat: "json";
1179
- status: 403;
1173
+ status: 401;
1180
1174
  input: {
1181
1175
  param: {
1182
1176
  orgId: string;
@@ -1189,14 +1183,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1189
1183
  } | {
1190
1184
  output: {
1191
1185
  error: {
1192
- code: "payment_required" | "rate_limit_exceeded";
1186
+ code: "api_key_forbidden";
1193
1187
  details?: readonly Response.error.Detail[] | undefined;
1194
1188
  message: string;
1195
1189
  };
1196
1190
  requestId: string;
1197
1191
  };
1198
1192
  outputFormat: "json";
1199
- status: 429;
1193
+ status: 403;
1200
1194
  input: {
1201
1195
  param: {
1202
1196
  orgId: string;
@@ -1209,14 +1203,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1209
1203
  } | {
1210
1204
  output: {
1211
1205
  error: {
1212
- code: "query_invalid";
1206
+ code: "payment_required" | "rate_limit_exceeded";
1213
1207
  details?: readonly Response.error.Detail[] | undefined;
1214
1208
  message: string;
1215
1209
  };
1216
1210
  requestId: string;
1217
1211
  };
1218
1212
  outputFormat: "json";
1219
- status: 400;
1213
+ status: 429;
1220
1214
  input: {
1221
1215
  param: {
1222
1216
  orgId: string;
@@ -1229,14 +1223,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1229
1223
  } | {
1230
1224
  output: {
1231
1225
  error: {
1232
- code: "upstream_error";
1226
+ code: "query_invalid";
1233
1227
  details?: readonly Response.error.Detail[] | undefined;
1234
1228
  message: string;
1235
1229
  };
1236
1230
  requestId: string;
1237
1231
  };
1238
1232
  outputFormat: "json";
1239
- status: 502;
1233
+ status: 400;
1240
1234
  input: {
1241
1235
  param: {
1242
1236
  orgId: string;
@@ -1249,14 +1243,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1249
1243
  } | {
1250
1244
  output: {
1251
1245
  error: {
1252
- code: "param_invalid";
1246
+ code: "organization_not_found";
1253
1247
  details?: readonly Response.error.Detail[] | undefined;
1254
1248
  message: string;
1255
1249
  };
1256
1250
  requestId: string;
1257
1251
  };
1258
1252
  outputFormat: "json";
1259
- status: 400;
1253
+ status: 404;
1260
1254
  input: {
1261
1255
  param: {
1262
1256
  orgId: string;
@@ -1269,14 +1263,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1269
1263
  } | {
1270
1264
  output: {
1271
1265
  error: {
1272
- code: "organization_not_found";
1266
+ code: "param_invalid";
1273
1267
  details?: readonly Response.error.Detail[] | undefined;
1274
1268
  message: string;
1275
1269
  };
1276
1270
  requestId: string;
1277
1271
  };
1278
1272
  outputFormat: "json";
1279
- status: 404;
1273
+ status: 400;
1280
1274
  input: {
1281
1275
  param: {
1282
1276
  orgId: string;
@@ -1340,35 +1334,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1340
1334
  $delete: {
1341
1335
  output: {
1342
1336
  error: {
1343
- code: "api_key_malformed";
1344
- details?: readonly Response.error.Detail[] | undefined;
1345
- message: string;
1346
- };
1347
- requestId: string;
1348
- };
1349
- outputFormat: "json";
1350
- status: 400;
1351
- input: {
1352
- param: {
1353
- methodId: string;
1354
- orgId: string;
1355
- };
1356
- } & {
1357
- query?: {
1358
- environment?: string | string[];
1359
- } | undefined;
1360
- };
1361
- } | {
1362
- output: {
1363
- error: {
1364
- code: "api_key_invalid" | "api_key_missing";
1337
+ code: "upstream_error";
1365
1338
  details?: readonly Response.error.Detail[] | undefined;
1366
1339
  message: string;
1367
1340
  };
1368
1341
  requestId: string;
1369
1342
  };
1370
1343
  outputFormat: "json";
1371
- status: 401;
1344
+ status: 502;
1372
1345
  input: {
1373
1346
  param: {
1374
1347
  methodId: string;
@@ -1382,14 +1355,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1382
1355
  } | {
1383
1356
  output: {
1384
1357
  error: {
1385
- code: "api_key_forbidden";
1358
+ code: "api_key_malformed";
1386
1359
  details?: readonly Response.error.Detail[] | undefined;
1387
1360
  message: string;
1388
1361
  };
1389
1362
  requestId: string;
1390
1363
  };
1391
1364
  outputFormat: "json";
1392
- status: 403;
1365
+ status: 400;
1393
1366
  input: {
1394
1367
  param: {
1395
1368
  methodId: string;
@@ -1403,14 +1376,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1403
1376
  } | {
1404
1377
  output: {
1405
1378
  error: {
1406
- code: "payment_required" | "rate_limit_exceeded";
1379
+ code: "api_key_invalid" | "api_key_missing";
1407
1380
  details?: readonly Response.error.Detail[] | undefined;
1408
1381
  message: string;
1409
1382
  };
1410
1383
  requestId: string;
1411
1384
  };
1412
1385
  outputFormat: "json";
1413
- status: 429;
1386
+ status: 401;
1414
1387
  input: {
1415
1388
  param: {
1416
1389
  methodId: string;
@@ -1424,14 +1397,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1424
1397
  } | {
1425
1398
  output: {
1426
1399
  error: {
1427
- code: "query_invalid";
1400
+ code: "api_key_forbidden";
1428
1401
  details?: readonly Response.error.Detail[] | undefined;
1429
1402
  message: string;
1430
1403
  };
1431
1404
  requestId: string;
1432
1405
  };
1433
1406
  outputFormat: "json";
1434
- status: 400;
1407
+ status: 403;
1435
1408
  input: {
1436
1409
  param: {
1437
1410
  methodId: string;
@@ -1445,14 +1418,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1445
1418
  } | {
1446
1419
  output: {
1447
1420
  error: {
1448
- code: "upstream_error";
1421
+ code: "payment_required" | "rate_limit_exceeded";
1449
1422
  details?: readonly Response.error.Detail[] | undefined;
1450
1423
  message: string;
1451
1424
  };
1452
1425
  requestId: string;
1453
1426
  };
1454
1427
  outputFormat: "json";
1455
- status: 502;
1428
+ status: 429;
1456
1429
  input: {
1457
1430
  param: {
1458
1431
  methodId: string;
@@ -1466,7 +1439,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1466
1439
  } | {
1467
1440
  output: {
1468
1441
  error: {
1469
- code: "param_invalid";
1442
+ code: "query_invalid";
1470
1443
  details?: readonly Response.error.Detail[] | undefined;
1471
1444
  message: string;
1472
1445
  };
@@ -1508,14 +1481,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1508
1481
  } | {
1509
1482
  output: {
1510
1483
  error: {
1511
- code: "billing_unconfigured";
1484
+ code: "param_invalid";
1512
1485
  details?: readonly Response.error.Detail[] | undefined;
1513
1486
  message: string;
1514
1487
  };
1515
1488
  requestId: string;
1516
1489
  };
1517
1490
  outputFormat: "json";
1518
- status: 501;
1491
+ status: 400;
1519
1492
  input: {
1520
1493
  param: {
1521
1494
  methodId: string;
@@ -1528,6 +1501,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1528
1501
  };
1529
1502
  } | {
1530
1503
  output: {
1504
+ enabledSources: ("stripe" | "tempo")[];
1531
1505
  spend?: {
1532
1506
  amount: string;
1533
1507
  currency: "usd";
@@ -1557,6 +1531,27 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1557
1531
  environment?: string | string[];
1558
1532
  } | undefined;
1559
1533
  };
1534
+ } | {
1535
+ output: {
1536
+ error: {
1537
+ code: "billing_unconfigured";
1538
+ details?: readonly Response.error.Detail[] | undefined;
1539
+ message: string;
1540
+ };
1541
+ requestId: string;
1542
+ };
1543
+ outputFormat: "json";
1544
+ status: 501;
1545
+ input: {
1546
+ param: {
1547
+ methodId: string;
1548
+ orgId: string;
1549
+ };
1550
+ } & {
1551
+ query?: {
1552
+ environment?: string | string[];
1553
+ } | undefined;
1554
+ };
1560
1555
  } | {
1561
1556
  output: {
1562
1557
  error: {