Skip to content

The platform for continuously improving AI agents.

2.2 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 CapturedError
 */
export interface CapturedError {
    /**
     *
     * @type {string}
     * @memberof CapturedError
     */
    source: string;
    /**
     *
     * @type {string}
     * @memberof CapturedError
     */
    type: string;
    /**
     *
     * @type {string}
     * @memberof CapturedError
     */
    message: string;
    /**
     *
     * @type {string}
     * @memberof CapturedError
     */
    stacktrace: string;
}

/**
 * Check if a given object implements the CapturedError interface.
 */
export function instanceOfCapturedError(value: object): value is CapturedError {
    if (!('source' in value) || value['source'] === undefined) return false;
    if (!('type' in value) || value['type'] === undefined) return false;
    if (!('message' in value) || value['message'] === undefined) return false;
    if (!('stacktrace' in value) || value['stacktrace'] === undefined) return false;
    return true;
}

export function CapturedErrorFromJSON(json: any): CapturedError {
    return CapturedErrorFromJSONTyped(json, false);
}

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

        'source': json['source'],
        'type': json['type'],
        'message': json['message'],
        'stacktrace': json['stacktrace'],
    };
}

export function CapturedErrorToJSON(json: any): CapturedError {
    return CapturedErrorToJSONTyped(json, false);
}

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

    return {

        'source': value['source'],
        'type': value['type'],
        'message': value['message'],
        'stacktrace': value['stacktrace'],
    };
}