/* 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 BulkArchiveRequest
 */
export interface BulkArchiveRequest {
    /**
     * Sessions to archive/unarchive
     * @type {Array<string>}
     * @memberof BulkArchiveRequest
     */
    sessionIds: Array<string>;
    /**
     * True to archive, false to unarchive
     * @type {boolean}
     * @memberof BulkArchiveRequest
     */
    archived: boolean;
}

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

export function BulkArchiveRequestFromJSON(json: any): BulkArchiveRequest {
    return BulkArchiveRequestFromJSONTyped(json, false);
}

export function BulkArchiveRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulkArchiveRequest {
    if (json == null) {
        return json;
    }
    return {
        
        'sessionIds': json['session_ids'],
        'archived': json['archived'],
    };
}

export function BulkArchiveRequestToJSON(json: any): BulkArchiveRequest {
    return BulkArchiveRequestToJSONTyped(json, false);
}

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

    return {
        
        'session_ids': value['sessionIds'],
        'archived': value['archived'],
    };
}

