@darco2903/altv-web-api 1.3.0 → 1.5.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.
@@ -1,28 +1,112 @@
1
1
  declare const _default: {
2
2
  youtube: {
3
- getLink: {
3
+ search: {
4
4
  query: import("zod").ZodObject<{
5
- quality: import("zod").ZodOptional<import("zod").ZodEnum<["highest", "highestaudio", "highestvideo", "lowest", "lowestaudio", "lowestvideo"]>>;
6
- filter: import("zod").ZodOptional<import("zod").ZodEnum<["audio", "audioandvideo", "audioonly", "video", "videoandaudio", "videoonly"]>>;
5
+ q: import("zod").ZodString;
7
6
  }, "strip", import("zod").ZodTypeAny, {
8
- filter?: "audio" | "audioandvideo" | "audioonly" | "video" | "videoandaudio" | "videoonly" | undefined;
9
- quality?: "highest" | "highestaudio" | "highestvideo" | "lowest" | "lowestaudio" | "lowestvideo" | undefined;
7
+ q: string;
10
8
  }, {
11
- filter?: "audio" | "audioandvideo" | "audioonly" | "video" | "videoandaudio" | "videoonly" | undefined;
12
- quality?: "highest" | "highestaudio" | "highestvideo" | "lowest" | "lowestaudio" | "lowestvideo" | undefined;
9
+ q: string;
13
10
  }>;
14
- description: "Get direct audio link from a YouTube video URL";
11
+ description: "Search YouTube videos";
15
12
  method: "GET";
16
- path: "/api/v2/youtube/audio-link/:videoId";
13
+ path: "/api/v2/youtube/search";
17
14
  responses: {
15
+ 429: import("zod").ZodObject<{
16
+ code: import("zod").ZodType<"TOO_MANY_SEARCHES", import("zod").ZodTypeDef, "TOO_MANY_SEARCHES">;
17
+ error: import("zod").ZodType<"Too many searches are running", import("zod").ZodTypeDef, "Too many searches are running">;
18
+ name: import("zod").ZodLiteral<"APIError">;
19
+ }, "strip", import("zod").ZodTypeAny, {
20
+ code: "TOO_MANY_SEARCHES";
21
+ error: "Too many searches are running";
22
+ name: "APIError";
23
+ }, {
24
+ code: "TOO_MANY_SEARCHES";
25
+ error: "Too many searches are running";
26
+ name: "APIError";
27
+ }>;
28
+ 500: import("zod").ZodObject<{
29
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
30
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
31
+ name: import("zod").ZodLiteral<"APIError">;
32
+ }, "strip", import("zod").ZodTypeAny, {
33
+ code: "INTERNAL_SERVER_ERROR";
34
+ error: string;
35
+ name: "APIError";
36
+ }, {
37
+ code: "INTERNAL_SERVER_ERROR";
38
+ error: string;
39
+ name: "APIError";
40
+ }>;
41
+ 401: import("zod").ZodObject<{
42
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
43
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
44
+ name: import("zod").ZodLiteral<"APIError">;
45
+ }, "strip", import("zod").ZodTypeAny, {
46
+ code: "UNAUTHORIZED";
47
+ error: "Unauthorized";
48
+ name: "APIError";
49
+ }, {
50
+ code: "UNAUTHORIZED";
51
+ error: "Unauthorized";
52
+ name: "APIError";
53
+ }>;
54
+ 403: import("zod").ZodObject<{
55
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
56
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
57
+ name: import("zod").ZodLiteral<"APIError">;
58
+ }, "strip", import("zod").ZodTypeAny, {
59
+ code: "FORBIDDEN";
60
+ error: "Forbidden";
61
+ name: "APIError";
62
+ }, {
63
+ code: "FORBIDDEN";
64
+ error: "Forbidden";
65
+ name: "APIError";
66
+ }>;
18
67
  200: import("zod").ZodObject<{
19
- url: import("zod").ZodString;
68
+ results: import("zod").ZodArray<import("zod").ZodObject<{
69
+ videoId: import("zod").ZodString;
70
+ title: import("zod").ZodString;
71
+ channel: import("zod").ZodNullable<import("zod").ZodString>;
72
+ duration: import("zod").ZodNullable<import("zod").ZodNumber>;
73
+ thumbnail: import("zod").ZodNullable<import("zod").ZodString>;
74
+ blocked: import("zod").ZodNullable<import("zod").ZodEnum<["live", "too_long"]>>;
75
+ }, "strip", import("zod").ZodTypeAny, {
76
+ videoId: string;
77
+ title: string;
78
+ duration: number | null;
79
+ channel: string | null;
80
+ thumbnail: string | null;
81
+ blocked: "live" | "too_long" | null;
82
+ }, {
83
+ videoId: string;
84
+ title: string;
85
+ duration: number | null;
86
+ channel: string | null;
87
+ thumbnail: string | null;
88
+ blocked: "live" | "too_long" | null;
89
+ }>, "many">;
20
90
  }, "strip", import("zod").ZodTypeAny, {
21
- url: string;
91
+ results: {
92
+ videoId: string;
93
+ title: string;
94
+ duration: number | null;
95
+ channel: string | null;
96
+ thumbnail: string | null;
97
+ blocked: "live" | "too_long" | null;
98
+ }[];
22
99
  }, {
23
- url: string;
100
+ results: {
101
+ videoId: string;
102
+ title: string;
103
+ duration: number | null;
104
+ channel: string | null;
105
+ thumbnail: string | null;
106
+ blocked: "live" | "too_long" | null;
107
+ }[];
24
108
  }>;
25
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
109
+ 400: import("zod").ZodObject<{
26
110
  name: import("zod").ZodLiteral<"ZodError">;
27
111
  issues: import("zod").ZodArray<import("zod").ZodObject<{
28
112
  path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
@@ -136,19 +220,21 @@ declare const _default: {
136
220
  not_finite: "not_finite";
137
221
  }>;
138
222
  }, import("zod").ZodAny, "strip">[];
139
- }>, import("zod").ZodObject<{
140
- code: import("zod").ZodType<"INVALID_VIDEO_ID", import("zod").ZodTypeDef, "INVALID_VIDEO_ID">;
141
- error: import("zod").ZodType<"The provided video ID is invalid", import("zod").ZodTypeDef, "The provided video ID is invalid">;
142
- name: import("zod").ZodLiteral<"APIError">;
143
- }, "strip", import("zod").ZodTypeAny, {
144
- code: "INVALID_VIDEO_ID";
145
- error: "The provided video ID is invalid";
146
- name: "APIError";
147
- }, {
148
- code: "INVALID_VIDEO_ID";
149
- error: "The provided video ID is invalid";
150
- name: "APIError";
151
- }>]>;
223
+ }>;
224
+ };
225
+ };
226
+ suggest: {
227
+ query: import("zod").ZodObject<{
228
+ q: import("zod").ZodString;
229
+ }, "strip", import("zod").ZodTypeAny, {
230
+ q: string;
231
+ }, {
232
+ q: string;
233
+ }>;
234
+ description: "Get YouTube search suggestions for a partial query";
235
+ method: "GET";
236
+ path: "/api/v2/youtube/suggest";
237
+ responses: {
152
238
  500: import("zod").ZodObject<{
153
239
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
154
240
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -162,6 +248,154 @@ declare const _default: {
162
248
  error: string;
163
249
  name: "APIError";
164
250
  }>;
251
+ 401: import("zod").ZodObject<{
252
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
253
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
254
+ name: import("zod").ZodLiteral<"APIError">;
255
+ }, "strip", import("zod").ZodTypeAny, {
256
+ code: "UNAUTHORIZED";
257
+ error: "Unauthorized";
258
+ name: "APIError";
259
+ }, {
260
+ code: "UNAUTHORIZED";
261
+ error: "Unauthorized";
262
+ name: "APIError";
263
+ }>;
264
+ 403: import("zod").ZodObject<{
265
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
266
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
267
+ name: import("zod").ZodLiteral<"APIError">;
268
+ }, "strip", import("zod").ZodTypeAny, {
269
+ code: "FORBIDDEN";
270
+ error: "Forbidden";
271
+ name: "APIError";
272
+ }, {
273
+ code: "FORBIDDEN";
274
+ error: "Forbidden";
275
+ name: "APIError";
276
+ }>;
277
+ 200: import("zod").ZodObject<{
278
+ suggestions: import("zod").ZodArray<import("zod").ZodString, "many">;
279
+ }, "strip", import("zod").ZodTypeAny, {
280
+ suggestions: string[];
281
+ }, {
282
+ suggestions: string[];
283
+ }>;
284
+ 400: import("zod").ZodObject<{
285
+ name: import("zod").ZodLiteral<"ZodError">;
286
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
287
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
288
+ message: import("zod").ZodOptional<import("zod").ZodString>;
289
+ code: import("zod").ZodNativeEnum<{
290
+ invalid_type: "invalid_type";
291
+ invalid_literal: "invalid_literal";
292
+ custom: "custom";
293
+ invalid_union: "invalid_union";
294
+ invalid_union_discriminator: "invalid_union_discriminator";
295
+ invalid_enum_value: "invalid_enum_value";
296
+ unrecognized_keys: "unrecognized_keys";
297
+ invalid_arguments: "invalid_arguments";
298
+ invalid_return_type: "invalid_return_type";
299
+ invalid_date: "invalid_date";
300
+ invalid_string: "invalid_string";
301
+ too_small: "too_small";
302
+ too_big: "too_big";
303
+ invalid_intersection_types: "invalid_intersection_types";
304
+ not_multiple_of: "not_multiple_of";
305
+ not_finite: "not_finite";
306
+ }>;
307
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
308
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
309
+ message: import("zod").ZodOptional<import("zod").ZodString>;
310
+ code: import("zod").ZodNativeEnum<{
311
+ invalid_type: "invalid_type";
312
+ invalid_literal: "invalid_literal";
313
+ custom: "custom";
314
+ invalid_union: "invalid_union";
315
+ invalid_union_discriminator: "invalid_union_discriminator";
316
+ invalid_enum_value: "invalid_enum_value";
317
+ unrecognized_keys: "unrecognized_keys";
318
+ invalid_arguments: "invalid_arguments";
319
+ invalid_return_type: "invalid_return_type";
320
+ invalid_date: "invalid_date";
321
+ invalid_string: "invalid_string";
322
+ too_small: "too_small";
323
+ too_big: "too_big";
324
+ invalid_intersection_types: "invalid_intersection_types";
325
+ not_multiple_of: "not_multiple_of";
326
+ not_finite: "not_finite";
327
+ }>;
328
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
329
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
330
+ message: import("zod").ZodOptional<import("zod").ZodString>;
331
+ code: import("zod").ZodNativeEnum<{
332
+ invalid_type: "invalid_type";
333
+ invalid_literal: "invalid_literal";
334
+ custom: "custom";
335
+ invalid_union: "invalid_union";
336
+ invalid_union_discriminator: "invalid_union_discriminator";
337
+ invalid_enum_value: "invalid_enum_value";
338
+ unrecognized_keys: "unrecognized_keys";
339
+ invalid_arguments: "invalid_arguments";
340
+ invalid_return_type: "invalid_return_type";
341
+ invalid_date: "invalid_date";
342
+ invalid_string: "invalid_string";
343
+ too_small: "too_small";
344
+ too_big: "too_big";
345
+ invalid_intersection_types: "invalid_intersection_types";
346
+ not_multiple_of: "not_multiple_of";
347
+ not_finite: "not_finite";
348
+ }>;
349
+ }, import("zod").ZodAny, "strip">>, "many">;
350
+ }, "strip", import("zod").ZodTypeAny, {
351
+ name: "ZodError";
352
+ issues: import("zod").objectOutputType<{
353
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
354
+ message: import("zod").ZodOptional<import("zod").ZodString>;
355
+ code: import("zod").ZodNativeEnum<{
356
+ invalid_type: "invalid_type";
357
+ invalid_literal: "invalid_literal";
358
+ custom: "custom";
359
+ invalid_union: "invalid_union";
360
+ invalid_union_discriminator: "invalid_union_discriminator";
361
+ invalid_enum_value: "invalid_enum_value";
362
+ unrecognized_keys: "unrecognized_keys";
363
+ invalid_arguments: "invalid_arguments";
364
+ invalid_return_type: "invalid_return_type";
365
+ invalid_date: "invalid_date";
366
+ invalid_string: "invalid_string";
367
+ too_small: "too_small";
368
+ too_big: "too_big";
369
+ invalid_intersection_types: "invalid_intersection_types";
370
+ not_multiple_of: "not_multiple_of";
371
+ not_finite: "not_finite";
372
+ }>;
373
+ }, import("zod").ZodAny, "strip">[];
374
+ }, {
375
+ name: "ZodError";
376
+ issues: import("zod").objectInputType<{
377
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
378
+ message: import("zod").ZodOptional<import("zod").ZodString>;
379
+ code: import("zod").ZodNativeEnum<{
380
+ invalid_type: "invalid_type";
381
+ invalid_literal: "invalid_literal";
382
+ custom: "custom";
383
+ invalid_union: "invalid_union";
384
+ invalid_union_discriminator: "invalid_union_discriminator";
385
+ invalid_enum_value: "invalid_enum_value";
386
+ unrecognized_keys: "unrecognized_keys";
387
+ invalid_arguments: "invalid_arguments";
388
+ invalid_return_type: "invalid_return_type";
389
+ invalid_date: "invalid_date";
390
+ invalid_string: "invalid_string";
391
+ too_small: "too_small";
392
+ too_big: "too_big";
393
+ invalid_intersection_types: "invalid_intersection_types";
394
+ not_multiple_of: "not_multiple_of";
395
+ not_finite: "not_finite";
396
+ }>;
397
+ }, import("zod").ZodAny, "strip">[];
398
+ }>;
165
399
  };
166
400
  };
167
401
  };
