@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.
Files changed (114) hide show
  1. package/README.md +20 -0
  2. package/dist/actions/api_tokens/revoke_current_api_token.d.ts +47 -0
  3. package/dist/actions/apps/app_launch_token.d.ts +121 -0
  4. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +17 -311
  5. package/dist/actions/apps/check_app_is_allowed.d.ts +20 -32
  6. package/dist/actions/apps/create_app_instance.d.ts +43 -63
  7. package/dist/actions/apps/get_app_attestation.d.ts +113 -779
  8. package/dist/actions/apps/get_app_cvms.d.ts +1 -5
  9. package/dist/actions/apps/get_app_device_allowlist.d.ts +26 -272
  10. package/dist/actions/apps/get_app_filter_options.d.ts +8 -24
  11. package/dist/actions/apps/get_app_info.d.ts +1 -5
  12. package/dist/actions/apps/get_app_list.d.ts +2 -26
  13. package/dist/actions/apps/get_app_revision_detail.d.ts +1 -9
  14. package/dist/actions/apps/get_app_revisions.d.ts +1 -9
  15. package/dist/actions/blockchains/add_compose_hash.d.ts +1 -13
  16. package/dist/actions/blockchains/add_device.d.ts +1 -13
  17. package/dist/actions/blockchains/deploy_app_auth.d.ts +3 -95
  18. package/dist/actions/blockchains/get_allowed_devices.d.ts +2 -12
  19. package/dist/actions/blockchains/remove_device.d.ts +1 -13
  20. package/dist/actions/blockchains/set_allow_any_device.d.ts +1 -13
  21. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +13 -138
  22. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +9 -45
  23. package/dist/actions/cvms/commit_cvm_provision.d.ts +32 -422
  24. package/dist/actions/cvms/commit_cvm_update.d.ts +70 -41
  25. package/dist/actions/cvms/confirm_cvm_patch.d.ts +62 -35
  26. package/dist/actions/cvms/cvm_annotations.d.ts +152 -0
  27. package/dist/actions/cvms/delete_cvm.d.ts +8 -14
  28. package/dist/actions/cvms/get_available_os_images.d.ts +70 -111
  29. package/dist/actions/cvms/get_cvm_attestation.d.ts +34 -392
  30. package/dist/actions/cvms/get_cvm_compose_file.d.ts +384 -614
  31. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +25 -91
  32. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +8 -14
  33. package/dist/actions/cvms/get_cvm_info.d.ts +6 -12
  34. package/dist/actions/cvms/get_cvm_init_scripts.d.ts +92 -0
  35. package/dist/actions/cvms/get_cvm_list.d.ts +7 -13
  36. package/dist/actions/cvms/get_cvm_network.d.ts +18 -50
  37. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +8 -14
  38. package/dist/actions/cvms/get_cvm_state.d.ts +11 -37
  39. package/dist/actions/cvms/get_cvm_stats.d.ts +23 -149
  40. package/dist/actions/cvms/get_cvm_status_batch.d.ts +19 -209
  41. package/dist/actions/cvms/get_cvm_user_config.d.ts +13 -24
  42. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +9 -27
  43. package/dist/actions/cvms/log-time.d.ts +5 -0
  44. package/dist/actions/cvms/logs.d.ts +64 -0
  45. package/dist/actions/cvms/patch_cvm.d.ts +665 -295
  46. package/dist/actions/cvms/provision_cvm.d.ts +329 -1561
  47. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +550 -953
  48. package/dist/actions/cvms/put_cvm_init_scripts.d.ts +150 -0
  49. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +74 -131
  50. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +77 -297
  51. package/dist/actions/cvms/replicate_cvm.d.ts +7 -21
  52. package/dist/actions/cvms/restart_cvm.d.ts +3 -18
  53. package/dist/actions/cvms/shutdown_cvm.d.ts +6 -12
  54. package/dist/actions/cvms/start_cvm.d.ts +6 -12
  55. package/dist/actions/cvms/stop_cvm.d.ts +6 -12
  56. package/dist/actions/cvms/update_cvm_envs.d.ts +136 -203
  57. package/dist/actions/cvms/update_cvm_resources.d.ts +82 -48
  58. package/dist/actions/cvms/update_cvm_visibility.d.ts +90 -132
  59. package/dist/actions/cvms/update_docker_compose.d.ts +127 -202
  60. package/dist/actions/cvms/update_os_image.d.ts +55 -28
  61. package/dist/actions/cvms/update_prelaunch_script.d.ts +127 -202
  62. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +118 -193
  63. package/dist/actions/cvms/watch_cvm_state.d.ts +5 -15
  64. package/dist/actions/get_available_nodes.d.ts +186 -1067
  65. package/dist/actions/get_cvm_create_resources.d.ts +138 -2489
  66. package/dist/actions/index.d.ts +9 -2
  67. package/dist/actions/kms/get_app_env_encrypt_pubkey.d.ts +11 -23
  68. package/dist/actions/kms/get_kms_contract.d.ts +25 -27
  69. package/dist/actions/kms/get_kms_info.d.ts +3 -7
  70. package/dist/actions/kms/get_kms_list.d.ts +34 -88
  71. package/dist/actions/kms/get_kms_onchain_detail.d.ts +66 -664
  72. package/dist/actions/kms/list_kms_contract_nodes.d.ts +21 -53
  73. package/dist/actions/kms/list_kms_contracts.d.ts +33 -87
  74. package/dist/actions/kms/next_app_ids.d.ts +5 -25
  75. package/dist/actions/list-instance-types.d.ts +77 -257
  76. package/dist/actions/os_images/get_os_images.d.ts +38 -152
  77. package/dist/actions/ssh_keys/create_ssh_key.d.ts +11 -17
  78. package/dist/actions/ssh_keys/delete_ssh_key.d.ts +3 -7
  79. package/dist/actions/ssh_keys/get_cvm_ssh_keys.d.ts +113 -0
  80. package/dist/actions/ssh_keys/import_github_profile.d.ts +7 -21
  81. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +2 -50
  82. package/dist/actions/ssh_keys/sync_github_ssh_keys.d.ts +8 -20
  83. package/dist/actions/ssh_keys/update_cvm_ssh_keys.d.ts +140 -0
  84. package/dist/actions/workspaces/get_workspace.d.ts +32 -28
  85. package/dist/actions/workspaces/get_workspace_nodes.d.ts +34 -321
  86. package/dist/actions/workspaces/get_workspace_quotas.d.ts +107 -1021
  87. package/dist/actions/workspaces/list_workspaces.d.ts +67 -369
  88. package/dist/client.d.ts +23 -4
  89. package/dist/create-client.d.ts +1900 -1
  90. package/dist/credentials/current_user_v20251028.d.ts +1 -17
  91. package/dist/credentials/current_user_v20260121.d.ts +22 -227
  92. package/dist/index.d.ts +1 -1
  93. package/dist/index.js +6004 -4537
  94. package/dist/index.mjs +6033 -4625
  95. package/dist/types/app_compose.d.ts +108 -221
  96. package/dist/types/app_info_v20251028.d.ts +22 -1067
  97. package/dist/types/app_info_v20260121.d.ts +442 -8900
  98. package/dist/types/app_revision.d.ts +15 -371
  99. package/dist/types/client.d.ts +16 -0
  100. package/dist/types/common.d.ts +6 -0
  101. package/dist/types/cvm_id.d.ts +12 -57
  102. package/dist/types/cvm_info.d.ts +33 -460
  103. package/dist/types/cvm_info_v20251028.d.ts +100 -821
  104. package/dist/types/cvm_info_v20260121.d.ts +254 -3160
  105. package/dist/types/kms_contract.d.ts +2 -32
  106. package/dist/types/kms_info.d.ts +34 -68
  107. package/dist/user-agent.d.ts +30 -0
  108. package/dist/utils/define-action.d.ts +4 -4
  109. package/dist/utils/errors.d.ts +4 -36
  110. package/dist/utils/get_compose_hash.d.ts +36 -5
  111. package/dist/utils/get_mr_config_id.d.ts +94 -3
  112. package/dist/utils/index.d.ts +1 -1
  113. package/dist/utils/placement-request.d.ts +3 -0
  114. package/package.json +4 -4
