@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
@@ -31,289 +31,230 @@ import { z } from "zod";
31
31
  * }
32
32
  * ```
33
33
  */
34
- export declare const UpgradePreLaunchScriptRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
34
+ export declare const UpgradePreLaunchScriptRequestSchema: z.ZodPipe<z.ZodObject<{
35
35
  id: z.ZodOptional<z.ZodString>;
36
36
  uuid: z.ZodOptional<z.ZodString>;
37
37
  app_id: z.ZodOptional<z.ZodString>;
38
38
  instance_id: z.ZodOptional<z.ZodString>;
39
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
40
- } & {
39
+ name: z.ZodOptional<z.ZodString>;
41
40
  compose_hash: z.ZodOptional<z.ZodString>;
42
41
  transaction_hash: z.ZodOptional<z.ZodString>;
43
- }, "strip", z.ZodTypeAny, {
44
- name?: string | undefined;
45
- id?: string | undefined;
46
- uuid?: string | undefined;
47
- app_id?: string | undefined;
48
- instance_id?: string | undefined;
49
- compose_hash?: string | undefined;
50
- transaction_hash?: string | undefined;
42
+ }, z.core.$strip>, z.ZodTransform<{
43
+ cvmId: string;
44
+ request: {
45
+ compose_hash: string | undefined;
46
+ transaction_hash: string | undefined;
47
+ };
48
+ _raw: {
49
+ id?: string | undefined;
50
+ uuid?: string | undefined;
51
+ app_id?: string | undefined;
52
+ instance_id?: string | undefined;
53
+ name?: string | undefined;
54
+ compose_hash?: string | undefined;
55
+ transaction_hash?: string | undefined;
56
+ };
51
57
  }, {
52
- name?: string | undefined;
53
58
  id?: string | undefined;
54
59
  uuid?: string | undefined;
55
60
  app_id?: string | undefined;
56
61
  instance_id?: string | undefined;
62
+ name?: string | undefined;
57
63
  compose_hash?: string | undefined;
58
64
  transaction_hash?: string | undefined;
59
- }>, any, any>, {
60
- cvmId: any;
61
- request: {
62
- compose_hash: any;
63
- transaction_hash: any;
64
- };
65
- _raw: any;
66
- }, any>;
65
+ }>>;
67
66
  declare const UpgradePreLaunchScriptInProgressSchema: z.ZodObject<{
68
67
  status: z.ZodLiteral<"in_progress">;
69
68
  message: z.ZodString;
70
69
  correlation_id: z.ZodString;
71
- }, "strip", z.ZodTypeAny, {
72
- status: "in_progress";
73
- message: string;
74
- correlation_id: string;
75
- }, {
76
- status: "in_progress";
77
- message: string;
78
- correlation_id: string;
79
- }>;
70
+ }, z.core.$strip>;
80
71
  declare const UpgradePreLaunchScriptPreconditionRequiredSchema: z.ZodObject<{
81
72
  status: z.ZodLiteral<"precondition_required">;
82
73
  message: z.ZodString;
83
74
  compose_hash: z.ZodString;
84
75
  app_id: z.ZodString;
85
76
  device_id: z.ZodString;
86
- kms_info: z.ZodEffects<z.ZodObject<{
87
- id: z.ZodString;
88
- slug: z.ZodNullable<z.ZodString>;
89
- url: z.ZodString;
90
- version: z.ZodString;
91
- chain_id: z.ZodNullable<z.ZodNumber>;
92
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
93
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
94
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
95
- id: z.ZodString;
96
- slug: z.ZodNullable<z.ZodString>;
97
- url: z.ZodString;
98
- version: z.ZodString;
99
- chain_id: z.ZodNullable<z.ZodNumber>;
100
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
101
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
102
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
103
- id: z.ZodString;
104
- slug: z.ZodNullable<z.ZodString>;
105
- url: z.ZodString;
106
- version: z.ZodString;
107
- chain_id: z.ZodNullable<z.ZodNumber>;
108
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
109
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
110
- }, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
77
+ kms_info: z.ZodPipe<z.ZodObject<{
111
78
  id: z.ZodString;
112
79
  slug: z.ZodNullable<z.ZodString>;
113
80
  url: z.ZodString;
114
81
  version: z.ZodString;
115
82
  chain_id: z.ZodNullable<z.ZodNumber>;
116
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
117
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
118
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
119
- id: z.ZodString;
120
- slug: z.ZodNullable<z.ZodString>;
121
- url: z.ZodString;
122
- version: z.ZodString;
123
- chain_id: z.ZodNullable<z.ZodNumber>;
124
- kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
125
- gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
126
- }, z.ZodTypeAny, "passthrough">>;
127
- }, "strip", z.ZodTypeAny, {
128
- status: "precondition_required";
129
- message: string;
130
- app_id: string;
131
- compose_hash: string;
132
- device_id: string;
133
- kms_info: {
134
- version: string;
83
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
84
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
85
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ }, z.core.$loose>, z.ZodTransform<{
87
+ [x: string]: unknown;
135
88
  id: string;
136
89
  slug: string | null;
137
- chain_id: number | null;
138
90
  url: string;
91
+ version: string;
92
+ chain_id: number | null;
139
93
  kms_contract_address: `0x${string}`;
140
94
  gateway_app_id: `0x${string}`;
141
- } & {
142
- [k: string]: unknown;
143
- };
144
- }, {
145
- status: "precondition_required";
146
- message: string;
147
- app_id: string;
148
- compose_hash: string;
149
- device_id: string;
150
- kms_info: {
151
- version: string;
95
+ k256_pubkey?: string | null | undefined;
96
+ }, {
97
+ [x: string]: unknown;
152
98
  id: string;
153
99
  slug: string | null;
154
- chain_id: number | null;
155
100
  url: string;
156
- kms_contract_address: string | null;
157
- gateway_app_id: string | null;
158
- } & {
159
- [k: string]: unknown;
160
- };
161
- }>;
162
- export declare const UpgradePreLaunchScriptResultSchema: z.ZodUnion<[z.ZodObject<{
101
+ version: string;
102
+ chain_id: number | null;
103
+ kms_contract_address: `0x${string}`;
104
+ gateway_app_id: `0x${string}`;
105
+ k256_pubkey?: string | null | undefined;
106
+ }>>;
107
+ }, z.core.$strip>;
108
+ export declare const UpgradePreLaunchScriptResultSchema: z.ZodUnion<readonly [z.ZodObject<{
163
109
  status: z.ZodLiteral<"in_progress">;
164
110
  message: z.ZodString;
165
111
  correlation_id: z.ZodString;
166
- }, "strip", z.ZodTypeAny, {
167
- status: "in_progress";
168
- message: string;
169
- correlation_id: string;
170
- }, {
171
- status: "in_progress";
172
- message: string;
173
- correlation_id: string;
174
- }>, z.ZodObject<{
112
+ }, z.core.$strip>, z.ZodObject<{
175
113
  status: z.ZodLiteral<"precondition_required">;
176
114
  message: z.ZodString;
177
115
  compose_hash: z.ZodString;
178
116
  app_id: z.ZodString;
179
117
  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<{
118
+ kms_info: z.ZodPipe<z.ZodObject<{
197
119
  id: z.ZodString;
198
120
  slug: z.ZodNullable<z.ZodString>;
199
121
  url: z.ZodString;
200
122
  version: z.ZodString;
201
123
  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;
124
+ kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
125
+ gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
126
+ k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
+ }, z.core.$loose>, z.ZodTransform<{
128
+ [x: string]: unknown;
229
129
  id: string;
230
130
  slug: string | null;
231
- chain_id: number | null;
232
131
  url: string;
132
+ version: string;
133
+ chain_id: number | null;
233
134
  kms_contract_address: `0x${string}`;
234
135
  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;
136
+ k256_pubkey?: string | null | undefined;
137
+ }, {
138
+ [x: string]: unknown;
246
139
  id: string;
247
140
  slug: string | null;
248
- chain_id: number | null;
249
141
  url: string;
250
- kms_contract_address: string | null;
251
- gateway_app_id: string | null;
252
- } & {
253
- [k: string]: unknown;
254
- };
255
- }>]>;
142
+ version: string;
143
+ chain_id: number | null;
144
+ kms_contract_address: `0x${string}`;
145
+ gateway_app_id: `0x${string}`;
146
+ k256_pubkey?: string | null | undefined;
147
+ }>>;
148
+ }, z.core.$strip>]>;
256
149
  export type UpgradePreLaunchScriptRequest = z.input<typeof UpgradePreLaunchScriptRequestSchema>;
257
150
  export type UpgradePreLaunchScriptResult = z.infer<typeof UpgradePreLaunchScriptResultSchema>;
258
151
  export type UpgradePreLaunchScriptInProgress = z.infer<typeof UpgradePreLaunchScriptInProgressSchema>;
259
152
  export type UpgradePreLaunchScriptPreconditionRequired = z.infer<typeof UpgradePreLaunchScriptPreconditionRequiredSchema>;
260
153
  declare const upgradePreLaunchScript: {
261
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
154
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
155
+ id?: string | undefined;
156
+ uuid?: string | undefined;
157
+ app_id?: string | undefined;
158
+ instance_id?: string | undefined;
159
+ name?: string | undefined;
160
+ compose_hash?: string | undefined;
161
+ transaction_hash?: string | undefined;
162
+ }): Promise<{
262
163
  status: "in_progress";
263
164
  message: string;
264
165
  correlation_id: string;
265
166
  } | {
266
167
  status: "precondition_required";
267
168
  message: string;
268
- app_id: string;
269
169
  compose_hash: string;
170
+ app_id: string;
270
171
  device_id: string;
271
172
  kms_info: {
272
- version: string;
173
+ [x: string]: unknown;
273
174
  id: string;
274
175
  slug: string | null;
275
- chain_id: number | null;
276
176
  url: string;
177
+ version: string;
178
+ chain_id: number | null;
277
179
  kms_contract_address: `0x${string}`;
278
180
  gateway_app_id: `0x${string}`;
279
- } & {
280
- [k: string]: unknown;
181
+ k256_pubkey?: string | null | undefined;
281
182
  };
282
183
  }>;
283
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
184
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
185
+ id?: string | undefined;
186
+ uuid?: string | undefined;
187
+ app_id?: string | undefined;
188
+ instance_id?: string | undefined;
189
+ name?: string | undefined;
190
+ compose_hash?: string | undefined;
191
+ transaction_hash?: string | undefined;
192
+ }, parameters: {
284
193
  schema: T;
285
- } | undefined): Promise<z.TypeOf<T>>;
286
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
194
+ }): Promise<z.core.output<T>>;
195
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
196
+ id?: string | undefined;
197
+ uuid?: string | undefined;
198
+ app_id?: string | undefined;
199
+ instance_id?: string | undefined;
200
+ name?: string | undefined;
201
+ compose_hash?: string | undefined;
202
+ transaction_hash?: string | undefined;
203
+ }, parameters: {
287
204
  schema: false;
288
- } | undefined): Promise<unknown>;
205
+ }): Promise<unknown>;
289
206
  }, safeUpgradePreLaunchScript: {
290
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
207
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
208
+ id?: string | undefined;
209
+ uuid?: string | undefined;
210
+ app_id?: string | undefined;
211
+ instance_id?: string | undefined;
212
+ name?: string | undefined;
213
+ compose_hash?: string | undefined;
214
+ transaction_hash?: string | undefined;
215
+ }): Promise<import("../..").SafeResult<{
291
216
  status: "in_progress";
292
217
  message: string;
293
218
  correlation_id: string;
294
219
  } | {
295
220
  status: "precondition_required";
296
221
  message: string;
297
- app_id: string;
298
222
  compose_hash: string;
223
+ app_id: string;
299
224
  device_id: string;
300
225
  kms_info: {
301
- version: string;
226
+ [x: string]: unknown;
302
227
  id: string;
303
228
  slug: string | null;
304
- chain_id: number | null;
305
229
  url: string;
230
+ version: string;
231
+ chain_id: number | null;
306
232
  kms_contract_address: `0x${string}`;
307
233
  gateway_app_id: `0x${string}`;
308
- } & {
309
- [k: string]: unknown;
234
+ k256_pubkey?: string | null | undefined;
310
235
  };
311
236
  }>>;
312
- <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
237
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
238
+ id?: string | undefined;
239
+ uuid?: string | undefined;
240
+ app_id?: string | undefined;
241
+ instance_id?: string | undefined;
242
+ name?: string | undefined;
243
+ compose_hash?: string | undefined;
244
+ transaction_hash?: string | undefined;
245
+ }, parameters: {
313
246
  schema: T;
314
- } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
315
- (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
247
+ }): Promise<import("../..").SafeResult<z.core.output<T>>>;
248
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
249
+ id?: string | undefined;
250
+ uuid?: string | undefined;
251
+ app_id?: string | undefined;
252
+ instance_id?: string | undefined;
253
+ name?: string | undefined;
254
+ compose_hash?: string | undefined;
255
+ transaction_hash?: string | undefined;
256
+ }, parameters: {
316
257
  schema: false;
317
- } | undefined): Promise<import("../..").SafeResult<unknown>>;
258
+ }): Promise<import("../..").SafeResult<unknown>>;
318
259
  };
319
260
  export { upgradePreLaunchScript, safeUpgradePreLaunchScript };
@@ -48,21 +48,9 @@ export declare const WatchCvmStateRequestSchema: z.ZodObject<{
48
48
  target: z.ZodString;
49
49
  interval: z.ZodDefault<z.ZodNumber>;
50
50
  timeout: z.ZodDefault<z.ZodNumber>;
51
- maxRetries: z.ZodDefault<z.ZodNumber>;
51
+ maxRetries: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<number>]>>;
52
52
  retryDelay: z.ZodDefault<z.ZodNumber>;
53
- }, "strip", z.ZodTypeAny, {
54
- timeout: number;
55
- retryDelay: number;
56
- target: string;
57
- maxRetries: number;
58
- interval: number;
59
- }, {
60
- target: string;
61
- timeout?: number | undefined;
62
- retryDelay?: number | undefined;
63
- maxRetries?: number | undefined;
64
- interval?: number | undefined;
65
- }>;
53
+ }, z.core.$strip>;
66
54
  /**
67
55
  * Options for watch operation
68
56
  */
@@ -81,7 +69,9 @@ export declare class WatchAbortedError extends Error {
81
69
  */
82
70
  export declare class MaxRetriesExceededError extends Error {
83
71
  readonly attempts: number;
84
- constructor(attempts: number);
72
+ readonly lastServerError?: SSEErrorEvent["data"] | undefined;
73
+ readonly lastAttemptError?: unknown | undefined;
74
+ constructor(attempts: number, lastServerError?: SSEErrorEvent["data"] | undefined, lastAttemptError?: unknown | undefined);
85
75
  }
86
76
  /**
87
77
  * Watch CVM state changes using Server-Sent Events (SSE)