/** * Synapse REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Used to login when two factor authentication is enabled. * @export * @interface TwoFactorAuthLoginRequest */ export interface TwoFactorAuthLoginRequest { /** * The id of the user that attempted to authenticate. * @type {number} * @memberof TwoFactorAuthLoginRequest */ userId?: number; /** * The token that was included in the error response when authenticating. * @type {string} * @memberof TwoFactorAuthLoginRequest */ twoFaToken?: string; /** * One time password (e.g. generated by the authenticator application, depending on the otpType value) * @type {string} * @memberof TwoFactorAuthLoginRequest */ otpCode?: string; /** * The type of one time password code that can be used to authenticate through two factor authentication. * @type {string} * @memberof TwoFactorAuthLoginRequest */ otpType?: TwoFactorAuthLoginRequestOtpTypeEnum; } /** * @export */ export declare const TwoFactorAuthLoginRequestOtpTypeEnum: { readonly TOTP: "TOTP"; readonly RECOVERY_CODE: "RECOVERY_CODE"; }; export type TwoFactorAuthLoginRequestOtpTypeEnum = typeof TwoFactorAuthLoginRequestOtpTypeEnum[keyof typeof TwoFactorAuthLoginRequestOtpTypeEnum]; /** * Check if a given object implements the TwoFactorAuthLoginRequest interface. */ export declare function instanceOfTwoFactorAuthLoginRequest(value: object): value is TwoFactorAuthLoginRequest; export declare function TwoFactorAuthLoginRequestFromJSON(json: any): TwoFactorAuthLoginRequest; export declare function TwoFactorAuthLoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TwoFactorAuthLoginRequest; export declare function TwoFactorAuthLoginRequestToJSON(json: any): TwoFactorAuthLoginRequest; export declare function TwoFactorAuthLoginRequestToJSONTyped(value?: TwoFactorAuthLoginRequest | null, ignoreDiscriminator?: boolean): any;