/* 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 FuzzySearchFilesRequest
 */
export interface FuzzySearchFilesRequest {
    /**
     * Fuzzy search pattern
     * @type {string}
     * @memberof FuzzySearchFilesRequest
     */
    query: string;
    /**
     * Directory paths to search within
     * @type {Array<string>}
     * @memberof FuzzySearchFilesRequest
     */
    paths: Array<string>;
    /**
     * Maximum number of results to return
     * @type {number}
     * @memberof FuzzySearchFilesRequest
     */
    limit?: number;
    /**
     * Return only files, exclude directories
     * @type {boolean}
     * @memberof FuzzySearchFilesRequest
     */
    filesOnly?: boolean;
    /**
     * Filter out files/folders matching .gitignore patterns
     * @type {boolean}
     * @memberof FuzzySearchFilesRequest
     */
    respectGitignore?: boolean;
}

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

export function FuzzySearchFilesRequestFromJSON(json: any): FuzzySearchFilesRequest {
    return FuzzySearchFilesRequestFromJSONTyped(json, false);
}

export function FuzzySearchFilesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): FuzzySearchFilesRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'query': json['query'],
        'paths': json['paths'],
        'limit': json['limit'] == null ? undefined : json['limit'],
        'filesOnly': json['filesOnly'] == null ? undefined : json['filesOnly'],
        'respectGitignore': json['respectGitignore'] == null ? undefined : json['respectGitignore'],
    };
}

export function FuzzySearchFilesRequestToJSON(json: any): FuzzySearchFilesRequest {
    return FuzzySearchFilesRequestToJSONTyped(json, false);
}

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

    return {
        
        'query': value['query'],
        'paths': value['paths'],
        'limit': value['limit'],
        'filesOnly': value['filesOnly'],
        'respectGitignore': value['respectGitignore'],
    };
}

