twilio 5.11.0 → 5.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/auth_strategy/AuthStrategy.d.ts +7 -0
- package/lib/auth_strategy/AuthStrategy.js +11 -0
- package/lib/auth_strategy/BasicAuthStrategy.d.ts +8 -0
- package/lib/auth_strategy/BasicAuthStrategy.js +21 -0
- package/lib/auth_strategy/NoAuthStrategy.d.ts +6 -0
- package/lib/auth_strategy/NoAuthStrategy.js +18 -0
- package/lib/auth_strategy/TokenAuthStrategy.d.ts +16 -0
- package/lib/auth_strategy/TokenAuthStrategy.js +60 -0
- package/lib/base/BaseTwilio.d.ts +122 -0
- package/lib/base/BaseTwilio.js +254 -0
- package/lib/base/Domain.d.ts +29 -0
- package/lib/base/Domain.js +53 -0
- package/lib/base/Page.d.ts +104 -0
- package/lib/base/Page.js +195 -0
- package/lib/base/RequestClient.d.ts +186 -0
- package/lib/base/RequestClient.js +281 -0
- package/lib/base/RestException.d.ts +16 -0
- package/lib/base/RestException.js +33 -0
- package/lib/base/ValidationClient.d.ts +10 -0
- package/lib/base/ValidationClient.js +2 -0
- package/lib/base/Version.d.ts +139 -0
- package/lib/base/Version.js +354 -0
- package/lib/base/deserialize.d.ts +41 -0
- package/lib/base/deserialize.js +75 -0
- package/lib/base/serialize.d.ts +53 -0
- package/lib/base/serialize.js +121 -0
- package/lib/base/utility.d.ts +2 -0
- package/lib/base/utility.js +13 -0
- package/lib/base/values.d.ts +10 -0
- package/lib/base/values.js +15 -0
- package/lib/credential_provider/ClientCredentialProvider.d.ts +22 -0
- package/lib/credential_provider/ClientCredentialProvider.js +50 -0
- package/lib/credential_provider/CredentialProvider.d.ts +7 -0
- package/lib/credential_provider/CredentialProvider.js +11 -0
- package/lib/credential_provider/NoAuthCredentialProvider.d.ts +9 -0
- package/lib/credential_provider/NoAuthCredentialProvider.js +19 -0
- package/lib/credential_provider/OrgsCredentialProvider.d.ts +22 -0
- package/lib/credential_provider/OrgsCredentialProvider.js +50 -0
- package/lib/http/bearer_token/ApiTokenManager.d.ts +8 -0
- package/lib/http/bearer_token/ApiTokenManager.js +33 -0
- package/lib/http/bearer_token/OrgsTokenManager.d.ts +8 -0
- package/lib/http/bearer_token/OrgsTokenManager.js +33 -0
- package/lib/http/bearer_token/TokenManager.d.ts +3 -0
- package/lib/http/bearer_token/TokenManager.js +5 -0
- package/lib/http/request.d.ts +25 -0
- package/lib/http/request.js +85 -0
- package/lib/http/response.d.ts +7 -0
- package/lib/http/response.js +13 -0
- package/lib/index.d.ts +70 -0
- package/lib/index.js +90 -0
- package/lib/interfaces.d.ts +94 -0
- package/lib/interfaces.js +2 -0
- package/lib/jwt/AccessToken.d.ts +186 -0
- package/lib/jwt/AccessToken.js +256 -0
- package/lib/jwt/ClientCapability.d.ts +61 -0
- package/lib/jwt/ClientCapability.js +122 -0
- package/lib/jwt/taskrouter/TaskRouterCapability.d.ts +74 -0
- package/lib/jwt/taskrouter/TaskRouterCapability.js +101 -0
- package/lib/jwt/taskrouter/util.d.ts +66 -0
- package/lib/jwt/taskrouter/util.js +168 -0
- package/lib/jwt/validation/RequestCanonicalizer.d.ts +20 -0
- package/lib/jwt/validation/RequestCanonicalizer.js +97 -0
- package/lib/jwt/validation/ValidationToken.d.ts +45 -0
- package/lib/jwt/validation/ValidationToken.js +121 -0
- package/lib/rest/Accounts.d.ts +19 -0
- package/lib/rest/Accounts.js +29 -0
- package/lib/rest/AccountsBase.d.ts +13 -0
- package/lib/rest/AccountsBase.js +31 -0
- package/lib/rest/Api.d.ts +127 -0
- package/lib/rest/Api.js +182 -0
- package/lib/rest/ApiBase.d.ts +13 -0
- package/lib/rest/ApiBase.js +31 -0
- package/lib/rest/Assistants.d.ts +4 -0
- package/lib/rest/Assistants.js +8 -0
- package/lib/rest/AssistantsBase.d.ts +13 -0
- package/lib/rest/AssistantsBase.js +31 -0
- package/lib/rest/Bulkexports.d.ts +14 -0
- package/lib/rest/Bulkexports.js +22 -0
- package/lib/rest/BulkexportsBase.d.ts +13 -0
- package/lib/rest/BulkexportsBase.js +31 -0
- package/lib/rest/Chat.d.ts +19 -0
- package/lib/rest/Chat.js +29 -0
- package/lib/rest/ChatBase.d.ts +19 -0
- package/lib/rest/ChatBase.js +41 -0
- package/lib/rest/Content.d.ts +9 -0
- package/lib/rest/Content.js +15 -0
- package/lib/rest/ContentBase.d.ts +16 -0
- package/lib/rest/ContentBase.js +36 -0
- package/lib/rest/Conversations.d.ts +44 -0
- package/lib/rest/Conversations.js +64 -0
- package/lib/rest/ConversationsBase.d.ts +13 -0
- package/lib/rest/ConversationsBase.js +31 -0
- package/lib/rest/Events.d.ts +24 -0
- package/lib/rest/Events.js +36 -0
- package/lib/rest/EventsBase.d.ts +13 -0
- package/lib/rest/EventsBase.js +31 -0
- package/lib/rest/FlexApi.d.ts +39 -0
- package/lib/rest/FlexApi.js +57 -0
- package/lib/rest/FlexApiBase.d.ts +16 -0
- package/lib/rest/FlexApiBase.js +36 -0
- package/lib/rest/FrontlineApi.d.ts +9 -0
- package/lib/rest/FrontlineApi.js +15 -0
- package/lib/rest/FrontlineApiBase.d.ts +13 -0
- package/lib/rest/FrontlineApiBase.js +31 -0
- package/lib/rest/Iam.d.ts +4 -0
- package/lib/rest/Iam.js +8 -0
- package/lib/rest/IamBase.d.ts +13 -0
- package/lib/rest/IamBase.js +31 -0
- package/lib/rest/Insights.d.ts +29 -0
- package/lib/rest/Insights.js +43 -0
- package/lib/rest/InsightsBase.d.ts +13 -0
- package/lib/rest/InsightsBase.js +31 -0
- package/lib/rest/Intelligence.d.ts +4 -0
- package/lib/rest/Intelligence.js +8 -0
- package/lib/rest/IntelligenceBase.d.ts +13 -0
- package/lib/rest/IntelligenceBase.js +31 -0
- package/lib/rest/IpMessaging.d.ts +14 -0
- package/lib/rest/IpMessaging.js +22 -0
- package/lib/rest/IpMessagingBase.d.ts +16 -0
- package/lib/rest/IpMessagingBase.js +36 -0
- package/lib/rest/Knowledge.d.ts +4 -0
- package/lib/rest/Knowledge.js +8 -0
- package/lib/rest/KnowledgeBase.d.ts +13 -0
- package/lib/rest/KnowledgeBase.js +31 -0
- package/lib/rest/Lookups.d.ts +9 -0
- package/lib/rest/Lookups.js +15 -0
- package/lib/rest/LookupsBase.d.ts +16 -0
- package/lib/rest/LookupsBase.js +36 -0
- package/lib/rest/Marketplace.d.ts +4 -0
- package/lib/rest/Marketplace.js +8 -0
- package/lib/rest/MarketplaceBase.d.ts +13 -0
- package/lib/rest/MarketplaceBase.js +31 -0
- package/lib/rest/Messaging.d.ts +39 -0
- package/lib/rest/Messaging.js +57 -0
- package/lib/rest/MessagingBase.d.ts +16 -0
- package/lib/rest/MessagingBase.js +36 -0
- package/lib/rest/Monitor.d.ts +14 -0
- package/lib/rest/Monitor.js +22 -0
- package/lib/rest/MonitorBase.d.ts +13 -0
- package/lib/rest/MonitorBase.js +31 -0
- package/lib/rest/Notify.d.ts +14 -0
- package/lib/rest/Notify.js +22 -0
- package/lib/rest/NotifyBase.d.ts +13 -0
- package/lib/rest/NotifyBase.js +31 -0
- package/lib/rest/Numbers.d.ts +9 -0
- package/lib/rest/Numbers.js +15 -0
- package/lib/rest/NumbersBase.d.ts +19 -0
- package/lib/rest/NumbersBase.js +41 -0
- package/lib/rest/Oauth.d.ts +4 -0
- package/lib/rest/Oauth.js +8 -0
- package/lib/rest/OauthBase.d.ts +16 -0
- package/lib/rest/OauthBase.js +36 -0
- package/lib/rest/Preview.d.ts +39 -0
- package/lib/rest/Preview.js +57 -0
- package/lib/rest/PreviewBase.d.ts +19 -0
- package/lib/rest/PreviewBase.js +41 -0
- package/lib/rest/PreviewIam.d.ts +18 -0
- package/lib/rest/PreviewIam.js +29 -0
- package/lib/rest/PreviewIamBase.d.ts +13 -0
- package/lib/rest/PreviewIamBase.js +31 -0
- package/lib/rest/Pricing.d.ts +29 -0
- package/lib/rest/Pricing.js +43 -0
- package/lib/rest/PricingBase.d.ts +16 -0
- package/lib/rest/PricingBase.js +36 -0
- package/lib/rest/Proxy.d.ts +9 -0
- package/lib/rest/Proxy.js +15 -0
- package/lib/rest/ProxyBase.d.ts +13 -0
- package/lib/rest/ProxyBase.js +31 -0
- package/lib/rest/Routes.d.ts +19 -0
- package/lib/rest/Routes.js +29 -0
- package/lib/rest/RoutesBase.d.ts +13 -0
- package/lib/rest/RoutesBase.js +31 -0
- package/lib/rest/Serverless.d.ts +9 -0
- package/lib/rest/Serverless.js +15 -0
- package/lib/rest/ServerlessBase.d.ts +13 -0
- package/lib/rest/ServerlessBase.js +31 -0
- package/lib/rest/Studio.d.ts +14 -0
- package/lib/rest/Studio.js +22 -0
- package/lib/rest/StudioBase.d.ts +16 -0
- package/lib/rest/StudioBase.js +36 -0
- package/lib/rest/Supersim.d.ts +49 -0
- package/lib/rest/Supersim.js +71 -0
- package/lib/rest/SupersimBase.d.ts +13 -0
- package/lib/rest/SupersimBase.js +31 -0
- package/lib/rest/Sync.d.ts +9 -0
- package/lib/rest/Sync.js +15 -0
- package/lib/rest/SyncBase.d.ts +13 -0
- package/lib/rest/SyncBase.js +31 -0
- package/lib/rest/Taskrouter.d.ts +9 -0
- package/lib/rest/Taskrouter.js +15 -0
- package/lib/rest/TaskrouterBase.d.ts +13 -0
- package/lib/rest/TaskrouterBase.js +31 -0
- package/lib/rest/Trunking.d.ts +9 -0
- package/lib/rest/Trunking.js +15 -0
- package/lib/rest/TrunkingBase.d.ts +13 -0
- package/lib/rest/TrunkingBase.js +31 -0
- package/lib/rest/Trusthub.d.ts +39 -0
- package/lib/rest/Trusthub.js +57 -0
- package/lib/rest/TrusthubBase.d.ts +13 -0
- package/lib/rest/TrusthubBase.js +31 -0
- package/lib/rest/Twilio.d.ts +287 -0
- package/lib/rest/Twilio.js +335 -0
- package/lib/rest/Verify.d.ts +29 -0
- package/lib/rest/Verify.js +43 -0
- package/lib/rest/VerifyBase.d.ts +13 -0
- package/lib/rest/VerifyBase.js +31 -0
- package/lib/rest/Video.d.ts +34 -0
- package/lib/rest/Video.js +50 -0
- package/lib/rest/VideoBase.d.ts +13 -0
- package/lib/rest/VideoBase.js +31 -0
- package/lib/rest/Voice.d.ts +34 -0
- package/lib/rest/Voice.js +50 -0
- package/lib/rest/VoiceBase.d.ts +13 -0
- package/lib/rest/VoiceBase.js +31 -0
- package/lib/rest/Wireless.d.ts +24 -0
- package/lib/rest/Wireless.js +36 -0
- package/lib/rest/WirelessBase.d.ts +13 -0
- package/lib/rest/WirelessBase.js +31 -0
- package/lib/rest/accounts/V1.d.ts +45 -0
- package/lib/rest/accounts/V1.js +76 -0
- package/lib/rest/accounts/v1/authTokenPromotion.d.ts +104 -0
- package/lib/rest/accounts/v1/authTokenPromotion.js +112 -0
- package/lib/rest/accounts/v1/bulkConsents.d.ts +52 -0
- package/lib/rest/accounts/v1/bulkConsents.js +75 -0
- package/lib/rest/accounts/v1/bulkContacts.d.ts +52 -0
- package/lib/rest/accounts/v1/bulkContacts.js +75 -0
- package/lib/rest/accounts/v1/credential/aws.d.ts +295 -0
- package/lib/rest/accounts/v1/credential/aws.js +259 -0
- package/lib/rest/accounts/v1/credential/publicKey.d.ts +295 -0
- package/lib/rest/accounts/v1/credential/publicKey.js +260 -0
- package/lib/rest/accounts/v1/credential.d.ts +21 -0
- package/lib/rest/accounts/v1/credential.js +50 -0
- package/lib/rest/accounts/v1/messagingGeopermissions.d.ts +76 -0
- package/lib/rest/accounts/v1/messagingGeopermissions.js +98 -0
- package/lib/rest/accounts/v1/safelist.d.ts +106 -0
- package/lib/rest/accounts/v1/safelist.js +121 -0
- package/lib/rest/accounts/v1/secondaryAuthToken.d.ts +121 -0
- package/lib/rest/accounts/v1/secondaryAuthToken.js +133 -0
- package/lib/rest/api/V2010.d.ts +20 -0
- package/lib/rest/api/V2010.js +42 -0
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +295 -0
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +176 -0
- package/lib/rest/api/v2010/account/address.d.ts +419 -0
- package/lib/rest/api/v2010/account/address.js +348 -0
- package/lib/rest/api/v2010/account/application.d.ts +457 -0
- package/lib/rest/api/v2010/account/application.js +357 -0
- package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +234 -0
- package/lib/rest/api/v2010/account/authorizedConnectApp.js +198 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.d.ts +321 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.js +186 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.d.ts +321 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.js +186 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.d.ts +321 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.js +186 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.d.ts +321 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.js +186 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.d.ts +321 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.js +186 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.d.ts +321 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.js +186 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.d.ts +321 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.js +186 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry.d.ts +268 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry.js +283 -0
- package/lib/rest/api/v2010/account/balance.d.ts +57 -0
- package/lib/rest/api/v2010/account/balance.js +73 -0
- package/lib/rest/api/v2010/account/call/event.d.ts +149 -0
- package/lib/rest/api/v2010/account/call/event.js +128 -0
- package/lib/rest/api/v2010/account/call/notification.d.ts +310 -0
- package/lib/rest/api/v2010/account/call/notification.js +227 -0
- package/lib/rest/api/v2010/account/call/payment.d.ts +196 -0
- package/lib/rest/api/v2010/account/call/payment.js +200 -0
- package/lib/rest/api/v2010/account/call/recording.d.ts +391 -0
- package/lib/rest/api/v2010/account/call/recording.js +311 -0
- package/lib/rest/api/v2010/account/call/siprec.d.ts +564 -0
- package/lib/rest/api/v2010/account/call/siprec.js +564 -0
- package/lib/rest/api/v2010/account/call/stream.d.ts +556 -0
- package/lib/rest/api/v2010/account/call/stream.js +562 -0
- package/lib/rest/api/v2010/account/call/transcription.d.ts +183 -0
- package/lib/rest/api/v2010/account/call/transcription.js +186 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessage.d.ts +74 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessage.js +90 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.d.ts +129 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.js +153 -0
- package/lib/rest/api/v2010/account/call.d.ts +634 -0
- package/lib/rest/api/v2010/account/call.js +532 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +488 -0
- package/lib/rest/api/v2010/account/conference/participant.js +425 -0
- package/lib/rest/api/v2010/account/conference/recording.d.ts +351 -0
- package/lib/rest/api/v2010/account/conference/recording.js +274 -0
- package/lib/rest/api/v2010/account/conference.d.ts +367 -0
- package/lib/rest/api/v2010/account/conference.js +277 -0
- package/lib/rest/api/v2010/account/connectApp.d.ts +325 -0
- package/lib/rest/api/v2010/account/connectApp.js +264 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.d.ts +240 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.js +214 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +291 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.js +264 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +420 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +263 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +420 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +263 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +420 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +263 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +596 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.js +458 -0
- package/lib/rest/api/v2010/account/key.d.ts +265 -0
- package/lib/rest/api/v2010/account/key.js +236 -0
- package/lib/rest/api/v2010/account/message/feedback.d.ts +93 -0
- package/lib/rest/api/v2010/account/message/feedback.js +94 -0
- package/lib/rest/api/v2010/account/message/media.d.ts +261 -0
- package/lib/rest/api/v2010/account/message/media.js +226 -0
- package/lib/rest/api/v2010/account/message.d.ts +491 -0
- package/lib/rest/api/v2010/account/message.js +374 -0
- package/lib/rest/api/v2010/account/newKey.d.ts +85 -0
- package/lib/rest/api/v2010/account/newKey.js +89 -0
- package/lib/rest/api/v2010/account/newSigningKey.d.ts +85 -0
- package/lib/rest/api/v2010/account/newSigningKey.js +89 -0
- package/lib/rest/api/v2010/account/notification.d.ts +308 -0
- package/lib/rest/api/v2010/account/notification.js +221 -0
- package/lib/rest/api/v2010/account/outgoingCallerId.d.ts +295 -0
- package/lib/rest/api/v2010/account/outgoingCallerId.js +246 -0
- package/lib/rest/api/v2010/account/queue/member.d.ts +248 -0
- package/lib/rest/api/v2010/account/queue/member.js +225 -0
- package/lib/rest/api/v2010/account/queue.d.ts +323 -0
- package/lib/rest/api/v2010/account/queue.js +286 -0
- package/lib/rest/api/v2010/account/recording/addOnResult/payload/data.d.ts +88 -0
- package/lib/rest/api/v2010/account/recording/addOnResult/payload/data.js +130 -0
- package/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts +277 -0
- package/lib/rest/api/v2010/account/recording/addOnResult/payload.js +252 -0
- package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +270 -0
- package/lib/rest/api/v2010/account/recording/addOnResult.js +239 -0
- package/lib/rest/api/v2010/account/recording/transcription.d.ts +280 -0
- package/lib/rest/api/v2010/account/recording/transcription.js +232 -0
- package/lib/rest/api/v2010/account/recording.d.ts +392 -0
- package/lib/rest/api/v2010/account/recording.js +280 -0
- package/lib/rest/api/v2010/account/shortCode.d.ts +318 -0
- package/lib/rest/api/v2010/account/shortCode.js +245 -0
- package/lib/rest/api/v2010/account/signingKey.d.ts +253 -0
- package/lib/rest/api/v2010/account/signingKey.js +236 -0
- package/lib/rest/api/v2010/account/sip/credentialList/credential.d.ts +303 -0
- package/lib/rest/api/v2010/account/sip/credentialList/credential.js +274 -0
- package/lib/rest/api/v2010/account/sip/credentialList.d.ts +291 -0
- package/lib/rest/api/v2010/account/sip/credentialList.js +277 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.d.ts +247 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.js +239 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.d.ts +247 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.js +239 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls.d.ts +23 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls.js +59 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.d.ts +247 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.js +239 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations.d.ts +20 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations.js +49 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes.d.ts +23 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes.js +57 -0
- package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.d.ts +259 -0
- package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.js +243 -0
- package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.d.ts +259 -0
- package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.js +243 -0
- package/lib/rest/api/v2010/account/sip/domain.d.ts +455 -0
- package/lib/rest/api/v2010/account/sip/domain.js +379 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +321 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +289 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +291 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.js +277 -0
- package/lib/rest/api/v2010/account/sip.d.ts +25 -0
- package/lib/rest/api/v2010/account/sip.js +63 -0
- package/lib/rest/api/v2010/account/token.d.ts +103 -0
- package/lib/rest/api/v2010/account/token.js +96 -0
- package/lib/rest/api/v2010/account/transcription.d.ts +278 -0
- package/lib/rest/api/v2010/account/transcription.js +226 -0
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +250 -0
- package/lib/rest/api/v2010/account/usage/record/allTime.js +159 -0
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +250 -0
- package/lib/rest/api/v2010/account/usage/record/daily.js +159 -0
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +250 -0
- package/lib/rest/api/v2010/account/usage/record/lastMonth.js +159 -0
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +250 -0
- package/lib/rest/api/v2010/account/usage/record/monthly.js +159 -0
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +250 -0
- package/lib/rest/api/v2010/account/usage/record/thisMonth.js +159 -0
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +250 -0
- package/lib/rest/api/v2010/account/usage/record/today.js +159 -0
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +250 -0
- package/lib/rest/api/v2010/account/usage/record/yearly.js +159 -0
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +250 -0
- package/lib/rest/api/v2010/account/usage/record/yesterday.js +159 -0
- package/lib/rest/api/v2010/account/usage/record.d.ts +274 -0
- package/lib/rest/api/v2010/account/usage/record.js +231 -0
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +389 -0
- package/lib/rest/api/v2010/account/usage/trigger.js +310 -0
- package/lib/rest/api/v2010/account/usage.d.ts +22 -0
- package/lib/rest/api/v2010/account/usage.js +54 -0
- package/lib/rest/api/v2010/account/validationRequest.d.ts +87 -0
- package/lib/rest/api/v2010/account/validationRequest.js +97 -0
- package/lib/rest/api/v2010/account.d.ts +514 -0
- package/lib/rest/api/v2010/account.js +552 -0
- package/lib/rest/assistants/V1.d.ts +35 -0
- package/lib/rest/assistants/V1.js +60 -0
- package/lib/rest/assistants/v1/assistant/assistantsKnowledge.d.ts +265 -0
- package/lib/rest/assistants/v1/assistant/assistantsKnowledge.js +221 -0
- package/lib/rest/assistants/v1/assistant/assistantsTool.d.ts +265 -0
- package/lib/rest/assistants/v1/assistant/assistantsTool.js +221 -0
- package/lib/rest/assistants/v1/assistant/feedback.d.ts +231 -0
- package/lib/rest/assistants/v1/assistant/feedback.js +165 -0
- package/lib/rest/assistants/v1/assistant/message.d.ts +112 -0
- package/lib/rest/assistants/v1/assistant/message.js +93 -0
- package/lib/rest/assistants/v1/assistant.d.ts +510 -0
- package/lib/rest/assistants/v1/assistant.js +336 -0
- package/lib/rest/assistants/v1/knowledge/chunk.d.ts +166 -0
- package/lib/rest/assistants/v1/knowledge/chunk.js +131 -0
- package/lib/rest/assistants/v1/knowledge/knowledgeStatus.d.ts +100 -0
- package/lib/rest/assistants/v1/knowledge/knowledgeStatus.js +118 -0
- package/lib/rest/assistants/v1/knowledge.d.ts +415 -0
- package/lib/rest/assistants/v1/knowledge.js +302 -0
- package/lib/rest/assistants/v1/policy.d.ts +201 -0
- package/lib/rest/assistants/v1/policy.js +139 -0
- package/lib/rest/assistants/v1/session/message.d.ts +196 -0
- package/lib/rest/assistants/v1/session/message.js +141 -0
- package/lib/rest/assistants/v1/session.d.ts +230 -0
- package/lib/rest/assistants/v1/session.js +198 -0
- package/lib/rest/assistants/v1/tool.d.ts +447 -0
- package/lib/rest/assistants/v1/tool.js +281 -0
- package/lib/rest/bulkexports/V1.d.ts +20 -0
- package/lib/rest/bulkexports/V1.js +43 -0
- package/lib/rest/bulkexports/v1/export/day.d.ts +215 -0
- package/lib/rest/bulkexports/v1/export/day.js +191 -0
- package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +228 -0
- package/lib/rest/bulkexports/v1/export/exportCustomJob.js +180 -0
- package/lib/rest/bulkexports/v1/export/job.d.ts +161 -0
- package/lib/rest/bulkexports/v1/export/job.js +151 -0
- package/lib/rest/bulkexports/v1/export.d.ts +112 -0
- package/lib/rest/bulkexports/v1/export.js +147 -0
- package/lib/rest/bulkexports/v1/exportConfiguration.d.ts +151 -0
- package/lib/rest/bulkexports/v1/exportConfiguration.js +149 -0
- package/lib/rest/chat/V1.d.ts +20 -0
- package/lib/rest/chat/V1.js +42 -0
- package/lib/rest/chat/V2.d.ts +20 -0
- package/lib/rest/chat/V2.js +42 -0
- package/lib/rest/chat/V3.d.ts +15 -0
- package/lib/rest/chat/V3.js +36 -0
- package/lib/rest/chat/v1/credential.d.ts +326 -0
- package/lib/rest/chat/v1/credential.js +282 -0
- package/lib/rest/chat/v1/service/channel/invite.d.ts +285 -0
- package/lib/rest/chat/v1/service/channel/invite.js +252 -0
- package/lib/rest/chat/v1/service/channel/member.d.ts +335 -0
- package/lib/rest/chat/v1/service/channel/member.js +284 -0
- package/lib/rest/chat/v1/service/channel/message.d.ts +350 -0
- package/lib/rest/chat/v1/service/channel/message.js +290 -0
- package/lib/rest/chat/v1/service/channel.d.ts +390 -0
- package/lib/rest/chat/v1/service/channel.js +331 -0
- package/lib/rest/chat/v1/service/role.d.ts +300 -0
- package/lib/rest/chat/v1/service/role.js +275 -0
- package/lib/rest/chat/v1/service/user/userChannel.d.ts +186 -0
- package/lib/rest/chat/v1/service/user/userChannel.js +140 -0
- package/lib/rest/chat/v1/service/user.d.ts +359 -0
- package/lib/rest/chat/v1/service/user.js +301 -0
- package/lib/rest/chat/v1/service.d.ts +511 -0
- package/lib/rest/chat/v1/service.js +462 -0
- package/lib/rest/chat/v2/credential.d.ts +326 -0
- package/lib/rest/chat/v2/credential.js +282 -0
- package/lib/rest/chat/v2/service/binding.d.ts +284 -0
- package/lib/rest/chat/v2/service/binding.js +228 -0
- package/lib/rest/chat/v2/service/channel/invite.d.ts +285 -0
- package/lib/rest/chat/v2/service/channel/invite.js +252 -0
- package/lib/rest/chat/v2/service/channel/member.d.ts +389 -0
- package/lib/rest/chat/v2/service/channel/member.js +312 -0
- package/lib/rest/chat/v2/service/channel/message.d.ts +422 -0
- package/lib/rest/chat/v2/service/channel/message.js +322 -0
- package/lib/rest/chat/v2/service/channel/webhook.d.ts +340 -0
- package/lib/rest/chat/v2/service/channel/webhook.js +296 -0
- package/lib/rest/chat/v2/service/channel.d.ts +440 -0
- package/lib/rest/chat/v2/service/channel.js +364 -0
- package/lib/rest/chat/v2/service/role.d.ts +300 -0
- package/lib/rest/chat/v2/service/role.js +275 -0
- package/lib/rest/chat/v2/service/user/userBinding.d.ts +280 -0
- package/lib/rest/chat/v2/service/user/userBinding.js +232 -0
- package/lib/rest/chat/v2/service/user/userChannel.d.ts +341 -0
- package/lib/rest/chat/v2/service/user/userChannel.js +268 -0
- package/lib/rest/chat/v2/service/user.d.ts +372 -0
- package/lib/rest/chat/v2/service/user.js +318 -0
- package/lib/rest/chat/v2/service.d.ts +485 -0
- package/lib/rest/chat/v2/service.js +409 -0
- package/lib/rest/chat/v3/channel.d.ts +191 -0
- package/lib/rest/chat/v3/channel.js +150 -0
- package/lib/rest/content/V1.d.ts +25 -0
- package/lib/rest/content/V1.js +50 -0
- package/lib/rest/content/V2.d.ts +20 -0
- package/lib/rest/content/V2.js +43 -0
- package/lib/rest/content/v1/content/approvalCreate.d.ts +79 -0
- package/lib/rest/content/v1/content/approvalCreate.js +94 -0
- package/lib/rest/content/v1/content/approvalFetch.d.ts +100 -0
- package/lib/rest/content/v1/content/approvalFetch.js +118 -0
- package/lib/rest/content/v1/content.d.ts +568 -0
- package/lib/rest/content/v1/content.js +418 -0
- package/lib/rest/content/v1/contentAndApprovals.d.ts +189 -0
- package/lib/rest/content/v1/contentAndApprovals.js +135 -0
- package/lib/rest/content/v1/legacyContent.d.ts +201 -0
- package/lib/rest/content/v1/legacyContent.js +139 -0
- package/lib/rest/content/v2/content.d.ts +249 -0
- package/lib/rest/content/v2/content.js +155 -0
- package/lib/rest/content/v2/contentAndApprovals.d.ts +243 -0
- package/lib/rest/content/v2/contentAndApprovals.js +153 -0
- package/lib/rest/conversations/V1.d.ts +55 -0
- package/lib/rest/conversations/V1.js +90 -0
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +365 -0
- package/lib/rest/conversations/v1/addressConfiguration.js +310 -0
- package/lib/rest/conversations/v1/configuration/webhook.d.ts +168 -0
- package/lib/rest/conversations/v1/configuration/webhook.js +151 -0
- package/lib/rest/conversations/v1/configuration.d.ts +167 -0
- package/lib/rest/conversations/v1/configuration.js +159 -0
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +251 -0
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.js +207 -0
- package/lib/rest/conversations/v1/conversation/message.d.ts +426 -0
- package/lib/rest/conversations/v1/conversation/message.js +331 -0
- package/lib/rest/conversations/v1/conversation/participant.d.ts +397 -0
- package/lib/rest/conversations/v1/conversation/participant.js +318 -0
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +330 -0
- package/lib/rest/conversations/v1/conversation/webhook.js +286 -0
- package/lib/rest/conversations/v1/conversation.d.ts +457 -0
- package/lib/rest/conversations/v1/conversation.js +365 -0
- package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +161 -0
- package/lib/rest/conversations/v1/conversationWithParticipants.js +127 -0
- package/lib/rest/conversations/v1/credential.d.ts +328 -0
- package/lib/rest/conversations/v1/credential.js +284 -0
- package/lib/rest/conversations/v1/participantConversation.d.ts +244 -0
- package/lib/rest/conversations/v1/participantConversation.js +153 -0
- package/lib/rest/conversations/v1/role.d.ts +298 -0
- package/lib/rest/conversations/v1/role.js +268 -0
- package/lib/rest/conversations/v1/service/binding.d.ts +278 -0
- package/lib/rest/conversations/v1/service/binding.js +226 -0
- package/lib/rest/conversations/v1/service/configuration/notification.d.ts +184 -0
- package/lib/rest/conversations/v1/service/configuration/notification.js +180 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +167 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.js +158 -0
- package/lib/rest/conversations/v1/service/configuration.d.ts +172 -0
- package/lib/rest/conversations/v1/service/configuration.js +178 -0
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +259 -0
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.js +220 -0
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +434 -0
- package/lib/rest/conversations/v1/service/conversation/message.js +339 -0
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +405 -0
- package/lib/rest/conversations/v1/service/conversation/participant.js +326 -0
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +338 -0
- package/lib/rest/conversations/v1/service/conversation/webhook.js +294 -0
- package/lib/rest/conversations/v1/service/conversation.d.ts +459 -0
- package/lib/rest/conversations/v1/service/conversation.js +373 -0
- package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +162 -0
- package/lib/rest/conversations/v1/service/conversationWithParticipants.js +131 -0
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +245 -0
- package/lib/rest/conversations/v1/service/participantConversation.js +157 -0
- package/lib/rest/conversations/v1/service/role.d.ts +300 -0
- package/lib/rest/conversations/v1/service/role.js +275 -0
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +354 -0
- package/lib/rest/conversations/v1/service/user/userConversation.js +278 -0
- package/lib/rest/conversations/v1/service/user.d.ts +380 -0
- package/lib/rest/conversations/v1/service/user.js +307 -0
- package/lib/rest/conversations/v1/service.d.ts +311 -0
- package/lib/rest/conversations/v1/service.js +319 -0
- package/lib/rest/conversations/v1/user/userConversation.d.ts +352 -0
- package/lib/rest/conversations/v1/user/userConversation.js +271 -0
- package/lib/rest/conversations/v1/user.d.ts +378 -0
- package/lib/rest/conversations/v1/user.js +300 -0
- package/lib/rest/events/V1.d.ts +30 -0
- package/lib/rest/events/V1.js +54 -0
- package/lib/rest/events/v1/eventType.d.ts +237 -0
- package/lib/rest/events/v1/eventType.js +193 -0
- package/lib/rest/events/v1/schema/schemaVersion.d.ts +209 -0
- package/lib/rest/events/v1/schema/schemaVersion.js +189 -0
- package/lib/rest/events/v1/schema.d.ts +113 -0
- package/lib/rest/events/v1/schema.js +129 -0
- package/lib/rest/events/v1/sink/sinkTest.d.ts +45 -0
- package/lib/rest/events/v1/sink/sinkTest.js +69 -0
- package/lib/rest/events/v1/sink/sinkValidate.d.ts +53 -0
- package/lib/rest/events/v1/sink/sinkValidate.js +79 -0
- package/lib/rest/events/v1/sink.d.ts +327 -0
- package/lib/rest/events/v1/sink.js +297 -0
- package/lib/rest/events/v1/subscription/subscribedEvent.d.ts +289 -0
- package/lib/rest/events/v1/subscription/subscribedEvent.js +262 -0
- package/lib/rest/events/v1/subscription.d.ts +321 -0
- package/lib/rest/events/v1/subscription.js +283 -0
- package/lib/rest/flexApi/V1.d.ts +125 -0
- package/lib/rest/flexApi/V1.js +191 -0
- package/lib/rest/flexApi/V2.d.ts +20 -0
- package/lib/rest/flexApi/V2.js +42 -0
- package/lib/rest/flexApi/v1/assessments.d.ts +321 -0
- package/lib/rest/flexApi/v1/assessments.js +280 -0
- package/lib/rest/flexApi/v1/channel.d.ts +279 -0
- package/lib/rest/flexApi/v1/channel.js +258 -0
- package/lib/rest/flexApi/v1/configuration.d.ts +438 -0
- package/lib/rest/flexApi/v1/configuration.js +233 -0
- package/lib/rest/flexApi/v1/flexFlow.d.ts +411 -0
- package/lib/rest/flexApi/v1/flexFlow.js +344 -0
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +250 -0
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.js +192 -0
- package/lib/rest/flexApi/v1/insightsConversations.d.ts +171 -0
- package/lib/rest/flexApi/v1/insightsConversations.js +129 -0
- package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +356 -0
- package/lib/rest/flexApi/v1/insightsQuestionnaires.js +286 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.d.ts +278 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.js +237 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +336 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +273 -0
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +276 -0
- package/lib/rest/flexApi/v1/insightsSegments.js +167 -0
- package/lib/rest/flexApi/v1/insightsSession.d.ts +129 -0
- package/lib/rest/flexApi/v1/insightsSession.js +116 -0
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +81 -0
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.js +84 -0
- package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +66 -0
- package/lib/rest/flexApi/v1/insightsSettingsComment.js +80 -0
- package/lib/rest/flexApi/v1/insightsUserRoles.d.ts +108 -0
- package/lib/rest/flexApi/v1/insightsUserRoles.js +110 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +180 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +156 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +248 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js +229 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +237 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.js +203 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +279 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel.js +262 -0
- package/lib/rest/flexApi/v1/interaction.d.ts +177 -0
- package/lib/rest/flexApi/v1/interaction.js +190 -0
- package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +304 -0
- package/lib/rest/flexApi/v1/plugin/pluginVersions.js +243 -0
- package/lib/rest/flexApi/v1/plugin.d.ts +344 -0
- package/lib/rest/flexApi/v1/plugin.js +271 -0
- package/lib/rest/flexApi/v1/pluginArchive.d.ts +154 -0
- package/lib/rest/flexApi/v1/pluginArchive.js +129 -0
- package/lib/rest/flexApi/v1/pluginConfiguration/configuredPlugin.d.ts +309 -0
- package/lib/rest/flexApi/v1/pluginConfiguration/configuredPlugin.js +220 -0
- package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +286 -0
- package/lib/rest/flexApi/v1/pluginConfiguration.js +236 -0
- package/lib/rest/flexApi/v1/pluginConfigurationArchive.d.ts +142 -0
- package/lib/rest/flexApi/v1/pluginConfigurationArchive.js +125 -0
- package/lib/rest/flexApi/v1/pluginRelease.d.ts +259 -0
- package/lib/rest/flexApi/v1/pluginRelease.js +214 -0
- package/lib/rest/flexApi/v1/pluginVersionArchive.d.ts +161 -0
- package/lib/rest/flexApi/v1/pluginVersionArchive.js +137 -0
- package/lib/rest/flexApi/v1/provisioningStatus.d.ts +87 -0
- package/lib/rest/flexApi/v1/provisioningStatus.js +106 -0
- package/lib/rest/flexApi/v1/webChannel.d.ts +304 -0
- package/lib/rest/flexApi/v1/webChannel.js +276 -0
- package/lib/rest/flexApi/v2/flexUser.d.ts +209 -0
- package/lib/rest/flexApi/v2/flexUser.js +175 -0
- package/lib/rest/flexApi/v2/webChannels.d.ts +68 -0
- package/lib/rest/flexApi/v2/webChannels.js +87 -0
- package/lib/rest/frontlineApi/V1.d.ts +15 -0
- package/lib/rest/frontlineApi/V1.js +36 -0
- package/lib/rest/frontlineApi/v1/user.d.ts +166 -0
- package/lib/rest/frontlineApi/v1/user.js +154 -0
- package/lib/rest/iam/V1.d.ts +35 -0
- package/lib/rest/iam/V1.js +60 -0
- package/lib/rest/iam/v1/apiKey.d.ts +166 -0
- package/lib/rest/iam/v1/apiKey.js +167 -0
- package/lib/rest/iam/v1/getApiKeys.d.ts +165 -0
- package/lib/rest/iam/v1/getApiKeys.js +127 -0
- package/lib/rest/iam/v1/newApiKey.d.ts +89 -0
- package/lib/rest/iam/v1/newApiKey.js +91 -0
- package/lib/rest/iam/v1/oAuthApp.d.ts +204 -0
- package/lib/rest/iam/v1/oAuthApp.js +189 -0
- package/lib/rest/iam/v1/token.d.ts +87 -0
- package/lib/rest/iam/v1/token.js +99 -0
- package/lib/rest/insights/V1.d.ts +35 -0
- package/lib/rest/insights/V1.js +61 -0
- package/lib/rest/insights/v1/call/annotation.d.ts +183 -0
- package/lib/rest/insights/v1/call/annotation.js +170 -0
- package/lib/rest/insights/v1/call/callSummary.d.ts +231 -0
- package/lib/rest/insights/v1/call/callSummary.js +160 -0
- package/lib/rest/insights/v1/call/event.d.ts +204 -0
- package/lib/rest/insights/v1/call/event.js +145 -0
- package/lib/rest/insights/v1/call/metric.d.ts +198 -0
- package/lib/rest/insights/v1/call/metric.js +143 -0
- package/lib/rest/insights/v1/call.d.ts +116 -0
- package/lib/rest/insights/v1/call.js +162 -0
- package/lib/rest/insights/v1/callSummaries.d.ts +480 -0
- package/lib/rest/insights/v1/callSummaries.js +236 -0
- package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +374 -0
- package/lib/rest/insights/v1/conference/conferenceParticipant.js +248 -0
- package/lib/rest/insights/v1/conference.d.ts +376 -0
- package/lib/rest/insights/v1/conference.js +252 -0
- package/lib/rest/insights/v1/room/participant.d.ts +279 -0
- package/lib/rest/insights/v1/room/participant.js +216 -0
- package/lib/rest/insights/v1/room.d.ts +361 -0
- package/lib/rest/insights/v1/room.js +248 -0
- package/lib/rest/insights/v1/setting.d.ts +169 -0
- package/lib/rest/insights/v1/setting.js +145 -0
- package/lib/rest/intelligence/V2.d.ts +50 -0
- package/lib/rest/intelligence/V2.js +82 -0
- package/lib/rest/intelligence/v2/customOperator.d.ts +332 -0
- package/lib/rest/intelligence/v2/customOperator.js +287 -0
- package/lib/rest/intelligence/v2/operator.d.ts +265 -0
- package/lib/rest/intelligence/v2/operator.js +201 -0
- package/lib/rest/intelligence/v2/operatorAttachment.d.ts +111 -0
- package/lib/rest/intelligence/v2/operatorAttachment.js +140 -0
- package/lib/rest/intelligence/v2/operatorAttachments.d.ts +93 -0
- package/lib/rest/intelligence/v2/operatorAttachments.js +113 -0
- package/lib/rest/intelligence/v2/operatorType.d.ts +267 -0
- package/lib/rest/intelligence/v2/operatorType.js +201 -0
- package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +265 -0
- package/lib/rest/intelligence/v2/prebuiltOperator.js +201 -0
- package/lib/rest/intelligence/v2/service.d.ts +394 -0
- package/lib/rest/intelligence/v2/service.js +315 -0
- package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.d.ts +113 -0
- package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.js +120 -0
- package/lib/rest/intelligence/v2/transcript/encryptedSentences.d.ts +113 -0
- package/lib/rest/intelligence/v2/transcript/encryptedSentences.js +120 -0
- package/lib/rest/intelligence/v2/transcript/media.d.ts +131 -0
- package/lib/rest/intelligence/v2/transcript/media.js +123 -0
- package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +307 -0
- package/lib/rest/intelligence/v2/transcript/operatorResult.js +220 -0
- package/lib/rest/intelligence/v2/transcript/sentence.d.ts +193 -0
- package/lib/rest/intelligence/v2/transcript/sentence.js +141 -0
- package/lib/rest/intelligence/v2/transcript.d.ts +398 -0
- package/lib/rest/intelligence/v2/transcript.js +336 -0
- package/lib/rest/ipMessaging/V1.d.ts +20 -0
- package/lib/rest/ipMessaging/V1.js +42 -0
- package/lib/rest/ipMessaging/V2.d.ts +20 -0
- package/lib/rest/ipMessaging/V2.js +42 -0
- package/lib/rest/ipMessaging/v1/credential.d.ts +302 -0
- package/lib/rest/ipMessaging/v1/credential.js +282 -0
- package/lib/rest/ipMessaging/v1/service/channel/invite.d.ts +255 -0
- package/lib/rest/ipMessaging/v1/service/channel/invite.js +252 -0
- package/lib/rest/ipMessaging/v1/service/channel/member.d.ts +302 -0
- package/lib/rest/ipMessaging/v1/service/channel/member.js +284 -0
- package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +311 -0
- package/lib/rest/ipMessaging/v1/service/channel/message.js +290 -0
- package/lib/rest/ipMessaging/v1/service/channel.d.ts +348 -0
- package/lib/rest/ipMessaging/v1/service/channel.js +331 -0
- package/lib/rest/ipMessaging/v1/service/role.d.ts +273 -0
- package/lib/rest/ipMessaging/v1/service/role.js +275 -0
- package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +162 -0
- package/lib/rest/ipMessaging/v1/service/user/userChannel.js +140 -0
- package/lib/rest/ipMessaging/v1/service/user.d.ts +317 -0
- package/lib/rest/ipMessaging/v1/service/user.js +301 -0
- package/lib/rest/ipMessaging/v1/service.d.ts +448 -0
- package/lib/rest/ipMessaging/v1/service.js +462 -0
- package/lib/rest/ipMessaging/v2/credential.d.ts +302 -0
- package/lib/rest/ipMessaging/v2/credential.js +282 -0
- package/lib/rest/ipMessaging/v2/service/binding.d.ts +248 -0
- package/lib/rest/ipMessaging/v2/service/binding.js +228 -0
- package/lib/rest/ipMessaging/v2/service/channel/invite.d.ts +255 -0
- package/lib/rest/ipMessaging/v2/service/channel/invite.js +252 -0
- package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +353 -0
- package/lib/rest/ipMessaging/v2/service/channel/member.js +312 -0
- package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +374 -0
- package/lib/rest/ipMessaging/v2/service/channel/message.js +322 -0
- package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +310 -0
- package/lib/rest/ipMessaging/v2/service/channel/webhook.js +296 -0
- package/lib/rest/ipMessaging/v2/service/channel.d.ts +398 -0
- package/lib/rest/ipMessaging/v2/service/channel.js +364 -0
- package/lib/rest/ipMessaging/v2/service/role.d.ts +273 -0
- package/lib/rest/ipMessaging/v2/service/role.js +275 -0
- package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +244 -0
- package/lib/rest/ipMessaging/v2/service/user/userBinding.js +232 -0
- package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +282 -0
- package/lib/rest/ipMessaging/v2/service/user/userChannel.js +264 -0
- package/lib/rest/ipMessaging/v2/service/user.d.ts +330 -0
- package/lib/rest/ipMessaging/v2/service/user.js +318 -0
- package/lib/rest/ipMessaging/v2/service.d.ts +416 -0
- package/lib/rest/ipMessaging/v2/service.js +409 -0
- package/lib/rest/knowledge/V1.d.ts +15 -0
- package/lib/rest/knowledge/V1.js +36 -0
- package/lib/rest/knowledge/v1/knowledge/chunk.d.ts +166 -0
- package/lib/rest/knowledge/v1/knowledge/chunk.js +131 -0
- package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.d.ts +100 -0
- package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.js +118 -0
- package/lib/rest/knowledge/v1/knowledge.d.ts +411 -0
- package/lib/rest/knowledge/v1/knowledge.js +302 -0
- package/lib/rest/lookups/V1.d.ts +15 -0
- package/lib/rest/lookups/V1.js +36 -0
- package/lib/rest/lookups/V2.d.ts +35 -0
- package/lib/rest/lookups/V2.js +61 -0
- package/lib/rest/lookups/v1/phoneNumber.d.ts +148 -0
- package/lib/rest/lookups/v1/phoneNumber.js +134 -0
- package/lib/rest/lookups/v2/bucket.d.ts +204 -0
- package/lib/rest/lookups/v2/bucket.js +187 -0
- package/lib/rest/lookups/v2/lookupOverride.d.ts +278 -0
- package/lib/rest/lookups/v2/lookupOverride.js +225 -0
- package/lib/rest/lookups/v2/phoneNumber.d.ts +269 -0
- package/lib/rest/lookups/v2/phoneNumber.js +200 -0
- package/lib/rest/lookups/v2/query.d.ts +176 -0
- package/lib/rest/lookups/v2/query.js +123 -0
- package/lib/rest/lookups/v2/rateLimit.d.ts +82 -0
- package/lib/rest/lookups/v2/rateLimit.js +82 -0
- package/lib/rest/marketplace/V1.d.ts +35 -0
- package/lib/rest/marketplace/V1.js +64 -0
- package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.d.ts +218 -0
- package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.js +191 -0
- package/lib/rest/marketplace/v1/availableAddOn.d.ts +230 -0
- package/lib/rest/marketplace/v1/availableAddOn.js +200 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.d.ts +250 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.js +219 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +78 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.js +86 -0
- package/lib/rest/marketplace/v1/installedAddOn.d.ts +339 -0
- package/lib/rest/marketplace/v1/installedAddOn.js +302 -0
- package/lib/rest/marketplace/v1/moduleData.d.ts +124 -0
- package/lib/rest/marketplace/v1/moduleData.js +109 -0
- package/lib/rest/marketplace/v1/moduleDataManagement.d.ts +189 -0
- package/lib/rest/marketplace/v1/moduleDataManagement.js +167 -0
- package/lib/rest/marketplace/v1/referralConversion.d.ts +53 -0
- package/lib/rest/marketplace/v1/referralConversion.js +77 -0
- package/lib/rest/messaging/V1.d.ts +75 -0
- package/lib/rest/messaging/V1.js +120 -0
- package/lib/rest/messaging/V2.d.ts +25 -0
- package/lib/rest/messaging/V2.js +50 -0
- package/lib/rest/messaging/v1/brandRegistration/brandRegistrationOtp.d.ts +51 -0
- package/lib/rest/messaging/v1/brandRegistration/brandRegistrationOtp.js +71 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +261 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +227 -0
- package/lib/rest/messaging/v1/brandRegistration.d.ts +366 -0
- package/lib/rest/messaging/v1/brandRegistration.js +298 -0
- package/lib/rest/messaging/v1/deactivations.d.ts +105 -0
- package/lib/rest/messaging/v1/deactivations.js +108 -0
- package/lib/rest/messaging/v1/domainCerts.d.ts +163 -0
- package/lib/rest/messaging/v1/domainCerts.js +170 -0
- package/lib/rest/messaging/v1/domainConfig.d.ts +174 -0
- package/lib/rest/messaging/v1/domainConfig.js +159 -0
- package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +126 -0
- package/lib/rest/messaging/v1/domainConfigMessagingService.js +127 -0
- package/lib/rest/messaging/v1/domainValidateDn.d.ts +90 -0
- package/lib/rest/messaging/v1/domainValidateDn.js +115 -0
- package/lib/rest/messaging/v1/externalCampaign.d.ts +80 -0
- package/lib/rest/messaging/v1/externalCampaign.js +90 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingService.d.ts +108 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingService.js +140 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingServiceDomainAssociation.d.ts +90 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingServiceDomainAssociation.js +115 -0
- package/lib/rest/messaging/v1/requestManagedCert.d.ts +126 -0
- package/lib/rest/messaging/v1/requestManagedCert.js +125 -0
- package/lib/rest/messaging/v1/service/alphaSender.d.ts +263 -0
- package/lib/rest/messaging/v1/service/alphaSender.js +238 -0
- package/lib/rest/messaging/v1/service/channelSender.d.ts +269 -0
- package/lib/rest/messaging/v1/service/channelSender.js +240 -0
- package/lib/rest/messaging/v1/service/destinationAlphaSender.d.ts +277 -0
- package/lib/rest/messaging/v1/service/destinationAlphaSender.js +244 -0
- package/lib/rest/messaging/v1/service/phoneNumber.d.ts +269 -0
- package/lib/rest/messaging/v1/service/phoneNumber.js +241 -0
- package/lib/rest/messaging/v1/service/shortCode.d.ts +269 -0
- package/lib/rest/messaging/v1/service/shortCode.js +241 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +451 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.js +379 -0
- package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +61 -0
- package/lib/rest/messaging/v1/service/usAppToPersonUsecase.js +80 -0
- package/lib/rest/messaging/v1/service.d.ts +510 -0
- package/lib/rest/messaging/v1/service.js +442 -0
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +740 -0
- package/lib/rest/messaging/v1/tollfreeVerification.js +537 -0
- package/lib/rest/messaging/v1/usecase.d.ts +44 -0
- package/lib/rest/messaging/v1/usecase.js +65 -0
- package/lib/rest/messaging/v2/channelsSender.d.ts +564 -0
- package/lib/rest/messaging/v2/channelsSender.js +324 -0
- package/lib/rest/messaging/v2/domainCerts.d.ts +132 -0
- package/lib/rest/messaging/v2/domainCerts.js +127 -0
- package/lib/rest/messaging/v2/typingIndicator.d.ts +54 -0
- package/lib/rest/messaging/v2/typingIndicator.js +79 -0
- package/lib/rest/monitor/V1.d.ts +20 -0
- package/lib/rest/monitor/V1.js +42 -0
- package/lib/rest/monitor/v1/alert.d.ts +312 -0
- package/lib/rest/monitor/v1/alert.js +216 -0
- package/lib/rest/monitor/v1/event.d.ts +300 -0
- package/lib/rest/monitor/v1/event.js +212 -0
- package/lib/rest/notify/V1.d.ts +20 -0
- package/lib/rest/notify/V1.js +42 -0
- package/lib/rest/notify/v1/credential.d.ts +326 -0
- package/lib/rest/notify/v1/credential.js +282 -0
- package/lib/rest/notify/v1/service/binding.d.ts +339 -0
- package/lib/rest/notify/v1/service/binding.js +275 -0
- package/lib/rest/notify/v1/service/notification.d.ts +210 -0
- package/lib/rest/notify/v1/service/notification.js +153 -0
- package/lib/rest/notify/v1/service.d.ts +457 -0
- package/lib/rest/notify/v1/service.js +377 -0
- package/lib/rest/numbers/V1.d.ts +60 -0
- package/lib/rest/numbers/V1.js +102 -0
- package/lib/rest/numbers/V2.d.ts +40 -0
- package/lib/rest/numbers/V2.js +70 -0
- package/lib/rest/numbers/V3.d.ts +15 -0
- package/lib/rest/numbers/V3.js +37 -0
- package/lib/rest/numbers/v1/bulkEligibility.d.ts +136 -0
- package/lib/rest/numbers/v1/bulkEligibility.js +146 -0
- package/lib/rest/numbers/v1/eligibility.d.ts +61 -0
- package/lib/rest/numbers/v1/eligibility.js +78 -0
- package/lib/rest/numbers/v1/portingAllPortIn.d.ts +201 -0
- package/lib/rest/numbers/v1/portingAllPortIn.js +139 -0
- package/lib/rest/numbers/v1/portingPortIn.d.ts +366 -0
- package/lib/rest/numbers/v1/portingPortIn.js +202 -0
- package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +201 -0
- package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +170 -0
- package/lib/rest/numbers/v1/portingPortability.d.ts +157 -0
- package/lib/rest/numbers/v1/portingPortability.js +131 -0
- package/lib/rest/numbers/v1/portingWebhookConfiguration.d.ts +79 -0
- package/lib/rest/numbers/v1/portingWebhookConfiguration.js +84 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.d.ts +53 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.js +70 -0
- package/lib/rest/numbers/v1/signingRequestConfiguration.d.ts +217 -0
- package/lib/rest/numbers/v1/signingRequestConfiguration.js +162 -0
- package/lib/rest/numbers/v1/webhook.d.ts +74 -0
- package/lib/rest/numbers/v1/webhook.js +75 -0
- package/lib/rest/numbers/v2/application.d.ts +257 -0
- package/lib/rest/numbers/v2/application.js +218 -0
- package/lib/rest/numbers/v2/authorizationDocument/dependentHostedNumberOrder.d.ts +267 -0
- package/lib/rest/numbers/v2/authorizationDocument/dependentHostedNumberOrder.js +165 -0
- package/lib/rest/numbers/v2/authorizationDocument.d.ts +292 -0
- package/lib/rest/numbers/v2/authorizationDocument.js +269 -0
- package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +180 -0
- package/lib/rest/numbers/v2/bulkHostedNumberOrder.js +154 -0
- package/lib/rest/numbers/v2/bundleClone.d.ts +155 -0
- package/lib/rest/numbers/v2/bundleClone.js +137 -0
- package/lib/rest/numbers/v2/hostedNumberOrder.d.ts +453 -0
- package/lib/rest/numbers/v2/hostedNumberOrder.js +343 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +221 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.js +165 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +233 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.js +207 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.d.ts +251 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.js +234 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +108 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.js +98 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +449 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +364 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +310 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.js +269 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +210 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.js +183 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +272 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.js +199 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +334 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.js +277 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +210 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.js +183 -0
- package/lib/rest/numbers/v2/regulatoryCompliance.d.ts +37 -0
- package/lib/rest/numbers/v2/regulatoryCompliance.js +86 -0
- package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +210 -0
- package/lib/rest/numbers/v3/hostedNumberOrder.js +154 -0
- package/lib/rest/oauth/V1.d.ts +20 -0
- package/lib/rest/oauth/V1.js +42 -0
- package/lib/rest/oauth/V2.d.ts +15 -0
- package/lib/rest/oauth/V2.js +36 -0
- package/lib/rest/oauth/v1/authorize.d.ts +68 -0
- package/lib/rest/oauth/v1/authorize.js +84 -0
- package/lib/rest/oauth/v1/token.d.ts +87 -0
- package/lib/rest/oauth/v1/token.js +99 -0
- package/lib/rest/oauth/v2/token.d.ts +97 -0
- package/lib/rest/oauth/v2/token.js +101 -0
- package/lib/rest/preview/HostedNumbers.d.ts +20 -0
- package/lib/rest/preview/HostedNumbers.js +44 -0
- package/lib/rest/preview/Marketplace.d.ts +20 -0
- package/lib/rest/preview/Marketplace.js +44 -0
- package/lib/rest/preview/Wireless.d.ts +25 -0
- package/lib/rest/preview/Wireless.js +48 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +298 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.js +175 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +329 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument.js +291 -0
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +473 -0
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.js +353 -0
- package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.d.ts +218 -0
- package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.js +191 -0
- package/lib/rest/preview/marketplace/availableAddOn.d.ts +230 -0
- package/lib/rest/preview/marketplace/availableAddOn.js +200 -0
- package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.d.ts +250 -0
- package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.js +219 -0
- package/lib/rest/preview/marketplace/installedAddOn.d.ts +331 -0
- package/lib/rest/preview/marketplace/installedAddOn.js +289 -0
- package/lib/rest/preview/wireless/command.d.ts +265 -0
- package/lib/rest/preview/wireless/command.js +237 -0
- package/lib/rest/preview/wireless/ratePlan.d.ts +325 -0
- package/lib/rest/preview/wireless/ratePlan.js +294 -0
- package/lib/rest/preview/wireless/sim/usage.d.ts +130 -0
- package/lib/rest/preview/wireless/sim/usage.js +134 -0
- package/lib/rest/preview/wireless/sim.d.ts +356 -0
- package/lib/rest/preview/wireless/sim.js +296 -0
- package/lib/rest/previewIam/V1.d.ts +20 -0
- package/lib/rest/previewIam/V1.js +42 -0
- package/lib/rest/previewIam/Versionless.d.ts +15 -0
- package/lib/rest/previewIam/Versionless.js +36 -0
- package/lib/rest/previewIam/v1/authorize.d.ts +68 -0
- package/lib/rest/previewIam/v1/authorize.js +84 -0
- package/lib/rest/previewIam/v1/token.d.ts +87 -0
- package/lib/rest/previewIam/v1/token.js +99 -0
- package/lib/rest/previewIam/versionless/organization/account.d.ts +215 -0
- package/lib/rest/previewIam/versionless/organization/account.js +195 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +273 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.js +221 -0
- package/lib/rest/previewIam/versionless/organization/user.d.ts +447 -0
- package/lib/rest/previewIam/versionless/organization/user.js +299 -0
- package/lib/rest/previewIam/versionless/organization.d.ts +52 -0
- package/lib/rest/previewIam/versionless/organization.js +80 -0
- package/lib/rest/pricing/V1.d.ts +25 -0
- package/lib/rest/pricing/V1.js +48 -0
- package/lib/rest/pricing/V2.d.ts +25 -0
- package/lib/rest/pricing/V2.js +48 -0
- package/lib/rest/pricing/v1/messaging/country.d.ts +232 -0
- package/lib/rest/pricing/v1/messaging/country.js +194 -0
- package/lib/rest/pricing/v1/messaging.d.ts +18 -0
- package/lib/rest/pricing/v1/messaging.js +41 -0
- package/lib/rest/pricing/v1/phoneNumber/country.d.ts +215 -0
- package/lib/rest/pricing/v1/phoneNumber/country.js +186 -0
- package/lib/rest/pricing/v1/phoneNumber.d.ts +18 -0
- package/lib/rest/pricing/v1/phoneNumber.js +41 -0
- package/lib/rest/pricing/v1/voice/country.d.ts +227 -0
- package/lib/rest/pricing/v1/voice/country.js +191 -0
- package/lib/rest/pricing/v1/voice/number.d.ts +126 -0
- package/lib/rest/pricing/v1/voice/number.js +133 -0
- package/lib/rest/pricing/v1/voice.d.ts +21 -0
- package/lib/rest/pricing/v1/voice.js +50 -0
- package/lib/rest/pricing/v2/country.d.ts +228 -0
- package/lib/rest/pricing/v2/country.js +191 -0
- package/lib/rest/pricing/v2/number.d.ts +157 -0
- package/lib/rest/pricing/v2/number.js +138 -0
- package/lib/rest/pricing/v2/voice/country.d.ts +228 -0
- package/lib/rest/pricing/v2/voice/country.js +191 -0
- package/lib/rest/pricing/v2/voice/number.d.ts +158 -0
- package/lib/rest/pricing/v2/voice/number.js +138 -0
- package/lib/rest/pricing/v2/voice.d.ts +21 -0
- package/lib/rest/pricing/v2/voice.js +50 -0
- package/lib/rest/proxy/V1.d.ts +15 -0
- package/lib/rest/proxy/V1.js +36 -0
- package/lib/rest/proxy/v1/service/phoneNumber.d.ts +339 -0
- package/lib/rest/proxy/v1/service/phoneNumber.js +280 -0
- package/lib/rest/proxy/v1/service/session/interaction.d.ts +314 -0
- package/lib/rest/proxy/v1/service/session/interaction.js +244 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +331 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.js +262 -0
- package/lib/rest/proxy/v1/service/session/participant.d.ts +309 -0
- package/lib/rest/proxy/v1/service/session/participant.js +273 -0
- package/lib/rest/proxy/v1/service/session.d.ts +393 -0
- package/lib/rest/proxy/v1/service/session.js +324 -0
- package/lib/rest/proxy/v1/service.d.ts +385 -0
- package/lib/rest/proxy/v1/service.js +325 -0
- package/lib/rest/routes/V2.d.ts +25 -0
- package/lib/rest/routes/V2.js +48 -0
- package/lib/rest/routes/v2/phoneNumber.d.ts +167 -0
- package/lib/rest/routes/v2/phoneNumber.js +153 -0
- package/lib/rest/routes/v2/sipDomain.d.ts +143 -0
- package/lib/rest/routes/v2/sipDomain.js +153 -0
- package/lib/rest/routes/v2/trunk.d.ts +167 -0
- package/lib/rest/routes/v2/trunk.js +153 -0
- package/lib/rest/serverless/V1.d.ts +15 -0
- package/lib/rest/serverless/V1.js +36 -0
- package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +233 -0
- package/lib/rest/serverless/v1/service/asset/assetVersion.js +201 -0
- package/lib/rest/serverless/v1/service/asset.d.ts +297 -0
- package/lib/rest/serverless/v1/service/asset.js +279 -0
- package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +109 -0
- package/lib/rest/serverless/v1/service/build/buildStatus.js +126 -0
- package/lib/rest/serverless/v1/service/build.d.ts +308 -0
- package/lib/rest/serverless/v1/service/build.js +267 -0
- package/lib/rest/serverless/v1/service/environment/deployment.d.ts +258 -0
- package/lib/rest/serverless/v1/service/environment/deployment.js +227 -0
- package/lib/rest/serverless/v1/service/environment/log.d.ts +274 -0
- package/lib/rest/serverless/v1/service/environment/log.js +215 -0
- package/lib/rest/serverless/v1/service/environment/variable.d.ts +317 -0
- package/lib/rest/serverless/v1/service/environment/variable.js +280 -0
- package/lib/rest/serverless/v1/service/environment.d.ts +307 -0
- package/lib/rest/serverless/v1/service/environment.js +285 -0
- package/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.d.ts +113 -0
- package/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.js +134 -0
- package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +244 -0
- package/lib/rest/serverless/v1/service/function/functionVersion.js +216 -0
- package/lib/rest/serverless/v1/service/function.d.ts +297 -0
- package/lib/rest/serverless/v1/service/function.js +279 -0
- package/lib/rest/serverless/v1/service.d.ts +363 -0
- package/lib/rest/serverless/v1/service.js +329 -0
- package/lib/rest/studio/V1.d.ts +15 -0
- package/lib/rest/studio/V1.js +36 -0
- package/lib/rest/studio/V2.d.ts +20 -0
- package/lib/rest/studio/V2.js +42 -0
- package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +108 -0
- package/lib/rest/studio/v1/flow/engagement/engagementContext.js +126 -0
- package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +116 -0
- package/lib/rest/studio/v1/flow/engagement/step/stepContext.js +134 -0
- package/lib/rest/studio/v1/flow/engagement/step.d.ts +276 -0
- package/lib/rest/studio/v1/flow/engagement/step.js +226 -0
- package/lib/rest/studio/v1/flow/engagement.d.ts +302 -0
- package/lib/rest/studio/v1/flow/engagement.js +276 -0
- package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +108 -0
- package/lib/rest/studio/v1/flow/execution/executionContext.js +126 -0
- package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +116 -0
- package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.js +134 -0
- package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +276 -0
- package/lib/rest/studio/v1/flow/execution/executionStep.js +226 -0
- package/lib/rest/studio/v1/flow/execution.d.ts +340 -0
- package/lib/rest/studio/v1/flow/execution.js +306 -0
- package/lib/rest/studio/v1/flow.d.ts +268 -0
- package/lib/rest/studio/v1/flow.js +237 -0
- package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +108 -0
- package/lib/rest/studio/v2/flow/execution/executionContext.js +126 -0
- package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +116 -0
- package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.js +134 -0
- package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +276 -0
- package/lib/rest/studio/v2/flow/execution/executionStep.js +226 -0
- package/lib/rest/studio/v2/flow/execution.d.ts +334 -0
- package/lib/rest/studio/v2/flow/execution.js +304 -0
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +255 -0
- package/lib/rest/studio/v2/flow/flowRevision.js +203 -0
- package/lib/rest/studio/v2/flow/flowTestUser.d.ts +120 -0
- package/lib/rest/studio/v2/flow/flowTestUser.js +142 -0
- package/lib/rest/studio/v2/flow.d.ts +363 -0
- package/lib/rest/studio/v2/flow.js +327 -0
- package/lib/rest/studio/v2/flowValidate.d.ts +62 -0
- package/lib/rest/studio/v2/flowValidate.js +86 -0
- package/lib/rest/supersim/V1.d.ts +55 -0
- package/lib/rest/supersim/V1.js +86 -0
- package/lib/rest/supersim/v1/esimProfile.d.ts +313 -0
- package/lib/rest/supersim/v1/esimProfile.js +237 -0
- package/lib/rest/supersim/v1/fleet.d.ts +363 -0
- package/lib/rest/supersim/v1/fleet.js +283 -0
- package/lib/rest/supersim/v1/ipCommand.d.ts +311 -0
- package/lib/rest/supersim/v1/ipCommand.js +243 -0
- package/lib/rest/supersim/v1/network.d.ts +228 -0
- package/lib/rest/supersim/v1/network.js +189 -0
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +251 -0
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.js +234 -0
- package/lib/rest/supersim/v1/networkAccessProfile.d.ts +295 -0
- package/lib/rest/supersim/v1/networkAccessProfile.js +254 -0
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +196 -0
- package/lib/rest/supersim/v1/settingsUpdate.js +137 -0
- package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +185 -0
- package/lib/rest/supersim/v1/sim/billingPeriod.js +137 -0
- package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +149 -0
- package/lib/rest/supersim/v1/sim/simIpAddress.js +125 -0
- package/lib/rest/supersim/v1/sim.d.ts +343 -0
- package/lib/rest/supersim/v1/sim.js +289 -0
- package/lib/rest/supersim/v1/smsCommand.d.ts +276 -0
- package/lib/rest/supersim/v1/smsCommand.js +227 -0
- package/lib/rest/supersim/v1/usageRecord.d.ts +257 -0
- package/lib/rest/supersim/v1/usageRecord.js +155 -0
- package/lib/rest/sync/V1.d.ts +15 -0
- package/lib/rest/sync/V1.js +36 -0
- package/lib/rest/sync/v1/service/document/documentPermission.d.ts +279 -0
- package/lib/rest/sync/v1/service/document/documentPermission.js +260 -0
- package/lib/rest/sync/v1/service/document.d.ts +353 -0
- package/lib/rest/sync/v1/service/document.js +297 -0
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +384 -0
- package/lib/rest/sync/v1/service/syncList/syncListItem.js +302 -0
- package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +279 -0
- package/lib/rest/sync/v1/service/syncList/syncListPermission.js +260 -0
- package/lib/rest/sync/v1/service/syncList.d.ts +353 -0
- package/lib/rest/sync/v1/service/syncList.js +306 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +386 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.js +306 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +279 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapPermission.js +260 -0
- package/lib/rest/sync/v1/service/syncMap.d.ts +353 -0
- package/lib/rest/sync/v1/service/syncMap.js +306 -0
- package/lib/rest/sync/v1/service/syncStream/streamMessage.d.ts +60 -0
- package/lib/rest/sync/v1/service/syncStream/streamMessage.js +84 -0
- package/lib/rest/sync/v1/service/syncStream.d.ts +335 -0
- package/lib/rest/sync/v1/service/syncStream.js +287 -0
- package/lib/rest/sync/v1/service.d.ts +403 -0
- package/lib/rest/sync/v1/service.js +352 -0
- package/lib/rest/taskrouter/V1.d.ts +15 -0
- package/lib/rest/taskrouter/V1.js +36 -0
- package/lib/rest/taskrouter/v1/workspace/activity.d.ts +322 -0
- package/lib/rest/taskrouter/v1/workspace/activity.js +275 -0
- package/lib/rest/taskrouter/v1/workspace/event.d.ts +350 -0
- package/lib/rest/taskrouter/v1/workspace/event.js +235 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +416 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.js +351 -0
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +531 -0
- package/lib/rest/taskrouter/v1/workspace/task.js +365 -0
- package/lib/rest/taskrouter/v1/workspace/taskChannel.d.ts +323 -0
- package/lib/rest/taskrouter/v1/workspace/taskChannel.js +279 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +86 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.js +90 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +243 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.js +173 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +187 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.js +149 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +147 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.js +140 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +202 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.js +143 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +422 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.js +367 -0
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +405 -0
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.js +345 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.d.ts +306 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.js +241 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +139 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.js +136 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +179 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.js +144 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +131 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.js +124 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +143 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.js +136 -0
- package/lib/rest/taskrouter/v1/workspace/worker.d.ts +453 -0
- package/lib/rest/taskrouter/v1/workspace/worker.js +376 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +243 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.js +172 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +157 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.js +138 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +147 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.js +140 -0
- package/lib/rest/taskrouter/v1/workspace/workflow.d.ts +383 -0
- package/lib/rest/taskrouter/v1/workspace/workflow.js +342 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +235 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.js +164 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +161 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.js +134 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +139 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.js +132 -0
- package/lib/rest/taskrouter/v1/workspace.d.ts +454 -0
- package/lib/rest/taskrouter/v1/workspace.js +426 -0
- package/lib/rest/trunking/V1.d.ts +15 -0
- package/lib/rest/trunking/V1.js +36 -0
- package/lib/rest/trunking/v1/trunk/credentialList.d.ts +257 -0
- package/lib/rest/trunking/v1/trunk/credentialList.js +237 -0
- package/lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts +257 -0
- package/lib/rest/trunking/v1/trunk/ipAccessControlList.js +237 -0
- package/lib/rest/trunking/v1/trunk/originationUrl.d.ts +339 -0
- package/lib/rest/trunking/v1/trunk/originationUrl.js +297 -0
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +370 -0
- package/lib/rest/trunking/v1/trunk/phoneNumber.js +275 -0
- package/lib/rest/trunking/v1/trunk/recording.d.ts +134 -0
- package/lib/rest/trunking/v1/trunk/recording.js +144 -0
- package/lib/rest/trunking/v1/trunk.d.ts +441 -0
- package/lib/rest/trunking/v1/trunk.js +374 -0
- package/lib/rest/trusthub/V1.d.ts +60 -0
- package/lib/rest/trusthub/V1.js +99 -0
- package/lib/rest/trusthub/v1/complianceInquiries.d.ts +138 -0
- package/lib/rest/trusthub/v1/complianceInquiries.js +149 -0
- package/lib/rest/trusthub/v1/complianceRegistrationInquiries.d.ts +234 -0
- package/lib/rest/trusthub/v1/complianceRegistrationInquiries.js +233 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +148 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +158 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.d.ts +271 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.js +246 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.d.ts +257 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.js +236 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +241 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.js +217 -0
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +388 -0
- package/lib/rest/trusthub/v1/customerProfiles.js +332 -0
- package/lib/rest/trusthub/v1/endUser.d.ts +309 -0
- package/lib/rest/trusthub/v1/endUser.js +269 -0
- package/lib/rest/trusthub/v1/endUserType.d.ts +210 -0
- package/lib/rest/trusthub/v1/endUserType.js +183 -0
- package/lib/rest/trusthub/v1/policies.d.ts +204 -0
- package/lib/rest/trusthub/v1/policies.js +181 -0
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +322 -0
- package/lib/rest/trusthub/v1/supportingDocument.js +273 -0
- package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +210 -0
- package/lib/rest/trusthub/v1/supportingDocumentType.js +183 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.d.ts +271 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.js +246 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.d.ts +257 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.js +236 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +241 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.js +217 -0
- package/lib/rest/trusthub/v1/trustProducts.d.ts +388 -0
- package/lib/rest/trusthub/v1/trustProducts.js +332 -0
- package/lib/rest/verify/V2.d.ts +40 -0
- package/lib/rest/verify/V2.js +69 -0
- package/lib/rest/verify/v2/form.d.ts +100 -0
- package/lib/rest/verify/v2/form.js +115 -0
- package/lib/rest/verify/v2/safelist.d.ts +126 -0
- package/lib/rest/verify/v2/safelist.js +156 -0
- package/lib/rest/verify/v2/service/accessToken.d.ts +160 -0
- package/lib/rest/verify/v2/service/accessToken.js +163 -0
- package/lib/rest/verify/v2/service/approveChallenge.d.ts +202 -0
- package/lib/rest/verify/v2/service/approveChallenge.js +123 -0
- package/lib/rest/verify/v2/service/entity/challenge/notification.d.ts +111 -0
- package/lib/rest/verify/v2/service/entity/challenge/notification.js +103 -0
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +392 -0
- package/lib/rest/verify/v2/service/entity/challenge.js +302 -0
- package/lib/rest/verify/v2/service/entity/factor.d.ts +340 -0
- package/lib/rest/verify/v2/service/entity/factor.js +277 -0
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +165 -0
- package/lib/rest/verify/v2/service/entity/newFactor.js +140 -0
- package/lib/rest/verify/v2/service/entity.d.ts +287 -0
- package/lib/rest/verify/v2/service/entity.js +277 -0
- package/lib/rest/verify/v2/service/messagingConfiguration.d.ts +285 -0
- package/lib/rest/verify/v2/service/messagingConfiguration.js +268 -0
- package/lib/rest/verify/v2/service/newChallenge.d.ts +205 -0
- package/lib/rest/verify/v2/service/newChallenge.js +153 -0
- package/lib/rest/verify/v2/service/newFactor.d.ts +154 -0
- package/lib/rest/verify/v2/service/newFactor.js +118 -0
- package/lib/rest/verify/v2/service/newVerifyFactor.d.ts +162 -0
- package/lib/rest/verify/v2/service/newVerifyFactor.js +111 -0
- package/lib/rest/verify/v2/service/rateLimit/bucket.d.ts +317 -0
- package/lib/rest/verify/v2/service/rateLimit/bucket.js +280 -0
- package/lib/rest/verify/v2/service/rateLimit.d.ts +321 -0
- package/lib/rest/verify/v2/service/rateLimit.js +283 -0
- package/lib/rest/verify/v2/service/verification.d.ts +252 -0
- package/lib/rest/verify/v2/service/verification.js +228 -0
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +138 -0
- package/lib/rest/verify/v2/service/verificationCheck.js +113 -0
- package/lib/rest/verify/v2/service/webhook.d.ts +348 -0
- package/lib/rest/verify/v2/service/webhook.js +295 -0
- package/lib/rest/verify/v2/service.d.ts +560 -0
- package/lib/rest/verify/v2/service.js +535 -0
- package/lib/rest/verify/v2/template.d.ts +171 -0
- package/lib/rest/verify/v2/template.js +129 -0
- package/lib/rest/verify/v2/verificationAttempt.d.ts +293 -0
- package/lib/rest/verify/v2/verificationAttempt.js +211 -0
- package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +137 -0
- package/lib/rest/verify/v2/verificationAttemptsSummary.js +127 -0
- package/lib/rest/video/V1.d.ts +40 -0
- package/lib/rest/video/V1.js +69 -0
- package/lib/rest/video/v1/composition.d.ts +381 -0
- package/lib/rest/video/v1/composition.js +282 -0
- package/lib/rest/video/v1/compositionHook.d.ts +390 -0
- package/lib/rest/video/v1/compositionHook.js +318 -0
- package/lib/rest/video/v1/compositionSettings.d.ts +158 -0
- package/lib/rest/video/v1/compositionSettings.js +155 -0
- package/lib/rest/video/v1/recording.d.ts +342 -0
- package/lib/rest/video/v1/recording.js +242 -0
- package/lib/rest/video/v1/recordingSettings.d.ts +158 -0
- package/lib/rest/video/v1/recordingSettings.js +155 -0
- package/lib/rest/video/v1/room/participant/anonymize.d.ts +145 -0
- package/lib/rest/video/v1/room/participant/anonymize.js +138 -0
- package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +239 -0
- package/lib/rest/video/v1/room/participant/publishedTrack.js +203 -0
- package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +102 -0
- package/lib/rest/video/v1/room/participant/subscribeRules.js +107 -0
- package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +245 -0
- package/lib/rest/video/v1/room/participant/subscribedTrack.js +205 -0
- package/lib/rest/video/v1/room/participant.d.ts +353 -0
- package/lib/rest/video/v1/room/participant.js +291 -0
- package/lib/rest/video/v1/room/recordingRules.d.ts +94 -0
- package/lib/rest/video/v1/room/recordingRules.js +102 -0
- package/lib/rest/video/v1/room/roomRecording.d.ts +326 -0
- package/lib/rest/video/v1/room/roomRecording.js +242 -0
- package/lib/rest/video/v1/room/transcriptions.d.ts +315 -0
- package/lib/rest/video/v1/room/transcriptions.js +253 -0
- package/lib/rest/video/v1/room.d.ts +459 -0
- package/lib/rest/video/v1/room.js +362 -0
- package/lib/rest/voice/V1.d.ts +40 -0
- package/lib/rest/voice/V1.js +69 -0
- package/lib/rest/voice/v1/archivedCall.d.ts +50 -0
- package/lib/rest/voice/v1/archivedCall.js +73 -0
- package/lib/rest/voice/v1/byocTrunk.d.ts +389 -0
- package/lib/rest/voice/v1/byocTrunk.js +312 -0
- package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.d.ts +339 -0
- package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.js +288 -0
- package/lib/rest/voice/v1/connectionPolicy.d.ts +313 -0
- package/lib/rest/voice/v1/connectionPolicy.js +273 -0
- package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.d.ts +58 -0
- package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.js +78 -0
- package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.d.ts +142 -0
- package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.js +123 -0
- package/lib/rest/voice/v1/dialingPermissions/country.d.ts +278 -0
- package/lib/rest/voice/v1/dialingPermissions/country.js +218 -0
- package/lib/rest/voice/v1/dialingPermissions/settings.d.ts +128 -0
- package/lib/rest/voice/v1/dialingPermissions/settings.js +134 -0
- package/lib/rest/voice/v1/dialingPermissions.d.ts +24 -0
- package/lib/rest/voice/v1/dialingPermissions.js +59 -0
- package/lib/rest/voice/v1/ipRecord.d.ts +307 -0
- package/lib/rest/voice/v1/ipRecord.js +264 -0
- package/lib/rest/voice/v1/sourceIpMapping.d.ts +277 -0
- package/lib/rest/voice/v1/sourceIpMapping.js +260 -0
- package/lib/rest/wireless/V1.d.ts +30 -0
- package/lib/rest/wireless/V1.js +54 -0
- package/lib/rest/wireless/v1/command.d.ts +325 -0
- package/lib/rest/wireless/v1/command.js +260 -0
- package/lib/rest/wireless/v1/ratePlan.d.ts +387 -0
- package/lib/rest/wireless/v1/ratePlan.js +303 -0
- package/lib/rest/wireless/v1/sim/dataSession.d.ts +232 -0
- package/lib/rest/wireless/v1/sim/dataSession.js +153 -0
- package/lib/rest/wireless/v1/sim/usageRecord.d.ts +188 -0
- package/lib/rest/wireless/v1/sim/usageRecord.js +137 -0
- package/lib/rest/wireless/v1/sim.d.ts +465 -0
- package/lib/rest/wireless/v1/sim.js +339 -0
- package/lib/rest/wireless/v1/usageRecord.d.ts +181 -0
- package/lib/rest/wireless/v1/usageRecord.js +131 -0
- package/lib/twiml/FaxResponse.d.ts +66 -0
- package/lib/twiml/FaxResponse.js +66 -0
- package/lib/twiml/MessagingResponse.d.ts +117 -0
- package/lib/twiml/MessagingResponse.js +119 -0
- package/lib/twiml/TwiML.d.ts +42 -0
- package/lib/twiml/TwiML.js +83 -0
- package/lib/twiml/VoiceResponse.d.ts +2885 -0
- package/lib/twiml/VoiceResponse.js +1632 -0
- package/lib/webhooks/webhooks.d.ts +134 -0
- package/lib/webhooks/webhooks.js +322 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AuthStrategy from "./AuthStrategy";
|
|
2
|
+
export default class BasicAuthStrategy extends AuthStrategy {
|
|
3
|
+
private username;
|
|
4
|
+
private password;
|
|
5
|
+
constructor(username: string, password: string);
|
|
6
|
+
getAuthString(): Promise<string>;
|
|
7
|
+
requiresAuthentication(): boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const AuthStrategy_1 = __importDefault(require("./AuthStrategy"));
|
|
7
|
+
class BasicAuthStrategy extends AuthStrategy_1.default {
|
|
8
|
+
constructor(username, password) {
|
|
9
|
+
super("basic");
|
|
10
|
+
this.username = username;
|
|
11
|
+
this.password = password;
|
|
12
|
+
}
|
|
13
|
+
getAuthString() {
|
|
14
|
+
const auth = Buffer.from(this.username + ":" + this.password).toString("base64");
|
|
15
|
+
return Promise.resolve(`Basic ${auth}`);
|
|
16
|
+
}
|
|
17
|
+
requiresAuthentication() {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.default = BasicAuthStrategy;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const AuthStrategy_1 = __importDefault(require("./AuthStrategy"));
|
|
7
|
+
class NoAuthStrategy extends AuthStrategy_1.default {
|
|
8
|
+
constructor() {
|
|
9
|
+
super("noauth");
|
|
10
|
+
}
|
|
11
|
+
getAuthString() {
|
|
12
|
+
return Promise.resolve("");
|
|
13
|
+
}
|
|
14
|
+
requiresAuthentication() {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.default = NoAuthStrategy;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import AuthStrategy from "./AuthStrategy";
|
|
2
|
+
import TokenManager from "../http/bearer_token/TokenManager";
|
|
3
|
+
export default class TokenAuthStrategy extends AuthStrategy {
|
|
4
|
+
private token;
|
|
5
|
+
private tokenManager;
|
|
6
|
+
constructor(tokenManager: TokenManager);
|
|
7
|
+
getAuthString(): Promise<string>;
|
|
8
|
+
requiresAuthentication(): boolean;
|
|
9
|
+
fetchToken(): Promise<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Function to check if the token is expired with a buffer of 30 seconds.
|
|
12
|
+
* @param token - The JWT token as a string.
|
|
13
|
+
* @returns Boolean indicating if the token is expired.
|
|
14
|
+
*/
|
|
15
|
+
isTokenExpired(token: string): boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const AuthStrategy_1 = __importDefault(require("./AuthStrategy"));
|
|
7
|
+
const jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
|
|
8
|
+
class TokenAuthStrategy extends AuthStrategy_1.default {
|
|
9
|
+
constructor(tokenManager) {
|
|
10
|
+
super("token");
|
|
11
|
+
this.token = "";
|
|
12
|
+
this.tokenManager = tokenManager;
|
|
13
|
+
}
|
|
14
|
+
async getAuthString() {
|
|
15
|
+
return this.fetchToken()
|
|
16
|
+
.then((token) => {
|
|
17
|
+
this.token = token;
|
|
18
|
+
return `Bearer ${this.token}`;
|
|
19
|
+
})
|
|
20
|
+
.catch((error) => {
|
|
21
|
+
throw new Error(`Failed to fetch access token: ${error.message}`);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
requiresAuthentication() {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
async fetchToken() {
|
|
28
|
+
if (this.token == null ||
|
|
29
|
+
this.token.length === 0 ||
|
|
30
|
+
this.isTokenExpired(this.token)) {
|
|
31
|
+
return this.tokenManager.fetchToken();
|
|
32
|
+
}
|
|
33
|
+
return Promise.resolve(this.token);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Function to check if the token is expired with a buffer of 30 seconds.
|
|
37
|
+
* @param token - The JWT token as a string.
|
|
38
|
+
* @returns Boolean indicating if the token is expired.
|
|
39
|
+
*/
|
|
40
|
+
isTokenExpired(token) {
|
|
41
|
+
try {
|
|
42
|
+
// Decode the token without verifying the signature, as we only want to read the expiration for this check
|
|
43
|
+
const decoded = jsonwebtoken_1.default.decode(token);
|
|
44
|
+
if (!decoded || !decoded.exp) {
|
|
45
|
+
// If the token doesn't have an expiration, consider it expired
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
const expiresAt = decoded.exp * 1000;
|
|
49
|
+
const bufferMilliseconds = 30 * 1000;
|
|
50
|
+
const bufferExpiresAt = expiresAt - bufferMilliseconds;
|
|
51
|
+
// Return true if the current time is after the expiration time with buffer
|
|
52
|
+
return Date.now() > bufferExpiresAt;
|
|
53
|
+
}
|
|
54
|
+
catch (error) {
|
|
55
|
+
// If there's an error decoding the token, consider it expired
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.default = TokenAuthStrategy;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import RequestClient from "./RequestClient";
|
|
2
|
+
import { ValidationClientOptions } from "./ValidationClient";
|
|
3
|
+
import { HttpMethod } from "../interfaces";
|
|
4
|
+
import { Headers } from "../http/request";
|
|
5
|
+
import AuthStrategy from "../auth_strategy/AuthStrategy";
|
|
6
|
+
import CredentialProvider from "../credential_provider/CredentialProvider";
|
|
7
|
+
declare namespace Twilio {
|
|
8
|
+
const regionToEdgeMap: Map<string, string>;
|
|
9
|
+
interface ClientOpts {
|
|
10
|
+
httpClient?: RequestClient;
|
|
11
|
+
accountSid?: string;
|
|
12
|
+
env?: NodeJS.ProcessEnv;
|
|
13
|
+
edge?: string;
|
|
14
|
+
region?: string;
|
|
15
|
+
lazyLoading?: boolean;
|
|
16
|
+
logLevel?: string;
|
|
17
|
+
userAgentExtensions?: string[];
|
|
18
|
+
autoRetry?: boolean;
|
|
19
|
+
maxRetryDelay?: number;
|
|
20
|
+
maxRetries?: number;
|
|
21
|
+
validationClient?: ValidationClientOptions;
|
|
22
|
+
/**
|
|
23
|
+
https.Agent options
|
|
24
|
+
*/
|
|
25
|
+
timeout?: number;
|
|
26
|
+
keepAlive?: boolean;
|
|
27
|
+
keepAliveMsecs?: number;
|
|
28
|
+
maxSockets?: number;
|
|
29
|
+
maxTotalSockets?: number;
|
|
30
|
+
maxFreeSockets?: number;
|
|
31
|
+
scheduling?: "fifo" | "lifo" | undefined;
|
|
32
|
+
ca?: string | Buffer;
|
|
33
|
+
}
|
|
34
|
+
interface RequestOpts {
|
|
35
|
+
method?: HttpMethod;
|
|
36
|
+
uri?: string;
|
|
37
|
+
username?: string;
|
|
38
|
+
password?: string;
|
|
39
|
+
authStrategy?: AuthStrategy;
|
|
40
|
+
headers?: Headers;
|
|
41
|
+
params?: object;
|
|
42
|
+
data?: object;
|
|
43
|
+
timeout?: number;
|
|
44
|
+
allowRedirects?: boolean;
|
|
45
|
+
logLevel?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Parent class for Twilio Client that implements request & validation logic
|
|
49
|
+
*/
|
|
50
|
+
class Client {
|
|
51
|
+
username?: string;
|
|
52
|
+
password?: string;
|
|
53
|
+
accountSid: string;
|
|
54
|
+
credentialProvider?: CredentialProvider;
|
|
55
|
+
opts?: ClientOpts;
|
|
56
|
+
env?: NodeJS.ProcessEnv;
|
|
57
|
+
edge?: string;
|
|
58
|
+
region?: string;
|
|
59
|
+
logLevel?: string;
|
|
60
|
+
autoRetry?: boolean;
|
|
61
|
+
maxRetryDelay?: number;
|
|
62
|
+
maxRetries?: number;
|
|
63
|
+
validationClient?: ValidationClientOptions;
|
|
64
|
+
/**
|
|
65
|
+
https.Agent options
|
|
66
|
+
*/
|
|
67
|
+
timeout?: number;
|
|
68
|
+
keepAlive?: boolean;
|
|
69
|
+
keepAliveMsecs?: number;
|
|
70
|
+
maxSockets?: number;
|
|
71
|
+
maxTotalSockets?: number;
|
|
72
|
+
maxFreeSockets?: number;
|
|
73
|
+
scheduling?: "fifo" | "lifo" | undefined;
|
|
74
|
+
ca?: string | Buffer;
|
|
75
|
+
userAgentExtensions?: string[];
|
|
76
|
+
_httpClient?: RequestClient;
|
|
77
|
+
/**
|
|
78
|
+
* Create a BaseTwilio instance
|
|
79
|
+
*
|
|
80
|
+
* @param username -
|
|
81
|
+
* The username used for authentication. This is normally account sid, but if using key/secret auth will be
|
|
82
|
+
* the api key sid.
|
|
83
|
+
* @param password -
|
|
84
|
+
* The password used for authentication. This is normally auth token, but if using key/secret auth will be
|
|
85
|
+
* the secret.
|
|
86
|
+
* @param opts - The options argument
|
|
87
|
+
*
|
|
88
|
+
* @returns A new instance of BaseTwilio
|
|
89
|
+
*/
|
|
90
|
+
constructor(username?: string, password?: string, opts?: ClientOpts);
|
|
91
|
+
setOpts(opts?: ClientOpts): void;
|
|
92
|
+
setAccountSid(accountSid?: string): void;
|
|
93
|
+
setCredentialProvider(credentialProvider: CredentialProvider): void;
|
|
94
|
+
invalidateBasicAuth(): void;
|
|
95
|
+
invalidateOAuth(): void;
|
|
96
|
+
get httpClient(): RequestClient;
|
|
97
|
+
/**
|
|
98
|
+
* Makes a request to the Twilio API using the configured http client.
|
|
99
|
+
* Authentication information is automatically added if none is provided.
|
|
100
|
+
*
|
|
101
|
+
* @param opts - The options argument
|
|
102
|
+
*/
|
|
103
|
+
request(opts: RequestOpts): Promise<any>;
|
|
104
|
+
/**
|
|
105
|
+
* Adds a region and/or edge to a given hostname
|
|
106
|
+
*
|
|
107
|
+
* @param hostname - A URI hostname (e.g. api.twilio.com)
|
|
108
|
+
* @param targetEdge - The targeted edge location (e.g. sydney)
|
|
109
|
+
* @param targetRegion - The targeted region location (e.g. au1)
|
|
110
|
+
*/
|
|
111
|
+
getHostname(hostname: string, targetEdge: string | undefined, targetRegion: string | undefined): string;
|
|
112
|
+
/**
|
|
113
|
+
* Test if your environment is impacted by a TLS or certificate
|
|
114
|
+
* change is by sending an HTTP request to the test endpoint
|
|
115
|
+
*
|
|
116
|
+
* @throws RestException if the request fails
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
119
|
+
validateSslCert(): Promise<any>;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export = Twilio;
|
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
const RequestClient_1 = __importDefault(require("./RequestClient")); /* jshint ignore:line */
|
|
6
|
+
const os = require("os"); /* jshint ignore:line */
|
|
7
|
+
const url = require("url"); /* jshint ignore:line */
|
|
8
|
+
const moduleInfo = require("../../package.json"); /* jshint ignore:line */
|
|
9
|
+
const util = require("util"); /* jshint ignore:line */
|
|
10
|
+
const RestException = require("../base/RestException"); /* jshint ignore:line */
|
|
11
|
+
var Twilio;
|
|
12
|
+
(function (Twilio) {
|
|
13
|
+
Twilio.regionToEdgeMap = new Map([
|
|
14
|
+
["au1", "sydney"],
|
|
15
|
+
["br1", "sao-paulo"],
|
|
16
|
+
["de1", "frankfurt"],
|
|
17
|
+
["ie1", "dublin"],
|
|
18
|
+
["jp1", "tokyo"],
|
|
19
|
+
["jp2", "osaka"],
|
|
20
|
+
["sg1", "singapore"],
|
|
21
|
+
["us1", "ashburn"],
|
|
22
|
+
["us2", "umatilla"],
|
|
23
|
+
]);
|
|
24
|
+
/* jshint ignore:start */
|
|
25
|
+
/**
|
|
26
|
+
* Parent class for Twilio Client that implements request & validation logic
|
|
27
|
+
*/
|
|
28
|
+
/* jshint ignore:end */
|
|
29
|
+
class Client {
|
|
30
|
+
/* jshint ignore:start */
|
|
31
|
+
/**
|
|
32
|
+
* Create a BaseTwilio instance
|
|
33
|
+
*
|
|
34
|
+
* @param username -
|
|
35
|
+
* The username used for authentication. This is normally account sid, but if using key/secret auth will be
|
|
36
|
+
* the api key sid.
|
|
37
|
+
* @param password -
|
|
38
|
+
* The password used for authentication. This is normally auth token, but if using key/secret auth will be
|
|
39
|
+
* the secret.
|
|
40
|
+
* @param opts - The options argument
|
|
41
|
+
*
|
|
42
|
+
* @returns A new instance of BaseTwilio
|
|
43
|
+
*/
|
|
44
|
+
/* jshint ignore:end */
|
|
45
|
+
constructor(username, password, opts) {
|
|
46
|
+
this.setOpts(opts);
|
|
47
|
+
this.username =
|
|
48
|
+
username ??
|
|
49
|
+
this.env?.TWILIO_ACCOUNT_SID ??
|
|
50
|
+
process.env.TWILIO_ACCOUNT_SID;
|
|
51
|
+
this.password =
|
|
52
|
+
password ??
|
|
53
|
+
this.env?.TWILIO_AUTH_TOKEN ??
|
|
54
|
+
process.env.TWILIO_AUTH_TOKEN;
|
|
55
|
+
this.accountSid = "";
|
|
56
|
+
this.setAccountSid(this.opts?.accountSid || this.username);
|
|
57
|
+
this.invalidateOAuth();
|
|
58
|
+
}
|
|
59
|
+
setOpts(opts) {
|
|
60
|
+
this.opts = opts || {};
|
|
61
|
+
this.env = this.opts.env || {};
|
|
62
|
+
this.edge =
|
|
63
|
+
this.opts.edge ?? this.env.TWILIO_EDGE ?? process.env.TWILIO_EDGE;
|
|
64
|
+
this.region =
|
|
65
|
+
this.opts.region ?? this.env.TWILIO_REGION ?? process.env.TWILIO_REGION;
|
|
66
|
+
this.logLevel =
|
|
67
|
+
this.opts.logLevel ??
|
|
68
|
+
this.env.TWILIO_LOG_LEVEL ??
|
|
69
|
+
process.env.TWILIO_LOG_LEVEL;
|
|
70
|
+
this.timeout = this.opts.timeout;
|
|
71
|
+
this.keepAlive = this.opts.keepAlive;
|
|
72
|
+
this.keepAliveMsecs = this.opts.keepAliveMsecs;
|
|
73
|
+
this.maxSockets = this.opts.maxSockets;
|
|
74
|
+
this.maxTotalSockets = this.opts.maxTotalSockets;
|
|
75
|
+
this.maxFreeSockets = this.opts.maxFreeSockets;
|
|
76
|
+
this.scheduling = this.opts.scheduling;
|
|
77
|
+
this.ca = this.opts.ca;
|
|
78
|
+
this.autoRetry = this.opts.autoRetry || false;
|
|
79
|
+
this.maxRetryDelay = this.opts.maxRetryDelay;
|
|
80
|
+
this.maxRetries = this.opts.maxRetries;
|
|
81
|
+
this.validationClient = this.opts.validationClient;
|
|
82
|
+
this.userAgentExtensions = this.opts.userAgentExtensions || [];
|
|
83
|
+
this._httpClient = this.opts.httpClient;
|
|
84
|
+
if (this.opts.lazyLoading === false) {
|
|
85
|
+
this._httpClient = this.httpClient;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
setAccountSid(accountSid) {
|
|
89
|
+
this.accountSid = accountSid || "";
|
|
90
|
+
if (this.accountSid && !this.accountSid?.startsWith("AC")) {
|
|
91
|
+
const apiKeyMsg = this.accountSid?.startsWith("SK")
|
|
92
|
+
? ". The given SID indicates an API Key which requires the accountSid to be passed as an additional option"
|
|
93
|
+
: "";
|
|
94
|
+
throw new Error("accountSid must start with AC" + apiKeyMsg);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
setCredentialProvider(credentialProvider) {
|
|
98
|
+
this.credentialProvider = credentialProvider;
|
|
99
|
+
this.accountSid = "";
|
|
100
|
+
this.invalidateBasicAuth();
|
|
101
|
+
}
|
|
102
|
+
invalidateBasicAuth() {
|
|
103
|
+
this.username = undefined;
|
|
104
|
+
this.password = undefined;
|
|
105
|
+
}
|
|
106
|
+
invalidateOAuth() {
|
|
107
|
+
this.credentialProvider = undefined;
|
|
108
|
+
}
|
|
109
|
+
get httpClient() {
|
|
110
|
+
if (!this._httpClient) {
|
|
111
|
+
this._httpClient = new RequestClient_1.default({
|
|
112
|
+
timeout: this.timeout,
|
|
113
|
+
keepAlive: this.keepAlive,
|
|
114
|
+
keepAliveMsecs: this.keepAliveMsecs,
|
|
115
|
+
maxSockets: this.maxSockets,
|
|
116
|
+
maxTotalSockets: this.maxTotalSockets,
|
|
117
|
+
maxFreeSockets: this.maxFreeSockets,
|
|
118
|
+
scheduling: this.scheduling,
|
|
119
|
+
ca: this.ca,
|
|
120
|
+
autoRetry: this.autoRetry,
|
|
121
|
+
maxRetryDelay: this.maxRetryDelay,
|
|
122
|
+
maxRetries: this.maxRetries,
|
|
123
|
+
validationClient: this.validationClient,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
return this._httpClient;
|
|
127
|
+
}
|
|
128
|
+
/* jshint ignore:start */
|
|
129
|
+
/**
|
|
130
|
+
* Makes a request to the Twilio API using the configured http client.
|
|
131
|
+
* Authentication information is automatically added if none is provided.
|
|
132
|
+
*
|
|
133
|
+
* @param opts - The options argument
|
|
134
|
+
*/
|
|
135
|
+
/* jshint ignore:end */
|
|
136
|
+
request(opts) {
|
|
137
|
+
if ((this.edge !== undefined && this.region === undefined) ||
|
|
138
|
+
(this.edge === undefined && this.region !== undefined)) {
|
|
139
|
+
console.warn("[DEPRECATION WARNING] For regional processing, DNS is of format product.edge.region.twilio.com;otherwise use product.twilio.com");
|
|
140
|
+
}
|
|
141
|
+
if (this.region !== undefined && this.edge === undefined) {
|
|
142
|
+
const mappedEdge = Twilio.regionToEdgeMap.get(this.region);
|
|
143
|
+
if (mappedEdge) {
|
|
144
|
+
console.warn("Setting edge value from the region mapping");
|
|
145
|
+
this.edge = mappedEdge;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
opts = opts || {};
|
|
149
|
+
if (!opts.method) {
|
|
150
|
+
throw new Error("method is required");
|
|
151
|
+
}
|
|
152
|
+
if (!opts.uri) {
|
|
153
|
+
throw new Error("uri is required");
|
|
154
|
+
}
|
|
155
|
+
const username = opts.username || this.username;
|
|
156
|
+
const password = opts.password || this.password;
|
|
157
|
+
const authStrategy = opts.authStrategy || this.credentialProvider?.toAuthStrategy();
|
|
158
|
+
if (!authStrategy) {
|
|
159
|
+
if (!username) {
|
|
160
|
+
(() => {
|
|
161
|
+
throw new Error("username is required");
|
|
162
|
+
})();
|
|
163
|
+
}
|
|
164
|
+
if (!password) {
|
|
165
|
+
(() => {
|
|
166
|
+
throw new Error("password is required");
|
|
167
|
+
})();
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
const headers = opts.headers || {};
|
|
171
|
+
const pkgVersion = moduleInfo.version;
|
|
172
|
+
const osName = os.platform();
|
|
173
|
+
const osArch = os.arch();
|
|
174
|
+
const nodeVersion = process.version;
|
|
175
|
+
headers["User-Agent"] = util.format("twilio-node/%s (%s %s) node/%s", pkgVersion, osName, osArch, nodeVersion);
|
|
176
|
+
this.userAgentExtensions?.forEach((extension) => {
|
|
177
|
+
headers["User-Agent"] += ` ${extension}`;
|
|
178
|
+
});
|
|
179
|
+
headers["Accept-Charset"] = "utf-8";
|
|
180
|
+
if ((opts.method === "post" || opts.method === "put") &&
|
|
181
|
+
!headers["Content-Type"]) {
|
|
182
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
183
|
+
}
|
|
184
|
+
if (opts.method !== "delete" && !headers["Accept"]) {
|
|
185
|
+
headers["Accept"] = "application/json";
|
|
186
|
+
}
|
|
187
|
+
var uri = new url.URL(opts.uri);
|
|
188
|
+
uri.hostname = this.getHostname(uri.hostname, this.edge, this.region);
|
|
189
|
+
return this.httpClient?.request({
|
|
190
|
+
method: opts.method,
|
|
191
|
+
uri: uri.href,
|
|
192
|
+
username: username,
|
|
193
|
+
password: password,
|
|
194
|
+
authStrategy: authStrategy,
|
|
195
|
+
headers: headers,
|
|
196
|
+
params: opts.params,
|
|
197
|
+
data: opts.data,
|
|
198
|
+
timeout: opts.timeout,
|
|
199
|
+
allowRedirects: opts.allowRedirects,
|
|
200
|
+
// use the Twilio client's log-level if the httpClient's log-level is unspecified
|
|
201
|
+
logLevel: opts.logLevel || this.opts?.logLevel,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
/* jshint ignore:start */
|
|
205
|
+
/**
|
|
206
|
+
* Adds a region and/or edge to a given hostname
|
|
207
|
+
*
|
|
208
|
+
* @param hostname - A URI hostname (e.g. api.twilio.com)
|
|
209
|
+
* @param targetEdge - The targeted edge location (e.g. sydney)
|
|
210
|
+
* @param targetRegion - The targeted region location (e.g. au1)
|
|
211
|
+
*/
|
|
212
|
+
/* jshint ignore:end */
|
|
213
|
+
getHostname(hostname, targetEdge, targetRegion) {
|
|
214
|
+
const defaultRegion = "us1";
|
|
215
|
+
const domain = hostname.split(".").slice(-2).join(".");
|
|
216
|
+
const prefix = hostname.split("." + domain)[0];
|
|
217
|
+
let [product, edge, region] = prefix.split(".");
|
|
218
|
+
if (edge && !region) {
|
|
219
|
+
region = edge;
|
|
220
|
+
edge = undefined;
|
|
221
|
+
}
|
|
222
|
+
region = targetRegion || region || (targetEdge && defaultRegion);
|
|
223
|
+
if (!region) {
|
|
224
|
+
return hostname;
|
|
225
|
+
}
|
|
226
|
+
edge = targetEdge || edge;
|
|
227
|
+
return [product, edge, region, domain].filter((part) => part).join(".");
|
|
228
|
+
}
|
|
229
|
+
/* jshint ignore:start */
|
|
230
|
+
/**
|
|
231
|
+
* Test if your environment is impacted by a TLS or certificate
|
|
232
|
+
* change is by sending an HTTP request to the test endpoint
|
|
233
|
+
*
|
|
234
|
+
* @throws RestException if the request fails
|
|
235
|
+
*
|
|
236
|
+
*/
|
|
237
|
+
/* jshint ignore:end */
|
|
238
|
+
validateSslCert() {
|
|
239
|
+
return this.httpClient
|
|
240
|
+
?.request({
|
|
241
|
+
method: "get",
|
|
242
|
+
uri: "https://tls-test.twilio.com:443",
|
|
243
|
+
})
|
|
244
|
+
.then((response) => {
|
|
245
|
+
if (response["statusCode"] < 200 || response["statusCode"] >= 300) {
|
|
246
|
+
throw new RestException(response);
|
|
247
|
+
}
|
|
248
|
+
return response;
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
Twilio.Client = Client;
|
|
253
|
+
})(Twilio || (Twilio = {}));
|
|
254
|
+
module.exports = Twilio;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Client as BaseTwilio, RequestOpts } from "./BaseTwilio";
|
|
2
|
+
/**
|
|
3
|
+
* Base domain object
|
|
4
|
+
*/
|
|
5
|
+
export default class Domain {
|
|
6
|
+
twilio: BaseTwilio;
|
|
7
|
+
baseUrl: string;
|
|
8
|
+
/**
|
|
9
|
+
* Creates a Domain instance
|
|
10
|
+
*
|
|
11
|
+
* @param twilio - A Twilio Client
|
|
12
|
+
* @param baseUrl - Base url for this domain
|
|
13
|
+
*/
|
|
14
|
+
constructor(twilio: BaseTwilio, baseUrl: string);
|
|
15
|
+
/**
|
|
16
|
+
* Turn a uri into an absolute url
|
|
17
|
+
*
|
|
18
|
+
* @param uri - uri to transform
|
|
19
|
+
* @returns absolute url
|
|
20
|
+
*/
|
|
21
|
+
absoluteUrl(uri?: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Make request to this domain
|
|
24
|
+
*
|
|
25
|
+
* @param opts - request options
|
|
26
|
+
* @returns request promise
|
|
27
|
+
*/
|
|
28
|
+
request(opts: RequestOpts): Promise<any>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utility_1 = require("./utility");
|
|
4
|
+
/**
|
|
5
|
+
* Base domain object
|
|
6
|
+
*/
|
|
7
|
+
class Domain {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a Domain instance
|
|
10
|
+
*
|
|
11
|
+
* @param twilio - A Twilio Client
|
|
12
|
+
* @param baseUrl - Base url for this domain
|
|
13
|
+
*/
|
|
14
|
+
constructor(twilio, baseUrl) {
|
|
15
|
+
this.twilio = twilio;
|
|
16
|
+
this.baseUrl = baseUrl;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Turn a uri into an absolute url
|
|
20
|
+
*
|
|
21
|
+
* @param uri - uri to transform
|
|
22
|
+
* @returns absolute url
|
|
23
|
+
*/
|
|
24
|
+
absoluteUrl(uri) {
|
|
25
|
+
var result = "";
|
|
26
|
+
if (typeof this.baseUrl === "string") {
|
|
27
|
+
const cleanBaseUrl = (0, utility_1.trim)(this.baseUrl, "/");
|
|
28
|
+
result += cleanBaseUrl;
|
|
29
|
+
result += "/";
|
|
30
|
+
}
|
|
31
|
+
if (typeof uri === "string") {
|
|
32
|
+
uri = (0, utility_1.trim)(uri, "/");
|
|
33
|
+
if (result === "") {
|
|
34
|
+
result += "/";
|
|
35
|
+
}
|
|
36
|
+
result += uri;
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Make request to this domain
|
|
42
|
+
*
|
|
43
|
+
* @param opts - request options
|
|
44
|
+
* @returns request promise
|
|
45
|
+
*/
|
|
46
|
+
request(opts) {
|
|
47
|
+
return this.twilio.request({
|
|
48
|
+
...opts,
|
|
49
|
+
uri: this.absoluteUrl(opts.uri),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.default = Domain;
|