/* 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.
 */


/**
 * Current status of the approval
 * @export
 */
export const ApprovalStatus = {
    Pending: 'pending',
    Approved: 'approved',
    Denied: 'denied'
} as const;
export type ApprovalStatus = typeof ApprovalStatus[keyof typeof ApprovalStatus];


export function instanceOfApprovalStatus(value: any): boolean {
    for (const key in ApprovalStatus) {
        if (Object.prototype.hasOwnProperty.call(ApprovalStatus, key)) {
            if (ApprovalStatus[key as keyof typeof ApprovalStatus] === value) {
                return true;
            }
        }
    }
    return false;
}

export function ApprovalStatusFromJSON(json: any): ApprovalStatus {
    return ApprovalStatusFromJSONTyped(json, false);
}

export function ApprovalStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApprovalStatus {
    return json as ApprovalStatus;
}

export function ApprovalStatusToJSON(value?: ApprovalStatus | null): any {
    return value as any;
}

export function ApprovalStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ApprovalStatus {
    return value as ApprovalStatus;
}

