Skip to content

The platform for continuously improving AI agents.

2.9 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 ContextSnapshot
 */
export interface ContextSnapshot {
    /**
     *
     * @type {string}
     * @memberof ContextSnapshot
     */
    readonly id: string;
    /**
     *
     * @type {string}
     * @memberof ContextSnapshot
     */
    readonly project: string;
    /**
     *
     * @type {string}
     * @memberof ContextSnapshot
     */
    readonly purpose: string;
    /**
     *
     * @type {any}
     * @memberof ContextSnapshot
     */
    readonly roots: any | null;
    /**
     *
     * @type {any}
     * @memberof ContextSnapshot
     */
    readonly manifest: any | null;
    /**
     *
     * @type {string}
     * @memberof ContextSnapshot
     */
    readonly fingerprint: string;
    /**
     *
     * @type {Date}
     * @memberof ContextSnapshot
     */
    readonly createdAt: Date;
}

/**
 * Check if a given object implements the ContextSnapshot interface.
 */
export function instanceOfContextSnapshot(value: object): value is ContextSnapshot {
    if (!('id' in value) || value['id'] === undefined) return false;
    if (!('project' in value) || value['project'] === undefined) return false;
    if (!('purpose' in value) || value['purpose'] === undefined) return false;
    if (!('roots' in value) || value['roots'] === undefined) return false;
    if (!('manifest' in value) || value['manifest'] === undefined) return false;
    if (!('fingerprint' in value) || value['fingerprint'] === undefined) return false;
    if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
    return true;
}

export function ContextSnapshotFromJSON(json: any): ContextSnapshot {
    return ContextSnapshotFromJSONTyped(json, false);
}

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

        'id': json['id'],
        'project': json['project'],
        'purpose': json['purpose'],
        'roots': json['roots'],
        'manifest': json['manifest'],
        'fingerprint': json['fingerprint'],
        'createdAt': (new Date(json['created_at'])),
    };
}

export function ContextSnapshotToJSON(json: any): ContextSnapshot {
    return ContextSnapshotToJSONTyped(json, false);
}

export function ContextSnapshotToJSONTyped(value?: Omit<ContextSnapshot, 'id'|'project'|'purpose'|'roots'|'manifest'|'fingerprint'|'created_at'> | null, ignoreDiscriminator: boolean = false): any {
    if (value == null) {
        return value;
    }

    return {

    };
}