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 { Interaction } from './Interaction';
import {
InteractionFromJSON,
InteractionFromJSONTyped,
InteractionToJSON,
InteractionToJSONTyped,
} from './Interaction';
/**
*
* @export
* @interface AssistantInput
*/
export interface AssistantInput {
/**
*
* @type {string}
* @memberof AssistantInput
*/
readonly id: string;
/**
*
* @type {number}
* @memberof AssistantInput
*/
readonly createdBy: number;
/**
*
* @type {string}
* @memberof AssistantInput
*/
readonly text: string;
/**
*
* @type {any}
* @memberof AssistantInput
*/
readonly cells: any | null;
/**
*
* @type {Interaction}
* @memberof AssistantInput
*/
interaction: Interaction | null;
/**
*
* @type {boolean}
* @memberof AssistantInput
*/
readonly urgent: boolean;
/**
*
* @type {number}
* @memberof AssistantInput
*/
readonly position: number;
/**
*
* @type {number}
* @memberof AssistantInput
*/
readonly revision: number;
}
/**
* Check if a given object implements the AssistantInput interface.
*/
export function instanceOfAssistantInput(value: object): value is AssistantInput {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
if (!('text' in value) || value['text'] === undefined) return false;
if (!('cells' in value) || value['cells'] === undefined) return false;
if (!('interaction' in value) || value['interaction'] === undefined) return false;
if (!('urgent' in value) || value['urgent'] === undefined) return false;
if (!('position' in value) || value['position'] === undefined) return false;
if (!('revision' in value) || value['revision'] === undefined) return false;
return true;
}
export function AssistantInputFromJSON(json: any): AssistantInput {
return AssistantInputFromJSONTyped(json, false);
}
export function AssistantInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssistantInput {
if (json == null) {
return json;
}
return {
'id': json['id'],
'createdBy': json['created_by'],
'text': json['text'],
'cells': json['cells'],
'interaction': InteractionFromJSON(json['interaction']),
'urgent': json['urgent'],
'position': json['position'],
'revision': json['revision'],
};
}
export function AssistantInputToJSON(json: any): AssistantInput {
return AssistantInputToJSONTyped(json, false);
}
export function AssistantInputToJSONTyped(value?: Omit<AssistantInput, 'id'|'created_by'|'text'|'cells'|'urgent'|'position'|'revision'> | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'interaction': InteractionToJSON(value['interaction']),
};
}