phala 1.0.18 → 1.1.0-beta.1

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.
@@ -860,12 +860,15 @@ declare const postCvmResponseSchema: z.ZodObject<{
860
860
  memory: z.ZodNumber;
861
861
  disk_size: z.ZodNumber;
862
862
  manifest_version: z.ZodNumber;
863
- version: z.ZodString;
863
+ version: z.ZodNullable<z.ZodString>;
864
864
  runner: z.ZodString;
865
865
  docker_compose_file: z.ZodString;
866
866
  features: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
867
867
  created_at: z.ZodString;
868
868
  encrypted_env_pubkey: z.ZodString;
869
+ device_id: z.ZodOptional<z.ZodString>;
870
+ kms_contract_address: z.ZodOptional<z.ZodString>;
871
+ kms_owner_address: z.ZodOptional<z.ZodString>;
869
872
  }, "strip", z.ZodTypeAny, {
870
873
  teepod?: {
871
874
  name?: string;
@@ -891,6 +894,9 @@ declare const postCvmResponseSchema: z.ZodObject<{
891
894
  base_image?: string;
892
895
  created_at?: string;
893
896
  encrypted_env_pubkey?: string;
897
+ device_id?: string;
898
+ kms_contract_address?: string;
899
+ kms_owner_address?: string;
894
900
  }, {
895
901
  teepod?: {
896
902
  name?: string;
@@ -916,6 +922,9 @@ declare const postCvmResponseSchema: z.ZodObject<{
916
922
  base_image?: string;
917
923
  created_at?: string;
918
924
  encrypted_env_pubkey?: string;
925
+ device_id?: string;
926
+ kms_contract_address?: string;
927
+ kms_owner_address?: string;
919
928
  }>;
920
929
  declare const getPubkeyFromCvmResponseSchema: z.ZodObject<{
921
930
  app_env_encrypt_pubkey: z.ZodString;
@@ -954,6 +963,67 @@ declare const getCvmByAppIdResponseSchema: z.ZodObject<{
954
963
  listed: z.ZodBoolean;
955
964
  project_id: z.ZodString;
956
965
  project_type: z.ZodNullable<z.ZodString>;
966
+ compose_file: z.ZodOptional<z.ZodObject<{
967
+ docker_compose_file: z.ZodString;
968
+ docker_config: z.ZodOptional<z.ZodObject<{
969
+ password: z.ZodString;
970
+ registry: z.ZodNullable<z.ZodString>;
971
+ username: z.ZodString;
972
+ }, "strip", z.ZodTypeAny, {
973
+ password?: string;
974
+ registry?: string;
975
+ username?: string;
976
+ }, {
977
+ password?: string;
978
+ registry?: string;
979
+ username?: string;
980
+ }>>;
981
+ features: z.ZodArray<z.ZodString, "many">;
982
+ kms_enabled: z.ZodBoolean;
983
+ manifest_version: z.ZodNumber;
984
+ name: z.ZodString;
985
+ public_logs: z.ZodBoolean;
986
+ public_sysinfo: z.ZodBoolean;
987
+ runner: z.ZodOptional<z.ZodString>;
988
+ salt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
989
+ tproxy_enabled: z.ZodBoolean;
990
+ version: z.ZodOptional<z.ZodString>;
991
+ }, "strip", z.ZodTypeAny, {
992
+ docker_compose_file?: string;
993
+ docker_config?: {
994
+ password?: string;
995
+ registry?: string;
996
+ username?: string;
997
+ };
998
+ features?: string[];
999
+ kms_enabled?: boolean;
1000
+ manifest_version?: number;
1001
+ name?: string;
1002
+ public_logs?: boolean;
1003
+ public_sysinfo?: boolean;
1004
+ runner?: string;
1005
+ salt?: string;
1006
+ tproxy_enabled?: boolean;
1007
+ version?: string;
1008
+ }, {
1009
+ docker_compose_file?: string;
1010
+ docker_config?: {
1011
+ password?: string;
1012
+ registry?: string;
1013
+ username?: string;
1014
+ };
1015
+ features?: string[];
1016
+ kms_enabled?: boolean;
1017
+ manifest_version?: number;
1018
+ name?: string;
1019
+ public_logs?: boolean;
1020
+ public_sysinfo?: boolean;
1021
+ runner?: string;
1022
+ salt?: string;
1023
+ tproxy_enabled?: boolean;
1024
+ version?: string;
1025
+ }>>;
1026
+ kms_info: z.ZodOptional<z.ZodAny>;
957
1027
  }, "strip", z.ZodTypeAny, {
958
1028
  teepod?: {
959
1029
  name?: string;
@@ -961,6 +1031,24 @@ declare const getCvmByAppIdResponseSchema: z.ZodObject<{
961
1031
  };
962
1032
  status?: string;
963
1033
  name?: string;
1034
+ compose_file?: {
1035
+ docker_compose_file?: string;
1036
+ docker_config?: {
1037
+ password?: string;
1038
+ registry?: string;
1039
+ username?: string;
1040
+ };
1041
+ features?: string[];
1042
+ kms_enabled?: boolean;
1043
+ manifest_version?: number;
1044
+ name?: string;
1045
+ public_logs?: boolean;
1046
+ public_sysinfo?: boolean;
1047
+ runner?: string;
1048
+ salt?: string;
1049
+ tproxy_enabled?: boolean;
1050
+ version?: string;
1051
+ };
964
1052
  vcpu?: number;
965
1053
  memory?: number;
966
1054
  disk_size?: number;
@@ -975,6 +1063,7 @@ declare const getCvmByAppIdResponseSchema: z.ZodObject<{
975
1063
  encrypted_env_pubkey?: string;
976
1064
  project_id?: string;
977
1065
  project_type?: string;
1066
+ kms_info?: any;
978
1067
  }, {
979
1068
  teepod?: {
980
1069
  name?: string;
@@ -982,6 +1071,24 @@ declare const getCvmByAppIdResponseSchema: z.ZodObject<{
982
1071
  };
983
1072
  status?: string;
984
1073
  name?: string;
1074
+ compose_file?: {
1075
+ docker_compose_file?: string;
1076
+ docker_config?: {
1077
+ password?: string;
1078
+ registry?: string;
1079
+ username?: string;
1080
+ };
1081
+ features?: string[];
1082
+ kms_enabled?: boolean;
1083
+ manifest_version?: number;
1084
+ name?: string;
1085
+ public_logs?: boolean;
1086
+ public_sysinfo?: boolean;
1087
+ runner?: string;
1088
+ salt?: string;
1089
+ tproxy_enabled?: boolean;
1090
+ version?: string;
1091
+ };
985
1092
  vcpu?: number;
986
1093
  memory?: number;
987
1094
  disk_size?: number;
@@ -996,6 +1103,7 @@ declare const getCvmByAppIdResponseSchema: z.ZodObject<{
996
1103
  encrypted_env_pubkey?: string;
997
1104
  project_id?: string;
998
1105
  project_type?: string;
1106
+ kms_info?: any;
999
1107
  }>;
1000
1108
  declare const getUserInfoResponseSchema: z.ZodObject<{
1001
1109
  username: z.ZodString;
@@ -1394,6 +1502,121 @@ declare const upgradeCvmResponseSchema: z.ZodObject<{
1394
1502
  }, {
1395
1503
  detail?: string;
1396
1504
  }>;
1505
+ declare const updatePatchCvmComposeResponseSchema: z.ZodUnion<[z.ZodNull, z.ZodObject<{
1506
+ detail: z.ZodArray<z.ZodObject<{
1507
+ loc: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1508
+ msg: z.ZodString;
1509
+ type: z.ZodString;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ type?: string;
1512
+ loc?: (string | number)[];
1513
+ msg?: string;
1514
+ }, {
1515
+ type?: string;
1516
+ loc?: (string | number)[];
1517
+ msg?: string;
1518
+ }>, "many">;
1519
+ }, "strip", z.ZodTypeAny, {
1520
+ detail?: {
1521
+ type?: string;
1522
+ loc?: (string | number)[];
1523
+ msg?: string;
1524
+ }[];
1525
+ }, {
1526
+ detail?: {
1527
+ type?: string;
1528
+ loc?: (string | number)[];
1529
+ msg?: string;
1530
+ }[];
1531
+ }>]>;
1532
+ declare const updateCvmComposeResponseSchema: z.ZodObject<{
1533
+ app_id: z.ZodString;
1534
+ device_id: z.ZodString;
1535
+ compose_hash: z.ZodString;
1536
+ kms_info: z.ZodOptional<z.ZodObject<{
1537
+ chain_id: z.ZodNumber;
1538
+ kms_url: z.ZodString;
1539
+ kms_contract_address: z.ZodString;
1540
+ }, "strip", z.ZodTypeAny, {
1541
+ kms_contract_address?: string;
1542
+ chain_id?: number;
1543
+ kms_url?: string;
1544
+ }, {
1545
+ kms_contract_address?: string;
1546
+ chain_id?: number;
1547
+ kms_url?: string;
1548
+ }>>;
1549
+ }, "strip", z.ZodTypeAny, {
1550
+ app_id?: string;
1551
+ device_id?: string;
1552
+ kms_info?: {
1553
+ kms_contract_address?: string;
1554
+ chain_id?: number;
1555
+ kms_url?: string;
1556
+ };
1557
+ compose_hash?: string;
1558
+ }, {
1559
+ app_id?: string;
1560
+ device_id?: string;
1561
+ kms_info?: {
1562
+ kms_contract_address?: string;
1563
+ chain_id?: number;
1564
+ kms_url?: string;
1565
+ };
1566
+ compose_hash?: string;
1567
+ }>;
1568
+ declare const getCvmComposeFileResponseSchema: z.ZodObject<{
1569
+ allowed_envs: z.ZodArray<z.ZodString, "many">;
1570
+ bash_script: z.ZodNullable<z.ZodString>;
1571
+ docker_compose_file: z.ZodString;
1572
+ kms_enabled: z.ZodBoolean;
1573
+ local_key_provider_enabled: z.ZodBoolean;
1574
+ manifest_version: z.ZodNumber;
1575
+ name: z.ZodString;
1576
+ no_instance_id: z.ZodBoolean;
1577
+ pre_launch_script: z.ZodString;
1578
+ public_logs: z.ZodBoolean;
1579
+ public_sysinfo: z.ZodBoolean;
1580
+ runner: z.ZodString;
1581
+ salt: z.ZodNullable<z.ZodString>;
1582
+ tproxy_enabled: z.ZodBoolean;
1583
+ gateway_enabled: z.ZodBoolean;
1584
+ features: z.ZodArray<z.ZodString, "many">;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ docker_compose_file?: string;
1587
+ features?: string[];
1588
+ kms_enabled?: boolean;
1589
+ manifest_version?: number;
1590
+ name?: string;
1591
+ public_logs?: boolean;
1592
+ public_sysinfo?: boolean;
1593
+ runner?: string;
1594
+ salt?: string;
1595
+ tproxy_enabled?: boolean;
1596
+ allowed_envs?: string[];
1597
+ bash_script?: string;
1598
+ local_key_provider_enabled?: boolean;
1599
+ no_instance_id?: boolean;
1600
+ pre_launch_script?: string;
1601
+ gateway_enabled?: boolean;
1602
+ }, {
1603
+ docker_compose_file?: string;
1604
+ features?: string[];
1605
+ kms_enabled?: boolean;
1606
+ manifest_version?: number;
1607
+ name?: string;
1608
+ public_logs?: boolean;
1609
+ public_sysinfo?: boolean;
1610
+ runner?: string;
1611
+ salt?: string;
1612
+ tproxy_enabled?: boolean;
1613
+ allowed_envs?: string[];
1614
+ bash_script?: string;
1615
+ local_key_provider_enabled?: boolean;
1616
+ no_instance_id?: boolean;
1617
+ pre_launch_script?: string;
1618
+ gateway_enabled?: boolean;
1619
+ }>;
1397
1620
  declare const encryptedEnvItemSchema: z.ZodObject<{
1398
1621
  key: z.ZodString;
1399
1622
  value: z.ZodString;
@@ -1510,6 +1733,7 @@ declare const teepodSchema: z.ZodObject<{
1510
1733
  region_identifier?: string;
1511
1734
  listed?: boolean;
1512
1735
  teepod_id?: number;
1736
+ device_id?: string;
1513
1737
  resource_score?: number;
1514
1738
  remaining_vcpu?: number;
1515
1739
  remaining_memory?: number;
@@ -1532,13 +1756,13 @@ declare const teepodSchema: z.ZodObject<{
1532
1756
  dedicated_for_team_id?: number;
1533
1757
  support_onchain_kms?: boolean;
1534
1758
  fmspc?: string;
1535
- device_id?: string;
1536
1759
  }, {
1537
1760
  name?: string;
1538
1761
  id?: number;
1539
1762
  region_identifier?: string;
1540
1763
  listed?: boolean;
1541
1764
  teepod_id?: number;
1765
+ device_id?: string;
1542
1766
  resource_score?: number;
1543
1767
  remaining_vcpu?: number;
1544
1768
  remaining_memory?: number;
@@ -1561,7 +1785,6 @@ declare const teepodSchema: z.ZodObject<{
1561
1785
  dedicated_for_team_id?: number;
1562
1786
  support_onchain_kms?: boolean;
1563
1787
  fmspc?: string;
1564
- device_id?: string;
1565
1788
  }>;
1566
1789
  declare const capacitySchema: z.ZodObject<{
1567
1790
  max_instances: z.ZodNullable<z.ZodNumber>;
@@ -1590,15 +1813,15 @@ declare const kmsListItemSchema: z.ZodObject<{
1590
1813
  url?: string;
1591
1814
  version?: string;
1592
1815
  id?: string;
1593
- chain_id?: number;
1594
1816
  kms_contract_address?: string;
1817
+ chain_id?: number;
1595
1818
  gateway_app_id?: string;
1596
1819
  }, {
1597
1820
  url?: string;
1598
1821
  version?: string;
1599
1822
  id?: string;
1600
- chain_id?: number;
1601
1823
  kms_contract_address?: string;
1824
+ chain_id?: number;
1602
1825
  gateway_app_id?: string;
1603
1826
  }>;
1604
1827
  declare const teepodResponseSchema: z.ZodObject<{
@@ -1682,6 +1905,7 @@ declare const teepodResponseSchema: z.ZodObject<{
1682
1905
  region_identifier?: string;
1683
1906
  listed?: boolean;
1684
1907
  teepod_id?: number;
1908
+ device_id?: string;
1685
1909
  resource_score?: number;
1686
1910
  remaining_vcpu?: number;
1687
1911
  remaining_memory?: number;
@@ -1704,13 +1928,13 @@ declare const teepodResponseSchema: z.ZodObject<{
1704
1928
  dedicated_for_team_id?: number;
1705
1929
  support_onchain_kms?: boolean;
1706
1930
  fmspc?: string;
1707
- device_id?: string;
1708
1931
  }, {
1709
1932
  name?: string;
1710
1933
  id?: number;
1711
1934
  region_identifier?: string;
1712
1935
  listed?: boolean;
1713
1936
  teepod_id?: number;
1937
+ device_id?: string;
1714
1938
  resource_score?: number;
1715
1939
  remaining_vcpu?: number;
1716
1940
  remaining_memory?: number;
@@ -1733,7 +1957,6 @@ declare const teepodResponseSchema: z.ZodObject<{
1733
1957
  dedicated_for_team_id?: number;
1734
1958
  support_onchain_kms?: boolean;
1735
1959
  fmspc?: string;
1736
- device_id?: string;
1737
1960
  }>, "many">;
1738
1961
  kms_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
1739
1962
  id: z.ZodString;
@@ -1746,15 +1969,15 @@ declare const teepodResponseSchema: z.ZodObject<{
1746
1969
  url?: string;
1747
1970
  version?: string;
1748
1971
  id?: string;
1749
- chain_id?: number;
1750
1972
  kms_contract_address?: string;
1973
+ chain_id?: number;
1751
1974
  gateway_app_id?: string;
1752
1975
  }, {
1753
1976
  url?: string;
1754
1977
  version?: string;
1755
1978
  id?: string;
1756
- chain_id?: number;
1757
1979
  kms_contract_address?: string;
1980
+ chain_id?: number;
1758
1981
  gateway_app_id?: string;
1759
1982
  }>, "many">>;
1760
1983
  }, "strip", z.ZodTypeAny, {
@@ -1764,6 +1987,7 @@ declare const teepodResponseSchema: z.ZodObject<{
1764
1987
  region_identifier?: string;
1765
1988
  listed?: boolean;
1766
1989
  teepod_id?: number;
1990
+ device_id?: string;
1767
1991
  resource_score?: number;
1768
1992
  remaining_vcpu?: number;
1769
1993
  remaining_memory?: number;
@@ -1786,7 +2010,6 @@ declare const teepodResponseSchema: z.ZodObject<{
1786
2010
  dedicated_for_team_id?: number;
1787
2011
  support_onchain_kms?: boolean;
1788
2012
  fmspc?: string;
1789
- device_id?: string;
1790
2013
  }[];
1791
2014
  tier?: string;
1792
2015
  capacity?: {
@@ -1799,8 +2022,8 @@ declare const teepodResponseSchema: z.ZodObject<{
1799
2022
  url?: string;
1800
2023
  version?: string;
1801
2024
  id?: string;
1802
- chain_id?: number;
1803
2025
  kms_contract_address?: string;
2026
+ chain_id?: number;
1804
2027
  gateway_app_id?: string;
1805
2028
  }[];
1806
2029
  }, {
@@ -1810,6 +2033,7 @@ declare const teepodResponseSchema: z.ZodObject<{
1810
2033
  region_identifier?: string;
1811
2034
  listed?: boolean;
1812
2035
  teepod_id?: number;
2036
+ device_id?: string;
1813
2037
  resource_score?: number;
1814
2038
  remaining_vcpu?: number;
1815
2039
  remaining_memory?: number;
@@ -1832,7 +2056,6 @@ declare const teepodResponseSchema: z.ZodObject<{
1832
2056
  dedicated_for_team_id?: number;
1833
2057
  support_onchain_kms?: boolean;
1834
2058
  fmspc?: string;
1835
- device_id?: string;
1836
2059
  }[];
1837
2060
  tier?: string;
1838
2061
  capacity?: {
@@ -1845,8 +2068,8 @@ declare const teepodResponseSchema: z.ZodObject<{
1845
2068
  url?: string;
1846
2069
  version?: string;
1847
2070
  id?: string;
1848
- chain_id?: number;
1849
2071
  kms_contract_address?: string;
2072
+ chain_id?: number;
1850
2073
  gateway_app_id?: string;
1851
2074
  }[];
1852
2075
  }>;
@@ -1887,6 +2110,17 @@ declare const getCvmNetworkResponseSchema: z.ZodObject<{
1887
2110
  instance?: string;
1888
2111
  }[];
1889
2112
  }>;
2113
+ declare const kmsPubkeyResponseSchema: z.ZodObject<{
2114
+ public_key: z.ZodString;
2115
+ signature: z.ZodString;
2116
+ }, "strip", z.ZodTypeAny, {
2117
+ public_key?: string;
2118
+ signature?: string;
2119
+ }, {
2120
+ public_key?: string;
2121
+ signature?: string;
2122
+ }>;
2123
+ type KmsPubkeyResponse = z.infer<typeof kmsPubkeyResponseSchema>;
1890
2124
  type KmsListItem = z.infer<typeof kmsListItemSchema>;
1891
2125
  type DockerConfig = z.infer<typeof dockerConfigSchema>;
1892
2126
  type ComposeFile = z.infer<typeof composeFileSchema>;
@@ -1901,6 +2135,9 @@ type GetCvmByAppIdResponse = z.infer<typeof getCvmByAppIdResponseSchema>;
1901
2135
  type GetUserInfoResponse = z.infer<typeof getUserInfoResponseSchema>;
1902
2136
  type GetCvmsByUserIdResponse = z.infer<typeof getCvmsByUserIdResponseSchema>;
1903
2137
  type UpgradeCvmResponse = z.infer<typeof upgradeCvmResponseSchema>;
2138
+ type UpdateCvmComposeResponse = z.infer<typeof updateCvmComposeResponseSchema>;
2139
+ type UpdatePatchCvmComposeResponse = z.infer<typeof updatePatchCvmComposeResponseSchema>;
2140
+ type GetCvmComposeFileResponse = z.infer<typeof getCvmComposeFileResponseSchema>;
1904
2141
  type EncryptedEnvItem = z.infer<typeof encryptedEnvItemSchema>;
1905
2142
  type TEEPod = z.infer<typeof teepodSchema>;
1906
2143
  type Image = z.infer<typeof imageSchema>;
@@ -1908,6 +2145,29 @@ type Capacity = z.infer<typeof capacitySchema>;
1908
2145
  type TeepodResponse = z.infer<typeof teepodResponseSchema>;
1909
2146
  type CvmAttestationResponse = z.infer<typeof cvmAttestationResponseSchema>;
1910
2147
  type GetCvmNetworkResponse = z.infer<typeof getCvmNetworkResponseSchema>;
2148
+ declare const provisionCvmResponseSchema: z.ZodObject<{
2149
+ app_id: z.ZodNullable<z.ZodString>;
2150
+ app_env_encrypt_pubkey: z.ZodString;
2151
+ compose_hash: z.ZodString;
2152
+ fmspc: z.ZodString;
2153
+ device_id: z.ZodString;
2154
+ os_image_hash: z.ZodString;
2155
+ }, "strip", z.ZodTypeAny, {
2156
+ app_id?: string;
2157
+ device_id?: string;
2158
+ app_env_encrypt_pubkey?: string;
2159
+ compose_hash?: string;
2160
+ os_image_hash?: string;
2161
+ fmspc?: string;
2162
+ }, {
2163
+ app_id?: string;
2164
+ device_id?: string;
2165
+ app_env_encrypt_pubkey?: string;
2166
+ compose_hash?: string;
2167
+ os_image_hash?: string;
2168
+ fmspc?: string;
2169
+ }>;
2170
+ type ProvisionCvmResponse = z.infer<typeof provisionCvmResponseSchema>;
1911
2171
  /**
1912
2172
  * Certificate naming information
1913
2173
  */
@@ -2445,6 +2705,18 @@ declare function checkCvmExists(appId: string): Promise<string>;
2445
2705
  * @returns CVM details
2446
2706
  */
2447
2707
  declare function getCvmByAppId(appId: string): Promise<GetCvmByAppIdResponse>;
2708
+ /**
2709
+ * Get a CVM by CVM ID
2710
+ * @param cvmId CVM ID
2711
+ * @returns CVM details
2712
+ */
2713
+ declare function getCvmByCvmId(cvmId: string): Promise<GetCvmByAppIdResponse>;
2714
+ /**
2715
+ * Get compose file from CVM
2716
+ * @param cvmId CVM ID
2717
+ * @returns Compose file
2718
+ */
2719
+ declare function getCvmComposeFile(cvmId: string): Promise<GetCvmComposeFileResponse>;
2448
2720
  /**
2449
2721
  * Get public key from CVM
2450
2722
  * @param vmConfig VM configuration
@@ -2457,6 +2729,18 @@ declare function getPubkeyFromCvm(vmConfig: VMConfig): Promise<GetPubkeyFromCvmR
2457
2729
  * @returns Network information
2458
2730
  */
2459
2731
  declare function getCvmNetwork(appId: string): Promise<GetCvmNetworkResponse>;
2732
+ /**
2733
+ * Provision a new CVM for on-chain KMS.
2734
+ * @param vmConfig VM configuration
2735
+ * @returns Provisioning details (kms_id, compose_hash)
2736
+ */
2737
+ declare function provisionCvm(vmConfig: VMConfig): Promise<ProvisionCvmResponse>;
2738
+ /**
2739
+ * Create a new CVM for on-chain KMS.
2740
+ * @param vmConfig VM configuration
2741
+ * @returns Created CVM details
2742
+ */
2743
+ declare function createCvmOnChainKms(vmConfig: VMConfig): Promise<PostCvmResponse>;
2460
2744
  /**
2461
2745
  * Create a new CVM
2462
2746
  * @param vmConfig VM configuration
@@ -2488,6 +2772,20 @@ declare function restartCvm(appId: string): Promise<PostCvmResponse>;
2488
2772
  * @returns Upgrade response
2489
2773
  */
2490
2774
  declare function upgradeCvm(appId: string, vmConfig: VMConfig): Promise<UpgradeCvmResponse>;
2775
+ /**
2776
+ * Update a CVM's compose file
2777
+ * @param cvmId CVM ID
2778
+ * @param payload Update payload
2779
+ * @returns Update response
2780
+ */
2781
+ declare function updateCvmCompose(cvmId: string, payload: unknown): Promise<UpdateCvmComposeResponse>;
2782
+ /**
2783
+ * Update a CVM's compose file
2784
+ * @param cvmId CVM ID
2785
+ * @param payload Update payload
2786
+ * @returns Update response
2787
+ */
2788
+ declare function updatePatchCvmCompose(cvmId: string, payload: unknown): Promise<UpdatePatchCvmComposeResponse>;
2491
2789
  /**
2492
2790
  * Delete a CVM
2493
2791
  * @param appId App ID
@@ -2563,4 +2861,4 @@ declare function getTeepods(): Promise<TeepodResponse>;
2563
2861
  */
2564
2862
  declare function getTeepodImages(teepodId: string): Promise<Image[]>;
2565
2863
 
2566
- export { ApiClient, Capacity, CertificateInfo, CertificateNameInfo, ComposeFile, Configuration, CvmAttestationResponse, CvmComposeConfig, CvmInstance, DockerConfig, EncryptedEnvItem, GetCvmByAppIdResponse, GetCvmNetworkResponse, GetCvmsByUserIdResponse, GetPubkeyFromCvmResponse, GetUserInfoResponse, Hosted, Image, KmsListItem, ManagedUser, Node, PostCvmResponse, ReplicateCvmResponse, ResizeCvmPayload, TCBEventLogEntry, TCBInfo, TEEPod, TeepodResponse, UpdateCvmPayload, UpgradeCvmResponse, VMConfig, apiClient, capacitySchema, checkCvmExists, composeFileSchema, configurationSchema, createCvm, cvmAttestationResponseSchema, cvmComposeConfigSchema, cvmInstanceSchema, deleteCvm, dockerConfigSchema, encryptedEnvItemSchema, getCvmAttestation, getCvmByAppId, getCvmByAppIdResponseSchema, getCvmComposeConfig, getCvmNetwork, getCvmNetworkResponseSchema, getCvms, getCvmsByUserIdResponseSchema, getPubkeyFromCvm, getPubkeyFromCvmResponseSchema, getTeepodImages, getTeepods, getUserInfo, getUserInfoResponseSchema, hostedSchema, imageSchema, kmsListItemSchema, managedUserSchema, nodeSchema, postCvmResponseSchema, replicateCvm, replicateCvmResponseSchema, resizeCvm, restartCvm, selectCvm, startCvm, stopCvm, teepodResponseSchema, teepodSchema, updateCvm, upgradeCvm, upgradeCvmResponseSchema };
2864
+ export { ApiClient, Capacity, CertificateInfo, CertificateNameInfo, ComposeFile, Configuration, CvmAttestationResponse, CvmComposeConfig, CvmInstance, DockerConfig, EncryptedEnvItem, GetCvmByAppIdResponse, GetCvmComposeFileResponse, GetCvmNetworkResponse, GetCvmsByUserIdResponse, GetPubkeyFromCvmResponse, GetUserInfoResponse, Hosted, Image, KmsListItem, KmsPubkeyResponse, ManagedUser, Node, PostCvmResponse, ProvisionCvmResponse, ReplicateCvmResponse, ResizeCvmPayload, TCBEventLogEntry, TCBInfo, TEEPod, TeepodResponse, UpdateCvmComposeResponse, UpdateCvmPayload, UpdatePatchCvmComposeResponse, UpgradeCvmResponse, VMConfig, apiClient, capacitySchema, checkCvmExists, composeFileSchema, configurationSchema, createCvm, createCvmOnChainKms, cvmAttestationResponseSchema, cvmComposeConfigSchema, cvmInstanceSchema, deleteCvm, dockerConfigSchema, encryptedEnvItemSchema, getCvmAttestation, getCvmByAppId, getCvmByAppIdResponseSchema, getCvmByCvmId, getCvmComposeConfig, getCvmComposeFile, getCvmComposeFileResponseSchema, getCvmNetwork, getCvmNetworkResponseSchema, getCvms, getCvmsByUserIdResponseSchema, getPubkeyFromCvm, getPubkeyFromCvmResponseSchema, getTeepodImages, getTeepods, getUserInfo, getUserInfoResponseSchema, hostedSchema, imageSchema, kmsListItemSchema, kmsPubkeyResponseSchema, managedUserSchema, nodeSchema, postCvmResponseSchema, provisionCvm, provisionCvmResponseSchema, replicateCvm, replicateCvmResponseSchema, resizeCvm, restartCvm, selectCvm, startCvm, stopCvm, teepodResponseSchema, teepodSchema, updateCvm, updateCvmCompose, updateCvmComposeResponseSchema, updatePatchCvmCompose, updatePatchCvmComposeResponseSchema, upgradeCvm, upgradeCvmResponseSchema };
package/dist/api/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{$ as M,A as d,B as g,C as h,D as i,E as j,F as k,G as l,H as n,I as q,J as s,K as u,L as v,M as w,N as y,O as z,P as A,Q as B,R as C,S as D,T as E,U as F,V as G,W as H,X as I,Y as J,Z as K,_ as L,aa as N,ba as O,ca as P,da as Q,ea as R,fa as S,o,p as r,r as e,s as f,t as m,u as p,v as t,w as x,x as a,y as b,z as c}from"../chunk-6GN3UXCF.js";export{o as ApiClient,r as apiClient,n as capacitySchema,B as checkCvmExists,f as composeFileSchema,m as configurationSchema,F as createCvm,y as cvmAttestationResponseSchema,v as cvmComposeConfigSchema,a as cvmInstanceSchema,K as deleteCvm,e as dockerConfigSchema,j as encryptedEnvItemSchema,N as getCvmAttestation,C as getCvmByAppId,d as getCvmByAppIdResponseSchema,O as getCvmComposeConfig,E as getCvmNetwork,u as getCvmNetworkResponseSchema,A as getCvms,h as getCvmsByUserIdResponseSchema,D as getPubkeyFromCvm,c as getPubkeyFromCvmResponseSchema,S as getTeepodImages,R as getTeepods,z as getUserInfo,g as getUserInfoResponseSchema,p as hostedSchema,k as imageSchema,q as kmsListItemSchema,t as managedUserSchema,x as nodeSchema,b as postCvmResponseSchema,P as replicateCvm,w as replicateCvmResponseSchema,Q as resizeCvm,I as restartCvm,M as selectCvm,G as startCvm,H as stopCvm,s as teepodResponseSchema,l as teepodSchema,L as updateCvm,J as upgradeCvm,i as upgradeCvmResponseSchema};
1
+ import{$ as K,A as b,B as c,C as d,D as g,E as h,F as i,G as j,H as k,I as l,J as n,K as q,L as s,M as u,N as v,O as w,P as y,Q as z,R as A,S as B,T as C,U as D,V as E,W as F,X as G,Y as H,Z as I,_ as J,aa as L,ba as M,ca as N,da as O,ea as P,fa as Q,ga as R,ha as S,ia as T,ja as U,ka as V,la as W,ma as X,na as Y,oa as Z,pa as _,q as o,qa as $,r,ra as oo,sa as ro,t as e,u as f,v as m,w as p,x as t,y as x,z as a}from"../chunk-ZUJB7PGQ.js";import"../chunk-KC2EQH4K.js";export{o as ApiClient,r as apiClient,u as capacitySchema,G as checkCvmExists,f as composeFileSchema,m as configurationSchema,O as createCvm,N as createCvmOnChainKms,D as cvmAttestationResponseSchema,B as cvmComposeConfigSchema,a as cvmInstanceSchema,V as deleteCvm,e as dockerConfigSchema,n as encryptedEnvItemSchema,Y as getCvmAttestation,H as getCvmByAppId,d as getCvmByAppIdResponseSchema,I as getCvmByCvmId,Z as getCvmComposeConfig,J as getCvmComposeFile,l as getCvmComposeFileResponseSchema,L as getCvmNetwork,y as getCvmNetworkResponseSchema,F as getCvms,h as getCvmsByUserIdResponseSchema,K as getPubkeyFromCvm,c as getPubkeyFromCvmResponseSchema,ro as getTeepodImages,oo as getTeepods,E as getUserInfo,g as getUserInfoResponseSchema,p as hostedSchema,q as imageSchema,v as kmsListItemSchema,z as kmsPubkeyResponseSchema,t as managedUserSchema,x as nodeSchema,b as postCvmResponseSchema,M as provisionCvm,A as provisionCvmResponseSchema,_ as replicateCvm,C as replicateCvmResponseSchema,$ as resizeCvm,R as restartCvm,X as selectCvm,P as startCvm,Q as stopCvm,w as teepodResponseSchema,s as teepodSchema,W as updateCvm,T as updateCvmCompose,k as updateCvmComposeResponseSchema,U as updatePatchCvmCompose,j as updatePatchCvmComposeResponseSchema,S as upgradeCvm,i as upgradeCvmResponseSchema};
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ import{jb as a,kb as b,lb as c,mb as d}from"./chunk-WITLSA6W.js";import"./chunk-KC2EQH4K.js";export{d as ccipRequest,c as offchainLookup,b as offchainLookupAbiItem,a as offchainLookupSignature};
2
+ //# sourceMappingURL=ccip-V5MAMPAX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,2 @@
1
+ var g=Object.create;var e=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var j=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var l=(a,b,c)=>b in a?e(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c;var n=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+a+'" is not supported')});var o=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var m=(a,b,c,f)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of i(b))!k.call(a,d)&&d!==c&&e(a,d,{get:()=>b[d],enumerable:!(f=h(b,d))||f.enumerable});return a};var p=(a,b,c)=>(c=a!=null?g(j(a)):{},m(b||!a||!a.__esModule?e(c,"default",{value:a,enumerable:!0}):c,a));var q=(a,b,c)=>(l(a,typeof b!="symbol"?b+"":b,c),c);export{n as a,o as b,p as c,q as d};
2
+ //# sourceMappingURL=chunk-KC2EQH4K.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}