@leaflow/sdk 0.0.0-dev.240.gecb1b07 → 0.0.0-dev.242.g41f635a

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.
@@ -95,16 +95,6 @@ export type ListSubscriptionsResult = operations["list-subscriptions"]["response
95
95
  export type ListSubscriptionsQuery = operations["list-subscriptions"]["parameters"]["query"];
96
96
  /** The success response body of `GET /account/v1/subscriptions/{subscriptionId}`. */
97
97
  export type GetSubscriptionResult = operations["get-subscription"]["responses"][200]["content"]["application/json"];
98
- /** The success response body of `GET /account/v1/subscriptions/{subscriptionId}/cancellation-preview`. */
99
- export type PreviewCancellationResult = operations["preview-cancellation"]["responses"][200]["content"]["application/json"];
100
- /** The success response body of `POST /account/v1/subscriptions/{subscriptionId}/cancellation-requests`. */
101
- export type CreateCancellationRequestResult = operations["create-cancellation-request"]["responses"][201]["content"]["application/json"];
102
- /** The request body of `POST /account/v1/subscriptions/{subscriptionId}/cancellation-requests`. */
103
- export type CreateCancellationRequestBody = NonNullable<operations["create-cancellation-request"]["requestBody"]>["content"]["application/json"];
104
- /** The success response body of `GET /account/v1/cancellation-requests/{cancellationRequestId}`. */
105
- export type GetCancellationRequestResult = operations["get-cancellation-request"]["responses"][200]["content"]["application/json"];
106
- /** The success response body of `POST /account/v1/cancellation-requests/{cancellationRequestId}/cancel`. */
107
- export type CancelCancellationRequestResult = operations["cancel-cancellation-request"]["responses"][200]["content"]["application/json"];
108
98
  /** The success response body of `POST /account/v1/quotes`. */
109
99
  export type CreateQuoteResult = operations["create-quote"]["responses"][200]["content"]["application/json"];
110
100
  /** The request body of `POST /account/v1/quotes`. */
@@ -683,104 +683,6 @@ export interface paths {
683
683
  patch?: never;
684
684
  trace?: never;
685
685
  };
686
- "/account/v1/subscriptions/{subscriptionId}/cancellation-preview": {
687
- parameters: {
688
- query?: never;
689
- header?: never;
690
- path: {
691
- subscriptionId: components["parameters"]["SubscriptionId"];
692
- };
693
- cookie?: never;
694
- };
695
- /**
696
- * Preview cancellation
697
- * @deprecated
698
- * @description Reads confirmed terms and paid-period value without recording a request or locking a refund amount.
699
- *
700
- * Use create-quote with a `cancellation`, which quotes the subscriptions released together.
701
- */
702
- get: operations["preview-cancellation"];
703
- put?: never;
704
- post?: never;
705
- delete?: never;
706
- options?: never;
707
- head?: never;
708
- patch?: never;
709
- trace?: never;
710
- };
711
- "/account/v1/subscriptions/{subscriptionId}/cancellation-requests": {
712
- parameters: {
713
- query?: never;
714
- header?: never;
715
- path: {
716
- subscriptionId: components["parameters"]["SubscriptionId"];
717
- };
718
- cookie?: never;
719
- };
720
- get?: never;
721
- put?: never;
722
- /**
723
- * Request subscription cancellation
724
- * @deprecated
725
- * @description Ends the whole subscription under confirmed terms. The request does not itself stop service; actual end is confirmed by the owning service. Refund processing is separate.
726
- *
727
- * Use create-cancellation, which ends the subscriptions released together and checks the refund.
728
- */
729
- post: operations["create-cancellation-request"];
730
- delete?: never;
731
- options?: never;
732
- head?: never;
733
- patch?: never;
734
- trace?: never;
735
- };
736
- "/account/v1/cancellation-requests/{cancellationRequestId}": {
737
- parameters: {
738
- query?: never;
739
- header?: never;
740
- path: {
741
- cancellationRequestId: components["parameters"]["CancellationRequestId"];
742
- };
743
- cookie?: never;
744
- };
745
- /**
746
- * Get cancellation request
747
- * @deprecated
748
- * @description Use get-cancellation.
749
- */
750
- get: operations["get-cancellation-request"];
751
- put?: never;
752
- post?: never;
753
- delete?: never;
754
- options?: never;
755
- head?: never;
756
- patch?: never;
757
- trace?: never;
758
- };
759
- "/account/v1/cancellation-requests/{cancellationRequestId}/cancel": {
760
- parameters: {
761
- query?: never;
762
- header?: never;
763
- path: {
764
- cancellationRequestId: components["parameters"]["CancellationRequestId"];
765
- };
766
- cookie?: never;
767
- };
768
- get?: never;
769
- put?: never;
770
- /**
771
- * Cancel a cancellation request
772
- * @deprecated
773
- * @description Allowed only before release starts. Does not resume a previously suspended subscription.
774
- *
775
- * Use withdraw-cancellation, which withdraws the whole cancellation.
776
- */
777
- post: operations["cancel-cancellation-request"];
778
- delete?: never;
779
- options?: never;
780
- head?: never;
781
- patch?: never;
782
- trace?: never;
783
- };
784
686
  "/account/v1/quotes": {
785
687
  parameters: {
786
688
  query?: never;
@@ -1436,21 +1338,6 @@ export interface components {
1436
1338
  /** Format: int64 */
1437
1339
  total_count?: number;
1438
1340
  };
1439
- CancellationPreview: {
1440
- /** Format: uuid */
1441
- subscription_id: string;
1442
- mode: components["schemas"]["TerminationPolicy"];
1443
- /** Format: date-time */
1444
- scheduled_at?: string;
1445
- refundable_amount: string;
1446
- currency: string;
1447
- };
1448
- CancellationRequestCreate: {
1449
- mode?: components["schemas"]["TerminationPolicy"];
1450
- /** @default false */
1451
- forfeit_remaining_value?: boolean;
1452
- reason: string;
1453
- };
1454
1341
  /** @description A cancellation request for the original purchase. scheduled_at is the intended time; effective_at is the confirmed end of service. The request alone does not stop metering or issue a refund. */
1455
1342
  CancellationRequest: {
1456
1343
  reason?: string;
@@ -3090,7 +2977,6 @@ export interface components {
3090
2977
  InvoiceId: string;
3091
2978
  OrderId: string;
3092
2979
  CancellationId: string;
3093
- CancellationRequestId: string;
3094
2980
  SubscriptionId: string;
3095
2981
  PaymentMethodId: string;
3096
2982
  };
@@ -3995,102 +3881,6 @@ export interface operations {
3995
3881
  default: components["responses"]["Error"];
3996
3882
  };
3997
3883
  };
3998
- "preview-cancellation": {
3999
- parameters: {
4000
- query?: never;
4001
- header?: never;
4002
- path: {
4003
- subscriptionId: components["parameters"]["SubscriptionId"];
4004
- };
4005
- cookie?: never;
4006
- };
4007
- requestBody?: never;
4008
- responses: {
4009
- /** @description Cancellation estimate */
4010
- 200: {
4011
- headers: {
4012
- [name: string]: unknown;
4013
- };
4014
- content: {
4015
- "application/json": components["schemas"]["CancellationPreview"];
4016
- };
4017
- };
4018
- default: components["responses"]["Error"];
4019
- };
4020
- };
4021
- "create-cancellation-request": {
4022
- parameters: {
4023
- query?: never;
4024
- header?: never;
4025
- path: {
4026
- subscriptionId: components["parameters"]["SubscriptionId"];
4027
- };
4028
- cookie?: never;
4029
- };
4030
- requestBody: {
4031
- content: {
4032
- "application/json": components["schemas"]["CancellationRequestCreate"];
4033
- };
4034
- };
4035
- responses: {
4036
- /** @description Cancellation requested */
4037
- 201: {
4038
- headers: {
4039
- [name: string]: unknown;
4040
- };
4041
- content: {
4042
- "application/json": components["schemas"]["CancellationRequest"];
4043
- };
4044
- };
4045
- default: components["responses"]["Error"];
4046
- };
4047
- };
4048
- "get-cancellation-request": {
4049
- parameters: {
4050
- query?: never;
4051
- header?: never;
4052
- path: {
4053
- cancellationRequestId: components["parameters"]["CancellationRequestId"];
4054
- };
4055
- cookie?: never;
4056
- };
4057
- requestBody?: never;
4058
- responses: {
4059
- /** @description Request and actual end receipt */
4060
- 200: {
4061
- headers: {
4062
- [name: string]: unknown;
4063
- };
4064
- content: {
4065
- "application/json": components["schemas"]["CancellationRequest"];
4066
- };
4067
- };
4068
- default: components["responses"]["Error"];
4069
- };
4070
- };
4071
- "cancel-cancellation-request": {
4072
- parameters: {
4073
- query?: never;
4074
- header?: never;
4075
- path: {
4076
- cancellationRequestId: components["parameters"]["CancellationRequestId"];
4077
- };
4078
- cookie?: never;
4079
- };
4080
- requestBody?: never;
4081
- responses: {
4082
- /** @description Canceled request */
4083
- 200: {
4084
- headers: {
4085
- [name: string]: unknown;
4086
- };
4087
- content: {
4088
- "application/json": components["schemas"]["CancellationRequest"];
4089
- };
4090
- };
4091
- default: components["responses"]["Error"];
4092
- };
4093
- };
4094
3884
  "create-quote": {
4095
3885
  parameters: {
4096
3886
  query?: never;
@@ -753,6 +753,8 @@ export interface paths {
753
753
  /**
754
754
  * Detach a disk
755
755
  * @description Unmount the device inside the instance before calling this endpoint. Forcibly detaching a file system that is being written to corrupts data.
756
+ *
757
+ * The disk the instance boots from cannot be detached, whether it is the system disk bought with the instance or a disk the instance was created from with `boot_disk_id`. Such a request is refused with `INSTANCE_BOOT_DISK_LOCKED` and creates no task; releasing the instance is what frees that disk.
756
758
  */
757
759
  delete: operations["detach-disk"];
758
760
  options?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.0.0-dev.240.gecb1b07",
3
+ "version": "0.0.0-dev.242.g41f635a",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {