@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
@@ -114,242 +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
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
189
- id: z.ZodString;
190
- slug: z.ZodNullable<z.ZodString>;
191
- url: z.ZodString;
192
- version: z.ZodString;
193
- chain_id: z.ZodNullable<z.ZodNumber>;
194
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
195
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
196
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
169
+ kms_info: z.ZodPipe<z.ZodObject<{
197
170
  id: z.ZodString;
198
171
  slug: z.ZodNullable<z.ZodString>;
199
172
  url: z.ZodString;
200
173
  version: z.ZodString;
201
174
  chain_id: z.ZodNullable<z.ZodNumber>;
202
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
203
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
204
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
205
- id: z.ZodString;
206
- slug: z.ZodNullable<z.ZodString>;
207
- url: z.ZodString;
208
- version: z.ZodString;
209
- chain_id: z.ZodNullable<z.ZodNumber>;
210
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
211
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
212
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
213
- id: z.ZodString;
214
- slug: z.ZodNullable<z.ZodString>;
215
- url: z.ZodString;
216
- version: z.ZodString;
217
- chain_id: z.ZodNullable<z.ZodNumber>;
218
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
219
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
220
- }, z.ZodTypeAny, "passthrough">>;
221
- }, "strip", z.ZodTypeAny, {
222
- status: "precondition_required";
223
- message: string;
224
- app_id: string;
225
- compose_hash: string;
226
- device_id: string;
227
- kms_info: {
228
- version: string;
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>>;
177
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ }, z.core.$loose>, z.ZodTransform<{
179
+ [x: string]: unknown;
229
180
  id: string;
230
181
  slug: string | null;
231
- chain_id: number | null;
232
182
  url: string;
183
+ version: string;
184
+ chain_id: number | null;
233
185
  kms_contract_address: `0x${string}`;
234
186
  gateway_app_id: `0x${string}`;
235
- } & {
236
- [k: string]: unknown;
237
- };
238
- }, {
239
- status: "precondition_required";
240
- message: string;
241
- app_id: string;
242
- compose_hash: string;
243
- device_id: string;
244
- kms_info: {
245
- version: string;
187
+ k256_pubkey?: string | null | undefined;
188
+ }, {
189
+ [x: string]: unknown;
246
190
  id: string;
247
191
  slug: string | null;
248
- chain_id: number | null;
249
192
  url: string;
250
- kms_contract_address: string | null;
251
- gateway_app_id: string | null;
252
- } & {
253
- [k: string]: unknown;
254
- };
255
- }>;
256
- export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
193
+ version: string;
194
+ chain_id: number | null;
195
+ kms_contract_address: `0x${string}`;
196
+ gateway_app_id: `0x${string}`;
197
+ k256_pubkey?: string | null | undefined;
198
+ }>>;
199
+ }, z.core.$strip>;
200
+ export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<readonly [z.ZodObject<{
257
201
  status: z.ZodLiteral<"in_progress">;
258
202
  message: z.ZodString;
259
203
  correlation_id: z.ZodString;
260
204
  allowed_envs_changed: z.ZodBoolean;
261
- }, "strip", z.ZodTypeAny, {
262
- status: "in_progress";
263
- message: string;
264
- correlation_id: string;
265
- allowed_envs_changed: boolean;
266
- }, {
267
- status: "in_progress";
268
- message: string;
269
- correlation_id: string;
270
- allowed_envs_changed: boolean;
271
- }>, z.ZodObject<{
205
+ }, z.core.$strip>, z.ZodObject<{
272
206
  status: z.ZodLiteral<"precondition_required">;
273
207
  message: z.ZodString;
274
208
  compose_hash: z.ZodString;
275
209
  app_id: z.ZodString;
276
210
  device_id: z.ZodString;
277
- kms_info: z.ZodEffects<z.ZodObject<{
211
+ kms_info: z.ZodPipe<z.ZodObject<{
278
212
  id: z.ZodString;
279
213
  slug: z.ZodNullable<z.ZodString>;
280
214
  url: z.ZodString;
281
215
  version: z.ZodString;
282
216
  chain_id: z.ZodNullable<z.ZodNumber>;
283
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
284
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
285
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
286
- id: z.ZodString;
287
- slug: z.ZodNullable<z.ZodString>;
288
- url: z.ZodString;
289
- version: z.ZodString;
290
- chain_id: z.ZodNullable<z.ZodNumber>;
291
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
292
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
293
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
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
- }, 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
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
310
- id: z.ZodString;
311
- slug: z.ZodNullable<z.ZodString>;
312
- url: z.ZodString;
313
- version: z.ZodString;
314
- chain_id: z.ZodNullable<z.ZodNumber>;
315
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
316
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
317
- }, z.ZodTypeAny, "passthrough">>;
318
- }, "strip", z.ZodTypeAny, {
319
- status: "precondition_required";
320
- message: string;
321
- app_id: string;
322
- compose_hash: string;
323
- device_id: string;
324
- kms_info: {
325
- version: string;
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>>;
219
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ }, z.core.$loose>, z.ZodTransform<{
221
+ [x: string]: unknown;
326
222
  id: string;
327
223
  slug: string | null;
328
- chain_id: number | null;
329
224
  url: string;
225
+ version: string;
226
+ chain_id: number | null;
330
227
  kms_contract_address: `0x${string}`;
331
228
  gateway_app_id: `0x${string}`;
332
- } & {
333
- [k: string]: unknown;
334
- };
335
- }, {
336
- status: "precondition_required";
337
- message: string;
338
- app_id: string;
339
- compose_hash: string;
340
- device_id: string;
341
- kms_info: {
342
- version: string;
229
+ k256_pubkey?: string | null | undefined;
230
+ }, {
231
+ [x: string]: unknown;
343
232
  id: string;
344
233
  slug: string | null;
345
- chain_id: number | null;
346
234
  url: string;
347
- kms_contract_address: string | null;
348
- gateway_app_id: string | null;
349
- } & {
350
- [k: string]: unknown;
351
- };
352
- }>]>;
235
+ version: string;
236
+ chain_id: number | null;
237
+ kms_contract_address: `0x${string}`;
238
+ gateway_app_id: `0x${string}`;
239
+ k256_pubkey?: string | null | undefined;
240
+ }>>;
241
+ }, z.core.$strip>]>;
353
242
  export type UpdateCvmEnvsRequest = z.input<typeof UpdateCvmEnvsRequestSchema>;
