/* 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 { SnapshotSummary } from './SnapshotSummary'; import { SnapshotSummaryFromJSON, SnapshotSummaryFromJSONTyped, SnapshotSummaryToJSON, SnapshotSummaryToJSONTyped, } from './SnapshotSummary'; /** * * @export * @interface SnapshotLatestResponse */ export interface SnapshotLatestResponse { /** * * @type {boolean} * @memberof SnapshotLatestResponse */ ok: boolean; /** * * @type {SnapshotLatestResponseTypeEnum} * @memberof SnapshotLatestResponse */ type: SnapshotLatestResponseTypeEnum; /** * * @type {SnapshotSummary} * @memberof SnapshotLatestResponse */ snapshot: SnapshotSummary | null; } /** * @export */ export const SnapshotLatestResponseTypeEnum = { SnapshotLatest: 'snapshot.latest' } as const; export type SnapshotLatestResponseTypeEnum = typeof SnapshotLatestResponseTypeEnum[keyof typeof SnapshotLatestResponseTypeEnum]; /** * Check if a given object implements the SnapshotLatestResponse interface. */ export function instanceOfSnapshotLatestResponse(value: object): value is SnapshotLatestResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('snapshot' in value) || value['snapshot'] === undefined) return false; return true; } export function SnapshotLatestResponseFromJSON(json: any): SnapshotLatestResponse { return SnapshotLatestResponseFromJSONTyped(json, false); } export function SnapshotLatestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SnapshotLatestResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'snapshot': SnapshotSummaryFromJSON(json['snapshot']), }; } export function SnapshotLatestResponseToJSON(json: any): SnapshotLatestResponse { return SnapshotLatestResponseToJSONTyped(json, false); } export function SnapshotLatestResponseToJSONTyped(value?: SnapshotLatestResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'snapshot': SnapshotSummaryToJSON(value['snapshot']), }; }