@darco2903/altv-web-api 2.0.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.
package/dist/client.d.ts CHANGED
@@ -85,7 +85,7 @@ export declare function createClient(origin: string): {
85
85
  };
86
86
  headers: Headers;
87
87
  } | {
88
- status: 404 | 409 | 100 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
88
+ status: 404 | 100 | 409 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
89
89
  body: unknown;
90
90
  headers: Headers;
91
91
  }>;
@@ -156,7 +156,7 @@ export declare function createClient(origin: string): {
156
156
  };
157
157
  headers: Headers;
158
158
  } | {
159
- status: 404 | 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
159
+ status: 404 | 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
160
160
  body: unknown;
161
161
  headers: Headers;
162
162
  }>;
@@ -205,7 +205,7 @@ export declare function createClient(origin: string): {
205
205
  };
206
206
  headers: Headers;
207
207
  } | {
208
- status: 500 | 401 | 403 | 404 | 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
208
+ status: 500 | 401 | 403 | 404 | 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
209
209
  body: unknown;
210
210
  headers: Headers;
211
211
  }>;
@@ -221,7 +221,7 @@ export declare function createClient(origin: string): {
221
221
  };
222
222
  headers: Headers;
223
223
  } | {
224
- status: 500 | 401 | 403 | 400 | 404 | 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
224
+ status: 500 | 401 | 403 | 400 | 404 | 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
225
225
  body: unknown;
226
226
  headers: Headers;
227
227
  }>;
@@ -269,7 +269,7 @@ export declare function createClient(origin: string): {
269
269
  };
270
270
  headers: Headers;
271
271
  } | {
272
- status: 400 | 404 | 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
272
+ status: 400 | 404 | 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
273
273
  body: unknown;
274
274
  headers: Headers;
275
275
  }>;
@@ -312,7 +312,7 @@ export declare function createClient(origin: string): {
312
312
  };
313
313
  headers: Headers;
314
314
  } | {
315
- status: 401 | 403 | 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
315
+ status: 401 | 403 | 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
316
316
  body: unknown;
317
317
  headers: Headers;
318
318
  }>;
@@ -442,7 +442,7 @@ export declare function createClient(origin: string): {
442
442
  };
443
443
  headers: Headers;
444
444
  } | {
445
- status: 400 | 404 | 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
445
+ status: 400 | 404 | 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
446
446
  body: unknown;
447
447
  headers: Headers;
448
448
  }>;
@@ -473,6 +473,12 @@ export declare function createClient(origin: string): {
473
473
  title: string;
474
474
  duration: number;
475
475
  } | null;
476
+ queue: {
477
+ videoId: string;
478
+ title: string;
479
+ duration: number;
480
+ id: string;
481
+ }[];
476
482
  url: string | null;
477
483
  paused: boolean;
478
484
  startTime: number;
@@ -508,7 +514,7 @@ export declare function createClient(origin: string): {
508
514
  };
509
515
  headers: Headers;
510
516
  } | {
511
- status: 401 | 403 | 400 | 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
517
+ status: 401 | 403 | 400 | 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
512
518
  body: unknown;
513
519
  headers: Headers;
514
520
  }>;
@@ -588,7 +594,7 @@ export declare function createClient(origin: string): {
588
594
  };
589
595
  headers: Headers;
590
596
  } | {
591
- status: 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
597
+ status: 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
592
598
  body: unknown;
593
599
  headers: Headers;
594
600
  }>;
@@ -637,7 +643,7 @@ export declare function createClient(origin: string): {
637
643
  };
638
644
  headers: Headers;
639
645
  } | {
640
- status: 400 | 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
646
+ status: 400 | 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
641
647
  body: unknown;
642
648
  headers: Headers;
643
649
  }>;
@@ -721,7 +727,295 @@ export declare function createClient(origin: string): {
721
727
  };
722
728
  headers: Headers;
