@darco2903/altv-web-api 0.0.0-stage → 1.0.0-pre

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.
@@ -0,0 +1,871 @@
1
+ import { z } from "zod";
2
+ declare const _default: {
3
+ init: {
4
+ description: "Initialize a new media stream from a YouTube video";
5
+ method: "POST";
6
+ body: z.ZodObject<{
7
+ videoId: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ videoId: string;
10
+ }, {
11
+ videoId: string;
12
+ }>;
13
+ path: "/media-stream/init";
14
+ responses: {
15
+ 200: z.ZodObject<{
16
+ streamId: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ streamId: string;
19
+ }, {
20
+ streamId: string;
21
+ }>;
22
+ 400: z.ZodUnion<[z.ZodObject<{
23
+ name: z.ZodLiteral<"ZodError">;
24
+ issues: z.ZodArray<z.ZodObject<{
25
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
26
+ message: z.ZodOptional<z.ZodString>;
27
+ code: z.ZodNativeEnum<{
28
+ invalid_type: "invalid_type";
29
+ invalid_literal: "invalid_literal";
30
+ custom: "custom";
31
+ invalid_union: "invalid_union";
32
+ invalid_union_discriminator: "invalid_union_discriminator";
33
+ invalid_enum_value: "invalid_enum_value";
34
+ unrecognized_keys: "unrecognized_keys";
35
+ invalid_arguments: "invalid_arguments";
36
+ invalid_return_type: "invalid_return_type";
37
+ invalid_date: "invalid_date";
38
+ invalid_string: "invalid_string";
39
+ too_small: "too_small";
40
+ too_big: "too_big";
41
+ invalid_intersection_types: "invalid_intersection_types";
42
+ not_multiple_of: "not_multiple_of";
43
+ not_finite: "not_finite";
44
+ }>;
45
+ }, "strip", z.ZodAny, z.objectOutputType<{
46
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
47
+ message: z.ZodOptional<z.ZodString>;
48
+ code: z.ZodNativeEnum<{
49
+ invalid_type: "invalid_type";
50
+ invalid_literal: "invalid_literal";
51
+ custom: "custom";
52
+ invalid_union: "invalid_union";
53
+ invalid_union_discriminator: "invalid_union_discriminator";
54
+ invalid_enum_value: "invalid_enum_value";
55
+ unrecognized_keys: "unrecognized_keys";
56
+ invalid_arguments: "invalid_arguments";
57
+ invalid_return_type: "invalid_return_type";
58
+ invalid_date: "invalid_date";
59
+ invalid_string: "invalid_string";
60
+ too_small: "too_small";
61
+ too_big: "too_big";
62
+ invalid_intersection_types: "invalid_intersection_types";
63
+ not_multiple_of: "not_multiple_of";
64
+ not_finite: "not_finite";
65
+ }>;
66
+ }, z.ZodAny, "strip">, z.objectInputType<{
67
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
68
+ message: z.ZodOptional<z.ZodString>;
69
+ code: z.ZodNativeEnum<{
70
+ invalid_type: "invalid_type";
71
+ invalid_literal: "invalid_literal";
72
+ custom: "custom";
73
+ invalid_union: "invalid_union";
74
+ invalid_union_discriminator: "invalid_union_discriminator";
75
+ invalid_enum_value: "invalid_enum_value";
76
+ unrecognized_keys: "unrecognized_keys";
77
+ invalid_arguments: "invalid_arguments";
78
+ invalid_return_type: "invalid_return_type";
79
+ invalid_date: "invalid_date";
80
+ invalid_string: "invalid_string";
81
+ too_small: "too_small";
82
+ too_big: "too_big";
83
+ invalid_intersection_types: "invalid_intersection_types";
84
+ not_multiple_of: "not_multiple_of";
85
+ not_finite: "not_finite";
86
+ }>;
87
+ }, z.ZodAny, "strip">>, "many">;
88
+ }, "strip", z.ZodTypeAny, {
89
+ name: "ZodError";
90
+ issues: z.objectOutputType<{
91
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
92
+ message: z.ZodOptional<z.ZodString>;
93
+ code: z.ZodNativeEnum<{
94
+ invalid_type: "invalid_type";
95
+ invalid_literal: "invalid_literal";
96
+ custom: "custom";
97
+ invalid_union: "invalid_union";
98
+ invalid_union_discriminator: "invalid_union_discriminator";
99
+ invalid_enum_value: "invalid_enum_value";
100
+ unrecognized_keys: "unrecognized_keys";
101
+ invalid_arguments: "invalid_arguments";
102
+ invalid_return_type: "invalid_return_type";
103
+ invalid_date: "invalid_date";
104
+ invalid_string: "invalid_string";
105
+ too_small: "too_small";
106
+ too_big: "too_big";
107
+ invalid_intersection_types: "invalid_intersection_types";
108
+ not_multiple_of: "not_multiple_of";
109
+ not_finite: "not_finite";
110
+ }>;
111
+ }, z.ZodAny, "strip">[];
112
+ }, {
113
+ name: "ZodError";
114
+ issues: z.objectInputType<{
115
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
116
+ message: z.ZodOptional<z.ZodString>;
117
+ code: z.ZodNativeEnum<{
118
+ invalid_type: "invalid_type";
119
+ invalid_literal: "invalid_literal";
120
+ custom: "custom";
121
+ invalid_union: "invalid_union";
122
+ invalid_union_discriminator: "invalid_union_discriminator";
123
+ invalid_enum_value: "invalid_enum_value";
124
+ unrecognized_keys: "unrecognized_keys";
125
+ invalid_arguments: "invalid_arguments";
126
+ invalid_return_type: "invalid_return_type";
127
+ invalid_date: "invalid_date";
128
+ invalid_string: "invalid_string";
129
+ too_small: "too_small";
130
+ too_big: "too_big";
131
+ invalid_intersection_types: "invalid_intersection_types";
132
+ not_multiple_of: "not_multiple_of";
133
+ not_finite: "not_finite";
134
+ }>;
135
+ }, z.ZodAny, "strip">[];
136
+ }>, z.ZodObject<{
137
+ code: z.ZodType<"INVALID_VIDEO_ID", z.ZodTypeDef, "INVALID_VIDEO_ID">;
138
+ error: z.ZodType<"The provided video ID is invalid", z.ZodTypeDef, "The provided video ID is invalid">;
139
+ name: z.ZodLiteral<"APIError">;
140
+ }, "strip", z.ZodTypeAny, {
141
+ code: "INVALID_VIDEO_ID";
142
+ error: "The provided video ID is invalid";
143
+ name: "APIError";
144
+ }, {
145
+ code: "INVALID_VIDEO_ID";
146
+ error: "The provided video ID is invalid";
147
+ name: "APIError";
148
+ }>]>;
149
+ 500: z.ZodObject<{
150
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
151
+ error: z.ZodType<string, z.ZodTypeDef, string>;
152
+ name: z.ZodLiteral<"APIError">;
153
+ }, "strip", z.ZodTypeAny, {
154
+ code: "INTERNAL_SERVER_ERROR";
155
+ error: string;
156
+ name: "APIError";
157
+ }, {
158
+ code: "INTERNAL_SERVER_ERROR";
159
+ error: string;
160
+ name: "APIError";
161
+ }>;
162
+ };
163
+ };
164
+ get: {
165
+ description: "Get media stream info";
166
+ method: "GET";
167
+ path: "/media-stream/get/:streamId";
168
+ responses: {
169
+ 200: z.ZodObject<{
170
+ streamId: z.ZodString;
171
+ startTime: z.ZodNumber;
172
+ duration: z.ZodNumber;
173
+ url: z.ZodString;
174
+ paused: z.ZodBoolean;
175
+ }, "strip", z.ZodTypeAny, {
176
+ streamId: string;
177
+ startTime: number;
178
+ duration: number;
179
+ url: string;
180
+ paused: boolean;
181
+ }, {
182
+ streamId: string;
183
+ startTime: number;
184
+ duration: number;
185
+ url: string;
186
+ paused: boolean;
187
+ }>;
188
+ 400: z.ZodUnion<[z.ZodObject<{
189
+ name: z.ZodLiteral<"ZodError">;
190
+ issues: z.ZodArray<z.ZodObject<{
191
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
192
+ message: z.ZodOptional<z.ZodString>;
193
+ code: z.ZodNativeEnum<{
194
+ invalid_type: "invalid_type";
195
+ invalid_literal: "invalid_literal";
196
+ custom: "custom";
197
+ invalid_union: "invalid_union";
198
+ invalid_union_discriminator: "invalid_union_discriminator";
199
+ invalid_enum_value: "invalid_enum_value";
200
+ unrecognized_keys: "unrecognized_keys";
201
+ invalid_arguments: "invalid_arguments";
202
+ invalid_return_type: "invalid_return_type";
203
+ invalid_date: "invalid_date";
204
+ invalid_string: "invalid_string";
205
+ too_small: "too_small";
206
+ too_big: "too_big";
207
+ invalid_intersection_types: "invalid_intersection_types";
208
+ not_multiple_of: "not_multiple_of";
209
+ not_finite: "not_finite";
210
+ }>;
211
+ }, "strip", z.ZodAny, z.objectOutputType<{
212
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
213
+ message: z.ZodOptional<z.ZodString>;
214
+ code: z.ZodNativeEnum<{
215
+ invalid_type: "invalid_type";
216
+ invalid_literal: "invalid_literal";
217
+ custom: "custom";
218
+ invalid_union: "invalid_union";
219
+ invalid_union_discriminator: "invalid_union_discriminator";
220
+ invalid_enum_value: "invalid_enum_value";
221
+ unrecognized_keys: "unrecognized_keys";
222
+ invalid_arguments: "invalid_arguments";
223
+ invalid_return_type: "invalid_return_type";
224
+ invalid_date: "invalid_date";
225
+ invalid_string: "invalid_string";
226
+ too_small: "too_small";
227
+ too_big: "too_big";
228
+ invalid_intersection_types: "invalid_intersection_types";
229
+ not_multiple_of: "not_multiple_of";
230
+ not_finite: "not_finite";
231
+ }>;
232
+ }, z.ZodAny, "strip">, z.objectInputType<{
233
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
234
+ message: z.ZodOptional<z.ZodString>;
235
+ code: z.ZodNativeEnum<{
236
+ invalid_type: "invalid_type";
237
+ invalid_literal: "invalid_literal";
238
+ custom: "custom";
239
+ invalid_union: "invalid_union";
240
+ invalid_union_discriminator: "invalid_union_discriminator";
241
+ invalid_enum_value: "invalid_enum_value";
242
+ unrecognized_keys: "unrecognized_keys";
243
+ invalid_arguments: "invalid_arguments";
244
+ invalid_return_type: "invalid_return_type";
245
+ invalid_date: "invalid_date";
246
+ invalid_string: "invalid_string";
247
+ too_small: "too_small";
248
+ too_big: "too_big";
249
+ invalid_intersection_types: "invalid_intersection_types";
250
+ not_multiple_of: "not_multiple_of";
251
+ not_finite: "not_finite";
252
+ }>;
253
+ }, z.ZodAny, "strip">>, "many">;
254
+ }, "strip", z.ZodTypeAny, {
255
+ name: "ZodError";
256
+ issues: z.objectOutputType<{
257
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
258
+ message: z.ZodOptional<z.ZodString>;
259
+ code: z.ZodNativeEnum<{
260
+ invalid_type: "invalid_type";
261
+ invalid_literal: "invalid_literal";
262
+ custom: "custom";
263
+ invalid_union: "invalid_union";
264
+ invalid_union_discriminator: "invalid_union_discriminator";
265
+ invalid_enum_value: "invalid_enum_value";
266
+ unrecognized_keys: "unrecognized_keys";
267
+ invalid_arguments: "invalid_arguments";
268
+ invalid_return_type: "invalid_return_type";
269
+ invalid_date: "invalid_date";
270
+ invalid_string: "invalid_string";
271
+ too_small: "too_small";
272
+ too_big: "too_big";
273
+ invalid_intersection_types: "invalid_intersection_types";
274
+ not_multiple_of: "not_multiple_of";
275
+ not_finite: "not_finite";
276
+ }>;
277
+ }, z.ZodAny, "strip">[];
278
+ }, {
279
+ name: "ZodError";
280
+ issues: z.objectInputType<{
281
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
282
+ message: z.ZodOptional<z.ZodString>;
283
+ code: z.ZodNativeEnum<{
284
+ invalid_type: "invalid_type";
285
+ invalid_literal: "invalid_literal";
286
+ custom: "custom";
287
+ invalid_union: "invalid_union";
288
+ invalid_union_discriminator: "invalid_union_discriminator";
289
+ invalid_enum_value: "invalid_enum_value";
290
+ unrecognized_keys: "unrecognized_keys";
291
+ invalid_arguments: "invalid_arguments";
292
+ invalid_return_type: "invalid_return_type";
293
+ invalid_date: "invalid_date";
294
+ invalid_string: "invalid_string";
295
+ too_small: "too_small";
296
+ too_big: "too_big";
297
+ invalid_intersection_types: "invalid_intersection_types";
298
+ not_multiple_of: "not_multiple_of";
299
+ not_finite: "not_finite";
300
+ }>;
301
+ }, z.ZodAny, "strip">[];
302
+ }>, z.ZodObject<{
303
+ code: z.ZodType<"INVALID_STREAM_ID", z.ZodTypeDef, "INVALID_STREAM_ID">;
304
+ error: z.ZodType<"The provided stream ID is invalid", z.ZodTypeDef, "The provided stream ID is invalid">;
305
+ name: z.ZodLiteral<"APIError">;
306
+ }, "strip", z.ZodTypeAny, {
307
+ code: "INVALID_STREAM_ID";
308
+ error: "The provided stream ID is invalid";
309
+ name: "APIError";
310
+ }, {
311
+ code: "INVALID_STREAM_ID";
312
+ error: "The provided stream ID is invalid";
313
+ name: "APIError";
314
+ }>]>;
315
+ 500: z.ZodObject<{
316
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
317
+ error: z.ZodType<string, z.ZodTypeDef, string>;
318
+ name: z.ZodLiteral<"APIError">;
319
+ }, "strip", z.ZodTypeAny, {
320
+ code: "INTERNAL_SERVER_ERROR";
321
+ error: string;
322
+ name: "APIError";
323
+ }, {
324
+ code: "INTERNAL_SERVER_ERROR";
325
+ error: string;
326
+ name: "APIError";
327
+ }>;
328
+ };
329
+ };
330
+ play: {
331
+ description: "Play a media stream";
332
+ method: "POST";
333
+ body: z.ZodUndefined;
334
+ path: "/media-stream/play/:streamId";
335
+ responses: {
336
+ 200: z.ZodUndefined;
337
+ 400: z.ZodUnion<[z.ZodObject<{
338
+ name: z.ZodLiteral<"ZodError">;
339
+ issues: z.ZodArray<z.ZodObject<{
340
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
341
+ message: z.ZodOptional<z.ZodString>;
342
+ code: z.ZodNativeEnum<{
343
+ invalid_type: "invalid_type";
344
+ invalid_literal: "invalid_literal";
345
+ custom: "custom";
346
+ invalid_union: "invalid_union";
347
+ invalid_union_discriminator: "invalid_union_discriminator";
348
+ invalid_enum_value: "invalid_enum_value";
349
+ unrecognized_keys: "unrecognized_keys";
350
+ invalid_arguments: "invalid_arguments";
351
+ invalid_return_type: "invalid_return_type";
352
+ invalid_date: "invalid_date";
353
+ invalid_string: "invalid_string";
354
+ too_small: "too_small";
355
+ too_big: "too_big";
356
+ invalid_intersection_types: "invalid_intersection_types";
357
+ not_multiple_of: "not_multiple_of";
358
+ not_finite: "not_finite";
359
+ }>;
360
+ }, "strip", z.ZodAny, z.objectOutputType<{
361
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
362
+ message: z.ZodOptional<z.ZodString>;
363
+ code: z.ZodNativeEnum<{
364
+ invalid_type: "invalid_type";
365
+ invalid_literal: "invalid_literal";
366
+ custom: "custom";
367
+ invalid_union: "invalid_union";
368
+ invalid_union_discriminator: "invalid_union_discriminator";
369
+ invalid_enum_value: "invalid_enum_value";
370
+ unrecognized_keys: "unrecognized_keys";
371
+ invalid_arguments: "invalid_arguments";
372
+ invalid_return_type: "invalid_return_type";
373
+ invalid_date: "invalid_date";
374
+ invalid_string: "invalid_string";
375
+ too_small: "too_small";
376
+ too_big: "too_big";
377
+ invalid_intersection_types: "invalid_intersection_types";
378
+ not_multiple_of: "not_multiple_of";
379
+ not_finite: "not_finite";
380
+ }>;
381
+ }, z.ZodAny, "strip">, z.objectInputType<{
382
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
383
+ message: z.ZodOptional<z.ZodString>;
384
+ code: z.ZodNativeEnum<{
385
+ invalid_type: "invalid_type";
386
+ invalid_literal: "invalid_literal";
387
+ custom: "custom";
388
+ invalid_union: "invalid_union";
389
+ invalid_union_discriminator: "invalid_union_discriminator";
390
+ invalid_enum_value: "invalid_enum_value";
391
+ unrecognized_keys: "unrecognized_keys";
392
+ invalid_arguments: "invalid_arguments";
393
+ invalid_return_type: "invalid_return_type";
394
+ invalid_date: "invalid_date";
395
+ invalid_string: "invalid_string";
396
+ too_small: "too_small";
397
+ too_big: "too_big";
398
+ invalid_intersection_types: "invalid_intersection_types";
399
+ not_multiple_of: "not_multiple_of";
400
+ not_finite: "not_finite";
401
+ }>;
402
+ }, z.ZodAny, "strip">>, "many">;
403
+ }, "strip", z.ZodTypeAny, {
404
+ name: "ZodError";
405
+ issues: z.objectOutputType<{
406
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
407
+ message: z.ZodOptional<z.ZodString>;
408
+ code: z.ZodNativeEnum<{
409
+ invalid_type: "invalid_type";
410
+ invalid_literal: "invalid_literal";
411
+ custom: "custom";
412
+ invalid_union: "invalid_union";
413
+ invalid_union_discriminator: "invalid_union_discriminator";
414
+ invalid_enum_value: "invalid_enum_value";
415
+ unrecognized_keys: "unrecognized_keys";
416
+ invalid_arguments: "invalid_arguments";
417
+ invalid_return_type: "invalid_return_type";
418
+ invalid_date: "invalid_date";
419
+ invalid_string: "invalid_string";
420
+ too_small: "too_small";
421
+ too_big: "too_big";
422
+ invalid_intersection_types: "invalid_intersection_types";
423
+ not_multiple_of: "not_multiple_of";
424
+ not_finite: "not_finite";
425
+ }>;
426
+ }, z.ZodAny, "strip">[];
427
+ }, {
428
+ name: "ZodError";
429
+ issues: z.objectInputType<{
430
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
431
+ message: z.ZodOptional<z.ZodString>;
432
+ code: z.ZodNativeEnum<{
433
+ invalid_type: "invalid_type";
434
+ invalid_literal: "invalid_literal";
435
+ custom: "custom";
436
+ invalid_union: "invalid_union";
437
+ invalid_union_discriminator: "invalid_union_discriminator";
438
+ invalid_enum_value: "invalid_enum_value";
439
+ unrecognized_keys: "unrecognized_keys";
440
+ invalid_arguments: "invalid_arguments";
441
+ invalid_return_type: "invalid_return_type";
442
+ invalid_date: "invalid_date";
443
+ invalid_string: "invalid_string";
444
+ too_small: "too_small";
445
+ too_big: "too_big";
446
+ invalid_intersection_types: "invalid_intersection_types";
447
+ not_multiple_of: "not_multiple_of";
448
+ not_finite: "not_finite";
449
+ }>;
450
+ }, z.ZodAny, "strip">[];
451
+ }>, z.ZodObject<{
452
+ code: z.ZodType<"INVALID_STREAM_ID", z.ZodTypeDef, "INVALID_STREAM_ID">;
453
+ error: z.ZodType<"The provided stream ID is invalid", z.ZodTypeDef, "The provided stream ID is invalid">;
454
+ name: z.ZodLiteral<"APIError">;
455
+ }, "strip", z.ZodTypeAny, {
456
+ code: "INVALID_STREAM_ID";
457
+ error: "The provided stream ID is invalid";
458
+ name: "APIError";
459
+ }, {
460
+ code: "INVALID_STREAM_ID";
461
+ error: "The provided stream ID is invalid";
462
+ name: "APIError";
463
+ }>]>;
464
+ 404: z.ZodObject<{
465
+ code: z.ZodType<"STREAM_NOT_FOUND", z.ZodTypeDef, "STREAM_NOT_FOUND">;
466
+ error: z.ZodType<"The requested stream was not found", z.ZodTypeDef, "The requested stream was not found">;
467
+ name: z.ZodLiteral<"APIError">;
468
+ }, "strip", z.ZodTypeAny, {
469
+ code: "STREAM_NOT_FOUND";
470
+ error: "The requested stream was not found";
471
+ name: "APIError";
472
+ }, {
473
+ code: "STREAM_NOT_FOUND";
474
+ error: "The requested stream was not found";
475
+ name: "APIError";
476
+ }>;
477
+ 500: z.ZodObject<{
478
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
479
+ error: z.ZodType<string, z.ZodTypeDef, string>;
480
+ name: z.ZodLiteral<"APIError">;
481
+ }, "strip", z.ZodTypeAny, {
482
+ code: "INTERNAL_SERVER_ERROR";
483
+ error: string;
484
+ name: "APIError";
485
+ }, {
486
+ code: "INTERNAL_SERVER_ERROR";
487
+ error: string;
488
+ name: "APIError";
489
+ }>;
490
+ };
491
+ };
492
+ pause: {
493
+ description: "Pause a media stream";
494
+ method: "POST";
495
+ body: z.ZodUndefined;
496
+ path: "/media-stream/pause/:streamId";
497
+ responses: {
498
+ 200: z.ZodUndefined;
499
+ 400: z.ZodUnion<[z.ZodObject<{
500
+ name: z.ZodLiteral<"ZodError">;
501
+ issues: z.ZodArray<z.ZodObject<{
502
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
503
+ message: z.ZodOptional<z.ZodString>;
504
+ code: z.ZodNativeEnum<{
505
+ invalid_type: "invalid_type";
506
+ invalid_literal: "invalid_literal";
507
+ custom: "custom";
508
+ invalid_union: "invalid_union";
509
+ invalid_union_discriminator: "invalid_union_discriminator";
510
+ invalid_enum_value: "invalid_enum_value";
511
+ unrecognized_keys: "unrecognized_keys";
512
+ invalid_arguments: "invalid_arguments";
513
+ invalid_return_type: "invalid_return_type";
514
+ invalid_date: "invalid_date";
515
+ invalid_string: "invalid_string";
516
+ too_small: "too_small";
517
+ too_big: "too_big";
518
+ invalid_intersection_types: "invalid_intersection_types";
519
+ not_multiple_of: "not_multiple_of";
520
+ not_finite: "not_finite";
521
+ }>;
522
+ }, "strip", z.ZodAny, z.objectOutputType<{
523
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
524
+ message: z.ZodOptional<z.ZodString>;
525
+ code: z.ZodNativeEnum<{
526
+ invalid_type: "invalid_type";
527
+ invalid_literal: "invalid_literal";
528
+ custom: "custom";
529
+ invalid_union: "invalid_union";
530
+ invalid_union_discriminator: "invalid_union_discriminator";
531
+ invalid_enum_value: "invalid_enum_value";
532
+ unrecognized_keys: "unrecognized_keys";
533
+ invalid_arguments: "invalid_arguments";
534
+ invalid_return_type: "invalid_return_type";
535
+ invalid_date: "invalid_date";
536
+ invalid_string: "invalid_string";
537
+ too_small: "too_small";
538
+ too_big: "too_big";
539
+ invalid_intersection_types: "invalid_intersection_types";
540
+ not_multiple_of: "not_multiple_of";
541
+ not_finite: "not_finite";
542
+ }>;
543
+ }, z.ZodAny, "strip">, z.objectInputType<{
544
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
545
+ message: z.ZodOptional<z.ZodString>;
546
+ code: z.ZodNativeEnum<{
547
+ invalid_type: "invalid_type";
548
+ invalid_literal: "invalid_literal";
549
+ custom: "custom";
550
+ invalid_union: "invalid_union";
551
+ invalid_union_discriminator: "invalid_union_discriminator";
552
+ invalid_enum_value: "invalid_enum_value";
553
+ unrecognized_keys: "unrecognized_keys";
554
+ invalid_arguments: "invalid_arguments";
555
+ invalid_return_type: "invalid_return_type";
556
+ invalid_date: "invalid_date";
557
+ invalid_string: "invalid_string";
558
+ too_small: "too_small";
559
+ too_big: "too_big";
560
+ invalid_intersection_types: "invalid_intersection_types";
561
+ not_multiple_of: "not_multiple_of";
562
+ not_finite: "not_finite";
563
+ }>;
564
+ }, z.ZodAny, "strip">>, "many">;
565
+ }, "strip", z.ZodTypeAny, {
566
+ name: "ZodError";
567
+ issues: z.objectOutputType<{
568
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
569
+ message: z.ZodOptional<z.ZodString>;
570
+ code: z.ZodNativeEnum<{
571
+ invalid_type: "invalid_type";
572
+ invalid_literal: "invalid_literal";
573
+ custom: "custom";
574
+ invalid_union: "invalid_union";
575
+ invalid_union_discriminator: "invalid_union_discriminator";
576
+ invalid_enum_value: "invalid_enum_value";
577
+ unrecognized_keys: "unrecognized_keys";
578
+ invalid_arguments: "invalid_arguments";
579
+ invalid_return_type: "invalid_return_type";
580
+ invalid_date: "invalid_date";
581
+ invalid_string: "invalid_string";
582
+ too_small: "too_small";
583
+ too_big: "too_big";
584
+ invalid_intersection_types: "invalid_intersection_types";
585
+ not_multiple_of: "not_multiple_of";
586
+ not_finite: "not_finite";
587
+ }>;
588
+ }, z.ZodAny, "strip">[];
589
+ }, {
590
+ name: "ZodError";
591
+ issues: z.objectInputType<{
592
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
593
+ message: z.ZodOptional<z.ZodString>;
594
+ code: z.ZodNativeEnum<{
595
+ invalid_type: "invalid_type";
596
+ invalid_literal: "invalid_literal";
597
+ custom: "custom";
598
+ invalid_union: "invalid_union";
599
+ invalid_union_discriminator: "invalid_union_discriminator";
600
+ invalid_enum_value: "invalid_enum_value";
601
+ unrecognized_keys: "unrecognized_keys";
602
+ invalid_arguments: "invalid_arguments";
603
+ invalid_return_type: "invalid_return_type";
604
+ invalid_date: "invalid_date";
605
+ invalid_string: "invalid_string";
606
+ too_small: "too_small";
607
+ too_big: "too_big";
608
+ invalid_intersection_types: "invalid_intersection_types";
609
+ not_multiple_of: "not_multiple_of";
610
+ not_finite: "not_finite";
611
+ }>;
612
+ }, z.ZodAny, "strip">[];
613
+ }>, z.ZodObject<{
614
+ code: z.ZodType<"INVALID_STREAM_ID", z.ZodTypeDef, "INVALID_STREAM_ID">;
615
+ error: z.ZodType<"The provided stream ID is invalid", z.ZodTypeDef, "The provided stream ID is invalid">;
616
+ name: z.ZodLiteral<"APIError">;
617
+ }, "strip", z.ZodTypeAny, {
618
+ code: "INVALID_STREAM_ID";
619
+ error: "The provided stream ID is invalid";
620
+ name: "APIError";
621
+ }, {
622
+ code: "INVALID_STREAM_ID";
623
+ error: "The provided stream ID is invalid";
624
+ name: "APIError";
625
+ }>]>;
626
+ 404: z.ZodObject<{
627
+ code: z.ZodType<"STREAM_NOT_FOUND", z.ZodTypeDef, "STREAM_NOT_FOUND">;
628
+ error: z.ZodType<"The requested stream was not found", z.ZodTypeDef, "The requested stream was not found">;
629
+ name: z.ZodLiteral<"APIError">;
630
+ }, "strip", z.ZodTypeAny, {
631
+ code: "STREAM_NOT_FOUND";
632
+ error: "The requested stream was not found";
633
+ name: "APIError";
634
+ }, {
635
+ code: "STREAM_NOT_FOUND";
636
+ error: "The requested stream was not found";
637
+ name: "APIError";
638
+ }>;
639
+ 500: z.ZodObject<{
640
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
641
+ error: z.ZodType<string, z.ZodTypeDef, string>;
642
+ name: z.ZodLiteral<"APIError">;
643
+ }, "strip", z.ZodTypeAny, {
644
+ code: "INTERNAL_SERVER_ERROR";
645
+ error: string;
646
+ name: "APIError";
647
+ }, {
648
+ code: "INTERNAL_SERVER_ERROR";
649
+ error: string;
650
+ name: "APIError";
651
+ }>;
652
+ };
653
+ };
654
+ seek: {
655
+ query: z.ZodObject<{
656
+ time: z.ZodNumber;
657
+ }, "strip", z.ZodTypeAny, {
658
+ time: number;
659
+ }, {
660
+ time: number;
661
+ }>;
662
+ description: "Seek a media stream";
663
+ method: "POST";
664
+ body: z.ZodUndefined;
665
+ path: "/media-stream/seek/:streamId";
666
+ responses: {
667
+ 200: z.ZodUndefined;
668
+ 400: z.ZodUnion<[z.ZodObject<{
669
+ name: z.ZodLiteral<"ZodError">;
670
+ issues: z.ZodArray<z.ZodObject<{
671
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
672
+ message: z.ZodOptional<z.ZodString>;
673
+ code: z.ZodNativeEnum<{
674
+ invalid_type: "invalid_type";
675
+ invalid_literal: "invalid_literal";
676
+ custom: "custom";
677
+ invalid_union: "invalid_union";
678
+ invalid_union_discriminator: "invalid_union_discriminator";
679
+ invalid_enum_value: "invalid_enum_value";
680
+ unrecognized_keys: "unrecognized_keys";
681
+ invalid_arguments: "invalid_arguments";
682
+ invalid_return_type: "invalid_return_type";
683
+ invalid_date: "invalid_date";
684
+ invalid_string: "invalid_string";
685
+ too_small: "too_small";
686
+ too_big: "too_big";
687
+ invalid_intersection_types: "invalid_intersection_types";
688
+ not_multiple_of: "not_multiple_of";
689
+ not_finite: "not_finite";
690
+ }>;
691
+ }, "strip", z.ZodAny, z.objectOutputType<{
692
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
693
+ message: z.ZodOptional<z.ZodString>;
694
+ code: z.ZodNativeEnum<{
695
+ invalid_type: "invalid_type";
696
+ invalid_literal: "invalid_literal";
697
+ custom: "custom";
698
+ invalid_union: "invalid_union";
699
+ invalid_union_discriminator: "invalid_union_discriminator";
700
+ invalid_enum_value: "invalid_enum_value";
701
+ unrecognized_keys: "unrecognized_keys";
702
+ invalid_arguments: "invalid_arguments";
703
+ invalid_return_type: "invalid_return_type";
704
+ invalid_date: "invalid_date";
705
+ invalid_string: "invalid_string";
706
+ too_small: "too_small";
707
+ too_big: "too_big";
708
+ invalid_intersection_types: "invalid_intersection_types";
709
+ not_multiple_of: "not_multiple_of";
710
+ not_finite: "not_finite";
711
+ }>;
712
+ }, z.ZodAny, "strip">, z.objectInputType<{
713
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
714
+ message: z.ZodOptional<z.ZodString>;
715
+ code: z.ZodNativeEnum<{
716
+ invalid_type: "invalid_type";
717
+ invalid_literal: "invalid_literal";
718
+ custom: "custom";
719
+ invalid_union: "invalid_union";
720
+ invalid_union_discriminator: "invalid_union_discriminator";
721
+ invalid_enum_value: "invalid_enum_value";
722
+ unrecognized_keys: "unrecognized_keys";
723
+ invalid_arguments: "invalid_arguments";
724
+ invalid_return_type: "invalid_return_type";
725
+ invalid_date: "invalid_date";
726
+ invalid_string: "invalid_string";
727
+ too_small: "too_small";
728
+ too_big: "too_big";
729
+ invalid_intersection_types: "invalid_intersection_types";
730
+ not_multiple_of: "not_multiple_of";
731
+ not_finite: "not_finite";
732
+ }>;
733
+ }, z.ZodAny, "strip">>, "many">;
734
+ }, "strip", z.ZodTypeAny, {
735
+ name: "ZodError";
736
+ issues: z.objectOutputType<{
737
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
738
+ message: z.ZodOptional<z.ZodString>;
739
+ code: z.ZodNativeEnum<{
740
+ invalid_type: "invalid_type";
741
+ invalid_literal: "invalid_literal";
742
+ custom: "custom";
743
+ invalid_union: "invalid_union";
744
+ invalid_union_discriminator: "invalid_union_discriminator";
745
+ invalid_enum_value: "invalid_enum_value";
746
+ unrecognized_keys: "unrecognized_keys";
747
+ invalid_arguments: "invalid_arguments";
748
+ invalid_return_type: "invalid_return_type";
749
+ invalid_date: "invalid_date";
750
+ invalid_string: "invalid_string";
751
+ too_small: "too_small";
752
+ too_big: "too_big";
753
+ invalid_intersection_types: "invalid_intersection_types";
754
+ not_multiple_of: "not_multiple_of";
755
+ not_finite: "not_finite";
756
+ }>;
757
+ }, z.ZodAny, "strip">[];
758
+ }, {
759
+ name: "ZodError";
760
+ issues: z.objectInputType<{
761
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
762
+ message: z.ZodOptional<z.ZodString>;
763
+ code: z.ZodNativeEnum<{
764
+ invalid_type: "invalid_type";
765
+ invalid_literal: "invalid_literal";
766
+ custom: "custom";
767
+ invalid_union: "invalid_union";
768
+ invalid_union_discriminator: "invalid_union_discriminator";
769
+ invalid_enum_value: "invalid_enum_value";
770
+ unrecognized_keys: "unrecognized_keys";
771
+ invalid_arguments: "invalid_arguments";
772
+ invalid_return_type: "invalid_return_type";
773
+ invalid_date: "invalid_date";
774
+ invalid_string: "invalid_string";
775
+ too_small: "too_small";
776
+ too_big: "too_big";
777
+ invalid_intersection_types: "invalid_intersection_types";
778
+ not_multiple_of: "not_multiple_of";
779
+ not_finite: "not_finite";
780
+ }>;
781
+ }, z.ZodAny, "strip">[];
782
+ }>, z.ZodObject<{
783
+ code: z.ZodType<"INVALID_STREAM_ID", z.ZodTypeDef, "INVALID_STREAM_ID">;
784
+ error: z.ZodType<"The provided stream ID is invalid", z.ZodTypeDef, "The provided stream ID is invalid">;
785
+ name: z.ZodLiteral<"APIError">;
786
+ }, "strip", z.ZodTypeAny, {
787
+ code: "INVALID_STREAM_ID";
788
+ error: "The provided stream ID is invalid";
789
+ name: "APIError";
790
+ }, {
791
+ code: "INVALID_STREAM_ID";
792
+ error: "The provided stream ID is invalid";
793
+ name: "APIError";
794
+ }>]>;
795
+ 404: z.ZodObject<{
796
+ code: z.ZodType<"STREAM_NOT_FOUND", z.ZodTypeDef, "STREAM_NOT_FOUND">;
797
+ error: z.ZodType<"The requested stream was not found", z.ZodTypeDef, "The requested stream was not found">;
798
+ name: z.ZodLiteral<"APIError">;
799
+ }, "strip", z.ZodTypeAny, {
800
+ code: "STREAM_NOT_FOUND";
801
+ error: "The requested stream was not found";
802
+ name: "APIError";
803
+ }, {
804
+ code: "STREAM_NOT_FOUND";
805
+ error: "The requested stream was not found";
806
+ name: "APIError";
807
+ }>;
808
+ 500: z.ZodObject<{
809
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
810
+ error: z.ZodType<string, z.ZodTypeDef, string>;
811
+ name: z.ZodLiteral<"APIError">;
812
+ }, "strip", z.ZodTypeAny, {
813
+ code: "INTERNAL_SERVER_ERROR";
814
+ error: string;
815
+ name: "APIError";
816
+ }, {
817
+ code: "INTERNAL_SERVER_ERROR";
818
+ error: string;
819
+ name: "APIError";
820
+ }>;
821
+ };
822
+ };
823
+ stream: {
824
+ description: "Get media stream by stream ID";
825
+ method: "GET";
826
+ path: "/media-stream/stream/:streamId";
827
+ responses: {
828
+ 200: z.ZodAny;
829
+ 400: z.ZodObject<{
830
+ code: z.ZodType<"INVALID_VIDEO_ID", z.ZodTypeDef, "INVALID_VIDEO_ID">;
831
+ error: z.ZodType<"The provided video ID is invalid", z.ZodTypeDef, "The provided video ID is invalid">;
832
+ name: z.ZodLiteral<"APIError">;
833
+ }, "strip", z.ZodTypeAny, {
834
+ code: "INVALID_VIDEO_ID";
835
+ error: "The provided video ID is invalid";
836
+ name: "APIError";
837
+ }, {
838
+ code: "INVALID_VIDEO_ID";
839
+ error: "The provided video ID is invalid";
840
+ name: "APIError";
841
+ }>;
842
+ 404: z.ZodObject<{
843
+ code: z.ZodType<"STREAM_NOT_FOUND", z.ZodTypeDef, "STREAM_NOT_FOUND">;
844
+ error: z.ZodType<"The requested stream was not found", z.ZodTypeDef, "The requested stream was not found">;
845
+ name: z.ZodLiteral<"APIError">;
846
+ }, "strip", z.ZodTypeAny, {
847
+ code: "STREAM_NOT_FOUND";
848
+ error: "The requested stream was not found";
849
+ name: "APIError";
850
+ }, {
851
+ code: "STREAM_NOT_FOUND";
852
+ error: "The requested stream was not found";
853
+ name: "APIError";
854
+ }>;
855
+ 500: z.ZodObject<{
856
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
857
+ error: z.ZodType<string, z.ZodTypeDef, string>;
858
+ name: z.ZodLiteral<"APIError">;
859
+ }, "strip", z.ZodTypeAny, {
860
+ code: "INTERNAL_SERVER_ERROR";
861
+ error: string;
862
+ name: "APIError";
863
+ }, {
864
+ code: "INTERNAL_SERVER_ERROR";
865
+ error: string;
866
+ name: "APIError";
867
+ }>;
868
+ };
869
+ };
870
+ };
871
+ export default _default;