@darco2903/auth-api 2.1.4 → 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.
@@ -99,15 +99,18 @@ declare const _default: {
99
99
  accessToken: z.ZodString;
100
100
  expiresIn: z.ZodNumber;
101
101
  } & {
102
- refreshToken: z.ZodString;
102
+ refreshToken: z.ZodNullable<z.ZodString>;
103
+ needTotp: z.ZodBoolean;
103
104
  }, "strip", z.ZodTypeAny, {
104
105
  accessToken: string;
105
106
  expiresIn: number;
106
- refreshToken: string;
107
+ refreshToken: string | null;
108
+ needTotp: boolean;
107
109
  }, {
108
110
  accessToken: string;
109
111
  expiresIn: number;
110
- refreshToken: string;
112
+ refreshToken: string | null;
113
+ needTotp: boolean;
111
114
  }>;
112
115
  400: z.ZodObject<{
113
116
  name: z.ZodLiteral<"ZodError">;
@@ -444,753 +447,6 @@ declare const _default: {
444
447
  }>;
445
448
  };
446
449
  };
447
- totpSetup: {
448
- body: typeof import("@ts-rest/core").ContractNoBody;
449
- method: "POST";
450
- path: "/totp/setup";
451
- headers: z.ZodObject<{
452
- authorization: z.ZodOptional<z.ZodString>;
453
- }, "strip", z.ZodTypeAny, {
454
- authorization?: string | undefined;
455
- }, {
456
- authorization?: string | undefined;
457
- }>;
458
- responses: {
459
- 200: z.ZodObject<{
460
- secret: z.ZodString;
461
- otpauthUrl: z.ZodString;
462
- }, "strip", z.ZodTypeAny, {
463
- secret: string;
464
- otpauthUrl: string;
465
- }, {
466
- secret: string;
467
- otpauthUrl: string;
468
- }>;
469
- 400: z.ZodUnion<[z.ZodObject<{
470
- name: z.ZodLiteral<"ZodError">;
471
- issues: z.ZodArray<z.ZodObject<{
472
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
473
- message: z.ZodOptional<z.ZodString>;
474
- code: z.ZodNativeEnum<{
475
- invalid_type: "invalid_type";
476
- invalid_literal: "invalid_literal";
477
- custom: "custom";
478
- invalid_union: "invalid_union";
479
- invalid_union_discriminator: "invalid_union_discriminator";
480
- invalid_enum_value: "invalid_enum_value";
481
- unrecognized_keys: "unrecognized_keys";
482
- invalid_arguments: "invalid_arguments";
483
- invalid_return_type: "invalid_return_type";
484
- invalid_date: "invalid_date";
485
- invalid_string: "invalid_string";
486
- too_small: "too_small";
487
- too_big: "too_big";
488
- invalid_intersection_types: "invalid_intersection_types";
489
- not_multiple_of: "not_multiple_of";
490
- not_finite: "not_finite";
491
- }>;
492
- }, "strip", z.ZodAny, z.objectOutputType<{
493
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
494
- message: z.ZodOptional<z.ZodString>;
495
- code: z.ZodNativeEnum<{
496
- invalid_type: "invalid_type";
497
- invalid_literal: "invalid_literal";
498
- custom: "custom";
499
- invalid_union: "invalid_union";
500
- invalid_union_discriminator: "invalid_union_discriminator";
501
- invalid_enum_value: "invalid_enum_value";
502
- unrecognized_keys: "unrecognized_keys";
503
- invalid_arguments: "invalid_arguments";
504
- invalid_return_type: "invalid_return_type";
505
- invalid_date: "invalid_date";
506
- invalid_string: "invalid_string";
507
- too_small: "too_small";
508
- too_big: "too_big";
509
- invalid_intersection_types: "invalid_intersection_types";
510
- not_multiple_of: "not_multiple_of";
511
- not_finite: "not_finite";
512
- }>;
513
- }, z.ZodAny, "strip">, z.objectInputType<{
514
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
515
- message: z.ZodOptional<z.ZodString>;
516
- code: z.ZodNativeEnum<{
517
- invalid_type: "invalid_type";
518
- invalid_literal: "invalid_literal";
519
- custom: "custom";
520
- invalid_union: "invalid_union";
521
- invalid_union_discriminator: "invalid_union_discriminator";
522
- invalid_enum_value: "invalid_enum_value";
523
- unrecognized_keys: "unrecognized_keys";
524
- invalid_arguments: "invalid_arguments";
525
- invalid_return_type: "invalid_return_type";
526
- invalid_date: "invalid_date";
527
- invalid_string: "invalid_string";
528
- too_small: "too_small";
529
- too_big: "too_big";
530
- invalid_intersection_types: "invalid_intersection_types";
531
- not_multiple_of: "not_multiple_of";
532
- not_finite: "not_finite";
533
- }>;
534
- }, z.ZodAny, "strip">>, "many">;
535
- }, "strip", z.ZodTypeAny, {
536
- name: "ZodError";
537
- issues: z.objectOutputType<{
538
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
539
- message: z.ZodOptional<z.ZodString>;
540
- code: z.ZodNativeEnum<{
541
- invalid_type: "invalid_type";
542
- invalid_literal: "invalid_literal";
543
- custom: "custom";
544
- invalid_union: "invalid_union";
545
- invalid_union_discriminator: "invalid_union_discriminator";
546
- invalid_enum_value: "invalid_enum_value";
547
- unrecognized_keys: "unrecognized_keys";
548
- invalid_arguments: "invalid_arguments";
549
- invalid_return_type: "invalid_return_type";
550
- invalid_date: "invalid_date";
551
- invalid_string: "invalid_string";
552
- too_small: "too_small";
553
- too_big: "too_big";
554
- invalid_intersection_types: "invalid_intersection_types";
555
- not_multiple_of: "not_multiple_of";
556
- not_finite: "not_finite";
557
- }>;
558
- }, z.ZodAny, "strip">[];
559
- }, {
560
- name: "ZodError";
561
- issues: z.objectInputType<{
562
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
563
- message: z.ZodOptional<z.ZodString>;
564
- code: z.ZodNativeEnum<{
565
- invalid_type: "invalid_type";
566
- invalid_literal: "invalid_literal";
567
- custom: "custom";
568
- invalid_union: "invalid_union";
569
- invalid_union_discriminator: "invalid_union_discriminator";
570
- invalid_enum_value: "invalid_enum_value";
571
- unrecognized_keys: "unrecognized_keys";
572
- invalid_arguments: "invalid_arguments";
573
- invalid_return_type: "invalid_return_type";
574
- invalid_date: "invalid_date";
575
- invalid_string: "invalid_string";
576
- too_small: "too_small";
577
- too_big: "too_big";
578
- invalid_intersection_types: "invalid_intersection_types";
579
- not_multiple_of: "not_multiple_of";
580
- not_finite: "not_finite";
581
- }>;
582
- }, z.ZodAny, "strip">[];
583
- }>, z.ZodObject<{
584
- code: z.ZodType<"TOTP_ALREADY_SETUP", z.ZodTypeDef, "TOTP_ALREADY_SETUP">;
585
- error: z.ZodType<string, z.ZodTypeDef, string>;
586
- name: z.ZodLiteral<"APIError">;
587
- }, "strip", z.ZodTypeAny, {
588
- code: "TOTP_ALREADY_SETUP";
589
- name: "APIError";
590
- error: string;
591
- }, {
592
- code: "TOTP_ALREADY_SETUP";
593
- name: "APIError";
594
- error: string;
595
- }>]>;
596
- 401: z.ZodObject<{
597
- code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
598
- error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
599
- name: z.ZodLiteral<"APIError">;
600
- }, "strip", z.ZodTypeAny, {
601
- code: "UNAUTHORIZED";
602
- name: "APIError";
603
- error: "Unauthorized";
604
- }, {
605
- code: "UNAUTHORIZED";
606
- name: "APIError";
607
- error: "Unauthorized";
608
- }>;
609
- 500: z.ZodObject<{
610
- code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
611
- error: z.ZodType<string, z.ZodTypeDef, string>;
612
- name: z.ZodLiteral<"APIError">;
613
- }, "strip", z.ZodTypeAny, {
614
- code: "INTERNAL_SERVER_ERROR";
615
- name: "APIError";
616
- error: string;
617
- }, {
618
- code: "INTERNAL_SERVER_ERROR";
619
- name: "APIError";
620
- error: string;
621
- }>;
622
- };
623
- };
624
- totpSetupConfirm: {
625
- body: z.ZodObject<{
626
- totpCode: z.ZodString;
627
- }, "strip", z.ZodTypeAny, {
628
- totpCode: string;
629
- }, {
630
- totpCode: string;
631
- }>;
632
- method: "POST";
633
- path: "/totp/setup/confirm";
634
- headers: z.ZodObject<{
635
- authorization: z.ZodOptional<z.ZodString>;
636
- }, "strip", z.ZodTypeAny, {
637
- authorization?: string | undefined;
638
- }, {
639
- authorization?: string | undefined;
640
- }>;
641
- responses: {
642
- 200: typeof import("@ts-rest/core").ContractNoBody;
643
- 400: z.ZodUnion<[z.ZodObject<{
644
- name: z.ZodLiteral<"ZodError">;
645
- issues: z.ZodArray<z.ZodObject<{
646
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
647
- message: z.ZodOptional<z.ZodString>;
648
- code: z.ZodNativeEnum<{
649
- invalid_type: "invalid_type";
650
- invalid_literal: "invalid_literal";
651
- custom: "custom";
652
- invalid_union: "invalid_union";
653
- invalid_union_discriminator: "invalid_union_discriminator";
654
- invalid_enum_value: "invalid_enum_value";
655
- unrecognized_keys: "unrecognized_keys";
656
- invalid_arguments: "invalid_arguments";
657
- invalid_return_type: "invalid_return_type";
658
- invalid_date: "invalid_date";
659
- invalid_string: "invalid_string";
660
- too_small: "too_small";
661
- too_big: "too_big";
662
- invalid_intersection_types: "invalid_intersection_types";
663
- not_multiple_of: "not_multiple_of";
664
- not_finite: "not_finite";
665
- }>;
666
- }, "strip", z.ZodAny, z.objectOutputType<{
667
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
668
- message: z.ZodOptional<z.ZodString>;
669
- code: z.ZodNativeEnum<{
670
- invalid_type: "invalid_type";
671
- invalid_literal: "invalid_literal";
672
- custom: "custom";
673
- invalid_union: "invalid_union";
674
- invalid_union_discriminator: "invalid_union_discriminator";
675
- invalid_enum_value: "invalid_enum_value";
676
- unrecognized_keys: "unrecognized_keys";
677
- invalid_arguments: "invalid_arguments";
678
- invalid_return_type: "invalid_return_type";
679
- invalid_date: "invalid_date";
680
- invalid_string: "invalid_string";
681
- too_small: "too_small";
682
- too_big: "too_big";
683
- invalid_intersection_types: "invalid_intersection_types";
684
- not_multiple_of: "not_multiple_of";
685
- not_finite: "not_finite";
686
- }>;
687
- }, z.ZodAny, "strip">, z.objectInputType<{
688
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
689
- message: z.ZodOptional<z.ZodString>;
690
- code: z.ZodNativeEnum<{
691
- invalid_type: "invalid_type";
692
- invalid_literal: "invalid_literal";
693
- custom: "custom";
694
- invalid_union: "invalid_union";
695
- invalid_union_discriminator: "invalid_union_discriminator";
696
- invalid_enum_value: "invalid_enum_value";
697
- unrecognized_keys: "unrecognized_keys";
698
- invalid_arguments: "invalid_arguments";
699
- invalid_return_type: "invalid_return_type";
700
- invalid_date: "invalid_date";
701
- invalid_string: "invalid_string";
702
- too_small: "too_small";
703
- too_big: "too_big";
704
- invalid_intersection_types: "invalid_intersection_types";
705
- not_multiple_of: "not_multiple_of";
706
- not_finite: "not_finite";
707
- }>;
708
- }, z.ZodAny, "strip">>, "many">;
709
- }, "strip", z.ZodTypeAny, {
710
- name: "ZodError";
711
- issues: z.objectOutputType<{
712
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
713
- message: z.ZodOptional<z.ZodString>;
714
- code: z.ZodNativeEnum<{
715
- invalid_type: "invalid_type";
716
- invalid_literal: "invalid_literal";
717
- custom: "custom";
718
- invalid_union: "invalid_union";
719
- invalid_union_discriminator: "invalid_union_discriminator";
720
- invalid_enum_value: "invalid_enum_value";
721
- unrecognized_keys: "unrecognized_keys";
722
- invalid_arguments: "invalid_arguments";
723
- invalid_return_type: "invalid_return_type";
724
- invalid_date: "invalid_date";
725
- invalid_string: "invalid_string";
726
- too_small: "too_small";
727
- too_big: "too_big";
728
- invalid_intersection_types: "invalid_intersection_types";
729
- not_multiple_of: "not_multiple_of";
730
- not_finite: "not_finite";
731
- }>;
732
- }, z.ZodAny, "strip">[];
733
- }, {
734
- name: "ZodError";
735
- issues: z.objectInputType<{
736
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
737
- message: z.ZodOptional<z.ZodString>;
738
- code: z.ZodNativeEnum<{
739
- invalid_type: "invalid_type";
740
- invalid_literal: "invalid_literal";
741
- custom: "custom";
742
- invalid_union: "invalid_union";
743
- invalid_union_discriminator: "invalid_union_discriminator";
744
- invalid_enum_value: "invalid_enum_value";
745
- unrecognized_keys: "unrecognized_keys";
746
- invalid_arguments: "invalid_arguments";
747
- invalid_return_type: "invalid_return_type";
748
- invalid_date: "invalid_date";
749
- invalid_string: "invalid_string";
750
- too_small: "too_small";
751
- too_big: "too_big";
752
- invalid_intersection_types: "invalid_intersection_types";
753
- not_multiple_of: "not_multiple_of";
754
- not_finite: "not_finite";
755
- }>;
756
- }, z.ZodAny, "strip">[];
757
- }>, z.ZodObject<{
758
- code: z.ZodType<"TOTP_NOT_SETUP", z.ZodTypeDef, "TOTP_NOT_SETUP">;
759
- error: z.ZodType<string, z.ZodTypeDef, string>;
760
- name: z.ZodLiteral<"APIError">;
761
- }, "strip", z.ZodTypeAny, {
762
- code: "TOTP_NOT_SETUP";
763
- name: "APIError";
764
- error: string;
765
- }, {
766
- code: "TOTP_NOT_SETUP";
767
- name: "APIError";
768
- error: string;
769
- }>, z.ZodObject<{
770
- code: z.ZodType<"TOTP_INVALID", z.ZodTypeDef, "TOTP_INVALID">;
771
- error: z.ZodType<string, z.ZodTypeDef, string>;
772
- name: z.ZodLiteral<"APIError">;
773
- }, "strip", z.ZodTypeAny, {
774
- code: "TOTP_INVALID";
775
- name: "APIError";
776
- error: string;
777
- }, {
778
- code: "TOTP_INVALID";
779
- name: "APIError";
780
- error: string;
781
- }>]>;
782
- 401: z.ZodObject<{
783
- code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
784
- error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
785
- name: z.ZodLiteral<"APIError">;
786
- }, "strip", z.ZodTypeAny, {
787
- code: "UNAUTHORIZED";
788
- name: "APIError";
789
- error: "Unauthorized";
790
- }, {
791
- code: "UNAUTHORIZED";
792
- name: "APIError";
793
- error: "Unauthorized";
794
- }>;
795
- 500: z.ZodObject<{
796
- code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
797
- error: z.ZodType<string, z.ZodTypeDef, string>;
798
- name: z.ZodLiteral<"APIError">;
799
- }, "strip", z.ZodTypeAny, {
800
- code: "INTERNAL_SERVER_ERROR";
801
- name: "APIError";
802
- error: string;
803
- }, {
804
- code: "INTERNAL_SERVER_ERROR";
805
- name: "APIError";
806
- error: string;
807
- }>;
808
- };
809
- };
810
- totpVerify: {
811
- body: z.ZodObject<{
812
- totpCode: z.ZodString;
813
- }, "strip", z.ZodTypeAny, {
814
- totpCode: string;
815
- }, {
816
- totpCode: string;
817
- }>;
818
- method: "POST";
819
- path: "/totp/verify";
820
- headers: z.ZodObject<{
821
- authorization: z.ZodOptional<z.ZodString>;
822
- }, "strip", z.ZodTypeAny, {
823
- authorization?: string | undefined;
824
- }, {
825
- authorization?: string | undefined;
826
- }>;
827
- responses: {
828
- 200: typeof import("@ts-rest/core").ContractNoBody;
829
- 400: z.ZodUnion<[z.ZodObject<{
830
- name: z.ZodLiteral<"ZodError">;
831
- issues: z.ZodArray<z.ZodObject<{
832
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
833
- message: z.ZodOptional<z.ZodString>;
834
- code: z.ZodNativeEnum<{
835
- invalid_type: "invalid_type";
836
- invalid_literal: "invalid_literal";
837
- custom: "custom";
838
- invalid_union: "invalid_union";
839
- invalid_union_discriminator: "invalid_union_discriminator";
840
- invalid_enum_value: "invalid_enum_value";
841
- unrecognized_keys: "unrecognized_keys";
842
- invalid_arguments: "invalid_arguments";
843
- invalid_return_type: "invalid_return_type";
844
- invalid_date: "invalid_date";
845
- invalid_string: "invalid_string";
846
- too_small: "too_small";
847
- too_big: "too_big";
848
- invalid_intersection_types: "invalid_intersection_types";
849
- not_multiple_of: "not_multiple_of";
850
- not_finite: "not_finite";
851
- }>;
852
- }, "strip", z.ZodAny, z.objectOutputType<{
853
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
854
- message: z.ZodOptional<z.ZodString>;
855
- code: z.ZodNativeEnum<{
856
- invalid_type: "invalid_type";
857
- invalid_literal: "invalid_literal";
858
- custom: "custom";
859
- invalid_union: "invalid_union";
860
- invalid_union_discriminator: "invalid_union_discriminator";
861
- invalid_enum_value: "invalid_enum_value";
862
- unrecognized_keys: "unrecognized_keys";
863
- invalid_arguments: "invalid_arguments";
864
- invalid_return_type: "invalid_return_type";
865
- invalid_date: "invalid_date";
866
- invalid_string: "invalid_string";
867
- too_small: "too_small";
868
- too_big: "too_big";
869
- invalid_intersection_types: "invalid_intersection_types";
870
- not_multiple_of: "not_multiple_of";
871
- not_finite: "not_finite";
872
- }>;
873
- }, z.ZodAny, "strip">, z.objectInputType<{
874
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
875
- message: z.ZodOptional<z.ZodString>;
876
- code: z.ZodNativeEnum<{
877
- invalid_type: "invalid_type";
878
- invalid_literal: "invalid_literal";
879
- custom: "custom";
880
- invalid_union: "invalid_union";
881
- invalid_union_discriminator: "invalid_union_discriminator";
882
- invalid_enum_value: "invalid_enum_value";
883
- unrecognized_keys: "unrecognized_keys";
884
- invalid_arguments: "invalid_arguments";
885
- invalid_return_type: "invalid_return_type";
886
- invalid_date: "invalid_date";
887
- invalid_string: "invalid_string";
888
- too_small: "too_small";
889
- too_big: "too_big";
890
- invalid_intersection_types: "invalid_intersection_types";
891
- not_multiple_of: "not_multiple_of";
892
- not_finite: "not_finite";
893
- }>;
894
- }, z.ZodAny, "strip">>, "many">;
895
- }, "strip", z.ZodTypeAny, {
896
- name: "ZodError";
897
- issues: z.objectOutputType<{
898
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
899
- message: z.ZodOptional<z.ZodString>;
900
- code: z.ZodNativeEnum<{
901
- invalid_type: "invalid_type";
902
- invalid_literal: "invalid_literal";
903
- custom: "custom";
904
- invalid_union: "invalid_union";
905
- invalid_union_discriminator: "invalid_union_discriminator";
906
- invalid_enum_value: "invalid_enum_value";
907
- unrecognized_keys: "unrecognized_keys";
908
- invalid_arguments: "invalid_arguments";
909
- invalid_return_type: "invalid_return_type";
910
- invalid_date: "invalid_date";
911
- invalid_string: "invalid_string";
912
- too_small: "too_small";
913
- too_big: "too_big";
914
- invalid_intersection_types: "invalid_intersection_types";
915
- not_multiple_of: "not_multiple_of";
916
- not_finite: "not_finite";
917
- }>;
918
- }, z.ZodAny, "strip">[];
919
- }, {
920
- name: "ZodError";
921
- issues: z.objectInputType<{
922
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
923
- message: z.ZodOptional<z.ZodString>;
924
- code: z.ZodNativeEnum<{
925
- invalid_type: "invalid_type";
926
- invalid_literal: "invalid_literal";
927
- custom: "custom";
928
- invalid_union: "invalid_union";
929
- invalid_union_discriminator: "invalid_union_discriminator";
930
- invalid_enum_value: "invalid_enum_value";
931
- unrecognized_keys: "unrecognized_keys";
932
- invalid_arguments: "invalid_arguments";
933
- invalid_return_type: "invalid_return_type";
934
- invalid_date: "invalid_date";
935
- invalid_string: "invalid_string";
936
- too_small: "too_small";
937
- too_big: "too_big";
938
- invalid_intersection_types: "invalid_intersection_types";
939
- not_multiple_of: "not_multiple_of";
940
- not_finite: "not_finite";
941
- }>;
942
- }, z.ZodAny, "strip">[];
943
- }>, z.ZodObject<{
944
- code: z.ZodType<"TOTP_NOT_SETUP", z.ZodTypeDef, "TOTP_NOT_SETUP">;
945
- error: z.ZodType<string, z.ZodTypeDef, string>;
946
- name: z.ZodLiteral<"APIError">;
947
- }, "strip", z.ZodTypeAny, {
948
- code: "TOTP_NOT_SETUP";
949
- name: "APIError";
950
- error: string;
951
- }, {
952
- code: "TOTP_NOT_SETUP";
953
- name: "APIError";
954
- error: string;
955
- }>, z.ZodObject<{
956
- code: z.ZodType<"TOTP_NOT_REQUIRED", z.ZodTypeDef, "TOTP_NOT_REQUIRED">;
957
- error: z.ZodType<string, z.ZodTypeDef, string>;
958
- name: z.ZodLiteral<"APIError">;
959
- }, "strip", z.ZodTypeAny, {
960
- code: "TOTP_NOT_REQUIRED";
961
- name: "APIError";
962
- error: string;
963
- }, {
964
- code: "TOTP_NOT_REQUIRED";
965
- name: "APIError";
966
- error: string;
967
- }>, z.ZodObject<{
968
- code: z.ZodType<"TOTP_INVALID", z.ZodTypeDef, "TOTP_INVALID">;
969
- error: z.ZodType<string, z.ZodTypeDef, string>;
970
- name: z.ZodLiteral<"APIError">;
971
- }, "strip", z.ZodTypeAny, {
972
- code: "TOTP_INVALID";
973
- name: "APIError";
974
- error: string;
975
- }, {
976
- code: "TOTP_INVALID";
977
- name: "APIError";
978
- error: string;
979
- }>]>;
980
- 401: z.ZodObject<{
981
- code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
982
- error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
983
- name: z.ZodLiteral<"APIError">;
984
- }, "strip", z.ZodTypeAny, {
985
- code: "UNAUTHORIZED";
986
- name: "APIError";
987
- error: "Unauthorized";
988
- }, {
989
- code: "UNAUTHORIZED";
990
- name: "APIError";
991
- error: "Unauthorized";
992
- }>;
993
- 500: z.ZodObject<{
994
- code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
995
- error: z.ZodType<string, z.ZodTypeDef, string>;
996
- name: z.ZodLiteral<"APIError">;
997
- }, "strip", z.ZodTypeAny, {
998
- code: "INTERNAL_SERVER_ERROR";
999
- name: "APIError";
1000
- error: string;
1001
- }, {
1002
- code: "INTERNAL_SERVER_ERROR";
1003
- name: "APIError";
1004
- error: string;
1005
- }>;
1006
- };
1007
- };
1008
- totpDisable: {
1009
- body: z.ZodObject<{
1010
- totpCode: z.ZodString;
1011
- }, "strip", z.ZodTypeAny, {
1012
- totpCode: string;
1013
- }, {
1014
- totpCode: string;
1015
- }>;
1016
- method: "POST";
1017
- path: "/totp/disable";
1018
- headers: z.ZodObject<{
1019
- authorization: z.ZodOptional<z.ZodString>;
1020
- }, "strip", z.ZodTypeAny, {
1021
- authorization?: string | undefined;
1022
- }, {
1023
- authorization?: string | undefined;
1024
- }>;
1025
- responses: {
1026
- 200: typeof import("@ts-rest/core").ContractNoBody;
1027
- 400: z.ZodUnion<[z.ZodObject<{
1028
- name: z.ZodLiteral<"ZodError">;
1029
- issues: z.ZodArray<z.ZodObject<{
1030
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1031
- message: z.ZodOptional<z.ZodString>;
1032
- code: z.ZodNativeEnum<{
1033
- invalid_type: "invalid_type";
1034
- invalid_literal: "invalid_literal";
1035
- custom: "custom";
1036
- invalid_union: "invalid_union";
1037
- invalid_union_discriminator: "invalid_union_discriminator";
1038
- invalid_enum_value: "invalid_enum_value";
1039
- unrecognized_keys: "unrecognized_keys";
1040
- invalid_arguments: "invalid_arguments";
1041
- invalid_return_type: "invalid_return_type";
1042
- invalid_date: "invalid_date";
1043
- invalid_string: "invalid_string";
1044
- too_small: "too_small";
1045
- too_big: "too_big";
1046
- invalid_intersection_types: "invalid_intersection_types";
1047
- not_multiple_of: "not_multiple_of";
1048
- not_finite: "not_finite";
1049
- }>;
1050
- }, "strip", z.ZodAny, z.objectOutputType<{
1051
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1052
- message: z.ZodOptional<z.ZodString>;
1053
- code: z.ZodNativeEnum<{
1054
- invalid_type: "invalid_type";
1055
- invalid_literal: "invalid_literal";
1056
- custom: "custom";
1057
- invalid_union: "invalid_union";
1058
- invalid_union_discriminator: "invalid_union_discriminator";
1059
- invalid_enum_value: "invalid_enum_value";
1060
- unrecognized_keys: "unrecognized_keys";
1061
- invalid_arguments: "invalid_arguments";
1062
- invalid_return_type: "invalid_return_type";
1063
- invalid_date: "invalid_date";
1064
- invalid_string: "invalid_string";
1065
- too_small: "too_small";
1066
- too_big: "too_big";
1067
- invalid_intersection_types: "invalid_intersection_types";
1068
- not_multiple_of: "not_multiple_of";
1069
- not_finite: "not_finite";
1070
- }>;
1071
- }, z.ZodAny, "strip">, z.objectInputType<{
1072
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1073
- message: z.ZodOptional<z.ZodString>;
1074
- code: z.ZodNativeEnum<{
1075
- invalid_type: "invalid_type";
1076
- invalid_literal: "invalid_literal";
1077
- custom: "custom";
1078
- invalid_union: "invalid_union";
1079
- invalid_union_discriminator: "invalid_union_discriminator";
1080
- invalid_enum_value: "invalid_enum_value";
1081
- unrecognized_keys: "unrecognized_keys";
1082
- invalid_arguments: "invalid_arguments";
1083
- invalid_return_type: "invalid_return_type";
1084
- invalid_date: "invalid_date";
1085
- invalid_string: "invalid_string";
1086
- too_small: "too_small";
1087
- too_big: "too_big";
1088
- invalid_intersection_types: "invalid_intersection_types";
1089
- not_multiple_of: "not_multiple_of";
1090
- not_finite: "not_finite";
1091
- }>;
1092
- }, z.ZodAny, "strip">>, "many">;
1093
- }, "strip", z.ZodTypeAny, {
1094
- name: "ZodError";
1095
- issues: z.objectOutputType<{
1096
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1097
- message: z.ZodOptional<z.ZodString>;
1098
- code: z.ZodNativeEnum<{
1099
- invalid_type: "invalid_type";
1100
- invalid_literal: "invalid_literal";
1101
- custom: "custom";
1102
- invalid_union: "invalid_union";
1103
- invalid_union_discriminator: "invalid_union_discriminator";
1104
- invalid_enum_value: "invalid_enum_value";
1105
- unrecognized_keys: "unrecognized_keys";
1106
- invalid_arguments: "invalid_arguments";
1107
- invalid_return_type: "invalid_return_type";
1108
- invalid_date: "invalid_date";
1109
- invalid_string: "invalid_string";
1110
- too_small: "too_small";
1111
- too_big: "too_big";
1112
- invalid_intersection_types: "invalid_intersection_types";
1113
- not_multiple_of: "not_multiple_of";
1114
- not_finite: "not_finite";
1115
- }>;
1116
- }, z.ZodAny, "strip">[];
1117
- }, {
1118
- name: "ZodError";
1119
- issues: z.objectInputType<{
1120
- path: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
1121
- message: z.ZodOptional<z.ZodString>;
1122
- code: z.ZodNativeEnum<{
1123
- invalid_type: "invalid_type";
1124
- invalid_literal: "invalid_literal";
1125
- custom: "custom";
1126
- invalid_union: "invalid_union";
1127
- invalid_union_discriminator: "invalid_union_discriminator";
1128
- invalid_enum_value: "invalid_enum_value";
1129
- unrecognized_keys: "unrecognized_keys";
1130
- invalid_arguments: "invalid_arguments";
1131
- invalid_return_type: "invalid_return_type";
1132
- invalid_date: "invalid_date";
1133
- invalid_string: "invalid_string";
1134
- too_small: "too_small";
1135
- too_big: "too_big";
1136
- invalid_intersection_types: "invalid_intersection_types";
1137
- not_multiple_of: "not_multiple_of";
1138
- not_finite: "not_finite";
1139
- }>;
1140
- }, z.ZodAny, "strip">[];
1141
- }>, z.ZodObject<{
1142
- code: z.ZodType<"TOTP_NOT_SETUP", z.ZodTypeDef, "TOTP_NOT_SETUP">;
1143
- error: z.ZodType<string, z.ZodTypeDef, string>;
1144
- name: z.ZodLiteral<"APIError">;
1145
- }, "strip", z.ZodTypeAny, {
1146
- code: "TOTP_NOT_SETUP";
1147
- name: "APIError";
1148
- error: string;
1149
- }, {
1150
- code: "TOTP_NOT_SETUP";
1151
- name: "APIError";
1152
- error: string;
1153
- }>, z.ZodObject<{
1154
- code: z.ZodType<"TOTP_INVALID", z.ZodTypeDef, "TOTP_INVALID">;
1155
- error: z.ZodType<string, z.ZodTypeDef, string>;
1156
- name: z.ZodLiteral<"APIError">;
1157
- }, "strip", z.ZodTypeAny, {
1158
- code: "TOTP_INVALID";
1159
- name: "APIError";
1160
- error: string;
1161
- }, {
1162
- code: "TOTP_INVALID";
1163
- name: "APIError";
1164
- error: string;
1165
- }>]>;
1166
- 401: z.ZodObject<{
1167
- code: z.ZodType<"UNAUTHORIZED", z.ZodTypeDef, "UNAUTHORIZED">;
1168
- error: z.ZodType<"Unauthorized", z.ZodTypeDef, "Unauthorized">;
1169
- name: z.ZodLiteral<"APIError">;
1170
- }, "strip", z.ZodTypeAny, {
1171
- code: "UNAUTHORIZED";
1172
- name: "APIError";
1173
- error: "Unauthorized";
1174
- }, {
1175
- code: "UNAUTHORIZED";
1176
- name: "APIError";
1177
- error: "Unauthorized";
1178
- }>;
1179
- 500: z.ZodObject<{
1180
- code: z.ZodType<"INTERNAL_SERVER_ERROR", z.ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1181
- error: z.ZodType<string, z.ZodTypeDef, string>;
1182
- name: z.ZodLiteral<"APIError">;
1183
- }, "strip", z.ZodTypeAny, {
1184
- code: "INTERNAL_SERVER_ERROR";
1185
- name: "APIError";
1186
- error: string;
1187
- }, {
1188
- code: "INTERNAL_SERVER_ERROR";
1189
- name: "APIError";
1190
- error: string;
1191
- }>;
1192
- };
1193
- };
1194
450
  logout: {
1195
451
  body: z.ZodOptional<z.ZodObject<{
1196
452
  refreshToken: z.ZodString;
@@ -1202,7 +458,7 @@ declare const _default: {
1202
458
  method: "POST";
1203
459
  path: "/logout";
1204
460
  responses: {
1205
- 200: typeof import("@ts-rest/core").ContractNoBody;
461
+ 204: typeof import("@ts-rest/core").ContractNoBody;
1206
462
  };
1207
463
  };
1208
464
  register: {
@@ -1225,7 +481,7 @@ declare const _default: {
1225
481
  method: "POST";
1226
482
  path: "/register";
1227
483
  responses: {
1228
- 200: typeof import("@ts-rest/core").ContractNoBody;
484
+ 204: typeof import("@ts-rest/core").ContractNoBody;
1229
485
  400: z.ZodObject<{
1230
486
  name: z.ZodLiteral<"ZodError">;
1231
487
  issues: z.ZodArray<z.ZodObject<{