@phala/cloud 0.2.10 → 0.3.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.
Files changed (59) hide show
  1. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +100 -161
  2. package/dist/actions/apps/check_app_is_allowed.d.ts +14 -14
  3. package/dist/actions/apps/create_app_instance.d.ts +22 -22
  4. package/dist/actions/apps/get_app_attestation.d.ts +32 -32
  5. package/dist/actions/apps/get_app_device_allowlist.d.ts +51 -50
  6. package/dist/actions/apps/get_app_list.d.ts +2 -2
  7. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +40 -102
  8. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
  9. package/dist/actions/cvms/commit_cvm_provision.d.ts +5 -135
  10. package/dist/actions/cvms/commit_cvm_update.d.ts +2 -2
  11. package/dist/actions/cvms/confirm_cvm_patch.d.ts +2 -2
  12. package/dist/actions/cvms/delete_cvm.d.ts +2 -2
  13. package/dist/actions/cvms/get_available_os_images.d.ts +2 -2
  14. package/dist/actions/cvms/get_cvm_attestation.d.ts +2 -2
  15. package/dist/actions/cvms/get_cvm_compose_file.d.ts +10 -10
  16. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +10 -10
  17. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
  18. package/dist/actions/cvms/get_cvm_info.d.ts +2 -2
  19. package/dist/actions/cvms/get_cvm_list.d.ts +4 -4
  20. package/dist/actions/cvms/get_cvm_network.d.ts +2 -2
  21. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +2 -2
  22. package/dist/actions/cvms/get_cvm_state.d.ts +6 -6
  23. package/dist/actions/cvms/get_cvm_stats.d.ts +2 -2
  24. package/dist/actions/cvms/get_cvm_status_batch.d.ts +6 -6
  25. package/dist/actions/cvms/get_cvm_user_config.d.ts +2 -2
  26. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +2 -2
  27. package/dist/actions/cvms/patch_cvm.d.ts +18 -18
  28. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +38 -38
  29. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +27 -58
  30. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +120 -165
  31. package/dist/actions/cvms/replicate_cvm.d.ts +7 -72
  32. package/dist/actions/cvms/restart_cvm.d.ts +7 -72
  33. package/dist/actions/cvms/shutdown_cvm.d.ts +9 -72
  34. package/dist/actions/cvms/start_cvm.d.ts +7 -72
  35. package/dist/actions/cvms/stop_cvm.d.ts +7 -72
  36. package/dist/actions/cvms/update_cvm_envs.d.ts +20 -20
  37. package/dist/actions/cvms/update_cvm_resources.d.ts +2 -2
  38. package/dist/actions/cvms/update_cvm_visibility.d.ts +24 -24
  39. package/dist/actions/cvms/update_docker_compose.d.ts +20 -20
  40. package/dist/actions/cvms/update_os_image.d.ts +2 -2
  41. package/dist/actions/cvms/update_prelaunch_script.d.ts +20 -20
  42. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +20 -20
  43. package/dist/actions/kms/get_kms_list.d.ts +10 -10
  44. package/dist/actions/kms/next_app_ids.d.ts +6 -6
  45. package/dist/actions/list-instance-types.d.ts +12 -12
  46. package/dist/actions/ssh_keys/create_ssh_key.d.ts +2 -2
  47. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +4 -4
  48. package/dist/actions/workspaces/get_workspace_nodes.d.ts +14 -14
  49. package/dist/index.js +254 -45
  50. package/dist/index.mjs +254 -45
  51. package/dist/types/app_info_v20251028.d.ts +128 -128
  52. package/dist/types/app_info_v20260121.d.ts +490 -490
  53. package/dist/types/app_revision.d.ts +8 -8
  54. package/dist/types/cvm_id.d.ts +6 -6
  55. package/dist/types/cvm_info.d.ts +98 -98
  56. package/dist/types/cvm_info_v20251028.d.ts +47 -47
  57. package/dist/types/cvm_info_v20260121.d.ts +148 -148
  58. package/dist/types/version-mappings.d.ts +37 -0
  59. package/package.json +1 -1
@@ -1,4 +1,7 @@
1
1
  import { z } from "zod";
