@phala/cloud 0.6.6 → 0.6.7-beta.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 (31) hide show
  1. package/README.md +19 -0
  2. package/dist/actions/apps/create_app_instance.d.ts +38 -0
  3. package/dist/actions/apps/get_app_pending_updates.d.ts +93 -0
  4. package/dist/actions/blockchains/remove_compose_hash.d.ts +77 -0
  5. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +83 -11
  6. package/dist/actions/cvms/commit_cvm_provision.d.ts +191 -0
  7. package/dist/actions/cvms/commit_cvm_update.d.ts +77 -3
  8. package/dist/actions/cvms/confirm_cvm_patch.d.ts +80 -3
  9. package/dist/actions/cvms/cvm_draft.d.ts +1338 -0
  10. package/dist/actions/cvms/cvm_update_response.d.ts +154 -0
  11. package/dist/actions/cvms/get_cvm_init_scripts.d.ts +10 -16
  12. package/dist/actions/cvms/patch_cvm.d.ts +206 -62
  13. package/dist/actions/cvms/provision_cvm.d.ts +5 -7
  14. package/dist/actions/cvms/put_cvm_init_scripts.d.ts +49 -10
  15. package/dist/actions/cvms/update_cvm_envs.d.ts +129 -19
  16. package/dist/actions/cvms/update_docker_compose.d.ts +134 -20
  17. package/dist/actions/cvms/update_prelaunch_script.d.ts +134 -20
  18. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +145 -15
  19. package/dist/actions/cvms/wait_for_cvm_finality.d.ts +153 -0
  20. package/dist/actions/index.d.ts +5 -1
  21. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +31 -7
  22. package/dist/create-client.d.ts +1267 -22
  23. package/dist/index.js +2540 -1784
  24. package/dist/index.mjs +2509 -1785
  25. package/dist/types/app_compose.d.ts +8 -6
  26. package/dist/types/cvm_finality.d.ts +134 -0
  27. package/dist/types/cvm_info.d.ts +266 -0
  28. package/dist/types/cvm_info_v20251028.d.ts +37 -0
  29. package/dist/types/cvm_info_v20260121.d.ts +111 -0
  30. package/dist/types/index.d.ts +1 -0
  31. package/package.json +1 -1
