@phala/cloud 0.2.10 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/apps/check_app_cvms_is_allowed.d.ts +100 -161
- package/dist/actions/apps/check_app_is_allowed.d.ts +14 -14
- package/dist/actions/apps/create_app_instance.d.ts +22 -22
- package/dist/actions/apps/get_app_attestation.d.ts +43 -33
- package/dist/actions/apps/get_app_device_allowlist.d.ts +51 -50
- package/dist/actions/apps/get_app_list.d.ts +2 -2
- package/dist/actions/cvms/check_cvm_is_allowed.d.ts +40 -102
- package/dist/actions/cvms/commit_cvm_compose_file_update.d.ts +12 -12
- package/dist/actions/cvms/commit_cvm_provision.d.ts +11 -135
- package/dist/actions/cvms/commit_cvm_update.d.ts +2 -2
- package/dist/actions/cvms/confirm_cvm_patch.d.ts +2 -2
- package/dist/actions/cvms/delete_cvm.d.ts +2 -2
- package/dist/actions/cvms/get_available_os_images.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_attestation.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_compose_file.d.ts +166 -22
- package/dist/actions/cvms/get_cvm_containers_stats.d.ts +10 -10
- package/dist/actions/cvms/get_cvm_docker_compose.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_info.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_list.d.ts +8 -10
- package/dist/actions/cvms/get_cvm_network.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_prelaunch_script.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_state.d.ts +6 -6
- package/dist/actions/cvms/get_cvm_stats.d.ts +2 -2
- package/dist/actions/cvms/get_cvm_status_batch.d.ts +253 -30
- package/dist/actions/cvms/get_cvm_user_config.d.ts +2 -2
- package/dist/actions/cvms/get_prelaunch_script_upgrade_status.d.ts +2 -2
- package/dist/actions/cvms/patch_cvm.d.ts +34 -18
- package/dist/actions/cvms/provision_cvm.d.ts +900 -51
- package/dist/actions/cvms/provision_cvm_compose_file_update.d.ts +253 -43
- package/dist/actions/cvms/refresh_cvm_instance_id.d.ts +27 -58
- package/dist/actions/cvms/refresh_cvm_instance_ids.d.ts +120 -165
- package/dist/actions/cvms/replicate_cvm.d.ts +7 -72
- package/dist/actions/cvms/restart_cvm.d.ts +7 -72
- package/dist/actions/cvms/shutdown_cvm.d.ts +9 -72
- package/dist/actions/cvms/start_cvm.d.ts +7 -72
- package/dist/actions/cvms/stop_cvm.d.ts +7 -72
- package/dist/actions/cvms/update_cvm_envs.d.ts +36 -20
- package/dist/actions/cvms/update_cvm_resources.d.ts +26 -4
- package/dist/actions/cvms/update_cvm_visibility.d.ts +26 -24
- package/dist/actions/cvms/update_docker_compose.d.ts +51 -20
- package/dist/actions/cvms/update_os_image.d.ts +2 -2
- package/dist/actions/cvms/update_prelaunch_script.d.ts +51 -20
- package/dist/actions/cvms/upgrade_prelaunch_script.d.ts +36 -20
- package/dist/actions/get_available_nodes.d.ts +259 -0
- package/dist/actions/get_cvm_create_resources.d.ts +351 -0
- package/dist/actions/index.d.ts +6 -2
- package/dist/actions/kms/get_kms_contract.d.ts +59 -0
- package/dist/actions/kms/get_kms_list.d.ts +25 -10
- package/dist/actions/kms/get_kms_onchain_detail.d.ts +54 -0
- package/dist/actions/kms/list_kms_contract_nodes.d.ts +98 -0
- package/dist/actions/kms/list_kms_contracts.d.ts +152 -0
- package/dist/actions/kms/next_app_ids.d.ts +6 -6
- package/dist/actions/list-instance-types.d.ts +12 -12
- package/dist/actions/ssh_keys/create_ssh_key.d.ts +2 -2
- package/dist/actions/ssh_keys/list_ssh_keys.d.ts +4 -4
- package/dist/actions/workspaces/get_workspace.d.ts +4 -0
- package/dist/actions/workspaces/get_workspace_nodes.d.ts +175 -14
- package/dist/actions/workspaces/list_workspaces.d.ts +126 -0
- package/dist/client.d.ts +4 -1
- package/dist/create-client.d.ts +48 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1779 -1250
- package/dist/index.mjs +1704 -1194
- package/dist/types/app_compose.d.ts +50 -5
- package/dist/types/app_info_v20251028.d.ts +172 -128
- package/dist/types/app_info_v20260121.d.ts +2814 -490
- package/dist/types/app_revision.d.ts +8 -8
- package/dist/types/client.d.ts +2 -2
- package/dist/types/cvm_id.d.ts +6 -6
- package/dist/types/cvm_info.d.ts +98 -98
- package/dist/types/cvm_info_v20251028.d.ts +70 -47
- package/dist/types/cvm_info_v20260121.d.ts +1125 -148
- package/dist/types/kms_contract.d.ts +64 -0
- package/dist/types/kms_info.d.ts +8 -0
- package/dist/types/version-mappings.d.ts +43 -6
- package/dist/utils/error_codes.d.ts +1 -0
- package/dist/utils/errors.d.ts +30 -1
- package/dist/utils/get_compose_hash.d.ts +24 -0
- package/dist/utils/get_mr_config_id.d.ts +55 -0
- package/dist/utils/index.d.ts +3 -2
- package/package.json +3 -3
|
@@ -71,6 +71,13 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
|
|
|
71
71
|
is_default: z.ZodBoolean;
|
|
72
72
|
created_at: z.ZodString;
|
|
73
73
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
/**
|
|
75
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
76
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
77
|
+
*/
|
|
78
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
79
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
80
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
81
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
75
82
|
id: z.ZodString;
|
|
76
83
|
name: z.ZodString;
|
|
@@ -81,6 +88,13 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
|
|
|
81
88
|
is_default: z.ZodBoolean;
|
|
82
89
|
created_at: z.ZodString;
|
|
83
90
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
/**
|
|
92
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
93
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
94
|
+
*/
|
|
95
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
96
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
97
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
98
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
85
99
|
id: z.ZodString;
|
|
86
100
|
name: z.ZodString;
|
|
@@ -91,6 +105,13 @@ export declare const WorkspaceResponseSchema: z.ZodObject<{
|
|
|
91
105
|
is_default: z.ZodBoolean;
|
|
92
106
|
created_at: z.ZodString;
|
|
93
107
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
/**
|
|
109
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
110
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
111
|
+
*/
|
|
112
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
113
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
114
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
115
|
}, z.ZodTypeAny, "passthrough">>;
|
|
95
116
|
export declare const PaginationMetadataSchema: z.ZodObject<{
|
|
96
117
|
has_more: z.ZodBoolean;
|
|
@@ -116,6 +137,13 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
116
137
|
is_default: z.ZodBoolean;
|
|
117
138
|
created_at: z.ZodString;
|
|
118
139
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
/**
|
|
141
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
142
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
143
|
+
*/
|
|
144
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
145
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
146
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
147
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
120
148
|
id: z.ZodString;
|
|
121
149
|
name: z.ZodString;
|
|
@@ -126,6 +154,13 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
126
154
|
is_default: z.ZodBoolean;
|
|
127
155
|
created_at: z.ZodString;
|
|
128
156
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
/**
|
|
158
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
159
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
160
|
+
*/
|
|
161
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
162
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
163
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
164
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
130
165
|
id: z.ZodString;
|
|
131
166
|
name: z.ZodString;
|
|
@@ -136,6 +171,13 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
136
171
|
is_default: z.ZodBoolean;
|
|
137
172
|
created_at: z.ZodString;
|
|
138
173
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
+
/**
|
|
175
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
176
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
177
|
+
*/
|
|
178
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
179
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
180
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
181
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
140
182
|
pagination: z.ZodObject<{
|
|
141
183
|
has_more: z.ZodBoolean;
|
|
@@ -161,6 +203,13 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
161
203
|
is_default: z.ZodBoolean;
|
|
162
204
|
created_at: z.ZodString;
|
|
163
205
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
+
/**
|
|
207
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
208
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
209
|
+
*/
|
|
210
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
211
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
212
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
164
213
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
165
214
|
id: z.ZodString;
|
|
166
215
|
name: z.ZodString;
|
|
@@ -171,6 +220,13 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
171
220
|
is_default: z.ZodBoolean;
|
|
172
221
|
created_at: z.ZodString;
|
|
173
222
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
+
/**
|
|
224
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
225
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
226
|
+
*/
|
|
227
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
228
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
229
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
230
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
175
231
|
id: z.ZodString;
|
|
176
232
|
name: z.ZodString;
|
|
@@ -181,6 +237,13 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
181
237
|
is_default: z.ZodBoolean;
|
|
182
238
|
created_at: z.ZodString;
|
|
183
239
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
240
|
+
/**
|
|
241
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
242
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
243
|
+
*/
|
|
244
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
245
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
246
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
247
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
185
248
|
pagination: z.ZodObject<{
|
|
186
249
|
has_more: z.ZodBoolean;
|
|
@@ -206,6 +269,13 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
206
269
|
is_default: z.ZodBoolean;
|
|
207
270
|
created_at: z.ZodString;
|
|
208
271
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
+
/**
|
|
273
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
274
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
275
|
+
*/
|
|
276
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
277
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
278
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
209
279
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
210
280
|
id: z.ZodString;
|
|
211
281
|
name: z.ZodString;
|
|
@@ -216,6 +286,13 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
216
286
|
is_default: z.ZodBoolean;
|
|
217
287
|
created_at: z.ZodString;
|
|
218
288
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
289
|
+
/**
|
|
290
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
291
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
292
|
+
*/
|
|
293
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
294
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
295
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
296
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
220
297
|
id: z.ZodString;
|
|
221
298
|
name: z.ZodString;
|
|
@@ -226,6 +303,13 @@ export declare const ListWorkspacesSchema: z.ZodObject<{
|
|
|
226
303
|
is_default: z.ZodBoolean;
|
|
227
304
|
created_at: z.ZodString;
|
|
228
305
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
306
|
+
/**
|
|
307
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
308
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
309
|
+
*/
|
|
310
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
311
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
312
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
313
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
230
314
|
pagination: z.ZodObject<{
|
|
231
315
|
has_more: z.ZodBoolean;
|
|
@@ -260,6 +344,13 @@ declare const listWorkspaces: {
|
|
|
260
344
|
is_default: z.ZodBoolean;
|
|
261
345
|
created_at: z.ZodString;
|
|
262
346
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
347
|
+
/**
|
|
348
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
349
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
350
|
+
*/
|
|
351
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
352
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
353
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
263
354
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
264
355
|
id: z.ZodString;
|
|
265
356
|
name: z.ZodString;
|
|
@@ -270,6 +361,13 @@ declare const listWorkspaces: {
|
|
|
270
361
|
is_default: z.ZodBoolean;
|
|
271
362
|
created_at: z.ZodString;
|
|
272
363
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
364
|
+
/**
|
|
365
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
366
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
367
|
+
*/
|
|
368
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
369
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
370
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
273
371
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
274
372
|
id: z.ZodString;
|
|
275
373
|
name: z.ZodString;
|
|
@@ -280,6 +378,13 @@ declare const listWorkspaces: {
|
|
|
280
378
|
is_default: z.ZodBoolean;
|
|
281
379
|
created_at: z.ZodString;
|
|
282
380
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
381
|
+
/**
|
|
382
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
383
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
384
|
+
*/
|
|
385
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
386
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
387
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
388
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
284
389
|
pagination: z.ZodObject<{
|
|
285
390
|
has_more: z.ZodBoolean;
|
|
@@ -313,6 +418,13 @@ declare const listWorkspaces: {
|
|
|
313
418
|
is_default: z.ZodBoolean;
|
|
314
419
|
created_at: z.ZodString;
|
|
315
420
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
+
/**
|
|
422
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
423
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
424
|
+
*/
|
|
425
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
426
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
427
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
316
428
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
317
429
|
id: z.ZodString;
|
|
318
430
|
name: z.ZodString;
|
|
@@ -323,6 +435,13 @@ declare const listWorkspaces: {
|
|
|
323
435
|
is_default: z.ZodBoolean;
|
|
324
436
|
created_at: z.ZodString;
|
|
325
437
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
438
|
+
/**
|
|
439
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
440
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
441
|
+
*/
|
|
442
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
443
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
444
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
326
445
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
327
446
|
id: z.ZodString;
|
|
328
447
|
name: z.ZodString;
|
|
@@ -333,6 +452,13 @@ declare const listWorkspaces: {
|
|
|
333
452
|
is_default: z.ZodBoolean;
|
|
334
453
|
created_at: z.ZodString;
|
|
335
454
|
confidential_models_enabled: z.ZodOptional<z.ZodBoolean>;
|
|
455
|
+
/**
|
|
456
|
+
* Billing lifecycle state. A suspended workspace still runs but owes money;
|
|
457
|
+
* an abandoned one is closed and read-only until its balance is settled.
|
|
458
|
+
*/
|
|
459
|
+
billing_status: z.ZodDefault<z.ZodEnum<["active", "suspended", "abandoned"]>>;
|
|
460
|
+
/** When the workspace was suspended. Null unless billing_status is suspended. */
|
|
461
|
+
suspended_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
336
462
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
337
463
|
pagination: z.ZodObject<{
|
|
338
464
|
has_more: z.ZodBoolean;
|
package/dist/client.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { type SafeResult, type ClientConfig, type ResolvedClientConfig, type Ful
|
|
|
4
4
|
import type { Prettify } from "./types/common";
|
|
5
5
|
import { PhalaCloudError } from "./utils/errors";
|
|
6
6
|
export type { SafeResult, FullResponse, RequestOptions, ApiVersion, DefaultApiVersion, } from "./types/client";
|
|
7
|
-
export declare const SUPPORTED_API_VERSIONS: readonly ["2025-10-28", "2026-01-21", "2026-05-22"];
|
|
7
|
+
export declare const SUPPORTED_API_VERSIONS: readonly ["2025-10-28", "2026-01-21", "2026-05-22", "2026-06-23"];
|
|
8
8
|
export declare const DEFAULT_API_VERSION: DefaultApiVersion;
|
|
9
9
|
/**
|
|
10
10
|
* Client event types
|
|
@@ -207,6 +207,9 @@ export declare class Client<V extends ApiVersion = DefaultApiVersion> {
|
|
|
207
207
|
* // DEBUG=phala::api-client node your-script.js
|
|
208
208
|
* ```
|
|
209
209
|
*/
|
|
210
|
+
export declare function createClient(config: ClientConfig<"2026-06-23"> & {
|
|
211
|
+
version: "2026-06-23";
|
|
212
|
+
}): Client<"2026-06-23">;
|
|
210
213
|
export declare function createClient(config: ClientConfig<"2026-05-22"> & {
|
|
211
214
|
version: "2026-05-22";
|
|
212
215
|
}): Client<"2026-05-22">;
|
package/dist/create-client.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ import { type GetPreLaunchScriptUpgradeStatusRequest, type PreLaunchScriptUpgrad
|
|
|
21
21
|
import { type UpgradePreLaunchScriptRequest, type UpgradePreLaunchScriptResult } from "./actions/cvms/upgrade_prelaunch_script";
|
|
22
22
|
import { type GetKmsInfoRequest } from "./actions/kms/get_kms_info";
|
|
23
23
|
import { type GetKmsListRequest, type GetKmsListResponse } from "./actions/kms/get_kms_list";
|
|
24
|
+
import { type ListKmsContractsRequest, type ListKmsContractsResponse } from "./actions/kms/list_kms_contracts";
|
|
25
|
+
import { type GetKmsContractRequest, type GetKmsContract } from "./actions/kms/get_kms_contract";
|
|
26
|
+
import { type ListKmsContractNodesRequest, type ListKmsContractNodesResponse } from "./actions/kms/list_kms_contract_nodes";
|
|
24
27
|
import { type GetAppEnvEncryptPubKeyRequest, type GetAppEnvEncryptPubKey as GetAppEnvEncryptPubKeyResult } from "./actions/kms/get_app_env_encrypt_pubkey";
|
|
25
28
|
import { type NextAppIdsRequest, type NextAppIds } from "./actions/kms/next_app_ids";
|
|
26
29
|
import { type StartCvmRequest } from "./actions/cvms/start_cvm";
|
|
@@ -82,6 +85,9 @@ import type { SafeResult } from "./types/client";
|
|
|
82
85
|
* @param config - Client configuration
|
|
83
86
|
* @returns Client extended with all available actions
|
|
84
87
|
*/
|
|
88
|
+
export declare function createClient(config: ClientConfig<"2026-06-23"> & {
|
|
89
|
+
version: "2026-06-23";
|
|
90
|
+
}): Client<"2026-06-23">;
|
|
85
91
|
export declare function createClient(config: ClientConfig<"2026-05-22"> & {
|
|
86
92
|
version: "2026-05-22";
|
|
87
93
|
}): Client<"2026-05-22">;
|
|
@@ -204,6 +210,48 @@ export interface Client<V extends ApiVersion = DefaultApiVersion> extends BaseCl
|
|
|
204
210
|
safeGetKmsList(request: GetKmsListRequest | undefined, parameters: {
|
|
205
211
|
schema: false;
|
|
206
212
|
}): Promise<SafeResult<unknown>>;
|
|
213
|
+
listKmsContracts(request?: ListKmsContractsRequest): Promise<ListKmsContractsResponse>;
|
|
214
|
+
listKmsContracts<T extends z.ZodTypeAny>(request: ListKmsContractsRequest | undefined, parameters: {
|
|
215
|
+
schema: T;
|
|
216
|
+
}): Promise<z.infer<T>>;
|
|
217
|
+
listKmsContracts(request: ListKmsContractsRequest | undefined, parameters: {
|
|
218
|
+
schema: false;
|
|
219
|
+
}): Promise<unknown>;
|
|
220
|
+
safeListKmsContracts(request?: ListKmsContractsRequest): Promise<SafeResult<ListKmsContractsResponse>>;
|
|
221
|
+
safeListKmsContracts<T extends z.ZodTypeAny>(request: ListKmsContractsRequest | undefined, parameters: {
|
|
222
|
+
schema: T;
|
|
223
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
224
|
+
safeListKmsContracts(request: ListKmsContractsRequest | undefined, parameters: {
|
|
225
|
+
schema: false;
|
|
226
|
+
}): Promise<SafeResult<unknown>>;
|
|
227
|
+
getKmsContract(request: GetKmsContractRequest): Promise<GetKmsContract>;
|
|
228
|
+
getKmsContract<T extends z.ZodTypeAny>(request: GetKmsContractRequest, parameters: {
|
|
229
|
+
schema: T;
|
|
230
|
+
}): Promise<z.infer<T>>;
|
|
231
|
+
getKmsContract(request: GetKmsContractRequest, parameters: {
|
|
232
|
+
schema: false;
|
|
233
|
+
}): Promise<unknown>;
|
|
234
|
+
safeGetKmsContract(request: GetKmsContractRequest): Promise<SafeResult<GetKmsContract>>;
|
|
235
|
+
safeGetKmsContract<T extends z.ZodTypeAny>(request: GetKmsContractRequest, parameters: {
|
|
236
|
+
schema: T;
|
|
237
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
238
|
+
safeGetKmsContract(request: GetKmsContractRequest, parameters: {
|
|
239
|
+
schema: false;
|
|
240
|
+
}): Promise<SafeResult<unknown>>;
|
|
241
|
+
listKmsContractNodes(request: ListKmsContractNodesRequest): Promise<ListKmsContractNodesResponse>;
|
|
242
|
+
listKmsContractNodes<T extends z.ZodTypeAny>(request: ListKmsContractNodesRequest, parameters: {
|
|
243
|
+
schema: T;
|
|
244
|
+
}): Promise<z.infer<T>>;
|
|
245
|
+
listKmsContractNodes(request: ListKmsContractNodesRequest, parameters: {
|
|
246
|
+
schema: false;
|
|
247
|
+
}): Promise<unknown>;
|
|
248
|
+
safeListKmsContractNodes(request: ListKmsContractNodesRequest): Promise<SafeResult<ListKmsContractNodesResponse>>;
|
|
249
|
+
safeListKmsContractNodes<T extends z.ZodTypeAny>(request: ListKmsContractNodesRequest, parameters: {
|
|
250
|
+
schema: T;
|
|
251
|
+
}): Promise<SafeResult<z.infer<T>>>;
|
|
252
|
+
safeListKmsContractNodes(request: ListKmsContractNodesRequest, parameters: {
|
|
253
|
+
schema: false;
|
|
254
|
+
}): Promise<SafeResult<unknown>>;
|
|
207
255
|
getWorkspace(teamSlug: string): Promise<WorkspaceResponse>;
|
|
208
256
|
getWorkspace<T extends z.ZodTypeAny>(teamSlug: string, parameters: {
|
|
209
257
|
schema: T;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export { defineAction, defineSimpleAction } from "./utils/define-action";
|
|
|
8
8
|
export { parseEnv, parseEnvVars } from "./parse_dotenv";
|
|
9
9
|
export { encryptEnvVars, type EnvVar, } from "@phala/dstack-sdk/encrypt-env-vars";
|
|
10
10
|
export { getComposeHash } from "@phala/dstack-sdk/get-compose-hash";
|
|
11
|
-
export { verifyEnvEncryptPublicKey } from "@phala/dstack-sdk/verify-env-encrypt-public-key";
|
|
11
|
+
export { verifyEnvEncryptPublicKey, verifyEnvEncryptPublicKeyLegacy, } from "@phala/dstack-sdk/verify-env-encrypt-public-key";
|