@darco2903/altv-web-api 1.2.0 → 1.3.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.
package/dist/client.d.ts CHANGED
@@ -209,6 +209,26 @@ export declare function createClient(origin: string): {
209
209
  currentTime: number;
210
210
  url: string;
211
211
  paused: boolean;
212
+ scene: {
213
+ speakers: {
214
+ id: string;
215
+ x: number;
216
+ y: number;
217
+ z: number;
218
+ yaw: number;
219
+ pitch: number;
220
+ directional: boolean;
221
+ }[];
222
+ cars: {
223
+ id: string;
224
+ x: number;
225
+ z: number;
226
+ yaw: number;
227
+ doors: boolean[];
228
+ windows: boolean[];
229
+ radio: boolean;
230
+ }[];
231
+ };
212
232
  };
213
233
  headers: Headers;
214
234
  } | {
@@ -454,6 +474,112 @@ export declare function createClient(origin: string): {
454
474
  body: unknown;
455
475
  headers: Headers;
456
476
  }>;
477
+ scene: (args: {
478
+ params: {
479
+ streamId: string;
480
+ };
481
+ body: {
482
+ type: "addSpeaker";
483
+ speaker: {
484
+ x: number;
485
+ y: number;
486
+ z: number;
487
+ yaw: number;
488
+ pitch: number;
489
+ directional: boolean;
490
+ };
491
+ } | {
492
+ type: "addCar";
493
+ car: {
494
+ x: number;
495
+ z: number;
496
+ yaw: number;
497
+ };
498
+ } | {
499
+ type: "remove";
500
+ id: string;
501
+ } | {
502
+ type: "carDoor";
503
+ id: string;
504
+ index: number;
505
+ open: boolean;
506
+ } | {
507
+ type: "carWindow";
508
+ id: string;
509
+ index: number;
510
+ open: boolean;
511
+ } | {
512
+ type: "carRadio";
513
+ id: string;
514
+ on: boolean;
515
+ } | {
516
+ type: "reset";
517
+ };
518
+ cache?: RequestCache | undefined;
519
+ extraHeaders?: Record<string, string | undefined> | undefined;
520
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
521
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
522
+ }) => Promise<{
523
+ status: 200;
524
+ body: undefined;
525
+ headers: Headers;
526
+ } | {
527
+ status: 400;
528
+ body: {
529
+ name: "ZodError";
530
+ issues: import("zod").objectOutputType<{
531
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
532
+ message: import("zod").ZodOptional<import("zod").ZodString>;
533
+ code: import("zod").ZodNativeEnum<{
534
+ invalid_type: "invalid_type";
535
+ invalid_literal: "invalid_literal";
536
+ custom: "custom";
537
+ invalid_union: "invalid_union";
538
+ invalid_union_discriminator: "invalid_union_discriminator";
539
+ invalid_enum_value: "invalid_enum_value";
540
+ unrecognized_keys: "unrecognized_keys";
541
+ invalid_arguments: "invalid_arguments";
542
+ invalid_return_type: "invalid_return_type";
543
+ invalid_date: "invalid_date";
544
+ invalid_string: "invalid_string";
545
+ too_small: "too_small";
546
+ too_big: "too_big";
547
+ invalid_intersection_types: "invalid_intersection_types";
548
+ not_multiple_of: "not_multiple_of";
549
+ not_finite: "not_finite";
550
+ }>;
551
+ }, import("zod").ZodAny, "strip">[];
552
+ } | {
553
+ code: "SCENE_FULL";
554
+ error: "The scene can't have more of this object";
555
+ name: "APIError";
556
+ } | {
557
+ code: "SCENE_OBJECT_NOT_FOUND";
558
+ error: "The scene object was not found";
559
+ name: "APIError";
560
+ };
561
+ headers: Headers;
562
+ } | {
563
+ status: 500;
564
+ body: {
565
+ code: "INTERNAL_SERVER_ERROR";
566
+ error: string;
567
+ name: "APIError";
568
+ };
569
+ headers: Headers;
570
+ } | {
571
+ status: 404;
572
+ body: {
573
+ code: "STREAM_NOT_FOUND";
574
+ error: "The requested stream was not found";
575
+ name: "APIError";
576
+ };
577
+ headers: Headers;
578
+ } | {
579
+ status: 100 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 401 | 402 | 403 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
580
+ body: unknown;
581
+ headers: Headers;
582
+ }>;
457
583
  stream: (args: {
458
584
  params: {
459
585
  streamId: string;
@@ -493,6 +493,96 @@ declare const _default: {
493
493
  currentTime: import("zod").ZodNumber;
494
494
  url: import("zod").ZodString;
495
495
  paused: import("zod").ZodBoolean;
496
+ scene: import("zod").ZodObject<{
497
+ speakers: import("zod").ZodArray<import("zod").ZodObject<{
498
+ id: import("zod").ZodString;
499
+ x: import("zod").ZodNumber;
500
+ y: import("zod").ZodNumber;
501
+ z: import("zod").ZodNumber;
502
+ yaw: import("zod").ZodNumber;
503
+ pitch: import("zod").ZodNumber;
504
+ directional: import("zod").ZodBoolean;
505
+ }, "strip", import("zod").ZodTypeAny, {
506
+ id: string;
507
+ x: number;
508
+ y: number;
509
+ z: number;
510
+ yaw: number;
511
+ pitch: number;
512
+ directional: boolean;
513
+ }, {
514
+ id: string;
515
+ x: number;
516
+ y: number;
517
+ z: number;
518
+ yaw: number;
519
+ pitch: number;
520
+ directional: boolean;
521
+ }>, "many">;
522
+ cars: import("zod").ZodArray<import("zod").ZodObject<{
523
+ id: import("zod").ZodString;
524
+ x: import("zod").ZodNumber;
525
+ z: import("zod").ZodNumber;
526
+ yaw: import("zod").ZodNumber;
527
+ doors: import("zod").ZodArray<import("zod").ZodBoolean, "many">;
528
+ windows: import("zod").ZodArray<import("zod").ZodBoolean, "many">;
529
+ radio: import("zod").ZodBoolean;
530
+ }, "strip", import("zod").ZodTypeAny, {
531
+ id: string;
532
+ x: number;
533
+ z: number;
534
+ yaw: number;
535
+ doors: boolean[];
536
+ windows: boolean[];
537
+ radio: boolean;
538
+ }, {
539
+ id: string;
540
+ x: number;
541
+ z: number;
542
+ yaw: number;
543
+ doors: boolean[];
544
+ windows: boolean[];
545
+ radio: boolean;
546
+ }>, "many">;
547
+ }, "strip", import("zod").ZodTypeAny, {
548
+ speakers: {
549
+ id: string;
550
+ x: number;
551
+ y: number;
552
+ z: number;
553
+ yaw: number;
554
+ pitch: number;
555
+ directional: boolean;
556
+ }[];
557
+ cars: {
558
+ id: string;
559
+ x: number;
560
+ z: number;
561
+ yaw: number;
562
+ doors: boolean[];
563
+ windows: boolean[];
564
+ radio: boolean;
565
+ }[];
566
+ }, {
567
+ speakers: {
568
+ id: string;
569
+ x: number;
570
+ y: number;
571
+ z: number;
572
+ yaw: number;
573
+ pitch: number;
574
+ directional: boolean;
575
+ }[];
576
+ cars: {
577
+ id: string;
578
+ x: number;
579
+ z: number;
580
+ yaw: number;
581
+ doors: boolean[];
582
+ windows: boolean[];
583
+ radio: boolean;
584
+ }[];
585
+ }>;
496
586
  }, "strip", import("zod").ZodTypeAny, {
497
587
  streamId: string;
498
588
  title: string;
@@ -501,6 +591,26 @@ declare const _default: {
501
591
  currentTime: number;
502
592
  url: string;
503
593
  paused: boolean;
594
+ scene: {
595
+ speakers: {
596
+ id: string;
597
+ x: number;
598
+ y: number;
599
+ z: number;
600
+ yaw: number;
601
+ pitch: number;
602
+ directional: boolean;
603
+ }[];
604
+ cars: {
605
+ id: string;
606
+ x: number;
607
+ z: number;
608
+ yaw: number;
609
+ doors: boolean[];
610
+ windows: boolean[];
611
+ radio: boolean;
612
+ }[];
613
+ };
504
614
  }, {
505
615
  streamId: string;
506
616
  title: string;
@@ -509,6 +619,26 @@ declare const _default: {
509
619
  currentTime: number;
510
620
  url: string;
511
621
  paused: boolean;
622
+ scene: {
623
+ speakers: {
624
+ id: string;
625
+ x: number;
626
+ y: number;
627
+ z: number;
628
+ yaw: number;
629
+ pitch: number;
630
+ directional: boolean;
631
+ }[];
632
+ cars: {
633
+ id: string;
634
+ x: number;
635
+ z: number;
636
+ yaw: number;
637
+ doors: boolean[];
638
+ windows: boolean[];
639
+ radio: boolean;
640
+ }[];
641
+ };
512
642
  }>;
513
643
  400: import("zod").ZodUnion<[import("zod").ZodObject<{
514
644
  name: import("zod").ZodLiteral<"ZodError">;
@@ -1145,6 +1275,315 @@ declare const _default: {
1145
1275
  }>;
1146
1276
  };
1147
1277
  };
1278
+ scene: {
1279
+ description: "Change the scene of a media stream, listeners get the new scene through the mediaStreamScene socket event";
1280
+ method: "POST";
1281
+ body: import("zod").ZodDiscriminatedUnion<"type", [import("zod").ZodObject<{
1282
+ type: import("zod").ZodLiteral<"addSpeaker">;
1283
+ speaker: import("zod").ZodObject<Omit<{
1284
+ id: import("zod").ZodString;
1285
+ x: import("zod").ZodNumber;
1286
+ y: import("zod").ZodNumber;
1287
+ z: import("zod").ZodNumber;
1288
+ yaw: import("zod").ZodNumber;
1289
+ pitch: import("zod").ZodNumber;
1290
+ directional: import("zod").ZodBoolean;
1291
+ }, "id">, "strip", import("zod").ZodTypeAny, {
1292
+ x: number;
1293
+ y: number;
1294
+ z: number;
1295
+ yaw: number;
1296
+ pitch: number;
1297
+ directional: boolean;
1298
+ }, {
1299
+ x: number;
1300
+ y: number;
1301
+ z: number;
1302
+ yaw: number;
1303
+ pitch: number;
1304
+ directional: boolean;
1305
+ }>;
1306
+ }, "strip", import("zod").ZodTypeAny, {
1307
+ type: "addSpeaker";
1308
+ speaker: {
1309
+ x: number;
1310
+ y: number;
1311
+ z: number;
1312
+ yaw: number;
1313
+ pitch: number;
1314
+ directional: boolean;
1315
+ };
1316
+ }, {
1317
+ type: "addSpeaker";
1318
+ speaker: {
1319
+ x: number;
1320
+ y: number;
1321
+ z: number;
1322
+ yaw: number;
1323
+ pitch: number;
1324
+ directional: boolean;
1325
+ };
1326
+ }>, import("zod").ZodObject<{
1327
+ type: import("zod").ZodLiteral<"addCar">;
1328
+ car: import("zod").ZodObject<Pick<{
1329
+ id: import("zod").ZodString;
1330
+ x: import("zod").ZodNumber;
1331
+ z: import("zod").ZodNumber;
1332
+ yaw: import("zod").ZodNumber;
1333
+ doors: import("zod").ZodArray<import("zod").ZodBoolean, "many">;
1334
+ windows: import("zod").ZodArray<import("zod").ZodBoolean, "many">;
1335
+ radio: import("zod").ZodBoolean;
1336
+ }, "x" | "z" | "yaw">, "strip", import("zod").ZodTypeAny, {
1337
+ x: number;
1338
+ z: number;
1339
+ yaw: number;
1340
+ }, {
1341
+ x: number;
1342
+ z: number;
1343
+ yaw: number;
1344
+ }>;
1345
+ }, "strip", import("zod").ZodTypeAny, {
1346
+ type: "addCar";
1347
+ car: {
1348
+ x: number;
1349
+ z: number;
1350
+ yaw: number;
1351
+ };
1352
+ }, {
1353
+ type: "addCar";
1354
+ car: {
1355
+ x: number;
1356
+ z: number;
1357
+ yaw: number;
1358
+ };
1359
+ }>, import("zod").ZodObject<{
1360
+ type: import("zod").ZodLiteral<"remove">;
1361
+ id: import("zod").ZodString;
1362
+ }, "strip", import("zod").ZodTypeAny, {
1363
+ type: "remove";
1364
+ id: string;
1365
+ }, {
1366
+ type: "remove";
1367
+ id: string;
1368
+ }>, import("zod").ZodObject<{
1369
+ type: import("zod").ZodLiteral<"carDoor">;
1370
+ id: import("zod").ZodString;
1371
+ index: import("zod").ZodNumber;
1372
+ open: import("zod").ZodBoolean;
1373
+ }, "strip", import("zod").ZodTypeAny, {
1374
+ type: "carDoor";
1375
+ id: string;
1376
+ index: number;
1377
+ open: boolean;
1378
+ }, {
1379
+ type: "carDoor";
1380
+ id: string;
1381
+ index: number;
1382
+ open: boolean;
1383
+ }>, import("zod").ZodObject<{
1384
+ type: import("zod").ZodLiteral<"carWindow">;
1385
+ id: import("zod").ZodString;
1386
+ index: import("zod").ZodNumber;
1387
+ open: import("zod").ZodBoolean;
1388
+ }, "strip", import("zod").ZodTypeAny, {
1389
+ type: "carWindow";
1390
+ id: string;
1391
+ index: number;
1392
+ open: boolean;
1393
+ }, {
1394
+ type: "carWindow";
1395
+ id: string;
1396
+ index: number;
1397
+ open: boolean;
1398
+ }>, import("zod").ZodObject<{
1399
+ type: import("zod").ZodLiteral<"carRadio">;
1400
+ id: import("zod").ZodString;
1401
+ on: import("zod").ZodBoolean;
1402
+ }, "strip", import("zod").ZodTypeAny, {
1403
+ type: "carRadio";
1404
+ id: string;
1405
+ on: boolean;
1406
+ }, {
1407
+ type: "carRadio";
1408
+ id: string;
1409
+ on: boolean;
1410
+ }>, import("zod").ZodObject<{
1411
+ type: import("zod").ZodLiteral<"reset">;
1412
+ }, "strip", import("zod").ZodTypeAny, {
1413
+ type: "reset";
1414
+ }, {
1415
+ type: "reset";
1416
+ }>]>;
1417
+ path: "/api/v2/media-stream/scene/:streamId";
1418
+ responses: {
1419
+ 200: typeof import("@ts-rest/core").ContractNoBody;
1420
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1421
+ name: import("zod").ZodLiteral<"ZodError">;
1422
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1423
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1424
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1425
+ code: import("zod").ZodNativeEnum<{
1426
+ invalid_type: "invalid_type";
1427
+ invalid_literal: "invalid_literal";
1428
+ custom: "custom";
1429
+ invalid_union: "invalid_union";
1430
+ invalid_union_discriminator: "invalid_union_discriminator";
1431
+ invalid_enum_value: "invalid_enum_value";
1432
+ unrecognized_keys: "unrecognized_keys";
1433
+ invalid_arguments: "invalid_arguments";
1434
+ invalid_return_type: "invalid_return_type";
1435
+ invalid_date: "invalid_date";
1436
+ invalid_string: "invalid_string";
1437
+ too_small: "too_small";
1438
+ too_big: "too_big";
1439
+ invalid_intersection_types: "invalid_intersection_types";
1440
+ not_multiple_of: "not_multiple_of";
1441
+ not_finite: "not_finite";
1442
+ }>;
1443
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1444
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1445
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1446
+ code: import("zod").ZodNativeEnum<{
1447
+ invalid_type: "invalid_type";
1448
+ invalid_literal: "invalid_literal";
1449
+ custom: "custom";
1450
+ invalid_union: "invalid_union";
1451
+ invalid_union_discriminator: "invalid_union_discriminator";
1452
+ invalid_enum_value: "invalid_enum_value";
1453
+ unrecognized_keys: "unrecognized_keys";
1454
+ invalid_arguments: "invalid_arguments";
1455
+ invalid_return_type: "invalid_return_type";
1456
+ invalid_date: "invalid_date";
1457
+ invalid_string: "invalid_string";
1458
+ too_small: "too_small";
1459
+ too_big: "too_big";
1460
+ invalid_intersection_types: "invalid_intersection_types";
1461
+ not_multiple_of: "not_multiple_of";
1462
+ not_finite: "not_finite";
1463
+ }>;
1464
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1465
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1466
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1467
+ code: import("zod").ZodNativeEnum<{
1468
+ invalid_type: "invalid_type";
1469
+ invalid_literal: "invalid_literal";
1470
+ custom: "custom";
1471
+ invalid_union: "invalid_union";
1472
+ invalid_union_discriminator: "invalid_union_discriminator";
1473
+ invalid_enum_value: "invalid_enum_value";
1474
+ unrecognized_keys: "unrecognized_keys";
1475
+ invalid_arguments: "invalid_arguments";
1476
+ invalid_return_type: "invalid_return_type";
1477
+ invalid_date: "invalid_date";
1478
+ invalid_string: "invalid_string";
1479
+ too_small: "too_small";
1480
+ too_big: "too_big";
1481
+ invalid_intersection_types: "invalid_intersection_types";
1482
+ not_multiple_of: "not_multiple_of";
1483
+ not_finite: "not_finite";
1484
+ }>;
1485
+ }, import("zod").ZodAny, "strip">>, "many">;
1486
+ }, "strip", import("zod").ZodTypeAny, {
1487
+ name: "ZodError";
1488
+ issues: import("zod").objectOutputType<{
1489
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1490
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1491
+ code: import("zod").ZodNativeEnum<{
1492
+ invalid_type: "invalid_type";
1493
+ invalid_literal: "invalid_literal";
1494
+ custom: "custom";
1495
+ invalid_union: "invalid_union";
1496
+ invalid_union_discriminator: "invalid_union_discriminator";
1497
+ invalid_enum_value: "invalid_enum_value";
1498
+ unrecognized_keys: "unrecognized_keys";
1499
+ invalid_arguments: "invalid_arguments";
1500
+ invalid_return_type: "invalid_return_type";
1501
+ invalid_date: "invalid_date";
1502
+ invalid_string: "invalid_string";
1503
+ too_small: "too_small";
1504
+ too_big: "too_big";
1505
+ invalid_intersection_types: "invalid_intersection_types";
1506
+ not_multiple_of: "not_multiple_of";
1507
+ not_finite: "not_finite";
1508
+ }>;
1509
+ }, import("zod").ZodAny, "strip">[];
1510
+ }, {
1511
+ name: "ZodError";
1512
+ issues: import("zod").objectInputType<{
1513
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1514
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1515
+ code: import("zod").ZodNativeEnum<{
1516
+ invalid_type: "invalid_type";
1517
+ invalid_literal: "invalid_literal";
1518
+ custom: "custom";
1519
+ invalid_union: "invalid_union";
1520
+ invalid_union_discriminator: "invalid_union_discriminator";
1521
+ invalid_enum_value: "invalid_enum_value";
1522
+ unrecognized_keys: "unrecognized_keys";
1523
+ invalid_arguments: "invalid_arguments";
1524
+ invalid_return_type: "invalid_return_type";
1525
+ invalid_date: "invalid_date";
1526
+ invalid_string: "invalid_string";
1527
+ too_small: "too_small";
1528
+ too_big: "too_big";
1529
+ invalid_intersection_types: "invalid_intersection_types";
1530
+ not_multiple_of: "not_multiple_of";
1531
+ not_finite: "not_finite";
1532
+ }>;
1533
+ }, import("zod").ZodAny, "strip">[];
1534
+ }>, import("zod").ZodObject<{
1535
+ code: import("zod").ZodType<"SCENE_FULL", import("zod").ZodTypeDef, "SCENE_FULL">;
1536
+ 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">;
1537
+ name: import("zod").ZodLiteral<"APIError">;
1538
+ }, "strip", import("zod").ZodTypeAny, {
1539
+ code: "SCENE_FULL";
1540
+ error: "The scene can't have more of this object";
1541
+ name: "APIError";
1542
+ }, {
1543
+ code: "SCENE_FULL";
1544
+ error: "The scene can't have more of this object";
1545
+ name: "APIError";
1546
+ }>, import("zod").ZodObject<{
1547
+ code: import("zod").ZodType<"SCENE_OBJECT_NOT_FOUND", import("zod").ZodTypeDef, "SCENE_OBJECT_NOT_FOUND">;
1548
+ error: import("zod").ZodType<"The scene object was not found", import("zod").ZodTypeDef, "The scene object was not found">;
1549
+ name: import("zod").ZodLiteral<"APIError">;
1550
+ }, "strip", import("zod").ZodTypeAny, {
1551
+ code: "SCENE_OBJECT_NOT_FOUND";
1552
+ error: "The scene object was not found";
1553
+ name: "APIError";
1554
+ }, {
1555
+ code: "SCENE_OBJECT_NOT_FOUND";
1556
+ error: "The scene object was not found";
1557
+ name: "APIError";
1558
+ }>]>;
1559
+ 404: import("zod").ZodObject<{
1560
+ code: import("zod").ZodType<"STREAM_NOT_FOUND", import("zod").ZodTypeDef, "STREAM_NOT_FOUND">;
1561
+ error: import("zod").ZodType<"The requested stream was not found", import("zod").ZodTypeDef, "The requested stream was not found">;
1562
+ name: import("zod").ZodLiteral<"APIError">;
1563
+ }, "strip", import("zod").ZodTypeAny, {
1564
+ code: "STREAM_NOT_FOUND";
1565
+ error: "The requested stream was not found";
1566
+ name: "APIError";
1567
+ }, {
1568
+ code: "STREAM_NOT_FOUND";
1569
+ error: "The requested stream was not found";
1570
+ name: "APIError";
1571
+ }>;
1572
+ 500: import("zod").ZodObject<{
1573
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1574
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1575
+ name: import("zod").ZodLiteral<"APIError">;
1576
+ }, "strip", import("zod").ZodTypeAny, {
1577
+ code: "INTERNAL_SERVER_ERROR";
1578
+ error: string;
1579
+ name: "APIError";
1580
+ }, {
1581
+ code: "INTERNAL_SERVER_ERROR";
1582
+ error: string;
1583
+ name: "APIError";
1584
+ }>;
1585
+ };
1586
+ };
1148
1587
  stream: {
1149
1588
  description: "Get media stream by stream ID";
1150
1589
  method: "GET";