/* 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 WebhookSecretResponse */ export interface WebhookSecretResponse { /** * * @type {boolean} * @memberof WebhookSecretResponse */ ok: boolean; /** * Stable success envelope discriminator added by v1. * @type {string} * @memberof WebhookSecretResponse */ type: string; /** * * @type {Webhook} * @memberof WebhookSecretResponse */ webhook: Webhook; /** * Signing secret returned only when created or rotated. * @type {string} * @memberof WebhookSecretResponse */ secret: string; } /** * Check if a given object implements the WebhookSecretResponse interface. */ export function instanceOfWebhookSecretResponse(value: object): value is WebhookSecretResponse { 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; if (!('secret' in value) || value['secret'] === undefined) return false; return true; } export function WebhookSecretResponseFromJSON(json: any): WebhookSecretResponse { return WebhookSecretResponseFromJSONTyped(json, false); } export function WebhookSecretResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WebhookSecretResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'webhook': WebhookFromJSON(json['webhook']), 'secret': json['secret'], }; } export function WebhookSecretResponseToJSON(json: any): WebhookSecretResponse { return WebhookSecretResponseToJSONTyped(json, false); } export function WebhookSecretResponseToJSONTyped(value?: WebhookSecretResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'webhook': WebhookToJSON(value['webhook']), 'secret': value['secret'], }; }