/* 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 { ApiKeyCatalog } from './ApiKeyCatalog'; import { ApiKeyCatalogFromJSON, ApiKeyCatalogFromJSONTyped, ApiKeyCatalogToJSON, ApiKeyCatalogToJSONTyped, } from './ApiKeyCatalog'; import type { ApiKey } from './ApiKey'; import { ApiKeyFromJSON, ApiKeyFromJSONTyped, ApiKeyToJSON, ApiKeyToJSONTyped, } from './ApiKey'; /** * * @export * @interface ApiKeysResponse */ export interface ApiKeysResponse { /** * * @type {boolean} * @memberof ApiKeysResponse */ ok: boolean; /** * Stable success envelope discriminator added by v1. * @type {string} * @memberof ApiKeysResponse */ type: string; /** * * @type {Array} * @memberof ApiKeysResponse */ apiKeys: Array; /** * * @type {ApiKeyCatalog} * @memberof ApiKeysResponse */ catalog: ApiKeyCatalog; } /** * Check if a given object implements the ApiKeysResponse interface. */ export function instanceOfApiKeysResponse(value: object): value is ApiKeysResponse { if (!('ok' in value) || value['ok'] === undefined) return false; if (!('type' in value) || value['type'] === undefined) return false; if (!('apiKeys' in value) || value['apiKeys'] === undefined) return false; if (!('catalog' in value) || value['catalog'] === undefined) return false; return true; } export function ApiKeysResponseFromJSON(json: any): ApiKeysResponse { return ApiKeysResponseFromJSONTyped(json, false); } export function ApiKeysResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeysResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'apiKeys': ((json['apiKeys'] as Array).map(ApiKeyFromJSON)), 'catalog': ApiKeyCatalogFromJSON(json['catalog']), }; } export function ApiKeysResponseToJSON(json: any): ApiKeysResponse { return ApiKeysResponseToJSONTyped(json, false); } export function ApiKeysResponseToJSONTyped(value?: ApiKeysResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'apiKeys': ((value['apiKeys'] as Array).map(ApiKeyToJSON)), 'catalog': ApiKeyCatalogToJSON(value['catalog']), }; }