@darco2903/altv-web-api 2.0.0 → 2.2.0

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.
@@ -1034,6 +1034,23 @@ declare const _default: {
1034
1034
  title: string;
1035
1035
  duration: number;
1036
1036
  }>>;
1037
+ queue: import("zod").ZodArray<import("zod").ZodObject<{
1038
+ videoId: import("zod").ZodString;
1039
+ title: import("zod").ZodString;
1040
+ duration: import("zod").ZodNumber;
1041
+ } & {
1042
+ id: import("zod").ZodString;
1043
+ }, "strip", import("zod").ZodTypeAny, {
1044
+ videoId: string;
1045
+ title: string;
1046
+ duration: number;
1047
+ id: string;
1048
+ }, {
1049
+ videoId: string;
1050
+ title: string;
1051
+ duration: number;
1052
+ id: string;
1053
+ }>, "many">;
1037
1054
  url: import("zod").ZodNullable<import("zod").ZodString>;
1038
1055
  paused: import("zod").ZodBoolean;
1039
1056
  startTime: import("zod").ZodNumber;
@@ -1137,6 +1154,12 @@ declare const _default: {
1137
1154
  title: string;
1138
1155
  duration: number;
1139
1156
  } | null;
1157
+ queue: {
1158
+ videoId: string;
1159
+ title: string;
1160
+ duration: number;
1161
+ id: string;
1162
+ }[];
1140
1163
  url: string | null;
1141
1164
  paused: boolean;
1142
1165
  startTime: number;
@@ -1170,6 +1193,12 @@ declare const _default: {
1170
1193
  title: string;
1171
1194
  duration: number;
1172
1195
  } | null;
1196
+ queue: {
1197
+ videoId: string;
1198
+ title: string;
1199
+ duration: number;
1200
+ id: string;
1201
+ }[];
1173
1202
  url: string | null;
1174
1203
  paused: boolean;
1175
1204
  startTime: number;
@@ -1634,8 +1663,876 @@ declare const _default: {
1634
1663
  }>]>;
1635
1664
  };
1636
1665
  };
