@darco2903/altv-web-api 1.5.0 → 2.0.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.
@@ -75,15 +75,15 @@ declare const _default: {
75
75
  }, "strip", import("zod").ZodTypeAny, {
76
76
  videoId: string;
77
77
  title: string;
78
- duration: number | null;
79
78
  channel: string | null;
79
+ duration: number | null;
80
80
  thumbnail: string | null;
81
81
  blocked: "live" | "too_long" | null;
82
82
  }, {
83
83
  videoId: string;
84
84
  title: string;
85
- duration: number | null;
86
85
  channel: string | null;
86
+ duration: number | null;
87
87
  thumbnail: string | null;
88
88
  blocked: "live" | "too_long" | null;
89
89
  }>, "many">;
@@ -91,8 +91,8 @@ declare const _default: {
91
91
  results: {
92
92
  videoId: string;
93
93
  title: string;
94
- duration: number | null;
95
94
  channel: string | null;
95
+ duration: number | null;
96
96
  thumbnail: string | null;
97
97
  blocked: "live" | "too_long" | null;
98
98
  }[];
@@ -100,8 +100,8 @@ declare const _default: {
100
100
  results: {
101
101
  videoId: string;
102
102
  title: string;
103
- duration: number | null;
104
103
  channel: string | null;
104
+ duration: number | null;
105
105
  thumbnail: string | null;
106
106
  blocked: "live" | "too_long" | null;
107
107
  }[];
@@ -552,18 +552,157 @@ declare const _default: {
552
552
  }>;
553
553
  };
554
554
  };
