TwilioModuleOptions is the options object accepted by TwilioModule.forRoot()
and returned by a forRootAsync() factory. It extends the Twilio SDK’s
ClientOpts, so every SDK client option is a top-level key alongside the
credential and webhook fields below. For how to use these options, see
Register the module.
Everything below is part of the public API and therefore covered by semver.
Export
Kind
Purpose
TwilioClientOpts
interface
The credential fields plus every Twilio SDK ClientOpts key, flattened. TwilioModuleOptions extends it.
TwilioClientRegistration
interface
A named client passed to registerClient(). Every field except name is optional and inherited from forRoot().
TwilioClientOptionsFactory
interface
Implemented by a class supplying a named client’s options via registerClientAsync({ useClass }).
validateTwilioOptions
function
The bootstrap validation the module runs for you. Exported so you can validate configuration yourself before constructing a module (useful in a config factory).
createTwilioClient
function
The factory the module uses to build a client. Exported for tests and for advanced cases where you need a client outside Nest’s DI container.