/* 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 { PromptRun } from './PromptRun'; import { PromptRunFromJSON, PromptRunFromJSONTyped, PromptRunToJSON, PromptRunToJSONTyped, } from './PromptRun'; /** * * @export * @interface PromptRunResponse */ export interface PromptRunResponse { /** * * @type {boolean} * @memberof PromptRunResponse */ ok: boolean; /** * * @type {PromptRunResponseTypeEnum} * @memberof PromptRunResponse */ type: PromptRunResponseTypeEnum; /** * * @type {string} * @memberof PromptRunResponse */ id: string; /** * * @type {PromptRun} * @memberof PromptRunResponse */ promptRun: PromptRun; } /** * @export */ export const PromptRunResponseTypeEnum = { PromptRun: 'prompt.run' } as const; export type PromptRunResponseTypeEnum = typeof PromptRunResponseTypeEnum[keyof typeof PromptRunResponseTypeEnum]; /** * Check if a given object implements the PromptRunResponse interface. */ export function instanceOfPromptRunResponse(value: object): value is PromptRunResponse { 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 (!('promptRun' in value) || value['promptRun'] === undefined) return false; return true; } export function PromptRunResponseFromJSON(json: any): PromptRunResponse { return PromptRunResponseFromJSONTyped(json, false); } export function PromptRunResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PromptRunResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'id': json['id'], 'promptRun': PromptRunFromJSON(json['promptRun']), }; } export function PromptRunResponseToJSON(json: any): PromptRunResponse { return PromptRunResponseToJSONTyped(json, false); } export function PromptRunResponseToJSONTyped(value?: PromptRunResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'id': value['id'], 'promptRun': PromptRunToJSON(value['promptRun']), }; }