/* 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'; import type { FlowSet } from './FlowSet'; import { FlowSetFromJSON, FlowSetFromJSONTyped, FlowSetToJSON, FlowSetToJSONTyped, } from './FlowSet'; /** * AuthenticatorEndpointGDTCStage Serializer * @export * @interface AuthenticatorEndpointGDTCStage */ export interface AuthenticatorEndpointGDTCStage { /** * * @type {string} * @memberof AuthenticatorEndpointGDTCStage */ readonly pk: string; /** * * @type {string} * @memberof AuthenticatorEndpointGDTCStage */ name: string; /** * Get object type so that we know how to edit the object * @type {string} * @memberof AuthenticatorEndpointGDTCStage */ readonly component: string; /** * Return object's verbose_name * @type {string} * @memberof AuthenticatorEndpointGDTCStage */ readonly verboseName: string; /** * Return object's plural verbose_name * @type {string} * @memberof AuthenticatorEndpointGDTCStage */ readonly verboseNamePlural: string; /** * Return internal model name * @type {string} * @memberof AuthenticatorEndpointGDTCStage */ readonly metaModelName: string; /** * * @type {Array} * @memberof AuthenticatorEndpointGDTCStage */ flowSet?: Array; /** * Flow used by an authenticated user to configure this Stage. If empty, user will not be able to configure this stage. * @type {string} * @memberof AuthenticatorEndpointGDTCStage */ configureFlow?: string | null; /** * * @type {string} * @memberof AuthenticatorEndpointGDTCStage */ friendlyName?: string | null; /** * * @type {{ [key: string]: any; }} * @memberof AuthenticatorEndpointGDTCStage */ credentials: { [key: string]: any; }; } /** * Check if a given object implements the AuthenticatorEndpointGDTCStage interface. */ export function instanceOfAuthenticatorEndpointGDTCStage(value: object): value is AuthenticatorEndpointGDTCStage { if (!('pk' in value) || value['pk'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('component' in value) || value['component'] === undefined) return false; if (!('verboseName' in value) || value['verboseName'] === undefined) return false; if (!('verboseNamePlural' in value) || value['verboseNamePlural'] === undefined) return false; if (!('metaModelName' in value) || value['metaModelName'] === undefined) return false; if (!('credentials' in value) || value['credentials'] === undefined) return false; return true; } export function AuthenticatorEndpointGDTCStageFromJSON(json: any): AuthenticatorEndpointGDTCStage { return AuthenticatorEndpointGDTCStageFromJSONTyped(json, false); } export function AuthenticatorEndpointGDTCStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthenticatorEndpointGDTCStage { if (json == null) { return json; } return { 'pk': json['pk'], 'name': json['name'], 'component': json['component'], 'verboseName': json['verbose_name'], 'verboseNamePlural': json['verbose_name_plural'], 'metaModelName': json['meta_model_name'], 'flowSet': json['flow_set'] == null ? undefined : ((json['flow_set'] as Array).map(FlowSetFromJSON)), 'configureFlow': json['configure_flow'] == null ? undefined : json['configure_flow'], 'friendlyName': json['friendly_name'] == null ? undefined : json['friendly_name'], 'credentials': json['credentials'], }; } export function AuthenticatorEndpointGDTCStageToJSON(json: any): AuthenticatorEndpointGDTCStage { return AuthenticatorEndpointGDTCStageToJSONTyped(json, false); } export function AuthenticatorEndpointGDTCStageToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'flow_set': value['flowSet'] == null ? undefined : ((value['flowSet'] as Array).map(FlowSetToJSON)), 'configure_flow': value['configureFlow'], 'friendly_name': value['friendlyName'], 'credentials': value['credentials'], }; }