@agentrix/shared 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -16,12 +16,12 @@ declare const ApiErrorSchema: z.ZodObject<{
16
16
  message: z.ZodString;
17
17
  details: z.ZodOptional<z.ZodAny>;
18
18
  }, "strip", z.ZodTypeAny, {
19
- error: string;
20
19
  message: string;
20
+ error: string;
21
21
  details?: any;
22
22
  }, {
23
- error: string;
24
23
  message: string;
24
+ error: string;
25
25
  details?: any;
26
26
  }>;
27
27
  type ApiError = z.infer<typeof ApiErrorSchema>;
@@ -35,14 +35,14 @@ declare const PaginatedResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) =
35
35
  limit: z.ZodNumber;
36
36
  items: z.ZodArray<T, "many">;
37
37
  }, "strip", z.ZodTypeAny, {
38
- total: number;
39
- page: number;
40
38
  limit: number;
39
+ page: number;
40
+ total: number;
41
41
  items: T["_output"][];
42
42
  }, {
43
- total: number;
44
- page: number;
45
43
  limit: number;
44
+ page: number;
45
+ total: number;
46
46
  items: T["_input"][];
47
47
  }>;
48
48
  /**
@@ -908,6 +908,7 @@ declare const TaskItemSchema: z.ZodObject<{
908
908
  title: z.ZodNullable<z.ZodString>;
909
909
  agentSessionId: z.ZodNullable<z.ZodString>;
910
910
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
911
+ cwd: z.ZodNullable<z.ZodString>;
911
912
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
912
913
  pullRequestUrl: z.ZodNullable<z.ZodString>;
913
914
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -955,6 +956,7 @@ declare const TaskItemSchema: z.ZodObject<{
955
956
  cloudId: string | null;
956
957
  userId: string;
957
958
  chatId: string;
959
+ cwd: string | null;
958
960
  repositoryId: string | null;
959
961
  baseBranch: string | null;
960
962
  dataEncryptionKey: string | null;
@@ -983,6 +985,7 @@ declare const TaskItemSchema: z.ZodObject<{
983
985
  cloudId: string | null;
984
986
  userId: string;
985
987
  chatId: string;
988
+ cwd: string | null;
986
989
  repositoryId: string | null;
987
990
  baseBranch: string | null;
988
991
  dataEncryptionKey: string | null;
@@ -1005,6 +1008,26 @@ declare const TaskItemSchema: z.ZodObject<{
1005
1008
  } | null;
1006
1009
  }>;
1007
1010
  type TaskItem = z.infer<typeof TaskItemSchema>;
1011
+ /**
1012
+ * GET /v1/tasks - Query parameters schema
1013
+ */
1014
+ declare const ListTasksRequestSchema: z.ZodObject<{
1015
+ chatId: z.ZodString;
1016
+ archived: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodBoolean>>, boolean, unknown>;
1017
+ cursor: z.ZodOptional<z.ZodString>;
1018
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1019
+ }, "strip", z.ZodTypeAny, {
1020
+ chatId: string;
1021
+ archived: boolean;
1022
+ limit: number;
1023
+ cursor?: string | undefined;
1024
+ }, {
1025
+ chatId: string;
1026
+ archived?: unknown;
1027
+ cursor?: string | undefined;
1028
+ limit?: number | undefined;
1029
+ }>;
1030
+ type ListTasksRequest = z.infer<typeof ListTasksRequestSchema>;
1008
1031
  /**
1009
1032
  * GET /v1/tasks - Response schema
1010
1033
  */
@@ -1022,6 +1045,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1022
1045
  title: z.ZodNullable<z.ZodString>;
1023
1046
  agentSessionId: z.ZodNullable<z.ZodString>;
1024
1047
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
1048
+ cwd: z.ZodNullable<z.ZodString>;
1025
1049
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
1026
1050
  pullRequestUrl: z.ZodNullable<z.ZodString>;
1027
1051
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -1069,6 +1093,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1069
1093
  cloudId: string | null;
1070
1094
  userId: string;
1071
1095
  chatId: string;
1096
+ cwd: string | null;
1072
1097
  repositoryId: string | null;
1073
1098
  baseBranch: string | null;
1074
1099
  dataEncryptionKey: string | null;
@@ -1097,6 +1122,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1097
1122
  cloudId: string | null;
1098
1123
  userId: string;
1099
1124
  chatId: string;
1125
+ cwd: string | null;
1100
1126
  repositoryId: string | null;
1101
1127
  baseBranch: string | null;
1102
1128
  dataEncryptionKey: string | null;
@@ -1118,6 +1144,8 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1118
1144
  }[];
1119
1145
  } | null;
1120
1146
  }>, "many">;
1147
+ nextCursor: z.ZodNullable<z.ZodString>;
1148
+ hasMore: z.ZodBoolean;
1121
1149
  }, "strip", z.ZodTypeAny, {
1122
1150
  tasks: {
1123
1151
  id: string;
@@ -1127,6 +1155,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1127
1155
  cloudId: string | null;
1128
1156
  userId: string;
1129
1157
  chatId: string;
1158
+ cwd: string | null;
1130
1159
  repositoryId: string | null;
1131
1160
  baseBranch: string | null;
1132
1161
  dataEncryptionKey: string | null;
@@ -1148,6 +1177,8 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1148
1177
  }[];
1149
1178
  } | null;
1150
1179
  }[];
1180
+ nextCursor: string | null;
1181
+ hasMore: boolean;
1151
1182
  }, {
1152
1183
  tasks: {
1153
1184
  id: string;
@@ -1157,6 +1188,7 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1157
1188
  cloudId: string | null;
1158
1189
  userId: string;
1159
1190
  chatId: string;
1191
+ cwd: string | null;
1160
1192
  repositoryId: string | null;
1161
1193
  baseBranch: string | null;
1162
1194
  dataEncryptionKey: string | null;
@@ -1178,6 +1210,8 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1178
1210
  }[];
1179
1211
  } | null;
1180
1212
  }[];
1213
+ nextCursor: string | null;
1214
+ hasMore: boolean;
1181
1215
  }>;
1182
1216
  type ListTasksResponse = z.infer<typeof ListTasksResponseSchema>;
