/* tslint:disable */ /* eslint-disable */ /** * Tuix MCP Host API * Service managing MCP servers for Tuix applications. * * The version of the OpenAPI document: 0.0.1 * * * 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'; /** * * @export * @interface APIKeyDTO */ export interface APIKeyDTO { /** * * @type {string} * @memberof APIKeyDTO */ apiKeyToDisplay?: string; /** * * @type {string} * @memberof APIKeyDTO */ createdAt?: string; /** * * @type {string} * @memberof APIKeyDTO */ id?: string; /** * * @type {string} * @memberof APIKeyDTO */ name?: string; } /** * Check if a given object implements the APIKeyDTO interface. */ export function instanceOfAPIKeyDTO(value: object): value is APIKeyDTO { return true; } export function APIKeyDTOFromJSON(json: any): APIKeyDTO { return APIKeyDTOFromJSONTyped(json, false); } export function APIKeyDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): APIKeyDTO { if (json == null) { return json; } return { 'apiKeyToDisplay': json['api_key_to_display'] == null ? undefined : json['api_key_to_display'], 'createdAt': json['created_at'] == null ? undefined : json['created_at'], 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], }; } export function APIKeyDTOToJSON(json: any): APIKeyDTO { return APIKeyDTOToJSONTyped(json, false); } export function APIKeyDTOToJSONTyped(value?: APIKeyDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'api_key_to_display': value['apiKeyToDisplay'], 'created_at': value['createdAt'], 'id': value['id'], 'name': value['name'], }; }