"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2025.10.0-rc1
 * 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.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCertificateKeyPair = instanceOfCertificateKeyPair;
exports.CertificateKeyPairFromJSON = CertificateKeyPairFromJSON;
exports.CertificateKeyPairFromJSONTyped = CertificateKeyPairFromJSONTyped;
exports.CertificateKeyPairToJSON = CertificateKeyPairToJSON;
exports.CertificateKeyPairToJSONTyped = CertificateKeyPairToJSONTyped;
/**
 * Check if a given object implements the CertificateKeyPair interface.
 */
function instanceOfCertificateKeyPair(value) {
    if (!('pk' in value) || value['pk'] === undefined)
        return false;
    if (!('name' in value) || value['name'] === undefined)
        return false;
    if (!('fingerprintSha256' in value) || value['fingerprintSha256'] === undefined)
        return false;
    if (!('fingerprintSha1' in value) || value['fingerprintSha1'] === undefined)
        return false;
    if (!('certExpiry' in value) || value['certExpiry'] === undefined)
        return false;
    if (!('certSubject' in value) || value['certSubject'] === undefined)
        return false;
    if (!('privateKeyAvailable' in value) || value['privateKeyAvailable'] === undefined)
        return false;
    if (!('privateKeyType' in value) || value['privateKeyType'] === undefined)
        return false;
    if (!('certificateDownloadUrl' in value) || value['certificateDownloadUrl'] === undefined)
        return false;
    if (!('privateKeyDownloadUrl' in value) || value['privateKeyDownloadUrl'] === undefined)
        return false;
    if (!('managed' in value) || value['managed'] === undefined)
        return false;
    return true;
}
function CertificateKeyPairFromJSON(json) {
    return CertificateKeyPairFromJSONTyped(json, false);
}
function CertificateKeyPairFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'pk': json['pk'],
        'name': json['name'],
        'fingerprintSha256': json['fingerprint_sha256'],
        'fingerprintSha1': json['fingerprint_sha1'],
        'certExpiry': (json['cert_expiry'] == null ? null : new Date(json['cert_expiry'])),
        'certSubject': json['cert_subject'],
        'privateKeyAvailable': json['private_key_available'],
        'privateKeyType': json['private_key_type'],
        'certificateDownloadUrl': json['certificate_download_url'],
        'privateKeyDownloadUrl': json['private_key_download_url'],
        'managed': json['managed'],
    };
}
function CertificateKeyPairToJSON(json) {
    return CertificateKeyPairToJSONTyped(json, false);
}
function CertificateKeyPairToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'name': value['name'],
    };
}
//# sourceMappingURL=CertificateKeyPair.js.map