1183
1217
  /**
@@ -1536,6 +1570,382 @@ declare const CreateMergeRequestResponseSchema: z.ZodObject<{
1536
1570
  reason?: string | undefined;
1537
1571
  }>;
1538
1572
  type CreateMergeRequestResponse = z.infer<typeof CreateMergeRequestResponseSchema>;
1573
+ /**
1574
+ * POST /v1/tasks/:taskId/archive - Request schema (empty body)
1575
+ */
1576
+ declare const ArchiveTaskRequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1577
+ type ArchiveTaskRequest = z.infer<typeof ArchiveTaskRequestSchema>;
1578
+ /**
1579
+ * POST /v1/tasks/:taskId/archive - Response schema
1580
+ */
1581
+ declare const ArchiveTaskResponseSchema: z.ZodObject<{
1582
+ success: z.ZodBoolean;
1583
+ task: z.ZodObject<{
1584
+ id: z.ZodString;
1585
+ chatId: z.ZodString;
1586
+ userId: z.ZodString;
1587
+ state: z.ZodString;
1588
+ agentId: z.ZodString;
1589
+ machineId: z.ZodNullable<z.ZodString>;
1590
+ cloudId: z.ZodNullable<z.ZodString>;
1591
+ repositoryId: z.ZodNullable<z.ZodString>;
1592
+ baseBranch: z.ZodNullable<z.ZodString>;
1593
+ title: z.ZodNullable<z.ZodString>;
1594
+ agentSessionId: z.ZodNullable<z.ZodString>;
1595
+ dataEncryptionKey: z.ZodNullable<z.ZodString>;
1596
+ cwd: z.ZodNullable<z.ZodString>;
1597
+ pullRequestNumber: z.ZodNullable<z.ZodNumber>;
1598
+ pullRequestUrl: z.ZodNullable<z.ZodString>;
1599
+ pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
1600
+ pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
1601
+ gitStats: z.ZodNullable<z.ZodObject<{
1602
+ totalInsertions: z.ZodNumber;
1603
+ totalDeletions: z.ZodNumber;
1604
+ files: z.ZodArray<z.ZodObject<{
1605
+ path: z.ZodString;
1606
+ insertions: z.ZodNumber;
1607
+ deletions: z.ZodNumber;
1608
+ }, "strip", z.ZodTypeAny, {
1609
+ path: string;
1610
+ insertions: number;
1611
+ deletions: number;
1612
+ }, {
1613
+ path: string;
1614
+ insertions: number;
1615
+ deletions: number;
1616
+ }>, "many">;
1617
+ }, "strip", z.ZodTypeAny, {
1618
+ totalInsertions: number;
1619
+ totalDeletions: number;
1620
+ files: {
1621
+ path: string;
1622
+ insertions: number;
1623
+ deletions: number;
1624
+ }[];
1625
+ }, {
1626
+ totalInsertions: number;
1627
+ totalDeletions: number;
1628
+ files: {
1629
+ path: string;
1630
+ insertions: number;
1631
+ deletions: number;
1632
+ }[];
1633
+ }>>;
1634
+ createdAt: z.ZodString;
1635
+ updatedAt: z.ZodString;
1636
+ }, "strip", z.ZodTypeAny, {
1637
+ id: string;
1638
+ createdAt: string;
1639
+ state: string;
1640
+ machineId: string | null;
1641
+ cloudId: string | null;
1642
+ userId: string;
1643
+ chatId: string;
1644
+ cwd: string | null;
1645
+ repositoryId: string | null;
1646
+ baseBranch: string | null;
1647
+ dataEncryptionKey: string | null;
1648
+ agentId: string;
1649
+ title: string | null;
1650
+ updatedAt: string;
1651
+ agentSessionId: string | null;
1652
+ pullRequestNumber: number | null;
1653
+ pullRequestUrl: string | null;
1654
+ pullRequestState: "open" | "closed" | "merged" | null;
1655
+ pullRequestStateChangedAt: string | null;
1656
+ gitStats: {
1657
+ totalInsertions: number;
1658
+ totalDeletions: number;
1659
+ files: {
1660
+ path: string;
1661
+ insertions: number;
1662
+ deletions: number;
1663
+ }[];
1664
+ } | null;
1665
+ }, {
1666
+ id: string;
1667
+ createdAt: string;
1668
+ state: string;
1669
+ machineId: string | null;
1670
+ cloudId: string | null;
1671
+ userId: string;
1672
+ chatId: string;
1673
+ cwd: string | null;
1674
+ repositoryId: string | null;
1675
+ baseBranch: string | null;
1676
+ dataEncryptionKey: string | null;
1677
+ agentId: string;
1678
+ title: string | null;
1679
+ updatedAt: string;
1680
+ agentSessionId: string | null;
1681
+ pullRequestNumber: number | null;
1682
+ pullRequestUrl: string | null;
1683
+ pullRequestState: "open" | "closed" | "merged" | null;
1684
+ pullRequestStateChangedAt: string | null;
1685
+ gitStats: {
1686
+ totalInsertions: number;
1687
+ totalDeletions: number;
1688
+ files: {
1689
+ path: string;
1690
+ insertions: number;
1691
+ deletions: number;
1692
+ }[];
1693
+ } | null;
1694
+ }>;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ success: boolean;
1697
+ task: {
1698
+ id: string;
1699
+ createdAt: string;
1700
+ state: string;
1701
+ machineId: string | null;
1702
+ cloudId: string | null;
1703
+ userId: string;
1704
+ chatId: string;
1705
+ cwd: string | null;
1706
+ repositoryId: string | null;
1707
+ baseBranch: string | null;
1708
+ dataEncryptionKey: string | null;
1709
+ agentId: string;
1710
+ title: string | null;
1711
+ updatedAt: string;
1712
+ agentSessionId: string | null;
1713
+ pullRequestNumber: number | null;
1714
+ pullRequestUrl: string | null;
1715
+ pullRequestState: "open" | "closed" | "merged" | null;
1716
+ pullRequestStateChangedAt: string | null;
1717
+ gitStats: {
1718
+ totalInsertions: number;
1719
+ totalDeletions: number;
1720
+ files: {
1721
+ path: string;
1722
+ insertions: number;
1723
+ deletions: number;
1724
+ }[];
1725
+ } | null;
1726
+ };
1727
+ }, {
1728
+ success: boolean;
1729
+ task: {
1730
+ id: string;
1731
+ createdAt: string;
1732
+ state: string;
1733
+ machineId: string | null;
1734
+ cloudId: string | null;
1735
+ userId: string;
1736
+ chatId: string;
1737
+ cwd: string | null;
1738
+ repositoryId: string | null;
1739
+ baseBranch: string | null;
1740
+ dataEncryptionKey: string | null;
1741
+ agentId: string;
1742
+ title: string | null;
1743
+ updatedAt: string;
1744
+ agentSessionId: string | null;
1745
+ pullRequestNumber: number | null;
1746
+ pullRequestUrl: string | null;
1747
+ pullRequestState: "open" | "closed" | "merged" | null;
1748
+ pullRequestStateChangedAt: string | null;
1749
+ gitStats: {
1750
+ totalInsertions: number;
1751
+ totalDeletions: number;
1752
+ files: {
1753
+ path: string;
1754
+ insertions: number;
1755
+ deletions: number;
1756
+ }[];
1757
+ } | null;
1758
+ };
1759
+ }>;
1760
+ type ArchiveTaskResponse = z.infer<typeof ArchiveTaskResponseSchema>;
1761
+ /**
1762
+ * POST /v1/tasks/:taskId/unarchive - Request schema (empty body)
1763
+ */
1764
+ declare const UnarchiveTaskRequestSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
1765
+ type UnarchiveTaskRequest = z.infer<typeof UnarchiveTaskRequestSchema>;
1766
+ /**
1767
+ * POST /v1/tasks/:taskId/unarchive - Response schema
1768
+ */
1769
+ declare const UnarchiveTaskResponseSchema: z.ZodObject<{
1770
+ success: z.ZodBoolean;
1771
+ task: z.ZodObject<{
1772
+ id: z.ZodString;
1773
+ chatId: z.ZodString;
1774
+ userId: z.ZodString;
1775
+ state: z.ZodString;
1776
+ agentId: z.ZodString;
1777
+ machineId: z.ZodNullable<z.ZodString>;
1778
+ cloudId: z.ZodNullable<z.ZodString>;
1779
+ repositoryId: z.ZodNullable<z.ZodString>;
1780
+ baseBranch: z.ZodNullable<z.ZodString>;
1781
+ title: z.ZodNullable<z.ZodString>;
1782
+ agentSessionId: z.ZodNullable<z.ZodString>;
1783
+ dataEncryptionKey: z.ZodNullable<z.ZodString>;
1784
+ cwd: z.ZodNullable<z.ZodString>;
1785
+ pullRequestNumber: z.ZodNullable<z.ZodNumber>;
1786
+ pullRequestUrl: z.ZodNullable<z.ZodString>;
1787
+ pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
1788
+ pullRequestStateChangedAt: z.ZodNullable<z.ZodString>;
1789
+ gitStats: z.ZodNullable<z.ZodObject<{
1790
+ totalInsertions: z.ZodNumber;
1791
+ totalDeletions: z.ZodNumber;
1792
+ files: z.ZodArray<z.ZodObject<{
1793
+ path: z.ZodString;
1794
+ insertions: z.ZodNumber;
1795
+ deletions: z.ZodNumber;
1796
+ }, "strip", z.ZodTypeAny, {
1797
+ path: string;
1798
+ insertions: number;
1799
+ deletions: number;
1800
+ }, {
1801
+ path: string;
1802
+ insertions: number;
1803
+ deletions: number;
1804
+ }>, "many">;
1805
+ }, "strip", z.ZodTypeAny, {
1806
+ totalInsertions: number;
1807
+ totalDeletions: number;
1808
+ files: {
1809
+ path: string;
1810
+ insertions: number;
1811
+ deletions: number;
1812
+ }[];
1813
+ }, {
1814
+ totalInsertions: number;
1815
+ totalDeletions: number;
1816
+ files: {
1817
+ path: string;
1818
+ insertions: number;
1819
+ deletions: number;
1820
+ }[];
1821
+ }>>;
1822
+ createdAt: z.ZodString;
1823
+ updatedAt: z.ZodString;
1824
+ }, "strip", z.ZodTypeAny, {
1825
+ id: string;
1826
+ createdAt: string;
1827
+ state: string;
1828
+ machineId: string | null;
1829
+ cloudId: string | null;
1830
+ userId: string;
1831
+ chatId: string;
1832
+ cwd: string | null;
1833
+ repositoryId: string | null;
1834
+ baseBranch: string | null;
1835
+ dataEncryptionKey: string | null;
1836
+ agentId: string;
1837
+ title: string | null;
1838
+ updatedAt: string;
1839
+ agentSessionId: string | null;
1840
+ pullRequestNumber: number | null;
1841
+ pullRequestUrl: string | null;
1842
+ pullRequestState: "open" | "closed" | "merged" | null;
1843
+ pullRequestStateChangedAt: string | null;
1844
+ gitStats: {
1845
+ totalInsertions: number;
1846
+ totalDeletions: number;
1847
+ files: {
1848
+ path: string;
1849
+ insertions: number;
1850
+ deletions: number;
1851
+ }[];
1852
+ } | null;
1853
+ }, {
1854
+ id: string;
1855
+ createdAt: string;
1856
+ state: string;
1857
+ machineId: string | null;
1858
+ cloudId: string | null;
1859
+ userId: string;
1860
+ chatId: string;
1861
+ cwd: string | null;
1862
+ repositoryId: string | null;
1863
+ baseBranch: string | null;
1864
+ dataEncryptionKey: string | null;
1865
+ agentId: string;
1866
+ title: string | null;
1867
+ updatedAt: string;
1868
+ agentSessionId: string | null;
1869
+ pullRequestNumber: number | null;
1870
+ pullRequestUrl: string | null;
1871
+ pullRequestState: "open" | "closed" | "merged" | null;
1872
+ pullRequestStateChangedAt: string | null;
1873
+ gitStats: {
1874
+ totalInsertions: number;
1875
+ totalDeletions: number;
1876
+ files: {
1877
+ path: string;
1878
+ insertions: number;
1879
+ deletions: number;
1880
+ }[];
1881
+ } | null;
1882
+ }>;
1883
+ }, "strip", z.ZodTypeAny, {
1884
+ success: boolean;
1885
+ task: {
1886
+ id: string;
1887
+ createdAt: string;
1888
+ state: string;
1889
+ machineId: string | null;
1890
+ cloudId: string | null;
1891
+ userId: string;
1892
+ chatId: string;
1893
+ cwd: string | null;
1894
+ repositoryId: string | null;
1895
+ baseBranch: string | null;
1896
+ dataEncryptionKey: string | null;
1897
+ agentId: string;
1898
+ title: string | null;
1899
+ updatedAt: string;
1900
+ agentSessionId: string | null;
1901
+ pullRequestNumber: number | null;
1902
+ pullRequestUrl: string | null;
1903
+ pullRequestState: "open" | "closed" | "merged" | null;
1904
+ pullRequestStateChangedAt: string | null;
1905
+ gitStats: {
1906
+ totalInsertions: number;
1907
+ totalDeletions: number;
1908
+ files: {
1909
+ path: string;
1910
+ insertions: number;
1911
+ deletions: number;
1912
+ }[];
1913
+ } | null;
1914
+ };
1915
+ }, {
1916
+ success: boolean;
1917
+ task: {
1918
+ id: string;
1919
+ createdAt: string;
1920
+ state: string;
1921
+ machineId: string | null;
1922
+ cloudId: string | null;
1923
+ userId: string;
1924
+ chatId: string;
1925
+ cwd: string | null;
1926
+ repositoryId: string | null;
1927
+ baseBranch: string | null;
1928
+ dataEncryptionKey: string | null;
1929
+ agentId: string;
1930
+ title: string | null;
1931
+ updatedAt: string;
1932
+ agentSessionId: string | null;
1933
+ pullRequestNumber: number | null;
1934
+ pullRequestUrl: string | null;
1935
+ pullRequestState: "open" | "closed" | "merged" | null;
1936
+ pullRequestStateChangedAt: string | null;
1937
+ gitStats: {
1938
+ totalInsertions: number;
1939
+ totalDeletions: number;
1940
+ files: {
1941
+ path: string;
1942
+ insertions: number;
1943
+ deletions: number;
1944
+ }[];
1945
+ } | null;
1946
+ };
1947
+ }>;
1948
+ type UnarchiveTaskResponse = z.infer<typeof UnarchiveTaskResponseSchema>;
1539
1949
 
