@darco2903/altv-web-api 1.6.0 → 2.1.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.
@@ -0,0 +1,2200 @@
1
+ import { z } from "zod";
2
+ declare const _default: {
3
+ create: {
4
+ description: "Create a room owned by the logged in user";
5
+ method: "POST";
6
+ body: z.ZodObject<{
7
+ name: z.ZodNullable<z.ZodString>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ name: string | null;
10
+ }, {
11
+ name: string | null;
12
+ }>;
13
+ path: "/room";
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
+ 409: z.ZodObject<{
29
+ code: z.ZodType<"TOO_MANY_ROOMS", z.ZodTypeDef, "TOO_MANY_ROOMS">;
30
+ error: z.ZodType<"You can't own more rooms", z.ZodTypeDef, "You can't own more rooms">;
31
+ name: z.ZodLiteral<"APIError">;
32
+ }, "strip", z.ZodTypeAny, {
33
+ code: "TOO_MANY_ROOMS";
34
+ error: "You can't own more rooms";
35
+ name: "APIError";
36
+ }, {
37
+ code: "TOO_MANY_ROOMS";
38
+ error: "You can't own more rooms";
39
+ name: "APIError";
40
+ }>;
41
+ 401: z.ZodObject<{
42
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
43
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
44
+ name: z.ZodLiteral<"APIError">;
45
+ }, "strip", z.ZodTypeAny, {
46
+ code: "UNAUTHORIZED";
47
+ error: "Unauthorized";
48
+ name: "APIError";
49
+ }, {
50
+ code: "UNAUTHORIZED";
51
+ error: "Unauthorized";
52
+ name: "APIError";
53
+ }>;
54
+ 403: z.ZodObject<{
55
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
56
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
57
+ name: z.ZodLiteral<"APIError">;
58
+ }, "strip", z.ZodTypeAny, {
59
+ code: "FORBIDDEN";
60
+ error: "Forbidden";
61
+ name: "APIError";
62
+ }, {
63
+ code: "FORBIDDEN";
64
+ error: "Forbidden";
65
+ name: "APIError";
66
+ }>;
67
+ 200: z.ZodObject<{
68
+ roomId: z.ZodString;
69
+ }, "strip", z.ZodTypeAny, {
70
+ roomId: string;
71
+ }, {
72
+ roomId: string;
73
+ }>;
74
+ 400: z.ZodObject<{
75
+ name: z.ZodLiteral<"ZodError">;
76
+ issues: z.ZodArray<z.ZodObject<{
77
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
78
+ message: z.ZodOptional<z.ZodString>;
79
+ code: z.ZodNativeEnum<{
80
+ invalid_type: "invalid_type";
81
+ invalid_literal: "invalid_literal";
82
+ custom: "custom";
83
+ invalid_union: "invalid_union";
84
+ invalid_union_discriminator: "invalid_union_discriminator";
85
+ invalid_enum_value: "invalid_enum_value";
86
+ unrecognized_keys: "unrecognized_keys";
87
+ invalid_arguments: "invalid_arguments";
88
+ invalid_return_type: "invalid_return_type";
89
+ invalid_date: "invalid_date";
90
+ invalid_string: "invalid_string";
91
+ too_small: "too_small";
92
+ too_big: "too_big";
93
+ invalid_intersection_types: "invalid_intersection_types";
94
+ not_multiple_of: "not_multiple_of";
95
+ not_finite: "not_finite";
96
+ }>;
97
+ }, "strip", z.ZodAny, z.objectOutputType<{
98
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
99
+ message: z.ZodOptional<z.ZodString>;
100
+ code: z.ZodNativeEnum<{
101
+ invalid_type: "invalid_type";
102
+ invalid_literal: "invalid_literal";
103
+ custom: "custom";
104
+ invalid_union: "invalid_union";
105
+ invalid_union_discriminator: "invalid_union_discriminator";
106
+ invalid_enum_value: "invalid_enum_value";
107
+ unrecognized_keys: "unrecognized_keys";
108
+ invalid_arguments: "invalid_arguments";
109
+ invalid_return_type: "invalid_return_type";
110
+ invalid_date: "invalid_date";
111
+ invalid_string: "invalid_string";
112
+ too_small: "too_small";
113
+ too_big: "too_big";
114
+ invalid_intersection_types: "invalid_intersection_types";
115
+ not_multiple_of: "not_multiple_of";
116
+ not_finite: "not_finite";
117
+ }>;
118
+ }, z.ZodAny, "strip">, z.objectInputType<{
119
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
120
+ message: z.ZodOptional<z.ZodString>;
121
+ code: z.ZodNativeEnum<{
122
+ invalid_type: "invalid_type";
123
+ invalid_literal: "invalid_literal";
124
+ custom: "custom";
125
+ invalid_union: "invalid_union";
126
+ invalid_union_discriminator: "invalid_union_discriminator";
127
+ invalid_enum_value: "invalid_enum_value";
128
+ unrecognized_keys: "unrecognized_keys";
129
+ invalid_arguments: "invalid_arguments";
130
+ invalid_return_type: "invalid_return_type";
131
+ invalid_date: "invalid_date";
132
+ invalid_string: "invalid_string";
133
+ too_small: "too_small";
134
+ too_big: "too_big";
135
+ invalid_intersection_types: "invalid_intersection_types";
136
+ not_multiple_of: "not_multiple_of";
137
+ not_finite: "not_finite";
138
+ }>;
139
+ }, z.ZodAny, "strip">>, "many">;
140
+ }, "strip", z.ZodTypeAny, {
141
+ name: "ZodError";
142
+ issues: z.objectOutputType<{
143
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
144
+ message: z.ZodOptional<z.ZodString>;
145
+ code: z.ZodNativeEnum<{
146
+ invalid_type: "invalid_type";
147
+ invalid_literal: "invalid_literal";
148
+ custom: "custom";
149
+ invalid_union: "invalid_union";
150
+ invalid_union_discriminator: "invalid_union_discriminator";
151
+ invalid_enum_value: "invalid_enum_value";
152
+ unrecognized_keys: "unrecognized_keys";
153
+ invalid_arguments: "invalid_arguments";
154
+ invalid_return_type: "invalid_return_type";
155
+ invalid_date: "invalid_date";
156
+ invalid_string: "invalid_string";
157
+ too_small: "too_small";
158
+ too_big: "too_big";
159
+ invalid_intersection_types: "invalid_intersection_types";
160
+ not_multiple_of: "not_multiple_of";
161
+ not_finite: "not_finite";
162
+ }>;
163
+ }, z.ZodAny, "strip">[];
164
+ }, {
165
+ name: "ZodError";
166
+ issues: z.objectInputType<{
167
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
168
+ message: z.ZodOptional<z.ZodString>;
169
+ code: z.ZodNativeEnum<{
170
+ invalid_type: "invalid_type";
171
+ invalid_literal: "invalid_literal";
172
+ custom: "custom";
173
+ invalid_union: "invalid_union";
174
+ invalid_union_discriminator: "invalid_union_discriminator";
175
+ invalid_enum_value: "invalid_enum_value";
176
+ unrecognized_keys: "unrecognized_keys";
177
+ invalid_arguments: "invalid_arguments";
178
+ invalid_return_type: "invalid_return_type";
179
+ invalid_date: "invalid_date";
180
+ invalid_string: "invalid_string";
181
+ too_small: "too_small";
182
+ too_big: "too_big";
183
+ invalid_intersection_types: "invalid_intersection_types";
184
+ not_multiple_of: "not_multiple_of";
185
+ not_finite: "not_finite";
186
+ }>;
187
+ }, z.ZodAny, "strip">[];
188
+ }>;
189
+ };
190
+ };
191
+ list: {
192
+ description: "Rooms owned by the logged in user";
193
+ method: "GET";
194
+ path: "/room";
195
+ responses: {
196
+ 500: z.ZodObject<{
197
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
198
+ error: z.ZodType<string, z.ZodTypeDef, string>;
199
+ name: z.ZodLiteral<"APIError">;
200
+ }, "strip", z.ZodTypeAny, {
201
+ code: "INTERNAL_SERVER_ERROR";
202
+ error: string;
203
+ name: "APIError";
204
+ }, {
205
+ code: "INTERNAL_SERVER_ERROR";
206
+ error: string;
207
+ name: "APIError";
208
+ }>;
209
+ 401: z.ZodObject<{
210
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
211
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
212
+ name: z.ZodLiteral<"APIError">;
213
+ }, "strip", z.ZodTypeAny, {
214
+ code: "UNAUTHORIZED";
215
+ error: "Unauthorized";
216
+ name: "APIError";
217
+ }, {
218
+ code: "UNAUTHORIZED";
219
+ error: "Unauthorized";
220
+ name: "APIError";
221
+ }>;
222
+ 403: z.ZodObject<{
223
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
224
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
225
+ name: z.ZodLiteral<"APIError">;
226
+ }, "strip", z.ZodTypeAny, {
227
+ code: "FORBIDDEN";
228
+ error: "Forbidden";
229
+ name: "APIError";
230
+ }, {
231
+ code: "FORBIDDEN";
232
+ error: "Forbidden";
233
+ name: "APIError";
234
+ }>;
235
+ 200: z.ZodObject<{
236
+ rooms: z.ZodArray<z.ZodObject<{
237
+ roomId: z.ZodString;
238
+ name: z.ZodNullable<z.ZodString>;
239
+ track: z.ZodNullable<z.ZodObject<{
240
+ videoId: z.ZodString;
241
+ title: z.ZodString;
242
+ duration: z.ZodNumber;
243
+ }, "strip", z.ZodTypeAny, {
244
+ videoId: string;
245
+ title: string;
246
+ duration: number;
247
+ }, {
248
+ videoId: string;
249
+ title: string;
250
+ duration: number;
251
+ }>>;
252
+ paused: z.ZodBoolean;
253
+ }, "strip", z.ZodTypeAny, {
254
+ name: string | null;
255
+ roomId: string;
256
+ track: {
257
+ videoId: string;
258
+ title: string;
259
+ duration: number;
260
+ } | null;
261
+ paused: boolean;
262
+ }, {
263
+ name: string | null;
264
+ roomId: string;
265
+ track: {
266
+ videoId: string;
267
+ title: string;
268
+ duration: number;
269
+ } | null;
270
+ paused: boolean;
271
+ }>, "many">;
272
+ }, "strip", z.ZodTypeAny, {
273
+ rooms: {
274
+ name: string | null;
275
+ roomId: string;
276
+ track: {
277
+ videoId: string;
278
+ title: string;
279
+ duration: number;
280
+ } | null;
281
+ paused: boolean;
282
+ }[];
283
+ }, {
284
+ rooms: {
285
+ name: string | null;
286
+ roomId: string;
287
+ track: {
288
+ videoId: string;
289
+ title: string;
290
+ duration: number;
291
+ } | null;
292
+ paused: boolean;
293
+ }[];
294
+ }>;
295
+ };
296
+ };
297
+ get: {
298
+ description: "Get the state of a room";
299
+ method: "GET";
300
+ path: "/room/:roomId";
301
+ responses: {
302
+ 500: z.ZodObject<{
303
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
304
+ error: z.ZodType<string, z.ZodTypeDef, string>;
305
+ name: z.ZodLiteral<"APIError">;
306
+ }, "strip", z.ZodTypeAny, {
307
+ code: "INTERNAL_SERVER_ERROR";
308
+ error: string;
309
+ name: "APIError";
310
+ }, {
311
+ code: "INTERNAL_SERVER_ERROR";
312
+ error: string;
313
+ name: "APIError";
314
+ }>;
315
+ 404: z.ZodObject<{
316
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
317
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
318
+ name: z.ZodLiteral<"APIError">;
319
+ }, "strip", z.ZodTypeAny, {
320
+ code: "ROOM_NOT_FOUND";
321
+ error: "The requested room was not found";
322
+ name: "APIError";
323
+ }, {
324
+ code: "ROOM_NOT_FOUND";
325
+ error: "The requested room was not found";
326
+ name: "APIError";
327
+ }>;
328
+ 200: z.ZodObject<{
329
+ roomId: z.ZodString;
330
+ name: z.ZodNullable<z.ZodString>;
331
+ ownerId: z.ZodString;
332
+ track: z.ZodNullable<z.ZodObject<{
333
+ videoId: z.ZodString;
334
+ title: z.ZodString;
335
+ duration: z.ZodNumber;
336
+ }, "strip", z.ZodTypeAny, {
337
+ videoId: string;
338
+ title: string;
339
+ duration: number;
340
+ }, {
341
+ videoId: string;
342
+ title: string;
343
+ duration: number;
344
+ }>>;
345
+ queue: z.ZodArray<z.ZodObject<{
346
+ videoId: z.ZodString;
347
+ title: z.ZodString;
348
+ duration: z.ZodNumber;
349
+ } & {
350
+ id: z.ZodString;
351
+ }, "strip", z.ZodTypeAny, {
352
+ videoId: string;
353
+ title: string;
354
+ duration: number;
355
+ id: string;
356
+ }, {
357
+ videoId: string;
358
+ title: string;
359
+ duration: number;
360
+ id: string;
361
+ }>, "many">;
362
+ url: z.ZodNullable<z.ZodString>;
363
+ paused: z.ZodBoolean;
364
+ startTime: z.ZodNumber;
365
+ currentTime: z.ZodNumber;
366
+ scene: z.ZodObject<{
367
+ speakers: z.ZodArray<z.ZodObject<{
368
+ id: z.ZodString;
369
+ x: z.ZodNumber;
370
+ y: z.ZodNumber;
371
+ z: z.ZodNumber;
372
+ yaw: z.ZodNumber;
373
+ pitch: z.ZodNumber;
374
+ directional: z.ZodBoolean;
375
+ }, "strip", z.ZodTypeAny, {
376
+ id: string;
377
+ x: number;
378
+ y: number;
379
+ z: number;
380
+ yaw: number;
381
+ pitch: number;
382
+ directional: boolean;
383
+ }, {
384
+ id: string;
385
+ x: number;
386
+ y: number;
387
+ z: number;
388
+ yaw: number;
389
+ pitch: number;
390
+ directional: boolean;
391
+ }>, "many">;
392
+ cars: z.ZodArray<z.ZodObject<{
393
+ id: z.ZodString;
394
+ x: z.ZodNumber;
395
+ z: z.ZodNumber;
396
+ yaw: z.ZodNumber;
397
+ doors: z.ZodArray<z.ZodBoolean, "many">;
398
+ windows: z.ZodArray<z.ZodBoolean, "many">;
399
+ radio: z.ZodBoolean;
400
+ }, "strip", z.ZodTypeAny, {
401
+ id: string;
402
+ x: number;
403
+ z: number;
404
+ yaw: number;
405
+ doors: boolean[];
406
+ windows: boolean[];
407
+ radio: boolean;
408
+ }, {
409
+ id: string;
410
+ x: number;
411
+ z: number;
412
+ yaw: number;
413
+ doors: boolean[];
414
+ windows: boolean[];
415
+ radio: boolean;
416
+ }>, "many">;
417
+ }, "strip", z.ZodTypeAny, {
418
+ speakers: {
419
+ id: string;
420
+ x: number;
421
+ y: number;
422
+ z: number;
423
+ yaw: number;
424
+ pitch: number;
425
+ directional: boolean;
426
+ }[];
427
+ cars: {
428
+ id: string;
429
+ x: number;
430
+ z: number;
431
+ yaw: number;
432
+ doors: boolean[];
433
+ windows: boolean[];
434
+ radio: boolean;
435
+ }[];
436
+ }, {
437
+ speakers: {
438
+ id: string;
439
+ x: number;
440
+ y: number;
441
+ z: number;
442
+ yaw: number;
443
+ pitch: number;
444
+ directional: boolean;
445
+ }[];
446
+ cars: {
447
+ id: string;
448
+ x: number;
449
+ z: number;
450
+ yaw: number;
451
+ doors: boolean[];
452
+ windows: boolean[];
453
+ radio: boolean;
454
+ }[];
455
+ }>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ name: string | null;
458
+ roomId: string;
459
+ ownerId: string;
460
+ track: {
461
+ videoId: string;
462
+ title: string;
463
+ duration: number;
464
+ } | null;
465
+ queue: {
466
+ videoId: string;
467
+ title: string;
468
+ duration: number;
469
+ id: string;
470
+ }[];
471
+ url: string | null;
472
+ paused: boolean;
473
+ startTime: number;
474
+ currentTime: number;
475
+ scene: {
476
+ speakers: {
477
+ id: string;
478
+ x: number;
479
+ y: number;
480
+ z: number;
481
+ yaw: number;
482
+ pitch: number;
483
+ directional: boolean;
484
+ }[];
485
+ cars: {
486
+ id: string;
487
+ x: number;
488
+ z: number;
489
+ yaw: number;
490
+ doors: boolean[];
491
+ windows: boolean[];
492
+ radio: boolean;
493
+ }[];
494
+ };
495
+ }, {
496
+ name: string | null;
497
+ roomId: string;
498
+ ownerId: string;
499
+ track: {
500
+ videoId: string;
501
+ title: string;
502
+ duration: number;
503
+ } | null;
504
+ queue: {
505
+ videoId: string;
506
+ title: string;
507
+ duration: number;
508
+ id: string;
509
+ }[];
510
+ url: string | null;
511
+ paused: boolean;
512
+ startTime: number;
513
+ currentTime: number;
514
+ scene: {
515
+ speakers: {
516
+ id: string;
517
+ x: number;
518
+ y: number;
519
+ z: number;
520
+ yaw: number;
521
+ pitch: number;
522
+ directional: boolean;
523
+ }[];
524
+ cars: {
525
+ id: string;
526
+ x: number;
527
+ z: number;
528
+ yaw: number;
529
+ doors: boolean[];
530
+ windows: boolean[];
531
+ radio: boolean;
532
+ }[];
533
+ };
534
+ }>;
535
+ };
536
+ };
537
+ rename: {
538
+ description: "Rename a room, owner only, listeners get the name through the roomName socket event";
539
+ method: "PATCH";
540
+ body: z.ZodObject<{
541
+ name: z.ZodNullable<z.ZodString>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ name: string | null;
544
+ }, {
545
+ name: string | null;
546
+ }>;
547
+ path: "/room/:roomId";
548
+ responses: {
549
+ 500: z.ZodObject<{
550
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
551
+ error: z.ZodType<string, z.ZodTypeDef, string>;
552
+ name: z.ZodLiteral<"APIError">;
553
+ }, "strip", z.ZodTypeAny, {
554
+ code: "INTERNAL_SERVER_ERROR";
555
+ error: string;
556
+ name: "APIError";
557
+ }, {
558
+ code: "INTERNAL_SERVER_ERROR";
559
+ error: string;
560
+ name: "APIError";
561
+ }>;
562
+ 404: z.ZodObject<{
563
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
564
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
565
+ name: z.ZodLiteral<"APIError">;
566
+ }, "strip", z.ZodTypeAny, {
567
+ code: "ROOM_NOT_FOUND";
568
+ error: "The requested room was not found";
569
+ name: "APIError";
570
+ }, {
571
+ code: "ROOM_NOT_FOUND";
572
+ error: "The requested room was not found";
573
+ name: "APIError";
574
+ }>;
575
+ 401: z.ZodObject<{
576
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
577
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
578
+ name: z.ZodLiteral<"APIError">;
579
+ }, "strip", z.ZodTypeAny, {
580
+ code: "UNAUTHORIZED";
581
+ error: "Unauthorized";
582
+ name: "APIError";
583
+ }, {
584
+ code: "UNAUTHORIZED";
585
+ error: "Unauthorized";
586
+ name: "APIError";
587
+ }>;
588
+ 403: z.ZodObject<{
589
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
590
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
591
+ name: z.ZodLiteral<"APIError">;
592
+ }, "strip", z.ZodTypeAny, {
593
+ code: "FORBIDDEN";
594
+ error: "Forbidden";
595
+ name: "APIError";
596
+ }, {
597
+ code: "FORBIDDEN";
598
+ error: "Forbidden";
599
+ name: "APIError";
600
+ }>;
601
+ 200: typeof import("@ts-rest/core").ContractNoBody;
602
+ 400: z.ZodObject<{
603
+ name: z.ZodLiteral<"ZodError">;
604
+ issues: z.ZodArray<z.ZodObject<{
605
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
606
+ message: z.ZodOptional<z.ZodString>;
607
+ code: z.ZodNativeEnum<{
608
+ invalid_type: "invalid_type";
609
+ invalid_literal: "invalid_literal";
610
+ custom: "custom";
611
+ invalid_union: "invalid_union";
612
+ invalid_union_discriminator: "invalid_union_discriminator";
613
+ invalid_enum_value: "invalid_enum_value";
614
+ unrecognized_keys: "unrecognized_keys";
615
+ invalid_arguments: "invalid_arguments";
616
+ invalid_return_type: "invalid_return_type";
617
+ invalid_date: "invalid_date";
618
+ invalid_string: "invalid_string";
619
+ too_small: "too_small";
620
+ too_big: "too_big";
621
+ invalid_intersection_types: "invalid_intersection_types";
622
+ not_multiple_of: "not_multiple_of";
623
+ not_finite: "not_finite";
624
+ }>;
625
+ }, "strip", z.ZodAny, z.objectOutputType<{
626
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
627
+ message: z.ZodOptional<z.ZodString>;
628
+ code: z.ZodNativeEnum<{
629
+ invalid_type: "invalid_type";
630
+ invalid_literal: "invalid_literal";
631
+ custom: "custom";
632
+ invalid_union: "invalid_union";
633
+ invalid_union_discriminator: "invalid_union_discriminator";
634
+ invalid_enum_value: "invalid_enum_value";
635
+ unrecognized_keys: "unrecognized_keys";
636
+ invalid_arguments: "invalid_arguments";
637
+ invalid_return_type: "invalid_return_type";
638
+ invalid_date: "invalid_date";
639
+ invalid_string: "invalid_string";
640
+ too_small: "too_small";
641
+ too_big: "too_big";
642
+ invalid_intersection_types: "invalid_intersection_types";
643
+ not_multiple_of: "not_multiple_of";
644
+ not_finite: "not_finite";
645
+ }>;
646
+ }, z.ZodAny, "strip">, z.objectInputType<{
647
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
648
+ message: z.ZodOptional<z.ZodString>;
649
+ code: z.ZodNativeEnum<{
650
+ invalid_type: "invalid_type";
651
+ invalid_literal: "invalid_literal";
652
+ custom: "custom";
653
+ invalid_union: "invalid_union";
654
+ invalid_union_discriminator: "invalid_union_discriminator";
655
+ invalid_enum_value: "invalid_enum_value";
656
+ unrecognized_keys: "unrecognized_keys";
657
+ invalid_arguments: "invalid_arguments";
658
+ invalid_return_type: "invalid_return_type";
659
+ invalid_date: "invalid_date";
660
+ invalid_string: "invalid_string";
661
+ too_small: "too_small";
662
+ too_big: "too_big";
663
+ invalid_intersection_types: "invalid_intersection_types";
664
+ not_multiple_of: "not_multiple_of";
665
+ not_finite: "not_finite";
666
+ }>;
667
+ }, z.ZodAny, "strip">>, "many">;
668
+ }, "strip", z.ZodTypeAny, {
669
+ name: "ZodError";
670
+ issues: z.objectOutputType<{
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
+ }, z.ZodAny, "strip">[];
692
+ }, {
693
+ name: "ZodError";
694
+ issues: z.objectInputType<{
695
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
696
+ message: z.ZodOptional<z.ZodString>;
697
+ code: z.ZodNativeEnum<{
698
+ invalid_type: "invalid_type";
699
+ invalid_literal: "invalid_literal";
700
+ custom: "custom";
701
+ invalid_union: "invalid_union";
702
+ invalid_union_discriminator: "invalid_union_discriminator";
703
+ invalid_enum_value: "invalid_enum_value";
704
+ unrecognized_keys: "unrecognized_keys";
705
+ invalid_arguments: "invalid_arguments";
706
+ invalid_return_type: "invalid_return_type";
707
+ invalid_date: "invalid_date";
708
+ invalid_string: "invalid_string";
709
+ too_small: "too_small";
710
+ too_big: "too_big";
711
+ invalid_intersection_types: "invalid_intersection_types";
712
+ not_multiple_of: "not_multiple_of";
713
+ not_finite: "not_finite";
714
+ }>;
715
+ }, z.ZodAny, "strip">[];
716
+ }>;
717
+ };
718
+ };
719
+ delete: {
720
+ description: "Delete a room, owner only";
721
+ method: "DELETE";
722
+ body: z.ZodUndefined;
723
+ path: "/room/:roomId";
724
+ responses: {
725
+ 500: z.ZodObject<{
726
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
727
+ error: z.ZodType<string, z.ZodTypeDef, string>;
728
+ name: z.ZodLiteral<"APIError">;
729
+ }, "strip", z.ZodTypeAny, {
730
+ code: "INTERNAL_SERVER_ERROR";
731
+ error: string;
732
+ name: "APIError";
733
+ }, {
734
+ code: "INTERNAL_SERVER_ERROR";
735
+ error: string;
736
+ name: "APIError";
737
+ }>;
738
+ 404: z.ZodObject<{
739
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
740
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
741
+ name: z.ZodLiteral<"APIError">;
742
+ }, "strip", z.ZodTypeAny, {
743
+ code: "ROOM_NOT_FOUND";
744
+ error: "The requested room was not found";
745
+ name: "APIError";
746
+ }, {
747
+ code: "ROOM_NOT_FOUND";
748
+ error: "The requested room was not found";
749
+ name: "APIError";
750
+ }>;
751
+ 401: z.ZodObject<{
752
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
753
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
754
+ name: z.ZodLiteral<"APIError">;
755
+ }, "strip", z.ZodTypeAny, {
756
+ code: "UNAUTHORIZED";
757
+ error: "Unauthorized";
758
+ name: "APIError";
759
+ }, {
760
+ code: "UNAUTHORIZED";
761
+ error: "Unauthorized";
762
+ name: "APIError";
763
+ }>;
764
+ 403: z.ZodObject<{
765
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
766
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
767
+ name: z.ZodLiteral<"APIError">;
768
+ }, "strip", z.ZodTypeAny, {
769
+ code: "FORBIDDEN";
770
+ error: "Forbidden";
771
+ name: "APIError";
772
+ }, {
773
+ code: "FORBIDDEN";
774
+ error: "Forbidden";
775
+ name: "APIError";
776
+ }>;
777
+ 200: typeof import("@ts-rest/core").ContractNoBody;
778
+ };
779
+ };
780
+ track: {
781
+ description: "Play a YouTube video in a room, listeners switch through the roomTrack socket event. Resolves once it plays, a cache miss downloads the whole video first";
782
+ method: "POST";
783
+ body: z.ZodObject<{
784
+ videoId: z.ZodString;
785
+ }, "strip", z.ZodTypeAny, {
786
+ videoId: string;
787
+ }, {
788
+ videoId: string;
789
+ }>;
790
+ path: "/room/:roomId/track";
791
+ responses: {
792
+ 500: z.ZodObject<{
793
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
794
+ error: z.ZodType<string, z.ZodTypeDef, string>;
795
+ name: z.ZodLiteral<"APIError">;
796
+ }, "strip", z.ZodTypeAny, {
797
+ code: "INTERNAL_SERVER_ERROR";
798
+ error: string;
799
+ name: "APIError";
800
+ }, {
801
+ code: "INTERNAL_SERVER_ERROR";
802
+ error: string;
803
+ name: "APIError";
804
+ }>;
805
+ 404: z.ZodObject<{
806
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
807
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
808
+ name: z.ZodLiteral<"APIError">;
809
+ }, "strip", z.ZodTypeAny, {
810
+ code: "ROOM_NOT_FOUND";
811
+ error: "The requested room was not found";
812
+ name: "APIError";
813
+ }, {
814
+ code: "ROOM_NOT_FOUND";
815
+ error: "The requested room was not found";
816
+ name: "APIError";
817
+ }>;
818
+ 401: z.ZodObject<{
819
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
820
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
821
+ name: z.ZodLiteral<"APIError">;
822
+ }, "strip", z.ZodTypeAny, {
823
+ code: "UNAUTHORIZED";
824
+ error: "Unauthorized";
825
+ name: "APIError";
826
+ }, {
827
+ code: "UNAUTHORIZED";
828
+ error: "Unauthorized";
829
+ name: "APIError";
830
+ }>;
831
+ 403: z.ZodObject<{
832
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
833
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
834
+ name: z.ZodLiteral<"APIError">;
835
+ }, "strip", z.ZodTypeAny, {
836
+ code: "FORBIDDEN";
837
+ error: "Forbidden";
838
+ name: "APIError";
839
+ }, {
840
+ code: "FORBIDDEN";
841
+ error: "Forbidden";
842
+ name: "APIError";
843
+ }>;
844
+ 200: typeof import("@ts-rest/core").ContractNoBody;
845
+ 400: z.ZodUnion<[z.ZodObject<{
846
+ name: z.ZodLiteral<"ZodError">;
847
+ issues: z.ZodArray<z.ZodObject<{
848
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
849
+ message: z.ZodOptional<z.ZodString>;
850
+ code: z.ZodNativeEnum<{
851
+ invalid_type: "invalid_type";
852
+ invalid_literal: "invalid_literal";
853
+ custom: "custom";
854
+ invalid_union: "invalid_union";
855
+ invalid_union_discriminator: "invalid_union_discriminator";
856
+ invalid_enum_value: "invalid_enum_value";
857
+ unrecognized_keys: "unrecognized_keys";
858
+ invalid_arguments: "invalid_arguments";
859
+ invalid_return_type: "invalid_return_type";
860
+ invalid_date: "invalid_date";
861
+ invalid_string: "invalid_string";
862
+ too_small: "too_small";
863
+ too_big: "too_big";
864
+ invalid_intersection_types: "invalid_intersection_types";
865
+ not_multiple_of: "not_multiple_of";
866
+ not_finite: "not_finite";
867
+ }>;
868
+ }, "strip", z.ZodAny, z.objectOutputType<{
869
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
870
+ message: z.ZodOptional<z.ZodString>;
871
+ code: z.ZodNativeEnum<{
872
+ invalid_type: "invalid_type";
873
+ invalid_literal: "invalid_literal";
874
+ custom: "custom";
875
+ invalid_union: "invalid_union";
876
+ invalid_union_discriminator: "invalid_union_discriminator";
877
+ invalid_enum_value: "invalid_enum_value";
878
+ unrecognized_keys: "unrecognized_keys";
879
+ invalid_arguments: "invalid_arguments";
880
+ invalid_return_type: "invalid_return_type";
881
+ invalid_date: "invalid_date";
882
+ invalid_string: "invalid_string";
883
+ too_small: "too_small";
884
+ too_big: "too_big";
885
+ invalid_intersection_types: "invalid_intersection_types";
886
+ not_multiple_of: "not_multiple_of";
887
+ not_finite: "not_finite";
888
+ }>;
889
+ }, z.ZodAny, "strip">, z.objectInputType<{
890
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
891
+ message: z.ZodOptional<z.ZodString>;
892
+ code: z.ZodNativeEnum<{
893
+ invalid_type: "invalid_type";
894
+ invalid_literal: "invalid_literal";
895
+ custom: "custom";
896
+ invalid_union: "invalid_union";
897
+ invalid_union_discriminator: "invalid_union_discriminator";
898
+ invalid_enum_value: "invalid_enum_value";
899
+ unrecognized_keys: "unrecognized_keys";
900
+ invalid_arguments: "invalid_arguments";
901
+ invalid_return_type: "invalid_return_type";
902
+ invalid_date: "invalid_date";
903
+ invalid_string: "invalid_string";
904
+ too_small: "too_small";
905
+ too_big: "too_big";
906
+ invalid_intersection_types: "invalid_intersection_types";
907
+ not_multiple_of: "not_multiple_of";
908
+ not_finite: "not_finite";
909
+ }>;
910
+ }, z.ZodAny, "strip">>, "many">;
911
+ }, "strip", z.ZodTypeAny, {
912
+ name: "ZodError";
913
+ issues: z.objectOutputType<{
914
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
915
+ message: z.ZodOptional<z.ZodString>;
916
+ code: z.ZodNativeEnum<{
917
+ invalid_type: "invalid_type";
918
+ invalid_literal: "invalid_literal";
919
+ custom: "custom";
920
+ invalid_union: "invalid_union";
921
+ invalid_union_discriminator: "invalid_union_discriminator";
922
+ invalid_enum_value: "invalid_enum_value";
923
+ unrecognized_keys: "unrecognized_keys";
924
+ invalid_arguments: "invalid_arguments";
925
+ invalid_return_type: "invalid_return_type";
926
+ invalid_date: "invalid_date";
927
+ invalid_string: "invalid_string";
928
+ too_small: "too_small";
929
+ too_big: "too_big";
930
+ invalid_intersection_types: "invalid_intersection_types";
931
+ not_multiple_of: "not_multiple_of";
932
+ not_finite: "not_finite";
933
+ }>;
934
+ }, z.ZodAny, "strip">[];
935
+ }, {
936
+ name: "ZodError";
937
+ issues: z.objectInputType<{
938
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
939
+ message: z.ZodOptional<z.ZodString>;
940
+ code: z.ZodNativeEnum<{
941
+ invalid_type: "invalid_type";
942
+ invalid_literal: "invalid_literal";
943
+ custom: "custom";
944
+ invalid_union: "invalid_union";
945
+ invalid_union_discriminator: "invalid_union_discriminator";
946
+ invalid_enum_value: "invalid_enum_value";
947
+ unrecognized_keys: "unrecognized_keys";
948
+ invalid_arguments: "invalid_arguments";
949
+ invalid_return_type: "invalid_return_type";
950
+ invalid_date: "invalid_date";
951
+ invalid_string: "invalid_string";
952
+ too_small: "too_small";
953
+ too_big: "too_big";
954
+ invalid_intersection_types: "invalid_intersection_types";
955
+ not_multiple_of: "not_multiple_of";
956
+ not_finite: "not_finite";
957
+ }>;
958
+ }, z.ZodAny, "strip">[];
959
+ }>, z.ZodObject<{
960
+ code: z.ZodType<"INVALID_VIDEO_ID", z.ZodTypeDef, "INVALID_VIDEO_ID">;
961
+ error: z.ZodType<"The provided video ID is invalid", z.ZodTypeDef, "The provided video ID is invalid">;
962
+ name: z.ZodLiteral<"APIError">;
963
+ }, "strip", z.ZodTypeAny, {
964
+ code: "INVALID_VIDEO_ID";
965
+ error: "The provided video ID is invalid";
966
+ name: "APIError";
967
+ }, {
968
+ code: "INVALID_VIDEO_ID";
969
+ error: "The provided video ID is invalid";
970
+ name: "APIError";
971
+ }>]>;
972
+ };
973
+ };
974
+ queueAdd: {
975
+ description: "Add a YouTube video to the queue of a room, it plays right away if the room has nothing to play. Listeners get the queue through the roomQueue socket event";
976
+ method: "POST";
977
+ body: z.ZodObject<{
978
+ videoId: z.ZodString;
979
+ }, "strip", z.ZodTypeAny, {
980
+ videoId: string;
981
+ }, {
982
+ videoId: string;
983
+ }>;
984
+ path: "/room/:roomId/queue";
985
+ responses: {
986
+ 500: z.ZodObject<{
987
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
988
+ error: z.ZodType<string, z.ZodTypeDef, string>;
989
+ name: z.ZodLiteral<"APIError">;
990
+ }, "strip", z.ZodTypeAny, {
991
+ code: "INTERNAL_SERVER_ERROR";
992
+ error: string;
993
+ name: "APIError";
994
+ }, {
995
+ code: "INTERNAL_SERVER_ERROR";
996
+ error: string;
997
+ name: "APIError";
998
+ }>;
999
+ 409: z.ZodObject<{
1000
+ code: z.ZodType<"QUEUE_FULL", z.ZodTypeDef, "QUEUE_FULL">;
1001
+ error: z.ZodType<"The queue of this room is full", z.ZodTypeDef, "The queue of this room is full">;
1002
+ name: z.ZodLiteral<"APIError">;
1003
+ }, "strip", z.ZodTypeAny, {
1004
+ code: "QUEUE_FULL";
1005
+ error: "The queue of this room is full";
1006
+ name: "APIError";
1007
+ }, {
1008
+ code: "QUEUE_FULL";
1009
+ error: "The queue of this room is full";
1010
+ name: "APIError";
1011
+ }>;
1012
+ 404: z.ZodObject<{
1013
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
1014
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
1015
+ name: z.ZodLiteral<"APIError">;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ code: "ROOM_NOT_FOUND";
1018
+ error: "The requested room was not found";
1019
+ name: "APIError";
1020
+ }, {
1021
+ code: "ROOM_NOT_FOUND";
1022
+ error: "The requested room was not found";
1023
+ name: "APIError";
1024
+ }>;
1025
+ 401: z.ZodObject<{
1026
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
1027
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
1028
+ name: z.ZodLiteral<"APIError">;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ code: "UNAUTHORIZED";
1031
+ error: "Unauthorized";
1032
+ name: "APIError";
1033
+ }, {
1034
+ code: "UNAUTHORIZED";
1035
+ error: "Unauthorized";
1036
+ name: "APIError";
1037
+ }>;
1038
+ 403: z.ZodObject<{
1039
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
1040
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
1041
+ name: z.ZodLiteral<"APIError">;
1042
+ }, "strip", z.ZodTypeAny, {
1043
+ code: "FORBIDDEN";
1044
+ error: "Forbidden";
1045
+ name: "APIError";
1046
+ }, {
1047
+ code: "FORBIDDEN";
1048
+ error: "Forbidden";
1049
+ name: "APIError";
1050
+ }>;
1051
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1052
+ 400: z.ZodUnion<[z.ZodObject<{
1053
+ name: z.ZodLiteral<"ZodError">;
1054
+ issues: z.ZodArray<z.ZodObject<{
1055
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1056
+ message: z.ZodOptional<z.ZodString>;
1057
+ code: z.ZodNativeEnum<{
1058
+ invalid_type: "invalid_type";
1059
+ invalid_literal: "invalid_literal";
1060
+ custom: "custom";
1061
+ invalid_union: "invalid_union";
1062
+ invalid_union_discriminator: "invalid_union_discriminator";
1063
+ invalid_enum_value: "invalid_enum_value";
1064
+ unrecognized_keys: "unrecognized_keys";
1065
+ invalid_arguments: "invalid_arguments";
1066
+ invalid_return_type: "invalid_return_type";
1067
+ invalid_date: "invalid_date";
1068
+ invalid_string: "invalid_string";
1069
+ too_small: "too_small";
1070
+ too_big: "too_big";
1071
+ invalid_intersection_types: "invalid_intersection_types";
1072
+ not_multiple_of: "not_multiple_of";
1073
+ not_finite: "not_finite";
1074
+ }>;
1075
+ }, "strip", z.ZodAny, z.objectOutputType<{
1076
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1077
+ message: z.ZodOptional<z.ZodString>;
1078
+ code: z.ZodNativeEnum<{
1079
+ invalid_type: "invalid_type";
1080
+ invalid_literal: "invalid_literal";
1081
+ custom: "custom";
1082
+ invalid_union: "invalid_union";
1083
+ invalid_union_discriminator: "invalid_union_discriminator";
1084
+ invalid_enum_value: "invalid_enum_value";
1085
+ unrecognized_keys: "unrecognized_keys";
1086
+ invalid_arguments: "invalid_arguments";
1087
+ invalid_return_type: "invalid_return_type";
1088
+ invalid_date: "invalid_date";
1089
+ invalid_string: "invalid_string";
1090
+ too_small: "too_small";
1091
+ too_big: "too_big";
1092
+ invalid_intersection_types: "invalid_intersection_types";
1093
+ not_multiple_of: "not_multiple_of";
1094
+ not_finite: "not_finite";
1095
+ }>;
1096
+ }, z.ZodAny, "strip">, z.objectInputType<{
1097
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1098
+ message: z.ZodOptional<z.ZodString>;
1099
+ code: z.ZodNativeEnum<{
1100
+ invalid_type: "invalid_type";
1101
+ invalid_literal: "invalid_literal";
1102
+ custom: "custom";
1103
+ invalid_union: "invalid_union";
1104
+ invalid_union_discriminator: "invalid_union_discriminator";
1105
+ invalid_enum_value: "invalid_enum_value";
1106
+ unrecognized_keys: "unrecognized_keys";
1107
+ invalid_arguments: "invalid_arguments";
1108
+ invalid_return_type: "invalid_return_type";
1109
+ invalid_date: "invalid_date";
1110
+ invalid_string: "invalid_string";
1111
+ too_small: "too_small";
1112
+ too_big: "too_big";
1113
+ invalid_intersection_types: "invalid_intersection_types";
1114
+ not_multiple_of: "not_multiple_of";
1115
+ not_finite: "not_finite";
1116
+ }>;
1117
+ }, z.ZodAny, "strip">>, "many">;
1118
+ }, "strip", z.ZodTypeAny, {
1119
+ name: "ZodError";
1120
+ issues: z.objectOutputType<{
1121
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1122
+ message: z.ZodOptional<z.ZodString>;
1123
+ code: z.ZodNativeEnum<{
1124
+ invalid_type: "invalid_type";
1125
+ invalid_literal: "invalid_literal";
1126
+ custom: "custom";
1127
+ invalid_union: "invalid_union";
1128
+ invalid_union_discriminator: "invalid_union_discriminator";
1129
+ invalid_enum_value: "invalid_enum_value";
1130
+ unrecognized_keys: "unrecognized_keys";
1131
+ invalid_arguments: "invalid_arguments";
1132
+ invalid_return_type: "invalid_return_type";
1133
+ invalid_date: "invalid_date";
1134
+ invalid_string: "invalid_string";
1135
+ too_small: "too_small";
1136
+ too_big: "too_big";
1137
+ invalid_intersection_types: "invalid_intersection_types";
1138
+ not_multiple_of: "not_multiple_of";
1139
+ not_finite: "not_finite";
1140
+ }>;
1141
+ }, z.ZodAny, "strip">[];
1142
+ }, {
1143
+ name: "ZodError";
1144
+ issues: z.objectInputType<{
1145
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1146
+ message: z.ZodOptional<z.ZodString>;
1147
+ code: z.ZodNativeEnum<{
1148
+ invalid_type: "invalid_type";
1149
+ invalid_literal: "invalid_literal";
1150
+ custom: "custom";
1151
+ invalid_union: "invalid_union";
1152
+ invalid_union_discriminator: "invalid_union_discriminator";
1153
+ invalid_enum_value: "invalid_enum_value";
1154
+ unrecognized_keys: "unrecognized_keys";
1155
+ invalid_arguments: "invalid_arguments";
1156
+ invalid_return_type: "invalid_return_type";
1157
+ invalid_date: "invalid_date";
1158
+ invalid_string: "invalid_string";
1159
+ too_small: "too_small";
1160
+ too_big: "too_big";
1161
+ invalid_intersection_types: "invalid_intersection_types";
1162
+ not_multiple_of: "not_multiple_of";
1163
+ not_finite: "not_finite";
1164
+ }>;
1165
+ }, z.ZodAny, "strip">[];
1166
+ }>, z.ZodObject<{
1167
+ code: z.ZodType<"INVALID_VIDEO_ID", z.ZodTypeDef, "INVALID_VIDEO_ID">;
1168
+ error: z.ZodType<"The provided video ID is invalid", z.ZodTypeDef, "The provided video ID is invalid">;
1169
+ name: z.ZodLiteral<"APIError">;
1170
+ }, "strip", z.ZodTypeAny, {
1171
+ code: "INVALID_VIDEO_ID";
1172
+ error: "The provided video ID is invalid";
1173
+ name: "APIError";
1174
+ }, {
1175
+ code: "INVALID_VIDEO_ID";
1176
+ error: "The provided video ID is invalid";
1177
+ name: "APIError";
1178
+ }>]>;
1179
+ };
1180
+ };
1181
+ queueRemove: {
1182
+ description: "Remove a track from the queue of a room";
1183
+ method: "DELETE";
1184
+ body: z.ZodUndefined;
1185
+ path: "/room/:roomId/queue/:itemId";
1186
+ responses: {
1187
+ 500: z.ZodObject<{
1188
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1189
+ error: z.ZodType<string, z.ZodTypeDef, string>;
1190
+ name: z.ZodLiteral<"APIError">;
1191
+ }, "strip", z.ZodTypeAny, {
1192
+ code: "INTERNAL_SERVER_ERROR";
1193
+ error: string;
1194
+ name: "APIError";
1195
+ }, {
1196
+ code: "INTERNAL_SERVER_ERROR";
1197
+ error: string;
1198
+ name: "APIError";
1199
+ }>;
1200
+ 404: z.ZodUnion<[z.ZodObject<{
1201
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
1202
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
1203
+ name: z.ZodLiteral<"APIError">;
1204
+ }, "strip", z.ZodTypeAny, {
1205
+ code: "ROOM_NOT_FOUND";
1206
+ error: "The requested room was not found";
1207
+ name: "APIError";
1208
+ }, {
1209
+ code: "ROOM_NOT_FOUND";
1210
+ error: "The requested room was not found";
1211
+ name: "APIError";
1212
+ }>, z.ZodObject<{
1213
+ code: z.ZodType<"QUEUE_ITEM_NOT_FOUND", z.ZodTypeDef, "QUEUE_ITEM_NOT_FOUND">;
1214
+ error: z.ZodType<"The queue doesn't have this track", z.ZodTypeDef, "The queue doesn't have this track">;
1215
+ name: z.ZodLiteral<"APIError">;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ code: "QUEUE_ITEM_NOT_FOUND";
1218
+ error: "The queue doesn't have this track";
1219
+ name: "APIError";
1220
+ }, {
1221
+ code: "QUEUE_ITEM_NOT_FOUND";
1222
+ error: "The queue doesn't have this track";
1223
+ name: "APIError";
1224
+ }>]>;
1225
+ 401: z.ZodObject<{
1226
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
1227
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
1228
+ name: z.ZodLiteral<"APIError">;
1229
+ }, "strip", z.ZodTypeAny, {
1230
+ code: "UNAUTHORIZED";
1231
+ error: "Unauthorized";
1232
+ name: "APIError";
1233
+ }, {
1234
+ code: "UNAUTHORIZED";
1235
+ error: "Unauthorized";
1236
+ name: "APIError";
1237
+ }>;
1238
+ 403: z.ZodObject<{
1239
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
1240
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
1241
+ name: z.ZodLiteral<"APIError">;
1242
+ }, "strip", z.ZodTypeAny, {
1243
+ code: "FORBIDDEN";
1244
+ error: "Forbidden";
1245
+ name: "APIError";
1246
+ }, {
1247
+ code: "FORBIDDEN";
1248
+ error: "Forbidden";
1249
+ name: "APIError";
1250
+ }>;
1251
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1252
+ };
1253
+ };
1254
+ queueMove: {
1255
+ description: "Move a track of the queue of a room to a new index";
1256
+ method: "POST";
1257
+ body: z.ZodObject<{
1258
+ index: z.ZodNumber;
1259
+ }, "strip", z.ZodTypeAny, {
1260
+ index: number;
1261
+ }, {
1262
+ index: number;
1263
+ }>;
1264
+ path: "/room/:roomId/queue/:itemId/move";
1265
+ responses: {
1266
+ 500: z.ZodObject<{
1267
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1268
+ error: z.ZodType<string, z.ZodTypeDef, string>;
1269
+ name: z.ZodLiteral<"APIError">;
1270
+ }, "strip", z.ZodTypeAny, {
1271
+ code: "INTERNAL_SERVER_ERROR";
1272
+ error: string;
1273
+ name: "APIError";
1274
+ }, {
1275
+ code: "INTERNAL_SERVER_ERROR";
1276
+ error: string;
1277
+ name: "APIError";
1278
+ }>;
1279
+ 404: z.ZodUnion<[z.ZodObject<{
1280
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
1281
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
1282
+ name: z.ZodLiteral<"APIError">;
1283
+ }, "strip", z.ZodTypeAny, {
1284
+ code: "ROOM_NOT_FOUND";
1285
+ error: "The requested room was not found";
1286
+ name: "APIError";
1287
+ }, {
1288
+ code: "ROOM_NOT_FOUND";
1289
+ error: "The requested room was not found";
1290
+ name: "APIError";
1291
+ }>, z.ZodObject<{
1292
+ code: z.ZodType<"QUEUE_ITEM_NOT_FOUND", z.ZodTypeDef, "QUEUE_ITEM_NOT_FOUND">;
1293
+ error: z.ZodType<"The queue doesn't have this track", z.ZodTypeDef, "The queue doesn't have this track">;
1294
+ name: z.ZodLiteral<"APIError">;
1295
+ }, "strip", z.ZodTypeAny, {
1296
+ code: "QUEUE_ITEM_NOT_FOUND";
1297
+ error: "The queue doesn't have this track";
1298
+ name: "APIError";
1299
+ }, {
1300
+ code: "QUEUE_ITEM_NOT_FOUND";
1301
+ error: "The queue doesn't have this track";
1302
+ name: "APIError";
1303
+ }>]>;
1304
+ 401: z.ZodObject<{
1305
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
1306
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
1307
+ name: z.ZodLiteral<"APIError">;
1308
+ }, "strip", z.ZodTypeAny, {
1309
+ code: "UNAUTHORIZED";
1310
+ error: "Unauthorized";
1311
+ name: "APIError";
1312
+ }, {
1313
+ code: "UNAUTHORIZED";
1314
+ error: "Unauthorized";
1315
+ name: "APIError";
1316
+ }>;
1317
+ 403: z.ZodObject<{
1318
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
1319
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
1320
+ name: z.ZodLiteral<"APIError">;
1321
+ }, "strip", z.ZodTypeAny, {
1322
+ code: "FORBIDDEN";
1323
+ error: "Forbidden";
1324
+ name: "APIError";
1325
+ }, {
1326
+ code: "FORBIDDEN";
1327
+ error: "Forbidden";
1328
+ name: "APIError";
1329
+ }>;
1330
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1331
+ 400: z.ZodObject<{
1332
+ name: z.ZodLiteral<"ZodError">;
1333
+ issues: z.ZodArray<z.ZodObject<{
1334
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1335
+ message: z.ZodOptional<z.ZodString>;
1336
+ code: z.ZodNativeEnum<{
1337
+ invalid_type: "invalid_type";
1338
+ invalid_literal: "invalid_literal";
1339
+ custom: "custom";
1340
+ invalid_union: "invalid_union";
1341
+ invalid_union_discriminator: "invalid_union_discriminator";
1342
+ invalid_enum_value: "invalid_enum_value";
1343
+ unrecognized_keys: "unrecognized_keys";
1344
+ invalid_arguments: "invalid_arguments";
1345
+ invalid_return_type: "invalid_return_type";
1346
+ invalid_date: "invalid_date";
1347
+ invalid_string: "invalid_string";
1348
+ too_small: "too_small";
1349
+ too_big: "too_big";
1350
+ invalid_intersection_types: "invalid_intersection_types";
1351
+ not_multiple_of: "not_multiple_of";
1352
+ not_finite: "not_finite";
1353
+ }>;
1354
+ }, "strip", z.ZodAny, z.objectOutputType<{
1355
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1356
+ message: z.ZodOptional<z.ZodString>;
1357
+ code: z.ZodNativeEnum<{
1358
+ invalid_type: "invalid_type";
1359
+ invalid_literal: "invalid_literal";
1360
+ custom: "custom";
1361
+ invalid_union: "invalid_union";
1362
+ invalid_union_discriminator: "invalid_union_discriminator";
1363
+ invalid_enum_value: "invalid_enum_value";
1364
+ unrecognized_keys: "unrecognized_keys";
1365
+ invalid_arguments: "invalid_arguments";
1366
+ invalid_return_type: "invalid_return_type";
1367
+ invalid_date: "invalid_date";
1368
+ invalid_string: "invalid_string";
1369
+ too_small: "too_small";
1370
+ too_big: "too_big";
1371
+ invalid_intersection_types: "invalid_intersection_types";
1372
+ not_multiple_of: "not_multiple_of";
1373
+ not_finite: "not_finite";
1374
+ }>;
1375
+ }, z.ZodAny, "strip">, z.objectInputType<{
1376
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1377
+ message: z.ZodOptional<z.ZodString>;
1378
+ code: z.ZodNativeEnum<{
1379
+ invalid_type: "invalid_type";
1380
+ invalid_literal: "invalid_literal";
1381
+ custom: "custom";
1382
+ invalid_union: "invalid_union";
1383
+ invalid_union_discriminator: "invalid_union_discriminator";
1384
+ invalid_enum_value: "invalid_enum_value";
1385
+ unrecognized_keys: "unrecognized_keys";
1386
+ invalid_arguments: "invalid_arguments";
1387
+ invalid_return_type: "invalid_return_type";
1388
+ invalid_date: "invalid_date";
1389
+ invalid_string: "invalid_string";
1390
+ too_small: "too_small";
1391
+ too_big: "too_big";
1392
+ invalid_intersection_types: "invalid_intersection_types";
1393
+ not_multiple_of: "not_multiple_of";
1394
+ not_finite: "not_finite";
1395
+ }>;
1396
+ }, z.ZodAny, "strip">>, "many">;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ name: "ZodError";
1399
+ issues: z.objectOutputType<{
1400
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1401
+ message: z.ZodOptional<z.ZodString>;
1402
+ code: z.ZodNativeEnum<{
1403
+ invalid_type: "invalid_type";
1404
+ invalid_literal: "invalid_literal";
1405
+ custom: "custom";
1406
+ invalid_union: "invalid_union";
1407
+ invalid_union_discriminator: "invalid_union_discriminator";
1408
+ invalid_enum_value: "invalid_enum_value";
1409
+ unrecognized_keys: "unrecognized_keys";
1410
+ invalid_arguments: "invalid_arguments";
1411
+ invalid_return_type: "invalid_return_type";
1412
+ invalid_date: "invalid_date";
1413
+ invalid_string: "invalid_string";
1414
+ too_small: "too_small";
1415
+ too_big: "too_big";
1416
+ invalid_intersection_types: "invalid_intersection_types";
1417
+ not_multiple_of: "not_multiple_of";
1418
+ not_finite: "not_finite";
1419
+ }>;
1420
+ }, z.ZodAny, "strip">[];
1421
+ }, {
1422
+ name: "ZodError";
1423
+ issues: z.objectInputType<{
1424
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1425
+ message: z.ZodOptional<z.ZodString>;
1426
+ code: z.ZodNativeEnum<{
1427
+ invalid_type: "invalid_type";
1428
+ invalid_literal: "invalid_literal";
1429
+ custom: "custom";
1430
+ invalid_union: "invalid_union";
1431
+ invalid_union_discriminator: "invalid_union_discriminator";
1432
+ invalid_enum_value: "invalid_enum_value";
1433
+ unrecognized_keys: "unrecognized_keys";
1434
+ invalid_arguments: "invalid_arguments";
1435
+ invalid_return_type: "invalid_return_type";
1436
+ invalid_date: "invalid_date";
1437
+ invalid_string: "invalid_string";
1438
+ too_small: "too_small";
1439
+ too_big: "too_big";
1440
+ invalid_intersection_types: "invalid_intersection_types";
1441
+ not_multiple_of: "not_multiple_of";
1442
+ not_finite: "not_finite";
1443
+ }>;
1444
+ }, z.ZodAny, "strip">[];
1445
+ }>;
1446
+ };
1447
+ };
1448
+ next: {
1449
+ description: "Skip to the next track of the queue of a room";
1450
+ method: "POST";
1451
+ body: z.ZodUndefined;
1452
+ path: "/room/:roomId/next";
1453
+ responses: {
1454
+ 500: z.ZodObject<{
1455
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1456
+ error: z.ZodType<string, z.ZodTypeDef, string>;
1457
+ name: z.ZodLiteral<"APIError">;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ code: "INTERNAL_SERVER_ERROR";
1460
+ error: string;
1461
+ name: "APIError";
1462
+ }, {
1463
+ code: "INTERNAL_SERVER_ERROR";
1464
+ error: string;
1465
+ name: "APIError";
1466
+ }>;
1467
+ 404: z.ZodObject<{
1468
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
1469
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
1470
+ name: z.ZodLiteral<"APIError">;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ code: "ROOM_NOT_FOUND";
1473
+ error: "The requested room was not found";
1474
+ name: "APIError";
1475
+ }, {
1476
+ code: "ROOM_NOT_FOUND";
1477
+ error: "The requested room was not found";
1478
+ name: "APIError";
1479
+ }>;
1480
+ 401: z.ZodObject<{
1481
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
1482
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
1483
+ name: z.ZodLiteral<"APIError">;
1484
+ }, "strip", z.ZodTypeAny, {
1485
+ code: "UNAUTHORIZED";
1486
+ error: "Unauthorized";
1487
+ name: "APIError";
1488
+ }, {
1489
+ code: "UNAUTHORIZED";
1490
+ error: "Unauthorized";
1491
+ name: "APIError";
1492
+ }>;
1493
+ 403: z.ZodObject<{
1494
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
1495
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
1496
+ name: z.ZodLiteral<"APIError">;
1497
+ }, "strip", z.ZodTypeAny, {
1498
+ code: "FORBIDDEN";
1499
+ error: "Forbidden";
1500
+ name: "APIError";
1501
+ }, {
1502
+ code: "FORBIDDEN";
1503
+ error: "Forbidden";
1504
+ name: "APIError";
1505
+ }>;
1506
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1507
+ 400: z.ZodObject<{
1508
+ code: z.ZodType<"QUEUE_EMPTY", z.ZodTypeDef, "QUEUE_EMPTY">;
1509
+ error: z.ZodType<"The queue of this room is empty", z.ZodTypeDef, "The queue of this room is empty">;
1510
+ name: z.ZodLiteral<"APIError">;
1511
+ }, "strip", z.ZodTypeAny, {
1512
+ code: "QUEUE_EMPTY";
1513
+ error: "The queue of this room is empty";
1514
+ name: "APIError";
1515
+ }, {
1516
+ code: "QUEUE_EMPTY";
1517
+ error: "The queue of this room is empty";
1518
+ name: "APIError";
1519
+ }>;
1520
+ };
1521
+ };
1522
+ play: {
1523
+ description: "Play the track of a room, from its position, or the next one of its queue if it has none. A room without a stream starts a new one";
1524
+ method: "POST";
1525
+ body: z.ZodUndefined;
1526
+ path: "/room/:roomId/play";
1527
+ responses: {
1528
+ 500: z.ZodObject<{
1529
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1530
+ error: z.ZodType<string, z.ZodTypeDef, string>;
1531
+ name: z.ZodLiteral<"APIError">;
1532
+ }, "strip", z.ZodTypeAny, {
1533
+ code: "INTERNAL_SERVER_ERROR";
1534
+ error: string;
1535
+ name: "APIError";
1536
+ }, {
1537
+ code: "INTERNAL_SERVER_ERROR";
1538
+ error: string;
1539
+ name: "APIError";
1540
+ }>;
1541
+ 404: z.ZodObject<{
1542
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
1543
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
1544
+ name: z.ZodLiteral<"APIError">;
1545
+ }, "strip", z.ZodTypeAny, {
1546
+ code: "ROOM_NOT_FOUND";
1547
+ error: "The requested room was not found";
1548
+ name: "APIError";
1549
+ }, {
1550
+ code: "ROOM_NOT_FOUND";
1551
+ error: "The requested room was not found";
1552
+ name: "APIError";
1553
+ }>;
1554
+ 401: z.ZodObject<{
1555
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
1556
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
1557
+ name: z.ZodLiteral<"APIError">;
1558
+ }, "strip", z.ZodTypeAny, {
1559
+ code: "UNAUTHORIZED";
1560
+ error: "Unauthorized";
1561
+ name: "APIError";
1562
+ }, {
1563
+ code: "UNAUTHORIZED";
1564
+ error: "Unauthorized";
1565
+ name: "APIError";
1566
+ }>;
1567
+ 403: z.ZodObject<{
1568
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
1569
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
1570
+ name: z.ZodLiteral<"APIError">;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ code: "FORBIDDEN";
1573
+ error: "Forbidden";
1574
+ name: "APIError";
1575
+ }, {
1576
+ code: "FORBIDDEN";
1577
+ error: "Forbidden";
1578
+ name: "APIError";
1579
+ }>;
1580
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1581
+ 400: z.ZodUnion<[z.ZodObject<{
1582
+ code: z.ZodType<"NO_TRACK", z.ZodTypeDef, "NO_TRACK">;
1583
+ error: z.ZodType<"The room has no track", z.ZodTypeDef, "The room has no track">;
1584
+ name: z.ZodLiteral<"APIError">;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ code: "NO_TRACK";
1587
+ error: "The room has no track";
1588
+ name: "APIError";
1589
+ }, {
1590
+ code: "NO_TRACK";
1591
+ error: "The room has no track";
1592
+ name: "APIError";
1593
+ }>, z.ZodObject<{
1594
+ code: z.ZodType<"INVALID_VIDEO_ID", z.ZodTypeDef, "INVALID_VIDEO_ID">;
1595
+ error: z.ZodType<"The provided video ID is invalid", z.ZodTypeDef, "The provided video ID is invalid">;
1596
+ name: z.ZodLiteral<"APIError">;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ code: "INVALID_VIDEO_ID";
1599
+ error: "The provided video ID is invalid";
1600
+ name: "APIError";
1601
+ }, {
1602
+ code: "INVALID_VIDEO_ID";
1603
+ error: "The provided video ID is invalid";
1604
+ name: "APIError";
1605
+ }>]>;
1606
+ };
1607
+ };
1608
+ pause: {
1609
+ description: "Pause a room";
1610
+ method: "POST";
1611
+ body: z.ZodUndefined;
1612
+ path: "/room/:roomId/pause";
1613
+ responses: {
1614
+ 500: z.ZodObject<{
1615
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1616
+ error: z.ZodType<string, z.ZodTypeDef, string>;
1617
+ name: z.ZodLiteral<"APIError">;
1618
+ }, "strip", z.ZodTypeAny, {
1619
+ code: "INTERNAL_SERVER_ERROR";
1620
+ error: string;
1621
+ name: "APIError";
1622
+ }, {
1623
+ code: "INTERNAL_SERVER_ERROR";
1624
+ error: string;
1625
+ name: "APIError";
1626
+ }>;
1627
+ 404: z.ZodObject<{
1628
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
1629
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
1630
+ name: z.ZodLiteral<"APIError">;
1631
+ }, "strip", z.ZodTypeAny, {
1632
+ code: "ROOM_NOT_FOUND";
1633
+ error: "The requested room was not found";
1634
+ name: "APIError";
1635
+ }, {
1636
+ code: "ROOM_NOT_FOUND";
1637
+ error: "The requested room was not found";
1638
+ name: "APIError";
1639
+ }>;
1640
+ 401: z.ZodObject<{
1641
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
1642
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
1643
+ name: z.ZodLiteral<"APIError">;
1644
+ }, "strip", z.ZodTypeAny, {
1645
+ code: "UNAUTHORIZED";
1646
+ error: "Unauthorized";
1647
+ name: "APIError";
1648
+ }, {
1649
+ code: "UNAUTHORIZED";
1650
+ error: "Unauthorized";
1651
+ name: "APIError";
1652
+ }>;
1653
+ 403: z.ZodObject<{
1654
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
1655
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
1656
+ name: z.ZodLiteral<"APIError">;
1657
+ }, "strip", z.ZodTypeAny, {
1658
+ code: "FORBIDDEN";
1659
+ error: "Forbidden";
1660
+ name: "APIError";
1661
+ }, {
1662
+ code: "FORBIDDEN";
1663
+ error: "Forbidden";
1664
+ name: "APIError";
1665
+ }>;
1666
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1667
+ };
1668
+ };
1669
+ seek: {
1670
+ query: z.ZodObject<{
1671
+ time: z.ZodNumber;
1672
+ }, "strip", z.ZodTypeAny, {
1673
+ time: number;
1674
+ }, {
1675
+ time: number;
1676
+ }>;
1677
+ description: "Seek the track of a room";
1678
+ method: "POST";
1679
+ body: z.ZodUndefined;
1680
+ path: "/room/:roomId/seek";
1681
+ responses: {
1682
+ 500: z.ZodObject<{
1683
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1684
+ error: z.ZodType<string, z.ZodTypeDef, string>;
1685
+ name: z.ZodLiteral<"APIError">;
1686
+ }, "strip", z.ZodTypeAny, {
1687
+ code: "INTERNAL_SERVER_ERROR";
1688
+ error: string;
1689
+ name: "APIError";
1690
+ }, {
1691
+ code: "INTERNAL_SERVER_ERROR";
1692
+ error: string;
1693
+ name: "APIError";
1694
+ }>;
1695
+ 404: z.ZodObject<{
1696
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
1697
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
1698
+ name: z.ZodLiteral<"APIError">;
1699
+ }, "strip", z.ZodTypeAny, {
1700
+ code: "ROOM_NOT_FOUND";
1701
+ error: "The requested room was not found";
1702
+ name: "APIError";
1703
+ }, {
1704
+ code: "ROOM_NOT_FOUND";
1705
+ error: "The requested room was not found";
1706
+ name: "APIError";
1707
+ }>;
1708
+ 401: z.ZodObject<{
1709
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
1710
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
1711
+ name: z.ZodLiteral<"APIError">;
1712
+ }, "strip", z.ZodTypeAny, {
1713
+ code: "UNAUTHORIZED";
1714
+ error: "Unauthorized";
1715
+ name: "APIError";
1716
+ }, {
1717
+ code: "UNAUTHORIZED";
1718
+ error: "Unauthorized";
1719
+ name: "APIError";
1720
+ }>;
1721
+ 403: z.ZodObject<{
1722
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
1723
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
1724
+ name: z.ZodLiteral<"APIError">;
1725
+ }, "strip", z.ZodTypeAny, {
1726
+ code: "FORBIDDEN";
1727
+ error: "Forbidden";
1728
+ name: "APIError";
1729
+ }, {
1730
+ code: "FORBIDDEN";
1731
+ error: "Forbidden";
1732
+ name: "APIError";
1733
+ }>;
1734
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1735
+ 400: z.ZodUnion<[z.ZodObject<{
1736
+ name: z.ZodLiteral<"ZodError">;
1737
+ issues: z.ZodArray<z.ZodObject<{
1738
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1739
+ message: z.ZodOptional<z.ZodString>;
1740
+ code: z.ZodNativeEnum<{
1741
+ invalid_type: "invalid_type";
1742
+ invalid_literal: "invalid_literal";
1743
+ custom: "custom";
1744
+ invalid_union: "invalid_union";
1745
+ invalid_union_discriminator: "invalid_union_discriminator";
1746
+ invalid_enum_value: "invalid_enum_value";
1747
+ unrecognized_keys: "unrecognized_keys";
1748
+ invalid_arguments: "invalid_arguments";
1749
+ invalid_return_type: "invalid_return_type";
1750
+ invalid_date: "invalid_date";
1751
+ invalid_string: "invalid_string";
1752
+ too_small: "too_small";
1753
+ too_big: "too_big";
1754
+ invalid_intersection_types: "invalid_intersection_types";
1755
+ not_multiple_of: "not_multiple_of";
1756
+ not_finite: "not_finite";
1757
+ }>;
1758
+ }, "strip", z.ZodAny, z.objectOutputType<{
1759
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1760
+ message: z.ZodOptional<z.ZodString>;
1761
+ code: z.ZodNativeEnum<{
1762
+ invalid_type: "invalid_type";
1763
+ invalid_literal: "invalid_literal";
1764
+ custom: "custom";
1765
+ invalid_union: "invalid_union";
1766
+ invalid_union_discriminator: "invalid_union_discriminator";
1767
+ invalid_enum_value: "invalid_enum_value";
1768
+ unrecognized_keys: "unrecognized_keys";
1769
+ invalid_arguments: "invalid_arguments";
1770
+ invalid_return_type: "invalid_return_type";
1771
+ invalid_date: "invalid_date";
1772
+ invalid_string: "invalid_string";
1773
+ too_small: "too_small";
1774
+ too_big: "too_big";
1775
+ invalid_intersection_types: "invalid_intersection_types";
1776
+ not_multiple_of: "not_multiple_of";
1777
+ not_finite: "not_finite";
1778
+ }>;
1779
+ }, z.ZodAny, "strip">, z.objectInputType<{
1780
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1781
+ message: z.ZodOptional<z.ZodString>;
1782
+ code: z.ZodNativeEnum<{
1783
+ invalid_type: "invalid_type";
1784
+ invalid_literal: "invalid_literal";
1785
+ custom: "custom";
1786
+ invalid_union: "invalid_union";
1787
+ invalid_union_discriminator: "invalid_union_discriminator";
1788
+ invalid_enum_value: "invalid_enum_value";
1789
+ unrecognized_keys: "unrecognized_keys";
1790
+ invalid_arguments: "invalid_arguments";
1791
+ invalid_return_type: "invalid_return_type";
1792
+ invalid_date: "invalid_date";
1793
+ invalid_string: "invalid_string";
1794
+ too_small: "too_small";
1795
+ too_big: "too_big";
1796
+ invalid_intersection_types: "invalid_intersection_types";
1797
+ not_multiple_of: "not_multiple_of";
1798
+ not_finite: "not_finite";
1799
+ }>;
1800
+ }, z.ZodAny, "strip">>, "many">;
1801
+ }, "strip", z.ZodTypeAny, {
1802
+ name: "ZodError";
1803
+ issues: z.objectOutputType<{
1804
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1805
+ message: z.ZodOptional<z.ZodString>;
1806
+ code: z.ZodNativeEnum<{
1807
+ invalid_type: "invalid_type";
1808
+ invalid_literal: "invalid_literal";
1809
+ custom: "custom";
1810
+ invalid_union: "invalid_union";
1811
+ invalid_union_discriminator: "invalid_union_discriminator";
1812
+ invalid_enum_value: "invalid_enum_value";
1813
+ unrecognized_keys: "unrecognized_keys";
1814
+ invalid_arguments: "invalid_arguments";
1815
+ invalid_return_type: "invalid_return_type";
1816
+ invalid_date: "invalid_date";
1817
+ invalid_string: "invalid_string";
1818
+ too_small: "too_small";
1819
+ too_big: "too_big";
1820
+ invalid_intersection_types: "invalid_intersection_types";
1821
+ not_multiple_of: "not_multiple_of";
1822
+ not_finite: "not_finite";
1823
+ }>;
1824
+ }, z.ZodAny, "strip">[];
1825
+ }, {
1826
+ name: "ZodError";
1827
+ issues: z.objectInputType<{
1828
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1829
+ message: z.ZodOptional<z.ZodString>;
1830
+ code: z.ZodNativeEnum<{
1831
+ invalid_type: "invalid_type";
1832
+ invalid_literal: "invalid_literal";
1833
+ custom: "custom";
1834
+ invalid_union: "invalid_union";
1835
+ invalid_union_discriminator: "invalid_union_discriminator";
1836
+ invalid_enum_value: "invalid_enum_value";
1837
+ unrecognized_keys: "unrecognized_keys";
1838
+ invalid_arguments: "invalid_arguments";
1839
+ invalid_return_type: "invalid_return_type";
1840
+ invalid_date: "invalid_date";
1841
+ invalid_string: "invalid_string";
1842
+ too_small: "too_small";
1843
+ too_big: "too_big";
1844
+ invalid_intersection_types: "invalid_intersection_types";
1845
+ not_multiple_of: "not_multiple_of";
1846
+ not_finite: "not_finite";
1847
+ }>;
1848
+ }, z.ZodAny, "strip">[];
1849
+ }>, z.ZodObject<{
1850
+ code: z.ZodType<"NO_TRACK", z.ZodTypeDef, "NO_TRACK">;
1851
+ error: z.ZodType<"The room has no track", z.ZodTypeDef, "The room has no track">;
1852
+ name: z.ZodLiteral<"APIError">;
1853
+ }, "strip", z.ZodTypeAny, {
1854
+ code: "NO_TRACK";
1855
+ error: "The room has no track";
1856
+ name: "APIError";
1857
+ }, {
1858
+ code: "NO_TRACK";
1859
+ error: "The room has no track";
1860
+ name: "APIError";
1861
+ }>]>;
1862
+ };
1863
+ };
1864
+ scene: {
1865
+ description: "Change the scene of a room, listeners get the new scene through the roomScene socket event";
1866
+ method: "POST";
1867
+ body: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1868
+ type: z.ZodLiteral<"addSpeaker">;
1869
+ speaker: z.ZodObject<Omit<{
1870
+ id: z.ZodString;
1871
+ x: z.ZodNumber;
1872
+ y: z.ZodNumber;
1873
+ z: z.ZodNumber;
1874
+ yaw: z.ZodNumber;
1875
+ pitch: z.ZodNumber;
1876
+ directional: z.ZodBoolean;
1877
+ }, "id">, "strip", z.ZodTypeAny, {
1878
+ x: number;
1879
+ y: number;
1880
+ z: number;
1881
+ yaw: number;
1882
+ pitch: number;
1883
+ directional: boolean;
1884
+ }, {
1885
+ x: number;
1886
+ y: number;
1887
+ z: number;
1888
+ yaw: number;
1889
+ pitch: number;
1890
+ directional: boolean;
1891
+ }>;
1892
+ }, "strip", z.ZodTypeAny, {
1893
+ type: "addSpeaker";
1894
+ speaker: {
1895
+ x: number;
1896
+ y: number;
1897
+ z: number;
1898
+ yaw: number;
1899
+ pitch: number;
1900
+ directional: boolean;
1901
+ };
1902
+ }, {
1903
+ type: "addSpeaker";
1904
+ speaker: {
1905
+ x: number;
1906
+ y: number;
1907
+ z: number;
1908
+ yaw: number;
1909
+ pitch: number;
1910
+ directional: boolean;
1911
+ };
1912
+ }>, z.ZodObject<{
1913
+ type: z.ZodLiteral<"addCar">;
1914
+ car: z.ZodObject<Pick<{
1915
+ id: z.ZodString;
1916
+ x: z.ZodNumber;
1917
+ z: z.ZodNumber;
1918
+ yaw: z.ZodNumber;
1919
+ doors: z.ZodArray<z.ZodBoolean, "many">;
1920
+ windows: z.ZodArray<z.ZodBoolean, "many">;
1921
+ radio: z.ZodBoolean;
1922
+ }, "x" | "z" | "yaw">, "strip", z.ZodTypeAny, {
1923
+ x: number;
1924
+ z: number;
1925
+ yaw: number;
1926
+ }, {
1927
+ x: number;
1928
+ z: number;
1929
+ yaw: number;
1930
+ }>;
1931
+ }, "strip", z.ZodTypeAny, {
1932
+ type: "addCar";
1933
+ car: {
1934
+ x: number;
1935
+ z: number;
1936
+ yaw: number;
1937
+ };
1938
+ }, {
1939
+ type: "addCar";
1940
+ car: {
1941
+ x: number;
1942
+ z: number;
1943
+ yaw: number;
1944
+ };
1945
+ }>, z.ZodObject<{
1946
+ type: z.ZodLiteral<"remove">;
1947
+ id: z.ZodString;
1948
+ }, "strip", z.ZodTypeAny, {
1949
+ type: "remove";
1950
+ id: string;
1951
+ }, {
1952
+ type: "remove";
1953
+ id: string;
1954
+ }>, z.ZodObject<{
1955
+ type: z.ZodLiteral<"carDoor">;
1956
+ id: z.ZodString;
1957
+ index: z.ZodNumber;
1958
+ open: z.ZodBoolean;
1959
+ }, "strip", z.ZodTypeAny, {
1960
+ type: "carDoor";
1961
+ id: string;
1962
+ index: number;
1963
+ open: boolean;
1964
+ }, {
1965
+ type: "carDoor";
1966
+ id: string;
1967
+ index: number;
1968
+ open: boolean;
1969
+ }>, z.ZodObject<{
1970
+ type: z.ZodLiteral<"carWindow">;
1971
+ id: z.ZodString;
1972
+ index: z.ZodNumber;
1973
+ open: z.ZodBoolean;
1974
+ }, "strip", z.ZodTypeAny, {
1975
+ type: "carWindow";
1976
+ id: string;
1977
+ index: number;
1978
+ open: boolean;
1979
+ }, {
1980
+ type: "carWindow";
1981
+ id: string;
1982
+ index: number;
1983
+ open: boolean;
1984
+ }>, z.ZodObject<{
1985
+ type: z.ZodLiteral<"carRadio">;
1986
+ id: z.ZodString;
1987
+ on: z.ZodBoolean;
1988
+ }, "strip", z.ZodTypeAny, {
1989
+ type: "carRadio";
1990
+ id: string;
1991
+ on: boolean;
1992
+ }, {
1993
+ type: "carRadio";
1994
+ id: string;
1995
+ on: boolean;
1996
+ }>, z.ZodObject<{
1997
+ type: z.ZodLiteral<"reset">;
1998
+ }, "strip", z.ZodTypeAny, {
1999
+ type: "reset";
2000
+ }, {
2001
+ type: "reset";
2002
+ }>]>;
2003
+ path: "/room/:roomId/scene";
2004
+ responses: {
2005
+ 500: z.ZodObject<{
2006
+ code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2007
+ error: z.ZodType<string, z.ZodTypeDef, string>;
2008
+ name: z.ZodLiteral<"APIError">;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ code: "INTERNAL_SERVER_ERROR";
2011
+ error: string;
2012
+ name: "APIError";
2013
+ }, {
2014
+ code: "INTERNAL_SERVER_ERROR";
2015
+ error: string;
2016
+ name: "APIError";
2017
+ }>;
2018
+ 404: z.ZodObject<{
2019
+ code: z.ZodType<"ROOM_NOT_FOUND", z.ZodTypeDef, "ROOM_NOT_FOUND">;
2020
+ error: z.ZodType<"The requested room was not found", z.ZodTypeDef, "The requested room was not found">;
2021
+ name: z.ZodLiteral<"APIError">;
2022
+ }, "strip", z.ZodTypeAny, {
2023
+ code: "ROOM_NOT_FOUND";
2024
+ error: "The requested room was not found";
2025
+ name: "APIError";
2026
+ }, {
2027
+ code: "ROOM_NOT_FOUND";
2028
+ error: "The requested room was not found";
2029
+ name: "APIError";
2030
+ }>;
2031
+ 401: z.ZodObject<{
2032
+ code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
2033
+ error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
2034
+ name: z.ZodLiteral<"APIError">;
2035
+ }, "strip", z.ZodTypeAny, {
2036
+ code: "UNAUTHORIZED";
2037
+ error: "Unauthorized";
2038
+ name: "APIError";
2039
+ }, {
2040
+ code: "UNAUTHORIZED";
2041
+ error: "Unauthorized";
2042
+ name: "APIError";
2043
+ }>;
2044
+ 403: z.ZodObject<{
2045
+ code: z.ZodType<"FORBIDDEN", z.ZodTypeDef, "FORBIDDEN">;
2046
+ error: z.ZodType<"Forbidden", z.ZodTypeDef, "Forbidden">;
2047
+ name: z.ZodLiteral<"APIError">;
2048
+ }, "strip", z.ZodTypeAny, {
2049
+ code: "FORBIDDEN";
2050
+ error: "Forbidden";
2051
+ name: "APIError";
2052
+ }, {
2053
+ code: "FORBIDDEN";
2054
+ error: "Forbidden";
2055
+ name: "APIError";
2056
+ }>;
2057
+ 200: typeof import("@ts-rest/core").ContractNoBody;
2058
+ 400: z.ZodUnion<[z.ZodObject<{
2059
+ name: z.ZodLiteral<"ZodError">;
2060
+ issues: z.ZodArray<z.ZodObject<{
2061
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
2062
+ message: z.ZodOptional<z.ZodString>;
2063
+ code: z.ZodNativeEnum<{
2064
+ invalid_type: "invalid_type";
2065
+ invalid_literal: "invalid_literal";
2066
+ custom: "custom";
2067
+ invalid_union: "invalid_union";
2068
+ invalid_union_discriminator: "invalid_union_discriminator";
2069
+ invalid_enum_value: "invalid_enum_value";
2070
+ unrecognized_keys: "unrecognized_keys";
2071
+ invalid_arguments: "invalid_arguments";
2072
+ invalid_return_type: "invalid_return_type";
2073
+ invalid_date: "invalid_date";
2074
+ invalid_string: "invalid_string";
2075
+ too_small: "too_small";
2076
+ too_big: "too_big";
2077
+ invalid_intersection_types: "invalid_intersection_types";
2078
+ not_multiple_of: "not_multiple_of";
2079
+ not_finite: "not_finite";
2080
+ }>;
2081
+ }, "strip", z.ZodAny, z.objectOutputType<{
2082
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
2083
+ message: z.ZodOptional<z.ZodString>;
2084
+ code: z.ZodNativeEnum<{
2085
+ invalid_type: "invalid_type";
2086
+ invalid_literal: "invalid_literal";
2087
+ custom: "custom";
2088
+ invalid_union: "invalid_union";
2089
+ invalid_union_discriminator: "invalid_union_discriminator";
2090
+ invalid_enum_value: "invalid_enum_value";
2091
+ unrecognized_keys: "unrecognized_keys";
2092
+ invalid_arguments: "invalid_arguments";
2093
+ invalid_return_type: "invalid_return_type";
2094
+ invalid_date: "invalid_date";
2095
+ invalid_string: "invalid_string";
2096
+ too_small: "too_small";
2097
+ too_big: "too_big";
2098
+ invalid_intersection_types: "invalid_intersection_types";
2099
+ not_multiple_of: "not_multiple_of";
2100
+ not_finite: "not_finite";
2101
+ }>;
2102
+ }, z.ZodAny, "strip">, z.objectInputType<{
2103
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
2104
+ message: z.ZodOptional<z.ZodString>;
2105
+ code: z.ZodNativeEnum<{
2106
+ invalid_type: "invalid_type";
2107
+ invalid_literal: "invalid_literal";
2108
+ custom: "custom";
2109
+ invalid_union: "invalid_union";
2110
+ invalid_union_discriminator: "invalid_union_discriminator";
2111
+ invalid_enum_value: "invalid_enum_value";
2112
+ unrecognized_keys: "unrecognized_keys";
2113
+ invalid_arguments: "invalid_arguments";
2114
+ invalid_return_type: "invalid_return_type";
2115
+ invalid_date: "invalid_date";
2116
+ invalid_string: "invalid_string";
2117
+ too_small: "too_small";
2118
+ too_big: "too_big";
2119
+ invalid_intersection_types: "invalid_intersection_types";
2120
+ not_multiple_of: "not_multiple_of";
2121
+ not_finite: "not_finite";
2122
+ }>;
2123
+ }, z.ZodAny, "strip">>, "many">;
2124
+ }, "strip", z.ZodTypeAny, {
2125
+ name: "ZodError";
2126
+ issues: z.objectOutputType<{
2127
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
2128
+ message: z.ZodOptional<z.ZodString>;
2129
+ code: z.ZodNativeEnum<{
2130
+ invalid_type: "invalid_type";
2131
+ invalid_literal: "invalid_literal";
2132
+ custom: "custom";
2133
+ invalid_union: "invalid_union";
2134
+ invalid_union_discriminator: "invalid_union_discriminator";
2135
+ invalid_enum_value: "invalid_enum_value";
2136
+ unrecognized_keys: "unrecognized_keys";
2137
+ invalid_arguments: "invalid_arguments";
2138
+ invalid_return_type: "invalid_return_type";
2139
+ invalid_date: "invalid_date";
2140
+ invalid_string: "invalid_string";
2141
+ too_small: "too_small";
2142
+ too_big: "too_big";
2143
+ invalid_intersection_types: "invalid_intersection_types";
2144
+ not_multiple_of: "not_multiple_of";
2145
+ not_finite: "not_finite";
2146
+ }>;
2147
+ }, z.ZodAny, "strip">[];
2148
+ }, {
2149
+ name: "ZodError";
2150
+ issues: z.objectInputType<{
2151
+ path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
2152
+ message: z.ZodOptional<z.ZodString>;
2153
+ code: z.ZodNativeEnum<{
2154
+ invalid_type: "invalid_type";
2155
+ invalid_literal: "invalid_literal";
2156
+ custom: "custom";
2157
+ invalid_union: "invalid_union";
2158
+ invalid_union_discriminator: "invalid_union_discriminator";
2159
+ invalid_enum_value: "invalid_enum_value";
2160
+ unrecognized_keys: "unrecognized_keys";
2161
+ invalid_arguments: "invalid_arguments";
2162
+ invalid_return_type: "invalid_return_type";
2163
+ invalid_date: "invalid_date";
2164
+ invalid_string: "invalid_string";
2165
+ too_small: "too_small";
2166
+ too_big: "too_big";
2167
+ invalid_intersection_types: "invalid_intersection_types";
2168
+ not_multiple_of: "not_multiple_of";
2169
+ not_finite: "not_finite";
2170
+ }>;
2171
+ }, z.ZodAny, "strip">[];
2172
+ }>, z.ZodObject<{
2173
+ code: z.ZodType<"SCENE_FULL", z.ZodTypeDef, "SCENE_FULL">;
2174
+ error: z.ZodType<"The scene can't have more of this object", z.ZodTypeDef, "The scene can't have more of this object">;
2175
+ name: z.ZodLiteral<"APIError">;
2176
+ }, "strip", z.ZodTypeAny, {
2177
+ code: "SCENE_FULL";
2178
+ error: "The scene can't have more of this object";
2179
+ name: "APIError";
2180
+ }, {
2181
+ code: "SCENE_FULL";
2182
+ error: "The scene can't have more of this object";
2183
+ name: "APIError";
2184
+ }>, z.ZodObject<{
2185
+ code: z.ZodType<"SCENE_OBJECT_NOT_FOUND", z.ZodTypeDef, "SCENE_OBJECT_NOT_FOUND">;
2186
+ error: z.ZodType<"The scene object was not found", z.ZodTypeDef, "The scene object was not found">;
2187
+ name: z.ZodLiteral<"APIError">;
2188
+ }, "strip", z.ZodTypeAny, {
2189
+ code: "SCENE_OBJECT_NOT_FOUND";
2190
+ error: "The scene object was not found";
2191
+ name: "APIError";
2192
+ }, {
2193
+ code: "SCENE_OBJECT_NOT_FOUND";
2194
+ error: "The scene object was not found";
2195
+ name: "APIError";
2196
+ }>]>;
2197
+ };
2198
+ };
2199
+ };
2200
+ export default _default;