@phala/cloud 0.2.4 → 0.2.5
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/get_app_attestation.d.ts +963 -0
- package/dist/actions/apps/get_app_device_allowlist.d.ts +108 -0
- package/dist/actions/blockchains/abi/dstack_app.d.ts +101 -0
- package/dist/actions/blockchains/add_device.d.ts +62 -0
- package/dist/actions/blockchains/check_device_allowed.d.ts +44 -0
- package/dist/actions/blockchains/get_allowed_devices.d.ts +65 -0
- package/dist/actions/blockchains/remove_device.d.ts +62 -0
- package/dist/actions/blockchains/set_allow_any_device.d.ts +62 -0
- package/dist/actions/cvms/get_cvm_attestation.d.ts +220 -0
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +16 -0
- package/dist/actions/cvms/provision_cvm.d.ts +26 -1
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +18 -0
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +93 -0
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +194 -0
- package/dist/actions/cvms/replicate_cvm.d.ts +126 -0
- package/dist/actions/cvms/restart_cvm.d.ts +2 -2
- package/dist/actions/cvms/shutdown_cvm.d.ts +2 -2
- package/dist/actions/cvms/start_cvm.d.ts +2 -2
- package/dist/actions/cvms/stop_cvm.d.ts +2 -2
- package/dist/actions/index.d.ts +14 -1
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +688 -0
- package/dist/actions/os_images/get_os_images.d.ts +217 -0
- package/dist/actions/workspaces/get_workspace.d.ts +2 -0
- package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
- package/dist/create-client.d.ts +30 -0
- package/dist/index.js +1269 -251
- package/dist/index.mjs +1233 -251
- package/dist/types/app_compose.d.ts +5 -0
- package/dist/types/app_info_v20260121.d.ts +68 -0
- package/dist/types/cvm_info.d.ts +3 -3
- package/dist/types/cvm_info_v20260121.d.ts +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const InstanceIdRefreshResultSchema: z.ZodObject<{
|
|
3
|
+
cvm_id: z.ZodNumber;
|
|
4
|
+
identifier: z.ZodString;
|
|
5
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
6
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
9
|
+
verified_with_gateway: z.ZodBoolean;
|
|
10
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
13
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
14
|
+
cvm_id: number;
|
|
15
|
+
identifier: string;
|
|
16
|
+
verified_with_gateway: boolean;
|
|
17
|
+
old_instance_id?: string | null | undefined;
|
|
18
|
+
new_instance_id?: string | null | undefined;
|
|
19
|
+
reason?: string | null | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
22
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
23
|
+
cvm_id: number;
|
|
24
|
+
identifier: string;
|
|
25
|
+
verified_with_gateway: boolean;
|
|
26
|
+
old_instance_id?: string | null | undefined;
|
|
27
|
+
new_instance_id?: string | null | undefined;
|
|
28
|
+
reason?: string | null | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export type InstanceIdRefreshResult = z.infer<typeof InstanceIdRefreshResultSchema>;
|
|
31
|
+
export declare const RefreshCvmInstanceIdRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
32
|
+
id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
34
|
+
app_id: z.ZodOptional<z.ZodString>;
|
|
35
|
+
instance_id: z.ZodOptional<z.ZodString>;
|
|
36
|
+
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
37
|
+
} & {
|
|
38
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
name?: string | undefined;
|
|
42
|
+
id?: string | undefined;
|
|
43
|
+
app_id?: string | undefined;
|
|
44
|
+
instance_id?: string | undefined;
|
|
45
|
+
uuid?: string | undefined;
|
|
46
|
+
overwrite?: boolean | undefined;
|
|
47
|
+
dry_run?: boolean | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
id?: string | undefined;
|
|
51
|
+
app_id?: string | undefined;
|
|
52
|
+
instance_id?: string | undefined;
|
|
53
|
+
uuid?: string | undefined;
|
|
54
|
+
overwrite?: boolean | undefined;
|
|
55
|
+
dry_run?: boolean | undefined;
|
|
56
|
+
}>, any, any>;
|
|
57
|
+
export type RefreshCvmInstanceIdRequest = z.infer<typeof RefreshCvmInstanceIdRequestSchema>;
|
|
58
|
+
declare const refreshCvmInstanceId: {
|
|
59
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
|
|
60
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
61
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
62
|
+
cvm_id: number;
|
|
63
|
+
identifier: string;
|
|
64
|
+
verified_with_gateway: boolean;
|
|
65
|
+
old_instance_id?: string | null | undefined;
|
|
66
|
+
new_instance_id?: string | null | undefined;
|
|
67
|
+
reason?: string | null | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
70
|
+
schema: T;
|
|
71
|
+
} | undefined): Promise<z.TypeOf<T>>;
|
|
72
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
73
|
+
schema: false;
|
|
74
|
+
} | undefined): Promise<unknown>;
|
|
75
|
+
}, safeRefreshCvmInstanceId: {
|
|
76
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
|
|
77
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
78
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
79
|
+
cvm_id: number;
|
|
80
|
+
identifier: string;
|
|
81
|
+
verified_with_gateway: boolean;
|
|
82
|
+
old_instance_id?: string | null | undefined;
|
|
83
|
+
new_instance_id?: string | null | undefined;
|
|
84
|
+
reason?: string | null | undefined;
|
|
85
|
+
}>>;
|
|
86
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
87
|
+
schema: T;
|
|
88
|
+
} | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
89
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
90
|
+
schema: false;
|
|
91
|
+
} | undefined): Promise<import("../..").SafeResult<unknown>>;
|
|
92
|
+
};
|
|
93
|
+
export { refreshCvmInstanceId, safeRefreshCvmInstanceId };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const RefreshCvmInstanceIdsRequestSchema: z.ZodObject<{
|
|
3
|
+
cvm_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4
|
+
running_only: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
missing_only: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
limit?: number | undefined;
|
|
11
|
+
overwrite?: boolean | undefined;
|
|
12
|
+
dry_run?: boolean | undefined;
|
|
13
|
+
cvm_ids?: string[] | undefined;
|
|
14
|
+
running_only?: boolean | undefined;
|
|
15
|
+
missing_only?: boolean | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
limit?: number | undefined;
|
|
18
|
+
overwrite?: boolean | undefined;
|
|
19
|
+
dry_run?: boolean | undefined;
|
|
20
|
+
cvm_ids?: string[] | undefined;
|
|
21
|
+
running_only?: boolean | undefined;
|
|
22
|
+
missing_only?: boolean | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export type RefreshCvmInstanceIdsRequest = z.infer<typeof RefreshCvmInstanceIdsRequestSchema>;
|
|
25
|
+
export declare const RefreshCvmInstanceIdsResponseSchema: z.ZodObject<{
|
|
26
|
+
total: z.ZodNumber;
|
|
27
|
+
scanned: z.ZodNumber;
|
|
28
|
+
updated: z.ZodNumber;
|
|
29
|
+
unchanged: z.ZodNumber;
|
|
30
|
+
skipped: z.ZodNumber;
|
|
31
|
+
conflicts: z.ZodNumber;
|
|
32
|
+
errors: z.ZodNumber;
|
|
33
|
+
items: z.ZodArray<z.ZodObject<{
|
|
34
|
+
cvm_id: z.ZodNumber;
|
|
35
|
+
identifier: z.ZodString;
|
|
36
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
37
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
40
|
+
verified_with_gateway: z.ZodBoolean;
|
|
41
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
44
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
45
|
+
cvm_id: number;
|
|
46
|
+
identifier: string;
|
|
47
|
+
verified_with_gateway: boolean;
|
|
48
|
+
old_instance_id?: string | null | undefined;
|
|
49
|
+
new_instance_id?: string | null | undefined;
|
|
50
|
+
reason?: string | null | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
53
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
54
|
+
cvm_id: number;
|
|
55
|
+
identifier: string;
|
|
56
|
+
verified_with_gateway: boolean;
|
|
57
|
+
old_instance_id?: string | null | undefined;
|
|
58
|
+
new_instance_id?: string | null | undefined;
|
|
59
|
+
reason?: string | null | undefined;
|
|
60
|
+
}>, "many">;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
errors: number;
|
|
63
|
+
items: {
|
|
64
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
65
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
66
|
+
cvm_id: number;
|
|
67
|
+
identifier: string;
|
|
68
|
+
verified_with_gateway: boolean;
|
|
69
|
+
old_instance_id?: string | null | undefined;
|
|
70
|
+
new_instance_id?: string | null | undefined;
|
|
71
|
+
reason?: string | null | undefined;
|
|
72
|
+
}[];
|
|
73
|
+
total: number;
|
|
74
|
+
updated: number;
|
|
75
|
+
unchanged: number;
|
|
76
|
+
skipped: number;
|
|
77
|
+
scanned: number;
|
|
78
|
+
conflicts: number;
|
|
79
|
+
}, {
|
|
80
|
+
errors: number;
|
|
81
|
+
items: {
|
|
82
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
83
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
84
|
+
cvm_id: number;
|
|
85
|
+
identifier: string;
|
|
86
|
+
verified_with_gateway: boolean;
|
|
87
|
+
old_instance_id?: string | null | undefined;
|
|
88
|
+
new_instance_id?: string | null | undefined;
|
|
89
|
+
reason?: string | null | undefined;
|
|
90
|
+
}[];
|
|
91
|
+
total: number;
|
|
92
|
+
updated: number;
|
|
93
|
+
unchanged: number;
|
|
94
|
+
skipped: number;
|
|
95
|
+
scanned: number;
|
|
96
|
+
conflicts: number;
|
|
97
|
+
}>;
|
|
98
|
+
export type RefreshCvmInstanceIdsResponse = z.infer<typeof RefreshCvmInstanceIdsResponseSchema>;
|
|
99
|
+
declare const refreshCvmInstanceIds: {
|
|
100
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
101
|
+
limit?: number | undefined;
|
|
102
|
+
overwrite?: boolean | undefined;
|
|
103
|
+
dry_run?: boolean | undefined;
|
|
104
|
+
cvm_ids?: string[] | undefined;
|
|
105
|
+
running_only?: boolean | undefined;
|
|
106
|
+
missing_only?: boolean | undefined;
|
|
107
|
+
}): Promise<{
|
|
108
|
+
errors: number;
|
|
109
|
+
items: {
|
|
110
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
111
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
112
|
+
cvm_id: number;
|
|
113
|
+
identifier: string;
|
|
114
|
+
verified_with_gateway: boolean;
|
|
115
|
+
old_instance_id?: string | null | undefined;
|
|
116
|
+
new_instance_id?: string | null | undefined;
|
|
117
|
+
reason?: string | null | undefined;
|
|
118
|
+
}[];
|
|
119
|
+
total: number;
|
|
120
|
+
updated: number;
|
|
121
|
+
unchanged: number;
|
|
122
|
+
skipped: number;
|
|
123
|
+
scanned: number;
|
|
124
|
+
conflicts: number;
|
|
125
|
+
}>;
|
|
126
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
127
|
+
limit?: number | undefined;
|
|
128
|
+
overwrite?: boolean | undefined;
|
|
129
|
+
dry_run?: boolean | undefined;
|
|
130
|
+
cvm_ids?: string[] | undefined;
|
|
131
|
+
running_only?: boolean | undefined;
|
|
132
|
+
missing_only?: boolean | undefined;
|
|
133
|
+
}, parameters: {
|
|
134
|
+
schema: T;
|
|
135
|
+
}): Promise<z.TypeOf<T>>;
|
|
136
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
137
|
+
limit?: number | undefined;
|
|
138
|
+
overwrite?: boolean | undefined;
|
|
139
|
+
dry_run?: boolean | undefined;
|
|
140
|
+
cvm_ids?: string[] | undefined;
|
|
141
|
+
running_only?: boolean | undefined;
|
|
142
|
+
missing_only?: boolean | undefined;
|
|
143
|
+
}, parameters: {
|
|
144
|
+
schema: false;
|
|
145
|
+
}): Promise<unknown>;
|
|
146
|
+
}, safeRefreshCvmInstanceIds: {
|
|
147
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
148
|
+
limit?: number | undefined;
|
|
149
|
+
overwrite?: boolean | undefined;
|
|
150
|
+
dry_run?: boolean | undefined;
|
|
151
|
+
cvm_ids?: string[] | undefined;
|
|
152
|
+
running_only?: boolean | undefined;
|
|
153
|
+
missing_only?: boolean | undefined;
|
|
154
|
+
}): Promise<import("../..").SafeResult<{
|
|
155
|
+
errors: number;
|
|
156
|
+
items: {
|
|
157
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
158
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
159
|
+
cvm_id: number;
|
|
160
|
+
identifier: string;
|
|
161
|
+
verified_with_gateway: boolean;
|
|
162
|
+
old_instance_id?: string | null | undefined;
|
|
163
|
+
new_instance_id?: string | null | undefined;
|
|
164
|
+
reason?: string | null | undefined;
|
|
165
|
+
}[];
|
|
166
|
+
total: number;
|
|
167
|
+
updated: number;
|
|
168
|
+
unchanged: number;
|
|
169
|
+
skipped: number;
|
|
170
|
+
scanned: number;
|
|
171
|
+
conflicts: number;
|
|
172
|
+
}>>;
|
|
173
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
174
|
+
limit?: number | undefined;
|
|
175
|
+
overwrite?: boolean | undefined;
|
|
176
|
+
dry_run?: boolean | undefined;
|
|
177
|
+
cvm_ids?: string[] | undefined;
|
|
178
|
+
running_only?: boolean | undefined;
|
|
179
|
+
missing_only?: boolean | undefined;
|
|
180
|
+
}, parameters: {
|
|
181
|
+
schema: T;
|
|
182
|
+
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
183
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
184
|
+
limit?: number | undefined;
|
|
185
|
+
overwrite?: boolean | undefined;
|
|
186
|
+
dry_run?: boolean | undefined;
|
|
187
|
+
cvm_ids?: string[] | undefined;
|
|
188
|
+
running_only?: boolean | undefined;
|
|
189
|
+
missing_only?: boolean | undefined;
|
|
190
|
+
}, parameters: {
|
|
191
|
+
schema: false;
|
|
192
|
+
}): Promise<import("../..").SafeResult<unknown>>;
|
|
193
|
+
};
|
|
194
|
+
export { refreshCvmInstanceIds, safeRefreshCvmInstanceIds };
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Replicate (scale up) a CVM by creating a new replica
|
|
4
|
+
*
|
|
5
|
+
* This action creates a new CVM instance with the same configuration
|
|
6
|
+
* as the source CVM, effectively scaling up the application.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import { createClient, replicateCvm } from '@phala/cloud'
|
|
11
|
+
*
|
|
12
|
+
* const client = createClient();
|
|
13
|
+
* const replica = await replicateCvm(client, { id: 'my-cvm-id' });
|
|
14
|
+
* console.log(replica.vm_uuid); // new replica UUID
|
|
15
|
+
*
|
|
16
|
+
* // Replicate to a specific node
|
|
17
|
+
* const replica2 = await replicateCvm(client, { id: 'my-cvm-id', node_id: 42 });
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ## Safe Version
|
|
21
|
+
*
|
|
22
|
+
* Use `safeReplicateCvm` for error handling without exceptions:
|
|
23
|
+
*
|
|
24
|
+
* ```typescript
|
|
25
|
+
* const result = await safeReplicateCvm(client, { id: 'my-cvm-id' });
|
|
26
|
+
* if (result.success) {
|
|
27
|
+
* console.log('Replica created:', result.data.vm_uuid);
|
|
28
|
+
* } else {
|
|
29
|
+
* console.error('Failed to replicate CVM:', result.error.message);
|
|
30
|
+
* }
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
export declare const ReplicateCvmRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
34
|
+
id: z.ZodOptional<z.ZodString>;
|
|
35
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
36
|
+
app_id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
instance_id: z.ZodOptional<z.ZodString>;
|
|
38
|
+
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
39
|
+
} & {
|
|
40
|
+
node_id: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
name?: string | undefined;
|
|
43
|
+
id?: string | undefined;
|
|
44
|
+
app_id?: string | undefined;
|
|
45
|
+
instance_id?: string | undefined;
|
|
46
|
+
uuid?: string | undefined;
|
|
47
|
+
node_id?: number | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
id?: string | undefined;
|
|
51
|
+
app_id?: string | undefined;
|
|
52
|
+
instance_id?: string | undefined;
|
|
53
|
+
uuid?: string | undefined;
|
|
54
|
+
node_id?: number | undefined;
|
|
55
|
+
}>, any, any>;
|
|
56
|
+
export type ReplicateCvmRequest = z.infer<typeof ReplicateCvmRequestSchema>;
|
|
57
|
+
declare const replicateCvm: {
|
|
58
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
|
|
59
|
+
status: string;
|
|
60
|
+
name: string;
|
|
61
|
+
id: number;
|
|
62
|
+
app_id: string;
|
|
63
|
+
instance_id: string | null;
|
|
64
|
+
vcpu: number;
|
|
65
|
+
memory: number;
|
|
66
|
+
disk_size: number;
|
|
67
|
+
teepod_id: number;
|
|
68
|
+
vm_uuid: string | null;
|
|
69
|
+
encrypted_env_pubkey: string | null;
|
|
70
|
+
created_at: string;
|
|
71
|
+
version?: string | null | undefined;
|
|
72
|
+
app_url?: string | null | undefined;
|
|
73
|
+
teepod?: {
|
|
74
|
+
name: string;
|
|
75
|
+
id: number;
|
|
76
|
+
region_identifier?: string | null | undefined;
|
|
77
|
+
} | null | undefined;
|
|
78
|
+
base_image?: string | null | undefined;
|
|
79
|
+
user_id?: number | null | undefined;
|
|
80
|
+
docker_compose_file?: string | null | undefined;
|
|
81
|
+
features?: string[] | null | undefined;
|
|
82
|
+
manifest_version?: number | null | undefined;
|
|
83
|
+
runner?: string | null | undefined;
|
|
84
|
+
}>;
|
|
85
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
86
|
+
schema: T;
|
|
87
|
+
} | undefined): Promise<z.TypeOf<T>>;
|
|
88
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
89
|
+
schema: false;
|
|
90
|
+
} | undefined): Promise<unknown>;
|
|
91
|
+
}, safeReplicateCvm: {
|
|
92
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
|
|
93
|
+
status: string;
|
|
94
|
+
name: string;
|
|
95
|
+
id: number;
|
|
96
|
+
app_id: string;
|
|
97
|
+
instance_id: string | null;
|
|
98
|
+
vcpu: number;
|
|
99
|
+
memory: number;
|
|
100
|
+
disk_size: number;
|
|
101
|
+
teepod_id: number;
|
|
102
|
+
vm_uuid: string | null;
|
|
103
|
+
encrypted_env_pubkey: string | null;
|
|
104
|
+
created_at: string;
|
|
105
|
+
version?: string | null | undefined;
|
|
106
|
+
app_url?: string | null | undefined;
|
|
107
|
+
teepod?: {
|
|
108
|
+
name: string;
|
|
109
|
+
id: number;
|
|
110
|
+
region_identifier?: string | null | undefined;
|
|
111
|
+
} | null | undefined;
|
|
112
|
+
base_image?: string | null | undefined;
|
|
113
|
+
user_id?: number | null | undefined;
|
|
114
|
+
docker_compose_file?: string | null | undefined;
|
|
115
|
+
features?: string[] | null | undefined;
|
|
116
|
+
manifest_version?: number | null | undefined;
|
|
117
|
+
runner?: string | null | undefined;
|
|
118
|
+
}>>;
|
|
119
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
120
|
+
schema: T;
|
|
121
|
+
} | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
122
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
123
|
+
schema: false;
|
|
124
|
+
} | undefined): Promise<import("../..").SafeResult<unknown>>;
|
|
125
|
+
};
|
|
126
|
+
export { replicateCvm, safeReplicateCvm };
|
|
@@ -66,7 +66,6 @@ declare const restartCvm: {
|
|
|
66
66
|
disk_size: number;
|
|
67
67
|
teepod_id: number;
|
|
68
68
|
vm_uuid: string | null;
|
|
69
|
-
base_image: string | null;
|
|
70
69
|
encrypted_env_pubkey: string | null;
|
|
71
70
|
created_at: string;
|
|
72
71
|
version?: string | null | undefined;
|
|
@@ -76,6 +75,7 @@ declare const restartCvm: {
|
|
|
76
75
|
id: number;
|
|
77
76
|
region_identifier?: string | null | undefined;
|
|
78
77
|
} | null | undefined;
|
|
78
|
+
base_image?: string | null | undefined;
|
|
79
79
|
user_id?: number | null | undefined;
|
|
80
80
|
docker_compose_file?: string | null | undefined;
|
|
81
81
|
features?: string[] | null | undefined;
|
|
@@ -100,7 +100,6 @@ declare const restartCvm: {
|
|
|
100
100
|
disk_size: number;
|
|
101
101
|
teepod_id: number;
|
|
102
102
|
vm_uuid: string | null;
|
|
103
|
-
base_image: string | null;
|
|
104
103
|
encrypted_env_pubkey: string | null;
|
|
105
104
|
created_at: string;
|
|
106
105
|
version?: string | null | undefined;
|
|
@@ -110,6 +109,7 @@ declare const restartCvm: {
|
|
|
110
109
|
id: number;
|
|
111
110
|
region_identifier?: string | null | undefined;
|
|
112
111
|
} | null | undefined;
|
|
112
|
+
base_image?: string | null | undefined;
|
|
113
113
|
user_id?: number | null | undefined;
|
|
114
114
|
docker_compose_file?: string | null | undefined;
|
|
115
115
|
features?: string[] | null | undefined;
|
|
@@ -59,7 +59,6 @@ declare const shutdownCvm: {
|
|
|
59
59
|
disk_size: number;
|
|
60
60
|
teepod_id: number;
|
|
61
61
|
vm_uuid: string | null;
|
|
62
|
-
base_image: string | null;
|
|
63
62
|
encrypted_env_pubkey: string | null;
|
|
64
63
|
created_at: string;
|
|
65
64
|
version?: string | null | undefined;
|
|
@@ -69,6 +68,7 @@ declare const shutdownCvm: {
|
|
|
69
68
|
id: number;
|
|
70
69
|
region_identifier?: string | null | undefined;
|
|
71
70
|
} | null | undefined;
|
|
71
|
+
base_image?: string | null | undefined;
|
|
72
72
|
user_id?: number | null | undefined;
|
|
73
73
|
docker_compose_file?: string | null | undefined;
|
|
74
74
|
features?: string[] | null | undefined;
|
|
@@ -93,7 +93,6 @@ declare const shutdownCvm: {
|
|
|
93
93
|
disk_size: number;
|
|
94
94
|
teepod_id: number;
|
|
95
95
|
vm_uuid: string | null;
|
|
96
|
-
base_image: string | null;
|
|
97
96
|
encrypted_env_pubkey: string | null;
|
|
98
97
|
created_at: string;
|
|
99
98
|
version?: string | null | undefined;
|
|
@@ -103,6 +102,7 @@ declare const shutdownCvm: {
|
|
|
103
102
|
id: number;
|
|
104
103
|
region_identifier?: string | null | undefined;
|
|
105
104
|
} | null | undefined;
|
|
105
|
+
base_image?: string | null | undefined;
|
|
106
106
|
user_id?: number | null | undefined;
|
|
107
107
|
docker_compose_file?: string | null | undefined;
|
|
108
108
|
features?: string[] | null | undefined;
|
|
@@ -60,7 +60,6 @@ declare const startCvm: {
|
|
|
60
60
|
disk_size: number;
|
|
61
61
|
teepod_id: number;
|
|
62
62
|
vm_uuid: string | null;
|
|
63
|
-
base_image: string | null;
|
|
64
63
|
encrypted_env_pubkey: string | null;
|
|
65
64
|
created_at: string;
|
|
66
65
|
version?: string | null | undefined;
|
|
@@ -70,6 +69,7 @@ declare const startCvm: {
|
|
|
70
69
|
id: number;
|
|
71
70
|
region_identifier?: string | null | undefined;
|
|
72
71
|
} | null | undefined;
|
|
72
|
+
base_image?: string | null | undefined;
|
|
73
73
|
user_id?: number | null | undefined;
|
|
74
74
|
docker_compose_file?: string | null | undefined;
|
|
75
75
|
features?: string[] | null | undefined;
|
|
@@ -94,7 +94,6 @@ declare const startCvm: {
|
|
|
94
94
|
disk_size: number;
|
|
95
95
|
teepod_id: number;
|
|
96
96
|
vm_uuid: string | null;
|
|
97
|
-
base_image: string | null;
|
|
98
97
|
encrypted_env_pubkey: string | null;
|
|
99
98
|
created_at: string;
|
|
100
99
|
version?: string | null | undefined;
|
|
@@ -104,6 +103,7 @@ declare const startCvm: {
|
|
|
104
103
|
id: number;
|
|
105
104
|
region_identifier?: string | null | undefined;
|
|
106
105
|
} | null | undefined;
|
|
106
|
+
base_image?: string | null | undefined;
|
|
107
107
|
user_id?: number | null | undefined;
|
|
108
108
|
docker_compose_file?: string | null | undefined;
|
|
109
109
|
features?: string[] | null | undefined;
|
|
@@ -61,7 +61,6 @@ declare const stopCvm: {
|
|
|
61
61
|
disk_size: number;
|
|
62
62
|
teepod_id: number;
|
|
63
63
|
vm_uuid: string | null;
|
|
64
|
-
base_image: string | null;
|
|
65
64
|
encrypted_env_pubkey: string | null;
|
|
66
65
|
created_at: string;
|
|
67
66
|
version?: string | null | undefined;
|
|
@@ -71,6 +70,7 @@ declare const stopCvm: {
|
|
|
71
70
|
id: number;
|
|
72
71
|
region_identifier?: string | null | undefined;
|
|
73
72
|
} | null | undefined;
|
|
73
|
+
base_image?: string | null | undefined;
|
|
74
74
|
user_id?: number | null | undefined;
|
|
75
75
|
docker_compose_file?: string | null | undefined;
|
|
76
76
|
features?: string[] | null | undefined;
|
|
@@ -95,7 +95,6 @@ declare const stopCvm: {
|
|
|
95
95
|
disk_size: number;
|
|
96
96
|
teepod_id: number;
|
|
97
97
|
vm_uuid: string | null;
|
|
98
|
-
base_image: string | null;
|
|
99
98
|
encrypted_env_pubkey: string | null;
|
|
100
99
|
created_at: string;
|
|
101
100
|
version?: string | null | undefined;
|
|
@@ -105,6 +104,7 @@ declare const stopCvm: {
|
|
|
105
104
|
id: number;
|
|
106
105
|
region_identifier?: string | null | undefined;
|
|
107
106
|
} | null | undefined;
|
|
107
|
+
base_image?: string | null | undefined;
|
|
108
108
|
user_id?: number | null | undefined;
|
|
109
109
|
docker_compose_file?: string | null | undefined;
|
|
110
110
|
features?: string[] | null | undefined;
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -4,6 +4,12 @@ export { provisionCvm, safeProvisionCvm, ProvisionCvmSchema, type ProvisionCvm,
|
|
|
4
4
|
export { commitCvmProvision, safeCommitCvmProvision, CommitCvmProvisionSchema, type CommitCvmProvision, CommitCvmProvisionRequestSchema, type CommitCvmProvisionRequest, } from "./cvms/commit_cvm_provision";
|
|
5
5
|
export { deployAppAuth, safeDeployAppAuth, type DeployAppAuthParameters, type DeployAppAuthReturnType, DeployAppAuthSchema, type DeployAppAuth, DeployAppAuthRequestSchema, type DeployAppAuthRequest, type SafeDeployAppAuthResult, } from "./blockchains/deploy_app_auth";
|
|
6
6
|
export { addComposeHash, safeAddComposeHash, type AddComposeHashParameters, type AddComposeHashReturnType, AddComposeHashSchema, type AddComposeHash, type AddComposeHashRequest, type SafeAddComposeHashResult, } from "./blockchains/add_compose_hash";
|
|
7
|
+
export { addDevice, safeAddDevice, type AddDeviceParameters, type AddDeviceReturnType, AddDeviceSchema, type AddDevice, type AddDeviceRequest, type SafeAddDeviceResult, } from "./blockchains/add_device";
|
|
8
|
+
export { removeDevice, safeRemoveDevice, type RemoveDeviceParameters, type RemoveDeviceReturnType, RemoveDeviceSchema, type RemoveDevice, type RemoveDeviceRequest, type SafeRemoveDeviceResult, } from "./blockchains/remove_device";
|
|
9
|
+
export { setAllowAnyDevice, safeSetAllowAnyDevice, type SetAllowAnyDeviceParameters, type SetAllowAnyDeviceReturnType, SetAllowAnyDeviceSchema, type SetAllowAnyDevice, type SetAllowAnyDeviceRequest, type SafeSetAllowAnyDeviceResult, } from "./blockchains/set_allow_any_device";
|
|
10
|
+
export { getAllowedDevices, safeGetAllowedDevices, GetAllowedDevicesSchema, type GetAllowedDevices, type GetAllowedDevicesRequest, type SafeGetAllowedDevicesResult, } from "./blockchains/get_allowed_devices";
|
|
11
|
+
export { checkDeviceAllowed, safeCheckDeviceAllowed, type CheckDeviceAllowedRequest, } from "./blockchains/check_device_allowed";
|
|
12
|
+
export { dstackAppAbi } from "./blockchains/abi/dstack_app";
|
|
7
13
|
export { getCvmComposeFile, safeGetCvmComposeFile, type GetCvmComposeFileResult, GetCvmComposeFileRequestSchema, type GetCvmComposeFileRequest, } from "./cvms/get_cvm_compose_file";
|
|
8
14
|
export { provisionCvmComposeFileUpdate, safeProvisionCvmComposeFileUpdate, ProvisionCvmComposeFileUpdateRequestSchema, type ProvisionCvmComposeFileUpdateRequest, ProvisionCvmComposeFileUpdateResultSchema, type ProvisionCvmComposeFileUpdateResult, } from "./cvms/provision_cvm_compose_file_update";
|
|
9
15
|
export { commitCvmComposeFileUpdate, safeCommitCvmComposeFileUpdate, CommitCvmComposeFileUpdateRequestSchema, type CommitCvmComposeFileUpdateRequest, CommitCvmComposeFileUpdateSchema, type CommitCvmComposeFileUpdate, } from "./cvms/commit_cvm_compose_file_update";
|
|
@@ -13,6 +19,7 @@ export { getCvmInfo, safeGetCvmInfo, GetCvmInfoRequestSchema, type GetCvmInfoReq
|
|
|
13
19
|
export { getCvmList, safeGetCvmList, GetCvmListRequestSchema, type GetCvmListRequest, } from "./cvms/get_cvm_list";
|
|
14
20
|
export { getKmsInfo, safeGetKmsInfo, GetKmsInfoRequestSchema, type GetKmsInfoRequest, } from "./kms/get_kms_info";
|
|
15
21
|
export { getKmsList, safeGetKmsList, GetKmsListSchema, GetKmsListRequestSchema, type GetKmsListRequest, type GetKmsListResponse, } from "./kms/get_kms_list";
|
|
22
|
+
export { getKmsOnChainDetail, safeGetKmsOnChainDetail, GetKmsOnChainDetailResponseSchema, GetKmsOnChainDetailRequestSchema, OnChainKmsContractSchema, OnChainDeviceSchema, OnChainOsImageSchema, type GetKmsOnChainDetailResponse, type GetKmsOnChainDetailRequest, type OnChainKmsContract, type OnChainDevice, type OnChainOsImage, } from "./kms/get_kms_onchain_detail";
|
|
16
23
|
export { nextAppIds, safeNextAppIds, NextAppIdsSchema, NextAppIdsRequestSchema, type NextAppIdsRequest, type NextAppIds, } from "./kms/next_app_ids";
|
|
17
24
|
export { listWorkspaces, safeListWorkspaces, WorkspaceResponseSchema, ListWorkspacesSchema, PaginationMetadataSchema, type WorkspaceResponse, type ListWorkspaces, type PaginationMetadata, type ListWorkspacesRequest, } from "./workspaces/list_workspaces";
|
|
18
25
|
export { getWorkspace, safeGetWorkspace, } from "./workspaces/get_workspace";
|
|
@@ -24,15 +31,18 @@ export { shutdownCvm, safeShutdownCvm, ShutdownCvmRequestSchema, type ShutdownCv
|
|
|
24
31
|
export { stopCvm, safeStopCvm, StopCvmRequestSchema, type StopCvmRequest, } from "./cvms/stop_cvm";
|
|
25
32
|
export { restartCvm, safeRestartCvm, RestartCvmRequestSchema, type RestartCvmRequest, } from "./cvms/restart_cvm";
|
|
26
33
|
export { deleteCvm, safeDeleteCvm, DeleteCvmRequestSchema, type DeleteCvmRequest, } from "./cvms/delete_cvm";
|
|
34
|
+
export { replicateCvm, safeReplicateCvm, ReplicateCvmRequestSchema, type ReplicateCvmRequest, } from "./cvms/replicate_cvm";
|
|
27
35
|
export { getCvmStats, safeGetCvmStats, CvmSystemInfoSchema, GetCvmStatsRequestSchema, type GetCvmStatsRequest, type CvmSystemInfo, } from "./cvms/get_cvm_stats";
|
|
28
36
|
export { getCvmContainersStats, safeGetCvmContainersStats, CvmContainersStatsSchema, GetCvmContainersStatsRequestSchema, type GetCvmContainersStatsRequest, type CvmContainersStats, } from "./cvms/get_cvm_containers_stats";
|
|
29
37
|
export { getCvmNetwork, safeGetCvmNetwork, CvmNetworkSchema, GetCvmNetworkRequestSchema, type GetCvmNetworkRequest, type CvmNetwork, } from "./cvms/get_cvm_network";
|
|
30
38
|
export { getCvmState, safeGetCvmState, CvmStateSchema, GetCvmStateRequestSchema, type GetCvmStateRequest, type CvmState, } from "./cvms/get_cvm_state";
|
|
31
39
|
export { watchCvmState, WatchCvmStateRequestSchema, type WatchCvmStateRequest, type WatchCvmStateOptions, type SSEEvent, WatchAbortedError, MaxRetriesExceededError, } from "./cvms/watch_cvm_state";
|
|
32
|
-
export { getCvmAttestation, safeGetCvmAttestation, CvmAttestationSchema, GetCvmAttestationRequestSchema, type GetCvmAttestationRequest, type CvmAttestation, } from "./cvms/get_cvm_attestation";
|
|
40
|
+
export { getCvmAttestation, safeGetCvmAttestation, CvmAttestationSchema, GetCvmAttestationRequestSchema, CertificateSubjectSchema, CertificateIssuerSchema, CertificateSchema, EventLogSchema, TcbInfoSchema, type GetCvmAttestationRequest, type CvmAttestation, } from "./cvms/get_cvm_attestation";
|
|
33
41
|
export { getCvmDockerCompose, safeGetCvmDockerCompose, GetCvmDockerComposeRequestSchema, type GetCvmDockerComposeRequest, } from "./cvms/get_cvm_docker_compose";
|
|
34
42
|
export { updateCvmResources, safeUpdateCvmResources, UpdateCvmResourcesRequestSchema, type UpdateCvmResourcesRequest, } from "./cvms/update_cvm_resources";
|
|
35
43
|
export { updateCvmVisibility, safeUpdateCvmVisibility, UpdateCvmVisibilityRequestSchema, type UpdateCvmVisibilityRequest, } from "./cvms/update_cvm_visibility";
|
|
44
|
+
export { refreshCvmInstanceId, safeRefreshCvmInstanceId, InstanceIdRefreshResultSchema, RefreshCvmInstanceIdRequestSchema, type InstanceIdRefreshResult, type RefreshCvmInstanceIdRequest, } from "./cvms/refresh_cvm_instance_id";
|
|
45
|
+
export { refreshCvmInstanceIds, safeRefreshCvmInstanceIds, RefreshCvmInstanceIdsRequestSchema, RefreshCvmInstanceIdsResponseSchema, type RefreshCvmInstanceIdsRequest, type RefreshCvmInstanceIdsResponse, } from "./cvms/refresh_cvm_instance_ids";
|
|
36
46
|
export { getAvailableOsImages, safeGetAvailableOsImages, OSImageVariantSchema, GetAvailableOSImagesResponseSchema, GetAvailableOSImagesRequestSchema, type OSImageVariant, type GetAvailableOSImagesResponse, type GetAvailableOSImagesRequest, } from "./cvms/get_available_os_images";
|
|
37
47
|
export { updateOsImage, safeUpdateOsImage, UpdateOsImageRequestSchema, type UpdateOsImageRequest, } from "./cvms/update_os_image";
|
|
38
48
|
export { updateDockerCompose, safeUpdateDockerCompose, UpdateDockerComposeRequestSchema, type UpdateDockerComposeRequest, UpdateDockerComposeResultSchema, type UpdateDockerComposeResult, type UpdateDockerComposeInProgress, type UpdateDockerComposePreconditionRequired, } from "./cvms/update_docker_compose";
|
|
@@ -48,6 +58,9 @@ export { syncGithubSshKeys, safeSyncGithubSshKeys, SyncGithubSshKeysResponseSche
|
|
|
48
58
|
export { getAppList, safeGetAppList, GetAppListRequestSchema, type GetAppListRequest, } from "./apps/get_app_list";
|
|
49
59
|
export { getAppInfo, safeGetAppInfo, GetAppInfoRequestSchema, type GetAppInfoRequest, } from "./apps/get_app_info";
|
|
50
60
|
export { getAppCvms, safeGetAppCvms, GetAppCvmsRequestSchema, type GetAppCvmsRequest, } from "./apps/get_app_cvms";
|
|
61
|
+
export { getAppDeviceAllowlist, safeGetAppDeviceAllowlist, GetAppDeviceAllowlistRequestSchema, type GetAppDeviceAllowlistRequest, type DeviceAllowlistResponse, type DeviceAllowlistItem, } from "./apps/get_app_device_allowlist";
|
|
51
62
|
export { getAppRevisions, safeGetAppRevisions, GetAppRevisionsRequestSchema, type GetAppRevisionsRequest, } from "./apps/get_app_revisions";
|
|
52
63
|
export { getAppRevisionDetail, safeGetAppRevisionDetail, GetAppRevisionDetailRequestSchema, type GetAppRevisionDetailRequest, } from "./apps/get_app_revision_detail";
|
|
53
64
|
export { getAppFilterOptions, safeGetAppFilterOptions, AppFilterOptionsSchema, type AppFilterOptions, } from "./apps/get_app_filter_options";
|
|
65
|
+
export { getAppAttestation, safeGetAppAttestation, AppAttestationInstanceSchema, AppAttestationResponseSchema, GetAppAttestationRequestSchema, type AppAttestationInstance, type AppAttestationResponse, type GetAppAttestationRequest, } from "./apps/get_app_attestation";
|
|
66
|
+
export { getOsImages, safeGetOsImages, GetOsImagesResponseSchema, GetOsImagesRequestSchema, OSImagePublicSchema, type GetOsImagesResponse, type GetOsImagesRequest, type OSImagePublic, } from "./os_images/get_os_images";
|