@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
@@ -117,232 +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<{
177
- id: z.ZodString;
178
- slug: z.ZodNullable<z.ZodString>;
179
- url: z.ZodString;
180
- version: z.ZodString;
181
- 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>;
184
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
185
- id: z.ZodString;
186
- slug: z.ZodNullable<z.ZodString>;
187
- url: z.ZodString;
188
- version: z.ZodString;
189
- chain_id: z.ZodNullable<z.ZodNumber>;
190
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
191
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
192
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
167
+ kms_info: z.ZodPipe<z.ZodObject<{
193
168
  id: z.ZodString;
194
169
  slug: z.ZodNullable<z.ZodString>;
195
170
  url: z.ZodString;
196
171
  version: z.ZodString;
197
172
  chain_id: z.ZodNullable<z.ZodNumber>;
198
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
199
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
200
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
201
- id: z.ZodString;
202
- slug: z.ZodNullable<z.ZodString>;
203
- url: z.ZodString;
204
- version: z.ZodString;
205
- chain_id: z.ZodNullable<z.ZodNumber>;
206
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
207
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
208
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
209
- id: z.ZodString;
210
- slug: z.ZodNullable<z.ZodString>;
211
- url: z.ZodString;
212
- version: z.ZodString;
213
- chain_id: z.ZodNullable<z.ZodNumber>;
214
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
215
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
216
- }, z.ZodTypeAny, "passthrough">>;
217
- }, "strip", z.ZodTypeAny, {
218
- status: "precondition_required";
219
- message: string;
220
- app_id: string;
221
- compose_hash: string;
222
- device_id: string;
223
- kms_info: {
224
- version: string;
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>>;
175
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
+ }, z.core.$loose>, z.ZodTransform<{
177
+ [x: string]: unknown;
225
178
  id: string;
226
179
  slug: string | null;
227
- chain_id: number | null;
228
180
  url: string;
181
+ version: string;
182
+ chain_id: number | null;
229
183
  kms_contract_address: `0x${string}`;
230
184
  gateway_app_id: `0x${string}`;
231
- } & {
232
- [k: string]: unknown;
233
- };
234
- }, {
235
- status: "precondition_required";
236
- message: string;
237
- app_id: string;
238
- compose_hash: string;
239
- device_id: string;
240
- kms_info: {
241
- version: string;
185
+ k256_pubkey?: string | null | undefined;
186
+ }, {
187
+ [x: string]: unknown;
242
188
  id: string;
243
189
  slug: string | null;
244
- chain_id: number | null;
245
190
  url: string;
246
- kms_contract_address: string | null;
247
- gateway_app_id: string | null;
248
- } & {
249
- [k: string]: unknown;
250
- };
251
- }>;
252
- export declare const UpdatePreLaunchScriptResultSchema: z.ZodUnion<[z.ZodObject<{
191
+ version: string;
192
+ chain_id: number | null;
193
+ kms_contract_address: `0x${string}`;
194
+ gateway_app_id: `0x${string}`;
195
+ k256_pubkey?: string | null | undefined;
196
+ }>>;
197
+ }, z.core.$strip>;
198
+ export declare const UpdatePreLaunchScriptResultSchema: z.ZodUnion<readonly [z.ZodObject<{
253
199
  status: z.ZodLiteral<"in_progress">;
254
200
  message: z.ZodString;
255
201
  correlation_id: z.ZodString;
256
- }, "strip", z.ZodTypeAny, {
257
- status: "in_progress";
258
- message: string;
259
- correlation_id: string;
260
- }, {
261
- status: "in_progress";
262
- message: string;
263
- correlation_id: string;
264
- }>, z.ZodObject<{
202
+ }, z.core.$strip>, z.ZodObject<{
265
203
  status: z.ZodLiteral<"precondition_required">;
266
204
  message: z.ZodString;
267
205
  compose_hash: z.ZodString;
268
206
  app_id: z.ZodString;
269
207
  device_id: z.ZodString;
270
- kms_info: z.ZodEffects<z.ZodObject<{
208
+ kms_info: z.ZodPipe<z.ZodObject<{
271
209
  id: z.ZodString;
272
210
  slug: z.ZodNullable<z.ZodString>;
273
211
  url: z.ZodString;
274
212
  version: z.ZodString;
275
213
  chain_id: z.ZodNullable<z.ZodNumber>;
276
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
277
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
278
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
279
- id: z.ZodString;
280
- slug: z.ZodNullable<z.ZodString>;
281
- url: z.ZodString;
282
- version: z.ZodString;
283
- chain_id: z.ZodNullable<z.ZodNumber>;
284
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
285
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
286
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
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
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
295
- id: z.ZodString;
296
- slug: z.ZodNullable<z.ZodString>;
297
- url: z.ZodString;
298
- version: z.ZodString;
299
- chain_id: z.ZodNullable<z.ZodNumber>;
300
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
301
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
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
- }, z.ZodTypeAny, "passthrough">>;
311
- }, "strip", z.ZodTypeAny, {
312
- status: "precondition_required";
313
- message: string;
314
- app_id: string;
315
- compose_hash: string;
316
- device_id: string;
317
- kms_info: {
318
- version: string;
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>>;
216
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ }, z.core.$loose>, z.ZodTransform<{
218
+ [x: string]: unknown;
319
219
  id: string;
320
220
  slug: string | null;
321
- chain_id: number | null;
322
221
  url: string;
222
+ version: string;
223
+ chain_id: number | null;
323
224
  kms_contract_address: `0x${string}`;
324
225
  gateway_app_id: `0x${string}`;
325
- } & {
326
- [k: string]: unknown;
327
- };
328
- }, {
329
- status: "precondition_required";
330
- message: string;
331
- app_id: string;
332
- compose_hash: string;
333
- device_id: string;
334
- kms_info: {
335
- version: string;
226
+ k256_pubkey?: string | null | undefined;
227
+ }, {
228
+ [x: string]: unknown;
336
229
  id: string;
337
230
  slug: string | null;
338
- chain_id: number | null;
339
231
  url: string;
340
- kms_contract_address: string | null;
341
- gateway_app_id: string | null;
342
- } & {
343
- [k: string]: unknown;
344
- };
345
- }>]>;
232
+ version: string;
233
+ chain_id: number | null;
234
+ kms_contract_address: `0x${string}`;
235
+ gateway_app_id: `0x${string}`;
236
+ k256_pubkey?: string | null | undefined;
237
+ }>>;
238
+ }, z.core.$strip>, z.ZodObject<{
239
+ status: z.ZodLiteral<"no_change">;
240
+ message: z.ZodString;
241
+ }, z.core.$strip>]>;
346
242
  export type UpdatePreLaunchScriptRequest = z.input<typeof UpdatePreLaunchScriptRequestSchema>;
