phala 1.1.19 → 1.1.20-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/dist/api/index.d.ts +35 -35
- package/dist/api/index.js +32 -37
- package/dist/index.js +166 -217
- package/package.json +4 -4
package/dist/api/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CvmInfoDetailV20260522 } from '@phala/cloud';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
declare const dockerConfigSchema: z.ZodObject<{
|
|
@@ -6,13 +6,13 @@ declare const dockerConfigSchema: z.ZodObject<{
|
|
|
6
6
|
registry: z.ZodNullable<z.ZodString>;
|
|
7
7
|
username: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
username?: string;
|
|
10
|
-
password?: string;
|
|
11
9
|
registry?: string;
|
|
12
|
-
}, {
|
|
13
|
-
username?: string;
|
|
14
10
|
password?: string;
|
|
11
|
+
username?: string;
|
|
12
|
+
}, {
|
|
15
13
|
registry?: string;
|
|
14
|
+
password?: string;
|
|
15
|
+
username?: string;
|
|
16
16
|
}>;
|
|
17
17
|
declare const composeFileSchema: z.ZodObject<{
|
|
18
18
|
docker_compose_file: z.ZodString;
|
|
@@ -21,13 +21,13 @@ declare const composeFileSchema: z.ZodObject<{
|
|
|
21
21
|
registry: z.ZodNullable<z.ZodString>;
|
|
22
22
|
username: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
username?: string;
|
|
25
|
-
password?: string;
|
|
26
24
|
registry?: string;
|
|
27
|
-
}, {
|
|
28
|
-
username?: string;
|
|
29
25
|
password?: string;
|
|
26
|
+
username?: string;
|
|
27
|
+
}, {
|
|
30
28
|
registry?: string;
|
|
29
|
+
password?: string;
|
|
30
|
+
username?: string;
|
|
31
31
|
}>>>;
|
|
32
32
|
features: z.ZodArray<z.ZodString, "many">;
|
|
33
33
|
kms_enabled: z.ZodBoolean;
|
|
@@ -46,13 +46,13 @@ declare const composeFileSchema: z.ZodObject<{
|
|
|
46
46
|
registry: z.ZodNullable<z.ZodString>;
|
|
47
47
|
username: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
username?: string;
|
|
50
|
-
password?: string;
|
|
51
49
|
registry?: string;
|
|
52
|
-
}, {
|
|
53
|
-
username?: string;
|
|
54
50
|
password?: string;
|
|
51
|
+
username?: string;
|
|
52
|
+
}, {
|
|
55
53
|
registry?: string;
|
|
54
|
+
password?: string;
|
|
55
|
+
username?: string;
|
|
56
56
|
}>>>;
|
|
57
57
|
features: z.ZodArray<z.ZodString, "many">;
|
|
58
58
|
kms_enabled: z.ZodBoolean;
|
|
@@ -71,13 +71,13 @@ declare const composeFileSchema: z.ZodObject<{
|
|
|
71
71
|
registry: z.ZodNullable<z.ZodString>;
|
|
72
72
|
username: z.ZodString;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
username?: string;
|
|
75
|
-
password?: string;
|
|
76
74
|
registry?: string;
|
|
77
|
-
}, {
|
|
78
|
-
username?: string;
|
|
79
75
|
password?: string;
|
|
76
|
+
username?: string;
|
|
77
|
+
}, {
|
|
80
78
|
registry?: string;
|
|
79
|
+
password?: string;
|
|
80
|
+
username?: string;
|
|
81
81
|
}>>>;
|
|
82
82
|
features: z.ZodArray<z.ZodString, "many">;
|
|
83
83
|
kms_enabled: z.ZodBoolean;
|
|
@@ -91,7 +91,7 @@ declare const composeFileSchema: z.ZodObject<{
|
|
|
91
91
|
version: z.ZodOptional<z.ZodString>;
|
|
92
92
|
}, z.ZodTypeAny, "passthrough">>;
|
|
93
93
|
declare const postCvmResponseSchema: z.ZodObject<{
|
|
94
|
-
id: z.
|
|
94
|
+
id: z.ZodString;
|
|
95
95
|
name: z.ZodString;
|
|
96
96
|
status: z.ZodString;
|
|
97
97
|
teepod_id: z.ZodNullable<z.ZodNumber>;
|
|
@@ -105,7 +105,7 @@ declare const postCvmResponseSchema: z.ZodObject<{
|
|
|
105
105
|
name?: string;
|
|
106
106
|
id?: number;
|
|
107
107
|
}>>;
|
|
108
|
-
user_id: z.ZodNullable<z.
|
|
108
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
109
109
|
app_id: z.ZodString;
|
|
110
110
|
vm_uuid: z.ZodNullable<z.ZodString>;
|
|
111
111
|
instance_id: z.ZodNullable<z.ZodString>;
|
|
@@ -126,7 +126,7 @@ declare const postCvmResponseSchema: z.ZodObject<{
|
|
|
126
126
|
vcpu?: number;
|
|
127
127
|
memory?: number;
|
|
128
128
|
status?: string;
|
|
129
|
-
id?:
|
|
129
|
+
id?: string;
|
|
130
130
|
app_id?: string;
|
|
131
131
|
instance_id?: string;
|
|
132
132
|
version?: string;
|
|
@@ -139,7 +139,7 @@ declare const postCvmResponseSchema: z.ZodObject<{
|
|
|
139
139
|
name?: string;
|
|
140
140
|
id?: number;
|
|
141
141
|
};
|
|
142
|
-
user_id?:
|
|
142
|
+
user_id?: string;
|
|
143
143
|
vm_uuid?: string;
|
|
144
144
|
app_url?: string;
|
|
145
145
|
base_image?: string;
|
|
@@ -151,7 +151,7 @@ declare const postCvmResponseSchema: z.ZodObject<{
|
|
|
151
151
|
vcpu?: number;
|
|
152
152
|
memory?: number;
|
|
153
153
|
status?: string;
|
|
154
|
-
id?:
|
|
154
|
+
id?: string;
|
|
155
155
|
app_id?: string;
|
|
156
156
|
instance_id?: string;
|
|
157
157
|
version?: string;
|
|
@@ -164,7 +164,7 @@ declare const postCvmResponseSchema: z.ZodObject<{
|
|
|
164
164
|
name?: string;
|
|
165
165
|
id?: number;
|
|
166
166
|
};
|
|
167
|
-
user_id?:
|
|
167
|
+
user_id?: string;
|
|
168
168
|
vm_uuid?: string;
|
|
169
169
|
app_url?: string;
|
|
170
170
|
base_image?: string;
|
|
@@ -275,7 +275,7 @@ interface TCBInfo {
|
|
|
275
275
|
event_log: TCBEventLogEntry[];
|
|
276
276
|
}
|
|
277
277
|
declare const replicateCvmResponseSchema: z.ZodObject<{
|
|
278
|
-
id: z.
|
|
278
|
+
id: z.ZodString;
|
|
279
279
|
name: z.ZodString;
|
|
280
280
|
status: z.ZodString;
|
|
281
281
|
teepod_id: z.ZodNumber;
|
|
@@ -289,7 +289,7 @@ declare const replicateCvmResponseSchema: z.ZodObject<{
|
|
|
289
289
|
name?: string;
|
|
290
290
|
id?: number;
|
|
291
291
|
}>;
|
|
292
|
-
user_id: z.ZodOptional<z.ZodNullable<z.
|
|
292
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
293
293
|
app_id: z.ZodString;
|
|
294
294
|
vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
295
295
|
instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -310,7 +310,7 @@ declare const replicateCvmResponseSchema: z.ZodObject<{
|
|
|
310
310
|
vcpu?: number;
|
|
311
311
|
memory?: number;
|
|
312
312
|
status?: string;
|
|
313
|
-
id?:
|
|
313
|
+
id?: string;
|
|
314
314
|
app_id?: string;
|
|
315
315
|
instance_id?: string;
|
|
316
316
|
version?: string;
|
|
@@ -323,7 +323,7 @@ declare const replicateCvmResponseSchema: z.ZodObject<{
|
|
|
323
323
|
name?: string;
|
|
324
324
|
id?: number;
|
|
325
325
|
};
|
|
326
|
-
user_id?:
|
|
326
|
+
user_id?: string;
|
|
327
327
|
vm_uuid?: string;
|
|
328
328
|
app_url?: string;
|
|
329
329
|
base_image?: string;
|
|
@@ -335,7 +335,7 @@ declare const replicateCvmResponseSchema: z.ZodObject<{
|
|
|
335
335
|
vcpu?: number;
|
|
336
336
|
memory?: number;
|
|
337
337
|
status?: string;
|
|
338
|
-
id?:
|
|
338
|
+
id?: string;
|
|
339
339
|
app_id?: string;
|
|
340
340
|
instance_id?: string;
|
|
341
341
|
version?: string;
|
|
@@ -348,7 +348,7 @@ declare const replicateCvmResponseSchema: z.ZodObject<{
|
|
|
348
348
|
name?: string;
|
|
349
349
|
id?: number;
|
|
350
350
|
};
|
|
351
|
-
user_id?:
|
|
351
|
+
user_id?: string;
|
|
352
352
|
vm_uuid?: string;
|
|
353
353
|
app_url?: string;
|
|
354
354
|
base_image?: string;
|
|
@@ -767,7 +767,7 @@ interface KmsListItem {
|
|
|
767
767
|
url: string;
|
|
768
768
|
version: string;
|
|
769
769
|
kms_type?: string;
|
|
770
|
-
kms_contract_id?: string |
|
|
770
|
+
kms_contract_id?: string | null;
|
|
771
771
|
chain_id?: number | null;
|
|
772
772
|
kms_contract_address?: string | null;
|
|
773
773
|
gateway_app_id?: string | null;
|
|
@@ -775,16 +775,16 @@ interface KmsListItem {
|
|
|
775
775
|
}
|
|
776
776
|
interface CvmCreateNodeKmsRelation {
|
|
777
777
|
teepod_id: number;
|
|
778
|
-
kms_id: string
|
|
778
|
+
kms_id: string;
|
|
779
779
|
kms_type: string;
|
|
780
|
-
kms_contract_id?: string |
|
|
780
|
+
kms_contract_id?: string | null;
|
|
781
781
|
kms_contract_address?: string | null;
|
|
782
782
|
supported_os_images?: string[];
|
|
783
783
|
}
|
|
784
784
|
interface CvmCreateGatewayResource {
|
|
785
|
-
id: string
|
|
785
|
+
id: string;
|
|
786
786
|
teepod_id?: number | null;
|
|
787
|
-
kms_contract_id: string
|
|
787
|
+
kms_contract_id: string;
|
|
788
788
|
rpc_url?: string | null;
|
|
789
789
|
domain_suffix?: string | null;
|
|
790
790
|
enabled: boolean;
|
|
@@ -842,7 +842,7 @@ interface AvailableNodesResponse {
|
|
|
842
842
|
* @param appId App ID (with or without app_ prefix)
|
|
843
843
|
* @returns CVM details
|
|
844
844
|
*/
|
|
845
|
-
declare function getCvmByAppId(appId: string): Promise<
|
|
845
|
+
declare function getCvmByAppId(appId: string): Promise<CvmInfoDetailV20260522>;
|
|
846
846
|
/**
|
|
847
847
|
* Get CVM network information
|
|
848
848
|
* @param appId App ID (with or without app_ prefix)
|