@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
|
@@ -120,255 +120,128 @@ import { type Client } from "../../client";
|
|
|
120
120
|
* }
|
|
121
121
|
* ```
|
|
122
122
|
*/
|
|
123
|
-
export declare const UpdateDockerComposeRequestSchema: z.
|
|
123
|
+
export declare const UpdateDockerComposeRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
124
124
|
id: z.ZodOptional<z.ZodString>;
|
|
125
125
|
uuid: z.ZodOptional<z.ZodString>;
|
|
126
126
|
app_id: z.ZodOptional<z.ZodString>;
|
|
127
127
|
instance_id: z.ZodOptional<z.ZodString>;
|
|
128
|
-
name: z.ZodOptional<z.
|
|
129
|
-
} & {
|
|
128
|
+
name: z.ZodOptional<z.ZodString>;
|
|
130
129
|
docker_compose_file: z.ZodString;
|
|
131
130
|
compose_hash: z.ZodOptional<z.ZodString>;
|
|
132
131
|
transaction_hash: z.ZodOptional<z.ZodString>;
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
132
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
133
|
+
cvmId: string;
|
|
134
|
+
request: {
|
|
135
|
+
docker_compose_file: string;
|
|
136
|
+
compose_hash: string | undefined;
|
|
137
|
+
transaction_hash: string | undefined;
|
|
138
|
+
};
|
|
139
|
+
_raw: {
|
|
140
|
+
docker_compose_file: string;
|
|
141
|
+
id?: string | undefined;
|
|
142
|
+
uuid?: string | undefined;
|
|
143
|
+
app_id?: string | undefined;
|
|
144
|
+
instance_id?: string | undefined;
|
|
145
|
+
name?: string | undefined;
|
|
146
|
+
compose_hash?: string | undefined;
|
|
147
|
+
transaction_hash?: string | undefined;
|
|
148
|
+
};
|
|
142
149
|
}, {
|
|
143
150
|
docker_compose_file: string;
|
|
144
|
-
name?: string | undefined;
|
|
145
151
|
id?: string | undefined;
|
|
146
152
|
uuid?: string | undefined;
|
|
147
153
|
app_id?: string | undefined;
|
|
148
154
|
instance_id?: string | undefined;
|
|
155
|
+
name?: string | undefined;
|
|
149
156
|
compose_hash?: string | undefined;
|
|
150
157
|
transaction_hash?: string | undefined;
|
|
151
|
-
}
|
|
152
|
-
cvmId: any;
|
|
153
|
-
request: {
|
|
154
|
-
docker_compose_file: any;
|
|
155
|
-
compose_hash: any;
|
|
156
|
-
transaction_hash: any;
|
|
157
|
-
};
|
|
158
|
-
_raw: any;
|
|
159
|
-
}, any>;
|
|
158
|
+
}>>;
|
|
160
159
|
declare const UpdateDockerComposeInProgressSchema: z.ZodObject<{
|
|
161
160
|
status: z.ZodLiteral<"in_progress">;
|
|
162
161
|
message: z.ZodString;
|
|
163
162
|
correlation_id: z.ZodString;
|
|
164
|
-
},
|
|
165
|
-
status: "in_progress";
|
|
166
|
-
message: string;
|
|
167
|
-
correlation_id: string;
|
|
168
|
-
}, {
|
|
169
|
-
status: "in_progress";
|
|
170
|
-
message: string;
|
|
171
|
-
correlation_id: string;
|
|
172
|
-
}>;
|
|
163
|
+
}, z.core.$strip>;
|
|
173
164
|
declare const UpdateDockerComposePreconditionRequiredSchema: z.ZodObject<{
|
|
174
165
|
status: z.ZodLiteral<"precondition_required">;
|
|
175
166
|
message: z.ZodString;
|
|
176
167
|
compose_hash: z.ZodString;
|
|
177
168
|
app_id: z.ZodString;
|
|
178
169
|
device_id: z.ZodString;
|
|
179
|
-
kms_info: z.
|
|
170
|
+
kms_info: z.ZodPipe<z.ZodObject<{
|
|
180
171
|
id: z.ZodString;
|
|
181
172
|
slug: z.ZodNullable<z.ZodString>;
|
|
182
173
|
url: z.ZodString;
|
|
183
174
|
version: z.ZodString;
|
|
184
175
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
185
|
-
kms_contract_address: z.
|
|
186
|
-
gateway_app_id: z.
|
|
176
|
+
kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
|
|
177
|
+
gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
|
|
187
178
|
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
|
-
},
|
|
189
|
-
|
|
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
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
198
|
-
id: z.ZodString;
|
|
199
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
200
|
-
url: z.ZodString;
|
|
201
|
-
version: z.ZodString;
|
|
202
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
203
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
204
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
205
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
206
|
-
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
207
|
-
id: z.ZodString;
|
|
208
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
209
|
-
url: z.ZodString;
|
|
210
|
-
version: z.ZodString;
|
|
211
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
212
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
213
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
214
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
216
|
-
id: z.ZodString;
|
|
217
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
218
|
-
url: z.ZodString;
|
|
219
|
-
version: z.ZodString;
|
|
220
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
221
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
222
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
223
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
224
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
225
|
-
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
status: "precondition_required";
|
|
227
|
-
message: string;
|
|
228
|
-
app_id: string;
|
|
229
|
-
compose_hash: string;
|
|
230
|
-
device_id: string;
|
|
231
|
-
kms_info: {
|
|
232
|
-
version: string;
|
|
179
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
180
|
+
[x: string]: unknown;
|
|
233
181
|
id: string;
|
|
234
182
|
slug: string | null;
|
|
235
|
-
chain_id: number | null;
|
|
236
183
|
url: string;
|
|
184
|
+
version: string;
|
|
185
|
+
chain_id: number | null;
|
|
237
186
|
kms_contract_address: `0x${string}`;
|
|
238
187
|
gateway_app_id: `0x${string}`;
|
|
239
188
|
k256_pubkey?: string | null | undefined;
|
|
240
|
-
}
|
|
241
|
-
[
|
|
242
|
-
};
|
|
243
|
-
}, {
|
|
244
|
-
status: "precondition_required";
|
|
245
|
-
message: string;
|
|
246
|
-
app_id: string;
|
|
247
|
-
compose_hash: string;
|
|
248
|
-
device_id: string;
|
|
249
|
-
kms_info: {
|
|
250
|
-
version: string;
|
|
189
|
+
}, {
|
|
190
|
+
[x: string]: unknown;
|
|
251
191
|
id: string;
|
|
252
192
|
slug: string | null;
|
|
253
|
-
chain_id: number | null;
|
|
254
193
|
url: string;
|
|
255
|
-
|
|
256
|
-
|
|
194
|
+
version: string;
|
|
195
|
+
chain_id: number | null;
|
|
196
|
+
kms_contract_address: `0x${string}`;
|
|
197
|
+
gateway_app_id: `0x${string}`;
|
|
257
198
|
k256_pubkey?: string | null | undefined;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}>;
|
|
262
|
-
export declare const UpdateDockerComposeResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
199
|
+
}>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
export declare const UpdateDockerComposeResultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
263
202
|
status: z.ZodLiteral<"in_progress">;
|
|
264
203
|
message: z.ZodString;
|
|
265
204
|
correlation_id: z.ZodString;
|
|
266
|
-
},
|
|
267
|
-
status: "in_progress";
|
|
268
|
-
message: string;
|
|
269
|
-
correlation_id: string;
|
|
270
|
-
}, {
|
|
271
|
-
status: "in_progress";
|
|
272
|
-
message: string;
|
|
273
|
-
correlation_id: string;
|
|
274
|
-
}>, z.ZodObject<{
|
|
205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
275
206
|
status: z.ZodLiteral<"precondition_required">;
|
|
276
207
|
message: z.ZodString;
|
|
277
208
|
compose_hash: z.ZodString;
|
|
278
209
|
app_id: z.ZodString;
|
|
279
210
|
device_id: z.ZodString;
|
|
280
|
-
kms_info: z.
|
|
281
|
-
id: z.ZodString;
|
|
282
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
283
|
-
url: z.ZodString;
|
|
284
|
-
version: z.ZodString;
|
|
285
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
286
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
287
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
288
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
289
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
290
|
-
id: z.ZodString;
|
|
291
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
292
|
-
url: z.ZodString;
|
|
293
|
-
version: z.ZodString;
|
|
294
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
295
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
296
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
297
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
211
|
+
kms_info: z.ZodPipe<z.ZodObject<{
|
|
299
212
|
id: z.ZodString;
|
|
300
213
|
slug: z.ZodNullable<z.ZodString>;
|
|
301
214
|
url: z.ZodString;
|
|
302
215
|
version: z.ZodString;
|
|
303
216
|
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
304
|
-
kms_contract_address: z.
|
|
305
|
-
gateway_app_id: z.
|
|
217
|
+
kms_contract_address: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
|
|
218
|
+
gateway_app_id: z.ZodPipe<z.ZodNullable<z.ZodString>, z.ZodTransform<`0x${string}`, string | null>>;
|
|
306
219
|
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
307
|
-
}, z.
|
|
308
|
-
|
|
309
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
310
|
-
url: z.ZodString;
|
|
311
|
-
version: z.ZodString;
|
|
312
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
313
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
314
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
315
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
317
|
-
id: z.ZodString;
|
|
318
|
-
slug: z.ZodNullable<z.ZodString>;
|
|
319
|
-
url: z.ZodString;
|
|
320
|
-
version: z.ZodString;
|
|
321
|
-
chain_id: z.ZodNullable<z.ZodNumber>;
|
|
322
|
-
kms_contract_address: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
323
|
-
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
324
|
-
k256_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
325
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
326
|
-
}, "strip", z.ZodTypeAny, {
|
|
327
|
-
status: "precondition_required";
|
|
328
|
-
message: string;
|
|
329
|
-
app_id: string;
|
|
330
|
-
compose_hash: string;
|
|
331
|
-
device_id: string;
|
|
332
|
-
kms_info: {
|
|
333
|
-
version: string;
|
|
220
|
+
}, z.core.$loose>, z.ZodTransform<{
|
|
221
|
+
[x: string]: unknown;
|
|
334
222
|
id: string;
|
|
335
223
|
slug: string | null;
|
|
336
|
-
chain_id: number | null;
|
|
337
224
|
url: string;
|
|
225
|
+
version: string;
|
|
226
|
+
chain_id: number | null;
|
|
338
227
|
kms_contract_address: `0x${string}`;
|
|
339
228
|
gateway_app_id: `0x${string}`;
|
|
340
229
|
k256_pubkey?: string | null | undefined;
|
|
341
|
-
}
|
|
342
|
-
[
|
|
343
|
-
};
|
|
344
|
-
}, {
|
|
345
|
-
status: "precondition_required";
|
|
346
|
-
message: string;
|
|
347
|
-
app_id: string;
|
|
348
|
-
compose_hash: string;
|
|
349
|
-
device_id: string;
|
|
350
|
-
kms_info: {
|
|
351
|
-
version: string;
|
|
230
|
+
}, {
|
|
231
|
+
[x: string]: unknown;
|
|
352
232
|
id: string;
|
|
353
233
|
slug: string | null;
|
|
354
|
-
chain_id: number | null;
|
|
355
234
|
url: string;
|
|
356
|
-
|
|
357
|
-
|
|
235
|
+
version: string;
|
|
236
|
+
chain_id: number | null;
|
|
237
|
+
kms_contract_address: `0x${string}`;
|
|
238
|
+
gateway_app_id: `0x${string}`;
|
|
358
239
|
k256_pubkey?: string | null | undefined;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
};
|
|
362
|
-
}>, z.ZodObject<{
|
|
240
|
+
}>>;
|
|
241
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
363
242
|
status: z.ZodLiteral<"no_change">;
|
|
364
243
|
message: z.ZodString;
|
|
365
|
-
},
|
|
366
|
-
status: "no_change";
|
|
367
|
-
message: string;
|
|
368
|
-
}, {
|
|
369
|
-
status: "no_change";
|
|
370
|
-
message: string;
|
|
371
|
-
}>]>;
|
|
244
|
+
}, z.core.$strip>]>;
|
|
372
245
|
export type UpdateDockerComposeRequest = z.input<typeof UpdateDockerComposeRequestSchema>;
|
|
373
246
|
export type UpdateDockerComposeResult = z.infer<typeof UpdateDockerComposeResultSchema>;
|
|
374
247
|
export type UpdateDockerComposeInProgress = z.infer<typeof UpdateDockerComposeInProgressSchema>;
|
|
@@ -382,70 +255,122 @@ export type UpdateDockerComposePreconditionRequired = z.infer<typeof UpdateDocke
|
|
|
382
255
|
* @returns Update result (either in_progress or precondition_required)
|
|
383
256
|
*/
|
|
384
257
|
declare const updateDockerCompose: {
|
|
385
|
-
(client: Client<import("../..").ApiVersion>, params
|
|
258
|
+
(client: Client<import("../..").ApiVersion>, params: {
|
|
259
|
+
docker_compose_file: string;
|
|
260
|
+
id?: string | undefined;
|
|
261
|
+
uuid?: string | undefined;
|
|
262
|
+
app_id?: string | undefined;
|
|
263
|
+
instance_id?: string | undefined;
|
|
264
|
+
name?: string | undefined;
|
|
265
|
+
compose_hash?: string | undefined;
|
|
266
|
+
transaction_hash?: string | undefined;
|
|
267
|
+
}): Promise<{
|
|
386
268
|
status: "in_progress";
|
|
387
269
|
message: string;
|
|
388
270
|
correlation_id: string;
|
|
389
271
|
} | {
|
|
390
272
|
status: "precondition_required";
|
|
391
273
|
message: string;
|
|
392
|
-
app_id: string;
|
|
393
274
|
compose_hash: string;
|
|
275
|
+
app_id: string;
|
|
394
276
|
device_id: string;
|
|
395
277
|
kms_info: {
|
|
396
|
-
|
|
278
|
+
[x: string]: unknown;
|
|
397
279
|
id: string;
|
|
398
280
|
slug: string | null;
|
|
399
|
-
chain_id: number | null;
|
|
400
281
|
url: string;
|
|
282
|
+
version: string;
|
|
283
|
+
chain_id: number | null;
|
|
401
284
|
kms_contract_address: `0x${string}`;
|
|
402
285
|
gateway_app_id: `0x${string}`;
|
|
403
286
|
k256_pubkey?: string | null | undefined;
|
|
404
|
-
} & {
|
|
405
|
-
[k: string]: unknown;
|
|
406
287
|
};
|
|
407
288
|
} | {
|
|
408
289
|
status: "no_change";
|
|
409
290
|
message: string;
|
|
410
291
|
}>;
|
|
411
|
-
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params
|
|
292
|
+
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
|
|
293
|
+
docker_compose_file: string;
|
|
294
|
+
id?: string | undefined;
|
|
295
|
+
uuid?: string | undefined;
|
|
296
|
+
app_id?: string | undefined;
|
|
297
|
+
instance_id?: string | undefined;
|
|
298
|
+
name?: string | undefined;
|
|
299
|
+
compose_hash?: string | undefined;
|
|
300
|
+
transaction_hash?: string | undefined;
|
|
301
|
+
}, parameters: {
|
|
412
302
|
schema: T;
|
|
413
|
-
}
|
|
414
|
-
(client: Client<import("../..").ApiVersion>, params
|
|
303
|
+
}): Promise<z.core.output<T>>;
|
|
304
|
+
(client: Client<import("../..").ApiVersion>, params: {
|
|
305
|
+
docker_compose_file: string;
|
|
306
|
+
id?: string | undefined;
|
|
307
|
+
uuid?: string | undefined;
|
|
308
|
+
app_id?: string | undefined;
|
|
309
|
+
instance_id?: string | undefined;
|
|
310
|
+
name?: string | undefined;
|
|
311
|
+
compose_hash?: string | undefined;
|
|
312
|
+
transaction_hash?: string | undefined;
|
|
313
|
+
}, parameters: {
|
|
415
314
|
schema: false;
|
|
416
|
-
}
|
|
315
|
+
}): Promise<unknown>;
|
|
417
316
|
}, safeUpdateDockerCompose: {
|
|
418
|
-
(client: Client<import("../..").ApiVersion>, params
|
|
317
|
+
(client: Client<import("../..").ApiVersion>, params: {
|
|
318
|
+
docker_compose_file: string;
|
|
319
|
+
id?: string | undefined;
|
|
320
|
+
uuid?: string | undefined;
|
|
321
|
+
app_id?: string | undefined;
|
|
322
|
+
instance_id?: string | undefined;
|
|
323
|
+
name?: string | undefined;
|
|
324
|
+
compose_hash?: string | undefined;
|
|
325
|
+
transaction_hash?: string | undefined;
|
|
326
|
+
}): Promise<import("../..").SafeResult<{
|
|
419
327
|
status: "in_progress";
|
|
420
328
|
message: string;
|
|
421
329
|
correlation_id: string;
|
|
422
330
|
} | {
|
|
423
331
|
status: "precondition_required";
|
|
424
332
|
message: string;
|
|
425
|
-
app_id: string;
|
|
426
333
|
compose_hash: string;
|
|
334
|
+
app_id: string;
|
|
427
335
|
device_id: string;
|
|
428
336
|
kms_info: {
|
|
429
|
-
|
|
337
|
+
[x: string]: unknown;
|
|
430
338
|
id: string;
|
|
431
339
|
slug: string | null;
|
|
432
|
-
chain_id: number | null;
|
|
433
340
|
url: string;
|
|
341
|
+
version: string;
|
|
342
|
+
chain_id: number | null;
|
|
434
343
|
kms_contract_address: `0x${string}`;
|
|
435
344
|
gateway_app_id: `0x${string}`;
|
|
436
345
|
k256_pubkey?: string | null | undefined;
|
|
437
|
-
} & {
|
|
438
|
-
[k: string]: unknown;
|
|
439
346
|
};
|
|
440
347
|
} | {
|
|
441
348
|
status: "no_change";
|
|
442
349
|
message: string;
|
|
443
350
|
}>>;
|
|
444
|
-
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params
|
|
351
|
+
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
|
|
352
|
+
docker_compose_file: string;
|
|
353
|
+
id?: string | undefined;
|
|
354
|
+
uuid?: string | undefined;
|
|
355
|
+
app_id?: string | undefined;
|
|
356
|
+
instance_id?: string | undefined;
|
|
357
|
+
name?: string | undefined;
|
|
358
|
+
compose_hash?: string | undefined;
|
|
359
|
+
transaction_hash?: string | undefined;
|
|
360
|
+
}, parameters: {
|
|
445
361
|
schema: T;
|
|
446
|
-
}
|
|
447
|
-
(client: Client<import("../..").ApiVersion>, params
|
|
362
|
+
}): Promise<import("../..").SafeResult<z.core.output<T>>>;
|
|
363
|
+
(client: Client<import("../..").ApiVersion>, params: {
|
|
364
|
+
docker_compose_file: string;
|
|
365
|
+
id?: string | undefined;
|
|
366
|
+
uuid?: string | undefined;
|
|
367
|
+
app_id?: string | undefined;
|
|
368
|
+
instance_id?: string | undefined;
|
|
369
|
+
name?: string | undefined;
|
|
370
|
+
compose_hash?: string | undefined;
|
|
371
|
+
transaction_hash?: string | undefined;
|
|
372
|
+
}, parameters: {
|
|
448
373
|
schema: false;
|
|
449
|
-
}
|
|
374
|
+
}): Promise<import("../..").SafeResult<unknown>>;
|
|
450
375
|
};
|
|
451
376
|
export { updateDockerCompose, safeUpdateDockerCompose };
|
|
@@ -20,45 +20,72 @@ import { z } from "zod";
|
|
|
20
20
|
* console.log('OS image update initiated');
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
-
export declare const UpdateOsImageRequestSchema: z.
|
|
23
|
+
export declare const UpdateOsImageRequestSchema: z.ZodObject<{
|
|
24
24
|
id: z.ZodOptional<z.ZodString>;
|
|
25
25
|
uuid: z.ZodOptional<z.ZodString>;
|
|
26
26
|
app_id: z.ZodOptional<z.ZodString>;
|
|
27
27
|
instance_id: z.ZodOptional<z.ZodString>;
|
|
28
|
-
name: z.ZodOptional<z.
|
|
29
|
-
} & {
|
|
28
|
+
name: z.ZodOptional<z.ZodString>;
|
|
30
29
|
os_image_name: z.ZodString;
|
|
31
|
-
},
|
|
32
|
-
os_image_name: string;
|
|
33
|
-
name?: string | undefined;
|
|
34
|
-
id?: string | undefined;
|
|
35
|
-
uuid?: string | undefined;
|
|
36
|
-
app_id?: string | undefined;
|
|
37
|
-
instance_id?: string | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
os_image_name: string;
|
|
40
|
-
name?: string | undefined;
|
|
41
|
-
id?: string | undefined;
|
|
42
|
-
uuid?: string | undefined;
|
|
43
|
-
app_id?: string | undefined;
|
|
44
|
-
instance_id?: string | undefined;
|
|
45
|
-
}>, any, any>;
|
|
30
|
+
}, z.core.$strip>;
|
|
46
31
|
export type UpdateOsImageRequest = z.infer<typeof UpdateOsImageRequestSchema>;
|
|
47
32
|
declare const updateOsImage: {
|
|
48
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params
|
|
49
|
-
|
|
33
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
34
|
+
os_image_name: string;
|
|
35
|
+
id?: string | undefined;
|
|
36
|
+
uuid?: string | undefined;
|
|
37
|
+
app_id?: string | undefined;
|
|
38
|
+
instance_id?: string | undefined;
|
|
39
|
+
name?: string | undefined;
|
|
40
|
+
}): Promise<void>;
|
|
41
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
42
|
+
os_image_name: string;
|
|
43
|
+
id?: string | undefined;
|
|
44
|
+
uuid?: string | undefined;
|
|
45
|
+
app_id?: string | undefined;
|
|
46
|
+
instance_id?: string | undefined;
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
}, parameters: {
|
|
50
49
|
schema: T;
|
|
51
|
-
}
|
|
52
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params
|
|
50
|
+
}): Promise<z.core.output<T>>;
|
|
51
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
52
|
+
os_image_name: string;
|
|
53
|
+
id?: string | undefined;
|
|
54
|
+
uuid?: string | undefined;
|
|
55
|
+
app_id?: string | undefined;
|
|
56
|
+
instance_id?: string | undefined;
|
|
57
|
+
name?: string | undefined;
|
|
58
|
+
}, parameters: {
|
|
53
59
|
schema: false;
|
|
54
|
-
}
|
|
60
|
+
}): Promise<unknown>;
|
|
55
61
|
}, safeUpdateOsImage: {
|
|
56
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params
|
|
57
|
-
|
|
62
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
63
|
+
os_image_name: string;
|
|
64
|
+
id?: string | undefined;
|
|
65
|
+
uuid?: string | undefined;
|
|
66
|
+
app_id?: string | undefined;
|
|
67
|
+
instance_id?: string | undefined;
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
}): Promise<import("../..").SafeResult<void>>;
|
|
70
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
71
|
+
os_image_name: string;
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
uuid?: string | undefined;
|
|
74
|
+
app_id?: string | undefined;
|
|
75
|
+
instance_id?: string | undefined;
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
}, parameters: {
|
|
58
78
|
schema: T;
|
|
59
|
-
}
|
|
60
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params
|
|
79
|
+
}): Promise<import("../..").SafeResult<z.core.output<T>>>;
|
|
80
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
81
|
+
os_image_name: string;
|
|
82
|
+
id?: string | undefined;
|
|
83
|
+
uuid?: string | undefined;
|
|
84
|
+
app_id?: string | undefined;
|
|
85
|
+
instance_id?: string | undefined;
|
|
86
|
+
name?: string | undefined;
|
|
87
|
+
}, parameters: {
|
|
61
88
|
schema: false;
|
|
62
|
-
}
|
|
89
|
+
}): Promise<import("../..").SafeResult<unknown>>;
|
|
63
90
|
};
|
|
64
91
|
export { updateOsImage, safeUpdateOsImage };
|