@darco2903/altv-web-api 2.0.0 → 2.2.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,457 @@ 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
+ queuePlaylist: (args: {
827
+ params: {
828
+ roomId: string;
829
+ };
830
+ body: {
831
+ playlistId: string;
832
+ videoId?: string | undefined;
833
+ };
834
+ cache?: RequestCache | undefined;
835
+ extraHeaders?: Record<string, string | undefined> | undefined;
836
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
837
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
838
+ }) => Promise<{
839
+ status: 500;
840
+ body: {
841
+ code: "INTERNAL_SERVER_ERROR";
842
+ error: string;
843
+ name: "APIError";
844
+ };
845
+ headers: Headers;
846
+ } | {
847
+ status: 401;
848
+ body: {
849
+ code: "UNAUTHORIZED";
850
+ error: "Unauthorized";
851
+ name: "APIError";
852
+ };
853
+ headers: Headers;
854
+ } | {
855
+ status: 403;
856
+ body: {
857
+ code: "FORBIDDEN";
858
+ error: "Forbidden";
859
+ name: "APIError";
860
+ };
861
+ headers: Headers;
862
+ } | {
863
+ status: 200;
864
+ body: {
865
+ added: number;
866
+ skipped: number;
867
+ total: number;
868
+ };
869
+ headers: Headers;
870
+ } | {
871
+ status: 400;
872
+ body: {
873
+ code: "INVALID_VIDEO_ID";
874
+ error: "The provided video ID is invalid";
875
+ name: "APIError";
876
+ } | {
877
+ name: "ZodError";
878
+ issues: import("zod").objectOutputType<{
879
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
880
+ message: import("zod").ZodOptional<import("zod").ZodString>;
881
+ code: import("zod").ZodNativeEnum<{
882
+ invalid_type: "invalid_type";
883
+ invalid_literal: "invalid_literal";
884
+ custom: "custom";
885
+ invalid_union: "invalid_union";
886
+ invalid_union_discriminator: "invalid_union_discriminator";
887
+ invalid_enum_value: "invalid_enum_value";
888
+ unrecognized_keys: "unrecognized_keys";
889
+ invalid_arguments: "invalid_arguments";
890
+ invalid_return_type: "invalid_return_type";
891
+ invalid_date: "invalid_date";
892
+ invalid_string: "invalid_string";
893
+ too_small: "too_small";
894
+ too_big: "too_big";
895
+ invalid_intersection_types: "invalid_intersection_types";
896
+ not_multiple_of: "not_multiple_of";
897
+ not_finite: "not_finite";
898
+ }>;
899
+ }, import("zod").ZodAny, "strip">[];
900
+ } | {
901
+ code: "INVALID_PLAYLIST_ID";
902
+ error: "The provided playlist ID is invalid";
903
+ name: "APIError";
904
+ };
905
+ headers: Headers;
906
+ } | {
907
+ status: 404;
908
+ body: {
909
+ code: "ROOM_NOT_FOUND";
910
+ error: "The requested room was not found";
911
+ name: "APIError";
912
+ } | {
913
+ code: "PLAYLIST_UNAVAILABLE";
914
+ error: "This playlist can't be read, it may be private";
915
+ name: "APIError";
916
+ };
917
+ headers: Headers;
918
+ } | {
919
+ status: 409;
920
+ body: {
921
+ code: "QUEUE_FULL";
922
+ error: "The queue of this room is full";
923
+ name: "APIError";
924
+ };
925
+ headers: Headers;
926
+ } | {
927
+ status: 429;
928
+ body: {
929
+ code: "TOO_MANY_SEARCHES";
930
+ error: "Too many searches are running";
931
+ name: "APIError";
932
+ };
933
+ headers: Headers;
934
+ } | {
935
+ status: 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;
936
+ body: unknown;
937
+ headers: Headers;
938
+ }>;
939
+ queueClear: (args: {
940
+ params: {
941
+ roomId: string;
942
+ };
943
+ cache?: RequestCache | undefined;
944
+ extraHeaders?: Record<string, string | undefined> | undefined;
945
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
946
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
947
+ }) => Promise<{
948
+ status: 500;
949
+ body: {
950
+ code: "INTERNAL_SERVER_ERROR";
951
+ error: string;
952
+ name: "APIError";
953
+ };
954
+ headers: Headers;
955
+ } | {
956
+ status: 401;
957
+ body: {
958
+ code: "UNAUTHORIZED";
959
+ error: "Unauthorized";
960
+ name: "APIError";
961
+ };
962
+ headers: Headers;
963
+ } | {
964
+ status: 403;
965
+ body: {
966
+ code: "FORBIDDEN";
967
+ error: "Forbidden";
968
+ name: "APIError";
969
+ };
970
+ headers: Headers;
971
+ } | {
972
+ status: 200;
973
+ body: undefined;
974
+ headers: Headers;
975
+ } | {
976
+ status: 404;
977
+ body: {
978
+ code: "ROOM_NOT_FOUND";
979
+ error: "The requested room was not found";
980
+ name: "APIError";
981
+ };
982
+ headers: Headers;
983
+ } | {
984
+ 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;
985
+ body: unknown;
986
+ headers: Headers;
987
+ }>;
988
+ queueRemove: (args: {
989
+ params: {
990
+ roomId: string;
991
+ itemId: string;
992
+ };
993
+ cache?: RequestCache | undefined;
994
+ extraHeaders?: Record<string, string | undefined> | undefined;
995
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
996
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
997
+ }) => Promise<{
998
+ status: 500;
999
+ body: {
1000
+ code: "INTERNAL_SERVER_ERROR";
1001
+ error: string;
1002
+ name: "APIError";
1003
+ };
1004
+ headers: Headers;
1005
+ } | {
1006
+ status: 401;
1007
+ body: {
1008
+ code: "UNAUTHORIZED";
1009
+ error: "Unauthorized";
1010
+ name: "APIError";
1011
+ };
1012
+ headers: Headers;
1013
+ } | {
1014
+ status: 403;
1015
+ body: {
1016
+ code: "FORBIDDEN";
1017
+ error: "Forbidden";
1018
+ name: "APIError";
1019
+ };
1020
+ headers: Headers;
1021
+ } | {
1022
+ status: 200;
1023
+ body: undefined;
1024
+ headers: Headers;
1025
+ } | {
1026
+ status: 404;
1027
+ body: {
1028
+ code: "ROOM_NOT_FOUND";
1029
+ error: "The requested room was not found";
1030
+ name: "APIError";
1031
+ } | {
1032
+ code: "QUEUE_ITEM_NOT_FOUND";
1033
+ error: "The queue doesn't have this track";
1034
+ name: "APIError";
1035
+ };
1036
+ headers: Headers;
1037
+ } | {
1038
+ 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;
1039
+ body: unknown;
1040
+ headers: Headers;
1041
+ }>;
1042
+ queueMove: (args: {
1043
+ params: {
1044
+ roomId: string;
1045
+ itemId: string;
1046
+ };
1047
+ body: {
1048
+ index: number;
1049
+ };
1050
+ cache?: RequestCache | undefined;
1051
+ extraHeaders?: Record<string, string | undefined> | undefined;
1052
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1053
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1054
+ }) => Promise<{
1055
+ status: 500;
1056
+ body: {
1057
+ code: "INTERNAL_SERVER_ERROR";
1058
+ error: string;
1059
+ name: "APIError";
1060
+ };
1061
+ headers: Headers;
1062
+ } | {
1063
+ status: 401;
1064
+ body: {
1065
+ code: "UNAUTHORIZED";
1066
+ error: "Unauthorized";
1067
+ name: "APIError";
1068
+ };
1069
+ headers: Headers;
1070
+ } | {
1071
+ status: 403;
1072
+ body: {
1073
+ code: "FORBIDDEN";
1074
+ error: "Forbidden";
1075
+ name: "APIError";
1076
+ };
1077
+ headers: Headers;
1078
+ } | {
1079
+ status: 200;
1080
+ body: undefined;
1081
+ headers: Headers;
1082
+ } | {
1083
+ status: 400;
1084
+ body: {
1085
+ name: "ZodError";
1086
+ issues: import("zod").objectOutputType<{
1087
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1088
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1089
+ code: import("zod").ZodNativeEnum<{
1090
+ invalid_type: "invalid_type";
1091
+ invalid_literal: "invalid_literal";
1092
+ custom: "custom";
1093
+ invalid_union: "invalid_union";
1094
+ invalid_union_discriminator: "invalid_union_discriminator";
1095
+ invalid_enum_value: "invalid_enum_value";
1096
+ unrecognized_keys: "unrecognized_keys";
1097
+ invalid_arguments: "invalid_arguments";
1098
+ invalid_return_type: "invalid_return_type";
1099
+ invalid_date: "invalid_date";
1100
+ invalid_string: "invalid_string";
1101
+ too_small: "too_small";
1102
+ too_big: "too_big";
1103
+ invalid_intersection_types: "invalid_intersection_types";
1104
+ not_multiple_of: "not_multiple_of";
1105
+ not_finite: "not_finite";
1106
+ }>;
1107
+ }, import("zod").ZodAny, "strip">[];
1108
+ };
1109
+ headers: Headers;
1110
+ } | {
1111
+ status: 404;
1112
+ body: {
1113
+ code: "ROOM_NOT_FOUND";
1114
+ error: "The requested room was not found";
1115
+ name: "APIError";
1116
+ } | {
1117
+ code: "QUEUE_ITEM_NOT_FOUND";
1118
+ error: "The queue doesn't have this track";
1119
+ name: "APIError";
1120
+ };
1121
+ headers: Headers;
1122
+ } | {
1123
+ 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;
1124
+ body: unknown;
1125
+ headers: Headers;
1126
+ }>;
1127
+ next: (args: {
1128
+ params: {
1129
+ roomId: string;
1130
+ };
1131
+ cache?: RequestCache | undefined;
1132
+ extraHeaders?: Record<string, string | undefined> | undefined;
1133
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1134
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1135
+ }) => Promise<{
1136
+ status: 500;
1137
+ body: {
1138
+ code: "INTERNAL_SERVER_ERROR";
1139
+ error: string;
1140
+ name: "APIError";
1141
+ };
1142
+ headers: Headers;
1143
+ } | {
1144
+ status: 401;
1145
+ body: {
1146
+ code: "UNAUTHORIZED";
1147
+ error: "Unauthorized";
1148
+ name: "APIError";
1149
+ };
1150
+ headers: Headers;
1151
+ } | {
1152
+ status: 403;
1153
+ body: {
1154
+ code: "FORBIDDEN";
1155
+ error: "Forbidden";
1156
+ name: "APIError";
1157
+ };
1158
+ headers: Headers;
1159
+ } | {
1160
+ status: 200;
1161
+ body: undefined;
1162
+ headers: Headers;
1163
+ } | {
1164
+ status: 400;
1165
+ body: {
1166
+ code: "QUEUE_EMPTY";
1167
+ error: "The queue of this room is empty";
1168
+ name: "APIError";
1169
+ };
1170
+ headers: Headers;
1171
+ } | {
1172
+ status: 404;
1173
+ body: {
1174
+ code: "ROOM_NOT_FOUND";
1175
+ error: "The requested room was not found";
1176
+ name: "APIError";
1177
+ };
1178
+ headers: Headers;
1179
+ } | {
1180
+ 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
1181
  body: unknown;
726
1182
  headers: Headers;
727
1183
  }>;
@@ -782,7 +1238,7 @@ export declare function createClient(origin: string): {
782
1238
  };
783
1239
  headers: Headers;
784
1240
  } | {
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;
1241
+ 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
1242
  body: unknown;
787
1243
  headers: Headers;
788
1244
  }>;
@@ -831,7 +1287,7 @@ export declare function createClient(origin: string): {
831
1287
  };
832
1288
  headers: Headers;
833
1289
  } | {
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;
1290
+ 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
1291
  body: unknown;
836
1292
  headers: Headers;
837
1293
  }>;
@@ -915,7 +1371,7 @@ export declare function createClient(origin: string): {
915
1371
  };
916
1372
  headers: Headers;
917
1373
  } | {
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;
1374
+ 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
1375
  body: unknown;
920
1376
  headers: Headers;
921
1377
  }>;
@@ -1037,7 +1493,7 @@ export declare function createClient(origin: string): {
1037
1493
  };
1038
1494
  headers: Headers;
1039
1495
  } | {
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;
1496
+ 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
1497
  body: unknown;
1042
1498
  headers: Headers;
1043
1499
  }>;