@leaflow/sdk 0.0.0-dev.125.ged02bc4 → 0.0.0-dev.129.g409f04f
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/account/v1/index.d.ts +2 -2
- package/dist/account/v1/schema.d.ts +148 -122
- package/dist/assistant/v1/schema.d.ts +29 -0
- package/dist/billing/v1/index.d.ts +8 -2
- package/dist/billing/v1/schema.d.ts +184 -5
- package/dist/canopy/v1/schema.d.ts +138 -109
- package/dist/compute/v1/index.d.ts +4 -2
- package/dist/compute/v1/schema.d.ts +80 -0
- package/dist/dns/v1/index.d.ts +6 -6
- package/dist/dns/v1/schema.d.ts +29 -0
- package/dist/fleet/v1/index.d.ts +6 -0
- package/dist/fleet/v1/index.js +5 -0
- package/dist/fleet/v1/schema.d.ts +181 -0
- package/dist/fleet/v1/schema.js +5 -0
- package/dist/iam/v1/index.d.ts +4 -4
- package/dist/iam/v1/schema.d.ts +144 -115
- package/dist/index.d.ts +1 -0
- package/dist/monitoring/v1/index.d.ts +4 -4
- package/dist/monitoring/v1/schema.d.ts +29 -0
- package/dist/notification/v1/schema.d.ts +29 -0
- package/dist/support/v1/schema.d.ts +29 -0
- package/dist/tunnel/v1/schema.d.ts +64 -35
- package/package.json +1 -1
|
@@ -10,14 +10,14 @@ export interface paths {
|
|
|
10
10
|
path?: never;
|
|
11
11
|
cookie?: never;
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
13
|
+
/** List API keys */
|
|
14
14
|
get: operations["list-api-keys"];
|
|
15
15
|
put?: never;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @description
|
|
17
|
+
* Issue an API key
|
|
18
|
+
* @description The `secret` in the response is the complete key and **appears in this response only**. It is returned by no other endpoint, and a key that has been lost has to be revoked and reissued.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* Supply it wherever a value such as `OPENAI_API_KEY` is expected. The forwarding endpoints accept the OpenAI, Anthropic and Gemini request formats alike.
|
|
21
21
|
*/
|
|
22
22
|
post: operations["create-api-key"];
|
|
23
23
|
delete?: never;
|
|
@@ -33,7 +33,7 @@ export interface paths {
|
|
|
33
33
|
path?: never;
|
|
34
34
|
cookie?: never;
|
|
35
35
|
};
|
|
36
|
-
/**
|
|
36
|
+
/** Get an API key */
|
|
37
37
|
get: operations["get-api-key"];
|
|
38
38
|
put?: never;
|
|
39
39
|
post?: never;
|
|
@@ -41,12 +41,12 @@ export interface paths {
|
|
|
41
41
|
options?: never;
|
|
42
42
|
head?: never;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
45
|
-
* @description
|
|
44
|
+
* Update an API key
|
|
45
|
+
* @description Attributes only. Enabling, disabling and revoking each have their own endpoint.
|
|
46
46
|
*
|
|
47
|
-
*
|
|
47
|
+
* A field that is not supplied is left unchanged. To remove an expiry, send `clear_expiry` as true rather than a null `expires_at`.
|
|
48
48
|
*
|
|
49
|
-
*
|
|
49
|
+
* A revoked key accepts no modification.
|
|
50
50
|
*/
|
|
51
51
|
patch: operations["update-api-key"];
|
|
52
52
|
trace?: never;
|
|
@@ -61,8 +61,8 @@ export interface paths {
|
|
|
61
61
|
get?: never;
|
|
62
62
|
put?: never;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
* @description
|
|
64
|
+
* Disable an API key
|
|
65
|
+
* @description A temporary measure; the key may be enabled again at any time. Use revocation to invalidate it permanently.
|
|
66
66
|
*/
|
|
67
67
|
post: operations["disable-api-key"];
|
|
68
68
|
delete?: never;
|
|
@@ -81,8 +81,8 @@ export interface paths {
|
|
|
81
81
|
get?: never;
|
|
82
82
|
put?: never;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
85
|
-
* @description
|
|
84
|
+
* Enable an API key
|
|
85
|
+
* @description Two cases cannot be enabled again. A revoked key answers `API_KEY_REVOKED`, and a key disabled because its project is suspended answers `API_KEY_PROJECT_SUSPENDED` with `suspended` set to true; the latter requires the project to be restored first.
|
|
86
86
|
*/
|
|
87
87
|
post: operations["enable-api-key"];
|
|
88
88
|
delete?: never;
|
|
@@ -101,12 +101,12 @@ export interface paths {
|
|
|
101
101
|
get?: never;
|
|
102
102
|
put?: never;
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
105
|
-
* @description
|
|
104
|
+
* Revoke an API key
|
|
105
|
+
* @description **Irreversible.** It is intended for a key that has been exposed, such as one committed to a repository.
|
|
106
106
|
*
|
|
107
|
-
*
|
|
107
|
+
* The record is retained, so the requests the key issued before it was revoked remain readable.
|
|
108
108
|
*
|
|
109
|
-
*
|
|
109
|
+
* Use disabling for a temporary measure.
|
|
110
110
|
*/
|
|
111
111
|
post: operations["revoke-api-key"];
|
|
112
112
|
delete?: never;
|
|
@@ -123,10 +123,10 @@ export interface paths {
|
|
|
123
123
|
cookie?: never;
|
|
124
124
|
};
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
127
|
-
* @description
|
|
126
|
+
* List the available models
|
|
127
|
+
* @description A model that has been retired does not appear here, while it remains readable individually.
|
|
128
128
|
*
|
|
129
|
-
* `context_length`
|
|
129
|
+
* `context_length` and `max_output_tokens` are advisory. The server does not truncate on their basis, and the request body is forwarded upstream unchanged.
|
|
130
130
|
*/
|
|
131
131
|
get: operations["list-models"];
|
|
132
132
|
put?: never;
|
|
@@ -145,8 +145,8 @@ export interface paths {
|
|
|
145
145
|
cookie?: never;
|
|
146
146
|
};
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
149
|
-
* @description
|
|
148
|
+
* Get a model
|
|
149
|
+
* @description A model that has been retired remains readable here, while forwarding to it is refused with `MODEL_RETIRED`. That is distinct from a model that does not exist.
|
|
150
150
|
*/
|
|
151
151
|
get: operations["get-model"];
|
|
152
152
|
put?: never;
|
|
@@ -165,12 +165,12 @@ export interface paths {
|
|
|
165
165
|
cookie?: never;
|
|
166
166
|
};
|
|
167
167
|
/**
|
|
168
|
-
*
|
|
169
|
-
* @description
|
|
168
|
+
* List request records
|
|
169
|
+
* @description Cursor-paged, most recent first. An empty `next_cursor` indicates the last page.
|
|
170
170
|
*
|
|
171
|
-
*
|
|
171
|
+
* **The request and response bodies are not returned**; they are not recorded. Quote the `upstream_request_id` when reporting a problem.
|
|
172
172
|
*
|
|
173
|
-
* `usage_source`
|
|
173
|
+
* A `usage_source` of `estimated` indicates that the upstream provider reported no usage for that request, and that the figures are derived from the character classes of the payload.
|
|
174
174
|
*/
|
|
175
175
|
get: operations["list-requests"];
|
|
176
176
|
put?: never;
|
|
@@ -188,7 +188,7 @@ export interface paths {
|
|
|
188
188
|
path?: never;
|
|
189
189
|
cookie?: never;
|
|
190
190
|
};
|
|
191
|
-
/**
|
|
191
|
+
/** Get a single request record */
|
|
192
192
|
get: operations["get-request"];
|
|
193
193
|
put?: never;
|
|
194
194
|
post?: never;
|
|
@@ -206,8 +206,8 @@ export interface paths {
|
|
|
206
206
|
cookie?: never;
|
|
207
207
|
};
|
|
208
208
|
/**
|
|
209
|
-
*
|
|
210
|
-
* @description
|
|
209
|
+
* Get usage by API key
|
|
210
|
+
* @description Answers which key is consuming the budget. A key that has been revoked still appears, since the usage it accrued beforehand is part of that answer.
|
|
211
211
|
*/
|
|
212
212
|
get: operations["list-usage-by-api-key"];
|
|
213
213
|
put?: never;
|
|
@@ -225,7 +225,7 @@ export interface paths {
|
|
|
225
225
|
path?: never;
|
|
226
226
|
cookie?: never;
|
|
227
227
|
};
|
|
228
|
-
/**
|
|
228
|
+
/** Get usage by model */
|
|
229
229
|
get: operations["list-usage-by-model"];
|
|
230
230
|
put?: never;
|
|
231
231
|
post?: never;
|
|
@@ -243,10 +243,10 @@ export interface paths {
|
|
|
243
243
|
cookie?: never;
|
|
244
244
|
};
|
|
245
245
|
/**
|
|
246
|
-
*
|
|
247
|
-
* @description `from`
|
|
246
|
+
* Get total usage
|
|
247
|
+
* @description `from` and `to` are required and may span no more than 31 days. Both carry a timezone offset, so `2026-08-01T00:00:00+08:00` starts at that instant in UTC+8.
|
|
248
248
|
*
|
|
249
|
-
*
|
|
249
|
+
* The five token classes are reported separately. A cache read costs an order of magnitude less than ordinary input, and a single total cannot be decomposed again.
|
|
250
250
|
*/
|
|
251
251
|
get: operations["get-usage-summary"];
|
|
252
252
|
put?: never;
|
|
@@ -265,10 +265,10 @@ export interface paths {
|
|
|
265
265
|
cookie?: never;
|
|
266
266
|
};
|
|
267
267
|
/**
|
|
268
|
-
*
|
|
269
|
-
* @description
|
|
268
|
+
* Get a usage series
|
|
269
|
+
* @description Divided into buckets of `bucket`, starting at `from`. The final bucket may be partial, and the number of buckets is limited to 100.
|
|
270
270
|
*
|
|
271
|
-
*
|
|
271
|
+
* To divide by local day, send `from` as midnight in local time with its offset and `bucket` as `24h`. The server does not infer a timezone.
|
|
272
272
|
*/
|
|
273
273
|
get: operations["get-usage-timeline"];
|
|
274
274
|
put?: never;
|
|
@@ -287,120 +287,126 @@ export interface components {
|
|
|
287
287
|
code?: string;
|
|
288
288
|
message: string;
|
|
289
289
|
meta?: {
|
|
290
|
+
/**
|
|
291
|
+
* @description Present on every response whose `code` is `VALIDATION_FAILED`, and on no
|
|
292
|
+
* other response.
|
|
293
|
+
*/
|
|
294
|
+
violations?: components["schemas"]["Violation"][];
|
|
295
|
+
} & {
|
|
290
296
|
[key: string]: unknown;
|
|
291
297
|
};
|
|
292
298
|
/** Format: int64 */
|
|
293
299
|
status: number;
|
|
294
300
|
};
|
|
295
301
|
APIKeyResource: {
|
|
296
|
-
/** @description restrict_models
|
|
302
|
+
/** @description Carries no meaning while `restrict_models` is false */
|
|
297
303
|
allowed_models: string[];
|
|
298
304
|
/** Format: date-time */
|
|
299
305
|
created_at: string;
|
|
300
306
|
/**
|
|
301
307
|
* Format: uuid
|
|
302
|
-
* @description
|
|
308
|
+
* @description Who created the key
|
|
303
309
|
*/
|
|
304
310
|
created_by: string;
|
|
305
311
|
/**
|
|
306
312
|
* Format: date-time
|
|
307
|
-
* @description
|
|
313
|
+
* @description When the key expires. Null means it never expires
|
|
308
314
|
*/
|
|
309
315
|
expires_at: string | null;
|
|
310
316
|
/** Format: uuid */
|
|
311
317
|
id: string;
|
|
312
|
-
/** @description
|
|
318
|
+
/** @description The last four characters of the plaintext */
|
|
313
319
|
last_four: string;
|
|
314
320
|
/**
|
|
315
321
|
* Format: date-time
|
|
316
|
-
* @description
|
|
322
|
+
* @description When the key was last used to forward a request successfully, accurate to about a minute
|
|
317
323
|
*/
|
|
318
324
|
last_used_at: string | null;
|
|
319
325
|
name: string;
|
|
320
|
-
/** @description
|
|
326
|
+
/** @description The leading characters of the plaintext, by which a key is recognised in a list */
|
|
321
327
|
prefix: string;
|
|
322
|
-
/** @description true
|
|
328
|
+
/** @description While true, only the models listed in `allowed_models` are permitted */
|
|
323
329
|
restrict_models: boolean;
|
|
324
330
|
/** @enum {string} */
|
|
325
331
|
status: "active" | "disabled" | "revoked";
|
|
326
|
-
/** @description
|
|
332
|
+
/** @description True indicates that the key was disabled because its project is suspended, and that the project has to be restored before the key can be used again */
|
|
327
333
|
suspended: boolean;
|
|
328
334
|
};
|
|
329
335
|
LengthAwarePageAPIKeyResource: {
|
|
330
|
-
/** @description
|
|
336
|
+
/** @description The items in this page */
|
|
331
337
|
items: components["schemas"]["APIKeyResource"][];
|
|
332
338
|
/**
|
|
333
339
|
* Format: int64
|
|
334
|
-
* @description
|
|
340
|
+
* @description Maximum number of items in this page, echoing the request
|
|
335
341
|
*/
|
|
336
342
|
limit: number;
|
|
337
343
|
/**
|
|
338
344
|
* Format: int64
|
|
339
|
-
* @description
|
|
345
|
+
* @description Number of items skipped, echoing the request
|
|
340
346
|
*/
|
|
341
347
|
offset: number;
|
|
342
348
|
/**
|
|
343
349
|
* Format: int64
|
|
344
|
-
* @description
|
|
350
|
+
* @description Total number of matches, not only this page
|
|
345
351
|
*/
|
|
346
352
|
total: number;
|
|
347
353
|
};
|
|
348
354
|
CreateAPIKeyRequestBody: {
|
|
349
|
-
/** @description restrict_models
|
|
355
|
+
/** @description Ignored while `restrict_models` is false */
|
|
350
356
|
allowed_models?: string[] | null;
|
|
351
357
|
/**
|
|
352
358
|
* Format: date-time
|
|
353
|
-
* @description
|
|
359
|
+
* @description When the key expires. Omitted means it never expires
|
|
354
360
|
*/
|
|
355
361
|
expires_at?: string | null;
|
|
356
|
-
/** @description
|
|
362
|
+
/** @description A name for the holder's own use, such as CI or Production */
|
|
357
363
|
name: string;
|
|
358
|
-
/** @description true
|
|
364
|
+
/** @description While true, only the models listed in `allowed_models` are permitted */
|
|
359
365
|
restrict_models?: boolean;
|
|
360
366
|
};
|
|
361
367
|
IssuedAPIKeyResource: {
|
|
362
|
-
/** @description restrict_models
|
|
368
|
+
/** @description Carries no meaning while `restrict_models` is false */
|
|
363
369
|
allowed_models: string[];
|
|
364
370
|
/** Format: date-time */
|
|
365
371
|
created_at: string;
|
|
366
372
|
/**
|
|
367
373
|
* Format: uuid
|
|
368
|
-
* @description
|
|
374
|
+
* @description Who created the key
|
|
369
375
|
*/
|
|
370
376
|
created_by: string;
|
|
371
377
|
/**
|
|
372
378
|
* Format: date-time
|
|
373
|
-
* @description
|
|
379
|
+
* @description When the key expires. Null means it never expires
|
|
374
380
|
*/
|
|
375
381
|
expires_at: string | null;
|
|
376
382
|
/** Format: uuid */
|
|
377
383
|
id: string;
|
|
378
|
-
/** @description
|
|
384
|
+
/** @description The last four characters of the plaintext */
|
|
379
385
|
last_four: string;
|
|
380
386
|
/**
|
|
381
387
|
* Format: date-time
|
|
382
|
-
* @description
|
|
388
|
+
* @description When the key was last used to forward a request successfully, accurate to about a minute
|
|
383
389
|
*/
|
|
384
390
|
last_used_at: string | null;
|
|
385
391
|
name: string;
|
|
386
|
-
/** @description
|
|
392
|
+
/** @description The leading characters of the plaintext, by which a key is recognised in a list */
|
|
387
393
|
prefix: string;
|
|
388
|
-
/** @description true
|
|
394
|
+
/** @description While true, only the models listed in `allowed_models` are permitted */
|
|
389
395
|
restrict_models: boolean;
|
|
390
|
-
/** @description
|
|
396
|
+
/** @description The complete key, **returned in this response only**. Store it immediately */
|
|
391
397
|
secret: string;
|
|
392
398
|
/** @enum {string} */
|
|
393
399
|
status: "active" | "disabled" | "revoked";
|
|
394
|
-
/** @description
|
|
400
|
+
/** @description True indicates that the key was disabled because its project is suspended, and that the project has to be restored before the key can be used again */
|
|
395
401
|
suspended: boolean;
|
|
396
402
|
};
|
|
397
403
|
UpdateAPIKeyRequestBody: {
|
|
398
404
|
allowed_models?: string[] | null;
|
|
399
|
-
/** @description
|
|
405
|
+
/** @description True removes the expiry */
|
|
400
406
|
clear_expiry?: boolean;
|
|
401
407
|
/**
|
|
402
408
|
* Format: date-time
|
|
403
|
-
* @description
|
|
409
|
+
* @description Sets the expiry. To remove it, use `clear_expiry`
|
|
404
410
|
*/
|
|
405
411
|
expires_at?: string | null;
|
|
406
412
|
name?: string | null;
|
|
@@ -409,20 +415,20 @@ export interface components {
|
|
|
409
415
|
ModelResource: {
|
|
410
416
|
/**
|
|
411
417
|
* Format: int64
|
|
412
|
-
* @description
|
|
418
|
+
* @description The context window. Advisory only; the server does not truncate on its basis
|
|
413
419
|
*/
|
|
414
420
|
context_length: number;
|
|
415
421
|
display_name: string;
|
|
416
|
-
/** @description
|
|
422
|
+
/** @description Groups the models of one family together, such as claude, gpt or gemini */
|
|
417
423
|
family: string;
|
|
418
|
-
/** @description
|
|
424
|
+
/** @description The string to send in the `model` field of the request body */
|
|
419
425
|
id: string;
|
|
420
426
|
/**
|
|
421
427
|
* Format: int64
|
|
422
|
-
* @description
|
|
428
|
+
* @description The maximum output length. Advisory only
|
|
423
429
|
*/
|
|
424
430
|
max_output_tokens: number;
|
|
425
|
-
/** @description reasoning_effort
|
|
431
|
+
/** @description The values accepted for `reasoning_effort`. Empty means it is not supported */
|
|
426
432
|
reasoning_tiers: string[];
|
|
427
433
|
/** @enum {string} */
|
|
428
434
|
status: "available" | "draining" | "retired";
|
|
@@ -438,12 +444,12 @@ export interface components {
|
|
|
438
444
|
api_key_id: string;
|
|
439
445
|
/**
|
|
440
446
|
* Format: int64
|
|
441
|
-
* @description
|
|
447
|
+
* @description The portion served from the upstream prefix cache, which costs an order of magnitude less than ordinary input
|
|
442
448
|
*/
|
|
443
449
|
cache_read_tokens: number;
|
|
444
450
|
/** Format: int64 */
|
|
445
451
|
cache_write_tokens: number;
|
|
446
|
-
/** @description
|
|
452
|
+
/** @description The error code on failure. Empty on success */
|
|
447
453
|
error_code: string;
|
|
448
454
|
/** Format: date-time */
|
|
449
455
|
finished_at: string | null;
|
|
@@ -453,7 +459,7 @@ export interface components {
|
|
|
453
459
|
id: string;
|
|
454
460
|
/** Format: int64 */
|
|
455
461
|
input_tokens: number;
|
|
456
|
-
/** @description
|
|
462
|
+
/** @description The model named in the request */
|
|
457
463
|
model_id: string;
|
|
458
464
|
/** Format: int64 */
|
|
459
465
|
output_tokens: number;
|
|
@@ -466,23 +472,23 @@ export interface components {
|
|
|
466
472
|
/** @enum {string} */
|
|
467
473
|
status: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
468
474
|
stream: boolean;
|
|
469
|
-
/** @description
|
|
475
|
+
/** @description The id of the request on the upstream side. Quote it when reporting a problem */
|
|
470
476
|
upstream_request_id: string;
|
|
471
477
|
/**
|
|
472
478
|
* Format: int64
|
|
473
|
-
* @description
|
|
479
|
+
* @description The HTTP status returned upstream. 0 indicates that the request never reached it
|
|
474
480
|
*/
|
|
475
481
|
upstream_status: number;
|
|
476
482
|
/**
|
|
477
|
-
* @description upstream
|
|
483
|
+
* @description upstream means the figures were reported by the provider; estimated means they were derived from the character classes of the payload
|
|
478
484
|
* @enum {string}
|
|
479
485
|
*/
|
|
480
486
|
usage_source: "none" | "upstream" | "estimated";
|
|
481
487
|
};
|
|
482
488
|
CursorPageRequestResource: {
|
|
483
|
-
/** @description
|
|
489
|
+
/** @description The items in this page */
|
|
484
490
|
items: components["schemas"]["RequestResource"][];
|
|
485
|
-
/** @description
|
|
491
|
+
/** @description The cursor for the next page. Empty on the last page */
|
|
486
492
|
next_cursor: string;
|
|
487
493
|
};
|
|
488
494
|
APIKeyUsageResource: {
|
|
@@ -543,7 +549,7 @@ export interface components {
|
|
|
543
549
|
cache_write_tokens: number;
|
|
544
550
|
/**
|
|
545
551
|
* Format: date-time
|
|
546
|
-
* @description
|
|
552
|
+
* @description Start of the bucket, inclusive
|
|
547
553
|
*/
|
|
548
554
|
from: string;
|
|
549
555
|
/** Format: int64 */
|
|
@@ -556,13 +562,36 @@ export interface components {
|
|
|
556
562
|
requests: number;
|
|
557
563
|
/**
|
|
558
564
|
* Format: date-time
|
|
559
|
-
* @description
|
|
565
|
+
* @description End of the bucket, exclusive
|
|
560
566
|
*/
|
|
561
567
|
to: string;
|
|
562
568
|
};
|
|
563
569
|
UsageTimelineResponseBody: {
|
|
564
570
|
items: components["schemas"]["UsageBucketResource"][];
|
|
565
571
|
};
|
|
572
|
+
/**
|
|
573
|
+
* @description A single mismatch between the request and the contract.
|
|
574
|
+
*
|
|
575
|
+
* Use `field` to locate the input, `rule` to decide what to tell the user, and
|
|
576
|
+
* `reason` only for diagnostics.
|
|
577
|
+
*/
|
|
578
|
+
Violation: {
|
|
579
|
+
/**
|
|
580
|
+
* @description Dot-separated path to the field, such as `name` or
|
|
581
|
+
* `schedule.0.start_time_seconds`.
|
|
582
|
+
*/
|
|
583
|
+
field: string;
|
|
584
|
+
/**
|
|
585
|
+
* @description The JSON Schema keyword that failed, such as `minLength`, `minimum` or
|
|
586
|
+
* `pattern`.
|
|
587
|
+
*/
|
|
588
|
+
rule: string;
|
|
589
|
+
/**
|
|
590
|
+
* @description The validator's own wording, in English. Intended for diagnostics; do not
|
|
591
|
+
* display it to end users.
|
|
592
|
+
*/
|
|
593
|
+
reason?: string;
|
|
594
|
+
};
|
|
566
595
|
};
|
|
567
596
|
responses: never;
|
|
568
597
|
parameters: never;
|
|
@@ -575,11 +604,11 @@ export interface operations {
|
|
|
575
604
|
"list-api-keys": {
|
|
576
605
|
parameters: {
|
|
577
606
|
query?: {
|
|
578
|
-
/** @description
|
|
607
|
+
/** @description Maximum number of items in this page */
|
|
579
608
|
limit?: number;
|
|
580
|
-
/** @description
|
|
609
|
+
/** @description Number of items to skip. Use the cursor-paged endpoint to page deeper */
|
|
581
610
|
offset?: number;
|
|
582
|
-
/** @description
|
|
611
|
+
/** @description Restricts the result to the specified status. Every status is returned while this is absent */
|
|
583
612
|
status?: "active" | "disabled" | "revoked";
|
|
584
613
|
};
|
|
585
614
|
header?: never;
|
|
@@ -863,19 +892,19 @@ export interface operations {
|
|
|
863
892
|
"list-requests": {
|
|
864
893
|
parameters: {
|
|
865
894
|
query: {
|
|
866
|
-
/** @description
|
|
895
|
+
/** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
|
|
867
896
|
from: string;
|
|
868
|
-
/** @description
|
|
897
|
+
/** @description End of the range, exclusive. RFC 3339, carrying a timezone offset */
|
|
869
898
|
to: string;
|
|
870
|
-
/** @description
|
|
899
|
+
/** @description Restricts the result to the specified model */
|
|
871
900
|
model_id?: string;
|
|
872
|
-
/** @description
|
|
901
|
+
/** @description Restricts the result to the specified API key */
|
|
873
902
|
api_key_id?: string;
|
|
874
|
-
/** @description
|
|
903
|
+
/** @description Restricts the result to the specified status */
|
|
875
904
|
status?: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
876
|
-
/** @description
|
|
905
|
+
/** @description Maximum number of items in this page */
|
|
877
906
|
limit?: number;
|
|
878
|
-
/** @description
|
|
907
|
+
/** @description The `next_cursor` returned by the previous page. Omitted on the first page */
|
|
879
908
|
cursor?: string;
|
|
880
909
|
};
|
|
881
910
|
header?: never;
|
|
@@ -938,15 +967,15 @@ export interface operations {
|
|
|
938
967
|
"list-usage-by-api-key": {
|
|
939
968
|
parameters: {
|
|
940
969
|
query: {
|
|
941
|
-
/** @description
|
|
970
|
+
/** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
|
|
942
971
|
from: string;
|
|
943
|
-
/** @description
|
|
972
|
+
/** @description End of the range, exclusive. RFC 3339, carrying a timezone offset */
|
|
944
973
|
to: string;
|
|
945
|
-
/** @description
|
|
974
|
+
/** @description Restricts the result to the specified model */
|
|
946
975
|
model_id?: string;
|
|
947
|
-
/** @description
|
|
976
|
+
/** @description Restricts the result to the specified API key */
|
|
948
977
|
api_key_id?: string;
|
|
949
|
-
/** @description
|
|
978
|
+
/** @description Restricts the result to the specified status */
|
|
950
979
|
status?: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
951
980
|
};
|
|
952
981
|
header?: never;
|
|
@@ -978,15 +1007,15 @@ export interface operations {
|
|
|
978
1007
|
"list-usage-by-model": {
|
|
979
1008
|
parameters: {
|
|
980
1009
|
query: {
|
|
981
|
-
/** @description
|
|
1010
|
+
/** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
|
|
982
1011
|
from: string;
|
|
983
|
-
/** @description
|
|
1012
|
+
/** @description End of the range, exclusive. RFC 3339, carrying a timezone offset */
|
|
984
1013
|
to: string;
|
|
985
|
-
/** @description
|
|
1014
|
+
/** @description Restricts the result to the specified model */
|
|
986
1015
|
model_id?: string;
|
|
987
|
-
/** @description
|
|
1016
|
+
/** @description Restricts the result to the specified API key */
|
|
988
1017
|
api_key_id?: string;
|
|
989
|
-
/** @description
|
|
1018
|
+
/** @description Restricts the result to the specified status */
|
|
990
1019
|
status?: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
991
1020
|
};
|
|
992
1021
|
header?: never;
|
|
@@ -1018,15 +1047,15 @@ export interface operations {
|
|
|
1018
1047
|
"get-usage-summary": {
|
|
1019
1048
|
parameters: {
|
|
1020
1049
|
query: {
|
|
1021
|
-
/** @description
|
|
1050
|
+
/** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
|
|
1022
1051
|
from: string;
|
|
1023
|
-
/** @description
|
|
1052
|
+
/** @description End of the range, exclusive. RFC 3339, carrying a timezone offset */
|
|
1024
1053
|
to: string;
|
|
1025
|
-
/** @description
|
|
1054
|
+
/** @description Restricts the result to the specified model */
|
|
1026
1055
|
model_id?: string;
|
|
1027
|
-
/** @description
|
|
1056
|
+
/** @description Restricts the result to the specified API key */
|
|
1028
1057
|
api_key_id?: string;
|
|
1029
|
-
/** @description
|
|
1058
|
+
/** @description Restricts the result to the specified status */
|
|
1030
1059
|
status?: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
1031
1060
|
};
|
|
1032
1061
|
header?: never;
|
|
@@ -1058,17 +1087,17 @@ export interface operations {
|
|
|
1058
1087
|
"get-usage-timeline": {
|
|
1059
1088
|
parameters: {
|
|
1060
1089
|
query: {
|
|
1061
|
-
/** @description
|
|
1090
|
+
/** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
|
|
1062
1091
|
from: string;
|
|
1063
|
-
/** @description
|
|
1092
|
+
/** @description End of the range, exclusive. RFC 3339, carrying a timezone offset */
|
|
1064
1093
|
to: string;
|
|
1065
|
-
/** @description
|
|
1094
|
+
/** @description Restricts the result to the specified model */
|
|
1066
1095
|
model_id?: string;
|
|
1067
|
-
/** @description
|
|
1096
|
+
/** @description Restricts the result to the specified API key */
|
|
1068
1097
|
api_key_id?: string;
|
|
1069
|
-
/** @description
|
|
1098
|
+
/** @description Restricts the result to the specified status */
|
|
1070
1099
|
status?: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
1071
|
-
/** @description
|
|
1100
|
+
/** @description The length of each bucket, written as a duration such as 1h or 24h. The number of buckets is limited to 100 */
|
|
1072
1101
|
bucket?: string;
|
|
1073
1102
|
};
|
|
1074
1103
|
header?: never;
|
|
@@ -22,6 +22,8 @@ export type RestoreBackupBody = NonNullable<operations["restore-backup"]["reques
|
|
|
22
22
|
export type ListDiskTypesResult = operations["list-disk-types"]["responses"][200]["content"]["application/json"];
|
|
23
23
|
/** `GET /api/v1/disk-types` 的查询参数。 */
|
|
24
24
|
export type ListDiskTypesQuery = operations["list-disk-types"]["parameters"]["query"];
|
|
25
|
+
/** `GET /api/v1/disk-types/{diskTypeId}` 成功时的响应体。 */
|
|
26
|
+
export type GetDiskTypeResult = operations["get-disk-type"]["responses"][200]["content"]["application/json"];
|
|
25
27
|
/** `GET /api/v1/images` 成功时的响应体。 */
|
|
26
28
|
export type ListImagesResult = operations["list-images"]["responses"][200]["content"]["application/json"];
|
|
27
29
|
/** `GET /api/v1/images` 的查询参数。 */
|
|
@@ -68,12 +70,12 @@ export type GetFloatingIpResult = operations["get-floating-ip"]["responses"][200
|
|
|
68
70
|
export type SetFloatingIpBandwidthResult = operations["set-floating-ip-bandwidth"]["responses"][200]["content"]["application/json"];
|
|
69
71
|
/** `PUT /api/v1/floating-ips/{floatingIpId}/bandwidth` 的请求体。 */
|
|
70
72
|
export type SetFloatingIpBandwidthBody = NonNullable<operations["set-floating-ip-bandwidth"]["requestBody"]>["content"]["application/json"];
|
|
71
|
-
/** `DELETE /api/v1/floating-ips/{floatingIpId}/binding` 成功时的响应体。 */
|
|
72
|
-
export type UnbindFloatingIpResult = operations["unbind-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
73
73
|
/** `PUT /api/v1/floating-ips/{floatingIpId}/binding` 成功时的响应体。 */
|
|
74
74
|
export type BindFloatingIpResult = operations["bind-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
75
75
|
/** `PUT /api/v1/floating-ips/{floatingIpId}/binding` 的请求体。 */
|
|
76
76
|
export type BindFloatingIpBody = NonNullable<operations["bind-floating-ip"]["requestBody"]>["content"]["application/json"];
|
|
77
|
+
/** `DELETE /api/v1/floating-ips/{floatingIpId}/binding` 成功时的响应体。 */
|
|
78
|
+
export type UnbindFloatingIpResult = operations["unbind-floating-ip"]["responses"][200]["content"]["application/json"];
|
|
77
79
|
/** `GET /api/v1/instances` 成功时的响应体。 */
|
|
78
80
|
export type ListInstancesResult = operations["list-instances"]["responses"][200]["content"]["application/json"];
|
|
79
81
|
/** `GET /api/v1/instances` 的查询参数。 */
|