@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.
@@ -472,7 +472,7 @@ declare const _default: {
472
472
  authorization?: string | undefined;
473
473
  }>;
474
474
  responses: {
475
- 200: typeof import("@ts-rest/core").ContractNoBody;
475
+ 204: typeof import("@ts-rest/core").ContractNoBody;
476
476
  400: import("zod").ZodObject<{
477
477
  name: import("zod").ZodLiteral<"ZodError">;
478
478
  issues: import("zod").ZodArray<import("zod").ZodObject<{
@@ -638,7 +638,7 @@ declare const _default: {
638
638
  authorization?: string | undefined;
639
639
  }>;
640
640
  responses: {
641
- 200: typeof import("@ts-rest/core").ContractNoBody;
641
+ 204: typeof import("@ts-rest/core").ContractNoBody;
642
642
  400: import("zod").ZodObject<{
643
643
  name: import("zod").ZodLiteral<"ZodError">;
644
644
  issues: import("zod").ZodArray<import("zod").ZodObject<{
@@ -801,7 +801,7 @@ declare const _default: {
801
801
  authorization?: string | undefined;
802
802
  }>;
803
803
  responses: {
804
- 200: typeof import("@ts-rest/core").ContractNoBody;
804
+ 204: typeof import("@ts-rest/core").ContractNoBody;
805
805
  400: import("zod").ZodObject<{
806
806
  name: import("zod").ZodLiteral<"ZodError">;
807
807
  issues: import("zod").ZodArray<import("zod").ZodObject<{
@@ -964,7 +964,7 @@ declare const _default: {
964
964
  authorization?: string | undefined;
965
965
  }>;
966
966
  responses: {
967
- 200: typeof import("@ts-rest/core").ContractNoBody;
967
+ 204: typeof import("@ts-rest/core").ContractNoBody;
968
968
  400: import("zod").ZodObject<{
969
969
  name: import("zod").ZodLiteral<"ZodError">;
970
970
  issues: import("zod").ZodArray<import("zod").ZodObject<{
@@ -1123,7 +1123,7 @@ declare const _default: {
1123
1123
  method: "POST";
1124
1124
  path: "/api/v2/password/request";
1125
1125
  responses: {
1126
- 200: typeof import("@ts-rest/core").ContractNoBody;
1126
+ 204: typeof import("@ts-rest/core").ContractNoBody;
1127
1127
  400: import("zod").ZodObject<{
1128
1128
  name: import("zod").ZodLiteral<"ZodError">;
1129
1129
  issues: import("zod").ZodArray<import("zod").ZodObject<{
@@ -1484,7 +1484,7 @@ declare const _default: {
1484
1484
  method: "POST";
1485
1485
  path: "/api/v2/verify/request";
1486
1486
  responses: {
1487
- 200: typeof import("@ts-rest/core").ContractNoBody;
1487
+ 204: typeof import("@ts-rest/core").ContractNoBody;
1488
1488
  400: import("zod").ZodObject<{
1489
1489
  name: import("zod").ZodLiteral<"ZodError">;
1490
1490
  issues: import("zod").ZodArray<import("zod").ZodObject<{
@@ -1828,836 +1828,784 @@ declare const _default: {
1828
1828
  }>;
1829
1829
  };
1830
1830
  };
1831
- publicKey: {
1832
- method: "GET";
1833
- path: "/api/v2/public-key";
1834
- responses: {
1835
- 200: import("zod").ZodObject<{
1836
- publicKey: import("zod").ZodString;
1831
+ totp: {
1832
+ setup: {
1833
+ body: typeof import("@ts-rest/core").ContractNoBody;
1834
+ method: "POST";
1835
+ path: "/api/v2/totp/setup";
1836
+ headers: import("zod").ZodObject<{
1837
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
1837
1838
  }, "strip", import("zod").ZodTypeAny, {
1838
- publicKey: string;
1839
+ authorization?: string | undefined;
1839
1840
  }, {
1840
- publicKey: string;
1841
+ authorization?: string | undefined;
1841
1842
  }>;
1842
- };
1843
- };
1844
- auth: {
1845
- body: typeof import("@ts-rest/core").ContractNoBody;
1846
- method: "POST";
1847
- path: "/api/v2/auth/check";
1848
- headers: import("zod").ZodObject<{
1849
- authorization: import("zod").ZodOptional<import("zod").ZodString>;
1850
- }, "strip", import("zod").ZodTypeAny, {
1851
- authorization?: string | undefined;
1852
- }, {
1853
- authorization?: string | undefined;
1854
- }>;
1855
- responses: {
1856
- 200: import("zod").ZodUnion<[import("zod").ZodObject<{
1857
- result: import("zod").ZodLiteral<true>;
1858
- data: import("zod").ZodIntersection<import("zod").ZodObject<{
1859
- iat: import("zod").ZodNumber;
1860
- exp: import("zod").ZodNumber;
1843
+ responses: {
1844
+ 200: import("zod").ZodObject<{
1845
+ secret: import("zod").ZodString;
1846
+ otpauthUrl: import("zod").ZodString;
1861
1847
  }, "strip", import("zod").ZodTypeAny, {
1862
- iat: number;
1863
- exp: number;
1848
+ secret: string;
1849
+ otpauthUrl: string;
1864
1850
  }, {
1865
- iat: number;
1866
- exp: number;
1851
+ secret: string;
1852
+ otpauthUrl: string;
1853
+ }>;
1854
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
1855
+ name: import("zod").ZodLiteral<"ZodError">;
1856
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
1857
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1858
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1859
+ code: import("zod").ZodNativeEnum<{
1860
+ invalid_type: "invalid_type";
1861
+ invalid_literal: "invalid_literal";
1862
+ custom: "custom";
1863
+ invalid_union: "invalid_union";
1864
+ invalid_union_discriminator: "invalid_union_discriminator";
1865
+ invalid_enum_value: "invalid_enum_value";
1866
+ unrecognized_keys: "unrecognized_keys";
1867
+ invalid_arguments: "invalid_arguments";
1868
+ invalid_return_type: "invalid_return_type";
1869
+ invalid_date: "invalid_date";
1870
+ invalid_string: "invalid_string";
1871
+ too_small: "too_small";
1872
+ too_big: "too_big";
1873
+ invalid_intersection_types: "invalid_intersection_types";
1874
+ not_multiple_of: "not_multiple_of";
1875
+ not_finite: "not_finite";
1876
+ }>;
1877
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1878
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1879
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1880
+ code: import("zod").ZodNativeEnum<{
1881
+ invalid_type: "invalid_type";
1882
+ invalid_literal: "invalid_literal";
1883
+ custom: "custom";
1884
+ invalid_union: "invalid_union";
1885
+ invalid_union_discriminator: "invalid_union_discriminator";
1886
+ invalid_enum_value: "invalid_enum_value";
1887
+ unrecognized_keys: "unrecognized_keys";
1888
+ invalid_arguments: "invalid_arguments";
1889
+ invalid_return_type: "invalid_return_type";
1890
+ invalid_date: "invalid_date";
1891
+ invalid_string: "invalid_string";
1892
+ too_small: "too_small";
1893
+ too_big: "too_big";
1894
+ invalid_intersection_types: "invalid_intersection_types";
1895
+ not_multiple_of: "not_multiple_of";
1896
+ not_finite: "not_finite";
1897
+ }>;
1898
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1899
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1900
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1901
+ code: import("zod").ZodNativeEnum<{
1902
+ invalid_type: "invalid_type";
1903
+ invalid_literal: "invalid_literal";
1904
+ custom: "custom";
1905
+ invalid_union: "invalid_union";
1906
+ invalid_union_discriminator: "invalid_union_discriminator";
1907
+ invalid_enum_value: "invalid_enum_value";
1908
+ unrecognized_keys: "unrecognized_keys";
1909
+ invalid_arguments: "invalid_arguments";
1910
+ invalid_return_type: "invalid_return_type";
1911
+ invalid_date: "invalid_date";
1912
+ invalid_string: "invalid_string";
1913
+ too_small: "too_small";
1914
+ too_big: "too_big";
1915
+ invalid_intersection_types: "invalid_intersection_types";
1916
+ not_multiple_of: "not_multiple_of";
1917
+ not_finite: "not_finite";
1918
+ }>;
1919
+ }, import("zod").ZodAny, "strip">>, "many">;
1920
+ }, "strip", import("zod").ZodTypeAny, {
1921
+ name: "ZodError";
1922
+ issues: import("zod").objectOutputType<{
1923
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1924
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1925
+ code: import("zod").ZodNativeEnum<{
1926
+ invalid_type: "invalid_type";
1927
+ invalid_literal: "invalid_literal";
1928
+ custom: "custom";
1929
+ invalid_union: "invalid_union";
1930
+ invalid_union_discriminator: "invalid_union_discriminator";
1931
+ invalid_enum_value: "invalid_enum_value";
1932
+ unrecognized_keys: "unrecognized_keys";
1933
+ invalid_arguments: "invalid_arguments";
1934
+ invalid_return_type: "invalid_return_type";
1935
+ invalid_date: "invalid_date";
1936
+ invalid_string: "invalid_string";
1937
+ too_small: "too_small";
1938
+ too_big: "too_big";
1939
+ invalid_intersection_types: "invalid_intersection_types";
1940
+ not_multiple_of: "not_multiple_of";
1941
+ not_finite: "not_finite";
1942
+ }>;
1943
+ }, import("zod").ZodAny, "strip">[];
1944
+ }, {
1945
+ name: "ZodError";
1946
+ issues: import("zod").objectInputType<{
1947
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1948
+ message: import("zod").ZodOptional<import("zod").ZodString>;
1949
+ code: import("zod").ZodNativeEnum<{
1950
+ invalid_type: "invalid_type";
1951
+ invalid_literal: "invalid_literal";
1952
+ custom: "custom";
1953
+ invalid_union: "invalid_union";
1954
+ invalid_union_discriminator: "invalid_union_discriminator";
1955
+ invalid_enum_value: "invalid_enum_value";
1956
+ unrecognized_keys: "unrecognized_keys";
1957
+ invalid_arguments: "invalid_arguments";
1958
+ invalid_return_type: "invalid_return_type";
1959
+ invalid_date: "invalid_date";
1960
+ invalid_string: "invalid_string";
1961
+ too_small: "too_small";
1962
+ too_big: "too_big";
1963
+ invalid_intersection_types: "invalid_intersection_types";
1964
+ not_multiple_of: "not_multiple_of";
1965
+ not_finite: "not_finite";
1966
+ }>;
1967
+ }, import("zod").ZodAny, "strip">[];
1867
1968
  }>, import("zod").ZodObject<{
1868
- public_id: import("zod").ZodString;
1869
- role: import("zod").ZodNumber;
1870
- password_reset: import("zod").ZodOptional<import("zod").ZodString>;
1871
- totp_required: import("zod").ZodBoolean;
1872
- totp_verified: import("zod").ZodBoolean;
1969
+ code: import("zod").ZodType<"TOTP_ALREADY_SETUP", import("zod").ZodTypeDef, "TOTP_ALREADY_SETUP">;
1970
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1971
+ name: import("zod").ZodLiteral<"APIError">;
1873
1972
  }, "strip", import("zod").ZodTypeAny, {
1874
- role: number;
1875
- public_id: string;
1876
- totp_required: boolean;
1877
- totp_verified: boolean;
1878
- password_reset?: string | undefined;
1973
+ code: "TOTP_ALREADY_SETUP";
1974
+ name: "APIError";
1975
+ error: string;
1879
1976
  }, {
1880
- role: number;
1881
- public_id: string;
1882
- totp_required: boolean;
1883
- totp_verified: boolean;
1884
- password_reset?: string | undefined;
1885
- }>>;
1977
+ code: "TOTP_ALREADY_SETUP";
1978
+ name: "APIError";
1979
+ error: string;
1980
+ }>]>;
1981
+ 401: import("zod").ZodObject<{
1982
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
1983
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
1984
+ name: import("zod").ZodLiteral<"APIError">;
1985
+ }, "strip", import("zod").ZodTypeAny, {
1986
+ code: "UNAUTHORIZED";
1987
+ name: "APIError";
1988
+ error: "Unauthorized";
1989
+ }, {
1990
+ code: "UNAUTHORIZED";
1991
+ name: "APIError";
1992
+ error: "Unauthorized";
1993
+ }>;
1994
+ 500: import("zod").ZodObject<{
1995
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
1996
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
1997
+ name: import("zod").ZodLiteral<"APIError">;
1998
+ }, "strip", import("zod").ZodTypeAny, {
1999
+ code: "INTERNAL_SERVER_ERROR";
2000
+ name: "APIError";
2001
+ error: string;
2002
+ }, {
2003
+ code: "INTERNAL_SERVER_ERROR";
2004
+ name: "APIError";
2005
+ error: string;
2006
+ }>;
2007
+ };
2008
+ };
2009
+ setupConfirm: {
2010
+ body: import("zod").ZodObject<{
2011
+ totpCode: import("zod").ZodString;
1886
2012
  }, "strip", import("zod").ZodTypeAny, {
1887
- data: {
1888
- iat: number;
1889
- exp: number;
1890
- } & {
1891
- role: number;
1892
- public_id: string;
1893
- totp_required: boolean;
1894
- totp_verified: boolean;
1895
- password_reset?: string | undefined;
1896
- };
1897
- result: true;
2013
+ totpCode: string;
1898
2014
  }, {
1899
- data: {
1900
- iat: number;
1901
- exp: number;
1902
- } & {
1903
- role: number;
1904
- public_id: string;
1905
- totp_required: boolean;
1906
- totp_verified: boolean;
1907
- password_reset?: string | undefined;
1908
- };
1909
- result: true;
1910
- }>, import("zod").ZodObject<{
1911
- result: import("zod").ZodLiteral<false>;
1912
- data: import("zod").ZodUndefined;
2015
+ totpCode: string;
2016
+ }>;
2017
+ method: "POST";
2018
+ path: "/api/v2/totp/setup/confirm";
2019
+ headers: import("zod").ZodObject<{
2020
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
1913
2021
  }, "strip", import("zod").ZodTypeAny, {
1914
- result: false;
1915
- data?: undefined;
2022
+ authorization?: string | undefined;
1916
2023
  }, {
1917
- result: false;
1918
- data?: undefined;
1919
- }>]>;
1920
- };
1921
- };
1922
- login: {
1923
- body: import("zod").ZodObject<{
1924
- email: import("zod").ZodString;
1925
- password: import("zod").ZodEffects<import("zod").ZodString, string, string>;
1926
- turnstile: import("zod").ZodString;
1927
- }, "strip", import("zod").ZodTypeAny, {
1928
- email: string;
1929
- password: string;
1930
- turnstile: string;
1931
- }, {
1932
- email: string;
1933
- password: string;
1934
- turnstile: string;
1935
- }>;
1936
- method: "POST";
1937
- path: "/api/v2/login";
1938
- responses: {
1939
- 200: import("zod").ZodObject<{
1940
- accessToken: import("zod").ZodString;
1941
- expiresIn: import("zod").ZodNumber;
1942
- } & {
1943
- refreshToken: import("zod").ZodString;
1944
- }, "strip", import("zod").ZodTypeAny, {
1945
- accessToken: string;
1946
- expiresIn: number;
1947
- refreshToken: string;
1948
- }, {
1949
- accessToken: string;
1950
- expiresIn: number;
1951
- refreshToken: string;
1952
- }>;
1953
- 400: import("zod").ZodObject<{
1954
- name: import("zod").ZodLiteral<"ZodError">;
1955
- issues: import("zod").ZodArray<import("zod").ZodObject<{
1956
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1957
- message: import("zod").ZodOptional<import("zod").ZodString>;
1958
- code: import("zod").ZodNativeEnum<{
1959
- invalid_type: "invalid_type";
1960
- invalid_literal: "invalid_literal";
1961
- custom: "custom";
1962
- invalid_union: "invalid_union";
1963
- invalid_union_discriminator: "invalid_union_discriminator";
1964
- invalid_enum_value: "invalid_enum_value";
1965
- unrecognized_keys: "unrecognized_keys";
1966
- invalid_arguments: "invalid_arguments";
1967
- invalid_return_type: "invalid_return_type";
1968
- invalid_date: "invalid_date";
1969
- invalid_string: "invalid_string";
1970
- too_small: "too_small";
1971
- too_big: "too_big";
1972
- invalid_intersection_types: "invalid_intersection_types";
1973
- not_multiple_of: "not_multiple_of";
1974
- not_finite: "not_finite";
1975
- }>;
1976
- }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
1977
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1978
- message: import("zod").ZodOptional<import("zod").ZodString>;
1979
- code: import("zod").ZodNativeEnum<{
1980
- invalid_type: "invalid_type";
1981
- invalid_literal: "invalid_literal";
1982
- custom: "custom";
1983
- invalid_union: "invalid_union";
1984
- invalid_union_discriminator: "invalid_union_discriminator";
1985
- invalid_enum_value: "invalid_enum_value";
1986
- unrecognized_keys: "unrecognized_keys";
1987
- invalid_arguments: "invalid_arguments";
1988
- invalid_return_type: "invalid_return_type";
1989
- invalid_date: "invalid_date";
1990
- invalid_string: "invalid_string";
1991
- too_small: "too_small";
1992
- too_big: "too_big";
1993
- invalid_intersection_types: "invalid_intersection_types";
1994
- not_multiple_of: "not_multiple_of";
1995
- not_finite: "not_finite";
1996
- }>;
1997
- }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
1998
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
1999
- message: import("zod").ZodOptional<import("zod").ZodString>;
2000
- code: import("zod").ZodNativeEnum<{
2001
- invalid_type: "invalid_type";
2002
- invalid_literal: "invalid_literal";
2003
- custom: "custom";
2004
- invalid_union: "invalid_union";
2005
- invalid_union_discriminator: "invalid_union_discriminator";
2006
- invalid_enum_value: "invalid_enum_value";
2007
- unrecognized_keys: "unrecognized_keys";
2008
- invalid_arguments: "invalid_arguments";
2009
- invalid_return_type: "invalid_return_type";
2010
- invalid_date: "invalid_date";
2011
- invalid_string: "invalid_string";
2012
- too_small: "too_small";
2013
- too_big: "too_big";
2014
- invalid_intersection_types: "invalid_intersection_types";
2015
- not_multiple_of: "not_multiple_of";
2016
- not_finite: "not_finite";
2017
- }>;
2018
- }, import("zod").ZodAny, "strip">>, "many">;
2019
- }, "strip", import("zod").ZodTypeAny, {
2020
- name: "ZodError";
2021
- issues: import("zod").objectOutputType<{
2022
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2023
- message: import("zod").ZodOptional<import("zod").ZodString>;
2024
- code: import("zod").ZodNativeEnum<{
2025
- invalid_type: "invalid_type";
2026
- invalid_literal: "invalid_literal";
2027
- custom: "custom";
2028
- invalid_union: "invalid_union";
2029
- invalid_union_discriminator: "invalid_union_discriminator";
2030
- invalid_enum_value: "invalid_enum_value";
2031
- unrecognized_keys: "unrecognized_keys";
2032
- invalid_arguments: "invalid_arguments";
2033
- invalid_return_type: "invalid_return_type";
2034
- invalid_date: "invalid_date";
2035
- invalid_string: "invalid_string";
2036
- too_small: "too_small";
2037
- too_big: "too_big";
2038
- invalid_intersection_types: "invalid_intersection_types";
2039
- not_multiple_of: "not_multiple_of";
2040
- not_finite: "not_finite";
2041
- }>;
2042
- }, import("zod").ZodAny, "strip">[];
2043
- }, {
2044
- name: "ZodError";
2045
- issues: import("zod").objectInputType<{
2046
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2047
- message: import("zod").ZodOptional<import("zod").ZodString>;
2048
- code: import("zod").ZodNativeEnum<{
2049
- invalid_type: "invalid_type";
2050
- invalid_literal: "invalid_literal";
2051
- custom: "custom";
2052
- invalid_union: "invalid_union";
2053
- invalid_union_discriminator: "invalid_union_discriminator";
2054
- invalid_enum_value: "invalid_enum_value";
2055
- unrecognized_keys: "unrecognized_keys";
2056
- invalid_arguments: "invalid_arguments";
2057
- invalid_return_type: "invalid_return_type";
2058
- invalid_date: "invalid_date";
2059
- invalid_string: "invalid_string";
2060
- too_small: "too_small";
2061
- too_big: "too_big";
2062
- invalid_intersection_types: "invalid_intersection_types";
2063
- not_multiple_of: "not_multiple_of";
2064
- not_finite: "not_finite";
2065
- }>;
2066
- }, import("zod").ZodAny, "strip">[];
2067
- }>;
2068
- 401: import("zod").ZodUnion<[import("zod").ZodObject<{
2069
- code: import("zod").ZodType<"CREDENTIALS_INVALID", import("zod").ZodTypeDef, "CREDENTIALS_INVALID">;
2070
- error: import("zod").ZodType<"Invalid Credentials", import("zod").ZodTypeDef, "Invalid Credentials">;
2071
- name: import("zod").ZodLiteral<"APIError">;
2072
- }, "strip", import("zod").ZodTypeAny, {
2073
- code: "CREDENTIALS_INVALID";
2074
- name: "APIError";
2075
- error: "Invalid Credentials";
2076
- }, {
2077
- code: "CREDENTIALS_INVALID";
2078
- name: "APIError";
2079
- error: "Invalid Credentials";
2080
- }>, import("zod").ZodObject<{
2081
- code: import("zod").ZodType<"INVALID_TURNSTILE", import("zod").ZodTypeDef, "INVALID_TURNSTILE">;
2082
- error: import("zod").ZodType<"Invalid Turnstile", import("zod").ZodTypeDef, "Invalid Turnstile">;
2083
- name: import("zod").ZodLiteral<"APIError">;
2084
- }, "strip", import("zod").ZodTypeAny, {
2085
- code: "INVALID_TURNSTILE";
2086
- name: "APIError";
2087
- error: "Invalid Turnstile";
2088
- }, {
2089
- code: "INVALID_TURNSTILE";
2090
- name: "APIError";
2091
- error: "Invalid Turnstile";
2092
- }>]>;
2093
- 500: import("zod").ZodObject<{
2094
- code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2095
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2096
- name: import("zod").ZodLiteral<"APIError">;
2097
- }, "strip", import("zod").ZodTypeAny, {
2098
- code: "INTERNAL_SERVER_ERROR";
2099
- name: "APIError";
2100
- error: string;
2101
- }, {
2102
- code: "INTERNAL_SERVER_ERROR";
2103
- name: "APIError";
2104
- error: string;
2105
- }>;
2106
- };
2107
- };
2108
- refresh: {
2109
- body: import("zod").ZodOptional<import("zod").ZodObject<{
2110
- refreshToken: import("zod").ZodString;
2111
- }, "strip", import("zod").ZodTypeAny, {
2112
- refreshToken: string;
2113
- }, {
2114
- refreshToken: string;
2115
- }>>;
2116
- method: "POST";
2117
- path: "/api/v2/refresh";
2118
- responses: {
2119
- 200: import("zod").ZodObject<{
2120
- accessToken: import("zod").ZodString;
2121
- expiresIn: import("zod").ZodNumber;
2122
- } & {
2123
- refreshToken: import("zod").ZodString;
2124
- }, "strip", import("zod").ZodTypeAny, {
2125
- accessToken: string;
2126
- expiresIn: number;
2127
- refreshToken: string;
2128
- }, {
2129
- accessToken: string;
2130
- expiresIn: number;
2131
- refreshToken: string;
2024
+ authorization?: string | undefined;
2132
2025
  }>;
2133
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
2134
- code: import("zod").ZodType<"INVALID_REQUEST", import("zod").ZodTypeDef, "INVALID_REQUEST">;
2135
- error: import("zod").ZodType<"Missing refresh token", import("zod").ZodTypeDef, "Missing refresh token">;
2136
- name: import("zod").ZodLiteral<"APIError">;
2137
- }, "strip", import("zod").ZodTypeAny, {
2138
- code: "INVALID_REQUEST";
2139
- name: "APIError";
2140
- error: "Missing refresh token";
2141
- }, {
2142
- code: "INVALID_REQUEST";
2143
- name: "APIError";
2144
- error: "Missing refresh token";
2145
- }>, import("zod").ZodObject<{
2146
- name: import("zod").ZodLiteral<"ZodError">;
2147
- issues: import("zod").ZodArray<import("zod").ZodObject<{
2148
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2149
- message: import("zod").ZodOptional<import("zod").ZodString>;
2150
- code: import("zod").ZodNativeEnum<{
2151
- invalid_type: "invalid_type";
2152
- invalid_literal: "invalid_literal";
2153
- custom: "custom";
2154
- invalid_union: "invalid_union";
2155
- invalid_union_discriminator: "invalid_union_discriminator";
2156
- invalid_enum_value: "invalid_enum_value";
2157
- unrecognized_keys: "unrecognized_keys";
2158
- invalid_arguments: "invalid_arguments";
2159
- invalid_return_type: "invalid_return_type";
2160
- invalid_date: "invalid_date";
2161
- invalid_string: "invalid_string";
2162
- too_small: "too_small";
2163
- too_big: "too_big";
2164
- invalid_intersection_types: "invalid_intersection_types";
2165
- not_multiple_of: "not_multiple_of";
2166
- not_finite: "not_finite";
2167
- }>;
2168
- }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
2169
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2170
- message: import("zod").ZodOptional<import("zod").ZodString>;
2171
- code: import("zod").ZodNativeEnum<{
2172
- invalid_type: "invalid_type";
2173
- invalid_literal: "invalid_literal";
2174
- custom: "custom";
2175
- invalid_union: "invalid_union";
2176
- invalid_union_discriminator: "invalid_union_discriminator";
2177
- invalid_enum_value: "invalid_enum_value";
2178
- unrecognized_keys: "unrecognized_keys";
2179
- invalid_arguments: "invalid_arguments";
2180
- invalid_return_type: "invalid_return_type";
2181
- invalid_date: "invalid_date";
2182
- invalid_string: "invalid_string";
2183
- too_small: "too_small";
2184
- too_big: "too_big";
2185
- invalid_intersection_types: "invalid_intersection_types";
2186
- not_multiple_of: "not_multiple_of";
2187
- not_finite: "not_finite";
2188
- }>;
2189
- }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
2190
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2191
- message: import("zod").ZodOptional<import("zod").ZodString>;
2192
- code: import("zod").ZodNativeEnum<{
2193
- invalid_type: "invalid_type";
2194
- invalid_literal: "invalid_literal";
2195
- custom: "custom";
2196
- invalid_union: "invalid_union";
2197
- invalid_union_discriminator: "invalid_union_discriminator";
2198
- invalid_enum_value: "invalid_enum_value";
2199
- unrecognized_keys: "unrecognized_keys";
2200
- invalid_arguments: "invalid_arguments";
2201
- invalid_return_type: "invalid_return_type";
2202
- invalid_date: "invalid_date";
2203
- invalid_string: "invalid_string";
2204
- too_small: "too_small";
2205
- too_big: "too_big";
2206
- invalid_intersection_types: "invalid_intersection_types";
2207
- not_multiple_of: "not_multiple_of";
2208
- not_finite: "not_finite";
2209
- }>;
2210
- }, import("zod").ZodAny, "strip">>, "many">;
2211
- }, "strip", import("zod").ZodTypeAny, {
2212
- name: "ZodError";
2213
- issues: import("zod").objectOutputType<{
2214
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2215
- message: import("zod").ZodOptional<import("zod").ZodString>;
2216
- code: import("zod").ZodNativeEnum<{
2217
- invalid_type: "invalid_type";
2218
- invalid_literal: "invalid_literal";
2219
- custom: "custom";
2220
- invalid_union: "invalid_union";
2221
- invalid_union_discriminator: "invalid_union_discriminator";
2222
- invalid_enum_value: "invalid_enum_value";
2223
- unrecognized_keys: "unrecognized_keys";
2224
- invalid_arguments: "invalid_arguments";
2225
- invalid_return_type: "invalid_return_type";
2226
- invalid_date: "invalid_date";
2227
- invalid_string: "invalid_string";
2228
- too_small: "too_small";
2229
- too_big: "too_big";
2230
- invalid_intersection_types: "invalid_intersection_types";
2231
- not_multiple_of: "not_multiple_of";
2232
- not_finite: "not_finite";
2233
- }>;
2234
- }, import("zod").ZodAny, "strip">[];
2235
- }, {
2236
- name: "ZodError";
2237
- issues: import("zod").objectInputType<{
2238
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2239
- message: import("zod").ZodOptional<import("zod").ZodString>;
2240
- code: import("zod").ZodNativeEnum<{
2241
- invalid_type: "invalid_type";
2242
- invalid_literal: "invalid_literal";
2243
- custom: "custom";
2244
- invalid_union: "invalid_union";
2245
- invalid_union_discriminator: "invalid_union_discriminator";
2246
- invalid_enum_value: "invalid_enum_value";
2247
- unrecognized_keys: "unrecognized_keys";
2248
- invalid_arguments: "invalid_arguments";
2249
- invalid_return_type: "invalid_return_type";
2250
- invalid_date: "invalid_date";
2251
- invalid_string: "invalid_string";
2252
- too_small: "too_small";
2253
- too_big: "too_big";
2254
- invalid_intersection_types: "invalid_intersection_types";
2255
- not_multiple_of: "not_multiple_of";
2256
- not_finite: "not_finite";
2257
- }>;
2258
- }, import("zod").ZodAny, "strip">[];
2259
- }>]>;
2260
- 401: import("zod").ZodObject<{
2261
- code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2262
- error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2263
- name: import("zod").ZodLiteral<"APIError">;
2264
- }, "strip", import("zod").ZodTypeAny, {
2265
- code: "UNAUTHORIZED";
2266
- name: "APIError";
2267
- error: "Unauthorized";
2268
- }, {
2269
- code: "UNAUTHORIZED";
2270
- name: "APIError";
2271
- error: "Unauthorized";
2272
- }>;
2273
- 500: import("zod").ZodObject<{
2274
- code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2275
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2276
- name: import("zod").ZodLiteral<"APIError">;
2277
- }, "strip", import("zod").ZodTypeAny, {
2278
- code: "INTERNAL_SERVER_ERROR";
2279
- name: "APIError";
2280
- error: string;
2281
- }, {
2282
- code: "INTERNAL_SERVER_ERROR";
2283
- name: "APIError";
2284
- error: string;
2285
- }>;
2286
- };
2287
- };
2288
- totpSetup: {
2289
- body: typeof import("@ts-rest/core").ContractNoBody;
2290
- method: "POST";
2291
- path: "/api/v2/totp/setup";
2292
- headers: import("zod").ZodObject<{
2293
- authorization: import("zod").ZodOptional<import("zod").ZodString>;
2294
- }, "strip", import("zod").ZodTypeAny, {
2295
- authorization?: string | undefined;
2296
- }, {
2297
- authorization?: string | undefined;
2298
- }>;
2299
- responses: {
2300
- 200: import("zod").ZodObject<{
2301
- secret: import("zod").ZodString;
2302
- otpauthUrl: import("zod").ZodString;
2303
- }, "strip", import("zod").ZodTypeAny, {
2304
- secret: string;
2305
- otpauthUrl: string;
2306
- }, {
2307
- secret: string;
2308
- otpauthUrl: string;
2309
- }>;
2310
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
2311
- name: import("zod").ZodLiteral<"ZodError">;
2312
- issues: import("zod").ZodArray<import("zod").ZodObject<{
2313
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2314
- message: import("zod").ZodOptional<import("zod").ZodString>;
2315
- code: import("zod").ZodNativeEnum<{
2316
- invalid_type: "invalid_type";
2317
- invalid_literal: "invalid_literal";
2318
- custom: "custom";
2319
- invalid_union: "invalid_union";
2320
- invalid_union_discriminator: "invalid_union_discriminator";
2321
- invalid_enum_value: "invalid_enum_value";
2322
- unrecognized_keys: "unrecognized_keys";
2323
- invalid_arguments: "invalid_arguments";
2324
- invalid_return_type: "invalid_return_type";
2325
- invalid_date: "invalid_date";
2326
- invalid_string: "invalid_string";
2327
- too_small: "too_small";
2328
- too_big: "too_big";
2329
- invalid_intersection_types: "invalid_intersection_types";
2330
- not_multiple_of: "not_multiple_of";
2331
- not_finite: "not_finite";
2332
- }>;
2333
- }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
2334
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2335
- message: import("zod").ZodOptional<import("zod").ZodString>;
2336
- code: import("zod").ZodNativeEnum<{
2337
- invalid_type: "invalid_type";
2338
- invalid_literal: "invalid_literal";
2339
- custom: "custom";
2340
- invalid_union: "invalid_union";
2341
- invalid_union_discriminator: "invalid_union_discriminator";
2342
- invalid_enum_value: "invalid_enum_value";
2343
- unrecognized_keys: "unrecognized_keys";
2344
- invalid_arguments: "invalid_arguments";
2345
- invalid_return_type: "invalid_return_type";
2346
- invalid_date: "invalid_date";
2347
- invalid_string: "invalid_string";
2348
- too_small: "too_small";
2349
- too_big: "too_big";
2350
- invalid_intersection_types: "invalid_intersection_types";
2351
- not_multiple_of: "not_multiple_of";
2352
- not_finite: "not_finite";
2353
- }>;
2354
- }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
2355
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2356
- message: import("zod").ZodOptional<import("zod").ZodString>;
2357
- code: import("zod").ZodNativeEnum<{
2358
- invalid_type: "invalid_type";
2359
- invalid_literal: "invalid_literal";
2360
- custom: "custom";
2361
- invalid_union: "invalid_union";
2362
- invalid_union_discriminator: "invalid_union_discriminator";
2363
- invalid_enum_value: "invalid_enum_value";
2364
- unrecognized_keys: "unrecognized_keys";
2365
- invalid_arguments: "invalid_arguments";
2366
- invalid_return_type: "invalid_return_type";
2367
- invalid_date: "invalid_date";
2368
- invalid_string: "invalid_string";
2369
- too_small: "too_small";
2370
- too_big: "too_big";
2371
- invalid_intersection_types: "invalid_intersection_types";
2372
- not_multiple_of: "not_multiple_of";
2373
- not_finite: "not_finite";
2374
- }>;
2375
- }, import("zod").ZodAny, "strip">>, "many">;
2376
- }, "strip", import("zod").ZodTypeAny, {
2377
- name: "ZodError";
2378
- issues: import("zod").objectOutputType<{
2379
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2380
- message: import("zod").ZodOptional<import("zod").ZodString>;
2381
- code: import("zod").ZodNativeEnum<{
2382
- invalid_type: "invalid_type";
2383
- invalid_literal: "invalid_literal";
2384
- custom: "custom";
2385
- invalid_union: "invalid_union";
2386
- invalid_union_discriminator: "invalid_union_discriminator";
2387
- invalid_enum_value: "invalid_enum_value";
2388
- unrecognized_keys: "unrecognized_keys";
2389
- invalid_arguments: "invalid_arguments";
2390
- invalid_return_type: "invalid_return_type";
2391
- invalid_date: "invalid_date";
2392
- invalid_string: "invalid_string";
2393
- too_small: "too_small";
2394
- too_big: "too_big";
2395
- invalid_intersection_types: "invalid_intersection_types";
2396
- not_multiple_of: "not_multiple_of";
2397
- not_finite: "not_finite";
2398
- }>;
2399
- }, import("zod").ZodAny, "strip">[];
2400
- }, {
2401
- name: "ZodError";
2402
- issues: import("zod").objectInputType<{
2403
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2404
- message: import("zod").ZodOptional<import("zod").ZodString>;
2405
- code: import("zod").ZodNativeEnum<{
2406
- invalid_type: "invalid_type";
2407
- invalid_literal: "invalid_literal";
2408
- custom: "custom";
2409
- invalid_union: "invalid_union";
2410
- invalid_union_discriminator: "invalid_union_discriminator";
2411
- invalid_enum_value: "invalid_enum_value";
2412
- unrecognized_keys: "unrecognized_keys";
2413
- invalid_arguments: "invalid_arguments";
2414
- invalid_return_type: "invalid_return_type";
2415
- invalid_date: "invalid_date";
2416
- invalid_string: "invalid_string";
2417
- too_small: "too_small";
2418
- too_big: "too_big";
2419
- invalid_intersection_types: "invalid_intersection_types";
2420
- not_multiple_of: "not_multiple_of";
2421
- not_finite: "not_finite";
2422
- }>;
2423
- }, import("zod").ZodAny, "strip">[];
2424
- }>, import("zod").ZodObject<{
2425
- code: import("zod").ZodType<"TOTP_ALREADY_SETUP", import("zod").ZodTypeDef, "TOTP_ALREADY_SETUP">;
2426
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2427
- name: import("zod").ZodLiteral<"APIError">;
2428
- }, "strip", import("zod").ZodTypeAny, {
2429
- code: "TOTP_ALREADY_SETUP";
2430
- name: "APIError";
2431
- error: string;
2432
- }, {
2433
- code: "TOTP_ALREADY_SETUP";
2434
- name: "APIError";
2435
- error: string;
2436
- }>]>;
2437
- 401: import("zod").ZodObject<{
2438
- code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2439
- error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2440
- name: import("zod").ZodLiteral<"APIError">;
2026
+ responses: {
2027
+ 204: typeof import("@ts-rest/core").ContractNoBody;
2028
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
2029
+ name: import("zod").ZodLiteral<"ZodError">;
2030
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
2031
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2032
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2033
+ code: import("zod").ZodNativeEnum<{
2034
+ invalid_type: "invalid_type";
2035
+ invalid_literal: "invalid_literal";
2036
+ custom: "custom";
2037
+ invalid_union: "invalid_union";
2038
+ invalid_union_discriminator: "invalid_union_discriminator";
2039
+ invalid_enum_value: "invalid_enum_value";
2040
+ unrecognized_keys: "unrecognized_keys";
2041
+ invalid_arguments: "invalid_arguments";
2042
+ invalid_return_type: "invalid_return_type";
2043
+ invalid_date: "invalid_date";
2044
+ invalid_string: "invalid_string";
2045
+ too_small: "too_small";
2046
+ too_big: "too_big";
2047
+ invalid_intersection_types: "invalid_intersection_types";
2048
+ not_multiple_of: "not_multiple_of";
2049
+ not_finite: "not_finite";
2050
+ }>;
2051
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
2052
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2053
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2054
+ code: import("zod").ZodNativeEnum<{
2055
+ invalid_type: "invalid_type";
2056
+ invalid_literal: "invalid_literal";
2057
+ custom: "custom";
2058
+ invalid_union: "invalid_union";
2059
+ invalid_union_discriminator: "invalid_union_discriminator";
2060
+ invalid_enum_value: "invalid_enum_value";
2061
+ unrecognized_keys: "unrecognized_keys";
2062
+ invalid_arguments: "invalid_arguments";
2063
+ invalid_return_type: "invalid_return_type";
2064
+ invalid_date: "invalid_date";
2065
+ invalid_string: "invalid_string";
2066
+ too_small: "too_small";
2067
+ too_big: "too_big";
2068
+ invalid_intersection_types: "invalid_intersection_types";
2069
+ not_multiple_of: "not_multiple_of";
2070
+ not_finite: "not_finite";
2071
+ }>;
2072
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
2073
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2074
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2075
+ code: import("zod").ZodNativeEnum<{
2076
+ invalid_type: "invalid_type";
2077
+ invalid_literal: "invalid_literal";
2078
+ custom: "custom";
2079
+ invalid_union: "invalid_union";
2080
+ invalid_union_discriminator: "invalid_union_discriminator";
2081
+ invalid_enum_value: "invalid_enum_value";
2082
+ unrecognized_keys: "unrecognized_keys";
2083
+ invalid_arguments: "invalid_arguments";
2084
+ invalid_return_type: "invalid_return_type";
2085
+ invalid_date: "invalid_date";
2086
+ invalid_string: "invalid_string";
2087
+ too_small: "too_small";
2088
+ too_big: "too_big";
2089
+ invalid_intersection_types: "invalid_intersection_types";
2090
+ not_multiple_of: "not_multiple_of";
2091
+ not_finite: "not_finite";
2092
+ }>;
2093
+ }, import("zod").ZodAny, "strip">>, "many">;
2094
+ }, "strip", import("zod").ZodTypeAny, {
2095
+ name: "ZodError";
2096
+ issues: import("zod").objectOutputType<{
2097
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2098
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2099
+ code: import("zod").ZodNativeEnum<{
2100
+ invalid_type: "invalid_type";
2101
+ invalid_literal: "invalid_literal";
2102
+ custom: "custom";
2103
+ invalid_union: "invalid_union";
2104
+ invalid_union_discriminator: "invalid_union_discriminator";
2105
+ invalid_enum_value: "invalid_enum_value";
2106
+ unrecognized_keys: "unrecognized_keys";
2107
+ invalid_arguments: "invalid_arguments";
2108
+ invalid_return_type: "invalid_return_type";
2109
+ invalid_date: "invalid_date";
2110
+ invalid_string: "invalid_string";
2111
+ too_small: "too_small";
2112
+ too_big: "too_big";
2113
+ invalid_intersection_types: "invalid_intersection_types";
2114
+ not_multiple_of: "not_multiple_of";
2115
+ not_finite: "not_finite";
2116
+ }>;
2117
+ }, import("zod").ZodAny, "strip">[];
2118
+ }, {
2119
+ name: "ZodError";
2120
+ issues: import("zod").objectInputType<{
2121
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2122
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2123
+ code: import("zod").ZodNativeEnum<{
2124
+ invalid_type: "invalid_type";
2125
+ invalid_literal: "invalid_literal";
2126
+ custom: "custom";
2127
+ invalid_union: "invalid_union";
2128
+ invalid_union_discriminator: "invalid_union_discriminator";
2129
+ invalid_enum_value: "invalid_enum_value";
2130
+ unrecognized_keys: "unrecognized_keys";
2131
+ invalid_arguments: "invalid_arguments";
2132
+ invalid_return_type: "invalid_return_type";
2133
+ invalid_date: "invalid_date";
2134
+ invalid_string: "invalid_string";
2135
+ too_small: "too_small";
2136
+ too_big: "too_big";
2137
+ invalid_intersection_types: "invalid_intersection_types";
2138
+ not_multiple_of: "not_multiple_of";
2139
+ not_finite: "not_finite";
2140
+ }>;
2141
+ }, import("zod").ZodAny, "strip">[];
2142
+ }>, import("zod").ZodObject<{
2143
+ code: import("zod").ZodType<"TOTP_NOT_SETUP", import("zod").ZodTypeDef, "TOTP_NOT_SETUP">;
2144
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2145
+ name: import("zod").ZodLiteral<"APIError">;
2146
+ }, "strip", import("zod").ZodTypeAny, {
2147
+ code: "TOTP_NOT_SETUP";
2148
+ name: "APIError";
2149
+ error: string;
2150
+ }, {
2151
+ code: "TOTP_NOT_SETUP";
2152
+ name: "APIError";
2153
+ error: string;
2154
+ }>, import("zod").ZodObject<{
2155
+ code: import("zod").ZodType<"TOTP_ALREADY_SETUP", import("zod").ZodTypeDef, "TOTP_ALREADY_SETUP">;
2156
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2157
+ name: import("zod").ZodLiteral<"APIError">;
2158
+ }, "strip", import("zod").ZodTypeAny, {
2159
+ code: "TOTP_ALREADY_SETUP";
2160
+ name: "APIError";
2161
+ error: string;
2162
+ }, {
2163
+ code: "TOTP_ALREADY_SETUP";
2164
+ name: "APIError";
2165
+ error: string;
2166
+ }>, import("zod").ZodObject<{
2167
+ code: import("zod").ZodType<"TOTP_INVALID", import("zod").ZodTypeDef, "TOTP_INVALID">;
2168
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2169
+ name: import("zod").ZodLiteral<"APIError">;
2170
+ }, "strip", import("zod").ZodTypeAny, {
2171
+ code: "TOTP_INVALID";
2172
+ name: "APIError";
2173
+ error: string;
2174
+ }, {
2175
+ code: "TOTP_INVALID";
2176
+ name: "APIError";
2177
+ error: string;
2178
+ }>]>;
2179
+ 401: import("zod").ZodObject<{
2180
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2181
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2182
+ name: import("zod").ZodLiteral<"APIError">;
2183
+ }, "strip", import("zod").ZodTypeAny, {
2184
+ code: "UNAUTHORIZED";
2185
+ name: "APIError";
2186
+ error: "Unauthorized";
2187
+ }, {
2188
+ code: "UNAUTHORIZED";
2189
+ name: "APIError";
2190
+ error: "Unauthorized";
2191
+ }>;
2192
+ 500: import("zod").ZodObject<{
2193
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2194
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2195
+ name: import("zod").ZodLiteral<"APIError">;
2196
+ }, "strip", import("zod").ZodTypeAny, {
2197
+ code: "INTERNAL_SERVER_ERROR";
2198
+ name: "APIError";
2199
+ error: string;
2200
+ }, {
2201
+ code: "INTERNAL_SERVER_ERROR";
2202
+ name: "APIError";
2203
+ error: string;
2204
+ }>;
2205
+ };
2206
+ };
2207
+ verify: {
2208
+ body: import("zod").ZodObject<{
2209
+ totpCode: import("zod").ZodString;
2441
2210
  }, "strip", import("zod").ZodTypeAny, {
2442
- code: "UNAUTHORIZED";
2443
- name: "APIError";
2444
- error: "Unauthorized";
2211
+ totpCode: string;
2445
2212
  }, {
2446
- code: "UNAUTHORIZED";
2447
- name: "APIError";
2448
- error: "Unauthorized";
2213
+ totpCode: string;
2449
2214
  }>;
2450
- 500: import("zod").ZodObject<{
2451
- code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2452
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2453
- name: import("zod").ZodLiteral<"APIError">;
2215
+ method: "POST";
2216
+ path: "/api/v2/totp/verify";
2217
+ headers: import("zod").ZodObject<{
2218
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
2454
2219
  }, "strip", import("zod").ZodTypeAny, {
2455
- code: "INTERNAL_SERVER_ERROR";
2456
- name: "APIError";
2457
- error: string;
2220
+ authorization?: string | undefined;
2458
2221
  }, {
2459
- code: "INTERNAL_SERVER_ERROR";
2460
- name: "APIError";
2461
- error: string;
2222
+ authorization?: string | undefined;
2462
2223
  }>;
2463
- };
2464
- };
2465
- totpSetupConfirm: {
2466
- body: import("zod").ZodObject<{
2467
- totpCode: import("zod").ZodString;
2468
- }, "strip", import("zod").ZodTypeAny, {
2469
- totpCode: string;
2470
- }, {
2471
- totpCode: string;
2472
- }>;
2473
- method: "POST";
2474
- path: "/api/v2/totp/setup/confirm";
2475
- headers: import("zod").ZodObject<{
2476
- authorization: import("zod").ZodOptional<import("zod").ZodString>;
2477
- }, "strip", import("zod").ZodTypeAny, {
2478
- authorization?: string | undefined;
2479
- }, {
2480
- authorization?: string | undefined;
2481
- }>;
2482
- responses: {
2483
- 200: typeof import("@ts-rest/core").ContractNoBody;
2484
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
2485
- name: import("zod").ZodLiteral<"ZodError">;
2486
- issues: import("zod").ZodArray<import("zod").ZodObject<{
2487
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2488
- message: import("zod").ZodOptional<import("zod").ZodString>;
2489
- code: import("zod").ZodNativeEnum<{
2490
- invalid_type: "invalid_type";
2491
- invalid_literal: "invalid_literal";
2492
- custom: "custom";
2493
- invalid_union: "invalid_union";
2494
- invalid_union_discriminator: "invalid_union_discriminator";
2495
- invalid_enum_value: "invalid_enum_value";
2496
- unrecognized_keys: "unrecognized_keys";
2497
- invalid_arguments: "invalid_arguments";
2498
- invalid_return_type: "invalid_return_type";
2499
- invalid_date: "invalid_date";
2500
- invalid_string: "invalid_string";
2501
- too_small: "too_small";
2502
- too_big: "too_big";
2503
- invalid_intersection_types: "invalid_intersection_types";
2504
- not_multiple_of: "not_multiple_of";
2505
- not_finite: "not_finite";
2506
- }>;
2507
- }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
2508
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2509
- message: import("zod").ZodOptional<import("zod").ZodString>;
2510
- code: import("zod").ZodNativeEnum<{
2511
- invalid_type: "invalid_type";
2512
- invalid_literal: "invalid_literal";
2513
- custom: "custom";
2514
- invalid_union: "invalid_union";
2515
- invalid_union_discriminator: "invalid_union_discriminator";
2516
- invalid_enum_value: "invalid_enum_value";
2517
- unrecognized_keys: "unrecognized_keys";
2518
- invalid_arguments: "invalid_arguments";
2519
- invalid_return_type: "invalid_return_type";
2520
- invalid_date: "invalid_date";
2521
- invalid_string: "invalid_string";
2522
- too_small: "too_small";
2523
- too_big: "too_big";
2524
- invalid_intersection_types: "invalid_intersection_types";
2525
- not_multiple_of: "not_multiple_of";
2526
- not_finite: "not_finite";
2527
- }>;
2528
- }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
2529
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2530
- message: import("zod").ZodOptional<import("zod").ZodString>;
2531
- code: import("zod").ZodNativeEnum<{
2532
- invalid_type: "invalid_type";
2533
- invalid_literal: "invalid_literal";
2534
- custom: "custom";
2535
- invalid_union: "invalid_union";
2536
- invalid_union_discriminator: "invalid_union_discriminator";
2537
- invalid_enum_value: "invalid_enum_value";
2538
- unrecognized_keys: "unrecognized_keys";
2539
- invalid_arguments: "invalid_arguments";
2540
- invalid_return_type: "invalid_return_type";
2541
- invalid_date: "invalid_date";
2542
- invalid_string: "invalid_string";
2543
- too_small: "too_small";
2544
- too_big: "too_big";
2545
- invalid_intersection_types: "invalid_intersection_types";
2546
- not_multiple_of: "not_multiple_of";
2547
- not_finite: "not_finite";
2548
- }>;
2549
- }, import("zod").ZodAny, "strip">>, "many">;
2550
- }, "strip", import("zod").ZodTypeAny, {
2551
- name: "ZodError";
2552
- issues: import("zod").objectOutputType<{
2553
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2554
- message: import("zod").ZodOptional<import("zod").ZodString>;
2555
- code: import("zod").ZodNativeEnum<{
2556
- invalid_type: "invalid_type";
2557
- invalid_literal: "invalid_literal";
2558
- custom: "custom";
2559
- invalid_union: "invalid_union";
2560
- invalid_union_discriminator: "invalid_union_discriminator";
2561
- invalid_enum_value: "invalid_enum_value";
2562
- unrecognized_keys: "unrecognized_keys";
2563
- invalid_arguments: "invalid_arguments";
2564
- invalid_return_type: "invalid_return_type";
2565
- invalid_date: "invalid_date";
2566
- invalid_string: "invalid_string";
2567
- too_small: "too_small";
2568
- too_big: "too_big";
2569
- invalid_intersection_types: "invalid_intersection_types";
2570
- not_multiple_of: "not_multiple_of";
2571
- not_finite: "not_finite";
2572
- }>;
2573
- }, import("zod").ZodAny, "strip">[];
2574
- }, {
2575
- name: "ZodError";
2576
- issues: import("zod").objectInputType<{
2577
- path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2578
- message: import("zod").ZodOptional<import("zod").ZodString>;
2579
- code: import("zod").ZodNativeEnum<{
2580
- invalid_type: "invalid_type";
2581
- invalid_literal: "invalid_literal";
2582
- custom: "custom";
2583
- invalid_union: "invalid_union";
2584
- invalid_union_discriminator: "invalid_union_discriminator";
2585
- invalid_enum_value: "invalid_enum_value";
2586
- unrecognized_keys: "unrecognized_keys";
2587
- invalid_arguments: "invalid_arguments";
2588
- invalid_return_type: "invalid_return_type";
2589
- invalid_date: "invalid_date";
2590
- invalid_string: "invalid_string";
2591
- too_small: "too_small";
2592
- too_big: "too_big";
2593
- invalid_intersection_types: "invalid_intersection_types";
2594
- not_multiple_of: "not_multiple_of";
2595
- not_finite: "not_finite";
2596
- }>;
2597
- }, import("zod").ZodAny, "strip">[];
2598
- }>, import("zod").ZodObject<{
2599
- code: import("zod").ZodType<"TOTP_NOT_SETUP", import("zod").ZodTypeDef, "TOTP_NOT_SETUP">;
2600
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2601
- name: import("zod").ZodLiteral<"APIError">;
2602
- }, "strip", import("zod").ZodTypeAny, {
2603
- code: "TOTP_NOT_SETUP";
2604
- name: "APIError";
2605
- error: string;
2606
- }, {
2607
- code: "TOTP_NOT_SETUP";
2608
- name: "APIError";
2609
- error: string;
2610
- }>, import("zod").ZodObject<{
2611
- code: import("zod").ZodType<"TOTP_INVALID", import("zod").ZodTypeDef, "TOTP_INVALID">;
2612
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2613
- name: import("zod").ZodLiteral<"APIError">;
2224
+ responses: {
2225
+ 204: typeof import("@ts-rest/core").ContractNoBody;
2226
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
2227
+ name: import("zod").ZodLiteral<"ZodError">;
2228
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
2229
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2230
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2231
+ code: import("zod").ZodNativeEnum<{
2232
+ invalid_type: "invalid_type";
2233
+ invalid_literal: "invalid_literal";
2234
+ custom: "custom";
2235
+ invalid_union: "invalid_union";
2236
+ invalid_union_discriminator: "invalid_union_discriminator";
2237
+ invalid_enum_value: "invalid_enum_value";
2238
+ unrecognized_keys: "unrecognized_keys";
2239
+ invalid_arguments: "invalid_arguments";
2240
+ invalid_return_type: "invalid_return_type";
2241
+ invalid_date: "invalid_date";
2242
+ invalid_string: "invalid_string";
2243
+ too_small: "too_small";
2244
+ too_big: "too_big";
2245
+ invalid_intersection_types: "invalid_intersection_types";
2246
+ not_multiple_of: "not_multiple_of";
2247
+ not_finite: "not_finite";
2248
+ }>;
2249
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
2250
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2251
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2252
+ code: import("zod").ZodNativeEnum<{
2253
+ invalid_type: "invalid_type";
2254
+ invalid_literal: "invalid_literal";
2255
+ custom: "custom";
2256
+ invalid_union: "invalid_union";
2257
+ invalid_union_discriminator: "invalid_union_discriminator";
2258
+ invalid_enum_value: "invalid_enum_value";
2259
+ unrecognized_keys: "unrecognized_keys";
2260
+ invalid_arguments: "invalid_arguments";
2261
+ invalid_return_type: "invalid_return_type";
2262
+ invalid_date: "invalid_date";
2263
+ invalid_string: "invalid_string";
2264
+ too_small: "too_small";
2265
+ too_big: "too_big";
2266
+ invalid_intersection_types: "invalid_intersection_types";
2267
+ not_multiple_of: "not_multiple_of";
2268
+ not_finite: "not_finite";
2269
+ }>;
2270
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
2271
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2272
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2273
+ code: import("zod").ZodNativeEnum<{
2274
+ invalid_type: "invalid_type";
2275
+ invalid_literal: "invalid_literal";
2276
+ custom: "custom";
2277
+ invalid_union: "invalid_union";
2278
+ invalid_union_discriminator: "invalid_union_discriminator";
2279
+ invalid_enum_value: "invalid_enum_value";
2280
+ unrecognized_keys: "unrecognized_keys";
2281
+ invalid_arguments: "invalid_arguments";
2282
+ invalid_return_type: "invalid_return_type";
2283
+ invalid_date: "invalid_date";
2284
+ invalid_string: "invalid_string";
2285
+ too_small: "too_small";
2286
+ too_big: "too_big";
2287
+ invalid_intersection_types: "invalid_intersection_types";
2288
+ not_multiple_of: "not_multiple_of";
2289
+ not_finite: "not_finite";
2290
+ }>;
2291
+ }, import("zod").ZodAny, "strip">>, "many">;
2292
+ }, "strip", import("zod").ZodTypeAny, {
2293
+ name: "ZodError";
2294
+ issues: import("zod").objectOutputType<{
2295
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2296
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2297
+ code: import("zod").ZodNativeEnum<{
2298
+ invalid_type: "invalid_type";
2299
+ invalid_literal: "invalid_literal";
2300
+ custom: "custom";
2301
+ invalid_union: "invalid_union";
2302
+ invalid_union_discriminator: "invalid_union_discriminator";
2303
+ invalid_enum_value: "invalid_enum_value";
2304
+ unrecognized_keys: "unrecognized_keys";
2305
+ invalid_arguments: "invalid_arguments";
2306
+ invalid_return_type: "invalid_return_type";
2307
+ invalid_date: "invalid_date";
2308
+ invalid_string: "invalid_string";
2309
+ too_small: "too_small";
2310
+ too_big: "too_big";
2311
+ invalid_intersection_types: "invalid_intersection_types";
2312
+ not_multiple_of: "not_multiple_of";
2313
+ not_finite: "not_finite";
2314
+ }>;
2315
+ }, import("zod").ZodAny, "strip">[];
2316
+ }, {
2317
+ name: "ZodError";
2318
+ issues: import("zod").objectInputType<{
2319
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2320
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2321
+ code: import("zod").ZodNativeEnum<{
2322
+ invalid_type: "invalid_type";
2323
+ invalid_literal: "invalid_literal";
2324
+ custom: "custom";
2325
+ invalid_union: "invalid_union";
2326
+ invalid_union_discriminator: "invalid_union_discriminator";
2327
+ invalid_enum_value: "invalid_enum_value";
2328
+ unrecognized_keys: "unrecognized_keys";
2329
+ invalid_arguments: "invalid_arguments";
2330
+ invalid_return_type: "invalid_return_type";
2331
+ invalid_date: "invalid_date";
2332
+ invalid_string: "invalid_string";
2333
+ too_small: "too_small";
2334
+ too_big: "too_big";
2335
+ invalid_intersection_types: "invalid_intersection_types";
2336
+ not_multiple_of: "not_multiple_of";
2337
+ not_finite: "not_finite";
2338
+ }>;
2339
+ }, import("zod").ZodAny, "strip">[];
2340
+ }>, import("zod").ZodObject<{
2341
+ code: import("zod").ZodType<"TOTP_NOT_SETUP", import("zod").ZodTypeDef, "TOTP_NOT_SETUP">;
2342
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2343
+ name: import("zod").ZodLiteral<"APIError">;
2344
+ }, "strip", import("zod").ZodTypeAny, {
2345
+ code: "TOTP_NOT_SETUP";
2346
+ name: "APIError";
2347
+ error: string;
2348
+ }, {
2349
+ code: "TOTP_NOT_SETUP";
2350
+ name: "APIError";
2351
+ error: string;
2352
+ }>, import("zod").ZodObject<{
2353
+ code: import("zod").ZodType<"TOTP_NOT_REQUIRED", import("zod").ZodTypeDef, "TOTP_NOT_REQUIRED">;
2354
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2355
+ name: import("zod").ZodLiteral<"APIError">;
2356
+ }, "strip", import("zod").ZodTypeAny, {
2357
+ code: "TOTP_NOT_REQUIRED";
2358
+ name: "APIError";
2359
+ error: string;
2360
+ }, {
2361
+ code: "TOTP_NOT_REQUIRED";
2362
+ name: "APIError";
2363
+ error: string;
2364
+ }>, import("zod").ZodObject<{
2365
+ code: import("zod").ZodType<"TOTP_INVALID", import("zod").ZodTypeDef, "TOTP_INVALID">;
2366
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2367
+ name: import("zod").ZodLiteral<"APIError">;
2368
+ }, "strip", import("zod").ZodTypeAny, {
2369
+ code: "TOTP_INVALID";
2370
+ name: "APIError";
2371
+ error: string;
2372
+ }, {
2373
+ code: "TOTP_INVALID";
2374
+ name: "APIError";
2375
+ error: string;
2376
+ }>]>;
2377
+ 401: import("zod").ZodObject<{
2378
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2379
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2380
+ name: import("zod").ZodLiteral<"APIError">;
2381
+ }, "strip", import("zod").ZodTypeAny, {
2382
+ code: "UNAUTHORIZED";
2383
+ name: "APIError";
2384
+ error: "Unauthorized";
2385
+ }, {
2386
+ code: "UNAUTHORIZED";
2387
+ name: "APIError";
2388
+ error: "Unauthorized";
2389
+ }>;
2390
+ 500: import("zod").ZodObject<{
2391
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2392
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2393
+ name: import("zod").ZodLiteral<"APIError">;
2394
+ }, "strip", import("zod").ZodTypeAny, {
2395
+ code: "INTERNAL_SERVER_ERROR";
2396
+ name: "APIError";
2397
+ error: string;
2398
+ }, {
2399
+ code: "INTERNAL_SERVER_ERROR";
2400
+ name: "APIError";
2401
+ error: string;
2402
+ }>;
2403
+ };
2404
+ };
2405
+ disable: {
2406
+ body: import("zod").ZodObject<{
2407
+ totpCode: import("zod").ZodString;
2614
2408
  }, "strip", import("zod").ZodTypeAny, {
2615
- code: "TOTP_INVALID";
2616
- name: "APIError";
2617
- error: string;
2409
+ totpCode: string;
2618
2410
  }, {
2619
- code: "TOTP_INVALID";
2620
- name: "APIError";
2621
- error: string;
2622
- }>]>;
2623
- 401: import("zod").ZodObject<{
2624
- code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2625
- error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2626
- name: import("zod").ZodLiteral<"APIError">;
2411
+ totpCode: string;
2412
+ }>;
2413
+ method: "POST";
2414
+ path: "/api/v2/totp/disable";
2415
+ headers: import("zod").ZodObject<{
2416
+ authorization: import("zod").ZodOptional<import("zod").ZodString>;
2627
2417
  }, "strip", import("zod").ZodTypeAny, {
2628
- code: "UNAUTHORIZED";
2629
- name: "APIError";
2630
- error: "Unauthorized";
2418
+ authorization?: string | undefined;
2631
2419
  }, {
2632
- code: "UNAUTHORIZED";
2633
- name: "APIError";
2634
- error: "Unauthorized";
2420
+ authorization?: string | undefined;
2635
2421
  }>;
2636
- 500: import("zod").ZodObject<{
2637
- code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2638
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2639
- name: import("zod").ZodLiteral<"APIError">;
2422
+ responses: {
2423
+ 204: typeof import("@ts-rest/core").ContractNoBody;
2424
+ 400: import("zod").ZodUnion<[import("zod").ZodObject<{
2425
+ name: import("zod").ZodLiteral<"ZodError">;
2426
+ issues: import("zod").ZodArray<import("zod").ZodObject<{
2427
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2428
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2429
+ code: import("zod").ZodNativeEnum<{
2430
+ invalid_type: "invalid_type";
2431
+ invalid_literal: "invalid_literal";
2432
+ custom: "custom";
2433
+ invalid_union: "invalid_union";
2434
+ invalid_union_discriminator: "invalid_union_discriminator";
2435
+ invalid_enum_value: "invalid_enum_value";
2436
+ unrecognized_keys: "unrecognized_keys";
2437
+ invalid_arguments: "invalid_arguments";
2438
+ invalid_return_type: "invalid_return_type";
2439
+ invalid_date: "invalid_date";
2440
+ invalid_string: "invalid_string";
2441
+ too_small: "too_small";
2442
+ too_big: "too_big";
2443
+ invalid_intersection_types: "invalid_intersection_types";
2444
+ not_multiple_of: "not_multiple_of";
2445
+ not_finite: "not_finite";
2446
+ }>;
2447
+ }, "strip", import("zod").ZodAny, import("zod").objectOutputType<{
2448
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2449
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2450
+ code: import("zod").ZodNativeEnum<{
2451
+ invalid_type: "invalid_type";
2452
+ invalid_literal: "invalid_literal";
2453
+ custom: "custom";
2454
+ invalid_union: "invalid_union";
2455
+ invalid_union_discriminator: "invalid_union_discriminator";
2456
+ invalid_enum_value: "invalid_enum_value";
2457
+ unrecognized_keys: "unrecognized_keys";
2458
+ invalid_arguments: "invalid_arguments";
2459
+ invalid_return_type: "invalid_return_type";
2460
+ invalid_date: "invalid_date";
2461
+ invalid_string: "invalid_string";
2462
+ too_small: "too_small";
2463
+ too_big: "too_big";
2464
+ invalid_intersection_types: "invalid_intersection_types";
2465
+ not_multiple_of: "not_multiple_of";
2466
+ not_finite: "not_finite";
2467
+ }>;
2468
+ }, import("zod").ZodAny, "strip">, import("zod").objectInputType<{
2469
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2470
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2471
+ code: import("zod").ZodNativeEnum<{
2472
+ invalid_type: "invalid_type";
2473
+ invalid_literal: "invalid_literal";
2474
+ custom: "custom";
2475
+ invalid_union: "invalid_union";
2476
+ invalid_union_discriminator: "invalid_union_discriminator";
2477
+ invalid_enum_value: "invalid_enum_value";
2478
+ unrecognized_keys: "unrecognized_keys";
2479
+ invalid_arguments: "invalid_arguments";
2480
+ invalid_return_type: "invalid_return_type";
2481
+ invalid_date: "invalid_date";
2482
+ invalid_string: "invalid_string";
2483
+ too_small: "too_small";
2484
+ too_big: "too_big";
2485
+ invalid_intersection_types: "invalid_intersection_types";
2486
+ not_multiple_of: "not_multiple_of";
2487
+ not_finite: "not_finite";
2488
+ }>;
2489
+ }, import("zod").ZodAny, "strip">>, "many">;
2490
+ }, "strip", import("zod").ZodTypeAny, {
2491
+ name: "ZodError";
2492
+ issues: import("zod").objectOutputType<{
2493
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2494
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2495
+ code: import("zod").ZodNativeEnum<{
2496
+ invalid_type: "invalid_type";
2497
+ invalid_literal: "invalid_literal";
2498
+ custom: "custom";
2499
+ invalid_union: "invalid_union";
2500
+ invalid_union_discriminator: "invalid_union_discriminator";
2501
+ invalid_enum_value: "invalid_enum_value";
2502
+ unrecognized_keys: "unrecognized_keys";
2503
+ invalid_arguments: "invalid_arguments";
2504
+ invalid_return_type: "invalid_return_type";
2505
+ invalid_date: "invalid_date";
2506
+ invalid_string: "invalid_string";
2507
+ too_small: "too_small";
2508
+ too_big: "too_big";
2509
+ invalid_intersection_types: "invalid_intersection_types";
2510
+ not_multiple_of: "not_multiple_of";
2511
+ not_finite: "not_finite";
2512
+ }>;
2513
+ }, import("zod").ZodAny, "strip">[];
2514
+ }, {
2515
+ name: "ZodError";
2516
+ issues: import("zod").objectInputType<{
2517
+ path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
2518
+ message: import("zod").ZodOptional<import("zod").ZodString>;
2519
+ code: import("zod").ZodNativeEnum<{
2520
+ invalid_type: "invalid_type";
2521
+ invalid_literal: "invalid_literal";
2522
+ custom: "custom";
2523
+ invalid_union: "invalid_union";
2524
+ invalid_union_discriminator: "invalid_union_discriminator";
2525
+ invalid_enum_value: "invalid_enum_value";
2526
+ unrecognized_keys: "unrecognized_keys";
2527
+ invalid_arguments: "invalid_arguments";
2528
+ invalid_return_type: "invalid_return_type";
2529
+ invalid_date: "invalid_date";
2530
+ invalid_string: "invalid_string";
2531
+ too_small: "too_small";
2532
+ too_big: "too_big";
2533
+ invalid_intersection_types: "invalid_intersection_types";
2534
+ not_multiple_of: "not_multiple_of";
2535
+ not_finite: "not_finite";
2536
+ }>;
2537
+ }, import("zod").ZodAny, "strip">[];
2538
+ }>, import("zod").ZodObject<{
2539
+ code: import("zod").ZodType<"TOTP_NOT_SETUP", import("zod").ZodTypeDef, "TOTP_NOT_SETUP">;
2540
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2541
+ name: import("zod").ZodLiteral<"APIError">;
2542
+ }, "strip", import("zod").ZodTypeAny, {
2543
+ code: "TOTP_NOT_SETUP";
2544
+ name: "APIError";
2545
+ error: string;
2546
+ }, {
2547
+ code: "TOTP_NOT_SETUP";
2548
+ name: "APIError";
2549
+ error: string;
2550
+ }>, import("zod").ZodObject<{
2551
+ code: import("zod").ZodType<"TOTP_INVALID", import("zod").ZodTypeDef, "TOTP_INVALID">;
2552
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2553
+ name: import("zod").ZodLiteral<"APIError">;
2554
+ }, "strip", import("zod").ZodTypeAny, {
2555
+ code: "TOTP_INVALID";
2556
+ name: "APIError";
2557
+ error: string;
2558
+ }, {
2559
+ code: "TOTP_INVALID";
2560
+ name: "APIError";
2561
+ error: string;
2562
+ }>]>;
2563
+ 401: import("zod").ZodObject<{
2564
+ code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2565
+ error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2566
+ name: import("zod").ZodLiteral<"APIError">;
2567
+ }, "strip", import("zod").ZodTypeAny, {
2568
+ code: "UNAUTHORIZED";
2569
+ name: "APIError";
2570
+ error: "Unauthorized";
2571
+ }, {
2572
+ code: "UNAUTHORIZED";
2573
+ name: "APIError";
2574
+ error: "Unauthorized";
2575
+ }>;
2576
+ 500: import("zod").ZodObject<{
2577
+ code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2578
+ error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2579
+ name: import("zod").ZodLiteral<"APIError">;
2580
+ }, "strip", import("zod").ZodTypeAny, {
2581
+ code: "INTERNAL_SERVER_ERROR";
2582
+ name: "APIError";
2583
+ error: string;
2584
+ }, {
2585
+ code: "INTERNAL_SERVER_ERROR";
2586
+ name: "APIError";
2587
+ error: string;
2588
+ }>;
2589
+ };
2590
+ };
2591
+ };
2592
+ publicKey: {
2593
+ method: "GET";
2594
+ path: "/api/v2/public-key";
2595
+ responses: {
2596
+ 200: import("zod").ZodObject<{
2597
+ publicKey: import("zod").ZodString;
2640
2598
  }, "strip", import("zod").ZodTypeAny, {
2641
- code: "INTERNAL_SERVER_ERROR";
2642
- name: "APIError";
2643
- error: string;
2599
+ publicKey: string;
2644
2600
  }, {
2645
- code: "INTERNAL_SERVER_ERROR";
2646
- name: "APIError";
2647
- error: string;
2601
+ publicKey: string;
2648
2602
  }>;
2649
2603
  };
2650
2604
  };
2651
- totpVerify: {
2652
- body: import("zod").ZodObject<{
2653
- totpCode: import("zod").ZodString;
2654
- }, "strip", import("zod").ZodTypeAny, {
2655
- totpCode: string;
2656
- }, {
2657
- totpCode: string;
2658
- }>;
2605
+ auth: {
2606
+ body: typeof import("@ts-rest/core").ContractNoBody;
2659
2607
  method: "POST";
2660
- path: "/api/v2/totp/verify";
2608
+ path: "/api/v2/auth/check";
2661
2609
  headers: import("zod").ZodObject<{
2662
2610
  authorization: import("zod").ZodOptional<import("zod").ZodString>;
2663
2611
  }, "strip", import("zod").ZodTypeAny, {
@@ -2666,8 +2614,107 @@ declare const _default: {
2666
2614
  authorization?: string | undefined;
2667
2615
  }>;
2668
2616
  responses: {
2669
- 200: typeof import("@ts-rest/core").ContractNoBody;
2670
- 400: import("zod").ZodUnion<[import("zod").ZodObject<{
2617
+ 200: import("zod").ZodUnion<[import("zod").ZodObject<{
2618
+ result: import("zod").ZodLiteral<true>;
2619
+ data: import("zod").ZodIntersection<import("zod").ZodObject<{
2620
+ iat: import("zod").ZodNumber;
2621
+ exp: import("zod").ZodNumber;
2622
+ }, "strip", import("zod").ZodTypeAny, {
2623
+ iat: number;
2624
+ exp: number;
2625
+ }, {
2626
+ iat: number;
2627
+ exp: number;
2628
+ }>, import("zod").ZodObject<{
2629
+ public_id: import("zod").ZodString;
2630
+ role: import("zod").ZodNumber;
2631
+ password_reset: import("zod").ZodOptional<import("zod").ZodString>;
2632
+ totp_required: import("zod").ZodBoolean;
2633
+ totp_verified: import("zod").ZodBoolean;
2634
+ }, "strip", import("zod").ZodTypeAny, {
2635
+ role: number;
2636
+ public_id: string;
2637
+ totp_required: boolean;
2638
+ totp_verified: boolean;
2639
+ password_reset?: string | undefined;
2640
+ }, {
2641
+ role: number;
2642
+ public_id: string;
2643
+ totp_required: boolean;
2644
+ totp_verified: boolean;
2645
+ password_reset?: string | undefined;
2646
+ }>>;
2647
+ }, "strip", import("zod").ZodTypeAny, {
2648
+ data: {
2649
+ iat: number;
2650
+ exp: number;
2651
+ } & {
2652
+ role: number;
2653
+ public_id: string;
2654
+ totp_required: boolean;
2655
+ totp_verified: boolean;
2656
+ password_reset?: string | undefined;
2657
+ };
2658
+ result: true;
2659
+ }, {
2660
+ data: {
2661
+ iat: number;
2662
+ exp: number;
2663
+ } & {
2664
+ role: number;
2665
+ public_id: string;
2666
+ totp_required: boolean;
2667
+ totp_verified: boolean;
2668
+ password_reset?: string | undefined;
2669
+ };
2670
+ result: true;
2671
+ }>, import("zod").ZodObject<{
2672
+ result: import("zod").ZodLiteral<false>;
2673
+ data: import("zod").ZodUndefined;
2674
+ }, "strip", import("zod").ZodTypeAny, {
2675
+ result: false;
2676
+ data?: undefined;
2677
+ }, {
2678
+ result: false;
2679
+ data?: undefined;
2680
+ }>]>;
2681
+ };
2682
+ };
2683
+ login: {
2684
+ body: import("zod").ZodObject<{
2685
+ email: import("zod").ZodString;
2686
+ password: import("zod").ZodEffects<import("zod").ZodString, string, string>;
2687
+ turnstile: import("zod").ZodString;
2688
+ }, "strip", import("zod").ZodTypeAny, {
2689
+ email: string;
2690
+ password: string;
2691
+ turnstile: string;
2692
+ }, {
2693
+ email: string;
2694
+ password: string;
2695
+ turnstile: string;
2696
+ }>;
2697
+ method: "POST";
2698
+ path: "/api/v2/login";
2699
+ responses: {
2700
+ 200: import("zod").ZodObject<{
2701
+ accessToken: import("zod").ZodString;
2702
+ expiresIn: import("zod").ZodNumber;
2703
+ } & {
2704
+ refreshToken: import("zod").ZodNullable<import("zod").ZodString>;
2705
+ needTotp: import("zod").ZodBoolean;
2706
+ }, "strip", import("zod").ZodTypeAny, {
2707
+ accessToken: string;
2708
+ expiresIn: number;
2709
+ refreshToken: string | null;
2710
+ needTotp: boolean;
2711
+ }, {
2712
+ accessToken: string;
2713
+ expiresIn: number;
2714
+ refreshToken: string | null;
2715
+ needTotp: boolean;
2716
+ }>;
2717
+ 400: import("zod").ZodObject<{
2671
2718
  name: import("zod").ZodLiteral<"ZodError">;
2672
2719
  issues: import("zod").ZodArray<import("zod").ZodObject<{
2673
2720
  path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
@@ -2781,56 +2828,32 @@ declare const _default: {
2781
2828
  not_finite: "not_finite";
2782
2829
  }>;
2783
2830
  }, import("zod").ZodAny, "strip">[];
2784
- }>, import("zod").ZodObject<{
2785
- code: import("zod").ZodType<"TOTP_NOT_SETUP", import("zod").ZodTypeDef, "TOTP_NOT_SETUP">;
2786
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2787
- name: import("zod").ZodLiteral<"APIError">;
2788
- }, "strip", import("zod").ZodTypeAny, {
2789
- code: "TOTP_NOT_SETUP";
2790
- name: "APIError";
2791
- error: string;
2792
- }, {
2793
- code: "TOTP_NOT_SETUP";
2794
- name: "APIError";
2795
- error: string;
2796
- }>, import("zod").ZodObject<{
2797
- code: import("zod").ZodType<"TOTP_NOT_REQUIRED", import("zod").ZodTypeDef, "TOTP_NOT_REQUIRED">;
2798
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2831
+ }>;
2832
+ 401: import("zod").ZodUnion<[import("zod").ZodObject<{
2833
+ code: import("zod").ZodType<"CREDENTIALS_INVALID", import("zod").ZodTypeDef, "CREDENTIALS_INVALID">;
2834
+ error: import("zod").ZodType<"Invalid Credentials", import("zod").ZodTypeDef, "Invalid Credentials">;
2799
2835
  name: import("zod").ZodLiteral<"APIError">;
2800
2836
  }, "strip", import("zod").ZodTypeAny, {
2801
- code: "TOTP_NOT_REQUIRED";
2837
+ code: "CREDENTIALS_INVALID";
2802
2838
  name: "APIError";
2803
- error: string;
2839
+ error: "Invalid Credentials";
2804
2840
  }, {
2805
- code: "TOTP_NOT_REQUIRED";
2841
+ code: "CREDENTIALS_INVALID";
2806
2842
  name: "APIError";
2807
- error: string;
2843
+ error: "Invalid Credentials";
2808
2844
  }>, import("zod").ZodObject<{
2809
- code: import("zod").ZodType<"TOTP_INVALID", import("zod").ZodTypeDef, "TOTP_INVALID">;
2810
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2845
+ code: import("zod").ZodType<"INVALID_TURNSTILE", import("zod").ZodTypeDef, "INVALID_TURNSTILE">;
2846
+ error: import("zod").ZodType<"Invalid Turnstile", import("zod").ZodTypeDef, "Invalid Turnstile">;
2811
2847
  name: import("zod").ZodLiteral<"APIError">;
2812
2848
  }, "strip", import("zod").ZodTypeAny, {
2813
- code: "TOTP_INVALID";
2849
+ code: "INVALID_TURNSTILE";
2814
2850
  name: "APIError";
2815
- error: string;
2851
+ error: "Invalid Turnstile";
2816
2852
  }, {
2817
- code: "TOTP_INVALID";
2853
+ code: "INVALID_TURNSTILE";
2818
2854
  name: "APIError";
2819
- error: string;
2855
+ error: "Invalid Turnstile";
2820
2856
  }>]>;
2821
- 401: import("zod").ZodObject<{
2822
- code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
2823
- error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;
2824
- name: import("zod").ZodLiteral<"APIError">;
2825
- }, "strip", import("zod").ZodTypeAny, {
2826
- code: "UNAUTHORIZED";
2827
- name: "APIError";
2828
- error: "Unauthorized";
2829
- }, {
2830
- code: "UNAUTHORIZED";
2831
- name: "APIError";
2832
- error: "Unauthorized";
2833
- }>;
2834
2857
  500: import("zod").ZodObject<{
2835
2858
  code: import("zod").ZodType<"INTERNAL_SERVER_ERROR", import("zod").ZodTypeDef, "INTERNAL_SERVER_ERROR">;
2836
2859
  error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
@@ -2846,26 +2869,44 @@ declare const _default: {
2846
2869
  }>;
2847
2870
  };
2848
2871
  };
2849
- totpDisable: {
2850
- body: import("zod").ZodObject<{
2851
- totpCode: import("zod").ZodString;
2872
+ refresh: {
2873
+ body: import("zod").ZodOptional<import("zod").ZodObject<{
2874
+ refreshToken: import("zod").ZodString;
2852
2875
  }, "strip", import("zod").ZodTypeAny, {
2853
- totpCode: string;
2876
+ refreshToken: string;
2854
2877
  }, {
2855
- totpCode: string;
2856
- }>;
2878
+ refreshToken: string;
2879
+ }>>;
2857
2880
  method: "POST";
2858
- path: "/api/v2/totp/disable";
2859
- headers: import("zod").ZodObject<{
2860
- authorization: import("zod").ZodOptional<import("zod").ZodString>;
2861
- }, "strip", import("zod").ZodTypeAny, {
2862
- authorization?: string | undefined;
2863
- }, {
2864
- authorization?: string | undefined;
2865
- }>;
2881
+ path: "/api/v2/refresh";
2866
2882
  responses: {
2867
- 200: typeof import("@ts-rest/core").ContractNoBody;
2883
+ 200: import("zod").ZodObject<{
2884
+ accessToken: import("zod").ZodString;
2885
+ expiresIn: import("zod").ZodNumber;
2886
+ } & {
2887
+ refreshToken: import("zod").ZodString;
2888
+ }, "strip", import("zod").ZodTypeAny, {
2889
+ accessToken: string;
2890
+ expiresIn: number;
2891
+ refreshToken: string;
2892
+ }, {
2893
+ accessToken: string;
2894
+ expiresIn: number;
2895
+ refreshToken: string;
2896
+ }>;
2868
2897
  400: import("zod").ZodUnion<[import("zod").ZodObject<{
2898
+ code: import("zod").ZodType<"INVALID_REQUEST", import("zod").ZodTypeDef, "INVALID_REQUEST">;
2899
+ error: import("zod").ZodType<"Missing refresh token", import("zod").ZodTypeDef, "Missing refresh token">;
2900
+ name: import("zod").ZodLiteral<"APIError">;
2901
+ }, "strip", import("zod").ZodTypeAny, {
2902
+ code: "INVALID_REQUEST";
2903
+ name: "APIError";
2904
+ error: "Missing refresh token";
2905
+ }, {
2906
+ code: "INVALID_REQUEST";
2907
+ name: "APIError";
2908
+ error: "Missing refresh token";
2909
+ }>, import("zod").ZodObject<{
2869
2910
  name: import("zod").ZodLiteral<"ZodError">;
2870
2911
  issues: import("zod").ZodArray<import("zod").ZodObject<{
2871
2912
  path: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, "many">;
@@ -2979,30 +3020,6 @@ declare const _default: {
2979
3020
  not_finite: "not_finite";
2980
3021
  }>;
2981
3022
  }, import("zod").ZodAny, "strip">[];
2982
- }>, import("zod").ZodObject<{
2983
- code: import("zod").ZodType<"TOTP_NOT_SETUP", import("zod").ZodTypeDef, "TOTP_NOT_SETUP">;
2984
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2985
- name: import("zod").ZodLiteral<"APIError">;
2986
- }, "strip", import("zod").ZodTypeAny, {
2987
- code: "TOTP_NOT_SETUP";
2988
- name: "APIError";
2989
- error: string;
2990
- }, {
2991
- code: "TOTP_NOT_SETUP";
2992
- name: "APIError";
2993
- error: string;
2994
- }>, import("zod").ZodObject<{
2995
- code: import("zod").ZodType<"TOTP_INVALID", import("zod").ZodTypeDef, "TOTP_INVALID">;
2996
- error: import("zod").ZodType<string, import("zod").ZodTypeDef, string>;
2997
- name: import("zod").ZodLiteral<"APIError">;
2998
- }, "strip", import("zod").ZodTypeAny, {
2999
- code: "TOTP_INVALID";
3000
- name: "APIError";
3001
- error: string;
3002
- }, {
3003
- code: "TOTP_INVALID";
3004
- name: "APIError";
3005
- error: string;
3006
3023
  }>]>;
3007
3024
  401: import("zod").ZodObject<{
3008
3025
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
@@ -3043,7 +3060,7 @@ declare const _default: {
3043
3060
  method: "POST";
3044
3061
  path: "/api/v2/logout";
3045
3062
  responses: {
3046
- 200: typeof import("@ts-rest/core").ContractNoBody;
3063
+ 204: typeof import("@ts-rest/core").ContractNoBody;
3047
3064
  };
3048
3065
  };
3049
3066
  register: {
@@ -3066,7 +3083,7 @@ declare const _default: {
3066
3083
  method: "POST";
3067
3084
  path: "/api/v2/register";
3068
3085
  responses: {
3069
- 200: typeof import("@ts-rest/core").ContractNoBody;
3086
+ 204: typeof import("@ts-rest/core").ContractNoBody;
3070
3087
  400: import("zod").ZodObject<{
3071
3088
  name: import("zod").ZodLiteral<"ZodError">;
3072
3089
  issues: import("zod").ZodArray<import("zod").ZodObject<{
@@ -3391,7 +3408,7 @@ declare const _default: {
3391
3408
  authorization: string;
3392
3409
  }>;
3393
3410
  responses: {
3394
- 200: typeof import("@ts-rest/core").ContractNoBody;
3411
+ 204: typeof import("@ts-rest/core").ContractNoBody;
3395
3412
  400: import("zod").ZodObject<{
3396
3413
  name: import("zod").ZodLiteral<"ZodError">;
3397
3414
  issues: import("zod").ZodArray<import("zod").ZodObject<{
@@ -3547,7 +3564,7 @@ declare const _default: {
3547
3564
  authorization: string;
3548
3565
  }>;
3549
3566
  responses: {
3550
- 200: typeof import("@ts-rest/core").ContractNoBody;
3567
+ 204: typeof import("@ts-rest/core").ContractNoBody;
3551
3568
  401: import("zod").ZodObject<{
3552
3569
  code: import("zod").ZodType<"UNAUTHORIZED", import("zod").ZodTypeDef, "UNAUTHORIZED">;
3553
3570
  error: import("zod").ZodType<"Unauthorized", import("zod").ZodTypeDef, "Unauthorized">;