tapimo 0.0.2 → 0.2.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 (517) hide show
  1. package/README.md +38 -16
  2. package/dist/ApiKey.d.ts +14 -11
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +11 -12
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +207 -0
  7. package/dist/ApiKeys.d.ts.map +1 -0
  8. package/dist/ApiKeys.js +282 -0
  9. package/dist/ApiKeys.js.map +1 -0
  10. package/dist/App.d.ts +6771 -3819
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +145 -317
  13. package/dist/App.js.map +1 -1
  14. package/dist/Handler.d.ts +86 -0
  15. package/dist/Handler.d.ts.map +1 -0
  16. package/dist/Handler.js +83 -0
  17. package/dist/Handler.js.map +1 -0
  18. package/dist/Scope.d.ts +14 -4
  19. package/dist/Scope.d.ts.map +1 -1
  20. package/dist/Scope.js +16 -4
  21. package/dist/Scope.js.map +1 -1
  22. package/dist/Webhooks.d.ts +5 -7
  23. package/dist/Webhooks.d.ts.map +1 -1
  24. package/dist/Webhooks.js +11 -4
  25. package/dist/Webhooks.js.map +1 -1
  26. package/dist/admin/Access.d.ts +1 -3
  27. package/dist/admin/Access.d.ts.map +1 -1
  28. package/dist/admin/Access.js +1 -3
  29. package/dist/admin/Access.js.map +1 -1
  30. package/dist/admin/App.d.ts +167 -205
  31. package/dist/admin/App.d.ts.map +1 -1
  32. package/dist/admin/App.js +2 -4
  33. package/dist/admin/App.js.map +1 -1
  34. package/dist/admin/apps/api-keys.d.ts +105 -5
  35. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  36. package/dist/admin/apps/api-keys.js +75 -9
  37. package/dist/admin/apps/api-keys.js.map +1 -1
  38. package/dist/admin/apps/scopes.d.ts +6 -0
  39. package/dist/admin/apps/scopes.d.ts.map +1 -1
  40. package/dist/admin/apps/verified-tokens.d.ts +35 -149
  41. package/dist/admin/apps/verified-tokens.d.ts.map +1 -1
  42. package/dist/admin/apps/verified-tokens.js +18 -39
  43. package/dist/admin/apps/verified-tokens.js.map +1 -1
  44. package/dist/admin/ui.generated.d.ts +1 -1
  45. package/dist/admin/ui.generated.js +1 -1
  46. package/dist/apps/data/App.d.ts +19176 -0
  47. package/dist/apps/data/App.d.ts.map +1 -0
  48. package/dist/apps/data/App.js +236 -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} +49 -49
  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} +183 -183
  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} +460 -460
  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} +94 -94
  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/{indexer.d.ts → data/routes/indexer.d.ts} +4 -4
  83. package/dist/apps/data/routes/indexer.d.ts.map +1 -0
  84. package/dist/apps/{indexer.js → data/routes/indexer.js} +13 -9
  85. package/dist/apps/data/routes/indexer.js.map +1 -0
  86. package/dist/apps/{receipts.d.ts → data/routes/receipts.d.ts} +6 -6
  87. package/dist/apps/data/routes/receipts.d.ts.map +1 -0
  88. package/dist/apps/{receipts.js → data/routes/receipts.js} +12 -12
  89. package/dist/apps/data/routes/receipts.js.map +1 -0
  90. package/dist/apps/{rpc.d.ts → data/routes/rpc.d.ts} +4 -4
  91. package/dist/apps/data/routes/rpc.d.ts.map +1 -0
  92. package/dist/apps/{rpc.js → data/routes/rpc.js} +6 -6
  93. package/dist/apps/data/routes/rpc.js.map +1 -0
  94. package/dist/apps/{tokenlist.d.ts → data/routes/tokenlist.d.ts} +4 -4
  95. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -0
  96. package/dist/apps/{tokenlist.js → data/routes/tokenlist.js} +8 -8
  97. package/dist/apps/data/routes/tokenlist.js.map +1 -0
  98. package/dist/apps/{tokens.d.ts → data/routes/tokens.d.ts} +11 -11
  99. package/dist/apps/data/routes/tokens.d.ts.map +1 -0
  100. package/dist/apps/{tokens.js → data/routes/tokens.js} +19 -19
  101. package/dist/apps/data/routes/tokens.js.map +1 -0
  102. package/dist/apps/{transactions.d.ts → data/routes/transactions.d.ts} +288 -288
  103. package/dist/apps/data/routes/transactions.d.ts.map +1 -0
  104. package/dist/apps/{transactions.js → data/routes/transactions.js} +13 -13
  105. package/dist/apps/data/routes/transactions.js.map +1 -0
  106. package/dist/apps/{transfers.d.ts → data/routes/transfers.d.ts} +35 -35
  107. package/dist/apps/data/routes/transfers.d.ts.map +1 -0
  108. package/dist/apps/{transfers.js → data/routes/transfers.js} +13 -13
  109. package/dist/apps/data/routes/transfers.js.map +1 -0
  110. package/dist/apps/{verified-tokens.d.ts → data/routes/verified-tokens.d.ts} +42 -42
  111. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -0
  112. package/dist/apps/{verified-tokens.js → data/routes/verified-tokens.js} +9 -9
  113. package/dist/apps/data/routes/verified-tokens.js.map +1 -0
  114. package/dist/apps/{webhooks.d.ts → data/routes/webhooks.d.ts} +66 -63
  115. package/dist/apps/{webhooks.d.ts.map → data/routes/webhooks.d.ts.map} +1 -1
  116. package/dist/apps/{webhooks.js → data/routes/webhooks.js} +67 -59
  117. package/dist/apps/data/routes/webhooks.js.map +1 -0
  118. package/dist/apps/docs/App.d.ts +27 -0
  119. package/dist/apps/docs/App.d.ts.map +1 -0
  120. package/dist/apps/docs/App.js +122 -0
  121. package/dist/apps/docs/App.js.map +1 -0
  122. package/dist/{internal/OpenApi.fonts.d.ts → apps/docs/fonts.d.ts} +1 -1
  123. package/dist/apps/docs/fonts.d.ts.map +1 -0
  124. package/dist/{internal/OpenApi.fonts.js → apps/docs/fonts.js} +1 -1
  125. package/dist/apps/docs/fonts.js.map +1 -0
  126. package/dist/apps/docs/index.d.ts +2 -0
  127. package/dist/apps/docs/index.d.ts.map +1 -0
  128. package/dist/apps/docs/index.js +2 -0
  129. package/dist/apps/docs/index.js.map +1 -0
  130. package/dist/{internal/OpenApi.logo.d.ts → apps/docs/logo.d.ts} +1 -1
  131. package/dist/apps/docs/logo.d.ts.map +1 -0
  132. package/dist/{internal/OpenApi.logo.js → apps/docs/logo.js} +1 -1
  133. package/dist/apps/docs/logo.js.map +1 -0
  134. package/dist/apps/index.d.ts +4 -0
  135. package/dist/apps/index.d.ts.map +1 -0
  136. package/dist/apps/index.js +4 -0
  137. package/dist/apps/index.js.map +1 -0
  138. package/dist/apps/metadata.d.ts +7 -0
  139. package/dist/apps/metadata.d.ts.map +1 -0
  140. package/dist/apps/metadata.js +15 -0
  141. package/dist/apps/metadata.js.map +1 -0
  142. package/dist/apps/platform/App.d.ts +2985 -0
  143. package/dist/apps/platform/App.d.ts.map +1 -0
  144. package/dist/apps/platform/App.js +74 -0
  145. package/dist/apps/platform/App.js.map +1 -0
  146. package/dist/apps/platform/index.d.ts +2 -0
  147. package/dist/apps/platform/index.d.ts.map +1 -0
  148. package/dist/apps/platform/index.js +2 -0
  149. package/dist/apps/platform/index.js.map +1 -0
  150. package/dist/apps/platform/routes/api-keys.d.ts +681 -0
  151. package/dist/apps/platform/routes/api-keys.d.ts.map +1 -0
  152. package/dist/apps/platform/routes/api-keys.js +328 -0
  153. package/dist/apps/platform/routes/api-keys.js.map +1 -0
  154. package/dist/apps/platform/routes/invitations.d.ts +733 -0
  155. package/dist/apps/platform/routes/invitations.d.ts.map +1 -0
  156. package/dist/apps/platform/routes/invitations.js +413 -0
  157. package/dist/apps/platform/routes/invitations.js.map +1 -0
  158. package/dist/apps/platform/routes/me.d.ts +95 -0
  159. package/dist/apps/platform/routes/me.d.ts.map +1 -0
  160. package/dist/apps/platform/routes/me.js +81 -0
  161. package/dist/apps/platform/routes/me.js.map +1 -0
  162. package/dist/apps/platform/routes/members.d.ts +554 -0
  163. package/dist/apps/platform/routes/members.d.ts.map +1 -0
  164. package/dist/apps/platform/routes/members.js +251 -0
  165. package/dist/apps/platform/routes/members.js.map +1 -0
  166. package/dist/apps/platform/routes/orgs.d.ts +582 -0
  167. package/dist/apps/platform/routes/orgs.d.ts.map +1 -0
  168. package/dist/apps/platform/routes/orgs.js +265 -0
  169. package/dist/apps/platform/routes/orgs.js.map +1 -0
  170. package/dist/apps/platform/routes/projects.d.ts +740 -0
  171. package/dist/apps/platform/routes/projects.d.ts.map +1 -0
  172. package/dist/apps/platform/routes/projects.js +286 -0
  173. package/dist/apps/platform/routes/projects.js.map +1 -0
  174. package/dist/apps/relay/App.d.ts +41 -0
  175. package/dist/apps/relay/App.d.ts.map +1 -0
  176. package/dist/apps/relay/App.js +103 -0
  177. package/dist/apps/relay/App.js.map +1 -0
  178. package/dist/apps/relay/Sponsorships.d.ts +107 -0
  179. package/dist/apps/relay/Sponsorships.d.ts.map +1 -0
  180. package/dist/apps/relay/Sponsorships.js +193 -0
  181. package/dist/apps/relay/Sponsorships.js.map +1 -0
  182. package/dist/apps/relay/index.d.ts +3 -0
  183. package/dist/apps/relay/index.d.ts.map +1 -0
  184. package/dist/apps/relay/index.js +3 -0
  185. package/dist/apps/relay/index.js.map +1 -0
  186. package/dist/{Cli.d.ts → cli/Cli.d.ts} +13 -2
  187. package/dist/cli/Cli.d.ts.map +1 -0
  188. package/dist/cli/Cli.js +19 -0
  189. package/dist/cli/Cli.js.map +1 -0
  190. package/dist/cli/bin.d.ts +3 -0
  191. package/dist/cli/bin.d.ts.map +1 -0
  192. package/dist/cli/bin.js +4 -0
  193. package/dist/cli/bin.js.map +1 -0
  194. package/dist/cli/commands/admin.d.ts +15 -0
  195. package/dist/cli/commands/admin.d.ts.map +1 -0
  196. package/dist/cli/commands/admin.js +60 -0
  197. package/dist/cli/commands/admin.js.map +1 -0
  198. package/dist/cloudflare.d.ts +7 -0
  199. package/dist/cloudflare.d.ts.map +1 -1
  200. package/dist/cloudflare.js +9 -0
  201. package/dist/cloudflare.js.map +1 -1
  202. package/dist/db/Db.d.ts +113 -0
  203. package/dist/db/Db.d.ts.map +1 -0
  204. package/dist/db/Db.js +402 -0
  205. package/dist/db/Db.js.map +1 -0
  206. package/dist/db/Schema.d.ts +168 -0
  207. package/dist/db/Schema.d.ts.map +1 -0
  208. package/dist/db/Schema.js +229 -0
  209. package/dist/db/Schema.js.map +1 -0
  210. package/dist/db/tables/invitations.d.ts +84 -0
  211. package/dist/db/tables/invitations.d.ts.map +1 -0
  212. package/dist/db/tables/invitations.js +165 -0
  213. package/dist/db/tables/invitations.js.map +1 -0
  214. package/dist/db/tables/memberships.d.ts +108 -0
  215. package/dist/db/tables/memberships.d.ts.map +1 -0
  216. package/dist/db/tables/memberships.js +153 -0
  217. package/dist/db/tables/memberships.js.map +1 -0
  218. package/dist/db/tables/organizations.d.ts +123 -0
  219. package/dist/db/tables/organizations.d.ts.map +1 -0
  220. package/dist/db/tables/organizations.js +170 -0
  221. package/dist/db/tables/organizations.js.map +1 -0
  222. package/dist/db/tables/projects.d.ts +65 -0
  223. package/dist/db/tables/projects.d.ts.map +1 -0
  224. package/dist/db/tables/projects.js +75 -0
  225. package/dist/db/tables/projects.js.map +1 -0
  226. package/dist/db/tables/sponsoredTransactions.d.ts +120 -0
  227. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -0
  228. package/dist/db/tables/sponsoredTransactions.js +161 -0
  229. package/dist/db/tables/sponsoredTransactions.js.map +1 -0
  230. package/dist/db/tables/users.d.ts +48 -0
  231. package/dist/db/tables/users.d.ts.map +1 -0
  232. package/dist/db/tables/users.js +65 -0
  233. package/dist/db/tables/users.js.map +1 -0
  234. package/dist/db/tables/verifiedTokens.d.ts +53 -0
  235. package/dist/db/tables/verifiedTokens.d.ts.map +1 -0
  236. package/dist/db/tables/verifiedTokens.js +74 -0
  237. package/dist/db/tables/verifiedTokens.js.map +1 -0
  238. package/dist/db/tables/webhookDeliveries.d.ts +71 -0
  239. package/dist/db/tables/webhookDeliveries.d.ts.map +1 -0
  240. package/dist/db/tables/webhookDeliveries.js +119 -0
  241. package/dist/db/tables/webhookDeliveries.js.map +1 -0
  242. package/dist/db/tables/webhookSubscriptions.d.ts +158 -0
  243. package/dist/db/tables/webhookSubscriptions.d.ts.map +1 -0
  244. package/dist/db/tables/webhookSubscriptions.js +272 -0
  245. package/dist/db/tables/webhookSubscriptions.js.map +1 -0
  246. package/dist/handlers/internal/executionError.d.ts +25 -0
  247. package/dist/handlers/internal/executionError.d.ts.map +1 -0
  248. package/dist/handlers/internal/executionError.js +186 -0
  249. package/dist/handlers/internal/executionError.js.map +1 -0
  250. package/dist/handlers/internal/multisig.d.ts +233 -0
  251. package/dist/handlers/internal/multisig.d.ts.map +1 -0
  252. package/dist/handlers/internal/multisig.js +542 -0
  253. package/dist/handlers/internal/multisig.js.map +1 -0
  254. package/dist/handlers/internal/requestListener.d.ts +124 -0
  255. package/dist/handlers/internal/requestListener.d.ts.map +1 -0
  256. package/dist/handlers/internal/requestListener.js +173 -0
  257. package/dist/handlers/internal/requestListener.js.map +1 -0
  258. package/dist/handlers/internal/sponsorship.d.ts +113 -0
  259. package/dist/handlers/internal/sponsorship.d.ts.map +1 -0
  260. package/dist/handlers/internal/sponsorship.js +128 -0
  261. package/dist/handlers/internal/sponsorship.js.map +1 -0
  262. package/dist/handlers/internal/types.d.ts +284 -0
  263. package/dist/handlers/internal/types.d.ts.map +1 -0
  264. package/dist/handlers/internal/types.js +2 -0
  265. package/dist/handlers/internal/types.js.map +1 -0
  266. package/dist/handlers/internal/utils.d.ts +34 -0
  267. package/dist/handlers/internal/utils.d.ts.map +1 -0
  268. package/dist/handlers/internal/utils.js +131 -0
  269. package/dist/handlers/internal/utils.js.map +1 -0
  270. package/dist/handlers/relay.d.ts +123 -0
  271. package/dist/handlers/relay.d.ts.map +1 -0
  272. package/dist/handlers/relay.js +1278 -0
  273. package/dist/handlers/relay.js.map +1 -0
  274. package/dist/index.d.ts +4 -2
  275. package/dist/index.d.ts.map +1 -1
  276. package/dist/index.js +4 -2
  277. package/dist/index.js.map +1 -1
  278. package/dist/internal/Auth.d.ts +224 -16
  279. package/dist/internal/Auth.d.ts.map +1 -1
  280. package/dist/internal/Auth.js +572 -33
  281. package/dist/internal/Auth.js.map +1 -1
  282. package/dist/internal/Log.d.ts +7 -3
  283. package/dist/internal/Log.d.ts.map +1 -1
  284. package/dist/internal/Log.js +4 -0
  285. package/dist/internal/Log.js.map +1 -1
  286. package/dist/internal/OpenApi.d.ts +0 -19
  287. package/dist/internal/OpenApi.d.ts.map +1 -1
  288. package/dist/internal/OpenApi.js +0 -57
  289. package/dist/internal/OpenApi.js.map +1 -1
  290. package/dist/internal/RpcSchema.d.ts +10 -0
  291. package/dist/internal/RpcSchema.d.ts.map +1 -0
  292. package/dist/internal/RpcSchema.js +2 -0
  293. package/dist/internal/RpcSchema.js.map +1 -0
  294. package/dist/internal/Store.d.ts +49 -4
  295. package/dist/internal/Store.d.ts.map +1 -1
  296. package/dist/internal/Store.js +81 -5
  297. package/dist/internal/Store.js.map +1 -1
  298. package/dist/internal/VerifiedTokens.d.ts +15 -34
  299. package/dist/internal/VerifiedTokens.d.ts.map +1 -1
  300. package/dist/internal/VerifiedTokens.js +115 -159
  301. package/dist/internal/VerifiedTokens.js.map +1 -1
  302. package/dist/internal/Viem.d.ts +84 -0
  303. package/dist/internal/Viem.d.ts.map +1 -1
  304. package/dist/internal/Webhooks.d.ts +50 -36
  305. package/dist/internal/Webhooks.d.ts.map +1 -1
  306. package/dist/internal/Webhooks.js +92 -205
  307. package/dist/internal/Webhooks.js.map +1 -1
  308. package/package.json +37 -6
  309. package/src/ApiKey.test.ts +3 -3
  310. package/src/ApiKey.ts +11 -12
  311. package/src/ApiKeys.test.ts +278 -0
  312. package/src/ApiKeys.ts +358 -0
  313. package/src/App.test-d.ts +1 -1
  314. package/src/App.test.ts +40508 -19083
  315. package/src/App.ts +239 -416
  316. package/src/Client.test-d.ts +307 -16
  317. package/src/Handler.ts +154 -0
  318. package/src/Scope.ts +17 -4
  319. package/src/Webhooks.test.ts +8 -7
  320. package/src/Webhooks.ts +13 -7
  321. package/src/admin/Access.ts +1 -3
  322. package/src/admin/App.ts +19 -24
  323. package/src/admin/apps/api-keys.test.ts +70 -18
  324. package/src/admin/apps/api-keys.ts +92 -9
  325. package/src/admin/apps/scopes.test.ts +8 -0
  326. package/src/admin/apps/verified-tokens.test.ts +3 -30
  327. package/src/admin/apps/verified-tokens.ts +18 -37
  328. package/src/admin/ui.generated.ts +1 -1
  329. package/src/apps/composition.test.ts +66 -0
  330. package/src/apps/data/App.ts +295 -0
  331. package/src/apps/data/index.ts +2 -0
  332. package/src/apps/{activities.test.ts → data/routes/activities.test.ts} +3 -3
  333. package/src/apps/{activities.ts → data/routes/activities.ts} +15 -15
  334. package/src/apps/{addresses.ts → data/routes/addresses.ts} +6 -6
  335. package/src/apps/{balances.test.ts → data/routes/balances.test.ts} +6 -5
  336. package/src/apps/{balances.ts → data/routes/balances.ts} +46 -12
  337. package/src/apps/{blocks.test.ts → data/routes/blocks.test.ts} +4 -4
  338. package/src/apps/{blocks.ts → data/routes/blocks.ts} +14 -14
  339. package/src/apps/{coingecko.test.ts → data/routes/coingecko.test.ts} +2 -2
  340. package/src/apps/{coingecko.ts → data/routes/coingecko.ts} +14 -14
  341. package/src/apps/{exchanges.test.ts → data/routes/exchanges.test.ts} +2 -2
  342. package/src/apps/{exchanges.ts → data/routes/exchanges.ts} +20 -20
  343. package/src/apps/{fee-amm.test.ts → data/routes/fee-amm.test.ts} +3 -3
  344. package/src/apps/{fee-amm.ts → data/routes/fee-amm.ts} +18 -18
  345. package/src/apps/{indexer.test.ts → data/routes/indexer.test.ts} +27 -6
  346. package/src/apps/{indexer.ts → data/routes/indexer.ts} +13 -10
  347. package/src/apps/{receipts.test.ts → data/routes/receipts.test.ts} +4 -4
  348. package/src/apps/{receipts.ts → data/routes/receipts.ts} +13 -13
  349. package/src/apps/{rpc.test.ts → data/routes/rpc.test.ts} +142 -13
  350. package/src/apps/{rpc.ts → data/routes/rpc.ts} +7 -7
  351. package/src/apps/{tokenlist.test.ts → data/routes/tokenlist.test.ts} +8 -10
  352. package/src/apps/{tokenlist.ts → data/routes/tokenlist.ts} +9 -9
  353. package/src/apps/{tokens.test.ts → data/routes/tokens.test.ts} +6 -5
  354. package/src/apps/{tokens.ts → data/routes/tokens.ts} +20 -20
  355. package/src/apps/{transactions.test.ts → data/routes/transactions.test.ts} +4 -4
  356. package/src/apps/{transactions.ts → data/routes/transactions.ts} +15 -15
  357. package/src/apps/{transfers.test.ts → data/routes/transfers.test.ts} +3 -3
  358. package/src/apps/{transfers.ts → data/routes/transfers.ts} +15 -15
  359. package/src/apps/{verified-tokens.test.ts → data/routes/verified-tokens.test.ts} +27 -15
  360. package/src/apps/{verified-tokens.ts → data/routes/verified-tokens.ts} +10 -10
  361. package/src/apps/{webhooks.test.ts → data/routes/webhooks.test.ts} +137 -150
  362. package/src/apps/{webhooks.ts → data/routes/webhooks.ts} +83 -81
  363. package/src/apps/docs/App.ts +136 -0
  364. package/src/apps/docs/index.ts +1 -0
  365. package/src/apps/index.ts +3 -0
  366. package/src/apps/metadata.ts +23 -0
  367. package/src/apps/platform/App.ts +130 -0
  368. package/src/apps/platform/index.ts +1 -0
  369. package/src/apps/platform/routes/api-keys.test.ts +330 -0
  370. package/src/apps/platform/routes/api-keys.ts +427 -0
  371. package/src/apps/platform/routes/invitations.test.ts +361 -0
  372. package/src/apps/platform/routes/invitations.ts +519 -0
  373. package/src/apps/platform/routes/me.test.ts +121 -0
  374. package/src/apps/platform/routes/me.ts +106 -0
  375. package/src/apps/platform/routes/members.test.ts +195 -0
  376. package/src/apps/platform/routes/members.ts +313 -0
  377. package/src/apps/platform/routes/orgs.test.ts +313 -0
  378. package/src/apps/platform/routes/orgs.ts +343 -0
  379. package/src/apps/platform/routes/projects.test.ts +181 -0
  380. package/src/apps/platform/routes/projects.ts +367 -0
  381. package/src/apps/relay/App.test.ts +484 -0
  382. package/src/apps/relay/App.ts +128 -0
  383. package/src/apps/relay/Sponsorships.test.ts +375 -0
  384. package/src/apps/relay/Sponsorships.ts +305 -0
  385. package/src/apps/relay/index.ts +2 -0
  386. package/src/{Cli.test.ts → cli/Cli.test.ts} +10 -9
  387. package/src/{Cli.ts → cli/Cli.ts} +16 -9
  388. package/src/cli/bin.ts +4 -0
  389. package/src/cli/commands/admin.test.ts +71 -0
  390. package/src/cli/commands/admin.ts +60 -0
  391. package/src/cloudflare.ts +10 -0
  392. package/src/db/Db.test.ts +84 -0
  393. package/src/db/Db.ts +542 -0
  394. package/src/db/Schema.ts +301 -0
  395. package/src/db/tables/invitations.ts +198 -0
  396. package/src/db/tables/memberships.ts +208 -0
  397. package/src/db/tables/organizations.test.ts +160 -0
  398. package/src/db/tables/organizations.ts +232 -0
  399. package/src/db/tables/projects.ts +107 -0
  400. package/src/db/tables/sponsoredTransactions.test.ts +218 -0
  401. package/src/db/tables/sponsoredTransactions.ts +236 -0
  402. package/src/db/tables/users.ts +85 -0
  403. package/src/db/tables/verifiedTokens.ts +111 -0
  404. package/src/db/tables/webhookDeliveries.ts +159 -0
  405. package/src/db/tables/webhookSubscriptions.ts +358 -0
  406. package/src/handlers/internal/executionError.ts +207 -0
  407. package/src/handlers/internal/multisig.test.ts +818 -0
  408. package/src/handlers/internal/multisig.ts +823 -0
  409. package/src/handlers/internal/requestListener.ts +273 -0
  410. package/src/handlers/internal/sponsorship.ts +245 -0
  411. package/src/handlers/internal/types.ts +378 -0
  412. package/src/handlers/internal/utils.ts +153 -0
  413. package/src/handlers/relay.test.ts +2035 -0
  414. package/src/handlers/relay.ts +1623 -0
  415. package/src/index.ts +4 -2
  416. package/src/internal/Auth.test.ts +337 -21
  417. package/src/internal/Auth.ts +783 -44
  418. package/src/internal/Cursor.test.ts +3 -2
  419. package/src/internal/Log.test.ts +1 -1
  420. package/src/internal/Log.ts +11 -3
  421. package/src/internal/MetricSink.ts +1 -1
  422. package/src/internal/OpenApi.ts +0 -59
  423. package/src/internal/RateLimit.test.ts +1 -1
  424. package/src/internal/RpcSchema.ts +10 -0
  425. package/src/internal/Store.test.ts +150 -10
  426. package/src/internal/Store.ts +136 -11
  427. package/src/internal/Tidx.local.test.ts +1 -1
  428. package/src/internal/VerifiedTokens.test.ts +99 -115
  429. package/src/internal/VerifiedTokens.ts +123 -175
  430. package/src/internal/WebhookDestination.test.ts +1 -1
  431. package/src/internal/Webhooks.test.ts +111 -111
  432. package/src/internal/Webhooks.ts +103 -221
  433. package/dist/ApiKeySource.d.ts +0 -166
  434. package/dist/ApiKeySource.d.ts.map +0 -1
  435. package/dist/ApiKeySource.js +0 -234
  436. package/dist/ApiKeySource.js.map +0 -1
  437. package/dist/Cli.d.ts.map +0 -1
  438. package/dist/Cli.js +0 -13
  439. package/dist/Cli.js.map +0 -1
  440. package/dist/apps/activities.js.map +0 -1
  441. package/dist/apps/addresses.js.map +0 -1
  442. package/dist/apps/balances.d.ts.map +0 -1
  443. package/dist/apps/balances.js.map +0 -1
  444. package/dist/apps/blocks.d.ts.map +0 -1
  445. package/dist/apps/blocks.js.map +0 -1
  446. package/dist/apps/coingecko.d.ts.map +0 -1
  447. package/dist/apps/coingecko.js.map +0 -1
  448. package/dist/apps/exchanges.d.ts.map +0 -1
  449. package/dist/apps/exchanges.js.map +0 -1
  450. package/dist/apps/fee-amm.d.ts.map +0 -1
  451. package/dist/apps/fee-amm.js.map +0 -1
  452. package/dist/apps/indexer.d.ts.map +0 -1
  453. package/dist/apps/indexer.js.map +0 -1
  454. package/dist/apps/receipts.d.ts.map +0 -1
  455. package/dist/apps/receipts.js.map +0 -1
  456. package/dist/apps/rpc.d.ts.map +0 -1
  457. package/dist/apps/rpc.js.map +0 -1
  458. package/dist/apps/tokenlist.d.ts.map +0 -1
  459. package/dist/apps/tokenlist.js.map +0 -1
  460. package/dist/apps/tokens.d.ts.map +0 -1
  461. package/dist/apps/tokens.js.map +0 -1
  462. package/dist/apps/transactions.d.ts.map +0 -1
  463. package/dist/apps/transactions.js.map +0 -1
  464. package/dist/apps/transfers.d.ts.map +0 -1
  465. package/dist/apps/transfers.js.map +0 -1
  466. package/dist/apps/verified-tokens.d.ts.map +0 -1
  467. package/dist/apps/verified-tokens.js.map +0 -1
  468. package/dist/apps/webhooks.js.map +0 -1
  469. package/dist/internal/OpenApi.fonts.d.ts.map +0 -1
  470. package/dist/internal/OpenApi.fonts.js.map +0 -1
  471. package/dist/internal/OpenApi.logo.d.ts.map +0 -1
  472. package/dist/internal/OpenApi.logo.js.map +0 -1
  473. package/seeds/31318/icons/0x20c0000000000000000000000000000000000000.svg +0 -1
  474. package/seeds/31318/icons/0x20c0000000000000000000000000000000000001.svg +0 -1
  475. package/seeds/31318/icons/0x20c0000000000000000000000000000000000002.svg +0 -1
  476. package/seeds/31318/icons/0x20c0000000000000000000000000000000000003.svg +0 -1
  477. package/seeds/31318/verified-tokens.json +0 -30
  478. package/seeds/4217/icons/0x20c0000000000000000000000000000000000000.svg +0 -25
  479. package/seeds/4217/icons/0x20c000000000000000000000048c8f36df1c9a4a.svg +0 -1
  480. package/seeds/4217/icons/0x20c0000000000000000000000520792dcccccccc.svg +0 -1
  481. package/seeds/4217/icons/0x20c0000000000000000000000a6da882d075a4c3.svg +0 -4
  482. package/seeds/4217/icons/0x20c000000000000000000000111111111e910f0f.svg +0 -30
  483. package/seeds/4217/icons/0x20c00000000000000000000014f22ca97301eb73.svg +0 -1
  484. package/seeds/4217/icons/0x20c0000000000000000000001621e21f71cf12fb.svg +0 -1
  485. package/seeds/4217/icons/0x20c0000000000000000000002f52d5cc21a3207b.svg +0 -1
  486. package/seeds/4217/icons/0x20c0000000000000000000003158081efd85bfc2.svg +0 -11
  487. package/seeds/4217/icons/0x20c0000000000000000000003554d28269e0f3c2.svg +0 -1
  488. package/seeds/4217/icons/0x20c000000000000000000000383a23bacb546ab9.svg +0 -1
  489. package/seeds/4217/icons/0x20c00000000000000000000042109aef2f8b28e1.png +0 -0
  490. package/seeds/4217/icons/0x20c0000000000000000000005c0bac7cef389a11.svg +0 -1
  491. package/seeds/4217/icons/0x20c0000000000000000000006fd9a167923ba194.png +0 -0
  492. package/seeds/4217/icons/0x20c0000000000000000000007f7ba549dd0251b9.svg +0 -1
  493. package/seeds/4217/icons/0x20c0000000000000000000008191667423f70e67.svg +0 -5
  494. package/seeds/4217/icons/0x20c0000000000000000000008ee4fcff88888888.svg +0 -1
  495. package/seeds/4217/icons/0x20c0000000000000000000009a4a4b17e0dc6651.svg +0 -1
  496. package/seeds/4217/icons/0x20c000000000000000000000ab02d39df30bd17e.svg +0 -1
  497. package/seeds/4217/icons/0x20c000000000000000000000ae247a1130450f09.svg +0 -1
  498. package/seeds/4217/icons/0x20c000000000000000000000aeed2ec36a54d0e5.svg +0 -1
  499. package/seeds/4217/icons/0x20c000000000000000000000b9537d11c60e8b50.svg +0 -1
  500. package/seeds/4217/icons/0x20c000000000000000000000bd95bfb69fbe6ce3.svg +0 -1
  501. package/seeds/4217/icons/0x20c000000000000000000000c412ec89d0c08be5.svg +0 -1
  502. package/seeds/4217/icons/0x20c000000000000000000000f047dd7018e50367.png +0 -0
  503. package/seeds/4217/verified-tokens.json +0 -177
  504. package/seeds/42431/icons/0x20c0000000000000000000000000000000000000.svg +0 -25
  505. package/seeds/42431/icons/0x20c0000000000000000000000000000000000001.svg +0 -1
  506. package/seeds/42431/icons/0x20c0000000000000000000000000000000000002.svg +0 -1
  507. package/seeds/42431/icons/0x20c0000000000000000000000000000000000003.svg +0 -1
  508. package/seeds/42431/icons/0x20c0000000000000000000009e8d7eb59b783726.svg +0 -1
  509. package/seeds/42431/icons/0x20c000000000000000000000d72572838bbee59c.svg +0 -1
  510. package/seeds/42431/verified-tokens.json +0 -44
  511. package/seeds/openrpc/README.md +0 -27
  512. package/seeds/openrpc/execution-apis.json +0 -8989
  513. package/src/ApiKeySource.test-d.ts +0 -11
  514. package/src/ApiKeySource.test.ts +0 -295
  515. package/src/ApiKeySource.ts +0 -303
  516. /package/src/{internal/OpenApi.fonts.ts → apps/docs/fonts.ts} +0 -0
  517. /package/src/{internal/OpenApi.logo.ts → apps/docs/logo.ts} +0 -0
