@darco2903/altv-web-api 1.2.0 → 1.4.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.
@@ -164,6 +164,352 @@ declare const _default: {
164
164
  }>;
165
165
  };
166
166
  };
167
+ search: {
168
+ query: import("zod").ZodObject<{
169
+ q: import("zod").ZodString;
170
+ }, "strip", import("zod").ZodTypeAny, {
171
+ q: string;
172
+ }, {
173
+ q: string;
174
+ }>;
175
+ description: "Search YouTube videos";
176
+ method: "GET";
177
+ path: "/api/v2/youtube/search";
178
+ responses: {
179
+ 200: import("zod").ZodObject<{
180
+ results: import("zod").ZodArray<import("zod").ZodObject<{
181
+ videoId: import("zod").ZodString;
182
+ title: import("zod").ZodString;
183
+ channel: import("zod").ZodNullable<import("zod").ZodString>;
184
+ duration: import("zod").ZodNullable<import("zod").ZodNumber>;
185
+ thumbnail: import("zod").ZodNullable<import("zod").ZodString>;
186
+ blocked: import("zod").ZodNullable<import("zod").ZodEnum<["live", "too_long"]>>;
187
+ }, "strip", import("zod").ZodTypeAny, {
188
+ videoId: string;
189
+ title: string;
190
+ duration: number | null;
191
+ channel: string | null;
192
+ thumbnail: string | null;
193
+ blocked: "live" | "too_long" | null;
194
+ }, {
195
+ videoId: string;
196
+ title: string;
197
+ duration: number | null;
198
+ channel: string | null;
199
+ thumbnail: string | null;
200
+ blocked: "live" | "too_long" | null;
201
+ }>, "many">;
202
+ }, "strip", import("zod").ZodTypeAny, {
203
+ results: {
204
+ videoId: string;
205
+ title: string;
206
+ duration: number | null;
207
+ channel: string | null;
208
+ thumbnail: string | null;
209
+ blocked: "live" | "too_long" | null;
210
+ }[];
211
+ }, {
212
+ results: {
213
+ videoId: string;
214
+ title: string;
215
+ duration: number | null;
216
+ channel: string | null;
217
+ thumbnail: string | null;
218
+ blocked: "live" | "too_long" | null;
219
+ }[];
220
+ }>;
221
+ 400: import("zod").ZodObject<{
222
+ name: import("zod").ZodLiteral<"ZodError">;
223
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
224
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
225
+ message: import("zod").ZodOptional<import("zod").ZodString>;
226
+ code: import("zod").ZodNativeEnum<{
227
+ invalid_type: "invalid_type";
228
+ invalid_literal: "invalid_literal";
229
+ custom: "custom";
230
+ invalid_union: "invalid_union";
231
+ invalid_union_discriminator: "invalid_union_discriminator";
232
+ invalid_enum_value: "invalid_enum_value";
233
+ unrecognized_keys: "unrecognized_keys";
234
+ invalid_arguments: "invalid_arguments";
235
+ invalid_return_type: "invalid_return_type";
236
+ invalid_date: "invalid_date";
237
+ invalid_string: "invalid_string";
238
+ too_small: "too_small";
239
+ too_big: "too_big";
240
+ invalid_intersection_types: "invalid_intersection_types";
241
+ not_multiple_of: "not_multiple_of";
242
+ not_finite: "not_finite";
243
+ }>;
244
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
245
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
246
+ message: import("zod").ZodOptional<import("zod").ZodString>;
247
+ code: import("zod").ZodNativeEnum<{
248
+ invalid_type: "invalid_type";
249
+ invalid_literal: "invalid_literal";
250
+ custom: "custom";
251
+ invalid_union: "invalid_union";
252
+ invalid_union_discriminator: "invalid_union_discriminator";
253
+ invalid_enum_value: "invalid_enum_value";
254
+ unrecognized_keys: "unrecognized_keys";
255
+ invalid_arguments: "invalid_arguments";
256
+ invalid_return_type: "invalid_return_type";
257
+ invalid_date: "invalid_date";
258
+ invalid_string: "invalid_string";
259
+ too_small: "too_small";
260
+ too_big: "too_big";
261
+ invalid_intersection_types: "invalid_intersection_types";
262
+ not_multiple_of: "not_multiple_of";
263
+ not_finite: "not_finite";
264
+ }>;
265
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
266
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
267
+ message: import("zod").ZodOptional<import("zod").ZodString>;
268
+ code: import("zod").ZodNativeEnum<{
269
+ invalid_type: "invalid_type";
270
+ invalid_literal: "invalid_literal";
271
+ custom: "custom";
272
+ invalid_union: "invalid_union";
273
+ invalid_union_discriminator: "invalid_union_discriminator";
274
+ invalid_enum_value: "invalid_enum_value";
275
+ unrecognized_keys: "unrecognized_keys";
276
+ invalid_arguments: "invalid_arguments";
277
+ invalid_return_type: "invalid_return_type";
278
+ invalid_date: "invalid_date";
279
+ invalid_string: "invalid_string";
280
+ too_small: "too_small";
281
+ too_big: "too_big";
282
+ invalid_intersection_types: "invalid_intersection_types";
283
+ not_multiple_of: "not_multiple_of";
284
+ not_finite: "not_finite";
285
+ }>;
286
+ }, import("zod").ZodAny, "strip">>, "many">;
287
+ }, "strip", import("zod").ZodTypeAny, {
288
+ name: "ZodError";
289
+ issues: import("zod").objectOutputType<{
290
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
291
+ message: import("zod").ZodOptional<import("zod").ZodString>;
292
+ code: import("zod").ZodNativeEnum<{
293
+ invalid_type: "invalid_type";
294
+ invalid_literal: "invalid_literal";
295
+ custom: "custom";
296
+ invalid_union: "invalid_union";
297
+ invalid_union_discriminator: "invalid_union_discriminator";
298
+ invalid_enum_value: "invalid_enum_value";
299
+ unrecognized_keys: "unrecognized_keys";
300
+ invalid_arguments: "invalid_arguments";
301
+ invalid_return_type: "invalid_return_type";
302
+ invalid_date: "invalid_date";
303
+ invalid_string: "invalid_string";
304
+ too_small: "too_small";
305
+ too_big: "too_big";
306
+ invalid_intersection_types: "invalid_intersection_types";
307
+ not_multiple_of: "not_multiple_of";
308
+ not_finite: "not_finite";
309
+ }>;
310
+ }, import("zod").ZodAny, "strip">[];
311
+ }, {
312
+ name: "ZodError";
313
+ issues: import("zod").objectInputType<{
314
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
315
+ message: import("zod").ZodOptional<import("zod").ZodString>;
316
+ code: import("zod").ZodNativeEnum<{
317
+ invalid_type: "invalid_type";
318
+ invalid_literal: "invalid_literal";
319
+ custom: "custom";
320
+ invalid_union: "invalid_union";
321
+ invalid_union_discriminator: "invalid_union_discriminator";
322
+ invalid_enum_value: "invalid_enum_value";
323
+ unrecognized_keys: "unrecognized_keys";
324
+ invalid_arguments: "invalid_arguments";
325
+ invalid_return_type: "invalid_return_type";
326
+ invalid_date: "invalid_date";
327
+ invalid_string: "invalid_string";
328
+ too_small: "too_small";
329
+ too_big: "too_big";
330
+ invalid_intersection_types: "invalid_intersection_types";
331
+ not_multiple_of: "not_multiple_of";
332
+ not_finite: "not_finite";
333
+ }>;
334
+ }, import("zod").ZodAny, "strip">[];
335
+ }>;
336
+ 429: import("zod").ZodObject<{
337
+ code: import("zod").ZodType<"TOO_MANY_SEARCHES", import("zod").ZodTypeDef, "TOO_MANY_SEARCHES">;
338
+ error: import("zod").ZodType<"Too many searches are running", import("zod").ZodTypeDef, "Too many searches are running">;
339
+ name: import("zod").ZodLiteral<"APIError">;
340
+ }, "strip", import("zod").ZodTypeAny, {
341
+ code: "TOO_MANY_SEARCHES";
342
+ error: "Too many searches are running";
343
+ name: "APIError";
344
+ }, {
345
+ code: "TOO_MANY_SEARCHES";
346
+ error: "Too many searches are running";
347
+ name: "APIError";
348
+ }>;
349
+ 500: import("zod").ZodObject<{
350
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
351
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
352
+ name: import("zod").ZodLiteral<"APIError">;
353
+ }, "strip", import("zod").ZodTypeAny, {
354
+ code: "INTERNAL_SERVER_ERROR";
355
+ error: string;
356
+ name: "APIError";
357
+ }, {
358
+ code: "INTERNAL_SERVER_ERROR";
359
+ error: string;
360
+ name: "APIError";
361
+ }>;
362
+ };
363
+ };
364
+ suggest: {
365
+ query: import("zod").ZodObject<{
366
+ q: import("zod").ZodString;
367
+ }, "strip", import("zod").ZodTypeAny, {
368
+ q: string;
369
+ }, {
370
+ q: string;
371
+ }>;
372
+ description: "Get YouTube search suggestions for a partial query";
373
+ method: "GET";
374
+ path: "/api/v2/youtube/suggest";
375
+ responses: {
376
+ 200: import("zod").ZodObject<{
377
+ suggestions: import("zod").ZodArray<import("zod").ZodString, "many">;
378
+ }, "strip", import("zod").ZodTypeAny, {
379
+ suggestions: string[];
380
+ }, {
381
+ suggestions: string[];
382
+ }>;
383
+ 400: import("zod").ZodObject<{
384
+ name: import("zod").ZodLiteral<"ZodError">;
385
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
386
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
387
+ message: import("zod").ZodOptional<import("zod").ZodString>;
388
+ code: import("zod").ZodNativeEnum<{
389
+ invalid_type: "invalid_type";
390
+ invalid_literal: "invalid_literal";
391
+ custom: "custom";
392
+ invalid_union: "invalid_union";
393
+ invalid_union_discriminator: "invalid_union_discriminator";
394
+ invalid_enum_value: "invalid_enum_value";
395
+ unrecognized_keys: "unrecognized_keys";
396
+ invalid_arguments: "invalid_arguments";
397
+ invalid_return_type: "invalid_return_type";
398
+ invalid_date: "invalid_date";
399
+ invalid_string: "invalid_string";
400
+ too_small: "too_small";
401
+ too_big: "too_big";
402
+ invalid_intersection_types: "invalid_intersection_types";
403
+ not_multiple_of: "not_multiple_of";
404
+ not_finite: "not_finite";
405
+ }>;
406
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
407
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
408
+ message: import("zod").ZodOptional<import("zod").ZodString>;
409
+ code: import("zod").ZodNativeEnum<{
410
+ invalid_type: "invalid_type";
411
+ invalid_literal: "invalid_literal";
412
+ custom: "custom";
413
+ invalid_union: "invalid_union";
414
+ invalid_union_discriminator: "invalid_union_discriminator";
415
+ invalid_enum_value: "invalid_enum_value";
416
+ unrecognized_keys: "unrecognized_keys";
417
+ invalid_arguments: "invalid_arguments";
418
+ invalid_return_type: "invalid_return_type";
419
+ invalid_date: "invalid_date";
420
+ invalid_string: "invalid_string";
421
+ too_small: "too_small";
422
+ too_big: "too_big";
423
+ invalid_intersection_types: "invalid_intersection_types";
424
+ not_multiple_of: "not_multiple_of";
425
+ not_finite: "not_finite";
426
+ }>;
427
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
428
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
429
+ message: import("zod").ZodOptional<import("zod").ZodString>;
430
+ code: import("zod").ZodNativeEnum<{
431
+ invalid_type: "invalid_type";
432
+ invalid_literal: "invalid_literal";
433
+ custom: "custom";
434
+ invalid_union: "invalid_union";
435
+ invalid_union_discriminator: "invalid_union_discriminator";
436
+ invalid_enum_value: "invalid_enum_value";
437
+ unrecognized_keys: "unrecognized_keys";
438
+ invalid_arguments: "invalid_arguments";
439
+ invalid_return_type: "invalid_return_type";
440
+ invalid_date: "invalid_date";
441
+ invalid_string: "invalid_string";
442
+ too_small: "too_small";
443
+ too_big: "too_big";
444
+ invalid_intersection_types: "invalid_intersection_types";
445
+ not_multiple_of: "not_multiple_of";
446
+ not_finite: "not_finite";
447
+ }>;
448
+ }, import("zod").ZodAny, "strip">>, "many">;
449
+ }, "strip", import("zod").ZodTypeAny, {
450
+ name: "ZodError";
451
+ issues: import("zod").objectOutputType<{
452
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
453
+ message: import("zod").ZodOptional<import("zod").ZodString>;
454
+ code: import("zod").ZodNativeEnum<{
455
+ invalid_type: "invalid_type";
456
+ invalid_literal: "invalid_literal";
457
+ custom: "custom";
458
+ invalid_union: "invalid_union";
459
+ invalid_union_discriminator: "invalid_union_discriminator";
460
+ invalid_enum_value: "invalid_enum_value";
461
+ unrecognized_keys: "unrecognized_keys";
462
+ invalid_arguments: "invalid_arguments";
463
+ invalid_return_type: "invalid_return_type";
464
+ invalid_date: "invalid_date";
465
+ invalid_string: "invalid_string";
466
+ too_small: "too_small";
467
+ too_big: "too_big";
468
+ invalid_intersection_types: "invalid_intersection_types";
469
+ not_multiple_of: "not_multiple_of";
470
+ not_finite: "not_finite";
471
+ }>;
472
+ }, import("zod").ZodAny, "strip">[];
473
+ }, {
474
+ name: "ZodError";
475
+ issues: import("zod").objectInputType<{
476
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
477
+ message: import("zod").ZodOptional<import("zod").ZodString>;
478
+ code: import("zod").ZodNativeEnum<{
479
+ invalid_type: "invalid_type";
480
+ invalid_literal: "invalid_literal";
481
+ custom: "custom";
482
+ invalid_union: "invalid_union";
483
+ invalid_union_discriminator: "invalid_union_discriminator";
484
+ invalid_enum_value: "invalid_enum_value";
485
+ unrecognized_keys: "unrecognized_keys";
486
+ invalid_arguments: "invalid_arguments";
487
+ invalid_return_type: "invalid_return_type";
488
+ invalid_date: "invalid_date";
489
+ invalid_string: "invalid_string";
490
+ too_small: "too_small";
491
+ too_big: "too_big";
492
+ invalid_intersection_types: "invalid_intersection_types";
493
+ not_multiple_of: "not_multiple_of";
494
+ not_finite: "not_finite";
495
+ }>;
496
+ }, import("zod").ZodAny, "strip">[];
497
+ }>;
498
+ 500: import("zod").ZodObject<{
499
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
500
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
501
+ name: import("zod").ZodLiteral<"APIError">;
502
+ }, "strip", import("zod").ZodTypeAny, {
503
+ code: "INTERNAL_SERVER_ERROR";
504
+ error: string;
505
+ name: "APIError";
506
+ }, {
507
+ code: "INTERNAL_SERVER_ERROR";
508
+ error: string;
509
+ name: "APIError";
510
+ }>;
511
+ };
512
+ };
167
513
  };
