@leaflow/sdk 0.54.3 → 0.55.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/account/v1/index.d.ts +2 -2
- package/dist/account/v1/schema.d.ts +123 -122
- package/dist/assistant/v1/schema.d.ts +4 -0
- package/dist/billing/v1/index.d.ts +8 -2
- package/dist/billing/v1/schema.d.ts +174 -5
- package/dist/canopy/v1/schema.d.ts +113 -109
- package/dist/compute/v1/index.d.ts +4 -2
- package/dist/compute/v1/schema.d.ts +55 -0
- package/dist/dns/v1/index.d.ts +6 -6
- package/dist/dns/v1/schema.d.ts +4 -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 +156 -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 +119 -115
- package/dist/index.d.ts +1 -0
- package/dist/monitoring/v1/index.d.ts +4 -4
- package/dist/monitoring/v1/schema.d.ts +4 -0
- package/dist/notification/v1/schema.d.ts +4 -0
- package/dist/support/v1/schema.d.ts +4 -0
- package/dist/tunnel/v1/schema.d.ts +39 -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;
|
|
@@ -286,6 +286,10 @@ export interface components {
|
|
|
286
286
|
Error: {
|
|
287
287
|
code?: string;
|
|
288
288
|
message: string;
|
|
289
|
+
/**
|
|
290
|
+
* @description What a given `code` carries alongside the message. The keys depend on the code,
|
|
291
|
+
* and a client that does not recognise one ignores it.
|
|
292
|
+
*/
|
|
289
293
|
meta?: {
|
|
290
294
|
[key: string]: unknown;
|
|
291
295
|
};
|
|
@@ -293,114 +297,114 @@ export interface components {
|
|
|
293
297
|
status: number;
|
|
294
298
|
};
|
|
295
299
|
APIKeyResource: {
|
|
296
|
-
/** @description restrict_models
|
|
300
|
+
/** @description Carries no meaning while `restrict_models` is false */
|
|
297
301
|
allowed_models: string[];
|
|
298
302
|
/** Format: date-time */
|
|
299
303
|
created_at: string;
|
|
300
304
|
/**
|
|
301
305
|
* Format: uuid
|
|
302
|
-
* @description
|
|
306
|
+
* @description Who created the key
|
|
303
307
|
*/
|
|
304
308
|
created_by: string;
|
|
305
309
|
/**
|
|
306
310
|
* Format: date-time
|
|
307
|
-
* @description
|
|
311
|
+
* @description When the key expires. Null means it never expires
|
|
308
312
|
*/
|
|
309
313
|
expires_at: string | null;
|
|
310
314
|
/** Format: uuid */
|
|
311
315
|
id: string;
|
|
312
|
-
/** @description
|
|
316
|
+
/** @description The last four characters of the plaintext */
|
|
313
317
|
last_four: string;
|
|
314
318
|
/**
|
|
315
319
|
* Format: date-time
|
|
316
|
-
* @description
|
|
320
|
+
* @description When the key was last used to forward a request successfully, accurate to about a minute
|
|
317
321
|
*/
|
|
318
322
|
last_used_at: string | null;
|
|
319
323
|
name: string;
|
|
320
|
-
/** @description
|
|
324
|
+
/** @description The leading characters of the plaintext, by which a key is recognised in a list */
|
|
321
325
|
prefix: string;
|
|
322
|
-
/** @description true
|
|
326
|
+
/** @description While true, only the models listed in `allowed_models` are permitted */
|
|
323
327
|
restrict_models: boolean;
|
|
324
328
|
/** @enum {string} */
|
|
325
329
|
status: "active" | "disabled" | "revoked";
|
|
326
|
-
/** @description
|
|
330
|
+
/** @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
331
|
suspended: boolean;
|
|
328
332
|
};
|
|
329
333
|
LengthAwarePageAPIKeyResource: {
|
|
330
|
-
/** @description
|
|
334
|
+
/** @description The items in this page */
|
|
331
335
|
items: components["schemas"]["APIKeyResource"][];
|
|
332
336
|
/**
|
|
333
337
|
* Format: int64
|
|
334
|
-
* @description
|
|
338
|
+
* @description Maximum number of items in this page, echoing the request
|
|
335
339
|
*/
|
|
336
340
|
limit: number;
|
|
337
341
|
/**
|
|
338
342
|
* Format: int64
|
|
339
|
-
* @description
|
|
343
|
+
* @description Number of items skipped, echoing the request
|
|
340
344
|
*/
|
|
341
345
|
offset: number;
|
|
342
346
|
/**
|
|
343
347
|
* Format: int64
|
|
344
|
-
* @description
|
|
348
|
+
* @description Total number of matches, not only this page
|
|
345
349
|
*/
|
|
346
350
|
total: number;
|
|
347
351
|
};
|
|
348
352
|
CreateAPIKeyRequestBody: {
|
|
349
|
-
/** @description restrict_models
|
|
353
|
+
/** @description Ignored while `restrict_models` is false */
|
|
350
354
|
allowed_models?: string[] | null;
|
|
351
355
|
/**
|
|
352
356
|
* Format: date-time
|
|
353
|
-
* @description
|
|
357
|
+
* @description When the key expires. Omitted means it never expires
|
|
354
358
|
*/
|
|
355
359
|
expires_at?: string | null;
|
|
356
|
-
/** @description
|
|
360
|
+
/** @description A name for the holder's own use, such as CI or Production */
|
|
357
361
|
name: string;
|
|
358
|
-
/** @description true
|
|
362
|
+
/** @description While true, only the models listed in `allowed_models` are permitted */
|
|
359
363
|
restrict_models?: boolean;
|
|
360
364
|
};
|
|
361
365
|
IssuedAPIKeyResource: {
|
|
362
|
-
/** @description restrict_models
|
|
366
|
+
/** @description Carries no meaning while `restrict_models` is false */
|
|
363
367
|
allowed_models: string[];
|
|
364
368
|
/** Format: date-time */
|
|
365
369
|
created_at: string;
|
|
366
370
|
/**
|
|
367
371
|
* Format: uuid
|
|
368
|
-
* @description
|
|
372
|
+
* @description Who created the key
|
|
369
373
|
*/
|
|
370
374
|
created_by: string;
|
|
371
375
|
/**
|
|
372
376
|
* Format: date-time
|
|
373
|
-
* @description
|
|
377
|
+
* @description When the key expires. Null means it never expires
|
|
374
378
|
*/
|
|
375
379
|
expires_at: string | null;
|
|
376
380
|
/** Format: uuid */
|
|
377
381
|
id: string;
|
|
378
|
-
/** @description
|
|
382
|
+
/** @description The last four characters of the plaintext */
|
|
379
383
|
last_four: string;
|
|
380
384
|
/**
|
|
381
385
|
* Format: date-time
|
|
382
|
-
* @description
|
|
386
|
+
* @description When the key was last used to forward a request successfully, accurate to about a minute
|
|
383
387
|
*/
|
|
384
388
|
last_used_at: string | null;
|
|
385
389
|
name: string;
|
|
386
|
-
/** @description
|
|
390
|
+
/** @description The leading characters of the plaintext, by which a key is recognised in a list */
|
|
387
391
|
prefix: string;
|
|
388
|
-
/** @description true
|
|
392
|
+
/** @description While true, only the models listed in `allowed_models` are permitted */
|
|
389
393
|
restrict_models: boolean;
|
|
390
|
-
/** @description
|
|
394
|
+
/** @description The complete key, **returned in this response only**. Store it immediately */
|
|
391
395
|
secret: string;
|
|
392
396
|
/** @enum {string} */
|
|
393
397
|
status: "active" | "disabled" | "revoked";
|
|
394
|
-
/** @description
|
|
398
|
+
/** @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
399
|
suspended: boolean;
|
|
396
400
|
};
|
|
397
401
|
UpdateAPIKeyRequestBody: {
|
|
398
402
|
allowed_models?: string[] | null;
|
|
399
|
-
/** @description
|
|
403
|
+
/** @description True removes the expiry */
|
|
400
404
|
clear_expiry?: boolean;
|
|
401
405
|
/**
|
|
402
406
|
* Format: date-time
|
|
403
|
-
* @description
|
|
407
|
+
* @description Sets the expiry. To remove it, use `clear_expiry`
|
|
404
408
|
*/
|
|
405
409
|
expires_at?: string | null;
|
|
406
410
|
name?: string | null;
|
|
@@ -409,20 +413,20 @@ export interface components {
|
|
|
409
413
|
ModelResource: {
|
|
410
414
|
/**
|
|
411
415
|
* Format: int64
|
|
412
|
-
* @description
|
|
416
|
+
* @description The context window. Advisory only; the server does not truncate on its basis
|
|
413
417
|
*/
|
|
414
418
|
context_length: number;
|
|
415
419
|
display_name: string;
|
|
416
|
-
/** @description
|
|
420
|
+
/** @description Groups the models of one family together, such as claude, gpt or gemini */
|
|
417
421
|
family: string;
|
|
418
|
-
/** @description
|
|
422
|
+
/** @description The string to send in the `model` field of the request body */
|
|
419
423
|
id: string;
|
|
420
424
|
/**
|
|
421
425
|
* Format: int64
|
|
422
|
-
* @description
|
|
426
|
+
* @description The maximum output length. Advisory only
|
|
423
427
|
*/
|
|
424
428
|
max_output_tokens: number;
|
|
425
|
-
/** @description reasoning_effort
|
|
429
|
+
/** @description The values accepted for `reasoning_effort`. Empty means it is not supported */
|
|
426
430
|
reasoning_tiers: string[];
|
|
427
431
|
/** @enum {string} */
|
|
428
432
|
status: "available" | "draining" | "retired";
|
|
@@ -438,12 +442,12 @@ export interface components {
|
|
|
438
442
|
api_key_id: string;
|
|
439
443
|
/**
|
|
440
444
|
* Format: int64
|
|
441
|
-
* @description
|
|
445
|
+
* @description The portion served from the upstream prefix cache, which costs an order of magnitude less than ordinary input
|
|
442
446
|
*/
|
|
443
447
|
cache_read_tokens: number;
|
|
444
448
|
/** Format: int64 */
|
|
445
449
|
cache_write_tokens: number;
|
|
446
|
-
/** @description
|
|
450
|
+
/** @description The error code on failure. Empty on success */
|
|
447
451
|
error_code: string;
|
|
448
452
|
/** Format: date-time */
|
|
449
453
|
finished_at: string | null;
|
|
@@ -453,7 +457,7 @@ export interface components {
|
|
|
453
457
|
id: string;
|
|
454
458
|
/** Format: int64 */
|
|
455
459
|
input_tokens: number;
|
|
456
|
-
/** @description
|
|
460
|
+
/** @description The model named in the request */
|
|
457
461
|
model_id: string;
|
|
458
462
|
/** Format: int64 */
|
|
459
463
|
output_tokens: number;
|
|
@@ -466,23 +470,23 @@ export interface components {
|
|
|
466
470
|
/** @enum {string} */
|
|
467
471
|
status: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
468
472
|
stream: boolean;
|
|
469
|
-
/** @description
|
|
473
|
+
/** @description The id of the request on the upstream side. Quote it when reporting a problem */
|
|
470
474
|
upstream_request_id: string;
|
|
471
475
|
/**
|
|
472
476
|
* Format: int64
|
|
473
|
-
* @description
|
|
477
|
+
* @description The HTTP status returned upstream. 0 indicates that the request never reached it
|
|
474
478
|
*/
|
|
475
479
|
upstream_status: number;
|
|
476
480
|
/**
|
|
477
|
-
* @description upstream
|
|
481
|
+
* @description upstream means the figures were reported by the provider; estimated means they were derived from the character classes of the payload
|
|
478
482
|
* @enum {string}
|
|
479
483
|
*/
|
|
480
484
|
usage_source: "none" | "upstream" | "estimated";
|
|
481
485
|
};
|
|
482
486
|
CursorPageRequestResource: {
|
|
483
|
-
/** @description
|
|
487
|
+
/** @description The items in this page */
|
|
484
488
|
items: components["schemas"]["RequestResource"][];
|
|
485
|
-
/** @description
|
|
489
|
+
/** @description The cursor for the next page. Empty on the last page */
|
|
486
490
|
next_cursor: string;
|
|
487
491
|
};
|
|
488
492
|
APIKeyUsageResource: {
|
|
@@ -543,7 +547,7 @@ export interface components {
|
|
|
543
547
|
cache_write_tokens: number;
|
|
544
548
|
/**
|
|
545
549
|
* Format: date-time
|
|
546
|
-
* @description
|
|
550
|
+
* @description Start of the bucket, inclusive
|
|
547
551
|
*/
|
|
548
552
|
from: string;
|
|
549
553
|
/** Format: int64 */
|
|
@@ -556,7 +560,7 @@ export interface components {
|
|
|
556
560
|
requests: number;
|
|
557
561
|
/**
|
|
558
562
|
* Format: date-time
|
|
559
|
-
* @description
|
|
563
|
+
* @description End of the bucket, exclusive
|
|
560
564
|
*/
|
|
561
565
|
to: string;
|
|
562
566
|
};
|
|
@@ -575,11 +579,11 @@ export interface operations {
|
|
|
575
579
|
"list-api-keys": {
|
|
576
580
|
parameters: {
|
|
577
581
|
query?: {
|
|
578
|
-
/** @description
|
|
582
|
+
/** @description Maximum number of items in this page */
|
|
579
583
|
limit?: number;
|
|
580
|
-
/** @description
|
|
584
|
+
/** @description Number of items to skip. Use the cursor-paged endpoint to page deeper */
|
|
581
585
|
offset?: number;
|
|
582
|
-
/** @description
|
|
586
|
+
/** @description Restricts the result to the specified status. Every status is returned while this is absent */
|
|
583
587
|
status?: "active" | "disabled" | "revoked";
|
|
584
588
|
};
|
|
585
589
|
header?: never;
|
|
@@ -863,19 +867,19 @@ export interface operations {
|
|
|
863
867
|
"list-requests": {
|
|
864
868
|
parameters: {
|
|
865
869
|
query: {
|
|
866
|
-
/** @description
|
|
870
|
+
/** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
|
|
867
871
|
from: string;
|
|
868
|
-
/** @description
|
|
872
|
+
/** @description End of the range, exclusive. RFC 3339, carrying a timezone offset */
|
|
869
873
|
to: string;
|
|
870
|
-
/** @description
|
|
874
|
+
/** @description Restricts the result to the specified model */
|
|
871
875
|
model_id?: string;
|
|
872
|
-
/** @description
|
|
876
|
+
/** @description Restricts the result to the specified API key */
|
|
873
877
|
api_key_id?: string;
|
|
874
|
-
/** @description
|
|
878
|
+
/** @description Restricts the result to the specified status */
|
|
875
879
|
status?: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
876
|
-
/** @description
|
|
880
|
+
/** @description Maximum number of items in this page */
|
|
877
881
|
limit?: number;
|
|
878
|
-
/** @description
|
|
882
|
+
/** @description The `next_cursor` returned by the previous page. Omitted on the first page */
|
|
879
883
|
cursor?: string;
|
|
880
884
|
};
|
|
881
885
|
header?: never;
|
|
@@ -938,15 +942,15 @@ export interface operations {
|
|
|
938
942
|
"list-usage-by-api-key": {
|
|
939
943
|
parameters: {
|
|
940
944
|
query: {
|
|
941
|
-
/** @description
|
|
945
|
+
/** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
|
|
942
946
|
from: string;
|
|
943
|
-
/** @description
|
|
947
|
+
/** @description End of the range, exclusive. RFC 3339, carrying a timezone offset */
|
|
944
948
|
to: string;
|
|
945
|
-
/** @description
|
|
949
|
+
/** @description Restricts the result to the specified model */
|
|
946
950
|
model_id?: string;
|
|
947
|
-
/** @description
|
|
951
|
+
/** @description Restricts the result to the specified API key */
|
|
948
952
|
api_key_id?: string;
|
|
949
|
-
/** @description
|
|
953
|
+
/** @description Restricts the result to the specified status */
|
|
950
954
|
status?: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
951
955
|
};
|
|
952
956
|
header?: never;
|
|
@@ -978,15 +982,15 @@ export interface operations {
|
|
|
978
982
|
"list-usage-by-model": {
|
|
979
983
|
parameters: {
|
|
980
984
|
query: {
|
|
981
|
-
/** @description
|
|
985
|
+
/** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
|
|
982
986
|
from: string;
|
|
983
|
-
/** @description
|
|
987
|
+
/** @description End of the range, exclusive. RFC 3339, carrying a timezone offset */
|
|
984
988
|
to: string;
|
|
985
|
-
/** @description
|
|
989
|
+
/** @description Restricts the result to the specified model */
|
|
986
990
|
model_id?: string;
|
|
987
|
-
/** @description
|
|
991
|
+
/** @description Restricts the result to the specified API key */
|
|
988
992
|
api_key_id?: string;
|
|
989
|
-
/** @description
|
|
993
|
+
/** @description Restricts the result to the specified status */
|
|
990
994
|
status?: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
991
995
|
};
|
|
992
996
|
header?: never;
|
|
@@ -1018,15 +1022,15 @@ export interface operations {
|
|
|
1018
1022
|
"get-usage-summary": {
|
|
1019
1023
|
parameters: {
|
|
1020
1024
|
query: {
|
|
1021
|
-
/** @description
|
|
1025
|
+
/** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
|
|
1022
1026
|
from: string;
|
|
1023
|
-
/** @description
|
|
1027
|
+
/** @description End of the range, exclusive. RFC 3339, carrying a timezone offset */
|
|
1024
1028
|
to: string;
|
|
1025
|
-
/** @description
|
|
1029
|
+
/** @description Restricts the result to the specified model */
|
|
1026
1030
|
model_id?: string;
|
|
1027
|
-
/** @description
|
|
1031
|
+
/** @description Restricts the result to the specified API key */
|
|
1028
1032
|
api_key_id?: string;
|
|
1029
|
-
/** @description
|
|
1033
|
+
/** @description Restricts the result to the specified status */
|
|
1030
1034
|
status?: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
1031
1035
|
};
|
|
1032
1036
|
header?: never;
|
|
@@ -1058,17 +1062,17 @@ export interface operations {
|
|
|
1058
1062
|
"get-usage-timeline": {
|
|
1059
1063
|
parameters: {
|
|
1060
1064
|
query: {
|
|
1061
|
-
/** @description
|
|
1065
|
+
/** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
|
|
1062
1066
|
from: string;
|
|
1063
|
-
/** @description
|
|
1067
|
+
/** @description End of the range, exclusive. RFC 3339, carrying a timezone offset */
|
|
1064
1068
|
to: string;
|
|
1065
|
-
/** @description
|
|
1069
|
+
/** @description Restricts the result to the specified model */
|
|
1066
1070
|
model_id?: string;
|
|
1067
|
-
/** @description
|
|
1071
|
+
/** @description Restricts the result to the specified API key */
|
|
1068
1072
|
api_key_id?: string;
|
|
1069
|
-
/** @description
|
|
1073
|
+
/** @description Restricts the result to the specified status */
|
|
1070
1074
|
status?: "in_flight" | "succeeded" | "refused" | "upstream_failed" | "client_aborted";
|
|
1071
|
-
/** @description
|
|
1075
|
+
/** @description The length of each bucket, written as a duration such as 1h or 24h. The number of buckets is limited to 100 */
|
|
1072
1076
|
bucket?: string;
|
|
1073
1077
|
};
|
|
1074
1078
|
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` 的查询参数。 */
|