/* 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'; import type { Conversation } from './Conversation'; import { ConversationFromJSON, ConversationFromJSONTyped, ConversationToJSON, ConversationToJSONTyped, } from './Conversation'; /** * * @export * @interface ConversationsResponse */ export interface ConversationsResponse { /** * * @type {boolean} * @memberof ConversationsResponse */ ok: boolean; /** * * @type {ConversationsResponseTypeEnum} * @memberof ConversationsResponse */ type: ConversationsResponseTypeEnum; /** * Box id. * @type {string} * @memberof ConversationsResponse */ id: string; /** * * @type {Array} * @memberof ConversationsResponse */ conversations: Array; } /** * @export */ export const ConversationsResponseTypeEnum = { ConversationList: 'conversation.list' } as const; export type ConversationsResponseTypeEnum = typeof ConversationsResponseTypeEnum[keyof typeof ConversationsResponseTypeEnum]; /** * Check if a given object implements the ConversationsResponse interface. */ export function instanceOfConversationsResponse(value: object): value is ConversationsResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('id' in value) || value['id'] === undefined) return false; if (!('conversations' in value) || value['conversations'] === undefined) return false; return true; } export function ConversationsResponseFromJSON(json: any): ConversationsResponse { return ConversationsResponseFromJSONTyped(json, false); } export function ConversationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversationsResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'id': json['id'], 'conversations': ((json['conversations'] as Array).map(ConversationFromJSON)), }; } export function ConversationsResponseToJSON(json: any): ConversationsResponse { return ConversationsResponseToJSONTyped(json, false); } export function ConversationsResponseToJSONTyped(value?: ConversationsResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'id': value['id'], 'conversations': ((value['conversations'] as Array).map(ConversationToJSON)), }; }