Skip to content

The platform for continuously improving AI agents.

2.0 KB
Raw Blame
/* 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';
/**
 * A downloadable weight/checkpoint file (presigned URL).
 * @export
 * @interface CheckpointFile
 */
export interface CheckpointFile {
    /**
     *
     * @type {string}
     * @memberof CheckpointFile
     */
    name: string;
    /**
     *
     * @type {number}
     * @memberof CheckpointFile
     */
    sizeBytes: number | null;
    /**
     *
     * @type {string}
     * @memberof CheckpointFile
     */
    downloadUrl: string;
}

/**
 * Check if a given object implements the CheckpointFile interface.
 */
export function instanceOfCheckpointFile(value: object): value is CheckpointFile {
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('sizeBytes' in value) || value['sizeBytes'] === undefined) return false;
    if (!('downloadUrl' in value) || value['downloadUrl'] === undefined) return false;
    return true;
}

export function CheckpointFileFromJSON(json: any): CheckpointFile {
    return CheckpointFileFromJSONTyped(json, false);
}

export function CheckpointFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckpointFile {
    if (json == null) {
        return json;
    }
    return {

        'name': json['name'],
        'sizeBytes': json['size_bytes'],
        'downloadUrl': json['download_url'],
    };
}

export function CheckpointFileToJSON(json: any): CheckpointFile {
    return CheckpointFileToJSONTyped(json, false);
}

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

    return {

        'name': value['name'],
        'size_bytes': value['sizeBytes'],
        'download_url': value['downloadUrl'],
    };
}