1540
1950
  /**
1541
1951
  * Chat HTTP request/response schemas
@@ -1554,16 +1964,16 @@ declare const ChatMemberSchema: z.ZodObject<{
1554
1964
  createdAt: z.ZodString;
1555
1965
  updatedAt: z.ZodString;
1556
1966
  }, "strip", z.ZodTypeAny, {
1557
- type: "human" | "agent";
1558
1967
  id: string;
1968
+ type: "human" | "agent";
1559
1969
  createdAt: string;
1560
1970
  chatId: string;
1561
1971
  updatedAt: string;
1562
1972
  memberCode: string;
1563
1973
  role: string;
1564
1974
  }, {
1565
- type: "human" | "agent";
1566
1975
  id: string;
1976
+ type: "human" | "agent";
1567
1977
  createdAt: string;
1568
1978
  chatId: string;
1569
1979
  updatedAt: string;
@@ -1586,14 +1996,14 @@ declare const ChatSchema: z.ZodObject<{
1586
1996
  createdAt: z.ZodString;
1587
1997
  updatedAt: z.ZodString;
1588
1998
  }, "strip", z.ZodTypeAny, {
1589
- type: "direct" | "group";
1590
1999
  id: string;
2000
+ type: "direct" | "group";
1591
2001
  createdAt: string;
1592
2002
  updatedAt: string;
1593
2003
  owner: string;
1594
2004
  }, {
1595
- type: "direct" | "group";
1596
2005
  id: string;
2006
+ type: "direct" | "group";
1597
2007
  createdAt: string;
1598
2008
  updatedAt: string;
1599
2009
  owner: string;
@@ -1618,16 +2028,16 @@ declare const ChatWithMembersSchema: z.ZodObject<{
1618
2028
  createdAt: z.ZodString;
1619
2029
  updatedAt: z.ZodString;
1620
2030
  }, "strip", z.ZodTypeAny, {
1621
- type: "human" | "agent";
1622
2031
  id: string;
2032
+ type: "human" | "agent";
1623
2033
  createdAt: string;
1624
2034
  chatId: string;
1625
2035
  updatedAt: string;
1626
2036
  memberCode: string;
1627
2037
  role: string;
1628
2038
  }, {
1629
- type: "human" | "agent";
1630
2039
  id: string;
2040
+ type: "human" | "agent";
1631
2041
  createdAt: string;
1632
2042
  chatId: string;
1633
2043
  updatedAt: string;
@@ -1635,14 +2045,14 @@ declare const ChatWithMembersSchema: z.ZodObject<{
1635
2045
  role: string;
1636
2046
  }>, "many">;
1637
2047
  }, "strip", z.ZodTypeAny, {
1638
- type: "direct" | "group";
1639
2048
  id: string;
2049
+ type: "direct" | "group";
1640
2050
  createdAt: string;
1641
2051
  updatedAt: string;
1642
2052
  owner: string;
1643
2053
  members: {
1644
- type: "human" | "agent";
1645
2054
  id: string;
2055
+ type: "human" | "agent";
1646
2056
  createdAt: string;
1647
2057
  chatId: string;
1648
2058
  updatedAt: string;
@@ -1650,14 +2060,14 @@ declare const ChatWithMembersSchema: z.ZodObject<{
1650
2060
  role: string;
1651
2061
  }[];
1652
2062
  }, {
1653
- type: "direct" | "group";
1654
2063
  id: string;
2064
+ type: "direct" | "group";
1655
2065
  createdAt: string;
1656
2066
  updatedAt: string;
1657
2067
  owner: string;
1658
2068
  members: {
1659
- type: "human" | "agent";
1660
2069
  id: string;
2070
+ type: "human" | "agent";
1661
2071
  createdAt: string;
1662
2072
  chatId: string;
1663
2073
  updatedAt: string;
@@ -1728,16 +2138,16 @@ declare const CreateChatResponseSchema: z.ZodObject<{
1728
2138
  createdAt: z.ZodString;
1729
2139
  updatedAt: z.ZodString;
1730
2140
  }, "strip", z.ZodTypeAny, {
1731
- type: "human" | "agent";
1732
2141
  id: string;
2142
+ type: "human" | "agent";
1733
2143
  createdAt: string;
1734
2144
  chatId: string;
1735
2145
  updatedAt: string;
1736
2146
  memberCode: string;
1737
2147
  role: string;
1738
2148
  }, {
1739
- type: "human" | "agent";
1740
2149
  id: string;
2150
+ type: "human" | "agent";
1741
2151
  createdAt: string;
1742
2152
  chatId: string;
1743
2153
  updatedAt: string;
@@ -1745,14 +2155,14 @@ declare const CreateChatResponseSchema: z.ZodObject<{
1745
2155
  role: string;
1746
2156
  }>, "many">;
1747
2157
  }, "strip", z.ZodTypeAny, {
1748
- type: "direct" | "group";
1749
2158
  id: string;
2159
+ type: "direct" | "group";
1750
2160
  createdAt: string;
1751
2161
  updatedAt: string;
1752
2162
  owner: string;
1753
2163
  members: {
1754
- type: "human" | "agent";
1755
2164
  id: string;
2165
+ type: "human" | "agent";
1756
2166
  createdAt: string;
1757
2167
  chatId: string;
1758
2168
  updatedAt: string;
@@ -1760,14 +2170,14 @@ declare const CreateChatResponseSchema: z.ZodObject<{
1760
2170
  role: string;
1761
2171
  }[];
1762
2172
  }, {
1763
- type: "direct" | "group";
1764
2173
  id: string;
2174
+ type: "direct" | "group";
1765
2175
  createdAt: string;
1766
2176
  updatedAt: string;
1767
2177
  owner: string;
1768
2178
  members: {
1769
- type: "human" | "agent";
1770
2179
  id: string;
2180
+ type: "human" | "agent";
1771
2181
  createdAt: string;
1772
2182
  chatId: string;
1773
2183
  updatedAt: string;
@@ -1796,16 +2206,16 @@ declare const ListChatsResponseSchema: z.ZodObject<{
1796
2206
  createdAt: z.ZodString;
1797
2207
  updatedAt: z.ZodString;
1798
2208
  }, "strip", z.ZodTypeAny, {
1799
- type: "human" | "agent";
1800
2209
  id: string;
2210
+ type: "human" | "agent";
1801
2211
  createdAt: string;
1802
2212
  chatId: string;
1803
2213
  updatedAt: string;
1804
2214
  memberCode: string;
1805
2215
  role: string;
1806
2216
  }, {
1807
- type: "human" | "agent";
1808
2217
  id: string;
2218
+ type: "human" | "agent";
1809
2219
  createdAt: string;
1810
2220
  chatId: string;
1811
2221
  updatedAt: string;
@@ -1813,14 +2223,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
1813
2223
  role: string;
1814
2224
  }>, "many">;
1815
2225
  }, "strip", z.ZodTypeAny, {
1816
- type: "direct" | "group";
1817
2226
  id: string;
2227
+ type: "direct" | "group";
1818
2228
  createdAt: string;
1819
2229
  updatedAt: string;
1820
2230
  owner: string;
1821
2231
  members: {
1822
- type: "human" | "agent";
1823
2232
  id: string;
2233
+ type: "human" | "agent";
1824
2234
  createdAt: string;
1825
2235
  chatId: string;
1826
2236
  updatedAt: string;
@@ -1828,14 +2238,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
1828
2238
  role: string;
1829
2239
  }[];
1830
2240
  }, {
1831
- type: "direct" | "group";
1832
2241
  id: string;
2242
+ type: "direct" | "group";
1833
2243
  createdAt: string;
1834
2244
  updatedAt: string;
1835
2245
  owner: string;
1836
2246
  members: {
1837
- type: "human" | "agent";
1838
2247
  id: string;
2248
+ type: "human" | "agent";
1839
2249
  createdAt: string;
1840
2250
  chatId: string;
1841
2251
  updatedAt: string;
@@ -1845,14 +2255,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
1845
2255
  }>, "many">;
1846
2256
  }, "strip", z.ZodTypeAny, {
1847
2257
  chats: {
1848
- type: "direct" | "group";
1849
2258
  id: string;
2259
+ type: "direct" | "group";
1850
2260
  createdAt: string;
1851
2261
  updatedAt: string;
1852
2262
  owner: string;
1853
2263
  members: {
1854
- type: "human" | "agent";
1855
2264
  id: string;
2265
+ type: "human" | "agent";
1856
2266
  createdAt: string;
1857
2267
  chatId: string;
1858
2268
  updatedAt: string;
@@ -1862,14 +2272,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
1862
2272
  }[];
1863
2273
  }, {
1864
2274
  chats: {
1865
- type: "direct" | "group";
1866
2275
  id: string;
2276
+ type: "direct" | "group";
1867
2277
  createdAt: string;
1868
2278
  updatedAt: string;
1869
2279
  owner: string;
1870
2280
  members: {
1871
- type: "human" | "agent";
1872
2281
  id: string;
2282
+ type: "human" | "agent";
1873
2283
  createdAt: string;
1874
2284
  chatId: string;
1875
2285
  updatedAt: string;
@@ -1898,16 +2308,16 @@ declare const GetChatResponseSchema: z.ZodObject<{
1898
2308
  createdAt: z.ZodString;
1899
2309
  updatedAt: z.ZodString;
1900
2310
  }, "strip", z.ZodTypeAny, {
1901
- type: "human" | "agent";
1902
2311
  id: string;
2312
+ type: "human" | "agent";
1903
2313
  createdAt: string;
1904
2314
  chatId: string;
1905
2315
  updatedAt: string;
1906
2316
  memberCode: string;
1907
2317
  role: string;
1908
2318
  }, {
1909
- type: "human" | "agent";
1910
2319
  id: string;
2320
+ type: "human" | "agent";
1911
2321
  createdAt: string;
1912
2322
  chatId: string;
1913
2323
  updatedAt: string;
@@ -1915,14 +2325,14 @@ declare const GetChatResponseSchema: z.ZodObject<{
1915
2325
  role: string;
1916
2326
  }>, "many">;
1917
2327
  }, "strip", z.ZodTypeAny, {
1918
- type: "direct" | "group";
1919
2328
  id: string;
2329
+ type: "direct" | "group";
1920
2330
  createdAt: string;
1921
2331
  updatedAt: string;
1922
2332
  owner: string;
1923
2333
  members: {
1924
- type: "human" | "agent";
1925
2334
  id: string;
2335
+ type: "human" | "agent";
1926
2336
  createdAt: string;
1927
2337
  chatId: string;
1928
2338
  updatedAt: string;
@@ -1930,14 +2340,14 @@ declare const GetChatResponseSchema: z.ZodObject<{
1930
2340
  role: string;
1931
2341
  }[];
1932
2342
  }, {
1933
- type: "direct" | "group";
1934
2343
  id: string;
2344
+ type: "direct" | "group";
1935
2345
  createdAt: string;
1936
2346
  updatedAt: string;
1937
2347
  owner: string;
1938
2348
  members: {
1939
- type: "human" | "agent";
1940
2349
  id: string;
2350
+ type: "human" | "agent";
1941
2351
  createdAt: string;
1942
2352
  chatId: string;
1943
2353
  updatedAt: string;
@@ -1959,16 +2369,16 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
1959
2369
  createdAt: z.ZodString;
1960
2370
  updatedAt: z.ZodString;
1961
2371
  }, "strip", z.ZodTypeAny, {
1962
- type: "human" | "agent";
1963
2372
  id: string;
2373
+ type: "human" | "agent";
1964
2374
  createdAt: string;
1965
2375
  chatId: string;
1966
2376
  updatedAt: string;
1967
2377
  memberCode: string;
1968
2378
  role: string;
1969
2379
  }, {
1970
- type: "human" | "agent";
1971
2380
  id: string;
2381
+ type: "human" | "agent";
1972
2382
  createdAt: string;
1973
2383
  chatId: string;
1974
2384
  updatedAt: string;
@@ -1977,8 +2387,8 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
1977
2387
  }>, "many">;
1978
2388
  }, "strip", z.ZodTypeAny, {
1979
2389
  members: {
1980
- type: "human" | "agent";
1981
2390
  id: string;
2391
+ type: "human" | "agent";
1982
2392
  createdAt: string;
1983
2393
  chatId: string;
1984
2394
  updatedAt: string;
@@ -1987,8 +2397,8 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
1987
2397
  }[];
1988
2398
  }, {
1989
2399
  members: {
1990
- type: "human" | "agent";
1991
2400
  id: string;
2401
+ type: "human" | "agent";
1992
2402
  createdAt: string;
1993
2403
  chatId: string;
1994
2404
  updatedAt: string;
@@ -2037,16 +2447,16 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
2037
2447
  createdAt: z.ZodString;
2038
2448
  updatedAt: z.ZodString;
2039
2449
  }, "strip", z.ZodTypeAny, {
2040
- type: "human" | "agent";
2041
2450
  id: string;
2451
+ type: "human" | "agent";
2042
2452
  createdAt: string;
2043
2453
  chatId: string;
2044
2454
  updatedAt: string;
2045
2455
  memberCode: string;
2046
2456
  role: string;
2047
2457
  }, {
2048
- type: "human" | "agent";
2049
2458
  id: string;
2459
+ type: "human" | "agent";
2050
2460
  createdAt: string;
2051
2461
  chatId: string;
2052
2462
  updatedAt: string;
@@ -2055,8 +2465,8 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
2055
2465
  }>, "many">;
2056
2466
  }, "strip", z.ZodTypeAny, {
2057
2467
  members: {
2058
- type: "human" | "agent";
2059
2468
  id: string;
2469
+ type: "human" | "agent";
2060
2470
  createdAt: string;
2061
2471
  chatId: string;
2062
2472
  updatedAt: string;
@@ -2065,8 +2475,8 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
2065
2475
  }[];
2066
2476
  }, {
2067
2477
  members: {
2068
- type: "human" | "agent";
2069
2478
  id: string;
2479
+ type: "human" | "agent";
2070
2480
  createdAt: string;
2071
2481
  chatId: string;
2072
2482
  updatedAt: string;
@@ -2122,6 +2532,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2122
2532
  title: z.ZodNullable<z.ZodString>;
2123
2533
  agentSessionId: z.ZodNullable<z.ZodString>;
2124
2534
  dataEncryptionKey: z.ZodNullable<z.ZodString>;
2535
+ cwd: z.ZodNullable<z.ZodString>;
2125
2536
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
2126
2537
  pullRequestUrl: z.ZodNullable<z.ZodString>;
2127
2538
  pullRequestState: z.ZodNullable<z.ZodEnum<["open", "closed", "merged"]>>;
@@ -2169,6 +2580,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2169
2580
  cloudId: string | null;
2170
2581
  userId: string;
2171
2582
  chatId: string;
2583
+ cwd: string | null;
2172
2584
  repositoryId: string | null;
2173
2585
  baseBranch: string | null;
2174
2586
  dataEncryptionKey: string | null;
@@ -2197,6 +2609,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2197
2609
  cloudId: string | null;
2198
2610
  userId: string;
2199
2611
  chatId: string;
2612
+ cwd: string | null;
2200
2613
  repositoryId: string | null;
2201
2614
  baseBranch: string | null;
2202
2615
  dataEncryptionKey: string | null;
@@ -2227,6 +2640,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2227
2640
  cloudId: string | null;
2228
2641
  userId: string;
2229
2642
  chatId: string;
2643
+ cwd: string | null;
2230
2644
  repositoryId: string | null;
2231
2645
  baseBranch: string | null;
2232
2646
  dataEncryptionKey: string | null;
@@ -2257,6 +2671,7 @@ declare const ListChatTasksResponseSchema: z.ZodObject<{
2257
2671
  cloudId: string | null;
2258
2672
  userId: string;
2259
2673
  chatId: string;
2674
+ cwd: string | null;
2260
2675
  repositoryId: string | null;
2261
2676
  baseBranch: string | null;
2262
2677
  dataEncryptionKey: string | null;
@@ -2310,9 +2725,9 @@ declare const AgentSchema: z.ZodObject<{
2310
2725
  supportLocal: z.ZodBoolean;
2311
2726
  enable: z.ZodBoolean;
2312
2727
  }, "strip", z.ZodTypeAny, {
2313
- type: "claude" | "codex";
2314
2728
  id: string;
2315
2729
  avatar: string | null;
2730
+ type: "claude" | "codex";
2316
2731
  signature: string | null;
2317
2732
  userId: string;
2318
2733
  name: string;
@@ -2325,9 +2740,9 @@ declare const AgentSchema: z.ZodObject<{
2325
2740
  supportLocal: boolean;
2326
2741
  enable: boolean;
2327
2742
  }, {
2328
- type: "claude" | "codex";
2329
2743
  id: string;
2330
2744
  avatar: string | null;
2745
+ type: "claude" | "codex";
2331
2746
  signature: string | null;
2332
2747
  userId: string;
2333
2748
  name: string;
@@ -2361,9 +2776,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2361
2776
  supportLocal: z.ZodBoolean;
2362
2777
  enable: z.ZodBoolean;
2363
2778
  }, "strip", z.ZodTypeAny, {
2364
- type: "claude" | "codex";
2365
2779
  id: string;
2366
2780
  avatar: string | null;
2781
+ type: "claude" | "codex";
2367
2782
  signature: string | null;
2368
2783
  userId: string;
2369
2784
  name: string;
@@ -2376,9 +2791,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2376
2791
  supportLocal: boolean;
2377
2792
  enable: boolean;
2378
2793
  }, {
2379
- type: "claude" | "codex";
2380
2794
  id: string;
2381
2795
  avatar: string | null;
2796
+ type: "claude" | "codex";
2382
2797
  signature: string | null;
2383
2798
  userId: string;
2384
2799
  name: string;
@@ -2393,9 +2808,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2393
2808
  }>, "many">;
2394
2809
  }, "strip", z.ZodTypeAny, {
2395
2810
  agents: {
2396
- type: "claude" | "codex";
2397
2811
  id: string;
2398
2812
  avatar: string | null;
2813
+ type: "claude" | "codex";
2399
2814
  signature: string | null;
2400
2815
  userId: string;
2401
2816
  name: string;
@@ -2410,9 +2825,9 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2410
2825
  }[];
2411
2826
  }, {
2412
2827
  agents: {
2413
- type: "claude" | "codex";
2414
2828
  id: string;
2415
2829
  avatar: string | null;
2830
+ type: "claude" | "codex";
2416
2831
  signature: string | null;
2417
2832
  userId: string;
2418
2833
  name: string;
@@ -2446,9 +2861,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2446
2861
  supportLocal: z.ZodBoolean;
2447
2862
  enable: z.ZodBoolean;
2448
2863
  }, "strip", z.ZodTypeAny, {
2449
- type: "claude" | "codex";
2450
2864
  id: string;
2451
2865
  avatar: string | null;
2866
+ type: "claude" | "codex";
2452
2867
  signature: string | null;
2453
2868
  userId: string;
2454
2869
  name: string;
@@ -2461,9 +2876,9 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2461
2876
  supportLocal: boolean;
2462
2877
  enable: boolean;
2463
2878
  }, {
2464
- type: "claude" | "codex";
2465
2879
  id: string;
2466
2880
  avatar: string | null;
2881
+ type: "claude" | "codex";
2467
2882
  signature: string | null;
2468
2883
  userId: string;
2469
2884
  name: string;
@@ -2531,9 +2946,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
2531
2946
  supportLocal: z.ZodBoolean;
2532
2947
  enable: z.ZodBoolean;
2533
2948
  }, "strip", z.ZodTypeAny, {
2534
- type: "claude" | "codex";
2535
2949
  id: string;
2536
2950
  avatar: string | null;
2951
+ type: "claude" | "codex";
2537
2952
  signature: string | null;
2538
2953
  userId: string;
2539
2954
  name: string;
@@ -2546,9 +2961,9 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
2546
2961
  supportLocal: boolean;
2547
2962
  enable: boolean;
2548
2963
  }, {
2549
- type: "claude" | "codex";
2550
2964
  id: string;
2551
2965
  avatar: string | null;
2966
+ type: "claude" | "codex";
2552
2967
  signature: string | null;
2553
2968
  userId: string;
2554
2969
  name: string;
@@ -2576,8 +2991,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
2576
2991
  gitRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2577
2992
  supportLocal: z.ZodOptional<z.ZodBoolean>;
2578
2993
  }, "strip", z.ZodTypeAny, {
2579
- type?: "claude" | "codex" | undefined;
2580
2994
  avatar?: string | null | undefined;
2995
+ type?: "claude" | "codex" | undefined;
2581
2996
  signature?: string | null | undefined;
2582
2997
  name?: string | undefined;
2583
2998
  description?: string | null | undefined;
@@ -2586,8 +3001,8 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
2586
3001
  gitRepoId?: string | null | undefined;
2587
3002
  supportLocal?: boolean | undefined;
2588
3003
  }, {
2589
- type?: "claude" | "codex" | undefined;
2590
3004
  avatar?: string | null | undefined;
3005
+ type?: "claude" | "codex" | undefined;
2591
3006
  signature?: string | null | undefined;
2592
3007
  name?: string | undefined;
2593
3008
  description?: string | null | undefined;
@@ -2616,9 +3031,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
2616
3031
  supportLocal: z.ZodBoolean;
2617
3032
  enable: z.ZodBoolean;
2618
3033
  }, "strip", z.ZodTypeAny, {
2619
- type: "claude" | "codex";
2620
3034
  id: string;
2621
3035
  avatar: string | null;
3036
+ type: "claude" | "codex";
2622
3037
  signature: string | null;
2623
3038
  userId: string;
2624
3039
  name: string;
@@ -2631,9 +3046,9 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
2631
3046
  supportLocal: boolean;
2632
3047
  enable: boolean;
2633
3048
  }, {
2634
- type: "claude" | "codex";
2635
3049
  id: string;
2636
3050
  avatar: string | null;
3051
+ type: "claude" | "codex";
2637
3052
  signature: string | null;
2638
3053
  userId: string;
2639
3054
  name: string;
@@ -2677,26 +3092,29 @@ declare const LocalMachineSchema: z.ZodObject<{
2677
3092
  metadata: z.ZodNullable<z.ZodString>;
2678
3093
  approval: z.ZodString;
2679
3094
  dataEncryptionKey: z.ZodString;
3095
+ controlPort: z.ZodNullable<z.ZodNumber>;
2680
3096
  createdAt: z.ZodString;
2681
3097
  updatedAt: z.ZodString;
2682
3098
  }, "strip", z.ZodTypeAny, {
2683
- status: string;
2684
3099
  id: string;
3100
+ status: string;
2685
3101
  createdAt: string;
2686
3102
  dataEncryptionKey: string;
2687
3103
  updatedAt: string;
2688
3104
  owner: string;
2689
3105
  metadata: string | null;
2690
3106
  approval: string;
3107
+ controlPort: number | null;
2691
3108
  }, {
2692
- status: string;
2693
3109
  id: string;
3110
+ status: string;
2694
3111
  createdAt: string;
2695
3112
  dataEncryptionKey: string;
2696
3113
  updatedAt: string;
2697
3114
  owner: string;
2698
3115
  metadata: string | null;
2699
3116
  approval: string;
3117
+ controlPort: number | null;
2700
3118
  }>;
2701
3119
  type LocalMachine = z.infer<typeof LocalMachineSchema>;
2702
3120
  /**
@@ -2711,16 +3129,16 @@ declare const CloudMachineSchema: z.ZodObject<{
2711
3129
  createdAt: z.ZodString;
2712
3130
  updatedAt: z.ZodString;
2713
3131
  }, "strip", z.ZodTypeAny, {
2714
- status: string;
2715
3132
  id: string;
3133
+ status: string;
2716
3134
  createdAt: string;
2717
3135
  cloudId: string;
2718
3136
  updatedAt: string;
2719
3137
  metadata: string | null;
2720
3138
  deviceId: string;
2721
3139
  }, {
2722
- status: string;
2723
3140
  id: string;
3141
+ status: string;
2724
3142
  createdAt: string;
2725
3143
  cloudId: string;
2726
3144
  updatedAt: string;
@@ -2747,16 +3165,16 @@ declare const CloudSchema: z.ZodObject<{
2747
3165
  createdAt: z.ZodString;
2748
3166
  updatedAt: z.ZodString;
2749
3167
  }, "strip", z.ZodTypeAny, {
2750
- status: string;
2751
3168
  id: string;
3169
+ status: string;
2752
3170
  createdAt: string;
2753
3171
  cloudId: string;
2754
3172
  updatedAt: string;
2755
3173
  metadata: string | null;
2756
3174
  deviceId: string;
2757
3175
  }, {
2758
- status: string;
2759
3176
  id: string;
3177
+ status: string;
2760
3178
  createdAt: string;
2761
3179
  cloudId: string;
2762
3180
  updatedAt: string;
@@ -2764,15 +3182,15 @@ declare const CloudSchema: z.ZodObject<{
2764
3182
  deviceId: string;
2765
3183
  }>, "many">>;
2766
3184
  }, "strip", z.ZodTypeAny, {
2767
- type: "public" | "private";
2768
3185
  id: string;
3186
+ type: "public" | "private";
2769
3187
  createdAt: string;
2770
3188
  updatedAt: string;
2771
3189
  name: string;
2772
3190
  owner: string;
2773
3191
  machines?: {
2774
- status: string;
2775
3192
  id: string;
3193
+ status: string;
2776
3194
  createdAt: string;
2777
3195
  cloudId: string;
2778
3196
  updatedAt: string;
@@ -2780,15 +3198,15 @@ declare const CloudSchema: z.ZodObject<{
2780
3198
  deviceId: string;
2781
3199
  }[] | undefined;
2782
3200
  }, {
2783
- type: "public" | "private";
2784
3201
  id: string;
3202
+ type: "public" | "private";
2785
3203
  createdAt: string;
2786
3204
  updatedAt: string;
2787
3205
  name: string;
2788
3206
  owner: string;
2789
3207
  machines?: {
2790
- status: string;
2791
3208
  id: string;
3209
+ status: string;
2792
3210
  createdAt: string;
2793
3211
  cloudId: string;
2794
3212
  updatedAt: string;
@@ -2817,16 +3235,16 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2817
3235
  createdAt: z.ZodString;
2818
3236
  updatedAt: z.ZodString;
2819
3237
  }, "strip", z.ZodTypeAny, {
2820
- status: string;
2821
3238
  id: string;
3239
+ status: string;
2822
3240
  createdAt: string;
2823
3241
  cloudId: string;
2824
3242
  updatedAt: string;
2825
3243
  metadata: string | null;
2826
3244
  deviceId: string;
2827
3245
  }, {
2828
- status: string;
2829
3246
  id: string;
3247
+ status: string;
2830
3248
  createdAt: string;
2831
3249
  cloudId: string;
2832
3250
  updatedAt: string;
@@ -2834,15 +3252,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2834
3252
  deviceId: string;
2835
3253
  }>, "many">>;
2836
3254
  }, "strip", z.ZodTypeAny, {
2837
- type: "public" | "private";
2838
3255
  id: string;
3256
+ type: "public" | "private";
2839
3257
  createdAt: string;
2840
3258
  updatedAt: string;
2841
3259
  name: string;
2842
3260
  owner: string;
2843
3261
  machines?: {
2844
- status: string;
2845
3262
  id: string;
3263
+ status: string;
2846
3264
  createdAt: string;
2847
3265
  cloudId: string;
2848
3266
  updatedAt: string;
@@ -2850,15 +3268,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2850
3268
  deviceId: string;
2851
3269
  }[] | undefined;
2852
3270
  }, {
2853
- type: "public" | "private";
2854
3271
  id: string;
3272
+ type: "public" | "private";
2855
3273
  createdAt: string;
2856
3274
  updatedAt: string;
2857
3275
  name: string;
2858
3276
  owner: string;
2859
3277
  machines?: {
2860
- status: string;
2861
3278
  id: string;
3279
+ status: string;
2862
3280
  createdAt: string;
2863
3281
  cloudId: string;
2864
3282
  updatedAt: string;
@@ -2873,38 +3291,41 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2873
3291
  metadata: z.ZodNullable<z.ZodString>;
2874
3292
  approval: z.ZodString;
2875
3293
  dataEncryptionKey: z.ZodString;
3294
+ controlPort: z.ZodNullable<z.ZodNumber>;
2876
3295
  createdAt: z.ZodString;
2877
3296
  updatedAt: z.ZodString;
2878
3297
  }, "strip", z.ZodTypeAny, {
2879
- status: string;
2880
3298
  id: string;
3299
+ status: string;
2881
3300
  createdAt: string;
2882
3301
  dataEncryptionKey: string;
2883
3302
  updatedAt: string;
2884
3303
  owner: string;
2885
3304
  metadata: string | null;
2886
3305
  approval: string;
3306
+ controlPort: number | null;
2887
3307
  }, {
2888
- status: string;
2889
3308
  id: string;
3309
+ status: string;
2890
3310
  createdAt: string;
2891
3311
  dataEncryptionKey: string;
2892
3312
  updatedAt: string;
2893
3313
  owner: string;
2894
3314
  metadata: string | null;
2895
3315
  approval: string;
3316
+ controlPort: number | null;
2896
3317
  }>, "many">;
2897
3318
  }, "strip", z.ZodTypeAny, {
2898
3319
  clouds: {
2899
- type: "public" | "private";
2900
3320
  id: string;
3321
+ type: "public" | "private";
2901
3322
  createdAt: string;
2902
3323
  updatedAt: string;
2903
3324
  name: string;
2904
3325
  owner: string;
2905
3326
  machines?: {
2906
- status: string;
2907
3327
  id: string;
3328
+ status: string;
2908
3329
  createdAt: string;
2909
3330
  cloudId: string;
2910
3331
  updatedAt: string;
@@ -2913,26 +3334,27 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2913
3334
  }[] | undefined;
2914
3335
  }[];
2915
3336
  localMachines: {
2916
- status: string;
2917
3337
  id: string;
3338
+ status: string;
2918
3339
  createdAt: string;
2919
3340
  dataEncryptionKey: string;
2920
3341
  updatedAt: string;
2921
3342
  owner: string;
2922
3343
  metadata: string | null;
2923
3344
  approval: string;
3345
+ controlPort: number | null;
2924
3346
  }[];
2925
3347
  }, {
2926
3348
  clouds: {
2927
- type: "public" | "private";
2928
3349
  id: string;
3350
+ type: "public" | "private";
2929
3351
  createdAt: string;
2930
3352
  updatedAt: string;
2931
3353
  name: string;
2932
3354
  owner: string;
2933
3355
  machines?: {
2934
- status: string;
2935
3356
  id: string;
3357
+ status: string;
2936
3358
  createdAt: string;
2937
3359
  cloudId: string;
2938
3360
  updatedAt: string;
@@ -2941,14 +3363,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2941
3363
  }[] | undefined;
2942
3364
  }[];
2943
3365
  localMachines: {
2944
- status: string;
2945
3366
  id: string;
3367
+ status: string;
2946
3368
  createdAt: string;
2947
3369
  dataEncryptionKey: string;
2948
3370
  updatedAt: string;
2949
3371
  owner: string;
2950
3372
  metadata: string | null;
2951
3373
  approval: string;
3374
+ controlPort: number | null;
2952
3375
  }[];
2953
3376
  }>;
2954
3377
  type ListMachinesResponse = z.infer<typeof ListMachinesResponseSchema>;
@@ -3191,12 +3614,12 @@ declare const ListFilesQuerySchema: z.ZodObject<{
3191
3614
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3192
3615
  fileIds: z.ZodOptional<z.ZodString>;
3193
3616
  }, "strip", z.ZodTypeAny, {
3194
- page: number;
3195
3617
  limit: number;
3618
+ page: number;
3196
3619
  fileIds?: string | undefined;
3197
3620
  }, {
3198
- page?: number | undefined;
3199
3621
  limit?: number | undefined;
3622
+ page?: number | undefined;
3200
3623
  fileIds?: string | undefined;
3201
3624
  }>;
3202
3625
  type ListFilesQuery = z.infer<typeof ListFilesQuerySchema>;
@@ -3227,9 +3650,6 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3227
3650
  contentType: string;
3228
3651
  }>, "many">;
3229
3652
  }, "strip", z.ZodTypeAny, {
3230
- total: number;
3231
- page: number;
3232
- limit: number;
3233
3653
  files: {
3234
3654
  createdAt: string;
3235
3655
  name: string;
@@ -3237,10 +3657,10 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3237
3657
  fileId: string;
3238
3658
  contentType: string;
3239
3659
  }[];
3240
- }, {
3241
- total: number;
3242
- page: number;
3243
3660
  limit: number;
3661
+ page: number;
3662
+ total: number;
3663
+ }, {
3244
3664
  files: {
3245
3665
  createdAt: string;
3246
3666
  name: string;
@@ -3248,6 +3668,9 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3248
3668
  fileId: string;
3249
3669
  contentType: string;
3250
3670
  }[];
3671
+ limit: number;
3672
+ page: number;
3673
+ total: number;
3251
3674
  }>;
3252
3675
  type ListFilesResponse = z.infer<typeof ListFilesResponseSchema>;
3253
3676
 
@@ -3270,6 +3693,7 @@ declare const RepositorySchema: z.ZodObject<{
3270
3693
  url: z.ZodString;
3271
3694
  createdAt: z.ZodString;
3272
3695
  updatedAt: z.ZodString;
3696
+ gitServerId: z.ZodString;
3273
3697
  }, "strip", z.ZodTypeAny, {
3274
3698
  id: string;
3275
3699
  createdAt: string;
@@ -3281,6 +3705,7 @@ declare const RepositorySchema: z.ZodObject<{
3281
3705
  fullName: string;
3282
3706
  defaultBranch: string;
3283
3707
  isPrivate: boolean;
3708
+ gitServerId: string;
3284
3709
  }, {
3285
3710
  id: string;
3286
3711
  createdAt: string;
@@ -3292,6 +3717,7 @@ declare const RepositorySchema: z.ZodObject<{
3292
3717
  fullName: string;
3293
3718
  defaultBranch: string;
3294
3719
  isPrivate: boolean;
3720
+ gitServerId: string;
3295
3721
  }>;
3296
3722
  type Repository = z.infer<typeof RepositorySchema>;
3297
3723
  /**
@@ -3309,6 +3735,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3309
3735
  url: z.ZodString;
3310
3736
  createdAt: z.ZodString;
3311
3737
  updatedAt: z.ZodString;
3738
+ gitServerId: z.ZodString;
3312
3739
  }, "strip", z.ZodTypeAny, {
3313
3740
  id: string;
3314
3741
  createdAt: string;
@@ -3320,6 +3747,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3320
3747
  fullName: string;
3321
3748
  defaultBranch: string;
3322
3749
  isPrivate: boolean;
3750
+ gitServerId: string;
3323
3751
  }, {
3324
3752
  id: string;
3325
3753
  createdAt: string;
@@ -3331,6 +3759,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3331
3759
  fullName: string;
3332
3760
  defaultBranch: string;
3333
3761
  isPrivate: boolean;
3762
+ gitServerId: string;
3334
3763
  }>, "many">;
3335
3764
  }, "strip", z.ZodTypeAny, {
3336
3765
  repositories: {
@@ -3344,6 +3773,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3344
3773
  fullName: string;
3345
3774
  defaultBranch: string;
3346
3775
  isPrivate: boolean;
3776
+ gitServerId: string;
3347
3777
  }[];
3348
3778
  }, {
3349
3779
  repositories: {
@@ -3357,6 +3787,7 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3357
3787
  fullName: string;
3358
3788
  defaultBranch: string;
3359
3789
  isPrivate: boolean;
3790
+ gitServerId: string;
3360
3791
  }[];
3361
3792
  }>;
3362
3793
  type ListRepositoriesResponse = z.infer<typeof ListRepositoriesResponseSchema>;
@@ -3375,6 +3806,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3375
3806
  url: z.ZodString;
3376
3807
  createdAt: z.ZodString;
3377
3808
  updatedAt: z.ZodString;
3809
+ gitServerId: z.ZodString;
3378
3810
  }, "strip", z.ZodTypeAny, {
3379
3811
  id: string;
3380
3812
  createdAt: string;
@@ -3386,6 +3818,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3386
3818
  fullName: string;
3387
3819
  defaultBranch: string;
3388
3820
  isPrivate: boolean;
3821
+ gitServerId: string;
3389
3822
  }, {
3390
3823
  id: string;
3391
3824
  createdAt: string;
@@ -3397,6 +3830,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3397
3830
  fullName: string;
3398
3831
  defaultBranch: string;
3399
3832
  isPrivate: boolean;
3833
+ gitServerId: string;
3400
3834
  }>;
3401
3835
  }, "strip", z.ZodTypeAny, {
3402
3836
  repository: {
@@ -3410,6 +3844,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3410
3844
  fullName: string;
3411
3845
  defaultBranch: string;
3412
3846
  isPrivate: boolean;
3847
+ gitServerId: string;
3413
3848
  };
3414
3849
  }, {
3415
3850
  repository: {
@@ -3423,6 +3858,7 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3423
3858
  fullName: string;
3424
3859
  defaultBranch: string;
3425
3860
  isPrivate: boolean;
3861
+ gitServerId: string;
3426
3862
  };
3427
3863
  }>;
3428
3864
  type GetRepositoryResponse = z.infer<typeof GetRepositoryResponseSchema>;
@@ -4373,8 +4809,8 @@ declare const ChargeTransactionSchema: z.ZodObject<{
4373
4809
  createdAt: z.ZodString;
4374
4810
  transactionType: z.ZodLiteral<"charge">;
4375
4811
  }, "strip", z.ZodTypeAny, {
4376
- type: "user_recharge" | "system_bonus" | "refund";
4377
4812
  id: string;
4813
+ type: "user_recharge" | "system_bonus" | "refund";
4378
4814
  createdAt: string;
4379
4815
  userId: string;
4380
4816
  creditsPackageId: string;
@@ -4387,8 +4823,8 @@ declare const ChargeTransactionSchema: z.ZodObject<{
4387
4823
  metadata?: any;
4388
4824
  packageName?: string | undefined;
4389
4825
  }, {
4390
- type: "user_recharge" | "system_bonus" | "refund";
4391
4826
  id: string;
4827
+ type: "user_recharge" | "system_bonus" | "refund";
4392
4828
  createdAt: string;
4393
4829
  userId: string;
4394
4830
  creditsPackageId: string;
@@ -4464,8 +4900,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4464
4900
  createdAt: z.ZodString;
4465
4901
  transactionType: z.ZodLiteral<"charge">;
4466
4902
  }, "strip", z.ZodTypeAny, {
4467
- type: "user_recharge" | "system_bonus" | "refund";
4468
4903
  id: string;
4904
+ type: "user_recharge" | "system_bonus" | "refund";
4469
4905
  createdAt: string;
4470
4906
  userId: string;
4471
4907
  creditsPackageId: string;
@@ -4478,8 +4914,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4478
4914
  metadata?: any;
4479
4915
  packageName?: string | undefined;
4480
4916
  }, {
4481
- type: "user_recharge" | "system_bonus" | "refund";
4482
4917
  id: string;
4918
+ type: "user_recharge" | "system_bonus" | "refund";
4483
4919
  createdAt: string;
4484
4920
  userId: string;
4485
4921
  creditsPackageId: string;
@@ -4574,8 +5010,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
4574
5010
  createdAt: z.ZodString;
4575
5011
  transactionType: z.ZodLiteral<"charge">;
4576
5012
  }, "strip", z.ZodTypeAny, {
4577
- type: "user_recharge" | "system_bonus" | "refund";
4578
5013
  id: string;
5014
+ type: "user_recharge" | "system_bonus" | "refund";
4579
5015
  createdAt: string;
4580
5016
  userId: string;
4581
5017
  creditsPackageId: string;
@@ -4588,8 +5024,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
4588
5024
  metadata?: any;
4589
5025
  packageName?: string | undefined;
4590
5026
  }, {
4591
- type: "user_recharge" | "system_bonus" | "refund";
4592
5027
  id: string;
5028
+ type: "user_recharge" | "system_bonus" | "refund";
4593
5029
  createdAt: string;
4594
5030
  userId: string;
4595
5031
  creditsPackageId: string;
@@ -4645,8 +5081,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
4645
5081
  }, "strip", z.ZodTypeAny, {
4646
5082
  total: number;
4647
5083
  transactions: ({
4648
- type: "user_recharge" | "system_bonus" | "refund";
4649
5084
  id: string;
5085
+ type: "user_recharge" | "system_bonus" | "refund";
4650
5086
  createdAt: string;
4651
5087
  userId: string;
4652
5088
  creditsPackageId: string;
@@ -4675,8 +5111,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
4675
5111
  }, {
4676
5112
  total: number;
4677
5113
  transactions: ({
4678
- type: "user_recharge" | "system_bonus" | "refund";
4679
5114
  id: string;
5115
+ type: "user_recharge" | "system_bonus" | "refund";
4680
5116
  createdAt: string;
4681
5117
  userId: string;
4682
5118
  creditsPackageId: string;
@@ -4840,8 +5276,8 @@ declare const GitServerSchema: z.ZodObject<{
4840
5276
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4841
5277
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4842
5278
  }, "strip", z.ZodTypeAny, {
4843
- type: string;
4844
5279
  id: string;
5280
+ type: string;
4845
5281
  createdAt: string;
4846
5282
  updatedAt: string;
4847
5283
  name: string;
@@ -4850,8 +5286,8 @@ declare const GitServerSchema: z.ZodObject<{
4850
5286
  apiUrl: string;
4851
5287
  oauthServerId: string | null;
4852
5288
  }, {
4853
- type: string;
4854
5289
  id: string;
5290
+ type: string;
4855
5291
  createdAt: string | Date;
4856
5292
  updatedAt: string | Date;
4857
5293
  name: string;
@@ -4875,8 +5311,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
4875
5311
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4876
5312
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4877
5313
  }, "strip", z.ZodTypeAny, {
4878
- type: string;
4879
5314
  id: string;
5315
+ type: string;
4880
5316
  createdAt: string;
4881
5317
  updatedAt: string;
4882
5318
  name: string;
@@ -4885,8 +5321,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
4885
5321
  apiUrl: string;
4886
5322
  oauthServerId: string | null;
4887
5323
  }, {
4888
- type: string;
4889
5324
  id: string;
5325
+ type: string;
4890
5326
  createdAt: string | Date;
4891
5327
  updatedAt: string | Date;
4892
5328
  name: string;
@@ -4910,8 +5346,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
4910
5346
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4911
5347
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4912
5348
  }, "strip", z.ZodTypeAny, {
4913
- type: string;
4914
5349
  id: string;
5350
+ type: string;
4915
5351
  createdAt: string;
4916
5352
  updatedAt: string;
4917
5353
  name: string;
@@ -4920,8 +5356,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
4920
5356
  apiUrl: string;
4921
5357
  oauthServerId: string | null;
4922
5358
  }, {
4923
- type: string;
4924
5359
  id: string;
5360
+ type: string;
4925
5361
  createdAt: string | Date;
4926
5362
  updatedAt: string | Date;
4927
5363
  name: string;
@@ -4987,14 +5423,17 @@ declare const MachineAliveEventSchema: z.ZodObject<{
4987
5423
  } & {
4988
5424
  machineId: z.ZodString;
4989
5425
  timestamp: z.ZodString;
5426
+ controlPort: z.ZodOptional<z.ZodNumber>;
4990
5427
  }, "strip", z.ZodTypeAny, {
4991
5428
  machineId: string;
4992
5429
  eventId: string;
4993
5430
  timestamp: string;
5431
+ controlPort?: number | undefined;
4994
5432
  }, {
4995
5433
  machineId: string;
4996
5434
  eventId: string;
4997
5435
  timestamp: string;
5436
+ controlPort?: number | undefined;
4998
5437
  }>;
4999
5438
  type MachineAliveEventData = z.infer<typeof MachineAliveEventSchema>;
5000
5439
  declare const ShutdownMachineSchema: z.ZodObject<{
@@ -5518,6 +5957,27 @@ declare const ChangeTaskTitleEventSchema: z.ZodObject<{
5518
5957
  eventId: string;
5519
5958
  }>;
5520
5959
  type ChangeTaskTitleEventData = z.infer<typeof ChangeTaskTitleEventSchema>;
5960
+ declare const TaskStateChangeEventSchema: z.ZodObject<{
5961
+ eventId: z.ZodString;
5962
+ } & {
5963
+ taskId: z.ZodString;
5964
+ chatId: z.ZodString;
5965
+ state: z.ZodString;
5966
+ updatedAt: z.ZodString;
5967
+ }, "strip", z.ZodTypeAny, {
5968
+ state: string;
5969
+ chatId: string;
5970
+ taskId: string;
5971
+ updatedAt: string;
5972
+ eventId: string;
5973
+ }, {
5974
+ state: string;
5975
+ chatId: string;
5976
+ taskId: string;
5977
+ updatedAt: string;
5978
+ eventId: string;
5979
+ }>;
5980
+ type TaskStateChangeEventData = z.infer<typeof TaskStateChangeEventSchema>;
5521
5981
  declare const CreditExhaustedEventSchema: z.ZodObject<{
5522
5982
  eventId: z.ZodString;
5523
5983
  }, "strip", z.ZodTypeAny, {
@@ -5641,21 +6101,17 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
5641
6101
  code: z.ZodString;
5642
6102
  message: z.ZodString;
5643
6103
  }, "strip", z.ZodTypeAny, {
5644
- message: string;
5645
6104
  code: string;
5646
- }, {
5647
6105
  message: string;
6106
+ }, {
5648
6107
  code: string;
6108
+ message: string;
5649
6109
  }>>;
5650
6110
  }, "strip", z.ZodTypeAny, {
5651
6111
  success: boolean;
5652
6112
  taskId: string;
5653
6113
  eventId: string;
5654
6114
  requestId: string;
5655
- error?: {
5656
- message: string;
5657
- code: string;
5658
- } | undefined;
5659
6115
  data?: {
5660
6116
  type: "file" | "directory";
5661
6117
  metadata: {
@@ -5674,16 +6130,16 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
5674
6130
  content?: string | undefined;
5675
6131
  encryptedContent?: string | undefined;
5676
6132
  } | undefined;
6133
+ error?: {
6134
+ code: string;
6135
+ message: string;
6136
+ } | undefined;
5677
6137
  notModified?: boolean | undefined;
5678
6138
  }, {
5679
6139
  success: boolean;
5680
6140
  taskId: string;
5681
6141
  eventId: string;
5682
6142
  requestId: string;
5683
- error?: {
5684
- message: string;
5685
- code: string;
5686
- } | undefined;
5687
6143
  data?: {
5688
6144
  type: "file" | "directory";
5689
6145
  metadata: {
@@ -5702,6 +6158,10 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
5702
6158
  content?: string | undefined;
5703
6159
  encryptedContent?: string | undefined;
5704
6160
  } | undefined;
6161
+ error?: {
6162
+ code: string;
6163
+ message: string;
6164
+ } | undefined;
5705
6165
  notModified?: boolean | undefined;
5706
6166
  }>;
5707
6167
  type WorkspaceFileResponseEventData = z.infer<typeof WorkspaceFileResponseSchema>;
@@ -5710,14 +6170,17 @@ declare const UpdateTaskAgentSessionIdEventSchema: z.ZodObject<{
5710
6170
  } & {
5711
6171
  taskId: z.ZodString;
5712
6172
  agentSessionId: z.ZodString;
6173
+ cwd: z.ZodOptional<z.ZodString>;
5713
6174
  }, "strip", z.ZodTypeAny, {
5714
6175
  taskId: string;
5715
6176
  agentSessionId: string;
5716
6177
  eventId: string;
6178
+ cwd?: string | undefined;
5717
6179
  }, {
5718
6180
  taskId: string;
5719
6181
  agentSessionId: string;
5720
6182
  eventId: string;
6183
+ cwd?: string | undefined;
5721
6184
  }>;
5722
6185
  type UpdateTaskAgentSessionIdEventData = z.infer<typeof UpdateTaskAgentSessionIdEventSchema>;
5723
6186
  declare const MergeRequestEventSchema: z.ZodObject<{
@@ -5791,14 +6254,14 @@ declare const SystemMessageSchema: z.ZodObject<{
5791
6254
  createdAt: z.ZodString;
5792
6255
  updatedAt: z.ZodString;
5793
6256
  }, "strip", z.ZodTypeAny, {
5794
- type: "direct" | "group";
5795
6257
  id: string;
6258
+ type: "direct" | "group";
5796
6259
  createdAt: string;
5797
6260
  updatedAt: string;
5798
6261
  owner: string;
5799
6262
  }, {
5800
- type: "direct" | "group";
5801
6263
  id: string;
6264
+ type: "direct" | "group";
5802
6265
  createdAt: string;
5803
6266
  updatedAt: string;
5804
6267
  owner: string;
@@ -5811,16 +6274,16 @@ declare const SystemMessageSchema: z.ZodObject<{
5811
6274
  createdAt: z.ZodString;
5812
6275
  updatedAt: z.ZodString;
5813
6276
  }, "strip", z.ZodTypeAny, {
5814
- type: "human" | "agent";
5815
6277
  id: string;
6278
+ type: "human" | "agent";
5816
6279
  createdAt: string;
5817
6280
  chatId: string;
5818
6281
  updatedAt: string;
5819
6282
  memberCode: string;
5820
6283
  role: string;
5821
6284
  }, {
5822
- type: "human" | "agent";
5823
6285
  id: string;
6286
+ type: "human" | "agent";
5824
6287
  createdAt: string;
5825
6288
  chatId: string;
5826
6289
  updatedAt: string;
@@ -5843,6 +6306,7 @@ declare const SystemMessageSchema: z.ZodObject<{
5843
6306
  url: z.ZodString;
5844
6307
  createdAt: z.ZodString;
5845
6308
  updatedAt: z.ZodString;
6309
+ gitServerId: z.ZodString;
5846
6310
  }, "strip", z.ZodTypeAny, {
5847
6311
  id: string;
5848
6312
  createdAt: string;
@@ -5854,6 +6318,7 @@ declare const SystemMessageSchema: z.ZodObject<{
5854
6318
  fullName: string;
5855
6319
  defaultBranch: string;
5856
6320
  isPrivate: boolean;
6321
+ gitServerId: string;
5857
6322
  }, {
5858
6323
  id: string;
5859
6324
  createdAt: string;
@@ -5865,6 +6330,7 @@ declare const SystemMessageSchema: z.ZodObject<{
5865
6330
  fullName: string;
5866
6331
  defaultBranch: string;
5867
6332
  isPrivate: boolean;
6333
+ gitServerId: string;
5868
6334
  }>, z.ZodObject<{
5869
6335
  taskId: z.ZodString;
5870
6336
  pullRequestNumber: z.ZodNumber;
@@ -5891,14 +6357,14 @@ declare const SystemMessageSchema: z.ZodObject<{
5891
6357
  }, "strip", z.ZodTypeAny, {
5892
6358
  type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
5893
6359
  data: {
5894
- type: "direct" | "group";
5895
6360
  id: string;
6361
+ type: "direct" | "group";
5896
6362
  createdAt: string;
5897
6363
  updatedAt: string;
5898
6364
  owner: string;
5899
6365
  } | {
5900
- type: "human" | "agent";
5901
6366
  id: string;
6367
+ type: "human" | "agent";
5902
6368
  createdAt: string;
5903
6369
  chatId: string;
5904
6370
  updatedAt: string;
@@ -5915,6 +6381,7 @@ declare const SystemMessageSchema: z.ZodObject<{
5915
6381
  fullName: string;
5916
6382
  defaultBranch: string;
5917
6383
  isPrivate: boolean;
6384
+ gitServerId: string;
5918
6385
  } | {
5919
6386
  id: string;
5920
6387
  } | {
@@ -5932,14 +6399,14 @@ declare const SystemMessageSchema: z.ZodObject<{
5932
6399
  }, {
5933
6400
  type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
5934
6401
  data: {
5935
- type: "direct" | "group";
5936
6402
  id: string;
6403
+ type: "direct" | "group";
5937
6404
  createdAt: string;
5938
6405
  updatedAt: string;
5939
6406
  owner: string;
5940
6407
  } | {
5941
- type: "human" | "agent";
5942
6408
  id: string;
6409
+ type: "human" | "agent";
5943
6410
  createdAt: string;
5944
6411
  chatId: string;
5945
6412
  updatedAt: string;
@@ -5956,6 +6423,7 @@ declare const SystemMessageSchema: z.ZodObject<{
5956
6423
  fullName: string;
5957
6424
  defaultBranch: string;
5958
6425
  isPrivate: boolean;
6426
+ gitServerId: string;
5959
6427
  } | {
5960
6428
  id: string;
5961
6429
  } | {
@@ -5972,7 +6440,7 @@ declare const SystemMessageSchema: z.ZodObject<{
5972
6440
  timestamp: string;
5973
6441
  }>;
5974
6442
  type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
5975
- type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | UpdateTaskAgentSessionIdEventData | TaskArtifactsUpdatedEventData | RequirePermissionData | RequirePermissionResponseData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
6443
+ type EventData = AppAliveEventData | ApiServerAliveEventData | MachineAliveEventData | ShutdownMachineData | WorkerInitializingEventData | WorkerReadyEventData | WorkerAliveEventData | WorkerExitEventData | WorkerRunningEventData | CreateTaskEventData | ResumeTaskEventData | CancelTaskEventData | StopTaskEventData | TaskMessageEventData | ChangeTaskTitleEventData | TaskStateChangeEventData | UpdateTaskAgentSessionIdEventData | TaskArtifactsUpdatedEventData | RequirePermissionData | RequirePermissionResponseData | MergeRequestEventData | SystemMessageEventData | CreditExhaustedEventData | WorkspaceFileRequestEventData | WorkspaceFileResponseEventData;
5976
6444
  type EventMap = {
5977
6445
  "app-alive": AppAliveEventData;
5978
6446
  "api-server-alive": ApiServerAliveEventData;
@@ -5988,6 +6456,7 @@ type EventMap = {
5988
6456
  "stop-task": StopTaskEventData;
5989
6457
  "task-message": TaskMessageEventData;
5990
6458
  "change-task-title": ChangeTaskTitleEventData;
6459
+ "task-state-change": TaskStateChangeEventData;
5991
6460
  "update-task-agent-session-id": UpdateTaskAgentSessionIdEventData;
5992
6461
  "task-artifacts-updated": TaskArtifactsUpdatedEventData;
5993
6462
  "require-permission": RequirePermissionData;
@@ -6463,5 +6932,5 @@ declare function encryptFileContent(fileContentBase64: string, dataKey: Uint8Arr
6463
6932
  */
