tapimo 0.4.3 → 0.4.4

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 (77) hide show
  1. package/dist/App.d.ts +2491 -2861
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/admin/apps/verified-tokens.d.ts +57 -57
  4. package/dist/apps/data/App.d.ts +2354 -2724
  5. package/dist/apps/data/App.d.ts.map +1 -1
  6. package/dist/apps/data/FundingRouteProviders.d.ts +3 -110
  7. package/dist/apps/data/FundingRouteProviders.d.ts.map +1 -1
  8. package/dist/apps/data/FundingRouteProviders.js +1 -302
  9. package/dist/apps/data/FundingRouteProviders.js.map +1 -1
  10. package/dist/apps/data/routes/exchanges.d.ts +455 -455
  11. package/dist/apps/data/routes/fee-amm.d.ts +92 -92
  12. package/dist/apps/data/routes/funding.d.ts +138 -730
  13. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  14. package/dist/apps/data/routes/funding.js +7 -241
  15. package/dist/apps/data/routes/funding.js.map +1 -1
  16. package/dist/apps/data/routes/tokenlist.d.ts +12 -12
  17. package/dist/apps/data/routes/transactions.d.ts +281 -281
  18. package/dist/apps/data/routes/transfers.d.ts +58 -58
  19. package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
  20. package/dist/apps/management/App.d.ts +855 -855
  21. package/dist/apps/management/routes/api-keys.d.ts +40 -40
  22. package/dist/apps/management/routes/billing.d.ts +207 -207
  23. package/dist/apps/management/routes/me.d.ts +6 -6
  24. package/dist/apps/management/routes/members.d.ts +30 -30
  25. package/dist/apps/management/routes/orgs.d.ts +92 -92
  26. package/dist/apps/management/routes/projects.d.ts +28 -28
  27. package/dist/apps/management/routes/usage.d.ts +24 -24
  28. package/dist/apps/mcp.d.ts.map +1 -1
  29. package/dist/apps/mcp.js +3 -1
  30. package/dist/apps/mcp.js.map +1 -1
  31. package/dist/cloudflare.d.ts +2 -0
  32. package/dist/cloudflare.d.ts.map +1 -1
  33. package/dist/cloudflare.js +4 -0
  34. package/dist/cloudflare.js.map +1 -1
  35. package/dist/internal/Auth.d.ts +33 -22
  36. package/dist/internal/Auth.d.ts.map +1 -1
  37. package/dist/internal/Auth.js +40 -11
  38. package/dist/internal/Auth.js.map +1 -1
  39. package/dist/internal/Errors.d.ts +6 -0
  40. package/dist/internal/Errors.d.ts.map +1 -0
  41. package/dist/internal/Errors.js +16 -0
  42. package/dist/internal/Errors.js.map +1 -0
  43. package/dist/internal/FundingRoutes.d.ts +15 -213
  44. package/dist/internal/FundingRoutes.d.ts.map +1 -1
  45. package/dist/internal/FundingRoutes.js +1 -72
  46. package/dist/internal/FundingRoutes.js.map +1 -1
  47. package/dist/internal/Store.d.ts +61 -16
  48. package/dist/internal/Store.d.ts.map +1 -1
  49. package/dist/internal/Store.js +72 -17
  50. package/dist/internal/Store.js.map +1 -1
  51. package/dist/internal/Viem.d.ts +1 -1
  52. package/dist/internal/index.d.ts +27 -0
  53. package/dist/internal/index.d.ts.map +1 -0
  54. package/dist/internal/index.js +27 -0
  55. package/dist/internal/index.js.map +1 -0
  56. package/package.json +8 -3
  57. package/src/App.test.ts +60 -4
  58. package/src/Client.test-d.ts +0 -47
  59. package/src/apps/data/FundingRouteProviders.test.ts +37 -297
  60. package/src/apps/data/FundingRouteProviders.ts +3 -435
  61. package/src/apps/data/routes/funding.test.ts +7 -109
  62. package/src/apps/data/routes/funding.ts +8 -323
  63. package/src/apps/data/routes/indexer.test.ts +2 -2
  64. package/src/apps/data/routes/webhooks.test.ts +2 -2
  65. package/src/apps/mcp.test.ts +55 -14
  66. package/src/apps/mcp.ts +3 -1
  67. package/src/cloudflare.ts +5 -0
  68. package/src/internal/Auth.test.ts +397 -16
  69. package/src/internal/Auth.ts +76 -32
  70. package/src/internal/FundingRoutes.test.ts +8 -34
  71. package/src/internal/FundingRoutes.ts +1 -174
  72. package/src/internal/Log.test.ts +4 -4
  73. package/src/internal/Store.test-d.ts +15 -0
  74. package/src/internal/Store.test.ts +153 -2
  75. package/src/internal/Store.ts +157 -41
  76. package/src/internal/index.test.ts +34 -0
  77. package/src/internal/index.ts +26 -0