555
+ history: {
556
+ list: {
557
+ description: "Tracks the logged in user started recently, last played first";
558
+ method: "GET";
559
+ path: "/api/v2/history";
560
+ responses: {
561
+ 500: import("zod").ZodObject<{
562
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
563
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
564
+ name: import("zod").ZodLiteral<"APIError">;
565
+ }, "strip", import("zod").ZodTypeAny, {
566
+ code: "INTERNAL_SERVER_ERROR";
567
+ error: string;
568
+ name: "APIError";
569
+ }, {
570
+ code: "INTERNAL_SERVER_ERROR";
571
+ error: string;
572
+ name: "APIError";
573
+ }>;
574
+ 401: import("zod").ZodObject<{
575
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
576
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
577
+ name: import("zod").ZodLiteral<"APIError">;
578
+ }, "strip", import("zod").ZodTypeAny, {
579
+ code: "UNAUTHORIZED";
580
+ error: "Unauthorized";
581
+ name: "APIError";
582
+ }, {
583
+ code: "UNAUTHORIZED";
584
+ error: "Unauthorized";
585
+ name: "APIError";
586
+ }>;
587
+ 403: import("zod").ZodObject<{
588
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
589
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
590
+ name: import("zod").ZodLiteral<"APIError">;
591
+ }, "strip", import("zod").ZodTypeAny, {
592
+ code: "FORBIDDEN";
593
+ error: "Forbidden";
594
+ name: "APIError";
595
+ }, {
596
+ code: "FORBIDDEN";
597
+ error: "Forbidden";
598
+ name: "APIError";
599
+ }>;
600
+ 200: import("zod").ZodObject<{
601
+ tracks: import("zod").ZodArray<import("zod").ZodObject<{
602
+ videoId: import("zod").ZodString;
603
+ title: import("zod").ZodString;
604
+ channel: import("zod").ZodNullable<import("zod").ZodString>;
605
+ duration: import("zod").ZodNullable<import("zod").ZodNumber>;
606
+ thumbnail: import("zod").ZodNullable<import("zod").ZodString>;
607
+ blocked: import("zod").ZodNullable<import("zod").ZodEnum<["live", "too_long"]>>;
608
+ }, "strip", import("zod").ZodTypeAny, {
609
+ videoId: string;
610
+ title: string;
611
+ channel: string | null;
612
+ duration: number | null;
613
+ thumbnail: string | null;
614
+ blocked: "live" | "too_long" | null;
615
+ }, {
616
+ videoId: string;
617
+ title: string;
618
+ channel: string | null;
619
+ duration: number | null;
620
+ thumbnail: string | null;
621
+ blocked: "live" | "too_long" | null;
622
+ }>, "many">;
623
+ }, "strip", import("zod").ZodTypeAny, {
624
+ tracks: {
625
+ videoId: string;
626
+ title: string;
627
+ channel: string | null;
628
+ duration: number | null;
629
+ thumbnail: string | null;
630
+ blocked: "live" | "too_long" | null;
631
+ }[];
632
+ }, {
633
+ tracks: {
634
+ videoId: string;
635
+ title: string;
636
+ channel: string | null;
637
+ duration: number | null;
638
+ thumbnail: string | null;
639
+ blocked: "live" | "too_long" | null;
640
+ }[];
641
+ }>;
642
+ };
643
+ };
644
+ };
555
645
  mediaStream: {
556
- init: {
557
- 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";
558
697
  method: "POST";
559
698
  body: import("zod").ZodObject<{
560
- videoId: import("zod").ZodString;
699
+ name: import("zod").ZodNullable<import("zod").ZodString>;
561
700
  }, "strip", import("zod").ZodTypeAny, {
562
- videoId: string;
701
+ name: string | null;
563
702
  }, {
564
- videoId: string;
703
+ name: string | null;
565
704
  }>;
566
- path: "/api/v2/media-stream/init";
705
+ path: "/api/v2/room";
567
706
  responses: {
568
707
  500: import("zod").ZodObject<{
569
708
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
@@ -578,6 +717,19 @@ declare const _default: {
578
717
  error: string;
579
718
  name: "APIError";
580
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
+ }>;
581
733
  401: import("zod").ZodObject<{
582
734
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
583
735
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -605,13 +757,13 @@ declare const _default: {
605
757
  name: "APIError";
606
758
  }>;
607
759
  200: import("zod").ZodObject<{
608
- streamId: import("zod").ZodString;
760
+ roomId: import("zod").ZodString;
609
761
  }, "strip", import("zod").ZodTypeAny, {
610
- streamId: string;
762
+ roomId: string;
611
763
  }, {
612
- streamId: string;
764
+ roomId: string;
613
765
  }>;
614
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
766
+ 400: import("zod").ZodObject<{
615
767
  name: import("zod").ZodLiteral<"ZodError">;
616
768
  issues: import("zod").ZodArray<import("zod").ZodObject<{
617
769
  path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
@@ -725,34 +877,167 @@ declare const _default: {
725
877
  not_finite: "not_finite";
726
878
  }>;
727
879
  }, import("zod").ZodAny, "strip">[];
728
- }>, import("zod").ZodObject<{
729
- code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
730
- 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>;
731
891
  name: import("zod").ZodLiteral<"APIError">;
732
892
  }, "strip", import("zod").ZodTypeAny, {
733
- code: "INVALID_VIDEO_ID";
734
- error: "The provided video ID is invalid";
893
+ code: "INTERNAL_SERVER_ERROR";
894
+ error: string;
735
895
  name: "APIError";
736
896
  }, {
737
- code: "INVALID_VIDEO_ID";
738
- error: "The provided video ID is invalid";
897
+ code: "INTERNAL_SERVER_ERROR";
898
+ error: string;
739
899
  name: "APIError";
740
- }>]>;
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
+ }>;
741
987
  };
742
988
  };
743
989
  get: {
744
- description: "Get media stream info";
990
+ description: "Get the state of a room";
745
991
  method: "GET";
746
- path: "/api/v2/media-stream/get/:streamId";
992
+ path: "/api/v2/room/:roomId";
747
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
+ }>;
748
1020
  200: import("zod").ZodObject<{
749
- streamId: import("zod").ZodString;
750
- 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
+ url: import("zod").ZodNullable<import("zod").ZodString>;
1038
+ paused: import("zod").ZodBoolean;
751
1039
  startTime: import("zod").ZodNumber;
752
- duration: import("zod").ZodNumber;
753
1040
  currentTime: import("zod").ZodNumber;
754
- url: import("zod").ZodString;
755
- paused: import("zod").ZodBoolean;
756
1041
  scene: import("zod").ZodObject<{
757
1042
  speakers: import("zod").ZodArray<import("zod").ZodObject<{
758
1043
  id: import("zod").ZodString;
@@ -844,13 +1129,18 @@ declare const _default: {
844
1129
  }[];
845
1130
  }>;
846
1131
  }, "strip", import("zod").ZodTypeAny, {
847
- streamId: string;
848
- title: string;
1132
+ name: string | null;
1133
+ roomId: string;
1134
+ ownerId: string;
1135
+ track: {
1136
+ videoId: string;
1137
+ title: string;
1138
+ duration: number;
1139
+ } | null;
1140
+ url: string | null;
1141
+ paused: boolean;
849
1142
  startTime: number;
850
- duration: number;
851
1143
  currentTime: number;
852
- url: string;
853
- paused: boolean;
854
1144
  scene: {
855
1145
  speakers: {
856
1146
  id: string;
@@ -872,13 +1162,18 @@ declare const _default: {
872
1162
  }[];
873
1163
  };
874
1164
  }, {
875
- streamId: string;
876
- title: string;
1165
+ name: string | null;
1166
+ roomId: string;
1167
+ ownerId: string;
1168
+ track: {
1169
+ videoId: string;
1170
+ title: string;
1171
+ duration: number;
1172
+ } | null;
1173
+ url: string | null;
1174
+ paused: boolean;
877
1175
  startTime: number;
878
- duration: number;
879
1176
  currentTime: number;
880
- url: string;
881
- paused: boolean;
882
1177
  scene: {
883
1178
  speakers: {
884
1179
  id: string;
@@ -900,17 +1195,84 @@ declare const _default: {
900
1195
  }[];
901
1196
  };
902
1197
  }>;
903
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
904
- name: import("zod").ZodLiteral<"ZodError">;
905
- issues: import("zod").ZodArray<import("zod").ZodObject<{
906
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
907
- message: import("zod").ZodOptional<import("zod").ZodString>;
908
- code: import("zod").ZodNativeEnum<{
909
- invalid_type: "invalid_type";
910
- invalid_literal: "invalid_literal";
911
- custom: "custom";
912
- invalid_union: "invalid_union";
913
- invalid_union_discriminator: "invalid_union_discriminator";
1198
+ };
1199
+ };
1200
+ rename: {
1201
+ description: "Rename a room, owner only, listeners get the name through the roomName socket event";
1202
+ method: "PATCH";
1203
+ body: import("zod").ZodObject<{
1204
+ name: import("zod").ZodNullable<import("zod").ZodString>;
1205
+ }, "strip", import("zod").ZodTypeAny, {
1206
+ name: string | null;
1207
+ }, {
1208
+ name: string | null;
1209
+ }>;
1210
+ path: "/api/v2/room/:roomId";
1211
+ responses: {
1212
+ 500: import("zod").ZodObject<{
1213
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1214
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1215
+ name: import("zod").ZodLiteral<"APIError">;
1216
+ }, "strip", import("zod").ZodTypeAny, {
1217
+ code: "INTERNAL_SERVER_ERROR";
1218
+ error: string;
1219
+ name: "APIError";
1220
+ }, {
1221
+ code: "INTERNAL_SERVER_ERROR";
1222
+ error: string;
1223
+ name: "APIError";
1224
+ }>;
1225
+ 404: import("zod").ZodObject<{
1226
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1227
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1228
+ name: import("zod").ZodLiteral<"APIError">;
1229
+ }, "strip", import("zod").ZodTypeAny, {
1230
+ code: "ROOM_NOT_FOUND";
1231
+ error: "The requested room was not found";
1232
+ name: "APIError";
1233
+ }, {
1234
+ code: "ROOM_NOT_FOUND";
1235
+ error: "The requested room was not found";
1236
+ name: "APIError";
1237
+ }>;
1238
+ 401: import("zod").ZodObject<{
1239
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1240
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1241
+ name: import("zod").ZodLiteral<"APIError">;
1242
+ }, "strip", import("zod").ZodTypeAny, {
1243
+ code: "UNAUTHORIZED";
1244
+ error: "Unauthorized";
1245
+ name: "APIError";
1246
+ }, {
1247
+ code: "UNAUTHORIZED";
1248
+ error: "Unauthorized";
1249
+ name: "APIError";
1250
+ }>;
1251
+ 403: import("zod").ZodObject<{
1252
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1253
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1254
+ name: import("zod").ZodLiteral<"APIError">;
1255
+ }, "strip", import("zod").ZodTypeAny, {
1256
+ code: "FORBIDDEN";
1257
+ error: "Forbidden";
1258
+ name: "APIError";
1259
+ }, {
1260
+ code: "FORBIDDEN";
1261
+ error: "Forbidden";
1262
+ name: "APIError";
1263
+ }>;
1264
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1265
+ 400: import("zod").ZodObject<{
1266
+ name: import("zod").ZodLiteral<"ZodError">;
1267
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1268
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1269
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1270
+ code: import("zod").ZodNativeEnum<{
1271
+ invalid_type: "invalid_type";
1272
+ invalid_literal: "invalid_literal";
1273
+ custom: "custom";
1274
+ invalid_union: "invalid_union";
1275
+ invalid_union_discriminator: "invalid_union_discriminator";
914
1276
  invalid_enum_value: "invalid_enum_value";
915
1277
  unrecognized_keys: "unrecognized_keys";
916
1278
  invalid_arguments: "invalid_arguments";
@@ -1014,19 +1376,15 @@ declare const _default: {
1014
1376
  not_finite: "not_finite";
1015
1377
  }>;
1016
1378
  }, import("zod").ZodAny, "strip">[];
1017
- }>, import("zod").ZodObject<{
1018
- code: import("zod").ZodType<"INVALID_STREAM_ID", import("zod").ZodTypeDef, "INVALID_STREAM_ID">;
1019
- error: import("zod").ZodType<"The provided stream ID is invalid", import("zod").ZodTypeDef, "The provided stream ID is invalid">;
1020
- name: import("zod").ZodLiteral<"APIError">;
1021
- }, "strip", import("zod").ZodTypeAny, {
1022
- code: "INVALID_STREAM_ID";
1023
- error: "The provided stream ID is invalid";
1024
- name: "APIError";
1025
- }, {
1026
- code: "INVALID_STREAM_ID";
1027
- error: "The provided stream ID is invalid";
1028
- name: "APIError";
1029
- }>]>;
1379
+ }>;
1380
+ };
1381
+ };
1382
+ delete: {
1383
+ description: "Delete a room, owner only";
1384
+ method: "DELETE";
1385
+ body: import("zod").ZodUndefined;
1386
+ path: "/api/v2/room/:roomId";
1387
+ responses: {
1030
1388
  500: import("zod").ZodObject<{
1031
1389
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1032
1390
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1040,27 +1398,60 @@ declare const _default: {
1040
1398
  error: string;
1041
1399
  name: "APIError";
1042
1400
  }>;
1043
- };
1044
- };
1045
- play: {
1046
- description: "Play a media stream";
1047
- method: "POST";
1048
- body: import("zod").ZodUndefined;
1049
- path: "/api/v2/media-stream/play/:streamId";
1050
- responses: {
1051
1401
  404: import("zod").ZodObject<{
1052
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1053
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1402
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1403
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1054
1404
  name: import("zod").ZodLiteral<"APIError">;
1055
1405
  }, "strip", import("zod").ZodTypeAny, {
1056
- code: "STREAM_NOT_FOUND";
1057
- error: "The requested stream was not found";
1406
+ code: "ROOM_NOT_FOUND";
1407
+ error: "The requested room was not found";
1058
1408
  name: "APIError";
1059
1409
  }, {
1060
- code: "STREAM_NOT_FOUND";
1061
- error: "The requested stream was not found";
1410
+ code: "ROOM_NOT_FOUND";
1411
+ error: "The requested room was not found";
1412
+ name: "APIError";
1413
+ }>;
1414
+ 401: import("zod").ZodObject<{
1415
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1416
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1417
+ name: import("zod").ZodLiteral<"APIError">;
1418
+ }, "strip", import("zod").ZodTypeAny, {
1419
+ code: "UNAUTHORIZED";
1420
+ error: "Unauthorized";
1421
+ name: "APIError";
1422
+ }, {
1423
+ code: "UNAUTHORIZED";
1424
+ error: "Unauthorized";
1062
1425
  name: "APIError";
1063
1426
  }>;
1427
+ 403: import("zod").ZodObject<{
1428
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1429
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1430
+ name: import("zod").ZodLiteral<"APIError">;
1431
+ }, "strip", import("zod").ZodTypeAny, {
1432
+ code: "FORBIDDEN";
1433
+ error: "Forbidden";
1434
+ name: "APIError";
1435
+ }, {
1436
+ code: "FORBIDDEN";
1437
+ error: "Forbidden";
1438
+ name: "APIError";
1439
+ }>;
1440
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1441
+ };
1442
+ };
1443
+ track: {
1444
+ 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";
1445
+ method: "POST";
1446
+ body: import("zod").ZodObject<{
1447
+ videoId: import("zod").ZodString;
1448
+ }, "strip", import("zod").ZodTypeAny, {
1449
+ videoId: string;
1450
+ }, {
1451
+ videoId: string;
1452
+ }>;
1453
+ path: "/api/v2/room/:roomId/track";
1454
+ responses: {
1064
1455
  500: import("zod").ZodObject<{
1065
1456
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1066
1457
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1074,6 +1465,19 @@ declare const _default: {
1074
1465
  error: string;
1075
1466
  name: "APIError";
1076
1467
  }>;
1468
+ 404: import("zod").ZodObject<{
1469
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1470
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1471
+ name: import("zod").ZodLiteral<"APIError">;
1472
+ }, "strip", import("zod").ZodTypeAny, {
1473
+ code: "ROOM_NOT_FOUND";
1474
+ error: "The requested room was not found";
1475
+ name: "APIError";
1476
+ }, {
1477
+ code: "ROOM_NOT_FOUND";
1478
+ error: "The requested room was not found";
1479
+ name: "APIError";
1480
+ }>;
1077
1481
  401: import("zod").ZodObject<{
1078
1482
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1079
1483
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -1216,39 +1620,26 @@ declare const _default: {
1216
1620
  }>;
1217
1621
  }, import("zod").ZodAny, "strip">[];
1218
1622
  }>, import("zod").ZodObject<{
1219
- code: import("zod").ZodType<"INVALID_STREAM_ID", import("zod").ZodTypeDef, "INVALID_STREAM_ID">;
1220
- error: import("zod").ZodType<"The provided stream ID is invalid", import("zod").ZodTypeDef, "The provided stream ID is invalid">;
1623
+ code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
1624
+ error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
1221
1625
  name: import("zod").ZodLiteral<"APIError">;
1222
1626
  }, "strip", import("zod").ZodTypeAny, {
1223
- code: "INVALID_STREAM_ID";
1224
- error: "The provided stream ID is invalid";
1627
+ code: "INVALID_VIDEO_ID";
1628
+ error: "The provided video ID is invalid";
1225
1629
  name: "APIError";
1226
1630
  }, {
1227
- code: "INVALID_STREAM_ID";
1228
- error: "The provided stream ID is invalid";
1631
+ code: "INVALID_VIDEO_ID";
1632
+ error: "The provided video ID is invalid";
1229
1633
  name: "APIError";
1230
1634
  }>]>;
1231
1635
  };
1232
1636
  };
1233
- pause: {
1234
- description: "Pause a media stream";
1637
+ play: {
1638
+ description: "Play the track of a room, from its position. A room without a stream starts a new one";
1235
1639
  method: "POST";
1236
1640
  body: import("zod").ZodUndefined;
1237
- path: "/api/v2/media-stream/pause/:streamId";
1641
+ path: "/api/v2/room/:roomId/play";
1238
1642
  responses: {
1239
- 404: import("zod").ZodObject<{
1240
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1241
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1242
- name: import("zod").ZodLiteral<"APIError">;
1243
- }, "strip", import("zod").ZodTypeAny, {
1244
- code: "STREAM_NOT_FOUND";
1245
- error: "The requested stream was not found";
1246
- name: "APIError";
1247
- }, {
1248
- code: "STREAM_NOT_FOUND";
1249
- error: "The requested stream was not found";
1250
- name: "APIError";
1251
- }>;
1252
1643
  500: import("zod").ZodObject<{
1253
1644
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1254
1645
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1262,6 +1653,19 @@ declare const _default: {
1262
1653
  error: string;
1263
1654
  name: "APIError";
1264
1655
  }>;
1656
+ 404: import("zod").ZodObject<{
1657
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1658
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1659
+ name: import("zod").ZodLiteral<"APIError">;
1660
+ }, "strip", import("zod").ZodTypeAny, {
1661
+ code: "ROOM_NOT_FOUND";
1662
+ error: "The requested room was not found";
1663
+ name: "APIError";
1664
+ }, {
1665
+ code: "ROOM_NOT_FOUND";
1666
+ error: "The requested room was not found";
1667
+ name: "APIError";
1668
+ }>;
1265
1669
  401: import("zod").ZodObject<{
1266
1670
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1267
1671
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -1290,134 +1694,93 @@ declare const _default: {
1290
1694
  }>;
1291
1695
  200: typeof import("@ts-rest/core").ContractNoBody;
1292
1696
  400: import("zod").ZodUnion<[import("zod").ZodObject<{
1293
- name: import("zod").ZodLiteral<"ZodError">;
1294
- issues: import("zod").ZodArray<import("zod").ZodObject<{
1295
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1296
- message: import("zod").ZodOptional<import("zod").ZodString>;
1297
- code: import("zod").ZodNativeEnum<{
1298
- invalid_type: "invalid_type";
1299
- invalid_literal: "invalid_literal";
1300
- custom: "custom";
1301
- invalid_union: "invalid_union";
1302
- invalid_union_discriminator: "invalid_union_discriminator";
1303
- invalid_enum_value: "invalid_enum_value";
1304
- unrecognized_keys: "unrecognized_keys";
1305
- invalid_arguments: "invalid_arguments";
1306
- invalid_return_type: "invalid_return_type";
1307
- invalid_date: "invalid_date";
1308
- invalid_string: "invalid_string";
1309
- too_small: "too_small";
1310
- too_big: "too_big";
1311
- invalid_intersection_types: "invalid_intersection_types";
1312
- not_multiple_of: "not_multiple_of";
1313
- not_finite: "not_finite";
1314
- }>;
1315
- }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1316
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1317
- message: import("zod").ZodOptional<import("zod").ZodString>;
1318
- code: import("zod").ZodNativeEnum<{
1319
- invalid_type: "invalid_type";
1320
- invalid_literal: "invalid_literal";
1321
- custom: "custom";
1322
- invalid_union: "invalid_union";
1323
- invalid_union_discriminator: "invalid_union_discriminator";
1324
- invalid_enum_value: "invalid_enum_value";
1325
- unrecognized_keys: "unrecognized_keys";
1326
- invalid_arguments: "invalid_arguments";
1327
- invalid_return_type: "invalid_return_type";
1328
- invalid_date: "invalid_date";
1329
- invalid_string: "invalid_string";
1330
- too_small: "too_small";
1331
- too_big: "too_big";
1332
- invalid_intersection_types: "invalid_intersection_types";
1333
- not_multiple_of: "not_multiple_of";
1334
- not_finite: "not_finite";
1335
- }>;
1336
- }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1337
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1338
- message: import("zod").ZodOptional<import("zod").ZodString>;
1339
- code: import("zod").ZodNativeEnum<{
1340
- invalid_type: "invalid_type";
1341
- invalid_literal: "invalid_literal";
1342
- custom: "custom";
1343
- invalid_union: "invalid_union";
1344
- invalid_union_discriminator: "invalid_union_discriminator";
1345
- invalid_enum_value: "invalid_enum_value";
1346
- unrecognized_keys: "unrecognized_keys";
1347
- invalid_arguments: "invalid_arguments";
1348
- invalid_return_type: "invalid_return_type";
1349
- invalid_date: "invalid_date";
1350
- invalid_string: "invalid_string";
1351
- too_small: "too_small";
1352
- too_big: "too_big";
1353
- invalid_intersection_types: "invalid_intersection_types";
1354
- not_multiple_of: "not_multiple_of";
1355
- not_finite: "not_finite";
1356
- }>;
1357
- }, import("zod").ZodAny, "strip">>, "many">;
1697
+ code: import("zod").ZodType<"NO_TRACK", import("zod").ZodTypeDef, "NO_TRACK">;
1698
+ error: import("zod").ZodType<"The room has no track", import("zod").ZodTypeDef, "The room has no track">;
1699
+ name: import("zod").ZodLiteral<"APIError">;
1358
1700
  }, "strip", import("zod").ZodTypeAny, {
1359
- name: "ZodError";
1360
- issues: import("zod").objectOutputType<{
1361
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1362
- message: import("zod").ZodOptional<import("zod").ZodString>;
1363
- code: import("zod").ZodNativeEnum<{
1364
- invalid_type: "invalid_type";
1365
- invalid_literal: "invalid_literal";
1366
- custom: "custom";
1367
- invalid_union: "invalid_union";
1368
- invalid_union_discriminator: "invalid_union_discriminator";
1369
- invalid_enum_value: "invalid_enum_value";
1370
- unrecognized_keys: "unrecognized_keys";
1371
- invalid_arguments: "invalid_arguments";
1372
- invalid_return_type: "invalid_return_type";
1373
- invalid_date: "invalid_date";
1374
- invalid_string: "invalid_string";
1375
- too_small: "too_small";
1376
- too_big: "too_big";
1377
- invalid_intersection_types: "invalid_intersection_types";
1378
- not_multiple_of: "not_multiple_of";
1379
- not_finite: "not_finite";
1380
- }>;
1381
- }, import("zod").ZodAny, "strip">[];
1701
+ code: "NO_TRACK";
1702
+ error: "The room has no track";
1703
+ name: "APIError";
1382
1704
  }, {
1383
- name: "ZodError";
1384
- issues: import("zod").objectInputType<{
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
- }, import("zod").ZodAny, "strip">[];
1705
+ code: "NO_TRACK";
1706
+ error: "The room has no track";
1707
+ name: "APIError";
1406
1708
  }>, import("zod").ZodObject<{
1407
- code: import("zod").ZodType<"INVALID_STREAM_ID", import("zod").ZodTypeDef, "INVALID_STREAM_ID">;
1408
- error: import("zod").ZodType<"The provided stream ID is invalid", import("zod").ZodTypeDef, "The provided stream ID is invalid">;
1709
+ code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
1710
+ error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
1409
1711
  name: import("zod").ZodLiteral<"APIError">;
1410
1712
  }, "strip", import("zod").ZodTypeAny, {
1411
- code: "INVALID_STREAM_ID";
1412
- error: "The provided stream ID is invalid";
1713
+ code: "INVALID_VIDEO_ID";
1714
+ error: "The provided video ID is invalid";
1413
1715
  name: "APIError";
1414
1716
  }, {
1415
- code: "INVALID_STREAM_ID";
1416
- error: "The provided stream ID is invalid";
1717
+ code: "INVALID_VIDEO_ID";
1718
+ error: "The provided video ID is invalid";
1417
1719
  name: "APIError";
1418
1720
  }>]>;
1419
1721
  };
1420
1722
  };
1723
+ pause: {
1724
+ description: "Pause a room";
1725
+ method: "POST";
1726
+ body: import("zod").ZodUndefined;
1727
+ path: "/api/v2/room/:roomId/pause";
1728
+ responses: {
1729
+ 500: import("zod").ZodObject<{
1730
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1731
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1732
+ name: import("zod").ZodLiteral<"APIError">;
1733
+ }, "strip", import("zod").ZodTypeAny, {
1734
+ code: "INTERNAL_SERVER_ERROR";
1735
+ error: string;
1736
+ name: "APIError";
1737
+ }, {
1738
+ code: "INTERNAL_SERVER_ERROR";
1739
+ error: string;
1740
+ name: "APIError";
1741
+ }>;
1742
+ 404: import("zod").ZodObject<{
1743
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1744
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1745
+ name: import("zod").ZodLiteral<"APIError">;
1746
+ }, "strip", import("zod").ZodTypeAny, {
1747
+ code: "ROOM_NOT_FOUND";
1748
+ error: "The requested room was not found";
1749
+ name: "APIError";
1750
+ }, {
1751
+ code: "ROOM_NOT_FOUND";
1752
+ error: "The requested room was not found";
1753
+ name: "APIError";
1754
+ }>;
1755
+ 401: import("zod").ZodObject<{
1756
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1757
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1758
+ name: import("zod").ZodLiteral<"APIError">;
1759
+ }, "strip", import("zod").ZodTypeAny, {
1760
+ code: "UNAUTHORIZED";
1761
+ error: "Unauthorized";
1762
+ name: "APIError";
1763
+ }, {
1764
+ code: "UNAUTHORIZED";
1765
+ error: "Unauthorized";
1766
+ name: "APIError";
1767
+ }>;
1768
+ 403: import("zod").ZodObject<{
1769
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1770
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1771
+ name: import("zod").ZodLiteral<"APIError">;
1772
+ }, "strip", import("zod").ZodTypeAny, {
1773
+ code: "FORBIDDEN";
1774
+ error: "Forbidden";
1775
+ name: "APIError";
1776
+ }, {
1777
+ code: "FORBIDDEN";
1778
+ error: "Forbidden";
1779
+ name: "APIError";
1780
+ }>;
1781
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1782
+ };
1783
+ };
1421
1784
  seek: {
1422
1785
  query: import("zod").ZodObject<{
1423
1786
  time: import("zod").ZodNumber;
@@ -1426,24 +1789,11 @@ declare const _default: {
1426
1789
  }, {
1427
1790
  time: number;
1428
1791
  }>;
1429
- description: "Seek a media stream";
1792
+ description: "Seek the track of a room";
1430
1793
  method: "POST";
1431
1794
  body: import("zod").ZodUndefined;
1432
- path: "/api/v2/media-stream/seek/:streamId";
1795
+ path: "/api/v2/room/:roomId/seek";
1433
1796
  responses: {
1434
- 404: import("zod").ZodObject<{
1435
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1436
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1437
- name: import("zod").ZodLiteral<"APIError">;
1438
- }, "strip", import("zod").ZodTypeAny, {
1439
- code: "STREAM_NOT_FOUND";
1440
- error: "The requested stream was not found";
1441
- name: "APIError";
1442
- }, {
1443
- code: "STREAM_NOT_FOUND";
1444
- error: "The requested stream was not found";
1445
- name: "APIError";
1446
- }>;
1447
1797
  500: import("zod").ZodObject<{
1448
1798
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1449
1799
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1457,6 +1807,19 @@ declare const _default: {
1457
1807
  error: string;
1458
1808
  name: "APIError";
1459
1809
  }>;
1810
+ 404: import("zod").ZodObject<{
1811
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
1812
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
1813
+ name: import("zod").ZodLiteral<"APIError">;
1814
+ }, "strip", import("zod").ZodTypeAny, {
1815
+ code: "ROOM_NOT_FOUND";
1816
+ error: "The requested room was not found";
1817
+ name: "APIError";
1818
+ }, {
1819
+ code: "ROOM_NOT_FOUND";
1820
+ error: "The requested room was not found";
1821
+ name: "APIError";
1822
+ }>;
1460
1823
  401: import("zod").ZodObject<{
1461
1824
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1462
1825
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -1599,22 +1962,22 @@ declare const _default: {
1599
1962
  }>;
1600
1963
  }, import("zod").ZodAny, "strip">[];
1601
1964
  }>, import("zod").ZodObject<{
1602
- code: import("zod").ZodType<"INVALID_STREAM_ID", import("zod").ZodTypeDef, "INVALID_STREAM_ID">;
1603
- error: import("zod").ZodType<"The provided stream ID is invalid", import("zod").ZodTypeDef, "The provided stream ID is invalid">;
1965
+ code: import("zod").ZodType<"NO_TRACK", import("zod").ZodTypeDef, "NO_TRACK">;
1966
+ error: import("zod").ZodType<"The room has no track", import("zod").ZodTypeDef, "The room has no track">;
1604
1967
  name: import("zod").ZodLiteral<"APIError">;
1605
1968
  }, "strip", import("zod").ZodTypeAny, {
1606
- code: "INVALID_STREAM_ID";
1607
- error: "The provided stream ID is invalid";
1969
+ code: "NO_TRACK";
1970
+ error: "The room has no track";
1608
1971
  name: "APIError";
1609
1972
  }, {
1610
- code: "INVALID_STREAM_ID";
1611
- error: "The provided stream ID is invalid";
1973
+ code: "NO_TRACK";
1974
+ error: "The room has no track";
1612
1975
  name: "APIError";
1613
1976
  }>]>;
1614
1977
  };
1615
1978
  };
1616
1979
  scene: {
1617
- description: "Change the scene of a media stream, listeners get the new scene through the mediaStreamScene socket event";
1980
+ description: "Change the scene of a room, listeners get the new scene through the roomScene socket event";
1618
1981
  method: "POST";
1619
1982
  body: import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
1620
1983
  type: import("zod").ZodLiteral<"addSpeaker">;
@@ -1752,21 +2115,8 @@ declare const _default: {
1752
2115
  }, {
1753
2116
  type: "reset";
1754
2117
  }>]>;
1755
- path: "/api/v2/media-stream/scene/:streamId";
2118
+ path: "/api/v2/room/:roomId/scene";
1756
2119
  responses: {
1757
- 404: import("zod").ZodObject<{
1758
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1759
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1760
- name: import("zod").ZodLiteral<"APIError">;
1761
- }, "strip", import("zod").ZodTypeAny, {
1762
- code: "STREAM_NOT_FOUND";
1763
- error: "The requested stream was not found";
1764
- name: "APIError";
1765
- }, {
1766
- code: "STREAM_NOT_FOUND";
1767
- error: "The requested stream was not found";
1768
- name: "APIError";
1769
- }>;
1770
2120
  500: import("zod").ZodObject<{
1771
2121
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1772
2122
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1780,6 +2130,19 @@ declare const _default: {
1780
2130
  error: string;
1781
2131
  name: "APIError";
1782
2132
  }>;
2133
+ 404: import("zod").ZodObject<{
2134
+ code: import("zod").ZodType<"ROOM_NOT_FOUND", import("zod").ZodTypeDef, "ROOM_NOT_FOUND">;
2135
+ error: import("zod").ZodType<"The requested room was not found", import("zod").ZodTypeDef, "The requested room was not found">;
2136
+ name: import("zod").ZodLiteral<"APIError">;
2137
+ }, "strip", import("zod").ZodTypeAny, {
2138
+ code: "ROOM_NOT_FOUND";
2139
+ error: "The requested room was not found";
2140
+ name: "APIError";
2141
+ }, {
2142
+ code: "ROOM_NOT_FOUND";
2143
+ error: "The requested room was not found";
2144
+ name: "APIError";
2145
+ }>;
1783
2146
  401: import("zod").ZodObject<{
1784
2147
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1785
2148
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -1948,53 +2311,6 @@ declare const _default: {
1948
2311
  }>]>;
1949
2312
  };
1950
2313
  };
1951
- stream: {
1952
- description: "Get media stream by stream ID";
1953
- method: "GET";
1954
- path: "/api/v2/media-stream/stream/:streamId";
1955
- responses: {
1956
- 200: import("zod").ZodAny;
1957
- 400: import("zod").ZodObject<{
1958
- code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
1959
- error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
1960
- name: import("zod").ZodLiteral<"APIError">;
1961
- }, "strip", import("zod").ZodTypeAny, {
1962
- code: "INVALID_VIDEO_ID";
1963
- error: "The provided video ID is invalid";
1964
- name: "APIError";
1965
- }, {
1966
- code: "INVALID_VIDEO_ID";
1967
- error: "The provided video ID is invalid";
1968
- name: "APIError";
1969
- }>;
1970
- 404: import("zod").ZodObject<{
1971
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1972
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1973
- name: import("zod").ZodLiteral<"APIError">;
1974
- }, "strip", import("zod").ZodTypeAny, {
1975
- code: "STREAM_NOT_FOUND";
1976
- error: "The requested stream was not found";
1977
- name: "APIError";
1978
- }, {
1979
- code: "STREAM_NOT_FOUND";
1980
- error: "The requested stream was not found";
1981
- name: "APIError";
1982
- }>;
1983
- 500: import("zod").ZodObject<{
1984
- code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1985
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1986
- name: import("zod").ZodLiteral<"APIError">;
1987
- }, "strip", import("zod").ZodTypeAny, {
1988
- code: "INTERNAL_SERVER_ERROR";
1989
- error: string;
1990
- name: "APIError";
1991
- }, {
1992
- code: "INTERNAL_SERVER_ERROR";
1993
- error: string;
1994
- name: "APIError";
1995
- }>;
1996
- };
1997
- };
1998
2314
  };
1999
2315
  };
2000
2316
  export default _default;