/* 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 RoleDTO */ export interface RoleDTO { /** * * @type {string} * @memberof RoleDTO */ applicationId?: string; /** * * @type {string} * @memberof RoleDTO */ id?: string; /** * * @type {string} * @memberof RoleDTO */ name?: string; /** * * @type {Array} * @memberof RoleDTO */ permissions?: Array; } /** * Check if a given object implements the RoleDTO interface. */ export function instanceOfRoleDTO(value: object): value is RoleDTO { return true; } export function RoleDTOFromJSON(json: any): RoleDTO { return RoleDTOFromJSONTyped(json, false); } export function RoleDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): RoleDTO { if (json == null) { return json; } return { 'applicationId': json['applicationId'] == null ? undefined : json['applicationId'], 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'] == null ? undefined : json['name'], 'permissions': json['permissions'] == null ? undefined : json['permissions'], }; } export function RoleDTOToJSON(json: any): RoleDTO { return RoleDTOToJSONTyped(json, false); } export function RoleDTOToJSONTyped(value?: RoleDTO | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'applicationId': value['applicationId'], 'id': value['id'], 'name': value['name'], 'permissions': value['permissions'], }; }