@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
@@ -114,256 +114,131 @@ import { type Client } from "../../client";
114
114
  * }
115
115
  * ```
116
116
  */
117
- export declare const UpdateCvmEnvsRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
117
+ export declare const UpdateCvmEnvsRequestSchema: z.ZodPipe<z.ZodObject<{
118
118
  id: z.ZodOptional<z.ZodString>;
119
119
  uuid: z.ZodOptional<z.ZodString>;
120
120
  app_id: z.ZodOptional<z.ZodString>;
121
121
  instance_id: z.ZodOptional<z.ZodString>;
122
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
123
- } & {
122
+ name: z.ZodOptional<z.ZodString>;
124
123
  encrypted_env: z.ZodString;
125
- env_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
124
+ env_keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
126
125
  compose_hash: z.ZodOptional<z.ZodString>;
127
126
  transaction_hash: z.ZodOptional<z.ZodString>;
128
- }, "strip", z.ZodTypeAny, {
129
- encrypted_env: string;
130
- name?: string | undefined;
131
- id?: string | undefined;
132
- uuid?: string | undefined;
133
- app_id?: string | undefined;
134
- instance_id?: string | undefined;
135
- compose_hash?: string | undefined;
136
- env_keys?: string[] | undefined;
137
- transaction_hash?: string | undefined;
127
+ }, z.core.$strip>, z.ZodTransform<{
128
+ cvmId: string;
129
+ request: {
130
+ encrypted_env: string;
131
+ env_keys: string[] | undefined;
132
+ compose_hash: string | undefined;
133
+ transaction_hash: string | undefined;
134
+ };
135
+ _raw: {
136
+ encrypted_env: string;
137
+ id?: string | undefined;
138
+ uuid?: string | undefined;
139
+ app_id?: string | undefined;
140
+ instance_id?: string | undefined;
141
+ name?: string | undefined;
142
+ env_keys?: string[] | undefined;
143
+ compose_hash?: string | undefined;
144
+ transaction_hash?: string | undefined;
145
+ };
138
146
  }, {
139
147
  encrypted_env: string;
140
- name?: string | undefined;
141
148
  id?: string | undefined;
142
149
  uuid?: string | undefined;
143
150
  app_id?: string | undefined;
144
151
  instance_id?: string | undefined;
145
- compose_hash?: string | undefined;
152
+ name?: string | undefined;
146
153
  env_keys?: string[] | undefined;
154
+ compose_hash?: string | undefined;
147
155
  transaction_hash?: string | undefined;
148
- }>, any, any>, {
149
- cvmId: any;
150
- request: {
151
- encrypted_env: any;
152
- env_keys: any;
153
- compose_hash: any;
154
- transaction_hash: any;
155
- };
156
- _raw: any;
157
- }, any>;
156
+ }>>;
158
157
  declare const UpdateCvmEnvsInProgressSchema: z.ZodObject<{
159
158
  status: z.ZodLiteral<"in_progress">;
160
159
  message: z.ZodString;
161
160
  correlation_id: z.ZodString;
162
161
  allowed_envs_changed: z.ZodBoolean;
163
- }, "strip", z.ZodTypeAny, {
164
- status: "in_progress";
165
- message: string;
166
- correlation_id: string;
167
- allowed_envs_changed: boolean;
168
- }, {
169
- status: "in_progress";
170
- message: string;
171
- correlation_id: string;
172
- allowed_envs_changed: boolean;
173
- }>;
162
+ }, z.core.$strip>;
174
163
  declare const UpdateCvmEnvsPreconditionRequiredSchema: z.ZodObject<{
175
164
  status: z.ZodLiteral<"precondition_required">;
176
165
  message: z.ZodString;
177
166
  compose_hash: z.ZodString;
178
167
  app_id: z.ZodString;
179
168
  device_id: z.ZodString;
180
- kms_info: z.ZodEffects<z.ZodObject<{
181
- id: z.ZodString;
182
- slug: z.ZodNullable<z.ZodString>;
183
- url: z.ZodString;
184
- version: z.ZodString;
185
- chain_id: z.ZodNullable<z.ZodNumber>;
186
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
187
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
188
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
190
- id: z.ZodString;
191
- slug: z.ZodNullable<z.ZodString>;
192
- url: z.ZodString;
193
- version: z.ZodString;
194
- chain_id: z.ZodNullable<z.ZodNumber>;
195
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
196
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
197
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
198
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
199
- id: z.ZodString;
200
- slug: z.ZodNullable<z.ZodString>;
201
- url: z.ZodString;
202
- version: z.ZodString;
203
- chain_id: z.ZodNullable<z.ZodNumber>;
204
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
205
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
206
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
207
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
169
+ kms_info: z.ZodPipe<z.ZodObject<{
208
170
  id: z.ZodString;
209
171
  slug: z.ZodNullable<z.ZodString>;
210
172
  url: z.ZodString;
211
173
  version: z.ZodString;
212
174
  chain_id: z.ZodNullable<z.ZodNumber>;
213
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
214
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
175
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
176
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
215
177
  k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
217
- id: z.ZodString;
218
- slug: z.ZodNullable<z.ZodString>;
219
- url: z.ZodString;
220
- version: z.ZodString;
221
- chain_id: z.ZodNullable<z.ZodNumber>;
222
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
223
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
224
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
- }, z.ZodTypeAny, "passthrough">>;
226
- }, "strip", z.ZodTypeAny, {
227
- status: "precondition_required";
228
- message: string;
229
- app_id: string;
230
- compose_hash: string;
231
- device_id: string;
232
- kms_info: {
233
- version: string;
178
+ }, z.core.$loose>, z.ZodTransform<{
179
+ [x: string]: unknown;
234
180
  id: string;
235
181
  slug: string | null;
236
- chain_id: number | null;
237
182
  url: string;
183
+ version: string;
184
+ chain_id: number | null;
238
185
  kms_contract_address: `0x${string}`;
239
186
  gateway_app_id: `0x${string}`;
240
187
  k256_pubkey?: string | null | undefined;
241
- } & {
242
- [k: string]: unknown;
243
- };
244
- }, {
245
- status: "precondition_required";
246
- message: string;
247
- app_id: string;
248
- compose_hash: string;
249
- device_id: string;
250
- kms_info: {
251
- version: string;
188
+ }, {
189
+ [x: string]: unknown;
252
190
  id: string;
253
191
  slug: string | null;
254
- chain_id: number | null;
255
192
  url: string;
256
- kms_contract_address: string | null;
257
- gateway_app_id: string | null;
193
+ version: string;
194
+ chain_id: number | null;
195
+ kms_contract_address: `0x${string}`;
196
+ gateway_app_id: `0x${string}`;
258
197
  k256_pubkey?: string | null | undefined;
259
- } & {
260
- [k: string]: unknown;
261
- };
262
- }>;
263
- export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
198
+ }>>;
199
+ }, z.core.$strip>;
200
+ export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<readonly [z.ZodObject<{
264
201
  status: z.ZodLiteral<"in_progress">;
265
202
  message: z.ZodString;
266
203
  correlation_id: z.ZodString;
267
204
  allowed_envs_changed: z.ZodBoolean;
268
- }, "strip", z.ZodTypeAny, {
269
- status: "in_progress";
270
- message: string;
271
- correlation_id: string;
272
- allowed_envs_changed: boolean;
273
- }, {
274
- status: "in_progress";
275
- message: string;
276
- correlation_id: string;
277
- allowed_envs_changed: boolean;
278
- }>, z.ZodObject<{
205
+ }, z.core.$strip>, z.ZodObject<{
279
206
  status: z.ZodLiteral<"precondition_required">;
280
207
  message: z.ZodString;
281
208
  compose_hash: z.ZodString;
282
209
  app_id: z.ZodString;
283
210
  device_id: z.ZodString;
284
- kms_info: z.ZodEffects<z.ZodObject<{
285
- id: z.ZodString;
286
- slug: z.ZodNullable<z.ZodString>;
287
- url: z.ZodString;
288
- version: z.ZodString;
289
- chain_id: z.ZodNullable<z.ZodNumber>;
290
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
291
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
292
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
293
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
294
- id: z.ZodString;
295
- slug: z.ZodNullable<z.ZodString>;
296
- url: z.ZodString;
297
- version: z.ZodString;
298
- chain_id: z.ZodNullable<z.ZodNumber>;
299
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
300
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
301
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
303
- id: z.ZodString;
304
- slug: z.ZodNullable<z.ZodString>;
305
- url: z.ZodString;
306
- version: z.ZodString;
307
- chain_id: z.ZodNullable<z.ZodNumber>;
308
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
309
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
310
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
312
- id: z.ZodString;
313
- slug: z.ZodNullable<z.ZodString>;
314
- url: z.ZodString;
315
- version: z.ZodString;
316
- chain_id: z.ZodNullable<z.ZodNumber>;
317
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
318
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
319
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
211
+ kms_info: z.ZodPipe<z.ZodObject<{
321
212
  id: z.ZodString;
322
213
  slug: z.ZodNullable<z.ZodString>;
323
214
  url: z.ZodString;
324
215
  version: z.ZodString;
325
216
  chain_id: z.ZodNullable<z.ZodNumber>;
326
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
327
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
217
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
218
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
328
219
  k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
- }, z.ZodTypeAny, "passthrough">>;
330
- }, "strip", z.ZodTypeAny, {
331
- status: "precondition_required";
332
- message: string;
333
- app_id: string;
334
- compose_hash: string;
335
- device_id: string;
336
- kms_info: {
337
- version: string;
220
+ }, z.core.$loose>, z.ZodTransform<{
221
+ [x: string]: unknown;
338
222
  id: string;
339
223
  slug: string | null;
340
- chain_id: number | null;
341
224
  url: string;
225
+ version: string;
226
+ chain_id: number | null;
342
227
  kms_contract_address: `0x${string}`;
343
228
  gateway_app_id: `0x${string}`;
344
229
  k256_pubkey?: string | null | undefined;
345
- } & {
346
- [k: string]: unknown;
347
- };
348
- }, {
349
- status: "precondition_required";
350
- message: string;
351
- app_id: string;
352
- compose_hash: string;
353
- device_id: string;
354
- kms_info: {
355
- version: string;
230
+ }, {
231
+ [x: string]: unknown;
356
232
  id: string;
357
233
  slug: string | null;
358
- chain_id: number | null;
359
234
  url: string;
360
- kms_contract_address: string | null;
361
- gateway_app_id: string | null;
235
+ version: string;
236
+ chain_id: number | null;
237
+ kms_contract_address: `0x${string}`;
238
+ gateway_app_id: `0x${string}`;
362
239
  k256_pubkey?: string | null | undefined;
363
- } & {
364
- [k: string]: unknown;
365
- };
366
- }>]>;
240
+ }>>;
241
+ }, z.core.$strip>]>;
367
242
  export type UpdateCvmEnvsRequest = z.input<typeof UpdateCvmEnvsRequestSchema>;
368
243
  export type UpdateCvmEnvsResult = z.infer<typeof UpdateCvmEnvsResultSchema>;
369
244
  export type UpdateCvmEnvsInProgress = z.infer<typeof UpdateCvmEnvsInProgressSchema>;
@@ -377,7 +252,17 @@ export type UpdateCvmEnvsPreconditionRequired = z.infer<typeof UpdateCvmEnvsPrec
377
252
  * @returns Update result (either in_progress or precondition_required)
378
253
  */
379
254
  declare const updateCvmEnvs: {
380
- (client: Client<import("../..").ApiVersion>, params?: any): Promise<{
255
+ (client: Client<import("../..").ApiVersion>, params: {
256
+ encrypted_env: string;
257
+ id?: string | undefined;
258
+ uuid?: string | undefined;
259
+ app_id?: string | undefined;
260
+ instance_id?: string | undefined;
261
+ name?: string | undefined;
262
+ env_keys?: string[] | undefined;
263
+ compose_hash?: string | undefined;
264
+ transaction_hash?: string | undefined;
265
+ }): Promise<{
381
266
  status: "in_progress";
382
267
  message: string;
383
268
  correlation_id: string;
@@ -385,30 +270,59 @@ declare const updateCvmEnvs: {
385
270
  } | {
386
271
  status: "precondition_required";
387
272
  message: string;
388
- app_id: string;
389
273
  compose_hash: string;
274
+ app_id: string;
390
275
  device_id: string;
391
276
  kms_info: {
392
- version: string;
277
+ [x: string]: unknown;
393
278
  id: string;
394
279
  slug: string | null;
395
- chain_id: number | null;
396
280
  url: string;
281
+ version: string;
282
+ chain_id: number | null;
397
283
  kms_contract_address: `0x${string}`;
398
284
  gateway_app_id: `0x${string}`;
399
285
  k256_pubkey?: string | null | undefined;
400
- } & {
401
- [k: string]: unknown;
402
286
  };
403
287
  }>;
404
- <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
288
+ <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
289
+ encrypted_env: string;
290
+ id?: string | undefined;
291
+ uuid?: string | undefined;
292
+ app_id?: string | undefined;
293
+ instance_id?: string | undefined;
294
+ name?: string | undefined;
295
+ env_keys?: string[] | undefined;
296
+ compose_hash?: string | undefined;
297
+ transaction_hash?: string | undefined;
298
+ }, parameters: {
405
299
  schema: T;
406
- } | undefined): Promise<z.TypeOf<T>>;
407
- (client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
300
+ }): Promise<z.core.output<T>>;
301
+ (client: Client<import("../..").ApiVersion>, params: {
302
+ encrypted_env: string;
303
+ id?: string | undefined;
304
+ uuid?: string | undefined;
305
+ app_id?: string | undefined;
306
+ instance_id?: string | undefined;
307
+ name?: string | undefined;
308
+ env_keys?: string[] | undefined;
309
+ compose_hash?: string | undefined;
310
+ transaction_hash?: string | undefined;
311
+ }, parameters: {
408
312
  schema: false;
409
- } | undefined): Promise<unknown>;
313
+ }): Promise<unknown>;
410
314
  }, safeUpdateCvmEnvs: {
411
- (client: Client<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
315
+ (client: Client<import("../..").ApiVersion>, params: {
316
+ encrypted_env: string;
317
+ id?: string | undefined;
318
+ uuid?: string | undefined;
319
+ app_id?: string | undefined;
320
+ instance_id?: string | undefined;
321
+ name?: string | undefined;
322
+ env_keys?: string[] | undefined;
323
+ compose_hash?: string | undefined;
324
+ transaction_hash?: string | undefined;
325
+ }): Promise<import("../..").SafeResult<{
412
326
  status: "in_progress";
413
327
  message: string;
414
328
  correlation_id: string;
@@ -416,27 +330,46 @@ declare const updateCvmEnvs: {
416
330
  } | {
417
331
  status: "precondition_required";
418
332
  message: string;
419
- app_id: string;
420
333
  compose_hash: string;
334
+ app_id: string;
421
335
  device_id: string;
422
336
  kms_info: {
423
- version: string;
337
+ [x: string]: unknown;
424
338
  id: string;
425
339
  slug: string | null;
426
- chain_id: number | null;
427
340
  url: string;
341
+ version: string;
342
+ chain_id: number | null;
428
343
  kms_contract_address: `0x${string}`;
429
344
  gateway_app_id: `0x${string}`;
430
345
  k256_pubkey?: string | null | undefined;
431
- } & {
432
- [k: string]: unknown;
433
346
  };
434
347
  }>>;
435
- <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
348
+ <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
349
+ encrypted_env: string;
350
+ id?: string | undefined;
351
+ uuid?: string | undefined;
352
+ app_id?: string | undefined;
353
+ instance_id?: string | undefined;
354
+ name?: string | undefined;
355
+ env_keys?: string[] | undefined;
356
+ compose_hash?: string | undefined;
357
+ transaction_hash?: string | undefined;
358
+ }, parameters: {
436
359
  schema: T;
437
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
438
- (client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
360
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
361
+ (client: Client<import("../..").ApiVersion>, params: {
362
+ encrypted_env: string;
363
+ id?: string | undefined;
364
+ uuid?: string | undefined;
365
+ app_id?: string | undefined;
366
+ instance_id?: string | undefined;
367
+ name?: string | undefined;
368
+ env_keys?: string[] | undefined;
369
+ compose_hash?: string | undefined;
370
+ transaction_hash?: string | undefined;
371
+ }, parameters: {
439
372
  schema: false;
440
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
373
+ }): Promise<import("../..").SafeResult<unknown>>;
441
374
  };
442
375
  export { updateCvmEnvs, safeUpdateCvmEnvs };
@@ -15,84 +15,118 @@ import { z } from "zod";
15
15
  * vcpu: 4,
16
16
  * memory: 8192,
17
17
  * disk_size: 50,
18
- * allow_restart: true
19
18
  * });
20
19
  * console.log('Resource update initiated');
21
20
  * ```
