@phala/cloud 0.2.9 → 0.3.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/dist/actions/apps/check_app_cvms_is_allowed.d.ts +324 -75
- package/dist/actions/apps/check_app_is_allowed.d.ts +16 -16
- package/dist/actions/apps/create_app_instance.d.ts +33 -24
- package/dist/actions/apps/get_app_attestation.d.ts +82 -32
- package/dist/actions/apps/get_app_device_allowlist.d.ts +281 -11
- package/dist/actions/apps/get_app_filter_options.d.ts +2 -2
- package/dist/actions/apps/get_app_list.d.ts +2 -2
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +142 -74
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
- package/dist/actions/cvms/commit_cvm_provision.d.ts +424 -277
- package/dist/actions/cvms/commit_cvm_update.d.ts +2 -2
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +2 -2
- 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 +2 -2
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +338 -10
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +10 -10
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_info.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_list.d.ts +4 -4
- 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 +6 -6
- package/dist/actions/cvms/get_cvm_user_config.d.ts +2 -2
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +93 -0
- package/dist/actions/cvms/patch_cvm.d.ts +18 -18
- package/dist/actions/cvms/provision_cvm.d.ts +243 -225
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +254 -38
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +130 -43
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +294 -110
- package/dist/actions/cvms/replicate_cvm.d.ts +7 -72
- package/dist/actions/cvms/restart_cvm.d.ts +7 -72
- package/dist/actions/cvms/shutdown_cvm.d.ts +9 -72
- package/dist/actions/cvms/start_cvm.d.ts +7 -72
- package/dist/actions/cvms/stop_cvm.d.ts +7 -72
- package/dist/actions/cvms/update_cvm_envs.d.ts +20 -20
- package/dist/actions/cvms/update_cvm_resources.d.ts +2 -2
- package/dist/actions/cvms/update_cvm_visibility.d.ts +26 -26
- package/dist/actions/cvms/update_docker_compose.d.ts +20 -20
- package/dist/actions/cvms/update_os_image.d.ts +2 -2
- package/dist/actions/cvms/update_prelaunch_script.d.ts +20 -20
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +319 -0
- package/dist/actions/get_cvm_create_resources.d.ts +2412 -0
- package/dist/actions/index.d.ts +3 -0
- package/dist/actions/kms/get_kms_list.d.ts +10 -10
- package/dist/actions/kms/next_app_ids.d.ts +6 -6
- package/dist/actions/list-instance-types.d.ts +12 -12
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +2 -2
- package/dist/actions/ssh_keys/list_ssh_keys.d.ts +4 -4
- package/dist/actions/workspaces/get_workspace.d.ts +2 -0
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +14 -14
- package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
- package/dist/client.d.ts +5 -2
- package/dist/create-client.d.ts +48 -0
- package/dist/index.js +1882 -1257
- package/dist/index.mjs +1850 -1255
- package/dist/types/app_compose.d.ts +125 -0
- package/dist/types/app_info_v20251028.d.ts +136 -259
- package/dist/types/app_info_v20260121.d.ts +4677 -345
- package/dist/types/app_revision.d.ts +8 -8
- package/dist/types/client.d.ts +2 -2
- package/dist/types/cvm_id.d.ts +6 -6
- package/dist/types/cvm_info.d.ts +536 -10
- package/dist/types/cvm_info_v20251028.d.ts +65 -65
- package/dist/types/cvm_info_v20260121.d.ts +1636 -85
- package/dist/types/version-mappings.d.ts +45 -8
- package/dist/utils/errors.d.ts +8 -1
- package/package.json +2 -2
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { type Client, type SafeResult } from "../../client";
|
|
2
|
+
import type { ApiVersion } from "../../types/client";
|
|
1
3
|
import { type CvmIdInput } from "../../types/cvm_id";
|
|
4
|
+
import { type VMForVersion } from "../../types/cvm_info";
|
|
2
5
|
/**
|
|
3
6
|
* Shutdown a CVM (Confidential Virtual Machine) gracefully
|
|
4
7
|
*
|
|
@@ -10,6 +13,7 @@ import { type CvmIdInput } from "../../types/cvm_id";
|
|
|
10
13
|
* import { createClient, shutdownCvm } from '@phala/cloud'
|
|
11
14
|
*
|
|
12
15
|
* const client = createClient();
|
|
16
|
+
* const result = await shutdownCvm(client, { id: 'my-cvm-id' });
|
|
13
17
|
* console.log(result.status); // "shutting_down"
|
|
14
18
|
* ```
|
|
15
19
|
*
|
|
@@ -18,6 +22,7 @@ import { type CvmIdInput } from "../../types/cvm_id";
|
|
|
18
22
|
* Use `safeShutdownCvm` for error handling without exceptions:
|
|
19
23
|
*
|
|
20
24
|
* ```typescript
|
|
25
|
+
* const result = await safeShutdownCvm(client, { id: 'my-cvm-id' });
|
|
21
26
|
* if (result.success) {
|
|
22
27
|
* console.log('CVM shutting down:', result.data.status);
|
|
23
28
|
* } else {
|
|
@@ -34,86 +39,18 @@ export declare const ShutdownCvmRequestSchema: import("zod").ZodEffects<import("
|
|
|
34
39
|
}, "strip", import("zod").ZodTypeAny, {
|
|
35
40
|
name?: string | undefined;
|
|
36
41
|
id?: string | undefined;
|
|
42
|
+
uuid?: string | undefined;
|
|
37
43
|
app_id?: string | undefined;
|
|
38
44
|
instance_id?: string | undefined;
|
|
39
|
-
uuid?: string | undefined;
|
|
40
45
|
}, {
|
|
41
46
|
name?: string | undefined;
|
|
42
47
|
id?: string | undefined;
|
|
48
|
+
uuid?: string | undefined;
|
|
43
49
|
app_id?: string | undefined;
|
|
44
50
|
instance_id?: string | undefined;
|
|
45
|
-
uuid?: string | undefined;
|
|
46
51
|
}>, any, any>, {
|
|
47
52
|
cvmId: any;
|
|
48
53
|
}, any>;
|
|
49
54
|
export type ShutdownCvmRequest = CvmIdInput;
|
|
50
|
-
declare
|
|
51
|
-
|
|
52
|
-
status: string;
|
|
53
|
-
name: string;
|
|
54
|
-
id: number;
|
|
55
|
-
app_id: string;
|
|
56
|
-
instance_id: string | null;
|
|
57
|
-
vcpu: number;
|
|
58
|
-
memory: number;
|
|
59
|
-
disk_size: number;
|
|
60
|
-
teepod_id: number;
|
|
61
|
-
vm_uuid: string | null;
|
|
62
|
-
encrypted_env_pubkey: string | null;
|
|
63
|
-
created_at: string;
|
|
64
|
-
version?: string | null | undefined;
|
|
65
|
-
app_url?: string | null | undefined;
|
|
66
|
-
teepod?: {
|
|
67
|
-
name: string;
|
|
68
|
-
id: number;
|
|
69
|
-
region_identifier?: string | null | undefined;
|
|
70
|
-
} | null | undefined;
|
|
71
|
-
base_image?: string | null | undefined;
|
|
72
|
-
user_id?: number | null | undefined;
|
|
73
|
-
docker_compose_file?: string | null | undefined;
|
|
74
|
-
features?: string[] | null | undefined;
|
|
75
|
-
manifest_version?: number | null | undefined;
|
|
76
|
-
runner?: string | null | undefined;
|
|
77
|
-
}>;
|
|
78
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
79
|
-
schema: T;
|
|
80
|
-
}): Promise<import("zod").TypeOf<T>>;
|
|
81
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
82
|
-
schema: false;
|
|
83
|
-
}): Promise<unknown>;
|
|
84
|
-
}, safeShutdownCvm: {
|
|
85
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
86
|
-
status: string;
|
|
87
|
-
name: string;
|
|
88
|
-
id: number;
|
|
89
|
-
app_id: string;
|
|
90
|
-
instance_id: string | null;
|
|
91
|
-
vcpu: number;
|
|
92
|
-
memory: number;
|
|
93
|
-
disk_size: number;
|
|
94
|
-
teepod_id: number;
|
|
95
|
-
vm_uuid: string | null;
|
|
96
|
-
encrypted_env_pubkey: string | null;
|
|
97
|
-
created_at: string;
|
|
98
|
-
version?: string | null | undefined;
|
|
99
|
-
app_url?: string | null | undefined;
|
|
100
|
-
teepod?: {
|
|
101
|
-
name: string;
|
|
102
|
-
id: number;
|
|
103
|
-
region_identifier?: string | null | undefined;
|
|
104
|
-
} | null | undefined;
|
|
105
|
-
base_image?: string | null | undefined;
|
|
106
|
-
user_id?: number | null | undefined;
|
|
107
|
-
docker_compose_file?: string | null | undefined;
|
|
108
|
-
features?: string[] | null | undefined;
|
|
109
|
-
manifest_version?: number | null | undefined;
|
|
110
|
-
runner?: string | null | undefined;
|
|
111
|
-
}>>;
|
|
112
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
113
|
-
schema: T;
|
|
114
|
-
}): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
|
|
115
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
116
|
-
schema: false;
|
|
117
|
-
}): Promise<import("../..").SafeResult<unknown>>;
|
|
118
|
-
};
|
|
119
|
-
export { shutdownCvm, safeShutdownCvm };
|
|
55
|
+
export declare function shutdownCvm<V extends ApiVersion>(client: Client<V>, request: ShutdownCvmRequest): Promise<VMForVersion<V>>;
|
|
56
|
+
export declare function safeShutdownCvm<V extends ApiVersion>(client: Client<V>, request: ShutdownCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { type Client, type SafeResult } from "../../client";
|
|
2
|
+
import type { ApiVersion } from "../../types/client";
|
|
1
3
|
import { type CvmIdInput } from "../../types/cvm_id";
|
|
4
|
+
import { type VMForVersion } from "../../types/cvm_info";
|
|
2
5
|
/**
|
|
3
6
|
* Start a CVM (Confidential Virtual Machine)
|
|
4
7
|
*
|
|
@@ -35,86 +38,18 @@ export declare const StartCvmRequestSchema: import("zod").ZodEffects<import("zod
|
|
|
35
38
|
}, "strip", import("zod").ZodTypeAny, {
|
|
36
39
|
name?: string | undefined;
|
|
37
40
|
id?: string | undefined;
|
|
41
|
+
uuid?: string | undefined;
|
|
38
42
|
app_id?: string | undefined;
|
|
39
43
|
instance_id?: string | undefined;
|
|
40
|
-
uuid?: string | undefined;
|
|
41
44
|
}, {
|
|
42
45
|
name?: string | undefined;
|
|
43
46
|
id?: string | undefined;
|
|
47
|
+
uuid?: string | undefined;
|
|
44
48
|
app_id?: string | undefined;
|
|
45
49
|
instance_id?: string | undefined;
|
|
46
|
-
uuid?: string | undefined;
|
|
47
50
|
}>, any, any>, {
|
|
48
51
|
cvmId: any;
|
|
49
52
|
}, any>;
|
|
50
53
|
export type StartCvmRequest = CvmIdInput;
|
|
51
|
-
declare
|
|
52
|
-
|
|
53
|
-
status: string;
|
|
54
|
-
name: string;
|
|
55
|
-
id: number;
|
|
56
|
-
app_id: string;
|
|
57
|
-
instance_id: string | null;
|
|
58
|
-
vcpu: number;
|
|
59
|
-
memory: number;
|
|
60
|
-
disk_size: number;
|
|
61
|
-
teepod_id: number;
|
|
62
|
-
vm_uuid: string | null;
|
|
63
|
-
encrypted_env_pubkey: string | null;
|
|
64
|
-
created_at: string;
|
|
65
|
-
version?: string | null | undefined;
|
|
66
|
-
app_url?: string | null | undefined;
|
|
67
|
-
teepod?: {
|
|
68
|
-
name: string;
|
|
69
|
-
id: number;
|
|
70
|
-
region_identifier?: string | null | undefined;
|
|
71
|
-
} | null | undefined;
|
|
72
|
-
base_image?: string | null | undefined;
|
|
73
|
-
user_id?: number | null | undefined;
|
|
74
|
-
docker_compose_file?: string | null | undefined;
|
|
75
|
-
features?: string[] | null | undefined;
|
|
76
|
-
manifest_version?: number | null | undefined;
|
|
77
|
-
runner?: string | null | undefined;
|
|
78
|
-
}>;
|
|
79
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
80
|
-
schema: T;
|
|
81
|
-
}): Promise<import("zod").TypeOf<T>>;
|
|
82
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
83
|
-
schema: false;
|
|
84
|
-
}): Promise<unknown>;
|
|
85
|
-
}, safeStartCvm: {
|
|
86
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
87
|
-
status: string;
|
|
88
|
-
name: string;
|
|
89
|
-
id: number;
|
|
90
|
-
app_id: string;
|
|
91
|
-
instance_id: string | null;
|
|
92
|
-
vcpu: number;
|
|
93
|
-
memory: number;
|
|
94
|
-
disk_size: number;
|
|
95
|
-
teepod_id: number;
|
|
96
|
-
vm_uuid: string | null;
|
|
97
|
-
encrypted_env_pubkey: string | null;
|
|
98
|
-
created_at: string;
|
|
99
|
-
version?: string | null | undefined;
|
|
100
|
-
app_url?: string | null | undefined;
|
|
101
|
-
teepod?: {
|
|
102
|
-
name: string;
|
|
103
|
-
id: number;
|
|
104
|
-
region_identifier?: string | null | undefined;
|
|
105
|
-
} | null | undefined;
|
|
106
|
-
base_image?: string | null | undefined;
|
|
107
|
-
user_id?: number | null | undefined;
|
|
108
|
-
docker_compose_file?: string | null | undefined;
|
|
109
|
-
features?: string[] | null | undefined;
|
|
110
|
-
manifest_version?: number | null | undefined;
|
|
111
|
-
runner?: string | null | undefined;
|
|
112
|
-
}>>;
|
|
113
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
114
|
-
schema: T;
|
|
115
|
-
}): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
|
|
116
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
117
|
-
schema: false;
|
|
118
|
-
}): Promise<import("../..").SafeResult<unknown>>;
|
|
119
|
-
};
|
|
120
|
-
export { startCvm, safeStartCvm };
|
|
54
|
+
export declare function startCvm<V extends ApiVersion>(client: Client<V>, request: StartCvmRequest): Promise<VMForVersion<V>>;
|
|
55
|
+
export declare function safeStartCvm<V extends ApiVersion>(client: Client<V>, request: StartCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { type Client, type SafeResult } from "../../client";
|
|
2
|
+
import type { ApiVersion } from "../../types/client";
|
|
1
3
|
import { type CvmIdInput } from "../../types/cvm_id";
|
|
4
|
+
import { type VMForVersion } from "../../types/cvm_info";
|
|
2
5
|
/**
|
|
3
6
|
* Force stop a CVM (Confidential Virtual Machine)
|
|
4
7
|
*
|
|
@@ -36,86 +39,18 @@ export declare const StopCvmRequestSchema: import("zod").ZodEffects<import("zod"
|
|
|
36
39
|
}, "strip", import("zod").ZodTypeAny, {
|
|
37
40
|
name?: string | undefined;
|
|
38
41
|
id?: string | undefined;
|
|
42
|
+
uuid?: string | undefined;
|
|
39
43
|
app_id?: string | undefined;
|
|
40
44
|
instance_id?: string | undefined;
|
|
41
|
-
uuid?: string | undefined;
|
|
42
45
|
}, {
|
|
43
46
|
name?: string | undefined;
|
|
44
47
|
id?: string | undefined;
|
|
48
|
+
uuid?: string | undefined;
|
|
45
49
|
app_id?: string | undefined;
|
|
46
50
|
instance_id?: string | undefined;
|
|
47
|
-
uuid?: string | undefined;
|
|
48
51
|
}>, any, any>, {
|
|
49
52
|
cvmId: any;
|
|
50
53
|
}, any>;
|
|
51
54
|
export type StopCvmRequest = CvmIdInput;
|
|
52
|
-
declare
|
|
53
|
-
|
|
54
|
-
status: string;
|
|
55
|
-
name: string;
|
|
56
|
-
id: number;
|
|
57
|
-
app_id: string;
|
|
58
|
-
instance_id: string | null;
|
|
59
|
-
vcpu: number;
|
|
60
|
-
memory: number;
|
|
61
|
-
disk_size: number;
|
|
62
|
-
teepod_id: number;
|
|
63
|
-
vm_uuid: string | null;
|
|
64
|
-
encrypted_env_pubkey: string | null;
|
|
65
|
-
created_at: string;
|
|
66
|
-
version?: string | null | undefined;
|
|
67
|
-
app_url?: string | null | undefined;
|
|
68
|
-
teepod?: {
|
|
69
|
-
name: string;
|
|
70
|
-
id: number;
|
|
71
|
-
region_identifier?: string | null | undefined;
|
|
72
|
-
} | null | undefined;
|
|
73
|
-
base_image?: string | null | undefined;
|
|
74
|
-
user_id?: number | null | undefined;
|
|
75
|
-
docker_compose_file?: string | null | undefined;
|
|
76
|
-
features?: string[] | null | undefined;
|
|
77
|
-
manifest_version?: number | null | undefined;
|
|
78
|
-
runner?: string | null | undefined;
|
|
79
|
-
}>;
|
|
80
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
81
|
-
schema: T;
|
|
82
|
-
}): Promise<import("zod").TypeOf<T>>;
|
|
83
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
84
|
-
schema: false;
|
|
85
|
-
}): Promise<unknown>;
|
|
86
|
-
}, safeStopCvm: {
|
|
87
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
88
|
-
status: string;
|
|
89
|
-
name: string;
|
|
90
|
-
id: number;
|
|
91
|
-
app_id: string;
|
|
92
|
-
instance_id: string | null;
|
|
93
|
-
vcpu: number;
|
|
94
|
-
memory: number;
|
|
95
|
-
disk_size: number;
|
|
96
|
-
teepod_id: number;
|
|
97
|
-
vm_uuid: string | null;
|
|
98
|
-
encrypted_env_pubkey: string | null;
|
|
99
|
-
created_at: string;
|
|
100
|
-
version?: string | null | undefined;
|
|
101
|
-
app_url?: string | null | undefined;
|
|
102
|
-
teepod?: {
|
|
103
|
-
name: string;
|
|
104
|
-
id: number;
|
|
105
|
-
region_identifier?: string | null | undefined;
|
|
106
|
-
} | null | undefined;
|
|
107
|
-
base_image?: string | null | undefined;
|
|
108
|
-
user_id?: number | null | undefined;
|
|
109
|
-
docker_compose_file?: string | null | undefined;
|
|
110
|
-
features?: string[] | null | undefined;
|
|
111
|
-
manifest_version?: number | null | undefined;
|
|
112
|
-
runner?: string | null | undefined;
|
|
113
|
-
}>>;
|
|
114
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
115
|
-
schema: T;
|
|
116
|
-
}): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
|
|
117
|
-
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
118
|
-
schema: false;
|
|
119
|
-
}): Promise<import("../..").SafeResult<unknown>>;
|
|
120
|
-
};
|
|
121
|
-
export { stopCvm, safeStopCvm };
|
|
55
|
+
export declare function stopCvm<V extends ApiVersion>(client: Client<V>, request: StopCvmRequest): Promise<VMForVersion<V>>;
|
|
56
|
+
export declare function safeStopCvm<V extends ApiVersion>(client: Client<V>, request: StopCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
|
|
@@ -129,20 +129,20 @@ export declare const UpdateCvmEnvsRequestSchema: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
129
129
|
encrypted_env: string;
|
|
130
130
|
name?: string | undefined;
|
|
131
131
|
id?: string | undefined;
|
|
132
|
+
uuid?: string | undefined;
|
|
132
133
|
app_id?: string | undefined;
|
|
133
134
|
instance_id?: string | undefined;
|
|
134
135
|
compose_hash?: string | undefined;
|
|
135
|
-
uuid?: string | undefined;
|
|
136
136
|
env_keys?: string[] | undefined;
|
|
137
137
|
transaction_hash?: string | undefined;
|
|
138
138
|
}, {
|
|
139
139
|
encrypted_env: string;
|
|
140
140
|
name?: string | undefined;
|
|
141
141
|
id?: string | undefined;
|
|
142
|
+
uuid?: string | undefined;
|
|
142
143
|
app_id?: string | undefined;
|
|
143
144
|
instance_id?: string | undefined;
|
|
144
145
|
compose_hash?: string | undefined;
|
|
145
|
-
uuid?: string | undefined;
|
|
146
146
|
env_keys?: string[] | undefined;
|
|
147
147
|
transaction_hash?: string | undefined;
|
|
148
148
|
}>, any, any>, {
|
|
@@ -222,36 +222,36 @@ declare const UpdateCvmEnvsPreconditionRequiredSchema: z.ZodObject<{
|
|
|
222
222
|
status: "precondition_required";
|
|
223
223
|
message: string;
|
|
224
224
|
app_id: string;
|
|
225
|
+
compose_hash: string;
|
|
226
|
+
device_id: string;
|
|
225
227
|
kms_info: {
|
|
226
228
|
version: string;
|
|
227
229
|
id: string;
|
|
228
230
|
slug: string | null;
|
|
229
|
-
url: string;
|
|
230
231
|
chain_id: number | null;
|
|
232
|
+
url: string;
|
|
231
233
|
kms_contract_address: `0x${string}`;
|
|
232
234
|
gateway_app_id: `0x${string}`;
|
|
233
235
|
} & {
|
|
234
236
|
[k: string]: unknown;
|
|
235
237
|
};
|
|
236
|
-
device_id: string;
|
|
237
|
-
compose_hash: string;
|
|
238
238
|
}, {
|
|
239
239
|
status: "precondition_required";
|
|
240
240
|
message: string;
|
|
241
241
|
app_id: string;
|
|
242
|
+
compose_hash: string;
|
|
243
|
+
device_id: string;
|
|
242
244
|
kms_info: {
|
|
243
245
|
version: string;
|
|
244
246
|
id: string;
|
|
245
247
|
slug: string | null;
|
|
246
|
-
url: string;
|
|
247
248
|
chain_id: number | null;
|
|
249
|
+
url: string;
|
|
248
250
|
kms_contract_address: string | null;
|
|
249
251
|
gateway_app_id: string | null;
|
|
250
252
|
} & {
|
|
251
253
|
[k: string]: unknown;
|
|
252
254
|
};
|
|
253
|
-
device_id: string;
|
|
254
|
-
compose_hash: string;
|
|
255
255
|
}>;
|
|
256
256
|
export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
257
257
|
status: z.ZodLiteral<"in_progress">;
|
|
@@ -319,36 +319,36 @@ export declare const UpdateCvmEnvsResultSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
319
319
|
status: "precondition_required";
|
|
320
320
|
message: string;
|
|
321
321
|
app_id: string;
|
|
322
|
+
compose_hash: string;
|
|
323
|
+
device_id: string;
|
|
322
324
|
kms_info: {
|
|
323
325
|
version: string;
|
|
324
326
|
id: string;
|
|
325
327
|
slug: string | null;
|
|
326
|
-
url: string;
|
|
327
328
|
chain_id: number | null;
|
|
329
|
+
url: string;
|
|
328
330
|
kms_contract_address: `0x${string}`;
|
|
329
331
|
gateway_app_id: `0x${string}`;
|
|
330
332
|
} & {
|
|
331
333
|
[k: string]: unknown;
|
|
332
334
|
};
|
|
333
|
-
device_id: string;
|
|
334
|
-
compose_hash: string;
|
|
335
335
|
}, {
|
|
336
336
|
status: "precondition_required";
|
|
337
337
|
message: string;
|
|
338
338
|
app_id: string;
|
|
339
|
+
compose_hash: string;
|
|
340
|
+
device_id: string;
|
|
339
341
|
kms_info: {
|
|
340
342
|
version: string;
|
|
341
343
|
id: string;
|
|
342
344
|
slug: string | null;
|
|
343
|
-
url: string;
|
|
344
345
|
chain_id: number | null;
|
|
346
|
+
url: string;
|
|
345
347
|
kms_contract_address: string | null;
|
|
346
348
|
gateway_app_id: string | null;
|
|
347
349
|
} & {
|
|
348
350
|
[k: string]: unknown;
|
|
349
351
|
};
|
|
350
|
-
device_id: string;
|
|
351
|
-
compose_hash: string;
|
|
352
352
|
}>]>;
|
|
353
353
|
export type UpdateCvmEnvsRequest = z.input<typeof UpdateCvmEnvsRequestSchema>;
|
|
354
354
|
export type UpdateCvmEnvsResult = z.infer<typeof UpdateCvmEnvsResultSchema>;
|
|
@@ -372,19 +372,19 @@ declare const updateCvmEnvs: {
|
|
|
372
372
|
status: "precondition_required";
|
|
373
373
|
message: string;
|
|
374
374
|
app_id: string;
|
|
375
|
+
compose_hash: string;
|
|
376
|
+
device_id: string;
|
|
375
377
|
kms_info: {
|
|
376
378
|
version: string;
|
|
377
379
|
id: string;
|
|
378
380
|
slug: string | null;
|
|
379
|
-
url: string;
|
|
380
381
|
chain_id: number | null;
|
|
382
|
+
url: string;
|
|
381
383
|
kms_contract_address: `0x${string}`;
|
|
382
384
|
gateway_app_id: `0x${string}`;
|
|
383
385
|
} & {
|
|
384
386
|
[k: string]: unknown;
|
|
385
387
|
};
|
|
386
|
-
device_id: string;
|
|
387
|
-
compose_hash: string;
|
|
388
388
|
}>;
|
|
389
389
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
390
390
|
schema: T;
|
|
@@ -402,19 +402,19 @@ declare const updateCvmEnvs: {
|
|
|
402
402
|
status: "precondition_required";
|
|
403
403
|
message: string;
|
|
404
404
|
app_id: string;
|
|
405
|
+
compose_hash: string;
|
|
406
|
+
device_id: string;
|
|
405
407
|
kms_info: {
|
|
406
408
|
version: string;
|
|
407
409
|
id: string;
|
|
408
410
|
slug: string | null;
|
|
409
|
-
url: string;
|
|
410
411
|
chain_id: number | null;
|
|
412
|
+
url: string;
|
|
411
413
|
kms_contract_address: `0x${string}`;
|
|
412
414
|
gateway_app_id: `0x${string}`;
|
|
413
415
|
} & {
|
|
414
416
|
[k: string]: unknown;
|
|
415
417
|
};
|
|
416
|
-
device_id: string;
|
|
417
|
-
compose_hash: string;
|
|
418
418
|
}>>;
|
|
419
419
|
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
420
420
|
schema: T;
|
|
@@ -35,24 +35,24 @@ export declare const UpdateCvmResourcesRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
name?: string | undefined;
|
|
37
37
|
id?: string | undefined;
|
|
38
|
+
uuid?: string | undefined;
|
|
38
39
|
app_id?: string | undefined;
|
|
39
40
|
instance_id?: string | undefined;
|
|
40
41
|
vcpu?: number | undefined;
|
|
41
42
|
memory?: number | undefined;
|
|
42
43
|
disk_size?: number | undefined;
|
|
43
44
|
instance_type?: string | undefined;
|
|
44
|
-
uuid?: string | undefined;
|
|
45
45
|
allow_restart?: boolean | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
name?: string | undefined;
|
|
48
48
|
id?: string | undefined;
|
|
49
|
+
uuid?: string | undefined;
|
|
49
50
|
app_id?: string | undefined;
|
|
50
51
|
instance_id?: string | undefined;
|
|
51
52
|
vcpu?: number | undefined;
|
|
52
53
|
memory?: number | undefined;
|
|
53
54
|
disk_size?: number | undefined;
|
|
54
55
|
instance_type?: string | undefined;
|
|
55
|
-
uuid?: string | undefined;
|
|
56
56
|
allow_restart?: boolean | undefined;
|
|
57
57
|
}>, any, any>;
|
|
58
58
|
export type UpdateCvmResourcesRequest = z.infer<typeof UpdateCvmResourcesRequestSchema>;
|
|
@@ -32,43 +32,50 @@ export declare const UpdateCvmVisibilityRequestSchema: z.ZodEffects<z.ZodObject<
|
|
|
32
32
|
public_logs: boolean;
|
|
33
33
|
name?: string | undefined;
|
|
34
34
|
id?: string | undefined;
|
|
35
|
+
uuid?: string | undefined;
|
|
35
36
|
app_id?: string | undefined;
|
|
36
37
|
instance_id?: string | undefined;
|
|
37
38
|
public_tcbinfo?: boolean | undefined;
|
|
38
|
-
uuid?: string | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
public_sysinfo: boolean;
|
|
41
41
|
public_logs: boolean;
|
|
42
42
|
name?: string | undefined;
|
|
43
43
|
id?: string | undefined;
|
|
44
|
+
uuid?: string | undefined;
|
|
44
45
|
app_id?: string | undefined;
|
|
45
46
|
instance_id?: string | undefined;
|
|
46
47
|
public_tcbinfo?: boolean | undefined;
|
|
47
|
-
uuid?: string | undefined;
|
|
48
48
|
}>, any, any>;
|
|
49
49
|
export type UpdateCvmVisibilityRequest = z.infer<typeof UpdateCvmVisibilityRequestSchema>;
|
|
50
50
|
declare const updateCvmVisibility: {
|
|
51
51
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
|
|
52
52
|
status: string;
|
|
53
53
|
name: string;
|
|
54
|
-
id: number;
|
|
54
|
+
id: string | number;
|
|
55
55
|
app_id: string;
|
|
56
56
|
instance_id: string | null;
|
|
57
|
+
teepod_id: number | null;
|
|
58
|
+
vm_uuid: string | null;
|
|
59
|
+
base_image: string | null;
|
|
57
60
|
vcpu: number;
|
|
58
61
|
memory: number;
|
|
59
62
|
disk_size: number;
|
|
63
|
+
encrypted_env_pubkey: string | null;
|
|
60
64
|
listed: boolean;
|
|
61
65
|
in_progress: boolean;
|
|
62
66
|
public_urls: {
|
|
63
67
|
app: string;
|
|
64
68
|
instance: string;
|
|
65
69
|
}[];
|
|
66
|
-
teepod_id: number | null;
|
|
67
|
-
vm_uuid: string | null;
|
|
68
|
-
base_image: string | null;
|
|
69
|
-
encrypted_env_pubkey: string | null;
|
|
70
70
|
public_sysinfo: boolean;
|
|
71
71
|
public_logs: boolean;
|
|
72
|
+
teepod?: {
|
|
73
|
+
name: string;
|
|
74
|
+
id: number;
|
|
75
|
+
region_identifier?: string | null | undefined;
|
|
76
|
+
} | null | undefined;
|
|
77
|
+
deployer_address?: string | null | undefined;
|
|
78
|
+
contract_address?: string | null | undefined;
|
|
72
79
|
dapp_dashboard_url?: string | null | undefined;
|
|
73
80
|
syslog_endpoint?: string | null | undefined;
|
|
74
81
|
project_id?: string | null | undefined;
|
|
@@ -90,14 +97,7 @@ declare const updateCvmVisibility: {
|
|
|
90
97
|
gpu_count: number;
|
|
91
98
|
} | null | undefined;
|
|
92
99
|
updated_at?: string | null | undefined;
|
|
93
|
-
teepod?: {
|
|
94
|
-
name: string;
|
|
95
|
-
id: number;
|
|
96
|
-
region_identifier?: string | null | undefined;
|
|
97
|
-
} | null | undefined;
|
|
98
100
|
instance_type?: string | null | undefined;
|
|
99
|
-
contract_address?: string | null | undefined;
|
|
100
|
-
deployer_address?: string | null | undefined;
|
|
101
101
|
scheduled_delete_at?: string | null | undefined;
|
|
102
102
|
}>;
|
|
103
103
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
@@ -110,24 +110,31 @@ declare const updateCvmVisibility: {
|
|
|
110
110
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
|
|
111
111
|
status: string;
|
|
112
112
|
name: string;
|
|
113
|
-
id: number;
|
|
113
|
+
id: string | number;
|
|
114
114
|
app_id: string;
|
|
115
115
|
instance_id: string | null;
|
|
116
|
+
teepod_id: number | null;
|
|
117
|
+
vm_uuid: string | null;
|
|
118
|
+
base_image: string | null;
|
|
116
119
|
vcpu: number;
|
|
117
120
|
memory: number;
|
|
118
121
|
disk_size: number;
|
|
122
|
+
encrypted_env_pubkey: string | null;
|
|
119
123
|
listed: boolean;
|
|
120
124
|
in_progress: boolean;
|
|
121
125
|
public_urls: {
|
|
122
126
|
app: string;
|
|
123
127
|
instance: string;
|
|
124
128
|
}[];
|
|
125
|
-
teepod_id: number | null;
|
|
126
|
-
vm_uuid: string | null;
|
|
127
|
-
base_image: string | null;
|
|
128
|
-
encrypted_env_pubkey: string | null;
|
|
129
129
|
public_sysinfo: boolean;
|
|
130
130
|
public_logs: boolean;
|
|
131
|
+
teepod?: {
|
|
132
|
+
name: string;
|
|
133
|
+
id: number;
|
|
134
|
+
region_identifier?: string | null | undefined;
|
|
135
|
+
} | null | undefined;
|
|
136
|
+
deployer_address?: string | null | undefined;
|
|
137
|
+
contract_address?: string | null | undefined;
|
|
131
138
|
dapp_dashboard_url?: string | null | undefined;
|
|
132
139
|
syslog_endpoint?: string | null | undefined;
|
|
133
140
|
project_id?: string | null | undefined;
|
|
@@ -149,14 +156,7 @@ declare const updateCvmVisibility: {
|
|
|
149
156
|
gpu_count: number;
|
|
150
157
|
} | null | undefined;
|
|
151
158
|
updated_at?: string | null | undefined;
|
|
152
|
-
teepod?: {
|
|
153
|
-
name: string;
|
|
154
|
-
id: number;
|
|
155
|
-
region_identifier?: string | null | undefined;
|
|
156
|
-
} | null | undefined;
|
|
157
159
|
instance_type?: string | null | undefined;
|
|
158
|
-
contract_address?: string | null | undefined;
|
|
159
|
-
deployer_address?: string | null | undefined;
|
|
160
160
|
scheduled_delete_at?: string | null | undefined;
|
|
161
161
|
}>>;
|
|
162
162
|
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|