/* 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 { ApiKey } from './ApiKey'; import { ApiKeyFromJSON, ApiKeyFromJSONTyped, ApiKeyToJSON, ApiKeyToJSONTyped, } from './ApiKey'; /** * * @export * @interface ApiKeySecretResponse */ export interface ApiKeySecretResponse { /** * * @type {boolean} * @memberof ApiKeySecretResponse */ ok: boolean; /** * Stable success envelope discriminator added by v1. * @type {string} * @memberof ApiKeySecretResponse */ type: string; /** * * @type {ApiKey} * @memberof ApiKeySecretResponse */ apiKey: ApiKey; /** * Raw secret returned once. Store it before closing the response. * @type {string} * @memberof ApiKeySecretResponse */ secret: string; /** * * @type {Array} * @memberof ApiKeySecretResponse */ apiKeys: Array; } /** * Check if a given object implements the ApiKeySecretResponse interface. */ export function instanceOfApiKeySecretResponse(value: object): value is ApiKeySecretResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('apiKey' in value) || value['apiKey'] === undefined) return false; if (!('secret' in value) || value['secret'] === undefined) return false; if (!('apiKeys' in value) || value['apiKeys'] === undefined) return false; return true; } export function ApiKeySecretResponseFromJSON(json: any): ApiKeySecretResponse { return ApiKeySecretResponseFromJSONTyped(json, false); } export function ApiKeySecretResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeySecretResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'apiKey': ApiKeyFromJSON(json['apiKey']), 'secret': json['secret'], 'apiKeys': ((json['apiKeys'] as Array).map(ApiKeyFromJSON)), }; } export function ApiKeySecretResponseToJSON(json: any): ApiKeySecretResponse { return ApiKeySecretResponseToJSONTyped(json, false); } export function ApiKeySecretResponseToJSONTyped(value?: ApiKeySecretResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'apiKey': ApiKeyToJSON(value['apiKey']), 'secret': value['secret'], 'apiKeys': ((value['apiKeys'] as Array).map(ApiKeyToJSON)), }; }