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';
/**
*
* @export
* @interface IntegrationEvent
*/
export interface IntegrationEvent {
/**
*
* @type {string}
* @memberof IntegrationEvent
*/
id: string;
/**
*
* @type {string}
* @memberof IntegrationEvent
*/
label: string;
/**
*
* @type {{ [key: string]: any; }}
* @memberof IntegrationEvent
*/
fields: { [key: string]: any; };
}
/**
* Check if a given object implements the IntegrationEvent interface.
*/
export function instanceOfIntegrationEvent(value: object): value is IntegrationEvent {
if (!('id' in value) || value['id'] === undefined) return false;
if (!('label' in value) || value['label'] === undefined) return false;
if (!('fields' in value) || value['fields'] === undefined) return false;
return true;
}
export function IntegrationEventFromJSON(json: any): IntegrationEvent {
return IntegrationEventFromJSONTyped(json, false);
}
export function IntegrationEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntegrationEvent {
if (json == null) {
return json;
}
return {
'id': json['id'],
'label': json['label'],
'fields': json['fields'],
};
}
export function IntegrationEventToJSON(json: any): IntegrationEvent {
return IntegrationEventToJSONTyped(json, false);
}
export function IntegrationEventToJSONTyped(value?: IntegrationEvent | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {
'id': value['id'],
'label': value['label'],
'fields': value['fields'],
};
}