fluent-api-mcp-server
Version:
FluentAPI MCP Server - Enable AI assistants to facilitate seamless multilingual conversations
89 lines • 2.22 kB
TypeScript
/**
* FluentAPI Client for MCP Server
* Handles communication with FluentAPI borderless endpoints
*/
export interface TranslationRequest {
conversationId: string;
senderId?: string;
senderLang?: string;
recipientId?: string;
recipientLang: string;
message: string;
platformType?: string;
}
export interface TranslationResponse {
success: boolean;
conversationId: string;
messageId: string;
original: {
text: string;
language: string;
senderId?: string;
senderLang?: string;
};
translated: {
text: string;
language: string;
recipientId?: string;
};
displayOptions: {
showOriginal: boolean;
showTranslated: boolean;
format: string;
};
integrations: {
facebook: any;
whatsapp: any;
slack: any;
};
}
export interface ConversationHistory {
conversationId: string;
participants: Record<string, {
language: string;
lastActive: string;
}>;
messages: Array<{
id: string;
senderId?: string;
recipientId?: string;
original: {
text: string;
language: string;
};
translated: {
text: string;
language: string;
};
timestamp: string;
platformType?: string;
displayText?: string;
displayLanguage?: string;
}>;
messageCount: number;
}
export interface APIError {
error: string;
message?: string;
usage?: number;
limit?: number;
upgradeUrl?: string;
}
export declare class FluentAPIClient {
private baseURL;
private apiKey;
constructor(apiKey: string, baseURL?: string);
/**
* Translate a message in the context of a conversation
*/
translate(request: TranslationRequest): Promise<TranslationResponse>;
/**
* Get conversation history
*/
getConversation(conversationId: string, participantId?: string, language?: string): Promise<ConversationHistory>;
/**
* Get supported languages (static list for now)
*/
getSupportedLanguages(): Record<string, string>;
}
//# sourceMappingURL=fluent-client.d.ts.map