/* 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'; /** * Tenant recovery key creation response serializer * @export * @interface TenantRecoveryKeyResponse */ export interface TenantRecoveryKeyResponse { /** * * @type {Date} * @memberof TenantRecoveryKeyResponse */ expiry: Date; /** * * @type {string} * @memberof TenantRecoveryKeyResponse */ url: string; } /** * Check if a given object implements the TenantRecoveryKeyResponse interface. */ export function instanceOfTenantRecoveryKeyResponse(value: object): value is TenantRecoveryKeyResponse { if (!('expiry' in value) || value['expiry'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; } export function TenantRecoveryKeyResponseFromJSON(json: any): TenantRecoveryKeyResponse { return TenantRecoveryKeyResponseFromJSONTyped(json, false); } export function TenantRecoveryKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantRecoveryKeyResponse { if (json == null) { return json; } return { 'expiry': (new Date(json['expiry'])), 'url': json['url'], }; } export function TenantRecoveryKeyResponseToJSON(json: any): TenantRecoveryKeyResponse { return TenantRecoveryKeyResponseToJSONTyped(json, false); } export function TenantRecoveryKeyResponseToJSONTyped(value?: TenantRecoveryKeyResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'expiry': ((value['expiry']).toISOString()), 'url': value['url'], }; }