/* 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 { Webhook } from './Webhook'; import { WebhookFromJSON, WebhookFromJSONTyped, WebhookToJSON, WebhookToJSONTyped, } from './Webhook'; /** * * @export * @interface WebhookResponse */ export interface WebhookResponse { /** * * @type {boolean} * @memberof WebhookResponse */ ok: boolean; /** * Stable success envelope discriminator added by v1. * @type {string} * @memberof WebhookResponse */ type: string; /** * * @type {Webhook} * @memberof WebhookResponse */ webhook: Webhook; } /** * Check if a given object implements the WebhookResponse interface. */ export function instanceOfWebhookResponse(value: object): value is WebhookResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('webhook' in value) || value['webhook'] === undefined) return false; return true; } export function WebhookResponseFromJSON(json: any): WebhookResponse { return WebhookResponseFromJSONTyped(json, false); } export function WebhookResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'webhook': WebhookFromJSON(json['webhook']), }; } export function WebhookResponseToJSON(json: any): WebhookResponse { return WebhookResponseToJSONTyped(json, false); } export function WebhookResponseToJSONTyped(value?: WebhookResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'webhook': WebhookToJSON(value['webhook']), }; }