@agentrix/shared 1.0.3 → 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
  /**
@@ -277,11 +277,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
277
277
  avatarUrl: string;
278
278
  }>, "many">>;
279
279
  }, "strip", z.ZodTypeAny, {
280
- encryptedSecret: string;
281
280
  id: string;
282
281
  username: string;
283
282
  email: string | null;
284
283
  avatar: string | null;
284
+ encryptedSecret: string;
285
285
  secretSalt: string;
286
286
  createdAt: string;
287
287
  oauthAccounts?: {
@@ -291,11 +291,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
291
291
  avatarUrl: string;
292
292
  }[] | undefined;
293
293
  }, {
294
- encryptedSecret: string;
295
294
  id: string;
296
295
  username: string;
297
296
  email: string | null;
298
297
  avatar: string | null;
298
+ encryptedSecret: string;
299
299
  secretSalt: string;
300
300
  createdAt: string;
301
301
  oauthAccounts?: {
@@ -307,11 +307,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
307
307
  }>;
308
308
  }, "strip", z.ZodTypeAny, {
309
309
  user: {
310
- encryptedSecret: string;
311
310
  id: string;
312
311
  username: string;
313
312
  email: string | null;
314
313
  avatar: string | null;
314
+ encryptedSecret: string;
315
315
  secretSalt: string;
316
316
  createdAt: string;
317
317
  oauthAccounts?: {
@@ -323,11 +323,11 @@ declare const UserProfileResponseSchema: z.ZodObject<{
323
323
  };
324
324
  }, {
325
325
  user: {
326
- encryptedSecret: string;
327
326
  id: string;
328
327
  username: string;
329
328
  email: string | null;
330
329
  avatar: string | null;
330
+ encryptedSecret: string;
331
331
  secretSalt: string;
332
332
  createdAt: string;
333
333
  oauthAccounts?: {
@@ -599,13 +599,13 @@ declare const MachineAuthAuthorizedResponseSchema: z.ZodObject<{
599
599
  token: z.ZodString;
600
600
  content: z.ZodString;
601
601
  }, "strip", z.ZodTypeAny, {
602
- token: string;
603
602
  id: string;
603
+ token: string;
604
604
  state: "authorized";
605
605
  content: string;
606
606
  }, {
607
- token: string;
608
607
  id: string;
608
+ token: string;
609
609
  state: "authorized";
610
610
  content: string;
611
611
  }>;
@@ -1008,6 +1008,26 @@ declare const TaskItemSchema: z.ZodObject<{
1008
1008
  } | null;
1009
1009
  }>;
1010
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>;
1011
1031
  /**
1012
1032
  * GET /v1/tasks - Response schema
1013
1033
  */
@@ -1124,6 +1144,8 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1124
1144
  }[];
1125
1145
  } | null;
1126
1146
  }>, "many">;
1147
+ nextCursor: z.ZodNullable<z.ZodString>;
1148
+ hasMore: z.ZodBoolean;
1127
1149
  }, "strip", z.ZodTypeAny, {
1128
1150
  tasks: {
1129
1151
  id: string;
@@ -1155,6 +1177,8 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1155
1177
  }[];
1156
1178
  } | null;
1157
1179
  }[];
1180
+ nextCursor: string | null;
1181
+ hasMore: boolean;
1158
1182
  }, {
1159
1183
  tasks: {
1160
1184
  id: string;
@@ -1186,6 +1210,8 @@ declare const ListTasksResponseSchema: z.ZodObject<{
1186
1210
  }[];
1187
1211
  } | null;
1188
1212
  }[];
1213
+ nextCursor: string | null;
1214
+ hasMore: boolean;
1189
1215
  }>;
1190
1216
  type ListTasksResponse = z.infer<typeof ListTasksResponseSchema>;
