/* tslint:disable */ /* eslint-disable */ /** * authentik * Making authentication simple. * * The version of the OpenAPI document: 2026.8.0-rc7 * 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 { Application } from './Application'; import { ApplicationFromJSON, ApplicationFromJSONTyped, ApplicationToJSON, ApplicationToJSONTyped, } from './Application'; /** * Generic representation of a single request target: whatever was actually * requested (an Application, an Application Entitlement, ...), always paired with the * parent it belongs to, so the UI/audit trail has that context even when the * request itself was scoped narrower than the whole app. * @export * @interface RequestableTarget */ export interface RequestableTarget { /** * Return object's verbose_name * @type {string} * @memberof RequestableTarget */ readonly verboseName: string; /** * Return object's plural verbose_name * @type {string} * @memberof RequestableTarget */ readonly verboseNamePlural: string; /** * Return internal model name * @type {string} * @memberof RequestableTarget */ readonly metaModelName: string; /** * * @type {string} * @memberof RequestableTarget */ readonly pbmUuid: string; /** * * @type {string} * @memberof RequestableTarget */ readonly label: string; /** * * @type {Application} * @memberof RequestableTarget */ readonly parent: Application | null; } /** * Check if a given object implements the RequestableTarget interface. */ export function instanceOfRequestableTarget(value: object): value is RequestableTarget { 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 (!('pbmUuid' in value) || value['pbmUuid'] === undefined) return false; if (!('label' in value) || value['label'] === undefined) return false; if (!('parent' in value) || value['parent'] === undefined) return false; return true; } export function RequestableTargetFromJSON(json: any): RequestableTarget { return RequestableTargetFromJSONTyped(json, false); } export function RequestableTargetFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestableTarget { if (json == null) { return json; } return { 'verboseName': json['verbose_name'], 'verboseNamePlural': json['verbose_name_plural'], 'metaModelName': json['meta_model_name'], 'pbmUuid': json['pbm_uuid'], 'label': json['label'], 'parent': ApplicationFromJSON(json['parent']), }; } export function RequestableTargetToJSON(json: any): RequestableTarget { return RequestableTargetToJSONTyped(json, false); } export function RequestableTargetToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { }; }