UNPKG

@sinch/mcp

Version:

Sinch MCP server

24 lines 1.86 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TextMessage = exports.ConversationRegionOverride = exports.MessageSenderNumberOverride = exports.ConversationAppIdOverride = exports.ConversationChannel = exports.ChannelEnum = exports.Recipient = void 0; const zod_1 = require("zod"); const sdk_client_1 = require("@sinch/sdk-client"); exports.Recipient = zod_1.z.string() .describe('(Required) The recipient to send the message to. This can be a phone number in E.164 format, or the identifier for the specified channel such as Messenger.'); exports.ChannelEnum = zod_1.z.enum([ 'WHATSAPP', 'RCS', 'SMS', 'MESSENGER', 'VIBERBM', 'MMS', 'INSTAGRAM', 'TELEGRAM', 'KAKAOTALK', 'KAKAOTALKCHAT', 'LINE', 'WECHAT', 'APPLEBC' ]); exports.ConversationChannel = zod_1.z.array(exports.ChannelEnum).nonempty() .describe('(Required) The channel to use for sending the message.'); exports.ConversationAppIdOverride = zod_1.z.string().optional() .describe('(Optional) The ID of the app to use for the Sinch conversation API. If set, it will override the value from the environment variable "CONVERSATION_APP_ID".'); exports.MessageSenderNumberOverride = zod_1.z.string().optional() .describe('(Optional) The phone number of the message\'s sender (E.164 format). If set, it will override the value from the environment variable "DEFAULT_SMS_ORIGINATOR".'); const supportedRegions = Object.values(sdk_client_1.SupportedConversationRegion); exports.ConversationRegionOverride = zod_1.z.enum([...supportedRegions, '']).optional() .describe('(Optional) The region to use for the Sinch conversation API. If set, it will override the value from the environment variable CONVERSATION_REGION.'); exports.TextMessage = zod_1.z.string() .describe('(Required) The text to send.'); //# sourceMappingURL=index.js.map