@leaflow/sdk 0.71.0 → 0.73.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.
@@ -2667,6 +2667,11 @@ export interface components {
2667
2667
  /** @enum {string} */
2668
2668
  OrderState: "pending" | "paid" | "fulfilled" | "failed" | "canceled";
2669
2669
  Order: {
2670
+ /**
2671
+ * Format: date-time
2672
+ * @description When fulfillment began. Funds and sellable quota remain reserved until success or confirmed failure; this order can no longer be canceled.
2673
+ */
2674
+ fulfillment_started_at?: string | null;
2670
2675
  /** @description Total tax after discounts, including any tax already included in the price. */
2671
2676
  tax_amount?: string;
2672
2677
  /** @description The part of tax_amount already included in gross_amount; it is not charged again. */
@@ -2713,8 +2718,8 @@ export interface components {
2713
2718
  refundable_amount?: components["schemas"]["Money"];
2714
2719
  /**
2715
2720
  * Format: date-time
2716
- * @description When the funds and any stock held for this order are released. After this it can no
2717
- * longer be paid and has to be placed again. Absent once the order is settled.
2721
+ * @description The deadline to pay and begin fulfillment. Absent after fulfillment starts or the order
2722
+ * ends. Once fulfillment starts, its reservations remain held until success or confirmed failure.
2718
2723
  */
2719
2724
  reservation_expires_at?: string | null;
2720
2725
  /** Format: date-time */
@@ -156,11 +156,11 @@ export type AttachDiskBody = NonNullable<operations["attach-disk"]["requestBody"
156
156
  /** The success response body of `DELETE /api/v1/instances/{instanceId}/disks/{diskId}`. */
157
157
  export type DetachDiskResult = operations["detach-disk"]["responses"][202]["content"]["application/json"];
158
158
  /** The success response body of `POST /api/v1/instances/{instanceId}/floating-ips`. */
159
- export type AttachInstanceFloatingIpResult = operations["attach-instance-floating-ip"]["responses"][202]["content"]["application/json"];
159
+ export type AttachInstanceFloatingIpResult = operations["attach-instance-floating-ip"]["responses"][200]["content"]["application/json"];
160
160
  /** The request body of `POST /api/v1/instances/{instanceId}/floating-ips`. */
161
161
  export type AttachInstanceFloatingIpBody = NonNullable<operations["attach-instance-floating-ip"]["requestBody"]>["content"]["application/json"];
162
162
  /** The success response body of `DELETE /api/v1/instances/{instanceId}/floating-ips/{floatingIpId}`. */
163
- export type DetachInstanceFloatingIpResult = operations["detach-instance-floating-ip"]["responses"][202]["content"]["application/json"];
163
+ export type DetachInstanceFloatingIpResult = operations["detach-instance-floating-ip"]["responses"][200]["content"]["application/json"];
164
164
  /** The success response body of `GET /api/v1/instances/{instanceId}/ports`. */
165
165
  export type ListInstancePortsResult = operations["list-instance-ports"]["responses"][200]["content"]["application/json"];
166
166
  /** The query parameters of `GET /api/v1/instances/{instanceId}/ports`. */
@@ -2669,10 +2669,7 @@ export interface operations {
2669
2669
  "rename-backup": {
2670
2670
  parameters: {
2671
2671
  query?: never;
2672
- header: {
2673
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
2674
- "Idempotency-Key": string;
2675
- };
2672
+ header?: never;
2676
2673
  path: {
2677
2674
  backupId: string;
2678
2675
  };
@@ -3088,10 +3085,7 @@ export interface operations {
3088
3085
  "rename-disk": {
3089
3086
  parameters: {
3090
3087
  query?: never;
3091
- header: {
3092
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3093
- "Idempotency-Key": string;
3094
- };
3088
+ header?: never;
3095
3089
  path: {
3096
3090
  diskId: string;
3097
3091
  };
@@ -3361,10 +3355,7 @@ export interface operations {
3361
3355
  "bind-floating-ip": {
3362
3356
  parameters: {
3363
3357
  query?: never;
3364
- header: {
3365
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3366
- "Idempotency-Key": string;
3367
- };
3358
+ header?: never;
3368
3359
  path: {
3369
3360
  floatingIpId: string;
3370
3361
  };
@@ -3399,10 +3390,7 @@ export interface operations {
3399
3390
  "unbind-floating-ip": {
3400
3391
  parameters: {
3401
3392
  query?: never;
3402
- header: {
3403
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3404
- "Idempotency-Key": string;
3405
- };
3393
+ header?: never;
3406
3394
  path: {
3407
3395
  floatingIpId: string;
3408
3396
  };
@@ -3565,10 +3553,7 @@ export interface operations {
3565
3553
  "rename-instance": {
3566
3554
  parameters: {
3567
3555
  query?: never;
3568
- header: {
3569
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3570
- "Idempotency-Key": string;
3571
- };
3556
+ header?: never;
3572
3557
  path: {
3573
3558
  instanceId: string;
3574
3559
  };
@@ -3603,10 +3588,7 @@ export interface operations {
3603
3588
  "run-instance-command": {
3604
3589
  parameters: {
3605
3590
  query?: never;
3606
- header: {
3607
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3608
- "Idempotency-Key": string;
3609
- };
3591
+ header?: never;
3610
3592
  path: {
3611
3593
  instanceId: string;
3612
3594
  };
@@ -3641,10 +3623,7 @@ export interface operations {
3641
3623
  "open-instance-console": {
3642
3624
  parameters: {
3643
3625
  query?: never;
3644
- header: {
3645
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3646
- "Idempotency-Key": string;
3647
- };
3626
+ header?: never;
3648
3627
  path: {
3649
3628
  instanceId: string;
3650
3629
  };
@@ -3709,10 +3688,7 @@ export interface operations {
3709
3688
  "set-instance-labels": {
3710
3689
  parameters: {
3711
3690
  query?: never;
3712
- header: {
3713
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3714
- "Idempotency-Key": string;
3715
- };
3691
+ header?: never;
3716
3692
  path: {
3717
3693
  instanceId: string;
3718
3694
  };
@@ -3747,10 +3723,7 @@ export interface operations {
3747
3723
  "set-instance-notes": {
3748
3724
  parameters: {
3749
3725
  query?: never;
3750
- header: {
3751
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3752
- "Idempotency-Key": string;
3753
- };
3726
+ header?: never;
3754
3727
  path: {
3755
3728
  instanceId: string;
3756
3729
  };
@@ -3785,10 +3758,7 @@ export interface operations {
3785
3758
  "reset-instance-password": {
3786
3759
  parameters: {
3787
3760
  query?: never;
3788
- header: {
3789
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3790
- "Idempotency-Key": string;
3791
- };
3761
+ header?: never;
3792
3762
  path: {
3793
3763
  instanceId: string;
3794
3764
  };
@@ -3861,10 +3831,7 @@ export interface operations {
3861
3831
  "rebuild-instance": {
3862
3832
  parameters: {
3863
3833
  query?: never;
3864
- header: {
3865
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
3866
- "Idempotency-Key": string;
3867
- };
3834
+ header?: never;
3868
3835
  path: {
3869
3836
  instanceId: string;
3870
3837
  };
@@ -4185,10 +4152,7 @@ export interface operations {
4185
4152
  "attach-instance-floating-ip": {
4186
4153
  parameters: {
4187
4154
  query?: never;
4188
- header: {
4189
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4190
- "Idempotency-Key": string;
4191
- };
4155
+ header?: never;
4192
4156
  path: {
4193
4157
  instanceId: string;
4194
4158
  };
@@ -4200,13 +4164,13 @@ export interface operations {
4200
4164
  };
4201
4165
  };
4202
4166
  responses: {
4203
- /** @description Accepted */
4204
- 202: {
4167
+ /** @description The current floating IP binding */
4168
+ 200: {
4205
4169
  headers: {
4206
4170
  [name: string]: unknown;
4207
4171
  };
4208
4172
  content: {
4209
- "application/json": components["schemas"]["Task"];
4173
+ "application/json": components["schemas"]["FloatingIPResource"];
4210
4174
  };
4211
4175
  };
4212
4176
  /** @description Error */
@@ -4223,10 +4187,7 @@ export interface operations {
4223
4187
  "detach-instance-floating-ip": {
4224
4188
  parameters: {
4225
4189
  query?: never;
4226
- header: {
4227
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4228
- "Idempotency-Key": string;
4229
- };
4190
+ header?: never;
4230
4191
  path: {
4231
4192
  instanceId: string;
4232
4193
  floatingIpId: string;
@@ -4235,13 +4196,13 @@ export interface operations {
4235
4196
  };
4236
4197
  requestBody?: never;
4237
4198
  responses: {
4238
- /** @description Accepted */
4239
- 202: {
4199
+ /** @description The current floating IP binding */
4200
+ 200: {
4240
4201
  headers: {
4241
4202
  [name: string]: unknown;
4242
4203
  };
4243
4204
  content: {
4244
- "application/json": components["schemas"]["Task"];
4205
+ "application/json": components["schemas"]["FloatingIPResource"];
4245
4206
  };
4246
4207
  };
4247
4208
  /** @description Error */
@@ -4428,10 +4389,7 @@ export interface operations {
4428
4389
  "create-port": {
4429
4390
  parameters: {
4430
4391
  query?: never;
4431
- header: {
4432
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4433
- "Idempotency-Key": string;
4434
- };
4392
+ header?: never;
4435
4393
  path?: never;
4436
4394
  cookie?: never;
4437
4395
  };
@@ -4464,10 +4422,7 @@ export interface operations {
4464
4422
  "delete-port": {
4465
4423
  parameters: {
4466
4424
  query?: never;
4467
- header: {
4468
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4469
- "Idempotency-Key": string;
4470
- };
4425
+ header?: never;
4471
4426
  path: {
4472
4427
  portId: string;
4473
4428
  };
@@ -4628,10 +4583,7 @@ export interface operations {
4628
4583
  "rename-private-image": {
4629
4584
  parameters: {
4630
4585
  query?: never;
4631
- header: {
4632
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4633
- "Idempotency-Key": string;
4634
- };
4586
+ header?: never;
4635
4587
  path: {
4636
4588
  privateImageId: string;
4637
4589
  };
@@ -4698,10 +4650,7 @@ export interface operations {
4698
4650
  "create-private-network": {
4699
4651
  parameters: {
4700
4652
  query?: never;
4701
- header: {
4702
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4703
- "Idempotency-Key": string;
4704
- };
4653
+ header?: never;
4705
4654
  path?: never;
4706
4655
  cookie?: never;
4707
4656
  };
@@ -4765,10 +4714,7 @@ export interface operations {
4765
4714
  "delete-private-network": {
4766
4715
  parameters: {
4767
4716
  query?: never;
4768
- header: {
4769
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4770
- "Idempotency-Key": string;
4771
- };
4717
+ header?: never;
4772
4718
  path: {
4773
4719
  privateNetworkId: string;
4774
4720
  };
@@ -4797,10 +4743,7 @@ export interface operations {
4797
4743
  "rename-private-network": {
4798
4744
  parameters: {
4799
4745
  query?: never;
4800
- header: {
4801
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4802
- "Idempotency-Key": string;
4803
- };
4746
+ header?: never;
4804
4747
  path: {
4805
4748
  privateNetworkId: string;
4806
4749
  };
@@ -4866,10 +4809,7 @@ export interface operations {
4866
4809
  "enable-private-network-ipv6": {
4867
4810
  parameters: {
4868
4811
  query?: never;
4869
- header: {
4870
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4871
- "Idempotency-Key": string;
4872
- };
4812
+ header?: never;
4873
4813
  path: {
4874
4814
  privateNetworkId: string;
4875
4815
  };
@@ -4900,10 +4840,7 @@ export interface operations {
4900
4840
  "disable-private-network-ipv6": {
4901
4841
  parameters: {
4902
4842
  query?: never;
4903
- header: {
4904
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4905
- "Idempotency-Key": string;
4906
- };
4843
+ header?: never;
4907
4844
  path: {
4908
4845
  privateNetworkId: string;
4909
4846
  };
@@ -4963,10 +4900,7 @@ export interface operations {
4963
4900
  "create-route": {
4964
4901
  parameters: {
4965
4902
  query?: never;
4966
- header: {
4967
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
4968
- "Idempotency-Key": string;
4969
- };
4903
+ header?: never;
4970
4904
  path: {
4971
4905
  privateNetworkId: string;
4972
4906
  };
@@ -5001,10 +4935,7 @@ export interface operations {
5001
4935
  "delete-route": {
5002
4936
  parameters: {
5003
4937
  query?: never;
5004
- header: {
5005
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5006
- "Idempotency-Key": string;
5007
- };
4938
+ header?: never;
5008
4939
  path: {
5009
4940
  privateNetworkId: string;
5010
4941
  routeId: string;
@@ -5065,10 +4996,7 @@ export interface operations {
5065
4996
  "create-subnet": {
5066
4997
  parameters: {
5067
4998
  query?: never;
5068
- header: {
5069
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5070
- "Idempotency-Key": string;
5071
- };
4999
+ header?: never;
5072
5000
  path: {
5073
5001
  privateNetworkId: string;
5074
5002
  };
@@ -5136,10 +5064,7 @@ export interface operations {
5136
5064
  "delete-subnet": {
5137
5065
  parameters: {
5138
5066
  query?: never;
5139
- header: {
5140
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5141
- "Idempotency-Key": string;
5142
- };
5067
+ header?: never;
5143
5068
  path: {
5144
5069
  privateNetworkId: string;
5145
5070
  subnetId: string;
@@ -5202,10 +5127,7 @@ export interface operations {
5202
5127
  "create-security-group": {
5203
5128
  parameters: {
5204
5129
  query?: never;
5205
- header: {
5206
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5207
- "Idempotency-Key": string;
5208
- };
5130
+ header?: never;
5209
5131
  path?: never;
5210
5132
  cookie?: never;
5211
5133
  };
@@ -5269,10 +5191,7 @@ export interface operations {
5269
5191
  "delete-security-group": {
5270
5192
  parameters: {
5271
5193
  query?: never;
5272
- header: {
5273
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5274
- "Idempotency-Key": string;
5275
- };
5194
+ header?: never;
5276
5195
  path: {
5277
5196
  securityGroupId: string;
5278
5197
  };
@@ -5301,10 +5220,7 @@ export interface operations {
5301
5220
  "rename-security-group": {
5302
5221
  parameters: {
5303
5222
  query?: never;
5304
- header: {
5305
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5306
- "Idempotency-Key": string;
5307
- };
5223
+ header?: never;
5308
5224
  path: {
5309
5225
  securityGroupId: string;
5310
5226
  };
@@ -5370,10 +5286,7 @@ export interface operations {
5370
5286
  "create-security-group-rule": {
5371
5287
  parameters: {
5372
5288
  query?: never;
5373
- header: {
5374
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5375
- "Idempotency-Key": string;
5376
- };
5289
+ header?: never;
5377
5290
  path: {
5378
5291
  securityGroupId: string;
5379
5292
  };
@@ -5408,10 +5321,7 @@ export interface operations {
5408
5321
  "delete-security-group-rule": {
5409
5322
  parameters: {
5410
5323
  query?: never;
5411
- header: {
5412
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5413
- "Idempotency-Key": string;
5414
- };
5324
+ header?: never;
5415
5325
  path: {
5416
5326
  securityGroupId: string;
5417
5327
  ruleId: string;
@@ -5571,10 +5481,7 @@ export interface operations {
5571
5481
  "rename-snapshot": {
5572
5482
  parameters: {
5573
5483
  query?: never;
5574
- header: {
5575
- /** @description Reuse the same key for retries of the same action. A different request with the same key is rejected. */
5576
- "Idempotency-Key": string;
5577
- };
5484
+ header?: never;
5578
5485
  path: {
5579
5486
  snapshotId: string;
5580
5487
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.71.0",
3
+ "version": "0.73.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {