tapimo 0.1.0 → 0.3.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 (520) hide show
  1. package/README.md +57 -16
  2. package/dist/ApiKey.d.ts +4 -1
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +6 -2
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +98 -3
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +150 -1
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +7917 -2315
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +141 -329
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +20 -4
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +23 -4
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/Webhooks.d.ts +2 -2
  19. package/dist/Webhooks.d.ts.map +1 -1
  20. package/dist/Webhooks.js +2 -2
  21. package/dist/Webhooks.js.map +1 -1
  22. package/dist/admin/App.d.ts +203 -120
  23. package/dist/admin/App.d.ts.map +1 -1
  24. package/dist/admin/apps/api-keys.d.ts +111 -6
  25. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  26. package/dist/admin/apps/api-keys.js +67 -0
  27. package/dist/admin/apps/api-keys.js.map +1 -1
  28. package/dist/admin/apps/scopes.d.ts +12 -1
  29. package/dist/admin/apps/scopes.d.ts.map +1 -1
  30. package/dist/admin/apps/scopes.js +3 -0
  31. package/dist/admin/apps/scopes.js.map +1 -1
  32. package/dist/admin/apps/verified-tokens.d.ts +116 -116
  33. package/dist/admin/apps/verified-tokens.js +1 -1
  34. package/dist/admin/apps/verified-tokens.js.map +1 -1
  35. package/dist/admin/ui.generated.d.ts +1 -1
  36. package/dist/admin/ui.generated.js +13 -13
  37. package/dist/admin/ui.generated.js.map +1 -1
  38. package/dist/analytics/Analytics.d.ts +151 -0
  39. package/dist/analytics/Analytics.d.ts.map +1 -0
  40. package/dist/analytics/Analytics.js +212 -0
  41. package/dist/analytics/Analytics.js.map +1 -0
  42. package/dist/analytics/tables/requestEvents.d.ts +215 -0
  43. package/dist/analytics/tables/requestEvents.d.ts.map +1 -0
  44. package/dist/analytics/tables/requestEvents.js +264 -0
  45. package/dist/analytics/tables/requestEvents.js.map +1 -0
  46. package/dist/apps/data/App.d.ts +19576 -0
  47. package/dist/apps/data/App.d.ts.map +1 -0
  48. package/dist/apps/data/App.js +272 -0
  49. package/dist/apps/data/App.js.map +1 -0
  50. package/dist/apps/data/index.d.ts +3 -0
  51. package/dist/apps/data/index.d.ts.map +1 -0
  52. package/dist/apps/data/index.js +3 -0
  53. package/dist/apps/data/index.js.map +1 -0
  54. package/dist/apps/{activities.d.ts → data/routes/activities.d.ts} +32 -32
  55. package/dist/apps/{activities.d.ts.map → data/routes/activities.d.ts.map} +1 -1
  56. package/dist/apps/{activities.js → data/routes/activities.js} +13 -13
  57. package/dist/apps/data/routes/activities.js.map +1 -0
  58. package/dist/apps/{addresses.d.ts → data/routes/addresses.d.ts} +22 -22
  59. package/dist/apps/{addresses.d.ts.map → data/routes/addresses.d.ts.map} +1 -1
  60. package/dist/apps/{addresses.js → data/routes/addresses.js} +5 -5
  61. package/dist/apps/data/routes/addresses.js.map +1 -0
  62. package/dist/apps/{balances.d.ts → data/routes/balances.d.ts} +4 -4
  63. package/dist/apps/data/routes/balances.d.ts.map +1 -0
  64. package/dist/apps/{balances.js → data/routes/balances.js} +42 -11
  65. package/dist/apps/data/routes/balances.js.map +1 -0
  66. package/dist/apps/{blocks.d.ts → data/routes/blocks.d.ts} +47 -47
  67. package/dist/apps/data/routes/blocks.d.ts.map +1 -0
  68. package/dist/apps/{blocks.js → data/routes/blocks.js} +13 -13
  69. package/dist/apps/data/routes/blocks.js.map +1 -0
  70. package/dist/apps/{coingecko.d.ts → data/routes/coingecko.d.ts} +8 -8
  71. package/dist/apps/data/routes/coingecko.d.ts.map +1 -0
  72. package/dist/apps/{coingecko.js → data/routes/coingecko.js} +13 -13
  73. package/dist/apps/data/routes/coingecko.js.map +1 -0
  74. package/dist/apps/{exchanges.d.ts → data/routes/exchanges.d.ts} +108 -108
  75. package/dist/apps/data/routes/exchanges.d.ts.map +1 -0
  76. package/dist/apps/{exchanges.js → data/routes/exchanges.js} +19 -19
  77. package/dist/apps/data/routes/exchanges.js.map +1 -0
  78. package/dist/apps/{fee-amm.d.ts → data/routes/fee-amm.d.ts} +39 -39
  79. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -0
  80. package/dist/apps/{fee-amm.js → data/routes/fee-amm.js} +17 -17
  81. package/dist/apps/data/routes/fee-amm.js.map +1 -0
  82. package/dist/apps/data/routes/funding.d.ts +765 -0
  83. package/dist/apps/data/routes/funding.d.ts.map +1 -0
  84. package/dist/apps/data/routes/funding.js +383 -0
  85. package/dist/apps/data/routes/funding.js.map +1 -0
  86. package/dist/apps/{indexer.d.ts → data/routes/indexer.d.ts} +4 -4
  87. package/dist/apps/data/routes/indexer.d.ts.map +1 -0
  88. package/dist/apps/{indexer.js → data/routes/indexer.js} +13 -9
  89. package/dist/apps/data/routes/indexer.js.map +1 -0
  90. package/dist/apps/{receipts.d.ts → data/routes/receipts.d.ts} +49 -49
  91. package/dist/apps/data/routes/receipts.d.ts.map +1 -0
  92. package/dist/apps/{receipts.js → data/routes/receipts.js} +14 -20
  93. package/dist/apps/data/routes/receipts.js.map +1 -0
  94. package/dist/apps/{rpc.d.ts → data/routes/rpc.d.ts} +33 -40
  95. package/dist/apps/data/routes/rpc.d.ts.map +1 -0
  96. package/dist/apps/{rpc.js → data/routes/rpc.js} +35 -7
  97. package/dist/apps/data/routes/rpc.js.map +1 -0
  98. package/dist/apps/{tokenlist.d.ts → data/routes/tokenlist.d.ts} +40 -40
  99. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -0
  100. package/dist/apps/{tokenlist.js → data/routes/tokenlist.js} +8 -8
  101. package/dist/apps/data/routes/tokenlist.js.map +1 -0
  102. package/dist/apps/{tokens.d.ts → data/routes/tokens.d.ts} +468 -468
  103. package/dist/apps/data/routes/tokens.d.ts.map +1 -0
  104. package/dist/apps/{tokens.js → data/routes/tokens.js} +19 -19
  105. package/dist/apps/data/routes/tokens.js.map +1 -0
  106. package/dist/apps/{transactions.d.ts → data/routes/transactions.d.ts} +304 -304
  107. package/dist/apps/data/routes/transactions.d.ts.map +1 -0
  108. package/dist/apps/{transactions.js → data/routes/transactions.js} +13 -13
  109. package/dist/apps/data/routes/transactions.js.map +1 -0
  110. package/dist/apps/{transfers.d.ts → data/routes/transfers.d.ts} +62 -62
  111. package/dist/apps/data/routes/transfers.d.ts.map +1 -0
  112. package/dist/apps/{transfers.js → data/routes/transfers.js} +13 -13
  113. package/dist/apps/data/routes/transfers.js.map +1 -0
  114. package/dist/apps/{verified-tokens.d.ts → data/routes/verified-tokens.d.ts} +6 -6
  115. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -0
  116. package/dist/apps/{verified-tokens.js → data/routes/verified-tokens.js} +9 -9
  117. package/dist/apps/data/routes/verified-tokens.js.map +1 -0
  118. package/dist/apps/{webhooks.d.ts → data/routes/webhooks.d.ts} +17 -17
  119. package/dist/apps/{webhooks.d.ts.map → data/routes/webhooks.d.ts.map} +1 -1
  120. package/dist/apps/{webhooks.js → data/routes/webhooks.js} +38 -34
  121. package/dist/apps/data/routes/webhooks.js.map +1 -0
  122. package/dist/apps/docs/App.d.ts +29 -0
  123. package/dist/apps/docs/App.d.ts.map +1 -0
  124. package/dist/apps/docs/App.js +54 -0
  125. package/dist/apps/docs/App.js.map +1 -0
  126. package/dist/{internal/OpenApi.fonts.d.ts → apps/docs/fonts.d.ts} +1 -1
  127. package/dist/apps/docs/fonts.d.ts.map +1 -0
  128. package/dist/{internal/OpenApi.fonts.js → apps/docs/fonts.js} +1 -1
  129. package/dist/apps/docs/fonts.js.map +1 -0
  130. package/dist/apps/docs/index.d.ts +2 -0
  131. package/dist/apps/docs/index.d.ts.map +1 -0
  132. package/dist/apps/docs/index.js +2 -0
  133. package/dist/apps/docs/index.js.map +1 -0
  134. package/dist/{internal/OpenApi.logo.d.ts → apps/docs/logo.d.ts} +1 -1
  135. package/dist/apps/docs/logo.d.ts.map +1 -0
  136. package/dist/{internal/OpenApi.logo.js → apps/docs/logo.js} +1 -1
  137. package/dist/apps/docs/logo.js.map +1 -0
  138. package/dist/apps/docs/reference.d.ts +21 -0
  139. package/dist/apps/docs/reference.d.ts.map +1 -0
  140. package/dist/apps/docs/reference.js +112 -0
  141. package/dist/apps/docs/reference.js.map +1 -0
  142. package/dist/apps/index.d.ts +5 -0
  143. package/dist/apps/index.d.ts.map +1 -0
  144. package/dist/apps/index.js +5 -0
  145. package/dist/apps/index.js.map +1 -0
  146. package/dist/apps/mcp.d.ts +76 -0
  147. package/dist/apps/mcp.d.ts.map +1 -0
  148. package/dist/apps/mcp.js +188 -0
  149. package/dist/apps/mcp.js.map +1 -0
  150. package/dist/apps/metadata.d.ts +7 -0
  151. package/dist/apps/metadata.d.ts.map +1 -0
  152. package/dist/apps/metadata.js +15 -0
  153. package/dist/apps/metadata.js.map +1 -0
  154. package/dist/apps/platform/App.d.ts +5262 -0
  155. package/dist/apps/platform/App.d.ts.map +1 -0
  156. package/dist/apps/platform/App.js +84 -0
  157. package/dist/apps/platform/App.js.map +1 -0
  158. package/dist/apps/platform/Billing.d.ts +279 -0
  159. package/dist/apps/platform/Billing.d.ts.map +1 -0
  160. package/dist/apps/platform/Billing.js +477 -0
  161. package/dist/apps/platform/Billing.js.map +1 -0
  162. package/dist/apps/platform/index.d.ts +3 -0
  163. package/dist/apps/platform/index.d.ts.map +1 -0
  164. package/dist/apps/platform/index.js +3 -0
  165. package/dist/apps/platform/index.js.map +1 -0
  166. package/dist/apps/platform/routes/api-keys.d.ts +973 -0
  167. package/dist/apps/platform/routes/api-keys.d.ts.map +1 -0
  168. package/dist/apps/platform/routes/api-keys.js +430 -0
  169. package/dist/apps/platform/routes/api-keys.js.map +1 -0
  170. package/dist/apps/platform/routes/billing.d.ts +1520 -0
  171. package/dist/apps/platform/routes/billing.d.ts.map +1 -0
  172. package/dist/apps/platform/routes/billing.js +795 -0
  173. package/dist/apps/platform/routes/billing.js.map +1 -0
  174. package/dist/apps/platform/routes/invitations.d.ts +851 -0
  175. package/dist/apps/platform/routes/invitations.d.ts.map +1 -0
  176. package/dist/apps/platform/routes/invitations.js +471 -0
  177. package/dist/apps/platform/routes/invitations.js.map +1 -0
  178. package/dist/apps/platform/routes/me.d.ts +95 -0
  179. package/dist/apps/platform/routes/me.d.ts.map +1 -0
  180. package/dist/apps/platform/routes/me.js +81 -0
  181. package/dist/apps/platform/routes/me.js.map +1 -0
  182. package/dist/apps/platform/routes/members.d.ts +554 -0
  183. package/dist/apps/platform/routes/members.d.ts.map +1 -0
  184. package/dist/apps/platform/routes/members.js +251 -0
  185. package/dist/apps/platform/routes/members.js.map +1 -0
  186. package/dist/apps/platform/routes/orgs.d.ts +596 -0
  187. package/dist/apps/platform/routes/orgs.d.ts.map +1 -0
  188. package/dist/apps/platform/routes/orgs.js +276 -0
  189. package/dist/apps/platform/routes/orgs.js.map +1 -0
  190. package/dist/apps/platform/routes/projects.d.ts +740 -0
  191. package/dist/apps/platform/routes/projects.d.ts.map +1 -0
  192. package/dist/apps/platform/routes/projects.js +286 -0
  193. package/dist/apps/platform/routes/projects.js.map +1 -0
  194. package/dist/apps/platform/routes/scopes.d.ts +107 -0
  195. package/dist/apps/platform/routes/scopes.d.ts.map +1 -0
  196. package/dist/apps/platform/routes/scopes.js +66 -0
  197. package/dist/apps/platform/routes/scopes.js.map +1 -0
  198. package/dist/apps/platform/routes/usage.d.ts +588 -0
  199. package/dist/apps/platform/routes/usage.d.ts.map +1 -0
  200. package/dist/apps/platform/routes/usage.js +391 -0
  201. package/dist/apps/platform/routes/usage.js.map +1 -0
  202. package/dist/apps/relay/App.d.ts +44 -0
  203. package/dist/apps/relay/App.d.ts.map +1 -0
  204. package/dist/apps/relay/App.js +211 -0
  205. package/dist/apps/relay/App.js.map +1 -0
  206. package/dist/apps/relay/Sponsorships.d.ts +107 -0
  207. package/dist/apps/relay/Sponsorships.d.ts.map +1 -0
  208. package/dist/apps/relay/Sponsorships.js +194 -0
  209. package/dist/apps/relay/Sponsorships.js.map +1 -0
  210. package/dist/apps/relay/index.d.ts +3 -0
  211. package/dist/apps/relay/index.d.ts.map +1 -0
  212. package/dist/apps/relay/index.js +3 -0
  213. package/dist/apps/relay/index.js.map +1 -0
  214. package/dist/cli/Cli.d.ts +9 -2
  215. package/dist/cli/Cli.d.ts.map +1 -1
  216. package/dist/cli/Cli.js +12 -4
  217. package/dist/cli/Cli.js.map +1 -1
  218. package/dist/cli/commands/admin.d.ts +5 -1
  219. package/dist/cli/commands/admin.d.ts.map +1 -1
  220. package/dist/cli/commands/admin.js +82 -3
  221. package/dist/cli/commands/admin.js.map +1 -1
  222. package/dist/db/Db.d.ts +17 -0
  223. package/dist/db/Db.d.ts.map +1 -1
  224. package/dist/db/Db.js +254 -0
  225. package/dist/db/Db.js.map +1 -1
  226. package/dist/db/Schema.d.ts +159 -0
  227. package/dist/db/Schema.d.ts.map +1 -1
  228. package/dist/db/Schema.js +187 -2
  229. package/dist/db/Schema.js.map +1 -1
  230. package/dist/db/tables/billingSettings.d.ts +55 -0
  231. package/dist/db/tables/billingSettings.d.ts.map +1 -0
  232. package/dist/db/tables/billingSettings.js +70 -0
  233. package/dist/db/tables/billingSettings.js.map +1 -0
  234. package/dist/db/tables/invitations.d.ts +84 -0
  235. package/dist/db/tables/invitations.d.ts.map +1 -0
  236. package/dist/db/tables/invitations.js +165 -0
  237. package/dist/db/tables/invitations.js.map +1 -0
  238. package/dist/db/tables/memberships.d.ts +108 -0
  239. package/dist/db/tables/memberships.d.ts.map +1 -0
  240. package/dist/db/tables/memberships.js +153 -0
  241. package/dist/db/tables/memberships.js.map +1 -0
  242. package/dist/db/tables/organizations.d.ts +48 -0
  243. package/dist/db/tables/organizations.d.ts.map +1 -1
  244. package/dist/db/tables/organizations.js +97 -2
  245. package/dist/db/tables/organizations.js.map +1 -1
  246. package/dist/db/tables/projects.d.ts +65 -0
  247. package/dist/db/tables/projects.d.ts.map +1 -0
  248. package/dist/db/tables/projects.js +75 -0
  249. package/dist/db/tables/projects.js.map +1 -0
  250. package/dist/db/tables/requestUsage.d.ts +121 -0
  251. package/dist/db/tables/requestUsage.d.ts.map +1 -0
  252. package/dist/db/tables/requestUsage.js +150 -0
  253. package/dist/db/tables/requestUsage.js.map +1 -0
  254. package/dist/db/tables/sponsoredTransactions.d.ts +239 -0
  255. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -0
  256. package/dist/db/tables/sponsoredTransactions.js +314 -0
  257. package/dist/db/tables/sponsoredTransactions.js.map +1 -0
  258. package/dist/db/tables/stripeCustomers.d.ts +81 -0
  259. package/dist/db/tables/stripeCustomers.d.ts.map +1 -0
  260. package/dist/db/tables/stripeCustomers.js +120 -0
  261. package/dist/db/tables/stripeCustomers.js.map +1 -0
  262. package/dist/db/tables/users.d.ts +48 -0
  263. package/dist/db/tables/users.d.ts.map +1 -0
  264. package/dist/db/tables/users.js +65 -0
  265. package/dist/db/tables/users.js.map +1 -0
  266. package/dist/handlers/internal/executionError.d.ts.map +1 -1
  267. package/dist/handlers/internal/executionError.js +2 -0
  268. package/dist/handlers/internal/executionError.js.map +1 -1
  269. package/dist/handlers/internal/multisig.d.ts +2 -6
  270. package/dist/handlers/internal/multisig.d.ts.map +1 -1
  271. package/dist/handlers/internal/multisig.js +11 -36
  272. package/dist/handlers/internal/multisig.js.map +1 -1
  273. package/dist/handlers/internal/sponsorship.d.ts +35 -2
  274. package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
  275. package/dist/handlers/internal/sponsorship.js +53 -14
  276. package/dist/handlers/internal/sponsorship.js.map +1 -1
  277. package/dist/handlers/internal/utils.d.ts +10 -3
  278. package/dist/handlers/internal/utils.d.ts.map +1 -1
  279. package/dist/handlers/internal/utils.js +14 -6
  280. package/dist/handlers/internal/utils.js.map +1 -1
  281. package/dist/handlers/relay.d.ts +6 -2
  282. package/dist/handlers/relay.d.ts.map +1 -1
  283. package/dist/handlers/relay.js +16 -2
  284. package/dist/handlers/relay.js.map +1 -1
  285. package/dist/index.d.ts +1 -0
  286. package/dist/index.d.ts.map +1 -1
  287. package/dist/index.js +1 -0
  288. package/dist/index.js.map +1 -1
  289. package/dist/internal/Auth.d.ts +222 -6
  290. package/dist/internal/Auth.d.ts.map +1 -1
  291. package/dist/internal/Auth.js +625 -74
  292. package/dist/internal/Auth.js.map +1 -1
  293. package/dist/internal/Cache.d.ts.map +1 -1
  294. package/dist/internal/Cache.js +4 -1
  295. package/dist/internal/Cache.js.map +1 -1
  296. package/dist/internal/EdgeCache.d.ts +10 -0
  297. package/dist/internal/EdgeCache.d.ts.map +1 -1
  298. package/dist/internal/EdgeCache.js +39 -8
  299. package/dist/internal/EdgeCache.js.map +1 -1
  300. package/dist/internal/Fees.d.ts +27 -0
  301. package/dist/internal/Fees.d.ts.map +1 -0
  302. package/dist/internal/Fees.js +48 -0
  303. package/dist/internal/Fees.js.map +1 -0
  304. package/dist/internal/FundingRoutes.d.ts +183 -0
  305. package/dist/internal/FundingRoutes.d.ts.map +1 -0
  306. package/dist/internal/FundingRoutes.js +490 -0
  307. package/dist/internal/FundingRoutes.js.map +1 -0
  308. package/dist/internal/Id.d.ts +15 -0
  309. package/dist/internal/Id.d.ts.map +1 -0
  310. package/dist/internal/Id.js +22 -0
  311. package/dist/internal/Id.js.map +1 -0
  312. package/dist/internal/Log.d.ts +9 -3
  313. package/dist/internal/Log.d.ts.map +1 -1
  314. package/dist/internal/Log.js +7 -0
  315. package/dist/internal/Log.js.map +1 -1
  316. package/dist/internal/OpenApi.d.ts +10 -20
  317. package/dist/internal/OpenApi.d.ts.map +1 -1
  318. package/dist/internal/OpenApi.js +8 -58
  319. package/dist/internal/OpenApi.js.map +1 -1
  320. package/dist/internal/RateLimit.d.ts +25 -0
  321. package/dist/internal/RateLimit.d.ts.map +1 -1
  322. package/dist/internal/RateLimit.js +51 -0
  323. package/dist/internal/RateLimit.js.map +1 -1
  324. package/dist/internal/Response.d.ts +1 -1
  325. package/dist/internal/Response.d.ts.map +1 -1
  326. package/dist/internal/Schema.d.ts +8 -0
  327. package/dist/internal/Schema.d.ts.map +1 -1
  328. package/dist/internal/Schema.js +7 -0
  329. package/dist/internal/Schema.js.map +1 -1
  330. package/dist/internal/Store.d.ts +7 -1
  331. package/dist/internal/Store.d.ts.map +1 -1
  332. package/dist/internal/Store.js +16 -2
  333. package/dist/internal/Store.js.map +1 -1
  334. package/dist/internal/Viem.d.ts +84 -0
  335. package/dist/internal/Viem.d.ts.map +1 -1
  336. package/dist/internal/Webhooks.d.ts +1 -1
  337. package/dist/internal/Webhooks.d.ts.map +1 -1
  338. package/dist/internal/Webhooks.js +3 -3
  339. package/dist/internal/Webhooks.js.map +1 -1
  340. package/package.json +33 -6
  341. package/src/ApiKey.ts +10 -2
  342. package/src/ApiKeys.test.ts +155 -1
  343. package/src/ApiKeys.ts +203 -1
  344. package/src/App.test.ts +64 -75741
  345. package/src/App.ts +218 -420
  346. package/src/Client.test-d.ts +657 -15
  347. package/src/Scope.ts +26 -4
  348. package/src/Webhooks.ts +2 -2
  349. package/src/admin/apps/api-keys.test.ts +51 -0
  350. package/src/admin/apps/api-keys.ts +84 -0
  351. package/src/admin/apps/scopes.test.ts +11 -1
  352. package/src/admin/apps/scopes.ts +3 -0
  353. package/src/admin/apps/verified-tokens.ts +1 -1
  354. package/src/admin/ui/src/components/Page.tsx +2 -3
  355. package/src/admin/ui/src/routes/__root.tsx +2 -2
  356. package/src/admin/ui/src/routes/api-keys.tsx +2 -2
  357. package/src/admin/ui.generated.ts +13 -13
  358. package/src/analytics/Analytics.test.ts +527 -0
  359. package/src/analytics/Analytics.ts +318 -0
  360. package/src/analytics/tables/requestEvents.ts +523 -0
  361. package/src/apps/composition.test.ts +66 -0
  362. package/src/apps/data/App.test.ts +72 -0
  363. package/src/apps/data/App.ts +330 -0
  364. package/src/apps/data/index.ts +2 -0
  365. package/src/apps/{activities.test.ts → data/routes/activities.test.ts} +3 -3
  366. package/src/apps/{activities.ts → data/routes/activities.ts} +15 -15
  367. package/src/apps/{addresses.ts → data/routes/addresses.ts} +6 -6
  368. package/src/apps/{balances.test.ts → data/routes/balances.test.ts} +2 -2
  369. package/src/apps/{balances.ts → data/routes/balances.ts} +46 -12
  370. package/src/apps/{blocks.test.ts → data/routes/blocks.test.ts} +3 -3
  371. package/src/apps/{blocks.ts → data/routes/blocks.ts} +14 -14
  372. package/src/apps/{coingecko.test.ts → data/routes/coingecko.test.ts} +2 -2
  373. package/src/apps/{coingecko.ts → data/routes/coingecko.ts} +14 -14
  374. package/src/apps/{exchanges.test.ts → data/routes/exchanges.test.ts} +1 -1
  375. package/src/apps/{exchanges.ts → data/routes/exchanges.ts} +20 -20
  376. package/src/apps/{fee-amm.test.ts → data/routes/fee-amm.test.ts} +3 -3
  377. package/src/apps/{fee-amm.ts → data/routes/fee-amm.ts} +18 -18
  378. package/src/apps/data/routes/funding.test.ts +214 -0
  379. package/src/apps/data/routes/funding.ts +584 -0
  380. package/src/apps/{indexer.test.ts → data/routes/indexer.test.ts} +26 -5
  381. package/src/apps/{indexer.ts → data/routes/indexer.ts} +13 -10
  382. package/src/apps/{receipts.test.ts → data/routes/receipts.test.ts} +3 -3
  383. package/src/apps/{receipts.ts → data/routes/receipts.ts} +15 -22
  384. package/src/apps/{rpc.test.ts → data/routes/rpc.test.ts} +122 -7
  385. package/src/apps/{rpc.ts → data/routes/rpc.ts} +38 -8
  386. package/src/apps/{tokenlist.test.ts → data/routes/tokenlist.test.ts} +3 -3
  387. package/src/apps/{tokenlist.ts → data/routes/tokenlist.ts} +9 -9
  388. package/src/apps/{tokens.test.ts → data/routes/tokens.test.ts} +2 -2
  389. package/src/apps/{tokens.ts → data/routes/tokens.ts} +20 -20
  390. package/src/apps/{transactions.test.ts → data/routes/transactions.test.ts} +3 -3
  391. package/src/apps/{transactions.ts → data/routes/transactions.ts} +15 -15
  392. package/src/apps/{transfers.test.ts → data/routes/transfers.test.ts} +2 -2
  393. package/src/apps/{transfers.ts → data/routes/transfers.ts} +15 -15
  394. package/src/apps/{verified-tokens.test.ts → data/routes/verified-tokens.test.ts} +3 -3
  395. package/src/apps/{verified-tokens.ts → data/routes/verified-tokens.ts} +10 -10
  396. package/src/apps/{webhooks.test.ts → data/routes/webhooks.test.ts} +7 -7
  397. package/src/apps/{webhooks.ts → data/routes/webhooks.ts} +50 -43
  398. package/src/apps/docs/App.ts +65 -0
  399. package/src/apps/docs/index.ts +1 -0
  400. package/src/apps/docs/reference.ts +132 -0
  401. package/src/apps/index.ts +4 -0
  402. package/src/apps/mcp.test.ts +206 -0
  403. package/src/apps/mcp.ts +250 -0
  404. package/src/apps/metadata.ts +23 -0
  405. package/src/apps/platform/App.ts +169 -0
  406. package/src/apps/platform/Billing.test.ts +530 -0
  407. package/src/apps/platform/Billing.ts +682 -0
  408. package/src/apps/platform/index.ts +2 -0
  409. package/src/apps/platform/routes/api-keys.test.ts +493 -0
  410. package/src/apps/platform/routes/api-keys.ts +543 -0
  411. package/src/apps/platform/routes/billing.test.ts +1100 -0
  412. package/src/apps/platform/routes/billing.ts +966 -0
  413. package/src/apps/platform/routes/invitations.test.ts +409 -0
  414. package/src/apps/platform/routes/invitations.ts +587 -0
  415. package/src/apps/platform/routes/me.test.ts +351 -0
  416. package/src/apps/platform/routes/me.ts +106 -0
  417. package/src/apps/platform/routes/members.test.ts +195 -0
  418. package/src/apps/platform/routes/members.ts +313 -0
  419. package/src/apps/platform/routes/orgs.test.ts +313 -0
  420. package/src/apps/platform/routes/orgs.ts +365 -0
  421. package/src/apps/platform/routes/projects.test.ts +181 -0
  422. package/src/apps/platform/routes/projects.ts +367 -0
  423. package/src/apps/platform/routes/scopes.test.ts +29 -0
  424. package/src/apps/platform/routes/scopes.ts +85 -0
  425. package/src/apps/platform/routes/usage.test.ts +422 -0
  426. package/src/apps/platform/routes/usage.ts +527 -0
  427. package/src/apps/relay/App.test.ts +933 -0
  428. package/src/apps/relay/App.ts +236 -0
  429. package/src/apps/relay/Sponsorships.test.ts +375 -0
  430. package/src/apps/relay/Sponsorships.ts +306 -0
  431. package/src/apps/relay/index.ts +2 -0
  432. package/src/cli/Cli.test.ts +25 -2
  433. package/src/cli/Cli.ts +18 -3
  434. package/src/cli/commands/admin.test.ts +83 -0
  435. package/src/cli/commands/admin.ts +91 -3
  436. package/src/db/Db.ts +296 -0
  437. package/src/db/Schema.ts +241 -2
  438. package/src/db/tables/billingSettings.test.ts +87 -0
  439. package/src/db/tables/billingSettings.ts +108 -0
  440. package/src/db/tables/invitations.ts +198 -0
  441. package/src/db/tables/memberships.ts +208 -0
  442. package/src/db/tables/organizations.test.ts +38 -2
  443. package/src/db/tables/organizations.ts +117 -2
  444. package/src/db/tables/projects.ts +107 -0
  445. package/src/db/tables/requestUsage.ts +231 -0
  446. package/src/db/tables/sponsoredTransactions.test.ts +325 -0
  447. package/src/db/tables/sponsoredTransactions.ts +464 -0
  448. package/src/db/tables/stripeCustomers.test.ts +109 -0
  449. package/src/db/tables/stripeCustomers.ts +162 -0
  450. package/src/db/tables/users.ts +85 -0
  451. package/src/handlers/internal/executionError.ts +2 -0
  452. package/src/handlers/internal/multisig.test.ts +84 -10
  453. package/src/handlers/internal/multisig.ts +15 -50
  454. package/src/handlers/internal/sponsorship.ts +106 -20
  455. package/src/handlers/internal/utils.ts +19 -7
  456. package/src/handlers/{internal/relay.localnet.test.ts → relay.test.ts} +2 -2
  457. package/src/handlers/relay.ts +23 -5
  458. package/src/index.ts +1 -0
  459. package/src/internal/Auth.test.ts +491 -25
  460. package/src/internal/Auth.ts +839 -84
  461. package/src/internal/Cache.ts +5 -1
  462. package/src/internal/Cursor.test.ts +3 -2
  463. package/src/internal/EdgeCache.test.ts +27 -4
  464. package/src/internal/EdgeCache.ts +47 -9
  465. package/src/internal/Fees.test.ts +32 -0
  466. package/src/internal/Fees.ts +51 -0
  467. package/src/internal/FundingRoutes.ts +583 -0
  468. package/src/internal/Id.test.ts +17 -0
  469. package/src/internal/Id.ts +24 -0
  470. package/src/internal/Log.test.ts +2 -1
  471. package/src/internal/Log.ts +16 -3
  472. package/src/internal/MetricSink.ts +1 -1
  473. package/src/internal/OpenApi.ts +12 -60
  474. package/src/internal/RateLimit.test.ts +84 -0
  475. package/src/internal/RateLimit.ts +70 -0
  476. package/src/internal/Response.ts +1 -1
  477. package/src/internal/Schema.ts +8 -0
  478. package/src/internal/Store.test.ts +52 -0
  479. package/src/internal/Store.ts +24 -5
  480. package/src/internal/Tidx.local.test.ts +1 -1
  481. package/src/internal/VerifiedTokens.test.ts +1 -1
  482. package/src/internal/WebhookDestination.test.ts +1 -1
  483. package/src/internal/Webhooks.test.ts +7 -7
  484. package/src/internal/Webhooks.ts +4 -4
  485. package/dist/apps/activities.js.map +0 -1
  486. package/dist/apps/addresses.js.map +0 -1
  487. package/dist/apps/balances.d.ts.map +0 -1
  488. package/dist/apps/balances.js.map +0 -1
  489. package/dist/apps/blocks.d.ts.map +0 -1
  490. package/dist/apps/blocks.js.map +0 -1
  491. package/dist/apps/coingecko.d.ts.map +0 -1
  492. package/dist/apps/coingecko.js.map +0 -1
  493. package/dist/apps/exchanges.d.ts.map +0 -1
  494. package/dist/apps/exchanges.js.map +0 -1
  495. package/dist/apps/fee-amm.d.ts.map +0 -1
  496. package/dist/apps/fee-amm.js.map +0 -1
  497. package/dist/apps/indexer.d.ts.map +0 -1
  498. package/dist/apps/indexer.js.map +0 -1
  499. package/dist/apps/receipts.d.ts.map +0 -1
  500. package/dist/apps/receipts.js.map +0 -1
  501. package/dist/apps/rpc.d.ts.map +0 -1
  502. package/dist/apps/rpc.js.map +0 -1
  503. package/dist/apps/tokenlist.d.ts.map +0 -1
  504. package/dist/apps/tokenlist.js.map +0 -1
  505. package/dist/apps/tokens.d.ts.map +0 -1
  506. package/dist/apps/tokens.js.map +0 -1
  507. package/dist/apps/transactions.d.ts.map +0 -1
  508. package/dist/apps/transactions.js.map +0 -1
  509. package/dist/apps/transfers.d.ts.map +0 -1
  510. package/dist/apps/transfers.js.map +0 -1
  511. package/dist/apps/verified-tokens.d.ts.map +0 -1
  512. package/dist/apps/verified-tokens.js.map +0 -1
  513. package/dist/apps/webhooks.js.map +0 -1
  514. package/dist/internal/OpenApi.fonts.d.ts.map +0 -1
  515. package/dist/internal/OpenApi.fonts.js.map +0 -1
  516. package/dist/internal/OpenApi.logo.d.ts.map +0 -1
  517. package/dist/internal/OpenApi.logo.js.map +0 -1
  518. package/src/handlers/internal/multisig.localnet.test.ts +0 -146
  519. /package/src/{internal/OpenApi.fonts.ts → apps/docs/fonts.ts} +0 -0
  520. /package/src/{internal/OpenApi.logo.ts → apps/docs/logo.ts} +0 -0
