@vibes.diy/api-types 2.6.1 → 2.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chat.d.ts CHANGED
@@ -1285,6 +1285,20 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
1285
1285
  verbosity?: "high" | "low" | "max" | "medium" | undefined;
1286
1286
  modalities?: string[] | undefined;
1287
1287
  };
1288
+ } | {
1289
+ streamId: string;
1290
+ chatId: string;
1291
+ seq: number;
1292
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1293
+ type: "prompt.model-resolved";
1294
+ model: string;
1295
+ } | {
1296
+ streamId: string;
1297
+ chatId: string;
1298
+ seq: number;
1299
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1300
+ type: "prompt.raw";
1301
+ text: string;
1288
1302
  }, {}>;
1289
1303
  export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
1290
1304
  export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
@@ -1614,10 +1628,1076 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
1614
1628
  verbosity?: "high" | "low" | "max" | "medium" | undefined;
1615
1629
  modalities?: string[] | undefined;
1616
1630
  };
1631
+ } | {
1632
+ streamId: string;
1633
+ chatId: string;
1634
+ seq: number;
1635
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1636
+ type: "prompt.model-resolved";
1637
+ model: string;
1638
+ } | {
1639
+ streamId: string;
1640
+ chatId: string;
1641
+ seq: number;
1642
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1643
+ type: "prompt.raw";
1644
+ text: string;
1617
1645
  })[];
1618
1646
  }, {}>;
1619
1647
  export type SectionEvent = typeof sectionEvent.infer;
1620
1648
  export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
