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.
- package/dist/App.d.ts +7222 -6316
- 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 +116 -116
- package/dist/apps/data/App.d.ts +2541 -2607
- 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/FundingQuoteProviders.d.ts +36 -0
- package/dist/apps/data/FundingQuoteProviders.d.ts.map +1 -0
- package/dist/apps/data/FundingQuoteProviders.js +190 -0
- 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/exchanges.d.ts +455 -455
- package/dist/apps/data/routes/fee-amm.d.ts +92 -92
- package/dist/apps/data/routes/funding.d.ts +91 -864
- package/dist/apps/data/routes/funding.d.ts.map +1 -1
- package/dist/apps/data/routes/funding.js +138 -450
- 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 +36 -36
- 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 +1843 -861
- 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 +121 -121
- 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 +2 -2
- 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 +13 -13
- package/dist/apps/management/routes/members.d.ts +77 -77
- package/dist/apps/management/routes/orgs.d.ts +96 -96
- package/dist/apps/management/routes/projects.d.ts +62 -62
- 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 +79 -79
- package/dist/apps/mcp.d.ts.map +1 -1
- package/dist/apps/mcp.js +3 -1
- package/dist/apps/mcp.js.map +1 -1
- 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/cloudflare.d.ts +2 -0
- package/dist/cloudflare.d.ts.map +1 -1
- package/dist/cloudflare.js +4 -0
- package/dist/cloudflare.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 +42 -23
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +169 -20
- 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/Errors.d.ts +6 -0
- package/dist/internal/Errors.d.ts.map +1 -0
- package/dist/internal/Errors.js +16 -0
- package/dist/internal/Errors.js.map +1 -0
- package/dist/internal/FundingQuotes.d.ts +644 -0
- package/dist/internal/FundingQuotes.d.ts.map +1 -0
- package/dist/internal/{FundingRoutes.js → FundingQuotes.js} +93 -289
- package/dist/internal/FundingQuotes.js.map +1 -0
- package/dist/internal/Store.d.ts +61 -16
- package/dist/internal/Store.d.ts.map +1 -1
- package/dist/internal/Store.js +72 -17
- package/dist/internal/Store.js.map +1 -1
- package/dist/internal/Viem.d.ts +2 -0
- 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 +27 -0
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/internal/index.js +27 -0
- package/dist/internal/index.js.map +1 -0
- package/package.json +8 -3
- package/src/ApiKeys.test.ts +23 -0
- package/src/App.test-d.ts +2 -0
- package/src/App.test.ts +60 -4
- package/src/App.ts +6 -0
- package/src/Client.test-d.ts +16 -54
- 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/FundingQuoteProviders.ts +251 -0
- 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 +149 -306
- package/src/apps/data/routes/funding.ts +154 -604
- package/src/apps/data/routes/indexer.test.ts +99 -3
- 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 +23 -2
- 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/mcp.test.ts +55 -14
- package/src/apps/mcp.ts +3 -1
- package/src/apps/relay/App.test.ts +324 -4
- package/src/apps/relay/App.ts +40 -4
- package/src/cloudflare.ts +5 -0
- 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 +528 -37
- package/src/internal/Auth.ts +246 -45
- 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/FundingQuotes.ts +735 -0
- package/src/internal/Log.test.ts +4 -4
- package/src/internal/Store.test-d.ts +15 -0
- package/src/internal/Store.test.ts +153 -2
- package/src/internal/Store.ts +157 -41
- package/src/internal/Viem.ts +14 -5
- package/src/internal/index.test.ts +34 -0
- package/src/internal/index.ts +26 -0
- package/dist/apps/data/FundingRouteProviders.d.ts +0 -143
- package/dist/apps/data/FundingRouteProviders.d.ts.map +0 -1
- package/dist/apps/data/FundingRouteProviders.js +0 -546
- package/dist/apps/data/FundingRouteProviders.js.map +0 -1
- package/dist/internal/FundingRoutes.d.ts +0 -1085
- 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 -485
- package/src/apps/data/FundingRouteProviders.ts +0 -744
- package/src/internal/FundingRoutes.test.ts +0 -239
- package/src/internal/FundingRoutes.ts +0 -1067
|
@@ -128,21 +128,26 @@ export declare namespace schema {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
/**
|
|
131
|
-
* Mounts project-attributed API key mint, list, and revoke routes plus the org-wide list.
|
|
131
|
+
* Mounts project-attributed API key mint, list, and revoke routes plus the org-wide list. Project routes enforce caller organization and project attribution.
|
|
132
132
|
*/
|
|
133
133
|
export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-base").HonoBase<App.Environment, {
|
|
134
134
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
|
|
135
135
|
$post: {
|
|
136
136
|
output: {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
createdAt: string;
|
|
138
|
+
createdBy?: string | undefined;
|
|
139
|
+
environment: "production" | "sandbox";
|
|
140
|
+
expiresAt?: string | undefined;
|
|
141
|
+
id: string;
|
|
142
|
+
name?: string | undefined;
|
|
143
|
+
orgId: string;
|
|
144
|
+
projectId?: string | undefined;
|
|
145
|
+
scopes: string[];
|
|
146
|
+
tokenLast4: string;
|
|
147
|
+
token: string;
|
|
143
148
|
};
|
|
144
149
|
outputFormat: "json";
|
|
145
|
-
status:
|
|
150
|
+
status: 200;
|
|
146
151
|
input: {
|
|
147
152
|
param: {
|
|
148
153
|
orgId: string;
|
|
@@ -158,14 +163,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
158
163
|
} | {
|
|
159
164
|
output: {
|
|
160
165
|
error: {
|
|
161
|
-
code: "
|
|
166
|
+
code: "api_key_malformed";
|
|
162
167
|
details?: readonly Response.error.Detail[] | undefined;
|
|
163
168
|
message: string;
|
|
164
169
|
};
|
|
165
170
|
requestId: string;
|
|
166
171
|
};
|
|
167
172
|
outputFormat: "json";
|
|
168
|
-
status:
|
|
173
|
+
status: 400;
|
|
169
174
|
input: {
|
|
170
175
|
param: {
|
|
171
176
|
orgId: string;
|
|
@@ -181,14 +186,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
181
186
|
} | {
|
|
182
187
|
output: {
|
|
183
188
|
error: {
|
|
184
|
-
code: "
|
|
189
|
+
code: "param_invalid";
|
|
185
190
|
details?: readonly Response.error.Detail[] | undefined;
|
|
186
191
|
message: string;
|
|
187
192
|
};
|
|
188
193
|
requestId: string;
|
|
189
194
|
};
|
|
190
195
|
outputFormat: "json";
|
|
191
|
-
status:
|
|
196
|
+
status: 400;
|
|
192
197
|
input: {
|
|
193
198
|
param: {
|
|
194
199
|
orgId: string;
|
|
@@ -204,14 +209,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
204
209
|
} | {
|
|
205
210
|
output: {
|
|
206
211
|
error: {
|
|
207
|
-
code: "
|
|
212
|
+
code: "body_invalid";
|
|
208
213
|
details?: readonly Response.error.Detail[] | undefined;
|
|
209
214
|
message: string;
|
|
210
215
|
};
|
|
211
216
|
requestId: string;
|
|
212
217
|
};
|
|
213
218
|
outputFormat: "json";
|
|
214
|
-
status:
|
|
219
|
+
status: 400;
|
|
215
220
|
input: {
|
|
216
221
|
param: {
|
|
217
222
|
orgId: string;
|
|
@@ -227,14 +232,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
227
232
|
} | {
|
|
228
233
|
output: {
|
|
229
234
|
error: {
|
|
230
|
-
code: "
|
|
235
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
231
236
|
details?: readonly Response.error.Detail[] | undefined;
|
|
232
237
|
message: string;
|
|
233
238
|
};
|
|
234
239
|
requestId: string;
|
|
235
240
|
};
|
|
236
241
|
outputFormat: "json";
|
|
237
|
-
status:
|
|
242
|
+
status: 401;
|
|
238
243
|
input: {
|
|
239
244
|
param: {
|
|
240
245
|
orgId: string;
|
|
@@ -250,14 +255,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
250
255
|
} | {
|
|
251
256
|
output: {
|
|
252
257
|
error: {
|
|
253
|
-
code: "
|
|
258
|
+
code: "forbidden";
|
|
254
259
|
details?: readonly Response.error.Detail[] | undefined;
|
|
255
260
|
message: string;
|
|
256
261
|
};
|
|
257
262
|
requestId: string;
|
|
258
263
|
};
|
|
259
264
|
outputFormat: "json";
|
|
260
|
-
status:
|
|
265
|
+
status: 403;
|
|
261
266
|
input: {
|
|
262
267
|
param: {
|
|
263
268
|
orgId: string;
|
|
@@ -273,14 +278,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
273
278
|
} | {
|
|
274
279
|
output: {
|
|
275
280
|
error: {
|
|
276
|
-
code: "
|
|
281
|
+
code: "scope_not_issuable";
|
|
277
282
|
details?: readonly Response.error.Detail[] | undefined;
|
|
278
283
|
message: string;
|
|
279
284
|
};
|
|
280
285
|
requestId: string;
|
|
281
286
|
};
|
|
282
287
|
outputFormat: "json";
|
|
283
|
-
status:
|
|
288
|
+
status: 403;
|
|
284
289
|
input: {
|
|
285
290
|
param: {
|
|
286
291
|
orgId: string;
|
|
@@ -296,7 +301,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
296
301
|
} | {
|
|
297
302
|
output: {
|
|
298
303
|
error: {
|
|
299
|
-
code: "
|
|
304
|
+
code: "organization_not_found" | "project_not_found";
|
|
300
305
|
details?: readonly Response.error.Detail[] | undefined;
|
|
301
306
|
message: string;
|
|
302
307
|
};
|
|
@@ -319,14 +324,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
319
324
|
} | {
|
|
320
325
|
output: {
|
|
321
326
|
error: {
|
|
322
|
-
code: "
|
|
327
|
+
code: "api_keys_not_enabled";
|
|
323
328
|
details?: readonly Response.error.Detail[] | undefined;
|
|
324
329
|
message: string;
|
|
325
330
|
};
|
|
326
331
|
requestId: string;
|
|
327
332
|
};
|
|
328
333
|
outputFormat: "json";
|
|
329
|
-
status:
|
|
334
|
+
status: 404;
|
|
330
335
|
input: {
|
|
331
336
|
param: {
|
|
332
337
|
orgId: string;
|
|
@@ -341,20 +346,15 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
341
346
|
};
|
|
342
347
|
} | {
|
|
343
348
|
output: {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
orgId: string;
|
|
351
|
-
projectId?: string | undefined;
|
|
352
|
-
scopes: string[];
|
|
353
|
-
tokenLast4: string;
|
|
354
|
-
token: string;
|
|
349
|
+
error: {
|
|
350
|
+
code: "upstream_error";
|
|
351
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
352
|
+
message: string;
|
|
353
|
+
};
|
|
354
|
+
requestId: string;
|
|
355
355
|
};
|
|
356
356
|
outputFormat: "json";
|
|
357
|
-
status:
|
|
357
|
+
status: 502;
|
|
358
358
|
input: {
|
|
359
359
|
param: {
|
|
360
360
|
orgId: string;
|
|
@@ -372,6 +372,33 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
372
372
|
} & {
|
|
373
373
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys": {
|
|
374
374
|
$get: {
|
|
375
|
+
output: {
|
|
376
|
+
data: {
|
|
377
|
+
createdAt: string;
|
|
378
|
+
createdBy?: string | undefined;
|
|
379
|
+
environment: "production" | "sandbox";
|
|
380
|
+
expiresAt?: string | undefined;
|
|
381
|
+
id: string;
|
|
382
|
+
name?: string | undefined;
|
|
383
|
+
orgId: string;
|
|
384
|
+
projectId?: string | undefined;
|
|
385
|
+
scopes: string[];
|
|
386
|
+
tokenLast4: string;
|
|
387
|
+
}[];
|
|
388
|
+
};
|
|
389
|
+
outputFormat: "json";
|
|
390
|
+
status: 200;
|
|
391
|
+
input: {
|
|
392
|
+
param: {
|
|
393
|
+
orgId: string;
|
|
394
|
+
projectId: string;
|
|
395
|
+
};
|
|
396
|
+
} & {
|
|
397
|
+
query?: {
|
|
398
|
+
environment?: string | string[];
|
|
399
|
+
} | undefined;
|
|
400
|
+
};
|
|
401
|
+
} | {
|
|
375
402
|
output: {
|
|
376
403
|
error: {
|
|
377
404
|
code: "api_key_malformed";
|
|
@@ -395,14 +422,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
395
422
|
} | {
|
|
396
423
|
output: {
|
|
397
424
|
error: {
|
|
398
|
-
code: "
|
|
425
|
+
code: "query_invalid";
|
|
399
426
|
details?: readonly Response.error.Detail[] | undefined;
|
|
400
427
|
message: string;
|
|
401
428
|
};
|
|
402
429
|
requestId: string;
|
|
403
430
|
};
|
|
404
431
|
outputFormat: "json";
|
|
405
|
-
status:
|
|
432
|
+
status: 400;
|
|
406
433
|
input: {
|
|
407
434
|
param: {
|
|
408
435
|
orgId: string;
|
|
@@ -416,14 +443,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
416
443
|
} | {
|
|
417
444
|
output: {
|
|
418
445
|
error: {
|
|
419
|
-
code: "
|
|
446
|
+
code: "param_invalid";
|
|
420
447
|
details?: readonly Response.error.Detail[] | undefined;
|
|
421
448
|
message: string;
|
|
422
449
|
};
|
|
423
450
|
requestId: string;
|
|
424
451
|
};
|
|
425
452
|
outputFormat: "json";
|
|
426
|
-
status:
|
|
453
|
+
status: 400;
|
|
427
454
|
input: {
|
|
428
455
|
param: {
|
|
429
456
|
orgId: string;
|
|
@@ -437,14 +464,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
437
464
|
} | {
|
|
438
465
|
output: {
|
|
439
466
|
error: {
|
|
440
|
-
code: "
|
|
467
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
441
468
|
details?: readonly Response.error.Detail[] | undefined;
|
|
442
469
|
message: string;
|
|
443
470
|
};
|
|
444
471
|
requestId: string;
|
|
445
472
|
};
|
|
446
473
|
outputFormat: "json";
|
|
447
|
-
status:
|
|
474
|
+
status: 401;
|
|
448
475
|
input: {
|
|
449
476
|
param: {
|
|
450
477
|
orgId: string;
|
|
@@ -458,14 +485,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
458
485
|
} | {
|
|
459
486
|
output: {
|
|
460
487
|
error: {
|
|
461
|
-
code: "
|
|
488
|
+
code: "api_key_forbidden";
|
|
462
489
|
details?: readonly Response.error.Detail[] | undefined;
|
|
463
490
|
message: string;
|
|
464
491
|
};
|
|
465
492
|
requestId: string;
|
|
466
493
|
};
|
|
467
494
|
outputFormat: "json";
|
|
468
|
-
status:
|
|
495
|
+
status: 403;
|
|
469
496
|
input: {
|
|
470
497
|
param: {
|
|
471
498
|
orgId: string;
|
|
@@ -479,14 +506,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
479
506
|
} | {
|
|
480
507
|
output: {
|
|
481
508
|
error: {
|
|
482
|
-
code: "
|
|
509
|
+
code: "organization_not_found" | "project_not_found";
|
|
483
510
|
details?: readonly Response.error.Detail[] | undefined;
|
|
484
511
|
message: string;
|
|
485
512
|
};
|
|
486
513
|
requestId: string;
|
|
487
514
|
};
|
|
488
515
|
outputFormat: "json";
|
|
489
|
-
status:
|
|
516
|
+
status: 404;
|
|
490
517
|
input: {
|
|
491
518
|
param: {
|
|
492
519
|
orgId: string;
|
|
@@ -500,7 +527,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
500
527
|
} | {
|
|
501
528
|
output: {
|
|
502
529
|
error: {
|
|
503
|
-
code: "
|
|
530
|
+
code: "api_keys_not_enabled";
|
|
504
531
|
details?: readonly Response.error.Detail[] | undefined;
|
|
505
532
|
message: string;
|
|
506
533
|
};
|
|
@@ -521,14 +548,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
521
548
|
} | {
|
|
522
549
|
output: {
|
|
523
550
|
error: {
|
|
524
|
-
code: "
|
|
551
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
525
552
|
details?: readonly Response.error.Detail[] | undefined;
|
|
526
553
|
message: string;
|
|
527
554
|
};
|
|
528
555
|
requestId: string;
|
|
529
556
|
};
|
|
530
557
|
outputFormat: "json";
|
|
531
|
-
status:
|
|
558
|
+
status: 429;
|
|
532
559
|
input: {
|
|
533
560
|
param: {
|
|
534
561
|
orgId: string;
|
|
@@ -542,14 +569,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
542
569
|
} | {
|
|
543
570
|
output: {
|
|
544
571
|
error: {
|
|
545
|
-
code: "
|
|
572
|
+
code: "upstream_error";
|
|
546
573
|
details?: readonly Response.error.Detail[] | undefined;
|
|
547
574
|
message: string;
|
|
548
575
|
};
|
|
549
576
|
requestId: string;
|
|
550
577
|
};
|
|
551
578
|
outputFormat: "json";
|
|
552
|
-
status:
|
|
579
|
+
status: 502;
|
|
553
580
|
input: {
|
|
554
581
|
param: {
|
|
555
582
|
orgId: string;
|
|
@@ -560,7 +587,11 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
560
587
|
environment?: string | string[];
|
|
561
588
|
} | undefined;
|
|
562
589
|
};
|
|
563
|
-
}
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
} & {
|
|
593
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
|
|
594
|
+
$get: {
|
|
564
595
|
output: {
|
|
565
596
|
data: {
|
|
566
597
|
createdAt: string;
|
|
@@ -580,18 +611,13 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
580
611
|
input: {
|
|
581
612
|
param: {
|
|
582
613
|
orgId: string;
|
|
583
|
-
projectId: string;
|
|
584
614
|
};
|
|
585
615
|
} & {
|
|
586
616
|
query?: {
|
|
587
617
|
environment?: string | string[];
|
|
588
618
|
} | undefined;
|
|
589
619
|
};
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
} & {
|
|
593
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys": {
|
|
594
|
-
$get: {
|
|
620
|
+
} | {
|
|
595
621
|
output: {
|
|
596
622
|
error: {
|
|
597
623
|
code: "api_key_malformed";
|
|
@@ -614,14 +640,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
614
640
|
} | {
|
|
615
641
|
output: {
|
|
616
642
|
error: {
|
|
617
|
-
code: "
|
|
643
|
+
code: "query_invalid";
|
|
618
644
|
details?: readonly Response.error.Detail[] | undefined;
|
|
619
645
|
message: string;
|
|
620
646
|
};
|
|
621
647
|
requestId: string;
|
|
622
648
|
};
|
|
623
649
|
outputFormat: "json";
|
|
624
|
-
status:
|
|
650
|
+
status: 400;
|
|
625
651
|
input: {
|
|
626
652
|
param: {
|
|
627
653
|
orgId: string;
|
|
@@ -634,14 +660,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
634
660
|
} | {
|
|
635
661
|
output: {
|
|
636
662
|
error: {
|
|
637
|
-
code: "
|
|
663
|
+
code: "param_invalid";
|
|
638
664
|
details?: readonly Response.error.Detail[] | undefined;
|
|
639
665
|
message: string;
|
|
640
666
|
};
|
|
641
667
|
requestId: string;
|
|
642
668
|
};
|
|
643
669
|
outputFormat: "json";
|
|
644
|
-
status:
|
|
670
|
+
status: 400;
|
|
645
671
|
input: {
|
|
646
672
|
param: {
|
|
647
673
|
orgId: string;
|
|
@@ -654,14 +680,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
654
680
|
} | {
|
|
655
681
|
output: {
|
|
656
682
|
error: {
|
|
657
|
-
code: "
|
|
683
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
658
684
|
details?: readonly Response.error.Detail[] | undefined;
|
|
659
685
|
message: string;
|
|
660
686
|
};
|
|
661
687
|
requestId: string;
|
|
662
688
|
};
|
|
663
689
|
outputFormat: "json";
|
|
664
|
-
status:
|
|
690
|
+
status: 401;
|
|
665
691
|
input: {
|
|
666
692
|
param: {
|
|
667
693
|
orgId: string;
|
|
@@ -674,14 +700,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
674
700
|
} | {
|
|
675
701
|
output: {
|
|
676
702
|
error: {
|
|
677
|
-
code: "
|
|
703
|
+
code: "api_key_forbidden";
|
|
678
704
|
details?: readonly Response.error.Detail[] | undefined;
|
|
679
705
|
message: string;
|
|
680
706
|
};
|
|
681
707
|
requestId: string;
|
|
682
708
|
};
|
|
683
709
|
outputFormat: "json";
|
|
684
|
-
status:
|
|
710
|
+
status: 403;
|
|
685
711
|
input: {
|
|
686
712
|
param: {
|
|
687
713
|
orgId: string;
|
|
@@ -694,14 +720,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
694
720
|
} | {
|
|
695
721
|
output: {
|
|
696
722
|
error: {
|
|
697
|
-
code: "
|
|
723
|
+
code: "api_keys_not_enabled";
|
|
698
724
|
details?: readonly Response.error.Detail[] | undefined;
|
|
699
725
|
message: string;
|
|
700
726
|
};
|
|
701
727
|
requestId: string;
|
|
702
728
|
};
|
|
703
729
|
outputFormat: "json";
|
|
704
|
-
status:
|
|
730
|
+
status: 404;
|
|
705
731
|
input: {
|
|
706
732
|
param: {
|
|
707
733
|
orgId: string;
|
|
@@ -714,14 +740,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
714
740
|
} | {
|
|
715
741
|
output: {
|
|
716
742
|
error: {
|
|
717
|
-
code: "
|
|
743
|
+
code: "organization_not_found";
|
|
718
744
|
details?: readonly Response.error.Detail[] | undefined;
|
|
719
745
|
message: string;
|
|
720
746
|
};
|
|
721
747
|
requestId: string;
|
|
722
748
|
};
|
|
723
749
|
outputFormat: "json";
|
|
724
|
-
status:
|
|
750
|
+
status: 404;
|
|
725
751
|
input: {
|
|
726
752
|
param: {
|
|
727
753
|
orgId: string;
|
|
@@ -734,14 +760,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
734
760
|
} | {
|
|
735
761
|
output: {
|
|
736
762
|
error: {
|
|
737
|
-
code: "
|
|
763
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
738
764
|
details?: readonly Response.error.Detail[] | undefined;
|
|
739
765
|
message: string;
|
|
740
766
|
};
|
|
741
767
|
requestId: string;
|
|
742
768
|
};
|
|
743
769
|
outputFormat: "json";
|
|
744
|
-
status:
|
|
770
|
+
status: 429;
|
|
745
771
|
input: {
|
|
746
772
|
param: {
|
|
747
773
|
orgId: string;
|
|
@@ -754,40 +780,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
754
780
|
} | {
|
|
755
781
|
output: {
|
|
756
782
|
error: {
|
|
757
|
-
code: "
|
|
783
|
+
code: "upstream_error";
|
|
758
784
|
details?: readonly Response.error.Detail[] | undefined;
|
|
759
785
|
message: string;
|
|
760
786
|
};
|
|
761
787
|
requestId: string;
|
|
762
788
|
};
|
|
763
789
|
outputFormat: "json";
|
|
764
|
-
status:
|
|
765
|
-
input: {
|
|
766
|
-
param: {
|
|
767
|
-
orgId: string;
|
|
768
|
-
};
|
|
769
|
-
} & {
|
|
770
|
-
query?: {
|
|
771
|
-
environment?: string | string[];
|
|
772
|
-
} | undefined;
|
|
773
|
-
};
|
|
774
|
-
} | {
|
|
775
|
-
output: {
|
|
776
|
-
data: {
|
|
777
|
-
createdAt: string;
|
|
778
|
-
createdBy?: string | undefined;
|
|
779
|
-
environment: "production" | "sandbox";
|
|
780
|
-
expiresAt?: string | undefined;
|
|
781
|
-
id: string;
|
|
782
|
-
name?: string | undefined;
|
|
783
|
-
orgId: string;
|
|
784
|
-
projectId?: string | undefined;
|
|
785
|
-
scopes: string[];
|
|
786
|
-
tokenLast4: string;
|
|
787
|
-
}[];
|
|
788
|
-
};
|
|
789
|
-
outputFormat: "json";
|
|
790
|
-
status: 200;
|
|
790
|
+
status: 502;
|
|
791
791
|
input: {
|
|
792
792
|
param: {
|
|
793
793
|
orgId: string;
|
|
@@ -803,15 +803,10 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
803
803
|
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
804
804
|
$delete: {
|
|
805
805
|
output: {
|
|
806
|
-
|
|
807
|
-
code: "api_key_malformed";
|
|
808
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
809
|
-
message: string;
|
|
810
|
-
};
|
|
811
|
-
requestId: string;
|
|
806
|
+
id: string;
|
|
812
807
|
};
|
|
813
808
|
outputFormat: "json";
|
|
814
|
-
status:
|
|
809
|
+
status: 200;
|
|
815
810
|
input: {
|
|
816
811
|
param: {
|
|
817
812
|
keyId: string;
|
|
@@ -822,14 +817,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
822
817
|
} | {
|
|
823
818
|
output: {
|
|
824
819
|
error: {
|
|
825
|
-
code: "
|
|
820
|
+
code: "api_key_malformed";
|
|
826
821
|
details?: readonly Response.error.Detail[] | undefined;
|
|
827
822
|
message: string;
|
|
828
823
|
};
|
|
829
824
|
requestId: string;
|
|
830
825
|
};
|
|
831
826
|
outputFormat: "json";
|
|
832
|
-
status:
|
|
827
|
+
status: 400;
|
|
833
828
|
input: {
|
|
834
829
|
param: {
|
|
835
830
|
keyId: string;
|
|
@@ -840,14 +835,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
840
835
|
} | {
|
|
841
836
|
output: {
|
|
842
837
|
error: {
|
|
843
|
-
code: "
|
|
838
|
+
code: "param_invalid";
|
|
844
839
|
details?: readonly Response.error.Detail[] | undefined;
|
|
845
840
|
message: string;
|
|
846
841
|
};
|
|
847
842
|
requestId: string;
|
|
848
843
|
};
|
|
849
844
|
outputFormat: "json";
|
|
850
|
-
status:
|
|
845
|
+
status: 400;
|
|
851
846
|
input: {
|
|
852
847
|
param: {
|
|
853
848
|
keyId: string;
|
|
@@ -858,14 +853,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
858
853
|
} | {
|
|
859
854
|
output: {
|
|
860
855
|
error: {
|
|
861
|
-
code: "
|
|
856
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
862
857
|
details?: readonly Response.error.Detail[] | undefined;
|
|
863
858
|
message: string;
|
|
864
859
|
};
|
|
865
860
|
requestId: string;
|
|
866
861
|
};
|
|
867
862
|
outputFormat: "json";
|
|
868
|
-
status:
|
|
863
|
+
status: 401;
|
|
869
864
|
input: {
|
|
870
865
|
param: {
|
|
871
866
|
keyId: string;
|
|
@@ -876,14 +871,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
876
871
|
} | {
|
|
877
872
|
output: {
|
|
878
873
|
error: {
|
|
879
|
-
code: "
|
|
874
|
+
code: "api_key_forbidden";
|
|
880
875
|
details?: readonly Response.error.Detail[] | undefined;
|
|
881
876
|
message: string;
|
|
882
877
|
};
|
|
883
878
|
requestId: string;
|
|
884
879
|
};
|
|
885
880
|
outputFormat: "json";
|
|
886
|
-
status:
|
|
881
|
+
status: 403;
|
|
887
882
|
input: {
|
|
888
883
|
param: {
|
|
889
884
|
keyId: string;
|
|
@@ -912,14 +907,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
912
907
|
} | {
|
|
913
908
|
output: {
|
|
914
909
|
error: {
|
|
915
|
-
code: "
|
|
910
|
+
code: "api_keys_not_enabled";
|
|
916
911
|
details?: readonly Response.error.Detail[] | undefined;
|
|
917
912
|
message: string;
|
|
918
913
|
};
|
|
919
914
|
requestId: string;
|
|
920
915
|
};
|
|
921
916
|
outputFormat: "json";
|
|
922
|
-
status:
|
|
917
|
+
status: 404;
|
|
923
918
|
input: {
|
|
924
919
|
param: {
|
|
925
920
|
keyId: string;
|
|
@@ -930,7 +925,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
930
925
|
} | {
|
|
931
926
|
output: {
|
|
932
927
|
error: {
|
|
933
|
-
code: "
|
|
928
|
+
code: "api_key_not_found";
|
|
934
929
|
details?: readonly Response.error.Detail[] | undefined;
|
|
935
930
|
message: string;
|
|
936
931
|
};
|
|
@@ -948,14 +943,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
948
943
|
} | {
|
|
949
944
|
output: {
|
|
950
945
|
error: {
|
|
951
|
-
code: "
|
|
946
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
952
947
|
details?: readonly Response.error.Detail[] | undefined;
|
|
953
948
|
message: string;
|
|
954
949
|
};
|
|
955
950
|
requestId: string;
|
|
956
951
|
};
|
|
957
952
|
outputFormat: "json";
|
|
958
|
-
status:
|
|
953
|
+
status: 429;
|
|
959
954
|
input: {
|
|
960
955
|
param: {
|
|
961
956
|
keyId: string;
|
|
@@ -965,10 +960,15 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
965
960
|
};
|
|
966
961
|
} | {
|
|
967
962
|
output: {
|
|
968
|
-
|
|
963
|
+
error: {
|
|
964
|
+
code: "upstream_error";
|
|
965
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
966
|
+
message: string;
|
|
967
|
+
};
|
|
968
|
+
requestId: string;
|
|
969
969
|
};
|
|
970
970
|
outputFormat: "json";
|
|
971
|
-
status:
|
|
971
|
+
status: 502;
|
|
972
972
|
input: {
|
|
973
973
|
param: {
|
|
974
974
|
keyId: string;
|