@phala/cloud 0.3.0 → 0.5.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 (112) hide show
  1. package/README.md +20 -0
  2. package/dist/actions/api_tokens/revoke_current_api_token.d.ts +47 -0
  3. package/dist/actions/apps/app_launch_token.d.ts +121 -0
  4. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +17 -311
  5. package/dist/actions/apps/check_app_is_allowed.d.ts +20 -32
  6. package/dist/actions/apps/create_app_instance.d.ts +43 -63
  7. package/dist/actions/apps/get_app_attestation.d.ts +116 -772
  8. package/dist/actions/apps/get_app_cvms.d.ts +1 -5
  9. package/dist/actions/apps/get_app_device_allowlist.d.ts +26 -272
  10. package/dist/actions/apps/get_app_filter_options.d.ts +8 -24
  11. package/dist/actions/apps/get_app_info.d.ts +1 -5
  12. package/dist/actions/apps/get_app_list.d.ts +2 -26
  13. package/dist/actions/apps/get_app_revision_detail.d.ts +1 -9
  14. package/dist/actions/apps/get_app_revisions.d.ts +1 -9
  15. package/dist/actions/blockchains/add_compose_hash.d.ts +1 -13
  16. package/dist/actions/blockchains/add_device.d.ts +1 -13
  17. package/dist/actions/blockchains/deploy_app_auth.d.ts +3 -95
  18. package/dist/actions/blockchains/get_allowed_devices.d.ts +2 -12
  19. package/dist/actions/blockchains/remove_device.d.ts +1 -13
  20. package/dist/actions/blockchains/set_allow_any_device.d.ts +1 -13
  21. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +13 -138
  22. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +9 -45
  23. package/dist/actions/cvms/commit_cvm_provision.d.ts +32 -416
  24. package/dist/actions/cvms/commit_cvm_update.d.ts +70 -41
  25. package/dist/actions/cvms/confirm_cvm_patch.d.ts +62 -35
  26. package/dist/actions/cvms/cvm_annotations.d.ts +152 -0
  27. package/dist/actions/cvms/delete_cvm.d.ts +8 -14
  28. package/dist/actions/cvms/get_available_os_images.d.ts +70 -111
  29. package/dist/actions/cvms/get_cvm_attestation.d.ts +34 -392
  30. package/dist/actions/cvms/get_cvm_compose_file.d.ts +426 -512
  31. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +25 -91
  32. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +8 -14
  33. package/dist/actions/cvms/get_cvm_info.d.ts +6 -12
  34. package/dist/actions/cvms/get_cvm_init_scripts.d.ts +87 -0
  35. package/dist/actions/cvms/get_cvm_list.d.ts +9 -17
  36. package/dist/actions/cvms/get_cvm_network.d.ts +18 -50
  37. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +8 -14
  38. package/dist/actions/cvms/get_cvm_state.d.ts +11 -37
  39. package/dist/actions/cvms/get_cvm_stats.d.ts +23 -149
  40. package/dist/actions/cvms/get_cvm_status_batch.d.ts +97 -64
  41. package/dist/actions/cvms/get_cvm_user_config.d.ts +13 -24
  42. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +9 -27
  43. package/dist/actions/cvms/patch_cvm.d.ts +666 -287
  44. package/dist/actions/cvms/provision_cvm.d.ts +339 -725
  45. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +584 -777
  46. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
  47. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
  48. package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
  49. package/dist/actions/cvms/restart_cvm.d.ts +3 -18
  50. package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
  51. package/dist/actions/cvms/start_cvm.d.ts +6 -12
  52. package/dist/actions/cvms/stop_cvm.d.ts +6 -12
  53. package/dist/actions/cvms/update_cvm_envs.d.ts +144 -195
  54. package/dist/actions/cvms/update_cvm_resources.d.ts +93 -37
  55. package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -130
  56. package/dist/actions/cvms/update_docker_compose.d.ts +143 -187
  57. package/dist/actions/cvms/update_os_image.d.ts +55 -28
  58. package/dist/actions/cvms/update_prelaunch_script.d.ts +143 -187
  59. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +126 -185
  60. package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
  61. package/dist/actions/get_available_nodes.d.ts +201 -823
  62. package/dist/actions/get_cvm_create_resources.d.ts +150 -2150
  63. package/dist/actions/index.d.ts +14 -4
  64. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
  65. package/dist/actions/kms/get_kms_contract.d.ts +57 -0
  66. package/dist/actions/kms/get_kms_info.d.ts +3 -7
  67. package/dist/actions/kms/get_kms_list.d.ts +43 -82
  68. package/dist/actions/kms/get_kms_onchain_detail.d.ts +72 -616
  69. package/dist/actions/kms/list_kms_contract_nodes.d.ts +66 -0
  70. package/dist/actions/kms/list_kms_contracts.d.ts +98 -0
  71. package/dist/actions/kms/next_app_ids.d.ts +5 -25
  72. package/dist/actions/list-instance-types.d.ts +77 -257
  73. package/dist/actions/os_images/get_os_images.d.ts +38 -152
  74. package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
  75. package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
  76. package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
  77. package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
  78. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
  79. package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
  80. package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
  81. package/dist/actions/workspaces/get_workspace.d.ts +32 -24
  82. package/dist/actions/workspaces/get_workspace_nodes.d.ts +56 -182
  83. package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
  84. package/dist/actions/workspaces/list_workspaces.d.ts +69 -245
  85. package/dist/client.d.ts +27 -5
  86. package/dist/create-client.d.ts +1820 -1
  87. package/dist/credentials/current_user_v20251028.d.ts +1 -17
  88. package/dist/credentials/current_user_v20260121.d.ts +22 -227
  89. package/dist/index.d.ts +1 -2
  90. package/dist/index.js +5454 -4389
  91. package/dist/index.mjs +5396 -4395
  92. package/dist/types/app_compose.d.ts +116 -184
  93. package/dist/types/app_info_v20251028.d.ts +29 -1030
  94. package/dist/types/app_info_v20260121.d.ts +686 -6832
  95. package/dist/types/app_revision.d.ts +15 -371
  96. package/dist/types/client.d.ts +18 -2
  97. package/dist/types/common.d.ts +6 -0
  98. package/dist/types/cvm_id.d.ts +12 -57
  99. package/dist/types/cvm_info.d.ts +33 -460
  100. package/dist/types/cvm_info_v20251028.d.ts +102 -800
  101. package/dist/types/cvm_info_v20260121.d.ts +411 -2347
  102. package/dist/types/kms_contract.d.ts +34 -0
  103. package/dist/types/kms_info.d.ts +34 -60
  104. package/dist/types/version-mappings.d.ts +6 -6
  105. package/dist/utils/define-action.d.ts +4 -4
  106. package/dist/utils/error_codes.d.ts +1 -0
  107. package/dist/utils/errors.d.ts +34 -37
  108. package/dist/utils/get_compose_hash.d.ts +59 -4
  109. package/dist/utils/get_mr_config_id.d.ts +146 -0
  110. package/dist/utils/index.d.ts +3 -2
  111. package/dist/utils/placement-request.d.ts +3 -0
  112. package/package.json +4 -4
