tapimo 0.4.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/dist/App.d.ts +7222 -6316
  2. package/dist/App.d.ts.map +1 -1
  3. package/dist/App.js +4 -0
  4. package/dist/App.js.map +1 -1
  5. package/dist/Scope.d.ts +18 -1
  6. package/dist/Scope.d.ts.map +1 -1
  7. package/dist/Scope.js +24 -3
  8. package/dist/Scope.js.map +1 -1
  9. package/dist/admin/apps/verified-tokens.d.ts +116 -116
  10. package/dist/apps/data/App.d.ts +2541 -2607
  11. package/dist/apps/data/App.d.ts.map +1 -1
  12. package/dist/apps/data/App.js +135 -44
  13. package/dist/apps/data/App.js.map +1 -1
  14. package/dist/apps/data/FundingQuoteProviders.d.ts +36 -0
  15. package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -0
  16. package/dist/apps/data/FundingQuoteProviders.js +190 -0
  17. package/dist/apps/data/FundingQuoteProviders.js.map +1 -0
  18. package/dist/apps/data/index.d.ts +1 -1
  19. package/dist/apps/data/index.js +1 -1
  20. package/dist/apps/data/routes/activities.d.ts +242 -242
  21. package/dist/apps/data/routes/addresses.d.ts +227 -227
  22. package/dist/apps/data/routes/balances.d.ts +12 -12
  23. package/dist/apps/data/routes/balances.d.ts.map +1 -1
  24. package/dist/apps/data/routes/balances.js +67 -149
  25. package/dist/apps/data/routes/balances.js.map +1 -1
  26. package/dist/apps/data/routes/blocks.d.ts +125 -126
  27. package/dist/apps/data/routes/blocks.d.ts.map +1 -1
  28. package/dist/apps/data/routes/blocks.js +3 -5
  29. package/dist/apps/data/routes/blocks.js.map +1 -1
  30. package/dist/apps/data/routes/coingecko.d.ts +55 -54
  31. package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
  32. package/dist/apps/data/routes/coingecko.js +3 -8
  33. package/dist/apps/data/routes/coingecko.js.map +1 -1
  34. package/dist/apps/data/routes/exchanges.d.ts +455 -455
  35. package/dist/apps/data/routes/fee-amm.d.ts +92 -92
  36. package/dist/apps/data/routes/funding.d.ts +91 -864
  37. package/dist/apps/data/routes/funding.d.ts.map +1 -1
  38. package/dist/apps/data/routes/funding.js +138 -450
  39. package/dist/apps/data/routes/funding.js.map +1 -1
  40. package/dist/apps/data/routes/rpc.d.ts.map +1 -1
  41. package/dist/apps/data/routes/rpc.js +86 -16
  42. package/dist/apps/data/routes/rpc.js.map +1 -1
  43. package/dist/apps/data/routes/tokenlist.d.ts +36 -36
  44. package/dist/apps/data/routes/webhooks.d.ts +340 -0
  45. package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
  46. package/dist/apps/data/routes/webhooks.js +13 -1
  47. package/dist/apps/data/routes/webhooks.js.map +1 -1
  48. package/dist/apps/index.d.ts +1 -1
  49. package/dist/apps/index.js +1 -1
  50. package/dist/apps/management/App.d.ts +1843 -861
  51. package/dist/apps/management/App.d.ts.map +1 -1
  52. package/dist/apps/management/App.js +4 -0
  53. package/dist/apps/management/App.js.map +1 -1
  54. package/dist/apps/management/routes/api-keys.d.ts +121 -121
  55. package/dist/apps/management/routes/api-keys.js +2 -2
  56. package/dist/apps/management/routes/api-keys.js.map +1 -1
  57. package/dist/apps/management/routes/billing.d.ts +2 -2
  58. package/dist/apps/management/routes/invite-links.d.ts +1100 -0
  59. package/dist/apps/management/routes/invite-links.d.ts.map +1 -0
  60. package/dist/apps/management/routes/invite-links.js +411 -0
  61. package/dist/apps/management/routes/invite-links.js.map +1 -0
  62. package/dist/apps/management/routes/me.d.ts +13 -13
  63. package/dist/apps/management/routes/members.d.ts +77 -77
  64. package/dist/apps/management/routes/orgs.d.ts +96 -96
  65. package/dist/apps/management/routes/projects.d.ts +62 -62
  66. package/dist/apps/management/routes/scopes.d.ts +11 -11
  67. package/dist/apps/management/routes/scopes.d.ts.map +1 -1
  68. package/dist/apps/management/routes/scopes.js +2 -2
  69. package/dist/apps/management/routes/scopes.js.map +1 -1
  70. package/dist/apps/management/routes/usage.d.ts +79 -79
  71. package/dist/apps/mcp.d.ts.map +1 -1
  72. package/dist/apps/mcp.js +3 -1
  73. package/dist/apps/mcp.js.map +1 -1
  74. package/dist/apps/relay/App.d.ts.map +1 -1
  75. package/dist/apps/relay/App.js +42 -4
  76. package/dist/apps/relay/App.js.map +1 -1
  77. package/dist/cloudflare.d.ts +2 -0
  78. package/dist/cloudflare.d.ts.map +1 -1
  79. package/dist/cloudflare.js +4 -0
  80. package/dist/cloudflare.js.map +1 -1
  81. package/dist/db/Db.d.ts +3 -0
  82. package/dist/db/Db.d.ts.map +1 -1
  83. package/dist/db/Db.js +57 -0
  84. package/dist/db/Db.js.map +1 -1
  85. package/dist/db/Schema.d.ts +31 -0
  86. package/dist/db/Schema.d.ts.map +1 -1
  87. package/dist/db/Schema.js +31 -0
  88. package/dist/db/Schema.js.map +1 -1
  89. package/dist/db/tables/inviteLinks.d.ts +42 -0
  90. package/dist/db/tables/inviteLinks.d.ts.map +1 -0
  91. package/dist/db/tables/inviteLinks.js +148 -0
  92. package/dist/db/tables/inviteLinks.js.map +1 -0
  93. package/dist/db/tables/organizations.d.ts.map +1 -1
  94. package/dist/db/tables/organizations.js +2 -0
  95. package/dist/db/tables/organizations.js.map +1 -1
  96. package/dist/handlers/relay.d.ts.map +1 -1
  97. package/dist/handlers/relay.js +13 -3
  98. package/dist/handlers/relay.js.map +1 -1
  99. package/dist/internal/Auth.d.ts +42 -23
  100. package/dist/internal/Auth.d.ts.map +1 -1
  101. package/dist/internal/Auth.js +169 -20
  102. package/dist/internal/Auth.js.map +1 -1
  103. package/dist/internal/EdgeCache.d.ts +3 -1
  104. package/dist/internal/EdgeCache.d.ts.map +1 -1
  105. package/dist/internal/EdgeCache.js +17 -2
  106. package/dist/internal/EdgeCache.js.map +1 -1
  107. package/dist/internal/Errors.d.ts +6 -0
  108. package/dist/internal/Errors.d.ts.map +1 -0
  109. package/dist/internal/Errors.js +16 -0
  110. package/dist/internal/Errors.js.map +1 -0
  111. package/dist/internal/FundingQuotes.d.ts +644 -0
  112. package/dist/internal/FundingQuotes.d.ts.map +1 -0
  113. package/dist/internal/{FundingRoutes.js → FundingQuotes.js} +93 -289
  114. package/dist/internal/FundingQuotes.js.map +1 -0
  115. package/dist/internal/Store.d.ts +61 -16
  116. package/dist/internal/Store.d.ts.map +1 -1
  117. package/dist/internal/Store.js +72 -17
  118. package/dist/internal/Store.js.map +1 -1
  119. package/dist/internal/Viem.d.ts +2 -0
  120. package/dist/internal/Viem.d.ts.map +1 -1
  121. package/dist/internal/Viem.js +11 -2
  122. package/dist/internal/Viem.js.map +1 -1
  123. package/dist/internal/index.d.ts +27 -0
  124. package/dist/internal/index.d.ts.map +1 -0
  125. package/dist/internal/index.js +27 -0
  126. package/dist/internal/index.js.map +1 -0
  127. package/package.json +8 -3
  128. package/src/ApiKeys.test.ts +23 -0
  129. package/src/App.test-d.ts +2 -0
  130. package/src/App.test.ts +60 -4
  131. package/src/App.ts +6 -0
  132. package/src/Client.test-d.ts +16 -54
  133. package/src/Scope.test.ts +1 -0
  134. package/src/Scope.ts +30 -4
  135. package/src/apps/data/App.test.ts +354 -0
  136. package/src/apps/data/App.ts +159 -52
  137. package/src/apps/data/FundingQuoteProviders.test.ts +151 -0
  138. package/src/apps/data/FundingQuoteProviders.ts +251 -0
  139. package/src/apps/data/index.ts +1 -1
  140. package/src/apps/data/routes/balances.test.ts +64 -18
  141. package/src/apps/data/routes/balances.ts +76 -177
  142. package/src/apps/data/routes/blocks.ts +3 -5
  143. package/src/apps/data/routes/coingecko.ts +3 -8
  144. package/src/apps/data/routes/funding.test.ts +149 -306
  145. package/src/apps/data/routes/funding.ts +154 -604
  146. package/src/apps/data/routes/indexer.test.ts +99 -3
  147. package/src/apps/data/routes/rpc.test.ts +219 -0
  148. package/src/apps/data/routes/rpc.ts +92 -17
  149. package/src/apps/data/routes/webhooks.test.ts +23 -2
  150. package/src/apps/data/routes/webhooks.ts +13 -1
  151. package/src/apps/index.ts +1 -1
  152. package/src/apps/management/App.ts +4 -0
  153. package/src/apps/management/routes/api-keys.test.ts +47 -3
  154. package/src/apps/management/routes/api-keys.ts +2 -2
  155. package/src/apps/management/routes/invite-links.test.ts +385 -0
  156. package/src/apps/management/routes/invite-links.ts +570 -0
  157. package/src/apps/management/routes/scopes.test.ts +3 -2
  158. package/src/apps/management/routes/scopes.ts +4 -2
  159. package/src/apps/mcp.test.ts +55 -14
  160. package/src/apps/mcp.ts +3 -1
  161. package/src/apps/relay/App.test.ts +324 -4
  162. package/src/apps/relay/App.ts +40 -4
  163. package/src/cloudflare.ts +5 -0
  164. package/src/db/Db.ts +65 -0
  165. package/src/db/Schema.ts +39 -0
  166. package/src/db/tables/inviteLinks.ts +187 -0
  167. package/src/db/tables/organizations.ts +2 -0
  168. package/src/handlers/relay.ts +16 -4
  169. package/src/internal/Auth.test.ts +528 -37
  170. package/src/internal/Auth.ts +246 -45
  171. package/src/internal/EdgeCache.test.ts +24 -3
  172. package/src/internal/EdgeCache.ts +18 -2
  173. package/src/internal/FundingQuotes.test.ts +174 -0
  174. package/src/internal/FundingQuotes.ts +735 -0
  175. package/src/internal/Log.test.ts +4 -4
  176. package/src/internal/Store.test-d.ts +15 -0
  177. package/src/internal/Store.test.ts +153 -2
  178. package/src/internal/Store.ts +157 -41
  179. package/src/internal/Viem.ts +14 -5
  180. package/src/internal/index.test.ts +34 -0
  181. package/src/internal/index.ts +26 -0
  182. package/dist/apps/data/FundingRouteProviders.d.ts +0 -143
  183. package/dist/apps/data/FundingRouteProviders.d.ts.map +0 -1
  184. package/dist/apps/data/FundingRouteProviders.js +0 -546
  185. package/dist/apps/data/FundingRouteProviders.js.map +0 -1
  186. package/dist/internal/FundingRoutes.d.ts +0 -1085
  187. package/dist/internal/FundingRoutes.d.ts.map +0 -1
  188. package/dist/internal/FundingRoutes.js.map +0 -1
  189. package/src/apps/data/FundingRouteProviders.test.ts +0 -485
  190. package/src/apps/data/FundingRouteProviders.ts +0 -744
  191. package/src/internal/FundingRoutes.test.ts +0 -239
  192. package/src/internal/FundingRoutes.ts +0 -1067
