@faable/auth-sdk 2.5.77 → 2.5.78
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/FaableAuthApi.d.ts +38 -0
- package/dist/api/api-types.d.ts +4 -0
- package/dist/api/generated-client.d.ts +881 -0
- package/dist/api/generated-client.js +95 -0
- package/dist/api/types.d.ts +1607 -6
- package/package.json +1 -1
- package/spec/openapi.json +9575 -2386
|
@@ -49,7 +49,11 @@ 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;
|
|
52
55
|
} | undefined;
|
|
56
|
+
login_flow?: string | null | undefined;
|
|
53
57
|
mfa_policy?: {
|
|
54
58
|
mode?: "required" | "optional" | "off" | undefined;
|
|
55
59
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
@@ -90,7 +94,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
90
94
|
passkey_login_enabled?: boolean | undefined;
|
|
91
95
|
identifier_first?: boolean | undefined;
|
|
92
96
|
remember_last_method?: boolean | undefined;
|
|
97
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
98
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
99
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
93
100
|
} | undefined;
|
|
101
|
+
login_flow?: string | null | undefined;
|
|
94
102
|
mfa_policy?: {
|
|
95
103
|
mode?: "required" | "optional" | "off" | undefined;
|
|
96
104
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
@@ -137,7 +145,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
137
145
|
passkey_login_enabled?: boolean | undefined;
|
|
138
146
|
identifier_first?: boolean | undefined;
|
|
139
147
|
remember_last_method?: boolean | undefined;
|
|
148
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
149
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
150
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
140
151
|
} | undefined;
|
|
152
|
+
login_flow?: string | null | undefined;
|
|
141
153
|
mfa_policy?: {
|
|
142
154
|
mode?: "required" | "optional" | "off" | undefined;
|
|
143
155
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
@@ -189,7 +201,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
189
201
|
passkey_login_enabled?: boolean | undefined;
|
|
190
202
|
identifier_first?: boolean | undefined;
|
|
191
203
|
remember_last_method?: boolean | undefined;
|
|
204
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
205
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
206
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
192
207
|
} | undefined;
|
|
208
|
+
login_flow?: string | null | undefined;
|
|
193
209
|
mfa_policy?: {
|
|
194
210
|
mode?: "required" | "optional" | "off" | undefined;
|
|
195
211
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
@@ -225,7 +241,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
225
241
|
passkey_login_enabled?: boolean | undefined;
|
|
226
242
|
identifier_first?: boolean | undefined;
|
|
227
243
|
remember_last_method?: boolean | undefined;
|
|
244
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
245
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
246
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
228
247
|
} | undefined;
|
|
248
|
+
login_flow?: string | null | undefined;
|
|
229
249
|
mfa_policy?: {
|
|
230
250
|
mode?: "required" | "optional" | "off" | undefined;
|
|
231
251
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
@@ -264,7 +284,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
264
284
|
passkey_login_enabled?: boolean | undefined;
|
|
265
285
|
identifier_first?: boolean | undefined;
|
|
266
286
|
remember_last_method?: boolean | undefined;
|
|
287
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
288
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
289
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
267
290
|
} | undefined;
|
|
291
|
+
login_flow?: string | null | undefined;
|
|
268
292
|
mfa_policy?: {
|
|
269
293
|
mode?: "required" | "optional" | "off" | undefined;
|
|
270
294
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
@@ -318,7 +342,11 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
318
342
|
passkey_login_enabled?: boolean | undefined;
|
|
319
343
|
identifier_first?: boolean | undefined;
|
|
320
344
|
remember_last_method?: boolean | undefined;
|
|
345
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
346
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
347
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
321
348
|
} | undefined;
|
|
349
|
+
login_flow?: string | null | undefined;
|
|
322
350
|
mfa_policy?: {
|
|
323
351
|
mode?: "required" | "optional" | "off" | undefined;
|
|
324
352
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
@@ -723,12 +751,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
723
751
|
passkey_login_enabled?: boolean | undefined;
|
|
724
752
|
identifier_first?: boolean | undefined;
|
|
725
753
|
remember_last_method?: boolean | undefined;
|
|
754
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
755
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
756
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
726
757
|
} | undefined;
|
|
727
758
|
mfa_policy?: {
|
|
728
759
|
mode?: "required" | "optional" | "off" | undefined;
|
|
729
760
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
730
761
|
remember_device_days?: number | undefined;
|
|
731
762
|
} | undefined;
|
|
763
|
+
login_flow?: string | null | undefined;
|
|
732
764
|
account: string;
|
|
733
765
|
metadata: {
|
|
734
766
|
[key: string]: unknown;
|
|
@@ -777,12 +809,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
777
809
|
passkey_login_enabled?: boolean | undefined;
|
|
778
810
|
identifier_first?: boolean | undefined;
|
|
779
811
|
remember_last_method?: boolean | undefined;
|
|
812
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
813
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
814
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
780
815
|
} | undefined;
|
|
781
816
|
mfa_policy?: {
|
|
782
817
|
mode?: "required" | "optional" | "off" | undefined;
|
|
783
818
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
784
819
|
remember_device_days?: number | undefined;
|
|
785
820
|
} | undefined;
|
|
821
|
+
login_flow?: string | null | undefined;
|
|
786
822
|
account: string;
|
|
787
823
|
metadata: {
|
|
788
824
|
[key: string]: unknown;
|
|
@@ -831,12 +867,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
831
867
|
passkey_login_enabled?: boolean | undefined;
|
|
832
868
|
identifier_first?: boolean | undefined;
|
|
833
869
|
remember_last_method?: boolean | undefined;
|
|
870
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
871
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
872
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
834
873
|
} | undefined;
|
|
835
874
|
mfa_policy?: {
|
|
836
875
|
mode?: "required" | "optional" | "off" | undefined;
|
|
837
876
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
838
877
|
remember_device_days?: number | undefined;
|
|
839
878
|
} | undefined;
|
|
879
|
+
login_flow?: string | null | undefined;
|
|
840
880
|
account: string;
|
|
841
881
|
metadata: {
|
|
842
882
|
[key: string]: unknown;
|
|
@@ -886,12 +926,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
886
926
|
passkey_login_enabled?: boolean | undefined;
|
|
887
927
|
identifier_first?: boolean | undefined;
|
|
888
928
|
remember_last_method?: boolean | undefined;
|
|
929
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
930
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
931
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
889
932
|
} | undefined;
|
|
890
933
|
mfa_policy?: {
|
|
891
934
|
mode?: "required" | "optional" | "off" | undefined;
|
|
892
935
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
893
936
|
remember_device_days?: number | undefined;
|
|
894
937
|
} | undefined;
|
|
938
|
+
login_flow?: string | null | undefined;
|
|
895
939
|
account: string;
|
|
896
940
|
metadata: {
|
|
897
941
|
[key: string]: unknown;
|
|
@@ -935,12 +979,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
935
979
|
passkey_login_enabled?: boolean | undefined;
|
|
936
980
|
identifier_first?: boolean | undefined;
|
|
937
981
|
remember_last_method?: boolean | undefined;
|
|
982
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
983
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
984
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
938
985
|
} | undefined;
|
|
939
986
|
mfa_policy?: {
|
|
940
987
|
mode?: "required" | "optional" | "off" | undefined;
|
|
941
988
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
942
989
|
remember_device_days?: number | undefined;
|
|
943
990
|
} | undefined;
|
|
991
|
+
login_flow?: string | null | undefined;
|
|
944
992
|
account: string;
|
|
945
993
|
metadata: {
|
|
946
994
|
[key: string]: unknown;
|
|
@@ -987,12 +1035,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
987
1035
|
passkey_login_enabled?: boolean | undefined;
|
|
988
1036
|
identifier_first?: boolean | undefined;
|
|
989
1037
|
remember_last_method?: boolean | undefined;
|
|
1038
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
1039
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
1040
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
990
1041
|
} | undefined;
|
|
991
1042
|
mfa_policy?: {
|
|
992
1043
|
mode?: "required" | "optional" | "off" | undefined;
|
|
993
1044
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
994
1045
|
remember_device_days?: number | undefined;
|
|
995
1046
|
} | undefined;
|
|
1047
|
+
login_flow?: string | null | undefined;
|
|
996
1048
|
account: string;
|
|
997
1049
|
metadata: {
|
|
998
1050
|
[key: string]: unknown;
|
|
@@ -1042,12 +1094,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1042
1094
|
passkey_login_enabled?: boolean | undefined;
|
|
1043
1095
|
identifier_first?: boolean | undefined;
|
|
1044
1096
|
remember_last_method?: boolean | undefined;
|
|
1097
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
1098
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
1099
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
1045
1100
|
} | undefined;
|
|
1046
1101
|
mfa_policy?: {
|
|
1047
1102
|
mode?: "required" | "optional" | "off" | undefined;
|
|
1048
1103
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
1049
1104
|
remember_device_days?: number | undefined;
|
|
1050
1105
|
} | undefined;
|
|
1106
|
+
login_flow?: string | null | undefined;
|
|
1051
1107
|
account: string;
|
|
1052
1108
|
metadata: {
|
|
1053
1109
|
[key: string]: unknown;
|
|
@@ -1096,12 +1152,16 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1096
1152
|
passkey_login_enabled?: boolean | undefined;
|
|
1097
1153
|
identifier_first?: boolean | undefined;
|
|
1098
1154
|
remember_last_method?: boolean | undefined;
|
|
1155
|
+
passkey_promotion?: "offer" | "off" | undefined;
|
|
1156
|
+
passkey_promotion_snooze_days?: number | undefined;
|
|
1157
|
+
passkey_promotion_max_prompts?: number | undefined;
|
|
1099
1158
|
} | undefined;
|
|
1100
1159
|
mfa_policy?: {
|
|
1101
1160
|
mode?: "required" | "optional" | "off" | undefined;
|
|
1102
1161
|
allowed_factors?: ("webauthn" | "totp")[] | undefined;
|
|
1103
1162
|
remember_device_days?: number | undefined;
|
|
1104
1163
|
} | undefined;
|
|
1164
|
+
login_flow?: string | null | undefined;
|
|
1105
1165
|
account: string;
|
|
1106
1166
|
metadata: {
|
|
1107
1167
|
[key: string]: unknown;
|
|
@@ -1958,6 +2018,806 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
1958
2018
|
updatedAt?: string | undefined;
|
|
1959
2019
|
}>>;
|
|
1960
2020
|
};
|
|
2021
|
+
/**
|
|
2022
|
+
* `POST /loginflow` — operationId: `loginflow/create`
|
|
2023
|
+
*
|
|
2024
|
+
* Create Loginflow
|
|
2025
|
+
*/
|
|
2026
|
+
loginflowCreate(data: OpBody<"loginflow/create">): Promise<{
|
|
2027
|
+
id: string;
|
|
2028
|
+
name: string;
|
|
2029
|
+
trigger: "login";
|
|
2030
|
+
graph: {
|
|
2031
|
+
nodes: {
|
|
2032
|
+
id: string;
|
|
2033
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2034
|
+
config?: {
|
|
2035
|
+
[key: string]: unknown;
|
|
2036
|
+
} | undefined;
|
|
2037
|
+
}[];
|
|
2038
|
+
edges: {
|
|
2039
|
+
from: string;
|
|
2040
|
+
handle: string;
|
|
2041
|
+
to: string;
|
|
2042
|
+
}[];
|
|
2043
|
+
};
|
|
2044
|
+
revision: number;
|
|
2045
|
+
published?: {
|
|
2046
|
+
graph: {
|
|
2047
|
+
nodes: {
|
|
2048
|
+
id: string;
|
|
2049
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2050
|
+
config?: {
|
|
2051
|
+
[key: string]: unknown;
|
|
2052
|
+
} | undefined;
|
|
2053
|
+
}[];
|
|
2054
|
+
edges: {
|
|
2055
|
+
from: string;
|
|
2056
|
+
handle: string;
|
|
2057
|
+
to: string;
|
|
2058
|
+
}[];
|
|
2059
|
+
};
|
|
2060
|
+
revision: number;
|
|
2061
|
+
published_at: string;
|
|
2062
|
+
} | undefined;
|
|
2063
|
+
history: {
|
|
2064
|
+
graph: {
|
|
2065
|
+
nodes: {
|
|
2066
|
+
id: string;
|
|
2067
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2068
|
+
config?: {
|
|
2069
|
+
[key: string]: unknown;
|
|
2070
|
+
} | undefined;
|
|
2071
|
+
}[];
|
|
2072
|
+
edges: {
|
|
2073
|
+
from: string;
|
|
2074
|
+
handle: string;
|
|
2075
|
+
to: string;
|
|
2076
|
+
}[];
|
|
2077
|
+
};
|
|
2078
|
+
revision: number;
|
|
2079
|
+
published_at: string;
|
|
2080
|
+
}[];
|
|
2081
|
+
layout?: {
|
|
2082
|
+
[key: string]: {
|
|
2083
|
+
x: number;
|
|
2084
|
+
y: number;
|
|
2085
|
+
};
|
|
2086
|
+
} | undefined;
|
|
2087
|
+
account: string;
|
|
2088
|
+
metadata: {
|
|
2089
|
+
[key: string]: unknown;
|
|
2090
|
+
};
|
|
2091
|
+
createdAt: string;
|
|
2092
|
+
updatedAt?: string | undefined;
|
|
2093
|
+
}>;
|
|
2094
|
+
/**
|
|
2095
|
+
* `DELETE /loginflow/{loginflow_id}` — operationId: `loginflow/delete`
|
|
2096
|
+
*
|
|
2097
|
+
* Delete Loginflow
|
|
2098
|
+
*/
|
|
2099
|
+
loginflowDelete(loginflow_id: string): Promise<{
|
|
2100
|
+
id: string;
|
|
2101
|
+
name: string;
|
|
2102
|
+
trigger: "login";
|
|
2103
|
+
graph: {
|
|
2104
|
+
nodes: {
|
|
2105
|
+
id: string;
|
|
2106
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2107
|
+
config?: {
|
|
2108
|
+
[key: string]: unknown;
|
|
2109
|
+
} | undefined;
|
|
2110
|
+
}[];
|
|
2111
|
+
edges: {
|
|
2112
|
+
from: string;
|
|
2113
|
+
handle: string;
|
|
2114
|
+
to: string;
|
|
2115
|
+
}[];
|
|
2116
|
+
};
|
|
2117
|
+
revision: number;
|
|
2118
|
+
published?: {
|
|
2119
|
+
graph: {
|
|
2120
|
+
nodes: {
|
|
2121
|
+
id: string;
|
|
2122
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2123
|
+
config?: {
|
|
2124
|
+
[key: string]: unknown;
|
|
2125
|
+
} | undefined;
|
|
2126
|
+
}[];
|
|
2127
|
+
edges: {
|
|
2128
|
+
from: string;
|
|
2129
|
+
handle: string;
|
|
2130
|
+
to: string;
|
|
2131
|
+
}[];
|
|
2132
|
+
};
|
|
2133
|
+
revision: number;
|
|
2134
|
+
published_at: string;
|
|
2135
|
+
} | undefined;
|
|
2136
|
+
history: {
|
|
2137
|
+
graph: {
|
|
2138
|
+
nodes: {
|
|
2139
|
+
id: string;
|
|
2140
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2141
|
+
config?: {
|
|
2142
|
+
[key: string]: unknown;
|
|
2143
|
+
} | undefined;
|
|
2144
|
+
}[];
|
|
2145
|
+
edges: {
|
|
2146
|
+
from: string;
|
|
2147
|
+
handle: string;
|
|
2148
|
+
to: string;
|
|
2149
|
+
}[];
|
|
2150
|
+
};
|
|
2151
|
+
revision: number;
|
|
2152
|
+
published_at: string;
|
|
2153
|
+
}[];
|
|
2154
|
+
layout?: {
|
|
2155
|
+
[key: string]: {
|
|
2156
|
+
x: number;
|
|
2157
|
+
y: number;
|
|
2158
|
+
};
|
|
2159
|
+
} | undefined;
|
|
2160
|
+
account: string;
|
|
2161
|
+
metadata: {
|
|
2162
|
+
[key: string]: unknown;
|
|
2163
|
+
};
|
|
2164
|
+
createdAt: string;
|
|
2165
|
+
updatedAt?: string | undefined;
|
|
2166
|
+
}>;
|
|
2167
|
+
/**
|
|
2168
|
+
* `GET /loginflow/{loginflow_id}` — operationId: `loginflow/get`
|
|
2169
|
+
*
|
|
2170
|
+
* Get Loginflow
|
|
2171
|
+
*/
|
|
2172
|
+
loginflowGet(loginflow_id: string): Promise<{
|
|
2173
|
+
id: string;
|
|
2174
|
+
name: string;
|
|
2175
|
+
trigger: "login";
|
|
2176
|
+
graph: {
|
|
2177
|
+
nodes: {
|
|
2178
|
+
id: string;
|
|
2179
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2180
|
+
config?: {
|
|
2181
|
+
[key: string]: unknown;
|
|
2182
|
+
} | undefined;
|
|
2183
|
+
}[];
|
|
2184
|
+
edges: {
|
|
2185
|
+
from: string;
|
|
2186
|
+
handle: string;
|
|
2187
|
+
to: string;
|
|
2188
|
+
}[];
|
|
2189
|
+
};
|
|
2190
|
+
revision: number;
|
|
2191
|
+
published?: {
|
|
2192
|
+
graph: {
|
|
2193
|
+
nodes: {
|
|
2194
|
+
id: string;
|
|
2195
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2196
|
+
config?: {
|
|
2197
|
+
[key: string]: unknown;
|
|
2198
|
+
} | undefined;
|
|
2199
|
+
}[];
|
|
2200
|
+
edges: {
|
|
2201
|
+
from: string;
|
|
2202
|
+
handle: string;
|
|
2203
|
+
to: string;
|
|
2204
|
+
}[];
|
|
2205
|
+
};
|
|
2206
|
+
revision: number;
|
|
2207
|
+
published_at: string;
|
|
2208
|
+
} | undefined;
|
|
2209
|
+
history: {
|
|
2210
|
+
graph: {
|
|
2211
|
+
nodes: {
|
|
2212
|
+
id: string;
|
|
2213
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2214
|
+
config?: {
|
|
2215
|
+
[key: string]: unknown;
|
|
2216
|
+
} | undefined;
|
|
2217
|
+
}[];
|
|
2218
|
+
edges: {
|
|
2219
|
+
from: string;
|
|
2220
|
+
handle: string;
|
|
2221
|
+
to: string;
|
|
2222
|
+
}[];
|
|
2223
|
+
};
|
|
2224
|
+
revision: number;
|
|
2225
|
+
published_at: string;
|
|
2226
|
+
}[];
|
|
2227
|
+
layout?: {
|
|
2228
|
+
[key: string]: {
|
|
2229
|
+
x: number;
|
|
2230
|
+
y: number;
|
|
2231
|
+
};
|
|
2232
|
+
} | undefined;
|
|
2233
|
+
account: string;
|
|
2234
|
+
metadata: {
|
|
2235
|
+
[key: string]: unknown;
|
|
2236
|
+
};
|
|
2237
|
+
createdAt: string;
|
|
2238
|
+
updatedAt?: string | undefined;
|
|
2239
|
+
}>;
|
|
2240
|
+
/**
|
|
2241
|
+
* `GET /loginflow` — operationId: `loginflow/list`
|
|
2242
|
+
*
|
|
2243
|
+
* List Loginflows
|
|
2244
|
+
*/
|
|
2245
|
+
loginflowList(params?: Omit<OpQuery<"loginflow/list">, "cursor" | "next">): {
|
|
2246
|
+
all: () => Promise<{
|
|
2247
|
+
id: string;
|
|
2248
|
+
name: string;
|
|
2249
|
+
trigger: "login";
|
|
2250
|
+
graph: {
|
|
2251
|
+
nodes: {
|
|
2252
|
+
id: string;
|
|
2253
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2254
|
+
config?: {
|
|
2255
|
+
[key: string]: unknown;
|
|
2256
|
+
} | undefined;
|
|
2257
|
+
}[];
|
|
2258
|
+
edges: {
|
|
2259
|
+
from: string;
|
|
2260
|
+
handle: string;
|
|
2261
|
+
to: string;
|
|
2262
|
+
}[];
|
|
2263
|
+
};
|
|
2264
|
+
revision: number;
|
|
2265
|
+
published?: {
|
|
2266
|
+
graph: {
|
|
2267
|
+
nodes: {
|
|
2268
|
+
id: string;
|
|
2269
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2270
|
+
config?: {
|
|
2271
|
+
[key: string]: unknown;
|
|
2272
|
+
} | undefined;
|
|
2273
|
+
}[];
|
|
2274
|
+
edges: {
|
|
2275
|
+
from: string;
|
|
2276
|
+
handle: string;
|
|
2277
|
+
to: string;
|
|
2278
|
+
}[];
|
|
2279
|
+
};
|
|
2280
|
+
revision: number;
|
|
2281
|
+
published_at: string;
|
|
2282
|
+
} | undefined;
|
|
2283
|
+
history: {
|
|
2284
|
+
graph: {
|
|
2285
|
+
nodes: {
|
|
2286
|
+
id: string;
|
|
2287
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2288
|
+
config?: {
|
|
2289
|
+
[key: string]: unknown;
|
|
2290
|
+
} | undefined;
|
|
2291
|
+
}[];
|
|
2292
|
+
edges: {
|
|
2293
|
+
from: string;
|
|
2294
|
+
handle: string;
|
|
2295
|
+
to: string;
|
|
2296
|
+
}[];
|
|
2297
|
+
};
|
|
2298
|
+
revision: number;
|
|
2299
|
+
published_at: string;
|
|
2300
|
+
}[];
|
|
2301
|
+
layout?: {
|
|
2302
|
+
[key: string]: {
|
|
2303
|
+
x: number;
|
|
2304
|
+
y: number;
|
|
2305
|
+
};
|
|
2306
|
+
} | undefined;
|
|
2307
|
+
account: string;
|
|
2308
|
+
metadata: {
|
|
2309
|
+
[key: string]: unknown;
|
|
2310
|
+
};
|
|
2311
|
+
createdAt: string;
|
|
2312
|
+
updatedAt?: string | undefined;
|
|
2313
|
+
}[]>;
|
|
2314
|
+
first: () => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2315
|
+
id: string;
|
|
2316
|
+
name: string;
|
|
2317
|
+
trigger: "login";
|
|
2318
|
+
graph: {
|
|
2319
|
+
nodes: {
|
|
2320
|
+
id: string;
|
|
2321
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2322
|
+
config?: {
|
|
2323
|
+
[key: string]: unknown;
|
|
2324
|
+
} | undefined;
|
|
2325
|
+
}[];
|
|
2326
|
+
edges: {
|
|
2327
|
+
from: string;
|
|
2328
|
+
handle: string;
|
|
2329
|
+
to: string;
|
|
2330
|
+
}[];
|
|
2331
|
+
};
|
|
2332
|
+
revision: number;
|
|
2333
|
+
published?: {
|
|
2334
|
+
graph: {
|
|
2335
|
+
nodes: {
|
|
2336
|
+
id: string;
|
|
2337
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2338
|
+
config?: {
|
|
2339
|
+
[key: string]: unknown;
|
|
2340
|
+
} | undefined;
|
|
2341
|
+
}[];
|
|
2342
|
+
edges: {
|
|
2343
|
+
from: string;
|
|
2344
|
+
handle: string;
|
|
2345
|
+
to: string;
|
|
2346
|
+
}[];
|
|
2347
|
+
};
|
|
2348
|
+
revision: number;
|
|
2349
|
+
published_at: string;
|
|
2350
|
+
} | undefined;
|
|
2351
|
+
history: {
|
|
2352
|
+
graph: {
|
|
2353
|
+
nodes: {
|
|
2354
|
+
id: string;
|
|
2355
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2356
|
+
config?: {
|
|
2357
|
+
[key: string]: unknown;
|
|
2358
|
+
} | undefined;
|
|
2359
|
+
}[];
|
|
2360
|
+
edges: {
|
|
2361
|
+
from: string;
|
|
2362
|
+
handle: string;
|
|
2363
|
+
to: string;
|
|
2364
|
+
}[];
|
|
2365
|
+
};
|
|
2366
|
+
revision: number;
|
|
2367
|
+
published_at: string;
|
|
2368
|
+
}[];
|
|
2369
|
+
layout?: {
|
|
2370
|
+
[key: string]: {
|
|
2371
|
+
x: number;
|
|
2372
|
+
y: number;
|
|
2373
|
+
};
|
|
2374
|
+
} | undefined;
|
|
2375
|
+
account: string;
|
|
2376
|
+
metadata: {
|
|
2377
|
+
[key: string]: unknown;
|
|
2378
|
+
};
|
|
2379
|
+
createdAt: string;
|
|
2380
|
+
updatedAt?: string | undefined;
|
|
2381
|
+
}>>;
|
|
2382
|
+
pass: (params?: {
|
|
2383
|
+
cursor?: string | undefined;
|
|
2384
|
+
pageSize?: string | undefined;
|
|
2385
|
+
} | undefined) => Promise<import("@faable/sdk-base/dist/helpers/paginator.js").Page<{
|
|
2386
|
+
id: string;
|
|
2387
|
+
name: string;
|
|
2388
|
+
trigger: "login";
|
|
2389
|
+
graph: {
|
|
2390
|
+
nodes: {
|
|
2391
|
+
id: string;
|
|
2392
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2393
|
+
config?: {
|
|
2394
|
+
[key: string]: unknown;
|
|
2395
|
+
} | undefined;
|
|
2396
|
+
}[];
|
|
2397
|
+
edges: {
|
|
2398
|
+
from: string;
|
|
2399
|
+
handle: string;
|
|
2400
|
+
to: string;
|
|
2401
|
+
}[];
|
|
2402
|
+
};
|
|
2403
|
+
revision: number;
|
|
2404
|
+
published?: {
|
|
2405
|
+
graph: {
|
|
2406
|
+
nodes: {
|
|
2407
|
+
id: string;
|
|
2408
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2409
|
+
config?: {
|
|
2410
|
+
[key: string]: unknown;
|
|
2411
|
+
} | undefined;
|
|
2412
|
+
}[];
|
|
2413
|
+
edges: {
|
|
2414
|
+
from: string;
|
|
2415
|
+
handle: string;
|
|
2416
|
+
to: string;
|
|
2417
|
+
}[];
|
|
2418
|
+
};
|
|
2419
|
+
revision: number;
|
|
2420
|
+
published_at: string;
|
|
2421
|
+
} | undefined;
|
|
2422
|
+
history: {
|
|
2423
|
+
graph: {
|
|
2424
|
+
nodes: {
|
|
2425
|
+
id: string;
|
|
2426
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2427
|
+
config?: {
|
|
2428
|
+
[key: string]: unknown;
|
|
2429
|
+
} | undefined;
|
|
2430
|
+
}[];
|
|
2431
|
+
edges: {
|
|
2432
|
+
from: string;
|
|
2433
|
+
handle: string;
|
|
2434
|
+
to: string;
|
|
2435
|
+
}[];
|
|
2436
|
+
};
|
|
2437
|
+
revision: number;
|
|
2438
|
+
published_at: string;
|
|
2439
|
+
}[];
|
|
2440
|
+
layout?: {
|
|
2441
|
+
[key: string]: {
|
|
2442
|
+
x: number;
|
|
2443
|
+
y: number;
|
|
2444
|
+
};
|
|
2445
|
+
} | undefined;
|
|
2446
|
+
account: string;
|
|
2447
|
+
metadata: {
|
|
2448
|
+
[key: string]: unknown;
|
|
2449
|
+
};
|
|
2450
|
+
createdAt: string;
|
|
2451
|
+
updatedAt?: string | undefined;
|
|
2452
|
+
}>>;
|
|
2453
|
+
};
|
|
2454
|
+
/**
|
|
2455
|
+
* `POST /loginflow/materialize` — operationId: `loginflow/materialize`
|
|
2456
|
+
*
|
|
2457
|
+
* Start a custom flow from what runs today
|
|
2458
|
+
*/
|
|
2459
|
+
loginflowMaterialize(data: OpBody<"loginflow/materialize">): Promise<{
|
|
2460
|
+
id: string;
|
|
2461
|
+
name: string;
|
|
2462
|
+
trigger: "login";
|
|
2463
|
+
graph: {
|
|
2464
|
+
nodes: {
|
|
2465
|
+
id: string;
|
|
2466
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2467
|
+
config?: {
|
|
2468
|
+
[key: string]: unknown;
|
|
2469
|
+
} | undefined;
|
|
2470
|
+
}[];
|
|
2471
|
+
edges: {
|
|
2472
|
+
from: string;
|
|
2473
|
+
handle: string;
|
|
2474
|
+
to: string;
|
|
2475
|
+
}[];
|
|
2476
|
+
};
|
|
2477
|
+
revision: number;
|
|
2478
|
+
published?: {
|
|
2479
|
+
graph: {
|
|
2480
|
+
nodes: {
|
|
2481
|
+
id: string;
|
|
2482
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2483
|
+
config?: {
|
|
2484
|
+
[key: string]: unknown;
|
|
2485
|
+
} | undefined;
|
|
2486
|
+
}[];
|
|
2487
|
+
edges: {
|
|
2488
|
+
from: string;
|
|
2489
|
+
handle: string;
|
|
2490
|
+
to: string;
|
|
2491
|
+
}[];
|
|
2492
|
+
};
|
|
2493
|
+
revision: number;
|
|
2494
|
+
published_at: string;
|
|
2495
|
+
} | undefined;
|
|
2496
|
+
history: {
|
|
2497
|
+
graph: {
|
|
2498
|
+
nodes: {
|
|
2499
|
+
id: string;
|
|
2500
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2501
|
+
config?: {
|
|
2502
|
+
[key: string]: unknown;
|
|
2503
|
+
} | undefined;
|
|
2504
|
+
}[];
|
|
2505
|
+
edges: {
|
|
2506
|
+
from: string;
|
|
2507
|
+
handle: string;
|
|
2508
|
+
to: string;
|
|
2509
|
+
}[];
|
|
2510
|
+
};
|
|
2511
|
+
revision: number;
|
|
2512
|
+
published_at: string;
|
|
2513
|
+
}[];
|
|
2514
|
+
layout?: {
|
|
2515
|
+
[key: string]: {
|
|
2516
|
+
x: number;
|
|
2517
|
+
y: number;
|
|
2518
|
+
};
|
|
2519
|
+
} | undefined;
|
|
2520
|
+
account: string;
|
|
2521
|
+
metadata: {
|
|
2522
|
+
[key: string]: unknown;
|
|
2523
|
+
};
|
|
2524
|
+
createdAt: string;
|
|
2525
|
+
updatedAt?: string | undefined;
|
|
2526
|
+
}>;
|
|
2527
|
+
/**
|
|
2528
|
+
* `POST /loginflow/{loginflow_id}/preview-token` — operationId: `loginflow/previewToken`
|
|
2529
|
+
*
|
|
2530
|
+
* Try the draft on a real login, in your browser only
|
|
2531
|
+
*/
|
|
2532
|
+
loginflowPreviewToken(loginflow_id: string): Promise<{
|
|
2533
|
+
token: string;
|
|
2534
|
+
expires_in: number;
|
|
2535
|
+
}>;
|
|
2536
|
+
/**
|
|
2537
|
+
* `POST /loginflow/{loginflow_id}/publish` — operationId: `loginflow/publish`
|
|
2538
|
+
*
|
|
2539
|
+
* Make the draft the graph logins run
|
|
2540
|
+
*/
|
|
2541
|
+
loginflowPublish(loginflow_id: string, data: OpBody<"loginflow/publish">): Promise<{
|
|
2542
|
+
id: string;
|
|
2543
|
+
name: string;
|
|
2544
|
+
trigger: "login";
|
|
2545
|
+
graph: {
|
|
2546
|
+
nodes: {
|
|
2547
|
+
id: string;
|
|
2548
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2549
|
+
config?: {
|
|
2550
|
+
[key: string]: unknown;
|
|
2551
|
+
} | undefined;
|
|
2552
|
+
}[];
|
|
2553
|
+
edges: {
|
|
2554
|
+
from: string;
|
|
2555
|
+
handle: string;
|
|
2556
|
+
to: string;
|
|
2557
|
+
}[];
|
|
2558
|
+
};
|
|
2559
|
+
revision: number;
|
|
2560
|
+
published?: {
|
|
2561
|
+
graph: {
|
|
2562
|
+
nodes: {
|
|
2563
|
+
id: string;
|
|
2564
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2565
|
+
config?: {
|
|
2566
|
+
[key: string]: unknown;
|
|
2567
|
+
} | undefined;
|
|
2568
|
+
}[];
|
|
2569
|
+
edges: {
|
|
2570
|
+
from: string;
|
|
2571
|
+
handle: string;
|
|
2572
|
+
to: string;
|
|
2573
|
+
}[];
|
|
2574
|
+
};
|
|
2575
|
+
revision: number;
|
|
2576
|
+
published_at: string;
|
|
2577
|
+
} | undefined;
|
|
2578
|
+
history: {
|
|
2579
|
+
graph: {
|
|
2580
|
+
nodes: {
|
|
2581
|
+
id: string;
|
|
2582
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2583
|
+
config?: {
|
|
2584
|
+
[key: string]: unknown;
|
|
2585
|
+
} | undefined;
|
|
2586
|
+
}[];
|
|
2587
|
+
edges: {
|
|
2588
|
+
from: string;
|
|
2589
|
+
handle: string;
|
|
2590
|
+
to: string;
|
|
2591
|
+
}[];
|
|
2592
|
+
};
|
|
2593
|
+
revision: number;
|
|
2594
|
+
published_at: string;
|
|
2595
|
+
}[];
|
|
2596
|
+
layout?: {
|
|
2597
|
+
[key: string]: {
|
|
2598
|
+
x: number;
|
|
2599
|
+
y: number;
|
|
2600
|
+
};
|
|
2601
|
+
} | undefined;
|
|
2602
|
+
account: string;
|
|
2603
|
+
metadata: {
|
|
2604
|
+
[key: string]: unknown;
|
|
2605
|
+
};
|
|
2606
|
+
createdAt: string;
|
|
2607
|
+
updatedAt?: string | undefined;
|
|
2608
|
+
}>;
|
|
2609
|
+
/**
|
|
2610
|
+
* `GET /loginflow/resolved` — operationId: `loginflow/resolved`
|
|
2611
|
+
*
|
|
2612
|
+
* The graph this account (or client) runs right now
|
|
2613
|
+
*/
|
|
2614
|
+
loginflowResolved(params?: OpQuery<"loginflow/resolved">): Promise<{
|
|
2615
|
+
source: "compiled" | "published";
|
|
2616
|
+
flow_id: string | null;
|
|
2617
|
+
revision: number;
|
|
2618
|
+
graph: {
|
|
2619
|
+
nodes: {
|
|
2620
|
+
id: string;
|
|
2621
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2622
|
+
config?: {
|
|
2623
|
+
[key: string]: unknown;
|
|
2624
|
+
} | undefined;
|
|
2625
|
+
}[];
|
|
2626
|
+
edges: {
|
|
2627
|
+
from: string;
|
|
2628
|
+
handle: string;
|
|
2629
|
+
to: string;
|
|
2630
|
+
}[];
|
|
2631
|
+
};
|
|
2632
|
+
bound: {
|
|
2633
|
+
flow_id: string;
|
|
2634
|
+
bound_to: "account" | "client";
|
|
2635
|
+
name: string;
|
|
2636
|
+
revision: number;
|
|
2637
|
+
published_revision: number | null;
|
|
2638
|
+
draft: {
|
|
2639
|
+
nodes: {
|
|
2640
|
+
id: string;
|
|
2641
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2642
|
+
config?: {
|
|
2643
|
+
[key: string]: unknown;
|
|
2644
|
+
} | undefined;
|
|
2645
|
+
}[];
|
|
2646
|
+
edges: {
|
|
2647
|
+
from: string;
|
|
2648
|
+
handle: string;
|
|
2649
|
+
to: string;
|
|
2650
|
+
}[];
|
|
2651
|
+
};
|
|
2652
|
+
layout?: {
|
|
2653
|
+
[key: string]: {
|
|
2654
|
+
x: number;
|
|
2655
|
+
y: number;
|
|
2656
|
+
};
|
|
2657
|
+
} | undefined;
|
|
2658
|
+
history: number[];
|
|
2659
|
+
} | null;
|
|
2660
|
+
}>;
|
|
2661
|
+
/**
|
|
2662
|
+
* `POST /loginflow/{loginflow_id}/rollback` — operationId: `loginflow/rollback`
|
|
2663
|
+
*
|
|
2664
|
+
* Run a previously published revision again
|
|
2665
|
+
*/
|
|
2666
|
+
loginflowRollback(loginflow_id: string, data: OpBody<"loginflow/rollback">): Promise<{
|
|
2667
|
+
id: string;
|
|
2668
|
+
name: string;
|
|
2669
|
+
trigger: "login";
|
|
2670
|
+
graph: {
|
|
2671
|
+
nodes: {
|
|
2672
|
+
id: string;
|
|
2673
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2674
|
+
config?: {
|
|
2675
|
+
[key: string]: unknown;
|
|
2676
|
+
} | undefined;
|
|
2677
|
+
}[];
|
|
2678
|
+
edges: {
|
|
2679
|
+
from: string;
|
|
2680
|
+
handle: string;
|
|
2681
|
+
to: string;
|
|
2682
|
+
}[];
|
|
2683
|
+
};
|
|
2684
|
+
revision: number;
|
|
2685
|
+
published?: {
|
|
2686
|
+
graph: {
|
|
2687
|
+
nodes: {
|
|
2688
|
+
id: string;
|
|
2689
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2690
|
+
config?: {
|
|
2691
|
+
[key: string]: unknown;
|
|
2692
|
+
} | undefined;
|
|
2693
|
+
}[];
|
|
2694
|
+
edges: {
|
|
2695
|
+
from: string;
|
|
2696
|
+
handle: string;
|
|
2697
|
+
to: string;
|
|
2698
|
+
}[];
|
|
2699
|
+
};
|
|
2700
|
+
revision: number;
|
|
2701
|
+
published_at: string;
|
|
2702
|
+
} | undefined;
|
|
2703
|
+
history: {
|
|
2704
|
+
graph: {
|
|
2705
|
+
nodes: {
|
|
2706
|
+
id: string;
|
|
2707
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2708
|
+
config?: {
|
|
2709
|
+
[key: string]: unknown;
|
|
2710
|
+
} | undefined;
|
|
2711
|
+
}[];
|
|
2712
|
+
edges: {
|
|
2713
|
+
from: string;
|
|
2714
|
+
handle: string;
|
|
2715
|
+
to: string;
|
|
2716
|
+
}[];
|
|
2717
|
+
};
|
|
2718
|
+
revision: number;
|
|
2719
|
+
published_at: string;
|
|
2720
|
+
}[];
|
|
2721
|
+
layout?: {
|
|
2722
|
+
[key: string]: {
|
|
2723
|
+
x: number;
|
|
2724
|
+
y: number;
|
|
2725
|
+
};
|
|
2726
|
+
} | undefined;
|
|
2727
|
+
account: string;
|
|
2728
|
+
metadata: {
|
|
2729
|
+
[key: string]: unknown;
|
|
2730
|
+
};
|
|
2731
|
+
createdAt: string;
|
|
2732
|
+
updatedAt?: string | undefined;
|
|
2733
|
+
}>;
|
|
2734
|
+
/**
|
|
2735
|
+
* `POST /loginflow/{loginflow_id}` — operationId: `loginflow/update`
|
|
2736
|
+
*
|
|
2737
|
+
* Update Loginflow
|
|
2738
|
+
*/
|
|
2739
|
+
loginflowUpdate(loginflow_id: string, data: OpBody<"loginflow/update">): Promise<{
|
|
2740
|
+
id: string;
|
|
2741
|
+
name: string;
|
|
2742
|
+
trigger: "login";
|
|
2743
|
+
graph: {
|
|
2744
|
+
nodes: {
|
|
2745
|
+
id: string;
|
|
2746
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2747
|
+
config?: {
|
|
2748
|
+
[key: string]: unknown;
|
|
2749
|
+
} | undefined;
|
|
2750
|
+
}[];
|
|
2751
|
+
edges: {
|
|
2752
|
+
from: string;
|
|
2753
|
+
handle: string;
|
|
2754
|
+
to: string;
|
|
2755
|
+
}[];
|
|
2756
|
+
};
|
|
2757
|
+
revision: number;
|
|
2758
|
+
published?: {
|
|
2759
|
+
graph: {
|
|
2760
|
+
nodes: {
|
|
2761
|
+
id: string;
|
|
2762
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2763
|
+
config?: {
|
|
2764
|
+
[key: string]: unknown;
|
|
2765
|
+
} | undefined;
|
|
2766
|
+
}[];
|
|
2767
|
+
edges: {
|
|
2768
|
+
from: string;
|
|
2769
|
+
handle: string;
|
|
2770
|
+
to: string;
|
|
2771
|
+
}[];
|
|
2772
|
+
};
|
|
2773
|
+
revision: number;
|
|
2774
|
+
published_at: string;
|
|
2775
|
+
} | undefined;
|
|
2776
|
+
history: {
|
|
2777
|
+
graph: {
|
|
2778
|
+
nodes: {
|
|
2779
|
+
id: string;
|
|
2780
|
+
type: "end" | "start" | "action" | "identify" | "methods" | "credential" | "mfa_gate" | "mfa_challenge" | "mfa_enroll" | "passkey_offer" | "condition" | "deny" | "consent" | "set_data";
|
|
2781
|
+
config?: {
|
|
2782
|
+
[key: string]: unknown;
|
|
2783
|
+
} | undefined;
|
|
2784
|
+
}[];
|
|
2785
|
+
edges: {
|
|
2786
|
+
from: string;
|
|
2787
|
+
handle: string;
|
|
2788
|
+
to: string;
|
|
2789
|
+
}[];
|
|
2790
|
+
};
|
|
2791
|
+
revision: number;
|
|
2792
|
+
published_at: string;
|
|
2793
|
+
}[];
|
|
2794
|
+
layout?: {
|
|
2795
|
+
[key: string]: {
|
|
2796
|
+
x: number;
|
|
2797
|
+
y: number;
|
|
2798
|
+
};
|
|
2799
|
+
} | undefined;
|
|
2800
|
+
account: string;
|
|
2801
|
+
metadata: {
|
|
2802
|
+
[key: string]: unknown;
|
|
2803
|
+
};
|
|
2804
|
+
createdAt: string;
|
|
2805
|
+
updatedAt?: string | undefined;
|
|
2806
|
+
}>;
|
|
2807
|
+
/**
|
|
2808
|
+
* `POST /loginflow/{loginflow_id}/validate` — operationId: `loginflow/validate`
|
|
2809
|
+
*
|
|
2810
|
+
* Check a draft against the rules a publish enforces
|
|
2811
|
+
*/
|
|
2812
|
+
loginflowValidate(loginflow_id: string, data: OpBody<"loginflow/validate">): Promise<{
|
|
2813
|
+
ok: boolean;
|
|
2814
|
+
issues: {
|
|
2815
|
+
code: string;
|
|
2816
|
+
node?: string | undefined;
|
|
2817
|
+
handle?: string | undefined;
|
|
2818
|
+
message: string;
|
|
2819
|
+
}[];
|
|
2820
|
+
}>;
|
|
1961
2821
|
/**
|
|
1962
2822
|
* `POST /notificationsubscription` — operationId: `notificationsubscription/create`
|
|
1963
2823
|
*
|
|
@@ -2816,6 +3676,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
2816
3676
|
email_change_locked_at?: string | null | undefined;
|
|
2817
3677
|
email_bounced_at?: string | null | undefined;
|
|
2818
3678
|
welcome_sent_at?: string | null | undefined;
|
|
3679
|
+
passkey_prompted_at?: string | null | undefined;
|
|
3680
|
+
passkey_prompt_count?: number | undefined;
|
|
3681
|
+
passkey_prompt_dismissed_at?: string | null | undefined;
|
|
2819
3682
|
phone?: string | null | undefined;
|
|
2820
3683
|
phone_verified: boolean;
|
|
2821
3684
|
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
@@ -2876,6 +3739,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
2876
3739
|
email_change_locked_at?: string | null | undefined;
|
|
2877
3740
|
email_bounced_at?: string | null | undefined;
|
|
2878
3741
|
welcome_sent_at?: string | null | undefined;
|
|
3742
|
+
passkey_prompted_at?: string | null | undefined;
|
|
3743
|
+
passkey_prompt_count?: number | undefined;
|
|
3744
|
+
passkey_prompt_dismissed_at?: string | null | undefined;
|
|
2879
3745
|
phone?: string | null | undefined;
|
|
2880
3746
|
phone_verified: boolean;
|
|
2881
3747
|
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
@@ -2936,6 +3802,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
2936
3802
|
email_change_locked_at?: string | null | undefined;
|
|
2937
3803
|
email_bounced_at?: string | null | undefined;
|
|
2938
3804
|
welcome_sent_at?: string | null | undefined;
|
|
3805
|
+
passkey_prompted_at?: string | null | undefined;
|
|
3806
|
+
passkey_prompt_count?: number | undefined;
|
|
3807
|
+
passkey_prompt_dismissed_at?: string | null | undefined;
|
|
2939
3808
|
phone?: string | null | undefined;
|
|
2940
3809
|
phone_verified: boolean;
|
|
2941
3810
|
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
@@ -2997,6 +3866,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
2997
3866
|
email_change_locked_at?: string | null | undefined;
|
|
2998
3867
|
email_bounced_at?: string | null | undefined;
|
|
2999
3868
|
welcome_sent_at?: string | null | undefined;
|
|
3869
|
+
passkey_prompted_at?: string | null | undefined;
|
|
3870
|
+
passkey_prompt_count?: number | undefined;
|
|
3871
|
+
passkey_prompt_dismissed_at?: string | null | undefined;
|
|
3000
3872
|
phone?: string | null | undefined;
|
|
3001
3873
|
phone_verified: boolean;
|
|
3002
3874
|
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
@@ -3052,6 +3924,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
3052
3924
|
email_change_locked_at?: string | null | undefined;
|
|
3053
3925
|
email_bounced_at?: string | null | undefined;
|
|
3054
3926
|
welcome_sent_at?: string | null | undefined;
|
|
3927
|
+
passkey_prompted_at?: string | null | undefined;
|
|
3928
|
+
passkey_prompt_count?: number | undefined;
|
|
3929
|
+
passkey_prompt_dismissed_at?: string | null | undefined;
|
|
3055
3930
|
phone?: string | null | undefined;
|
|
3056
3931
|
phone_verified: boolean;
|
|
3057
3932
|
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
@@ -3110,6 +3985,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
3110
3985
|
email_change_locked_at?: string | null | undefined;
|
|
3111
3986
|
email_bounced_at?: string | null | undefined;
|
|
3112
3987
|
welcome_sent_at?: string | null | undefined;
|
|
3988
|
+
passkey_prompted_at?: string | null | undefined;
|
|
3989
|
+
passkey_prompt_count?: number | undefined;
|
|
3990
|
+
passkey_prompt_dismissed_at?: string | null | undefined;
|
|
3113
3991
|
phone?: string | null | undefined;
|
|
3114
3992
|
phone_verified: boolean;
|
|
3115
3993
|
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|
|
@@ -3181,6 +4059,9 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
|
|
|
3181
4059
|
email_change_locked_at?: string | null | undefined;
|
|
3182
4060
|
email_bounced_at?: string | null | undefined;
|
|
3183
4061
|
welcome_sent_at?: string | null | undefined;
|
|
4062
|
+
passkey_prompted_at?: string | null | undefined;
|
|
4063
|
+
passkey_prompt_count?: number | undefined;
|
|
4064
|
+
passkey_prompt_dismissed_at?: string | null | undefined;
|
|
3184
4065
|
phone?: string | null | undefined;
|
|
3185
4066
|
phone_verified: boolean;
|
|
3186
4067
|
phone_verified_method?: "manual" | "verification_flow" | "passwordless_otp" | "team_invite" | "email_change" | "federated" | null | undefined;
|