@darco2903/altv-web-api 1.6.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.
@@ -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,167 @@ 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
+ url: import("zod").ZodNullable<import("zod").ZodString>;
1038
+ paused: import("zod").ZodBoolean;
841
1039
  startTime: import("zod").ZodNumber;
842
- duration: import("zod").ZodNumber;
843
1040
  currentTime: import("zod").ZodNumber;
844
- url: import("zod").ZodString;
845
- paused: import("zod").ZodBoolean;
846
1041
  scene: import("zod").ZodObject<{
847
1042
  speakers: import("zod").ZodArray<import("zod").ZodObject<{
848
1043
  id: import("zod").ZodString;
@@ -934,13 +1129,18 @@ declare const _default: {
934
1129
  }[];
935
1130
  }>;
936
1131
  }, "strip", import("zod").ZodTypeAny, {
937
- title: string;
938
- duration: number;
939
- streamId: 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;
940
1142
  startTime: number;
941
1143
  currentTime: number;
942
- url: string;
943
- paused: boolean;
944
1144
  scene: {
945
1145
  speakers: {
946
1146
  id: string;
@@ -962,13 +1162,18 @@ declare const _default: {
962
1162
  }[];
963
1163
  };
964
1164
  }, {
965
- title: string;
966
- duration: number;
967
- streamId: 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;
968
1175
  startTime: number;
969
1176
  currentTime: number;
970
- url: string;
971
- paused: boolean;
972
1177
  scene: {
973
1178
  speakers: {
974
1179
  id: string;
@@ -990,133 +1195,20 @@ declare const _default: {
990
1195
  }[];
991
1196
  };
992
1197
  }>;
993
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
994
- name: import("zod").ZodLiteral<"ZodError">;
995
- issues: import("zod").ZodArray<import("zod").ZodObject<{
996
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
997
- message: import("zod").ZodOptional<import("zod").ZodString>;
998
- code: import("zod").ZodNativeEnum<{
999
- invalid_type: "invalid_type";
1000
- invalid_literal: "invalid_literal";
1001
- custom: "custom";
1002
- invalid_union: "invalid_union";
1003
- invalid_union_discriminator: "invalid_union_discriminator";
1004
- invalid_enum_value: "invalid_enum_value";
1005
- unrecognized_keys: "unrecognized_keys";
1006
- invalid_arguments: "invalid_arguments";
1007
- invalid_return_type: "invalid_return_type";
1008
- invalid_date: "invalid_date";
1009
- invalid_string: "invalid_string";
1010
- too_small: "too_small";
1011
- too_big: "too_big";
1012
- invalid_intersection_types: "invalid_intersection_types";
1013
- not_multiple_of: "not_multiple_of";
1014
- not_finite: "not_finite";
1015
- }>;
1016
- }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1017
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1018
- message: import("zod").ZodOptional<import("zod").ZodString>;
1019
- code: import("zod").ZodNativeEnum<{
1020
- invalid_type: "invalid_type";
1021
- invalid_literal: "invalid_literal";
1022
- custom: "custom";
1023
- invalid_union: "invalid_union";
1024
- invalid_union_discriminator: "invalid_union_discriminator";
1025
- invalid_enum_value: "invalid_enum_value";
1026
- unrecognized_keys: "unrecognized_keys";
1027
- invalid_arguments: "invalid_arguments";
1028
- invalid_return_type: "invalid_return_type";
1029
- invalid_date: "invalid_date";
1030
- invalid_string: "invalid_string";
1031
- too_small: "too_small";
1032
- too_big: "too_big";
1033
- invalid_intersection_types: "invalid_intersection_types";
1034
- not_multiple_of: "not_multiple_of";
1035
- not_finite: "not_finite";
1036
- }>;
1037
- }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1038
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1039
- message: import("zod").ZodOptional<import("zod").ZodString>;
1040
- code: import("zod").ZodNativeEnum<{
1041
- invalid_type: "invalid_type";
1042
- invalid_literal: "invalid_literal";
1043
- custom: "custom";
1044
- invalid_union: "invalid_union";
1045
- invalid_union_discriminator: "invalid_union_discriminator";
1046
- invalid_enum_value: "invalid_enum_value";
1047
- unrecognized_keys: "unrecognized_keys";
1048
- invalid_arguments: "invalid_arguments";
1049
- invalid_return_type: "invalid_return_type";
1050
- invalid_date: "invalid_date";
1051
- invalid_string: "invalid_string";
1052
- too_small: "too_small";
1053
- too_big: "too_big";
1054
- invalid_intersection_types: "invalid_intersection_types";
1055
- not_multiple_of: "not_multiple_of";
1056
- not_finite: "not_finite";
1057
- }>;
1058
- }, import("zod").ZodAny, "strip">>, "many">;
1059
- }, "strip", import("zod").ZodTypeAny, {
1060
- name: "ZodError";
1061
- issues: import("zod").objectOutputType<{
1062
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1063
- message: import("zod").ZodOptional<import("zod").ZodString>;
1064
- code: import("zod").ZodNativeEnum<{
1065
- invalid_type: "invalid_type";
1066
- invalid_literal: "invalid_literal";
1067
- custom: "custom";
1068
- invalid_union: "invalid_union";
1069
- invalid_union_discriminator: "invalid_union_discriminator";
1070
- invalid_enum_value: "invalid_enum_value";
1071
- unrecognized_keys: "unrecognized_keys";
1072
- invalid_arguments: "invalid_arguments";
1073
- invalid_return_type: "invalid_return_type";
1074
- invalid_date: "invalid_date";
1075
- invalid_string: "invalid_string";
1076
- too_small: "too_small";
1077
- too_big: "too_big";
1078
- invalid_intersection_types: "invalid_intersection_types";
1079
- not_multiple_of: "not_multiple_of";
1080
- not_finite: "not_finite";
1081
- }>;
1082
- }, import("zod").ZodAny, "strip">[];
1083
- }, {
1084
- name: "ZodError";
1085
- issues: import("zod").objectInputType<{
1086
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1087
- message: import("zod").ZodOptional<import("zod").ZodString>;
1088
- code: import("zod").ZodNativeEnum<{
1089
- invalid_type: "invalid_type";
1090
- invalid_literal: "invalid_literal";
1091
- custom: "custom";
1092
- invalid_union: "invalid_union";
1093
- invalid_union_discriminator: "invalid_union_discriminator";
1094
- invalid_enum_value: "invalid_enum_value";
1095
- unrecognized_keys: "unrecognized_keys";
1096
- invalid_arguments: "invalid_arguments";
1097
- invalid_return_type: "invalid_return_type";
1098
- invalid_date: "invalid_date";
1099
- invalid_string: "invalid_string";
1100
- too_small: "too_small";
1101
- too_big: "too_big";
1102
- invalid_intersection_types: "invalid_intersection_types";
1103
- not_multiple_of: "not_multiple_of";
1104
- not_finite: "not_finite";
1105
- }>;
1106
- }, 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
- }>]>;
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: {
1120
1212
  500: import("zod").ZodObject<{
1121
1213
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1122
1214
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1130,38 +1222,17 @@ declare const _default: {
1130
1222
  error: string;
1131
1223
  name: "APIError";
1132
1224
  }>;
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
1225
  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">;
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">;
1144
1228
  name: import("zod").ZodLiteral<"APIError">;
1145
1229
  }, "strip", import("zod").ZodTypeAny, {
1146
- code: "STREAM_NOT_FOUND";
1147
- error: "The requested stream was not found";
1230
+ code: "ROOM_NOT_FOUND";
1231
+ error: "The requested room was not found";
1148
1232
  name: "APIError";
1149
1233
  }, {
1150
- code: "STREAM_NOT_FOUND";
1151
- error: "The requested stream was not found";
1152
- name: "APIError";
1153
- }>;
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>;
1157
- name: import("zod").ZodLiteral<"APIError">;
1158
- }, "strip", import("zod").ZodTypeAny, {
1159
- code: "INTERNAL_SERVER_ERROR";
1160
- error: string;
1161
- name: "APIError";
1162
- }, {
1163
- code: "INTERNAL_SERVER_ERROR";
1164
- error: string;
1234
+ code: "ROOM_NOT_FOUND";
1235
+ error: "The requested room was not found";
1165
1236
  name: "APIError";
1166
1237
  }>;
