@darco2903/altv-web-api 1.6.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.
@@ -643,17 +643,66 @@ declare const _default: {
643
643
  };
644
644
  };
645
645
  mediaStream: {
646
- init: {
647
- description: "Initialize a new media stream from a YouTube video";
646
+ stream: {
647
+ description: "Audio of a room, rooms give this URL in their state while they have a stream";
648
+ method: "GET";
649
+ path: "/api/v2/media-stream/stream/:streamId";
650
+ responses: {
651
+ 200: import("zod").ZodAny;
652
+ 400: import("zod").ZodObject<{
653
+ code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
654
+ error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
655
+ name: import("zod").ZodLiteral<"APIError">;
656
+ }, "strip", import("zod").ZodTypeAny, {
657
+ code: "INVALID_VIDEO_ID";
658
+ error: "The provided video ID is invalid";
659
+ name: "APIError";
660
+ }, {
661
+ code: "INVALID_VIDEO_ID";
662
+ error: "The provided video ID is invalid";
663
+ name: "APIError";
664
+ }>;
665
+ 404: import("zod").ZodObject<{
666
+ code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
667
+ error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
668
+ name: import("zod").ZodLiteral<"APIError">;
669
+ }, "strip", import("zod").ZodTypeAny, {
670
+ code: "STREAM_NOT_FOUND";
671
+ error: "The requested stream was not found";
672
+ name: "APIError";
673
+ }, {
674
+ code: "STREAM_NOT_FOUND";
675
+ error: "The requested stream was not found";
676
+ name: "APIError";
677
+ }>;
678
+ 500: import("zod").ZodObject<{
679
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
680
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
681
+ name: import("zod").ZodLiteral<"APIError">;
682
+ }, "strip", import("zod").ZodTypeAny, {
683
+ code: "INTERNAL_SERVER_ERROR";
684
+ error: string;
685
+ name: "APIError";
686
+ }, {
687
+ code: "INTERNAL_SERVER_ERROR";
688
+ error: string;
689
+ name: "APIError";
690
+ }>;
691
+ };
692
+ };
693
+ };
694
+ room: {
695
+ create: {
696
+ description: "Create a room owned by the logged in user";
648
697
  method: "POST";
649
698
  body: import("zod").ZodObject<{
650
- videoId: import("zod").ZodString;
699
+ name: import("zod").ZodNullable<import("zod").ZodString>;
651
700
  }, "strip", import("zod").ZodTypeAny, {
652
- videoId: string;
701
+ name: string | null;
653
702
  }, {
654
- videoId: string;
703
+ name: string | null;
655
704
  }>;
656
- path: "/api/v2/media-stream/init";
705
+ path: "/api/v2/room";
657
706
  responses: {
658
707
  500: import("zod").ZodObject<{
659
708
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
@@ -668,6 +717,19 @@ declare const _default: {
668
717
  error: string;
669
718
  name: "APIError";
670
719
  }>;
720
+ 409: import("zod").ZodObject<{
721
+ code: import("zod").ZodType<"TOO_MANY_ROOMS", import("zod").ZodTypeDef, "TOO_MANY_ROOMS">;
722
+ error: import("zod").ZodType<"You can't own more rooms", import("zod").ZodTypeDef, "You can't own more rooms">;
723
+ name: import("zod").ZodLiteral<"APIError">;
724
+ }, "strip", import("zod").ZodTypeAny, {
725
+ code: "TOO_MANY_ROOMS";
726
+ error: "You can't own more rooms";
727
+ name: "APIError";
728
+ }, {
729
+ code: "TOO_MANY_ROOMS";
730
+ error: "You can't own more rooms";
731
+ name: "APIError";
732
+ }>;
671
733
  401: import("zod").ZodObject<{
672
734
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
673
735
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -695,13 +757,13 @@ declare const _default: {
695
757
  name: "APIError";
696
758
  }>;
697
759
  200: import("zod").ZodObject<{
698
- streamId: import("zod").ZodString;
760
+ roomId: import("zod").ZodString;
699
761
  }, "strip", import("zod").ZodTypeAny, {
700
- streamId: string;
762
+ roomId: string;
701
763
  }, {
702
- streamId: string;
764
+ roomId: string;
703
765
  }>;
704
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
766
+ 400: import("zod").ZodObject<{
705
767
  name: import("zod").ZodLiteral<"ZodError">;
706
768
  issues: import("zod").ZodArray<import("zod").ZodObject<{
707
769
  path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
@@ -815,34 +877,184 @@ declare const _default: {
815
877
  not_finite: "not_finite";
816
878
  }>;
817
879
  }, import("zod").ZodAny, "strip">[];
818
- }>, import("zod").ZodObject<{
819
- code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
820
- error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
880
+ }>;
881
+ };
882
+ };
883
+ list: {
884
+ description: "Rooms owned by the logged in user";
885
+ method: "GET";
886
+ path: "/api/v2/room";
887
+ responses: {
888
+ 500: import("zod").ZodObject<{
889
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
890
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
821
891
  name: import("zod").ZodLiteral<"APIError">;
822
892
  }, "strip", import("zod").ZodTypeAny, {
823
- code: "INVALID_VIDEO_ID";
824
- error: "The provided video ID is invalid";
893
+ code: "INTERNAL_SERVER_ERROR";
894
+ error: string;
825
895
  name: "APIError";
826
896
  }, {
827
- code: "INVALID_VIDEO_ID";
828
- error: "The provided video ID is invalid";
897
+ code: "INTERNAL_SERVER_ERROR";
898
+ error: string;
829
899
  name: "APIError";
830
- }>]>;
900
+ }>;
901
+ 401: import("zod").ZodObject<{
902
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
903
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
904
+ name: import("zod").ZodLiteral<"APIError">;
905
+ }, "strip", import("zod").ZodTypeAny, {
906
+ code: "UNAUTHORIZED";
907
+ error: "Unauthorized";
908
+ name: "APIError";
909
+ }, {
910
+ code: "UNAUTHORIZED";
911
+ error: "Unauthorized";
912
+ name: "APIError";
913
+ }>;
914
+ 403: import("zod").ZodObject<{
915
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
916
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
917
+ name: import("zod").ZodLiteral<"APIError">;
918
+ }, "strip", import("zod").ZodTypeAny, {
919
+ code: "FORBIDDEN";
920
+ error: "Forbidden";
921
+ name: "APIError";
922
+ }, {
923
+ code: "FORBIDDEN";
924
+ error: "Forbidden";
925
+ name: "APIError";
926
+ }>;
927
+ 200: import("zod").ZodObject<{
928
+ rooms: import("zod").ZodArray<import("zod").ZodObject<{
929
+ roomId: import("zod").ZodString;
930
+ name: import("zod").ZodNullable<import("zod").ZodString>;
931
+ track: import("zod").ZodNullable<import("zod").ZodObject<{
932
+ videoId: import("zod").ZodString;
933
+ title: import("zod").ZodString;
934
+ duration: import("zod").ZodNumber;
935
+ }, "strip", import("zod").ZodTypeAny, {
936
+ videoId: string;
937
+ title: string;
938
+ duration: number;
939
+ }, {
940
+ videoId: string;
941
+ title: string;
942
+ duration: number;
943
+ }>>;
944
+ paused: import("zod").ZodBoolean;
945
+ }, "strip", import("zod").ZodTypeAny, {
946
+ name: string | null;
947
+ roomId: string;
948
+ track: {
949
+ videoId: string;
950
+ title: string;
951
+ duration: number;
952
+ } | null;
953
+ paused: boolean;
954
+ }, {
955
+ name: string | null;
956
+ roomId: string;
957
+ track: {
958
+ videoId: string;
959
+ title: string;
960
+ duration: number;
961
+ } | null;
962
+ paused: boolean;
963
+ }>, "many">;
964
+ }, "strip", import("zod").ZodTypeAny, {
965
+ rooms: {
966
+ name: string | null;
967
+ roomId: string;
968
+ track: {
969
+ videoId: string;
970
+ title: string;
971
+ duration: number;
972
+ } | null;
973
+ paused: boolean;
974
+ }[];
975
+ }, {
976
+ rooms: {
977
+ name: string | null;
978
+ roomId: string;
979
+ track: {
980
+ videoId: string;
981
+ title: string;
982
+ duration: number;
983
+ } | null;
984
+ paused: boolean;
985
+ }[];
986
+ }>;
831
987
  };
832
988
  };
833
989
  get: {
834
- description: "Get media stream info";
990
+ description: "Get the state of a room";
835
991
  method: "GET";
836
- path: "/api/v2/media-stream/get/:streamId";
992
+ path: "/api/v2/room/:roomId";
837
993
  responses: {
994
+ 500: import("zod").ZodObject<{
995
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
996
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
997
+ name: import("zod").ZodLiteral<"APIError">;
998
+ }, "strip", import("zod").ZodTypeAny, {
999
+ code: "INTERNAL_SERVER_ERROR";
1000
+ error: string;
1001
+ name: "APIError";
1002
+ }, {
1003
+ code: "INTERNAL_SERVER_ERROR";
1004
+ error: string;
1005
+ name: "APIError";
1006
+ }>;
1007
+ 404: import("zod").ZodObject<{
1008
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1009
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1010
+ name: import("zod").ZodLiteral<"APIError">;
1011
+ }, "strip", import("zod").ZodTypeAny, {
1012
+ code: "ROOM_NOT_FOUND";
1013
+ error: "The requested room was not found";
1014
+ name: "APIError";
1015
+ }, {
1016
+ code: "ROOM_NOT_FOUND";
1017
+ error: "The requested room was not found";
1018
+ name: "APIError";
1019
+ }>;
838
1020
  200: import("zod").ZodObject<{
839
- streamId: import("zod").ZodString;
840
- title: import("zod").ZodString;
1021
+ roomId: import("zod").ZodString;
1022
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1023
+ ownerId: import("zod").ZodString;
1024
+ track: import("zod").ZodNullable<import("zod").ZodObject<{
1025
+ videoId: import("zod").ZodString;
1026
+ title: import("zod").ZodString;
1027
+ duration: import("zod").ZodNumber;
1028
+ }, "strip", import("zod").ZodTypeAny, {
1029
+ videoId: string;
1030
+ title: string;
1031
+ duration: number;
1032
+ }, {
1033
+ videoId: string;
1034
+ title: string;
1035
+ duration: number;
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">;
1054
+ url: import("zod").ZodNullable<import("zod").ZodString>;
1055
+ paused: import("zod").ZodBoolean;
841
1056
  startTime: import("zod").ZodNumber;
842
- duration: import("zod").ZodNumber;
843
1057
  currentTime: import("zod").ZodNumber;
844
- url: import("zod").ZodString;
845
- paused: import("zod").ZodBoolean;
846
1058
  scene: import("zod").ZodObject<{
847
1059
  speakers: import("zod").ZodArray<import("zod").ZodObject<{
848
1060
  id: import("zod").ZodString;
@@ -934,13 +1146,24 @@ declare const _default: {
934
1146
  }[];
935
1147
  }>;
936
1148
  }, "strip", import("zod").ZodTypeAny, {
937
- title: string;
938
- duration: number;
939
- streamId: string;
1149
+ name: string | null;
1150
+ roomId: string;
1151
+ ownerId: string;
1152
+ track: {
1153
+ videoId: string;
1154
+ title: string;
1155
+ duration: number;
1156
+ } | null;
1157
+ queue: {
1158
+ videoId: string;
1159
+ title: string;
1160
+ duration: number;
1161
+ id: string;
1162
+ }[];
1163
+ url: string | null;
1164
+ paused: boolean;
940
1165
  startTime: number;
941
1166
  currentTime: number;
942
- url: string;
943
- paused: boolean;
944
1167
  scene: {
945
1168
  speakers: {
946
1169
  id: string;
@@ -962,13 +1185,24 @@ declare const _default: {
962
1185
  }[];
963
1186
  };
964
1187
  }, {
965
- title: string;
966
- duration: number;
967
- streamId: string;
1188
+ name: string | null;
1189
+ roomId: string;
1190
+ ownerId: string;
1191
+ track: {
1192
+ videoId: string;
1193
+ title: string;
1194
+ duration: number;
1195
+ } | null;
1196
+ queue: {
1197
+ videoId: string;
1198
+ title: string;
1199
+ duration: number;
1200
+ id: string;
1201
+ }[];
1202
+ url: string | null;
1203
+ paused: boolean;
968
1204
  startTime: number;
969
1205
  currentTime: number;
970
- url: string;
971
- paused: boolean;
972
1206
  scene: {
973
1207
  speakers: {
974
1208
  id: string;
@@ -990,7 +1224,74 @@ declare const _default: {
990
1224
  }[];
991
1225
  };
992
1226
  }>;
993
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1227
+ };
1228
+ };
1229
+ rename: {
1230
+ description: "Rename a room, owner only, listeners get the name through the roomName socket event";
1231
+ method: "PATCH";
1232
+ body: import("zod").ZodObject<{
1233
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1234
+ }, "strip", import("zod").ZodTypeAny, {
1235
+ name: string | null;
1236
+ }, {
1237
+ name: string | null;
1238
+ }>;
1239
+ path: "/api/v2/room/:roomId";
1240
+ responses: {
1241
+ 500: import("zod").ZodObject<{
1242
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1243
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1244
+ name: import("zod").ZodLiteral<"APIError">;
1245
+ }, "strip", import("zod").ZodTypeAny, {
1246
+ code: "INTERNAL_SERVER_ERROR";
1247
+ error: string;
1248
+ name: "APIError";
1249
+ }, {
1250
+ code: "INTERNAL_SERVER_ERROR";
1251
+ error: string;
1252
+ name: "APIError";
1253
+ }>;
1254
+ 404: import("zod").ZodObject<{
1255
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1256
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1257
+ name: import("zod").ZodLiteral<"APIError">;
1258
+ }, "strip", import("zod").ZodTypeAny, {
1259
+ code: "ROOM_NOT_FOUND";
1260
+ error: "The requested room was not found";
1261
+ name: "APIError";
1262
+ }, {
1263
+ code: "ROOM_NOT_FOUND";
1264
+ error: "The requested room was not found";
1265
+ name: "APIError";
1266
+ }>;
1267
+ 401: import("zod").ZodObject<{
1268
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1269
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1270
+ name: import("zod").ZodLiteral<"APIError">;
1271
+ }, "strip", import("zod").ZodTypeAny, {
1272
+ code: "UNAUTHORIZED";
1273
+ error: "Unauthorized";
1274
+ name: "APIError";
1275
+ }, {
1276
+ code: "UNAUTHORIZED";
1277
+ error: "Unauthorized";
1278
+ name: "APIError";
1279
+ }>;
1280
+ 403: import("zod").ZodObject<{
1281
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1282
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1283
+ name: import("zod").ZodLiteral<"APIError">;
1284
+ }, "strip", import("zod").ZodTypeAny, {
1285
+ code: "FORBIDDEN";
1286
+ error: "Forbidden";
1287
+ name: "APIError";
1288
+ }, {
1289
+ code: "FORBIDDEN";
1290
+ error: "Forbidden";
1291
+ name: "APIError";
1292
+ }>;
1293
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1294
+ 400: import("zod").ZodObject<{
994
1295
  name: import("zod").ZodLiteral<"ZodError">;
995
1296
  issues: import("zod").ZodArray<import("zod").ZodObject<{
996
1297
  path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
@@ -1104,19 +1405,15 @@ declare const _default: {
1104
1405
  not_finite: "not_finite";
1105
1406
  }>;
1106
1407
  }, import("zod").ZodAny, "strip">[];
1107
- }>, import("zod").ZodObject<{
1108
- code: import("zod").ZodType<"INVALID_STREAM_ID", import("zod").ZodTypeDef, "INVALID_STREAM_ID">;
1109
- error: import("zod").ZodType<"The provided stream ID is invalid", import("zod").ZodTypeDef, "The provided stream ID is invalid">;
1110
- name: import("zod").ZodLiteral<"APIError">;
1111
- }, "strip", import("zod").ZodTypeAny, {
1112
- code: "INVALID_STREAM_ID";
1113
- error: "The provided stream ID is invalid";
1114
- name: "APIError";
1115
- }, {
1116
- code: "INVALID_STREAM_ID";
1117
- error: "The provided stream ID is invalid";
1118
- name: "APIError";
1119
- }>]>;
1408
+ }>;
1409
+ };
1410
+ };
1411
+ delete: {
1412
+ description: "Delete a room, owner only";
1413
+ method: "DELETE";
1414
+ body: import("zod").ZodUndefined;
1415
+ path: "/api/v2/room/:roomId";
1416
+ responses: {
1120
1417
  500: import("zod").ZodObject<{
1121
1418
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1122
1419
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1130,30 +1427,257 @@ declare const _default: {
1130
1427
  error: string;
1131
1428
  name: "APIError";
1132
1429
  }>;
1133
- };
1134
- };
1135
- play: {
1136
- description: "Play a media stream";
1137
- method: "POST";
1138
- body: import("zod").ZodUndefined;
1139
- path: "/api/v2/media-stream/play/:streamId";
1140
- responses: {
1141
1430
  404: import("zod").ZodObject<{
1142
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1143
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1431
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1432
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1144
1433
  name: import("zod").ZodLiteral<"APIError">;
1145
1434
  }, "strip", import("zod").ZodTypeAny, {
1146
- code: "STREAM_NOT_FOUND";
1147
- error: "The requested stream was not found";
1435
+ code: "ROOM_NOT_FOUND";
1436
+ error: "The requested room was not found";
1148
1437
  name: "APIError";
1149
1438
  }, {
1150
- code: "STREAM_NOT_FOUND";
1151
- error: "The requested stream was not found";
1439
+ code: "ROOM_NOT_FOUND";
1440
+ error: "The requested room was not found";
1152
1441
  name: "APIError";
1153
1442
  }>;
1154
- 500: import("zod").ZodObject<{
1155
- code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1156
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1443
+ 401: import("zod").ZodObject<{
1444
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1445
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1446
+ name: import("zod").ZodLiteral<"APIError">;
1447
+ }, "strip", import("zod").ZodTypeAny, {
1448
+ code: "UNAUTHORIZED";
1449
+ error: "Unauthorized";
1450
+ name: "APIError";
1451
+ }, {
1452
+ code: "UNAUTHORIZED";
1453
+ error: "Unauthorized";
1454
+ name: "APIError";
1455
+ }>;
1456
+ 403: import("zod").ZodObject<{
1457
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1458
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1459
+ name: import("zod").ZodLiteral<"APIError">;
1460
+ }, "strip", import("zod").ZodTypeAny, {
1461
+ code: "FORBIDDEN";
1462
+ error: "Forbidden";
1463
+ name: "APIError";
1464
+ }, {
1465
+ code: "FORBIDDEN";
1466
+ error: "Forbidden";
1467
+ name: "APIError";
1468
+ }>;
1469
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1470
+ };
1471
+ };
1472
+ track: {
1473
+ description: "Play a YouTube video in a room, listeners switch through the roomTrack socket event. Resolves once it plays, a cache miss downloads the whole video first";
1474
+ method: "POST";
1475
+ body: import("zod").ZodObject<{
1476
+ videoId: import("zod").ZodString;
1477
+ }, "strip", import("zod").ZodTypeAny, {
1478
+ videoId: string;
1479
+ }, {
1480
+ videoId: string;
1481
+ }>;
1482
+ path: "/api/v2/room/:roomId/track";
1483
+ responses: {
1484
+ 500: import("zod").ZodObject<{
1485
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1486
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1487
+ name: import("zod").ZodLiteral<"APIError">;
1488
+ }, "strip", import("zod").ZodTypeAny, {
1489
+ code: "INTERNAL_SERVER_ERROR";
1490
+ error: string;
1491
+ name: "APIError";
1492
+ }, {
1493
+ code: "INTERNAL_SERVER_ERROR";
1494
+ error: string;
1495
+ name: "APIError";
1496
+ }>;
1497
+ 404: import("zod").ZodObject<{
1498
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1499
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1500
+ name: import("zod").ZodLiteral<"APIError">;
1501
+ }, "strip", import("zod").ZodTypeAny, {
1502
+ code: "ROOM_NOT_FOUND";
1503
+ error: "The requested room was not found";
1504
+ name: "APIError";
1505
+ }, {
1506
+ code: "ROOM_NOT_FOUND";
1507
+ error: "The requested room was not found";
1508
+ name: "APIError";
1509
+ }>;
1510
+ 401: import("zod").ZodObject<{
1511
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1512
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1513
+ name: import("zod").ZodLiteral<"APIError">;
1514
+ }, "strip", import("zod").ZodTypeAny, {
1515
+ code: "UNAUTHORIZED";
1516
+ error: "Unauthorized";
1517
+ name: "APIError";
1518
+ }, {
1519
+ code: "UNAUTHORIZED";
1520
+ error: "Unauthorized";
1521
+ name: "APIError";
1522
+ }>;
1523
+ 403: import("zod").ZodObject<{
1524
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1525
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1526
+ name: import("zod").ZodLiteral<"APIError">;
1527
+ }, "strip", import("zod").ZodTypeAny, {
1528
+ code: "FORBIDDEN";
1529
+ error: "Forbidden";
1530
+ name: "APIError";
1531
+ }, {
1532
+ code: "FORBIDDEN";
1533
+ error: "Forbidden";
1534
+ name: "APIError";
1535
+ }>;
1536
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1537
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1538
+ name: import("zod").ZodLiteral<"ZodError">;
1539
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1540
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1541
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1542
+ code: import("zod").ZodNativeEnum<{
1543
+ invalid_type: "invalid_type";
1544
+ invalid_literal: "invalid_literal";
1545
+ custom: "custom";
1546
+ invalid_union: "invalid_union";
1547
+ invalid_union_discriminator: "invalid_union_discriminator";
1548
+ invalid_enum_value: "invalid_enum_value";
1549
+ unrecognized_keys: "unrecognized_keys";
1550
+ invalid_arguments: "invalid_arguments";
1551
+ invalid_return_type: "invalid_return_type";
1552
+ invalid_date: "invalid_date";
1553
+ invalid_string: "invalid_string";
1554
+ too_small: "too_small";
1555
+ too_big: "too_big";
1556
+ invalid_intersection_types: "invalid_intersection_types";
1557
+ not_multiple_of: "not_multiple_of";
1558
+ not_finite: "not_finite";
1559
+ }>;
1560
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1561
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1562
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1563
+ code: import("zod").ZodNativeEnum<{
1564
+ invalid_type: "invalid_type";
1565
+ invalid_literal: "invalid_literal";
1566
+ custom: "custom";
1567
+ invalid_union: "invalid_union";
1568
+ invalid_union_discriminator: "invalid_union_discriminator";
1569
+ invalid_enum_value: "invalid_enum_value";
1570
+ unrecognized_keys: "unrecognized_keys";
1571
+ invalid_arguments: "invalid_arguments";
1572
+ invalid_return_type: "invalid_return_type";
1573
+ invalid_date: "invalid_date";
1574
+ invalid_string: "invalid_string";
1575
+ too_small: "too_small";
1576
+ too_big: "too_big";
1577
+ invalid_intersection_types: "invalid_intersection_types";
1578
+ not_multiple_of: "not_multiple_of";
1579
+ not_finite: "not_finite";
1580
+ }>;
1581
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1582
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1583
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1584
+ code: import("zod").ZodNativeEnum<{
1585
+ invalid_type: "invalid_type";
1586
+ invalid_literal: "invalid_literal";
1587
+ custom: "custom";
1588
+ invalid_union: "invalid_union";
1589
+ invalid_union_discriminator: "invalid_union_discriminator";
1590
+ invalid_enum_value: "invalid_enum_value";
1591
+ unrecognized_keys: "unrecognized_keys";
1592
+ invalid_arguments: "invalid_arguments";
1593
+ invalid_return_type: "invalid_return_type";
1594
+ invalid_date: "invalid_date";
1595
+ invalid_string: "invalid_string";
1596
+ too_small: "too_small";
1597
+ too_big: "too_big";
1598
+ invalid_intersection_types: "invalid_intersection_types";
1599
+ not_multiple_of: "not_multiple_of";
1600
+ not_finite: "not_finite";
1601
+ }>;
1602
+ }, import("zod").ZodAny, "strip">>, "many">;
1603
+ }, "strip", import("zod").ZodTypeAny, {
1604
+ name: "ZodError";
1605
+ issues: import("zod").objectOutputType<{
1606
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1607
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1608
+ code: import("zod").ZodNativeEnum<{
1609
+ invalid_type: "invalid_type";
1610
+ invalid_literal: "invalid_literal";
1611
+ custom: "custom";
1612
+ invalid_union: "invalid_union";
1613
+ invalid_union_discriminator: "invalid_union_discriminator";
1614
+ invalid_enum_value: "invalid_enum_value";
1615
+ unrecognized_keys: "unrecognized_keys";
1616
+ invalid_arguments: "invalid_arguments";
1617
+ invalid_return_type: "invalid_return_type";
1618
+ invalid_date: "invalid_date";
1619
+ invalid_string: "invalid_string";
1620
+ too_small: "too_small";
1621
+ too_big: "too_big";
1622
+ invalid_intersection_types: "invalid_intersection_types";
1623
+ not_multiple_of: "not_multiple_of";
1624
+ not_finite: "not_finite";
1625
+ }>;
1626
+ }, import("zod").ZodAny, "strip">[];
1627
+ }, {
1628
+ name: "ZodError";
1629
+ issues: import("zod").objectInputType<{
1630
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1631
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1632
+ code: import("zod").ZodNativeEnum<{
1633
+ invalid_type: "invalid_type";
1634
+ invalid_literal: "invalid_literal";
1635
+ custom: "custom";
1636
+ invalid_union: "invalid_union";
1637
+ invalid_union_discriminator: "invalid_union_discriminator";
1638
+ invalid_enum_value: "invalid_enum_value";
1639
+ unrecognized_keys: "unrecognized_keys";
1640
+ invalid_arguments: "invalid_arguments";
1641
+ invalid_return_type: "invalid_return_type";
1642
+ invalid_date: "invalid_date";
1643
+ invalid_string: "invalid_string";
1644
+ too_small: "too_small";
1645
+ too_big: "too_big";
1646
+ invalid_intersection_types: "invalid_intersection_types";
1647
+ not_multiple_of: "not_multiple_of";
1648
+ not_finite: "not_finite";
1649
+ }>;
1650
+ }, import("zod").ZodAny, "strip">[];
1651
+ }>, import("zod").ZodObject<{
1652
+ code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
1653
+ error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
1654
+ name: import("zod").ZodLiteral<"APIError">;
1655
+ }, "strip", import("zod").ZodTypeAny, {
1656
+ code: "INVALID_VIDEO_ID";
1657
+ error: "The provided video ID is invalid";
1658
+ name: "APIError";
1659
+ }, {
1660
+ code: "INVALID_VIDEO_ID";
1661
+ error: "The provided video ID is invalid";
1662
+ name: "APIError";
1663
+ }>]>;
1664
+ };
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>;
1157
1681
  name: import("zod").ZodLiteral<"APIError">;
1158
1682
  }, "strip", import("zod").ZodTypeAny, {
1159
1683
  code: "INTERNAL_SERVER_ERROR";
@@ -1164,6 +1688,32 @@ declare const _default: {
1164
1688
  error: string;
1165
1689
  name: "APIError";
1166
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
+ }>;
1167
1717
  401: import("zod").ZodObject<{
1168
1718
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1169
1719
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -1306,39 +1856,453 @@ declare const _default: {
1306
1856
  }>;
1307
1857
  }, import("zod").ZodAny, "strip">[];
1308
1858
  }>, import("zod").ZodObject<{
1309
- code: import("zod").ZodType<"INVALID_STREAM_ID", import("zod").ZodTypeDef, "INVALID_STREAM_ID">;
1310
- error: import("zod").ZodType<"The provided stream ID is invalid", import("zod").ZodTypeDef, "The provided stream ID is invalid">;
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
+ };
2214
+ play: {
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";
2216
+ method: "POST";
2217
+ body: import("zod").ZodUndefined;
2218
+ path: "/api/v2/room/:roomId/play";
2219
+ responses: {
2220
+ 500: import("zod").ZodObject<{
2221
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2222
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2223
+ name: import("zod").ZodLiteral<"APIError">;
2224
+ }, "strip", import("zod").ZodTypeAny, {
2225
+ code: "INTERNAL_SERVER_ERROR";
2226
+ error: string;
2227
+ name: "APIError";
2228
+ }, {
2229
+ code: "INTERNAL_SERVER_ERROR";
2230
+ error: string;
2231
+ name: "APIError";
2232
+ }>;
2233
+ 404: import("zod").ZodObject<{
2234
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
2235
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
2236
+ name: import("zod").ZodLiteral<"APIError">;
2237
+ }, "strip", import("zod").ZodTypeAny, {
2238
+ code: "ROOM_NOT_FOUND";
2239
+ error: "The requested room was not found";
2240
+ name: "APIError";
2241
+ }, {
2242
+ code: "ROOM_NOT_FOUND";
2243
+ error: "The requested room was not found";
2244
+ name: "APIError";
2245
+ }>;
2246
+ 401: import("zod").ZodObject<{
2247
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2248
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2249
+ name: import("zod").ZodLiteral<"APIError">;
2250
+ }, "strip", import("zod").ZodTypeAny, {
2251
+ code: "UNAUTHORIZED";
2252
+ error: "Unauthorized";
2253
+ name: "APIError";
2254
+ }, {
2255
+ code: "UNAUTHORIZED";
2256
+ error: "Unauthorized";
2257
+ name: "APIError";
2258
+ }>;
2259
+ 403: import("zod").ZodObject<{
2260
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
2261
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
2262
+ name: import("zod").ZodLiteral<"APIError">;
2263
+ }, "strip", import("zod").ZodTypeAny, {
2264
+ code: "FORBIDDEN";
2265
+ error: "Forbidden";
2266
+ name: "APIError";
2267
+ }, {
2268
+ code: "FORBIDDEN";
2269
+ error: "Forbidden";
2270
+ name: "APIError";
2271
+ }>;
2272
+ 200: typeof import("@ts-rest/core").ContractNoBody;
2273
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
2274
+ code: import("zod").ZodType<"NO_TRACK", import("zod").ZodTypeDef, "NO_TRACK">;
2275
+ error: import("zod").ZodType<"The room has no track", import("zod").ZodTypeDef, "The room has no track">;
2276
+ name: import("zod").ZodLiteral<"APIError">;
2277
+ }, "strip", import("zod").ZodTypeAny, {
2278
+ code: "NO_TRACK";
2279
+ error: "The room has no track";
2280
+ name: "APIError";
2281
+ }, {
2282
+ code: "NO_TRACK";
2283
+ error: "The room has no track";
2284
+ name: "APIError";
2285
+ }>, import("zod").ZodObject<{
2286
+ code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
2287
+ error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
1311
2288
  name: import("zod").ZodLiteral<"APIError">;
1312
2289
  }, "strip", import("zod").ZodTypeAny, {
1313
- code: "INVALID_STREAM_ID";
1314
- error: "The provided stream ID is invalid";
2290
+ code: "INVALID_VIDEO_ID";
2291
+ error: "The provided video ID is invalid";
1315
2292
  name: "APIError";
1316
2293
  }, {
1317
- code: "INVALID_STREAM_ID";
1318
- error: "The provided stream ID is invalid";
2294
+ code: "INVALID_VIDEO_ID";
2295
+ error: "The provided video ID is invalid";
1319
2296
  name: "APIError";
1320
2297
  }>]>;
1321
2298
  };
1322
2299
  };
1323
2300
  pause: {
1324
- description: "Pause a media stream";
2301
+ description: "Pause a room";
1325
2302
  method: "POST";
1326
2303
  body: import("zod").ZodUndefined;
1327
- path: "/api/v2/media-stream/pause/:streamId";
2304
+ path: "/api/v2/room/:roomId/pause";
1328
2305
  responses: {
1329
- 404: import("zod").ZodObject<{
1330
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1331
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1332
- name: import("zod").ZodLiteral<"APIError">;
1333
- }, "strip", import("zod").ZodTypeAny, {
1334
- code: "STREAM_NOT_FOUND";
1335
- error: "The requested stream was not found";
1336
- name: "APIError";
1337
- }, {
1338
- code: "STREAM_NOT_FOUND";
1339
- error: "The requested stream was not found";
1340
- name: "APIError";
1341
- }>;
1342
2306
  500: import("zod").ZodObject<{
1343
2307
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1344
2308
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1352,6 +2316,19 @@ declare const _default: {
1352
2316
  error: string;
1353
2317
  name: "APIError";
1354
2318
  }>;
2319
+ 404: import("zod").ZodObject<{
2320
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
2321
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
2322
+ name: import("zod").ZodLiteral<"APIError">;
2323
+ }, "strip", import("zod").ZodTypeAny, {
2324
+ code: "ROOM_NOT_FOUND";
2325
+ error: "The requested room was not found";
2326
+ name: "APIError";
2327
+ }, {
2328
+ code: "ROOM_NOT_FOUND";
2329
+ error: "The requested room was not found";
2330
+ name: "APIError";
2331
+ }>;
1355
2332
  401: import("zod").ZodObject<{
1356
2333
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1357
2334
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -1379,133 +2356,6 @@ declare const _default: {
1379
2356
  name: "APIError";
1380
2357
  }>;
1381
2358
  200: typeof import("@ts-rest/core").ContractNoBody;
1382
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1383
- name: import("zod").ZodLiteral<"ZodError">;
1384
- issues: import("zod").ZodArray<import("zod").ZodObject<{
1385
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1386
- message: import("zod").ZodOptional<import("zod").ZodString>;
1387
- code: import("zod").ZodNativeEnum<{
1388
- invalid_type: "invalid_type";
1389
- invalid_literal: "invalid_literal";
1390
- custom: "custom";
1391
- invalid_union: "invalid_union";
1392
- invalid_union_discriminator: "invalid_union_discriminator";
1393
- invalid_enum_value: "invalid_enum_value";
1394
- unrecognized_keys: "unrecognized_keys";
1395
- invalid_arguments: "invalid_arguments";
1396
- invalid_return_type: "invalid_return_type";
1397
- invalid_date: "invalid_date";
1398
- invalid_string: "invalid_string";
1399
- too_small: "too_small";
1400
- too_big: "too_big";
1401
- invalid_intersection_types: "invalid_intersection_types";
1402
- not_multiple_of: "not_multiple_of";
1403
- not_finite: "not_finite";
1404
- }>;
1405
- }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1406
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1407
- message: import("zod").ZodOptional<import("zod").ZodString>;
1408
- code: import("zod").ZodNativeEnum<{
1409
- invalid_type: "invalid_type";
1410
- invalid_literal: "invalid_literal";
1411
- custom: "custom";
1412
- invalid_union: "invalid_union";
1413
- invalid_union_discriminator: "invalid_union_discriminator";
1414
- invalid_enum_value: "invalid_enum_value";
1415
- unrecognized_keys: "unrecognized_keys";
1416
- invalid_arguments: "invalid_arguments";
1417
- invalid_return_type: "invalid_return_type";
1418
- invalid_date: "invalid_date";
1419
- invalid_string: "invalid_string";
1420
- too_small: "too_small";
1421
- too_big: "too_big";
1422
- invalid_intersection_types: "invalid_intersection_types";
1423
- not_multiple_of: "not_multiple_of";
1424
- not_finite: "not_finite";
1425
- }>;
1426
- }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1427
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1428
- message: import("zod").ZodOptional<import("zod").ZodString>;
1429
- code: import("zod").ZodNativeEnum<{
1430
- invalid_type: "invalid_type";
1431
- invalid_literal: "invalid_literal";
1432
- custom: "custom";
1433
- invalid_union: "invalid_union";
1434
- invalid_union_discriminator: "invalid_union_discriminator";
1435
- invalid_enum_value: "invalid_enum_value";
1436
- unrecognized_keys: "unrecognized_keys";
1437
- invalid_arguments: "invalid_arguments";
1438
- invalid_return_type: "invalid_return_type";
1439
- invalid_date: "invalid_date";
1440
- invalid_string: "invalid_string";
1441
- too_small: "too_small";
1442
- too_big: "too_big";
1443
- invalid_intersection_types: "invalid_intersection_types";
1444
- not_multiple_of: "not_multiple_of";
1445
- not_finite: "not_finite";
1446
- }>;
1447
- }, import("zod").ZodAny, "strip">>, "many">;
1448
- }, "strip", import("zod").ZodTypeAny, {
1449
- name: "ZodError";
1450
- issues: import("zod").objectOutputType<{
1451
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1452
- message: import("zod").ZodOptional<import("zod").ZodString>;
1453
- code: import("zod").ZodNativeEnum<{
1454
- invalid_type: "invalid_type";
1455
- invalid_literal: "invalid_literal";
1456
- custom: "custom";
1457
- invalid_union: "invalid_union";
1458
- invalid_union_discriminator: "invalid_union_discriminator";
1459
- invalid_enum_value: "invalid_enum_value";
1460
- unrecognized_keys: "unrecognized_keys";
1461
- invalid_arguments: "invalid_arguments";
1462
- invalid_return_type: "invalid_return_type";
1463
- invalid_date: "invalid_date";
1464
- invalid_string: "invalid_string";
1465
- too_small: "too_small";
1466
- too_big: "too_big";
1467
- invalid_intersection_types: "invalid_intersection_types";
1468
- not_multiple_of: "not_multiple_of";
1469
- not_finite: "not_finite";
1470
- }>;
1471
- }, import("zod").ZodAny, "strip">[];
1472
- }, {
1473
- name: "ZodError";
1474
- issues: import("zod").objectInputType<{
1475
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1476
- message: import("zod").ZodOptional<import("zod").ZodString>;
1477
- code: import("zod").ZodNativeEnum<{
1478
- invalid_type: "invalid_type";
1479
- invalid_literal: "invalid_literal";
1480
- custom: "custom";
1481
- invalid_union: "invalid_union";
1482
- invalid_union_discriminator: "invalid_union_discriminator";
1483
- invalid_enum_value: "invalid_enum_value";
1484
- unrecognized_keys: "unrecognized_keys";
1485
- invalid_arguments: "invalid_arguments";
1486
- invalid_return_type: "invalid_return_type";
1487
- invalid_date: "invalid_date";
1488
- invalid_string: "invalid_string";
1489
- too_small: "too_small";
1490
- too_big: "too_big";
1491
- invalid_intersection_types: "invalid_intersection_types";
1492
- not_multiple_of: "not_multiple_of";
1493
- not_finite: "not_finite";
1494
- }>;
1495
- }, import("zod").ZodAny, "strip">[];
1496
- }>, import("zod").ZodObject<{
1497
- code: import("zod").ZodType<"INVALID_STREAM_ID", import("zod").ZodTypeDef, "INVALID_STREAM_ID">;
1498
- error: import("zod").ZodType<"The provided stream ID is invalid", import("zod").ZodTypeDef, "The provided stream ID is invalid">;
1499
- name: import("zod").ZodLiteral<"APIError">;
1500
- }, "strip", import("zod").ZodTypeAny, {
1501
- code: "INVALID_STREAM_ID";
1502
- error: "The provided stream ID is invalid";
1503
- name: "APIError";
1504
- }, {
1505
- code: "INVALID_STREAM_ID";
1506
- error: "The provided stream ID is invalid";
1507
- name: "APIError";
1508
- }>]>;
1509
2359
  };
