tapimo 0.1.0 → 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 (385) hide show
  1. package/README.md +28 -15
  2. package/dist/ApiKey.d.ts +3 -1
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +1 -0
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +71 -3
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +117 -1
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +7139 -4197
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +133 -329
  13. package/dist/App.js.map +1 -1
  14. package/dist/Scope.d.ts +11 -4
  15. package/dist/Scope.d.ts.map +1 -1
  16. package/dist/Scope.js +12 -4
  17. package/dist/Scope.js.map +1 -1
  18. package/dist/Webhooks.d.ts +2 -2
  19. package/dist/Webhooks.d.ts.map +1 -1
  20. package/dist/Webhooks.js +2 -2
  21. package/dist/Webhooks.js.map +1 -1
  22. package/dist/admin/App.d.ts +126 -53
  23. package/dist/admin/App.d.ts.map +1 -1
  24. package/dist/admin/apps/api-keys.d.ts +104 -6
  25. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  26. package/dist/admin/apps/api-keys.js +67 -0
  27. package/dist/admin/apps/api-keys.js.map +1 -1
  28. package/dist/admin/apps/scopes.d.ts +4 -1
  29. package/dist/admin/apps/scopes.d.ts.map +1 -1
  30. package/dist/admin/apps/verified-tokens.d.ts +115 -115
  31. package/dist/admin/apps/verified-tokens.js +1 -1
  32. package/dist/admin/apps/verified-tokens.js.map +1 -1
  33. package/dist/admin/ui.generated.d.ts +1 -1
  34. package/dist/admin/ui.generated.js +1 -1
  35. package/dist/apps/data/App.d.ts +19176 -0
  36. package/dist/apps/data/App.d.ts.map +1 -0
  37. package/dist/apps/data/App.js +236 -0
  38. package/dist/apps/data/App.js.map +1 -0
  39. package/dist/apps/data/index.d.ts +3 -0
  40. package/dist/apps/data/index.d.ts.map +1 -0
  41. package/dist/apps/data/index.js +3 -0
  42. package/dist/apps/data/index.js.map +1 -0
  43. package/dist/apps/{activities.d.ts → data/routes/activities.d.ts} +32 -32
  44. package/dist/apps/{activities.d.ts.map → data/routes/activities.d.ts.map} +1 -1
  45. package/dist/apps/{activities.js → data/routes/activities.js} +13 -13
  46. package/dist/apps/data/routes/activities.js.map +1 -0
  47. package/dist/apps/{addresses.d.ts → data/routes/addresses.d.ts} +22 -22
  48. package/dist/apps/{addresses.d.ts.map → data/routes/addresses.d.ts.map} +1 -1
  49. package/dist/apps/{addresses.js → data/routes/addresses.js} +5 -5
  50. package/dist/apps/data/routes/addresses.js.map +1 -0
  51. package/dist/apps/{balances.d.ts → data/routes/balances.d.ts} +49 -49
  52. package/dist/apps/data/routes/balances.d.ts.map +1 -0
  53. package/dist/apps/{balances.js → data/routes/balances.js} +42 -11
  54. package/dist/apps/data/routes/balances.js.map +1 -0
  55. package/dist/apps/{blocks.d.ts → data/routes/blocks.d.ts} +47 -47
  56. package/dist/apps/data/routes/blocks.d.ts.map +1 -0
  57. package/dist/apps/{blocks.js → data/routes/blocks.js} +13 -13
  58. package/dist/apps/data/routes/blocks.js.map +1 -0
  59. package/dist/apps/{coingecko.d.ts → data/routes/coingecko.d.ts} +183 -183
  60. package/dist/apps/data/routes/coingecko.d.ts.map +1 -0
  61. package/dist/apps/{coingecko.js → data/routes/coingecko.js} +13 -13
  62. package/dist/apps/data/routes/coingecko.js.map +1 -0
  63. package/dist/apps/{exchanges.d.ts → data/routes/exchanges.d.ts} +460 -460
  64. package/dist/apps/data/routes/exchanges.d.ts.map +1 -0
  65. package/dist/apps/{exchanges.js → data/routes/exchanges.js} +19 -19
  66. package/dist/apps/data/routes/exchanges.js.map +1 -0
  67. package/dist/apps/{fee-amm.d.ts → data/routes/fee-amm.d.ts} +94 -94
  68. package/dist/apps/data/routes/fee-amm.d.ts.map +1 -0
  69. package/dist/apps/{fee-amm.js → data/routes/fee-amm.js} +17 -17
  70. package/dist/apps/data/routes/fee-amm.js.map +1 -0
  71. package/dist/apps/{indexer.d.ts → data/routes/indexer.d.ts} +4 -4
  72. package/dist/apps/data/routes/indexer.d.ts.map +1 -0
  73. package/dist/apps/{indexer.js → data/routes/indexer.js} +13 -9
  74. package/dist/apps/data/routes/indexer.js.map +1 -0
  75. package/dist/apps/{receipts.d.ts → data/routes/receipts.d.ts} +49 -49
  76. package/dist/apps/data/routes/receipts.d.ts.map +1 -0
  77. package/dist/apps/{receipts.js → data/routes/receipts.js} +12 -12
  78. package/dist/apps/data/routes/receipts.js.map +1 -0
  79. package/dist/apps/{rpc.d.ts → data/routes/rpc.d.ts} +4 -4
  80. package/dist/apps/data/routes/rpc.d.ts.map +1 -0
  81. package/dist/apps/{rpc.js → data/routes/rpc.js} +6 -6
  82. package/dist/apps/data/routes/rpc.js.map +1 -0
  83. package/dist/apps/{tokenlist.d.ts → data/routes/tokenlist.d.ts} +4 -4
  84. package/dist/apps/data/routes/tokenlist.d.ts.map +1 -0
  85. package/dist/apps/{tokenlist.js → data/routes/tokenlist.js} +8 -8
  86. package/dist/apps/data/routes/tokenlist.js.map +1 -0
  87. package/dist/apps/{tokens.d.ts → data/routes/tokens.d.ts} +468 -468
  88. package/dist/apps/data/routes/tokens.d.ts.map +1 -0
  89. package/dist/apps/{tokens.js → data/routes/tokens.js} +19 -19
  90. package/dist/apps/data/routes/tokens.js.map +1 -0
  91. package/dist/apps/{transactions.d.ts → data/routes/transactions.d.ts} +304 -304
  92. package/dist/apps/data/routes/transactions.d.ts.map +1 -0
  93. package/dist/apps/{transactions.js → data/routes/transactions.js} +13 -13
  94. package/dist/apps/data/routes/transactions.js.map +1 -0
  95. package/dist/apps/{transfers.d.ts → data/routes/transfers.d.ts} +6 -6
  96. package/dist/apps/data/routes/transfers.d.ts.map +1 -0
  97. package/dist/apps/{transfers.js → data/routes/transfers.js} +13 -13
  98. package/dist/apps/data/routes/transfers.js.map +1 -0
  99. package/dist/apps/{verified-tokens.d.ts → data/routes/verified-tokens.d.ts} +42 -42
  100. package/dist/apps/data/routes/verified-tokens.d.ts.map +1 -0
  101. package/dist/apps/{verified-tokens.js → data/routes/verified-tokens.js} +9 -9
  102. package/dist/apps/data/routes/verified-tokens.js.map +1 -0
  103. package/dist/apps/{webhooks.d.ts → data/routes/webhooks.d.ts} +62 -62
  104. package/dist/apps/{webhooks.d.ts.map → data/routes/webhooks.d.ts.map} +1 -1
  105. package/dist/apps/{webhooks.js → data/routes/webhooks.js} +30 -26
  106. package/dist/apps/data/routes/webhooks.js.map +1 -0
  107. package/dist/apps/docs/App.d.ts +27 -0
  108. package/dist/apps/docs/App.d.ts.map +1 -0
  109. package/dist/apps/docs/App.js +122 -0
  110. package/dist/apps/docs/App.js.map +1 -0
  111. package/dist/{internal/OpenApi.fonts.d.ts → apps/docs/fonts.d.ts} +1 -1
  112. package/dist/apps/docs/fonts.d.ts.map +1 -0
  113. package/dist/{internal/OpenApi.fonts.js → apps/docs/fonts.js} +1 -1
  114. package/dist/apps/docs/fonts.js.map +1 -0
  115. package/dist/apps/docs/index.d.ts +2 -0
  116. package/dist/apps/docs/index.d.ts.map +1 -0
  117. package/dist/apps/docs/index.js +2 -0
  118. package/dist/apps/docs/index.js.map +1 -0
  119. package/dist/{internal/OpenApi.logo.d.ts → apps/docs/logo.d.ts} +1 -1
  120. package/dist/apps/docs/logo.d.ts.map +1 -0
  121. package/dist/{internal/OpenApi.logo.js → apps/docs/logo.js} +1 -1
  122. package/dist/apps/docs/logo.js.map +1 -0
  123. package/dist/apps/index.d.ts +4 -0
  124. package/dist/apps/index.d.ts.map +1 -0
  125. package/dist/apps/index.js +4 -0
  126. package/dist/apps/index.js.map +1 -0
  127. package/dist/apps/metadata.d.ts +7 -0
  128. package/dist/apps/metadata.d.ts.map +1 -0
  129. package/dist/apps/metadata.js +15 -0
  130. package/dist/apps/metadata.js.map +1 -0
  131. package/dist/apps/platform/App.d.ts +2985 -0
  132. package/dist/apps/platform/App.d.ts.map +1 -0
  133. package/dist/apps/platform/App.js +74 -0
  134. package/dist/apps/platform/App.js.map +1 -0
  135. package/dist/apps/platform/index.d.ts +2 -0
  136. package/dist/apps/platform/index.d.ts.map +1 -0
  137. package/dist/apps/platform/index.js +2 -0
  138. package/dist/apps/platform/index.js.map +1 -0
  139. package/dist/apps/platform/routes/api-keys.d.ts +681 -0
  140. package/dist/apps/platform/routes/api-keys.d.ts.map +1 -0
  141. package/dist/apps/platform/routes/api-keys.js +328 -0
  142. package/dist/apps/platform/routes/api-keys.js.map +1 -0
  143. package/dist/apps/platform/routes/invitations.d.ts +733 -0
  144. package/dist/apps/platform/routes/invitations.d.ts.map +1 -0
  145. package/dist/apps/platform/routes/invitations.js +413 -0
  146. package/dist/apps/platform/routes/invitations.js.map +1 -0
  147. package/dist/apps/platform/routes/me.d.ts +95 -0
  148. package/dist/apps/platform/routes/me.d.ts.map +1 -0
  149. package/dist/apps/platform/routes/me.js +81 -0
  150. package/dist/apps/platform/routes/me.js.map +1 -0
  151. package/dist/apps/platform/routes/members.d.ts +554 -0
  152. package/dist/apps/platform/routes/members.d.ts.map +1 -0
  153. package/dist/apps/platform/routes/members.js +251 -0
  154. package/dist/apps/platform/routes/members.js.map +1 -0
  155. package/dist/apps/platform/routes/orgs.d.ts +582 -0
  156. package/dist/apps/platform/routes/orgs.d.ts.map +1 -0
  157. package/dist/apps/platform/routes/orgs.js +265 -0
  158. package/dist/apps/platform/routes/orgs.js.map +1 -0
  159. package/dist/apps/platform/routes/projects.d.ts +740 -0
  160. package/dist/apps/platform/routes/projects.d.ts.map +1 -0
  161. package/dist/apps/platform/routes/projects.js +286 -0
  162. package/dist/apps/platform/routes/projects.js.map +1 -0
  163. package/dist/apps/relay/App.d.ts +41 -0
  164. package/dist/apps/relay/App.d.ts.map +1 -0
  165. package/dist/apps/relay/App.js +103 -0
  166. package/dist/apps/relay/App.js.map +1 -0
  167. package/dist/apps/relay/Sponsorships.d.ts +107 -0
  168. package/dist/apps/relay/Sponsorships.d.ts.map +1 -0
  169. package/dist/apps/relay/Sponsorships.js +193 -0
  170. package/dist/apps/relay/Sponsorships.js.map +1 -0
  171. package/dist/apps/relay/index.d.ts +3 -0
  172. package/dist/apps/relay/index.d.ts.map +1 -0
  173. package/dist/apps/relay/index.js +3 -0
  174. package/dist/apps/relay/index.js.map +1 -0
  175. package/dist/cli/Cli.d.ts +1 -1
  176. package/dist/cli/Cli.js +1 -1
  177. package/dist/cli/commands/admin.d.ts +1 -1
  178. package/dist/cli/commands/admin.js +2 -2
  179. package/dist/cli/commands/admin.js.map +1 -1
  180. package/dist/db/Db.d.ts +10 -0
  181. package/dist/db/Db.d.ts.map +1 -1
  182. package/dist/db/Db.js +128 -0
  183. package/dist/db/Db.js.map +1 -1
  184. package/dist/db/Schema.d.ts +80 -0
  185. package/dist/db/Schema.d.ts.map +1 -1
  186. package/dist/db/Schema.js +99 -0
  187. package/dist/db/Schema.js.map +1 -1
  188. package/dist/db/tables/invitations.d.ts +84 -0
  189. package/dist/db/tables/invitations.d.ts.map +1 -0
  190. package/dist/db/tables/invitations.js +165 -0
  191. package/dist/db/tables/invitations.js.map +1 -0
  192. package/dist/db/tables/memberships.d.ts +108 -0
  193. package/dist/db/tables/memberships.d.ts.map +1 -0
  194. package/dist/db/tables/memberships.js +153 -0
  195. package/dist/db/tables/memberships.js.map +1 -0
  196. package/dist/db/tables/organizations.d.ts +44 -0
  197. package/dist/db/tables/organizations.d.ts.map +1 -1
  198. package/dist/db/tables/organizations.js +89 -0
  199. package/dist/db/tables/organizations.js.map +1 -1
  200. package/dist/db/tables/projects.d.ts +65 -0
  201. package/dist/db/tables/projects.d.ts.map +1 -0
  202. package/dist/db/tables/projects.js +75 -0
  203. package/dist/db/tables/projects.js.map +1 -0
  204. package/dist/db/tables/sponsoredTransactions.d.ts +120 -0
  205. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -0
  206. package/dist/db/tables/sponsoredTransactions.js +161 -0
  207. package/dist/db/tables/sponsoredTransactions.js.map +1 -0
  208. package/dist/db/tables/users.d.ts +48 -0
  209. package/dist/db/tables/users.d.ts.map +1 -0
  210. package/dist/db/tables/users.js +65 -0
  211. package/dist/db/tables/users.js.map +1 -0
  212. package/dist/handlers/internal/executionError.d.ts.map +1 -1
  213. package/dist/handlers/internal/executionError.js +2 -0
  214. package/dist/handlers/internal/executionError.js.map +1 -1
  215. package/dist/handlers/internal/multisig.d.ts +2 -6
  216. package/dist/handlers/internal/multisig.d.ts.map +1 -1
  217. package/dist/handlers/internal/multisig.js +11 -36
  218. package/dist/handlers/internal/multisig.js.map +1 -1
  219. package/dist/handlers/internal/sponsorship.d.ts +32 -2
  220. package/dist/handlers/internal/sponsorship.d.ts.map +1 -1
  221. package/dist/handlers/internal/sponsorship.js +34 -9
  222. package/dist/handlers/internal/sponsorship.js.map +1 -1
  223. package/dist/handlers/relay.d.ts +6 -2
  224. package/dist/handlers/relay.d.ts.map +1 -1
  225. package/dist/handlers/relay.js +16 -2
  226. package/dist/handlers/relay.js.map +1 -1
  227. package/dist/internal/Auth.d.ts +208 -6
  228. package/dist/internal/Auth.d.ts.map +1 -1
  229. package/dist/internal/Auth.js +500 -21
  230. package/dist/internal/Auth.js.map +1 -1
  231. package/dist/internal/Log.d.ts +7 -3
  232. package/dist/internal/Log.d.ts.map +1 -1
  233. package/dist/internal/Log.js +4 -0
  234. package/dist/internal/Log.js.map +1 -1
  235. package/dist/internal/OpenApi.d.ts +0 -19
  236. package/dist/internal/OpenApi.d.ts.map +1 -1
  237. package/dist/internal/OpenApi.js +0 -57
  238. package/dist/internal/OpenApi.js.map +1 -1
  239. package/dist/internal/Store.d.ts +7 -1
  240. package/dist/internal/Store.d.ts.map +1 -1
  241. package/dist/internal/Store.js +16 -2
  242. package/dist/internal/Store.js.map +1 -1
  243. package/dist/internal/Viem.d.ts +84 -0
  244. package/dist/internal/Viem.d.ts.map +1 -1
  245. package/dist/internal/Webhooks.d.ts +1 -1
  246. package/dist/internal/Webhooks.d.ts.map +1 -1
  247. package/package.json +31 -5
  248. package/src/ApiKey.ts +1 -0
  249. package/src/ApiKeys.test.ts +104 -1
  250. package/src/ApiKeys.ts +154 -1
  251. package/src/App.test.ts +11187 -179
  252. package/src/App.ts +200 -420
  253. package/src/Client.test-d.ts +306 -15
  254. package/src/Scope.ts +13 -4
  255. package/src/Webhooks.ts +2 -2
  256. package/src/admin/apps/api-keys.test.ts +51 -0
  257. package/src/admin/apps/api-keys.ts +84 -0
  258. package/src/admin/apps/scopes.test.ts +5 -1
  259. package/src/admin/apps/verified-tokens.ts +1 -1
  260. package/src/admin/ui.generated.ts +1 -1
  261. package/src/apps/composition.test.ts +66 -0
  262. package/src/apps/data/App.ts +295 -0
  263. package/src/apps/data/index.ts +2 -0
  264. package/src/apps/{activities.test.ts → data/routes/activities.test.ts} +3 -3
  265. package/src/apps/{activities.ts → data/routes/activities.ts} +15 -15
  266. package/src/apps/{addresses.ts → data/routes/addresses.ts} +6 -6
  267. package/src/apps/{balances.test.ts → data/routes/balances.test.ts} +2 -2
  268. package/src/apps/{balances.ts → data/routes/balances.ts} +46 -12
  269. package/src/apps/{blocks.test.ts → data/routes/blocks.test.ts} +3 -3
  270. package/src/apps/{blocks.ts → data/routes/blocks.ts} +14 -14
  271. package/src/apps/{coingecko.test.ts → data/routes/coingecko.test.ts} +2 -2
  272. package/src/apps/{coingecko.ts → data/routes/coingecko.ts} +14 -14
  273. package/src/apps/{exchanges.test.ts → data/routes/exchanges.test.ts} +1 -1
  274. package/src/apps/{exchanges.ts → data/routes/exchanges.ts} +20 -20
  275. package/src/apps/{fee-amm.test.ts → data/routes/fee-amm.test.ts} +3 -3
  276. package/src/apps/{fee-amm.ts → data/routes/fee-amm.ts} +18 -18
  277. package/src/apps/{indexer.test.ts → data/routes/indexer.test.ts} +26 -5
  278. package/src/apps/{indexer.ts → data/routes/indexer.ts} +13 -10
  279. package/src/apps/{receipts.test.ts → data/routes/receipts.test.ts} +3 -3
  280. package/src/apps/{receipts.ts → data/routes/receipts.ts} +13 -13
  281. package/src/apps/{rpc.test.ts → data/routes/rpc.test.ts} +44 -5
  282. package/src/apps/{rpc.ts → data/routes/rpc.ts} +7 -7
  283. package/src/apps/{tokenlist.test.ts → data/routes/tokenlist.test.ts} +3 -3
  284. package/src/apps/{tokenlist.ts → data/routes/tokenlist.ts} +9 -9
  285. package/src/apps/{tokens.test.ts → data/routes/tokens.test.ts} +2 -2
  286. package/src/apps/{tokens.ts → data/routes/tokens.ts} +20 -20
  287. package/src/apps/{transactions.test.ts → data/routes/transactions.test.ts} +3 -3
  288. package/src/apps/{transactions.ts → data/routes/transactions.ts} +15 -15
  289. package/src/apps/{transfers.test.ts → data/routes/transfers.test.ts} +2 -2
  290. package/src/apps/{transfers.ts → data/routes/transfers.ts} +15 -15
  291. package/src/apps/{verified-tokens.test.ts → data/routes/verified-tokens.test.ts} +3 -3
  292. package/src/apps/{verified-tokens.ts → data/routes/verified-tokens.ts} +10 -10
  293. package/src/apps/{webhooks.test.ts → data/routes/webhooks.test.ts} +6 -6
  294. package/src/apps/{webhooks.ts → data/routes/webhooks.ts} +39 -35
  295. package/src/apps/docs/App.ts +136 -0
  296. package/src/apps/docs/index.ts +1 -0
  297. package/src/apps/index.ts +3 -0
  298. package/src/apps/metadata.ts +23 -0
  299. package/src/apps/platform/App.ts +130 -0
  300. package/src/apps/platform/index.ts +1 -0
  301. package/src/apps/platform/routes/api-keys.test.ts +330 -0
  302. package/src/apps/platform/routes/api-keys.ts +427 -0
  303. package/src/apps/platform/routes/invitations.test.ts +361 -0
  304. package/src/apps/platform/routes/invitations.ts +519 -0
  305. package/src/apps/platform/routes/me.test.ts +121 -0
  306. package/src/apps/platform/routes/me.ts +106 -0
  307. package/src/apps/platform/routes/members.test.ts +195 -0
  308. package/src/apps/platform/routes/members.ts +313 -0
  309. package/src/apps/platform/routes/orgs.test.ts +313 -0
  310. package/src/apps/platform/routes/orgs.ts +343 -0
  311. package/src/apps/platform/routes/projects.test.ts +181 -0
  312. package/src/apps/platform/routes/projects.ts +367 -0
  313. package/src/apps/relay/App.test.ts +484 -0
  314. package/src/apps/relay/App.ts +128 -0
  315. package/src/apps/relay/Sponsorships.test.ts +375 -0
  316. package/src/apps/relay/Sponsorships.ts +305 -0
  317. package/src/apps/relay/index.ts +2 -0
  318. package/src/cli/Cli.ts +1 -1
  319. package/src/cli/commands/admin.ts +2 -2
  320. package/src/db/Db.ts +159 -0
  321. package/src/db/Schema.ts +137 -0
  322. package/src/db/tables/invitations.ts +198 -0
  323. package/src/db/tables/memberships.ts +208 -0
  324. package/src/db/tables/organizations.test.ts +37 -1
  325. package/src/db/tables/organizations.ts +105 -0
  326. package/src/db/tables/projects.ts +107 -0
  327. package/src/db/tables/sponsoredTransactions.test.ts +218 -0
  328. package/src/db/tables/sponsoredTransactions.ts +236 -0
  329. package/src/db/tables/users.ts +85 -0
  330. package/src/handlers/internal/executionError.ts +2 -0
  331. package/src/handlers/internal/multisig.test.ts +84 -10
  332. package/src/handlers/internal/multisig.ts +15 -50
  333. package/src/handlers/internal/sponsorship.ts +74 -15
  334. package/src/handlers/{internal/relay.localnet.test.ts → relay.test.ts} +2 -2
  335. package/src/handlers/relay.ts +23 -5
  336. package/src/internal/Auth.test.ts +316 -0
  337. package/src/internal/Auth.ts +691 -25
  338. package/src/internal/Cursor.test.ts +3 -2
  339. package/src/internal/Log.test.ts +1 -1
  340. package/src/internal/Log.ts +11 -3
  341. package/src/internal/MetricSink.ts +1 -1
  342. package/src/internal/OpenApi.ts +0 -59
  343. package/src/internal/Store.test.ts +52 -0
  344. package/src/internal/Store.ts +24 -5
  345. package/src/internal/Tidx.local.test.ts +1 -1
  346. package/src/internal/VerifiedTokens.test.ts +1 -1
  347. package/src/internal/WebhookDestination.test.ts +1 -1
  348. package/src/internal/Webhooks.test.ts +4 -4
  349. package/src/internal/Webhooks.ts +1 -1
  350. package/dist/apps/activities.js.map +0 -1
  351. package/dist/apps/addresses.js.map +0 -1
  352. package/dist/apps/balances.d.ts.map +0 -1
  353. package/dist/apps/balances.js.map +0 -1
  354. package/dist/apps/blocks.d.ts.map +0 -1
  355. package/dist/apps/blocks.js.map +0 -1
  356. package/dist/apps/coingecko.d.ts.map +0 -1
  357. package/dist/apps/coingecko.js.map +0 -1
  358. package/dist/apps/exchanges.d.ts.map +0 -1
  359. package/dist/apps/exchanges.js.map +0 -1
  360. package/dist/apps/fee-amm.d.ts.map +0 -1
  361. package/dist/apps/fee-amm.js.map +0 -1
  362. package/dist/apps/indexer.d.ts.map +0 -1
  363. package/dist/apps/indexer.js.map +0 -1
  364. package/dist/apps/receipts.d.ts.map +0 -1
  365. package/dist/apps/receipts.js.map +0 -1
  366. package/dist/apps/rpc.d.ts.map +0 -1
  367. package/dist/apps/rpc.js.map +0 -1
  368. package/dist/apps/tokenlist.d.ts.map +0 -1
  369. package/dist/apps/tokenlist.js.map +0 -1
  370. package/dist/apps/tokens.d.ts.map +0 -1
  371. package/dist/apps/tokens.js.map +0 -1
  372. package/dist/apps/transactions.d.ts.map +0 -1
  373. package/dist/apps/transactions.js.map +0 -1
  374. package/dist/apps/transfers.d.ts.map +0 -1
  375. package/dist/apps/transfers.js.map +0 -1
  376. package/dist/apps/verified-tokens.d.ts.map +0 -1
  377. package/dist/apps/verified-tokens.js.map +0 -1
  378. package/dist/apps/webhooks.js.map +0 -1
  379. package/dist/internal/OpenApi.fonts.d.ts.map +0 -1
  380. package/dist/internal/OpenApi.fonts.js.map +0 -1
  381. package/dist/internal/OpenApi.logo.d.ts.map +0 -1
  382. package/dist/internal/OpenApi.logo.js.map +0 -1
  383. package/src/handlers/internal/multisig.localnet.test.ts +0 -146
  384. /package/src/{internal/OpenApi.fonts.ts → apps/docs/fonts.ts} +0 -0
  385. /package/src/{internal/OpenApi.logo.ts → apps/docs/logo.ts} +0 -0
