@phala/cloud 0.2.1-beta.3 → 0.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.
Files changed (69) hide show
  1. package/LICENSE +201 -0
  2. package/dist/actions/apps/get_app_cvms.d.ts +30 -0
  3. package/dist/actions/apps/get_app_info.d.ts +30 -0
  4. package/dist/actions/apps/get_app_list.d.ts +74 -0
  5. package/dist/actions/apps/get_app_revision_detail.d.ts +48 -0
  6. package/dist/actions/apps/get_app_revisions.d.ts +42 -0
  7. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +7 -7
  8. package/dist/actions/cvms/commit_cvm_provision.d.ts +31 -31
  9. package/dist/actions/cvms/delete_cvm.d.ts +10 -7
  10. package/dist/actions/cvms/get_available_os_images.d.ts +10 -7
  11. package/dist/actions/cvms/get_cvm_attestation.d.ts +10 -7
  12. package/dist/actions/cvms/get_cvm_compose_file.d.ts +18 -15
  13. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +14 -11
  14. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +10 -7
  15. package/dist/actions/cvms/get_cvm_info.d.ts +19 -35
  16. package/dist/actions/cvms/get_cvm_list.d.ts +11 -537
  17. package/dist/actions/cvms/get_cvm_network.d.ts +10 -7
  18. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +42 -0
  19. package/dist/actions/cvms/get_cvm_state.d.ts +10 -7
  20. package/dist/actions/cvms/get_cvm_stats.d.ts +10 -7
  21. package/dist/actions/cvms/get_cvm_status_batch.d.ts +167 -0
  22. package/dist/actions/cvms/provision_cvm.d.ts +404 -21
  23. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +32 -32
  24. package/dist/actions/cvms/restart_cvm.d.ts +17 -14
  25. package/dist/actions/cvms/shutdown_cvm.d.ts +18 -15
  26. package/dist/actions/cvms/start_cvm.d.ts +18 -15
  27. package/dist/actions/cvms/stop_cvm.d.ts +18 -15
  28. package/dist/actions/cvms/update_cvm_envs.d.ts +426 -0
  29. package/dist/actions/cvms/update_cvm_resources.d.ts +13 -10
  30. package/dist/actions/cvms/update_cvm_visibility.d.ts +33 -14
  31. package/dist/actions/cvms/update_docker_compose.d.ts +420 -0
  32. package/dist/actions/cvms/update_os_image.d.ts +9 -6
  33. package/dist/actions/cvms/update_prelaunch_script.d.ts +417 -0
  34. package/dist/actions/cvms/watch_cvm_state.d.ts +1 -1
  35. package/dist/actions/get_available_nodes.d.ts +6 -6
  36. package/dist/actions/get_current_user.d.ts +36 -89
  37. package/dist/actions/index.d.ts +14 -2
  38. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +6 -6
  39. package/dist/actions/kms/get_kms_info.d.ts +6 -6
  40. package/dist/actions/kms/get_kms_list.d.ts +6 -6
  41. package/dist/actions/kms/next_app_ids.d.ts +6 -6
  42. package/dist/actions/list-instance-types.d.ts +16 -16
  43. package/dist/actions/workspaces/get_workspace.d.ts +6 -6
  44. package/dist/actions/workspaces/get_workspace_nodes.d.ts +266 -0
  45. package/dist/actions/workspaces/get_workspace_quotas.d.ts +1169 -0
  46. package/dist/actions/workspaces/list_workspaces.d.ts +6 -6
  47. package/dist/client.d.ts +49 -9
  48. package/dist/create-client.d.ts +87 -36
  49. package/dist/credentials/current_user_v20251028.d.ts +30 -0
  50. package/dist/credentials/current_user_v20260121.d.ts +276 -0
  51. package/dist/credentials/index.d.ts +4 -0
  52. package/dist/index.d.ts +1 -0
  53. package/dist/index.js +1782 -633
  54. package/dist/index.mjs +1693 -626
  55. package/dist/types/app_info_v20251028.d.ts +1266 -0
  56. package/dist/types/app_info_v20260121.d.ts +3293 -0
  57. package/dist/types/app_revision.d.ts +453 -0
  58. package/dist/types/client.d.ts +40 -2
  59. package/dist/types/cvm_id.d.ts +45 -10
  60. package/dist/types/cvm_info.d.ts +16 -502
  61. package/dist/types/cvm_info_v20251028.d.ts +988 -0
  62. package/dist/types/cvm_info_v20260121.d.ts +1264 -0
  63. package/dist/types/index.d.ts +6 -0
  64. package/dist/types/version-mappings.d.ts +38 -0
  65. package/dist/utils/define-action.d.ts +15 -14
  66. package/dist/utils/errors.d.ts +2 -2
  67. package/dist/utils/hostname.d.ts +77 -0
  68. package/dist/utils/index.d.ts +1 -0
  69. package/package.json +2 -2
