/* 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 { MeResponseAllOfUser } from './MeResponseAllOfUser'; import { MeResponseAllOfUserFromJSON, MeResponseAllOfUserFromJSONTyped, MeResponseAllOfUserToJSON, MeResponseAllOfUserToJSONTyped, } from './MeResponseAllOfUser'; /** * * @export * @interface MeResponse */ export interface MeResponse { /** * * @type {boolean} * @memberof MeResponse */ ok: boolean; /** * * @type {MeResponseTypeEnum} * @memberof MeResponse */ type: MeResponseTypeEnum; /** * * @type {MeResponseAllOfUser} * @memberof MeResponse */ user: MeResponseAllOfUser; } /** * @export */ export const MeResponseTypeEnum = { UserInfo: 'user.info' } as const; export type MeResponseTypeEnum = typeof MeResponseTypeEnum[keyof typeof MeResponseTypeEnum]; /** * Check if a given object implements the MeResponse interface. */ export function instanceOfMeResponse(value: object): value is MeResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('user' in value) || value['user'] === undefined) return false; return true; } export function MeResponseFromJSON(json: any): MeResponse { return MeResponseFromJSONTyped(json, false); } export function MeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MeResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'user': MeResponseAllOfUserFromJSON(json['user']), }; } export function MeResponseToJSON(json: any): MeResponse { return MeResponseToJSONTyped(json, false); } export function MeResponseToJSONTyped(value?: MeResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'user': MeResponseAllOfUserToJSON(value['user']), }; }