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';
/**
*
* @export
* @interface Exploration
*/
export interface Exploration {
/**
*
* @type {string}
* @memberof Exploration
*/
readonly id: string;
/**
*
* @type {string}
* @memberof Exploration
*/
readonly project: string;
/**
*
* @type {string}
* @memberof Exploration
*/
readonly name: string;
/**
*
* @type {string}
* @memberof Exploration
*/
readonly requestKey: string;
/**
*
* @type {string}
* @memberof Exploration
*/
readonly kind: string;
/**
*
* @type {string}
* @memberof Exploration
*/
readonly sourceCell: string;
/**
*
* @type {string}
* @memberof Exploration
*/
readonly sourceFingerprint: string;
/**
*
* @type {any}
* @memberof Exploration
*/
readonly config: any | null;
/**
*
* @type {string}
* @memberof Exploration
*/
readonly state: string;
/**
*
* @type {any}
* @memberof Exploration
*/
readonly report: any | null;
/**
*
* @type {string}
* @memberof Exploration
*/
readonly outputDataset: string | null;
/**
*
* @type {string}
* @memberof Exploration
*/
readonly error: string;
/**
*
* @type {Date}
* @memberof Exploration
*/
readonly createdAt: Date;
/**
*
* @type {Date}
* @memberof Exploration
*/
readonly updatedAt: Date;
}
/**
* Check if a given object implements the Exploration interface.
*/
export function instanceOfExploration(value: object): value is Exploration {
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 (!('kind' in value) || value['kind'] === undefined) return false;
if (!('sourceCell' in value) || value['sourceCell'] === undefined) return false;
if (!('sourceFingerprint' in value) || value['sourceFingerprint'] === undefined) return false;
if (!('config' in value) || value['config'] === undefined) return false;
if (!('state' in value) || value['state'] === undefined) return false;
if (!('report' in value) || value['report'] === undefined) return false;
if (!('outputDataset' in value) || value['outputDataset'] === undefined) return false;
if (!('error' in value) || value['error'] === 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 ExplorationFromJSON(json: any): Exploration {
return ExplorationFromJSONTyped(json, false);
}
export function ExplorationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Exploration {
if (json == null) {
return json;
}
return {
'id': json['id'],
'project': json['project'],
'name': json['name'],
'requestKey': json['request_key'],
'kind': json['kind'],
'sourceCell': json['source_cell'],
'sourceFingerprint': json['source_fingerprint'],
'config': json['config'],
'state': json['state'],
'report': json['report'],
'outputDataset': json['output_dataset'],
'error': json['error'],
'createdAt': (new Date(json['created_at'])),
'updatedAt': (new Date(json['updated_at'])),
};
}
export function ExplorationToJSON(json: any): Exploration {
return ExplorationToJSONTyped(json, false);
}
export function ExplorationToJSONTyped(value?: Omit<Exploration, 'id'|'project'|'name'|'request_key'|'kind'|'source_cell'|'source_fingerprint'|'config'|'state'|'report'|'output_dataset'|'error'|'created_at'|'updated_at'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
};
}