@phala/cloud 0.6.6-beta.1 → 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.
- package/README.md +19 -0
- package/dist/actions/apps/create_app_instance.d.ts +38 -0
- package/dist/actions/apps/get_app_pending_updates.d.ts +93 -0
- package/dist/actions/blockchains/remove_compose_hash.d.ts +77 -0
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +83 -11
- package/dist/actions/cvms/commit_cvm_provision.d.ts +191 -0
- package/dist/actions/cvms/commit_cvm_update.d.ts +77 -3
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +80 -3
- package/dist/actions/cvms/cvm_draft.d.ts +1338 -0
- package/dist/actions/cvms/cvm_update_response.d.ts +154 -0
- package/dist/actions/cvms/get_cvm_init_scripts.d.ts +10 -16
- package/dist/actions/cvms/patch_cvm.d.ts +206 -62
- package/dist/actions/cvms/provision_cvm.d.ts +5 -7
- package/dist/actions/cvms/put_cvm_init_scripts.d.ts +49 -10
- package/dist/actions/cvms/update_cvm_envs.d.ts +129 -19
- package/dist/actions/cvms/update_docker_compose.d.ts +134 -20
- package/dist/actions/cvms/update_prelaunch_script.d.ts +134 -20
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +145 -15
- package/dist/actions/cvms/wait_for_cvm_finality.d.ts +153 -0
- package/dist/actions/index.d.ts +5 -1
- package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +31 -7
- package/dist/create-client.d.ts +1267 -22
- package/dist/index.js +2540 -1784
- package/dist/index.mjs +2509 -1785
- package/dist/types/app_compose.d.ts +8 -6
- package/dist/types/cvm_finality.d.ts +134 -0
- package/dist/types/cvm_info.d.ts +266 -0
- package/dist/types/cvm_info_v20251028.d.ts +37 -0
- package/dist/types/cvm_info_v20260121.d.ts +111 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/create-client.d.ts
CHANGED
|
@@ -231,6 +231,1047 @@ declare const additionalActions: {
|
|
|
231
231
|
replicateCvm: typeof actions.replicateCvm;
|
|
232
232
|
safeReplicateCvm: typeof actions.safeReplicateCvm;
|
|
233
233
|
watchCvmState: typeof actions.watchCvmState;
|
|
234
|
+
waitForCvmFinality: typeof actions.waitForCvmFinality;
|
|
235
|
+
waitForAppEnvEncryptPubKey: typeof actions.waitForAppEnvEncryptPubKey;
|
|
236
|
+
safeWaitForCvmFinality: typeof actions.safeWaitForCvmFinality;
|
|
237
|
+
listCvmDrafts: {
|
|
238
|
+
(client: BaseClient<ApiVersion>, parameters: {
|
|
239
|
+
schema: false;
|
|
240
|
+
}): Promise<unknown>;
|
|
241
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, parameters: {
|
|
242
|
+
schema: T;
|
|
243
|
+
}): Promise<z.infer<T>>;
|
|
244
|
+
(client: BaseClient<ApiVersion>): Promise<{
|
|
245
|
+
items: {
|
|
246
|
+
cvm_id: string;
|
|
247
|
+
vm_uuid: string;
|
|
248
|
+
name: string | null;
|
|
249
|
+
app_id: string | null;
|
|
250
|
+
state: "applying" | "awaiting_finality" | "staged" | (string & Record<never, never>);
|
|
251
|
+
corrupt: boolean;
|
|
252
|
+
entry_count: number | null;
|
|
253
|
+
base_compose_hash: string | null;
|
|
254
|
+
preview_compose_hash: string | null;
|
|
255
|
+
finality_wait?: {
|
|
256
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
257
|
+
correlation_id: string;
|
|
258
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
259
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
260
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
261
|
+
transaction: {
|
|
262
|
+
hash: string;
|
|
263
|
+
block_number: number;
|
|
264
|
+
chain_id: number;
|
|
265
|
+
} | null;
|
|
266
|
+
finality: {
|
|
267
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
268
|
+
policy_block_number: number | null;
|
|
269
|
+
blocks_remaining: number | null;
|
|
270
|
+
eta_seconds: number | null;
|
|
271
|
+
};
|
|
272
|
+
} | null | undefined;
|
|
273
|
+
}[];
|
|
274
|
+
}>;
|
|
275
|
+
};
|
|
276
|
+
safeListCvmDrafts: {
|
|
277
|
+
(client: BaseClient<ApiVersion>, parameters: {
|
|
278
|
+
schema: false;
|
|
279
|
+
}): Promise<SafeResult<unknown>>;
|
|
280
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, parameters: {
|
|
281
|
+
schema: T;
|
|
282
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
283
|
+
(client: BaseClient<ApiVersion>): Promise<SafeResult<{
|
|
284
|
+
items: {
|
|
285
|
+
cvm_id: string;
|
|
286
|
+
vm_uuid: string;
|
|
287
|
+
name: string | null;
|
|
288
|
+
app_id: string | null;
|
|
289
|
+
state: "applying" | "awaiting_finality" | "staged" | (string & Record<never, never>);
|
|
290
|
+
corrupt: boolean;
|
|
291
|
+
entry_count: number | null;
|
|
292
|
+
base_compose_hash: string | null;
|
|
293
|
+
preview_compose_hash: string | null;
|
|
294
|
+
finality_wait?: {
|
|
295
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
296
|
+
correlation_id: string;
|
|
297
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
298
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
299
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
300
|
+
transaction: {
|
|
301
|
+
hash: string;
|
|
302
|
+
block_number: number;
|
|
303
|
+
chain_id: number;
|
|
304
|
+
} | null;
|
|
305
|
+
finality: {
|
|
306
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
307
|
+
policy_block_number: number | null;
|
|
308
|
+
blocks_remaining: number | null;
|
|
309
|
+
eta_seconds: number | null;
|
|
310
|
+
};
|
|
311
|
+
} | null | undefined;
|
|
312
|
+
}[];
|
|
313
|
+
}>>;
|
|
314
|
+
};
|
|
315
|
+
getCvmDraft: {
|
|
316
|
+
(client: BaseClient<ApiVersion>, params: import("./types").CvmIdInput): Promise<{
|
|
317
|
+
base_compose_hash: string | null;
|
|
318
|
+
current_compose_hash: string | null;
|
|
319
|
+
preview_compose_hash: string;
|
|
320
|
+
patch: Record<string, unknown>;
|
|
321
|
+
entries: {
|
|
322
|
+
id: string;
|
|
323
|
+
user_id: string;
|
|
324
|
+
username: string;
|
|
325
|
+
staged_at: string;
|
|
326
|
+
patch: Record<string, unknown>;
|
|
327
|
+
diff: string;
|
|
328
|
+
}[];
|
|
329
|
+
}>;
|
|
330
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: import("./types").CvmIdInput, parameters: {
|
|
331
|
+
schema: T;
|
|
332
|
+
}): Promise<z.infer<T>>;
|
|
333
|
+
(client: BaseClient<ApiVersion>, params: import("./types").CvmIdInput, parameters: {
|
|
334
|
+
schema: false;
|
|
335
|
+
}): Promise<unknown>;
|
|
336
|
+
};
|
|
337
|
+
safeGetCvmDraft: {
|
|
338
|
+
(client: BaseClient<ApiVersion>, params: import("./types").CvmIdInput): Promise<SafeResult<{
|
|
339
|
+
base_compose_hash: string | null;
|
|
340
|
+
current_compose_hash: string | null;
|
|
341
|
+
preview_compose_hash: string;
|
|
342
|
+
patch: Record<string, unknown>;
|
|
343
|
+
entries: {
|
|
344
|
+
id: string;
|
|
345
|
+
user_id: string;
|
|
346
|
+
username: string;
|
|
347
|
+
staged_at: string;
|
|
348
|
+
patch: Record<string, unknown>;
|
|
349
|
+
diff: string;
|
|
350
|
+
}[];
|
|
351
|
+
}>>;
|
|
352
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: import("./types").CvmIdInput, parameters: {
|
|
353
|
+
schema: T;
|
|
354
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
355
|
+
(client: BaseClient<ApiVersion>, params: import("./types").CvmIdInput, parameters: {
|
|
356
|
+
schema: false;
|
|
357
|
+
}): Promise<SafeResult<unknown>>;
|
|
358
|
+
};
|
|
359
|
+
stageCvmDraft: {
|
|
360
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
361
|
+
id?: string | undefined;
|
|
362
|
+
uuid?: string | undefined;
|
|
363
|
+
app_id?: string | undefined;
|
|
364
|
+
instance_id?: string | undefined;
|
|
365
|
+
name?: string | undefined;
|
|
366
|
+
docker_compose_file?: string | undefined;
|
|
367
|
+
pre_launch_script?: string | undefined;
|
|
368
|
+
allowed_envs?: string[] | undefined;
|
|
369
|
+
public_logs?: boolean | undefined;
|
|
370
|
+
public_sysinfo?: boolean | undefined;
|
|
371
|
+
public_tcbinfo?: boolean | undefined;
|
|
372
|
+
compose?: {
|
|
373
|
+
[x: string]: unknown;
|
|
374
|
+
secure_time?: boolean | null | undefined;
|
|
375
|
+
swap_size?: string | null | undefined;
|
|
376
|
+
storage_discard?: boolean | null | undefined;
|
|
377
|
+
snapshotter?: "overlayfs" | "stargz" | null | undefined;
|
|
378
|
+
gateway_enabled?: boolean | null | undefined;
|
|
379
|
+
port_policy?: {
|
|
380
|
+
ports?: {
|
|
381
|
+
port: number;
|
|
382
|
+
pp?: boolean | undefined;
|
|
383
|
+
}[] | undefined;
|
|
384
|
+
restrict_mode?: boolean | undefined;
|
|
385
|
+
} | null | undefined;
|
|
386
|
+
event_log_version?: 1 | 2 | null | undefined;
|
|
387
|
+
requirements?: {
|
|
388
|
+
[x: string]: unknown;
|
|
389
|
+
ephemeral_data_disk?: boolean | null | undefined;
|
|
390
|
+
health_check?: boolean | null | undefined;
|
|
391
|
+
health_status_file?: string | null | undefined;
|
|
392
|
+
launch_token_hash?: string | null | undefined;
|
|
393
|
+
platforms?: string[] | null | undefined;
|
|
394
|
+
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
395
|
+
} | null | undefined;
|
|
396
|
+
kms_enabled?: boolean | null | undefined;
|
|
397
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
398
|
+
key_provider_id?: string | null | undefined;
|
|
399
|
+
local_key_provider_enabled?: boolean | null | undefined;
|
|
400
|
+
manifest_version?: string | number | null | undefined;
|
|
401
|
+
no_instance_id?: boolean | null | undefined;
|
|
402
|
+
runner?: string | null | undefined;
|
|
403
|
+
storage_fs?: "ext4" | "zfs" | null | undefined;
|
|
404
|
+
verity_volumes?: {
|
|
405
|
+
source: string;
|
|
406
|
+
target: string;
|
|
407
|
+
verity_root: string;
|
|
408
|
+
}[] | null | undefined;
|
|
409
|
+
tproxy_enabled?: boolean | null | undefined;
|
|
410
|
+
features?: string[] | null | undefined;
|
|
411
|
+
} | undefined;
|
|
412
|
+
init_scripts?: unknown[] | undefined;
|
|
413
|
+
init_script?: string[] | undefined;
|
|
414
|
+
confirm_data_wipe?: boolean | undefined;
|
|
415
|
+
encrypted_env?: string | undefined;
|
|
416
|
+
user_config?: string | undefined;
|
|
417
|
+
gpus?: {
|
|
418
|
+
gpus: {
|
|
419
|
+
slot: string;
|
|
420
|
+
product_id?: string | undefined;
|
|
421
|
+
}[];
|
|
422
|
+
attach_mode?: string | undefined;
|
|
423
|
+
} | undefined;
|
|
424
|
+
vcpu?: number | undefined;
|
|
425
|
+
memory?: number | undefined;
|
|
426
|
+
disk_size?: number | undefined;
|
|
427
|
+
instance_type?: string | undefined;
|
|
428
|
+
image?: string | undefined;
|
|
429
|
+
shutdown_timeout?: number | undefined;
|
|
430
|
+
allow_force_stop?: boolean | undefined;
|
|
431
|
+
prepareOnly?: undefined;
|
|
432
|
+
}): Promise<{
|
|
433
|
+
base_compose_hash: string | null;
|
|
434
|
+
current_compose_hash: string | null;
|
|
435
|
+
preview_compose_hash: string;
|
|
436
|
+
patch: Record<string, unknown>;
|
|
437
|
+
entries: {
|
|
438
|
+
id: string;
|
|
439
|
+
user_id: string;
|
|
440
|
+
username: string;
|
|
441
|
+
staged_at: string;
|
|
442
|
+
patch: Record<string, unknown>;
|
|
443
|
+
diff: string;
|
|
444
|
+
}[];
|
|
445
|
+
}>;
|
|
446
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
447
|
+
id?: string | undefined;
|
|
448
|
+
uuid?: string | undefined;
|
|
449
|
+
app_id?: string | undefined;
|
|
450
|
+
instance_id?: string | undefined;
|
|
451
|
+
name?: string | undefined;
|
|
452
|
+
docker_compose_file?: string | undefined;
|
|
453
|
+
pre_launch_script?: string | undefined;
|
|
454
|
+
allowed_envs?: string[] | undefined;
|
|
455
|
+
public_logs?: boolean | undefined;
|
|
456
|
+
public_sysinfo?: boolean | undefined;
|
|
457
|
+
public_tcbinfo?: boolean | undefined;
|
|
458
|
+
compose?: {
|
|
459
|
+
[x: string]: unknown;
|
|
460
|
+
secure_time?: boolean | null | undefined;
|
|
461
|
+
swap_size?: string | null | undefined;
|
|
462
|
+
storage_discard?: boolean | null | undefined;
|
|
463
|
+
snapshotter?: "overlayfs" | "stargz" | null | undefined;
|
|
464
|
+
gateway_enabled?: boolean | null | undefined;
|
|
465
|
+
port_policy?: {
|
|
466
|
+
ports?: {
|
|
467
|
+
port: number;
|
|
468
|
+
pp?: boolean | undefined;
|
|
469
|
+
}[] | undefined;
|
|
470
|
+
restrict_mode?: boolean | undefined;
|
|
471
|
+
} | null | undefined;
|
|
472
|
+
event_log_version?: 1 | 2 | null | undefined;
|
|
473
|
+
requirements?: {
|
|
474
|
+
[x: string]: unknown;
|
|
475
|
+
ephemeral_data_disk?: boolean | null | undefined;
|
|
476
|
+
health_check?: boolean | null | undefined;
|
|
477
|
+
health_status_file?: string | null | undefined;
|
|
478
|
+
launch_token_hash?: string | null | undefined;
|
|
479
|
+
platforms?: string[] | null | undefined;
|
|
480
|
+
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
481
|
+
} | null | undefined;
|
|
482
|
+
kms_enabled?: boolean | null | undefined;
|
|
483
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
484
|
+
key_provider_id?: string | null | undefined;
|
|
485
|
+
local_key_provider_enabled?: boolean | null | undefined;
|
|
486
|
+
manifest_version?: string | number | null | undefined;
|
|
487
|
+
no_instance_id?: boolean | null | undefined;
|
|
488
|
+
runner?: string | null | undefined;
|
|
489
|
+
storage_fs?: "ext4" | "zfs" | null | undefined;
|
|
490
|
+
verity_volumes?: {
|
|
491
|
+
source: string;
|
|
492
|
+
target: string;
|
|
493
|
+
verity_root: string;
|
|
494
|
+
}[] | null | undefined;
|
|
495
|
+
tproxy_enabled?: boolean | null | undefined;
|
|
496
|
+
features?: string[] | null | undefined;
|
|
497
|
+
} | undefined;
|
|
498
|
+
init_scripts?: unknown[] | undefined;
|
|
499
|
+
init_script?: string[] | undefined;
|
|
500
|
+
confirm_data_wipe?: boolean | undefined;
|
|
501
|
+
encrypted_env?: string | undefined;
|
|
502
|
+
user_config?: string | undefined;
|
|
503
|
+
gpus?: {
|
|
504
|
+
gpus: {
|
|
505
|
+
slot: string;
|
|
506
|
+
product_id?: string | undefined;
|
|
507
|
+
}[];
|
|
508
|
+
attach_mode?: string | undefined;
|
|
509
|
+
} | undefined;
|
|
510
|
+
vcpu?: number | undefined;
|
|
511
|
+
memory?: number | undefined;
|
|
512
|
+
disk_size?: number | undefined;
|
|
513
|
+
instance_type?: string | undefined;
|
|
514
|
+
image?: string | undefined;
|
|
515
|
+
shutdown_timeout?: number | undefined;
|
|
516
|
+
allow_force_stop?: boolean | undefined;
|
|
517
|
+
prepareOnly?: undefined;
|
|
518
|
+
}, parameters: {
|
|
519
|
+
schema: T;
|
|
520
|
+
}): Promise<z.infer<T>>;
|
|
521
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
522
|
+
id?: string | undefined;
|
|
523
|
+
uuid?: string | undefined;
|
|
524
|
+
app_id?: string | undefined;
|
|
525
|
+
instance_id?: string | undefined;
|
|
526
|
+
name?: string | undefined;
|
|
527
|
+
docker_compose_file?: string | undefined;
|
|
528
|
+
pre_launch_script?: string | undefined;
|
|
529
|
+
allowed_envs?: string[] | undefined;
|
|
530
|
+
public_logs?: boolean | undefined;
|
|
531
|
+
public_sysinfo?: boolean | undefined;
|
|
532
|
+
public_tcbinfo?: boolean | undefined;
|
|
533
|
+
compose?: {
|
|
534
|
+
[x: string]: unknown;
|
|
535
|
+
secure_time?: boolean | null | undefined;
|
|
536
|
+
swap_size?: string | null | undefined;
|
|
537
|
+
storage_discard?: boolean | null | undefined;
|
|
538
|
+
snapshotter?: "overlayfs" | "stargz" | null | undefined;
|
|
539
|
+
gateway_enabled?: boolean | null | undefined;
|
|
540
|
+
port_policy?: {
|
|
541
|
+
ports?: {
|
|
542
|
+
port: number;
|
|
543
|
+
pp?: boolean | undefined;
|
|
544
|
+
}[] | undefined;
|
|
545
|
+
restrict_mode?: boolean | undefined;
|
|
546
|
+
} | null | undefined;
|
|
547
|
+
event_log_version?: 1 | 2 | null | undefined;
|
|
548
|
+
requirements?: {
|
|
549
|
+
[x: string]: unknown;
|
|
550
|
+
ephemeral_data_disk?: boolean | null | undefined;
|
|
551
|
+
health_check?: boolean | null | undefined;
|
|
552
|
+
health_status_file?: string | null | undefined;
|
|
553
|
+
launch_token_hash?: string | null | undefined;
|
|
554
|
+
platforms?: string[] | null | undefined;
|
|
555
|
+
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
556
|
+
} | null | undefined;
|
|
557
|
+
kms_enabled?: boolean | null | undefined;
|
|
558
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
559
|
+
key_provider_id?: string | null | undefined;
|
|
560
|
+
local_key_provider_enabled?: boolean | null | undefined;
|
|
561
|
+
manifest_version?: string | number | null | undefined;
|
|
562
|
+
no_instance_id?: boolean | null | undefined;
|
|
563
|
+
runner?: string | null | undefined;
|
|
564
|
+
storage_fs?: "ext4" | "zfs" | null | undefined;
|
|
565
|
+
verity_volumes?: {
|
|
566
|
+
source: string;
|
|
567
|
+
target: string;
|
|
568
|
+
verity_root: string;
|
|
569
|
+
}[] | null | undefined;
|
|
570
|
+
tproxy_enabled?: boolean | null | undefined;
|
|
571
|
+
features?: string[] | null | undefined;
|
|
572
|
+
} | undefined;
|
|
573
|
+
init_scripts?: unknown[] | undefined;
|
|
574
|
+
init_script?: string[] | undefined;
|
|
575
|
+
confirm_data_wipe?: boolean | undefined;
|
|
576
|
+
encrypted_env?: string | undefined;
|
|
577
|
+
user_config?: string | undefined;
|
|
578
|
+
gpus?: {
|
|
579
|
+
gpus: {
|
|
580
|
+
slot: string;
|
|
581
|
+
product_id?: string | undefined;
|
|
582
|
+
}[];
|
|
583
|
+
attach_mode?: string | undefined;
|
|
584
|
+
} | undefined;
|
|
585
|
+
vcpu?: number | undefined;
|
|
586
|
+
memory?: number | undefined;
|
|
587
|
+
disk_size?: number | undefined;
|
|
588
|
+
instance_type?: string | undefined;
|
|
589
|
+
image?: string | undefined;
|
|
590
|
+
shutdown_timeout?: number | undefined;
|
|
591
|
+
allow_force_stop?: boolean | undefined;
|
|
592
|
+
prepareOnly?: undefined;
|
|
593
|
+
}, parameters: {
|
|
594
|
+
schema: false;
|
|
595
|
+
}): Promise<unknown>;
|
|
596
|
+
};
|
|
597
|
+
safeStageCvmDraft: {
|
|
598
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
599
|
+
id?: string | undefined;
|
|
600
|
+
uuid?: string | undefined;
|
|
601
|
+
app_id?: string | undefined;
|
|
602
|
+
instance_id?: string | undefined;
|
|
603
|
+
name?: string | undefined;
|
|
604
|
+
docker_compose_file?: string | undefined;
|
|
605
|
+
pre_launch_script?: string | undefined;
|
|
606
|
+
allowed_envs?: string[] | undefined;
|
|
607
|
+
public_logs?: boolean | undefined;
|
|
608
|
+
public_sysinfo?: boolean | undefined;
|
|
609
|
+
public_tcbinfo?: boolean | undefined;
|
|
610
|
+
compose?: {
|
|
611
|
+
[x: string]: unknown;
|
|
612
|
+
secure_time?: boolean | null | undefined;
|
|
613
|
+
swap_size?: string | null | undefined;
|
|
614
|
+
storage_discard?: boolean | null | undefined;
|
|
615
|
+
snapshotter?: "overlayfs" | "stargz" | null | undefined;
|
|
616
|
+
gateway_enabled?: boolean | null | undefined;
|
|
617
|
+
port_policy?: {
|
|
618
|
+
ports?: {
|
|
619
|
+
port: number;
|
|
620
|
+
pp?: boolean | undefined;
|
|
621
|
+
}[] | undefined;
|
|
622
|
+
restrict_mode?: boolean | undefined;
|
|
623
|
+
} | null | undefined;
|
|
624
|
+
event_log_version?: 1 | 2 | null | undefined;
|
|
625
|
+
requirements?: {
|
|
626
|
+
[x: string]: unknown;
|
|
627
|
+
ephemeral_data_disk?: boolean | null | undefined;
|
|
628
|
+
health_check?: boolean | null | undefined;
|
|
629
|
+
health_status_file?: string | null | undefined;
|
|
630
|
+
launch_token_hash?: string | null | undefined;
|
|
631
|
+
platforms?: string[] | null | undefined;
|
|
632
|
+
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
633
|
+
} | null | undefined;
|
|
634
|
+
kms_enabled?: boolean | null | undefined;
|
|
635
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
636
|
+
key_provider_id?: string | null | undefined;
|
|
637
|
+
local_key_provider_enabled?: boolean | null | undefined;
|
|
638
|
+
manifest_version?: string | number | null | undefined;
|
|
639
|
+
no_instance_id?: boolean | null | undefined;
|
|
640
|
+
runner?: string | null | undefined;
|
|
641
|
+
storage_fs?: "ext4" | "zfs" | null | undefined;
|
|
642
|
+
verity_volumes?: {
|
|
643
|
+
source: string;
|
|
644
|
+
target: string;
|
|
645
|
+
verity_root: string;
|
|
646
|
+
}[] | null | undefined;
|
|
647
|
+
tproxy_enabled?: boolean | null | undefined;
|
|
648
|
+
features?: string[] | null | undefined;
|
|
649
|
+
} | undefined;
|
|
650
|
+
init_scripts?: unknown[] | undefined;
|
|
651
|
+
init_script?: string[] | undefined;
|
|
652
|
+
confirm_data_wipe?: boolean | undefined;
|
|
653
|
+
encrypted_env?: string | undefined;
|
|
654
|
+
user_config?: string | undefined;
|
|
655
|
+
gpus?: {
|
|
656
|
+
gpus: {
|
|
657
|
+
slot: string;
|
|
658
|
+
product_id?: string | undefined;
|
|
659
|
+
}[];
|
|
660
|
+
attach_mode?: string | undefined;
|
|
661
|
+
} | undefined;
|
|
662
|
+
vcpu?: number | undefined;
|
|
663
|
+
memory?: number | undefined;
|
|
664
|
+
disk_size?: number | undefined;
|
|
665
|
+
instance_type?: string | undefined;
|
|
666
|
+
image?: string | undefined;
|
|
667
|
+
shutdown_timeout?: number | undefined;
|
|
668
|
+
allow_force_stop?: boolean | undefined;
|
|
669
|
+
prepareOnly?: undefined;
|
|
670
|
+
}): Promise<SafeResult<{
|
|
671
|
+
base_compose_hash: string | null;
|
|
672
|
+
current_compose_hash: string | null;
|
|
673
|
+
preview_compose_hash: string;
|
|
674
|
+
patch: Record<string, unknown>;
|
|
675
|
+
entries: {
|
|
676
|
+
id: string;
|
|
677
|
+
user_id: string;
|
|
678
|
+
username: string;
|
|
679
|
+
staged_at: string;
|
|
680
|
+
patch: Record<string, unknown>;
|
|
681
|
+
diff: string;
|
|
682
|
+
}[];
|
|
683
|
+
}>>;
|
|
684
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
685
|
+
id?: string | undefined;
|
|
686
|
+
uuid?: string | undefined;
|
|
687
|
+
app_id?: string | undefined;
|
|
688
|
+
instance_id?: string | undefined;
|
|
689
|
+
name?: string | undefined;
|
|
690
|
+
docker_compose_file?: string | undefined;
|
|
691
|
+
pre_launch_script?: string | undefined;
|
|
692
|
+
allowed_envs?: string[] | undefined;
|
|
693
|
+
public_logs?: boolean | undefined;
|
|
694
|
+
public_sysinfo?: boolean | undefined;
|
|
695
|
+
public_tcbinfo?: boolean | undefined;
|
|
696
|
+
compose?: {
|
|
697
|
+
[x: string]: unknown;
|
|
698
|
+
secure_time?: boolean | null | undefined;
|
|
699
|
+
swap_size?: string | null | undefined;
|
|
700
|
+
storage_discard?: boolean | null | undefined;
|
|
701
|
+
snapshotter?: "overlayfs" | "stargz" | null | undefined;
|
|
702
|
+
gateway_enabled?: boolean | null | undefined;
|
|
703
|
+
port_policy?: {
|
|
704
|
+
ports?: {
|
|
705
|
+
port: number;
|
|
706
|
+
pp?: boolean | undefined;
|
|
707
|
+
}[] | undefined;
|
|
708
|
+
restrict_mode?: boolean | undefined;
|
|
709
|
+
} | null | undefined;
|
|
710
|
+
event_log_version?: 1 | 2 | null | undefined;
|
|
711
|
+
requirements?: {
|
|
712
|
+
[x: string]: unknown;
|
|
713
|
+
ephemeral_data_disk?: boolean | null | undefined;
|
|
714
|
+
health_check?: boolean | null | undefined;
|
|
715
|
+
health_status_file?: string | null | undefined;
|
|
716
|
+
launch_token_hash?: string | null | undefined;
|
|
717
|
+
platforms?: string[] | null | undefined;
|
|
718
|
+
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
719
|
+
} | null | undefined;
|
|
720
|
+
kms_enabled?: boolean | null | undefined;
|
|
721
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
722
|
+
key_provider_id?: string | null | undefined;
|
|
723
|
+
local_key_provider_enabled?: boolean | null | undefined;
|
|
724
|
+
manifest_version?: string | number | null | undefined;
|
|
725
|
+
no_instance_id?: boolean | null | undefined;
|
|
726
|
+
runner?: string | null | undefined;
|
|
727
|
+
storage_fs?: "ext4" | "zfs" | null | undefined;
|
|
728
|
+
verity_volumes?: {
|
|
729
|
+
source: string;
|
|
730
|
+
target: string;
|
|
731
|
+
verity_root: string;
|
|
732
|
+
}[] | null | undefined;
|
|
733
|
+
tproxy_enabled?: boolean | null | undefined;
|
|
734
|
+
features?: string[] | null | undefined;
|
|
735
|
+
} | undefined;
|
|
736
|
+
init_scripts?: unknown[] | undefined;
|
|
737
|
+
init_script?: string[] | undefined;
|
|
738
|
+
confirm_data_wipe?: boolean | undefined;
|
|
739
|
+
encrypted_env?: string | undefined;
|
|
740
|
+
user_config?: string | undefined;
|
|
741
|
+
gpus?: {
|
|
742
|
+
gpus: {
|
|
743
|
+
slot: string;
|
|
744
|
+
product_id?: string | undefined;
|
|
745
|
+
}[];
|
|
746
|
+
attach_mode?: string | undefined;
|
|
747
|
+
} | undefined;
|
|
748
|
+
vcpu?: number | undefined;
|
|
749
|
+
memory?: number | undefined;
|
|
750
|
+
disk_size?: number | undefined;
|
|
751
|
+
instance_type?: string | undefined;
|
|
752
|
+
image?: string | undefined;
|
|
753
|
+
shutdown_timeout?: number | undefined;
|
|
754
|
+
allow_force_stop?: boolean | undefined;
|
|
755
|
+
prepareOnly?: undefined;
|
|
756
|
+
}, parameters: {
|
|
757
|
+
schema: T;
|
|
758
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
759
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
760
|
+
id?: string | undefined;
|
|
761
|
+
uuid?: string | undefined;
|
|
762
|
+
app_id?: string | undefined;
|
|
763
|
+
instance_id?: string | undefined;
|
|
764
|
+
name?: string | undefined;
|
|
765
|
+
docker_compose_file?: string | undefined;
|
|
766
|
+
pre_launch_script?: string | undefined;
|
|
767
|
+
allowed_envs?: string[] | undefined;
|
|
768
|
+
public_logs?: boolean | undefined;
|
|
769
|
+
public_sysinfo?: boolean | undefined;
|
|
770
|
+
public_tcbinfo?: boolean | undefined;
|
|
771
|
+
compose?: {
|
|
772
|
+
[x: string]: unknown;
|
|
773
|
+
secure_time?: boolean | null | undefined;
|
|
774
|
+
swap_size?: string | null | undefined;
|
|
775
|
+
storage_discard?: boolean | null | undefined;
|
|
776
|
+
snapshotter?: "overlayfs" | "stargz" | null | undefined;
|
|
777
|
+
gateway_enabled?: boolean | null | undefined;
|
|
778
|
+
port_policy?: {
|
|
779
|
+
ports?: {
|
|
780
|
+
port: number;
|
|
781
|
+
pp?: boolean | undefined;
|
|
782
|
+
}[] | undefined;
|
|
783
|
+
restrict_mode?: boolean | undefined;
|
|
784
|
+
} | null | undefined;
|
|
785
|
+
event_log_version?: 1 | 2 | null | undefined;
|
|
786
|
+
requirements?: {
|
|
787
|
+
[x: string]: unknown;
|
|
788
|
+
ephemeral_data_disk?: boolean | null | undefined;
|
|
789
|
+
health_check?: boolean | null | undefined;
|
|
790
|
+
health_status_file?: string | null | undefined;
|
|
791
|
+
launch_token_hash?: string | null | undefined;
|
|
792
|
+
platforms?: string[] | null | undefined;
|
|
793
|
+
tdx_measure_acpi_tables?: boolean | null | undefined;
|
|
794
|
+
} | null | undefined;
|
|
795
|
+
kms_enabled?: boolean | null | undefined;
|
|
796
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | null | undefined;
|
|
797
|
+
key_provider_id?: string | null | undefined;
|
|
798
|
+
local_key_provider_enabled?: boolean | null | undefined;
|
|
799
|
+
manifest_version?: string | number | null | undefined;
|
|
800
|
+
no_instance_id?: boolean | null | undefined;
|
|
801
|
+
runner?: string | null | undefined;
|
|
802
|
+
storage_fs?: "ext4" | "zfs" | null | undefined;
|
|
803
|
+
verity_volumes?: {
|
|
804
|
+
source: string;
|
|
805
|
+
target: string;
|
|
806
|
+
verity_root: string;
|
|
807
|
+
}[] | null | undefined;
|
|
808
|
+
tproxy_enabled?: boolean | null | undefined;
|
|
809
|
+
features?: string[] | null | undefined;
|
|
810
|
+
} | undefined;
|
|
811
|
+
init_scripts?: unknown[] | undefined;
|
|
812
|
+
init_script?: string[] | undefined;
|
|
813
|
+
confirm_data_wipe?: boolean | undefined;
|
|
814
|
+
encrypted_env?: string | undefined;
|
|
815
|
+
user_config?: string | undefined;
|
|
816
|
+
gpus?: {
|
|
817
|
+
gpus: {
|
|
818
|
+
slot: string;
|
|
819
|
+
product_id?: string | undefined;
|
|
820
|
+
}[];
|
|
821
|
+
attach_mode?: string | undefined;
|
|
822
|
+
} | undefined;
|
|
823
|
+
vcpu?: number | undefined;
|
|
824
|
+
memory?: number | undefined;
|
|
825
|
+
disk_size?: number | undefined;
|
|
826
|
+
instance_type?: string | undefined;
|
|
827
|
+
image?: string | undefined;
|
|
828
|
+
shutdown_timeout?: number | undefined;
|
|
829
|
+
allow_force_stop?: boolean | undefined;
|
|
830
|
+
prepareOnly?: undefined;
|
|
831
|
+
}, parameters: {
|
|
832
|
+
schema: false;
|
|
833
|
+
}): Promise<SafeResult<unknown>>;
|
|
834
|
+
};
|
|
835
|
+
undoCvmDraftEntry: {
|
|
836
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
837
|
+
id?: string | undefined;
|
|
838
|
+
uuid?: string | undefined;
|
|
839
|
+
app_id?: string | undefined;
|
|
840
|
+
instance_id?: string | undefined;
|
|
841
|
+
name?: string | undefined;
|
|
842
|
+
entryId: string;
|
|
843
|
+
}): Promise<{
|
|
844
|
+
base_compose_hash: string | null;
|
|
845
|
+
current_compose_hash: string | null;
|
|
846
|
+
preview_compose_hash: string;
|
|
847
|
+
patch: Record<string, unknown>;
|
|
848
|
+
entries: {
|
|
849
|
+
id: string;
|
|
850
|
+
user_id: string;
|
|
851
|
+
username: string;
|
|
852
|
+
staged_at: string;
|
|
853
|
+
patch: Record<string, unknown>;
|
|
854
|
+
diff: string;
|
|
855
|
+
}[];
|
|
856
|
+
} | undefined>;
|
|
857
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
858
|
+
id?: string | undefined;
|
|
859
|
+
uuid?: string | undefined;
|
|
860
|
+
app_id?: string | undefined;
|
|
861
|
+
instance_id?: string | undefined;
|
|
862
|
+
name?: string | undefined;
|
|
863
|
+
entryId: string;
|
|
864
|
+
}, parameters: {
|
|
865
|
+
schema: T;
|
|
866
|
+
}): Promise<z.infer<T>>;
|
|
867
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
868
|
+
id?: string | undefined;
|
|
869
|
+
uuid?: string | undefined;
|
|
870
|
+
app_id?: string | undefined;
|
|
871
|
+
instance_id?: string | undefined;
|
|
872
|
+
name?: string | undefined;
|
|
873
|
+
entryId: string;
|
|
874
|
+
}, parameters: {
|
|
875
|
+
schema: false;
|
|
876
|
+
}): Promise<unknown>;
|
|
877
|
+
};
|
|
878
|
+
safeUndoCvmDraftEntry: {
|
|
879
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
880
|
+
id?: string | undefined;
|
|
881
|
+
uuid?: string | undefined;
|
|
882
|
+
app_id?: string | undefined;
|
|
883
|
+
instance_id?: string | undefined;
|
|
884
|
+
name?: string | undefined;
|
|
885
|
+
entryId: string;
|
|
886
|
+
}): Promise<SafeResult<{
|
|
887
|
+
base_compose_hash: string | null;
|
|
888
|
+
current_compose_hash: string | null;
|
|
889
|
+
preview_compose_hash: string;
|
|
890
|
+
patch: Record<string, unknown>;
|
|
891
|
+
entries: {
|
|
892
|
+
id: string;
|
|
893
|
+
user_id: string;
|
|
894
|
+
username: string;
|
|
895
|
+
staged_at: string;
|
|
896
|
+
patch: Record<string, unknown>;
|
|
897
|
+
diff: string;
|
|
898
|
+
}[];
|
|
899
|
+
} | undefined>>;
|
|
900
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
901
|
+
id?: string | undefined;
|
|
902
|
+
uuid?: string | undefined;
|
|
903
|
+
app_id?: string | undefined;
|
|
904
|
+
instance_id?: string | undefined;
|
|
905
|
+
name?: string | undefined;
|
|
906
|
+
entryId: string;
|
|
907
|
+
}, parameters: {
|
|
908
|
+
schema: T;
|
|
909
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
910
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
911
|
+
id?: string | undefined;
|
|
912
|
+
uuid?: string | undefined;
|
|
913
|
+
app_id?: string | undefined;
|
|
914
|
+
instance_id?: string | undefined;
|
|
915
|
+
name?: string | undefined;
|
|
916
|
+
entryId: string;
|
|
917
|
+
}, parameters: {
|
|
918
|
+
schema: false;
|
|
919
|
+
}): Promise<SafeResult<unknown>>;
|
|
920
|
+
};
|
|
921
|
+
discardCvmDraft: {
|
|
922
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
923
|
+
id?: string | undefined;
|
|
924
|
+
uuid?: string | undefined;
|
|
925
|
+
app_id?: string | undefined;
|
|
926
|
+
instance_id?: string | undefined;
|
|
927
|
+
name?: string | undefined;
|
|
928
|
+
expectedEntryIds?: string[] | undefined;
|
|
929
|
+
}): Promise<void>;
|
|
930
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
931
|
+
id?: string | undefined;
|
|
932
|
+
uuid?: string | undefined;
|
|
933
|
+
app_id?: string | undefined;
|
|
934
|
+
instance_id?: string | undefined;
|
|
935
|
+
name?: string | undefined;
|
|
936
|
+
expectedEntryIds?: string[] | undefined;
|
|
937
|
+
}, parameters: {
|
|
938
|
+
schema: T;
|
|
939
|
+
}): Promise<z.infer<T>>;
|
|
940
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
941
|
+
id?: string | undefined;
|
|
942
|
+
uuid?: string | undefined;
|
|
943
|
+
app_id?: string | undefined;
|
|
944
|
+
instance_id?: string | undefined;
|
|
945
|
+
name?: string | undefined;
|
|
946
|
+
expectedEntryIds?: string[] | undefined;
|
|
947
|
+
}, parameters: {
|
|
948
|
+
schema: false;
|
|
949
|
+
}): Promise<unknown>;
|
|
950
|
+
};
|
|
951
|
+
safeDiscardCvmDraft: {
|
|
952
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
953
|
+
id?: string | undefined;
|
|
954
|
+
uuid?: string | undefined;
|
|
955
|
+
app_id?: string | undefined;
|
|
956
|
+
instance_id?: string | undefined;
|
|
957
|
+
name?: string | undefined;
|
|
958
|
+
expectedEntryIds?: string[] | undefined;
|
|
959
|
+
}): Promise<SafeResult<void>>;
|
|
960
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
961
|
+
id?: string | undefined;
|
|
962
|
+
uuid?: string | undefined;
|
|
963
|
+
app_id?: string | undefined;
|
|
964
|
+
instance_id?: string | undefined;
|
|
965
|
+
name?: string | undefined;
|
|
966
|
+
expectedEntryIds?: string[] | undefined;
|
|
967
|
+
}, parameters: {
|
|
968
|
+
schema: T;
|
|
969
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
970
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
971
|
+
id?: string | undefined;
|
|
972
|
+
uuid?: string | undefined;
|
|
973
|
+
app_id?: string | undefined;
|
|
974
|
+
instance_id?: string | undefined;
|
|
975
|
+
name?: string | undefined;
|
|
976
|
+
expectedEntryIds?: string[] | undefined;
|
|
977
|
+
}, parameters: {
|
|
978
|
+
schema: false;
|
|
979
|
+
}): Promise<SafeResult<unknown>>;
|
|
980
|
+
};
|
|
981
|
+
applyCvmDraft: {
|
|
982
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
983
|
+
id?: string | undefined;
|
|
984
|
+
uuid?: string | undefined;
|
|
985
|
+
app_id?: string | undefined;
|
|
986
|
+
instance_id?: string | undefined;
|
|
987
|
+
name?: string | undefined;
|
|
988
|
+
baseComposeHash?: string | undefined;
|
|
989
|
+
expectedEntryIds?: string[] | undefined;
|
|
990
|
+
prepareOnly?: boolean | undefined;
|
|
991
|
+
composeHash: string;
|
|
992
|
+
transactionHash: string;
|
|
993
|
+
} | {
|
|
994
|
+
id?: string | undefined;
|
|
995
|
+
uuid?: string | undefined;
|
|
996
|
+
app_id?: string | undefined;
|
|
997
|
+
instance_id?: string | undefined;
|
|
998
|
+
name?: string | undefined;
|
|
999
|
+
baseComposeHash?: string | undefined;
|
|
1000
|
+
expectedEntryIds?: string[] | undefined;
|
|
1001
|
+
prepareOnly?: boolean | undefined;
|
|
1002
|
+
composeHash?: undefined;
|
|
1003
|
+
transactionHash?: undefined;
|
|
1004
|
+
}): Promise<{
|
|
1005
|
+
requiresOnChainHash: true;
|
|
1006
|
+
composeHash: string;
|
|
1007
|
+
appId: string;
|
|
1008
|
+
deviceId: string;
|
|
1009
|
+
kmsInfo: {
|
|
1010
|
+
[x: string]: unknown;
|
|
1011
|
+
id: string;
|
|
1012
|
+
slug: string | null;
|
|
1013
|
+
url: string;
|
|
1014
|
+
version: string;
|
|
1015
|
+
chain_id: number | null;
|
|
1016
|
+
kms_contract_address: `0x${string}`;
|
|
1017
|
+
gateway_app_id: `0x${string}`;
|
|
1018
|
+
k256_pubkey?: string | null | undefined;
|
|
1019
|
+
};
|
|
1020
|
+
commitToken?: string | undefined;
|
|
1021
|
+
commitUrl?: string | undefined;
|
|
1022
|
+
apiCommitUrl?: string | undefined;
|
|
1023
|
+
onchainStatus?: {
|
|
1024
|
+
compose_hash_allowed: boolean;
|
|
1025
|
+
device_id_allowed: boolean;
|
|
1026
|
+
is_allowed: boolean;
|
|
1027
|
+
} | undefined;
|
|
1028
|
+
} | {
|
|
1029
|
+
correlationId: string;
|
|
1030
|
+
status?: string | undefined;
|
|
1031
|
+
finalityWait?: {
|
|
1032
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
1033
|
+
correlation_id: string;
|
|
1034
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
1035
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
1036
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
1037
|
+
transaction: {
|
|
1038
|
+
hash: string;
|
|
1039
|
+
block_number: number;
|
|
1040
|
+
chain_id: number;
|
|
1041
|
+
} | null;
|
|
1042
|
+
finality: {
|
|
1043
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
1044
|
+
policy_block_number: number | null;
|
|
1045
|
+
blocks_remaining: number | null;
|
|
1046
|
+
eta_seconds: number | null;
|
|
1047
|
+
};
|
|
1048
|
+
} | undefined;
|
|
1049
|
+
requiresOnChainHash: false;
|
|
1050
|
+
}>;
|
|
1051
|
+
<T extends z.ZodTypeAny>(client: BaseClient<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
|
+
baseComposeHash?: string | undefined;
|
|
1058
|
+
expectedEntryIds?: string[] | undefined;
|
|
1059
|
+
prepareOnly?: boolean | undefined;
|
|
1060
|
+
composeHash: string;
|
|
1061
|
+
transactionHash: string;
|
|
1062
|
+
} | {
|
|
1063
|
+
id?: string | undefined;
|
|
1064
|
+
uuid?: string | undefined;
|
|
1065
|
+
app_id?: string | undefined;
|
|
1066
|
+
instance_id?: string | undefined;
|
|
1067
|
+
name?: string | undefined;
|
|
1068
|
+
baseComposeHash?: string | undefined;
|
|
1069
|
+
expectedEntryIds?: string[] | undefined;
|
|
1070
|
+
prepareOnly?: boolean | undefined;
|
|
1071
|
+
composeHash?: undefined;
|
|
1072
|
+
transactionHash?: undefined;
|
|
1073
|
+
}, parameters: {
|
|
1074
|
+
schema: T;
|
|
1075
|
+
}): Promise<z.infer<T>>;
|
|
1076
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
1077
|
+
id?: string | undefined;
|
|
1078
|
+
uuid?: string | undefined;
|
|
1079
|
+
app_id?: string | undefined;
|
|
1080
|
+
instance_id?: string | undefined;
|
|
1081
|
+
name?: string | undefined;
|
|
1082
|
+
baseComposeHash?: string | undefined;
|
|
1083
|
+
expectedEntryIds?: string[] | undefined;
|
|
1084
|
+
prepareOnly?: boolean | undefined;
|
|
1085
|
+
composeHash: string;
|
|
1086
|
+
transactionHash: string;
|
|
1087
|
+
} | {
|
|
1088
|
+
id?: string | undefined;
|
|
1089
|
+
uuid?: string | undefined;
|
|
1090
|
+
app_id?: string | undefined;
|
|
1091
|
+
instance_id?: string | undefined;
|
|
1092
|
+
name?: string | undefined;
|
|
1093
|
+
baseComposeHash?: string | undefined;
|
|
1094
|
+
expectedEntryIds?: string[] | undefined;
|
|
1095
|
+
prepareOnly?: boolean | undefined;
|
|
1096
|
+
composeHash?: undefined;
|
|
1097
|
+
transactionHash?: undefined;
|
|
1098
|
+
}, parameters: {
|
|
1099
|
+
schema: false;
|
|
1100
|
+
}): Promise<unknown>;
|
|
1101
|
+
};
|
|
1102
|
+
safeApplyCvmDraft: {
|
|
1103
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
1104
|
+
id?: string | undefined;
|
|
1105
|
+
uuid?: string | undefined;
|
|
1106
|
+
app_id?: string | undefined;
|
|
1107
|
+
instance_id?: string | undefined;
|
|
1108
|
+
name?: string | undefined;
|
|
1109
|
+
baseComposeHash?: string | undefined;
|
|
1110
|
+
expectedEntryIds?: string[] | undefined;
|
|
1111
|
+
prepareOnly?: boolean | undefined;
|
|
1112
|
+
composeHash: string;
|
|
1113
|
+
transactionHash: string;
|
|
1114
|
+
} | {
|
|
1115
|
+
id?: string | undefined;
|
|
1116
|
+
uuid?: string | undefined;
|
|
1117
|
+
app_id?: string | undefined;
|
|
1118
|
+
instance_id?: string | undefined;
|
|
1119
|
+
name?: string | undefined;
|
|
1120
|
+
baseComposeHash?: string | undefined;
|
|
1121
|
+
expectedEntryIds?: string[] | undefined;
|
|
1122
|
+
prepareOnly?: boolean | undefined;
|
|
1123
|
+
composeHash?: undefined;
|
|
1124
|
+
transactionHash?: undefined;
|
|
1125
|
+
}): Promise<SafeResult<{
|
|
1126
|
+
requiresOnChainHash: true;
|
|
1127
|
+
composeHash: string;
|
|
1128
|
+
appId: string;
|
|
1129
|
+
deviceId: string;
|
|
1130
|
+
kmsInfo: {
|
|
1131
|
+
[x: string]: unknown;
|
|
1132
|
+
id: string;
|
|
1133
|
+
slug: string | null;
|
|
1134
|
+
url: string;
|
|
1135
|
+
version: string;
|
|
1136
|
+
chain_id: number | null;
|
|
1137
|
+
kms_contract_address: `0x${string}`;
|
|
1138
|
+
gateway_app_id: `0x${string}`;
|
|
1139
|
+
k256_pubkey?: string | null | undefined;
|
|
1140
|
+
};
|
|
1141
|
+
commitToken?: string | undefined;
|
|
1142
|
+
commitUrl?: string | undefined;
|
|
1143
|
+
apiCommitUrl?: string | undefined;
|
|
1144
|
+
onchainStatus?: {
|
|
1145
|
+
compose_hash_allowed: boolean;
|
|
1146
|
+
device_id_allowed: boolean;
|
|
1147
|
+
is_allowed: boolean;
|
|
1148
|
+
} | undefined;
|
|
1149
|
+
} | {
|
|
1150
|
+
correlationId: string;
|
|
1151
|
+
status?: string | undefined;
|
|
1152
|
+
finalityWait?: {
|
|
1153
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
1154
|
+
correlation_id: string;
|
|
1155
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
1156
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
1157
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
1158
|
+
transaction: {
|
|
1159
|
+
hash: string;
|
|
1160
|
+
block_number: number;
|
|
1161
|
+
chain_id: number;
|
|
1162
|
+
} | null;
|
|
1163
|
+
finality: {
|
|
1164
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
1165
|
+
policy_block_number: number | null;
|
|
1166
|
+
blocks_remaining: number | null;
|
|
1167
|
+
eta_seconds: number | null;
|
|
1168
|
+
};
|
|
1169
|
+
} | undefined;
|
|
1170
|
+
requiresOnChainHash: false;
|
|
1171
|
+
}>>;
|
|
1172
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
1173
|
+
id?: string | undefined;
|
|
1174
|
+
uuid?: string | undefined;
|
|
1175
|
+
app_id?: string | undefined;
|
|
1176
|
+
instance_id?: string | undefined;
|
|
1177
|
+
name?: string | undefined;
|
|
1178
|
+
baseComposeHash?: string | undefined;
|
|
1179
|
+
expectedEntryIds?: string[] | undefined;
|
|
1180
|
+
prepareOnly?: boolean | undefined;
|
|
1181
|
+
composeHash: string;
|
|
1182
|
+
transactionHash: string;
|
|
1183
|
+
} | {
|
|
1184
|
+
id?: string | undefined;
|
|
1185
|
+
uuid?: string | undefined;
|
|
1186
|
+
app_id?: string | undefined;
|
|
1187
|
+
instance_id?: string | undefined;
|
|
1188
|
+
name?: string | undefined;
|
|
1189
|
+
baseComposeHash?: string | undefined;
|
|
1190
|
+
expectedEntryIds?: string[] | undefined;
|
|
1191
|
+
prepareOnly?: boolean | undefined;
|
|
1192
|
+
composeHash?: undefined;
|
|
1193
|
+
transactionHash?: undefined;
|
|
1194
|
+
}, parameters: {
|
|
1195
|
+
schema: T;
|
|
1196
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
1197
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
1198
|
+
id?: string | undefined;
|
|
1199
|
+
uuid?: string | undefined;
|
|
1200
|
+
app_id?: string | undefined;
|
|
1201
|
+
instance_id?: string | undefined;
|
|
1202
|
+
name?: string | undefined;
|
|
1203
|
+
baseComposeHash?: string | undefined;
|
|
1204
|
+
expectedEntryIds?: string[] | undefined;
|
|
1205
|
+
prepareOnly?: boolean | undefined;
|
|
1206
|
+
composeHash: string;
|
|
1207
|
+
transactionHash: string;
|
|
1208
|
+
} | {
|
|
1209
|
+
id?: string | undefined;
|
|
1210
|
+
uuid?: string | undefined;
|
|
1211
|
+
app_id?: string | undefined;
|
|
1212
|
+
instance_id?: string | undefined;
|
|
1213
|
+
name?: string | undefined;
|
|
1214
|
+
baseComposeHash?: string | undefined;
|
|
1215
|
+
expectedEntryIds?: string[] | undefined;
|
|
1216
|
+
prepareOnly?: boolean | undefined;
|
|
1217
|
+
composeHash?: undefined;
|
|
1218
|
+
transactionHash?: undefined;
|
|
1219
|
+
}, parameters: {
|
|
1220
|
+
schema: false;
|
|
1221
|
+
}): Promise<SafeResult<unknown>>;
|
|
1222
|
+
};
|
|
1223
|
+
getAppPendingUpdates: {
|
|
1224
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
1225
|
+
appId: string;
|
|
1226
|
+
}): Promise<{
|
|
1227
|
+
items: {
|
|
1228
|
+
vm_uuid: string;
|
|
1229
|
+
compose_hash: string;
|
|
1230
|
+
on_chain: boolean;
|
|
1231
|
+
instance_name?: string | null | undefined;
|
|
1232
|
+
}[];
|
|
1233
|
+
registered_unused: {
|
|
1234
|
+
compose_hash: string;
|
|
1235
|
+
state: "pending" | "unused";
|
|
1236
|
+
}[];
|
|
1237
|
+
}>;
|
|
1238
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
1239
|
+
appId: string;
|
|
1240
|
+
}, parameters: {
|
|
1241
|
+
schema: T;
|
|
1242
|
+
}): Promise<z.infer<T>>;
|
|
1243
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
1244
|
+
appId: string;
|
|
1245
|
+
}, parameters: {
|
|
1246
|
+
schema: false;
|
|
1247
|
+
}): Promise<unknown>;
|
|
1248
|
+
};
|
|
1249
|
+
safeGetAppPendingUpdates: {
|
|
1250
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
1251
|
+
appId: string;
|
|
1252
|
+
}): Promise<SafeResult<{
|
|
1253
|
+
items: {
|
|
1254
|
+
vm_uuid: string;
|
|
1255
|
+
compose_hash: string;
|
|
1256
|
+
on_chain: boolean;
|
|
1257
|
+
instance_name?: string | null | undefined;
|
|
1258
|
+
}[];
|
|
1259
|
+
registered_unused: {
|
|
1260
|
+
compose_hash: string;
|
|
1261
|
+
state: "pending" | "unused";
|
|
1262
|
+
}[];
|
|
1263
|
+
}>>;
|
|
1264
|
+
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
1265
|
+
appId: string;
|
|
1266
|
+
}, parameters: {
|
|
1267
|
+
schema: T;
|
|
1268
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
1269
|
+
(client: BaseClient<ApiVersion>, params: {
|
|
1270
|
+
appId: string;
|
|
1271
|
+
}, parameters: {
|
|
1272
|
+
schema: false;
|
|
1273
|
+
}): Promise<SafeResult<unknown>>;
|
|
1274
|
+
};
|
|
234
1275
|
patchCvm: {
|
|
235
1276
|
(client: BaseClient<ApiVersion>, params: {
|
|
236
1277
|
id?: string | undefined;
|
|
@@ -284,7 +1325,7 @@ declare const additionalActions: {
|
|
|
284
1325
|
tproxy_enabled?: boolean | null | undefined;
|
|
285
1326
|
features?: string[] | null | undefined;
|
|
286
1327
|
} | undefined;
|
|
287
|
-
init_scripts?:
|
|
1328
|
+
init_scripts?: unknown[] | undefined;
|
|
288
1329
|
init_script?: string[] | undefined;
|
|
289
1330
|
confirm_data_wipe?: boolean | undefined;
|
|
290
1331
|
encrypted_env?: string | undefined;
|
|
@@ -305,9 +1346,6 @@ declare const additionalActions: {
|
|
|
305
1346
|
allow_force_stop?: boolean | undefined;
|
|
306
1347
|
prepareOnly?: boolean | undefined;
|
|
307
1348
|
}): Promise<{
|
|
308
|
-
requiresOnChainHash: false;
|
|
309
|
-
correlationId: string;
|
|
310
|
-
} | {
|
|
311
1349
|
requiresOnChainHash: true;
|
|
312
1350
|
composeHash: string;
|
|
313
1351
|
appId: string;
|
|
@@ -331,6 +1369,28 @@ declare const additionalActions: {
|
|
|
331
1369
|
device_id_allowed: boolean;
|
|
332
1370
|
is_allowed: boolean;
|
|
333
1371
|
} | undefined;
|
|
1372
|
+
} | {
|
|
1373
|
+
correlationId: string;
|
|
1374
|
+
status?: string | undefined;
|
|
1375
|
+
finalityWait?: {
|
|
1376
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
1377
|
+
correlation_id: string;
|
|
1378
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
1379
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
1380
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
1381
|
+
transaction: {
|
|
1382
|
+
hash: string;
|
|
1383
|
+
block_number: number;
|
|
1384
|
+
chain_id: number;
|
|
1385
|
+
} | null;
|
|
1386
|
+
finality: {
|
|
1387
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
1388
|
+
policy_block_number: number | null;
|
|
1389
|
+
blocks_remaining: number | null;
|
|
1390
|
+
eta_seconds: number | null;
|
|
1391
|
+
};
|
|
1392
|
+
} | undefined;
|
|
1393
|
+
requiresOnChainHash: false;
|
|
334
1394
|
}>;
|
|
335
1395
|
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
336
1396
|
id?: string | undefined;
|
|
@@ -384,7 +1444,7 @@ declare const additionalActions: {
|
|
|
384
1444
|
tproxy_enabled?: boolean | null | undefined;
|
|
385
1445
|
features?: string[] | null | undefined;
|
|
386
1446
|
} | undefined;
|
|
387
|
-
init_scripts?:
|
|
1447
|
+
init_scripts?: unknown[] | undefined;
|
|
388
1448
|
init_script?: string[] | undefined;
|
|
389
1449
|
confirm_data_wipe?: boolean | undefined;
|
|
390
1450
|
encrypted_env?: string | undefined;
|
|
@@ -459,7 +1519,7 @@ declare const additionalActions: {
|
|
|
459
1519
|
tproxy_enabled?: boolean | null | undefined;
|
|
460
1520
|
features?: string[] | null | undefined;
|
|
461
1521
|
} | undefined;
|
|
462
|
-
init_scripts?:
|
|
1522
|
+
init_scripts?: unknown[] | undefined;
|
|
463
1523
|
init_script?: string[] | undefined;
|
|
464
1524
|
confirm_data_wipe?: boolean | undefined;
|
|
465
1525
|
encrypted_env?: string | undefined;
|
|
@@ -536,7 +1596,7 @@ declare const additionalActions: {
|
|
|
536
1596
|
tproxy_enabled?: boolean | null | undefined;
|
|
537
1597
|
features?: string[] | null | undefined;
|
|
538
1598
|
} | undefined;
|
|
539
|
-
init_scripts?:
|
|
1599
|
+
init_scripts?: unknown[] | undefined;
|
|
540
1600
|
init_script?: string[] | undefined;
|
|
541
1601
|
confirm_data_wipe?: boolean | undefined;
|
|
542
1602
|
encrypted_env?: string | undefined;
|
|
@@ -557,9 +1617,6 @@ declare const additionalActions: {
|
|
|
557
1617
|
allow_force_stop?: boolean | undefined;
|
|
558
1618
|
prepareOnly?: boolean | undefined;
|
|
559
1619
|
}): Promise<SafeResult<{
|
|
560
|
-
requiresOnChainHash: false;
|
|
561
|
-
correlationId: string;
|
|
562
|
-
} | {
|
|
563
1620
|
requiresOnChainHash: true;
|
|
564
1621
|
composeHash: string;
|
|
565
1622
|
appId: string;
|
|
@@ -583,6 +1640,28 @@ declare const additionalActions: {
|
|
|
583
1640
|
device_id_allowed: boolean;
|
|
584
1641
|
is_allowed: boolean;
|
|
585
1642
|
} | undefined;
|
|
1643
|
+
} | {
|
|
1644
|
+
correlationId: string;
|
|
1645
|
+
status?: string | undefined;
|
|
1646
|
+
finalityWait?: {
|
|
1647
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
1648
|
+
correlation_id: string;
|
|
1649
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
1650
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
1651
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
1652
|
+
transaction: {
|
|
1653
|
+
hash: string;
|
|
1654
|
+
block_number: number;
|
|
1655
|
+
chain_id: number;
|
|
1656
|
+
} | null;
|
|
1657
|
+
finality: {
|
|
1658
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
1659
|
+
policy_block_number: number | null;
|
|
1660
|
+
blocks_remaining: number | null;
|
|
1661
|
+
eta_seconds: number | null;
|
|
1662
|
+
};
|
|
1663
|
+
} | undefined;
|
|
1664
|
+
requiresOnChainHash: false;
|
|
586
1665
|
}>>;
|
|
587
1666
|
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
588
1667
|
id?: string | undefined;
|
|
@@ -636,7 +1715,7 @@ declare const additionalActions: {
|
|
|
636
1715
|
tproxy_enabled?: boolean | null | undefined;
|
|
637
1716
|
features?: string[] | null | undefined;
|
|
638
1717
|
} | undefined;
|
|
639
|
-
init_scripts?:
|
|
1718
|
+
init_scripts?: unknown[] | undefined;
|
|
640
1719
|
init_script?: string[] | undefined;
|
|
641
1720
|
confirm_data_wipe?: boolean | undefined;
|
|
642
1721
|
encrypted_env?: string | undefined;
|
|
@@ -711,7 +1790,7 @@ declare const additionalActions: {
|
|
|
711
1790
|
tproxy_enabled?: boolean | null | undefined;
|
|
712
1791
|
features?: string[] | null | undefined;
|
|
713
1792
|
} | undefined;
|
|
714
|
-
init_scripts?:
|
|
1793
|
+
init_scripts?: unknown[] | undefined;
|
|
715
1794
|
init_script?: string[] | undefined;
|
|
716
1795
|
confirm_data_wipe?: boolean | undefined;
|
|
717
1796
|
encrypted_env?: string | undefined;
|
|
@@ -746,6 +1825,25 @@ declare const additionalActions: {
|
|
|
746
1825
|
transactionHash: string;
|
|
747
1826
|
}): Promise<{
|
|
748
1827
|
correlationId: string;
|
|
1828
|
+
status?: string | undefined;
|
|
1829
|
+
finalityWait?: {
|
|
1830
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
1831
|
+
correlation_id: string;
|
|
1832
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
1833
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
1834
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
1835
|
+
transaction: {
|
|
1836
|
+
hash: string;
|
|
1837
|
+
block_number: number;
|
|
1838
|
+
chain_id: number;
|
|
1839
|
+
} | null;
|
|
1840
|
+
finality: {
|
|
1841
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
1842
|
+
policy_block_number: number | null;
|
|
1843
|
+
blocks_remaining: number | null;
|
|
1844
|
+
eta_seconds: number | null;
|
|
1845
|
+
};
|
|
1846
|
+
} | undefined;
|
|
749
1847
|
}>;
|
|
750
1848
|
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
751
1849
|
id?: string | undefined;
|
|
@@ -781,6 +1879,25 @@ declare const additionalActions: {
|
|
|
781
1879
|
transactionHash: string;
|
|
782
1880
|
}): Promise<SafeResult<{
|
|
783
1881
|
correlationId: string;
|
|
1882
|
+
status?: string | undefined;
|
|
1883
|
+
finalityWait?: {
|
|
1884
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
1885
|
+
correlation_id: string;
|
|
1886
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
1887
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
1888
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
1889
|
+
transaction: {
|
|
1890
|
+
hash: string;
|
|
1891
|
+
block_number: number;
|
|
1892
|
+
chain_id: number;
|
|
1893
|
+
} | null;
|
|
1894
|
+
finality: {
|
|
1895
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
1896
|
+
policy_block_number: number | null;
|
|
1897
|
+
blocks_remaining: number | null;
|
|
1898
|
+
eta_seconds: number | null;
|
|
1899
|
+
};
|
|
1900
|
+
} | undefined;
|
|
784
1901
|
}>>;
|
|
785
1902
|
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
786
1903
|
id?: string | undefined;
|
|
@@ -817,6 +1934,24 @@ declare const additionalActions: {
|
|
|
817
1934
|
transactionHash: string;
|
|
818
1935
|
}): Promise<{
|
|
819
1936
|
correlationId: string;
|
|
1937
|
+
finalityWait?: {
|
|
1938
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
1939
|
+
correlation_id: string;
|
|
1940
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
1941
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
1942
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
1943
|
+
transaction: {
|
|
1944
|
+
hash: string;
|
|
1945
|
+
block_number: number;
|
|
1946
|
+
chain_id: number;
|
|
1947
|
+
} | null;
|
|
1948
|
+
finality: {
|
|
1949
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
1950
|
+
policy_block_number: number | null;
|
|
1951
|
+
blocks_remaining: number | null;
|
|
1952
|
+
eta_seconds: number | null;
|
|
1953
|
+
};
|
|
1954
|
+
} | undefined;
|
|
820
1955
|
status: string;
|
|
821
1956
|
}>;
|
|
822
1957
|
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
@@ -856,6 +1991,24 @@ declare const additionalActions: {
|
|
|
856
1991
|
transactionHash: string;
|
|
857
1992
|
}): Promise<SafeResult<{
|
|
858
1993
|
correlationId: string;
|
|
1994
|
+
finalityWait?: {
|
|
1995
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
1996
|
+
correlation_id: string;
|
|
1997
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
1998
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
1999
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
2000
|
+
transaction: {
|
|
2001
|
+
hash: string;
|
|
2002
|
+
block_number: number;
|
|
2003
|
+
chain_id: number;
|
|
2004
|
+
} | null;
|
|
2005
|
+
finality: {
|
|
2006
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
2007
|
+
policy_block_number: number | null;
|
|
2008
|
+
blocks_remaining: number | null;
|
|
2009
|
+
eta_seconds: number | null;
|
|
2010
|
+
};
|
|
2011
|
+
} | undefined;
|
|
859
2012
|
status: string;
|
|
860
2013
|
}>>;
|
|
861
2014
|
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
@@ -1088,7 +2241,7 @@ declare const additionalActions: {
|
|
|
1088
2241
|
getCvmInitScripts: {
|
|
1089
2242
|
(client: BaseClient<ApiVersion>, params: import("./types").CvmIdInput): Promise<{
|
|
1090
2243
|
items: {
|
|
1091
|
-
slug:
|
|
2244
|
+
slug: string;
|
|
1092
2245
|
selected: boolean;
|
|
1093
2246
|
selectable: boolean;
|
|
1094
2247
|
reason?: string | null | undefined;
|
|
@@ -1105,7 +2258,7 @@ declare const additionalActions: {
|
|
|
1105
2258
|
safeGetCvmInitScripts: {
|
|
1106
2259
|
(client: BaseClient<ApiVersion>, params: import("./types").CvmIdInput): Promise<SafeResult<{
|
|
1107
2260
|
items: {
|
|
1108
|
-
slug:
|
|
2261
|
+
slug: string;
|
|
1109
2262
|
selected: boolean;
|
|
1110
2263
|
selectable: boolean;
|
|
1111
2264
|
reason?: string | null | undefined;
|
|
@@ -1129,9 +2282,6 @@ declare const additionalActions: {
|
|
|
1129
2282
|
scripts: string[];
|
|
1130
2283
|
prepareOnly?: boolean | undefined;
|
|
1131
2284
|
}): Promise<{
|
|
1132
|
-
requiresOnChainHash: false;
|
|
1133
|
-
correlationId: string;
|
|
1134
|
-
} | {
|
|
1135
2285
|
requiresOnChainHash: true;
|
|
1136
2286
|
composeHash: string;
|
|
1137
2287
|
appId: string;
|
|
@@ -1155,6 +2305,28 @@ declare const additionalActions: {
|
|
|
1155
2305
|
device_id_allowed: boolean;
|
|
1156
2306
|
is_allowed: boolean;
|
|
1157
2307
|
} | undefined;
|
|
2308
|
+
} | {
|
|
2309
|
+
correlationId: string;
|
|
2310
|
+
status?: string | undefined;
|
|
2311
|
+
finalityWait?: {
|
|
2312
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
2313
|
+
correlation_id: string;
|
|
2314
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
2315
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
2316
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
2317
|
+
transaction: {
|
|
2318
|
+
hash: string;
|
|
2319
|
+
block_number: number;
|
|
2320
|
+
chain_id: number;
|
|
2321
|
+
} | null;
|
|
2322
|
+
finality: {
|
|
2323
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
2324
|
+
policy_block_number: number | null;
|
|
2325
|
+
blocks_remaining: number | null;
|
|
2326
|
+
eta_seconds: number | null;
|
|
2327
|
+
};
|
|
2328
|
+
} | undefined;
|
|
2329
|
+
requiresOnChainHash: false;
|
|
1158
2330
|
}>;
|
|
1159
2331
|
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
1160
2332
|
id?: string | undefined;
|
|
@@ -1189,9 +2361,6 @@ declare const additionalActions: {
|
|
|
1189
2361
|
scripts: string[];
|
|
1190
2362
|
prepareOnly?: boolean | undefined;
|
|
1191
2363
|
}): Promise<SafeResult<{
|
|
1192
|
-
requiresOnChainHash: false;
|
|
1193
|
-
correlationId: string;
|
|
1194
|
-
} | {
|
|
1195
2364
|
requiresOnChainHash: true;
|
|
1196
2365
|
composeHash: string;
|
|
1197
2366
|
appId: string;
|
|
@@ -1215,6 +2384,28 @@ declare const additionalActions: {
|
|
|
1215
2384
|
device_id_allowed: boolean;
|
|
1216
2385
|
is_allowed: boolean;
|
|
1217
2386
|
} | undefined;
|
|
2387
|
+
} | {
|
|
2388
|
+
correlationId: string;
|
|
2389
|
+
status?: string | undefined;
|
|
2390
|
+
finalityWait?: {
|
|
2391
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
2392
|
+
correlation_id: string;
|
|
2393
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
2394
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
2395
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
2396
|
+
transaction: {
|
|
2397
|
+
hash: string;
|
|
2398
|
+
block_number: number;
|
|
2399
|
+
chain_id: number;
|
|
2400
|
+
} | null;
|
|
2401
|
+
finality: {
|
|
2402
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
2403
|
+
policy_block_number: number | null;
|
|
2404
|
+
blocks_remaining: number | null;
|
|
2405
|
+
eta_seconds: number | null;
|
|
2406
|
+
};
|
|
2407
|
+
} | undefined;
|
|
2408
|
+
requiresOnChainHash: false;
|
|
1218
2409
|
}>>;
|
|
1219
2410
|
<T extends z.ZodTypeAny>(client: BaseClient<ApiVersion>, params: {
|
|
1220
2411
|
id?: string | undefined;
|
|
@@ -1565,6 +2756,25 @@ declare const additionalActions: {
|
|
|
1565
2756
|
}): Promise<{
|
|
1566
2757
|
name: string;
|
|
1567
2758
|
status: string;
|
|
2759
|
+
correlation_id?: string | null | undefined;
|
|
2760
|
+
finality_wait?: {
|
|
2761
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
2762
|
+
correlation_id: string;
|
|
2763
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
2764
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
2765
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
2766
|
+
transaction: {
|
|
2767
|
+
hash: string;
|
|
2768
|
+
block_number: number;
|
|
2769
|
+
chain_id: number;
|
|
2770
|
+
} | null;
|
|
2771
|
+
finality: {
|
|
2772
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
2773
|
+
policy_block_number: number | null;
|
|
2774
|
+
blocks_remaining: number | null;
|
|
2775
|
+
eta_seconds: number | null;
|
|
2776
|
+
};
|
|
2777
|
+
} | null | undefined;
|
|
1568
2778
|
teepod_id: number;
|
|
1569
2779
|
teepod?: {
|
|
1570
2780
|
id: number;
|
|
@@ -1630,6 +2840,25 @@ declare const additionalActions: {
|
|
|
1630
2840
|
}): Promise<SafeResult<{
|
|
1631
2841
|
name: string;
|
|
1632
2842
|
status: string;
|
|
2843
|
+
correlation_id?: string | null | undefined;
|
|
2844
|
+
finality_wait?: {
|
|
2845
|
+
operation: "create" | "update" | (string & Record<never, never>);
|
|
2846
|
+
correlation_id: string;
|
|
2847
|
+
phase: "applying" | "awaiting_finality" | (string & Record<never, never>);
|
|
2848
|
+
stage: "finalized" | "safe" | "submitted" | (string & Record<never, never>);
|
|
2849
|
+
stages?: ("applying" | "finalized" | "safe" | "submitted" | (string & Record<never, never>))[] | undefined;
|
|
2850
|
+
transaction: {
|
|
2851
|
+
hash: string;
|
|
2852
|
+
block_number: number;
|
|
2853
|
+
chain_id: number;
|
|
2854
|
+
} | null;
|
|
2855
|
+
finality: {
|
|
2856
|
+
block_tag: "finalized" | "latest" | "safe" | (string & Record<never, never>) | null;
|
|
2857
|
+
policy_block_number: number | null;
|
|
2858
|
+
blocks_remaining: number | null;
|
|
2859
|
+
eta_seconds: number | null;
|
|
2860
|
+
};
|
|
2861
|
+
} | null | undefined;
|
|
1633
2862
|
teepod_id: number;
|
|
1634
2863
|
teepod?: {
|
|
1635
2864
|
id: number;
|
|
@@ -1897,6 +3126,8 @@ declare const additionalActions: {
|
|
|
1897
3126
|
declare const onChainActions: {
|
|
1898
3127
|
addComposeHash: typeof actions.addComposeHash;
|
|
1899
3128
|
safeAddComposeHash: typeof actions.safeAddComposeHash;
|
|
3129
|
+
removeComposeHash: typeof actions.removeComposeHash;
|
|
3130
|
+
safeRemoveComposeHash: typeof actions.safeRemoveComposeHash;
|
|
1900
3131
|
deployAppAuth: typeof actions.deployAppAuth;
|
|
1901
3132
|
safeDeployAppAuth: typeof actions.safeDeployAppAuth;
|
|
1902
3133
|
addDevice: typeof actions.addDevice;
|
|
@@ -1919,8 +3150,8 @@ declare const onChainActions: {
|
|
|
1919
3150
|
};
|
|
1920
3151
|
type OnChainActions = typeof onChainActions;
|
|
1921
3152
|
type VersionedAppAction = "getAppList" | "safeGetAppList" | "getAppInfo" | "safeGetAppInfo" | "getAppCvms" | "safeGetAppCvms" | "replicateCvm" | "safeReplicateCvm";
|
|
1922
|
-
type SimpleAdditionalAction = "revokeCurrentApiToken" | "safeRevokeCurrentApiToken";
|
|
1923
|
-
type SchemaAction = "getWorkspaceNodes" | "safeGetWorkspaceNodes" | "getWorkspaceQuotas" | "safeGetWorkspaceQuotas" | "patchCvm" | "safePatchCvm" | "confirmCvmPatch" | "safeConfirmCvmPatch" | "commitCvmUpdate" | "safeCommitCvmUpdate" | "getCvmStatusBatch" | "safeGetCvmStatusBatch" | "getCvmUserConfig" | "safeGetCvmUserConfig" | "getCvmAnnotations" | "safeGetCvmAnnotations" | "updateCvmAnnotations" | "safeUpdateCvmAnnotations" | "getCvmInitScripts" | "safeGetCvmInitScripts" | "putCvmInitScripts" | "safePutCvmInitScripts" | "setAppLaunchToken" | "safeSetAppLaunchToken" | "clearAppLaunchToken" | "safeClearAppLaunchToken" | "getCvmSshKeys" | "safeGetCvmSshKeys" | "updateCvmSshKeys" | "safeUpdateCvmSshKeys" | "checkAppIsAllowed" | "safeCheckAppIsAllowed" | "createAppInstance" | "safeCreateAppInstance" | "getAppAttestation" | "safeGetAppAttestation";
|
|
3153
|
+
type SimpleAdditionalAction = "revokeCurrentApiToken" | "safeRevokeCurrentApiToken" | "listCvmDrafts" | "safeListCvmDrafts";
|
|
3154
|
+
type SchemaAction = "getCvmDraft" | "safeGetCvmDraft" | "stageCvmDraft" | "safeStageCvmDraft" | "undoCvmDraftEntry" | "safeUndoCvmDraftEntry" | "discardCvmDraft" | "safeDiscardCvmDraft" | "applyCvmDraft" | "safeApplyCvmDraft" | "getAppPendingUpdates" | "safeGetAppPendingUpdates" | "getWorkspaceNodes" | "safeGetWorkspaceNodes" | "getWorkspaceQuotas" | "safeGetWorkspaceQuotas" | "patchCvm" | "safePatchCvm" | "confirmCvmPatch" | "safeConfirmCvmPatch" | "commitCvmUpdate" | "safeCommitCvmUpdate" | "getCvmStatusBatch" | "safeGetCvmStatusBatch" | "getCvmUserConfig" | "safeGetCvmUserConfig" | "getCvmAnnotations" | "safeGetCvmAnnotations" | "updateCvmAnnotations" | "safeUpdateCvmAnnotations" | "getCvmInitScripts" | "safeGetCvmInitScripts" | "putCvmInitScripts" | "safePutCvmInitScripts" | "setAppLaunchToken" | "safeSetAppLaunchToken" | "clearAppLaunchToken" | "safeClearAppLaunchToken" | "getCvmSshKeys" | "safeGetCvmSshKeys" | "updateCvmSshKeys" | "safeUpdateCvmSshKeys" | "checkAppIsAllowed" | "safeCheckAppIsAllowed" | "createAppInstance" | "safeCreateAppInstance" | "getAppAttestation" | "safeGetAppAttestation";
|
|
1924
3155
|
type SchemaBoundAction<F, Safe extends boolean> = F extends {
|
|
1925
3156
|
(client: never, ...args: infer P): infer R;
|
|
1926
3157
|
(client: never, ...args: never[]): unknown;
|
|
@@ -2008,6 +3239,20 @@ export interface Client<V extends ApiVersion = DefaultApiVersion> extends BaseCl
|
|
|
2008
3239
|
safeRevokeCurrentApiToken(parameters: {
|
|
2009
3240
|
schema: false;
|
|
2010
3241
|
}): Promise<SafeResult<unknown>>;
|
|
3242
|
+
listCvmDrafts(): Promise<actions.CvmDraftList>;
|
|
3243
|
+
listCvmDrafts<T extends z.ZodTypeAny>(parameters: {
|
|
3244
|
+
schema: T;
|
|
3245
|
+
}): Promise<z.infer<T>>;
|
|
3246
|
+
listCvmDrafts(parameters: {
|
|
3247
|
+
schema: false;
|
|
3248
|
+
}): Promise<unknown>;
|
|
3249
|
+
safeListCvmDrafts(): Promise<SafeResult<actions.CvmDraftList>>;
|
|
3250
|
+
safeListCvmDrafts<T extends z.ZodTypeAny>(parameters: {
|
|
3251
|
+
schema: T;
|
|
3252
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
3253
|
+
safeListCvmDrafts(parameters: {
|
|
3254
|
+
schema: false;
|
|
3255
|
+
}): Promise<SafeResult<unknown>>;
|
|
2011
3256
|
getAppList(request?: actions.GetAppListRequest): Promise<import("./types/version-mappings").GetAppListResponse<V>>;
|
|
2012
3257
|
safeGetAppList(request?: actions.GetAppListRequest): Promise<SafeResult<import("./types/version-mappings").GetAppListResponse<V>>>;
|
|
2013
3258
|
getAppInfo(request: actions.GetAppInfoRequest): Promise<import("./types/version-mappings").GetAppInfoResponse<V>>;
|