phala 1.0.16 → 1.0.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.
@@ -469,12 +469,15 @@ declare const managedUserSchema: z.ZodObject<{
469
469
  declare const nodeSchema: z.ZodObject<{
470
470
  id: z.ZodNumber;
471
471
  name: z.ZodString;
472
+ region_identifier: z.ZodOptional<z.ZodString>;
472
473
  }, "strip", z.ZodTypeAny, {
473
474
  name?: string;
474
475
  id?: number;
476
+ region_identifier?: string;
475
477
  }, {
476
478
  name?: string;
477
479
  id?: number;
480
+ region_identifier?: string;
478
481
  }>;
479
482
  declare const cvmInstanceSchema: z.ZodObject<{
480
483
  hosted: z.ZodObject<{
@@ -701,12 +704,15 @@ declare const cvmInstanceSchema: z.ZodObject<{
701
704
  node: z.ZodObject<{
702
705
  id: z.ZodNumber;
703
706
  name: z.ZodString;
707
+ region_identifier: z.ZodOptional<z.ZodString>;
704
708
  }, "strip", z.ZodTypeAny, {
705
709
  name?: string;
706
710
  id?: number;
711
+ region_identifier?: string;
707
712
  }, {
708
713
  name?: string;
709
714
  id?: number;
715
+ region_identifier?: string;
710
716
  }>;
711
717
  listed: z.ZodBoolean;
712
718
  status: z.ZodString;
@@ -764,6 +770,7 @@ declare const cvmInstanceSchema: z.ZodObject<{
764
770
  node?: {
765
771
  name?: string;
766
772
  id?: number;
773
+ region_identifier?: string;
767
774
  };
768
775
  listed?: boolean;
769
776
  in_progress?: boolean;
@@ -820,6 +827,7 @@ declare const cvmInstanceSchema: z.ZodObject<{
820
827
  node?: {
821
828
  name?: string;
822
829
  id?: number;
830
+ region_identifier?: string;
823
831
  };
824
832
  listed?: boolean;
825
833
  in_progress?: boolean;
@@ -1248,12 +1256,15 @@ declare const getCvmsByUserIdResponseSchema: z.ZodArray<z.ZodObject<{
1248
1256
  node: z.ZodObject<{
1249
1257
  id: z.ZodNumber;
1250
1258
  name: z.ZodString;
1259
+ region_identifier: z.ZodOptional<z.ZodString>;
1251
1260
  }, "strip", z.ZodTypeAny, {
1252
1261
  name?: string;
1253
1262
  id?: number;
1263
+ region_identifier?: string;
1254
1264
  }, {
1255
1265
  name?: string;
1256
1266
  id?: number;
1267
+ region_identifier?: string;
1257
1268
  }>;
1258
1269
  listed: z.ZodBoolean;
1259
1270
  status: z.ZodString;
@@ -1311,6 +1322,7 @@ declare const getCvmsByUserIdResponseSchema: z.ZodArray<z.ZodObject<{
1311
1322
  node?: {
1312
1323
  name?: string;
1313
1324
  id?: number;
1325
+ region_identifier?: string;
1314
1326
  };
1315
1327
  listed?: boolean;
1316
1328
  in_progress?: boolean;
@@ -1367,6 +1379,7 @@ declare const getCvmsByUserIdResponseSchema: z.ZodArray<z.ZodObject<{
1367
1379
  node?: {
1368
1380
  name?: string;
1369
1381
  id?: number;
1382
+ region_identifier?: string;
1370
1383
  };
1371
1384
  listed?: boolean;
1372
1385
  in_progress?: boolean;
@@ -1396,6 +1409,7 @@ declare const imageSchema: z.ZodObject<{
1396
1409
  description: z.ZodOptional<z.ZodString>;
1397
1410
  version: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1398
1411
  is_dev: z.ZodOptional<z.ZodBoolean>;
1412
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1399
1413
  rootfs_hash: z.ZodOptional<z.ZodString>;
1400
1414
  shared_ro: z.ZodOptional<z.ZodBoolean>;
1401
1415
  cmdline: z.ZodOptional<z.ZodString>;
@@ -1409,6 +1423,7 @@ declare const imageSchema: z.ZodObject<{
1409
1423
  name?: string;
1410
1424
  version?: number[];
1411
1425
  is_dev?: boolean;
1426
+ os_image_hash?: string;
1412
1427
  rootfs_hash?: string;
1413
1428
  shared_ro?: boolean;
1414
1429
  cmdline?: string;
@@ -1422,6 +1437,7 @@ declare const imageSchema: z.ZodObject<{
1422
1437
  name?: string;
1423
1438
  version?: number[];
1424
1439
  is_dev?: boolean;
1440
+ os_image_hash?: string;
1425
1441
  rootfs_hash?: string;
1426
1442
  shared_ro?: boolean;
1427
1443
  cmdline?: string;
@@ -1433,17 +1449,19 @@ declare const imageSchema: z.ZodObject<{
1433
1449
  }>;
1434
1450
  declare const teepodSchema: z.ZodObject<{
1435
1451
  teepod_id: z.ZodNullable<z.ZodNumber>;
1452
+ id: z.ZodOptional<z.ZodNumber>;
1436
1453
  name: z.ZodString;
1437
- listed: z.ZodBoolean;
1438
- resource_score: z.ZodNumber;
1439
- remaining_vcpu: z.ZodNumber;
1440
- remaining_memory: z.ZodNumber;
1441
- remaining_cvm_slots: z.ZodNumber;
1454
+ listed: z.ZodOptional<z.ZodBoolean>;
1455
+ resource_score: z.ZodOptional<z.ZodNumber>;
1456
+ remaining_vcpu: z.ZodOptional<z.ZodNumber>;
1457
+ remaining_memory: z.ZodOptional<z.ZodNumber>;
1458
+ remaining_cvm_slots: z.ZodOptional<z.ZodNumber>;
1442
1459
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
1443
1460
  name: z.ZodString;
1444
1461
  description: z.ZodOptional<z.ZodString>;
1445
1462
  version: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1446
1463
  is_dev: z.ZodOptional<z.ZodBoolean>;
1464
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1447
1465
  rootfs_hash: z.ZodOptional<z.ZodString>;
1448
1466
  shared_ro: z.ZodOptional<z.ZodBoolean>;
1449
1467
  cmdline: z.ZodOptional<z.ZodString>;
@@ -1457,6 +1475,7 @@ declare const teepodSchema: z.ZodObject<{
1457
1475
  name?: string;
1458
1476
  version?: number[];
1459
1477
  is_dev?: boolean;
1478
+ os_image_hash?: string;
1460
1479
  rootfs_hash?: string;
1461
1480
  shared_ro?: boolean;
1462
1481
  cmdline?: string;
@@ -1470,6 +1489,7 @@ declare const teepodSchema: z.ZodObject<{
1470
1489
  name?: string;
1471
1490
  version?: number[];
1472
1491
  is_dev?: boolean;
1492
+ os_image_hash?: string;
1473
1493
  rootfs_hash?: string;
1474
1494
  shared_ro?: boolean;
1475
1495
  cmdline?: string;
@@ -1479,8 +1499,15 @@ declare const teepodSchema: z.ZodObject<{
1479
1499
  rootfs?: string;
1480
1500
  bios?: string;
1481
1501
  }>, "many">>;
1502
+ region_identifier: z.ZodOptional<z.ZodString>;
1503
+ dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1504
+ support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
1505
+ fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1506
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1482
1507
  }, "strip", z.ZodTypeAny, {
1483
1508
  name?: string;
1509
+ id?: number;
1510
+ region_identifier?: string;
1484
1511
  listed?: boolean;
1485
1512
  teepod_id?: number;
1486
1513
  resource_score?: number;
@@ -1492,6 +1519,7 @@ declare const teepodSchema: z.ZodObject<{
1492
1519
  name?: string;
1493
1520
  version?: number[];
1494
1521
  is_dev?: boolean;
1522
+ os_image_hash?: string;
1495
1523
  rootfs_hash?: string;
1496
1524
  shared_ro?: boolean;
1497
1525
  cmdline?: string;
@@ -1501,8 +1529,14 @@ declare const teepodSchema: z.ZodObject<{
1501
1529
  rootfs?: string;
1502
1530
  bios?: string;
1503
1531
  }[];
1532
+ dedicated_for_team_id?: number;
1533
+ support_onchain_kms?: boolean;
1534
+ fmspc?: string;
1535
+ device_id?: string;
1504
1536
  }, {
1505
1537
  name?: string;
1538
+ id?: number;
1539
+ region_identifier?: string;
1506
1540
  listed?: boolean;
1507
1541
  teepod_id?: number;
1508
1542
  resource_score?: number;
@@ -1514,6 +1548,7 @@ declare const teepodSchema: z.ZodObject<{
1514
1548
  name?: string;
1515
1549
  version?: number[];
1516
1550
  is_dev?: boolean;
1551
+ os_image_hash?: string;
1517
1552
  rootfs_hash?: string;
1518
1553
  shared_ro?: boolean;
1519
1554
  cmdline?: string;
@@ -1523,6 +1558,10 @@ declare const teepodSchema: z.ZodObject<{
1523
1558
  rootfs?: string;
1524
1559
  bios?: string;
1525
1560
  }[];
1561
+ dedicated_for_team_id?: number;
1562
+ support_onchain_kms?: boolean;
1563
+ fmspc?: string;
1564
+ device_id?: string;
1526
1565
  }>;
1527
1566
  declare const capacitySchema: z.ZodObject<{
1528
1567
  max_instances: z.ZodNullable<z.ZodNumber>;
@@ -1540,6 +1579,28 @@ declare const capacitySchema: z.ZodObject<{
1540
1579
  max_memory?: number;
1541
1580
  max_disk?: number;
1542
1581
  }>;
1582
+ declare const kmsListItemSchema: z.ZodObject<{
1583
+ id: z.ZodString;
1584
+ url: z.ZodString;
1585
+ version: z.ZodString;
1586
+ chain_id: z.ZodNumber;
1587
+ kms_contract_address: z.ZodString;
1588
+ gateway_app_id: z.ZodString;
1589
+ }, "strip", z.ZodTypeAny, {
1590
+ url?: string;
1591
+ version?: string;
1592
+ id?: string;
1593
+ chain_id?: number;
1594
+ kms_contract_address?: string;
1595
+ gateway_app_id?: string;
1596
+ }, {
1597
+ url?: string;
1598
+ version?: string;
1599
+ id?: string;
1600
+ chain_id?: number;
1601
+ kms_contract_address?: string;
1602
+ gateway_app_id?: string;
1603
+ }>;
1543
1604
  declare const teepodResponseSchema: z.ZodObject<{
1544
1605
  tier: z.ZodString;
1545
1606
  capacity: z.ZodObject<{
@@ -1560,17 +1621,19 @@ declare const teepodResponseSchema: z.ZodObject<{
1560
1621
  }>;
1561
1622
  nodes: z.ZodArray<z.ZodObject<{
1562
1623
  teepod_id: z.ZodNullable<z.ZodNumber>;
1624
+ id: z.ZodOptional<z.ZodNumber>;
1563
1625
  name: z.ZodString;
1564
- listed: z.ZodBoolean;
1565
- resource_score: z.ZodNumber;
1566
- remaining_vcpu: z.ZodNumber;
1567
- remaining_memory: z.ZodNumber;
1568
- remaining_cvm_slots: z.ZodNumber;
1626
+ listed: z.ZodOptional<z.ZodBoolean>;
1627
+ resource_score: z.ZodOptional<z.ZodNumber>;
1628
+ remaining_vcpu: z.ZodOptional<z.ZodNumber>;
1629
+ remaining_memory: z.ZodOptional<z.ZodNumber>;
1630
+ remaining_cvm_slots: z.ZodOptional<z.ZodNumber>;
1569
1631
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
1570
1632
  name: z.ZodString;
1571
1633
  description: z.ZodOptional<z.ZodString>;
1572
1634
  version: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1573
1635
  is_dev: z.ZodOptional<z.ZodBoolean>;
1636
+ os_image_hash: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1574
1637
  rootfs_hash: z.ZodOptional<z.ZodString>;
1575
1638
  shared_ro: z.ZodOptional<z.ZodBoolean>;
1576
1639
  cmdline: z.ZodOptional<z.ZodString>;
@@ -1584,6 +1647,7 @@ declare const teepodResponseSchema: z.ZodObject<{
1584
1647
  name?: string;
1585
1648
  version?: number[];
1586
1649
  is_dev?: boolean;
1650
+ os_image_hash?: string;
1587
1651
  rootfs_hash?: string;
1588
1652
  shared_ro?: boolean;
1589
1653
  cmdline?: string;
@@ -1597,6 +1661,7 @@ declare const teepodResponseSchema: z.ZodObject<{
1597
1661
  name?: string;
1598
1662
  version?: number[];
1599
1663
  is_dev?: boolean;
1664
+ os_image_hash?: string;
1600
1665
  rootfs_hash?: string;
1601
1666
  shared_ro?: boolean;
1602
1667
  cmdline?: string;
@@ -1606,8 +1671,15 @@ declare const teepodResponseSchema: z.ZodObject<{
1606
1671
  rootfs?: string;
1607
1672
  bios?: string;
1608
1673
  }>, "many">>;
1674
+ region_identifier: z.ZodOptional<z.ZodString>;
1675
+ dedicated_for_team_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1676
+ support_onchain_kms: z.ZodOptional<z.ZodBoolean>;
1677
+ fmspc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1678
+ device_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1609
1679
  }, "strip", z.ZodTypeAny, {
1610
1680
  name?: string;
1681
+ id?: number;
1682
+ region_identifier?: string;
1611
1683
  listed?: boolean;
1612
1684
  teepod_id?: number;
1613
1685
  resource_score?: number;
@@ -1619,6 +1691,7 @@ declare const teepodResponseSchema: z.ZodObject<{
1619
1691
  name?: string;
1620
1692
  version?: number[];
1621
1693
  is_dev?: boolean;
1694
+ os_image_hash?: string;
1622
1695
  rootfs_hash?: string;
1623
1696
  shared_ro?: boolean;
1624
1697
  cmdline?: string;
@@ -1628,8 +1701,14 @@ declare const teepodResponseSchema: z.ZodObject<{
1628
1701
  rootfs?: string;
1629
1702
  bios?: string;
1630
1703
  }[];
1704
+ dedicated_for_team_id?: number;
1705
+ support_onchain_kms?: boolean;
1706
+ fmspc?: string;
1707
+ device_id?: string;
1631
1708
  }, {
1632
1709
  name?: string;
1710
+ id?: number;
1711
+ region_identifier?: string;
1633
1712
  listed?: boolean;
1634
1713
  teepod_id?: number;
1635
1714
  resource_score?: number;
@@ -1641,6 +1720,7 @@ declare const teepodResponseSchema: z.ZodObject<{
1641
1720
  name?: string;
1642
1721
  version?: number[];
1643
1722
  is_dev?: boolean;
1723
+ os_image_hash?: string;
1644
1724
  rootfs_hash?: string;
1645
1725
  shared_ro?: boolean;
1646
1726
  cmdline?: string;
@@ -1650,17 +1730,38 @@ declare const teepodResponseSchema: z.ZodObject<{
1650
1730
  rootfs?: string;
1651
1731
  bios?: string;
1652
1732
  }[];
1733
+ dedicated_for_team_id?: number;
1734
+ support_onchain_kms?: boolean;
1735
+ fmspc?: string;
1736
+ device_id?: string;
1653
1737
  }>, "many">;
1738
+ kms_list: z.ZodOptional<z.ZodArray<z.ZodObject<{
1739
+ id: z.ZodString;
1740
+ url: z.ZodString;
1741
+ version: z.ZodString;
1742
+ chain_id: z.ZodNumber;
1743
+ kms_contract_address: z.ZodString;
1744
+ gateway_app_id: z.ZodString;
1745
+ }, "strip", z.ZodTypeAny, {
1746
+ url?: string;
1747
+ version?: string;
1748
+ id?: string;
1749
+ chain_id?: number;
1750
+ kms_contract_address?: string;
1751
+ gateway_app_id?: string;
1752
+ }, {
1753
+ url?: string;
1754
+ version?: string;
1755
+ id?: string;
1756
+ chain_id?: number;
1757
+ kms_contract_address?: string;
1758
+ gateway_app_id?: string;
1759
+ }>, "many">>;
1654
1760
  }, "strip", z.ZodTypeAny, {
1655
- tier?: string;
1656
- capacity?: {
1657
- max_instances?: number;
1658
- max_vcpu?: number;
1659
- max_memory?: number;
1660
- max_disk?: number;
1661
- };
1662
1761
  nodes?: {
1663
1762
  name?: string;
1763
+ id?: number;
1764
+ region_identifier?: string;
1664
1765
  listed?: boolean;
1665
1766
  teepod_id?: number;
1666
1767
  resource_score?: number;
@@ -1672,6 +1773,7 @@ declare const teepodResponseSchema: z.ZodObject<{
1672
1773
  name?: string;
1673
1774
  version?: number[];
1674
1775
  is_dev?: boolean;
1776
+ os_image_hash?: string;
1675
1777
  rootfs_hash?: string;
1676
1778
  shared_ro?: boolean;
1677
1779
  cmdline?: string;
@@ -1681,8 +1783,11 @@ declare const teepodResponseSchema: z.ZodObject<{
1681
1783
  rootfs?: string;
1682
1784
  bios?: string;
1683
1785
  }[];
1786
+ dedicated_for_team_id?: number;
1787
+ support_onchain_kms?: boolean;
1788
+ fmspc?: string;
1789
+ device_id?: string;
1684
1790
  }[];
1685
- }, {
1686
1791
  tier?: string;
1687
1792
  capacity?: {
1688
1793
  max_instances?: number;
@@ -1690,8 +1795,19 @@ declare const teepodResponseSchema: z.ZodObject<{
1690
1795
  max_memory?: number;
1691
1796
  max_disk?: number;
1692
1797
  };
1798
+ kms_list?: {
1799
+ url?: string;
1800
+ version?: string;
1801
+ id?: string;
1802
+ chain_id?: number;
1803
+ kms_contract_address?: string;
1804
+ gateway_app_id?: string;
1805
+ }[];
1806
+ }, {
1693
1807
  nodes?: {
1694
1808
  name?: string;
1809
+ id?: number;
1810
+ region_identifier?: string;
1695
1811
  listed?: boolean;
1696
1812
  teepod_id?: number;
1697
1813
  resource_score?: number;
@@ -1703,6 +1819,7 @@ declare const teepodResponseSchema: z.ZodObject<{
1703
1819
  name?: string;
1704
1820
  version?: number[];
1705
1821
  is_dev?: boolean;
1822
+ os_image_hash?: string;
1706
1823
  rootfs_hash?: string;
1707
1824
  shared_ro?: boolean;
1708
1825
  cmdline?: string;
@@ -1712,6 +1829,25 @@ declare const teepodResponseSchema: z.ZodObject<{
1712
1829
  rootfs?: string;
1713
1830
  bios?: string;
1714
1831
  }[];
1832
+ dedicated_for_team_id?: number;
1833
+ support_onchain_kms?: boolean;
1834
+ fmspc?: string;
1835
+ device_id?: string;
1836
+ }[];
1837
+ tier?: string;
1838
+ capacity?: {
1839
+ max_instances?: number;
1840
+ max_vcpu?: number;
1841
+ max_memory?: number;
1842
+ max_disk?: number;
1843
+ };
1844
+ kms_list?: {
1845
+ url?: string;
1846
+ version?: string;
1847
+ id?: string;
1848
+ chain_id?: number;
1849
+ kms_contract_address?: string;
1850
+ gateway_app_id?: string;
1715
1851
  }[];
1716
1852
  }>;
1717
1853
  declare const getCvmNetworkResponseSchema: z.ZodObject<{
@@ -1751,6 +1887,7 @@ declare const getCvmNetworkResponseSchema: z.ZodObject<{
1751
1887
  instance?: string;
1752
1888
  }[];
1753
1889
  }>;
1890
+ type KmsListItem = z.infer<typeof kmsListItemSchema>;
1754
1891
  type DockerConfig = z.infer<typeof dockerConfigSchema>;
1755
1892
  type ComposeFile = z.infer<typeof composeFileSchema>;
1756
1893
  type Configuration = z.infer<typeof configurationSchema>;
@@ -1820,6 +1957,206 @@ interface TCBInfo {
1820
1957
  rtmr3: string;
1821
1958
  event_log: TCBEventLogEntry[];
1822
1959
  }
1960
+ declare const cvmComposeConfigSchema: z.ZodObject<{
1961
+ compose_file: z.ZodObject<{
1962
+ bash_script: z.ZodNullable<z.ZodString>;
1963
+ docker_compose_file: z.ZodString;
1964
+ docker_config: z.ZodObject<{
1965
+ password: z.ZodString;
1966
+ registry: z.ZodNullable<z.ZodString>;
1967
+ username: z.ZodString;
1968
+ }, "strip", z.ZodTypeAny, {
1969
+ password?: string;
1970
+ registry?: string;
1971
+ username?: string;
1972
+ }, {
1973
+ password?: string;
1974
+ registry?: string;
1975
+ username?: string;
1976
+ }>;
1977
+ features: z.ZodArray<z.ZodString, "many">;
1978
+ kms_enabled: z.ZodBoolean;
1979
+ manifest_version: z.ZodNumber;
1980
+ name: z.ZodString;
1981
+ pre_launch_script: z.ZodString;
1982
+ public_logs: z.ZodBoolean;
1983
+ public_sysinfo: z.ZodBoolean;
1984
+ runner: z.ZodString;
1985
+ salt: z.ZodString;
1986
+ tproxy_enabled: z.ZodBoolean;
1987
+ version: z.ZodString;
1988
+ }, "strip", z.ZodTypeAny, {
1989
+ docker_compose_file?: string;
1990
+ docker_config?: {
1991
+ password?: string;
1992
+ registry?: string;
1993
+ username?: string;
1994
+ };
1995
+ features?: string[];
1996
+ kms_enabled?: boolean;
1997
+ manifest_version?: number;
1998
+ name?: string;
1999
+ public_logs?: boolean;
2000
+ public_sysinfo?: boolean;
2001
+ runner?: string;
2002
+ salt?: string;
2003
+ tproxy_enabled?: boolean;
2004
+ version?: string;
2005
+ bash_script?: string;
2006
+ pre_launch_script?: string;
2007
+ }, {
2008
+ docker_compose_file?: string;
2009
+ docker_config?: {
2010
+ password?: string;
2011
+ registry?: string;
2012
+ username?: string;
2013
+ };
2014
+ features?: string[];
2015
+ kms_enabled?: boolean;
2016
+ manifest_version?: number;
2017
+ name?: string;
2018
+ public_logs?: boolean;
2019
+ public_sysinfo?: boolean;
2020
+ runner?: string;
2021
+ salt?: string;
2022
+ tproxy_enabled?: boolean;
2023
+ version?: string;
2024
+ bash_script?: string;
2025
+ pre_launch_script?: string;
2026
+ }>;
2027
+ env_pubkey: z.ZodString;
2028
+ salt: z.ZodString;
2029
+ }, "strip", z.ZodTypeAny, {
2030
+ salt?: string;
2031
+ compose_file?: {
2032
+ docker_compose_file?: string;
2033
+ docker_config?: {
2034
+ password?: string;
2035
+ registry?: string;
2036
+ username?: string;
2037
+ };
2038
+ features?: string[];
2039
+ kms_enabled?: boolean;
2040
+ manifest_version?: number;
2041
+ name?: string;
2042
+ public_logs?: boolean;
2043
+ public_sysinfo?: boolean;
2044
+ runner?: string;
2045
+ salt?: string;
2046
+ tproxy_enabled?: boolean;
2047
+ version?: string;
2048
+ bash_script?: string;
2049
+ pre_launch_script?: string;
2050
+ };
2051
+ env_pubkey?: string;
2052
+ }, {
2053
+ salt?: string;
2054
+ compose_file?: {
2055
+ docker_compose_file?: string;
2056
+ docker_config?: {
2057
+ password?: string;
2058
+ registry?: string;
2059
+ username?: string;
2060
+ };
2061
+ features?: string[];
2062
+ kms_enabled?: boolean;
2063
+ manifest_version?: number;
2064
+ name?: string;
2065
+ public_logs?: boolean;
2066
+ public_sysinfo?: boolean;
2067
+ runner?: string;
2068
+ salt?: string;
2069
+ tproxy_enabled?: boolean;
2070
+ version?: string;
2071
+ bash_script?: string;
2072
+ pre_launch_script?: string;
2073
+ };
2074
+ env_pubkey?: string;
2075
+ }>;
2076
+ type CvmComposeConfig = z.infer<typeof cvmComposeConfigSchema>;
2077
+ declare const replicateCvmResponseSchema: z.ZodObject<{
2078
+ id: z.ZodNumber;
2079
+ name: z.ZodString;
2080
+ status: z.ZodString;
2081
+ teepod_id: z.ZodNumber;
2082
+ teepod: z.ZodObject<{
2083
+ id: z.ZodNumber;
2084
+ name: z.ZodString;
2085
+ }, "strip", z.ZodTypeAny, {
2086
+ name?: string;
2087
+ id?: number;
2088
+ }, {
2089
+ name?: string;
2090
+ id?: number;
2091
+ }>;
2092
+ user_id: z.ZodNumber;
2093
+ app_id: z.ZodString;
2094
+ vm_uuid: z.ZodString;
2095
+ instance_id: z.ZodNullable<z.ZodString>;
2096
+ app_url: z.ZodNullable<z.ZodString>;
2097
+ base_image: z.ZodString;
2098
+ vcpu: z.ZodNumber;
2099
+ memory: z.ZodNumber;
2100
+ disk_size: z.ZodNumber;
2101
+ manifest_version: z.ZodNumber;
2102
+ version: z.ZodNullable<z.ZodString>;
2103
+ runner: z.ZodString;
2104
+ docker_compose_file: z.ZodString;
2105
+ features: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
2106
+ created_at: z.ZodString;
2107
+ encrypted_env_pubkey: z.ZodString;
2108
+ }, "strip", z.ZodTypeAny, {
2109
+ teepod?: {
2110
+ name?: string;
2111
+ id?: number;
2112
+ };
2113
+ status?: string;
2114
+ docker_compose_file?: string;
2115
+ features?: string[];
2116
+ manifest_version?: number;
2117
+ name?: string;
2118
+ runner?: string;
2119
+ version?: string;
2120
+ vcpu?: number;
2121
+ memory?: number;
2122
+ disk_size?: number;
2123
+ id?: number;
2124
+ app_url?: string;
2125
+ app_id?: string;
2126
+ instance_id?: string;
2127
+ teepod_id?: number;
2128
+ user_id?: number;
2129
+ vm_uuid?: string;
2130
+ base_image?: string;
2131
+ created_at?: string;
2132
+ encrypted_env_pubkey?: string;
2133
+ }, {
2134
+ teepod?: {
2135
+ name?: string;
2136
+ id?: number;
2137
+ };
2138
+ status?: string;
2139
+ docker_compose_file?: string;
2140
+ features?: string[];
2141
+ manifest_version?: number;
2142
+ name?: string;
2143
+ runner?: string;
2144
+ version?: string;
2145
+ vcpu?: number;
2146
+ memory?: number;
2147
+ disk_size?: number;
2148
+ id?: number;
2149
+ app_url?: string;
2150
+ app_id?: string;
2151
+ instance_id?: string;
2152
+ teepod_id?: number;
2153
+ user_id?: number;
2154
+ vm_uuid?: string;
2155
+ base_image?: string;
2156
+ created_at?: string;
2157
+ encrypted_env_pubkey?: string;
2158
+ }>;
2159
+ type ReplicateCvmResponse = z.infer<typeof replicateCvmResponseSchema>;
1823
2160
  declare const cvmAttestationResponseSchema: z.ZodObject<{
1824
2161
  is_online: z.ZodBoolean;
1825
2162
  is_public: z.ZodBoolean;
@@ -2192,13 +2529,30 @@ interface ResizeCvmPayload {
2192
2529
  * @param allowRestart Whether to allow restart (1) or not (0) for the resize operation (optional)
2193
2530
  * @returns Success status
2194
2531
  */
2532
+ /**
2533
+ * Create a replica of an existing CVM
2534
+ * @param appId App ID of the CVM to replicate
2535
+ * @param payload Replication payload
2536
+ * @returns New CVM details
2537
+ */
2538
+ /**
2539
+ * Get CVM compose configuration
2540
+ */
2541
+ declare function getCvmComposeConfig(cvmId: string): Promise<CvmComposeConfig>;
2542
+ /**
2543
+ * Replicate a CVM
2544
+ */
2545
+ declare function replicateCvm(appId: string, payload: {
2546
+ teepod_id?: number;
2547
+ encrypted_env?: string;
2548
+ }): Promise<ReplicateCvmResponse>;
2195
2549
  declare function resizeCvm(appId: string, vcpu?: number, memory?: number, diskSize?: number, allowRestart?: number): Promise<boolean>;
2196
2550
 
2197
2551
  /**
2198
2552
  * Get all TEEPods with their images
2199
2553
  * @returns List of TEEPods with embedded images
2200
2554
  */
2201
- declare function getTeepods(): Promise<TEEPod[]>;
2555
+ declare function getTeepods(): Promise<TeepodResponse>;
2202
2556
  /**
2203
2557
  * Get images for a TEEPod
2204
2558
  * This function is maintained for backwards compatibility.
@@ -2209,4 +2563,4 @@ declare function getTeepods(): Promise<TEEPod[]>;
2209
2563
  */
2210
2564
  declare function getTeepodImages(teepodId: string): Promise<Image[]>;
2211
2565
 
2212
- export { ApiClient, Capacity, CertificateInfo, CertificateNameInfo, ComposeFile, Configuration, CvmAttestationResponse, CvmInstance, DockerConfig, EncryptedEnvItem, GetCvmByAppIdResponse, GetCvmNetworkResponse, GetCvmsByUserIdResponse, GetPubkeyFromCvmResponse, GetUserInfoResponse, Hosted, Image, ManagedUser, Node, PostCvmResponse, ResizeCvmPayload, TCBEventLogEntry, TCBInfo, TEEPod, TeepodResponse, UpdateCvmPayload, UpgradeCvmResponse, VMConfig, apiClient, capacitySchema, checkCvmExists, composeFileSchema, configurationSchema, createCvm, cvmAttestationResponseSchema, cvmInstanceSchema, deleteCvm, dockerConfigSchema, encryptedEnvItemSchema, getCvmAttestation, getCvmByAppId, getCvmByAppIdResponseSchema, getCvmNetwork, getCvmNetworkResponseSchema, getCvms, getCvmsByUserIdResponseSchema, getPubkeyFromCvm, getPubkeyFromCvmResponseSchema, getTeepodImages, getTeepods, getUserInfo, getUserInfoResponseSchema, hostedSchema, imageSchema, managedUserSchema, nodeSchema, postCvmResponseSchema, resizeCvm, restartCvm, selectCvm, startCvm, stopCvm, teepodResponseSchema, teepodSchema, updateCvm, upgradeCvm, upgradeCvmResponseSchema };
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 };
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,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-4IVSVXD3.js";export{o as ApiClient,r as apiClient,n as capacitySchema,y as checkCvmExists,f as composeFileSchema,m as configurationSchema,C as createCvm,u as cvmAttestationResponseSchema,a as cvmInstanceSchema,H as deleteCvm,e as dockerConfigSchema,j as encryptedEnvItemSchema,K as getCvmAttestation,z as getCvmByAppId,d as getCvmByAppIdResponseSchema,B as getCvmNetwork,s as getCvmNetworkResponseSchema,w as getCvms,h as getCvmsByUserIdResponseSchema,A as getPubkeyFromCvm,c as getPubkeyFromCvmResponseSchema,N as getTeepodImages,M as getTeepods,v as getUserInfo,g as getUserInfoResponseSchema,p as hostedSchema,k as imageSchema,t as managedUserSchema,x as nodeSchema,b as postCvmResponseSchema,L as resizeCvm,F as restartCvm,J as selectCvm,D as startCvm,E as stopCvm,q as teepodResponseSchema,l as teepodSchema,I as updateCvm,G as upgradeCvm,i as upgradeCvmResponseSchema};
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};
2
2
  //# sourceMappingURL=index.js.map