@faable/auth-sdk 2.5.77 → 2.5.79

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.
@@ -49,7 +49,13 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
49
49
  passkey_login_enabled?: boolean | undefined;
50
50
  identifier_first?: boolean | undefined;
51
51
  remember_last_method?: boolean | undefined;
52
+ passkey_promotion?: "offer" | "off" | undefined;
53
+ passkey_promotion_snooze_days?: number | undefined;
54
+ passkey_promotion_max_prompts?: number | undefined;
55
+ remember_me?: "optional" | "off" | undefined;
56
+ remember_me_days?: number | undefined;
52
57
  } | undefined;
58
+ login_flow?: string | null | undefined;
53
59
  mfa_policy?: {
54
60
  mode?: "required" | "optional" | "off" | undefined;
55
61
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
@@ -90,7 +96,13 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
90
96
  passkey_login_enabled?: boolean | undefined;
91
97
  identifier_first?: boolean | undefined;
92
98
  remember_last_method?: boolean | undefined;
99
+ passkey_promotion?: "offer" | "off" | undefined;
100
+ passkey_promotion_snooze_days?: number | undefined;
101
+ passkey_promotion_max_prompts?: number | undefined;
102
+ remember_me?: "optional" | "off" | undefined;
103
+ remember_me_days?: number | undefined;
93
104
  } | undefined;
105
+ login_flow?: string | null | undefined;
94
106
  mfa_policy?: {
95
107
  mode?: "required" | "optional" | "off" | undefined;
96
108
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
@@ -137,7 +149,13 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
137
149
  passkey_login_enabled?: boolean | undefined;
138
150
  identifier_first?: boolean | undefined;
139
151
  remember_last_method?: boolean | undefined;
152
+ passkey_promotion?: "offer" | "off" | undefined;
153
+ passkey_promotion_snooze_days?: number | undefined;
154
+ passkey_promotion_max_prompts?: number | undefined;
155
+ remember_me?: "optional" | "off" | undefined;
156
+ remember_me_days?: number | undefined;
140
157
  } | undefined;
158
+ login_flow?: string | null | undefined;
141
159
  mfa_policy?: {
142
160
  mode?: "required" | "optional" | "off" | undefined;
143
161
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
@@ -189,7 +207,13 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
189
207
  passkey_login_enabled?: boolean | undefined;
190
208
  identifier_first?: boolean | undefined;
191
209
  remember_last_method?: boolean | undefined;
210
+ passkey_promotion?: "offer" | "off" | undefined;
211
+ passkey_promotion_snooze_days?: number | undefined;
212
+ passkey_promotion_max_prompts?: number | undefined;
213
+ remember_me?: "optional" | "off" | undefined;
214
+ remember_me_days?: number | undefined;
192
215
  } | undefined;
216
+ login_flow?: string | null | undefined;
193
217
  mfa_policy?: {
194
218
  mode?: "required" | "optional" | "off" | undefined;
195
219
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
@@ -225,7 +249,13 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
225
249
  passkey_login_enabled?: boolean | undefined;
226
250
  identifier_first?: boolean | undefined;
227
251
  remember_last_method?: boolean | undefined;
252
+ passkey_promotion?: "offer" | "off" | undefined;
253
+ passkey_promotion_snooze_days?: number | undefined;
254
+ passkey_promotion_max_prompts?: number | undefined;
255
+ remember_me?: "optional" | "off" | undefined;
256
+ remember_me_days?: number | undefined;
228
257
  } | undefined;
258
+ login_flow?: string | null | undefined;
229
259
  mfa_policy?: {
230
260
  mode?: "required" | "optional" | "off" | undefined;
231
261
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
@@ -264,7 +294,13 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
264
294
  passkey_login_enabled?: boolean | undefined;
265
295
  identifier_first?: boolean | undefined;
266
296
  remember_last_method?: boolean | undefined;
297
+ passkey_promotion?: "offer" | "off" | undefined;
298
+ passkey_promotion_snooze_days?: number | undefined;
299
+ passkey_promotion_max_prompts?: number | undefined;
300
+ remember_me?: "optional" | "off" | undefined;
301
+ remember_me_days?: number | undefined;
267
302
  } | undefined;
303
+ login_flow?: string | null | undefined;
268
304
  mfa_policy?: {
269
305
  mode?: "required" | "optional" | "off" | undefined;
270
306
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
@@ -318,7 +354,13 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
318
354
  passkey_login_enabled?: boolean | undefined;
319
355
  identifier_first?: boolean | undefined;
320
356
  remember_last_method?: boolean | undefined;
357
+ passkey_promotion?: "offer" | "off" | undefined;
358
+ passkey_promotion_snooze_days?: number | undefined;
359
+ passkey_promotion_max_prompts?: number | undefined;
360
+ remember_me?: "optional" | "off" | undefined;
361
+ remember_me_days?: number | undefined;
321
362
  } | undefined;
