@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.
@@ -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` 一类的地方即可,转发接口同时接受 OpenAIAnthropicGemini 三种调用格式。
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;
@@ -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 false 时无意义 */
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 建这把 key 的人
306
+ * @description Who created the key
303
307
  */
304
308
  created_by: string;
305
309
  /**
306
310
  * Format: date-time
307
- * @description 到期时间;null 表示永不过期
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 时只允许 allowed_models 里的模型 */
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 true 表示这把 key 因项目停服被停,需要项目恢复后才能再用 */
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 false 时忽略 */
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 给自己看的名字,比如「CI」「生产」 */
360
+ /** @description A name for the holder's own use, such as CI or Production */
357
361
  name: string;
358
- /** @description true 时只允许 allowed_models 里的模型 */
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 false 时无意义 */
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 建这把 key 的人
372
+ * @description Who created the key
369
373
  */
370
374
  created_by: string;
371
375
  /**
372
376
  * Format: date-time
373
- * @description 到期时间;null 表示永不过期
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 时只允许 allowed_models 里的模型 */
392
+ /** @description While true, only the models listed in `allowed_models` are permitted */
389
393
  restrict_models: boolean;
390
- /** @description 完整的 key,**只在这一次响应里出现**,请立即保存 */
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 true 表示这把 key 因项目停服被停,需要项目恢复后才能再用 */
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 true 表示改成永不过期 */
403
+ /** @description True removes the expiry */
400
404
  clear_expiry?: boolean;
401
405
  /**
402
406
  * Format: date-time
403
- * @description 改到期时间;要改成永不过期请用 clear_expiry
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 同一系列聚在一起用,如 claudegptgemini */
420
+ /** @description Groups the models of one family together, such as claude, gpt or gemini */
417
421
  family: string;
418
- /** @description 请求体里 model 字段要填的那个字符串 */
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 上游那边的请求 id,报障时提供给我们 */
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 上游返回的 HTTP 状态码;0 表示没打到上游
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 是上游报的,estimated 是我们按字符类估的
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 起点,含。RFC 3339,带时区偏移 */
870
+ /** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
867
871
  from: string;
868
- /** @description 终点,不含。RFC 3339,带时区偏移 */
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 只看这把 key */
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 上一页返回的 next_cursor;首页不填 */
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 起点,含。RFC 3339,带时区偏移 */
945
+ /** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
942
946
  from: string;
943
- /** @description 终点,不含。RFC 3339,带时区偏移 */
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 只看这把 key */
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 起点,含。RFC 3339,带时区偏移 */
985
+ /** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
982
986
  from: string;
983
- /** @description 终点,不含。RFC 3339,带时区偏移 */
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 只看这把 key */
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 起点,含。RFC 3339,带时区偏移 */
1025
+ /** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
1022
1026
  from: string;
1023
- /** @description 终点,不含。RFC 3339,带时区偏移 */
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 只看这把 key */
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 起点,含。RFC 3339,带时区偏移 */
1065
+ /** @description Start of the range, inclusive. RFC 3339, carrying a timezone offset */
1062
1066
  from: string;
1063
- /** @description 终点,不含。RFC 3339,带时区偏移 */
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 只看这把 key */
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 每段多长,Go 的时长写法,如 1h24h。段数上限 100 */
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` 的查询参数。 */