/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.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.
 */

/**
 * Register Apple device user via Platform SSO
 * @export
 * @interface AgentPSSOUserRegistrationRequest
 */
export interface AgentPSSOUserRegistrationRequest {
    /**
     *
     * @type {string}
     * @memberof AgentPSSOUserRegistrationRequest
     */
    userAuth: string;
    /**
     *
     * @type {string}
     * @memberof AgentPSSOUserRegistrationRequest
     */
    userSecureEnclaveKey: string;
    /**
     *
     * @type {string}
     * @memberof AgentPSSOUserRegistrationRequest
     */
    enclaveKeyId: string;
}

/**
 * Check if a given object implements the AgentPSSOUserRegistrationRequest interface.
 */
export function instanceOfAgentPSSOUserRegistrationRequest(
    value: object,
): value is AgentPSSOUserRegistrationRequest {
    if (!("userAuth" in value) || value["userAuth"] === undefined) return false;
    if (!("userSecureEnclaveKey" in value) || value["userSecureEnclaveKey"] === undefined)
        return false;
    if (!("enclaveKeyId" in value) || value["enclaveKeyId"] === undefined) return false;
    return true;
}

export function AgentPSSOUserRegistrationRequestFromJSON(
    json: any,
): AgentPSSOUserRegistrationRequest {
    return AgentPSSOUserRegistrationRequestFromJSONTyped(json, false);
}

export function AgentPSSOUserRegistrationRequestFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): AgentPSSOUserRegistrationRequest {
    if (json == null) {
        return json;
    }
    return {
        userAuth: json["user_auth"],
        userSecureEnclaveKey: json["user_secure_enclave_key"],
        enclaveKeyId: json["enclave_key_id"],
    };
}

export function AgentPSSOUserRegistrationRequestToJSON(
    json: any,
): AgentPSSOUserRegistrationRequest {
    return AgentPSSOUserRegistrationRequestToJSONTyped(json, false);
}

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

    return {
        user_auth: value["userAuth"],
        user_secure_enclave_key: value["userSecureEnclaveKey"],
        enclave_key_id: value["enclaveKeyId"],
    };
}
