@phala/cloud 0.0.2 → 0.0.4
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/add_compose_hash.d.ts +1 -0
- package/dist/actions/add_compose_hash.d.ts.map +1 -1
- package/dist/actions/deploy_app_auth.d.ts +8 -0
- package/dist/actions/deploy_app_auth.d.ts.map +1 -1
- package/dist/actions/get_app_env_encrypt_pubkey.d.ts +1 -1
- package/dist/actions/get_app_env_encrypt_pubkey.d.ts.map +1 -1
- package/dist/actions/get_cvm_info.d.ts +3 -222
- package/dist/actions/get_cvm_info.d.ts.map +1 -1
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.d.ts.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +86 -18
- package/dist/index.mjs +84 -16
- package/dist/parse_dotenv.d.ts +14 -0
- package/dist/parse_dotenv.d.ts.map +1 -0
- package/dist/types/cvm_info.d.ts +161 -0
- package/dist/types/cvm_info.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import { type Chain, type Address, type Hash, type Hex, type TransactionReceipt,
|
|
|
3
3
|
import { type TransactionTracker, type RetryOptions } from "../utils";
|
|
4
4
|
export type AddComposeHashRequest = {
|
|
5
5
|
chain?: Chain;
|
|
6
|
+
rpcUrl?: string;
|
|
6
7
|
appId: Address;
|
|
7
8
|
composeHash: string;
|
|
8
9
|
privateKey?: Hex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add_compose_hash.d.ts","sourceRoot":"","sources":["../../src/actions/add_compose_hash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,GAAG,EACR,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,YAAY,EAMlB,MAA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EAAE,IAAI,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CAClF,CAAC;AAGN,wBAAsB,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAC5F,OAAO,EAAE,qBAAqB,EAC9B,UAAU,CAAC,EAAE,wBAAwB,CAAC,CAAC,CAAC,GACvC,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC,CAgBtC"}
|
|
@@ -3,6 +3,7 @@ import { type Chain, type Address, type Hash, type Hex, type TransactionReceipt,
|
|
|
3
3
|
import { type TransactionTracker, type RetryOptions } from "../utils";
|
|
4
4
|
export declare const DeployAppAuthRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
5
5
|
chain: z.ZodOptional<z.ZodUnknown>;
|
|
6
|
+
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
6
7
|
kmsContractAddress: z.ZodString;
|
|
7
8
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
8
9
|
walletClient: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -15,6 +16,7 @@ export declare const DeployAppAuthRequestSchema: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
15
16
|
minBalance: z.ZodOptional<z.ZodString>;
|
|
16
17
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
17
18
|
chain: z.ZodOptional<z.ZodUnknown>;
|
|
19
|
+
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
18
20
|
kmsContractAddress: z.ZodString;
|
|
19
21
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
20
22
|
walletClient: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -27,6 +29,7 @@ export declare const DeployAppAuthRequestSchema: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
27
29
|
minBalance: z.ZodOptional<z.ZodString>;
|
|
28
30
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
29
31
|
chain: z.ZodOptional<z.ZodUnknown>;
|
|
32
|
+
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
30
33
|
kmsContractAddress: z.ZodString;
|
|
31
34
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
32
35
|
walletClient: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -39,6 +42,7 @@ export declare const DeployAppAuthRequestSchema: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
39
42
|
minBalance: z.ZodOptional<z.ZodString>;
|
|
40
43
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
41
44
|
chain: z.ZodOptional<z.ZodUnknown>;
|
|
45
|
+
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
42
46
|
kmsContractAddress: z.ZodString;
|
|
43
47
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
44
48
|
walletClient: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -51,6 +55,7 @@ export declare const DeployAppAuthRequestSchema: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
51
55
|
minBalance: z.ZodOptional<z.ZodString>;
|
|
52
56
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
53
57
|
chain: z.ZodOptional<z.ZodUnknown>;
|
|
58
|
+
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
54
59
|
kmsContractAddress: z.ZodString;
|
|
55
60
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
56
61
|
walletClient: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -63,6 +68,7 @@ export declare const DeployAppAuthRequestSchema: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
63
68
|
minBalance: z.ZodOptional<z.ZodString>;
|
|
64
69
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
65
70
|
chain: z.ZodOptional<z.ZodUnknown>;
|
|
71
|
+
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
66
72
|
kmsContractAddress: z.ZodString;
|
|
67
73
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
68
74
|
walletClient: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -75,6 +81,7 @@ export declare const DeployAppAuthRequestSchema: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
75
81
|
minBalance: z.ZodOptional<z.ZodString>;
|
|
76
82
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
77
83
|
chain: z.ZodOptional<z.ZodUnknown>;
|
|
84
|
+
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
78
85
|
kmsContractAddress: z.ZodString;
|
|
79
86
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
80
87
|
walletClient: z.ZodOptional<z.ZodUnknown>;
|
|
@@ -88,6 +95,7 @@ export declare const DeployAppAuthRequestSchema: z.ZodEffects<z.ZodEffects<z.Zod
|
|
|
88
95
|
}, z.ZodTypeAny, "passthrough">>;
|
|
89
96
|
export type DeployAppAuthRequest = {
|
|
90
97
|
chain?: Chain;
|
|
98
|
+
rpcUrl?: string;
|
|
91
99
|
kmsContractAddress: Address;
|
|
92
100
|
privateKey?: Hex;
|
|
93
101
|
walletClient?: WalletClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deploy_app_auth.d.ts","sourceRoot":"","sources":["../../src/actions/deploy_app_auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,GAAG,EACR,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,YAAY,EAMlB,MAAM,MAAM,CAAC;AAGd,OAAO,EAIL,KAAK,kBAAkB,EAEvB,KAAK,YAAY,EAGlB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"deploy_app_auth.d.ts","sourceRoot":"","sources":["../../src/actions/deploy_app_auth.ts"],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sB,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAC3F,OAAO,EAAE,oBAAoB,EAC7B,UAAU,CAAC,EAAE,uBAAuB,CAAC,CAAC,CAAC,GACtC,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAkBrC"}
|
|
@@ -3,7 +3,7 @@ import { type Client, type SafeResult } from "../client";
|
|
|
3
3
|
import { ActionParameters, ActionReturnType } from "../types/common";
|
|
4
4
|
export declare const GetAppEnvEncryptPubKeyRequestSchema: z.ZodObject<{
|
|
5
5
|
kms: z.ZodString;
|
|
6
|
-
app_id: z.ZodString
|
|
6
|
+
app_id: z.ZodEffects<z.ZodString, string, string>;
|
|
7
7
|
}, "strict", z.ZodTypeAny, {
|
|
8
8
|
app_id: string;
|
|
9
9
|
kms: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_app_env_encrypt_pubkey.d.ts","sourceRoot":"","sources":["../../src/actions/get_app_env_encrypt_pubkey.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,eAAO,MAAM,mCAAmC;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"get_app_env_encrypt_pubkey.d.ts","sourceRoot":"","sources":["../../src/actions/get_app_env_encrypt_pubkey.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,eAAO,MAAM,mCAAmC;;;;;;;;;EAUrC,CAAC;AAEZ,eAAO,MAAM,4BAA4B;;;;;;;;;EAK9B,CAAC;AAEZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,MAAM,MAAM,gCAAgC,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,MAAM,gCAAgC,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAC5E,sBAAsB,EACtB,CAAC,CACF,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAU,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAChG,QAAQ,MAAM,EACd,SAAS,6BAA6B,EACtC,aAAa,gCAAgC,CAAC,CAAC,CAAC,KAC/C,OAAO,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAe7C,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAErD,QAAQ,MAAM,EACd,SAAS,6BAA6B,EACtC,aAAa,gCAAgC,CAAC,CAAC,CAAC,KAC/C,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC,CAAC,CAAC,CA0BzD,CAAC"}
|
|
@@ -1,228 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type Client, type SafeResult } from "../client";
|
|
3
|
+
import { CvmLegacyDetailSchema } from "../types/cvm_info";
|
|
3
4
|
import { ActionParameters, ActionReturnType } from "../types/common";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
id: z.ZodString;
|
|
7
|
-
name: z.ZodString;
|
|
8
|
-
status: z.ZodString;
|
|
9
|
-
uptime: z.ZodString;
|
|
10
|
-
app_url: z.ZodNullable<z.ZodString>;
|
|
11
|
-
app_id: z.ZodString;
|
|
12
|
-
instance_id: z.ZodNullable<z.ZodString>;
|
|
13
|
-
configuration: z.ZodOptional<z.ZodAny>;
|
|
14
|
-
exited_at: z.ZodNullable<z.ZodString>;
|
|
15
|
-
boot_progress: z.ZodNullable<z.ZodString>;
|
|
16
|
-
boot_error: z.ZodNullable<z.ZodString>;
|
|
17
|
-
shutdown_progress: z.ZodNullable<z.ZodString>;
|
|
18
|
-
image_version: z.ZodNullable<z.ZodString>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
status: string;
|
|
21
|
-
name: string;
|
|
22
|
-
id: string;
|
|
23
|
-
app_id: string;
|
|
24
|
-
instance_id: string | null;
|
|
25
|
-
app_url: string | null;
|
|
26
|
-
uptime: string;
|
|
27
|
-
exited_at: string | null;
|
|
28
|
-
boot_progress: string | null;
|
|
29
|
-
boot_error: string | null;
|
|
30
|
-
shutdown_progress: string | null;
|
|
31
|
-
image_version: string | null;
|
|
32
|
-
configuration?: any;
|
|
33
|
-
}, {
|
|
34
|
-
status: string;
|
|
35
|
-
name: string;
|
|
36
|
-
id: string;
|
|
37
|
-
app_id: string;
|
|
38
|
-
instance_id: string | null;
|
|
39
|
-
app_url: string | null;
|
|
40
|
-
uptime: string;
|
|
41
|
-
exited_at: string | null;
|
|
42
|
-
boot_progress: string | null;
|
|
43
|
-
boot_error: string | null;
|
|
44
|
-
shutdown_progress: string | null;
|
|
45
|
-
image_version: string | null;
|
|
46
|
-
configuration?: any;
|
|
47
|
-
}>>;
|
|
48
|
-
name: z.ZodOptional<z.ZodString>;
|
|
49
|
-
managed_user: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
50
|
-
id: z.ZodNumber;
|
|
51
|
-
username: z.ZodString;
|
|
52
|
-
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
id: number;
|
|
54
|
-
username: string;
|
|
55
|
-
}, {
|
|
56
|
-
id: number;
|
|
57
|
-
username: string;
|
|
58
|
-
}>>>>;
|
|
59
|
-
node: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
60
|
-
id: z.ZodNumber;
|
|
61
|
-
name: z.ZodString;
|
|
62
|
-
region_identifier: z.ZodOptional<z.ZodString>;
|
|
63
|
-
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
name: string;
|
|
65
|
-
id: number;
|
|
66
|
-
region_identifier?: string | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
name: string;
|
|
69
|
-
id: number;
|
|
70
|
-
region_identifier?: string | undefined;
|
|
71
|
-
}>>>>;
|
|
72
|
-
listed: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
73
|
-
status: z.ZodOptional<z.ZodString>;
|
|
74
|
-
in_progress: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
75
|
-
dapp_dashboard_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
-
syslog_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
-
allow_upgrade: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
78
|
-
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
-
project_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
-
billing_period: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
-
kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
82
|
-
id: z.ZodString;
|
|
83
|
-
slug: z.ZodString;
|
|
84
|
-
url: z.ZodString;
|
|
85
|
-
version: z.ZodString;
|
|
86
|
-
chain_id: z.ZodOptional<z.ZodNumber>;
|
|
87
|
-
kms_contract_address: z.ZodOptional<z.ZodString>;
|
|
88
|
-
gateway_app_id: z.ZodOptional<z.ZodString>;
|
|
89
|
-
}, "strip", z.ZodTypeAny, {
|
|
90
|
-
version: string;
|
|
91
|
-
id: string;
|
|
92
|
-
slug: string;
|
|
93
|
-
url: string;
|
|
94
|
-
chain_id?: number | undefined;
|
|
95
|
-
kms_contract_address?: string | undefined;
|
|
96
|
-
gateway_app_id?: string | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
version: string;
|
|
99
|
-
id: string;
|
|
100
|
-
slug: string;
|
|
101
|
-
url: string;
|
|
102
|
-
chain_id?: number | undefined;
|
|
103
|
-
kms_contract_address?: string | undefined;
|
|
104
|
-
gateway_app_id?: string | undefined;
|
|
105
|
-
}>>>;
|
|
106
|
-
vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
107
|
-
memory: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
108
|
-
disk_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
109
|
-
gateway_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
|
-
public_urls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
111
|
-
app: z.ZodString;
|
|
112
|
-
instance: z.ZodString;
|
|
113
|
-
}, "strip", z.ZodTypeAny, {
|
|
114
|
-
app: string;
|
|
115
|
-
instance: string;
|
|
116
|
-
}, {
|
|
117
|
-
app: string;
|
|
118
|
-
instance: string;
|
|
119
|
-
}>, "many">>;
|
|
120
|
-
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
status?: string | undefined;
|
|
122
|
-
name?: string | undefined;
|
|
123
|
-
listed?: boolean | undefined;
|
|
124
|
-
vcpu?: number | null | undefined;
|
|
125
|
-
memory?: number | null | undefined;
|
|
126
|
-
disk_size?: number | null | undefined;
|
|
127
|
-
kms_info?: {
|
|
128
|
-
version: string;
|
|
129
|
-
id: string;
|
|
130
|
-
slug: string;
|
|
131
|
-
url: string;
|
|
132
|
-
chain_id?: number | undefined;
|
|
133
|
-
kms_contract_address?: string | undefined;
|
|
134
|
-
gateway_app_id?: string | undefined;
|
|
135
|
-
} | null | undefined;
|
|
136
|
-
hosted?: {
|
|
137
|
-
status: string;
|
|
138
|
-
name: string;
|
|
139
|
-
id: string;
|
|
140
|
-
app_id: string;
|
|
141
|
-
instance_id: string | null;
|
|
142
|
-
app_url: string | null;
|
|
143
|
-
uptime: string;
|
|
144
|
-
exited_at: string | null;
|
|
145
|
-
boot_progress: string | null;
|
|
146
|
-
boot_error: string | null;
|
|
147
|
-
shutdown_progress: string | null;
|
|
148
|
-
image_version: string | null;
|
|
149
|
-
configuration?: any;
|
|
150
|
-
} | undefined;
|
|
151
|
-
managed_user?: {
|
|
152
|
-
id: number;
|
|
153
|
-
username: string;
|
|
154
|
-
} | null | undefined;
|
|
155
|
-
node?: {
|
|
156
|
-
name: string;
|
|
157
|
-
id: number;
|
|
158
|
-
region_identifier?: string | undefined;
|
|
159
|
-
} | null | undefined;
|
|
160
|
-
in_progress?: boolean | undefined;
|
|
161
|
-
dapp_dashboard_url?: string | null | undefined;
|
|
162
|
-
syslog_endpoint?: string | null | undefined;
|
|
163
|
-
allow_upgrade?: boolean | undefined;
|
|
164
|
-
project_id?: string | null | undefined;
|
|
165
|
-
project_type?: string | null | undefined;
|
|
166
|
-
billing_period?: string | null | undefined;
|
|
167
|
-
gateway_domain?: string | null | undefined;
|
|
168
|
-
public_urls?: {
|
|
169
|
-
app: string;
|
|
170
|
-
instance: string;
|
|
171
|
-
}[] | undefined;
|
|
172
|
-
}, {
|
|
173
|
-
status?: string | undefined;
|
|
174
|
-
name?: string | undefined;
|
|
175
|
-
listed?: boolean | undefined;
|
|
176
|
-
vcpu?: number | null | undefined;
|
|
177
|
-
memory?: number | null | undefined;
|
|
178
|
-
disk_size?: number | null | undefined;
|
|
179
|
-
kms_info?: {
|
|
180
|
-
version: string;
|
|
181
|
-
id: string;
|
|
182
|
-
slug: string;
|
|
183
|
-
url: string;
|
|
184
|
-
chain_id?: number | undefined;
|
|
185
|
-
kms_contract_address?: string | undefined;
|
|
186
|
-
gateway_app_id?: string | undefined;
|
|
187
|
-
} | null | undefined;
|
|
188
|
-
hosted?: {
|
|
189
|
-
status: string;
|
|
190
|
-
name: string;
|
|
191
|
-
id: string;
|
|
192
|
-
app_id: string;
|
|
193
|
-
instance_id: string | null;
|
|
194
|
-
app_url: string | null;
|
|
195
|
-
uptime: string;
|
|
196
|
-
exited_at: string | null;
|
|
197
|
-
boot_progress: string | null;
|
|
198
|
-
boot_error: string | null;
|
|
199
|
-
shutdown_progress: string | null;
|
|
200
|
-
image_version: string | null;
|
|
201
|
-
configuration?: any;
|
|
202
|
-
} | undefined;
|
|
203
|
-
managed_user?: {
|
|
204
|
-
id: number;
|
|
205
|
-
username: string;
|
|
206
|
-
} | null | undefined;
|
|
207
|
-
node?: {
|
|
208
|
-
name: string;
|
|
209
|
-
id: number;
|
|
210
|
-
region_identifier?: string | undefined;
|
|
211
|
-
} | null | undefined;
|
|
212
|
-
in_progress?: boolean | undefined;
|
|
213
|
-
dapp_dashboard_url?: string | null | undefined;
|
|
214
|
-
syslog_endpoint?: string | null | undefined;
|
|
215
|
-
allow_upgrade?: boolean | undefined;
|
|
216
|
-
project_id?: string | null | undefined;
|
|
217
|
-
project_type?: string | null | undefined;
|
|
218
|
-
billing_period?: string | null | undefined;
|
|
219
|
-
gateway_domain?: string | null | undefined;
|
|
220
|
-
public_urls?: {
|
|
221
|
-
app: string;
|
|
222
|
-
instance: string;
|
|
223
|
-
}[] | undefined;
|
|
224
|
-
}>;
|
|
225
|
-
export type GetCvmInfoResponse = z.infer<typeof GetCvmInfoSchema>;
|
|
5
|
+
export { CvmLegacyDetailSchema };
|
|
6
|
+
export type GetCvmInfoResponse = z.infer<typeof CvmLegacyDetailSchema>;
|
|
226
7
|
export declare const GetCvmInfoRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
227
8
|
id: z.ZodOptional<z.ZodString>;
|
|
228
9
|
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,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AE,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"}
|
package/dist/actions/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export { getCvmComposeFile, safeGetCvmComposeFile, type GetCvmComposeFileParamet
|
|
|
8
8
|
export { provisionCvmComposeFileUpdate, safeProvisionCvmComposeFileUpdate, type ProvisionCvmComposeFileUpdateParameters, type ProvisionCvmComposeFileUpdateReturnType, ProvisionCvmComposeFileUpdateRequestSchema, type ProvisionCvmComposeFileUpdateRequest, ProvisionCvmComposeFileUpdateResultSchema, type ProvisionCvmComposeFileUpdateResult, } from "./provision_cvm_compose_file_update";
|
|
9
9
|
export { commitCvmComposeFileUpdate, safeCommitCvmComposeFileUpdate, type CommitCvmComposeFileUpdateParameters, type CommitCvmComposeFileUpdateReturnType, CommitCvmComposeFileUpdateRequestSchema, type CommitCvmComposeFileUpdateRequest, CommitCvmComposeFileUpdateSchema, type CommitCvmComposeFileUpdate, } from "./commit_cvm_compose_file_update";
|
|
10
10
|
export { getAppEnvEncryptPubKey, safeGetAppEnvEncryptPubKey, type GetAppEnvEncryptPubKeyParameters, type GetAppEnvEncryptPubKeyReturnType, GetAppEnvEncryptPubKeySchema, type GetAppEnvEncryptPubKeyRequest, type GetAppEnvEncryptPubKey, } from "./get_app_env_encrypt_pubkey";
|
|
11
|
-
export { getCvmInfo, safeGetCvmInfo, type GetCvmInfoParameters, type GetCvmInfoReturnType,
|
|
11
|
+
export { getCvmInfo, safeGetCvmInfo, type GetCvmInfoParameters, type GetCvmInfoReturnType, CvmLegacyDetailSchema, } from "./get_cvm_info";
|
|
12
12
|
export { getCvmList, safeGetCvmList, type GetCvmListParameters, type GetCvmListReturnType, GetCvmListSchema, } from "./get_cvm_list";
|
|
13
13
|
export { getKmsInfo, safeGetKmsInfo, type GetKmsInfoParameters, type GetKmsInfoReturnType, } from "./get_kms_info";
|
|
14
14
|
export { getKmsList, safeGetKmsList, type GetKmsListParameters, type GetKmsListReturnType, GetKmsListSchema, } from "./get_kms_list";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,WAAW,GACjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,oBAAoB,EACpB,KAAK,cAAc,GACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,kBAAkB,EAClB,KAAK,YAAY,EACjB,yBAAyB,EACzB,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,+BAA+B,EAC/B,KAAK,yBAAyB,GAC/B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,KAAK,aAAa,EAClB,0BAA0B,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBA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KAAK,oCAAoC,EACzC,uCAAuC,EACvC,KAAK,iCAAiC,EACtC,gCAAgC,EAChC,KAAK,0BAA0B,GAChC,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,4BAA4B,EAC5B,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,GAC5B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACL,UAAU,EACV,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,UAAU,EACV,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,UAAU,EACV,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,UAAU,EACV,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ export { createClient, type Client } from "./client";
|
|
|
2
2
|
export * from "./types";
|
|
3
3
|
export * from "./actions";
|
|
4
4
|
export * from "./utils";
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
5
|
+
export { parseEnv, parseEnvVars } from "./parse_dotenv";
|
|
6
|
+
export { encryptEnvVars, type EnvVar, } from "@phala/dstack-sdk/encrypt-env-vars";
|
|
7
|
+
export { getComposeHash } from "@phala/dstack-sdk/get-compose-hash";
|
|
8
|
+
export { verifyEnvEncryptPublicKey } from "@phala/dstack-sdk/verify-env-encrypt-public-key";
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAGrD,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAGrD,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,EACL,cAAc,EACd,KAAK,MAAM,GACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iDAAiD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -28,11 +28,11 @@ __export(index_exports, {
|
|
|
28
28
|
CommitCvmProvisionRequestSchema: () => CommitCvmProvisionRequestSchema,
|
|
29
29
|
CommitCvmProvisionSchema: () => CommitCvmProvisionSchema,
|
|
30
30
|
CurrentUserSchema: () => CurrentUserSchema,
|
|
31
|
+
CvmLegacyDetailSchema: () => CvmLegacyDetailSchema,
|
|
31
32
|
DeployAppAuthRequestSchema: () => DeployAppAuthRequestSchema,
|
|
32
33
|
DeployAppAuthSchema: () => DeployAppAuthSchema,
|
|
33
34
|
GetAppEnvEncryptPubKeySchema: () => GetAppEnvEncryptPubKeySchema,
|
|
34
35
|
GetCvmComposeFileResultSchema: () => GetCvmComposeFileResultSchema,
|
|
35
|
-
GetCvmInfoSchema: () => GetCvmInfoSchema,
|
|
36
36
|
GetCvmListSchema: () => GetCvmListSchema,
|
|
37
37
|
GetKmsListSchema: () => GetKmsListSchema,
|
|
38
38
|
NetworkError: () => NetworkError,
|
|
@@ -65,7 +65,7 @@ __export(index_exports, {
|
|
|
65
65
|
extractNetworkClients: () => extractNetworkClients,
|
|
66
66
|
getAppEnvEncryptPubKey: () => getAppEnvEncryptPubKey,
|
|
67
67
|
getAvailableNodes: () => getAvailableNodes,
|
|
68
|
-
getComposeHash: () =>
|
|
68
|
+
getComposeHash: () => import_get_compose_hash2.getComposeHash,
|
|
69
69
|
getCurrentUser: () => getCurrentUser,
|
|
70
70
|
getCvmComposeFile: () => getCvmComposeFile,
|
|
71
71
|
getCvmInfo: () => getCvmInfo,
|
|
@@ -73,6 +73,8 @@ __export(index_exports, {
|
|
|
73
73
|
getErrorMessage: () => getErrorMessage,
|
|
74
74
|
getKmsInfo: () => getKmsInfo,
|
|
75
75
|
getKmsList: () => getKmsList,
|
|
76
|
+
parseEnv: () => parseEnv,
|
|
77
|
+
parseEnvVars: () => parseEnvVars,
|
|
76
78
|
provisionCvm: () => provisionCvm,
|
|
77
79
|
provisionCvmComposeFileUpdate: () => provisionCvmComposeFileUpdate,
|
|
78
80
|
safeAddComposeHash: () => safeAddComposeHash,
|
|
@@ -93,7 +95,7 @@ __export(index_exports, {
|
|
|
93
95
|
switchToNetwork: () => switchToNetwork,
|
|
94
96
|
validateActionParameters: () => validateActionParameters,
|
|
95
97
|
validateNetworkPrerequisites: () => validateNetworkPrerequisites,
|
|
96
|
-
verifyEnvEncryptPublicKey: () =>
|
|
98
|
+
verifyEnvEncryptPublicKey: () => import_verify_env_encrypt_public_key.verifyEnvEncryptPublicKey,
|
|
97
99
|
waitForTransactionReceipt: () => waitForTransactionReceipt
|
|
98
100
|
});
|
|
99
101
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -1318,6 +1320,7 @@ var kmsAuthAbi = [
|
|
|
1318
1320
|
var DeployAppAuthRequestBaseSchema = import_zod7.z.object({
|
|
1319
1321
|
// Chain configuration (conditionally required)
|
|
1320
1322
|
chain: import_zod7.z.unknown().optional(),
|
|
1323
|
+
rpcUrl: import_zod7.z.string().optional(),
|
|
1321
1324
|
// Contract configuration (required)
|
|
1322
1325
|
kmsContractAddress: import_zod7.z.string(),
|
|
1323
1326
|
// Authentication mode: either privateKey OR walletClient (required, mutually exclusive)
|
|
@@ -1411,6 +1414,7 @@ async function deployAppAuth(request, parameters) {
|
|
|
1411
1414
|
const validatedRequest = DeployAppAuthRequestSchema.parse(request);
|
|
1412
1415
|
const {
|
|
1413
1416
|
chain,
|
|
1417
|
+
rpcUrl,
|
|
1414
1418
|
kmsContractAddress,
|
|
1415
1419
|
privateKey,
|
|
1416
1420
|
walletClient: providedWalletClient,
|
|
@@ -1449,7 +1453,7 @@ async function deployAppAuth(request, parameters) {
|
|
|
1449
1453
|
}
|
|
1450
1454
|
publicClient = (0, import_viem3.createPublicClient)({
|
|
1451
1455
|
chain,
|
|
1452
|
-
transport: (0, import_viem3.http)()
|
|
1456
|
+
transport: (0, import_viem3.http)(rpcUrl)
|
|
1453
1457
|
});
|
|
1454
1458
|
}
|
|
1455
1459
|
if (!chain) {
|
|
@@ -1458,7 +1462,7 @@ async function deployAppAuth(request, parameters) {
|
|
|
1458
1462
|
walletClient = (0, import_viem3.createWalletClient)({
|
|
1459
1463
|
account,
|
|
1460
1464
|
chain,
|
|
1461
|
-
transport: (0, import_viem3.http)()
|
|
1465
|
+
transport: (0, import_viem3.http)(rpcUrl)
|
|
1462
1466
|
});
|
|
1463
1467
|
deployerAddress = account.address;
|
|
1464
1468
|
chainId = chain.id;
|
|
@@ -1478,7 +1482,7 @@ async function deployAppAuth(request, parameters) {
|
|
|
1478
1482
|
}
|
|
1479
1483
|
publicClient = (0, import_viem3.createPublicClient)({
|
|
1480
1484
|
chain,
|
|
1481
|
-
transport: (0, import_viem3.http)()
|
|
1485
|
+
transport: (0, import_viem3.http)(rpcUrl)
|
|
1482
1486
|
});
|
|
1483
1487
|
}
|
|
1484
1488
|
if (!walletClient.account?.address) {
|
|
@@ -1632,8 +1636,7 @@ var appAuthAbi = [
|
|
|
1632
1636
|
var AddComposeHashRequestSchema = import_zod8.z.object({
|
|
1633
1637
|
// Chain configuration (conditionally required)
|
|
1634
1638
|
chain: import_zod8.z.unknown().optional(),
|
|
1635
|
-
|
|
1636
|
-
kmsContractAddress: import_zod8.z.string(),
|
|
1639
|
+
rpcUrl: import_zod8.z.string().optional(),
|
|
1637
1640
|
appId: import_zod8.z.string(),
|
|
1638
1641
|
composeHash: import_zod8.z.string(),
|
|
1639
1642
|
// Authentication mode: either privateKey OR walletClient (required, mutually exclusive)
|
|
@@ -1724,6 +1727,7 @@ async function addComposeHash(request, parameters) {
|
|
|
1724
1727
|
const validatedRequest = AddComposeHashRequestSchema.parse(request);
|
|
1725
1728
|
const {
|
|
1726
1729
|
chain,
|
|
1730
|
+
rpcUrl,
|
|
1727
1731
|
appId,
|
|
1728
1732
|
composeHash,
|
|
1729
1733
|
privateKey,
|
|
@@ -1749,13 +1753,13 @@ async function addComposeHash(request, parameters) {
|
|
|
1749
1753
|
publicClient = providedPublicClient;
|
|
1750
1754
|
} else {
|
|
1751
1755
|
if (!chain) throw new Error("Chain required when creating publicClient");
|
|
1752
|
-
publicClient = (0, import_viem4.createPublicClient)({ chain, transport: (0, import_viem4.http)() });
|
|
1756
|
+
publicClient = (0, import_viem4.createPublicClient)({ chain, transport: (0, import_viem4.http)(rpcUrl) });
|
|
1753
1757
|
}
|
|
1754
1758
|
if (!chain) throw new Error("Chain required when creating walletClient");
|
|
1755
1759
|
walletClient = (0, import_viem4.createWalletClient)({
|
|
1756
1760
|
account,
|
|
1757
1761
|
chain,
|
|
1758
|
-
transport: (0, import_viem4.http)()
|
|
1762
|
+
transport: (0, import_viem4.http)(rpcUrl)
|
|
1759
1763
|
});
|
|
1760
1764
|
address = account.address;
|
|
1761
1765
|
chainId = chain.id;
|
|
@@ -1765,7 +1769,7 @@ async function addComposeHash(request, parameters) {
|
|
|
1765
1769
|
publicClient = providedPublicClient;
|
|
1766
1770
|
} else {
|
|
1767
1771
|
if (!chain) throw new Error("Chain required when creating publicClient");
|
|
1768
|
-
publicClient = (0, import_viem4.createPublicClient)({ chain, transport: (0, import_viem4.http)() });
|
|
1772
|
+
publicClient = (0, import_viem4.createPublicClient)({ chain, transport: (0, import_viem4.http)(rpcUrl) });
|
|
1769
1773
|
}
|
|
1770
1774
|
if (!walletClient.account?.address) {
|
|
1771
1775
|
throw new Error("WalletClient must have an account with address");
|
|
@@ -2059,7 +2063,10 @@ async function safeCommitCvmComposeFileUpdate(client, request, parameters) {
|
|
|
2059
2063
|
var import_zod12 = require("zod");
|
|
2060
2064
|
var GetAppEnvEncryptPubKeyRequestSchema = import_zod12.z.object({
|
|
2061
2065
|
kms: import_zod12.z.string().min(1, "KMS ID or slug is required"),
|
|
2062
|
-
app_id: import_zod12.z.string().
|
|
2066
|
+
app_id: import_zod12.z.string().refine(
|
|
2067
|
+
(val) => val.length === 40 || val.startsWith("0x") && val.length === 42,
|
|
2068
|
+
"App ID must be exactly 40 characters or 42 characters with 0x prefix"
|
|
2069
|
+
)
|
|
2063
2070
|
}).strict();
|
|
2064
2071
|
var GetAppEnvEncryptPubKeySchema = import_zod12.z.object({
|
|
2065
2072
|
public_key: import_zod12.z.string(),
|
|
@@ -2165,9 +2172,37 @@ var CvmInfoSchema = import_zod13.z.object({
|
|
|
2165
2172
|
gateway_domain: import_zod13.z.string().nullable(),
|
|
2166
2173
|
public_urls: import_zod13.z.array(CvmNetworkUrlsSchema)
|
|
2167
2174
|
}).partial();
|
|
2175
|
+
var CvmLegacyDetailSchema = import_zod13.z.object({
|
|
2176
|
+
id: import_zod13.z.number(),
|
|
2177
|
+
name: import_zod13.z.string(),
|
|
2178
|
+
status: import_zod13.z.string(),
|
|
2179
|
+
in_progress: import_zod13.z.boolean(),
|
|
2180
|
+
teepod_id: import_zod13.z.number().nullable(),
|
|
2181
|
+
teepod: CvmNodeSchema,
|
|
2182
|
+
app_id: import_zod13.z.string(),
|
|
2183
|
+
vm_uuid: import_zod13.z.string().nullable(),
|
|
2184
|
+
instance_id: import_zod13.z.string().nullable(),
|
|
2185
|
+
vcpu: import_zod13.z.number().nullable(),
|
|
2186
|
+
memory: import_zod13.z.number().nullable(),
|
|
2187
|
+
disk_size: import_zod13.z.number().nullable(),
|
|
2188
|
+
base_image: import_zod13.z.string(),
|
|
2189
|
+
encrypted_env_pubkey: import_zod13.z.string().nullable(),
|
|
2190
|
+
listed: import_zod13.z.boolean(),
|
|
2191
|
+
project_id: import_zod13.z.string().nullable(),
|
|
2192
|
+
project_type: import_zod13.z.string().nullable(),
|
|
2193
|
+
public_sysinfo: import_zod13.z.boolean(),
|
|
2194
|
+
public_logs: import_zod13.z.boolean(),
|
|
2195
|
+
dapp_dashboard_url: import_zod13.z.string().nullable(),
|
|
2196
|
+
syslog_endpoint: import_zod13.z.string().nullable(),
|
|
2197
|
+
kms_info: KMSInfoSchema.nullable(),
|
|
2198
|
+
contract_address: import_zod13.z.string().nullable(),
|
|
2199
|
+
deployer_address: import_zod13.z.string().nullable(),
|
|
2200
|
+
scheduled_delete_at: import_zod13.z.string().nullable(),
|
|
2201
|
+
public_urls: import_zod13.z.array(CvmNetworkUrlsSchema),
|
|
2202
|
+
gateway_domain: import_zod13.z.string().nullable()
|
|
2203
|
+
});
|
|
2168
2204
|
|
|
2169
2205
|
// src/actions/get_cvm_info.ts
|
|
2170
|
-
var GetCvmInfoSchema = CvmInfoSchema;
|
|
2171
2206
|
var GetCvmInfoRequestSchema = import_zod14.z.object({
|
|
2172
2207
|
id: import_zod14.z.string().optional(),
|
|
2173
2208
|
uuid: import_zod14.z.string().regex(/^[0-9a-f]{8}[-]?[0-9a-f]{4}[-]?4[0-9a-f]{3}[-]?[89ab][0-9a-f]{3}[-]?[0-9a-f]{12}$/i).optional(),
|
|
@@ -2193,7 +2228,7 @@ async function getCvmInfo(client, request, parameters) {
|
|
|
2193
2228
|
if (parameters?.schema === false) {
|
|
2194
2229
|
return response;
|
|
2195
2230
|
}
|
|
2196
|
-
const schema = parameters?.schema ||
|
|
2231
|
+
const schema = parameters?.schema || CvmLegacyDetailSchema;
|
|
2197
2232
|
return schema.parse(response);
|
|
2198
2233
|
}
|
|
2199
2234
|
async function safeGetCvmInfo(client, request, parameters) {
|
|
@@ -2215,7 +2250,7 @@ async function safeGetCvmInfo(client, request, parameters) {
|
|
|
2215
2250
|
data: httpResult.data
|
|
2216
2251
|
};
|
|
2217
2252
|
}
|
|
2218
|
-
const schema = parameters?.schema ||
|
|
2253
|
+
const schema = parameters?.schema || CvmLegacyDetailSchema;
|
|
2219
2254
|
const validationResult = schema.safeParse(httpResult.data);
|
|
2220
2255
|
return validationResult;
|
|
2221
2256
|
}
|
|
@@ -2352,10 +2387,41 @@ async function safeGetKmsList(client, request, parameters) {
|
|
|
2352
2387
|
return validationResult;
|
|
2353
2388
|
}
|
|
2354
2389
|
|
|
2390
|
+
// src/parse_dotenv.ts
|
|
2391
|
+
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
|
2392
|
+
function parseEnv(input) {
|
|
2393
|
+
const obj = {};
|
|
2394
|
+
let lines = input.toString();
|
|
2395
|
+
lines = lines.replace(/\r\n?/gm, "\n");
|
|
2396
|
+
let match;
|
|
2397
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
2398
|
+
const key = match[1];
|
|
2399
|
+
if (!key) continue;
|
|
2400
|
+
let value = match[2] || "";
|
|
2401
|
+
value = value.trim();
|
|
2402
|
+
const maybeQuote = value[0];
|
|
2403
|
+
value = value.replace(/^(['"`])([\s\S]*)\1$/gm, "$2");
|
|
2404
|
+
if (maybeQuote === '"') {
|
|
2405
|
+
value = value.replace(/\\n/g, "\n");
|
|
2406
|
+
value = value.replace(/\\r/g, "\r");
|
|
2407
|
+
}
|
|
2408
|
+
obj[key] = value;
|
|
2409
|
+
}
|
|
2410
|
+
return obj;
|
|
2411
|
+
}
|
|
2412
|
+
function parseEnvVars(input) {
|
|
2413
|
+
const parsed = parseEnv(input);
|
|
2414
|
+
const result = [];
|
|
2415
|
+
for (const [key, value] of Object.entries(parsed)) {
|
|
2416
|
+
result.push({ key, value });
|
|
2417
|
+
}
|
|
2418
|
+
return result;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2355
2421
|
// src/index.ts
|
|
2356
2422
|
var import_encrypt_env_vars2 = require("@phala/dstack-sdk/encrypt-env-vars");
|
|
2357
|
-
var
|
|
2358
|
-
var
|
|
2423
|
+
var import_get_compose_hash2 = require("@phala/dstack-sdk/get-compose-hash");
|
|
2424
|
+
var import_verify_env_encrypt_public_key = require("@phala/dstack-sdk/verify-env-encrypt-public-key");
|
|
2359
2425
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2360
2426
|
0 && (module.exports = {
|
|
2361
2427
|
AddComposeHashSchema,
|
|
@@ -2366,11 +2432,11 @@ var import_dstack_sdk2 = require("@phala/dstack-sdk");
|
|
|
2366
2432
|
CommitCvmProvisionRequestSchema,
|
|
2367
2433
|
CommitCvmProvisionSchema,
|
|
2368
2434
|
CurrentUserSchema,
|
|
2435
|
+
CvmLegacyDetailSchema,
|
|
2369
2436
|
DeployAppAuthRequestSchema,
|
|
2370
2437
|
DeployAppAuthSchema,
|
|
2371
2438
|
GetAppEnvEncryptPubKeySchema,
|
|
2372
2439
|
GetCvmComposeFileResultSchema,
|
|
2373
|
-
GetCvmInfoSchema,
|
|
2374
2440
|
GetCvmListSchema,
|
|
2375
2441
|
GetKmsListSchema,
|
|
2376
2442
|
NetworkError,
|
|
@@ -2411,6 +2477,8 @@ var import_dstack_sdk2 = require("@phala/dstack-sdk");
|
|
|
2411
2477
|
getErrorMessage,
|
|
2412
2478
|
getKmsInfo,
|
|
2413
2479
|
getKmsList,
|
|
2480
|
+
parseEnv,
|
|
2481
|
+
parseEnvVars,
|
|
2414
2482
|
provisionCvm,
|
|
2415
2483
|
provisionCvmComposeFileUpdate,
|
|
2416
2484
|
safeAddComposeHash,
|
package/dist/index.mjs
CHANGED
|
@@ -1229,6 +1229,7 @@ var kmsAuthAbi = [
|
|
|
1229
1229
|
var DeployAppAuthRequestBaseSchema = z7.object({
|
|
1230
1230
|
// Chain configuration (conditionally required)
|
|
1231
1231
|
chain: z7.unknown().optional(),
|
|
1232
|
+
rpcUrl: z7.string().optional(),
|
|
1232
1233
|
// Contract configuration (required)
|
|
1233
1234
|
kmsContractAddress: z7.string(),
|
|
1234
1235
|
// Authentication mode: either privateKey OR walletClient (required, mutually exclusive)
|
|
@@ -1322,6 +1323,7 @@ async function deployAppAuth(request, parameters) {
|
|
|
1322
1323
|
const validatedRequest = DeployAppAuthRequestSchema.parse(request);
|
|
1323
1324
|
const {
|
|
1324
1325
|
chain,
|
|
1326
|
+
rpcUrl,
|
|
1325
1327
|
kmsContractAddress,
|
|
1326
1328
|
privateKey,
|
|
1327
1329
|
walletClient: providedWalletClient,
|
|
@@ -1360,7 +1362,7 @@ async function deployAppAuth(request, parameters) {
|
|
|
1360
1362
|
}
|
|
1361
1363
|
publicClient = createPublicClient2({
|
|
1362
1364
|
chain,
|
|
1363
|
-
transport: http2()
|
|
1365
|
+
transport: http2(rpcUrl)
|
|
1364
1366
|
});
|
|
1365
1367
|
}
|
|
1366
1368
|
if (!chain) {
|
|
@@ -1369,7 +1371,7 @@ async function deployAppAuth(request, parameters) {
|
|
|
1369
1371
|
walletClient = createWalletClient2({
|
|
1370
1372
|
account,
|
|
1371
1373
|
chain,
|
|
1372
|
-
transport: http2()
|
|
1374
|
+
transport: http2(rpcUrl)
|
|
1373
1375
|
});
|
|
1374
1376
|
deployerAddress = account.address;
|
|
1375
1377
|
chainId = chain.id;
|
|
@@ -1389,7 +1391,7 @@ async function deployAppAuth(request, parameters) {
|
|
|
1389
1391
|
}
|
|
1390
1392
|
publicClient = createPublicClient2({
|
|
1391
1393
|
chain,
|
|
1392
|
-
transport: http2()
|
|
1394
|
+
transport: http2(rpcUrl)
|
|
1393
1395
|
});
|
|
1394
1396
|
}
|
|
1395
1397
|
if (!walletClient.account?.address) {
|
|
@@ -1549,8 +1551,7 @@ var appAuthAbi = [
|
|
|
1549
1551
|
var AddComposeHashRequestSchema = z8.object({
|
|
1550
1552
|
// Chain configuration (conditionally required)
|
|
1551
1553
|
chain: z8.unknown().optional(),
|
|
1552
|
-
|
|
1553
|
-
kmsContractAddress: z8.string(),
|
|
1554
|
+
rpcUrl: z8.string().optional(),
|
|
1554
1555
|
appId: z8.string(),
|
|
1555
1556
|
composeHash: z8.string(),
|
|
1556
1557
|
// Authentication mode: either privateKey OR walletClient (required, mutually exclusive)
|
|
@@ -1641,6 +1642,7 @@ async function addComposeHash(request, parameters) {
|
|
|
1641
1642
|
const validatedRequest = AddComposeHashRequestSchema.parse(request);
|
|
1642
1643
|
const {
|
|
1643
1644
|
chain,
|
|
1645
|
+
rpcUrl,
|
|
1644
1646
|
appId,
|
|
1645
1647
|
composeHash,
|
|
1646
1648
|
privateKey,
|
|
@@ -1666,13 +1668,13 @@ async function addComposeHash(request, parameters) {
|
|
|
1666
1668
|
publicClient = providedPublicClient;
|
|
1667
1669
|
} else {
|
|
1668
1670
|
if (!chain) throw new Error("Chain required when creating publicClient");
|
|
1669
|
-
publicClient = createPublicClient3({ chain, transport: http3() });
|
|
1671
|
+
publicClient = createPublicClient3({ chain, transport: http3(rpcUrl) });
|
|
1670
1672
|
}
|
|
1671
1673
|
if (!chain) throw new Error("Chain required when creating walletClient");
|
|
1672
1674
|
walletClient = createWalletClient3({
|
|
1673
1675
|
account,
|
|
1674
1676
|
chain,
|
|
1675
|
-
transport: http3()
|
|
1677
|
+
transport: http3(rpcUrl)
|
|
1676
1678
|
});
|
|
1677
1679
|
address = account.address;
|
|
1678
1680
|
chainId = chain.id;
|
|
@@ -1682,7 +1684,7 @@ async function addComposeHash(request, parameters) {
|
|
|
1682
1684
|
publicClient = providedPublicClient;
|
|
1683
1685
|
} else {
|
|
1684
1686
|
if (!chain) throw new Error("Chain required when creating publicClient");
|
|
1685
|
-
publicClient = createPublicClient3({ chain, transport: http3() });
|
|
1687
|
+
publicClient = createPublicClient3({ chain, transport: http3(rpcUrl) });
|
|
1686
1688
|
}
|
|
1687
1689
|
if (!walletClient.account?.address) {
|
|
1688
1690
|
throw new Error("WalletClient must have an account with address");
|
|
@@ -1976,7 +1978,10 @@ async function safeCommitCvmComposeFileUpdate(client, request, parameters) {
|
|
|
1976
1978
|
import { z as z12 } from "zod";
|
|
1977
1979
|
var GetAppEnvEncryptPubKeyRequestSchema = z12.object({
|
|
1978
1980
|
kms: z12.string().min(1, "KMS ID or slug is required"),
|
|
1979
|
-
app_id: z12.string().
|
|
1981
|
+
app_id: z12.string().refine(
|
|
1982
|
+
(val) => val.length === 40 || val.startsWith("0x") && val.length === 42,
|
|
1983
|
+
"App ID must be exactly 40 characters or 42 characters with 0x prefix"
|
|
1984
|
+
)
|
|
1980
1985
|
}).strict();
|
|
1981
1986
|
var GetAppEnvEncryptPubKeySchema = z12.object({
|
|
1982
1987
|
public_key: z12.string(),
|
|
@@ -2082,9 +2087,37 @@ var CvmInfoSchema = z13.object({
|
|
|
2082
2087
|
gateway_domain: z13.string().nullable(),
|
|
2083
2088
|
public_urls: z13.array(CvmNetworkUrlsSchema)
|
|
2084
2089
|
}).partial();
|
|
2090
|
+
var CvmLegacyDetailSchema = z13.object({
|
|
2091
|
+
id: z13.number(),
|
|
2092
|
+
name: z13.string(),
|
|
2093
|
+
status: z13.string(),
|
|
2094
|
+
in_progress: z13.boolean(),
|
|
2095
|
+
teepod_id: z13.number().nullable(),
|
|
2096
|
+
teepod: CvmNodeSchema,
|
|
2097
|
+
app_id: z13.string(),
|
|
2098
|
+
vm_uuid: z13.string().nullable(),
|
|
2099
|
+
instance_id: z13.string().nullable(),
|
|
2100
|
+
vcpu: z13.number().nullable(),
|
|
2101
|
+
memory: z13.number().nullable(),
|
|
2102
|
+
disk_size: z13.number().nullable(),
|
|
2103
|
+
base_image: z13.string(),
|
|
2104
|
+
encrypted_env_pubkey: z13.string().nullable(),
|
|
2105
|
+
listed: z13.boolean(),
|
|
2106
|
+
project_id: z13.string().nullable(),
|
|
2107
|
+
project_type: z13.string().nullable(),
|
|
2108
|
+
public_sysinfo: z13.boolean(),
|
|
2109
|
+
public_logs: z13.boolean(),
|
|
2110
|
+
dapp_dashboard_url: z13.string().nullable(),
|
|
2111
|
+
syslog_endpoint: z13.string().nullable(),
|
|
2112
|
+
kms_info: KMSInfoSchema.nullable(),
|
|
2113
|
+
contract_address: z13.string().nullable(),
|
|
2114
|
+
deployer_address: z13.string().nullable(),
|
|
2115
|
+
scheduled_delete_at: z13.string().nullable(),
|
|
2116
|
+
public_urls: z13.array(CvmNetworkUrlsSchema),
|
|
2117
|
+
gateway_domain: z13.string().nullable()
|
|
2118
|
+
});
|
|
2085
2119
|
|
|
2086
2120
|
// src/actions/get_cvm_info.ts
|
|
2087
|
-
var GetCvmInfoSchema = CvmInfoSchema;
|
|
2088
2121
|
var GetCvmInfoRequestSchema = z14.object({
|
|
2089
2122
|
id: z14.string().optional(),
|
|
2090
2123
|
uuid: z14.string().regex(/^[0-9a-f]{8}[-]?[0-9a-f]{4}[-]?4[0-9a-f]{3}[-]?[89ab][0-9a-f]{3}[-]?[0-9a-f]{12}$/i).optional(),
|
|
@@ -2110,7 +2143,7 @@ async function getCvmInfo(client, request, parameters) {
|
|
|
2110
2143
|
if (parameters?.schema === false) {
|
|
2111
2144
|
return response;
|
|
2112
2145
|
}
|
|
2113
|
-
const schema = parameters?.schema ||
|
|
2146
|
+
const schema = parameters?.schema || CvmLegacyDetailSchema;
|
|
2114
2147
|
return schema.parse(response);
|
|
2115
2148
|
}
|
|
2116
2149
|
async function safeGetCvmInfo(client, request, parameters) {
|
|
@@ -2132,7 +2165,7 @@ async function safeGetCvmInfo(client, request, parameters) {
|
|
|
2132
2165
|
data: httpResult.data
|
|
2133
2166
|
};
|
|
2134
2167
|
}
|
|
2135
|
-
const schema = parameters?.schema ||
|
|
2168
|
+
const schema = parameters?.schema || CvmLegacyDetailSchema;
|
|
2136
2169
|
const validationResult = schema.safeParse(httpResult.data);
|
|
2137
2170
|
return validationResult;
|
|
2138
2171
|
}
|
|
@@ -2269,10 +2302,43 @@ async function safeGetKmsList(client, request, parameters) {
|
|
|
2269
2302
|
return validationResult;
|
|
2270
2303
|
}
|
|
2271
2304
|
|
|
2305
|
+
// src/parse_dotenv.ts
|
|
2306
|
+
var LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
|
2307
|
+
function parseEnv(input) {
|
|
2308
|
+
const obj = {};
|
|
2309
|
+
let lines = input.toString();
|
|
2310
|
+
lines = lines.replace(/\r\n?/gm, "\n");
|
|
2311
|
+
let match;
|
|
2312
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
2313
|
+
const key = match[1];
|
|
2314
|
+
if (!key) continue;
|
|
2315
|
+
let value = match[2] || "";
|
|
2316
|
+
value = value.trim();
|
|
2317
|
+
const maybeQuote = value[0];
|
|
2318
|
+
value = value.replace(/^(['"`])([\s\S]*)\1$/gm, "$2");
|
|
2319
|
+
if (maybeQuote === '"') {
|
|
2320
|
+
value = value.replace(/\\n/g, "\n");
|
|
2321
|
+
value = value.replace(/\\r/g, "\r");
|
|
2322
|
+
}
|
|
2323
|
+
obj[key] = value;
|
|
2324
|
+
}
|
|
2325
|
+
return obj;
|
|
2326
|
+
}
|
|
2327
|
+
function parseEnvVars(input) {
|
|
2328
|
+
const parsed = parseEnv(input);
|
|
2329
|
+
const result = [];
|
|
2330
|
+
for (const [key, value] of Object.entries(parsed)) {
|
|
2331
|
+
result.push({ key, value });
|
|
2332
|
+
}
|
|
2333
|
+
return result;
|
|
2334
|
+
}
|
|
2335
|
+
|
|
2272
2336
|
// src/index.ts
|
|
2273
|
-
import {
|
|
2274
|
-
|
|
2275
|
-
|
|
2337
|
+
import {
|
|
2338
|
+
encryptEnvVars as encryptEnvVars2
|
|
2339
|
+
} from "@phala/dstack-sdk/encrypt-env-vars";
|
|
2340
|
+
import { getComposeHash as getComposeHash2 } from "@phala/dstack-sdk/get-compose-hash";
|
|
2341
|
+
import { verifyEnvEncryptPublicKey } from "@phala/dstack-sdk/verify-env-encrypt-public-key";
|
|
2276
2342
|
export {
|
|
2277
2343
|
AddComposeHashSchema,
|
|
2278
2344
|
ApiErrorSchema,
|
|
@@ -2282,11 +2348,11 @@ export {
|
|
|
2282
2348
|
CommitCvmProvisionRequestSchema,
|
|
2283
2349
|
CommitCvmProvisionSchema,
|
|
2284
2350
|
CurrentUserSchema,
|
|
2351
|
+
CvmLegacyDetailSchema,
|
|
2285
2352
|
DeployAppAuthRequestSchema,
|
|
2286
2353
|
DeployAppAuthSchema,
|
|
2287
2354
|
GetAppEnvEncryptPubKeySchema,
|
|
2288
2355
|
GetCvmComposeFileResultSchema,
|
|
2289
|
-
GetCvmInfoSchema,
|
|
2290
2356
|
GetCvmListSchema,
|
|
2291
2357
|
GetKmsListSchema,
|
|
2292
2358
|
NetworkError,
|
|
@@ -2327,6 +2393,8 @@ export {
|
|
|
2327
2393
|
getErrorMessage,
|
|
2328
2394
|
getKmsInfo,
|
|
2329
2395
|
getKmsList,
|
|
2396
|
+
parseEnv,
|
|
2397
|
+
parseEnvVars,
|
|
2330
2398
|
provisionCvm,
|
|
2331
2399
|
provisionCvmComposeFileUpdate,
|
|
2332
2400
|
safeAddComposeHash,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { EnvVar } from "@phala/dstack-sdk/encrypt-env-vars";
|
|
2
|
+
/**
|
|
3
|
+
* Parse dotenv format string into key-value object (preserves original parse behavior)
|
|
4
|
+
* @param input - The dotenv format string to parse
|
|
5
|
+
* @returns Object with parsed key-value pairs
|
|
6
|
+
*/
|
|
7
|
+
export declare function parseEnv(input: string | Buffer): Record<string, string>;
|
|
8
|
+
/**
|
|
9
|
+
* Parse dotenv format string into array of environment variables
|
|
10
|
+
* @param input - The dotenv format string to parse
|
|
11
|
+
* @returns Array of EnvVar objects with key and value properties (all values are strings)
|
|
12
|
+
*/
|
|
13
|
+
export declare function parseEnvVars(input: string | Buffer): EnvVar[];
|
|
14
|
+
//# sourceMappingURL=parse_dotenv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse_dotenv.d.ts","sourceRoot":"","sources":["../src/parse_dotenv.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAMjE;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAuCvE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAS7D"}
|
package/dist/types/cvm_info.d.ts
CHANGED
|
@@ -322,4 +322,165 @@ export declare const CvmInfoSchema: z.ZodObject<{
|
|
|
322
322
|
}[] | undefined;
|
|
323
323
|
}>;
|
|
324
324
|
export type CvmInfo = z.infer<typeof CvmInfoSchema>;
|
|
325
|
+
export declare const CvmLegacyDetailSchema: z.ZodObject<{
|
|
326
|
+
id: z.ZodNumber;
|
|
327
|
+
name: z.ZodString;
|
|
328
|
+
status: z.ZodString;
|
|
329
|
+
in_progress: z.ZodBoolean;
|
|
330
|
+
teepod_id: z.ZodNullable<z.ZodNumber>;
|
|
331
|
+
teepod: z.ZodObject<{
|
|
332
|
+
id: z.ZodNumber;
|
|
333
|
+
name: z.ZodString;
|
|
334
|
+
region_identifier: z.ZodOptional<z.ZodString>;
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
336
|
+
name: string;
|
|
337
|
+
id: number;
|
|
338
|
+
region_identifier?: string | undefined;
|
|
339
|
+
}, {
|
|
340
|
+
name: string;
|
|
341
|
+
id: number;
|
|
342
|
+
region_identifier?: string | undefined;
|
|
343
|
+
}>;
|
|
344
|
+
app_id: z.ZodString;
|
|
345
|
+
vm_uuid: z.ZodNullable<z.ZodString>;
|
|
346
|
+
instance_id: z.ZodNullable<z.ZodString>;
|
|
347
|
+
vcpu: z.ZodNullable<z.ZodNumber>;
|
|
348
|
+
memory: z.ZodNullable<z.ZodNumber>;
|
|
349
|
+
disk_size: z.ZodNullable<z.ZodNumber>;
|
|
350
|
+
base_image: z.ZodString;
|
|
351
|
+
encrypted_env_pubkey: z.ZodNullable<z.ZodString>;
|
|
352
|
+
listed: z.ZodBoolean;
|
|
353
|
+
project_id: z.ZodNullable<z.ZodString>;
|
|
354
|
+
project_type: z.ZodNullable<z.ZodString>;
|
|
355
|
+
public_sysinfo: z.ZodBoolean;
|
|
356
|
+
public_logs: z.ZodBoolean;
|
|
357
|
+
dapp_dashboard_url: z.ZodNullable<z.ZodString>;
|
|
358
|
+
syslog_endpoint: z.ZodNullable<z.ZodString>;
|
|
359
|
+
kms_info: z.ZodNullable<z.ZodObject<{
|
|
360
|
+
id: z.ZodString;
|
|
361
|
+
slug: z.ZodString;
|
|
362
|
+
url: z.ZodString;
|
|
363
|
+
version: z.ZodString;
|
|
364
|
+
chain_id: z.ZodOptional<z.ZodNumber>;
|
|
365
|
+
kms_contract_address: z.ZodOptional<z.ZodString>;
|
|
366
|
+
gateway_app_id: z.ZodOptional<z.ZodString>;
|
|
367
|
+
}, "strip", z.ZodTypeAny, {
|
|
368
|
+
version: string;
|
|
369
|
+
id: string;
|
|
370
|
+
slug: string;
|
|
371
|
+
url: string;
|
|
372
|
+
chain_id?: number | undefined;
|
|
373
|
+
kms_contract_address?: string | undefined;
|
|
374
|
+
gateway_app_id?: string | undefined;
|
|
375
|
+
}, {
|
|
376
|
+
version: string;
|
|
377
|
+
id: string;
|
|
378
|
+
slug: string;
|
|
379
|
+
url: string;
|
|
380
|
+
chain_id?: number | undefined;
|
|
381
|
+
kms_contract_address?: string | undefined;
|
|
382
|
+
gateway_app_id?: string | undefined;
|
|
383
|
+
}>>;
|
|
384
|
+
contract_address: z.ZodNullable<z.ZodString>;
|
|
385
|
+
deployer_address: z.ZodNullable<z.ZodString>;
|
|
386
|
+
scheduled_delete_at: z.ZodNullable<z.ZodString>;
|
|
387
|
+
public_urls: z.ZodArray<z.ZodObject<{
|
|
388
|
+
app: z.ZodString;
|
|
389
|
+
instance: z.ZodString;
|
|
390
|
+
}, "strip", z.ZodTypeAny, {
|
|
391
|
+
app: string;
|
|
392
|
+
instance: string;
|
|
393
|
+
}, {
|
|
394
|
+
app: string;
|
|
395
|
+
instance: string;
|
|
396
|
+
}>, "many">;
|
|
397
|
+
gateway_domain: z.ZodNullable<z.ZodString>;
|
|
398
|
+
}, "strip", z.ZodTypeAny, {
|
|
399
|
+
status: string;
|
|
400
|
+
name: string;
|
|
401
|
+
id: number;
|
|
402
|
+
teepod_id: number | null;
|
|
403
|
+
listed: boolean;
|
|
404
|
+
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
|
+
instance_id: string | null;
|
|
417
|
+
base_image: string;
|
|
418
|
+
encrypted_env_pubkey: string | null;
|
|
419
|
+
deployer_address: string | null;
|
|
420
|
+
contract_address: string | null;
|
|
421
|
+
kms_info: {
|
|
422
|
+
version: string;
|
|
423
|
+
id: string;
|
|
424
|
+
slug: string;
|
|
425
|
+
url: string;
|
|
426
|
+
chain_id?: number | undefined;
|
|
427
|
+
kms_contract_address?: string | undefined;
|
|
428
|
+
gateway_app_id?: string | undefined;
|
|
429
|
+
} | null;
|
|
430
|
+
in_progress: boolean;
|
|
431
|
+
dapp_dashboard_url: string | null;
|
|
432
|
+
syslog_endpoint: string | null;
|
|
433
|
+
project_id: string | null;
|
|
434
|
+
project_type: string | null;
|
|
435
|
+
gateway_domain: string | null;
|
|
436
|
+
public_urls: {
|
|
437
|
+
app: string;
|
|
438
|
+
instance: string;
|
|
439
|
+
}[];
|
|
440
|
+
scheduled_delete_at: string | null;
|
|
441
|
+
}, {
|
|
442
|
+
status: string;
|
|
443
|
+
name: string;
|
|
444
|
+
id: number;
|
|
445
|
+
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
|
+
teepod: {
|
|
454
|
+
name: string;
|
|
455
|
+
id: number;
|
|
456
|
+
region_identifier?: string | undefined;
|
|
457
|
+
};
|
|
458
|
+
vm_uuid: string | null;
|
|
459
|
+
instance_id: string | null;
|
|
460
|
+
base_image: string;
|
|
461
|
+
encrypted_env_pubkey: string | null;
|
|
462
|
+
deployer_address: string | null;
|
|
463
|
+
contract_address: string | null;
|
|
464
|
+
kms_info: {
|
|
465
|
+
version: string;
|
|
466
|
+
id: string;
|
|
467
|
+
slug: string;
|
|
468
|
+
url: string;
|
|
469
|
+
chain_id?: number | undefined;
|
|
470
|
+
kms_contract_address?: string | undefined;
|
|
471
|
+
gateway_app_id?: string | undefined;
|
|
472
|
+
} | null;
|
|
473
|
+
in_progress: boolean;
|
|
474
|
+
dapp_dashboard_url: string | null;
|
|
475
|
+
syslog_endpoint: string | null;
|
|
476
|
+
project_id: string | null;
|
|
477
|
+
project_type: string | null;
|
|
478
|
+
gateway_domain: string | null;
|
|
479
|
+
public_urls: {
|
|
480
|
+
app: string;
|
|
481
|
+
instance: string;
|
|
482
|
+
}[];
|
|
483
|
+
scheduled_delete_at: string | null;
|
|
484
|
+
}>;
|
|
485
|
+
export type CvmLegacyDetail = z.infer<typeof CvmLegacyDetailSchema>;
|
|
325
486
|
//# sourceMappingURL=cvm_info.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cvm_info.d.ts","sourceRoot":"","sources":["../../src/types/cvm_info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcvB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;
|
|
1
|
+
{"version":3,"file":"cvm_info.d.ts","sourceRoot":"","sources":["../../src/types/cvm_info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcvB,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;EAIxB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAGH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBd,CAAC;AAEb,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAGpD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phala/cloud",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "TypeScript SDK for Phala Cloud API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "Leechael Yim",
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@phala/dstack-sdk": "0.5.
|
|
32
|
+
"@phala/dstack-sdk": "0.5.4-beta.6",
|
|
33
33
|
"ofetch": "^1.3.3",
|
|
34
34
|
"viem": "^2.7.0",
|
|
35
35
|
"zod": "^3.22.4"
|