tapimo 0.4.4 → 0.5.1

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 (229) hide show
  1. package/dist/App.d.ts +4701 -3416
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +24 -2
  4. package/dist/App.js.map +1 -1
  5. package/dist/Assets.js +3 -3
  6. package/dist/Assets.js.map +1 -1
  7. package/dist/Scope.d.ts +18 -1
  8. package/dist/Scope.d.ts.map +1 -1
  9. package/dist/Scope.js +23 -3
  10. package/dist/Scope.js.map +1 -1
  11. package/dist/Webhooks.d.ts +1 -1
  12. package/dist/Webhooks.d.ts.map +1 -1
  13. package/dist/Webhooks.js +5 -10
  14. package/dist/Webhooks.js.map +1 -1
  15. package/dist/admin/App.d.ts +6 -34
  16. package/dist/admin/App.d.ts.map +1 -1
  17. package/dist/admin/apps/api-keys.d.ts +3 -3
  18. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  19. package/dist/admin/apps/api-keys.js +4 -1
  20. package/dist/admin/apps/api-keys.js.map +1 -1
  21. package/dist/admin/apps/scopes.d.ts +6 -34
  22. package/dist/admin/apps/scopes.d.ts.map +1 -1
  23. package/dist/admin/apps/scopes.js +2 -2
  24. package/dist/admin/apps/scopes.js.map +1 -1
  25. package/dist/admin/apps/verified-tokens.d.ts +57 -57
  26. package/dist/admin/ui.generated.d.ts +1 -1
  27. package/dist/admin/ui.generated.js +33 -33
  28. package/dist/admin/ui.generated.js.map +1 -1
  29. package/dist/apps/data/App.d.ts +4574 -4277
  30. package/dist/apps/data/App.d.ts.map +1 -1
  31. package/dist/apps/data/App.js +155 -77
  32. package/dist/apps/data/App.js.map +1 -1
  33. package/dist/apps/data/FundingQuoteProviders.d.ts +109 -0
  34. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -0
  35. package/dist/apps/data/FundingQuoteProviders.js +464 -0
  36. package/dist/apps/data/FundingQuoteProviders.js.map +1 -0
  37. package/dist/apps/data/index.d.ts +1 -1
  38. package/dist/apps/data/index.js +1 -1
  39. package/dist/apps/data/routes/activities.d.ts +26 -26
  40. package/dist/apps/data/routes/addresses.d.ts +38 -38
  41. package/dist/apps/data/routes/balances.d.ts +45 -45
  42. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  43. package/dist/apps/data/routes/balances.js +67 -149
  44. package/dist/apps/data/routes/balances.js.map +1 -1
  45. package/dist/apps/data/routes/blocks.d.ts +2 -3
  46. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  47. package/dist/apps/data/routes/blocks.js +3 -5
  48. package/dist/apps/data/routes/blocks.js.map +1 -1
  49. package/dist/apps/data/routes/coingecko.d.ts +177 -176
  50. package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
  51. package/dist/apps/data/routes/coingecko.js +3 -8
  52. package/dist/apps/data/routes/coingecko.js.map +1 -1
  53. package/dist/apps/data/routes/funding.d.ts +131 -228
  54. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  55. package/dist/apps/data/routes/funding.js +152 -219
  56. package/dist/apps/data/routes/funding.js.map +1 -1
  57. package/dist/apps/data/routes/indexer.d.ts +34 -34
  58. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  59. package/dist/apps/data/routes/indexer.js +9 -2
  60. package/dist/apps/data/routes/indexer.js.map +1 -1
  61. package/dist/apps/data/routes/receipts.d.ts +228 -228
  62. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  63. package/dist/apps/data/routes/rpc.js +86 -16
  64. package/dist/apps/data/routes/rpc.js.map +1 -1
  65. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  66. package/dist/apps/data/routes/verified-tokens.d.ts +5 -5
  67. package/dist/apps/data/routes/webhooks.d.ts +340 -0
  68. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  69. package/dist/apps/data/routes/webhooks.js +13 -1
  70. package/dist/apps/data/routes/webhooks.js.map +1 -1
  71. package/dist/apps/index.d.ts +1 -1
  72. package/dist/apps/index.js +1 -1
  73. package/dist/apps/management/App.d.ts +1833 -851
  74. package/dist/apps/management/App.d.ts.map +1 -1
  75. package/dist/apps/management/App.js +4 -0
  76. package/dist/apps/management/App.js.map +1 -1
  77. package/dist/apps/management/routes/api-keys.d.ts +41 -41
  78. package/dist/apps/management/routes/api-keys.js +2 -2
  79. package/dist/apps/management/routes/api-keys.js.map +1 -1
  80. package/dist/apps/management/routes/billing.d.ts +48 -48
  81. package/dist/apps/management/routes/invitations.d.ts +132 -132
  82. package/dist/apps/management/routes/invite-links.d.ts +1100 -0
  83. package/dist/apps/management/routes/invite-links.d.ts.map +1 -0
  84. package/dist/apps/management/routes/invite-links.js +411 -0
  85. package/dist/apps/management/routes/invite-links.js.map +1 -0
  86. package/dist/apps/management/routes/members.d.ts +41 -41
  87. package/dist/apps/management/routes/orgs.d.ts +92 -92
  88. package/dist/apps/management/routes/projects.d.ts +9 -9
  89. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  90. package/dist/apps/management/routes/scopes.js +2 -2
  91. package/dist/apps/management/routes/scopes.js.map +1 -1
  92. package/dist/apps/management/routes/usage.d.ts +24 -24
  93. package/dist/apps/mcp.js +2 -2
  94. package/dist/apps/mcp.js.map +1 -1
  95. package/dist/apps/relay/App.d.ts +2 -2
  96. package/dist/apps/relay/App.d.ts.map +1 -1
  97. package/dist/apps/relay/App.js +44 -6
  98. package/dist/apps/relay/App.js.map +1 -1
  99. package/dist/db/Db.d.ts +3 -0
  100. package/dist/db/Db.d.ts.map +1 -1
  101. package/dist/db/Db.js +57 -0
  102. package/dist/db/Db.js.map +1 -1
  103. package/dist/db/Schema.d.ts +31 -0
  104. package/dist/db/Schema.d.ts.map +1 -1
  105. package/dist/db/Schema.js +31 -0
  106. package/dist/db/Schema.js.map +1 -1
  107. package/dist/db/tables/inviteLinks.d.ts +42 -0
  108. package/dist/db/tables/inviteLinks.d.ts.map +1 -0
  109. package/dist/db/tables/inviteLinks.js +148 -0
  110. package/dist/db/tables/inviteLinks.js.map +1 -0
  111. package/dist/db/tables/organizations.d.ts.map +1 -1
  112. package/dist/db/tables/organizations.js +2 -0
  113. package/dist/db/tables/organizations.js.map +1 -1
  114. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  115. package/dist/db/tables/sponsoredTransactions.js +6 -2
  116. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  117. package/dist/handlers/relay.d.ts.map +1 -1
  118. package/dist/handlers/relay.js +13 -3
  119. package/dist/handlers/relay.js.map +1 -1
  120. package/dist/internal/Auth.d.ts +9 -1
  121. package/dist/internal/Auth.d.ts.map +1 -1
  122. package/dist/internal/Auth.js +138 -10
  123. package/dist/internal/Auth.js.map +1 -1
  124. package/dist/internal/EdgeCache.d.ts +3 -1
  125. package/dist/internal/EdgeCache.d.ts.map +1 -1
  126. package/dist/internal/EdgeCache.js +17 -2
  127. package/dist/internal/EdgeCache.js.map +1 -1
  128. package/dist/internal/{FundingRoutes.d.ts → FundingQuotes.d.ts} +240 -369
  129. package/dist/internal/FundingQuotes.d.ts.map +1 -0
  130. package/dist/internal/{FundingRoutes.js → FundingQuotes.js} +144 -183
  131. package/dist/internal/FundingQuotes.js.map +1 -0
  132. package/dist/internal/Log.d.ts +18 -12
  133. package/dist/internal/Log.d.ts.map +1 -1
  134. package/dist/internal/Log.js +2 -0
  135. package/dist/internal/Log.js.map +1 -1
  136. package/dist/internal/Tidx.d.ts +9 -3
  137. package/dist/internal/Tidx.d.ts.map +1 -1
  138. package/dist/internal/Tidx.js +13 -7
  139. package/dist/internal/Tidx.js.map +1 -1
  140. package/dist/internal/Viem.d.ts +17 -2
  141. package/dist/internal/Viem.d.ts.map +1 -1
  142. package/dist/internal/Viem.js +30 -3
  143. package/dist/internal/Viem.js.map +1 -1
  144. package/dist/internal/index.d.ts +1 -1
  145. package/dist/internal/index.js +1 -1
  146. package/package.json +2 -2
  147. package/src/ApiKeys.test.ts +25 -0
  148. package/src/App.test-d.ts +2 -0
  149. package/src/App.test.ts +13 -2
  150. package/src/App.ts +37 -5
  151. package/src/Assets.ts +3 -3
  152. package/src/Client.test-d.ts +21 -11
  153. package/src/Scope.test.ts +1 -0
  154. package/src/Scope.ts +32 -4
  155. package/src/Webhooks.ts +5 -10
  156. package/src/admin/apps/api-keys.test.ts +27 -0
  157. package/src/admin/apps/api-keys.ts +8 -1
  158. package/src/admin/apps/scopes.test.ts +7 -2
  159. package/src/admin/apps/scopes.ts +2 -2
  160. package/src/admin/ui/src/components/Dialog.tsx +8 -2
  161. package/src/admin/ui/src/lib/scopes.test.ts +19 -0
  162. package/src/admin/ui/src/lib/scopes.ts +12 -0
  163. package/src/admin/ui/src/routes/api-keys.tsx +128 -27
  164. package/src/admin/ui.generated.ts +33 -33
  165. package/src/apps/composition.test.ts +77 -0
  166. package/src/apps/data/App.test.ts +354 -0
  167. package/src/apps/data/App.ts +178 -91
  168. package/src/apps/data/FundingQuoteProviders.test.ts +577 -0
  169. package/src/apps/data/FundingQuoteProviders.ts +633 -0
  170. package/src/apps/data/index.ts +1 -1
  171. package/src/apps/data/routes/balances.test.ts +64 -18
  172. package/src/apps/data/routes/balances.ts +76 -177
  173. package/src/apps/data/routes/blocks.ts +3 -5
  174. package/src/apps/data/routes/coingecko.ts +3 -8
  175. package/src/apps/data/routes/funding.test.ts +304 -192
  176. package/src/apps/data/routes/funding.ts +166 -286
  177. package/src/apps/data/routes/indexer.test.ts +173 -15
  178. package/src/apps/data/routes/indexer.ts +8 -2
  179. package/src/apps/data/routes/rpc.test.ts +219 -0
  180. package/src/apps/data/routes/rpc.ts +92 -17
  181. package/src/apps/data/routes/webhooks.test.ts +21 -0
  182. package/src/apps/data/routes/webhooks.ts +13 -1
  183. package/src/apps/index.ts +1 -1
  184. package/src/apps/management/App.ts +4 -0
  185. package/src/apps/management/Billing.test.ts +2 -2
  186. package/src/apps/management/routes/api-keys.test.ts +47 -3
  187. package/src/apps/management/routes/api-keys.ts +2 -2
  188. package/src/apps/management/routes/invite-links.test.ts +385 -0
  189. package/src/apps/management/routes/invite-links.ts +570 -0
  190. package/src/apps/management/routes/scopes.test.ts +3 -2
  191. package/src/apps/management/routes/scopes.ts +4 -2
  192. package/src/apps/mcp.test.ts +18 -0
  193. package/src/apps/mcp.ts +2 -2
  194. package/src/apps/relay/App.test.ts +328 -7
  195. package/src/apps/relay/App.ts +42 -6
  196. package/src/apps/relay/Sponsorships.test.ts +2 -2
  197. package/src/db/Db.test.ts +5 -5
  198. package/src/db/Db.ts +65 -0
  199. package/src/db/Schema.ts +39 -0
  200. package/src/db/tables/billingSettings.test.ts +2 -2
  201. package/src/db/tables/inviteLinks.ts +187 -0
  202. package/src/db/tables/organizations.test.ts +2 -2
  203. package/src/db/tables/organizations.ts +2 -0
  204. package/src/db/tables/sponsoredTransactions.test.ts +19 -2
  205. package/src/db/tables/sponsoredTransactions.ts +21 -14
  206. package/src/db/tables/stripeCustomers.test.ts +2 -2
  207. package/src/handlers/relay.ts +16 -4
  208. package/src/internal/Auth.test.ts +132 -22
  209. package/src/internal/Auth.ts +181 -14
  210. package/src/internal/EdgeCache.test.ts +24 -3
  211. package/src/internal/EdgeCache.ts +18 -2
  212. package/src/internal/FundingQuotes.test.ts +268 -0
  213. package/src/internal/{FundingRoutes.ts → FundingQuotes.ts} +216 -277
  214. package/src/internal/Log.ts +21 -14
  215. package/src/internal/Tidx.test.ts +48 -0
  216. package/src/internal/Tidx.ts +21 -7
  217. package/src/internal/Viem.test.ts +46 -0
  218. package/src/internal/Viem.ts +48 -6
  219. package/src/internal/index.test.ts +1 -1
  220. package/src/internal/index.ts +1 -1
  221. package/dist/apps/data/FundingRouteProviders.d.ts +0 -36
  222. package/dist/apps/data/FundingRouteProviders.d.ts.map +0 -1
  223. package/dist/apps/data/FundingRouteProviders.js +0 -245
  224. package/dist/apps/data/FundingRouteProviders.js.map +0 -1
  225. package/dist/internal/FundingRoutes.d.ts.map +0 -1
  226. package/dist/internal/FundingRoutes.js.map +0 -1
  227. package/src/apps/data/FundingRouteProviders.test.ts +0 -225
  228. package/src/apps/data/FundingRouteProviders.ts +0 -312
  229. package/src/internal/FundingRoutes.test.ts +0 -213
