@darco2903/auth-api 2.1.3 → 2.1.6

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
@@ -1,4 +1,5 @@
1
1
  export * from "./common.js";
2
+ export { generateOTP } from "./otp.js";
2
3
  export declare function createClient(origin: string): {
3
4
  user: {
4
5
  fromId: (args: {
@@ -201,7 +202,7 @@ export declare function createClient(origin: string): {
201
202
  authorization?: string | undefined;
202
203
  } | undefined;
203
204
  }) => Promise<{
204
- status: 200;
205
+ status: 204;
205
206
  body: undefined;
206
207
  headers: Headers;
207
208
  } | {
@@ -249,7 +250,7 @@ export declare function createClient(origin: string): {
249
250
  };
250
251
  headers: Headers;
251
252
  } | {
252
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
253
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
253
254
  body: unknown;
254
255
  headers: Headers;
255
256
  }>;
@@ -268,7 +269,7 @@ export declare function createClient(origin: string): {
268
269
  authorization?: string | undefined;
269
270
  } | undefined;
270
271
  }) => Promise<{
271
- status: 200;
272
+ status: 204;
272
273
  body: undefined;
273
274
  headers: Headers;
274
275
  } | {
@@ -316,7 +317,7 @@ export declare function createClient(origin: string): {
316
317
  };
317
318
  headers: Headers;
318
319
  } | {
319
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
320
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
320
321
  body: unknown;
321
322
  headers: Headers;
322
323
  }>;
@@ -334,7 +335,7 @@ export declare function createClient(origin: string): {
334
335
  authorization?: string | undefined;
335
336
  } | undefined;
336
337
  }) => Promise<{
337
- status: 200;
338
+ status: 204;
338
339
  body: undefined;
339
340
  headers: Headers;
340
341
  } | {
@@ -382,7 +383,7 @@ export declare function createClient(origin: string): {
382
383
  };
383
384
  headers: Headers;
384
385
  } | {
385
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
386
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
386
387
  body: unknown;
387
388
  headers: Headers;
388
389
  }>;
@@ -400,7 +401,7 @@ export declare function createClient(origin: string): {
400
401
  authorization?: string | undefined;
401
402
  } | undefined;
402
403
  }) => Promise<{
403
- status: 200;
404
+ status: 204;
404
405
  body: undefined;
405
406
  headers: Headers;
406
407
  } | {
@@ -448,7 +449,7 @@ export declare function createClient(origin: string): {
448
449
  };
449
450
  headers: Headers;
450
451
  } | {
451
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
452
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
452
453
  body: unknown;
453
454
  headers: Headers;
454
455
  }>;
@@ -463,7 +464,7 @@ export declare function createClient(origin: string): {
463
464
  extraHeaders?: Record<string, string | undefined> | undefined;
464
465
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
465
466
  }) => Promise<{
466
- status: 200;
467
+ status: 204;
467
468
  body: undefined;
468
469
  headers: Headers;
469
470
  } | {
@@ -522,7 +523,7 @@ export declare function createClient(origin: string): {
522
523
  };
523
524
  headers: Headers;
524
525
  } | {
525
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 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;
526
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 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;
526
527
  body: unknown;
527
528
  headers: Headers;
528
529
  }>;
@@ -605,7 +606,7 @@ export declare function createClient(origin: string): {
605
606
  extraHeaders?: Record<string, string | undefined> | undefined;
606
607
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
607
608
  }) => Promise<{
608
- status: 200;
609
+ status: 204;
609
610
  body: undefined;
610
611
  headers: Headers;
611
612
  } | {
@@ -664,7 +665,7 @@ export declare function createClient(origin: string): {
664
665
  };
665
666
  headers: Headers;
666
667
  } | {
667
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 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;
668
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 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;
668
669
  body: unknown;
669
670
  headers: Headers;
670
671
  }>;
@@ -736,270 +737,325 @@ export declare function createClient(origin: string): {
736
737
  body: unknown;
737
738
  headers: Headers;
738
739
  }>;
