@authhero/kysely-adapter 10.10.0 → 10.12.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.
@@ -1681,6 +1681,969 @@ declare const customDomainWithTenantIdSchema: z.ZodObject<{
1681
1681
  } | undefined;
1682
1682
  }>;
1683
1683
  export type CustomDomainWithTenantId = z.infer<typeof customDomainWithTenantIdSchema>;
1684
+ declare const formInsertSchema: z.ZodObject<{
1685
+ name: z.ZodString;
1686
+ messages: z.ZodOptional<z.ZodObject<{
1687
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1688
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1689
+ }, "strip", z.ZodTypeAny, {
1690
+ custom?: Record<string, any> | undefined;
1691
+ errors?: Record<string, any> | undefined;
1692
+ }, {
1693
+ custom?: Record<string, any> | undefined;
1694
+ errors?: Record<string, any> | undefined;
1695
+ }>>;
1696
+ languages: z.ZodOptional<z.ZodObject<{
1697
+ primary: z.ZodOptional<z.ZodString>;
1698
+ default: z.ZodOptional<z.ZodString>;
1699
+ }, "strip", z.ZodTypeAny, {
1700
+ default?: string | undefined;
1701
+ primary?: string | undefined;
1702
+ }, {
1703
+ default?: string | undefined;
1704
+ primary?: string | undefined;
1705
+ }>>;
1706
+ translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1707
+ nodes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [
1708
+ z.ZodObject<{
1709
+ id: z.ZodString;
1710
+ type: z.ZodLiteral<"FLOW">;
1711
+ coordinates: z.ZodObject<{
1712
+ x: z.ZodNumber;
1713
+ y: z.ZodNumber;
1714
+ }, "strip", z.ZodTypeAny, {
1715
+ x: number;
1716
+ y: number;
1717
+ }, {
1718
+ x: number;
1719
+ y: number;
1720
+ }>;
1721
+ alias: z.ZodString;
1722
+ config: z.ZodObject<{
1723
+ flow_id: z.ZodString;
1724
+ next_node: z.ZodArray<z.ZodString, "many">;
1725
+ }, "strip", z.ZodTypeAny, {
1726
+ next_node: string[];
1727
+ flow_id: string;
1728
+ }, {
1729
+ next_node: string[];
1730
+ flow_id: string;
1731
+ }>;
1732
+ }, "strip", z.ZodTypeAny, {
1733
+ type: "FLOW";
1734
+ id: string;
1735
+ config: {
1736
+ next_node: string[];
1737
+ flow_id: string;
1738
+ };
1739
+ coordinates: {
1740
+ x: number;
1741
+ y: number;
1742
+ };
1743
+ alias: string;
1744
+ }, {
1745
+ type: "FLOW";
1746
+ id: string;
1747
+ config: {
1748
+ next_node: string[];
1749
+ flow_id: string;
1750
+ };
1751
+ coordinates: {
1752
+ x: number;
1753
+ y: number;
1754
+ };
1755
+ alias: string;
1756
+ }>,
1757
+ z.ZodObject<{
1758
+ id: z.ZodString;
1759
+ type: z.ZodLiteral<"ROUTER">;
1760
+ coordinates: z.ZodObject<{
1761
+ x: z.ZodNumber;
1762
+ y: z.ZodNumber;
1763
+ }, "strip", z.ZodTypeAny, {
1764
+ x: number;
1765
+ y: number;
1766
+ }, {
1767
+ x: number;
1768
+ y: number;
1769
+ }>;
1770
+ alias: z.ZodString;
1771
+ config: z.ZodObject<{
1772
+ rules: z.ZodArray<z.ZodObject<{
1773
+ id: z.ZodString;
1774
+ alias: z.ZodString;
1775
+ condition: z.ZodAny;
1776
+ next_node: z.ZodArray<z.ZodString, "many">;
1777
+ }, "strip", z.ZodTypeAny, {
1778
+ id: string;
1779
+ alias: string;
1780
+ next_node: string[];
1781
+ condition?: any;
1782
+ }, {
1783
+ id: string;
1784
+ alias: string;
1785
+ next_node: string[];
1786
+ condition?: any;
1787
+ }>, "many">;
1788
+ fallback: z.ZodArray<z.ZodString, "many">;
1789
+ }, "strip", z.ZodTypeAny, {
1790
+ rules: {
1791
+ id: string;
1792
+ alias: string;
1793
+ next_node: string[];
1794
+ condition?: any;
1795
+ }[];
1796
+ fallback: string[];
1797
+ }, {
1798
+ rules: {
1799
+ id: string;
1800
+ alias: string;
1801
+ next_node: string[];
1802
+ condition?: any;
1803
+ }[];
1804
+ fallback: string[];
1805
+ }>;
1806
+ }, "strip", z.ZodTypeAny, {
1807
+ type: "ROUTER";
1808
+ id: string;
1809
+ config: {
1810
+ rules: {
1811
+ id: string;
1812
+ alias: string;
1813
+ next_node: string[];
1814
+ condition?: any;
1815
+ }[];
1816
+ fallback: string[];
1817
+ };
1818
+ coordinates: {
1819
+ x: number;
1820
+ y: number;
1821
+ };
1822
+ alias: string;
1823
+ }, {
1824
+ type: "ROUTER";
1825
+ id: string;
1826
+ config: {
1827
+ rules: {
1828
+ id: string;
1829
+ alias: string;
1830
+ next_node: string[];
1831
+ condition?: any;
1832
+ }[];
1833
+ fallback: string[];
1834
+ };
1835
+ coordinates: {
1836
+ x: number;
1837
+ y: number;
1838
+ };
1839
+ alias: string;
1840
+ }>,
1841
+ z.ZodObject<{
1842
+ id: z.ZodString;
1843
+ type: z.ZodLiteral<"STEP">;
1844
+ coordinates: z.ZodObject<{
1845
+ x: z.ZodNumber;
1846
+ y: z.ZodNumber;
1847
+ }, "strip", z.ZodTypeAny, {
1848
+ x: number;
1849
+ y: number;
1850
+ }, {
1851
+ x: number;
1852
+ y: number;
1853
+ }>;
1854
+ alias: z.ZodString;
1855
+ config: z.ZodObject<{
1856
+ components: z.ZodArray<z.ZodAny, "many">;
1857
+ next_node: z.ZodArray<z.ZodString, "many">;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ components: any[];
1860
+ next_node: string[];
1861
+ }, {
1862
+ components: any[];
1863
+ next_node: string[];
1864
+ }>;
1865
+ }, "strip", z.ZodTypeAny, {
1866
+ type: "STEP";
1867
+ id: string;
1868
+ config: {
1869
+ components: any[];
1870
+ next_node: string[];
1871
+ };
1872
+ coordinates: {
1873
+ x: number;
1874
+ y: number;
1875
+ };
1876
+ alias: string;
1877
+ }, {
1878
+ type: "STEP";
1879
+ id: string;
1880
+ config: {
1881
+ components: any[];
1882
+ next_node: string[];
1883
+ };
1884
+ coordinates: {
1885
+ x: number;
1886
+ y: number;
1887
+ };
1888
+ alias: string;
1889
+ }>
1890
+ ]>, "many">>;
1891
+ start: z.ZodOptional<z.ZodObject<{
1892
+ hidden_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
1893
+ key: z.ZodString;
1894
+ value: z.ZodString;
1895
+ }, "strip", z.ZodTypeAny, {
1896
+ value: string;
1897
+ key: string;
1898
+ }, {
1899
+ value: string;
1900
+ key: string;
1901
+ }>, "many">>;
1902
+ next_node: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1903
+ coordinates: z.ZodOptional<z.ZodObject<{
1904
+ x: z.ZodNumber;
1905
+ y: z.ZodNumber;
1906
+ }, "strip", z.ZodTypeAny, {
1907
+ x: number;
1908
+ y: number;
1909
+ }, {
1910
+ x: number;
1911
+ y: number;
1912
+ }>>;
1913
+ }, "strip", z.ZodTypeAny, {
1914
+ coordinates?: {
1915
+ x: number;
1916
+ y: number;
1917
+ } | undefined;
1918
+ next_node?: string[] | undefined;
1919
+ hidden_fields?: {
1920
+ value: string;
1921
+ key: string;
1922
+ }[] | undefined;
1923
+ }, {
1924
+ coordinates?: {
1925
+ x: number;
1926
+ y: number;
1927
+ } | undefined;
1928
+ next_node?: string[] | undefined;
1929
+ hidden_fields?: {
1930
+ value: string;
1931
+ key: string;
1932
+ }[] | undefined;
1933
+ }>>;
1934
+ ending: z.ZodOptional<z.ZodObject<{
1935
+ redirection: z.ZodOptional<z.ZodObject<{
1936
+ delay: z.ZodOptional<z.ZodNumber>;
1937
+ target: z.ZodOptional<z.ZodString>;
1938
+ }, "strip", z.ZodTypeAny, {
1939
+ delay?: number | undefined;
1940
+ target?: string | undefined;
1941
+ }, {
1942
+ delay?: number | undefined;
1943
+ target?: string | undefined;
1944
+ }>>;
1945
+ after_submit: z.ZodOptional<z.ZodObject<{
1946
+ flow_id: z.ZodOptional<z.ZodString>;
1947
+ }, "strip", z.ZodTypeAny, {
1948
+ flow_id?: string | undefined;
1949
+ }, {
1950
+ flow_id?: string | undefined;
1951
+ }>>;
1952
+ coordinates: z.ZodOptional<z.ZodObject<{
1953
+ x: z.ZodNumber;
1954
+ y: z.ZodNumber;
1955
+ }, "strip", z.ZodTypeAny, {
1956
+ x: number;
1957
+ y: number;
1958
+ }, {
1959
+ x: number;
1960
+ y: number;
1961
+ }>>;
1962
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
1963
+ }, "strip", z.ZodTypeAny, {
1964
+ coordinates?: {
1965
+ x: number;
1966
+ y: number;
1967
+ } | undefined;
1968
+ resume_flow?: boolean | undefined;
1969
+ redirection?: {
1970
+ delay?: number | undefined;
1971
+ target?: string | undefined;
1972
+ } | undefined;
1973
+ after_submit?: {
1974
+ flow_id?: string | undefined;
1975
+ } | undefined;
1976
+ }, {
1977
+ coordinates?: {
1978
+ x: number;
1979
+ y: number;
1980
+ } | undefined;
1981
+ resume_flow?: boolean | undefined;
1982
+ redirection?: {
1983
+ delay?: number | undefined;
1984
+ target?: string | undefined;
1985
+ } | undefined;
1986
+ after_submit?: {
1987
+ flow_id?: string | undefined;
1988
+ } | undefined;
1989
+ }>>;
1990
+ style: z.ZodOptional<z.ZodObject<{
1991
+ css: z.ZodOptional<z.ZodString>;
1992
+ }, "strip", z.ZodTypeAny, {
1993
+ css?: string | undefined;
1994
+ }, {
1995
+ css?: string | undefined;
1996
+ }>>;
1997
+ }, "strip", z.ZodTypeAny, {
1998
+ name: string;
1999
+ start?: {
2000
+ coordinates?: {
2001
+ x: number;
2002
+ y: number;
2003
+ } | undefined;
2004
+ next_node?: string[] | undefined;
2005
+ hidden_fields?: {
2006
+ value: string;
2007
+ key: string;
2008
+ }[] | undefined;
2009
+ } | undefined;
2010
+ style?: {
2011
+ css?: string | undefined;
2012
+ } | undefined;
2013
+ languages?: {
2014
+ default?: string | undefined;
2015
+ primary?: string | undefined;
2016
+ } | undefined;
2017
+ nodes?: ({
2018
+ type: "FLOW";
2019
+ id: string;
2020
+ config: {
2021
+ next_node: string[];
2022
+ flow_id: string;
2023
+ };
2024
+ coordinates: {
2025
+ x: number;
2026
+ y: number;
2027
+ };
2028
+ alias: string;
2029
+ } | {
2030
+ type: "ROUTER";
2031
+ id: string;
2032
+ config: {
2033
+ rules: {
2034
+ id: string;
2035
+ alias: string;
2036
+ next_node: string[];
2037
+ condition?: any;
2038
+ }[];
2039
+ fallback: string[];
2040
+ };
2041
+ coordinates: {
2042
+ x: number;
2043
+ y: number;
2044
+ };
2045
+ alias: string;
2046
+ } | {
2047
+ type: "STEP";
2048
+ id: string;
2049
+ config: {
2050
+ components: any[];
2051
+ next_node: string[];
2052
+ };
2053
+ coordinates: {
2054
+ x: number;
2055
+ y: number;
2056
+ };
2057
+ alias: string;
2058
+ })[] | undefined;
2059
+ ending?: {
2060
+ coordinates?: {
2061
+ x: number;
2062
+ y: number;
2063
+ } | undefined;
2064
+ resume_flow?: boolean | undefined;
2065
+ redirection?: {
2066
+ delay?: number | undefined;
2067
+ target?: string | undefined;
2068
+ } | undefined;
2069
+ after_submit?: {
2070
+ flow_id?: string | undefined;
2071
+ } | undefined;
2072
+ } | undefined;
2073
+ messages?: {
2074
+ custom?: Record<string, any> | undefined;
2075
+ errors?: Record<string, any> | undefined;
2076
+ } | undefined;
2077
+ translations?: Record<string, any> | undefined;
2078
+ }, {
2079
+ name: string;
2080
+ start?: {
2081
+ coordinates?: {
2082
+ x: number;
2083
+ y: number;
2084
+ } | undefined;
2085
+ next_node?: string[] | undefined;
2086
+ hidden_fields?: {
2087
+ value: string;
2088
+ key: string;
2089
+ }[] | undefined;
2090
+ } | undefined;
2091
+ style?: {
2092
+ css?: string | undefined;
2093
+ } | undefined;
2094
+ languages?: {
2095
+ default?: string | undefined;
2096
+ primary?: string | undefined;
2097
+ } | undefined;
2098
+ nodes?: ({
2099
+ type: "FLOW";
2100
+ id: string;
2101
+ config: {
2102
+ next_node: string[];
2103
+ flow_id: string;
2104
+ };
2105
+ coordinates: {
2106
+ x: number;
2107
+ y: number;
2108
+ };
2109
+ alias: string;
2110
+ } | {
2111
+ type: "ROUTER";
2112
+ id: string;
2113
+ config: {
2114
+ rules: {
2115
+ id: string;
2116
+ alias: string;
2117
+ next_node: string[];
2118
+ condition?: any;
2119
+ }[];
2120
+ fallback: string[];
2121
+ };
2122
+ coordinates: {
2123
+ x: number;
2124
+ y: number;
2125
+ };
2126
+ alias: string;
2127
+ } | {
2128
+ type: "STEP";
2129
+ id: string;
2130
+ config: {
2131
+ components: any[];
2132
+ next_node: string[];
2133
+ };
2134
+ coordinates: {
2135
+ x: number;
2136
+ y: number;
2137
+ };
2138
+ alias: string;
2139
+ })[] | undefined;
2140
+ ending?: {
2141
+ coordinates?: {
2142
+ x: number;
2143
+ y: number;
2144
+ } | undefined;
2145
+ resume_flow?: boolean | undefined;
2146
+ redirection?: {
2147
+ delay?: number | undefined;
2148
+ target?: string | undefined;
2149
+ } | undefined;
2150
+ after_submit?: {
2151
+ flow_id?: string | undefined;
2152
+ } | undefined;
2153
+ } | undefined;
2154
+ messages?: {
2155
+ custom?: Record<string, any> | undefined;
2156
+ errors?: Record<string, any> | undefined;
2157
+ } | undefined;
2158
+ translations?: Record<string, any> | undefined;
2159
+ }>;
2160
+ export type FormInsert = z.input<typeof formInsertSchema>;
2161
+ declare const formSchema: z.ZodObject<{
2162
+ id: z.ZodString;
2163
+ name: z.ZodString;
2164
+ messages: z.ZodOptional<z.ZodObject<{
2165
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2166
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2167
+ }, "strip", z.ZodTypeAny, {
2168
+ custom?: Record<string, any> | undefined;
2169
+ errors?: Record<string, any> | undefined;
2170
+ }, {
2171
+ custom?: Record<string, any> | undefined;
2172
+ errors?: Record<string, any> | undefined;
2173
+ }>>;
2174
+ languages: z.ZodOptional<z.ZodObject<{
2175
+ primary: z.ZodOptional<z.ZodString>;
2176
+ default: z.ZodOptional<z.ZodString>;
2177
+ }, "strip", z.ZodTypeAny, {
2178
+ default?: string | undefined;
2179
+ primary?: string | undefined;
2180
+ }, {
2181
+ default?: string | undefined;
2182
+ primary?: string | undefined;
2183
+ }>>;
2184
+ translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
2185
+ nodes: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [
2186
+ z.ZodObject<{
2187
+ id: z.ZodString;
2188
+ type: z.ZodLiteral<"FLOW">;
2189
+ coordinates: z.ZodObject<{
2190
+ x: z.ZodNumber;
2191
+ y: z.ZodNumber;
2192
+ }, "strip", z.ZodTypeAny, {
2193
+ x: number;
2194
+ y: number;
2195
+ }, {
2196
+ x: number;
2197
+ y: number;
2198
+ }>;
2199
+ alias: z.ZodString;
2200
+ config: z.ZodObject<{
2201
+ flow_id: z.ZodString;
2202
+ next_node: z.ZodArray<z.ZodString, "many">;
2203
+ }, "strip", z.ZodTypeAny, {
2204
+ next_node: string[];
2205
+ flow_id: string;
2206
+ }, {
2207
+ next_node: string[];
2208
+ flow_id: string;
2209
+ }>;
2210
+ }, "strip", z.ZodTypeAny, {
2211
+ type: "FLOW";
2212
+ id: string;
2213
+ config: {
2214
+ next_node: string[];
2215
+ flow_id: string;
2216
+ };
2217
+ coordinates: {
2218
+ x: number;
2219
+ y: number;
2220
+ };
2221
+ alias: string;
2222
+ }, {
2223
+ type: "FLOW";
2224
+ id: string;
2225
+ config: {
2226
+ next_node: string[];
2227
+ flow_id: string;
2228
+ };
2229
+ coordinates: {
2230
+ x: number;
2231
+ y: number;
2232
+ };
2233
+ alias: string;
2234
+ }>,
2235
+ z.ZodObject<{
2236
+ id: z.ZodString;
2237
+ type: z.ZodLiteral<"ROUTER">;
2238
+ coordinates: z.ZodObject<{
2239
+ x: z.ZodNumber;
2240
+ y: z.ZodNumber;
2241
+ }, "strip", z.ZodTypeAny, {
2242
+ x: number;
2243
+ y: number;
2244
+ }, {
2245
+ x: number;
2246
+ y: number;
2247
+ }>;
2248
+ alias: z.ZodString;
2249
+ config: z.ZodObject<{
2250
+ rules: z.ZodArray<z.ZodObject<{
2251
+ id: z.ZodString;
2252
+ alias: z.ZodString;
2253
+ condition: z.ZodAny;
2254
+ next_node: z.ZodArray<z.ZodString, "many">;
2255
+ }, "strip", z.ZodTypeAny, {
2256
+ id: string;
2257
+ alias: string;
2258
+ next_node: string[];
2259
+ condition?: any;
2260
+ }, {
2261
+ id: string;
2262
+ alias: string;
2263
+ next_node: string[];
2264
+ condition?: any;
2265
+ }>, "many">;
2266
+ fallback: z.ZodArray<z.ZodString, "many">;
2267
+ }, "strip", z.ZodTypeAny, {
2268
+ rules: {
2269
+ id: string;
2270
+ alias: string;
2271
+ next_node: string[];
2272
+ condition?: any;
2273
+ }[];
2274
+ fallback: string[];
2275
+ }, {
2276
+ rules: {
2277
+ id: string;
2278
+ alias: string;
2279
+ next_node: string[];
2280
+ condition?: any;
2281
+ }[];
2282
+ fallback: string[];
2283
+ }>;
2284
+ }, "strip", z.ZodTypeAny, {
2285
+ type: "ROUTER";
2286
+ id: string;
2287
+ config: {
2288
+ rules: {
2289
+ id: string;
2290
+ alias: string;
2291
+ next_node: string[];
2292
+ condition?: any;
2293
+ }[];
2294
+ fallback: string[];
2295
+ };
2296
+ coordinates: {
2297
+ x: number;
2298
+ y: number;
2299
+ };
2300
+ alias: string;
2301
+ }, {
2302
+ type: "ROUTER";
2303
+ id: string;
2304
+ config: {
2305
+ rules: {
2306
+ id: string;
2307
+ alias: string;
2308
+ next_node: string[];
2309
+ condition?: any;
2310
+ }[];
2311
+ fallback: string[];
2312
+ };
2313
+ coordinates: {
2314
+ x: number;
2315
+ y: number;
2316
+ };
2317
+ alias: string;
2318
+ }>,
2319
+ z.ZodObject<{
2320
+ id: z.ZodString;
2321
+ type: z.ZodLiteral<"STEP">;
2322
+ coordinates: z.ZodObject<{
2323
+ x: z.ZodNumber;
2324
+ y: z.ZodNumber;
2325
+ }, "strip", z.ZodTypeAny, {
2326
+ x: number;
2327
+ y: number;
2328
+ }, {
2329
+ x: number;
2330
+ y: number;
2331
+ }>;
2332
+ alias: z.ZodString;
2333
+ config: z.ZodObject<{
2334
+ components: z.ZodArray<z.ZodAny, "many">;
2335
+ next_node: z.ZodArray<z.ZodString, "many">;
2336
+ }, "strip", z.ZodTypeAny, {
2337
+ components: any[];
2338
+ next_node: string[];
2339
+ }, {
2340
+ components: any[];
2341
+ next_node: string[];
2342
+ }>;
2343
+ }, "strip", z.ZodTypeAny, {
2344
+ type: "STEP";
2345
+ id: string;
2346
+ config: {
2347
+ components: any[];
2348
+ next_node: string[];
2349
+ };
2350
+ coordinates: {
2351
+ x: number;
2352
+ y: number;
2353
+ };
2354
+ alias: string;
2355
+ }, {
2356
+ type: "STEP";
2357
+ id: string;
2358
+ config: {
2359
+ components: any[];
2360
+ next_node: string[];
2361
+ };
2362
+ coordinates: {
2363
+ x: number;
2364
+ y: number;
2365
+ };
2366
+ alias: string;
2367
+ }>
2368
+ ]>, "many">>;
2369
+ start: z.ZodOptional<z.ZodObject<{
2370
+ hidden_fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2371
+ key: z.ZodString;
2372
+ value: z.ZodString;
2373
+ }, "strip", z.ZodTypeAny, {
2374
+ value: string;
2375
+ key: string;
2376
+ }, {
2377
+ value: string;
2378
+ key: string;
2379
+ }>, "many">>;
2380
+ next_node: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2381
+ coordinates: z.ZodOptional<z.ZodObject<{
2382
+ x: z.ZodNumber;
2383
+ y: z.ZodNumber;
2384
+ }, "strip", z.ZodTypeAny, {
2385
+ x: number;
2386
+ y: number;
2387
+ }, {
2388
+ x: number;
2389
+ y: number;
2390
+ }>>;
2391
+ }, "strip", z.ZodTypeAny, {
2392
+ coordinates?: {
2393
+ x: number;
2394
+ y: number;
2395
+ } | undefined;
2396
+ next_node?: string[] | undefined;
2397
+ hidden_fields?: {
2398
+ value: string;
2399
+ key: string;
2400
+ }[] | undefined;
2401
+ }, {
2402
+ coordinates?: {
2403
+ x: number;
2404
+ y: number;
2405
+ } | undefined;
2406
+ next_node?: string[] | undefined;
2407
+ hidden_fields?: {
2408
+ value: string;
2409
+ key: string;
2410
+ }[] | undefined;
2411
+ }>>;
2412
+ ending: z.ZodOptional<z.ZodObject<{
2413
+ redirection: z.ZodOptional<z.ZodObject<{
2414
+ delay: z.ZodOptional<z.ZodNumber>;
2415
+ target: z.ZodOptional<z.ZodString>;
2416
+ }, "strip", z.ZodTypeAny, {
2417
+ delay?: number | undefined;
2418
+ target?: string | undefined;
2419
+ }, {
2420
+ delay?: number | undefined;
2421
+ target?: string | undefined;
2422
+ }>>;
2423
+ after_submit: z.ZodOptional<z.ZodObject<{
2424
+ flow_id: z.ZodOptional<z.ZodString>;
2425
+ }, "strip", z.ZodTypeAny, {
2426
+ flow_id?: string | undefined;
2427
+ }, {
2428
+ flow_id?: string | undefined;
2429
+ }>>;
2430
+ coordinates: z.ZodOptional<z.ZodObject<{
2431
+ x: z.ZodNumber;
2432
+ y: z.ZodNumber;
2433
+ }, "strip", z.ZodTypeAny, {
2434
+ x: number;
2435
+ y: number;
2436
+ }, {
2437
+ x: number;
2438
+ y: number;
2439
+ }>>;
2440
+ resume_flow: z.ZodOptional<z.ZodBoolean>;
2441
+ }, "strip", z.ZodTypeAny, {
2442
+ coordinates?: {
2443
+ x: number;
2444
+ y: number;
2445
+ } | undefined;
2446
+ resume_flow?: boolean | undefined;
2447
+ redirection?: {
2448
+ delay?: number | undefined;
2449
+ target?: string | undefined;
2450
+ } | undefined;
2451
+ after_submit?: {
2452
+ flow_id?: string | undefined;
2453
+ } | undefined;
2454
+ }, {
2455
+ coordinates?: {
2456
+ x: number;
2457
+ y: number;
2458
+ } | undefined;
2459
+ resume_flow?: boolean | undefined;
2460
+ redirection?: {
2461
+ delay?: number | undefined;
2462
+ target?: string | undefined;
2463
+ } | undefined;
2464
+ after_submit?: {
2465
+ flow_id?: string | undefined;
2466
+ } | undefined;
2467
+ }>>;
2468
+ style: z.ZodOptional<z.ZodObject<{
2469
+ css: z.ZodOptional<z.ZodString>;
2470
+ }, "strip", z.ZodTypeAny, {
2471
+ css?: string | undefined;
2472
+ }, {
2473
+ css?: string | undefined;
2474
+ }>>;
2475
+ created_at: z.ZodString;
2476
+ updated_at: z.ZodString;
2477
+ }, "strip", z.ZodTypeAny, {
2478
+ created_at: string;
2479
+ updated_at: string;
2480
+ name: string;
2481
+ id: string;
2482
+ start?: {
2483
+ coordinates?: {
2484
+ x: number;
2485
+ y: number;
2486
+ } | undefined;
2487
+ next_node?: string[] | undefined;
2488
+ hidden_fields?: {
2489
+ value: string;
2490
+ key: string;
2491
+ }[] | undefined;
2492
+ } | undefined;
2493
+ style?: {
2494
+ css?: string | undefined;
2495
+ } | undefined;
2496
+ languages?: {
2497
+ default?: string | undefined;
2498
+ primary?: string | undefined;
2499
+ } | undefined;
2500
+ nodes?: ({
2501
+ type: "FLOW";
2502
+ id: string;
2503
+ config: {
2504
+ next_node: string[];
2505
+ flow_id: string;
2506
+ };
2507
+ coordinates: {
2508
+ x: number;
2509
+ y: number;
2510
+ };
2511
+ alias: string;
2512
+ } | {
2513
+ type: "ROUTER";
2514
+ id: string;
2515
+ config: {
2516
+ rules: {
2517
+ id: string;
2518
+ alias: string;
2519
+ next_node: string[];
2520
+ condition?: any;
2521
+ }[];
2522
+ fallback: string[];
2523
+ };
2524
+ coordinates: {
2525
+ x: number;
2526
+ y: number;
2527
+ };
2528
+ alias: string;
2529
+ } | {
2530
+ type: "STEP";
2531
+ id: string;
2532
+ config: {
2533
+ components: any[];
2534
+ next_node: string[];
2535
+ };
2536
+ coordinates: {
2537
+ x: number;
2538
+ y: number;
2539
+ };
2540
+ alias: string;
2541
+ })[] | undefined;
2542
+ ending?: {
2543
+ coordinates?: {
2544
+ x: number;
2545
+ y: number;
2546
+ } | undefined;
2547
+ resume_flow?: boolean | undefined;
2548
+ redirection?: {
2549
+ delay?: number | undefined;
2550
+ target?: string | undefined;
2551
+ } | undefined;
2552
+ after_submit?: {
2553
+ flow_id?: string | undefined;
2554
+ } | undefined;
2555
+ } | undefined;
2556
+ messages?: {
2557
+ custom?: Record<string, any> | undefined;
2558
+ errors?: Record<string, any> | undefined;
2559
+ } | undefined;
2560
+ translations?: Record<string, any> | undefined;
2561
+ }, {
2562
+ created_at: string;
2563
+ updated_at: string;
2564
+ name: string;
2565
+ id: string;
2566
+ start?: {
2567
+ coordinates?: {
2568
+ x: number;
2569
+ y: number;
2570
+ } | undefined;
2571
+ next_node?: string[] | undefined;
2572
+ hidden_fields?: {
2573
+ value: string;
2574
+ key: string;
2575
+ }[] | undefined;
2576
+ } | undefined;
2577
+ style?: {
2578
+ css?: string | undefined;
2579
+ } | undefined;
2580
+ languages?: {
2581
+ default?: string | undefined;
2582
+ primary?: string | undefined;
2583
+ } | undefined;
2584
+ nodes?: ({
2585
+ type: "FLOW";
2586
+ id: string;
2587
+ config: {
2588
+ next_node: string[];
2589
+ flow_id: string;
2590
+ };
2591
+ coordinates: {
2592
+ x: number;
2593
+ y: number;
2594
+ };
2595
+ alias: string;
2596
+ } | {
2597
+ type: "ROUTER";
2598
+ id: string;
2599
+ config: {
2600
+ rules: {
2601
+ id: string;
2602
+ alias: string;
2603
+ next_node: string[];
2604
+ condition?: any;
2605
+ }[];
2606
+ fallback: string[];
2607
+ };
2608
+ coordinates: {
2609
+ x: number;
2610
+ y: number;
2611
+ };
2612
+ alias: string;
2613
+ } | {
2614
+ type: "STEP";
2615
+ id: string;
2616
+ config: {
2617
+ components: any[];
2618
+ next_node: string[];
2619
+ };
2620
+ coordinates: {
2621
+ x: number;
2622
+ y: number;
2623
+ };
2624
+ alias: string;
2625
+ })[] | undefined;
2626
+ ending?: {
2627
+ coordinates?: {
2628
+ x: number;
2629
+ y: number;
2630
+ } | undefined;
2631
+ resume_flow?: boolean | undefined;
2632
+ redirection?: {
2633
+ delay?: number | undefined;
2634
+ target?: string | undefined;
2635
+ } | undefined;
2636
+ after_submit?: {
2637
+ flow_id?: string | undefined;
2638
+ } | undefined;
2639
+ } | undefined;
2640
+ messages?: {
2641
+ custom?: Record<string, any> | undefined;
2642
+ errors?: Record<string, any> | undefined;
2643
+ } | undefined;
2644
+ translations?: Record<string, any> | undefined;
2645
+ }>;
2646
+ export type Form = z.infer<typeof formSchema>;
1684
2647
  declare const hookInsertSchema: z.ZodObject<{
1685
2648
  trigger_id: z.ZodEnum<[
1686
2649
  "pre-user-signup",
@@ -2586,6 +3549,10 @@ declare const themeInsertSchema: z.ZodObject<{
2586
3549
  bold: boolean;
2587
3550
  size: number;
2588
3551
  };
3552
+ links: {
3553
+ bold: boolean;
3554
+ size: number;
3555
+ };
2589
3556
  body_text: {
2590
3557
  bold: boolean;
2591
3558
  size: number;
@@ -2599,10 +3566,6 @@ declare const themeInsertSchema: z.ZodObject<{
2599
3566
  bold: boolean;
2600
3567
  size: number;
2601
3568
  };
2602
- links: {
2603
- bold: boolean;
2604
- size: number;
2605
- };
2606
3569
  links_style: "normal";
2607
3570
  reference_text_size: number;
2608
3571
  subtitle: {
@@ -2614,6 +3577,10 @@ declare const themeInsertSchema: z.ZodObject<{
2614
3577
  bold: boolean;
2615
3578
  size: number;
2616
3579
  };
3580
+ links: {
3581
+ bold: boolean;
3582
+ size: number;
3583
+ };
2617
3584
  body_text: {
2618
3585
  bold: boolean;
2619
3586
  size: number;
@@ -2627,10 +3594,6 @@ declare const themeInsertSchema: z.ZodObject<{
2627
3594
  bold: boolean;
2628
3595
  size: number;
2629
3596
  };
2630
- links: {
2631
- bold: boolean;
2632
- size: number;
2633
- };
2634
3597
  links_style: "normal";
2635
3598
  reference_text_size: number;
2636
3599
  subtitle: {
@@ -2722,6 +3685,10 @@ declare const themeInsertSchema: z.ZodObject<{
2722
3685
  bold: boolean;
2723
3686
  size: number;
2724
3687
  };
3688
+ links: {
3689
+ bold: boolean;
3690
+ size: number;
3691
+ };
2725
3692
  body_text: {
2726
3693
  bold: boolean;
2727
3694
  size: number;
@@ -2735,10 +3702,6 @@ declare const themeInsertSchema: z.ZodObject<{
2735
3702
  bold: boolean;
2736
3703
  size: number;
2737
3704
  };
2738
- links: {
2739
- bold: boolean;
2740
- size: number;
2741
- };
2742
3705
  links_style: "normal";
2743
3706
  reference_text_size: number;
2744
3707
  subtitle: {
@@ -2797,6 +3760,10 @@ declare const themeInsertSchema: z.ZodObject<{
2797
3760
  bold: boolean;
2798
3761
  size: number;
2799
3762
  };
3763
+ links: {
3764
+ bold: boolean;
3765
+ size: number;
3766
+ };
2800
3767
  body_text: {
2801
3768
  bold: boolean;
2802
3769
  size: number;
@@ -2810,10 +3777,6 @@ declare const themeInsertSchema: z.ZodObject<{
2810
3777
  bold: boolean;
2811
3778
  size: number;
2812
3779
  };
2813
- links: {
2814
- bold: boolean;
2815
- size: number;
2816
- };
2817
3780
  links_style: "normal";
2818
3781
  reference_text_size: number;
2819
3782
  subtitle: {
@@ -3001,6 +3964,10 @@ declare const themeSchema: z.ZodObject<{
3001
3964
  bold: boolean;
3002
3965
  size: number;
3003
3966
  };
3967
+ links: {
3968
+ bold: boolean;
3969
+ size: number;
3970
+ };
3004
3971
  body_text: {
3005
3972
  bold: boolean;
3006
3973
  size: number;
@@ -3014,10 +3981,6 @@ declare const themeSchema: z.ZodObject<{
3014
3981
  bold: boolean;
3015
3982
  size: number;
3016
3983
  };
3017
- links: {
3018
- bold: boolean;
3019
- size: number;
3020
- };
3021
3984
  links_style: "normal";
3022
3985
  reference_text_size: number;
3023
3986
  subtitle: {
@@ -3029,6 +3992,10 @@ declare const themeSchema: z.ZodObject<{
3029
3992
  bold: boolean;
3030
3993
  size: number;
3031
3994
  };
3995
+ links: {
3996
+ bold: boolean;
3997
+ size: number;
3998
+ };
3032
3999
  body_text: {
3033
4000
  bold: boolean;
3034
4001
  size: number;
@@ -3042,10 +4009,6 @@ declare const themeSchema: z.ZodObject<{
3042
4009
  bold: boolean;
3043
4010
  size: number;
3044
4011
  };
3045
- links: {
3046
- bold: boolean;
3047
- size: number;
3048
- };
3049
4012
  links_style: "normal";
3050
4013
  reference_text_size: number;
3051
4014
  subtitle: {
@@ -3139,6 +4102,10 @@ declare const themeSchema: z.ZodObject<{
3139
4102
  bold: boolean;
3140
4103
  size: number;
3141
4104
  };
4105
+ links: {
4106
+ bold: boolean;
4107
+ size: number;
4108
+ };
3142
4109
  body_text: {
3143
4110
  bold: boolean;
3144
4111
  size: number;
@@ -3152,10 +4119,6 @@ declare const themeSchema: z.ZodObject<{
3152
4119
  bold: boolean;
3153
4120
  size: number;
3154
4121
  };
3155
- links: {
3156
- bold: boolean;
3157
- size: number;
3158
- };
3159
4122
  links_style: "normal";
3160
4123
  reference_text_size: number;
3161
4124
  subtitle: {
@@ -3215,6 +4178,10 @@ declare const themeSchema: z.ZodObject<{
3215
4178
  bold: boolean;
3216
4179
  size: number;
3217
4180
  };
4181
+ links: {
4182
+ bold: boolean;
4183
+ size: number;
4184
+ };
3218
4185
  body_text: {
3219
4186
  bold: boolean;
3220
4187
  size: number;
@@ -3228,10 +4195,6 @@ declare const themeSchema: z.ZodObject<{
3228
4195
  bold: boolean;
3229
4196
  size: number;
3230
4197
  };
3231
- links: {
3232
- bold: boolean;
3233
- size: number;
3234
- };
3235
4198
  links_style: "normal";
3236
4199
  reference_text_size: number;
3237
4200
  subtitle: {
@@ -3700,6 +4663,16 @@ export interface RefreshTokensAdapter {
3700
4663
  update: (tenant_id: string, id: string, refresh_token: Partial<RefreshToken>) => Promise<boolean>;
3701
4664
  remove: (tenant_id: string, id: string) => Promise<boolean>;
3702
4665
  }
4666
+ export interface ListFormsResponse extends Totals {
4667
+ forms: Form[];
4668
+ }
4669
+ export interface FormsAdapter {
4670
+ create(tenant_id: string, params: FormInsert): Promise<Form>;
4671
+ get(tenant_id: string, form_id: string): Promise<Form | null>;
4672
+ remove(tenant_id: string, form_id: string): Promise<boolean>;
4673
+ update(tenant_id: string, form_id: string, form: Partial<FormInsert>): Promise<boolean>;
4674
+ list(tenant_id: string, params?: ListParams): Promise<ListFormsResponse>;
4675
+ }
3703
4676
  export interface DataAdapters {
3704
4677
  applications: ApplicationsAdapter;
3705
4678
  branding: BrandingAdapter;
@@ -3708,6 +4681,7 @@ export interface DataAdapters {
3708
4681
  connections: ConnectionsAdapter;
3709
4682
  customDomains: CustomDomainsAdapter;
3710
4683
  emailProviders: EmailProvidersAdapter;
4684
+ forms: FormsAdapter;
3711
4685
  hooks: HooksAdapter;
3712
4686
  keys: KeysAdapter;
3713
4687
  loginSessions: LoginSessionsAdapter;
@@ -4296,6 +5270,86 @@ declare const sqlCustomDomainSchema: z.ZodObject<{
4296
5270
  custom_client_ip_header?: "null" | "true-client-ip" | "cf-connecting-ip" | "x-forwarded-for" | "x-azure-clientip" | undefined;
4297
5271
  domain_metadata?: Record<string, string> | undefined;
4298
5272
  }>;
5273
+ declare const sqlFormSchema: z.ZodObject<{
5274
+ tenant_id: z.ZodString;
5275
+ nodes: z.ZodDefault<z.ZodOptional<z.ZodString>>;
5276
+ start: z.ZodDefault<z.ZodOptional<z.ZodString>>;
5277
+ ending: z.ZodDefault<z.ZodOptional<z.ZodString>>;
5278
+ id: z.ZodString;
5279
+ name: z.ZodString;
5280
+ messages: z.ZodOptional<z.ZodObject<{
5281
+ errors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5282
+ custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5283
+ }, "strip", z.ZodTypeAny, {
5284
+ custom?: Record<string, any> | undefined;
5285
+ errors?: Record<string, any> | undefined;
5286
+ }, {
5287
+ custom?: Record<string, any> | undefined;
5288
+ errors?: Record<string, any> | undefined;
5289
+ }>>;
5290
+ languages: z.ZodOptional<z.ZodObject<{
5291
+ primary: z.ZodOptional<z.ZodString>;
5292
+ default: z.ZodOptional<z.ZodString>;
5293
+ }, "strip", z.ZodTypeAny, {
5294
+ default?: string | undefined;
5295
+ primary?: string | undefined;
5296
+ }, {
5297
+ default?: string | undefined;
5298
+ primary?: string | undefined;
5299
+ }>>;
5300
+ translations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5301
+ style: z.ZodOptional<z.ZodObject<{
5302
+ css: z.ZodOptional<z.ZodString>;
5303
+ }, "strip", z.ZodTypeAny, {
5304
+ css?: string | undefined;
5305
+ }, {
5306
+ css?: string | undefined;
5307
+ }>>;
5308
+ created_at: z.ZodString;
5309
+ updated_at: z.ZodString;
5310
+ }, "strip", z.ZodTypeAny, {
5311
+ tenant_id: string;
5312
+ id: string;
5313
+ name: string;
5314
+ created_at: string;
5315
+ updated_at: string;
5316
+ nodes: string;
5317
+ start: string;
5318
+ ending: string;
5319
+ messages?: {
5320
+ custom?: Record<string, any> | undefined;
5321
+ errors?: Record<string, any> | undefined;
5322
+ } | undefined;
5323
+ languages?: {
5324
+ default?: string | undefined;
5325
+ primary?: string | undefined;
5326
+ } | undefined;
5327
+ translations?: Record<string, any> | undefined;
5328
+ style?: {
5329
+ css?: string | undefined;
5330
+ } | undefined;
5331
+ }, {
5332
+ tenant_id: string;
5333
+ id: string;
5334
+ name: string;
5335
+ created_at: string;
5336
+ updated_at: string;
5337
+ nodes?: string | undefined;
5338
+ start?: string | undefined;
5339
+ ending?: string | undefined;
5340
+ messages?: {
5341
+ custom?: Record<string, any> | undefined;
5342
+ errors?: Record<string, any> | undefined;
5343
+ } | undefined;
5344
+ languages?: {
5345
+ default?: string | undefined;
5346
+ primary?: string | undefined;
5347
+ } | undefined;
5348
+ translations?: Record<string, any> | undefined;
5349
+ style?: {
5350
+ css?: string | undefined;
5351
+ } | undefined;
5352
+ }>;
4299
5353
  export interface Database {
4300
5354
  applications: z.infer<typeof sqlApplicationSchema>;
4301
5355
  branding: z.infer<typeof sqlBrandingSchema>;
@@ -4305,6 +5359,7 @@ export interface Database {
4305
5359
  connections: z.infer<typeof sqlConnectionSchema>;
4306
5360
  custom_domains: z.infer<typeof sqlCustomDomainSchema>;
4307
5361
  email_providers: z.infer<typeof sqlEmailProvidersSchema>;
5362
+ forms: z.infer<typeof sqlFormSchema>;
4308
5363
  hooks: z.infer<typeof sqlHookSchema>;
4309
5364
  keys: SigningKey & {
4310
5365
  created_at: string;