@authhero/adapter-interfaces 0.8.0 → 0.9.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.
@@ -1577,6 +1577,108 @@ export declare const hookSchema: z.ZodObject<z.objectUtil.extendShape<{
1577
1577
  enabled?: boolean | undefined;
1578
1578
  }>;
1579
1579
  export type Hook = z.infer<typeof hookSchema>;
1580
+ export declare const profileDataSchema: z.ZodObject<{
1581
+ email: z.ZodOptional<z.ZodString>;
1582
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1583
+ name: z.ZodOptional<z.ZodString>;
1584
+ username: z.ZodOptional<z.ZodString>;
1585
+ given_name: z.ZodOptional<z.ZodString>;
1586
+ phone_number: z.ZodOptional<z.ZodString>;
1587
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1588
+ family_name: z.ZodOptional<z.ZodString>;
1589
+ }, "strip", z.ZodAny, z.objectOutputType<{
1590
+ email: z.ZodOptional<z.ZodString>;
1591
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1592
+ name: z.ZodOptional<z.ZodString>;
1593
+ username: z.ZodOptional<z.ZodString>;
1594
+ given_name: z.ZodOptional<z.ZodString>;
1595
+ phone_number: z.ZodOptional<z.ZodString>;
1596
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1597
+ family_name: z.ZodOptional<z.ZodString>;
1598
+ }, z.ZodAny, "strip">, z.objectInputType<{
1599
+ email: z.ZodOptional<z.ZodString>;
1600
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1601
+ name: z.ZodOptional<z.ZodString>;
1602
+ username: z.ZodOptional<z.ZodString>;
1603
+ given_name: z.ZodOptional<z.ZodString>;
1604
+ phone_number: z.ZodOptional<z.ZodString>;
1605
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1606
+ family_name: z.ZodOptional<z.ZodString>;
1607
+ }, z.ZodAny, "strip">>;
1608
+ export declare const identitySchema: z.ZodObject<{
1609
+ connection: z.ZodString;
1610
+ user_id: z.ZodString;
1611
+ provider: z.ZodString;
1612
+ isSocial: z.ZodBoolean;
1613
+ access_token: z.ZodOptional<z.ZodString>;
1614
+ access_token_secret: z.ZodOptional<z.ZodString>;
1615
+ refresh_token: z.ZodOptional<z.ZodString>;
1616
+ profileData: z.ZodOptional<z.ZodObject<{
1617
+ email: z.ZodOptional<z.ZodString>;
1618
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1619
+ name: z.ZodOptional<z.ZodString>;
1620
+ username: z.ZodOptional<z.ZodString>;
1621
+ given_name: z.ZodOptional<z.ZodString>;
1622
+ phone_number: z.ZodOptional<z.ZodString>;
1623
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1624
+ family_name: z.ZodOptional<z.ZodString>;
1625
+ }, "strip", z.ZodAny, z.objectOutputType<{
1626
+ email: z.ZodOptional<z.ZodString>;
1627
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1628
+ name: z.ZodOptional<z.ZodString>;
1629
+ username: z.ZodOptional<z.ZodString>;
1630
+ given_name: z.ZodOptional<z.ZodString>;
1631
+ phone_number: z.ZodOptional<z.ZodString>;
1632
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1633
+ family_name: z.ZodOptional<z.ZodString>;
1634
+ }, z.ZodAny, "strip">, z.objectInputType<{
1635
+ email: z.ZodOptional<z.ZodString>;
1636
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1637
+ name: z.ZodOptional<z.ZodString>;
1638
+ username: z.ZodOptional<z.ZodString>;
1639
+ given_name: z.ZodOptional<z.ZodString>;
1640
+ phone_number: z.ZodOptional<z.ZodString>;
1641
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1642
+ family_name: z.ZodOptional<z.ZodString>;
1643
+ }, z.ZodAny, "strip">>>;
1644
+ }, "strip", z.ZodTypeAny, {
1645
+ connection: string;
1646
+ user_id: string;
1647
+ provider: string;
1648
+ isSocial: boolean;
1649
+ access_token?: string | undefined;
1650
+ access_token_secret?: string | undefined;
1651
+ refresh_token?: string | undefined;
1652
+ profileData?: z.objectOutputType<{
1653
+ email: z.ZodOptional<z.ZodString>;
1654
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1655
+ name: z.ZodOptional<z.ZodString>;
1656
+ username: z.ZodOptional<z.ZodString>;
1657
+ given_name: z.ZodOptional<z.ZodString>;
1658
+ phone_number: z.ZodOptional<z.ZodString>;
1659
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1660
+ family_name: z.ZodOptional<z.ZodString>;
1661
+ }, z.ZodAny, "strip"> | undefined;
1662
+ }, {
1663
+ connection: string;
1664
+ user_id: string;
1665
+ provider: string;
1666
+ isSocial: boolean;
1667
+ access_token?: string | undefined;
1668
+ access_token_secret?: string | undefined;
1669
+ refresh_token?: string | undefined;
1670
+ profileData?: z.objectInputType<{
1671
+ email: z.ZodOptional<z.ZodString>;
1672
+ email_verified: z.ZodOptional<z.ZodBoolean>;
1673
+ name: z.ZodOptional<z.ZodString>;
1674
+ username: z.ZodOptional<z.ZodString>;
1675
+ given_name: z.ZodOptional<z.ZodString>;
1676
+ phone_number: z.ZodOptional<z.ZodString>;
1677
+ phone_verified: z.ZodOptional<z.ZodBoolean>;
1678
+ family_name: z.ZodOptional<z.ZodString>;
1679
+ }, z.ZodAny, "strip"> | undefined;
1680
+ }>;
1681
+ export type Identity = z.infer<typeof identitySchema>;
1580
1682
  export declare const jwksSchema: z.ZodObject<{
1581
1683
  alg: z.ZodString;
1582
1684
  e: z.ZodString;
@@ -1711,6 +1813,188 @@ export interface LoginState {
1711
1813
  state: string;
1712
1814
  errorMessage?: string;
1713
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>;
1857
+ }, "strip", z.ZodTypeAny, {
1858
+ node?: string | undefined;
1859
+ }, {
1860
+ node?: string | undefined;
1861
+ }>>;
1862
+ }, "strip", z.ZodTypeAny, {
1863
+ name: string;
1864
+ version: string;
1865
+ env?: {
1866
+ node?: string | undefined;
1867
+ } | undefined;
1868
+ }, {
1869
+ name: string;
1870
+ version: string;
1871
+ env?: {
1872
+ node?: string | undefined;
1873
+ } | undefined;
1874
+ }>;
1875
+ export declare const logSchema: z.ZodObject<{
1876
+ type: z.ZodEnum<[
1877
+ "sapi",
1878
+ "ssa",
1879
+ "fsa",
1880
+ "ss",
1881
+ "ssa",
1882
+ "fs",
1883
+ "s",
1884
+ "f",
1885
+ "fp",
1886
+ "slo",
1887
+ "scoa",
1888
+ "fcoa",
1889
+ "seccft",
1890
+ "cls",
1891
+ "seacft",
1892
+ "serft"
1893
+ ]>;
1894
+ date: z.ZodString;
1895
+ description: z.ZodOptional<z.ZodString>;
1896
+ log_id: z.ZodOptional<z.ZodString>;
1897
+ _id: z.ZodOptional<z.ZodString>;
1898
+ ip: z.ZodString;
1899
+ user_agent: z.ZodString;
1900
+ details: z.ZodOptional<z.ZodAny>;
1901
+ isMobile: z.ZodBoolean;
1902
+ user_id: z.ZodOptional<z.ZodString>;
1903
+ user_name: z.ZodOptional<z.ZodString>;
1904
+ connection: z.ZodOptional<z.ZodString>;
1905
+ connection_id: z.ZodOptional<z.ZodString>;
1906
+ client_id: z.ZodOptional<z.ZodString>;
1907
+ client_name: z.ZodOptional<z.ZodString>;
1908
+ audience: z.ZodOptional<z.ZodString>;
1909
+ scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1910
+ strategy: z.ZodOptional<z.ZodString>;
1911
+ strategy_type: z.ZodOptional<z.ZodString>;
1912
+ hostname: z.ZodOptional<z.ZodString>;
1913
+ auth0_client: z.ZodOptional<z.ZodObject<{
1914
+ name: z.ZodString;
1915
+ version: z.ZodString;
1916
+ env: z.ZodOptional<z.ZodObject<{
1917
+ node: z.ZodOptional<z.ZodString>;
1918
+ }, "strip", z.ZodTypeAny, {
1919
+ node?: string | undefined;
1920
+ }, {
1921
+ node?: string | undefined;
1922
+ }>>;
1923
+ }, "strip", z.ZodTypeAny, {
1924
+ name: string;
1925
+ version: string;
1926
+ env?: {
1927
+ node?: string | undefined;
1928
+ } | undefined;
1929
+ }, {
1930
+ name: string;
1931
+ version: string;
1932
+ env?: {
1933
+ node?: string | undefined;
1934
+ } | undefined;
1935
+ }>>;
1936
+ }, "strip", z.ZodTypeAny, {
1937
+ type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
1938
+ date: string;
1939
+ ip: string;
1940
+ user_agent: string;
1941
+ isMobile: boolean;
1942
+ description?: string | undefined;
1943
+ connection?: string | undefined;
1944
+ user_id?: string | undefined;
1945
+ client_id?: string | undefined;
1946
+ audience?: string | undefined;
1947
+ scope?: string[] | undefined;
1948
+ log_id?: string | undefined;
1949
+ _id?: string | undefined;
1950
+ details?: any;
1951
+ user_name?: string | undefined;
1952
+ connection_id?: string | undefined;
1953
+ client_name?: string | undefined;
1954
+ strategy?: string | undefined;
1955
+ strategy_type?: string | undefined;
1956
+ hostname?: string | undefined;
1957
+ auth0_client?: {
1958
+ name: string;
1959
+ version: string;
1960
+ env?: {
1961
+ node?: string | undefined;
1962
+ } | undefined;
1963
+ } | undefined;
1964
+ }, {
1965
+ type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
1966
+ date: string;
1967
+ ip: string;
1968
+ user_agent: string;
1969
+ isMobile: boolean;
1970
+ description?: string | undefined;
1971
+ connection?: string | undefined;
1972
+ user_id?: string | undefined;
1973
+ client_id?: string | undefined;
1974
+ audience?: string | undefined;
1975
+ scope?: string[] | undefined;
1976
+ log_id?: string | undefined;
1977
+ _id?: string | undefined;
1978
+ details?: any;
1979
+ user_name?: string | undefined;
1980
+ connection_id?: string | undefined;
1981
+ client_name?: string | undefined;
1982
+ strategy?: string | undefined;
1983
+ strategy_type?: string | undefined;
1984
+ hostname?: string | undefined;
1985
+ auth0_client?: {
1986
+ name: string;
1987
+ version: string;
1988
+ env?: {
1989
+ node?: string | undefined;
1990
+ } | undefined;
1991
+ } | undefined;
1992
+ }>;
1993
+ export type Log = z.infer<typeof logSchema>;
1994
+ export type LogsResponse = Log & {
1995
+ log_id: string;
1996
+ _id: string;
1997
+ };
1714
1998
  export declare const otpInsertSchema: z.ZodObject<{
1715
1999
  id: z.ZodString;
1716
2000
  email: z.ZodString;
@@ -2489,290 +2773,1111 @@ export declare const universalLoginSessionSchema: z.ZodObject<{
2489
2773
  auth0Client?: string | undefined;
2490
2774
  }>;
2491
2775
  export type UniversalLoginSession = z.infer<typeof universalLoginSessionSchema>;
2492
- export declare enum LogTypes {
2493
- SUCCESS_API_OPERATION = "sapi",
2494
- SUCCESS_SILENT_AUTH = "ssa",
2495
- FAILED_SILENT_AUTH = "fsa",
2496
- SUCCESS_SIGNUP = "ss",
2497
- FAILED_SIGNUP = "fs",
2498
- SUCCESS_LOGIN = "s",
2499
- FAILED_LOGIN = "f",
2500
- FAILED_LOGIN_INCORRECT_PASSWORD = "fp",
2501
- SUCCESS_LOGOUT = "slo",
2502
- SUCCESS_CROSS_ORIGIN_AUTHENTICATION = "scoa",
2503
- FAILED_CROSS_ORIGIN_AUTHENTICATION = "fcoa",
2504
- SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN = "seacft",
2505
- SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN = "serft",
2506
- CODE_LINK_SENT = "cls",
2507
- NOT_IMPLEMENTED_1 = "seccft"
2508
- }
2509
- declare const LogType: z.ZodEnum<[
2510
- "sapi",
2511
- "ssa",
2512
- "fsa",
2513
- "ss",
2514
- "ssa",
2515
- "fs",
2516
- "s",
2517
- "f",
2518
- "fp",
2519
- "slo",
2520
- "scoa",
2521
- "fcoa",
2522
- "seccft",
2523
- "cls",
2524
- "seacft",
2525
- "serft"
2526
- ]>;
2527
- type LogType$1 = z.infer<typeof LogType>;
2528
- export declare const Auth0Client: z.ZodObject<{
2529
- name: z.ZodString;
2530
- version: z.ZodString;
2531
- env: z.ZodOptional<z.ZodObject<{
2532
- node: z.ZodOptional<z.ZodString>;
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;
2800
+ }, {
2801
+ button_border_radius: number;
2802
+ button_border_weight: number;
2803
+ buttons_style: "pill";
2804
+ input_border_radius: number;
2805
+ input_border_weight: number;
2806
+ inputs_style: "pill";
2807
+ show_widget_shadow: boolean;
2808
+ widget_border_weight: number;
2809
+ widget_corner_radius: number;
2810
+ }>;
2811
+ export declare const colorsSchema: z.ZodObject<{
2812
+ base_focus_color: z.ZodString;
2813
+ base_hover_color: z.ZodString;
2814
+ body_text: z.ZodString;
2815
+ captcha_widget_theme: z.ZodEnum<[
2816
+ "auto"
2817
+ ]>;
2818
+ error: z.ZodString;
2819
+ header: z.ZodString;
2820
+ icons: z.ZodString;
2821
+ input_background: z.ZodString;
2822
+ input_border: z.ZodString;
2823
+ input_filled_text: z.ZodString;
2824
+ input_labels_placeholders: z.ZodString;
2825
+ links_focused_components: z.ZodString;
2826
+ primary_button: z.ZodString;
2827
+ primary_button_label: z.ZodString;
2828
+ secondary_button_border: z.ZodString;
2829
+ secondary_button_label: z.ZodString;
2830
+ success: z.ZodString;
2831
+ widget_background: z.ZodString;
2832
+ widget_border: z.ZodString;
2833
+ }, "strip", z.ZodTypeAny, {
2834
+ base_focus_color: string;
2835
+ base_hover_color: string;
2836
+ body_text: string;
2837
+ captcha_widget_theme: "auto";
2838
+ error: string;
2839
+ header: string;
2840
+ icons: string;
2841
+ input_background: string;
2842
+ input_border: string;
2843
+ input_filled_text: string;
2844
+ input_labels_placeholders: string;
2845
+ links_focused_components: string;
2846
+ primary_button: string;
2847
+ primary_button_label: string;
2848
+ secondary_button_border: string;
2849
+ secondary_button_label: string;
2850
+ success: string;
2851
+ widget_background: string;
2852
+ widget_border: string;
2853
+ }, {
2854
+ base_focus_color: string;
2855
+ base_hover_color: string;
2856
+ body_text: string;
2857
+ captcha_widget_theme: "auto";
2858
+ error: string;
2859
+ header: string;
2860
+ icons: string;
2861
+ input_background: string;
2862
+ input_border: string;
2863
+ input_filled_text: string;
2864
+ input_labels_placeholders: string;
2865
+ links_focused_components: string;
2866
+ primary_button: string;
2867
+ primary_button_label: string;
2868
+ secondary_button_border: string;
2869
+ secondary_button_label: string;
2870
+ success: string;
2871
+ widget_background: string;
2872
+ widget_border: string;
2873
+ }>;
2874
+ export declare const fontDetailsSchema: z.ZodObject<{
2875
+ bold: z.ZodBoolean;
2876
+ size: z.ZodNumber;
2877
+ }, "strip", z.ZodTypeAny, {
2878
+ bold: boolean;
2879
+ size: number;
2880
+ }, {
2881
+ bold: boolean;
2882
+ size: number;
2883
+ }>;
2884
+ export declare const fontsSchema: z.ZodObject<{
2885
+ body_text: z.ZodObject<{
2886
+ bold: z.ZodBoolean;
2887
+ size: z.ZodNumber;
2533
2888
  }, "strip", z.ZodTypeAny, {
2534
- node?: string | undefined;
2889
+ bold: boolean;
2890
+ size: number;
2535
2891
  }, {
2536
- node?: string | undefined;
2537
- }>>;
2892
+ bold: boolean;
2893
+ size: number;
2894
+ }>;
2895
+ buttons_text: z.ZodObject<{
2896
+ bold: z.ZodBoolean;
2897
+ size: z.ZodNumber;
2898
+ }, "strip", z.ZodTypeAny, {
2899
+ bold: boolean;
2900
+ size: number;
2901
+ }, {
2902
+ bold: boolean;
2903
+ size: number;
2904
+ }>;
2905
+ font_url: z.ZodString;
2906
+ input_labels: z.ZodObject<{
2907
+ bold: z.ZodBoolean;
2908
+ size: z.ZodNumber;
2909
+ }, "strip", z.ZodTypeAny, {
2910
+ bold: boolean;
2911
+ size: number;
2912
+ }, {
2913
+ bold: boolean;
2914
+ size: number;
2915
+ }>;
2916
+ links: z.ZodObject<{
2917
+ bold: z.ZodBoolean;
2918
+ size: z.ZodNumber;
2919
+ }, "strip", z.ZodTypeAny, {
2920
+ bold: boolean;
2921
+ size: number;
2922
+ }, {
2923
+ bold: boolean;
2924
+ size: number;
2925
+ }>;
2926
+ links_style: z.ZodEnum<[
2927
+ "normal"
2928
+ ]>;
2929
+ reference_text_size: z.ZodNumber;
2930
+ subtitle: z.ZodObject<{
2931
+ bold: z.ZodBoolean;
2932
+ size: z.ZodNumber;
2933
+ }, "strip", z.ZodTypeAny, {
2934
+ bold: boolean;
2935
+ size: number;
2936
+ }, {
2937
+ bold: boolean;
2938
+ size: number;
2939
+ }>;
2940
+ title: z.ZodObject<{
2941
+ bold: z.ZodBoolean;
2942
+ size: z.ZodNumber;
2943
+ }, "strip", z.ZodTypeAny, {
2944
+ bold: boolean;
2945
+ size: number;
2946
+ }, {
2947
+ bold: boolean;
2948
+ size: number;
2949
+ }>;
2538
2950
  }, "strip", z.ZodTypeAny, {
2539
- name: string;
2540
- version: string;
2541
- env?: {
2542
- node?: string | undefined;
2543
- } | undefined;
2951
+ title: {
2952
+ bold: boolean;
2953
+ size: number;
2954
+ };
2955
+ body_text: {
2956
+ bold: boolean;
2957
+ size: number;
2958
+ };
2959
+ buttons_text: {
2960
+ bold: boolean;
2961
+ size: number;
2962
+ };
2963
+ font_url: string;
2964
+ input_labels: {
2965
+ bold: boolean;
2966
+ size: number;
2967
+ };
2968
+ links: {
2969
+ bold: boolean;
2970
+ size: number;
2971
+ };
2972
+ links_style: "normal";
2973
+ reference_text_size: number;
2974
+ subtitle: {
2975
+ bold: boolean;
2976
+ size: number;
2977
+ };
2544
2978
  }, {
2545
- name: string;
2546
- version: string;
2547
- env?: {
2548
- node?: string | undefined;
2549
- } | undefined;
2979
+ title: {
2980
+ bold: boolean;
2981
+ size: number;
2982
+ };
2983
+ body_text: {
2984
+ bold: boolean;
2985
+ size: number;
2986
+ };
2987
+ buttons_text: {
2988
+ bold: boolean;
2989
+ size: number;
2990
+ };
2991
+ font_url: string;
2992
+ input_labels: {
2993
+ bold: boolean;
2994
+ size: number;
2995
+ };
2996
+ links: {
2997
+ bold: boolean;
2998
+ size: number;
2999
+ };
3000
+ links_style: "normal";
3001
+ reference_text_size: number;
3002
+ subtitle: {
3003
+ bold: boolean;
3004
+ size: number;
3005
+ };
2550
3006
  }>;
2551
- export declare const logSchema: z.ZodObject<{
2552
- type: z.ZodEnum<[
2553
- "sapi",
2554
- "ssa",
2555
- "fsa",
2556
- "ss",
2557
- "ssa",
2558
- "fs",
2559
- "s",
2560
- "f",
2561
- "fp",
2562
- "slo",
2563
- "scoa",
2564
- "fcoa",
2565
- "seccft",
2566
- "cls",
2567
- "seacft",
2568
- "serft"
3007
+ export declare const pageBackgroundSchema: z.ZodObject<{
3008
+ background_color: z.ZodString;
3009
+ background_image_url: z.ZodString;
3010
+ page_layout: z.ZodEnum<[
3011
+ "center"
2569
3012
  ]>;
2570
- date: z.ZodString;
2571
- description: z.ZodOptional<z.ZodString>;
2572
- log_id: z.ZodOptional<z.ZodString>;
2573
- _id: z.ZodOptional<z.ZodString>;
2574
- ip: z.ZodString;
2575
- user_agent: z.ZodString;
2576
- details: z.ZodOptional<z.ZodAny>;
2577
- isMobile: z.ZodBoolean;
2578
- user_id: z.ZodOptional<z.ZodString>;
2579
- user_name: z.ZodOptional<z.ZodString>;
2580
- connection: z.ZodOptional<z.ZodString>;
2581
- connection_id: z.ZodOptional<z.ZodString>;
2582
- client_id: z.ZodOptional<z.ZodString>;
2583
- client_name: z.ZodOptional<z.ZodString>;
2584
- audience: z.ZodOptional<z.ZodString>;
2585
- scope: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2586
- strategy: z.ZodOptional<z.ZodString>;
2587
- strategy_type: z.ZodOptional<z.ZodString>;
2588
- hostname: z.ZodOptional<z.ZodString>;
2589
- auth0_client: z.ZodOptional<z.ZodObject<{
2590
- name: z.ZodString;
2591
- version: z.ZodString;
2592
- env: z.ZodOptional<z.ZodObject<{
2593
- node: z.ZodOptional<z.ZodString>;
3013
+ }, "strip", z.ZodTypeAny, {
3014
+ background_color: string;
3015
+ background_image_url: string;
3016
+ page_layout: "center";
3017
+ }, {
3018
+ background_color: string;
3019
+ background_image_url: string;
3020
+ page_layout: "center";
3021
+ }>;
3022
+ export declare const widgetSchema: z.ZodObject<{
3023
+ header_text_alignment: z.ZodEnum<[
3024
+ "center"
3025
+ ]>;
3026
+ logo_height: z.ZodNumber;
3027
+ logo_position: z.ZodEnum<[
3028
+ "center"
3029
+ ]>;
3030
+ logo_url: z.ZodString;
3031
+ social_buttons_layout: z.ZodEnum<[
3032
+ "bottom"
3033
+ ]>;
3034
+ }, "strip", z.ZodTypeAny, {
3035
+ logo_url: string;
3036
+ header_text_alignment: "center";
3037
+ logo_height: number;
3038
+ logo_position: "center";
3039
+ social_buttons_layout: "bottom";
3040
+ }, {
3041
+ logo_url: string;
3042
+ header_text_alignment: "center";
3043
+ logo_height: number;
3044
+ logo_position: "center";
3045
+ social_buttons_layout: "bottom";
3046
+ }>;
3047
+ export declare const themeInsertSchema: z.ZodObject<{
3048
+ borders: z.ZodObject<{
3049
+ button_border_radius: z.ZodNumber;
3050
+ button_border_weight: z.ZodNumber;
3051
+ buttons_style: z.ZodEnum<[
3052
+ "pill"
3053
+ ]>;
3054
+ input_border_radius: z.ZodNumber;
3055
+ input_border_weight: z.ZodNumber;
3056
+ inputs_style: z.ZodEnum<[
3057
+ "pill"
3058
+ ]>;
3059
+ show_widget_shadow: z.ZodBoolean;
3060
+ widget_border_weight: z.ZodNumber;
3061
+ widget_corner_radius: z.ZodNumber;
3062
+ }, "strip", z.ZodTypeAny, {
3063
+ button_border_radius: number;
3064
+ button_border_weight: number;
3065
+ buttons_style: "pill";
3066
+ input_border_radius: number;
3067
+ input_border_weight: number;
3068
+ inputs_style: "pill";
3069
+ show_widget_shadow: boolean;
3070
+ widget_border_weight: number;
3071
+ widget_corner_radius: number;
3072
+ }, {
3073
+ button_border_radius: number;
3074
+ button_border_weight: number;
3075
+ buttons_style: "pill";
3076
+ input_border_radius: number;
3077
+ input_border_weight: number;
3078
+ inputs_style: "pill";
3079
+ show_widget_shadow: boolean;
3080
+ widget_border_weight: number;
3081
+ widget_corner_radius: number;
3082
+ }>;
3083
+ colors: z.ZodObject<{
3084
+ base_focus_color: z.ZodString;
3085
+ base_hover_color: z.ZodString;
3086
+ body_text: z.ZodString;
3087
+ captcha_widget_theme: z.ZodEnum<[
3088
+ "auto"
3089
+ ]>;
3090
+ error: z.ZodString;
3091
+ header: z.ZodString;
3092
+ icons: z.ZodString;
3093
+ input_background: z.ZodString;
3094
+ input_border: z.ZodString;
3095
+ input_filled_text: z.ZodString;
3096
+ input_labels_placeholders: z.ZodString;
3097
+ links_focused_components: z.ZodString;
3098
+ primary_button: z.ZodString;
3099
+ primary_button_label: z.ZodString;
3100
+ secondary_button_border: z.ZodString;
3101
+ secondary_button_label: z.ZodString;
3102
+ success: z.ZodString;
3103
+ widget_background: z.ZodString;
3104
+ widget_border: z.ZodString;
3105
+ }, "strip", z.ZodTypeAny, {
3106
+ base_focus_color: string;
3107
+ base_hover_color: string;
3108
+ body_text: string;
3109
+ captcha_widget_theme: "auto";
3110
+ error: string;
3111
+ header: string;
3112
+ icons: string;
3113
+ input_background: string;
3114
+ input_border: string;
3115
+ input_filled_text: string;
3116
+ input_labels_placeholders: string;
3117
+ links_focused_components: string;
3118
+ primary_button: string;
3119
+ primary_button_label: string;
3120
+ secondary_button_border: string;
3121
+ secondary_button_label: string;
3122
+ success: string;
3123
+ widget_background: string;
3124
+ widget_border: string;
3125
+ }, {
3126
+ base_focus_color: string;
3127
+ base_hover_color: string;
3128
+ body_text: string;
3129
+ captcha_widget_theme: "auto";
3130
+ error: string;
3131
+ header: string;
3132
+ icons: string;
3133
+ input_background: string;
3134
+ input_border: string;
3135
+ input_filled_text: string;
3136
+ input_labels_placeholders: string;
3137
+ links_focused_components: string;
3138
+ primary_button: string;
3139
+ primary_button_label: string;
3140
+ secondary_button_border: string;
3141
+ secondary_button_label: string;
3142
+ success: string;
3143
+ widget_background: string;
3144
+ widget_border: string;
3145
+ }>;
3146
+ displayName: z.ZodString;
3147
+ fonts: z.ZodObject<{
3148
+ body_text: z.ZodObject<{
3149
+ bold: z.ZodBoolean;
3150
+ size: z.ZodNumber;
2594
3151
  }, "strip", z.ZodTypeAny, {
2595
- node?: string | undefined;
3152
+ bold: boolean;
3153
+ size: number;
2596
3154
  }, {
2597
- node?: string | undefined;
2598
- }>>;
3155
+ bold: boolean;
3156
+ size: number;
3157
+ }>;
3158
+ buttons_text: z.ZodObject<{
3159
+ bold: z.ZodBoolean;
3160
+ size: z.ZodNumber;
3161
+ }, "strip", z.ZodTypeAny, {
3162
+ bold: boolean;
3163
+ size: number;
3164
+ }, {
3165
+ bold: boolean;
3166
+ size: number;
3167
+ }>;
3168
+ font_url: z.ZodString;
3169
+ input_labels: z.ZodObject<{
3170
+ bold: z.ZodBoolean;
3171
+ size: z.ZodNumber;
3172
+ }, "strip", z.ZodTypeAny, {
3173
+ bold: boolean;
3174
+ size: number;
3175
+ }, {
3176
+ bold: boolean;
3177
+ size: number;
3178
+ }>;
3179
+ links: z.ZodObject<{
3180
+ bold: z.ZodBoolean;
3181
+ size: z.ZodNumber;
3182
+ }, "strip", z.ZodTypeAny, {
3183
+ bold: boolean;
3184
+ size: number;
3185
+ }, {
3186
+ bold: boolean;
3187
+ size: number;
3188
+ }>;
3189
+ links_style: z.ZodEnum<[
3190
+ "normal"
3191
+ ]>;
3192
+ reference_text_size: z.ZodNumber;
3193
+ subtitle: z.ZodObject<{
3194
+ bold: z.ZodBoolean;
3195
+ size: z.ZodNumber;
3196
+ }, "strip", z.ZodTypeAny, {
3197
+ bold: boolean;
3198
+ size: number;
3199
+ }, {
3200
+ bold: boolean;
3201
+ size: number;
3202
+ }>;
3203
+ title: z.ZodObject<{
3204
+ bold: z.ZodBoolean;
3205
+ size: z.ZodNumber;
3206
+ }, "strip", z.ZodTypeAny, {
3207
+ bold: boolean;
3208
+ size: number;
3209
+ }, {
3210
+ bold: boolean;
3211
+ size: number;
3212
+ }>;
2599
3213
  }, "strip", z.ZodTypeAny, {
2600
- name: string;
2601
- version: string;
2602
- env?: {
2603
- node?: string | undefined;
2604
- } | undefined;
3214
+ title: {
3215
+ bold: boolean;
3216
+ size: number;
3217
+ };
3218
+ body_text: {
3219
+ bold: boolean;
3220
+ size: number;
3221
+ };
3222
+ buttons_text: {
3223
+ bold: boolean;
3224
+ size: number;
3225
+ };
3226
+ font_url: string;
3227
+ input_labels: {
3228
+ bold: boolean;
3229
+ size: number;
3230
+ };
3231
+ links: {
3232
+ bold: boolean;
3233
+ size: number;
3234
+ };
3235
+ links_style: "normal";
3236
+ reference_text_size: number;
3237
+ subtitle: {
3238
+ bold: boolean;
3239
+ size: number;
3240
+ };
2605
3241
  }, {
2606
- name: string;
2607
- version: string;
2608
- env?: {
2609
- node?: string | undefined;
2610
- } | undefined;
2611
- }>>;
3242
+ title: {
3243
+ bold: boolean;
3244
+ size: number;
3245
+ };
3246
+ body_text: {
3247
+ bold: boolean;
3248
+ size: number;
3249
+ };
3250
+ buttons_text: {
3251
+ bold: boolean;
3252
+ size: number;
3253
+ };
3254
+ font_url: string;
3255
+ input_labels: {
3256
+ bold: boolean;
3257
+ size: number;
3258
+ };
3259
+ links: {
3260
+ bold: boolean;
3261
+ size: number;
3262
+ };
3263
+ links_style: "normal";
3264
+ reference_text_size: number;
3265
+ subtitle: {
3266
+ bold: boolean;
3267
+ size: number;
3268
+ };
3269
+ }>;
3270
+ page_background: z.ZodObject<{
3271
+ background_color: z.ZodString;
3272
+ background_image_url: z.ZodString;
3273
+ page_layout: z.ZodEnum<[
3274
+ "center"
3275
+ ]>;
3276
+ }, "strip", z.ZodTypeAny, {
3277
+ background_color: string;
3278
+ background_image_url: string;
3279
+ page_layout: "center";
3280
+ }, {
3281
+ background_color: string;
3282
+ background_image_url: string;
3283
+ page_layout: "center";
3284
+ }>;
3285
+ widget: z.ZodObject<{
3286
+ header_text_alignment: z.ZodEnum<[
3287
+ "center"
3288
+ ]>;
3289
+ logo_height: z.ZodNumber;
3290
+ logo_position: z.ZodEnum<[
3291
+ "center"
3292
+ ]>;
3293
+ logo_url: z.ZodString;
3294
+ social_buttons_layout: z.ZodEnum<[
3295
+ "bottom"
3296
+ ]>;
3297
+ }, "strip", z.ZodTypeAny, {
3298
+ logo_url: string;
3299
+ header_text_alignment: "center";
3300
+ logo_height: number;
3301
+ logo_position: "center";
3302
+ social_buttons_layout: "bottom";
3303
+ }, {
3304
+ logo_url: string;
3305
+ header_text_alignment: "center";
3306
+ logo_height: number;
3307
+ logo_position: "center";
3308
+ social_buttons_layout: "bottom";
3309
+ }>;
2612
3310
  }, "strip", z.ZodTypeAny, {
2613
- type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
2614
- date: string;
2615
- ip: string;
2616
- user_agent: string;
2617
- isMobile: boolean;
2618
- description?: string | undefined;
2619
- connection?: string | undefined;
2620
- user_id?: string | undefined;
2621
- client_id?: string | undefined;
2622
- audience?: string | undefined;
2623
- scope?: string[] | undefined;
2624
- log_id?: string | undefined;
2625
- _id?: string | undefined;
2626
- details?: any;
2627
- user_name?: string | undefined;
2628
- connection_id?: string | undefined;
2629
- client_name?: string | undefined;
2630
- strategy?: string | undefined;
2631
- strategy_type?: string | undefined;
2632
- hostname?: string | undefined;
2633
- auth0_client?: {
2634
- name: string;
2635
- version: string;
2636
- env?: {
2637
- node?: string | undefined;
2638
- } | undefined;
2639
- } | undefined;
3311
+ page_background: {
3312
+ background_color: string;
3313
+ background_image_url: string;
3314
+ page_layout: "center";
3315
+ };
3316
+ colors: {
3317
+ base_focus_color: string;
3318
+ base_hover_color: string;
3319
+ body_text: string;
3320
+ captcha_widget_theme: "auto";
3321
+ error: string;
3322
+ header: string;
3323
+ icons: string;
3324
+ input_background: string;
3325
+ input_border: string;
3326
+ input_filled_text: string;
3327
+ input_labels_placeholders: string;
3328
+ links_focused_components: string;
3329
+ primary_button: string;
3330
+ primary_button_label: string;
3331
+ secondary_button_border: string;
3332
+ secondary_button_label: string;
3333
+ success: string;
3334
+ widget_background: string;
3335
+ widget_border: string;
3336
+ };
3337
+ borders: {
3338
+ button_border_radius: number;
3339
+ button_border_weight: number;
3340
+ buttons_style: "pill";
3341
+ input_border_radius: number;
3342
+ input_border_weight: number;
3343
+ inputs_style: "pill";
3344
+ show_widget_shadow: boolean;
3345
+ widget_border_weight: number;
3346
+ widget_corner_radius: number;
3347
+ };
3348
+ displayName: string;
3349
+ fonts: {
3350
+ title: {
3351
+ bold: boolean;
3352
+ size: number;
3353
+ };
3354
+ body_text: {
3355
+ bold: boolean;
3356
+ size: number;
3357
+ };
3358
+ buttons_text: {
3359
+ bold: boolean;
3360
+ size: number;
3361
+ };
3362
+ font_url: string;
3363
+ input_labels: {
3364
+ bold: boolean;
3365
+ size: number;
3366
+ };
3367
+ links: {
3368
+ bold: boolean;
3369
+ size: number;
3370
+ };
3371
+ links_style: "normal";
3372
+ reference_text_size: number;
3373
+ subtitle: {
3374
+ bold: boolean;
3375
+ size: number;
3376
+ };
3377
+ };
3378
+ widget: {
3379
+ logo_url: string;
3380
+ header_text_alignment: "center";
3381
+ logo_height: number;
3382
+ logo_position: "center";
3383
+ social_buttons_layout: "bottom";
3384
+ };
2640
3385
  }, {
2641
- type: "sapi" | "ssa" | "fsa" | "ss" | "fs" | "s" | "f" | "fp" | "slo" | "scoa" | "fcoa" | "seacft" | "serft" | "cls" | "seccft";
2642
- date: string;
2643
- ip: string;
2644
- user_agent: string;
2645
- isMobile: boolean;
2646
- description?: string | undefined;
2647
- connection?: string | undefined;
2648
- user_id?: string | undefined;
2649
- client_id?: string | undefined;
2650
- audience?: string | undefined;
2651
- scope?: string[] | undefined;
2652
- log_id?: string | undefined;
2653
- _id?: string | undefined;
2654
- details?: any;
2655
- user_name?: string | undefined;
2656
- connection_id?: string | undefined;
2657
- client_name?: string | undefined;
2658
- strategy?: string | undefined;
2659
- strategy_type?: string | undefined;
2660
- hostname?: string | undefined;
2661
- auth0_client?: {
2662
- name: string;
2663
- version: string;
2664
- env?: {
2665
- node?: string | undefined;
2666
- } | undefined;
2667
- } | undefined;
3386
+ page_background: {
3387
+ background_color: string;
3388
+ background_image_url: string;
3389
+ page_layout: "center";
3390
+ };
3391
+ colors: {
3392
+ base_focus_color: string;
3393
+ base_hover_color: string;
3394
+ body_text: string;
3395
+ captcha_widget_theme: "auto";
3396
+ error: string;
3397
+ header: string;
3398
+ icons: string;
3399
+ input_background: string;
3400
+ input_border: string;
3401
+ input_filled_text: string;
3402
+ input_labels_placeholders: string;
3403
+ links_focused_components: string;
3404
+ primary_button: string;
3405
+ primary_button_label: string;
3406
+ secondary_button_border: string;
3407
+ secondary_button_label: string;
3408
+ success: string;
3409
+ widget_background: string;
3410
+ widget_border: string;
3411
+ };
3412
+ borders: {
3413
+ button_border_radius: number;
3414
+ button_border_weight: number;
3415
+ buttons_style: "pill";
3416
+ input_border_radius: number;
3417
+ input_border_weight: number;
3418
+ inputs_style: "pill";
3419
+ show_widget_shadow: boolean;
3420
+ widget_border_weight: number;
3421
+ widget_corner_radius: number;
3422
+ };
3423
+ displayName: string;
3424
+ fonts: {
3425
+ title: {
3426
+ bold: boolean;
3427
+ size: number;
3428
+ };
3429
+ body_text: {
3430
+ bold: boolean;
3431
+ size: number;
3432
+ };
3433
+ buttons_text: {
3434
+ bold: boolean;
3435
+ size: number;
3436
+ };
3437
+ font_url: string;
3438
+ input_labels: {
3439
+ bold: boolean;
3440
+ size: number;
3441
+ };
3442
+ links: {
3443
+ bold: boolean;
3444
+ size: number;
3445
+ };
3446
+ links_style: "normal";
3447
+ reference_text_size: number;
3448
+ subtitle: {
3449
+ bold: boolean;
3450
+ size: number;
3451
+ };
3452
+ };
3453
+ widget: {
3454
+ logo_url: string;
3455
+ header_text_alignment: "center";
3456
+ logo_height: number;
3457
+ logo_position: "center";
3458
+ social_buttons_layout: "bottom";
3459
+ };
2668
3460
  }>;
2669
- export type Log = z.infer<typeof logSchema>;
2670
- export type LogsResponse = Log & {
2671
- log_id: string;
2672
- _id: string;
2673
- };
2674
- export declare const profileDataSchema: z.ZodObject<{
2675
- email: z.ZodOptional<z.ZodString>;
2676
- email_verified: z.ZodOptional<z.ZodBoolean>;
2677
- name: z.ZodOptional<z.ZodString>;
2678
- username: z.ZodOptional<z.ZodString>;
2679
- given_name: z.ZodOptional<z.ZodString>;
2680
- phone_number: z.ZodOptional<z.ZodString>;
2681
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2682
- family_name: z.ZodOptional<z.ZodString>;
2683
- }, "strip", z.ZodAny, z.objectOutputType<{
2684
- email: z.ZodOptional<z.ZodString>;
2685
- email_verified: z.ZodOptional<z.ZodBoolean>;
2686
- name: z.ZodOptional<z.ZodString>;
2687
- username: z.ZodOptional<z.ZodString>;
2688
- given_name: z.ZodOptional<z.ZodString>;
2689
- phone_number: z.ZodOptional<z.ZodString>;
2690
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2691
- family_name: z.ZodOptional<z.ZodString>;
2692
- }, z.ZodAny, "strip">, z.objectInputType<{
2693
- email: z.ZodOptional<z.ZodString>;
2694
- email_verified: z.ZodOptional<z.ZodBoolean>;
2695
- name: z.ZodOptional<z.ZodString>;
2696
- username: z.ZodOptional<z.ZodString>;
2697
- given_name: z.ZodOptional<z.ZodString>;
2698
- phone_number: z.ZodOptional<z.ZodString>;
2699
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2700
- family_name: z.ZodOptional<z.ZodString>;
2701
- }, z.ZodAny, "strip">>;
2702
- export declare const identitySchema: z.ZodObject<{
2703
- connection: z.ZodString;
2704
- user_id: z.ZodString;
2705
- provider: z.ZodString;
2706
- isSocial: z.ZodBoolean;
2707
- access_token: z.ZodOptional<z.ZodString>;
2708
- access_token_secret: z.ZodOptional<z.ZodString>;
2709
- refresh_token: z.ZodOptional<z.ZodString>;
2710
- profileData: z.ZodOptional<z.ZodObject<{
2711
- email: z.ZodOptional<z.ZodString>;
2712
- email_verified: z.ZodOptional<z.ZodBoolean>;
2713
- name: z.ZodOptional<z.ZodString>;
2714
- username: z.ZodOptional<z.ZodString>;
2715
- given_name: z.ZodOptional<z.ZodString>;
2716
- phone_number: z.ZodOptional<z.ZodString>;
2717
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2718
- family_name: z.ZodOptional<z.ZodString>;
2719
- }, "strip", z.ZodAny, z.objectOutputType<{
2720
- email: z.ZodOptional<z.ZodString>;
2721
- email_verified: z.ZodOptional<z.ZodBoolean>;
2722
- name: z.ZodOptional<z.ZodString>;
2723
- username: z.ZodOptional<z.ZodString>;
2724
- given_name: z.ZodOptional<z.ZodString>;
2725
- phone_number: z.ZodOptional<z.ZodString>;
2726
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2727
- family_name: z.ZodOptional<z.ZodString>;
2728
- }, z.ZodAny, "strip">, z.objectInputType<{
2729
- email: z.ZodOptional<z.ZodString>;
2730
- email_verified: z.ZodOptional<z.ZodBoolean>;
2731
- name: z.ZodOptional<z.ZodString>;
2732
- username: z.ZodOptional<z.ZodString>;
2733
- given_name: z.ZodOptional<z.ZodString>;
2734
- phone_number: z.ZodOptional<z.ZodString>;
2735
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2736
- family_name: z.ZodOptional<z.ZodString>;
2737
- }, z.ZodAny, "strip">>>;
2738
- }, "strip", z.ZodTypeAny, {
2739
- connection: string;
2740
- user_id: string;
2741
- provider: string;
2742
- isSocial: boolean;
2743
- access_token?: string | undefined;
2744
- access_token_secret?: string | undefined;
2745
- refresh_token?: string | undefined;
2746
- profileData?: z.objectOutputType<{
2747
- email: z.ZodOptional<z.ZodString>;
2748
- email_verified: z.ZodOptional<z.ZodBoolean>;
2749
- name: z.ZodOptional<z.ZodString>;
2750
- username: z.ZodOptional<z.ZodString>;
2751
- given_name: z.ZodOptional<z.ZodString>;
2752
- phone_number: z.ZodOptional<z.ZodString>;
2753
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2754
- family_name: z.ZodOptional<z.ZodString>;
2755
- }, z.ZodAny, "strip"> | undefined;
3461
+ export type ThemeInsert = z.infer<typeof themeInsertSchema>;
3462
+ export declare const themeSchema: z.ZodObject<z.objectUtil.extendShape<{
3463
+ borders: z.ZodObject<{
3464
+ button_border_radius: z.ZodNumber;
3465
+ button_border_weight: z.ZodNumber;
3466
+ buttons_style: z.ZodEnum<[
3467
+ "pill"
3468
+ ]>;
3469
+ input_border_radius: z.ZodNumber;
3470
+ input_border_weight: z.ZodNumber;
3471
+ inputs_style: z.ZodEnum<[
3472
+ "pill"
3473
+ ]>;
3474
+ show_widget_shadow: z.ZodBoolean;
3475
+ widget_border_weight: z.ZodNumber;
3476
+ widget_corner_radius: z.ZodNumber;
3477
+ }, "strip", z.ZodTypeAny, {
3478
+ button_border_radius: number;
3479
+ button_border_weight: number;
3480
+ buttons_style: "pill";
3481
+ input_border_radius: number;
3482
+ input_border_weight: number;
3483
+ inputs_style: "pill";
3484
+ show_widget_shadow: boolean;
3485
+ widget_border_weight: number;
3486
+ widget_corner_radius: number;
3487
+ }, {
3488
+ button_border_radius: number;
3489
+ button_border_weight: number;
3490
+ buttons_style: "pill";
3491
+ input_border_radius: number;
3492
+ input_border_weight: number;
3493
+ inputs_style: "pill";
3494
+ show_widget_shadow: boolean;
3495
+ widget_border_weight: number;
3496
+ widget_corner_radius: number;
3497
+ }>;
3498
+ colors: z.ZodObject<{
3499
+ base_focus_color: z.ZodString;
3500
+ base_hover_color: z.ZodString;
3501
+ body_text: z.ZodString;
3502
+ captcha_widget_theme: z.ZodEnum<[
3503
+ "auto"
3504
+ ]>;
3505
+ error: z.ZodString;
3506
+ header: z.ZodString;
3507
+ icons: z.ZodString;
3508
+ input_background: z.ZodString;
3509
+ input_border: z.ZodString;
3510
+ input_filled_text: z.ZodString;
3511
+ input_labels_placeholders: z.ZodString;
3512
+ links_focused_components: z.ZodString;
3513
+ primary_button: z.ZodString;
3514
+ primary_button_label: z.ZodString;
3515
+ secondary_button_border: z.ZodString;
3516
+ secondary_button_label: z.ZodString;
3517
+ success: z.ZodString;
3518
+ widget_background: z.ZodString;
3519
+ widget_border: z.ZodString;
3520
+ }, "strip", z.ZodTypeAny, {
3521
+ base_focus_color: string;
3522
+ base_hover_color: string;
3523
+ body_text: string;
3524
+ captcha_widget_theme: "auto";
3525
+ error: string;
3526
+ header: string;
3527
+ icons: string;
3528
+ input_background: string;
3529
+ input_border: string;
3530
+ input_filled_text: string;
3531
+ input_labels_placeholders: string;
3532
+ links_focused_components: string;
3533
+ primary_button: string;
3534
+ primary_button_label: string;
3535
+ secondary_button_border: string;
3536
+ secondary_button_label: string;
3537
+ success: string;
3538
+ widget_background: string;
3539
+ widget_border: string;
3540
+ }, {
3541
+ base_focus_color: string;
3542
+ base_hover_color: string;
3543
+ body_text: string;
3544
+ captcha_widget_theme: "auto";
3545
+ error: string;
3546
+ header: string;
3547
+ icons: string;
3548
+ input_background: string;
3549
+ input_border: string;
3550
+ input_filled_text: string;
3551
+ input_labels_placeholders: string;
3552
+ links_focused_components: string;
3553
+ primary_button: string;
3554
+ primary_button_label: string;
3555
+ secondary_button_border: string;
3556
+ secondary_button_label: string;
3557
+ success: string;
3558
+ widget_background: string;
3559
+ widget_border: string;
3560
+ }>;
3561
+ displayName: z.ZodString;
3562
+ fonts: z.ZodObject<{
3563
+ body_text: z.ZodObject<{
3564
+ bold: z.ZodBoolean;
3565
+ size: z.ZodNumber;
3566
+ }, "strip", z.ZodTypeAny, {
3567
+ bold: boolean;
3568
+ size: number;
3569
+ }, {
3570
+ bold: boolean;
3571
+ size: number;
3572
+ }>;
3573
+ buttons_text: z.ZodObject<{
3574
+ bold: z.ZodBoolean;
3575
+ size: z.ZodNumber;
3576
+ }, "strip", z.ZodTypeAny, {
3577
+ bold: boolean;
3578
+ size: number;
3579
+ }, {
3580
+ bold: boolean;
3581
+ size: number;
3582
+ }>;
3583
+ font_url: z.ZodString;
3584
+ input_labels: z.ZodObject<{
3585
+ bold: z.ZodBoolean;
3586
+ size: z.ZodNumber;
3587
+ }, "strip", z.ZodTypeAny, {
3588
+ bold: boolean;
3589
+ size: number;
3590
+ }, {
3591
+ bold: boolean;
3592
+ size: number;
3593
+ }>;
3594
+ links: z.ZodObject<{
3595
+ bold: z.ZodBoolean;
3596
+ size: z.ZodNumber;
3597
+ }, "strip", z.ZodTypeAny, {
3598
+ bold: boolean;
3599
+ size: number;
3600
+ }, {
3601
+ bold: boolean;
3602
+ size: number;
3603
+ }>;
3604
+ links_style: z.ZodEnum<[
3605
+ "normal"
3606
+ ]>;
3607
+ reference_text_size: z.ZodNumber;
3608
+ subtitle: z.ZodObject<{
3609
+ bold: z.ZodBoolean;
3610
+ size: z.ZodNumber;
3611
+ }, "strip", z.ZodTypeAny, {
3612
+ bold: boolean;
3613
+ size: number;
3614
+ }, {
3615
+ bold: boolean;
3616
+ size: number;
3617
+ }>;
3618
+ title: z.ZodObject<{
3619
+ bold: z.ZodBoolean;
3620
+ size: z.ZodNumber;
3621
+ }, "strip", z.ZodTypeAny, {
3622
+ bold: boolean;
3623
+ size: number;
3624
+ }, {
3625
+ bold: boolean;
3626
+ size: number;
3627
+ }>;
3628
+ }, "strip", z.ZodTypeAny, {
3629
+ title: {
3630
+ bold: boolean;
3631
+ size: number;
3632
+ };
3633
+ body_text: {
3634
+ bold: boolean;
3635
+ size: number;
3636
+ };
3637
+ buttons_text: {
3638
+ bold: boolean;
3639
+ size: number;
3640
+ };
3641
+ font_url: string;
3642
+ input_labels: {
3643
+ bold: boolean;
3644
+ size: number;
3645
+ };
3646
+ links: {
3647
+ bold: boolean;
3648
+ size: number;
3649
+ };
3650
+ links_style: "normal";
3651
+ reference_text_size: number;
3652
+ subtitle: {
3653
+ bold: boolean;
3654
+ size: number;
3655
+ };
3656
+ }, {
3657
+ title: {
3658
+ bold: boolean;
3659
+ size: number;
3660
+ };
3661
+ body_text: {
3662
+ bold: boolean;
3663
+ size: number;
3664
+ };
3665
+ buttons_text: {
3666
+ bold: boolean;
3667
+ size: number;
3668
+ };
3669
+ font_url: string;
3670
+ input_labels: {
3671
+ bold: boolean;
3672
+ size: number;
3673
+ };
3674
+ links: {
3675
+ bold: boolean;
3676
+ size: number;
3677
+ };
3678
+ links_style: "normal";
3679
+ reference_text_size: number;
3680
+ subtitle: {
3681
+ bold: boolean;
3682
+ size: number;
3683
+ };
3684
+ }>;
3685
+ page_background: z.ZodObject<{
3686
+ background_color: z.ZodString;
3687
+ background_image_url: z.ZodString;
3688
+ page_layout: z.ZodEnum<[
3689
+ "center"
3690
+ ]>;
3691
+ }, "strip", z.ZodTypeAny, {
3692
+ background_color: string;
3693
+ background_image_url: string;
3694
+ page_layout: "center";
3695
+ }, {
3696
+ background_color: string;
3697
+ background_image_url: string;
3698
+ page_layout: "center";
3699
+ }>;
3700
+ widget: z.ZodObject<{
3701
+ header_text_alignment: z.ZodEnum<[
3702
+ "center"
3703
+ ]>;
3704
+ logo_height: z.ZodNumber;
3705
+ logo_position: z.ZodEnum<[
3706
+ "center"
3707
+ ]>;
3708
+ logo_url: z.ZodString;
3709
+ social_buttons_layout: z.ZodEnum<[
3710
+ "bottom"
3711
+ ]>;
3712
+ }, "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";
3718
+ }, {
3719
+ logo_url: string;
3720
+ header_text_alignment: "center";
3721
+ logo_height: number;
3722
+ logo_position: "center";
3723
+ social_buttons_layout: "bottom";
3724
+ }>;
2756
3725
  }, {
2757
- connection: string;
2758
- user_id: string;
2759
- provider: string;
2760
- isSocial: boolean;
2761
- access_token?: string | undefined;
2762
- access_token_secret?: string | undefined;
2763
- refresh_token?: string | undefined;
2764
- profileData?: z.objectInputType<{
2765
- email: z.ZodOptional<z.ZodString>;
2766
- email_verified: z.ZodOptional<z.ZodBoolean>;
2767
- name: z.ZodOptional<z.ZodString>;
2768
- username: z.ZodOptional<z.ZodString>;
2769
- given_name: z.ZodOptional<z.ZodString>;
2770
- phone_number: z.ZodOptional<z.ZodString>;
2771
- phone_verified: z.ZodOptional<z.ZodBoolean>;
2772
- family_name: z.ZodOptional<z.ZodString>;
2773
- }, z.ZodAny, "strip"> | undefined;
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";
3801
+ };
3802
+ themeId: string;
3803
+ }, {
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";
3877
+ };
3878
+ themeId: string;
2774
3879
  }>;
2775
- export type Identity = z.infer<typeof identitySchema>;
3880
+ export type Theme = z.infer<typeof themeSchema>;
2776
3881
  export declare function parseUserId(user_id: string): {
2777
3882
  connection: string;
2778
3883
  id: string;
@@ -2922,24 +4027,31 @@ export interface HooksAdapter {
2922
4027
  export interface ClientsAdapter {
2923
4028
  get: (id: string) => Promise<PartialClient | null>;
2924
4029
  }
4030
+ export interface ThemesAdapter {
4031
+ create: (tenant_id: string, theme: ThemeInsert) => Promise<Theme>;
4032
+ remove: (tenant_id: string, themeId: string) => Promise<boolean>;
4033
+ get: (tenant_id: string, themeId: string) => Promise<Theme | null>;
4034
+ update: (tenant_id: string, themeId: any, theme: Partial<ThemeInsert>) => Promise<boolean>;
4035
+ }
2925
4036
  export interface DataAdapters {
2926
4037
  applications: ApplicationsAdapter;
4038
+ authenticationCodes: AuthenticationCodesAdapter;
2927
4039
  branding: BrandingAdapter;
2928
- codes: CodesAdapter;
2929
4040
  clients: ClientsAdapter;
4041
+ codes: CodesAdapter;
4042
+ connections: ConnectionsAdapter;
4043
+ domains: DomainsAdapter;
4044
+ hooks: HooksAdapter;
4045
+ keys: KeysAdapter;
4046
+ logs: LogsDataAdapter;
2930
4047
  OTP: OTPAdapter;
2931
4048
  passwords: PasswordsAdapter;
2932
4049
  sessions: SessionsAdapter;
2933
4050
  tenants: TenantsDataAdapter;
4051
+ themes: ThemesAdapter;
2934
4052
  tickets: TicketsAdapter;
2935
4053
  universalLoginSessions: UniversalLoginSessionsAdapter;
2936
4054
  users: UserDataAdapter;
2937
- logs: LogsDataAdapter;
2938
- connections: ConnectionsAdapter;
2939
- domains: DomainsAdapter;
2940
- keys: KeysAdapter;
2941
- hooks: HooksAdapter;
2942
- authenticationCodes: AuthenticationCodesAdapter;
2943
4055
  }
2944
4056
 
2945
4057
  export {