twilio-node icon indicating copy to clipboard operation
twilio-node copied to clipboard

[Bug] VoiceResponse ConferenceRegion type error for us2 region

Open seoi99 opened this issue 7 months ago • 2 comments

Describe the bug

According to the Twilio docs:

https://www.twilio.com/docs/voice/api/conference-resource

The region property supports "us2" for voice conferences.

However, in the latest SDK (twilio@<5.6.1>), TypeScript throws: Type '"us2"' is not assignable to type 'ConferenceRegion | undefined'

This is likely because the ConferenceRegion type does not include "us2".

Expected behavior

"us2" should be allowed as a valid value for region.

Suggested Fix

Update the ConferenceRegion union type in the SDK typings to include "us2".

seoi99 avatar May 28 '25 22:05 seoi99

Thanks for raising this bug. We will look at it.

manisha1997 avatar May 29 '25 15:05 manisha1997

Hello! This will be available in the next release Thanks!

manisha1997 avatar Jun 02 '25 08:06 manisha1997

This is now available in version 5.7.1

manisha1997 avatar Jun 26 '25 13:06 manisha1997