@@ -10,6 +10,11 @@ import { z } from "zod";
10
10
  * with the compose hash to register on-chain. After registration, call
11
11
  * `confirmCvmPatch` with the compose hash and transaction hash.
12
12
  *
13
+ * GPU assignment goes in `gpus` as a `GpuConfig` object, not a bare array:
14
+ * `{ gpus: [{ slot, product_id? }], attach_mode? }`. `slot` identifies the
15
+ * device, `product_id` is optional, and `attach_mode: "all"` attaches every
16
+ * GPU on the node instead of the listed slots.
17
+ *
13
18
  * @example
14
19
  * ```typescript
15
20
  * import { createClient, patchCvm, confirmCvmPatch, addComposeHash } from '@phala/cloud'
@@ -25,6 +30,20 @@ import { z } from "zod";
25
30
  * // result.requiresOnChainHash === false
26
31
  * console.log(result.correlationId)
27
32
  *
33
+ * // Attach GPUs
34
+ * await patchCvm(client, {
35
+ * id: 'my-cvm',
36
+ * gpus: { gpus: [{ slot: '0000:3b:00.0' }] },
37
+ * })
38
+ *
39
+ * // Compose fields go in `compose` as a JSON Merge Patch; null removes a key
40
+ * await patchCvm(client, {
41
+ * id: 'my-cvm',
42
+ * compose: { secure_time: true, requirements: { health_check: null } },
43
+ * init_scripts: ['docker_cleanup'],
44
+ * confirm_data_wipe: true, // docker_cleanup wipes container stores on every boot
45
+ * })
46
+ *
28
47
  * // On-chain KMS compose update (two-phase)
29
48
  * const result = await patchCvm(client, {
30
49
  * id: 'my-cvm',
@@ -45,353 +64,358 @@ import { z } from "zod";
45
64
  * }
46
65
  * ```
47
66
  */
48
- export declare const PatchCvmRequestSchema: z.ZodEffects<z.ZodObject<{
67
+ /**
68
+ * GPU assignment for a CVM update. `gpus` lists the device slots to attach
69
+ * (`product_id` is optional), and `attach_mode: "all"` attaches every GPU on
70
+ * the node instead of the listed slots.
71
+ */
72
+ export declare const PatchCvmGpuConfigSchema: z.ZodObject<{
73
+ gpus: z.ZodArray<z.ZodObject<{
74
+ slot: z.ZodString;
75
+ product_id: z.ZodOptional<z.ZodString>;
76
+ }, z.core.$strip>>;
77
+ attach_mode: z.ZodOptional<z.ZodString>;
78
+ }, z.core.$strip>;
79
+ export type PatchCvmGpuConfig = z.input<typeof PatchCvmGpuConfigSchema>;
80
+ /**
81
+ * `requirements` keys a PATCH may set; `null` removes the key. `gpu_policy` is
82
+ * not patchable: the stored value is kept.
83
+ */
84
+ export declare const ComposeRequirementsPatchSchema: z.ZodObject<{
85
+ ephemeral_data_disk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
86
+ health_check: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
87
+ health_status_file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ launch_token_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
90
+ tdx_measure_acpi_tables: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
91
+ }, z.core.$loose>;
92
+ /**
93
+ * JSON Merge Patch of the CVM's app compose: a sent key sets the value, a sent
94
+ * `null` removes the key, an absent key is unchanged. `requirements` merges per key.
95
+ */
96
+ export declare const ComposePatchSchema: z.ZodObject<{
97
+ secure_time: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
98
+ swap_size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ storage_discard: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
100
+ snapshotter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
101
+ overlayfs: "overlayfs";
102
+ stargz: "stargz";
103
+ }>>>;
104
+ gateway_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
105
+ port_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
106
+ ports: z.ZodOptional<z.ZodArray<z.ZodObject<{
107
+ port: z.ZodNumber;
108
+ pp: z.ZodOptional<z.ZodBoolean>;
109
+ }, z.core.$strip>>>;
110
+ restrict_mode: z.ZodOptional<z.ZodBoolean>;
111
+ }, z.core.$strip>>>;
112
+ event_log_version: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>>;
113
+ requirements: z.ZodOptional<z.ZodNullable<z.ZodObject<{
114
+ ephemeral_data_disk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
115
+ health_check: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
116
+ health_status_file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ launch_token_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
119
+ tdx_measure_acpi_tables: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
120
+ }, z.core.$loose>>>;
121
+ kms_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
122
+ key_provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
123
+ none: "none";
124
+ kms: "kms";
125
+ local: "local";
126
+ tpm: "tpm";
127
+ }>>>;
128
+ key_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ local_key_provider_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
130
+ manifest_version: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
131
+ no_instance_id: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
132
+ runner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ storage_fs: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
134
+ ext4: "ext4";
135
+ zfs: "zfs";
136
+ }>>>;
137
+ verity_volumes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
138
+ source: z.ZodString;
139
+ target: z.ZodString;
140
+ verity_root: z.ZodString;
141
+ }, z.core.$strip>>>>;
142
+ tproxy_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
143
+ features: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
144
+ }, z.core.$loose>;
145
+ export type ComposePatch = z.input<typeof ComposePatchSchema>;
146
+ export declare const PatchCvmRequestSchema: z.ZodObject<{
49
147
  id: z.ZodOptional<z.ZodString>;
50
148
  uuid: z.ZodOptional<z.ZodString>;
51
149
  app_id: z.ZodOptional<z.ZodString>;
52
150
  instance_id: z.ZodOptional<z.ZodString>;
53
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
54
- } & {
151
+ name: z.ZodOptional<z.ZodString>;
55
152
  docker_compose_file: z.ZodOptional<z.ZodString>;
56
153
  pre_launch_script: z.ZodOptional<z.ZodString>;
57
- allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
154
+ allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
155
  public_logs: z.ZodOptional<z.ZodBoolean>;
59
156
  public_sysinfo: z.ZodOptional<z.ZodBoolean>;
60
157
  public_tcbinfo: z.ZodOptional<z.ZodBoolean>;
158
+ compose: z.ZodOptional<z.ZodObject<{
159
+ secure_time: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
160
+ swap_size: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ storage_discard: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
162
+ snapshotter: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
163
+ overlayfs: "overlayfs";
164
+ stargz: "stargz";
165
+ }>>>;
166
+ gateway_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
167
+ port_policy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
168
+ ports: z.ZodOptional<z.ZodArray<z.ZodObject<{
169
+ port: z.ZodNumber;
170
+ pp: z.ZodOptional<z.ZodBoolean>;
171
+ }, z.core.$strip>>>;
172
+ restrict_mode: z.ZodOptional<z.ZodBoolean>;
173
+ }, z.core.$strip>>>;
174
+ event_log_version: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>]>>>;
175
+ requirements: z.ZodOptional<z.ZodNullable<z.ZodObject<{
176
+ ephemeral_data_disk: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
177
+ health_check: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
178
+ health_status_file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
179
+ launch_token_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
+ platforms: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
181
+ tdx_measure_acpi_tables: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
182
+ }, z.core.$loose>>>;
183
+ kms_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
184
+ key_provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
185
+ none: "none";
186
+ kms: "kms";
187
+ local: "local";
188
+ tpm: "tpm";
189
+ }>>>;
190
+ key_provider_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
191
+ local_key_provider_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
192
+ manifest_version: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
193
+ no_instance_id: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
194
+ runner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
+ storage_fs: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
196
+ ext4: "ext4";
197
+ zfs: "zfs";
198
+ }>>>;
199
+ verity_volumes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
200
+ source: z.ZodString;
201
+ target: z.ZodString;
202
+ verity_root: z.ZodString;
203
+ }, z.core.$strip>>>>;
204
+ tproxy_enabled: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
205
+ features: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
206
+ }, z.core.$loose>>;
207
+ init_scripts: z.ZodOptional<z.ZodArray<z.ZodEnum<{
208
+ docker_cleanup: "docker_cleanup";
209
+ env_merge: "env_merge";
210
+ }>>>;
211
+ confirm_data_wipe: z.ZodOptional<z.ZodBoolean>;
61
212
  encrypted_env: z.ZodOptional<z.ZodString>;
