/* tslint:disable */ /* eslint-disable */ /** * Boat Public API v1 * Public JSON API for creating, operating, prompting, observing, and exposing Boat sandboxes from backend services, CI jobs, hosted workers, and Boat automation products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1. * * The version of the OpenAPI document: 1.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 BoxEvent */ export interface BoxEvent { [key: string]: any | any; /** * * @type {string} * @memberof BoxEvent */ id?: string; /** * * @type {string} * @memberof BoxEvent */ type: string; /** * * @type {number} * @memberof BoxEvent */ timestamp?: number; /** * * @type {string} * @memberof BoxEvent */ taskId?: string | null; /** * The conversation this event belongs to. Filter the stream with `?conversation=`. See [Integrated agents](/box/integrated-agents). * @type {string} * @memberof BoxEvent */ conversationId?: string | null; /** * * @type {{ [key: string]: any; }} * @memberof BoxEvent */ data?: { [key: string]: any; }; } /** * Check if a given object implements the BoxEvent interface. */ export function instanceOfBoxEvent(value: object): value is BoxEvent { if (!('type' in value) || value['type'] === undefined) return false; return true; } export function BoxEventFromJSON(json: any): BoxEvent { return BoxEventFromJSONTyped(json, false); } export function BoxEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): BoxEvent { if (json == null) { return json; } return { ...json, 'id': json['id'] == null ? undefined : json['id'], 'type': json['type'], 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'], 'taskId': json['taskId'] == null ? undefined : json['taskId'], 'conversationId': json['conversationId'] == null ? undefined : json['conversationId'], 'data': json['data'] == null ? undefined : json['data'], }; } export function BoxEventToJSON(json: any): BoxEvent { return BoxEventToJSONTyped(json, false); } export function BoxEventToJSONTyped(value?: BoxEvent | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { ...value, 'id': value['id'], 'type': value['type'], 'timestamp': value['timestamp'], 'taskId': value['taskId'], 'conversationId': value['conversationId'], 'data': value['data'], }; }