6464
6933
  declare function decryptFileContent(encryptedContent: string, dataKey: Uint8Array): string | null;
6465
6934
 
6466
- export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MCPServerConfigSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, RequirePermissionResponseSchema, RequirePermissionSchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, SkillConfigSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskItemSchema, TaskMessageSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, loadAgentConfig, loadMcpServers, machineAuth, permissionResponseRequestSchema, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
6467
- export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LoadedMCPServer, LocalMachine, LogoutResponse, MCPServerConfig, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, RequirePermissionData, RequirePermissionResponseData, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, SkillConfig, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskItem, TaskMessageEventData, TaskState, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };
6935
+ export { AddChatMemberRequestSchema, AddChatMemberResponseSchema, AgentConfigValidationError, AgentError, AgentLoadError, AgentMetadataSchema, AgentNotFoundError, AgentSchema, AgentTypeSchema, ApiErrorSchema, ApiServerAliveEventSchema, AppAliveEventSchema, ApprovalStatusResponseSchema, ArchiveTaskRequestSchema, ArchiveTaskResponseSchema, BillingStatsResponseSchema, BranchSchema, CancelTaskRequestSchema, CancelTaskResponseSchema, ChangeTaskTitleEventSchema, ChargeTransactionSchema, ChatMemberInputSchema, ChatMemberSchema, ChatSchema, ChatTypeSchema, ChatWithMembersSchema, ClaudeConfigSchema, CloudJoinApprovalRequestSchema, CloudJoinRequestSchema, CloudJoinResultQuerySchema, CloudJoinStatusQuerySchema, CloudMachineSchema, CloudSchema, ConfirmUploadRequestSchema, ConfirmUploadResponseSchema, ConsumeTransactionSchema, CreateAgentRequestSchema, CreateAgentResponseSchema, CreateChatRequestSchema, CreateChatResponseSchema, CreateCloudRequestSchema, CreateCloudResponseSchema, CreateMergeRequestResponseSchema, CreateMergeRequestSchema, CreateOAuthServerRequestSchema, CreateOAuthServerResponseSchema, CreditExhaustedEventSchema, CreditsPackageSchema, DateSchema, DeleteAgentResponseSchema, DeleteOAuthServerResponseSchema, EventAckSchema, EventSchemaMap, FRAMEWORK_TYPES, FileItemSchema, FileStatsSchema, FileVisibilitySchema, FrameworkNotSupportedError, GetAgentResponseSchema, GetChatResponseSchema, GetGitServerResponseSchema, GetGitUrlQuerySchema, GetGitUrlResponseSchema, GetInstallUrlResponseSchema, GetOAuthServerResponseSchema, GetRepositoryResponseSchema, GetUploadUrlsRequestSchema, GetUploadUrlsResponseSchema, GitHubIssueListItemSchema, GitHubIssueSchema, GitServerSchema, IdSchema, ListAgentsResponseSchema, ListBranchesResponseSchema, ListChatMembersResponseSchema, ListChatTasksResponseSchema, ListChatsResponseSchema, ListFilesQuerySchema, ListFilesResponseSchema, ListGitServersResponseSchema, ListIssuesQuerySchema, ListIssuesResponseSchema, ListMachinesResponseSchema, ListOAuthServersPublicResponseSchema, ListOAuthServersQuerySchema, ListOAuthServersResponseSchema, ListPackagesQuerySchema, ListPackagesResponseSchema, ListRepositoriesResponseSchema, ListTasksRequestSchema, ListTasksResponseSchema, ListTransactionsQuerySchema, ListTransactionsResponseSchema, LocalMachineSchema, LogoutResponseSchema, MCPServerConfigSchema, MachineAliveEventSchema, MachineApprovalRequestSchema, MachineApprovalStatusQuerySchema, MachineAuthAuthorizedResponseSchema, MachineAuthRequestSchema, MachineAuthResultQuerySchema, MergeRequestEventSchema, MissingAgentFileError, OAuthAccountInfoSchema, OAuthBindCallbackResponseSchema, OAuthBindQuerySchema, OAuthBindResponseSchema, OAuthCallbackQuerySchema, OAuthCallbackResponseSchema, OAuthLoginQuerySchema, OAuthServerPublicSchema, OAuthServerSchema, OAuthUnbindResponseSchema, PaginatedResponseSchema, PermissionResponseRequestSchema, PermissionResponseResponseSchema, ProjectDirectoryResponseSchema, ProjectEntrySchema, QueryEventsRequestSchema, RechargeResponseSchema, RemoveChatMemberRequestSchema, RepositorySchema, RequirePermissionResponseSchema, RequirePermissionSchema, ResetSecretRequestSchema, ResetSecretResponseSchema, ResumeTaskRequestSchema, ResumeTaskResponseSchema, ShutdownMachineSchema, SignatureAuthRequestSchema, SignatureAuthResponseSchema, SimpleSuccessSchema, SkillConfigSchema, StartTaskRequestSchema, StartTaskResponseSchema, StatsQuerySchema, StopTaskRequestSchema, StopTaskResponseSchema, StopTaskSchema, SyncCloudMachineResponseSchema, SyncLocalMachineResponseSchema, SyncMachineRequestSchema, SystemMessageSchema, TaskArtifactsUpdatedEventSchema, TaskItemSchema, TaskMessageSchema, TaskStateChangeEventSchema, TaskTransactionsResponseSchema, ToggleOAuthServerRequestSchema, ToggleOAuthServerResponseSchema, TransactionSchema, UnarchiveTaskRequestSchema, UnarchiveTaskResponseSchema, UpdateAgentRequestSchema, UpdateAgentResponseSchema, UpdateOAuthServerRequestSchema, UpdateOAuthServerResponseSchema, UpdateTaskAgentSessionIdEventSchema, UploadUrlResultSchema, UserBalanceResponseSchema, UserBasicInfoSchema, UserProfileResponseSchema, UserWithOAuthAccountsSchema, WorkerAliveEventSchema, WorkerExitSchema, WorkerInitializingSchema, WorkerReadySchema, WorkerRunningSchema, WorkspaceFileRequestSchema, WorkspaceFileResponseSchema, assertAgentExists, assertFileExists, baseTaskSchema, cancelTaskRequestSchema, cancelTaskSchema, createEventId, createKeyPair, createKeyPairWithUit8Array, createMergeRequestSchema, createTaskSchema, decodeBase64, decryptAES, decryptFileContent, decryptMachineEncryptionKey, decryptSdkMessage, decryptWithEphemeralKey, encodeBase64, encodeBase64Url, encryptAES, encryptFileContent, encryptMachineEncryptionKey, encryptSdkMessage, encryptWithEphemeralKey, generateAESKey, generateAESKeyBase64, getAgentContext, getRandomBytes, loadAgentConfig, loadMcpServers, machineAuth, permissionResponseRequestSchema, resumeTaskRequestSchema, resumeTaskSchema, setAgentContext, startTaskSchema, stopTaskRequestSchema, userAuth, validateAgentDirectory, validateFrameworkDirectory, workerAuth, workerTaskEvents };
6936
+ export type { AddChatMemberRequest, AddChatMemberResponse, Agent, AgentConfig, AgentContext, AgentMetadata, AgentType, ApiError, ApiServerAliveEventData, AppAliveEventData, ApprovalStatusResponse, ArchiveTaskRequest, ArchiveTaskResponse, AuthPayload, BillingStatsResponse, Branch, CancelTaskEventData, CancelTaskRequest, CancelTaskResponse, ChangeTaskTitleEventData, ChargeTransaction, Chat, ChatMember, ChatMemberInput, ChatType, ChatWithMembers, ClaudeAgentConfig, ClientType, Cloud, CloudJoinApprovalRequest, CloudJoinRequest, CloudJoinResultQuery, CloudJoinStatusQuery, CloudMachine, ConfirmUploadRequest, ConfirmUploadResponse, ConsumeTransaction, CreateAgentRequest, CreateAgentResponse, CreateChatRequest, CreateChatResponse, CreateCloudRequest, CreateCloudResponse, CreateMergeRequestRequest, CreateMergeRequestResponse, CreateOAuthServerRequest, CreateOAuthServerResponse, CreateTaskEventData, CreditExhaustedEventData, CreditsPackage, DeleteAgentResponse, DeleteOAuthServerResponse, EventAckData, EventData, EventMap, EventName, FileItem, FileStats, FileVisibility, FrameworkType, GetAgentResponse, GetChatResponse, GetGitServerResponse, GetGitUrlQuery, GetGitUrlResponse, GetInstallUrlResponse, GetOAuthServerResponse, GetRepositoryResponse, GetUploadUrlsRequest, GetUploadUrlsResponse, GitHubIssue, GitHubIssueListItem, GitServer, ListAgentsResponse, ListBranchesResponse, ListChatMembersResponse, ListChatTasksResponse, ListChatsResponse, ListFilesQuery, ListFilesResponse, ListGitServersResponse, ListIssuesQuery, ListIssuesResponse, ListMachinesResponse, ListOAuthServersPublicResponse, ListOAuthServersQuery, ListOAuthServersResponse, ListPackagesQuery, ListPackagesResponse, ListRepositoriesResponse, ListTasksRequest, ListTasksResponse, ListTransactionsQuery, ListTransactionsResponse, LoadAgentOptions, LoadedMCPServer, LocalMachine, LogoutResponse, MCPServerConfig, MachineAliveEventData, MachineApprovalRequest, MachineApprovalStatusQuery, MachineAuthAuthorizedResponse, MachineAuthRequest, MachineAuthResultQuery, MachineEncryptionKey, MergeRequestEventData, OAuthAccountInfo, OAuthBindCallbackResponse, OAuthBindQuery, OAuthBindResponse, OAuthCallbackQuery, OAuthCallbackResponse, OAuthLoginQuery, OAuthServer, OAuthServerPublic, OAuthUnbindResponse, PermissionResponseRequest, PermissionResponseResponse, PrStateChangedData, ProjectDirectoryResponse, ProjectEntry, QueryEventsRequest, QueryEventsResponse, RechargeResponse, RemoveChatMemberRequest, Repository, RepositoryInitHookInput, RequirePermissionData, RequirePermissionResponseData, ResetSecretRequest, ResetSecretResponse, ResumeTaskEventData, ResumeTaskRequest, ResumeTaskResponse, ShutdownMachineData, SignatureAuthRequest, SignatureAuthResponse, SimpleSuccess, SkillConfig, StartTaskRequest, StartTaskResponse, StatsQuery, StopTaskEventData, StopTaskRequest, StopTaskResponse, SyncCloudMachineResponse, SyncLocalMachineResponse, SyncMachineRequest, SystemMessageEventData, SystemMessageType, TaskArtifactsUpdatedEventData, TaskEvent, TaskItem, TaskMessageEventData, TaskState, TaskStateChangeEventData, TaskTransactionsResponse, ToggleOAuthServerRequest, ToggleOAuthServerResponse, Transaction, UnarchiveTaskRequest, UnarchiveTaskResponse, UpdateAgentRequest, UpdateAgentResponse, UpdateOAuthServerRequest, UpdateOAuthServerResponse, UpdateTaskAgentSessionIdEventData, UploadUrlResult, UserBalanceResponse, UserBasicInfo, UserProfileResponse, UserWithOAuthAccounts, ValidationResult, WorkerAliveEventData, WorkerExitEventData, WorkerInitializingEventData, WorkerReadyEventData, WorkerRunningEventData, WorkerTaskEvent, WorkspaceFileRequestEventData, WorkspaceFileResponseEventData };