62
213
  user_config: z.ZodOptional<z.ZodString>;
63
214
  gpus: z.ZodOptional<z.ZodObject<{
64
- count: z.ZodNumber;
65
- product_name: z.ZodOptional<z.ZodString>;
66
- }, "strip", z.ZodTypeAny, {
67
- count: number;
68
- product_name?: string | undefined;
69
- }, {
70
- count: number;
71
- product_name?: string | undefined;
72
- }>>;
215
+ gpus: z.ZodArray<z.ZodObject<{
216
+ slot: z.ZodString;
217
+ product_id: z.ZodOptional<z.ZodString>;
218
+ }, z.core.$strip>>;
219
+ attach_mode: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strip>>;
73
221
  vcpu: z.ZodOptional<z.ZodNumber>;
74
222
  memory: z.ZodOptional<z.ZodNumber>;
75
223
  disk_size: z.ZodOptional<z.ZodNumber>;
224
+ instance_type: z.ZodOptional<z.ZodString>;
76
225
  image: z.ZodOptional<z.ZodString>;
77
226
  shutdown_timeout: z.ZodOptional<z.ZodNumber>;
78
227
  allow_force_stop: z.ZodOptional<z.ZodBoolean>;
79
228
  prepareOnly: z.ZodOptional<z.ZodBoolean>;
80
- }, "strip", z.ZodTypeAny, {
81
- name?: string | undefined;
82
- image?: string | undefined;
83
- id?: string | undefined;
84
- uuid?: string | undefined;
85
- app_id?: string | undefined;
86
- instance_id?: string | undefined;
87
- vcpu?: number | undefined;
88
- memory?: number | undefined;
89
- disk_size?: number | undefined;
90
- docker_compose_file?: string | undefined;
91
- encrypted_env?: string | undefined;
92
- public_sysinfo?: boolean | undefined;
93
- public_logs?: boolean | undefined;
94
- gpus?: {
95
- count: number;
96
- product_name?: string | undefined;
97
- } | undefined;
98
- public_tcbinfo?: boolean | undefined;
99
- allowed_envs?: string[] | undefined;
100
- pre_launch_script?: string | undefined;
101
- user_config?: string | undefined;
102
- shutdown_timeout?: number | undefined;
103
- allow_force_stop?: boolean | undefined;
104
- prepareOnly?: boolean | undefined;
105
- }, {
106
- name?: string | undefined;
107
- image?: string | undefined;
108
- id?: string | undefined;
109
- uuid?: string | undefined;
110
- app_id?: string | undefined;
111
- instance_id?: string | undefined;
112
- vcpu?: number | undefined;
113
- memory?: number | undefined;
114
- disk_size?: number | undefined;
115
- docker_compose_file?: string | undefined;
116
- encrypted_env?: string | undefined;
117
- public_sysinfo?: boolean | undefined;
118
- public_logs?: boolean | undefined;
119
- gpus?: {
120
- count: number;
121
- product_name?: string | undefined;
122
- } | undefined;
123
- public_tcbinfo?: boolean | undefined;
124
- allowed_envs?: string[] | undefined;
125
- pre_launch_script?: string | undefined;
126
- user_config?: string | undefined;
127
- shutdown_timeout?: number | undefined;
128
- allow_force_stop?: boolean | undefined;
129
- prepareOnly?: boolean | undefined;
130
- }>, any, any>;
229
+ }, z.core.$strip>;
131
230
  export type PatchCvmRequest = z.input<typeof PatchCvmRequestSchema>;