22
21
  */
23
- export declare const UpdateCvmResourcesRequestSchema: z.ZodEffects<z.ZodObject<{
22
+ export declare const UpdateCvmResourcesRequestSchema: z.ZodObject<{
24
23
  id: z.ZodOptional<z.ZodString>;
25
24
  uuid: z.ZodOptional<z.ZodString>;
26
25
  app_id: z.ZodOptional<z.ZodString>;
27
26
  instance_id: z.ZodOptional<z.ZodString>;
28
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
29
- } & {
27
+ name: z.ZodOptional<z.ZodString>;
30
28
  vcpu: z.ZodOptional<z.ZodNumber>;
31
29
  memory: z.ZodOptional<z.ZodNumber>;
32
30
  disk_size: z.ZodOptional<z.ZodNumber>;
33
31
  instance_type: z.ZodOptional<z.ZodString>;
34
32
  allow_restart: z.ZodOptional<z.ZodBoolean>;
35
- }, "strip", z.ZodTypeAny, {
36
- name?: string | undefined;
37
- id?: string | undefined;
38
- uuid?: string | undefined;
39
- app_id?: string | undefined;
40
- instance_id?: string | undefined;
41
- vcpu?: number | undefined;
42
- memory?: number | undefined;
43
- disk_size?: number | undefined;
44
- instance_type?: string | undefined;
45
- allow_restart?: boolean | undefined;
46
- }, {
47
- name?: string | undefined;
48
- id?: string | undefined;
49
- uuid?: string | undefined;
50
- app_id?: string | undefined;
51
- instance_id?: string | undefined;
52
- vcpu?: number | undefined;
53
- memory?: number | undefined;
54
- disk_size?: number | undefined;
55
- instance_type?: string | undefined;
56
- allow_restart?: boolean | undefined;
57
- }>, any, any>;
33
+ }, z.core.$strip>;
58
34
  export type UpdateCvmResourcesRequest = z.infer<typeof UpdateCvmResourcesRequestSchema>;
