1 import type { AuthenticationCredentialsPayload, AuthenticationOptions, RegisteredKey } from '../webauthn/interface';
3 export interface Fido2Response {
4 AuthenticationOptions: AuthenticationOptions;
5 RegisteredKeys: RegisteredKey[];
8 export type Fido2Data = AuthenticationCredentialsPayload;
10 export interface TwoFaResponse {
12 FIDO2: Fido2Response | null;
16 export interface AuthResponse {
25 TemporaryPassword: 0 | 1;
32 export interface PushForkResponse {
36 export interface PullForkResponse {
48 export interface RefreshSessionResponse {
57 export interface LocalSessionResponse {
62 PrimaryEmail?: string;
65 export type AuthVersion = 0 | 1 | 2 | 3 | 4;
67 export interface ChallengePayload {
68 [key: string]: string;
71 export interface InfoResponse {
73 ServerEphemeral: string;
79 export interface SSOInfoResponse {
80 SSOChallengeToken: string;
83 export interface InfoAuthedResponse extends InfoResponse {
87 export interface ModulusResponse {
92 export interface LocalKeyResponse {
96 export interface MemberAuthResponse {
101 export interface ExtraSessionForkData {
103 email?: string | null;