@phala/cloud 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/actions/api_tokens/revoke_current_api_token.d.ts +47 -0
- package/dist/actions/apps/app_launch_token.d.ts +121 -0
- package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +17 -311
- package/dist/actions/apps/check_app_is_allowed.d.ts +20 -32
- package/dist/actions/apps/create_app_instance.d.ts +43 -63
- package/dist/actions/apps/get_app_attestation.d.ts +113 -779
- package/dist/actions/apps/get_app_cvms.d.ts +1 -5
- package/dist/actions/apps/get_app_device_allowlist.d.ts +26 -272
- package/dist/actions/apps/get_app_filter_options.d.ts +8 -24
- package/dist/actions/apps/get_app_info.d.ts +1 -5
- package/dist/actions/apps/get_app_list.d.ts +2 -26
- package/dist/actions/apps/get_app_revision_detail.d.ts +1 -9
- package/dist/actions/apps/get_app_revisions.d.ts +1 -9
- package/dist/actions/blockchains/add_compose_hash.d.ts +1 -13
- package/dist/actions/blockchains/add_device.d.ts +1 -13
- package/dist/actions/blockchains/deploy_app_auth.d.ts +3 -95
- package/dist/actions/blockchains/get_allowed_devices.d.ts +2 -12
- package/dist/actions/blockchains/remove_device.d.ts +1 -13
- package/dist/actions/blockchains/set_allow_any_device.d.ts +1 -13
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +13 -138
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +9 -45
- package/dist/actions/cvms/commit_cvm_provision.d.ts +32 -422
- package/dist/actions/cvms/commit_cvm_update.d.ts +70 -41
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +62 -35
- package/dist/actions/cvms/cvm_annotations.d.ts +152 -0
- package/dist/actions/cvms/delete_cvm.d.ts +8 -14
- package/dist/actions/cvms/get_available_os_images.d.ts +70 -111
- package/dist/actions/cvms/get_cvm_attestation.d.ts +34 -392
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +384 -614
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +25 -91
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +8 -14
- package/dist/actions/cvms/get_cvm_info.d.ts +6 -12
- package/dist/actions/cvms/get_cvm_init_scripts.d.ts +87 -0
- package/dist/actions/cvms/get_cvm_list.d.ts +7 -13
- package/dist/actions/cvms/get_cvm_network.d.ts +18 -50
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +8 -14
- package/dist/actions/cvms/get_cvm_state.d.ts +11 -37
- package/dist/actions/cvms/get_cvm_stats.d.ts +23 -149
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +19 -209
- package/dist/actions/cvms/get_cvm_user_config.d.ts +13 -24
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +9 -27
- package/dist/actions/cvms/patch_cvm.d.ts +658 -295
- package/dist/actions/cvms/provision_cvm.d.ts +326 -1561
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +550 -953
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
- package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
- package/dist/actions/cvms/restart_cvm.d.ts +3 -18
- package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
- package/dist/actions/cvms/start_cvm.d.ts +6 -12
- package/dist/actions/cvms/stop_cvm.d.ts +6 -12
- package/dist/actions/cvms/update_cvm_envs.d.ts +136 -203
- package/dist/actions/cvms/update_cvm_resources.d.ts +82 -48
- package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -132
- package/dist/actions/cvms/update_docker_compose.d.ts +127 -202
- package/dist/actions/cvms/update_os_image.d.ts +55 -28
- package/dist/actions/cvms/update_prelaunch_script.d.ts +127 -202
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +118 -193
- package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
- package/dist/actions/get_available_nodes.d.ts +186 -1067
- package/dist/actions/get_cvm_create_resources.d.ts +138 -2489
- package/dist/actions/index.d.ts +8 -2
- package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
- package/dist/actions/kms/get_kms_contract.d.ts +25 -27
- package/dist/actions/kms/get_kms_info.d.ts +3 -7
- package/dist/actions/kms/get_kms_list.d.ts +34 -88
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +66 -664
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +21 -53
- package/dist/actions/kms/list_kms_contracts.d.ts +33 -87
- package/dist/actions/kms/next_app_ids.d.ts +5 -25
- package/dist/actions/list-instance-types.d.ts +77 -257
- package/dist/actions/os_images/get_os_images.d.ts +38 -152
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
- package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
- package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
- package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
- package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
- package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
- package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
- package/dist/actions/workspaces/get_workspace.d.ts +32 -28
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +34 -321
- package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
- package/dist/actions/workspaces/list_workspaces.d.ts +67 -369
- package/dist/client.d.ts +23 -4
- package/dist/create-client.d.ts +1772 -1
- package/dist/credentials/current_user_v20251028.d.ts +1 -17
- package/dist/credentials/current_user_v20260121.d.ts +22 -227
- package/dist/index.d.ts +0 -1
- package/dist/index.js +5010 -4265
- package/dist/index.mjs +4892 -4192
- package/dist/types/app_compose.d.ts +108 -221
- package/dist/types/app_info_v20251028.d.ts +22 -1067
- package/dist/types/app_info_v20260121.d.ts +430 -8900
- package/dist/types/app_revision.d.ts +15 -371
- package/dist/types/client.d.ts +16 -0
- package/dist/types/common.d.ts +6 -0
- package/dist/types/cvm_id.d.ts +12 -57
- package/dist/types/cvm_info.d.ts +33 -460
- package/dist/types/cvm_info_v20251028.d.ts +99 -820
- package/dist/types/cvm_info_v20260121.d.ts +247 -3160
- package/dist/types/kms_contract.d.ts +2 -32
- package/dist/types/kms_info.d.ts +34 -68
- package/dist/utils/define-action.d.ts +4 -4
- package/dist/utils/errors.d.ts +4 -36
- package/dist/utils/get_compose_hash.d.ts +36 -5
- package/dist/utils/get_mr_config_id.d.ts +94 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/placement-request.d.ts +3 -0
- package/package.json +4 -4
|
@@ -31,305 +31,230 @@ import { z } from "zod";
|
|
|
31
31
|
* }
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
export declare const UpgradePreLaunchScriptRequestSchema: z.
|
|
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.
|
|
40
|
-
} & {
|
|
39
|
+
name: z.ZodOptional<z.ZodString>;
|
|
41
40
|
compose_hash: z.ZodOptional<z.ZodString>;
|
|
42
41
|
transaction_hash: z.ZodOptional<z.ZodString>;
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
}
|
|
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
|
-
},
|
|
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.
|
|
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
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
96
|
-
id: z.ZodString;
|
|
97
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
98
|
-
url: z.ZodString;
|
|
99
|
-
version: z.ZodString;
|
|
100
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
101
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
102
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
103
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
105
|
-
id: z.ZodString;
|
|
106
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
107
|
-
url: z.ZodString;
|
|
108
|
-
version: z.ZodString;
|
|
109
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
110
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
111
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
112
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
-
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
114
|
-
id: z.ZodString;
|
|
115
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
116
|
-
url: z.ZodString;
|
|
117
|
-
version: z.ZodString;
|
|
118
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
119
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
120
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
121
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
77
|
+
kms_info: z.ZodPipe<z.ZodObject<{
|
|
123
78
|
id: z.ZodString;
|
|
124
79
|
slug: z.ZodNullable<z.ZodString>;
|
|
125
80
|
url: z.ZodString;
|
|
126
81
|
version: z.ZodString;
|
|
127
82
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
128
|
-
kms_contract_address: z.
|
|
129
|
-
gateway_app_id: z.
|
|
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>>;
|
|
130
85
|
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
-
}, z.
|
|
132
|
-
|
|
133
|
-
status: "precondition_required";
|
|
134
|
-
message: string;
|
|
135
|
-
app_id: string;
|
|
136
|
-
compose_hash: string;
|
|
137
|
-
device_id: string;
|
|
138
|
-
kms_info: {
|
|
139
|
-
version: string;
|
|
86
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
87
|
+
[x: string]: unknown;
|
|
140
88
|
id: string;
|
|
141
89
|
slug: string | null;
|
|
142
|
-
chain_id: number | null;
|
|
143
90
|
url: string;
|
|
91
|
+
version: string;
|
|
92
|
+
chain_id: number | null;
|
|
144
93
|
kms_contract_address: `0x${string}`;
|
|
145
94
|
gateway_app_id: `0x${string}`;
|
|
146
95
|
k256_pubkey?: string | null | undefined;
|
|
147
|
-
}
|
|
148
|
-
[
|
|
149
|
-
};
|
|
150
|
-
}, {
|
|
151
|
-
status: "precondition_required";
|
|
152
|
-
message: string;
|
|
153
|
-
app_id: string;
|
|
154
|
-
compose_hash: string;
|
|
155
|
-
device_id: string;
|
|
156
|
-
kms_info: {
|
|
157
|
-
version: string;
|
|
96
|
+
}, {
|
|
97
|
+
[x: string]: unknown;
|
|
158
98
|
id: string;
|
|
159
99
|
slug: string | null;
|
|
160
|
-
chain_id: number | null;
|
|
161
100
|
url: string;
|
|
162
|
-
|
|
163
|
-
|
|
101
|
+
version: string;
|
|
102
|
+
chain_id: number | null;
|
|
103
|
+
kms_contract_address: `0x${string}`;
|
|
104
|
+
gateway_app_id: `0x${string}`;
|
|
164
105
|
k256_pubkey?: string | null | undefined;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}>;
|
|
169
|
-
export declare const UpgradePreLaunchScriptResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
106
|
+
}>>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
export declare const UpgradePreLaunchScriptResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
170
109
|
status: z.ZodLiteral<"in_progress">;
|
|
171
110
|
message: z.ZodString;
|
|
172
111
|
correlation_id: z.ZodString;
|
|
173
|
-
},
|
|
174
|
-
status: "in_progress";
|
|
175
|
-
message: string;
|
|
176
|
-
correlation_id: string;
|
|
177
|
-
}, {
|
|
178
|
-
status: "in_progress";
|
|
179
|
-
message: string;
|
|
180
|
-
correlation_id: string;
|
|
181
|
-
}>, z.ZodObject<{
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
182
113
|
status: z.ZodLiteral<"precondition_required">;
|
|
183
114
|
message: z.ZodString;
|
|
184
115
|
compose_hash: z.ZodString;
|
|
185
116
|
app_id: z.ZodString;
|
|
186
117
|
device_id: z.ZodString;
|
|
187
|
-
kms_info: z.
|
|
188
|
-
id: z.ZodString;
|
|
189
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
190
|
-
url: z.ZodString;
|
|
191
|
-
version: z.ZodString;
|
|
192
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
193
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
194
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
195
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
196
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
197
|
-
id: z.ZodString;
|
|
198
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
199
|
-
url: z.ZodString;
|
|
200
|
-
version: z.ZodString;
|
|
201
|
-
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
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
206
|
-
id: z.ZodString;
|
|
207
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
208
|
-
url: z.ZodString;
|
|
209
|
-
version: z.ZodString;
|
|
210
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
211
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
212
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
213
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
-
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
215
|
-
id: z.ZodString;
|
|
216
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
217
|
-
url: z.ZodString;
|
|
218
|
-
version: z.ZodString;
|
|
219
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
220
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
221
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
222
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
223
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
118
|
+
kms_info: z.ZodPipe<z.ZodObject<{
|
|
224
119
|
id: z.ZodString;
|
|
225
120
|
slug: z.ZodNullable<z.ZodString>;
|
|
226
121
|
url: z.ZodString;
|
|
227
122
|
version: z.ZodString;
|
|
228
123
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
229
|
-
kms_contract_address: z.
|
|
230
|
-
gateway_app_id: z.
|
|
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>>;
|
|
231
126
|
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
232
|
-
}, z.
|
|
233
|
-
|
|
234
|
-
status: "precondition_required";
|
|
235
|
-
message: string;
|
|
236
|
-
app_id: string;
|
|
237
|
-
compose_hash: string;
|
|
238
|
-
device_id: string;
|
|
239
|
-
kms_info: {
|
|
240
|
-
version: string;
|
|
127
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
128
|
+
[x: string]: unknown;
|
|
241
129
|
id: string;
|
|
242
130
|
slug: string | null;
|
|
243
|
-
chain_id: number | null;
|
|
244
131
|
url: string;
|
|
132
|
+
version: string;
|
|
133
|
+
chain_id: number | null;
|
|
245
134
|
kms_contract_address: `0x${string}`;
|
|
246
135
|
gateway_app_id: `0x${string}`;
|
|
247
136
|
k256_pubkey?: string | null | undefined;
|
|
248
|
-
}
|
|
249
|
-
[
|
|
250
|
-
};
|
|
251
|
-
}, {
|
|
252
|
-
status: "precondition_required";
|
|
253
|
-
message: string;
|
|
254
|
-
app_id: string;
|
|
255
|
-
compose_hash: string;
|
|
256
|
-
device_id: string;
|
|
257
|
-
kms_info: {
|
|
258
|
-
version: string;
|
|
137
|
+
}, {
|
|
138
|
+
[x: string]: unknown;
|
|
259
139
|
id: string;
|
|
260
140
|
slug: string | null;
|
|
261
|
-
chain_id: number | null;
|
|
262
141
|
url: string;
|
|
263
|
-
|
|
264
|
-
|
|
142
|
+
version: string;
|
|
143
|
+
chain_id: number | null;
|
|
144
|
+
kms_contract_address: `0x${string}`;
|
|
145
|
+
gateway_app_id: `0x${string}`;
|
|
265
146
|
k256_pubkey?: string | null | undefined;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
};
|
|
269
|
-
}>]>;
|
|
147
|
+
}>>;
|
|
148
|
+
}, z.core.$strip>]>;
|
|
270
149
|
export type UpgradePreLaunchScriptRequest = z.input<typeof UpgradePreLaunchScriptRequestSchema>;
|
|
271
150
|
export type UpgradePreLaunchScriptResult = z.infer<typeof UpgradePreLaunchScriptResultSchema>;
|
|
272
151
|
export type UpgradePreLaunchScriptInProgress = z.infer<typeof UpgradePreLaunchScriptInProgressSchema>;
|
|
273
152
|
export type UpgradePreLaunchScriptPreconditionRequired = z.infer<typeof UpgradePreLaunchScriptPreconditionRequiredSchema>;
|
|
274
153
|
declare const upgradePreLaunchScript: {
|
|
275
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params
|
|
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<{
|
|
276
163
|
status: "in_progress";
|
|
277
164
|
message: string;
|
|
278
165
|
correlation_id: string;
|
|
279
166
|
} | {
|
|
280
167
|
status: "precondition_required";
|
|
281
168
|
message: string;
|
|
282
|
-
app_id: string;
|
|
283
169
|
compose_hash: string;
|
|
170
|
+
app_id: string;
|
|
284
171
|
device_id: string;
|
|
285
172
|
kms_info: {
|
|
286
|
-
|
|
173
|
+
[x: string]: unknown;
|
|
287
174
|
id: string;
|
|
288
175
|
slug: string | null;
|
|
289
|
-
chain_id: number | null;
|
|
290
176
|
url: string;
|
|
177
|
+
version: string;
|
|
178
|
+
chain_id: number | null;
|
|
291
179
|
kms_contract_address: `0x${string}`;
|
|
292
180
|
gateway_app_id: `0x${string}`;
|
|
293
181
|
k256_pubkey?: string | null | undefined;
|
|
294
|
-
} & {
|
|
295
|
-
[k: string]: unknown;
|
|
296
182
|
};
|
|
297
183
|
}>;
|
|
298
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params
|
|
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: {
|
|
299
193
|
schema: T;
|
|
300
|
-
}
|
|
301
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params
|
|
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: {
|
|
302
204
|
schema: false;
|
|
303
|
-
}
|
|
205
|
+
}): Promise<unknown>;
|
|
304
206
|
}, safeUpgradePreLaunchScript: {
|
|
305
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params
|
|
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<{
|
|
306
216
|
status: "in_progress";
|
|
307
217
|
message: string;
|
|
308
218
|
correlation_id: string;
|
|
309
219
|
} | {
|
|
310
220
|
status: "precondition_required";
|
|
311
221
|
message: string;
|
|
312
|
-
app_id: string;
|
|
313
222
|
compose_hash: string;
|
|
223
|
+
app_id: string;
|
|
314
224
|
device_id: string;
|
|
315
225
|
kms_info: {
|
|
316
|
-
|
|
226
|
+
[x: string]: unknown;
|
|
317
227
|
id: string;
|
|
318
228
|
slug: string | null;
|
|
319
|
-
chain_id: number | null;
|
|
320
229
|
url: string;
|
|
230
|
+
version: string;
|
|
231
|
+
chain_id: number | null;
|
|
321
232
|
kms_contract_address: `0x${string}`;
|
|
322
233
|
gateway_app_id: `0x${string}`;
|
|
323
234
|
k256_pubkey?: string | null | undefined;
|
|
324
|
-
} & {
|
|
325
|
-
[k: string]: unknown;
|
|
326
235
|
};
|
|
327
236
|
}>>;
|
|
328
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params
|
|
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: {
|
|
329
246
|
schema: T;
|
|
330
|
-
}
|
|
331
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params
|
|
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: {
|
|
332
257
|
schema: false;
|
|
333
|
-
}
|
|
258
|
+
}): Promise<import("../..").SafeResult<unknown>>;
|
|
334
259
|
};
|
|
335
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
|
-
},
|
|
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
|
-
|
|
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)
|