363
+ login_flow?: string | null | undefined;
322
364
  mfa_policy?: {
323
365
  mode?: "required" | "optional" | "off" | undefined;
324
366
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
@@ -723,12 +765,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
723
765
  passkey_login_enabled?: boolean | undefined;
724
766
  identifier_first?: boolean | undefined;
725
767
  remember_last_method?: boolean | undefined;
768
+ passkey_promotion?: "offer" | "off" | undefined;
769
+ passkey_promotion_snooze_days?: number | undefined;
770
+ passkey_promotion_max_prompts?: number | undefined;
771
+ remember_me?: "optional" | "off" | undefined;
772
+ remember_me_days?: number | undefined;
726
773
  } | undefined;
727
774
  mfa_policy?: {
728
775
  mode?: "required" | "optional" | "off" | undefined;
729
776
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
730
777
  remember_device_days?: number | undefined;
731
778
  } | undefined;
779
+ login_flow?: string | null | undefined;
732
780
  account: string;
733
781
  metadata: {
734
782
  [key: string]: unknown;
@@ -777,12 +825,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
777
825
  passkey_login_enabled?: boolean | undefined;
778
826
  identifier_first?: boolean | undefined;
779
827
  remember_last_method?: boolean | undefined;
828
+ passkey_promotion?: "offer" | "off" | undefined;
829
+ passkey_promotion_snooze_days?: number | undefined;
830
+ passkey_promotion_max_prompts?: number | undefined;
831
+ remember_me?: "optional" | "off" | undefined;
832
+ remember_me_days?: number | undefined;
780
833
  } | undefined;
781
834
  mfa_policy?: {
782
835
  mode?: "required" | "optional" | "off" | undefined;
783
836
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
784
837
  remember_device_days?: number | undefined;
785
838
  } | undefined;
839
+ login_flow?: string | null | undefined;
786
840
  account: string;
787
841
  metadata: {
788
842
  [key: string]: unknown;
@@ -831,12 +885,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
831
885
  passkey_login_enabled?: boolean | undefined;
832
886
  identifier_first?: boolean | undefined;
833
887
  remember_last_method?: boolean | undefined;
888
+ passkey_promotion?: "offer" | "off" | undefined;
889
+ passkey_promotion_snooze_days?: number | undefined;
890
+ passkey_promotion_max_prompts?: number | undefined;
891
+ remember_me?: "optional" | "off" | undefined;
892
+ remember_me_days?: number | undefined;
834
893
  } | undefined;
835
894
  mfa_policy?: {
836
895
  mode?: "required" | "optional" | "off" | undefined;
837
896
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
838
897
  remember_device_days?: number | undefined;
839
898
  } | undefined;
899
+ login_flow?: string | null | undefined;
840
900
  account: string;
841
901
  metadata: {
842
902
  [key: string]: unknown;
@@ -886,12 +946,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
886
946
  passkey_login_enabled?: boolean | undefined;
887
947
  identifier_first?: boolean | undefined;
888
948
  remember_last_method?: boolean | undefined;
949
+ passkey_promotion?: "offer" | "off" | undefined;
950
+ passkey_promotion_snooze_days?: number | undefined;
951
+ passkey_promotion_max_prompts?: number | undefined;
952
+ remember_me?: "optional" | "off" | undefined;
953
+ remember_me_days?: number | undefined;
889
954
  } | undefined;
890
955
  mfa_policy?: {
891
956
  mode?: "required" | "optional" | "off" | undefined;
892
957
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
893
958
  remember_device_days?: number | undefined;
894
959
  } | undefined;
960
+ login_flow?: string | null | undefined;
895
961
  account: string;
896
962
  metadata: {
897
963
  [key: string]: unknown;
@@ -935,12 +1001,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
935
1001
  passkey_login_enabled?: boolean | undefined;
936
1002
  identifier_first?: boolean | undefined;
937
1003
  remember_last_method?: boolean | undefined;
1004
+ passkey_promotion?: "offer" | "off" | undefined;
1005
+ passkey_promotion_snooze_days?: number | undefined;
1006
+ passkey_promotion_max_prompts?: number | undefined;
1007
+ remember_me?: "optional" | "off" | undefined;
1008
+ remember_me_days?: number | undefined;
938
1009
  } | undefined;
939
1010
  mfa_policy?: {
940
1011
  mode?: "required" | "optional" | "off" | undefined;
941
1012
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
942
1013
  remember_device_days?: number | undefined;
943
1014
  } | undefined;
1015
+ login_flow?: string | null | undefined;
944
1016
  account: string;
945
1017
  metadata: {
946
1018
  [key: string]: unknown;
@@ -987,12 +1059,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
987
1059
  passkey_login_enabled?: boolean | undefined;
988
1060
  identifier_first?: boolean | undefined;
989
1061
  remember_last_method?: boolean | undefined;
1062
+ passkey_promotion?: "offer" | "off" | undefined;
1063
+ passkey_promotion_snooze_days?: number | undefined;
1064
+ passkey_promotion_max_prompts?: number | undefined;
1065
+ remember_me?: "optional" | "off" | undefined;
1066
+ remember_me_days?: number | undefined;
990
1067
  } | undefined;
991
1068
  mfa_policy?: {
992
1069
  mode?: "required" | "optional" | "off" | undefined;
993
1070
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
994
1071
  remember_device_days?: number | undefined;
995
1072
  } | undefined;
1073
+ login_flow?: string | null | undefined;
996
1074
  account: string;
997
1075
  metadata: {
998
1076
  [key: string]: unknown;
@@ -1042,12 +1120,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1042
1120
  passkey_login_enabled?: boolean | undefined;
1043
1121
  identifier_first?: boolean | undefined;
1044
1122
  remember_last_method?: boolean | undefined;
1123
+ passkey_promotion?: "offer" | "off" | undefined;
1124
+ passkey_promotion_snooze_days?: number | undefined;
1125
+ passkey_promotion_max_prompts?: number | undefined;
1126
+ remember_me?: "optional" | "off" | undefined;
1127
+ remember_me_days?: number | undefined;
1045
1128
  } | undefined;
1046
1129
  mfa_policy?: {
1047
1130
  mode?: "required" | "optional" | "off" | undefined;
1048
1131
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
1049
1132
  remember_device_days?: number | undefined;
1050
1133
  } | undefined;
1134
+ login_flow?: string | null | undefined;
1051
1135
  account: string;
1052
1136
  metadata: {
1053
1137
  [key: string]: unknown;
@@ -1096,12 +1180,18 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1096
1180
  passkey_login_enabled?: boolean | undefined;
1097
1181
  identifier_first?: boolean | undefined;
1098
1182
  remember_last_method?: boolean | undefined;
1183
+ passkey_promotion?: "offer" | "off" | undefined;
1184
+ passkey_promotion_snooze_days?: number | undefined;
1185
+ passkey_promotion_max_prompts?: number | undefined;
1186
+ remember_me?: "optional" | "off" | undefined;
1187
+ remember_me_days?: number | undefined;
1099
1188
  } | undefined;
1100
1189
  mfa_policy?: {
1101
1190
  mode?: "required" | "optional" | "off" | undefined;
1102
1191
  allowed_factors?: ("webauthn" | "totp")[] | undefined;
1103
1192
  remember_device_days?: number | undefined;
1104
1193
  } | undefined;
1194
+ login_flow?: string | null | undefined;
1105
1195
  account: string;
1106
1196
  metadata: {
1107
1197
  [key: string]: unknown;
@@ -1958,6 +2048,806 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
1958
2048
  updatedAt?: string | undefined;
1959
2049
  }>>;
1960
2050
  };
