@darco2903/altv-web-api 2.0.0 → 2.1.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,556 @@ 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
+ queueRemove: {
1874
+ description: "Remove a track from the queue of a room";
1875
+ method: "DELETE";
1876
+ body: import("zod").ZodUndefined;
1877
+ path: "/api/v2/room/:roomId/queue/:itemId";
1878
+ responses: {
1879
+ 500: import("zod").ZodObject<{
1880
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1881
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1882
+ name: import("zod").ZodLiteral<"APIError">;
1883
+ }, "strip", import("zod").ZodTypeAny, {
1884
+ code: "INTERNAL_SERVER_ERROR";
1885
+ error: string;
1886
+ name: "APIError";
1887
+ }, {
1888
+ code: "INTERNAL_SERVER_ERROR";
1889
+ error: string;
1890
+ name: "APIError";
1891
+ }>;
1892
+ 404: import("zod").ZodUnion<[import("zod").ZodObject<{
1893
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1894
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1895
+ name: import("zod").ZodLiteral<"APIError">;
1896
+ }, "strip", import("zod").ZodTypeAny, {
1897
+ code: "ROOM_NOT_FOUND";
1898
+ error: "The requested room was not found";
1899
+ name: "APIError";
1900
+ }, {
1901
+ code: "ROOM_NOT_FOUND";
1902
+ error: "The requested room was not found";
1903
+ name: "APIError";
1904
+ }>, import("zod").ZodObject<{
1905
+ code: import("zod").ZodType<"QUEUE_ITEM_NOT_FOUND", import("zod").ZodTypeDef, "QUEUE_ITEM_NOT_FOUND">;
1906
+ error: import("zod").ZodType<"The queue doesn't have this track", import("zod").ZodTypeDef, "The queue doesn't have this track">;
1907
+ name: import("zod").ZodLiteral<"APIError">;
1908
+ }, "strip", import("zod").ZodTypeAny, {
1909
+ code: "QUEUE_ITEM_NOT_FOUND";
1910
+ error: "The queue doesn't have this track";
1911
+ name: "APIError";
1912
+ }, {
1913
+ code: "QUEUE_ITEM_NOT_FOUND";
1914
+ error: "The queue doesn't have this track";
1915
+ name: "APIError";
1916
+ }>]>;
1917
+ 401: import("zod").ZodObject<{
1918
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1919
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1920
+ name: import("zod").ZodLiteral<"APIError">;
1921
+ }, "strip", import("zod").ZodTypeAny, {
1922
+ code: "UNAUTHORIZED";
1923
+ error: "Unauthorized";
1924
+ name: "APIError";
1925
+ }, {
1926
+ code: "UNAUTHORIZED";
1927
+ error: "Unauthorized";
1928
+ name: "APIError";
1929
+ }>;
1930
+ 403: import("zod").ZodObject<{
1931
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1932
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1933
+ name: import("zod").ZodLiteral<"APIError">;
1934
+ }, "strip", import("zod").ZodTypeAny, {
1935
+ code: "FORBIDDEN";
1936
+ error: "Forbidden";
1937
+ name: "APIError";
1938
+ }, {
1939
+ code: "FORBIDDEN";
1940
+ error: "Forbidden";
1941
+ name: "APIError";
1942
+ }>;
1943
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1944
+ };
1945
+ };
1946
+ queueMove: {
1947
+ description: "Move a track of the queue of a room to a new index";
1948
+ method: "POST";
1949
+ body: import("zod").ZodObject<{
1950
+ index: import("zod").ZodNumber;
1951
+ }, "strip", import("zod").ZodTypeAny, {
1952
+ index: number;
1953
+ }, {
1954
+ index: number;
1955
+ }>;
1956
+ path: "/api/v2/room/:roomId/queue/:itemId/move";
1957
+ responses: {
1958
+ 500: import("zod").ZodObject<{
1959
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1960
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1961
+ name: import("zod").ZodLiteral<"APIError">;
1962
+ }, "strip", import("zod").ZodTypeAny, {
1963
+ code: "INTERNAL_SERVER_ERROR";
1964
+ error: string;
1965
+ name: "APIError";
1966
+ }, {
1967
+ code: "INTERNAL_SERVER_ERROR";
1968
+ error: string;
1969
+ name: "APIError";
1970
+ }>;
1971
+ 404: import("zod").ZodUnion<[import("zod").ZodObject<{
1972
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1973
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1974
+ name: import("zod").ZodLiteral<"APIError">;
1975
+ }, "strip", import("zod").ZodTypeAny, {
1976
+ code: "ROOM_NOT_FOUND";
1977
+ error: "The requested room was not found";
1978
+ name: "APIError";
1979
+ }, {
1980
+ code: "ROOM_NOT_FOUND";
1981
+ error: "The requested room was not found";
1982
+ name: "APIError";
1983
+ }>, import("zod").ZodObject<{
1984
+ code: import("zod").ZodType<"QUEUE_ITEM_NOT_FOUND", import("zod").ZodTypeDef, "QUEUE_ITEM_NOT_FOUND">;
1985
+ error: import("zod").ZodType<"The queue doesn't have this track", import("zod").ZodTypeDef, "The queue doesn't have this track">;
1986
+ name: import("zod").ZodLiteral<"APIError">;
1987
+ }, "strip", import("zod").ZodTypeAny, {
1988
+ code: "QUEUE_ITEM_NOT_FOUND";
1989
+ error: "The queue doesn't have this track";
1990
+ name: "APIError";
1991
+ }, {
1992
+ code: "QUEUE_ITEM_NOT_FOUND";
1993
+ error: "The queue doesn't have this track";
1994
+ name: "APIError";
1995
+ }>]>;
1996
+ 401: import("zod").ZodObject<{
1997
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1998
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1999
+ name: import("zod").ZodLiteral<"APIError">;
2000
+ }, "strip", import("zod").ZodTypeAny, {
2001
+ code: "UNAUTHORIZED";
2002
+ error: "Unauthorized";
2003
+ name: "APIError";
2004
+ }, {
2005
+ code: "UNAUTHORIZED";
2006
+ error: "Unauthorized";
2007
+ name: "APIError";
2008
+ }>;
2009
+ 403: import("zod").ZodObject<{
2010
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
2011
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
2012
+ name: import("zod").ZodLiteral<"APIError">;
2013
+ }, "strip", import("zod").ZodTypeAny, {
2014
+ code: "FORBIDDEN";
2015
+ error: "Forbidden";
2016
+ name: "APIError";
2017
+ }, {
2018
+ code: "FORBIDDEN";
2019
+ error: "Forbidden";
2020
+ name: "APIError";
2021
+ }>;
2022
+ 200: typeof import("@ts-rest/core").ContractNoBody;
2023
+ 400: import("zod").ZodObject<{
2024
+ name: import("zod").ZodLiteral<"ZodError">;
2025
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
2026
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2027
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2028
+ code: import("zod").ZodNativeEnum<{
2029
+ invalid_type: "invalid_type";
2030
+ invalid_literal: "invalid_literal";
2031
+ custom: "custom";
2032
+ invalid_union: "invalid_union";
2033
+ invalid_union_discriminator: "invalid_union_discriminator";
2034
+ invalid_enum_value: "invalid_enum_value";
2035
+ unrecognized_keys: "unrecognized_keys";
2036
+ invalid_arguments: "invalid_arguments";
2037
+ invalid_return_type: "invalid_return_type";
2038
+ invalid_date: "invalid_date";
2039
+ invalid_string: "invalid_string";
2040
+ too_small: "too_small";
2041
+ too_big: "too_big";
2042
+ invalid_intersection_types: "invalid_intersection_types";
2043
+ not_multiple_of: "not_multiple_of";
2044
+ not_finite: "not_finite";
2045
+ }>;
2046
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
2047
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2048
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2049
+ code: import("zod").ZodNativeEnum<{
2050
+ invalid_type: "invalid_type";
2051
+ invalid_literal: "invalid_literal";
2052
+ custom: "custom";
2053
+ invalid_union: "invalid_union";
2054
+ invalid_union_discriminator: "invalid_union_discriminator";
2055
+ invalid_enum_value: "invalid_enum_value";
2056
+ unrecognized_keys: "unrecognized_keys";
2057
+ invalid_arguments: "invalid_arguments";
2058
+ invalid_return_type: "invalid_return_type";
2059
+ invalid_date: "invalid_date";
2060
+ invalid_string: "invalid_string";
2061
+ too_small: "too_small";
2062
+ too_big: "too_big";
2063
+ invalid_intersection_types: "invalid_intersection_types";
2064
+ not_multiple_of: "not_multiple_of";
2065
+ not_finite: "not_finite";
2066
+ }>;
2067
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
2068
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2069
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2070
+ code: import("zod").ZodNativeEnum<{
2071
+ invalid_type: "invalid_type";
2072
+ invalid_literal: "invalid_literal";
2073
+ custom: "custom";
2074
+ invalid_union: "invalid_union";
2075
+ invalid_union_discriminator: "invalid_union_discriminator";
2076
+ invalid_enum_value: "invalid_enum_value";
2077
+ unrecognized_keys: "unrecognized_keys";
2078
+ invalid_arguments: "invalid_arguments";
2079
+ invalid_return_type: "invalid_return_type";
2080
+ invalid_date: "invalid_date";
2081
+ invalid_string: "invalid_string";
2082
+ too_small: "too_small";
2083
+ too_big: "too_big";
2084
+ invalid_intersection_types: "invalid_intersection_types";
2085
+ not_multiple_of: "not_multiple_of";
2086
+ not_finite: "not_finite";
2087
+ }>;
2088
+ }, import("zod").ZodAny, "strip">>, "many">;
2089
+ }, "strip", import("zod").ZodTypeAny, {
2090
+ name: "ZodError";
2091
+ issues: import("zod").objectOutputType<{
2092
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2093
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2094
+ code: import("zod").ZodNativeEnum<{
2095
+ invalid_type: "invalid_type";
2096
+ invalid_literal: "invalid_literal";
2097
+ custom: "custom";
2098
+ invalid_union: "invalid_union";
2099
+ invalid_union_discriminator: "invalid_union_discriminator";
2100
+ invalid_enum_value: "invalid_enum_value";
2101
+ unrecognized_keys: "unrecognized_keys";
2102
+ invalid_arguments: "invalid_arguments";
2103
+ invalid_return_type: "invalid_return_type";
2104
+ invalid_date: "invalid_date";
2105
+ invalid_string: "invalid_string";
2106
+ too_small: "too_small";
2107
+ too_big: "too_big";
2108
+ invalid_intersection_types: "invalid_intersection_types";
2109
+ not_multiple_of: "not_multiple_of";
2110
+ not_finite: "not_finite";
2111
+ }>;
2112
+ }, import("zod").ZodAny, "strip">[];
2113
+ }, {
2114
+ name: "ZodError";
2115
+ issues: import("zod").objectInputType<{
2116
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2117
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2118
+ code: import("zod").ZodNativeEnum<{
2119
+ invalid_type: "invalid_type";
2120
+ invalid_literal: "invalid_literal";
2121
+ custom: "custom";
2122
+ invalid_union: "invalid_union";
2123
+ invalid_union_discriminator: "invalid_union_discriminator";
2124
+ invalid_enum_value: "invalid_enum_value";
2125
+ unrecognized_keys: "unrecognized_keys";
2126
+ invalid_arguments: "invalid_arguments";
2127
+ invalid_return_type: "invalid_return_type";
2128
+ invalid_date: "invalid_date";
2129
+ invalid_string: "invalid_string";
2130
+ too_small: "too_small";
2131
+ too_big: "too_big";
2132
+ invalid_intersection_types: "invalid_intersection_types";
2133
+ not_multiple_of: "not_multiple_of";
2134
+ not_finite: "not_finite";
2135
+ }>;
2136
+ }, import("zod").ZodAny, "strip">[];
2137
+ }>;
2138
+ };
2139
+ };
2140
+ next: {
2141
+ description: "Skip to the next track of the queue of a room";
2142
+ method: "POST";
2143
+ body: import("zod").ZodUndefined;
2144
+ path: "/api/v2/room/:roomId/next";
2145
+ responses: {
2146
+ 500: import("zod").ZodObject<{
2147
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2148
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2149
+ name: import("zod").ZodLiteral<"APIError">;
2150
+ }, "strip", import("zod").ZodTypeAny, {
2151
+ code: "INTERNAL_SERVER_ERROR";
2152
+ error: string;
2153
+ name: "APIError";
2154
+ }, {
2155
+ code: "INTERNAL_SERVER_ERROR";
2156
+ error: string;
2157
+ name: "APIError";
2158
+ }>;
2159
+ 404: import("zod").ZodObject<{
2160
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
2161
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
2162
+ name: import("zod").ZodLiteral<"APIError">;
2163
+ }, "strip", import("zod").ZodTypeAny, {
2164
+ code: "ROOM_NOT_FOUND";
2165
+ error: "The requested room was not found";
2166
+ name: "APIError";
2167
+ }, {
2168
+ code: "ROOM_NOT_FOUND";
2169
+ error: "The requested room was not found";
2170
+ name: "APIError";
2171
+ }>;
2172
+ 401: import("zod").ZodObject<{
2173
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2174
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2175
+ name: import("zod").ZodLiteral<"APIError">;
2176
+ }, "strip", import("zod").ZodTypeAny, {
2177
+ code: "UNAUTHORIZED";
2178
+ error: "Unauthorized";
2179
+ name: "APIError";
2180
+ }, {
2181
+ code: "UNAUTHORIZED";
2182
+ error: "Unauthorized";
2183
+ name: "APIError";
2184
+ }>;
2185
+ 403: import("zod").ZodObject<{
2186
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
2187
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
2188
+ name: import("zod").ZodLiteral<"APIError">;
2189
+ }, "strip", import("zod").ZodTypeAny, {
2190
+ code: "FORBIDDEN";
2191
+ error: "Forbidden";
2192
+ name: "APIError";
2193
+ }, {
2194
+ code: "FORBIDDEN";
2195
+ error: "Forbidden";
2196
+ name: "APIError";
2197
+ }>;
2198
+ 200: typeof import("@ts-rest/core").ContractNoBody;
2199
+ 400: import("zod").ZodObject<{
2200
+ code: import("zod").ZodType<"QUEUE_EMPTY", import("zod").ZodTypeDef, "QUEUE_EMPTY">;
2201
+ error: import("zod").ZodType<"The queue of this room is empty", import("zod").ZodTypeDef, "The queue of this room is empty">;
2202
+ name: import("zod").ZodLiteral<"APIError">;
2203
+ }, "strip", import("zod").ZodTypeAny, {
2204
+ code: "QUEUE_EMPTY";
2205
+ error: "The queue of this room is empty";
2206
+ name: "APIError";
2207
+ }, {
2208
+ code: "QUEUE_EMPTY";
2209
+ error: "The queue of this room is empty";
2210
+ name: "APIError";
2211
+ }>;
2212
+ };
2213
+ };
1637
2214
  play: {
1638
- description: "Play the track of a room, from its position. A room without a stream starts a new one";
2215
+ 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
2216
  method: "POST";
1640
2217
  body: import("zod").ZodUndefined;
1641
2218
  path: "/api/v2/room/:roomId/play";