@@ -3,27 +3,13 @@ import { type Client, type SafeResult } from "../../client";
3
3
  import type { ApiVersion } from "../../types/client";
4
4
  import type { RefreshCvmInstanceIdsVersionedResponse } from "../../types/version-mappings";
5
5
  export declare const RefreshCvmInstanceIdsRequestSchema: z.ZodObject<{
6
- cvm_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ cvm_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
7
  running_only: z.ZodOptional<z.ZodBoolean>;
8
8
  missing_only: z.ZodOptional<z.ZodBoolean>;
9
9
  overwrite: z.ZodOptional<z.ZodBoolean>;
10
10
  limit: z.ZodOptional<z.ZodNumber>;
11
11
  dry_run: z.ZodOptional<z.ZodBoolean>;
12
- }, "strict", z.ZodTypeAny, {
13
- cvm_ids?: string[] | undefined;
14
- overwrite?: boolean | undefined;
15
- dry_run?: boolean | undefined;
16
- running_only?: boolean | undefined;
17
- missing_only?: boolean | undefined;
18
- limit?: number | undefined;
19
- }, {
20
- cvm_ids?: string[] | undefined;
21
- overwrite?: boolean | undefined;
22
- dry_run?: boolean | undefined;
23
- running_only?: boolean | undefined;
24
- missing_only?: boolean | undefined;
25
- limit?: number | undefined;
26
- }>;
12
+ }, z.core.$strict>;
27
13
  export type RefreshCvmInstanceIdsRequest = z.infer<typeof RefreshCvmInstanceIdsRequestSchema>;
