Skip to content

The platform for continuously improving AI agents.

2.1 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 IntegrationPreview
 */
export interface IntegrationPreview {
    /**
     *
     * @type {number}
     * @memberof IntegrationPreview
     */
    total: number;
    /**
     *
     * @type {number}
     * @memberof IntegrationPreview
     */
    matched: number;
    /**
     *
     * @type {Array<{ [key: string]: any; }>}
     * @memberof IntegrationPreview
     */
    models: Array<{ [key: string]: any; }>;
}

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

export function IntegrationPreviewFromJSON(json: any): IntegrationPreview {
    return IntegrationPreviewFromJSONTyped(json, false);
}

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

        'total': json['total'],
        'matched': json['matched'],
        'models': json['models'],
    };
}

export function IntegrationPreviewToJSON(json: any): IntegrationPreview {
    return IntegrationPreviewToJSONTyped(json, false);
}

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

    return {

        'total': value['total'],
        'matched': value['matched'],
        'models': value['models'],
    };
}