/* 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 { BlueprintInstanceStatusEnum } from './BlueprintInstanceStatusEnum'; import { BlueprintInstanceStatusEnumFromJSON, BlueprintInstanceStatusEnumFromJSONTyped, BlueprintInstanceStatusEnumToJSON, BlueprintInstanceStatusEnumToJSONTyped, } from './BlueprintInstanceStatusEnum'; /** * Info about a single blueprint instance file * @export * @interface BlueprintInstance */ export interface BlueprintInstance { /** * * @type {string} * @memberof BlueprintInstance */ readonly pk: string; /** * * @type {string} * @memberof BlueprintInstance */ name: string; /** * * @type {string} * @memberof BlueprintInstance */ path?: string; /** * * @type {{ [key: string]: any; }} * @memberof BlueprintInstance */ context?: { [key: string]: any; }; /** * * @type {Date} * @memberof BlueprintInstance */ readonly lastApplied: Date; /** * * @type {string} * @memberof BlueprintInstance */ readonly lastAppliedHash: string; /** * * @type {BlueprintInstanceStatusEnum} * @memberof BlueprintInstance */ readonly status: BlueprintInstanceStatusEnum; /** * * @type {boolean} * @memberof BlueprintInstance */ enabled?: boolean; /** * * @type {Array} * @memberof BlueprintInstance */ readonly managedModels: Array; /** * * @type {{ [key: string]: any; }} * @memberof BlueprintInstance */ readonly metadata: { [key: string]: any; }; /** * * @type {string} * @memberof BlueprintInstance */ content?: string; } /** * Check if a given object implements the BlueprintInstance interface. */ export function instanceOfBlueprintInstance(value: object): value is BlueprintInstance { if (!('pk' in value) || value['pk'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; if (!('lastApplied' in value) || value['lastApplied'] === undefined) return false; if (!('lastAppliedHash' in value) || value['lastAppliedHash'] === undefined) return false; if (!('status' in value) || value['status'] === undefined) return false; if (!('managedModels' in value) || value['managedModels'] === undefined) return false; if (!('metadata' in value) || value['metadata'] === undefined) return false; return true; } export function BlueprintInstanceFromJSON(json: any): BlueprintInstance { return BlueprintInstanceFromJSONTyped(json, false); } export function BlueprintInstanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintInstance { if (json == null) { return json; } return { 'pk': json['pk'], 'name': json['name'], 'path': json['path'] == null ? undefined : json['path'], 'context': json['context'] == null ? undefined : json['context'], 'lastApplied': (new Date(json['last_applied'])), 'lastAppliedHash': json['last_applied_hash'], 'status': BlueprintInstanceStatusEnumFromJSON(json['status']), 'enabled': json['enabled'] == null ? undefined : json['enabled'], 'managedModels': json['managed_models'], 'metadata': json['metadata'], 'content': json['content'] == null ? undefined : json['content'], }; } export function BlueprintInstanceToJSON(json: any): BlueprintInstance { return BlueprintInstanceToJSONTyped(json, false); } export function BlueprintInstanceToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'name': value['name'], 'path': value['path'], 'context': value['context'], 'enabled': value['enabled'], 'content': value['content'], }; }