TypeScript Types
Complete TypeScript type definitions for the vCon MCP Server.
Overview
The vCon MCP Server provides full type safety through TypeScript and Zod validation. All types comply with IETF vCon Core specification.
Core vCon Types
VCon
Main vCon object representing a complete virtual conversation.
interface VCon {
// Core Metadata (Section 4.1)
vcon: string; // vCon version (e.g., "0.3.0")
uuid: string; // vCon UUID (RFC 4122)
created_at: string; // ISO 8601 timestamp
updated_at?: string; // ISO 8601 timestamp
subject?: string; // Conversation subject/title
// Extensions (Section 4.1.3)
extensions?: string[]; // Extension identifiers
must_support?: string[]; // Required extension support
// Components
parties: Party[]; // Participants (at least 1 required)
dialog?: Dialog[]; // Conversation segments
analysis?: Analysis[]; // AI/ML analysis results
attachments?: Attachment[]; // Additional files/data
// Advanced Features
group?: Group[]; // vCon grouping (Section 4.6)
redacted?: Record<string, any>; // Redaction tracking
appended?: Record<string, any>; // Append-only modifications
}Party
Represents a participant in a conversation (Section 4.2).
Party Examples:
Dialog
Represents a segment of conversation content (Section 4.3).
Dialog Examples:
Analysis
AI/ML analysis results for conversation content (Section 4.5).
Common Analysis Types:
summary
Conversation summary
Text or JSON
transcript
Speech-to-text
Text or JSON with timestamps
translation
Language translation
Text or JSON
sentiment
Sentiment analysis
JSON with scores
keywords
Keyword extraction
JSON array
entities
Named entity recognition
JSON
topics
Topic classification
JSON
action_items
Action item extraction
JSON array
pii_detection
PII identification
JSON
Analysis Examples:
Attachment
Additional files or data associated with a conversation (Section 4.4).
Special Attachment Types:
Group
Reference to other vCons for grouping (Section 4.6).
MCP Tool Input Types
CreateVConInput
SearchVConsInput
SearchVConsContentInput
SearchVConsSemanticInput
SearchVConsHybridInput
TagInput
MCP Response Types
StandardResponse
CreateVConResponse
GetVConResponse
SearchResponse
SearchContentResult
SearchSemanticResult
SearchHybridResult
TagsResponse
Validation
All types are validated using Zod schemas. Example:
Type Guards
Constants
Next Steps
See Tools Reference for tool definitions
See Database Schema for database structure
See Examples for usage examples
See vCon Spec for full specification
Last updated