@phala/cloud 0.0.1 → 0.0.3
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 +63 -0
- package/dist/actions/add_compose_hash.d.ts.map +1 -0
- package/dist/actions/commit_cvm_compose_file_update.d.ts +143 -0
- package/dist/actions/commit_cvm_compose_file_update.d.ts.map +1 -0
- package/dist/actions/commit_cvm_provision.d.ts +209 -0
- package/dist/actions/commit_cvm_provision.d.ts.map +1 -0
- package/dist/actions/deploy_app_auth.d.ts +164 -0
- package/dist/actions/deploy_app_auth.d.ts.map +1 -0
- package/dist/actions/get_app_env_encrypt_pubkey.d.ts +30 -0
- package/dist/actions/get_app_env_encrypt_pubkey.d.ts.map +1 -0
- package/dist/actions/get_available_nodes.d.ts +572 -0
- package/dist/actions/get_available_nodes.d.ts.map +1 -0
- package/dist/actions/get_current_user.d.ts +92 -0
- package/dist/actions/get_current_user.d.ts.map +1 -0
- package/dist/actions/get_cvm_compose_file.d.ts +190 -0
- package/dist/actions/get_cvm_compose_file.d.ts.map +1 -0
- package/dist/actions/get_cvm_info.d.ts +73 -0
- package/dist/actions/get_cvm_info.d.ts.map +1 -0
- package/dist/actions/get_cvm_list.d.ts +392 -0
- package/dist/actions/get_cvm_list.d.ts.map +1 -0
- package/dist/actions/get_kms_info.d.ts +34 -0
- package/dist/actions/get_kms_info.d.ts.map +1 -0
- package/dist/actions/get_kms_list.d.ts +82 -0
- package/dist/actions/get_kms_list.d.ts.map +1 -0
- package/dist/actions/index.d.ts +15 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/provision_cvm.d.ts +228 -0
- package/dist/actions/provision_cvm.d.ts.map +1 -0
- package/dist/actions/provision_cvm_compose_file_update.d.ts +313 -0
- package/dist/actions/provision_cvm_compose_file_update.d.ts.map +1 -0
- package/dist/client.d.ts +80 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/index.d.ts +9 -2978
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +91 -20
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +89 -18
- package/dist/index.mjs.map +1 -0
- package/dist/parse_dotenv.d.ts +14 -0
- package/dist/parse_dotenv.d.ts.map +1 -0
- package/dist/types/client.d.ts +126 -0
- package/dist/types/client.d.ts.map +1 -0
- package/dist/types/common.d.ts +17 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/types/cvm_info.d.ts +486 -0
- package/dist/types/cvm_info.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/kms_info.d.ts +28 -0
- package/dist/types/kms_info.d.ts.map +1 -0
- package/dist/utils/as-hex.d.ts +17 -0
- package/dist/utils/as-hex.d.ts.map +1 -0
- package/dist/utils/client-factories.d.ts +44 -0
- package/dist/utils/client-factories.d.ts.map +1 -0
- package/dist/utils/get_compose_hash.d.ts +15 -0
- package/dist/utils/get_compose_hash.d.ts.map +1 -0
- package/dist/utils/get_error_message.d.ts +3 -0
- package/dist/utils/get_error_message.d.ts.map +1 -0
- package/dist/utils/index.d.ts +9 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/network.d.ts +101 -0
- package/dist/utils/network.d.ts.map +1 -0
- package/dist/utils/transaction.d.ts +81 -0
- package/dist/utils/transaction.d.ts.map +1 -0
- package/dist/utils/validate-parameters.d.ts +20 -0
- package/dist/utils/validate-parameters.d.ts.map +1 -0
- package/package.json +10 -4
- package/dist/index.d.mts +0 -2978
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type Client, type SafeResult } from "../client";
|
|
3
|
+
import { ActionParameters, ActionReturnType } from "../types/common";
|
|
4
|
+
/**
|
|
5
|
+
* Get CVM compose file configuration
|
|
6
|
+
*
|
|
7
|
+
* Retrieves the current Docker Compose file configuration and metadata for a specified CVM.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import { createClient, getCvmComposeFile } from '@phala/cloud'
|
|
12
|
+
*
|
|
13
|
+
* const client = createClient({ apiKey: 'your-api-key' })
|
|
14
|
+
* const composeFile = await getCvmComposeFile(client, { id: 'cvm-123' })
|
|
15
|
+
* // Output: { compose_content: '...', version: '...', last_modified: '...' }
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* ## Returns
|
|
19
|
+
*
|
|
20
|
+
* `GetCvmComposeFileResult | unknown`
|
|
21
|
+
*
|
|
22
|
+
* The CVM compose file configuration including compose_content and metadata. Return type depends on schema parameter.
|
|
23
|
+
*
|
|
24
|
+
* ## Parameters
|
|
25
|
+
*
|
|
26
|
+
* ### request (required)
|
|
27
|
+
* - **Type:** `GetCvmComposeFileRequest`
|
|
28
|
+
*
|
|
29
|
+
* Request parameters containing the CVM identifier. Can be one of:
|
|
30
|
+
* - id: The CVM ID
|
|
31
|
+
* - uuid: The CVM UUID
|
|
32
|
+
* - appId: The App ID (40 chars)
|
|
33
|
+
* - instanceId: The Instance ID (40 chars)
|
|
34
|
+
*
|
|
35
|
+
* ### parameters (optional)
|
|
36
|
+
* - **Type:** `GetCvmComposeFileParameters`
|
|
37
|
+
*
|
|
38
|
+
* Optional behavior parameters for schema validation.
|
|
39
|
+
*
|
|
40
|
+
* ```typescript
|
|
41
|
+
* // Use default schema
|
|
42
|
+
* const result = await getCvmComposeFile(client, { id: 'cvm-123' })
|
|
43
|
+
*
|
|
44
|
+
* // Return raw data without validation
|
|
45
|
+
* const raw = await getCvmComposeFile(client, { id: 'cvm-123' }, { schema: false })
|
|
46
|
+
*
|
|
47
|
+
* // Use custom schema
|
|
48
|
+
* const customSchema = z.object({ compose_content: z.string() })
|
|
49
|
+
* const custom = await getCvmComposeFile(client, { id: 'cvm-123' }, { schema: customSchema })
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ## Safe Version
|
|
53
|
+
*
|
|
54
|
+
* Use `safeGetCvmComposeFile` for error handling without exceptions:
|
|
55
|
+
*
|
|
56
|
+
* ```typescript
|
|
57
|
+
* import { safeGetCvmComposeFile } from '@phala/cloud'
|
|
58
|
+
*
|
|
59
|
+
* const result = await safeGetCvmComposeFile(client, { id: 'cvm-123' })
|
|
60
|
+
* if (result.success) {
|
|
61
|
+
* console.log(result.data.compose_content)
|
|
62
|
+
* } else {
|
|
63
|
+
* if ("isRequestError" in result.error) {
|
|
64
|
+
* console.error(`HTTP ${result.error.status}: ${result.error.message}`)
|
|
65
|
+
* } else {
|
|
66
|
+
* console.error(`Validation error: ${result.error.issues}`)
|
|
67
|
+
* }
|
|
68
|
+
* }
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
export declare const GetCvmComposeFileResultSchema: z.ZodObject<{
|
|
72
|
+
allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
73
|
+
docker_compose_file: z.ZodString;
|
|
74
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
75
|
+
name: z.ZodOptional<z.ZodString>;
|
|
76
|
+
manifest_version: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
kms_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
+
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
82
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
83
|
+
allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
+
docker_compose_file: z.ZodString;
|
|
85
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
86
|
+
name: z.ZodOptional<z.ZodString>;
|
|
87
|
+
manifest_version: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
kms_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
94
|
+
allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
95
|
+
docker_compose_file: z.ZodString;
|
|
96
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
97
|
+
name: z.ZodOptional<z.ZodString>;
|
|
98
|
+
manifest_version: z.ZodOptional<z.ZodNumber>;
|
|
99
|
+
kms_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
105
|
+
export declare const CvmComposeFileSchema: z.ZodObject<{
|
|
106
|
+
allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
107
|
+
docker_compose_file: z.ZodString;
|
|
108
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
109
|
+
name: z.ZodOptional<z.ZodString>;
|
|
110
|
+
manifest_version: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
kms_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
116
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
117
|
+
allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
118
|
+
docker_compose_file: z.ZodString;
|
|
119
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
120
|
+
name: z.ZodOptional<z.ZodString>;
|
|
121
|
+
manifest_version: z.ZodOptional<z.ZodNumber>;
|
|
122
|
+
kms_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
128
|
+
allowed_envs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
129
|
+
docker_compose_file: z.ZodString;
|
|
130
|
+
features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
131
|
+
name: z.ZodOptional<z.ZodString>;
|
|
132
|
+
manifest_version: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
kms_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
+
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
+
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
139
|
+
export type CvmComposeFile = z.infer<typeof CvmComposeFileSchema>;
|
|
140
|
+
export type GetCvmComposeFileResult = z.infer<typeof GetCvmComposeFileResultSchema>;
|
|
141
|
+
export declare const GetCvmComposeFileRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
142
|
+
id: z.ZodOptional<z.ZodString>;
|
|
143
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
144
|
+
app_id: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
145
|
+
instance_id: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
id?: string | undefined;
|
|
148
|
+
app_id?: string | undefined;
|
|
149
|
+
instance_id?: string | undefined;
|
|
150
|
+
uuid?: string | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
id?: string | undefined;
|
|
153
|
+
app_id?: string | undefined;
|
|
154
|
+
instance_id?: string | undefined;
|
|
155
|
+
uuid?: string | undefined;
|
|
156
|
+
}>, {
|
|
157
|
+
id?: string | undefined;
|
|
158
|
+
app_id?: string | undefined;
|
|
159
|
+
instance_id?: string | undefined;
|
|
160
|
+
uuid?: string | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
id?: string | undefined;
|
|
163
|
+
app_id?: string | undefined;
|
|
164
|
+
instance_id?: string | undefined;
|
|
165
|
+
uuid?: string | undefined;
|
|
166
|
+
}>, {
|
|
167
|
+
cvmId: string | undefined;
|
|
168
|
+
_raw: {
|
|
169
|
+
id?: string | undefined;
|
|
170
|
+
app_id?: string | undefined;
|
|
171
|
+
instance_id?: string | undefined;
|
|
172
|
+
uuid?: string | undefined;
|
|
173
|
+
};
|
|
174
|
+
}, {
|
|
175
|
+
id?: string | undefined;
|
|
176
|
+
app_id?: string | undefined;
|
|
177
|
+
instance_id?: string | undefined;
|
|
178
|
+
uuid?: string | undefined;
|
|
179
|
+
}>;
|
|
180
|
+
export type GetCvmComposeFileRequest = {
|
|
181
|
+
id?: string;
|
|
182
|
+
uuid?: string;
|
|
183
|
+
app_id?: string;
|
|
184
|
+
instance_id?: string;
|
|
185
|
+
};
|
|
186
|
+
export type GetCvmComposeFileParameters<T = undefined> = ActionParameters<T>;
|
|
187
|
+
export type GetCvmComposeFileReturnType<T = undefined> = ActionReturnType<GetCvmComposeFileResult, T>;
|
|
188
|
+
export declare function getCvmComposeFile<T extends z.ZodSchema | false | undefined = undefined>(client: Client, request: GetCvmComposeFileRequest, parameters?: GetCvmComposeFileParameters<T>): Promise<GetCvmComposeFileReturnType<T>>;
|
|
189
|
+
export declare function safeGetCvmComposeFile<T extends z.ZodSchema | false | undefined = undefined>(client: Client, request: GetCvmComposeFileRequest, parameters?: GetCvmComposeFileParameters<T>): Promise<SafeResult<GetCvmComposeFileReturnType<T>>>;
|
|
190
|
+
//# sourceMappingURL=get_cvm_compose_file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_cvm_compose_file.d.ts","sourceRoot":"","sources":["../../src/actions/get_cvm_compose_file.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;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAa1B,CAAC;AAGjB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAgC,CAAC;AAClE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BtC,CAAC;AAEN,MAAM,MAAM,wBAAwB,GAAG;IACrC,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,2BAA2B,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAAC;AAE7E,MAAM,MAAM,2BAA2B,CAAC,CAAC,GAAG,SAAS,IAAI,gBAAgB,CACvE,uBAAuB,EACvB,CAAC,CACF,CAAC;AAEF,wBAAsB,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAC3F,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,wBAAwB,EACjC,UAAU,CAAC,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAC1C,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAWzC;AAED,wBAAsB,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EAC/F,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,wBAAwB,EACjC,UAAU,CAAC,EAAE,2BAA2B,CAAC,CAAC,CAAC,GAC1C,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,CAAC,CAiBrD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type Client, type SafeResult } from "../client";
|
|
3
|
+
import { CvmLegacyDetailSchema } from "../types/cvm_info";
|
|
4
|
+
import { ActionParameters, ActionReturnType } from "../types/common";
|
|
5
|
+
export { CvmLegacyDetailSchema };
|
|
6
|
+
export type GetCvmInfoResponse = z.infer<typeof CvmLegacyDetailSchema>;
|
|
7
|
+
export declare const GetCvmInfoRequestSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
8
|
+
id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
10
|
+
app_id: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
11
|
+
instance_id: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
app_id?: string | undefined;
|
|
15
|
+
instance_id?: string | undefined;
|
|
16
|
+
uuid?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
app_id?: string | undefined;
|
|
20
|
+
instance_id?: string | undefined;
|
|
21
|
+
uuid?: string | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
app_id?: string | undefined;
|
|
25
|
+
instance_id?: string | undefined;
|
|
26
|
+
uuid?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
app_id?: string | undefined;
|
|
30
|
+
instance_id?: string | undefined;
|
|
31
|
+
uuid?: string | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
cvmId: string | undefined;
|
|
34
|
+
_raw: {
|
|
35
|
+
id?: string | undefined;
|
|
36
|
+
app_id?: string | undefined;
|
|
37
|
+
instance_id?: string | undefined;
|
|
38
|
+
uuid?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
app_id?: string | undefined;
|
|
43
|
+
instance_id?: string | undefined;
|
|
44
|
+
uuid?: string | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
export type GetCvmInfoRequest = {
|
|
47
|
+
id?: string;
|
|
48
|
+
uuid?: string;
|
|
49
|
+
app_id?: string;
|
|
50
|
+
instance_id?: string;
|
|
51
|
+
};
|
|
52
|
+
export type GetCvmInfoParameters<T = undefined> = ActionParameters<T>;
|
|
53
|
+
export type GetCvmInfoReturnType<T = undefined> = ActionReturnType<GetCvmInfoResponse, T>;
|
|
54
|
+
/**
|
|
55
|
+
* Get information about a specific CVM
|
|
56
|
+
*
|
|
57
|
+
* @param client - The API client
|
|
58
|
+
* @param request - Request parameters
|
|
59
|
+
* @param request.cvmId - ID of the CVM to get information for
|
|
60
|
+
* @param parameters - Optional behavior parameters
|
|
61
|
+
* @returns CVM information
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```typescript
|
|
65
|
+
* const info = await getCvmInfo(client, { cvmId: "cvm-123" })
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
export declare function getCvmInfo<T extends z.ZodSchema | false | undefined = undefined>(client: Client, request: GetCvmInfoRequest, parameters?: GetCvmInfoParameters<T>): Promise<GetCvmInfoReturnType<T>>;
|
|
69
|
+
/**
|
|
70
|
+
* Safe version of getCvmInfo that returns a Result type instead of throwing
|
|
71
|
+
*/
|
|
72
|
+
export declare function safeGetCvmInfo<T extends z.ZodSchema | false | undefined = undefined>(client: Client, request: GetCvmInfoRequest, parameters?: GetCvmInfoParameters<T>): Promise<SafeResult<GetCvmInfoReturnType<T>>>;
|
|
73
|
+
//# sourceMappingURL=get_cvm_info.d.ts.map
|
|
@@ -0,0 +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;AAEvE,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"}
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type Client, type SafeResult } from "../client";
|
|
3
|
+
import { ActionParameters, ActionReturnType } from "../types/common";
|
|
4
|
+
export declare const GetCvmListRequestSchema: z.ZodObject<{
|
|
5
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
node_id: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
node_id?: number | undefined;
|
|
10
|
+
page?: number | undefined;
|
|
11
|
+
page_size?: number | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
node_id?: number | undefined;
|
|
14
|
+
page?: number | undefined;
|
|
15
|
+
page_size?: number | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const GetCvmListSchema: z.ZodObject<{
|
|
18
|
+
items: z.ZodArray<z.ZodObject<{
|
|
19
|
+
hosted: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
status: z.ZodString;
|
|
23
|
+
uptime: z.ZodString;
|
|
24
|
+
app_url: z.ZodNullable<z.ZodString>;
|
|
25
|
+
app_id: z.ZodString;
|
|
26
|
+
instance_id: z.ZodNullable<z.ZodString>;
|
|
27
|
+
configuration: z.ZodOptional<z.ZodAny>;
|
|
28
|
+
exited_at: z.ZodNullable<z.ZodString>;
|
|
29
|
+
boot_progress: z.ZodNullable<z.ZodString>;
|
|
30
|
+
boot_error: z.ZodNullable<z.ZodString>;
|
|
31
|
+
shutdown_progress: z.ZodNullable<z.ZodString>;
|
|
32
|
+
image_version: z.ZodNullable<z.ZodString>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
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
|
+
status: string;
|
|
49
|
+
name: string;
|
|
50
|
+
id: string;
|
|
51
|
+
app_id: string;
|
|
52
|
+
instance_id: string | null;
|
|
53
|
+
app_url: string | null;
|
|
54
|
+
uptime: string;
|
|
55
|
+
exited_at: string | null;
|
|
56
|
+
boot_progress: string | null;
|
|
57
|
+
boot_error: string | null;
|
|
58
|
+
shutdown_progress: string | null;
|
|
59
|
+
image_version: string | null;
|
|
60
|
+
configuration?: any;
|
|
61
|
+
}>>;
|
|
62
|
+
name: z.ZodOptional<z.ZodString>;
|
|
63
|
+
managed_user: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
64
|
+
id: z.ZodNumber;
|
|
65
|
+
username: z.ZodString;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
id: number;
|
|
68
|
+
username: string;
|
|
69
|
+
}, {
|
|
70
|
+
id: number;
|
|
71
|
+
username: string;
|
|
72
|
+
}>>>>;
|
|
73
|
+
node: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
74
|
+
id: z.ZodNumber;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
region_identifier: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
name: string;
|
|
79
|
+
id: number;
|
|
80
|
+
region_identifier?: string | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
name: string;
|
|
83
|
+
id: number;
|
|
84
|
+
region_identifier?: string | undefined;
|
|
85
|
+
}>>>>;
|
|
86
|
+
listed: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
87
|
+
status: z.ZodOptional<z.ZodString>;
|
|
88
|
+
in_progress: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
89
|
+
dapp_dashboard_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
syslog_endpoint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
allow_upgrade: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
92
|
+
project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
|
+
project_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
billing_period: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
kms_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
slug: z.ZodString;
|
|
98
|
+
url: z.ZodString;
|
|
99
|
+
version: z.ZodString;
|
|
100
|
+
chain_id: z.ZodOptional<z.ZodNumber>;
|
|
101
|
+
kms_contract_address: z.ZodOptional<z.ZodString>;
|
|
102
|
+
gateway_app_id: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
version: string;
|
|
105
|
+
id: string;
|
|
106
|
+
slug: string;
|
|
107
|
+
url: string;
|
|
108
|
+
chain_id?: number | undefined;
|
|
109
|
+
kms_contract_address?: string | undefined;
|
|
110
|
+
gateway_app_id?: string | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
version: string;
|
|
113
|
+
id: string;
|
|
114
|
+
slug: string;
|
|
115
|
+
url: string;
|
|
116
|
+
chain_id?: number | undefined;
|
|
117
|
+
kms_contract_address?: string | undefined;
|
|
118
|
+
gateway_app_id?: string | undefined;
|
|
119
|
+
}>>>;
|
|
120
|
+
vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
121
|
+
memory: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
122
|
+
disk_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
123
|
+
gateway_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
public_urls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
|
+
app: z.ZodString;
|
|
126
|
+
instance: z.ZodString;
|
|
127
|
+
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
app: string;
|
|
129
|
+
instance: string;
|
|
130
|
+
}, {
|
|
131
|
+
app: string;
|
|
132
|
+
instance: string;
|
|
133
|
+
}>, "many">>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
status?: string | undefined;
|
|
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
|
+
hosted?: {
|
|
151
|
+
status: string;
|
|
152
|
+
name: string;
|
|
153
|
+
id: string;
|
|
154
|
+
app_id: string;
|
|
155
|
+
instance_id: string | null;
|
|
156
|
+
app_url: string | null;
|
|
157
|
+
uptime: string;
|
|
158
|
+
exited_at: string | null;
|
|
159
|
+
boot_progress: string | null;
|
|
160
|
+
boot_error: string | null;
|
|
161
|
+
shutdown_progress: string | null;
|
|
162
|
+
image_version: string | null;
|
|
163
|
+
configuration?: any;
|
|
164
|
+
} | undefined;
|
|
165
|
+
managed_user?: {
|
|
166
|
+
id: number;
|
|
167
|
+
username: string;
|
|
168
|
+
} | null | undefined;
|
|
169
|
+
node?: {
|
|
170
|
+
name: string;
|
|
171
|
+
id: number;
|
|
172
|
+
region_identifier?: string | undefined;
|
|
173
|
+
} | null | undefined;
|
|
174
|
+
in_progress?: boolean | undefined;
|
|
175
|
+
dapp_dashboard_url?: string | null | undefined;
|
|
176
|
+
syslog_endpoint?: string | null | undefined;
|
|
177
|
+
allow_upgrade?: boolean | undefined;
|
|
178
|
+
project_id?: string | null | undefined;
|
|
179
|
+
project_type?: string | null | undefined;
|
|
180
|
+
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
|
+
kms_info?: {
|
|
194
|
+
version: string;
|
|
195
|
+
id: string;
|
|
196
|
+
slug: string;
|
|
197
|
+
url: string;
|
|
198
|
+
chain_id?: number | undefined;
|
|
199
|
+
kms_contract_address?: string | undefined;
|
|
200
|
+
gateway_app_id?: string | undefined;
|
|
201
|
+
} | null | undefined;
|
|
202
|
+
hosted?: {
|
|
203
|
+
status: string;
|
|
204
|
+
name: string;
|
|
205
|
+
id: string;
|
|
206
|
+
app_id: string;
|
|
207
|
+
instance_id: string | null;
|
|
208
|
+
app_url: string | null;
|
|
209
|
+
uptime: string;
|
|
210
|
+
exited_at: string | null;
|
|
211
|
+
boot_progress: string | null;
|
|
212
|
+
boot_error: string | null;
|
|
213
|
+
shutdown_progress: string | null;
|
|
214
|
+
image_version: string | null;
|
|
215
|
+
configuration?: any;
|
|
216
|
+
} | undefined;
|
|
217
|
+
managed_user?: {
|
|
218
|
+
id: number;
|
|
219
|
+
username: string;
|
|
220
|
+
} | null | undefined;
|
|
221
|
+
node?: {
|
|
222
|
+
name: string;
|
|
223
|
+
id: number;
|
|
224
|
+
region_identifier?: string | undefined;
|
|
225
|
+
} | null | undefined;
|
|
226
|
+
in_progress?: boolean | undefined;
|
|
227
|
+
dapp_dashboard_url?: string | null | undefined;
|
|
228
|
+
syslog_endpoint?: string | null | undefined;
|
|
229
|
+
allow_upgrade?: boolean | undefined;
|
|
230
|
+
project_id?: string | null | undefined;
|
|
231
|
+
project_type?: string | null | undefined;
|
|
232
|
+
billing_period?: string | null | undefined;
|
|
233
|
+
gateway_domain?: string | null | undefined;
|
|
234
|
+
public_urls?: {
|
|
235
|
+
app: string;
|
|
236
|
+
instance: string;
|
|
237
|
+
}[] | undefined;
|
|
238
|
+
}>, "many">;
|
|
239
|
+
total: z.ZodNumber;
|
|
240
|
+
page: z.ZodNumber;
|
|
241
|
+
page_size: z.ZodNumber;
|
|
242
|
+
pages: z.ZodNumber;
|
|
243
|
+
}, "strict", z.ZodTypeAny, {
|
|
244
|
+
page: number;
|
|
245
|
+
page_size: number;
|
|
246
|
+
items: {
|
|
247
|
+
status?: string | undefined;
|
|
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
|
+
hosted?: {
|
|
263
|
+
status: string;
|
|
264
|
+
name: string;
|
|
265
|
+
id: string;
|
|
266
|
+
app_id: string;
|
|
267
|
+
instance_id: string | null;
|
|
268
|
+
app_url: string | null;
|
|
269
|
+
uptime: string;
|
|
270
|
+
exited_at: string | null;
|
|
271
|
+
boot_progress: string | null;
|
|
272
|
+
boot_error: string | null;
|
|
273
|
+
shutdown_progress: string | null;
|
|
274
|
+
image_version: string | null;
|
|
275
|
+
configuration?: any;
|
|
276
|
+
} | undefined;
|
|
277
|
+
managed_user?: {
|
|
278
|
+
id: number;
|
|
279
|
+
username: string;
|
|
280
|
+
} | null | undefined;
|
|
281
|
+
node?: {
|
|
282
|
+
name: string;
|
|
283
|
+
id: number;
|
|
284
|
+
region_identifier?: string | undefined;
|
|
285
|
+
} | null | undefined;
|
|
286
|
+
in_progress?: boolean | undefined;
|
|
287
|
+
dapp_dashboard_url?: string | null | undefined;
|
|
288
|
+
syslog_endpoint?: string | null | undefined;
|
|
289
|
+
allow_upgrade?: boolean | undefined;
|
|
290
|
+
project_id?: string | null | undefined;
|
|
291
|
+
project_type?: string | null | undefined;
|
|
292
|
+
billing_period?: string | null | undefined;
|
|
293
|
+
gateway_domain?: string | null | undefined;
|
|
294
|
+
public_urls?: {
|
|
295
|
+
app: string;
|
|
296
|
+
instance: string;
|
|
297
|
+
}[] | undefined;
|
|
298
|
+
}[];
|
|
299
|
+
total: number;
|
|
300
|
+
pages: number;
|
|
301
|
+
}, {
|
|
302
|
+
page: number;
|
|
303
|
+
page_size: number;
|
|
304
|
+
items: {
|
|
305
|
+
status?: string | undefined;
|
|
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
|
+
hosted?: {
|
|
321
|
+
status: string;
|
|
322
|
+
name: string;
|
|
323
|
+
id: string;
|
|
324
|
+
app_id: string;
|
|
325
|
+
instance_id: string | null;
|
|
326
|
+
app_url: string | null;
|
|
327
|
+
uptime: string;
|
|
328
|
+
exited_at: string | null;
|
|
329
|
+
boot_progress: string | null;
|
|
330
|
+
boot_error: string | null;
|
|
331
|
+
shutdown_progress: string | null;
|
|
332
|
+
image_version: string | null;
|
|
333
|
+
configuration?: any;
|
|
334
|
+
} | undefined;
|
|
335
|
+
managed_user?: {
|
|
336
|
+
id: number;
|
|
337
|
+
username: string;
|
|
338
|
+
} | null | undefined;
|
|
339
|
+
node?: {
|
|
340
|
+
name: string;
|
|
341
|
+
id: number;
|
|
342
|
+
region_identifier?: string | undefined;
|
|
343
|
+
} | null | undefined;
|
|
344
|
+
in_progress?: boolean | undefined;
|
|
345
|
+
dapp_dashboard_url?: string | null | undefined;
|
|
346
|
+
syslog_endpoint?: string | null | undefined;
|
|
347
|
+
allow_upgrade?: boolean | undefined;
|
|
348
|
+
project_id?: string | null | undefined;
|
|
349
|
+
project_type?: string | null | undefined;
|
|
350
|
+
billing_period?: string | null | undefined;
|
|
351
|
+
gateway_domain?: string | null | undefined;
|
|
352
|
+
public_urls?: {
|
|
353
|
+
app: string;
|
|
354
|
+
instance: string;
|
|
355
|
+
}[] | undefined;
|
|
356
|
+
}[];
|
|
357
|
+
total: number;
|
|
358
|
+
pages: number;
|
|
359
|
+
}>;
|
|
360
|
+
export type GetCvmListRequest = z.infer<typeof GetCvmListRequestSchema>;
|
|
361
|
+
export type GetCvmListResponse = z.infer<typeof GetCvmListSchema>;
|
|
362
|
+
export type GetCvmListParameters<T = undefined> = ActionParameters<T>;
|
|
363
|
+
export type GetCvmListReturnType<T = undefined> = ActionReturnType<GetCvmListResponse, T>;
|
|
364
|
+
/**
|
|
365
|
+
* Get a paginated list of CVMs
|
|
366
|
+
*
|
|
367
|
+
* @param client - The API client
|
|
368
|
+
* @param request - Optional request parameters for pagination and filtering
|
|
369
|
+
* @param request.page - Page number (1-based)
|
|
370
|
+
* @param request.page_size - Number of items per page
|
|
371
|
+
* @param request.node_id - Filter by node ID
|
|
372
|
+
* @param parameters - Optional behavior parameters
|
|
373
|
+
* @returns Paginated list of CVMs
|
|
374
|
+
*
|
|
375
|
+
* @example
|
|
376
|
+
* ```typescript
|
|
377
|
+
* // Get first page with default size
|
|
378
|
+
* const list = await getCvmList(client, { page: 1 })
|
|
379
|
+
*
|
|
380
|
+
* // Get with custom page size
|
|
381
|
+
* const list = await getCvmList(client, { page: 1, page_size: 20 })
|
|
382
|
+
*
|
|
383
|
+
* // Get with custom schema
|
|
384
|
+
* const list = await getCvmList(client, { page: 1 }, { schema: customSchema })
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
export declare function getCvmList<T extends z.ZodSchema | false | undefined = undefined>(client: Client, request?: GetCvmListRequest, parameters?: GetCvmListParameters<T>): Promise<GetCvmListReturnType<T>>;
|
|
388
|
+
/**
|
|
389
|
+
* Safe version of getCvmList that returns a Result type instead of throwing
|
|
390
|
+
*/
|
|
391
|
+
export declare function safeGetCvmList<T extends z.ZodSchema | false | undefined = undefined>(client: Client, request?: GetCvmListRequest, parameters?: GetCvmListParameters<T>): Promise<SafeResult<GetCvmListReturnType<T>>>;
|
|
392
|
+
//# sourceMappingURL=get_cvm_list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get_cvm_list.d.ts","sourceRoot":"","sources":["../../src/actions/get_cvm_list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAGrE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAMzB,CAAC;AAEZ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQlB,CAAC;AAEZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAElE,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;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EACpF,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,iBAAiB,EAC3B,UAAU,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GACnC,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAalC;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,GAAG,KAAK,GAAG,SAAS,GAAG,SAAS,EACxF,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,iBAAiB,EAC3B,UAAU,CAAC,EAAE,oBAAoB,CAAC,CAAC,CAAC,GACnC,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CA0B9C"}
|