/* 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'; import type { MCPServerDTO } from './MCPServerDTO'; import { MCPServerDTOFromJSON, MCPServerDTOFromJSONTyped, MCPServerDTOToJSON, MCPServerDTOToJSONTyped, } from './MCPServerDTO'; /** * * @export * @interface PaginatedApplicationMCPServerDTO */ export interface PaginatedApplicationMCPServerDTO { /** * * @type {Array} * @memberof PaginatedApplicationMCPServerDTO */ items?: Array; /** * * @type {number} * @memberof PaginatedApplicationMCPServerDTO */ page?: number; /** * * @type {number} * @memberof PaginatedApplicationMCPServerDTO */ pageSize?: number; /** * * @type {number} * @memberof PaginatedApplicationMCPServerDTO */ totalItems?: number; /** * * @type {number} * @memberof PaginatedApplicationMCPServerDTO */ totalPages?: number; } /** * Check if a given object implements the PaginatedApplicationMCPServerDTO interface. */ export function instanceOfPaginatedApplicationMCPServerDTO(value: object): value is PaginatedApplicationMCPServerDTO { return true; } export function PaginatedApplicationMCPServerDTOFromJSON(json: any): PaginatedApplicationMCPServerDTO { return PaginatedApplicationMCPServerDTOFromJSONTyped(json, false); } export function PaginatedApplicationMCPServerDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedApplicationMCPServerDTO { if (json == null) { return json; } return { 'items': json['items'] == null ? undefined : ((json['items'] as Array).map(MCPServerDTOFromJSON)), 'page': json['page'] == null ? undefined : json['page'], 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'], 'totalItems': json['totalItems'] == null ? undefined : json['totalItems'], 'totalPages': json['totalPages'] == null ? undefined : json['totalPages'], }; } export function PaginatedApplicationMCPServerDTOToJSON(json: any): PaginatedApplicationMCPServerDTO { return PaginatedApplicationMCPServerDTOToJSONTyped(json, false); } export function PaginatedApplicationMCPServerDTOToJSONTyped(value?: PaginatedApplicationMCPServerDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'items': value['items'] == null ? undefined : ((value['items'] as Array).map(MCPServerDTOToJSON)), 'page': value['page'], 'pageSize': value['pageSize'], 'totalItems': value['totalItems'], 'totalPages': value['totalPages'], }; }