/* 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 InterruptSessionResponseData
 */
export interface InterruptSessionResponseData {
    /**
     *
     * @type {boolean}
     * @memberof InterruptSessionResponseData
     */
    success: boolean;
    /**
     *
     * @type {string}
     * @memberof InterruptSessionResponseData
     */
    sessionId: string;
    /**
     *
     * @type {string}
     * @memberof InterruptSessionResponseData
     */
    status: InterruptSessionResponseDataStatusEnum;
}


/**
 * @export
 */
export const InterruptSessionResponseDataStatusEnum = {
    Interrupting: 'interrupting'
} as const;
export type InterruptSessionResponseDataStatusEnum = typeof InterruptSessionResponseDataStatusEnum[keyof typeof InterruptSessionResponseDataStatusEnum];


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

export function InterruptSessionResponseDataFromJSON(json: any): InterruptSessionResponseData {
    return InterruptSessionResponseDataFromJSONTyped(json, false);
}

export function InterruptSessionResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): InterruptSessionResponseData {
    if (json == null) {
        return json;
    }
    return {

        'success': json['success'],
        'sessionId': json['session_id'],
        'status': json['status'],
    };
}

export function InterruptSessionResponseDataToJSON(json: any): InterruptSessionResponseData {
    return InterruptSessionResponseDataToJSONTyped(json, false);
}

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

    return {

        'success': value['success'],
        'session_id': value['sessionId'],
        'status': value['status'],
    };
}
