phala 1.1.22 → 1.2.1

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.
@@ -5,33 +5,17 @@ declare const dockerConfigSchema: z.ZodObject<{
5
5
  password: z.ZodString;
6
6
  registry: z.ZodNullable<z.ZodString>;
7
7
  username: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- password?: string;
10
- registry?: string;
11
- username?: string;
12
- }, {
13
- password?: string;
14
- registry?: string;
15
- username?: string;
16
- }>;
8
+ }, z.core.$strip>;
17
9
  declare const composeFileSchema: z.ZodObject<{
18
10
  docker_compose_file: z.ZodString;
19
11
  docker_config: z.ZodNullable<z.ZodOptional<z.ZodObject<{
20
12
  password: z.ZodString;
21
13
  registry: z.ZodNullable<z.ZodString>;
22
14
  username: z.ZodString;
23
- }, "strip", z.ZodTypeAny, {
24
- password?: string;
25
- registry?: string;
26
- username?: string;
27
- }, {
28
- password?: string;
29
- registry?: string;
30
- username?: string;
31
- }>>>;
32
- features: z.ZodArray<z.ZodString, "many">;
15
+ }, z.core.$strip>>>;
16
+ features: z.ZodArray<z.ZodString>;
33
17
  kms_enabled: z.ZodBoolean;
34
- manifest_version: z.ZodNumber;
18
+ manifest_version: z.ZodCoercedNumber<unknown>;
35
19
  name: z.ZodString;
36
20
  public_logs: z.ZodBoolean;
37
21
  public_sysinfo: z.ZodBoolean;