1191
1217
  /**
@@ -1544,6 +1570,382 @@ declare const CreateMergeRequestResponseSchema: z.ZodObject<{
1544
1570
  reason?: string | undefined;
1545
1571
  }>;
1546
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>;
1547
1949
 
1548
1950
  /**
1549
1951
  * Chat HTTP request/response schemas
@@ -1562,16 +1964,16 @@ declare const ChatMemberSchema: z.ZodObject<{
1562
1964
  createdAt: z.ZodString;
1563
1965
  updatedAt: z.ZodString;
1564
1966
  }, "strip", z.ZodTypeAny, {
1565
- type: "human" | "agent";
1566
1967
  id: string;
1968
+ type: "human" | "agent";
1567
1969
  createdAt: string;
1568
1970
  chatId: string;
1569
1971
  updatedAt: string;
1570
1972
  memberCode: string;
1571
1973
  role: string;
1572
1974
  }, {
1573
- type: "human" | "agent";
1574
1975
  id: string;
1976
+ type: "human" | "agent";
1575
1977
  createdAt: string;
1576
1978
  chatId: string;
1577
1979
  updatedAt: string;
@@ -1594,14 +1996,14 @@ declare const ChatSchema: z.ZodObject<{
1594
1996
  createdAt: z.ZodString;
1595
1997
  updatedAt: z.ZodString;
1596
1998
  }, "strip", z.ZodTypeAny, {
1597
- type: "direct" | "group";
1598
1999
  id: string;
2000
+ type: "direct" | "group";
1599
2001
  createdAt: string;
1600
2002
  updatedAt: string;
1601
2003
  owner: string;
1602
2004
  }, {
1603
- type: "direct" | "group";
1604
2005
  id: string;
2006
+ type: "direct" | "group";
1605
2007
  createdAt: string;
1606
2008
  updatedAt: string;
1607
2009
  owner: string;
@@ -1626,16 +2028,16 @@ declare const ChatWithMembersSchema: z.ZodObject<{
1626
2028
  createdAt: z.ZodString;
1627
2029
  updatedAt: z.ZodString;
1628
2030
  }, "strip", z.ZodTypeAny, {
1629
- type: "human" | "agent";
1630
2031
  id: string;
2032
+ type: "human" | "agent";
1631
2033
  createdAt: string;
1632
2034
  chatId: string;
1633
2035
  updatedAt: string;
1634
2036
  memberCode: string;
1635
2037
  role: string;
1636
2038
  }, {
1637
- type: "human" | "agent";
1638
2039
  id: string;
2040
+ type: "human" | "agent";
1639
2041
  createdAt: string;
1640
2042
  chatId: string;
1641
2043
  updatedAt: string;
@@ -1643,14 +2045,14 @@ declare const ChatWithMembersSchema: z.ZodObject<{
1643
2045
  role: string;
1644
2046
  }>, "many">;
1645
2047
  }, "strip", z.ZodTypeAny, {
1646
- type: "direct" | "group";
1647
2048
  id: string;
2049
+ type: "direct" | "group";
1648
2050
  createdAt: string;
1649
2051
  updatedAt: string;
1650
2052
  owner: string;
1651
2053
  members: {
1652
- type: "human" | "agent";
1653
2054
  id: string;
2055
+ type: "human" | "agent";
1654
2056
  createdAt: string;
1655
2057
  chatId: string;
1656
2058
  updatedAt: string;
@@ -1658,14 +2060,14 @@ declare const ChatWithMembersSchema: z.ZodObject<{
1658
2060
  role: string;
1659
2061
  }[];
1660
2062
  }, {
1661
- type: "direct" | "group";
1662
2063
  id: string;
2064
+ type: "direct" | "group";
1663
2065
  createdAt: string;
1664
2066
  updatedAt: string;
1665
2067
  owner: string;
1666
2068
  members: {
1667
- type: "human" | "agent";
1668
2069
  id: string;
2070
+ type: "human" | "agent";
1669
2071
  createdAt: string;
1670
2072
  chatId: string;
1671
2073
  updatedAt: string;
@@ -1736,16 +2138,16 @@ declare const CreateChatResponseSchema: z.ZodObject<{
1736
2138
  createdAt: z.ZodString;
1737
2139
  updatedAt: z.ZodString;
1738
2140
  }, "strip", z.ZodTypeAny, {
1739
- type: "human" | "agent";
1740
2141
  id: string;
2142
+ type: "human" | "agent";
1741
2143
  createdAt: string;
1742
2144
  chatId: string;
1743
2145
  updatedAt: string;
1744
2146
  memberCode: string;
1745
2147
  role: string;
1746
2148
  }, {
1747
- type: "human" | "agent";
1748
2149
  id: string;
2150
+ type: "human" | "agent";
1749
2151
  createdAt: string;
1750
2152
  chatId: string;
1751
2153
  updatedAt: string;
@@ -1753,14 +2155,14 @@ declare const CreateChatResponseSchema: z.ZodObject<{
1753
2155
  role: string;
1754
2156
  }>, "many">;
1755
2157
  }, "strip", z.ZodTypeAny, {
1756
- type: "direct" | "group";
1757
2158
  id: string;
2159
+ type: "direct" | "group";
1758
2160
  createdAt: string;
1759
2161
  updatedAt: string;
1760
2162
  owner: string;
1761
2163
  members: {
1762
- type: "human" | "agent";
1763
2164
  id: string;
2165
+ type: "human" | "agent";
1764
2166
  createdAt: string;
1765
2167
  chatId: string;
1766
2168
  updatedAt: string;
@@ -1768,14 +2170,14 @@ declare const CreateChatResponseSchema: z.ZodObject<{
1768
2170
  role: string;
1769
2171
  }[];
1770
2172
  }, {
1771
- type: "direct" | "group";
1772
2173
  id: string;
2174
+ type: "direct" | "group";
1773
2175
  createdAt: string;
1774
2176
  updatedAt: string;
1775
2177
  owner: string;
1776
2178
  members: {
1777
- type: "human" | "agent";
1778
2179
  id: string;
2180
+ type: "human" | "agent";
1779
2181
  createdAt: string;
1780
2182
  chatId: string;
1781
2183
  updatedAt: string;
@@ -1804,16 +2206,16 @@ declare const ListChatsResponseSchema: z.ZodObject<{
1804
2206
  createdAt: z.ZodString;
1805
2207
  updatedAt: z.ZodString;
1806
2208
  }, "strip", z.ZodTypeAny, {
1807
- type: "human" | "agent";
1808
2209
  id: string;
2210
+ type: "human" | "agent";
1809
2211
  createdAt: string;
1810
2212
  chatId: string;
1811
2213
  updatedAt: string;
1812
2214
  memberCode: string;
1813
2215
  role: string;
1814
2216
  }, {
1815
- type: "human" | "agent";
1816
2217
  id: string;
2218
+ type: "human" | "agent";
1817
2219
  createdAt: string;
1818
2220
  chatId: string;
1819
2221
  updatedAt: string;
@@ -1821,14 +2223,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
1821
2223
  role: string;
1822
2224
  }>, "many">;
1823
2225
  }, "strip", z.ZodTypeAny, {
1824
- type: "direct" | "group";
1825
2226
  id: string;
2227
+ type: "direct" | "group";
1826
2228
  createdAt: string;
1827
2229
  updatedAt: string;
1828
2230
  owner: string;
1829
2231
  members: {
1830
- type: "human" | "agent";
1831
2232
  id: string;
2233
+ type: "human" | "agent";
1832
2234
  createdAt: string;
1833
2235
  chatId: string;
1834
2236
  updatedAt: string;
@@ -1836,14 +2238,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
1836
2238
  role: string;
1837
2239
  }[];
1838
2240
  }, {
1839
- type: "direct" | "group";
1840
2241
  id: string;
2242
+ type: "direct" | "group";
1841
2243
  createdAt: string;
1842
2244
  updatedAt: string;
1843
2245
  owner: string;
1844
2246
  members: {
1845
- type: "human" | "agent";
1846
2247
  id: string;
2248
+ type: "human" | "agent";
1847
2249
  createdAt: string;
1848
2250
  chatId: string;
1849
2251
  updatedAt: string;
@@ -1853,14 +2255,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
1853
2255
  }>, "many">;
1854
2256
  }, "strip", z.ZodTypeAny, {
1855
2257
  chats: {
1856
- type: "direct" | "group";
1857
2258
  id: string;
2259
+ type: "direct" | "group";
1858
2260
  createdAt: string;
1859
2261
  updatedAt: string;
1860
2262
  owner: string;
1861
2263
  members: {
1862
- type: "human" | "agent";
1863
2264
  id: string;
2265
+ type: "human" | "agent";
1864
2266
  createdAt: string;
1865
2267
  chatId: string;
1866
2268
  updatedAt: string;
@@ -1870,14 +2272,14 @@ declare const ListChatsResponseSchema: z.ZodObject<{
1870
2272
  }[];
1871
2273
  }, {
1872
2274
  chats: {
1873
- type: "direct" | "group";
1874
2275
  id: string;
2276
+ type: "direct" | "group";
1875
2277
  createdAt: string;
1876
2278
  updatedAt: string;
1877
2279
  owner: string;
1878
2280
  members: {
1879
- type: "human" | "agent";
1880
2281
  id: string;
2282
+ type: "human" | "agent";
1881
2283
  createdAt: string;
1882
2284
  chatId: string;
1883
2285
  updatedAt: string;
@@ -1906,16 +2308,16 @@ declare const GetChatResponseSchema: z.ZodObject<{
1906
2308
  createdAt: z.ZodString;
1907
2309
  updatedAt: z.ZodString;
1908
2310
  }, "strip", z.ZodTypeAny, {
1909
- type: "human" | "agent";
1910
2311
  id: string;
2312
+ type: "human" | "agent";
1911
2313
  createdAt: string;
1912
2314
  chatId: string;
1913
2315
  updatedAt: string;
1914
2316
  memberCode: string;
1915
2317
  role: string;
1916
2318
  }, {
1917
- type: "human" | "agent";
1918
2319
  id: string;
2320
+ type: "human" | "agent";
1919
2321
  createdAt: string;
1920
2322
  chatId: string;
1921
2323
  updatedAt: string;
@@ -1923,14 +2325,14 @@ declare const GetChatResponseSchema: z.ZodObject<{
1923
2325
  role: string;
1924
2326
  }>, "many">;
1925
2327
  }, "strip", z.ZodTypeAny, {
1926
- type: "direct" | "group";
1927
2328
  id: string;
2329
+ type: "direct" | "group";
1928
2330
  createdAt: string;
1929
2331
  updatedAt: string;
1930
2332
  owner: string;
1931
2333
  members: {
1932
- type: "human" | "agent";
1933
2334
  id: string;
2335
+ type: "human" | "agent";
1934
2336
  createdAt: string;
1935
2337
  chatId: string;
1936
2338
  updatedAt: string;
@@ -1938,14 +2340,14 @@ declare const GetChatResponseSchema: z.ZodObject<{
1938
2340
  role: string;
1939
2341
  }[];
1940
2342
  }, {
1941
- type: "direct" | "group";
1942
2343
  id: string;
2344
+ type: "direct" | "group";
1943
2345
  createdAt: string;
1944
2346
  updatedAt: string;
1945
2347
  owner: string;
1946
2348
  members: {
1947
- type: "human" | "agent";
1948
2349
  id: string;
2350
+ type: "human" | "agent";
1949
2351
  createdAt: string;
1950
2352
  chatId: string;
1951
2353
  updatedAt: string;
@@ -1967,16 +2369,16 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
1967
2369
  createdAt: z.ZodString;
1968
2370
  updatedAt: z.ZodString;
1969
2371
  }, "strip", z.ZodTypeAny, {
1970
- type: "human" | "agent";
1971
2372
  id: string;
2373
+ type: "human" | "agent";
1972
2374
  createdAt: string;
1973
2375
  chatId: string;
1974
2376
  updatedAt: string;
1975
2377
  memberCode: string;
1976
2378
  role: string;
1977
2379
  }, {
1978
- type: "human" | "agent";
1979
2380
  id: string;
2381
+ type: "human" | "agent";
1980
2382
  createdAt: string;
1981
2383
  chatId: string;
1982
2384
  updatedAt: string;
@@ -1985,8 +2387,8 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
1985
2387
  }>, "many">;
1986
2388
  }, "strip", z.ZodTypeAny, {
1987
2389
  members: {
1988
- type: "human" | "agent";
1989
2390
  id: string;
2391
+ type: "human" | "agent";
1990
2392
  createdAt: string;
1991
2393
  chatId: string;
1992
2394
  updatedAt: string;
@@ -1995,8 +2397,8 @@ declare const ListChatMembersResponseSchema: z.ZodObject<{
1995
2397
  }[];
1996
2398
  }, {
1997
2399
  members: {
1998
- type: "human" | "agent";
1999
2400
  id: string;
2401
+ type: "human" | "agent";
2000
2402
  createdAt: string;
2001
2403
  chatId: string;
2002
2404
  updatedAt: string;
@@ -2045,16 +2447,16 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
2045
2447
  createdAt: z.ZodString;
2046
2448
  updatedAt: z.ZodString;
2047
2449
  }, "strip", z.ZodTypeAny, {
2048
- type: "human" | "agent";
2049
2450
  id: string;
2451
+ type: "human" | "agent";
2050
2452
  createdAt: string;
2051
2453
  chatId: string;
2052
2454
  updatedAt: string;
2053
2455
  memberCode: string;
2054
2456
  role: string;
2055
2457
  }, {
2056
- type: "human" | "agent";
2057
2458
  id: string;
2459
+ type: "human" | "agent";
2058
2460
  createdAt: string;
2059
2461
  chatId: string;
2060
2462
  updatedAt: string;
@@ -2063,8 +2465,8 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
2063
2465
  }>, "many">;
2064
2466
  }, "strip", z.ZodTypeAny, {
2065
2467
  members: {
2066
- type: "human" | "agent";
2067
2468
  id: string;
2469
+ type: "human" | "agent";
2068
2470
  createdAt: string;
2069
2471
  chatId: string;
2070
2472
  updatedAt: string;
@@ -2073,8 +2475,8 @@ declare const AddChatMemberResponseSchema: z.ZodObject<{
2073
2475
  }[];
2074
2476
  }, {
2075
2477
  members: {
2076
- type: "human" | "agent";
2077
2478
  id: string;
2479
+ type: "human" | "agent";
2078
2480
  createdAt: string;
2079
2481
  chatId: string;
2080
2482
  updatedAt: string;
@@ -2323,10 +2725,10 @@ declare const AgentSchema: z.ZodObject<{
2323
2725
  supportLocal: z.ZodBoolean;
2324
2726
  enable: z.ZodBoolean;
2325
2727
  }, "strip", z.ZodTypeAny, {
2326
- type: "claude" | "codex";
2327
- signature: string | null;
2328
2728
  id: string;
2329
2729
  avatar: string | null;
2730
+ type: "claude" | "codex";
2731
+ signature: string | null;
2330
2732
  userId: string;
2331
2733
  name: string;
2332
2734
  description: string | null;
@@ -2338,10 +2740,10 @@ declare const AgentSchema: z.ZodObject<{
2338
2740
  supportLocal: boolean;
2339
2741
  enable: boolean;
2340
2742
  }, {
2341
- type: "claude" | "codex";
2342
- signature: string | null;
2343
2743
  id: string;
2344
2744
  avatar: string | null;
2745
+ type: "claude" | "codex";
2746
+ signature: string | null;
2345
2747
  userId: string;
2346
2748
  name: string;
2347
2749
  description: string | null;
@@ -2374,10 +2776,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2374
2776
  supportLocal: z.ZodBoolean;
2375
2777
  enable: z.ZodBoolean;
2376
2778
  }, "strip", z.ZodTypeAny, {
2377
- type: "claude" | "codex";
2378
- signature: string | null;
2379
2779
  id: string;
2380
2780
  avatar: string | null;
2781
+ type: "claude" | "codex";
2782
+ signature: string | null;
2381
2783
  userId: string;
2382
2784
  name: string;
2383
2785
  description: string | null;
@@ -2389,10 +2791,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2389
2791
  supportLocal: boolean;
2390
2792
  enable: boolean;
2391
2793
  }, {
2392
- type: "claude" | "codex";
2393
- signature: string | null;
2394
2794
  id: string;
2395
2795
  avatar: string | null;
2796
+ type: "claude" | "codex";
2797
+ signature: string | null;
2396
2798
  userId: string;
2397
2799
  name: string;
2398
2800
  description: string | null;
@@ -2406,10 +2808,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2406
2808
  }>, "many">;
2407
2809
  }, "strip", z.ZodTypeAny, {
2408
2810
  agents: {
2409
- type: "claude" | "codex";
2410
- signature: string | null;
2411
2811
  id: string;
2412
2812
  avatar: string | null;
2813
+ type: "claude" | "codex";
2814
+ signature: string | null;
2413
2815
  userId: string;
2414
2816
  name: string;
2415
2817
  description: string | null;
@@ -2423,10 +2825,10 @@ declare const ListAgentsResponseSchema: z.ZodObject<{
2423
2825
  }[];
2424
2826
  }, {
2425
2827
  agents: {
2426
- type: "claude" | "codex";
2427
- signature: string | null;
2428
2828
  id: string;
2429
2829
  avatar: string | null;
2830
+ type: "claude" | "codex";
2831
+ signature: string | null;
2430
2832
  userId: string;
2431
2833
  name: string;
2432
2834
  description: string | null;
@@ -2459,10 +2861,10 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2459
2861
  supportLocal: z.ZodBoolean;
2460
2862
  enable: z.ZodBoolean;
2461
2863
  }, "strip", z.ZodTypeAny, {
2462
- type: "claude" | "codex";
2463
- signature: string | null;
2464
2864
  id: string;
2465
2865
  avatar: string | null;
2866
+ type: "claude" | "codex";
2867
+ signature: string | null;
2466
2868
  userId: string;
2467
2869
  name: string;
2468
2870
  description: string | null;
@@ -2474,10 +2876,10 @@ declare const GetAgentResponseSchema: z.ZodObject<{
2474
2876
  supportLocal: boolean;
2475
2877
  enable: boolean;
2476
2878
  }, {
2477
- type: "claude" | "codex";
2478
- signature: string | null;
2479
2879
  id: string;
2480
2880
  avatar: string | null;
2881
+ type: "claude" | "codex";
2882
+ signature: string | null;
2481
2883
  userId: string;
2482
2884
  name: string;
2483
2885
  description: string | null;
@@ -2509,15 +2911,15 @@ declare const CreateAgentRequestSchema: z.ZodObject<{
2509
2911
  guildMsg: string;
2510
2912
  placeholderMsg: string;
2511
2913
  supportLocal: boolean;
2512
- signature?: string | undefined;
2513
2914
  avatar?: string | undefined;
2915
+ signature?: string | undefined;
2514
2916
  description?: string | undefined;
2515
2917
  gitRepoId?: string | undefined;
2516
2918
  }, {
2517
2919
  type: "claude" | "codex";
2518
2920
  name: string;
2519
- signature?: string | undefined;
2520
2921
  avatar?: string | undefined;
2922
+ signature?: string | undefined;
2521
2923
  description?: string | undefined;
2522
2924
  guildMsg?: string | undefined;
2523
2925
  placeholderMsg?: string | undefined;
@@ -2544,10 +2946,10 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
2544
2946
  supportLocal: z.ZodBoolean;
2545
2947
  enable: z.ZodBoolean;
2546
2948
  }, "strip", z.ZodTypeAny, {
2547
- type: "claude" | "codex";
2548
- signature: string | null;
2549
2949
  id: string;
2550
2950
  avatar: string | null;
2951
+ type: "claude" | "codex";
2952
+ signature: string | null;
2551
2953
  userId: string;
2552
2954
  name: string;
2553
2955
  description: string | null;
@@ -2559,10 +2961,10 @@ declare const CreateAgentResponseSchema: z.ZodObject<{
2559
2961
  supportLocal: boolean;
2560
2962
  enable: boolean;
2561
2963
  }, {
2562
- type: "claude" | "codex";
2563
- signature: string | null;
2564
2964
  id: string;
2565
2965
  avatar: string | null;
2966
+ type: "claude" | "codex";
2967
+ signature: string | null;
2566
2968
  userId: string;
2567
2969
  name: string;
2568
2970
  description: string | null;
@@ -2589,9 +2991,9 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
2589
2991
  gitRepoId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2590
2992
  supportLocal: z.ZodOptional<z.ZodBoolean>;
2591
2993
  }, "strip", z.ZodTypeAny, {
2994
+ avatar?: string | null | undefined;
2592
2995
  type?: "claude" | "codex" | undefined;
2593
2996
  signature?: string | null | undefined;
2594
- avatar?: string | null | undefined;
2595
2997
  name?: string | undefined;
2596
2998
  description?: string | null | undefined;
2597
2999
  guildMsg?: string | undefined;
@@ -2599,9 +3001,9 @@ declare const UpdateAgentRequestSchema: z.ZodObject<{
2599
3001
  gitRepoId?: string | null | undefined;
2600
3002
  supportLocal?: boolean | undefined;
2601
3003
  }, {
3004
+ avatar?: string | null | undefined;
2602
3005
  type?: "claude" | "codex" | undefined;
2603
3006
  signature?: string | null | undefined;
2604
- avatar?: string | null | undefined;
2605
3007
  name?: string | undefined;
2606
3008
  description?: string | null | undefined;
2607
3009
  guildMsg?: string | undefined;
@@ -2629,10 +3031,10 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
2629
3031
  supportLocal: z.ZodBoolean;
2630
3032
  enable: z.ZodBoolean;
2631
3033
  }, "strip", z.ZodTypeAny, {
2632
- type: "claude" | "codex";
2633
- signature: string | null;
2634
3034
  id: string;
2635
3035
  avatar: string | null;
3036
+ type: "claude" | "codex";
3037
+ signature: string | null;
2636
3038
  userId: string;
2637
3039
  name: string;
2638
3040
  description: string | null;
@@ -2644,10 +3046,10 @@ declare const UpdateAgentResponseSchema: z.ZodObject<{
2644
3046
  supportLocal: boolean;
2645
3047
  enable: boolean;
2646
3048
  }, {
2647
- type: "claude" | "codex";
2648
- signature: string | null;
2649
3049
  id: string;
2650
3050
  avatar: string | null;
3051
+ type: "claude" | "codex";
3052
+ signature: string | null;
2651
3053
  userId: string;
2652
3054
  name: string;
2653
3055
  description: string | null;
@@ -2694,8 +3096,8 @@ declare const LocalMachineSchema: z.ZodObject<{
2694
3096
  createdAt: z.ZodString;
2695
3097
  updatedAt: z.ZodString;
2696
3098
  }, "strip", z.ZodTypeAny, {
2697
- status: string;
2698
3099
  id: string;
3100
+ status: string;
2699
3101
  createdAt: string;
2700
3102
  dataEncryptionKey: string;
2701
3103
  updatedAt: string;
@@ -2704,8 +3106,8 @@ declare const LocalMachineSchema: z.ZodObject<{
2704
3106
  approval: string;
2705
3107
  controlPort: number | null;
2706
3108
  }, {
2707
- status: string;
2708
3109
  id: string;
3110
+ status: string;
2709
3111
  createdAt: string;
2710
3112
  dataEncryptionKey: string;
2711
3113
  updatedAt: string;
@@ -2727,16 +3129,16 @@ declare const CloudMachineSchema: z.ZodObject<{
2727
3129
  createdAt: z.ZodString;
2728
3130
  updatedAt: z.ZodString;
2729
3131
  }, "strip", z.ZodTypeAny, {
2730
- status: string;
2731
3132
  id: string;
3133
+ status: string;
2732
3134
  createdAt: string;
2733
3135
  cloudId: string;
2734
3136
  updatedAt: string;
2735
3137
  metadata: string | null;
2736
3138
  deviceId: string;
2737
3139
  }, {
2738
- status: string;
2739
3140
  id: string;
3141
+ status: string;
2740
3142
  createdAt: string;
2741
3143
  cloudId: string;
2742
3144
  updatedAt: string;
@@ -2763,16 +3165,16 @@ declare const CloudSchema: z.ZodObject<{
2763
3165
  createdAt: z.ZodString;
2764
3166
  updatedAt: z.ZodString;
2765
3167
  }, "strip", z.ZodTypeAny, {
2766
- status: string;
2767
3168
  id: string;
3169
+ status: string;
2768
3170
  createdAt: string;
2769
3171
  cloudId: string;
2770
3172
  updatedAt: string;
2771
3173
  metadata: string | null;
2772
3174
  deviceId: string;
2773
3175
  }, {
2774
- status: string;
2775
3176
  id: string;
3177
+ status: string;
2776
3178
  createdAt: string;
2777
3179
  cloudId: string;
2778
3180
  updatedAt: string;
@@ -2780,15 +3182,15 @@ declare const CloudSchema: z.ZodObject<{
2780
3182
  deviceId: string;
2781
3183
  }>, "many">>;
2782
3184
  }, "strip", z.ZodTypeAny, {
2783
- type: "public" | "private";
2784
3185
  id: string;
3186
+ type: "public" | "private";
2785
3187
  createdAt: string;
2786
3188
  updatedAt: string;
2787
3189
  name: string;
2788
3190
  owner: string;
2789
3191
  machines?: {
2790
- status: string;
2791
3192
  id: string;
3193
+ status: string;
2792
3194
  createdAt: string;
2793
3195
  cloudId: string;
2794
3196
  updatedAt: string;
@@ -2796,15 +3198,15 @@ declare const CloudSchema: z.ZodObject<{
2796
3198
  deviceId: string;
2797
3199
  }[] | undefined;
2798
3200
  }, {
2799
- type: "public" | "private";
2800
3201
  id: string;
3202
+ type: "public" | "private";
2801
3203
  createdAt: string;
2802
3204
  updatedAt: string;
2803
3205
  name: string;
2804
3206
  owner: string;
2805
3207
  machines?: {
2806
- status: string;
2807
3208
  id: string;
3209
+ status: string;
2808
3210
  createdAt: string;
2809
3211
  cloudId: string;
2810
3212
  updatedAt: string;
@@ -2833,16 +3235,16 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2833
3235
  createdAt: z.ZodString;
2834
3236
  updatedAt: z.ZodString;
2835
3237
  }, "strip", z.ZodTypeAny, {
2836
- status: string;
2837
3238
  id: string;
3239
+ status: string;
2838
3240
  createdAt: string;
2839
3241
  cloudId: string;
2840
3242
  updatedAt: string;
2841
3243
  metadata: string | null;
2842
3244
  deviceId: string;
2843
3245
  }, {
2844
- status: string;
2845
3246
  id: string;
3247
+ status: string;
2846
3248
  createdAt: string;
2847
3249
  cloudId: string;
2848
3250
  updatedAt: string;
@@ -2850,15 +3252,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2850
3252
  deviceId: string;
2851
3253
  }>, "many">>;
2852
3254
  }, "strip", z.ZodTypeAny, {
2853
- type: "public" | "private";
2854
3255
  id: string;
3256
+ type: "public" | "private";
2855
3257
  createdAt: string;
2856
3258
  updatedAt: string;
2857
3259
  name: string;
2858
3260
  owner: string;
2859
3261
  machines?: {
2860
- status: string;
2861
3262
  id: string;
3263
+ status: string;
2862
3264
  createdAt: string;
2863
3265
  cloudId: string;
2864
3266
  updatedAt: string;
@@ -2866,15 +3268,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2866
3268
  deviceId: string;
2867
3269
  }[] | undefined;
2868
3270
  }, {
2869
- type: "public" | "private";
2870
3271
  id: string;
3272
+ type: "public" | "private";
2871
3273
  createdAt: string;
2872
3274
  updatedAt: string;
2873
3275
  name: string;
2874
3276
  owner: string;
2875
3277
  machines?: {
2876
- status: string;
2877
3278
  id: string;
3279
+ status: string;
2878
3280
  createdAt: string;
2879
3281
  cloudId: string;
2880
3282
  updatedAt: string;
@@ -2893,8 +3295,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2893
3295
  createdAt: z.ZodString;
2894
3296
  updatedAt: z.ZodString;
2895
3297
  }, "strip", z.ZodTypeAny, {
2896
- status: string;
2897
3298
  id: string;
3299
+ status: string;
2898
3300
  createdAt: string;
2899
3301
  dataEncryptionKey: string;
2900
3302
  updatedAt: string;
@@ -2903,8 +3305,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2903
3305
  approval: string;
2904
3306
  controlPort: number | null;
2905
3307
  }, {
2906
- status: string;
2907
3308
  id: string;
3309
+ status: string;
2908
3310
  createdAt: string;
2909
3311
  dataEncryptionKey: string;
2910
3312
  updatedAt: string;
@@ -2915,15 +3317,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2915
3317
  }>, "many">;
2916
3318
  }, "strip", z.ZodTypeAny, {
2917
3319
  clouds: {
2918
- type: "public" | "private";
2919
3320
  id: string;
3321
+ type: "public" | "private";
2920
3322
  createdAt: string;
2921
3323
  updatedAt: string;
2922
3324
  name: string;
2923
3325
  owner: string;
2924
3326
  machines?: {
2925
- status: string;
2926
3327
  id: string;
3328
+ status: string;
2927
3329
  createdAt: string;
2928
3330
  cloudId: string;
2929
3331
  updatedAt: string;
@@ -2932,8 +3334,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2932
3334
  }[] | undefined;
2933
3335
  }[];
2934
3336
  localMachines: {
2935
- status: string;
2936
3337
  id: string;
3338
+ status: string;
2937
3339
  createdAt: string;
2938
3340
  dataEncryptionKey: string;
2939
3341
  updatedAt: string;
@@ -2944,15 +3346,15 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2944
3346
  }[];
2945
3347
  }, {
2946
3348
  clouds: {
2947
- type: "public" | "private";
2948
3349
  id: string;
3350
+ type: "public" | "private";
2949
3351
  createdAt: string;
2950
3352
  updatedAt: string;
2951
3353
  name: string;
2952
3354
  owner: string;
2953
3355
  machines?: {
2954
- status: string;
2955
3356
  id: string;
3357
+ status: string;
2956
3358
  createdAt: string;
2957
3359
  cloudId: string;
2958
3360
  updatedAt: string;
@@ -2961,8 +3363,8 @@ declare const ListMachinesResponseSchema: z.ZodObject<{
2961
3363
  }[] | undefined;
2962
3364
  }[];
2963
3365
  localMachines: {
2964
- status: string;
2965
3366
  id: string;
3367
+ status: string;
2966
3368
  createdAt: string;
2967
3369
  dataEncryptionKey: string;
2968
3370
  updatedAt: string;
@@ -3212,12 +3614,12 @@ declare const ListFilesQuerySchema: z.ZodObject<{
3212
3614
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3213
3615
  fileIds: z.ZodOptional<z.ZodString>;
3214
3616
  }, "strip", z.ZodTypeAny, {
3215
- page: number;
3216
3617
  limit: number;
3618
+ page: number;
3217
3619
  fileIds?: string | undefined;
3218
3620
  }, {
3219
- page?: number | undefined;
3220
3621
  limit?: number | undefined;
3622
+ page?: number | undefined;
3221
3623
  fileIds?: string | undefined;
3222
3624
  }>;
3223
3625
  type ListFilesQuery = z.infer<typeof ListFilesQuerySchema>;
@@ -3248,9 +3650,6 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3248
3650
  contentType: string;
3249
3651
  }>, "many">;
3250
3652
  }, "strip", z.ZodTypeAny, {
3251
- total: number;
3252
- page: number;
3253
- limit: number;
3254
3653
  files: {
3255
3654
  createdAt: string;
3256
3655
  name: string;
@@ -3258,10 +3657,10 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3258
3657
  fileId: string;
3259
3658
  contentType: string;
3260
3659
  }[];
3261
- }, {
3262
- total: number;
3263
- page: number;
3264
3660
  limit: number;
3661
+ page: number;
3662
+ total: number;
3663
+ }, {
3265
3664
  files: {
3266
3665
  createdAt: string;
3267
3666
  name: string;
@@ -3269,6 +3668,9 @@ declare const ListFilesResponseSchema: z.ZodObject<{
3269
3668
  fileId: string;
3270
3669
  contentType: string;
3271
3670
  }[];
3671
+ limit: number;
3672
+ page: number;
3673
+ total: number;
3272
3674
  }>;
3273
3675
  type ListFilesResponse = z.infer<typeof ListFilesResponseSchema>;
3274
3676
 
@@ -3299,10 +3701,10 @@ declare const RepositorySchema: z.ZodObject<{
3299
3701
  name: string;
3300
3702
  description: string | null;
3301
3703
  owner: string;
3704
+ url: string;
3302
3705
  fullName: string;
3303
3706
  defaultBranch: string;
3304
3707
  isPrivate: boolean;
3305
- url: string;
3306
3708
  gitServerId: string;
3307
3709
  }, {
3308
3710
  id: string;
@@ -3311,10 +3713,10 @@ declare const RepositorySchema: z.ZodObject<{
3311
3713
  name: string;
3312
3714
  description: string | null;
3313
3715
  owner: string;
3716
+ url: string;
3314
3717
  fullName: string;
3315
3718
  defaultBranch: string;
3316
3719
  isPrivate: boolean;
3317
- url: string;
3318
3720
  gitServerId: string;
3319
3721
  }>;
3320
3722
  type Repository = z.infer<typeof RepositorySchema>;
@@ -3341,10 +3743,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3341
3743
  name: string;
3342
3744
  description: string | null;
3343
3745
  owner: string;
3746
+ url: string;
3344
3747
  fullName: string;
3345
3748
  defaultBranch: string;
3346
3749
  isPrivate: boolean;
3347
- url: string;
3348
3750
  gitServerId: string;
3349
3751
  }, {
3350
3752
  id: string;
@@ -3353,10 +3755,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3353
3755
  name: string;
3354
3756
  description: string | null;
3355
3757
  owner: string;
3758
+ url: string;
3356
3759
  fullName: string;
3357
3760
  defaultBranch: string;
3358
3761
  isPrivate: boolean;
3359
- url: string;
3360
3762
  gitServerId: string;
3361
3763
  }>, "many">;
3362
3764
  }, "strip", z.ZodTypeAny, {
@@ -3367,10 +3769,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3367
3769
  name: string;
3368
3770
  description: string | null;
3369
3771
  owner: string;
3772
+ url: string;
3370
3773
  fullName: string;
3371
3774
  defaultBranch: string;
3372
3775
  isPrivate: boolean;
3373
- url: string;
3374
3776
  gitServerId: string;
3375
3777
  }[];
3376
3778
  }, {
@@ -3381,10 +3783,10 @@ declare const ListRepositoriesResponseSchema: z.ZodObject<{
3381
3783
  name: string;
3382
3784
  description: string | null;
3383
3785
  owner: string;
3786
+ url: string;
3384
3787
  fullName: string;
3385
3788
  defaultBranch: string;
3386
3789
  isPrivate: boolean;
3387
- url: string;
3388
3790
  gitServerId: string;
3389
3791
  }[];
3390
3792
  }>;
@@ -3412,10 +3814,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3412
3814
  name: string;
3413
3815
  description: string | null;
3414
3816
  owner: string;
3817
+ url: string;
3415
3818
  fullName: string;
3416
3819
  defaultBranch: string;
3417
3820
  isPrivate: boolean;
3418
- url: string;
3419
3821
  gitServerId: string;
3420
3822
  }, {
3421
3823
  id: string;
@@ -3424,10 +3826,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3424
3826
  name: string;
3425
3827
  description: string | null;
3426
3828
  owner: string;
3829
+ url: string;
3427
3830
  fullName: string;
3428
3831
  defaultBranch: string;
3429
3832
  isPrivate: boolean;
3430
- url: string;
3431
3833
  gitServerId: string;
3432
3834
  }>;
3433
3835
  }, "strip", z.ZodTypeAny, {
@@ -3438,10 +3840,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3438
3840
  name: string;
3439
3841
  description: string | null;
3440
3842
  owner: string;
3843
+ url: string;
3441
3844
  fullName: string;
3442
3845
  defaultBranch: string;
3443
3846
  isPrivate: boolean;
3444
- url: string;
3445
3847
  gitServerId: string;
3446
3848
  };
3447
3849
  }, {
@@ -3452,10 +3854,10 @@ declare const GetRepositoryResponseSchema: z.ZodObject<{
3452
3854
  name: string;
3453
3855
  description: string | null;
3454
3856
  owner: string;
3857
+ url: string;
3455
3858
  fullName: string;
3456
3859
  defaultBranch: string;
3457
3860
  isPrivate: boolean;
3458
- url: string;
3459
3861
  gitServerId: string;
3460
3862
  };
3461
3863
  }>;
@@ -3768,8 +4170,8 @@ declare const OAuthServerSchema: z.ZodObject<{
3768
4170
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3769
4171
  }, "strip", z.ZodTypeAny, {
3770
4172
  id: string;
3771
- createdAt: string;
3772
4173
  provider: string;
4174
+ createdAt: string;
3773
4175
  updatedAt: string;
3774
4176
  displayName: string;
3775
4177
  authorizeUrl: string;
@@ -3784,8 +4186,8 @@ declare const OAuthServerSchema: z.ZodObject<{
3784
4186
  avatar?: string | undefined;
3785
4187
  }, {
3786
4188
  id: string;
3787
- createdAt: string | Date;
3788
4189
  provider: string;
4190
+ createdAt: string | Date;
3789
4191
  updatedAt: string | Date;
3790
4192
  displayName: string;
3791
4193
  authorizeUrl: string;
@@ -3814,16 +4216,16 @@ declare const OAuthServerPublicSchema: z.ZodObject<{
3814
4216
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3815
4217
  }, "strip", z.ZodTypeAny, {
3816
4218
  id: string;
3817
- createdAt: string;
3818
4219
  provider: string;
4220
+ createdAt: string;
3819
4221
  updatedAt: string;
3820
4222
  displayName: string;
3821
4223
  enabled: boolean;
3822
4224
  avatar?: string | undefined;
3823
4225
  }, {
3824
4226
  id: string;
3825
- createdAt: string | Date;
3826
4227
  provider: string;
4228
+ createdAt: string | Date;
3827
4229
  updatedAt: string | Date;
3828
4230
  displayName: string;
3829
4231
  enabled: boolean;
@@ -3889,8 +4291,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
3889
4291
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3890
4292
  }, "strip", z.ZodTypeAny, {
3891
4293
  id: string;
3892
- createdAt: string;
3893
4294
  provider: string;
4295
+ createdAt: string;
3894
4296
  updatedAt: string;
3895
4297
  displayName: string;
3896
4298
  authorizeUrl: string;
@@ -3905,8 +4307,8 @@ declare const CreateOAuthServerResponseSchema: z.ZodObject<{
3905
4307
  avatar?: string | undefined;
3906
4308
  }, {
3907
4309
  id: string;
3908
- createdAt: string | Date;
3909
4310
  provider: string;
4311
+ createdAt: string | Date;
3910
4312
  updatedAt: string | Date;
3911
4313
  displayName: string;
3912
4314
  authorizeUrl: string;
@@ -3950,8 +4352,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
3950
4352
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
3951
4353
  }, "strip", z.ZodTypeAny, {
3952
4354
  id: string;
3953
- createdAt: string;
3954
4355
  provider: string;
4356
+ createdAt: string;
3955
4357
  updatedAt: string;
3956
4358
  displayName: string;
3957
4359
  authorizeUrl: string;
@@ -3966,8 +4368,8 @@ declare const ListOAuthServersResponseSchema: z.ZodArray<z.ZodObject<{
3966
4368
  avatar?: string | undefined;
3967
4369
  }, {
3968
4370
  id: string;
3969
- createdAt: string | Date;
3970
4371
  provider: string;
4372
+ createdAt: string | Date;
3971
4373
  updatedAt: string | Date;
3972
4374
  displayName: string;
3973
4375
  authorizeUrl: string;
@@ -4003,8 +4405,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
4003
4405
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4004
4406
  }, "strip", z.ZodTypeAny, {
4005
4407
  id: string;
4006
- createdAt: string;
4007
4408
  provider: string;
4409
+ createdAt: string;
4008
4410
  updatedAt: string;
4009
4411
  displayName: string;
4010
4412
  authorizeUrl: string;
@@ -4019,8 +4421,8 @@ declare const GetOAuthServerResponseSchema: z.ZodObject<{
4019
4421
  avatar?: string | undefined;
4020
4422
  }, {
4021
4423
  id: string;
4022
- createdAt: string | Date;
4023
4424
  provider: string;
4425
+ createdAt: string | Date;
4024
4426
  updatedAt: string | Date;
4025
4427
  displayName: string;
4026
4428
  authorizeUrl: string;
@@ -4094,8 +4496,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4094
4496
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4095
4497
  }, "strip", z.ZodTypeAny, {
4096
4498
  id: string;
4097
- createdAt: string;
4098
4499
  provider: string;
4500
+ createdAt: string;
4099
4501
  updatedAt: string;
4100
4502
  displayName: string;
4101
4503
  authorizeUrl: string;
@@ -4110,8 +4512,8 @@ declare const UpdateOAuthServerResponseSchema: z.ZodObject<{
4110
4512
  avatar?: string | undefined;
4111
4513
  }, {
4112
4514
  id: string;
4113
- createdAt: string | Date;
4114
4515
  provider: string;
4516
+ createdAt: string | Date;
4115
4517
  updatedAt: string | Date;
4116
4518
  displayName: string;
4117
4519
  authorizeUrl: string;
@@ -4166,8 +4568,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4166
4568
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4167
4569
  }, "strip", z.ZodTypeAny, {
4168
4570
  id: string;
4169
- createdAt: string;
4170
4571
  provider: string;
4572
+ createdAt: string;
4171
4573
  updatedAt: string;
4172
4574
  displayName: string;
4173
4575
  authorizeUrl: string;
@@ -4182,8 +4584,8 @@ declare const ToggleOAuthServerResponseSchema: z.ZodObject<{
4182
4584
  avatar?: string | undefined;
4183
4585
  }, {
4184
4586
  id: string;
4185
- createdAt: string | Date;
4186
4587
  provider: string;
4588
+ createdAt: string | Date;
4187
4589
  updatedAt: string | Date;
4188
4590
  displayName: string;
4189
4591
  authorizeUrl: string;
@@ -4211,16 +4613,16 @@ declare const ListOAuthServersPublicResponseSchema: z.ZodArray<z.ZodObject<{
4211
4613
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4212
4614
  }, "strip", z.ZodTypeAny, {
4213
4615
  id: string;
4214
- createdAt: string;
4215
4616
  provider: string;
4617
+ createdAt: string;
4216
4618
  updatedAt: string;
4217
4619
  displayName: string;
4218
4620
  enabled: boolean;
4219
4621
  avatar?: string | undefined;
4220
4622
  }, {
4221
4623
  id: string;
4222
- createdAt: string | Date;
4223
4624
  provider: string;
4625
+ createdAt: string | Date;
4224
4626
  updatedAt: string | Date;
4225
4627
  displayName: string;
4226
4628
  enabled: boolean;
@@ -4407,8 +4809,8 @@ declare const ChargeTransactionSchema: z.ZodObject<{
4407
4809
  createdAt: z.ZodString;
4408
4810
  transactionType: z.ZodLiteral<"charge">;
4409
4811
  }, "strip", z.ZodTypeAny, {
4410
- type: "user_recharge" | "system_bonus" | "refund";
4411
4812
  id: string;
4813
+ type: "user_recharge" | "system_bonus" | "refund";
4412
4814
  createdAt: string;
4413
4815
  userId: string;
4414
4816
  creditsPackageId: string;
@@ -4421,8 +4823,8 @@ declare const ChargeTransactionSchema: z.ZodObject<{
4421
4823
  metadata?: any;
4422
4824
  packageName?: string | undefined;
4423
4825
  }, {
4424
- type: "user_recharge" | "system_bonus" | "refund";
4425
4826
  id: string;
4827
+ type: "user_recharge" | "system_bonus" | "refund";
4426
4828
  createdAt: string;
4427
4829
  userId: string;
4428
4830
  creditsPackageId: string;
@@ -4498,8 +4900,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4498
4900
  createdAt: z.ZodString;
4499
4901
  transactionType: z.ZodLiteral<"charge">;
4500
4902
  }, "strip", z.ZodTypeAny, {
4501
- type: "user_recharge" | "system_bonus" | "refund";
4502
4903
  id: string;
4904
+ type: "user_recharge" | "system_bonus" | "refund";
4503
4905
  createdAt: string;
4504
4906
  userId: string;
4505
4907
  creditsPackageId: string;
@@ -4512,8 +4914,8 @@ declare const TransactionSchema: z.ZodUnion<[z.ZodObject<{
4512
4914
  metadata?: any;
4513
4915
  packageName?: string | undefined;
4514
4916
  }, {
4515
- type: "user_recharge" | "system_bonus" | "refund";
4516
4917
  id: string;
4918
+ type: "user_recharge" | "system_bonus" | "refund";
4517
4919
  createdAt: string;
4518
4920
  userId: string;
4519
4921
  creditsPackageId: string;
@@ -4608,8 +5010,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
4608
5010
  createdAt: z.ZodString;
4609
5011
  transactionType: z.ZodLiteral<"charge">;
4610
5012
  }, "strip", z.ZodTypeAny, {
4611
- type: "user_recharge" | "system_bonus" | "refund";
4612
5013
  id: string;
5014
+ type: "user_recharge" | "system_bonus" | "refund";
4613
5015
  createdAt: string;
4614
5016
  userId: string;
4615
5017
  creditsPackageId: string;
@@ -4622,8 +5024,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
4622
5024
  metadata?: any;
4623
5025
  packageName?: string | undefined;
4624
5026
  }, {
4625
- type: "user_recharge" | "system_bonus" | "refund";
4626
5027
  id: string;
5028
+ type: "user_recharge" | "system_bonus" | "refund";
4627
5029
  createdAt: string;
4628
5030
  userId: string;
4629
5031
  creditsPackageId: string;
@@ -4679,8 +5081,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
4679
5081
  }, "strip", z.ZodTypeAny, {
4680
5082
  total: number;
4681
5083
  transactions: ({
4682
- type: "user_recharge" | "system_bonus" | "refund";
4683
5084
  id: string;
5085
+ type: "user_recharge" | "system_bonus" | "refund";
4684
5086
  createdAt: string;
4685
5087
  userId: string;
4686
5088
  creditsPackageId: string;
@@ -4709,8 +5111,8 @@ declare const ListTransactionsResponseSchema: z.ZodObject<{
4709
5111
  }, {
4710
5112
  total: number;
4711
5113
  transactions: ({
4712
- type: "user_recharge" | "system_bonus" | "refund";
4713
5114
  id: string;
5115
+ type: "user_recharge" | "system_bonus" | "refund";
4714
5116
  createdAt: string;
4715
5117
  userId: string;
4716
5118
  creditsPackageId: string;
@@ -4874,8 +5276,8 @@ declare const GitServerSchema: z.ZodObject<{
4874
5276
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4875
5277
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4876
5278
  }, "strip", z.ZodTypeAny, {
4877
- type: string;
4878
5279
  id: string;
5280
+ type: string;
4879
5281
  createdAt: string;
4880
5282
  updatedAt: string;
4881
5283
  name: string;
@@ -4884,8 +5286,8 @@ declare const GitServerSchema: z.ZodObject<{
4884
5286
  apiUrl: string;
4885
5287
  oauthServerId: string | null;
4886
5288
  }, {
4887
- type: string;
4888
5289
  id: string;
5290
+ type: string;
4889
5291
  createdAt: string | Date;
4890
5292
  updatedAt: string | Date;
4891
5293
  name: string;
@@ -4909,8 +5311,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
4909
5311
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4910
5312
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4911
5313
  }, "strip", z.ZodTypeAny, {
4912
- type: string;
4913
5314
  id: string;
5315
+ type: string;
4914
5316
  createdAt: string;
4915
5317
  updatedAt: string;
4916
5318
  name: string;
@@ -4919,8 +5321,8 @@ declare const ListGitServersResponseSchema: z.ZodArray<z.ZodObject<{
4919
5321
  apiUrl: string;
4920
5322
  oauthServerId: string | null;
4921
5323
  }, {
4922
- type: string;
4923
5324
  id: string;
5325
+ type: string;
4924
5326
  createdAt: string | Date;
4925
5327
  updatedAt: string | Date;
4926
5328
  name: string;
@@ -4944,8 +5346,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
4944
5346
  createdAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4945
5347
  updatedAt: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodDate, string, Date>]>;
4946
5348
  }, "strip", z.ZodTypeAny, {
4947
- type: string;
4948
5349
  id: string;
5350
+ type: string;
4949
5351
  createdAt: string;
4950
5352
  updatedAt: string;
4951
5353
  name: string;
@@ -4954,8 +5356,8 @@ declare const GetGitServerResponseSchema: z.ZodObject<{
4954
5356
  apiUrl: string;
4955
5357
  oauthServerId: string | null;
4956
5358
  }, {
4957
- type: string;
4958
5359
  id: string;
5360
+ type: string;
4959
5361
  createdAt: string | Date;
4960
5362
  updatedAt: string | Date;
4961
5363
  name: string;
@@ -5555,6 +5957,27 @@ declare const ChangeTaskTitleEventSchema: z.ZodObject<{
5555
5957
  eventId: string;
5556
5958
  }>;
5557
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>;
5558
5981
  declare const CreditExhaustedEventSchema: z.ZodObject<{
5559
5982
  eventId: z.ZodString;
5560
5983
  }, "strip", z.ZodTypeAny, {
@@ -5678,21 +6101,17 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
5678
6101
  code: z.ZodString;
5679
6102
  message: z.ZodString;
5680
6103
  }, "strip", z.ZodTypeAny, {
5681
- message: string;
5682
6104
  code: string;
5683
- }, {
5684
6105
  message: string;
6106
+ }, {
5685
6107
  code: string;
6108
+ message: string;
5686
6109
  }>>;
5687
6110
  }, "strip", z.ZodTypeAny, {
5688
6111
  success: boolean;
5689
6112
  taskId: string;
5690
6113
  eventId: string;
5691
6114
  requestId: string;
5692
- error?: {
5693
- message: string;
5694
- code: string;
5695
- } | undefined;
5696
6115
  data?: {
5697
6116
  type: "file" | "directory";
5698
6117
  metadata: {
@@ -5711,16 +6130,16 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
5711
6130
  content?: string | undefined;
5712
6131
  encryptedContent?: string | undefined;
5713
6132
  } | undefined;
6133
+ error?: {
6134
+ code: string;
6135
+ message: string;
6136
+ } | undefined;
5714
6137
  notModified?: boolean | undefined;
5715
6138
  }, {
5716
6139
  success: boolean;
5717
6140
  taskId: string;
5718
6141
  eventId: string;
5719
6142
  requestId: string;
5720
- error?: {
5721
- message: string;
5722
- code: string;
5723
- } | undefined;
5724
6143
  data?: {
5725
6144
  type: "file" | "directory";
5726
6145
  metadata: {
@@ -5739,6 +6158,10 @@ declare const WorkspaceFileResponseSchema: z.ZodObject<{
5739
6158
  content?: string | undefined;
5740
6159
  encryptedContent?: string | undefined;
5741
6160
  } | undefined;
6161
+ error?: {
6162
+ code: string;
6163
+ message: string;
6164
+ } | undefined;
5742
6165
  notModified?: boolean | undefined;
5743
6166
  }>;
5744
6167
  type WorkspaceFileResponseEventData = z.infer<typeof WorkspaceFileResponseSchema>;
@@ -5831,14 +6254,14 @@ declare const SystemMessageSchema: z.ZodObject<{
5831
6254
  createdAt: z.ZodString;
5832
6255
  updatedAt: z.ZodString;
5833
6256
  }, "strip", z.ZodTypeAny, {
5834
- type: "direct" | "group";
5835
6257
  id: string;
6258
+ type: "direct" | "group";
5836
6259
  createdAt: string;
5837
6260
  updatedAt: string;
5838
6261
  owner: string;
5839
6262
  }, {
5840
- type: "direct" | "group";
5841
6263
  id: string;
6264
+ type: "direct" | "group";
5842
6265
  createdAt: string;
5843
6266
  updatedAt: string;
5844
6267
  owner: string;
@@ -5851,16 +6274,16 @@ declare const SystemMessageSchema: z.ZodObject<{
5851
6274
  createdAt: z.ZodString;
5852
6275
  updatedAt: z.ZodString;
5853
6276
  }, "strip", z.ZodTypeAny, {
5854
- type: "human" | "agent";
5855
6277
  id: string;
6278
+ type: "human" | "agent";
5856
6279
  createdAt: string;
5857
6280
  chatId: string;
5858
6281
  updatedAt: string;
5859
6282
  memberCode: string;
5860
6283
  role: string;
5861
6284
  }, {
5862
- type: "human" | "agent";
5863
6285
  id: string;
6286
+ type: "human" | "agent";
5864
6287
  createdAt: string;
5865
6288
  chatId: string;
5866
6289
  updatedAt: string;
@@ -5891,10 +6314,10 @@ declare const SystemMessageSchema: z.ZodObject<{
5891
6314
  name: string;
5892
6315
  description: string | null;
5893
6316
  owner: string;
6317
+ url: string;
5894
6318
  fullName: string;
5895
6319
  defaultBranch: string;
5896
6320
  isPrivate: boolean;
5897
- url: string;
5898
6321
  gitServerId: string;
5899
6322
  }, {
5900
6323
  id: string;
@@ -5903,10 +6326,10 @@ declare const SystemMessageSchema: z.ZodObject<{
5903
6326
  name: string;
5904
6327
  description: string | null;
5905
6328
  owner: string;
6329
+ url: string;
5906
6330
  fullName: string;
5907
6331
  defaultBranch: string;
5908
6332
  isPrivate: boolean;
5909
- url: string;
5910
6333
  gitServerId: string;
5911
6334
  }>, z.ZodObject<{
5912
6335
  taskId: z.ZodString;
@@ -5934,14 +6357,14 @@ declare const SystemMessageSchema: z.ZodObject<{
5934
6357
  }, "strip", z.ZodTypeAny, {
5935
6358
  type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
5936
6359
  data: {
5937
- type: "direct" | "group";
5938
6360
  id: string;
6361
+ type: "direct" | "group";
5939
6362
  createdAt: string;
5940
6363
  updatedAt: string;
5941
6364
  owner: string;
5942
6365
  } | {
5943
- type: "human" | "agent";
5944
6366
  id: string;
6367
+ type: "human" | "agent";
5945
6368
  createdAt: string;
5946
6369
  chatId: string;
5947
6370
  updatedAt: string;
@@ -5954,10 +6377,10 @@ declare const SystemMessageSchema: z.ZodObject<{
5954
6377
  name: string;
5955
6378
  description: string | null;
5956
6379
  owner: string;
6380
+ url: string;
5957
6381
  fullName: string;
5958
6382
  defaultBranch: string;
5959
6383
  isPrivate: boolean;
5960
- url: string;
5961
6384
  gitServerId: string;
5962
6385
  } | {
5963
6386
  id: string;
@@ -5976,14 +6399,14 @@ declare const SystemMessageSchema: z.ZodObject<{
5976
6399
  }, {
5977
6400
  type: "machine-online" | "machine-offline" | "chat-added" | "chat-removed" | "chat-member-added" | "chat-member-removed" | "repo-added" | "repo-removed" | "pr-state-changed";
5978
6401
  data: {
5979
- type: "direct" | "group";
5980
6402
  id: string;
6403
+ type: "direct" | "group";
5981
6404
  createdAt: string;
5982
6405
  updatedAt: string;
5983
6406
  owner: string;
5984
6407
  } | {
5985
- type: "human" | "agent";
5986
6408
  id: string;
6409
+ type: "human" | "agent";
5987
6410
  createdAt: string;
5988
6411
  chatId: string;
5989
6412
  updatedAt: string;
@@ -5996,10 +6419,10 @@ declare const SystemMessageSchema: z.ZodObject<{
5996
6419
  name: string;
5997
6420
  description: string | null;
5998
6421
  owner: string;
6422
+ url: string;
5999
6423
  fullName: string;
6000
6424
  defaultBranch: string;
6001
6425
  isPrivate: boolean;
6002
- url: string;
6003
6426
  gitServerId: string;
6004
6427
  } | {
6005
6428
  id: string;
@@ -6017,7 +6440,7 @@ declare const SystemMessageSchema: z.ZodObject<{
6017
6440
  timestamp: string;
6018
6441
  }>;
6019
6442
  type SystemMessageEventData = z.infer<typeof SystemMessageSchema>;
6020
- 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;
6021
6444
  type EventMap = {
6022
6445
  "app-alive": AppAliveEventData;
6023
6446
  "api-server-alive": ApiServerAliveEventData;
@@ -6033,6 +6456,7 @@ type EventMap = {
6033
6456
  "stop-task": StopTaskEventData;
6034
6457
  "task-message": TaskMessageEventData;
6035
6458
  "change-task-title": ChangeTaskTitleEventData;
6459
+ "task-state-change": TaskStateChangeEventData;
6036
6460
  "update-task-agent-session-id": UpdateTaskAgentSessionIdEventData;
6037
6461
  "task-artifacts-updated": TaskArtifactsUpdatedEventData;
6038
6462
  "require-permission": RequirePermissionData;
@@ -6508,5 +6932,5 @@ declare function encryptFileContent(fileContentBase64: string, dataKey: Uint8Arr
6508
6932
  */
6509
6933
  declare function decryptFileContent(encryptedContent: string, dataKey: Uint8Array): string | null;
6510
6934
 
6511
- 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 };
6512
- 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 };