723
729
  } | {
724
- status: 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
730
+ status: 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
731
+ body: unknown;
732
+ headers: Headers;
733
+ }>;
734
+ queueAdd: (args: {
735
+ params: {
736
+ roomId: string;
737
+ };
738
+ body: {
739
+ videoId: string;
740
+ };
741
+ cache?: RequestCache | undefined;
742
+ extraHeaders?: Record<string, string | undefined> | undefined;
743
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
744
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
745
+ }) => Promise<{
746
+ status: 500;
747
+ body: {
748
+ code: "INTERNAL_SERVER_ERROR";
749
+ error: string;
750
+ name: "APIError";
751
+ };
752
+ headers: Headers;
753
+ } | {
754
+ status: 401;
755
+ body: {
756
+ code: "UNAUTHORIZED";
757
+ error: "Unauthorized";
758
+ name: "APIError";
759
+ };
760
+ headers: Headers;
761
+ } | {
762
+ status: 403;
763
+ body: {
764
+ code: "FORBIDDEN";
765
+ error: "Forbidden";
766
+ name: "APIError";
767
+ };
768
+ headers: Headers;
769
+ } | {
770
+ status: 200;
771
+ body: undefined;
772
+ headers: Headers;
773
+ } | {
774
+ status: 400;
775
+ body: {
776
+ code: "INVALID_VIDEO_ID";
777
+ error: "The provided video ID is invalid";
778
+ name: "APIError";
779
+ } | {
780
+ name: "ZodError";
781
+ issues: import("zod").objectOutputType<{
782
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
783
+ message: import("zod").ZodOptional<import("zod").ZodString>;
784
+ code: import("zod").ZodNativeEnum<{
785
+ invalid_type: "invalid_type";
786
+ invalid_literal: "invalid_literal";
787
+ custom: "custom";
788
+ invalid_union: "invalid_union";
789
+ invalid_union_discriminator: "invalid_union_discriminator";
790
+ invalid_enum_value: "invalid_enum_value";
791
+ unrecognized_keys: "unrecognized_keys";
792
+ invalid_arguments: "invalid_arguments";
793
+ invalid_return_type: "invalid_return_type";
794
+ invalid_date: "invalid_date";
795
+ invalid_string: "invalid_string";
796
+ too_small: "too_small";
797
+ too_big: "too_big";
798
+ invalid_intersection_types: "invalid_intersection_types";
799
+ not_multiple_of: "not_multiple_of";
800
+ not_finite: "not_finite";
801
+ }>;
802
+ }, import("zod").ZodAny, "strip">[];
803
+ };
804
+ headers: Headers;
805
+ } | {
806
+ status: 404;
807
+ body: {
808
+ code: "ROOM_NOT_FOUND";
809
+ error: "The requested room was not found";
810
+ name: "APIError";
811
+ };
812
+ headers: Headers;
813
+ } | {
814
+ status: 409;
815
+ body: {
816
+ code: "QUEUE_FULL";
817
+ error: "The queue of this room is full";
818
+ name: "APIError";
819
+ };
820
+ headers: Headers;
821
+ } | {
822
+ status: 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
823
+ body: unknown;
824
+ headers: Headers;
825
+ }>;
826
+ queueRemove: (args: {
827
+ params: {
828
+ roomId: string;
829
+ itemId: string;
830
+ };
831
+ cache?: RequestCache | undefined;
832
+ extraHeaders?: Record<string, string | undefined> | undefined;
833
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
834
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
835
+ }) => Promise<{
836
+ status: 500;
837
+ body: {
838
+ code: "INTERNAL_SERVER_ERROR";
839
+ error: string;
840
+ name: "APIError";
841
+ };
842
+ headers: Headers;
843
+ } | {
844
+ status: 401;
845
+ body: {
846
+ code: "UNAUTHORIZED";
847
+ error: "Unauthorized";
848
+ name: "APIError";
849
+ };
850
+ headers: Headers;
851
+ } | {
852
+ status: 403;
853
+ body: {
854
+ code: "FORBIDDEN";
855
+ error: "Forbidden";
856
+ name: "APIError";
857
+ };
858
+ headers: Headers;
859
+ } | {
860
+ status: 200;
861
+ body: undefined;
862
+ headers: Headers;
863
+ } | {
864
+ status: 404;
865
+ body: {
866
+ code: "ROOM_NOT_FOUND";
867
+ error: "The requested room was not found";
868
+ name: "APIError";
869
+ } | {
870
+ code: "QUEUE_ITEM_NOT_FOUND";
871
+ error: "The queue doesn't have this track";
872
+ name: "APIError";
873
+ };
874
+ headers: Headers;
875
+ } | {
876
+ status: 400 | 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
877
+ body: unknown;
878
+ headers: Headers;
879
+ }>;
880
+ queueMove: (args: {
881
+ params: {
882
+ roomId: string;
883
+ itemId: string;
884
+ };
885
+ body: {
886
+ index: number;
887
+ };
888
+ cache?: RequestCache | undefined;
889
+ extraHeaders?: Record<string, string | undefined> | undefined;
890
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
891
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
892
+ }) => Promise<{
893
+ status: 500;
894
+ body: {
895
+ code: "INTERNAL_SERVER_ERROR";
896
+ error: string;
897
+ name: "APIError";
898
+ };
899
+ headers: Headers;
900
+ } | {
901
+ status: 401;
902
+ body: {
903
+ code: "UNAUTHORIZED";
904
+ error: "Unauthorized";
905
+ name: "APIError";
906
+ };
907
+ headers: Headers;
908
+ } | {
909
+ status: 403;
910
+ body: {
911
+ code: "FORBIDDEN";
912
+ error: "Forbidden";
913
+ name: "APIError";
914
+ };
915
+ headers: Headers;
916
+ } | {
917
+ status: 200;
918
+ body: undefined;
919
+ headers: Headers;
920
+ } | {
921
+ status: 400;
922
+ body: {
923
+ name: "ZodError";
924
+ issues: import("zod").objectOutputType<{
925
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
926
+ message: import("zod").ZodOptional<import("zod").ZodString>;
927
+ code: import("zod").ZodNativeEnum<{
928
+ invalid_type: "invalid_type";
929
+ invalid_literal: "invalid_literal";
930
+ custom: "custom";
931
+ invalid_union: "invalid_union";
932
+ invalid_union_discriminator: "invalid_union_discriminator";
933
+ invalid_enum_value: "invalid_enum_value";
934
+ unrecognized_keys: "unrecognized_keys";
935
+ invalid_arguments: "invalid_arguments";
936
+ invalid_return_type: "invalid_return_type";
937
+ invalid_date: "invalid_date";
938
+ invalid_string: "invalid_string";
939
+ too_small: "too_small";
940
+ too_big: "too_big";
941
+ invalid_intersection_types: "invalid_intersection_types";
942
+ not_multiple_of: "not_multiple_of";
943
+ not_finite: "not_finite";
944
+ }>;
945
+ }, import("zod").ZodAny, "strip">[];
946
+ };
947
+ headers: Headers;
948
+ } | {
949
+ status: 404;
950
+ body: {
951
+ code: "ROOM_NOT_FOUND";
952
+ error: "The requested room was not found";
953
+ name: "APIError";
954
+ } | {
955
+ code: "QUEUE_ITEM_NOT_FOUND";
956
+ error: "The queue doesn't have this track";
957
+ name: "APIError";
958
+ };
959
+ headers: Headers;
960
+ } | {
961
+ status: 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
962
+ body: unknown;
963
+ headers: Headers;
964
+ }>;
965
+ next: (args: {
966
+ params: {
967
+ roomId: string;
968
+ };
969
+ cache?: RequestCache | undefined;
970
+ extraHeaders?: Record<string, string | undefined> | undefined;
971
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
972
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
973
+ }) => Promise<{
974
+ status: 500;
975
+ body: {
976
+ code: "INTERNAL_SERVER_ERROR";
977
+ error: string;
978
+ name: "APIError";
979
+ };
980
+ headers: Headers;
981
+ } | {
982
+ status: 401;
983
+ body: {
984
+ code: "UNAUTHORIZED";
985
+ error: "Unauthorized";
986
+ name: "APIError";
987
+ };
988
+ headers: Headers;
989
+ } | {
990
+ status: 403;
991
+ body: {
992
+ code: "FORBIDDEN";
993
+ error: "Forbidden";
994
+ name: "APIError";
995
+ };
996
+ headers: Headers;
997
+ } | {
998
+ status: 200;
999
+ body: undefined;
1000
+ headers: Headers;
1001
+ } | {
1002
+ status: 400;
1003
+ body: {
1004
+ code: "QUEUE_EMPTY";
1005
+ error: "The queue of this room is empty";
1006
+ name: "APIError";
1007
+ };
1008
+ headers: Headers;
1009
+ } | {
1010
+ status: 404;
1011
+ body: {
1012
+ code: "ROOM_NOT_FOUND";
1013
+ error: "The requested room was not found";
1014
+ name: "APIError";
1015
+ };
1016
+ headers: Headers;
1017
+ } | {
1018
+ status: 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
725
1019
  body: unknown;
726
1020
  headers: Headers;
727
1021
  }>;
