import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const callingSetting = await client.whatsapp.phoneNumbers.callingSettings.update('phone_number', {
enabled: true,
});
console.log(callingSetting.data);