@@ -331,6 +565,45 @@ declare const _default: {
331
565
  }>;
332
566
  path: "/api/v2/media-stream/init";
333
567
  responses: {
568
+ 500: import("zod").ZodObject<{
569
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
570
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
571
+ name: import("zod").ZodLiteral<"APIError">;
572
+ }, "strip", import("zod").ZodTypeAny, {
573
+ code: "INTERNAL_SERVER_ERROR";
574
+ error: string;
575
+ name: "APIError";
576
+ }, {
577
+ code: "INTERNAL_SERVER_ERROR";
578
+ error: string;
579
+ name: "APIError";
580
+ }>;
581
+ 401: import("zod").ZodObject<{
582
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
583
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
584
+ name: import("zod").ZodLiteral<"APIError">;
585
+ }, "strip", import("zod").ZodTypeAny, {
586
+ code: "UNAUTHORIZED";
587
+ error: "Unauthorized";
588
+ name: "APIError";
589
+ }, {
590
+ code: "UNAUTHORIZED";
591
+ error: "Unauthorized";
592
+ name: "APIError";
593
+ }>;
594
+ 403: import("zod").ZodObject<{
595
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
596
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
597
+ name: import("zod").ZodLiteral<"APIError">;
598
+ }, "strip", import("zod").ZodTypeAny, {
599
+ code: "FORBIDDEN";
600
+ error: "Forbidden";
601
+ name: "APIError";
602
+ }, {
603
+ code: "FORBIDDEN";
604
+ error: "Forbidden";
605
+ name: "APIError";
606
+ }>;
334
607
  200: import("zod").ZodObject<{
335
608
  streamId: import("zod").ZodString;
336
609
  }, "strip", import("zod").ZodTypeAny, {
@@ -465,19 +738,6 @@ declare const _default: {
465
738
  error: "The provided video ID is invalid";
466
739
  name: "APIError";
467
740
  }>]>;
468
- 500: import("zod").ZodObject<{
469
- code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
470
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
471
- name: import("zod").ZodLiteral<"APIError">;
472
- }, "strip", import("zod").ZodTypeAny, {
473
- code: "INTERNAL_SERVER_ERROR";
474
- error: string;
475
- name: "APIError";
476
- }, {
477
- code: "INTERNAL_SERVER_ERROR";
478
- error: string;
479
- name: "APIError";
480
- }>;
481
741
  };