@@ -782,7 +1076,7 @@ export declare function createClient(origin: string): {
782
1076
  };
783
1077
  headers: Headers;
784
1078
  } | {
785
- status: 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1079
+ status: 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
786
1080
  body: unknown;
787
1081
  headers: Headers;
788
1082
  }>;
@@ -831,7 +1125,7 @@ export declare function createClient(origin: string): {
831
1125
  };
832
1126
  headers: Headers;
833
1127
  } | {
834
- status: 400 | 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1128
+ status: 400 | 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
835
1129
  body: unknown;
836
1130
  headers: Headers;
837
1131
  }>;
@@ -915,7 +1209,7 @@ export declare function createClient(origin: string): {
915
1209
  };
916
1210
  headers: Headers;
917
1211
  } | {
918
- status: 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1212
+ status: 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
919
1213
  body: unknown;
920
1214
  headers: Headers;
921
1215
  }>;
@@ -1037,7 +1331,7 @@ export declare function createClient(origin: string): {
1037
1331
  };
1038
1332
  headers: Headers;
1039
1333
  } | {
1040
- status: 409 | 100 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1334
+ status: 100 | 409 | 429 | 101 | 102 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 405 | 406 | 407 | 408 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1041
1335
  body: unknown;
1042
1336
  headers: Headers;
1043
1337
  }>;