132
231
  declare const PatchCvmAcceptedSchema: z.ZodObject<{
133
232
  requiresOnChainHash: z.ZodLiteral<false>;
134
233
  correlationId: z.ZodString;
135
- }, "strip", z.ZodTypeAny, {
136
- requiresOnChainHash: false;
137
- correlationId: string;
138
- }, {
139
- requiresOnChainHash: false;
140
- correlationId: string;
141
- }>;
234
+ }, z.core.$strip>;
142
235
  declare const PatchCvmHashRequiredSchema: z.ZodObject<{
143
236
  requiresOnChainHash: z.ZodLiteral<true>;
144
237
  composeHash: z.ZodString;
145
238
  appId: z.ZodString;
146
239
  deviceId: z.ZodString;
147
- kmsInfo: z.ZodEffects<z.ZodObject<{
148
- id: z.ZodString;
149
- slug: z.ZodNullable<z.ZodString>;
150
- url: z.ZodString;
151
- version: z.ZodString;
152
- chain_id: z.ZodNullable<z.ZodNumber>;
153
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
154
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
155
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
156
- id: z.ZodString;
157
- slug: z.ZodNullable<z.ZodString>;
158
- url: z.ZodString;
159
- version: z.ZodString;
160
- chain_id: z.ZodNullable<z.ZodNumber>;
161
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
162
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
163
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
164
- id: z.ZodString;
165
- slug: z.ZodNullable<z.ZodString>;
166
- url: z.ZodString;
167
- version: z.ZodString;
168
- chain_id: z.ZodNullable<z.ZodNumber>;
169
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
170
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
171
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
172
- id: z.ZodString;
173
- slug: z.ZodNullable<z.ZodString>;
174
- url: z.ZodString;
175
- version: z.ZodString;
176
- chain_id: z.ZodNullable<z.ZodNumber>;
177
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
178
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
179
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
240
+ kmsInfo: z.ZodPipe<z.ZodObject<{
180
241
  id: z.ZodString;
181
242
  slug: z.ZodNullable<z.ZodString>;
182
243
  url: z.ZodString;
183
244
  version: z.ZodString;
184
245
  chain_id: z.ZodNullable<z.ZodNumber>;
185
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
186
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
187
- }, z.ZodTypeAny, "passthrough">>;
188
- commitToken: z.ZodOptional<z.ZodString>;
189
- commitUrl: z.ZodOptional<z.ZodString>;
190
- apiCommitUrl: z.ZodOptional<z.ZodString>;
191
- onchainStatus: z.ZodOptional<z.ZodObject<{
192
- compose_hash_allowed: z.ZodBoolean;
193
- device_id_allowed: z.ZodBoolean;
194
- is_allowed: z.ZodBoolean;
195
- }, "strip", z.ZodTypeAny, {
196
- compose_hash_allowed: boolean;
197
- device_id_allowed: boolean;
198
- is_allowed: boolean;
199
- }, {
200
- compose_hash_allowed: boolean;
201
- device_id_allowed: boolean;
202
- is_allowed: boolean;
203
- }>>;
204
- }, "strip", z.ZodTypeAny, {
205
- appId: string;
206
- deviceId: string;
207
- composeHash: string;
208
- requiresOnChainHash: true;
209
- kmsInfo: {
210
- version: string;
246
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
247
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
248
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
249
+ }, z.core.$loose>, z.ZodTransform<{
250
+ [x: string]: unknown;
211
251
  id: string;
212
252
  slug: string | null;
213
- chain_id: number | null;
214
253
  url: string;
254
+ version: string;
255
+ chain_id: number | null;
215
256
  kms_contract_address: `0x${string}`;
216
257
  gateway_app_id: `0x${string}`;
217
- } & {
218
- [k: string]: unknown;
219
- };
220
- commitToken?: string | undefined;
221
- commitUrl?: string | undefined;
222
- apiCommitUrl?: string | undefined;
223
- onchainStatus?: {
224
- compose_hash_allowed: boolean;
225
- device_id_allowed: boolean;
226
- is_allowed: boolean;
227
- } | undefined;
228
- }, {
229
- appId: string;
230
- deviceId: string;
231
- composeHash: string;
232
- requiresOnChainHash: true;
233
- kmsInfo: {
234
- version: string;
258
+ k256_pubkey?: string | null | undefined;
259
+ }, {
260
+ [x: string]: unknown;
235
261
  id: string;
236
262
  slug: string | null;
237
- chain_id: number | null;
238
263
  url: string;
239
- kms_contract_address: string | null;
240
- gateway_app_id: string | null;
241
- } & {
242
- [k: string]: unknown;
243
- };
244
- commitToken?: string | undefined;
245
- commitUrl?: string | undefined;
246
- apiCommitUrl?: string | undefined;
247
- onchainStatus?: {
248
- compose_hash_allowed: boolean;
249
- device_id_allowed: boolean;
250
- is_allowed: boolean;
251
- } | undefined;
252
- }>;
253
- export declare const PatchCvmResultSchema: z.ZodDiscriminatedUnion<"requiresOnChainHash", [z.ZodObject<{
264
+ version: string;
265
+ chain_id: number | null;
266
+ kms_contract_address: `0x${string}`;
267
+ gateway_app_id: `0x${string}`;
268
+ k256_pubkey?: string | null | undefined;
269
+ }>>;
270
+ commitToken: z.ZodOptional<z.ZodString>;
271
+ commitUrl: z.ZodOptional<z.ZodString>;
272
+ apiCommitUrl: z.ZodOptional<z.ZodString>;
273
+ onchainStatus: z.ZodOptional<z.ZodObject<{
274
+ compose_hash_allowed: z.ZodBoolean;
275
+ device_id_allowed: z.ZodBoolean;
276
+ is_allowed: z.ZodBoolean;
277
+ }, z.core.$strip>>;
278
+ }, z.core.$strip>;
279
+ export declare const PatchCvmResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
254
280
  requiresOnChainHash: z.ZodLiteral<false>;
255
281
  correlationId: z.ZodString;
256
- }, "strip", z.ZodTypeAny, {
257
- requiresOnChainHash: false;
258
- correlationId: string;
259
- }, {
260
- requiresOnChainHash: false;
261
- correlationId: string;
262
- }>, z.ZodObject<{
282
+ }, z.core.$strip>, z.ZodObject<{
263
283
  requiresOnChainHash: z.ZodLiteral<true>;
264
284
  composeHash: z.ZodString;
265
285
  appId: z.ZodString;
266
286
  deviceId: z.ZodString;
267
- kmsInfo: z.ZodEffects<z.ZodObject<{
268
- id: z.ZodString;
269
- slug: z.ZodNullable<z.ZodString>;
270
- url: z.ZodString;
271
- version: z.ZodString;
272
- chain_id: z.ZodNullable<z.ZodNumber>;
273
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
274
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
275
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
287
+ kmsInfo: z.ZodPipe<z.ZodObject<{
276
288
  id: z.ZodString;
277
289
  slug: z.ZodNullable<z.ZodString>;
278
290
  url: z.ZodString;
279
291
  version: z.ZodString;
280
292
  chain_id: z.ZodNullable<z.ZodNumber>;
281
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
282
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
283
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
284
- id: z.ZodString;
285
- slug: z.ZodNullable<z.ZodString>;
286
- url: z.ZodString;
287
- version: z.ZodString;
288
- chain_id: z.ZodNullable<z.ZodNumber>;
289
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
290
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
291
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
292
- id: z.ZodString;
293
- slug: z.ZodNullable<z.ZodString>;
294
- url: z.ZodString;
295
- version: z.ZodString;
296
- chain_id: z.ZodNullable<z.ZodNumber>;
297
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
298
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
299
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
300
- id: z.ZodString;
301
- slug: z.ZodNullable<z.ZodString>;
302
- url: z.ZodString;
303
- version: z.ZodString;
304
- chain_id: z.ZodNullable<z.ZodNumber>;
305
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
306
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
307
- }, z.ZodTypeAny, "passthrough">>;
308
- commitToken: z.ZodOptional<z.ZodString>;
309
- commitUrl: z.ZodOptional<z.ZodString>;
310
- apiCommitUrl: z.ZodOptional<z.ZodString>;
311
- onchainStatus: z.ZodOptional<z.ZodObject<{
312
- compose_hash_allowed: z.ZodBoolean;
313
- device_id_allowed: z.ZodBoolean;
314
- is_allowed: z.ZodBoolean;
315
- }, "strip", z.ZodTypeAny, {
316
- compose_hash_allowed: boolean;
317
- device_id_allowed: boolean;
318
- is_allowed: boolean;
319
- }, {
320
- compose_hash_allowed: boolean;
321
- device_id_allowed: boolean;
322
- is_allowed: boolean;
323
- }>>;
324
- }, "strip", z.ZodTypeAny, {
325
- appId: string;
326
- deviceId: string;
327
- composeHash: string;
328
- requiresOnChainHash: true;
329
- kmsInfo: {
330
- version: string;
293
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
294
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
295
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
+ }, z.core.$loose>, z.ZodTransform<{
297
+ [x: string]: unknown;
331
298
  id: string;
332
299
  slug: string | null;
333
- chain_id: number | null;
334
300
  url: string;
301
+ version: string;
302
+ chain_id: number | null;
335
303
  kms_contract_address: `0x${string}`;
336
304
  gateway_app_id: `0x${string}`;
337
- } & {
338
- [k: string]: unknown;
339
- };
340
- commitToken?: string | undefined;
341
- commitUrl?: string | undefined;
342
- apiCommitUrl?: string | undefined;
343
- onchainStatus?: {
344
- compose_hash_allowed: boolean;
345
- device_id_allowed: boolean;
346
- is_allowed: boolean;
347
- } | undefined;
348
- }, {
349
- appId: string;
350
- deviceId: string;
351
- composeHash: string;
352
- requiresOnChainHash: true;
353
- kmsInfo: {
354
- version: string;
305
+ k256_pubkey?: string | null | undefined;
306
+ }, {
307
+ [x: string]: unknown;
355
308
  id: string;
356
309
  slug: string | null;
357
- chain_id: number | null;
358
310
  url: string;
359
- kms_contract_address: string | null;
360
- gateway_app_id: string | null;
361
- } & {
362
- [k: string]: unknown;
363
- };
364
- commitToken?: string | undefined;
365
- commitUrl?: string | undefined;
366
- apiCommitUrl?: string | undefined;
367
- onchainStatus?: {
368
- compose_hash_allowed: boolean;
369
- device_id_allowed: boolean;
370
- is_allowed: boolean;
371
- } | undefined;
372
- }>]>;
311
+ version: string;
312
+ chain_id: number | null;
313
+ kms_contract_address: `0x${string}`;
314
+ gateway_app_id: `0x${string}`;
315
+ k256_pubkey?: string | null | undefined;
316
+ }>>;
317
+ commitToken: z.ZodOptional<z.ZodString>;
318
+ commitUrl: z.ZodOptional<z.ZodString>;
319
+ apiCommitUrl: z.ZodOptional<z.ZodString>;
320
+ onchainStatus: z.ZodOptional<z.ZodObject<{
321
+ compose_hash_allowed: z.ZodBoolean;
322
+ device_id_allowed: z.ZodBoolean;
323
+ is_allowed: z.ZodBoolean;
324
+ }, z.core.$strip>>;
325
+ }, z.core.$strip>], "requiresOnChainHash">;
373
326
  export type PatchCvmResult = z.infer<typeof PatchCvmResultSchema>;