@@ -0,0 +1,554 @@
1
+ import * as z from 'zod/mini';
2
+ import type * as App from '../../../App.js';
3
+ import * as Response from '../../../internal/Response.js';
4
+ /** Zod schemas owned by the members resource. */
5
+ export declare namespace schema {
6
+ /** A membership role. */
7
+ const Role: z.ZodMiniEnum<{
8
+ admin: "admin";
9
+ member: "member";
10
+ owner: "owner";
11
+ }>;
12
+ /** One organization member: the membership plus the member's identity. */
13
+ const Member: z.ZodMiniObject<{
14
+ address: z.ZodMiniOptional<z.ZodMiniString<string>>;
15
+ createdAt: z.ZodMiniString<string>;
16
+ email: z.ZodMiniOptional<z.ZodMiniString<string>>;
17
+ role: z.ZodMiniEnum<{
18
+ admin: "admin";
19
+ member: "member";
20
+ owner: "owner";
21
+ }>;
22
+ userId: z.ZodMiniString<string>;
23
+ }, z.core.$strip>;
24
+ /** Path parameters addressing an organization's member collection. */
25
+ const Params: z.ZodMiniObject<{
26
+ orgId: z.ZodMiniString<string>;
27
+ }, z.core.$strip>;
28
+ /** Path parameters addressing one member. */
29
+ const MemberParams: z.ZodMiniObject<{
30
+ orgId: z.ZodMiniString<string>;
31
+ userId: z.ZodMiniString<string>;
32
+ }, z.core.$strip>;
33
+ /** Request body changing a member's role. */
34
+ const MemberBody: z.ZodMiniObject<{
35
+ role: z.ZodMiniEnum<{
36
+ admin: "admin";
37
+ member: "member";
38
+ owner: "owner";
39
+ }>;
40
+ }, z.core.$strip>;
41
+ /** Schemas for the listMembers operation. */
42
+ namespace listMembers {
43
+ /** Non-paginated list of an organization's members. */
44
+ const Response: z.ZodMiniObject<{
45
+ data: z.ZodMiniArray<z.ZodMiniObject<{
46
+ address: z.ZodMiniOptional<z.ZodMiniString<string>>;
47
+ createdAt: z.ZodMiniString<string>;
48
+ email: z.ZodMiniOptional<z.ZodMiniString<string>>;
49
+ role: z.ZodMiniEnum<{
50
+ admin: "admin";
51
+ member: "member";
52
+ owner: "owner";
53
+ }>;
54
+ userId: z.ZodMiniString<string>;
55
+ }, z.core.$strip>>;
56
+ }, z.core.$strip>;
57
+ }
58
+ /** Schemas for the removeMember operation. */
59
+ namespace removeMember {
60
+ /** Confirmation that the member was removed. */
61
+ const Response: z.ZodMiniObject<{
62
+ userId: z.ZodMiniString<string>;
63
+ }, z.core.$strip>;
64
+ }
65
+ }
66
+ /**
67
+ * Mounts the `/orgs/:orgId/members` resource: the organization's team.
68
+ * Members read; owners change roles and remove members (any member may remove
69
+ * themself). The last owner can never be demoted or removed.
70
+ */
71
+ export declare function members(): import("hono/hono-base").HonoBase<App.Environment, {
72
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members": {
73
+ $get: {
74
+ output: {
75
+ error: {
76
+ code: "api_key_malformed";
77
+ details?: readonly Response.error.Detail[] | undefined;
78
+ message: string;
79
+ };
80
+ requestId: string;
81
+ };
82
+ outputFormat: "json";
83
+ status: 400;
84
+ input: {
85
+ param: {
86
+ orgId: string;
87
+ };
88
+ };
89
+ } | {
90
+ output: {
91
+ error: {
92
+ code: "api_key_invalid" | "api_key_missing";
93
+ details?: readonly Response.error.Detail[] | undefined;
94
+ message: string;
95
+ };
96
+ requestId: string;
97
+ };
98
+ outputFormat: "json";
99
+ status: 401;
100
+ input: {
101
+ param: {
102
+ orgId: string;
103
+ };
104
+ };
105
+ } | {
106
+ output: {
107
+ error: {
108
+ code: "upstream_error";
109
+ details?: readonly Response.error.Detail[] | undefined;
110
+ message: string;
111
+ };
112
+ requestId: string;
113
+ };
114
+ outputFormat: "json";
115
+ status: 502;
116
+ input: {
117
+ param: {
118
+ orgId: string;
119
+ };
120
+ };
121
+ } | {
122
+ output: {
123
+ error: {
124
+ code: "param_invalid";
125
+ details?: readonly Response.error.Detail[] | undefined;
126
+ message: string;
127
+ };
128
+ requestId: string;
129
+ };
130
+ outputFormat: "json";
131
+ status: 400;
132
+ input: {
133
+ param: {
134
+ orgId: string;
135
+ };
136
+ };
137
+ } | {
138
+ output: {
139
+ error: {
140
+ code: "forbidden";
141
+ details?: readonly Response.error.Detail[] | undefined;
142
+ message: string;
143
+ };
144
+ requestId: string;
145
+ };
146
+ outputFormat: "json";
147
+ status: 403;
148
+ input: {
149
+ param: {
150
+ orgId: string;
151
+ };
152
+ };
153
+ } | {
154
+ output: {
155
+ error: {
156
+ code: "organization_not_found";
157
+ details?: readonly Response.error.Detail[] | undefined;
158
+ message: string;
159
+ };
160
+ requestId: string;
161
+ };
162
+ outputFormat: "json";
163
+ status: 404;
164
+ input: {
165
+ param: {
166
+ orgId: string;
167
+ };
168
+ };
169
+ } | {
170
+ output: {
171
+ data: {
172
+ address?: string | undefined;
173
+ createdAt: string;
174
+ email?: string | undefined;
175
+ role: "admin" | "member" | "owner";
176
+ userId: string;
177
+ }[];
178
+ };
179
+ outputFormat: "json";
180
+ status: 200;
181
+ input: {
182
+ param: {
183
+ orgId: string;
184
+ };
185
+ };
186
+ };
187
+ };
188
+ } & {
189
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members/:userId{usr_[A-Za-z0-9_-]+}": {
190
+ $patch: {
191
+ output: {
192
+ error: {
193
+ code: "api_key_malformed";
194
+ details?: readonly Response.error.Detail[] | undefined;
195
+ message: string;
196
+ };
197
+ requestId: string;
198
+ };
199
+ outputFormat: "json";
200
+ status: 400;
201
+ input: {
202
+ param: {
203
+ orgId: string;
204
+ userId: string;
205
+ };
206
+ } & {
207
+ json: {
208
+ role: "admin" | "member" | "owner";
209
+ };
210
+ };
211
+ } | {
212
+ output: {
213
+ error: {
214
+ code: "api_key_invalid" | "api_key_missing";
215
+ details?: readonly Response.error.Detail[] | undefined;
216
+ message: string;
217
+ };
218
+ requestId: string;
219
+ };
220
+ outputFormat: "json";
221
+ status: 401;
222
+ input: {
223
+ param: {
224
+ orgId: string;
225
+ userId: string;
226
+ };
227
+ } & {
228
+ json: {
229
+ role: "admin" | "member" | "owner";
230
+ };
231
+ };
232
+ } | {
233
+ output: {
234
+ error: {
235
+ code: "upstream_error";
236
+ details?: readonly Response.error.Detail[] | undefined;
237
+ message: string;
238
+ };
239
+ requestId: string;
240
+ };
241
+ outputFormat: "json";
242
+ status: 502;
243
+ input: {
244
+ param: {
245
+ orgId: string;
246
+ userId: string;
247
+ };
248
+ } & {
249
+ json: {
250
+ role: "admin" | "member" | "owner";
251
+ };
252
+ };
253
+ } | {
254
+ output: {
255
+ error: {
256
+ code: "body_invalid";
257
+ details?: readonly Response.error.Detail[] | undefined;
258
+ message: string;
259
+ };
260
+ requestId: string;
261
+ };
262
+ outputFormat: "json";
263
+ status: 400;
264
+ input: {
265
+ param: {
266
+ orgId: string;
267
+ userId: string;
268
+ };
269
+ } & {
270
+ json: {
271
+ role: "admin" | "member" | "owner";
272
+ };
273
+ };
274
+ } | {
275
+ output: {
276
+ error: {
277
+ code: "param_invalid";
278
+ details?: readonly Response.error.Detail[] | undefined;
279
+ message: string;
280
+ };
281
+ requestId: string;
282
+ };
283
+ outputFormat: "json";
284
+ status: 400;
285
+ input: {
286
+ param: {
287
+ orgId: string;
288
+ userId: string;
289
+ };
290
+ } & {
291
+ json: {
292
+ role: "admin" | "member" | "owner";
293
+ };
294
+ };
295
+ } | {
296
+ output: {
297
+ error: {
298
+ code: "forbidden";
299
+ details?: readonly Response.error.Detail[] | undefined;
300
+ message: string;
301
+ };
302
+ requestId: string;
303
+ };
304
+ outputFormat: "json";
305
+ status: 403;
306
+ input: {
307
+ param: {
308
+ orgId: string;
309
+ userId: string;
310
+ };
311
+ } & {
312
+ json: {
313
+ role: "admin" | "member" | "owner";
314
+ };
315
+ };
316
+ } | {
317
+ output: {
318
+ error: {
319
+ code: "organization_not_found";
320
+ details?: readonly Response.error.Detail[] | undefined;
321
+ message: string;
322
+ };
323
+ requestId: string;
324
+ };
325
+ outputFormat: "json";
326
+ status: 404;
327
+ input: {
328
+ param: {
329
+ orgId: string;
330
+ userId: string;
331
+ };
332
+ } & {
333
+ json: {
334
+ role: "admin" | "member" | "owner";
335
+ };
336
+ };
337
+ } | {
338
+ output: {
339
+ error: {
340
+ code: "last_owner";
341
+ details?: readonly Response.error.Detail[] | undefined;
342
+ message: string;
343
+ };
344
+ requestId: string;
345
+ };
346
+ outputFormat: "json";
347
+ status: 409;
348
+ input: {
349
+ param: {
350
+ orgId: string;
351
+ userId: string;
352
+ };
353
+ } & {
354
+ json: {
355
+ role: "admin" | "member" | "owner";
356
+ };
357
+ };
358
+ } | {
359
+ output: {
360
+ error: {
361
+ code: "member_not_found";
362
+ details?: readonly Response.error.Detail[] | undefined;
363
+ message: string;
364
+ };
365
+ requestId: string;
366
+ };
367
+ outputFormat: "json";
368
+ status: 404;
369
+ input: {
370
+ param: {
371
+ orgId: string;
372
+ userId: string;
373
+ };
374
+ } & {
375
+ json: {
376
+ role: "admin" | "member" | "owner";
377
+ };
378
+ };
379
+ } | {
380
+ output: {
381
+ address?: string | undefined;
382
+ createdAt: string;
383
+ email?: string | undefined;
384
+ role: "admin" | "member" | "owner";
385
+ userId: string;
386
+ };
387
+ outputFormat: "json";
388
+ status: 200;
389
+ input: {
390
+ param: {
391
+ orgId: string;
392
+ userId: string;
393
+ };
394
+ } & {
395
+ json: {
396
+ role: "admin" | "member" | "owner";
397
+ };
398
+ };
399
+ };
400
+ };
401
+ } & {
402
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members/:userId{usr_[A-Za-z0-9_-]+}": {
403
+ $delete: {
404
+ output: {
405
+ error: {
406
+ code: "api_key_malformed";
407
+ details?: readonly Response.error.Detail[] | undefined;
408
+ message: string;
409
+ };
410
+ requestId: string;
411
+ };
412
+ outputFormat: "json";
413
+ status: 400;
414
+ input: {
415
+ param: {
416
+ orgId: string;
417
+ userId: string;
418
+ };
419
+ };
420
+ } | {
421
+ output: {
422
+ error: {
423
+ code: "api_key_invalid" | "api_key_missing";
424
+ details?: readonly Response.error.Detail[] | undefined;
425
+ message: string;
426
+ };
427
+ requestId: string;
428
+ };
429
+ outputFormat: "json";
430
+ status: 401;
431
+ input: {
432
+ param: {
433
+ orgId: string;
434
+ userId: string;
435
+ };
436
+ };
437
+ } | {
438
+ output: {
439
+ error: {
440
+ code: "upstream_error";
441
+ details?: readonly Response.error.Detail[] | undefined;
442
+ message: string;
443
+ };
444
+ requestId: string;
445
+ };
446
+ outputFormat: "json";
447
+ status: 502;
448
+ input: {
449
+ param: {
450
+ orgId: string;
451
+ userId: string;
452
+ };
453
+ };
454
+ } | {
455
+ output: {
456
+ error: {
457
+ code: "param_invalid";
458
+ details?: readonly Response.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
+ userId: string;
469
+ };
470
+ };
471
+ } | {
472
+ output: {
473
+ error: {
474
+ code: "forbidden";
475
+ details?: readonly Response.error.Detail[] | undefined;
476
+ message: string;
477
+ };
478
+ requestId: string;
479
+ };
480
+ outputFormat: "json";
481
+ status: 403;
482
+ input: {
483
+ param: {
484
+ orgId: string;
485
+ userId: string;
486
+ };
487
+ };
488
+ } | {
489
+ output: {
490
+ error: {
491
+ code: "organization_not_found";
492
+ details?: readonly Response.error.Detail[] | undefined;
493
+ message: string;
494
+ };
495
+ requestId: string;
496
+ };
497
+ outputFormat: "json";
498
+ status: 404;
499
+ input: {
500
+ param: {
501
+ orgId: string;
502
+ userId: string;
503
+ };
504
+ };
505
+ } | {
506
+ output: {
507
+ error: {
508
+ code: "last_owner";
509
+ details?: readonly Response.error.Detail[] | undefined;
510
+ message: string;
511
+ };
512
+ requestId: string;
513
+ };
514
+ outputFormat: "json";
515
+ status: 409;
516
+ input: {
517
+ param: {
518
+ orgId: string;
519
+ userId: string;
520
+ };
521
+ };
522
+ } | {
523
+ output: {
524
+ error: {
525
+ code: "member_not_found";
526
+ details?: readonly Response.error.Detail[] | undefined;
527
+ message: string;
528
+ };
529
+ requestId: string;
530
+ };
531
+ outputFormat: "json";
532
+ status: 404;
533
+ input: {
534
+ param: {
535
+ orgId: string;
536
+ userId: string;
537
+ };
538
+ };
539
+ } | {
540
+ output: {
541
+ userId: string;
542
+ };
543
+ outputFormat: "json";
544
+ status: 200;
545
+ input: {
546
+ param: {
547
+ orgId: string;
548
+ userId: string;
549
+ };
550
+ };
551
+ };
552
+ };
553
+ }, "/", "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/members/:userId{usr_[A-Za-z0-9_-]+}">;
554
+ //# sourceMappingURL=members.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../../../../src/apps/platform/routes/members.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,KAAK,KAAK,GAAG,MAAM,iBAAiB,CAAA;AAK3C,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAA;AAIzD,iDAAiD;AACjD,yBAAiB,MAAM,CAAC;IACtB,yBAAyB;IAClB,MAAM,IAAI;;;;MAEwD,CAAA;IAEzE,0EAA0E;IACnE,MAAM,MAAM;;;;;;;;;;qBA6BlB,CAAA;IAED,sEAAsE;IAC/D,MAAM,MAAM;;qBASmD,CAAA;IAEtE,6CAA6C;IACtC,MAAM,YAAY;;;qBAe8B,CAAA;IAEvD,6CAA6C;IACtC,MAAM,UAAU;;;;;;qBAEqC,CAAA;IAE5D,6CAA6C;IAC7C,UAAiB,WAAW,CAAC;QAC3B,uDAAuD;QAChD,MAAM,QAAQ;;;;;;;;;;;;yBAKpB,CAAA;KACF;IAED,8CAA8C;IAC9C,UAAiB,YAAY,CAAC;QAC5B,gDAAgD;QACzC,MAAM,QAAQ;;yBAS4C,CAAA;KAClE;CACF;AAED;;;;GAIG;AACH,wBAAgB,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mFAqKtB"}