The platform for continuously improving AI agents.
/* tslint:disable */
/* eslint-disable */
/**
* Overbae API
* Backend API for the Overclaw / Overmind platform.
*
* The version of the OpenAPI document: 2.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';
import type { NativeEvaluationSuite } from './NativeEvaluationSuite';
import {
NativeEvaluationSuiteFromJSON,
NativeEvaluationSuiteFromJSONTyped,
NativeEvaluationSuiteToJSON,
NativeEvaluationSuiteToJSONTyped,
} from './NativeEvaluationSuite';
/**
*
* @export
* @interface NativeEvaluation
*/
export interface NativeEvaluation {
/**
*
* @type {string}
* @memberof NativeEvaluation
*/
readonly id: string;
/**
*
* @type {string}
* @memberof NativeEvaluation
*/
readonly project: string;
/**
*
* @type {string}
* @memberof NativeEvaluation
*/
readonly name: string;
/**
*
* @type {string}
* @memberof NativeEvaluation
*/
readonly requestKey: string | null;
/**
*
* @type {string}
* @memberof NativeEvaluation
*/
readonly finalCell: string;
/**
*
* @type {string}
* @memberof NativeEvaluation
*/
readonly calibrationCell: string | null;
/**
*
* @type {NativeEvaluationSuite}
* @memberof NativeEvaluation
*/
readonly finalSuite: NativeEvaluationSuite;
/**
*
* @type {NativeEvaluationSuite}
* @memberof NativeEvaluation
*/
readonly calibrationSuite: NativeEvaluationSuite | null;
/**
*
* @type {string}
* @memberof NativeEvaluation
*/
readonly job: string | null;
/**
*
* @type {string}
* @memberof NativeEvaluation
*/
readonly state: string;
/**
*
* @type {any}
* @memberof NativeEvaluation
*/
readonly config: any | null;
/**
*
* @type {any}
* @memberof NativeEvaluation
*/
readonly calls: any | null;
/**
*
* @type {any}
* @memberof NativeEvaluation
*/
readonly calibration: any | null;
/**
*
* @type {any}
* @memberof NativeEvaluation
*/
readonly results: any | null;
/**
*
* @type {string}
* @memberof NativeEvaluation
*/
readonly error: string;
/**
*
* @type {Date}
* @memberof NativeEvaluation
*/
readonly deletedAt: Date | null;
/**
*
* @type {Date}
* @memberof NativeEvaluation
*/
readonly createdAt: Date;
/**
*
* @type {Date}
* @memberof NativeEvaluation
*/
readonly updatedAt: Date;
}
/**
* Check if a given object implements the NativeEvaluation interface.
*/
export function instanceOfNativeEvaluation(value: object): value is NativeEvaluation {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('project' in value) || value['project'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('requestKey' in value) || value['requestKey'] === undefined) return false;
if (!('finalCell' in value) || value['finalCell'] === undefined) return false;
if (!('calibrationCell' in value) || value['calibrationCell'] === undefined) return false;
if (!('finalSuite' in value) || value['finalSuite'] === undefined) return false;
if (!('calibrationSuite' in value) || value['calibrationSuite'] === undefined) return false;
if (!('job' in value) || value['job'] === undefined) return false;
if (!('state' in value) || value['state'] === undefined) return false;
if (!('config' in value) || value['config'] === undefined) return false;
if (!('calls' in value) || value['calls'] === undefined) return false;
if (!('calibration' in value) || value['calibration'] === undefined) return false;
if (!('results' in value) || value['results'] === undefined) return false;
if (!('error' in value) || value['error'] === undefined) return false;
if (!('deletedAt' in value) || value['deletedAt'] === undefined) return false;
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
return true;
}
export function NativeEvaluationFromJSON(json: any): NativeEvaluation {
return NativeEvaluationFromJSONTyped(json, false);
}
export function NativeEvaluationFromJSONTyped(json: any, ignoreDiscriminator: boolean): NativeEvaluation {
if (json == null) {
return json;
}
return {
'id': json['id'],
'project': json['project'],
'name': json['name'],
'requestKey': json['request_key'],
'finalCell': json['final_cell'],
'calibrationCell': json['calibration_cell'],
'finalSuite': NativeEvaluationSuiteFromJSON(json['final_suite']),
'calibrationSuite': NativeEvaluationSuiteFromJSON(json['calibration_suite']),
'job': json['job'],
'state': json['state'],
'config': json['config'],
'calls': json['calls'],
'calibration': json['calibration'],
'results': json['results'],
'error': json['error'],
'deletedAt': (json['deleted_at'] == null ? null : new Date(json['deleted_at'])),
'createdAt': (new Date(json['created_at'])),
'updatedAt': (new Date(json['updated_at'])),
};
}
export function NativeEvaluationToJSON(json: any): NativeEvaluation {
return NativeEvaluationToJSONTyped(json, false);
}
export function NativeEvaluationToJSONTyped(value?: Omit<NativeEvaluation, 'id'|'project'|'name'|'request_key'|'final_cell'|'calibration_cell'|'final_suite'|'calibration_suite'|'job'|'state'|'config'|'calls'|'calibration'|'results'|'error'|'deleted_at'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
};
}