UNPKG

@sinch/mcp

Version:

Sinch MCP server

81 lines (80 loc) 2.76 kB
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { IPromptResponse, Tags } from '../../types'; declare const NameModel: z.ZodObject<{ fullName: z.ZodString; firstName: z.ZodOptional<z.ZodString>; lastName: z.ZodOptional<z.ZodString>; middleName: z.ZodOptional<z.ZodString>; prefix: z.ZodOptional<z.ZodString>; suffix: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { fullName: string; firstName?: string | undefined; lastName?: string | undefined; middleName?: string | undefined; prefix?: string | undefined; suffix?: string | undefined; }, { fullName: string; firstName?: string | undefined; lastName?: string | undefined; middleName?: string | undefined; prefix?: string | undefined; suffix?: string | undefined; }>; declare const PhoneNumberModel: z.ZodObject<{ phoneNumber: z.ZodString; type: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { phoneNumber: string; type?: string | undefined; }, { phoneNumber: string; type?: string | undefined; }>; declare const EmailAddressModel: z.ZodObject<{ emailAddress: z.ZodString; type: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { emailAddress: string; type?: string | undefined; }, { emailAddress: string; type?: string | undefined; }>; declare const AddressModel: z.ZodObject<{ city: z.ZodOptional<z.ZodString>; country: z.ZodOptional<z.ZodString>; state: z.ZodOptional<z.ZodString>; zipCode: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; countryCode: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { type?: string | undefined; city?: string | undefined; country?: string | undefined; state?: string | undefined; zipCode?: string | undefined; countryCode?: string | undefined; }, { type?: string | undefined; city?: string | undefined; country?: string | undefined; state?: string | undefined; zipCode?: string | undefined; countryCode?: string | undefined; }>; export declare const registerSendContactInfoMessage: (server: McpServer, tags: Tags[]) => void; export declare const sendContactInfoMessageHandler: ({ recipient, channel, contactName, contactPhoneNumbers, contactEmailAddresses, contactAddresses, appId, sender, region }: { recipient: string; channel: string | string[]; contactName: z.infer<typeof NameModel>; contactPhoneNumbers: z.infer<typeof PhoneNumberModel>[]; contactEmailAddresses?: z.infer<typeof EmailAddressModel>[]; contactAddresses?: z.infer<typeof AddressModel>[]; appId?: string; sender?: string; region?: string; }) => Promise<IPromptResponse>; export {};