phala 1.1.13 → 1.1.17
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/api/index.d.ts +15 -22
- package/dist/api/index.js +28 -28
- package/dist/index.js +251 -158
- package/package.json +4 -3
package/dist/api/index.d.ts
CHANGED
|
@@ -289,22 +289,22 @@ declare const replicateCvmResponseSchema: z.ZodObject<{
|
|
|
289
289
|
name?: string;
|
|
290
290
|
id?: number;
|
|
291
291
|
}>;
|
|
292
|
-
user_id: z.ZodNullable<z.ZodNumber
|
|
292
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
293
293
|
app_id: z.ZodString;
|
|
294
|
-
vm_uuid: z.ZodNullable<z.ZodString
|
|
295
|
-
instance_id: z.ZodNullable<z.ZodString
|
|
296
|
-
app_url: z.ZodNullable<z.ZodString
|
|
297
|
-
base_image: z.ZodNullable<z.ZodString
|
|
294
|
+
vm_uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
295
|
+
instance_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
296
|
+
app_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
297
|
+
base_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
298
|
vcpu: z.ZodNumber;
|
|
299
299
|
memory: z.ZodNumber;
|
|
300
300
|
disk_size: z.ZodNumber;
|
|
301
|
-
manifest_version: z.ZodNullable<z.ZodNumber
|
|
302
|
-
version: z.ZodNullable<z.ZodString
|
|
303
|
-
runner: z.ZodNullable<z.ZodString
|
|
304
|
-
docker_compose_file: z.ZodNullable<z.ZodString
|
|
305
|
-
features: z.ZodNullable<z.ZodArray<z.ZodString, "many"
|
|
301
|
+
manifest_version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
302
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
|
+
runner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
304
|
+
docker_compose_file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
|
+
features: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
306
306
|
created_at: z.ZodString;
|
|
307
|
-
encrypted_env_pubkey: z.ZodNullable<z.ZodString
|
|
307
|
+
encrypted_env_pubkey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
309
|
name?: string;
|
|
310
310
|
vcpu?: number;
|
|
@@ -790,10 +790,6 @@ interface AvailableNodesResponse {
|
|
|
790
790
|
nodes: TEEPod[];
|
|
791
791
|
kms_list?: KmsListItem[];
|
|
792
792
|
}
|
|
793
|
-
interface CvmComposeConfigResponse {
|
|
794
|
-
env_pubkey: string;
|
|
795
|
-
[key: string]: unknown;
|
|
796
|
-
}
|
|
797
793
|
|
|
798
794
|
/**
|
|
799
795
|
* Get CVM by App ID using SDK
|
|
@@ -801,10 +797,6 @@ interface CvmComposeConfigResponse {
|
|
|
801
797
|
* @returns CVM details
|
|
802
798
|
*/
|
|
803
799
|
declare function getCvmByAppId(appId: string): Promise<CvmInfoDetailV20260121>;
|
|
804
|
-
/**
|
|
805
|
-
* Get CVM compose configuration
|
|
806
|
-
*/
|
|
807
|
-
declare function getCvmComposeConfig(cvmId: string): Promise<CvmComposeConfigResponse>;
|
|
808
800
|
/**
|
|
809
801
|
* Get CVM network information
|
|
810
802
|
* @param appId App ID (with or without app_ prefix)
|
|
@@ -832,10 +824,11 @@ interface ResizeCvmPayload {
|
|
|
832
824
|
allow_restart?: number;
|
|
833
825
|
}
|
|
834
826
|
/**
|
|
835
|
-
* Replicate a CVM
|
|
827
|
+
* Replicate a CVM instance
|
|
836
828
|
* @param appId App ID (with or without app_ prefix)
|
|
829
|
+
* @param vmUuid Source CVM UUID (with or without dashes)
|
|
837
830
|
*/
|
|
838
|
-
declare function replicateCvm(appId: string, payload: {
|
|
831
|
+
declare function replicateCvm(appId: string, vmUuid: string, payload: {
|
|
839
832
|
teepod_id?: number;
|
|
840
833
|
encrypted_env?: string;
|
|
841
834
|
}): Promise<ReplicateCvmResponse>;
|
|
@@ -946,4 +939,4 @@ declare function streamCvmChannelLogs(appId: string, channel: CvmLogChannel, onD
|
|
|
946
939
|
/** Get CVM status string (e.g. "running", "stopped") */
|
|
947
940
|
declare function getCvmStatus(appId: string): Promise<string>;
|
|
948
941
|
|
|
949
|
-
export { type AvailableNodesResponse, type CertificateInfo, type CertificateNameInfo, type ComposeFile, type ContainerLogsOptions, type CvmAttestationResponse, type
|
|
942
|
+
export { type AvailableNodesResponse, type CertificateInfo, type CertificateNameInfo, type ComposeFile, type ContainerLogsOptions, type CvmAttestationResponse, type CvmListResponse, type CvmLogChannel, type DockerConfig, type EncryptedEnvItem, type GetCvmNetworkResponse, type Image, type KmsListItem, type LogChannel, type LogEntry, type PostCvmResponse, type PubkeyResponse, type ReplicateCvmResponse, type ResizeCvmPayload, type SerialLogsOptions, type TCBEventLogEntry, type TCBInfo, type TEEPod, type TeepodResponse, type UpgradeResponse, type UserInfoResponse, type VMConfig, composeFileSchema, createCvm, cvmAttestationResponseSchema, dockerConfigSchema, encryptedEnvItemSchema, fetchContainerLogs, fetchContainerLogsEntries, fetchCvmChannelLogs, fetchSerialLogs, getCvmAttestation, getCvmByAppId, getCvmLogEndpoint, getCvmNetwork, getCvmNetworkResponseSchema, getCvmStatus, getPubkeyFromCvm, getTeepods, imageSchema, postCvmResponseSchema, replicateCvm, replicateCvmResponseSchema, resizeCvm, selectCvm, streamContainerLogs, streamContainerLogsEntries, streamCvmChannelLogs, streamSerialLogs, teepodSchema, upgradeCvm };
|