/* 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 ApiKeyRevokeResponse */ export interface ApiKeyRevokeResponse { /** * * @type {boolean} * @memberof ApiKeyRevokeResponse */ ok: boolean; /** * Stable success envelope discriminator added by v1. * @type {string} * @memberof ApiKeyRevokeResponse */ type: string; /** * * @type {Array} * @memberof ApiKeyRevokeResponse */ apiKeys: Array; } /** * Check if a given object implements the ApiKeyRevokeResponse interface. */ export function instanceOfApiKeyRevokeResponse(value: object): value is ApiKeyRevokeResponse { 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; return true; } export function ApiKeyRevokeResponseFromJSON(json: any): ApiKeyRevokeResponse { return ApiKeyRevokeResponseFromJSONTyped(json, false); } export function ApiKeyRevokeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiKeyRevokeResponse { if (json == null) { return json; } return { 'ok': json['ok'], 'type': json['type'], 'apiKeys': ((json['apiKeys'] as Array).map(ApiKeyFromJSON)), }; } export function ApiKeyRevokeResponseToJSON(json: any): ApiKeyRevokeResponse { return ApiKeyRevokeResponseToJSONTyped(json, false); } export function ApiKeyRevokeResponseToJSONTyped(value?: ApiKeyRevokeResponse | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'ok': value['ok'], 'type': value['type'], 'apiKeys': ((value['apiKeys'] as Array).map(ApiKeyToJSON)), }; }