/* 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 CreateAPIKeyResponseDTO */ export interface CreateAPIKeyResponseDTO { /** * * @type {string} * @memberof CreateAPIKeyResponseDTO */ accountId?: string; /** * * @type {string} * @memberof CreateAPIKeyResponseDTO */ apiKey?: string; /** * * @type {string} * @memberof CreateAPIKeyResponseDTO */ createdAt?: string; /** * * @type {string} * @memberof CreateAPIKeyResponseDTO */ id?: string; /** * * @type {string} * @memberof CreateAPIKeyResponseDTO */ name?: string; } /** * Check if a given object implements the CreateAPIKeyResponseDTO interface. */ export function instanceOfCreateAPIKeyResponseDTO(value: object): value is CreateAPIKeyResponseDTO { return true; } export function CreateAPIKeyResponseDTOFromJSON(json: any): CreateAPIKeyResponseDTO { return CreateAPIKeyResponseDTOFromJSONTyped(json, false); } export function CreateAPIKeyResponseDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateAPIKeyResponseDTO { if (json == null) { return json; } return { 'accountId': json['account_id'] == null ? undefined : json['account_id'], 'apiKey': json['api_key'] == null ? undefined : json['api_key'], '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 CreateAPIKeyResponseDTOToJSON(json: any): CreateAPIKeyResponseDTO { return CreateAPIKeyResponseDTOToJSONTyped(json, false); } export function CreateAPIKeyResponseDTOToJSONTyped(value?: CreateAPIKeyResponseDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'account_id': value['accountId'], 'api_key': value['apiKey'], 'created_at': value['createdAt'], 'id': value['id'], 'name': value['name'], }; }