tapimo 0.5.0 → 0.5.2

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 (197) hide show
  1. package/dist/App.d.ts +4854 -4829
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +20 -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.map +1 -1
  8. package/dist/Scope.js +1 -2
  9. package/dist/Scope.js.map +1 -1
  10. package/dist/Webhooks.d.ts +1 -1
  11. package/dist/Webhooks.d.ts.map +1 -1
  12. package/dist/Webhooks.js +5 -10
  13. package/dist/Webhooks.js.map +1 -1
  14. package/dist/admin/App.d.ts +6 -34
  15. package/dist/admin/App.d.ts.map +1 -1
  16. package/dist/admin/apps/api-keys.d.ts +3 -3
  17. package/dist/admin/apps/api-keys.d.ts.map +1 -1
  18. package/dist/admin/apps/api-keys.js +4 -1
  19. package/dist/admin/apps/api-keys.js.map +1 -1
  20. package/dist/admin/apps/scopes.d.ts +6 -34
  21. package/dist/admin/apps/scopes.d.ts.map +1 -1
  22. package/dist/admin/apps/scopes.js +2 -2
  23. package/dist/admin/apps/scopes.js.map +1 -1
  24. package/dist/admin/apps/verified-tokens.d.ts +2 -2
  25. package/dist/admin/ui.generated.d.ts +1 -1
  26. package/dist/admin/ui.generated.js +33 -33
  27. package/dist/admin/ui.generated.js.map +1 -1
  28. package/dist/apps/data/App.d.ts +1398 -1405
  29. package/dist/apps/data/App.d.ts.map +1 -1
  30. package/dist/apps/data/App.js +25 -38
  31. package/dist/apps/data/App.js.map +1 -1
  32. package/dist/apps/data/FundingQuoteProviders.d.ts +108 -3
  33. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -1
  34. package/dist/apps/data/FundingQuoteProviders.js +409 -2
  35. package/dist/apps/data/FundingQuoteProviders.js.map +1 -1
  36. package/dist/apps/data/routes/activities.d.ts +245 -245
  37. package/dist/apps/data/routes/blocks.d.ts +123 -123
  38. package/dist/apps/data/routes/funding.d.ts +236 -146
  39. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  40. package/dist/apps/data/routes/funding.js +23 -12
  41. package/dist/apps/data/routes/funding.js.map +1 -1
  42. package/dist/apps/data/routes/indexer.d.ts.map +1 -1
  43. package/dist/apps/data/routes/indexer.js +9 -2
  44. package/dist/apps/data/routes/indexer.js.map +1 -1
  45. package/dist/apps/data/routes/rpc.d.ts +31 -31
  46. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  47. package/dist/apps/data/routes/transactions.d.ts +281 -281
  48. package/dist/apps/data/routes/transfers.d.ts +66 -73
  49. package/dist/apps/data/routes/transfers.d.ts.map +1 -1
  50. package/dist/apps/data/routes/transfers.js +21 -27
  51. package/dist/apps/data/routes/transfers.js.map +1 -1
  52. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  53. package/dist/apps/data/routes/webhooks.d.ts +35 -35
  54. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  55. package/dist/apps/data/routes/webhooks.js +176 -42
  56. package/dist/apps/data/routes/webhooks.js.map +1 -1
  57. package/dist/apps/management/App.d.ts +520 -504
  58. package/dist/apps/management/App.d.ts.map +1 -1
  59. package/dist/apps/management/Billing.d.ts.map +1 -1
  60. package/dist/apps/management/Billing.js +5 -4
  61. package/dist/apps/management/Billing.js.map +1 -1
  62. package/dist/apps/management/routes/api-keys.d.ts +120 -120
  63. package/dist/apps/management/routes/billing.d.ts +211 -211
  64. package/dist/apps/management/routes/billing.d.ts.map +1 -1
  65. package/dist/apps/management/routes/billing.js +1 -1
  66. package/dist/apps/management/routes/billing.js.map +1 -1
  67. package/dist/apps/management/routes/invitations.d.ts +72 -72
  68. package/dist/apps/management/routes/invite-links.d.ts +159 -159
  69. package/dist/apps/management/routes/me.d.ts +17 -17
  70. package/dist/apps/management/routes/members.d.ts +80 -80
  71. package/dist/apps/management/routes/orgs.d.ts +59 -43
  72. package/dist/apps/management/routes/orgs.d.ts.map +1 -1
  73. package/dist/apps/management/routes/orgs.js +18 -1
  74. package/dist/apps/management/routes/orgs.js.map +1 -1
  75. package/dist/apps/management/routes/projects.d.ts +109 -109
  76. package/dist/apps/management/routes/scopes.d.ts +11 -11
  77. package/dist/apps/management/routes/usage.d.ts +79 -79
  78. package/dist/apps/mcp.js +2 -2
  79. package/dist/apps/mcp.js.map +1 -1
  80. package/dist/apps/relay/App.d.ts +2 -2
  81. package/dist/apps/relay/App.js +2 -2
  82. package/dist/apps/relay/Sponsorships.d.ts +3 -0
  83. package/dist/apps/relay/Sponsorships.d.ts.map +1 -1
  84. package/dist/apps/relay/Sponsorships.js +15 -1
  85. package/dist/apps/relay/Sponsorships.js.map +1 -1
  86. package/dist/db/Db.d.ts.map +1 -1
  87. package/dist/db/Db.js +4 -0
  88. package/dist/db/Db.js.map +1 -1
  89. package/dist/db/Schema.js +1 -1
  90. package/dist/db/Schema.js.map +1 -1
  91. package/dist/db/tables/organizations.d.ts +6 -0
  92. package/dist/db/tables/organizations.d.ts.map +1 -1
  93. package/dist/db/tables/organizations.js +26 -0
  94. package/dist/db/tables/organizations.js.map +1 -1
  95. package/dist/db/tables/requestUsage.d.ts +2 -11
  96. package/dist/db/tables/requestUsage.d.ts.map +1 -1
  97. package/dist/db/tables/requestUsage.js +1 -20
  98. package/dist/db/tables/requestUsage.js.map +1 -1
  99. package/dist/db/tables/sponsoredTransactions.d.ts +2 -1
  100. package/dist/db/tables/sponsoredTransactions.d.ts.map +1 -1
  101. package/dist/db/tables/sponsoredTransactions.js +52 -10
  102. package/dist/db/tables/sponsoredTransactions.js.map +1 -1
  103. package/dist/internal/Auth.d.ts +4 -0
  104. package/dist/internal/Auth.d.ts.map +1 -1
  105. package/dist/internal/Auth.js +15 -8
  106. package/dist/internal/Auth.js.map +1 -1
  107. package/dist/internal/Cache.d.ts.map +1 -1
  108. package/dist/internal/Cache.js +9 -1
  109. package/dist/internal/Cache.js.map +1 -1
  110. package/dist/internal/EdgeCache.d.ts.map +1 -1
  111. package/dist/internal/EdgeCache.js +12 -3
  112. package/dist/internal/EdgeCache.js.map +1 -1
  113. package/dist/internal/FundingQuotes.d.ts +176 -56
  114. package/dist/internal/FundingQuotes.d.ts.map +1 -1
  115. package/dist/internal/FundingQuotes.js +100 -5
  116. package/dist/internal/FundingQuotes.js.map +1 -1
  117. package/dist/internal/Log.d.ts +18 -12
  118. package/dist/internal/Log.d.ts.map +1 -1
  119. package/dist/internal/Log.js +2 -0
  120. package/dist/internal/Log.js.map +1 -1
  121. package/dist/internal/RateLimit.d.ts +2 -0
  122. package/dist/internal/RateLimit.d.ts.map +1 -1
  123. package/dist/internal/RateLimit.js +4 -4
  124. package/dist/internal/RateLimit.js.map +1 -1
  125. package/dist/internal/Tidx.d.ts +9 -3
  126. package/dist/internal/Tidx.d.ts.map +1 -1
  127. package/dist/internal/Tidx.js +13 -7
  128. package/dist/internal/Tidx.js.map +1 -1
  129. package/dist/internal/Viem.d.ts +14 -1
  130. package/dist/internal/Viem.d.ts.map +1 -1
  131. package/dist/internal/Viem.js +19 -1
  132. package/dist/internal/Viem.js.map +1 -1
  133. package/package.json +7 -2
  134. package/src/ApiKeys.test.ts +2 -0
  135. package/src/App.test.ts +15 -4
  136. package/src/App.ts +31 -5
  137. package/src/Assets.ts +3 -3
  138. package/src/Client.test-d.ts +30 -3
  139. package/src/Scope.ts +4 -2
  140. package/src/Webhooks.ts +5 -10
  141. package/src/admin/apps/api-keys.test.ts +27 -0
  142. package/src/admin/apps/api-keys.ts +8 -1
  143. package/src/admin/apps/scopes.test.ts +7 -2
  144. package/src/admin/apps/scopes.ts +2 -2
  145. package/src/admin/ui/src/components/Dialog.tsx +8 -2
  146. package/src/admin/ui/src/lib/scopes.test.ts +19 -0
  147. package/src/admin/ui/src/lib/scopes.ts +12 -0
  148. package/src/admin/ui/src/routes/api-keys.tsx +128 -27
  149. package/src/admin/ui.generated.ts +33 -33
  150. package/src/apps/composition.test.ts +77 -0
  151. package/src/apps/data/App.ts +25 -45
  152. package/src/apps/data/FundingQuoteProviders.test.ts +615 -5
  153. package/src/apps/data/FundingQuoteProviders.ts +570 -4
  154. package/src/apps/data/routes/funding.test.ts +181 -7
  155. package/src/apps/data/routes/funding.ts +27 -12
  156. package/src/apps/data/routes/indexer.test.ts +82 -20
  157. package/src/apps/data/routes/indexer.ts +8 -2
  158. package/src/apps/data/routes/tokens.test.ts +54 -0
  159. package/src/apps/data/routes/transfers.test.ts +73 -1
  160. package/src/apps/data/routes/transfers.ts +24 -30
  161. package/src/apps/data/routes/webhooks.test.ts +203 -0
  162. package/src/apps/data/routes/webhooks.ts +191 -54
  163. package/src/apps/management/Billing.test.ts +52 -3
  164. package/src/apps/management/Billing.ts +5 -4
  165. package/src/apps/management/routes/billing.ts +6 -1
  166. package/src/apps/management/routes/orgs.ts +19 -1
  167. package/src/apps/mcp.test.ts +18 -0
  168. package/src/apps/mcp.ts +2 -2
  169. package/src/apps/relay/App.test.ts +6 -5
  170. package/src/apps/relay/App.ts +2 -2
  171. package/src/apps/relay/Sponsorships.test.ts +2 -2
  172. package/src/apps/relay/Sponsorships.ts +24 -1
  173. package/src/db/Db.test.ts +5 -5
  174. package/src/db/Db.ts +4 -0
  175. package/src/db/Schema.ts +1 -1
  176. package/src/db/tables/billingSettings.test.ts +2 -2
  177. package/src/db/tables/organizations.test.ts +32 -2
  178. package/src/db/tables/organizations.ts +28 -0
  179. package/src/db/tables/requestUsage.ts +3 -23
  180. package/src/db/tables/sponsoredTransactions.test.ts +60 -2
  181. package/src/db/tables/sponsoredTransactions.ts +67 -21
  182. package/src/db/tables/stripeCustomers.test.ts +2 -2
  183. package/src/internal/Auth.test.ts +63 -10
  184. package/src/internal/Auth.ts +21 -9
  185. package/src/internal/Cache.test.ts +19 -0
  186. package/src/internal/Cache.ts +13 -1
  187. package/src/internal/EdgeCache.test.ts +40 -0
  188. package/src/internal/EdgeCache.ts +11 -3
  189. package/src/internal/FundingQuotes.test.ts +130 -3
  190. package/src/internal/FundingQuotes.ts +113 -6
  191. package/src/internal/Log.ts +21 -14
  192. package/src/internal/RateLimit.test.ts +12 -0
  193. package/src/internal/RateLimit.ts +4 -4
  194. package/src/internal/Tidx.test.ts +48 -0
  195. package/src/internal/Tidx.ts +21 -7
  196. package/src/internal/Viem.test.ts +46 -0
  197. package/src/internal/Viem.ts +34 -1
