@phala/cloud 0.4.0 → 0.6.0
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/README.md +20 -0
- package/dist/actions/api_tokens/revoke_current_api_token.d.ts +47 -0
- package/dist/actions/apps/app_launch_token.d.ts +121 -0
- package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +17 -311
- package/dist/actions/apps/check_app_is_allowed.d.ts +20 -32
- package/dist/actions/apps/create_app_instance.d.ts +43 -63
- package/dist/actions/apps/get_app_attestation.d.ts +113 -779
- package/dist/actions/apps/get_app_cvms.d.ts +1 -5
- package/dist/actions/apps/get_app_device_allowlist.d.ts +26 -272
- package/dist/actions/apps/get_app_filter_options.d.ts +8 -24
- package/dist/actions/apps/get_app_info.d.ts +1 -5
- package/dist/actions/apps/get_app_list.d.ts +2 -26
- package/dist/actions/apps/get_app_revision_detail.d.ts +1 -9
- package/dist/actions/apps/get_app_revisions.d.ts +1 -9
- package/dist/actions/blockchains/add_compose_hash.d.ts +1 -13
- package/dist/actions/blockchains/add_device.d.ts +1 -13
- package/dist/actions/blockchains/deploy_app_auth.d.ts +3 -95
- package/dist/actions/blockchains/get_allowed_devices.d.ts +2 -12
- package/dist/actions/blockchains/remove_device.d.ts +1 -13
- package/dist/actions/blockchains/set_allow_any_device.d.ts +1 -13
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +13 -138
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +9 -45
- package/dist/actions/cvms/commit_cvm_provision.d.ts +32 -422
- package/dist/actions/cvms/commit_cvm_update.d.ts +70 -41
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +62 -35
- package/dist/actions/cvms/cvm_annotations.d.ts +152 -0
- package/dist/actions/cvms/delete_cvm.d.ts +8 -14
- package/dist/actions/cvms/get_available_os_images.d.ts +70 -111
- package/dist/actions/cvms/get_cvm_attestation.d.ts +34 -392
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +384 -614
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +25 -91
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +8 -14
- package/dist/actions/cvms/get_cvm_info.d.ts +6 -12
- package/dist/actions/cvms/get_cvm_init_scripts.d.ts +92 -0
- package/dist/actions/cvms/get_cvm_list.d.ts +7 -13
- package/dist/actions/cvms/get_cvm_network.d.ts +18 -50
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +8 -14
- package/dist/actions/cvms/get_cvm_state.d.ts +11 -37
- package/dist/actions/cvms/get_cvm_stats.d.ts +23 -149
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +19 -209
- package/dist/actions/cvms/get_cvm_user_config.d.ts +13 -24
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +9 -27
- package/dist/actions/cvms/log-time.d.ts +5 -0
- package/dist/actions/cvms/logs.d.ts +64 -0
- package/dist/actions/cvms/patch_cvm.d.ts +665 -295
- package/dist/actions/cvms/provision_cvm.d.ts +329 -1561
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +550 -953
- package/dist/actions/cvms/put_cvm_init_scripts.d.ts +150 -0
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
- package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
- package/dist/actions/cvms/restart_cvm.d.ts +3 -18
- package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
- package/dist/actions/cvms/start_cvm.d.ts +6 -12
- package/dist/actions/cvms/stop_cvm.d.ts +6 -12
- package/dist/actions/cvms/update_cvm_envs.d.ts +136 -203
- package/dist/actions/cvms/update_cvm_resources.d.ts +82 -48
- package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -132
- package/dist/actions/cvms/update_docker_compose.d.ts +127 -202
- package/dist/actions/cvms/update_os_image.d.ts +55 -28
- package/dist/actions/cvms/update_prelaunch_script.d.ts +127 -202
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +118 -193
- package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
- package/dist/actions/get_available_nodes.d.ts +186 -1067
- package/dist/actions/get_cvm_create_resources.d.ts +138 -2489
- package/dist/actions/index.d.ts +9 -2
- package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
- package/dist/actions/kms/get_kms_contract.d.ts +25 -27
- package/dist/actions/kms/get_kms_info.d.ts +3 -7
- package/dist/actions/kms/get_kms_list.d.ts +34 -88
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +66 -664
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +21 -53
- package/dist/actions/kms/list_kms_contracts.d.ts +33 -87
- package/dist/actions/kms/next_app_ids.d.ts +5 -25
- package/dist/actions/list-instance-types.d.ts +77 -257
- package/dist/actions/os_images/get_os_images.d.ts +38 -152
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
- package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
- package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
- package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
- package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
- package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
- package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
- package/dist/actions/workspaces/get_workspace.d.ts +32 -28
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +34 -321
- package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
- package/dist/actions/workspaces/list_workspaces.d.ts +67 -369
- package/dist/client.d.ts +23 -4
- package/dist/create-client.d.ts +1900 -1
- package/dist/credentials/current_user_v20251028.d.ts +1 -17
- package/dist/credentials/current_user_v20260121.d.ts +22 -227
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6004 -4537
- package/dist/index.mjs +6033 -4625
- package/dist/types/app_compose.d.ts +108 -221
- package/dist/types/app_info_v20251028.d.ts +22 -1067
- package/dist/types/app_info_v20260121.d.ts +442 -8900
- package/dist/types/app_revision.d.ts +15 -371
- package/dist/types/client.d.ts +16 -0
- package/dist/types/common.d.ts +6 -0
- package/dist/types/cvm_id.d.ts +12 -57
- package/dist/types/cvm_info.d.ts +33 -460
- package/dist/types/cvm_info_v20251028.d.ts +100 -821
- package/dist/types/cvm_info_v20260121.d.ts +254 -3160
- package/dist/types/kms_contract.d.ts +2 -32
- package/dist/types/kms_info.d.ts +34 -68
- package/dist/user-agent.d.ts +30 -0
- package/dist/utils/define-action.d.ts +4 -4
- package/dist/utils/errors.d.ts +4 -36
- package/dist/utils/get_compose_hash.d.ts +36 -5
- package/dist/utils/get_mr_config_id.d.ts +94 -3
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/placement-request.d.ts +3 -0
- package/package.json +4 -4
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type PatchCvmResult } from "./patch_cvm";
|
|
3
|
+
export declare const PutCvmInitScriptsRequestSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
6
|
+
app_id: z.ZodOptional<z.ZodString>;
|
|
7
|
+
instance_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9
|
+
scripts: z.ZodArray<z.ZodString>;
|
|
10
|
+
prepareOnly: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type PutCvmInitScriptsRequest = z.input<typeof PutCvmInitScriptsRequestSchema>;
|
|
13
|
+
/**
|
|
14
|
+
* Replace a CVM's raw init scripts
|
|
15
|
+
*
|
|
16
|
+
* System admins only. An empty list clears them. Same on-chain two-phase
|
|
17
|
+
* result as `patchCvm`.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import { createClient, putCvmInitScripts } from '@phala/cloud'
|
|
22
|
+
*
|
|
23
|
+
* const client = createClient()
|
|
24
|
+
* await putCvmInitScripts(client, {
|
|
25
|
+
* id: 'my-cvm',
|
|
26
|
+
* scripts: ['echo custom\\n'],
|
|
27
|
+
* })
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
declare const putCvmInitScripts: {
|
|
31
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
32
|
+
scripts: string[];
|
|
33
|
+
id?: string | undefined;
|
|
34
|
+
uuid?: string | undefined;
|
|
35
|
+
app_id?: string | undefined;
|
|
36
|
+
instance_id?: string | undefined;
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
prepareOnly?: boolean | undefined;
|
|
39
|
+
}): Promise<{
|
|
40
|
+
requiresOnChainHash: false;
|
|
41
|
+
correlationId: string;
|
|
42
|
+
} | {
|
|
43
|
+
requiresOnChainHash: true;
|
|
44
|
+
composeHash: string;
|
|
45
|
+
appId: string;
|
|
46
|
+
deviceId: string;
|
|
47
|
+
kmsInfo: {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
id: string;
|
|
50
|
+
slug: string | null;
|
|
51
|
+
url: string;
|
|
52
|
+
version: string;
|
|
53
|
+
chain_id: number | null;
|
|
54
|
+
kms_contract_address: `0x${string}`;
|
|
55
|
+
gateway_app_id: `0x${string}`;
|
|
56
|
+
k256_pubkey?: string | null | undefined;
|
|
57
|
+
};
|
|
58
|
+
commitToken?: string | undefined;
|
|
59
|
+
commitUrl?: string | undefined;
|
|
60
|
+
apiCommitUrl?: string | undefined;
|
|
61
|
+
onchainStatus?: {
|
|
62
|
+
compose_hash_allowed: boolean;
|
|
63
|
+
device_id_allowed: boolean;
|
|
64
|
+
is_allowed: boolean;
|
|
65
|
+
} | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
68
|
+
scripts: string[];
|
|
69
|
+
id?: string | undefined;
|
|
70
|
+
uuid?: string | undefined;
|
|
71
|
+
app_id?: string | undefined;
|
|
72
|
+
instance_id?: string | undefined;
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
prepareOnly?: boolean | undefined;
|
|
75
|
+
}, parameters: {
|
|
76
|
+
schema: T;
|
|
77
|
+
}): Promise<z.core.output<T>>;
|
|
78
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
79
|
+
scripts: string[];
|
|
80
|
+
id?: string | undefined;
|
|
81
|
+
uuid?: string | undefined;
|
|
82
|
+
app_id?: string | undefined;
|
|
83
|
+
instance_id?: string | undefined;
|
|
84
|
+
name?: string | undefined;
|
|
85
|
+
prepareOnly?: boolean | undefined;
|
|
86
|
+
}, parameters: {
|
|
87
|
+
schema: false;
|
|
88
|
+
}): Promise<unknown>;
|
|
89
|
+
}, safePutCvmInitScripts: {
|
|
90
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
91
|
+
scripts: string[];
|
|
92
|
+
id?: string | undefined;
|
|
93
|
+
uuid?: string | undefined;
|
|
94
|
+
app_id?: string | undefined;
|
|
95
|
+
instance_id?: string | undefined;
|
|
96
|
+
name?: string | undefined;
|
|
97
|
+
prepareOnly?: boolean | undefined;
|
|
98
|
+
}): Promise<import("../..").SafeResult<{
|
|
99
|
+
requiresOnChainHash: false;
|
|
100
|
+
correlationId: string;
|
|
101
|
+
} | {
|
|
102
|
+
requiresOnChainHash: true;
|
|
103
|
+
composeHash: string;
|
|
104
|
+
appId: string;
|
|
105
|
+
deviceId: string;
|
|
106
|
+
kmsInfo: {
|
|
107
|
+
[x: string]: unknown;
|
|
108
|
+
id: string;
|
|
109
|
+
slug: string | null;
|
|
110
|
+
url: string;
|
|
111
|
+
version: string;
|
|
112
|
+
chain_id: number | null;
|
|
113
|
+
kms_contract_address: `0x${string}`;
|
|
114
|
+
gateway_app_id: `0x${string}`;
|
|
115
|
+
k256_pubkey?: string | null | undefined;
|
|
116
|
+
};
|
|
117
|
+
commitToken?: string | undefined;
|
|
118
|
+
commitUrl?: string | undefined;
|
|
119
|
+
apiCommitUrl?: string | undefined;
|
|
120
|
+
onchainStatus?: {
|
|
121
|
+
compose_hash_allowed: boolean;
|
|
122
|
+
device_id_allowed: boolean;
|
|
123
|
+
is_allowed: boolean;
|
|
124
|
+
} | undefined;
|
|
125
|
+
}>>;
|
|
126
|
+
<T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
127
|
+
scripts: string[];
|
|
128
|
+
id?: string | undefined;
|
|
129
|
+
uuid?: string | undefined;
|
|
130
|
+
app_id?: string | undefined;
|
|
131
|
+
instance_id?: string | undefined;
|
|
132
|
+
name?: string | undefined;
|
|
133
|
+
prepareOnly?: boolean | undefined;
|
|
134
|
+
}, parameters: {
|
|
135
|
+
schema: T;
|
|
136
|
+
}): Promise<import("../..").SafeResult<z.core.output<T>>>;
|
|
137
|
+
(client: import("../..").BaseClient<import("../..").ApiVersion>, params: {
|
|
138
|
+
scripts: string[];
|
|
139
|
+
id?: string | undefined;
|
|
140
|
+
uuid?: string | undefined;
|
|
141
|
+
app_id?: string | undefined;
|
|
142
|
+
instance_id?: string | undefined;
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
prepareOnly?: boolean | undefined;
|
|
145
|
+
}, parameters: {
|
|
146
|
+
schema: false;
|
|
147
|
+
}): Promise<import("../..").SafeResult<unknown>>;
|
|
148
|
+
};
|
|
149
|
+
export { putCvmInitScripts, safePutCvmInitScripts };
|
|
150
|
+
export type { PatchCvmResult as PutCvmInitScriptsResult };
|
|
@@ -4,177 +4,120 @@ import type { ApiVersion } from "../../types/client";
|
|
|
4
4
|
import type { RefreshCvmInstanceIdResponse } from "../../types/version-mappings";
|
|
5
5
|
export declare const InstanceIdRefreshResultV20260121Schema: z.ZodObject<{
|
|
6
6
|
identifier: z.ZodString;
|
|
7
|
-
status: z.ZodEnum<
|
|
7
|
+
status: z.ZodEnum<{
|
|
8
|
+
error: "error";
|
|
9
|
+
updated: "updated";
|
|
10
|
+
unchanged: "unchanged";
|
|
11
|
+
skipped: "skipped";
|
|
12
|
+
conflict: "conflict";
|
|
13
|
+
}>;
|
|
8
14
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
15
|
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
source: z.ZodEnum<
|
|
16
|
+
source: z.ZodEnum<{
|
|
17
|
+
none: "none";
|
|
18
|
+
teepod_state: "teepod_state";
|
|
19
|
+
teepod_info: "teepod_info";
|
|
20
|
+
gateway: "gateway";
|
|
21
|
+
}>;
|
|
11
22
|
verified_with_gateway: z.ZodBoolean;
|
|
12
23
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
-
} & {
|
|
14
24
|
cvm_id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
},
|
|
16
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
17
|
-
cvm_id: number | null;
|
|
18
|
-
identifier: string;
|
|
19
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
20
|
-
verified_with_gateway: boolean;
|
|
21
|
-
old_instance_id?: string | null | undefined;
|
|
22
|
-
new_instance_id?: string | null | undefined;
|
|
23
|
-
reason?: string | null | undefined;
|
|
24
|
-
}, {
|
|
25
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
26
|
-
cvm_id: number | null;
|
|
27
|
-
identifier: string;
|
|
28
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
29
|
-
verified_with_gateway: boolean;
|
|
30
|
-
old_instance_id?: string | null | undefined;
|
|
31
|
-
new_instance_id?: string | null | undefined;
|
|
32
|
-
reason?: string | null | undefined;
|
|
33
|
-
}>;
|
|
25
|
+
}, z.core.$strip>;
|
|
34
26
|
export type InstanceIdRefreshResultV20260121 = z.infer<typeof InstanceIdRefreshResultV20260121Schema>;
|
|
35
27
|
export declare const InstanceIdRefreshResultV20260522Schema: z.ZodObject<{
|
|
36
28
|
identifier: z.ZodString;
|
|
37
|
-
status: z.ZodEnum<
|
|
29
|
+
status: z.ZodEnum<{
|
|
30
|
+
error: "error";
|
|
31
|
+
updated: "updated";
|
|
32
|
+
unchanged: "unchanged";
|
|
33
|
+
skipped: "skipped";
|
|
34
|
+
conflict: "conflict";
|
|
35
|
+
}>;
|
|
38
36
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
37
|
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
source: z.ZodEnum<
|
|
38
|
+
source: z.ZodEnum<{
|
|
39
|
+
none: "none";
|
|
40
|
+
teepod_state: "teepod_state";
|
|
41
|
+
teepod_info: "teepod_info";
|
|
42
|
+
gateway: "gateway";
|
|
43
|
+
}>;
|
|
41
44
|
verified_with_gateway: z.ZodBoolean;
|
|
42
45
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
} & {
|
|
44
46
|
cvm_id: z.ZodNullable<z.ZodString>;
|
|
45
|
-
},
|
|
46
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
47
|
-
cvm_id: string | null;
|
|
48
|
-
identifier: string;
|
|
49
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
50
|
-
verified_with_gateway: boolean;
|
|
51
|
-
old_instance_id?: string | null | undefined;
|
|
52
|
-
new_instance_id?: string | null | undefined;
|
|
53
|
-
reason?: string | null | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
56
|
-
cvm_id: string | null;
|
|
57
|
-
identifier: string;
|
|
58
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
59
|
-
verified_with_gateway: boolean;
|
|
60
|
-
old_instance_id?: string | null | undefined;
|
|
61
|
-
new_instance_id?: string | null | undefined;
|
|
62
|
-
reason?: string | null | undefined;
|
|
63
|
-
}>;
|
|
47
|
+
}, z.core.$strip>;
|
|
64
48
|
export type InstanceIdRefreshResultV20260522 = z.infer<typeof InstanceIdRefreshResultV20260522Schema>;
|
|
65
|
-
export declare const InstanceIdRefreshResultAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
49
|
+
export declare const InstanceIdRefreshResultAnySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
66
50
|
identifier: z.ZodString;
|
|
67
|
-
status: z.ZodEnum<
|
|
51
|
+
status: z.ZodEnum<{
|
|
52
|
+
error: "error";
|
|
53
|
+
updated: "updated";
|
|
54
|
+
unchanged: "unchanged";
|
|
55
|
+
skipped: "skipped";
|
|
56
|
+
conflict: "conflict";
|
|
57
|
+
}>;
|
|
68
58
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
59
|
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
-
source: z.ZodEnum<
|
|
60
|
+
source: z.ZodEnum<{
|
|
61
|
+
none: "none";
|
|
62
|
+
teepod_state: "teepod_state";
|
|
63
|
+
teepod_info: "teepod_info";
|
|
64
|
+
gateway: "gateway";
|
|
65
|
+
}>;
|
|
71
66
|
verified_with_gateway: z.ZodBoolean;
|
|
72
67
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
-
} & {
|
|
74
68
|
cvm_id: z.ZodNullable<z.ZodNumber>;
|
|
75
|
-
},
|
|
76
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
77
|
-
cvm_id: number | null;
|
|
78
|
-
identifier: string;
|
|
79
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
80
|
-
verified_with_gateway: boolean;
|
|
81
|
-
old_instance_id?: string | null | undefined;
|
|
82
|
-
new_instance_id?: string | null | undefined;
|
|
83
|
-
reason?: string | null | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
86
|
-
cvm_id: number | null;
|
|
87
|
-
identifier: string;
|
|
88
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
89
|
-
verified_with_gateway: boolean;
|
|
90
|
-
old_instance_id?: string | null | undefined;
|
|
91
|
-
new_instance_id?: string | null | undefined;
|
|
92
|
-
reason?: string | null | undefined;
|
|
93
|
-
}>, z.ZodObject<{
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
70
|
identifier: z.ZodString;
|
|
95
|
-
status: z.ZodEnum<
|
|
71
|
+
status: z.ZodEnum<{
|
|
72
|
+
error: "error";
|
|
73
|
+
updated: "updated";
|
|
74
|
+
unchanged: "unchanged";
|
|
75
|
+
skipped: "skipped";
|
|
76
|
+
conflict: "conflict";
|
|
77
|
+
}>;
|
|
96
78
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
79
|
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
-
source: z.ZodEnum<
|
|
80
|
+
source: z.ZodEnum<{
|
|
81
|
+
none: "none";
|
|
82
|
+
teepod_state: "teepod_state";
|
|
83
|
+
teepod_info: "teepod_info";
|
|
84
|
+
gateway: "gateway";
|
|
85
|
+
}>;
|
|
99
86
|
verified_with_gateway: z.ZodBoolean;
|
|
100
87
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
-
} & {
|
|
102
88
|
cvm_id: z.ZodNullable<z.ZodString>;
|
|
103
|
-
},
|
|
104
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
105
|
-
cvm_id: string | null;
|
|
106
|
-
identifier: string;
|
|
107
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
108
|
-
verified_with_gateway: boolean;
|
|
109
|
-
old_instance_id?: string | null | undefined;
|
|
110
|
-
new_instance_id?: string | null | undefined;
|
|
111
|
-
reason?: string | null | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
114
|
-
cvm_id: string | null;
|
|
115
|
-
identifier: string;
|
|
116
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
117
|
-
verified_with_gateway: boolean;
|
|
118
|
-
old_instance_id?: string | null | undefined;
|
|
119
|
-
new_instance_id?: string | null | undefined;
|
|
120
|
-
reason?: string | null | undefined;
|
|
121
|
-
}>]>;
|
|
89
|
+
}, z.core.$strip>]>;
|
|
122
90
|
export declare const InstanceIdRefreshResultSchema: z.ZodObject<{
|
|
123
91
|
identifier: z.ZodString;
|
|
124
|
-
status: z.ZodEnum<
|
|
92
|
+
status: z.ZodEnum<{
|
|
93
|
+
error: "error";
|
|
94
|
+
updated: "updated";
|
|
95
|
+
unchanged: "unchanged";
|
|
96
|
+
skipped: "skipped";
|
|
97
|
+
conflict: "conflict";
|
|
98
|
+
}>;
|
|
125
99
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
100
|
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
-
source: z.ZodEnum<
|
|
101
|
+
source: z.ZodEnum<{
|
|
102
|
+
none: "none";
|
|
103
|
+
teepod_state: "teepod_state";
|
|
104
|
+
teepod_info: "teepod_info";
|
|
105
|
+
gateway: "gateway";
|
|
106
|
+
}>;
|
|
128
107
|
verified_with_gateway: z.ZodBoolean;
|
|
129
108
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
130
|
-
} & {
|
|
131
109
|
cvm_id: z.ZodNullable<z.ZodString>;
|
|
132
|
-
},
|
|
133
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
134
|
-
cvm_id: string | null;
|
|
135
|
-
identifier: string;
|
|
136
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
137
|
-
verified_with_gateway: boolean;
|
|
138
|
-
old_instance_id?: string | null | undefined;
|
|
139
|
-
new_instance_id?: string | null | undefined;
|
|
140
|
-
reason?: string | null | undefined;
|
|
141
|
-
}, {
|
|
142
|
-
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
143
|
-
cvm_id: string | null;
|
|
144
|
-
identifier: string;
|
|
145
|
-
source: "teepod_state" | "teepod_info" | "gateway" | "none";
|
|
146
|
-
verified_with_gateway: boolean;
|
|
147
|
-
old_instance_id?: string | null | undefined;
|
|
148
|
-
new_instance_id?: string | null | undefined;
|
|
149
|
-
reason?: string | null | undefined;
|
|
150
|
-
}>;
|
|
110
|
+
}, z.core.$strip>;
|
|
151
111
|
export type InstanceIdRefreshResult = z.infer<typeof InstanceIdRefreshResultSchema>;
|
|
152
|
-
export declare const RefreshCvmInstanceIdRequestSchema: z.
|
|
112
|
+
export declare const RefreshCvmInstanceIdRequestSchema: z.ZodObject<{
|
|
153
113
|
id: z.ZodOptional<z.ZodString>;
|
|
154
114
|
uuid: z.ZodOptional<z.ZodString>;
|
|
155
115
|
app_id: z.ZodOptional<z.ZodString>;
|
|
156
116
|
instance_id: z.ZodOptional<z.ZodString>;
|
|
157
|
-
name: z.ZodOptional<z.
|
|
158
|
-
} & {
|
|
117
|
+
name: z.ZodOptional<z.ZodString>;
|
|
159
118
|
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
160
119
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
-
},
|
|
162
|
-
name?: string | undefined;
|
|
163
|
-
id?: string | undefined;
|
|
164
|
-
uuid?: string | undefined;
|
|
165
|
-
app_id?: string | undefined;
|
|
166
|
-
instance_id?: string | undefined;
|
|
167
|
-
overwrite?: boolean | undefined;
|
|
168
|
-
dry_run?: boolean | undefined;
|
|
169
|
-
}, {
|
|
170
|
-
name?: string | undefined;
|
|
171
|
-
id?: string | undefined;
|
|
172
|
-
uuid?: string | undefined;
|
|
173
|
-
app_id?: string | undefined;
|
|
174
|
-
instance_id?: string | undefined;
|
|
175
|
-
overwrite?: boolean | undefined;
|
|
176
|
-
dry_run?: boolean | undefined;
|
|
177
|
-
}>, any, any>;
|
|
120
|
+
}, z.core.$strip>;
|
|
178
121
|
export type RefreshCvmInstanceIdRequest = z.infer<typeof RefreshCvmInstanceIdRequestSchema>;
|
|
179
122
|
export declare function refreshCvmInstanceId<V extends ApiVersion>(client: Client<V>, request: RefreshCvmInstanceIdRequest): Promise<RefreshCvmInstanceIdResponse<V>>;
|
|
180
123
|
export declare function safeRefreshCvmInstanceId<V extends ApiVersion>(client: Client<V>, request: RefreshCvmInstanceIdRequest): Promise<SafeResult<RefreshCvmInstanceIdResponse<V>>>;
|