28
14
  export declare const RefreshCvmInstanceIdsResponseV20260121Schema: z.ZodObject<{
29
15
  total: z.ZodNumber;
@@ -33,73 +19,28 @@ export declare const RefreshCvmInstanceIdsResponseV20260121Schema: z.ZodObject<{
33
19
  skipped: z.ZodNumber;
34
20
  conflicts: z.ZodNumber;
35
21
  errors: z.ZodNumber;
36
- } & {
37
22
  items: z.ZodArray<z.ZodObject<{
38
23
  identifier: z.ZodString;
39
- status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
24
+ status: z.ZodEnum<{
25
+ error: "error";
26
+ updated: "updated";
27
+ unchanged: "unchanged";
28
+ skipped: "skipped";
29
+ conflict: "conflict";
30
+ }>;
40
31
  old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
32
  new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
33
+ source: z.ZodEnum<{
34
+ none: "none";
35
+ teepod_state: "teepod_state";
36
+ teepod_info: "teepod_info";
37
+ gateway: "gateway";
38
+ }>;
43
39
  verified_with_gateway: z.ZodBoolean;
44
40
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
- } & {
46
41
  cvm_id: z.ZodNullable<z.ZodNumber>;
47
- }, "strip", z.ZodTypeAny, {
48
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
49
- cvm_id: number | null;
50
- identifier: string;
51
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
52
- verified_with_gateway: boolean;
53
- old_instance_id?: string | null | undefined;
54
- new_instance_id?: string | null | undefined;
55
- reason?: string | null | undefined;
56
- }, {
57
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
58
- cvm_id: number | null;
59
- identifier: string;
60
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
61
- verified_with_gateway: boolean;
62
- old_instance_id?: string | null | undefined;
63
- new_instance_id?: string | null | undefined;
64
- reason?: string | null | undefined;
65
- }>, "many">;
66
- }, "strip", z.ZodTypeAny, {
67
- errors: number;
68
- total: number;
69
- updated: number;
70
- unchanged: number;
71
- skipped: number;
72
- scanned: number;
73
- conflicts: number;
74
- items: {
75
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
76
- cvm_id: number | null;
77
- identifier: string;
78
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
79
- verified_with_gateway: boolean;
80
- old_instance_id?: string | null | undefined;
81
- new_instance_id?: string | null | undefined;
82
- reason?: string | null | undefined;
83
- }[];
84
- }, {
85
- errors: number;
86
- total: number;
87
- updated: number;
88
- unchanged: number;
89
- skipped: number;
90
- scanned: number;
91
- conflicts: number;
92
- items: {
93
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
94
- cvm_id: number | null;
95
- identifier: string;
96
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
97
- verified_with_gateway: boolean;
98
- old_instance_id?: string | null | undefined;
99
- new_instance_id?: string | null | undefined;
100
- reason?: string | null | undefined;
101
- }[];
102
- }>;
42
+ }, z.core.$strip>>;
43
+ }, z.core.$strip>;
103
44
  export type RefreshCvmInstanceIdsResponseV20260121 = z.infer<typeof RefreshCvmInstanceIdsResponseV20260121Schema>;
