/* 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 LaunchDraftSessionRequest
 */
export interface LaunchDraftSessionRequest {
    /**
     * Initial prompt to send to Claude
     * @type {string}
     * @memberof LaunchDraftSessionRequest
     */
    prompt: string;
    /**
     * Create working directory if it doesn't exist
     * @type {boolean}
     * @memberof LaunchDraftSessionRequest
     */
    createDirectoryIfNotExists?: boolean;
}

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

export function LaunchDraftSessionRequestFromJSON(json: any): LaunchDraftSessionRequest {
    return LaunchDraftSessionRequestFromJSONTyped(json, false);
}

export function LaunchDraftSessionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LaunchDraftSessionRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'prompt': json['prompt'],
        'createDirectoryIfNotExists': json['createDirectoryIfNotExists'] == null ? undefined : json['createDirectoryIfNotExists'],
    };
}

export function LaunchDraftSessionRequestToJSON(json: any): LaunchDraftSessionRequest {
    return LaunchDraftSessionRequestToJSONTyped(json, false);
}

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

    return {
        
        'prompt': value['prompt'],
        'createDirectoryIfNotExists': value['createDirectoryIfNotExists'],
    };
}

