/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.0-rc1
 * 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.
 */

/**
 * Response to signed challenge
 * @export
 * @interface EndpointAgentChallengeResponseRequest
 */
export interface EndpointAgentChallengeResponseRequest {
    /**
     *
     * @type {string}
     * @memberof EndpointAgentChallengeResponseRequest
     */
    component?: string;
    /**
     *
     * @type {string}
     * @memberof EndpointAgentChallengeResponseRequest
     */
    response?: string | null;
}

/**
 * Check if a given object implements the EndpointAgentChallengeResponseRequest interface.
 */
export function instanceOfEndpointAgentChallengeResponseRequest(
    value: object,
): value is EndpointAgentChallengeResponseRequest {
    return true;
}

export function EndpointAgentChallengeResponseRequestFromJSON(
    json: any,
): EndpointAgentChallengeResponseRequest {
    return EndpointAgentChallengeResponseRequestFromJSONTyped(json, false);
}

export function EndpointAgentChallengeResponseRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): EndpointAgentChallengeResponseRequest {
    if (json == null) {
        return json;
    }
    return {
        component: json["component"] == null ? undefined : json["component"],
        response: json["response"] == null ? undefined : json["response"],
    };
}

export function EndpointAgentChallengeResponseRequestToJSON(
    json: any,
): EndpointAgentChallengeResponseRequest {
    return EndpointAgentChallengeResponseRequestToJSONTyped(json, false);
}

export function EndpointAgentChallengeResponseRequestToJSONTyped(
    value?: EndpointAgentChallengeResponseRequest | null,
    ignoreDiscriminator: boolean = false,
): any {
    if (value == null) {
        return value;
    }

    return {
        component: value["component"],
        response: value["response"],
    };
}
