/* 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'; /** * Consent challenge response, any valid response request is valid * @export * @interface ConsentChallengeResponseRequest */ export interface ConsentChallengeResponseRequest { /** * * @type {string} * @memberof ConsentChallengeResponseRequest */ component?: string; /** * * @type {string} * @memberof ConsentChallengeResponseRequest */ token: string; } /** * Check if a given object implements the ConsentChallengeResponseRequest interface. */ export function instanceOfConsentChallengeResponseRequest(value: object): value is ConsentChallengeResponseRequest { if (!('token' in value) || value['token'] === undefined) return false; return true; } export function ConsentChallengeResponseRequestFromJSON(json: any): ConsentChallengeResponseRequest { return ConsentChallengeResponseRequestFromJSONTyped(json, false); } export function ConsentChallengeResponseRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConsentChallengeResponseRequest { if (json == null) { return json; } return { 'component': json['component'] == null ? undefined : json['component'], 'token': json['token'], }; } export function ConsentChallengeResponseRequestToJSON(json: any): ConsentChallengeResponseRequest { return ConsentChallengeResponseRequestToJSONTyped(json, false); } export function ConsentChallengeResponseRequestToJSONTyped(value?: ConsentChallengeResponseRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'component': value['component'], 'token': value['token'], }; }