"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const sendMessage_1 = __importDefault(require("./sendMessage"));
const destination = {
    name: 'Twilio Messaging Omnichannel',
    slug: 'actions-twilio-messaging-omnichannel',
    mode: 'cloud',
    authentication: {
        scheme: 'basic',
        fields: {
            username: {
                label: 'Twilio Account SID.',
                description: 'Twilio Account SID. This can be found in the [Twilio Console](https://www.twilio.com/docs/usage/api#authenticate-with-http:~:text=token%20in%20the-,Twilio%20Console,-after%20signing%20up).',
                type: 'string',
                required: true
            },
            password: {
                label: 'AUTH Token',
                description: 'AUTH Token. This can be found in the [Twilio Console](https://www.twilio.com/docs/usage/api#authenticate-with-http:~:text=token%20in%20the-,Twilio%20Console,-after%20signing%20up).',
                type: 'password',
                required: true
            }
        },
        testAuthentication: (request) => {
            return request(`https://api.twilio.com/2010-04-01`);
        }
    },
    extendRequest({ settings }) {
        return {
            'Content-Type': 'application/json',
            username: settings.username,
            password: settings.password
        };
    },
    actions: {
        sendMessage: sendMessage_1.default
    }
};
exports.default = destination;
//# sourceMappingURL=index.js.map