104
45
  export declare const RefreshCvmInstanceIdsResponseV20260522Schema: z.ZodObject<{
105
46
  total: z.ZodNumber;
@@ -109,73 +50,28 @@ export declare const RefreshCvmInstanceIdsResponseV20260522Schema: z.ZodObject<{
109
50
  skipped: z.ZodNumber;
110
51
  conflicts: z.ZodNumber;
111
52
  errors: z.ZodNumber;
112
- } & {
113
53
  items: z.ZodArray<z.ZodObject<{
114
54
  identifier: z.ZodString;
115
- status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
55
+ status: z.ZodEnum<{
56
+ error: "error";
57
+ updated: "updated";
58
+ unchanged: "unchanged";
59
+ skipped: "skipped";
60
+ conflict: "conflict";
61
+ }>;
116
62
  old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
63
  new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
- source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
64
+ source: z.ZodEnum<{
65
+ none: "none";
66
+ teepod_state: "teepod_state";
67
+ teepod_info: "teepod_info";
68
+ gateway: "gateway";
69
+ }>;
119
70
  verified_with_gateway: z.ZodBoolean;
120
71
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
- } & {
122
72
  cvm_id: z.ZodNullable<z.ZodString>;
123
- }, "strip", z.ZodTypeAny, {
124
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
125
- cvm_id: string | null;
126
- identifier: string;
127
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
128
- verified_with_gateway: boolean;
129
- old_instance_id?: string | null | undefined;
130
- new_instance_id?: string | null | undefined;
131
- reason?: string | null | undefined;
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
- }>, "many">;
142
- }, "strip", z.ZodTypeAny, {
143
- errors: number;
144
- total: number;
145
- updated: number;
146
- unchanged: number;
147
- skipped: number;
148
- scanned: number;
149
- conflicts: number;
150
- items: {
151
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
152
- cvm_id: string | null;
153
- identifier: string;
154
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
155
- verified_with_gateway: boolean;
156
- old_instance_id?: string | null | undefined;
157
- new_instance_id?: string | null | undefined;
158
- reason?: string | null | undefined;
159
- }[];
160
- }, {
161
- errors: number;
162
- total: number;
163
- updated: number;
164
- unchanged: number;
165
- skipped: number;
166
- scanned: number;
167
- conflicts: number;
168
- items: {
169
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
170
- cvm_id: string | null;
171
- identifier: string;
172
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
173
- verified_with_gateway: boolean;
174
- old_instance_id?: string | null | undefined;
175
- new_instance_id?: string | null | undefined;
176
- reason?: string | null | undefined;
177
- }[];
178
- }>;
73
+ }, z.core.$strip>>;
74
+ }, z.core.$strip>;
179
75
  export type RefreshCvmInstanceIdsResponseV20260522 = z.infer<typeof RefreshCvmInstanceIdsResponseV20260522Schema>;