@@ -129,36 +129,6 @@ export declare namespace schema {
129
129
  export declare function billing(): import("hono/hono-base").HonoBase<Environment, {
130
130
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
131
131
  $get: {
132
- output: {
133
- spend?: {
134
- amount: string;
135
- currency: "usd";
136
- period: "month";
137
- } | undefined;
138
- spendLimit?: {
139
- amount: string;
140
- currency: "usd";
141
- period: "month";
142
- } | undefined;
143
- status: "active" | "canceled" | "none" | "past_due";
144
- txFeeLimit?: {
145
- amount: string;
146
- currency: "usd";
147
- } | undefined;
148
- updatedAt?: string | undefined;
149
- };
150
- outputFormat: "json";
151
- status: 200;
152
- input: {
153
- param: {
154
- orgId: string;
155
- };
156
- } & {
157
- query?: {
158
- environment?: string | string[];
159
- } | undefined;
160
- };
161
- } | {
162
132
  output: {
163
133
  error: {
164
134
  code: "api_key_malformed";
@@ -181,14 +151,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
181
151
  } | {
182
152
  output: {
183
153
  error: {
184
- code: "query_invalid";
154
+ code: "api_key_invalid" | "api_key_missing";
185
155
  details?: readonly Response.error.Detail[] | undefined;
186
156
  message: string;
187
157
  };
188
158
  requestId: string;
189
159
  };
190
160
  outputFormat: "json";
191
- status: 400;
161
+ status: 401;
192
162
  input: {
193
163
  param: {
194
164
  orgId: string;
@@ -201,14 +171,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
201
171
  } | {
202
172
  output: {
203
173
  error: {
204
- code: "param_invalid";
174
+ code: "api_key_forbidden";
205
175
  details?: readonly Response.error.Detail[] | undefined;
206
176
  message: string;
207
177
  };
208
178
  requestId: string;
209
179
  };
210
180
  outputFormat: "json";
211
- status: 400;
181
+ status: 403;
212
182
  input: {
213
183
  param: {
214
184
  orgId: string;
@@ -221,14 +191,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
221
191
  } | {
222
192
  output: {
223
193
  error: {
224
- code: "api_key_invalid" | "api_key_missing";
194
+ code: "payment_required" | "rate_limit_exceeded";
225
195
  details?: readonly Response.error.Detail[] | undefined;
226
196
  message: string;
227
197
  };
228
198
  requestId: string;
229
199
  };
230
200
  outputFormat: "json";
231
- status: 401;
201
+ status: 429;
232
202
  input: {
233
203
  param: {
234
204
  orgId: string;
@@ -241,14 +211,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
241
211
  } | {
242
212
  output: {
243
213
  error: {
244
- code: "api_key_forbidden";
214
+ code: "query_invalid";
245
215
  details?: readonly Response.error.Detail[] | undefined;
246
216
  message: string;
247
217
  };
248
218
  requestId: string;
249
219
  };
250
220
  outputFormat: "json";
251
- status: 403;
221
+ status: 400;
252
222
  input: {
253
223
  param: {
254
224
  orgId: string;
@@ -261,14 +231,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
261
231
  } | {
262
232
  output: {
263
233
  error: {
264
- code: "organization_not_found";
234
+ code: "upstream_error";
265
235
  details?: readonly Response.error.Detail[] | undefined;
266
236
  message: string;
267
237
  };
268
238
  requestId: string;
269
239
  };
270
240
  outputFormat: "json";
271
- status: 404;
241
+ status: 502;
272
242
  input: {
273
243
  param: {
274
244
  orgId: string;
@@ -281,14 +251,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
281
251
  } | {
282
252
  output: {
283
253
  error: {
284
- code: "payment_required" | "rate_limit_exceeded";
254
+ code: "organization_not_found";
285
255
  details?: readonly Response.error.Detail[] | undefined;
286
256
  message: string;
287
257
  };
288
258
  requestId: string;
289
259
  };
290
260
  outputFormat: "json";
291
- status: 429;
261
+ status: 404;
292
262
  input: {
293
263
  param: {
294
264
  orgId: string;
@@ -301,14 +271,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
301
271
  } | {
302
272
  output: {
303
273
  error: {
304
- code: "billing_unconfigured";
274
+ code: "param_invalid";
305
275
  details?: readonly Response.error.Detail[] | undefined;
306
276
  message: string;
307
277
  };
308
278
  requestId: string;
309
279
  };
310
280
  outputFormat: "json";
311
- status: 501;
281
+ status: 400;
312
282
  input: {
313
283
  param: {
314
284
  orgId: string;
@@ -321,14 +291,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
321
291
  } | {
322
292
  output: {
323
293
  error: {
324
- code: "upstream_error";
294
+ code: "billing_unconfigured";
325
295
  details?: readonly Response.error.Detail[] | undefined;
326
296
  message: string;
327
297
  };
328
298
  requestId: string;
329
299
  };
330
300
  outputFormat: "json";
331
- status: 502;
301
+ status: 501;
332
302
  input: {
333
303
  param: {
334
304
  orgId: string;
@@ -338,11 +308,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
338
308
  environment?: string | string[];
339
309
  } | undefined;
340
310
  };
341
- };
342
- };
343
- } & {
344
- "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
345
- $patch: {
311
+ } | {
346
312
  output: {
347
313
  spend?: {
348
314
  amount: string;
@@ -363,6 +329,30 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
363
329
  };
364
330
  outputFormat: "json";
365
331
  status: 200;
332
+ input: {
333
+ param: {
334
+ orgId: string;
335
+ };
336
+ } & {
337
+ query?: {
338
+ environment?: string | string[];
339
+ } | undefined;
340
+ };
341
+ };
342
+ };
343
+ } & {
344
+ "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing": {
345
+ $patch: {
346
+ output: {
347
+ error: {
348
+ code: "api_key_malformed";
349
+ details?: readonly Response.error.Detail[] | undefined;
350
+ message: string;
351
+ };
352
+ requestId: string;
353
+ };
354
+ outputFormat: "json";
355
+ status: 400;
366
356
  input: {
367
357
  param: {
368
358
  orgId: string;
@@ -387,14 +377,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
387
377
  } | {
388
378
  output: {
389
379
  error: {
390
- code: "api_key_malformed";
380
+ code: "api_key_invalid" | "api_key_missing";
391
381
  details?: readonly Response.error.Detail[] | undefined;
392
382
  message: string;
393
383
  };
394
384
  requestId: string;
395
385
  };
396
386
  outputFormat: "json";
397
- status: 400;
387
+ status: 401;
398
388
  input: {
399
389
  param: {
400
390
  orgId: string;
@@ -419,14 +409,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
419
409
  } | {
420
410
  output: {
421
411
  error: {
422
- code: "query_invalid";
412
+ code: "api_key_forbidden";
423
413
  details?: readonly Response.error.Detail[] | undefined;
424
414
  message: string;
425
415
  };
426
416
  requestId: string;
427
417
  };
428
418
  outputFormat: "json";
429
- status: 400;
419
+ status: 403;
430
420
  input: {
431
421
  param: {
432
422
  orgId: string;
@@ -451,14 +441,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
451
441
  } | {
452
442
  output: {
453
443
  error: {
454
- code: "body_invalid";
444
+ code: "payment_required" | "rate_limit_exceeded";
455
445
  details?: readonly Response.error.Detail[] | undefined;
456
446
  message: string;
457
447
  };
458
448
  requestId: string;
459
449
  };
460
450
  outputFormat: "json";
461
- status: 400;
451
+ status: 429;
462
452
  input: {
463
453
  param: {
464
454
  orgId: string;
@@ -483,7 +473,7 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
483
473
  } | {
484
474
  output: {
485
475
  error: {
486
- code: "param_invalid";
476
+ code: "query_invalid";
487
477
  details?: readonly Response.error.Detail[] | undefined;
488
478
  message: string;
489
479
  };
@@ -515,14 +505,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
515
505
  } | {
516
506
  output: {
517
507
  error: {
518
- code: "api_key_invalid" | "api_key_missing";
508
+ code: "upstream_error";
519
509
  details?: readonly Response.error.Detail[] | undefined;
520
510
  message: string;
521
511
  };
522
512
  requestId: string;
523
513
  };
524
514
  outputFormat: "json";
525
- status: 401;
515
+ status: 502;
526
516
  input: {
527
517
  param: {
528
518
  orgId: string;
@@ -547,14 +537,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
547
537
  } | {
548
538
  output: {
549
539
  error: {
550
- code: "api_key_forbidden";
540
+ code: "organization_not_found";
551
541
  details?: readonly Response.error.Detail[] | undefined;
552
542
  message: string;
553
543
  };
554
544
  requestId: string;
555
545
  };
556
546
  outputFormat: "json";
557
- status: 403;
547
+ status: 404;
558
548
  input: {
559
549
  param: {
560
550
  orgId: string;
@@ -579,14 +569,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
579
569
  } | {
580
570
  output: {
581
571
  error: {
582
- code: "organization_not_found";
572
+ code: "param_invalid";
583
573
  details?: readonly Response.error.Detail[] | undefined;
584
574
  message: string;
585
575
  };
586
576
  requestId: string;
587
577
  };
588
578
  outputFormat: "json";
589
- status: 404;
579
+ status: 400;
590
580
  input: {
591
581
  param: {
592
582
  orgId: string;
@@ -611,14 +601,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
611
601
  } | {
612
602
  output: {
613
603
  error: {
614
- code: "payment_required" | "rate_limit_exceeded";
604
+ code: "billing_unconfigured";
615
605
  details?: readonly Response.error.Detail[] | undefined;
616
606
  message: string;
617
607
  };
618
608
  requestId: string;
619
609
  };
620
610
  outputFormat: "json";
621
- status: 429;
611
+ status: 501;
622
612
  input: {
623
613
  param: {
624
614
  orgId: string;
@@ -642,15 +632,25 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
642
632
  };
643
633
  } | {
644
634
  output: {
645
- error: {
646
- code: "billing_unconfigured";
647
- details?: readonly Response.error.Detail[] | undefined;
648
- message: string;
649
- };
650
- requestId: string;
635
+ spend?: {
636
+ amount: string;
637
+ currency: "usd";
638
+ period: "month";
639
+ } | undefined;
640
+ spendLimit?: {
641
+ amount: string;
642
+ currency: "usd";
643
+ period: "month";
644
+ } | undefined;
645
+ status: "active" | "canceled" | "none" | "past_due";
646
+ txFeeLimit?: {
647
+ amount: string;
648
+ currency: "usd";
649
+ } | undefined;
650
+ updatedAt?: string | undefined;
651
651
  };
652
652
  outputFormat: "json";
653
- status: 501;
653
+ status: 200;
654
654
  input: {
655
655
  param: {
656
656
  orgId: string;
@@ -675,14 +675,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
675
675
  } | {
676
676
  output: {
677
677
  error: {
678
- code: "upstream_error";
678
+ code: "body_invalid";
679
679
  details?: readonly Response.error.Detail[] | undefined;
680
680
  message: string;
681
681
  };
682
682
  requestId: string;
683
683
  };
684
684
  outputFormat: "json";
685
- status: 502;
685
+ status: 400;
686
686
  input: {
687
687
  param: {
688
688
  orgId: string;
@@ -710,10 +710,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
710
710
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/checkout": {
711
711
  $post: {
712
712
  output: {
713
- url: string;
713
+ error: {
714
+ code: "api_key_malformed";
715
+ details?: readonly Response.error.Detail[] | undefined;
716
+ message: string;
717
+ };
718
+ requestId: string;
714
719
  };
715
720
  outputFormat: "json";
716
- status: 200;
721
+ status: 400;
717
722
  input: {
718
723
  param: {
719
724
  orgId: string;
@@ -726,14 +731,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
726
731
  } | {
727
732
  output: {
728
733
  error: {
729
- code: "api_key_malformed";
734
+ code: "api_key_invalid" | "api_key_missing";
730
735
  details?: readonly Response.error.Detail[] | undefined;
731
736
  message: string;
732
737
  };
733
738
  requestId: string;
734
739
  };
735
740
  outputFormat: "json";
736
- status: 400;
741
+ status: 401;
737
742
  input: {
738
743
  param: {
739
744
  orgId: string;
@@ -746,14 +751,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
746
751
  } | {
747
752
  output: {
748
753
  error: {
749
- code: "query_invalid";
754
+ code: "api_key_forbidden";
750
755
  details?: readonly Response.error.Detail[] | undefined;
751
756
  message: string;
752
757
  };
753
758
  requestId: string;
754
759
  };
755
760
  outputFormat: "json";
756
- status: 400;
761
+ status: 403;
757
762
  input: {
758
763
  param: {
759
764
  orgId: string;
@@ -766,14 +771,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
766
771
  } | {
767
772
  output: {
768
773
  error: {
769
- code: "param_invalid";
774
+ code: "payment_required" | "rate_limit_exceeded";
770
775
  details?: readonly Response.error.Detail[] | undefined;
771
776
  message: string;
772
777
  };
773
778
  requestId: string;
774
779
  };
775
780
  outputFormat: "json";
776
- status: 400;
781
+ status: 429;
777
782
  input: {
778
783
  param: {
779
784
  orgId: string;
@@ -786,14 +791,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
786
791
  } | {
787
792
  output: {
788
793
  error: {
789
- code: "api_key_invalid" | "api_key_missing";
794
+ code: "query_invalid";
790
795
  details?: readonly Response.error.Detail[] | undefined;
791
796
  message: string;
792
797
  };
793
798
  requestId: string;
794
799
  };
795
800
  outputFormat: "json";
796
- status: 401;
801
+ status: 400;
797
802
  input: {
798
803
  param: {
799
804
  orgId: string;
@@ -806,14 +811,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
806
811
  } | {
807
812
  output: {
808
813
  error: {
809
- code: "api_key_forbidden";
814
+ code: "upstream_error";
810
815
  details?: readonly Response.error.Detail[] | undefined;
811
816
  message: string;
812
817
  };
813
818
  requestId: string;
814
819
  };
815
820
  outputFormat: "json";
816
- status: 403;
821
+ status: 502;
817
822
  input: {
818
823
  param: {
819
824
  orgId: string;
@@ -846,14 +851,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
846
851
  } | {
847
852
  output: {
848
853
  error: {
849
- code: "payment_required" | "rate_limit_exceeded";
854
+ code: "param_invalid";
850
855
  details?: readonly Response.error.Detail[] | undefined;
851
856
  message: string;
852
857
  };
853
858
  requestId: string;
854
859
  };
855
860
  outputFormat: "json";
856
- status: 429;
861
+ status: 400;
857
862
  input: {
858
863
  param: {
859
864
  orgId: string;
@@ -885,15 +890,10 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
885
890
  };
886
891
  } | {
887
892
  output: {
888
- error: {
889
- code: "upstream_error";
890
- details?: readonly Response.error.Detail[] | undefined;
891
- message: string;
892
- };
893
- requestId: string;
893
+ url: string;
894
894
  };
895
895
  outputFormat: "json";
896
- status: 502;
896
+ status: 200;
897
897
  input: {
898
898
  param: {
899
899
  orgId: string;
@@ -909,10 +909,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
909
909
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/stripe/manage": {
910
910
  $post: {
911
911
  output: {
912
- url: string;
912
+ error: {
913
+ code: "api_key_malformed";
914
+ details?: readonly Response.error.Detail[] | undefined;
915
+ message: string;
916
+ };
917
+ requestId: string;
913
918
  };
914
919
  outputFormat: "json";
915
- status: 200;
920
+ status: 400;
916
921
  input: {
917
922
  param: {
918
923
  orgId: string;
@@ -925,14 +930,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
925
930
  } | {
926
931
  output: {
927
932
  error: {
928
- code: "api_key_malformed";
933
+ code: "api_key_invalid" | "api_key_missing";
929
934
  details?: readonly Response.error.Detail[] | undefined;
930
935
  message: string;
931
936
  };
932
937
  requestId: string;
933
938
  };
934
939
  outputFormat: "json";
935
- status: 400;
940
+ status: 401;
936
941
  input: {
937
942
  param: {
938
943
  orgId: string;
@@ -945,14 +950,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
945
950
  } | {
946
951
  output: {
947
952
  error: {
948
- code: "query_invalid";
953
+ code: "api_key_forbidden";
949
954
  details?: readonly Response.error.Detail[] | undefined;
950
955
  message: string;
951
956
  };
952
957
  requestId: string;
953
958
  };
954
959
  outputFormat: "json";
955
- status: 400;
960
+ status: 403;
956
961
  input: {
957
962
  param: {
958
963
  orgId: string;
@@ -965,14 +970,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
965
970
  } | {
966
971
  output: {
967
972
  error: {
968
- code: "param_invalid";
973
+ code: "payment_required" | "rate_limit_exceeded";
969
974
  details?: readonly Response.error.Detail[] | undefined;
970
975
  message: string;
971
976
  };
972
977
  requestId: string;
973
978
  };
974
979
  outputFormat: "json";
975
- status: 400;
980
+ status: 429;
976
981
  input: {
977
982
  param: {
978
983
  orgId: string;
@@ -985,14 +990,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
985
990
  } | {
986
991
  output: {
987
992
  error: {
988
- code: "api_key_invalid" | "api_key_missing";
993
+ code: "query_invalid";
989
994
  details?: readonly Response.error.Detail[] | undefined;
990
995
  message: string;
991
996
  };
992
997
  requestId: string;
993
998
  };
994
999
  outputFormat: "json";
995
- status: 401;
1000
+ status: 400;
996
1001
  input: {
997
1002
  param: {
998
1003
  orgId: string;
@@ -1005,14 +1010,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1005
1010
  } | {
1006
1011
  output: {
1007
1012
  error: {
1008
- code: "api_key_forbidden";
1013
+ code: "upstream_error";
1009
1014
  details?: readonly Response.error.Detail[] | undefined;
1010
1015
  message: string;
1011
1016
  };
1012
1017
  requestId: string;
1013
1018
  };
1014
1019
  outputFormat: "json";
1015
- status: 403;
1020
+ status: 502;
1016
1021
  input: {
1017
1022
  param: {
1018
1023
  orgId: string;
@@ -1045,14 +1050,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1045
1050
  } | {
1046
1051
  output: {
1047
1052
  error: {
1048
- code: "billing_not_found";
1053
+ code: "param_invalid";
1049
1054
  details?: readonly Response.error.Detail[] | undefined;
1050
1055
  message: string;
1051
1056
  };
1052
1057
  requestId: string;
1053
1058
  };
1054
1059
  outputFormat: "json";
1055
- status: 404;
1060
+ status: 400;
1056
1061
  input: {
1057
1062
  param: {
1058
1063
  orgId: string;
@@ -1065,14 +1070,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1065
1070
  } | {
1066
1071
  output: {
1067
1072
  error: {
1068
- code: "payment_required" | "rate_limit_exceeded";
1073
+ code: "billing_unconfigured";
1069
1074
  details?: readonly Response.error.Detail[] | undefined;
1070
1075
  message: string;
1071
1076
  };
1072
1077
  requestId: string;
1073
1078
  };
1074
1079
  outputFormat: "json";
1075
- status: 429;
1080
+ status: 501;
1076
1081
  input: {
1077
1082
  param: {
1078
1083
  orgId: string;
@@ -1084,15 +1089,10 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1084
1089
  };
1085
1090
  } | {
1086
1091
  output: {
1087
- error: {
1088
- code: "billing_unconfigured";
1089
- details?: readonly Response.error.Detail[] | undefined;
1090
- message: string;
1091
- };
1092
- requestId: string;
1092
+ url: string;
1093
1093
  };
1094
1094
  outputFormat: "json";
1095
- status: 501;
1095
+ status: 200;
1096
1096
  input: {
1097
1097
  param: {
1098
1098
  orgId: string;
@@ -1105,14 +1105,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1105
1105
  } | {
1106
1106
  output: {
1107
1107
  error: {
1108
- code: "upstream_error";
1108
+ code: "billing_not_found";
1109
1109
  details?: readonly Response.error.Detail[] | undefined;
1110
1110
  message: string;
1111
1111
  };
1112
1112
  requestId: string;
1113
1113
  };
1114
1114
  outputFormat: "json";
1115
- status: 502;
1115
+ status: 404;
1116
1116
  input: {
1117
1117
  param: {
1118
1118
  orgId: string;
@@ -1128,22 +1128,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1128
1128
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods": {
1129
1129
  $get: {
1130
1130
  output: {
1131
- data: {
1132
- card?: {
1133
- brand: string;
1134
- expMonth: number;
1135
- expYear: number;
1136
- last4: string;
1137
- } | undefined;
1138
- createdAt: string;
1139
- default: boolean;
1140
- id: string;
1141
- provider: "stripe";
1142
- type: string;
1143
- }[];
1131
+ error: {
1132
+ code: "api_key_malformed";
1133
+ details?: readonly Response.error.Detail[] | undefined;
1134
+ message: string;
1135
+ };
1136
+ requestId: string;
1144
1137
  };
1145
1138
  outputFormat: "json";
1146
- status: 200;
1139
+ status: 400;
1147
1140
  input: {
1148
1141
  param: {
1149
1142
  orgId: string;
@@ -1156,14 +1149,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1156
1149
  } | {
1157
1150
  output: {
1158
1151
  error: {
1159
- code: "api_key_malformed";
1152
+ code: "api_key_invalid" | "api_key_missing";
1160
1153
  details?: readonly Response.error.Detail[] | undefined;
1161
1154
  message: string;
1162
1155
  };
1163
1156
  requestId: string;
1164
1157
  };
1165
1158
  outputFormat: "json";
1166
- status: 400;
1159
+ status: 401;
1167
1160
  input: {
1168
1161
  param: {
1169
1162
  orgId: string;
@@ -1176,14 +1169,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1176
1169
  } | {
1177
1170
  output: {
1178
1171
  error: {
1179
- code: "query_invalid";
1172
+ code: "api_key_forbidden";
1180
1173
  details?: readonly Response.error.Detail[] | undefined;
1181
1174
  message: string;
1182
1175
  };
1183
1176
  requestId: string;
1184
1177
  };
1185
1178
  outputFormat: "json";
1186
- status: 400;
1179
+ status: 403;
1187
1180
  input: {
1188
1181
  param: {
1189
1182
  orgId: string;
@@ -1196,14 +1189,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1196
1189
  } | {
1197
1190
  output: {
1198
1191
  error: {
1199
- code: "param_invalid";
1192
+ code: "payment_required" | "rate_limit_exceeded";
1200
1193
  details?: readonly Response.error.Detail[] | undefined;
1201
1194
  message: string;
1202
1195
  };
1203
1196
  requestId: string;
1204
1197
  };
1205
1198
  outputFormat: "json";
1206
- status: 400;
1199
+ status: 429;
1207
1200
  input: {
1208
1201
  param: {
1209
1202
  orgId: string;
@@ -1216,14 +1209,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1216
1209
  } | {
1217
1210
  output: {
1218
1211
  error: {
1219
- code: "api_key_invalid" | "api_key_missing";
1212
+ code: "query_invalid";
1220
1213
  details?: readonly Response.error.Detail[] | undefined;
1221
1214
  message: string;
1222
1215
  };
1223
1216
  requestId: string;
1224
1217
  };
1225
1218
  outputFormat: "json";
1226
- status: 401;
1219
+ status: 400;
1227
1220
  input: {
1228
1221
  param: {
1229
1222
  orgId: string;
@@ -1236,14 +1229,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1236
1229
  } | {
1237
1230
  output: {
1238
1231
  error: {
1239
- code: "api_key_forbidden";
1232
+ code: "upstream_error";
1240
1233
  details?: readonly Response.error.Detail[] | undefined;
1241
1234
  message: string;
1242
1235
  };
1243
1236
  requestId: string;
1244
1237
  };
1245
1238
  outputFormat: "json";
1246
- status: 403;
1239
+ status: 502;
1247
1240
  input: {
1248
1241
  param: {
1249
1242
  orgId: string;
@@ -1276,14 +1269,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1276
1269
  } | {
1277
1270
  output: {
1278
1271
  error: {
1279
- code: "payment_required" | "rate_limit_exceeded";
1272
+ code: "param_invalid";
1280
1273
  details?: readonly Response.error.Detail[] | undefined;
1281
1274
  message: string;
1282
1275
  };
1283
1276
  requestId: string;
1284
1277
  };
1285
1278
  outputFormat: "json";
1286
- status: 429;
1279
+ status: 400;
1287
1280
  input: {
1288
1281
  param: {
1289
1282
  orgId: string;
@@ -1315,15 +1308,22 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1315
1308
  };
1316
1309
  } | {
1317
1310
  output: {
1318
- error: {
1319
- code: "upstream_error";
1320
- details?: readonly Response.error.Detail[] | undefined;
1321
- message: string;
1322
- };
1323
- requestId: string;
1311
+ data: {
1312
+ card?: {
1313
+ brand: string;
1314
+ expMonth: number;
1315
+ expYear: number;
1316
+ last4: string;
1317
+ } | undefined;
1318
+ createdAt: string;
1319
+ default: boolean;
1320
+ id: string;
1321
+ provider: "stripe";
1322
+ type: string;
1323
+ }[];
1324
1324
  };
1325
1325
  outputFormat: "json";
1326
- status: 502;
1326
+ status: 200;
1327
1327
  input: {
1328
1328
  param: {
1329
1329
  orgId: string;
@@ -1339,25 +1339,15 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1339
1339
  "/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/billing/payment-methods/:methodId{pm_[A-Za-z0-9_-]+}": {
1340
1340
  $delete: {
1341
1341
  output: {
1342
- spend?: {
1343
- amount: string;
1344
- currency: "usd";
1345
- period: "month";
1346
- } | undefined;
1347
- spendLimit?: {
1348
- amount: string;
1349
- currency: "usd";
1350
- period: "month";
1351
- } | undefined;
1352
- status: "active" | "canceled" | "none" | "past_due";
1353
- txFeeLimit?: {
1354
- amount: string;
1355
- currency: "usd";
1356
- } | undefined;
1357
- updatedAt?: string | undefined;
1342
+ error: {
1343
+ code: "api_key_malformed";
1344
+ details?: readonly Response.error.Detail[] | undefined;
1345
+ message: string;
1346
+ };
1347
+ requestId: string;
1358
1348
  };
1359
1349
  outputFormat: "json";
1360
- status: 200;
1350
+ status: 400;
1361
1351
  input: {
1362
1352
  param: {
1363
1353
  methodId: string;
@@ -1371,14 +1361,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1371
1361
  } | {
1372
1362
  output: {
1373
1363
  error: {
1374
- code: "api_key_malformed";
1364
+ code: "api_key_invalid" | "api_key_missing";
1375
1365
  details?: readonly Response.error.Detail[] | undefined;
1376
1366
  message: string;
1377
1367
  };
1378
1368
  requestId: string;
1379
1369
  };
1380
1370
  outputFormat: "json";
1381
- status: 400;
1371
+ status: 401;
1382
1372
  input: {
1383
1373
  param: {
1384
1374
  methodId: string;
@@ -1392,14 +1382,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1392
1382
  } | {
1393
1383
  output: {
1394
1384
  error: {
1395
- code: "query_invalid";
1385
+ code: "api_key_forbidden";
1396
1386
  details?: readonly Response.error.Detail[] | undefined;
1397
1387
  message: string;
1398
1388
  };
1399
1389
  requestId: string;
1400
1390
  };
1401
1391
  outputFormat: "json";
1402
- status: 400;
1392
+ status: 403;
1403
1393
  input: {
1404
1394
  param: {
1405
1395
  methodId: string;
@@ -1413,14 +1403,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1413
1403
  } | {
1414
1404
  output: {
1415
1405
  error: {
1416
- code: "param_invalid";
1406
+ code: "payment_required" | "rate_limit_exceeded";
1417
1407
  details?: readonly Response.error.Detail[] | undefined;
1418
1408
  message: string;
1419
1409
  };
1420
1410
  requestId: string;
1421
1411
  };
1422
1412
  outputFormat: "json";
1423
- status: 400;
1413
+ status: 429;
1424
1414
  input: {
1425
1415
  param: {
1426
1416
  methodId: string;
@@ -1434,14 +1424,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1434
1424
  } | {
1435
1425
  output: {
1436
1426
  error: {
1437
- code: "api_key_invalid" | "api_key_missing";
1427
+ code: "query_invalid";
1438
1428
  details?: readonly Response.error.Detail[] | undefined;
1439
1429
  message: string;
1440
1430
  };
1441
1431
  requestId: string;
1442
1432
  };
1443
1433
  outputFormat: "json";
1444
- status: 401;
1434
+ status: 400;
1445
1435
  input: {
1446
1436
  param: {
1447
1437
  methodId: string;
@@ -1455,14 +1445,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1455
1445
  } | {
1456
1446
  output: {
1457
1447
  error: {
1458
- code: "api_key_forbidden";
1448
+ code: "upstream_error";
1459
1449
  details?: readonly Response.error.Detail[] | undefined;
1460
1450
  message: string;
1461
1451
  };
1462
1452
  requestId: string;
1463
1453
  };
1464
1454
  outputFormat: "json";
1465
- status: 403;
1455
+ status: 502;
1466
1456
  input: {
1467
1457
  param: {
1468
1458
  methodId: string;
@@ -1497,14 +1487,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1497
1487
  } | {
1498
1488
  output: {
1499
1489
  error: {
1500
- code: "billing_not_found";
1490
+ code: "param_invalid";
1501
1491
  details?: readonly Response.error.Detail[] | undefined;
1502
1492
  message: string;
1503
1493
  };
1504
1494
  requestId: string;
1505
1495
  };
1506
1496
  outputFormat: "json";
1507
- status: 404;
1497
+ status: 400;
1508
1498
  input: {
1509
1499
  param: {
1510
1500
  methodId: string;
@@ -1518,14 +1508,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1518
1508
  } | {
1519
1509
  output: {
1520
1510
  error: {
1521
- code: "payment_method_not_found";
1511
+ code: "billing_unconfigured";
1522
1512
  details?: readonly Response.error.Detail[] | undefined;
1523
1513
  message: string;
1524
1514
  };
1525
1515
  requestId: string;
1526
1516
  };
1527
1517
  outputFormat: "json";
1528
- status: 404;
1518
+ status: 501;
1529
1519
  input: {
1530
1520
  param: {
1531
1521
  methodId: string;
@@ -1538,15 +1528,25 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1538
1528
  };
1539
1529
  } | {
1540
1530
  output: {
1541
- error: {
1542
- code: "payment_required" | "rate_limit_exceeded";
1543
- details?: readonly Response.error.Detail[] | undefined;
1544
- message: string;
1545
- };
1546
- requestId: string;
1531
+ spend?: {
1532
+ amount: string;
1533
+ currency: "usd";
1534
+ period: "month";
1535
+ } | undefined;
1536
+ spendLimit?: {
1537
+ amount: string;
1538
+ currency: "usd";
1539
+ period: "month";
1540
+ } | undefined;
1541
+ status: "active" | "canceled" | "none" | "past_due";
1542
+ txFeeLimit?: {
1543
+ amount: string;
1544
+ currency: "usd";
1545
+ } | undefined;
1546
+ updatedAt?: string | undefined;
1547
1547
  };
1548
1548
  outputFormat: "json";
1549
- status: 429;
1549
+ status: 200;
1550
1550
  input: {
1551
1551
  param: {
1552
1552
  methodId: string;
@@ -1560,14 +1560,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1560
1560
  } | {
1561
1561
  output: {
1562
1562
  error: {
1563
- code: "billing_unconfigured";
1563
+ code: "billing_not_found";
1564
1564
  details?: readonly Response.error.Detail[] | undefined;
1565
1565
  message: string;
1566
1566
  };
1567
1567
  requestId: string;
1568
1568
  };
1569
1569
  outputFormat: "json";
1570
- status: 501;
1570
+ status: 404;
1571
1571
  input: {
1572
1572
  param: {
1573
1573
  methodId: string;
@@ -1581,14 +1581,14 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1581
1581
  } | {
1582
1582
  output: {
1583
1583
  error: {
1584
- code: "upstream_error";
1584
+ code: "payment_method_not_found";
1585
1585
  details?: readonly Response.error.Detail[] | undefined;
1586
1586
  message: string;
1587
1587
  };
1588
1588
  requestId: string;
1589
1589
  };
1590
1590
  outputFormat: "json";
1591
- status: 502;
1591
+ status: 404;
1592
1592
  input: {
1593
1593
  param: {
1594
1594
  methodId: string;
@@ -1604,23 +1604,16 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1604
1604
  } & {
1605
1605
  "/stripe/webhook": {
1606
1606
  $post: {
1607
- output: {
1608
- received: true;
1609
- };
1610
- outputFormat: "json";
1611
- status: 200;
1612
- input: {};
1613
- } | {
1614
1607
  output: {
1615
1608
  error: {
1616
- code: "signature_invalid";
1609
+ code: "upstream_error";
1617
1610
  details?: readonly Response.error.Detail[] | undefined;
1618
1611
  message: string;
1619
1612
  };
1620
1613
  requestId: string;
1621
1614
  };
1622
1615
  outputFormat: "json";
1623
- status: 400;
1616
+ status: 502;
1624
1617
  input: {};
1625
1618
  } | {
1626
1619
  output: {
@@ -1637,14 +1630,21 @@ export declare function billing(): import("hono/hono-base").HonoBase<Environment
1637
1630
  } | {
1638
1631
  output: {
1639
1632
  error: {
1640
- code: "upstream_error";
1633
+ code: "signature_invalid";
1641
1634
  details?: readonly Response.error.Detail[] | undefined;
1642
1635
  message: string;
1643
1636
  };
1644
1637
  requestId: string;
1645
1638
  };
1646
1639
  outputFormat: "json";
1647
- status: 502;
1640
+ status: 400;
1641
+ input: {};
1642
+ } | {
1643
+ output: {
1644
+ received: true;
1645
+ };
1646
+ outputFormat: "json";
1647
+ status: 200;
1648
1648
  input: {};
1649
1649
  };
1650
1650
  };