1167
1238
  401: import("zod").ZodObject<{
@@ -1191,7 +1262,7 @@ declare const _default: {
1191
1262
  name: "APIError";
1192
1263
  }>;
1193
1264
  200: typeof import("@ts-rest/core").ContractNoBody;
1194
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1265
+ 400: import("zod").ZodObject<{
1195
1266
  name: import("zod").ZodLiteral<"ZodError">;
1196
1267
  issues: import("zod").ZodArray<import("zod").ZodObject<{
1197
1268
  path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
@@ -1305,40 +1376,82 @@ declare const _default: {
1305
1376
  not_finite: "not_finite";
1306
1377
  }>;
1307
1378
  }, import("zod").ZodAny, "strip">[];
1308
- }>, 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">;
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: {
1388
+ 500: import("zod").ZodObject<{
1389
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1390
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1391
+ name: import("zod").ZodLiteral<"APIError">;
1392
+ }, "strip", import("zod").ZodTypeAny, {
1393
+ code: "INTERNAL_SERVER_ERROR";
1394
+ error: string;
1395
+ name: "APIError";
1396
+ }, {
1397
+ code: "INTERNAL_SERVER_ERROR";
1398
+ error: string;
1399
+ name: "APIError";
1400
+ }>;
1401
+ 404: import("zod").ZodObject<{
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">;
1404
+ name: import("zod").ZodLiteral<"APIError">;
1405
+ }, "strip", import("zod").ZodTypeAny, {
1406
+ code: "ROOM_NOT_FOUND";
1407
+ error: "The requested room was not found";
1408
+ name: "APIError";
1409
+ }, {
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";
1425
+ name: "APIError";
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">;
1311
1430
  name: import("zod").ZodLiteral<"APIError">;
1312
1431
  }, "strip", import("zod").ZodTypeAny, {
1313
- code: "INVALID_STREAM_ID";
1314
- error: "The provided stream ID is invalid";
1432
+ code: "FORBIDDEN";
1433
+ error: "Forbidden";
1315
1434
  name: "APIError";
1316
1435
  }, {
1317
- code: "INVALID_STREAM_ID";
1318
- error: "The provided stream ID is invalid";
1436
+ code: "FORBIDDEN";
1437
+ error: "Forbidden";
1319
1438
  name: "APIError";
1320
- }>]>;
1439
+ }>;
1440
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1321
1441
  };
