@phala/cloud 0.2.9 → 0.2.10
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/apps/check_app_cvms_is_allowed.d.ts +315 -5
- package/dist/actions/apps/check_app_is_allowed.d.ts +2 -2
- package/dist/actions/apps/create_app_instance.d.ts +13 -4
- package/dist/actions/apps/get_app_attestation.d.ts +50 -0
- package/dist/actions/apps/get_app_device_allowlist.d.ts +274 -5
- package/dist/actions/apps/get_app_filter_options.d.ts +2 -2
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +133 -3
- package/dist/actions/cvms/commit_cvm_provision.d.ts +425 -148
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +328 -0
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +93 -0
- package/dist/actions/cvms/provision_cvm.d.ts +243 -225
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +216 -0
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +123 -5
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +236 -7
- package/dist/actions/cvms/replicate_cvm.d.ts +4 -4
- package/dist/actions/cvms/restart_cvm.d.ts +4 -4
- package/dist/actions/cvms/shutdown_cvm.d.ts +4 -4
- package/dist/actions/cvms/start_cvm.d.ts +4 -4
- package/dist/actions/cvms/stop_cvm.d.ts +4 -4
- package/dist/actions/cvms/update_cvm_visibility.d.ts +2 -2
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +319 -0
- package/dist/actions/get_cvm_create_resources.d.ts +2412 -0
- package/dist/actions/index.d.ts +3 -0
- package/dist/actions/workspaces/get_workspace.d.ts +2 -0
- package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
- package/dist/client.d.ts +5 -2
- package/dist/create-client.d.ts +48 -0
- package/dist/index.js +1634 -1218
- package/dist/index.mjs +1602 -1216
- package/dist/types/app_compose.d.ts +125 -0
- package/dist/types/app_info_v20251028.d.ts +8 -131
- package/dist/types/app_info_v20260121.d.ts +4500 -168
- package/dist/types/client.d.ts +2 -2
- package/dist/types/cvm_info.d.ts +533 -7
- package/dist/types/cvm_info_v20251028.d.ts +18 -18
- package/dist/types/cvm_info_v20260121.d.ts +1640 -89
- package/dist/types/version-mappings.d.ts +8 -8
- package/dist/utils/errors.d.ts +8 -1
- package/package.json +2 -2
|
@@ -92,6 +92,31 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
92
92
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
93
93
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
94
94
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
96
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
97
|
+
port: z.ZodNumber;
|
|
98
|
+
pp: z.ZodBoolean;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
port: number;
|
|
101
|
+
pp: boolean;
|
|
102
|
+
}, {
|
|
103
|
+
port: number;
|
|
104
|
+
pp: boolean;
|
|
105
|
+
}>, "many">;
|
|
106
|
+
restrict_mode: z.ZodBoolean;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
ports: {
|
|
109
|
+
port: number;
|
|
110
|
+
pp: boolean;
|
|
111
|
+
}[];
|
|
112
|
+
restrict_mode: boolean;
|
|
113
|
+
}, {
|
|
114
|
+
ports: {
|
|
115
|
+
port: number;
|
|
116
|
+
pp: boolean;
|
|
117
|
+
}[];
|
|
118
|
+
restrict_mode: boolean;
|
|
119
|
+
}>>;
|
|
95
120
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
96
121
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
97
122
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -106,6 +131,31 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
106
131
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
107
132
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
108
133
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
136
|
+
port: z.ZodNumber;
|
|
137
|
+
pp: z.ZodBoolean;
|
|
138
|
+
}, "strip", z.ZodTypeAny, {
|
|
139
|
+
port: number;
|
|
140
|
+
pp: boolean;
|
|
141
|
+
}, {
|
|
142
|
+
port: number;
|
|
143
|
+
pp: boolean;
|
|
144
|
+
}>, "many">;
|
|
145
|
+
restrict_mode: z.ZodBoolean;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
ports: {
|
|
148
|
+
port: number;
|
|
149
|
+
pp: boolean;
|
|
150
|
+
}[];
|
|
151
|
+
restrict_mode: boolean;
|
|
152
|
+
}, {
|
|
153
|
+
ports: {
|
|
154
|
+
port: number;
|
|
155
|
+
pp: boolean;
|
|
156
|
+
}[];
|
|
157
|
+
restrict_mode: boolean;
|
|
158
|
+
}>>;
|
|
109
159
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
110
160
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
111
161
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -120,6 +170,31 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
120
170
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
121
171
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
122
172
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
174
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
175
|
+
port: z.ZodNumber;
|
|
176
|
+
pp: z.ZodBoolean;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
port: number;
|
|
179
|
+
pp: boolean;
|
|
180
|
+
}, {
|
|
181
|
+
port: number;
|
|
182
|
+
pp: boolean;
|
|
183
|
+
}>, "many">;
|
|
184
|
+
restrict_mode: z.ZodBoolean;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
ports: {
|
|
187
|
+
port: number;
|
|
188
|
+
pp: boolean;
|
|
189
|
+
}[];
|
|
190
|
+
restrict_mode: boolean;
|
|
191
|
+
}, {
|
|
192
|
+
ports: {
|
|
193
|
+
port: number;
|
|
194
|
+
pp: boolean;
|
|
195
|
+
}[];
|
|
196
|
+
restrict_mode: boolean;
|
|
197
|
+
}>>;
|
|
123
198
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
124
199
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
125
200
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -134,6 +209,31 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
134
209
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
135
210
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
136
211
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
214
|
+
port: z.ZodNumber;
|
|
215
|
+
pp: z.ZodBoolean;
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
port: number;
|
|
218
|
+
pp: boolean;
|
|
219
|
+
}, {
|
|
220
|
+
port: number;
|
|
221
|
+
pp: boolean;
|
|
222
|
+
}>, "many">;
|
|
223
|
+
restrict_mode: z.ZodBoolean;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
ports: {
|
|
226
|
+
port: number;
|
|
227
|
+
pp: boolean;
|
|
228
|
+
}[];
|
|
229
|
+
restrict_mode: boolean;
|
|
230
|
+
}, {
|
|
231
|
+
ports: {
|
|
232
|
+
port: number;
|
|
233
|
+
pp: boolean;
|
|
234
|
+
}[];
|
|
235
|
+
restrict_mode: boolean;
|
|
236
|
+
}>>;
|
|
137
237
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
138
238
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
139
239
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -148,6 +248,31 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
148
248
|
public_logs: z.ZodOptional<z.ZodBoolean>;
|
|
149
249
|
public_sysinfo: z.ZodOptional<z.ZodBoolean>;
|
|
150
250
|
tproxy_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
251
|
+
port_policy: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
ports: z.ZodArray<z.ZodObject<{
|
|
253
|
+
port: z.ZodNumber;
|
|
254
|
+
pp: z.ZodBoolean;
|
|
255
|
+
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
port: number;
|
|
257
|
+
pp: boolean;
|
|
258
|
+
}, {
|
|
259
|
+
port: number;
|
|
260
|
+
pp: boolean;
|
|
261
|
+
}>, "many">;
|
|
262
|
+
restrict_mode: z.ZodBoolean;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
ports: {
|
|
265
|
+
port: number;
|
|
266
|
+
pp: boolean;
|
|
267
|
+
}[];
|
|
268
|
+
restrict_mode: boolean;
|
|
269
|
+
}, {
|
|
270
|
+
ports: {
|
|
271
|
+
port: number;
|
|
272
|
+
pp: boolean;
|
|
273
|
+
}[];
|
|
274
|
+
restrict_mode: boolean;
|
|
275
|
+
}>>;
|
|
151
276
|
storage_fs: z.ZodOptional<z.ZodEnum<["ext4", "zfs"]>>;
|
|
152
277
|
pre_launch_script: z.ZodOptional<z.ZodString>;
|
|
153
278
|
env_pubkey: z.ZodOptional<z.ZodString>;
|
|
@@ -166,6 +291,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
166
291
|
manifest_version?: number | undefined;
|
|
167
292
|
kms_enabled?: boolean | undefined;
|
|
168
293
|
tproxy_enabled?: boolean | undefined;
|
|
294
|
+
port_policy?: {
|
|
295
|
+
ports: {
|
|
296
|
+
port: number;
|
|
297
|
+
pp: boolean;
|
|
298
|
+
}[];
|
|
299
|
+
restrict_mode: boolean;
|
|
300
|
+
} | undefined;
|
|
169
301
|
pre_launch_script?: string | undefined;
|
|
170
302
|
env_pubkey?: string | undefined;
|
|
171
303
|
salt?: string | null | undefined;
|
|
@@ -189,6 +321,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
189
321
|
manifest_version?: number | undefined;
|
|
190
322
|
kms_enabled?: boolean | undefined;
|
|
191
323
|
tproxy_enabled?: boolean | undefined;
|
|
324
|
+
port_policy?: {
|
|
325
|
+
ports: {
|
|
326
|
+
port: number;
|
|
327
|
+
pp: boolean;
|
|
328
|
+
}[];
|
|
329
|
+
restrict_mode: boolean;
|
|
330
|
+
} | undefined;
|
|
192
331
|
pre_launch_script?: string | undefined;
|
|
193
332
|
env_pubkey?: string | undefined;
|
|
194
333
|
salt?: string | null | undefined;
|
|
@@ -212,6 +351,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
212
351
|
manifest_version?: number | undefined;
|
|
213
352
|
kms_enabled?: boolean | undefined;
|
|
214
353
|
tproxy_enabled?: boolean | undefined;
|
|
354
|
+
port_policy?: {
|
|
355
|
+
ports: {
|
|
356
|
+
port: number;
|
|
357
|
+
pp: boolean;
|
|
358
|
+
}[];
|
|
359
|
+
restrict_mode: boolean;
|
|
360
|
+
} | undefined;
|
|
215
361
|
pre_launch_script?: string | undefined;
|
|
216
362
|
env_pubkey?: string | undefined;
|
|
217
363
|
salt?: string | null | undefined;
|
|
@@ -235,6 +381,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
235
381
|
manifest_version?: number | undefined;
|
|
236
382
|
kms_enabled?: boolean | undefined;
|
|
237
383
|
tproxy_enabled?: boolean | undefined;
|
|
384
|
+
port_policy?: {
|
|
385
|
+
ports: {
|
|
386
|
+
port: number;
|
|
387
|
+
pp: boolean;
|
|
388
|
+
}[];
|
|
389
|
+
restrict_mode: boolean;
|
|
390
|
+
} | undefined;
|
|
238
391
|
pre_launch_script?: string | undefined;
|
|
239
392
|
env_pubkey?: string | undefined;
|
|
240
393
|
salt?: string | null | undefined;
|
|
@@ -260,6 +413,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
260
413
|
manifest_version?: number | undefined;
|
|
261
414
|
kms_enabled?: boolean | undefined;
|
|
262
415
|
tproxy_enabled?: boolean | undefined;
|
|
416
|
+
port_policy?: {
|
|
417
|
+
ports: {
|
|
418
|
+
port: number;
|
|
419
|
+
pp: boolean;
|
|
420
|
+
}[];
|
|
421
|
+
restrict_mode: boolean;
|
|
422
|
+
} | undefined;
|
|
263
423
|
pre_launch_script?: string | undefined;
|
|
264
424
|
env_pubkey?: string | undefined;
|
|
265
425
|
salt?: string | null | undefined;
|
|
@@ -276,6 +436,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
276
436
|
manifest_version?: number | undefined;
|
|
277
437
|
kms_enabled?: boolean | undefined;
|
|
278
438
|
tproxy_enabled?: boolean | undefined;
|
|
439
|
+
port_policy?: {
|
|
440
|
+
ports: {
|
|
441
|
+
port: number;
|
|
442
|
+
pp: boolean;
|
|
443
|
+
}[];
|
|
444
|
+
restrict_mode: boolean;
|
|
445
|
+
} | undefined;
|
|
279
446
|
pre_launch_script?: string | undefined;
|
|
280
447
|
env_pubkey?: string | undefined;
|
|
281
448
|
salt?: string | null | undefined;
|
|
@@ -300,6 +467,13 @@ export declare const ProvisionCvmComposeFileUpdateRequestSchema: z.ZodEffects<z.
|
|
|
300
467
|
manifest_version?: number | undefined;
|
|
301
468
|
kms_enabled?: boolean | undefined;
|
|
302
469
|
tproxy_enabled?: boolean | undefined;
|
|
470
|
+
port_policy?: {
|
|
471
|
+
ports: {
|
|
472
|
+
port: number;
|
|
473
|
+
pp: boolean;
|
|
474
|
+
}[];
|
|
475
|
+
restrict_mode: boolean;
|
|
476
|
+
} | undefined;
|
|
303
477
|
pre_launch_script?: string | undefined;
|
|
304
478
|
env_pubkey?: string | undefined;
|
|
305
479
|
salt?: string | null | undefined;
|
|
@@ -613,6 +787,13 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
613
787
|
manifest_version?: number | undefined;
|
|
614
788
|
kms_enabled?: boolean | undefined;
|
|
615
789
|
tproxy_enabled?: boolean | undefined;
|
|
790
|
+
port_policy?: {
|
|
791
|
+
ports: {
|
|
792
|
+
port: number;
|
|
793
|
+
pp: boolean;
|
|
794
|
+
}[];
|
|
795
|
+
restrict_mode: boolean;
|
|
796
|
+
} | undefined;
|
|
616
797
|
pre_launch_script?: string | undefined;
|
|
617
798
|
env_pubkey?: string | undefined;
|
|
618
799
|
salt?: string | null | undefined;
|
|
@@ -683,6 +864,13 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
683
864
|
manifest_version?: number | undefined;
|
|
684
865
|
kms_enabled?: boolean | undefined;
|
|
685
866
|
tproxy_enabled?: boolean | undefined;
|
|
867
|
+
port_policy?: {
|
|
868
|
+
ports: {
|
|
869
|
+
port: number;
|
|
870
|
+
pp: boolean;
|
|
871
|
+
}[];
|
|
872
|
+
restrict_mode: boolean;
|
|
873
|
+
} | undefined;
|
|
686
874
|
pre_launch_script?: string | undefined;
|
|
687
875
|
env_pubkey?: string | undefined;
|
|
688
876
|
salt?: string | null | undefined;
|
|
@@ -709,6 +897,13 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
709
897
|
manifest_version?: number | undefined;
|
|
710
898
|
kms_enabled?: boolean | undefined;
|
|
711
899
|
tproxy_enabled?: boolean | undefined;
|
|
900
|
+
port_policy?: {
|
|
901
|
+
ports: {
|
|
902
|
+
port: number;
|
|
903
|
+
pp: boolean;
|
|
904
|
+
}[];
|
|
905
|
+
restrict_mode: boolean;
|
|
906
|
+
} | undefined;
|
|
712
907
|
pre_launch_script?: string | undefined;
|
|
713
908
|
env_pubkey?: string | undefined;
|
|
714
909
|
salt?: string | null | undefined;
|
|
@@ -736,6 +931,13 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
736
931
|
manifest_version?: number | undefined;
|
|
737
932
|
kms_enabled?: boolean | undefined;
|
|
738
933
|
tproxy_enabled?: boolean | undefined;
|
|
934
|
+
port_policy?: {
|
|
935
|
+
ports: {
|
|
936
|
+
port: number;
|
|
937
|
+
pp: boolean;
|
|
938
|
+
}[];
|
|
939
|
+
restrict_mode: boolean;
|
|
940
|
+
} | undefined;
|
|
739
941
|
pre_launch_script?: string | undefined;
|
|
740
942
|
env_pubkey?: string | undefined;
|
|
741
943
|
salt?: string | null | undefined;
|
|
@@ -806,6 +1008,13 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
806
1008
|
manifest_version?: number | undefined;
|
|
807
1009
|
kms_enabled?: boolean | undefined;
|
|
808
1010
|
tproxy_enabled?: boolean | undefined;
|
|
1011
|
+
port_policy?: {
|
|
1012
|
+
ports: {
|
|
1013
|
+
port: number;
|
|
1014
|
+
pp: boolean;
|
|
1015
|
+
}[];
|
|
1016
|
+
restrict_mode: boolean;
|
|
1017
|
+
} | undefined;
|
|
809
1018
|
pre_launch_script?: string | undefined;
|
|
810
1019
|
env_pubkey?: string | undefined;
|
|
811
1020
|
salt?: string | null | undefined;
|
|
@@ -832,6 +1041,13 @@ declare const provisionCvmComposeFileUpdate: {
|
|
|
832
1041
|
manifest_version?: number | undefined;
|
|
833
1042
|
kms_enabled?: boolean | undefined;
|
|
834
1043
|
tproxy_enabled?: boolean | undefined;
|
|
1044
|
+
port_policy?: {
|
|
1045
|
+
ports: {
|
|
1046
|
+
port: number;
|
|
1047
|
+
pp: boolean;
|
|
1048
|
+
}[];
|
|
1049
|
+
restrict_mode: boolean;
|
|
1050
|
+
} | undefined;
|
|
835
1051
|
pre_launch_script?: string | undefined;
|
|
836
1052
|
env_pubkey?: string | undefined;
|
|
837
1053
|
salt?: string | null | undefined;
|
|
@@ -1,6 +1,122 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
export declare const InstanceIdRefreshResultV20260121Schema: z.ZodObject<{
|
|
3
|
+
identifier: z.ZodString;
|
|
4
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
5
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
8
|
+
verified_with_gateway: z.ZodBoolean;
|
|
9
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
} & {
|
|
11
|
+
cvm_id: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
14
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
15
|
+
identifier: string;
|
|
16
|
+
verified_with_gateway: boolean;
|
|
17
|
+
cvm_id: number | null;
|
|
18
|
+
old_instance_id?: string | null | undefined;
|
|
19
|
+
new_instance_id?: string | null | undefined;
|
|
20
|
+
reason?: string | null | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
23
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
24
|
+
identifier: string;
|
|
25
|
+
verified_with_gateway: boolean;
|
|
26
|
+
cvm_id: number | null;
|
|
27
|
+
old_instance_id?: string | null | undefined;
|
|
28
|
+
new_instance_id?: string | null | undefined;
|
|
29
|
+
reason?: string | null | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export type InstanceIdRefreshResultV20260121 = z.infer<typeof InstanceIdRefreshResultV20260121Schema>;
|
|
32
|
+
export declare const InstanceIdRefreshResultV20260522Schema: z.ZodObject<{
|
|
33
|
+
identifier: z.ZodString;
|
|
34
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
35
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
38
|
+
verified_with_gateway: z.ZodBoolean;
|
|
39
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
} & {
|
|
41
|
+
cvm_id: z.ZodNullable<z.ZodString>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
44
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
45
|
+
identifier: string;
|
|
46
|
+
verified_with_gateway: boolean;
|
|
47
|
+
cvm_id: string | null;
|
|
48
|
+
old_instance_id?: string | null | undefined;
|
|
49
|
+
new_instance_id?: string | null | undefined;
|
|
50
|
+
reason?: string | null | undefined;
|
|
51
|
+
}, {
|
|
52
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
53
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
54
|
+
identifier: string;
|
|
55
|
+
verified_with_gateway: boolean;
|
|
56
|
+
cvm_id: string | null;
|
|
57
|
+
old_instance_id?: string | null | undefined;
|
|
58
|
+
new_instance_id?: string | null | undefined;
|
|
59
|
+
reason?: string | null | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
export type InstanceIdRefreshResultV20260522 = z.infer<typeof InstanceIdRefreshResultV20260522Schema>;
|
|
62
|
+
export declare const InstanceIdRefreshResultAnySchema: z.ZodUnion<[z.ZodObject<{
|
|
63
|
+
identifier: z.ZodString;
|
|
64
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
65
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
68
|
+
verified_with_gateway: z.ZodBoolean;
|
|
69
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
} & {
|
|
71
|
+
cvm_id: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
}, "strip", z.ZodTypeAny, {
|
|
73
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
74
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
75
|
+
identifier: string;
|
|
76
|
+
verified_with_gateway: boolean;
|
|
77
|
+
cvm_id: number | null;
|
|
78
|
+
old_instance_id?: string | null | undefined;
|
|
79
|
+
new_instance_id?: string | null | undefined;
|
|
80
|
+
reason?: string | null | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
83
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
84
|
+
identifier: string;
|
|
85
|
+
verified_with_gateway: boolean;
|
|
86
|
+
cvm_id: number | null;
|
|
87
|
+
old_instance_id?: string | null | undefined;
|
|
88
|
+
new_instance_id?: string | null | undefined;
|
|
89
|
+
reason?: string | null | undefined;
|
|
90
|
+
}>, z.ZodObject<{
|
|
91
|
+
identifier: z.ZodString;
|
|
92
|
+
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
93
|
+
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
96
|
+
verified_with_gateway: z.ZodBoolean;
|
|
97
|
+
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
} & {
|
|
99
|
+
cvm_id: z.ZodNullable<z.ZodString>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
102
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
103
|
+
identifier: string;
|
|
104
|
+
verified_with_gateway: boolean;
|
|
105
|
+
cvm_id: string | null;
|
|
106
|
+
old_instance_id?: string | null | undefined;
|
|
107
|
+
new_instance_id?: string | null | undefined;
|
|
108
|
+
reason?: string | null | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
111
|
+
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
112
|
+
identifier: string;
|
|
113
|
+
verified_with_gateway: boolean;
|
|
114
|
+
cvm_id: string | null;
|
|
115
|
+
old_instance_id?: string | null | undefined;
|
|
116
|
+
new_instance_id?: string | null | undefined;
|
|
117
|
+
reason?: string | null | undefined;
|
|
118
|
+
}>]>;
|
|
2
119
|
export declare const InstanceIdRefreshResultSchema: z.ZodObject<{
|
|
3
|
-
cvm_id: z.ZodNumber;
|
|
4
120
|
identifier: z.ZodString;
|
|
5
121
|
status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
|
|
6
122
|
old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -8,21 +124,23 @@ export declare const InstanceIdRefreshResultSchema: z.ZodObject<{
|
|
|
8
124
|
source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
|
|
9
125
|
verified_with_gateway: z.ZodBoolean;
|
|
10
126
|
reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
} & {
|
|
128
|
+
cvm_id: z.ZodNullable<z.ZodString>;
|
|
11
129
|
}, "strip", z.ZodTypeAny, {
|
|
12
130
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
13
131
|
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
14
|
-
cvm_id: number;
|
|
15
132
|
identifier: string;
|
|
16
133
|
verified_with_gateway: boolean;
|
|
134
|
+
cvm_id: string | null;
|
|
17
135
|
old_instance_id?: string | null | undefined;
|
|
18
136
|
new_instance_id?: string | null | undefined;
|
|
19
137
|
reason?: string | null | undefined;
|
|
20
138
|
}, {
|
|
21
139
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
22
140
|
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
23
|
-
cvm_id: number;
|
|
24
141
|
identifier: string;
|
|
25
142
|
verified_with_gateway: boolean;
|
|
143
|
+
cvm_id: string | null;
|
|
26
144
|
old_instance_id?: string | null | undefined;
|
|
27
145
|
new_instance_id?: string | null | undefined;
|
|
28
146
|
reason?: string | null | undefined;
|
|
@@ -59,9 +177,9 @@ declare const refreshCvmInstanceId: {
|
|
|
59
177
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<{
|
|
60
178
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
61
179
|
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
62
|
-
cvm_id: number;
|
|
63
180
|
identifier: string;
|
|
64
181
|
verified_with_gateway: boolean;
|
|
182
|
+
cvm_id: string | null;
|
|
65
183
|
old_instance_id?: string | null | undefined;
|
|
66
184
|
new_instance_id?: string | null | undefined;
|
|
67
185
|
reason?: string | null | undefined;
|
|
@@ -76,9 +194,9 @@ declare const refreshCvmInstanceId: {
|
|
|
76
194
|
(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: any): Promise<import("../..").SafeResult<{
|
|
77
195
|
status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
|
|
78
196
|
source: "gateway" | "teepod_state" | "teepod_info" | "none";
|
|
79
|
-
cvm_id: number;
|
|
80
197
|
identifier: string;
|
|
81
198
|
verified_with_gateway: boolean;
|
|
199
|
+
cvm_id: string | null;
|
|
82
200
|
old_instance_id?: string | null | undefined;
|
|
83
201
|
new_instance_id?: string | null | undefined;
|
|
84
202
|
reason?: string | null | undefined;
|