59
35
  declare const UpdateCvmResourcesResponseSchema: z.ZodObject<{
60
36
  message: z.ZodString;
61
37
  correlation_id: z.ZodString;
62
38
  status: z.ZodString;
63
- }, "strip", z.ZodTypeAny, {
64
- status: string;
65
- message: string;
66
- correlation_id: string;
67
- }, {
68
- status: string;
69
- message: string;
70
- correlation_id: string;
71
- }>;
39
+ }, z.core.$strip>;
72
40
  export type UpdateCvmResourcesResponse = z.infer<typeof UpdateCvmResourcesResponseSchema>;
73
41
  declare const updateCvmResources: {
74
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
75
- status: string;
42
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
43
+ id?: string | undefined;
44
+ uuid?: string | undefined;
45
+ app_id?: string | undefined;
46
+ instance_id?: string | undefined;
47
+ name?: string | undefined;
48
+ vcpu?: number | undefined;
49
+ memory?: number | undefined;
50
+ disk_size?: number | undefined;
51
+ instance_type?: string | undefined;
52
+ allow_restart?: boolean | undefined;
53
+ }): Promise<{
76
54
  message: string;
77
55
  correlation_id: string;
56
+ status: string;
78
57
  }>;
79
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
58
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
59
+ id?: string | undefined;
60
+ uuid?: string | undefined;
61
+ app_id?: string | undefined;
62
+ instance_id?: string | undefined;
63
+ name?: string | undefined;
64
+ vcpu?: number | undefined;
65
+ memory?: number | undefined;
66
+ disk_size?: number | undefined;
67
+ instance_type?: string | undefined;
68
+ allow_restart?: boolean | undefined;
69
+ }, parameters: {
80
70
  schema: T;
81
- } | undefined): Promise<z.TypeOf<T>>;
82
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
71
+ }): Promise<z.core.output<T>>;
72
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
73
+ id?: string | undefined;
74
+ uuid?: string | undefined;
75
+ app_id?: string | undefined;
76
+ instance_id?: string | undefined;
77
+ name?: string | undefined;
78
+ vcpu?: number | undefined;
79
+ memory?: number | undefined;
80
+ disk_size?: number | undefined;
81
+ instance_type?: string | undefined;
82
+ allow_restart?: boolean | undefined;
83
+ }, parameters: {
83
84
  schema: false;
84
- } | undefined): Promise<unknown>;
85
+ }): Promise<unknown>;
85
86
  }, safeUpdateCvmResources: {
86
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
87
- status: string;
87
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
88
+ id?: string | undefined;
89
+ uuid?: string | undefined;
90
+ app_id?: string | undefined;
91
+ instance_id?: string | undefined;
92
+ name?: string | undefined;
93
+ vcpu?: number | undefined;
94
+ memory?: number | undefined;
95
+ disk_size?: number | undefined;
96
+ instance_type?: string | undefined;
97
+ allow_restart?: boolean | undefined;
98
+ }): Promise<import("../..").SafeResult<{
88
99
  message: string;
89
100
  correlation_id: string;
101
+ status: string;
90
102
  }>>;
91
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
103
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
104
+ id?: string | undefined;
105
+ uuid?: string | undefined;
106
+ app_id?: string | undefined;
107
+ instance_id?: string | undefined;
108
+ name?: string | undefined;
109
+ vcpu?: number | undefined;
110
+ memory?: number | undefined;
111
+ disk_size?: number | undefined;
112
+ instance_type?: string | undefined;
113
+ allow_restart?: boolean | undefined;
114
+ }, parameters: {
92
115
  schema: T;
93
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
94
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
116
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
117
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
118
+ id?: string | undefined;
119
+ uuid?: string | undefined;
120
+ app_id?: string | undefined;
121
+ instance_id?: string | undefined;
122
+ name?: string | undefined;
123
+ vcpu?: number | undefined;
124
+ memory?: number | undefined;
125
+ disk_size?: number | undefined;
126
+ instance_type?: string | undefined;
127
+ allow_restart?: boolean | undefined;
128
+ }, parameters: {
95
129
  schema: false;
96
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
130
+ }): Promise<import("../..").SafeResult<unknown>>;
97
131
  };
98
132
  export { updateCvmResources, safeUpdateCvmResources };