Skip to content

The platform for continuously improving AI agents.

2.4 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 { UploadReadOptionsRequest } from './UploadReadOptionsRequest';
import {
    UploadReadOptionsRequestFromJSON,
    UploadReadOptionsRequestFromJSONTyped,
    UploadReadOptionsRequestToJSON,
    UploadReadOptionsRequestToJSONTyped,
} from './UploadReadOptionsRequest';

/**
 *
 * @export
 * @interface InspectUploadRequest
 */
export interface InspectUploadRequest {
    /**
     *
     * @type {number}
     * @memberof InspectUploadRequest
     */
    size: number;
    /**
     * Also return the first rows, their columns and the sheets.
     * @type {boolean}
     * @memberof InspectUploadRequest
     */
    preview?: boolean;
    /**
     *
     * @type {UploadReadOptionsRequest}
     * @memberof InspectUploadRequest
     */
    options?: UploadReadOptionsRequest;
}

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

export function InspectUploadRequestFromJSON(json: any): InspectUploadRequest {
    return InspectUploadRequestFromJSONTyped(json, false);
}

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

        'size': json['size'],
        'preview': json['preview'] == null ? undefined : json['preview'],
        'options': json['options'] == null ? undefined : UploadReadOptionsRequestFromJSON(json['options']),
    };
}

export function InspectUploadRequestToJSON(json: any): InspectUploadRequest {
    return InspectUploadRequestToJSONTyped(json, false);
}

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

    return {

        'size': value['size'],
        'preview': value['preview'],
        'options': UploadReadOptionsRequestToJSON(value['options']),
    };
}