739
- publicKey: (args?: {
740
- cache?: RequestCache | undefined;
741
- fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
742
- extraHeaders?: Record<string, string | undefined> | undefined;
743
- overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
744
- } | undefined) => Promise<{
745
- status: 200;
746
- body: {
747
- publicKey: string;
748
- };
749
- headers: Headers;
750
- } | {
751
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
752
- body: unknown;
753
- headers: Headers;
754
- }>;
755
- auth: (args?: {
756
- cache?: RequestCache | undefined;
757
- fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
758
- extraHeaders?: ({
759
- authorization?: undefined;
760
- } & Record<string, string | undefined>) | undefined;
761
- overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
762
- headers?: {
763
- authorization?: string | undefined;
764
- } | undefined;
765
- } | undefined) => Promise<{
766
- status: 200;
767
- body: {
768
- data: {
769
- exp: number;
770
- iat: number;
771
- } & {
772
- role: number;
773
- public_id: string;
774
- totp_required: boolean;
775
- totp_verified: boolean;
776
- password_reset?: string | undefined;
740
+ totp: {
741
+ setup: (args?: {
742
+ cache?: RequestCache | undefined;
743
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
744
+ extraHeaders?: ({
745
+ authorization?: undefined;
746
+ } & Record<string, string | undefined>) | undefined;
747
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
748
+ headers?: {
749
+ authorization?: string | undefined;
750
+ } | undefined;
751
+ } | undefined) => Promise<{
752
+ status: 200;
753
+ body: {
754
+ secret: string;
755
+ otpauthUrl: string;
777
756
  };
778
- result: true;
757
+ headers: Headers;
779
758
  } | {
780
- result: false;
781
- data?: undefined;
782
- };
783
- headers: Headers;
784
- } | {
785
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
786
- body: unknown;
787
- headers: Headers;
788
- }>;
789
- login: (args: {
790
- body: {
791
- email: string;
792
- password: string;
793
- turnstile: string;
794
- };
795
- cache?: RequestCache | undefined;
796
- fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
797
- extraHeaders?: Record<string, string | undefined> | undefined;
798
- overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
799
- }) => Promise<{
800
- status: 200;
801
- body: {
802
- accessToken: string;
803
- expiresIn: number;
804
- refreshToken: string;
805
- };
806
- headers: Headers;
807
- } | {
808
- status: 400;
809
- body: {
810
- name: "ZodError";
811
- issues: import("zod").objectOutputType<{
812
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
813
- message: import("zod").ZodOptional<import("zod").ZodString>;
814
- code: import("zod").ZodNativeEnum<{
815
- invalid_type: "invalid_type";
816
- invalid_literal: "invalid_literal";
817
- custom: "custom";
818
- invalid_union: "invalid_union";
819
- invalid_union_discriminator: "invalid_union_discriminator";
820
- invalid_enum_value: "invalid_enum_value";
821
- unrecognized_keys: "unrecognized_keys";
822
- invalid_arguments: "invalid_arguments";
823
- invalid_return_type: "invalid_return_type";
824
- invalid_date: "invalid_date";
825
- invalid_string: "invalid_string";
826
- too_small: "too_small";
827
- too_big: "too_big";
828
- invalid_intersection_types: "invalid_intersection_types";
829
- not_multiple_of: "not_multiple_of";
830
- not_finite: "not_finite";
831
- }>;
832
- }, import("zod").ZodAny, "strip">[];
833
- };
834
- headers: Headers;
835
- } | {
836
- status: 401;
837
- body: {
838
- code: "CREDENTIALS_INVALID";
839
- name: "APIError";
840
- error: "Invalid Credentials";
759
+ status: 400;
760
+ body: {
761
+ name: "ZodError";
762
+ issues: import("zod").objectOutputType<{
763
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
764
+ message: import("zod").ZodOptional<import("zod").ZodString>;
765
+ code: import("zod").ZodNativeEnum<{
766
+ invalid_type: "invalid_type";
767
+ invalid_literal: "invalid_literal";
768
+ custom: "custom";
769
+ invalid_union: "invalid_union";
770
+ invalid_union_discriminator: "invalid_union_discriminator";
771
+ invalid_enum_value: "invalid_enum_value";
772
+ unrecognized_keys: "unrecognized_keys";
773
+ invalid_arguments: "invalid_arguments";
774
+ invalid_return_type: "invalid_return_type";
775
+ invalid_date: "invalid_date";
776
+ invalid_string: "invalid_string";
777
+ too_small: "too_small";
778
+ too_big: "too_big";
779
+ invalid_intersection_types: "invalid_intersection_types";
780
+ not_multiple_of: "not_multiple_of";
781
+ not_finite: "not_finite";
782
+ }>;
783
+ }, import("zod").ZodAny, "strip">[];
784
+ } | {
785
+ code: "TOTP_ALREADY_SETUP";
786
+ name: "APIError";
787
+ error: string;
788
+ };
789
+ headers: Headers;
841
790
  } | {
842
- code: "INVALID_TURNSTILE";
843
- name: "APIError";
844
- error: "Invalid Turnstile";
845
- };
846
- headers: Headers;
847
- } | {
848
- status: 500;
849
- body: {
850
- code: "INTERNAL_SERVER_ERROR";
851
- name: "APIError";
852
- error: string;
853
- };
854
- headers: Headers;
855
- } | {
856
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
857
- body: unknown;
858
- headers: Headers;
859
- }>;
860
- refresh: (args: {
861
- body: {
862
- refreshToken: string;
863
- } | undefined;
864
- cache?: RequestCache | undefined;
865
- fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
866
- extraHeaders?: Record<string, string | undefined> | undefined;
867
- overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
868
- }) => Promise<{
869
- status: 200;
870
- body: {
871
- accessToken: string;
872
- expiresIn: number;
873
- refreshToken: string;
874
- };
875
- headers: Headers;
876
- } | {
877
- status: 400;
878
- body: {
879
- name: "ZodError";
880
- issues: import("zod").objectOutputType<{
881
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
882
- message: import("zod").ZodOptional<import("zod").ZodString>;
883
- code: import("zod").ZodNativeEnum<{
884
- invalid_type: "invalid_type";
885
- invalid_literal: "invalid_literal";
886
- custom: "custom";
887
- invalid_union: "invalid_union";
888
- invalid_union_discriminator: "invalid_union_discriminator";
889
- invalid_enum_value: "invalid_enum_value";
890
- unrecognized_keys: "unrecognized_keys";
891
- invalid_arguments: "invalid_arguments";
892
- invalid_return_type: "invalid_return_type";
893
- invalid_date: "invalid_date";
894
- invalid_string: "invalid_string";
895
- too_small: "too_small";
896
- too_big: "too_big";
897
- invalid_intersection_types: "invalid_intersection_types";
898
- not_multiple_of: "not_multiple_of";
899
- not_finite: "not_finite";
900
- }>;
901
- }, import("zod").ZodAny, "strip">[];
791
+ status: 401;
792
+ body: {
793
+ code: "UNAUTHORIZED";
794
+ name: "APIError";
795
+ error: "Unauthorized";
796
+ };
797
+ headers: Headers;
902
798
  } | {
903
- code: "INVALID_REQUEST";
904
- name: "APIError";
905
- error: "Missing refresh token";
906
- };
907
- headers: Headers;
908
- } | {
909
- status: 401;
910
- body: {
911
- code: "UNAUTHORIZED";
912
- name: "APIError";
913
- error: "Unauthorized";
914
- };
915
- headers: Headers;
916
- } | {
917
- status: 500;
918
- body: {
919
- code: "INTERNAL_SERVER_ERROR";
920
- name: "APIError";
921
- error: string;
922
- };
923
- headers: Headers;
924
- } | {
925
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
926
- body: unknown;
927
- headers: Headers;
928
- }>;
929
- totpSetup: (args?: {
930
- cache?: RequestCache | undefined;
931
- fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
932
- extraHeaders?: ({
933
- authorization?: undefined;
934
- } & Record<string, string | undefined>) | undefined;
935
- overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
936
- headers?: {
937
- authorization?: string | undefined;
938
- } | undefined;
939
- } | undefined) => Promise<{
940
- status: 200;
941
- body: {
942
- secret: string;
943
- otpauthUrl: string;
944
- };
945
- headers: Headers;
946
- } | {
947
- status: 400;
948
- body: {
949
- name: "ZodError";
950
- issues: import("zod").objectOutputType<{
951
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
952
- message: import("zod").ZodOptional<import("zod").ZodString>;
953
- code: import("zod").ZodNativeEnum<{
954
- invalid_type: "invalid_type";
955
- invalid_literal: "invalid_literal";
956
- custom: "custom";
957
- invalid_union: "invalid_union";
958
- invalid_union_discriminator: "invalid_union_discriminator";
959
- invalid_enum_value: "invalid_enum_value";
960
- unrecognized_keys: "unrecognized_keys";
961
- invalid_arguments: "invalid_arguments";
962
- invalid_return_type: "invalid_return_type";
963
- invalid_date: "invalid_date";
964
- invalid_string: "invalid_string";
965
- too_small: "too_small";
966
- too_big: "too_big";
967
- invalid_intersection_types: "invalid_intersection_types";
968
- not_multiple_of: "not_multiple_of";
969
- not_finite: "not_finite";
970
- }>;
971
- }, import("zod").ZodAny, "strip">[];
799
+ status: 500;
800
+ body: {
801
+ code: "INTERNAL_SERVER_ERROR";
802
+ name: "APIError";
803
+ error: string;
804
+ };
805
+ headers: Headers;
972
806
  } | {
973
- code: "TOTP_ALREADY_SETUP";
974
- name: "APIError";
975
- error: string;
976
- };
977
- headers: Headers;
978
- } | {
979
- status: 401;
980
- body: {
981
- code: "UNAUTHORIZED";
982
- name: "APIError";
983
- error: "Unauthorized";
984
- };
985
- headers: Headers;
986
- } | {
987
- status: 500;
807
+ status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
808
+ body: unknown;
809
+ headers: Headers;
810
+ }>;
811
+ setupConfirm: (args: {
812
+ body: {
813
+ totpCode: string;
814
+ };
815
+ cache?: RequestCache | undefined;
816
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
817
+ extraHeaders?: ({
818
+ authorization?: undefined;
819
+ } & Record<string, string | undefined>) | undefined;
820
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
821
+ headers?: {
822
+ authorization?: string | undefined;
823
+ } | undefined;
824
+ }) => Promise<{
825
+ status: 204;
826
+ body: undefined;
827
+ headers: Headers;
828
+ } | {
829
+ status: 400;
830
+ body: {
831
+ name: "ZodError";
832
+ issues: import("zod").objectOutputType<{
833
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
834
+ message: import("zod").ZodOptional<import("zod").ZodString>;
835
+ code: import("zod").ZodNativeEnum<{
836
+ invalid_type: "invalid_type";
837
+ invalid_literal: "invalid_literal";
838
+ custom: "custom";
839
+ invalid_union: "invalid_union";
840
+ invalid_union_discriminator: "invalid_union_discriminator";
841
+ invalid_enum_value: "invalid_enum_value";
842
+ unrecognized_keys: "unrecognized_keys";
843
+ invalid_arguments: "invalid_arguments";
844
+ invalid_return_type: "invalid_return_type";
845
+ invalid_date: "invalid_date";
846
+ invalid_string: "invalid_string";
847
+ too_small: "too_small";
848
+ too_big: "too_big";
849
+ invalid_intersection_types: "invalid_intersection_types";
850
+ not_multiple_of: "not_multiple_of";
851
+ not_finite: "not_finite";
852
+ }>;
853
+ }, import("zod").ZodAny, "strip">[];
854
+ } | {
855
+ code: "TOTP_ALREADY_SETUP";
856
+ name: "APIError";
857
+ error: string;
858
+ } | {
859
+ code: "TOTP_NOT_SETUP";
860
+ name: "APIError";
861
+ error: string;
862
+ } | {
863
+ code: "TOTP_INVALID";
864
+ name: "APIError";
865
+ error: string;
866
+ };
867
+ headers: Headers;
868
+ } | {
869
+ status: 401;
870
+ body: {
871
+ code: "UNAUTHORIZED";
872
+ name: "APIError";
873
+ error: "Unauthorized";
874
+ };
875
+ headers: Headers;
876
+ } | {
877
+ status: 500;
878
+ body: {
879
+ code: "INTERNAL_SERVER_ERROR";
880
+ name: "APIError";
881
+ error: string;
882
+ };
883
+ headers: Headers;
884
+ } | {
885
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
886
+ body: unknown;
887
+ headers: Headers;
888
+ }>;
889
+ verify: (args: {
890
+ body: {
891
+ totpCode: string;
892
+ };
893
+ cache?: RequestCache | undefined;
894
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
895
+ extraHeaders?: ({
896
+ authorization?: undefined;
897
+ } & Record<string, string | undefined>) | undefined;
898
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
899
+ headers?: {
900
+ authorization?: string | undefined;
901
+ } | undefined;
902
+ }) => Promise<{
903
+ status: 204;
904
+ body: undefined;
905
+ headers: Headers;
906
+ } | {
907
+ status: 400;
908
+ body: {
909
+ name: "ZodError";
910
+ issues: import("zod").objectOutputType<{
911
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
912
+ message: import("zod").ZodOptional<import("zod").ZodString>;
913
+ code: import("zod").ZodNativeEnum<{
914
+ invalid_type: "invalid_type";
915
+ invalid_literal: "invalid_literal";
916
+ custom: "custom";
917
+ invalid_union: "invalid_union";
918
+ invalid_union_discriminator: "invalid_union_discriminator";
919
+ invalid_enum_value: "invalid_enum_value";
920
+ unrecognized_keys: "unrecognized_keys";
921
+ invalid_arguments: "invalid_arguments";
922
+ invalid_return_type: "invalid_return_type";
923
+ invalid_date: "invalid_date";
924
+ invalid_string: "invalid_string";
925
+ too_small: "too_small";
926
+ too_big: "too_big";
927
+ invalid_intersection_types: "invalid_intersection_types";
928
+ not_multiple_of: "not_multiple_of";
929
+ not_finite: "not_finite";
930
+ }>;
931
+ }, import("zod").ZodAny, "strip">[];
932
+ } | {
933
+ code: "TOTP_NOT_SETUP";
934
+ name: "APIError";
935
+ error: string;
936
+ } | {
937
+ code: "TOTP_INVALID";
938
+ name: "APIError";
939
+ error: string;
940
+ } | {
941
+ code: "TOTP_NOT_REQUIRED";
942
+ name: "APIError";
943
+ error: string;
944
+ };
945
+ headers: Headers;
946
+ } | {
947
+ status: 401;
948
+ body: {
949
+ code: "UNAUTHORIZED";
950
+ name: "APIError";
951
+ error: "Unauthorized";
952
+ };
953
+ headers: Headers;
954
+ } | {
955
+ status: 500;
956
+ body: {
957
+ code: "INTERNAL_SERVER_ERROR";
958
+ name: "APIError";
959
+ error: string;
960
+ };
961
+ headers: Headers;
962
+ } | {
963
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
964
+ body: unknown;
965
+ headers: Headers;
966
+ }>;
967
+ disable: (args: {
968
+ body: {
969
+ totpCode: string;
970
+ };
971
+ cache?: RequestCache | undefined;
972
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
973
+ extraHeaders?: ({
974
+ authorization?: undefined;
975
+ } & Record<string, string | undefined>) | undefined;
976
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
977
+ headers?: {
978
+ authorization?: string | undefined;
979
+ } | undefined;
980
+ }) => Promise<{
981
+ status: 204;
982
+ body: undefined;
983
+ headers: Headers;
984
+ } | {
985
+ status: 400;
986
+ body: {
987
+ name: "ZodError";
988
+ issues: import("zod").objectOutputType<{
989
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
990
+ message: import("zod").ZodOptional<import("zod").ZodString>;
991
+ code: import("zod").ZodNativeEnum<{
992
+ invalid_type: "invalid_type";
993
+ invalid_literal: "invalid_literal";
994
+ custom: "custom";
995
+ invalid_union: "invalid_union";
996
+ invalid_union_discriminator: "invalid_union_discriminator";
997
+ invalid_enum_value: "invalid_enum_value";
998
+ unrecognized_keys: "unrecognized_keys";
999
+ invalid_arguments: "invalid_arguments";
1000
+ invalid_return_type: "invalid_return_type";
1001
+ invalid_date: "invalid_date";
1002
+ invalid_string: "invalid_string";
1003
+ too_small: "too_small";
1004
+ too_big: "too_big";
1005
+ invalid_intersection_types: "invalid_intersection_types";
1006
+ not_multiple_of: "not_multiple_of";
1007
+ not_finite: "not_finite";
1008
+ }>;
1009
+ }, import("zod").ZodAny, "strip">[];
1010
+ } | {
1011
+ code: "TOTP_NOT_SETUP";
1012
+ name: "APIError";
1013
+ error: string;
1014
+ } | {
1015
+ code: "TOTP_INVALID";
1016
+ name: "APIError";
1017
+ error: string;
1018
+ };
1019
+ headers: Headers;
1020
+ } | {
1021
+ status: 401;
1022
+ body: {
1023
+ code: "UNAUTHORIZED";
1024
+ name: "APIError";
1025
+ error: "Unauthorized";
1026
+ };
1027
+ headers: Headers;
1028
+ } | {
1029
+ status: 500;
1030
+ body: {
1031
+ code: "INTERNAL_SERVER_ERROR";
1032
+ name: "APIError";
1033
+ error: string;
1034
+ };
1035
+ headers: Headers;
1036
+ } | {
1037
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
1038
+ body: unknown;
1039
+ headers: Headers;
1040
+ }>;
1041
+ };
1042
+ publicKey: (args?: {
1043
+ cache?: RequestCache | undefined;
1044
+ fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1045
+ extraHeaders?: Record<string, string | undefined> | undefined;
1046
+ overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1047
+ } | undefined) => Promise<{
1048
+ status: 200;
988
1049
  body: {
989
- code: "INTERNAL_SERVER_ERROR";
990
- name: "APIError";
991
- error: string;
1050
+ publicKey: string;
992
1051
  };
993
1052
  headers: Headers;
994
1053
  } | {
995
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
1054
+ status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
996
1055
  body: unknown;
997
1056
  headers: Headers;
998
1057
  }>;
999
- totpSetupConfirm: (args: {
1000
- body: {
1001
- totpCode: string;
1002
- };
1058
+ auth: (args?: {
1003
1059
  cache?: RequestCache | undefined;
1004
1060
  fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1005
1061
  extraHeaders?: ({
@@ -1009,83 +1065,48 @@ export declare function createClient(origin: string): {
1009
1065
  headers?: {
1010
1066
  authorization?: string | undefined;
1011
1067
  } | undefined;
1012
- }) => Promise<{
1068
+ } | undefined) => Promise<{
1013
1069
  status: 200;
1014
- body: undefined;
1015
- headers: Headers;
1016
- } | {
1017
- status: 400;
1018
1070
  body: {
1019
- name: "ZodError";
1020
- issues: import("zod").objectOutputType<{
1021
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1022
- message: import("zod").ZodOptional<import("zod").ZodString>;
1023
- code: import("zod").ZodNativeEnum<{
1024
- invalid_type: "invalid_type";
1025
- invalid_literal: "invalid_literal";
1026
- custom: "custom";
1027
- invalid_union: "invalid_union";
1028
- invalid_union_discriminator: "invalid_union_discriminator";
1029
- invalid_enum_value: "invalid_enum_value";
1030
- unrecognized_keys: "unrecognized_keys";
1031
- invalid_arguments: "invalid_arguments";
1032
- invalid_return_type: "invalid_return_type";
1033
- invalid_date: "invalid_date";
1034
- invalid_string: "invalid_string";
1035
- too_small: "too_small";
1036
- too_big: "too_big";
1037
- invalid_intersection_types: "invalid_intersection_types";
1038
- not_multiple_of: "not_multiple_of";
1039
- not_finite: "not_finite";
1040
- }>;
1041
- }, import("zod").ZodAny, "strip">[];
1042
- } | {
1043
- code: "TOTP_NOT_SETUP";
1044
- name: "APIError";
1045
- error: string;
1071
+ data: {
1072
+ iat: number;
1073
+ exp: number;
1074
+ } & {
1075
+ role: number;
1076
+ public_id: string;
1077
+ totp_required: boolean;
1078
+ totp_verified: boolean;
1079
+ password_reset?: string | undefined;
1080
+ };
1081
+ result: true;
1046
1082
  } | {
1047
- code: "TOTP_INVALID";
1048
- name: "APIError";
1049
- error: string;
1050
- };
1051
- headers: Headers;
1052
- } | {
1053
- status: 401;
1054
- body: {
1055
- code: "UNAUTHORIZED";
1056
- name: "APIError";
1057
- error: "Unauthorized";
1058
- };
1059
- headers: Headers;
1060
- } | {
1061
- status: 500;
1062
- body: {
1063
- code: "INTERNAL_SERVER_ERROR";
1064
- name: "APIError";
1065
- error: string;
1083
+ result: false;
1084
+ data?: undefined;
1066
1085
  };
1067
1086
  headers: Headers;
1068
1087
  } | {
1069
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
1088
+ status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1070
1089
  body: unknown;
1071
1090
  headers: Headers;
1072
1091
  }>;
1073
- totpVerify: (args: {
1092
+ login: (args: {
1074
1093
  body: {
1075
- totpCode: string;
1094
+ email: string;
1095
+ password: string;
1096
+ turnstile: string;
1076
1097
  };
1077
1098
  cache?: RequestCache | undefined;
1078
1099
  fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1079
- extraHeaders?: ({
1080
- authorization?: undefined;
1081
- } & Record<string, string | undefined>) | undefined;
1100
+ extraHeaders?: Record<string, string | undefined> | undefined;
1082
1101
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1083
- headers?: {
1084
- authorization?: string | undefined;
1085
- } | undefined;
1086
1102
  }) => Promise<{
1087
1103
  status: 200;
1088
- body: undefined;
1104
+ body: {
1105
+ accessToken: string;
1106
+ expiresIn: number;
1107
+ refreshToken: string | null;
1108
+ needTotp: boolean;
1109
+ };
1089
1110
  headers: Headers;
1090
1111
  } | {
1091
1112
  status: 400;
@@ -1113,26 +1134,18 @@ export declare function createClient(origin: string): {
1113
1134
  not_finite: "not_finite";
1114
1135
  }>;
1115
1136
  }, import("zod").ZodAny, "strip">[];
1116
- } | {
1117
- code: "TOTP_NOT_SETUP";
1118
- name: "APIError";
1119
- error: string;
1120
- } | {
1121
- code: "TOTP_INVALID";
1122
- name: "APIError";
1123
- error: string;
1124
- } | {
1125
- code: "TOTP_NOT_REQUIRED";
1126
- name: "APIError";
1127
- error: string;
1128
1137
  };
1129
1138
  headers: Headers;
1130
1139
  } | {
1131
1140
  status: 401;
1132
1141
  body: {
1133
- code: "UNAUTHORIZED";
1142
+ code: "CREDENTIALS_INVALID";
1134
1143
  name: "APIError";
1135
- error: "Unauthorized";
1144
+ error: "Invalid Credentials";
1145
+ } | {
1146
+ code: "INVALID_TURNSTILE";
1147
+ name: "APIError";
1148
+ error: "Invalid Turnstile";
1136
1149
  };
1137
1150
  headers: Headers;
1138
1151
  } | {
@@ -1148,22 +1161,21 @@ export declare function createClient(origin: string): {
1148
1161
  body: unknown;
1149
1162
  headers: Headers;
1150
1163
  }>;
1151
- totpDisable: (args: {
1164
+ refresh: (args: {
1152
1165
  body: {
1153
- totpCode: string;
1154
- };
1166
+ refreshToken: string;
1167
+ } | undefined;
1155
1168
  cache?: RequestCache | undefined;
1156
1169
  fetchOptions?: import("@ts-rest/core").FetchOptions | undefined;
1157
- extraHeaders?: ({
1158
- authorization?: undefined;
1159
- } & Record<string, string | undefined>) | undefined;
1170
+ extraHeaders?: Record<string, string | undefined> | undefined;
1160
1171
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1161
- headers?: {
1162
- authorization?: string | undefined;
1163
- } | undefined;
1164
1172
  }) => Promise<{
1165
1173
  status: 200;
1166
- body: undefined;
1174
+ body: {
1175
+ accessToken: string;
1176
+ expiresIn: number;
1177
+ refreshToken: string;
1178
+ };
1167
1179
  headers: Headers;
1168
1180
  } | {
1169
1181
  status: 400;
@@ -1192,13 +1204,9 @@ export declare function createClient(origin: string): {
1192
1204
  }>;
1193
1205
  }, import("zod").ZodAny, "strip">[];
1194
1206
  } | {
1195
- code: "TOTP_NOT_SETUP";
1196
- name: "APIError";
1197
- error: string;
1198
- } | {
1199
- code: "TOTP_INVALID";
1207
+ code: "INVALID_REQUEST";
1200
1208
  name: "APIError";
1201
- error: string;
1209
+ error: "Missing refresh token";
1202
1210
  };
1203
1211
  headers: Headers;
1204
1212
  } | {
@@ -1231,11 +1239,11 @@ export declare function createClient(origin: string): {
1231
1239
  extraHeaders?: Record<string, string | undefined> | undefined;
1232
1240
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1233
1241
  }) => Promise<{
1234
- status: 200;
1242
+ status: 204;
1235
1243
  body: undefined;
1236
1244
  headers: Headers;
1237
1245
  } | {
1238
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1246
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 507 | 511;
1239
1247
  body: unknown;
1240
1248
  headers: Headers;
1241
1249
  }>;
@@ -1251,7 +1259,7 @@ export declare function createClient(origin: string): {
1251
1259
  extraHeaders?: Record<string, string | undefined> | undefined;
1252
1260
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1253
1261
  }) => Promise<{
1254
- status: 200;
1262
+ status: 204;
1255
1263
  body: undefined;
1256
1264
  headers: Headers;
1257
1265
  } | {
@@ -1307,7 +1315,7 @@ export declare function createClient(origin: string): {
1307
1315
  };
1308
1316
  headers: Headers;
1309
1317
  } | {
1310
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 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;
1318
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 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;
1311
1319
  body: unknown;
1312
1320
  headers: Headers;
1313
1321
  }>;
@@ -1383,7 +1391,7 @@ export declare function createClient(origin: string): {
1383
1391
  } & Record<string, string | undefined>) | undefined;
1384
1392
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1385
1393
  }) => Promise<{
1386
- status: 200;
1394
+ status: 204;
1387
1395
  body: undefined;
1388
1396
  headers: Headers;
1389
1397
  } | {
@@ -1431,7 +1439,7 @@ export declare function createClient(origin: string): {
1431
1439
  };
1432
1440
  headers: Headers;
1433
1441
  } | {
1434
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
1442
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 402 | 403 | 404 | 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;
1435
1443
  body: unknown;
1436
1444
  headers: Headers;
1437
1445
  }>;
@@ -1446,7 +1454,7 @@ export declare function createClient(origin: string): {
1446
1454
  } & Record<string, string | undefined>) | undefined;
1447
1455
  overrideClientOptions?: Partial<import("@ts-rest/core").OverrideableClientArgs> | undefined;
1448
1456
  }) => Promise<{
1449
- status: 200;
1457
+ status: 204;
1450
1458
  body: undefined;
1451
1459
  headers: Headers;
1452
1460
  } | {
@@ -1466,7 +1474,7 @@ export declare function createClient(origin: string): {
1466
1474
  };
1467
1475
  headers: Headers;
1468
1476
  } | {
1469
- status: 201 | 202 | 203 | 204 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 400 | 402 | 403 | 404 | 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;
1477
+ status: 200 | 201 | 202 | 203 | 205 | 206 | 207 | 100 | 101 | 102 | 300 | 301 | 302 | 303 | 304 | 305 | 307 | 308 | 400 | 402 | 403 | 404 | 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;
1470
1478
  body: unknown;
1471
1479
  headers: Headers;
1472
1480
  }>;