@@ -39,67 +23,11 @@ declare const composeFileSchema: z.ZodObject<{
39
23
  salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
24
  tproxy_enabled: z.ZodBoolean;
41
25
  version: z.ZodOptional<z.ZodString>;
42
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
43
- docker_compose_file: z.ZodString;
44
- docker_config: z.ZodNullable<z.ZodOptional<z.ZodObject<{
45
- password: z.ZodString;
46
- registry: z.ZodNullable<z.ZodString>;
47
- username: z.ZodString;
48
- }, "strip", z.ZodTypeAny, {
49
- password?: string;
50
- registry?: string;
51
- username?: string;
52
- }, {
53
- password?: string;
54
- registry?: string;
55
- username?: string;
56
- }>>>;
57
- features: z.ZodArray<z.ZodString, "many">;
58
- kms_enabled: z.ZodBoolean;
59
- manifest_version: z.ZodNumber;
60
- name: z.ZodString;
61
- public_logs: z.ZodBoolean;
62
- public_sysinfo: z.ZodBoolean;
63
- runner: z.ZodOptional<z.ZodString>;
64
- salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
- tproxy_enabled: z.ZodBoolean;
66
- version: z.ZodOptional<z.ZodString>;
67
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
68
- docker_compose_file: z.ZodString;
69
- docker_config: z.ZodNullable<z.ZodOptional<z.ZodObject<{
70
- password: z.ZodString;
71
- registry: z.ZodNullable<z.ZodString>;
72
- username: z.ZodString;
73
- }, "strip", z.ZodTypeAny, {
74
- password?: string;
75
- registry?: string;
76
- username?: string;
77
- }, {
78
- password?: string;
79
- registry?: string;
80
- username?: string;
81
- }>>>;
82
- features: z.ZodArray<z.ZodString, "many">;
83
- kms_enabled: z.ZodBoolean;
84
- manifest_version: z.ZodNumber;
85
- name: z.ZodString;
86
- public_logs: z.ZodBoolean;
87
- public_sysinfo: z.ZodBoolean;
88
- runner: z.ZodOptional<z.ZodString>;
89
- salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
- tproxy_enabled: z.ZodBoolean;
91
- version: z.ZodOptional<z.ZodString>;
92
- }, z.ZodTypeAny, "passthrough">>;
26
+ }, z.core.$loose>;
93
27
  declare const encryptedEnvItemSchema: z.ZodObject<{
94
28
  key: z.ZodString;
95
29
  value: z.ZodString;
96
- }, "strip", z.ZodTypeAny, {
97
- value?: string;
98
- key?: string;
99
- }, {
100
- value?: string;
101
- key?: string;
102
- }>;
30
+ }, z.core.$strip>;
103
31
  declare const getCvmNetworkResponseSchema: z.ZodObject<{
104
32
  is_online: z.ZodBoolean;
105
33
  is_public: z.ZodBoolean;
@@ -109,34 +37,8 @@ declare const getCvmNetworkResponseSchema: z.ZodObject<{
109
37
  public_urls: z.ZodArray<z.ZodObject<{
110
38
  app: z.ZodString;
111
39
  instance: z.ZodString;
112
- }, "strip", z.ZodTypeAny, {
113
- app?: string;
114
- instance?: string;
115
- }, {
116
- app?: string;
117
- instance?: string;
118
- }>, "many">;
119
- }, "strip", z.ZodTypeAny, {
120
- error?: string;
121
- is_online?: boolean;
122
- is_public?: boolean;
123
- internal_ip?: string;
124
- latest_handshake?: string;
125
- public_urls?: {
126
- app?: string;
127
- instance?: string;
128
- }[];
129
- }, {
130
- error?: string;
131
- is_online?: boolean;
132
- is_public?: boolean;
133
- internal_ip?: string;
134
- latest_handshake?: string;
135
- public_urls?: {
136
- app?: string;
137
- instance?: string;
138
- }[];
139
- }>;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>;
140
42
  type DockerConfig = z.infer<typeof dockerConfigSchema>;
141
43
  type ComposeFile = z.infer<typeof composeFileSchema>;
142
44
  type EncryptedEnvItem = z.infer<typeof encryptedEnvItemSchema>;
@@ -199,13 +101,7 @@ declare const replicateCvmResponseSchema: z.ZodObject<{
199
101
  teepod: z.ZodObject<{
200
102
  id: z.ZodNumber;
201
103
  name: z.ZodString;
202
- }, "strip", z.ZodTypeAny, {
203
- name?: string;
204
- id?: number;
205
- }, {
206
- name?: string;
207
- id?: number;
208
- }>;
104
+ }, z.core.$strip>;
209
105
  user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
106
  app_id: z.ZodString;
211
107
  vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -215,64 +111,14 @@ declare const replicateCvmResponseSchema: z.ZodObject<{
215
111
  vcpu: z.ZodNumber;
216
112
  memory: z.ZodNumber;
217
113
  disk_size: z.ZodNumber;
218
- manifest_version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
114
+ manifest_version: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
219
115
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
116
  runner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
117
  docker_compose_file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
- features: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
118
+ features: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
223
119
  created_at: z.ZodString;
224
120
  encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
- }, "strip", z.ZodTypeAny, {
226
- name?: string;
227
- vcpu?: number;
228
- memory?: number;
229
- status?: string;
230
- id?: string;
231
- app_id?: string;
232
- instance_id?: string;
233
- version?: string;
234
- docker_compose_file?: string;
235
- features?: string[];
236
- manifest_version?: number;
237
- runner?: string;
238
- teepod_id?: number;
239
- teepod?: {
240
- name?: string;
241
- id?: number;
242
- };
243
- user_id?: string;
244
- vm_uuid?: string;
245
- app_url?: string;
246
- base_image?: string;
247
- disk_size?: number;
248
- created_at?: string;
249
- encrypted_env_pubkey?: string;
250
- }, {
251
- name?: string;
252
- vcpu?: number;
253
- memory?: number;
254
- status?: string;
255
- id?: string;
256
- app_id?: string;
257
- instance_id?: string;
258
- version?: string;
259
- docker_compose_file?: string;
260
- features?: string[];
261
- manifest_version?: number;
262
- runner?: string;
263
- teepod_id?: number;
264
- teepod?: {
265
- name?: string;
266
- id?: number;
267
- };
268
- user_id?: string;
269
- vm_uuid?: string;
270
- app_url?: string;
271
- base_image?: string;
272
- disk_size?: number;
273
- created_at?: string;
274
- encrypted_env_pubkey?: string;
275
- }>;
121
+ }, z.core.$strip>;
276
122
  type ReplicateCvmResponse = z.infer<typeof replicateCvmResponseSchema>;