@@ -33,34 +33,37 @@ export declare const DeleteCvmRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
33
33
  uuid: z.ZodOptional<z.ZodString>;
34
34
  app_id: z.ZodOptional<z.ZodString>;
35
35
  instance_id: z.ZodOptional<z.ZodString>;
36
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
36
37
  }, "strip", z.ZodTypeAny, {
38
+ name?: string | undefined;
37
39
  id?: string | undefined;
38
40
  app_id?: string | undefined;
39
41
  instance_id?: string | undefined;
40
42
  uuid?: string | undefined;
41
43
  }, {
44
+ name?: string | undefined;
42
45
  id?: string | undefined;
43
46
  app_id?: string | undefined;
44
47
  instance_id?: string | undefined;
45
48
  uuid?: string | undefined;
46
49
  }>, any, any>, {
47
- cvmId: string;
50
+ cvmId: any;
48
51
  }, any>;
49
52
  export type DeleteCvmRequest = CvmIdInput;
50
53
  declare const deleteCvm: {
51
- (client: import("../..").BaseClient, params: CvmIdInput): Promise<void>;
52
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient, params: CvmIdInput, parameters: {
54
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<void>;
55
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
53
56
  schema: T;
54
57
  }): Promise<z.TypeOf<T>>;
55
- (client: import("../..").BaseClient, params: CvmIdInput, parameters: {
58
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
56
59
  schema: false;
57
60
  }): Promise<unknown>;
58
61
  }, safeDeleteCvm: {
59
- (client: import("../..").BaseClient, params: CvmIdInput): Promise<import("../..").SafeResult<void>>;
60
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient, params: CvmIdInput, parameters: {
62
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<void>>;
63
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
61
64
  schema: T;
62
65
  }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
63
- (client: import("../..").BaseClient, params: CvmIdInput, parameters: {
66
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
64
67
  schema: false;
65
68
  }): Promise<import("../..").SafeResult<unknown>>;
66
69
  };
@@ -136,18 +136,21 @@ export declare const GetAvailableOSImagesRequestSchema: z.ZodEffects<z.ZodEffect
136
136
  uuid: z.ZodOptional<z.ZodString>;
137
137
  app_id: z.ZodOptional<z.ZodString>;
138
138
  instance_id: z.ZodOptional<z.ZodString>;
139
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
139
140
  }, "strip", z.ZodTypeAny, {
141
+ name?: string | undefined;
140
142
  id?: string | undefined;
141
143
  app_id?: string | undefined;
142
144
  instance_id?: string | undefined;
143
145
  uuid?: string | undefined;
144
146
  }, {
147
+ name?: string | undefined;
145
148
  id?: string | undefined;
146
149
  app_id?: string | undefined;
147
150
  instance_id?: string | undefined;
148
151
  uuid?: string | undefined;
149
152
  }>, any, any>, {
150
- cvmId: string;
153
+ cvmId: any;
151
154
  }, any>;
152
155
  export type GetAvailableOSImagesRequest = CvmIdInput;