1322
1442
  };
1323
- pause: {
1324
- description: "Pause a media stream";
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";
1325
1445
  method: "POST";
1326
- body: import("zod").ZodUndefined;
1327
- path: "/api/v2/media-stream/pause/:streamId";
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";
1328
1454
  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
1455
  500: import("zod").ZodObject<{
1343
1456
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1344
1457
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1352,6 +1465,19 @@ declare const _default: {
1352
1465
  error: string;
1353
1466
  name: "APIError";
1354
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
+ }>;
1355
1481
  401: import("zod").ZodObject<{
1356
1482
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1357
1483
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -1494,20 +1620,167 @@ declare const _default: {
1494
1620
  }>;
1495
1621
  }, import("zod").ZodAny, "strip">[];
1496
1622
  }>, 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">;
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">;
1625
+ name: import("zod").ZodLiteral<"APIError">;
1626
+ }, "strip", import("zod").ZodTypeAny, {
1627
+ code: "INVALID_VIDEO_ID";
1628
+ error: "The provided video ID is invalid";
1629
+ name: "APIError";
1630
+ }, {
1631
+ code: "INVALID_VIDEO_ID";
1632
+ error: "The provided video ID is invalid";
1633
+ name: "APIError";
1634
+ }>]>;
1635
+ };
1636
+ };
1637
+ play: {
1638
+ description: "Play the track of a room, from its position. A room without a stream starts a new one";
1639
+ method: "POST";
1640
+ body: import("zod").ZodUndefined;
1641
+ path: "/api/v2/room/:roomId/play";
1642
+ responses: {
1643
+ 500: import("zod").ZodObject<{
1644
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1645
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1646
+ name: import("zod").ZodLiteral<"APIError">;
1647
+ }, "strip", import("zod").ZodTypeAny, {
1648
+ code: "INTERNAL_SERVER_ERROR";
1649
+ error: string;
1650
+ name: "APIError";
1651
+ }, {
1652
+ code: "INTERNAL_SERVER_ERROR";
1653
+ error: string;
1654
+ name: "APIError";
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
+ }>;
1669
+ 401: import("zod").ZodObject<{
1670
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1671
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1672
+ name: import("zod").ZodLiteral<"APIError">;
1673
+ }, "strip", import("zod").ZodTypeAny, {
1674
+ code: "UNAUTHORIZED";
1675
+ error: "Unauthorized";
1676
+ name: "APIError";
1677
+ }, {
1678
+ code: "UNAUTHORIZED";
1679
+ error: "Unauthorized";
1680
+ name: "APIError";
1681
+ }>;
1682
+ 403: import("zod").ZodObject<{
1683
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1684
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1685
+ name: import("zod").ZodLiteral<"APIError">;
1686
+ }, "strip", import("zod").ZodTypeAny, {
1687
+ code: "FORBIDDEN";
1688
+ error: "Forbidden";
1689
+ name: "APIError";
1690
+ }, {
1691
+ code: "FORBIDDEN";
1692
+ error: "Forbidden";
1693
+ name: "APIError";
1694
+ }>;
1695
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1696
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
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">;
1700
+ }, "strip", import("zod").ZodTypeAny, {
1701
+ code: "NO_TRACK";
1702
+ error: "The room has no track";
1703
+ name: "APIError";
1704
+ }, {
1705
+ code: "NO_TRACK";
1706
+ error: "The room has no track";
1707
+ name: "APIError";
1708
+ }>, import("zod").ZodObject<{
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">;
1499
1711
  name: import("zod").ZodLiteral<"APIError">;
1500
1712
  }, "strip", import("zod").ZodTypeAny, {
1501
- code: "INVALID_STREAM_ID";
1502
- error: "The provided stream ID is invalid";
1713
+ code: "INVALID_VIDEO_ID";
1714
+ error: "The provided video ID is invalid";
1503
1715
  name: "APIError";
1504
1716
  }, {
1505
- code: "INVALID_STREAM_ID";
1506
- error: "The provided stream ID is invalid";
1717
+ code: "INVALID_VIDEO_ID";
1718
+ error: "The provided video ID is invalid";
1507
1719
  name: "APIError";
1508
1720
  }>]>;
