Skip to content

The platform for continuously improving AI agents.

2.8 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';
/**
 *
 * @export
 * @interface Asset
 */
export interface Asset {
    /**
     *
     * @type {string}
     * @memberof Asset
     */
    readonly id: string;
    /**
     *
     * @type {string}
     * @memberof Asset
     */
    readonly project: string;
    /**
     *
     * @type {string}
     * @memberof Asset
     */
    readonly kind: string;
    /**
     *
     * @type {string}
     * @memberof Asset
     */
    readonly name: string;
    /**
     *
     * @type {any}
     * @memberof Asset
     */
    readonly definition: any | null;
    /**
     *
     * @type {string}
     * @memberof Asset
     */
    readonly fingerprint: string;
    /**
     *
     * @type {string}
     * @memberof Asset
     */
    readonly parent: string | null;
    /**
     *
     * @type {Date}
     * @memberof Asset
     */
    readonly createdAt: Date;
}

/**
 * Check if a given object implements the Asset interface.
 */
export function instanceOfAsset(value: object): value is Asset {
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('project' in value) || value['project'] === undefined) return false;
    if (!('kind' in value) || value['kind'] === undefined) return false;
    if (!('name' in value) || value['name'] === undefined) return false;
    if (!('definition' in value) || value['definition'] === undefined) return false;
    if (!('fingerprint' in value) || value['fingerprint'] === undefined) return false;
    if (!('parent' in value) || value['parent'] === undefined) return false;
    if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
    return true;
}

export function AssetFromJSON(json: any): Asset {
    return AssetFromJSONTyped(json, false);
}

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

        'id': json['id'],
        'project': json['project'],
        'kind': json['kind'],
        'name': json['name'],
        'definition': json['definition'],
        'fingerprint': json['fingerprint'],
        'parent': json['parent'],
        'createdAt': (new Date(json['created_at'])),
    };
}

export function AssetToJSON(json: any): Asset {
    return AssetToJSONTyped(json, false);
}

export function AssetToJSONTyped(value?: Omit<Asset, 'id'|'project'|'kind'|'name'|'definition'|'fingerprint'|'parent'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

    };
}