277
123
  declare const cvmAttestationResponseSchema: z.ZodObject<{
278
124
  is_online: z.ZodBoolean;
@@ -285,32 +131,12 @@ declare const cvmAttestationResponseSchema: z.ZodObject<{
285
131
  country: z.ZodNullable<z.ZodString>;
286
132
  state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
133
  locality: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
- }, "strip", z.ZodTypeAny, {
289
- common_name?: string;
290
- organization?: string;
291
- country?: string;
292
- state?: string;
293
- locality?: string;
294
- }, {
295
- common_name?: string;
296
- organization?: string;
297
- country?: string;
298
- state?: string;
299
- locality?: string;
300
- }>;
134
+ }, z.core.$strip>;
301
135
  issuer: z.ZodObject<{
302
136
  common_name: z.ZodNullable<z.ZodString>;
303
137
  organization: z.ZodNullable<z.ZodString>;
304
138
  country: z.ZodNullable<z.ZodString>;
305
- }, "strip", z.ZodTypeAny, {
306
- common_name?: string;
307
- organization?: string;
308
- country?: string;
309
- }, {
310
- common_name?: string;
311
- organization?: string;
312
- country?: string;
313
- }>;
139
+ }, z.core.$strip>;
314
140
  serial_number: z.ZodString;
315
141
  not_before: z.ZodString;
316
142
  not_after: z.ZodString;
@@ -321,53 +147,7 @@ declare const cvmAttestationResponseSchema: z.ZodObject<{
321
147
  is_ca: z.ZodBoolean;
322
148
  position_in_chain: z.ZodNumber;
323
149
  quote: z.ZodNullable<z.ZodString>;
324
- }, "strip", z.ZodTypeAny, {
325
- version?: string;
326
- subject?: {
327
- common_name?: string;
328
- organization?: string;
329
- country?: string;
330
- state?: string;
331
- locality?: string;
332
- };
333
- issuer?: {
334
- common_name?: string;
335
- organization?: string;
336
- country?: string;
337
- };
338
- serial_number?: string;
339
- not_before?: string;
340
- not_after?: string;
341
- fingerprint?: string;
342
- signature_algorithm?: string;
343
- sans?: string;
344
- is_ca?: boolean;
345
- position_in_chain?: number;
346
- quote?: string;
347
- }, {
348
- version?: string;
349
- subject?: {
350
- common_name?: string;
351
- organization?: string;
352
- country?: string;
353
- state?: string;
354
- locality?: string;
355
- };
356
- issuer?: {
357
- common_name?: string;
358
- organization?: string;
359
- country?: string;
360
- };
361
- serial_number?: string;
362
- not_before?: string;
363
- not_after?: string;
364
- fingerprint?: string;
365
- signature_algorithm?: string;
366
- sans?: string;
367
- is_ca?: boolean;
368
- position_in_chain?: number;
369
- quote?: string;
370
- }>, "many">>;
150
+ }, z.core.$strip>>>;
371
151
  tcb_info: z.ZodNullable<z.ZodObject<{
372
152
  mrtd: z.ZodString;
373
153
  rootfs_hash: z.ZodString;
@@ -381,142 +161,14 @@ declare const cvmAttestationResponseSchema: z.ZodObject<{
381
161
  digest: z.ZodString;
382
162
  event: z.ZodString;
383
163
  event_payload: z.ZodString;
384
- }, "strip", z.ZodTypeAny, {
385
- imr?: number;
386
- event_type?: number;
387
- digest?: string;
388
- event?: string;
389
- event_payload?: string;
390
- }, {
391
- imr?: number;
392
- event_type?: number;
393
- digest?: string;
394
- event?: string;
395
- event_payload?: string;
396
- }>, "many">;
397
- }, "strip", z.ZodTypeAny, {
398
- mrtd?: string;
399
- rootfs_hash?: string;
400
- rtmr0?: string;
401
- rtmr1?: string;
402
- rtmr2?: string;
403
- rtmr3?: string;
404
- event_log?: {
405
- imr?: number;
406
- event_type?: number;
407
- digest?: string;
408
- event?: string;
409
- event_payload?: string;
410
- }[];
411
- }, {
412
- mrtd?: string;
413
- rootfs_hash?: string;
414
- rtmr0?: string;
415
- rtmr1?: string;
416
- rtmr2?: string;
417
- rtmr3?: string;
418
- event_log?: {
419
- imr?: number;
420
- event_type?: number;
421
- digest?: string;
422
- event?: string;
423
- event_payload?: string;
424
- }[];
425
- }>>;
164
+ }, z.core.$strip>>;
165
+ }, z.core.$strip>>;
426
166
  compose_file: z.ZodNullable<z.ZodString>;
