@leaflow/sdk 0.0.0-dev.224.g2e0d1be → 0.0.0-dev.226.g0b19393

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.
@@ -133,10 +133,6 @@ export type RebuildInstanceBody = NonNullable<operations["rebuild-instance"]["re
133
133
  export type ResizeInstanceResult = operations["resize-instance"]["responses"][202]["content"]["application/json"];
134
134
  /** The request body of `POST /api/v1/instances/{instanceId}/resize`. */
135
135
  export type ResizeInstanceBody = NonNullable<operations["resize-instance"]["requestBody"]>["content"]["application/json"];
136
- /** The success response body of `POST /api/v1/instances/{instanceId}/resize/confirm`. */
137
- export type ConfirmInstanceResizeResult = operations["confirm-instance-resize"]["responses"][202]["content"]["application/json"];
138
- /** The success response body of `POST /api/v1/instances/{instanceId}/resize/revert`. */
139
- export type RevertInstanceResizeResult = operations["revert-instance-resize"]["responses"][202]["content"]["application/json"];
140
136
  /** The success response body of `POST /api/v1/instances/{instanceId}/start`. */
141
137
  export type StartInstanceResult = operations["start-instance"]["responses"][202]["content"]["application/json"];
142
138
  /** The request body of `POST /api/v1/instances/{instanceId}/start`. */
@@ -696,53 +696,11 @@ export interface paths {
696
696
  * Resize an instance
697
697
  * @description Creates a Billing change order, including for metered pricing. The price must belong to the Billing Plan of the target instance type; applicable contract pricing is resolved by Billing. The resize is applied after the order's invoice is paid, or without waiting when the order has no immediate invoice. Do not submit a new purchase after paying, and reuse the original idempotency key after an uncertain response.
698
698
  *
699
- * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
700
- */
701
- post: operations["resize-instance"];
702
- delete?: never;
703
- options?: never;
704
- head?: never;
705
- patch?: never;
706
- trace?: never;
707
- };
708
- "/api/v1/instances/{instanceId}/resize/confirm": {
709
- parameters: {
710
- query?: never;
711
- header?: never;
712
- path?: never;
713
- cookie?: never;
714
- };
715
- get?: never;
716
- put?: never;
717
- /**
718
- * Confirm a resize
719
- * @description Releases the resources held by the previous size. `pending_instance_type_id` becomes the type in effect and is billed from then on.
699
+ * The new instance type takes effect, and is billed from then on, when the returned task succeeds. A completed resize is final and cannot be reverted; to return to the previous type, submit another resize.
720
700
  *
721
701
  * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
722
702
  */
723
- post: operations["confirm-instance-resize"];
724
- delete?: never;
725
- options?: never;
726
- head?: never;
727
- patch?: never;
728
- trace?: never;
729
- };
730
- "/api/v1/instances/{instanceId}/resize/revert": {
731
- parameters: {
732
- query?: never;
733
- header?: never;
734
- path?: never;
735
- cookie?: never;
736
- };
737
- get?: never;
738
- put?: never;
739
- /**
740
- * Revert a resize
741
- * @description The instance returns to its previous size, `pending_instance_type_id` is discarded, and billing is unaffected by the resize.
742
- *
743
- * Replays return HTTP 202 for the original operation. See the idempotency conventions for conflicts and terminal outcomes.
744
- */
745
- post: operations["revert-instance-resize"];
703
+ post: operations["resize-instance"];
746
704
  delete?: never;
747
705
  options?: never;
748
706
  head?: never;
@@ -1959,7 +1917,7 @@ export interface components {
1959
1917
  /** Format: uuid */
1960
1918
  region_id: string;
1961
1919
  /** @enum {string} */
1962
- status: "pending" | "building" | "active" | "stopped" | "paused" | "suspended" | "shelved" | "shelved_offloaded" | "rescued" | "resized" | "deleting" | "deleted" | "error" | "unknown";
1920
+ status: "pending" | "building" | "active" | "stopped" | "paused" | "suspended" | "shelved" | "shelved_offloaded" | "rescued" | "deleting" | "deleted" | "error" | "unknown";
1963
1921
  /** Format: uuid */
1964
1922
  subnet_id: string | null;
1965
1923
  /** Format: date-time */
@@ -4205,92 +4163,6 @@ export interface operations {
4205
4163
  };
4206
4164
  };
4207
4165
  };
4208
- "confirm-instance-resize": {
4209
- parameters: {
4210
- query?: never;
4211
- header: {
4212
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4213
- "Idempotency-Key": string;
4214
- };
4215
- path: {
4216
- instanceId: string;
4217
- };
4218
- cookie?: never;
4219
- };
4220
- requestBody?: never;
4221
- responses: {
4222
- /** @description The action was accepted. Wait for the returned task to finish. */
4223
- 202: {
4224
- headers: {
4225
- [name: string]: unknown;
4226
- };
4227
- content: {
4228
- "application/json": components["schemas"]["Task"];
4229
- };
4230
- };
4231
- /** @description The idempotency key was already used with different parameters in this scope. */
4232
- 409: {
4233
- headers: {
4234
- [name: string]: unknown;
4235
- };
4236
- content: {
4237
- "application/json": components["schemas"]["Error"];
4238
- };
4239
- };
4240
- /** @description Error */
4241
- default: {
4242
- headers: {
4243
- [name: string]: unknown;
4244
- };
4245
- content: {
4246
- "application/json": components["schemas"]["Error"];
4247
- };
4248
- };
4249
- };
4250
- };
4251
- "revert-instance-resize": {
4252
- parameters: {
4253
- query?: never;
4254
- header: {
4255
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4256
- "Idempotency-Key": string;
4257
- };
4258
- path: {
4259
- instanceId: string;
4260
- };
4261
- cookie?: never;
4262
- };
4263
- requestBody?: never;
4264
- responses: {
4265
- /** @description The action was accepted. Wait for the returned task to finish. */
4266
- 202: {
4267
- headers: {
4268
- [name: string]: unknown;
4269
- };
4270
- content: {
4271
- "application/json": components["schemas"]["Task"];
4272
- };
4273
- };
4274
- /** @description The idempotency key was already used with different parameters in this scope. */
4275
- 409: {
4276
- headers: {
4277
- [name: string]: unknown;
4278
- };
4279
- content: {
4280
- "application/json": components["schemas"]["Error"];
4281
- };
4282
- };
4283
- /** @description Error */
4284
- default: {
4285
- headers: {
4286
- [name: string]: unknown;
4287
- };
4288
- content: {
4289
- "application/json": components["schemas"]["Error"];
4290
- };
4291
- };
4292
- };
4293
- };
4294
4166
  "start-instance": {
4295
4167
  parameters: {
4296
4168
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.0.0-dev.224.g2e0d1be",
3
+ "version": "0.0.0-dev.226.g0b19393",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {