Skip to content

The platform for continuously improving AI agents.

2.7 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';
import type { ContextCapturePurposeEnum } from './ContextCapturePurposeEnum';
import {
    ContextCapturePurposeEnumFromJSON,
    ContextCapturePurposeEnumFromJSONTyped,
    ContextCapturePurposeEnumToJSON,
    ContextCapturePurposeEnumToJSONTyped,
} from './ContextCapturePurposeEnum';

/**
 *
 * @export
 * @interface ContextCaptureRequest
 */
export interface ContextCaptureRequest {
    /**
     *
     * @type {Array<string>}
     * @memberof ContextCaptureRequest
     */
    roots: Array<string>;
    /**
     *
     * @type {ContextCapturePurposeEnum}
     * @memberof ContextCaptureRequest
     */
    purpose: ContextCapturePurposeEnum;
    /**
     *
     * @type {string}
     * @memberof ContextCaptureRequest
     */
    requestKey: string;
    /**
     *
     * @type {number}
     * @memberof ContextCaptureRequest
     */
    depth?: number;
}



/**
 * Check if a given object implements the ContextCaptureRequest interface.
 */
export function instanceOfContextCaptureRequest(value: object): value is ContextCaptureRequest {
    if (!('roots' in value) || value['roots'] === undefined) return false;
    if (!('purpose' in value) || value['purpose'] === undefined) return false;
    if (!('requestKey' in value) || value['requestKey'] === undefined) return false;
    return true;
}

export function ContextCaptureRequestFromJSON(json: any): ContextCaptureRequest {
    return ContextCaptureRequestFromJSONTyped(json, false);
}

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

        'roots': json['roots'],
        'purpose': ContextCapturePurposeEnumFromJSON(json['purpose']),
        'requestKey': json['request_key'],
        'depth': json['depth'] == null ? undefined : json['depth'],
    };
}

export function ContextCaptureRequestToJSON(json: any): ContextCaptureRequest {
    return ContextCaptureRequestToJSONTyped(json, false);
}

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

    return {

        'roots': value['roots'],
        'purpose': ContextCapturePurposeEnumToJSON(value['purpose']),
        'request_key': value['requestKey'],
        'depth': value['depth'],
    };
}