@phala/cloud 0.4.0 → 0.6.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 (114) 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 +92 -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/log-time.d.ts +5 -0
  44. package/dist/actions/cvms/logs.d.ts +64 -0
  45. package/dist/actions/cvms/patch_cvm.d.ts +665 -295
  46. package/dist/actions/cvms/provision_cvm.d.ts +329 -1561
  47. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +550 -953
  48. package/dist/actions/cvms/put_cvm_init_scripts.d.ts +150 -0
  49. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
  50. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
  51. package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
  52. package/dist/actions/cvms/restart_cvm.d.ts +3 -18
  53. package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
  54. package/dist/actions/cvms/start_cvm.d.ts +6 -12
  55. package/dist/actions/cvms/stop_cvm.d.ts +6 -12
  56. package/dist/actions/cvms/update_cvm_envs.d.ts +136 -203
  57. package/dist/actions/cvms/update_cvm_resources.d.ts +82 -48
  58. package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -132
  59. package/dist/actions/cvms/update_docker_compose.d.ts +127 -202
  60. package/dist/actions/cvms/update_os_image.d.ts +55 -28
  61. package/dist/actions/cvms/update_prelaunch_script.d.ts +127 -202
  62. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +118 -193
  63. package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
  64. package/dist/actions/get_available_nodes.d.ts +186 -1067
  65. package/dist/actions/get_cvm_create_resources.d.ts +138 -2489
  66. package/dist/actions/index.d.ts +9 -2
  67. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
  68. package/dist/actions/kms/get_kms_contract.d.ts +25 -27
  69. package/dist/actions/kms/get_kms_info.d.ts +3 -7
  70. package/dist/actions/kms/get_kms_list.d.ts +34 -88
  71. package/dist/actions/kms/get_kms_onchain_detail.d.ts +66 -664
  72. package/dist/actions/kms/list_kms_contract_nodes.d.ts +21 -53
  73. package/dist/actions/kms/list_kms_contracts.d.ts +33 -87
  74. package/dist/actions/kms/next_app_ids.d.ts +5 -25
  75. package/dist/actions/list-instance-types.d.ts +77 -257
  76. package/dist/actions/os_images/get_os_images.d.ts +38 -152
  77. package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
  78. package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
  79. package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
  80. package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
  81. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
  82. package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
  83. package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
  84. package/dist/actions/workspaces/get_workspace.d.ts +32 -28
  85. package/dist/actions/workspaces/get_workspace_nodes.d.ts +34 -321
  86. package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
  87. package/dist/actions/workspaces/list_workspaces.d.ts +67 -369
  88. package/dist/client.d.ts +23 -4
  89. package/dist/create-client.d.ts +1900 -1
  90. package/dist/credentials/current_user_v20251028.d.ts +1 -17
  91. package/dist/credentials/current_user_v20260121.d.ts +22 -227
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.js +6004 -4537
  94. package/dist/index.mjs +6033 -4625
  95. package/dist/types/app_compose.d.ts +108 -221
  96. package/dist/types/app_info_v20251028.d.ts +22 -1067
  97. package/dist/types/app_info_v20260121.d.ts +442 -8900
  98. package/dist/types/app_revision.d.ts +15 -371
  99. package/dist/types/client.d.ts +16 -0
  100. package/dist/types/common.d.ts +6 -0
  101. package/dist/types/cvm_id.d.ts +12 -57
  102. package/dist/types/cvm_info.d.ts +33 -460
  103. package/dist/types/cvm_info_v20251028.d.ts +100 -821
  104. package/dist/types/cvm_info_v20260121.d.ts +254 -3160
  105. package/dist/types/kms_contract.d.ts +2 -32
  106. package/dist/types/kms_info.d.ts +34 -68
  107. package/dist/user-agent.d.ts +30 -0
  108. package/dist/utils/define-action.d.ts +4 -4
  109. package/dist/utils/errors.d.ts +4 -36
  110. package/dist/utils/get_compose_hash.d.ts +36 -5
  111. package/dist/utils/get_mr_config_id.d.ts +94 -3
  112. package/dist/utils/index.d.ts +1 -1
  113. package/dist/utils/placement-request.d.ts +3 -0
  114. package/package.json +4 -4
