@tx5dr/contracts 1.2.0 → 1.2.2

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.
@@ -640,6 +640,33 @@ export declare const PluginManifestSchema: z.ZodObject<{
640
640
  * Normalized manifest describing a plugin's static metadata and declarations.
641
641
  */
642
642
  export type PluginManifest = z.infer<typeof PluginManifestSchema>;
643
+ export declare const PluginMarketChannelSchema: z.ZodEnum<["stable", "nightly"]>;
644
+ export type PluginMarketChannel = z.infer<typeof PluginMarketChannelSchema>;
645
+ export declare const PluginSourceSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
646
+ kind: z.ZodLiteral<"marketplace">;
647
+ version: z.ZodString;
648
+ channel: z.ZodEnum<["stable", "nightly"]>;
649
+ artifactUrl: z.ZodString;
650
+ sha256: z.ZodString;
651
+ installedAt: z.ZodNumber;
652
+ }, "strip", z.ZodTypeAny, {
653
+ kind: "marketplace";
654
+ version: string;
655
+ channel: "stable" | "nightly";
656
+ artifactUrl: string;
657
+ sha256: string;
658
+ installedAt: number;
659
+ }, {
660
+ kind: "marketplace";
661
+ version: string;
662
+ channel: "stable" | "nightly";
663
+ artifactUrl: string;
664
+ sha256: string;
665
+ installedAt: number;
666
+ }>]>;
667
+ export type PluginSource = z.infer<typeof PluginSourceSchema>;
668
+ export declare const PluginLocalesSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>;
669
+ export type PluginLocales = z.infer<typeof PluginLocalesSchema>;
643
670
  /**
644
671
  * Runtime-facing plugin status snapshot exposed to the frontend.
645
672
  *
@@ -806,6 +833,28 @@ export declare const PluginStatusSchema: z.ZodObject<{
806
833
  }[] | undefined;
807
834
  }>>;
808
835
  locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
836
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
837
+ kind: z.ZodLiteral<"marketplace">;
838
+ version: z.ZodString;
839
+ channel: z.ZodEnum<["stable", "nightly"]>;
840
+ artifactUrl: z.ZodString;
841
+ sha256: z.ZodString;
842
+ installedAt: z.ZodNumber;
843
+ }, "strip", z.ZodTypeAny, {
844
+ kind: "marketplace";
845
+ version: string;
846
+ channel: "stable" | "nightly";
847
+ artifactUrl: string;
848
+ sha256: string;
849
+ installedAt: number;
850
+ }, {
851
+ kind: "marketplace";
852
+ version: string;
853
+ channel: "stable" | "nightly";
854
+ artifactUrl: string;
855
+ sha256: string;
856
+ installedAt: number;
857
+ }>]>>;
809
858
  }, "strip", z.ZodTypeAny, {
810
859
  type: "strategy" | "utility";
811
860
  name: string;
@@ -862,6 +911,14 @@ export declare const PluginStatusSchema: z.ZodObject<{
862
911
  assignedOperatorIds?: string[] | undefined;
863
912
  capabilities?: ("auto_call_candidate" | "auto_call_execution")[] | undefined;
864
913
  locales?: Record<string, Record<string, string>> | undefined;
914
+ source?: {
915
+ kind: "marketplace";
916
+ version: string;
917
+ channel: "stable" | "nightly";
918
+ artifactUrl: string;
919
+ sha256: string;
920
+ installedAt: number;
921
+ } | undefined;
865
922
  }, {
866
923
  type: "strategy" | "utility";
867
924
  name: string;
@@ -918,6 +975,14 @@ export declare const PluginStatusSchema: z.ZodObject<{
918
975
  assignedOperatorIds?: string[] | undefined;
919
976
  capabilities?: ("auto_call_candidate" | "auto_call_execution")[] | undefined;
920
977
  locales?: Record<string, Record<string, string>> | undefined;
978
+ source?: {
979
+ kind: "marketplace";
980
+ version: string;
981
+ channel: "stable" | "nightly";
982
+ artifactUrl: string;
983
+ sha256: string;
984
+ installedAt: number;
985
+ } | undefined;
921
986
  }>;
922
987
  /**
923
988
  * Runtime-facing plugin status snapshot exposed to the frontend.
@@ -1088,6 +1153,28 @@ export declare const PluginSystemSnapshotSchema: z.ZodObject<{
1088
1153
  }[] | undefined;
1089
1154
  }>>;
1090
1155
  locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
1156
+ source: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1157
+ kind: z.ZodLiteral<"marketplace">;
1158
+ version: z.ZodString;
1159
+ channel: z.ZodEnum<["stable", "nightly"]>;
1160
+ artifactUrl: z.ZodString;
1161
+ sha256: z.ZodString;
1162
+ installedAt: z.ZodNumber;
1163
+ }, "strip", z.ZodTypeAny, {
1164
+ kind: "marketplace";
1165
+ version: string;
1166
+ channel: "stable" | "nightly";
1167
+ artifactUrl: string;
1168
+ sha256: string;
1169
+ installedAt: number;
1170
+ }, {
1171
+ kind: "marketplace";
1172
+ version: string;
1173
+ channel: "stable" | "nightly";
1174
+ artifactUrl: string;
1175
+ sha256: string;
1176
+ installedAt: number;
1177
+ }>]>>;
1091
1178
  }, "strip", z.ZodTypeAny, {
1092
1179
  type: "strategy" | "utility";
1093
1180
  name: string;
@@ -1144,6 +1231,14 @@ export declare const PluginSystemSnapshotSchema: z.ZodObject<{
1144
1231
  assignedOperatorIds?: string[] | undefined;
1145
1232
  capabilities?: ("auto_call_candidate" | "auto_call_execution")[] | undefined;
1146
1233
  locales?: Record<string, Record<string, string>> | undefined;
1234
+ source?: {
1235
+ kind: "marketplace";
1236
+ version: string;
1237
+ channel: "stable" | "nightly";
1238
+ artifactUrl: string;
1239
+ sha256: string;
1240
+ installedAt: number;
1241
+ } | undefined;
1147
1242
  }, {
1148
1243
  type: "strategy" | "utility";
1149
1244
  name: string;
@@ -1200,6 +1295,14 @@ export declare const PluginSystemSnapshotSchema: z.ZodObject<{
1200
1295
  assignedOperatorIds?: string[] | undefined;
1201
1296
  capabilities?: ("auto_call_candidate" | "auto_call_execution")[] | undefined;
1202
1297
  locales?: Record<string, Record<string, string>> | undefined;
1298
+ source?: {
1299
+ kind: "marketplace";
1300
+ version: string;
1301
+ channel: "stable" | "nightly";
1302
+ artifactUrl: string;
1303
+ sha256: string;
1304
+ installedAt: number;
1305
+ } | undefined;
1203
1306
  }>, "many">;
1204
1307
  lastError: z.ZodOptional<z.ZodString>;
1205
1308
  }, "strip", z.ZodTypeAny, {
@@ -1261,6 +1364,14 @@ export declare const PluginSystemSnapshotSchema: z.ZodObject<{
1261
1364
  assignedOperatorIds?: string[] | undefined;
1262
1365
  capabilities?: ("auto_call_candidate" | "auto_call_execution")[] | undefined;
1263
1366
  locales?: Record<string, Record<string, string>> | undefined;
1367
+ source?: {
1368
+ kind: "marketplace";
1369
+ version: string;
1370
+ channel: "stable" | "nightly";
1371
+ artifactUrl: string;
1372
+ sha256: string;
1373
+ installedAt: number;
1374
+ } | undefined;
1264
1375
  }[];
1265
1376
  lastError?: string | undefined;
1266
1377
  }, {
@@ -1322,6 +1433,14 @@ export declare const PluginSystemSnapshotSchema: z.ZodObject<{
1322
1433
  assignedOperatorIds?: string[] | undefined;
1323
1434
  capabilities?: ("auto_call_candidate" | "auto_call_execution")[] | undefined;
1324
1435
  locales?: Record<string, Record<string, string>> | undefined;
1436
+ source?: {
1437
+ kind: "marketplace";
1438
+ version: string;
1439
+ channel: "stable" | "nightly";
1440
+ artifactUrl: string;
1441
+ sha256: string;
1442
+ installedAt: number;
1443
+ } | undefined;
1325
1444
  }[];
1326
1445
  lastError?: string | undefined;
1327
1446
  }>;
@@ -1371,6 +1490,619 @@ export declare const PluginConfigEntrySchema: z.ZodObject<{
1371
1490
  settings: Record<string, unknown>;
1372
1491
  }>;
1373
1492
  export type PluginConfigEntry = z.infer<typeof PluginConfigEntrySchema>;
1493
+ export declare const PluginMarketScreenshotSchema: z.ZodObject<{
1494
+ src: z.ZodString;
1495
+ alt: z.ZodOptional<z.ZodString>;
1496
+ }, "strip", z.ZodTypeAny, {
1497
+ src: string;
1498
+ alt?: string | undefined;
1499
+ }, {
1500
+ src: string;
1501
+ alt?: string | undefined;
1502
+ }>;
1503
+ export type PluginMarketScreenshot = z.infer<typeof PluginMarketScreenshotSchema>;
1504
+ export declare const PluginMarketCatalogEntrySchema: z.ZodObject<{
1505
+ name: z.ZodString;
1506
+ title: z.ZodString;
1507
+ description: z.ZodString;
1508
+ locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
1509
+ latestVersion: z.ZodString;
1510
+ minHostVersion: z.ZodString;
1511
+ author: z.ZodOptional<z.ZodString>;
1512
+ license: z.ZodOptional<z.ZodString>;
1513
+ repository: z.ZodOptional<z.ZodString>;
1514
+ homepage: z.ZodOptional<z.ZodString>;
1515
+ categories: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1516
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1517
+ permissions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["network"]>, "many">>>;
1518
+ screenshots: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1519
+ src: z.ZodString;
1520
+ alt: z.ZodOptional<z.ZodString>;
1521
+ }, "strip", z.ZodTypeAny, {
1522
+ src: string;
1523
+ alt?: string | undefined;
1524
+ }, {
1525
+ src: string;
1526
+ alt?: string | undefined;
1527
+ }>, "many">>>;
1528
+ artifactUrl: z.ZodString;
1529
+ sha256: z.ZodString;
1530
+ size: z.ZodNumber;
1531
+ publishedAt: z.ZodString;
1532
+ }, "strip", z.ZodTypeAny, {
1533
+ name: string;
1534
+ description: string;
1535
+ title: string;
1536
+ permissions: "network"[];
1537
+ artifactUrl: string;
1538
+ sha256: string;
1539
+ latestVersion: string;
1540
+ minHostVersion: string;
1541
+ categories: string[];
1542
+ keywords: string[];
1543
+ screenshots: {
1544
+ src: string;
1545
+ alt?: string | undefined;
1546
+ }[];
1547
+ size: number;
1548
+ publishedAt: string;
1549
+ locales?: Record<string, Record<string, string>> | undefined;
1550
+ author?: string | undefined;
1551
+ license?: string | undefined;
1552
+ repository?: string | undefined;
1553
+ homepage?: string | undefined;
1554
+ }, {
1555
+ name: string;
1556
+ description: string;
1557
+ title: string;
1558
+ artifactUrl: string;
1559
+ sha256: string;
1560
+ latestVersion: string;
1561
+ minHostVersion: string;
1562
+ size: number;
1563
+ publishedAt: string;
1564
+ permissions?: "network"[] | undefined;
1565
+ locales?: Record<string, Record<string, string>> | undefined;
1566
+ author?: string | undefined;
1567
+ license?: string | undefined;
1568
+ repository?: string | undefined;
1569
+ homepage?: string | undefined;
1570
+ categories?: string[] | undefined;
1571
+ keywords?: string[] | undefined;
1572
+ screenshots?: {
1573
+ src: string;
1574
+ alt?: string | undefined;
1575
+ }[] | undefined;
1576
+ }>;
1577
+ export type PluginMarketCatalogEntry = z.infer<typeof PluginMarketCatalogEntrySchema>;
1578
+ export declare const PluginMarketCatalogSchema: z.ZodObject<{
1579
+ schemaVersion: z.ZodNumber;
1580
+ generatedAt: z.ZodString;
1581
+ channel: z.ZodEnum<["stable", "nightly"]>;
1582
+ plugins: z.ZodArray<z.ZodObject<{
1583
+ name: z.ZodString;
1584
+ title: z.ZodString;
1585
+ description: z.ZodString;
1586
+ locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
1587
+ latestVersion: z.ZodString;
1588
+ minHostVersion: z.ZodString;
1589
+ author: z.ZodOptional<z.ZodString>;
1590
+ license: z.ZodOptional<z.ZodString>;
1591
+ repository: z.ZodOptional<z.ZodString>;
1592
+ homepage: z.ZodOptional<z.ZodString>;
1593
+ categories: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1594
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1595
+ permissions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["network"]>, "many">>>;
1596
+ screenshots: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1597
+ src: z.ZodString;
1598
+ alt: z.ZodOptional<z.ZodString>;
1599
+ }, "strip", z.ZodTypeAny, {
1600
+ src: string;
1601
+ alt?: string | undefined;
1602
+ }, {
1603
+ src: string;
1604
+ alt?: string | undefined;
1605
+ }>, "many">>>;
1606
+ artifactUrl: z.ZodString;
1607
+ sha256: z.ZodString;
1608
+ size: z.ZodNumber;
1609
+ publishedAt: z.ZodString;
1610
+ }, "strip", z.ZodTypeAny, {
1611
+ name: string;
1612
+ description: string;
1613
+ title: string;
1614
+ permissions: "network"[];
1615
+ artifactUrl: string;
1616
+ sha256: string;
1617
+ latestVersion: string;
1618
+ minHostVersion: string;
1619
+ categories: string[];
1620
+ keywords: string[];
1621
+ screenshots: {
1622
+ src: string;
1623
+ alt?: string | undefined;
1624
+ }[];
1625
+ size: number;
1626
+ publishedAt: string;
1627
+ locales?: Record<string, Record<string, string>> | undefined;
1628
+ author?: string | undefined;
1629
+ license?: string | undefined;
1630
+ repository?: string | undefined;
1631
+ homepage?: string | undefined;
1632
+ }, {
1633
+ name: string;
1634
+ description: string;
1635
+ title: string;
1636
+ artifactUrl: string;
1637
+ sha256: string;
1638
+ latestVersion: string;
1639
+ minHostVersion: string;
1640
+ size: number;
1641
+ publishedAt: string;
1642
+ permissions?: "network"[] | undefined;
1643
+ locales?: Record<string, Record<string, string>> | undefined;
1644
+ author?: string | undefined;
1645
+ license?: string | undefined;
1646
+ repository?: string | undefined;
1647
+ homepage?: string | undefined;
1648
+ categories?: string[] | undefined;
1649
+ keywords?: string[] | undefined;
1650
+ screenshots?: {
1651
+ src: string;
1652
+ alt?: string | undefined;
1653
+ }[] | undefined;
1654
+ }>, "many">;
1655
+ }, "strip", z.ZodTypeAny, {
1656
+ channel: "stable" | "nightly";
1657
+ plugins: {
1658
+ name: string;
1659
+ description: string;
1660
+ title: string;
1661
+ permissions: "network"[];
1662
+ artifactUrl: string;
1663
+ sha256: string;
1664
+ latestVersion: string;
1665
+ minHostVersion: string;
1666
+ categories: string[];
1667
+ keywords: string[];
1668
+ screenshots: {
1669
+ src: string;
1670
+ alt?: string | undefined;
1671
+ }[];
1672
+ size: number;
1673
+ publishedAt: string;
1674
+ locales?: Record<string, Record<string, string>> | undefined;
1675
+ author?: string | undefined;
1676
+ license?: string | undefined;
1677
+ repository?: string | undefined;
1678
+ homepage?: string | undefined;
1679
+ }[];
1680
+ schemaVersion: number;
1681
+ generatedAt: string;
1682
+ }, {
1683
+ channel: "stable" | "nightly";
1684
+ plugins: {
1685
+ name: string;
1686
+ description: string;
1687
+ title: string;
1688
+ artifactUrl: string;
1689
+ sha256: string;
1690
+ latestVersion: string;
1691
+ minHostVersion: string;
1692
+ size: number;
1693
+ publishedAt: string;
1694
+ permissions?: "network"[] | undefined;
1695
+ locales?: Record<string, Record<string, string>> | undefined;
1696
+ author?: string | undefined;
1697
+ license?: string | undefined;
1698
+ repository?: string | undefined;
1699
+ homepage?: string | undefined;
1700
+ categories?: string[] | undefined;
1701
+ keywords?: string[] | undefined;
1702
+ screenshots?: {
1703
+ src: string;
1704
+ alt?: string | undefined;
1705
+ }[] | undefined;
1706
+ }[];
1707
+ schemaVersion: number;
1708
+ generatedAt: string;
1709
+ }>;
1710
+ export type PluginMarketCatalog = z.infer<typeof PluginMarketCatalogSchema>;
1711
+ export declare const PluginMarketCatalogResponseSchema: z.ZodObject<{
1712
+ catalog: z.ZodObject<{
1713
+ schemaVersion: z.ZodNumber;
1714
+ generatedAt: z.ZodString;
1715
+ channel: z.ZodEnum<["stable", "nightly"]>;
1716
+ plugins: z.ZodArray<z.ZodObject<{
1717
+ name: z.ZodString;
1718
+ title: z.ZodString;
1719
+ description: z.ZodString;
1720
+ locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
1721
+ latestVersion: z.ZodString;
1722
+ minHostVersion: z.ZodString;
1723
+ author: z.ZodOptional<z.ZodString>;
1724
+ license: z.ZodOptional<z.ZodString>;
1725
+ repository: z.ZodOptional<z.ZodString>;
1726
+ homepage: z.ZodOptional<z.ZodString>;
1727
+ categories: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1728
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1729
+ permissions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["network"]>, "many">>>;
1730
+ screenshots: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1731
+ src: z.ZodString;
1732
+ alt: z.ZodOptional<z.ZodString>;
1733
+ }, "strip", z.ZodTypeAny, {
1734
+ src: string;
1735
+ alt?: string | undefined;
1736
+ }, {
1737
+ src: string;
1738
+ alt?: string | undefined;
1739
+ }>, "many">>>;
1740
+ artifactUrl: z.ZodString;
1741
+ sha256: z.ZodString;
1742
+ size: z.ZodNumber;
1743
+ publishedAt: z.ZodString;
1744
+ }, "strip", z.ZodTypeAny, {
1745
+ name: string;
1746
+ description: string;
1747
+ title: string;
1748
+ permissions: "network"[];
1749
+ artifactUrl: string;
1750
+ sha256: string;
1751
+ latestVersion: string;
1752
+ minHostVersion: string;
1753
+ categories: string[];
1754
+ keywords: string[];
1755
+ screenshots: {
1756
+ src: string;
1757
+ alt?: string | undefined;
1758
+ }[];
1759
+ size: number;
1760
+ publishedAt: string;
1761
+ locales?: Record<string, Record<string, string>> | undefined;
1762
+ author?: string | undefined;
1763
+ license?: string | undefined;
1764
+ repository?: string | undefined;
1765
+ homepage?: string | undefined;
1766
+ }, {
1767
+ name: string;
1768
+ description: string;
1769
+ title: string;
1770
+ artifactUrl: string;
1771
+ sha256: string;
1772
+ latestVersion: string;
1773
+ minHostVersion: string;
1774
+ size: number;
1775
+ publishedAt: string;
1776
+ permissions?: "network"[] | undefined;
1777
+ locales?: Record<string, Record<string, string>> | undefined;
1778
+ author?: string | undefined;
1779
+ license?: string | undefined;
1780
+ repository?: string | undefined;
1781
+ homepage?: string | undefined;
1782
+ categories?: string[] | undefined;
1783
+ keywords?: string[] | undefined;
1784
+ screenshots?: {
1785
+ src: string;
1786
+ alt?: string | undefined;
1787
+ }[] | undefined;
1788
+ }>, "many">;
1789
+ }, "strip", z.ZodTypeAny, {
1790
+ channel: "stable" | "nightly";
1791
+ plugins: {
1792
+ name: string;
1793
+ description: string;
1794
+ title: string;
1795
+ permissions: "network"[];
1796
+ artifactUrl: string;
1797
+ sha256: string;
1798
+ latestVersion: string;
1799
+ minHostVersion: string;
1800
+ categories: string[];
1801
+ keywords: string[];
1802
+ screenshots: {
1803
+ src: string;
1804
+ alt?: string | undefined;
1805
+ }[];
1806
+ size: number;
1807
+ publishedAt: string;
1808
+ locales?: Record<string, Record<string, string>> | undefined;
1809
+ author?: string | undefined;
1810
+ license?: string | undefined;
1811
+ repository?: string | undefined;
1812
+ homepage?: string | undefined;
1813
+ }[];
1814
+ schemaVersion: number;
1815
+ generatedAt: string;
1816
+ }, {
1817
+ channel: "stable" | "nightly";
1818
+ plugins: {
1819
+ name: string;
1820
+ description: string;
1821
+ title: string;
1822
+ artifactUrl: string;
1823
+ sha256: string;
1824
+ latestVersion: string;
1825
+ minHostVersion: string;
1826
+ size: number;
1827
+ publishedAt: string;
1828
+ permissions?: "network"[] | undefined;
1829
+ locales?: Record<string, Record<string, string>> | undefined;
1830
+ author?: string | undefined;
1831
+ license?: string | undefined;
1832
+ repository?: string | undefined;
1833
+ homepage?: string | undefined;
1834
+ categories?: string[] | undefined;
1835
+ keywords?: string[] | undefined;
1836
+ screenshots?: {
1837
+ src: string;
1838
+ alt?: string | undefined;
1839
+ }[] | undefined;
1840
+ }[];
1841
+ schemaVersion: number;
1842
+ generatedAt: string;
1843
+ }>;
1844
+ sourceUrl: z.ZodString;
1845
+ }, "strip", z.ZodTypeAny, {
1846
+ catalog: {
1847
+ channel: "stable" | "nightly";
1848
+ plugins: {
1849
+ name: string;
1850
+ description: string;
1851
+ title: string;
1852
+ permissions: "network"[];
1853
+ artifactUrl: string;
1854
+ sha256: string;
1855
+ latestVersion: string;
1856
+ minHostVersion: string;
1857
+ categories: string[];
1858
+ keywords: string[];
1859
+ screenshots: {
1860
+ src: string;
1861
+ alt?: string | undefined;
1862
+ }[];
1863
+ size: number;
1864
+ publishedAt: string;
1865
+ locales?: Record<string, Record<string, string>> | undefined;
1866
+ author?: string | undefined;
1867
+ license?: string | undefined;
1868
+ repository?: string | undefined;
1869
+ homepage?: string | undefined;
1870
+ }[];
1871
+ schemaVersion: number;
1872
+ generatedAt: string;
1873
+ };
1874
+ sourceUrl: string;
1875
+ }, {
1876
+ catalog: {
1877
+ channel: "stable" | "nightly";
1878
+ plugins: {
1879
+ name: string;
1880
+ description: string;
1881
+ title: string;
1882
+ artifactUrl: string;
1883
+ sha256: string;
1884
+ latestVersion: string;
1885
+ minHostVersion: string;
1886
+ size: number;
1887
+ publishedAt: string;
1888
+ permissions?: "network"[] | undefined;
1889
+ locales?: Record<string, Record<string, string>> | undefined;
1890
+ author?: string | undefined;
1891
+ license?: string | undefined;
1892
+ repository?: string | undefined;
1893
+ homepage?: string | undefined;
1894
+ categories?: string[] | undefined;
1895
+ keywords?: string[] | undefined;
1896
+ screenshots?: {
1897
+ src: string;
1898
+ alt?: string | undefined;
1899
+ }[] | undefined;
1900
+ }[];
1901
+ schemaVersion: number;
1902
+ generatedAt: string;
1903
+ };
1904
+ sourceUrl: string;
1905
+ }>;
1906
+ export type PluginMarketCatalogResponse = z.infer<typeof PluginMarketCatalogResponseSchema>;
1907
+ export declare const PluginMarketCatalogEntryResponseSchema: z.ZodObject<{
1908
+ plugin: z.ZodObject<{
1909
+ name: z.ZodString;
1910
+ title: z.ZodString;
1911
+ description: z.ZodString;
1912
+ locales: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
1913
+ latestVersion: z.ZodString;
1914
+ minHostVersion: z.ZodString;
1915
+ author: z.ZodOptional<z.ZodString>;
1916
+ license: z.ZodOptional<z.ZodString>;
1917
+ repository: z.ZodOptional<z.ZodString>;
1918
+ homepage: z.ZodOptional<z.ZodString>;
1919
+ categories: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1920
+ keywords: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1921
+ permissions: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["network"]>, "many">>>;
1922
+ screenshots: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
1923
+ src: z.ZodString;
1924
+ alt: z.ZodOptional<z.ZodString>;
1925
+ }, "strip", z.ZodTypeAny, {
1926
+ src: string;
1927
+ alt?: string | undefined;
1928
+ }, {
1929
+ src: string;
1930
+ alt?: string | undefined;
1931
+ }>, "many">>>;
1932
+ artifactUrl: z.ZodString;
1933
+ sha256: z.ZodString;
1934
+ size: z.ZodNumber;
1935
+ publishedAt: z.ZodString;
1936
+ }, "strip", z.ZodTypeAny, {
1937
+ name: string;
1938
+ description: string;
1939
+ title: string;
1940
+ permissions: "network"[];
1941
+ artifactUrl: string;
1942
+ sha256: string;
1943
+ latestVersion: string;
1944
+ minHostVersion: string;
1945
+ categories: string[];
1946
+ keywords: string[];
1947
+ screenshots: {
1948
+ src: string;
1949
+ alt?: string | undefined;
1950
+ }[];
1951
+ size: number;
1952
+ publishedAt: string;
1953
+ locales?: Record<string, Record<string, string>> | undefined;
1954
+ author?: string | undefined;
1955
+ license?: string | undefined;
1956
+ repository?: string | undefined;
1957
+ homepage?: string | undefined;
1958
+ }, {
1959
+ name: string;
1960
+ description: string;
1961
+ title: string;
1962
+ artifactUrl: string;
1963
+ sha256: string;
1964
+ latestVersion: string;
1965
+ minHostVersion: string;
1966
+ size: number;
1967
+ publishedAt: string;
1968
+ permissions?: "network"[] | undefined;
1969
+ locales?: Record<string, Record<string, string>> | undefined;
1970
+ author?: string | undefined;
1971
+ license?: string | undefined;
1972
+ repository?: string | undefined;
1973
+ homepage?: string | undefined;
1974
+ categories?: string[] | undefined;
1975
+ keywords?: string[] | undefined;
1976
+ screenshots?: {
1977
+ src: string;
1978
+ alt?: string | undefined;
1979
+ }[] | undefined;
1980
+ }>;
1981
+ sourceUrl: z.ZodString;
1982
+ channel: z.ZodEnum<["stable", "nightly"]>;
1983
+ }, "strip", z.ZodTypeAny, {
1984
+ channel: "stable" | "nightly";
1985
+ sourceUrl: string;
1986
+ plugin: {
1987
+ name: string;
1988
+ description: string;
1989
+ title: string;
1990
+ permissions: "network"[];
1991
+ artifactUrl: string;
1992
+ sha256: string;
1993
+ latestVersion: string;
1994
+ minHostVersion: string;
1995
+ categories: string[];
1996
+ keywords: string[];
1997
+ screenshots: {
1998
+ src: string;
1999
+ alt?: string | undefined;
2000
+ }[];
2001
+ size: number;
2002
+ publishedAt: string;
2003
+ locales?: Record<string, Record<string, string>> | undefined;
2004
+ author?: string | undefined;
2005
+ license?: string | undefined;
2006
+ repository?: string | undefined;
2007
+ homepage?: string | undefined;
2008
+ };
2009
+ }, {
2010
+ channel: "stable" | "nightly";
2011
+ sourceUrl: string;
2012
+ plugin: {
2013
+ name: string;
2014
+ description: string;
2015
+ title: string;
2016
+ artifactUrl: string;
2017
+ sha256: string;
2018
+ latestVersion: string;
2019
+ minHostVersion: string;
2020
+ size: number;
2021
+ publishedAt: string;
2022
+ permissions?: "network"[] | undefined;
2023
+ locales?: Record<string, Record<string, string>> | undefined;
2024
+ author?: string | undefined;
2025
+ license?: string | undefined;
2026
+ repository?: string | undefined;
2027
+ homepage?: string | undefined;
2028
+ categories?: string[] | undefined;
2029
+ keywords?: string[] | undefined;
2030
+ screenshots?: {
2031
+ src: string;
2032
+ alt?: string | undefined;
2033
+ }[] | undefined;
2034
+ };
2035
+ }>;
2036
+ export type PluginMarketCatalogEntryResponse = z.infer<typeof PluginMarketCatalogEntryResponseSchema>;
2037
+ export declare const PluginMarketInstallRecordSchema: z.ZodObject<{
2038
+ version: z.ZodString;
2039
+ channel: z.ZodEnum<["stable", "nightly"]>;
2040
+ artifactUrl: z.ZodString;
2041
+ sha256: z.ZodString;
2042
+ installedAt: z.ZodNumber;
2043
+ }, "strip", z.ZodTypeAny, {
2044
+ version: string;
2045
+ channel: "stable" | "nightly";
2046
+ artifactUrl: string;
2047
+ sha256: string;
2048
+ installedAt: number;
2049
+ }, {
2050
+ version: string;
2051
+ channel: "stable" | "nightly";
2052
+ artifactUrl: string;
2053
+ sha256: string;
2054
+ installedAt: number;
2055
+ }>;
2056
+ export type PluginMarketInstallRecord = z.infer<typeof PluginMarketInstallRecordSchema>;
2057
+ export declare const PluginMarketInstallActionSchema: z.ZodEnum<["install", "update", "uninstall"]>;
2058
+ export type PluginMarketInstallAction = z.infer<typeof PluginMarketInstallActionSchema>;
2059
+ export declare const PluginMarketInstallResultSchema: z.ZodObject<{
2060
+ success: z.ZodLiteral<true>;
2061
+ action: z.ZodEnum<["install", "update", "uninstall"]>;
2062
+ pluginName: z.ZodString;
2063
+ record: z.ZodOptional<z.ZodObject<{
2064
+ version: z.ZodString;
2065
+ channel: z.ZodEnum<["stable", "nightly"]>;
2066
+ artifactUrl: z.ZodString;
2067
+ sha256: z.ZodString;
2068
+ installedAt: z.ZodNumber;
2069
+ }, "strip", z.ZodTypeAny, {
2070
+ version: string;
2071
+ channel: "stable" | "nightly";
2072
+ artifactUrl: string;
2073
+ sha256: string;
2074
+ installedAt: number;
2075
+ }, {
2076
+ version: string;
2077
+ channel: "stable" | "nightly";
2078
+ artifactUrl: string;
2079
+ sha256: string;
2080
+ installedAt: number;
2081
+ }>>;
2082
+ }, "strip", z.ZodTypeAny, {
2083
+ success: true;
2084
+ action: "install" | "update" | "uninstall";
2085
+ pluginName: string;
2086
+ record?: {
2087
+ version: string;
2088
+ channel: "stable" | "nightly";
2089
+ artifactUrl: string;
2090
+ sha256: string;
2091
+ installedAt: number;
2092
+ } | undefined;
2093
+ }, {
2094
+ success: true;
2095
+ action: "install" | "update" | "uninstall";
2096
+ pluginName: string;
2097
+ record?: {
2098
+ version: string;
2099
+ channel: "stable" | "nightly";
2100
+ artifactUrl: string;
2101
+ sha256: string;
2102
+ installedAt: number;
2103
+ } | undefined;
2104
+ }>;
2105
+ export type PluginMarketInstallResult = z.infer<typeof PluginMarketInstallResultSchema>;
1374
2106
  /**
1375
2107
  * 所有插件的持久化配置
1376
2108
  */
