/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ import type { AuthTypeEnum } from './AuthTypeEnum'; import type { MCPServerConnectionScopeEnum } from './MCPServerConnectionScopeEnum'; /** * Serializer for managing `MCPServerConnection` records via the API. * * The serializer enforces the business rules for combining scope, platform, * and authentication configuration while exposing a masked view of any stored * credentials. */ export type MCPServerConnection = { readonly id: number; server: number; readonly server_name: string; /** * Whether this connection is scoped to a user or shared across a platform. * * * `user` - User * * `mentor` - Mentor * * `platform` - Platform */ scope?: MCPServerConnectionScopeEnum; auth_type?: AuthTypeEnum; platform?: number | null; readonly platform_key: string | null; /** * edX username */ user?: string | null; mentor?: string | null; connected_service?: number | null; readonly connected_service_summary: Record | null; /** * Static credential/token value for token-based authentication. */ credentials?: string; /** * Authorization scheme to prefix tokens with (e.g. 'Bearer'). */ authorization_scheme?: string; /** * Additional headers to include when connecting to the MCP server. */ extra_headers?: any; is_active?: boolean; readonly created_at: string; readonly updated_at: string; };