/* 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.
 */

import { mapValues } from '../runtime';
/**
 * SSFProvider Serializer
 * @export
 * @interface SSFProviderRequest
 */
export interface SSFProviderRequest {
    /**
     * 
     * @type {string}
     * @memberof SSFProviderRequest
     */
    name: string;
    /**
     * Key used to sign the SSF Events.
     * @type {string}
     * @memberof SSFProviderRequest
     */
    signingKey: string;
    /**
     * 
     * @type {Array<number>}
     * @memberof SSFProviderRequest
     */
    oidcAuthProviders?: Array<number>;
    /**
     * 
     * @type {string}
     * @memberof SSFProviderRequest
     */
    eventRetention?: string;
}

/**
 * Check if a given object implements the SSFProviderRequest interface.
 */
export function instanceOfSSFProviderRequest(value: object): value is SSFProviderRequest {
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('signingKey' in value) || value['signingKey'] === undefined) return false;
    return true;
}

export function SSFProviderRequestFromJSON(json: any): SSFProviderRequest {
    return SSFProviderRequestFromJSONTyped(json, false);
}

export function SSFProviderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SSFProviderRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'name': json['name'],
        'signingKey': json['signing_key'],
        'oidcAuthProviders': json['oidc_auth_providers'] == null ? undefined : json['oidc_auth_providers'],
        'eventRetention': json['event_retention'] == null ? undefined : json['event_retention'],
    };
}

export function SSFProviderRequestToJSON(json: any): SSFProviderRequest {
    return SSFProviderRequestToJSONTyped(json, false);
}

export function SSFProviderRequestToJSONTyped(value?: SSFProviderRequest | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {
        
        'name': value['name'],
        'signing_key': value['signingKey'],
        'oidc_auth_providers': value['oidcAuthProviders'],
        'event_retention': value['eventRetention'],
    };
}

