@leaflow/sdk 0.0.0-dev.218.g44bea88 → 0.0.0-dev.222.g62628b3

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.
@@ -17,6 +17,8 @@ export type UpdateBillingAccountResult = operations["update-billing-account"]["r
17
17
  export type UpdateBillingAccountBody = NonNullable<operations["update-billing-account"]["requestBody"]>["content"]["application/json"];
18
18
  /** The success response body of `GET /account/v1/billing-accounts/{accountId}/balance`. */
19
19
  export type GetAccountBalanceResult = operations["get-account-balance"]["responses"][200]["content"]["application/json"];
20
+ /** The success response body of `GET /account/v1/billing-accounts/{accountId}/metered-usage`. */
21
+ export type GetAccountMeteredUsageResult = operations["get-account-metered-usage"]["responses"][200]["content"]["application/json"];
20
22
  /** The success response body of `GET /account/v1/billing-accounts/{accountId}/payment-options`. */
21
23
  export type ListPaymentOptionsResult = operations["list-payment-options"]["responses"][200]["content"]["application/json"];
22
24
  /** The success response body of `GET /account/v1/projects`. */
@@ -51,10 +53,18 @@ export type SetDefaultPaymentMethodResult = operations["set-default-payment-meth
51
53
  export type PayInvoiceResult = operations["pay-invoice"]["responses"][200]["content"]["application/json"];
52
54
  /** The request body of `POST /account/v1/invoices/{invoiceId}/pay`. */
53
55
  export type PayInvoiceBody = NonNullable<operations["pay-invoice"]["requestBody"]>["content"]["application/json"];
56
+ /** The success response body of `GET /account/v1/invoices/{invoiceId}/payment-preview`. */
57
+ export type PreviewInvoicePaymentResult = operations["preview-invoice-payment"]["responses"][200]["content"]["application/json"];
58
+ /** The query parameters of `GET /account/v1/invoices/{invoiceId}/payment-preview`. */
59
+ export type PreviewInvoicePaymentQuery = operations["preview-invoice-payment"]["parameters"]["query"];
54
60
  /** The success response body of `POST /account/v1/payments`. */
55
61
  export type PayTogetherResult = operations["pay-together"]["responses"][200]["content"]["application/json"];
56
62
  /** The request body of `POST /account/v1/payments`. */
57
63
  export type PayTogetherBody = NonNullable<operations["pay-together"]["requestBody"]>["content"]["application/json"];
64
+ /** The success response body of `POST /account/v1/payments/preview`. */
65
+ export type PreviewPayTogetherResult = operations["preview-pay-together"]["responses"][200]["content"]["application/json"];
66
+ /** The request body of `POST /account/v1/payments/preview`. */
67
+ export type PreviewPayTogetherBody = NonNullable<operations["preview-pay-together"]["requestBody"]>["content"]["application/json"];
58
68
  /** The success response body of `GET /account/v1/invoices`. */
59
69
  export type ListInvoicesResult = operations["list-invoices"]["responses"][200]["content"]["application/json"];
60
70
  /** The query parameters of `GET /account/v1/invoices`. */
@@ -99,6 +109,10 @@ export type ListRenewalPricesResult = operations["list-renewal-prices"]["respons
99
109
  export type RenewSubscriptionResult = operations["renew-subscription"]["responses"][200]["content"]["application/json"];
100
110
  /** The request body of `POST /account/v1/subscriptions/{subscriptionId}/renew`. */
101
111
  export type RenewSubscriptionBody = NonNullable<operations["renew-subscription"]["requestBody"]>["content"]["application/json"];
112
+ /** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/renewal-orders`. */
113
+ export type CreateRenewalOrderResult = operations["create-renewal-order"]["responses"][200]["content"]["application/json"];
114
+ /** The request body of `POST /account/v1/subscriptions/{subscriptionId}/renewal-orders`. */
115
+ export type CreateRenewalOrderBody = NonNullable<operations["create-renewal-order"]["requestBody"]>["content"]["application/json"];
102
116
  /** The success response body of `PUT /account/v1/subscriptions/{subscriptionId}/auto-renew`. */
103
117
  export type SetAutoRenewResult = operations["set-auto-renew"]["responses"][200]["content"]["application/json"];
104
118
  /** The request body of `PUT /account/v1/subscriptions/{subscriptionId}/auto-renew`. */
@@ -117,6 +131,8 @@ export type ListOrdersResult = operations["list-orders"]["responses"][200]["cont
117
131
  export type ListOrdersQuery = operations["list-orders"]["parameters"]["query"];
118
132
  /** The success response body of `GET /account/v1/orders/{orderId}`. */
119
133
  export type GetOrderResult = operations["get-order"]["responses"][200]["content"]["application/json"];
134
+ /** The success response body of `POST /account/v1/orders/{orderId}/cancel`. */
135
+ export type CancelOrderResult = operations["cancel-order"]["responses"][200]["content"]["application/json"];
120
136
  /** The success response body of `GET /account/v1/orders/{orderId}/items`. */
121
137
  export type ListOrderItemsResult = operations["list-order-items"]["responses"][200]["content"]["application/json"];
122
138
  /** The success response body of `GET /account/v1/entitlements`. */
@@ -93,6 +93,30 @@ export interface paths {
93
93
  patch?: never;
94
94
  trace?: never;
95
95
  };
96
+ "/account/v1/billing-accounts/{accountId}/metered-usage": {
97
+ parameters: {
98
+ query?: never;
99
+ header?: never;
100
+ path: {
101
+ accountId: components["parameters"]["AccountId"];
102
+ };
103
+ cookie?: never;
104
+ };
105
+ /**
106
+ * Get account metered usage
107
+ * @description Whether the account has anything billed by usage, and what that usage has cost over the last
108
+ * seven days. Usage is paid from the balance, so this tells how much of the balance it is likely
109
+ * to need: the balance divided by `average_daily_amount` is roughly how many days it lasts.
110
+ */
111
+ get: operations["get-account-metered-usage"];
112
+ put?: never;
113
+ post?: never;
114
+ delete?: never;
115
+ options?: never;
116
+ head?: never;
117
+ patch?: never;
118
+ trace?: never;
119
+ };
96
120
  "/account/v1/billing-accounts/{accountId}/payment-options": {
97
121
  parameters: {
98
122
  query?: never;
@@ -380,6 +404,34 @@ export interface paths {
380
404
  patch?: never;
381
405
  trace?: never;
382
406
  };
407
+ "/account/v1/invoices/{invoiceId}/payment-preview": {
408
+ parameters: {
409
+ query?: never;
410
+ header?: never;
411
+ path: {
412
+ invoiceId: components["parameters"]["InvoiceId"];
413
+ };
414
+ cookie?: never;
415
+ };
416
+ /**
417
+ * Preview invoice payment
418
+ * @description What paying this invoice now would take from credit grants, from the balance and, for the rest,
419
+ * from a payment gateway. It is computed as paying computes it, so paying with the same options
420
+ * straight afterwards takes exactly these amounts unless the account's funds change in between.
421
+ * Nothing is charged, reserved or created.
422
+ *
423
+ * Refused with the same errors as paying, except that insufficient funds are not an error here:
424
+ * they show as a `gateway_amount` above zero.
425
+ */
426
+ get: operations["preview-invoice-payment"];
427
+ put?: never;
428
+ post?: never;
429
+ delete?: never;
430
+ options?: never;
431
+ head?: never;
432
+ patch?: never;
433
+ trace?: never;
434
+ };
383
435
  "/account/v1/payments": {
384
436
  parameters: {
385
437
  query?: never;
@@ -408,6 +460,32 @@ export interface paths {
408
460
  patch?: never;
409
461
  trace?: never;
410
462
  };
463
+ "/account/v1/payments/preview": {
464
+ parameters: {
465
+ query?: never;
466
+ header?: never;
467
+ path?: never;
468
+ cookie?: never;
469
+ };
470
+ get?: never;
471
+ put?: never;
472
+ /**
473
+ * Preview paying together
474
+ * @description What paying these invoices together now would take from credit grants and from the balance,
475
+ * invoice by invoice in the order they would be paid. It is computed as paying together computes
476
+ * it. Nothing is charged, reserved or created.
477
+ *
478
+ * Refused with the same errors as paying together, except that insufficient funds are not an
479
+ * error here: they show as a `gateway_amount` above zero, and paying together would then be
480
+ * refused with `BILLING_INSUFFICIENT_FUNDS`.
481
+ */
482
+ post: operations["preview-pay-together"];
483
+ delete?: never;
484
+ options?: never;
485
+ head?: never;
486
+ patch?: never;
487
+ trace?: never;
488
+ };
411
489
  "/account/v1/invoices": {
412
490
  parameters: {
413
491
  query?: never;
@@ -726,6 +804,35 @@ export interface paths {
726
804
  patch?: never;
727
805
  trace?: never;
728
806
  };
807
+ "/account/v1/subscriptions/{subscriptionId}/renewal-orders": {
808
+ parameters: {
809
+ query?: never;
810
+ header?: never;
811
+ path: {
812
+ subscriptionId: components["parameters"]["SubscriptionId"];
813
+ };
814
+ cookie?: never;
815
+ };
816
+ get?: never;
817
+ put?: never;
818
+ /**
819
+ * Create renewal order
820
+ * @description Places a renewal order and issues its invoice without charging anything; pay the invoice to
821
+ * renew. The periods and price are chosen as for renewing. The order can be paid until the
822
+ * current paid period ends, and never after the end of the first period it renews; unpaid by
823
+ * then, it is canceled. While auto-renew is on, the renewal due at the end of the period pays
824
+ * this order instead of placing another.
825
+ *
826
+ * Save `order_id` before submitting and read the order after an unknown outcome; creating it a
827
+ * second time conflicts.
828
+ */
829
+ post: operations["create-renewal-order"];
830
+ delete?: never;
831
+ options?: never;
832
+ head?: never;
833
+ patch?: never;
834
+ trace?: never;
835
+ };
729
836
  "/account/v1/subscriptions/{subscriptionId}/auto-renew": {
730
837
  parameters: {
731
838
  query?: never;
@@ -834,6 +941,38 @@ export interface paths {
834
941
  patch?: never;
835
942
  trace?: never;
836
943
  };
944
+ "/account/v1/orders/{orderId}/cancel": {
945
+ parameters: {
946
+ query?: never;
947
+ header?: never;
948
+ path: {
949
+ orderId: components["parameters"]["OrderId"];
950
+ };
951
+ cookie?: never;
952
+ };
953
+ get?: never;
954
+ put?: never;
955
+ /**
956
+ * Cancel order
957
+ * @description Withdraws an order that is not paid in full, and tells the service that placed it, so that
958
+ * nothing is delivered. An order with nothing paid becomes `canceled` and its invoice is voided.
959
+ * What was already paid toward it, from credit grants or the balance, is returned the way it was
960
+ * paid, and the order becomes `failed`. Either way `cancel_reason` is `requested_by_customer`.
961
+ * Canceling an order that is already canceled or failed returns it unchanged.
962
+ *
963
+ * Refused with 409 and `BILLING_PAID_ORDER_NOT_CANCELABLE` once the invoice is paid in full,
964
+ * `BILLING_ORDER_ALREADY_ACCEPTED` once the order has been accepted,
965
+ * `BILLING_ORDER_PAYMENT_IN_FLIGHT` while an online payment for it is in progress, and
966
+ * `BILLING_SCHEDULED_CHANGE_NOT_CANCELABLE` for a change that takes effect at the end of the
967
+ * period, which only the service that placed it can call off.
968
+ */
969
+ post: operations["cancel-order"];
970
+ delete?: never;
971
+ options?: never;
972
+ head?: never;
973
+ patch?: never;
974
+ trace?: never;
975
+ };
837
976
  "/account/v1/orders/{orderId}/items": {
838
977
  parameters: {
839
978
  query?: never;
@@ -1123,6 +1262,32 @@ export interface components {
1123
1262
  */
1124
1263
  due: components["schemas"]["Money"];
1125
1264
  };
1265
+ MeteredUsage: {
1266
+ /** Format: int64 */
1267
+ billing_account_id: number;
1268
+ currency: string;
1269
+ /** @description Resources still metered in the projects the account currently pays for. */
1270
+ active_resource_count: number;
1271
+ /** @description Subscriptions billed by usage that the account currently pays for and that have not ended. */
1272
+ postpaid_subscription_count: number;
1273
+ /**
1274
+ * Format: date-time
1275
+ * @description The start of the seven days the amounts cover.
1276
+ */
1277
+ window_start: string;
1278
+ /**
1279
+ * Format: date-time
1280
+ * @description The end of those seven days, the time usage was last priced.
1281
+ */
1282
+ window_end: string;
1283
+ /** @description Usage priced in the window, before tax and before credit grants. Usage not yet priced is not included. */
1284
+ amount: components["schemas"]["Money"];
1285
+ /**
1286
+ * @description `amount` per day. Over the window, or over the part of it since the account's usage began
1287
+ * when that is shorter, counting at least one day.
1288
+ */
1289
+ average_daily_amount: components["schemas"]["Money"];
1290
+ };
1126
1291
  CreditGroup: {
1127
1292
  /** @description What the credit in this group may pay for. No restrictions means anything on the account. */
1128
1293
  applies_to: components["schemas"]["Applicability"];
@@ -1390,6 +1555,40 @@ export interface components {
1390
1555
  * @enum {string}
1391
1556
  */
1392
1557
  PaymentStatus: "succeeded" | "processing" | "requires_action" | "failed";
1558
+ /** @description A credit grant and what it would pay. */
1559
+ AppliedCredit: {
1560
+ /** Format: uuid */
1561
+ credit_grant_id: string;
1562
+ name: string;
1563
+ amount: components["schemas"]["Money"];
1564
+ };
1565
+ PaymentPreviewInvoice: {
1566
+ /** Format: uuid */
1567
+ invoice_id: string;
1568
+ /** Format: uuid */
1569
+ order_id?: string | null;
1570
+ amount_due: components["schemas"]["Money"];
1571
+ credit_applied: components["schemas"]["Money"];
1572
+ balance_applied: components["schemas"]["Money"];
1573
+ };
1574
+ /** @description What paying would take, computed as paying computes it. Nothing is charged or reserved. */
1575
+ PaymentPreview: {
1576
+ currency: string;
1577
+ /** @description What is outstanding before paying. */
1578
+ amount_due: components["schemas"]["Money"];
1579
+ /** @description What credit grants would pay. Grants restricted to other purchases pay nothing here. */
1580
+ credit_applied: components["schemas"]["Money"];
1581
+ /** @description The credit grants that would pay, in the order they would be used. */
1582
+ credit_grants: components["schemas"]["AppliedCredit"][];
1583
+ /** @description What the balance would pay. */
1584
+ balance_applied: components["schemas"]["Money"];
1585
+ /** @description What would remain to be paid online. Paying without a gateway is refused with `BILLING_INSUFFICIENT_FUNDS` while this is above zero. */
1586
+ gateway_amount: components["schemas"]["Money"];
1587
+ /** @description The available balance after paying. */
1588
+ balance_after: components["schemas"]["Money"];
1589
+ /** @description Paying together only. Each invoice, in the order it would be paid. */
1590
+ invoices?: components["schemas"]["PaymentPreviewInvoice"][];
1591
+ };
1393
1592
  PaymentResult: {
1394
1593
  transactions: components["schemas"]["Transaction"][];
1395
1594
  /**
@@ -1867,10 +2066,38 @@ export interface components {
1867
2066
  interval?: "day" | "month" | "year";
1868
2067
  /** Format: uuid */
1869
2068
  payment_method_id?: string;
1870
- /** @default true */
2069
+ /**
2070
+ * @description Whether to pay from the balance, with or without `payment_method_id`.
2071
+ * @default true
2072
+ */
1871
2073
  use_balance?: boolean;
2074
+ /**
2075
+ * @description Whether to pay from eligible credit grants before the balance.
2076
+ * @default true
2077
+ */
2078
+ use_credits?: boolean;
1872
2079
  return_url?: string;
1873
2080
  };
2081
+ /** @description The periods and price of the renewal, chosen as in renewing. */
2082
+ RenewalOrderRequest: {
2083
+ /**
2084
+ * Format: uuid
2085
+ * @description Purchase ID saved before submitting. Duplicate creation conflicts; query this order after an unknown result.
2086
+ */
2087
+ order_id: string;
2088
+ /**
2089
+ * @description As in renewing.
2090
+ * @default 1
2091
+ */
2092
+ periods?: number;
2093
+ /** @description As in renewing. */
2094
+ interval_count?: number;
2095
+ /**
2096
+ * @description As in renewing.
2097
+ * @enum {string}
2098
+ */
2099
+ interval?: "day" | "month" | "year";
2100
+ };
1874
2101
  AutoRenewSet: {
1875
2102
  auto_renew: boolean;
1876
2103
  };
@@ -2519,6 +2746,29 @@ export interface operations {
2519
2746
  default: components["responses"]["Error"];
2520
2747
  };
2521
2748
  };
2749
+ "get-account-metered-usage": {
2750
+ parameters: {
2751
+ query?: never;
2752
+ header?: never;
2753
+ path: {
2754
+ accountId: components["parameters"]["AccountId"];
2755
+ };
2756
+ cookie?: never;
2757
+ };
2758
+ requestBody?: never;
2759
+ responses: {
2760
+ /** @description OK */
2761
+ 200: {
2762
+ headers: {
2763
+ [name: string]: unknown;
2764
+ };
2765
+ content: {
2766
+ "application/json": components["schemas"]["MeteredUsage"];
2767
+ };
2768
+ };
2769
+ default: components["responses"]["Error"];
2770
+ };
2771
+ };
2522
2772
  "list-payment-options": {
2523
2773
  parameters: {
2524
2774
  query?: never;
@@ -2872,6 +3122,34 @@ export interface operations {
2872
3122
  default: components["responses"]["Error"];
2873
3123
  };
2874
3124
  };
3125
+ "preview-invoice-payment": {
3126
+ parameters: {
3127
+ query?: {
3128
+ /** @description As in paying. True when omitted. */
3129
+ use_balance?: boolean;
3130
+ /** @description As in paying. True when omitted. */
3131
+ use_credits?: boolean;
3132
+ };
3133
+ header?: never;
3134
+ path: {
3135
+ invoiceId: components["parameters"]["InvoiceId"];
3136
+ };
3137
+ cookie?: never;
3138
+ };
3139
+ requestBody?: never;
3140
+ responses: {
3141
+ /** @description OK */
3142
+ 200: {
3143
+ headers: {
3144
+ [name: string]: unknown;
3145
+ };
3146
+ content: {
3147
+ "application/json": components["schemas"]["PaymentPreview"];
3148
+ };
3149
+ };
3150
+ default: components["responses"]["Error"];
3151
+ };
3152
+ };
2875
3153
  "pay-together": {
2876
3154
  parameters: {
2877
3155
  query?: never;
@@ -2897,6 +3175,31 @@ export interface operations {
2897
3175
  default: components["responses"]["Error"];
2898
3176
  };
2899
3177
  };
3178
+ "preview-pay-together": {
3179
+ parameters: {
3180
+ query?: never;
3181
+ header?: never;
3182
+ path?: never;
3183
+ cookie?: never;
3184
+ };
3185
+ requestBody: {
3186
+ content: {
3187
+ "application/json": components["schemas"]["PayTogetherRequest"];
3188
+ };
3189
+ };
3190
+ responses: {
3191
+ /** @description OK */
3192
+ 200: {
3193
+ headers: {
3194
+ [name: string]: unknown;
3195
+ };
3196
+ content: {
3197
+ "application/json": components["schemas"]["PaymentPreview"];
3198
+ };
3199
+ };
3200
+ default: components["responses"]["Error"];
3201
+ };
3202
+ };
2900
3203
  "list-invoices": {
2901
3204
  parameters: {
2902
3205
  query?: {
@@ -3340,6 +3643,42 @@ export interface operations {
3340
3643
  default: components["responses"]["Error"];
3341
3644
  };
3342
3645
  };
3646
+ "create-renewal-order": {
3647
+ parameters: {
3648
+ query?: never;
3649
+ header?: never;
3650
+ path: {
3651
+ subscriptionId: components["parameters"]["SubscriptionId"];
3652
+ };
3653
+ cookie?: never;
3654
+ };
3655
+ requestBody: {
3656
+ content: {
3657
+ "application/json": components["schemas"]["RenewalOrderRequest"];
3658
+ };
3659
+ };
3660
+ responses: {
3661
+ /** @description OK */
3662
+ 200: {
3663
+ headers: {
3664
+ [name: string]: unknown;
3665
+ };
3666
+ content: {
3667
+ "application/json": components["schemas"]["Order"];
3668
+ };
3669
+ };
3670
+ /** @description The order already exists or the subscription has a conflicting renewal, change or cancellation. */
3671
+ 409: {
3672
+ headers: {
3673
+ [name: string]: unknown;
3674
+ };
3675
+ content: {
3676
+ "application/json": components["schemas"]["Error"];
3677
+ };
3678
+ };
3679
+ default: components["responses"]["Error"];
3680
+ };
3681
+ };
3343
3682
  "set-auto-renew": {
3344
3683
  parameters: {
3345
3684
  query?: never;
@@ -3480,6 +3819,38 @@ export interface operations {
3480
3819
  default: components["responses"]["Error"];
3481
3820
  };
3482
3821
  };
3822
+ "cancel-order": {
3823
+ parameters: {
3824
+ query?: never;
3825
+ header?: never;
3826
+ path: {
3827
+ orderId: components["parameters"]["OrderId"];
3828
+ };
3829
+ cookie?: never;
3830
+ };
3831
+ requestBody?: never;
3832
+ responses: {
3833
+ /** @description The order after the request. */
3834
+ 200: {
3835
+ headers: {
3836
+ [name: string]: unknown;
3837
+ };
3838
+ content: {
3839
+ "application/json": components["schemas"]["Order"];
3840
+ };
3841
+ };
3842
+ /** @description The order is paid in full, accepted, being paid online, or a scheduled change. */
3843
+ 409: {
3844
+ headers: {
3845
+ [name: string]: unknown;
3846
+ };
3847
+ content: {
3848
+ "application/json": components["schemas"]["Error"];
3849
+ };
3850
+ };
3851
+ default: components["responses"]["Error"];
3852
+ };
3853
+ };
3483
3854
  "list-order-items": {
3484
3855
  parameters: {
3485
3856
  query?: {
@@ -48,6 +48,8 @@ export interface paths {
48
48
  * Delete a backup
49
49
  * @description Independent of the source disk: deletion succeeds whether or not that disk still exists.
50
50
  *
51
+ * Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the backup, including a pay-as-you-go subscription. `meta.resource_id` names the backup. It is released when its subscription ends.
52
+ *
51
53
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
52
54
  */
53
55
  delete: operations["delete-backup"];
@@ -246,6 +248,8 @@ export interface paths {
246
248
  * Delete a disk
247
249
  * @description Deletion is rejected while the disk is attached, or while snapshots created from it still exist.
248
250
  *
251
+ * Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the disk, including a pay-as-you-go subscription. `meta.resource_id` names the disk. It is released when its subscription ends.
252
+ *
249
253
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
250
254
  */
251
255
  delete: operations["delete-disk"];
@@ -352,6 +356,8 @@ export interface paths {
352
356
  * Release a floating IP
353
357
  * @description Releases the floating IP after unbinding it. Completion is reported by the returned task.
354
358
  *
359
+ * Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the address or for its bandwidth, including a pay-as-you-go subscription. `meta.resource_id` names the floating IP. It is released when its subscriptions end.
360
+ *
355
361
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
356
362
  */
357
363
  delete: operations["release-floating-ip"];
@@ -455,6 +461,8 @@ export interface paths {
455
461
  *
456
462
  * An instance being captured as a private image cannot be released. Wait for the capture to finish, or delete that image first.
457
463
  *
464
+ * Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the instance, or for a disk that is deleted with it, including a pay-as-you-go subscription. `meta.resource_id` names that resource. It is released when its subscription ends.
465
+ *
458
466
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
459
467
  */
460
468
  delete: operations["delete-instance"];
@@ -1028,6 +1036,8 @@ export interface paths {
1028
1036
  *
1029
1037
  * An image whose capture has not finished can be deleted; the capture is aborted.
1030
1038
  *
1039
+ * Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the image, including a pay-as-you-go subscription. `meta.resource_id` names the image. It is released when its subscription ends.
1040
+ *
1031
1041
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
1032
1042
  */
1033
1043
  delete: operations["delete-private-image"];
@@ -1331,7 +1341,9 @@ export interface paths {
1331
1341
  post?: never;
1332
1342
  /**
1333
1343
  * Delete a snapshot
1334
- * @description Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
1344
+ * @description Refused with `COMPUTE_RESOURCE_SUBSCRIBED` while a subscription pays for the snapshot, including a pay-as-you-go subscription. `meta.resource_id` names the snapshot. It is released when its subscription ends.
1345
+ *
1346
+ * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
1335
1347
  */
1336
1348
  delete: operations["delete-snapshot"];
1337
1349
  options?: never;
@@ -2851,7 +2863,7 @@ export interface operations {
2851
2863
  "application/json": components["schemas"]["Task"];
2852
2864
  };
2853
2865
  };
2854
- /** @description The idempotency key was already used with different parameters in this scope. */
2866
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
2855
2867
  409: {
2856
2868
  headers: {
2857
2869
  [name: string]: unknown;
@@ -3269,7 +3281,7 @@ export interface operations {
3269
3281
  "application/json": components["schemas"]["Task"];
3270
3282
  };
3271
3283
  };
3272
- /** @description The idempotency key was already used with different parameters in this scope. */
3284
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
3273
3285
  409: {
3274
3286
  headers: {
3275
3287
  [name: string]: unknown;
@@ -3540,7 +3552,7 @@ export interface operations {
3540
3552
  "application/json": components["schemas"]["Task"];
3541
3553
  };
3542
3554
  };
3543
- /** @description The idempotency key was already used with different parameters in this scope. */
3555
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
3544
3556
  409: {
3545
3557
  headers: {
3546
3558
  [name: string]: unknown;
@@ -3800,7 +3812,7 @@ export interface operations {
3800
3812
  "application/json": components["schemas"]["Task"];
3801
3813
  };
3802
3814
  };
3803
- /** @description The idempotency key was already used with different parameters in this scope. */
3815
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
3804
3816
  409: {
3805
3817
  headers: {
3806
3818
  [name: string]: unknown;
@@ -4938,7 +4950,7 @@ export interface operations {
4938
4950
  "application/json": components["schemas"]["Task"];
4939
4951
  };
4940
4952
  };
4941
- /** @description The idempotency key was already used with different parameters in this scope. */
4953
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
4942
4954
  409: {
4943
4955
  headers: {
4944
4956
  [name: string]: unknown;
@@ -5854,7 +5866,7 @@ export interface operations {
5854
5866
  "application/json": components["schemas"]["Task"];
5855
5867
  };
5856
5868
  };
5857
- /** @description The idempotency key was already used with different parameters in this scope. */
5869
+ /** @description The idempotency key was already used with different parameters in this scope, or the deletion was refused. */
5858
5870
  409: {
5859
5871
  headers: {
5860
5872
  [name: string]: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.0.0-dev.218.g44bea88",
3
+ "version": "0.0.0-dev.222.g62628b3",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {