The platform for continuously improving AI agents.
/* 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 { InteractionRequest } from './InteractionRequest';
import {
InteractionRequestFromJSON,
InteractionRequestFromJSONTyped,
InteractionRequestToJSON,
InteractionRequestToJSONTyped,
} from './InteractionRequest';
/**
*
* @export
* @interface SendMessageRequest
*/
export interface SendMessageRequest {
/**
*
* @type {string}
* @memberof SendMessageRequest
*/
requestKey: string;
/**
*
* @type {string}
* @memberof SendMessageRequest
*/
text: string;
/**
*
* @type {Array<string>}
* @memberof SendMessageRequest
*/
cells?: Array<string>;
/**
*
* @type {InteractionRequest}
* @memberof SendMessageRequest
*/
interaction?: InteractionRequest | null;
}
/**
* Check if a given object implements the SendMessageRequest interface.
*/
export function instanceOfSendMessageRequest(value: object): value is SendMessageRequest {
if (!('requestKey' in value) || value['requestKey'] === undefined) return false;
if (!('text' in value) || value['text'] === undefined) return false;
return true;
}
export function SendMessageRequestFromJSON(json: any): SendMessageRequest {
return SendMessageRequestFromJSONTyped(json, false);
}
export function SendMessageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendMessageRequest {
if (json == null) {
return json;
}
return {
'requestKey': json['request_key'],
'text': json['text'],
'cells': json['cells'] == null ? undefined : json['cells'],
'interaction': json['interaction'] == null ? undefined : InteractionRequestFromJSON(json['interaction']),
};
}
export function SendMessageRequestToJSON(json: any): SendMessageRequest {
return SendMessageRequestToJSONTyped(json, false);
}
export function SendMessageRequestToJSONTyped(value?: SendMessageRequest | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'request_key': value['requestKey'],
'text': value['text'],
'cells': value['cells'],
'interaction': InteractionRequestToJSON(value['interaction']),
};
}