@deepintel-ltd/farmpro-contracts 1.11.10 → 1.11.11
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/routes/agents.routes.d.ts +509 -0
- package/dist/routes/agents.routes.d.ts.map +1 -1
- package/dist/routes/agents.routes.js +19 -1
- package/dist/schemas/agents.schemas.d.ts +198 -0
- package/dist/schemas/agents.schemas.d.ts.map +1 -1
- package/dist/schemas/agents.schemas.js +14 -0
- package/package.json +1 -1
|
@@ -1537,6 +1537,509 @@ export declare const agentsRouter: {
|
|
|
1537
1537
|
}>;
|
|
1538
1538
|
};
|
|
1539
1539
|
};
|
|
1540
|
+
updateConversationTitle: {
|
|
1541
|
+
pathParams: z.ZodObject<{
|
|
1542
|
+
conversationId: z.ZodString;
|
|
1543
|
+
}, "strip", z.ZodTypeAny, {
|
|
1544
|
+
conversationId: string;
|
|
1545
|
+
}, {
|
|
1546
|
+
conversationId: string;
|
|
1547
|
+
}>;
|
|
1548
|
+
summary: "Update conversation title";
|
|
1549
|
+
description: "Rename an existing agronomics conversation";
|
|
1550
|
+
method: "PATCH";
|
|
1551
|
+
body: z.ZodObject<{
|
|
1552
|
+
title: z.ZodString;
|
|
1553
|
+
}, "strip", z.ZodTypeAny, {
|
|
1554
|
+
title: string;
|
|
1555
|
+
}, {
|
|
1556
|
+
title: string;
|
|
1557
|
+
}>;
|
|
1558
|
+
path: "/agents/agronomics/conversations/:conversationId";
|
|
1559
|
+
responses: {
|
|
1560
|
+
200: z.ZodObject<{
|
|
1561
|
+
data: z.ZodObject<{
|
|
1562
|
+
type: z.ZodLiteral<string>;
|
|
1563
|
+
id: z.ZodString;
|
|
1564
|
+
attributes: z.ZodObject<{
|
|
1565
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1566
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1567
|
+
farmId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1568
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1569
|
+
}, "strip", z.ZodTypeAny, {
|
|
1570
|
+
title: string | null;
|
|
1571
|
+
updatedAt?: string | undefined;
|
|
1572
|
+
summary?: string | null | undefined;
|
|
1573
|
+
farmId?: string | null | undefined;
|
|
1574
|
+
}, {
|
|
1575
|
+
title: string | null;
|
|
1576
|
+
updatedAt?: string | undefined;
|
|
1577
|
+
summary?: string | null | undefined;
|
|
1578
|
+
farmId?: string | null | undefined;
|
|
1579
|
+
}>;
|
|
1580
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1581
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1582
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1583
|
+
}, "strip", z.ZodTypeAny, {
|
|
1584
|
+
type: string;
|
|
1585
|
+
id: string;
|
|
1586
|
+
attributes: {
|
|
1587
|
+
title: string | null;
|
|
1588
|
+
updatedAt?: string | undefined;
|
|
1589
|
+
summary?: string | null | undefined;
|
|
1590
|
+
farmId?: string | null | undefined;
|
|
1591
|
+
};
|
|
1592
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1593
|
+
links?: Record<string, string> | undefined;
|
|
1594
|
+
meta?: Record<string, unknown> | undefined;
|
|
1595
|
+
}, {
|
|
1596
|
+
type: string;
|
|
1597
|
+
id: string;
|
|
1598
|
+
attributes: {
|
|
1599
|
+
title: string | null;
|
|
1600
|
+
updatedAt?: string | undefined;
|
|
1601
|
+
summary?: string | null | undefined;
|
|
1602
|
+
farmId?: string | null | undefined;
|
|
1603
|
+
};
|
|
1604
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1605
|
+
links?: Record<string, string> | undefined;
|
|
1606
|
+
meta?: Record<string, unknown> | undefined;
|
|
1607
|
+
}>;
|
|
1608
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1609
|
+
type: z.ZodString;
|
|
1610
|
+
id: z.ZodString;
|
|
1611
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1612
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1613
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1614
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1615
|
+
}, "strip", z.ZodTypeAny, {
|
|
1616
|
+
type: string;
|
|
1617
|
+
id: string;
|
|
1618
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1619
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1620
|
+
links?: Record<string, string> | undefined;
|
|
1621
|
+
meta?: Record<string, unknown> | undefined;
|
|
1622
|
+
}, {
|
|
1623
|
+
type: string;
|
|
1624
|
+
id: string;
|
|
1625
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1626
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1627
|
+
links?: Record<string, string> | undefined;
|
|
1628
|
+
meta?: Record<string, unknown> | undefined;
|
|
1629
|
+
}>, "many">>;
|
|
1630
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1631
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1632
|
+
}, "strip", z.ZodTypeAny, {
|
|
1633
|
+
data: {
|
|
1634
|
+
type: string;
|
|
1635
|
+
id: string;
|
|
1636
|
+
attributes: {
|
|
1637
|
+
title: string | null;
|
|
1638
|
+
updatedAt?: string | undefined;
|
|
1639
|
+
summary?: string | null | undefined;
|
|
1640
|
+
farmId?: string | null | undefined;
|
|
1641
|
+
};
|
|
1642
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1643
|
+
links?: Record<string, string> | undefined;
|
|
1644
|
+
meta?: Record<string, unknown> | undefined;
|
|
1645
|
+
};
|
|
1646
|
+
links?: Record<string, string> | undefined;
|
|
1647
|
+
meta?: Record<string, unknown> | undefined;
|
|
1648
|
+
included?: {
|
|
1649
|
+
type: string;
|
|
1650
|
+
id: string;
|
|
1651
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1652
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1653
|
+
links?: Record<string, string> | undefined;
|
|
1654
|
+
meta?: Record<string, unknown> | undefined;
|
|
1655
|
+
}[] | undefined;
|
|
1656
|
+
}, {
|
|
1657
|
+
data: {
|
|
1658
|
+
type: string;
|
|
1659
|
+
id: string;
|
|
1660
|
+
attributes: {
|
|
1661
|
+
title: string | null;
|
|
1662
|
+
updatedAt?: string | undefined;
|
|
1663
|
+
summary?: string | null | undefined;
|
|
1664
|
+
farmId?: string | null | undefined;
|
|
1665
|
+
};
|
|
1666
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1667
|
+
links?: Record<string, string> | undefined;
|
|
1668
|
+
meta?: Record<string, unknown> | undefined;
|
|
1669
|
+
};
|
|
1670
|
+
links?: Record<string, string> | undefined;
|
|
1671
|
+
meta?: Record<string, unknown> | undefined;
|
|
1672
|
+
included?: {
|
|
1673
|
+
type: string;
|
|
1674
|
+
id: string;
|
|
1675
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1676
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1677
|
+
links?: Record<string, string> | undefined;
|
|
1678
|
+
meta?: Record<string, unknown> | undefined;
|
|
1679
|
+
}[] | undefined;
|
|
1680
|
+
}>;
|
|
1681
|
+
400: z.ZodObject<{
|
|
1682
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1683
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1685
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1686
|
+
}, "strip", z.ZodTypeAny, {
|
|
1687
|
+
about?: string | undefined;
|
|
1688
|
+
}, {
|
|
1689
|
+
about?: string | undefined;
|
|
1690
|
+
}>>;
|
|
1691
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1692
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1693
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1694
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1696
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1697
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1698
|
+
}, "strip", z.ZodTypeAny, {
|
|
1699
|
+
pointer?: string | undefined;
|
|
1700
|
+
parameter?: string | undefined;
|
|
1701
|
+
}, {
|
|
1702
|
+
pointer?: string | undefined;
|
|
1703
|
+
parameter?: string | undefined;
|
|
1704
|
+
}>>;
|
|
1705
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1706
|
+
}, "strip", z.ZodTypeAny, {
|
|
1707
|
+
status?: string | undefined;
|
|
1708
|
+
code?: string | undefined;
|
|
1709
|
+
id?: string | undefined;
|
|
1710
|
+
links?: {
|
|
1711
|
+
about?: string | undefined;
|
|
1712
|
+
} | undefined;
|
|
1713
|
+
meta?: Record<string, unknown> | undefined;
|
|
1714
|
+
title?: string | undefined;
|
|
1715
|
+
detail?: string | undefined;
|
|
1716
|
+
source?: {
|
|
1717
|
+
pointer?: string | undefined;
|
|
1718
|
+
parameter?: string | undefined;
|
|
1719
|
+
} | undefined;
|
|
1720
|
+
}, {
|
|
1721
|
+
status?: string | undefined;
|
|
1722
|
+
code?: string | undefined;
|
|
1723
|
+
id?: string | undefined;
|
|
1724
|
+
links?: {
|
|
1725
|
+
about?: string | undefined;
|
|
1726
|
+
} | undefined;
|
|
1727
|
+
meta?: Record<string, unknown> | undefined;
|
|
1728
|
+
title?: string | undefined;
|
|
1729
|
+
detail?: string | undefined;
|
|
1730
|
+
source?: {
|
|
1731
|
+
pointer?: string | undefined;
|
|
1732
|
+
parameter?: string | undefined;
|
|
1733
|
+
} | undefined;
|
|
1734
|
+
}>, "many">;
|
|
1735
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1736
|
+
}, "strip", z.ZodTypeAny, {
|
|
1737
|
+
errors: {
|
|
1738
|
+
status?: string | undefined;
|
|
1739
|
+
code?: string | undefined;
|
|
1740
|
+
id?: string | undefined;
|
|
1741
|
+
links?: {
|
|
1742
|
+
about?: string | undefined;
|
|
1743
|
+
} | undefined;
|
|
1744
|
+
meta?: Record<string, unknown> | undefined;
|
|
1745
|
+
title?: string | undefined;
|
|
1746
|
+
detail?: string | undefined;
|
|
1747
|
+
source?: {
|
|
1748
|
+
pointer?: string | undefined;
|
|
1749
|
+
parameter?: string | undefined;
|
|
1750
|
+
} | undefined;
|
|
1751
|
+
}[];
|
|
1752
|
+
meta?: Record<string, unknown> | undefined;
|
|
1753
|
+
}, {
|
|
1754
|
+
errors: {
|
|
1755
|
+
status?: string | undefined;
|
|
1756
|
+
code?: string | undefined;
|
|
1757
|
+
id?: string | undefined;
|
|
1758
|
+
links?: {
|
|
1759
|
+
about?: string | undefined;
|
|
1760
|
+
} | undefined;
|
|
1761
|
+
meta?: Record<string, unknown> | undefined;
|
|
1762
|
+
title?: string | undefined;
|
|
1763
|
+
detail?: string | undefined;
|
|
1764
|
+
source?: {
|
|
1765
|
+
pointer?: string | undefined;
|
|
1766
|
+
parameter?: string | undefined;
|
|
1767
|
+
} | undefined;
|
|
1768
|
+
}[];
|
|
1769
|
+
meta?: Record<string, unknown> | undefined;
|
|
1770
|
+
}>;
|
|
1771
|
+
401: z.ZodObject<{
|
|
1772
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1773
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1774
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1775
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1776
|
+
}, "strip", z.ZodTypeAny, {
|
|
1777
|
+
about?: string | undefined;
|
|
1778
|
+
}, {
|
|
1779
|
+
about?: string | undefined;
|
|
1780
|
+
}>>;
|
|
1781
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1782
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1783
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1784
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1785
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1786
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1787
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1788
|
+
}, "strip", z.ZodTypeAny, {
|
|
1789
|
+
pointer?: string | undefined;
|
|
1790
|
+
parameter?: string | undefined;
|
|
1791
|
+
}, {
|
|
1792
|
+
pointer?: string | undefined;
|
|
1793
|
+
parameter?: string | undefined;
|
|
1794
|
+
}>>;
|
|
1795
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1796
|
+
}, "strip", z.ZodTypeAny, {
|
|
1797
|
+
status?: string | undefined;
|
|
1798
|
+
code?: string | undefined;
|
|
1799
|
+
id?: string | undefined;
|
|
1800
|
+
links?: {
|
|
1801
|
+
about?: string | undefined;
|
|
1802
|
+
} | undefined;
|
|
1803
|
+
meta?: Record<string, unknown> | undefined;
|
|
1804
|
+
title?: string | undefined;
|
|
1805
|
+
detail?: string | undefined;
|
|
1806
|
+
source?: {
|
|
1807
|
+
pointer?: string | undefined;
|
|
1808
|
+
parameter?: string | undefined;
|
|
1809
|
+
} | undefined;
|
|
1810
|
+
}, {
|
|
1811
|
+
status?: string | undefined;
|
|
1812
|
+
code?: string | undefined;
|
|
1813
|
+
id?: string | undefined;
|
|
1814
|
+
links?: {
|
|
1815
|
+
about?: string | undefined;
|
|
1816
|
+
} | undefined;
|
|
1817
|
+
meta?: Record<string, unknown> | undefined;
|
|
1818
|
+
title?: string | undefined;
|
|
1819
|
+
detail?: string | undefined;
|
|
1820
|
+
source?: {
|
|
1821
|
+
pointer?: string | undefined;
|
|
1822
|
+
parameter?: string | undefined;
|
|
1823
|
+
} | undefined;
|
|
1824
|
+
}>, "many">;
|
|
1825
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1826
|
+
}, "strip", z.ZodTypeAny, {
|
|
1827
|
+
errors: {
|
|
1828
|
+
status?: string | undefined;
|
|
1829
|
+
code?: string | undefined;
|
|
1830
|
+
id?: string | undefined;
|
|
1831
|
+
links?: {
|
|
1832
|
+
about?: string | undefined;
|
|
1833
|
+
} | undefined;
|
|
1834
|
+
meta?: Record<string, unknown> | undefined;
|
|
1835
|
+
title?: string | undefined;
|
|
1836
|
+
detail?: string | undefined;
|
|
1837
|
+
source?: {
|
|
1838
|
+
pointer?: string | undefined;
|
|
1839
|
+
parameter?: string | undefined;
|
|
1840
|
+
} | undefined;
|
|
1841
|
+
}[];
|
|
1842
|
+
meta?: Record<string, unknown> | undefined;
|
|
1843
|
+
}, {
|
|
1844
|
+
errors: {
|
|
1845
|
+
status?: string | undefined;
|
|
1846
|
+
code?: string | undefined;
|
|
1847
|
+
id?: string | undefined;
|
|
1848
|
+
links?: {
|
|
1849
|
+
about?: string | undefined;
|
|
1850
|
+
} | undefined;
|
|
1851
|
+
meta?: Record<string, unknown> | undefined;
|
|
1852
|
+
title?: string | undefined;
|
|
1853
|
+
detail?: string | undefined;
|
|
1854
|
+
source?: {
|
|
1855
|
+
pointer?: string | undefined;
|
|
1856
|
+
parameter?: string | undefined;
|
|
1857
|
+
} | undefined;
|
|
1858
|
+
}[];
|
|
1859
|
+
meta?: Record<string, unknown> | undefined;
|
|
1860
|
+
}>;
|
|
1861
|
+
404: z.ZodObject<{
|
|
1862
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1863
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1864
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1865
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1866
|
+
}, "strip", z.ZodTypeAny, {
|
|
1867
|
+
about?: string | undefined;
|
|
1868
|
+
}, {
|
|
1869
|
+
about?: string | undefined;
|
|
1870
|
+
}>>;
|
|
1871
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1872
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1873
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1874
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1875
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1876
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1877
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1878
|
+
}, "strip", z.ZodTypeAny, {
|
|
1879
|
+
pointer?: string | undefined;
|
|
1880
|
+
parameter?: string | undefined;
|
|
1881
|
+
}, {
|
|
1882
|
+
pointer?: string | undefined;
|
|
1883
|
+
parameter?: string | undefined;
|
|
1884
|
+
}>>;
|
|
1885
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1886
|
+
}, "strip", z.ZodTypeAny, {
|
|
1887
|
+
status?: string | undefined;
|
|
1888
|
+
code?: string | undefined;
|
|
1889
|
+
id?: string | undefined;
|
|
1890
|
+
links?: {
|
|
1891
|
+
about?: string | undefined;
|
|
1892
|
+
} | undefined;
|
|
1893
|
+
meta?: Record<string, unknown> | undefined;
|
|
1894
|
+
title?: string | undefined;
|
|
1895
|
+
detail?: string | undefined;
|
|
1896
|
+
source?: {
|
|
1897
|
+
pointer?: string | undefined;
|
|
1898
|
+
parameter?: string | undefined;
|
|
1899
|
+
} | undefined;
|
|
1900
|
+
}, {
|
|
1901
|
+
status?: string | undefined;
|
|
1902
|
+
code?: string | undefined;
|
|
1903
|
+
id?: string | undefined;
|
|
1904
|
+
links?: {
|
|
1905
|
+
about?: string | undefined;
|
|
1906
|
+
} | undefined;
|
|
1907
|
+
meta?: Record<string, unknown> | undefined;
|
|
1908
|
+
title?: string | undefined;
|
|
1909
|
+
detail?: string | undefined;
|
|
1910
|
+
source?: {
|
|
1911
|
+
pointer?: string | undefined;
|
|
1912
|
+
parameter?: string | undefined;
|
|
1913
|
+
} | undefined;
|
|
1914
|
+
}>, "many">;
|
|
1915
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1916
|
+
}, "strip", z.ZodTypeAny, {
|
|
1917
|
+
errors: {
|
|
1918
|
+
status?: string | undefined;
|
|
1919
|
+
code?: string | undefined;
|
|
1920
|
+
id?: string | undefined;
|
|
1921
|
+
links?: {
|
|
1922
|
+
about?: string | undefined;
|
|
1923
|
+
} | undefined;
|
|
1924
|
+
meta?: Record<string, unknown> | undefined;
|
|
1925
|
+
title?: string | undefined;
|
|
1926
|
+
detail?: string | undefined;
|
|
1927
|
+
source?: {
|
|
1928
|
+
pointer?: string | undefined;
|
|
1929
|
+
parameter?: string | undefined;
|
|
1930
|
+
} | undefined;
|
|
1931
|
+
}[];
|
|
1932
|
+
meta?: Record<string, unknown> | undefined;
|
|
1933
|
+
}, {
|
|
1934
|
+
errors: {
|
|
1935
|
+
status?: string | undefined;
|
|
1936
|
+
code?: string | undefined;
|
|
1937
|
+
id?: string | undefined;
|
|
1938
|
+
links?: {
|
|
1939
|
+
about?: string | undefined;
|
|
1940
|
+
} | undefined;
|
|
1941
|
+
meta?: Record<string, unknown> | undefined;
|
|
1942
|
+
title?: string | undefined;
|
|
1943
|
+
detail?: string | undefined;
|
|
1944
|
+
source?: {
|
|
1945
|
+
pointer?: string | undefined;
|
|
1946
|
+
parameter?: string | undefined;
|
|
1947
|
+
} | undefined;
|
|
1948
|
+
}[];
|
|
1949
|
+
meta?: Record<string, unknown> | undefined;
|
|
1950
|
+
}>;
|
|
1951
|
+
500: z.ZodObject<{
|
|
1952
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1953
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1954
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1955
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1956
|
+
}, "strip", z.ZodTypeAny, {
|
|
1957
|
+
about?: string | undefined;
|
|
1958
|
+
}, {
|
|
1959
|
+
about?: string | undefined;
|
|
1960
|
+
}>>;
|
|
1961
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1962
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1963
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1964
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1965
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1966
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1967
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1968
|
+
}, "strip", z.ZodTypeAny, {
|
|
1969
|
+
pointer?: string | undefined;
|
|
1970
|
+
parameter?: string | undefined;
|
|
1971
|
+
}, {
|
|
1972
|
+
pointer?: string | undefined;
|
|
1973
|
+
parameter?: string | undefined;
|
|
1974
|
+
}>>;
|
|
1975
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1976
|
+
}, "strip", z.ZodTypeAny, {
|
|
1977
|
+
status?: string | undefined;
|
|
1978
|
+
code?: string | undefined;
|
|
1979
|
+
id?: string | undefined;
|
|
1980
|
+
links?: {
|
|
1981
|
+
about?: string | undefined;
|
|
1982
|
+
} | undefined;
|
|
1983
|
+
meta?: Record<string, unknown> | undefined;
|
|
1984
|
+
title?: string | undefined;
|
|
1985
|
+
detail?: string | undefined;
|
|
1986
|
+
source?: {
|
|
1987
|
+
pointer?: string | undefined;
|
|
1988
|
+
parameter?: string | undefined;
|
|
1989
|
+
} | undefined;
|
|
1990
|
+
}, {
|
|
1991
|
+
status?: string | undefined;
|
|
1992
|
+
code?: string | undefined;
|
|
1993
|
+
id?: string | undefined;
|
|
1994
|
+
links?: {
|
|
1995
|
+
about?: string | undefined;
|
|
1996
|
+
} | undefined;
|
|
1997
|
+
meta?: Record<string, unknown> | undefined;
|
|
1998
|
+
title?: string | undefined;
|
|
1999
|
+
detail?: string | undefined;
|
|
2000
|
+
source?: {
|
|
2001
|
+
pointer?: string | undefined;
|
|
2002
|
+
parameter?: string | undefined;
|
|
2003
|
+
} | undefined;
|
|
2004
|
+
}>, "many">;
|
|
2005
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2006
|
+
}, "strip", z.ZodTypeAny, {
|
|
2007
|
+
errors: {
|
|
2008
|
+
status?: string | undefined;
|
|
2009
|
+
code?: string | undefined;
|
|
2010
|
+
id?: string | undefined;
|
|
2011
|
+
links?: {
|
|
2012
|
+
about?: string | undefined;
|
|
2013
|
+
} | undefined;
|
|
2014
|
+
meta?: Record<string, unknown> | undefined;
|
|
2015
|
+
title?: string | undefined;
|
|
2016
|
+
detail?: string | undefined;
|
|
2017
|
+
source?: {
|
|
2018
|
+
pointer?: string | undefined;
|
|
2019
|
+
parameter?: string | undefined;
|
|
2020
|
+
} | undefined;
|
|
2021
|
+
}[];
|
|
2022
|
+
meta?: Record<string, unknown> | undefined;
|
|
2023
|
+
}, {
|
|
2024
|
+
errors: {
|
|
2025
|
+
status?: string | undefined;
|
|
2026
|
+
code?: string | undefined;
|
|
2027
|
+
id?: string | undefined;
|
|
2028
|
+
links?: {
|
|
2029
|
+
about?: string | undefined;
|
|
2030
|
+
} | undefined;
|
|
2031
|
+
meta?: Record<string, unknown> | undefined;
|
|
2032
|
+
title?: string | undefined;
|
|
2033
|
+
detail?: string | undefined;
|
|
2034
|
+
source?: {
|
|
2035
|
+
pointer?: string | undefined;
|
|
2036
|
+
parameter?: string | undefined;
|
|
2037
|
+
} | undefined;
|
|
2038
|
+
}[];
|
|
2039
|
+
meta?: Record<string, unknown> | undefined;
|
|
2040
|
+
}>;
|
|
2041
|
+
};
|
|
2042
|
+
};
|
|
1540
2043
|
generateSurveyGeoJSON: {
|
|
1541
2044
|
summary: "Generate GeoJSON from survey document";
|
|
1542
2045
|
description: "Upload a survey document (PDF or image) and generate standardized GeoJSON. The agent intelligently extracts survey data, handles errors, and makes approximations when needed to create accurate geospatial boundaries.";
|
|
@@ -4496,12 +4999,15 @@ export declare const agentsRouter: {
|
|
|
4496
4999
|
method: "POST";
|
|
4497
5000
|
body: z.ZodObject<{
|
|
4498
5001
|
message: z.ZodString;
|
|
5002
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
4499
5003
|
supervisedMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4500
5004
|
}, "strip", z.ZodTypeAny, {
|
|
4501
5005
|
message: string;
|
|
4502
5006
|
supervisedMode: boolean;
|
|
5007
|
+
conversationId?: string | undefined;
|
|
4503
5008
|
}, {
|
|
4504
5009
|
message: string;
|
|
5010
|
+
conversationId?: string | undefined;
|
|
4505
5011
|
supervisedMode?: boolean | undefined;
|
|
4506
5012
|
}>;
|
|
4507
5013
|
path: "/farms/:farmId/farm-brain/chat";
|
|
@@ -5170,14 +5676,17 @@ export declare const agentsRouter: {
|
|
|
5170
5676
|
body: z.ZodObject<{
|
|
5171
5677
|
message: z.ZodString;
|
|
5172
5678
|
language: z.ZodString;
|
|
5679
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
5173
5680
|
supervisedMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5174
5681
|
}, "strip", z.ZodTypeAny, {
|
|
5175
5682
|
message: string;
|
|
5176
5683
|
language: string;
|
|
5177
5684
|
supervisedMode: boolean;
|
|
5685
|
+
conversationId?: string | undefined;
|
|
5178
5686
|
}, {
|
|
5179
5687
|
message: string;
|
|
5180
5688
|
language: string;
|
|
5689
|
+
conversationId?: string | undefined;
|
|
5181
5690
|
supervisedMode?: boolean | undefined;
|
|
5182
5691
|
}>;
|
|
5183
5692
|
path: "/farms/:farmId/farm-brain/chat-localized";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.routes.d.ts","sourceRoot":"","sources":["../../src/routes/agents.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"agents.routes.d.ts","sourceRoot":"","sources":["../../src/routes/agents.routes.ts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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuPvB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initContract } from '@ts-rest/core';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { chatRequestSchema, agentChatResponseSchema, conversationHistoryResponseSchema, conversationListResponseSchema, surveyGeoJsonResponseSchema, resourceConflictResponseSchema, gddTrackerResponseSchema, reorderInsightsResponseSchema, weeklyWorkOrdersResponseSchema, pestScoutingCalendarResponseSchema, harvestReadinessResponseSchema, farmBrainChatRequestSchema, farmBrainChatResponseSchema, dailyBriefingResponseSchema, farmBrainLocalizedRequestSchema, farmBrainLocalizedResponseSchema, ussdQueryRequestSchema, ussdQueryResponseSchema, } from '../schemas/agents.schemas';
|
|
3
|
+
import { chatRequestSchema, agentChatResponseSchema, conversationHistoryResponseSchema, conversationListResponseSchema, updateConversationTitleRequestSchema, conversationResponseSchema, surveyGeoJsonResponseSchema, resourceConflictResponseSchema, gddTrackerResponseSchema, reorderInsightsResponseSchema, weeklyWorkOrdersResponseSchema, pestScoutingCalendarResponseSchema, harvestReadinessResponseSchema, farmBrainChatRequestSchema, farmBrainChatResponseSchema, dailyBriefingResponseSchema, farmBrainLocalizedRequestSchema, farmBrainLocalizedResponseSchema, ussdQueryRequestSchema, ussdQueryResponseSchema, } from '../schemas/agents.schemas';
|
|
4
4
|
import { jsonApiErrorResponseSchema } from '../schemas/common.schemas';
|
|
5
5
|
const c = initContract();
|
|
6
6
|
export const agentsRouter = c.router({
|
|
@@ -88,6 +88,24 @@ export const agentsRouter = c.router({
|
|
|
88
88
|
summary: 'List all conversations for a farm',
|
|
89
89
|
description: 'Retrieve a list of all conversations for a specific farm, ordered by most recent first',
|
|
90
90
|
},
|
|
91
|
+
// Update conversation title
|
|
92
|
+
updateConversationTitle: {
|
|
93
|
+
method: 'PATCH',
|
|
94
|
+
path: '/agents/agronomics/conversations/:conversationId',
|
|
95
|
+
pathParams: z.object({
|
|
96
|
+
conversationId: z.string().uuid(),
|
|
97
|
+
}),
|
|
98
|
+
body: updateConversationTitleRequestSchema,
|
|
99
|
+
responses: {
|
|
100
|
+
200: conversationResponseSchema,
|
|
101
|
+
400: jsonApiErrorResponseSchema,
|
|
102
|
+
401: jsonApiErrorResponseSchema,
|
|
103
|
+
404: jsonApiErrorResponseSchema,
|
|
104
|
+
500: jsonApiErrorResponseSchema,
|
|
105
|
+
},
|
|
106
|
+
summary: 'Update conversation title',
|
|
107
|
+
description: 'Rename an existing agronomics conversation',
|
|
108
|
+
},
|
|
91
109
|
// Generate GeoJSON from survey document
|
|
92
110
|
generateSurveyGeoJSON: {
|
|
93
111
|
method: 'POST',
|
|
@@ -972,6 +972,197 @@ export declare const conversationListResponseSchema: z.ZodObject<{
|
|
|
972
972
|
meta?: Record<string, unknown> | undefined;
|
|
973
973
|
}[] | undefined;
|
|
974
974
|
}>;
|
|
975
|
+
export declare const updateConversationTitleRequestSchema: z.ZodObject<{
|
|
976
|
+
title: z.ZodString;
|
|
977
|
+
}, "strip", z.ZodTypeAny, {
|
|
978
|
+
title: string;
|
|
979
|
+
}, {
|
|
980
|
+
title: string;
|
|
981
|
+
}>;
|
|
982
|
+
export declare const conversationResourceAttributesSchema: z.ZodObject<{
|
|
983
|
+
title: z.ZodNullable<z.ZodString>;
|
|
984
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
985
|
+
farmId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
986
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
987
|
+
}, "strip", z.ZodTypeAny, {
|
|
988
|
+
title: string | null;
|
|
989
|
+
updatedAt?: string | undefined;
|
|
990
|
+
summary?: string | null | undefined;
|
|
991
|
+
farmId?: string | null | undefined;
|
|
992
|
+
}, {
|
|
993
|
+
title: string | null;
|
|
994
|
+
updatedAt?: string | undefined;
|
|
995
|
+
summary?: string | null | undefined;
|
|
996
|
+
farmId?: string | null | undefined;
|
|
997
|
+
}>;
|
|
998
|
+
export declare const conversationResourceSchema: z.ZodObject<{
|
|
999
|
+
type: z.ZodLiteral<string>;
|
|
1000
|
+
id: z.ZodString;
|
|
1001
|
+
attributes: z.ZodObject<{
|
|
1002
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1003
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1004
|
+
farmId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1005
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
}, "strip", z.ZodTypeAny, {
|
|
1007
|
+
title: string | null;
|
|
1008
|
+
updatedAt?: string | undefined;
|
|
1009
|
+
summary?: string | null | undefined;
|
|
1010
|
+
farmId?: string | null | undefined;
|
|
1011
|
+
}, {
|
|
1012
|
+
title: string | null;
|
|
1013
|
+
updatedAt?: string | undefined;
|
|
1014
|
+
summary?: string | null | undefined;
|
|
1015
|
+
farmId?: string | null | undefined;
|
|
1016
|
+
}>;
|
|
1017
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1018
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1019
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1020
|
+
}, "strip", z.ZodTypeAny, {
|
|
1021
|
+
type: string;
|
|
1022
|
+
id: string;
|
|
1023
|
+
attributes: {
|
|
1024
|
+
title: string | null;
|
|
1025
|
+
updatedAt?: string | undefined;
|
|
1026
|
+
summary?: string | null | undefined;
|
|
1027
|
+
farmId?: string | null | undefined;
|
|
1028
|
+
};
|
|
1029
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1030
|
+
links?: Record<string, string> | undefined;
|
|
1031
|
+
meta?: Record<string, unknown> | undefined;
|
|
1032
|
+
}, {
|
|
1033
|
+
type: string;
|
|
1034
|
+
id: string;
|
|
1035
|
+
attributes: {
|
|
1036
|
+
title: string | null;
|
|
1037
|
+
updatedAt?: string | undefined;
|
|
1038
|
+
summary?: string | null | undefined;
|
|
1039
|
+
farmId?: string | null | undefined;
|
|
1040
|
+
};
|
|
1041
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1042
|
+
links?: Record<string, string> | undefined;
|
|
1043
|
+
meta?: Record<string, unknown> | undefined;
|
|
1044
|
+
}>;
|
|
1045
|
+
export declare const conversationResponseSchema: z.ZodObject<{
|
|
1046
|
+
data: z.ZodObject<{
|
|
1047
|
+
type: z.ZodLiteral<string>;
|
|
1048
|
+
id: z.ZodString;
|
|
1049
|
+
attributes: z.ZodObject<{
|
|
1050
|
+
title: z.ZodNullable<z.ZodString>;
|
|
1051
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1052
|
+
farmId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1053
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
1054
|
+
}, "strip", z.ZodTypeAny, {
|
|
1055
|
+
title: string | null;
|
|
1056
|
+
updatedAt?: string | undefined;
|
|
1057
|
+
summary?: string | null | undefined;
|
|
1058
|
+
farmId?: string | null | undefined;
|
|
1059
|
+
}, {
|
|
1060
|
+
title: string | null;
|
|
1061
|
+
updatedAt?: string | undefined;
|
|
1062
|
+
summary?: string | null | undefined;
|
|
1063
|
+
farmId?: string | null | undefined;
|
|
1064
|
+
}>;
|
|
1065
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1066
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1067
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1068
|
+
}, "strip", z.ZodTypeAny, {
|
|
1069
|
+
type: string;
|
|
1070
|
+
id: string;
|
|
1071
|
+
attributes: {
|
|
1072
|
+
title: string | null;
|
|
1073
|
+
updatedAt?: string | undefined;
|
|
1074
|
+
summary?: string | null | undefined;
|
|
1075
|
+
farmId?: string | null | undefined;
|
|
1076
|
+
};
|
|
1077
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1078
|
+
links?: Record<string, string> | undefined;
|
|
1079
|
+
meta?: Record<string, unknown> | undefined;
|
|
1080
|
+
}, {
|
|
1081
|
+
type: string;
|
|
1082
|
+
id: string;
|
|
1083
|
+
attributes: {
|
|
1084
|
+
title: string | null;
|
|
1085
|
+
updatedAt?: string | undefined;
|
|
1086
|
+
summary?: string | null | undefined;
|
|
1087
|
+
farmId?: string | null | undefined;
|
|
1088
|
+
};
|
|
1089
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1090
|
+
links?: Record<string, string> | undefined;
|
|
1091
|
+
meta?: Record<string, unknown> | undefined;
|
|
1092
|
+
}>;
|
|
1093
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1094
|
+
type: z.ZodString;
|
|
1095
|
+
id: z.ZodString;
|
|
1096
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1097
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1098
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1099
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1100
|
+
}, "strip", z.ZodTypeAny, {
|
|
1101
|
+
type: string;
|
|
1102
|
+
id: string;
|
|
1103
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1104
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1105
|
+
links?: Record<string, string> | undefined;
|
|
1106
|
+
meta?: Record<string, unknown> | undefined;
|
|
1107
|
+
}, {
|
|
1108
|
+
type: string;
|
|
1109
|
+
id: string;
|
|
1110
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1111
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1112
|
+
links?: Record<string, string> | undefined;
|
|
1113
|
+
meta?: Record<string, unknown> | undefined;
|
|
1114
|
+
}>, "many">>;
|
|
1115
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1116
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1117
|
+
}, "strip", z.ZodTypeAny, {
|
|
1118
|
+
data: {
|
|
1119
|
+
type: string;
|
|
1120
|
+
id: string;
|
|
1121
|
+
attributes: {
|
|
1122
|
+
title: string | null;
|
|
1123
|
+
updatedAt?: string | undefined;
|
|
1124
|
+
summary?: string | null | undefined;
|
|
1125
|
+
farmId?: string | null | undefined;
|
|
1126
|
+
};
|
|
1127
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1128
|
+
links?: Record<string, string> | undefined;
|
|
1129
|
+
meta?: Record<string, unknown> | undefined;
|
|
1130
|
+
};
|
|
1131
|
+
links?: Record<string, string> | undefined;
|
|
1132
|
+
meta?: Record<string, unknown> | undefined;
|
|
1133
|
+
included?: {
|
|
1134
|
+
type: string;
|
|
1135
|
+
id: string;
|
|
1136
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1137
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1138
|
+
links?: Record<string, string> | undefined;
|
|
1139
|
+
meta?: Record<string, unknown> | undefined;
|
|
1140
|
+
}[] | undefined;
|
|
1141
|
+
}, {
|
|
1142
|
+
data: {
|
|
1143
|
+
type: string;
|
|
1144
|
+
id: string;
|
|
1145
|
+
attributes: {
|
|
1146
|
+
title: string | null;
|
|
1147
|
+
updatedAt?: string | undefined;
|
|
1148
|
+
summary?: string | null | undefined;
|
|
1149
|
+
farmId?: string | null | undefined;
|
|
1150
|
+
};
|
|
1151
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1152
|
+
links?: Record<string, string> | undefined;
|
|
1153
|
+
meta?: Record<string, unknown> | undefined;
|
|
1154
|
+
};
|
|
1155
|
+
links?: Record<string, string> | undefined;
|
|
1156
|
+
meta?: Record<string, unknown> | undefined;
|
|
1157
|
+
included?: {
|
|
1158
|
+
type: string;
|
|
1159
|
+
id: string;
|
|
1160
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1161
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1162
|
+
links?: Record<string, string> | undefined;
|
|
1163
|
+
meta?: Record<string, unknown> | undefined;
|
|
1164
|
+
}[] | undefined;
|
|
1165
|
+
}>;
|
|
975
1166
|
export declare const geojsonCrsSchema: z.ZodObject<{
|
|
976
1167
|
type: z.ZodLiteral<"name">;
|
|
977
1168
|
properties: z.ZodObject<{
|
|
@@ -3483,13 +3674,17 @@ export declare const farmBrainProposedActionSchema: z.ZodObject<{
|
|
|
3483
3674
|
}>;
|
|
3484
3675
|
export declare const farmBrainChatRequestSchema: z.ZodObject<{
|
|
3485
3676
|
message: z.ZodString;
|
|
3677
|
+
/** Continue an existing AgentConversation when set */
|
|
3678
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3486
3679
|
/** When true (default), write actions are proposals only until Accept */
|
|
3487
3680
|
supervisedMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3488
3681
|
}, "strip", z.ZodTypeAny, {
|
|
3489
3682
|
message: string;
|
|
3490
3683
|
supervisedMode: boolean;
|
|
3684
|
+
conversationId?: string | undefined;
|
|
3491
3685
|
}, {
|
|
3492
3686
|
message: string;
|
|
3687
|
+
conversationId?: string | undefined;
|
|
3493
3688
|
supervisedMode?: boolean | undefined;
|
|
3494
3689
|
}>;
|
|
3495
3690
|
export declare const farmBrainChatResponseSchema: z.ZodObject<{
|
|
@@ -3680,14 +3875,17 @@ export declare const dailyBriefingResponseSchema: z.ZodObject<{
|
|
|
3680
3875
|
export declare const farmBrainLocalizedRequestSchema: z.ZodObject<{
|
|
3681
3876
|
message: z.ZodString;
|
|
3682
3877
|
language: z.ZodString;
|
|
3878
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
3683
3879
|
supervisedMode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
3684
3880
|
}, "strip", z.ZodTypeAny, {
|
|
3685
3881
|
message: string;
|
|
3686
3882
|
language: string;
|
|
3687
3883
|
supervisedMode: boolean;
|
|
3884
|
+
conversationId?: string | undefined;
|
|
3688
3885
|
}, {
|
|
3689
3886
|
message: string;
|
|
3690
3887
|
language: string;
|
|
3888
|
+
conversationId?: string | undefined;
|
|
3691
3889
|
supervisedMode?: boolean | undefined;
|
|
3692
3890
|
}>;
|
|
3693
3891
|
export declare const farmBrainLocalizedResponseSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.schemas.d.ts","sourceRoot":"","sources":["../../src/schemas/agents.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AAGH,eAAO,MAAM,iBAAiB,kCAAgC,CAAC;AAG/D,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAGH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC;AAGH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG5B,CAAC;AAGH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI5C,CAAC;AAGH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3C,CAAC;AAGF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -75,6 +75,17 @@ export const conversationListAttributesSchema = z.object({
|
|
|
75
75
|
export const conversationListResourceSchema = createJsonApiResourceSchema('conversation-lists', conversationListAttributesSchema);
|
|
76
76
|
// Conversation list response
|
|
77
77
|
export const conversationListResponseSchema = jsonApiSingleResponseSchema(conversationListResourceSchema);
|
|
78
|
+
export const updateConversationTitleRequestSchema = z.object({
|
|
79
|
+
title: z.string().min(1).max(200),
|
|
80
|
+
});
|
|
81
|
+
export const conversationResourceAttributesSchema = z.object({
|
|
82
|
+
title: z.string().nullable(),
|
|
83
|
+
summary: z.string().nullable().optional(),
|
|
84
|
+
farmId: z.string().uuid().nullable().optional(),
|
|
85
|
+
updatedAt: z.string().datetime().optional(),
|
|
86
|
+
});
|
|
87
|
+
export const conversationResourceSchema = createJsonApiResourceSchema('conversations', conversationResourceAttributesSchema);
|
|
88
|
+
export const conversationResponseSchema = jsonApiSingleResponseSchema(conversationResourceSchema);
|
|
78
89
|
// Survey GeoJSON schemas
|
|
79
90
|
export const geojsonCrsSchema = z.object({
|
|
80
91
|
type: z.literal('name'),
|
|
@@ -274,6 +285,8 @@ export const farmBrainProposedActionSchema = z.object({
|
|
|
274
285
|
});
|
|
275
286
|
export const farmBrainChatRequestSchema = z.object({
|
|
276
287
|
message: z.string().min(1).max(5000),
|
|
288
|
+
/** Continue an existing AgentConversation when set */
|
|
289
|
+
conversationId: z.string().uuid().optional(),
|
|
277
290
|
/** When true (default), write actions are proposals only until Accept */
|
|
278
291
|
supervisedMode: z.boolean().optional().default(true),
|
|
279
292
|
});
|
|
@@ -305,6 +318,7 @@ export const dailyBriefingResponseSchema = z.object({
|
|
|
305
318
|
export const farmBrainLocalizedRequestSchema = z.object({
|
|
306
319
|
message: z.string().min(1).max(5000),
|
|
307
320
|
language: z.string().min(2).max(20), // e.g. en, fr, sw, yo, ha, am
|
|
321
|
+
conversationId: z.string().uuid().optional(),
|
|
308
322
|
supervisedMode: z.boolean().optional().default(true),
|
|
309
323
|
});
|
|
310
324
|
export const farmBrainLocalizedResponseSchema = z.object({
|