1666
+ queueAdd: {
1667
+ description: "Add a YouTube video to the queue of a room, it plays right away if the room has nothing to play. Listeners get the queue through the roomQueue socket event";
1668
+ method: "POST";
1669
+ body: import("zod").ZodObject<{
1670
+ videoId: import("zod").ZodString;
1671
+ }, "strip", import("zod").ZodTypeAny, {
1672
+ videoId: string;
1673
+ }, {
1674
+ videoId: string;
1675
+ }>;
1676
+ path: "/api/v2/room/:roomId/queue";
1677
+ responses: {
1678
+ 500: import("zod").ZodObject<{
1679
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1680
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1681
+ name: import("zod").ZodLiteral<"APIError">;
1682
+ }, "strip", import("zod").ZodTypeAny, {
1683
+ code: "INTERNAL_SERVER_ERROR";
1684
+ error: string;
1685
+ name: "APIError";
1686
+ }, {
1687
+ code: "INTERNAL_SERVER_ERROR";
1688
+ error: string;
1689
+ name: "APIError";
1690
+ }>;
1691
+ 409: import("zod").ZodObject<{
1692
+ code: import("zod").ZodType<"QUEUE_FULL", import("zod").ZodTypeDef, "QUEUE_FULL">;
1693
+ error: import("zod").ZodType<"The queue of this room is full", import("zod").ZodTypeDef, "The queue of this room is full">;
1694
+ name: import("zod").ZodLiteral<"APIError">;
1695
+ }, "strip", import("zod").ZodTypeAny, {
1696
+ code: "QUEUE_FULL";
1697
+ error: "The queue of this room is full";
1698
+ name: "APIError";
1699
+ }, {
1700
+ code: "QUEUE_FULL";
1701
+ error: "The queue of this room is full";
1702
+ name: "APIError";
1703
+ }>;
1704
+ 404: import("zod").ZodObject<{
1705
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1706
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1707
+ name: import("zod").ZodLiteral<"APIError">;
1708
+ }, "strip", import("zod").ZodTypeAny, {
1709
+ code: "ROOM_NOT_FOUND";
1710
+ error: "The requested room was not found";
1711
+ name: "APIError";
1712
+ }, {
1713
+ code: "ROOM_NOT_FOUND";
1714
+ error: "The requested room was not found";
1715
+ name: "APIError";
1716
+ }>;
1717
+ 401: import("zod").ZodObject<{
1718
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1719
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1720
+ name: import("zod").ZodLiteral<"APIError">;
1721
+ }, "strip", import("zod").ZodTypeAny, {
1722
+ code: "UNAUTHORIZED";
1723
+ error: "Unauthorized";
1724
+ name: "APIError";
1725
+ }, {
1726
+ code: "UNAUTHORIZED";
1727
+ error: "Unauthorized";
1728
+ name: "APIError";
1729
+ }>;
1730
+ 403: import("zod").ZodObject<{
1731
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1732
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1733
+ name: import("zod").ZodLiteral<"APIError">;
1734
+ }, "strip", import("zod").ZodTypeAny, {
1735
+ code: "FORBIDDEN";
1736
+ error: "Forbidden";
1737
+ name: "APIError";
1738
+ }, {
1739
+ code: "FORBIDDEN";
1740
+ error: "Forbidden";
1741
+ name: "APIError";
1742
+ }>;
1743
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1744
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1745
+ name: import("zod").ZodLiteral<"ZodError">;
1746
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1747
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1748
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1749
+ code: import("zod").ZodNativeEnum<{
1750
+ invalid_type: "invalid_type";
1751
+ invalid_literal: "invalid_literal";
1752
+ custom: "custom";
1753
+ invalid_union: "invalid_union";
1754
+ invalid_union_discriminator: "invalid_union_discriminator";
1755
+ invalid_enum_value: "invalid_enum_value";
1756
+ unrecognized_keys: "unrecognized_keys";
1757
+ invalid_arguments: "invalid_arguments";
1758
+ invalid_return_type: "invalid_return_type";
1759
+ invalid_date: "invalid_date";
1760
+ invalid_string: "invalid_string";
1761
+ too_small: "too_small";
1762
+ too_big: "too_big";
1763
+ invalid_intersection_types: "invalid_intersection_types";
1764
+ not_multiple_of: "not_multiple_of";
1765
+ not_finite: "not_finite";
1766
+ }>;
1767
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1768
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1769
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1770
+ code: import("zod").ZodNativeEnum<{
1771
+ invalid_type: "invalid_type";
1772
+ invalid_literal: "invalid_literal";
1773
+ custom: "custom";
1774
+ invalid_union: "invalid_union";
1775
+ invalid_union_discriminator: "invalid_union_discriminator";
1776
+ invalid_enum_value: "invalid_enum_value";
1777
+ unrecognized_keys: "unrecognized_keys";
1778
+ invalid_arguments: "invalid_arguments";
1779
+ invalid_return_type: "invalid_return_type";
1780
+ invalid_date: "invalid_date";
1781
+ invalid_string: "invalid_string";
1782
+ too_small: "too_small";
1783
+ too_big: "too_big";
1784
+ invalid_intersection_types: "invalid_intersection_types";
1785
+ not_multiple_of: "not_multiple_of";
1786
+ not_finite: "not_finite";
1787
+ }>;
1788
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1789
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1790
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1791
+ code: import("zod").ZodNativeEnum<{
1792
+ invalid_type: "invalid_type";
1793
+ invalid_literal: "invalid_literal";
1794
+ custom: "custom";
1795
+ invalid_union: "invalid_union";
1796
+ invalid_union_discriminator: "invalid_union_discriminator";
1797
+ invalid_enum_value: "invalid_enum_value";
1798
+ unrecognized_keys: "unrecognized_keys";
1799
+ invalid_arguments: "invalid_arguments";
1800
+ invalid_return_type: "invalid_return_type";
1801
+ invalid_date: "invalid_date";
1802
+ invalid_string: "invalid_string";
1803
+ too_small: "too_small";
1804
+ too_big: "too_big";
1805
+ invalid_intersection_types: "invalid_intersection_types";
1806
+ not_multiple_of: "not_multiple_of";
1807
+ not_finite: "not_finite";
1808
+ }>;
1809
+ }, import("zod").ZodAny, "strip">>, "many">;
1810
+ }, "strip", import("zod").ZodTypeAny, {
1811
+ name: "ZodError";
1812
+ issues: import("zod").objectOutputType<{
1813
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1814
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1815
+ code: import("zod").ZodNativeEnum<{
1816
+ invalid_type: "invalid_type";
1817
+ invalid_literal: "invalid_literal";
1818
+ custom: "custom";
1819
+ invalid_union: "invalid_union";
1820
+ invalid_union_discriminator: "invalid_union_discriminator";
1821
+ invalid_enum_value: "invalid_enum_value";
1822
+ unrecognized_keys: "unrecognized_keys";
1823
+ invalid_arguments: "invalid_arguments";
1824
+ invalid_return_type: "invalid_return_type";
1825
+ invalid_date: "invalid_date";
1826
+ invalid_string: "invalid_string";
1827
+ too_small: "too_small";
1828
+ too_big: "too_big";
1829
+ invalid_intersection_types: "invalid_intersection_types";
1830
+ not_multiple_of: "not_multiple_of";
1831
+ not_finite: "not_finite";
1832
+ }>;
1833
+ }, import("zod").ZodAny, "strip">[];
1834
+ }, {
1835
+ name: "ZodError";
1836
+ issues: import("zod").objectInputType<{
1837
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1838
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1839
+ code: import("zod").ZodNativeEnum<{
1840
+ invalid_type: "invalid_type";
1841
+ invalid_literal: "invalid_literal";
1842
+ custom: "custom";
1843
+ invalid_union: "invalid_union";
1844
+ invalid_union_discriminator: "invalid_union_discriminator";
1845
+ invalid_enum_value: "invalid_enum_value";
1846
+ unrecognized_keys: "unrecognized_keys";
1847
+ invalid_arguments: "invalid_arguments";
1848
+ invalid_return_type: "invalid_return_type";
1849
+ invalid_date: "invalid_date";
1850
+ invalid_string: "invalid_string";
1851
+ too_small: "too_small";
1852
+ too_big: "too_big";
1853
+ invalid_intersection_types: "invalid_intersection_types";
1854
+ not_multiple_of: "not_multiple_of";
1855
+ not_finite: "not_finite";
1856
+ }>;
1857
+ }, import("zod").ZodAny, "strip">[];
1858
+ }>, import("zod").ZodObject<{
1859
+ code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
1860
+ error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
1861
+ name: import("zod").ZodLiteral<"APIError">;
1862
+ }, "strip", import("zod").ZodTypeAny, {
1863
+ code: "INVALID_VIDEO_ID";
1864
+ error: "The provided video ID is invalid";
1865
+ name: "APIError";
1866
+ }, {
1867
+ code: "INVALID_VIDEO_ID";
1868
+ error: "The provided video ID is invalid";
1869
+ name: "APIError";
1870
+ }>]>;
1871
+ };
1872
+ };
1873
+ queuePlaylist: {
1874
+ description: "Add a YouTube playlist to the queue of a room, as many tracks as fit. It plays right away if the room has nothing to play. A Mix only exists around a video, it needs videoId";
1875
+ method: "POST";
1876
+ body: import("zod").ZodObject<{
1877
+ playlistId: import("zod").ZodString;
1878
+ videoId: import("zod").ZodOptional<import("zod").ZodString>;
1879
+ }, "strip", import("zod").ZodTypeAny, {
1880
+ playlistId: string;
1881
+ videoId?: string | undefined;
1882
+ }, {
1883
+ playlistId: string;
1884
+ videoId?: string | undefined;
1885
+ }>;
1886
+ path: "/api/v2/room/:roomId/queue/playlist";
1887
+ responses: {
1888
+ 500: import("zod").ZodObject<{
1889
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1890
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1891
+ name: import("zod").ZodLiteral<"APIError">;
1892
+ }, "strip", import("zod").ZodTypeAny, {
1893
+ code: "INTERNAL_SERVER_ERROR";
1894
+ error: string;
1895
+ name: "APIError";
1896
+ }, {
1897
+ code: "INTERNAL_SERVER_ERROR";
1898
+ error: string;
1899
+ name: "APIError";
1900
+ }>;
1901
+ 404: import("zod").ZodUnion<[import("zod").ZodObject<{
1902
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1903
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1904
+ name: import("zod").ZodLiteral<"APIError">;
1905
+ }, "strip", import("zod").ZodTypeAny, {
1906
+ code: "ROOM_NOT_FOUND";
1907
+ error: "The requested room was not found";
1908
+ name: "APIError";
1909
+ }, {
1910
+ code: "ROOM_NOT_FOUND";
1911
+ error: "The requested room was not found";
1912
+ name: "APIError";
1913
+ }>, import("zod").ZodObject<{
1914
+ code: import("zod").ZodType<"PLAYLIST_UNAVAILABLE", import("zod").ZodTypeDef, "PLAYLIST_UNAVAILABLE">;
1915
+ error: import("zod").ZodType<"This playlist can't be read, it may be private", import("zod").ZodTypeDef, "This playlist can't be read, it may be private">;
1916
+ name: import("zod").ZodLiteral<"APIError">;
1917
+ }, "strip", import("zod").ZodTypeAny, {
1918
+ code: "PLAYLIST_UNAVAILABLE";
1919
+ error: "This playlist can't be read, it may be private";
1920
+ name: "APIError";
1921
+ }, {
1922
+ code: "PLAYLIST_UNAVAILABLE";
1923
+ error: "This playlist can't be read, it may be private";
1924
+ name: "APIError";
1925
+ }>]>;
1926
+ 409: import("zod").ZodObject<{
1927
+ code: import("zod").ZodType<"QUEUE_FULL", import("zod").ZodTypeDef, "QUEUE_FULL">;
1928
+ error: import("zod").ZodType<"The queue of this room is full", import("zod").ZodTypeDef, "The queue of this room is full">;
1929
+ name: import("zod").ZodLiteral<"APIError">;
1930
+ }, "strip", import("zod").ZodTypeAny, {
1931
+ code: "QUEUE_FULL";
1932
+ error: "The queue of this room is full";
1933
+ name: "APIError";
1934
+ }, {
1935
+ code: "QUEUE_FULL";
1936
+ error: "The queue of this room is full";
1937
+ name: "APIError";
1938
+ }>;
1939
+ 429: import("zod").ZodObject<{
1940
+ code: import("zod").ZodType<"TOO_MANY_SEARCHES", import("zod").ZodTypeDef, "TOO_MANY_SEARCHES">;
1941
+ error: import("zod").ZodType<"Too many searches are running", import("zod").ZodTypeDef, "Too many searches are running">;
1942
+ name: import("zod").ZodLiteral<"APIError">;
1943
+ }, "strip", import("zod").ZodTypeAny, {
1944
+ code: "TOO_MANY_SEARCHES";
1945
+ error: "Too many searches are running";
1946
+ name: "APIError";
1947
+ }, {
1948
+ code: "TOO_MANY_SEARCHES";
1949
+ error: "Too many searches are running";
1950
+ name: "APIError";
1951
+ }>;
1952
+ 401: import("zod").ZodObject<{
1953
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1954
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1955
+ name: import("zod").ZodLiteral<"APIError">;
1956
+ }, "strip", import("zod").ZodTypeAny, {
1957
+ code: "UNAUTHORIZED";
1958
+ error: "Unauthorized";
1959
+ name: "APIError";
1960
+ }, {
1961
+ code: "UNAUTHORIZED";
1962
+ error: "Unauthorized";
1963
+ name: "APIError";
1964
+ }>;
1965
+ 403: import("zod").ZodObject<{
1966
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1967
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1968
+ name: import("zod").ZodLiteral<"APIError">;
1969
+ }, "strip", import("zod").ZodTypeAny, {
1970
+ code: "FORBIDDEN";
1971
+ error: "Forbidden";
1972
+ name: "APIError";
1973
+ }, {
1974
+ code: "FORBIDDEN";
1975
+ error: "Forbidden";
1976
+ name: "APIError";
1977
+ }>;
1978
+ 200: import("zod").ZodObject<{
1979
+ added: import("zod").ZodNumber;
1980
+ skipped: import("zod").ZodNumber;
1981
+ total: import("zod").ZodNumber;
1982
+ }, "strip", import("zod").ZodTypeAny, {
1983
+ added: number;
1984
+ skipped: number;
1985
+ total: number;
1986
+ }, {
1987
+ added: number;
1988
+ skipped: number;
1989
+ total: number;
1990
+ }>;
1991
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1992
+ name: import("zod").ZodLiteral<"ZodError">;
1993
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1994
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1995
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1996
+ code: import("zod").ZodNativeEnum<{
1997
+ invalid_type: "invalid_type";
1998
+ invalid_literal: "invalid_literal";
1999
+ custom: "custom";
2000
+ invalid_union: "invalid_union";
2001
+ invalid_union_discriminator: "invalid_union_discriminator";
2002
+ invalid_enum_value: "invalid_enum_value";
2003
+ unrecognized_keys: "unrecognized_keys";
2004
+ invalid_arguments: "invalid_arguments";
2005
+ invalid_return_type: "invalid_return_type";
2006
+ invalid_date: "invalid_date";
2007
+ invalid_string: "invalid_string";
2008
+ too_small: "too_small";
2009
+ too_big: "too_big";
2010
+ invalid_intersection_types: "invalid_intersection_types";
2011
+ not_multiple_of: "not_multiple_of";
2012
+ not_finite: "not_finite";
2013
+ }>;
2014
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
2015
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2016
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2017
+ code: import("zod").ZodNativeEnum<{
2018
+ invalid_type: "invalid_type";
2019
+ invalid_literal: "invalid_literal";
2020
+ custom: "custom";
2021
+ invalid_union: "invalid_union";
2022
+ invalid_union_discriminator: "invalid_union_discriminator";
2023
+ invalid_enum_value: "invalid_enum_value";
2024
+ unrecognized_keys: "unrecognized_keys";
2025
+ invalid_arguments: "invalid_arguments";
2026
+ invalid_return_type: "invalid_return_type";
2027
+ invalid_date: "invalid_date";
2028
+ invalid_string: "invalid_string";
2029
+ too_small: "too_small";
2030
+ too_big: "too_big";
2031
+ invalid_intersection_types: "invalid_intersection_types";
2032
+ not_multiple_of: "not_multiple_of";
2033
+ not_finite: "not_finite";
2034
+ }>;
2035
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
2036
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2037
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2038
+ code: import("zod").ZodNativeEnum<{
2039
+ invalid_type: "invalid_type";
2040
+ invalid_literal: "invalid_literal";
2041
+ custom: "custom";
2042
+ invalid_union: "invalid_union";
2043
+ invalid_union_discriminator: "invalid_union_discriminator";
2044
+ invalid_enum_value: "invalid_enum_value";
2045
+ unrecognized_keys: "unrecognized_keys";
2046
+ invalid_arguments: "invalid_arguments";
2047
+ invalid_return_type: "invalid_return_type";
2048
+ invalid_date: "invalid_date";
2049
+ invalid_string: "invalid_string";
2050
+ too_small: "too_small";
2051
+ too_big: "too_big";
2052
+ invalid_intersection_types: "invalid_intersection_types";
2053
+ not_multiple_of: "not_multiple_of";
2054
+ not_finite: "not_finite";
2055
+ }>;
2056
+ }, import("zod").ZodAny, "strip">>, "many">;
2057
+ }, "strip", import("zod").ZodTypeAny, {
2058
+ name: "ZodError";
2059
+ issues: import("zod").objectOutputType<{
2060
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2061
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2062
+ code: import("zod").ZodNativeEnum<{
2063
+ invalid_type: "invalid_type";
2064
+ invalid_literal: "invalid_literal";
2065
+ custom: "custom";
2066
+ invalid_union: "invalid_union";
2067
+ invalid_union_discriminator: "invalid_union_discriminator";
2068
+ invalid_enum_value: "invalid_enum_value";
2069
+ unrecognized_keys: "unrecognized_keys";
2070
+ invalid_arguments: "invalid_arguments";
2071
+ invalid_return_type: "invalid_return_type";
2072
+ invalid_date: "invalid_date";
2073
+ invalid_string: "invalid_string";
2074
+ too_small: "too_small";
2075
+ too_big: "too_big";
2076
+ invalid_intersection_types: "invalid_intersection_types";
2077
+ not_multiple_of: "not_multiple_of";
2078
+ not_finite: "not_finite";
2079
+ }>;
2080
+ }, import("zod").ZodAny, "strip">[];
2081
+ }, {
2082
+ name: "ZodError";
2083
+ issues: import("zod").objectInputType<{
2084
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2085
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2086
+ code: import("zod").ZodNativeEnum<{
2087
+ invalid_type: "invalid_type";
2088
+ invalid_literal: "invalid_literal";
2089
+ custom: "custom";
2090
+ invalid_union: "invalid_union";
2091
+ invalid_union_discriminator: "invalid_union_discriminator";
2092
+ invalid_enum_value: "invalid_enum_value";
2093
+ unrecognized_keys: "unrecognized_keys";
2094
+ invalid_arguments: "invalid_arguments";
2095
+ invalid_return_type: "invalid_return_type";
2096
+ invalid_date: "invalid_date";
2097
+ invalid_string: "invalid_string";
2098
+ too_small: "too_small";
2099
+ too_big: "too_big";
2100
+ invalid_intersection_types: "invalid_intersection_types";
2101
+ not_multiple_of: "not_multiple_of";
2102
+ not_finite: "not_finite";
2103
+ }>;
2104
+ }, import("zod").ZodAny, "strip">[];
2105
+ }>, import("zod").ZodObject<{
2106
+ code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
2107
+ error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
2108
+ name: import("zod").ZodLiteral<"APIError">;
2109
+ }, "strip", import("zod").ZodTypeAny, {
2110
+ code: "INVALID_VIDEO_ID";
2111
+ error: "The provided video ID is invalid";
2112
+ name: "APIError";
2113
+ }, {
2114
+ code: "INVALID_VIDEO_ID";
2115
+ error: "The provided video ID is invalid";
2116
+ name: "APIError";
2117
+ }>, import("zod").ZodObject<{
2118
+ code: import("zod").ZodType<"INVALID_PLAYLIST_ID", import("zod").ZodTypeDef, "INVALID_PLAYLIST_ID">;
2119
+ error: import("zod").ZodType<"The provided playlist ID is invalid", import("zod").ZodTypeDef, "The provided playlist ID is invalid">;
2120
+ name: import("zod").ZodLiteral<"APIError">;
2121
+ }, "strip", import("zod").ZodTypeAny, {
2122
+ code: "INVALID_PLAYLIST_ID";
2123
+ error: "The provided playlist ID is invalid";
2124
+ name: "APIError";
2125
+ }, {
2126
+ code: "INVALID_PLAYLIST_ID";
2127
+ error: "The provided playlist ID is invalid";
2128
+ name: "APIError";
2129
+ }>]>;
2130
+ };
2131
+ };
2132
+ queueClear: {
2133
+ description: "Remove every track from the queue of a room";
2134
+ method: "DELETE";
2135
+ body: import("zod").ZodUndefined;
2136
+ path: "/api/v2/room/:roomId/queue";
2137
+ responses: {
2138
+ 500: import("zod").ZodObject<{
2139
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2140
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2141
+ name: import("zod").ZodLiteral<"APIError">;
2142
+ }, "strip", import("zod").ZodTypeAny, {
2143
+ code: "INTERNAL_SERVER_ERROR";
2144
+ error: string;
2145
+ name: "APIError";
2146
+ }, {
2147
+ code: "INTERNAL_SERVER_ERROR";
2148
+ error: string;
2149
+ name: "APIError";
2150
+ }>;
2151
+ 404: import("zod").ZodObject<{
2152
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
2153
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
2154
+ name: import("zod").ZodLiteral<"APIError">;
2155
+ }, "strip", import("zod").ZodTypeAny, {
2156
+ code: "ROOM_NOT_FOUND";
2157
+ error: "The requested room was not found";
2158
+ name: "APIError";
2159
+ }, {
2160
+ code: "ROOM_NOT_FOUND";
2161
+ error: "The requested room was not found";
2162
+ name: "APIError";
2163
+ }>;
2164
+ 401: import("zod").ZodObject<{
2165
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2166
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2167
+ name: import("zod").ZodLiteral<"APIError">;
2168
+ }, "strip", import("zod").ZodTypeAny, {
2169
+ code: "UNAUTHORIZED";
2170
+ error: "Unauthorized";
2171
+ name: "APIError";
2172
+ }, {
2173
+ code: "UNAUTHORIZED";
2174
+ error: "Unauthorized";
2175
+ name: "APIError";
2176
+ }>;
2177
+ 403: import("zod").ZodObject<{
2178
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
2179
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
2180
+ name: import("zod").ZodLiteral<"APIError">;
2181
+ }, "strip", import("zod").ZodTypeAny, {
2182
+ code: "FORBIDDEN";
2183
+ error: "Forbidden";
2184
+ name: "APIError";
2185
+ }, {
2186
+ code: "FORBIDDEN";
2187
+ error: "Forbidden";
2188
+ name: "APIError";
2189
+ }>;
2190
+ 200: typeof import("@ts-rest/core").ContractNoBody;
2191
+ };
2192
+ };
2193
+ queueRemove: {
2194
+ description: "Remove a track from the queue of a room";
2195
+ method: "DELETE";
2196
+ body: import("zod").ZodUndefined;
2197
+ path: "/api/v2/room/:roomId/queue/:itemId";
2198
+ responses: {
2199
+ 500: import("zod").ZodObject<{
2200
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2201
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2202
+ name: import("zod").ZodLiteral<"APIError">;
2203
+ }, "strip", import("zod").ZodTypeAny, {
2204
+ code: "INTERNAL_SERVER_ERROR";
2205
+ error: string;
2206
+ name: "APIError";
2207
+ }, {
2208
+ code: "INTERNAL_SERVER_ERROR";
2209
+ error: string;
2210
+ name: "APIError";
2211
+ }>;
2212
+ 404: import("zod").ZodUnion<[import("zod").ZodObject<{
2213
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
2214
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
2215
+ name: import("zod").ZodLiteral<"APIError">;
2216
+ }, "strip", import("zod").ZodTypeAny, {
2217
+ code: "ROOM_NOT_FOUND";
2218
+ error: "The requested room was not found";
2219
+ name: "APIError";
2220
+ }, {
2221
+ code: "ROOM_NOT_FOUND";
2222
+ error: "The requested room was not found";
2223
+ name: "APIError";
2224
+ }>, import("zod").ZodObject<{
2225
+ code: import("zod").ZodType<"QUEUE_ITEM_NOT_FOUND", import("zod").ZodTypeDef, "QUEUE_ITEM_NOT_FOUND">;
2226
+ error: import("zod").ZodType<"The queue doesn't have this track", import("zod").ZodTypeDef, "The queue doesn't have this track">;
2227
+ name: import("zod").ZodLiteral<"APIError">;
2228
+ }, "strip", import("zod").ZodTypeAny, {
2229
+ code: "QUEUE_ITEM_NOT_FOUND";
2230
+ error: "The queue doesn't have this track";
2231
+ name: "APIError";
2232
+ }, {
2233
+ code: "QUEUE_ITEM_NOT_FOUND";
2234
+ error: "The queue doesn't have this track";
2235
+ name: "APIError";
2236
+ }>]>;
2237
+ 401: import("zod").ZodObject<{
2238
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2239
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2240
+ name: import("zod").ZodLiteral<"APIError">;
2241
+ }, "strip", import("zod").ZodTypeAny, {
2242
+ code: "UNAUTHORIZED";
2243
+ error: "Unauthorized";
2244
+ name: "APIError";
2245
+ }, {
2246
+ code: "UNAUTHORIZED";
2247
+ error: "Unauthorized";
2248
+ name: "APIError";
2249
+ }>;
2250
+ 403: import("zod").ZodObject<{
2251
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
2252
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
2253
+ name: import("zod").ZodLiteral<"APIError">;
2254
+ }, "strip", import("zod").ZodTypeAny, {
2255
+ code: "FORBIDDEN";
2256
+ error: "Forbidden";
2257
+ name: "APIError";
2258
+ }, {
2259
+ code: "FORBIDDEN";
2260
+ error: "Forbidden";
2261
+ name: "APIError";
2262
+ }>;
2263
+ 200: typeof import("@ts-rest/core").ContractNoBody;
2264
+ };
2265
+ };
2266
+ queueMove: {
2267
+ description: "Move a track of the queue of a room to a new index";
2268
+ method: "POST";
2269
+ body: import("zod").ZodObject<{
2270
+ index: import("zod").ZodNumber;
2271
+ }, "strip", import("zod").ZodTypeAny, {
2272
+ index: number;
2273
+ }, {
2274
+ index: number;
2275
+ }>;
2276
+ path: "/api/v2/room/:roomId/queue/:itemId/move";
2277
+ responses: {
2278
+ 500: import("zod").ZodObject<{
2279
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2280
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2281
+ name: import("zod").ZodLiteral<"APIError">;
2282
+ }, "strip", import("zod").ZodTypeAny, {
2283
+ code: "INTERNAL_SERVER_ERROR";
2284
+ error: string;
2285
+ name: "APIError";
2286
+ }, {
2287
+ code: "INTERNAL_SERVER_ERROR";
2288
+ error: string;
2289
+ name: "APIError";
2290
+ }>;
2291
+ 404: import("zod").ZodUnion<[import("zod").ZodObject<{
2292
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
2293
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
2294
+ name: import("zod").ZodLiteral<"APIError">;
2295
+ }, "strip", import("zod").ZodTypeAny, {
2296
+ code: "ROOM_NOT_FOUND";
2297
+ error: "The requested room was not found";
2298
+ name: "APIError";
2299
+ }, {
2300
+ code: "ROOM_NOT_FOUND";
2301
+ error: "The requested room was not found";
2302
+ name: "APIError";
2303
+ }>, import("zod").ZodObject<{
2304
+ code: import("zod").ZodType<"QUEUE_ITEM_NOT_FOUND", import("zod").ZodTypeDef, "QUEUE_ITEM_NOT_FOUND">;
2305
+ error: import("zod").ZodType<"The queue doesn't have this track", import("zod").ZodTypeDef, "The queue doesn't have this track">;
2306
+ name: import("zod").ZodLiteral<"APIError">;
2307
+ }, "strip", import("zod").ZodTypeAny, {
2308
+ code: "QUEUE_ITEM_NOT_FOUND";
2309
+ error: "The queue doesn't have this track";
2310
+ name: "APIError";
2311
+ }, {
2312
+ code: "QUEUE_ITEM_NOT_FOUND";
2313
+ error: "The queue doesn't have this track";
2314
+ name: "APIError";
2315
+ }>]>;
2316
+ 401: import("zod").ZodObject<{
2317
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2318
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2319
+ name: import("zod").ZodLiteral<"APIError">;
2320
+ }, "strip", import("zod").ZodTypeAny, {
2321
+ code: "UNAUTHORIZED";
2322
+ error: "Unauthorized";
2323
+ name: "APIError";
2324
+ }, {
2325
+ code: "UNAUTHORIZED";
2326
+ error: "Unauthorized";
2327
+ name: "APIError";
2328
+ }>;
2329
+ 403: import("zod").ZodObject<{
2330
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
2331
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
2332
+ name: import("zod").ZodLiteral<"APIError">;
2333
+ }, "strip", import("zod").ZodTypeAny, {
2334
+ code: "FORBIDDEN";
2335
+ error: "Forbidden";
2336
+ name: "APIError";
2337
+ }, {
2338
+ code: "FORBIDDEN";
2339
+ error: "Forbidden";
2340
+ name: "APIError";
2341
+ }>;
2342
+ 200: typeof import("@ts-rest/core").ContractNoBody;
2343
+ 400: import("zod").ZodObject<{
2344
+ name: import("zod").ZodLiteral<"ZodError">;
2345
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
2346
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2347
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2348
+ code: import("zod").ZodNativeEnum<{
2349
+ invalid_type: "invalid_type";
2350
+ invalid_literal: "invalid_literal";
2351
+ custom: "custom";
2352
+ invalid_union: "invalid_union";
2353
+ invalid_union_discriminator: "invalid_union_discriminator";
2354
+ invalid_enum_value: "invalid_enum_value";
2355
+ unrecognized_keys: "unrecognized_keys";
2356
+ invalid_arguments: "invalid_arguments";
2357
+ invalid_return_type: "invalid_return_type";
2358
+ invalid_date: "invalid_date";
2359
+ invalid_string: "invalid_string";
2360
+ too_small: "too_small";
2361
+ too_big: "too_big";
2362
+ invalid_intersection_types: "invalid_intersection_types";
2363
+ not_multiple_of: "not_multiple_of";
2364
+ not_finite: "not_finite";
2365
+ }>;
2366
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
2367
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2368
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2369
+ code: import("zod").ZodNativeEnum<{
2370
+ invalid_type: "invalid_type";
2371
+ invalid_literal: "invalid_literal";
2372
+ custom: "custom";
2373
+ invalid_union: "invalid_union";
2374
+ invalid_union_discriminator: "invalid_union_discriminator";
2375
+ invalid_enum_value: "invalid_enum_value";
2376
+ unrecognized_keys: "unrecognized_keys";
2377
+ invalid_arguments: "invalid_arguments";
2378
+ invalid_return_type: "invalid_return_type";
2379
+ invalid_date: "invalid_date";
2380
+ invalid_string: "invalid_string";
2381
+ too_small: "too_small";
2382
+ too_big: "too_big";
2383
+ invalid_intersection_types: "invalid_intersection_types";
2384
+ not_multiple_of: "not_multiple_of";
2385
+ not_finite: "not_finite";
2386
+ }>;
2387
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
2388
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2389
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2390
+ code: import("zod").ZodNativeEnum<{
2391
+ invalid_type: "invalid_type";
2392
+ invalid_literal: "invalid_literal";
2393
+ custom: "custom";
2394
+ invalid_union: "invalid_union";
2395
+ invalid_union_discriminator: "invalid_union_discriminator";
2396
+ invalid_enum_value: "invalid_enum_value";
2397
+ unrecognized_keys: "unrecognized_keys";
2398
+ invalid_arguments: "invalid_arguments";
2399
+ invalid_return_type: "invalid_return_type";
2400
+ invalid_date: "invalid_date";
2401
+ invalid_string: "invalid_string";
2402
+ too_small: "too_small";
2403
+ too_big: "too_big";
2404
+ invalid_intersection_types: "invalid_intersection_types";
2405
+ not_multiple_of: "not_multiple_of";
2406
+ not_finite: "not_finite";
2407
+ }>;
2408
+ }, import("zod").ZodAny, "strip">>, "many">;
2409
+ }, "strip", import("zod").ZodTypeAny, {
2410
+ name: "ZodError";
2411
+ issues: import("zod").objectOutputType<{
2412
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2413
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2414
+ code: import("zod").ZodNativeEnum<{
2415
+ invalid_type: "invalid_type";
2416
+ invalid_literal: "invalid_literal";
2417
+ custom: "custom";
2418
+ invalid_union: "invalid_union";
2419
+ invalid_union_discriminator: "invalid_union_discriminator";
2420
+ invalid_enum_value: "invalid_enum_value";
2421
+ unrecognized_keys: "unrecognized_keys";
2422
+ invalid_arguments: "invalid_arguments";
2423
+ invalid_return_type: "invalid_return_type";
2424
+ invalid_date: "invalid_date";
2425
+ invalid_string: "invalid_string";
2426
+ too_small: "too_small";
2427
+ too_big: "too_big";
2428
+ invalid_intersection_types: "invalid_intersection_types";
2429
+ not_multiple_of: "not_multiple_of";
2430
+ not_finite: "not_finite";
2431
+ }>;
2432
+ }, import("zod").ZodAny, "strip">[];
2433
+ }, {
2434
+ name: "ZodError";
2435
+ issues: import("zod").objectInputType<{
2436
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2437
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2438
+ code: import("zod").ZodNativeEnum<{
2439
+ invalid_type: "invalid_type";
2440
+ invalid_literal: "invalid_literal";
2441
+ custom: "custom";
2442
+ invalid_union: "invalid_union";
2443
+ invalid_union_discriminator: "invalid_union_discriminator";
2444
+ invalid_enum_value: "invalid_enum_value";
2445
+ unrecognized_keys: "unrecognized_keys";
2446
+ invalid_arguments: "invalid_arguments";
2447
+ invalid_return_type: "invalid_return_type";
2448
+ invalid_date: "invalid_date";
2449
+ invalid_string: "invalid_string";
2450
+ too_small: "too_small";
2451
+ too_big: "too_big";
2452
+ invalid_intersection_types: "invalid_intersection_types";
2453
+ not_multiple_of: "not_multiple_of";
2454
+ not_finite: "not_finite";
2455
+ }>;
2456
+ }, import("zod").ZodAny, "strip">[];
2457
+ }>;
2458
+ };
2459
+ };
2460
+ next: {
2461
+ description: "Skip to the next track of the queue of a room";
2462
+ method: "POST";
2463
+ body: import("zod").ZodUndefined;
2464
+ path: "/api/v2/room/:roomId/next";
2465
+ responses: {
2466
+ 500: import("zod").ZodObject<{
2467
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2468
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2469
+ name: import("zod").ZodLiteral<"APIError">;
2470
+ }, "strip", import("zod").ZodTypeAny, {
2471
+ code: "INTERNAL_SERVER_ERROR";
2472
+ error: string;
2473
+ name: "APIError";
2474
+ }, {
2475
+ code: "INTERNAL_SERVER_ERROR";
2476
+ error: string;
2477
+ name: "APIError";
2478
+ }>;
2479
+ 404: import("zod").ZodObject<{
2480
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
2481
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
2482
+ name: import("zod").ZodLiteral<"APIError">;
2483
+ }, "strip", import("zod").ZodTypeAny, {
2484
+ code: "ROOM_NOT_FOUND";
2485
+ error: "The requested room was not found";
2486
+ name: "APIError";
2487
+ }, {
2488
+ code: "ROOM_NOT_FOUND";
2489
+ error: "The requested room was not found";
2490
+ name: "APIError";
2491
+ }>;
2492
+ 401: import("zod").ZodObject<{
2493
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2494
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2495
+ name: import("zod").ZodLiteral<"APIError">;
2496
+ }, "strip", import("zod").ZodTypeAny, {
2497
+ code: "UNAUTHORIZED";
2498
+ error: "Unauthorized";
2499
+ name: "APIError";
2500
+ }, {
2501
+ code: "UNAUTHORIZED";
2502
+ error: "Unauthorized";
2503
+ name: "APIError";
2504
+ }>;
2505
+ 403: import("zod").ZodObject<{
2506
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
2507
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
2508
+ name: import("zod").ZodLiteral<"APIError">;
2509
+ }, "strip", import("zod").ZodTypeAny, {
2510
+ code: "FORBIDDEN";
2511
+ error: "Forbidden";
2512
+ name: "APIError";
2513
+ }, {
2514
+ code: "FORBIDDEN";
2515
+ error: "Forbidden";
2516
+ name: "APIError";
2517
+ }>;
2518
+ 200: typeof import("@ts-rest/core").ContractNoBody;
2519
+ 400: import("zod").ZodObject<{
2520
+ code: import("zod").ZodType<"QUEUE_EMPTY", import("zod").ZodTypeDef, "QUEUE_EMPTY">;
2521
+ error: import("zod").ZodType<"The queue of this room is empty", import("zod").ZodTypeDef, "The queue of this room is empty">;
2522
+ name: import("zod").ZodLiteral<"APIError">;
2523
+ }, "strip", import("zod").ZodTypeAny, {
2524
+ code: "QUEUE_EMPTY";
2525
+ error: "The queue of this room is empty";
2526
+ name: "APIError";
2527
+ }, {
2528
+ code: "QUEUE_EMPTY";
2529
+ error: "The queue of this room is empty";
2530
+ name: "APIError";
2531
+ }>;
2532
+ };
2533
+ };
1637
2534
  play: {
1638
- description: "Play the track of a room, from its position. A room without a stream starts a new one";
2535
+ description: "Play the track of a room, from its position, or the next one of its queue if it has none. A room without a stream starts a new one";
1639
2536
  method: "POST";
1640
2537
  body: import("zod").ZodUndefined;
1641
2538
  path: "/api/v2/room/:roomId/play";