tapimo 0.4.4 → 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.
- package/dist/App.d.ts +7403 -6127
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +4 -0
- package/dist/App.js.map +1 -1
- package/dist/Scope.d.ts +18 -1
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +24 -3
- package/dist/Scope.js.map +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +115 -115
- package/dist/apps/data/App.d.ts +1838 -1534
- package/dist/apps/data/App.d.ts.map +1 -1
- package/dist/apps/data/App.js +135 -44
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/{FundingRouteProviders.d.ts → FundingQuoteProviders.d.ts} +7 -7
- package/dist/apps/data/{FundingRouteProviders.d.ts.map → FundingQuoteProviders.d.ts.map} +1 -1
- package/dist/apps/data/{FundingRouteProviders.js → FundingQuoteProviders.js} +36 -91
- package/dist/apps/data/FundingQuoteProviders.js.map +1 -0
- package/dist/apps/data/index.d.ts +1 -1
- package/dist/apps/data/index.js +1 -1
- package/dist/apps/data/routes/activities.d.ts +242 -242
- package/dist/apps/data/routes/addresses.d.ts +227 -227
- package/dist/apps/data/routes/balances.d.ts +12 -12
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +67 -149
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +125 -126
- package/dist/apps/data/routes/blocks.d.ts.map +1 -1
- package/dist/apps/data/routes/blocks.js +3 -5
- package/dist/apps/data/routes/blocks.js.map +1 -1
- package/dist/apps/data/routes/coingecko.d.ts +55 -54
- package/dist/apps/data/routes/coingecko.d.ts.map +1 -1
- package/dist/apps/data/routes/coingecko.js +3 -8
- package/dist/apps/data/routes/coingecko.js.map +1 -1
- package/dist/apps/data/routes/funding.d.ts +207 -388
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +143 -221
- package/dist/apps/data/routes/funding.js.map +1 -1
- package/dist/apps/data/routes/rpc.d.ts.map +1 -1
- package/dist/apps/data/routes/rpc.js +86 -16
- package/dist/apps/data/routes/rpc.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +33 -33
- package/dist/apps/data/routes/transactions.d.ts +281 -281
- package/dist/apps/data/routes/transfers.d.ts +58 -58
- package/dist/apps/data/routes/verified-tokens.d.ts +86 -86
- package/dist/apps/data/routes/webhooks.d.ts +340 -0
- package/dist/apps/data/routes/webhooks.d.ts.map +1 -1
- package/dist/apps/data/routes/webhooks.js +13 -1
- package/dist/apps/data/routes/webhooks.js.map +1 -1
- package/dist/apps/index.d.ts +1 -1
- package/dist/apps/index.js +1 -1
- package/dist/apps/management/App.d.ts +1090 -108
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/App.js +4 -0
- package/dist/apps/management/App.js.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +118 -118
- package/dist/apps/management/routes/api-keys.js +2 -2
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/billing.d.ts +207 -207
- package/dist/apps/management/routes/invite-links.d.ts +1100 -0
- package/dist/apps/management/routes/invite-links.d.ts.map +1 -0
- package/dist/apps/management/routes/invite-links.js +411 -0
- package/dist/apps/management/routes/invite-links.js.map +1 -0
- package/dist/apps/management/routes/me.d.ts +17 -17
- package/dist/apps/management/routes/members.d.ts +71 -71
- package/dist/apps/management/routes/orgs.d.ts +12 -12
- package/dist/apps/management/routes/projects.d.ts +70 -70
- package/dist/apps/management/routes/scopes.d.ts +11 -11
- package/dist/apps/management/routes/scopes.d.ts.map +1 -1
- package/dist/apps/management/routes/scopes.js +2 -2
- package/dist/apps/management/routes/scopes.js.map +1 -1
- package/dist/apps/management/routes/usage.d.ts +75 -75
- package/dist/apps/relay/App.d.ts.map +1 -1
- package/dist/apps/relay/App.js +42 -4
- package/dist/apps/relay/App.js.map +1 -1
- package/dist/db/Db.d.ts +3 -0
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +57 -0
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +31 -0
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +31 -0
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/inviteLinks.d.ts +42 -0
- package/dist/db/tables/inviteLinks.d.ts.map +1 -0
- package/dist/db/tables/inviteLinks.js +148 -0
- package/dist/db/tables/inviteLinks.js.map +1 -0
- package/dist/db/tables/organizations.d.ts.map +1 -1
- package/dist/db/tables/organizations.js +2 -0
- package/dist/db/tables/organizations.js.map +1 -1
- package/dist/handlers/relay.d.ts.map +1 -1
- package/dist/handlers/relay.js +13 -3
- package/dist/handlers/relay.js.map +1 -1
- package/dist/internal/Auth.d.ts +9 -1
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +130 -10
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/EdgeCache.d.ts +3 -1
- package/dist/internal/EdgeCache.d.ts.map +1 -1
- package/dist/internal/EdgeCache.js +17 -2
- package/dist/internal/EdgeCache.js.map +1 -1
- package/dist/internal/{FundingRoutes.d.ts → FundingQuotes.d.ts} +185 -428
- package/dist/internal/FundingQuotes.d.ts.map +1 -0
- package/dist/internal/{FundingRoutes.js → FundingQuotes.js} +93 -218
- package/dist/internal/FundingQuotes.js.map +1 -0
- package/dist/internal/Viem.d.ts +3 -1
- package/dist/internal/Viem.d.ts.map +1 -1
- package/dist/internal/Viem.js +11 -2
- package/dist/internal/Viem.js.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.js +1 -1
- package/package.json +1 -1
- package/src/ApiKeys.test.ts +23 -0
- package/src/App.test-d.ts +2 -0
- package/src/App.ts +6 -0
- package/src/Client.test-d.ts +20 -11
- package/src/Scope.test.ts +1 -0
- package/src/Scope.ts +30 -4
- package/src/apps/data/App.test.ts +354 -0
- package/src/apps/data/App.ts +159 -52
- package/src/apps/data/FundingQuoteProviders.test.ts +151 -0
- package/src/apps/data/{FundingRouteProviders.ts → FundingQuoteProviders.ts} +40 -101
- package/src/apps/data/index.ts +1 -1
- package/src/apps/data/routes/balances.test.ts +64 -18
- package/src/apps/data/routes/balances.ts +76 -177
- package/src/apps/data/routes/blocks.ts +3 -5
- package/src/apps/data/routes/coingecko.ts +3 -8
- package/src/apps/data/routes/funding.test.ts +151 -206
- package/src/apps/data/routes/funding.ts +156 -291
- package/src/apps/data/routes/indexer.test.ts +97 -1
- package/src/apps/data/routes/rpc.test.ts +219 -0
- package/src/apps/data/routes/rpc.ts +92 -17
- package/src/apps/data/routes/webhooks.test.ts +21 -0
- package/src/apps/data/routes/webhooks.ts +13 -1
- package/src/apps/index.ts +1 -1
- package/src/apps/management/App.ts +4 -0
- package/src/apps/management/routes/api-keys.test.ts +47 -3
- package/src/apps/management/routes/api-keys.ts +2 -2
- package/src/apps/management/routes/invite-links.test.ts +385 -0
- package/src/apps/management/routes/invite-links.ts +570 -0
- package/src/apps/management/routes/scopes.test.ts +3 -2
- package/src/apps/management/routes/scopes.ts +4 -2
- package/src/apps/relay/App.test.ts +324 -4
- package/src/apps/relay/App.ts +40 -4
- package/src/db/Db.ts +65 -0
- package/src/db/Schema.ts +39 -0
- package/src/db/tables/inviteLinks.ts +187 -0
- package/src/db/tables/organizations.ts +2 -0
- package/src/handlers/relay.ts +16 -4
- package/src/internal/Auth.test.ts +132 -22
- package/src/internal/Auth.ts +171 -14
- package/src/internal/EdgeCache.test.ts +24 -3
- package/src/internal/EdgeCache.ts +18 -2
- package/src/internal/FundingQuotes.test.ts +174 -0
- package/src/internal/{FundingRoutes.ts → FundingQuotes.ts} +153 -312
- package/src/internal/Viem.ts +14 -5
- package/src/internal/index.test.ts +1 -1
- package/src/internal/index.ts +1 -1
- package/dist/apps/data/FundingRouteProviders.js.map +0 -1
- package/dist/internal/FundingRoutes.d.ts.map +0 -1
- package/dist/internal/FundingRoutes.js.map +0 -1
- package/src/apps/data/FundingRouteProviders.test.ts +0 -225
- package/src/internal/FundingRoutes.test.ts +0 -213
|
@@ -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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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:
|
|
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: "
|
|
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: "
|
|
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:
|
|
345
|
+
status: 400;
|
|
346
346
|
input: {
|
|
347
347
|
param: {
|
|
348
348
|
orgId: string;
|
|
@@ -444,6 +444,23 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
444
444
|
projectId: string;
|
|
445
445
|
};
|
|
446
446
|
};
|
|
447
|
+
} | {
|
|
448
|
+
output: {
|
|
449
|
+
error: {
|
|
450
|
+
code: "organization_not_found" | "project_not_found";
|
|
451
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
452
|
+
message: string;
|
|
453
|
+
};
|
|
454
|
+
requestId: string;
|
|
455
|
+
};
|
|
456
|
+
outputFormat: "json";
|
|
457
|
+
status: 404;
|
|
458
|
+
input: {
|
|
459
|
+
param: {
|
|
460
|
+
orgId: string;
|
|
461
|
+
projectId: string;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
447
464
|
} | {
|
|
448
465
|
output: {
|
|
449
466
|
error: {
|
|
@@ -478,28 +495,32 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
478
495
|
projectId: string;
|
|
479
496
|
};
|
|
480
497
|
};
|
|
481
|
-
}
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
} & {
|
|
501
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
|
|
502
|
+
$patch: {
|
|
482
503
|
output: {
|
|
483
504
|
error: {
|
|
484
|
-
code: "
|
|
505
|
+
code: "upstream_error";
|
|
485
506
|
details?: readonly Response.error.Detail[] | undefined;
|
|
486
507
|
message: string;
|
|
487
508
|
};
|
|
488
509
|
requestId: string;
|
|
489
510
|
};
|
|
490
511
|
outputFormat: "json";
|
|
491
|
-
status:
|
|
512
|
+
status: 502;
|
|
492
513
|
input: {
|
|
493
514
|
param: {
|
|
494
515
|
orgId: string;
|
|
495
516
|
projectId: string;
|
|
496
517
|
};
|
|
518
|
+
} & {
|
|
519
|
+
json: {
|
|
520
|
+
name: string;
|
|
521
|
+
};
|
|
497
522
|
};
|
|
498
|
-
}
|
|
499
|
-
};
|
|
500
|
-
} & {
|
|
501
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
|
|
502
|
-
$patch: {
|
|
523
|
+
} | {
|
|
503
524
|
output: {
|
|
504
525
|
error: {
|
|
505
526
|
code: "api_key_malformed";
|
|
@@ -586,14 +607,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
586
607
|
} | {
|
|
587
608
|
output: {
|
|
588
609
|
error: {
|
|
589
|
-
code: "
|
|
610
|
+
code: "organization_not_found" | "project_not_found";
|
|
590
611
|
details?: readonly Response.error.Detail[] | undefined;
|
|
591
612
|
message: string;
|
|
592
613
|
};
|
|
593
614
|
requestId: string;
|
|
594
615
|
};
|
|
595
616
|
outputFormat: "json";
|
|
596
|
-
status:
|
|
617
|
+
status: 404;
|
|
597
618
|
input: {
|
|
598
619
|
param: {
|
|
599
620
|
orgId: string;
|
|
@@ -667,32 +688,28 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
667
688
|
name: string;
|
|
668
689
|
};
|
|
669
690
|
};
|
|
670
|
-
}
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
} & {
|
|
694
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
|
|
695
|
+
$delete: {
|
|
671
696
|
output: {
|
|
672
697
|
error: {
|
|
673
|
-
code: "
|
|
698
|
+
code: "upstream_error";
|
|
674
699
|
details?: readonly Response.error.Detail[] | undefined;
|
|
675
700
|
message: string;
|
|
676
701
|
};
|
|
677
702
|
requestId: string;
|
|
678
703
|
};
|
|
679
704
|
outputFormat: "json";
|
|
680
|
-
status:
|
|
705
|
+
status: 502;
|
|
681
706
|
input: {
|
|
682
707
|
param: {
|
|
683
708
|
orgId: string;
|
|
684
709
|
projectId: string;
|
|
685
710
|
};
|
|
686
|
-
} & {
|
|
687
|
-
json: {
|
|
688
|
-
name: string;
|
|
689
|
-
};
|
|
690
711
|
};
|
|
691
|
-
}
|
|
692
|
-
};
|
|
693
|
-
} & {
|
|
694
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}": {
|
|
695
|
-
$delete: {
|
|
712
|
+
} | {
|
|
696
713
|
output: {
|
|
697
714
|
error: {
|
|
698
715
|
code: "api_key_malformed";
|
|
@@ -763,14 +780,14 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
763
780
|
} | {
|
|
764
781
|
output: {
|
|
765
782
|
error: {
|
|
766
|
-
code: "
|
|
783
|
+
code: "organization_not_found" | "project_not_found";
|
|
767
784
|
details?: readonly Response.error.Detail[] | undefined;
|
|
768
785
|
message: string;
|
|
769
786
|
};
|
|
770
787
|
requestId: string;
|
|
771
788
|
};
|
|
772
789
|
outputFormat: "json";
|
|
773
|
-
status:
|
|
790
|
+
status: 404;
|
|
774
791
|
input: {
|
|
775
792
|
param: {
|
|
776
793
|
orgId: string;
|
|
@@ -794,23 +811,6 @@ export declare function projects(): import("hono/hono-base").HonoBase<App.Enviro
|
|
|
794
811
|
projectId: string;
|
|
795
812
|
};
|
|
796
813
|
};
|
|
797
|
-
} | {
|
|
798
|
-
output: {
|
|
799
|
-
error: {
|
|
800
|
-
code: "organization_not_found" | "project_not_found";
|
|
801
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
802
|
-
message: string;
|
|
803
|
-
};
|
|
804
|
-
requestId: string;
|
|
805
|
-
};
|
|
806
|
-
outputFormat: "json";
|
|
807
|
-
status: 404;
|
|
808
|
-
input: {
|
|
809
|
-
param: {
|
|
810
|
-
orgId: string;
|
|
811
|
-
projectId: string;
|
|
812
|
-
};
|
|
813
|
-
};
|
|
814
814
|
} | {
|
|
815
815
|
output: {
|
|
816
816
|
id: 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;;;;
|
|
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:
|
|
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,
|
|
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,MAA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