482
742
  };
483
743
  get: {
@@ -788,6 +1048,58 @@ declare const _default: {
788
1048
  body: import("zod").ZodUndefined;
789
1049
  path: "/api/v2/media-stream/play/:streamId";
790
1050
  responses: {
1051
+ 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">;
1054
+ name: import("zod").ZodLiteral<"APIError">;
1055
+ }, "strip", import("zod").ZodTypeAny, {
1056
+ code: "STREAM_NOT_FOUND";
1057
+ error: "The requested stream was not found";
1058
+ name: "APIError";
1059
+ }, {
1060
+ code: "STREAM_NOT_FOUND";
1061
+ error: "The requested stream was not found";
1062
+ name: "APIError";
1063
+ }>;
1064
+ 500: import("zod").ZodObject<{
1065
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1066
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1067
+ name: import("zod").ZodLiteral<"APIError">;
1068
+ }, "strip", import("zod").ZodTypeAny, {
1069
+ code: "INTERNAL_SERVER_ERROR";
1070
+ error: string;
1071
+ name: "APIError";
1072
+ }, {
1073
+ code: "INTERNAL_SERVER_ERROR";
1074
+ error: string;
1075
+ name: "APIError";
1076
+ }>;
1077
+ 401: import("zod").ZodObject<{
1078
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1079
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1080
+ name: import("zod").ZodLiteral<"APIError">;
1081
+ }, "strip", import("zod").ZodTypeAny, {
1082
+ code: "UNAUTHORIZED";
1083
+ error: "Unauthorized";
1084
+ name: "APIError";
1085
+ }, {
1086
+ code: "UNAUTHORIZED";
1087
+ error: "Unauthorized";
1088
+ name: "APIError";
1089
+ }>;
1090
+ 403: import("zod").ZodObject<{
1091
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1092
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1093
+ name: import("zod").ZodLiteral<"APIError">;
1094
+ }, "strip", import("zod").ZodTypeAny, {
1095
+ code: "FORBIDDEN";
1096
+ error: "Forbidden";
1097
+ name: "APIError";
1098
+ }, {
1099
+ code: "FORBIDDEN";
1100
+ error: "Forbidden";
1101
+ name: "APIError";
1102
+ }>;
791
1103
  200: typeof import("@ts-rest/core").ContractNoBody;
792
1104
  400: import("zod").ZodUnion<[import("zod").ZodObject<{
793
1105
  name: import("zod").ZodLiteral<"ZodError">;
@@ -916,6 +1228,14 @@ declare const _default: {
916
1228
  error: "The provided stream ID is invalid";
917
1229
  name: "APIError";
918
1230
  }>]>;
1231
+ };
1232
+ };
1233
+ pause: {
1234
+ description: "Pause a media stream";
1235
+ method: "POST";
1236
+ body: import("zod").ZodUndefined;
1237
+ path: "/api/v2/media-stream/pause/:streamId";
1238
+ responses: {
919
1239
  404: import("zod").ZodObject<{
920
1240
  code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
921
1241
  error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
@@ -942,14 +1262,32 @@ declare const _default: {
942
1262
  error: string;
943
1263
  name: "APIError";
944
1264
  }>;
945
- };
946
- };
947
- pause: {
948
- description: "Pause a media stream";
949
- method: "POST";
950
- body: import("zod").ZodUndefined;
951
- path: "/api/v2/media-stream/pause/:streamId";
952
- responses: {
1265
+ 401: import("zod").ZodObject<{
1266
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1267
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1268
+ name: import("zod").ZodLiteral<"APIError">;
1269
+ }, "strip", import("zod").ZodTypeAny, {
1270
+ code: "UNAUTHORIZED";
1271
+ error: "Unauthorized";
1272
+ name: "APIError";
1273
+ }, {
1274
+ code: "UNAUTHORIZED";
1275
+ error: "Unauthorized";
1276
+ name: "APIError";
1277
+ }>;
1278
+ 403: import("zod").ZodObject<{
1279
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1280
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1281
+ name: import("zod").ZodLiteral<"APIError">;
1282
+ }, "strip", import("zod").ZodTypeAny, {
1283
+ code: "FORBIDDEN";
1284
+ error: "Forbidden";
1285
+ name: "APIError";
1286
+ }, {
1287
+ code: "FORBIDDEN";
1288
+ error: "Forbidden";
1289
+ name: "APIError";
1290
+ }>;
953
1291
  200: typeof import("@ts-rest/core").ContractNoBody;
954
1292
  400: import("zod").ZodUnion<[import("zod").ZodObject<{
955
1293
  name: import("zod").ZodLiteral<"ZodError">;
@@ -1078,6 +1416,21 @@ declare const _default: {
1078
1416
  error: "The provided stream ID is invalid";
1079
1417
  name: "APIError";
1080
1418
  }>]>;
1419
+ };
1420
+ };
1421
+ seek: {
1422
+ query: import("zod").ZodObject<{
1423
+ time: import("zod").ZodNumber;
1424
+ }, "strip", import("zod").ZodTypeAny, {
1425
+ time: number;
1426
+ }, {
1427
+ time: number;
1428
+ }>;
1429
+ description: "Seek a media stream";
1430
+ method: "POST";
1431
+ body: import("zod").ZodUndefined;
1432
+ path: "/api/v2/media-stream/seek/:streamId";
1433
+ responses: {
1081
1434
  404: import("zod").ZodObject<{
1082
1435
  code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1083
1436
  error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
@@ -1104,21 +1457,32 @@ declare const _default: {
1104
1457
  error: string;
1105
1458
  name: "APIError";
1106
1459
  }>;
1107
- };
1108
- };
1109
- seek: {
1110
- query: import("zod").ZodObject<{
1111
- time: import("zod").ZodNumber;
1112
- }, "strip", import("zod").ZodTypeAny, {
1113
- time: number;
1114
- }, {
1115
- time: number;
1116
- }>;
1117
- description: "Seek a media stream";
1118
- method: "POST";
1119
- body: import("zod").ZodUndefined;
1120
- path: "/api/v2/media-stream/seek/:streamId";
1121
- responses: {
1460
+ 401: import("zod").ZodObject<{
1461
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1462
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1463
+ name: import("zod").ZodLiteral<"APIError">;
1464
+ }, "strip", import("zod").ZodTypeAny, {
1465
+ code: "UNAUTHORIZED";
1466
+ error: "Unauthorized";
1467
+ name: "APIError";
1468
+ }, {
1469
+ code: "UNAUTHORIZED";
1470
+ error: "Unauthorized";
1471
+ name: "APIError";
1472
+ }>;
1473
+ 403: import("zod").ZodObject<{
1474
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1475
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1476
+ name: import("zod").ZodLiteral<"APIError">;
1477
+ }, "strip", import("zod").ZodTypeAny, {
1478
+ code: "FORBIDDEN";
1479
+ error: "Forbidden";
1480
+ name: "APIError";
1481
+ }, {
1482
+ code: "FORBIDDEN";
1483
+ error: "Forbidden";
1484
+ name: "APIError";
1485
+ }>;
1122
1486
  200: typeof import("@ts-rest/core").ContractNoBody;
1123
1487
  400: import("zod").ZodUnion<[import("zod").ZodObject<{
1124
1488
  name: import("zod").ZodLiteral<"ZodError">;
@@ -1247,32 +1611,6 @@ declare const _default: {
1247
1611
  error: "The provided stream ID is invalid";
1248
1612
  name: "APIError";
1249
1613
  }>]>;
1250
- 404: import("zod").ZodObject<{
1251
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1252
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1253
- name: import("zod").ZodLiteral<"APIError">;
1254
- }, "strip", import("zod").ZodTypeAny, {
1255
- code: "STREAM_NOT_FOUND";
1256
- error: "The requested stream was not found";
1257
- name: "APIError";
1258
- }, {
1259
- code: "STREAM_NOT_FOUND";
1260
- error: "The requested stream was not found";
1261
- name: "APIError";
1262
- }>;
1263
- 500: import("zod").ZodObject<{
1264
- code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1265
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1266
- name: import("zod").ZodLiteral<"APIError">;
1267
- }, "strip", import("zod").ZodTypeAny, {
1268
- code: "INTERNAL_SERVER_ERROR";
1269
- error: string;
1270
- name: "APIError";
1271
- }, {
1272
- code: "INTERNAL_SERVER_ERROR";
1273
- error: string;
1274
- name: "APIError";
1275
- }>;
1276
1614
  };
1277
1615
  };
1278
1616
  scene: {
@@ -1416,6 +1754,58 @@ declare const _default: {
1416
1754
  }>]>;
1417
1755
  path: "/api/v2/media-stream/scene/:streamId";
1418
1756
  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
+ 500: import("zod").ZodObject<{
1771
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1772
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1773
+ name: import("zod").ZodLiteral<"APIError">;
1774
+ }, "strip", import("zod").ZodTypeAny, {
1775
+ code: "INTERNAL_SERVER_ERROR";
1776
+ error: string;
1777
+ name: "APIError";
1778
+ }, {
1779
+ code: "INTERNAL_SERVER_ERROR";
1780
+ error: string;
1781
+ name: "APIError";
1782
+ }>;
1783
+ 401: import("zod").ZodObject<{
1784
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1785
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1786
+ name: import("zod").ZodLiteral<"APIError">;
1787
+ }, "strip", import("zod").ZodTypeAny, {
1788
+ code: "UNAUTHORIZED";
1789
+ error: "Unauthorized";
1790
+ name: "APIError";
1791
+ }, {
1792
+ code: "UNAUTHORIZED";
1793
+ error: "Unauthorized";
1794
+ name: "APIError";
1795
+ }>;
1796
+ 403: import("zod").ZodObject<{
1797
+ code: import("zod").ZodType<"FORBIDDEN", import("zod").ZodTypeDef, "FORBIDDEN">;
1798
+ error: import("zod").ZodType<"Forbidden", import("zod").ZodTypeDef, "Forbidden">;
1799
+ name: import("zod").ZodLiteral<"APIError">;
1800
+ }, "strip", import("zod").ZodTypeAny, {
1801
+ code: "FORBIDDEN";
1802
+ error: "Forbidden";
1803
+ name: "APIError";
1804
+ }, {
1805
+ code: "FORBIDDEN";
1806
+ error: "Forbidden";
1807
+ name: "APIError";
1808
+ }>;
1419
1809
  200: typeof import("@ts-rest/core").ContractNoBody;
1420
1810
  400: import("zod").ZodUnion<[import("zod").ZodObject<{
1421
1811
  name: import("zod").ZodLiteral<"ZodError">;
@@ -1556,32 +1946,6 @@ declare const _default: {
1556
1946
  error: "The scene object was not found";
1557
1947
  name: "APIError";
1558
1948
  }>]>;
1559
- 404: import("zod").ZodObject<{
1560
- code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1561
- error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1562
- name: import("zod").ZodLiteral<"APIError">;
1563
- }, "strip", import("zod").ZodTypeAny, {
1564
- code: "STREAM_NOT_FOUND";
1565
- error: "The requested stream was not found";
1566
- name: "APIError";
1567
- }, {
1568
- code: "STREAM_NOT_FOUND";
1569
- error: "The requested stream was not found";
1570
- name: "APIError";
1571
- }>;
1572
- 500: import("zod").ZodObject<{
1573
- code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1574
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1575
- name: import("zod").ZodLiteral<"APIError">;
1576
- }, "strip", import("zod").ZodTypeAny, {
1577
- code: "INTERNAL_SERVER_ERROR";
1578
- error: string;
1579
- name: "APIError";
1580
- }, {
1581
- code: "INTERNAL_SERVER_ERROR";
1582
- error: string;
1583
- name: "APIError";
1584
- }>;
1585
1949
  };
1586
1950
  };
1587
1951
  stream: {