/* tslint:disable */
/* eslint-disable */
/**
 * HumanLayer Daemon REST API
 * REST API for HumanLayer daemon operations, providing session management, approval workflows, and real-time event streaming capabilities. 
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * 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';
/**
 * 
 * @export
 * @interface HealthResponseDependenciesClaude
 */
export interface HealthResponseDependenciesClaude {
    /**
     * Whether Claude binary is available
     * @type {boolean}
     * @memberof HealthResponseDependenciesClaude
     */
    available: boolean;
    /**
     * Path to Claude binary if available
     * @type {string}
     * @memberof HealthResponseDependenciesClaude
     */
    path?: string;
    /**
     * Claude binary version (e.g., "1.0.110")
     * @type {string}
     * @memberof HealthResponseDependenciesClaude
     */
    version?: string;
    /**
     * Error message if version check failed
     * @type {string}
     * @memberof HealthResponseDependenciesClaude
     */
    versionError?: string;
    /**
     * Error message if Claude is not available
     * @type {string}
     * @memberof HealthResponseDependenciesClaude
     */
    error?: string;
}

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

export function HealthResponseDependenciesClaudeFromJSON(json: any): HealthResponseDependenciesClaude {
    return HealthResponseDependenciesClaudeFromJSONTyped(json, false);
}

export function HealthResponseDependenciesClaudeFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthResponseDependenciesClaude {
    if (json == null) {
        return json;
    }
    return {
        
        'available': json['available'],
        'path': json['path'] == null ? undefined : json['path'],
        'version': json['version'] == null ? undefined : json['version'],
        'versionError': json['version_error'] == null ? undefined : json['version_error'],
        'error': json['error'] == null ? undefined : json['error'],
    };
}

export function HealthResponseDependenciesClaudeToJSON(json: any): HealthResponseDependenciesClaude {
    return HealthResponseDependenciesClaudeToJSONTyped(json, false);
}

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

    return {
        
        'available': value['available'],
        'path': value['path'],
        'version': value['version'],
        'version_error': value['versionError'],
        'error': value['error'],
    };
}

