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 DedicatedStartupLog
*/
export interface DedicatedStartupLog {
/**
*
* @type {string}
* @memberof DedicatedStartupLog
*/
stage: string;
/**
*
* @type {string}
* @memberof DedicatedStartupLog
*/
message: string;
/**
*
* @type {Date}
* @memberof DedicatedStartupLog
*/
at: Date;
/**
*
* @type {string}
* @memberof DedicatedStartupLog
*/
worker: string;
/**
*
* @type {number}
* @memberof DedicatedStartupLog
*/
completed: number | null;
/**
*
* @type {number}
* @memberof DedicatedStartupLog
*/
total: number | null;
/**
*
* @type {string}
* @memberof DedicatedStartupLog
*/
unit: string | null;
}
/**
* Check if a given object implements the DedicatedStartupLog interface.
*/
export function instanceOfDedicatedStartupLog(value: object): value is DedicatedStartupLog {
if (!('stage' in value) || value['stage'] === undefined) return false;
if (!('message' in value) || value['message'] === undefined) return false;
if (!('at' in value) || value['at'] === undefined) return false;
if (!('worker' in value) || value['worker'] === undefined) return false;
if (!('completed' in value) || value['completed'] === undefined) return false;
if (!('total' in value) || value['total'] === undefined) return false;
if (!('unit' in value) || value['unit'] === undefined) return false;
return true;
}
export function DedicatedStartupLogFromJSON(json: any): DedicatedStartupLog {
return DedicatedStartupLogFromJSONTyped(json, false);
}
export function DedicatedStartupLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): DedicatedStartupLog {
if (json == null) {
return json;
}
return {
'stage': json['stage'],
'message': json['message'],
'at': (new Date(json['at'])),
'worker': json['worker'],
'completed': json['completed'],
'total': json['total'],
'unit': json['unit'],
};
}
export function DedicatedStartupLogToJSON(json: any): DedicatedStartupLog {
return DedicatedStartupLogToJSONTyped(json, false);
}
export function DedicatedStartupLogToJSONTyped(value?: DedicatedStartupLog | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'stage': value['stage'],
'message': value['message'],
'at': value['at'].toISOString(),
'worker': value['worker'],
'completed': value['completed'],
'total': value['total'],
'unit': value['unit'],
};
}