@phala/cloud 0.2.10 → 0.3.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 (59) hide show
  1. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +100 -161
  2. package/dist/actions/apps/check_app_is_allowed.d.ts +14 -14
  3. package/dist/actions/apps/create_app_instance.d.ts +22 -22
  4. package/dist/actions/apps/get_app_attestation.d.ts +32 -32
  5. package/dist/actions/apps/get_app_device_allowlist.d.ts +51 -50
  6. package/dist/actions/apps/get_app_list.d.ts +2 -2
  7. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +40 -102
  8. package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
  9. package/dist/actions/cvms/commit_cvm_provision.d.ts +5 -135
  10. package/dist/actions/cvms/commit_cvm_update.d.ts +2 -2
  11. package/dist/actions/cvms/confirm_cvm_patch.d.ts +2 -2
  12. package/dist/actions/cvms/delete_cvm.d.ts +2 -2
  13. package/dist/actions/cvms/get_available_os_images.d.ts +2 -2
  14. package/dist/actions/cvms/get_cvm_attestation.d.ts +2 -2
  15. package/dist/actions/cvms/get_cvm_compose_file.d.ts +10 -10
  16. package/dist/actions/cvms/get_cvm_containers_stats.d.ts +10 -10
  17. package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
  18. package/dist/actions/cvms/get_cvm_info.d.ts +2 -2
  19. package/dist/actions/cvms/get_cvm_list.d.ts +4 -4
  20. package/dist/actions/cvms/get_cvm_network.d.ts +2 -2
  21. package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +2 -2
  22. package/dist/actions/cvms/get_cvm_state.d.ts +6 -6
  23. package/dist/actions/cvms/get_cvm_stats.d.ts +2 -2
  24. package/dist/actions/cvms/get_cvm_status_batch.d.ts +6 -6
  25. package/dist/actions/cvms/get_cvm_user_config.d.ts +2 -2
  26. package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +2 -2
  27. package/dist/actions/cvms/patch_cvm.d.ts +18 -18
  28. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +38 -38
  29. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +27 -58
  30. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +120 -165
  31. package/dist/actions/cvms/replicate_cvm.d.ts +7 -72
  32. package/dist/actions/cvms/restart_cvm.d.ts +7 -72
  33. package/dist/actions/cvms/shutdown_cvm.d.ts +9 -72
  34. package/dist/actions/cvms/start_cvm.d.ts +7 -72
  35. package/dist/actions/cvms/stop_cvm.d.ts +7 -72
  36. package/dist/actions/cvms/update_cvm_envs.d.ts +20 -20
  37. package/dist/actions/cvms/update_cvm_resources.d.ts +2 -2
  38. package/dist/actions/cvms/update_cvm_visibility.d.ts +24 -24
  39. package/dist/actions/cvms/update_docker_compose.d.ts +20 -20
  40. package/dist/actions/cvms/update_os_image.d.ts +2 -2
  41. package/dist/actions/cvms/update_prelaunch_script.d.ts +20 -20
  42. package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +20 -20
  43. package/dist/actions/kms/get_kms_list.d.ts +10 -10
  44. package/dist/actions/kms/next_app_ids.d.ts +6 -6
  45. package/dist/actions/list-instance-types.d.ts +12 -12
  46. package/dist/actions/ssh_keys/create_ssh_key.d.ts +2 -2
  47. package/dist/actions/ssh_keys/list_ssh_keys.d.ts +4 -4
  48. package/dist/actions/workspaces/get_workspace_nodes.d.ts +14 -14
  49. package/dist/index.js +254 -45
  50. package/dist/index.mjs +254 -45
  51. package/dist/types/app_info_v20251028.d.ts +128 -128
  52. package/dist/types/app_info_v20260121.d.ts +490 -490
  53. package/dist/types/app_revision.d.ts +8 -8
  54. package/dist/types/cvm_id.d.ts +6 -6
  55. package/dist/types/cvm_info.d.ts +98 -98
  56. package/dist/types/cvm_info_v20251028.d.ts +47 -47
  57. package/dist/types/cvm_info_v20260121.d.ts +148 -148
  58. package/dist/types/version-mappings.d.ts +37 -0
  59. package/package.json +1 -1
@@ -12,21 +12,21 @@ export declare const NextAppIdsSchema: z.ZodObject<{
12
12
  app_id: z.ZodString;
13
13
  nonce: z.ZodNumber;
14
14
  }, "strip", z.ZodTypeAny, {
15
- nonce: number;
16
15
  app_id: string;
17
- }, {
18
16
  nonce: number;
17
+ }, {
19
18
  app_id: string;
19
+ nonce: number;
20
20
  }>, "many">;
