@authhero/adapter-interfaces 0.9.0 → 0.9.1

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.
@@ -679,182 +679,6 @@ export declare const authParamsSchema: z.ZodObject<{
679
679
  code_challenge?: string | undefined;
680
680
  }>;
681
681
  export type AuthParams = z.infer<typeof authParamsSchema>;
682
- export declare const authenticationCodeInsertSchema: z.ZodObject<{
683
- authParams: z.ZodObject<{
684
- client_id: z.ZodString;
685
- vendor_id: z.ZodOptional<z.ZodString>;
686
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
687
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
688
- redirect_uri: z.ZodOptional<z.ZodString>;
689
- audience: z.ZodOptional<z.ZodString>;
690
- state: z.ZodOptional<z.ZodString>;
691
- nonce: z.ZodOptional<z.ZodString>;
692
- scope: z.ZodOptional<z.ZodString>;
693
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
694
- code_challenge: z.ZodOptional<z.ZodString>;
695
- username: z.ZodOptional<z.ZodString>;
696
- }, "strip", z.ZodTypeAny, {
697
- client_id: string;
698
- username?: string | undefined;
699
- vendor_id?: string | undefined;
700
- response_type?: AuthorizationResponseType | undefined;
701
- response_mode?: AuthorizationResponseMode | undefined;
702
- redirect_uri?: string | undefined;
703
- audience?: string | undefined;
704
- state?: string | undefined;
705
- nonce?: string | undefined;
706
- scope?: string | undefined;
707
- code_challenge_method?: CodeChallengeMethod | undefined;
708
- code_challenge?: string | undefined;
709
- }, {
710
- client_id: string;
711
- username?: string | undefined;
712
- vendor_id?: string | undefined;
713
- response_type?: AuthorizationResponseType | undefined;
714
- response_mode?: AuthorizationResponseMode | undefined;
715
- redirect_uri?: string | undefined;
716
- audience?: string | undefined;
717
- state?: string | undefined;
718
- nonce?: string | undefined;
719
- scope?: string | undefined;
720
- code_challenge_method?: CodeChallengeMethod | undefined;
721
- code_challenge?: string | undefined;
722
- }>;
723
- code: z.ZodString;
724
- user_id: z.ZodString;
725
- created_at: z.ZodString;
726
- expires_at: z.ZodString;
727
- used_at: z.ZodOptional<z.ZodString>;
728
- }, "strip", z.ZodTypeAny, {
729
- code: string;
730
- created_at: string;
731
- user_id: string;
732
- authParams: {
733
- client_id: string;
734
- username?: string | undefined;
735
- vendor_id?: string | undefined;
736
- response_type?: AuthorizationResponseType | undefined;
737
- response_mode?: AuthorizationResponseMode | undefined;
738
- redirect_uri?: string | undefined;
739
- audience?: string | undefined;
740
- state?: string | undefined;
741
- nonce?: string | undefined;
742
- scope?: string | undefined;
743
- code_challenge_method?: CodeChallengeMethod | undefined;
744
- code_challenge?: string | undefined;
745
- };
746
- expires_at: string;
747
- used_at?: string | undefined;
748
- }, {
749
- code: string;
750
- created_at: string;
751
- user_id: string;
752
- authParams: {
753
- client_id: string;
754
- username?: string | undefined;
755
- vendor_id?: string | undefined;
756
- response_type?: AuthorizationResponseType | undefined;
757
- response_mode?: AuthorizationResponseMode | undefined;
758
- redirect_uri?: string | undefined;
759
- audience?: string | undefined;
760
- state?: string | undefined;
761
- nonce?: string | undefined;
762
- scope?: string | undefined;
763
- code_challenge_method?: CodeChallengeMethod | undefined;
764
- code_challenge?: string | undefined;
765
- };
766
- expires_at: string;
767
- used_at?: string | undefined;
768
- }>;
769
- export type AuthenticationCodeInsert = z.infer<typeof authenticationCodeInsertSchema>;
770
- export declare const authenticationCodeSchema: z.ZodObject<{
771
- created_at: z.ZodString;
772
- authParams: z.ZodObject<{
773
- client_id: z.ZodString;
774
- vendor_id: z.ZodOptional<z.ZodString>;
775
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
776
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
777
- redirect_uri: z.ZodOptional<z.ZodString>;
778
- audience: z.ZodOptional<z.ZodString>;
779
- state: z.ZodOptional<z.ZodString>;
780
- nonce: z.ZodOptional<z.ZodString>;
781
- scope: z.ZodOptional<z.ZodString>;
782
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
783
- code_challenge: z.ZodOptional<z.ZodString>;
784
- username: z.ZodOptional<z.ZodString>;
785
- }, "strip", z.ZodTypeAny, {
786
- client_id: string;
787
- username?: string | undefined;
788
- vendor_id?: string | undefined;
789
- response_type?: AuthorizationResponseType | undefined;
790
- response_mode?: AuthorizationResponseMode | undefined;
791
- redirect_uri?: string | undefined;
792
- audience?: string | undefined;
793
- state?: string | undefined;
794
- nonce?: string | undefined;
795
- scope?: string | undefined;
796
- code_challenge_method?: CodeChallengeMethod | undefined;
797
- code_challenge?: string | undefined;
798
- }, {
799
- client_id: string;
800
- username?: string | undefined;
801
- vendor_id?: string | undefined;
802
- response_type?: AuthorizationResponseType | undefined;
803
- response_mode?: AuthorizationResponseMode | undefined;
804
- redirect_uri?: string | undefined;
805
- audience?: string | undefined;
806
- state?: string | undefined;
807
- nonce?: string | undefined;
808
- scope?: string | undefined;
809
- code_challenge_method?: CodeChallengeMethod | undefined;
810
- code_challenge?: string | undefined;
811
- }>;
812
- code: z.ZodString;
813
- user_id: z.ZodString;
814
- expires_at: z.ZodString;
815
- used_at: z.ZodOptional<z.ZodString>;
816
- }, "strip", z.ZodTypeAny, {
817
- code: string;
818
- created_at: string;
819
- user_id: string;
820
- authParams: {
821
- client_id: string;
822
- username?: string | undefined;
823
- vendor_id?: string | undefined;
824
- response_type?: AuthorizationResponseType | undefined;
825
- response_mode?: AuthorizationResponseMode | undefined;
826
- redirect_uri?: string | undefined;
827
- audience?: string | undefined;
828
- state?: string | undefined;
829
- nonce?: string | undefined;
830
- scope?: string | undefined;
831
- code_challenge_method?: CodeChallengeMethod | undefined;
832
- code_challenge?: string | undefined;
833
- };
834
- expires_at: string;
835
- used_at?: string | undefined;
836
- }, {
837
- code: string;
838
- created_at: string;
839
- user_id: string;
840
- authParams: {
841
- client_id: string;
842
- username?: string | undefined;
843
- vendor_id?: string | undefined;
844
- response_type?: AuthorizationResponseType | undefined;
845
- response_mode?: AuthorizationResponseMode | undefined;
846
- redirect_uri?: string | undefined;
847
- audience?: string | undefined;
848
- state?: string | undefined;
849
- nonce?: string | undefined;
850
- scope?: string | undefined;
851
- code_challenge_method?: CodeChallengeMethod | undefined;
852
- code_challenge?: string | undefined;
853
- };
854
- expires_at: string;
855
- used_at?: string | undefined;
856
- }>;
857
- export type AuthenticationCode = z.infer<typeof authenticationCodeSchema>;
858
682
  export declare const brandingSchema: z.ZodObject<{
859
683
  colors: z.ZodOptional<z.ZodObject<{
860
684
  primary: z.ZodString;
@@ -1362,15 +1186,45 @@ export declare const PartialClientSchema: z.ZodObject<z.objectUtil.extendShape<{
1362
1186
  }>;
1363
1187
  export type Client = z.infer<typeof ClientSchema>;
1364
1188
  export type PartialClient = z.infer<typeof PartialClientSchema>;
1365
- export interface Code {
1366
- id: string;
1367
- code: string;
1368
- type: "password_reset" | "validation";
1189
+ export declare const codeTypeSchema: z.ZodEnum<[
1190
+ "password_reset",
1191
+ "email_verification",
1192
+ "otp",
1193
+ "oauth2",
1194
+ "oauth2_state",
1195
+ "ticket"
1196
+ ]>;
1197
+ export type CodeType = z.infer<typeof codeTypeSchema>;
1198
+ export declare const codeSchema: z.ZodObject<{
1199
+ code_id: z.ZodString;
1200
+ login_id: z.ZodString;
1201
+ code_type: z.ZodEnum<[
1202
+ "password_reset",
1203
+ "email_verification",
1204
+ "otp",
1205
+ "oauth2",
1206
+ "oauth2_state",
1207
+ "ticket"
1208
+ ]>;
1209
+ created_at: z.ZodString;
1210
+ expires_at: z.ZodString;
1211
+ used_at: z.ZodOptional<z.ZodString>;
1212
+ }, "strip", z.ZodTypeAny, {
1369
1213
  created_at: string;
1214
+ code_id: string;
1215
+ login_id: string;
1216
+ code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
1370
1217
  expires_at: string;
1371
- used_at?: string;
1372
- user_id: string;
1373
- }
1218
+ used_at?: string | undefined;
1219
+ }, {
1220
+ created_at: string;
1221
+ code_id: string;
1222
+ login_id: string;
1223
+ code_type: "password_reset" | "email_verification" | "otp" | "oauth2" | "oauth2_state" | "ticket";
1224
+ expires_at: string;
1225
+ used_at?: string | undefined;
1226
+ }>;
1227
+ export type Code = z.infer<typeof codeSchema>;
1374
1228
  export declare const connectionInsertSchema: z.ZodObject<{
1375
1229
  id: z.ZodOptional<z.ZodString>;
1376
1230
  name: z.ZodString;
@@ -1807,57 +1661,233 @@ export declare const openIDConfigurationSchema: z.ZodObject<{
1807
1661
  request_parameter_supported: boolean;
1808
1662
  token_endpoint_auth_signing_alg_values_supported: string[];
1809
1663
  }>;
1810
- export interface LoginState {
1811
- connection?: string;
1812
- authParams: AuthParams;
1813
- state: string;
1814
- errorMessage?: string;
1815
- }
1816
- export declare enum LogTypes {
1817
- SUCCESS_API_OPERATION = "sapi",
1818
- SUCCESS_SILENT_AUTH = "ssa",
1819
- FAILED_SILENT_AUTH = "fsa",
1820
- SUCCESS_SIGNUP = "ss",
1821
- FAILED_SIGNUP = "fs",
1822
- SUCCESS_LOGIN = "s",
1823
- FAILED_LOGIN = "f",
1824
- FAILED_LOGIN_INCORRECT_PASSWORD = "fp",
1825
- SUCCESS_LOGOUT = "slo",
1826
- SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa",
1827
- FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa",
1828
- SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft",
1829
- SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft",
1830
- CODE_LINK_SENT = "cls",
1831
- NOT_IMPLEMENTED_1 = "seccft"
1832
- }
1833
- declare const LogType: z.ZodEnum<[
1834
- "sapi",
1835
- "ssa",
1836
- "fsa",
1837
- "ss",
1838
- "ssa",
1839
- "fs",
1840
- "s",
1841
- "f",
1842
- "fp",
1843
- "slo",
1844
- "scoa",
1845
- "fcoa",
1846
- "seccft",
1847
- "cls",
1848
- "seacft",
1849
- "serft"
1850
- ]>;
1851
- type LogType$1 = z.infer<typeof LogType>;
1852
- export declare const Auth0Client: z.ZodObject<{
1853
- name: z.ZodString;
1854
- version: z.ZodString;
1855
- env: z.ZodOptional<z.ZodObject<{
1856
- node: z.ZodOptional<z.ZodString>;
1664
+ export declare const loginInsertSchema: z.ZodObject<{
1665
+ login_id: z.ZodString;
1666
+ auth0Client: z.ZodOptional<z.ZodString>;
1667
+ authParams: z.ZodObject<{
1668
+ client_id: z.ZodString;
1669
+ vendor_id: z.ZodOptional<z.ZodString>;
1670
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
1671
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
1672
+ redirect_uri: z.ZodOptional<z.ZodString>;
1673
+ audience: z.ZodOptional<z.ZodString>;
1674
+ state: z.ZodOptional<z.ZodString>;
1675
+ nonce: z.ZodOptional<z.ZodString>;
1676
+ scope: z.ZodOptional<z.ZodString>;
1677
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
1678
+ code_challenge: z.ZodOptional<z.ZodString>;
1679
+ username: z.ZodOptional<z.ZodString>;
1857
1680
  }, "strip", z.ZodTypeAny, {
1858
- node?: string | undefined;
1859
- }, {
1860
- node?: string | undefined;
1681
+ client_id: string;
1682
+ username?: string | undefined;
1683
+ vendor_id?: string | undefined;
1684
+ response_type?: AuthorizationResponseType | undefined;
1685
+ response_mode?: AuthorizationResponseMode | undefined;
1686
+ redirect_uri?: string | undefined;
1687
+ audience?: string | undefined;
1688
+ state?: string | undefined;
1689
+ nonce?: string | undefined;
1690
+ scope?: string | undefined;
1691
+ code_challenge_method?: CodeChallengeMethod | undefined;
1692
+ code_challenge?: string | undefined;
1693
+ }, {
1694
+ client_id: string;
1695
+ username?: string | undefined;
1696
+ vendor_id?: string | undefined;
1697
+ response_type?: AuthorizationResponseType | undefined;
1698
+ response_mode?: AuthorizationResponseMode | undefined;
1699
+ redirect_uri?: string | undefined;
1700
+ audience?: string | undefined;
1701
+ state?: string | undefined;
1702
+ nonce?: string | undefined;
1703
+ scope?: string | undefined;
1704
+ code_challenge_method?: CodeChallengeMethod | undefined;
1705
+ code_challenge?: string | undefined;
1706
+ }>;
1707
+ expires_at: z.ZodString;
1708
+ deleted_at: z.ZodString;
1709
+ ip: z.ZodOptional<z.ZodString>;
1710
+ }, "strip", z.ZodTypeAny, {
1711
+ login_id: string;
1712
+ expires_at: string;
1713
+ authParams: {
1714
+ client_id: string;
1715
+ username?: string | undefined;
1716
+ vendor_id?: string | undefined;
1717
+ response_type?: AuthorizationResponseType | undefined;
1718
+ response_mode?: AuthorizationResponseMode | undefined;
1719
+ redirect_uri?: string | undefined;
1720
+ audience?: string | undefined;
1721
+ state?: string | undefined;
1722
+ nonce?: string | undefined;
1723
+ scope?: string | undefined;
1724
+ code_challenge_method?: CodeChallengeMethod | undefined;
1725
+ code_challenge?: string | undefined;
1726
+ };
1727
+ deleted_at: string;
1728
+ auth0Client?: string | undefined;
1729
+ ip?: string | undefined;
1730
+ }, {
1731
+ login_id: string;
1732
+ expires_at: string;
1733
+ authParams: {
1734
+ client_id: string;
1735
+ username?: string | undefined;
1736
+ vendor_id?: string | undefined;
1737
+ response_type?: AuthorizationResponseType | undefined;
1738
+ response_mode?: AuthorizationResponseMode | undefined;
1739
+ redirect_uri?: string | undefined;
1740
+ audience?: string | undefined;
1741
+ state?: string | undefined;
1742
+ nonce?: string | undefined;
1743
+ scope?: string | undefined;
1744
+ code_challenge_method?: CodeChallengeMethod | undefined;
1745
+ code_challenge?: string | undefined;
1746
+ };
1747
+ deleted_at: string;
1748
+ auth0Client?: string | undefined;
1749
+ ip?: string | undefined;
1750
+ }>;
1751
+ export type LoginInsert = z.infer<typeof loginInsertSchema>;
1752
+ export declare const loginSchema: z.ZodObject<{
1753
+ created_at: z.ZodString;
1754
+ updated_at: z.ZodString;
1755
+ login_id: z.ZodString;
1756
+ auth0Client: z.ZodOptional<z.ZodString>;
1757
+ authParams: z.ZodObject<{
1758
+ client_id: z.ZodString;
1759
+ vendor_id: z.ZodOptional<z.ZodString>;
1760
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
1761
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
1762
+ redirect_uri: z.ZodOptional<z.ZodString>;
1763
+ audience: z.ZodOptional<z.ZodString>;
1764
+ state: z.ZodOptional<z.ZodString>;
1765
+ nonce: z.ZodOptional<z.ZodString>;
1766
+ scope: z.ZodOptional<z.ZodString>;
1767
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
1768
+ code_challenge: z.ZodOptional<z.ZodString>;
1769
+ username: z.ZodOptional<z.ZodString>;
1770
+ }, "strip", z.ZodTypeAny, {
1771
+ client_id: string;
1772
+ username?: string | undefined;
1773
+ vendor_id?: string | undefined;
1774
+ response_type?: AuthorizationResponseType | undefined;
1775
+ response_mode?: AuthorizationResponseMode | undefined;
1776
+ redirect_uri?: string | undefined;
1777
+ audience?: string | undefined;
1778
+ state?: string | undefined;
1779
+ nonce?: string | undefined;
1780
+ scope?: string | undefined;
1781
+ code_challenge_method?: CodeChallengeMethod | undefined;
1782
+ code_challenge?: string | undefined;
1783
+ }, {
1784
+ client_id: string;
1785
+ username?: string | undefined;
1786
+ vendor_id?: string | undefined;
1787
+ response_type?: AuthorizationResponseType | undefined;
1788
+ response_mode?: AuthorizationResponseMode | undefined;
1789
+ redirect_uri?: string | undefined;
1790
+ audience?: string | undefined;
1791
+ state?: string | undefined;
1792
+ nonce?: string | undefined;
1793
+ scope?: string | undefined;
1794
+ code_challenge_method?: CodeChallengeMethod | undefined;
1795
+ code_challenge?: string | undefined;
1796
+ }>;
1797
+ expires_at: z.ZodString;
1798
+ deleted_at: z.ZodString;
1799
+ ip: z.ZodOptional<z.ZodString>;
1800
+ }, "strip", z.ZodTypeAny, {
1801
+ created_at: string;
1802
+ updated_at: string;
1803
+ login_id: string;
1804
+ expires_at: string;
1805
+ authParams: {
1806
+ client_id: string;
1807
+ username?: string | undefined;
1808
+ vendor_id?: string | undefined;
1809
+ response_type?: AuthorizationResponseType | undefined;
1810
+ response_mode?: AuthorizationResponseMode | undefined;
1811
+ redirect_uri?: string | undefined;
1812
+ audience?: string | undefined;
1813
+ state?: string | undefined;
1814
+ nonce?: string | undefined;
1815
+ scope?: string | undefined;
1816
+ code_challenge_method?: CodeChallengeMethod | undefined;
1817
+ code_challenge?: string | undefined;
1818
+ };
1819
+ deleted_at: string;
1820
+ auth0Client?: string | undefined;
1821
+ ip?: string | undefined;
1822
+ }, {
1823
+ created_at: string;
1824
+ updated_at: string;
1825
+ login_id: string;
1826
+ expires_at: string;
1827
+ authParams: {
1828
+ client_id: string;
1829
+ username?: string | undefined;
1830
+ vendor_id?: string | undefined;
1831
+ response_type?: AuthorizationResponseType | undefined;
1832
+ response_mode?: AuthorizationResponseMode | undefined;
1833
+ redirect_uri?: string | undefined;
1834
+ audience?: string | undefined;
1835
+ state?: string | undefined;
1836
+ nonce?: string | undefined;
1837
+ scope?: string | undefined;
1838
+ code_challenge_method?: CodeChallengeMethod | undefined;
1839
+ code_challenge?: string | undefined;
1840
+ };
1841
+ deleted_at: string;
1842
+ auth0Client?: string | undefined;
1843
+ ip?: string | undefined;
1844
+ }>;
1845
+ export type Login = z.infer<typeof loginSchema>;
1846
+ export declare enum LogTypes {
1847
+ SUCCESS_API_OPERATION = "sapi",
1848
+ SUCCESS_SILENT_AUTH = "ssa",
1849
+ FAILED_SILENT_AUTH = "fsa",
1850
+ SUCCESS_SIGNUP = "ss",
1851
+ FAILED_SIGNUP = "fs",
1852
+ SUCCESS_LOGIN = "s",
1853
+ FAILED_LOGIN = "f",
1854
+ FAILED_LOGIN_INCORRECT_PASSWORD = "fp",
1855
+ SUCCESS_LOGOUT = "slo",
1856
+ SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa",
1857
+ FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa",
1858
+ SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft",
1859
+ SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft",
1860
+ CODE_LINK_SENT = "cls",
1861
+ NOT_IMPLEMENTED_1 = "seccft"
1862
+ }
1863
+ declare const LogType: z.ZodEnum<[
1864
+ "sapi",
1865
+ "ssa",
1866
+ "fsa",
1867
+ "ss",
1868
+ "ssa",
1869
+ "fs",
1870
+ "s",
1871
+ "f",
1872
+ "fp",
1873
+ "slo",
1874
+ "scoa",
1875
+ "fcoa",
1876
+ "seccft",
1877
+ "cls",
1878
+ "seacft",
1879
+ "serft"
1880
+ ]>;
1881
+ type LogType$1 = z.infer<typeof LogType>;
1882
+ export declare const Auth0Client: z.ZodObject<{
1883
+ name: z.ZodString;
1884
+ version: z.ZodString;
1885
+ env: z.ZodOptional<z.ZodObject<{
1886
+ node: z.ZodOptional<z.ZodString>;
1887
+ }, "strip", z.ZodTypeAny, {
1888
+ node?: string | undefined;
1889
+ }, {
1890
+ node?: string | undefined;
1861
1891
  }>>;
1862
1892
  }, "strip", z.ZodTypeAny, {
1863
1893
  name: string;
@@ -1995,218 +2025,21 @@ export type LogsResponse = Log & {
1995
2025
  log_id: string;
1996
2026
  _id: string;
1997
2027
  };
1998
- export declare const otpInsertSchema: z.ZodObject<{
1999
- id: z.ZodString;
2000
- email: z.ZodString;
2001
- code: z.ZodString;
2002
- ip: z.ZodOptional<z.ZodString>;
2003
- send: z.ZodEnum<[
2004
- "code",
2005
- "link"
2006
- ]>;
2007
- authParams: z.ZodObject<{
2008
- client_id: z.ZodString;
2009
- vendor_id: z.ZodOptional<z.ZodString>;
2010
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2011
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2012
- redirect_uri: z.ZodOptional<z.ZodString>;
2013
- audience: z.ZodOptional<z.ZodString>;
2014
- state: z.ZodOptional<z.ZodString>;
2015
- nonce: z.ZodOptional<z.ZodString>;
2016
- scope: z.ZodOptional<z.ZodString>;
2017
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2018
- code_challenge: z.ZodOptional<z.ZodString>;
2019
- username: z.ZodOptional<z.ZodString>;
2020
- }, "strip", z.ZodTypeAny, {
2021
- client_id: string;
2022
- username?: string | undefined;
2023
- vendor_id?: string | undefined;
2024
- response_type?: AuthorizationResponseType | undefined;
2025
- response_mode?: AuthorizationResponseMode | undefined;
2026
- redirect_uri?: string | undefined;
2027
- audience?: string | undefined;
2028
- state?: string | undefined;
2029
- nonce?: string | undefined;
2030
- scope?: string | undefined;
2031
- code_challenge_method?: CodeChallengeMethod | undefined;
2032
- code_challenge?: string | undefined;
2033
- }, {
2034
- client_id: string;
2035
- username?: string | undefined;
2036
- vendor_id?: string | undefined;
2037
- response_type?: AuthorizationResponseType | undefined;
2038
- response_mode?: AuthorizationResponseMode | undefined;
2039
- redirect_uri?: string | undefined;
2040
- audience?: string | undefined;
2041
- state?: string | undefined;
2042
- nonce?: string | undefined;
2043
- scope?: string | undefined;
2044
- code_challenge_method?: CodeChallengeMethod | undefined;
2045
- code_challenge?: string | undefined;
2046
- }>;
2047
- expires_at: z.ZodString;
2048
- used_at: z.ZodOptional<z.ZodString>;
2049
- user_id: z.ZodOptional<z.ZodString>;
2050
- }, "strip", z.ZodTypeAny, {
2051
- code: string;
2052
- email: string;
2053
- id: string;
2054
- authParams: {
2055
- client_id: string;
2056
- username?: string | undefined;
2057
- vendor_id?: string | undefined;
2058
- response_type?: AuthorizationResponseType | undefined;
2059
- response_mode?: AuthorizationResponseMode | undefined;
2060
- redirect_uri?: string | undefined;
2061
- audience?: string | undefined;
2062
- state?: string | undefined;
2063
- nonce?: string | undefined;
2064
- scope?: string | undefined;
2065
- code_challenge_method?: CodeChallengeMethod | undefined;
2066
- code_challenge?: string | undefined;
2067
- };
2068
- expires_at: string;
2069
- send: "code" | "link";
2070
- user_id?: string | undefined;
2071
- used_at?: string | undefined;
2072
- ip?: string | undefined;
2073
- }, {
2074
- code: string;
2075
- email: string;
2076
- id: string;
2077
- authParams: {
2078
- client_id: string;
2079
- username?: string | undefined;
2080
- vendor_id?: string | undefined;
2081
- response_type?: AuthorizationResponseType | undefined;
2082
- response_mode?: AuthorizationResponseMode | undefined;
2083
- redirect_uri?: string | undefined;
2084
- audience?: string | undefined;
2085
- state?: string | undefined;
2086
- nonce?: string | undefined;
2087
- scope?: string | undefined;
2088
- code_challenge_method?: CodeChallengeMethod | undefined;
2089
- code_challenge?: string | undefined;
2090
- };
2091
- expires_at: string;
2092
- send: "code" | "link";
2093
- user_id?: string | undefined;
2094
- used_at?: string | undefined;
2095
- ip?: string | undefined;
2096
- }>;
2097
- export type OTPInsert = z.infer<typeof otpInsertSchema>;
2098
- export declare const otpSchema: z.ZodObject<{
2099
- id: z.ZodString;
2100
- email: z.ZodString;
2101
- code: z.ZodString;
2102
- ip: z.ZodOptional<z.ZodString>;
2103
- send: z.ZodEnum<[
2104
- "code",
2105
- "link"
2106
- ]>;
2107
- authParams: z.ZodObject<{
2108
- client_id: z.ZodString;
2109
- vendor_id: z.ZodOptional<z.ZodString>;
2110
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2111
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2112
- redirect_uri: z.ZodOptional<z.ZodString>;
2113
- audience: z.ZodOptional<z.ZodString>;
2114
- state: z.ZodOptional<z.ZodString>;
2115
- nonce: z.ZodOptional<z.ZodString>;
2116
- scope: z.ZodOptional<z.ZodString>;
2117
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2118
- code_challenge: z.ZodOptional<z.ZodString>;
2119
- username: z.ZodOptional<z.ZodString>;
2120
- }, "strip", z.ZodTypeAny, {
2121
- client_id: string;
2122
- username?: string | undefined;
2123
- vendor_id?: string | undefined;
2124
- response_type?: AuthorizationResponseType | undefined;
2125
- response_mode?: AuthorizationResponseMode | undefined;
2126
- redirect_uri?: string | undefined;
2127
- audience?: string | undefined;
2128
- state?: string | undefined;
2129
- nonce?: string | undefined;
2130
- scope?: string | undefined;
2131
- code_challenge_method?: CodeChallengeMethod | undefined;
2132
- code_challenge?: string | undefined;
2133
- }, {
2134
- client_id: string;
2135
- username?: string | undefined;
2136
- vendor_id?: string | undefined;
2137
- response_type?: AuthorizationResponseType | undefined;
2138
- response_mode?: AuthorizationResponseMode | undefined;
2139
- redirect_uri?: string | undefined;
2140
- audience?: string | undefined;
2141
- state?: string | undefined;
2142
- nonce?: string | undefined;
2143
- scope?: string | undefined;
2144
- code_challenge_method?: CodeChallengeMethod | undefined;
2145
- code_challenge?: string | undefined;
2146
- }>;
2147
- expires_at: z.ZodString;
2148
- used_at: z.ZodOptional<z.ZodString>;
2149
- user_id: z.ZodOptional<z.ZodString>;
2150
- created_at: z.ZodString;
2151
- }, "strip", z.ZodTypeAny, {
2152
- code: string;
2153
- created_at: string;
2154
- email: string;
2155
- id: string;
2156
- authParams: {
2157
- client_id: string;
2158
- username?: string | undefined;
2159
- vendor_id?: string | undefined;
2160
- response_type?: AuthorizationResponseType | undefined;
2161
- response_mode?: AuthorizationResponseMode | undefined;
2162
- redirect_uri?: string | undefined;
2163
- audience?: string | undefined;
2164
- state?: string | undefined;
2165
- nonce?: string | undefined;
2166
- scope?: string | undefined;
2167
- code_challenge_method?: CodeChallengeMethod | undefined;
2168
- code_challenge?: string | undefined;
2169
- };
2170
- expires_at: string;
2171
- send: "code" | "link";
2172
- user_id?: string | undefined;
2173
- used_at?: string | undefined;
2174
- ip?: string | undefined;
2175
- }, {
2176
- code: string;
2177
- created_at: string;
2178
- email: string;
2179
- id: string;
2180
- authParams: {
2181
- client_id: string;
2182
- username?: string | undefined;
2183
- vendor_id?: string | undefined;
2184
- response_type?: AuthorizationResponseType | undefined;
2185
- response_mode?: AuthorizationResponseMode | undefined;
2186
- redirect_uri?: string | undefined;
2187
- audience?: string | undefined;
2188
- state?: string | undefined;
2189
- nonce?: string | undefined;
2190
- scope?: string | undefined;
2191
- code_challenge_method?: CodeChallengeMethod | undefined;
2192
- code_challenge?: string | undefined;
2193
- };
2194
- expires_at: string;
2195
- send: "code" | "link";
2196
- user_id?: string | undefined;
2197
- used_at?: string | undefined;
2198
- ip?: string | undefined;
2199
- }>;
2200
- export type OTP = z.infer<typeof otpSchema>;
2201
- export declare const passwordInsertSchema: z.ZodObject<{
2202
- user_id: z.ZodString;
2203
- password: z.ZodString;
2028
+ export declare const passwordInsertSchema: z.ZodObject<{
2029
+ user_id: z.ZodString;
2030
+ password: z.ZodString;
2031
+ algorithm: z.ZodDefault<z.ZodEnum<[
2032
+ "bcrypt",
2033
+ "argon2id"
2034
+ ]>>;
2204
2035
  }, "strip", z.ZodTypeAny, {
2205
2036
  password: string;
2206
2037
  user_id: string;
2038
+ algorithm: "bcrypt" | "argon2id";
2207
2039
  }, {
2208
2040
  password: string;
2209
2041
  user_id: string;
2042
+ algorithm?: "bcrypt" | "argon2id" | undefined;
2210
2043
  }>;
2211
2044
  export type PasswordInsert = z.infer<typeof passwordInsertSchema>;
2212
2045
  export declare const passwordSchema: z.ZodObject<{
@@ -2214,16 +2047,22 @@ export declare const passwordSchema: z.ZodObject<{
2214
2047
  updated_at: z.ZodString;
2215
2048
  user_id: z.ZodString;
2216
2049
  password: z.ZodString;
2050
+ algorithm: z.ZodDefault<z.ZodEnum<[
2051
+ "bcrypt",
2052
+ "argon2id"
2053
+ ]>>;
2217
2054
  }, "strip", z.ZodTypeAny, {
2218
2055
  password: string;
2219
2056
  created_at: string;
2220
2057
  updated_at: string;
2221
2058
  user_id: string;
2059
+ algorithm: "bcrypt" | "argon2id";
2222
2060
  }, {
2223
2061
  password: string;
2224
2062
  created_at: string;
2225
2063
  updated_at: string;
2226
2064
  user_id: string;
2065
+ algorithm?: "bcrypt" | "argon2id" | undefined;
2227
2066
  }>;
2228
2067
  export type Password = z.infer<typeof passwordSchema>;
2229
2068
  export declare const sessionInsertSchema: z.ZodObject<{
@@ -2586,217 +2425,30 @@ declare const codeResponseSchema: z.ZodObject<{
2586
2425
  state?: string | undefined;
2587
2426
  }>;
2588
2427
  export type CodeResponse = z.infer<typeof codeResponseSchema>;
2589
- export interface Ticket {
2590
- id: string;
2591
- tenant_id: string;
2592
- client_id: string;
2593
- email: string;
2594
- authParams?: {
2595
- nonce?: string;
2596
- state?: string;
2597
- scope?: string;
2598
- response_type?: AuthorizationResponseType;
2599
- response_mode?: AuthorizationResponseMode;
2600
- redirect_uri?: string;
2601
- };
2602
- created_at: Date;
2603
- expires_at: Date;
2604
- used_at?: Date;
2605
- }
2606
- export declare const universalLoginSessionInsertSchema: z.ZodObject<{
2607
- id: z.ZodString;
2608
- expires_at: z.ZodString;
2609
- auth0Client: z.ZodOptional<z.ZodString>;
2610
- authParams: z.ZodObject<{
2611
- client_id: z.ZodString;
2612
- vendor_id: z.ZodOptional<z.ZodString>;
2613
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2614
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2615
- redirect_uri: z.ZodOptional<z.ZodString>;
2616
- audience: z.ZodOptional<z.ZodString>;
2617
- state: z.ZodOptional<z.ZodString>;
2618
- nonce: z.ZodOptional<z.ZodString>;
2619
- scope: z.ZodOptional<z.ZodString>;
2620
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2621
- code_challenge: z.ZodOptional<z.ZodString>;
2622
- username: z.ZodOptional<z.ZodString>;
2623
- }, "strip", z.ZodTypeAny, {
2624
- client_id: string;
2625
- username?: string | undefined;
2626
- vendor_id?: string | undefined;
2627
- response_type?: AuthorizationResponseType | undefined;
2628
- response_mode?: AuthorizationResponseMode | undefined;
2629
- redirect_uri?: string | undefined;
2630
- audience?: string | undefined;
2631
- state?: string | undefined;
2632
- nonce?: string | undefined;
2633
- scope?: string | undefined;
2634
- code_challenge_method?: CodeChallengeMethod | undefined;
2635
- code_challenge?: string | undefined;
2636
- }, {
2637
- client_id: string;
2638
- username?: string | undefined;
2639
- vendor_id?: string | undefined;
2640
- response_type?: AuthorizationResponseType | undefined;
2641
- response_mode?: AuthorizationResponseMode | undefined;
2642
- redirect_uri?: string | undefined;
2643
- audience?: string | undefined;
2644
- state?: string | undefined;
2645
- nonce?: string | undefined;
2646
- scope?: string | undefined;
2647
- code_challenge_method?: CodeChallengeMethod | undefined;
2648
- code_challenge?: string | undefined;
2649
- }>;
2428
+ export declare const bordersSchema: z.ZodObject<{
2429
+ button_border_radius: z.ZodNumber;
2430
+ button_border_weight: z.ZodNumber;
2431
+ buttons_style: z.ZodEnum<[
2432
+ "pill"
2433
+ ]>;
2434
+ input_border_radius: z.ZodNumber;
2435
+ input_border_weight: z.ZodNumber;
2436
+ inputs_style: z.ZodEnum<[
2437
+ "pill"
2438
+ ]>;
2439
+ show_widget_shadow: z.ZodBoolean;
2440
+ widget_border_weight: z.ZodNumber;
2441
+ widget_corner_radius: z.ZodNumber;
2650
2442
  }, "strip", z.ZodTypeAny, {
2651
- id: string;
2652
- authParams: {
2653
- client_id: string;
2654
- username?: string | undefined;
2655
- vendor_id?: string | undefined;
2656
- response_type?: AuthorizationResponseType | undefined;
2657
- response_mode?: AuthorizationResponseMode | undefined;
2658
- redirect_uri?: string | undefined;
2659
- audience?: string | undefined;
2660
- state?: string | undefined;
2661
- nonce?: string | undefined;
2662
- scope?: string | undefined;
2663
- code_challenge_method?: CodeChallengeMethod | undefined;
2664
- code_challenge?: string | undefined;
2665
- };
2666
- expires_at: string;
2667
- auth0Client?: string | undefined;
2668
- }, {
2669
- id: string;
2670
- authParams: {
2671
- client_id: string;
2672
- username?: string | undefined;
2673
- vendor_id?: string | undefined;
2674
- response_type?: AuthorizationResponseType | undefined;
2675
- response_mode?: AuthorizationResponseMode | undefined;
2676
- redirect_uri?: string | undefined;
2677
- audience?: string | undefined;
2678
- state?: string | undefined;
2679
- nonce?: string | undefined;
2680
- scope?: string | undefined;
2681
- code_challenge_method?: CodeChallengeMethod | undefined;
2682
- code_challenge?: string | undefined;
2683
- };
2684
- expires_at: string;
2685
- auth0Client?: string | undefined;
2686
- }>;
2687
- export type UniversalLoginSessionInsert = z.infer<typeof universalLoginSessionInsertSchema>;
2688
- export declare const universalLoginSessionSchema: z.ZodObject<{
2689
- created_at: z.ZodString;
2690
- updated_at: z.ZodString;
2691
- id: z.ZodString;
2692
- expires_at: z.ZodString;
2693
- auth0Client: z.ZodOptional<z.ZodString>;
2694
- authParams: z.ZodObject<{
2695
- client_id: z.ZodString;
2696
- vendor_id: z.ZodOptional<z.ZodString>;
2697
- response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
2698
- response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
2699
- redirect_uri: z.ZodOptional<z.ZodString>;
2700
- audience: z.ZodOptional<z.ZodString>;
2701
- state: z.ZodOptional<z.ZodString>;
2702
- nonce: z.ZodOptional<z.ZodString>;
2703
- scope: z.ZodOptional<z.ZodString>;
2704
- code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
2705
- code_challenge: z.ZodOptional<z.ZodString>;
2706
- username: z.ZodOptional<z.ZodString>;
2707
- }, "strip", z.ZodTypeAny, {
2708
- client_id: string;
2709
- username?: string | undefined;
2710
- vendor_id?: string | undefined;
2711
- response_type?: AuthorizationResponseType | undefined;
2712
- response_mode?: AuthorizationResponseMode | undefined;
2713
- redirect_uri?: string | undefined;
2714
- audience?: string | undefined;
2715
- state?: string | undefined;
2716
- nonce?: string | undefined;
2717
- scope?: string | undefined;
2718
- code_challenge_method?: CodeChallengeMethod | undefined;
2719
- code_challenge?: string | undefined;
2720
- }, {
2721
- client_id: string;
2722
- username?: string | undefined;
2723
- vendor_id?: string | undefined;
2724
- response_type?: AuthorizationResponseType | undefined;
2725
- response_mode?: AuthorizationResponseMode | undefined;
2726
- redirect_uri?: string | undefined;
2727
- audience?: string | undefined;
2728
- state?: string | undefined;
2729
- nonce?: string | undefined;
2730
- scope?: string | undefined;
2731
- code_challenge_method?: CodeChallengeMethod | undefined;
2732
- code_challenge?: string | undefined;
2733
- }>;
2734
- }, "strip", z.ZodTypeAny, {
2735
- created_at: string;
2736
- updated_at: string;
2737
- id: string;
2738
- authParams: {
2739
- client_id: string;
2740
- username?: string | undefined;
2741
- vendor_id?: string | undefined;
2742
- response_type?: AuthorizationResponseType | undefined;
2743
- response_mode?: AuthorizationResponseMode | undefined;
2744
- redirect_uri?: string | undefined;
2745
- audience?: string | undefined;
2746
- state?: string | undefined;
2747
- nonce?: string | undefined;
2748
- scope?: string | undefined;
2749
- code_challenge_method?: CodeChallengeMethod | undefined;
2750
- code_challenge?: string | undefined;
2751
- };
2752
- expires_at: string;
2753
- auth0Client?: string | undefined;
2754
- }, {
2755
- created_at: string;
2756
- updated_at: string;
2757
- id: string;
2758
- authParams: {
2759
- client_id: string;
2760
- username?: string | undefined;
2761
- vendor_id?: string | undefined;
2762
- response_type?: AuthorizationResponseType | undefined;
2763
- response_mode?: AuthorizationResponseMode | undefined;
2764
- redirect_uri?: string | undefined;
2765
- audience?: string | undefined;
2766
- state?: string | undefined;
2767
- nonce?: string | undefined;
2768
- scope?: string | undefined;
2769
- code_challenge_method?: CodeChallengeMethod | undefined;
2770
- code_challenge?: string | undefined;
2771
- };
2772
- expires_at: string;
2773
- auth0Client?: string | undefined;
2774
- }>;
2775
- export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
2776
- export declare const bordersSchema: z.ZodObject<{
2777
- button_border_radius: z.ZodNumber;
2778
- button_border_weight: z.ZodNumber;
2779
- buttons_style: z.ZodEnum<[
2780
- "pill"
2781
- ]>;
2782
- input_border_radius: z.ZodNumber;
2783
- input_border_weight: z.ZodNumber;
2784
- inputs_style: z.ZodEnum<[
2785
- "pill"
2786
- ]>;
2787
- show_widget_shadow: z.ZodBoolean;
2788
- widget_border_weight: z.ZodNumber;
2789
- widget_corner_radius: z.ZodNumber;
2790
- }, "strip", z.ZodTypeAny, {
2791
- button_border_radius: number;
2792
- button_border_weight: number;
2793
- buttons_style: "pill";
2794
- input_border_radius: number;
2795
- input_border_weight: number;
2796
- inputs_style: "pill";
2797
- show_widget_shadow: boolean;
2798
- widget_border_weight: number;
2799
- widget_corner_radius: number;
2443
+ button_border_radius: number;
2444
+ button_border_weight: number;
2445
+ buttons_style: "pill";
2446
+ input_border_radius: number;
2447
+ input_border_weight: number;
2448
+ inputs_style: "pill";
2449
+ show_widget_shadow: boolean;
2450
+ widget_border_weight: number;
2451
+ widget_corner_radius: number;
2800
2452
  }, {
2801
2453
  button_border_radius: number;
2802
2454
  button_border_weight: number;
@@ -3710,181 +3362,768 @@ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
3710
3362
  "bottom"
3711
3363
  ]>;
3712
3364
  }, "strip", z.ZodTypeAny, {
3713
- logo_url: string;
3714
- header_text_alignment: "center";
3715
- logo_height: number;
3716
- logo_position: "center";
3717
- social_buttons_layout: "bottom";
3365
+ logo_url: string;
3366
+ header_text_alignment: "center";
3367
+ logo_height: number;
3368
+ logo_position: "center";
3369
+ social_buttons_layout: "bottom";
3370
+ }, {
3371
+ logo_url: string;
3372
+ header_text_alignment: "center";
3373
+ logo_height: number;
3374
+ logo_position: "center";
3375
+ social_buttons_layout: "bottom";
3376
+ }>;
3377
+ }, {
3378
+ themeId: z.ZodString;
3379
+ }>, "strip", z.ZodTypeAny, {
3380
+ page_background: {
3381
+ background_color: string;
3382
+ background_image_url: string;
3383
+ page_layout: "center";
3384
+ };
3385
+ colors: {
3386
+ base_focus_color: string;
3387
+ base_hover_color: string;
3388
+ body_text: string;
3389
+ captcha_widget_theme: "auto";
3390
+ error: string;
3391
+ header: string;
3392
+ icons: string;
3393
+ input_background: string;
3394
+ input_border: string;
3395
+ input_filled_text: string;
3396
+ input_labels_placeholders: string;
3397
+ links_focused_components: string;
3398
+ primary_button: string;
3399
+ primary_button_label: string;
3400
+ secondary_button_border: string;
3401
+ secondary_button_label: string;
3402
+ success: string;
3403
+ widget_background: string;
3404
+ widget_border: string;
3405
+ };
3406
+ borders: {
3407
+ button_border_radius: number;
3408
+ button_border_weight: number;
3409
+ buttons_style: "pill";
3410
+ input_border_radius: number;
3411
+ input_border_weight: number;
3412
+ inputs_style: "pill";
3413
+ show_widget_shadow: boolean;
3414
+ widget_border_weight: number;
3415
+ widget_corner_radius: number;
3416
+ };
3417
+ displayName: string;
3418
+ fonts: {
3419
+ title: {
3420
+ bold: boolean;
3421
+ size: number;
3422
+ };
3423
+ body_text: {
3424
+ bold: boolean;
3425
+ size: number;
3426
+ };
3427
+ buttons_text: {
3428
+ bold: boolean;
3429
+ size: number;
3430
+ };
3431
+ font_url: string;
3432
+ input_labels: {
3433
+ bold: boolean;
3434
+ size: number;
3435
+ };
3436
+ links: {
3437
+ bold: boolean;
3438
+ size: number;
3439
+ };
3440
+ links_style: "normal";
3441
+ reference_text_size: number;
3442
+ subtitle: {
3443
+ bold: boolean;
3444
+ size: number;
3445
+ };
3446
+ };
3447
+ widget: {
3448
+ logo_url: string;
3449
+ header_text_alignment: "center";
3450
+ logo_height: number;
3451
+ logo_position: "center";
3452
+ social_buttons_layout: "bottom";
3453
+ };
3454
+ themeId: string;
3455
+ }, {
3456
+ page_background: {
3457
+ background_color: string;
3458
+ background_image_url: string;
3459
+ page_layout: "center";
3460
+ };
3461
+ colors: {
3462
+ base_focus_color: string;
3463
+ base_hover_color: string;
3464
+ body_text: string;
3465
+ captcha_widget_theme: "auto";
3466
+ error: string;
3467
+ header: string;
3468
+ icons: string;
3469
+ input_background: string;
3470
+ input_border: string;
3471
+ input_filled_text: string;
3472
+ input_labels_placeholders: string;
3473
+ links_focused_components: string;
3474
+ primary_button: string;
3475
+ primary_button_label: string;
3476
+ secondary_button_border: string;
3477
+ secondary_button_label: string;
3478
+ success: string;
3479
+ widget_background: string;
3480
+ widget_border: string;
3481
+ };
3482
+ borders: {
3483
+ button_border_radius: number;
3484
+ button_border_weight: number;
3485
+ buttons_style: "pill";
3486
+ input_border_radius: number;
3487
+ input_border_weight: number;
3488
+ inputs_style: "pill";
3489
+ show_widget_shadow: boolean;
3490
+ widget_border_weight: number;
3491
+ widget_corner_radius: number;
3492
+ };
3493
+ displayName: string;
3494
+ fonts: {
3495
+ title: {
3496
+ bold: boolean;
3497
+ size: number;
3498
+ };
3499
+ body_text: {
3500
+ bold: boolean;
3501
+ size: number;
3502
+ };
3503
+ buttons_text: {
3504
+ bold: boolean;
3505
+ size: number;
3506
+ };
3507
+ font_url: string;
3508
+ input_labels: {
3509
+ bold: boolean;
3510
+ size: number;
3511
+ };
3512
+ links: {
3513
+ bold: boolean;
3514
+ size: number;
3515
+ };
3516
+ links_style: "normal";
3517
+ reference_text_size: number;
3518
+ subtitle: {
3519
+ bold: boolean;
3520
+ size: number;
3521
+ };
3522
+ };
3523
+ widget: {
3524
+ logo_url: string;
3525
+ header_text_alignment: "center";
3526
+ logo_height: number;
3527
+ logo_position: "center";
3528
+ social_buttons_layout: "bottom";
3529
+ };
3530
+ themeId: string;
3531
+ }>;
3532
+ export type Theme = z.infer<typeof themeSchema>;
3533
+ export interface LoginState {
3534
+ connection?: string;
3535
+ authParams: AuthParams;
3536
+ state: string;
3537
+ errorMessage?: string;
3538
+ }
3539
+ export interface Ticket {
3540
+ id: string;
3541
+ tenant_id: string;
3542
+ client_id: string;
3543
+ email: string;
3544
+ authParams?: {
3545
+ nonce?: string;
3546
+ state?: string;
3547
+ scope?: string;
3548
+ response_type?: AuthorizationResponseType;
3549
+ response_mode?: AuthorizationResponseMode;
3550
+ redirect_uri?: string;
3551
+ };
3552
+ created_at: Date;
3553
+ expires_at: Date;
3554
+ used_at?: Date;
3555
+ }
3556
+ export declare const universalLoginSessionInsertSchema: z.ZodObject<{
3557
+ id: z.ZodString;
3558
+ expires_at: z.ZodString;
3559
+ auth0Client: z.ZodOptional<z.ZodString>;
3560
+ authParams: z.ZodObject<{
3561
+ client_id: z.ZodString;
3562
+ vendor_id: z.ZodOptional<z.ZodString>;
3563
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
3564
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
3565
+ redirect_uri: z.ZodOptional<z.ZodString>;
3566
+ audience: z.ZodOptional<z.ZodString>;
3567
+ state: z.ZodOptional<z.ZodString>;
3568
+ nonce: z.ZodOptional<z.ZodString>;
3569
+ scope: z.ZodOptional<z.ZodString>;
3570
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
3571
+ code_challenge: z.ZodOptional<z.ZodString>;
3572
+ username: z.ZodOptional<z.ZodString>;
3573
+ }, "strip", z.ZodTypeAny, {
3574
+ client_id: string;
3575
+ username?: string | undefined;
3576
+ vendor_id?: string | undefined;
3577
+ response_type?: AuthorizationResponseType | undefined;
3578
+ response_mode?: AuthorizationResponseMode | undefined;
3579
+ redirect_uri?: string | undefined;
3580
+ audience?: string | undefined;
3581
+ state?: string | undefined;
3582
+ nonce?: string | undefined;
3583
+ scope?: string | undefined;
3584
+ code_challenge_method?: CodeChallengeMethod | undefined;
3585
+ code_challenge?: string | undefined;
3586
+ }, {
3587
+ client_id: string;
3588
+ username?: string | undefined;
3589
+ vendor_id?: string | undefined;
3590
+ response_type?: AuthorizationResponseType | undefined;
3591
+ response_mode?: AuthorizationResponseMode | undefined;
3592
+ redirect_uri?: string | undefined;
3593
+ audience?: string | undefined;
3594
+ state?: string | undefined;
3595
+ nonce?: string | undefined;
3596
+ scope?: string | undefined;
3597
+ code_challenge_method?: CodeChallengeMethod | undefined;
3598
+ code_challenge?: string | undefined;
3599
+ }>;
3600
+ }, "strip", z.ZodTypeAny, {
3601
+ id: string;
3602
+ expires_at: string;
3603
+ authParams: {
3604
+ client_id: string;
3605
+ username?: string | undefined;
3606
+ vendor_id?: string | undefined;
3607
+ response_type?: AuthorizationResponseType | undefined;
3608
+ response_mode?: AuthorizationResponseMode | undefined;
3609
+ redirect_uri?: string | undefined;
3610
+ audience?: string | undefined;
3611
+ state?: string | undefined;
3612
+ nonce?: string | undefined;
3613
+ scope?: string | undefined;
3614
+ code_challenge_method?: CodeChallengeMethod | undefined;
3615
+ code_challenge?: string | undefined;
3616
+ };
3617
+ auth0Client?: string | undefined;
3618
+ }, {
3619
+ id: string;
3620
+ expires_at: string;
3621
+ authParams: {
3622
+ client_id: string;
3623
+ username?: string | undefined;
3624
+ vendor_id?: string | undefined;
3625
+ response_type?: AuthorizationResponseType | undefined;
3626
+ response_mode?: AuthorizationResponseMode | undefined;
3627
+ redirect_uri?: string | undefined;
3628
+ audience?: string | undefined;
3629
+ state?: string | undefined;
3630
+ nonce?: string | undefined;
3631
+ scope?: string | undefined;
3632
+ code_challenge_method?: CodeChallengeMethod | undefined;
3633
+ code_challenge?: string | undefined;
3634
+ };
3635
+ auth0Client?: string | undefined;
3636
+ }>;
3637
+ export type UniversalLoginSessionInsert = z.infer<typeof universalLoginSessionInsertSchema>;
3638
+ export declare const universalLoginSessionSchema: z.ZodObject<{
3639
+ created_at: z.ZodString;
3640
+ updated_at: z.ZodString;
3641
+ id: z.ZodString;
3642
+ expires_at: z.ZodString;
3643
+ auth0Client: z.ZodOptional<z.ZodString>;
3644
+ authParams: z.ZodObject<{
3645
+ client_id: z.ZodString;
3646
+ vendor_id: z.ZodOptional<z.ZodString>;
3647
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
3648
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
3649
+ redirect_uri: z.ZodOptional<z.ZodString>;
3650
+ audience: z.ZodOptional<z.ZodString>;
3651
+ state: z.ZodOptional<z.ZodString>;
3652
+ nonce: z.ZodOptional<z.ZodString>;
3653
+ scope: z.ZodOptional<z.ZodString>;
3654
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
3655
+ code_challenge: z.ZodOptional<z.ZodString>;
3656
+ username: z.ZodOptional<z.ZodString>;
3657
+ }, "strip", z.ZodTypeAny, {
3658
+ client_id: string;
3659
+ username?: string | undefined;
3660
+ vendor_id?: string | undefined;
3661
+ response_type?: AuthorizationResponseType | undefined;
3662
+ response_mode?: AuthorizationResponseMode | undefined;
3663
+ redirect_uri?: string | undefined;
3664
+ audience?: string | undefined;
3665
+ state?: string | undefined;
3666
+ nonce?: string | undefined;
3667
+ scope?: string | undefined;
3668
+ code_challenge_method?: CodeChallengeMethod | undefined;
3669
+ code_challenge?: string | undefined;
3670
+ }, {
3671
+ client_id: string;
3672
+ username?: string | undefined;
3673
+ vendor_id?: string | undefined;
3674
+ response_type?: AuthorizationResponseType | undefined;
3675
+ response_mode?: AuthorizationResponseMode | undefined;
3676
+ redirect_uri?: string | undefined;
3677
+ audience?: string | undefined;
3678
+ state?: string | undefined;
3679
+ nonce?: string | undefined;
3680
+ scope?: string | undefined;
3681
+ code_challenge_method?: CodeChallengeMethod | undefined;
3682
+ code_challenge?: string | undefined;
3683
+ }>;
3684
+ }, "strip", z.ZodTypeAny, {
3685
+ created_at: string;
3686
+ updated_at: string;
3687
+ id: string;
3688
+ expires_at: string;
3689
+ authParams: {
3690
+ client_id: string;
3691
+ username?: string | undefined;
3692
+ vendor_id?: string | undefined;
3693
+ response_type?: AuthorizationResponseType | undefined;
3694
+ response_mode?: AuthorizationResponseMode | undefined;
3695
+ redirect_uri?: string | undefined;
3696
+ audience?: string | undefined;
3697
+ state?: string | undefined;
3698
+ nonce?: string | undefined;
3699
+ scope?: string | undefined;
3700
+ code_challenge_method?: CodeChallengeMethod | undefined;
3701
+ code_challenge?: string | undefined;
3702
+ };
3703
+ auth0Client?: string | undefined;
3704
+ }, {
3705
+ created_at: string;
3706
+ updated_at: string;
3707
+ id: string;
3708
+ expires_at: string;
3709
+ authParams: {
3710
+ client_id: string;
3711
+ username?: string | undefined;
3712
+ vendor_id?: string | undefined;
3713
+ response_type?: AuthorizationResponseType | undefined;
3714
+ response_mode?: AuthorizationResponseMode | undefined;
3715
+ redirect_uri?: string | undefined;
3716
+ audience?: string | undefined;
3717
+ state?: string | undefined;
3718
+ nonce?: string | undefined;
3719
+ scope?: string | undefined;
3720
+ code_challenge_method?: CodeChallengeMethod | undefined;
3721
+ code_challenge?: string | undefined;
3722
+ };
3723
+ auth0Client?: string | undefined;
3724
+ }>;
3725
+ export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
3726
+ export declare const otpInsertSchema: z.ZodObject<{
3727
+ id: z.ZodString;
3728
+ email: z.ZodString;
3729
+ code: z.ZodString;
3730
+ ip: z.ZodOptional<z.ZodString>;
3731
+ send: z.ZodEnum<[
3732
+ "code",
3733
+ "link"
3734
+ ]>;
3735
+ authParams: z.ZodObject<{
3736
+ client_id: z.ZodString;
3737
+ vendor_id: z.ZodOptional<z.ZodString>;
3738
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
3739
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
3740
+ redirect_uri: z.ZodOptional<z.ZodString>;
3741
+ audience: z.ZodOptional<z.ZodString>;
3742
+ state: z.ZodOptional<z.ZodString>;
3743
+ nonce: z.ZodOptional<z.ZodString>;
3744
+ scope: z.ZodOptional<z.ZodString>;
3745
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
3746
+ code_challenge: z.ZodOptional<z.ZodString>;
3747
+ username: z.ZodOptional<z.ZodString>;
3748
+ }, "strip", z.ZodTypeAny, {
3749
+ client_id: string;
3750
+ username?: string | undefined;
3751
+ vendor_id?: string | undefined;
3752
+ response_type?: AuthorizationResponseType | undefined;
3753
+ response_mode?: AuthorizationResponseMode | undefined;
3754
+ redirect_uri?: string | undefined;
3755
+ audience?: string | undefined;
3756
+ state?: string | undefined;
3757
+ nonce?: string | undefined;
3758
+ scope?: string | undefined;
3759
+ code_challenge_method?: CodeChallengeMethod | undefined;
3760
+ code_challenge?: string | undefined;
3761
+ }, {
3762
+ client_id: string;
3763
+ username?: string | undefined;
3764
+ vendor_id?: string | undefined;
3765
+ response_type?: AuthorizationResponseType | undefined;
3766
+ response_mode?: AuthorizationResponseMode | undefined;
3767
+ redirect_uri?: string | undefined;
3768
+ audience?: string | undefined;
3769
+ state?: string | undefined;
3770
+ nonce?: string | undefined;
3771
+ scope?: string | undefined;
3772
+ code_challenge_method?: CodeChallengeMethod | undefined;
3773
+ code_challenge?: string | undefined;
3774
+ }>;
3775
+ expires_at: z.ZodString;
3776
+ used_at: z.ZodOptional<z.ZodString>;
3777
+ user_id: z.ZodOptional<z.ZodString>;
3778
+ }, "strip", z.ZodTypeAny, {
3779
+ code: string;
3780
+ email: string;
3781
+ id: string;
3782
+ expires_at: string;
3783
+ authParams: {
3784
+ client_id: string;
3785
+ username?: string | undefined;
3786
+ vendor_id?: string | undefined;
3787
+ response_type?: AuthorizationResponseType | undefined;
3788
+ response_mode?: AuthorizationResponseMode | undefined;
3789
+ redirect_uri?: string | undefined;
3790
+ audience?: string | undefined;
3791
+ state?: string | undefined;
3792
+ nonce?: string | undefined;
3793
+ scope?: string | undefined;
3794
+ code_challenge_method?: CodeChallengeMethod | undefined;
3795
+ code_challenge?: string | undefined;
3796
+ };
3797
+ send: "code" | "link";
3798
+ user_id?: string | undefined;
3799
+ used_at?: string | undefined;
3800
+ ip?: string | undefined;
3801
+ }, {
3802
+ code: string;
3803
+ email: string;
3804
+ id: string;
3805
+ expires_at: string;
3806
+ authParams: {
3807
+ client_id: string;
3808
+ username?: string | undefined;
3809
+ vendor_id?: string | undefined;
3810
+ response_type?: AuthorizationResponseType | undefined;
3811
+ response_mode?: AuthorizationResponseMode | undefined;
3812
+ redirect_uri?: string | undefined;
3813
+ audience?: string | undefined;
3814
+ state?: string | undefined;
3815
+ nonce?: string | undefined;
3816
+ scope?: string | undefined;
3817
+ code_challenge_method?: CodeChallengeMethod | undefined;
3818
+ code_challenge?: string | undefined;
3819
+ };
3820
+ send: "code" | "link";
3821
+ user_id?: string | undefined;
3822
+ used_at?: string | undefined;
3823
+ ip?: string | undefined;
3824
+ }>;
3825
+ export type OTPInsert = z.infer<typeof otpInsertSchema>;
3826
+ export declare const otpSchema: z.ZodObject<{
3827
+ id: z.ZodString;
3828
+ email: z.ZodString;
3829
+ code: z.ZodString;
3830
+ ip: z.ZodOptional<z.ZodString>;
3831
+ send: z.ZodEnum<[
3832
+ "code",
3833
+ "link"
3834
+ ]>;
3835
+ authParams: z.ZodObject<{
3836
+ client_id: z.ZodString;
3837
+ vendor_id: z.ZodOptional<z.ZodString>;
3838
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
3839
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
3840
+ redirect_uri: z.ZodOptional<z.ZodString>;
3841
+ audience: z.ZodOptional<z.ZodString>;
3842
+ state: z.ZodOptional<z.ZodString>;
3843
+ nonce: z.ZodOptional<z.ZodString>;
3844
+ scope: z.ZodOptional<z.ZodString>;
3845
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
3846
+ code_challenge: z.ZodOptional<z.ZodString>;
3847
+ username: z.ZodOptional<z.ZodString>;
3848
+ }, "strip", z.ZodTypeAny, {
3849
+ client_id: string;
3850
+ username?: string | undefined;
3851
+ vendor_id?: string | undefined;
3852
+ response_type?: AuthorizationResponseType | undefined;
3853
+ response_mode?: AuthorizationResponseMode | undefined;
3854
+ redirect_uri?: string | undefined;
3855
+ audience?: string | undefined;
3856
+ state?: string | undefined;
3857
+ nonce?: string | undefined;
3858
+ scope?: string | undefined;
3859
+ code_challenge_method?: CodeChallengeMethod | undefined;
3860
+ code_challenge?: string | undefined;
3861
+ }, {
3862
+ client_id: string;
3863
+ username?: string | undefined;
3864
+ vendor_id?: string | undefined;
3865
+ response_type?: AuthorizationResponseType | undefined;
3866
+ response_mode?: AuthorizationResponseMode | undefined;
3867
+ redirect_uri?: string | undefined;
3868
+ audience?: string | undefined;
3869
+ state?: string | undefined;
3870
+ nonce?: string | undefined;
3871
+ scope?: string | undefined;
3872
+ code_challenge_method?: CodeChallengeMethod | undefined;
3873
+ code_challenge?: string | undefined;
3874
+ }>;
3875
+ expires_at: z.ZodString;
3876
+ used_at: z.ZodOptional<z.ZodString>;
3877
+ user_id: z.ZodOptional<z.ZodString>;
3878
+ created_at: z.ZodString;
3879
+ }, "strip", z.ZodTypeAny, {
3880
+ code: string;
3881
+ created_at: string;
3882
+ email: string;
3883
+ id: string;
3884
+ expires_at: string;
3885
+ authParams: {
3886
+ client_id: string;
3887
+ username?: string | undefined;
3888
+ vendor_id?: string | undefined;
3889
+ response_type?: AuthorizationResponseType | undefined;
3890
+ response_mode?: AuthorizationResponseMode | undefined;
3891
+ redirect_uri?: string | undefined;
3892
+ audience?: string | undefined;
3893
+ state?: string | undefined;
3894
+ nonce?: string | undefined;
3895
+ scope?: string | undefined;
3896
+ code_challenge_method?: CodeChallengeMethod | undefined;
3897
+ code_challenge?: string | undefined;
3898
+ };
3899
+ send: "code" | "link";
3900
+ user_id?: string | undefined;
3901
+ used_at?: string | undefined;
3902
+ ip?: string | undefined;
3903
+ }, {
3904
+ code: string;
3905
+ created_at: string;
3906
+ email: string;
3907
+ id: string;
3908
+ expires_at: string;
3909
+ authParams: {
3910
+ client_id: string;
3911
+ username?: string | undefined;
3912
+ vendor_id?: string | undefined;
3913
+ response_type?: AuthorizationResponseType | undefined;
3914
+ response_mode?: AuthorizationResponseMode | undefined;
3915
+ redirect_uri?: string | undefined;
3916
+ audience?: string | undefined;
3917
+ state?: string | undefined;
3918
+ nonce?: string | undefined;
3919
+ scope?: string | undefined;
3920
+ code_challenge_method?: CodeChallengeMethod | undefined;
3921
+ code_challenge?: string | undefined;
3922
+ };
3923
+ send: "code" | "link";
3924
+ user_id?: string | undefined;
3925
+ used_at?: string | undefined;
3926
+ ip?: string | undefined;
3927
+ }>;
3928
+ export type OTP = z.infer<typeof otpSchema>;
3929
+ export declare const authenticationCodeInsertSchema: z.ZodObject<{
3930
+ authParams: z.ZodObject<{
3931
+ client_id: z.ZodString;
3932
+ vendor_id: z.ZodOptional<z.ZodString>;
3933
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
3934
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
3935
+ redirect_uri: z.ZodOptional<z.ZodString>;
3936
+ audience: z.ZodOptional<z.ZodString>;
3937
+ state: z.ZodOptional<z.ZodString>;
3938
+ nonce: z.ZodOptional<z.ZodString>;
3939
+ scope: z.ZodOptional<z.ZodString>;
3940
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
3941
+ code_challenge: z.ZodOptional<z.ZodString>;
3942
+ username: z.ZodOptional<z.ZodString>;
3943
+ }, "strip", z.ZodTypeAny, {
3944
+ client_id: string;
3945
+ username?: string | undefined;
3946
+ vendor_id?: string | undefined;
3947
+ response_type?: AuthorizationResponseType | undefined;
3948
+ response_mode?: AuthorizationResponseMode | undefined;
3949
+ redirect_uri?: string | undefined;
3950
+ audience?: string | undefined;
3951
+ state?: string | undefined;
3952
+ nonce?: string | undefined;
3953
+ scope?: string | undefined;
3954
+ code_challenge_method?: CodeChallengeMethod | undefined;
3955
+ code_challenge?: string | undefined;
3956
+ }, {
3957
+ client_id: string;
3958
+ username?: string | undefined;
3959
+ vendor_id?: string | undefined;
3960
+ response_type?: AuthorizationResponseType | undefined;
3961
+ response_mode?: AuthorizationResponseMode | undefined;
3962
+ redirect_uri?: string | undefined;
3963
+ audience?: string | undefined;
3964
+ state?: string | undefined;
3965
+ nonce?: string | undefined;
3966
+ scope?: string | undefined;
3967
+ code_challenge_method?: CodeChallengeMethod | undefined;
3968
+ code_challenge?: string | undefined;
3969
+ }>;
3970
+ code: z.ZodString;
3971
+ user_id: z.ZodString;
3972
+ created_at: z.ZodString;
3973
+ expires_at: z.ZodString;
3974
+ used_at: z.ZodOptional<z.ZodString>;
3975
+ }, "strip", z.ZodTypeAny, {
3976
+ code: string;
3977
+ created_at: string;
3978
+ user_id: string;
3979
+ expires_at: string;
3980
+ authParams: {
3981
+ client_id: string;
3982
+ username?: string | undefined;
3983
+ vendor_id?: string | undefined;
3984
+ response_type?: AuthorizationResponseType | undefined;
3985
+ response_mode?: AuthorizationResponseMode | undefined;
3986
+ redirect_uri?: string | undefined;
3987
+ audience?: string | undefined;
3988
+ state?: string | undefined;
3989
+ nonce?: string | undefined;
3990
+ scope?: string | undefined;
3991
+ code_challenge_method?: CodeChallengeMethod | undefined;
3992
+ code_challenge?: string | undefined;
3993
+ };
3994
+ used_at?: string | undefined;
3995
+ }, {
3996
+ code: string;
3997
+ created_at: string;
3998
+ user_id: string;
3999
+ expires_at: string;
4000
+ authParams: {
4001
+ client_id: string;
4002
+ username?: string | undefined;
4003
+ vendor_id?: string | undefined;
4004
+ response_type?: AuthorizationResponseType | undefined;
4005
+ response_mode?: AuthorizationResponseMode | undefined;
4006
+ redirect_uri?: string | undefined;
4007
+ audience?: string | undefined;
4008
+ state?: string | undefined;
4009
+ nonce?: string | undefined;
4010
+ scope?: string | undefined;
4011
+ code_challenge_method?: CodeChallengeMethod | undefined;
4012
+ code_challenge?: string | undefined;
4013
+ };
4014
+ used_at?: string | undefined;
4015
+ }>;
4016
+ export type AuthenticationCodeInsert = z.infer<typeof authenticationCodeInsertSchema>;
4017
+ export declare const authenticationCodeSchema: z.ZodObject<{
4018
+ created_at: z.ZodString;
4019
+ authParams: z.ZodObject<{
4020
+ client_id: z.ZodString;
4021
+ vendor_id: z.ZodOptional<z.ZodString>;
4022
+ response_type: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseType>>;
4023
+ response_mode: z.ZodOptional<z.ZodNativeEnum<typeof AuthorizationResponseMode>>;
4024
+ redirect_uri: z.ZodOptional<z.ZodString>;
4025
+ audience: z.ZodOptional<z.ZodString>;
4026
+ state: z.ZodOptional<z.ZodString>;
4027
+ nonce: z.ZodOptional<z.ZodString>;
4028
+ scope: z.ZodOptional<z.ZodString>;
4029
+ code_challenge_method: z.ZodOptional<z.ZodNativeEnum<typeof CodeChallengeMethod>>;
4030
+ code_challenge: z.ZodOptional<z.ZodString>;
4031
+ username: z.ZodOptional<z.ZodString>;
4032
+ }, "strip", z.ZodTypeAny, {
4033
+ client_id: string;
4034
+ username?: string | undefined;
4035
+ vendor_id?: string | undefined;
4036
+ response_type?: AuthorizationResponseType | undefined;
4037
+ response_mode?: AuthorizationResponseMode | undefined;
4038
+ redirect_uri?: string | undefined;
4039
+ audience?: string | undefined;
4040
+ state?: string | undefined;
4041
+ nonce?: string | undefined;
4042
+ scope?: string | undefined;
4043
+ code_challenge_method?: CodeChallengeMethod | undefined;
4044
+ code_challenge?: string | undefined;
3718
4045
  }, {
3719
- logo_url: string;
3720
- header_text_alignment: "center";
3721
- logo_height: number;
3722
- logo_position: "center";
3723
- social_buttons_layout: "bottom";
4046
+ client_id: string;
4047
+ username?: string | undefined;
4048
+ vendor_id?: string | undefined;
4049
+ response_type?: AuthorizationResponseType | undefined;
4050
+ response_mode?: AuthorizationResponseMode | undefined;
4051
+ redirect_uri?: string | undefined;
4052
+ audience?: string | undefined;
4053
+ state?: string | undefined;
4054
+ nonce?: string | undefined;
4055
+ scope?: string | undefined;
4056
+ code_challenge_method?: CodeChallengeMethod | undefined;
4057
+ code_challenge?: string | undefined;
3724
4058
  }>;
3725
- }, {
3726
- themeId: z.ZodString;
3727
- }>, "strip", z.ZodTypeAny, {
3728
- page_background: {
3729
- background_color: string;
3730
- background_image_url: string;
3731
- page_layout: "center";
3732
- };
3733
- colors: {
3734
- base_focus_color: string;
3735
- base_hover_color: string;
3736
- body_text: string;
3737
- captcha_widget_theme: "auto";
3738
- error: string;
3739
- header: string;
3740
- icons: string;
3741
- input_background: string;
3742
- input_border: string;
3743
- input_filled_text: string;
3744
- input_labels_placeholders: string;
3745
- links_focused_components: string;
3746
- primary_button: string;
3747
- primary_button_label: string;
3748
- secondary_button_border: string;
3749
- secondary_button_label: string;
3750
- success: string;
3751
- widget_background: string;
3752
- widget_border: string;
3753
- };
3754
- borders: {
3755
- button_border_radius: number;
3756
- button_border_weight: number;
3757
- buttons_style: "pill";
3758
- input_border_radius: number;
3759
- input_border_weight: number;
3760
- inputs_style: "pill";
3761
- show_widget_shadow: boolean;
3762
- widget_border_weight: number;
3763
- widget_corner_radius: number;
3764
- };
3765
- displayName: string;
3766
- fonts: {
3767
- title: {
3768
- bold: boolean;
3769
- size: number;
3770
- };
3771
- body_text: {
3772
- bold: boolean;
3773
- size: number;
3774
- };
3775
- buttons_text: {
3776
- bold: boolean;
3777
- size: number;
3778
- };
3779
- font_url: string;
3780
- input_labels: {
3781
- bold: boolean;
3782
- size: number;
3783
- };
3784
- links: {
3785
- bold: boolean;
3786
- size: number;
3787
- };
3788
- links_style: "normal";
3789
- reference_text_size: number;
3790
- subtitle: {
3791
- bold: boolean;
3792
- size: number;
3793
- };
3794
- };
3795
- widget: {
3796
- logo_url: string;
3797
- header_text_alignment: "center";
3798
- logo_height: number;
3799
- logo_position: "center";
3800
- social_buttons_layout: "bottom";
4059
+ code: z.ZodString;
4060
+ user_id: z.ZodString;
4061
+ expires_at: z.ZodString;
4062
+ used_at: z.ZodOptional<z.ZodString>;
4063
+ }, "strip", z.ZodTypeAny, {
4064
+ code: string;
4065
+ created_at: string;
4066
+ user_id: string;
4067
+ expires_at: string;
4068
+ authParams: {
4069
+ client_id: string;
4070
+ username?: string | undefined;
4071
+ vendor_id?: string | undefined;
4072
+ response_type?: AuthorizationResponseType | undefined;
4073
+ response_mode?: AuthorizationResponseMode | undefined;
4074
+ redirect_uri?: string | undefined;
4075
+ audience?: string | undefined;
4076
+ state?: string | undefined;
4077
+ nonce?: string | undefined;
4078
+ scope?: string | undefined;
4079
+ code_challenge_method?: CodeChallengeMethod | undefined;
4080
+ code_challenge?: string | undefined;
3801
4081
  };
3802
- themeId: string;
4082
+ used_at?: string | undefined;
3803
4083
  }, {
3804
- page_background: {
3805
- background_color: string;
3806
- background_image_url: string;
3807
- page_layout: "center";
3808
- };
3809
- colors: {
3810
- base_focus_color: string;
3811
- base_hover_color: string;
3812
- body_text: string;
3813
- captcha_widget_theme: "auto";
3814
- error: string;
3815
- header: string;
3816
- icons: string;
3817
- input_background: string;
3818
- input_border: string;
3819
- input_filled_text: string;
3820
- input_labels_placeholders: string;
3821
- links_focused_components: string;
3822
- primary_button: string;
3823
- primary_button_label: string;
3824
- secondary_button_border: string;
3825
- secondary_button_label: string;
3826
- success: string;
3827
- widget_background: string;
3828
- widget_border: string;
3829
- };
3830
- borders: {
3831
- button_border_radius: number;
3832
- button_border_weight: number;
3833
- buttons_style: "pill";
3834
- input_border_radius: number;
3835
- input_border_weight: number;
3836
- inputs_style: "pill";
3837
- show_widget_shadow: boolean;
3838
- widget_border_weight: number;
3839
- widget_corner_radius: number;
3840
- };
3841
- displayName: string;
3842
- fonts: {
3843
- title: {
3844
- bold: boolean;
3845
- size: number;
3846
- };
3847
- body_text: {
3848
- bold: boolean;
3849
- size: number;
3850
- };
3851
- buttons_text: {
3852
- bold: boolean;
3853
- size: number;
3854
- };
3855
- font_url: string;
3856
- input_labels: {
3857
- bold: boolean;
3858
- size: number;
3859
- };
3860
- links: {
3861
- bold: boolean;
3862
- size: number;
3863
- };
3864
- links_style: "normal";
3865
- reference_text_size: number;
3866
- subtitle: {
3867
- bold: boolean;
3868
- size: number;
3869
- };
3870
- };
3871
- widget: {
3872
- logo_url: string;
3873
- header_text_alignment: "center";
3874
- logo_height: number;
3875
- logo_position: "center";
3876
- social_buttons_layout: "bottom";
4084
+ code: string;
4085
+ created_at: string;
4086
+ user_id: string;
4087
+ expires_at: string;
4088
+ authParams: {
4089
+ client_id: string;
4090
+ username?: string | undefined;
4091
+ vendor_id?: string | undefined;
4092
+ response_type?: AuthorizationResponseType | undefined;
4093
+ response_mode?: AuthorizationResponseMode | undefined;
4094
+ redirect_uri?: string | undefined;
4095
+ audience?: string | undefined;
4096
+ state?: string | undefined;
4097
+ nonce?: string | undefined;
4098
+ scope?: string | undefined;
4099
+ code_challenge_method?: CodeChallengeMethod | undefined;
4100
+ code_challenge?: string | undefined;
3877
4101
  };
3878
- themeId: string;
4102
+ used_at?: string | undefined;
3879
4103
  }>;
3880
- export type Theme = z.infer<typeof themeSchema>;
4104
+ export type AuthenticationCode = z.infer<typeof authenticationCodeSchema>;
3881
4105
  export declare function parseUserId(user_id: string): {
3882
4106
  connection: string;
3883
4107
  id: string;
3884
4108
  };
4109
+ export interface ListParams {
4110
+ page: number;
4111
+ per_page: number;
4112
+ include_totals: boolean;
4113
+ q?: string;
4114
+ sort?: {
4115
+ sort_by: string;
4116
+ sort_order: "asc" | "desc";
4117
+ };
4118
+ }
4119
+ export interface ListCodesResponse extends Totals {
4120
+ codes: Code[];
4121
+ }
3885
4122
  export interface CodesAdapter {
3886
- create: (tenant_id: string, authCode: Code) => Promise<void>;
3887
- list: (tenant_id: string, user_id: string) => Promise<Code[]>;
4123
+ create: (tenant_id: string, authCode: Code) => Promise<Code>;
4124
+ get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
4125
+ list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
4126
+ remove: (tenant_id: string, code: string) => Promise<boolean>;
3888
4127
  }
3889
4128
  export interface OTPAdapter {
3890
4129
  create: (tenant_id: string, authCode: OTPInsert) => Promise<void>;
@@ -3896,16 +4135,6 @@ export interface PasswordsAdapter {
3896
4135
  update: (tenant_id: string, params: PasswordInsert) => Promise<boolean>;
3897
4136
  get: (tenant_id: string, user_id: string) => Promise<Password>;
3898
4137
  }
3899
- export interface ListParams {
3900
- page: number;
3901
- per_page: number;
3902
- include_totals: boolean;
3903
- q?: string;
3904
- sort?: {
3905
- sort_by: string;
3906
- sort_order: "asc" | "desc";
3907
- };
3908
- }
3909
4138
  export interface ListSesssionsResponse extends Totals {
3910
4139
  sessions: Session[];
3911
4140
  }
@@ -4033,6 +4262,12 @@ export interface ThemesAdapter {
4033
4262
  get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
4034
4263
  update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
4035
4264
  }
4265
+ export interface LoginsAdapter {
4266
+ create: (tenant_id: string, session: LoginInsert) => Promise<Login>;
4267
+ update: (tenant_id: string, login_id: string, session: Partial<Login>) => Promise<boolean>;
4268
+ get: (tenant_id: string, login_id: string) => Promise<Login | null>;
4269
+ remove: (tenant_id: string, login_id: string) => Promise<boolean>;
4270
+ }
4036
4271
  export interface DataAdapters {
4037
4272
  applications: ApplicationsAdapter;
4038
4273
  authenticationCodes: AuthenticationCodesAdapter;
@@ -4043,6 +4278,7 @@ export interface DataAdapters {
4043
4278
  domains: DomainsAdapter;
4044
4279
  hooks: HooksAdapter;
4045
4280
  keys: KeysAdapter;
4281
+ login: LoginsAdapter;
4046
4282
  logs: LogsDataAdapter;
4047
4283
  OTP: OTPAdapter;
4048
4284
  passwords: PasswordsAdapter;