UNPKG

@sinch/mcp

Version:

Sinch MCP server

38 lines 1.31 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.sha256 = exports.getToolName = exports.toolsConfig = void 0; const crypto_1 = __importDefault(require("crypto")); exports.toolsConfig = { analyticsMetrics: { name: 'analytics-metrics', tags: ['all', 'email', 'analytics-metrics'], }, listEmailEvents: { name: 'list-email-events', tags: ['all', 'email', 'list-email-events'], }, listEmailTemplates: { name: 'list-email-templates', tags: ['all', 'email', 'notification', 'list-email-templates'], }, retrieveEmailInfo: { name: 'retrieve-email-info', tags: ['all', 'email', 'notification', 'retrieve-email-info'], }, sendEmail: { name: 'send-email', tags: ['all', 'email', 'notification', 'send-email'], } }; const getToolName = (toolKey) => exports.toolsConfig[toolKey].name; exports.getToolName = getToolName; const sha256 = (str) => { const hash = crypto_1.default.createHash('sha256'); hash.update(str); return hash.digest('hex'); }; exports.sha256 = sha256; //# sourceMappingURL=mailgun-tools-helper.js.map