153
156
  /**
@@ -174,7 +177,7 @@ export type GetAvailableOSImagesRequest = CvmIdInput;
174
177
  * ```
175
178
  */
176
179
  declare const getAvailableOsImages: {
177
- (client: import("../..").BaseClient, params: CvmIdInput): Promise<{
180
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
178
181
  version: [number, number, number] | [number, number, number, number];
179
182
  prod: {
180
183
  name: string;
@@ -187,14 +190,14 @@ declare const getAvailableOsImages: {
187
190
  is_current: boolean;
188
191
  } | null;
189
192
  }[]>;
190
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient, params: CvmIdInput, parameters: {
193
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
191
194
  schema: T;
192
195
  }): Promise<z.TypeOf<T>>;
193
- (client: import("../..").BaseClient, params: CvmIdInput, parameters: {
196
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
194
197
  schema: false;
195
198
  }): Promise<unknown>;
196
199
  }, safeGetAvailableOsImages: {
197
- (client: import("../..").BaseClient, params: CvmIdInput): Promise<import("../..").SafeResult<{
200
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
198
201
  version: [number, number, number] | [number, number, number, number];
199
202
  prod: {
200
203
  name: string;
@@ -207,10 +210,10 @@ declare const getAvailableOsImages: {
207
210
  is_current: boolean;
208
211
  } | null;
209
212
  }[]>>;
210
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient, params: CvmIdInput, parameters: {
213
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
211
214
  schema: T;
212
215
  }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
213
- (client: import("../..").BaseClient, params: CvmIdInput, parameters: {
216
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
214
217
  schema: false;
215
218
  }): Promise<import("../..").SafeResult<unknown>>;
216
219
  };
@@ -263,22 +263,25 @@ export declare const GetCvmAttestationRequestSchema: z.ZodEffects<z.ZodEffects<z
263
263
  uuid: z.ZodOptional<z.ZodString>;
264
264
  app_id: z.ZodOptional<z.ZodString>;
265
265
  instance_id: z.ZodOptional<z.ZodString>;
266
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
266
267
  }, "strip", z.ZodTypeAny, {
268
+ name?: string | undefined;
267
269
  id?: string | undefined;
268
270
  app_id?: string | undefined;
269
271
  instance_id?: string | undefined;
270
272
  uuid?: string | undefined;
271
273
  }, {
274
+ name?: string | undefined;
272
275
  id?: string | undefined;
273
276
  app_id?: string | undefined;
274
277
  instance_id?: string | undefined;
275
278
  uuid?: string | undefined;
276
279
  }>, any, any>, {
277
- cvmId: string;
280
+ cvmId: any;
278
281
  }, any>;
279
282
  export type GetCvmAttestationRequest = CvmIdInput;
280
283
  declare const getCvmAttestation: {
281
- (client: import("../..").BaseClient, params: CvmIdInput): Promise<{
284
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
282
285
  name: string | null;
283
286
  error: string | null;
284
287
  compose_file: string | null;
@@ -327,14 +330,14 @@ declare const getCvmAttestation: {
327
330
  rootfs_hash?: string | null | undefined;
328
331
  } | null;
329
332
  }>;
330
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient, params: CvmIdInput, parameters: {
333
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
331
334
  schema: T;
332
335
  }): Promise<z.TypeOf<T>>;
333
- (client: import("../..").BaseClient, params: CvmIdInput, parameters: {
336
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
334
337
  schema: false;
335
338
  }): Promise<unknown>;
336
339
  }, safeGetCvmAttestation: {
337
- (client: import("../..").BaseClient, params: CvmIdInput): Promise<import("../..").SafeResult<{
340
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
338
341
  name: string | null;
339
342
  error: string | null;
340
343
  compose_file: string | null;
@@ -383,10 +386,10 @@ declare const getCvmAttestation: {
383
386
  rootfs_hash?: string | null | undefined;
384
387
  } | null;
385
388
  }>>;
386
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient, params: CvmIdInput, parameters: {
389
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
387
390
  schema: T;
388
391
  }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
389
- (client: import("../..").BaseClient, params: CvmIdInput, parameters: {
392
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
390
393
  schema: false;
391
394
  }): Promise<import("../..").SafeResult<unknown>>;
392
395
  };
