tapimo 0.12.0 → 0.13.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 +5561 -5026
- package/dist/App.d.ts.map +1 -1
- package/dist/App.js +38 -3
- package/dist/App.js.map +1 -1
- package/dist/Scope.d.ts +2 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +17 -0
- package/dist/Scope.js.map +1 -1
- package/dist/admin/App.d.ts +123 -74
- package/dist/admin/App.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.d.ts +80 -0
- package/dist/admin/apps/api-keys.d.ts.map +1 -1
- package/dist/admin/apps/api-keys.js +54 -0
- package/dist/admin/apps/api-keys.js.map +1 -1
- package/dist/admin/apps/earn-vaults.d.ts +15 -15
- package/dist/admin/apps/earn-vaults.js +1 -1
- package/dist/admin/apps/verified-tokens.d.ts +81 -81
- package/dist/admin/ui.generated.d.ts +1 -1
- package/dist/admin/ui.generated.d.ts.map +1 -1
- package/dist/admin/ui.generated.js +151 -151
- package/dist/admin/ui.generated.js.map +1 -1
- package/dist/apps/Zones.d.ts +16 -16
- package/dist/apps/Zones.js +4 -4
- package/dist/apps/data/App.js +18 -18
- package/dist/apps/data/App.js.map +1 -1
- package/dist/apps/data/ZoneSelection.d.ts +8 -8
- package/dist/apps/data/ZoneSelection.d.ts.map +1 -1
- package/dist/apps/data/ZoneSelection.js +1 -1
- package/dist/apps/data/ZoneSelection.js.map +1 -1
- package/dist/apps/data/routes/activities.d.ts +588 -584
- package/dist/apps/data/routes/activities.d.ts.map +1 -1
- package/dist/apps/data/routes/activities.js +1561 -1239
- package/dist/apps/data/routes/activities.js.map +1 -1
- package/dist/apps/data/routes/balances.d.ts +26 -26
- package/dist/apps/data/routes/balances.d.ts.map +1 -1
- package/dist/apps/data/routes/balances.js +43 -16
- package/dist/apps/data/routes/balances.js.map +1 -1
- package/dist/apps/data/routes/blocks.d.ts +44 -44
- package/dist/apps/data/routes/blocks.d.ts.map +1 -1
- package/dist/apps/data/routes/blocks.js +21 -11
- package/dist/apps/data/routes/blocks.js.map +1 -1
- package/dist/apps/data/routes/coingecko.d.ts +3 -3
- package/dist/apps/data/routes/earn.d.ts +18 -18
- package/dist/apps/data/routes/earn.js +13 -13
- package/dist/apps/data/routes/exchanges.d.ts +145 -145
- package/dist/apps/data/routes/fee-amm.d.ts +2 -2
- package/dist/apps/data/routes/receipts.d.ts +155 -55
- package/dist/apps/data/routes/receipts.d.ts.map +1 -1
- package/dist/apps/data/routes/receipts.js +28 -10
- package/dist/apps/data/routes/receipts.js.map +1 -1
- package/dist/apps/data/routes/tokenlist.d.ts +13 -13
- package/dist/apps/data/routes/tokens.d.ts +98 -98
- package/dist/apps/data/routes/tokens.d.ts.map +1 -1
- package/dist/apps/data/routes/tokens.js +51 -20
- package/dist/apps/data/routes/tokens.js.map +1 -1
- package/dist/apps/data/routes/transactions.d.ts +7 -2
- package/dist/apps/data/routes/transactions.d.ts.map +1 -1
- package/dist/apps/data/routes/transactions.js +37 -17
- package/dist/apps/data/routes/transactions.js.map +1 -1
- package/dist/apps/data/routes/transfers.d.ts +1 -1
- package/dist/apps/data/routes/transfers.d.ts.map +1 -1
- package/dist/apps/data/routes/transfers.js +18 -12
- package/dist/apps/data/routes/transfers.js.map +1 -1
- package/dist/apps/data/routes/valuation.d.ts +1 -1
- package/dist/apps/data/routes/valuation.d.ts.map +1 -1
- package/dist/apps/data/routes/valuation.js +12 -7
- package/dist/apps/data/routes/valuation.js.map +1 -1
- package/dist/apps/data/routes/verified-tokens.d.ts +3 -3
- package/dist/apps/data/routes/webhooks.d.ts +11 -11
- package/dist/apps/data/routes/zones.d.ts +14 -14
- package/dist/apps/data/routes/zones.js +1 -1
- package/dist/apps/funding/App.d.ts +11 -0
- package/dist/apps/funding/App.d.ts.map +1 -1
- package/dist/apps/funding/routes/deposit-addresses.d.ts.map +1 -1
- package/dist/apps/funding/routes/deposit-addresses.js +16 -11
- package/dist/apps/funding/routes/deposit-addresses.js.map +1 -1
- package/dist/apps/funding/routes/transfers.d.ts +60 -48
- package/dist/apps/funding/routes/transfers.d.ts.map +1 -1
- package/dist/apps/funding/routes/transfers.js +27 -19
- package/dist/apps/funding/routes/transfers.js.map +1 -1
- package/dist/apps/management/App.d.ts +4487 -3963
- package/dist/apps/management/App.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.d.ts +710 -159
- package/dist/apps/management/routes/api-keys.d.ts.map +1 -1
- package/dist/apps/management/routes/api-keys.js +236 -4
- package/dist/apps/management/routes/api-keys.js.map +1 -1
- package/dist/apps/management/routes/faucet.d.ts +6 -6
- package/dist/apps/management/routes/invite-links.d.ts +42 -42
- package/dist/apps/management/routes/members.d.ts +30 -30
- package/dist/apps/management/routes/projects.d.ts +40 -40
- package/dist/apps/management/routes/usage.d.ts +24 -24
- package/dist/apps/management/routes/verified-token-requests.d.ts +1 -1
- package/dist/apps/management/routes/webhooks.d.ts +55 -55
- package/dist/db/Db.d.ts.map +1 -1
- package/dist/db/Db.js +12 -1
- package/dist/db/Db.js.map +1 -1
- package/dist/db/Schema.d.ts +3 -2
- package/dist/db/Schema.d.ts.map +1 -1
- package/dist/db/Schema.js +5 -2
- package/dist/db/Schema.js.map +1 -1
- package/dist/db/tables/fundingCatalog.d.ts +4 -2
- package/dist/db/tables/fundingCatalog.d.ts.map +1 -1
- package/dist/db/tables/fundingCatalog.js +5 -1
- package/dist/db/tables/fundingCatalog.js.map +1 -1
- package/dist/handlers/internal/utils.d.ts.map +1 -1
- package/dist/handlers/internal/utils.js +9 -0
- package/dist/handlers/internal/utils.js.map +1 -1
- package/dist/internal/Auth.d.ts +3 -1
- package/dist/internal/Auth.d.ts.map +1 -1
- package/dist/internal/Auth.js +6 -3
- package/dist/internal/Auth.js.map +1 -1
- package/dist/internal/EarnVaults.d.ts +3 -3
- package/dist/internal/EarnVaults.js +3 -3
- package/dist/internal/Fetch.d.ts +23 -0
- package/dist/internal/Fetch.d.ts.map +1 -0
- package/dist/internal/Fetch.js +26 -0
- package/dist/internal/Fetch.js.map +1 -0
- package/dist/internal/Log.d.ts +3 -1
- package/dist/internal/Log.d.ts.map +1 -1
- package/dist/internal/Log.js +16 -3
- package/dist/internal/Log.js.map +1 -1
- package/dist/internal/OpenApi.d.ts +5 -3
- package/dist/internal/OpenApi.d.ts.map +1 -1
- package/dist/internal/OpenApi.js +13 -3
- package/dist/internal/OpenApi.js.map +1 -1
- package/dist/internal/Response.d.ts +1 -1
- package/dist/internal/Response.d.ts.map +1 -1
- package/dist/internal/Schema.d.ts +6 -3
- package/dist/internal/Schema.d.ts.map +1 -1
- package/dist/internal/Schema.js +8 -2
- package/dist/internal/Schema.js.map +1 -1
- package/dist/internal/Store.d.ts +16 -3
- package/dist/internal/Store.d.ts.map +1 -1
- package/dist/internal/Store.js +82 -16
- package/dist/internal/Store.js.map +1 -1
- package/dist/internal/Tidx.d.ts.map +1 -1
- package/dist/internal/Tidx.js +7 -2
- package/dist/internal/Tidx.js.map +1 -1
- package/dist/internal/Timeout.d.ts +36 -0
- package/dist/internal/Timeout.d.ts.map +1 -0
- package/dist/internal/Timeout.js +37 -0
- package/dist/internal/Timeout.js.map +1 -0
- package/dist/internal/Timing.d.ts +9 -0
- package/dist/internal/Timing.d.ts.map +1 -1
- package/dist/internal/Timing.js +7 -0
- package/dist/internal/Timing.js.map +1 -1
- package/dist/internal/WebhookDestination.d.ts.map +1 -1
- package/dist/internal/WebhookDestination.js +3 -0
- package/dist/internal/WebhookDestination.js.map +1 -1
- package/dist/internal/funding/Action.d.ts +9 -0
- package/dist/internal/funding/Action.d.ts.map +1 -1
- package/dist/internal/funding/Action.js +16 -8
- package/dist/internal/funding/Action.js.map +1 -1
- package/dist/internal/funding/Catalog.d.ts +9 -2
- package/dist/internal/funding/Catalog.d.ts.map +1 -1
- package/dist/internal/funding/Catalog.js +19 -8
- package/dist/internal/funding/Catalog.js.map +1 -1
- package/dist/internal/funding/Provider.d.ts +68 -13
- package/dist/internal/funding/Provider.d.ts.map +1 -1
- package/dist/internal/funding/Provider.js +29 -8
- package/dist/internal/funding/Provider.js.map +1 -1
- package/dist/internal/funding/Transfer.d.ts +13 -12
- package/dist/internal/funding/Transfer.d.ts.map +1 -1
- package/dist/internal/funding/Transfer.js +23 -21
- package/dist/internal/funding/Transfer.js.map +1 -1
- package/dist/internal/funding/providers/stargate.d.ts +28 -9
- package/dist/internal/funding/providers/stargate.d.ts.map +1 -1
- package/dist/internal/funding/providers/stargate.js +251 -117
- package/dist/internal/funding/providers/stargate.js.map +1 -1
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -0
- package/dist/internal/index.js.map +1 -1
- package/package.json +2 -2
- package/src/App.test.ts +100 -0
- package/src/App.ts +42 -3
- package/src/Client.test-d.ts +46 -0
- package/src/Scope.test.ts +20 -0
- package/src/Scope.ts +16 -0
- package/src/admin/apps/api-keys.test.ts +75 -0
- package/src/admin/apps/api-keys.ts +64 -0
- package/src/admin/apps/earn-vaults.test.ts +1 -1
- package/src/admin/apps/earn-vaults.ts +1 -1
- package/src/admin/ui/src/lib/api-keys.ts +19 -0
- package/src/admin/ui/src/routes/api-keys.tsx +89 -2
- package/src/admin/ui.generated.ts +189 -151
- package/src/apps/Zones.test.ts +4 -4
- package/src/apps/Zones.ts +4 -4
- package/src/apps/composition.test.ts +1 -1
- package/src/apps/data/App.test.ts +41 -0
- package/src/apps/data/App.ts +18 -18
- package/src/apps/data/ZoneSelection.test.ts +2 -2
- package/src/apps/data/ZoneSelection.ts +8 -8
- package/src/apps/data/routes/activities.test.ts +1526 -12
- package/src/apps/data/routes/activities.ts +1774 -1356
- package/src/apps/data/routes/balances.ts +133 -97
- package/src/apps/data/routes/blocks.test.ts +533 -0
- package/src/apps/data/routes/blocks.ts +35 -16
- package/src/apps/data/routes/earn.test.ts +4 -2
- package/src/apps/data/routes/earn.ts +13 -13
- package/src/apps/data/routes/earn.zone-access.test.ts +6 -6
- package/src/apps/data/routes/receipts.ts +47 -16
- package/src/apps/data/routes/tokens.test.ts +578 -0
- package/src/apps/data/routes/tokens.ts +283 -225
- package/src/apps/data/routes/transactions.ts +68 -29
- package/src/apps/data/routes/transfers.test.ts +421 -0
- package/src/apps/data/routes/transfers.ts +45 -27
- package/src/apps/data/routes/valuation.ts +94 -78
- package/src/apps/data/routes/zones.test.ts +2 -2
- package/src/apps/data/routes/zones.ts +1 -1
- package/src/apps/funding/routes/deposit-addresses.test.ts +25 -3
- package/src/apps/funding/routes/deposit-addresses.ts +17 -12
- package/src/apps/funding/routes/quotes.test.ts +5 -9
- package/src/apps/funding/routes/transfers.test.ts +395 -8
- package/src/apps/funding/routes/transfers.ts +76 -59
- package/src/apps/management/routes/api-keys.test.ts +220 -0
- package/src/apps/management/routes/api-keys.ts +280 -3
- package/src/db/Db.ts +13 -1
- package/src/db/Schema.ts +5 -2
- package/src/db/tables/earnVaults.test.ts +9 -9
- package/src/db/tables/fundingCatalog.test.ts +16 -2
- package/src/db/tables/fundingCatalog.ts +9 -3
- package/src/handlers/internal/utils.test.ts +53 -0
- package/src/handlers/internal/utils.ts +15 -0
- package/src/internal/Auth.ts +12 -4
- package/src/internal/EarnVaults.capabilities.test.ts +2 -2
- package/src/internal/EarnVaults.test.ts +1 -1
- package/src/internal/EarnVaults.ts +3 -3
- package/src/internal/Fetch.test.ts +46 -0
- package/src/internal/Fetch.ts +56 -0
- package/src/internal/Log.test.ts +21 -0
- package/src/internal/Log.ts +20 -5
- package/src/internal/OpenApi.ts +14 -4
- package/src/internal/Response.ts +1 -1
- package/src/internal/Schema.test.ts +2 -0
- package/src/internal/Schema.ts +12 -2
- package/src/internal/Store.test.ts +178 -0
- package/src/internal/Store.ts +104 -18
- package/src/internal/Tidx.test.ts +2 -1
- package/src/internal/Tidx.ts +7 -2
- package/src/internal/Timeout.test.ts +35 -0
- package/src/internal/Timeout.ts +73 -0
- package/src/internal/Timing.ts +16 -0
- package/src/internal/WebhookDestination.ts +3 -0
- package/src/internal/funding/Action.test.ts +41 -1
- package/src/internal/funding/Action.ts +69 -41
- package/src/internal/funding/Catalog.test.ts +34 -0
- package/src/internal/funding/Catalog.ts +28 -11
- package/src/internal/funding/Provider.test.ts +73 -0
- package/src/internal/funding/Provider.ts +82 -28
- package/src/internal/funding/Transfer.ts +133 -110
- package/src/internal/funding/providers/index.test.ts +4 -167
- package/src/internal/funding/providers/relay.test.ts +2 -2
- package/src/internal/funding/providers/stargate.test.ts +163 -0
- package/src/internal/funding/providers/stargate.ts +359 -134
- package/src/internal/index.test.ts +1 -0
- package/src/internal/index.ts +1 -0
|
@@ -36,6 +36,11 @@ export declare namespace schema {
|
|
|
36
36
|
orgId: z.ZodMiniString<string>;
|
|
37
37
|
projectId: z.ZodMiniString<string>;
|
|
38
38
|
}, z.core.$strip>;
|
|
39
|
+
/** Path parameters addressing one organization-level API key. */
|
|
40
|
+
const OrgKeyParams: z.ZodMiniObject<{
|
|
41
|
+
keyId: z.ZodMiniString<string>;
|
|
42
|
+
orgId: z.ZodMiniString<string>;
|
|
43
|
+
}, z.core.$strip>;
|
|
39
44
|
/** Request body minting a key. The wildcard scope is not issuable here. */
|
|
40
45
|
const CreateApiKeyRequest: z.ZodMiniObject<{
|
|
41
46
|
allowedIps: z.ZodMiniOptional<z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>>;
|
|
@@ -155,6 +160,28 @@ export declare namespace schema {
|
|
|
155
160
|
id: z.ZodMiniString<string>;
|
|
156
161
|
}, z.core.$strip>;
|
|
157
162
|
}
|
|
163
|
+
/** Schemas for the rotateApiKey operation. */
|
|
164
|
+
namespace rotateApiKey {
|
|
165
|
+
/** The replacement key plus its one-time token. */
|
|
166
|
+
const Response: z.ZodMiniObject<{
|
|
167
|
+
allowedIps: z.ZodMiniReadonly<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
168
|
+
createdAt: z.ZodMiniISODateTime;
|
|
169
|
+
createdBy: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
170
|
+
environment: z.ZodMiniEnum<{
|
|
171
|
+
production: "production";
|
|
172
|
+
sandbox: "sandbox";
|
|
173
|
+
}>;
|
|
174
|
+
expiresAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
175
|
+
id: z.ZodMiniString<string>;
|
|
176
|
+
lastUsedAt: z.ZodMiniOptional<z.ZodMiniISODateTime>;
|
|
177
|
+
name: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
178
|
+
orgId: z.ZodMiniString<string>;
|
|
179
|
+
projectId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
180
|
+
scopes: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
181
|
+
tokenLast4: z.ZodMiniString<string>;
|
|
182
|
+
token: z.ZodMiniString<string>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
}
|
|
158
185
|
/** Schemas for the updateApiKey operation. */
|
|
159
186
|
namespace updateApiKey {
|
|
160
187
|
/** Request body replacing or clearing a key's IP allowlist. */
|
|
@@ -171,14 +198,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
171
198
|
$post: {
|
|
172
199
|
output: {
|
|
173
200
|
error: {
|
|
174
|
-
code: "
|
|
201
|
+
code: "upstream_error";
|
|
175
202
|
details?: readonly Response.error.Detail[] | undefined;
|
|
176
203
|
message: string;
|
|
177
204
|
};
|
|
178
205
|
requestId: string;
|
|
179
206
|
};
|
|
180
207
|
outputFormat: "json";
|
|
181
|
-
status:
|
|
208
|
+
status: 502;
|
|
182
209
|
input: {
|
|
183
210
|
param: {
|
|
184
211
|
orgId: string;
|
|
@@ -195,14 +222,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
195
222
|
} | {
|
|
196
223
|
output: {
|
|
197
224
|
error: {
|
|
198
|
-
code: "
|
|
225
|
+
code: "api_key_malformed";
|
|
199
226
|
details?: readonly Response.error.Detail[] | undefined;
|
|
200
227
|
message: string;
|
|
201
228
|
};
|
|
202
229
|
requestId: string;
|
|
203
230
|
};
|
|
204
231
|
outputFormat: "json";
|
|
205
|
-
status:
|
|
232
|
+
status: 400;
|
|
206
233
|
input: {
|
|
207
234
|
param: {
|
|
208
235
|
orgId: string;
|
|
@@ -219,14 +246,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
219
246
|
} | {
|
|
220
247
|
output: {
|
|
221
248
|
error: {
|
|
222
|
-
code: "
|
|
249
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
223
250
|
details?: readonly Response.error.Detail[] | undefined;
|
|
224
251
|
message: string;
|
|
225
252
|
};
|
|
226
253
|
requestId: string;
|
|
227
254
|
};
|
|
228
255
|
outputFormat: "json";
|
|
229
|
-
status:
|
|
256
|
+
status: 401;
|
|
230
257
|
input: {
|
|
231
258
|
param: {
|
|
232
259
|
orgId: string;
|
|
@@ -422,14 +449,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
422
449
|
$get: {
|
|
423
450
|
output: {
|
|
424
451
|
error: {
|
|
425
|
-
code: "
|
|
452
|
+
code: "upstream_error";
|
|
426
453
|
details?: readonly Response.error.Detail[] | undefined;
|
|
427
454
|
message: string;
|
|
428
455
|
};
|
|
429
456
|
requestId: string;
|
|
430
457
|
};
|
|
431
458
|
outputFormat: "json";
|
|
432
|
-
status:
|
|
459
|
+
status: 502;
|
|
433
460
|
input: {
|
|
434
461
|
param: {
|
|
435
462
|
orgId: string;
|
|
@@ -443,14 +470,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
443
470
|
} | {
|
|
444
471
|
output: {
|
|
445
472
|
error: {
|
|
446
|
-
code: "
|
|
473
|
+
code: "query_invalid";
|
|
447
474
|
details?: readonly Response.error.Detail[] | undefined;
|
|
448
475
|
message: string;
|
|
449
476
|
};
|
|
450
477
|
requestId: string;
|
|
451
478
|
};
|
|
452
479
|
outputFormat: "json";
|
|
453
|
-
status:
|
|
480
|
+
status: 400;
|
|
454
481
|
input: {
|
|
455
482
|
param: {
|
|
456
483
|
orgId: string;
|
|
@@ -464,14 +491,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
464
491
|
} | {
|
|
465
492
|
output: {
|
|
466
493
|
error: {
|
|
467
|
-
code: "
|
|
494
|
+
code: "api_key_malformed";
|
|
468
495
|
details?: readonly Response.error.Detail[] | undefined;
|
|
469
496
|
message: string;
|
|
470
497
|
};
|
|
471
498
|
requestId: string;
|
|
472
499
|
};
|
|
473
500
|
outputFormat: "json";
|
|
474
|
-
status:
|
|
501
|
+
status: 400;
|
|
475
502
|
input: {
|
|
476
503
|
param: {
|
|
477
504
|
orgId: string;
|
|
@@ -485,14 +512,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
485
512
|
} | {
|
|
486
513
|
output: {
|
|
487
514
|
error: {
|
|
488
|
-
code: "
|
|
515
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
489
516
|
details?: readonly Response.error.Detail[] | undefined;
|
|
490
517
|
message: string;
|
|
491
518
|
};
|
|
492
519
|
requestId: string;
|
|
493
520
|
};
|
|
494
521
|
outputFormat: "json";
|
|
495
|
-
status:
|
|
522
|
+
status: 401;
|
|
496
523
|
input: {
|
|
497
524
|
param: {
|
|
498
525
|
orgId: string;
|
|
@@ -506,14 +533,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
506
533
|
} | {
|
|
507
534
|
output: {
|
|
508
535
|
error: {
|
|
509
|
-
code: "
|
|
536
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
510
537
|
details?: readonly Response.error.Detail[] | undefined;
|
|
511
538
|
message: string;
|
|
512
539
|
};
|
|
513
540
|
requestId: string;
|
|
514
541
|
};
|
|
515
542
|
outputFormat: "json";
|
|
516
|
-
status:
|
|
543
|
+
status: 403;
|
|
517
544
|
input: {
|
|
518
545
|
param: {
|
|
519
546
|
orgId: string;
|
|
@@ -527,14 +554,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
527
554
|
} | {
|
|
528
555
|
output: {
|
|
529
556
|
error: {
|
|
530
|
-
code: "
|
|
557
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
531
558
|
details?: readonly Response.error.Detail[] | undefined;
|
|
532
559
|
message: string;
|
|
533
560
|
};
|
|
534
561
|
requestId: string;
|
|
535
562
|
};
|
|
536
563
|
outputFormat: "json";
|
|
537
|
-
status:
|
|
564
|
+
status: 429;
|
|
538
565
|
input: {
|
|
539
566
|
param: {
|
|
540
567
|
orgId: string;
|
|
@@ -644,14 +671,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
644
671
|
$get: {
|
|
645
672
|
output: {
|
|
646
673
|
error: {
|
|
647
|
-
code: "
|
|
674
|
+
code: "upstream_error";
|
|
648
675
|
details?: readonly Response.error.Detail[] | undefined;
|
|
649
676
|
message: string;
|
|
650
677
|
};
|
|
651
678
|
requestId: string;
|
|
652
679
|
};
|
|
653
680
|
outputFormat: "json";
|
|
654
|
-
status:
|
|
681
|
+
status: 502;
|
|
655
682
|
input: {
|
|
656
683
|
param: {
|
|
657
684
|
orgId: string;
|
|
@@ -664,14 +691,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
664
691
|
} | {
|
|
665
692
|
output: {
|
|
666
693
|
error: {
|
|
667
|
-
code: "
|
|
694
|
+
code: "query_invalid";
|
|
668
695
|
details?: readonly Response.error.Detail[] | undefined;
|
|
669
696
|
message: string;
|
|
670
697
|
};
|
|
671
698
|
requestId: string;
|
|
672
699
|
};
|
|
673
700
|
outputFormat: "json";
|
|
674
|
-
status:
|
|
701
|
+
status: 400;
|
|
675
702
|
input: {
|
|
676
703
|
param: {
|
|
677
704
|
orgId: string;
|
|
@@ -684,14 +711,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
684
711
|
} | {
|
|
685
712
|
output: {
|
|
686
713
|
error: {
|
|
687
|
-
code: "
|
|
714
|
+
code: "api_key_malformed";
|
|
688
715
|
details?: readonly Response.error.Detail[] | undefined;
|
|
689
716
|
message: string;
|
|
690
717
|
};
|
|
691
718
|
requestId: string;
|
|
692
719
|
};
|
|
693
720
|
outputFormat: "json";
|
|
694
|
-
status:
|
|
721
|
+
status: 400;
|
|
695
722
|
input: {
|
|
696
723
|
param: {
|
|
697
724
|
orgId: string;
|
|
@@ -704,14 +731,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
704
731
|
} | {
|
|
705
732
|
output: {
|
|
706
733
|
error: {
|
|
707
|
-
code: "
|
|
734
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
708
735
|
details?: readonly Response.error.Detail[] | undefined;
|
|
709
736
|
message: string;
|
|
710
737
|
};
|
|
711
738
|
requestId: string;
|
|
712
739
|
};
|
|
713
740
|
outputFormat: "json";
|
|
714
|
-
status:
|
|
741
|
+
status: 401;
|
|
715
742
|
input: {
|
|
716
743
|
param: {
|
|
717
744
|
orgId: string;
|
|
@@ -724,14 +751,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
724
751
|
} | {
|
|
725
752
|
output: {
|
|
726
753
|
error: {
|
|
727
|
-
code: "
|
|
754
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
728
755
|
details?: readonly Response.error.Detail[] | undefined;
|
|
729
756
|
message: string;
|
|
730
757
|
};
|
|
731
758
|
requestId: string;
|
|
732
759
|
};
|
|
733
760
|
outputFormat: "json";
|
|
734
|
-
status:
|
|
761
|
+
status: 403;
|
|
735
762
|
input: {
|
|
736
763
|
param: {
|
|
737
764
|
orgId: string;
|
|
@@ -744,14 +771,14 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
744
771
|
} | {
|
|
745
772
|
output: {
|
|
746
773
|
error: {
|
|
747
|
-
code: "
|
|
774
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
748
775
|
details?: readonly Response.error.Detail[] | undefined;
|
|
749
776
|
message: string;
|
|
750
777
|
};
|
|
751
778
|
requestId: string;
|
|
752
779
|
};
|
|
753
780
|
outputFormat: "json";
|
|
754
|
-
status:
|
|
781
|
+
status: 429;
|
|
755
782
|
input: {
|
|
756
783
|
param: {
|
|
757
784
|
orgId: string;
|
|
@@ -852,115 +879,56 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
852
879
|
};
|
|
853
880
|
};
|
|
854
881
|
} & {
|
|
855
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/
|
|
856
|
-
$
|
|
857
|
-
output: {
|
|
858
|
-
error: {
|
|
859
|
-
code: "api_key_malformed";
|
|
860
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
861
|
-
message: string;
|
|
862
|
-
};
|
|
863
|
-
requestId: string;
|
|
864
|
-
};
|
|
865
|
-
outputFormat: "json";
|
|
866
|
-
status: 400;
|
|
867
|
-
input: {
|
|
868
|
-
param: {
|
|
869
|
-
keyId: string;
|
|
870
|
-
orgId: string;
|
|
871
|
-
projectId: string;
|
|
872
|
-
};
|
|
873
|
-
} & {
|
|
874
|
-
json: {
|
|
875
|
-
allowedIps: readonly string[];
|
|
876
|
-
};
|
|
877
|
-
};
|
|
878
|
-
} | {
|
|
879
|
-
output: {
|
|
880
|
-
error: {
|
|
881
|
-
code: "api_key_invalid" | "api_key_missing";
|
|
882
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
883
|
-
message: string;
|
|
884
|
-
};
|
|
885
|
-
requestId: string;
|
|
886
|
-
};
|
|
887
|
-
outputFormat: "json";
|
|
888
|
-
status: 401;
|
|
889
|
-
input: {
|
|
890
|
-
param: {
|
|
891
|
-
keyId: string;
|
|
892
|
-
orgId: string;
|
|
893
|
-
projectId: string;
|
|
894
|
-
};
|
|
895
|
-
} & {
|
|
896
|
-
json: {
|
|
897
|
-
allowedIps: readonly string[];
|
|
898
|
-
};
|
|
899
|
-
};
|
|
900
|
-
} | {
|
|
882
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
|
|
883
|
+
$post: {
|
|
901
884
|
output: {
|
|
902
885
|
error: {
|
|
903
|
-
code: "
|
|
886
|
+
code: "upstream_error";
|
|
904
887
|
details?: readonly Response.error.Detail[] | undefined;
|
|
905
888
|
message: string;
|
|
906
889
|
};
|
|
907
890
|
requestId: string;
|
|
908
891
|
};
|
|
909
892
|
outputFormat: "json";
|
|
910
|
-
status:
|
|
893
|
+
status: 502;
|
|
911
894
|
input: {
|
|
912
895
|
param: {
|
|
913
896
|
keyId: string;
|
|
914
897
|
orgId: string;
|
|
915
|
-
projectId: string;
|
|
916
|
-
};
|
|
917
|
-
} & {
|
|
918
|
-
json: {
|
|
919
|
-
allowedIps: readonly string[];
|
|
920
898
|
};
|
|
921
899
|
};
|
|
922
900
|
} | {
|
|
923
901
|
output: {
|
|
924
902
|
error: {
|
|
925
|
-
code: "
|
|
903
|
+
code: "api_key_malformed";
|
|
926
904
|
details?: readonly Response.error.Detail[] | undefined;
|
|
927
905
|
message: string;
|
|
928
906
|
};
|
|
929
907
|
requestId: string;
|
|
930
908
|
};
|
|
931
909
|
outputFormat: "json";
|
|
932
|
-
status:
|
|
910
|
+
status: 400;
|
|
933
911
|
input: {
|
|
934
912
|
param: {
|
|
935
913
|
keyId: string;
|
|
936
914
|
orgId: string;
|
|
937
|
-
projectId: string;
|
|
938
|
-
};
|
|
939
|
-
} & {
|
|
940
|
-
json: {
|
|
941
|
-
allowedIps: readonly string[];
|
|
942
915
|
};
|
|
943
916
|
};
|
|
944
917
|
} | {
|
|
945
918
|
output: {
|
|
946
919
|
error: {
|
|
947
|
-
code: "
|
|
920
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
948
921
|
details?: readonly Response.error.Detail[] | undefined;
|
|
949
922
|
message: string;
|
|
950
923
|
};
|
|
951
924
|
requestId: string;
|
|
952
925
|
};
|
|
953
926
|
outputFormat: "json";
|
|
954
|
-
status:
|
|
927
|
+
status: 401;
|
|
955
928
|
input: {
|
|
956
929
|
param: {
|
|
957
930
|
keyId: string;
|
|
958
931
|
orgId: string;
|
|
959
|
-
projectId: string;
|
|
960
|
-
};
|
|
961
|
-
} & {
|
|
962
|
-
json: {
|
|
963
|
-
allowedIps: readonly string[];
|
|
964
932
|
};
|
|
965
933
|
};
|
|
966
934
|
} | {
|
|
@@ -978,33 +946,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
978
946
|
param: {
|
|
979
947
|
keyId: string;
|
|
980
948
|
orgId: string;
|
|
981
|
-
projectId: string;
|
|
982
|
-
};
|
|
983
|
-
} & {
|
|
984
|
-
json: {
|
|
985
|
-
allowedIps: readonly string[];
|
|
986
|
-
};
|
|
987
|
-
};
|
|
988
|
-
} | {
|
|
989
|
-
output: {
|
|
990
|
-
error: {
|
|
991
|
-
code: "body_invalid";
|
|
992
|
-
details?: readonly Response.error.Detail[] | undefined;
|
|
993
|
-
message: string;
|
|
994
|
-
};
|
|
995
|
-
requestId: string;
|
|
996
|
-
};
|
|
997
|
-
outputFormat: "json";
|
|
998
|
-
status: 400;
|
|
999
|
-
input: {
|
|
1000
|
-
param: {
|
|
1001
|
-
keyId: string;
|
|
1002
|
-
orgId: string;
|
|
1003
|
-
projectId: string;
|
|
1004
|
-
};
|
|
1005
|
-
} & {
|
|
1006
|
-
json: {
|
|
1007
|
-
allowedIps: readonly string[];
|
|
1008
949
|
};
|
|
1009
950
|
};
|
|
1010
951
|
} | {
|
|
@@ -1022,17 +963,12 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1022
963
|
param: {
|
|
1023
964
|
keyId: string;
|
|
1024
965
|
orgId: string;
|
|
1025
|
-
projectId: string;
|
|
1026
|
-
};
|
|
1027
|
-
} & {
|
|
1028
|
-
json: {
|
|
1029
|
-
allowedIps: readonly string[];
|
|
1030
966
|
};
|
|
1031
967
|
};
|
|
1032
968
|
} | {
|
|
1033
969
|
output: {
|
|
1034
970
|
error: {
|
|
1035
|
-
code: "
|
|
971
|
+
code: "api_keys_not_enabled";
|
|
1036
972
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1037
973
|
message: string;
|
|
1038
974
|
};
|
|
@@ -1044,33 +980,23 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1044
980
|
param: {
|
|
1045
981
|
keyId: string;
|
|
1046
982
|
orgId: string;
|
|
1047
|
-
projectId: string;
|
|
1048
|
-
};
|
|
1049
|
-
} & {
|
|
1050
|
-
json: {
|
|
1051
|
-
allowedIps: readonly string[];
|
|
1052
983
|
};
|
|
1053
984
|
};
|
|
1054
985
|
} | {
|
|
1055
986
|
output: {
|
|
1056
987
|
error: {
|
|
1057
|
-
code: "
|
|
988
|
+
code: "scope_not_issuable";
|
|
1058
989
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1059
990
|
message: string;
|
|
1060
991
|
};
|
|
1061
992
|
requestId: string;
|
|
1062
993
|
};
|
|
1063
994
|
outputFormat: "json";
|
|
1064
|
-
status:
|
|
995
|
+
status: 403;
|
|
1065
996
|
input: {
|
|
1066
997
|
param: {
|
|
1067
998
|
keyId: string;
|
|
1068
999
|
orgId: string;
|
|
1069
|
-
projectId: string;
|
|
1070
|
-
};
|
|
1071
|
-
} & {
|
|
1072
|
-
json: {
|
|
1073
|
-
allowedIps: readonly string[];
|
|
1074
1000
|
};
|
|
1075
1001
|
};
|
|
1076
1002
|
} | {
|
|
@@ -1088,11 +1014,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1088
1014
|
param: {
|
|
1089
1015
|
keyId: string;
|
|
1090
1016
|
orgId: string;
|
|
1091
|
-
projectId: string;
|
|
1092
|
-
};
|
|
1093
|
-
} & {
|
|
1094
|
-
json: {
|
|
1095
|
-
allowedIps: readonly string[];
|
|
1096
1017
|
};
|
|
1097
1018
|
};
|
|
1098
1019
|
} | {
|
|
@@ -1109,6 +1030,7 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1109
1030
|
projectId?: string | undefined;
|
|
1110
1031
|
scopes: string[];
|
|
1111
1032
|
tokenLast4: string;
|
|
1033
|
+
token: string;
|
|
1112
1034
|
};
|
|
1113
1035
|
outputFormat: "json";
|
|
1114
1036
|
status: 200;
|
|
@@ -1116,18 +1038,30 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1116
1038
|
param: {
|
|
1117
1039
|
keyId: string;
|
|
1118
1040
|
orgId: string;
|
|
1119
|
-
projectId: string;
|
|
1120
|
-
};
|
|
1121
|
-
} & {
|
|
1122
|
-
json: {
|
|
1123
|
-
allowedIps: readonly string[];
|
|
1124
1041
|
};
|
|
1125
1042
|
};
|
|
1126
1043
|
};
|
|
1127
1044
|
};
|
|
1128
1045
|
} & {
|
|
1129
|
-
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/
|
|
1046
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
1130
1047
|
$delete: {
|
|
1048
|
+
output: {
|
|
1049
|
+
error: {
|
|
1050
|
+
code: "upstream_error";
|
|
1051
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1052
|
+
message: string;
|
|
1053
|
+
};
|
|
1054
|
+
requestId: string;
|
|
1055
|
+
};
|
|
1056
|
+
outputFormat: "json";
|
|
1057
|
+
status: 502;
|
|
1058
|
+
input: {
|
|
1059
|
+
param: {
|
|
1060
|
+
keyId: string;
|
|
1061
|
+
orgId: string;
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
} | {
|
|
1131
1065
|
output: {
|
|
1132
1066
|
error: {
|
|
1133
1067
|
code: "api_key_malformed";
|
|
@@ -1142,7 +1076,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1142
1076
|
param: {
|
|
1143
1077
|
keyId: string;
|
|
1144
1078
|
orgId: string;
|
|
1145
|
-
projectId: string;
|
|
1146
1079
|
};
|
|
1147
1080
|
};
|
|
1148
1081
|
} | {
|
|
@@ -1160,7 +1093,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1160
1093
|
param: {
|
|
1161
1094
|
keyId: string;
|
|
1162
1095
|
orgId: string;
|
|
1163
|
-
projectId: string;
|
|
1164
1096
|
};
|
|
1165
1097
|
};
|
|
1166
1098
|
} | {
|
|
@@ -1178,7 +1110,6 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1178
1110
|
param: {
|
|
1179
1111
|
keyId: string;
|
|
1180
1112
|
orgId: string;
|
|
1181
|
-
projectId: string;
|
|
1182
1113
|
};
|
|
1183
1114
|
};
|
|
1184
1115
|
} | {
|
|
@@ -1196,20 +1127,640 @@ export declare function apiKeys(options?: apiKeys.Options): import("hono/hono-ba
|
|
|
1196
1127
|
param: {
|
|
1197
1128
|
keyId: string;
|
|
1198
1129
|
orgId: string;
|
|
1199
|
-
projectId: string;
|
|
1200
1130
|
};
|
|
1201
1131
|
};
|
|
1202
1132
|
} | {
|
|
1203
1133
|
output: {
|
|
1204
1134
|
error: {
|
|
1205
|
-
code: "
|
|
1135
|
+
code: "param_invalid";
|
|
1206
1136
|
details?: readonly Response.error.Detail[] | undefined;
|
|
1207
1137
|
message: string;
|
|
1208
1138
|
};
|
|
1209
1139
|
requestId: string;
|
|
1210
1140
|
};
|
|
1211
1141
|
outputFormat: "json";
|
|
1212
|
-
status:
|
|
1142
|
+
status: 400;
|
|
1143
|
+
input: {
|
|
1144
|
+
param: {
|
|
1145
|
+
keyId: string;
|
|
1146
|
+
orgId: string;
|
|
1147
|
+
};
|
|
1148
|
+
};
|
|
1149
|
+
} | {
|
|
1150
|
+
output: {
|
|
1151
|
+
error: {
|
|
1152
|
+
code: "forbidden";
|
|
1153
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1154
|
+
message: string;
|
|
1155
|
+
};
|
|
1156
|
+
requestId: string;
|
|
1157
|
+
};
|
|
1158
|
+
outputFormat: "json";
|
|
1159
|
+
status: 403;
|
|
1160
|
+
input: {
|
|
1161
|
+
param: {
|
|
1162
|
+
keyId: string;
|
|
1163
|
+
orgId: string;
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
} | {
|
|
1167
|
+
output: {
|
|
1168
|
+
error: {
|
|
1169
|
+
code: "api_keys_not_enabled";
|
|
1170
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1171
|
+
message: string;
|
|
1172
|
+
};
|
|
1173
|
+
requestId: string;
|
|
1174
|
+
};
|
|
1175
|
+
outputFormat: "json";
|
|
1176
|
+
status: 404;
|
|
1177
|
+
input: {
|
|
1178
|
+
param: {
|
|
1179
|
+
keyId: string;
|
|
1180
|
+
orgId: string;
|
|
1181
|
+
};
|
|
1182
|
+
};
|
|
1183
|
+
} | {
|
|
1184
|
+
output: {
|
|
1185
|
+
error: {
|
|
1186
|
+
code: "api_key_not_found";
|
|
1187
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1188
|
+
message: string;
|
|
1189
|
+
};
|
|
1190
|
+
requestId: string;
|
|
1191
|
+
};
|
|
1192
|
+
outputFormat: "json";
|
|
1193
|
+
status: 404;
|
|
1194
|
+
input: {
|
|
1195
|
+
param: {
|
|
1196
|
+
keyId: string;
|
|
1197
|
+
orgId: string;
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
} | {
|
|
1201
|
+
output: {
|
|
1202
|
+
id: string;
|
|
1203
|
+
};
|
|
1204
|
+
outputFormat: "json";
|
|
1205
|
+
status: 200;
|
|
1206
|
+
input: {
|
|
1207
|
+
param: {
|
|
1208
|
+
keyId: string;
|
|
1209
|
+
orgId: string;
|
|
1210
|
+
};
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
} & {
|
|
1215
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
1216
|
+
$patch: {
|
|
1217
|
+
output: {
|
|
1218
|
+
error: {
|
|
1219
|
+
code: "upstream_error";
|
|
1220
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1221
|
+
message: string;
|
|
1222
|
+
};
|
|
1223
|
+
requestId: string;
|
|
1224
|
+
};
|
|
1225
|
+
outputFormat: "json";
|
|
1226
|
+
status: 502;
|
|
1227
|
+
input: {
|
|
1228
|
+
param: {
|
|
1229
|
+
keyId: string;
|
|
1230
|
+
orgId: string;
|
|
1231
|
+
projectId: string;
|
|
1232
|
+
};
|
|
1233
|
+
} & {
|
|
1234
|
+
json: {
|
|
1235
|
+
allowedIps: readonly string[];
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1238
|
+
} | {
|
|
1239
|
+
output: {
|
|
1240
|
+
error: {
|
|
1241
|
+
code: "api_key_malformed";
|
|
1242
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1243
|
+
message: string;
|
|
1244
|
+
};
|
|
1245
|
+
requestId: string;
|
|
1246
|
+
};
|
|
1247
|
+
outputFormat: "json";
|
|
1248
|
+
status: 400;
|
|
1249
|
+
input: {
|
|
1250
|
+
param: {
|
|
1251
|
+
keyId: string;
|
|
1252
|
+
orgId: string;
|
|
1253
|
+
projectId: string;
|
|
1254
|
+
};
|
|
1255
|
+
} & {
|
|
1256
|
+
json: {
|
|
1257
|
+
allowedIps: readonly string[];
|
|
1258
|
+
};
|
|
1259
|
+
};
|
|
1260
|
+
} | {
|
|
1261
|
+
output: {
|
|
1262
|
+
error: {
|
|
1263
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1264
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1265
|
+
message: string;
|
|
1266
|
+
};
|
|
1267
|
+
requestId: string;
|
|
1268
|
+
};
|
|
1269
|
+
outputFormat: "json";
|
|
1270
|
+
status: 401;
|
|
1271
|
+
input: {
|
|
1272
|
+
param: {
|
|
1273
|
+
keyId: string;
|
|
1274
|
+
orgId: string;
|
|
1275
|
+
projectId: string;
|
|
1276
|
+
};
|
|
1277
|
+
} & {
|
|
1278
|
+
json: {
|
|
1279
|
+
allowedIps: readonly string[];
|
|
1280
|
+
};
|
|
1281
|
+
};
|
|
1282
|
+
} | {
|
|
1283
|
+
output: {
|
|
1284
|
+
error: {
|
|
1285
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
1286
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1287
|
+
message: string;
|
|
1288
|
+
};
|
|
1289
|
+
requestId: string;
|
|
1290
|
+
};
|
|
1291
|
+
outputFormat: "json";
|
|
1292
|
+
status: 403;
|
|
1293
|
+
input: {
|
|
1294
|
+
param: {
|
|
1295
|
+
keyId: string;
|
|
1296
|
+
orgId: string;
|
|
1297
|
+
projectId: string;
|
|
1298
|
+
};
|
|
1299
|
+
} & {
|
|
1300
|
+
json: {
|
|
1301
|
+
allowedIps: readonly string[];
|
|
1302
|
+
};
|
|
1303
|
+
};
|
|
1304
|
+
} | {
|
|
1305
|
+
output: {
|
|
1306
|
+
error: {
|
|
1307
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1308
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1309
|
+
message: string;
|
|
1310
|
+
};
|
|
1311
|
+
requestId: string;
|
|
1312
|
+
};
|
|
1313
|
+
outputFormat: "json";
|
|
1314
|
+
status: 429;
|
|
1315
|
+
input: {
|
|
1316
|
+
param: {
|
|
1317
|
+
keyId: string;
|
|
1318
|
+
orgId: string;
|
|
1319
|
+
projectId: string;
|
|
1320
|
+
};
|
|
1321
|
+
} & {
|
|
1322
|
+
json: {
|
|
1323
|
+
allowedIps: readonly string[];
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1326
|
+
} | {
|
|
1327
|
+
output: {
|
|
1328
|
+
error: {
|
|
1329
|
+
code: "param_invalid";
|
|
1330
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1331
|
+
message: string;
|
|
1332
|
+
};
|
|
1333
|
+
requestId: string;
|
|
1334
|
+
};
|
|
1335
|
+
outputFormat: "json";
|
|
1336
|
+
status: 400;
|
|
1337
|
+
input: {
|
|
1338
|
+
param: {
|
|
1339
|
+
keyId: string;
|
|
1340
|
+
orgId: string;
|
|
1341
|
+
projectId: string;
|
|
1342
|
+
};
|
|
1343
|
+
} & {
|
|
1344
|
+
json: {
|
|
1345
|
+
allowedIps: readonly string[];
|
|
1346
|
+
};
|
|
1347
|
+
};
|
|
1348
|
+
} | {
|
|
1349
|
+
output: {
|
|
1350
|
+
error: {
|
|
1351
|
+
code: "body_invalid";
|
|
1352
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1353
|
+
message: string;
|
|
1354
|
+
};
|
|
1355
|
+
requestId: string;
|
|
1356
|
+
};
|
|
1357
|
+
outputFormat: "json";
|
|
1358
|
+
status: 400;
|
|
1359
|
+
input: {
|
|
1360
|
+
param: {
|
|
1361
|
+
keyId: string;
|
|
1362
|
+
orgId: string;
|
|
1363
|
+
projectId: string;
|
|
1364
|
+
};
|
|
1365
|
+
} & {
|
|
1366
|
+
json: {
|
|
1367
|
+
allowedIps: readonly string[];
|
|
1368
|
+
};
|
|
1369
|
+
};
|
|
1370
|
+
} | {
|
|
1371
|
+
output: {
|
|
1372
|
+
error: {
|
|
1373
|
+
code: "forbidden";
|
|
1374
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1375
|
+
message: string;
|
|
1376
|
+
};
|
|
1377
|
+
requestId: string;
|
|
1378
|
+
};
|
|
1379
|
+
outputFormat: "json";
|
|
1380
|
+
status: 403;
|
|
1381
|
+
input: {
|
|
1382
|
+
param: {
|
|
1383
|
+
keyId: string;
|
|
1384
|
+
orgId: string;
|
|
1385
|
+
projectId: string;
|
|
1386
|
+
};
|
|
1387
|
+
} & {
|
|
1388
|
+
json: {
|
|
1389
|
+
allowedIps: readonly string[];
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
} | {
|
|
1393
|
+
output: {
|
|
1394
|
+
error: {
|
|
1395
|
+
code: "organization_not_found" | "project_not_found";
|
|
1396
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1397
|
+
message: string;
|
|
1398
|
+
};
|
|
1399
|
+
requestId: string;
|
|
1400
|
+
};
|
|
1401
|
+
outputFormat: "json";
|
|
1402
|
+
status: 404;
|
|
1403
|
+
input: {
|
|
1404
|
+
param: {
|
|
1405
|
+
keyId: string;
|
|
1406
|
+
orgId: string;
|
|
1407
|
+
projectId: string;
|
|
1408
|
+
};
|
|
1409
|
+
} & {
|
|
1410
|
+
json: {
|
|
1411
|
+
allowedIps: readonly string[];
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
} | {
|
|
1415
|
+
output: {
|
|
1416
|
+
error: {
|
|
1417
|
+
code: "api_keys_not_enabled";
|
|
1418
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1419
|
+
message: string;
|
|
1420
|
+
};
|
|
1421
|
+
requestId: string;
|
|
1422
|
+
};
|
|
1423
|
+
outputFormat: "json";
|
|
1424
|
+
status: 404;
|
|
1425
|
+
input: {
|
|
1426
|
+
param: {
|
|
1427
|
+
keyId: string;
|
|
1428
|
+
orgId: string;
|
|
1429
|
+
projectId: string;
|
|
1430
|
+
};
|
|
1431
|
+
} & {
|
|
1432
|
+
json: {
|
|
1433
|
+
allowedIps: readonly string[];
|
|
1434
|
+
};
|
|
1435
|
+
};
|
|
1436
|
+
} | {
|
|
1437
|
+
output: {
|
|
1438
|
+
error: {
|
|
1439
|
+
code: "api_key_not_found";
|
|
1440
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1441
|
+
message: string;
|
|
1442
|
+
};
|
|
1443
|
+
requestId: string;
|
|
1444
|
+
};
|
|
1445
|
+
outputFormat: "json";
|
|
1446
|
+
status: 404;
|
|
1447
|
+
input: {
|
|
1448
|
+
param: {
|
|
1449
|
+
keyId: string;
|
|
1450
|
+
orgId: string;
|
|
1451
|
+
projectId: string;
|
|
1452
|
+
};
|
|
1453
|
+
} & {
|
|
1454
|
+
json: {
|
|
1455
|
+
allowedIps: readonly string[];
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
} | {
|
|
1459
|
+
output: {
|
|
1460
|
+
allowedIps: readonly string[];
|
|
1461
|
+
createdAt: string;
|
|
1462
|
+
createdBy?: string | undefined;
|
|
1463
|
+
environment: "production" | "sandbox";
|
|
1464
|
+
expiresAt?: string | undefined;
|
|
1465
|
+
id: string;
|
|
1466
|
+
lastUsedAt?: string | undefined;
|
|
1467
|
+
name?: string | undefined;
|
|
1468
|
+
orgId: string;
|
|
1469
|
+
projectId?: string | undefined;
|
|
1470
|
+
scopes: string[];
|
|
1471
|
+
tokenLast4: string;
|
|
1472
|
+
};
|
|
1473
|
+
outputFormat: "json";
|
|
1474
|
+
status: 200;
|
|
1475
|
+
input: {
|
|
1476
|
+
param: {
|
|
1477
|
+
keyId: string;
|
|
1478
|
+
orgId: string;
|
|
1479
|
+
projectId: string;
|
|
1480
|
+
};
|
|
1481
|
+
} & {
|
|
1482
|
+
json: {
|
|
1483
|
+
allowedIps: readonly string[];
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
} & {
|
|
1489
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}/rotate": {
|
|
1490
|
+
$post: {
|
|
1491
|
+
output: {
|
|
1492
|
+
error: {
|
|
1493
|
+
code: "upstream_error";
|
|
1494
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1495
|
+
message: string;
|
|
1496
|
+
};
|
|
1497
|
+
requestId: string;
|
|
1498
|
+
};
|
|
1499
|
+
outputFormat: "json";
|
|
1500
|
+
status: 502;
|
|
1501
|
+
input: {
|
|
1502
|
+
param: {
|
|
1503
|
+
keyId: string;
|
|
1504
|
+
orgId: string;
|
|
1505
|
+
projectId: string;
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
} | {
|
|
1509
|
+
output: {
|
|
1510
|
+
error: {
|
|
1511
|
+
code: "api_key_malformed";
|
|
1512
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1513
|
+
message: string;
|
|
1514
|
+
};
|
|
1515
|
+
requestId: string;
|
|
1516
|
+
};
|
|
1517
|
+
outputFormat: "json";
|
|
1518
|
+
status: 400;
|
|
1519
|
+
input: {
|
|
1520
|
+
param: {
|
|
1521
|
+
keyId: string;
|
|
1522
|
+
orgId: string;
|
|
1523
|
+
projectId: string;
|
|
1524
|
+
};
|
|
1525
|
+
};
|
|
1526
|
+
} | {
|
|
1527
|
+
output: {
|
|
1528
|
+
error: {
|
|
1529
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1530
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1531
|
+
message: string;
|
|
1532
|
+
};
|
|
1533
|
+
requestId: string;
|
|
1534
|
+
};
|
|
1535
|
+
outputFormat: "json";
|
|
1536
|
+
status: 401;
|
|
1537
|
+
input: {
|
|
1538
|
+
param: {
|
|
1539
|
+
keyId: string;
|
|
1540
|
+
orgId: string;
|
|
1541
|
+
projectId: string;
|
|
1542
|
+
};
|
|
1543
|
+
};
|
|
1544
|
+
} | {
|
|
1545
|
+
output: {
|
|
1546
|
+
error: {
|
|
1547
|
+
code: "param_invalid";
|
|
1548
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1549
|
+
message: string;
|
|
1550
|
+
};
|
|
1551
|
+
requestId: string;
|
|
1552
|
+
};
|
|
1553
|
+
outputFormat: "json";
|
|
1554
|
+
status: 400;
|
|
1555
|
+
input: {
|
|
1556
|
+
param: {
|
|
1557
|
+
keyId: string;
|
|
1558
|
+
orgId: string;
|
|
1559
|
+
projectId: string;
|
|
1560
|
+
};
|
|
1561
|
+
};
|
|
1562
|
+
} | {
|
|
1563
|
+
output: {
|
|
1564
|
+
error: {
|
|
1565
|
+
code: "forbidden";
|
|
1566
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1567
|
+
message: string;
|
|
1568
|
+
};
|
|
1569
|
+
requestId: string;
|
|
1570
|
+
};
|
|
1571
|
+
outputFormat: "json";
|
|
1572
|
+
status: 403;
|
|
1573
|
+
input: {
|
|
1574
|
+
param: {
|
|
1575
|
+
keyId: string;
|
|
1576
|
+
orgId: string;
|
|
1577
|
+
projectId: string;
|
|
1578
|
+
};
|
|
1579
|
+
};
|
|
1580
|
+
} | {
|
|
1581
|
+
output: {
|
|
1582
|
+
error: {
|
|
1583
|
+
code: "organization_not_found" | "project_not_found";
|
|
1584
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1585
|
+
message: string;
|
|
1586
|
+
};
|
|
1587
|
+
requestId: string;
|
|
1588
|
+
};
|
|
1589
|
+
outputFormat: "json";
|
|
1590
|
+
status: 404;
|
|
1591
|
+
input: {
|
|
1592
|
+
param: {
|
|
1593
|
+
keyId: string;
|
|
1594
|
+
orgId: string;
|
|
1595
|
+
projectId: string;
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
} | {
|
|
1599
|
+
output: {
|
|
1600
|
+
error: {
|
|
1601
|
+
code: "api_keys_not_enabled";
|
|
1602
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1603
|
+
message: string;
|
|
1604
|
+
};
|
|
1605
|
+
requestId: string;
|
|
1606
|
+
};
|
|
1607
|
+
outputFormat: "json";
|
|
1608
|
+
status: 404;
|
|
1609
|
+
input: {
|
|
1610
|
+
param: {
|
|
1611
|
+
keyId: string;
|
|
1612
|
+
orgId: string;
|
|
1613
|
+
projectId: string;
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
} | {
|
|
1617
|
+
output: {
|
|
1618
|
+
error: {
|
|
1619
|
+
code: "scope_not_issuable";
|
|
1620
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1621
|
+
message: string;
|
|
1622
|
+
};
|
|
1623
|
+
requestId: string;
|
|
1624
|
+
};
|
|
1625
|
+
outputFormat: "json";
|
|
1626
|
+
status: 403;
|
|
1627
|
+
input: {
|
|
1628
|
+
param: {
|
|
1629
|
+
keyId: string;
|
|
1630
|
+
orgId: string;
|
|
1631
|
+
projectId: string;
|
|
1632
|
+
};
|
|
1633
|
+
};
|
|
1634
|
+
} | {
|
|
1635
|
+
output: {
|
|
1636
|
+
error: {
|
|
1637
|
+
code: "api_key_not_found";
|
|
1638
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1639
|
+
message: string;
|
|
1640
|
+
};
|
|
1641
|
+
requestId: string;
|
|
1642
|
+
};
|
|
1643
|
+
outputFormat: "json";
|
|
1644
|
+
status: 404;
|
|
1645
|
+
input: {
|
|
1646
|
+
param: {
|
|
1647
|
+
keyId: string;
|
|
1648
|
+
orgId: string;
|
|
1649
|
+
projectId: string;
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
} | {
|
|
1653
|
+
output: {
|
|
1654
|
+
allowedIps: readonly string[];
|
|
1655
|
+
createdAt: string;
|
|
1656
|
+
createdBy?: string | undefined;
|
|
1657
|
+
environment: "production" | "sandbox";
|
|
1658
|
+
expiresAt?: string | undefined;
|
|
1659
|
+
id: string;
|
|
1660
|
+
lastUsedAt?: string | undefined;
|
|
1661
|
+
name?: string | undefined;
|
|
1662
|
+
orgId: string;
|
|
1663
|
+
projectId?: string | undefined;
|
|
1664
|
+
scopes: string[];
|
|
1665
|
+
tokenLast4: string;
|
|
1666
|
+
token: string;
|
|
1667
|
+
};
|
|
1668
|
+
outputFormat: "json";
|
|
1669
|
+
status: 200;
|
|
1670
|
+
input: {
|
|
1671
|
+
param: {
|
|
1672
|
+
keyId: string;
|
|
1673
|
+
orgId: string;
|
|
1674
|
+
projectId: string;
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
};
|
|
1678
|
+
};
|
|
1679
|
+
} & {
|
|
1680
|
+
"/v1/orgs/:orgId{org_[A-Za-z0-9_-]+}/projects/:projectId{prj_[A-Za-z0-9_-]+}/api-keys/:keyId{key_[A-Za-z0-9_-]+}": {
|
|
1681
|
+
$delete: {
|
|
1682
|
+
output: {
|
|
1683
|
+
error: {
|
|
1684
|
+
code: "upstream_error";
|
|
1685
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1686
|
+
message: string;
|
|
1687
|
+
};
|
|
1688
|
+
requestId: string;
|
|
1689
|
+
};
|
|
1690
|
+
outputFormat: "json";
|
|
1691
|
+
status: 502;
|
|
1692
|
+
input: {
|
|
1693
|
+
param: {
|
|
1694
|
+
keyId: string;
|
|
1695
|
+
orgId: string;
|
|
1696
|
+
projectId: string;
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
} | {
|
|
1700
|
+
output: {
|
|
1701
|
+
error: {
|
|
1702
|
+
code: "api_key_malformed";
|
|
1703
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1704
|
+
message: string;
|
|
1705
|
+
};
|
|
1706
|
+
requestId: string;
|
|
1707
|
+
};
|
|
1708
|
+
outputFormat: "json";
|
|
1709
|
+
status: 400;
|
|
1710
|
+
input: {
|
|
1711
|
+
param: {
|
|
1712
|
+
keyId: string;
|
|
1713
|
+
orgId: string;
|
|
1714
|
+
projectId: string;
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
} | {
|
|
1718
|
+
output: {
|
|
1719
|
+
error: {
|
|
1720
|
+
code: "api_key_invalid" | "api_key_missing";
|
|
1721
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1722
|
+
message: string;
|
|
1723
|
+
};
|
|
1724
|
+
requestId: string;
|
|
1725
|
+
};
|
|
1726
|
+
outputFormat: "json";
|
|
1727
|
+
status: 401;
|
|
1728
|
+
input: {
|
|
1729
|
+
param: {
|
|
1730
|
+
keyId: string;
|
|
1731
|
+
orgId: string;
|
|
1732
|
+
projectId: string;
|
|
1733
|
+
};
|
|
1734
|
+
};
|
|
1735
|
+
} | {
|
|
1736
|
+
output: {
|
|
1737
|
+
error: {
|
|
1738
|
+
code: "api_key_forbidden" | "api_key_ip_forbidden";
|
|
1739
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1740
|
+
message: string;
|
|
1741
|
+
};
|
|
1742
|
+
requestId: string;
|
|
1743
|
+
};
|
|
1744
|
+
outputFormat: "json";
|
|
1745
|
+
status: 403;
|
|
1746
|
+
input: {
|
|
1747
|
+
param: {
|
|
1748
|
+
keyId: string;
|
|
1749
|
+
orgId: string;
|
|
1750
|
+
projectId: string;
|
|
1751
|
+
};
|
|
1752
|
+
};
|
|
1753
|
+
} | {
|
|
1754
|
+
output: {
|
|
1755
|
+
error: {
|
|
1756
|
+
code: "payment_required" | "rate_limit_exceeded";
|
|
1757
|
+
details?: readonly Response.error.Detail[] | undefined;
|
|
1758
|
+
message: string;
|
|
1759
|
+
};
|
|
1760
|
+
requestId: string;
|
|
1761
|
+
};
|
|
1762
|
+
outputFormat: "json";
|
|
1763
|
+
status: 429;
|
|
1213
1764
|
input: {
|
|
1214
1765
|
param: {
|
|
1215
1766
|
keyId: string;
|