@@ -0,0 +1,1338 @@
1
+ import { z } from "zod";
2
+ import { type CvmIdInput } from "../../types/cvm_id";
3
+ export declare const CvmDraftEntrySchema: z.ZodObject<{
4
+ id: z.ZodString;
5
+ user_id: z.ZodString;
6
+ username: z.ZodString;
7
+ staged_at: z.ZodString;
8
+ patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
+ diff: z.ZodString;
10
+ }, z.core.$strip>;
11
+ export type CvmDraftEntry = z.infer<typeof CvmDraftEntrySchema>;
12
+ export declare const CvmDraftSchema: z.ZodObject<{
13
+ base_compose_hash: z.ZodNullable<z.ZodString>;
14
+ current_compose_hash: z.ZodNullable<z.ZodString>;
15
+ preview_compose_hash: z.ZodString;
16
+ patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
17
+ entries: z.ZodArray<z.ZodObject<{
18
+ id: z.ZodString;
19
+ user_id: z.ZodString;
20
+ username: z.ZodString;
21
+ staged_at: z.ZodString;
22
+ patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
23
+ diff: z.ZodString;
24
+ }, z.core.$strip>>;
25
+ }, z.core.$strip>;
26
+ export type CvmDraft = z.infer<typeof CvmDraftSchema>;
27
+ export declare const CvmDraftListItemSchema: z.ZodObject<{
28
+ cvm_id: z.ZodString;
29
+ vm_uuid: z.ZodString;
30
+ name: z.ZodNullable<z.ZodString>;
31
+ app_id: z.ZodNullable<z.ZodString>;
32
+ state: z.ZodUnion<readonly [z.ZodLiteral<"staged">, z.ZodUnion<readonly [z.ZodEnum<{
33
+ applying: "applying";
34
+ awaiting_finality: "awaiting_finality";
35
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>]>;
36
+ corrupt: z.ZodBoolean;
37
+ entry_count: z.ZodNullable<z.ZodNumber>;
38
+ base_compose_hash: z.ZodNullable<z.ZodString>;
39
+ preview_compose_hash: z.ZodNullable<z.ZodString>;
40
+ finality_wait: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
41
+ operation: z.ZodUnion<readonly [z.ZodEnum<{
42
+ create: "create";
43
+ update: "update";
44
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
45
+ correlation_id: z.ZodString;
46
+ phase: z.ZodUnion<readonly [z.ZodEnum<{
47
+ applying: "applying";
48
+ awaiting_finality: "awaiting_finality";
49
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
50
+ stage: z.ZodUnion<readonly [z.ZodEnum<{
51
+ finalized: "finalized";
52
+ safe: "safe";
53
+ submitted: "submitted";
54
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
55
+ stages: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
56
+ applying: "applying";
57
+ finalized: "finalized";
58
+ safe: "safe";
59
+ submitted: "submitted";
60
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>>>;
61
+ transaction: z.ZodNullable<z.ZodObject<{
62
+ hash: z.ZodString;
63
+ block_number: z.ZodNumber;
64
+ chain_id: z.ZodNumber;
65
+ }, z.core.$strip>>;
66
+ finality: z.ZodObject<{
67
+ block_tag: z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
68
+ finalized: "finalized";
69
+ latest: "latest";
70
+ safe: "safe";
71
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>;
72
+ policy_block_number: z.ZodNullable<z.ZodNumber>;
73
+ blocks_remaining: z.ZodNullable<z.ZodNumber>;
74
+ eta_seconds: z.ZodNullable<z.ZodNumber>;
75
+ }, z.core.$strip>;
76
+ }, z.core.$strip>>>>;
77
+ }, z.core.$strip>;
78
+ export type CvmDraftListItem = z.infer<typeof CvmDraftListItemSchema>;
79
+ export declare const CvmDraftListSchema: z.ZodObject<{
80
+ items: z.ZodArray<z.ZodObject<{
81
+ cvm_id: z.ZodString;
82
+ vm_uuid: z.ZodString;
83
+ name: z.ZodNullable<z.ZodString>;
84
+ app_id: z.ZodNullable<z.ZodString>;
85
+ state: z.ZodUnion<readonly [z.ZodLiteral<"staged">, z.ZodUnion<readonly [z.ZodEnum<{
86
+ applying: "applying";
87
+ awaiting_finality: "awaiting_finality";
88
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>]>;
89
+ corrupt: z.ZodBoolean;
90
+ entry_count: z.ZodNullable<z.ZodNumber>;
91
+ base_compose_hash: z.ZodNullable<z.ZodString>;
92
+ preview_compose_hash: z.ZodNullable<z.ZodString>;
93
+ finality_wait: z.ZodCatch<z.ZodOptional<z.ZodNullable<z.ZodObject<{
94
+ operation: z.ZodUnion<readonly [z.ZodEnum<{
95
+ create: "create";
96
+ update: "update";
97
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
98
+ correlation_id: z.ZodString;
99
+ phase: z.ZodUnion<readonly [z.ZodEnum<{
100
+ applying: "applying";
101
+ awaiting_finality: "awaiting_finality";
102
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
103
+ stage: z.ZodUnion<readonly [z.ZodEnum<{
104
+ finalized: "finalized";
105
+ safe: "safe";
106
+ submitted: "submitted";
107
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
108
+ stages: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
109
+ applying: "applying";
110
+ finalized: "finalized";
111
+ safe: "safe";
112
+ submitted: "submitted";
113
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>>>;
114
+ transaction: z.ZodNullable<z.ZodObject<{
115
+ hash: z.ZodString;
116
+ block_number: z.ZodNumber;
117
+ chain_id: z.ZodNumber;
118
+ }, z.core.$strip>>;
119
+ finality: z.ZodObject<{
120
+ block_tag: z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
121
+ finalized: "finalized";
122
+ latest: "latest";
123
+ safe: "safe";
124
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>;
125
+ policy_block_number: z.ZodNullable<z.ZodNumber>;
126
+ blocks_remaining: z.ZodNullable<z.ZodNumber>;
127
+ eta_seconds: z.ZodNullable<z.ZodNumber>;
128
+ }, z.core.$strip>;
129
+ }, z.core.$strip>>>>;
130
+ }, z.core.$strip>>;
131
+ }, z.core.$strip>;
132
+ export type CvmDraftList = z.infer<typeof CvmDraftListSchema>;
133
+ export declare const StageCvmDraftRequestSchema: z.ZodObject<{
134
+ id: z.ZodOptional<z.ZodString>;
135
+ uuid: z.ZodOptional<z.ZodString>;
136
+ app_id: z.ZodOptional<z.ZodString>;
137
+ instance_id: z.ZodOptional<z.ZodString>;
138
+ name: z.ZodOptional<z.ZodString>;
139
+ docker_compose_file: z.ZodOptional<z.ZodString>;
140
+ pre_launch_script: z.ZodOptional<z.ZodString>;
141
+ allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString>>;
142
+ public_logs: z.ZodOptional<z.ZodBoolean>;
143
+ public_sysinfo: z.ZodOptional<z.ZodBoolean>;
144
+ public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
145
+ compose: z.ZodOptional<z.ZodObject<{
146
+ secure_time: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
147
+ swap_size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ storage_discard: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
149
+ snapshotter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
150
+ overlayfs: "overlayfs";
151
+ stargz: "stargz";
152
+ }>>>;
153
+ gateway_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
154
+ port_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
155
+ ports: z.ZodOptional<z.ZodArray<z.ZodObject<{
156
+ port: z.ZodNumber;
157
+ pp: z.ZodOptional<z.ZodBoolean>;
158
+ }, z.core.$strip>>>;
159
+ restrict_mode: z.ZodOptional<z.ZodBoolean>;
160
+ }, z.core.$strip>>>;
161
+ event_log_version: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>>;
162
+ requirements: z.ZodOptional<z.ZodNullable<z.ZodObject<{
163
+ ephemeral_data_disk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
164
+ health_check: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
165
+ health_status_file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
+ launch_token_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
168
+ tdx_measure_acpi_tables: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
169
+ }, z.core.$loose>>>;
170
+ kms_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
171
+ key_provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
172
+ kms: "kms";
173
+ local: "local";
174
+ none: "none";
175
+ tpm: "tpm";
176
+ }>>>;
177
+ key_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ local_key_provider_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
179
+ manifest_version: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
180
+ no_instance_id: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
181
+ runner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
+ storage_fs: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
183
+ ext4: "ext4";
184
+ zfs: "zfs";
185
+ }>>>;
186
+ verity_volumes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
187
+ source: z.ZodString;
188
+ target: z.ZodString;
189
+ verity_root: z.ZodString;
190
+ }, z.core.$strip>>>>;
191
+ tproxy_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
192
+ features: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
193
+ }, z.core.$loose>>;
194
+ init_scripts: z.ZodOptional<z.ZodArray<z.ZodType<import("../..").InitScriptSlug, unknown, z.core.$ZodTypeInternals<import("../..").InitScriptSlug, unknown>>>>;
195
+ init_script: z.ZodOptional<z.ZodArray<z.ZodString>>;
196
+ confirm_data_wipe: z.ZodOptional<z.ZodBoolean>;
197
+ encrypted_env: z.ZodOptional<z.ZodString>;
198
+ user_config: z.ZodOptional<z.ZodString>;
199
+ gpus: z.ZodOptional<z.ZodObject<{
200
+ gpus: z.ZodArray<z.ZodObject<{
201
+ slot: z.ZodString;
202
+ product_id: z.ZodOptional<z.ZodString>;
203
+ }, z.core.$strip>>;
204
+ attach_mode: z.ZodOptional<z.ZodString>;
205
+ }, z.core.$strip>>;
206
+ vcpu: z.ZodOptional<z.ZodNumber>;
207
+ memory: z.ZodOptional<z.ZodNumber>;
208
+ disk_size: z.ZodOptional<z.ZodNumber>;
209
+ instance_type: z.ZodOptional<z.ZodString>;
210
+ image: z.ZodOptional<z.ZodString>;
211
+ shutdown_timeout: z.ZodOptional<z.ZodNumber>;
212
+ allow_force_stop: z.ZodOptional<z.ZodBoolean>;
213
+ prepareOnly: z.ZodOptional<z.ZodNever>;
214
+ }, z.core.$strip>;
215
+ export type StageCvmDraftRequest = z.input<typeof StageCvmDraftRequestSchema>;
216
+ export declare const UndoCvmDraftEntryRequestSchema: z.ZodObject<{
217
+ id: z.ZodOptional<z.ZodString>;
218
+ uuid: z.ZodOptional<z.ZodString>;
219
+ app_id: z.ZodOptional<z.ZodString>;
220
+ instance_id: z.ZodOptional<z.ZodString>;
221
+ name: z.ZodOptional<z.ZodString>;
222
+ entryId: z.ZodString;
223
+ }, z.core.$strip>;
224
+ export type UndoCvmDraftEntryRequest = z.input<typeof UndoCvmDraftEntryRequestSchema>;
225
+ export declare const DiscardCvmDraftRequestSchema: z.ZodObject<{
226
+ id: z.ZodOptional<z.ZodString>;
227
+ uuid: z.ZodOptional<z.ZodString>;
228
+ app_id: z.ZodOptional<z.ZodString>;
229
+ instance_id: z.ZodOptional<z.ZodString>;
230
+ name: z.ZodOptional<z.ZodString>;
231
+ expectedEntryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
232
+ }, z.core.$strip>;
233
+ export type DiscardCvmDraftRequest = z.input<typeof DiscardCvmDraftRequestSchema>;
234
+ export declare const ApplyCvmDraftRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
235
+ id: z.ZodOptional<z.ZodString>;
236
+ uuid: z.ZodOptional<z.ZodString>;
237
+ app_id: z.ZodOptional<z.ZodString>;
238
+ instance_id: z.ZodOptional<z.ZodString>;
239
+ name: z.ZodOptional<z.ZodString>;
240
+ baseComposeHash: z.ZodOptional<z.ZodString>;
241
+ expectedEntryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
242
+ prepareOnly: z.ZodOptional<z.ZodBoolean>;
243
+ composeHash: z.ZodString;
244
+ transactionHash: z.ZodString;
245
+ }, z.core.$strip>, z.ZodObject<{
246
+ id: z.ZodOptional<z.ZodString>;
247
+ uuid: z.ZodOptional<z.ZodString>;
248
+ app_id: z.ZodOptional<z.ZodString>;
249
+ instance_id: z.ZodOptional<z.ZodString>;
250
+ name: z.ZodOptional<z.ZodString>;
251
+ baseComposeHash: z.ZodOptional<z.ZodString>;
252
+ expectedEntryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
253
+ prepareOnly: z.ZodOptional<z.ZodBoolean>;
254
+ composeHash: z.ZodOptional<z.ZodNever>;
255
+ transactionHash: z.ZodOptional<z.ZodNever>;
256
+ }, z.core.$strip>]>;
257
+ export type ApplyCvmDraftRequest = z.input<typeof ApplyCvmDraftRequestSchema>;
258
+ export declare const ApplyCvmDraftResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
259
+ correlationId: z.ZodString;
260
+ status: z.ZodOptional<z.ZodString>;
261
+ finalityWait: z.ZodOptional<z.ZodObject<{
262
+ operation: z.ZodUnion<readonly [z.ZodEnum<{
263
+ create: "create";
264
+ update: "update";
265
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
266
+ correlation_id: z.ZodString;
267
+ phase: z.ZodUnion<readonly [z.ZodEnum<{
268
+ applying: "applying";
269
+ awaiting_finality: "awaiting_finality";
270
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
271
+ stage: z.ZodUnion<readonly [z.ZodEnum<{
272
+ finalized: "finalized";
273
+ safe: "safe";
274
+ submitted: "submitted";
275
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>;
276
+ stages: z.ZodCatch<z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodEnum<{
277
+ applying: "applying";
278
+ finalized: "finalized";
279
+ safe: "safe";
280
+ submitted: "submitted";
281
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>>>;
282
+ transaction: z.ZodNullable<z.ZodObject<{
283
+ hash: z.ZodString;
284
+ block_number: z.ZodNumber;
285
+ chain_id: z.ZodNumber;
286
+ }, z.core.$strip>>;
287
+ finality: z.ZodObject<{
288
+ block_tag: z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
289
+ finalized: "finalized";
290
+ latest: "latest";
291
+ safe: "safe";
292
+ }>, z.ZodCustom<string & Record<never, never>, string & Record<never, never>>]>>;
293
+ policy_block_number: z.ZodNullable<z.ZodNumber>;
294
+ blocks_remaining: z.ZodNullable<z.ZodNumber>;
295
+ eta_seconds: z.ZodNullable<z.ZodNumber>;
296
+ }, z.core.$strip>;
297
+ }, z.core.$strip>>;
298
+ requiresOnChainHash: z.ZodLiteral<false>;
299
+ }, z.core.$strip>, z.ZodObject<{
300
+ requiresOnChainHash: z.ZodLiteral<true>;
301
+ composeHash: z.ZodString;
302
+ appId: z.ZodString;
303
+ deviceId: z.ZodString;
304
+ kmsInfo: z.ZodPipe<z.ZodObject<{
305
+ id: z.ZodString;
306
+ slug: z.ZodNullable<z.ZodString>;
307
+ url: z.ZodString;
308
+ version: z.ZodString;
309
+ chain_id: z.ZodNullable<z.ZodNumber>;
310
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
311
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
312
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ }, z.core.$loose>, z.ZodTransform<{
314
+ [x: string]: unknown;
315
+ id: string;
316
+ slug: string | null;
317
+ url: string;
318
+ version: string;
319
+ chain_id: number | null;
320
+ kms_contract_address: `0x${string}`;
321
+ gateway_app_id: `0x${string}`;
322
+ k256_pubkey?: string | null | undefined;
323
+ }, {
324
+ [x: string]: unknown;
325
+ id: string;
326
+ slug: string | null;
327
+ url: string;
328
+ version: string;
329
+ chain_id: number | null;
330
+ kms_contract_address: `0x${string}`;
331
+ gateway_app_id: `0x${string}`;
332
+ k256_pubkey?: string | null | undefined;
333
+ }>>;
334
+ commitToken: z.ZodOptional<z.ZodString>;
335
+ commitUrl: z.ZodOptional<z.ZodString>;
336
+ apiCommitUrl: z.ZodOptional<z.ZodString>;
337
+ onchainStatus: z.ZodOptional<z.ZodObject<{
338
+ compose_hash_allowed: z.ZodBoolean;
339
+ device_id_allowed: z.ZodBoolean;
340
+ is_allowed: z.ZodBoolean;
341
+ }, z.core.$strip>>;
342
+ }, z.core.$strip>], "requiresOnChainHash">;
343
+ export type ApplyCvmDraftResult = z.infer<typeof ApplyCvmDraftResultSchema>;
344
+ /** List CVMs with staged changes in the current workspace. */
345
+ declare const listCvmDrafts: {
346
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, parameters: {
347
+ schema: false;
348
+ }): Promise<unknown>;
349
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, parameters: {
350
+ schema: T;
351
+ }): Promise<z.infer<T>>;
352
+ (client: import("../..").BaseClient<import("../..").ApiVersion>): Promise<{
353
+ items: {
354
+ cvm_id: string;
355
+ vm_uuid: string;
356
+ name: string | null;
357
+ app_id: string | null;
358
+ state: "applying" | "awaiting_finality" | "staged" | (string & Record<never, never>);
359
+ corrupt: boolean;
360
+ entry_count: number | null;
361
+ base_compose_hash: string | null;
362
+ preview_compose_hash: string | null;
363
+ finality_wait?: {
364
+ operation: "create" | "update" | (string & Record<never, never>);
365
+ correlation_id: string;
366
+ phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
367
+ stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
368
+ stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
369
+ transaction: {
370
+ hash: string;
371
+ block_number: number;
372
+ chain_id: number;
373
+ } | null;
374
+ finality: {
375
+ block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
376
+ policy_block_number: number | null;
377
+ blocks_remaining: number | null;
378
+ eta_seconds: number | null;
379
+ };
380
+ } | null | undefined;
381
+ }[];
382
+ }>;
383
+ }, safeListCvmDrafts: {
384
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, parameters: {
385
+ schema: false;
386
+ }): Promise<import("../..").SafeResult<unknown>>;
387
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, parameters: {
388
+ schema: T;
389
+ }): Promise<import("../..").SafeResult<z.infer<T>>>;
390
+ (client: import("../..").BaseClient<import("../..").ApiVersion>): Promise<import("../..").SafeResult<{
391
+ items: {
392
+ cvm_id: string;
393
+ vm_uuid: string;
394
+ name: string | null;
395
+ app_id: string | null;
396
+ state: "applying" | "awaiting_finality" | "staged" | (string & Record<never, never>);
397
+ corrupt: boolean;
398
+ entry_count: number | null;
399
+ base_compose_hash: string | null;
400
+ preview_compose_hash: string | null;
401
+ finality_wait?: {
402
+ operation: "create" | "update" | (string & Record<never, never>);
403
+ correlation_id: string;
404
+ phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
405
+ stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
406
+ stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
407
+ transaction: {
408
+ hash: string;
409
+ block_number: number;
410
+ chain_id: number;
411
+ } | null;
412
+ finality: {
413
+ block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
414
+ policy_block_number: number | null;
415
+ blocks_remaining: number | null;
416
+ eta_seconds: number | null;
417
+ };
418
+ } | null | undefined;
419
+ }[];
420
+ }>>;
421
+ };
422
+ /** Read the draft and its entries, oldest first. */
423
+ declare const getCvmDraft: {
424
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
425
+ base_compose_hash: string | null;
426
+ current_compose_hash: string | null;
427
+ preview_compose_hash: string;
428
+ patch: Record<string, unknown>;
429
+ entries: {
430
+ id: string;
431
+ user_id: string;
432
+ username: string;
433
+ staged_at: string;
434
+ patch: Record<string, unknown>;
435
+ diff: string;
436
+ }[];
437
+ }>;
438
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
439
+ schema: T;
440
+ }): Promise<z.infer<T>>;
441
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
442
+ schema: false;
443
+ }): Promise<unknown>;
444
+ }, safeGetCvmDraft: {
445
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
446
+ base_compose_hash: string | null;
447
+ current_compose_hash: string | null;
448
+ preview_compose_hash: string;
449
+ patch: Record<string, unknown>;
450
+ entries: {
451
+ id: string;
452
+ user_id: string;
453
+ username: string;
454
+ staged_at: string;
455
+ patch: Record<string, unknown>;
456
+ diff: string;
457
+ }[];
458
+ }>>;
459
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
460
+ schema: T;
461
+ }): Promise<import("../..").SafeResult<z.infer<T>>>;
462
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
463
+ schema: false;
464
+ }): Promise<import("../..").SafeResult<unknown>>;
465
+ };
466
+ /** Stage a partial CVM update without applying it. */
467
+ declare const stageCvmDraft: {
468
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
469
+ id?: string | undefined;
470
+ uuid?: string | undefined;
471
+ app_id?: string | undefined;
472
+ instance_id?: string | undefined;
473
+ name?: string | undefined;
474
+ docker_compose_file?: string | undefined;
475
+ pre_launch_script?: string | undefined;
476
+ allowed_envs?: string[] | undefined;
477
+ public_logs?: boolean | undefined;
478
+ public_sysinfo?: boolean | undefined;
479
+ public_tcbinfo?: boolean | undefined;
480
+ compose?: {
481
+ [x: string]: unknown;
482
+ secure_time?: boolean | null | undefined;
483
+ swap_size?: string | null | undefined;
484
+ storage_discard?: boolean | null | undefined;
485
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
486
+ gateway_enabled?: boolean | null | undefined;
487
+ port_policy?: {
488
+ ports?: {
489
+ port: number;
490
+ pp?: boolean | undefined;
491
+ }[] | undefined;
492
+ restrict_mode?: boolean | undefined;
493
+ } | null | undefined;
494
+ event_log_version?: 1 | 2 | null | undefined;
495
+ requirements?: {
496
+ [x: string]: unknown;
497
+ ephemeral_data_disk?: boolean | null | undefined;
498
+ health_check?: boolean | null | undefined;
499
+ health_status_file?: string | null | undefined;
500
+ launch_token_hash?: string | null | undefined;
501
+ platforms?: string[] | null | undefined;
502
+ tdx_measure_acpi_tables?: boolean | null | undefined;
503
+ } | null | undefined;
504
+ kms_enabled?: boolean | null | undefined;
505
+ key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
506
+ key_provider_id?: string | null | undefined;
507
+ local_key_provider_enabled?: boolean | null | undefined;
508
+ manifest_version?: string | number | null | undefined;
509
+ no_instance_id?: boolean | null | undefined;
510
+ runner?: string | null | undefined;
511
+ storage_fs?: "ext4" | "zfs" | null | undefined;
512
+ verity_volumes?: {
513
+ source: string;
514
+ target: string;
515
+ verity_root: string;
516
+ }[] | null | undefined;
517
+ tproxy_enabled?: boolean | null | undefined;
518
+ features?: string[] | null | undefined;
519
+ } | undefined;
520
+ init_scripts?: unknown[] | undefined;
521
+ init_script?: string[] | undefined;
522
+ confirm_data_wipe?: boolean | undefined;
523
+ encrypted_env?: string | undefined;
524
+ user_config?: string | undefined;
525
+ gpus?: {
526
+ gpus: {
527
+ slot: string;
528
+ product_id?: string | undefined;
529
+ }[];
530
+ attach_mode?: string | undefined;
531
+ } | undefined;
532
+ vcpu?: number | undefined;
533
+ memory?: number | undefined;
534
+ disk_size?: number | undefined;
535
+ instance_type?: string | undefined;
536
+ image?: string | undefined;
537
+ shutdown_timeout?: number | undefined;
538
+ allow_force_stop?: boolean | undefined;
539
+ prepareOnly?: undefined;
540
+ }): Promise<{
541
+ base_compose_hash: string | null;
542
+ current_compose_hash: string | null;
543
+ preview_compose_hash: string;
544
+ patch: Record<string, unknown>;
545
+ entries: {
546
+ id: string;
547
+ user_id: string;
548
+ username: string;
549
+ staged_at: string;
550
+ patch: Record<string, unknown>;
551
+ diff: string;
552
+ }[];
553
+ }>;
554
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
555
+ id?: string | undefined;
556
+ uuid?: string | undefined;
557
+ app_id?: string | undefined;
558
+ instance_id?: string | undefined;
559
+ name?: string | undefined;
560
+ docker_compose_file?: string | undefined;
561
+ pre_launch_script?: string | undefined;
562
+ allowed_envs?: string[] | undefined;
563
+ public_logs?: boolean | undefined;
564
+ public_sysinfo?: boolean | undefined;
565
+ public_tcbinfo?: boolean | undefined;
566
+ compose?: {
567
+ [x: string]: unknown;
568
+ secure_time?: boolean | null | undefined;
569
+ swap_size?: string | null | undefined;
570
+ storage_discard?: boolean | null | undefined;
571
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
572
+ gateway_enabled?: boolean | null | undefined;
573
+ port_policy?: {
574
+ ports?: {
575
+ port: number;
576
+ pp?: boolean | undefined;
577
+ }[] | undefined;
578
+ restrict_mode?: boolean | undefined;
579
+ } | null | undefined;
580
+ event_log_version?: 1 | 2 | null | undefined;
581
+ requirements?: {
582
+ [x: string]: unknown;
583
+ ephemeral_data_disk?: boolean | null | undefined;
584
+ health_check?: boolean | null | undefined;
585
+ health_status_file?: string | null | undefined;
586
+ launch_token_hash?: string | null | undefined;
587
+ platforms?: string[] | null | undefined;
588
+ tdx_measure_acpi_tables?: boolean | null | undefined;
589
+ } | null | undefined;
590
+ kms_enabled?: boolean | null | undefined;
591
+ key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
592
+ key_provider_id?: string | null | undefined;
593
+ local_key_provider_enabled?: boolean | null | undefined;
594
+ manifest_version?: string | number | null | undefined;
595
+ no_instance_id?: boolean | null | undefined;
596
+ runner?: string | null | undefined;
597
+ storage_fs?: "ext4" | "zfs" | null | undefined;
598
+ verity_volumes?: {
599
+ source: string;
600
+ target: string;
601
+ verity_root: string;
602
+ }[] | null | undefined;
603
+ tproxy_enabled?: boolean | null | undefined;
604
+ features?: string[] | null | undefined;
605
+ } | undefined;
606
+ init_scripts?: unknown[] | undefined;
607
+ init_script?: string[] | undefined;
608
+ confirm_data_wipe?: boolean | undefined;
609
+ encrypted_env?: string | undefined;
610
+ user_config?: string | undefined;
611
+ gpus?: {
612
+ gpus: {
613
+ slot: string;
614
+ product_id?: string | undefined;
615
+ }[];
616
+ attach_mode?: string | undefined;
617
+ } | undefined;
618
+ vcpu?: number | undefined;
619
+ memory?: number | undefined;
620
+ disk_size?: number | undefined;
621
+ instance_type?: string | undefined;
622
+ image?: string | undefined;
623
+ shutdown_timeout?: number | undefined;
624
+ allow_force_stop?: boolean | undefined;
625
+ prepareOnly?: undefined;
626
+ }, parameters: {
627
+ schema: T;
628
+ }): Promise<z.infer<T>>;
629
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
630
+ id?: string | undefined;
631
+ uuid?: string | undefined;
632
+ app_id?: string | undefined;
633
+ instance_id?: string | undefined;
634
+ name?: string | undefined;
635
+ docker_compose_file?: string | undefined;
636
+ pre_launch_script?: string | undefined;
637
+ allowed_envs?: string[] | undefined;
638
+ public_logs?: boolean | undefined;
639
+ public_sysinfo?: boolean | undefined;
640
+ public_tcbinfo?: boolean | undefined;
641
+ compose?: {
642
+ [x: string]: unknown;
643
+ secure_time?: boolean | null | undefined;
644
+ swap_size?: string | null | undefined;
645
+ storage_discard?: boolean | null | undefined;
646
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
647
+ gateway_enabled?: boolean | null | undefined;
648
+ port_policy?: {
649
+ ports?: {
650
+ port: number;
651
+ pp?: boolean | undefined;
652
+ }[] | undefined;
653
+ restrict_mode?: boolean | undefined;
654
+ } | null | undefined;
655
+ event_log_version?: 1 | 2 | null | undefined;
656
+ requirements?: {
657
+ [x: string]: unknown;
658
+ ephemeral_data_disk?: boolean | null | undefined;
659
+ health_check?: boolean | null | undefined;
660
+ health_status_file?: string | null | undefined;
661
+ launch_token_hash?: string | null | undefined;
662
+ platforms?: string[] | null | undefined;
663
+ tdx_measure_acpi_tables?: boolean | null | undefined;
664
+ } | null | undefined;
665
+ kms_enabled?: boolean | null | undefined;
666
+ key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
667
+ key_provider_id?: string | null | undefined;
668
+ local_key_provider_enabled?: boolean | null | undefined;
669
+ manifest_version?: string | number | null | undefined;
670
+ no_instance_id?: boolean | null | undefined;
671
+ runner?: string | null | undefined;
672
+ storage_fs?: "ext4" | "zfs" | null | undefined;
673
+ verity_volumes?: {
674
+ source: string;
675
+ target: string;
676
+ verity_root: string;
677
+ }[] | null | undefined;
678
+ tproxy_enabled?: boolean | null | undefined;
679
+ features?: string[] | null | undefined;
680
+ } | undefined;
681
+ init_scripts?: unknown[] | undefined;
682
+ init_script?: string[] | undefined;
683
+ confirm_data_wipe?: boolean | undefined;
684
+ encrypted_env?: string | undefined;
685
+ user_config?: string | undefined;
686
+ gpus?: {
687
+ gpus: {
688
+ slot: string;
689
+ product_id?: string | undefined;
690
+ }[];
691
+ attach_mode?: string | undefined;
692
+ } | undefined;
693
+ vcpu?: number | undefined;
694
+ memory?: number | undefined;
695
+ disk_size?: number | undefined;
696
+ instance_type?: string | undefined;
697
+ image?: string | undefined;
698
+ shutdown_timeout?: number | undefined;
699
+ allow_force_stop?: boolean | undefined;
700
+ prepareOnly?: undefined;
701
+ }, parameters: {
702
+ schema: false;
703
+ }): Promise<unknown>;
704
+ }, safeStageCvmDraft: {
705
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
706
+ id?: string | undefined;
707
+ uuid?: string | undefined;
708
+ app_id?: string | undefined;
709
+ instance_id?: string | undefined;
710
+ name?: string | undefined;
711
+ docker_compose_file?: string | undefined;
712
+ pre_launch_script?: string | undefined;
713
+ allowed_envs?: string[] | undefined;
714
+ public_logs?: boolean | undefined;
715
+ public_sysinfo?: boolean | undefined;
716
+ public_tcbinfo?: boolean | undefined;
717
+ compose?: {
718
+ [x: string]: unknown;
719
+ secure_time?: boolean | null | undefined;
720
+ swap_size?: string | null | undefined;
721
+ storage_discard?: boolean | null | undefined;
722
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
723
+ gateway_enabled?: boolean | null | undefined;
724
+ port_policy?: {
725
+ ports?: {
726
+ port: number;
727
+ pp?: boolean | undefined;
728
+ }[] | undefined;
729
+ restrict_mode?: boolean | undefined;
730
+ } | null | undefined;
731
+ event_log_version?: 1 | 2 | null | undefined;
732
+ requirements?: {
733
+ [x: string]: unknown;
734
+ ephemeral_data_disk?: boolean | null | undefined;
735
+ health_check?: boolean | null | undefined;
736
+ health_status_file?: string | null | undefined;
737
+ launch_token_hash?: string | null | undefined;
738
+ platforms?: string[] | null | undefined;
739
+ tdx_measure_acpi_tables?: boolean | null | undefined;
740
+ } | null | undefined;
741
+ kms_enabled?: boolean | null | undefined;
742
+ key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
743
+ key_provider_id?: string | null | undefined;
744
+ local_key_provider_enabled?: boolean | null | undefined;
745
+ manifest_version?: string | number | null | undefined;
746
+ no_instance_id?: boolean | null | undefined;
747
+ runner?: string | null | undefined;
748
+ storage_fs?: "ext4" | "zfs" | null | undefined;
749
+ verity_volumes?: {
750
+ source: string;
751
+ target: string;
752
+ verity_root: string;
753
+ }[] | null | undefined;
754
+ tproxy_enabled?: boolean | null | undefined;
755
+ features?: string[] | null | undefined;
756
+ } | undefined;
757
+ init_scripts?: unknown[] | undefined;
758
+ init_script?: string[] | undefined;
759
+ confirm_data_wipe?: boolean | undefined;
760
+ encrypted_env?: string | undefined;
761
+ user_config?: string | undefined;
762
+ gpus?: {
763
+ gpus: {
764
+ slot: string;
765
+ product_id?: string | undefined;
766
+ }[];
767
+ attach_mode?: string | undefined;
768
+ } | undefined;
769
+ vcpu?: number | undefined;
770
+ memory?: number | undefined;
771
+ disk_size?: number | undefined;
772
+ instance_type?: string | undefined;
773
+ image?: string | undefined;
774
+ shutdown_timeout?: number | undefined;
775
+ allow_force_stop?: boolean | undefined;
776
+ prepareOnly?: undefined;
777
+ }): Promise<import("../..").SafeResult<{
778
+ base_compose_hash: string | null;
779
+ current_compose_hash: string | null;
780
+ preview_compose_hash: string;
781
+ patch: Record<string, unknown>;
782
+ entries: {
783
+ id: string;
784
+ user_id: string;
785
+ username: string;
786
+ staged_at: string;
787
+ patch: Record<string, unknown>;
788
+ diff: string;
789
+ }[];
790
+ }>>;
791
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
792
+ id?: string | undefined;
793
+ uuid?: string | undefined;
794
+ app_id?: string | undefined;
795
+ instance_id?: string | undefined;
796
+ name?: string | undefined;
797
+ docker_compose_file?: string | undefined;
798
+ pre_launch_script?: string | undefined;
799
+ allowed_envs?: string[] | undefined;
800
+ public_logs?: boolean | undefined;
801
+ public_sysinfo?: boolean | undefined;
802
+ public_tcbinfo?: boolean | undefined;
803
+ compose?: {
804
+ [x: string]: unknown;
805
+ secure_time?: boolean | null | undefined;
806
+ swap_size?: string | null | undefined;
807
+ storage_discard?: boolean | null | undefined;
808
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
809
+ gateway_enabled?: boolean | null | undefined;
810
+ port_policy?: {
811
+ ports?: {
812
+ port: number;
813
+ pp?: boolean | undefined;
814
+ }[] | undefined;
815
+ restrict_mode?: boolean | undefined;
816
+ } | null | undefined;
817
+ event_log_version?: 1 | 2 | null | undefined;
818
+ requirements?: {
819
+ [x: string]: unknown;
820
+ ephemeral_data_disk?: boolean | null | undefined;
821
+ health_check?: boolean | null | undefined;
822
+ health_status_file?: string | null | undefined;
823
+ launch_token_hash?: string | null | undefined;
824
+ platforms?: string[] | null | undefined;
825
+ tdx_measure_acpi_tables?: boolean | null | undefined;
826
+ } | null | undefined;
827
+ kms_enabled?: boolean | null | undefined;
828
+ key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
829
+ key_provider_id?: string | null | undefined;
830
+ local_key_provider_enabled?: boolean | null | undefined;
831
+ manifest_version?: string | number | null | undefined;
832
+ no_instance_id?: boolean | null | undefined;
833
+ runner?: string | null | undefined;
834
+ storage_fs?: "ext4" | "zfs" | null | undefined;
835
+ verity_volumes?: {
836
+ source: string;
837
+ target: string;
838
+ verity_root: string;
839
+ }[] | null | undefined;
840
+ tproxy_enabled?: boolean | null | undefined;
841
+ features?: string[] | null | undefined;
842
+ } | undefined;
843
+ init_scripts?: unknown[] | undefined;
844
+ init_script?: string[] | undefined;
845
+ confirm_data_wipe?: boolean | undefined;
846
+ encrypted_env?: string | undefined;
847
+ user_config?: string | undefined;
848
+ gpus?: {
849
+ gpus: {
850
+ slot: string;
851
+ product_id?: string | undefined;
852
+ }[];
853
+ attach_mode?: string | undefined;
854
+ } | undefined;
855
+ vcpu?: number | undefined;
856
+ memory?: number | undefined;
857
+ disk_size?: number | undefined;
858
+ instance_type?: string | undefined;
859
+ image?: string | undefined;
860
+ shutdown_timeout?: number | undefined;
861
+ allow_force_stop?: boolean | undefined;
862
+ prepareOnly?: undefined;
863
+ }, parameters: {
864
+ schema: T;
865
+ }): Promise<import("../..").SafeResult<z.infer<T>>>;
866
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
867
+ id?: string | undefined;
868
+ uuid?: string | undefined;
869
+ app_id?: string | undefined;
870
+ instance_id?: string | undefined;
871
+ name?: string | undefined;
872
+ docker_compose_file?: string | undefined;
873
+ pre_launch_script?: string | undefined;
874
+ allowed_envs?: string[] | undefined;
875
+ public_logs?: boolean | undefined;
876
+ public_sysinfo?: boolean | undefined;
877
+ public_tcbinfo?: boolean | undefined;
878
+ compose?: {
879
+ [x: string]: unknown;
880
+ secure_time?: boolean | null | undefined;
881
+ swap_size?: string | null | undefined;
882
+ storage_discard?: boolean | null | undefined;
883
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
884
+ gateway_enabled?: boolean | null | undefined;
885
+ port_policy?: {
886
+ ports?: {
887
+ port: number;
888
+ pp?: boolean | undefined;
889
+ }[] | undefined;
890
+ restrict_mode?: boolean | undefined;
891
+ } | null | undefined;
892
+ event_log_version?: 1 | 2 | null | undefined;
893
+ requirements?: {
894
+ [x: string]: unknown;
895
+ ephemeral_data_disk?: boolean | null | undefined;
896
+ health_check?: boolean | null | undefined;
897
+ health_status_file?: string | null | undefined;
898
+ launch_token_hash?: string | null | undefined;
899
+ platforms?: string[] | null | undefined;
900
+ tdx_measure_acpi_tables?: boolean | null | undefined;
901
+ } | null | undefined;
902
+ kms_enabled?: boolean | null | undefined;
903
+ key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
904
+ key_provider_id?: string | null | undefined;
905
+ local_key_provider_enabled?: boolean | null | undefined;
906
+ manifest_version?: string | number | null | undefined;
907
+ no_instance_id?: boolean | null | undefined;
908
+ runner?: string | null | undefined;
909
+ storage_fs?: "ext4" | "zfs" | null | undefined;
910
+ verity_volumes?: {
911
+ source: string;
912
+ target: string;
913
+ verity_root: string;
914
+ }[] | null | undefined;
915
+ tproxy_enabled?: boolean | null | undefined;
916
+ features?: string[] | null | undefined;
917
+ } | undefined;
918
+ init_scripts?: unknown[] | undefined;
919
+ init_script?: string[] | undefined;
920
+ confirm_data_wipe?: boolean | undefined;
921
+ encrypted_env?: string | undefined;
922
+ user_config?: string | undefined;
923
+ gpus?: {
924
+ gpus: {
925
+ slot: string;
926
+ product_id?: string | undefined;
927
+ }[];
928
+ attach_mode?: string | undefined;
929
+ } | undefined;
930
+ vcpu?: number | undefined;
931
+ memory?: number | undefined;
932
+ disk_size?: number | undefined;
933
+ instance_type?: string | undefined;
934
+ image?: string | undefined;
935
+ shutdown_timeout?: number | undefined;
936
+ allow_force_stop?: boolean | undefined;
937
+ prepareOnly?: undefined;
938
+ }, parameters: {
939
+ schema: false;
940
+ }): Promise<import("../..").SafeResult<unknown>>;
941
+ };
942
+ /** Undo the newest entry. Returns undefined if no entries remain. */
943
+ declare const undoCvmDraftEntry: {
944
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
945
+ id?: string | undefined;
946
+ uuid?: string | undefined;
947
+ app_id?: string | undefined;
948
+ instance_id?: string | undefined;
949
+ name?: string | undefined;
950
+ entryId: string;
951
+ }): Promise<{
952
+ base_compose_hash: string | null;
953
+ current_compose_hash: string | null;
954
+ preview_compose_hash: string;
955
+ patch: Record<string, unknown>;
956
+ entries: {
957
+ id: string;
958
+ user_id: string;
959
+ username: string;
960
+ staged_at: string;
961
+ patch: Record<string, unknown>;
962
+ diff: string;
963
+ }[];
964
+ } | undefined>;
965
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
966
+ id?: string | undefined;
967
+ uuid?: string | undefined;
968
+ app_id?: string | undefined;
969
+ instance_id?: string | undefined;
970
+ name?: string | undefined;
971
+ entryId: string;
972
+ }, parameters: {
973
+ schema: T;
974
+ }): Promise<z.infer<T>>;
975
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
976
+ id?: string | undefined;
977
+ uuid?: string | undefined;
978
+ app_id?: string | undefined;
979
+ instance_id?: string | undefined;
980
+ name?: string | undefined;
981
+ entryId: string;
982
+ }, parameters: {
983
+ schema: false;
984
+ }): Promise<unknown>;
985
+ }, safeUndoCvmDraftEntry: {
986
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
987
+ id?: string | undefined;
988
+ uuid?: string | undefined;
989
+ app_id?: string | undefined;
990
+ instance_id?: string | undefined;
991
+ name?: string | undefined;
992
+ entryId: string;
993
+ }): Promise<import("../..").SafeResult<{
994
+ base_compose_hash: string | null;
995
+ current_compose_hash: string | null;
996
+ preview_compose_hash: string;
997
+ patch: Record<string, unknown>;
998
+ entries: {
999
+ id: string;
1000
+ user_id: string;
1001
+ username: string;
1002
+ staged_at: string;
1003
+ patch: Record<string, unknown>;
1004
+ diff: string;
1005
+ }[];
1006
+ } | undefined>>;
1007
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1008
+ id?: string | undefined;
1009
+ uuid?: string | undefined;
1010
+ app_id?: string | undefined;
1011
+ instance_id?: string | undefined;
1012
+ name?: string | undefined;
1013
+ entryId: string;
1014
+ }, parameters: {
1015
+ schema: T;
1016
+ }): Promise<import("../..").SafeResult<z.infer<T>>>;
1017
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1018
+ id?: string | undefined;
1019
+ uuid?: string | undefined;
1020
+ app_id?: string | undefined;
1021
+ instance_id?: string | undefined;
1022
+ name?: string | undefined;
1023
+ entryId: string;
1024
+ }, parameters: {
1025
+ schema: false;
1026
+ }): Promise<import("../..").SafeResult<unknown>>;
1027
+ };
1028
+ /**
1029
+ * Discard the draft without changing any on-chain registrations. Pass entry IDs
1030
+ * in draft order to discard only if the entries are unchanged.
1031
+ */
1032
+ declare const discardCvmDraft: {
1033
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1034
+ id?: string | undefined;
1035
+ uuid?: string | undefined;
1036
+ app_id?: string | undefined;
1037
+ instance_id?: string | undefined;
1038
+ name?: string | undefined;
1039
+ expectedEntryIds?: string[] | undefined;
1040
+ }): Promise<void>;
1041
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1042
+ id?: string | undefined;
1043
+ uuid?: string | undefined;
1044
+ app_id?: string | undefined;
1045
+ instance_id?: string | undefined;
1046
+ name?: string | undefined;
1047
+ expectedEntryIds?: string[] | undefined;
1048
+ }, parameters: {
1049
+ schema: T;
1050
+ }): Promise<z.infer<T>>;
1051
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1052
+ id?: string | undefined;
1053
+ uuid?: string | undefined;
1054
+ app_id?: string | undefined;
1055
+ instance_id?: string | undefined;
1056
+ name?: string | undefined;
1057
+ expectedEntryIds?: string[] | undefined;
1058
+ }, parameters: {
1059
+ schema: false;
1060
+ }): Promise<unknown>;
1061
+ }, safeDiscardCvmDraft: {
1062
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1063
+ id?: string | undefined;
1064
+ uuid?: string | undefined;
1065
+ app_id?: string | undefined;
1066
+ instance_id?: string | undefined;
1067
+ name?: string | undefined;
1068
+ expectedEntryIds?: string[] | undefined;
1069
+ }): Promise<import("../..").SafeResult<void>>;
1070
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1071
+ id?: string | undefined;
1072
+ uuid?: string | undefined;
1073
+ app_id?: string | undefined;
1074
+ instance_id?: string | undefined;
1075
+ name?: string | undefined;
1076
+ expectedEntryIds?: string[] | undefined;
1077
+ }, parameters: {
1078
+ schema: T;
1079
+ }): Promise<import("../..").SafeResult<z.infer<T>>>;
1080
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1081
+ id?: string | undefined;
1082
+ uuid?: string | undefined;
1083
+ app_id?: string | undefined;
1084
+ instance_id?: string | undefined;
1085
+ name?: string | undefined;
1086
+ expectedEntryIds?: string[] | undefined;
1087
+ }, parameters: {
1088
+ schema: false;
1089
+ }): Promise<import("../..").SafeResult<unknown>>;
1090
+ };
1091
+ /**
1092
+ * Apply all staged changes as one update. If registration is required, register the
1093
+ * returned compose hash and call this action again with both hashes. Pass the
1094
+ * reviewed entry IDs in draft order on both calls to guard against draft changes.
1095
+ * Acceptance does not mean the update has finished.
1096
+ */
1097
+ declare const applyCvmDraft: {
1098
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1099
+ id?: string | undefined;
1100
+ uuid?: string | undefined;
1101
+ app_id?: string | undefined;
1102
+ instance_id?: string | undefined;
1103
+ name?: string | undefined;
1104
+ baseComposeHash?: string | undefined;
1105
+ expectedEntryIds?: string[] | undefined;
1106
+ prepareOnly?: boolean | undefined;
1107
+ composeHash: string;
1108
+ transactionHash: string;
1109
+ } | {
1110
+ id?: string | undefined;
1111
+ uuid?: string | undefined;
1112
+ app_id?: string | undefined;
1113
+ instance_id?: string | undefined;
1114
+ name?: string | undefined;
1115
+ baseComposeHash?: string | undefined;
1116
+ expectedEntryIds?: string[] | undefined;
1117
+ prepareOnly?: boolean | undefined;
1118
+ composeHash?: undefined;
1119
+ transactionHash?: undefined;
1120
+ }): Promise<{
1121
+ requiresOnChainHash: true;
1122
+ composeHash: string;
1123
+ appId: string;
1124
+ deviceId: string;
1125
+ kmsInfo: {
1126
+ [x: string]: unknown;
1127
+ id: string;
1128
+ slug: string | null;
1129
+ url: string;
1130
+ version: string;
1131
+ chain_id: number | null;
1132
+ kms_contract_address: `0x${string}`;
1133
+ gateway_app_id: `0x${string}`;
1134
+ k256_pubkey?: string | null | undefined;
1135
+ };
1136
+ commitToken?: string | undefined;
1137
+ commitUrl?: string | undefined;
1138
+ apiCommitUrl?: string | undefined;
1139
+ onchainStatus?: {
1140
+ compose_hash_allowed: boolean;
1141
+ device_id_allowed: boolean;
1142
+ is_allowed: boolean;
1143
+ } | undefined;
1144
+ } | {
1145
+ correlationId: string;
1146
+ status?: string | undefined;
1147
+ finalityWait?: {
1148
+ operation: "create" | "update" | (string & Record<never, never>);
1149
+ correlation_id: string;
1150
+ phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
1151
+ stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
1152
+ stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
1153
+ transaction: {
1154
+ hash: string;
1155
+ block_number: number;
1156
+ chain_id: number;
1157
+ } | null;
1158
+ finality: {
1159
+ block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
1160
+ policy_block_number: number | null;
1161
+ blocks_remaining: number | null;
1162
+ eta_seconds: number | null;
1163
+ };
1164
+ } | undefined;
1165
+ requiresOnChainHash: false;
1166
+ }>;
1167
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1168
+ id?: string | undefined;
1169
+ uuid?: string | undefined;
1170
+ app_id?: string | undefined;
1171
+ instance_id?: string | undefined;
1172
+ name?: string | undefined;
1173
+ baseComposeHash?: string | undefined;
1174
+ expectedEntryIds?: string[] | undefined;
1175
+ prepareOnly?: boolean | undefined;
1176
+ composeHash: string;
1177
+ transactionHash: string;
1178
+ } | {
1179
+ id?: string | undefined;
1180
+ uuid?: string | undefined;
1181
+ app_id?: string | undefined;
1182
+ instance_id?: string | undefined;
1183
+ name?: string | undefined;
1184
+ baseComposeHash?: string | undefined;
1185
+ expectedEntryIds?: string[] | undefined;
1186
+ prepareOnly?: boolean | undefined;
1187
+ composeHash?: undefined;
1188
+ transactionHash?: undefined;
1189
+ }, parameters: {
1190
+ schema: T;
1191
+ }): Promise<z.infer<T>>;
1192
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1193
+ id?: string | undefined;
1194
+ uuid?: string | undefined;
1195
+ app_id?: string | undefined;
1196
+ instance_id?: string | undefined;
1197
+ name?: string | undefined;
1198
+ baseComposeHash?: string | undefined;
1199
+ expectedEntryIds?: string[] | undefined;
1200
+ prepareOnly?: boolean | undefined;
1201
+ composeHash: string;
1202
+ transactionHash: string;
1203
+ } | {
1204
+ id?: string | undefined;
1205
+ uuid?: string | undefined;
1206
+ app_id?: string | undefined;
1207
+ instance_id?: string | undefined;
1208
+ name?: string | undefined;
1209
+ baseComposeHash?: string | undefined;
1210
+ expectedEntryIds?: string[] | undefined;
1211
+ prepareOnly?: boolean | undefined;
1212
+ composeHash?: undefined;
1213
+ transactionHash?: undefined;
1214
+ }, parameters: {
1215
+ schema: false;
1216
+ }): Promise<unknown>;
1217
+ }, safeApplyCvmDraft: {
1218
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1219
+ id?: string | undefined;
1220
+ uuid?: string | undefined;
1221
+ app_id?: string | undefined;
1222
+ instance_id?: string | undefined;
1223
+ name?: string | undefined;
1224
+ baseComposeHash?: string | undefined;
1225
+ expectedEntryIds?: string[] | undefined;
1226
+ prepareOnly?: boolean | undefined;
1227
+ composeHash: string;
1228
+ transactionHash: string;
1229
+ } | {
1230
+ id?: string | undefined;
1231
+ uuid?: string | undefined;
1232
+ app_id?: string | undefined;
1233
+ instance_id?: string | undefined;
1234
+ name?: string | undefined;
1235
+ baseComposeHash?: string | undefined;
1236
+ expectedEntryIds?: string[] | undefined;
1237
+ prepareOnly?: boolean | undefined;
1238
+ composeHash?: undefined;
1239
+ transactionHash?: undefined;
1240
+ }): Promise<import("../..").SafeResult<{
1241
+ requiresOnChainHash: true;
1242
+ composeHash: string;
1243
+ appId: string;
1244
+ deviceId: string;
1245
+ kmsInfo: {
1246
+ [x: string]: unknown;
1247
+ id: string;
1248
+ slug: string | null;
1249
+ url: string;
1250
+ version: string;
1251
+ chain_id: number | null;
1252
+ kms_contract_address: `0x${string}`;
1253
+ gateway_app_id: `0x${string}`;
1254
+ k256_pubkey?: string | null | undefined;
1255
+ };
1256
+ commitToken?: string | undefined;
1257
+ commitUrl?: string | undefined;
1258
+ apiCommitUrl?: string | undefined;
1259
+ onchainStatus?: {
1260
+ compose_hash_allowed: boolean;
1261
+ device_id_allowed: boolean;
1262
+ is_allowed: boolean;
1263
+ } | undefined;
1264
+ } | {
1265
+ correlationId: string;
1266
+ status?: string | undefined;
1267
+ finalityWait?: {
1268
+ operation: "create" | "update" | (string & Record<never, never>);
1269
+ correlation_id: string;
1270
+ phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
1271
+ stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
1272
+ stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
1273
+ transaction: {
1274
+ hash: string;
1275
+ block_number: number;
1276
+ chain_id: number;
1277
+ } | null;
1278
+ finality: {
1279
+ block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
1280
+ policy_block_number: number | null;
1281
+ blocks_remaining: number | null;
1282
+ eta_seconds: number | null;
1283
+ };
1284
+ } | undefined;
1285
+ requiresOnChainHash: false;
1286
+ }>>;
1287
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1288
+ id?: string | undefined;
1289
+ uuid?: string | undefined;
1290
+ app_id?: string | undefined;
1291
+ instance_id?: string | undefined;
1292
+ name?: string | undefined;
1293
+ baseComposeHash?: string | undefined;
1294
+ expectedEntryIds?: string[] | undefined;
1295
+ prepareOnly?: boolean | undefined;
1296
+ composeHash: string;
1297
+ transactionHash: string;
1298
+ } | {
1299
+ id?: string | undefined;
1300
+ uuid?: string | undefined;
1301
+ app_id?: string | undefined;
1302
+ instance_id?: string | undefined;
1303
+ name?: string | undefined;
1304
+ baseComposeHash?: string | undefined;
1305
+ expectedEntryIds?: string[] | undefined;
1306
+ prepareOnly?: boolean | undefined;
1307
+ composeHash?: undefined;
1308
+ transactionHash?: undefined;
1309
+ }, parameters: {
1310
+ schema: T;
1311
+ }): Promise<import("../..").SafeResult<z.infer<T>>>;
1312
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
1313
+ id?: string | undefined;
1314
+ uuid?: string | undefined;
1315
+ app_id?: string | undefined;
1316
+ instance_id?: string | undefined;
1317
+ name?: string | undefined;
1318
+ baseComposeHash?: string | undefined;
1319
+ expectedEntryIds?: string[] | undefined;
1320
+ prepareOnly?: boolean | undefined;
1321
+ composeHash: string;
1322
+ transactionHash: string;
1323
+ } | {
1324
+ id?: string | undefined;
1325
+ uuid?: string | undefined;
1326
+ app_id?: string | undefined;
1327
+ instance_id?: string | undefined;
1328
+ name?: string | undefined;
1329
+ baseComposeHash?: string | undefined;
1330
+ expectedEntryIds?: string[] | undefined;
1331
+ prepareOnly?: boolean | undefined;
1332
+ composeHash?: undefined;
1333
+ transactionHash?: undefined;
1334
+ }, parameters: {
1335
+ schema: false;
1336
+ }): Promise<import("../..").SafeResult<unknown>>;
1337
+ };
1338
+ export { applyCvmDraft, discardCvmDraft, getCvmDraft, listCvmDrafts, safeApplyCvmDraft, safeDiscardCvmDraft, safeGetCvmDraft, safeListCvmDrafts, safeStageCvmDraft, safeUndoCvmDraftEntry, stageCvmDraft, undoCvmDraftEntry, };