/* tslint:disable */
/* eslint-disable */
/**
 * 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.
 */
/**
 * @export
 */
export const ChangePasswordWithTwoFactorAuthTokenConcreteTypeEnum = {
    org_sagebionetworks_repo_model_auth_ChangePasswordWithTwoFactorAuthToken: 'org.sagebionetworks.repo.model.auth.ChangePasswordWithTwoFactorAuthToken'
};
/**
 * @export
 */
export const ChangePasswordWithTwoFactorAuthTokenOtpTypeEnum = {
    TOTP: 'TOTP',
    RECOVERY_CODE: 'RECOVERY_CODE'
};
/**
 * Check if a given object implements the ChangePasswordWithTwoFactorAuthToken interface.
 */
export function instanceOfChangePasswordWithTwoFactorAuthToken(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ChangePasswordWithTwoFactorAuthTokenConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function ChangePasswordWithTwoFactorAuthTokenFromJSON(json) {
    return ChangePasswordWithTwoFactorAuthTokenFromJSONTyped(json, false);
}
export function ChangePasswordWithTwoFactorAuthTokenFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'newPassword': json['newPassword'] == null ? undefined : json['newPassword'],
        'concreteType': json['concreteType'],
        'userId': json['userId'] == null ? undefined : json['userId'],
        'twoFaToken': json['twoFaToken'] == null ? undefined : json['twoFaToken'],
        'otpCode': json['otpCode'] == null ? undefined : json['otpCode'],
        'otpType': json['otpType'] == null ? undefined : json['otpType'],
    };
}
export function ChangePasswordWithTwoFactorAuthTokenToJSON(json) {
    return ChangePasswordWithTwoFactorAuthTokenToJSONTyped(json, false);
}
export function ChangePasswordWithTwoFactorAuthTokenToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'newPassword': value['newPassword'],
        'concreteType': value['concreteType'],
        'userId': value['userId'],
        'twoFaToken': value['twoFaToken'],
        'otpCode': value['otpCode'],
        'otpType': value['otpType'],
    };
}
//# sourceMappingURL=ChangePasswordWithTwoFactorAuthToken.js.map