@phala/cloud 0.2.4 → 0.2.8

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 (49) hide show
  1. package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +164 -0
  2. package/dist/actions/apps/check_app_is_allowed.d.ts +109 -0
  3. package/dist/actions/apps/get_app_attestation.d.ts +963 -0
  4. package/dist/actions/apps/get_app_device_allowlist.d.ts +108 -0
  5. package/dist/actions/blockchains/abi/dstack_app.d.ts +131 -0
  6. package/dist/actions/blockchains/add_device.d.ts +62 -0
  7. package/dist/actions/blockchains/check_compose_hash_allowed.d.ts +43 -0
  8. package/dist/actions/blockchains/check_device_allowed.d.ts +44 -0
  9. package/dist/actions/blockchains/check_on_chain_prerequisites.d.ts +59 -0
  10. package/dist/actions/blockchains/get_allowed_devices.d.ts +65 -0
  11. package/dist/actions/blockchains/remove_device.d.ts +62 -0
  12. package/dist/actions/blockchains/set_allow_any_device.d.ts +62 -0
  13. package/dist/actions/cvms/check_cvm_is_allowed.d.ts +145 -0
  14. package/dist/actions/cvms/commit_cvm_provision.d.ts +19 -0
  15. package/dist/actions/cvms/commit_cvm_update.d.ts +100 -0
  16. package/dist/actions/cvms/confirm_cvm_patch.d.ts +92 -0
  17. package/dist/actions/cvms/get_cvm_attestation.d.ts +220 -0
  18. package/dist/actions/cvms/get_cvm_compose_file.d.ts +16 -0
  19. package/dist/actions/cvms/patch_cvm.d.ts +447 -0
  20. package/dist/actions/cvms/provision_cvm.d.ts +26 -1
  21. package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +26 -0
  22. package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +93 -0
  23. package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +194 -0
  24. package/dist/actions/cvms/replicate_cvm.d.ts +126 -0
  25. package/dist/actions/cvms/restart_cvm.d.ts +2 -2
  26. package/dist/actions/cvms/shutdown_cvm.d.ts +2 -2
  27. package/dist/actions/cvms/start_cvm.d.ts +2 -2
  28. package/dist/actions/cvms/stop_cvm.d.ts +2 -2
  29. package/dist/actions/index.d.ts +22 -1
  30. package/dist/actions/kms/get_kms_onchain_detail.d.ts +688 -0
  31. package/dist/actions/os_images/get_os_images.d.ts +217 -0
  32. package/dist/actions/workspaces/get_workspace.d.ts +2 -0
  33. package/dist/actions/workspaces/list_workspaces.d.ts +18 -0
  34. package/dist/client.d.ts +5 -0
  35. package/dist/create-client.d.ts +30 -0
  36. package/dist/index.js +1909 -365
  37. package/dist/index.mjs +1843 -363
  38. package/dist/types/app_compose.d.ts +5 -0
  39. package/dist/types/app_info_v20260121.d.ts +158 -6
  40. package/dist/types/cvm_info.d.ts +3 -3
  41. package/dist/types/cvm_info_v20260121.d.ts +82 -4
  42. package/dist/utils/error_codes.d.ts +48 -0
  43. package/dist/utils/errors.d.ts +9 -0
  44. package/dist/utils/index.d.ts +2 -1
  45. package/dist/utils/verify-webhook.d.ts +35 -0
  46. package/dist/webhook.d.ts +11 -0
  47. package/dist/webhook.js +68 -0
  48. package/dist/webhook.mjs +40 -0
  49. package/package.json +7 -2