180
76
  export declare const RefreshCvmInstanceIdsResponseAnySchema: z.ZodObject<{
181
77
  total: z.ZodNumber;
@@ -185,119 +81,48 @@ export declare const RefreshCvmInstanceIdsResponseAnySchema: z.ZodObject<{
185
81
  skipped: z.ZodNumber;
186
82
  conflicts: z.ZodNumber;
187
83
  errors: z.ZodNumber;
188
- } & {
189
- items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
84
+ items: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
190
85
  identifier: z.ZodString;
191
- status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
86
+ status: z.ZodEnum<{
87
+ error: "error";
88
+ updated: "updated";
89
+ unchanged: "unchanged";
90
+ skipped: "skipped";
91
+ conflict: "conflict";
92
+ }>;
192
93
  old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
94
  new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
- source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
95
+ source: z.ZodEnum<{
96
+ none: "none";
97
+ teepod_state: "teepod_state";
98
+ teepod_info: "teepod_info";
99
+ gateway: "gateway";
100
+ }>;
195
101
  verified_with_gateway: z.ZodBoolean;
196
102
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
- } & {
198
103
  cvm_id: z.ZodNullable<z.ZodNumber>;
199
- }, "strip", z.ZodTypeAny, {
200
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
201
- cvm_id: number | null;
202
- identifier: string;
203
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
204
- verified_with_gateway: boolean;
205
- old_instance_id?: string | null | undefined;
206
- new_instance_id?: string | null | undefined;
207
- reason?: string | null | undefined;
208
- }, {
209
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
210
- cvm_id: number | null;
211
- identifier: string;
212
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
213
- verified_with_gateway: boolean;
214
- old_instance_id?: string | null | undefined;
215
- new_instance_id?: string | null | undefined;
216
- reason?: string | null | undefined;
217
- }>, z.ZodObject<{
104
+ }, z.core.$strip>, z.ZodObject<{
218
105
  identifier: z.ZodString;
219
- status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
106
+ status: z.ZodEnum<{
107
+ error: "error";
108
+ updated: "updated";
109
+ unchanged: "unchanged";
110
+ skipped: "skipped";
111
+ conflict: "conflict";
112
+ }>;
220
113
  old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
114
  new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
- source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
115
+ source: z.ZodEnum<{
116
+ none: "none";
117
+ teepod_state: "teepod_state";
118
+ teepod_info: "teepod_info";
119
+ gateway: "gateway";
120
+ }>;
223
121
  verified_with_gateway: z.ZodBoolean;
224
122
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
- } & {
226
123
  cvm_id: z.ZodNullable<z.ZodString>;
227
- }, "strip", z.ZodTypeAny, {
228
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
229
- cvm_id: string | null;
230
- identifier: string;
231
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
232
- verified_with_gateway: boolean;
233
- old_instance_id?: string | null | undefined;
234
- new_instance_id?: string | null | undefined;
235
- reason?: string | null | undefined;
236
- }, {
237
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
238
- cvm_id: string | null;
239
- identifier: string;
240
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
241
- verified_with_gateway: boolean;
242
- old_instance_id?: string | null | undefined;
243
- new_instance_id?: string | null | undefined;
244
- reason?: string | null | undefined;
245
- }>]>, "many">;
246
- }, "strip", z.ZodTypeAny, {
247
- errors: number;
248
- total: number;
249
- updated: number;
250
- unchanged: number;
251
- skipped: number;
252
- scanned: number;
253
- conflicts: number;
254
- items: ({
255
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
256
- cvm_id: number | null;
257
- identifier: string;
258
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
259
- verified_with_gateway: boolean;
260
- old_instance_id?: string | null | undefined;
261
- new_instance_id?: string | null | undefined;
262
- reason?: string | null | undefined;
263
- } | {
264
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
265
- cvm_id: string | null;
266
- identifier: string;
267
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
268
- verified_with_gateway: boolean;
269
- old_instance_id?: string | null | undefined;
270
- new_instance_id?: string | null | undefined;
271
- reason?: string | null | undefined;
272
- })[];
273
- }, {
274
- errors: number;
275
- total: number;
276
- updated: number;
277
- unchanged: number;
278
- skipped: number;
279
- scanned: number;
280
- conflicts: number;
281
- items: ({
282
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
283
- cvm_id: number | null;
284
- identifier: string;
285
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
286
- verified_with_gateway: boolean;
287
- old_instance_id?: string | null | undefined;
288
- new_instance_id?: string | null | undefined;
289
- reason?: string | null | undefined;
290
- } | {
291
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
292
- cvm_id: string | null;
293
- identifier: string;
294
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
295
- verified_with_gateway: boolean;
296
- old_instance_id?: string | null | undefined;
297
- new_instance_id?: string | null | undefined;
298
- reason?: string | null | undefined;
299
- })[];
300
- }>;
124
+ }, z.core.$strip>]>>;
125
+ }, z.core.$strip>;
301
126
  export declare const RefreshCvmInstanceIdsResponseSchema: z.ZodObject<{
302
127
  total: z.ZodNumber;
303
128
  scanned: z.ZodNumber;
@@ -306,73 +131,28 @@ export declare const RefreshCvmInstanceIdsResponseSchema: z.ZodObject<{
306
131
  skipped: z.ZodNumber;
307
132
  conflicts: z.ZodNumber;
308
133
  errors: z.ZodNumber;
309
- } & {
310
134
  items: z.ZodArray<z.ZodObject<{
311
135
  identifier: z.ZodString;
312
- status: z.ZodEnum<["updated", "unchanged", "skipped", "conflict", "error"]>;
136
+ status: z.ZodEnum<{
137
+ error: "error";
138
+ updated: "updated";
139
+ unchanged: "unchanged";
140
+ skipped: "skipped";
141
+ conflict: "conflict";
142
+ }>;
313
143
  old_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
144
  new_instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
- source: z.ZodEnum<["teepod_state", "teepod_info", "gateway", "none"]>;
145
+ source: z.ZodEnum<{
146
+ none: "none";
147
+ teepod_state: "teepod_state";
148
+ teepod_info: "teepod_info";
149
+ gateway: "gateway";
150
+ }>;
316
151
  verified_with_gateway: z.ZodBoolean;
317
152
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
- } & {
319
153
  cvm_id: z.ZodNullable<z.ZodString>;
320
- }, "strip", z.ZodTypeAny, {
321
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
322
- cvm_id: string | null;
323
- identifier: string;
324
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
325
- verified_with_gateway: boolean;
326
- old_instance_id?: string | null | undefined;
327
- new_instance_id?: string | null | undefined;
328
- reason?: string | null | undefined;
329
- }, {
330
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
331
- cvm_id: string | null;
332
- identifier: string;
333
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
334
- verified_with_gateway: boolean;
335
- old_instance_id?: string | null | undefined;
336
- new_instance_id?: string | null | undefined;
337
- reason?: string | null | undefined;
338
- }>, "many">;
339
- }, "strip", z.ZodTypeAny, {
340
- errors: number;
341
- total: number;
342
- updated: number;
343
- unchanged: number;
344
- skipped: number;
345
- scanned: number;
346
- conflicts: number;
347
- items: {
348
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
349
- cvm_id: string | null;
350
- identifier: string;
351
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
352
- verified_with_gateway: boolean;
353
- old_instance_id?: string | null | undefined;
354
- new_instance_id?: string | null | undefined;
355
- reason?: string | null | undefined;
356
- }[];
357
- }, {
358
- errors: number;
359
- total: number;
360
- updated: number;
361
- unchanged: number;
362
- skipped: number;
363
- scanned: number;
364
- conflicts: number;
365
- items: {
366
- status: "error" | "updated" | "unchanged" | "skipped" | "conflict";
367
- cvm_id: string | null;
368
- identifier: string;
369
- source: "teepod_state" | "teepod_info" | "gateway" | "none";
370
- verified_with_gateway: boolean;
371
- old_instance_id?: string | null | undefined;
372
- new_instance_id?: string | null | undefined;
373
- reason?: string | null | undefined;
374
- }[];
375
- }>;
154
+ }, z.core.$strip>>;
155
+ }, z.core.$strip>;
376
156
  export type RefreshCvmInstanceIdsResponse = z.infer<typeof RefreshCvmInstanceIdsResponseSchema>;