@@ -112,12 +112,12 @@ export declare const GetCvmComposeFileResultSchema: z.ZodEffects<z.ZodObject<{
112
112
  name?: string | undefined;
113
113
  public_sysinfo?: boolean | undefined;
114
114
  public_logs?: boolean | undefined;
115
- manifest_version?: number | undefined;
116
- features?: string[] | undefined;
117
115
  allowed_envs?: string[] | undefined;
118
116
  pre_launch_script?: string | undefined;
119
117
  kms_enabled?: boolean | undefined;
120
118
  tproxy_enabled?: boolean | undefined;
119
+ manifest_version?: number | undefined;
120
+ features?: string[] | undefined;
121
121
  env_pubkey?: string | undefined;
122
122
  salt?: string | null | undefined;
123
123
  } & {
@@ -183,12 +183,12 @@ export declare const CvmComposeFileSchema: z.ZodEffects<z.ZodObject<{
183
183
  name?: string | undefined;
184
184
  public_sysinfo?: boolean | undefined;
185
185
  public_logs?: boolean | undefined;
186
- manifest_version?: number | undefined;
187
- features?: string[] | undefined;
188
186
  allowed_envs?: string[] | undefined;
189
187
  pre_launch_script?: string | undefined;
190
188
  kms_enabled?: boolean | undefined;
191
189
  tproxy_enabled?: boolean | undefined;
190
+ manifest_version?: number | undefined;
191
+ features?: string[] | undefined;
192
192
  env_pubkey?: string | undefined;
193
193
  salt?: string | null | undefined;
194
194
  } & {
@@ -217,32 +217,35 @@ export declare const GetCvmComposeFileRequestSchema: z.ZodEffects<z.ZodEffects<z
217
217
  uuid: z.ZodOptional<z.ZodString>;
218
218
  app_id: z.ZodOptional<z.ZodString>;
219
219
  instance_id: z.ZodOptional<z.ZodString>;
220
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
220
221
  }, "strip", z.ZodTypeAny, {
222
+ name?: string | undefined;
221
223
  id?: string | undefined;
222
224
  app_id?: string | undefined;
223
225
  instance_id?: string | undefined;
224
226
  uuid?: string | undefined;
225
227
  }, {
228
+ name?: string | undefined;
226
229
  id?: string | undefined;
227
230
  app_id?: string | undefined;
228
231
  instance_id?: string | undefined;
229
232
  uuid?: string | undefined;
230
233
  }>, any, any>, {
231
- cvmId: string;
234
+ cvmId: any;
232
235
  }, any>;
233
236
  export type GetCvmComposeFileRequest = CvmIdInput;
234
237
  declare const getCvmComposeFile: {
235
- (client: Client, params: CvmIdInput): Promise<{
238
+ (client: Client<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
236
239
  docker_compose_file: string;
237
240
  name?: string | undefined;
238
241
  public_sysinfo?: boolean | undefined;
239
242
  public_logs?: boolean | undefined;
240
- manifest_version?: number | undefined;
241
- features?: string[] | undefined;
242
243
  allowed_envs?: string[] | undefined;
243
244
  pre_launch_script?: string | undefined;
244
245
  kms_enabled?: boolean | undefined;
245
246
  tproxy_enabled?: boolean | undefined;
247
+ manifest_version?: number | undefined;
248
+ features?: string[] | undefined;
246
249
  env_pubkey?: string | undefined;
247
250
  salt?: string | null | undefined;
248
251
  } & {
@@ -251,24 +254,24 @@ declare const getCvmComposeFile: {
251
254
  getHash: () => string;
252
255
  toString: () => string;
253
256
  }>;
254
- <T extends z.ZodTypeAny>(client: Client, params: CvmIdInput, parameters: {
257
+ <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
255
258
  schema: T;
256
259
  }): Promise<z.TypeOf<T>>;
257
- (client: Client, params: CvmIdInput, parameters: {
260
+ (client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
258
261
  schema: false;
259
262
  }): Promise<unknown>;
260
263
  }, safeGetCvmComposeFile: {
261
- (client: Client, params: CvmIdInput): Promise<import("../..").SafeResult<{
264
+ (client: Client<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
262
265
  docker_compose_file: string;
263
266
  name?: string | undefined;
264
267
  public_sysinfo?: boolean | undefined;
265
268
  public_logs?: boolean | undefined;
266
- manifest_version?: number | undefined;
267
- features?: string[] | undefined;
268
269
  allowed_envs?: string[] | undefined;
269
270
  pre_launch_script?: string | undefined;
270
271
  kms_enabled?: boolean | undefined;
271
272
  tproxy_enabled?: boolean | undefined;
273
+ manifest_version?: number | undefined;
274
+ features?: string[] | undefined;
272
275
  env_pubkey?: string | undefined;
273
276
  salt?: string | null | undefined;
274
277
  } & {
@@ -277,10 +280,10 @@ declare const getCvmComposeFile: {
277
280
  getHash: () => string;
278
281
  toString: () => string;
279
282
  }>>;
280
- <T extends z.ZodTypeAny>(client: Client, params: CvmIdInput, parameters: {
283
+ <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
281
284
  schema: T;
282
285
  }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
283
- (client: Client, params: CvmIdInput, parameters: {
286
+ (client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
284
287
  schema: false;
285
288
  }): Promise<import("../..").SafeResult<unknown>>;
286
289
  };
@@ -43,9 +43,9 @@ export declare const CvmContainersStatsSchema: z.ZodObject<{
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  error: string | null;
45
45
  version: string | null;
46
+ docker_compose_file: string | null;
46
47
  manifest_version: number | null;
47
48
  runner: string | null;
48
- docker_compose_file: string | null;
49
49
  features: string[] | null;
50
50
  is_online: boolean;
51
51
  is_public: boolean;
@@ -63,9 +63,9 @@ export declare const CvmContainersStatsSchema: z.ZodObject<{
63
63
  }, {
64
64
  error: string | null;
65
65
  version: string | null;
66
+ docker_compose_file: string | null;
66
67
  manifest_version: number | null;
67
68
  runner: string | null;
68
- docker_compose_file: string | null;
69
69
  features: string[] | null;
70
70
  is_online: boolean;
71
71
  containers: {
@@ -87,27 +87,30 @@ export declare const GetCvmContainersStatsRequestSchema: z.ZodEffects<z.ZodEffec
87
87
  uuid: z.ZodOptional<z.ZodString>;
88
88
  app_id: z.ZodOptional<z.ZodString>;
89
89
  instance_id: z.ZodOptional<z.ZodString>;
90
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
90
91
  }, "strip", z.ZodTypeAny, {
92
+ name?: string | undefined;
91
93
  id?: string | undefined;
92
94
  app_id?: string | undefined;
93
95
  instance_id?: string | undefined;
94
96
  uuid?: string | undefined;
95
97
  }, {
98
+ name?: string | undefined;
96
99
  id?: string | undefined;
97
100
  app_id?: string | undefined;
98
101
  instance_id?: string | undefined;
99
102
  uuid?: string | undefined;
100
103
  }>, any, any>, {
101
- cvmId: string;
104
+ cvmId: any;
102
105
  }, any>;
103
106
  export type GetCvmContainersStatsRequest = CvmIdInput;
104
107
  declare const getCvmContainersStats: {
105
- (client: import("../..").BaseClient, params: CvmIdInput): Promise<{
108
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
106
109
  error: string | null;
107
110
  version: string | null;
111
+ docker_compose_file: string | null;
108
112
  manifest_version: number | null;
109
113
  runner: string | null;
110
- docker_compose_file: string | null;
111
114
  features: string[] | null;
112
115
  is_online: boolean;
113
116
  is_public: boolean;
@@ -123,19 +126,19 @@ declare const getCvmContainersStats: {
123
126
  command?: string | null | undefined;
124
127
  }[] | null;
125
128
  }>;
126
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient, params: CvmIdInput, parameters: {
129
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
127
130
  schema: T;
128
131
  }): Promise<z.TypeOf<T>>;
129
- (client: import("../..").BaseClient, params: CvmIdInput, parameters: {
132
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
130
133
  schema: false;
131
134
  }): Promise<unknown>;
132
135
  }, safeGetCvmContainersStats: {
133
- (client: import("../..").BaseClient, params: CvmIdInput): Promise<import("../..").SafeResult<{
136
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
134
137
  error: string | null;
135
138
  version: string | null;
139
+ docker_compose_file: string | null;
136
140
  manifest_version: number | null;
137
141
  runner: string | null;
138
- docker_compose_file: string | null;
139
142
  features: string[] | null;
140
143
  is_online: boolean;
141
144
  is_public: boolean;
@@ -151,10 +154,10 @@ declare const getCvmContainersStats: {
151
154
  command?: string | null | undefined;
152
155
  }[] | null;
153
156
  }>>;
154
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient, params: CvmIdInput, parameters: {
157
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
155
158
  schema: T;
156
159
  }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
157
- (client: import("../..").BaseClient, params: CvmIdInput, parameters: {
160
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
158
161
  schema: false;
159
162
  }): Promise<import("../..").SafeResult<unknown>>;
160
163
  };
@@ -5,34 +5,37 @@ export declare const GetCvmDockerComposeRequestSchema: z.ZodEffects<z.ZodEffects
5
5
  uuid: z.ZodOptional<z.ZodString>;
6
6
  app_id: z.ZodOptional<z.ZodString>;
7
7
  instance_id: z.ZodOptional<z.ZodString>;
8
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
8
9
  }, "strip", z.ZodTypeAny, {
10
+ name?: string | undefined;
9
11
  id?: string | undefined;
10
12
  app_id?: string | undefined;
11
13
  instance_id?: string | undefined;
12
14
  uuid?: string | undefined;
13
15
  }, {
16
+ name?: string | undefined;
14
17
  id?: string | undefined;
15
18
  app_id?: string | undefined;
16
19
  instance_id?: string | undefined;
17
20
  uuid?: string | undefined;
18
21
  }>, any, any>, {
19
- cvmId: string;
22
+ cvmId: any;
20
23
  }, any>;
21
24
  export type GetCvmDockerComposeRequest = CvmIdInput;
22
25
  declare const getCvmDockerCompose: {
23
- (client: import("../..").BaseClient, params: CvmIdInput): Promise<string>;
24
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient, params: CvmIdInput, parameters: {
26
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<string>;
27
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
25
28
  schema: T;
26
29
  }): Promise<z.TypeOf<T>>;
27
- (client: import("../..").BaseClient, params: CvmIdInput, parameters: {
30
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
28
31
  schema: false;
29
32
  }): Promise<unknown>;
30
33
  }, safeGetCvmDockerCompose: {
31
- (client: import("../..").BaseClient, params: CvmIdInput): Promise<import("../..").SafeResult<string>>;
32
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient, params: CvmIdInput, parameters: {
34
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<string>>;
35
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
33
36
  schema: T;
34
37
  }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
35
- (client: import("../..").BaseClient, params: CvmIdInput, parameters: {
38
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
36
39
  schema: false;
37
40
  }): Promise<import("../..").SafeResult<unknown>>;
38
41
  };
@@ -1,29 +1,27 @@
1
- import { z } from "zod";
2
- import { type Client } from "../../client";
3
- import { CvmLegacyDetailSchema } from "../../types/cvm_info";
4
- import { type KmsInfo } from "../../types/kms_info";
1
+ import { type Client, type SafeResult } from "../../client";
2
+ import type { ApiVersion } from "../../types/client";
5
3
  import { type CvmIdInput } from "../../types/cvm_id";
6
- export { CvmLegacyDetailSchema };
7
- export type GetCvmInfoResponse = z.infer<typeof CvmLegacyDetailSchema> & {
8
- kms_info: KmsInfo;
9
- };
10
- export declare const GetCvmInfoRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
11
- id: z.ZodOptional<z.ZodString>;
12
- uuid: z.ZodOptional<z.ZodString>;
13
- app_id: z.ZodOptional<z.ZodString>;
14
- instance_id: z.ZodOptional<z.ZodString>;
15
- }, "strip", z.ZodTypeAny, {
4
+ import type { GetCvmInfoResponse } from "../../types/version-mappings";
5
+ export declare const GetCvmInfoRequestSchema: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodObject<{
6
+ id: import("zod").ZodOptional<import("zod").ZodString>;
7
+ uuid: import("zod").ZodOptional<import("zod").ZodString>;
8
+ app_id: import("zod").ZodOptional<import("zod").ZodString>;
9
+ instance_id: import("zod").ZodOptional<import("zod").ZodString>;
10
+ name: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
11
+ }, "strip", import("zod").ZodTypeAny, {
12
+ name?: string | undefined;
16
13
  id?: string | undefined;
17
14
  app_id?: string | undefined;
18
15
  instance_id?: string | undefined;
19
16
  uuid?: string | undefined;
20
17
  }, {
18
+ name?: string | undefined;
21
19
  id?: string | undefined;
22
20
  app_id?: string | undefined;
23
21
  instance_id?: string | undefined;
24
22
  uuid?: string | undefined;
25
23
  }>, any, any>, {
26
- cvmId: string;
24
+ cvmId: any;
27
25
  }, any>;
28
26
  export type GetCvmInfoRequest = CvmIdInput;
29
27
  /**
@@ -32,29 +30,15 @@ export type GetCvmInfoRequest = CvmIdInput;
32
30
  * @param client - The API client
33
31
  * @param request - Request parameters
34
32
  * @param request.cvmId - ID of the CVM to get information for
35
- * @param parameters - Optional behavior parameters
36
- * @returns CVM information
33
+ * @returns CVM information with type based on client API version
37
34
  *
38
35
  * @example
39
36
  * ```typescript
40
37
  * const info = await getCvmInfo(client, { cvmId: "cvm-123" })
41
38
  * ```
42
39
  */
43
- declare const getCvmInfo: {
44
- (client: Client, params: CvmIdInput): Promise<GetCvmInfoResponse>;
45
- <T extends z.ZodTypeAny>(client: Client, params: CvmIdInput, parameters: {
46
- schema: T;
47
- }): Promise<z.TypeOf<T>>;
48
- (client: Client, params: CvmIdInput, parameters: {
49
- schema: false;
50
- }): Promise<unknown>;
51
- }, safeGetCvmInfo: {
52
- (client: Client, params: CvmIdInput): Promise<import("../..").SafeResult<GetCvmInfoResponse>>;
53
- <T extends z.ZodTypeAny>(client: Client, params: CvmIdInput, parameters: {
54
- schema: T;
55
- }): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
56
- (client: Client, params: CvmIdInput, parameters: {
57
- schema: false;
58
- }): Promise<import("../..").SafeResult<unknown>>;
59
- };
60
- export { getCvmInfo, safeGetCvmInfo };
40
+ export declare function getCvmInfo<V extends ApiVersion>(client: Client<V>, request: GetCvmInfoRequest): Promise<GetCvmInfoResponse<V>>;
41
+ /**
42
+ * Safe version of getCvmInfo that returns a SafeResult instead of throwing
43
+ */
44
+ export declare function safeGetCvmInfo<V extends ApiVersion>(client: Client<V>, request: GetCvmInfoRequest): Promise<SafeResult<GetCvmInfoResponse<V>>>;