@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.
@@ -10,14 +10,14 @@ export interface paths {
10
10
  path?: never;
11
11
  cookie?: never;
12
12
  };
13
- /** 列出 API Key */
13
+ /** List API keys */
14
14
  get: operations["list-api-keys"];
15
15
  put?: never;
16
16
  /**
17
- * 签发一把 API Key
18
- * @description 响应里的 `secret` 是完整的 key,**只在这一次出现**——服务端只存它的哈希,之后任何接口都不会再返回它。丢了只能撤销重建。
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
- * 把它填进 `OPENAI_API_KEY` 一类的地方即可,转发接口同时接受 OpenAI、Anthropic、Gemini 三种调用格式。
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
- /** 查看 API Key */
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
- * 修改 API Key
45
- * @description 只改属性,不改状态——启用、停用、撤销各有自己的接口。
44
+ * Update an API key
45
+ * @description Attributes only. Enabling, disabling and revoking each have their own endpoint.
46
46
  *
47
- * 没提到的字段保持不变。要把到期时间改成「永不过期」请传 `clear_expiry: true`,而不是把 `expires_at` 传成 null。
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
- * 已撤销的 key 不接受任何修改。
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
- * 停用 API Key
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
- * 启用 API Key
85
- * @description 两种情况开不回来:已撤销的(`API_KEY_REVOKED`),以及因项目停服被停的(`API_KEY_PROJECT_SUSPENDED`,响应里 `suspended` 为 true)。后者要等项目恢复。
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
- * 撤销 API Key
105
- * @description **不可逆。** 用于这把 key 泄露了的情况——比如被提交进了仓库。
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
- * 记录不删除:这把 key 在被撤销前打了多少请求仍然查得到,那正是出事之后要看的。
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 已下架(`retired`)的模型不出现在这里,但仍然查得到——见查看单个模型。
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` 和 `max_output_tokens` 仅供客户端提示:服务端不据此截断,请求体原样转给上游。
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 已下架的模型在这里查得到,但转发时会被拒(`MODEL_RETIRED`)——这和「这个模型不存在」是两件事,前者说明它曾经有过。
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 游标翻页,按时间倒序。`next_cursor` 为空表示已经到底。
168
+ * List request records
169
+ * @description Cursor-paged, most recent first. An empty `next_cursor` indicates the last page.
170
170
  *
171
- * **不返回请求体和响应体**——canopy 一张表都不存它们。排障请提供 `upstream_request_id`。
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` 为 `estimated` 表示上游这次没给用量,那几个数是我们按字符类估的。
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
- * 按 API Key 看用量
210
- * @description 用来回答「哪把 key 在烧钱」。已撤销的 key 仍然出现在这里——它在被撤销前的用量正是要看的东西。
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` / `to` 必填,跨度不超过 31 天。两者带时区偏移,传 `2026-08-01T00:00:00+08:00` 得到的就是东八区那一刻起算。
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
- * 五档 token 分开给:缓存命中的读取比普通输入便宜一个数量级,合成一个总数就再也拆不开了。
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 从 `from` 起按 `bucket` 切段,最后一段可能不满。段数上限 100。
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
- * 要按本地日切分就把 `from` 传成本地时间的零点(带偏移)、`bucket` 传 `24h`——服务端不猜时区。
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 为 false 时无意义 */
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 建这把 key 的人
308
+ * @description Who created the key
303
309
  */
304
310
  created_by: string;
305
311
  /**
306
312
  * Format: date-time
307
- * @description 到期时间;null 表示永不过期
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 时只允许 allowed_models 里的模型 */
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 true 表示这把 key 因项目停服被停,需要项目恢复后才能再用 */
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 为 false 时忽略 */
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 给自己看的名字,比如「CI」「生产」 */
362
+ /** @description A name for the holder's own use, such as CI or Production */
357
363
  name: string;
358
- /** @description true 时只允许 allowed_models 里的模型 */
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 为 false 时无意义 */
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 建这把 key 的人
374
+ * @description Who created the key
369
375
  */
370
376
  created_by: string;
371
377
  /**
372
378
  * Format: date-time
373
- * @description 到期时间;null 表示永不过期
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 时只允许 allowed_models 里的模型 */
394
+ /** @description While true, only the models listed in `allowed_models` are permitted */
389
395
  restrict_models: boolean;
390
- /** @description 完整的 key,**只在这一次响应里出现**,请立即保存 */
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 true 表示这把 key 因项目停服被停,需要项目恢复后才能再用 */
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 true 表示改成永不过期 */
405
+ /** @description True removes the expiry */
400
406
  clear_expiry?: boolean;
401
407
  /**
402
408
  * Format: date-time
403
- * @description 改到期时间;要改成永不过期请用 clear_expiry
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 同一系列聚在一起用,如 claude、gpt、gemini */
422
+ /** @description Groups the models of one family together, such as claude, gpt or gemini */
417
423
  family: string;
418
- /** @description 请求体里 model 字段要填的那个字符串 */
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 上游那边的请求 id,报障时提供给我们 */
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 上游返回的 HTTP 状态码;0 表示没打到上游
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 是上游报的,estimated 是我们按字符类估的
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 起点,含。RFC 3339,带时区偏移 */
895
+ /** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
867
896
  from: string;
868
- /** @description 终点,不含。RFC 3339,带时区偏移 */
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 只看这把 key */
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 上一页返回的 next_cursor;首页不填 */
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 起点,含。RFC 3339,带时区偏移 */
970
+ /** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
942
971
  from: string;
943
- /** @description 终点,不含。RFC 3339,带时区偏移 */
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 只看这把 key */
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 起点,含。RFC 3339,带时区偏移 */
1010
+ /** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
982
1011
  from: string;
983
- /** @description 终点,不含。RFC 3339,带时区偏移 */
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 只看这把 key */
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 起点,含。RFC 3339,带时区偏移 */
1050
+ /** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
1022
1051
  from: string;
1023
- /** @description 终点,不含。RFC 3339,带时区偏移 */
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 只看这把 key */
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 起点,含。RFC 3339,带时区偏移 */
1090
+ /** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
1062
1091
  from: string;
1063
- /** @description 终点,不含。RFC 3339,带时区偏移 */
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 只看这把 key */
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 每段多长,Go 的时长写法,如 1h、24h。段数上限 100 */
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` 的查询参数。 */