@@ -1466,8 +2198,8 @@ export declare const PluginRuntimeLogEntrySchema: z.ZodObject<{
1466
2198
  }, "strip", z.ZodTypeAny, {
1467
2199
  message: string;
1468
2200
  timestamp: number;
1469
- level: "error" | "info" | "debug" | "warn";
1470
2201
  source: "system";
2202
+ level: "error" | "info" | "debug" | "warn";
1471
2203
  stage: "scan" | "load" | "validate" | "reload" | "activate";
1472
2204
  pluginName?: string | undefined;
1473
2205
  directoryName?: string | undefined;
@@ -1475,8 +2207,8 @@ export declare const PluginRuntimeLogEntrySchema: z.ZodObject<{
1475
2207
  }, {
1476
2208
  message: string;
1477
2209
  timestamp: number;
1478
- level: "error" | "info" | "debug" | "warn";
1479
2210
  source: "system";
2211
+ level: "error" | "info" | "debug" | "warn";
1480
2212
  stage: "scan" | "load" | "validate" | "reload" | "activate";
1481
2213
  pluginName?: string | undefined;
1482
2214
  directoryName?: string | undefined;
@@ -1499,8 +2231,8 @@ export declare const PluginRuntimeLogHistoryPayloadSchema: z.ZodObject<{
1499
2231
  }, "strip", z.ZodTypeAny, {
1500
2232
  message: string;
1501
2233
  timestamp: number;
1502
- level: "error" | "info" | "debug" | "warn";
1503
2234
  source: "system";
2235
+ level: "error" | "info" | "debug" | "warn";
1504
2236
  stage: "scan" | "load" | "validate" | "reload" | "activate";
1505
2237
  pluginName?: string | undefined;
1506
2238
  directoryName?: string | undefined;
@@ -1508,8 +2240,8 @@ export declare const PluginRuntimeLogHistoryPayloadSchema: z.ZodObject<{
1508
2240
  }, {
1509
2241
  message: string;
1510
2242
  timestamp: number;
1511
- level: "error" | "info" | "debug" | "warn";
1512
2243
  source: "system";
2244
+ level: "error" | "info" | "debug" | "warn";
1513
2245
  stage: "scan" | "load" | "validate" | "reload" | "activate";
1514
2246
  pluginName?: string | undefined;
1515
2247
  directoryName?: string | undefined;
@@ -1519,8 +2251,8 @@ export declare const PluginRuntimeLogHistoryPayloadSchema: z.ZodObject<{
1519
2251
  entries: {
1520
2252
  message: string;
1521
2253
  timestamp: number;
1522
- level: "error" | "info" | "debug" | "warn";
1523
2254
  source: "system";
2255
+ level: "error" | "info" | "debug" | "warn";
1524
2256
  stage: "scan" | "load" | "validate" | "reload" | "activate";
1525
2257
  pluginName?: string | undefined;
1526
2258
  directoryName?: string | undefined;
@@ -1530,8 +2262,8 @@ export declare const PluginRuntimeLogHistoryPayloadSchema: z.ZodObject<{
1530
2262
  entries: {
1531
2263
  message: string;
1532
2264
  timestamp: number;
1533
- level: "error" | "info" | "debug" | "warn";
1534
2265
  source: "system";
2266
+ level: "error" | "info" | "debug" | "warn";
1535
2267
  stage: "scan" | "load" | "validate" | "reload" | "activate";
1536
2268
  pluginName?: string | undefined;
1537
2269
  directoryName?: string | undefined;
@@ -1539,6 +2271,46 @@ export declare const PluginRuntimeLogHistoryPayloadSchema: z.ZodObject<{
1539
2271
  }[];
1540
2272
  }>;
1541
2273
  export type PluginRuntimeLogHistoryPayload = z.infer<typeof PluginRuntimeLogHistoryPayloadSchema>;
2274
+ /**
2275
+ * 插件面板元数据推送载荷(ctx.ui.setPanelMeta() 发送到前端)
2276
+ */
2277
+ export declare const PluginPanelMetaPayloadSchema: z.ZodObject<{
2278
+ pluginName: z.ZodString;
2279
+ operatorId: z.ZodString;
2280
+ panelId: z.ZodString;
2281
+ meta: z.ZodObject<{
2282
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2283
+ titleValues: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2284
+ visible: z.ZodOptional<z.ZodBoolean>;
2285
+ }, "strip", z.ZodTypeAny, {
2286
+ visible?: boolean | undefined;
2287
+ title?: string | null | undefined;
2288
+ titleValues?: Record<string, unknown> | undefined;
2289
+ }, {
2290
+ visible?: boolean | undefined;
2291
+ title?: string | null | undefined;
2292
+ titleValues?: Record<string, unknown> | undefined;
2293
+ }>;
2294
+ }, "strip", z.ZodTypeAny, {
2295
+ operatorId: string;
2296
+ meta: {
2297
+ visible?: boolean | undefined;
2298
+ title?: string | null | undefined;
2299
+ titleValues?: Record<string, unknown> | undefined;
2300
+ };
2301
+ pluginName: string;
2302
+ panelId: string;
2303
+ }, {
2304
+ operatorId: string;
2305
+ meta: {
2306
+ visible?: boolean | undefined;
2307
+ title?: string | null | undefined;
2308
+ titleValues?: Record<string, unknown> | undefined;
2309
+ };
2310
+ pluginName: string;
2311
+ panelId: string;
2312
+ }>;
2313
+ export type PluginPanelMetaPayload = z.infer<typeof PluginPanelMetaPayloadSchema>;
1542
2314
  /**
1543
2315
  * 插件用户操作载荷(前端 → 后端)
1544
2316
  */