2
+ import { type Client, type SafeResult } from "../../client";
3
+ import type { ApiVersion } from "../../types/client";
4
+ import { type VMForVersion } from "../../types/cvm_info";
2
5
  /**
3
6
  * Restart a CVM (Confidential Virtual Machine)
4
7
  *
@@ -41,86 +44,18 @@ export declare const RestartCvmRequestSchema: z.ZodEffects<z.ZodObject<{
41
44
  }, "strip", z.ZodTypeAny, {
42
45
  name?: string | undefined;
43
46
  id?: string | undefined;
47
+ uuid?: string | undefined;
44
48
  app_id?: string | undefined;
45
49
  instance_id?: string | undefined;
46
- uuid?: string | undefined;
47
50
  force?: boolean | undefined;
48
51
  }, {
49
52
  name?: string | undefined;
50
53
  id?: string | undefined;
54
+ uuid?: string | undefined;
51
55
  app_id?: string | undefined;
52
56
  instance_id?: string | undefined;
53
- uuid?: string | undefined;
54
57
  force?: boolean | undefined;
55
58
  }>, any, any>;
56
59
  export type RestartCvmRequest = z.infer<typeof RestartCvmRequestSchema>;
57
- declare const restartCvm: {
58
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
59
- status: string;
60
- name: string;
61
- id: string;
62
- app_id: string;
63
- instance_id: string | null;
64
- vcpu: number;
65
- memory: number;
66
- disk_size: number;
67
- teepod_id: number;
68
- vm_uuid: string | null;
69
- encrypted_env_pubkey: string | null;
70
- created_at: string;
71
- version?: string | null | undefined;
72
- app_url?: string | null | undefined;
73
- teepod?: {
74
- name: string;
75
- id: number;
76
- region_identifier?: string | null | undefined;
77
- } | null | undefined;
78
- base_image?: string | null | undefined;
79
- user_id?: string | null | undefined;
80
- docker_compose_file?: string | null | undefined;
81
- features?: string[] | null | undefined;
82
- manifest_version?: number | null | undefined;
83
- runner?: string | null | undefined;
84
- }>;
85
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
86
- schema: T;
87
- } | undefined): Promise<z.TypeOf<T>>;
88
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
89
- schema: false;
90
- } | undefined): Promise<unknown>;
91
- }, safeRestartCvm: {
92
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
93
- status: string;
94
- name: string;
95
- id: string;
96
- app_id: string;
97
- instance_id: string | null;
98
- vcpu: number;
99
- memory: number;
100
- disk_size: number;
101
- teepod_id: number;
102
- vm_uuid: string | null;
103
- encrypted_env_pubkey: string | null;
104
- created_at: string;
105
- version?: string | null | undefined;
106
- app_url?: string | null | undefined;
107
- teepod?: {
108
- name: string;
109
- id: number;
110
- region_identifier?: string | null | undefined;
111
- } | null | undefined;
112
- base_image?: string | null | undefined;
113
- user_id?: string | null | undefined;
114
- docker_compose_file?: string | null | undefined;
115
- features?: string[] | null | undefined;
116
- manifest_version?: number | null | undefined;
117
- runner?: string | null | undefined;
118
- }>>;
119
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
120
- schema: T;
121
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
122
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
123
- schema: false;
124
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
125
- };
126
- export { restartCvm, safeRestartCvm };
60
+ export declare function restartCvm<V extends ApiVersion>(client: Client<V>, request: RestartCvmRequest): Promise<VMForVersion<V>>;
61
+ export declare function safeRestartCvm<V extends ApiVersion>(client: Client<V>, request: RestartCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -1,4 +1,7 @@
1
+ import { type Client, type SafeResult } from "../../client";
2
+ import type { ApiVersion } from "../../types/client";
1
3
  import { type CvmIdInput } from "../../types/cvm_id";
4
+ import { type VMForVersion } from "../../types/cvm_info";
2
5
  /**
3
6
  * Shutdown a CVM (Confidential Virtual Machine) gracefully
4
7
  *
@@ -10,6 +13,7 @@ import { type CvmIdInput } from "../../types/cvm_id";
10
13
  * import { createClient, shutdownCvm } from '@phala/cloud'
11
14
  *
12
15
  * const client = createClient();
16
+ * const result = await shutdownCvm(client, { id: 'my-cvm-id' });
13
17
  * console.log(result.status); // "shutting_down"
14
18
  * ```
15
19
  *
@@ -18,6 +22,7 @@ import { type CvmIdInput } from "../../types/cvm_id";
18
22
  * Use `safeShutdownCvm` for error handling without exceptions:
19
23
  *
20
24
  * ```typescript
25
+ * const result = await safeShutdownCvm(client, { id: 'my-cvm-id' });
21
26
  * if (result.success) {
22
27
  * console.log('CVM shutting down:', result.data.status);
23
28
  * } else {
@@ -34,86 +39,18 @@ export declare const ShutdownCvmRequestSchema: import("zod").ZodEffects<import("
34
39
  }, "strip", import("zod").ZodTypeAny, {
35
40
  name?: string | undefined;
36
41
  id?: string | undefined;
42
+ uuid?: string | undefined;
37
43
  app_id?: string | undefined;
38
44
  instance_id?: string | undefined;
39
- uuid?: string | undefined;
40
45
  }, {
41
46
  name?: string | undefined;
42
47
  id?: string | undefined;
48
+ uuid?: string | undefined;
43
49
  app_id?: string | undefined;
44
50
  instance_id?: string | undefined;
45
- uuid?: string | undefined;
46
51
  }>, any, any>, {
47
52
  cvmId: any;
48
53
  }, any>;
49
54
  export type ShutdownCvmRequest = CvmIdInput;
50
- declare const shutdownCvm: {
51
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
52
- status: string;
53
- name: string;
54
- id: string;
55
- app_id: string;
56
- instance_id: string | null;
57
- vcpu: number;
58
- memory: number;
59
- disk_size: number;
60
- teepod_id: number;
61
- vm_uuid: string | null;
62
- encrypted_env_pubkey: string | null;
63
- created_at: string;
64
- version?: string | null | undefined;
65
- app_url?: string | null | undefined;
66
- teepod?: {
67
- name: string;
68
- id: number;
69
- region_identifier?: string | null | undefined;
70
- } | null | undefined;
71
- base_image?: string | null | undefined;
72
- user_id?: string | null | undefined;
73
- docker_compose_file?: string | null | undefined;
74
- features?: string[] | null | undefined;
75
- manifest_version?: number | null | undefined;
76
- runner?: string | null | undefined;
77
- }>;
78
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
79
- schema: T;
80
- }): Promise<import("zod").TypeOf<T>>;
81
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
82
- schema: false;
83
- }): Promise<unknown>;
84
- }, safeShutdownCvm: {
85
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
86
- status: string;
87
- name: string;
88
- id: string;
89
- app_id: string;
90
- instance_id: string | null;
91
- vcpu: number;
92
- memory: number;
93
- disk_size: number;
94
- teepod_id: number;
95
- vm_uuid: string | null;
96
- encrypted_env_pubkey: string | null;
97
- created_at: string;
98
- version?: string | null | undefined;
99
- app_url?: string | null | undefined;
100
- teepod?: {
101
- name: string;
102
- id: number;
103
- region_identifier?: string | null | undefined;
104
- } | null | undefined;
105
- base_image?: string | null | undefined;
106
- user_id?: string | null | undefined;
107
- docker_compose_file?: string | null | undefined;
108
- features?: string[] | null | undefined;
109
- manifest_version?: number | null | undefined;
110
- runner?: string | null | undefined;
111
- }>>;
112
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
113
- schema: T;
114
- }): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
115
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
116
- schema: false;
117
- }): Promise<import("../..").SafeResult<unknown>>;
118
- };
119
- export { shutdownCvm, safeShutdownCvm };
55
+ export declare function shutdownCvm<V extends ApiVersion>(client: Client<V>, request: ShutdownCvmRequest): Promise<VMForVersion<V>>;
56
+ export declare function safeShutdownCvm<V extends ApiVersion>(client: Client<V>, request: ShutdownCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -1,4 +1,7 @@
1
+ import { type Client, type SafeResult } from "../../client";
2
+ import type { ApiVersion } from "../../types/client";
1
3
  import { type CvmIdInput } from "../../types/cvm_id";
4
+ import { type VMForVersion } from "../../types/cvm_info";
2
5
  /**
3
6
  * Start a CVM (Confidential Virtual Machine)
4
7
  *
@@ -35,86 +38,18 @@ export declare const StartCvmRequestSchema: import("zod").ZodEffects<import("zod
35
38
  }, "strip", import("zod").ZodTypeAny, {
36
39
  name?: string | undefined;
37
40
  id?: string | undefined;
41
+ uuid?: string | undefined;
38
42
  app_id?: string | undefined;
39
43
  instance_id?: string | undefined;
40
- uuid?: string | undefined;
41
44
  }, {
42
45
  name?: string | undefined;
43
46
  id?: string | undefined;
47
+ uuid?: string | undefined;
44
48
  app_id?: string | undefined;
45
49
  instance_id?: string | undefined;
46
- uuid?: string | undefined;
47
50
  }>, any, any>, {
48
51
  cvmId: any;
49
52
  }, any>;
50
53
  export type StartCvmRequest = CvmIdInput;
51
- declare const startCvm: {
52
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
53
- status: string;
54
- name: string;
55
- id: string;
56
- app_id: string;
57
- instance_id: string | null;
58
- vcpu: number;
59
- memory: number;
60
- disk_size: number;
61
- teepod_id: number;
62
- vm_uuid: string | null;
63
- encrypted_env_pubkey: string | null;
64
- created_at: string;
65
- version?: string | null | undefined;
66
- app_url?: string | null | undefined;
67
- teepod?: {
68
- name: string;
69
- id: number;
70
- region_identifier?: string | null | undefined;
71
- } | null | undefined;
72
- base_image?: string | null | undefined;
73
- user_id?: string | null | undefined;
74
- docker_compose_file?: string | null | undefined;
75
- features?: string[] | null | undefined;
76
- manifest_version?: number | null | undefined;
77
- runner?: string | null | undefined;
78
- }>;
79
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
80
- schema: T;
81
- }): Promise<import("zod").TypeOf<T>>;
82
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
83
- schema: false;
84
- }): Promise<unknown>;
85
- }, safeStartCvm: {
86
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
87
- status: string;
88
- name: string;
89
- id: string;
90
- app_id: string;
91
- instance_id: string | null;
92
- vcpu: number;
93
- memory: number;
94
- disk_size: number;
95
- teepod_id: number;
96
- vm_uuid: string | null;
97
- encrypted_env_pubkey: string | null;
98
- created_at: string;
99
- version?: string | null | undefined;
100
- app_url?: string | null | undefined;
101
- teepod?: {
102
- name: string;
103
- id: number;
104
- region_identifier?: string | null | undefined;
105
- } | null | undefined;
106
- base_image?: string | null | undefined;
107
- user_id?: string | null | undefined;
108
- docker_compose_file?: string | null | undefined;
109
- features?: string[] | null | undefined;
110
- manifest_version?: number | null | undefined;
111
- runner?: string | null | undefined;
112
- }>>;
113
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
114
- schema: T;
115
- }): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
116
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
117
- schema: false;
118
- }): Promise<import("../..").SafeResult<unknown>>;
119
- };
120
- export { startCvm, safeStartCvm };
54
+ export declare function startCvm<V extends ApiVersion>(client: Client<V>, request: StartCvmRequest): Promise<VMForVersion<V>>;
55
+ export declare function safeStartCvm<V extends ApiVersion>(client: Client<V>, request: StartCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -1,4 +1,7 @@
1
+ import { type Client, type SafeResult } from "../../client";
2
+ import type { ApiVersion } from "../../types/client";
1
3
  import { type CvmIdInput } from "../../types/cvm_id";
4
+ import { type VMForVersion } from "../../types/cvm_info";
2
5
  /**
3
6
  * Force stop a CVM (Confidential Virtual Machine)
4
7
  *
@@ -36,86 +39,18 @@ export declare const StopCvmRequestSchema: import("zod").ZodEffects<import("zod"
36
39
  }, "strip", import("zod").ZodTypeAny, {
37
40
  name?: string | undefined;
38
41
  id?: string | undefined;
42
+ uuid?: string | undefined;
39
43
  app_id?: string | undefined;
40
44
  instance_id?: string | undefined;
41
- uuid?: string | undefined;
42
45
  }, {
43
46
  name?: string | undefined;
44
47
  id?: string | undefined;
48
+ uuid?: string | undefined;
45
49
  app_id?: string | undefined;
46
50
  instance_id?: string | undefined;
47
- uuid?: string | undefined;
48
51
  }>, any, any>, {
49
52
  cvmId: any;
50
53
  }, any>;
51
54
  export type StopCvmRequest = CvmIdInput;
52
- declare const stopCvm: {
53
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
54
- status: string;
55
- name: string;
56
- id: string;
57
- app_id: string;
58
- instance_id: string | null;
59
- vcpu: number;
60
- memory: number;
61
- disk_size: number;
62
- teepod_id: number;
63
- vm_uuid: string | null;
64
- encrypted_env_pubkey: string | null;
65
- created_at: string;
66
- version?: string | null | undefined;
67
- app_url?: string | null | undefined;
68
- teepod?: {
69
- name: string;
70
- id: number;
71
- region_identifier?: string | null | undefined;
72
- } | null | undefined;
73
- base_image?: string | null | undefined;
74
- user_id?: string | null | undefined;
75
- docker_compose_file?: string | null | undefined;
76
- features?: string[] | null | undefined;
77
- manifest_version?: number | null | undefined;
78
- runner?: string | null | undefined;
79
- }>;
80
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
81
- schema: T;
82
- }): Promise<import("zod").TypeOf<T>>;
83
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
84
- schema: false;
85
- }): Promise<unknown>;
86
- }, safeStopCvm: {
87
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
88
- status: string;
89
- name: string;
90
- id: string;
91
- app_id: string;
92
- instance_id: string | null;
93
- vcpu: number;
94
- memory: number;
95
- disk_size: number;
96
- teepod_id: number;
97
- vm_uuid: string | null;
98
- encrypted_env_pubkey: string | null;
99
- created_at: string;
100
- version?: string | null | undefined;
101
- app_url?: string | null | undefined;
102
- teepod?: {
103
- name: string;
104
- id: number;
105
- region_identifier?: string | null | undefined;
106
- } | null | undefined;
107
- base_image?: string | null | undefined;
108
- user_id?: string | null | undefined;
109
- docker_compose_file?: string | null | undefined;
110
- features?: string[] | null | undefined;
111
- manifest_version?: number | null | undefined;
112
- runner?: string | null | undefined;
113
- }>>;
114
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
115
- schema: T;
116
- }): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
117
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
118
- schema: false;
119
- }): Promise<import("../..").SafeResult<unknown>>;
120
- };
121
- export { stopCvm, safeStopCvm };
55
+ export declare function stopCvm<V extends ApiVersion>(client: Client<V>, request: StopCvmRequest): Promise<VMForVersion<V>>;
56
+ export declare function safeStopCvm<V extends ApiVersion>(client: Client<V>, request: StopCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -129,20 +129,20 @@ export declare const UpdateCvmEnvsRequestSchema: z.ZodEffects<z.ZodEffects<z.Zod
129
129
  encrypted_env: string;
130
130
  name?: string | undefined;
131
131
  id?: string | undefined;
132
+ uuid?: string | undefined;
132
133
  app_id?: string | undefined;
133
134
  instance_id?: string | undefined;
134
135
  compose_hash?: string | undefined;
135
- uuid?: string | undefined;
136
136
  env_keys?: string[] | undefined;
137
137
  transaction_hash?: string | undefined;
138
138
  }, {
139
139
  encrypted_env: string;
140
140
  name?: string | undefined;
141
141
  id?: string | undefined;
142
+ uuid?: string | undefined;
142
143
  app_id?: string | undefined;
143
144
  instance_id?: string | undefined;
144
145
  compose_hash?: string | undefined;
145
- uuid?: string | undefined;
146
146
  env_keys?: string[] | undefined;
147
147
  transaction_hash?: string | undefined;
148
148
  }>, any, any>, {
@@ -222,36 +222,36 @@ declare const UpdateCvmEnvsPreconditionRequiredSchema: z.ZodObject<{
222
222
  status: "precondition_required";
223
223
  message: string;
224
224
  app_id: string;
225
+ compose_hash: string;
226
+ device_id: string;
225
227
  kms_info: {
226
228
  version: string;
227
229
  id: string;
228
230
  slug: string | null;
229
- url: string;
230
231
  chain_id: number | null;
232
+ url: string;
231
233
  kms_contract_address: `0x${string}`;
232
234
  gateway_app_id: `0x${string}`;
233
235
  } & {
234
236
  [k: string]: unknown;
235
237
  };
236
- device_id: string;
237
- compose_hash: string;
238
238
  }, {
239
239
  status: "precondition_required";
240
240
  message: string;
241
241
  app_id: string;
242
+ compose_hash: string;
243
+ device_id: string;
242
244
  kms_info: {
243
245
  version: string;
244
246
  id: string;
245
247
  slug: string | null;
246
- url: string;
247
248
  chain_id: number | null;
249
+ url: string;
248
250
  kms_contract_address: string | null;
249
251
  gateway_app_id: string | null;
250
252
  } & {
251
253
  [k: string]: unknown;
252
254
  };
253
- device_id: string;
254
- compose_hash: string;
255
255
  }>;
256
256
  export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
257
257
  status: z.ZodLiteral<"in_progress">;
@@ -319,36 +319,36 @@ export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
319
319
  status: "precondition_required";
320
320
  message: string;
321
321
  app_id: string;
322
+ compose_hash: string;
323
+ device_id: string;
322
324
  kms_info: {
323
325
  version: string;
324
326
  id: string;
325
327
  slug: string | null;
326
- url: string;
327
328
  chain_id: number | null;
329
+ url: string;
328
330
  kms_contract_address: `0x${string}`;
329
331
  gateway_app_id: `0x${string}`;
330
332
  } & {
331
333
  [k: string]: unknown;
332
334
  };
333
- device_id: string;
334
- compose_hash: string;
335
335
  }, {
336
336
  status: "precondition_required";
337
337
  message: string;
338
338
  app_id: string;
339
+ compose_hash: string;
340
+ device_id: string;
339
341
  kms_info: {
340
342
  version: string;
341
343
  id: string;
342
344
  slug: string | null;
343
- url: string;
344
345
  chain_id: number | null;
346
+ url: string;
345
347
  kms_contract_address: string | null;
346
348
  gateway_app_id: string | null;
347
349
  } & {
348
350
  [k: string]: unknown;
349
351
  };
350
- device_id: string;
351
- compose_hash: string;
352
352
  }>]>;
353
353
  export type UpdateCvmEnvsRequest = z.input<typeof UpdateCvmEnvsRequestSchema>;
354
354
  export type UpdateCvmEnvsResult = z.infer<typeof UpdateCvmEnvsResultSchema>;
@@ -372,19 +372,19 @@ declare const updateCvmEnvs: {
372
372
  status: "precondition_required";
373
373
  message: string;
374
374
  app_id: string;
375
+ compose_hash: string;
376
+ device_id: string;
375
377
  kms_info: {
376
378
  version: string;
377
379
  id: string;
378
380
  slug: string | null;
379
- url: string;
380
381
  chain_id: number | null;
382
+ url: string;
381
383
  kms_contract_address: `0x${string}`;
382
384
  gateway_app_id: `0x${string}`;
383
385
  } & {
384
386
  [k: string]: unknown;
385
387
  };
386
- device_id: string;
387
- compose_hash: string;
388
388
  }>;
389
389
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
390
390
  schema: T;
@@ -402,19 +402,19 @@ declare const updateCvmEnvs: {
402
402
  status: "precondition_required";
403
403
  message: string;
404
404
  app_id: string;
405
+ compose_hash: string;
406
+ device_id: string;
405
407
  kms_info: {
406
408
  version: string;
407
409
  id: string;
408
410
  slug: string | null;
409
- url: string;
410
411
  chain_id: number | null;
412
+ url: string;
411
413
  kms_contract_address: `0x${string}`;
412
414
  gateway_app_id: `0x${string}`;
413
415
  } & {
414
416
  [k: string]: unknown;
415
417
  };
416
- device_id: string;
417
- compose_hash: string;
418
418
  }>>;
419
419
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
420
420
  schema: T;
@@ -35,24 +35,24 @@ export declare const UpdateCvmResourcesRequestSchema: z.ZodEffects<z.ZodObject<{
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  name?: string | undefined;
37
37
  id?: string | undefined;
38
+ uuid?: string | undefined;
38
39
  app_id?: string | undefined;
39
40
  instance_id?: string | undefined;
40
41
  vcpu?: number | undefined;
41
42
  memory?: number | undefined;
42
43
  disk_size?: number | undefined;
43
44
  instance_type?: string | undefined;
44
- uuid?: string | undefined;
45
45
  allow_restart?: boolean | undefined;
46
46
  }, {
47
47
  name?: string | undefined;
48
48
  id?: string | undefined;
49
+ uuid?: string | undefined;
49
50
  app_id?: string | undefined;
50
51
  instance_id?: string | undefined;
51
52
  vcpu?: number | undefined;
52
53
  memory?: number | undefined;
53
54
  disk_size?: number | undefined;
54
55
  instance_type?: string | undefined;
55
- uuid?: string | undefined;
56
56
  allow_restart?: boolean | undefined;
57
57
  }>, any, any>;
58
58
  export type UpdateCvmResourcesRequest = z.infer<typeof UpdateCvmResourcesRequestSchema>;