354
243
  export type UpdateCvmEnvsResult = z.infer<typeof UpdateCvmEnvsResultSchema>;
355
244
  export type UpdateCvmEnvsInProgress = z.infer<typeof UpdateCvmEnvsInProgressSchema>;
@@ -363,7 +252,17 @@ export type UpdateCvmEnvsPreconditionRequired = z.infer<typeof UpdateCvmEnvsPrec
363
252
  * @returns Update result (either in_progress or precondition_required)
364
253
  */
365
254
  declare const updateCvmEnvs: {
366
- (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<{
367
266
  status: "in_progress";
368
267
  message: string;
369
268
  correlation_id: string;
@@ -371,29 +270,59 @@ declare const updateCvmEnvs: {
371
270
  } | {
372
271
  status: "precondition_required";
373
272
  message: string;
374
- app_id: string;
375
273
  compose_hash: string;
274
+ app_id: string;
376
275
  device_id: string;
377
276
  kms_info: {
378
- version: string;
277
+ [x: string]: unknown;
379
278
  id: string;
380
279
  slug: string | null;
381
- chain_id: number | null;
382
280
  url: string;
281
+ version: string;
282
+ chain_id: number | null;
383
283
  kms_contract_address: `0x${string}`;
384
284
  gateway_app_id: `0x${string}`;
385
- } & {
386
- [k: string]: unknown;
285
+ k256_pubkey?: string | null | undefined;
387
286
  };
388
287
  }>;
389
- <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: {
390
299
  schema: T;
391
- } | undefined): Promise<z.TypeOf<T>>;
392
- (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: {
393
312
  schema: false;
394
- } | undefined): Promise<unknown>;
313
+ }): Promise<unknown>;
395
314
  }, safeUpdateCvmEnvs: {
396
- (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<{
397
326
  status: "in_progress";
398
327
  message: string;
399
328
  correlation_id: string;
@@ -401,26 +330,46 @@ declare const updateCvmEnvs: {
401
330
  } | {
402
331
  status: "precondition_required";
403
332
  message: string;
404
- app_id: string;
405
333
  compose_hash: string;
334
+ app_id: string;
406
335
  device_id: string;
407
336
  kms_info: {
408
- version: string;
337
+ [x: string]: unknown;
409
338
  id: string;
410
339
  slug: string | null;
411
- chain_id: number | null;
412
340
  url: string;
341
+ version: string;
342
+ chain_id: number | null;
413
343
  kms_contract_address: `0x${string}`;
414
344
  gateway_app_id: `0x${string}`;
415
- } & {
416
- [k: string]: unknown;
345
+ k256_pubkey?: string | null | undefined;
417
346
  };
418
347
  }>>;
419
- <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: {
420
359
  schema: T;
421
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
422
- (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: {
423
372
  schema: false;
424
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
373
+ }): Promise<import("../..").SafeResult<unknown>>;
425
374
  };
426
375
  export { updateCvmEnvs, safeUpdateCvmEnvs };
@@ -15,62 +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>;
35
+ declare const UpdateCvmResourcesResponseSchema: z.ZodObject<{
36
+ message: z.ZodString;
37
+ correlation_id: z.ZodString;
38
+ status: z.ZodString;
39
+ }, z.core.$strip>;
40
+ export type UpdateCvmResourcesResponse = z.infer<typeof UpdateCvmResourcesResponseSchema>;
59
41
  declare const updateCvmResources: {
60
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<void>;
61
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
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<{
54
+ message: string;
55
+ correlation_id: string;
56
+ status: string;
57
+ }>;
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: {
62
70
  schema: T;
63
- } | undefined): Promise<z.TypeOf<T>>;
64
- (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: {
65
84
  schema: false;
66
- } | undefined): Promise<unknown>;
85
+ }): Promise<unknown>;
67
86
  }, safeUpdateCvmResources: {
68
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<void>>;
69
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
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<{
99
+ message: string;
100
+ correlation_id: string;
101
+ status: string;
102
+ }>>;
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: {
70
115
  schema: T;
71
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
72
- (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: {
73
129
  schema: false;
74
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
130
+ }): Promise<import("../..").SafeResult<unknown>>;
75
131
  };
76
132
  export { updateCvmResources, safeUpdateCvmResources };