374
327
  export type PatchCvmAccepted = z.infer<typeof PatchCvmAcceptedSchema>;
375
328
  export type PatchCvmHashRequired = z.infer<typeof PatchCvmHashRequiredSchema>;
376
329
  declare const patchCvm: {
377
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
330
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
331
+ id?: string | undefined;
332
+ uuid?: string | undefined;
333
+ app_id?: string | undefined;
334
+ instance_id?: string | undefined;
335
+ name?: string | undefined;
336
+ docker_compose_file?: string | undefined;
337
+ pre_launch_script?: string | undefined;
338
+ allowed_envs?: string[] | undefined;
339
+ public_logs?: boolean | undefined;
340
+ public_sysinfo?: boolean | undefined;
341
+ public_tcbinfo?: boolean | undefined;
342
+ compose?: {
343
+ [x: string]: unknown;
344
+ secure_time?: boolean | null | undefined;
345
+ swap_size?: string | null | undefined;
346
+ storage_discard?: boolean | null | undefined;
347
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
348
+ gateway_enabled?: boolean | null | undefined;
349
+ port_policy?: {
350
+ ports?: {
351
+ port: number;
352
+ pp?: boolean | undefined;
353
+ }[] | undefined;
354
+ restrict_mode?: boolean | undefined;
355
+ } | null | undefined;
356
+ event_log_version?: 1 | 2 | null | undefined;
357
+ requirements?: {
358
+ [x: string]: unknown;
359
+ ephemeral_data_disk?: boolean | null | undefined;
360
+ health_check?: boolean | null | undefined;
361
+ health_status_file?: string | null | undefined;
362
+ launch_token_hash?: string | null | undefined;
363
+ platforms?: string[] | null | undefined;
364
+ tdx_measure_acpi_tables?: boolean | null | undefined;
365
+ } | null | undefined;
366
+ kms_enabled?: boolean | null | undefined;
367
+ key_provider?: "none" | "kms" | "local" | "tpm" | null | undefined;
368
+ key_provider_id?: string | null | undefined;
369
+ local_key_provider_enabled?: boolean | null | undefined;
370
+ manifest_version?: string | number | null | undefined;
371
+ no_instance_id?: boolean | null | undefined;
372
+ runner?: string | null | undefined;
373
+ storage_fs?: "ext4" | "zfs" | null | undefined;
374
+ verity_volumes?: {
375
+ source: string;
376
+ target: string;
377
+ verity_root: string;
378
+ }[] | null | undefined;
379
+ tproxy_enabled?: boolean | null | undefined;
380
+ features?: string[] | null | undefined;
381
+ } | undefined;
382
+ init_scripts?: ("docker_cleanup" | "env_merge")[] | undefined;
383
+ confirm_data_wipe?: boolean | undefined;
384
+ encrypted_env?: string | undefined;
385
+ user_config?: string | undefined;
386
+ gpus?: {
387
+ gpus: {
388
+ slot: string;
389
+ product_id?: string | undefined;
390
+ }[];
391
+ attach_mode?: string | undefined;
392
+ } | undefined;
393
+ vcpu?: number | undefined;
394
+ memory?: number | undefined;
395
+ disk_size?: number | undefined;
396
+ instance_type?: string | undefined;
397
+ image?: string | undefined;
398
+ shutdown_timeout?: number | undefined;
399
+ allow_force_stop?: boolean | undefined;
400
+ prepareOnly?: boolean | undefined;
401
+ }): Promise<{
378
402
  requiresOnChainHash: false;
379
403
  correlationId: string;
380
404
  } | {
405
+ requiresOnChainHash: true;
406
+ composeHash: string;
381
407
  appId: string;
382
408
  deviceId: string;
383
- composeHash: string;
384
- requiresOnChainHash: true;
385
409
  kmsInfo: {
386
- version: string;
410
+ [x: string]: unknown;
387
411
  id: string;
388
412
  slug: string | null;
389
- chain_id: number | null;
390
413
  url: string;
414
+ version: string;
415
+ chain_id: number | null;
391
416
  kms_contract_address: `0x${string}`;
392
417
  gateway_app_id: `0x${string}`;
393
- } & {
394
- [k: string]: unknown;
418
+ k256_pubkey?: string | null | undefined;
395
419
  };
396
420
  commitToken?: string | undefined;
397
421
  commitUrl?: string | undefined;
@@ -402,31 +426,244 @@ declare const patchCvm: {
402
426
  is_allowed: boolean;
403
427
  } | undefined;
404
428
  }>;
