@phala/cloud 0.2.10 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +100 -161
  2. package/dist/actions/apps/check_app_is_allowed.d.ts +14 -14
  3. package/dist/actions/apps/create_app_instance.d.ts +22 -22
  4. package/dist/actions/apps/get_app_attestation.d.ts +43 -33
  5. package/dist/actions/apps/get_app_device_allowlist.d.ts +51 -50
  6. package/dist/actions/apps/get_app_list.d.ts +2 -2
  7. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +40 -102
  8. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
  9. package/dist/actions/cvms/commit_cvm_provision.d.ts +11 -135
  10. package/dist/actions/cvms/commit_cvm_update.d.ts +2 -2
  11. package/dist/actions/cvms/confirm_cvm_patch.d.ts +2 -2
  12. package/dist/actions/cvms/delete_cvm.d.ts +2 -2
  13. package/dist/actions/cvms/get_available_os_images.d.ts +2 -2
  14. package/dist/actions/cvms/get_cvm_attestation.d.ts +2 -2
  15. package/dist/actions/cvms/get_cvm_compose_file.d.ts +166 -22
  16. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +10 -10
  17. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
  18. package/dist/actions/cvms/get_cvm_info.d.ts +2 -2
  19. package/dist/actions/cvms/get_cvm_list.d.ts +8 -10
  20. package/dist/actions/cvms/get_cvm_network.d.ts +2 -2
  21. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +2 -2
  22. package/dist/actions/cvms/get_cvm_state.d.ts +6 -6
  23. package/dist/actions/cvms/get_cvm_stats.d.ts +2 -2
  24. package/dist/actions/cvms/get_cvm_status_batch.d.ts +253 -30
  25. package/dist/actions/cvms/get_cvm_user_config.d.ts +2 -2
  26. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +2 -2
  27. package/dist/actions/cvms/patch_cvm.d.ts +34 -18
  28. package/dist/actions/cvms/provision_cvm.d.ts +900 -51
  29. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +253 -43
  30. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +27 -58
  31. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +120 -165
  32. package/dist/actions/cvms/replicate_cvm.d.ts +7 -72
  33. package/dist/actions/cvms/restart_cvm.d.ts +7 -72
  34. package/dist/actions/cvms/shutdown_cvm.d.ts +9 -72
  35. package/dist/actions/cvms/start_cvm.d.ts +7 -72
  36. package/dist/actions/cvms/stop_cvm.d.ts +7 -72
  37. package/dist/actions/cvms/update_cvm_envs.d.ts +36 -20
  38. package/dist/actions/cvms/update_cvm_resources.d.ts +26 -4
  39. package/dist/actions/cvms/update_cvm_visibility.d.ts +26 -24
  40. package/dist/actions/cvms/update_docker_compose.d.ts +51 -20
  41. package/dist/actions/cvms/update_os_image.d.ts +2 -2
  42. package/dist/actions/cvms/update_prelaunch_script.d.ts +51 -20
  43. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +36 -20
  44. package/dist/actions/get_available_nodes.d.ts +259 -0
  45. package/dist/actions/get_cvm_create_resources.d.ts +351 -0
  46. package/dist/actions/index.d.ts +6 -2
  47. package/dist/actions/kms/get_kms_contract.d.ts +59 -0
  48. package/dist/actions/kms/get_kms_list.d.ts +25 -10
  49. package/dist/actions/kms/get_kms_onchain_detail.d.ts +54 -0
  50. package/dist/actions/kms/list_kms_contract_nodes.d.ts +98 -0
  51. package/dist/actions/kms/list_kms_contracts.d.ts +152 -0
  52. package/dist/actions/kms/next_app_ids.d.ts +6 -6
  53. package/dist/actions/list-instance-types.d.ts +12 -12
  54. package/dist/actions/ssh_keys/create_ssh_key.d.ts +2 -2
  55. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +4 -4
  56. package/dist/actions/workspaces/get_workspace.d.ts +4 -0
  57. package/dist/actions/workspaces/get_workspace_nodes.d.ts +175 -14
  58. package/dist/actions/workspaces/list_workspaces.d.ts +126 -0
  59. package/dist/client.d.ts +4 -1
  60. package/dist/create-client.d.ts +48 -0
  61. package/dist/index.d.ts +1 -1
  62. package/dist/index.js +1779 -1250
  63. package/dist/index.mjs +1704 -1194
  64. package/dist/types/app_compose.d.ts +50 -5
  65. package/dist/types/app_info_v20251028.d.ts +172 -128
  66. package/dist/types/app_info_v20260121.d.ts +2814 -490
  67. package/dist/types/app_revision.d.ts +8 -8
  68. package/dist/types/client.d.ts +2 -2
  69. package/dist/types/cvm_id.d.ts +6 -6
  70. package/dist/types/cvm_info.d.ts +98 -98
  71. package/dist/types/cvm_info_v20251028.d.ts +70 -47
  72. package/dist/types/cvm_info_v20260121.d.ts +1125 -148
  73. package/dist/types/kms_contract.d.ts +64 -0
  74. package/dist/types/kms_info.d.ts +8 -0
  75. package/dist/types/version-mappings.d.ts +43 -6
  76. package/dist/utils/error_codes.d.ts +1 -0
  77. package/dist/utils/errors.d.ts +30 -1
  78. package/dist/utils/get_compose_hash.d.ts +24 -0
  79. package/dist/utils/get_mr_config_id.d.ts +55 -0
  80. package/dist/utils/index.d.ts +3 -2
  81. package/package.json +3 -3