1510
2360
  };
1511
2361
  seek: {
@@ -1516,24 +2366,11 @@ declare const _default: {
1516
2366
  }, {
1517
2367
  time: number;
1518
2368
  }>;
1519
- description: "Seek a media stream";
2369
+ description: "Seek the track of a room";
1520
2370
  method: "POST";
1521
2371
  body: import("zod").ZodUndefined;
1522
- path: "/api/v2/media-stream/seek/:streamId";
2372
+ path: "/api/v2/room/:roomId/seek";
1523
2373
  responses: {
1524
- 404: import("zod").ZodObject<{
1525
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1526
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1527
- name: import("zod").ZodLiteral<"APIError">;
1528
- }, "strip", import("zod").ZodTypeAny, {
1529
- code: "STREAM_NOT_FOUND";
1530
- error: "The requested stream was not found";
1531
- name: "APIError";
1532
- }, {
1533
- code: "STREAM_NOT_FOUND";
1534
- error: "The requested stream was not found";
1535
- name: "APIError";
1536
- }>;
1537
2374
  500: import("zod").ZodObject<{
1538
2375
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1539
2376
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1547,6 +2384,19 @@ declare const _default: {
1547
2384
  error: string;
1548
2385
  name: "APIError";
1549
2386
  }>;
2387
+ 404: import("zod").ZodObject<{
2388
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
2389
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
2390
+ name: import("zod").ZodLiteral<"APIError">;
2391
+ }, "strip", import("zod").ZodTypeAny, {
2392
+ code: "ROOM_NOT_FOUND";
2393
+ error: "The requested room was not found";
2394
+ name: "APIError";
2395
+ }, {
2396
+ code: "ROOM_NOT_FOUND";
2397
+ error: "The requested room was not found";
2398
+ name: "APIError";
2399
+ }>;
1550
2400
  401: import("zod").ZodObject<{
1551
2401
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1552
2402
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -1689,22 +2539,22 @@ declare const _default: {
1689
2539
  }>;
1690
2540
  }, import("zod").ZodAny, "strip">[];
1691
2541
  }>, import("zod").ZodObject<{
1692
- code: import("zod").ZodType<"INVALID_STREAM_ID", import("zod").ZodTypeDef, "INVALID_STREAM_ID">;
1693
- error: import("zod").ZodType<"The provided stream ID is invalid", import("zod").ZodTypeDef, "The provided stream ID is invalid">;
2542
+ code: import("zod").ZodType<"NO_TRACK", import("zod").ZodTypeDef, "NO_TRACK">;
2543
+ error: import("zod").ZodType<"The room has no track", import("zod").ZodTypeDef, "The room has no track">;
1694
2544
  name: import("zod").ZodLiteral<"APIError">;
1695
2545
  }, "strip", import("zod").ZodTypeAny, {
1696
- code: "INVALID_STREAM_ID";
1697
- error: "The provided stream ID is invalid";
2546
+ code: "NO_TRACK";
2547
+ error: "The room has no track";
1698
2548
  name: "APIError";
1699
2549
  }, {
1700
- code: "INVALID_STREAM_ID";
1701
- error: "The provided stream ID is invalid";
2550
+ code: "NO_TRACK";
2551
+ error: "The room has no track";
1702
2552
  name: "APIError";
1703
2553
  }>]>;
1704
2554
  };