427
- }, "strip", z.ZodTypeAny, {
428
- error?: string;
429
- compose_file?: string;
430
- is_online?: boolean;
431
- is_public?: boolean;
432
- app_certificates?: {
433
- version?: string;
434
- subject?: {
435
- common_name?: string;
436
- organization?: string;
437
- country?: string;
438
- state?: string;
439
- locality?: string;
440
- };
441
- issuer?: {
442
- common_name?: string;
443
- organization?: string;
444
- country?: string;
445
- };
446
- serial_number?: string;
447
- not_before?: string;
448
- not_after?: string;
449
- fingerprint?: string;
450
- signature_algorithm?: string;
451
- sans?: string;
452
- is_ca?: boolean;
453
- position_in_chain?: number;
454
- quote?: string;
455
- }[];
456
- tcb_info?: {
457
- mrtd?: string;
458
- rootfs_hash?: string;
459
- rtmr0?: string;
460
- rtmr1?: string;
461
- rtmr2?: string;
462
- rtmr3?: string;
463
- event_log?: {
464
- imr?: number;
465
- event_type?: number;
466
- digest?: string;
467
- event?: string;
468
- event_payload?: string;
469
- }[];
470
- };
471
- }, {
472
- error?: string;
473
- compose_file?: string;
474
- is_online?: boolean;
475
- is_public?: boolean;
476
- app_certificates?: {
477
- version?: string;
478
- subject?: {
479
- common_name?: string;
480
- organization?: string;
481
- country?: string;
482
- state?: string;
483
- locality?: string;
484
- };
485
- issuer?: {
486
- common_name?: string;
487
- organization?: string;
488
- country?: string;
489
- };
490
- serial_number?: string;
491
- not_before?: string;
492
- not_after?: string;
493
- fingerprint?: string;
494
- signature_algorithm?: string;
495
- sans?: string;
496
- is_ca?: boolean;
497
- position_in_chain?: number;
498
- quote?: string;
499
- }[];
500
- tcb_info?: {
501
- mrtd?: string;
502
- rootfs_hash?: string;
503
- rtmr0?: string;
504
- rtmr1?: string;
505
- rtmr2?: string;
506
- rtmr3?: string;
507
- event_log?: {
508
- imr?: number;
509
- event_type?: number;
510
- digest?: string;
511
- event?: string;
512
- event_payload?: string;
513
- }[];
514
- };
515
- }>;
167
+ }, z.core.$strip>;
516
168
  declare const imageSchema: z.ZodObject<{
517
169
  name: z.ZodString;
518
170
  description: z.ZodOptional<z.ZodString>;
519
- version: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
171
+ version: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
520
172
  is_dev: z.ZodOptional<z.ZodBoolean>;
521
173
  os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
522
174
  rootfs_hash: z.ZodOptional<z.ZodString>;
@@ -527,39 +179,15 @@ declare const imageSchema: z.ZodObject<{
527
179
  hda: z.ZodOptional<z.ZodNullable<z.ZodString>>;
528
180
  rootfs: z.ZodOptional<z.ZodString>;
529
181
  bios: z.ZodOptional<z.ZodString>;
530
- }, "strip", z.ZodTypeAny, {
531
- name?: string;
532
- description?: string;
533
- version?: number[];
534
- rootfs_hash?: string;
535
- is_dev?: boolean;
536
- os_image_hash?: string;
537
- shared_ro?: boolean;
538
- cmdline?: string;
539
- kernel?: string;
540
- initrd?: string;
541
- hda?: string;
542
- rootfs?: string;
543
- bios?: string;
544
- }, {
545
- name?: string;
546
- description?: string;
547
- version?: number[];
548
- rootfs_hash?: string;
549
- is_dev?: boolean;
550
- os_image_hash?: string;
551
- shared_ro?: boolean;
552
- cmdline?: string;
553
- kernel?: string;
554
- initrd?: string;
555
- hda?: string;
556
- rootfs?: string;
557
- bios?: string;
558
- }>;
182
+ }, z.core.$strip>;
559
183
  declare const teepodSchema: z.ZodObject<{
560
184
  teepod_id: z.ZodNullable<z.ZodNumber>;
185
+ teepod_id_hashid: z.ZodOptional<z.ZodString>;
186
+ node_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
187
+ node_id_hashid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
561
188
  id: z.ZodOptional<z.ZodNumber>;
562
189
  name: z.ZodString;
190
+ node: z.ZodString;
563
191
  listed: z.ZodOptional<z.ZodBoolean>;
564
192
  resource_score: z.ZodOptional<z.ZodNumber>;
565
193
  remaining_vcpu: z.ZodOptional<z.ZodNumber>;
@@ -568,7 +196,7 @@ declare const teepodSchema: z.ZodObject<{
568
196
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
569
197
  name: z.ZodString;
570
198
  description: z.ZodOptional<z.ZodString>;
571
- version: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
199
+ version: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
572
200
  is_dev: z.ZodOptional<z.ZodBoolean>;
573
201
  os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
574
202
  rootfs_hash: z.ZodOptional<z.ZodString>;
@@ -579,99 +207,13 @@ declare const teepodSchema: z.ZodObject<{
579
207
  hda: z.ZodOptional<z.ZodNullable<z.ZodString>>;
580
208
  rootfs: z.ZodOptional<z.ZodString>;
581
209
  bios: z.ZodOptional<z.ZodString>;
582
- }, "strip", z.ZodTypeAny, {
583
- name?: string;
584
- description?: string;
585
- version?: number[];
586
- rootfs_hash?: string;
587
- is_dev?: boolean;
588
- os_image_hash?: string;
589
- shared_ro?: boolean;
590
- cmdline?: string;
591
- kernel?: string;
592
- initrd?: string;
593
- hda?: string;
594
- rootfs?: string;
595
- bios?: string;
596
- }, {
597
- name?: string;
598
- description?: string;
599
- version?: number[];
600
- rootfs_hash?: string;
601
- is_dev?: boolean;
602
- os_image_hash?: string;
603
- shared_ro?: boolean;
604
- cmdline?: string;
605
- kernel?: string;
606
- initrd?: string;
607
- hda?: string;
608
- rootfs?: string;
609
- bios?: string;
610
- }>, "many">>;
210
+ }, z.core.$strip>>>;
611
211
  region_identifier: z.ZodOptional<z.ZodString>;
612
212
  dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
613
213
  support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
614
214
  fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
615
215
  device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
- }, "strip", z.ZodTypeAny, {
617
- name?: string;
618
- listed?: boolean;
619
- id?: number;
620
- teepod_id?: number;
621
- resource_score?: number;
622
- remaining_vcpu?: number;
623
- remaining_memory?: number;
624
- remaining_cvm_slots?: number;
625
- images?: {
626
- name?: string;
627
- description?: string;
628
- version?: number[];
629
- rootfs_hash?: string;
630
- is_dev?: boolean;
631
- os_image_hash?: string;
632
- shared_ro?: boolean;
633
- cmdline?: string;
634
- kernel?: string;
635
- initrd?: string;
636
- hda?: string;
637
- rootfs?: string;
638
- bios?: string;
639
- }[];
640
- region_identifier?: string;
641
- dedicated_for_team_id?: number;
642
- support_onchain_kms?: boolean;
643
- fmspc?: string;
644
- device_id?: string;
645
- }, {
646
- name?: string;
647
- listed?: boolean;
648
- id?: number;
649
- teepod_id?: number;
650
- resource_score?: number;
651
- remaining_vcpu?: number;
652
- remaining_memory?: number;
653
- remaining_cvm_slots?: number;
654
- images?: {
655
- name?: string;
656
- description?: string;
657
- version?: number[];
658
- rootfs_hash?: string;
659
- is_dev?: boolean;
660
- os_image_hash?: string;
661
- shared_ro?: boolean;
662
- cmdline?: string;
663
- kernel?: string;
664
- initrd?: string;
665
- hda?: string;
666
- rootfs?: string;
667
- bios?: string;
668
- }[];
669
- region_identifier?: string;
670
- dedicated_for_team_id?: number;
671
- support_onchain_kms?: boolean;
672
- fmspc?: string;
673
- device_id?: string;
674
- }>;
216
+ }, z.core.$strip>;
675
217
  type TEEPod = z.infer<typeof teepodSchema>;