@@ -117,255 +117,128 @@ import { type Client } from "../../client";
117
117
  * }
118
118
  * ```
119
119
  */
120
- export declare const UpdatePreLaunchScriptRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
120
+ export declare const UpdatePreLaunchScriptRequestSchema: z.ZodPipe<z.ZodObject<{
121
121
  id: z.ZodOptional<z.ZodString>;
122
122
  uuid: z.ZodOptional<z.ZodString>;
123
123
  app_id: z.ZodOptional<z.ZodString>;
124
124
  instance_id: z.ZodOptional<z.ZodString>;
125
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
126
- } & {
125
+ name: z.ZodOptional<z.ZodString>;
127
126
  pre_launch_script: z.ZodString;
128
127
  compose_hash: z.ZodOptional<z.ZodString>;
129
128
  transaction_hash: z.ZodOptional<z.ZodString>;
130
- }, "strip", z.ZodTypeAny, {
131
- pre_launch_script: string;
132
- name?: string | undefined;
133
- id?: string | undefined;
134
- uuid?: string | undefined;
135
- app_id?: string | undefined;
136
- instance_id?: string | undefined;
137
- compose_hash?: string | undefined;
138
- transaction_hash?: string | undefined;
129
+ }, z.core.$strip>, z.ZodTransform<{
130
+ cvmId: string;
131
+ request: {
132
+ pre_launch_script: string;
133
+ compose_hash: string | undefined;
134
+ transaction_hash: string | undefined;
135
+ };
136
+ _raw: {
137
+ pre_launch_script: string;
138
+ id?: string | undefined;
139
+ uuid?: string | undefined;
140
+ app_id?: string | undefined;
141
+ instance_id?: string | undefined;
142
+ name?: string | undefined;
143
+ compose_hash?: string | undefined;
144
+ transaction_hash?: string | undefined;
145
+ };
139
146
  }, {
140
147
  pre_launch_script: string;
141
- name?: string | undefined;
142
148
  id?: string | undefined;
143
149
  uuid?: string | undefined;
144
150
  app_id?: string | undefined;
145
151
  instance_id?: string | undefined;
152
+ name?: string | undefined;
146
153
  compose_hash?: string | undefined;
147
154
  transaction_hash?: string | undefined;
148
- }>, any, any>, {
149
- cvmId: any;
150
- request: {
151
- pre_launch_script: any;
152
- compose_hash: any;
153
- transaction_hash: any;
154
- };
155
- _raw: any;
156
- }, any>;
155
+ }>>;
157
156
  declare const UpdatePreLaunchScriptInProgressSchema: z.ZodObject<{
158
157
  status: z.ZodLiteral<"in_progress">;
159
158
  message: z.ZodString;
160
159
  correlation_id: z.ZodString;
161
- }, "strip", z.ZodTypeAny, {
162
- status: "in_progress";
163
- message: string;
164
- correlation_id: string;
165
- }, {
166
- status: "in_progress";
167
- message: string;
168
- correlation_id: string;
169
- }>;
160
+ }, z.core.$strip>;
170
161
  declare const UpdatePreLaunchScriptPreconditionRequiredSchema: z.ZodObject<{
171
162
  status: z.ZodLiteral<"precondition_required">;
172
163
  message: z.ZodString;
173
164
  compose_hash: z.ZodString;
174
165
  app_id: z.ZodString;
175
166
  device_id: z.ZodString;
176
- kms_info: z.ZodEffects<z.ZodObject<{
167
+ kms_info: z.ZodPipe<z.ZodObject<{
177
168
  id: z.ZodString;
178
169
  slug: z.ZodNullable<z.ZodString>;
179
170
  url: z.ZodString;
180
171
  version: z.ZodString;
181
172
  chain_id: z.ZodNullable<z.ZodNumber>;
182
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
183
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
173
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
174
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
184
175
  k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
186
- id: z.ZodString;
187
- slug: z.ZodNullable<z.ZodString>;
188
- url: z.ZodString;
189
- version: z.ZodString;
190
- chain_id: z.ZodNullable<z.ZodNumber>;
191
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
192
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
193
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
195
- id: z.ZodString;
196
- slug: z.ZodNullable<z.ZodString>;
197
- url: z.ZodString;
198
- version: z.ZodString;
199
- chain_id: z.ZodNullable<z.ZodNumber>;
200
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
201
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
202
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
203
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
204
- id: z.ZodString;
205
- slug: z.ZodNullable<z.ZodString>;
206
- url: z.ZodString;
207
- version: z.ZodString;
208
- chain_id: z.ZodNullable<z.ZodNumber>;
209
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
210
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
211
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
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
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
- }, z.ZodTypeAny, "passthrough">>;
222
- }, "strip", z.ZodTypeAny, {
223
- status: "precondition_required";
224
- message: string;
225
- app_id: string;
226
- compose_hash: string;
227
- device_id: string;
228
- kms_info: {
229
- version: string;
176
+ }, z.core.$loose>, z.ZodTransform<{
177
+ [x: string]: unknown;
230
178
  id: string;
231
179
  slug: string | null;
232
- chain_id: number | null;
233
180
  url: string;
181
+ version: string;
182
+ chain_id: number | null;
234
183
  kms_contract_address: `0x${string}`;
235
184
  gateway_app_id: `0x${string}`;
236
185
  k256_pubkey?: string | null | undefined;
237
- } & {
238
- [k: string]: unknown;
239
- };
240
- }, {
241
- status: "precondition_required";
242
- message: string;
243
- app_id: string;
244
- compose_hash: string;
245
- device_id: string;
246
- kms_info: {
247
- version: string;
186
+ }, {
187
+ [x: string]: unknown;
248
188
  id: string;
249
189
  slug: string | null;
250
- chain_id: number | null;
251
190
  url: string;
252
- kms_contract_address: string | null;
253
- gateway_app_id: string | null;
191
+ version: string;
192
+ chain_id: number | null;
193
+ kms_contract_address: `0x${string}`;
194
+ gateway_app_id: `0x${string}`;
254
195
  k256_pubkey?: string | null | undefined;
255
- } & {
256
- [k: string]: unknown;
257
- };
258
- }>;
259
- export declare const UpdatePreLaunchScriptResultSchema: z.ZodUnion<[z.ZodObject<{
196
+ }>>;
197
+ }, z.core.$strip>;
198
+ export declare const UpdatePreLaunchScriptResultSchema: z.ZodUnion<readonly [z.ZodObject<{
260
199
  status: z.ZodLiteral<"in_progress">;
261
200
  message: z.ZodString;
262
201
  correlation_id: z.ZodString;
263
- }, "strip", z.ZodTypeAny, {
264
- status: "in_progress";
265
- message: string;
266
- correlation_id: string;
267
- }, {
268
- status: "in_progress";
269
- message: string;
270
- correlation_id: string;
271
- }>, z.ZodObject<{
202
+ }, z.core.$strip>, z.ZodObject<{
272
203
  status: z.ZodLiteral<"precondition_required">;
273
204
  message: z.ZodString;
274
205
  compose_hash: z.ZodString;
275
206
  app_id: z.ZodString;
276
207
  device_id: z.ZodString;
277
- kms_info: z.ZodEffects<z.ZodObject<{
278
- id: z.ZodString;
279
- slug: z.ZodNullable<z.ZodString>;
280
- url: z.ZodString;
281
- version: z.ZodString;
282
- 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
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
286
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
287
- id: z.ZodString;
288
- slug: z.ZodNullable<z.ZodString>;
289
- url: z.ZodString;
290
- version: z.ZodString;
291
- chain_id: z.ZodNullable<z.ZodNumber>;
292
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
293
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
294
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
208
+ kms_info: z.ZodPipe<z.ZodObject<{
296
209
  id: z.ZodString;
297
210
  slug: z.ZodNullable<z.ZodString>;
298
211
  url: z.ZodString;
299
212
  version: z.ZodString;
300
213
  chain_id: z.ZodNullable<z.ZodNumber>;
301
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
302
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
214
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
215
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
303
216
  k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
305
- id: z.ZodString;
306
- slug: z.ZodNullable<z.ZodString>;
307
- url: z.ZodString;
308
- version: z.ZodString;
309
- chain_id: z.ZodNullable<z.ZodNumber>;
310
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
311
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
312
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
314
- id: z.ZodString;
315
- slug: z.ZodNullable<z.ZodString>;
316
- url: z.ZodString;
317
- version: z.ZodString;
318
- chain_id: z.ZodNullable<z.ZodNumber>;
319
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
320
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
321
- k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
- }, z.ZodTypeAny, "passthrough">>;
323
- }, "strip", z.ZodTypeAny, {
324
- status: "precondition_required";
325
- message: string;
326
- app_id: string;
327
- compose_hash: string;
328
- device_id: string;
329
- kms_info: {
330
- version: string;
217
+ }, z.core.$loose>, z.ZodTransform<{
218
+ [x: string]: unknown;
331
219
  id: string;
332
220
  slug: string | null;
333
- chain_id: number | null;
334
221
  url: string;
222
+ version: string;
223
+ chain_id: number | null;
335
224
  kms_contract_address: `0x${string}`;
336
225
  gateway_app_id: `0x${string}`;
337
226
  k256_pubkey?: string | null | undefined;
338
- } & {
339
- [k: string]: unknown;
340
- };
341
- }, {
342
- status: "precondition_required";
343
- message: string;
344
- app_id: string;
345
- compose_hash: string;
346
- device_id: string;
347
- kms_info: {
348
- version: string;
227
+ }, {
228
+ [x: string]: unknown;
349
229
  id: string;
350
230
  slug: string | null;
351
- chain_id: number | null;
352
231
  url: string;
353
- kms_contract_address: string | null;
354
- gateway_app_id: string | null;
232
+ version: string;
233
+ chain_id: number | null;
234
+ kms_contract_address: `0x${string}`;
235
+ gateway_app_id: `0x${string}`;
355
236
  k256_pubkey?: string | null | undefined;
356
- } & {
357
- [k: string]: unknown;
358
- };
359
- }>, z.ZodObject<{
237
+ }>>;
238
+ }, z.core.$strip>, z.ZodObject<{
360
239
  status: z.ZodLiteral<"no_change">;
361
240
  message: z.ZodString;
362
- }, "strip", z.ZodTypeAny, {
363
- status: "no_change";
364
- message: string;
365
- }, {
366
- status: "no_change";
367
- message: string;
368
- }>]>;
241
+ }, z.core.$strip>]>;
369
242
  export type UpdatePreLaunchScriptRequest = z.input<typeof UpdatePreLaunchScriptRequestSchema>;
370
243
  export type UpdatePreLaunchScriptResult = z.infer<typeof UpdatePreLaunchScriptResultSchema>;
371
244
  export type UpdatePreLaunchScriptInProgress = z.infer<typeof UpdatePreLaunchScriptInProgressSchema>;
@@ -379,70 +252,122 @@ export type UpdatePreLaunchScriptPreconditionRequired = z.infer<typeof UpdatePre
379
252
  * @returns Update result (either in_progress or precondition_required)
380
253
  */
381
254
  declare const updatePreLaunchScript: {
382
- (client: Client<import("../..").ApiVersion>, params?: any): Promise<{
255
+ (client: Client<import("../..").ApiVersion>, params: {
256
+ pre_launch_script: string;
257
+ id?: string | undefined;
258
+ uuid?: string | undefined;
259
+ app_id?: string | undefined;
260
+ instance_id?: string | undefined;
261
+ name?: string | undefined;
262
+ compose_hash?: string | undefined;
263
+ transaction_hash?: string | undefined;
264
+ }): Promise<{
383
265
  status: "in_progress";
384
266
  message: string;
385
267
  correlation_id: string;
386
268
  } | {
387
269
  status: "precondition_required";
388
270
  message: string;
389
- app_id: string;
390
271
  compose_hash: string;
272
+ app_id: string;
391
273
  device_id: string;
392
274
  kms_info: {
393
- version: string;
275
+ [x: string]: unknown;
394
276
  id: string;
395
277
  slug: string | null;
396
- chain_id: number | null;
397
278
  url: string;
279
+ version: string;
280
+ chain_id: number | null;
398
281
  kms_contract_address: `0x${string}`;
399
282
  gateway_app_id: `0x${string}`;
400
283
  k256_pubkey?: string | null | undefined;
401
- } & {
402
- [k: string]: unknown;
403
284
  };
404
285
  } | {
405
286
  status: "no_change";
406
287
  message: string;
407
288
  }>;
408
- <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
289
+ <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
290
+ pre_launch_script: string;
291
+ id?: string | undefined;
292
+ uuid?: string | undefined;
293
+ app_id?: string | undefined;
294
+ instance_id?: string | undefined;
295
+ name?: string | undefined;
296
+ compose_hash?: string | undefined;
297
+ transaction_hash?: string | undefined;
298
+ }, parameters: {
409
299
  schema: T;
410
- } | undefined): Promise<z.TypeOf<T>>;
411
- (client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
300
+ }): Promise<z.core.output<T>>;
301
+ (client: Client<import("../..").ApiVersion>, params: {
302
+ pre_launch_script: string;
303
+ id?: string | undefined;
304
+ uuid?: string | undefined;
305
+ app_id?: string | undefined;
306
+ instance_id?: string | undefined;
307
+ name?: string | undefined;
308
+ compose_hash?: string | undefined;
309
+ transaction_hash?: string | undefined;
310
+ }, parameters: {
412
311
  schema: false;
413
- } | undefined): Promise<unknown>;
312
+ }): Promise<unknown>;
414
313
  }, safeUpdatePreLaunchScript: {
415
- (client: Client<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
314
+ (client: Client<import("../..").ApiVersion>, params: {
315
+ pre_launch_script: string;
316
+ id?: string | undefined;
317
+ uuid?: string | undefined;
318
+ app_id?: string | undefined;
319
+ instance_id?: string | undefined;
320
+ name?: string | undefined;
321
+ compose_hash?: string | undefined;
322
+ transaction_hash?: string | undefined;
323
+ }): Promise<import("../..").SafeResult<{
416
324
  status: "in_progress";
417
325
  message: string;
418
326
  correlation_id: string;
419
327
  } | {
420
328
  status: "precondition_required";
421
329
  message: string;
422
- app_id: string;
423
330
  compose_hash: string;
331
+ app_id: string;
424
332
  device_id: string;
425
333
  kms_info: {
426
- version: string;
334
+ [x: string]: unknown;
427
335
  id: string;
428
336
  slug: string | null;
429
- chain_id: number | null;
430
337
  url: string;
338
+ version: string;
339
+ chain_id: number | null;
431
340
  kms_contract_address: `0x${string}`;
432
341
  gateway_app_id: `0x${string}`;
433
342
  k256_pubkey?: string | null | undefined;
434
- } & {
435
- [k: string]: unknown;
436
343
  };
437
344
  } | {
438
345
  status: "no_change";
439
346
  message: string;
440
347
  }>>;
441
- <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
348
+ <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
349
+ pre_launch_script: string;
350
+ id?: string | undefined;
351
+ uuid?: string | undefined;
352
+ app_id?: string | undefined;
353
+ instance_id?: string | undefined;
354
+ name?: string | undefined;
355
+ compose_hash?: string | undefined;
356
+ transaction_hash?: string | undefined;
357
+ }, parameters: {
442
358
  schema: T;
443
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
444
- (client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
359
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
360
+ (client: Client<import("../..").ApiVersion>, params: {
361
+ pre_launch_script: string;
362
+ id?: string | undefined;
363
+ uuid?: string | undefined;
364
+ app_id?: string | undefined;
365
+ instance_id?: string | undefined;
366
+ name?: string | undefined;
367
+ compose_hash?: string | undefined;
368
+ transaction_hash?: string | undefined;
369
+ }, parameters: {
445
370
  schema: false;
446
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
371
+ }): Promise<import("../..").SafeResult<unknown>>;
447
372
  };
448
373
  export { updatePreLaunchScript, safeUpdatePreLaunchScript };