1509
1721
  };
1510
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
+ };
1511
1784
  seek: {
1512
1785
  query: import("zod").ZodObject<{
1513
1786
  time: import("zod").ZodNumber;
@@ -1516,24 +1789,11 @@ declare const _default: {
1516
1789
  }, {
1517
1790
  time: number;
1518
1791
  }>;
1519
- description: "Seek a media stream";
1792
+ description: "Seek the track of a room";
1520
1793
  method: "POST";
1521
1794
  body: import("zod").ZodUndefined;
1522
- path: "/api/v2/media-stream/seek/:streamId";
1795
+ path: "/api/v2/room/:roomId/seek";
1523
1796
  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
1797
  500: import("zod").ZodObject<{
1538
1798
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1539
1799
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1547,6 +1807,19 @@ declare const _default: {
1547
1807
  error: string;
1548
1808
  name: "APIError";
1549
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
+ }>;
1550
1823
  401: import("zod").ZodObject<{
1551
1824
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1552
1825
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -1689,22 +1962,22 @@ declare const _default: {
1689
1962
  }>;
1690
1963
  }, import("zod").ZodAny, "strip">[];
1691
1964
  }>, 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">;
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">;
1694
1967
  name: import("zod").ZodLiteral<"APIError">;
1695
1968
  }, "strip", import("zod").ZodTypeAny, {
1696
- code: "INVALID_STREAM_ID";
1697
- error: "The provided stream ID is invalid";
1969
+ code: "NO_TRACK";
1970
+ error: "The room has no track";
1698
1971
  name: "APIError";
1699
1972
  }, {
1700
- code: "INVALID_STREAM_ID";
1701
- error: "The provided stream ID is invalid";
1973
+ code: "NO_TRACK";
1974
+ error: "The room has no track";
1702
1975
  name: "APIError";
1703
1976
  }>]>;
1704
1977
  };
1705
1978
  };
1706
1979
  scene: {
1707
- 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";
1708
1981
  method: "POST";
1709
1982
  body: import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
1710
1983
  type: import("zod").ZodLiteral<"addSpeaker">;
@@ -1842,21 +2115,8 @@ declare const _default: {
1842
2115
  }, {
1843
2116
  type: "reset";
1844
2117
  }>]>;
1845
- path: "/api/v2/media-stream/scene/:streamId";
2118
+ path: "/api/v2/room/:roomId/scene";
1846
2119
  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
2120
  500: import("zod").ZodObject<{
1861
2121
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1862
2122
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -1870,6 +2130,19 @@ declare const _default: {
1870
2130
  error: string;
1871
2131
  name: "APIError";
1872
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
+ }>;
1873
2146
  401: import("zod").ZodObject<{
1874
2147
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1875
2148
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
@@ -2038,53 +2311,6 @@ declare const _default: {
2038
2311
  }>]>;
2039
2312
  };
2040
2313
  };
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
2314
  };
2089
2315
  };
2090
2316
  export default _default;