/* 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 WebhookListResponse */ export interface WebhookListResponse { /** * * @type {boolean} * @memberof WebhookListResponse */ ok: boolean; /** * Stable success envelope discriminator added by v1. * @type {string} * @memberof WebhookListResponse */ type: string; /** * * @type {Array} * @memberof WebhookListResponse */ webhooks: Array; } /** * Check if a given object implements the WebhookListResponse interface. */ export function instanceOfWebhookListResponse(value: object): value is WebhookListResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('webhooks' in value) || value['webhooks'] === undefined) return false; return true; } export function WebhookListResponseFromJSON(json: any): WebhookListResponse { return WebhookListResponseFromJSONTyped(json, false); } export function WebhookListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookListResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'webhooks': ((json['webhooks'] as Array).map(WebhookFromJSON)), }; } export function WebhookListResponseToJSON(json: any): WebhookListResponse { return WebhookListResponseToJSONTyped(json, false); } export function WebhookListResponseToJSONTyped(value?: WebhookListResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'webhooks': ((value['webhooks'] as Array).map(WebhookToJSON)), }; }