1705
2555
  };
1706
2556
  scene: {
1707
- description: "Change the scene of a media stream, listeners get the new scene through the mediaStreamScene socket event";
2557
+ description: "Change the scene of a room, listeners get the new scene through the roomScene socket event";
1708
2558
  method: "POST";
1709
2559
  body: import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
1710
2560
  type: import("zod").ZodLiteral<"addSpeaker">;
@@ -1842,21 +2692,8 @@ declare const _default: {
1842
2692
  }, {
1843
2693
  type: "reset";
1844
2694
  }>]>;
1845
- path: "/api/v2/media-stream/scene/:streamId";
2695
+ path: "/api/v2/room/:roomId/scene";
1846
2696
  responses: {
1847
- 404: import("zod").ZodObject<{
1848
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1849
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1850
- name: import("zod").ZodLiteral<"APIError">;
1851
- }, "strip", import("zod").ZodTypeAny, {
1852
- code: "STREAM_NOT_FOUND";
1853
- error: "The requested stream was not found";
1854
- name: "APIError";
1855
- }, {
1856
- code: "STREAM_NOT_FOUND";
1857
- error: "The requested stream was not found";
1858
- name: "APIError";
1859
- }>;
1860
2697
  500: import("zod").ZodObject<{
1861
2698
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1862
2699
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1870,6 +2707,19 @@ declare const _default: {
1870
2707
  error: string;
1871
2708
  name: "APIError";
1872
2709
  }>;
2710
+ 404: import("zod").ZodObject<{
2711
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
2712
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
2713
+ name: import("zod").ZodLiteral<"APIError">;
2714
+ }, "strip", import("zod").ZodTypeAny, {
2715
+ code: "ROOM_NOT_FOUND";
2716
+ error: "The requested room was not found";
2717
+ name: "APIError";
2718
+ }, {
2719
+ code: "ROOM_NOT_FOUND";
2720
+ error: "The requested room was not found";
2721
+ name: "APIError";
2722
+ }>;
1873
2723
  401: import("zod").ZodObject<{
1874
2724
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1875
2725
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -2038,53 +2888,6 @@ declare const _default: {
2038
2888
  }>]>;
2039
2889
  };
2040
2890
  };
