Skip to content

The platform for continuously improving AI agents.

1.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 ChatAccess
 */
export interface ChatAccess {
    /**
     *
     * @type {string}
     * @memberof ChatAccess
     */
    purpose: string;
    /**
     *
     * @type {Array<string>}
     * @memberof ChatAccess
     */
    hosts: Array<string>;
    /**
     *
     * @type {Array<string>}
     * @memberof ChatAccess
     */
    credentials: Array<string>;
}

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

export function ChatAccessFromJSON(json: any): ChatAccess {
    return ChatAccessFromJSONTyped(json, false);
}

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

        'purpose': json['purpose'],
        'hosts': json['hosts'],
        'credentials': json['credentials'],
    };
}

export function ChatAccessToJSON(json: any): ChatAccess {
    return ChatAccessToJSONTyped(json, false);
}

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

    return {

        'purpose': value['purpose'],
        'hosts': value['hosts'],
        'credentials': value['credentials'],
    };
}