@phala/cloud 0.2.1-beta.4 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/actions/apps/get_app_cvms.d.ts +30 -0
- package/dist/actions/apps/get_app_info.d.ts +30 -0
- package/dist/actions/apps/get_app_list.d.ts +74 -0
- package/dist/actions/apps/get_app_revision_detail.d.ts +48 -0
- package/dist/actions/apps/get_app_revisions.d.ts +42 -0
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +7 -7
- package/dist/actions/cvms/commit_cvm_provision.d.ts +31 -31
- package/dist/actions/cvms/delete_cvm.d.ts +10 -7
- package/dist/actions/cvms/get_available_os_images.d.ts +10 -7
- package/dist/actions/cvms/get_cvm_attestation.d.ts +10 -7
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +18 -15
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +14 -11
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +10 -7
- package/dist/actions/cvms/get_cvm_info.d.ts +19 -35
- package/dist/actions/cvms/get_cvm_list.d.ts +11 -537
- package/dist/actions/cvms/get_cvm_network.d.ts +10 -7
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +42 -0
- package/dist/actions/cvms/get_cvm_state.d.ts +10 -7
- package/dist/actions/cvms/get_cvm_stats.d.ts +10 -7
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +167 -0
- package/dist/actions/cvms/provision_cvm.d.ts +404 -21
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +32 -32
- package/dist/actions/cvms/restart_cvm.d.ts +17 -14
- package/dist/actions/cvms/shutdown_cvm.d.ts +18 -15
- package/dist/actions/cvms/start_cvm.d.ts +18 -15
- package/dist/actions/cvms/stop_cvm.d.ts +18 -15
- package/dist/actions/cvms/update_cvm_envs.d.ts +32 -118
- package/dist/actions/cvms/update_cvm_resources.d.ts +13 -10
- package/dist/actions/cvms/update_cvm_visibility.d.ts +33 -14
- package/dist/actions/cvms/update_docker_compose.d.ts +420 -0
- package/dist/actions/cvms/update_os_image.d.ts +9 -6
- package/dist/actions/cvms/update_prelaunch_script.d.ts +417 -0
- package/dist/actions/cvms/watch_cvm_state.d.ts +1 -1
- package/dist/actions/get_available_nodes.d.ts +6 -6
- package/dist/actions/get_current_user.d.ts +36 -89
- package/dist/actions/index.d.ts +13 -2
- package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +6 -6
- package/dist/actions/kms/get_kms_info.d.ts +6 -6
- package/dist/actions/kms/get_kms_list.d.ts +6 -6
- package/dist/actions/kms/next_app_ids.d.ts +6 -6
- package/dist/actions/list-instance-types.d.ts +16 -16
- package/dist/actions/workspaces/get_workspace.d.ts +6 -6
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +266 -0
- package/dist/actions/workspaces/get_workspace_quotas.d.ts +1169 -0
- package/dist/actions/workspaces/list_workspaces.d.ts +6 -6
- package/dist/client.d.ts +49 -9
- package/dist/create-client.d.ts +72 -36
- package/dist/credentials/current_user_v20251028.d.ts +30 -0
- package/dist/credentials/current_user_v20260121.d.ts +276 -0
- package/dist/credentials/index.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1714 -664
- package/dist/index.mjs +1629 -657
- package/dist/types/app_info_v20251028.d.ts +1266 -0
- package/dist/types/app_info_v20260121.d.ts +3293 -0
- package/dist/types/app_revision.d.ts +453 -0
- package/dist/types/client.d.ts +40 -2
- package/dist/types/cvm_id.d.ts +29 -11
- package/dist/types/cvm_info.d.ts +16 -502
- package/dist/types/cvm_info_v20251028.d.ts +988 -0
- package/dist/types/cvm_info_v20260121.d.ts +1264 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/version-mappings.d.ts +38 -0
- package/dist/utils/define-action.d.ts +15 -14
- package/dist/utils/errors.d.ts +2 -2
- package/dist/utils/hostname.d.ts +77 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -129,12 +129,12 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
129
129
|
name?: string | undefined;
|
|
130
130
|
public_sysinfo?: boolean | undefined;
|
|
131
131
|
public_logs?: boolean | undefined;
|
|
132
|
-
manifest_version?: number | undefined;
|
|
133
|
-
features?: string[] | undefined;
|
|
134
132
|
allowed_envs?: string[] | undefined;
|
|
135
133
|
pre_launch_script?: string | undefined;
|
|
136
134
|
kms_enabled?: boolean | undefined;
|
|
137
135
|
tproxy_enabled?: boolean | undefined;
|
|
136
|
+
manifest_version?: number | undefined;
|
|
137
|
+
features?: string[] | undefined;
|
|
138
138
|
env_pubkey?: string | undefined;
|
|
139
139
|
salt?: string | null | undefined;
|
|
140
140
|
} & {
|
|
@@ -151,12 +151,12 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
151
151
|
name?: string | undefined;
|
|
152
152
|
public_sysinfo?: boolean | undefined;
|
|
153
153
|
public_logs?: boolean | undefined;
|
|
154
|
-
manifest_version?: number | undefined;
|
|
155
|
-
features?: string[] | undefined;
|
|
156
154
|
allowed_envs?: string[] | undefined;
|
|
157
155
|
pre_launch_script?: string | undefined;
|
|
158
156
|
kms_enabled?: boolean | undefined;
|
|
159
157
|
tproxy_enabled?: boolean | undefined;
|
|
158
|
+
manifest_version?: number | undefined;
|
|
159
|
+
features?: string[] | undefined;
|
|
160
160
|
env_pubkey?: string | undefined;
|
|
161
161
|
salt?: string | null | undefined;
|
|
162
162
|
} & {
|
|
@@ -173,12 +173,12 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
173
173
|
name?: string | undefined;
|
|
174
174
|
public_sysinfo?: boolean | undefined;
|
|
175
175
|
public_logs?: boolean | undefined;
|
|
176
|
-
manifest_version?: number | undefined;
|
|
177
|
-
features?: string[] | undefined;
|
|
178
176
|
allowed_envs?: string[] | undefined;
|
|
179
177
|
pre_launch_script?: string | undefined;
|
|
180
178
|
kms_enabled?: boolean | undefined;
|
|
181
179
|
tproxy_enabled?: boolean | undefined;
|
|
180
|
+
manifest_version?: number | undefined;
|
|
181
|
+
features?: string[] | undefined;
|
|
182
182
|
env_pubkey?: string | undefined;
|
|
183
183
|
salt?: string | null | undefined;
|
|
184
184
|
} & {
|
|
@@ -195,12 +195,12 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
195
195
|
name?: string | undefined;
|
|
196
196
|
public_sysinfo?: boolean | undefined;
|
|
197
197
|
public_logs?: boolean | undefined;
|
|
198
|
-
manifest_version?: number | undefined;
|
|
199
|
-
features?: string[] | undefined;
|
|
200
198
|
allowed_envs?: string[] | undefined;
|
|
201
199
|
pre_launch_script?: string | undefined;
|
|
202
200
|
kms_enabled?: boolean | undefined;
|
|
203
201
|
tproxy_enabled?: boolean | undefined;
|
|
202
|
+
manifest_version?: number | undefined;
|
|
203
|
+
features?: string[] | undefined;
|
|
204
204
|
env_pubkey?: string | undefined;
|
|
205
205
|
salt?: string | null | undefined;
|
|
206
206
|
} & {
|
|
@@ -219,12 +219,12 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
219
219
|
name?: string | undefined;
|
|
220
220
|
public_sysinfo?: boolean | undefined;
|
|
221
221
|
public_logs?: boolean | undefined;
|
|
222
|
-
manifest_version?: number | undefined;
|
|
223
|
-
features?: string[] | undefined;
|
|
224
222
|
allowed_envs?: string[] | undefined;
|
|
225
223
|
pre_launch_script?: string | undefined;
|
|
226
224
|
kms_enabled?: boolean | undefined;
|
|
227
225
|
tproxy_enabled?: boolean | undefined;
|
|
226
|
+
manifest_version?: number | undefined;
|
|
227
|
+
features?: string[] | undefined;
|
|
228
228
|
env_pubkey?: string | undefined;
|
|
229
229
|
salt?: string | null | undefined;
|
|
230
230
|
};
|
|
@@ -234,12 +234,12 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
234
234
|
name?: string | undefined;
|
|
235
235
|
public_sysinfo?: boolean | undefined;
|
|
236
236
|
public_logs?: boolean | undefined;
|
|
237
|
-
manifest_version?: number | undefined;
|
|
238
|
-
features?: string[] | undefined;
|
|
239
237
|
allowed_envs?: string[] | undefined;
|
|
240
238
|
pre_launch_script?: string | undefined;
|
|
241
239
|
kms_enabled?: boolean | undefined;
|
|
242
240
|
tproxy_enabled?: boolean | undefined;
|
|
241
|
+
manifest_version?: number | undefined;
|
|
242
|
+
features?: string[] | undefined;
|
|
243
243
|
env_pubkey?: string | undefined;
|
|
244
244
|
salt?: string | null | undefined;
|
|
245
245
|
} & {
|
|
@@ -257,12 +257,12 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
257
257
|
name?: string | undefined;
|
|
258
258
|
public_sysinfo?: boolean | undefined;
|
|
259
259
|
public_logs?: boolean | undefined;
|
|
260
|
-
manifest_version?: number | undefined;
|
|
261
|
-
features?: string[] | undefined;
|
|
262
260
|
allowed_envs?: string[] | undefined;
|
|
263
261
|
pre_launch_script?: string | undefined;
|
|
264
262
|
kms_enabled?: boolean | undefined;
|
|
265
263
|
tproxy_enabled?: boolean | undefined;
|
|
264
|
+
manifest_version?: number | undefined;
|
|
265
|
+
features?: string[] | undefined;
|
|
266
266
|
env_pubkey?: string | undefined;
|
|
267
267
|
salt?: string | null | undefined;
|
|
268
268
|
} & {
|
|
@@ -557,18 +557,18 @@ export type ProvisionCvmComposeFileUpdateResult = z.infer<typeof ProvisionCvmCom
|
|
|
557
557
|
* @returns Update provision result
|
|
558
558
|
*/
|
|
559
559
|
declare const provisionCvmComposeFileUpdate: {
|
|
560
|
-
(client: Client
|
|
560
|
+
(client: Client<import("../..").ApiVersion>, params: {
|
|
561
561
|
app_compose: {
|
|
562
562
|
docker_compose_file: string;
|
|
563
563
|
name?: string | undefined;
|
|
564
564
|
public_sysinfo?: boolean | undefined;
|
|
565
565
|
public_logs?: boolean | undefined;
|
|
566
|
-
manifest_version?: number | undefined;
|
|
567
|
-
features?: string[] | undefined;
|
|
568
566
|
allowed_envs?: string[] | undefined;
|
|
569
567
|
pre_launch_script?: string | undefined;
|
|
570
568
|
kms_enabled?: boolean | undefined;
|
|
571
569
|
tproxy_enabled?: boolean | undefined;
|
|
570
|
+
manifest_version?: number | undefined;
|
|
571
|
+
features?: string[] | undefined;
|
|
572
572
|
env_pubkey?: string | undefined;
|
|
573
573
|
salt?: string | null | undefined;
|
|
574
574
|
} & {
|
|
@@ -625,18 +625,18 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
625
625
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
626
626
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
627
627
|
}, z.ZodTypeAny, "passthrough">>;
|
|
628
|
-
<T extends z.ZodTypeAny>(client: Client
|
|
628
|
+
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
|
|
629
629
|
app_compose: {
|
|
630
630
|
docker_compose_file: string;
|
|
631
631
|
name?: string | undefined;
|
|
632
632
|
public_sysinfo?: boolean | undefined;
|
|
633
633
|
public_logs?: boolean | undefined;
|
|
634
|
-
manifest_version?: number | undefined;
|
|
635
|
-
features?: string[] | undefined;
|
|
636
634
|
allowed_envs?: string[] | undefined;
|
|
637
635
|
pre_launch_script?: string | undefined;
|
|
638
636
|
kms_enabled?: boolean | undefined;
|
|
639
637
|
tproxy_enabled?: boolean | undefined;
|
|
638
|
+
manifest_version?: number | undefined;
|
|
639
|
+
features?: string[] | undefined;
|
|
640
640
|
env_pubkey?: string | undefined;
|
|
641
641
|
salt?: string | null | undefined;
|
|
642
642
|
} & {
|
|
@@ -650,18 +650,18 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
650
650
|
}, parameters: {
|
|
651
651
|
schema: T;
|
|
652
652
|
}): Promise<z.TypeOf<T>>;
|
|
653
|
-
(client: Client
|
|
653
|
+
(client: Client<import("../..").ApiVersion>, params: {
|
|
654
654
|
app_compose: {
|
|
655
655
|
docker_compose_file: string;
|
|
656
656
|
name?: string | undefined;
|
|
657
657
|
public_sysinfo?: boolean | undefined;
|
|
658
658
|
public_logs?: boolean | undefined;
|
|
659
|
-
manifest_version?: number | undefined;
|
|
660
|
-
features?: string[] | undefined;
|
|
661
659
|
allowed_envs?: string[] | undefined;
|
|
662
660
|
pre_launch_script?: string | undefined;
|
|
663
661
|
kms_enabled?: boolean | undefined;
|
|
664
662
|
tproxy_enabled?: boolean | undefined;
|
|
663
|
+
manifest_version?: number | undefined;
|
|
664
|
+
features?: string[] | undefined;
|
|
665
665
|
env_pubkey?: string | undefined;
|
|
666
666
|
salt?: string | null | undefined;
|
|
667
667
|
} & {
|
|
@@ -676,18 +676,18 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
676
676
|
schema: false;
|
|
677
677
|
}): Promise<unknown>;
|
|
678
678
|
}, safeProvisionCvmComposeFileUpdate: {
|
|
679
|
-
(client: Client
|
|
679
|
+
(client: Client<import("../..").ApiVersion>, params: {
|
|
680
680
|
app_compose: {
|
|
681
681
|
docker_compose_file: string;
|
|
682
682
|
name?: string | undefined;
|
|
683
683
|
public_sysinfo?: boolean | undefined;
|
|
684
684
|
public_logs?: boolean | undefined;
|
|
685
|
-
manifest_version?: number | undefined;
|
|
686
|
-
features?: string[] | undefined;
|
|
687
685
|
allowed_envs?: string[] | undefined;
|
|
688
686
|
pre_launch_script?: string | undefined;
|
|
689
687
|
kms_enabled?: boolean | undefined;
|
|
690
688
|
tproxy_enabled?: boolean | undefined;
|
|
689
|
+
manifest_version?: number | undefined;
|
|
690
|
+
features?: string[] | undefined;
|
|
691
691
|
env_pubkey?: string | undefined;
|
|
692
692
|
salt?: string | null | undefined;
|
|
693
693
|
} & {
|
|
@@ -744,18 +744,18 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
744
744
|
gateway_app_id: z.ZodEffects<z.ZodNullable<z.ZodString>, `0x${string}`, string | null>;
|
|
745
745
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
746
746
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
747
|
-
<T extends z.ZodTypeAny>(client: Client
|
|
747
|
+
<T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
|
|
748
748
|
app_compose: {
|
|
749
749
|
docker_compose_file: string;
|
|
750
750
|
name?: string | undefined;
|
|
751
751
|
public_sysinfo?: boolean | undefined;
|
|
752
752
|
public_logs?: boolean | undefined;
|
|
753
|
-
manifest_version?: number | undefined;
|
|
754
|
-
features?: string[] | undefined;
|
|
755
753
|
allowed_envs?: string[] | undefined;
|
|
756
754
|
pre_launch_script?: string | undefined;
|
|
757
755
|
kms_enabled?: boolean | undefined;
|
|
758
756
|
tproxy_enabled?: boolean | undefined;
|
|
757
|
+
manifest_version?: number | undefined;
|
|
758
|
+
features?: string[] | undefined;
|
|
759
759
|
env_pubkey?: string | undefined;
|
|
760
760
|
salt?: string | null | undefined;
|
|
761
761
|
} & {
|
|
@@ -769,18 +769,18 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
769
769
|
}, parameters: {
|
|
770
770
|
schema: T;
|
|
771
771
|
}): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
772
|
-
(client: Client
|
|
772
|
+
(client: Client<import("../..").ApiVersion>, params: {
|
|
773
773
|
app_compose: {
|
|
774
774
|
docker_compose_file: string;
|
|
775
775
|
name?: string | undefined;
|
|
776
776
|
public_sysinfo?: boolean | undefined;
|
|
777
777
|
public_logs?: boolean | undefined;
|
|
778
|
-
manifest_version?: number | undefined;
|
|
779
|
-
features?: string[] | undefined;
|
|
780
778
|
allowed_envs?: string[] | undefined;
|
|
781
779
|
pre_launch_script?: string | undefined;
|
|
782
780
|
kms_enabled?: boolean | undefined;
|
|
783
781
|
tproxy_enabled?: boolean | undefined;
|
|
782
|
+
manifest_version?: number | undefined;
|
|
783
|
+
features?: string[] | undefined;
|
|
784
784
|
env_pubkey?: string | undefined;
|
|
785
785
|
salt?: string | null | undefined;
|
|
786
786
|
} & {
|
|
@@ -35,15 +35,18 @@ export declare const RestartCvmRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
35
35
|
uuid: z.ZodOptional<z.ZodString>;
|
|
36
36
|
app_id: z.ZodOptional<z.ZodString>;
|
|
37
37
|
instance_id: z.ZodOptional<z.ZodString>;
|
|
38
|
+
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
38
39
|
} & {
|
|
39
40
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
40
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
name?: string | undefined;
|
|
41
43
|
id?: string | undefined;
|
|
42
44
|
app_id?: string | undefined;
|
|
43
45
|
instance_id?: string | undefined;
|
|
44
46
|
uuid?: string | undefined;
|
|
45
47
|
force?: boolean | undefined;
|
|
46
48
|
}, {
|
|
49
|
+
name?: string | undefined;
|
|
47
50
|
id?: string | undefined;
|
|
48
51
|
app_id?: string | undefined;
|
|
49
52
|
instance_id?: string | undefined;
|
|
@@ -52,20 +55,20 @@ export declare const RestartCvmRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
52
55
|
}>, any, any>;
|
|
53
56
|
export type RestartCvmRequest = z.infer<typeof RestartCvmRequestSchema>;
|
|
54
57
|
declare const restartCvm: {
|
|
55
|
-
(client: import("../..").BaseClient
|
|
58
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
|
|
56
59
|
status: string;
|
|
57
60
|
name: string;
|
|
58
61
|
id: number;
|
|
59
|
-
teepod_id: number;
|
|
60
|
-
vcpu: number;
|
|
61
|
-
created_at: string;
|
|
62
62
|
app_id: string;
|
|
63
63
|
instance_id: string | null;
|
|
64
|
+
vcpu: number;
|
|
64
65
|
memory: number;
|
|
65
66
|
disk_size: number;
|
|
67
|
+
teepod_id: number;
|
|
66
68
|
vm_uuid: string | null;
|
|
67
69
|
base_image: string | null;
|
|
68
70
|
encrypted_env_pubkey: string | null;
|
|
71
|
+
created_at: string;
|
|
69
72
|
version?: string | null | undefined;
|
|
70
73
|
app_url?: string | null | undefined;
|
|
71
74
|
teepod?: {
|
|
@@ -74,32 +77,32 @@ declare const restartCvm: {
|
|
|
74
77
|
region_identifier?: string | null | undefined;
|
|
75
78
|
} | null | undefined;
|
|
76
79
|
user_id?: number | null | undefined;
|
|
80
|
+
docker_compose_file?: string | null | undefined;
|
|
77
81
|
manifest_version?: number | null | undefined;
|
|
78
82
|
runner?: string | null | undefined;
|
|
79
|
-
docker_compose_file?: string | null | undefined;
|
|
80
83
|
features?: string[] | null | undefined;
|
|
81
84
|
}>;
|
|
82
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient
|
|
85
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
83
86
|
schema: T;
|
|
84
87
|
} | undefined): Promise<z.TypeOf<T>>;
|
|
85
|
-
(client: import("../..").BaseClient
|
|
88
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
86
89
|
schema: false;
|
|
87
90
|
} | undefined): Promise<unknown>;
|
|
88
91
|
}, safeRestartCvm: {
|
|
89
|
-
(client: import("../..").BaseClient
|
|
92
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
|
|
90
93
|
status: string;
|
|
91
94
|
name: string;
|
|
92
95
|
id: number;
|
|
93
|
-
teepod_id: number;
|
|
94
|
-
vcpu: number;
|
|
95
|
-
created_at: string;
|
|
96
96
|
app_id: string;
|
|
97
97
|
instance_id: string | null;
|
|
98
|
+
vcpu: number;
|
|
98
99
|
memory: number;
|
|
99
100
|
disk_size: number;
|
|
101
|
+
teepod_id: number;
|
|
100
102
|
vm_uuid: string | null;
|
|
101
103
|
base_image: string | null;
|
|
102
104
|
encrypted_env_pubkey: string | null;
|
|
105
|
+
created_at: string;
|
|
103
106
|
version?: string | null | undefined;
|
|
104
107
|
app_url?: string | null | undefined;
|
|
105
108
|
teepod?: {
|
|
@@ -108,15 +111,15 @@ declare const restartCvm: {
|
|
|
108
111
|
region_identifier?: string | null | undefined;
|
|
109
112
|
} | null | undefined;
|
|
110
113
|
user_id?: number | null | undefined;
|
|
114
|
+
docker_compose_file?: string | null | undefined;
|
|
111
115
|
manifest_version?: number | null | undefined;
|
|
112
116
|
runner?: string | null | undefined;
|
|
113
|
-
docker_compose_file?: string | null | undefined;
|
|
114
117
|
features?: string[] | null | undefined;
|
|
115
118
|
}>>;
|
|
116
|
-
<T extends z.ZodTypeAny>(client: import("../..").BaseClient
|
|
119
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
117
120
|
schema: T;
|
|
118
121
|
} | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
|
|
119
|
-
(client: import("../..").BaseClient
|
|
122
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any, parameters?: {
|
|
120
123
|
schema: false;
|
|
121
124
|
} | undefined): Promise<import("../..").SafeResult<unknown>>;
|
|
122
125
|
};
|
|
@@ -30,35 +30,38 @@ export declare const ShutdownCvmRequestSchema: import("zod").ZodEffects<import("
|
|
|
30
30
|
uuid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
31
|
app_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
32
|
instance_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
|
+
name: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
|
|
33
34
|
}, "strip", import("zod").ZodTypeAny, {
|
|
35
|
+
name?: string | undefined;
|
|
34
36
|
id?: string | undefined;
|
|
35
37
|
app_id?: string | undefined;
|
|
36
38
|
instance_id?: string | undefined;
|
|
37
39
|
uuid?: string | undefined;
|
|
38
40
|
}, {
|
|
41
|
+
name?: string | undefined;
|
|
39
42
|
id?: string | undefined;
|
|
40
43
|
app_id?: string | undefined;
|
|
41
44
|
instance_id?: string | undefined;
|
|
42
45
|
uuid?: string | undefined;
|
|
43
46
|
}>, any, any>, {
|
|
44
|
-
cvmId:
|
|
47
|
+
cvmId: any;
|
|
45
48
|
}, any>;
|
|
46
49
|
export type ShutdownCvmRequest = CvmIdInput;
|
|
47
50
|
declare const shutdownCvm: {
|
|
48
|
-
(client: import("../..").BaseClient
|
|
51
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
|
|
49
52
|
status: string;
|
|
50
53
|
name: string;
|
|
51
54
|
id: number;
|
|
52
|
-
teepod_id: number;
|
|
53
|
-
vcpu: number;
|
|
54
|
-
created_at: string;
|
|
55
55
|
app_id: string;
|
|
56
56
|
instance_id: string | null;
|
|
57
|
+
vcpu: number;
|
|
57
58
|
memory: number;
|
|
58
59
|
disk_size: number;
|
|
60
|
+
teepod_id: number;
|
|
59
61
|
vm_uuid: string | null;
|
|
60
62
|
base_image: string | null;
|
|
61
63
|
encrypted_env_pubkey: string | null;
|
|
64
|
+
created_at: string;
|
|
62
65
|
version?: string | null | undefined;
|
|
63
66
|
app_url?: string | null | undefined;
|
|
64
67
|
teepod?: {
|
|
@@ -67,32 +70,32 @@ declare const shutdownCvm: {
|
|
|
67
70
|
region_identifier?: string | null | undefined;
|
|
68
71
|
} | null | undefined;
|
|
69
72
|
user_id?: number | null | undefined;
|
|
73
|
+
docker_compose_file?: string | null | undefined;
|
|
70
74
|
manifest_version?: number | null | undefined;
|
|
71
75
|
runner?: string | null | undefined;
|
|
72
|
-
docker_compose_file?: string | null | undefined;
|
|
73
76
|
features?: string[] | null | undefined;
|
|
74
77
|
}>;
|
|
75
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient
|
|
78
|
+
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
76
79
|
schema: T;
|
|
77
80
|
}): Promise<import("zod").TypeOf<T>>;
|
|
78
|
-
(client: import("../..").BaseClient
|
|
81
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
79
82
|
schema: false;
|
|
80
83
|
}): Promise<unknown>;
|
|
81
84
|
}, safeShutdownCvm: {
|
|
82
|
-
(client: import("../..").BaseClient
|
|
85
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
83
86
|
status: string;
|
|
84
87
|
name: string;
|
|
85
88
|
id: number;
|
|
86
|
-
teepod_id: number;
|
|
87
|
-
vcpu: number;
|
|
88
|
-
created_at: string;
|
|
89
89
|
app_id: string;
|
|
90
90
|
instance_id: string | null;
|
|
91
|
+
vcpu: number;
|
|
91
92
|
memory: number;
|
|
92
93
|
disk_size: number;
|
|
94
|
+
teepod_id: number;
|
|
93
95
|
vm_uuid: string | null;
|
|
94
96
|
base_image: string | null;
|
|
95
97
|
encrypted_env_pubkey: string | null;
|
|
98
|
+
created_at: string;
|
|
96
99
|
version?: string | null | undefined;
|
|
97
100
|
app_url?: string | null | undefined;
|
|
98
101
|
teepod?: {
|
|
@@ -101,15 +104,15 @@ declare const shutdownCvm: {
|
|
|
101
104
|
region_identifier?: string | null | undefined;
|
|
102
105
|
} | null | undefined;
|
|
103
106
|
user_id?: number | null | undefined;
|
|
107
|
+
docker_compose_file?: string | null | undefined;
|
|
104
108
|
manifest_version?: number | null | undefined;
|
|
105
109
|
runner?: string | null | undefined;
|
|
106
|
-
docker_compose_file?: string | null | undefined;
|
|
107
110
|
features?: string[] | null | undefined;
|
|
108
111
|
}>>;
|
|
109
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient
|
|
112
|
+
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
110
113
|
schema: T;
|
|
111
114
|
}): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
|
|
112
|
-
(client: import("../..").BaseClient
|
|
115
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
113
116
|
schema: false;
|
|
114
117
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
115
118
|
};
|
|
@@ -31,35 +31,38 @@ export declare const StartCvmRequestSchema: import("zod").ZodEffects<import("zod
|
|
|
31
31
|
uuid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
32
|
app_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
33
|
instance_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
name: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
|
|
34
35
|
}, "strip", import("zod").ZodTypeAny, {
|
|
36
|
+
name?: string | undefined;
|
|
35
37
|
id?: string | undefined;
|
|
36
38
|
app_id?: string | undefined;
|
|
37
39
|
instance_id?: string | undefined;
|
|
38
40
|
uuid?: string | undefined;
|
|
39
41
|
}, {
|
|
42
|
+
name?: string | undefined;
|
|
40
43
|
id?: string | undefined;
|
|
41
44
|
app_id?: string | undefined;
|
|
42
45
|
instance_id?: string | undefined;
|
|
43
46
|
uuid?: string | undefined;
|
|
44
47
|
}>, any, any>, {
|
|
45
|
-
cvmId:
|
|
48
|
+
cvmId: any;
|
|
46
49
|
}, any>;
|
|
47
50
|
export type StartCvmRequest = CvmIdInput;
|
|
48
51
|
declare const startCvm: {
|
|
49
|
-
(client: import("../..").BaseClient
|
|
52
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
|
|
50
53
|
status: string;
|
|
51
54
|
name: string;
|
|
52
55
|
id: number;
|
|
53
|
-
teepod_id: number;
|
|
54
|
-
vcpu: number;
|
|
55
|
-
created_at: string;
|
|
56
56
|
app_id: string;
|
|
57
57
|
instance_id: string | null;
|
|
58
|
+
vcpu: number;
|
|
58
59
|
memory: number;
|
|
59
60
|
disk_size: number;
|
|
61
|
+
teepod_id: number;
|
|
60
62
|
vm_uuid: string | null;
|
|
61
63
|
base_image: string | null;
|
|
62
64
|
encrypted_env_pubkey: string | null;
|
|
65
|
+
created_at: string;
|
|
63
66
|
version?: string | null | undefined;
|
|
64
67
|
app_url?: string | null | undefined;
|
|
65
68
|
teepod?: {
|
|
@@ -68,32 +71,32 @@ declare const startCvm: {
|
|
|
68
71
|
region_identifier?: string | null | undefined;
|
|
69
72
|
} | null | undefined;
|
|
70
73
|
user_id?: number | null | undefined;
|
|
74
|
+
docker_compose_file?: string | null | undefined;
|
|
71
75
|
manifest_version?: number | null | undefined;
|
|
72
76
|
runner?: string | null | undefined;
|
|
73
|
-
docker_compose_file?: string | null | undefined;
|
|
74
77
|
features?: string[] | null | undefined;
|
|
75
78
|
}>;
|
|
76
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient
|
|
79
|
+
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
77
80
|
schema: T;
|
|
78
81
|
}): Promise<import("zod").TypeOf<T>>;
|
|
79
|
-
(client: import("../..").BaseClient
|
|
82
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
80
83
|
schema: false;
|
|
81
84
|
}): Promise<unknown>;
|
|
82
85
|
}, safeStartCvm: {
|
|
83
|
-
(client: import("../..").BaseClient
|
|
86
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
84
87
|
status: string;
|
|
85
88
|
name: string;
|
|
86
89
|
id: number;
|
|
87
|
-
teepod_id: number;
|
|
88
|
-
vcpu: number;
|
|
89
|
-
created_at: string;
|
|
90
90
|
app_id: string;
|
|
91
91
|
instance_id: string | null;
|
|
92
|
+
vcpu: number;
|
|
92
93
|
memory: number;
|
|
93
94
|
disk_size: number;
|
|
95
|
+
teepod_id: number;
|
|
94
96
|
vm_uuid: string | null;
|
|
95
97
|
base_image: string | null;
|
|
96
98
|
encrypted_env_pubkey: string | null;
|
|
99
|
+
created_at: string;
|
|
97
100
|
version?: string | null | undefined;
|
|
98
101
|
app_url?: string | null | undefined;
|
|
99
102
|
teepod?: {
|
|
@@ -102,15 +105,15 @@ declare const startCvm: {
|
|
|
102
105
|
region_identifier?: string | null | undefined;
|
|
103
106
|
} | null | undefined;
|
|
104
107
|
user_id?: number | null | undefined;
|
|
108
|
+
docker_compose_file?: string | null | undefined;
|
|
105
109
|
manifest_version?: number | null | undefined;
|
|
106
110
|
runner?: string | null | undefined;
|
|
107
|
-
docker_compose_file?: string | null | undefined;
|
|
108
111
|
features?: string[] | null | undefined;
|
|
109
112
|
}>>;
|
|
110
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient
|
|
113
|
+
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
111
114
|
schema: T;
|
|
112
115
|
}): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
|
|
113
|
-
(client: import("../..").BaseClient
|
|
116
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
114
117
|
schema: false;
|
|
115
118
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
116
119
|
};
|
|
@@ -32,35 +32,38 @@ export declare const StopCvmRequestSchema: import("zod").ZodEffects<import("zod"
|
|
|
32
32
|
uuid: import("zod").ZodOptional<import("zod").ZodString>;
|
|
33
33
|
app_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
34
|
instance_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
name: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
|
|
35
36
|
}, "strip", import("zod").ZodTypeAny, {
|
|
37
|
+
name?: string | undefined;
|
|
36
38
|
id?: string | undefined;
|
|
37
39
|
app_id?: string | undefined;
|
|
38
40
|
instance_id?: string | undefined;
|
|
39
41
|
uuid?: string | undefined;
|
|
40
42
|
}, {
|
|
43
|
+
name?: string | undefined;
|
|
41
44
|
id?: string | undefined;
|
|
42
45
|
app_id?: string | undefined;
|
|
43
46
|
instance_id?: string | undefined;
|
|
44
47
|
uuid?: string | undefined;
|
|
45
48
|
}>, any, any>, {
|
|
46
|
-
cvmId:
|
|
49
|
+
cvmId: any;
|
|
47
50
|
}, any>;
|
|
48
51
|
export type StopCvmRequest = CvmIdInput;
|
|
49
52
|
declare const stopCvm: {
|
|
50
|
-
(client: import("../..").BaseClient
|
|
53
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<{
|
|
51
54
|
status: string;
|
|
52
55
|
name: string;
|
|
53
56
|
id: number;
|
|
54
|
-
teepod_id: number;
|
|
55
|
-
vcpu: number;
|
|
56
|
-
created_at: string;
|
|
57
57
|
app_id: string;
|
|
58
58
|
instance_id: string | null;
|
|
59
|
+
vcpu: number;
|
|
59
60
|
memory: number;
|
|
60
61
|
disk_size: number;
|
|
62
|
+
teepod_id: number;
|
|
61
63
|
vm_uuid: string | null;
|
|
62
64
|
base_image: string | null;
|
|
63
65
|
encrypted_env_pubkey: string | null;
|
|
66
|
+
created_at: string;
|
|
64
67
|
version?: string | null | undefined;
|
|
65
68
|
app_url?: string | null | undefined;
|
|
66
69
|
teepod?: {
|
|
@@ -69,32 +72,32 @@ declare const stopCvm: {
|
|
|
69
72
|
region_identifier?: string | null | undefined;
|
|
70
73
|
} | null | undefined;
|
|
71
74
|
user_id?: number | null | undefined;
|
|
75
|
+
docker_compose_file?: string | null | undefined;
|
|
72
76
|
manifest_version?: number | null | undefined;
|
|
73
77
|
runner?: string | null | undefined;
|
|
74
|
-
docker_compose_file?: string | null | undefined;
|
|
75
78
|
features?: string[] | null | undefined;
|
|
76
79
|
}>;
|
|
77
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient
|
|
80
|
+
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
78
81
|
schema: T;
|
|
79
82
|
}): Promise<import("zod").TypeOf<T>>;
|
|
80
|
-
(client: import("../..").BaseClient
|
|
83
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
81
84
|
schema: false;
|
|
82
85
|
}): Promise<unknown>;
|
|
83
86
|
}, safeStopCvm: {
|
|
84
|
-
(client: import("../..").BaseClient
|
|
87
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput): Promise<import("../..").SafeResult<{
|
|
85
88
|
status: string;
|
|
86
89
|
name: string;
|
|
87
90
|
id: number;
|
|
88
|
-
teepod_id: number;
|
|
89
|
-
vcpu: number;
|
|
90
|
-
created_at: string;
|
|
91
91
|
app_id: string;
|
|
92
92
|
instance_id: string | null;
|
|
93
|
+
vcpu: number;
|
|
93
94
|
memory: number;
|
|
94
95
|
disk_size: number;
|
|
96
|
+
teepod_id: number;
|
|
95
97
|
vm_uuid: string | null;
|
|
96
98
|
base_image: string | null;
|
|
97
99
|
encrypted_env_pubkey: string | null;
|
|
100
|
+
created_at: string;
|
|
98
101
|
version?: string | null | undefined;
|
|
99
102
|
app_url?: string | null | undefined;
|
|
100
103
|
teepod?: {
|
|
@@ -103,15 +106,15 @@ declare const stopCvm: {
|
|
|
103
106
|
region_identifier?: string | null | undefined;
|
|
104
107
|
} | null | undefined;
|
|
105
108
|
user_id?: number | null | undefined;
|
|
109
|
+
docker_compose_file?: string | null | undefined;
|
|
106
110
|
manifest_version?: number | null | undefined;
|
|
107
111
|
runner?: string | null | undefined;
|
|
108
|
-
docker_compose_file?: string | null | undefined;
|
|
109
112
|
features?: string[] | null | undefined;
|
|
110
113
|
}>>;
|
|
111
|
-
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient
|
|
114
|
+
<T extends import("zod").ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
112
115
|
schema: T;
|
|
113
116
|
}): Promise<import("../..").SafeResult<import("zod").TypeOf<T>>>;
|
|
114
|
-
(client: import("../..").BaseClient
|
|
117
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: CvmIdInput, parameters: {
|
|
115
118
|
schema: false;
|
|
116
119
|
}): Promise<import("../..").SafeResult<unknown>>;
|
|
117
120
|
};
|