1649
+ export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
1650
+ type: "vibes.diy.req-get-chat-response";
1651
+ auth: {
1652
+ type: "clerk" | "device-id" | "ucan";
1653
+ token: string;
1654
+ };
1655
+ ownerHandle: string;
1656
+ appSlug: string;
1657
+ chatId?: string | undefined;
1658
+ promptId?: string | undefined;
1659
+ }, {}>;
1660
+ export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
1661
+ export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
1662
+ export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
1663
+ blockSeq: number;
1664
+ blocks: ({
1665
+ blockId: string;
1666
+ streamId: string;
1667
+ seq: number;
1668
+ blockNr: number;
1669
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1670
+ type: "block.begin";
1671
+ } | {
1672
+ blockId: string;
1673
+ streamId: string;
1674
+ seq: number;
1675
+ blockNr: number;
1676
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1677
+ type: "block.end";
1678
+ stats: {
1679
+ toplevel: {
1680
+ lines: number;
1681
+ bytes: number;
1682
+ cnt?: number | undefined;
1683
+ };
1684
+ code: {
1685
+ lines: number;
1686
+ bytes: number;
1687
+ cnt?: number | undefined;
1688
+ };
1689
+ image: {
1690
+ lines: number;
1691
+ bytes: number;
1692
+ cnt?: number | undefined;
1693
+ };
1694
+ total: {
1695
+ lines: number;
1696
+ bytes: number;
1697
+ cnt?: number | undefined;
1698
+ };
1699
+ };
1700
+ usage: {
1701
+ given: {
1702
+ prompt_tokens: number;
1703
+ completion_tokens: number;
1704
+ total_tokens: number;
1705
+ }[];
1706
+ calculated: {
1707
+ prompt_tokens: number;
1708
+ completion_tokens: number;
1709
+ total_tokens: number;
1710
+ };
1711
+ };
1712
+ fsRef?: ((In: {
1713
+ appSlug: string;
1714
+ ownerHandle?: string | undefined;
1715
+ userSlug?: string | undefined;
1716
+ mode: "dev" | "production";
1717
+ fsId: string;
1718
+ }) => import("arktype").Out<{
1719
+ appSlug: string;
1720
+ mode: "dev" | "production";
1721
+ fsId: string;
1722
+ ownerHandle: string;
1723
+ }>) | undefined;
1724
+ } | {
1725
+ blockId: string;
1726
+ streamId: string;
1727
+ seq: number;
1728
+ blockNr: number;
1729
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1730
+ type: "block.toplevel.begin";
1731
+ sectionId: string;
1732
+ } | {
1733
+ blockId: string;
1734
+ streamId: string;
1735
+ seq: number;
1736
+ blockNr: number;
1737
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1738
+ lineNr: number;
1739
+ line: string;
1740
+ type: "block.toplevel.line";
1741
+ sectionId: string;
1742
+ } | {
1743
+ blockId: string;
1744
+ streamId: string;
1745
+ seq: number;
1746
+ blockNr: number;
1747
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1748
+ stats: {
1749
+ lines: number;
1750
+ bytes: number;
1751
+ cnt?: number | undefined;
1752
+ };
1753
+ type: "block.toplevel.end";
1754
+ sectionId: string;
1755
+ } | {
1756
+ blockId: string;
1757
+ streamId: string;
1758
+ seq: number;
1759
+ blockNr: number;
1760
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1761
+ type: "block.code.begin";
1762
+ sectionId: string;
1763
+ lang: string;
1764
+ path?: string | undefined;
1765
+ } | {
1766
+ blockId: string;
1767
+ streamId: string;
1768
+ seq: number;
1769
+ blockNr: number;
1770
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1771
+ lineNr: number;
1772
+ line: string;
1773
+ type: "block.code.line";
1774
+ sectionId: string;
1775
+ lang: string;
1776
+ path?: string | undefined;
1777
+ } | {
1778
+ blockId: string;
1779
+ streamId: string;
1780
+ seq: number;
1781
+ blockNr: number;
1782
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1783
+ stats: {
1784
+ lines: number;
1785
+ bytes: number;
1786
+ cnt?: number | undefined;
1787
+ };
1788
+ type: "block.code.end";
1789
+ sectionId: string;
1790
+ lang: string;
1791
+ path?: string | undefined;
1792
+ } | {
1793
+ blockId: string;
1794
+ streamId: string;
1795
+ seq: number;
1796
+ blockNr: number;
1797
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1798
+ type: "block.code.truncated";
1799
+ sectionId: string;
1800
+ lang: string;
1801
+ path?: string | undefined;
1802
+ reason: string;
1803
+ kind: string;
1804
+ truncatedAtLine: number;
1805
+ errorCount: number;
1806
+ } | {
1807
+ blockId: string;
1808
+ streamId: string;
1809
+ seq: number;
1810
+ blockNr: number;
1811
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1812
+ stats: {
1813
+ lines: number;
1814
+ bytes: number;
1815
+ cnt?: number | undefined;
1816
+ };
1817
+ type: "block.image";
1818
+ sectionId: string;
1819
+ url?: string | undefined;
1820
+ uploadId?: string | undefined;
1821
+ cid?: string | undefined;
1822
+ mimeType?: string | undefined;
1823
+ size?: number | undefined;
1824
+ } | {
1825
+ blockId: string;
1826
+ streamId: string;
1827
+ seq: number;
1828
+ blockNr: number;
1829
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1830
+ type: "block.stats";
1831
+ stats: {
1832
+ toplevel: {
1833
+ lines: number;
1834
+ bytes: number;
1835
+ cnt?: number | undefined;
1836
+ };
1837
+ code: {
1838
+ lines: number;
1839
+ bytes: number;
1840
+ cnt?: number | undefined;
1841
+ };
1842
+ image: {
1843
+ lines: number;
1844
+ bytes: number;
1845
+ cnt?: number | undefined;
1846
+ };
1847
+ total: {
1848
+ lines: number;
1849
+ bytes: number;
1850
+ cnt?: number | undefined;
1851
+ };
1852
+ };
1853
+ usage: {
1854
+ prompt_tokens: number;
1855
+ completion_tokens: number;
1856
+ total_tokens: number;
1857
+ };
1858
+ } | {
1859
+ streamId: string;
1860
+ chatId: string;
1861
+ seq: number;
1862
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1863
+ type: "prompt.block-begin";
1864
+ } | {
1865
+ streamId: string;
1866
+ chatId: string;
1867
+ seq: number;
1868
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1869
+ type: "prompt.block-end";
1870
+ } | {
1871
+ streamId: string;
1872
+ chatId: string;
1873
+ seq: number;
1874
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1875
+ type: "prompt.req";
1876
+ request: {
1877
+ model?: string | undefined;
1878
+ messages: {
1879
+ role: "assistant" | "system" | "user";
1880
+ content: ({
1881
+ type: "text";
1882
+ text: string;
1883
+ } | {
1884
+ type: "image_url";
1885
+ image_url: {
1886
+ url: string;
1887
+ };
1888
+ })[];
1889
+ }[];
1890
+ stream?: boolean | undefined;
1891
+ temperature?: number | undefined;
1892
+ max_tokens?: number | undefined;
1893
+ top_p?: number | undefined;
1894
+ logprobs?: boolean | undefined;
1895
+ top_logsprobs?: number | undefined;
1896
+ frequency_penalty?: number | undefined;
1897
+ presence_penalty?: number | undefined;
1898
+ stop?: string | string[] | undefined;
1899
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
1900
+ modalities?: string[] | undefined;
1901
+ };
1902
+ } | {
1903
+ streamId: string;
1904
+ chatId: string;
1905
+ seq: number;
1906
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1907
+ type: "prompt.error";
1908
+ error: string;
1909
+ } | {
1910
+ streamId: string;
1911
+ chatId: string;
1912
+ seq: number;
1913
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1914
+ type: "prompt.fs";
1915
+ fileSystem: ({
1916
+ filename: string;
1917
+ entryPoint?: boolean | undefined;
1918
+ mimetype?: string | undefined;
1919
+ type: "code-block";
1920
+ lang: string;
1921
+ content: string;
1922
+ } | {
1923
+ filename: string;
1924
+ entryPoint?: boolean | undefined;
1925
+ mimetype?: string | undefined;
1926
+ type: "code-ref";
1927
+ refId: string;
1928
+ } | {
1929
+ filename: string;
1930
+ entryPoint?: boolean | undefined;
1931
+ mimetype?: string | undefined;
1932
+ type: "str-asset-block";
1933
+ content: string;
1934
+ } | {
1935
+ filename: string;
1936
+ entryPoint?: boolean | undefined;
1937
+ mimetype?: string | undefined;
1938
+ type: "str-asset-ref";
1939
+ refId: string;
1940
+ } | {
1941
+ filename: string;
1942
+ entryPoint?: boolean | undefined;
1943
+ mimetype?: string | undefined;
1944
+ type: "uint8-asset-block";
1945
+ content: Uint8Array<ArrayBuffer>;
1946
+ } | {
1947
+ filename: string;
1948
+ entryPoint?: boolean | undefined;
1949
+ mimetype?: string | undefined;
1950
+ type: "uint8-asset-ref";
1951
+ refId: string;
1952
+ })[];
1953
+ } | {
1954
+ streamId: string;
1955
+ chatId: string;
1956
+ seq: number;
1957
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1958
+ type: "prompt.dry-run-payload";
1959
+ request: {
1960
+ model?: string | undefined;
1961
+ messages: {
1962
+ role: "assistant" | "system" | "user";
1963
+ content: ({
1964
+ type: "text";
1965
+ text: string;
1966
+ } | {
1967
+ type: "image_url";
1968
+ image_url: {
1969
+ url: string;
1970
+ };
1971
+ })[];
1972
+ }[];
1973
+ stream?: boolean | undefined;
1974
+ temperature?: number | undefined;
1975
+ max_tokens?: number | undefined;
1976
+ top_p?: number | undefined;
1977
+ logprobs?: boolean | undefined;
1978
+ top_logsprobs?: number | undefined;
1979
+ frequency_penalty?: number | undefined;
1980
+ presence_penalty?: number | undefined;
1981
+ stop?: string | string[] | undefined;
1982
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
1983
+ modalities?: string[] | undefined;
1984
+ };
1985
+ } | {
1986
+ streamId: string;
1987
+ chatId: string;
1988
+ seq: number;
1989
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1990
+ type: "prompt.model-resolved";
1991
+ model: string;
1992
+ } | {
1993
+ streamId: string;
1994
+ chatId: string;
1995
+ seq: number;
1996
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
1997
+ type: "prompt.raw";
1998
+ text: string;
1999
+ })[];
2000
+ }, {}>;
2001
+ export type ResChatResponseSection = typeof resChatResponseSection.infer;
2002
+ export declare const resChatResponseTurn: import("arktype/internal/variants/object.ts").ObjectType<{
2003
+ chatId: string;
2004
+ promptId: string;
2005
+ created: string;
2006
+ fsId?: string | undefined;
2007
+ sections: {
2008
+ blockSeq: number;
2009
+ blocks: ({
2010
+ blockId: string;
2011
+ streamId: string;
2012
+ seq: number;
2013
+ blockNr: number;
2014
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2015
+ type: "block.begin";
2016
+ } | {
2017
+ blockId: string;
2018
+ streamId: string;
2019
+ seq: number;
2020
+ blockNr: number;
2021
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2022
+ type: "block.end";
2023
+ stats: {
2024
+ toplevel: {
2025
+ lines: number;
2026
+ bytes: number;
2027
+ cnt?: number | undefined;
2028
+ };
2029
+ code: {
2030
+ lines: number;
2031
+ bytes: number;
2032
+ cnt?: number | undefined;
2033
+ };
2034
+ image: {
2035
+ lines: number;
2036
+ bytes: number;
2037
+ cnt?: number | undefined;
2038
+ };
2039
+ total: {
2040
+ lines: number;
2041
+ bytes: number;
2042
+ cnt?: number | undefined;
2043
+ };
2044
+ };
2045
+ usage: {
2046
+ given: {
2047
+ prompt_tokens: number;
2048
+ completion_tokens: number;
2049
+ total_tokens: number;
2050
+ }[];
2051
+ calculated: {
2052
+ prompt_tokens: number;
2053
+ completion_tokens: number;
2054
+ total_tokens: number;
2055
+ };
2056
+ };
2057
+ fsRef?: ((In: {
2058
+ appSlug: string;
2059
+ ownerHandle?: string | undefined;
2060
+ userSlug?: string | undefined;
2061
+ mode: "dev" | "production";
2062
+ fsId: string;
2063
+ }) => import("arktype").Out<{
2064
+ appSlug: string;
2065
+ mode: "dev" | "production";
2066
+ fsId: string;
2067
+ ownerHandle: string;
2068
+ }>) | undefined;
2069
+ } | {
2070
+ blockId: string;
2071
+ streamId: string;
2072
+ seq: number;
2073
+ blockNr: number;
2074
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2075
+ type: "block.toplevel.begin";
2076
+ sectionId: string;
2077
+ } | {
2078
+ blockId: string;
2079
+ streamId: string;
2080
+ seq: number;
2081
+ blockNr: number;
2082
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2083
+ lineNr: number;
2084
+ line: string;
2085
+ type: "block.toplevel.line";
2086
+ sectionId: string;
2087
+ } | {
2088
+ blockId: string;
2089
+ streamId: string;
2090
+ seq: number;
2091
+ blockNr: number;
2092
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2093
+ stats: {
2094
+ lines: number;
2095
+ bytes: number;
2096
+ cnt?: number | undefined;
2097
+ };
2098
+ type: "block.toplevel.end";
2099
+ sectionId: string;
2100
+ } | {
2101
+ blockId: string;
2102
+ streamId: string;
2103
+ seq: number;
2104
+ blockNr: number;
2105
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2106
+ type: "block.code.begin";
2107
+ sectionId: string;
2108
+ lang: string;
2109
+ path?: string | undefined;
2110
+ } | {
2111
+ blockId: string;
2112
+ streamId: string;
2113
+ seq: number;
2114
+ blockNr: number;
2115
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2116
+ lineNr: number;
2117
+ line: string;
2118
+ type: "block.code.line";
2119
+ sectionId: string;
2120
+ lang: string;
2121
+ path?: string | undefined;
2122
+ } | {
2123
+ blockId: string;
2124
+ streamId: string;
2125
+ seq: number;
2126
+ blockNr: number;
2127
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2128
+ stats: {
2129
+ lines: number;
2130
+ bytes: number;
2131
+ cnt?: number | undefined;
2132
+ };
2133
+ type: "block.code.end";
2134
+ sectionId: string;
2135
+ lang: string;
2136
+ path?: string | undefined;
2137
+ } | {
2138
+ blockId: string;
2139
+ streamId: string;
2140
+ seq: number;
2141
+ blockNr: number;
2142
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2143
+ type: "block.code.truncated";
2144
+ sectionId: string;
2145
+ lang: string;
2146
+ path?: string | undefined;
2147
+ reason: string;
2148
+ kind: string;
2149
+ truncatedAtLine: number;
2150
+ errorCount: number;
2151
+ } | {
2152
+ blockId: string;
2153
+ streamId: string;
2154
+ seq: number;
2155
+ blockNr: number;
2156
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2157
+ stats: {
2158
+ lines: number;
2159
+ bytes: number;
2160
+ cnt?: number | undefined;
2161
+ };
2162
+ type: "block.image";
2163
+ sectionId: string;
2164
+ url?: string | undefined;
2165
+ uploadId?: string | undefined;
2166
+ cid?: string | undefined;
2167
+ mimeType?: string | undefined;
2168
+ size?: number | undefined;
2169
+ } | {
2170
+ blockId: string;
2171
+ streamId: string;
2172
+ seq: number;
2173
+ blockNr: number;
2174
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2175
+ type: "block.stats";
2176
+ stats: {
2177
+ toplevel: {
2178
+ lines: number;
2179
+ bytes: number;
2180
+ cnt?: number | undefined;
2181
+ };
2182
+ code: {
2183
+ lines: number;
2184
+ bytes: number;
2185
+ cnt?: number | undefined;
2186
+ };
2187
+ image: {
2188
+ lines: number;
2189
+ bytes: number;
2190
+ cnt?: number | undefined;
2191
+ };
2192
+ total: {
2193
+ lines: number;
2194
+ bytes: number;
2195
+ cnt?: number | undefined;
2196
+ };
2197
+ };
2198
+ usage: {
2199
+ prompt_tokens: number;
2200
+ completion_tokens: number;
2201
+ total_tokens: number;
2202
+ };
2203
+ } | {
2204
+ streamId: string;
2205
+ chatId: string;
2206
+ seq: number;
2207
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2208
+ type: "prompt.block-begin";
2209
+ } | {
2210
+ streamId: string;
2211
+ chatId: string;
2212
+ seq: number;
2213
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2214
+ type: "prompt.block-end";
2215
+ } | {
2216
+ streamId: string;
2217
+ chatId: string;
2218
+ seq: number;
2219
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2220
+ type: "prompt.req";
2221
+ request: {
2222
+ model?: string | undefined;
2223
+ messages: {
2224
+ role: "assistant" | "system" | "user";
2225
+ content: ({
2226
+ type: "text";
2227
+ text: string;
2228
+ } | {
2229
+ type: "image_url";
2230
+ image_url: {
2231
+ url: string;
2232
+ };
2233
+ })[];
2234
+ }[];
2235
+ stream?: boolean | undefined;
2236
+ temperature?: number | undefined;
2237
+ max_tokens?: number | undefined;
2238
+ top_p?: number | undefined;
2239
+ logprobs?: boolean | undefined;
2240
+ top_logsprobs?: number | undefined;
2241
+ frequency_penalty?: number | undefined;
2242
+ presence_penalty?: number | undefined;
2243
+ stop?: string | string[] | undefined;
2244
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
2245
+ modalities?: string[] | undefined;
2246
+ };
2247
+ } | {
2248
+ streamId: string;
2249
+ chatId: string;
2250
+ seq: number;
2251
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2252
+ type: "prompt.error";
2253
+ error: string;
2254
+ } | {
2255
+ streamId: string;
2256
+ chatId: string;
2257
+ seq: number;
2258
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2259
+ type: "prompt.fs";
2260
+ fileSystem: ({
2261
+ filename: string;
2262
+ entryPoint?: boolean | undefined;
2263
+ mimetype?: string | undefined;
2264
+ type: "code-block";
2265
+ lang: string;
2266
+ content: string;
2267
+ } | {
2268
+ filename: string;
2269
+ entryPoint?: boolean | undefined;
2270
+ mimetype?: string | undefined;
2271
+ type: "code-ref";
2272
+ refId: string;
2273
+ } | {
2274
+ filename: string;
2275
+ entryPoint?: boolean | undefined;
2276
+ mimetype?: string | undefined;
2277
+ type: "str-asset-block";
2278
+ content: string;
2279
+ } | {
2280
+ filename: string;
2281
+ entryPoint?: boolean | undefined;
2282
+ mimetype?: string | undefined;
2283
+ type: "str-asset-ref";
2284
+ refId: string;
2285
+ } | {
2286
+ filename: string;
2287
+ entryPoint?: boolean | undefined;
2288
+ mimetype?: string | undefined;
2289
+ type: "uint8-asset-block";
2290
+ content: Uint8Array<ArrayBuffer>;
2291
+ } | {
2292
+ filename: string;
2293
+ entryPoint?: boolean | undefined;
2294
+ mimetype?: string | undefined;
2295
+ type: "uint8-asset-ref";
2296
+ refId: string;
2297
+ })[];
2298
+ } | {
2299
+ streamId: string;
2300
+ chatId: string;
2301
+ seq: number;
2302
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2303
+ type: "prompt.dry-run-payload";
2304
+ request: {
2305
+ model?: string | undefined;
2306
+ messages: {
2307
+ role: "assistant" | "system" | "user";
2308
+ content: ({
2309
+ type: "text";
2310
+ text: string;
2311
+ } | {
2312
+ type: "image_url";
2313
+ image_url: {
2314
+ url: string;
2315
+ };
2316
+ })[];
2317
+ }[];
2318
+ stream?: boolean | undefined;
2319
+ temperature?: number | undefined;
2320
+ max_tokens?: number | undefined;
2321
+ top_p?: number | undefined;
2322
+ logprobs?: boolean | undefined;
2323
+ top_logsprobs?: number | undefined;
2324
+ frequency_penalty?: number | undefined;
2325
+ presence_penalty?: number | undefined;
2326
+ stop?: string | string[] | undefined;
2327
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
2328
+ modalities?: string[] | undefined;
2329
+ };
2330
+ } | {
2331
+ streamId: string;
2332
+ chatId: string;
2333
+ seq: number;
2334
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2335
+ type: "prompt.model-resolved";
2336
+ model: string;
2337
+ } | {
2338
+ streamId: string;
2339
+ chatId: string;
2340
+ seq: number;
2341
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2342
+ type: "prompt.raw";
2343
+ text: string;
2344
+ })[];
2345
+ }[];
2346
+ }, {}>;
2347
+ export type ResChatResponseTurn = typeof resChatResponseTurn.infer;
2348
+ export declare const resGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
2349
+ type: "vibes.diy.res-get-chat-response";
2350
+ chatId?: string | undefined;
2351
+ ownerHandle: string;
2352
+ appSlug: string;
2353
+ turns: {
2354
+ chatId: string;
2355
+ promptId: string;
2356
+ created: string;
2357
+ fsId?: string | undefined;
2358
+ sections: {
2359
+ blockSeq: number;
2360
+ blocks: ({
2361
+ blockId: string;
2362
+ streamId: string;
2363
+ seq: number;
2364
+ blockNr: number;
2365
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2366
+ type: "block.begin";
2367
+ } | {
2368
+ blockId: string;
2369
+ streamId: string;
2370
+ seq: number;
2371
+ blockNr: number;
2372
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2373
+ type: "block.end";
2374
+ stats: {
2375
+ toplevel: {
2376
+ lines: number;
2377
+ bytes: number;
2378
+ cnt?: number | undefined;
2379
+ };
2380
+ code: {
2381
+ lines: number;
2382
+ bytes: number;
2383
+ cnt?: number | undefined;
2384
+ };
2385
+ image: {
2386
+ lines: number;
2387
+ bytes: number;
2388
+ cnt?: number | undefined;
2389
+ };
2390
+ total: {
2391
+ lines: number;
2392
+ bytes: number;
2393
+ cnt?: number | undefined;
2394
+ };
2395
+ };
2396
+ usage: {
2397
+ given: {
2398
+ prompt_tokens: number;
2399
+ completion_tokens: number;
2400
+ total_tokens: number;
2401
+ }[];
2402
+ calculated: {
2403
+ prompt_tokens: number;
2404
+ completion_tokens: number;
2405
+ total_tokens: number;
2406
+ };
2407
+ };
2408
+ fsRef?: ((In: {
2409
+ appSlug: string;
2410
+ ownerHandle?: string | undefined;
2411
+ userSlug?: string | undefined;
2412
+ mode: "dev" | "production";
2413
+ fsId: string;
2414
+ }) => import("arktype").Out<{
2415
+ appSlug: string;
2416
+ mode: "dev" | "production";
2417
+ fsId: string;
2418
+ ownerHandle: string;
2419
+ }>) | undefined;
2420
+ } | {
2421
+ blockId: string;
2422
+ streamId: string;
2423
+ seq: number;
2424
+ blockNr: number;
2425
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2426
+ type: "block.toplevel.begin";
2427
+ sectionId: string;
2428
+ } | {
2429
+ blockId: string;
2430
+ streamId: string;
2431
+ seq: number;
2432
+ blockNr: number;
2433
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2434
+ lineNr: number;
2435
+ line: string;
2436
+ type: "block.toplevel.line";
2437
+ sectionId: string;
2438
+ } | {
2439
+ blockId: string;
2440
+ streamId: string;
2441
+ seq: number;
2442
+ blockNr: number;
2443
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2444
+ stats: {
2445
+ lines: number;
2446
+ bytes: number;
2447
+ cnt?: number | undefined;
2448
+ };
2449
+ type: "block.toplevel.end";
2450
+ sectionId: string;
2451
+ } | {
2452
+ blockId: string;
2453
+ streamId: string;
2454
+ seq: number;
2455
+ blockNr: number;
2456
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2457
+ type: "block.code.begin";
2458
+ sectionId: string;
2459
+ lang: string;
2460
+ path?: string | undefined;
2461
+ } | {
2462
+ blockId: string;
2463
+ streamId: string;
2464
+ seq: number;
2465
+ blockNr: number;
2466
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2467
+ lineNr: number;
2468
+ line: string;
2469
+ type: "block.code.line";
2470
+ sectionId: string;
2471
+ lang: string;
2472
+ path?: string | undefined;
2473
+ } | {
2474
+ blockId: string;
2475
+ streamId: string;
2476
+ seq: number;
2477
+ blockNr: number;
2478
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2479
+ stats: {
2480
+ lines: number;
2481
+ bytes: number;
2482
+ cnt?: number | undefined;
2483
+ };
2484
+ type: "block.code.end";
2485
+ sectionId: string;
2486
+ lang: string;
2487
+ path?: string | undefined;
2488
+ } | {
2489
+ blockId: string;
2490
+ streamId: string;
2491
+ seq: number;
2492
+ blockNr: number;
2493
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2494
+ type: "block.code.truncated";
2495
+ sectionId: string;
2496
+ lang: string;
2497
+ path?: string | undefined;
2498
+ reason: string;
2499
+ kind: string;
2500
+ truncatedAtLine: number;
2501
+ errorCount: number;
2502
+ } | {
2503
+ blockId: string;
2504
+ streamId: string;
2505
+ seq: number;
2506
+ blockNr: number;
2507
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2508
+ stats: {
2509
+ lines: number;
2510
+ bytes: number;
2511
+ cnt?: number | undefined;
2512
+ };
2513
+ type: "block.image";
2514
+ sectionId: string;
2515
+ url?: string | undefined;
2516
+ uploadId?: string | undefined;
2517
+ cid?: string | undefined;
2518
+ mimeType?: string | undefined;
2519
+ size?: number | undefined;
2520
+ } | {
2521
+ blockId: string;
2522
+ streamId: string;
2523
+ seq: number;
2524
+ blockNr: number;
2525
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2526
+ type: "block.stats";
2527
+ stats: {
2528
+ toplevel: {
2529
+ lines: number;
2530
+ bytes: number;
2531
+ cnt?: number | undefined;
2532
+ };
2533
+ code: {
2534
+ lines: number;
2535
+ bytes: number;
2536
+ cnt?: number | undefined;
2537
+ };
2538
+ image: {
2539
+ lines: number;
2540
+ bytes: number;
2541
+ cnt?: number | undefined;
2542
+ };
2543
+ total: {
2544
+ lines: number;
2545
+ bytes: number;
2546
+ cnt?: number | undefined;
2547
+ };
2548
+ };
2549
+ usage: {
2550
+ prompt_tokens: number;
2551
+ completion_tokens: number;
2552
+ total_tokens: number;
2553
+ };
2554
+ } | {
2555
+ streamId: string;
2556
+ chatId: string;
2557
+ seq: number;
2558
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2559
+ type: "prompt.block-begin";
2560
+ } | {
2561
+ streamId: string;
2562
+ chatId: string;
2563
+ seq: number;
2564
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2565
+ type: "prompt.block-end";
2566
+ } | {
2567
+ streamId: string;
2568
+ chatId: string;
2569
+ seq: number;
2570
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2571
+ type: "prompt.req";
2572
+ request: {
2573
+ model?: string | undefined;
2574
+ messages: {
2575
+ role: "assistant" | "system" | "user";
2576
+ content: ({
2577
+ type: "text";
2578
+ text: string;
2579
+ } | {
2580
+ type: "image_url";
2581
+ image_url: {
2582
+ url: string;
2583
+ };
2584
+ })[];
2585
+ }[];
2586
+ stream?: boolean | undefined;
2587
+ temperature?: number | undefined;
2588
+ max_tokens?: number | undefined;
2589
+ top_p?: number | undefined;
2590
+ logprobs?: boolean | undefined;
2591
+ top_logsprobs?: number | undefined;
2592
+ frequency_penalty?: number | undefined;
2593
+ presence_penalty?: number | undefined;
2594
+ stop?: string | string[] | undefined;
2595
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
2596
+ modalities?: string[] | undefined;
2597
+ };
2598
+ } | {
2599
+ streamId: string;
2600
+ chatId: string;
2601
+ seq: number;
2602
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2603
+ type: "prompt.error";
2604
+ error: string;
2605
+ } | {
2606
+ streamId: string;
2607
+ chatId: string;
2608
+ seq: number;
2609
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2610
+ type: "prompt.fs";
2611
+ fileSystem: ({
2612
+ filename: string;
2613
+ entryPoint?: boolean | undefined;
2614
+ mimetype?: string | undefined;
2615
+ type: "code-block";
2616
+ lang: string;
2617
+ content: string;
2618
+ } | {
2619
+ filename: string;
2620
+ entryPoint?: boolean | undefined;
2621
+ mimetype?: string | undefined;
2622
+ type: "code-ref";
2623
+ refId: string;
2624
+ } | {
2625
+ filename: string;
2626
+ entryPoint?: boolean | undefined;
2627
+ mimetype?: string | undefined;
2628
+ type: "str-asset-block";
2629
+ content: string;
2630
+ } | {
2631
+ filename: string;
2632
+ entryPoint?: boolean | undefined;
2633
+ mimetype?: string | undefined;
2634
+ type: "str-asset-ref";
2635
+ refId: string;
2636
+ } | {
2637
+ filename: string;
2638
+ entryPoint?: boolean | undefined;
2639
+ mimetype?: string | undefined;
2640
+ type: "uint8-asset-block";
2641
+ content: Uint8Array<ArrayBuffer>;
2642
+ } | {
2643
+ filename: string;
2644
+ entryPoint?: boolean | undefined;
2645
+ mimetype?: string | undefined;
2646
+ type: "uint8-asset-ref";
2647
+ refId: string;
2648
+ })[];
2649
+ } | {
2650
+ streamId: string;
2651
+ chatId: string;
2652
+ seq: number;
2653
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2654
+ type: "prompt.dry-run-payload";
2655
+ request: {
2656
+ model?: string | undefined;
2657
+ messages: {
2658
+ role: "assistant" | "system" | "user";
2659
+ content: ({
2660
+ type: "text";
2661
+ text: string;
2662
+ } | {
2663
+ type: "image_url";
2664
+ image_url: {
2665
+ url: string;
2666
+ };
2667
+ })[];
2668
+ }[];
2669
+ stream?: boolean | undefined;
2670
+ temperature?: number | undefined;
2671
+ max_tokens?: number | undefined;
2672
+ top_p?: number | undefined;
2673
+ logprobs?: boolean | undefined;
2674
+ top_logsprobs?: number | undefined;
2675
+ frequency_penalty?: number | undefined;
2676
+ presence_penalty?: number | undefined;
2677
+ stop?: string | string[] | undefined;
2678
+ verbosity?: "high" | "low" | "max" | "medium" | undefined;
2679
+ modalities?: string[] | undefined;
2680
+ };
2681
+ } | {
2682
+ streamId: string;
2683
+ chatId: string;
2684
+ seq: number;
2685
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2686
+ type: "prompt.model-resolved";
2687
+ model: string;
2688
+ } | {
2689
+ streamId: string;
2690
+ chatId: string;
2691
+ seq: number;
2692
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2693
+ type: "prompt.raw";
2694
+ text: string;
2695
+ })[];
2696
+ }[];
2697
+ }[];
2698
+ }, {}>;
2699
+ export type ResGetChatResponse = typeof resGetChatResponse.infer;
2700
+ export declare function isResGetChatResponse(obj: unknown): obj is ResGetChatResponse;
1621
2701
  export declare const evtNewFsId: import("arktype/internal/variants/object.ts").ObjectType<{
1622
2702
  type: "vibes.diy.evt-new-fs-id";
1623
2703
  ownerHandle: string;