twilio 4.6.0 → 4.7.0
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/{LICENSE.md → LICENSE} +2 -2
- package/README.md +149 -25
- package/index.d.ts +2 -0
- package/index.js +9 -1
- package/lib/base/BaseTwilio.d.ts +84 -0
- package/lib/base/BaseTwilio.js +174 -0
- package/lib/base/Domain.d.ts +29 -0
- package/lib/base/Domain.js +49 -35
- package/lib/base/Page.d.ts +104 -0
- package/lib/base/Page.js +187 -182
- package/lib/base/RequestClient.d.ts +145 -0
- package/lib/base/RequestClient.js +219 -67
- package/lib/base/RestException.d.ts +16 -0
- package/lib/base/RestException.js +32 -16
- package/lib/base/Version.d.ts +129 -0
- package/lib/base/Version.js +329 -171
- package/lib/base/deserialize.d.ts +41 -0
- package/lib/base/deserialize.js +48 -66
- package/lib/base/serialize.d.ts +53 -0
- package/lib/base/serialize.js +105 -105
- 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 +8 -14
- package/lib/http/request.d.ts +25 -0
- package/lib/http/request.js +84 -73
- package/lib/http/response.d.ts +7 -0
- package/lib/http/response.js +13 -12
- package/lib/index.d.ts +39 -0
- package/lib/index.js +81 -25
- package/lib/interfaces.d.ts +94 -0
- package/lib/interfaces.js +2 -0
- package/lib/jwt/AccessToken.d.ts +191 -0
- package/lib/jwt/AccessToken.js +244 -234
- package/lib/jwt/ClientCapability.d.ts +61 -0
- package/lib/jwt/ClientCapability.js +105 -124
- package/lib/jwt/taskrouter/TaskRouterCapability.d.ts +74 -0
- package/lib/jwt/taskrouter/TaskRouterCapability.js +95 -101
- package/lib/jwt/taskrouter/util.d.ts +66 -0
- package/lib/jwt/taskrouter/util.js +122 -117
- package/lib/rest/Accounts.d.ts +19 -0
- package/lib/rest/Accounts.js +27 -52
- 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 +180 -260
- package/lib/rest/ApiBase.d.ts +13 -0
- package/lib/rest/ApiBase.js +31 -0
- package/lib/rest/Autopilot.d.ts +14 -0
- package/lib/rest/Autopilot.js +22 -0
- package/lib/rest/AutopilotBase.d.ts +13 -0
- package/lib/rest/AutopilotBase.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 +27 -71
- 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 +13 -0
- package/lib/rest/ContentBase.js +31 -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/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/IpMessaging.d.ts +14 -0
- package/lib/rest/IpMessaging.js +20 -72
- package/lib/rest/IpMessagingBase.d.ts +16 -0
- package/lib/rest/IpMessagingBase.js +36 -0
- package/lib/rest/Lookups.d.ts +9 -0
- package/lib/rest/Lookups.js +13 -53
- package/lib/rest/LookupsBase.d.ts +16 -0
- package/lib/rest/LookupsBase.js +36 -0
- package/lib/rest/Media.d.ts +19 -0
- package/lib/rest/Media.js +29 -0
- package/lib/rest/MediaBase.d.ts +13 -0
- package/lib/rest/MediaBase.js +31 -0
- package/lib/rest/Messaging.d.ts +39 -0
- package/lib/rest/Messaging.js +55 -52
- package/lib/rest/MessagingBase.d.ts +13 -0
- package/lib/rest/MessagingBase.js +31 -0
- package/lib/rest/Microvisor.d.ts +14 -0
- package/lib/rest/Microvisor.js +22 -0
- package/lib/rest/MicrovisorBase.d.ts +13 -0
- package/lib/rest/MicrovisorBase.js +31 -0
- package/lib/rest/Monitor.d.ts +14 -0
- package/lib/rest/Monitor.js +20 -60
- 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 +20 -60
- 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 +13 -0
- package/lib/rest/NumbersBase.js +31 -0
- package/lib/rest/Oauth.d.ts +29 -0
- package/lib/rest/Oauth.js +43 -0
- package/lib/rest/OauthBase.d.ts +13 -0
- package/lib/rest/OauthBase.js +31 -0
- package/lib/rest/Preview.d.ts +54 -0
- package/lib/rest/Preview.js +76 -176
- package/lib/rest/PreviewBase.d.ts +28 -0
- package/lib/rest/PreviewBase.js +57 -0
- package/lib/rest/Pricing.d.ts +29 -0
- package/lib/rest/Pricing.js +41 -69
- 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 +13 -52
- 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 +13 -52
- 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 +13 -52
- 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 +272 -0
- package/lib/rest/Twilio.js +308 -503
- 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 +48 -60
- 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 +34 -68
- package/lib/rest/WirelessBase.d.ts +13 -0
- package/lib/rest/WirelessBase.js +31 -0
- package/lib/rest/accounts/V1.d.ts +25 -0
- package/lib/rest/accounts/V1.js +45 -41
- package/lib/rest/accounts/v1/authTokenPromotion.d.ts +105 -0
- package/lib/rest/accounts/v1/authTokenPromotion.js +109 -0
- package/lib/rest/accounts/v1/credential/aws.d.ts +296 -0
- package/lib/rest/accounts/v1/credential/aws.js +251 -0
- package/lib/rest/accounts/v1/credential/publicKey.d.ts +296 -0
- package/lib/rest/accounts/v1/credential/publicKey.js +236 -675
- package/lib/rest/accounts/v1/credential.d.ts +22 -0
- package/lib/rest/accounts/v1/credential.js +48 -63
- package/lib/rest/accounts/v1/secondaryAuthToken.d.ts +122 -0
- package/lib/rest/accounts/v1/secondaryAuthToken.js +128 -0
- package/lib/rest/api/V2010.d.ts +20 -0
- package/lib/rest/api/V2010.js +37 -260
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +295 -0
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +164 -401
- package/lib/rest/api/v2010/account/address.d.ts +414 -0
- package/lib/rest/api/v2010/account/address.js +316 -793
- package/lib/rest/api/v2010/account/application.d.ts +463 -0
- package/lib/rest/api/v2010/account/application.js +333 -817
- package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +244 -0
- package/lib/rest/api/v2010/account/authorizedConnectApp.js +185 -519
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.d.ts +322 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.js +185 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.d.ts +322 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.js +185 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.d.ts +322 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.js +185 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.d.ts +322 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.js +185 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.d.ts +322 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.js +185 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.d.ts +322 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.js +185 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.d.ts +322 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.js +185 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry.d.ts +269 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry.js +279 -0
- package/lib/rest/api/v2010/account/balance.d.ts +58 -0
- package/lib/rest/api/v2010/account/balance.js +70 -0
- package/lib/rest/api/v2010/account/call/event.d.ts +150 -0
- package/lib/rest/api/v2010/account/call/event.js +127 -0
- package/lib/rest/api/v2010/account/call/feedback.d.ts +160 -0
- package/lib/rest/api/v2010/account/call/feedback.js +149 -412
- package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +201 -0
- package/lib/rest/api/v2010/account/call/feedbackSummary.js +181 -397
- package/lib/rest/api/v2010/account/call/notification.d.ts +312 -0
- package/lib/rest/api/v2010/account/call/notification.js +210 -616
- package/lib/rest/api/v2010/account/call/payment.d.ts +182 -0
- package/lib/rest/api/v2010/account/call/payment.js +198 -0
- package/lib/rest/api/v2010/account/call/recording.d.ts +386 -0
- package/lib/rest/api/v2010/account/call/recording.js +289 -595
- package/lib/rest/api/v2010/account/call/siprec.d.ts +559 -0
- package/lib/rest/api/v2010/account/call/siprec.js +562 -0
- package/lib/rest/api/v2010/account/call/stream.d.ts +551 -0
- package/lib/rest/api/v2010/account/call/stream.js +560 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessage.d.ts +75 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessage.js +89 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.d.ts +130 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.js +150 -0
- package/lib/rest/api/v2010/account/call.d.ts +633 -0
- package/lib/rest/api/v2010/account/call.js +523 -991
- package/lib/rest/api/v2010/account/conference/participant.d.ts +472 -0
- package/lib/rest/api/v2010/account/conference/participant.js +390 -798
- package/lib/rest/api/v2010/account/conference/recording.d.ts +346 -0
- package/lib/rest/api/v2010/account/conference/recording.js +267 -0
- package/lib/rest/api/v2010/account/conference.d.ts +362 -0
- package/lib/rest/api/v2010/account/conference.js +256 -662
- package/lib/rest/api/v2010/account/connectApp.d.ts +324 -0
- package/lib/rest/api/v2010/account/connectApp.js +243 -616
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.d.ts +241 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.js +197 -544
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +292 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.js +240 -678
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +417 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +247 -530
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +417 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +247 -530
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +417 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +247 -530
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +593 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.js +429 -960
- package/lib/rest/api/v2010/account/key.d.ts +266 -0
- package/lib/rest/api/v2010/account/key.js +215 -623
- package/lib/rest/api/v2010/account/message/feedback.d.ts +91 -0
- package/lib/rest/api/v2010/account/message/feedback.js +88 -196
- package/lib/rest/api/v2010/account/message/media.d.ts +262 -0
- package/lib/rest/api/v2010/account/message/media.js +207 -590
- package/lib/rest/api/v2010/account/message.d.ts +468 -0
- package/lib/rest/api/v2010/account/message.js +344 -838
- package/lib/rest/api/v2010/account/newKey.d.ts +86 -0
- package/lib/rest/api/v2010/account/newKey.js +83 -189
- package/lib/rest/api/v2010/account/newSigningKey.d.ts +86 -0
- package/lib/rest/api/v2010/account/newSigningKey.js +83 -190
- package/lib/rest/api/v2010/account/notification.d.ts +310 -0
- package/lib/rest/api/v2010/account/notification.js +204 -606
- package/lib/rest/api/v2010/account/outgoingCallerId.d.ts +296 -0
- package/lib/rest/api/v2010/account/outgoingCallerId.js +225 -648
- package/lib/rest/api/v2010/account/queue/member.d.ts +249 -0
- package/lib/rest/api/v2010/account/queue/member.js +207 -593
- package/lib/rest/api/v2010/account/queue.d.ts +324 -0
- package/lib/rest/api/v2010/account/queue.js +260 -725
- package/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts +270 -0
- package/lib/rest/api/v2010/account/recording/addOnResult/payload.js +220 -590
- package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +268 -0
- package/lib/rest/api/v2010/account/recording/addOnResult.js +219 -613
- package/lib/rest/api/v2010/account/recording/transcription.d.ts +278 -0
- package/lib/rest/api/v2010/account/recording/transcription.js +213 -583
- package/lib/rest/api/v2010/account/recording.d.ts +387 -0
- package/lib/rest/api/v2010/account/recording.js +259 -663
- package/lib/rest/api/v2010/account/shortCode.d.ts +321 -0
- package/lib/rest/api/v2010/account/shortCode.js +227 -627
- package/lib/rest/api/v2010/account/signingKey.d.ts +254 -0
- package/lib/rest/api/v2010/account/signingKey.js +215 -624
- package/lib/rest/api/v2010/account/sip/credentialList/credential.d.ts +304 -0
- package/lib/rest/api/v2010/account/sip/credentialList/credential.js +249 -699
- package/lib/rest/api/v2010/account/sip/credentialList.d.ts +292 -0
- package/lib/rest/api/v2010/account/sip/credentialList.js +251 -718
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.d.ts +248 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.js +232 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.d.ts +248 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.js +232 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls.d.ts +24 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls.js +60 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.d.ts +248 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.js +232 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations.d.ts +21 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations.js +50 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes.d.ts +24 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes.js +58 -0
- package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.d.ts +260 -0
- package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.js +220 -625
- package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.d.ts +260 -0
- package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.js +220 -628
- package/lib/rest/api/v2010/account/sip/domain.d.ts +459 -0
- package/lib/rest/api/v2010/account/sip/domain.js +351 -823
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +322 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +264 -704
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +292 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.js +251 -724
- package/lib/rest/api/v2010/account/sip.d.ts +26 -0
- package/lib/rest/api/v2010/account/sip.js +60 -101
- package/lib/rest/api/v2010/account/token.d.ts +104 -0
- package/lib/rest/api/v2010/account/token.js +90 -193
- package/lib/rest/api/v2010/account/transcription.d.ts +276 -0
- package/lib/rest/api/v2010/account/transcription.js +207 -571
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +249 -0
- package/lib/rest/api/v2010/account/usage/record/allTime.js +147 -421
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +249 -0
- package/lib/rest/api/v2010/account/usage/record/daily.js +147 -421
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +249 -0
- package/lib/rest/api/v2010/account/usage/record/lastMonth.js +147 -421
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +249 -0
- package/lib/rest/api/v2010/account/usage/record/monthly.js +147 -421
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +249 -0
- package/lib/rest/api/v2010/account/usage/record/thisMonth.js +147 -421
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +249 -0
- package/lib/rest/api/v2010/account/usage/record/today.js +147 -421
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +249 -0
- package/lib/rest/api/v2010/account/usage/record/yearly.js +147 -421
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +249 -0
- package/lib/rest/api/v2010/account/usage/record/yesterday.js +147 -421
- package/lib/rest/api/v2010/account/usage/record.d.ts +273 -0
- package/lib/rest/api/v2010/account/usage/record.js +221 -560
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +383 -0
- package/lib/rest/api/v2010/account/usage/trigger.js +284 -753
- package/lib/rest/api/v2010/account/usage.d.ts +23 -0
- package/lib/rest/api/v2010/account/usage.js +51 -83
- package/lib/rest/api/v2010/account/validationRequest.d.ts +88 -0
- package/lib/rest/api/v2010/account/validationRequest.js +90 -200
- package/lib/rest/api/v2010/account.d.ts +509 -0
- package/lib/rest/api/v2010/account.js +540 -1392
- package/lib/rest/autopilot/V1.d.ts +20 -0
- package/lib/rest/autopilot/V1.js +43 -0
- package/lib/rest/autopilot/v1/assistant/defaults.d.ts +143 -0
- package/lib/rest/autopilot/v1/assistant/defaults.js +142 -0
- package/lib/rest/autopilot/v1/assistant/dialogue.d.ts +108 -0
- package/lib/rest/autopilot/v1/assistant/dialogue.js +120 -0
- package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.d.ts +288 -0
- package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js +249 -0
- package/lib/rest/autopilot/v1/assistant/fieldType.d.ts +324 -0
- package/lib/rest/autopilot/v1/assistant/fieldType.js +277 -0
- package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +326 -0
- package/lib/rest/autopilot/v1/assistant/modelBuild.js +266 -0
- package/lib/rest/autopilot/v1/assistant/query.d.ts +374 -0
- package/lib/rest/autopilot/v1/assistant/query.js +288 -0
- package/lib/rest/autopilot/v1/assistant/styleSheet.d.ts +143 -0
- package/lib/rest/autopilot/v1/assistant/styleSheet.js +142 -0
- package/lib/rest/autopilot/v1/assistant/task/field.d.ts +274 -0
- package/lib/rest/autopilot/v1/assistant/task/field.js +243 -0
- package/lib/rest/autopilot/v1/assistant/task/sample.d.ts +334 -0
- package/lib/rest/autopilot/v1/assistant/task/sample.js +280 -0
- package/lib/rest/autopilot/v1/assistant/task/taskActions.d.ts +151 -0
- package/lib/rest/autopilot/v1/assistant/task/taskActions.js +150 -0
- package/lib/rest/autopilot/v1/assistant/task/taskStatistics.d.ts +115 -0
- package/lib/rest/autopilot/v1/assistant/task/taskStatistics.js +125 -0
- package/lib/rest/autopilot/v1/assistant/task.d.ts +362 -0
- package/lib/rest/autopilot/v1/assistant/task.js +326 -0
- package/lib/rest/autopilot/v1/assistant/webhook.d.ts +330 -0
- package/lib/rest/autopilot/v1/assistant/webhook.js +278 -0
- package/lib/rest/autopilot/v1/assistant.d.ts +438 -0
- package/lib/rest/autopilot/v1/assistant.js +392 -0
- package/lib/rest/autopilot/v1/restoreAssistant.d.ts +119 -0
- package/lib/rest/autopilot/v1/restoreAssistant.js +96 -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 +216 -0
- package/lib/rest/bulkexports/v1/export/day.js +187 -0
- package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +229 -0
- package/lib/rest/bulkexports/v1/export/exportCustomJob.js +178 -0
- package/lib/rest/bulkexports/v1/export/job.d.ts +162 -0
- package/lib/rest/bulkexports/v1/export/job.js +146 -0
- package/lib/rest/bulkexports/v1/export.d.ts +113 -0
- package/lib/rest/bulkexports/v1/export.js +144 -0
- package/lib/rest/bulkexports/v1/exportConfiguration.d.ts +152 -0
- package/lib/rest/bulkexports/v1/exportConfiguration.js +145 -0
- package/lib/rest/chat/V1.d.ts +20 -0
- package/lib/rest/chat/V1.js +37 -52
- package/lib/rest/chat/V2.d.ts +20 -0
- package/lib/rest/chat/V2.js +37 -52
- 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 +324 -0
- package/lib/rest/chat/v1/credential.js +258 -697
- package/lib/rest/chat/v1/service/channel/invite.d.ts +286 -0
- package/lib/rest/chat/v1/service/channel/invite.js +229 -637
- package/lib/rest/chat/v1/service/channel/member.d.ts +336 -0
- package/lib/rest/chat/v1/service/channel/member.js +260 -717
- package/lib/rest/chat/v1/service/channel/message.d.ts +351 -0
- package/lib/rest/chat/v1/service/channel/message.js +266 -721
- package/lib/rest/chat/v1/service/channel.d.ts +388 -0
- package/lib/rest/chat/v1/service/channel.js +303 -812
- package/lib/rest/chat/v1/service/role.d.ts +298 -0
- package/lib/rest/chat/v1/service/role.js +249 -693
- package/lib/rest/chat/v1/service/user/userChannel.d.ts +184 -0
- package/lib/rest/chat/v1/service/user/userChannel.js +128 -392
- package/lib/rest/chat/v1/service/user.d.ts +360 -0
- package/lib/rest/chat/v1/service/user.js +277 -742
- package/lib/rest/chat/v1/service.d.ts +512 -0
- package/lib/rest/chat/v1/service.js +435 -1112
- package/lib/rest/chat/v2/credential.d.ts +324 -0
- package/lib/rest/chat/v2/credential.js +258 -697
- package/lib/rest/chat/v2/service/binding.d.ts +282 -0
- package/lib/rest/chat/v2/service/binding.js +222 -0
- package/lib/rest/chat/v2/service/channel/invite.d.ts +286 -0
- package/lib/rest/chat/v2/service/channel/invite.js +229 -637
- package/lib/rest/chat/v2/service/channel/member.d.ts +390 -0
- package/lib/rest/chat/v2/service/channel/member.js +290 -717
- package/lib/rest/chat/v2/service/channel/message.d.ts +423 -0
- package/lib/rest/chat/v2/service/channel/message.js +300 -721
- package/lib/rest/chat/v2/service/channel/webhook.d.ts +338 -0
- package/lib/rest/chat/v2/service/channel/webhook.js +288 -0
- package/lib/rest/chat/v2/service/channel.d.ts +438 -0
- package/lib/rest/chat/v2/service/channel.js +338 -812
- package/lib/rest/chat/v2/service/role.d.ts +298 -0
- package/lib/rest/chat/v2/service/role.js +249 -693
- package/lib/rest/chat/v2/service/user/userBinding.d.ts +278 -0
- package/lib/rest/chat/v2/service/user/userBinding.js +226 -0
- package/lib/rest/chat/v2/service/user/userChannel.d.ts +336 -0
- package/lib/rest/chat/v2/service/user/userChannel.js +249 -389
- package/lib/rest/chat/v2/service/user.d.ts +373 -0
- package/lib/rest/chat/v2/service/user.js +294 -742
- package/lib/rest/chat/v2/service.d.ts +486 -0
- package/lib/rest/chat/v2/service.js +381 -896
- package/lib/rest/chat/v3/channel.d.ts +189 -0
- package/lib/rest/chat/v3/channel.js +149 -0
- package/lib/rest/content/V1.d.ts +15 -0
- package/lib/rest/content/V1.js +36 -0
- package/lib/rest/content/v1/content/approvalFetch.d.ts +101 -0
- package/lib/rest/content/v1/content/approvalFetch.js +115 -0
- package/lib/rest/content/v1/content.d.ts +266 -0
- package/lib/rest/content/v1/content.js +221 -0
- package/lib/rest/conversations/V1.d.ts +50 -0
- package/lib/rest/conversations/V1.js +82 -0
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +355 -0
- package/lib/rest/conversations/v1/addressConfiguration.js +298 -0
- package/lib/rest/conversations/v1/configuration/webhook.d.ts +163 -0
- package/lib/rest/conversations/v1/configuration/webhook.js +147 -0
- package/lib/rest/conversations/v1/configuration.d.ts +168 -0
- package/lib/rest/conversations/v1/configuration.js +155 -0
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +249 -0
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.js +203 -0
- package/lib/rest/conversations/v1/conversation/message.d.ts +423 -0
- package/lib/rest/conversations/v1/conversation/message.js +321 -0
- package/lib/rest/conversations/v1/conversation/participant.d.ts +398 -0
- package/lib/rest/conversations/v1/conversation/participant.js +312 -0
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +328 -0
- package/lib/rest/conversations/v1/conversation/webhook.js +278 -0
- package/lib/rest/conversations/v1/conversation.d.ts +429 -0
- package/lib/rest/conversations/v1/conversation.js +345 -0
- package/lib/rest/conversations/v1/credential.d.ts +326 -0
- package/lib/rest/conversations/v1/credential.js +276 -0
- package/lib/rest/conversations/v1/participantConversation.d.ts +242 -0
- package/lib/rest/conversations/v1/participantConversation.js +152 -0
- package/lib/rest/conversations/v1/role.d.ts +296 -0
- package/lib/rest/conversations/v1/role.js +260 -0
- package/lib/rest/conversations/v1/service/binding.d.ts +276 -0
- package/lib/rest/conversations/v1/service/binding.js +220 -0
- package/lib/rest/conversations/v1/service/configuration/notification.d.ts +185 -0
- package/lib/rest/conversations/v1/service/configuration/notification.js +176 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +165 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.js +154 -0
- package/lib/rest/conversations/v1/service/configuration.d.ts +173 -0
- package/lib/rest/conversations/v1/service/configuration.js +174 -0
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +257 -0
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.js +216 -0
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +431 -0
- package/lib/rest/conversations/v1/service/conversation/message.js +329 -0
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +406 -0
- package/lib/rest/conversations/v1/service/conversation/participant.js +320 -0
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +336 -0
- package/lib/rest/conversations/v1/service/conversation/webhook.js +286 -0
- package/lib/rest/conversations/v1/service/conversation.d.ts +431 -0
- package/lib/rest/conversations/v1/service/conversation.js +353 -0
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +243 -0
- package/lib/rest/conversations/v1/service/participantConversation.js +156 -0
- package/lib/rest/conversations/v1/service/role.d.ts +298 -0
- package/lib/rest/conversations/v1/service/role.js +267 -0
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +349 -0
- package/lib/rest/conversations/v1/service/user/userConversation.js +271 -0
- package/lib/rest/conversations/v1/service/user.d.ts +381 -0
- package/lib/rest/conversations/v1/service/user.js +301 -0
- package/lib/rest/conversations/v1/service.d.ts +304 -0
- package/lib/rest/conversations/v1/service.js +299 -0
- package/lib/rest/conversations/v1/user/userConversation.d.ts +347 -0
- package/lib/rest/conversations/v1/user/userConversation.js +264 -0
- package/lib/rest/conversations/v1/user.d.ts +379 -0
- package/lib/rest/conversations/v1/user.js +294 -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 +226 -0
- package/lib/rest/events/v1/eventType.js +185 -0
- package/lib/rest/events/v1/schema/schemaVersion.d.ts +210 -0
- package/lib/rest/events/v1/schema/schemaVersion.js +185 -0
- package/lib/rest/events/v1/schema.d.ts +114 -0
- package/lib/rest/events/v1/schema.js +126 -0
- package/lib/rest/events/v1/sink/sinkTest.d.ts +46 -0
- package/lib/rest/events/v1/sink/sinkTest.js +66 -0
- package/lib/rest/events/v1/sink/sinkValidate.d.ts +54 -0
- package/lib/rest/events/v1/sink/sinkValidate.js +78 -0
- package/lib/rest/events/v1/sink.d.ts +322 -0
- package/lib/rest/events/v1/sink.js +289 -0
- package/lib/rest/events/v1/subscription/subscribedEvent.d.ts +290 -0
- package/lib/rest/events/v1/subscription/subscribedEvent.js +254 -0
- package/lib/rest/events/v1/subscription.d.ts +324 -0
- package/lib/rest/events/v1/subscription.js +277 -0
- package/lib/rest/flexApi/V1.d.ts +70 -0
- package/lib/rest/flexApi/V1.js +113 -0
- package/lib/rest/flexApi/V2.d.ts +15 -0
- package/lib/rest/flexApi/V2.js +36 -0
- package/lib/rest/flexApi/v1/assessments.d.ts +81 -0
- package/lib/rest/flexApi/v1/assessments.js +100 -0
- package/lib/rest/flexApi/v1/channel.d.ts +280 -0
- package/lib/rest/flexApi/v1/channel.js +251 -0
- package/lib/rest/flexApi/v1/configuration.d.ts +368 -0
- package/lib/rest/flexApi/v1/configuration.js +195 -0
- package/lib/rest/flexApi/v1/flexFlow.d.ts +406 -0
- package/lib/rest/flexApi/v1/flexFlow.js +336 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.d.ts +168 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.js +167 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +208 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +205 -0
- package/lib/rest/flexApi/v1/insightsSession.d.ts +130 -0
- package/lib/rest/flexApi/v1/insightsSession.js +115 -0
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +82 -0
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.js +83 -0
- package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +67 -0
- package/lib/rest/flexApi/v1/insightsSettingsComment.js +79 -0
- package/lib/rest/flexApi/v1/insightsUserRoles.d.ts +109 -0
- package/lib/rest/flexApi/v1/insightsUserRoles.js +109 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +181 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +154 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +238 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js +222 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +266 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel.js +244 -0
- package/lib/rest/flexApi/v1/interaction.d.ts +126 -0
- package/lib/rest/flexApi/v1/interaction.js +152 -0
- package/lib/rest/flexApi/v1/webChannel.d.ts +305 -0
- package/lib/rest/flexApi/v1/webChannel.js +268 -0
- package/lib/rest/flexApi/v2/webChannels.d.ts +65 -0
- package/lib/rest/flexApi/v2/webChannels.js +82 -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 +164 -0
- package/lib/rest/frontlineApi/v1/user.js +150 -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 +187 -0
- package/lib/rest/insights/v1/call/annotation.js +166 -0
- package/lib/rest/insights/v1/call/callSummary.d.ts +175 -0
- package/lib/rest/insights/v1/call/callSummary.js +159 -0
- package/lib/rest/insights/v1/call/event.d.ts +178 -0
- package/lib/rest/insights/v1/call/event.js +144 -0
- package/lib/rest/insights/v1/call/metric.d.ts +178 -0
- package/lib/rest/insights/v1/call/metric.js +142 -0
- package/lib/rest/insights/v1/call.d.ts +117 -0
- package/lib/rest/insights/v1/call.js +159 -0
- package/lib/rest/insights/v1/callSummaries.d.ts +316 -0
- package/lib/rest/insights/v1/callSummaries.js +196 -0
- package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +375 -0
- package/lib/rest/insights/v1/conference/conferenceParticipant.js +246 -0
- package/lib/rest/insights/v1/conference.d.ts +377 -0
- package/lib/rest/insights/v1/conference.js +248 -0
- package/lib/rest/insights/v1/room/participant.d.ts +280 -0
- package/lib/rest/insights/v1/room/participant.js +212 -0
- package/lib/rest/insights/v1/room.d.ts +363 -0
- package/lib/rest/insights/v1/room.js +244 -0
- package/lib/rest/insights/v1/setting.d.ts +158 -0
- package/lib/rest/insights/v1/setting.js +143 -0
- package/lib/rest/ipMessaging/V1.d.ts +20 -0
- package/lib/rest/ipMessaging/V1.js +37 -53
- package/lib/rest/ipMessaging/V2.d.ts +20 -0
- package/lib/rest/ipMessaging/V2.js +37 -53
- package/lib/rest/ipMessaging/v1/credential.d.ts +303 -0
- package/lib/rest/ipMessaging/v1/credential.js +258 -697
- package/lib/rest/ipMessaging/v1/service/channel/invite.d.ts +256 -0
- package/lib/rest/ipMessaging/v1/service/channel/invite.js +229 -637
- package/lib/rest/ipMessaging/v1/service/channel/member.d.ts +303 -0
- package/lib/rest/ipMessaging/v1/service/channel/member.js +260 -717
- package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +312 -0
- package/lib/rest/ipMessaging/v1/service/channel/message.js +266 -721
- package/lib/rest/ipMessaging/v1/service/channel.d.ts +349 -0
- package/lib/rest/ipMessaging/v1/service/channel.js +303 -812
- package/lib/rest/ipMessaging/v1/service/role.d.ts +274 -0
- package/lib/rest/ipMessaging/v1/service/role.js +249 -693
- package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +163 -0
- package/lib/rest/ipMessaging/v1/service/user/userChannel.js +128 -392
- package/lib/rest/ipMessaging/v1/service/user.d.ts +318 -0
- package/lib/rest/ipMessaging/v1/service/user.js +277 -742
- package/lib/rest/ipMessaging/v1/service.d.ts +449 -0
- package/lib/rest/ipMessaging/v1/service.js +435 -1112
- package/lib/rest/ipMessaging/v2/credential.d.ts +303 -0
- package/lib/rest/ipMessaging/v2/credential.js +258 -697
- package/lib/rest/ipMessaging/v2/service/binding.d.ts +249 -0
- package/lib/rest/ipMessaging/v2/service/binding.js +222 -0
- package/lib/rest/ipMessaging/v2/service/channel/invite.d.ts +256 -0
- package/lib/rest/ipMessaging/v2/service/channel/invite.js +229 -637
- package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +354 -0
- package/lib/rest/ipMessaging/v2/service/channel/member.js +290 -717
- package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +375 -0
- package/lib/rest/ipMessaging/v2/service/channel/message.js +300 -721
- package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +311 -0
- package/lib/rest/ipMessaging/v2/service/channel/webhook.js +288 -0
- package/lib/rest/ipMessaging/v2/service/channel.d.ts +399 -0
- package/lib/rest/ipMessaging/v2/service/channel.js +338 -812
- package/lib/rest/ipMessaging/v2/service/role.d.ts +274 -0
- package/lib/rest/ipMessaging/v2/service/role.js +249 -693
- package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +245 -0
- package/lib/rest/ipMessaging/v2/service/user/userBinding.js +226 -0
- package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +283 -0
- package/lib/rest/ipMessaging/v2/service/user/userChannel.js +243 -389
- package/lib/rest/ipMessaging/v2/service/user.d.ts +331 -0
- package/lib/rest/ipMessaging/v2/service/user.js +294 -742
- package/lib/rest/ipMessaging/v2/service.d.ts +417 -0
- package/lib/rest/ipMessaging/v2/service.js +381 -896
- package/lib/rest/lookups/V1.d.ts +15 -0
- package/lib/rest/lookups/V1.js +31 -42
- package/lib/rest/lookups/V2.d.ts +15 -0
- package/lib/rest/lookups/V2.js +36 -0
- package/lib/rest/lookups/v1/phoneNumber.d.ts +149 -0
- package/lib/rest/lookups/v1/phoneNumber.js +128 -272
- package/lib/rest/lookups/v2/phoneNumber.d.ts +202 -0
- package/lib/rest/lookups/v2/phoneNumber.js +158 -0
- package/lib/rest/media/V1.d.ts +25 -0
- package/lib/rest/media/V1.js +51 -0
- package/lib/rest/media/v1/mediaProcessor.d.ts +318 -0
- package/lib/rest/media/v1/mediaProcessor.js +256 -0
- package/lib/rest/media/v1/mediaRecording.d.ts +310 -0
- package/lib/rest/media/v1/mediaRecording.js +226 -0
- package/lib/rest/media/v1/playerStreamer/playbackGrant.d.ts +151 -0
- package/lib/rest/media/v1/playerStreamer/playbackGrant.js +146 -0
- package/lib/rest/media/v1/playerStreamer.d.ts +328 -0
- package/lib/rest/media/v1/playerStreamer.js +264 -0
- package/lib/rest/messaging/V1.d.ts +50 -0
- package/lib/rest/messaging/V1.js +77 -41
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +265 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +224 -0
- package/lib/rest/messaging/v1/brandRegistration.d.ts +344 -0
- package/lib/rest/messaging/v1/brandRegistration.js +275 -0
- package/lib/rest/messaging/v1/deactivations.d.ts +106 -0
- package/lib/rest/messaging/v1/deactivations.js +107 -0
- package/lib/rest/messaging/v1/domainCerts.d.ts +164 -0
- package/lib/rest/messaging/v1/domainCerts.js +164 -0
- package/lib/rest/messaging/v1/domainConfig.d.ts +153 -0
- package/lib/rest/messaging/v1/domainConfig.js +152 -0
- package/lib/rest/messaging/v1/externalCampaign.d.ts +79 -0
- package/lib/rest/messaging/v1/externalCampaign.js +87 -0
- package/lib/rest/messaging/v1/service/alphaSender.d.ts +264 -0
- package/lib/rest/messaging/v1/service/alphaSender.js +215 -615
- package/lib/rest/messaging/v1/service/phoneNumber.d.ts +270 -0
- package/lib/rest/messaging/v1/service/phoneNumber.js +218 -617
- package/lib/rest/messaging/v1/service/shortCode.d.ts +270 -0
- package/lib/rest/messaging/v1/service/shortCode.js +218 -617
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +384 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.js +304 -0
- package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +62 -0
- package/lib/rest/messaging/v1/service/usAppToPersonUsecase.js +79 -0
- package/lib/rest/messaging/v1/service.d.ts +494 -0
- package/lib/rest/messaging/v1/service.js +388 -862
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +521 -0
- package/lib/rest/messaging/v1/tollfreeVerification.js +396 -0
- package/lib/rest/messaging/v1/usecase.d.ts +45 -0
- package/lib/rest/messaging/v1/usecase.js +62 -0
- package/lib/rest/microvisor/V1.d.ts +20 -0
- package/lib/rest/microvisor/V1.js +42 -0
- package/lib/rest/microvisor/v1/app.d.ts +240 -0
- package/lib/rest/microvisor/v1/app.js +201 -0
- package/lib/rest/microvisor/v1/device.d.ts +281 -0
- package/lib/rest/microvisor/v1/device.js +217 -0
- package/lib/rest/monitor/V1.d.ts +20 -0
- package/lib/rest/monitor/V1.js +37 -52
- package/lib/rest/monitor/v1/alert.d.ts +314 -0
- package/lib/rest/monitor/v1/alert.js +199 -586
- package/lib/rest/monitor/v1/event.d.ts +301 -0
- package/lib/rest/monitor/v1/event.js +195 -543
- package/lib/rest/notify/V1.d.ts +20 -0
- package/lib/rest/notify/V1.js +37 -52
- package/lib/rest/notify/v1/credential.d.ts +324 -0
- package/lib/rest/notify/v1/credential.js +258 -701
- package/lib/rest/notify/v1/service/binding.d.ts +337 -0
- package/lib/rest/notify/v1/service/binding.js +250 -669
- package/lib/rest/notify/v1/service/notification.d.ts +208 -0
- package/lib/rest/notify/v1/service/notification.js +147 -255
- package/lib/rest/notify/v1/service.d.ts +458 -0
- package/lib/rest/notify/v1/service.js +349 -899
- package/lib/rest/numbers/V2.d.ts +15 -0
- package/lib/rest/numbers/V2.js +37 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +219 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.js +163 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +231 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.js +200 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.d.ts +252 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.js +227 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +106 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.js +97 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +445 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +354 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +308 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.js +261 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +211 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.js +179 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +239 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.js +189 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +326 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.js +267 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +211 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.js +179 -0
- package/lib/rest/numbers/v2/regulatoryCompliance.d.ts +34 -0
- package/lib/rest/numbers/v2/regulatoryCompliance.js +87 -0
- package/lib/rest/oauth/V1.d.ts +35 -0
- package/lib/rest/oauth/V1.js +61 -0
- package/lib/rest/oauth/v1/deviceCode.d.ts +87 -0
- package/lib/rest/oauth/v1/deviceCode.js +90 -0
- package/lib/rest/oauth/v1/oauth.d.ts +84 -0
- package/lib/rest/oauth/v1/oauth.js +102 -0
- package/lib/rest/oauth/v1/openidDiscovery.d.ts +150 -0
- package/lib/rest/oauth/v1/openidDiscovery.js +126 -0
- package/lib/rest/oauth/v1/token.d.ts +88 -0
- package/lib/rest/oauth/v1/token.js +98 -0
- package/lib/rest/oauth/v1/userInfo.d.ts +108 -0
- package/lib/rest/oauth/v1/userInfo.js +110 -0
- package/lib/rest/preview/DeployedDevices.d.ts +15 -0
- package/lib/rest/preview/DeployedDevices.js +36 -0
- package/lib/rest/preview/HostedNumbers.d.ts +20 -0
- package/lib/rest/preview/HostedNumbers.js +39 -43
- package/lib/rest/preview/Marketplace.d.ts +20 -0
- package/lib/rest/preview/Marketplace.js +39 -56
- package/lib/rest/preview/Sync.d.ts +15 -0
- package/lib/rest/preview/Sync.js +31 -41
- package/lib/rest/preview/Understand.d.ts +15 -0
- package/lib/rest/preview/Understand.js +36 -0
- package/lib/rest/preview/Wireless.d.ts +25 -0
- package/lib/rest/preview/Wireless.js +43 -63
- package/lib/rest/preview/deployed_devices/fleet/certificate.d.ts +324 -0
- package/lib/rest/preview/deployed_devices/fleet/certificate.js +269 -0
- package/lib/rest/preview/deployed_devices/fleet/deployment.d.ts +318 -0
- package/lib/rest/preview/deployed_devices/fleet/deployment.js +264 -0
- package/lib/rest/preview/deployed_devices/fleet/device.d.ts +358 -0
- package/lib/rest/preview/deployed_devices/fleet/device.js +284 -0
- package/lib/rest/preview/deployed_devices/fleet/key.d.ts +330 -0
- package/lib/rest/preview/deployed_devices/fleet/key.js +268 -0
- package/lib/rest/preview/deployed_devices/fleet.d.ts +352 -0
- package/lib/rest/preview/deployed_devices/fleet.js +307 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +293 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.js +174 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +327 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument.js +285 -0
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +468 -0
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.js +325 -797
- package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.d.ts +219 -0
- package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.js +174 -513
- package/lib/rest/preview/marketplace/availableAddOn.d.ts +231 -0
- package/lib/rest/preview/marketplace/availableAddOn.js +183 -535
- package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.d.ts +251 -0
- package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.js +201 -594
- package/lib/rest/preview/marketplace/installedAddOn.d.ts +332 -0
- package/lib/rest/preview/marketplace/installedAddOn.js +264 -738
- package/lib/rest/preview/sync/service/document/documentPermission.d.ts +280 -0
- package/lib/rest/preview/sync/service/document/documentPermission.js +239 -666
- package/lib/rest/preview/sync/service/document.d.ts +295 -0
- package/lib/rest/preview/sync/service/document.js +266 -735
- package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +321 -0
- package/lib/rest/preview/sync/service/syncList/syncListItem.js +264 -727
- package/lib/rest/preview/sync/service/syncList/syncListPermission.d.ts +280 -0
- package/lib/rest/preview/sync/service/syncList/syncListPermission.js +239 -666
- package/lib/rest/preview/sync/service/syncList.d.ts +270 -0
- package/lib/rest/preview/sync/service/syncList.js +247 -689
- package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +323 -0
- package/lib/rest/preview/sync/service/syncMap/syncMapItem.js +267 -729
- package/lib/rest/preview/sync/service/syncMap/syncMapPermission.d.ts +280 -0
- package/lib/rest/preview/sync/service/syncMap/syncMapPermission.js +239 -666
- package/lib/rest/preview/sync/service/syncMap.d.ts +270 -0
- package/lib/rest/preview/sync/service/syncMap.js +247 -687
- package/lib/rest/preview/sync/service.d.ts +330 -0
- package/lib/rest/preview/sync/service.js +289 -792
- package/lib/rest/preview/understand/assistant/assistantFallbackActions.d.ts +131 -0
- package/lib/rest/preview/understand/assistant/assistantFallbackActions.js +142 -0
- package/lib/rest/preview/understand/assistant/assistantInitiationActions.d.ts +131 -0
- package/lib/rest/preview/understand/assistant/assistantInitiationActions.js +142 -0
- package/lib/rest/preview/understand/assistant/dialogue.d.ts +105 -0
- package/lib/rest/preview/understand/assistant/dialogue.js +120 -0
- package/lib/rest/preview/understand/assistant/fieldType/fieldValue.d.ts +285 -0
- package/lib/rest/preview/understand/assistant/fieldType/fieldValue.js +249 -0
- package/lib/rest/preview/understand/assistant/fieldType.d.ts +318 -0
- package/lib/rest/preview/understand/assistant/fieldType.js +277 -0
- package/lib/rest/preview/understand/assistant/modelBuild.d.ts +320 -0
- package/lib/rest/preview/understand/assistant/modelBuild.js +266 -0
- package/lib/rest/preview/understand/assistant/query.d.ts +361 -0
- package/lib/rest/preview/understand/assistant/query.js +286 -0
- package/lib/rest/preview/understand/assistant/styleSheet.d.ts +140 -0
- package/lib/rest/preview/understand/assistant/styleSheet.js +142 -0
- package/lib/rest/preview/understand/assistant/task/field.d.ts +271 -0
- package/lib/rest/preview/understand/assistant/task/field.js +243 -0
- package/lib/rest/preview/understand/assistant/task/sample.d.ts +331 -0
- package/lib/rest/preview/understand/assistant/task/sample.js +280 -0
- package/lib/rest/preview/understand/assistant/task/taskActions.d.ts +145 -0
- package/lib/rest/preview/understand/assistant/task/taskActions.js +150 -0
- package/lib/rest/preview/understand/assistant/task/taskStatistics.d.ts +112 -0
- package/lib/rest/preview/understand/assistant/task/taskStatistics.js +125 -0
- package/lib/rest/preview/understand/assistant/task.d.ts +356 -0
- package/lib/rest/preview/understand/assistant/task.js +326 -0
- package/lib/rest/preview/understand/assistant.d.ts +422 -0
- package/lib/rest/preview/understand/assistant.js +392 -0
- package/lib/rest/preview/wireless/command.d.ts +266 -0
- package/lib/rest/preview/wireless/command.js +217 -593
- package/lib/rest/preview/wireless/ratePlan.d.ts +326 -0
- package/lib/rest/preview/wireless/ratePlan.js +271 -707
- package/lib/rest/preview/wireless/sim/usage.d.ts +131 -0
- package/lib/rest/preview/wireless/sim/usage.js +128 -274
- package/lib/rest/preview/wireless/sim.d.ts +361 -0
- package/lib/rest/preview/wireless/sim.js +276 -705
- package/lib/rest/pricing/V1.d.ts +25 -0
- package/lib/rest/pricing/V1.js +43 -64
- 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 +233 -0
- package/lib/rest/pricing/v1/messaging/country.js +177 -490
- package/lib/rest/pricing/v1/messaging.d.ts +19 -0
- package/lib/rest/pricing/v1/messaging.js +38 -138
- package/lib/rest/pricing/v1/phoneNumber/country.d.ts +216 -0
- package/lib/rest/pricing/v1/phoneNumber/country.js +169 -488
- package/lib/rest/pricing/v1/phoneNumber.d.ts +19 -0
- package/lib/rest/pricing/v1/phoneNumber.js +38 -138
- package/lib/rest/pricing/v1/voice/country.d.ts +228 -0
- package/lib/rest/pricing/v1/voice/country.js +174 -490
- package/lib/rest/pricing/v1/voice/number.d.ts +127 -0
- package/lib/rest/pricing/v1/voice/number.js +121 -242
- package/lib/rest/pricing/v1/voice.d.ts +22 -0
- package/lib/rest/pricing/v1/voice.js +47 -153
- package/lib/rest/pricing/v2/country.d.ts +229 -0
- package/lib/rest/pricing/v2/country.js +187 -0
- package/lib/rest/pricing/v2/number.d.ts +158 -0
- package/lib/rest/pricing/v2/number.js +137 -0
- package/lib/rest/pricing/v2/voice/country.d.ts +229 -0
- package/lib/rest/pricing/v2/voice/country.js +187 -0
- package/lib/rest/pricing/v2/voice/number.d.ts +159 -0
- package/lib/rest/pricing/v2/voice/number.js +137 -0
- package/lib/rest/pricing/v2/voice.d.ts +22 -0
- package/lib/rest/pricing/v2/voice.js +51 -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 +340 -0
- package/lib/rest/proxy/v1/service/phoneNumber.js +272 -0
- package/lib/rest/proxy/v1/service/session/interaction.d.ts +309 -0
- package/lib/rest/proxy/v1/service/session/interaction.js +238 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +326 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.js +257 -0
- package/lib/rest/proxy/v1/service/session/participant.d.ts +310 -0
- package/lib/rest/proxy/v1/service/session/participant.js +266 -0
- package/lib/rest/proxy/v1/service/session.d.ts +388 -0
- package/lib/rest/proxy/v1/service/session.js +316 -0
- package/lib/rest/proxy/v1/service/shortCode.d.ts +316 -0
- package/lib/rest/proxy/v1/service/shortCode.js +262 -0
- package/lib/rest/proxy/v1/service.d.ts +388 -0
- package/lib/rest/proxy/v1/service.js +330 -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 +168 -0
- package/lib/rest/routes/v2/phoneNumber.js +149 -0
- package/lib/rest/routes/v2/sipDomain.d.ts +144 -0
- package/lib/rest/routes/v2/sipDomain.js +149 -0
- package/lib/rest/routes/v2/trunk.d.ts +168 -0
- package/lib/rest/routes/v2/trunk.js +149 -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 +231 -0
- package/lib/rest/serverless/v1/service/asset/assetVersion.js +197 -0
- package/lib/rest/serverless/v1/service/asset.d.ts +298 -0
- package/lib/rest/serverless/v1/service/asset.js +271 -0
- package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +107 -0
- package/lib/rest/serverless/v1/service/build/buildStatus.js +123 -0
- package/lib/rest/serverless/v1/service/build.d.ts +303 -0
- package/lib/rest/serverless/v1/service/build.js +260 -0
- package/lib/rest/serverless/v1/service/environment/deployment.d.ts +257 -0
- package/lib/rest/serverless/v1/service/environment/deployment.js +220 -0
- package/lib/rest/serverless/v1/service/environment/log.d.ts +273 -0
- package/lib/rest/serverless/v1/service/environment/log.js +211 -0
- package/lib/rest/serverless/v1/service/environment/variable.d.ts +318 -0
- package/lib/rest/serverless/v1/service/environment/variable.js +272 -0
- package/lib/rest/serverless/v1/service/environment.d.ts +308 -0
- package/lib/rest/serverless/v1/service/environment.js +278 -0
- package/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.d.ts +114 -0
- package/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.js +131 -0
- package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +242 -0
- package/lib/rest/serverless/v1/service/function/functionVersion.js +212 -0
- package/lib/rest/serverless/v1/service/function.d.ts +298 -0
- package/lib/rest/serverless/v1/service/function.js +271 -0
- package/lib/rest/serverless/v1/service.d.ts +364 -0
- package/lib/rest/serverless/v1/service.js +321 -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 +109 -0
- package/lib/rest/studio/v1/flow/engagement/engagementContext.js +123 -0
- package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +117 -0
- package/lib/rest/studio/v1/flow/engagement/step/stepContext.js +131 -0
- package/lib/rest/studio/v1/flow/engagement/step.d.ts +265 -0
- package/lib/rest/studio/v1/flow/engagement/step.js +218 -0
- package/lib/rest/studio/v1/flow/engagement.d.ts +300 -0
- package/lib/rest/studio/v1/flow/engagement.js +269 -0
- package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +109 -0
- package/lib/rest/studio/v1/flow/execution/executionContext.js +123 -0
- package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +117 -0
- package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.js +131 -0
- package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +265 -0
- package/lib/rest/studio/v1/flow/execution/executionStep.js +218 -0
- package/lib/rest/studio/v1/flow/execution.d.ts +338 -0
- package/lib/rest/studio/v1/flow/execution.js +298 -0
- package/lib/rest/studio/v1/flow.d.ts +266 -0
- package/lib/rest/studio/v1/flow.js +231 -0
- package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +109 -0
- package/lib/rest/studio/v2/flow/execution/executionContext.js +123 -0
- package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +117 -0
- package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.js +131 -0
- package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +265 -0
- package/lib/rest/studio/v2/flow/execution/executionStep.js +218 -0
- package/lib/rest/studio/v2/flow/execution.d.ts +332 -0
- package/lib/rest/studio/v2/flow/execution.js +296 -0
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +253 -0
- package/lib/rest/studio/v2/flow/flowRevision.js +199 -0
- package/lib/rest/studio/v2/flow/flowTestUser.d.ts +121 -0
- package/lib/rest/studio/v2/flow/flowTestUser.js +138 -0
- package/lib/rest/studio/v2/flow.d.ts +361 -0
- package/lib/rest/studio/v2/flow.js +319 -0
- package/lib/rest/studio/v2/flowValidate.d.ts +60 -0
- package/lib/rest/studio/v2/flowValidate.js +85 -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 +297 -0
- package/lib/rest/supersim/v1/esimProfile.js +226 -0
- package/lib/rest/supersim/v1/fleet.d.ts +363 -0
- package/lib/rest/supersim/v1/fleet.js +277 -0
- package/lib/rest/supersim/v1/ipCommand.d.ts +303 -0
- package/lib/rest/supersim/v1/ipCommand.js +238 -0
- package/lib/rest/supersim/v1/network.d.ts +229 -0
- package/lib/rest/supersim/v1/network.js +185 -0
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +252 -0
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.js +227 -0
- package/lib/rest/supersim/v1/networkAccessProfile.d.ts +296 -0
- package/lib/rest/supersim/v1/networkAccessProfile.js +248 -0
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +194 -0
- package/lib/rest/supersim/v1/settingsUpdate.js +136 -0
- package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +183 -0
- package/lib/rest/supersim/v1/sim/billingPeriod.js +136 -0
- package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +147 -0
- package/lib/rest/supersim/v1/sim/simIpAddress.js +124 -0
- package/lib/rest/supersim/v1/sim.d.ts +341 -0
- package/lib/rest/supersim/v1/sim.js +283 -0
- package/lib/rest/supersim/v1/smsCommand.d.ts +271 -0
- package/lib/rest/supersim/v1/smsCommand.js +222 -0
- package/lib/rest/supersim/v1/usageRecord.d.ts +252 -0
- package/lib/rest/supersim/v1/usageRecord.js +154 -0
- package/lib/rest/sync/V1.d.ts +15 -0
- package/lib/rest/sync/V1.js +31 -41
- package/lib/rest/sync/v1/service/document/documentPermission.d.ts +280 -0
- package/lib/rest/sync/v1/service/document/documentPermission.js +239 -666
- package/lib/rest/sync/v1/service/document.d.ts +354 -0
- package/lib/rest/sync/v1/service/document.js +274 -735
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +385 -0
- package/lib/rest/sync/v1/service/syncList/syncListItem.js +280 -727
- package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +280 -0
- package/lib/rest/sync/v1/service/syncList/syncListPermission.js +239 -666
- package/lib/rest/sync/v1/service/syncList.d.ts +354 -0
- package/lib/rest/sync/v1/service/syncList.js +281 -688
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +387 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.js +283 -729
- package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +280 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapPermission.js +239 -666
- package/lib/rest/sync/v1/service/syncMap.d.ts +354 -0
- package/lib/rest/sync/v1/service/syncMap.js +281 -686
- package/lib/rest/sync/v1/service/syncStream/streamMessage.d.ts +61 -0
- package/lib/rest/sync/v1/service/syncStream/streamMessage.js +83 -0
- package/lib/rest/sync/v1/service/syncStream.d.ts +336 -0
- package/lib/rest/sync/v1/service/syncStream.js +279 -0
- package/lib/rest/sync/v1/service.d.ts +404 -0
- package/lib/rest/sync/v1/service.js +325 -792
- package/lib/rest/taskrouter/V1.d.ts +15 -0
- package/lib/rest/taskrouter/V1.js +31 -41
- package/lib/rest/taskrouter/v1/workspace/activity.d.ts +323 -0
- package/lib/rest/taskrouter/v1/workspace/activity.js +250 -699
- package/lib/rest/taskrouter/v1/workspace/event.d.ts +351 -0
- package/lib/rest/taskrouter/v1/workspace/event.js +218 -571
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +412 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.js +331 -772
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +495 -0
- package/lib/rest/taskrouter/v1/workspace/task.js +323 -809
- package/lib/rest/taskrouter/v1/workspace/taskChannel.d.ts +324 -0
- package/lib/rest/taskrouter/v1/workspace/taskChannel.js +257 -507
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +244 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.js +172 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +188 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.js +148 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +148 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.js +134 -284
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +203 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.js +131 -409
- package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +417 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.js +327 -813
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +401 -0
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.js +325 -772
- package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.d.ts +307 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.js +223 -612
- package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +140 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.js +130 -282
- package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +180 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.js +143 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +132 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.js +123 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +144 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.js +130 -279
- package/lib/rest/taskrouter/v1/workspace/worker.d.ts +454 -0
- package/lib/rest/taskrouter/v1/workspace/worker.js +348 -858
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +244 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.js +171 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +158 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.js +137 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +148 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.js +134 -283
- package/lib/rest/taskrouter/v1/workspace/workflow.d.ts +384 -0
- package/lib/rest/taskrouter/v1/workspace/workflow.js +314 -762
- package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +236 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.js +163 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +162 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.js +133 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +140 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.js +126 -270
- package/lib/rest/taskrouter/v1/workspace.d.ts +452 -0
- package/lib/rest/taskrouter/v1/workspace.js +411 -994
- package/lib/rest/trunking/V1.d.ts +15 -0
- package/lib/rest/trunking/V1.js +31 -41
- package/lib/rest/trunking/v1/trunk/credentialList.d.ts +258 -0
- package/lib/rest/trunking/v1/trunk/credentialList.js +214 -609
- package/lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts +258 -0
- package/lib/rest/trunking/v1/trunk/ipAccessControlList.js +214 -612
- package/lib/rest/trunking/v1/trunk/originationUrl.d.ts +340 -0
- package/lib/rest/trunking/v1/trunk/originationUrl.js +269 -718
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +375 -0
- package/lib/rest/trunking/v1/trunk/phoneNumber.js +252 -648
- package/lib/rest/trunking/v1/trunk/recording.d.ts +129 -0
- package/lib/rest/trunking/v1/trunk/recording.js +140 -0
- package/lib/rest/trunking/v1/trunk.d.ts +431 -0
- package/lib/rest/trunking/v1/trunk.js +344 -834
- package/lib/rest/trusthub/V1.d.ts +45 -0
- package/lib/rest/trusthub/V1.js +76 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.d.ts +272 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.js +239 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.d.ts +252 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.js +227 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +239 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.js +212 -0
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +380 -0
- package/lib/rest/trusthub/v1/customerProfiles.js +322 -0
- package/lib/rest/trusthub/v1/endUser.d.ts +310 -0
- package/lib/rest/trusthub/v1/endUser.js +261 -0
- package/lib/rest/trusthub/v1/endUserType.d.ts +211 -0
- package/lib/rest/trusthub/v1/endUserType.js +179 -0
- package/lib/rest/trusthub/v1/policies.d.ts +205 -0
- package/lib/rest/trusthub/v1/policies.js +177 -0
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +320 -0
- package/lib/rest/trusthub/v1/supportingDocument.js +265 -0
- package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +211 -0
- package/lib/rest/trusthub/v1/supportingDocumentType.js +179 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.d.ts +272 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.js +239 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.d.ts +252 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.js +227 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +239 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.js +212 -0
- package/lib/rest/trusthub/v1/trustProducts.d.ts +380 -0
- package/lib/rest/trusthub/v1/trustProducts.js +322 -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 +98 -0
- package/lib/rest/verify/v2/form.js +112 -0
- package/lib/rest/verify/v2/safelist.d.ts +127 -0
- package/lib/rest/verify/v2/safelist.js +150 -0
- package/lib/rest/verify/v2/service/accessToken.d.ts +158 -0
- package/lib/rest/verify/v2/service/accessToken.js +159 -0
- package/lib/rest/verify/v2/service/entity/challenge/notification.d.ts +112 -0
- package/lib/rest/verify/v2/service/entity/challenge/notification.js +102 -0
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +384 -0
- package/lib/rest/verify/v2/service/entity/challenge.js +296 -0
- package/lib/rest/verify/v2/service/entity/factor.d.ts +335 -0
- package/lib/rest/verify/v2/service/entity/factor.js +270 -0
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +157 -0
- package/lib/rest/verify/v2/service/entity/newFactor.js +137 -0
- package/lib/rest/verify/v2/service/entity.d.ts +288 -0
- package/lib/rest/verify/v2/service/entity.js +270 -0
- package/lib/rest/verify/v2/service/messagingConfiguration.d.ts +286 -0
- package/lib/rest/verify/v2/service/messagingConfiguration.js +260 -0
- package/lib/rest/verify/v2/service/rateLimit/bucket.d.ts +318 -0
- package/lib/rest/verify/v2/service/rateLimit/bucket.js +272 -0
- package/lib/rest/verify/v2/service/rateLimit.d.ts +322 -0
- package/lib/rest/verify/v2/service/rateLimit.js +275 -0
- package/lib/rest/verify/v2/service/verification.d.ts +237 -0
- package/lib/rest/verify/v2/service/verification.js +217 -0
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +134 -0
- package/lib/rest/verify/v2/service/verificationCheck.js +110 -0
- package/lib/rest/verify/v2/service/webhook.d.ts +340 -0
- package/lib/rest/verify/v2/service/webhook.js +287 -0
- package/lib/rest/verify/v2/service.d.ts +481 -0
- package/lib/rest/verify/v2/service.js +426 -0
- package/lib/rest/verify/v2/template.d.ts +172 -0
- package/lib/rest/verify/v2/template.js +128 -0
- package/lib/rest/verify/v2/verificationAttempt.d.ts +288 -0
- package/lib/rest/verify/v2/verificationAttempt.js +207 -0
- package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +138 -0
- package/lib/rest/verify/v2/verificationAttemptsSummary.js +126 -0
- package/lib/rest/video/V1.d.ts +40 -0
- package/lib/rest/video/V1.js +64 -52
- package/lib/rest/video/v1/composition.d.ts +377 -0
- package/lib/rest/video/v1/composition.js +275 -0
- package/lib/rest/video/v1/compositionHook.d.ts +389 -0
- package/lib/rest/video/v1/compositionHook.js +310 -0
- package/lib/rest/video/v1/compositionSettings.d.ts +159 -0
- package/lib/rest/video/v1/compositionSettings.js +151 -0
- package/lib/rest/video/v1/recording.d.ts +335 -0
- package/lib/rest/video/v1/recording.js +223 -588
- package/lib/rest/video/v1/recordingSettings.d.ts +159 -0
- package/lib/rest/video/v1/recordingSettings.js +151 -0
- package/lib/rest/video/v1/room/participant/anonymize.d.ts +143 -0
- package/lib/rest/video/v1/room/participant/anonymize.js +135 -0
- package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +237 -0
- package/lib/rest/video/v1/room/participant/publishedTrack.js +199 -0
- package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +103 -0
- package/lib/rest/video/v1/room/participant/subscribeRules.js +103 -0
- package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +243 -0
- package/lib/rest/video/v1/room/participant/subscribedTrack.js +201 -0
- package/lib/rest/video/v1/room/participant.d.ts +351 -0
- package/lib/rest/video/v1/room/participant.js +286 -0
- package/lib/rest/video/v1/room/recordingRules.d.ts +95 -0
- package/lib/rest/video/v1/room/recordingRules.js +98 -0
- package/lib/rest/video/v1/room/roomRecording.d.ts +318 -0
- package/lib/rest/video/v1/room/roomRecording.js +236 -0
- package/lib/rest/video/v1/room.d.ts +449 -0
- package/lib/rest/video/v1/room.js +322 -706
- 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 +51 -0
- package/lib/rest/voice/v1/archivedCall.js +71 -0
- package/lib/rest/voice/v1/byocTrunk.d.ts +393 -0
- package/lib/rest/voice/v1/byocTrunk.js +304 -0
- package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.d.ts +340 -0
- package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.js +280 -0
- package/lib/rest/voice/v1/connectionPolicy.d.ts +314 -0
- package/lib/rest/voice/v1/connectionPolicy.js +265 -0
- package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.d.ts +59 -0
- package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.js +77 -0
- package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.d.ts +143 -0
- package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.js +122 -0
- package/lib/rest/voice/v1/dialingPermissions/country.d.ts +279 -0
- package/lib/rest/voice/v1/dialingPermissions/country.js +214 -0
- package/lib/rest/voice/v1/dialingPermissions/settings.d.ts +129 -0
- package/lib/rest/voice/v1/dialingPermissions/settings.js +130 -0
- package/lib/rest/voice/v1/dialingPermissions.d.ts +25 -0
- package/lib/rest/voice/v1/dialingPermissions.js +60 -0
- package/lib/rest/voice/v1/ipRecord.d.ts +308 -0
- package/lib/rest/voice/v1/ipRecord.js +256 -0
- package/lib/rest/voice/v1/sourceIpMapping.d.ts +278 -0
- package/lib/rest/voice/v1/sourceIpMapping.js +252 -0
- package/lib/rest/wireless/V1.d.ts +30 -0
- package/lib/rest/wireless/V1.js +49 -63
- package/lib/rest/wireless/v1/command.d.ts +314 -0
- package/lib/rest/wireless/v1/command.js +237 -583
- package/lib/rest/wireless/v1/ratePlan.d.ts +382 -0
- package/lib/rest/wireless/v1/ratePlan.js +278 -716
- package/lib/rest/wireless/v1/sim/dataSession.d.ts +233 -0
- package/lib/rest/wireless/v1/sim/dataSession.js +152 -0
- package/lib/rest/wireless/v1/sim/usageRecord.d.ts +186 -0
- package/lib/rest/wireless/v1/sim/usageRecord.js +125 -402
- package/lib/rest/wireless/v1/sim.d.ts +465 -0
- package/lib/rest/wireless/v1/sim.js +316 -705
- package/lib/rest/wireless/v1/usageRecord.d.ts +179 -0
- package/lib/rest/wireless/v1/usageRecord.js +130 -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 +115 -74
- package/lib/twiml/TwiML.d.ts +42 -0
- package/lib/twiml/TwiML.js +83 -0
- package/lib/twiml/VoiceResponse.d.ts +2448 -0
- package/lib/twiml/VoiceResponse.js +1428 -363
- package/lib/webhooks/webhooks.d.ts +136 -0
- package/lib/webhooks/webhooks.js +253 -117
- package/package.json +48 -22
- package/CHANGES.md +0 -95
- package/lib/rest/Fax.js +0 -54
- package/lib/rest/api/v2010/account/availablePhoneNumber/local.js +0 -517
- package/lib/rest/api/v2010/account/availablePhoneNumber/mobile.js +0 -517
- package/lib/rest/api/v2010/account/availablePhoneNumber/tollFree.js +0 -517
- package/lib/rest/api/v2010/account/availablePhoneNumber.js +0 -623
- package/lib/rest/fax/V1.js +0 -46
- package/lib/rest/fax/v1/fax/faxMedia.js +0 -574
- package/lib/rest/fax/v1/fax.js +0 -789
- package/lib/rest/notify/v1/service/segment.js +0 -397
- package/lib/rest/notify/v1/service/user/segmentMemberships.js +0 -385
- package/lib/rest/notify/v1/service/user/userBinding.js +0 -691
- package/lib/rest/notify/v1/service/user.js +0 -717
- package/lib/rest/preview/BulkExports.js +0 -59
- package/lib/rest/preview/Proxy.js +0 -46
- package/lib/rest/preview/bulk_exports/export/day.js +0 -393
- package/lib/rest/preview/bulk_exports/export.js +0 -282
- package/lib/rest/preview/bulk_exports/exportConfiguration.js +0 -337
- package/lib/rest/preview/proxy/service/phoneNumber.js +0 -633
- package/lib/rest/preview/proxy/service/session/interaction.js +0 -584
- package/lib/rest/preview/proxy/service/session/participant/messageInteraction.js +0 -635
- package/lib/rest/preview/proxy/service/session/participant.js +0 -807
- package/lib/rest/preview/proxy/service/session.js +0 -815
- package/lib/rest/preview/proxy/service/shortCode.js +0 -632
- package/lib/rest/preview/proxy/service.js +0 -807
- package/lib/rest/video/v1/room/recording.js +0 -558
|
@@ -1,758 +1,293 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* jshint ignore:start */
|
|
4
|
-
/**
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
5
3
|
* This code was generated by
|
|
6
|
-
*
|
|
7
|
-
* |
|
|
8
|
-
*
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var Q = require('q'); /* jshint ignore:line */
|
|
13
|
-
var _ = require('lodash'); /* jshint ignore:line */
|
|
14
|
-
var Page = require('../../../../base/Page'); /* jshint ignore:line */
|
|
15
|
-
var UserChannelList = require('./user/userChannel').UserChannelList;
|
|
16
|
-
var deserialize = require(
|
|
17
|
-
'../../../../base/deserialize'); /* jshint ignore:line */
|
|
18
|
-
var values = require('../../../../base/values'); /* jshint ignore:line */
|
|
19
|
-
|
|
20
|
-
var UserList;
|
|
21
|
-
var UserPage;
|
|
22
|
-
var UserInstance;
|
|
23
|
-
var UserContext;
|
|
24
|
-
|
|
25
|
-
/* jshint ignore:start */
|
|
26
|
-
/**
|
|
27
|
-
* @constructor Twilio.Chat.V1.ServiceContext.UserList
|
|
28
|
-
* @description Initialize the UserList
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Chat
|
|
9
|
+
* This is the public Twilio REST API.
|
|
29
10
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
32
14
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
UserListInstance._uri = _.template(
|
|
56
|
-
'/Services/<%= serviceSid %>/Users' // jshint ignore:line
|
|
57
|
-
)(UserListInstance._solution);
|
|
58
|
-
/* jshint ignore:start */
|
|
59
|
-
/**
|
|
60
|
-
* create a UserInstance
|
|
61
|
-
*
|
|
62
|
-
* @function create
|
|
63
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserList
|
|
64
|
-
* @instance
|
|
65
|
-
*
|
|
66
|
-
* @param {object} opts - ...
|
|
67
|
-
* @param {string} opts.identity - The identity
|
|
68
|
-
* @param {string} [opts.roleSid] - The role_sid
|
|
69
|
-
* @param {string} [opts.attributes] - The attributes
|
|
70
|
-
* @param {string} [opts.friendlyName] - The friendly_name
|
|
71
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
72
|
-
*
|
|
73
|
-
* @returns {Promise} Resolves to processed UserInstance
|
|
74
|
-
*/
|
|
75
|
-
/* jshint ignore:end */
|
|
76
|
-
UserListInstance.create = function create(opts, callback) {
|
|
77
|
-
if (_.isUndefined(opts)) {
|
|
78
|
-
throw new Error('Required parameter "opts" missing.');
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.UserPage = exports.UserListInstance = exports.UserInstance = exports.UserContextImpl = void 0;
|
|
20
|
+
const util_1 = require("util");
|
|
21
|
+
const Page_1 = __importDefault(require("../../../../base/Page"));
|
|
22
|
+
const deserialize = require("../../../../base/deserialize");
|
|
23
|
+
const serialize = require("../../../../base/serialize");
|
|
24
|
+
const utility_1 = require("../../../../base/utility");
|
|
25
|
+
const userChannel_1 = require("./user/userChannel");
|
|
26
|
+
class UserContextImpl {
|
|
27
|
+
constructor(_version, serviceSid, sid) {
|
|
28
|
+
this._version = _version;
|
|
29
|
+
if (!(0, utility_1.isValidPathParam)(serviceSid)) {
|
|
30
|
+
throw new Error("Parameter 'serviceSid' is not valid.");
|
|
31
|
+
}
|
|
32
|
+
if (!(0, utility_1.isValidPathParam)(sid)) {
|
|
33
|
+
throw new Error("Parameter 'sid' is not valid.");
|
|
34
|
+
}
|
|
35
|
+
this._solution = { serviceSid, sid };
|
|
36
|
+
this._uri = `/Services/${serviceSid}/Users/${sid}`;
|
|
79
37
|
}
|
|
80
|
-
|
|
81
|
-
|
|
38
|
+
get userChannels() {
|
|
39
|
+
this._userChannels =
|
|
40
|
+
this._userChannels ||
|
|
41
|
+
(0, userChannel_1.UserChannelListInstance)(this._version, this._solution.serviceSid, this._solution.sid);
|
|
42
|
+
return this._userChannels;
|
|
82
43
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
var promise = this._version.create({
|
|
93
|
-
uri: this._uri,
|
|
94
|
-
method: 'POST',
|
|
95
|
-
data: data
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
promise = promise.then(function(payload) {
|
|
99
|
-
deferred.resolve(new UserInstance(
|
|
100
|
-
this._version,
|
|
101
|
-
payload,
|
|
102
|
-
this._solution.serviceSid,
|
|
103
|
-
this._solution.sid
|
|
104
|
-
));
|
|
105
|
-
}.bind(this));
|
|
106
|
-
|
|
107
|
-
promise.catch(function(error) {
|
|
108
|
-
deferred.reject(error);
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
if (_.isFunction(callback)) {
|
|
112
|
-
deferred.promise.nodeify(callback);
|
|
44
|
+
remove(callback) {
|
|
45
|
+
const instance = this;
|
|
46
|
+
let operationVersion = instance._version, operationPromise = operationVersion.remove({
|
|
47
|
+
uri: instance._uri,
|
|
48
|
+
method: "delete",
|
|
49
|
+
});
|
|
50
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
51
|
+
return operationPromise;
|
|
113
52
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
* is reached.
|
|
124
|
-
*
|
|
125
|
-
* The results are passed into the callback function, so this operation is memory efficient.
|
|
126
|
-
*
|
|
127
|
-
* If a function is passed as the first argument, it will be used as the callback function.
|
|
128
|
-
*
|
|
129
|
-
* @function each
|
|
130
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserList
|
|
131
|
-
* @instance
|
|
132
|
-
*
|
|
133
|
-
* @param {object|function} opts - ...
|
|
134
|
-
* @param {number} [opts.limit] -
|
|
135
|
-
* Upper limit for the number of records to return.
|
|
136
|
-
* each() guarantees never to return more than limit.
|
|
137
|
-
* Default is no limit
|
|
138
|
-
* @param {number} [opts.pageSize=50] -
|
|
139
|
-
* Number of records to fetch per request,
|
|
140
|
-
* when not set will use the default value of 50 records.
|
|
141
|
-
* If no pageSize is defined but a limit is defined,
|
|
142
|
-
* each() will attempt to read the limit with the most efficient
|
|
143
|
-
* page size, i.e. min(limit, 1000)
|
|
144
|
-
* @param {Function} [opts.callback] -
|
|
145
|
-
* Function to process each record. If this and a positional
|
|
146
|
-
* callback are passed, this one will be used
|
|
147
|
-
* @param {Function} [opts.done] -
|
|
148
|
-
* Function to be called upon completion of streaming
|
|
149
|
-
* @param {Function} [callback] - Function to process each record
|
|
150
|
-
*/
|
|
151
|
-
/* jshint ignore:end */
|
|
152
|
-
UserListInstance.each = function each(opts, callback) {
|
|
153
|
-
opts = opts || {};
|
|
154
|
-
if (_.isFunction(opts)) {
|
|
155
|
-
opts = { callback: opts };
|
|
156
|
-
} else if (_.isFunction(callback) && !_.isFunction(opts.callback)) {
|
|
157
|
-
opts.callback = callback;
|
|
53
|
+
fetch(callback) {
|
|
54
|
+
const instance = this;
|
|
55
|
+
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
56
|
+
uri: instance._uri,
|
|
57
|
+
method: "get",
|
|
58
|
+
});
|
|
59
|
+
operationPromise = operationPromise.then((payload) => new UserInstance(operationVersion, payload, instance._solution.serviceSid, instance._solution.sid));
|
|
60
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
61
|
+
return operationPromise;
|
|
158
62
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
63
|
+
update(params, callback) {
|
|
64
|
+
if (params instanceof Function) {
|
|
65
|
+
callback = params;
|
|
66
|
+
params = {};
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
params = params || {};
|
|
70
|
+
}
|
|
71
|
+
let data = {};
|
|
72
|
+
if (params["roleSid"] !== undefined)
|
|
73
|
+
data["RoleSid"] = params["roleSid"];
|
|
74
|
+
if (params["attributes"] !== undefined)
|
|
75
|
+
data["Attributes"] = params["attributes"];
|
|
76
|
+
if (params["friendlyName"] !== undefined)
|
|
77
|
+
data["FriendlyName"] = params["friendlyName"];
|
|
78
|
+
const headers = {};
|
|
79
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
80
|
+
const instance = this;
|
|
81
|
+
let operationVersion = instance._version, operationPromise = operationVersion.update({
|
|
82
|
+
uri: instance._uri,
|
|
83
|
+
method: "post",
|
|
84
|
+
data,
|
|
85
|
+
headers,
|
|
86
|
+
});
|
|
87
|
+
operationPromise = operationPromise.then((payload) => new UserInstance(operationVersion, payload, instance._solution.serviceSid, instance._solution.sid));
|
|
88
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
89
|
+
return operationPromise;
|
|
162
90
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
function onComplete(error) {
|
|
173
|
-
done = true;
|
|
174
|
-
if (_.isFunction(opts.done)) {
|
|
175
|
-
opts.done(error);
|
|
176
|
-
}
|
|
91
|
+
/**
|
|
92
|
+
* Provide a user-friendly representation
|
|
93
|
+
*
|
|
94
|
+
* @returns Object
|
|
95
|
+
*/
|
|
96
|
+
toJSON() {
|
|
97
|
+
return this._solution;
|
|
177
98
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
var promise = fn();
|
|
181
|
-
if (_.isUndefined(promise)) {
|
|
182
|
-
onComplete();
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
promise.then(function(page) {
|
|
187
|
-
_.each(page.instances, function(instance) {
|
|
188
|
-
if (done || (!_.isUndefined(opts.limit) && currentResource >= opts.limit)) {
|
|
189
|
-
done = true;
|
|
190
|
-
return false;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
currentResource++;
|
|
194
|
-
opts.callback(instance, onComplete);
|
|
195
|
-
});
|
|
196
|
-
|
|
197
|
-
if ((limits.pageLimit && limits.pageLimit <= currentPage)) {
|
|
198
|
-
onComplete();
|
|
199
|
-
} else if (!done) {
|
|
200
|
-
currentPage++;
|
|
201
|
-
fetchNextPage(_.bind(page.nextPage, page));
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
promise.catch(onComplete);
|
|
99
|
+
[util_1.inspect.custom](_depth, options) {
|
|
100
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
206
101
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
* Number of records to fetch per request,
|
|
228
|
-
* when not set will use the default value of 50 records.
|
|
229
|
-
* If no page_size is defined but a limit is defined,
|
|
230
|
-
* list() will attempt to read the limit with the most
|
|
231
|
-
* efficient page size, i.e. min(limit, 1000)
|
|
232
|
-
* @param {function} [callback] - Callback to handle list of records
|
|
233
|
-
*
|
|
234
|
-
* @returns {Promise} Resolves to a list of records
|
|
235
|
-
*/
|
|
236
|
-
/* jshint ignore:end */
|
|
237
|
-
UserListInstance.list = function list(opts, callback) {
|
|
238
|
-
if (_.isFunction(opts)) {
|
|
239
|
-
callback = opts;
|
|
240
|
-
opts = {};
|
|
102
|
+
}
|
|
103
|
+
exports.UserContextImpl = UserContextImpl;
|
|
104
|
+
class UserInstance {
|
|
105
|
+
constructor(_version, payload, serviceSid, sid) {
|
|
106
|
+
this._version = _version;
|
|
107
|
+
this.sid = payload.sid;
|
|
108
|
+
this.accountSid = payload.account_sid;
|
|
109
|
+
this.serviceSid = payload.service_sid;
|
|
110
|
+
this.attributes = payload.attributes;
|
|
111
|
+
this.friendlyName = payload.friendly_name;
|
|
112
|
+
this.roleSid = payload.role_sid;
|
|
113
|
+
this.identity = payload.identity;
|
|
114
|
+
this.isOnline = payload.is_online;
|
|
115
|
+
this.isNotifiable = payload.is_notifiable;
|
|
116
|
+
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
117
|
+
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
118
|
+
this.joinedChannelsCount = deserialize.integer(payload.joined_channels_count);
|
|
119
|
+
this.links = payload.links;
|
|
120
|
+
this.url = payload.url;
|
|
121
|
+
this._solution = { serviceSid, sid: sid || this.sid };
|
|
241
122
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
if (!_.isUndefined(opts.limit) && allResources.length === opts.limit) {
|
|
249
|
-
done();
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
opts.done = function(error) {
|
|
254
|
-
if (_.isUndefined(error)) {
|
|
255
|
-
deferred.resolve(allResources);
|
|
256
|
-
} else {
|
|
257
|
-
deferred.reject(error);
|
|
258
|
-
}
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
if (_.isFunction(callback)) {
|
|
262
|
-
deferred.promise.nodeify(callback);
|
|
123
|
+
get _proxy() {
|
|
124
|
+
this._context =
|
|
125
|
+
this._context ||
|
|
126
|
+
new UserContextImpl(this._version, this._solution.serviceSid, this._solution.sid);
|
|
127
|
+
return this._context;
|
|
263
128
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
*
|
|
274
|
-
* If a function is passed as the first argument, it will be used as the callback function.
|
|
275
|
-
*
|
|
276
|
-
* @function page
|
|
277
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserList
|
|
278
|
-
* @instance
|
|
279
|
-
*
|
|
280
|
-
* @param {object|function} opts - ...
|
|
281
|
-
* @param {string} [opts.pageToken] - PageToken provided by the API
|
|
282
|
-
* @param {number} [opts.pageNumber] -
|
|
283
|
-
* Page Number, this value is simply for client state
|
|
284
|
-
* @param {number} [opts.pageSize] - Number of records to return, defaults to 50
|
|
285
|
-
* @param {function} [callback] - Callback to handle list of records
|
|
286
|
-
*
|
|
287
|
-
* @returns {Promise} Resolves to a list of records
|
|
288
|
-
*/
|
|
289
|
-
/* jshint ignore:end */
|
|
290
|
-
UserListInstance.page = function page(opts, callback) {
|
|
291
|
-
opts = opts || {};
|
|
292
|
-
|
|
293
|
-
var deferred = Q.defer();
|
|
294
|
-
var data = values.of({
|
|
295
|
-
'PageToken': opts.pageToken,
|
|
296
|
-
'Page': opts.pageNumber,
|
|
297
|
-
'PageSize': opts.pageSize
|
|
298
|
-
});
|
|
299
|
-
|
|
300
|
-
var promise = this._version.page({
|
|
301
|
-
uri: this._uri,
|
|
302
|
-
method: 'GET',
|
|
303
|
-
params: data
|
|
304
|
-
});
|
|
305
|
-
|
|
306
|
-
promise = promise.then(function(payload) {
|
|
307
|
-
deferred.resolve(new UserPage(
|
|
308
|
-
this._version,
|
|
309
|
-
payload,
|
|
310
|
-
this._solution
|
|
311
|
-
));
|
|
312
|
-
}.bind(this));
|
|
313
|
-
|
|
314
|
-
promise.catch(function(error) {
|
|
315
|
-
deferred.reject(error);
|
|
316
|
-
});
|
|
317
|
-
|
|
318
|
-
if (_.isFunction(callback)) {
|
|
319
|
-
deferred.promise.nodeify(callback);
|
|
129
|
+
/**
|
|
130
|
+
* Remove a UserInstance
|
|
131
|
+
*
|
|
132
|
+
* @param callback - Callback to handle processed record
|
|
133
|
+
*
|
|
134
|
+
* @returns Resolves to processed boolean
|
|
135
|
+
*/
|
|
136
|
+
remove(callback) {
|
|
137
|
+
return this._proxy.remove(callback);
|
|
320
138
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
* If a function is passed as the first argument, it will be used as the callback function.
|
|
331
|
-
*
|
|
332
|
-
* @function getPage
|
|
333
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserList
|
|
334
|
-
* @instance
|
|
335
|
-
*
|
|
336
|
-
* @param {string} [targetUrl] - API-generated URL for the requested results page
|
|
337
|
-
* @param {function} [callback] - Callback to handle list of records
|
|
338
|
-
*
|
|
339
|
-
* @returns {Promise} Resolves to a list of records
|
|
340
|
-
*/
|
|
341
|
-
/* jshint ignore:end */
|
|
342
|
-
UserListInstance.getPage = function getPage(targetUrl, callback) {
|
|
343
|
-
var deferred = Q.defer();
|
|
344
|
-
|
|
345
|
-
var promise = this._version._domain.twilio.request({
|
|
346
|
-
method: 'GET',
|
|
347
|
-
uri: targetUrl
|
|
348
|
-
});
|
|
349
|
-
|
|
350
|
-
promise = promise.then(function(payload) {
|
|
351
|
-
deferred.resolve(new UserPage(
|
|
352
|
-
this._version,
|
|
353
|
-
payload,
|
|
354
|
-
this._solution
|
|
355
|
-
));
|
|
356
|
-
}.bind(this));
|
|
357
|
-
|
|
358
|
-
promise.catch(function(error) {
|
|
359
|
-
deferred.reject(error);
|
|
360
|
-
});
|
|
361
|
-
|
|
362
|
-
if (_.isFunction(callback)) {
|
|
363
|
-
deferred.promise.nodeify(callback);
|
|
139
|
+
/**
|
|
140
|
+
* Fetch a UserInstance
|
|
141
|
+
*
|
|
142
|
+
* @param callback - Callback to handle processed record
|
|
143
|
+
*
|
|
144
|
+
* @returns Resolves to processed UserInstance
|
|
145
|
+
*/
|
|
146
|
+
fetch(callback) {
|
|
147
|
+
return this._proxy.fetch(callback);
|
|
364
148
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
};
|
|
368
|
-
|
|
369
|
-
/* jshint ignore:start */
|
|
370
|
-
/**
|
|
371
|
-
* Constructs a user
|
|
372
|
-
*
|
|
373
|
-
* @function get
|
|
374
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserList
|
|
375
|
-
* @instance
|
|
376
|
-
*
|
|
377
|
-
* @param {string} sid - The sid
|
|
378
|
-
*
|
|
379
|
-
* @returns {Twilio.Chat.V1.ServiceContext.UserContext}
|
|
380
|
-
*/
|
|
381
|
-
/* jshint ignore:end */
|
|
382
|
-
UserListInstance.get = function get(sid) {
|
|
383
|
-
return new UserContext(
|
|
384
|
-
this._version,
|
|
385
|
-
this._solution.serviceSid,
|
|
386
|
-
sid
|
|
387
|
-
);
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
return UserListInstance;
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
/* jshint ignore:start */
|
|
395
|
-
/**
|
|
396
|
-
* @constructor Twilio.Chat.V1.ServiceContext.UserPage
|
|
397
|
-
* @augments Page
|
|
398
|
-
* @description Initialize the UserPage
|
|
399
|
-
*
|
|
400
|
-
* @param {Twilio.Chat.V1} version - Version of the resource
|
|
401
|
-
* @param {object} response - Response from the API
|
|
402
|
-
* @param {object} solution - Path solution
|
|
403
|
-
*
|
|
404
|
-
* @returns UserPage
|
|
405
|
-
*/
|
|
406
|
-
/* jshint ignore:end */
|
|
407
|
-
UserPage = function UserPage(version, response, solution) {
|
|
408
|
-
// Path Solution
|
|
409
|
-
this._solution = solution;
|
|
410
|
-
|
|
411
|
-
Page.prototype.constructor.call(this, version, response, this._solution);
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
_.extend(UserPage.prototype, Page.prototype);
|
|
415
|
-
UserPage.prototype.constructor = UserPage;
|
|
416
|
-
|
|
417
|
-
/* jshint ignore:start */
|
|
418
|
-
/**
|
|
419
|
-
* Build an instance of UserInstance
|
|
420
|
-
*
|
|
421
|
-
* @function getInstance
|
|
422
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserPage
|
|
423
|
-
* @instance
|
|
424
|
-
*
|
|
425
|
-
* @param {object} payload - Payload response from the API
|
|
426
|
-
*
|
|
427
|
-
* @returns UserInstance
|
|
428
|
-
*/
|
|
429
|
-
/* jshint ignore:end */
|
|
430
|
-
UserPage.prototype.getInstance = function getInstance(payload) {
|
|
431
|
-
return new UserInstance(
|
|
432
|
-
this._version,
|
|
433
|
-
payload,
|
|
434
|
-
this._solution.serviceSid
|
|
435
|
-
);
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
/* jshint ignore:start */
|
|
440
|
-
/**
|
|
441
|
-
* @constructor Twilio.Chat.V1.ServiceContext.UserInstance
|
|
442
|
-
* @description Initialize the UserContext
|
|
443
|
-
*
|
|
444
|
-
* @property {string} sid - The sid
|
|
445
|
-
* @property {string} accountSid - The account_sid
|
|
446
|
-
* @property {string} serviceSid - The service_sid
|
|
447
|
-
* @property {string} attributes - The attributes
|
|
448
|
-
* @property {string} friendlyName - The friendly_name
|
|
449
|
-
* @property {string} roleSid - The role_sid
|
|
450
|
-
* @property {string} identity - The identity
|
|
451
|
-
* @property {boolean} isOnline - The is_online
|
|
452
|
-
* @property {boolean} isNotifiable - The is_notifiable
|
|
453
|
-
* @property {Date} dateCreated - The date_created
|
|
454
|
-
* @property {Date} dateUpdated - The date_updated
|
|
455
|
-
* @property {number} joinedChannelsCount - The joined_channels_count
|
|
456
|
-
* @property {string} links - The links
|
|
457
|
-
* @property {string} url - The url
|
|
458
|
-
*
|
|
459
|
-
* @param {Twilio.Chat.V1} version - Version of the resource
|
|
460
|
-
* @param {object} payload - The instance payload
|
|
461
|
-
* @param {sid} serviceSid - The service_sid
|
|
462
|
-
* @param {sid_like} sid - The sid
|
|
463
|
-
*/
|
|
464
|
-
/* jshint ignore:end */
|
|
465
|
-
UserInstance = function UserInstance(version, payload, serviceSid, sid) {
|
|
466
|
-
this._version = version;
|
|
467
|
-
|
|
468
|
-
// Marshaled Properties
|
|
469
|
-
this.sid = payload.sid; // jshint ignore:line
|
|
470
|
-
this.accountSid = payload.account_sid; // jshint ignore:line
|
|
471
|
-
this.serviceSid = payload.service_sid; // jshint ignore:line
|
|
472
|
-
this.attributes = payload.attributes; // jshint ignore:line
|
|
473
|
-
this.friendlyName = payload.friendly_name; // jshint ignore:line
|
|
474
|
-
this.roleSid = payload.role_sid; // jshint ignore:line
|
|
475
|
-
this.identity = payload.identity; // jshint ignore:line
|
|
476
|
-
this.isOnline = payload.is_online; // jshint ignore:line
|
|
477
|
-
this.isNotifiable = payload.is_notifiable; // jshint ignore:line
|
|
478
|
-
this.dateCreated = deserialize.iso8601DateTime(payload.date_created); // jshint ignore:line
|
|
479
|
-
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated); // jshint ignore:line
|
|
480
|
-
this.joinedChannelsCount = deserialize.integer(payload.joined_channels_count); // jshint ignore:line
|
|
481
|
-
this.links = payload.links; // jshint ignore:line
|
|
482
|
-
this.url = payload.url; // jshint ignore:line
|
|
483
|
-
|
|
484
|
-
// Context
|
|
485
|
-
this._context = undefined;
|
|
486
|
-
this._solution = {
|
|
487
|
-
serviceSid: serviceSid,
|
|
488
|
-
sid: sid || this.sid,
|
|
489
|
-
};
|
|
490
|
-
};
|
|
491
|
-
|
|
492
|
-
Object.defineProperty(UserInstance.prototype,
|
|
493
|
-
'_proxy', {
|
|
494
|
-
get: function() {
|
|
495
|
-
if (!this._context) {
|
|
496
|
-
this._context = new UserContext(
|
|
497
|
-
this._version,
|
|
498
|
-
this._solution.serviceSid,
|
|
499
|
-
this._solution.sid
|
|
500
|
-
);
|
|
149
|
+
update(params, callback) {
|
|
150
|
+
return this._proxy.update(params, callback);
|
|
501
151
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
/* jshint ignore:start */
|
|
508
|
-
/**
|
|
509
|
-
* fetch a UserInstance
|
|
510
|
-
*
|
|
511
|
-
* @function fetch
|
|
512
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserInstance
|
|
513
|
-
* @instance
|
|
514
|
-
*
|
|
515
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
516
|
-
*
|
|
517
|
-
* @returns {Promise} Resolves to processed UserInstance
|
|
518
|
-
*/
|
|
519
|
-
/* jshint ignore:end */
|
|
520
|
-
UserInstance.prototype.fetch = function fetch(callback) {
|
|
521
|
-
return this._proxy.fetch(callback);
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
/* jshint ignore:start */
|
|
525
|
-
/**
|
|
526
|
-
* remove a UserInstance
|
|
527
|
-
*
|
|
528
|
-
* @function remove
|
|
529
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserInstance
|
|
530
|
-
* @instance
|
|
531
|
-
*
|
|
532
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
533
|
-
*
|
|
534
|
-
* @returns {Promise} Resolves to processed UserInstance
|
|
535
|
-
*/
|
|
536
|
-
/* jshint ignore:end */
|
|
537
|
-
UserInstance.prototype.remove = function remove(callback) {
|
|
538
|
-
return this._proxy.remove(callback);
|
|
539
|
-
};
|
|
540
|
-
|
|
541
|
-
/* jshint ignore:start */
|
|
542
|
-
/**
|
|
543
|
-
* update a UserInstance
|
|
544
|
-
*
|
|
545
|
-
* @function update
|
|
546
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserInstance
|
|
547
|
-
* @instance
|
|
548
|
-
*
|
|
549
|
-
* @param {object|function} opts - ...
|
|
550
|
-
* @param {string} [opts.roleSid] - The role_sid
|
|
551
|
-
* @param {string} [opts.attributes] - The attributes
|
|
552
|
-
* @param {string} [opts.friendlyName] - The friendly_name
|
|
553
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
554
|
-
*
|
|
555
|
-
* @returns {Promise} Resolves to processed UserInstance
|
|
556
|
-
*/
|
|
557
|
-
/* jshint ignore:end */
|
|
558
|
-
UserInstance.prototype.update = function update(opts, callback) {
|
|
559
|
-
return this._proxy.update(opts, callback);
|
|
560
|
-
};
|
|
561
|
-
|
|
562
|
-
/* jshint ignore:start */
|
|
563
|
-
/**
|
|
564
|
-
* Access the userChannels
|
|
565
|
-
*
|
|
566
|
-
* @function userChannels
|
|
567
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserInstance
|
|
568
|
-
* @instance
|
|
569
|
-
*
|
|
570
|
-
* @returns {Twilio.Chat.V1.ServiceContext.UserContext.UserChannelList}
|
|
571
|
-
*/
|
|
572
|
-
/* jshint ignore:end */
|
|
573
|
-
UserInstance.prototype.userChannels = function userChannels() {
|
|
574
|
-
return this._proxy.userChannels;
|
|
575
|
-
};
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
/* jshint ignore:start */
|
|
579
|
-
/**
|
|
580
|
-
* @constructor Twilio.Chat.V1.ServiceContext.UserContext
|
|
581
|
-
* @description Initialize the UserContext
|
|
582
|
-
*
|
|
583
|
-
* @property {Twilio.Chat.V1.ServiceContext.UserContext.UserChannelList} userChannels -
|
|
584
|
-
* userChannels resource
|
|
585
|
-
*
|
|
586
|
-
* @param {Twilio.Chat.V1} version - Version of the resource
|
|
587
|
-
* @param {sid} serviceSid - The service_sid
|
|
588
|
-
* @param {sid_like} sid - The sid
|
|
589
|
-
*/
|
|
590
|
-
/* jshint ignore:end */
|
|
591
|
-
UserContext = function UserContext(version, serviceSid, sid) {
|
|
592
|
-
this._version = version;
|
|
593
|
-
|
|
594
|
-
// Path Solution
|
|
595
|
-
this._solution = {
|
|
596
|
-
serviceSid: serviceSid,
|
|
597
|
-
sid: sid,
|
|
598
|
-
};
|
|
599
|
-
this._uri = _.template(
|
|
600
|
-
'/Services/<%= serviceSid %>/Users/<%= sid %>' // jshint ignore:line
|
|
601
|
-
)(this._solution);
|
|
602
|
-
|
|
603
|
-
// Dependents
|
|
604
|
-
this._userChannels = undefined;
|
|
605
|
-
};
|
|
606
|
-
|
|
607
|
-
/* jshint ignore:start */
|
|
608
|
-
/**
|
|
609
|
-
* fetch a UserInstance
|
|
610
|
-
*
|
|
611
|
-
* @function fetch
|
|
612
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserContext
|
|
613
|
-
* @instance
|
|
614
|
-
*
|
|
615
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
616
|
-
*
|
|
617
|
-
* @returns {Promise} Resolves to processed UserInstance
|
|
618
|
-
*/
|
|
619
|
-
/* jshint ignore:end */
|
|
620
|
-
UserContext.prototype.fetch = function fetch(callback) {
|
|
621
|
-
var deferred = Q.defer();
|
|
622
|
-
var promise = this._version.fetch({
|
|
623
|
-
uri: this._uri,
|
|
624
|
-
method: 'GET'
|
|
625
|
-
});
|
|
626
|
-
|
|
627
|
-
promise = promise.then(function(payload) {
|
|
628
|
-
deferred.resolve(new UserInstance(
|
|
629
|
-
this._version,
|
|
630
|
-
payload,
|
|
631
|
-
this._solution.serviceSid,
|
|
632
|
-
this._solution.sid
|
|
633
|
-
));
|
|
634
|
-
}.bind(this));
|
|
635
|
-
|
|
636
|
-
promise.catch(function(error) {
|
|
637
|
-
deferred.reject(error);
|
|
638
|
-
});
|
|
639
|
-
|
|
640
|
-
if (_.isFunction(callback)) {
|
|
641
|
-
deferred.promise.nodeify(callback);
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
return deferred.promise;
|
|
645
|
-
};
|
|
646
|
-
|
|
647
|
-
/* jshint ignore:start */
|
|
648
|
-
/**
|
|
649
|
-
* remove a UserInstance
|
|
650
|
-
*
|
|
651
|
-
* @function remove
|
|
652
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserContext
|
|
653
|
-
* @instance
|
|
654
|
-
*
|
|
655
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
656
|
-
*
|
|
657
|
-
* @returns {Promise} Resolves to processed UserInstance
|
|
658
|
-
*/
|
|
659
|
-
/* jshint ignore:end */
|
|
660
|
-
UserContext.prototype.remove = function remove(callback) {
|
|
661
|
-
var deferred = Q.defer();
|
|
662
|
-
var promise = this._version.remove({
|
|
663
|
-
uri: this._uri,
|
|
664
|
-
method: 'DELETE'
|
|
665
|
-
});
|
|
666
|
-
|
|
667
|
-
promise = promise.then(function(payload) {
|
|
668
|
-
deferred.resolve(payload);
|
|
669
|
-
}.bind(this));
|
|
670
|
-
|
|
671
|
-
promise.catch(function(error) {
|
|
672
|
-
deferred.reject(error);
|
|
673
|
-
});
|
|
674
|
-
|
|
675
|
-
if (_.isFunction(callback)) {
|
|
676
|
-
deferred.promise.nodeify(callback);
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
return deferred.promise;
|
|
680
|
-
};
|
|
681
|
-
|
|
682
|
-
/* jshint ignore:start */
|
|
683
|
-
/**
|
|
684
|
-
* update a UserInstance
|
|
685
|
-
*
|
|
686
|
-
* @function update
|
|
687
|
-
* @memberof Twilio.Chat.V1.ServiceContext.UserContext
|
|
688
|
-
* @instance
|
|
689
|
-
*
|
|
690
|
-
* @param {object|function} opts - ...
|
|
691
|
-
* @param {string} [opts.roleSid] - The role_sid
|
|
692
|
-
* @param {string} [opts.attributes] - The attributes
|
|
693
|
-
* @param {string} [opts.friendlyName] - The friendly_name
|
|
694
|
-
* @param {function} [callback] - Callback to handle processed record
|
|
695
|
-
*
|
|
696
|
-
* @returns {Promise} Resolves to processed UserInstance
|
|
697
|
-
*/
|
|
698
|
-
/* jshint ignore:end */
|
|
699
|
-
UserContext.prototype.update = function update(opts, callback) {
|
|
700
|
-
if (_.isFunction(opts)) {
|
|
701
|
-
callback = opts;
|
|
702
|
-
opts = {};
|
|
703
|
-
}
|
|
704
|
-
opts = opts || {};
|
|
705
|
-
|
|
706
|
-
var deferred = Q.defer();
|
|
707
|
-
var data = values.of({
|
|
708
|
-
'RoleSid': _.get(opts, 'roleSid'),
|
|
709
|
-
'Attributes': _.get(opts, 'attributes'),
|
|
710
|
-
'FriendlyName': _.get(opts, 'friendlyName')
|
|
711
|
-
});
|
|
712
|
-
|
|
713
|
-
var promise = this._version.update({
|
|
714
|
-
uri: this._uri,
|
|
715
|
-
method: 'POST',
|
|
716
|
-
data: data
|
|
717
|
-
});
|
|
718
|
-
|
|
719
|
-
promise = promise.then(function(payload) {
|
|
720
|
-
deferred.resolve(new UserInstance(
|
|
721
|
-
this._version,
|
|
722
|
-
payload,
|
|
723
|
-
this._solution.serviceSid,
|
|
724
|
-
this._solution.sid
|
|
725
|
-
));
|
|
726
|
-
}.bind(this));
|
|
727
|
-
|
|
728
|
-
promise.catch(function(error) {
|
|
729
|
-
deferred.reject(error);
|
|
730
|
-
});
|
|
731
|
-
|
|
732
|
-
if (_.isFunction(callback)) {
|
|
733
|
-
deferred.promise.nodeify(callback);
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
return deferred.promise;
|
|
737
|
-
};
|
|
738
|
-
|
|
739
|
-
Object.defineProperty(UserContext.prototype,
|
|
740
|
-
'userChannels', {
|
|
741
|
-
get: function() {
|
|
742
|
-
if (!this._userChannels) {
|
|
743
|
-
this._userChannels = new UserChannelList(
|
|
744
|
-
this._version,
|
|
745
|
-
this._solution.serviceSid,
|
|
746
|
-
this._solution.sid
|
|
747
|
-
);
|
|
152
|
+
/**
|
|
153
|
+
* Access the userChannels.
|
|
154
|
+
*/
|
|
155
|
+
userChannels() {
|
|
156
|
+
return this._proxy.userChannels;
|
|
748
157
|
}
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
158
|
+
/**
|
|
159
|
+
* Provide a user-friendly representation
|
|
160
|
+
*
|
|
161
|
+
* @returns Object
|
|
162
|
+
*/
|
|
163
|
+
toJSON() {
|
|
164
|
+
return {
|
|
165
|
+
sid: this.sid,
|
|
166
|
+
accountSid: this.accountSid,
|
|
167
|
+
serviceSid: this.serviceSid,
|
|
168
|
+
attributes: this.attributes,
|
|
169
|
+
friendlyName: this.friendlyName,
|
|
170
|
+
roleSid: this.roleSid,
|
|
171
|
+
identity: this.identity,
|
|
172
|
+
isOnline: this.isOnline,
|
|
173
|
+
isNotifiable: this.isNotifiable,
|
|
174
|
+
dateCreated: this.dateCreated,
|
|
175
|
+
dateUpdated: this.dateUpdated,
|
|
176
|
+
joinedChannelsCount: this.joinedChannelsCount,
|
|
177
|
+
links: this.links,
|
|
178
|
+
url: this.url,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
[util_1.inspect.custom](_depth, options) {
|
|
182
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.UserInstance = UserInstance;
|
|
186
|
+
function UserListInstance(version, serviceSid) {
|
|
187
|
+
if (!(0, utility_1.isValidPathParam)(serviceSid)) {
|
|
188
|
+
throw new Error("Parameter 'serviceSid' is not valid.");
|
|
189
|
+
}
|
|
190
|
+
const instance = ((sid) => instance.get(sid));
|
|
191
|
+
instance.get = function get(sid) {
|
|
192
|
+
return new UserContextImpl(version, serviceSid, sid);
|
|
193
|
+
};
|
|
194
|
+
instance._version = version;
|
|
195
|
+
instance._solution = { serviceSid };
|
|
196
|
+
instance._uri = `/Services/${serviceSid}/Users`;
|
|
197
|
+
instance.create = function create(params, callback) {
|
|
198
|
+
if (params === null || params === undefined) {
|
|
199
|
+
throw new Error('Required parameter "params" missing.');
|
|
200
|
+
}
|
|
201
|
+
if (params["identity"] === null || params["identity"] === undefined) {
|
|
202
|
+
throw new Error("Required parameter \"params['identity']\" missing.");
|
|
203
|
+
}
|
|
204
|
+
let data = {};
|
|
205
|
+
data["Identity"] = params["identity"];
|
|
206
|
+
if (params["roleSid"] !== undefined)
|
|
207
|
+
data["RoleSid"] = params["roleSid"];
|
|
208
|
+
if (params["attributes"] !== undefined)
|
|
209
|
+
data["Attributes"] = params["attributes"];
|
|
210
|
+
if (params["friendlyName"] !== undefined)
|
|
211
|
+
data["FriendlyName"] = params["friendlyName"];
|
|
212
|
+
const headers = {};
|
|
213
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
214
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
215
|
+
uri: instance._uri,
|
|
216
|
+
method: "post",
|
|
217
|
+
data,
|
|
218
|
+
headers,
|
|
219
|
+
});
|
|
220
|
+
operationPromise = operationPromise.then((payload) => new UserInstance(operationVersion, payload, instance._solution.serviceSid));
|
|
221
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
222
|
+
return operationPromise;
|
|
223
|
+
};
|
|
224
|
+
instance.page = function page(params, callback) {
|
|
225
|
+
if (params instanceof Function) {
|
|
226
|
+
callback = params;
|
|
227
|
+
params = {};
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
params = params || {};
|
|
231
|
+
}
|
|
232
|
+
let data = {};
|
|
233
|
+
if (params["pageSize"] !== undefined)
|
|
234
|
+
data["PageSize"] = params["pageSize"];
|
|
235
|
+
if (params.pageNumber !== undefined)
|
|
236
|
+
data["Page"] = params.pageNumber;
|
|
237
|
+
if (params.pageToken !== undefined)
|
|
238
|
+
data["PageToken"] = params.pageToken;
|
|
239
|
+
const headers = {};
|
|
240
|
+
let operationVersion = version, operationPromise = operationVersion.page({
|
|
241
|
+
uri: instance._uri,
|
|
242
|
+
method: "get",
|
|
243
|
+
params: data,
|
|
244
|
+
headers,
|
|
245
|
+
});
|
|
246
|
+
operationPromise = operationPromise.then((payload) => new UserPage(operationVersion, payload, instance._solution));
|
|
247
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
248
|
+
return operationPromise;
|
|
249
|
+
};
|
|
250
|
+
instance.each = instance._version.each;
|
|
251
|
+
instance.list = instance._version.list;
|
|
252
|
+
instance.getPage = function getPage(targetUrl, callback) {
|
|
253
|
+
const operationPromise = instance._version._domain.twilio.request({
|
|
254
|
+
method: "get",
|
|
255
|
+
uri: targetUrl,
|
|
256
|
+
});
|
|
257
|
+
let pagePromise = operationPromise.then((payload) => new UserPage(instance._version, payload, instance._solution));
|
|
258
|
+
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
|
|
259
|
+
return pagePromise;
|
|
260
|
+
};
|
|
261
|
+
instance.toJSON = function toJSON() {
|
|
262
|
+
return instance._solution;
|
|
263
|
+
};
|
|
264
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
265
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
266
|
+
};
|
|
267
|
+
return instance;
|
|
268
|
+
}
|
|
269
|
+
exports.UserListInstance = UserListInstance;
|
|
270
|
+
class UserPage extends Page_1.default {
|
|
271
|
+
/**
|
|
272
|
+
* Initialize the UserPage
|
|
273
|
+
*
|
|
274
|
+
* @param version - Version of the resource
|
|
275
|
+
* @param response - Response from the API
|
|
276
|
+
* @param solution - Path solution
|
|
277
|
+
*/
|
|
278
|
+
constructor(version, response, solution) {
|
|
279
|
+
super(version, response, solution);
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Build an instance of UserInstance
|
|
283
|
+
*
|
|
284
|
+
* @param payload - Payload response from the API
|
|
285
|
+
*/
|
|
286
|
+
getInstance(payload) {
|
|
287
|
+
return new UserInstance(this._version, payload, this._solution.serviceSid);
|
|
288
|
+
}
|
|
289
|
+
[util_1.inspect.custom](depth, options) {
|
|
290
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
exports.UserPage = UserPage;
|