@@ -118,15 +118,23 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
118
118
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links": {
119
119
  $post: {
120
120
  output: {
121
- error: {
122
- code: "upstream_error";
123
- details?: readonly Response.error.Detail[] | undefined;
124
- message: string;
125
- };
126
- requestId: string;
121
+ createdAt: string;
122
+ createdBy: string;
123
+ enabled: boolean;
124
+ expiresAt: string | null;
125
+ id: string;
126
+ lastUsedAt: string | null;
127
+ maxUses: number | null;
128
+ name: string;
129
+ orgId: string;
130
+ role: "member";
131
+ status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
132
+ token: string;
133
+ updatedAt: string;
134
+ useCount: number;
127
135
  };
128
136
  outputFormat: "json";
129
- status: 502;
137
+ status: 200;
130
138
  input: {
131
139
  param: {
132
140
  orgId: string;
@@ -165,14 +173,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
165
173
  } | {
166
174
  output: {
167
175
  error: {
168
- code: "api_key_invalid" | "api_key_missing";
176
+ code: "body_invalid";
169
177
  details?: readonly Response.error.Detail[] | undefined;
170
178
  message: string;
171
179
  };
172
180
  requestId: string;
173
181
  };
174
182
  outputFormat: "json";
175
- status: 401;
183
+ status: 400;
176
184
  input: {
177
185
  param: {
178
186
  orgId: string;
@@ -188,14 +196,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
188
196
  } | {
189
197
  output: {
190
198
  error: {
191
- code: "organization_not_found";
199
+ code: "api_key_invalid" | "api_key_missing";
192
200
  details?: readonly Response.error.Detail[] | undefined;
193
201
  message: string;
194
202
  };
195
203
  requestId: string;
196
204
  };
197
205
  outputFormat: "json";
198
- status: 404;
206
+ status: 401;
199
207
  input: {
200
208
  param: {
201
209
  orgId: string;
@@ -234,14 +242,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
234
242
  } | {
235
243
  output: {
236
244
  error: {
237
- code: "body_invalid";
245
+ code: "organization_not_found";
238
246
  details?: readonly Response.error.Detail[] | undefined;
239
247
  message: string;
240
248
  };
241
249
  requestId: string;
242
250
  };
243
251
  outputFormat: "json";
244
- status: 400;
252
+ status: 404;
245
253
  input: {
246
254
  param: {
247
255
  orgId: string;
@@ -256,23 +264,15 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
256
264
  };
257
265
  } | {
258
266
  output: {
259
- createdAt: string;
260
- createdBy: string;
261
- enabled: boolean;
262
- expiresAt: string | null;
263
- id: string;
264
- lastUsedAt: string | null;
265
- maxUses: number | null;
266
- name: string;
267
- orgId: string;
268
- role: "member";
269
- status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
270
- token: string;
271
- updatedAt: string;
272
- useCount: number;
267
+ error: {
268
+ code: "upstream_error";
269
+ details?: readonly Response.error.Detail[] | undefined;
270
+ message: string;
271
+ };
272
+ requestId: string;
273
273
  };
274
274
  outputFormat: "json";
275
- status: 200;
275
+ status: 502;
276
276
  input: {
277
277
  param: {
278
278
  orgId: string;
@@ -291,15 +291,25 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
291
291
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links": {
292
292
  $get: {
293
293
  output: {
294
- error: {
295
- code: "upstream_error";
296
- details?: readonly Response.error.Detail[] | undefined;
297
- message: string;
298
- };
299
- requestId: string;
294
+ data: {
295
+ createdAt: string;
296
+ createdBy: string;
297
+ enabled: boolean;
298
+ expiresAt: string | null;
299
+ id: string;
300
+ lastUsedAt: string | null;
301
+ maxUses: number | null;
302
+ name: string;
303
+ orgId: string;
304
+ role: "member";
305
+ status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
306
+ token: string;
307
+ updatedAt: string;
308
+ useCount: number;
309
+ }[];
300
310
  };
301
311
  outputFormat: "json";
302
- status: 502;
312
+ status: 200;
303
313
  input: {
304
314
  param: {
305
315
  orgId: string;
@@ -324,14 +334,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
324
334
  } | {
325
335
  output: {
326
336
  error: {
327
- code: "api_key_invalid" | "api_key_missing";
337
+ code: "param_invalid";
328
338
  details?: readonly Response.error.Detail[] | undefined;
329
339
  message: string;
330
340
  };
331
341
  requestId: string;
332
342
  };
333
343
  outputFormat: "json";
334
- status: 401;
344
+ status: 400;
335
345
  input: {
336
346
  param: {
337
347
  orgId: string;
@@ -340,14 +350,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
340
350
  } | {
341
351
  output: {
342
352
  error: {
343
- code: "organization_not_found";
353
+ code: "api_key_invalid" | "api_key_missing";
344
354
  details?: readonly Response.error.Detail[] | undefined;
345
355
  message: string;
346
356
  };
347
357
  requestId: string;
348
358
  };
349
359
  outputFormat: "json";
350
- status: 404;
360
+ status: 401;
351
361
  input: {
352
362
  param: {
353
363
  orgId: string;
@@ -372,14 +382,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
372
382
  } | {
373
383
  output: {
374
384
  error: {
375
- code: "param_invalid";
385
+ code: "organization_not_found";
376
386
  details?: readonly Response.error.Detail[] | undefined;
377
387
  message: string;
378
388
  };
379
389
  requestId: string;
380
390
  };
381
391
  outputFormat: "json";
382
- status: 400;
392
+ status: 404;
383
393
  input: {
384
394
  param: {
385
395
  orgId: string;
@@ -387,25 +397,15 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
387
397
  };
388
398
  } | {
389
399
  output: {
390
- data: {
391
- createdAt: string;
392
- createdBy: string;
393
- enabled: boolean;
394
- expiresAt: string | null;
395
- id: string;
396
- lastUsedAt: string | null;
397
- maxUses: number | null;
398
- name: string;
399
- orgId: string;
400
- role: "member";
401
- status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
402
- token: string;
403
- updatedAt: string;
404
- useCount: number;
405
- }[];
400
+ error: {
401
+ code: "upstream_error";
402
+ details?: readonly Response.error.Detail[] | undefined;
403
+ message: string;
404
+ };
405
+ requestId: string;
406
406
  };
407
407
  outputFormat: "json";
408
- status: 200;
408
+ status: 502;
409
409
  input: {
410
410
  param: {
411
411
  orgId: string;
@@ -417,15 +417,23 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
417
417
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links/:inviteLinkId{iln_[A-Za-z0-9_-]+}": {
418
418
  $patch: {
419
419
  output: {
420
- error: {
421
- code: "upstream_error";
422
- details?: readonly Response.error.Detail[] | undefined;
423
- message: string;
424
- };
425
- requestId: string;
420
+ createdAt: string;
421
+ createdBy: string;
422
+ enabled: boolean;
423
+ expiresAt: string | null;
424
+ id: string;
425
+ lastUsedAt: string | null;
426
+ maxUses: number | null;
427
+ name: string;
428
+ orgId: string;
429
+ role: "member";
430
+ status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
431
+ token: string;
432
+ updatedAt: string;
433
+ useCount: number;
426
434
  };
427
435
  outputFormat: "json";
428
- status: 502;
436
+ status: 200;
429
437
  input: {
430
438
  param: {
431
439
  inviteLinkId: string;
@@ -460,14 +468,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
460
468
  } | {
461
469
  output: {
462
470
  error: {
463
- code: "api_key_invalid" | "api_key_missing";
471
+ code: "body_invalid";
464
472
  details?: readonly Response.error.Detail[] | undefined;
465
473
  message: string;
466
474
  };
467
475
  requestId: string;
468
476
  };
469
477
  outputFormat: "json";
470
- status: 401;
478
+ status: 400;
471
479
  input: {
472
480
  param: {
473
481
  inviteLinkId: string;
@@ -481,14 +489,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
481
489
  } | {
482
490
  output: {
483
491
  error: {
484
- code: "organization_not_found";
492
+ code: "api_key_invalid" | "api_key_missing";
485
493
  details?: readonly Response.error.Detail[] | undefined;
486
494
  message: string;
487
495
  };
488
496
  requestId: string;
489
497
  };
490
498
  outputFormat: "json";
491
- status: 404;
499
+ status: 401;
492
500
  input: {
493
501
  param: {
494
502
  inviteLinkId: string;
@@ -523,14 +531,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
523
531
  } | {
524
532
  output: {
525
533
  error: {
526
- code: "body_invalid";
534
+ code: "organization_not_found";
527
535
  details?: readonly Response.error.Detail[] | undefined;
528
536
  message: string;
529
537
  };
530
538
  requestId: string;
531
539
  };
532
540
  outputFormat: "json";
533
- status: 400;
541
+ status: 404;
534
542
  input: {
535
543
  param: {
536
544
  inviteLinkId: string;
@@ -543,23 +551,15 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
543
551
  };
544
552
  } | {
545
553
  output: {
546
- createdAt: string;
547
- createdBy: string;
548
- enabled: boolean;
549
- expiresAt: string | null;
550
- id: string;
551
- lastUsedAt: string | null;
552
- maxUses: number | null;
553
- name: string;
554
- orgId: string;
555
- role: "member";
556
- status: "active" | "deleted" | "disabled" | "exhausted" | "expired";
557
- token: string;
558
- updatedAt: string;
559
- useCount: number;
554
+ error: {
555
+ code: "invite_link_not_found";
556
+ details?: readonly Response.error.Detail[] | undefined;
557
+ message: string;
558
+ };
559
+ requestId: string;
560
560
  };
561
561
  outputFormat: "json";
562
- status: 200;
562
+ status: 404;
563
563
  input: {
564
564
  param: {
565
565
  inviteLinkId: string;
@@ -573,14 +573,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
573
573
  } | {
574
574
  output: {
575
575
  error: {
576
- code: "invite_link_not_found";
576
+ code: "upstream_error";
577
577
  details?: readonly Response.error.Detail[] | undefined;
578
578
  message: string;
579
579
  };
580
580
  requestId: string;
581
581
  };
582
582
  outputFormat: "json";
583
- status: 404;
583
+ status: 502;
584
584
  input: {
585
585
  param: {
586
586
  inviteLinkId: string;
@@ -597,15 +597,10 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
597
597
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links/:inviteLinkId{iln_[A-Za-z0-9_-]+}": {
598
598
  $delete: {
599
599
  output: {
600
- error: {
601
- code: "upstream_error";
602
- details?: readonly Response.error.Detail[] | undefined;
603
- message: string;
604
- };
605
- requestId: string;
600
+ id: string;
606
601
  };
607
602
  outputFormat: "json";
608
- status: 502;
603
+ status: 200;
609
604
  input: {
610
605
  param: {
611
606
  inviteLinkId: string;
@@ -632,14 +627,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
632
627
  } | {
633
628
  output: {
634
629
  error: {
635
- code: "api_key_invalid" | "api_key_missing";
630
+ code: "param_invalid";
636
631
  details?: readonly Response.error.Detail[] | undefined;
637
632
  message: string;
638
633
  };
639
634
  requestId: string;
640
635
  };
641
636
  outputFormat: "json";
642
- status: 401;
637
+ status: 400;
643
638
  input: {
644
639
  param: {
645
640
  inviteLinkId: string;
@@ -649,14 +644,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
649
644
  } | {
650
645
  output: {
651
646
  error: {
652
- code: "organization_not_found";
647
+ code: "api_key_invalid" | "api_key_missing";
653
648
  details?: readonly Response.error.Detail[] | undefined;
654
649
  message: string;
655
650
  };
656
651
  requestId: string;
657
652
  };
658
653
  outputFormat: "json";
659
- status: 404;
654
+ status: 401;
660
655
  input: {
661
656
  param: {
662
657
  inviteLinkId: string;
@@ -683,14 +678,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
683
678
  } | {
684
679
  output: {
685
680
  error: {
686
- code: "param_invalid";
681
+ code: "organization_not_found";
687
682
  details?: readonly Response.error.Detail[] | undefined;
688
683
  message: string;
689
684
  };
690
685
  requestId: string;
691
686
  };
692
687
  outputFormat: "json";
693
- status: 400;
688
+ status: 404;
694
689
  input: {
695
690
  param: {
696
691
  inviteLinkId: string;
@@ -716,10 +711,15 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
716
711
  };
717
712
  } | {
718
713
  output: {
719
- id: string;
714
+ error: {
715
+ code: "upstream_error";
716
+ details?: readonly Response.error.Detail[] | undefined;
717
+ message: string;
718
+ };
719
+ requestId: string;
720
720
  };
721
721
  outputFormat: "json";
722
- status: 200;
722
+ status: 502;
723
723
  input: {
724
724
  param: {
725
725
  inviteLinkId: string;
@@ -732,15 +732,18 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
732
732
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/invite-links/:inviteLinkId{iln_[A-Za-z0-9_-]+}/redemptions": {
733
733
  $get: {
734
734
  output: {
735
- error: {
736
- code: "upstream_error";
737
- details?: readonly Response.error.Detail[] | undefined;
738
- message: string;
739
- };
740
- requestId: string;
735
+ data: {
736
+ createdAt: string;
737
+ email: string;
738
+ id: string;
739
+ inviteLinkId: string;
740
+ inviteLinkName: string;
741
+ orgId: string;
742
+ userId: string;
743
+ }[];
741
744
  };
742
745
  outputFormat: "json";
743
- status: 502;
746
+ status: 200;
744
747
  input: {
745
748
  param: {
746
749
  inviteLinkId: string;
@@ -767,14 +770,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
767
770
  } | {
768
771
  output: {
769
772
  error: {
770
- code: "api_key_invalid" | "api_key_missing";
773
+ code: "param_invalid";
771
774
  details?: readonly Response.error.Detail[] | undefined;
772
775
  message: string;
773
776
  };
774
777
  requestId: string;
775
778
  };
776
779
  outputFormat: "json";
777
- status: 401;
780
+ status: 400;
778
781
  input: {
779
782
  param: {
780
783
  inviteLinkId: string;
@@ -784,14 +787,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
784
787
  } | {
785
788
  output: {
786
789
  error: {
787
- code: "organization_not_found";
790
+ code: "api_key_invalid" | "api_key_missing";
788
791
  details?: readonly Response.error.Detail[] | undefined;
789
792
  message: string;
790
793
  };
791
794
  requestId: string;
792
795
  };
793
796
  outputFormat: "json";
794
- status: 404;
797
+ status: 401;
795
798
  input: {
796
799
  param: {
797
800
  inviteLinkId: string;
@@ -818,14 +821,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
818
821
  } | {
819
822
  output: {
820
823
  error: {
821
- code: "param_invalid";
824
+ code: "organization_not_found";
822
825
  details?: readonly Response.error.Detail[] | undefined;
823
826
  message: string;
824
827
  };
825
828
  requestId: string;
826
829
  };
827
830
  outputFormat: "json";
828
- status: 400;
831
+ status: 404;
829
832
  input: {
830
833
  param: {
831
834
  inviteLinkId: string;
@@ -851,18 +854,15 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
851
854
  };
852
855
  } | {
853
856
  output: {
854
- data: {
855
- createdAt: string;
856
- email: string;
857
- id: string;
858
- inviteLinkId: string;
859
- inviteLinkName: string;
860
- orgId: string;
861
- userId: string;
862
- }[];
857
+ error: {
858
+ code: "upstream_error";
859
+ details?: readonly Response.error.Detail[] | undefined;
860
+ message: string;
861
+ };
862
+ requestId: string;
863
863
  };
864
864
  outputFormat: "json";
865
- status: 200;
865
+ status: 502;
866
866
  input: {
867
867
  param: {
868
868
  inviteLinkId: string;
@@ -875,15 +875,11 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
875
875
  "/v1/invite-links/resolve": {
876
876
  $post: {
877
877
  output: {
878
- error: {
879
- code: "upstream_error";
880
- details?: readonly Response.error.Detail[] | undefined;
881
- message: string;
882
- };
883
- requestId: string;
878
+ orgName: string;
879
+ role: "member";
884
880
  };
885
881
  outputFormat: "json";
886
- status: 502;
882
+ status: 200;
887
883
  input: {
888
884
  json: {
889
885
  token: string;
@@ -908,14 +904,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
908
904
  } | {
909
905
  output: {
910
906
  error: {
911
- code: "api_key_invalid" | "api_key_missing";
907
+ code: "body_invalid";
912
908
  details?: readonly Response.error.Detail[] | undefined;
913
909
  message: string;
914
910
  };
915
911
  requestId: string;
916
912
  };
917
913
  outputFormat: "json";
918
- status: 401;
914
+ status: 400;
919
915
  input: {
920
916
  json: {
921
917
  token: string;
@@ -924,14 +920,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
924
920
  } | {
925
921
  output: {
926
922
  error: {
927
- code: "forbidden";
923
+ code: "api_key_invalid" | "api_key_missing";
928
924
  details?: readonly Response.error.Detail[] | undefined;
929
925
  message: string;
930
926
  };
931
927
  requestId: string;
932
928
  };
933
929
  outputFormat: "json";
934
- status: 403;
930
+ status: 401;
935
931
  input: {
936
932
  json: {
937
933
  token: string;
@@ -940,14 +936,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
940
936
  } | {
941
937
  output: {
942
938
  error: {
943
- code: "body_invalid";
939
+ code: "forbidden";
944
940
  details?: readonly Response.error.Detail[] | undefined;
945
941
  message: string;
946
942
  };
947
943
  requestId: string;
948
944
  };
949
945
  outputFormat: "json";
950
- status: 400;
946
+ status: 403;
951
947
  input: {
952
948
  json: {
953
949
  token: string;
@@ -971,11 +967,15 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
971
967
  };
972
968
  } | {
973
969
  output: {
974
- orgName: string;
975
- role: "member";
970
+ error: {
971
+ code: "upstream_error";
972
+ details?: readonly Response.error.Detail[] | undefined;
973
+ message: string;
974
+ };
975
+ requestId: string;
976
976
  };
977
977
  outputFormat: "json";
978
- status: 200;
978
+ status: 502;
979
979
  input: {
980
980
  json: {
981
981
  token: string;
@@ -987,15 +987,12 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
987
987
  "/v1/invite-links/accept": {
988
988
  $post: {
989
989
  output: {
990
- error: {
991
- code: "upstream_error";
992
- details?: readonly Response.error.Detail[] | undefined;
993
- message: string;
994
- };
995
- requestId: string;
990
+ orgId: string;
991
+ role: "member";
992
+ userId: string;
996
993
  };
997
994
  outputFormat: "json";
998
- status: 502;
995
+ status: 200;
999
996
  input: {
1000
997
  json: {
1001
998
  token: string;
@@ -1020,14 +1017,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
1020
1017
  } | {
1021
1018
  output: {
1022
1019
  error: {
1023
- code: "api_key_invalid" | "api_key_missing";
1020
+ code: "body_invalid";
1024
1021
  details?: readonly Response.error.Detail[] | undefined;
1025
1022
  message: string;
1026
1023
  };
1027
1024
  requestId: string;
1028
1025
  };
1029
1026
  outputFormat: "json";
1030
- status: 401;
1027
+ status: 400;
1031
1028
  input: {
1032
1029
  json: {
1033
1030
  token: string;
@@ -1036,14 +1033,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
1036
1033
  } | {
1037
1034
  output: {
1038
1035
  error: {
1039
- code: "forbidden";
1036
+ code: "api_key_invalid" | "api_key_missing";
1040
1037
  details?: readonly Response.error.Detail[] | undefined;
1041
1038
  message: string;
1042
1039
  };
1043
1040
  requestId: string;
1044
1041
  };
1045
1042
  outputFormat: "json";
1046
- status: 403;
1043
+ status: 401;
1047
1044
  input: {
1048
1045
  json: {
1049
1046
  token: string;
@@ -1052,14 +1049,14 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
1052
1049
  } | {
1053
1050
  output: {
1054
1051
  error: {
1055
- code: "body_invalid";
1052
+ code: "forbidden";
1056
1053
  details?: readonly Response.error.Detail[] | undefined;
1057
1054
  message: string;
1058
1055
  };
1059
1056
  requestId: string;
1060
1057
  };
1061
1058
  outputFormat: "json";
1062
- status: 400;
1059
+ status: 403;
1063
1060
  input: {
1064
1061
  json: {
1065
1062
  token: string;
@@ -1083,12 +1080,15 @@ export declare function inviteLinks(): import("hono/hono-base").HonoBase<Environ
1083
1080
  };
1084
1081
  } | {
1085
1082
  output: {
1086
- orgId: string;
1087
- role: "member";
1088
- userId: string;
1083
+ error: {
1084
+ code: "upstream_error";
1085
+ details?: readonly Response.error.Detail[] | undefined;
1086
+ message: string;
1087
+ };
1088
+ requestId: string;
1089
1089
  };
1090
1090
  outputFormat: "json";
1091
- status: 200;
1091
+ status: 502;
1092
1092
  input: {
1093
1093
  json: {
1094
1094
  token: string;