@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
package/dist/types/cvm_info.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type KmsInfo } from "./kms_info";
|
|
2
3
|
export declare const VmInfoSchema: z.ZodObject<{
|
|
3
4
|
id: z.ZodString;
|
|
4
5
|
name: z.ZodString;
|
|
@@ -15,12 +16,12 @@ export declare const VmInfoSchema: z.ZodObject<{
|
|
|
15
16
|
image_version: z.ZodNullable<z.ZodString>;
|
|
16
17
|
}, "strip", z.ZodTypeAny, {
|
|
17
18
|
status: string;
|
|
18
|
-
name: string;
|
|
19
19
|
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
uptime: string;
|
|
22
|
+
app_url: string | null;
|
|
20
23
|
app_id: string;
|
|
21
24
|
instance_id: string | null;
|
|
22
|
-
app_url: string | null;
|
|
23
|
-
uptime: string;
|
|
24
25
|
exited_at: string | null;
|
|
25
26
|
boot_progress: string | null;
|
|
26
27
|
boot_error: string | null;
|
|
@@ -29,12 +30,12 @@ export declare const VmInfoSchema: z.ZodObject<{
|
|
|
29
30
|
configuration?: any;
|
|
30
31
|
}, {
|
|
31
32
|
status: string;
|
|
32
|
-
name: string;
|
|
33
33
|
id: string;
|
|
34
|
+
name: string;
|
|
35
|
+
uptime: string;
|
|
36
|
+
app_url: string | null;
|
|
34
37
|
app_id: string;
|
|
35
38
|
instance_id: string | null;
|
|
36
|
-
app_url: string | null;
|
|
37
|
-
uptime: string;
|
|
38
39
|
exited_at: string | null;
|
|
39
40
|
boot_progress: string | null;
|
|
40
41
|
boot_error: string | null;
|
|
@@ -57,12 +58,12 @@ export declare const CvmNodeSchema: z.ZodObject<{
|
|
|
57
58
|
name: z.ZodString;
|
|
58
59
|
region_identifier: z.ZodOptional<z.ZodString>;
|
|
59
60
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
name: string;
|
|
61
61
|
id: number;
|
|
62
|
+
name: string;
|
|
62
63
|
region_identifier?: string | undefined;
|
|
63
64
|
}, {
|
|
64
|
-
name: string;
|
|
65
65
|
id: number;
|
|
66
|
+
name: string;
|
|
66
67
|
region_identifier?: string | undefined;
|
|
67
68
|
}>;
|
|
68
69
|
export declare const CvmNetworkUrlsSchema: z.ZodObject<{
|
|
@@ -117,12 +118,12 @@ export declare const CvmInfoSchema: z.ZodObject<{
|
|
|
117
118
|
image_version: z.ZodNullable<z.ZodString>;
|
|
118
119
|
}, "strip", z.ZodTypeAny, {
|
|
119
120
|
status: string;
|
|
120
|
-
name: string;
|
|
121
121
|
id: string;
|
|
122
|
+
name: string;
|
|
123
|
+
uptime: string;
|
|
124
|
+
app_url: string | null;
|
|
122
125
|
app_id: string;
|
|
123
126
|
instance_id: string | null;
|
|
124
|
-
app_url: string | null;
|
|
125
|
-
uptime: string;
|
|
126
127
|
exited_at: string | null;
|
|
127
128
|
boot_progress: string | null;
|
|
128
129
|
boot_error: string | null;
|
|
@@ -131,12 +132,12 @@ export declare const CvmInfoSchema: z.ZodObject<{
|
|
|
131
132
|
configuration?: any;
|
|
132
133
|
}, {
|
|
133
134
|
status: string;
|
|
134
|
-
name: string;
|
|
135
135
|
id: string;
|
|
136
|
+
name: string;
|
|
137
|
+
uptime: string;
|
|
138
|
+
app_url: string | null;
|
|
136
139
|
app_id: string;
|
|
137
140
|
instance_id: string | null;
|
|
138
|
-
app_url: string | null;
|
|
139
|
-
uptime: string;
|
|
140
141
|
exited_at: string | null;
|
|
141
142
|
boot_progress: string | null;
|
|
142
143
|
boot_error: string | null;
|
|
@@ -160,12 +161,12 @@ export declare const CvmInfoSchema: z.ZodObject<{
|
|
|
160
161
|
name: z.ZodString;
|
|
161
162
|
region_identifier: z.ZodOptional<z.ZodString>;
|
|
162
163
|
}, "strip", z.ZodTypeAny, {
|
|
163
|
-
name: string;
|
|
164
164
|
id: number;
|
|
165
|
+
name: string;
|
|
165
166
|
region_identifier?: string | undefined;
|
|
166
167
|
}, {
|
|
167
|
-
name: string;
|
|
168
168
|
id: number;
|
|
169
|
+
name: string;
|
|
169
170
|
region_identifier?: string | undefined;
|
|
170
171
|
}>>>>;
|
|
171
172
|
listed: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
@@ -219,27 +220,14 @@ export declare const CvmInfoSchema: z.ZodObject<{
|
|
|
219
220
|
}, "strip", z.ZodTypeAny, {
|
|
220
221
|
status?: string | undefined;
|
|
221
222
|
name?: string | undefined;
|
|
222
|
-
listed?: boolean | undefined;
|
|
223
|
-
vcpu?: number | null | undefined;
|
|
224
|
-
memory?: number | null | undefined;
|
|
225
|
-
disk_size?: number | null | undefined;
|
|
226
|
-
kms_info?: {
|
|
227
|
-
version: string;
|
|
228
|
-
id: string;
|
|
229
|
-
slug: string;
|
|
230
|
-
url: string;
|
|
231
|
-
chain_id?: number | undefined;
|
|
232
|
-
kms_contract_address?: string | undefined;
|
|
233
|
-
gateway_app_id?: string | undefined;
|
|
234
|
-
} | null | undefined;
|
|
235
223
|
hosted?: {
|
|
236
224
|
status: string;
|
|
237
|
-
name: string;
|
|
238
225
|
id: string;
|
|
226
|
+
name: string;
|
|
227
|
+
uptime: string;
|
|
228
|
+
app_url: string | null;
|
|
239
229
|
app_id: string;
|
|
240
230
|
instance_id: string | null;
|
|
241
|
-
app_url: string | null;
|
|
242
|
-
uptime: string;
|
|
243
231
|
exited_at: string | null;
|
|
244
232
|
boot_progress: string | null;
|
|
245
233
|
boot_error: string | null;
|
|
@@ -252,10 +240,11 @@ export declare const CvmInfoSchema: z.ZodObject<{
|
|
|
252
240
|
username: string;
|
|
253
241
|
} | null | undefined;
|
|
254
242
|
node?: {
|
|
255
|
-
name: string;
|
|
256
243
|
id: number;
|
|
244
|
+
name: string;
|
|
257
245
|
region_identifier?: string | undefined;
|
|
258
246
|
} | null | undefined;
|
|
247
|
+
listed?: boolean | undefined;
|
|
259
248
|
in_progress?: boolean | undefined;
|
|
260
249
|
dapp_dashboard_url?: string | null | undefined;
|
|
261
250
|
syslog_endpoint?: string | null | undefined;
|
|
@@ -263,18 +252,6 @@ export declare const CvmInfoSchema: z.ZodObject<{
|
|
|
263
252
|
project_id?: string | null | undefined;
|
|
264
253
|
project_type?: string | null | undefined;
|
|
265
254
|
billing_period?: string | null | undefined;
|
|
266
|
-
gateway_domain?: string | null | undefined;
|
|
267
|
-
public_urls?: {
|
|
268
|
-
app: string;
|
|
269
|
-
instance: string;
|
|
270
|
-
}[] | undefined;
|
|
271
|
-
}, {
|
|
272
|
-
status?: string | undefined;
|
|
273
|
-
name?: string | undefined;
|
|
274
|
-
listed?: boolean | undefined;
|
|
275
|
-
vcpu?: number | null | undefined;
|
|
276
|
-
memory?: number | null | undefined;
|
|
277
|
-
disk_size?: number | null | undefined;
|
|
278
255
|
kms_info?: {
|
|
279
256
|
version: string;
|
|
280
257
|
id: string;
|
|
@@ -284,14 +261,25 @@ export declare const CvmInfoSchema: z.ZodObject<{
|
|
|
284
261
|
kms_contract_address?: string | undefined;
|
|
285
262
|
gateway_app_id?: string | undefined;
|
|
286
263
|
} | null | undefined;
|
|
264
|
+
vcpu?: number | null | undefined;
|
|
265
|
+
memory?: number | null | undefined;
|
|
266
|
+
disk_size?: number | null | undefined;
|
|
267
|
+
gateway_domain?: string | null | undefined;
|
|
268
|
+
public_urls?: {
|
|
269
|
+
app: string;
|
|
270
|
+
instance: string;
|
|
271
|
+
}[] | undefined;
|
|
272
|
+
}, {
|
|
273
|
+
status?: string | undefined;
|
|
274
|
+
name?: string | undefined;
|
|
287
275
|
hosted?: {
|
|
288
276
|
status: string;
|
|
289
|
-
name: string;
|
|
290
277
|
id: string;
|
|
278
|
+
name: string;
|
|
279
|
+
uptime: string;
|
|
280
|
+
app_url: string | null;
|
|
291
281
|
app_id: string;
|
|
292
282
|
instance_id: string | null;
|
|
293
|
-
app_url: string | null;
|
|
294
|
-
uptime: string;
|
|
295
283
|
exited_at: string | null;
|
|
296
284
|
boot_progress: string | null;
|
|
297
285
|
boot_error: string | null;
|
|
@@ -304,10 +292,11 @@ export declare const CvmInfoSchema: z.ZodObject<{
|
|
|
304
292
|
username: string;
|
|
305
293
|
} | null | undefined;
|
|
306
294
|
node?: {
|
|
307
|
-
name: string;
|
|
308
295
|
id: number;
|
|
296
|
+
name: string;
|
|
309
297
|
region_identifier?: string | undefined;
|
|
310
298
|
} | null | undefined;
|
|
299
|
+
listed?: boolean | undefined;
|
|
311
300
|
in_progress?: boolean | undefined;
|
|
312
301
|
dapp_dashboard_url?: string | null | undefined;
|
|
313
302
|
syslog_endpoint?: string | null | undefined;
|
|
@@ -315,6 +304,18 @@ export declare const CvmInfoSchema: z.ZodObject<{
|
|
|
315
304
|
project_id?: string | null | undefined;
|
|
316
305
|
project_type?: string | null | undefined;
|
|
317
306
|
billing_period?: string | null | undefined;
|
|
307
|
+
kms_info?: {
|
|
308
|
+
version: string;
|
|
309
|
+
id: string;
|
|
310
|
+
slug: string;
|
|
311
|
+
url: string;
|
|
312
|
+
chain_id?: number | undefined;
|
|
313
|
+
kms_contract_address?: string | undefined;
|
|
314
|
+
gateway_app_id?: string | undefined;
|
|
315
|
+
} | null | undefined;
|
|
316
|
+
vcpu?: number | null | undefined;
|
|
317
|
+
memory?: number | null | undefined;
|
|
318
|
+
disk_size?: number | null | undefined;
|
|
318
319
|
gateway_domain?: string | null | undefined;
|
|
319
320
|
public_urls?: {
|
|
320
321
|
app: string;
|
|
@@ -333,12 +334,12 @@ export declare const CvmLegacyDetailSchema: z.ZodObject<{
|
|
|
333
334
|
name: z.ZodString;
|
|
334
335
|
region_identifier: z.ZodOptional<z.ZodString>;
|
|
335
336
|
}, "strip", z.ZodTypeAny, {
|
|
336
|
-
name: string;
|
|
337
337
|
id: number;
|
|
338
|
+
name: string;
|
|
338
339
|
region_identifier?: string | undefined;
|
|
339
340
|
}, {
|
|
340
|
-
name: string;
|
|
341
341
|
id: number;
|
|
342
|
+
name: string;
|
|
342
343
|
region_identifier?: string | undefined;
|
|
343
344
|
}>;
|
|
344
345
|
app_id: z.ZodString;
|
|
@@ -397,27 +398,16 @@ export declare const CvmLegacyDetailSchema: z.ZodObject<{
|
|
|
397
398
|
gateway_domain: z.ZodNullable<z.ZodString>;
|
|
398
399
|
}, "strip", z.ZodTypeAny, {
|
|
399
400
|
status: string;
|
|
400
|
-
name: string;
|
|
401
401
|
id: number;
|
|
402
|
-
|
|
403
|
-
listed: boolean;
|
|
402
|
+
name: string;
|
|
404
403
|
app_id: string;
|
|
405
|
-
vcpu: number | null;
|
|
406
|
-
memory: number | null;
|
|
407
|
-
disk_size: number | null;
|
|
408
|
-
public_logs: boolean;
|
|
409
|
-
public_sysinfo: boolean;
|
|
410
|
-
teepod: {
|
|
411
|
-
name: string;
|
|
412
|
-
id: number;
|
|
413
|
-
region_identifier?: string | undefined;
|
|
414
|
-
};
|
|
415
|
-
vm_uuid: string | null;
|
|
416
404
|
instance_id: string | null;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
405
|
+
listed: boolean;
|
|
406
|
+
in_progress: boolean;
|
|
407
|
+
dapp_dashboard_url: string | null;
|
|
408
|
+
syslog_endpoint: string | null;
|
|
409
|
+
project_id: string | null;
|
|
410
|
+
project_type: string | null;
|
|
421
411
|
kms_info: {
|
|
422
412
|
version: string;
|
|
423
413
|
id: string;
|
|
@@ -427,40 +417,40 @@ export declare const CvmLegacyDetailSchema: z.ZodObject<{
|
|
|
427
417
|
kms_contract_address?: string | undefined;
|
|
428
418
|
gateway_app_id?: string | undefined;
|
|
429
419
|
} | null;
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
project_id: string | null;
|
|
434
|
-
project_type: string | null;
|
|
420
|
+
vcpu: number | null;
|
|
421
|
+
memory: number | null;
|
|
422
|
+
disk_size: number | null;
|
|
435
423
|
gateway_domain: string | null;
|
|
436
424
|
public_urls: {
|
|
437
425
|
app: string;
|
|
438
426
|
instance: string;
|
|
439
427
|
}[];
|
|
440
|
-
scheduled_delete_at: string | null;
|
|
441
|
-
}, {
|
|
442
|
-
status: string;
|
|
443
|
-
name: string;
|
|
444
|
-
id: number;
|
|
445
428
|
teepod_id: number | null;
|
|
446
|
-
listed: boolean;
|
|
447
|
-
app_id: string;
|
|
448
|
-
vcpu: number | null;
|
|
449
|
-
memory: number | null;
|
|
450
|
-
disk_size: number | null;
|
|
451
|
-
public_logs: boolean;
|
|
452
|
-
public_sysinfo: boolean;
|
|
453
429
|
teepod: {
|
|
454
|
-
name: string;
|
|
455
430
|
id: number;
|
|
431
|
+
name: string;
|
|
456
432
|
region_identifier?: string | undefined;
|
|
457
433
|
};
|
|
458
434
|
vm_uuid: string | null;
|
|
459
|
-
instance_id: string | null;
|
|
460
435
|
base_image: string;
|
|
461
436
|
encrypted_env_pubkey: string | null;
|
|
462
|
-
|
|
437
|
+
public_sysinfo: boolean;
|
|
438
|
+
public_logs: boolean;
|
|
463
439
|
contract_address: string | null;
|
|
440
|
+
deployer_address: string | null;
|
|
441
|
+
scheduled_delete_at: string | null;
|
|
442
|
+
}, {
|
|
443
|
+
status: string;
|
|
444
|
+
id: number;
|
|
445
|
+
name: string;
|
|
446
|
+
app_id: string;
|
|
447
|
+
instance_id: string | null;
|
|
448
|
+
listed: boolean;
|
|
449
|
+
in_progress: boolean;
|
|
450
|
+
dapp_dashboard_url: string | null;
|
|
451
|
+
syslog_endpoint: string | null;
|
|
452
|
+
project_id: string | null;
|
|
453
|
+
project_type: string | null;
|
|
464
454
|
kms_info: {
|
|
465
455
|
version: string;
|
|
466
456
|
id: string;
|
|
@@ -470,17 +460,30 @@ export declare const CvmLegacyDetailSchema: z.ZodObject<{
|
|
|
470
460
|
kms_contract_address?: string | undefined;
|
|
471
461
|
gateway_app_id?: string | undefined;
|
|
472
462
|
} | null;
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
project_id: string | null;
|
|
477
|
-
project_type: string | null;
|
|
463
|
+
vcpu: number | null;
|
|
464
|
+
memory: number | null;
|
|
465
|
+
disk_size: number | null;
|
|
478
466
|
gateway_domain: string | null;
|
|
479
467
|
public_urls: {
|
|
480
468
|
app: string;
|
|
481
469
|
instance: string;
|
|
482
470
|
}[];
|
|
471
|
+
teepod_id: number | null;
|
|
472
|
+
teepod: {
|
|
473
|
+
id: number;
|
|
474
|
+
name: string;
|
|
475
|
+
region_identifier?: string | undefined;
|
|
476
|
+
};
|
|
477
|
+
vm_uuid: string | null;
|
|
478
|
+
base_image: string;
|
|
479
|
+
encrypted_env_pubkey: string | null;
|
|
480
|
+
public_sysinfo: boolean;
|
|
481
|
+
public_logs: boolean;
|
|
482
|
+
contract_address: string | null;
|
|
483
|
+
deployer_address: string | null;
|
|
483
484
|
scheduled_delete_at: string | null;
|
|
484
485
|
}>;
|
|
485
|
-
export type CvmLegacyDetail = z.infer<typeof CvmLegacyDetailSchema
|
|
486
|
+
export type CvmLegacyDetail = z.infer<typeof CvmLegacyDetailSchema> & {
|
|
487
|
+
kms_info: KmsInfo;
|
|
488
|
+
};
|
|
486
489
|
//# sourceMappingURL=cvm_info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cvm_info.d.ts","sourceRoot":"","sources":["../../src/types/c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O,qBAAqB,CAAC,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC"}
|