@@ -1,4 +1,7 @@
1
1
  import { z } from "zod";
2
+ import { type Client, type SafeResult } from "../../client";
3
+ import type { ApiVersion } from "../../types/client";
4
+ import { type VMForVersion } from "../../types/cvm_info";
2
5
  /**
3
6
  * Restart a CVM (Confidential Virtual Machine)
4
7
  *
@@ -41,86 +44,18 @@ export declare const RestartCvmRequestSchema: z.ZodEffects<z.ZodObject<{
41
44
  }, "strip", z.ZodTypeAny, {
42
45
  name?: string | undefined;
43
46
  id?: string | undefined;
47
+ uuid?: string | undefined;
44
48
  app_id?: string | undefined;
45
49
  instance_id?: string | undefined;
46
- uuid?: string | undefined;
47
50
  force?: boolean | undefined;
48
51
  }, {
49
52
  name?: string | undefined;
50
53
  id?: string | undefined;
54
+ uuid?: string | undefined;
51
55
  app_id?: string | undefined;
52
56
  instance_id?: string | undefined;
53
- uuid?: string | undefined;
54
57
  force?: boolean | undefined;
55
58
  }>, any, any>;
56
59
  export type RestartCvmRequest = z.infer<typeof RestartCvmRequestSchema>;
57
- declare const restartCvm: {
58
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
59
- status: string;
60
- name: string;
61
- id: string;
62
- app_id: string;
63
- instance_id: string | null;
64
- vcpu: number;
65
- memory: number;
66
- disk_size: number;
67
- teepod_id: number;
68
- vm_uuid: string | null;
69
- encrypted_env_pubkey: string | null;
70
- created_at: string;
71
- version?: string | null | undefined;
72
- app_url?: string | null | undefined;
73
- teepod?: {
74
- name: string;
75
- id: number;
76
- region_identifier?: string | null | undefined;
77
- } | null | undefined;
78
- base_image?: string | null | undefined;
79
- user_id?: string | null | undefined;
80
- docker_compose_file?: string | null | undefined;
81
- features?: string[] | null | undefined;
82
- manifest_version?: number | null | undefined;
83
- runner?: string | null | undefined;
84
- }>;
85
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
86
- schema: T;
87
- } | undefined): Promise<z.TypeOf<T>>;
88
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
89
- schema: false;
90
- } | undefined): Promise<unknown>;
91
- }, safeRestartCvm: {
92
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
93
- status: string;
94
- name: string;
95
- id: string;
96
- app_id: string;
97
- instance_id: string | null;
98
- vcpu: number;
99
- memory: number;
100
- disk_size: number;
101
- teepod_id: number;
102
- vm_uuid: string | null;
103
- encrypted_env_pubkey: string | null;
104
- created_at: string;
105
- version?: string | null | undefined;
106
- app_url?: string | null | undefined;
107
- teepod?: {
108
- name: string;
109
- id: number;
110
- region_identifier?: string | null | undefined;
111
- } | null | undefined;
112
- base_image?: string | null | undefined;
113
- user_id?: string | null | undefined;
114
- docker_compose_file?: string | null | undefined;
115
- features?: string[] | null | undefined;
116
- manifest_version?: number | null | undefined;
117
- runner?: string | null | undefined;
118
- }>>;
119
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
120
- schema: T;
121
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
122
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
123
- schema: false;
124
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
125
- };
126
- export { restartCvm, safeRestartCvm };
60
+ export declare function restartCvm<V extends ApiVersion>(client: Client<V>, request: RestartCvmRequest): Promise<VMForVersion<V>>;
61
+ export declare function safeRestartCvm<V extends ApiVersion>(client: Client<V>, request: RestartCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -1,4 +1,7 @@
1
+ import { type Client, type SafeResult } from "../../client";
2
+ import type { ApiVersion } from "../../types/client";
1
3
  import { type CvmIdInput } from "../../types/cvm_id";
4
+ import { type VMForVersion } from "../../types/cvm_info";
2
5
  /**
3
6
  * Shutdown a CVM (Confidential Virtual Machine) gracefully
4
7
  *
@@ -10,6 +13,7 @@ import { type CvmIdInput } from "../../types/cvm_id";
10
13
  * import { createClient, shutdownCvm } from '@phala/cloud'
11
14
  *
12
15
  * const client = createClient();
16
+ * const result = await shutdownCvm(client, { id: 'my-cvm-id' });
13
17
  * console.log(result.status); // "shutting_down"
14
18
  * ```
15
19
  *
@@ -18,6 +22,7 @@ import { type CvmIdInput } from "../../types/cvm_id";
18
22
  * Use `safeShutdownCvm` for error handling without exceptions:
19
23
  *
20
24
  * ```typescript
25
+ * const result = await safeShutdownCvm(client, { id: 'my-cvm-id' });
21
26
  * if (result.success) {
22
27
  * console.log('CVM shutting down:', result.data.status);
23
28
  * } else {
@@ -34,86 +39,18 @@ export declare const ShutdownCvmRequestSchema: import("zod").ZodEffects<import("
34
39
  }, "strip", import("zod").ZodTypeAny, {
35
40
  name?: string | undefined;
36
41
  id?: string | undefined;
42
+ uuid?: string | undefined;
37
43
  app_id?: string | undefined;
38
44
  instance_id?: string | undefined;
39
- uuid?: string | undefined;
40
45
  }, {
41
46
  name?: string | undefined;
42
47
  id?: string | undefined;
48
+ uuid?: string | undefined;
43
49
  app_id?: string | undefined;
44
50
  instance_id?: string | undefined;
45
- uuid?: string | undefined;
46
51
  }>, any, any>, {
47
52
  cvmId: any;
48
53
  }, any>;
49
54
  export type ShutdownCvmRequest = CvmIdInput;
50
- declare const shutdownCvm: {
51
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
52
- status: string;
53
- name: string;
54
- id: string;
55
- app_id: string;
56
- instance_id: string | null;
57
- vcpu: number;
58
- memory: number;
59
- disk_size: number;
60
- teepod_id: number;
61
- vm_uuid: string | null;
62
- encrypted_env_pubkey: string | null;
63
- created_at: string;
64
- version?: string | null | undefined;
65
- app_url?: string | null | undefined;
66
- teepod?: {
67
- name: string;
68
- id: number;
69
- region_identifier?: string | null | undefined;
70
- } | null | undefined;
71
- base_image?: string | null | undefined;
72
- user_id?: string | null | undefined;
73
- docker_compose_file?: string | null | undefined;
74
- features?: string[] | null | undefined;
75
- manifest_version?: number | null | undefined;
76
- runner?: string | null | undefined;
77
- }>;
78
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
79
- schema: T;
80
- }): Promise<import("zod").TypeOf<T>>;
81
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
82
- schema: false;
83
- }): Promise<unknown>;
84
- }, safeShutdownCvm: {
85
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
86
- status: string;
87
- name: string;
88
- id: string;
89
- app_id: string;
90
- instance_id: string | null;
91
- vcpu: number;
92
- memory: number;
93
- disk_size: number;
94
- teepod_id: number;
95
- vm_uuid: string | null;
96
- encrypted_env_pubkey: string | null;
97
- created_at: string;
98
- version?: string | null | undefined;
99
- app_url?: string | null | undefined;
100
- teepod?: {
101
- name: string;
102
- id: number;
103
- region_identifier?: string | null | undefined;
104
- } | null | undefined;
105
- base_image?: string | null | undefined;
106
- user_id?: string | null | undefined;
107
- docker_compose_file?: string | null | undefined;
108
- features?: string[] | null | undefined;
109
- manifest_version?: number | null | undefined;
110
- runner?: string | null | undefined;
111
- }>>;
112
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
113
- schema: T;
114
- }): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
115
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
116
- schema: false;
117
- }): Promise<import("../..").SafeResult<unknown>>;
118
- };
119
- export { shutdownCvm, safeShutdownCvm };
55
+ export declare function shutdownCvm<V extends ApiVersion>(client: Client<V>, request: ShutdownCvmRequest): Promise<VMForVersion<V>>;
56
+ export declare function safeShutdownCvm<V extends ApiVersion>(client: Client<V>, request: ShutdownCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -1,4 +1,7 @@
1
+ import { type Client, type SafeResult } from "../../client";
2
+ import type { ApiVersion } from "../../types/client";
1
3
  import { type CvmIdInput } from "../../types/cvm_id";
4
+ import { type VMForVersion } from "../../types/cvm_info";
2
5
  /**
3
6
  * Start a CVM (Confidential Virtual Machine)
4
7
  *
@@ -35,86 +38,18 @@ export declare const StartCvmRequestSchema: import("zod").ZodEffects<import("zod
35
38
  }, "strip", import("zod").ZodTypeAny, {
36
39
  name?: string | undefined;
37
40
  id?: string | undefined;
41
+ uuid?: string | undefined;
38
42
  app_id?: string | undefined;
39
43
  instance_id?: string | undefined;
40
- uuid?: string | undefined;
41
44
  }, {
42
45
  name?: string | undefined;
43
46
  id?: string | undefined;
47
+ uuid?: string | undefined;
44
48
  app_id?: string | undefined;
45
49
  instance_id?: string | undefined;
46
- uuid?: string | undefined;
47
50
  }>, any, any>, {
48
51
  cvmId: any;
49
52
  }, any>;
50
53
  export type StartCvmRequest = CvmIdInput;
51
- declare const startCvm: {
52
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
53
- status: string;
54
- name: string;
55
- id: string;
56
- app_id: string;
57
- instance_id: string | null;
58
- vcpu: number;
59
- memory: number;
60
- disk_size: number;
61
- teepod_id: number;
62
- vm_uuid: string | null;
63
- encrypted_env_pubkey: string | null;
64
- created_at: string;
65
- version?: string | null | undefined;
66
- app_url?: string | null | undefined;
67
- teepod?: {
68
- name: string;
69
- id: number;
70
- region_identifier?: string | null | undefined;
71
- } | null | undefined;
72
- base_image?: string | null | undefined;
73
- user_id?: string | null | undefined;
74
- docker_compose_file?: string | null | undefined;
75
- features?: string[] | null | undefined;
76
- manifest_version?: number | null | undefined;
77
- runner?: string | null | undefined;
78
- }>;
79
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
80
- schema: T;
81
- }): Promise<import("zod").TypeOf<T>>;
82
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
83
- schema: false;
84
- }): Promise<unknown>;
85
- }, safeStartCvm: {
86
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
87
- status: string;
88
- name: string;
89
- id: string;
90
- app_id: string;
91
- instance_id: string | null;
92
- vcpu: number;
93
- memory: number;
94
- disk_size: number;
95
- teepod_id: number;
96
- vm_uuid: string | null;
97
- encrypted_env_pubkey: string | null;
98
- created_at: string;
99
- version?: string | null | undefined;
100
- app_url?: string | null | undefined;
101
- teepod?: {
102
- name: string;
103
- id: number;
104
- region_identifier?: string | null | undefined;
105
- } | null | undefined;
106
- base_image?: string | null | undefined;
107
- user_id?: string | null | undefined;
108
- docker_compose_file?: string | null | undefined;
109
- features?: string[] | null | undefined;
110
- manifest_version?: number | null | undefined;
111
- runner?: string | null | undefined;
112
- }>>;
113
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
114
- schema: T;
115
- }): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
116
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
117
- schema: false;
118
- }): Promise<import("../..").SafeResult<unknown>>;
119
- };
120
- export { startCvm, safeStartCvm };
54
+ export declare function startCvm<V extends ApiVersion>(client: Client<V>, request: StartCvmRequest): Promise<VMForVersion<V>>;
55
+ export declare function safeStartCvm<V extends ApiVersion>(client: Client<V>, request: StartCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -1,4 +1,7 @@
1
+ import { type Client, type SafeResult } from "../../client";
2
+ import type { ApiVersion } from "../../types/client";
1
3
  import { type CvmIdInput } from "../../types/cvm_id";
4
+ import { type VMForVersion } from "../../types/cvm_info";
2
5
  /**
3
6
  * Force stop a CVM (Confidential Virtual Machine)
4
7
  *
@@ -36,86 +39,18 @@ export declare const StopCvmRequestSchema: import("zod").ZodEffects<import("zod"
36
39
  }, "strip", import("zod").ZodTypeAny, {
37
40
  name?: string | undefined;
38
41
  id?: string | undefined;
42
+ uuid?: string | undefined;
39
43
  app_id?: string | undefined;
40
44
  instance_id?: string | undefined;
41
- uuid?: string | undefined;
42
45
  }, {
43
46
  name?: string | undefined;
44
47
  id?: string | undefined;
48
+ uuid?: string | undefined;
45
49
  app_id?: string | undefined;
46
50
  instance_id?: string | undefined;
47
- uuid?: string | undefined;
48
51
  }>, any, any>, {
49
52
  cvmId: any;
50
53
  }, any>;
51
54
  export type StopCvmRequest = CvmIdInput;
52
- declare const stopCvm: {
53
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
54
- status: string;
55
- name: string;
56
- id: string;
57
- app_id: string;
58
- instance_id: string | null;
59
- vcpu: number;
60
- memory: number;
61
- disk_size: number;
62
- teepod_id: number;
63
- vm_uuid: string | null;
64
- encrypted_env_pubkey: string | null;
65
- created_at: string;
66
- version?: string | null | undefined;
67
- app_url?: string | null | undefined;
68
- teepod?: {
69
- name: string;
70
- id: number;
71
- region_identifier?: string | null | undefined;
72
- } | null | undefined;
73
- base_image?: string | null | undefined;
74
- user_id?: string | null | undefined;
75
- docker_compose_file?: string | null | undefined;
76
- features?: string[] | null | undefined;
77
- manifest_version?: number | null | undefined;
78
- runner?: string | null | undefined;
79
- }>;
80
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
81
- schema: T;
82
- }): Promise<import("zod").TypeOf<T>>;
83
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
84
- schema: false;
85
- }): Promise<unknown>;
86
- }, safeStopCvm: {
87
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
88
- status: string;
89
- name: string;
90
- id: string;
91
- app_id: string;
92
- instance_id: string | null;
93
- vcpu: number;
94
- memory: number;
95
- disk_size: number;
96
- teepod_id: number;
97
- vm_uuid: string | null;
98
- encrypted_env_pubkey: string | null;
99
- created_at: string;
100
- version?: string | null | undefined;
101
- app_url?: string | null | undefined;
102
- teepod?: {
103
- name: string;
104
- id: number;
105
- region_identifier?: string | null | undefined;
106
- } | null | undefined;
107
- base_image?: string | null | undefined;
108
- user_id?: string | null | undefined;
109
- docker_compose_file?: string | null | undefined;
110
- features?: string[] | null | undefined;
111
- manifest_version?: number | null | undefined;
112
- runner?: string | null | undefined;
113
- }>>;
114
- <T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
115
- schema: T;
116
- }): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
117
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
118
- schema: false;
119
- }): Promise<import("../..").SafeResult<unknown>>;
120
- };
121
- export { stopCvm, safeStopCvm };
55
+ export declare function stopCvm<V extends ApiVersion>(client: Client<V>, request: StopCvmRequest): Promise<VMForVersion<V>>;
56
+ export declare function safeStopCvm<V extends ApiVersion>(client: Client<V>, request: StopCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -129,20 +129,20 @@ export declare const UpdateCvmEnvsRequestSchema: z.ZodEffects<z.ZodEffects<z.Zod
129
129
  encrypted_env: string;
130
130
  name?: string | undefined;
131
131
  id?: string | undefined;
132
+ uuid?: string | undefined;
132
133
  app_id?: string | undefined;
133
134
  instance_id?: string | undefined;
134
135
  compose_hash?: string | undefined;
135
- uuid?: string | undefined;
136
136
  env_keys?: string[] | undefined;
137
137
  transaction_hash?: string | undefined;
138
138
  }, {
139
139
  encrypted_env: string;
140
140
  name?: string | undefined;
141
141
  id?: string | undefined;
142
+ uuid?: string | undefined;
142
143
  app_id?: string | undefined;
143
144
  instance_id?: string | undefined;
144
145
  compose_hash?: string | undefined;
145
- uuid?: string | undefined;
146
146
  env_keys?: string[] | undefined;
147
147
  transaction_hash?: string | undefined;
148
148
  }>, any, any>, {
@@ -185,6 +185,7 @@ declare const UpdateCvmEnvsPreconditionRequiredSchema: z.ZodObject<{
185
185
  chain_id: z.ZodNullable<z.ZodNumber>;
186
186
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
187
187
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
188
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
189
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
189
190
  id: z.ZodString;
190
191
  slug: z.ZodNullable<z.ZodString>;
@@ -193,6 +194,7 @@ declare const UpdateCvmEnvsPreconditionRequiredSchema: z.ZodObject<{
193
194
  chain_id: z.ZodNullable<z.ZodNumber>;
194
195
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
195
196
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
197
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
198
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
197
199
  id: z.ZodString;
198
200
  slug: z.ZodNullable<z.ZodString>;
@@ -201,6 +203,7 @@ declare const UpdateCvmEnvsPreconditionRequiredSchema: z.ZodObject<{
201
203
  chain_id: z.ZodNullable<z.ZodNumber>;
202
204
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
203
205
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
206
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
204
207
  }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
205
208
  id: z.ZodString;
206
209
  slug: z.ZodNullable<z.ZodString>;
@@ -209,6 +212,7 @@ declare const UpdateCvmEnvsPreconditionRequiredSchema: z.ZodObject<{
209
212
  chain_id: z.ZodNullable<z.ZodNumber>;
210
213
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
211
214
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
215
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
216
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
213
217
  id: z.ZodString;
214
218
  slug: z.ZodNullable<z.ZodString>;
@@ -217,41 +221,44 @@ declare const UpdateCvmEnvsPreconditionRequiredSchema: z.ZodObject<{
217
221
  chain_id: z.ZodNullable<z.ZodNumber>;
218
222
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
219
223
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
224
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
225
  }, z.ZodTypeAny, "passthrough">>;
221
226
  }, "strip", z.ZodTypeAny, {
222
227
  status: "precondition_required";
223
228
  message: string;
224
229
  app_id: string;
230
+ compose_hash: string;
231
+ device_id: string;
225
232
  kms_info: {
226
233
  version: string;
227
234
  id: string;
228
235
  slug: string | null;
229
- url: string;
230
236
  chain_id: number | null;
237
+ url: string;
231
238
  kms_contract_address: `0x${string}`;
232
239
  gateway_app_id: `0x${string}`;
240
+ k256_pubkey?: string | null | undefined;
233
241
  } & {
234
242
  [k: string]: unknown;
235
243
  };
236
- device_id: string;
237
- compose_hash: string;
238
244
  }, {
239
245
  status: "precondition_required";
240
246
  message: string;
241
247
  app_id: string;
248
+ compose_hash: string;
249
+ device_id: string;
242
250
  kms_info: {
243
251
  version: string;
244
252
  id: string;
245
253
  slug: string | null;
246
- url: string;
247
254
  chain_id: number | null;
255
+ url: string;
248
256
  kms_contract_address: string | null;
249
257
  gateway_app_id: string | null;
258
+ k256_pubkey?: string | null | undefined;
250
259
  } & {
251
260
  [k: string]: unknown;
252
261
  };
253
- device_id: string;
254
- compose_hash: string;
255
262
  }>;
256
263
  export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
257
264
  status: z.ZodLiteral<"in_progress">;
@@ -282,6 +289,7 @@ export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
282
289
  chain_id: z.ZodNullable<z.ZodNumber>;
283
290
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
284
291
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
292
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
293
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
286
294
  id: z.ZodString;
287
295
  slug: z.ZodNullable<z.ZodString>;
@@ -290,6 +298,7 @@ export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
290
298
  chain_id: z.ZodNullable<z.ZodNumber>;
291
299
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
292
300
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
301
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
302
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
294
303
  id: z.ZodString;
295
304
  slug: z.ZodNullable<z.ZodString>;
@@ -298,6 +307,7 @@ export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
298
307
  chain_id: z.ZodNullable<z.ZodNumber>;
299
308
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
300
309
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
310
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
311
  }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
302
312
  id: z.ZodString;
303
313
  slug: z.ZodNullable<z.ZodString>;
@@ -306,6 +316,7 @@ export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
306
316
  chain_id: z.ZodNullable<z.ZodNumber>;
307
317
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
308
318
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
319
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
320
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
310
321
  id: z.ZodString;
311
322
  slug: z.ZodNullable<z.ZodString>;
@@ -314,41 +325,44 @@ export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
314
325
  chain_id: z.ZodNullable<z.ZodNumber>;
315
326
  kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
316
327
  gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
328
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
329
  }, z.ZodTypeAny, "passthrough">>;
318
330
  }, "strip", z.ZodTypeAny, {
319
331
  status: "precondition_required";
320
332
  message: string;
321
333
  app_id: string;
334
+ compose_hash: string;
335
+ device_id: string;
322
336
  kms_info: {
323
337
  version: string;
324
338
  id: string;
325
339
  slug: string | null;
326
- url: string;
327
340
  chain_id: number | null;
341
+ url: string;
328
342
  kms_contract_address: `0x${string}`;
329
343
  gateway_app_id: `0x${string}`;
344
+ k256_pubkey?: string | null | undefined;
330
345
  } & {
331
346
  [k: string]: unknown;
332
347
  };
333
- device_id: string;
334
- compose_hash: string;
335
348
  }, {
336
349
  status: "precondition_required";
337
350
  message: string;
338
351
  app_id: string;
352
+ compose_hash: string;
353
+ device_id: string;
339
354
  kms_info: {
340
355
  version: string;
341
356
  id: string;
342
357
  slug: string | null;
343
- url: string;
344
358
  chain_id: number | null;
359
+ url: string;
345
360
  kms_contract_address: string | null;
346
361
  gateway_app_id: string | null;
362
+ k256_pubkey?: string | null | undefined;
347
363
  } & {
348
364
  [k: string]: unknown;
349
365
  };
350
- device_id: string;
351
- compose_hash: string;
352
366
  }>]>;
353
367
  export type UpdateCvmEnvsRequest = z.input<typeof UpdateCvmEnvsRequestSchema>;
354
368
  export type UpdateCvmEnvsResult = z.infer<typeof UpdateCvmEnvsResultSchema>;
@@ -372,19 +386,20 @@ declare const updateCvmEnvs: {
372
386
  status: "precondition_required";
373
387
  message: string;
374
388
  app_id: string;
389
+ compose_hash: string;
390
+ device_id: string;
375
391
  kms_info: {
376
392
  version: string;
377
393
  id: string;
378
394
  slug: string | null;
379
- url: string;
380
395
  chain_id: number | null;
396
+ url: string;
381
397
  kms_contract_address: `0x${string}`;
382
398
  gateway_app_id: `0x${string}`;
399
+ k256_pubkey?: string | null | undefined;
383
400
  } & {
384
401
  [k: string]: unknown;
385
402
  };
386
- device_id: string;
387
- compose_hash: string;
388
403
  }>;
389
404
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
390
405
  schema: T;
@@ -402,19 +417,20 @@ declare const updateCvmEnvs: {
402
417
  status: "precondition_required";
403
418
  message: string;
404
419
  app_id: string;
420
+ compose_hash: string;
421
+ device_id: string;
405
422
  kms_info: {
406
423
  version: string;
407
424
  id: string;
408
425
  slug: string | null;
409
- url: string;
410
426
  chain_id: number | null;
427
+ url: string;
411
428
  kms_contract_address: `0x${string}`;
412
429
  gateway_app_id: `0x${string}`;
430
+ k256_pubkey?: string | null | undefined;
413
431
  } & {
414
432
  [k: string]: unknown;
415
433
  };
416
- device_id: string;
417
- compose_hash: string;
418
434
  }>>;
419
435
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
420
436
  schema: T;