168
514
  sync: {
169
515
  description: "Synchronize time with the server";
@@ -493,6 +839,96 @@ declare const _default: {
493
839
  currentTime: import("zod").ZodNumber;
494
840
  url: import("zod").ZodString;
495
841
  paused: import("zod").ZodBoolean;
842
+ scene: import("zod").ZodObject<{
843
+ speakers: import("zod").ZodArray<import("zod").ZodObject<{
844
+ id: import("zod").ZodString;
845
+ x: import("zod").ZodNumber;
846
+ y: import("zod").ZodNumber;
847
+ z: import("zod").ZodNumber;
848
+ yaw: import("zod").ZodNumber;
849
+ pitch: import("zod").ZodNumber;
850
+ directional: import("zod").ZodBoolean;
851
+ }, "strip", import("zod").ZodTypeAny, {
852
+ id: string;
853
+ x: number;
854
+ y: number;
855
+ z: number;
856
+ yaw: number;
857
+ pitch: number;
858
+ directional: boolean;
859
+ }, {
860
+ id: string;
861
+ x: number;
862
+ y: number;
863
+ z: number;
864
+ yaw: number;
865
+ pitch: number;
866
+ directional: boolean;
867
+ }>, "many">;
868
+ cars: import("zod").ZodArray<import("zod").ZodObject<{
869
+ id: import("zod").ZodString;
870
+ x: import("zod").ZodNumber;
871
+ z: import("zod").ZodNumber;
872
+ yaw: import("zod").ZodNumber;
873
+ doors: import("zod").ZodArray<import("zod").ZodBoolean, "many">;
874
+ windows: import("zod").ZodArray<import("zod").ZodBoolean, "many">;
875
+ radio: import("zod").ZodBoolean;
876
+ }, "strip", import("zod").ZodTypeAny, {
877
+ id: string;
878
+ x: number;
879
+ z: number;
880
+ yaw: number;
881
+ doors: boolean[];
882
+ windows: boolean[];
883
+ radio: boolean;
884
+ }, {
885
+ id: string;
886
+ x: number;
887
+ z: number;
888
+ yaw: number;
889
+ doors: boolean[];
890
+ windows: boolean[];
891
+ radio: boolean;
892
+ }>, "many">;
893
+ }, "strip", import("zod").ZodTypeAny, {
894
+ speakers: {
895
+ id: string;
896
+ x: number;
897
+ y: number;
898
+ z: number;
899
+ yaw: number;
900
+ pitch: number;
901
+ directional: boolean;
902
+ }[];
903
+ cars: {
904
+ id: string;
905
+ x: number;
906
+ z: number;
907
+ yaw: number;
908
+ doors: boolean[];
909
+ windows: boolean[];
910
+ radio: boolean;
911
+ }[];
912
+ }, {
913
+ speakers: {
914
+ id: string;
915
+ x: number;
916
+ y: number;
917
+ z: number;
918
+ yaw: number;
919
+ pitch: number;
920
+ directional: boolean;
921
+ }[];
922
+ cars: {
923
+ id: string;
924
+ x: number;
925
+ z: number;
926
+ yaw: number;
927
+ doors: boolean[];
928
+ windows: boolean[];
929
+ radio: boolean;
930
+ }[];
931
+ }>;
496
932
  }, "strip", import("zod").ZodTypeAny, {
497
933
  streamId: string;
498
934
  title: string;
@@ -501,6 +937,26 @@ declare const _default: {
501
937
  currentTime: number;
502
938
  url: string;
503
939
  paused: boolean;
940
+ scene: {
941
+ speakers: {
942
+ id: string;
943
+ x: number;
944
+ y: number;
945
+ z: number;
946
+ yaw: number;
947
+ pitch: number;
948
+ directional: boolean;
949
+ }[];
950
+ cars: {
951
+ id: string;
952
+ x: number;
953
+ z: number;
954
+ yaw: number;
955
+ doors: boolean[];
956
+ windows: boolean[];
957
+ radio: boolean;
958
+ }[];
959
+ };
504
960
  }, {
505
961
  streamId: string;
506
962
  title: string;
@@ -509,6 +965,26 @@ declare const _default: {
509
965
  currentTime: number;
510
966
  url: string;
511
967
  paused: boolean;
968
+ scene: {
969
+ speakers: {
970
+ id: string;
971
+ x: number;
972
+ y: number;
973
+ z: number;
974
+ yaw: number;
975
+ pitch: number;
976
+ directional: boolean;
977
+ }[];
978
+ cars: {
979
+ id: string;
980
+ x: number;
981
+ z: number;
982
+ yaw: number;
983
+ doors: boolean[];
984
+ windows: boolean[];
985
+ radio: boolean;
986
+ }[];
987
+ };
512
988
  }>;
513
989
  400: import("zod").ZodUnion<[import("zod").ZodObject<{
514
990
  name: import("zod").ZodLiteral<"ZodError">;
@@ -1145,6 +1621,315 @@ declare const _default: {
1145
1621
  }>;
1146
1622
  };
1147
1623
  };
1624
+ scene: {
1625
+ description: "Change the scene of a media stream, listeners get the new scene through the mediaStreamScene socket event";
1626
+ method: "POST";
1627
+ body: import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
1628
+ type: import("zod").ZodLiteral<"addSpeaker">;
1629
+ speaker: import("zod").ZodObject<Omit<{
1630
+ id: import("zod").ZodString;
1631
+ x: import("zod").ZodNumber;
1632
+ y: import("zod").ZodNumber;
1633
+ z: import("zod").ZodNumber;
1634
+ yaw: import("zod").ZodNumber;
1635
+ pitch: import("zod").ZodNumber;
1636
+ directional: import("zod").ZodBoolean;
1637
+ }, "id">, "strip", import("zod").ZodTypeAny, {
1638
+ x: number;
1639
+ y: number;
1640
+ z: number;
1641
+ yaw: number;
1642
+ pitch: number;
1643
+ directional: boolean;
1644
+ }, {
1645
+ x: number;
1646
+ y: number;
1647
+ z: number;
1648
+ yaw: number;
1649
+ pitch: number;
1650
+ directional: boolean;
1651
+ }>;
1652
+ }, "strip", import("zod").ZodTypeAny, {
1653
+ type: "addSpeaker";
1654
+ speaker: {
1655
+ x: number;
1656
+ y: number;
1657
+ z: number;
1658
+ yaw: number;
1659
+ pitch: number;
1660
+ directional: boolean;
1661
+ };
1662
+ }, {
1663
+ type: "addSpeaker";
1664
+ speaker: {
1665
+ x: number;
1666
+ y: number;
1667
+ z: number;
1668
+ yaw: number;
1669
+ pitch: number;
1670
+ directional: boolean;
1671
+ };
1672
+ }>, import("zod").ZodObject<{
1673
+ type: import("zod").ZodLiteral<"addCar">;
1674
+ car: import("zod").ZodObject<Pick<{
1675
+ id: import("zod").ZodString;
1676
+ x: import("zod").ZodNumber;
1677
+ z: import("zod").ZodNumber;
1678
+ yaw: import("zod").ZodNumber;
1679
+ doors: import("zod").ZodArray<import("zod").ZodBoolean, "many">;
1680
+ windows: import("zod").ZodArray<import("zod").ZodBoolean, "many">;
1681
+ radio: import("zod").ZodBoolean;
1682
+ }, "x" | "z" | "yaw">, "strip", import("zod").ZodTypeAny, {
1683
+ x: number;
1684
+ z: number;
1685
+ yaw: number;
1686
+ }, {
1687
+ x: number;
1688
+ z: number;
1689
+ yaw: number;
1690
+ }>;
1691
+ }, "strip", import("zod").ZodTypeAny, {
1692
+ type: "addCar";
1693
+ car: {
1694
+ x: number;
1695
+ z: number;
1696
+ yaw: number;
1697
+ };
1698
+ }, {
1699
+ type: "addCar";
1700
+ car: {
1701
+ x: number;
1702
+ z: number;
1703
+ yaw: number;
1704
+ };
1705
+ }>, import("zod").ZodObject<{
1706
+ type: import("zod").ZodLiteral<"remove">;
1707
+ id: import("zod").ZodString;
1708
+ }, "strip", import("zod").ZodTypeAny, {
1709
+ type: "remove";
1710
+ id: string;
1711
+ }, {
1712
+ type: "remove";
1713
+ id: string;
1714
+ }>, import("zod").ZodObject<{
1715
+ type: import("zod").ZodLiteral<"carDoor">;
1716
+ id: import("zod").ZodString;
1717
+ index: import("zod").ZodNumber;
1718
+ open: import("zod").ZodBoolean;
1719
+ }, "strip", import("zod").ZodTypeAny, {
1720
+ type: "carDoor";
1721
+ id: string;
1722
+ index: number;
1723
+ open: boolean;
1724
+ }, {
1725
+ type: "carDoor";
1726
+ id: string;
1727
+ index: number;
1728
+ open: boolean;
1729
+ }>, import("zod").ZodObject<{
1730
+ type: import("zod").ZodLiteral<"carWindow">;
1731
+ id: import("zod").ZodString;
1732
+ index: import("zod").ZodNumber;
1733
+ open: import("zod").ZodBoolean;
1734
+ }, "strip", import("zod").ZodTypeAny, {
1735
+ type: "carWindow";
1736
+ id: string;
1737
+ index: number;
1738
+ open: boolean;
1739
+ }, {
1740
+ type: "carWindow";
1741
+ id: string;
1742
+ index: number;
1743
+ open: boolean;
1744
+ }>, import("zod").ZodObject<{
1745
+ type: import("zod").ZodLiteral<"carRadio">;
1746
+ id: import("zod").ZodString;
1747
+ on: import("zod").ZodBoolean;
1748
+ }, "strip", import("zod").ZodTypeAny, {
1749
+ type: "carRadio";
1750
+ id: string;
1751
+ on: boolean;
1752
+ }, {
1753
+ type: "carRadio";
1754
+ id: string;
1755
+ on: boolean;
1756
+ }>, import("zod").ZodObject<{
1757
+ type: import("zod").ZodLiteral<"reset">;
1758
+ }, "strip", import("zod").ZodTypeAny, {
1759
+ type: "reset";
1760
+ }, {
1761
+ type: "reset";
1762
+ }>]>;
1763
+ path: "/api/v2/media-stream/scene/:streamId";
1764
+ responses: {
1765
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1766
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1767
+ name: import("zod").ZodLiteral<"ZodError">;
1768
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1769
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1770
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1771
+ code: import("zod").ZodNativeEnum<{
1772
+ invalid_type: "invalid_type";
1773
+ invalid_literal: "invalid_literal";
1774
+ custom: "custom";
1775
+ invalid_union: "invalid_union";
1776
+ invalid_union_discriminator: "invalid_union_discriminator";
1777
+ invalid_enum_value: "invalid_enum_value";
1778
+ unrecognized_keys: "unrecognized_keys";
1779
+ invalid_arguments: "invalid_arguments";
1780
+ invalid_return_type: "invalid_return_type";
1781
+ invalid_date: "invalid_date";
1782
+ invalid_string: "invalid_string";
1783
+ too_small: "too_small";
1784
+ too_big: "too_big";
1785
+ invalid_intersection_types: "invalid_intersection_types";
1786
+ not_multiple_of: "not_multiple_of";
1787
+ not_finite: "not_finite";
1788
+ }>;
1789
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1790
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1791
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1792
+ code: import("zod").ZodNativeEnum<{
1793
+ invalid_type: "invalid_type";
1794
+ invalid_literal: "invalid_literal";
1795
+ custom: "custom";
1796
+ invalid_union: "invalid_union";
1797
+ invalid_union_discriminator: "invalid_union_discriminator";
1798
+ invalid_enum_value: "invalid_enum_value";
1799
+ unrecognized_keys: "unrecognized_keys";
1800
+ invalid_arguments: "invalid_arguments";
1801
+ invalid_return_type: "invalid_return_type";
1802
+ invalid_date: "invalid_date";
1803
+ invalid_string: "invalid_string";
1804
+ too_small: "too_small";
1805
+ too_big: "too_big";
1806
+ invalid_intersection_types: "invalid_intersection_types";
1807
+ not_multiple_of: "not_multiple_of";
1808
+ not_finite: "not_finite";
1809
+ }>;
1810
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1811
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1812
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1813
+ code: import("zod").ZodNativeEnum<{
1814
+ invalid_type: "invalid_type";
1815
+ invalid_literal: "invalid_literal";
1816
+ custom: "custom";
1817
+ invalid_union: "invalid_union";
1818
+ invalid_union_discriminator: "invalid_union_discriminator";
1819
+ invalid_enum_value: "invalid_enum_value";
1820
+ unrecognized_keys: "unrecognized_keys";
1821
+ invalid_arguments: "invalid_arguments";
1822
+ invalid_return_type: "invalid_return_type";
1823
+ invalid_date: "invalid_date";
1824
+ invalid_string: "invalid_string";
1825
+ too_small: "too_small";
1826
+ too_big: "too_big";
1827
+ invalid_intersection_types: "invalid_intersection_types";
1828
+ not_multiple_of: "not_multiple_of";
1829
+ not_finite: "not_finite";
1830
+ }>;
1831
+ }, import("zod").ZodAny, "strip">>, "many">;
1832
+ }, "strip", import("zod").ZodTypeAny, {
1833
+ name: "ZodError";
1834
+ issues: import("zod").objectOutputType<{
1835
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1836
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1837
+ code: import("zod").ZodNativeEnum<{
1838
+ invalid_type: "invalid_type";
1839
+ invalid_literal: "invalid_literal";
1840
+ custom: "custom";
1841
+ invalid_union: "invalid_union";
1842
+ invalid_union_discriminator: "invalid_union_discriminator";
1843
+ invalid_enum_value: "invalid_enum_value";
1844
+ unrecognized_keys: "unrecognized_keys";
1845
+ invalid_arguments: "invalid_arguments";
1846
+ invalid_return_type: "invalid_return_type";
1847
+ invalid_date: "invalid_date";
1848
+ invalid_string: "invalid_string";
1849
+ too_small: "too_small";
1850
+ too_big: "too_big";
1851
+ invalid_intersection_types: "invalid_intersection_types";
1852
+ not_multiple_of: "not_multiple_of";
1853
+ not_finite: "not_finite";
1854
+ }>;
1855
+ }, import("zod").ZodAny, "strip">[];
1856
+ }, {
1857
+ name: "ZodError";
1858
+ issues: import("zod").objectInputType<{
1859
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1860
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1861
+ code: import("zod").ZodNativeEnum<{
1862
+ invalid_type: "invalid_type";
1863
+ invalid_literal: "invalid_literal";
1864
+ custom: "custom";
1865
+ invalid_union: "invalid_union";
1866
+ invalid_union_discriminator: "invalid_union_discriminator";
1867
+ invalid_enum_value: "invalid_enum_value";
1868
+ unrecognized_keys: "unrecognized_keys";
1869
+ invalid_arguments: "invalid_arguments";
1870
+ invalid_return_type: "invalid_return_type";
1871
+ invalid_date: "invalid_date";
1872
+ invalid_string: "invalid_string";
1873
+ too_small: "too_small";
1874
+ too_big: "too_big";
1875
+ invalid_intersection_types: "invalid_intersection_types";
1876
+ not_multiple_of: "not_multiple_of";
1877
+ not_finite: "not_finite";
1878
+ }>;
1879
+ }, import("zod").ZodAny, "strip">[];
1880
+ }>, import("zod").ZodObject<{
1881
+ code: import("zod").ZodType<"SCENE_FULL", import("zod").ZodTypeDef, "SCENE_FULL">;
1882
+ error: import("zod").ZodType<"The scene can't have more of this object", import("zod").ZodTypeDef, "The scene can't have more of this object">;
1883
+ name: import("zod").ZodLiteral<"APIError">;
1884
+ }, "strip", import("zod").ZodTypeAny, {
1885
+ code: "SCENE_FULL";
1886
+ error: "The scene can't have more of this object";
1887
+ name: "APIError";
1888
+ }, {
1889
+ code: "SCENE_FULL";
1890
+ error: "The scene can't have more of this object";
1891
+ name: "APIError";
1892
+ }>, import("zod").ZodObject<{
1893
+ code: import("zod").ZodType<"SCENE_OBJECT_NOT_FOUND", import("zod").ZodTypeDef, "SCENE_OBJECT_NOT_FOUND">;
1894
+ error: import("zod").ZodType<"The scene object was not found", import("zod").ZodTypeDef, "The scene object was not found">;
1895
+ name: import("zod").ZodLiteral<"APIError">;
1896
+ }, "strip", import("zod").ZodTypeAny, {
1897
+ code: "SCENE_OBJECT_NOT_FOUND";
1898
+ error: "The scene object was not found";
1899
+ name: "APIError";
1900
+ }, {
1901
+ code: "SCENE_OBJECT_NOT_FOUND";
1902
+ error: "The scene object was not found";
1903
+ name: "APIError";
1904
+ }>]>;
1905
+ 404: import("zod").ZodObject<{
1906
+ code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1907
+ error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1908
+ name: import("zod").ZodLiteral<"APIError">;
1909
+ }, "strip", import("zod").ZodTypeAny, {
1910
+ code: "STREAM_NOT_FOUND";
1911
+ error: "The requested stream was not found";
1912
+ name: "APIError";
1913
+ }, {
1914
+ code: "STREAM_NOT_FOUND";
1915
+ error: "The requested stream was not found";
1916
+ name: "APIError";
1917
+ }>;
1918
+ 500: import("zod").ZodObject<{
1919
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1920
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1921
+ name: import("zod").ZodLiteral<"APIError">;
1922
+ }, "strip", import("zod").ZodTypeAny, {
1923
+ code: "INTERNAL_SERVER_ERROR";
1924
+ error: string;
1925
+ name: "APIError";
1926
+ }, {
1927
+ code: "INTERNAL_SERVER_ERROR";
1928
+ error: string;
1929
+ name: "APIError";
1930
+ }>;
1931
+ };
1932
+ };
1148
1933
  stream: {
1149
1934
  description: "Get media stream by stream ID";
1150
1935
  method: "GET";