347
243
  export type UpdatePreLaunchScriptResult = z.infer<typeof UpdatePreLaunchScriptResultSchema>;
348
244
  export type UpdatePreLaunchScriptInProgress = z.infer<typeof UpdatePreLaunchScriptInProgressSchema>;
@@ -356,62 +252,122 @@ export type UpdatePreLaunchScriptPreconditionRequired = z.infer<typeof UpdatePre
356
252
  * @returns Update result (either in_progress or precondition_required)
357
253
  */
358
254
  declare const updatePreLaunchScript: {
359
- (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<{
360
265
  status: "in_progress";
361
266
  message: string;
362
267
  correlation_id: string;
363
268
  } | {
364
269
  status: "precondition_required";
365
270
  message: string;
366
- app_id: string;
367
271
  compose_hash: string;
272
+ app_id: string;
368
273
  device_id: string;
369
274
  kms_info: {
370
- version: string;
275
+ [x: string]: unknown;
371
276
  id: string;
372
277
  slug: string | null;
373
- chain_id: number | null;
374
278
  url: string;
279
+ version: string;
280
+ chain_id: number | null;
375
281
  kms_contract_address: `0x${string}`;
376
282
  gateway_app_id: `0x${string}`;
377
- } & {
378
- [k: string]: unknown;
283
+ k256_pubkey?: string | null | undefined;
379
284
  };
285
+ } | {
286
+ status: "no_change";
287
+ message: string;
380
288
  }>;
381
- <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: {
382
299
  schema: T;
383
- } | undefined): Promise<z.TypeOf<T>>;
384
- (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: {
385
311
  schema: false;
386
- } | undefined): Promise<unknown>;
312
+ }): Promise<unknown>;
387
313
  }, safeUpdatePreLaunchScript: {
388
- (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<{
389
324
  status: "in_progress";
390
325
  message: string;
391
326
  correlation_id: string;
392
327
  } | {
393
328
  status: "precondition_required";
394
329
  message: string;
395
- app_id: string;
396
330
  compose_hash: string;
331
+ app_id: string;
397
332
  device_id: string;
398
333
  kms_info: {
399
- version: string;
334
+ [x: string]: unknown;
400
335
  id: string;
401
336
  slug: string | null;
402
- chain_id: number | null;
403
337
  url: string;
338
+ version: string;
339
+ chain_id: number | null;
404
340
  kms_contract_address: `0x${string}`;
405
341
  gateway_app_id: `0x${string}`;
406
- } & {
407
- [k: string]: unknown;
342
+ k256_pubkey?: string | null | undefined;
408
343
  };
344
+ } | {
345
+ status: "no_change";
346
+ message: string;
409
347
  }>>;
410
- <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: {
411
358
  schema: T;
412
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
413
- (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: {
414
370
  schema: false;
415
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
371
+ }): Promise<import("../..").SafeResult<unknown>>;
416
372
  };
417
373
  export { updatePreLaunchScript, safeUpdatePreLaunchScript };