2051
+ /**
2052
+ * `POST /loginflow` — operationId: `loginflow/create`
2053
+ *
2054
+ * Create Loginflow
2055
+ */
2056
+ loginflowCreate(data: OpBody<"loginflow/create">): Promise<{
2057
+ id: string;
2058
+ name: string;
2059
+ trigger: "login";
2060
+ graph: {
2061
+ nodes: {
2062
+ id: string;
2063
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2064
+ config?: {
2065
+ [key: string]: unknown;
2066
+ } | undefined;
2067
+ }[];
2068
+ edges: {
2069
+ from: string;
2070
+ handle: string;
2071
+ to: string;
2072
+ }[];
2073
+ };
2074
+ revision: number;
2075
+ published?: {
2076
+ graph: {
2077
+ nodes: {
2078
+ id: string;
2079
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2080
+ config?: {
2081
+ [key: string]: unknown;
2082
+ } | undefined;
2083
+ }[];
2084
+ edges: {
2085
+ from: string;
2086
+ handle: string;
2087
+ to: string;
2088
+ }[];
2089
+ };
2090
+ revision: number;
2091
+ published_at: string;
2092
+ } | undefined;
2093
+ history: {
2094
+ graph: {
2095
+ nodes: {
2096
+ id: string;
2097
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2098
+ config?: {
2099
+ [key: string]: unknown;
2100
+ } | undefined;
2101
+ }[];
2102
+ edges: {
2103
+ from: string;
2104
+ handle: string;
2105
+ to: string;
2106
+ }[];
2107
+ };
2108
+ revision: number;
2109
+ published_at: string;
2110
+ }[];
2111
+ layout?: {
2112
+ [key: string]: {
2113
+ x: number;
2114
+ y: number;
2115
+ };
2116
+ } | undefined;
2117
+ account: string;
2118
+ metadata: {
2119
+ [key: string]: unknown;
2120
+ };
2121
+ createdAt: string;
2122
+ updatedAt?: string | undefined;
2123
+ }>;
2124
+ /**
2125
+ * `DELETE /loginflow/{loginflow_id}` — operationId: `loginflow/delete`
2126
+ *
2127
+ * Delete Loginflow
2128
+ */
2129
+ loginflowDelete(loginflow_id: string): Promise<{
2130
+ id: string;
2131
+ name: string;
2132
+ trigger: "login";
2133
+ graph: {
2134
+ nodes: {
2135
+ id: string;
2136
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2137
+ config?: {
2138
+ [key: string]: unknown;
2139
+ } | undefined;
2140
+ }[];
2141
+ edges: {
2142
+ from: string;
2143
+ handle: string;
2144
+ to: string;
2145
+ }[];
2146
+ };
2147
+ revision: number;
2148
+ published?: {
2149
+ graph: {
2150
+ nodes: {
2151
+ id: string;
2152
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2153
+ config?: {
2154
+ [key: string]: unknown;
2155
+ } | undefined;
2156
+ }[];
2157
+ edges: {
2158
+ from: string;
2159
+ handle: string;
2160
+ to: string;
2161
+ }[];
2162
+ };
2163
+ revision: number;
2164
+ published_at: string;
2165
+ } | undefined;
2166
+ history: {
2167
+ graph: {
2168
+ nodes: {
2169
+ id: string;
2170
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2171
+ config?: {
2172
+ [key: string]: unknown;
2173
+ } | undefined;
2174
+ }[];
2175
+ edges: {
2176
+ from: string;
2177
+ handle: string;
2178
+ to: string;
2179
+ }[];
2180
+ };
2181
+ revision: number;
2182
+ published_at: string;
2183
+ }[];
2184
+ layout?: {
2185
+ [key: string]: {
2186
+ x: number;
2187
+ y: number;
2188
+ };
2189
+ } | undefined;
2190
+ account: string;
2191
+ metadata: {
2192
+ [key: string]: unknown;
2193
+ };
2194
+ createdAt: string;
2195
+ updatedAt?: string | undefined;
2196
+ }>;
2197
+ /**
2198
+ * `GET /loginflow/{loginflow_id}` — operationId: `loginflow/get`
2199
+ *
2200
+ * Get Loginflow
2201
+ */
2202
+ loginflowGet(loginflow_id: string): Promise<{
2203
+ id: string;
2204
+ name: string;
2205
+ trigger: "login";
2206
+ graph: {
2207
+ nodes: {
2208
+ id: string;
2209
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2210
+ config?: {
2211
+ [key: string]: unknown;
2212
+ } | undefined;
2213
+ }[];
2214
+ edges: {
2215
+ from: string;
2216
+ handle: string;
2217
+ to: string;
2218
+ }[];
2219
+ };
2220
+ revision: number;
2221
+ published?: {
2222
+ graph: {
2223
+ nodes: {
2224
+ id: string;
2225
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2226
+ config?: {
2227
+ [key: string]: unknown;
2228
+ } | undefined;
2229
+ }[];
2230
+ edges: {
2231
+ from: string;
2232
+ handle: string;
2233
+ to: string;
2234
+ }[];
2235
+ };
2236
+ revision: number;
2237
+ published_at: string;
2238
+ } | undefined;
2239
+ history: {
2240
+ graph: {
2241
+ nodes: {
2242
+ id: string;
2243
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2244
+ config?: {
2245
+ [key: string]: unknown;
2246
+ } | undefined;
2247
+ }[];
2248
+ edges: {
2249
+ from: string;
2250
+ handle: string;
2251
+ to: string;
2252
+ }[];
2253
+ };
2254
+ revision: number;
2255
+ published_at: string;
2256
+ }[];
2257
+ layout?: {
2258
+ [key: string]: {
2259
+ x: number;
2260
+ y: number;
2261
+ };
2262
+ } | undefined;
2263
+ account: string;
2264
+ metadata: {
2265
+ [key: string]: unknown;
2266
+ };
2267
+ createdAt: string;
2268
+ updatedAt?: string | undefined;
2269
+ }>;
2270
+ /**
2271
+ * `GET /loginflow` — operationId: `loginflow/list`
2272
+ *
2273
+ * List Loginflows
2274
+ */
2275
+ loginflowList(params?: Omit<OpQuery<"loginflow/list">, "cursor" | "next">): {
2276
+ all: () => Promise<{
2277
+ id: string;
2278
+ name: string;
2279
+ trigger: "login";
2280
+ graph: {
2281
+ nodes: {
2282
+ id: string;
2283
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2284
+ config?: {
2285
+ [key: string]: unknown;
2286
+ } | undefined;
2287
+ }[];
2288
+ edges: {
2289
+ from: string;
2290
+ handle: string;
2291
+ to: string;
2292
+ }[];
2293
+ };
2294
+ revision: number;
2295
+ published?: {
2296
+ graph: {
2297
+ nodes: {
2298
+ id: string;
2299
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2300
+ config?: {
2301
+ [key: string]: unknown;
2302
+ } | undefined;
2303
+ }[];
2304
+ edges: {
2305
+ from: string;
2306
+ handle: string;
2307
+ to: string;
2308
+ }[];
2309
+ };
2310
+ revision: number;
2311
+ published_at: string;
2312
+ } | undefined;
2313
+ history: {
2314
+ graph: {
2315
+ nodes: {
2316
+ id: string;
2317
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2318
+ config?: {
2319
+ [key: string]: unknown;
2320
+ } | undefined;
2321
+ }[];
2322
+ edges: {
2323
+ from: string;
2324
+ handle: string;
2325
+ to: string;
2326
+ }[];
2327
+ };
2328
+ revision: number;
2329
+ published_at: string;
2330
+ }[];
2331
+ layout?: {
2332
+ [key: string]: {
2333
+ x: number;
2334
+ y: number;
2335
+ };
2336
+ } | undefined;
2337
+ account: string;
2338
+ metadata: {
2339
+ [key: string]: unknown;
2340
+ };
2341
+ createdAt: string;
2342
+ updatedAt?: string | undefined;
2343
+ }[]>;
2344
+ first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
2345
+ id: string;
2346
+ name: string;
2347
+ trigger: "login";
2348
+ graph: {
2349
+ nodes: {
2350
+ id: string;
2351
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2352
+ config?: {
2353
+ [key: string]: unknown;
2354
+ } | undefined;
2355
+ }[];
2356
+ edges: {
2357
+ from: string;
2358
+ handle: string;
2359
+ to: string;
2360
+ }[];
2361
+ };
2362
+ revision: number;
2363
+ published?: {
2364
+ graph: {
2365
+ nodes: {
2366
+ id: string;
2367
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2368
+ config?: {
2369
+ [key: string]: unknown;
2370
+ } | undefined;
2371
+ }[];
2372
+ edges: {
2373
+ from: string;
2374
+ handle: string;
2375
+ to: string;
2376
+ }[];
2377
+ };
2378
+ revision: number;
2379
+ published_at: string;
2380
+ } | undefined;
2381
+ history: {
2382
+ graph: {
2383
+ nodes: {
2384
+ id: string;
2385
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2386
+ config?: {
2387
+ [key: string]: unknown;
2388
+ } | undefined;
2389
+ }[];
2390
+ edges: {
2391
+ from: string;
2392
+ handle: string;
2393
+ to: string;
2394
+ }[];
2395
+ };
2396
+ revision: number;
2397
+ published_at: string;
2398
+ }[];
2399
+ layout?: {
2400
+ [key: string]: {
2401
+ x: number;
2402
+ y: number;
2403
+ };
2404
+ } | undefined;
2405
+ account: string;
2406
+ metadata: {
2407
+ [key: string]: unknown;
2408
+ };
2409
+ createdAt: string;
2410
+ updatedAt?: string | undefined;
2411
+ }>>;
2412
+ pass: (params?: {
2413
+ cursor?: string | undefined;
2414
+ pageSize?: string | undefined;
2415
+ } | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
2416
+ id: string;
2417
+ name: string;
2418
+ trigger: "login";
2419
+ graph: {
2420
+ nodes: {
2421
+ id: string;
2422
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2423
+ config?: {
2424
+ [key: string]: unknown;
2425
+ } | undefined;
2426
+ }[];
2427
+ edges: {
2428
+ from: string;
2429
+ handle: string;
2430
+ to: string;
2431
+ }[];
2432
+ };
2433
+ revision: number;
2434
+ published?: {
2435
+ graph: {
2436
+ nodes: {
2437
+ id: string;
2438
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2439
+ config?: {
2440
+ [key: string]: unknown;
2441
+ } | undefined;
2442
+ }[];
2443
+ edges: {
2444
+ from: string;
2445
+ handle: string;
2446
+ to: string;
2447
+ }[];
2448
+ };
2449
+ revision: number;
2450
+ published_at: string;
2451
+ } | undefined;
2452
+ history: {
2453
+ graph: {
2454
+ nodes: {
2455
+ id: string;
2456
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2457
+ config?: {
2458
+ [key: string]: unknown;
2459
+ } | undefined;
2460
+ }[];
2461
+ edges: {
2462
+ from: string;
2463
+ handle: string;
2464
+ to: string;
2465
+ }[];
2466
+ };
2467
+ revision: number;
2468
+ published_at: string;
2469
+ }[];
2470
+ layout?: {
2471
+ [key: string]: {
2472
+ x: number;
2473
+ y: number;
2474
+ };
2475
+ } | undefined;
2476
+ account: string;
2477
+ metadata: {
2478
+ [key: string]: unknown;
2479
+ };
2480
+ createdAt: string;
2481
+ updatedAt?: string | undefined;
2482
+ }>>;
2483
+ };
2484
+ /**
2485
+ * `POST /loginflow/materialize` — operationId: `loginflow/materialize`
2486
+ *
2487
+ * Start a custom flow from what runs today
2488
+ */
2489
+ loginflowMaterialize(data: OpBody<"loginflow/materialize">): Promise<{
2490
+ id: string;
2491
+ name: string;
2492
+ trigger: "login";
2493
+ graph: {
2494
+ nodes: {
2495
+ id: string;
2496
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2497
+ config?: {
2498
+ [key: string]: unknown;
2499
+ } | undefined;
2500
+ }[];
2501
+ edges: {
2502
+ from: string;
2503
+ handle: string;
2504
+ to: string;
2505
+ }[];
2506
+ };
2507
+ revision: number;
2508
+ published?: {
2509
+ graph: {
2510
+ nodes: {
2511
+ id: string;
2512
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2513
+ config?: {
2514
+ [key: string]: unknown;
2515
+ } | undefined;
2516
+ }[];
2517
+ edges: {
2518
+ from: string;
2519
+ handle: string;
2520
+ to: string;
2521
+ }[];
2522
+ };
2523
+ revision: number;
2524
+ published_at: string;
2525
+ } | undefined;
2526
+ history: {
2527
+ graph: {
2528
+ nodes: {
2529
+ id: string;
2530
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2531
+ config?: {
2532
+ [key: string]: unknown;
2533
+ } | undefined;
2534
+ }[];
2535
+ edges: {
2536
+ from: string;
2537
+ handle: string;
2538
+ to: string;
2539
+ }[];
2540
+ };
2541
+ revision: number;
2542
+ published_at: string;
2543
+ }[];
2544
+ layout?: {
2545
+ [key: string]: {
2546
+ x: number;
2547
+ y: number;
2548
+ };
2549
+ } | undefined;
2550
+ account: string;
2551
+ metadata: {
2552
+ [key: string]: unknown;
2553
+ };
2554
+ createdAt: string;
2555
+ updatedAt?: string | undefined;
2556
+ }>;
2557
+ /**
2558
+ * `POST /loginflow/{loginflow_id}/preview-token` — operationId: `loginflow/previewToken`
2559
+ *
2560
+ * Try the draft on a real login, in your browser only
2561
+ */
2562
+ loginflowPreviewToken(loginflow_id: string): Promise<{
2563
+ token: string;
2564
+ expires_in: number;
2565
+ }>;
2566
+ /**
2567
+ * `POST /loginflow/{loginflow_id}/publish` — operationId: `loginflow/publish`
2568
+ *
2569
+ * Make the draft the graph logins run
2570
+ */
2571
+ loginflowPublish(loginflow_id: string, data: OpBody<"loginflow/publish">): Promise<{
2572
+ id: string;
2573
+ name: string;
2574
+ trigger: "login";
2575
+ graph: {
2576
+ nodes: {
2577
+ id: string;
2578
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2579
+ config?: {
2580
+ [key: string]: unknown;
2581
+ } | undefined;
2582
+ }[];
2583
+ edges: {
2584
+ from: string;
2585
+ handle: string;
2586
+ to: string;
2587
+ }[];
2588
+ };
2589
+ revision: number;
2590
+ published?: {
2591
+ graph: {
2592
+ nodes: {
2593
+ id: string;
2594
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2595
+ config?: {
2596
+ [key: string]: unknown;
2597
+ } | undefined;
2598
+ }[];
2599
+ edges: {
2600
+ from: string;
2601
+ handle: string;
2602
+ to: string;
2603
+ }[];
2604
+ };
2605
+ revision: number;
2606
+ published_at: string;
2607
+ } | undefined;
2608
+ history: {
2609
+ graph: {
2610
+ nodes: {
2611
+ id: string;
2612
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2613
+ config?: {
2614
+ [key: string]: unknown;
2615
+ } | undefined;
2616
+ }[];
2617
+ edges: {
2618
+ from: string;
2619
+ handle: string;
2620
+ to: string;
2621
+ }[];
2622
+ };
2623
+ revision: number;
2624
+ published_at: string;
2625
+ }[];
2626
+ layout?: {
2627
+ [key: string]: {
2628
+ x: number;
2629
+ y: number;
2630
+ };
2631
+ } | undefined;
2632
+ account: string;
2633
+ metadata: {
2634
+ [key: string]: unknown;
2635
+ };
2636
+ createdAt: string;
2637
+ updatedAt?: string | undefined;
2638
+ }>;
2639
+ /**
2640
+ * `GET /loginflow/resolved` — operationId: `loginflow/resolved`
2641
+ *
2642
+ * The graph this account (or client) runs right now
2643
+ */
2644
+ loginflowResolved(params?: OpQuery<"loginflow/resolved">): Promise<{
2645
+ source: "compiled" | "published";
2646
+ flow_id: string | null;
2647
+ revision: number;
2648
+ graph: {
2649
+ nodes: {
2650
+ id: string;
2651
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2652
+ config?: {
2653
+ [key: string]: unknown;
2654
+ } | undefined;
2655
+ }[];
2656
+ edges: {
2657
+ from: string;
2658
+ handle: string;
2659
+ to: string;
2660
+ }[];
2661
+ };
2662
+ bound: {
2663
+ flow_id: string;
2664
+ bound_to: "account" | "client";
2665
+ name: string;
2666
+ revision: number;
2667
+ published_revision: number | null;
2668
+ draft: {
2669
+ nodes: {
2670
+ id: string;
2671
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2672
+ config?: {
2673
+ [key: string]: unknown;
2674
+ } | undefined;
2675
+ }[];
2676
+ edges: {
2677
+ from: string;
2678
+ handle: string;
2679
+ to: string;
2680
+ }[];
2681
+ };
2682
+ layout?: {
2683
+ [key: string]: {
2684
+ x: number;
2685
+ y: number;
2686
+ };
2687
+ } | undefined;
2688
+ history: number[];
2689
+ } | null;
2690
+ }>;
2691
+ /**
2692
+ * `POST /loginflow/{loginflow_id}/rollback` — operationId: `loginflow/rollback`
2693
+ *
2694
+ * Run a previously published revision again
2695
+ */
2696
+ loginflowRollback(loginflow_id: string, data: OpBody<"loginflow/rollback">): Promise<{
2697
+ id: string;
2698
+ name: string;
2699
+ trigger: "login";
2700
+ graph: {
2701
+ nodes: {
2702
+ id: string;
2703
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2704
+ config?: {
2705
+ [key: string]: unknown;
2706
+ } | undefined;
2707
+ }[];
2708
+ edges: {
2709
+ from: string;
2710
+ handle: string;
2711
+ to: string;
2712
+ }[];
2713
+ };
2714
+ revision: number;
2715
+ published?: {
2716
+ graph: {
2717
+ nodes: {
2718
+ id: string;
2719
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2720
+ config?: {
2721
+ [key: string]: unknown;
2722
+ } | undefined;
2723
+ }[];
2724
+ edges: {
2725
+ from: string;
2726
+ handle: string;
2727
+ to: string;
2728
+ }[];
2729
+ };
2730
+ revision: number;
2731
+ published_at: string;
2732
+ } | undefined;
2733
+ history: {
2734
+ graph: {
2735
+ nodes: {
2736
+ id: string;
2737
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2738
+ config?: {
2739
+ [key: string]: unknown;
2740
+ } | undefined;
2741
+ }[];
2742
+ edges: {
2743
+ from: string;
2744
+ handle: string;
2745
+ to: string;
2746
+ }[];
2747
+ };
2748
+ revision: number;
2749
+ published_at: string;
2750
+ }[];
2751
+ layout?: {
2752
+ [key: string]: {
2753
+ x: number;
2754
+ y: number;
2755
+ };
2756
+ } | undefined;
2757
+ account: string;
2758
+ metadata: {
2759
+ [key: string]: unknown;
2760
+ };
2761
+ createdAt: string;
2762
+ updatedAt?: string | undefined;
2763
+ }>;
2764
+ /**
2765
+ * `POST /loginflow/{loginflow_id}` — operationId: `loginflow/update`
2766
+ *
2767
+ * Update Loginflow
2768
+ */
2769
+ loginflowUpdate(loginflow_id: string, data: OpBody<"loginflow/update">): Promise<{
2770
+ id: string;
2771
+ name: string;
2772
+ trigger: "login";
2773
+ graph: {
2774
+ nodes: {
2775
+ id: string;
2776
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2777
+ config?: {
2778
+ [key: string]: unknown;
2779
+ } | undefined;
2780
+ }[];
2781
+ edges: {
2782
+ from: string;
2783
+ handle: string;
2784
+ to: string;
2785
+ }[];
2786
+ };
2787
+ revision: number;
2788
+ published?: {
2789
+ graph: {
2790
+ nodes: {
2791
+ id: string;
2792
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2793
+ config?: {
2794
+ [key: string]: unknown;
2795
+ } | undefined;
2796
+ }[];
2797
+ edges: {
2798
+ from: string;
2799
+ handle: string;
2800
+ to: string;
2801
+ }[];
2802
+ };
2803
+ revision: number;
2804
+ published_at: string;
2805
+ } | undefined;
2806
+ history: {
2807
+ graph: {
2808
+ nodes: {
2809
+ id: string;
2810
+ type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
2811
+ config?: {
2812
+ [key: string]: unknown;
2813
+ } | undefined;
2814
+ }[];
2815
+ edges: {
2816
+ from: string;
2817
+ handle: string;
2818
+ to: string;
2819
+ }[];
2820
+ };
2821
+ revision: number;
2822
+ published_at: string;
2823
+ }[];
2824
+ layout?: {
2825
+ [key: string]: {
2826
+ x: number;
2827
+ y: number;
2828
+ };
2829
+ } | undefined;
2830
+ account: string;
2831
+ metadata: {
2832
+ [key: string]: unknown;
2833
+ };
2834
+ createdAt: string;
2835
+ updatedAt?: string | undefined;
2836
+ }>;
2837
+ /**
2838
+ * `POST /loginflow/{loginflow_id}/validate` — operationId: `loginflow/validate`
2839
+ *
2840
+ * Check a draft against the rules a publish enforces
2841
+ */
2842
+ loginflowValidate(loginflow_id: string, data: OpBody<"loginflow/validate">): Promise<{
2843
+ ok: boolean;
2844
+ issues: {
2845
+ code: string;
2846
+ node?: string | undefined;
2847
+ handle?: string | undefined;
2848
+ message: string;
2849
+ }[];
2850
+ }>;
1961
2851
  /**
1962
2852
  * `POST /notificationsubscription` — operationId: `notificationsubscription/create`
1963
2853
  *
@@ -2816,6 +3706,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2816
3706
  email_change_locked_at?: string | null | undefined;
2817
3707
  email_bounced_at?: string | null | undefined;
2818
3708
  welcome_sent_at?: string | null | undefined;
3709
+ passkey_prompted_at?: string | null | undefined;
3710
+ passkey_prompt_count?: number | undefined;
3711
+ passkey_prompt_dismissed_at?: string | null | undefined;
2819
3712
  phone?: string | null | undefined;
2820
3713
  phone_verified: boolean;
2821
3714
  phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
@@ -2876,6 +3769,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2876
3769
  email_change_locked_at?: string | null | undefined;
2877
3770
  email_bounced_at?: string | null | undefined;
2878
3771
  welcome_sent_at?: string | null | undefined;
3772
+ passkey_prompted_at?: string | null | undefined;
3773
+ passkey_prompt_count?: number | undefined;
3774
+ passkey_prompt_dismissed_at?: string | null | undefined;
2879
3775
  phone?: string | null | undefined;
2880
3776
  phone_verified: boolean;
2881
3777
  phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
@@ -2936,6 +3832,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2936
3832
  email_change_locked_at?: string | null | undefined;
2937
3833
  email_bounced_at?: string | null | undefined;
2938
3834
  welcome_sent_at?: string | null | undefined;
3835
+ passkey_prompted_at?: string | null | undefined;
3836
+ passkey_prompt_count?: number | undefined;
3837
+ passkey_prompt_dismissed_at?: string | null | undefined;
2939
3838
  phone?: string | null | undefined;
2940
3839
  phone_verified: boolean;
2941
3840
  phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
@@ -2997,6 +3896,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2997
3896
  email_change_locked_at?: string | null | undefined;
2998
3897
  email_bounced_at?: string | null | undefined;
2999
3898
  welcome_sent_at?: string | null | undefined;
3899
+ passkey_prompted_at?: string | null | undefined;
3900
+ passkey_prompt_count?: number | undefined;
3901
+ passkey_prompt_dismissed_at?: string | null | undefined;
3000
3902
  phone?: string | null | undefined;
3001
3903
  phone_verified: boolean;
3002
3904
  phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
@@ -3052,6 +3954,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3052
3954
  email_change_locked_at?: string | null | undefined;
3053
3955
  email_bounced_at?: string | null | undefined;
3054
3956
  welcome_sent_at?: string | null | undefined;
3957
+ passkey_prompted_at?: string | null | undefined;
3958
+ passkey_prompt_count?: number | undefined;
3959
+ passkey_prompt_dismissed_at?: string | null | undefined;
3055
3960
  phone?: string | null | undefined;
3056
3961
  phone_verified: boolean;
3057
3962
  phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
@@ -3110,6 +4015,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3110
4015
  email_change_locked_at?: string | null | undefined;
3111
4016
  email_bounced_at?: string | null | undefined;
3112
4017
  welcome_sent_at?: string | null | undefined;
4018
+ passkey_prompted_at?: string | null | undefined;
4019
+ passkey_prompt_count?: number | undefined;
4020
+ passkey_prompt_dismissed_at?: string | null | undefined;
3113
4021
  phone?: string | null | undefined;
3114
4022
  phone_verified: boolean;
3115
4023
  phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
@@ -3181,6 +4089,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
3181
4089
  email_change_locked_at?: string | null | undefined;
3182
4090
  email_bounced_at?: string | null | undefined;
3183
4091
  welcome_sent_at?: string | null | undefined;
4092
+ passkey_prompted_at?: string | null | undefined;
4093
+ passkey_prompt_count?: number | undefined;
4094
+ passkey_prompt_dismissed_at?: string | null | undefined;
3184
4095
  phone?: string | null | undefined;
3185
4096
  phone_verified: boolean;
3186
4097
  phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;