tapimo 0.7.2 → 0.9.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 (300) hide show
  1. package/README.md +10 -7
  2. package/dist/ApiKey.d.ts +3 -0
  3. package/dist/ApiKey.d.ts.map +1 -1
  4. package/dist/ApiKey.js +10 -0
  5. package/dist/ApiKey.js.map +1 -1
  6. package/dist/ApiKeys.d.ts +7 -3
  7. package/dist/ApiKeys.d.ts.map +1 -1
  8. package/dist/ApiKeys.js +9 -2
  9. package/dist/ApiKeys.js.map +1 -1
  10. package/dist/App.d.ts +20117 -19183
  11. package/dist/App.d.ts.map +1 -1
  12. package/dist/App.js +61 -4
  13. package/dist/App.js.map +1 -1
  14. package/dist/admin/App.d.ts +84 -74
  15. package/dist/admin/App.d.ts.map +1 -1
  16. package/dist/admin/apps/api-keys.d.ts +14 -1
  17. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  18. package/dist/admin/apps/api-keys.js +6 -2
  19. package/dist/admin/apps/api-keys.js.map +1 -1
  20. package/dist/admin/apps/organizations.d.ts +2 -0
  21. package/dist/admin/apps/organizations.d.ts.map +1 -1
  22. package/dist/admin/apps/verified-tokens.d.ts +11 -11
  23. package/dist/admin/ui.generated.d.ts +1 -1
  24. package/dist/admin/ui.generated.js +67 -67
  25. package/dist/admin/ui.generated.js.map +1 -1
  26. package/dist/analytics/Analytics.d.ts +2 -0
  27. package/dist/analytics/Analytics.d.ts.map +1 -1
  28. package/dist/analytics/Analytics.js +3 -0
  29. package/dist/analytics/Analytics.js.map +1 -1
  30. package/dist/apps/data/App.d.ts +11696 -13937
  31. package/dist/apps/data/App.d.ts.map +1 -1
  32. package/dist/apps/data/App.js +4 -8
  33. package/dist/apps/data/App.js.map +1 -1
  34. package/dist/apps/data/routes/activities.d.ts +271 -271
  35. package/dist/apps/data/routes/addresses.d.ts +398 -167
  36. package/dist/apps/data/routes/addresses.d.ts.map +1 -1
  37. package/dist/apps/data/routes/balances.d.ts +278 -8
  38. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  39. package/dist/apps/data/routes/balances.js +114 -2
  40. package/dist/apps/data/routes/balances.js.map +1 -1
  41. package/dist/apps/data/routes/blocks.d.ts +123 -123
  42. package/dist/apps/data/routes/coingecko.d.ts +170 -170
  43. package/dist/apps/data/routes/earn.d.ts +498 -6
  44. package/dist/apps/data/routes/earn.d.ts.map +1 -1
  45. package/dist/apps/data/routes/earn.js +876 -4
  46. package/dist/apps/data/routes/earn.js.map +1 -1
  47. package/dist/apps/data/routes/exchanges.d.ts +10 -10
  48. package/dist/apps/data/routes/fee-amm.d.ts +2 -2
  49. package/dist/apps/data/routes/indexer.d.ts +6 -6
  50. package/dist/apps/data/routes/indexer.js +4 -1
  51. package/dist/apps/data/routes/indexer.js.map +1 -1
  52. package/dist/apps/data/routes/receipts.d.ts +235 -235
  53. package/dist/apps/data/routes/rpc.d.ts +31 -31
  54. package/dist/apps/data/routes/rpc.js +4 -1
  55. package/dist/apps/data/routes/rpc.js.map +1 -1
  56. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  57. package/dist/apps/data/routes/tokens.d.ts +449 -449
  58. package/dist/apps/data/routes/transactions.d.ts +2 -2
  59. package/dist/apps/data/routes/transfers.d.ts +81 -81
  60. package/dist/apps/data/routes/valuation.d.ts +1 -1
  61. package/dist/apps/data/routes/verified-tokens.d.ts +36 -36
  62. package/dist/apps/data/routes/webhooks.d.ts +9 -9
  63. package/dist/apps/data/routes/zones.d.ts +14 -14
  64. package/dist/apps/funding/Access.d.ts +16 -0
  65. package/dist/apps/funding/Access.d.ts.map +1 -0
  66. package/dist/apps/funding/Access.js +22 -0
  67. package/dist/apps/funding/Access.js.map +1 -0
  68. package/dist/apps/{data/routes/funding.d.ts → funding/App.d.ts} +1640 -3217
  69. package/dist/apps/funding/App.d.ts.map +1 -0
  70. package/dist/apps/funding/App.js +61 -0
  71. package/dist/apps/funding/App.js.map +1 -0
  72. package/dist/apps/funding/Inventory.d.ts +5 -0
  73. package/dist/apps/funding/Inventory.d.ts.map +1 -0
  74. package/dist/apps/funding/Inventory.js +25 -0
  75. package/dist/apps/funding/Inventory.js.map +1 -0
  76. package/dist/apps/funding/ProviderAttempts.d.ts +5 -0
  77. package/dist/apps/funding/ProviderAttempts.d.ts.map +1 -0
  78. package/dist/apps/funding/ProviderAttempts.js +24 -0
  79. package/dist/apps/funding/ProviderAttempts.js.map +1 -0
  80. package/dist/apps/funding/index.d.ts +2 -0
  81. package/dist/apps/funding/index.d.ts.map +1 -0
  82. package/dist/apps/funding/index.js +2 -0
  83. package/dist/apps/funding/index.js.map +1 -0
  84. package/dist/apps/funding/routes/chains.d.ts +169 -0
  85. package/dist/apps/funding/routes/chains.d.ts.map +1 -0
  86. package/dist/apps/funding/routes/chains.js +80 -0
  87. package/dist/apps/funding/routes/chains.js.map +1 -0
  88. package/dist/apps/funding/routes/deposit-addresses.d.ts +1997 -0
  89. package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -0
  90. package/dist/apps/funding/routes/deposit-addresses.js +778 -0
  91. package/dist/apps/funding/routes/deposit-addresses.js.map +1 -0
  92. package/dist/apps/funding/routes/providers.d.ts +91 -0
  93. package/dist/apps/funding/routes/providers.d.ts.map +1 -0
  94. package/dist/apps/funding/routes/providers.js +56 -0
  95. package/dist/apps/funding/routes/providers.js.map +1 -0
  96. package/dist/apps/funding/routes/quotes.d.ts +426 -0
  97. package/dist/apps/funding/routes/quotes.d.ts.map +1 -0
  98. package/dist/apps/funding/routes/quotes.js +188 -0
  99. package/dist/apps/funding/routes/quotes.js.map +1 -0
  100. package/dist/apps/funding/routes/transfers.d.ts +1999 -0
  101. package/dist/apps/funding/routes/transfers.d.ts.map +1 -0
  102. package/dist/apps/funding/routes/transfers.js +614 -0
  103. package/dist/apps/funding/routes/transfers.js.map +1 -0
  104. package/dist/apps/index.d.ts +1 -0
  105. package/dist/apps/index.d.ts.map +1 -1
  106. package/dist/apps/index.js +1 -0
  107. package/dist/apps/index.js.map +1 -1
  108. package/dist/apps/management/App.d.ts +430 -165
  109. package/dist/apps/management/App.d.ts.map +1 -1
  110. package/dist/apps/management/routes/api-keys.d.ts +298 -21
  111. package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
  112. package/dist/apps/management/routes/api-keys.js +75 -1
  113. package/dist/apps/management/routes/api-keys.js.map +1 -1
  114. package/dist/apps/management/routes/billing.d.ts +6 -6
  115. package/dist/apps/management/routes/faucet.d.ts +35 -35
  116. package/dist/apps/management/routes/invitations.d.ts +122 -122
  117. package/dist/apps/management/routes/invite-links.d.ts +38 -38
  118. package/dist/apps/management/routes/members.d.ts +69 -69
  119. package/dist/apps/management/routes/orgs.d.ts +99 -99
  120. package/dist/apps/management/routes/projects.d.ts +25 -25
  121. package/dist/apps/management/routes/scopes.d.ts +1 -1
  122. package/dist/apps/management/routes/usage.d.ts +72 -72
  123. package/dist/apps/management/routes/verified-token-requests.d.ts +77 -77
  124. package/dist/apps/management/routes/webhooks.d.ts +128 -128
  125. package/dist/apps/mcp.d.ts +2 -3
  126. package/dist/apps/mcp.d.ts.map +1 -1
  127. package/dist/apps/mcp.js +16 -14
  128. package/dist/apps/mcp.js.map +1 -1
  129. package/dist/apps/metadata.d.ts +4 -0
  130. package/dist/apps/metadata.d.ts.map +1 -1
  131. package/dist/apps/metadata.js +10 -0
  132. package/dist/apps/metadata.js.map +1 -1
  133. package/dist/apps/mpp/App.d.ts +44 -44
  134. package/dist/cloudflare.d.ts +50 -0
  135. package/dist/cloudflare.d.ts.map +1 -1
  136. package/dist/cloudflare.js +178 -0
  137. package/dist/cloudflare.js.map +1 -1
  138. package/dist/db/Db.d.ts +2 -0
  139. package/dist/db/Db.d.ts.map +1 -1
  140. package/dist/db/Db.js +45 -0
  141. package/dist/db/Db.js.map +1 -1
  142. package/dist/db/Schema.d.ts +12 -0
  143. package/dist/db/Schema.d.ts.map +1 -1
  144. package/dist/db/Schema.js +20 -0
  145. package/dist/db/Schema.js.map +1 -1
  146. package/dist/db/tables/fundingDepositAddresses.d.ts +13 -0
  147. package/dist/db/tables/fundingDepositAddresses.d.ts.map +1 -1
  148. package/dist/db/tables/fundingDepositAddresses.js +12 -0
  149. package/dist/db/tables/fundingDepositAddresses.js.map +1 -1
  150. package/dist/db/tables/fundingDepositRequestObservations.d.ts +45 -0
  151. package/dist/db/tables/fundingDepositRequestObservations.d.ts.map +1 -0
  152. package/dist/db/tables/fundingDepositRequestObservations.js +46 -0
  153. package/dist/db/tables/fundingDepositRequestObservations.js.map +1 -0
  154. package/dist/db/tables/fundingDeposits.d.ts +74 -1
  155. package/dist/db/tables/fundingDeposits.d.ts.map +1 -1
  156. package/dist/db/tables/fundingDeposits.js +126 -0
  157. package/dist/db/tables/fundingDeposits.js.map +1 -1
  158. package/dist/internal/Auth.d.ts +15 -11
  159. package/dist/internal/Auth.d.ts.map +1 -1
  160. package/dist/internal/Auth.js +52 -17
  161. package/dist/internal/Auth.js.map +1 -1
  162. package/dist/internal/Cache.js +1 -1
  163. package/dist/internal/Cache.js.map +1 -1
  164. package/dist/internal/EdgeCache.d.ts +2 -2
  165. package/dist/internal/EdgeCache.d.ts.map +1 -1
  166. package/dist/internal/EdgeCache.js +10 -4
  167. package/dist/internal/EdgeCache.js.map +1 -1
  168. package/dist/internal/IpAllowlist.d.ts +15 -0
  169. package/dist/internal/IpAllowlist.d.ts.map +1 -0
  170. package/dist/internal/IpAllowlist.js +27 -0
  171. package/dist/internal/IpAllowlist.js.map +1 -0
  172. package/dist/internal/OpenApi.d.ts +1 -1
  173. package/dist/internal/OpenApi.js +1 -1
  174. package/dist/internal/OpenApi.js.map +1 -1
  175. package/dist/internal/Tidx.d.ts +6 -0
  176. package/dist/internal/Tidx.d.ts.map +1 -1
  177. package/dist/internal/Tidx.js +13 -3
  178. package/dist/internal/Tidx.js.map +1 -1
  179. package/dist/internal/Viem.d.ts +8 -0
  180. package/dist/internal/Viem.d.ts.map +1 -1
  181. package/dist/internal/Viem.js +12 -5
  182. package/dist/internal/Viem.js.map +1 -1
  183. package/dist/internal/funding/Deposit.d.ts +42 -0
  184. package/dist/internal/funding/Deposit.d.ts.map +1 -1
  185. package/dist/internal/funding/Deposit.js +37 -5
  186. package/dist/internal/funding/Deposit.js.map +1 -1
  187. package/dist/internal/funding/Evidence.d.ts +1 -5
  188. package/dist/internal/funding/Evidence.d.ts.map +1 -1
  189. package/dist/internal/funding/Evidence.js +4 -3
  190. package/dist/internal/funding/Evidence.js.map +1 -1
  191. package/dist/internal/funding/Provider.d.ts +102 -0
  192. package/dist/internal/funding/Provider.d.ts.map +1 -1
  193. package/dist/internal/funding/Provider.js +5 -0
  194. package/dist/internal/funding/Provider.js.map +1 -1
  195. package/dist/internal/funding/Reconciliation.d.ts +16 -2
  196. package/dist/internal/funding/Reconciliation.d.ts.map +1 -1
  197. package/dist/internal/funding/Reconciliation.js +348 -54
  198. package/dist/internal/funding/Reconciliation.js.map +1 -1
  199. package/dist/internal/funding/SourceObservation.d.ts +108 -0
  200. package/dist/internal/funding/SourceObservation.d.ts.map +1 -0
  201. package/dist/internal/funding/SourceObservation.js +143 -0
  202. package/dist/internal/funding/SourceObservation.js.map +1 -0
  203. package/dist/internal/funding/Subsidy.d.ts +2 -2
  204. package/dist/internal/funding/Subsidy.d.ts.map +1 -1
  205. package/dist/internal/funding/Subsidy.js +1 -1
  206. package/dist/internal/funding/Subsidy.js.map +1 -1
  207. package/dist/internal/funding/index.d.ts +1 -0
  208. package/dist/internal/funding/index.d.ts.map +1 -1
  209. package/dist/internal/funding/index.js +1 -0
  210. package/dist/internal/funding/index.js.map +1 -1
  211. package/dist/internal/funding/providers/relay.d.ts +43 -1
  212. package/dist/internal/funding/providers/relay.d.ts.map +1 -1
  213. package/dist/internal/funding/providers/relay.js +438 -27
  214. package/dist/internal/funding/providers/relay.js.map +1 -1
  215. package/package.json +3 -3
  216. package/src/ApiKey.test.ts +35 -0
  217. package/src/ApiKey.ts +27 -0
  218. package/src/ApiKeys.test.ts +29 -0
  219. package/src/ApiKeys.ts +11 -3
  220. package/src/App.test.ts +55 -5
  221. package/src/App.ts +79 -5
  222. package/src/Client.test-d.ts +203 -28
  223. package/src/admin/apps/api-keys.test.ts +25 -1
  224. package/src/admin/apps/api-keys.ts +6 -2
  225. package/src/admin/ui.generated.ts +67 -67
  226. package/src/analytics/Analytics.ts +4 -0
  227. package/src/apps/composition.test.ts +130 -3
  228. package/src/apps/data/App.test.ts +0 -12
  229. package/src/apps/data/App.ts +4 -8
  230. package/src/apps/data/routes/balances.test.ts +42 -0
  231. package/src/apps/data/routes/balances.ts +218 -85
  232. package/src/apps/data/routes/earn.test.ts +363 -0
  233. package/src/apps/data/routes/earn.ts +1141 -3
  234. package/src/apps/data/routes/indexer.ts +2 -1
  235. package/src/apps/data/routes/rpc.ts +2 -0
  236. package/src/apps/data/routes/tokens.test.ts +6 -8
  237. package/src/apps/funding/Access.ts +26 -0
  238. package/src/apps/funding/App.test.ts +78 -0
  239. package/src/apps/funding/App.ts +78 -0
  240. package/src/apps/funding/Inventory.ts +30 -0
  241. package/src/apps/funding/ProviderAttempts.ts +26 -0
  242. package/src/apps/funding/index.ts +1 -0
  243. package/src/apps/funding/routes/chains.test.ts +78 -0
  244. package/src/apps/funding/routes/chains.ts +101 -0
  245. package/src/apps/funding/routes/deposit-addresses.test.ts +1649 -0
  246. package/src/apps/funding/routes/deposit-addresses.ts +932 -0
  247. package/src/apps/funding/routes/providers.test.ts +165 -0
  248. package/src/apps/funding/routes/providers.ts +73 -0
  249. package/src/apps/funding/routes/quotes.test.ts +511 -0
  250. package/src/apps/funding/routes/quotes.ts +205 -0
  251. package/src/apps/funding/routes/transfers.test.ts +1236 -0
  252. package/src/apps/funding/routes/transfers.ts +704 -0
  253. package/src/apps/index.ts +1 -0
  254. package/src/apps/management/routes/api-keys.test.ts +98 -0
  255. package/src/apps/management/routes/api-keys.ts +96 -1
  256. package/src/apps/mcp.test.ts +17 -2
  257. package/src/apps/mcp.ts +18 -13
  258. package/src/apps/metadata.ts +12 -0
  259. package/src/apps/mpp/internal/Policy.test.ts +7 -1
  260. package/src/cloudflare.ts +279 -0
  261. package/src/db/Db.ts +71 -0
  262. package/src/db/Schema.ts +24 -0
  263. package/src/db/tables/fundingDepositAddresses.ts +28 -0
  264. package/src/db/tables/fundingDepositRequestObservations.test.ts +106 -0
  265. package/src/db/tables/fundingDepositRequestObservations.ts +99 -0
  266. package/src/db/tables/fundingDeposits.test.ts +239 -0
  267. package/src/db/tables/fundingDeposits.ts +214 -1
  268. package/src/internal/Auth.test.ts +205 -5
  269. package/src/internal/Auth.ts +63 -19
  270. package/src/internal/Cache.test.ts +37 -3
  271. package/src/internal/Cache.ts +1 -1
  272. package/src/internal/EdgeCache.test.ts +7 -7
  273. package/src/internal/EdgeCache.ts +13 -4
  274. package/src/internal/IpAllowlist.test.ts +52 -0
  275. package/src/internal/IpAllowlist.ts +39 -0
  276. package/src/internal/Log.test.ts +7 -1
  277. package/src/internal/OpenApi.ts +1 -1
  278. package/src/internal/Tidx.test.ts +28 -0
  279. package/src/internal/Tidx.ts +19 -3
  280. package/src/internal/Viem.test.ts +28 -0
  281. package/src/internal/Viem.ts +21 -5
  282. package/src/internal/funding/Deposit.ts +74 -5
  283. package/src/internal/funding/Evidence.test.ts +2 -2
  284. package/src/internal/funding/Evidence.ts +4 -9
  285. package/src/internal/funding/Provider.ts +115 -0
  286. package/src/internal/funding/Reconciliation.local.test.ts +7 -0
  287. package/src/internal/funding/Reconciliation.test.ts +1364 -109
  288. package/src/internal/funding/Reconciliation.ts +467 -88
  289. package/src/internal/funding/SourceObservation.test.ts +301 -0
  290. package/src/internal/funding/SourceObservation.ts +267 -0
  291. package/src/internal/funding/Subsidy.ts +2 -2
  292. package/src/internal/funding/index.test.ts +1 -0
  293. package/src/internal/funding/index.ts +1 -0
  294. package/src/internal/funding/providers/relay.test.ts +94 -4
  295. package/src/internal/funding/providers/relay.ts +533 -27
  296. package/dist/apps/data/routes/funding.d.ts.map +0 -1
  297. package/dist/apps/data/routes/funding.js +0 -1557
  298. package/dist/apps/data/routes/funding.js.map +0 -1
  299. package/src/apps/data/routes/funding.test.ts +0 -2994
  300. package/src/apps/data/routes/funding.ts +0 -1821
