@leaflow/sdk 0.79.0 → 0.80.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.
@@ -27,6 +27,8 @@ export type ListRatesQuery = operations["list-rates"]["parameters"]["query"];
27
27
  export type CreateEstimateResult = operations["create-estimate"]["responses"][200]["content"]["application/json"];
28
28
  /** The request body of `POST /api/v1/estimates`. */
29
29
  export type CreateEstimateBody = NonNullable<operations["create-estimate"]["requestBody"]>["content"]["application/json"];
30
+ /** The success response body of `GET /account/v1/currencies`. */
31
+ export type ListCurrenciesResult = operations["list-currencies"]["responses"][200]["content"]["application/json"];
30
32
  /** The success response body of `GET /account/v1/billing-accounts`. */
31
33
  export type ListBillingAccountsResult = operations["list-billing-accounts"]["responses"][200]["content"]["application/json"];
32
34
  /** The success response body of `POST /account/v1/billing-accounts`. */
@@ -206,6 +206,27 @@ export interface paths {
206
206
  patch?: never;
207
207
  trace?: never;
208
208
  };
209
+ "/account/v1/currencies": {
210
+ parameters: {
211
+ query?: never;
212
+ header?: never;
213
+ path?: never;
214
+ cookie?: never;
215
+ };
216
+ /**
217
+ * List currencies accounts can be opened in
218
+ * @description The currencies a new billing account can be opened in. A retired currency is not listed,
219
+ * although accounts already opened in it keep working. Not paged: the set is a few rows.
220
+ */
221
+ get: operations["list-currencies"];
222
+ put?: never;
223
+ post?: never;
224
+ delete?: never;
225
+ options?: never;
226
+ head?: never;
227
+ patch?: never;
228
+ trace?: never;
229
+ };
209
230
  "/account/v1/billing-accounts": {
210
231
  parameters: {
211
232
  query?: never;
@@ -1320,6 +1341,22 @@ export interface components {
1320
1341
  /** Format: date-time */
1321
1342
  created_at: string;
1322
1343
  };
1344
+ /** @description A currency a billing account can be opened in. */
1345
+ Currency: {
1346
+ /** @description ISO 4217 alpha-3, uppercase. */
1347
+ code: string;
1348
+ /**
1349
+ * Format: int32
1350
+ * @description Decimal places of the currency, the ISO 4217 minor unit.
1351
+ */
1352
+ exponent: number;
1353
+ name: string;
1354
+ /** @description The smallest top-up accepted. Zero means no lower bound. */
1355
+ minimum_top_up: components["schemas"]["Money"];
1356
+ };
1357
+ CurrencyList: {
1358
+ items: components["schemas"]["Currency"][];
1359
+ };
1323
1360
  BillingAccountCreate: {
1324
1361
  currency: string;
1325
1362
  name?: string;
@@ -2902,6 +2939,27 @@ export interface operations {
2902
2939
  default: components["responses"]["Error"];
2903
2940
  };
2904
2941
  };
2942
+ "list-currencies": {
2943
+ parameters: {
2944
+ query?: never;
2945
+ header?: never;
2946
+ path?: never;
2947
+ cookie?: never;
2948
+ };
2949
+ requestBody?: never;
2950
+ responses: {
2951
+ /** @description OK */
2952
+ 200: {
2953
+ headers: {
2954
+ [name: string]: unknown;
2955
+ };
2956
+ content: {
2957
+ "application/json": components["schemas"]["CurrencyList"];
2958
+ };
2959
+ };
2960
+ default: components["responses"]["Error"];
2961
+ };
2962
+ };
2905
2963
  "list-billing-accounts": {
2906
2964
  parameters: {
2907
2965
  query?: {
@@ -217,7 +217,7 @@ export interface paths {
217
217
  * Create a disk
218
218
  * @description The disk is created in the availability zone of the selected disk type, and an instance must reside in the same zone to attach it. Choosing the disk type therefore determines the zone.
219
219
  *
220
- * A disk type that has been withdrawn is rejected with `DISK_TYPE_RETIRED`, even though its identifier still resolves. Withdrawn types stop appearing in the disk type listing; disks already bought on one keep working and can still be resized.
220
+ * A disk type that is off sale is rejected with `DISK_TYPE_OFF_SALE`, even though its identifier still resolves. Types that are off sale do not appear in the disk type listing; disks already bought on one keep working and can still be resized.
221
221
  *
222
222
  * Replays return HTTP 201 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
223
223
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.79.0",
3
+ "version": "0.80.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {