@authhero/kysely-adapter 10.13.0 → 10.15.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.
- package/dist/kysely-adapter.cjs +1 -1
- package/dist/kysely-adapter.d.ts +655 -91
- package/dist/kysely-adapter.mjs +2 -2
- package/package.json +3 -3
package/dist/kysely-adapter.d.ts
CHANGED
|
@@ -1853,20 +1853,194 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
1853
1853
|
}>;
|
|
1854
1854
|
alias: z.ZodOptional<z.ZodString>;
|
|
1855
1855
|
config: z.ZodObject<{
|
|
1856
|
-
components: z.ZodArray<z.
|
|
1856
|
+
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
|
|
1857
|
+
z.ZodObject<{
|
|
1858
|
+
id: z.ZodString;
|
|
1859
|
+
type: z.ZodLiteral<"RICH_TEXT">;
|
|
1860
|
+
config: z.ZodObject<{
|
|
1861
|
+
content: z.ZodString;
|
|
1862
|
+
}, "strip", z.ZodTypeAny, {
|
|
1863
|
+
content: string;
|
|
1864
|
+
}, {
|
|
1865
|
+
content: string;
|
|
1866
|
+
}>;
|
|
1867
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
1868
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1869
|
+
}, "strip", z.ZodTypeAny, {
|
|
1870
|
+
type: "RICH_TEXT";
|
|
1871
|
+
id: string;
|
|
1872
|
+
config: {
|
|
1873
|
+
content: string;
|
|
1874
|
+
};
|
|
1875
|
+
visible: boolean;
|
|
1876
|
+
order?: number | undefined;
|
|
1877
|
+
}, {
|
|
1878
|
+
type: "RICH_TEXT";
|
|
1879
|
+
id: string;
|
|
1880
|
+
config: {
|
|
1881
|
+
content: string;
|
|
1882
|
+
};
|
|
1883
|
+
order?: number | undefined;
|
|
1884
|
+
visible?: boolean | undefined;
|
|
1885
|
+
}>,
|
|
1886
|
+
z.ZodObject<{
|
|
1887
|
+
id: z.ZodString;
|
|
1888
|
+
type: z.ZodLiteral<"LEGAL">;
|
|
1889
|
+
config: z.ZodObject<{
|
|
1890
|
+
text: z.ZodString;
|
|
1891
|
+
html: z.ZodOptional<z.ZodBoolean>;
|
|
1892
|
+
}, "strip", z.ZodTypeAny, {
|
|
1893
|
+
text: string;
|
|
1894
|
+
html?: boolean | undefined;
|
|
1895
|
+
}, {
|
|
1896
|
+
text: string;
|
|
1897
|
+
html?: boolean | undefined;
|
|
1898
|
+
}>;
|
|
1899
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1900
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
1901
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1902
|
+
}, "strip", z.ZodTypeAny, {
|
|
1903
|
+
type: "LEGAL";
|
|
1904
|
+
id: string;
|
|
1905
|
+
config: {
|
|
1906
|
+
text: string;
|
|
1907
|
+
html?: boolean | undefined;
|
|
1908
|
+
};
|
|
1909
|
+
visible: boolean;
|
|
1910
|
+
required?: boolean | undefined;
|
|
1911
|
+
order?: number | undefined;
|
|
1912
|
+
}, {
|
|
1913
|
+
type: "LEGAL";
|
|
1914
|
+
id: string;
|
|
1915
|
+
config: {
|
|
1916
|
+
text: string;
|
|
1917
|
+
html?: boolean | undefined;
|
|
1918
|
+
};
|
|
1919
|
+
required?: boolean | undefined;
|
|
1920
|
+
order?: number | undefined;
|
|
1921
|
+
visible?: boolean | undefined;
|
|
1922
|
+
}>,
|
|
1923
|
+
z.ZodObject<{
|
|
1924
|
+
id: z.ZodString;
|
|
1925
|
+
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
1926
|
+
config: z.ZodObject<{
|
|
1927
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1928
|
+
}, "strip", z.ZodTypeAny, {
|
|
1929
|
+
text?: string | undefined;
|
|
1930
|
+
}, {
|
|
1931
|
+
text?: string | undefined;
|
|
1932
|
+
}>;
|
|
1933
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
1934
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1935
|
+
}, "strip", z.ZodTypeAny, {
|
|
1936
|
+
type: "NEXT_BUTTON";
|
|
1937
|
+
id: string;
|
|
1938
|
+
config: {
|
|
1939
|
+
text?: string | undefined;
|
|
1940
|
+
};
|
|
1941
|
+
visible: boolean;
|
|
1942
|
+
order?: number | undefined;
|
|
1943
|
+
}, {
|
|
1944
|
+
type: "NEXT_BUTTON";
|
|
1945
|
+
id: string;
|
|
1946
|
+
config: {
|
|
1947
|
+
text?: string | undefined;
|
|
1948
|
+
};
|
|
1949
|
+
order?: number | undefined;
|
|
1950
|
+
visible?: boolean | undefined;
|
|
1951
|
+
}>
|
|
1952
|
+
]>, "many">;
|
|
1857
1953
|
next_node: z.ZodString;
|
|
1858
1954
|
}, "strip", z.ZodTypeAny, {
|
|
1859
|
-
components:
|
|
1955
|
+
components: ({
|
|
1956
|
+
type: "RICH_TEXT";
|
|
1957
|
+
id: string;
|
|
1958
|
+
config: {
|
|
1959
|
+
content: string;
|
|
1960
|
+
};
|
|
1961
|
+
visible: boolean;
|
|
1962
|
+
order?: number | undefined;
|
|
1963
|
+
} | {
|
|
1964
|
+
type: "LEGAL";
|
|
1965
|
+
id: string;
|
|
1966
|
+
config: {
|
|
1967
|
+
text: string;
|
|
1968
|
+
html?: boolean | undefined;
|
|
1969
|
+
};
|
|
1970
|
+
visible: boolean;
|
|
1971
|
+
required?: boolean | undefined;
|
|
1972
|
+
order?: number | undefined;
|
|
1973
|
+
} | {
|
|
1974
|
+
type: "NEXT_BUTTON";
|
|
1975
|
+
id: string;
|
|
1976
|
+
config: {
|
|
1977
|
+
text?: string | undefined;
|
|
1978
|
+
};
|
|
1979
|
+
visible: boolean;
|
|
1980
|
+
order?: number | undefined;
|
|
1981
|
+
})[];
|
|
1860
1982
|
next_node: string;
|
|
1861
1983
|
}, {
|
|
1862
|
-
components:
|
|
1984
|
+
components: ({
|
|
1985
|
+
type: "RICH_TEXT";
|
|
1986
|
+
id: string;
|
|
1987
|
+
config: {
|
|
1988
|
+
content: string;
|
|
1989
|
+
};
|
|
1990
|
+
order?: number | undefined;
|
|
1991
|
+
visible?: boolean | undefined;
|
|
1992
|
+
} | {
|
|
1993
|
+
type: "LEGAL";
|
|
1994
|
+
id: string;
|
|
1995
|
+
config: {
|
|
1996
|
+
text: string;
|
|
1997
|
+
html?: boolean | undefined;
|
|
1998
|
+
};
|
|
1999
|
+
required?: boolean | undefined;
|
|
2000
|
+
order?: number | undefined;
|
|
2001
|
+
visible?: boolean | undefined;
|
|
2002
|
+
} | {
|
|
2003
|
+
type: "NEXT_BUTTON";
|
|
2004
|
+
id: string;
|
|
2005
|
+
config: {
|
|
2006
|
+
text?: string | undefined;
|
|
2007
|
+
};
|
|
2008
|
+
order?: number | undefined;
|
|
2009
|
+
visible?: boolean | undefined;
|
|
2010
|
+
})[];
|
|
1863
2011
|
next_node: string;
|
|
1864
2012
|
}>;
|
|
1865
2013
|
}, "strip", z.ZodTypeAny, {
|
|
1866
2014
|
type: "STEP";
|
|
1867
2015
|
id: string;
|
|
1868
2016
|
config: {
|
|
1869
|
-
components:
|
|
2017
|
+
components: ({
|
|
2018
|
+
type: "RICH_TEXT";
|
|
2019
|
+
id: string;
|
|
2020
|
+
config: {
|
|
2021
|
+
content: string;
|
|
2022
|
+
};
|
|
2023
|
+
visible: boolean;
|
|
2024
|
+
order?: number | undefined;
|
|
2025
|
+
} | {
|
|
2026
|
+
type: "LEGAL";
|
|
2027
|
+
id: string;
|
|
2028
|
+
config: {
|
|
2029
|
+
text: string;
|
|
2030
|
+
html?: boolean | undefined;
|
|
2031
|
+
};
|
|
2032
|
+
visible: boolean;
|
|
2033
|
+
required?: boolean | undefined;
|
|
2034
|
+
order?: number | undefined;
|
|
2035
|
+
} | {
|
|
2036
|
+
type: "NEXT_BUTTON";
|
|
2037
|
+
id: string;
|
|
2038
|
+
config: {
|
|
2039
|
+
text?: string | undefined;
|
|
2040
|
+
};
|
|
2041
|
+
visible: boolean;
|
|
2042
|
+
order?: number | undefined;
|
|
2043
|
+
})[];
|
|
1870
2044
|
next_node: string;
|
|
1871
2045
|
};
|
|
1872
2046
|
coordinates: {
|
|
@@ -1878,7 +2052,33 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
1878
2052
|
type: "STEP";
|
|
1879
2053
|
id: string;
|
|
1880
2054
|
config: {
|
|
1881
|
-
components:
|
|
2055
|
+
components: ({
|
|
2056
|
+
type: "RICH_TEXT";
|
|
2057
|
+
id: string;
|
|
2058
|
+
config: {
|
|
2059
|
+
content: string;
|
|
2060
|
+
};
|
|
2061
|
+
order?: number | undefined;
|
|
2062
|
+
visible?: boolean | undefined;
|
|
2063
|
+
} | {
|
|
2064
|
+
type: "LEGAL";
|
|
2065
|
+
id: string;
|
|
2066
|
+
config: {
|
|
2067
|
+
text: string;
|
|
2068
|
+
html?: boolean | undefined;
|
|
2069
|
+
};
|
|
2070
|
+
required?: boolean | undefined;
|
|
2071
|
+
order?: number | undefined;
|
|
2072
|
+
visible?: boolean | undefined;
|
|
2073
|
+
} | {
|
|
2074
|
+
type: "NEXT_BUTTON";
|
|
2075
|
+
id: string;
|
|
2076
|
+
config: {
|
|
2077
|
+
text?: string | undefined;
|
|
2078
|
+
};
|
|
2079
|
+
order?: number | undefined;
|
|
2080
|
+
visible?: boolean | undefined;
|
|
2081
|
+
})[];
|
|
1882
2082
|
next_node: string;
|
|
1883
2083
|
};
|
|
1884
2084
|
coordinates: {
|
|
@@ -2047,7 +2247,33 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
2047
2247
|
type: "STEP";
|
|
2048
2248
|
id: string;
|
|
2049
2249
|
config: {
|
|
2050
|
-
components:
|
|
2250
|
+
components: ({
|
|
2251
|
+
type: "RICH_TEXT";
|
|
2252
|
+
id: string;
|
|
2253
|
+
config: {
|
|
2254
|
+
content: string;
|
|
2255
|
+
};
|
|
2256
|
+
visible: boolean;
|
|
2257
|
+
order?: number | undefined;
|
|
2258
|
+
} | {
|
|
2259
|
+
type: "LEGAL";
|
|
2260
|
+
id: string;
|
|
2261
|
+
config: {
|
|
2262
|
+
text: string;
|
|
2263
|
+
html?: boolean | undefined;
|
|
2264
|
+
};
|
|
2265
|
+
visible: boolean;
|
|
2266
|
+
required?: boolean | undefined;
|
|
2267
|
+
order?: number | undefined;
|
|
2268
|
+
} | {
|
|
2269
|
+
type: "NEXT_BUTTON";
|
|
2270
|
+
id: string;
|
|
2271
|
+
config: {
|
|
2272
|
+
text?: string | undefined;
|
|
2273
|
+
};
|
|
2274
|
+
visible: boolean;
|
|
2275
|
+
order?: number | undefined;
|
|
2276
|
+
})[];
|
|
2051
2277
|
next_node: string;
|
|
2052
2278
|
};
|
|
2053
2279
|
coordinates: {
|
|
@@ -2128,7 +2354,33 @@ declare const formInsertSchema: z.ZodObject<{
|
|
|
2128
2354
|
type: "STEP";
|
|
2129
2355
|
id: string;
|
|
2130
2356
|
config: {
|
|
2131
|
-
components:
|
|
2357
|
+
components: ({
|
|
2358
|
+
type: "RICH_TEXT";
|
|
2359
|
+
id: string;
|
|
2360
|
+
config: {
|
|
2361
|
+
content: string;
|
|
2362
|
+
};
|
|
2363
|
+
order?: number | undefined;
|
|
2364
|
+
visible?: boolean | undefined;
|
|
2365
|
+
} | {
|
|
2366
|
+
type: "LEGAL";
|
|
2367
|
+
id: string;
|
|
2368
|
+
config: {
|
|
2369
|
+
text: string;
|
|
2370
|
+
html?: boolean | undefined;
|
|
2371
|
+
};
|
|
2372
|
+
required?: boolean | undefined;
|
|
2373
|
+
order?: number | undefined;
|
|
2374
|
+
visible?: boolean | undefined;
|
|
2375
|
+
} | {
|
|
2376
|
+
type: "NEXT_BUTTON";
|
|
2377
|
+
id: string;
|
|
2378
|
+
config: {
|
|
2379
|
+
text?: string | undefined;
|
|
2380
|
+
};
|
|
2381
|
+
order?: number | undefined;
|
|
2382
|
+
visible?: boolean | undefined;
|
|
2383
|
+
})[];
|
|
2132
2384
|
next_node: string;
|
|
2133
2385
|
};
|
|
2134
2386
|
coordinates: {
|
|
@@ -2331,20 +2583,194 @@ declare const formSchema: z.ZodObject<{
|
|
|
2331
2583
|
}>;
|
|
2332
2584
|
alias: z.ZodOptional<z.ZodString>;
|
|
2333
2585
|
config: z.ZodObject<{
|
|
2334
|
-
components: z.ZodArray<z.
|
|
2586
|
+
components: z.ZodArray<z.ZodDiscriminatedUnion<"type", [
|
|
2587
|
+
z.ZodObject<{
|
|
2588
|
+
id: z.ZodString;
|
|
2589
|
+
type: z.ZodLiteral<"RICH_TEXT">;
|
|
2590
|
+
config: z.ZodObject<{
|
|
2591
|
+
content: z.ZodString;
|
|
2592
|
+
}, "strip", z.ZodTypeAny, {
|
|
2593
|
+
content: string;
|
|
2594
|
+
}, {
|
|
2595
|
+
content: string;
|
|
2596
|
+
}>;
|
|
2597
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
2598
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2599
|
+
}, "strip", z.ZodTypeAny, {
|
|
2600
|
+
type: "RICH_TEXT";
|
|
2601
|
+
id: string;
|
|
2602
|
+
config: {
|
|
2603
|
+
content: string;
|
|
2604
|
+
};
|
|
2605
|
+
visible: boolean;
|
|
2606
|
+
order?: number | undefined;
|
|
2607
|
+
}, {
|
|
2608
|
+
type: "RICH_TEXT";
|
|
2609
|
+
id: string;
|
|
2610
|
+
config: {
|
|
2611
|
+
content: string;
|
|
2612
|
+
};
|
|
2613
|
+
order?: number | undefined;
|
|
2614
|
+
visible?: boolean | undefined;
|
|
2615
|
+
}>,
|
|
2616
|
+
z.ZodObject<{
|
|
2617
|
+
id: z.ZodString;
|
|
2618
|
+
type: z.ZodLiteral<"LEGAL">;
|
|
2619
|
+
config: z.ZodObject<{
|
|
2620
|
+
text: z.ZodString;
|
|
2621
|
+
html: z.ZodOptional<z.ZodBoolean>;
|
|
2622
|
+
}, "strip", z.ZodTypeAny, {
|
|
2623
|
+
text: string;
|
|
2624
|
+
html?: boolean | undefined;
|
|
2625
|
+
}, {
|
|
2626
|
+
text: string;
|
|
2627
|
+
html?: boolean | undefined;
|
|
2628
|
+
}>;
|
|
2629
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
2630
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
2631
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2632
|
+
}, "strip", z.ZodTypeAny, {
|
|
2633
|
+
type: "LEGAL";
|
|
2634
|
+
id: string;
|
|
2635
|
+
config: {
|
|
2636
|
+
text: string;
|
|
2637
|
+
html?: boolean | undefined;
|
|
2638
|
+
};
|
|
2639
|
+
visible: boolean;
|
|
2640
|
+
required?: boolean | undefined;
|
|
2641
|
+
order?: number | undefined;
|
|
2642
|
+
}, {
|
|
2643
|
+
type: "LEGAL";
|
|
2644
|
+
id: string;
|
|
2645
|
+
config: {
|
|
2646
|
+
text: string;
|
|
2647
|
+
html?: boolean | undefined;
|
|
2648
|
+
};
|
|
2649
|
+
required?: boolean | undefined;
|
|
2650
|
+
order?: number | undefined;
|
|
2651
|
+
visible?: boolean | undefined;
|
|
2652
|
+
}>,
|
|
2653
|
+
z.ZodObject<{
|
|
2654
|
+
id: z.ZodString;
|
|
2655
|
+
type: z.ZodLiteral<"NEXT_BUTTON">;
|
|
2656
|
+
config: z.ZodObject<{
|
|
2657
|
+
text: z.ZodOptional<z.ZodString>;
|
|
2658
|
+
}, "strip", z.ZodTypeAny, {
|
|
2659
|
+
text?: string | undefined;
|
|
2660
|
+
}, {
|
|
2661
|
+
text?: string | undefined;
|
|
2662
|
+
}>;
|
|
2663
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
2664
|
+
visible: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2665
|
+
}, "strip", z.ZodTypeAny, {
|
|
2666
|
+
type: "NEXT_BUTTON";
|
|
2667
|
+
id: string;
|
|
2668
|
+
config: {
|
|
2669
|
+
text?: string | undefined;
|
|
2670
|
+
};
|
|
2671
|
+
visible: boolean;
|
|
2672
|
+
order?: number | undefined;
|
|
2673
|
+
}, {
|
|
2674
|
+
type: "NEXT_BUTTON";
|
|
2675
|
+
id: string;
|
|
2676
|
+
config: {
|
|
2677
|
+
text?: string | undefined;
|
|
2678
|
+
};
|
|
2679
|
+
order?: number | undefined;
|
|
2680
|
+
visible?: boolean | undefined;
|
|
2681
|
+
}>
|
|
2682
|
+
]>, "many">;
|
|
2335
2683
|
next_node: z.ZodString;
|
|
2336
2684
|
}, "strip", z.ZodTypeAny, {
|
|
2337
|
-
components:
|
|
2685
|
+
components: ({
|
|
2686
|
+
type: "RICH_TEXT";
|
|
2687
|
+
id: string;
|
|
2688
|
+
config: {
|
|
2689
|
+
content: string;
|
|
2690
|
+
};
|
|
2691
|
+
visible: boolean;
|
|
2692
|
+
order?: number | undefined;
|
|
2693
|
+
} | {
|
|
2694
|
+
type: "LEGAL";
|
|
2695
|
+
id: string;
|
|
2696
|
+
config: {
|
|
2697
|
+
text: string;
|
|
2698
|
+
html?: boolean | undefined;
|
|
2699
|
+
};
|
|
2700
|
+
visible: boolean;
|
|
2701
|
+
required?: boolean | undefined;
|
|
2702
|
+
order?: number | undefined;
|
|
2703
|
+
} | {
|
|
2704
|
+
type: "NEXT_BUTTON";
|
|
2705
|
+
id: string;
|
|
2706
|
+
config: {
|
|
2707
|
+
text?: string | undefined;
|
|
2708
|
+
};
|
|
2709
|
+
visible: boolean;
|
|
2710
|
+
order?: number | undefined;
|
|
2711
|
+
})[];
|
|
2338
2712
|
next_node: string;
|
|
2339
2713
|
}, {
|
|
2340
|
-
components:
|
|
2714
|
+
components: ({
|
|
2715
|
+
type: "RICH_TEXT";
|
|
2716
|
+
id: string;
|
|
2717
|
+
config: {
|
|
2718
|
+
content: string;
|
|
2719
|
+
};
|
|
2720
|
+
order?: number | undefined;
|
|
2721
|
+
visible?: boolean | undefined;
|
|
2722
|
+
} | {
|
|
2723
|
+
type: "LEGAL";
|
|
2724
|
+
id: string;
|
|
2725
|
+
config: {
|
|
2726
|
+
text: string;
|
|
2727
|
+
html?: boolean | undefined;
|
|
2728
|
+
};
|
|
2729
|
+
required?: boolean | undefined;
|
|
2730
|
+
order?: number | undefined;
|
|
2731
|
+
visible?: boolean | undefined;
|
|
2732
|
+
} | {
|
|
2733
|
+
type: "NEXT_BUTTON";
|
|
2734
|
+
id: string;
|
|
2735
|
+
config: {
|
|
2736
|
+
text?: string | undefined;
|
|
2737
|
+
};
|
|
2738
|
+
order?: number | undefined;
|
|
2739
|
+
visible?: boolean | undefined;
|
|
2740
|
+
})[];
|
|
2341
2741
|
next_node: string;
|
|
2342
2742
|
}>;
|
|
2343
2743
|
}, "strip", z.ZodTypeAny, {
|
|
2344
2744
|
type: "STEP";
|
|
2345
2745
|
id: string;
|
|
2346
2746
|
config: {
|
|
2347
|
-
components:
|
|
2747
|
+
components: ({
|
|
2748
|
+
type: "RICH_TEXT";
|
|
2749
|
+
id: string;
|
|
2750
|
+
config: {
|
|
2751
|
+
content: string;
|
|
2752
|
+
};
|
|
2753
|
+
visible: boolean;
|
|
2754
|
+
order?: number | undefined;
|
|
2755
|
+
} | {
|
|
2756
|
+
type: "LEGAL";
|
|
2757
|
+
id: string;
|
|
2758
|
+
config: {
|
|
2759
|
+
text: string;
|
|
2760
|
+
html?: boolean | undefined;
|
|
2761
|
+
};
|
|
2762
|
+
visible: boolean;
|
|
2763
|
+
required?: boolean | undefined;
|
|
2764
|
+
order?: number | undefined;
|
|
2765
|
+
} | {
|
|
2766
|
+
type: "NEXT_BUTTON";
|
|
2767
|
+
id: string;
|
|
2768
|
+
config: {
|
|
2769
|
+
text?: string | undefined;
|
|
2770
|
+
};
|
|
2771
|
+
visible: boolean;
|
|
2772
|
+
order?: number | undefined;
|
|
2773
|
+
})[];
|
|
2348
2774
|
next_node: string;
|
|
2349
2775
|
};
|
|
2350
2776
|
coordinates: {
|
|
@@ -2356,7 +2782,33 @@ declare const formSchema: z.ZodObject<{
|
|
|
2356
2782
|
type: "STEP";
|
|
2357
2783
|
id: string;
|
|
2358
2784
|
config: {
|
|
2359
|
-
components:
|
|
2785
|
+
components: ({
|
|
2786
|
+
type: "RICH_TEXT";
|
|
2787
|
+
id: string;
|
|
2788
|
+
config: {
|
|
2789
|
+
content: string;
|
|
2790
|
+
};
|
|
2791
|
+
order?: number | undefined;
|
|
2792
|
+
visible?: boolean | undefined;
|
|
2793
|
+
} | {
|
|
2794
|
+
type: "LEGAL";
|
|
2795
|
+
id: string;
|
|
2796
|
+
config: {
|
|
2797
|
+
text: string;
|
|
2798
|
+
html?: boolean | undefined;
|
|
2799
|
+
};
|
|
2800
|
+
required?: boolean | undefined;
|
|
2801
|
+
order?: number | undefined;
|
|
2802
|
+
visible?: boolean | undefined;
|
|
2803
|
+
} | {
|
|
2804
|
+
type: "NEXT_BUTTON";
|
|
2805
|
+
id: string;
|
|
2806
|
+
config: {
|
|
2807
|
+
text?: string | undefined;
|
|
2808
|
+
};
|
|
2809
|
+
order?: number | undefined;
|
|
2810
|
+
visible?: boolean | undefined;
|
|
2811
|
+
})[];
|
|
2360
2812
|
next_node: string;
|
|
2361
2813
|
};
|
|
2362
2814
|
coordinates: {
|
|
@@ -2530,7 +2982,33 @@ declare const formSchema: z.ZodObject<{
|
|
|
2530
2982
|
type: "STEP";
|
|
2531
2983
|
id: string;
|
|
2532
2984
|
config: {
|
|
2533
|
-
components:
|
|
2985
|
+
components: ({
|
|
2986
|
+
type: "RICH_TEXT";
|
|
2987
|
+
id: string;
|
|
2988
|
+
config: {
|
|
2989
|
+
content: string;
|
|
2990
|
+
};
|
|
2991
|
+
visible: boolean;
|
|
2992
|
+
order?: number | undefined;
|
|
2993
|
+
} | {
|
|
2994
|
+
type: "LEGAL";
|
|
2995
|
+
id: string;
|
|
2996
|
+
config: {
|
|
2997
|
+
text: string;
|
|
2998
|
+
html?: boolean | undefined;
|
|
2999
|
+
};
|
|
3000
|
+
visible: boolean;
|
|
3001
|
+
required?: boolean | undefined;
|
|
3002
|
+
order?: number | undefined;
|
|
3003
|
+
} | {
|
|
3004
|
+
type: "NEXT_BUTTON";
|
|
3005
|
+
id: string;
|
|
3006
|
+
config: {
|
|
3007
|
+
text?: string | undefined;
|
|
3008
|
+
};
|
|
3009
|
+
visible: boolean;
|
|
3010
|
+
order?: number | undefined;
|
|
3011
|
+
})[];
|
|
2534
3012
|
next_node: string;
|
|
2535
3013
|
};
|
|
2536
3014
|
coordinates: {
|
|
@@ -2614,7 +3092,33 @@ declare const formSchema: z.ZodObject<{
|
|
|
2614
3092
|
type: "STEP";
|
|
2615
3093
|
id: string;
|
|
2616
3094
|
config: {
|
|
2617
|
-
components:
|
|
3095
|
+
components: ({
|
|
3096
|
+
type: "RICH_TEXT";
|
|
3097
|
+
id: string;
|
|
3098
|
+
config: {
|
|
3099
|
+
content: string;
|
|
3100
|
+
};
|
|
3101
|
+
order?: number | undefined;
|
|
3102
|
+
visible?: boolean | undefined;
|
|
3103
|
+
} | {
|
|
3104
|
+
type: "LEGAL";
|
|
3105
|
+
id: string;
|
|
3106
|
+
config: {
|
|
3107
|
+
text: string;
|
|
3108
|
+
html?: boolean | undefined;
|
|
3109
|
+
};
|
|
3110
|
+
required?: boolean | undefined;
|
|
3111
|
+
order?: number | undefined;
|
|
3112
|
+
visible?: boolean | undefined;
|
|
3113
|
+
} | {
|
|
3114
|
+
type: "NEXT_BUTTON";
|
|
3115
|
+
id: string;
|
|
3116
|
+
config: {
|
|
3117
|
+
text?: string | undefined;
|
|
3118
|
+
};
|
|
3119
|
+
order?: number | undefined;
|
|
3120
|
+
visible?: boolean | undefined;
|
|
3121
|
+
})[];
|
|
2618
3122
|
next_node: string;
|
|
2619
3123
|
};
|
|
2620
3124
|
coordinates: {
|
|
@@ -2644,66 +3148,127 @@ declare const formSchema: z.ZodObject<{
|
|
|
2644
3148
|
translations?: Record<string, any> | undefined;
|
|
2645
3149
|
}>;
|
|
2646
3150
|
export type Form = z.infer<typeof formSchema>;
|
|
2647
|
-
declare const hookInsertSchema: z.
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
3151
|
+
declare const hookInsertSchema: z.ZodUnion<[
|
|
3152
|
+
z.ZodObject<{
|
|
3153
|
+
trigger_id: z.ZodEnum<[
|
|
3154
|
+
"pre-user-signup",
|
|
3155
|
+
"post-user-registration",
|
|
3156
|
+
"post-user-login"
|
|
3157
|
+
]>;
|
|
3158
|
+
url: z.ZodString;
|
|
3159
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3160
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
3161
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
3162
|
+
hook_id: z.ZodOptional<z.ZodString>;
|
|
3163
|
+
}, "strip", z.ZodTypeAny, {
|
|
3164
|
+
enabled: boolean;
|
|
3165
|
+
url: string;
|
|
3166
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3167
|
+
synchronous: boolean;
|
|
3168
|
+
priority?: number | undefined;
|
|
3169
|
+
hook_id?: string | undefined;
|
|
3170
|
+
}, {
|
|
3171
|
+
url: string;
|
|
3172
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3173
|
+
enabled?: boolean | undefined;
|
|
3174
|
+
synchronous?: boolean | undefined;
|
|
3175
|
+
priority?: number | undefined;
|
|
3176
|
+
hook_id?: string | undefined;
|
|
3177
|
+
}>,
|
|
3178
|
+
z.ZodObject<{
|
|
3179
|
+
trigger_id: z.ZodEnum<[
|
|
3180
|
+
"pre-user-signup",
|
|
3181
|
+
"post-user-registration",
|
|
3182
|
+
"post-user-login"
|
|
3183
|
+
]>;
|
|
3184
|
+
form_id: z.ZodString;
|
|
3185
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3186
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
3187
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
3188
|
+
hook_id: z.ZodOptional<z.ZodString>;
|
|
3189
|
+
}, "strip", z.ZodTypeAny, {
|
|
3190
|
+
enabled: boolean;
|
|
3191
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3192
|
+
synchronous: boolean;
|
|
3193
|
+
form_id: string;
|
|
3194
|
+
priority?: number | undefined;
|
|
3195
|
+
hook_id?: string | undefined;
|
|
3196
|
+
}, {
|
|
3197
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3198
|
+
form_id: string;
|
|
3199
|
+
enabled?: boolean | undefined;
|
|
3200
|
+
synchronous?: boolean | undefined;
|
|
3201
|
+
priority?: number | undefined;
|
|
3202
|
+
hook_id?: string | undefined;
|
|
3203
|
+
}>
|
|
3204
|
+
]>;
|
|
2673
3205
|
export type HookInsert = z.infer<typeof hookInsertSchema>;
|
|
2674
|
-
declare const hookSchema: z.
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
}, "strip", z.ZodTypeAny, {
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
}, {
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
}
|
|
3206
|
+
declare const hookSchema: z.ZodUnion<[
|
|
3207
|
+
z.ZodObject<{
|
|
3208
|
+
hook_id: z.ZodString;
|
|
3209
|
+
url: z.ZodString;
|
|
3210
|
+
created_at: z.ZodString;
|
|
3211
|
+
updated_at: z.ZodString;
|
|
3212
|
+
trigger_id: z.ZodEnum<[
|
|
3213
|
+
"pre-user-signup",
|
|
3214
|
+
"post-user-registration",
|
|
3215
|
+
"post-user-login"
|
|
3216
|
+
]>;
|
|
3217
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3218
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
3219
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
3220
|
+
}, "strip", z.ZodTypeAny, {
|
|
3221
|
+
created_at: string;
|
|
3222
|
+
updated_at: string;
|
|
3223
|
+
enabled: boolean;
|
|
3224
|
+
url: string;
|
|
3225
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3226
|
+
synchronous: boolean;
|
|
3227
|
+
hook_id: string;
|
|
3228
|
+
priority?: number | undefined;
|
|
3229
|
+
}, {
|
|
3230
|
+
created_at: string;
|
|
3231
|
+
updated_at: string;
|
|
3232
|
+
url: string;
|
|
3233
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3234
|
+
hook_id: string;
|
|
3235
|
+
enabled?: boolean | undefined;
|
|
3236
|
+
synchronous?: boolean | undefined;
|
|
3237
|
+
priority?: number | undefined;
|
|
3238
|
+
}>,
|
|
3239
|
+
z.ZodObject<{
|
|
3240
|
+
hook_id: z.ZodString;
|
|
3241
|
+
form_id: z.ZodString;
|
|
3242
|
+
created_at: z.ZodString;
|
|
3243
|
+
updated_at: z.ZodString;
|
|
3244
|
+
trigger_id: z.ZodEnum<[
|
|
3245
|
+
"pre-user-signup",
|
|
3246
|
+
"post-user-registration",
|
|
3247
|
+
"post-user-login"
|
|
3248
|
+
]>;
|
|
3249
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
3250
|
+
synchronous: z.ZodDefault<z.ZodBoolean>;
|
|
3251
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
3252
|
+
}, "strip", z.ZodTypeAny, {
|
|
3253
|
+
created_at: string;
|
|
3254
|
+
updated_at: string;
|
|
3255
|
+
enabled: boolean;
|
|
3256
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3257
|
+
synchronous: boolean;
|
|
3258
|
+
hook_id: string;
|
|
3259
|
+
form_id: string;
|
|
3260
|
+
priority?: number | undefined;
|
|
3261
|
+
}, {
|
|
3262
|
+
created_at: string;
|
|
3263
|
+
updated_at: string;
|
|
3264
|
+
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
3265
|
+
hook_id: string;
|
|
3266
|
+
form_id: string;
|
|
3267
|
+
enabled?: boolean | undefined;
|
|
3268
|
+
synchronous?: boolean | undefined;
|
|
3269
|
+
priority?: number | undefined;
|
|
3270
|
+
}>
|
|
3271
|
+
]>;
|
|
2707
3272
|
export type Hook = z.infer<typeof hookSchema>;
|
|
2708
3273
|
export interface ListParams {
|
|
2709
3274
|
page: number;
|
|
@@ -5026,38 +5591,37 @@ declare const sqlUserSchema: z.ZodObject<{
|
|
|
5026
5591
|
}>;
|
|
5027
5592
|
declare const sqlHookSchema: z.ZodObject<{
|
|
5028
5593
|
tenant_id: z.ZodString;
|
|
5029
|
-
enabled: z.ZodNumber;
|
|
5030
|
-
synchronous: z.ZodNumber;
|
|
5031
|
-
trigger_id: z.ZodEnum<[
|
|
5032
|
-
"pre-user-signup",
|
|
5033
|
-
"post-user-registration",
|
|
5034
|
-
"post-user-login"
|
|
5035
|
-
]>;
|
|
5036
|
-
url: z.ZodString;
|
|
5037
|
-
priority: z.ZodOptional<z.ZodNumber>;
|
|
5038
|
-
hook_id: z.ZodString;
|
|
5039
5594
|
created_at: z.ZodString;
|
|
5040
5595
|
updated_at: z.ZodString;
|
|
5596
|
+
hook_id: z.ZodString;
|
|
5597
|
+
trigger_id: z.ZodString;
|
|
5598
|
+
priority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
5599
|
+
enabled: z.ZodNumber;
|
|
5600
|
+
synchronous: z.ZodNumber;
|
|
5601
|
+
url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5602
|
+
form_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5041
5603
|
}, "strip", z.ZodTypeAny, {
|
|
5042
5604
|
tenant_id: string;
|
|
5043
5605
|
enabled: number;
|
|
5044
5606
|
created_at: string;
|
|
5045
5607
|
updated_at: string;
|
|
5046
|
-
synchronous: number;
|
|
5047
|
-
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
5048
|
-
url: string;
|
|
5049
5608
|
hook_id: string;
|
|
5050
|
-
|
|
5609
|
+
trigger_id: string;
|
|
5610
|
+
synchronous: number;
|
|
5611
|
+
priority?: number | null | undefined;
|
|
5612
|
+
url?: string | null | undefined;
|
|
5613
|
+
form_id?: string | null | undefined;
|
|
5051
5614
|
}, {
|
|
5052
5615
|
tenant_id: string;
|
|
5053
5616
|
enabled: number;
|
|
5054
5617
|
created_at: string;
|
|
5055
5618
|
updated_at: string;
|
|
5056
|
-
synchronous: number;
|
|
5057
|
-
trigger_id: "pre-user-signup" | "post-user-registration" | "post-user-login";
|
|
5058
|
-
url: string;
|
|
5059
5619
|
hook_id: string;
|
|
5060
|
-
|
|
5620
|
+
trigger_id: string;
|
|
5621
|
+
synchronous: number;
|
|
5622
|
+
priority?: number | null | undefined;
|
|
5623
|
+
url?: string | null | undefined;
|
|
5624
|
+
form_id?: string | null | undefined;
|
|
5061
5625
|
}>;
|
|
5062
5626
|
declare const sqlEmailProvidersSchema: z.ZodObject<{
|
|
5063
5627
|
tenant_id: z.ZodString;
|