@@ -130,15 +130,16 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
130
130
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations": {
131
131
  $post: {
132
132
  output: {
133
- error: {
134
- code: "upstream_error";
135
- details?: readonly Response.error.Detail[] | undefined;
136
- message: string;
137
- };
138
- requestId: string;
133
+ createdAt: string;
134
+ email: string;
135
+ expiresAt: string;
136
+ id: string;
137
+ invitedBy: string;
138
+ orgId: string;
139
+ role: "admin" | "member" | "owner";
139
140
  };
140
141
  outputFormat: "json";
141
- status: 502;
142
+ status: 200;
142
143
  input: {
143
144
  param: {
144
145
  orgId: string;
@@ -173,14 +174,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
173
174
  } | {
174
175
  output: {
175
176
  error: {
176
- code: "api_key_invalid" | "api_key_missing";
177
+ code: "body_invalid";
177
178
  details?: readonly Response.error.Detail[] | undefined;
178
179
  message: string;
179
180
  };
180
181
  requestId: string;
181
182
  };
182
183
  outputFormat: "json";
183
- status: 401;
184
+ status: 400;
184
185
  input: {
185
186
  param: {
186
187
  orgId: string;
@@ -194,14 +195,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
194
195
  } | {
195
196
  output: {
196
197
  error: {
197
- code: "api_key_forbidden";
198
+ code: "param_invalid";
198
199
  details?: readonly Response.error.Detail[] | undefined;
199
200
  message: string;
200
201
  };
201
202
  requestId: string;
202
203
  };
203
204
  outputFormat: "json";
204
- status: 403;
205
+ status: 400;
205
206
  input: {
206
207
  param: {
207
208
  orgId: string;
@@ -215,14 +216,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
215
216
  } | {
216
217
  output: {
217
218
  error: {
218
- code: "payment_required" | "rate_limit_exceeded";
219
+ code: "api_key_invalid" | "api_key_missing";
219
220
  details?: readonly Response.error.Detail[] | undefined;
220
221
  message: string;
221
222
  };
222
223
  requestId: string;
223
224
  };
224
225
  outputFormat: "json";
225
- status: 429;
226
+ status: 401;
226
227
  input: {
227
228
  param: {
228
229
  orgId: string;
@@ -236,14 +237,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
236
237
  } | {
237
238
  output: {
238
239
  error: {
239
- code: "body_invalid";
240
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
240
241
  details?: readonly Response.error.Detail[] | undefined;
241
242
  message: string;
242
243
  };
243
244
  requestId: string;
244
245
  };
245
246
  outputFormat: "json";
246
- status: 400;
247
+ status: 403;
247
248
  input: {
248
249
  param: {
249
250
  orgId: string;
@@ -257,14 +258,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
257
258
  } | {
258
259
  output: {
259
260
  error: {
260
- code: "param_invalid";
261
+ code: "forbidden";
261
262
  details?: readonly Response.error.Detail[] | undefined;
262
263
  message: string;
263
264
  };
264
265
  requestId: string;
265
266
  };
266
267
  outputFormat: "json";
267
- status: 400;
268
+ status: 403;
268
269
  input: {
269
270
  param: {
270
271
  orgId: string;
@@ -278,14 +279,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
278
279
  } | {
279
280
  output: {
280
281
  error: {
281
- code: "forbidden";
282
+ code: "organization_not_found";
282
283
  details?: readonly Response.error.Detail[] | undefined;
283
284
  message: string;
284
285
  };
285
286
  requestId: string;
286
287
  };
287
288
  outputFormat: "json";
288
- status: 403;
289
+ status: 404;
289
290
  input: {
290
291
  param: {
291
292
  orgId: string;
@@ -299,14 +300,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
299
300
  } | {
300
301
  output: {
301
302
  error: {
302
- code: "organization_not_found";
303
+ code: "payment_required" | "rate_limit_exceeded";
303
304
  details?: readonly Response.error.Detail[] | undefined;
304
305
  message: string;
305
306
  };
306
307
  requestId: string;
307
308
  };
308
309
  outputFormat: "json";
309
- status: 404;
310
+ status: 429;
310
311
  input: {
311
312
  param: {
312
313
  orgId: string;
@@ -319,16 +320,15 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
319
320
  };
320
321
  } | {
321
322
  output: {
322
- createdAt: string;
323
- email: string;
324
- expiresAt: string;
325
- id: string;
326
- invitedBy: string;
327
- orgId: string;
328
- role: "admin" | "member" | "owner";
323
+ error: {
324
+ code: "upstream_error";
325
+ details?: readonly Response.error.Detail[] | undefined;
326
+ message: string;
327
+ };
328
+ requestId: string;
329
329
  };
330
330
  outputFormat: "json";
331
- status: 200;
331
+ status: 502;
332
332
  input: {
333
333
  param: {
334
334
  orgId: string;
@@ -345,15 +345,18 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
345
345
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations": {
346
346
  $get: {
347
347
  output: {
348
- error: {
349
- code: "upstream_error";
350
- details?: readonly Response.error.Detail[] | undefined;
351
- message: string;
352
- };
353
- requestId: string;
348
+ data: {
349
+ createdAt: string;
350
+ email: string;
351
+ expiresAt: string;
352
+ id: string;
353
+ invitedBy: string;
354
+ orgId: string;
355
+ role: "admin" | "member" | "owner";
356
+ }[];
354
357
  };
355
358
  outputFormat: "json";
356
- status: 502;
359
+ status: 200;
357
360
  input: {
358
361
  param: {
359
362
  orgId: string;
@@ -378,14 +381,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
378
381
  } | {
379
382
  output: {
380
383
  error: {
381
- code: "api_key_invalid" | "api_key_missing";
384
+ code: "param_invalid";
382
385
  details?: readonly Response.error.Detail[] | undefined;
383
386
  message: string;
384
387
  };
385
388
  requestId: string;
386
389
  };
387
390
  outputFormat: "json";
388
- status: 401;
391
+ status: 400;
389
392
  input: {
390
393
  param: {
391
394
  orgId: string;
@@ -394,14 +397,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
394
397
  } | {
395
398
  output: {
396
399
  error: {
397
- code: "api_key_forbidden";
400
+ code: "api_key_invalid" | "api_key_missing";
398
401
  details?: readonly Response.error.Detail[] | undefined;
399
402
  message: string;
400
403
  };
401
404
  requestId: string;
402
405
  };
403
406
  outputFormat: "json";
404
- status: 403;
407
+ status: 401;
405
408
  input: {
406
409
  param: {
407
410
  orgId: string;
@@ -410,14 +413,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
410
413
  } | {
411
414
  output: {
412
415
  error: {
413
- code: "payment_required" | "rate_limit_exceeded";
416
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
414
417
  details?: readonly Response.error.Detail[] | undefined;
415
418
  message: string;
416
419
  };
417
420
  requestId: string;
418
421
  };
419
422
  outputFormat: "json";
420
- status: 429;
423
+ status: 403;
421
424
  input: {
422
425
  param: {
423
426
  orgId: string;
@@ -426,14 +429,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
426
429
  } | {
427
430
  output: {
428
431
  error: {
429
- code: "param_invalid";
432
+ code: "organization_not_found";
430
433
  details?: readonly Response.error.Detail[] | undefined;
431
434
  message: string;
432
435
  };
433
436
  requestId: string;
434
437
  };
435
438
  outputFormat: "json";
436
- status: 400;
439
+ status: 404;
437
440
  input: {
438
441
  param: {
439
442
  orgId: string;
@@ -442,14 +445,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
442
445
  } | {
443
446
  output: {
444
447
  error: {
445
- code: "organization_not_found";
448
+ code: "payment_required" | "rate_limit_exceeded";
446
449
  details?: readonly Response.error.Detail[] | undefined;
447
450
  message: string;
448
451
  };
449
452
  requestId: string;
450
453
  };
451
454
  outputFormat: "json";
452
- status: 404;
455
+ status: 429;
453
456
  input: {
454
457
  param: {
455
458
  orgId: string;
@@ -457,18 +460,15 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
457
460
  };
458
461
  } | {
459
462
  output: {
460
- data: {
461
- createdAt: string;
462
- email: string;
463
- expiresAt: string;
464
- id: string;
465
- invitedBy: string;
466
- orgId: string;
467
- role: "admin" | "member" | "owner";
468
- }[];
463
+ error: {
464
+ code: "upstream_error";
465
+ details?: readonly Response.error.Detail[] | undefined;
466
+ message: string;
467
+ };
468
+ requestId: string;
469
469
  };
470
470
  outputFormat: "json";
471
- status: 200;
471
+ status: 502;
472
472
  input: {
473
473
  param: {
474
474
  orgId: string;
@@ -480,15 +480,10 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
480
480
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invitations/:invitationId{inv_[A-Za-z0-9_-]+}": {
481
481
  $delete: {
482
482
  output: {
483
- error: {
484
- code: "upstream_error";
485
- details?: readonly Response.error.Detail[] | undefined;
486
- message: string;
487
- };
488
- requestId: string;
483
+ id: string;
489
484
  };
490
485
  outputFormat: "json";
491
- status: 502;
486
+ status: 200;
492
487
  input: {
493
488
  param: {
494
489
  invitationId: string;
@@ -515,14 +510,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
515
510
  } | {
516
511
  output: {
517
512
  error: {
518
- code: "api_key_invalid" | "api_key_missing";
513
+ code: "param_invalid";
519
514
  details?: readonly Response.error.Detail[] | undefined;
520
515
  message: string;
521
516
  };
522
517
  requestId: string;
523
518
  };
524
519
  outputFormat: "json";
525
- status: 401;
520
+ status: 400;
526
521
  input: {
527
522
  param: {
528
523
  invitationId: string;
@@ -532,14 +527,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
532
527
  } | {
533
528
  output: {
534
529
  error: {
535
- code: "api_key_forbidden";
530
+ code: "api_key_invalid" | "api_key_missing";
536
531
  details?: readonly Response.error.Detail[] | undefined;
537
532
  message: string;
538
533
  };
539
534
  requestId: string;
540
535
  };
541
536
  outputFormat: "json";
542
- status: 403;
537
+ status: 401;
543
538
  input: {
544
539
  param: {
545
540
  invitationId: string;
@@ -549,14 +544,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
549
544
  } | {
550
545
  output: {
551
546
  error: {
552
- code: "payment_required" | "rate_limit_exceeded";
547
+ code: "api_key_forbidden" | "api_key_ip_forbidden";
553
548
  details?: readonly Response.error.Detail[] | undefined;
554
549
  message: string;
555
550
  };
556
551
  requestId: string;
557
552
  };
558
553
  outputFormat: "json";
559
- status: 429;
554
+ status: 403;
560
555
  input: {
561
556
  param: {
562
557
  invitationId: string;
@@ -566,14 +561,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
566
561
  } | {
567
562
  output: {
568
563
  error: {
569
- code: "param_invalid";
564
+ code: "organization_not_found";
570
565
  details?: readonly Response.error.Detail[] | undefined;
571
566
  message: string;
572
567
  };
573
568
  requestId: string;
574
569
  };
575
570
  outputFormat: "json";
576
- status: 400;
571
+ status: 404;
577
572
  input: {
578
573
  param: {
579
574
  invitationId: string;
@@ -583,7 +578,7 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
583
578
  } | {
584
579
  output: {
585
580
  error: {
586
- code: "organization_not_found";
581
+ code: "invitation_not_found";
587
582
  details?: readonly Response.error.Detail[] | undefined;
588
583
  message: string;
589
584
  };
@@ -600,14 +595,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
600
595
  } | {
601
596
  output: {
602
597
  error: {
603
- code: "invitation_not_found";
598
+ code: "payment_required" | "rate_limit_exceeded";
604
599
  details?: readonly Response.error.Detail[] | undefined;
605
600
  message: string;
606
601
  };
607
602
  requestId: string;
608
603
  };
609
604
  outputFormat: "json";
610
- status: 404;
605
+ status: 429;
611
606
  input: {
612
607
  param: {
613
608
  invitationId: string;
@@ -616,10 +611,15 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
616
611
  };
617
612
  } | {
618
613
  output: {
619
- id: string;
614
+ error: {
615
+ code: "upstream_error";
616
+ details?: readonly Response.error.Detail[] | undefined;
617
+ message: string;
618
+ };
619
+ requestId: string;
620
620
  };
621
621
  outputFormat: "json";
622
- status: 200;
622
+ status: 502;
623
623
  input: {
624
624
  param: {
625
625
  invitationId: string;
@@ -632,15 +632,19 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
632
632
  "/v1/invitations": {
633
633
  $get: {
634
634
  output: {
635
- error: {
636
- code: "upstream_error";
637
- details?: readonly Response.error.Detail[] | undefined;
638
- message: string;
639
- };
640
- requestId: string;
635
+ data: {
636
+ createdAt: string;
637
+ email: string;
638
+ expiresAt: string;
639
+ id: string;
640
+ invitedBy: string;
641
+ orgId: string;
642
+ role: "admin" | "member" | "owner";
643
+ orgName: string;
644
+ }[];
641
645
  };
642
646
  outputFormat: "json";
643
- status: 502;
647
+ status: 200;
644
648
  input: {};
645
649
  } | {
646
650
  output: {
@@ -680,19 +684,15 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
680
684
  input: {};
681
685
  } | {
682
686
  output: {
683
- data: {
684
- createdAt: string;
685
- email: string;
686
- expiresAt: string;
687
- id: string;
688
- invitedBy: string;
689
- orgId: string;
690
- role: "admin" | "member" | "owner";
691
- orgName: string;
692
- }[];
687
+ error: {
688
+ code: "upstream_error";
689
+ details?: readonly Response.error.Detail[] | undefined;
690
+ message: string;
691
+ };
692
+ requestId: string;
693
693
  };
694
694
  outputFormat: "json";
695
- status: 200;
695
+ status: 502;
696
696
  input: {};
697
697
  };
698
698
  };
@@ -700,15 +700,12 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
700
700
  "/v1/invitations/:invitationId{inv_[A-Za-z0-9_-]+}/accept": {
701
701
  $post: {
702
702
  output: {
703
- error: {
704
- code: "upstream_error";
705
- details?: readonly Response.error.Detail[] | undefined;
706
- message: string;
707
- };
708
- requestId: string;
703
+ orgId: string;
704
+ role: "admin" | "member" | "owner";
705
+ userId: string;
709
706
  };
710
707
  outputFormat: "json";
711
- status: 502;
708
+ status: 200;
712
709
  input: {
713
710
  param: {
714
711
  invitationId: string;
@@ -733,14 +730,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
733
730
  } | {
734
731
  output: {
735
732
  error: {
736
- code: "api_key_invalid" | "api_key_missing";
733
+ code: "param_invalid";
737
734
  details?: readonly Response.error.Detail[] | undefined;
738
735
  message: string;
739
736
  };
740
737
  requestId: string;
741
738
  };
742
739
  outputFormat: "json";
743
- status: 401;
740
+ status: 400;
744
741
  input: {
745
742
  param: {
746
743
  invitationId: string;
@@ -749,14 +746,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
749
746
  } | {
750
747
  output: {
751
748
  error: {
752
- code: "param_invalid";
749
+ code: "api_key_invalid" | "api_key_missing";
753
750
  details?: readonly Response.error.Detail[] | undefined;
754
751
  message: string;
755
752
  };
756
753
  requestId: string;
757
754
  };
758
755
  outputFormat: "json";
759
- status: 400;
756
+ status: 401;
760
757
  input: {
761
758
  param: {
762
759
  invitationId: string;
@@ -796,12 +793,15 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
796
793
  };
797
794
  } | {
798
795
  output: {
799
- orgId: string;
800
- role: "admin" | "member" | "owner";
801
- userId: string;
796
+ error: {
797
+ code: "upstream_error";
798
+ details?: readonly Response.error.Detail[] | undefined;
799
+ message: string;
800
+ };
801
+ requestId: string;
802
802
  };
803
803
  outputFormat: "json";
804
- status: 200;
804
+ status: 502;
805
805
  input: {
806
806
  param: {
807
807
  invitationId: string;
@@ -813,15 +813,10 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
813
813
  "/v1/invitations/:invitationId{inv_[A-Za-z0-9_-]+}/decline": {
814
814
  $post: {
815
815
  output: {
816
- error: {
817
- code: "upstream_error";
818
- details?: readonly Response.error.Detail[] | undefined;
819
- message: string;
820
- };
821
- requestId: string;
816
+ id: string;
822
817
  };
823
818
  outputFormat: "json";
824
- status: 502;
819
+ status: 200;
825
820
  input: {
826
821
  param: {
827
822
  invitationId: string;
@@ -846,14 +841,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
846
841
  } | {
847
842
  output: {
848
843
  error: {
849
- code: "api_key_invalid" | "api_key_missing";
844
+ code: "param_invalid";
850
845
  details?: readonly Response.error.Detail[] | undefined;
851
846
  message: string;
852
847
  };
853
848
  requestId: string;
854
849
  };
855
850
  outputFormat: "json";
856
- status: 401;
851
+ status: 400;
857
852
  input: {
858
853
  param: {
859
854
  invitationId: string;
@@ -862,14 +857,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
862
857
  } | {
863
858
  output: {
864
859
  error: {
865
- code: "param_invalid";
860
+ code: "api_key_invalid" | "api_key_missing";
866
861
  details?: readonly Response.error.Detail[] | undefined;
867
862
  message: string;
868
863
  };
869
864
  requestId: string;
870
865
  };
871
866
  outputFormat: "json";
872
- status: 400;
867
+ status: 401;
873
868
  input: {
874
869
  param: {
875
870
  invitationId: string;
@@ -909,10 +904,15 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
909
904
  };
910
905
  } | {
911
906
  output: {
912
- id: string;
907
+ error: {
908
+ code: "upstream_error";
909
+ details?: readonly Response.error.Detail[] | undefined;
910
+ message: string;
911
+ };
912
+ requestId: string;
913
913
  };
914
914
  outputFormat: "json";
915
- status: 200;
915
+ status: 502;
916
916
  input: {
917
917
  param: {
918
918
  invitationId: string;