377
157
  export declare function refreshCvmInstanceIds<V extends ApiVersion>(client: Client<V>, request: RefreshCvmInstanceIdsRequest): Promise<RefreshCvmInstanceIdsVersionedResponse<V>>;
378
158
  export declare function safeRefreshCvmInstanceIds<V extends ApiVersion>(client: Client<V>, request: RefreshCvmInstanceIdsRequest): Promise<SafeResult<RefreshCvmInstanceIdsVersionedResponse<V>>>;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { type Client, type SafeResult } from "../../client";
2
+ import type { Client, SafeResult } from "../../client";
3
3
  import type { ApiVersion } from "../../types/client";
4
4
  import { type VMForVersion } from "../../types/cvm_info";
5
5
  /**
@@ -17,7 +17,7 @@ import { type VMForVersion } from "../../types/cvm_info";
17
17
  * console.log(replica.vm_uuid); // new replica UUID
18
18
  *
19
19
  * // Replicate to a specific node
20
- * const replica2 = await replicateCvm(client, { id: 'my-cvm-id', node_id: 42 });
20
+ * const replica2 = await replicateCvm(client, { id: 'my-cvm-id', node: 'usw5' });
21
21
  * ```
22
22
  *
23
23
  * ## Safe Version
@@ -33,29 +33,15 @@ import { type VMForVersion } from "../../types/cvm_info";
33
33
  * }
34
34
  * ```
35
35
  */
