phala 1.1.20-beta.1 → 1.1.20

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.
@@ -90,88 +90,6 @@ declare const composeFileSchema: z.ZodObject<{
90
90
  tproxy_enabled: z.ZodBoolean;
91
91
  version: z.ZodOptional<z.ZodString>;
92
92
  }, z.ZodTypeAny, "passthrough">>;
93
- declare const postCvmResponseSchema: z.ZodObject<{
94
- id: z.ZodString;
95
- name: z.ZodString;
96
- status: z.ZodString;
97
- teepod_id: z.ZodNullable<z.ZodNumber>;
98
- teepod: z.ZodNullable<z.ZodObject<{
99
- id: z.ZodNumber;
100
- name: z.ZodString;
101
- }, "strip", z.ZodTypeAny, {
102
- name?: string;
103
- id?: number;
104
- }, {
105
- name?: string;
106
- id?: number;
107
- }>>;
108
- user_id: z.ZodNullable<z.ZodString>;
109
- app_id: z.ZodString;
110
- vm_uuid: z.ZodNullable<z.ZodString>;
111
- instance_id: z.ZodNullable<z.ZodString>;
112
- app_url: z.ZodNullable<z.ZodString>;
113
- base_image: z.ZodNullable<z.ZodString>;
114
- vcpu: z.ZodNumber;
115
- memory: z.ZodNumber;
116
- disk_size: z.ZodNumber;
117
- manifest_version: z.ZodNullable<z.ZodNumber>;
118
- version: z.ZodNullable<z.ZodString>;
119
- runner: z.ZodNullable<z.ZodString>;
120
- docker_compose_file: z.ZodNullable<z.ZodString>;
121
- features: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
122
- created_at: z.ZodString;
123
- encrypted_env_pubkey: z.ZodNullable<z.ZodString>;
124
- }, "strip", z.ZodTypeAny, {
125
- name?: string;
126
- vcpu?: number;
127
- memory?: number;
128
- status?: string;
129
- id?: string;
130
- app_id?: string;
131
- instance_id?: string;
132
- version?: string;
133
- runner?: string;
134
- docker_compose_file?: string;
135
- features?: string[];
136
- manifest_version?: number;
137
- teepod_id?: number;
138
- teepod?: {
139
- name?: string;
140
- id?: number;
141
- };
142
- user_id?: string;
143
- vm_uuid?: string;
144
- app_url?: string;
145
- base_image?: string;
146
- disk_size?: number;
147
- created_at?: string;
148
- encrypted_env_pubkey?: string;
149
- }, {
150
- name?: string;
151
- vcpu?: number;
152
- memory?: number;
153
- status?: string;
154
- id?: string;
155
- app_id?: string;
156
- instance_id?: string;
157
- version?: string;
158
- runner?: string;
159
- docker_compose_file?: string;
160
- features?: string[];
161
- manifest_version?: number;
162
- teepod_id?: number;
163
- teepod?: {
164
- name?: string;
165
- id?: number;
166
- };
167
- user_id?: string;
168
- vm_uuid?: string;
169
- app_url?: string;
170
- base_image?: string;
171
- disk_size?: number;
172
- created_at?: string;
173
- encrypted_env_pubkey?: string;
174
- }>;
175
93
  declare const encryptedEnvItemSchema: z.ZodObject<{
176
94
  key: z.ZodString;
177
95
  value: z.ZodString;
@@ -221,7 +139,6 @@ declare const getCvmNetworkResponseSchema: z.ZodObject<{
221
139
  }>;
222
140
  type DockerConfig = z.infer<typeof dockerConfigSchema>;
223
141
  type ComposeFile = z.infer<typeof composeFileSchema>;
224
- type PostCvmResponse = z.infer<typeof postCvmResponseSchema>;
225
142
  type EncryptedEnvItem = z.infer<typeof encryptedEnvItemSchema>;
226
143
  type CvmAttestationResponse = z.infer<typeof cvmAttestationResponseSchema>;
227
144
  type GetCvmNetworkResponse = z.infer<typeof getCvmNetworkResponseSchema>;
@@ -757,10 +674,6 @@ declare const teepodSchema: z.ZodObject<{
757
674
  }>;
758
675
  type TEEPod = z.infer<typeof teepodSchema>;
759
676
  type Image = z.infer<typeof imageSchema>;
760
- interface TeepodResponse {
761
- nodes: TEEPod[];
762
- kms_list?: KmsListItem[];
763
- }
764
677
  interface KmsListItem {
765
678
  id?: string;
766
679
  slug?: string | null;
@@ -816,10 +729,6 @@ interface CvmCreateResourcesResponse {
816
729
  instance_types: CvmCreateInstanceTypeResource[];
817
730
  gpu_availability: GpuAvailability;
818
731
  }
819
- interface PubkeyResponse {
820
- app_env_encrypt_pubkey: string;
821
- app_id_salt: string;
822
- }
823
732
  interface UpgradeResponse {
824
733
  detail?: string;
825
734
  [key: string]: unknown;
@@ -894,20 +803,6 @@ declare function resizeCvm(appId: string, vcpu?: number, memory?: number, diskSi
894
803
  interface VMConfig {
895
804
  [key: string]: unknown;
896
805
  }
897
- /**
898
- * Get public key from CVM (Legacy)
899
- * @deprecated This is a legacy function for create command
900
- * @param vmConfig VM configuration
901
- * @returns Public key
902
- */
903
- declare function getPubkeyFromCvm(vmConfig: VMConfig): Promise<PubkeyResponse>;
904
- /**
905
- * Create a new CVM (Legacy)
906
- * @deprecated This is a legacy function, consider using SDK's provisionCvm
907
- * @param vmConfig VM configuration
908
- * @returns Created CVM details
909
- */
910
- declare function createCvm(vmConfig: VMConfig): Promise<PostCvmResponse>;
911
806
  /**
912
807
  * Upgrade a CVM (Legacy)
913
808
  * @deprecated This is a legacy function, consider using SDK's provisionCvmComposeFileUpdate
@@ -916,13 +811,6 @@ declare function createCvm(vmConfig: VMConfig): Promise<PostCvmResponse>;
916
811
  * @returns Upgrade response
917
812
  */
918
813
  declare function upgradeCvm(appId: string, vmConfig: VMConfig): Promise<UpgradeResponse>;
919
- /**
920
- * Get all TEEPods with their images (Legacy)
921
- * @deprecated This is a legacy function for create command, use SDK's safeGetAvailableNodes instead
922
- * @param v03x_only Only get v0.3.x compatible nodes
923
- * @returns List of TEEPods with embedded images
924
- */
925
- declare function getTeepods(v03x_only?: boolean): Promise<TeepodResponse>;
926
814
  /**
927
815
  * Get the CVM create resource graph.
928
816
  * @returns Nodes, KMS resources, gateway resources, and instance types for CVM creation
@@ -990,4 +878,4 @@ declare function streamCvmChannelLogs(appId: string, channel: CvmLogChannel, onD
990
878
  /** Get CVM status string (e.g. "running", "stopped") */
991
879
  declare function getCvmStatus(appId: string): Promise<string>;
992
880
 
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 };
881
+ 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 ReplicateCvmResponse, type ResizeCvmPayload, type SerialLogsOptions, type TCBEventLogEntry, type TCBInfo, type TEEPod, type UpgradeResponse, type UserInfoResponse, type VMConfig, composeFileSchema, cvmAttestationResponseSchema, dockerConfigSchema, encryptedEnvItemSchema, fetchContainerLogs, fetchContainerLogsEntries, fetchCvmChannelLogs, fetchSerialLogs, getCvmAttestation, getCvmByAppId, getCvmCreateResources, getCvmLogEndpoint, getCvmNetwork, getCvmNetworkResponseSchema, getCvmStatus, imageSchema, replicateCvm, replicateCvmResponseSchema, resizeCvm, selectCvm, streamContainerLogs, streamContainerLogsEntries, streamCvmChannelLogs, streamSerialLogs, teepodSchema, upgradeCvm };