/* 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'; /** * Validate captcha token * @export * @interface CaptchaChallengeResponseRequest */ export interface CaptchaChallengeResponseRequest { /** * * @type {string} * @memberof CaptchaChallengeResponseRequest */ component?: string; /** * * @type {string} * @memberof CaptchaChallengeResponseRequest */ token: string; } /** * Check if a given object implements the CaptchaChallengeResponseRequest interface. */ export function instanceOfCaptchaChallengeResponseRequest(value: object): value is CaptchaChallengeResponseRequest { if (!('token' in value) || value['token'] === undefined) return false; return true; } export function CaptchaChallengeResponseRequestFromJSON(json: any): CaptchaChallengeResponseRequest { return CaptchaChallengeResponseRequestFromJSONTyped(json, false); } export function CaptchaChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaptchaChallengeResponseRequest { if (json == null) { return json; } return { 'component': json['component'] == null ? undefined : json['component'], 'token': json['token'], }; } export function CaptchaChallengeResponseRequestToJSON(json: any): CaptchaChallengeResponseRequest { return CaptchaChallengeResponseRequestToJSONTyped(json, false); } export function CaptchaChallengeResponseRequestToJSONTyped(value?: CaptchaChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'component': value['component'], 'token': value['token'], }; }