@@ -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: "api_key_malformed";
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: 400;
142
+ status: 200;
142
143
  input: {
143
144
  param: {
144
145
  orgId: string;
@@ -152,14 +153,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
152
153
  } | {
153
154
  output: {
154
155
  error: {
155
- code: "api_key_invalid" | "api_key_missing";
156
+ code: "api_key_malformed";
156
157
  details?: readonly Response.error.Detail[] | undefined;
157
158
  message: string;
158
159
  };
159
160
  requestId: string;
160
161
  };
161
162
  outputFormat: "json";
162
- status: 401;
163
+ status: 400;
163
164
  input: {
164
165
  param: {
165
166
  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_forbidden";
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: 403;
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: "payment_required" | "rate_limit_exceeded";
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: 429;
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: "upstream_error";
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: 502;
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";
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;
@@ -299,14 +300,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
299
300
  } | {
300
301
  output: {
301
302
  error: {
302
- code: "forbidden";
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: 403;
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: "api_key_malformed";
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: 400;
359
+ status: 200;
357
360
  input: {
358
361
  param: {
359
362
  orgId: string;
@@ -362,14 +365,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
362
365
  } | {
363
366
  output: {
364
367
  error: {
365
- code: "api_key_invalid" | "api_key_missing";
368
+ code: "api_key_malformed";
366
369
  details?: readonly Response.error.Detail[] | undefined;
367
370
  message: string;
368
371
  };
369
372
  requestId: string;
370
373
  };
371
374
  outputFormat: "json";
372
- status: 401;
375
+ status: 400;
373
376
  input: {
374
377
  param: {
375
378
  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_forbidden";
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: 403;
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: "payment_required" | "rate_limit_exceeded";
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: 429;
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: "upstream_error";
416
+ code: "api_key_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: 502;
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: "api_key_malformed";
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: 400;
486
+ status: 200;
492
487
  input: {
493
488
  param: {
494
489
  invitationId: string;
@@ -498,14 +493,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
498
493
  } | {
499
494
  output: {
500
495
  error: {
501
- code: "api_key_invalid" | "api_key_missing";
496
+ code: "api_key_malformed";
502
497
  details?: readonly Response.error.Detail[] | undefined;
503
498
  message: string;
504
499
  };
505
500
  requestId: string;
506
501
  };
507
502
  outputFormat: "json";
508
- status: 401;
503
+ status: 400;
509
504
  input: {
510
505
  param: {
511
506
  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_forbidden";
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: 403;
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: "payment_required" | "rate_limit_exceeded";
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: 429;
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: "upstream_error";
547
+ code: "api_key_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: 502;
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;
@@ -631,6 +631,22 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
631
631
  } & {
632
632
  "/v1/invitations": {
633
633
  $get: {
634
+ output: {
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
+ }[];
645
+ };
646
+ outputFormat: "json";
647
+ status: 200;
648
+ input: {};
649
+ } | {
634
650
  output: {
635
651
  error: {
636
652
  code: "api_key_malformed";
@@ -657,42 +673,26 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
657
673
  } | {
658
674
  output: {
659
675
  error: {
660
- code: "upstream_error";
676
+ code: "forbidden";
661
677
  details?: readonly Response.error.Detail[] | undefined;
662
678
  message: string;
663
679
  };
664
680
  requestId: string;
665
681
  };
666
682
  outputFormat: "json";
667
- status: 502;
683
+ status: 403;
668
684
  input: {};
669
685
  } | {
670
686
  output: {
671
687
  error: {
672
- code: "forbidden";
688
+ code: "upstream_error";
673
689
  details?: readonly Response.error.Detail[] | undefined;
674
690
  message: string;
675
691
  };
676
692
  requestId: string;
677
693
  };
678
694
  outputFormat: "json";
679
- status: 403;
680
- input: {};
681
- } | {
682
- 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
- }[];
693
- };
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: "api_key_malformed";
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: 400;
708
+ status: 200;
712
709
  input: {
713
710
  param: {
714
711
  invitationId: string;
@@ -717,14 +714,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
717
714
  } | {
718
715
  output: {
719
716
  error: {
720
- code: "api_key_invalid" | "api_key_missing";
717
+ code: "api_key_malformed";
721
718
  details?: readonly Response.error.Detail[] | undefined;
722
719
  message: string;
723
720
  };
724
721
  requestId: string;
725
722
  };
726
723
  outputFormat: "json";
727
- status: 401;
724
+ status: 400;
728
725
  input: {
729
726
  param: {
730
727
  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: "upstream_error";
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: 502;
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: "api_key_malformed";
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: 400;
819
+ status: 200;
825
820
  input: {
826
821
  param: {
827
822
  invitationId: string;
@@ -830,14 +825,14 @@ export declare function invitations(): import("hono/hono-base").HonoBase<Environ
830
825
  } | {
831
826
  output: {
832
827
  error: {
833
- code: "api_key_invalid" | "api_key_missing";
828
+ code: "api_key_malformed";
834
829
  details?: readonly Response.error.Detail[] | undefined;
835
830
  message: string;
836
831
  };
837
832
  requestId: string;
838
833
  };
839
834
  outputFormat: "json";
840
- status: 401;
835
+ status: 400;
841
836
  input: {
842
837
  param: {
843
838
  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: "upstream_error";
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: 502;
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;