/* 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 BulkArchiveResponseData
 */
export interface BulkArchiveResponseData {
    /**
     * 
     * @type {boolean}
     * @memberof BulkArchiveResponseData
     */
    success: boolean;
    /**
     * Sessions that failed to update
     * @type {Array<string>}
     * @memberof BulkArchiveResponseData
     */
    failedSessions?: Array<string>;
}

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

export function BulkArchiveResponseDataFromJSON(json: any): BulkArchiveResponseData {
    return BulkArchiveResponseDataFromJSONTyped(json, false);
}

export function BulkArchiveResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkArchiveResponseData {
    if (json == null) {
        return json;
    }
    return {
        
        'success': json['success'],
        'failedSessions': json['failed_sessions'] == null ? undefined : json['failed_sessions'],
    };
}

export function BulkArchiveResponseDataToJSON(json: any): BulkArchiveResponseData {
    return BulkArchiveResponseDataToJSONTyped(json, false);
}

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

    return {
        
        'success': value['success'],
        'failed_sessions': value['failedSessions'],
    };
}