@@ -61,14 +61,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
61
61
  $get: {
62
62
  output: {
63
63
  error: {
64
- code: "api_key_malformed";
64
+ code: "upstream_error";
65
65
  details?: readonly Response.error.Detail[] | undefined;
66
66
  message: string;
67
67
  };
68
68
  requestId: string;
69
69
  };
70
70
  outputFormat: "json";
71
- status: 400;
71
+ status: 502;
72
72
  input: {
73
73
  param: {
74
74
  orgId: string;
@@ -77,14 +77,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
77
77
  } | {
78
78
  output: {
79
79
  error: {
80
- code: "api_key_invalid" | "api_key_missing";
80
+ code: "api_key_malformed";
81
81
  details?: readonly Response.error.Detail[] | undefined;
82
82
  message: string;
83
83
  };
84
84
  requestId: string;
85
85
  };
86
86
  outputFormat: "json";
87
- status: 401;
87
+ status: 400;
88
88
  input: {
89
89
  param: {
90
90
  orgId: string;
@@ -93,14 +93,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
93
93
  } | {
94
94
  output: {
95
95
  error: {
96
- code: "api_key_forbidden";
96
+ code: "api_key_invalid" | "api_key_missing";
97
97
  details?: readonly Response.error.Detail[] | undefined;
98
98
  message: string;
99
99
  };
100
100
  requestId: string;
101
101
  };
102
102
  outputFormat: "json";
103
- status: 403;
103
+ status: 401;
104
104
  input: {
105
105
  param: {
106
106
  orgId: string;
@@ -109,14 +109,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
109
109
  } | {
110
110
  output: {
111
111
  error: {
112
- code: "payment_required" | "rate_limit_exceeded";
112
+ code: "api_key_forbidden";
113
113
  details?: readonly Response.error.Detail[] | undefined;
114
114
  message: string;
115
115
  };
116
116
  requestId: string;
117
117
  };
118
118
  outputFormat: "json";
119
- status: 429;
119
+ status: 403;
120
120
  input: {
121
121
  param: {
122
122
  orgId: string;
@@ -125,14 +125,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
125
125
  } | {
126
126
  output: {
127
127
  error: {
128
- code: "upstream_error";
128
+ code: "payment_required" | "rate_limit_exceeded";
129
129
  details?: readonly Response.error.Detail[] | undefined;
130
130
  message: string;
131
131
  };
132
132
  requestId: string;
133
133
  };
134
134
  outputFormat: "json";
135
- status: 502;
135
+ status: 429;
136
136
  input: {
137
137
  param: {
138
138
  orgId: string;
@@ -141,14 +141,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
141
141
  } | {
142
142
  output: {
143
143
  error: {
144
- code: "param_invalid";
144
+ code: "organization_not_found";
145
145
  details?: readonly Response.error.Detail[] | undefined;
146
146
  message: string;
147
147
  };
148
148
  requestId: string;
149
149
  };
150
150
  outputFormat: "json";
151
- status: 400;
151
+ status: 404;
152
152
  input: {
153
153
  param: {
154
154
  orgId: string;
@@ -157,14 +157,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
157
157
  } | {
158
158
  output: {
159
159
  error: {
160
- code: "organization_not_found";
160
+ code: "param_invalid";
161
161
  details?: readonly Response.error.Detail[] | undefined;
162
162
  message: string;
163
163
  };
164
164
  requestId: string;
165
165
  };
166
166
  outputFormat: "json";
167
- status: 404;
167
+ status: 400;
168
168
  input: {
169
169
  param: {
170
170
  orgId: string;
@@ -195,14 +195,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
195
195
  $post: {
196
196
  output: {
197
197
  error: {
198
- code: "api_key_malformed";
198
+ code: "upstream_error";
199
199
  details?: readonly Response.error.Detail[] | undefined;
200
200
  message: string;
201
201
  };
202
202
  requestId: string;
203
203
  };
204
204
  outputFormat: "json";
205
- status: 400;
205
+ status: 502;
206
206
  input: {
207
207
  param: {
208
208
  orgId: string;
@@ -215,14 +215,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
215
215
  } | {
216
216
  output: {
217
217
  error: {
218
- code: "api_key_invalid" | "api_key_missing";
218
+ code: "api_key_malformed";
219
219
  details?: readonly Response.error.Detail[] | undefined;
220
220
  message: string;
221
221
  };
222
222
  requestId: string;
223
223
  };
224
224
  outputFormat: "json";
225
- status: 401;
225
+ status: 400;
226
226
  input: {
227
227
  param: {
228
228
  orgId: string;
@@ -235,14 +235,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
235
235
  } | {
236
236
  output: {
237
237
  error: {
238
- code: "api_key_forbidden";
238
+ code: "api_key_invalid" | "api_key_missing";
239
239
  details?: readonly Response.error.Detail[] | undefined;
240
240
  message: string;
241
241
  };
242
242
  requestId: string;
243
243
  };
244
244
  outputFormat: "json";
245
- status: 403;
245
+ status: 401;
246
246
  input: {
247
247
  param: {
248
248
  orgId: string;
@@ -255,14 +255,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
255
255
  } | {
256
256
  output: {
257
257
  error: {
258
- code: "payment_required" | "rate_limit_exceeded";
258
+ code: "api_key_forbidden";
259
259
  details?: readonly Response.error.Detail[] | undefined;
260
260
  message: string;
261
261
  };
262
262
  requestId: string;
263
263
  };
264
264
  outputFormat: "json";
265
- status: 429;
265
+ status: 403;
266
266
  input: {
267
267
  param: {
268
268
  orgId: string;
@@ -275,14 +275,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
275
275
  } | {
276
276
  output: {
277
277
  error: {
278
- code: "upstream_error";
278
+ code: "payment_required" | "rate_limit_exceeded";
279
279
  details?: readonly Response.error.Detail[] | undefined;
280
280
  message: string;
281
281
  };
282
282
  requestId: string;
283
283
  };
284
284
  outputFormat: "json";
285
- status: 502;
285
+ status: 429;
286
286
  input: {
287
287
  param: {
288
288
  orgId: string;
@@ -295,14 +295,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
295
295
  } | {
296
296
  output: {
297
297
  error: {
298
- code: "body_invalid";
298
+ code: "organization_not_found";
299
299
  details?: readonly Response.error.Detail[] | undefined;
300
300
  message: string;
301
301
  };
302
302
  requestId: string;
303
303
  };
304
304
  outputFormat: "json";
305
- status: 400;
305
+ status: 404;
306
306
  input: {
307
307
  param: {
308
308
  orgId: string;
@@ -315,7 +315,7 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
315
315
  } | {
316
316
  output: {
317
317
  error: {
318
- code: "param_invalid";
318
+ code: "body_invalid";
319
319
  details?: readonly Response.error.Detail[] | undefined;
320
320
  message: string;
321
321
  };
@@ -335,14 +335,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
335
335
  } | {
336
336
  output: {
337
337
  error: {
338
- code: "organization_not_found";
338
+ code: "param_invalid";
339
339
  details?: readonly Response.error.Detail[] | undefined;
340
340
  message: string;
341
341
  };
342
342
  requestId: string;
343
343
  };
344
344
  outputFormat: "json";
345
- status: 404;
345
+ status: 400;
346
346
  input: {
347
347
  param: {
348
348
  orgId: string;
@@ -447,14 +447,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
447
447
  } | {
448
448
  output: {
449
449
  error: {
450
- code: "param_invalid";
450
+ code: "organization_not_found" | "project_not_found";
451
451
  details?: readonly Response.error.Detail[] | undefined;
452
452
  message: string;
453
453
  };
454
454
  requestId: string;
455
455
  };
456
456
  outputFormat: "json";
457
- status: 400;
457
+ status: 404;
458
458
  input: {
459
459
  param: {
460
460
  orgId: string;
@@ -464,14 +464,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
464
464
  } | {
465
465
  output: {
466
466
  error: {
467
- code: "organization_not_found" | "project_not_found";
467
+ code: "param_invalid";
468
468
  details?: readonly Response.error.Detail[] | undefined;
469
469
  message: string;
470
470
  };
471
471
  requestId: string;
472
472
  };
473
473
  outputFormat: "json";
474
- status: 404;
474
+ status: 400;
475
475
  input: {
476
476
  param: {
477
477
  orgId: string;
@@ -502,14 +502,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
502
502
  $patch: {
503
503
  output: {
504
504
  error: {
505
- code: "api_key_malformed";
505
+ code: "upstream_error";
506
506
  details?: readonly Response.error.Detail[] | undefined;
507
507
  message: string;
508
508
  };
509
509
  requestId: string;
510
510
  };
511
511
  outputFormat: "json";
512
- status: 400;
512
+ status: 502;
513
513
  input: {
514
514
  param: {
515
515
  orgId: string;
@@ -523,14 +523,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
523
523
  } | {
524
524
  output: {
525
525
  error: {
526
- code: "api_key_invalid" | "api_key_missing";
526
+ code: "api_key_malformed";
527
527
  details?: readonly Response.error.Detail[] | undefined;
528
528
  message: string;
529
529
  };
530
530
  requestId: string;
531
531
  };
532
532
  outputFormat: "json";
533
- status: 401;
533
+ status: 400;
534
534
  input: {
535
535
  param: {
536
536
  orgId: string;
@@ -544,14 +544,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
544
544
  } | {
545
545
  output: {
546
546
  error: {
547
- code: "api_key_forbidden";
547
+ code: "api_key_invalid" | "api_key_missing";
548
548
  details?: readonly Response.error.Detail[] | undefined;
549
549
  message: string;
550
550
  };
551
551
  requestId: string;
552
552
  };
553
553
  outputFormat: "json";
554
- status: 403;
554
+ status: 401;
555
555
  input: {
556
556
  param: {
557
557
  orgId: string;
@@ -565,14 +565,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
565
565
  } | {
566
566
  output: {
567
567
  error: {
568
- code: "payment_required" | "rate_limit_exceeded";
568
+ code: "api_key_forbidden";
569
569
  details?: readonly Response.error.Detail[] | undefined;
570
570
  message: string;
571
571
  };
572
572
  requestId: string;
573
573
  };
574
574
  outputFormat: "json";
575
- status: 429;
575
+ status: 403;
576
576
  input: {
577
577
  param: {
578
578
  orgId: string;
@@ -586,14 +586,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
586
586
  } | {
587
587
  output: {
588
588
  error: {
589
- code: "upstream_error";
589
+ code: "payment_required" | "rate_limit_exceeded";
590
590
  details?: readonly Response.error.Detail[] | undefined;
591
591
  message: string;
592
592
  };
593
593
  requestId: string;
594
594
  };
595
595
  outputFormat: "json";
596
- status: 502;
596
+ status: 429;
597
597
  input: {
598
598
  param: {
599
599
  orgId: string;
@@ -607,14 +607,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
607
607
  } | {
608
608
  output: {
609
609
  error: {
610
- code: "body_invalid";
610
+ code: "organization_not_found" | "project_not_found";
611
611
  details?: readonly Response.error.Detail[] | undefined;
612
612
  message: string;
613
613
  };
614
614
  requestId: string;
615
615
  };
616
616
  outputFormat: "json";
617
- status: 400;
617
+ status: 404;
618
618
  input: {
619
619
  param: {
620
620
  orgId: string;
@@ -628,7 +628,7 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
628
628
  } | {
629
629
  output: {
630
630
  error: {
631
- code: "param_invalid";
631
+ code: "body_invalid";
632
632
  details?: readonly Response.error.Detail[] | undefined;
633
633
  message: string;
634
634
  };
@@ -649,14 +649,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
649
649
  } | {
650
650
  output: {
651
651
  error: {
652
- code: "organization_not_found" | "project_not_found";
652
+ code: "param_invalid";
653
653
  details?: readonly Response.error.Detail[] | undefined;
654
654
  message: string;
655
655
  };
656
656
  requestId: string;
657
657
  };
658
658
  outputFormat: "json";
659
- status: 404;
659
+ status: 400;
660
660
  input: {
661
661
  param: {
662
662
  orgId: string;
@@ -695,14 +695,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
695
695
  $delete: {
696
696
  output: {
697
697
  error: {
698
- code: "api_key_malformed";
698
+ code: "upstream_error";
699
699
  details?: readonly Response.error.Detail[] | undefined;
700
700
  message: string;
701
701
  };
702
702
  requestId: string;
703
703
  };
704
704
  outputFormat: "json";
705
- status: 400;
705
+ status: 502;
706
706
  input: {
707
707
  param: {
708
708
  orgId: string;
@@ -712,14 +712,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
712
712
  } | {
713
713
  output: {
714
714
  error: {
715
- code: "api_key_invalid" | "api_key_missing";
715
+ code: "api_key_malformed";
716
716
  details?: readonly Response.error.Detail[] | undefined;
717
717
  message: string;
718
718
  };
719
719
  requestId: string;
720
720
  };
721
721
  outputFormat: "json";
722
- status: 401;
722
+ status: 400;
723
723
  input: {
724
724
  param: {
725
725
  orgId: string;
@@ -729,14 +729,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
729
729
  } | {
730
730
  output: {
731
731
  error: {
732
- code: "api_key_forbidden";
732
+ code: "api_key_invalid" | "api_key_missing";
733
733
  details?: readonly Response.error.Detail[] | undefined;
734
734
  message: string;
735
735
  };
736
736
  requestId: string;
737
737
  };
738
738
  outputFormat: "json";
739
- status: 403;
739
+ status: 401;
740
740
  input: {
741
741
  param: {
742
742
  orgId: string;
@@ -746,14 +746,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
746
746
  } | {
747
747
  output: {
748
748
  error: {
749
- code: "payment_required" | "rate_limit_exceeded";
749
+ code: "api_key_forbidden";
750
750
  details?: readonly Response.error.Detail[] | undefined;
751
751
  message: string;
752
752
  };
753
753
  requestId: string;
754
754
  };
755
755
  outputFormat: "json";
756
- status: 429;
756
+ status: 403;
757
757
  input: {
758
758
  param: {
759
759
  orgId: string;
@@ -763,14 +763,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
763
763
  } | {
764
764
  output: {
765
765
  error: {
766
- code: "upstream_error";
766
+ code: "payment_required" | "rate_limit_exceeded";
767
767
  details?: readonly Response.error.Detail[] | undefined;
768
768
  message: string;
769
769
  };
770
770
  requestId: string;
771
771
  };
772
772
  outputFormat: "json";
773
- status: 502;
773
+ status: 429;
774
774
  input: {
775
775
  param: {
776
776
  orgId: string;
@@ -780,14 +780,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
780
780
  } | {
781
781
  output: {
782
782
  error: {
783
- code: "param_invalid";
783
+ code: "organization_not_found" | "project_not_found";
784
784
  details?: readonly Response.error.Detail[] | undefined;
785
785
  message: string;
786
786
  };
787
787
  requestId: string;
788
788
  };
789
789
  outputFormat: "json";
790
- status: 400;
790
+ status: 404;
791
791
  input: {
792
792
  param: {
793
793
  orgId: string;
@@ -797,14 +797,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
797
797
  } | {
798
798
  output: {
799
799
  error: {
800
- code: "organization_not_found" | "project_not_found";
800
+ code: "param_invalid";
801
801
  details?: readonly Response.error.Detail[] | undefined;
802
802
  message: string;
803
803
  };
804
804
  requestId: string;
805
805
  };
806
806
  outputFormat: "json";
807
- status: 404;
807
+ status: 400;
808
808
  input: {
809
809
  param: {
810
810
  orgId: string;
@@ -29,6 +29,17 @@ export declare namespace schema {
29
29
  export declare function scopes(): import("hono/hono-base").HonoBase<App.Environment, {
30
30
  "/v1/scopes": {
31
31
  $get: {
32
+ output: {
33
+ data: {
34
+ description: string;
35
+ scope: string;
36
+ selfServe: boolean;
37
+ }[];
38
+ };
39
+ outputFormat: "json";
40
+ status: 200;
41
+ input: {};
42
+ } | {
32
43
  output: {
33
44
  error: {
34
45
  code: "api_key_malformed";
@@ -76,17 +87,6 @@ export declare function scopes(): import("hono/hono-base").HonoBase<App.Environm
76
87
  outputFormat: "json";
77
88
  status: 429;
78
89
  input: {};
79
- } | {
80
- output: {
81
- data: {
82
- description: string;
83
- scope: string;
84
- selfServe: boolean;
85
- }[];
86
- };
87
- outputFormat: "json";
88
- status: 200;
89
- input: {};
90
90
  };
91
91
  };
92
92
  }, "/", "/v1/scopes">;
@@ -1 +1 @@
1
- {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../../src/apps/management/routes/scopes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,KAAK,KAAK,GAAG,MAAM,iBAAiB,CAAA;AAI3C,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAA;AAEzD,uDAAuD;AACvD,yBAAiB,MAAM,CAAC;IACtB,2CAA2C;IAC3C,UAAiB,SAAS,CAAC;QACzB,uCAAuC;QAChC,MAAM,KAAK;;;;yBAqBsC,CAAA;QAExD,2CAA2C;QACpC,MAAM,QAAQ;;;;;;yBAIuC,CAAA;KAC7D;CACF;AAED;;;;GAIG;AACH,wBAAgB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAgCrB"}
1
+ {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../../src/apps/management/routes/scopes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAE7B,OAAO,KAAK,KAAK,GAAG,MAAM,iBAAiB,CAAA;AAI3C,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAA;AAEzD,uDAAuD;AACvD,yBAAiB,MAAM,CAAC;IACtB,2CAA2C;IAC3C,UAAiB,SAAS,CAAC;QACzB,uCAAuC;QAChC,MAAM,KAAK;;;;yBAuBsC,CAAA;QAExD,2CAA2C;QACpC,MAAM,QAAQ;;;;;;yBAIuC,CAAA;KAC7D;CACF;AAED;;;;GAIG;AACH,wBAAgB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAgCrB"}
@@ -18,7 +18,7 @@ export var schema;
18
18
  .check(z.describe('Human-readable explanation of what the scope grants.'), z.meta({ examples: ['Read webhook subscriptions.'] })),
19
19
  scope: z
20
20
  .string()
21
- .check(z.describe('Scope identifier used in API-key grants and route policies.'), z.meta({ examples: ['data:read'] })),
21
+ .check(z.describe('Scope identifier used in API-key grants and route policies. `zone:<chainId>:read` is a template: grants carry a concrete zone chain id.'), z.meta({ examples: ['data:read'] })),
22
22
  selfServe: z
23
23
  .boolean()
24
24
  .check(z.describe('Whether an eligible session may self-mint this scope.'), z.meta({ examples: [true] })),
@@ -48,7 +48,7 @@ export function scopes() {
48
48
  tags: ['API Keys'],
49
49
  }), Cache.response({
50
50
  cacheControl: Cache.policies.stable,
51
- name: 'tempo-api:scopes:v2',
51
+ name: 'tempo-api:scopes:v3',
52
52
  key: (c) => {
53
53
  const url = new URL(c.req.url);
54
54
  url.search = '';
@@ -1 +1 @@
1
- {"version":3,"file":"scopes.js","sourceRoot":"","sources":["../../../../src/apps/management/routes/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAC3B,OAAO,KAAK,CAAC,MAAM,UAAU,CAAA;AAG7B,OAAO,KAAK,IAAI,MAAM,2BAA2B,CAAA;AACjD,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAA;AACnD,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAA;AACvD,OAAO,KAAK,QAAQ,MAAM,+BAA+B,CAAA;AAEzD,uDAAuD;AACvD,MAAM,KAAW,MAAM,CAkCtB;AAlCD,WAAiB,MAAM;IACrB,2CAA2C;IAC3C,IAAiB,SAAS,CA+BzB;IA/BD,WAAiB,SAAS;QACxB,uCAAuC;QAC1B,eAAK,GAAG,CAAC;aACnB,MAAM,CAAC;YACN,WAAW,EAAE,CAAC;iBACX,MAAM,EAAE;iBACR,KAAK,CACJ,CAAC,CAAC,QAAQ,CAAC,sDAAsD,CAAC,EAClE,CAAC,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,6BAA6B,CAAC,EAAE,CAAC,CACtD;YACH,KAAK,EAAE,CAAC;iBACL,MAAM,EAAE;iBACR,KAAK,CACJ,CAAC,CAAC,QAAQ,CAAC,6DAA6D,CAAC,EACzE,CAAC,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC,CACpC;YACH,SAAS,EAAE,CAAC;iBACT,OAAO,EAAE;iBACT,KAAK,CACJ,CAAC,CAAC,QAAQ,CAAC,uDAAuD,CAAC,EACnE,CAAC,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAC7B;SACJ,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,kCAAkC,C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