@phala/cloud 0.4.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 (110) 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 +113 -779
  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 -422
  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 +384 -614
  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 +7 -13
  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 +19 -209
  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 +658 -295
  44. package/dist/actions/cvms/provision_cvm.d.ts +326 -1561
  45. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +550 -953
  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 +136 -203
  54. package/dist/actions/cvms/update_cvm_resources.d.ts +82 -48
  55. package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -132
  56. package/dist/actions/cvms/update_docker_compose.d.ts +127 -202
  57. package/dist/actions/cvms/update_os_image.d.ts +55 -28
  58. package/dist/actions/cvms/update_prelaunch_script.d.ts +127 -202
  59. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +118 -193
  60. package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
  61. package/dist/actions/get_available_nodes.d.ts +186 -1067
  62. package/dist/actions/get_cvm_create_resources.d.ts +138 -2489
  63. package/dist/actions/index.d.ts +8 -2
  64. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
  65. package/dist/actions/kms/get_kms_contract.d.ts +25 -27
  66. package/dist/actions/kms/get_kms_info.d.ts +3 -7
  67. package/dist/actions/kms/get_kms_list.d.ts +34 -88
  68. package/dist/actions/kms/get_kms_onchain_detail.d.ts +66 -664
  69. package/dist/actions/kms/list_kms_contract_nodes.d.ts +21 -53
  70. package/dist/actions/kms/list_kms_contracts.d.ts +33 -87
  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 -28
  82. package/dist/actions/workspaces/get_workspace_nodes.d.ts +34 -321
  83. package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
  84. package/dist/actions/workspaces/list_workspaces.d.ts +67 -369
  85. package/dist/client.d.ts +23 -4
  86. package/dist/create-client.d.ts +1772 -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 +0 -1
  90. package/dist/index.js +5010 -4265
  91. package/dist/index.mjs +4892 -4192
  92. package/dist/types/app_compose.d.ts +108 -221
  93. package/dist/types/app_info_v20251028.d.ts +22 -1067
  94. package/dist/types/app_info_v20260121.d.ts +430 -8900
  95. package/dist/types/app_revision.d.ts +15 -371
  96. package/dist/types/client.d.ts +16 -0
  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 +99 -820
  101. package/dist/types/cvm_info_v20260121.d.ts +247 -3160
  102. package/dist/types/kms_contract.d.ts +2 -32
  103. package/dist/types/kms_info.d.ts +34 -68
  104. package/dist/utils/define-action.d.ts +4 -4
  105. package/dist/utils/errors.d.ts +4 -36
  106. package/dist/utils/get_compose_hash.d.ts +36 -5
  107. package/dist/utils/get_mr_config_id.d.ts +94 -3
  108. package/dist/utils/index.d.ts +1 -1
  109. package/dist/utils/placement-request.d.ts +3 -0
  110. 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,368 +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
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
157
- id: z.ZodString;
158
- slug: z.ZodNullable<z.ZodString>;
159
- url: z.ZodString;
160
- version: z.ZodString;
161
- chain_id: z.ZodNullable<z.ZodNumber>;
162
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
163
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
164
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
166
- id: z.ZodString;
167
- slug: z.ZodNullable<z.ZodString>;
168
- url: z.ZodString;
169
- version: z.ZodString;
170
- chain_id: z.ZodNullable<z.ZodNumber>;
171
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
172
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
173
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
175
- id: z.ZodString;
176
- slug: z.ZodNullable<z.ZodString>;
177
- url: z.ZodString;
178
- version: z.ZodString;
179
- chain_id: z.ZodNullable<z.ZodNumber>;
180
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
181
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
182
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
183
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
240
+ kmsInfo: z.ZodPipe<z.ZodObject<{
184
241
  id: z.ZodString;
185
242
  slug: z.ZodNullable<z.ZodString>;
186
243
  url: z.ZodString;
187
244
  version: z.ZodString;
188
245
  chain_id: z.ZodNullable<z.ZodNumber>;
189
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
190
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
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>>;
191
248
  k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
192
- }, z.ZodTypeAny, "passthrough">>;
193
- commitToken: z.ZodOptional<z.ZodString>;
194
- commitUrl: z.ZodOptional<z.ZodString>;
195
- apiCommitUrl: z.ZodOptional<z.ZodString>;
196
- onchainStatus: z.ZodOptional<z.ZodObject<{
197
- compose_hash_allowed: z.ZodBoolean;
198
- device_id_allowed: z.ZodBoolean;
199
- is_allowed: z.ZodBoolean;
200
- }, "strip", z.ZodTypeAny, {
201
- compose_hash_allowed: boolean;
202
- device_id_allowed: boolean;
203
- is_allowed: boolean;
204
- }, {
205
- compose_hash_allowed: boolean;
206
- device_id_allowed: boolean;
207
- is_allowed: boolean;
208
- }>>;
209
- }, "strip", z.ZodTypeAny, {
210
- appId: string;
211
- deviceId: string;
212
- composeHash: string;
213
- requiresOnChainHash: true;
214
- kmsInfo: {
215
- version: string;
249
+ }, z.core.$loose>, z.ZodTransform<{
250
+ [x: string]: unknown;
216
251
  id: string;
217
252
  slug: string | null;
218
- chain_id: number | null;
219
253
  url: string;
254
+ version: string;
255
+ chain_id: number | null;
220
256
  kms_contract_address: `0x${string}`;
221
257
  gateway_app_id: `0x${string}`;
222
258
  k256_pubkey?: string | null | undefined;
223
- } & {
224
- [k: string]: unknown;
225
- };
226
- commitToken?: string | undefined;
227
- commitUrl?: string | undefined;
228
- apiCommitUrl?: string | undefined;
229
- onchainStatus?: {
230
- compose_hash_allowed: boolean;
231
- device_id_allowed: boolean;
232
- is_allowed: boolean;
233
- } | undefined;
234
- }, {
235
- appId: string;
236
- deviceId: string;
237
- composeHash: string;
238
- requiresOnChainHash: true;
239
- kmsInfo: {
240
- version: string;
259
+ }, {
260
+ [x: string]: unknown;
241
261
  id: string;
242
262
  slug: string | null;
243
- chain_id: number | null;
244
263
  url: string;
245
- kms_contract_address: string | null;
246
- gateway_app_id: string | null;
264
+ version: string;
265
+ chain_id: number | null;
266
+ kms_contract_address: `0x${string}`;
267
+ gateway_app_id: `0x${string}`;
247
268
  k256_pubkey?: string | null | undefined;
248
- } & {
249
- [k: string]: unknown;
250
- };
251
- commitToken?: string | undefined;
252
- commitUrl?: string | undefined;
253
- apiCommitUrl?: string | undefined;
254
- onchainStatus?: {
255
- compose_hash_allowed: boolean;
256
- device_id_allowed: boolean;
257
- is_allowed: boolean;
258
- } | undefined;
259
- }>;
260
- export declare const PatchCvmResultSchema: z.ZodDiscriminatedUnion<"requiresOnChainHash", [z.ZodObject<{
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<{
261
280
  requiresOnChainHash: z.ZodLiteral<false>;
262
281
  correlationId: z.ZodString;
263
- }, "strip", z.ZodTypeAny, {
264
- requiresOnChainHash: false;
265
- correlationId: string;
266
- }, {
267
- requiresOnChainHash: false;
268
- correlationId: string;
269
- }>, z.ZodObject<{
282
+ }, z.core.$strip>, z.ZodObject<{
270
283
  requiresOnChainHash: z.ZodLiteral<true>;
271
284
  composeHash: z.ZodString;
272
285
  appId: z.ZodString;
273
286
  deviceId: z.ZodString;
274
- kmsInfo: z.ZodEffects<z.ZodObject<{
287
+ kmsInfo: z.ZodPipe<z.ZodObject<{
275
288
  id: z.ZodString;
276
289
  slug: z.ZodNullable<z.ZodString>;
277
290
  url: z.ZodString;
278
291
  version: z.ZodString;
279
292
  chain_id: z.ZodNullable<z.ZodNumber>;
280
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
281
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
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>>;
282
295
  k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
283
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
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
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
293
- id: z.ZodString;
294
- slug: z.ZodNullable<z.ZodString>;
295
- url: z.ZodString;
296
- version: z.ZodString;
297
- chain_id: z.ZodNullable<z.ZodNumber>;
298
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
299
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
300
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
302
- id: z.ZodString;
303
- slug: z.ZodNullable<z.ZodString>;
304
- url: z.ZodString;
305
- version: z.ZodString;
306
- chain_id: z.ZodNullable<z.ZodNumber>;
307
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
308
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
309
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
311
- id: z.ZodString;
312
- slug: z.ZodNullable<z.ZodString>;
313
- url: z.ZodString;
314
- version: z.ZodString;
315
- chain_id: z.ZodNullable<z.ZodNumber>;
316
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
317
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
318
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
- }, z.ZodTypeAny, "passthrough">>;
320
- commitToken: z.ZodOptional<z.ZodString>;
321
- commitUrl: z.ZodOptional<z.ZodString>;
322
- apiCommitUrl: z.ZodOptional<z.ZodString>;
323
- onchainStatus: z.ZodOptional<z.ZodObject<{
324
- compose_hash_allowed: z.ZodBoolean;
325
- device_id_allowed: z.ZodBoolean;
326
- is_allowed: z.ZodBoolean;
327
- }, "strip", z.ZodTypeAny, {
328
- compose_hash_allowed: boolean;
329
- device_id_allowed: boolean;
330
- is_allowed: boolean;
331
- }, {
332
- compose_hash_allowed: boolean;
333
- device_id_allowed: boolean;
334
- is_allowed: boolean;
335
- }>>;
336
- }, "strip", z.ZodTypeAny, {
337
- appId: string;
338
- deviceId: string;
339
- composeHash: string;
340
- requiresOnChainHash: true;
341
- kmsInfo: {
342
- version: string;
296
+ }, z.core.$loose>, z.ZodTransform<{
297
+ [x: string]: unknown;
343
298
  id: string;
344
299
  slug: string | null;
345
- chain_id: number | null;
346
300
  url: string;
301
+ version: string;
302
+ chain_id: number | null;
347
303
  kms_contract_address: `0x${string}`;
348
304
  gateway_app_id: `0x${string}`;
349
305
  k256_pubkey?: string | null | undefined;
350
- } & {
351
- [k: string]: unknown;
352
- };
353
- commitToken?: string | undefined;
354
- commitUrl?: string | undefined;
355
- apiCommitUrl?: string | undefined;
356
- onchainStatus?: {
357
- compose_hash_allowed: boolean;
358
- device_id_allowed: boolean;
359
- is_allowed: boolean;
360
- } | undefined;
361
- }, {
362
- appId: string;
363
- deviceId: string;
364
- composeHash: string;
365
- requiresOnChainHash: true;
366
- kmsInfo: {
367
- version: string;
306
+ }, {
307
+ [x: string]: unknown;
368
308
  id: string;
369
309
  slug: string | null;
370
- chain_id: number | null;
371
310
  url: string;
372
- kms_contract_address: string | null;
373
- gateway_app_id: string | null;
311
+ version: string;
312
+ chain_id: number | null;
313
+ kms_contract_address: `0x${string}`;
314
+ gateway_app_id: `0x${string}`;
374
315
  k256_pubkey?: string | null | undefined;
375
- } & {
376
- [k: string]: unknown;
377
- };
378
- commitToken?: string | undefined;
379
- commitUrl?: string | undefined;
380
- apiCommitUrl?: string | undefined;
381
- onchainStatus?: {
382
- compose_hash_allowed: boolean;
383
- device_id_allowed: boolean;
384
- is_allowed: boolean;
385
- } | undefined;
386
- }>]>;
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">;
387
326
  export type PatchCvmResult = z.infer<typeof PatchCvmResultSchema>;
388
327
  export type PatchCvmAccepted = z.infer<typeof PatchCvmAcceptedSchema>;
389
328
  export type PatchCvmHashRequired = z.infer<typeof PatchCvmHashRequiredSchema>;
390
329
  declare const patchCvm: {
391
- (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<{
392
402
  requiresOnChainHash: false;
393
403
  correlationId: string;
394
404
  } | {
405
+ requiresOnChainHash: true;
406
+ composeHash: string;
395
407
  appId: string;
396
408
  deviceId: string;
397
- composeHash: string;
398
- requiresOnChainHash: true;
399
409
  kmsInfo: {
400
- version: string;
410
+ [x: string]: unknown;
401
411
  id: string;
402
412
  slug: string | null;
403
- chain_id: number | null;
404
413
  url: string;
414
+ version: string;
415
+ chain_id: number | null;
405
416
  kms_contract_address: `0x${string}`;
406
417
  gateway_app_id: `0x${string}`;
407
418
  k256_pubkey?: string | null | undefined;
408
- } & {
409
- [k: string]: unknown;
410
419
  };
411
420
  commitToken?: string | undefined;
412
421
  commitUrl?: string | undefined;
@@ -417,32 +426,244 @@ declare const patchCvm: {
417
426
  is_allowed: boolean;
418
427
  } | undefined;
419
428
  }>;
420
- <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: {
421
501
  schema: T;
422
- } | undefined): Promise<z.TypeOf<T>>;
423
- (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: {
424
575
  schema: false;
425
- } | undefined): Promise<unknown>;
576
+ }): Promise<unknown>;
426
577
  }, safePatchCvm: {
427
- (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<{
428
650
  requiresOnChainHash: false;
429
651
  correlationId: string;
430
652
  } | {
653
+ requiresOnChainHash: true;
654
+ composeHash: string;
431
655
  appId: string;
432
656
  deviceId: string;
433
- composeHash: string;
434
- requiresOnChainHash: true;
435
657
  kmsInfo: {
436
- version: string;
658
+ [x: string]: unknown;
437
659
  id: string;
438
660
  slug: string | null;
439
- chain_id: number | null;
440
661
  url: string;
662
+ version: string;
663
+ chain_id: number | null;
441
664
  kms_contract_address: `0x${string}`;
442
665
  gateway_app_id: `0x${string}`;
443
666
  k256_pubkey?: string | null | undefined;
444
- } & {
445
- [k: string]: unknown;
446
667
  };
447
668
  commitToken?: string | undefined;
448
669
  commitUrl?: string | undefined;
@@ -453,11 +674,153 @@ declare const patchCvm: {
453
674
  is_allowed: boolean;
454
675
  } | undefined;
455
676
  }>>;
456
- <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: {
457
749
  schema: T;
458
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
459
- (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: {
460
823
  schema: false;
461
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
824
+ }): Promise<import("../..").SafeResult<unknown>>;
462
825
  };
463
826
  export { patchCvm, safePatchCvm };