@@ -0,0 +1,217 @@
1
+ import { z } from "zod";
2
+ export declare const OSImagePublicSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ slug: z.ZodString;
5
+ version: z.ZodString;
6
+ os_image_hash: z.ZodNullable<z.ZodString>;
7
+ is_dev: z.ZodBoolean;
8
+ requires_gpu: z.ZodBoolean;
9
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10
+ name: z.ZodString;
11
+ slug: z.ZodString;
12
+ version: z.ZodString;
13
+ os_image_hash: z.ZodNullable<z.ZodString>;
14
+ is_dev: z.ZodBoolean;
15
+ requires_gpu: z.ZodBoolean;
16
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
17
+ name: z.ZodString;
18
+ slug: z.ZodString;
19
+ version: z.ZodString;
20
+ os_image_hash: z.ZodNullable<z.ZodString>;
21
+ is_dev: z.ZodBoolean;
22
+ requires_gpu: z.ZodBoolean;
23
+ }, z.ZodTypeAny, "passthrough">>;
24
+ export type OSImagePublic = z.infer<typeof OSImagePublicSchema>;
25
+ export declare const GetOsImagesRequestSchema: z.ZodObject<{
26
+ page: z.ZodOptional<z.ZodNumber>;
27
+ page_size: z.ZodOptional<z.ZodNumber>;
28
+ is_dev: z.ZodOptional<z.ZodBoolean>;
29
+ }, "strict", z.ZodTypeAny, {
30
+ page?: number | undefined;
31
+ page_size?: number | undefined;
32
+ is_dev?: boolean | undefined;
33
+ }, {
34
+ page?: number | undefined;
35
+ page_size?: number | undefined;
36
+ is_dev?: boolean | undefined;
37
+ }>;
38
+ export type GetOsImagesRequest = z.infer<typeof GetOsImagesRequestSchema>;
39
+ export declare const GetOsImagesResponseSchema: z.ZodObject<{
40
+ items: z.ZodArray<z.ZodObject<{
41
+ name: z.ZodString;
42
+ slug: z.ZodString;
43
+ version: z.ZodString;
44
+ os_image_hash: z.ZodNullable<z.ZodString>;
45
+ is_dev: z.ZodBoolean;
46
+ requires_gpu: z.ZodBoolean;
47
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
48
+ name: z.ZodString;
49
+ slug: z.ZodString;
50
+ version: z.ZodString;
51
+ os_image_hash: z.ZodNullable<z.ZodString>;
52
+ is_dev: z.ZodBoolean;
53
+ requires_gpu: z.ZodBoolean;
54
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
55
+ name: z.ZodString;
56
+ slug: z.ZodString;
57
+ version: z.ZodString;
58
+ os_image_hash: z.ZodNullable<z.ZodString>;
59
+ is_dev: z.ZodBoolean;
60
+ requires_gpu: z.ZodBoolean;
61
+ }, z.ZodTypeAny, "passthrough">>, "many">;
62
+ total: z.ZodNumber;
63
+ page: z.ZodNumber;
64
+ page_size: z.ZodNumber;
65
+ pages: z.ZodNumber;
66
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
67
+ items: z.ZodArray<z.ZodObject<{
68
+ name: z.ZodString;
69
+ slug: z.ZodString;
70
+ version: z.ZodString;
71
+ os_image_hash: z.ZodNullable<z.ZodString>;
72
+ is_dev: z.ZodBoolean;
73
+ requires_gpu: z.ZodBoolean;
74
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
75
+ name: z.ZodString;
76
+ slug: z.ZodString;
77
+ version: z.ZodString;
78
+ os_image_hash: z.ZodNullable<z.ZodString>;
79
+ is_dev: z.ZodBoolean;
80
+ requires_gpu: z.ZodBoolean;
81
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
82
+ name: z.ZodString;
83
+ slug: z.ZodString;
84
+ version: z.ZodString;
85
+ os_image_hash: z.ZodNullable<z.ZodString>;
86
+ is_dev: z.ZodBoolean;
87
+ requires_gpu: z.ZodBoolean;
88
+ }, z.ZodTypeAny, "passthrough">>, "many">;
89
+ total: z.ZodNumber;
90
+ page: z.ZodNumber;
91
+ page_size: z.ZodNumber;
92
+ pages: z.ZodNumber;
93
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
94
+ items: z.ZodArray<z.ZodObject<{
95
+ name: z.ZodString;
96
+ slug: z.ZodString;
97
+ version: z.ZodString;
98
+ os_image_hash: z.ZodNullable<z.ZodString>;
99
+ is_dev: z.ZodBoolean;
100
+ requires_gpu: z.ZodBoolean;
101
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
102
+ name: z.ZodString;
103
+ slug: z.ZodString;
104
+ version: z.ZodString;
105
+ os_image_hash: z.ZodNullable<z.ZodString>;
106
+ is_dev: z.ZodBoolean;
107
+ requires_gpu: z.ZodBoolean;
108
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
109
+ name: z.ZodString;
110
+ slug: z.ZodString;
111
+ version: z.ZodString;
112
+ os_image_hash: z.ZodNullable<z.ZodString>;
113
+ is_dev: z.ZodBoolean;
114
+ requires_gpu: z.ZodBoolean;
115
+ }, z.ZodTypeAny, "passthrough">>, "many">;
116
+ total: z.ZodNumber;
117
+ page: z.ZodNumber;
118
+ page_size: z.ZodNumber;
119
+ pages: z.ZodNumber;
120
+ }, z.ZodTypeAny, "passthrough">>;
121
+ export type GetOsImagesResponse = z.infer<typeof GetOsImagesResponseSchema>;
122
+ declare const getOsImages: {
123
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
124
+ page?: number | undefined;
125
+ page_size?: number | undefined;
126
+ is_dev?: boolean | undefined;
127
+ } | undefined): Promise<z.objectOutputType<{
128
+ items: z.ZodArray<z.ZodObject<{
129
+ name: z.ZodString;
130
+ slug: z.ZodString;
131
+ version: z.ZodString;
132
+ os_image_hash: z.ZodNullable<z.ZodString>;
133
+ is_dev: z.ZodBoolean;
134
+ requires_gpu: z.ZodBoolean;
135
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
136
+ name: z.ZodString;
137
+ slug: z.ZodString;
138
+ version: z.ZodString;
139
+ os_image_hash: z.ZodNullable<z.ZodString>;
140
+ is_dev: z.ZodBoolean;
141
+ requires_gpu: z.ZodBoolean;
142
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
143
+ name: z.ZodString;
144
+ slug: z.ZodString;
145
+ version: z.ZodString;
146
+ os_image_hash: z.ZodNullable<z.ZodString>;
147
+ is_dev: z.ZodBoolean;
148
+ requires_gpu: z.ZodBoolean;
149
+ }, z.ZodTypeAny, "passthrough">>, "many">;
150
+ total: z.ZodNumber;
151
+ page: z.ZodNumber;
152
+ page_size: z.ZodNumber;
153
+ pages: z.ZodNumber;
154
+ }, z.ZodTypeAny, "passthrough">>;
155
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
156
+ page?: number | undefined;
157
+ page_size?: number | undefined;
158
+ is_dev?: boolean | undefined;
159
+ } | undefined, parameters?: {
160
+ schema: T;
161
+ } | undefined): Promise<z.TypeOf<T>>;
162
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
163
+ page?: number | undefined;
164
+ page_size?: number | undefined;
165
+ is_dev?: boolean | undefined;
166
+ } | undefined, parameters?: {
167
+ schema: false;
168
+ } | undefined): Promise<unknown>;
169
+ }, safeGetOsImages: {
170
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
171
+ page?: number | undefined;
172
+ page_size?: number | undefined;
173
+ is_dev?: boolean | undefined;
174
+ } | undefined): Promise<import("../..").SafeResult<z.objectOutputType<{
175
+ items: z.ZodArray<z.ZodObject<{
176
+ name: z.ZodString;
177
+ slug: z.ZodString;
178
+ version: z.ZodString;
179
+ os_image_hash: z.ZodNullable<z.ZodString>;
180
+ is_dev: z.ZodBoolean;
181
+ requires_gpu: z.ZodBoolean;
182
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
183
+ name: z.ZodString;
184
+ slug: z.ZodString;
185
+ version: z.ZodString;
186
+ os_image_hash: z.ZodNullable<z.ZodString>;
187
+ is_dev: z.ZodBoolean;
188
+ requires_gpu: z.ZodBoolean;
189
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
190
+ name: z.ZodString;
191
+ slug: z.ZodString;
192
+ version: z.ZodString;
193
+ os_image_hash: z.ZodNullable<z.ZodString>;
194
+ is_dev: z.ZodBoolean;
195
+ requires_gpu: z.ZodBoolean;
196
+ }, z.ZodTypeAny, "passthrough">>, "many">;
197
+ total: z.ZodNumber;
198
+ page: z.ZodNumber;
199
+ page_size: z.ZodNumber;
200
+ pages: z.ZodNumber;
201
+ }, z.ZodTypeAny, "passthrough">>>;
202
+ <T extends z.ZodTypeAny>(client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
203
+ page?: number | undefined;
204
+ page_size?: number | undefined;
205
+ is_dev?: boolean | undefined;
206
+ } | undefined, parameters?: {
207
+ schema: T;
208
+ } | undefined): Promise<import("../..").SafeResult<z.TypeOf<T>>>;
209
+ (client: import("../..").BaseClient<import("../..").ApiVersion>, params?: {
210
+ page?: number | undefined;
211
+ page_size?: number | undefined;
212
+ is_dev?: boolean | undefined;
213
+ } | undefined, parameters?: {
214
+ schema: false;
215
+ } | undefined): Promise<import("../..").SafeResult<unknown>>;
216
+ };
217
+ export { getOsImages, safeGetOsImages };
@@ -72,6 +72,7 @@ declare const getWorkspace: {
72
72
  role: z.ZodString;
73
73
  is_default: z.ZodBoolean;
74
74
  created_at: z.ZodString;
75
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
75
76
  }, z.ZodTypeAny, "passthrough">>;