36
- export declare const ReplicateCvmRequestSchema: z.ZodEffects<z.ZodObject<{
36
+ export declare const ReplicateCvmRequestSchema: z.ZodPipe<z.ZodUnknown, z.ZodObject<{
37
37
  id: z.ZodOptional<z.ZodString>;
38
38
  uuid: z.ZodOptional<z.ZodString>;
39
39
  app_id: z.ZodOptional<z.ZodString>;
40
40
  instance_id: z.ZodOptional<z.ZodString>;
41
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
42
- } & {
43
- node_id: z.ZodOptional<z.ZodNumber>;
44
- }, "strip", z.ZodTypeAny, {
45
- name?: string | undefined;
46
- id?: string | undefined;
47
- uuid?: string | undefined;
48
- app_id?: string | undefined;
49
- instance_id?: string | undefined;
50
- node_id?: number | undefined;
51
- }, {
52
- name?: string | undefined;
53
- id?: string | undefined;
54
- uuid?: string | undefined;
55
- app_id?: string | undefined;
56
- instance_id?: string | undefined;
57
- node_id?: number | undefined;
58
- }>, any, any>;
41
+ name: z.ZodOptional<z.ZodString>;
42
+ node: z.ZodOptional<z.ZodString>;
43
+ os_image: z.ZodOptional<z.ZodString>;
44
+ }, z.core.$strip>>;
59
45
  export type ReplicateCvmRequest = z.infer<typeof ReplicateCvmRequestSchema>;
60
46
  export declare function replicateCvm<V extends ApiVersion>(client: Client<V>, request: ReplicateCvmRequest): Promise<VMForVersion<V>>;
61
47
  export declare function safeReplicateCvm<V extends ApiVersion>(client: Client<V>, request: ReplicateCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -33,29 +33,14 @@ import { type VMForVersion } from "../../types/cvm_info";
33
33
  * }
34
34
  * ```
35
35
  */
36
- export declare const RestartCvmRequestSchema: z.ZodEffects<z.ZodObject<{
36
+ export declare const RestartCvmRequestSchema: z.ZodObject<{
37
37
  id: z.ZodOptional<z.ZodString>;
38
38
  uuid: z.ZodOptional<z.ZodString>;
39
39
  app_id: z.ZodOptional<z.ZodString>;
40
40
  instance_id: z.ZodOptional<z.ZodString>;
41
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
42
- } & {
41
+ name: z.ZodOptional<z.ZodString>;
43
42
  force: z.ZodOptional<z.ZodBoolean>;
44
- }, "strip", z.ZodTypeAny, {
45
- name?: string | undefined;
46
- id?: string | undefined;
47
- uuid?: string | undefined;
48
- app_id?: string | undefined;
49
- instance_id?: string | undefined;
50
- force?: boolean | undefined;
51
- }, {
52
- name?: string | undefined;
53
- id?: string | undefined;
54
- uuid?: string | undefined;
55
- app_id?: string | undefined;
56
- instance_id?: string | undefined;
57
- force?: boolean | undefined;
58
- }>, any, any>;
43
+ }, z.core.$strip>;
59
44
  export type RestartCvmRequest = z.infer<typeof RestartCvmRequestSchema>;
60
45
  export declare function restartCvm<V extends ApiVersion>(client: Client<V>, request: RestartCvmRequest): Promise<VMForVersion<V>>;
61
46
  export declare function safeRestartCvm<V extends ApiVersion>(client: Client<V>, request: RestartCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -30,27 +30,21 @@ import { type VMForVersion } from "../../types/cvm_info";
30
30
  * }
31
31
  * ```
32
32
  */
33
- export declare const ShutdownCvmRequestSchema: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodObject<{
33
+ export declare const ShutdownCvmRequestSchema: import("zod").ZodPipe<import("zod").ZodObject<{
34
34
  id: import("zod").ZodOptional<import("zod").ZodString>;
35
35
  uuid: import("zod").ZodOptional<import("zod").ZodString>;
36
36
  app_id: import("zod").ZodOptional<import("zod").ZodString>;
37
37
  instance_id: import("zod").ZodOptional<import("zod").ZodString>;
38
- name: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
39
- }, "strip", import("zod").ZodTypeAny, {
40
- name?: string | undefined;
41
- id?: string | undefined;
42
- uuid?: string | undefined;
43
- app_id?: string | undefined;
44
- instance_id?: string | undefined;
38
+ name: import("zod").ZodOptional<import("zod").ZodString>;
39
+ }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
40
+ cvmId: string;
45
41
  }, {
46
- name?: string | undefined;
47
42
  id?: string | undefined;
48
43
  uuid?: string | undefined;
49
44
  app_id?: string | undefined;
50
45
  instance_id?: string | undefined;
51
- }>, any, any>, {
52
- cvmId: any;
53
- }, any>;
46
+ name?: string | undefined;
47
+ }>>;
54
48
  export type ShutdownCvmRequest = CvmIdInput;