405
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
429
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
430
+ id?: string | undefined;
431
+ uuid?: string | undefined;
432
+ app_id?: string | undefined;
433
+ instance_id?: string | undefined;
434
+ name?: string | undefined;
435
+ docker_compose_file?: string | undefined;
436
+ pre_launch_script?: string | undefined;
437
+ allowed_envs?: string[] | undefined;
438
+ public_logs?: boolean | undefined;
439
+ public_sysinfo?: boolean | undefined;
440
+ public_tcbinfo?: boolean | undefined;
441
+ compose?: {
442
+ [x: string]: unknown;
443
+ secure_time?: boolean | null | undefined;
444
+ swap_size?: string | null | undefined;
445
+ storage_discard?: boolean | null | undefined;
446
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
447
+ gateway_enabled?: boolean | null | undefined;
448
+ port_policy?: {
449
+ ports?: {
450
+ port: number;
451
+ pp?: boolean | undefined;
452
+ }[] | undefined;
453
+ restrict_mode?: boolean | undefined;
454
+ } | null | undefined;
455
+ event_log_version?: 1 | 2 | null | undefined;
456
+ requirements?: {
457
+ [x: string]: unknown;
458
+ ephemeral_data_disk?: boolean | null | undefined;
459
+ health_check?: boolean | null | undefined;
460
+ health_status_file?: string | null | undefined;
461
+ launch_token_hash?: string | null | undefined;
462
+ platforms?: string[] | null | undefined;
463
+ tdx_measure_acpi_tables?: boolean | null | undefined;
464
+ } | null | undefined;
465
+ kms_enabled?: boolean | null | undefined;
466
+ key_provider?: "none" | "kms" | "local" | "tpm" | null | undefined;
467
+ key_provider_id?: string | null | undefined;
468
+ local_key_provider_enabled?: boolean | null | undefined;
469
+ manifest_version?: string | number | null | undefined;
470
+ no_instance_id?: boolean | null | undefined;
471
+ runner?: string | null | undefined;
472
+ storage_fs?: "ext4" | "zfs" | null | undefined;
473
+ verity_volumes?: {
474
+ source: string;
475
+ target: string;
476
+ verity_root: string;
477
+ }[] | null | undefined;
478
+ tproxy_enabled?: boolean | null | undefined;
479
+ features?: string[] | null | undefined;
480
+ } | undefined;
481
+ init_scripts?: ("docker_cleanup" | "env_merge")[] | undefined;
482
+ confirm_data_wipe?: boolean | undefined;
483
+ encrypted_env?: string | undefined;
484
+ user_config?: string | undefined;
485
+ gpus?: {
486
+ gpus: {
487
+ slot: string;
488
+ product_id?: string | undefined;
489
+ }[];
490
+ attach_mode?: string | undefined;
491
+ } | undefined;
492
+ vcpu?: number | undefined;
493
+ memory?: number | undefined;
494
+ disk_size?: number | undefined;
495
+ instance_type?: string | undefined;
496
+ image?: string | undefined;
497
+ shutdown_timeout?: number | undefined;
498
+ allow_force_stop?: boolean | undefined;
499
+ prepareOnly?: boolean | undefined;
500
+ }, parameters: {
406
501
  schema: T;
407
- } | undefined): Promise<z.TypeOf<T>>;
408
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
502
+ }): Promise<z.core.output<T>>;
503
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
504
+ id?: string | undefined;
505
+ uuid?: string | undefined;
506
+ app_id?: string | undefined;
507
+ instance_id?: string | undefined;
508
+ name?: string | undefined;
509
+ docker_compose_file?: string | undefined;
510
+ pre_launch_script?: string | undefined;
511
+ allowed_envs?: string[] | undefined;
512
+ public_logs?: boolean | undefined;
513
+ public_sysinfo?: boolean | undefined;
514
+ public_tcbinfo?: boolean | undefined;
515
+ compose?: {
516
+ [x: string]: unknown;
517
+ secure_time?: boolean | null | undefined;
518
+ swap_size?: string | null | undefined;
519
+ storage_discard?: boolean | null | undefined;
520
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
521
+ gateway_enabled?: boolean | null | undefined;
522
+ port_policy?: {
523
+ ports?: {
524
+ port: number;
525
+ pp?: boolean | undefined;
526
+ }[] | undefined;
527
+ restrict_mode?: boolean | undefined;
528
+ } | null | undefined;
529
+ event_log_version?: 1 | 2 | null | undefined;
530
+ requirements?: {
531
+ [x: string]: unknown;
532
+ ephemeral_data_disk?: boolean | null | undefined;
533
+ health_check?: boolean | null | undefined;
534
+ health_status_file?: string | null | undefined;
535
+ launch_token_hash?: string | null | undefined;
536
+ platforms?: string[] | null | undefined;
537
+ tdx_measure_acpi_tables?: boolean | null | undefined;
538
+ } | null | undefined;
539
+ kms_enabled?: boolean | null | undefined;
540
+ key_provider?: "none" | "kms" | "local" | "tpm" | null | undefined;
541
+ key_provider_id?: string | null | undefined;
542
+ local_key_provider_enabled?: boolean | null | undefined;
543
+ manifest_version?: string | number | null | undefined;
544
+ no_instance_id?: boolean | null | undefined;
545
+ runner?: string | null | undefined;
546
+ storage_fs?: "ext4" | "zfs" | null | undefined;
547
+ verity_volumes?: {
548
+ source: string;
549
+ target: string;
550
+ verity_root: string;
551
+ }[] | null | undefined;
552
+ tproxy_enabled?: boolean | null | undefined;
553
+ features?: string[] | null | undefined;
554
+ } | undefined;
555
+ init_scripts?: ("docker_cleanup" | "env_merge")[] | undefined;
556
+ confirm_data_wipe?: boolean | undefined;
557
+ encrypted_env?: string | undefined;
558
+ user_config?: string | undefined;
559
+ gpus?: {
560
+ gpus: {
561
+ slot: string;
562
+ product_id?: string | undefined;
563
+ }[];
564
+ attach_mode?: string | undefined;
565
+ } | undefined;
566
+ vcpu?: number | undefined;
567
+ memory?: number | undefined;
568
+ disk_size?: number | undefined;
569
+ instance_type?: string | undefined;
570
+ image?: string | undefined;
571
+ shutdown_timeout?: number | undefined;
572
+ allow_force_stop?: boolean | undefined;
573
+ prepareOnly?: boolean | undefined;
574
+ }, parameters: {
409
575
  schema: false;
410
- } | undefined): Promise<unknown>;
576
+ }): Promise<unknown>;
411
577
  }, safePatchCvm: {
412
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
578
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
579
+ id?: string | undefined;
580
+ uuid?: string | undefined;
581
+ app_id?: string | undefined;
582
+ instance_id?: string | undefined;
583
+ name?: string | undefined;
584
+ docker_compose_file?: string | undefined;
585
+ pre_launch_script?: string | undefined;
586
+ allowed_envs?: string[] | undefined;
587
+ public_logs?: boolean | undefined;
588
+ public_sysinfo?: boolean | undefined;
589
+ public_tcbinfo?: boolean | undefined;
590
+ compose?: {
591
+ [x: string]: unknown;
592
+ secure_time?: boolean | null | undefined;
593
+ swap_size?: string | null | undefined;
594
+ storage_discard?: boolean | null | undefined;
595
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
596
+ gateway_enabled?: boolean | null | undefined;
597
+ port_policy?: {
598
+ ports?: {
599
+ port: number;
600
+ pp?: boolean | undefined;
601
+ }[] | undefined;
602
+ restrict_mode?: boolean | undefined;
603
+ } | null | undefined;
604
+ event_log_version?: 1 | 2 | null | undefined;
605
+ requirements?: {
606
+ [x: string]: unknown;
607
+ ephemeral_data_disk?: boolean | null | undefined;
608
+ health_check?: boolean | null | undefined;
609
+ health_status_file?: string | null | undefined;
610
+ launch_token_hash?: string | null | undefined;
611
+ platforms?: string[] | null | undefined;
612
+ tdx_measure_acpi_tables?: boolean | null | undefined;
613
+ } | null | undefined;
614
+ kms_enabled?: boolean | null | undefined;
615
+ key_provider?: "none" | "kms" | "local" | "tpm" | null | undefined;
616
+ key_provider_id?: string | null | undefined;
617
+ local_key_provider_enabled?: boolean | null | undefined;
618
+ manifest_version?: string | number | null | undefined;
619
+ no_instance_id?: boolean | null | undefined;
620
+ runner?: string | null | undefined;
621
+ storage_fs?: "ext4" | "zfs" | null | undefined;
622
+ verity_volumes?: {
623
+ source: string;
624
+ target: string;
625
+ verity_root: string;
626
+ }[] | null | undefined;
627
+ tproxy_enabled?: boolean | null | undefined;
628
+ features?: string[] | null | undefined;
629
+ } | undefined;
630
+ init_scripts?: ("docker_cleanup" | "env_merge")[] | undefined;
631
+ confirm_data_wipe?: boolean | undefined;
632
+ encrypted_env?: string | undefined;
633
+ user_config?: string | undefined;
634
+ gpus?: {
635
+ gpus: {
636
+ slot: string;
637
+ product_id?: string | undefined;
638
+ }[];
639
+ attach_mode?: string | undefined;
640
+ } | undefined;
641
+ vcpu?: number | undefined;
642
+ memory?: number | undefined;
643
+ disk_size?: number | undefined;
644
+ instance_type?: string | undefined;
645
+ image?: string | undefined;
646
+ shutdown_timeout?: number | undefined;
647
+ allow_force_stop?: boolean | undefined;
648
+ prepareOnly?: boolean | undefined;
649
+ }): Promise<import("../..").SafeResult<{
413
650
  requiresOnChainHash: false;
414
651
  correlationId: string;
415
652
  } | {
653
+ requiresOnChainHash: true;
654
+ composeHash: string;
416
655
  appId: string;
417
656
  deviceId: string;
418
- composeHash: string;
419
- requiresOnChainHash: true;
420
657
  kmsInfo: {
421
- version: string;
658
+ [x: string]: unknown;
422
659
  id: string;
423
660
  slug: string | null;
424
- chain_id: number | null;
425
661
  url: string;
662
+ version: string;
663
+ chain_id: number | null;
426
664
  kms_contract_address: `0x${string}`;
427
665
  gateway_app_id: `0x${string}`;
428
- } & {
429
- [k: string]: unknown;
666
+ k256_pubkey?: string | null | undefined;
430
667
  };
431
668
  commitToken?: string | undefined;
432
669
  commitUrl?: string | undefined;
@@ -437,11 +674,153 @@ declare const patchCvm: {
437
674
  is_allowed: boolean;
438
675
  } | undefined;
439
676
  }>>;