@@ -0,0 +1,2985 @@
1
+ import type * as App from '../../App.js';
2
+ /**
3
+ * Minimal transactional email sender. Cloudflare deployments wrap the Email
4
+ * Service binding (`{ from, send: (m) => env.EMAIL.send(m) }`); other hosts
5
+ * pass any compatible sender. Dispatch is always best-effort.
6
+ */
7
+ export type Email = {
8
+ /** Console URL embedded in email links (e.g. sign-in URLs). Defaults to the hosted console; self-hosts point it at their own. */
9
+ consoleUrl?: string | undefined;
10
+ /** Sender address for platform emails (e.g. `noreply@tempo.xyz`). */
11
+ from: string;
12
+ /** Sends one message. */
13
+ send: (message: Email.Message) => Promise<unknown>;
14
+ };
15
+ export declare namespace Email {
16
+ /** One transactional message. */
17
+ type Message = {
18
+ /** Sender address. */
19
+ from: string;
20
+ /** HTML body. */
21
+ html?: string | undefined;
22
+ /** Subject line. */
23
+ subject: string;
24
+ /** Plain-text body. */
25
+ text: string;
26
+ /** Recipient address. */
27
+ to: string;
28
+ };
29
+ }
30
+ /**
31
+ * Request environment for platform routes: the shared app environment plus the
32
+ * `email` sender this group publishes on context. Owned here, not in core
33
+ * `App.Environment`, since email is a platform concern.
34
+ */
35
+ export type Environment = {
36
+ Variables: App.Environment['Variables'] & {
37
+ /** Transactional email sender for platform emails; undefined when dispatch is disabled. */
38
+ email: Email | undefined;
39
+ };
40
+ };
41
+ /**
42
+ * The tenant-platform route group: the current user, orgs, projects, members,
43
+ * invitations, and API-key management. Every route reads its dependencies from
44
+ * request context set by {@link App.create}.
45
+ *
46
+ * The session-auth surface (`/v1/auth/siwe` + `session` capability) is owned by
47
+ * {@link App.create}, so platform routes gate on a session without owning it.
48
+ *
49
+ * ```ts
50
+ * App.create(options).route('/', platform())
51
+ * ```
52
+ */
53
+ export declare function platform(options?: platform.Options): import("hono/hono-base").HonoBase<Environment, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
54
+ "/v1/me": {
55
+ $get: {
56
+ output: {
57
+ error: {
58
+ code: "api_key_malformed";
59
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
60
+ message: string;
61
+ };
62
+ requestId: string;
63
+ };
64
+ outputFormat: "json";
65
+ status: 400;
66
+ input: {};
67
+ } | {
68
+ output: {
69
+ error: {
70
+ code: "api_key_invalid" | "api_key_missing";
71
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
72
+ message: string;
73
+ };
74
+ requestId: string;
75
+ };
76
+ outputFormat: "json";
77
+ status: 401;
78
+ input: {};
79
+ } | {
80
+ output: {
81
+ error: {
82
+ code: "upstream_error";
83
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
84
+ message: string;
85
+ };
86
+ requestId: string;
87
+ };
88
+ outputFormat: "json";
89
+ status: 502;
90
+ input: {};
91
+ } | {
92
+ output: {
93
+ error: {
94
+ code: "forbidden";
95
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
96
+ message: string;
97
+ };
98
+ requestId: string;
99
+ };
100
+ outputFormat: "json";
101
+ status: 403;
102
+ input: {};
103
+ } | {
104
+ output: {
105
+ error: {
106
+ code: "user_not_found";
107
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
108
+ message: string;
109
+ };
110
+ requestId: string;
111
+ };
112
+ outputFormat: "json";
113
+ status: 404;
114
+ input: {};
115
+ } | {
116
+ output: {
117
+ address?: string | undefined;
118
+ createdAt: string;
119
+ email?: string | undefined;
120
+ id: string;
121
+ updatedAt: string;
122
+ };
123
+ outputFormat: "json";
124
+ status: 200;
125
+ input: {};
126
+ };
127
+ };
128
+ }, "/"> | import("hono/types").MergeSchemaPath<{
129
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
130
+ $post: {
131
+ output: {
132
+ error: {
133
+ code: "api_key_malformed";
134
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
135
+ message: string;
136
+ };
137
+ requestId: string;
138
+ };
139
+ outputFormat: "json";
140
+ status: 400;
141
+ input: {
142
+ param: {
143
+ orgId: string;
144
+ projectId: string;
145
+ };
146
+ } & {
147
+ json: {
148
+ environment?: "production" | "sandbox" | undefined;
149
+ name?: string | undefined;
150
+ scopes: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
151
+ };
152
+ };
153
+ } | {
154
+ output: {
155
+ error: {
156
+ code: "api_key_invalid" | "api_key_missing";
157
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
158
+ message: string;
159
+ };
160
+ requestId: string;
161
+ };
162
+ outputFormat: "json";
163
+ status: 401;
164
+ input: {
165
+ param: {
166
+ orgId: string;
167
+ projectId: string;
168
+ };
169
+ } & {
170
+ json: {
171
+ environment?: "production" | "sandbox" | undefined;
172
+ name?: string | undefined;
173
+ scopes: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
174
+ };
175
+ };
176
+ } | {
177
+ output: {
178
+ error: {
179
+ code: "upstream_error";
180
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
181
+ message: string;
182
+ };
183
+ requestId: string;
184
+ };
185
+ outputFormat: "json";
186
+ status: 502;
187
+ input: {
188
+ param: {
189
+ orgId: string;
190
+ projectId: string;
191
+ };
192
+ } & {
193
+ json: {
194
+ environment?: "production" | "sandbox" | undefined;
195
+ name?: string | undefined;
196
+ scopes: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
197
+ };
198
+ };
199
+ } | {
200
+ output: {
201
+ error: {
202
+ code: "forbidden";
203
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
204
+ message: string;
205
+ };
206
+ requestId: string;
207
+ };
208
+ outputFormat: "json";
209
+ status: 403;
210
+ input: {
211
+ param: {
212
+ orgId: string;
213
+ projectId: string;
214
+ };
215
+ } & {
216
+ json: {
217
+ environment?: "production" | "sandbox" | undefined;
218
+ name?: string | undefined;
219
+ scopes: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
220
+ };
221
+ };
222
+ } | {
223
+ output: {
224
+ error: {
225
+ code: "organization_not_found" | "project_not_found";
226
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
227
+ message: string;
228
+ };
229
+ requestId: string;
230
+ };
231
+ outputFormat: "json";
232
+ status: 404;
233
+ input: {
234
+ param: {
235
+ orgId: string;
236
+ projectId: string;
237
+ };
238
+ } & {
239
+ json: {
240
+ environment?: "production" | "sandbox" | undefined;
241
+ name?: string | undefined;
242
+ scopes: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
243
+ };
244
+ };
245
+ } | {
246
+ output: {
247
+ error: {
248
+ code: "param_invalid";
249
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
250
+ message: string;
251
+ };
252
+ requestId: string;
253
+ };
254
+ outputFormat: "json";
255
+ status: 400;
256
+ input: {
257
+ param: {
258
+ orgId: string;
259
+ projectId: string;
260
+ };
261
+ } & {
262
+ json: {
263
+ environment?: "production" | "sandbox" | undefined;
264
+ name?: string | undefined;
265
+ scopes: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
266
+ };
267
+ };
268
+ } | {
269
+ output: {
270
+ error: {
271
+ code: "body_invalid";
272
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
273
+ message: string;
274
+ };
275
+ requestId: string;
276
+ };
277
+ outputFormat: "json";
278
+ status: 400;
279
+ input: {
280
+ param: {
281
+ orgId: string;
282
+ projectId: string;
283
+ };
284
+ } & {
285
+ json: {
286
+ environment?: "production" | "sandbox" | undefined;
287
+ name?: string | undefined;
288
+ scopes: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
289
+ };
290
+ };
291
+ } | {
292
+ output: {
293
+ error: {
294
+ code: "api_keys_not_enabled";
295
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
296
+ message: string;
297
+ };
298
+ requestId: string;
299
+ };
300
+ outputFormat: "json";
301
+ status: 404;
302
+ input: {
303
+ param: {
304
+ orgId: string;
305
+ projectId: string;
306
+ };
307
+ } & {
308
+ json: {
309
+ environment?: "production" | "sandbox" | undefined;
310
+ name?: string | undefined;
311
+ scopes: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
312
+ };
313
+ };
314
+ } | {
315
+ output: {
316
+ error: {
317
+ code: "scope_not_issuable";
318
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
319
+ message: string;
320
+ };
321
+ requestId: string;
322
+ };
323
+ outputFormat: "json";
324
+ status: 403;
325
+ input: {
326
+ param: {
327
+ orgId: string;
328
+ projectId: string;
329
+ };
330
+ } & {
331
+ json: {
332
+ environment?: "production" | "sandbox" | undefined;
333
+ name?: string | undefined;
334
+ scopes: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
335
+ };
336
+ };
337
+ } | {
338
+ output: {
339
+ createdAt: string;
340
+ createdBy?: string | undefined;
341
+ environment: "production" | "sandbox";
342
+ expiresAt?: string | undefined;
343
+ id: string;
344
+ name?: string | undefined;
345
+ orgId: string;
346
+ projectId: string;
347
+ scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
348
+ tokenLast4: string;
349
+ token: string;
350
+ };
351
+ outputFormat: "json";
352
+ status: 200;
353
+ input: {
354
+ param: {
355
+ orgId: string;
356
+ projectId: string;
357
+ };
358
+ } & {
359
+ json: {
360
+ environment?: "production" | "sandbox" | undefined;
361
+ name?: string | undefined;
362
+ scopes: ("data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
363
+ };
364
+ };
365
+ };
366
+ };
367
+ } & {
368
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
369
+ $get: {
370
+ output: {
371
+ error: {
372
+ code: "api_key_malformed";
373
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
374
+ message: string;
375
+ };
376
+ requestId: string;
377
+ };
378
+ outputFormat: "json";
379
+ status: 400;
380
+ input: {
381
+ param: {
382
+ orgId: string;
383
+ projectId: string;
384
+ };
385
+ };
386
+ } | {
387
+ output: {
388
+ error: {
389
+ code: "api_key_invalid" | "api_key_missing";
390
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
391
+ message: string;
392
+ };
393
+ requestId: string;
394
+ };
395
+ outputFormat: "json";
396
+ status: 401;
397
+ input: {
398
+ param: {
399
+ orgId: string;
400
+ projectId: string;
401
+ };
402
+ };
403
+ } | {
404
+ output: {
405
+ error: {
406
+ code: "upstream_error";
407
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
408
+ message: string;
409
+ };
410
+ requestId: string;
411
+ };
412
+ outputFormat: "json";
413
+ status: 502;
414
+ input: {
415
+ param: {
416
+ orgId: string;
417
+ projectId: string;
418
+ };
419
+ };
420
+ } | {
421
+ output: {
422
+ error: {
423
+ code: "forbidden";
424
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
425
+ message: string;
426
+ };
427
+ requestId: string;
428
+ };
429
+ outputFormat: "json";
430
+ status: 403;
431
+ input: {
432
+ param: {
433
+ orgId: string;
434
+ projectId: string;
435
+ };
436
+ };
437
+ } | {
438
+ output: {
439
+ error: {
440
+ code: "organization_not_found" | "project_not_found";
441
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
442
+ message: string;
443
+ };
444
+ requestId: string;
445
+ };
446
+ outputFormat: "json";
447
+ status: 404;
448
+ input: {
449
+ param: {
450
+ orgId: string;
451
+ projectId: string;
452
+ };
453
+ };
454
+ } | {
455
+ output: {
456
+ error: {
457
+ code: "param_invalid";
458
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
459
+ message: string;
460
+ };
461
+ requestId: string;
462
+ };
463
+ outputFormat: "json";
464
+ status: 400;
465
+ input: {
466
+ param: {
467
+ orgId: string;
468
+ projectId: string;
469
+ };
470
+ };
471
+ } | {
472
+ output: {
473
+ error: {
474
+ code: "api_keys_not_enabled";
475
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
476
+ message: string;
477
+ };
478
+ requestId: string;
479
+ };
480
+ outputFormat: "json";
481
+ status: 404;
482
+ input: {
483
+ param: {
484
+ orgId: string;
485
+ projectId: string;
486
+ };
487
+ };
488
+ } | {
489
+ output: {
490
+ data: {
491
+ createdAt: string;
492
+ createdBy?: string | undefined;
493
+ environment: "production" | "sandbox";
494
+ expiresAt?: string | undefined;
495
+ id: string;
496
+ name?: string | undefined;
497
+ orgId: string;
498
+ projectId: string;
499
+ scopes: ("*" | "data:read" | "indexer:query" | "rpc-relay:read" | "rpc-relay:sponsor" | "webhooks:read" | "webhooks:write")[];
500
+ tokenLast4: string;
501
+ }[];
502
+ };
503
+ outputFormat: "json";
504
+ status: 200;
505
+ input: {
506
+ param: {
507
+ orgId: string;
508
+ projectId: string;
509
+ };
510
+ };
511
+ };
512
+ };
513
+ } & {
514
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
515
+ $delete: {
516
+ output: {
517
+ error: {
518
+ code: "api_key_malformed";
519
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
520
+ message: string;
521
+ };
522
+ requestId: string;
523
+ };
524
+ outputFormat: "json";
525
+ status: 400;
526
+ input: {
527
+ param: {
528
+ keyId: string;
529
+ orgId: string;
530
+ projectId: string;
531
+ };
532
+ };
533
+ } | {
534
+ output: {
535
+ error: {
536
+ code: "api_key_invalid" | "api_key_missing";
537
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
538
+ message: string;
539
+ };
540
+ requestId: string;
541
+ };
542
+ outputFormat: "json";
543
+ status: 401;
544
+ input: {
545
+ param: {
546
+ keyId: string;
547
+ orgId: string;
548
+ projectId: string;
549
+ };
550
+ };
551
+ } | {
552
+ output: {
553
+ error: {
554
+ code: "upstream_error";
555
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
556
+ message: string;
557
+ };
558
+ requestId: string;
559
+ };
560
+ outputFormat: "json";
561
+ status: 502;
562
+ input: {
563
+ param: {
564
+ keyId: string;
565
+ orgId: string;
566
+ projectId: string;
567
+ };
568
+ };
569
+ } | {
570
+ output: {
571
+ error: {
572
+ code: "forbidden";
573
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
574
+ message: string;
575
+ };
576
+ requestId: string;
577
+ };
578
+ outputFormat: "json";
579
+ status: 403;
580
+ input: {
581
+ param: {
582
+ keyId: string;
583
+ orgId: string;
584
+ projectId: string;
585
+ };
586
+ };
587
+ } | {
588
+ output: {
589
+ error: {
590
+ code: "organization_not_found" | "project_not_found";
591
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
592
+ message: string;
593
+ };
594
+ requestId: string;
595
+ };
596
+ outputFormat: "json";
597
+ status: 404;
598
+ input: {
599
+ param: {
600
+ keyId: string;
601
+ orgId: string;
602
+ projectId: string;
603
+ };
604
+ };
605
+ } | {
606
+ output: {
607
+ error: {
608
+ code: "param_invalid";
609
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
610
+ message: string;
611
+ };
612
+ requestId: string;
613
+ };
614
+ outputFormat: "json";
615
+ status: 400;
616
+ input: {
617
+ param: {
618
+ keyId: string;
619
+ orgId: string;
620
+ projectId: string;
621
+ };
622
+ };
623
+ } | {
624
+ output: {
625
+ error: {
626
+ code: "api_keys_not_enabled";
627
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
628
+ message: string;
629
+ };
630
+ requestId: string;
631
+ };
632
+ outputFormat: "json";
633
+ status: 404;
634
+ input: {
635
+ param: {
636
+ keyId: string;
637
+ orgId: string;
638
+ projectId: string;
639
+ };
640
+ };
641
+ } | {
642
+ output: {
643
+ error: {
644
+ code: "api_key_not_found";
645
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
646
+ message: string;
647
+ };
648
+ requestId: string;
649
+ };
650
+ outputFormat: "json";
651
+ status: 404;
652
+ input: {
653
+ param: {
654
+ keyId: string;
655
+ orgId: string;
656
+ projectId: string;
657
+ };
658
+ };
659
+ } | {
660
+ output: {
661
+ id: string;
662
+ };
663
+ outputFormat: "json";
664
+ status: 200;
665
+ input: {
666
+ param: {
667
+ keyId: string;
668
+ orgId: string;
669
+ projectId: string;
670
+ };
671
+ };
672
+ };
673
+ };
674
+ }, "/"> | import("hono/types").MergeSchemaPath<{
675
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members": {
676
+ $get: {
677
+ output: {
678
+ error: {
679
+ code: "api_key_malformed";
680
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
681
+ message: string;
682
+ };
683
+ requestId: string;
684
+ };
685
+ outputFormat: "json";
686
+ status: 400;
687
+ input: {
688
+ param: {
689
+ orgId: string;
690
+ };
691
+ };
692
+ } | {
693
+ output: {
694
+ error: {
695
+ code: "api_key_invalid" | "api_key_missing";
696
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
697
+ message: string;
698
+ };
699
+ requestId: string;
700
+ };
701
+ outputFormat: "json";
702
+ status: 401;
703
+ input: {
704
+ param: {
705
+ orgId: string;
706
+ };
707
+ };
708
+ } | {
709
+ output: {
710
+ error: {
711
+ code: "upstream_error";
712
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
713
+ message: string;
714
+ };
715
+ requestId: string;
716
+ };
717
+ outputFormat: "json";
718
+ status: 502;
719
+ input: {
720
+ param: {
721
+ orgId: string;
722
+ };
723
+ };
724
+ } | {
725
+ output: {
726
+ error: {
727
+ code: "forbidden";
728
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
729
+ message: string;
730
+ };
731
+ requestId: string;
732
+ };
733
+ outputFormat: "json";
734
+ status: 403;
735
+ input: {
736
+ param: {
737
+ orgId: string;
738
+ };
739
+ };
740
+ } | {
741
+ output: {
742
+ error: {
743
+ code: "param_invalid";
744
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
745
+ message: string;
746
+ };
747
+ requestId: string;
748
+ };
749
+ outputFormat: "json";
750
+ status: 400;
751
+ input: {
752
+ param: {
753
+ orgId: string;
754
+ };
755
+ };
756
+ } | {
757
+ output: {
758
+ error: {
759
+ code: "organization_not_found";
760
+ details?: readonly import("../../internal/Response.js").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
+ } | {
773
+ output: {
774
+ data: {
775
+ address?: string | undefined;
776
+ createdAt: string;
777
+ email?: string | undefined;
778
+ role: "admin" | "member" | "owner";
779
+ userId: string;
780
+ }[];
781
+ };
782
+ outputFormat: "json";
783
+ status: 200;
784
+ input: {
785
+ param: {
786
+ orgId: string;
787
+ };
788
+ };
789
+ };
790
+ };
791
+ } & {
792
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members/:userId{usr_[A-Za-z0-9_-]+}": {
793
+ $patch: {
794
+ output: {
795
+ error: {
796
+ code: "api_key_malformed";
797
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
798
+ message: string;
799
+ };
800
+ requestId: string;
801
+ };
802
+ outputFormat: "json";
803
+ status: 400;
804
+ input: {
805
+ param: {
806
+ orgId: string;
807
+ userId: string;
808
+ };
809
+ } & {
810
+ json: {
811
+ role: "admin" | "member" | "owner";
812
+ };
813
+ };
814
+ } | {
815
+ output: {
816
+ error: {
817
+ code: "api_key_invalid" | "api_key_missing";
818
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
819
+ message: string;
820
+ };
821
+ requestId: string;
822
+ };
823
+ outputFormat: "json";
824
+ status: 401;
825
+ input: {
826
+ param: {
827
+ orgId: string;
828
+ userId: string;
829
+ };
830
+ } & {
831
+ json: {
832
+ role: "admin" | "member" | "owner";
833
+ };
834
+ };
835
+ } | {
836
+ output: {
837
+ error: {
838
+ code: "upstream_error";
839
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
840
+ message: string;
841
+ };
842
+ requestId: string;
843
+ };
844
+ outputFormat: "json";
845
+ status: 502;
846
+ input: {
847
+ param: {
848
+ orgId: string;
849
+ userId: string;
850
+ };
851
+ } & {
852
+ json: {
853
+ role: "admin" | "member" | "owner";
854
+ };
855
+ };
856
+ } | {
857
+ output: {
858
+ error: {
859
+ code: "forbidden";
860
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
861
+ message: string;
862
+ };
863
+ requestId: string;
864
+ };
865
+ outputFormat: "json";
866
+ status: 403;
867
+ input: {
868
+ param: {
869
+ orgId: string;
870
+ userId: string;
871
+ };
872
+ } & {
873
+ json: {
874
+ role: "admin" | "member" | "owner";
875
+ };
876
+ };
877
+ } | {
878
+ output: {
879
+ error: {
880
+ code: "param_invalid";
881
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
882
+ message: string;
883
+ };
884
+ requestId: string;
885
+ };
886
+ outputFormat: "json";
887
+ status: 400;
888
+ input: {
889
+ param: {
890
+ orgId: string;
891
+ userId: string;
892
+ };
893
+ } & {
894
+ json: {
895
+ role: "admin" | "member" | "owner";
896
+ };
897
+ };
898
+ } | {
899
+ output: {
900
+ error: {
901
+ code: "body_invalid";
902
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
903
+ message: string;
904
+ };
905
+ requestId: string;
906
+ };
907
+ outputFormat: "json";
908
+ status: 400;
909
+ input: {
910
+ param: {
911
+ orgId: string;
912
+ userId: string;
913
+ };
914
+ } & {
915
+ json: {
916
+ role: "admin" | "member" | "owner";
917
+ };
918
+ };
919
+ } | {
920
+ output: {
921
+ error: {
922
+ code: "organization_not_found";
923
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
924
+ message: string;
925
+ };
926
+ requestId: string;
927
+ };
928
+ outputFormat: "json";
929
+ status: 404;
930
+ input: {
931
+ param: {
932
+ orgId: string;
933
+ userId: string;
934
+ };
935
+ } & {
936
+ json: {
937
+ role: "admin" | "member" | "owner";
938
+ };
939
+ };
940
+ } | {
941
+ output: {
942
+ error: {
943
+ code: "last_owner";
944
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
945
+ message: string;
946
+ };
947
+ requestId: string;
948
+ };
949
+ outputFormat: "json";
950
+ status: 409;
951
+ input: {
952
+ param: {
953
+ orgId: string;
954
+ userId: string;
955
+ };
956
+ } & {
957
+ json: {
958
+ role: "admin" | "member" | "owner";
959
+ };
960
+ };
961
+ } | {
962
+ output: {
963
+ error: {
964
+ code: "member_not_found";
965
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
966
+ message: string;
967
+ };
968
+ requestId: string;
969
+ };
970
+ outputFormat: "json";
971
+ status: 404;
972
+ input: {
973
+ param: {
974
+ orgId: string;
975
+ userId: string;
976
+ };
977
+ } & {
978
+ json: {
979
+ role: "admin" | "member" | "owner";
980
+ };
981
+ };
982
+ } | {
983
+ output: {
984
+ address?: string | undefined;
985
+ createdAt: string;
986
+ email?: string | undefined;
987
+ role: "admin" | "member" | "owner";
988
+ userId: string;
989
+ };
990
+ outputFormat: "json";
991
+ status: 200;
992
+ input: {
993
+ param: {
994
+ orgId: string;
995
+ userId: string;
996
+ };
997
+ } & {
998
+ json: {
999
+ role: "admin" | "member" | "owner";
1000
+ };
1001
+ };
1002
+ };
1003
+ };
1004
+ } & {
1005
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members/:userId{usr_[A-Za-z0-9_-]+}": {
1006
+ $delete: {
1007
+ output: {
1008
+ error: {
1009
+ code: "api_key_malformed";
1010
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1011
+ message: string;
1012
+ };
1013
+ requestId: string;
1014
+ };
1015
+ outputFormat: "json";
1016
+ status: 400;
1017
+ input: {
1018
+ param: {
1019
+ orgId: string;
1020
+ userId: string;
1021
+ };
1022
+ };
1023
+ } | {
1024
+ output: {
1025
+ error: {
1026
+ code: "api_key_invalid" | "api_key_missing";
1027
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1028
+ message: string;
1029
+ };
1030
+ requestId: string;
1031
+ };
1032
+ outputFormat: "json";
1033
+ status: 401;
1034
+ input: {
1035
+ param: {
1036
+ orgId: string;
1037
+ userId: string;
1038
+ };
1039
+ };
1040
+ } | {
1041
+ output: {
1042
+ error: {
1043
+ code: "upstream_error";
1044
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1045
+ message: string;
1046
+ };
1047
+ requestId: string;
1048
+ };
1049
+ outputFormat: "json";
1050
+ status: 502;
1051
+ input: {
1052
+ param: {
1053
+ orgId: string;
1054
+ userId: string;
1055
+ };
1056
+ };
1057
+ } | {
1058
+ output: {
1059
+ error: {
1060
+ code: "forbidden";
1061
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1062
+ message: string;
1063
+ };
1064
+ requestId: string;
1065
+ };
1066
+ outputFormat: "json";
1067
+ status: 403;
1068
+ input: {
1069
+ param: {
1070
+ orgId: string;
1071
+ userId: string;
1072
+ };
1073
+ };
1074
+ } | {
1075
+ output: {
1076
+ error: {
1077
+ code: "param_invalid";
1078
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1079
+ message: string;
1080
+ };
1081
+ requestId: string;
1082
+ };
1083
+ outputFormat: "json";
1084
+ status: 400;
1085
+ input: {
1086
+ param: {
1087
+ orgId: string;
1088
+ userId: string;
1089
+ };
1090
+ };
1091
+ } | {
1092
+ output: {
1093
+ error: {
1094
+ code: "organization_not_found";
1095
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1096
+ message: string;
1097
+ };
1098
+ requestId: string;
1099
+ };
1100
+ outputFormat: "json";
1101
+ status: 404;
1102
+ input: {
1103
+ param: {
1104
+ orgId: string;
1105
+ userId: string;
1106
+ };
1107
+ };
1108
+ } | {
1109
+ output: {
1110
+ error: {
1111
+ code: "last_owner";
1112
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1113
+ message: string;
1114
+ };
1115
+ requestId: string;
1116
+ };
1117
+ outputFormat: "json";
1118
+ status: 409;
1119
+ input: {
1120
+ param: {
1121
+ orgId: string;
1122
+ userId: string;
1123
+ };
1124
+ };
1125
+ } | {
1126
+ output: {
1127
+ error: {
1128
+ code: "member_not_found";
1129
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1130
+ message: string;
1131
+ };
1132
+ requestId: string;
1133
+ };
1134
+ outputFormat: "json";
1135
+ status: 404;
1136
+ input: {
1137
+ param: {
1138
+ orgId: string;
1139
+ userId: string;
1140
+ };
1141
+ };
1142
+ } | {
1143
+ output: {
1144
+ userId: string;
1145
+ };
1146
+ outputFormat: "json";
1147
+ status: 200;
1148
+ input: {
1149
+ param: {
1150
+ orgId: string;
1151
+ userId: string;
1152
+ };
1153
+ };
1154
+ };
1155
+ };
1156
+ }, "/"> | import("hono/types").MergeSchemaPath<{
1157
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations": {
1158
+ $post: {
1159
+ output: {
1160
+ error: {
1161
+ code: "api_key_malformed";
1162
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1163
+ message: string;
1164
+ };
1165
+ requestId: string;
1166
+ };
1167
+ outputFormat: "json";
1168
+ status: 400;
1169
+ input: {
1170
+ param: {
1171
+ orgId: string;
1172
+ };
1173
+ } & {
1174
+ json: {
1175
+ email: string;
1176
+ role: "admin" | "member" | "owner";
1177
+ };
1178
+ };
1179
+ } | {
1180
+ output: {
1181
+ error: {
1182
+ code: "api_key_invalid" | "api_key_missing";
1183
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1184
+ message: string;
1185
+ };
1186
+ requestId: string;
1187
+ };
1188
+ outputFormat: "json";
1189
+ status: 401;
1190
+ input: {
1191
+ param: {
1192
+ orgId: string;
1193
+ };
1194
+ } & {
1195
+ json: {
1196
+ email: string;
1197
+ role: "admin" | "member" | "owner";
1198
+ };
1199
+ };
1200
+ } | {
1201
+ output: {
1202
+ error: {
1203
+ code: "upstream_error";
1204
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1205
+ message: string;
1206
+ };
1207
+ requestId: string;
1208
+ };
1209
+ outputFormat: "json";
1210
+ status: 502;
1211
+ input: {
1212
+ param: {
1213
+ orgId: string;
1214
+ };
1215
+ } & {
1216
+ json: {
1217
+ email: string;
1218
+ role: "admin" | "member" | "owner";
1219
+ };
1220
+ };
1221
+ } | {
1222
+ output: {
1223
+ error: {
1224
+ code: "forbidden";
1225
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1226
+ message: string;
1227
+ };
1228
+ requestId: string;
1229
+ };
1230
+ outputFormat: "json";
1231
+ status: 403;
1232
+ input: {
1233
+ param: {
1234
+ orgId: string;
1235
+ };
1236
+ } & {
1237
+ json: {
1238
+ email: string;
1239
+ role: "admin" | "member" | "owner";
1240
+ };
1241
+ };
1242
+ } | {
1243
+ output: {
1244
+ error: {
1245
+ code: "param_invalid";
1246
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1247
+ message: string;
1248
+ };
1249
+ requestId: string;
1250
+ };
1251
+ outputFormat: "json";
1252
+ status: 400;
1253
+ input: {
1254
+ param: {
1255
+ orgId: string;
1256
+ };
1257
+ } & {
1258
+ json: {
1259
+ email: string;
1260
+ role: "admin" | "member" | "owner";
1261
+ };
1262
+ };
1263
+ } | {
1264
+ output: {
1265
+ error: {
1266
+ code: "body_invalid";
1267
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1268
+ message: string;
1269
+ };
1270
+ requestId: string;
1271
+ };
1272
+ outputFormat: "json";
1273
+ status: 400;
1274
+ input: {
1275
+ param: {
1276
+ orgId: string;
1277
+ };
1278
+ } & {
1279
+ json: {
1280
+ email: string;
1281
+ role: "admin" | "member" | "owner";
1282
+ };
1283
+ };
1284
+ } | {
1285
+ output: {
1286
+ error: {
1287
+ code: "organization_not_found";
1288
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1289
+ message: string;
1290
+ };
1291
+ requestId: string;
1292
+ };
1293
+ outputFormat: "json";
1294
+ status: 404;
1295
+ input: {
1296
+ param: {
1297
+ orgId: string;
1298
+ };
1299
+ } & {
1300
+ json: {
1301
+ email: string;
1302
+ role: "admin" | "member" | "owner";
1303
+ };
1304
+ };
1305
+ } | {
1306
+ output: {
1307
+ createdAt: string;
1308
+ email: string;
1309
+ expiresAt: string;
1310
+ id: string;
1311
+ invitedBy: string;
1312
+ orgId: string;
1313
+ role: "admin" | "member" | "owner";
1314
+ };
1315
+ outputFormat: "json";
1316
+ status: 200;
1317
+ input: {
1318
+ param: {
1319
+ orgId: string;
1320
+ };
1321
+ } & {
1322
+ json: {
1323
+ email: string;
1324
+ role: "admin" | "member" | "owner";
1325
+ };
1326
+ };
1327
+ };
1328
+ };
1329
+ } & {
1330
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations": {
1331
+ $get: {
1332
+ output: {
1333
+ error: {
1334
+ code: "api_key_malformed";
1335
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1336
+ message: string;
1337
+ };
1338
+ requestId: string;
1339
+ };
1340
+ outputFormat: "json";
1341
+ status: 400;
1342
+ input: {
1343
+ param: {
1344
+ orgId: string;
1345
+ };
1346
+ };
1347
+ } | {
1348
+ output: {
1349
+ error: {
1350
+ code: "api_key_invalid" | "api_key_missing";
1351
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1352
+ message: string;
1353
+ };
1354
+ requestId: string;
1355
+ };
1356
+ outputFormat: "json";
1357
+ status: 401;
1358
+ input: {
1359
+ param: {
1360
+ orgId: string;
1361
+ };
1362
+ };
1363
+ } | {
1364
+ output: {
1365
+ error: {
1366
+ code: "upstream_error";
1367
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1368
+ message: string;
1369
+ };
1370
+ requestId: string;
1371
+ };
1372
+ outputFormat: "json";
1373
+ status: 502;
1374
+ input: {
1375
+ param: {
1376
+ orgId: string;
1377
+ };
1378
+ };
1379
+ } | {
1380
+ output: {
1381
+ error: {
1382
+ code: "forbidden";
1383
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1384
+ message: string;
1385
+ };
1386
+ requestId: string;
1387
+ };
1388
+ outputFormat: "json";
1389
+ status: 403;
1390
+ input: {
1391
+ param: {
1392
+ orgId: string;
1393
+ };
1394
+ };
1395
+ } | {
1396
+ output: {
1397
+ error: {
1398
+ code: "param_invalid";
1399
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1400
+ message: string;
1401
+ };
1402
+ requestId: string;
1403
+ };
1404
+ outputFormat: "json";
1405
+ status: 400;
1406
+ input: {
1407
+ param: {
1408
+ orgId: string;
1409
+ };
1410
+ };
1411
+ } | {
1412
+ output: {
1413
+ error: {
1414
+ code: "organization_not_found";
1415
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1416
+ message: string;
1417
+ };
1418
+ requestId: string;
1419
+ };
1420
+ outputFormat: "json";
1421
+ status: 404;
1422
+ input: {
1423
+ param: {
1424
+ orgId: string;
1425
+ };
1426
+ };
1427
+ } | {
1428
+ output: {
1429
+ data: {
1430
+ createdAt: string;
1431
+ email: string;
1432
+ expiresAt: string;
1433
+ id: string;
1434
+ invitedBy: string;
1435
+ orgId: string;
1436
+ role: "admin" | "member" | "owner";
1437
+ }[];
1438
+ };
1439
+ outputFormat: "json";
1440
+ status: 200;
1441
+ input: {
1442
+ param: {
1443
+ orgId: string;
1444
+ };
1445
+ };
1446
+ };
1447
+ };
1448
+ } & {
1449
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations/:invitationId{inv_[A-Za-z0-9_-]+}": {
1450
+ $delete: {
1451
+ output: {
1452
+ error: {
1453
+ code: "api_key_malformed";
1454
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1455
+ message: string;
1456
+ };
1457
+ requestId: string;
1458
+ };
1459
+ outputFormat: "json";
1460
+ status: 400;
1461
+ input: {
1462
+ param: {
1463
+ invitationId: string;
1464
+ orgId: string;
1465
+ };
1466
+ };
1467
+ } | {
1468
+ output: {
1469
+ error: {
1470
+ code: "api_key_invalid" | "api_key_missing";
1471
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1472
+ message: string;
1473
+ };
1474
+ requestId: string;
1475
+ };
1476
+ outputFormat: "json";
1477
+ status: 401;
1478
+ input: {
1479
+ param: {
1480
+ invitationId: string;
1481
+ orgId: string;
1482
+ };
1483
+ };
1484
+ } | {
1485
+ output: {
1486
+ error: {
1487
+ code: "upstream_error";
1488
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1489
+ message: string;
1490
+ };
1491
+ requestId: string;
1492
+ };
1493
+ outputFormat: "json";
1494
+ status: 502;
1495
+ input: {
1496
+ param: {
1497
+ invitationId: string;
1498
+ orgId: string;
1499
+ };
1500
+ };
1501
+ } | {
1502
+ output: {
1503
+ error: {
1504
+ code: "forbidden";
1505
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1506
+ message: string;
1507
+ };
1508
+ requestId: string;
1509
+ };
1510
+ outputFormat: "json";
1511
+ status: 403;
1512
+ input: {
1513
+ param: {
1514
+ invitationId: string;
1515
+ orgId: string;
1516
+ };
1517
+ };
1518
+ } | {
1519
+ output: {
1520
+ error: {
1521
+ code: "param_invalid";
1522
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1523
+ message: string;
1524
+ };
1525
+ requestId: string;
1526
+ };
1527
+ outputFormat: "json";
1528
+ status: 400;
1529
+ input: {
1530
+ param: {
1531
+ invitationId: string;
1532
+ orgId: string;
1533
+ };
1534
+ };
1535
+ } | {
1536
+ output: {
1537
+ error: {
1538
+ code: "organization_not_found";
1539
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1540
+ message: string;
1541
+ };
1542
+ requestId: string;
1543
+ };
1544
+ outputFormat: "json";
1545
+ status: 404;
1546
+ input: {
1547
+ param: {
1548
+ invitationId: string;
1549
+ orgId: string;
1550
+ };
1551
+ };
1552
+ } | {
1553
+ output: {
1554
+ error: {
1555
+ code: "invitation_not_found";
1556
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1557
+ message: string;
1558
+ };
1559
+ requestId: string;
1560
+ };
1561
+ outputFormat: "json";
1562
+ status: 404;
1563
+ input: {
1564
+ param: {
1565
+ invitationId: string;
1566
+ orgId: string;
1567
+ };
1568
+ };
1569
+ } | {
1570
+ output: {
1571
+ id: string;
1572
+ };
1573
+ outputFormat: "json";
1574
+ status: 200;
1575
+ input: {
1576
+ param: {
1577
+ invitationId: string;
1578
+ orgId: string;
1579
+ };
1580
+ };
1581
+ };
1582
+ };
1583
+ } & {
1584
+ "/v1/invitations": {
1585
+ $get: {
1586
+ output: {
1587
+ error: {
1588
+ code: "api_key_malformed";
1589
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1590
+ message: string;
1591
+ };
1592
+ requestId: string;
1593
+ };
1594
+ outputFormat: "json";
1595
+ status: 400;
1596
+ input: {};
1597
+ } | {
1598
+ output: {
1599
+ error: {
1600
+ code: "api_key_invalid" | "api_key_missing";
1601
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1602
+ message: string;
1603
+ };
1604
+ requestId: string;
1605
+ };
1606
+ outputFormat: "json";
1607
+ status: 401;
1608
+ input: {};
1609
+ } | {
1610
+ output: {
1611
+ error: {
1612
+ code: "upstream_error";
1613
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1614
+ message: string;
1615
+ };
1616
+ requestId: string;
1617
+ };
1618
+ outputFormat: "json";
1619
+ status: 502;
1620
+ input: {};
1621
+ } | {
1622
+ output: {
1623
+ error: {
1624
+ code: "forbidden";
1625
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1626
+ message: string;
1627
+ };
1628
+ requestId: string;
1629
+ };
1630
+ outputFormat: "json";
1631
+ status: 403;
1632
+ input: {};
1633
+ } | {
1634
+ output: {
1635
+ data: {
1636
+ createdAt: string;
1637
+ email: string;
1638
+ expiresAt: string;
1639
+ id: string;
1640
+ invitedBy: string;
1641
+ orgId: string;
1642
+ role: "admin" | "member" | "owner";
1643
+ orgName: string;
1644
+ }[];
1645
+ };
1646
+ outputFormat: "json";
1647
+ status: 200;
1648
+ input: {};
1649
+ };
1650
+ };
1651
+ } & {
1652
+ "/v1/invitations/:invitationId{inv_[A-Za-z0-9_-]+}/accept": {
1653
+ $post: {
1654
+ output: {
1655
+ error: {
1656
+ code: "api_key_malformed";
1657
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1658
+ message: string;
1659
+ };
1660
+ requestId: string;
1661
+ };
1662
+ outputFormat: "json";
1663
+ status: 400;
1664
+ input: {
1665
+ param: {
1666
+ invitationId: string;
1667
+ };
1668
+ };
1669
+ } | {
1670
+ output: {
1671
+ error: {
1672
+ code: "api_key_invalid" | "api_key_missing";
1673
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1674
+ message: string;
1675
+ };
1676
+ requestId: string;
1677
+ };
1678
+ outputFormat: "json";
1679
+ status: 401;
1680
+ input: {
1681
+ param: {
1682
+ invitationId: string;
1683
+ };
1684
+ };
1685
+ } | {
1686
+ output: {
1687
+ error: {
1688
+ code: "upstream_error";
1689
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1690
+ message: string;
1691
+ };
1692
+ requestId: string;
1693
+ };
1694
+ outputFormat: "json";
1695
+ status: 502;
1696
+ input: {
1697
+ param: {
1698
+ invitationId: string;
1699
+ };
1700
+ };
1701
+ } | {
1702
+ output: {
1703
+ error: {
1704
+ code: "forbidden";
1705
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1706
+ message: string;
1707
+ };
1708
+ requestId: string;
1709
+ };
1710
+ outputFormat: "json";
1711
+ status: 403;
1712
+ input: {
1713
+ param: {
1714
+ invitationId: string;
1715
+ };
1716
+ };
1717
+ } | {
1718
+ output: {
1719
+ error: {
1720
+ code: "param_invalid";
1721
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1722
+ message: string;
1723
+ };
1724
+ requestId: string;
1725
+ };
1726
+ outputFormat: "json";
1727
+ status: 400;
1728
+ input: {
1729
+ param: {
1730
+ invitationId: string;
1731
+ };
1732
+ };
1733
+ } | {
1734
+ output: {
1735
+ error: {
1736
+ code: "invitation_not_found";
1737
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1738
+ message: string;
1739
+ };
1740
+ requestId: string;
1741
+ };
1742
+ outputFormat: "json";
1743
+ status: 404;
1744
+ input: {
1745
+ param: {
1746
+ invitationId: string;
1747
+ };
1748
+ };
1749
+ } | {
1750
+ output: {
1751
+ orgId: string;
1752
+ role: "admin" | "member" | "owner";
1753
+ userId: string;
1754
+ };
1755
+ outputFormat: "json";
1756
+ status: 200;
1757
+ input: {
1758
+ param: {
1759
+ invitationId: string;
1760
+ };
1761
+ };
1762
+ };
1763
+ };
1764
+ }, "/"> | import("hono/types").MergeSchemaPath<{
1765
+ "/v1/orgs": {
1766
+ $get: {
1767
+ output: {
1768
+ error: {
1769
+ code: "api_key_malformed";
1770
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1771
+ message: string;
1772
+ };
1773
+ requestId: string;
1774
+ };
1775
+ outputFormat: "json";
1776
+ status: 400;
1777
+ input: {};
1778
+ } | {
1779
+ output: {
1780
+ error: {
1781
+ code: "api_key_invalid" | "api_key_missing";
1782
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1783
+ message: string;
1784
+ };
1785
+ requestId: string;
1786
+ };
1787
+ outputFormat: "json";
1788
+ status: 401;
1789
+ input: {};
1790
+ } | {
1791
+ output: {
1792
+ error: {
1793
+ code: "upstream_error";
1794
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1795
+ message: string;
1796
+ };
1797
+ requestId: string;
1798
+ };
1799
+ outputFormat: "json";
1800
+ status: 502;
1801
+ input: {};
1802
+ } | {
1803
+ output: {
1804
+ error: {
1805
+ code: "forbidden";
1806
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1807
+ message: string;
1808
+ };
1809
+ requestId: string;
1810
+ };
1811
+ outputFormat: "json";
1812
+ status: 403;
1813
+ input: {};
1814
+ } | {
1815
+ output: {
1816
+ data: {
1817
+ createdAt: string;
1818
+ id: string;
1819
+ name: string;
1820
+ updatedAt: string;
1821
+ }[];
1822
+ };
1823
+ outputFormat: "json";
1824
+ status: 200;
1825
+ input: {};
1826
+ };
1827
+ };
1828
+ } & {
1829
+ "/v1/orgs": {
1830
+ $post: {
1831
+ output: {
1832
+ error: {
1833
+ code: "api_key_malformed";
1834
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1835
+ message: string;
1836
+ };
1837
+ requestId: string;
1838
+ };
1839
+ outputFormat: "json";
1840
+ status: 400;
1841
+ input: {
1842
+ json: {
1843
+ name: string;
1844
+ };
1845
+ };
1846
+ } | {
1847
+ output: {
1848
+ error: {
1849
+ code: "api_key_invalid" | "api_key_missing";
1850
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1851
+ message: string;
1852
+ };
1853
+ requestId: string;
1854
+ };
1855
+ outputFormat: "json";
1856
+ status: 401;
1857
+ input: {
1858
+ json: {
1859
+ name: string;
1860
+ };
1861
+ };
1862
+ } | {
1863
+ output: {
1864
+ error: {
1865
+ code: "upstream_error";
1866
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1867
+ message: string;
1868
+ };
1869
+ requestId: string;
1870
+ };
1871
+ outputFormat: "json";
1872
+ status: 502;
1873
+ input: {
1874
+ json: {
1875
+ name: string;
1876
+ };
1877
+ };
1878
+ } | {
1879
+ output: {
1880
+ error: {
1881
+ code: "forbidden";
1882
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1883
+ message: string;
1884
+ };
1885
+ requestId: string;
1886
+ };
1887
+ outputFormat: "json";
1888
+ status: 403;
1889
+ input: {
1890
+ json: {
1891
+ name: string;
1892
+ };
1893
+ };
1894
+ } | {
1895
+ output: {
1896
+ error: {
1897
+ code: "body_invalid";
1898
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1899
+ message: string;
1900
+ };
1901
+ requestId: string;
1902
+ };
1903
+ outputFormat: "json";
1904
+ status: 400;
1905
+ input: {
1906
+ json: {
1907
+ name: string;
1908
+ };
1909
+ };
1910
+ } | {
1911
+ output: {
1912
+ createdAt: string;
1913
+ id: string;
1914
+ name: string;
1915
+ updatedAt: string;
1916
+ };
1917
+ outputFormat: "json";
1918
+ status: 200;
1919
+ input: {
1920
+ json: {
1921
+ name: string;
1922
+ };
1923
+ };
1924
+ };
1925
+ };
1926
+ } & {
1927
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
1928
+ $get: {
1929
+ output: {
1930
+ error: {
1931
+ code: "api_key_malformed";
1932
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1933
+ message: string;
1934
+ };
1935
+ requestId: string;
1936
+ };
1937
+ outputFormat: "json";
1938
+ status: 400;
1939
+ input: {
1940
+ param: {
1941
+ orgId: string;
1942
+ };
1943
+ };
1944
+ } | {
1945
+ output: {
1946
+ error: {
1947
+ code: "api_key_invalid" | "api_key_missing";
1948
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1949
+ message: string;
1950
+ };
1951
+ requestId: string;
1952
+ };
1953
+ outputFormat: "json";
1954
+ status: 401;
1955
+ input: {
1956
+ param: {
1957
+ orgId: string;
1958
+ };
1959
+ };
1960
+ } | {
1961
+ output: {
1962
+ error: {
1963
+ code: "forbidden";
1964
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1965
+ message: string;
1966
+ };
1967
+ requestId: string;
1968
+ };
1969
+ outputFormat: "json";
1970
+ status: 403;
1971
+ input: {
1972
+ param: {
1973
+ orgId: string;
1974
+ };
1975
+ };
1976
+ } | {
1977
+ output: {
1978
+ error: {
1979
+ code: "param_invalid";
1980
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1981
+ message: string;
1982
+ };
1983
+ requestId: string;
1984
+ };
1985
+ outputFormat: "json";
1986
+ status: 400;
1987
+ input: {
1988
+ param: {
1989
+ orgId: string;
1990
+ };
1991
+ };
1992
+ } | {
1993
+ output: {
1994
+ error: {
1995
+ code: "organization_not_found";
1996
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
1997
+ message: string;
1998
+ };
1999
+ requestId: string;
2000
+ };
2001
+ outputFormat: "json";
2002
+ status: 404;
2003
+ input: {
2004
+ param: {
2005
+ orgId: string;
2006
+ };
2007
+ };
2008
+ } | {
2009
+ output: {
2010
+ createdAt: string;
2011
+ id: string;
2012
+ name: string;
2013
+ updatedAt: string;
2014
+ };
2015
+ outputFormat: "json";
2016
+ status: 200;
2017
+ input: {
2018
+ param: {
2019
+ orgId: string;
2020
+ };
2021
+ };
2022
+ };
2023
+ };
2024
+ } & {
2025
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2026
+ $patch: {
2027
+ output: {
2028
+ error: {
2029
+ code: "api_key_malformed";
2030
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2031
+ message: string;
2032
+ };
2033
+ requestId: string;
2034
+ };
2035
+ outputFormat: "json";
2036
+ status: 400;
2037
+ input: {
2038
+ param: {
2039
+ orgId: string;
2040
+ };
2041
+ } & {
2042
+ json: {
2043
+ name: string;
2044
+ };
2045
+ };
2046
+ } | {
2047
+ output: {
2048
+ error: {
2049
+ code: "api_key_invalid" | "api_key_missing";
2050
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2051
+ message: string;
2052
+ };
2053
+ requestId: string;
2054
+ };
2055
+ outputFormat: "json";
2056
+ status: 401;
2057
+ input: {
2058
+ param: {
2059
+ orgId: string;
2060
+ };
2061
+ } & {
2062
+ json: {
2063
+ name: string;
2064
+ };
2065
+ };
2066
+ } | {
2067
+ output: {
2068
+ error: {
2069
+ code: "upstream_error";
2070
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2071
+ message: string;
2072
+ };
2073
+ requestId: string;
2074
+ };
2075
+ outputFormat: "json";
2076
+ status: 502;
2077
+ input: {
2078
+ param: {
2079
+ orgId: string;
2080
+ };
2081
+ } & {
2082
+ json: {
2083
+ name: string;
2084
+ };
2085
+ };
2086
+ } | {
2087
+ output: {
2088
+ error: {
2089
+ code: "forbidden";
2090
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2091
+ message: string;
2092
+ };
2093
+ requestId: string;
2094
+ };
2095
+ outputFormat: "json";
2096
+ status: 403;
2097
+ input: {
2098
+ param: {
2099
+ orgId: string;
2100
+ };
2101
+ } & {
2102
+ json: {
2103
+ name: string;
2104
+ };
2105
+ };
2106
+ } | {
2107
+ output: {
2108
+ error: {
2109
+ code: "param_invalid";
2110
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2111
+ message: string;
2112
+ };
2113
+ requestId: string;
2114
+ };
2115
+ outputFormat: "json";
2116
+ status: 400;
2117
+ input: {
2118
+ param: {
2119
+ orgId: string;
2120
+ };
2121
+ } & {
2122
+ json: {
2123
+ name: string;
2124
+ };
2125
+ };
2126
+ } | {
2127
+ output: {
2128
+ error: {
2129
+ code: "body_invalid";
2130
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2131
+ message: string;
2132
+ };
2133
+ requestId: string;
2134
+ };
2135
+ outputFormat: "json";
2136
+ status: 400;
2137
+ input: {
2138
+ param: {
2139
+ orgId: string;
2140
+ };
2141
+ } & {
2142
+ json: {
2143
+ name: string;
2144
+ };
2145
+ };
2146
+ } | {
2147
+ output: {
2148
+ error: {
2149
+ code: "organization_not_found";
2150
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2151
+ message: string;
2152
+ };
2153
+ requestId: string;
2154
+ };
2155
+ outputFormat: "json";
2156
+ status: 404;
2157
+ input: {
2158
+ param: {
2159
+ orgId: string;
2160
+ };
2161
+ } & {
2162
+ json: {
2163
+ name: string;
2164
+ };
2165
+ };
2166
+ } | {
2167
+ output: {
2168
+ createdAt: string;
2169
+ id: string;
2170
+ name: string;
2171
+ updatedAt: string;
2172
+ };
2173
+ outputFormat: "json";
2174
+ status: 200;
2175
+ input: {
2176
+ param: {
2177
+ orgId: string;
2178
+ };
2179
+ } & {
2180
+ json: {
2181
+ name: string;
2182
+ };
2183
+ };
2184
+ };
2185
+ };
2186
+ } & {
2187
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}": {
2188
+ $delete: {
2189
+ output: {
2190
+ error: {
2191
+ code: "api_key_malformed";
2192
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2193
+ message: string;
2194
+ };
2195
+ requestId: string;
2196
+ };
2197
+ outputFormat: "json";
2198
+ status: 400;
2199
+ input: {
2200
+ param: {
2201
+ orgId: string;
2202
+ };
2203
+ };
2204
+ } | {
2205
+ output: {
2206
+ error: {
2207
+ code: "api_key_invalid" | "api_key_missing";
2208
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2209
+ message: string;
2210
+ };
2211
+ requestId: string;
2212
+ };
2213
+ outputFormat: "json";
2214
+ status: 401;
2215
+ input: {
2216
+ param: {
2217
+ orgId: string;
2218
+ };
2219
+ };
2220
+ } | {
2221
+ output: {
2222
+ error: {
2223
+ code: "upstream_error";
2224
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2225
+ message: string;
2226
+ };
2227
+ requestId: string;
2228
+ };
2229
+ outputFormat: "json";
2230
+ status: 502;
2231
+ input: {
2232
+ param: {
2233
+ orgId: string;
2234
+ };
2235
+ };
2236
+ } | {
2237
+ output: {
2238
+ error: {
2239
+ code: "forbidden";
2240
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2241
+ message: string;
2242
+ };
2243
+ requestId: string;
2244
+ };
2245
+ outputFormat: "json";
2246
+ status: 403;
2247
+ input: {
2248
+ param: {
2249
+ orgId: string;
2250
+ };
2251
+ };
2252
+ } | {
2253
+ output: {
2254
+ error: {
2255
+ code: "param_invalid";
2256
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2257
+ message: string;
2258
+ };
2259
+ requestId: string;
2260
+ };
2261
+ outputFormat: "json";
2262
+ status: 400;
2263
+ input: {
2264
+ param: {
2265
+ orgId: string;
2266
+ };
2267
+ };
2268
+ } | {
2269
+ output: {
2270
+ error: {
2271
+ code: "organization_not_found";
2272
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2273
+ message: string;
2274
+ };
2275
+ requestId: string;
2276
+ };
2277
+ outputFormat: "json";
2278
+ status: 404;
2279
+ input: {
2280
+ param: {
2281
+ orgId: string;
2282
+ };
2283
+ };
2284
+ } | {
2285
+ output: {
2286
+ id: string;
2287
+ };
2288
+ outputFormat: "json";
2289
+ status: 200;
2290
+ input: {
2291
+ param: {
2292
+ orgId: string;
2293
+ };
2294
+ };
2295
+ };
2296
+ };
2297
+ }, "/"> | import("hono/types").MergeSchemaPath<{
2298
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2299
+ $get: {
2300
+ output: {
2301
+ error: {
2302
+ code: "api_key_malformed";
2303
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2304
+ message: string;
2305
+ };
2306
+ requestId: string;
2307
+ };
2308
+ outputFormat: "json";
2309
+ status: 400;
2310
+ input: {
2311
+ param: {
2312
+ orgId: string;
2313
+ };
2314
+ };
2315
+ } | {
2316
+ output: {
2317
+ error: {
2318
+ code: "api_key_invalid" | "api_key_missing";
2319
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2320
+ message: string;
2321
+ };
2322
+ requestId: string;
2323
+ };
2324
+ outputFormat: "json";
2325
+ status: 401;
2326
+ input: {
2327
+ param: {
2328
+ orgId: string;
2329
+ };
2330
+ };
2331
+ } | {
2332
+ output: {
2333
+ error: {
2334
+ code: "upstream_error";
2335
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2336
+ message: string;
2337
+ };
2338
+ requestId: string;
2339
+ };
2340
+ outputFormat: "json";
2341
+ status: 502;
2342
+ input: {
2343
+ param: {
2344
+ orgId: string;
2345
+ };
2346
+ };
2347
+ } | {
2348
+ output: {
2349
+ error: {
2350
+ code: "forbidden";
2351
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2352
+ message: string;
2353
+ };
2354
+ requestId: string;
2355
+ };
2356
+ outputFormat: "json";
2357
+ status: 403;
2358
+ input: {
2359
+ param: {
2360
+ orgId: string;
2361
+ };
2362
+ };
2363
+ } | {
2364
+ output: {
2365
+ error: {
2366
+ code: "param_invalid";
2367
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2368
+ message: string;
2369
+ };
2370
+ requestId: string;
2371
+ };
2372
+ outputFormat: "json";
2373
+ status: 400;
2374
+ input: {
2375
+ param: {
2376
+ orgId: string;
2377
+ };
2378
+ };
2379
+ } | {
2380
+ output: {
2381
+ error: {
2382
+ code: "organization_not_found";
2383
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2384
+ message: string;
2385
+ };
2386
+ requestId: string;
2387
+ };
2388
+ outputFormat: "json";
2389
+ status: 404;
2390
+ input: {
2391
+ param: {
2392
+ orgId: string;
2393
+ };
2394
+ };
2395
+ } | {
2396
+ output: {
2397
+ data: {
2398
+ createdAt: string;
2399
+ environments: ("production" | "sandbox")[];
2400
+ id: string;
2401
+ name: string;
2402
+ orgId: string;
2403
+ updatedAt: string;
2404
+ }[];
2405
+ };
2406
+ outputFormat: "json";
2407
+ status: 200;
2408
+ input: {
2409
+ param: {
2410
+ orgId: string;
2411
+ };
2412
+ };
2413
+ };
2414
+ };
2415
+ } & {
2416
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects": {
2417
+ $post: {
2418
+ output: {
2419
+ error: {
2420
+ code: "api_key_malformed";
2421
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2422
+ message: string;
2423
+ };
2424
+ requestId: string;
2425
+ };
2426
+ outputFormat: "json";
2427
+ status: 400;
2428
+ input: {
2429
+ param: {
2430
+ orgId: string;
2431
+ };
2432
+ } & {
2433
+ json: {
2434
+ name: string;
2435
+ };
2436
+ };
2437
+ } | {
2438
+ output: {
2439
+ error: {
2440
+ code: "api_key_invalid" | "api_key_missing";
2441
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2442
+ message: string;
2443
+ };
2444
+ requestId: string;
2445
+ };
2446
+ outputFormat: "json";
2447
+ status: 401;
2448
+ input: {
2449
+ param: {
2450
+ orgId: string;
2451
+ };
2452
+ } & {
2453
+ json: {
2454
+ name: string;
2455
+ };
2456
+ };
2457
+ } | {
2458
+ output: {
2459
+ error: {
2460
+ code: "upstream_error";
2461
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2462
+ message: string;
2463
+ };
2464
+ requestId: string;
2465
+ };
2466
+ outputFormat: "json";
2467
+ status: 502;
2468
+ input: {
2469
+ param: {
2470
+ orgId: string;
2471
+ };
2472
+ } & {
2473
+ json: {
2474
+ name: string;
2475
+ };
2476
+ };
2477
+ } | {
2478
+ output: {
2479
+ error: {
2480
+ code: "forbidden";
2481
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2482
+ message: string;
2483
+ };
2484
+ requestId: string;
2485
+ };
2486
+ outputFormat: "json";
2487
+ status: 403;
2488
+ input: {
2489
+ param: {
2490
+ orgId: string;
2491
+ };
2492
+ } & {
2493
+ json: {
2494
+ name: string;
2495
+ };
2496
+ };
2497
+ } | {
2498
+ output: {
2499
+ error: {
2500
+ code: "param_invalid";
2501
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2502
+ message: string;
2503
+ };
2504
+ requestId: string;
2505
+ };
2506
+ outputFormat: "json";
2507
+ status: 400;
2508
+ input: {
2509
+ param: {
2510
+ orgId: string;
2511
+ };
2512
+ } & {
2513
+ json: {
2514
+ name: string;
2515
+ };
2516
+ };
2517
+ } | {
2518
+ output: {
2519
+ error: {
2520
+ code: "body_invalid";
2521
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2522
+ message: string;
2523
+ };
2524
+ requestId: string;
2525
+ };
2526
+ outputFormat: "json";
2527
+ status: 400;
2528
+ input: {
2529
+ param: {
2530
+ orgId: string;
2531
+ };
2532
+ } & {
2533
+ json: {
2534
+ name: string;
2535
+ };
2536
+ };
2537
+ } | {
2538
+ output: {
2539
+ error: {
2540
+ code: "organization_not_found";
2541
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2542
+ message: string;
2543
+ };
2544
+ requestId: string;
2545
+ };
2546
+ outputFormat: "json";
2547
+ status: 404;
2548
+ input: {
2549
+ param: {
2550
+ orgId: string;
2551
+ };
2552
+ } & {
2553
+ json: {
2554
+ name: string;
2555
+ };
2556
+ };
2557
+ } | {
2558
+ output: {
2559
+ createdAt: string;
2560
+ environments: ("production" | "sandbox")[];
2561
+ id: string;
2562
+ name: string;
2563
+ orgId: string;
2564
+ updatedAt: string;
2565
+ };
2566
+ outputFormat: "json";
2567
+ status: 200;
2568
+ input: {
2569
+ param: {
2570
+ orgId: string;
2571
+ };
2572
+ } & {
2573
+ json: {
2574
+ name: string;
2575
+ };
2576
+ };
2577
+ };
2578
+ };
2579
+ } & {
2580
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
2581
+ $get: {
2582
+ output: {
2583
+ error: {
2584
+ code: "api_key_malformed";
2585
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2586
+ message: string;
2587
+ };
2588
+ requestId: string;
2589
+ };
2590
+ outputFormat: "json";
2591
+ status: 400;
2592
+ input: {
2593
+ param: {
2594
+ orgId: string;
2595
+ projectId: string;
2596
+ };
2597
+ };
2598
+ } | {
2599
+ output: {
2600
+ error: {
2601
+ code: "api_key_invalid" | "api_key_missing";
2602
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2603
+ message: string;
2604
+ };
2605
+ requestId: string;
2606
+ };
2607
+ outputFormat: "json";
2608
+ status: 401;
2609
+ input: {
2610
+ param: {
2611
+ orgId: string;
2612
+ projectId: string;
2613
+ };
2614
+ };
2615
+ } | {
2616
+ output: {
2617
+ error: {
2618
+ code: "forbidden";
2619
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2620
+ message: string;
2621
+ };
2622
+ requestId: string;
2623
+ };
2624
+ outputFormat: "json";
2625
+ status: 403;
2626
+ input: {
2627
+ param: {
2628
+ orgId: string;
2629
+ projectId: string;
2630
+ };
2631
+ };
2632
+ } | {
2633
+ output: {
2634
+ error: {
2635
+ code: "organization_not_found" | "project_not_found";
2636
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2637
+ message: string;
2638
+ };
2639
+ requestId: string;
2640
+ };
2641
+ outputFormat: "json";
2642
+ status: 404;
2643
+ input: {
2644
+ param: {
2645
+ orgId: string;
2646
+ projectId: string;
2647
+ };
2648
+ };
2649
+ } | {
2650
+ output: {
2651
+ error: {
2652
+ code: "param_invalid";
2653
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2654
+ message: string;
2655
+ };
2656
+ requestId: string;
2657
+ };
2658
+ outputFormat: "json";
2659
+ status: 400;
2660
+ input: {
2661
+ param: {
2662
+ orgId: string;
2663
+ projectId: string;
2664
+ };
2665
+ };
2666
+ } | {
2667
+ output: {
2668
+ createdAt: string;
2669
+ environments: ("production" | "sandbox")[];
2670
+ id: string;
2671
+ name: string;
2672
+ orgId: string;
2673
+ updatedAt: string;
2674
+ };
2675
+ outputFormat: "json";
2676
+ status: 200;
2677
+ input: {
2678
+ param: {
2679
+ orgId: string;
2680
+ projectId: string;
2681
+ };
2682
+ };
2683
+ };
2684
+ };
2685
+ } & {
2686
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
2687
+ $patch: {
2688
+ output: {
2689
+ error: {
2690
+ code: "api_key_malformed";
2691
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2692
+ message: string;
2693
+ };
2694
+ requestId: string;
2695
+ };
2696
+ outputFormat: "json";
2697
+ status: 400;
2698
+ input: {
2699
+ param: {
2700
+ orgId: string;
2701
+ projectId: string;
2702
+ };
2703
+ } & {
2704
+ json: {
2705
+ name: string;
2706
+ };
2707
+ };
2708
+ } | {
2709
+ output: {
2710
+ error: {
2711
+ code: "api_key_invalid" | "api_key_missing";
2712
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2713
+ message: string;
2714
+ };
2715
+ requestId: string;
2716
+ };
2717
+ outputFormat: "json";
2718
+ status: 401;
2719
+ input: {
2720
+ param: {
2721
+ orgId: string;
2722
+ projectId: string;
2723
+ };
2724
+ } & {
2725
+ json: {
2726
+ name: string;
2727
+ };
2728
+ };
2729
+ } | {
2730
+ output: {
2731
+ error: {
2732
+ code: "upstream_error";
2733
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2734
+ message: string;
2735
+ };
2736
+ requestId: string;
2737
+ };
2738
+ outputFormat: "json";
2739
+ status: 502;
2740
+ input: {
2741
+ param: {
2742
+ orgId: string;
2743
+ projectId: string;
2744
+ };
2745
+ } & {
2746
+ json: {
2747
+ name: string;
2748
+ };
2749
+ };
2750
+ } | {
2751
+ output: {
2752
+ error: {
2753
+ code: "forbidden";
2754
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2755
+ message: string;
2756
+ };
2757
+ requestId: string;
2758
+ };
2759
+ outputFormat: "json";
2760
+ status: 403;
2761
+ input: {
2762
+ param: {
2763
+ orgId: string;
2764
+ projectId: string;
2765
+ };
2766
+ } & {
2767
+ json: {
2768
+ name: string;
2769
+ };
2770
+ };
2771
+ } | {
2772
+ output: {
2773
+ error: {
2774
+ code: "organization_not_found" | "project_not_found";
2775
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2776
+ message: string;
2777
+ };
2778
+ requestId: string;
2779
+ };
2780
+ outputFormat: "json";
2781
+ status: 404;
2782
+ input: {
2783
+ param: {
2784
+ orgId: string;
2785
+ projectId: string;
2786
+ };
2787
+ } & {
2788
+ json: {
2789
+ name: string;
2790
+ };
2791
+ };
2792
+ } | {
2793
+ output: {
2794
+ error: {
2795
+ code: "param_invalid";
2796
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2797
+ message: string;
2798
+ };
2799
+ requestId: string;
2800
+ };
2801
+ outputFormat: "json";
2802
+ status: 400;
2803
+ input: {
2804
+ param: {
2805
+ orgId: string;
2806
+ projectId: string;
2807
+ };
2808
+ } & {
2809
+ json: {
2810
+ name: string;
2811
+ };
2812
+ };
2813
+ } | {
2814
+ output: {
2815
+ error: {
2816
+ code: "body_invalid";
2817
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2818
+ message: string;
2819
+ };
2820
+ requestId: string;
2821
+ };
2822
+ outputFormat: "json";
2823
+ status: 400;
2824
+ input: {
2825
+ param: {
2826
+ orgId: string;
2827
+ projectId: string;
2828
+ };
2829
+ } & {
2830
+ json: {
2831
+ name: string;
2832
+ };
2833
+ };
2834
+ } | {
2835
+ output: {
2836
+ createdAt: string;
2837
+ environments: ("production" | "sandbox")[];
2838
+ id: string;
2839
+ name: string;
2840
+ orgId: string;
2841
+ updatedAt: string;
2842
+ };
2843
+ outputFormat: "json";
2844
+ status: 200;
2845
+ input: {
2846
+ param: {
2847
+ orgId: string;
2848
+ projectId: string;
2849
+ };
2850
+ } & {
2851
+ json: {
2852
+ name: string;
2853
+ };
2854
+ };
2855
+ };
2856
+ };
2857
+ } & {
2858
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
2859
+ $delete: {
2860
+ output: {
2861
+ error: {
2862
+ code: "api_key_malformed";
2863
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2864
+ message: string;
2865
+ };
2866
+ requestId: string;
2867
+ };
2868
+ outputFormat: "json";
2869
+ status: 400;
2870
+ input: {
2871
+ param: {
2872
+ orgId: string;
2873
+ projectId: string;
2874
+ };
2875
+ };
2876
+ } | {
2877
+ output: {
2878
+ error: {
2879
+ code: "api_key_invalid" | "api_key_missing";
2880
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2881
+ message: string;
2882
+ };
2883
+ requestId: string;
2884
+ };
2885
+ outputFormat: "json";
2886
+ status: 401;
2887
+ input: {
2888
+ param: {
2889
+ orgId: string;
2890
+ projectId: string;
2891
+ };
2892
+ };
2893
+ } | {
2894
+ output: {
2895
+ error: {
2896
+ code: "upstream_error";
2897
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2898
+ message: string;
2899
+ };
2900
+ requestId: string;
2901
+ };
2902
+ outputFormat: "json";
2903
+ status: 502;
2904
+ input: {
2905
+ param: {
2906
+ orgId: string;
2907
+ projectId: string;
2908
+ };
2909
+ };
2910
+ } | {
2911
+ output: {
2912
+ error: {
2913
+ code: "forbidden";
2914
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2915
+ message: string;
2916
+ };
2917
+ requestId: string;
2918
+ };
2919
+ outputFormat: "json";
2920
+ status: 403;
2921
+ input: {
2922
+ param: {
2923
+ orgId: string;
2924
+ projectId: string;
2925
+ };
2926
+ };
2927
+ } | {
2928
+ output: {
2929
+ error: {
2930
+ code: "organization_not_found" | "project_not_found";
2931
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2932
+ message: string;
2933
+ };
2934
+ requestId: string;
2935
+ };
2936
+ outputFormat: "json";
2937
+ status: 404;
2938
+ input: {
2939
+ param: {
2940
+ orgId: string;
2941
+ projectId: string;
2942
+ };
2943
+ };
2944
+ } | {
2945
+ output: {
2946
+ error: {
2947
+ code: "param_invalid";
2948
+ details?: readonly import("../../internal/Response.js").error.Detail[] | undefined;
2949
+ message: string;
2950
+ };
2951
+ requestId: string;
2952
+ };
2953
+ outputFormat: "json";
2954
+ status: 400;
2955
+ input: {
2956
+ param: {
2957
+ orgId: string;
2958
+ projectId: string;
2959
+ };
2960
+ };
2961
+ } | {
2962
+ output: {
2963
+ id: string;
2964
+ };
2965
+ outputFormat: "json";
2966
+ status: 200;
2967
+ input: {
2968
+ param: {
2969
+ orgId: string;
2970
+ projectId: string;
2971
+ };
2972
+ };
2973
+ };
2974
+ };
2975
+ }, "/">, "/", "*">;
2976
+ export declare namespace platform {
2977
+ /** Options for the platform route group. */
2978
+ type Options = {
2979
+ /** Expose the API-key management routes in the OpenAPI document. @default true */
2980
+ apiKeys?: boolean | undefined;
2981
+ /** Transactional email sender for platform emails (e.g. invitations); omit to disable dispatch — notified flows still work in-product. */
2982
+ email?: Email | undefined;
2983
+ };
2984
+ }
2985
+ //# sourceMappingURL=App.d.ts.map