55
49
  export declare function shutdownCvm<V extends ApiVersion>(client: Client<V>, request: ShutdownCvmRequest): Promise<VMForVersion<V>>;
56
50
  export declare function safeShutdownCvm<V extends ApiVersion>(client: Client<V>, request: ShutdownCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -29,27 +29,21 @@ import { type VMForVersion } from "../../types/cvm_info";
29
29
  * }
30
30
  * ```
31
31
  */
32
- export declare const StartCvmRequestSchema: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodObject<{
32
+ export declare const StartCvmRequestSchema: import("zod").ZodPipe<import("zod").ZodObject<{
33
33
  id: import("zod").ZodOptional<import("zod").ZodString>;
34
34
  uuid: import("zod").ZodOptional<import("zod").ZodString>;
35
35
  app_id: import("zod").ZodOptional<import("zod").ZodString>;
36
36
  instance_id: import("zod").ZodOptional<import("zod").ZodString>;
37
- name: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
38
- }, "strip", import("zod").ZodTypeAny, {
39
- name?: string | undefined;
40
- id?: string | undefined;
41
- uuid?: string | undefined;
42
- app_id?: string | undefined;
43
- instance_id?: string | undefined;
37
+ name: import("zod").ZodOptional<import("zod").ZodString>;
38
+ }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
39
+ cvmId: string;
44
40
  }, {
45
- name?: string | undefined;
46
41
  id?: string | undefined;
47
42
  uuid?: string | undefined;
48
43
  app_id?: string | undefined;
49
44
  instance_id?: string | undefined;
50
- }>, any, any>, {
51
- cvmId: any;
52
- }, any>;
45
+ name?: string | undefined;
46
+ }>>;
53
47
  export type StartCvmRequest = CvmIdInput;
54
48
  export declare function startCvm<V extends ApiVersion>(client: Client<V>, request: StartCvmRequest): Promise<VMForVersion<V>>;
55
49
  export declare function safeStartCvm<V extends ApiVersion>(client: Client<V>, request: StartCvmRequest): Promise<SafeResult<VMForVersion<V>>>;
@@ -30,27 +30,21 @@ import { type VMForVersion } from "../../types/cvm_info";
30
30
  * }
31
31
  * ```
32
32
  */
33
- export declare const StopCvmRequestSchema: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodObject<{
33
+ export declare const StopCvmRequestSchema: import("zod").ZodPipe<import("zod").ZodObject<{
34
34
  id: import("zod").ZodOptional<import("zod").ZodString>;
35
35
  uuid: import("zod").ZodOptional<import("zod").ZodString>;
36
36
  app_id: import("zod").ZodOptional<import("zod").ZodString>;
37
37
  instance_id: import("zod").ZodOptional<import("zod").ZodString>;
38
- name: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodString, string, string>>;
39
- }, "strip", import("zod").ZodTypeAny, {
40
- name?: string | undefined;
41
- id?: string | undefined;
42
- uuid?: string | undefined;
43
- app_id?: string | undefined;
44
- instance_id?: string | undefined;
38
+ name: import("zod").ZodOptional<import("zod").ZodString>;
39
+ }, import("zod/v4/core").$strip>, import("zod").ZodTransform<{
40
+ cvmId: string;
45
41
  }, {
46
- name?: string | undefined;
47
42
  id?: string | undefined;
48
43
  uuid?: string | undefined;
49
44
  app_id?: string | undefined;
50
45
  instance_id?: string | undefined;
51
- }>, any, any>, {
52
- cvmId: any;
53
- }, any>;
46
+ name?: string | undefined;
47
+ }>>;
54
48
  export type StopCvmRequest = CvmIdInput;
55
49
  export declare function stopCvm<V extends ApiVersion>(client: Client<V>, request: StopCvmRequest): Promise<VMForVersion<V>>;
56
50
  export declare function safeStopCvm<V extends ApiVersion>(client: Client<V>, request: StopCvmRequest): Promise<SafeResult<VMForVersion<V>>>;