/* 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 ContinueSessionResponseData
 */
export interface ContinueSessionResponseData {
    /**
     * 
     * @type {string}
     * @memberof ContinueSessionResponseData
     */
    sessionId: string;
    /**
     * 
     * @type {string}
     * @memberof ContinueSessionResponseData
     */
    runId: string;
    /**
     * 
     * @type {string}
     * @memberof ContinueSessionResponseData
     */
    claudeSessionId: string;
    /**
     * 
     * @type {string}
     * @memberof ContinueSessionResponseData
     */
    parentSessionId: string;
}

/**
 * Check if a given object implements the ContinueSessionResponseData interface.
 */
export function instanceOfContinueSessionResponseData(value: object): value is ContinueSessionResponseData {
    if (!('sessionId' in value) || value['sessionId'] === undefined) return false;
    if (!('runId' in value) || value['runId'] === undefined) return false;
    if (!('claudeSessionId' in value) || value['claudeSessionId'] === undefined) return false;
    if (!('parentSessionId' in value) || value['parentSessionId'] === undefined) return false;
    return true;
}

export function ContinueSessionResponseDataFromJSON(json: any): ContinueSessionResponseData {
    return ContinueSessionResponseDataFromJSONTyped(json, false);
}

export function ContinueSessionResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContinueSessionResponseData {
    if (json == null) {
        return json;
    }
    return {
        
        'sessionId': json['session_id'],
        'runId': json['run_id'],
        'claudeSessionId': json['claude_session_id'],
        'parentSessionId': json['parent_session_id'],
    };
}

export function ContinueSessionResponseDataToJSON(json: any): ContinueSessionResponseData {
    return ContinueSessionResponseDataToJSONTyped(json, false);
}

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

    return {
        
        'session_id': value['sessionId'],
        'run_id': value['runId'],
        'claude_session_id': value['claudeSessionId'],
        'parent_session_id': value['parentSessionId'],
    };
}