@@ -0,0 +1,973 @@
1
+ import * as z from 'zod/mini';
2
+ import type * as App from '../../../App.js';
3
+ import * as Response from '../../../internal/Response.js';
4
+ /** Zod schemas owned by the API-keys resource. */
5
+ export declare namespace schema {
6
+ /** One API key: metadata only — the token appears once, at mint. */
7
+ const Key: z.ZodMiniObject<{
8
+ createdAt: z.ZodMiniString<string>;
9
+ createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
10
+ environment: z.ZodMiniEnum<{
11
+ production: "production";
12
+ sandbox: "sandbox";
13
+ }>;
14
+ expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
15
+ id: z.ZodMiniString<string>;
16
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
17
+ orgId: z.ZodMiniString<string>;
18
+ projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
19
+ scopes: z.ZodMiniArray<z.ZodMiniEnum<{
20
+ "*": "*";
21
+ "data:read": "data:read";
22
+ "indexer:query": "indexer:query";
23
+ "rpc-relay:read": "rpc-relay:read";
24
+ "rpc-relay:sponsor": "rpc-relay:sponsor";
25
+ "webhooks:read": "webhooks:read";
26
+ "webhooks:write": "webhooks:write";
27
+ }>>;
28
+ tokenLast4: z.ZodMiniString<string>;
29
+ }, z.core.$strip>;
30
+ /** Path parameters addressing a project's key collection. */
31
+ const Params: z.ZodMiniObject<{
32
+ orgId: z.ZodMiniString<string>;
33
+ projectId: z.ZodMiniString<string>;
34
+ }, z.core.$strip>;
35
+ /** Path parameters addressing an organization's key collection. */
36
+ const OrgParams: z.ZodMiniObject<{
37
+ orgId: z.ZodMiniString<string>;
38
+ }, z.core.$strip>;
39
+ /** Path parameters addressing one API key. */
40
+ const KeyParams: z.ZodMiniObject<{
41
+ keyId: z.ZodMiniString<string>;
42
+ orgId: z.ZodMiniString<string>;
43
+ projectId: z.ZodMiniString<string>;
44
+ }, z.core.$strip>;
45
+ /** Request body minting a key. The wildcard scope is not issuable here. */
46
+ const KeyBody: z.ZodMiniObject<{
47
+ environment: z.ZodMiniDefault<z.ZodMiniEnum<{
48
+ production: "production";
49
+ sandbox: "sandbox";
50
+ }>>;
51
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
52
+ scopes: z.ZodMiniDefault<z.ZodMiniArray<z.ZodMiniEnum<{
53
+ "data:read": "data:read";
54
+ "indexer:query": "indexer:query";
55
+ "rpc-relay:read": "rpc-relay:read";
56
+ "rpc-relay:sponsor": "rpc-relay:sponsor";
57
+ "webhooks:read": "webhooks:read";
58
+ "webhooks:write": "webhooks:write";
59
+ }>>>;
60
+ }, z.core.$strip>;
61
+ /** Schemas for the createApiKey operation. */
62
+ namespace createApiKey {
63
+ /** The minted key plus its one-time token. */
64
+ const Response: z.ZodMiniObject<{
65
+ createdAt: z.ZodMiniString<string>;
66
+ createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
67
+ environment: z.ZodMiniEnum<{
68
+ production: "production";
69
+ sandbox: "sandbox";
70
+ }>;
71
+ expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
72
+ id: z.ZodMiniString<string>;
73
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
74
+ orgId: z.ZodMiniString<string>;
75
+ projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
76
+ scopes: z.ZodMiniArray<z.ZodMiniEnum<{
77
+ "*": "*";
78
+ "data:read": "data:read";
79
+ "indexer:query": "indexer:query";
80
+ "rpc-relay:read": "rpc-relay:read";
81
+ "rpc-relay:sponsor": "rpc-relay:sponsor";
82
+ "webhooks:read": "webhooks:read";
83
+ "webhooks:write": "webhooks:write";
84
+ }>>;
85
+ tokenLast4: z.ZodMiniString<string>;
86
+ token: z.ZodMiniString<string>;
87
+ }, z.core.$strip>;
88
+ }
89
+ /** Schemas for the listApiKeys operation. */
90
+ namespace listApiKeys {
91
+ /** Query parameters filtering a project's keys. */
92
+ const Query: z.ZodMiniObject<{
93
+ environment: z.ZodMiniDefault<z.ZodMiniEnum<{
94
+ production: "production";
95
+ sandbox: "sandbox";
96
+ }>>;
97
+ }, z.core.$strict>;
98
+ /** Non-paginated list of a project's keys. */
99
+ const Response: z.ZodMiniObject<{
100
+ data: z.ZodMiniArray<z.ZodMiniObject<{
101
+ createdAt: z.ZodMiniString<string>;
102
+ createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
103
+ environment: z.ZodMiniEnum<{
104
+ production: "production";
105
+ sandbox: "sandbox";
106
+ }>;
107
+ expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
108
+ id: z.ZodMiniString<string>;
109
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
110
+ orgId: z.ZodMiniString<string>;
111
+ projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
112
+ scopes: z.ZodMiniArray<z.ZodMiniEnum<{
113
+ "*": "*";
114
+ "data:read": "data:read";
115
+ "indexer:query": "indexer:query";
116
+ "rpc-relay:read": "rpc-relay:read";
117
+ "rpc-relay:sponsor": "rpc-relay:sponsor";
118
+ "webhooks:read": "webhooks:read";
119
+ "webhooks:write": "webhooks:write";
120
+ }>>;
121
+ tokenLast4: z.ZodMiniString<string>;
122
+ }, z.core.$strip>>;
123
+ }, z.core.$strip>;
124
+ }
125
+ /** Schemas for the listOrgApiKeys operation. */
126
+ namespace listOrgApiKeys {
127
+ /** Query parameters filtering the organization's keys. */
128
+ const Query: z.ZodMiniObject<{
129
+ environment: z.ZodMiniDefault<z.ZodMiniEnum<{
130
+ production: "production";
131
+ sandbox: "sandbox";
132
+ }>>;
133
+ }, z.core.$strict>;
134
+ /** Non-paginated list of every key in the organization. */
135
+ const Response: z.ZodMiniObject<{
136
+ data: z.ZodMiniArray<z.ZodMiniObject<{
137
+ createdAt: z.ZodMiniString<string>;
138
+ createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
139
+ environment: z.ZodMiniEnum<{
140
+ production: "production";
141
+ sandbox: "sandbox";
142
+ }>;
143
+ expiresAt: z.ZodMiniOptional<z.ZodMiniString<string>>;
144
+ id: z.ZodMiniString<string>;
145
+ name: z.ZodMiniOptional<z.ZodMiniString<string>>;
146
+ orgId: z.ZodMiniString<string>;
147
+ projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
148
+ scopes: z.ZodMiniArray<z.ZodMiniEnum<{
149
+ "*": "*";
150
+ "data:read": "data:read";
151
+ "indexer:query": "indexer:query";
152
+ "rpc-relay:read": "rpc-relay:read";
153
+ "rpc-relay:sponsor": "rpc-relay:sponsor";
154
+ "webhooks:read": "webhooks:read";
155
+ "webhooks:write": "webhooks:write";
156
+ }>>;
157
+ tokenLast4: z.ZodMiniString<string>;
158
+ }, z.core.$strip>>;
159
+ }, z.core.$strip>;
160
+ }
161
+ /** Schemas for the revokeApiKey operation. */
162
+ namespace revokeApiKey {
163
+ /** Confirmation that the key was revoked. */
164
+ const Response: z.ZodMiniObject<{
165
+ id: z.ZodMiniString<string>;
166
+ }, z.core.$strip>;
167
+ }
168
+ }
169
+ /**
170
+ * Mounts the `/orgs/:orgId/projects/:projectId/api-keys` resource
171
+ * (project-scoped mint/list/revoke) plus the org-wide read
172
+ * `/orgs/:orgId/api-keys`, over the KV state store. Access follows the
173
+ * org/project scope (owning session or super admin); the token appears once,
174
+ * at mint.
175
+ */
176
+ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-base").HonoBase<App.Environment, {
177
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
178
+ $post: {
179
+ output: {
180
+ error: {
181
+ code: "api_key_malformed";
182
+ details?: readonly Response.error.Detail[] | undefined;
183
+ message: string;
184
+ };
185
+ requestId: string;
186
+ };
187
+ outputFormat: "json";
188
+ status: 400;
189
+ input: {
190
+ param: {
191
+ orgId: string;
192
+ projectId: string;
193
+ };
194
+ } & {
195
+ json: {
196
+ environment?: "production" | "sandbox" | undefined;
197
+ name?: string | undefined;
198
+ scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
199
+ };
200
+ };
201
+ } | {
202
+ output: {
203
+ error: {
204
+ code: "api_key_invalid" | "api_key_missing";
205
+ details?: readonly Response.error.Detail[] | undefined;
206
+ message: string;
207
+ };
208
+ requestId: string;
209
+ };
210
+ outputFormat: "json";
211
+ status: 401;
212
+ input: {
213
+ param: {
214
+ orgId: string;
215
+ projectId: string;
216
+ };
217
+ } & {
218
+ json: {
219
+ environment?: "production" | "sandbox" | undefined;
220
+ name?: string | undefined;
221
+ scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
222
+ };
223
+ };
224
+ } | {
225
+ output: {
226
+ error: {
227
+ code: "upstream_error";
228
+ details?: readonly Response.error.Detail[] | undefined;
229
+ message: string;
230
+ };
231
+ requestId: string;
232
+ };
233
+ outputFormat: "json";
234
+ status: 502;
235
+ input: {
236
+ param: {
237
+ orgId: string;
238
+ projectId: string;
239
+ };
240
+ } & {
241
+ json: {
242
+ environment?: "production" | "sandbox" | undefined;
243
+ name?: string | undefined;
244
+ scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
245
+ };
246
+ };
247
+ } | {
248
+ output: {
249
+ error: {
250
+ code: "body_invalid";
251
+ details?: readonly Response.error.Detail[] | undefined;
252
+ message: string;
253
+ };
254
+ requestId: string;
255
+ };
256
+ outputFormat: "json";
257
+ status: 400;
258
+ input: {
259
+ param: {
260
+ orgId: string;
261
+ projectId: string;
262
+ };
263
+ } & {
264
+ json: {
265
+ environment?: "production" | "sandbox" | undefined;
266
+ name?: string | undefined;
267
+ scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
268
+ };
269
+ };
270
+ } | {
271
+ output: {
272
+ error: {
273
+ code: "param_invalid";
274
+ details?: readonly Response.error.Detail[] | undefined;
275
+ message: string;
276
+ };
277
+ requestId: string;
278
+ };
279
+ outputFormat: "json";
280
+ status: 400;
281
+ input: {
282
+ param: {
283
+ orgId: string;
284
+ projectId: string;
285
+ };
286
+ } & {
287
+ json: {
288
+ environment?: "production" | "sandbox" | undefined;
289
+ name?: string | undefined;
290
+ scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
291
+ };
292
+ };
293
+ } | {
294
+ output: {
295
+ error: {
296
+ code: "forbidden";
297
+ details?: readonly Response.error.Detail[] | undefined;
298
+ message: string;
299
+ };
300
+ requestId: string;
301
+ };
302
+ outputFormat: "json";
303
+ status: 403;
304
+ input: {
305
+ param: {
306
+ orgId: string;
307
+ projectId: string;
308
+ };
309
+ } & {
310
+ json: {
311
+ environment?: "production" | "sandbox" | undefined;
312
+ name?: string | undefined;
313
+ scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
314
+ };
315
+ };
316
+ } | {
317
+ output: {
318
+ error: {
319
+ code: "organization_not_found" | "project_not_found";
320
+ details?: readonly Response.error.Detail[] | undefined;
321
+ message: string;
322
+ };
323
+ requestId: string;
324
+ };
325
+ outputFormat: "json";
326
+ status: 404;
327
+ input: {
328
+ param: {
329
+ orgId: string;
330
+ projectId: string;
331
+ };
332
+ } & {
333
+ json: {
334
+ environment?: "production" | "sandbox" | undefined;
335
+ name?: string | undefined;
336
+ scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
337
+ };
338
+ };
339
+ } | {
340
+ output: {
341
+ error: {
342
+ code: "api_keys_not_enabled";
343
+ details?: readonly Response.error.Detail[] | undefined;
344
+ message: string;
345
+ };
346
+ requestId: string;
347
+ };
348
+ outputFormat: "json";
349
+ status: 404;
350
+ input: {
351
+ param: {
352
+ orgId: string;
353
+ projectId: string;
354
+ };
355
+ } & {
356
+ json: {
357
+ environment?: "production" | "sandbox" | undefined;
358
+ name?: string | undefined;
359
+ scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
360
+ };
361
+ };
362
+ } | {
363
+ output: {
364
+ error: {
365
+ code: "scope_not_issuable";
366
+ details?: readonly Response.error.Detail[] | undefined;
367
+ message: string;
368
+ };
369
+ requestId: string;
370
+ };
371
+ outputFormat: "json";
372
+ status: 403;
373
+ input: {
374
+ param: {
375
+ orgId: string;
376
+ projectId: string;
377
+ };
378
+ } & {
379
+ json: {
380
+ environment?: "production" | "sandbox" | undefined;
381
+ name?: string | undefined;
382
+ scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
383
+ };
384
+ };
385
+ } | {
386
+ output: {
387
+ createdAt: string;
388
+ createdBy?: string | undefined;
389
+ environment: "production" | "sandbox";
390
+ expiresAt?: string | undefined;
391
+ id: string;
392
+ name?: string | undefined;
393
+ orgId: string;
394
+ projectId?: string | undefined;
395
+ scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
396
+ tokenLast4: string;
397
+ token: string;
398
+ };
399
+ outputFormat: "json";
400
+ status: 200;
401
+ input: {
402
+ param: {
403
+ orgId: string;
404
+ projectId: string;
405
+ };
406
+ } & {
407
+ json: {
408
+ environment?: "production" | "sandbox" | undefined;
409
+ name?: string | undefined;
410
+ scopes?: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[] | undefined;
411
+ };
412
+ };
413
+ };
414
+ };
415
+ } & {
416
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
417
+ $get: {
418
+ output: {
419
+ error: {
420
+ code: "api_key_malformed";
421
+ details?: readonly Response.error.Detail[] | undefined;
422
+ message: string;
423
+ };
424
+ requestId: string;
425
+ };
426
+ outputFormat: "json";
427
+ status: 400;
428
+ input: {
429
+ param: {
430
+ orgId: string;
431
+ projectId: string;
432
+ };
433
+ } & {
434
+ query?: {
435
+ environment?: string | string[];
436
+ } | undefined;
437
+ };
438
+ } | {
439
+ output: {
440
+ error: {
441
+ code: "api_key_invalid" | "api_key_missing";
442
+ details?: readonly Response.error.Detail[] | undefined;
443
+ message: string;
444
+ };
445
+ requestId: string;
446
+ };
447
+ outputFormat: "json";
448
+ status: 401;
449
+ input: {
450
+ param: {
451
+ orgId: string;
452
+ projectId: string;
453
+ };
454
+ } & {
455
+ query?: {
456
+ environment?: string | string[];
457
+ } | undefined;
458
+ };
459
+ } | {
460
+ output: {
461
+ error: {
462
+ code: "query_invalid";
463
+ details?: readonly Response.error.Detail[] | undefined;
464
+ message: string;
465
+ };
466
+ requestId: string;
467
+ };
468
+ outputFormat: "json";
469
+ status: 400;
470
+ input: {
471
+ param: {
472
+ orgId: string;
473
+ projectId: string;
474
+ };
475
+ } & {
476
+ query?: {
477
+ environment?: string | string[];
478
+ } | undefined;
479
+ };
480
+ } | {
481
+ output: {
482
+ error: {
483
+ code: "upstream_error";
484
+ details?: readonly Response.error.Detail[] | undefined;
485
+ message: string;
486
+ };
487
+ requestId: string;
488
+ };
489
+ outputFormat: "json";
490
+ status: 502;
491
+ input: {
492
+ param: {
493
+ orgId: string;
494
+ projectId: string;
495
+ };
496
+ } & {
497
+ query?: {
498
+ environment?: string | string[];
499
+ } | undefined;
500
+ };
501
+ } | {
502
+ output: {
503
+ error: {
504
+ code: "param_invalid";
505
+ details?: readonly Response.error.Detail[] | undefined;
506
+ message: string;
507
+ };
508
+ requestId: string;
509
+ };
510
+ outputFormat: "json";
511
+ status: 400;
512
+ input: {
513
+ param: {
514
+ orgId: string;
515
+ projectId: string;
516
+ };
517
+ } & {
518
+ query?: {
519
+ environment?: string | string[];
520
+ } | undefined;
521
+ };
522
+ } | {
523
+ output: {
524
+ error: {
525
+ code: "forbidden";
526
+ details?: readonly Response.error.Detail[] | undefined;
527
+ message: string;
528
+ };
529
+ requestId: string;
530
+ };
531
+ outputFormat: "json";
532
+ status: 403;
533
+ input: {
534
+ param: {
535
+ orgId: string;
536
+ projectId: string;
537
+ };
538
+ } & {
539
+ query?: {
540
+ environment?: string | string[];
541
+ } | undefined;
542
+ };
543
+ } | {
544
+ output: {
545
+ error: {
546
+ code: "organization_not_found" | "project_not_found";
547
+ details?: readonly Response.error.Detail[] | undefined;
548
+ message: string;
549
+ };
550
+ requestId: string;
551
+ };
552
+ outputFormat: "json";
553
+ status: 404;
554
+ input: {
555
+ param: {
556
+ orgId: string;
557
+ projectId: string;
558
+ };
559
+ } & {
560
+ query?: {
561
+ environment?: string | string[];
562
+ } | undefined;
563
+ };
564
+ } | {
565
+ output: {
566
+ error: {
567
+ code: "api_keys_not_enabled";
568
+ details?: readonly Response.error.Detail[] | undefined;
569
+ message: string;
570
+ };
571
+ requestId: string;
572
+ };
573
+ outputFormat: "json";
574
+ status: 404;
575
+ input: {
576
+ param: {
577
+ orgId: string;
578
+ projectId: string;
579
+ };
580
+ } & {
581
+ query?: {
582
+ environment?: string | string[];
583
+ } | undefined;
584
+ };
585
+ } | {
586
+ output: {
587
+ data: {
588
+ createdAt: string;
589
+ createdBy?: string | undefined;
590
+ environment: "production" | "sandbox";
591
+ expiresAt?: string | undefined;
592
+ id: string;
593
+ name?: string | undefined;
594
+ orgId: string;
595
+ projectId?: string | undefined;
596
+ scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
597
+ tokenLast4: string;
598
+ }[];
599
+ };
600
+ outputFormat: "json";
601
+ status: 200;
602
+ input: {
603
+ param: {
604
+ orgId: string;
605
+ projectId: string;
606
+ };
607
+ } & {
608
+ query?: {
609
+ environment?: string | string[];
610
+ } | undefined;
611
+ };
612
+ };
613
+ };
614
+ } & {
615
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
616
+ $get: {
617
+ output: {
618
+ error: {
619
+ code: "api_key_malformed";
620
+ details?: readonly Response.error.Detail[] | undefined;
621
+ message: string;
622
+ };
623
+ requestId: string;
624
+ };
625
+ outputFormat: "json";
626
+ status: 400;
627
+ input: {
628
+ param: {
629
+ orgId: string;
630
+ };
631
+ } & {
632
+ query?: {
633
+ environment?: string | string[];
634
+ } | undefined;
635
+ };
636
+ } | {
637
+ output: {
638
+ error: {
639
+ code: "api_key_invalid" | "api_key_missing";
640
+ details?: readonly Response.error.Detail[] | undefined;
641
+ message: string;
642
+ };
643
+ requestId: string;
644
+ };
645
+ outputFormat: "json";
646
+ status: 401;
647
+ input: {
648
+ param: {
649
+ orgId: string;
650
+ };
651
+ } & {
652
+ query?: {
653
+ environment?: string | string[];
654
+ } | undefined;
655
+ };
656
+ } | {
657
+ output: {
658
+ error: {
659
+ code: "query_invalid";
660
+ details?: readonly Response.error.Detail[] | undefined;
661
+ message: string;
662
+ };
663
+ requestId: string;
664
+ };
665
+ outputFormat: "json";
666
+ status: 400;
667
+ input: {
668
+ param: {
669
+ orgId: string;
670
+ };
671
+ } & {
672
+ query?: {
673
+ environment?: string | string[];
674
+ } | undefined;
675
+ };
676
+ } | {
677
+ output: {
678
+ error: {
679
+ code: "upstream_error";
680
+ details?: readonly Response.error.Detail[] | undefined;
681
+ message: string;
682
+ };
683
+ requestId: string;
684
+ };
685
+ outputFormat: "json";
686
+ status: 502;
687
+ input: {
688
+ param: {
689
+ orgId: string;
690
+ };
691
+ } & {
692
+ query?: {
693
+ environment?: string | string[];
694
+ } | undefined;
695
+ };
696
+ } | {
697
+ output: {
698
+ error: {
699
+ code: "param_invalid";
700
+ details?: readonly Response.error.Detail[] | undefined;
701
+ message: string;
702
+ };
703
+ requestId: string;
704
+ };
705
+ outputFormat: "json";
706
+ status: 400;
707
+ input: {
708
+ param: {
709
+ orgId: string;
710
+ };
711
+ } & {
712
+ query?: {
713
+ environment?: string | string[];
714
+ } | undefined;
715
+ };
716
+ } | {
717
+ output: {
718
+ error: {
719
+ code: "forbidden";
720
+ details?: readonly Response.error.Detail[] | undefined;
721
+ message: string;
722
+ };
723
+ requestId: string;
724
+ };
725
+ outputFormat: "json";
726
+ status: 403;
727
+ input: {
728
+ param: {
729
+ orgId: string;
730
+ };
731
+ } & {
732
+ query?: {
733
+ environment?: string | string[];
734
+ } | undefined;
735
+ };
736
+ } | {
737
+ output: {
738
+ error: {
739
+ code: "api_keys_not_enabled";
740
+ details?: readonly Response.error.Detail[] | undefined;
741
+ message: string;
742
+ };
743
+ requestId: string;
744
+ };
745
+ outputFormat: "json";
746
+ status: 404;
747
+ input: {
748
+ param: {
749
+ orgId: string;
750
+ };
751
+ } & {
752
+ query?: {
753
+ environment?: string | string[];
754
+ } | undefined;
755
+ };
756
+ } | {
757
+ output: {
758
+ error: {
759
+ code: "organization_not_found";
760
+ details?: readonly Response.error.Detail[] | undefined;
761
+ message: string;
762
+ };
763
+ requestId: string;
764
+ };
765
+ outputFormat: "json";
766
+ status: 404;
767
+ input: {
768
+ param: {
769
+ orgId: string;
770
+ };
771
+ } & {
772
+ query?: {
773
+ environment?: string | string[];
774
+ } | undefined;
775
+ };
776
+ } | {
777
+ output: {
778
+ data: {
779
+ createdAt: string;
780
+ createdBy?: string | undefined;
781
+ environment: "production" | "sandbox";
782
+ expiresAt?: string | undefined;
783
+ id: string;
784
+ name?: string | undefined;
785
+ orgId: string;
786
+ projectId?: string | undefined;
787
+ scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
788
+ tokenLast4: string;
789
+ }[];
790
+ };
791
+ outputFormat: "json";
792
+ status: 200;
793
+ input: {
794
+ param: {
795
+ orgId: string;
796
+ };
797
+ } & {
798
+ query?: {
799
+ environment?: string | string[];
800
+ } | undefined;
801
+ };
802
+ };
803
+ };
804
+ } & {
805
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
806
+ $delete: {
807
+ output: {
808
+ error: {
809
+ code: "api_key_malformed";
810
+ details?: readonly Response.error.Detail[] | undefined;
811
+ message: string;
812
+ };
813
+ requestId: string;
814
+ };
815
+ outputFormat: "json";
816
+ status: 400;
817
+ input: {
818
+ param: {
819
+ keyId: string;
820
+ orgId: string;
821
+ projectId: string;
822
+ };
823
+ };
824
+ } | {
825
+ output: {
826
+ error: {
827
+ code: "api_key_invalid" | "api_key_missing";
828
+ details?: readonly Response.error.Detail[] | undefined;
829
+ message: string;
830
+ };
831
+ requestId: string;
832
+ };
833
+ outputFormat: "json";
834
+ status: 401;
835
+ input: {
836
+ param: {
837
+ keyId: string;
838
+ orgId: string;
839
+ projectId: string;
840
+ };
841
+ };
842
+ } | {
843
+ output: {
844
+ error: {
845
+ code: "upstream_error";
846
+ details?: readonly Response.error.Detail[] | undefined;
847
+ message: string;
848
+ };
849
+ requestId: string;
850
+ };
851
+ outputFormat: "json";
852
+ status: 502;
853
+ input: {
854
+ param: {
855
+ keyId: string;
856
+ orgId: string;
857
+ projectId: string;
858
+ };
859
+ };
860
+ } | {
861
+ output: {
862
+ error: {
863
+ code: "param_invalid";
864
+ details?: readonly Response.error.Detail[] | undefined;
865
+ message: string;
866
+ };
867
+ requestId: string;
868
+ };
869
+ outputFormat: "json";
870
+ status: 400;
871
+ input: {
872
+ param: {
873
+ keyId: string;
874
+ orgId: string;
875
+ projectId: string;
876
+ };
877
+ };
878
+ } | {
879
+ output: {
880
+ error: {
881
+ code: "forbidden";
882
+ details?: readonly Response.error.Detail[] | undefined;
883
+ message: string;
884
+ };
885
+ requestId: string;
886
+ };
887
+ outputFormat: "json";
888
+ status: 403;
889
+ input: {
890
+ param: {
891
+ keyId: string;
892
+ orgId: string;
893
+ projectId: string;
894
+ };
895
+ };
896
+ } | {
897
+ output: {
898
+ error: {
899
+ code: "organization_not_found" | "project_not_found";
900
+ details?: readonly Response.error.Detail[] | undefined;
901
+ message: string;
902
+ };
903
+ requestId: string;
904
+ };
905
+ outputFormat: "json";
906
+ status: 404;
907
+ input: {
908
+ param: {
909
+ keyId: string;
910
+ orgId: string;
911
+ projectId: string;
912
+ };
913
+ };
914
+ } | {
915
+ output: {
916
+ error: {
917
+ code: "api_keys_not_enabled";
918
+ details?: readonly Response.error.Detail[] | undefined;
919
+ message: string;
920
+ };
921
+ requestId: string;
922
+ };
923
+ outputFormat: "json";
924
+ status: 404;
925
+ input: {
926
+ param: {
927
+ keyId: string;
928
+ orgId: string;
929
+ projectId: string;
930
+ };
931
+ };
932
+ } | {
933
+ output: {
934
+ error: {
935
+ code: "api_key_not_found";
936
+ details?: readonly Response.error.Detail[] | undefined;
937
+ message: string;
938
+ };
939
+ requestId: string;
940
+ };
941
+ outputFormat: "json";
942
+ status: 404;
943
+ input: {
944
+ param: {
945
+ keyId: string;
946
+ orgId: string;
947
+ projectId: string;
948
+ };
949
+ };
950
+ } | {
951
+ output: {
952
+ id: string;
953
+ };
954
+ outputFormat: "json";
955
+ status: 200;
956
+ input: {
957
+ param: {
958
+ keyId: string;
959
+ orgId: string;
960
+ projectId: string;
961
+ };
962
+ };
963
+ };
964
+ };
965
+ }, "/", "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}">;
966
+ export declare namespace apiKeys {
967
+ /** Options for creating the API-keys resource. */
968
+ type Options = {
969
+ /** Whether the surface is enabled (a KV state store is configured); disabled routes are hidden and return `404`. */
970
+ enabled?: boolean | undefined;
971
+ };
972
+ }
973
+ //# sourceMappingURL=api-keys.d.ts.map