UNPKG

@sinch/mcp

Version:

Sinch MCP server

59 lines (58 loc) 1.51 kB
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { IPromptResponse, Tags } from '../../types'; declare const choiceMessage: z.ZodUnion<[z.ZodObject<{ phone_number: z.ZodString; title: z.ZodString; }, "strip", z.ZodTypeAny, { phone_number: string; title: string; }, { phone_number: string; title: string; }>, z.ZodUnion<[z.ZodObject<{ address: z.ZodString; }, "strip", z.ZodTypeAny, { address: string; }, { address: string; }>, z.ZodObject<{ lat: z.ZodNumber; long: z.ZodNumber; title: z.ZodString; }, "strip", z.ZodTypeAny, { title: string; lat: number; long: number; }, { title: string; lat: number; long: number; }>]>, z.ZodObject<{ text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; }, { text: string; }>, z.ZodObject<{ url: z.ZodString; title: z.ZodString; }, "strip", z.ZodTypeAny, { url: string; title: string; }, { url: string; title: string; }>]>; export declare const registerSendCardOrChoiceMessage: (server: McpServer, tags: Tags[]) => void; export declare const sendCardOrChoiceMessageHandler: ({ recipient, channel, choiceContent, text, mediaUrl, appId, sender, region }: { recipient: string; channel: string | string[]; choiceContent?: z.infer<typeof choiceMessage>[]; text: string; mediaUrl?: string; appId?: string; sender?: string; region?: string; }) => Promise<IPromptResponse>; export {};