440
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
677
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
678
+ id?: string | undefined;
679
+ uuid?: string | undefined;
680
+ app_id?: string | undefined;
681
+ instance_id?: string | undefined;
682
+ name?: string | undefined;
683
+ docker_compose_file?: string | undefined;
684
+ pre_launch_script?: string | undefined;
685
+ allowed_envs?: string[] | undefined;
686
+ public_logs?: boolean | undefined;
687
+ public_sysinfo?: boolean | undefined;
688
+ public_tcbinfo?: boolean | undefined;
689
+ compose?: {
690
+ [x: string]: unknown;
691
+ secure_time?: boolean | null | undefined;
692
+ swap_size?: string | null | undefined;
693
+ storage_discard?: boolean | null | undefined;
694
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
695
+ gateway_enabled?: boolean | null | undefined;
696
+ port_policy?: {
697
+ ports?: {
698
+ port: number;
699
+ pp?: boolean | undefined;
700
+ }[] | undefined;
701
+ restrict_mode?: boolean | undefined;
702
+ } | null | undefined;
703
+ event_log_version?: 1 | 2 | null | undefined;
704
+ requirements?: {
705
+ [x: string]: unknown;
706
+ ephemeral_data_disk?: boolean | null | undefined;
707
+ health_check?: boolean | null | undefined;
708
+ health_status_file?: string | null | undefined;
709
+ launch_token_hash?: string | null | undefined;
710
+ platforms?: string[] | null | undefined;
711
+ tdx_measure_acpi_tables?: boolean | null | undefined;
712
+ } | null | undefined;
713
+ kms_enabled?: boolean | null | undefined;
714
+ key_provider?: "none" | "kms" | "local" | "tpm" | null | undefined;
715
+ key_provider_id?: string | null | undefined;
716
+ local_key_provider_enabled?: boolean | null | undefined;
717
+ manifest_version?: string | number | null | undefined;
718
+ no_instance_id?: boolean | null | undefined;
719
+ runner?: string | null | undefined;
720
+ storage_fs?: "ext4" | "zfs" | null | undefined;
721
+ verity_volumes?: {
722
+ source: string;
723
+ target: string;
724
+ verity_root: string;
725
+ }[] | null | undefined;
726
+ tproxy_enabled?: boolean | null | undefined;
727
+ features?: string[] | null | undefined;
728
+ } | undefined;
729
+ init_scripts?: ("docker_cleanup" | "env_merge")[] | undefined;
730
+ confirm_data_wipe?: boolean | undefined;
731
+ encrypted_env?: string | undefined;
732
+ user_config?: string | undefined;
733
+ gpus?: {
734
+ gpus: {
735
+ slot: string;
736
+ product_id?: string | undefined;
737
+ }[];
738
+ attach_mode?: string | undefined;
739
+ } | undefined;
740
+ vcpu?: number | undefined;
741
+ memory?: number | undefined;
742
+ disk_size?: number | undefined;
743
+ instance_type?: string | undefined;
744
+ image?: string | undefined;
745
+ shutdown_timeout?: number | undefined;
746
+ allow_force_stop?: boolean | undefined;
747
+ prepareOnly?: boolean | undefined;
748
+ }, parameters: {
441
749
  schema: T;
442
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
443
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
750
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
751
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
752
+ id?: string | undefined;
753
+ uuid?: string | undefined;
754
+ app_id?: string | undefined;
755
+ instance_id?: string | undefined;
756
+ name?: string | undefined;
757
+ docker_compose_file?: string | undefined;
758
+ pre_launch_script?: string | undefined;
759
+ allowed_envs?: string[] | undefined;
760
+ public_logs?: boolean | undefined;
761
+ public_sysinfo?: boolean | undefined;
762
+ public_tcbinfo?: boolean | undefined;
763
+ compose?: {
764
+ [x: string]: unknown;
765
+ secure_time?: boolean | null | undefined;
766
+ swap_size?: string | null | undefined;
767
+ storage_discard?: boolean | null | undefined;
768
+ snapshotter?: "overlayfs" | "stargz" | null | undefined;
769
+ gateway_enabled?: boolean | null | undefined;
770
+ port_policy?: {
771
+ ports?: {
772
+ port: number;
773
+ pp?: boolean | undefined;
774
+ }[] | undefined;
775
+ restrict_mode?: boolean | undefined;
776
+ } | null | undefined;
777
+ event_log_version?: 1 | 2 | null | undefined;
778
+ requirements?: {
779
+ [x: string]: unknown;
780
+ ephemeral_data_disk?: boolean | null | undefined;
781
+ health_check?: boolean | null | undefined;
782
+ health_status_file?: string | null | undefined;
783
+ launch_token_hash?: string | null | undefined;
784
+ platforms?: string[] | null | undefined;
785
+ tdx_measure_acpi_tables?: boolean | null | undefined;
786
+ } | null | undefined;
787
+ kms_enabled?: boolean | null | undefined;
788
+ key_provider?: "none" | "kms" | "local" | "tpm" | null | undefined;
789
+ key_provider_id?: string | null | undefined;
790
+ local_key_provider_enabled?: boolean | null | undefined;
791
+ manifest_version?: string | number | null | undefined;
792
+ no_instance_id?: boolean | null | undefined;
793
+ runner?: string | null | undefined;
794
+ storage_fs?: "ext4" | "zfs" | null | undefined;
795
+ verity_volumes?: {
796
+ source: string;
797
+ target: string;
798
+ verity_root: string;
799
+ }[] | null | undefined;
800
+ tproxy_enabled?: boolean | null | undefined;
801
+ features?: string[] | null | undefined;
802
+ } | undefined;
803
+ init_scripts?: ("docker_cleanup" | "env_merge")[] | undefined;
804
+ confirm_data_wipe?: boolean | undefined;
805
+ encrypted_env?: string | undefined;
806
+ user_config?: string | undefined;
807
+ gpus?: {
808
+ gpus: {
809
+ slot: string;
810
+ product_id?: string | undefined;
811
+ }[];
812
+ attach_mode?: string | undefined;
813
+ } | undefined;
814
+ vcpu?: number | undefined;
815
+ memory?: number | undefined;
816
+ disk_size?: number | undefined;
817
+ instance_type?: string | undefined;
818
+ image?: string | undefined;
819
+ shutdown_timeout?: number | undefined;
820
+ allow_force_stop?: boolean | undefined;
821
+ prepareOnly?: boolean | undefined;
822
+ }, parameters: {
444
823
  schema: false;
445
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
824
+ }): Promise<import("../..").SafeResult<unknown>>;
446
825
  };
447
826
  export { patchCvm, safePatchCvm };