676
218
  type Image = z.infer<typeof imageSchema>;
677
219
  interface KmsListItem {
@@ -710,14 +252,22 @@ interface CvmCreateInstanceTypeResource {
710
252
  default_disk_size_gb: number;
711
253
  requires_gpu: boolean;
712
254
  requires_gpu_count: number;
255
+ requires_gpu_product_id?: string | null;
713
256
  family?: string | null;
714
257
  display_order?: number | null;
715
258
  }
259
+ interface ProductGpuAvailability {
260
+ product_id: string;
261
+ display_name?: string | null;
262
+ count: number;
263
+ max_placeable_count?: number;
264
+ }
716
265
  interface GpuAvailability {
717
266
  has_reserved_gpus: boolean;
718
267
  reserved_gpu_count: number;
719
268
  has_public_gpus: boolean;
720
269
  public_gpu_count: number;
270
+ available_by_product?: ProductGpuAvailability[];
721
271
  }
722
272
  interface CvmCreateResourcesResponse {
723
273
  tier: string;
@@ -729,10 +279,6 @@ interface CvmCreateResourcesResponse {
729
279
  instance_types: CvmCreateInstanceTypeResource[];
730
280
  gpu_availability: GpuAvailability;
731
281
  }
732
- interface UpgradeResponse {
733
- detail?: string;
734
- [key: string]: unknown;
735
- }
736
282
  interface UserInfoResponse {
737
283
  username: string;
738
284
  [key: string]: unknown;
@@ -776,41 +322,17 @@ interface ResizeCvmPayload {
776
322
  vcpu?: number;
777
323
  memory?: number;
778
324
  disk_size?: number;
779
- allow_restart?: number;
780
325
  }
781
326
  /**
782
- * Replicate a CVM instance
783
- * @param appId App ID (with or without app_ prefix)
784
- * @param vmUuid Source CVM UUID (with or without dashes)
785
- */
786
- declare function replicateCvm(appId: string, vmUuid: string, payload: {
787
- teepod_id?: number;
788
- encrypted_env?: string;
789
- }): Promise<ReplicateCvmResponse>;
790
- /**
791
- * Resize a CVM's resources
327
+ * Resize a CVM's resources through PATCH /cvms/{id}. The CVM restarts when
328
+ * the resize needs it.
792
329
  * @param appId App ID (with or without app_ prefix)
793
330
  * @param vcpu Number of virtual CPUs (optional)
794
331
  * @param memory Memory size in MB (optional)
795
332
  * @param diskSize Disk size in GB (optional)
796
- * @param allowRestart Whether to allow restart (1) or not (0) for the resize operation (optional)
797
333
  * @returns Success status
798
334
  */
799
- declare function resizeCvm(appId: string, vcpu?: number, memory?: number, diskSize?: number, allowRestart?: number): Promise<boolean>;
800
- /**
801
- * VM configuration type
802
- */
803
- interface VMConfig {
804
- [key: string]: unknown;
805
- }
806
- /**
807
- * Upgrade a CVM (Legacy)
808
- * @deprecated This is a legacy function, consider using SDK's provisionCvmComposeFileUpdate
809
- * @param appId App ID (with or without app_ prefix)
810
- * @param vmConfig VM configuration
811
- * @returns Upgrade response
812
- */
813
- declare function upgradeCvm(appId: string, vmConfig: VMConfig): Promise<UpgradeResponse>;
335
+ declare function resizeCvm(appId: string, vcpu?: number, memory?: number, diskSize?: number): Promise<boolean>;
814
336
  /**
815
337
  * Get the CVM create resource graph.
816
338
  * @returns Nodes, KMS resources, gateway resources, and instance types for CVM creation
@@ -878,4 +400,4 @@ declare function streamCvmChannelLogs(appId: string, channel: CvmLogChannel, onD
878
400
  /** Get CVM status string (e.g. "running", "stopped") */
879
401
  declare function getCvmStatus(appId: string): Promise<string>;
880
402
 
881
- export { type AvailableNodesResponse, type CertificateInfo, type CertificateNameInfo, type ComposeFile, type ContainerLogsOptions, type CvmAttestationResponse, type CvmCreateGatewayResource, type CvmCreateInstanceTypeResource, type CvmCreateNodeKmsRelation, type CvmCreateResourcesResponse, type CvmListResponse, type CvmLogChannel, type DockerConfig, type EncryptedEnvItem, type GetCvmNetworkResponse, type GpuAvailability, type Image, type KmsListItem, type LogChannel, type LogEntry, type ReplicateCvmResponse, type ResizeCvmPayload, type SerialLogsOptions, type TCBEventLogEntry, type TCBInfo, type TEEPod, type UpgradeResponse, type UserInfoResponse, type VMConfig, composeFileSchema, cvmAttestationResponseSchema, dockerConfigSchema, encryptedEnvItemSchema, fetchContainerLogs, fetchContainerLogsEntries, fetchCvmChannelLogs, fetchSerialLogs, getCvmAttestation, getCvmByAppId, getCvmCreateResources, getCvmLogEndpoint, getCvmNetwork, getCvmNetworkResponseSchema, getCvmStatus, imageSchema, replicateCvm, replicateCvmResponseSchema, resizeCvm, selectCvm, streamContainerLogs, streamContainerLogsEntries, streamCvmChannelLogs, streamSerialLogs, teepodSchema, upgradeCvm };
403
+ export { type AvailableNodesResponse, type CertificateInfo, type CertificateNameInfo, type ComposeFile, type ContainerLogsOptions, type CvmAttestationResponse, type CvmCreateGatewayResource, type CvmCreateInstanceTypeResource, type CvmCreateNodeKmsRelation, type CvmCreateResourcesResponse, type CvmListResponse, type CvmLogChannel, type DockerConfig, type EncryptedEnvItem, type GetCvmNetworkResponse, type GpuAvailability, type Image, type KmsListItem, type LogChannel, type LogEntry, type ProductGpuAvailability, type ReplicateCvmResponse, type ResizeCvmPayload, type SerialLogsOptions, type TCBEventLogEntry, type TCBInfo, type TEEPod, type UserInfoResponse, composeFileSchema, cvmAttestationResponseSchema, dockerConfigSchema, encryptedEnvItemSchema, fetchContainerLogs, fetchContainerLogsEntries, fetchCvmChannelLogs, fetchSerialLogs, getCvmAttestation, getCvmByAppId, getCvmCreateResources, getCvmLogEndpoint, getCvmNetwork, getCvmNetworkResponseSchema, getCvmStatus, imageSchema, replicateCvmResponseSchema, resizeCvm, selectCvm, streamContainerLogs, streamContainerLogsEntries, streamCvmChannelLogs, streamSerialLogs, teepodSchema };