@phala/cloud 0.6.5 → 0.6.6-beta.1
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 +6 -6
- package/dist/actions/api_tokens/revoke_current_api_token.d.ts +2 -2
- package/dist/actions/apps/app_launch_token.d.ts +4 -4
- package/dist/actions/apps/check_app_is_allowed.d.ts +4 -4
- package/dist/actions/apps/create_app_instance.d.ts +20 -20
- package/dist/actions/apps/get_app_attestation.d.ts +4 -4
- package/dist/actions/blockchains/abi/dstack_app.d.ts +403 -1
- package/dist/actions/blockchains/add_compose_hash.d.ts +7 -0
- package/dist/actions/blockchains/add_device.d.ts +7 -0
- package/dist/actions/blockchains/check_compose_hash_allowed.d.ts +4 -1
- package/dist/actions/blockchains/check_device_allowed.d.ts +5 -2
- package/dist/actions/blockchains/check_on_chain_prerequisites.d.ts +7 -2
- package/dist/actions/blockchains/epoch_compat.d.ts +106 -0
- package/dist/actions/blockchains/get_allowed_devices.d.ts +10 -2
- package/dist/actions/blockchains/remove_device.d.ts +7 -0
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +4 -4
- package/dist/actions/cvms/commit_cvm_update.d.ts +20 -20
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +14 -14
- package/dist/actions/cvms/cvm_annotations.d.ts +10 -10
- package/dist/actions/cvms/delete_cvm.d.ts +2 -2
- package/dist/actions/cvms/get_available_os_images.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_attestation.d.ts +4 -4
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +10 -10
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +4 -4
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_info.d.ts +1 -1
- package/dist/actions/cvms/get_cvm_init_scripts.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_network.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_state.d.ts +6 -6
- package/dist/actions/cvms/get_cvm_stats.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +10 -10
- package/dist/actions/cvms/get_cvm_user_config.d.ts +4 -4
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +2 -2
- package/dist/actions/cvms/patch_cvm.d.ts +10 -10
- package/dist/actions/cvms/provision_cvm.d.ts +23 -20
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +49 -49
- package/dist/actions/cvms/put_cvm_init_scripts.d.ts +8 -8
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +25 -25
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +25 -25
- package/dist/actions/cvms/update_cvm_envs.d.ts +10 -10
- package/dist/actions/cvms/update_cvm_resources.d.ts +2 -2
- package/dist/actions/cvms/update_cvm_visibility.d.ts +14 -14
- package/dist/actions/cvms/update_docker_compose.d.ts +10 -10
- package/dist/actions/cvms/update_os_image.d.ts +8 -8
- package/dist/actions/cvms/update_prelaunch_script.d.ts +10 -10
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +2 -2
- package/dist/actions/cvms/watch_cvm_state.d.ts +2 -2
- package/dist/actions/domains/create_app_domain.d.ts +139 -0
- package/dist/actions/domains/delete_app_domain.d.ts +120 -0
- package/dist/actions/domains/get_app_domain_guide.d.ts +67 -0
- package/dist/actions/domains/list_app_domains.d.ts +107 -0
- package/dist/actions/domains/list_domains.d.ts +157 -0
- package/dist/actions/domains/merge_app_domain_ingress.d.ts +120 -0
- package/dist/actions/domains/preflight_app_domain.d.ts +110 -0
- package/dist/actions/domains/schemas.d.ts +82 -0
- package/dist/actions/domains/verify_app_domain.d.ts +142 -0
- package/dist/actions/get_available_nodes.d.ts +16 -16
- package/dist/actions/index.d.ts +10 -0
- package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +2 -2
- package/dist/actions/kms/get_kms_contract.d.ts +2 -2
- package/dist/actions/kms/get_kms_info.d.ts +2 -2
- package/dist/actions/kms/get_kms_list.d.ts +2 -2
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +10 -10
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +2 -2
- package/dist/actions/kms/list_kms_contracts.d.ts +2 -2
- package/dist/actions/kms/next_app_ids.d.ts +2 -2
- package/dist/actions/list-instance-types.d.ts +8 -8
- package/dist/actions/os_images/get_os_images.d.ts +2 -2
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +6 -6
- package/dist/actions/ssh_keys/delete_ssh_key.d.ts +2 -2
- package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +2 -2
- package/dist/actions/ssh_keys/import_github_profile.d.ts +2 -2
- package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +2 -2
- package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +8 -8
- package/dist/actions/workspaces/get_workspace.d.ts +8 -8
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +12 -12
- package/dist/actions/workspaces/get_workspace_quotas.d.ts +2 -2
- package/dist/actions/workspaces/list_workspaces.d.ts +10 -10
- package/dist/create-client.d.ts +257 -134
- package/dist/credentials/current_user_v20260121.d.ts +2 -2
- package/dist/index.js +2356 -1455
- package/dist/index.mjs +2281 -1420
- package/dist/types/app_compose.d.ts +2 -2
- package/dist/types/app_info_v20260121.d.ts +60 -48
- package/dist/types/cvm_info_v20251028.d.ts +1 -0
- package/dist/types/cvm_info_v20260121.d.ts +41 -34
- package/dist/utils/define-action.d.ts +4 -4
- package/dist/utils/errors.d.ts +4 -0
- package/dist/utils/network.d.ts +6 -6
- package/package.json +25 -12
|
@@ -6,6 +6,12 @@ export type RemoveDeviceRequest = {
|
|
|
6
6
|
rpcUrl?: string;
|
|
7
7
|
appAddress: Address;
|
|
8
8
|
deviceId: string;
|
|
9
|
+
/**
|
|
10
|
+
* App epoch to revoke, on epoch-aware contracts. Omit to revoke every
|
|
11
|
+
* writable epoch, `[0, currentAppEpoch + 1]`, including history.
|
|
12
|
+
* Unsupported (and rejected) on contracts that predate app epochs.
|
|
13
|
+
*/
|
|
14
|
+
epoch?: number;
|
|
9
15
|
privateKey?: Hex;
|
|
10
16
|
walletClient?: WalletClient;
|
|
11
17
|
publicClient?: PublicClient;
|
|
@@ -24,6 +30,7 @@ export declare const RemoveDeviceSchema: z.ZodObject<{
|
|
|
24
30
|
transactionHash: z.ZodString;
|
|
25
31
|
blockNumber: z.ZodOptional<z.ZodBigInt>;
|
|
26
32
|
gasUsed: z.ZodOptional<z.ZodBigInt>;
|
|
33
|
+
epochsWritten: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
27
34
|
}, z.core.$loose>;
|
|
28
35
|
export type RemoveDevice = z.infer<typeof RemoveDeviceSchema>;
|
|
29
36
|
export type RemoveDeviceParameters<T = undefined> = T extends z.ZodTypeAny ? {
|
|
@@ -85,21 +85,21 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodPipe<z.ZodObj
|
|
|
85
85
|
env_keys: string[] | undefined;
|
|
86
86
|
update_env_vars: boolean | undefined;
|
|
87
87
|
_raw: {
|
|
88
|
-
compose_hash: string;
|
|
89
88
|
id?: string | undefined;
|
|
90
89
|
uuid?: string | undefined;
|
|
91
90
|
app_id?: string | undefined;
|
|
92
91
|
instance_id?: string | undefined;
|
|
92
|
+
compose_hash: string;
|
|
93
93
|
encrypted_env?: string | undefined;
|
|
94
94
|
env_keys?: string[] | undefined;
|
|
95
95
|
update_env_vars?: boolean | null | undefined;
|
|
96
96
|
};
|
|
97
97
|
}, {
|
|
98
|
-
compose_hash: string;
|
|
99
98
|
id?: string | undefined;
|
|
100
99
|
uuid?: string | undefined;
|
|
101
100
|
app_id?: string | undefined;
|
|
102
101
|
instance_id?: string | undefined;
|
|
102
|
+
compose_hash: string;
|
|
103
103
|
encrypted_env?: string | undefined;
|
|
104
104
|
env_keys?: string[] | undefined;
|
|
105
105
|
update_env_vars?: boolean | null | undefined;
|
|
@@ -117,7 +117,7 @@ declare const commitCvmComposeFileUpdate: {
|
|
|
117
117
|
(client: Client<import("../..").ApiVersion>, params: CommitCvmComposeFileUpdateRequest): Promise<undefined>;
|
|
118
118
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: CommitCvmComposeFileUpdateRequest, parameters: {
|
|
119
119
|
schema: T;
|
|
120
|
-
}): Promise<z.
|
|
120
|
+
}): Promise<z.infer<T>>;
|
|
121
121
|
(client: Client<import("../..").ApiVersion>, params: CommitCvmComposeFileUpdateRequest, parameters: {
|
|
122
122
|
schema: false;
|
|
123
123
|
}): Promise<unknown>;
|
|
@@ -125,7 +125,7 @@ declare const commitCvmComposeFileUpdate: {
|
|
|
125
125
|
(client: Client<import("../..").ApiVersion>, params: CommitCvmComposeFileUpdateRequest): Promise<import("../..").SafeResult<undefined>>;
|
|
126
126
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: CommitCvmComposeFileUpdateRequest, parameters: {
|
|
127
127
|
schema: T;
|
|
128
|
-
}): Promise<import("../..").SafeResult<z.
|
|
128
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
129
129
|
(client: Client<import("../..").ApiVersion>, params: CommitCvmComposeFileUpdateRequest, parameters: {
|
|
130
130
|
schema: false;
|
|
131
131
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -51,77 +51,77 @@ declare const CommitCvmUpdateResultSchema: z.ZodObject<{
|
|
|
51
51
|
export type CommitCvmUpdateResult = z.infer<typeof CommitCvmUpdateResultSchema>;
|
|
52
52
|
declare const commitCvmUpdate: {
|
|
53
53
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
54
|
-
token: string;
|
|
55
|
-
composeHash: string;
|
|
56
|
-
transactionHash: string;
|
|
57
54
|
id?: string | undefined;
|
|
58
55
|
uuid?: string | undefined;
|
|
59
56
|
app_id?: string | undefined;
|
|
60
57
|
instance_id?: string | undefined;
|
|
61
58
|
name?: string | undefined;
|
|
59
|
+
token: string;
|
|
60
|
+
composeHash: string;
|
|
61
|
+
transactionHash: string;
|
|
62
62
|
}): Promise<{
|
|
63
63
|
correlationId: string;
|
|
64
64
|
status: string;
|
|
65
65
|
}>;
|
|
66
66
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
67
|
-
token: string;
|
|
68
|
-
composeHash: string;
|
|
69
|
-
transactionHash: string;
|
|
70
67
|
id?: string | undefined;
|
|
71
68
|
uuid?: string | undefined;
|
|
72
69
|
app_id?: string | undefined;
|
|
73
70
|
instance_id?: string | undefined;
|
|
74
71
|
name?: string | undefined;
|
|
75
|
-
}, parameters: {
|
|
76
|
-
schema: T;
|
|
77
|
-
}): Promise<z.core.output<T>>;
|
|
78
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
79
72
|
token: string;
|
|
80
73
|
composeHash: string;
|
|
81
74
|
transactionHash: string;
|
|
75
|
+
}, parameters: {
|
|
76
|
+
schema: T;
|
|
77
|
+
}): Promise<z.infer<T>>;
|
|
78
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
82
79
|
id?: string | undefined;
|
|
83
80
|
uuid?: string | undefined;
|
|
84
81
|
app_id?: string | undefined;
|
|
85
82
|
instance_id?: string | undefined;
|
|
86
83
|
name?: string | undefined;
|
|
84
|
+
token: string;
|
|
85
|
+
composeHash: string;
|
|
86
|
+
transactionHash: string;
|
|
87
87
|
}, parameters: {
|
|
88
88
|
schema: false;
|
|
89
89
|
}): Promise<unknown>;
|
|
90
90
|
}, safeCommitCvmUpdate: {
|
|
91
91
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
92
|
-
token: string;
|
|
93
|
-
composeHash: string;
|
|
94
|
-
transactionHash: string;
|
|
95
92
|
id?: string | undefined;
|
|
96
93
|
uuid?: string | undefined;
|
|
97
94
|
app_id?: string | undefined;
|
|
98
95
|
instance_id?: string | undefined;
|
|
99
96
|
name?: string | undefined;
|
|
97
|
+
token: string;
|
|
98
|
+
composeHash: string;
|
|
99
|
+
transactionHash: string;
|
|
100
100
|
}): Promise<import("../..").SafeResult<{
|
|
101
101
|
correlationId: string;
|
|
102
102
|
status: string;
|
|
103
103
|
}>>;
|
|
104
104
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
105
|
-
token: string;
|
|
106
|
-
composeHash: string;
|
|
107
|
-
transactionHash: string;
|
|
108
105
|
id?: string | undefined;
|
|
109
106
|
uuid?: string | undefined;
|
|
110
107
|
app_id?: string | undefined;
|
|
111
108
|
instance_id?: string | undefined;
|
|
112
109
|
name?: string | undefined;
|
|
113
|
-
}, parameters: {
|
|
114
|
-
schema: T;
|
|
115
|
-
}): Promise<import("../..").SafeResult<z.core.output<T>>>;
|
|
116
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
117
110
|
token: string;
|
|
118
111
|
composeHash: string;
|
|
119
112
|
transactionHash: string;
|
|
113
|
+
}, parameters: {
|
|
114
|
+
schema: T;
|
|
115
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
116
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
120
117
|
id?: string | undefined;
|
|
121
118
|
uuid?: string | undefined;
|
|
122
119
|
app_id?: string | undefined;
|
|
123
120
|
instance_id?: string | undefined;
|
|
124
121
|
name?: string | undefined;
|
|
122
|
+
token: string;
|
|
123
|
+
composeHash: string;
|
|
124
|
+
transactionHash: string;
|
|
125
125
|
}, parameters: {
|
|
126
126
|
schema: false;
|
|
127
127
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -49,69 +49,69 @@ declare const ConfirmCvmPatchResultSchema: z.ZodObject<{
|
|
|
49
49
|
export type ConfirmCvmPatchResult = z.infer<typeof ConfirmCvmPatchResultSchema>;
|
|
50
50
|
declare const confirmCvmPatch: {
|
|
51
51
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
52
|
-
composeHash: string;
|
|
53
|
-
transactionHash: string;
|
|
54
52
|
id?: string | undefined;
|
|
55
53
|
uuid?: string | undefined;
|
|
56
54
|
app_id?: string | undefined;
|
|
57
55
|
instance_id?: string | undefined;
|
|
58
56
|
name?: string | undefined;
|
|
57
|
+
composeHash: string;
|
|
58
|
+
transactionHash: string;
|
|
59
59
|
}): Promise<{
|
|
60
60
|
correlationId: string;
|
|
61
61
|
}>;
|
|
62
62
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
63
|
-
composeHash: string;
|
|
64
|
-
transactionHash: string;
|
|
65
63
|
id?: string | undefined;
|
|
66
64
|
uuid?: string | undefined;
|
|
67
65
|
app_id?: string | undefined;
|
|
68
66
|
instance_id?: string | undefined;
|
|
69
67
|
name?: string | undefined;
|
|
68
|
+
composeHash: string;
|
|
69
|
+
transactionHash: string;
|
|
70
70
|
}, parameters: {
|
|
71
71
|
schema: T;
|
|
72
|
-
}): Promise<z.
|
|
72
|
+
}): Promise<z.infer<T>>;
|
|
73
73
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
74
|
-
composeHash: string;
|
|
75
|
-
transactionHash: string;
|
|
76
74
|
id?: string | undefined;
|
|
77
75
|
uuid?: string | undefined;
|
|
78
76
|
app_id?: string | undefined;
|
|
79
77
|
instance_id?: string | undefined;
|
|
80
78
|
name?: string | undefined;
|
|
79
|
+
composeHash: string;
|
|
80
|
+
transactionHash: string;
|
|
81
81
|
}, parameters: {
|
|
82
82
|
schema: false;
|
|
83
83
|
}): Promise<unknown>;
|
|
84
84
|
}, safeConfirmCvmPatch: {
|
|
85
85
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
86
|
-
composeHash: string;
|
|
87
|
-
transactionHash: string;
|
|
88
86
|
id?: string | undefined;
|
|
89
87
|
uuid?: string | undefined;
|
|
90
88
|
app_id?: string | undefined;
|
|
91
89
|
instance_id?: string | undefined;
|
|
92
90
|
name?: string | undefined;
|
|
91
|
+
composeHash: string;
|
|
92
|
+
transactionHash: string;
|
|
93
93
|
}): Promise<import("../..").SafeResult<{
|
|
94
94
|
correlationId: string;
|
|
95
95
|
}>>;
|
|
96
96
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
97
|
-
composeHash: string;
|
|
98
|
-
transactionHash: string;
|
|
99
97
|
id?: string | undefined;
|
|
100
98
|
uuid?: string | undefined;
|
|
101
99
|
app_id?: string | undefined;
|
|
102
100
|
instance_id?: string | undefined;
|
|
103
101
|
name?: string | undefined;
|
|
102
|
+
composeHash: string;
|
|
103
|
+
transactionHash: string;
|
|
104
104
|
}, parameters: {
|
|
105
105
|
schema: T;
|
|
106
|
-
}): Promise<import("../..").SafeResult<z.
|
|
106
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
107
107
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
108
|
-
composeHash: string;
|
|
109
|
-
transactionHash: string;
|
|
110
108
|
id?: string | undefined;
|
|
111
109
|
uuid?: string | undefined;
|
|
112
110
|
app_id?: string | undefined;
|
|
113
111
|
instance_id?: string | undefined;
|
|
114
112
|
name?: string | undefined;
|
|
113
|
+
composeHash: string;
|
|
114
|
+
transactionHash: string;
|
|
115
115
|
}, parameters: {
|
|
116
116
|
schema: false;
|
|
117
117
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -44,7 +44,7 @@ declare const getCvmAnnotations: {
|
|
|
44
44
|
}>;
|
|
45
45
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
46
46
|
schema: T;
|
|
47
|
-
}): Promise<z.
|
|
47
|
+
}): Promise<z.infer<T>>;
|
|
48
48
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
49
49
|
schema: false;
|
|
50
50
|
}): Promise<unknown>;
|
|
@@ -54,7 +54,7 @@ declare const getCvmAnnotations: {
|
|
|
54
54
|
}>>;
|
|
55
55
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
56
56
|
schema: T;
|
|
57
|
-
}): Promise<import("../..").SafeResult<z.
|
|
57
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
58
58
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
59
59
|
schema: false;
|
|
60
60
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -88,63 +88,63 @@ export type UpdateCvmAnnotationsRequest = z.input<typeof UpdateCvmAnnotationsReq
|
|
|
88
88
|
*/
|
|
89
89
|
declare const updateCvmAnnotations: {
|
|
90
90
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
91
|
-
annotations: Record<string, string>;
|
|
92
91
|
id?: string | undefined;
|
|
93
92
|
uuid?: string | undefined;
|
|
94
93
|
app_id?: string | undefined;
|
|
95
94
|
instance_id?: string | undefined;
|
|
96
95
|
name?: string | undefined;
|
|
96
|
+
annotations: Record<string, string>;
|
|
97
97
|
}): Promise<{
|
|
98
98
|
annotations: Record<string, string>;
|
|
99
99
|
}>;
|
|
100
100
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
101
|
-
annotations: Record<string, string>;
|
|
102
101
|
id?: string | undefined;
|
|
103
102
|
uuid?: string | undefined;
|
|
104
103
|
app_id?: string | undefined;
|
|
105
104
|
instance_id?: string | undefined;
|
|
106
105
|
name?: string | undefined;
|
|
106
|
+
annotations: Record<string, string>;
|
|
107
107
|
}, parameters: {
|
|
108
108
|
schema: T;
|
|
109
|
-
}): Promise<z.
|
|
109
|
+
}): Promise<z.infer<T>>;
|
|
110
110
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
111
|
-
annotations: Record<string, string>;
|
|
112
111
|
id?: string | undefined;
|
|
113
112
|
uuid?: string | undefined;
|
|
114
113
|
app_id?: string | undefined;
|
|
115
114
|
instance_id?: string | undefined;
|
|
116
115
|
name?: string | undefined;
|
|
116
|
+
annotations: Record<string, string>;
|
|
117
117
|
}, parameters: {
|
|
118
118
|
schema: false;
|
|
119
119
|
}): Promise<unknown>;
|
|
120
120
|
}, safeUpdateCvmAnnotations: {
|
|
121
121
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
122
|
-
annotations: Record<string, string>;
|
|
123
122
|
id?: string | undefined;
|
|
124
123
|
uuid?: string | undefined;
|
|
125
124
|
app_id?: string | undefined;
|
|
126
125
|
instance_id?: string | undefined;
|
|
127
126
|
name?: string | undefined;
|
|
127
|
+
annotations: Record<string, string>;
|
|
128
128
|
}): Promise<import("../..").SafeResult<{
|
|
129
129
|
annotations: Record<string, string>;
|
|
130
130
|
}>>;
|
|
131
131
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
132
|
-
annotations: Record<string, string>;
|
|
133
132
|
id?: string | undefined;
|
|
134
133
|
uuid?: string | undefined;
|
|
135
134
|
app_id?: string | undefined;
|
|
136
135
|
instance_id?: string | undefined;
|
|
137
136
|
name?: string | undefined;
|
|
137
|
+
annotations: Record<string, string>;
|
|
138
138
|
}, parameters: {
|
|
139
139
|
schema: T;
|
|
140
|
-
}): Promise<import("../..").SafeResult<z.
|
|
140
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
141
141
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
142
|
-
annotations: Record<string, string>;
|
|
143
142
|
id?: string | undefined;
|
|
144
143
|
uuid?: string | undefined;
|
|
145
144
|
app_id?: string | undefined;
|
|
146
145
|
instance_id?: string | undefined;
|
|
147
146
|
name?: string | undefined;
|
|
147
|
+
annotations: Record<string, string>;
|
|
148
148
|
}, parameters: {
|
|
149
149
|
schema: false;
|
|
150
150
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -48,7 +48,7 @@ declare const deleteCvm: {
|
|
|
48
48
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<void>;
|
|
49
49
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
50
50
|
schema: T;
|
|
51
|
-
}): Promise<z.
|
|
51
|
+
}): Promise<z.infer<T>>;
|
|
52
52
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
53
53
|
schema: false;
|
|
54
54
|
}): Promise<unknown>;
|
|
@@ -56,7 +56,7 @@ declare const deleteCvm: {
|
|
|
56
56
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<void>>;
|
|
57
57
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
58
58
|
schema: T;
|
|
59
|
-
}): Promise<import("../..").SafeResult<z.
|
|
59
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
60
60
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
61
61
|
schema: false;
|
|
62
62
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -139,7 +139,7 @@ declare const getAvailableOsImages: {
|
|
|
139
139
|
}[]>;
|
|
140
140
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
141
141
|
schema: T;
|
|
142
|
-
}): Promise<z.
|
|
142
|
+
}): Promise<z.infer<T>>;
|
|
143
143
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
144
144
|
schema: false;
|
|
145
145
|
}): Promise<unknown>;
|
|
@@ -171,7 +171,7 @@ declare const getAvailableOsImages: {
|
|
|
171
171
|
}[]>>;
|
|
172
172
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
173
173
|
schema: T;
|
|
174
|
-
}): Promise<import("../..").SafeResult<z.
|
|
174
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
175
175
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
176
176
|
schema: false;
|
|
177
177
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -176,6 +176,7 @@ declare const getCvmAttestation: {
|
|
|
176
176
|
}[] | null;
|
|
177
177
|
tcb_info: {
|
|
178
178
|
mrtd: string;
|
|
179
|
+
rootfs_hash?: string | null | undefined;
|
|
179
180
|
rtmr0: string;
|
|
180
181
|
rtmr1: string;
|
|
181
182
|
rtmr2: string;
|
|
@@ -188,13 +189,12 @@ declare const getCvmAttestation: {
|
|
|
188
189
|
event_payload: string;
|
|
189
190
|
}[];
|
|
190
191
|
app_compose: string;
|
|
191
|
-
rootfs_hash?: string | null | undefined;
|
|
192
192
|
} | null;
|
|
193
193
|
compose_file: string | null;
|
|
194
194
|
}>;
|
|
195
195
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
196
196
|
schema: T;
|
|
197
|
-
}): Promise<z.
|
|
197
|
+
}): Promise<z.infer<T>>;
|
|
198
198
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
199
199
|
schema: false;
|
|
200
200
|
}): Promise<unknown>;
|
|
@@ -232,6 +232,7 @@ declare const getCvmAttestation: {
|
|
|
232
232
|
}[] | null;
|
|
233
233
|
tcb_info: {
|
|
234
234
|
mrtd: string;
|
|
235
|
+
rootfs_hash?: string | null | undefined;
|
|
235
236
|
rtmr0: string;
|
|
236
237
|
rtmr1: string;
|
|
237
238
|
rtmr2: string;
|
|
@@ -244,13 +245,12 @@ declare const getCvmAttestation: {
|
|
|
244
245
|
event_payload: string;
|
|
245
246
|
}[];
|
|
246
247
|
app_compose: string;
|
|
247
|
-
rootfs_hash?: string | null | undefined;
|
|
248
248
|
} | null;
|
|
249
249
|
compose_file: string | null;
|
|
250
250
|
}>>;
|
|
251
251
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
252
252
|
schema: T;
|
|
253
|
-
}): Promise<import("../..").SafeResult<z.
|
|
253
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
254
254
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
255
255
|
schema: false;
|
|
256
256
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -81,9 +81,9 @@ export declare const GetCvmComposeFileResultSchema: z.ZodPipe<z.ZodObject<{
|
|
|
81
81
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
82
82
|
local_key_provider_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
83
83
|
key_provider: z.ZodOptional<z.ZodEnum<{
|
|
84
|
-
none: "none";
|
|
85
84
|
kms: "kms";
|
|
86
85
|
local: "local";
|
|
86
|
+
none: "none";
|
|
87
87
|
tpm: "tpm";
|
|
88
88
|
}>>;
|
|
89
89
|
key_provider_id: z.ZodOptional<z.ZodString>;
|
|
@@ -147,7 +147,7 @@ export declare const GetCvmComposeFileResultSchema: z.ZodPipe<z.ZodObject<{
|
|
|
147
147
|
gateway_enabled?: boolean | undefined;
|
|
148
148
|
tproxy_enabled?: boolean | undefined;
|
|
149
149
|
local_key_provider_enabled?: boolean | undefined;
|
|
150
|
-
key_provider?: "
|
|
150
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | undefined;
|
|
151
151
|
key_provider_id?: string | undefined;
|
|
152
152
|
public_logs?: boolean | undefined;
|
|
153
153
|
public_sysinfo?: boolean | undefined;
|
|
@@ -208,7 +208,7 @@ export declare const GetCvmComposeFileResultSchema: z.ZodPipe<z.ZodObject<{
|
|
|
208
208
|
gateway_enabled?: boolean | undefined;
|
|
209
209
|
tproxy_enabled?: boolean | undefined;
|
|
210
210
|
local_key_provider_enabled?: boolean | undefined;
|
|
211
|
-
key_provider?: "
|
|
211
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | undefined;
|
|
212
212
|
key_provider_id?: string | undefined;
|
|
213
213
|
public_logs?: boolean | undefined;
|
|
214
214
|
public_sysinfo?: boolean | undefined;
|
|
@@ -267,9 +267,9 @@ export declare const CvmComposeFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
267
267
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
268
268
|
local_key_provider_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
269
269
|
key_provider: z.ZodOptional<z.ZodEnum<{
|
|
270
|
-
none: "none";
|
|
271
270
|
kms: "kms";
|
|
272
271
|
local: "local";
|
|
272
|
+
none: "none";
|
|
273
273
|
tpm: "tpm";
|
|
274
274
|
}>>;
|
|
275
275
|
key_provider_id: z.ZodOptional<z.ZodString>;
|
|
@@ -333,7 +333,7 @@ export declare const CvmComposeFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
333
333
|
gateway_enabled?: boolean | undefined;
|
|
334
334
|
tproxy_enabled?: boolean | undefined;
|
|
335
335
|
local_key_provider_enabled?: boolean | undefined;
|
|
336
|
-
key_provider?: "
|
|
336
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | undefined;
|
|
337
337
|
key_provider_id?: string | undefined;
|
|
338
338
|
public_logs?: boolean | undefined;
|
|
339
339
|
public_sysinfo?: boolean | undefined;
|
|
@@ -394,7 +394,7 @@ export declare const CvmComposeFileSchema: z.ZodPipe<z.ZodObject<{
|
|
|
394
394
|
gateway_enabled?: boolean | undefined;
|
|
395
395
|
tproxy_enabled?: boolean | undefined;
|
|
396
396
|
local_key_provider_enabled?: boolean | undefined;
|
|
397
|
-
key_provider?: "
|
|
397
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | undefined;
|
|
398
398
|
key_provider_id?: string | undefined;
|
|
399
399
|
public_logs?: boolean | undefined;
|
|
400
400
|
public_sysinfo?: boolean | undefined;
|
|
@@ -472,7 +472,7 @@ declare const getCvmComposeFile: {
|
|
|
472
472
|
gateway_enabled?: boolean | undefined;
|
|
473
473
|
tproxy_enabled?: boolean | undefined;
|
|
474
474
|
local_key_provider_enabled?: boolean | undefined;
|
|
475
|
-
key_provider?: "
|
|
475
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | undefined;
|
|
476
476
|
key_provider_id?: string | undefined;
|
|
477
477
|
public_logs?: boolean | undefined;
|
|
478
478
|
public_sysinfo?: boolean | undefined;
|
|
@@ -523,7 +523,7 @@ declare const getCvmComposeFile: {
|
|
|
523
523
|
}>;
|
|
524
524
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
525
525
|
schema: T;
|
|
526
|
-
}): Promise<z.
|
|
526
|
+
}): Promise<z.infer<T>>;
|
|
527
527
|
(client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
528
528
|
schema: false;
|
|
529
529
|
}): Promise<unknown>;
|
|
@@ -541,7 +541,7 @@ declare const getCvmComposeFile: {
|
|
|
541
541
|
gateway_enabled?: boolean | undefined;
|
|
542
542
|
tproxy_enabled?: boolean | undefined;
|
|
543
543
|
local_key_provider_enabled?: boolean | undefined;
|
|
544
|
-
key_provider?: "
|
|
544
|
+
key_provider?: "kms" | "local" | "none" | "tpm" | undefined;
|
|
545
545
|
key_provider_id?: string | undefined;
|
|
546
546
|
public_logs?: boolean | undefined;
|
|
547
547
|
public_sysinfo?: boolean | undefined;
|
|
@@ -592,7 +592,7 @@ declare const getCvmComposeFile: {
|
|
|
592
592
|
}>>;
|
|
593
593
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
594
594
|
schema: T;
|
|
595
|
-
}): Promise<import("../..").SafeResult<z.
|
|
595
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
596
596
|
(client: Client<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
597
597
|
schema: false;
|
|
598
598
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -53,16 +53,16 @@ declare const getCvmContainersStats: {
|
|
|
53
53
|
names: string[];
|
|
54
54
|
image: string;
|
|
55
55
|
image_id: string;
|
|
56
|
+
command?: string | null | undefined;
|
|
56
57
|
created: number;
|
|
57
58
|
state: string;
|
|
58
59
|
status: string;
|
|
59
60
|
log_endpoint: string | null;
|
|
60
|
-
command?: string | null | undefined;
|
|
61
61
|
}[] | null;
|
|
62
62
|
}>;
|
|
63
63
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
64
64
|
schema: T;
|
|
65
|
-
}): Promise<z.
|
|
65
|
+
}): Promise<z.infer<T>>;
|
|
66
66
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
67
67
|
schema: false;
|
|
68
68
|
}): Promise<unknown>;
|
|
@@ -81,16 +81,16 @@ declare const getCvmContainersStats: {
|
|
|
81
81
|
names: string[];
|
|
82
82
|
image: string;
|
|
83
83
|
image_id: string;
|
|
84
|
+
command?: string | null | undefined;
|
|
84
85
|
created: number;
|
|
85
86
|
state: string;
|
|
86
87
|
status: string;
|
|
87
88
|
log_endpoint: string | null;
|
|
88
|
-
command?: string | null | undefined;
|
|
89
89
|
}[] | null;
|
|
90
90
|
}>>;
|
|
91
91
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
92
92
|
schema: T;
|
|
93
|
-
}): Promise<import("../..").SafeResult<z.
|
|
93
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
94
94
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
95
95
|
schema: false;
|
|
96
96
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -20,7 +20,7 @@ declare const getCvmDockerCompose: {
|
|
|
20
20
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<string>;
|
|
21
21
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
22
22
|
schema: T;
|
|
23
|
-
}): Promise<z.
|
|
23
|
+
}): Promise<z.infer<T>>;
|
|
24
24
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
25
25
|
schema: false;
|
|
26
26
|
}): Promise<unknown>;
|
|
@@ -28,7 +28,7 @@ declare const getCvmDockerCompose: {
|
|
|
28
28
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<string>>;
|
|
29
29
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
30
30
|
schema: T;
|
|
31
|
-
}): Promise<import("../..").SafeResult<z.
|
|
31
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
32
32
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
33
33
|
schema: false;
|
|
34
34
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -13,8 +13,8 @@ export declare const GetCvmInfoRequestSchema: z.ZodPipe<z.ZodObject<{
|
|
|
13
13
|
cvmId: z.ZodOptional<z.ZodString>;
|
|
14
14
|
include_compose: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
}, z.core.$strip>, z.ZodTransform<{
|
|
16
|
-
include_compose: boolean | undefined;
|
|
17
16
|
cvmId: string;
|
|
17
|
+
include_compose: boolean | undefined;
|
|
18
18
|
}, {
|
|
19
19
|
id?: string | undefined;
|
|
20
20
|
uuid?: string | undefined;
|
|
@@ -68,7 +68,7 @@ declare const getCvmInitScripts: {
|
|
|
68
68
|
}>;
|
|
69
69
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
70
70
|
schema: T;
|
|
71
|
-
}): Promise<z.
|
|
71
|
+
}): Promise<z.infer<T>>;
|
|
72
72
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
73
73
|
schema: false;
|
|
74
74
|
}): Promise<unknown>;
|
|
@@ -84,7 +84,7 @@ declare const getCvmInitScripts: {
|
|
|
84
84
|
}>>;
|
|
85
85
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
86
86
|
schema: T;
|
|
87
|
-
}): Promise<import("../..").SafeResult<z.
|
|
87
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
88
88
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
89
89
|
schema: false;
|
|
90
90
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -42,7 +42,7 @@ declare const getCvmNetwork: {
|
|
|
42
42
|
}>;
|
|
43
43
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
44
44
|
schema: T;
|
|
45
|
-
}): Promise<z.
|
|
45
|
+
}): Promise<z.infer<T>>;
|
|
46
46
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
47
47
|
schema: false;
|
|
48
48
|
}): Promise<unknown>;
|
|
@@ -60,7 +60,7 @@ declare const getCvmNetwork: {
|
|
|
60
60
|
}>>;
|
|
61
61
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
62
62
|
schema: T;
|
|
63
|
-
}): Promise<import("../..").SafeResult<z.
|
|
63
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
64
64
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
65
65
|
schema: false;
|
|
66
66
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
@@ -20,7 +20,7 @@ declare const getCvmPreLaunchScript: {
|
|
|
20
20
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<string>;
|
|
21
21
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
22
22
|
schema: T;
|
|
23
|
-
}): Promise<z.
|
|
23
|
+
}): Promise<z.infer<T>>;
|
|
24
24
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
25
25
|
schema: false;
|
|
26
26
|
}): Promise<unknown>;
|
|
@@ -28,7 +28,7 @@ declare const getCvmPreLaunchScript: {
|
|
|
28
28
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<string>>;
|
|
29
29
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
30
30
|
schema: T;
|
|
31
|
-
}): Promise<import("../..").SafeResult<z.
|
|
31
|
+
}): Promise<import("../..").SafeResult<z.infer<T>>>;
|
|
32
32
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
33
33
|
schema: false;
|
|
34
34
|
}): Promise<import("../..").SafeResult<unknown>>;
|