21
21
  }, "strict", z.ZodTypeAny, {
22
22
  app_ids: {
23
- nonce: number;
24
23
  app_id: string;
24
+ nonce: number;
25
25
  }[];
26
26
  }, {
27
27
  app_ids: {
28
- nonce: number;
29
28
  app_id: string;
29
+ nonce: number;
30
30
  }[];
31
31
  }>;
32
32
  export type NextAppIdsRequest = z.infer<typeof NextAppIdsRequestSchema>;
@@ -36,8 +36,8 @@ declare const nextAppIds: {
36
36
  counts: number;
37
37
  }): Promise<{
38
38
  app_ids: {
39
- nonce: number;
40
39
  app_id: string;
40
+ nonce: number;
41
41
  }[];
42
42
  }>;
43
43
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
@@ -55,8 +55,8 @@ declare const nextAppIds: {
55
55
  counts: number;
56
56
  }): Promise<import("../..").SafeResult<{
57
57
  app_ids: {
58
- nonce: number;
59
58
  app_id: string;
59
+ nonce: number;
60
60
  }[];
61
61
  }>>;
62
62
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: {
@@ -67,6 +67,7 @@ export declare const FamilyGroupSchema: z.ZodObject<{
67
67
  total: z.ZodNumber;
68
68
  }, "strict", z.ZodTypeAny, {
69
69
  name: string;
70
+ total: number;
70
71
  items: z.objectOutputType<{
71
72
  id: z.ZodString;
72
73
  name: z.ZodString;
@@ -78,9 +79,9 @@ export declare const FamilyGroupSchema: z.ZodObject<{
78
79
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
79
80
  family: z.ZodNullable<z.ZodString>;
80
81
  }, z.ZodTypeAny, "passthrough">[];
81
- total: number;
82
82
  }, {
83
83
  name: string;
84
+ total: number;
84
85
  items: z.objectInputType<{
85
86
  id: z.ZodString;
86
87
  name: z.ZodString;
@@ -92,7 +93,6 @@ export declare const FamilyGroupSchema: z.ZodObject<{
92
93
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
93
94
  family: z.ZodNullable<z.ZodString>;
94
95
  }, z.ZodTypeAny, "passthrough">[];
95
- total: number;
96
96
  }>;
97
97
  export declare const AllFamiliesResponseSchema: z.ZodObject<{
98
98
  result: z.ZodArray<z.ZodObject<{
@@ -131,6 +131,7 @@ export declare const AllFamiliesResponseSchema: z.ZodObject<{
131
131
  total: z.ZodNumber;
132
132
  }, "strict", z.ZodTypeAny, {
133
133
  name: string;
134
+ total: number;
134
135
  items: z.objectOutputType<{
135
136
  id: z.ZodString;
136
137
  name: z.ZodString;
@@ -142,9 +143,9 @@ export declare const AllFamiliesResponseSchema: z.ZodObject<{
142
143
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
143
144
  family: z.ZodNullable<z.ZodString>;
144
145
  }, z.ZodTypeAny, "passthrough">[];
145
- total: number;
146
146
  }, {
147
147
  name: string;
148
+ total: number;
148
149
  items: z.objectInputType<{
149
150
  id: z.ZodString;
150
151
  name: z.ZodString;
@@ -156,11 +157,11 @@ export declare const AllFamiliesResponseSchema: z.ZodObject<{
156
157
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
157
158
  family: z.ZodNullable<z.ZodString>;
158
159
  }, z.ZodTypeAny, "passthrough">[];
159
- total: number;
160
160
  }>, "many">;
161
161
  }, "strict", z.ZodTypeAny, {
162
162
  result: {
163
163
  name: string;
164
+ total: number;
164
165
  items: z.objectOutputType<{
165
166
  id: z.ZodString;
166
167
  name: z.ZodString;
@@ -172,11 +173,11 @@ export declare const AllFamiliesResponseSchema: z.ZodObject<{
172
173
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
173
174
  family: z.ZodNullable<z.ZodString>;
174
175
  }, z.ZodTypeAny, "passthrough">[];
175
- total: number;
176
176
  }[];
177
177
  }, {
178
178
  result: {
179
179
  name: string;
180
+ total: number;
180
181
  items: z.objectInputType<{
181
182
  id: z.ZodString;
182
183
  name: z.ZodString;
@@ -188,7 +189,6 @@ export declare const AllFamiliesResponseSchema: z.ZodObject<{
188
189
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
189
190
  family: z.ZodNullable<z.ZodString>;
190
191
  }, z.ZodTypeAny, "passthrough">[];
191
- total: number;
192
192
  }[];
193
193
  }>;
194
194
  export declare const FamilyInstanceTypesResponseSchema: z.ZodObject<{
@@ -226,6 +226,7 @@ export declare const FamilyInstanceTypesResponseSchema: z.ZodObject<{
226
226
  total: z.ZodNumber;
227
227
  family: z.ZodString;
228
228
  }, "strict", z.ZodTypeAny, {
229
+ total: number;
229
230
  items: z.objectOutputType<{
230
231
  id: z.ZodString;
231
232
  name: z.ZodString;
@@ -237,9 +238,9 @@ export declare const FamilyInstanceTypesResponseSchema: z.ZodObject<{
237
238
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
238
239
  family: z.ZodNullable<z.ZodString>;
239
240
  }, z.ZodTypeAny, "passthrough">[];
240
- total: number;
241
241
  family: string;
242
242
  }, {
243
+ total: number;
243
244
  items: z.objectInputType<{
244
245
  id: z.ZodString;
245
246
  name: z.ZodString;
@@ -251,7 +252,6 @@ export declare const FamilyInstanceTypesResponseSchema: z.ZodObject<{
251
252
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
252
253
  family: z.ZodNullable<z.ZodString>;
253
254
  }, z.ZodTypeAny, "passthrough">[];
254
- total: number;
255
255
  family: string;
256
256
  }>;
257
257
  export type InstanceType = z.infer<typeof InstanceTypeSchema>;
@@ -287,6 +287,7 @@ declare const listAllInstanceTypeFamilies: {
287
287
  (client: Client<import("..").ApiVersion>, params?: void | undefined): Promise<{
288
288
  result: {
289
289
  name: string;
290
+ total: number;
290
291
  items: z.objectOutputType<{
291
292
  id: z.ZodString;
292
293
  name: z.ZodString;
@@ -298,7 +299,6 @@ declare const listAllInstanceTypeFamilies: {
298
299
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
299
300
  family: z.ZodNullable<z.ZodString>;
300
301
  }, z.ZodTypeAny, "passthrough">[];
301
- total: number;
302
302
  }[];
303
303
  }>;
304
304
  <T extends z.ZodTypeAny>(client: Client<import("..").ApiVersion>, params?: void | undefined, parameters?: {
@@ -311,6 +311,7 @@ declare const listAllInstanceTypeFamilies: {
311
311
  (client: Client<import("..").ApiVersion>, params?: void | undefined): Promise<import("..").SafeResult<{
312
312
  result: {
313
313
  name: string;
314
+ total: number;
314
315
  items: z.objectOutputType<{
315
316
  id: z.ZodString;
316
317
  name: z.ZodString;
@@ -322,7 +323,6 @@ declare const listAllInstanceTypeFamilies: {
322
323
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
323
324
  family: z.ZodNullable<z.ZodString>;
324
325
  }, z.ZodTypeAny, "passthrough">[];
325
- total: number;
326
326
  }[];
327
327
  }>>;
328
328
  <T extends z.ZodTypeAny>(client: Client<import("..").ApiVersion>, params?: void | undefined, parameters?: {
@@ -354,6 +354,7 @@ declare const listFamilyInstanceTypes: {
354
354
  (client: Client<import("..").ApiVersion>, params: {
355
355
  family: string;
356
356
  }): Promise<{
357
+ total: number;
357
358
  items: z.objectOutputType<{
358
359
  id: z.ZodString;
359
360
  name: z.ZodString;
@@ -365,7 +366,6 @@ declare const listFamilyInstanceTypes: {
365
366
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
366
367
  family: z.ZodNullable<z.ZodString>;
367
368
  }, z.ZodTypeAny, "passthrough">[];
368
- total: number;
369
369
  family: string;
370
370
  }>;
371
371
  <T extends z.ZodTypeAny>(client: Client<import("..").ApiVersion>, params: {
@@ -382,6 +382,7 @@ declare const listFamilyInstanceTypes: {
382
382
  (client: Client<import("..").ApiVersion>, params: {
383
383
  family: string;
384
384
  }): Promise<import("..").SafeResult<{
385
+ total: number;
385
386
  items: z.objectOutputType<{
386
387
  id: z.ZodString;
387
388
  name: z.ZodString;
@@ -393,7 +394,6 @@ declare const listFamilyInstanceTypes: {
393
394
  default_disk_size_gb: z.ZodDefault<z.ZodNumber>;
394
395
  family: z.ZodNullable<z.ZodString>;
395
396
  }, z.ZodTypeAny, "passthrough">[];
396
- total: number;
397
397
  family: string;
398
398
  }>>;
399
399
  <T extends z.ZodTypeAny>(client: Client<import("..").ApiVersion>, params: {
@@ -50,9 +50,9 @@ declare const createSshKey: {
50
50
  name: string;
51
51
  id: string;
52
52
  source: string;
53
- updated_at: string;
54
53
  created_at: string;
55
54
  user_id: string;
55
+ updated_at: string;
56
56
  public_key: string;
57
57
  fingerprint: string;
58
58
  key_type: string;
@@ -79,9 +79,9 @@ declare const createSshKey: {
79
79
  name: string;
80
80
  id: string;
81
81
  source: string;
82
- updated_at: string;
83
82
  created_at: string;
84
83
  user_id: string;
84
+ updated_at: string;
85
85
  public_key: string;
86
86
  fingerprint: string;
87
87
  key_type: string;
@@ -17,9 +17,9 @@ export declare const SshKeySchema: z.ZodObject<{
17
17
  name: string;
18
18
  id: string;
19
19
  source: string;
20
- updated_at: string;
21
20
  created_at: string;
22
21
  user_id: string;
22
+ updated_at: string;
23
23
  public_key: string;
24
24
  fingerprint: string;
25
25
  key_type: string;
@@ -29,9 +29,9 @@ export declare const SshKeySchema: z.ZodObject<{
29
29
  name: string;
30
30
  id: string;
31
31
  source: string;
32
- updated_at: string;
33
32
  created_at: string;
34
33
  user_id: string;
34
+ updated_at: string;
35
35
  public_key: string;
36
36
  fingerprint: string;
37
37
  key_type: string;
@@ -55,9 +55,9 @@ export declare const ListSshKeysResponseSchema: z.ZodArray<z.ZodObject<{
55
55
  name: string;
56
56
  id: string;
57
57
  source: string;
58
- updated_at: string;
59
58
  created_at: string;
60
59
  user_id: string;
60
+ updated_at: string;
61
61
  public_key: string;
62
62
  fingerprint: string;
63
63
  key_type: string;
@@ -67,9 +67,9 @@ export declare const ListSshKeysResponseSchema: z.ZodArray<z.ZodObject<{
67
67
  name: string;
68
68
  id: string;
69
69
  source: string;
70
- updated_at: string;
71
70
  created_at: string;
72
71
  user_id: string;
72
+ updated_at: string;
73
73
  public_key: string;
74
74
  fingerprint: string;
75
75
  key_type: string;
@@ -78,8 +78,8 @@ export declare const NodeRefSchema: z.ZodObject<{
78
78
  name?: string | null | undefined;
79
79
  version?: string | null | undefined;
80
80
  id?: number | null | undefined;
81
- region?: string | null | undefined;
82
81
  device_id?: string | null | undefined;
82
+ region?: string | null | undefined;
83
83
  ppid?: string | null | undefined;
84
84
  }, {
85
85
  object_type: "node";
@@ -87,8 +87,8 @@ export declare const NodeRefSchema: z.ZodObject<{
87
87
  name?: string | null | undefined;
88
88
  version?: string | null | undefined;
89
89
  id?: number | null | undefined;
90
- region?: string | null | undefined;
91
90
  device_id?: string | null | undefined;
91
+ region?: string | null | undefined;
92
92
  ppid?: string | null | undefined;
93
93
  }>;
94
94
  export declare const NodeInfoSchema: z.ZodObject<{
@@ -106,8 +106,8 @@ export declare const NodeInfoSchema: z.ZodObject<{
106
106
  name?: string | null | undefined;
107
107
  version?: string | null | undefined;
108
108
  id?: number | null | undefined;
109
- region?: string | null | undefined;
110
109
  device_id?: string | null | undefined;
110
+ region?: string | null | undefined;
111
111
  ppid?: string | null | undefined;
112
112
  }, {
113
113
  object_type: "node";
@@ -115,8 +115,8 @@ export declare const NodeInfoSchema: z.ZodObject<{
115
115
  name?: string | null | undefined;
116
116
  version?: string | null | undefined;
117
117
  id?: number | null | undefined;
118
- region?: string | null | undefined;
119
118
  device_id?: string | null | undefined;
119
+ region?: string | null | undefined;
120
120
  ppid?: string | null | undefined;
121
121
  }>;
122
122
  export declare const GetWorkspaceNodesSchema: z.ZodObject<{
@@ -135,8 +135,8 @@ export declare const GetWorkspaceNodesSchema: z.ZodObject<{
135
135
  name?: string | null | undefined;
136
136
  version?: string | null | undefined;
137
137
  id?: number | null | undefined;
138
- region?: string | null | undefined;
139
138
  device_id?: string | null | undefined;
139
+ region?: string | null | undefined;
140
140
  ppid?: string | null | undefined;
141
141
  }, {
142
142
  object_type: "node";
@@ -144,8 +144,8 @@ export declare const GetWorkspaceNodesSchema: z.ZodObject<{
144
144
  name?: string | null | undefined;
145
145
  version?: string | null | undefined;
146
146
  id?: number | null | undefined;
147
- region?: string | null | undefined;
148
147
  device_id?: string | null | undefined;
148
+ region?: string | null | undefined;
149
149
  ppid?: string | null | undefined;
150
150
  }>, "many">;
151
151
  total: z.ZodNumber;
@@ -168,8 +168,8 @@ export declare const GetWorkspaceNodesSchema: z.ZodObject<{
168
168
  name?: string | null | undefined;
169
169
  version?: string | null | undefined;
170
170
  id?: number | null | undefined;
171
- region?: string | null | undefined;
172
171
  device_id?: string | null | undefined;
172
+ region?: string | null | undefined;
173
173
  ppid?: string | null | undefined;
174
174
  }, {
175
175
  object_type: "node";
@@ -177,8 +177,8 @@ export declare const GetWorkspaceNodesSchema: z.ZodObject<{
177
177
  name?: string | null | undefined;
178
178
  version?: string | null | undefined;
179
179
  id?: number | null | undefined;
180
- region?: string | null | undefined;
181
180
  device_id?: string | null | undefined;
181
+ region?: string | null | undefined;
182
182
  ppid?: string | null | undefined;
183
183
  }>, "many">;
184
184
  total: z.ZodNumber;
@@ -201,8 +201,8 @@ export declare const GetWorkspaceNodesSchema: z.ZodObject<{
201
201
  name?: string | null | undefined;
202
202
  version?: string | null | undefined;
203
203
  id?: number | null | undefined;
204
- region?: string | null | undefined;
205
204
  device_id?: string | null | undefined;
205
+ region?: string | null | undefined;
206
206
  ppid?: string | null | undefined;
207
207
  }, {
208
208
  object_type: "node";
@@ -210,8 +210,8 @@ export declare const GetWorkspaceNodesSchema: z.ZodObject<{
210
210
  name?: string | null | undefined;
211
211
  version?: string | null | undefined;
212
212
  id?: number | null | undefined;
213
- region?: string | null | undefined;
214
213
  device_id?: string | null | undefined;
214
+ region?: string | null | undefined;
215
215
  ppid?: string | null | undefined;
216
216
  }>, "many">;
217
217
  total: z.ZodNumber;
@@ -244,8 +244,8 @@ declare const getWorkspaceNodes: {
244
244
  name?: string | null | undefined;
245
245
  version?: string | null | undefined;
246
246
  id?: number | null | undefined;
247
- region?: string | null | undefined;
248
247
  device_id?: string | null | undefined;
248
+ region?: string | null | undefined;
249
249
  ppid?: string | null | undefined;
250
250
  }, {
251
251
  object_type: "node";
@@ -253,8 +253,8 @@ declare const getWorkspaceNodes: {
253
253
  name?: string | null | undefined;
254
254
  version?: string | null | undefined;
255
255
  id?: number | null | undefined;
256
- region?: string | null | undefined;
257
256
  device_id?: string | null | undefined;
257
+ region?: string | null | undefined;
258
258
  ppid?: string | null | undefined;
259
259
  }>, "many">;
260
260
  total: z.ZodNumber;
@@ -285,8 +285,8 @@ declare const getWorkspaceNodes: {
285
285
  name?: string | null | undefined;
286
286
  version?: string | null | undefined;
287
287
  id?: number | null | undefined;
288
- region?: string | null | undefined;
289
288
  device_id?: string | null | undefined;
289
+ region?: string | null | undefined;
290
290
  ppid?: string | null | undefined;
291
291
  }, {
292
292
  object_type: "node";
@@ -294,8 +294,8 @@ declare const getWorkspaceNodes: {
294
294
  name?: string | null | undefined;
295
295
  version?: string | null | undefined;
296
296
  id?: number | null | undefined;
297
- region?: string | null | undefined;
298
297
  device_id?: string | null | undefined;
298
+ region?: string | null | undefined;
299
299
  ppid?: string | null | undefined;
300
300
  }>, "many">;
301
301
  total: z.ZodNumber;