phala 1.1.17 → 1.1.19
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 +52 -1
- package/dist/api/index.js +28 -28
- package/dist/index.js +166 -155
- package/package.json +2 -2
package/dist/api/index.d.ts
CHANGED
|
@@ -766,9 +766,55 @@ interface KmsListItem {
|
|
|
766
766
|
slug?: string | null;
|
|
767
767
|
url: string;
|
|
768
768
|
version: string;
|
|
769
|
+
kms_type?: string;
|
|
770
|
+
kms_contract_id?: string | number | null;
|
|
769
771
|
chain_id?: number | null;
|
|
770
772
|
kms_contract_address?: string | null;
|
|
771
773
|
gateway_app_id?: string | null;
|
|
774
|
+
supported_os_images?: string[];
|
|
775
|
+
}
|
|
776
|
+
interface CvmCreateNodeKmsRelation {
|
|
777
|
+
teepod_id: number;
|
|
778
|
+
kms_id: string | number;
|
|
779
|
+
kms_type: string;
|
|
780
|
+
kms_contract_id?: string | number | null;
|
|
781
|
+
kms_contract_address?: string | null;
|
|
782
|
+
supported_os_images?: string[];
|
|
783
|
+
}
|
|
784
|
+
interface CvmCreateGatewayResource {
|
|
785
|
+
id: string | number;
|
|
786
|
+
teepod_id?: number | null;
|
|
787
|
+
kms_contract_id: string | number;
|
|
788
|
+
rpc_url?: string | null;
|
|
789
|
+
domain_suffix?: string | null;
|
|
790
|
+
enabled: boolean;
|
|
791
|
+
}
|
|
792
|
+
interface CvmCreateInstanceTypeResource {
|
|
793
|
+
id: string;
|
|
794
|
+
name: string;
|
|
795
|
+
vcpu: number;
|
|
796
|
+
memory_mb: number;
|
|
797
|
+
default_disk_size_gb: number;
|
|
798
|
+
requires_gpu: boolean;
|
|
799
|
+
requires_gpu_count: number;
|
|
800
|
+
family?: string | null;
|
|
801
|
+
display_order?: number | null;
|
|
802
|
+
}
|
|
803
|
+
interface GpuAvailability {
|
|
804
|
+
has_reserved_gpus: boolean;
|
|
805
|
+
reserved_gpu_count: number;
|
|
806
|
+
has_public_gpus: boolean;
|
|
807
|
+
public_gpu_count: number;
|
|
808
|
+
}
|
|
809
|
+
interface CvmCreateResourcesResponse {
|
|
810
|
+
tier: string;
|
|
811
|
+
capacity: Record<string, unknown>;
|
|
812
|
+
nodes: TEEPod[];
|
|
813
|
+
kms_nodes: KmsListItem[];
|
|
814
|
+
node_kms_relations: CvmCreateNodeKmsRelation[];
|
|
815
|
+
gateway_nodes: CvmCreateGatewayResource[];
|
|
816
|
+
instance_types: CvmCreateInstanceTypeResource[];
|
|
817
|
+
gpu_availability: GpuAvailability;
|
|
772
818
|
}
|
|
773
819
|
interface PubkeyResponse {
|
|
774
820
|
app_env_encrypt_pubkey: string;
|
|
@@ -877,6 +923,11 @@ declare function upgradeCvm(appId: string, vmConfig: VMConfig): Promise<UpgradeR
|
|
|
877
923
|
* @returns List of TEEPods with embedded images
|
|
878
924
|
*/
|
|
879
925
|
declare function getTeepods(v03x_only?: boolean): Promise<TeepodResponse>;
|
|
926
|
+
/**
|
|
927
|
+
* Get the CVM create resource graph.
|
|
928
|
+
* @returns Nodes, KMS resources, gateway resources, and instance types for CVM creation
|
|
929
|
+
*/
|
|
930
|
+
declare function getCvmCreateResources(): Promise<CvmCreateResourcesResponse>;
|
|
880
931
|
interface SerialLogsOptions {
|
|
881
932
|
tail?: number;
|
|
882
933
|
timestamps?: boolean;
|
|
@@ -939,4 +990,4 @@ declare function streamCvmChannelLogs(appId: string, channel: CvmLogChannel, onD
|
|
|
939
990
|
/** Get CVM status string (e.g. "running", "stopped") */
|
|
940
991
|
declare function getCvmStatus(appId: string): Promise<string>;
|
|
941
992
|
|
|
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 };
|
|
993
|
+
export { type AvailableNodesResponse, type CertificateInfo, type CertificateNameInfo, type ComposeFile, type ContainerLogsOptions, type CvmAttestationResponse, type CvmCreateGatewayResource, type CvmCreateInstanceTypeResource, type CvmCreateNodeKmsRelation, type CvmCreateResourcesResponse, type CvmListResponse, type CvmLogChannel, type DockerConfig, type EncryptedEnvItem, type GetCvmNetworkResponse, type GpuAvailability, 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, getCvmCreateResources, getCvmLogEndpoint, getCvmNetwork, getCvmNetworkResponseSchema, getCvmStatus, getPubkeyFromCvm, getTeepods, imageSchema, postCvmResponseSchema, replicateCvm, replicateCvmResponseSchema, resizeCvm, selectCvm, streamContainerLogs, streamContainerLogsEntries, streamCvmChannelLogs, streamSerialLogs, teepodSchema, upgradeCvm };
|