@phala/cloud 0.0.5 → 0.0.7
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/commit_cvm_compose_file_update.d.ts +6 -6
- package/dist/actions/commit_cvm_provision.d.ts +6 -6
- package/dist/actions/get_cvm_info.d.ts +4 -1
- package/dist/actions/get_cvm_info.d.ts.map +1 -1
- package/dist/actions/get_cvm_list.d.ts +75 -75
- package/dist/actions/provision_cvm.d.ts +21 -18
- package/dist/actions/provision_cvm.d.ts.map +1 -1
- package/dist/actions/provision_cvm_compose_file_update.d.ts +27 -27
- package/dist/index.js +342 -329
- package/dist/index.mjs +334 -329
- package/dist/types/cvm_info.d.ts +98 -95
- package/dist/types/cvm_info.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -82,32 +82,32 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
|
|
|
82
82
|
compose_hash: string;
|
|
83
83
|
id?: string | undefined;
|
|
84
84
|
app_id?: string | undefined;
|
|
85
|
-
env_keys?: string[] | undefined;
|
|
86
85
|
instance_id?: string | undefined;
|
|
86
|
+
env_keys?: string[] | undefined;
|
|
87
87
|
encrypted_env?: string | undefined;
|
|
88
88
|
uuid?: string | undefined;
|
|
89
89
|
}, {
|
|
90
90
|
compose_hash: string;
|
|
91
91
|
id?: string | undefined;
|
|
92
92
|
app_id?: string | undefined;
|
|
93
|
-
env_keys?: string[] | undefined;
|
|
94
93
|
instance_id?: string | undefined;
|
|
94
|
+
env_keys?: string[] | undefined;
|
|
95
95
|
encrypted_env?: string | undefined;
|
|
96
96
|
uuid?: string | undefined;
|
|
97
97
|
}>, {
|
|
98
98
|
compose_hash: string;
|
|
99
99
|
id?: string | undefined;
|
|
100
100
|
app_id?: string | undefined;
|
|
101
|
-
env_keys?: string[] | undefined;
|
|
102
101
|
instance_id?: string | undefined;
|
|
102
|
+
env_keys?: string[] | undefined;
|
|
103
103
|
encrypted_env?: string | undefined;
|
|
104
104
|
uuid?: string | undefined;
|
|
105
105
|
}, {
|
|
106
106
|
compose_hash: string;
|
|
107
107
|
id?: string | undefined;
|
|
108
108
|
app_id?: string | undefined;
|
|
109
|
-
env_keys?: string[] | undefined;
|
|
110
109
|
instance_id?: string | undefined;
|
|
110
|
+
env_keys?: string[] | undefined;
|
|
111
111
|
encrypted_env?: string | undefined;
|
|
112
112
|
uuid?: string | undefined;
|
|
113
113
|
}>, {
|
|
@@ -119,8 +119,8 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
|
|
|
119
119
|
compose_hash: string;
|
|
120
120
|
id?: string | undefined;
|
|
121
121
|
app_id?: string | undefined;
|
|
122
|
-
env_keys?: string[] | undefined;
|
|
123
122
|
instance_id?: string | undefined;
|
|
123
|
+
env_keys?: string[] | undefined;
|
|
124
124
|
encrypted_env?: string | undefined;
|
|
125
125
|
uuid?: string | undefined;
|
|
126
126
|
};
|
|
@@ -128,8 +128,8 @@ export declare const CommitCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.Zod
|
|
|
128
128
|
compose_hash: string;
|
|
129
129
|
id?: string | undefined;
|
|
130
130
|
app_id?: string | undefined;
|
|
131
|
-
env_keys?: string[] | undefined;
|
|
132
131
|
instance_id?: string | undefined;
|
|
132
|
+
env_keys?: string[] | undefined;
|
|
133
133
|
encrypted_env?: string | undefined;
|
|
134
134
|
uuid?: string | undefined;
|
|
135
135
|
}>;
|
|
@@ -84,11 +84,11 @@ export declare const CommitCvmProvisionSchema: z.ZodObject<{
|
|
|
84
84
|
id: z.ZodNumber;
|
|
85
85
|
name: z.ZodString;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
name: string;
|
|
88
87
|
id: number;
|
|
89
|
-
}, {
|
|
90
88
|
name: string;
|
|
89
|
+
}, {
|
|
91
90
|
id: number;
|
|
91
|
+
name: string;
|
|
92
92
|
}>>;
|
|
93
93
|
user_id: z.ZodNullable<z.ZodNumber>;
|
|
94
94
|
app_id: z.ZodNullable<z.ZodString>;
|
|
@@ -117,11 +117,11 @@ export declare const CommitCvmProvisionSchema: z.ZodObject<{
|
|
|
117
117
|
id: z.ZodNumber;
|
|
118
118
|
name: z.ZodString;
|
|
119
119
|
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
name: string;
|
|
121
120
|
id: number;
|
|
122
|
-
}, {
|
|
123
121
|
name: string;
|
|
122
|
+
}, {
|
|
124
123
|
id: number;
|
|
124
|
+
name: string;
|
|
125
125
|
}>>;
|
|
126
126
|
user_id: z.ZodNullable<z.ZodNumber>;
|
|
127
127
|
app_id: z.ZodNullable<z.ZodString>;
|
|
@@ -150,11 +150,11 @@ export declare const CommitCvmProvisionSchema: z.ZodObject<{
|
|
|
150
150
|
id: z.ZodNumber;
|
|
151
151
|
name: z.ZodString;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
name: string;
|
|
154
153
|
id: number;
|
|
155
|
-
}, {
|
|
156
154
|
name: string;
|
|
155
|
+
}, {
|
|
157
156
|
id: number;
|
|
157
|
+
name: string;
|
|
158
158
|
}>>;
|
|
159
159
|
user_id: z.ZodNullable<z.ZodNumber>;
|
|
160
160
|
app_id: z.ZodNullable<z.ZodString>;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type Client, type SafeResult } from "../client";
|
|
3
3
|
import { CvmLegacyDetailSchema } from "../types/cvm_info";
|
|
4
|
+
import { type KmsInfo } from "../types/kms_info";
|
|
4
5
|
import { ActionParameters, ActionReturnType } from "../types/common";
|
|
5
6
|
export { CvmLegacyDetailSchema };
|
|
6
|
-
export type GetCvmInfoResponse = z.infer<typeof CvmLegacyDetailSchema
|
|
7
|
+
export type GetCvmInfoResponse = z.infer<typeof CvmLegacyDetailSchema> & {
|
|
8
|
+
kms_info: KmsInfo;
|
|
9
|
+
};
|
|
7
10
|
export declare const GetCvmInfoRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
8
11
|
id: z.ZodOptional<z.ZodString>;
|
|
9
12
|
uuid: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_cvm_info.d.ts","sourceRoot":"","sources":["../../src/actions/get_cvm_info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGrE,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"get_cvm_info.d.ts","sourceRoot":"","sources":["../../src/actions/get_cvm_info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGrE,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAEjC,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC;AAE/F,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+B/B,CAAC;AAEN,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAEtE,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC;AAE1F;;;;;;;;;;;;;GAaG;AACH,wBAAsB,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EACpF,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,UAAU,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GACnC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAYlC;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EACxF,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,UAAU,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GACnC,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CAwB9C"}
|
|
@@ -32,12 +32,12 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
32
32
|
image_version: z.ZodNullable<z.ZodString>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
status: string;
|
|
35
|
-
name: string;
|
|
36
35
|
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
uptime: string;
|
|
38
|
+
app_url: string | null;
|
|
37
39
|
app_id: string;
|
|
38
40
|
instance_id: string | null;
|
|
39
|
-
app_url: string | null;
|
|
40
|
-
uptime: string;
|
|
41
41
|
exited_at: string | null;
|
|
42
42
|
boot_progress: string | null;
|
|
43
43
|
boot_error: string | null;
|
|
@@ -46,12 +46,12 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
46
46
|
configuration?: any;
|
|
47
47
|
}, {
|
|
48
48
|
status: string;
|
|
49
|
-
name: string;
|
|
50
49
|
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
uptime: string;
|
|
52
|
+
app_url: string | null;
|
|
51
53
|
app_id: string;
|
|
52
54
|
instance_id: string | null;
|
|
53
|
-
app_url: string | null;
|
|
54
|
-
uptime: string;
|
|
55
55
|
exited_at: string | null;
|
|
56
56
|
boot_progress: string | null;
|
|
57
57
|
boot_error: string | null;
|
|
@@ -75,12 +75,12 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
75
75
|
name: z.ZodString;
|
|
76
76
|
region_identifier: z.ZodOptional<z.ZodString>;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
name: string;
|
|
79
78
|
id: number;
|
|
79
|
+
name: string;
|
|
80
80
|
region_identifier?: string | undefined;
|
|
81
81
|
}, {
|
|
82
|
-
name: string;
|
|
83
82
|
id: number;
|
|
83
|
+
name: string;
|
|
84
84
|
region_identifier?: string | undefined;
|
|
85
85
|
}>>>>;
|
|
86
86
|
listed: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -134,27 +134,14 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
134
134
|
}, "strip", z.ZodTypeAny, {
|
|
135
135
|
status?: string | undefined;
|
|
136
136
|
name?: string | undefined;
|
|
137
|
-
listed?: boolean | undefined;
|
|
138
|
-
vcpu?: number | null | undefined;
|
|
139
|
-
memory?: number | null | undefined;
|
|
140
|
-
disk_size?: number | null | undefined;
|
|
141
|
-
kms_info?: {
|
|
142
|
-
version: string;
|
|
143
|
-
id: string;
|
|
144
|
-
slug: string;
|
|
145
|
-
url: string;
|
|
146
|
-
chain_id?: number | undefined;
|
|
147
|
-
kms_contract_address?: string | undefined;
|
|
148
|
-
gateway_app_id?: string | undefined;
|
|
149
|
-
} | null | undefined;
|
|
150
137
|
hosted?: {
|
|
151
138
|
status: string;
|
|
152
|
-
name: string;
|
|
153
139
|
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
uptime: string;
|
|
142
|
+
app_url: string | null;
|
|
154
143
|
app_id: string;
|
|
155
144
|
instance_id: string | null;
|
|
156
|
-
app_url: string | null;
|
|
157
|
-
uptime: string;
|
|
158
145
|
exited_at: string | null;
|
|
159
146
|
boot_progress: string | null;
|
|
160
147
|
boot_error: string | null;
|
|
@@ -167,10 +154,11 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
167
154
|
username: string;
|
|
168
155
|
} | null | undefined;
|
|
169
156
|
node?: {
|
|
170
|
-
name: string;
|
|
171
157
|
id: number;
|
|
158
|
+
name: string;
|
|
172
159
|
region_identifier?: string | undefined;
|
|
173
160
|
} | null | undefined;
|
|
161
|
+
listed?: boolean | undefined;
|
|
174
162
|
in_progress?: boolean | undefined;
|
|
175
163
|
dapp_dashboard_url?: string | null | undefined;
|
|
176
164
|
syslog_endpoint?: string | null | undefined;
|
|
@@ -178,18 +166,6 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
178
166
|
project_id?: string | null | undefined;
|
|
179
167
|
project_type?: string | null | undefined;
|
|
180
168
|
billing_period?: string | null | undefined;
|
|
181
|
-
gateway_domain?: string | null | undefined;
|
|
182
|
-
public_urls?: {
|
|
183
|
-
app: string;
|
|
184
|
-
instance: string;
|
|
185
|
-
}[] | undefined;
|
|
186
|
-
}, {
|
|
187
|
-
status?: string | undefined;
|
|
188
|
-
name?: string | undefined;
|
|
189
|
-
listed?: boolean | undefined;
|
|
190
|
-
vcpu?: number | null | undefined;
|
|
191
|
-
memory?: number | null | undefined;
|
|
192
|
-
disk_size?: number | null | undefined;
|
|
193
169
|
kms_info?: {
|
|
194
170
|
version: string;
|
|
195
171
|
id: string;
|
|
@@ -199,14 +175,25 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
199
175
|
kms_contract_address?: string | undefined;
|
|
200
176
|
gateway_app_id?: string | undefined;
|
|
201
177
|
} | null | undefined;
|
|
178
|
+
vcpu?: number | null | undefined;
|
|
179
|
+
memory?: number | null | undefined;
|
|
180
|
+
disk_size?: number | null | undefined;
|
|
181
|
+
gateway_domain?: string | null | undefined;
|
|
182
|
+
public_urls?: {
|
|
183
|
+
app: string;
|
|
184
|
+
instance: string;
|
|
185
|
+
}[] | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
status?: string | undefined;
|
|
188
|
+
name?: string | undefined;
|
|
202
189
|
hosted?: {
|
|
203
190
|
status: string;
|
|
204
|
-
name: string;
|
|
205
191
|
id: string;
|
|
192
|
+
name: string;
|
|
193
|
+
uptime: string;
|
|
194
|
+
app_url: string | null;
|
|
206
195
|
app_id: string;
|
|
207
196
|
instance_id: string | null;
|
|
208
|
-
app_url: string | null;
|
|
209
|
-
uptime: string;
|
|
210
197
|
exited_at: string | null;
|
|
211
198
|
boot_progress: string | null;
|
|
212
199
|
boot_error: string | null;
|
|
@@ -219,10 +206,11 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
219
206
|
username: string;
|
|
220
207
|
} | null | undefined;
|
|
221
208
|
node?: {
|
|
222
|
-
name: string;
|
|
223
209
|
id: number;
|
|
210
|
+
name: string;
|
|
224
211
|
region_identifier?: string | undefined;
|
|
225
212
|
} | null | undefined;
|
|
213
|
+
listed?: boolean | undefined;
|
|
226
214
|
in_progress?: boolean | undefined;
|
|
227
215
|
dapp_dashboard_url?: string | null | undefined;
|
|
228
216
|
syslog_endpoint?: string | null | undefined;
|
|
@@ -230,6 +218,18 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
230
218
|
project_id?: string | null | undefined;
|
|
231
219
|
project_type?: string | null | undefined;
|
|
232
220
|
billing_period?: string | null | undefined;
|
|
221
|
+
kms_info?: {
|
|
222
|
+
version: string;
|
|
223
|
+
id: string;
|
|
224
|
+
slug: string;
|
|
225
|
+
url: string;
|
|
226
|
+
chain_id?: number | undefined;
|
|
227
|
+
kms_contract_address?: string | undefined;
|
|
228
|
+
gateway_app_id?: string | undefined;
|
|
229
|
+
} | null | undefined;
|
|
230
|
+
vcpu?: number | null | undefined;
|
|
231
|
+
memory?: number | null | undefined;
|
|
232
|
+
disk_size?: number | null | undefined;
|
|
233
233
|
gateway_domain?: string | null | undefined;
|
|
234
234
|
public_urls?: {
|
|
235
235
|
app: string;
|
|
@@ -246,27 +246,14 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
246
246
|
items: {
|
|
247
247
|
status?: string | undefined;
|
|
248
248
|
name?: string | undefined;
|
|
249
|
-
listed?: boolean | undefined;
|
|
250
|
-
vcpu?: number | null | undefined;
|
|
251
|
-
memory?: number | null | undefined;
|
|
252
|
-
disk_size?: number | null | undefined;
|
|
253
|
-
kms_info?: {
|
|
254
|
-
version: string;
|
|
255
|
-
id: string;
|
|
256
|
-
slug: string;
|
|
257
|
-
url: string;
|
|
258
|
-
chain_id?: number | undefined;
|
|
259
|
-
kms_contract_address?: string | undefined;
|
|
260
|
-
gateway_app_id?: string | undefined;
|
|
261
|
-
} | null | undefined;
|
|
262
249
|
hosted?: {
|
|
263
250
|
status: string;
|
|
264
|
-
name: string;
|
|
265
251
|
id: string;
|
|
252
|
+
name: string;
|
|
253
|
+
uptime: string;
|
|
254
|
+
app_url: string | null;
|
|
266
255
|
app_id: string;
|
|
267
256
|
instance_id: string | null;
|
|
268
|
-
app_url: string | null;
|
|
269
|
-
uptime: string;
|
|
270
257
|
exited_at: string | null;
|
|
271
258
|
boot_progress: string | null;
|
|
272
259
|
boot_error: string | null;
|
|
@@ -279,10 +266,11 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
279
266
|
username: string;
|
|
280
267
|
} | null | undefined;
|
|
281
268
|
node?: {
|
|
282
|
-
name: string;
|
|
283
269
|
id: number;
|
|
270
|
+
name: string;
|
|
284
271
|
region_identifier?: string | undefined;
|
|
285
272
|
} | null | undefined;
|
|
273
|
+
listed?: boolean | undefined;
|
|
286
274
|
in_progress?: boolean | undefined;
|
|
287
275
|
dapp_dashboard_url?: string | null | undefined;
|
|
288
276
|
syslog_endpoint?: string | null | undefined;
|
|
@@ -290,6 +278,18 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
290
278
|
project_id?: string | null | undefined;
|
|
291
279
|
project_type?: string | null | undefined;
|
|
292
280
|
billing_period?: string | null | undefined;
|
|
281
|
+
kms_info?: {
|
|
282
|
+
version: string;
|
|
283
|
+
id: string;
|
|
284
|
+
slug: string;
|
|
285
|
+
url: string;
|
|
286
|
+
chain_id?: number | undefined;
|
|
287
|
+
kms_contract_address?: string | undefined;
|
|
288
|
+
gateway_app_id?: string | undefined;
|
|
289
|
+
} | null | undefined;
|
|
290
|
+
vcpu?: number | null | undefined;
|
|
291
|
+
memory?: number | null | undefined;
|
|
292
|
+
disk_size?: number | null | undefined;
|
|
293
293
|
gateway_domain?: string | null | undefined;
|
|
294
294
|
public_urls?: {
|
|
295
295
|
app: string;
|
|
@@ -304,27 +304,14 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
304
304
|
items: {
|
|
305
305
|
status?: string | undefined;
|
|
306
306
|
name?: string | undefined;
|
|
307
|
-
listed?: boolean | undefined;
|
|
308
|
-
vcpu?: number | null | undefined;
|
|
309
|
-
memory?: number | null | undefined;
|
|
310
|
-
disk_size?: number | null | undefined;
|
|
311
|
-
kms_info?: {
|
|
312
|
-
version: string;
|
|
313
|
-
id: string;
|
|
314
|
-
slug: string;
|
|
315
|
-
url: string;
|
|
316
|
-
chain_id?: number | undefined;
|
|
317
|
-
kms_contract_address?: string | undefined;
|
|
318
|
-
gateway_app_id?: string | undefined;
|
|
319
|
-
} | null | undefined;
|
|
320
307
|
hosted?: {
|
|
321
308
|
status: string;
|
|
322
|
-
name: string;
|
|
323
309
|
id: string;
|
|
310
|
+
name: string;
|
|
311
|
+
uptime: string;
|
|
312
|
+
app_url: string | null;
|
|
324
313
|
app_id: string;
|
|
325
314
|
instance_id: string | null;
|
|
326
|
-
app_url: string | null;
|
|
327
|
-
uptime: string;
|
|
328
315
|
exited_at: string | null;
|
|
329
316
|
boot_progress: string | null;
|
|
330
317
|
boot_error: string | null;
|
|
@@ -337,10 +324,11 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
337
324
|
username: string;
|
|
338
325
|
} | null | undefined;
|
|
339
326
|
node?: {
|
|
340
|
-
name: string;
|
|
341
327
|
id: number;
|
|
328
|
+
name: string;
|
|
342
329
|
region_identifier?: string | undefined;
|
|
343
330
|
} | null | undefined;
|
|
331
|
+
listed?: boolean | undefined;
|
|
344
332
|
in_progress?: boolean | undefined;
|
|
345
333
|
dapp_dashboard_url?: string | null | undefined;
|
|
346
334
|
syslog_endpoint?: string | null | undefined;
|
|
@@ -348,6 +336,18 @@ export declare const GetCvmListSchema: z.ZodObject<{
|
|
|
348
336
|
project_id?: string | null | undefined;
|
|
349
337
|
project_type?: string | null | undefined;
|
|
350
338
|
billing_period?: string | null | undefined;
|
|
339
|
+
kms_info?: {
|
|
340
|
+
version: string;
|
|
341
|
+
id: string;
|
|
342
|
+
slug: string;
|
|
343
|
+
url: string;
|
|
344
|
+
chain_id?: number | undefined;
|
|
345
|
+
kms_contract_address?: string | undefined;
|
|
346
|
+
gateway_app_id?: string | undefined;
|
|
347
|
+
} | null | undefined;
|
|
348
|
+
vcpu?: number | null | undefined;
|
|
349
|
+
memory?: number | null | undefined;
|
|
350
|
+
disk_size?: number | null | undefined;
|
|
351
351
|
gateway_domain?: string | null | undefined;
|
|
352
352
|
public_urls?: {
|
|
353
353
|
app: string;
|
|
@@ -64,6 +64,7 @@ export declare const ProvisionCvmSchema: z.ZodObject<{
|
|
|
64
64
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
65
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
66
|
node_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
67
|
+
kms_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
68
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
68
69
|
app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
70
|
app_env_encrypt_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -72,6 +73,7 @@ export declare const ProvisionCvmSchema: z.ZodObject<{
|
|
|
72
73
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
74
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
75
|
node_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
76
|
+
kms_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
77
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
76
78
|
app_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
79
|
app_env_encrypt_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -80,6 +82,7 @@ export declare const ProvisionCvmSchema: z.ZodObject<{
|
|
|
80
82
|
device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
83
|
os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
84
|
node_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
85
|
+
kms_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
86
|
}, z.ZodTypeAny, "passthrough">>;
|
|
84
87
|
export type ProvisionCvm = z.infer<typeof ProvisionCvmSchema>;
|
|
85
88
|
export declare const ProvisionCvmRequestSchema: z.ZodObject<{
|
|
@@ -101,23 +104,23 @@ export declare const ProvisionCvmRequestSchema: z.ZodObject<{
|
|
|
101
104
|
gateway_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
102
105
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
103
106
|
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
name?: string | undefined;
|
|
108
|
+
public_sysinfo?: boolean | undefined;
|
|
109
|
+
public_logs?: boolean | undefined;
|
|
104
110
|
docker_compose_file?: string | undefined;
|
|
105
111
|
pre_launch_script?: string | undefined;
|
|
106
|
-
name?: string | undefined;
|
|
107
112
|
allowed_envs?: string[] | undefined;
|
|
108
113
|
kms_enabled?: boolean | undefined;
|
|
109
|
-
public_logs?: boolean | undefined;
|
|
110
|
-
public_sysinfo?: boolean | undefined;
|
|
111
114
|
gateway_enabled?: boolean | undefined;
|
|
112
115
|
tproxy_enabled?: boolean | undefined;
|
|
113
116
|
}, {
|
|
117
|
+
name?: string | undefined;
|
|
118
|
+
public_sysinfo?: boolean | undefined;
|
|
119
|
+
public_logs?: boolean | undefined;
|
|
114
120
|
docker_compose_file?: string | undefined;
|
|
115
121
|
pre_launch_script?: string | undefined;
|
|
116
|
-
name?: string | undefined;
|
|
117
122
|
allowed_envs?: string[] | undefined;
|
|
118
123
|
kms_enabled?: boolean | undefined;
|
|
119
|
-
public_logs?: boolean | undefined;
|
|
120
|
-
public_sysinfo?: boolean | undefined;
|
|
121
124
|
gateway_enabled?: boolean | undefined;
|
|
122
125
|
tproxy_enabled?: boolean | undefined;
|
|
123
126
|
}>;
|
|
@@ -144,23 +147,23 @@ export declare const ProvisionCvmRequestSchema: z.ZodObject<{
|
|
|
144
147
|
gateway_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
145
148
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
146
149
|
}, "strip", z.ZodTypeAny, {
|
|
150
|
+
name?: string | undefined;
|
|
151
|
+
public_sysinfo?: boolean | undefined;
|
|
152
|
+
public_logs?: boolean | undefined;
|
|
147
153
|
docker_compose_file?: string | undefined;
|
|
148
154
|
pre_launch_script?: string | undefined;
|
|
149
|
-
name?: string | undefined;
|
|
150
155
|
allowed_envs?: string[] | undefined;
|
|
151
156
|
kms_enabled?: boolean | undefined;
|
|
152
|
-
public_logs?: boolean | undefined;
|
|
153
|
-
public_sysinfo?: boolean | undefined;
|
|
154
157
|
gateway_enabled?: boolean | undefined;
|
|
155
158
|
tproxy_enabled?: boolean | undefined;
|
|
156
159
|
}, {
|
|
160
|
+
name?: string | undefined;
|
|
161
|
+
public_sysinfo?: boolean | undefined;
|
|
162
|
+
public_logs?: boolean | undefined;
|
|
157
163
|
docker_compose_file?: string | undefined;
|
|
158
164
|
pre_launch_script?: string | undefined;
|
|
159
|
-
name?: string | undefined;
|
|
160
165
|
allowed_envs?: string[] | undefined;
|
|
161
166
|
kms_enabled?: boolean | undefined;
|
|
162
|
-
public_logs?: boolean | undefined;
|
|
163
|
-
public_sysinfo?: boolean | undefined;
|
|
164
167
|
gateway_enabled?: boolean | undefined;
|
|
165
168
|
tproxy_enabled?: boolean | undefined;
|
|
166
169
|
}>;
|
|
@@ -187,23 +190,23 @@ export declare const ProvisionCvmRequestSchema: z.ZodObject<{
|
|
|
187
190
|
gateway_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
188
191
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
189
192
|
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
name?: string | undefined;
|
|
194
|
+
public_sysinfo?: boolean | undefined;
|
|
195
|
+
public_logs?: boolean | undefined;
|
|
190
196
|
docker_compose_file?: string | undefined;
|
|
191
197
|
pre_launch_script?: string | undefined;
|
|
192
|
-
name?: string | undefined;
|
|
193
198
|
allowed_envs?: string[] | undefined;
|
|
194
199
|
kms_enabled?: boolean | undefined;
|
|
195
|
-
public_logs?: boolean | undefined;
|
|
196
|
-
public_sysinfo?: boolean | undefined;
|
|
197
200
|
gateway_enabled?: boolean | undefined;
|
|
198
201
|
tproxy_enabled?: boolean | undefined;
|
|
199
202
|
}, {
|
|
203
|
+
name?: string | undefined;
|
|
204
|
+
public_sysinfo?: boolean | undefined;
|
|
205
|
+
public_logs?: boolean | undefined;
|
|
200
206
|
docker_compose_file?: string | undefined;
|
|
201
207
|
pre_launch_script?: string | undefined;
|
|
202
|
-
name?: string | undefined;
|
|
203
208
|
allowed_envs?: string[] | undefined;
|
|
204
209
|
kms_enabled?: boolean | undefined;
|
|
205
|
-
public_logs?: boolean | undefined;
|
|
206
|
-
public_sysinfo?: boolean | undefined;
|
|
207
210
|
gateway_enabled?: boolean | undefined;
|
|
208
211
|
tproxy_enabled?: boolean | undefined;
|
|
209
212
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provision_cvm.d.ts","sourceRoot":"","sources":["../../src/actions/provision_cvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAGH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"provision_cvm.d.ts","sourceRoot":"","sources":["../../src/actions/provision_cvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAGH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAWf,CAAC;AAEjB,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG9D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAyBtB,CAAC;AAEjB,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,GAAG;IAC5E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE;QACb,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KACxB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAExE,MAAM,MAAM,sBAAsB,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;AA8DtF,wBAAsB,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EACtF,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,mBAAmB,EAC/B,UAAU,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAuBpC;AAGD,wBAAsB,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAC1F,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,mBAAmB,EAC/B,UAAU,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,GACrC,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CA4BhD"}
|
|
@@ -92,31 +92,31 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
92
92
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
93
93
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
docker_compose_file: string;
|
|
96
95
|
name: string;
|
|
96
|
+
docker_compose_file: string;
|
|
97
|
+
public_sysinfo?: boolean | undefined;
|
|
98
|
+
public_logs?: boolean | undefined;
|
|
97
99
|
pre_launch_script?: string | undefined;
|
|
98
100
|
allowed_envs?: string[] | undefined;
|
|
99
101
|
kms_enabled?: boolean | undefined;
|
|
100
|
-
public_logs?: boolean | undefined;
|
|
101
|
-
public_sysinfo?: boolean | undefined;
|
|
102
102
|
}, {
|
|
103
|
-
docker_compose_file: string;
|
|
104
103
|
name: string;
|
|
104
|
+
docker_compose_file: string;
|
|
105
|
+
public_sysinfo?: boolean | undefined;
|
|
106
|
+
public_logs?: boolean | undefined;
|
|
105
107
|
pre_launch_script?: string | undefined;
|
|
106
108
|
allowed_envs?: string[] | undefined;
|
|
107
109
|
kms_enabled?: boolean | undefined;
|
|
108
|
-
public_logs?: boolean | undefined;
|
|
109
|
-
public_sysinfo?: boolean | undefined;
|
|
110
110
|
}>;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
112
|
app_compose: {
|
|
113
|
-
docker_compose_file: string;
|
|
114
113
|
name: string;
|
|
114
|
+
docker_compose_file: string;
|
|
115
|
+
public_sysinfo?: boolean | undefined;
|
|
116
|
+
public_logs?: boolean | undefined;
|
|
115
117
|
pre_launch_script?: string | undefined;
|
|
116
118
|
allowed_envs?: string[] | undefined;
|
|
117
119
|
kms_enabled?: boolean | undefined;
|
|
118
|
-
public_logs?: boolean | undefined;
|
|
119
|
-
public_sysinfo?: boolean | undefined;
|
|
120
120
|
};
|
|
121
121
|
id?: string | undefined;
|
|
122
122
|
app_id?: string | undefined;
|
|
@@ -124,13 +124,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
124
124
|
uuid?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
app_compose: {
|
|
127
|
-
docker_compose_file: string;
|
|
128
127
|
name: string;
|
|
128
|
+
docker_compose_file: string;
|
|
129
|
+
public_sysinfo?: boolean | undefined;
|
|
130
|
+
public_logs?: boolean | undefined;
|
|
129
131
|
pre_launch_script?: string | undefined;
|
|
130
132
|
allowed_envs?: string[] | undefined;
|
|
131
133
|
kms_enabled?: boolean | undefined;
|
|
132
|
-
public_logs?: boolean | undefined;
|
|
133
|
-
public_sysinfo?: boolean | undefined;
|
|
134
134
|
};
|
|
135
135
|
id?: string | undefined;
|
|
136
136
|
app_id?: string | undefined;
|
|
@@ -138,13 +138,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
138
138
|
uuid?: string | undefined;
|
|
139
139
|
}>, {
|
|
140
140
|
app_compose: {
|
|
141
|
-
docker_compose_file: string;
|
|
142
141
|
name: string;
|
|
142
|
+
docker_compose_file: string;
|
|
143
|
+
public_sysinfo?: boolean | undefined;
|
|
144
|
+
public_logs?: boolean | undefined;
|
|
143
145
|
pre_launch_script?: string | undefined;
|
|
144
146
|
allowed_envs?: string[] | undefined;
|
|
145
147
|
kms_enabled?: boolean | undefined;
|
|
146
|
-
public_logs?: boolean | undefined;
|
|
147
|
-
public_sysinfo?: boolean | undefined;
|
|
148
148
|
};
|
|
149
149
|
id?: string | undefined;
|
|
150
150
|
app_id?: string | undefined;
|
|
@@ -152,13 +152,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
152
152
|
uuid?: string | undefined;
|
|
153
153
|
}, {
|
|
154
154
|
app_compose: {
|
|
155
|
-
docker_compose_file: string;
|
|
156
155
|
name: string;
|
|
156
|
+
docker_compose_file: string;
|
|
157
|
+
public_sysinfo?: boolean | undefined;
|
|
158
|
+
public_logs?: boolean | undefined;
|
|
157
159
|
pre_launch_script?: string | undefined;
|
|
158
160
|
allowed_envs?: string[] | undefined;
|
|
159
161
|
kms_enabled?: boolean | undefined;
|
|
160
|
-
public_logs?: boolean | undefined;
|
|
161
|
-
public_sysinfo?: boolean | undefined;
|
|
162
162
|
};
|
|
163
163
|
id?: string | undefined;
|
|
164
164
|
app_id?: string | undefined;
|
|
@@ -167,23 +167,23 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
167
167
|
}>, {
|
|
168
168
|
cvmId: string | undefined;
|
|
169
169
|
request: {
|
|
170
|
-
docker_compose_file: string;
|
|
171
170
|
name: string;
|
|
171
|
+
docker_compose_file: string;
|
|
172
|
+
public_sysinfo?: boolean | undefined;
|
|
173
|
+
public_logs?: boolean | undefined;
|
|
172
174
|
pre_launch_script?: string | undefined;
|
|
173
175
|
allowed_envs?: string[] | undefined;
|
|
174
176
|
kms_enabled?: boolean | undefined;
|
|
175
|
-
public_logs?: boolean | undefined;
|
|
176
|
-
public_sysinfo?: boolean | undefined;
|
|
177
177
|
};
|
|
178
178
|
_raw: {
|
|
179
179
|
app_compose: {
|
|
180
|
-
docker_compose_file: string;
|
|
181
180
|
name: string;
|
|
181
|
+
docker_compose_file: string;
|
|
182
|
+
public_sysinfo?: boolean | undefined;
|
|
183
|
+
public_logs?: boolean | undefined;
|
|
182
184
|
pre_launch_script?: string | undefined;
|
|
183
185
|
allowed_envs?: string[] | undefined;
|
|
184
186
|
kms_enabled?: boolean | undefined;
|
|
185
|
-
public_logs?: boolean | undefined;
|
|
186
|
-
public_sysinfo?: boolean | undefined;
|
|
187
187
|
};
|
|
188
188
|
id?: string | undefined;
|
|
189
189
|
app_id?: string | undefined;
|
|
@@ -192,13 +192,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
192
192
|
};
|
|
193
193
|
}, {
|
|
194
194
|
app_compose: {
|
|
195
|
-
docker_compose_file: string;
|
|
196
195
|
name: string;
|
|
196
|
+
docker_compose_file: string;
|
|
197
|
+
public_sysinfo?: boolean | undefined;
|
|
198
|
+
public_logs?: boolean | undefined;
|
|
197
199
|
pre_launch_script?: string | undefined;
|
|
198
200
|
allowed_envs?: string[] | undefined;
|
|
199
201
|
kms_enabled?: boolean | undefined;
|
|
200
|
-
public_logs?: boolean | undefined;
|
|
201
|
-
public_sysinfo?: boolean | undefined;
|
|
202
202
|
};
|
|
203
203
|
id?: string | undefined;
|
|
204
204
|
app_id?: string | undefined;
|