76
77
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: string, parameters: {
77
78
  schema: T;
@@ -88,6 +89,7 @@ declare const getWorkspace: {
88
89
  role: z.ZodString;
89
90
  is_default: z.ZodBoolean;
90
91
  created_at: z.ZodString;
92
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
91
93
  }, z.ZodTypeAny, "passthrough">>>;
92
94
  <T extends z.ZodTypeAny>(client: Client<import("../..").ApiVersion>, params: string, parameters: {
93
95
  schema: T;
@@ -69,6 +69,7 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
69
69
  role: z.ZodString;
70
70
  is_default: z.ZodBoolean;
71
71
  created_at: z.ZodString;
72
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
72
73
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
73
74
  id: z.ZodString;
74
75
  name: z.ZodString;
@@ -77,6 +78,7 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
77
78
  role: z.ZodString;
78
79
  is_default: z.ZodBoolean;
79
80
  created_at: z.ZodString;
81
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
80
82
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
81
83
  id: z.ZodString;
82
84
  name: z.ZodString;
@@ -85,6 +87,7 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
85
87
  role: z.ZodString;
86
88
  is_default: z.ZodBoolean;
87
89
  created_at: z.ZodString;
90
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
88
91
  }, z.ZodTypeAny, "passthrough">>;
89
92
  export declare const PaginationMetadataSchema: z.ZodObject<{
90
93
  has_more: z.ZodBoolean;
@@ -108,6 +111,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
108
111
  role: z.ZodString;
109
112
  is_default: z.ZodBoolean;
110
113
  created_at: z.ZodString;
114
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
111
115
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
112
116
  id: z.ZodString;
113
117
  name: z.ZodString;
@@ -116,6 +120,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
116
120
  role: z.ZodString;
117
121
  is_default: z.ZodBoolean;
118
122
  created_at: z.ZodString;
123
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
119
124
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
120
125
  id: z.ZodString;
121
126
  name: z.ZodString;
@@ -124,6 +129,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
124
129
  role: z.ZodString;
125
130
  is_default: z.ZodBoolean;
126
131
  created_at: z.ZodString;
132
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
127
133
  }, z.ZodTypeAny, "passthrough">>, "many">;
128
134
  pagination: z.ZodObject<{
129
135
  has_more: z.ZodBoolean;
@@ -147,6 +153,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
147
153
  role: z.ZodString;
148
154
  is_default: z.ZodBoolean;
149
155
  created_at: z.ZodString;
156
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
150
157
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
151
158
  id: z.ZodString;
152
159
  name: z.ZodString;
@@ -155,6 +162,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
155
162
  role: z.ZodString;
156
163
  is_default: z.ZodBoolean;
157
164
  created_at: z.ZodString;
165
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
158
166
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
159
167
  id: z.ZodString;
160
168
  name: z.ZodString;
@@ -163,6 +171,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
163
171
  role: z.ZodString;
164
172
  is_default: z.ZodBoolean;
165
173
  created_at: z.ZodString;
174
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
166
175
  }, z.ZodTypeAny, "passthrough">>, "many">;
167
176
  pagination: z.ZodObject<{
168
177
  has_more: z.ZodBoolean;
@@ -186,6 +195,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
186
195
  role: z.ZodString;
187
196
  is_default: z.ZodBoolean;
188
197
  created_at: z.ZodString;
198
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
189
199
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
190
200
  id: z.ZodString;
191
201
  name: z.ZodString;
@@ -194,6 +204,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
194
204
  role: z.ZodString;
195
205
  is_default: z.ZodBoolean;
196
206
  created_at: z.ZodString;
207
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
197
208
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
198
209
  id: z.ZodString;
199
210
  name: z.ZodString;
@@ -202,6 +213,7 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
202
213
  role: z.ZodString;
203
214
  is_default: z.ZodBoolean;
204
215
  created_at: z.ZodString;
216
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
205
217
  }, z.ZodTypeAny, "passthrough">>, "many">;
206
218
  pagination: z.ZodObject<{
207
219
  has_more: z.ZodBoolean;
@@ -234,6 +246,7 @@ declare const listWorkspaces: {
234
246
  role: z.ZodString;
235
247
  is_default: z.ZodBoolean;
236
248
  created_at: z.ZodString;
249
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
237
250
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
238
251
  id: z.ZodString;
239
252
  name: z.ZodString;
@@ -242,6 +255,7 @@ declare const listWorkspaces: {
242
255
  role: z.ZodString;
243
256
  is_default: z.ZodBoolean;
244
257
  created_at: z.ZodString;
258
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
245
259
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
246
260
  id: z.ZodString;
247
261
  name: z.ZodString;
@@ -250,6 +264,7 @@ declare const listWorkspaces: {
250
264
  role: z.ZodString;
251
265
  is_default: z.ZodBoolean;
252
266
  created_at: z.ZodString;
267
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
253
268
  }, z.ZodTypeAny, "passthrough">>, "many">;
254
269
  pagination: z.ZodObject<{
255
270
  has_more: z.ZodBoolean;
@@ -281,6 +296,7 @@ declare const listWorkspaces: {
281
296
  role: z.ZodString;
282
297
  is_default: z.ZodBoolean;
283
298
  created_at: z.ZodString;
299
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
284
300
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
285
301
  id: z.ZodString;
286
302
  name: z.ZodString;
@@ -289,6 +305,7 @@ declare const listWorkspaces: {
289
305
  role: z.ZodString;
290
306
  is_default: z.ZodBoolean;
291
307
  created_at: z.ZodString;
308
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
292
309
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
293
310
  id: z.ZodString;
294
311
  name: z.ZodString;
@@ -297,6 +314,7 @@ declare const listWorkspaces: {
297
314
  role: z.ZodString;
298
315
  is_default: z.ZodBoolean;
299
316
  created_at: z.ZodString;
317
+ confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
300
318
  }, z.ZodTypeAny, "passthrough">>, "many">;
301
319
  pagination: z.ZodObject<{
302
320
  has_more: z.ZodBoolean;
package/dist/client.d.ts CHANGED
@@ -87,6 +87,11 @@ export declare class Client<V extends ApiVersion = DefaultApiVersion> {
87
87
  * Perform GET request (throws PhalaCloudError on error)
88
88
  */
89
89
  get<T = unknown>(request: FetchRequest, options?: Omit<FetchOptions, "method">): Promise<T>;
90
+ /**
91
+ * Build request options, stripping Content-Type when body is FormData
92
+ * so the browser/runtime sets the correct multipart boundary automatically.
93
+ */
94
+ private buildRequestOptions;
90
95
  /**
91
96
  * Perform POST request (throws PhalaCloudError on error)
92
97
  */
@@ -41,6 +41,8 @@ import { type CreateSshKeyRequest } from "./actions/ssh_keys/create_ssh_key";
41
41
  import { type DeleteSshKeyRequest } from "./actions/ssh_keys/delete_ssh_key";
42
42
  import { type SyncGithubSshKeysResponse } from "./actions/ssh_keys/sync_github_ssh_keys";
43
43
  import type { SshKey } from "./actions/ssh_keys/list_ssh_keys";
44
+ import { type GetOsImagesRequest, type GetOsImagesResponse } from "./actions/os_images/get_os_images";
45
+ import { type GetKmsOnChainDetailRequest, type GetKmsOnChainDetailResponse } from "./actions/kms/get_kms_onchain_detail";
44
46
  import type { KmsInfo } from "./types/kms_info";
45
47
  import type { VM } from "./types/cvm_info";
46
48
  import type { SafeResult } from "./types/client";
@@ -646,4 +648,32 @@ export interface Client<V extends ApiVersion = DefaultApiVersion> extends BaseCl
646
648
  safeSyncGithubSshKeys(parameters: {
647
649
  schema: false;
648
650
  }): Promise<SafeResult<unknown>>;
651
+ getOsImages(request?: GetOsImagesRequest): Promise<GetOsImagesResponse>;
652
+ getOsImages<T extends z.ZodTypeAny>(request: GetOsImagesRequest | undefined, parameters: {
653
+ schema: T;
654
+ }): Promise<z.infer<T>>;
655
+ getOsImages(request: GetOsImagesRequest | undefined, parameters: {
656
+ schema: false;
657
+ }): Promise<unknown>;
658
+ safeGetOsImages(request?: GetOsImagesRequest): Promise<SafeResult<GetOsImagesResponse>>;
659
+ safeGetOsImages<T extends z.ZodTypeAny>(request: GetOsImagesRequest | undefined, parameters: {
660
+ schema: T;
661
+ }): Promise<SafeResult<z.infer<T>>>;
662
+ safeGetOsImages(request: GetOsImagesRequest | undefined, parameters: {
663
+ schema: false;
664
+ }): Promise<SafeResult<unknown>>;
665
+ getKmsOnChainDetail(request: GetKmsOnChainDetailRequest): Promise<GetKmsOnChainDetailResponse>;
666
+ getKmsOnChainDetail<T extends z.ZodTypeAny>(request: GetKmsOnChainDetailRequest, parameters: {
667
+ schema: T;
668
+ }): Promise<z.infer<T>>;
669
+ getKmsOnChainDetail(request: GetKmsOnChainDetailRequest, parameters: {
670
+ schema: false;
671
+ }): Promise<unknown>;
672
+ safeGetKmsOnChainDetail(request: GetKmsOnChainDetailRequest): Promise<SafeResult<GetKmsOnChainDetailResponse>>;
673
+ safeGetKmsOnChainDetail<T extends z.ZodTypeAny>(request: GetKmsOnChainDetailRequest, parameters: {
674
+ schema: T;
675
+ }): Promise<SafeResult<z.infer<T>>>;
676
+ safeGetKmsOnChainDetail(request: GetKmsOnChainDetailRequest, parameters: {
677
+ schema: false;
678
+ }): Promise<SafeResult<unknown>>;
649
679
  }