2041
- stream: {
2042
- description: "Get media stream by stream ID";
2043
- method: "GET";
2044
- path: "/api/v2/media-stream/stream/:streamId";
2045
- responses: {
2046
- 200: import("zod").ZodAny;
2047
- 400: import("zod").ZodObject<{
2048
- code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
2049
- error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
2050
- name: import("zod").ZodLiteral<"APIError">;
2051
- }, "strip", import("zod").ZodTypeAny, {
2052
- code: "INVALID_VIDEO_ID";
2053
- error: "The provided video ID is invalid";
2054
- name: "APIError";
2055
- }, {
2056
- code: "INVALID_VIDEO_ID";
2057
- error: "The provided video ID is invalid";
2058
- name: "APIError";
2059
- }>;
2060
- 404: import("zod").ZodObject<{
2061
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
2062
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
2063
- name: import("zod").ZodLiteral<"APIError">;
2064
- }, "strip", import("zod").ZodTypeAny, {
2065
- code: "STREAM_NOT_FOUND";
2066
- error: "The requested stream was not found";
2067
- name: "APIError";
2068
- }, {
2069
- code: "STREAM_NOT_FOUND";
2070
- error: "The requested stream was not found";
2071
- name: "APIError";
2072
- }>;
2073
- 500: import("zod").ZodObject<{
2074
- code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2075
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2076
- name: import("zod").ZodLiteral<"APIError">;
2077
- }, "strip", import("zod").ZodTypeAny, {
2078
- code: "INTERNAL_SERVER_ERROR";
2079
- error: string;
2080
- name: "APIError";
2081
- }, {
2082
- code: "INTERNAL_SERVER_ERROR";
2083
- error: string;
2084
- name: "APIError";
2085
- }>;
2086
- };
2087
- };
2088
2891
  };
2089
2892
  };
2090
2893
  export default _default;