@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.
@@ -1,1404 +1,7 @@
1
1
  import { z } from "zod";
2
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
- 500: z.ZodObject<{
16
- code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
17
- error: z.ZodType<string, z.ZodTypeDef, string>;
18
- name: z.ZodLiteral<"APIError">;
19
- }, "strip", z.ZodTypeAny, {
20
- code: "INTERNAL_SERVER_ERROR";
21
- error: string;
22
- name: "APIError";
23
- }, {
24
- code: "INTERNAL_SERVER_ERROR";
25
- error: string;
26
- name: "APIError";
27
- }>;
28
- 401: z.ZodObject<{
29
- code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
30
- error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
31
- name: z.ZodLiteral<"APIError">;
32
- }, "strip", z.ZodTypeAny, {
33
- code: "UNAUTHORIZED";
34
- error: "Unauthorized";
35
- name: "APIError";
36
- }, {
37
- code: "UNAUTHORIZED";
38
- error: "Unauthorized";
39
- name: "APIError";
40
- }>;
41
- 403: z.ZodObject<{
42
- code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
43
- error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
44
- name: z.ZodLiteral<"APIError">;
45
- }, "strip", z.ZodTypeAny, {
46
- code: "FORBIDDEN";
47
- error: "Forbidden";
48
- name: "APIError";
49
- }, {
50
- code: "FORBIDDEN";
51
- error: "Forbidden";
52
- name: "APIError";
53
- }>;
54
- 200: z.ZodObject<{
55
- streamId: z.ZodString;
56
- }, "strip", z.ZodTypeAny, {
57
- streamId: string;
58
- }, {
59
- streamId: string;
60
- }>;
61
- 400: z.ZodUnion<[z.ZodObject<{
62
- name: z.ZodLiteral<"ZodError">;
63
- issues: z.ZodArray<z.ZodObject<{
64
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
65
- message: z.ZodOptional<z.ZodString>;
66
- code: z.ZodNativeEnum<{
67
- invalid_type: "invalid_type";
68
- invalid_literal: "invalid_literal";
69
- custom: "custom";
70
- invalid_union: "invalid_union";
71
- invalid_union_discriminator: "invalid_union_discriminator";
72
- invalid_enum_value: "invalid_enum_value";
73
- unrecognized_keys: "unrecognized_keys";
74
- invalid_arguments: "invalid_arguments";
75
- invalid_return_type: "invalid_return_type";
76
- invalid_date: "invalid_date";
77
- invalid_string: "invalid_string";
78
- too_small: "too_small";
79
- too_big: "too_big";
80
- invalid_intersection_types: "invalid_intersection_types";
81
- not_multiple_of: "not_multiple_of";
82
- not_finite: "not_finite";
83
- }>;
84
- }, "strip", z.ZodAny, z.objectOutputType<{
85
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
86
- message: z.ZodOptional<z.ZodString>;
87
- code: z.ZodNativeEnum<{
88
- invalid_type: "invalid_type";
89
- invalid_literal: "invalid_literal";
90
- custom: "custom";
91
- invalid_union: "invalid_union";
92
- invalid_union_discriminator: "invalid_union_discriminator";
93
- invalid_enum_value: "invalid_enum_value";
94
- unrecognized_keys: "unrecognized_keys";
95
- invalid_arguments: "invalid_arguments";
96
- invalid_return_type: "invalid_return_type";
97
- invalid_date: "invalid_date";
98
- invalid_string: "invalid_string";
99
- too_small: "too_small";
100
- too_big: "too_big";
101
- invalid_intersection_types: "invalid_intersection_types";
102
- not_multiple_of: "not_multiple_of";
103
- not_finite: "not_finite";
104
- }>;
105
- }, z.ZodAny, "strip">, z.objectInputType<{
106
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
107
- message: z.ZodOptional<z.ZodString>;
108
- code: z.ZodNativeEnum<{
109
- invalid_type: "invalid_type";
110
- invalid_literal: "invalid_literal";
111
- custom: "custom";
112
- invalid_union: "invalid_union";
113
- invalid_union_discriminator: "invalid_union_discriminator";
114
- invalid_enum_value: "invalid_enum_value";
115
- unrecognized_keys: "unrecognized_keys";
116
- invalid_arguments: "invalid_arguments";
117
- invalid_return_type: "invalid_return_type";
118
- invalid_date: "invalid_date";
119
- invalid_string: "invalid_string";
120
- too_small: "too_small";
121
- too_big: "too_big";
122
- invalid_intersection_types: "invalid_intersection_types";
123
- not_multiple_of: "not_multiple_of";
124
- not_finite: "not_finite";
125
- }>;
126
- }, z.ZodAny, "strip">>, "many">;
127
- }, "strip", z.ZodTypeAny, {
128
- name: "ZodError";
129
- issues: z.objectOutputType<{
130
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
131
- message: z.ZodOptional<z.ZodString>;
132
- code: z.ZodNativeEnum<{
133
- invalid_type: "invalid_type";
134
- invalid_literal: "invalid_literal";
135
- custom: "custom";
136
- invalid_union: "invalid_union";
137
- invalid_union_discriminator: "invalid_union_discriminator";
138
- invalid_enum_value: "invalid_enum_value";
139
- unrecognized_keys: "unrecognized_keys";
140
- invalid_arguments: "invalid_arguments";
141
- invalid_return_type: "invalid_return_type";
142
- invalid_date: "invalid_date";
143
- invalid_string: "invalid_string";
144
- too_small: "too_small";
145
- too_big: "too_big";
146
- invalid_intersection_types: "invalid_intersection_types";
147
- not_multiple_of: "not_multiple_of";
148
- not_finite: "not_finite";
149
- }>;
150
- }, z.ZodAny, "strip">[];
151
- }, {
152
- name: "ZodError";
153
- issues: z.objectInputType<{
154
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
155
- message: z.ZodOptional<z.ZodString>;
156
- code: z.ZodNativeEnum<{
157
- invalid_type: "invalid_type";
158
- invalid_literal: "invalid_literal";
159
- custom: "custom";
160
- invalid_union: "invalid_union";
161
- invalid_union_discriminator: "invalid_union_discriminator";
162
- invalid_enum_value: "invalid_enum_value";
163
- unrecognized_keys: "unrecognized_keys";
164
- invalid_arguments: "invalid_arguments";
165
- invalid_return_type: "invalid_return_type";
166
- invalid_date: "invalid_date";
167
- invalid_string: "invalid_string";
168
- too_small: "too_small";
169
- too_big: "too_big";
170
- invalid_intersection_types: "invalid_intersection_types";
171
- not_multiple_of: "not_multiple_of";
172
- not_finite: "not_finite";
173
- }>;
174
- }, z.ZodAny, "strip">[];
175
- }>, z.ZodObject<{
176
- code: z.ZodType<"INVALID_VIDEO_ID", z.ZodTypeDef, "INVALID_VIDEO_ID">;
177
- error: z.ZodType<"The provided video ID is invalid", z.ZodTypeDef, "The provided video ID is invalid">;
178
- name: z.ZodLiteral<"APIError">;
179
- }, "strip", z.ZodTypeAny, {
180
- code: "INVALID_VIDEO_ID";
181
- error: "The provided video ID is invalid";
182
- name: "APIError";
183
- }, {
184
- code: "INVALID_VIDEO_ID";
185
- error: "The provided video ID is invalid";
186
- name: "APIError";
187
- }>]>;
188
- };
189
- };
190
- get: {
191
- description: "Get media stream info";
192
- method: "GET";
193
- path: "/media-stream/get/:streamId";
194
- responses: {
195
- 200: z.ZodObject<{
196
- streamId: z.ZodString;
197
- title: z.ZodString;
198
- startTime: z.ZodNumber;
199
- /** seconds */
200
- duration: z.ZodNumber;
201
- /** seconds, media position when the response was sent */
202
- currentTime: z.ZodNumber;
203
- url: z.ZodString;
204
- paused: z.ZodBoolean;
205
- scene: z.ZodObject<{
206
- speakers: z.ZodArray<z.ZodObject<{
207
- id: z.ZodString;
208
- x: z.ZodNumber;
209
- y: z.ZodNumber;
210
- z: z.ZodNumber;
211
- yaw: z.ZodNumber;
212
- pitch: z.ZodNumber;
213
- directional: z.ZodBoolean;
214
- }, "strip", z.ZodTypeAny, {
215
- id: string;
216
- x: number;
217
- y: number;
218
- z: number;
219
- yaw: number;
220
- pitch: number;
221
- directional: boolean;
222
- }, {
223
- id: string;
224
- x: number;
225
- y: number;
226
- z: number;
227
- yaw: number;
228
- pitch: number;
229
- directional: boolean;
230
- }>, "many">;
231
- cars: z.ZodArray<z.ZodObject<{
232
- id: z.ZodString;
233
- x: z.ZodNumber;
234
- z: z.ZodNumber;
235
- yaw: z.ZodNumber;
236
- doors: z.ZodArray<z.ZodBoolean, "many">;
237
- windows: z.ZodArray<z.ZodBoolean, "many">;
238
- radio: z.ZodBoolean;
239
- }, "strip", z.ZodTypeAny, {
240
- id: string;
241
- x: number;
242
- z: number;
243
- yaw: number;
244
- doors: boolean[];
245
- windows: boolean[];
246
- radio: boolean;
247
- }, {
248
- id: string;
249
- x: number;
250
- z: number;
251
- yaw: number;
252
- doors: boolean[];
253
- windows: boolean[];
254
- radio: boolean;
255
- }>, "many">;
256
- }, "strip", z.ZodTypeAny, {
257
- speakers: {
258
- id: string;
259
- x: number;
260
- y: number;
261
- z: number;
262
- yaw: number;
263
- pitch: number;
264
- directional: boolean;
265
- }[];
266
- cars: {
267
- id: string;
268
- x: number;
269
- z: number;
270
- yaw: number;
271
- doors: boolean[];
272
- windows: boolean[];
273
- radio: boolean;
274
- }[];
275
- }, {
276
- speakers: {
277
- id: string;
278
- x: number;
279
- y: number;
280
- z: number;
281
- yaw: number;
282
- pitch: number;
283
- directional: boolean;
284
- }[];
285
- cars: {
286
- id: string;
287
- x: number;
288
- z: number;
289
- yaw: number;
290
- doors: boolean[];
291
- windows: boolean[];
292
- radio: boolean;
293
- }[];
294
- }>;
295
- }, "strip", z.ZodTypeAny, {
296
- title: string;
297
- duration: number;
298
- streamId: string;
299
- startTime: number;
300
- currentTime: number;
301
- url: string;
302
- paused: boolean;
303
- scene: {
304
- speakers: {
305
- id: string;
306
- x: number;
307
- y: number;
308
- z: number;
309
- yaw: number;
310
- pitch: number;
311
- directional: boolean;
312
- }[];
313
- cars: {
314
- id: string;
315
- x: number;
316
- z: number;
317
- yaw: number;
318
- doors: boolean[];
319
- windows: boolean[];
320
- radio: boolean;
321
- }[];
322
- };
323
- }, {
324
- title: string;
325
- duration: number;
326
- streamId: string;
327
- startTime: number;
328
- currentTime: number;
329
- url: string;
330
- paused: boolean;
331
- scene: {
332
- speakers: {
333
- id: string;
334
- x: number;
335
- y: number;
336
- z: number;
337
- yaw: number;
338
- pitch: number;
339
- directional: boolean;
340
- }[];
341
- cars: {
342
- id: string;
343
- x: number;
344
- z: number;
345
- yaw: number;
346
- doors: boolean[];
347
- windows: boolean[];
348
- radio: boolean;
349
- }[];
350
- };
351
- }>;
352
- 400: z.ZodUnion<[z.ZodObject<{
353
- name: z.ZodLiteral<"ZodError">;
354
- issues: z.ZodArray<z.ZodObject<{
355
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
356
- message: z.ZodOptional<z.ZodString>;
357
- code: z.ZodNativeEnum<{
358
- invalid_type: "invalid_type";
359
- invalid_literal: "invalid_literal";
360
- custom: "custom";
361
- invalid_union: "invalid_union";
362
- invalid_union_discriminator: "invalid_union_discriminator";
363
- invalid_enum_value: "invalid_enum_value";
364
- unrecognized_keys: "unrecognized_keys";
365
- invalid_arguments: "invalid_arguments";
366
- invalid_return_type: "invalid_return_type";
367
- invalid_date: "invalid_date";
368
- invalid_string: "invalid_string";
369
- too_small: "too_small";
370
- too_big: "too_big";
371
- invalid_intersection_types: "invalid_intersection_types";
372
- not_multiple_of: "not_multiple_of";
373
- not_finite: "not_finite";
374
- }>;
375
- }, "strip", z.ZodAny, z.objectOutputType<{
376
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
377
- message: z.ZodOptional<z.ZodString>;
378
- code: z.ZodNativeEnum<{
379
- invalid_type: "invalid_type";
380
- invalid_literal: "invalid_literal";
381
- custom: "custom";
382
- invalid_union: "invalid_union";
383
- invalid_union_discriminator: "invalid_union_discriminator";
384
- invalid_enum_value: "invalid_enum_value";
385
- unrecognized_keys: "unrecognized_keys";
386
- invalid_arguments: "invalid_arguments";
387
- invalid_return_type: "invalid_return_type";
388
- invalid_date: "invalid_date";
389
- invalid_string: "invalid_string";
390
- too_small: "too_small";
391
- too_big: "too_big";
392
- invalid_intersection_types: "invalid_intersection_types";
393
- not_multiple_of: "not_multiple_of";
394
- not_finite: "not_finite";
395
- }>;
396
- }, z.ZodAny, "strip">, z.objectInputType<{
397
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
398
- message: z.ZodOptional<z.ZodString>;
399
- code: z.ZodNativeEnum<{
400
- invalid_type: "invalid_type";
401
- invalid_literal: "invalid_literal";
402
- custom: "custom";
403
- invalid_union: "invalid_union";
404
- invalid_union_discriminator: "invalid_union_discriminator";
405
- invalid_enum_value: "invalid_enum_value";
406
- unrecognized_keys: "unrecognized_keys";
407
- invalid_arguments: "invalid_arguments";
408
- invalid_return_type: "invalid_return_type";
409
- invalid_date: "invalid_date";
410
- invalid_string: "invalid_string";
411
- too_small: "too_small";
412
- too_big: "too_big";
413
- invalid_intersection_types: "invalid_intersection_types";
414
- not_multiple_of: "not_multiple_of";
415
- not_finite: "not_finite";
416
- }>;
417
- }, z.ZodAny, "strip">>, "many">;
418
- }, "strip", z.ZodTypeAny, {
419
- name: "ZodError";
420
- issues: z.objectOutputType<{
421
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
422
- message: z.ZodOptional<z.ZodString>;
423
- code: z.ZodNativeEnum<{
424
- invalid_type: "invalid_type";
425
- invalid_literal: "invalid_literal";
426
- custom: "custom";
427
- invalid_union: "invalid_union";
428
- invalid_union_discriminator: "invalid_union_discriminator";
429
- invalid_enum_value: "invalid_enum_value";
430
- unrecognized_keys: "unrecognized_keys";
431
- invalid_arguments: "invalid_arguments";
432
- invalid_return_type: "invalid_return_type";
433
- invalid_date: "invalid_date";
434
- invalid_string: "invalid_string";
435
- too_small: "too_small";
436
- too_big: "too_big";
437
- invalid_intersection_types: "invalid_intersection_types";
438
- not_multiple_of: "not_multiple_of";
439
- not_finite: "not_finite";
440
- }>;
441
- }, z.ZodAny, "strip">[];
442
- }, {
443
- name: "ZodError";
444
- issues: z.objectInputType<{
445
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
446
- message: z.ZodOptional<z.ZodString>;
447
- code: z.ZodNativeEnum<{
448
- invalid_type: "invalid_type";
449
- invalid_literal: "invalid_literal";
450
- custom: "custom";
451
- invalid_union: "invalid_union";
452
- invalid_union_discriminator: "invalid_union_discriminator";
453
- invalid_enum_value: "invalid_enum_value";
454
- unrecognized_keys: "unrecognized_keys";
455
- invalid_arguments: "invalid_arguments";
456
- invalid_return_type: "invalid_return_type";
457
- invalid_date: "invalid_date";
458
- invalid_string: "invalid_string";
459
- too_small: "too_small";
460
- too_big: "too_big";
461
- invalid_intersection_types: "invalid_intersection_types";
462
- not_multiple_of: "not_multiple_of";
463
- not_finite: "not_finite";
464
- }>;
465
- }, z.ZodAny, "strip">[];
466
- }>, z.ZodObject<{
467
- code: z.ZodType<"INVALID_STREAM_ID", z.ZodTypeDef, "INVALID_STREAM_ID">;
468
- error: z.ZodType<"The provided stream ID is invalid", z.ZodTypeDef, "The provided stream ID is invalid">;
469
- name: z.ZodLiteral<"APIError">;
470
- }, "strip", z.ZodTypeAny, {
471
- code: "INVALID_STREAM_ID";
472
- error: "The provided stream ID is invalid";
473
- name: "APIError";
474
- }, {
475
- code: "INVALID_STREAM_ID";
476
- error: "The provided stream ID is invalid";
477
- name: "APIError";
478
- }>]>;
479
- 500: z.ZodObject<{
480
- code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
481
- error: z.ZodType<string, z.ZodTypeDef, string>;
482
- name: z.ZodLiteral<"APIError">;
483
- }, "strip", z.ZodTypeAny, {
484
- code: "INTERNAL_SERVER_ERROR";
485
- error: string;
486
- name: "APIError";
487
- }, {
488
- code: "INTERNAL_SERVER_ERROR";
489
- error: string;
490
- name: "APIError";
491
- }>;
492
- };
493
- };
494
- play: {
495
- description: "Play a media stream";
496
- method: "POST";
497
- body: z.ZodUndefined;
498
- path: "/media-stream/play/:streamId";
499
- responses: {
500
- 404: z.ZodObject<{
501
- code: z.ZodType<"STREAM_NOT_FOUND", z.ZodTypeDef, "STREAM_NOT_FOUND">;
502
- error: z.ZodType<"The requested stream was not found", z.ZodTypeDef, "The requested stream was not found">;
503
- name: z.ZodLiteral<"APIError">;
504
- }, "strip", z.ZodTypeAny, {
505
- code: "STREAM_NOT_FOUND";
506
- error: "The requested stream was not found";
507
- name: "APIError";
508
- }, {
509
- code: "STREAM_NOT_FOUND";
510
- error: "The requested stream was not found";
511
- name: "APIError";
512
- }>;
513
- 500: z.ZodObject<{
514
- code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
515
- error: z.ZodType<string, z.ZodTypeDef, string>;
516
- name: z.ZodLiteral<"APIError">;
517
- }, "strip", z.ZodTypeAny, {
518
- code: "INTERNAL_SERVER_ERROR";
519
- error: string;
520
- name: "APIError";
521
- }, {
522
- code: "INTERNAL_SERVER_ERROR";
523
- error: string;
524
- name: "APIError";
525
- }>;
526
- 401: z.ZodObject<{
527
- code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
528
- error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
529
- name: z.ZodLiteral<"APIError">;
530
- }, "strip", z.ZodTypeAny, {
531
- code: "UNAUTHORIZED";
532
- error: "Unauthorized";
533
- name: "APIError";
534
- }, {
535
- code: "UNAUTHORIZED";
536
- error: "Unauthorized";
537
- name: "APIError";
538
- }>;
539
- 403: z.ZodObject<{
540
- code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
541
- error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
542
- name: z.ZodLiteral<"APIError">;
543
- }, "strip", z.ZodTypeAny, {
544
- code: "FORBIDDEN";
545
- error: "Forbidden";
546
- name: "APIError";
547
- }, {
548
- code: "FORBIDDEN";
549
- error: "Forbidden";
550
- name: "APIError";
551
- }>;
552
- 200: typeof import("@ts-rest/core").ContractNoBody;
553
- 400: z.ZodUnion<[z.ZodObject<{
554
- name: z.ZodLiteral<"ZodError">;
555
- issues: z.ZodArray<z.ZodObject<{
556
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
557
- message: z.ZodOptional<z.ZodString>;
558
- code: z.ZodNativeEnum<{
559
- invalid_type: "invalid_type";
560
- invalid_literal: "invalid_literal";
561
- custom: "custom";
562
- invalid_union: "invalid_union";
563
- invalid_union_discriminator: "invalid_union_discriminator";
564
- invalid_enum_value: "invalid_enum_value";
565
- unrecognized_keys: "unrecognized_keys";
566
- invalid_arguments: "invalid_arguments";
567
- invalid_return_type: "invalid_return_type";
568
- invalid_date: "invalid_date";
569
- invalid_string: "invalid_string";
570
- too_small: "too_small";
571
- too_big: "too_big";
572
- invalid_intersection_types: "invalid_intersection_types";
573
- not_multiple_of: "not_multiple_of";
574
- not_finite: "not_finite";
575
- }>;
576
- }, "strip", z.ZodAny, z.objectOutputType<{
577
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
578
- message: z.ZodOptional<z.ZodString>;
579
- code: z.ZodNativeEnum<{
580
- invalid_type: "invalid_type";
581
- invalid_literal: "invalid_literal";
582
- custom: "custom";
583
- invalid_union: "invalid_union";
584
- invalid_union_discriminator: "invalid_union_discriminator";
585
- invalid_enum_value: "invalid_enum_value";
586
- unrecognized_keys: "unrecognized_keys";
587
- invalid_arguments: "invalid_arguments";
588
- invalid_return_type: "invalid_return_type";
589
- invalid_date: "invalid_date";
590
- invalid_string: "invalid_string";
591
- too_small: "too_small";
592
- too_big: "too_big";
593
- invalid_intersection_types: "invalid_intersection_types";
594
- not_multiple_of: "not_multiple_of";
595
- not_finite: "not_finite";
596
- }>;
597
- }, z.ZodAny, "strip">, z.objectInputType<{
598
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
599
- message: z.ZodOptional<z.ZodString>;
600
- code: z.ZodNativeEnum<{
601
- invalid_type: "invalid_type";
602
- invalid_literal: "invalid_literal";
603
- custom: "custom";
604
- invalid_union: "invalid_union";
605
- invalid_union_discriminator: "invalid_union_discriminator";
606
- invalid_enum_value: "invalid_enum_value";
607
- unrecognized_keys: "unrecognized_keys";
608
- invalid_arguments: "invalid_arguments";
609
- invalid_return_type: "invalid_return_type";
610
- invalid_date: "invalid_date";
611
- invalid_string: "invalid_string";
612
- too_small: "too_small";
613
- too_big: "too_big";
614
- invalid_intersection_types: "invalid_intersection_types";
615
- not_multiple_of: "not_multiple_of";
616
- not_finite: "not_finite";
617
- }>;
618
- }, z.ZodAny, "strip">>, "many">;
619
- }, "strip", z.ZodTypeAny, {
620
- name: "ZodError";
621
- issues: z.objectOutputType<{
622
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
623
- message: z.ZodOptional<z.ZodString>;
624
- code: z.ZodNativeEnum<{
625
- invalid_type: "invalid_type";
626
- invalid_literal: "invalid_literal";
627
- custom: "custom";
628
- invalid_union: "invalid_union";
629
- invalid_union_discriminator: "invalid_union_discriminator";
630
- invalid_enum_value: "invalid_enum_value";
631
- unrecognized_keys: "unrecognized_keys";
632
- invalid_arguments: "invalid_arguments";
633
- invalid_return_type: "invalid_return_type";
634
- invalid_date: "invalid_date";
635
- invalid_string: "invalid_string";
636
- too_small: "too_small";
637
- too_big: "too_big";
638
- invalid_intersection_types: "invalid_intersection_types";
639
- not_multiple_of: "not_multiple_of";
640
- not_finite: "not_finite";
641
- }>;
642
- }, z.ZodAny, "strip">[];
643
- }, {
644
- name: "ZodError";
645
- issues: z.objectInputType<{
646
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
647
- message: z.ZodOptional<z.ZodString>;
648
- code: z.ZodNativeEnum<{
649
- invalid_type: "invalid_type";
650
- invalid_literal: "invalid_literal";
651
- custom: "custom";
652
- invalid_union: "invalid_union";
653
- invalid_union_discriminator: "invalid_union_discriminator";
654
- invalid_enum_value: "invalid_enum_value";
655
- unrecognized_keys: "unrecognized_keys";
656
- invalid_arguments: "invalid_arguments";
657
- invalid_return_type: "invalid_return_type";
658
- invalid_date: "invalid_date";
659
- invalid_string: "invalid_string";
660
- too_small: "too_small";
661
- too_big: "too_big";
662
- invalid_intersection_types: "invalid_intersection_types";
663
- not_multiple_of: "not_multiple_of";
664
- not_finite: "not_finite";
665
- }>;
666
- }, z.ZodAny, "strip">[];
667
- }>, z.ZodObject<{
668
- code: z.ZodType<"INVALID_STREAM_ID", z.ZodTypeDef, "INVALID_STREAM_ID">;
669
- error: z.ZodType<"The provided stream ID is invalid", z.ZodTypeDef, "The provided stream ID is invalid">;
670
- name: z.ZodLiteral<"APIError">;
671
- }, "strip", z.ZodTypeAny, {
672
- code: "INVALID_STREAM_ID";
673
- error: "The provided stream ID is invalid";
674
- name: "APIError";
675
- }, {
676
- code: "INVALID_STREAM_ID";
677
- error: "The provided stream ID is invalid";
678
- name: "APIError";
679
- }>]>;
680
- };
681
- };
682
- pause: {
683
- description: "Pause a media stream";
684
- method: "POST";
685
- body: z.ZodUndefined;
686
- path: "/media-stream/pause/:streamId";
687
- responses: {
688
- 404: z.ZodObject<{
689
- code: z.ZodType<"STREAM_NOT_FOUND", z.ZodTypeDef, "STREAM_NOT_FOUND">;
690
- error: z.ZodType<"The requested stream was not found", z.ZodTypeDef, "The requested stream was not found">;
691
- name: z.ZodLiteral<"APIError">;
692
- }, "strip", z.ZodTypeAny, {
693
- code: "STREAM_NOT_FOUND";
694
- error: "The requested stream was not found";
695
- name: "APIError";
696
- }, {
697
- code: "STREAM_NOT_FOUND";
698
- error: "The requested stream was not found";
699
- name: "APIError";
700
- }>;
701
- 500: z.ZodObject<{
702
- code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
703
- error: z.ZodType<string, z.ZodTypeDef, string>;
704
- name: z.ZodLiteral<"APIError">;
705
- }, "strip", z.ZodTypeAny, {
706
- code: "INTERNAL_SERVER_ERROR";
707
- error: string;
708
- name: "APIError";
709
- }, {
710
- code: "INTERNAL_SERVER_ERROR";
711
- error: string;
712
- name: "APIError";
713
- }>;
714
- 401: z.ZodObject<{
715
- code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
716
- error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
717
- name: z.ZodLiteral<"APIError">;
718
- }, "strip", z.ZodTypeAny, {
719
- code: "UNAUTHORIZED";
720
- error: "Unauthorized";
721
- name: "APIError";
722
- }, {
723
- code: "UNAUTHORIZED";
724
- error: "Unauthorized";
725
- name: "APIError";
726
- }>;
727
- 403: z.ZodObject<{
728
- code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
729
- error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
730
- name: z.ZodLiteral<"APIError">;
731
- }, "strip", z.ZodTypeAny, {
732
- code: "FORBIDDEN";
733
- error: "Forbidden";
734
- name: "APIError";
735
- }, {
736
- code: "FORBIDDEN";
737
- error: "Forbidden";
738
- name: "APIError";
739
- }>;
740
- 200: typeof import("@ts-rest/core").ContractNoBody;
741
- 400: z.ZodUnion<[z.ZodObject<{
742
- name: z.ZodLiteral<"ZodError">;
743
- issues: z.ZodArray<z.ZodObject<{
744
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
745
- message: z.ZodOptional<z.ZodString>;
746
- code: z.ZodNativeEnum<{
747
- invalid_type: "invalid_type";
748
- invalid_literal: "invalid_literal";
749
- custom: "custom";
750
- invalid_union: "invalid_union";
751
- invalid_union_discriminator: "invalid_union_discriminator";
752
- invalid_enum_value: "invalid_enum_value";
753
- unrecognized_keys: "unrecognized_keys";
754
- invalid_arguments: "invalid_arguments";
755
- invalid_return_type: "invalid_return_type";
756
- invalid_date: "invalid_date";
757
- invalid_string: "invalid_string";
758
- too_small: "too_small";
759
- too_big: "too_big";
760
- invalid_intersection_types: "invalid_intersection_types";
761
- not_multiple_of: "not_multiple_of";
762
- not_finite: "not_finite";
763
- }>;
764
- }, "strip", z.ZodAny, z.objectOutputType<{
765
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
766
- message: z.ZodOptional<z.ZodString>;
767
- code: z.ZodNativeEnum<{
768
- invalid_type: "invalid_type";
769
- invalid_literal: "invalid_literal";
770
- custom: "custom";
771
- invalid_union: "invalid_union";
772
- invalid_union_discriminator: "invalid_union_discriminator";
773
- invalid_enum_value: "invalid_enum_value";
774
- unrecognized_keys: "unrecognized_keys";
775
- invalid_arguments: "invalid_arguments";
776
- invalid_return_type: "invalid_return_type";
777
- invalid_date: "invalid_date";
778
- invalid_string: "invalid_string";
779
- too_small: "too_small";
780
- too_big: "too_big";
781
- invalid_intersection_types: "invalid_intersection_types";
782
- not_multiple_of: "not_multiple_of";
783
- not_finite: "not_finite";
784
- }>;
785
- }, z.ZodAny, "strip">, z.objectInputType<{
786
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
787
- message: z.ZodOptional<z.ZodString>;
788
- code: z.ZodNativeEnum<{
789
- invalid_type: "invalid_type";
790
- invalid_literal: "invalid_literal";
791
- custom: "custom";
792
- invalid_union: "invalid_union";
793
- invalid_union_discriminator: "invalid_union_discriminator";
794
- invalid_enum_value: "invalid_enum_value";
795
- unrecognized_keys: "unrecognized_keys";
796
- invalid_arguments: "invalid_arguments";
797
- invalid_return_type: "invalid_return_type";
798
- invalid_date: "invalid_date";
799
- invalid_string: "invalid_string";
800
- too_small: "too_small";
801
- too_big: "too_big";
802
- invalid_intersection_types: "invalid_intersection_types";
803
- not_multiple_of: "not_multiple_of";
804
- not_finite: "not_finite";
805
- }>;
806
- }, z.ZodAny, "strip">>, "many">;
807
- }, "strip", z.ZodTypeAny, {
808
- name: "ZodError";
809
- issues: z.objectOutputType<{
810
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
811
- message: z.ZodOptional<z.ZodString>;
812
- code: z.ZodNativeEnum<{
813
- invalid_type: "invalid_type";
814
- invalid_literal: "invalid_literal";
815
- custom: "custom";
816
- invalid_union: "invalid_union";
817
- invalid_union_discriminator: "invalid_union_discriminator";
818
- invalid_enum_value: "invalid_enum_value";
819
- unrecognized_keys: "unrecognized_keys";
820
- invalid_arguments: "invalid_arguments";
821
- invalid_return_type: "invalid_return_type";
822
- invalid_date: "invalid_date";
823
- invalid_string: "invalid_string";
824
- too_small: "too_small";
825
- too_big: "too_big";
826
- invalid_intersection_types: "invalid_intersection_types";
827
- not_multiple_of: "not_multiple_of";
828
- not_finite: "not_finite";
829
- }>;
830
- }, z.ZodAny, "strip">[];
831
- }, {
832
- name: "ZodError";
833
- issues: z.objectInputType<{
834
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
835
- message: z.ZodOptional<z.ZodString>;
836
- code: z.ZodNativeEnum<{
837
- invalid_type: "invalid_type";
838
- invalid_literal: "invalid_literal";
839
- custom: "custom";
840
- invalid_union: "invalid_union";
841
- invalid_union_discriminator: "invalid_union_discriminator";
842
- invalid_enum_value: "invalid_enum_value";
843
- unrecognized_keys: "unrecognized_keys";
844
- invalid_arguments: "invalid_arguments";
845
- invalid_return_type: "invalid_return_type";
846
- invalid_date: "invalid_date";
847
- invalid_string: "invalid_string";
848
- too_small: "too_small";
849
- too_big: "too_big";
850
- invalid_intersection_types: "invalid_intersection_types";
851
- not_multiple_of: "not_multiple_of";
852
- not_finite: "not_finite";
853
- }>;
854
- }, z.ZodAny, "strip">[];
855
- }>, z.ZodObject<{
856
- code: z.ZodType<"INVALID_STREAM_ID", z.ZodTypeDef, "INVALID_STREAM_ID">;
857
- error: z.ZodType<"The provided stream ID is invalid", z.ZodTypeDef, "The provided stream ID is invalid">;
858
- name: z.ZodLiteral<"APIError">;
859
- }, "strip", z.ZodTypeAny, {
860
- code: "INVALID_STREAM_ID";
861
- error: "The provided stream ID is invalid";
862
- name: "APIError";
863
- }, {
864
- code: "INVALID_STREAM_ID";
865
- error: "The provided stream ID is invalid";
866
- name: "APIError";
867
- }>]>;
868
- };
869
- };
870
- seek: {
871
- query: z.ZodObject<{
872
- time: z.ZodNumber;
873
- }, "strip", z.ZodTypeAny, {
874
- time: number;
875
- }, {
876
- time: number;
877
- }>;
878
- description: "Seek a media stream";
879
- method: "POST";
880
- body: z.ZodUndefined;
881
- path: "/media-stream/seek/:streamId";
882
- responses: {
883
- 404: z.ZodObject<{
884
- code: z.ZodType<"STREAM_NOT_FOUND", z.ZodTypeDef, "STREAM_NOT_FOUND">;
885
- error: z.ZodType<"The requested stream was not found", z.ZodTypeDef, "The requested stream was not found">;
886
- name: z.ZodLiteral<"APIError">;
887
- }, "strip", z.ZodTypeAny, {
888
- code: "STREAM_NOT_FOUND";
889
- error: "The requested stream was not found";
890
- name: "APIError";
891
- }, {
892
- code: "STREAM_NOT_FOUND";
893
- error: "The requested stream was not found";
894
- name: "APIError";
895
- }>;
896
- 500: z.ZodObject<{
897
- code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
898
- error: z.ZodType<string, z.ZodTypeDef, string>;
899
- name: z.ZodLiteral<"APIError">;
900
- }, "strip", z.ZodTypeAny, {
901
- code: "INTERNAL_SERVER_ERROR";
902
- error: string;
903
- name: "APIError";
904
- }, {
905
- code: "INTERNAL_SERVER_ERROR";
906
- error: string;
907
- name: "APIError";
908
- }>;
909
- 401: z.ZodObject<{
910
- code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
911
- error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
912
- name: z.ZodLiteral<"APIError">;
913
- }, "strip", z.ZodTypeAny, {
914
- code: "UNAUTHORIZED";
915
- error: "Unauthorized";
916
- name: "APIError";
917
- }, {
918
- code: "UNAUTHORIZED";
919
- error: "Unauthorized";
920
- name: "APIError";
921
- }>;
922
- 403: z.ZodObject<{
923
- code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
924
- error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
925
- name: z.ZodLiteral<"APIError">;
926
- }, "strip", z.ZodTypeAny, {
927
- code: "FORBIDDEN";
928
- error: "Forbidden";
929
- name: "APIError";
930
- }, {
931
- code: "FORBIDDEN";
932
- error: "Forbidden";
933
- name: "APIError";
934
- }>;
935
- 200: typeof import("@ts-rest/core").ContractNoBody;
936
- 400: z.ZodUnion<[z.ZodObject<{
937
- name: z.ZodLiteral<"ZodError">;
938
- issues: z.ZodArray<z.ZodObject<{
939
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
940
- message: z.ZodOptional<z.ZodString>;
941
- code: z.ZodNativeEnum<{
942
- invalid_type: "invalid_type";
943
- invalid_literal: "invalid_literal";
944
- custom: "custom";
945
- invalid_union: "invalid_union";
946
- invalid_union_discriminator: "invalid_union_discriminator";
947
- invalid_enum_value: "invalid_enum_value";
948
- unrecognized_keys: "unrecognized_keys";
949
- invalid_arguments: "invalid_arguments";
950
- invalid_return_type: "invalid_return_type";
951
- invalid_date: "invalid_date";
952
- invalid_string: "invalid_string";
953
- too_small: "too_small";
954
- too_big: "too_big";
955
- invalid_intersection_types: "invalid_intersection_types";
956
- not_multiple_of: "not_multiple_of";
957
- not_finite: "not_finite";
958
- }>;
959
- }, "strip", z.ZodAny, z.objectOutputType<{
960
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
961
- message: z.ZodOptional<z.ZodString>;
962
- code: z.ZodNativeEnum<{
963
- invalid_type: "invalid_type";
964
- invalid_literal: "invalid_literal";
965
- custom: "custom";
966
- invalid_union: "invalid_union";
967
- invalid_union_discriminator: "invalid_union_discriminator";
968
- invalid_enum_value: "invalid_enum_value";
969
- unrecognized_keys: "unrecognized_keys";
970
- invalid_arguments: "invalid_arguments";
971
- invalid_return_type: "invalid_return_type";
972
- invalid_date: "invalid_date";
973
- invalid_string: "invalid_string";
974
- too_small: "too_small";
975
- too_big: "too_big";
976
- invalid_intersection_types: "invalid_intersection_types";
977
- not_multiple_of: "not_multiple_of";
978
- not_finite: "not_finite";
979
- }>;
980
- }, z.ZodAny, "strip">, z.objectInputType<{
981
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
982
- message: z.ZodOptional<z.ZodString>;
983
- code: z.ZodNativeEnum<{
984
- invalid_type: "invalid_type";
985
- invalid_literal: "invalid_literal";
986
- custom: "custom";
987
- invalid_union: "invalid_union";
988
- invalid_union_discriminator: "invalid_union_discriminator";
989
- invalid_enum_value: "invalid_enum_value";
990
- unrecognized_keys: "unrecognized_keys";
991
- invalid_arguments: "invalid_arguments";
992
- invalid_return_type: "invalid_return_type";
993
- invalid_date: "invalid_date";
994
- invalid_string: "invalid_string";
995
- too_small: "too_small";
996
- too_big: "too_big";
997
- invalid_intersection_types: "invalid_intersection_types";
998
- not_multiple_of: "not_multiple_of";
999
- not_finite: "not_finite";
1000
- }>;
1001
- }, z.ZodAny, "strip">>, "many">;
1002
- }, "strip", z.ZodTypeAny, {
1003
- name: "ZodError";
1004
- issues: z.objectOutputType<{
1005
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1006
- message: z.ZodOptional<z.ZodString>;
1007
- code: z.ZodNativeEnum<{
1008
- invalid_type: "invalid_type";
1009
- invalid_literal: "invalid_literal";
1010
- custom: "custom";
1011
- invalid_union: "invalid_union";
1012
- invalid_union_discriminator: "invalid_union_discriminator";
1013
- invalid_enum_value: "invalid_enum_value";
1014
- unrecognized_keys: "unrecognized_keys";
1015
- invalid_arguments: "invalid_arguments";
1016
- invalid_return_type: "invalid_return_type";
1017
- invalid_date: "invalid_date";
1018
- invalid_string: "invalid_string";
1019
- too_small: "too_small";
1020
- too_big: "too_big";
1021
- invalid_intersection_types: "invalid_intersection_types";
1022
- not_multiple_of: "not_multiple_of";
1023
- not_finite: "not_finite";
1024
- }>;
1025
- }, z.ZodAny, "strip">[];
1026
- }, {
1027
- name: "ZodError";
1028
- issues: z.objectInputType<{
1029
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1030
- message: z.ZodOptional<z.ZodString>;
1031
- code: z.ZodNativeEnum<{
1032
- invalid_type: "invalid_type";
1033
- invalid_literal: "invalid_literal";
1034
- custom: "custom";
1035
- invalid_union: "invalid_union";
1036
- invalid_union_discriminator: "invalid_union_discriminator";
1037
- invalid_enum_value: "invalid_enum_value";
1038
- unrecognized_keys: "unrecognized_keys";
1039
- invalid_arguments: "invalid_arguments";
1040
- invalid_return_type: "invalid_return_type";
1041
- invalid_date: "invalid_date";
1042
- invalid_string: "invalid_string";
1043
- too_small: "too_small";
1044
- too_big: "too_big";
1045
- invalid_intersection_types: "invalid_intersection_types";
1046
- not_multiple_of: "not_multiple_of";
1047
- not_finite: "not_finite";
1048
- }>;
1049
- }, z.ZodAny, "strip">[];
1050
- }>, z.ZodObject<{
1051
- code: z.ZodType<"INVALID_STREAM_ID", z.ZodTypeDef, "INVALID_STREAM_ID">;
1052
- error: z.ZodType<"The provided stream ID is invalid", z.ZodTypeDef, "The provided stream ID is invalid">;
1053
- name: z.ZodLiteral<"APIError">;
1054
- }, "strip", z.ZodTypeAny, {
1055
- code: "INVALID_STREAM_ID";
1056
- error: "The provided stream ID is invalid";
1057
- name: "APIError";
1058
- }, {
1059
- code: "INVALID_STREAM_ID";
1060
- error: "The provided stream ID is invalid";
1061
- name: "APIError";
1062
- }>]>;
1063
- };
1064
- };
1065
- scene: {
1066
- description: "Change the scene of a media stream, listeners get the new scene through the mediaStreamScene socket event";
1067
- method: "POST";
1068
- body: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1069
- type: z.ZodLiteral<"addSpeaker">;
1070
- speaker: z.ZodObject<Omit<{
1071
- id: z.ZodString;
1072
- x: z.ZodNumber;
1073
- y: z.ZodNumber;
1074
- z: z.ZodNumber;
1075
- yaw: z.ZodNumber;
1076
- pitch: z.ZodNumber;
1077
- directional: z.ZodBoolean;
1078
- }, "id">, "strip", z.ZodTypeAny, {
1079
- x: number;
1080
- y: number;
1081
- z: number;
1082
- yaw: number;
1083
- pitch: number;
1084
- directional: boolean;
1085
- }, {
1086
- x: number;
1087
- y: number;
1088
- z: number;
1089
- yaw: number;
1090
- pitch: number;
1091
- directional: boolean;
1092
- }>;
1093
- }, "strip", z.ZodTypeAny, {
1094
- type: "addSpeaker";
1095
- speaker: {
1096
- x: number;
1097
- y: number;
1098
- z: number;
1099
- yaw: number;
1100
- pitch: number;
1101
- directional: boolean;
1102
- };
1103
- }, {
1104
- type: "addSpeaker";
1105
- speaker: {
1106
- x: number;
1107
- y: number;
1108
- z: number;
1109
- yaw: number;
1110
- pitch: number;
1111
- directional: boolean;
1112
- };
1113
- }>, z.ZodObject<{
1114
- type: z.ZodLiteral<"addCar">;
1115
- car: z.ZodObject<Pick<{
1116
- id: z.ZodString;
1117
- x: z.ZodNumber;
1118
- z: z.ZodNumber;
1119
- yaw: z.ZodNumber;
1120
- doors: z.ZodArray<z.ZodBoolean, "many">;
1121
- windows: z.ZodArray<z.ZodBoolean, "many">;
1122
- radio: z.ZodBoolean;
1123
- }, "x" | "z" | "yaw">, "strip", z.ZodTypeAny, {
1124
- x: number;
1125
- z: number;
1126
- yaw: number;
1127
- }, {
1128
- x: number;
1129
- z: number;
1130
- yaw: number;
1131
- }>;
1132
- }, "strip", z.ZodTypeAny, {
1133
- type: "addCar";
1134
- car: {
1135
- x: number;
1136
- z: number;
1137
- yaw: number;
1138
- };
1139
- }, {
1140
- type: "addCar";
1141
- car: {
1142
- x: number;
1143
- z: number;
1144
- yaw: number;
1145
- };
1146
- }>, z.ZodObject<{
1147
- type: z.ZodLiteral<"remove">;
1148
- id: z.ZodString;
1149
- }, "strip", z.ZodTypeAny, {
1150
- type: "remove";
1151
- id: string;
1152
- }, {
1153
- type: "remove";
1154
- id: string;
1155
- }>, z.ZodObject<{
1156
- type: z.ZodLiteral<"carDoor">;
1157
- id: z.ZodString;
1158
- index: z.ZodNumber;
1159
- open: z.ZodBoolean;
1160
- }, "strip", z.ZodTypeAny, {
1161
- type: "carDoor";
1162
- id: string;
1163
- index: number;
1164
- open: boolean;
1165
- }, {
1166
- type: "carDoor";
1167
- id: string;
1168
- index: number;
1169
- open: boolean;
1170
- }>, z.ZodObject<{
1171
- type: z.ZodLiteral<"carWindow">;
1172
- id: z.ZodString;
1173
- index: z.ZodNumber;
1174
- open: z.ZodBoolean;
1175
- }, "strip", z.ZodTypeAny, {
1176
- type: "carWindow";
1177
- id: string;
1178
- index: number;
1179
- open: boolean;
1180
- }, {
1181
- type: "carWindow";
1182
- id: string;
1183
- index: number;
1184
- open: boolean;
1185
- }>, z.ZodObject<{
1186
- type: z.ZodLiteral<"carRadio">;
1187
- id: z.ZodString;
1188
- on: z.ZodBoolean;
1189
- }, "strip", z.ZodTypeAny, {
1190
- type: "carRadio";
1191
- id: string;
1192
- on: boolean;
1193
- }, {
1194
- type: "carRadio";
1195
- id: string;
1196
- on: boolean;
1197
- }>, z.ZodObject<{
1198
- type: z.ZodLiteral<"reset">;
1199
- }, "strip", z.ZodTypeAny, {
1200
- type: "reset";
1201
- }, {
1202
- type: "reset";
1203
- }>]>;
1204
- path: "/media-stream/scene/:streamId";
1205
- responses: {
1206
- 404: z.ZodObject<{
1207
- code: z.ZodType<"STREAM_NOT_FOUND", z.ZodTypeDef, "STREAM_NOT_FOUND">;
1208
- error: z.ZodType<"The requested stream was not found", z.ZodTypeDef, "The requested stream was not found">;
1209
- name: z.ZodLiteral<"APIError">;
1210
- }, "strip", z.ZodTypeAny, {
1211
- code: "STREAM_NOT_FOUND";
1212
- error: "The requested stream was not found";
1213
- name: "APIError";
1214
- }, {
1215
- code: "STREAM_NOT_FOUND";
1216
- error: "The requested stream was not found";
1217
- name: "APIError";
1218
- }>;
1219
- 500: z.ZodObject<{
1220
- code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1221
- error: z.ZodType<string, z.ZodTypeDef, string>;
1222
- name: z.ZodLiteral<"APIError">;
1223
- }, "strip", z.ZodTypeAny, {
1224
- code: "INTERNAL_SERVER_ERROR";
1225
- error: string;
1226
- name: "APIError";
1227
- }, {
1228
- code: "INTERNAL_SERVER_ERROR";
1229
- error: string;
1230
- name: "APIError";
1231
- }>;
1232
- 401: z.ZodObject<{
1233
- code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
1234
- error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
1235
- name: z.ZodLiteral<"APIError">;
1236
- }, "strip", z.ZodTypeAny, {
1237
- code: "UNAUTHORIZED";
1238
- error: "Unauthorized";
1239
- name: "APIError";
1240
- }, {
1241
- code: "UNAUTHORIZED";
1242
- error: "Unauthorized";
1243
- name: "APIError";
1244
- }>;
1245
- 403: z.ZodObject<{
1246
- code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
1247
- error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
1248
- name: z.ZodLiteral<"APIError">;
1249
- }, "strip", z.ZodTypeAny, {
1250
- code: "FORBIDDEN";
1251
- error: "Forbidden";
1252
- name: "APIError";
1253
- }, {
1254
- code: "FORBIDDEN";
1255
- error: "Forbidden";
1256
- name: "APIError";
1257
- }>;
1258
- 200: typeof import("@ts-rest/core").ContractNoBody;
1259
- 400: z.ZodUnion<[z.ZodObject<{
1260
- name: z.ZodLiteral<"ZodError">;
1261
- issues: z.ZodArray<z.ZodObject<{
1262
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1263
- message: z.ZodOptional<z.ZodString>;
1264
- code: z.ZodNativeEnum<{
1265
- invalid_type: "invalid_type";
1266
- invalid_literal: "invalid_literal";
1267
- custom: "custom";
1268
- invalid_union: "invalid_union";
1269
- invalid_union_discriminator: "invalid_union_discriminator";
1270
- invalid_enum_value: "invalid_enum_value";
1271
- unrecognized_keys: "unrecognized_keys";
1272
- invalid_arguments: "invalid_arguments";
1273
- invalid_return_type: "invalid_return_type";
1274
- invalid_date: "invalid_date";
1275
- invalid_string: "invalid_string";
1276
- too_small: "too_small";
1277
- too_big: "too_big";
1278
- invalid_intersection_types: "invalid_intersection_types";
1279
- not_multiple_of: "not_multiple_of";
1280
- not_finite: "not_finite";
1281
- }>;
1282
- }, "strip", z.ZodAny, z.objectOutputType<{
1283
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1284
- message: z.ZodOptional<z.ZodString>;
1285
- code: z.ZodNativeEnum<{
1286
- invalid_type: "invalid_type";
1287
- invalid_literal: "invalid_literal";
1288
- custom: "custom";
1289
- invalid_union: "invalid_union";
1290
- invalid_union_discriminator: "invalid_union_discriminator";
1291
- invalid_enum_value: "invalid_enum_value";
1292
- unrecognized_keys: "unrecognized_keys";
1293
- invalid_arguments: "invalid_arguments";
1294
- invalid_return_type: "invalid_return_type";
1295
- invalid_date: "invalid_date";
1296
- invalid_string: "invalid_string";
1297
- too_small: "too_small";
1298
- too_big: "too_big";
1299
- invalid_intersection_types: "invalid_intersection_types";
1300
- not_multiple_of: "not_multiple_of";
1301
- not_finite: "not_finite";
1302
- }>;
1303
- }, z.ZodAny, "strip">, z.objectInputType<{
1304
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1305
- message: z.ZodOptional<z.ZodString>;
1306
- code: z.ZodNativeEnum<{
1307
- invalid_type: "invalid_type";
1308
- invalid_literal: "invalid_literal";
1309
- custom: "custom";
1310
- invalid_union: "invalid_union";
1311
- invalid_union_discriminator: "invalid_union_discriminator";
1312
- invalid_enum_value: "invalid_enum_value";
1313
- unrecognized_keys: "unrecognized_keys";
1314
- invalid_arguments: "invalid_arguments";
1315
- invalid_return_type: "invalid_return_type";
1316
- invalid_date: "invalid_date";
1317
- invalid_string: "invalid_string";
1318
- too_small: "too_small";
1319
- too_big: "too_big";
1320
- invalid_intersection_types: "invalid_intersection_types";
1321
- not_multiple_of: "not_multiple_of";
1322
- not_finite: "not_finite";
1323
- }>;
1324
- }, z.ZodAny, "strip">>, "many">;
1325
- }, "strip", z.ZodTypeAny, {
1326
- name: "ZodError";
1327
- issues: z.objectOutputType<{
1328
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1329
- message: z.ZodOptional<z.ZodString>;
1330
- code: z.ZodNativeEnum<{
1331
- invalid_type: "invalid_type";
1332
- invalid_literal: "invalid_literal";
1333
- custom: "custom";
1334
- invalid_union: "invalid_union";
1335
- invalid_union_discriminator: "invalid_union_discriminator";
1336
- invalid_enum_value: "invalid_enum_value";
1337
- unrecognized_keys: "unrecognized_keys";
1338
- invalid_arguments: "invalid_arguments";
1339
- invalid_return_type: "invalid_return_type";
1340
- invalid_date: "invalid_date";
1341
- invalid_string: "invalid_string";
1342
- too_small: "too_small";
1343
- too_big: "too_big";
1344
- invalid_intersection_types: "invalid_intersection_types";
1345
- not_multiple_of: "not_multiple_of";
1346
- not_finite: "not_finite";
1347
- }>;
1348
- }, z.ZodAny, "strip">[];
1349
- }, {
1350
- name: "ZodError";
1351
- issues: z.objectInputType<{
1352
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1353
- message: z.ZodOptional<z.ZodString>;
1354
- code: z.ZodNativeEnum<{
1355
- invalid_type: "invalid_type";
1356
- invalid_literal: "invalid_literal";
1357
- custom: "custom";
1358
- invalid_union: "invalid_union";
1359
- invalid_union_discriminator: "invalid_union_discriminator";
1360
- invalid_enum_value: "invalid_enum_value";
1361
- unrecognized_keys: "unrecognized_keys";
1362
- invalid_arguments: "invalid_arguments";
1363
- invalid_return_type: "invalid_return_type";
1364
- invalid_date: "invalid_date";
1365
- invalid_string: "invalid_string";
1366
- too_small: "too_small";
1367
- too_big: "too_big";
1368
- invalid_intersection_types: "invalid_intersection_types";
1369
- not_multiple_of: "not_multiple_of";
1370
- not_finite: "not_finite";
1371
- }>;
1372
- }, z.ZodAny, "strip">[];
1373
- }>, z.ZodObject<{
1374
- code: z.ZodType<"SCENE_FULL", z.ZodTypeDef, "SCENE_FULL">;
1375
- error: z.ZodType<"The scene can't have more of this object", z.ZodTypeDef, "The scene can't have more of this object">;
1376
- name: z.ZodLiteral<"APIError">;
1377
- }, "strip", z.ZodTypeAny, {
1378
- code: "SCENE_FULL";
1379
- error: "The scene can't have more of this object";
1380
- name: "APIError";
1381
- }, {
1382
- code: "SCENE_FULL";
1383
- error: "The scene can't have more of this object";
1384
- name: "APIError";
1385
- }>, z.ZodObject<{
1386
- code: z.ZodType<"SCENE_OBJECT_NOT_FOUND", z.ZodTypeDef, "SCENE_OBJECT_NOT_FOUND">;
1387
- error: z.ZodType<"The scene object was not found", z.ZodTypeDef, "The scene object was not found">;
1388
- name: z.ZodLiteral<"APIError">;
1389
- }, "strip", z.ZodTypeAny, {
1390
- code: "SCENE_OBJECT_NOT_FOUND";
1391
- error: "The scene object was not found";
1392
- name: "APIError";
1393
- }, {
1394
- code: "SCENE_OBJECT_NOT_FOUND";
1395
- error: "The scene object was not found";
1396
- name: "APIError";
1397
- }>]>;
1398
- };
1399
- };
1400
3
  stream: {
1401
- description: "Get media stream by stream ID";
4
+ description: "Audio of a room, rooms give this URL in their state while they have a stream";
1402
5
  method: "GET";
1403
6
  path: "/media-stream/stream/:streamId";
1404
7
  responses: {