/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2025.6.3 * Contact: hello@goauthentik.io * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * Authenticator Email Challenge response, device is set by get_response_instance * @export * @interface AuthenticatorEmailChallengeResponseRequest */ export interface AuthenticatorEmailChallengeResponseRequest { /** * * @type {string} * @memberof AuthenticatorEmailChallengeResponseRequest */ component?: string; /** * * @type {number} * @memberof AuthenticatorEmailChallengeResponseRequest */ code?: number; /** * * @type {string} * @memberof AuthenticatorEmailChallengeResponseRequest */ email?: string; } /** * Check if a given object implements the AuthenticatorEmailChallengeResponseRequest interface. */ export function instanceOfAuthenticatorEmailChallengeResponseRequest(value: object): value is AuthenticatorEmailChallengeResponseRequest { return true; } export function AuthenticatorEmailChallengeResponseRequestFromJSON(json: any): AuthenticatorEmailChallengeResponseRequest { return AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json, false); } export function AuthenticatorEmailChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEmailChallengeResponseRequest { if (json == null) { return json; } return { 'component': json['component'] == null ? undefined : json['component'], 'code': json['code'] == null ? undefined : json['code'], 'email': json['email'] == null ? undefined : json['email'], }; } export function AuthenticatorEmailChallengeResponseRequestToJSON(json: any): AuthenticatorEmailChallengeResponseRequest { return AuthenticatorEmailChallengeResponseRequestToJSONTyped(json, false); } export function AuthenticatorEmailChallengeResponseRequestToJSONTyped(value?: AuthenticatorEmailChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'component': value['component'], 'code': value['code'], 'email': value['email'], }; }