@darco2903/auth-api 2.1.4 → 2.2.0

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