twilio 5.4.5 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base/Page.js +1 -1
- package/lib/jwt/ClientCapability.js +1 -1
- package/lib/jwt/taskrouter/TaskRouterCapability.js +1 -1
- package/lib/rest/PreviewBase.d.ts +0 -3
- package/lib/rest/PreviewBase.js +0 -5
- package/lib/rest/accounts/v1/bulkConsents.d.ts +4 -4
- package/lib/rest/accounts/v1/bulkConsents.js +1 -1
- package/lib/rest/accounts/v1/bulkContacts.d.ts +4 -4
- package/lib/rest/accounts/v1/bulkContacts.js +1 -1
- package/lib/rest/accounts/v1/safelist.d.ts +4 -4
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +6 -3
- package/lib/rest/api/v2010/account/address.d.ts +6 -0
- package/lib/rest/api/v2010/account/address.js +2 -0
- package/lib/rest/api/v2010/account/call/event.d.ts +6 -6
- package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/recording.d.ts +9 -3
- package/lib/rest/api/v2010/account/call/siprec.d.ts +3 -0
- package/lib/rest/api/v2010/account/call/stream.d.ts +3 -0
- package/lib/rest/api/v2010/account/call/transcription.d.ts +3 -0
- package/lib/rest/api/v2010/account/call.d.ts +3 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +4 -1
- package/lib/rest/api/v2010/account/conference/recording.d.ts +9 -3
- package/lib/rest/api/v2010/account/conference.d.ts +7 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +3 -3
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +6 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +6 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +6 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +6 -0
- package/lib/rest/api/v2010/account/message/feedback.d.ts +3 -0
- package/lib/rest/api/v2010/account/message.d.ts +9 -0
- package/lib/rest/api/v2010/account/message.js +2 -0
- package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +3 -0
- package/lib/rest/api/v2010/account/recording/transcription.d.ts +3 -0
- package/lib/rest/api/v2010/account/recording.d.ts +9 -3
- package/lib/rest/api/v2010/account/transcription.d.ts +3 -0
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +3 -0
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +3 -0
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +3 -0
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +3 -0
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +3 -0
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +3 -0
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +3 -0
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +3 -0
- package/lib/rest/api/v2010/account/usage/record.d.ts +3 -0
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +6 -0
- package/lib/rest/api/v2010/account/usage.d.ts +3 -0
- package/lib/rest/api/v2010/account.d.ts +6 -0
- package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +3 -3
- package/lib/rest/bulkexports/v1/export/job.d.ts +3 -3
- package/lib/rest/chat/v1/service.d.ts +9 -9
- package/lib/rest/chat/v2/service/binding.d.ts +3 -0
- package/lib/rest/chat/v2/service/channel/message.d.ts +3 -3
- package/lib/rest/chat/v2/service/channel/webhook.d.ts +6 -3
- package/lib/rest/chat/v2/service/user/userBinding.d.ts +3 -0
- package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -0
- package/lib/rest/chat/v2/service.d.ts +9 -9
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +7 -4
- package/lib/rest/conversations/v1/configuration/webhook.d.ts +6 -0
- package/lib/rest/conversations/v1/conversation/message.d.ts +6 -6
- package/lib/rest/conversations/v1/conversation/participant.d.ts +3 -3
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +6 -3
- package/lib/rest/conversations/v1/conversation.d.ts +9 -6
- package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +9 -6
- package/lib/rest/conversations/v1/participantConversation.d.ts +6 -6
- package/lib/rest/conversations/v1/service/binding.d.ts +3 -0
- package/lib/rest/conversations/v1/service/configuration/notification.d.ts +9 -9
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +3 -0
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +6 -6
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +3 -3
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +6 -3
- package/lib/rest/conversations/v1/service/conversation.d.ts +9 -6
- package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +9 -6
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +6 -6
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +6 -3
- package/lib/rest/conversations/v1/user/userConversation.d.ts +6 -3
- package/lib/rest/events/v1/sink.d.ts +11 -5
- package/lib/rest/events/v1/subscription.d.ts +1 -1
- package/lib/rest/events/v1/subscription.js +1 -1
- package/lib/rest/flexApi/v1/assessments.d.ts +3 -3
- package/lib/rest/flexApi/v1/configuration.d.ts +69 -66
- package/lib/rest/flexApi/v1/flexFlow.d.ts +9 -3
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsConversations.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -6
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +9 -9
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +9 -9
- package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +3 -3
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +4 -4
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +8 -5
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +4 -1
- package/lib/rest/flexApi/v1/interaction.d.ts +8 -8
- package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +1 -1
- package/lib/rest/flexApi/v1/pluginConfiguration.js +1 -1
- package/lib/rest/flexApi/v1/provisioningStatus.d.ts +3 -0
- package/lib/rest/flexApi/v2/flexUser.d.ts +0 -24
- package/lib/rest/flexApi/v2/flexUser.js +0 -12
- package/lib/rest/iam/V1.d.ts +10 -5
- package/lib/rest/iam/V1.js +11 -5
- package/lib/rest/iam/v1/apiKey.d.ts +3 -3
- package/lib/rest/iam/v1/{key.d.ts → newApiKey.d.ts} +17 -17
- package/lib/rest/iam/v1/{key.js → newApiKey.js} +6 -6
- package/lib/rest/iam/v1/token.d.ts +88 -0
- package/lib/rest/iam/v1/token.js +99 -0
- package/lib/rest/insights/v1/call/callSummary.d.ts +30 -30
- package/lib/rest/insights/v1/call/event.d.ts +12 -12
- package/lib/rest/insights/v1/call/metric.d.ts +12 -12
- package/lib/rest/insights/v1/callSummaries.d.ts +30 -30
- package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +10 -10
- package/lib/rest/insights/v1/conference.d.ts +7 -7
- package/lib/rest/insights/v1/room/participant.d.ts +8 -8
- package/lib/rest/insights/v1/room.d.ts +2 -2
- package/lib/rest/intelligence/v2/customOperator.d.ts +8 -5
- package/lib/rest/intelligence/v2/operator.d.ts +6 -3
- package/lib/rest/intelligence/v2/operatorType.d.ts +12 -3
- package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +6 -3
- package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +18 -15
- package/lib/rest/intelligence/v2/transcript/sentence.d.ts +3 -3
- package/lib/rest/intelligence/v2/transcript.d.ts +7 -4
- package/lib/rest/ipMessaging/v1/service.d.ts +9 -9
- package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +3 -3
- package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +3 -3
- package/lib/rest/ipMessaging/v2/service.d.ts +9 -9
- package/lib/rest/lookups/v1/phoneNumber.d.ts +9 -9
- package/lib/rest/lookups/v2/phoneNumber.d.ts +30 -30
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +5 -2
- package/lib/rest/messaging/v1/brandRegistration.d.ts +13 -4
- package/lib/rest/messaging/v1/domainCerts.d.ts +3 -3
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +6 -6
- package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +3 -3
- package/lib/rest/messaging/v1/service.d.ts +3 -0
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +13 -7
- package/lib/rest/messaging/v1/usecase.d.ts +3 -3
- package/lib/rest/microvisor/v1/device.d.ts +6 -6
- package/lib/rest/monitor/v1/event.d.ts +3 -3
- package/lib/rest/notify/v1/service/binding.d.ts +3 -0
- package/lib/rest/notify/v1/service/notification.d.ts +31 -28
- package/lib/rest/numbers/v1/bulkEligibility.d.ts +3 -3
- package/lib/rest/numbers/v1/eligibility.d.ts +3 -3
- package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -6
- package/lib/rest/numbers/v1/portingPortability.d.ts +3 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.d.ts +3 -0
- package/lib/rest/numbers/v2/authorizationDocument/dependentHostedNumberOrder.d.ts +3 -0
- package/lib/rest/numbers/v2/authorizationDocument.d.ts +3 -0
- package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +6 -3
- package/lib/rest/numbers/v2/bundleClone.d.ts +3 -0
- package/lib/rest/numbers/v2/hostedNumberOrder.d.ts +7 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +3 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +6 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +3 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +3 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +8 -5
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +6 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +11 -8
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance.d.ts +3 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +6 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +3 -0
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +6 -0
- package/lib/rest/preview/marketplace/availableAddOn.d.ts +3 -3
- package/lib/rest/preview/marketplace/installedAddOn.d.ts +5 -5
- package/lib/rest/preview/wireless/sim/usage.d.ts +15 -15
- package/lib/rest/proxy/v1/service/session/interaction.d.ts +3 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +3 -0
- package/lib/rest/proxy/v1/service/session.d.ts +7 -1
- package/lib/rest/proxy/v1/service/session.js +1 -1
- package/lib/rest/proxy/v1/service.d.ts +6 -0
- package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +3 -0
- package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +3 -0
- package/lib/rest/serverless/v1/service/build.d.ts +15 -9
- package/lib/rest/serverless/v1/service/environment/log.d.ts +3 -0
- package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +3 -0
- package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement/step.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement.d.ts +7 -4
- package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution.d.ts +7 -4
- package/lib/rest/studio/v1/flow.d.ts +3 -0
- package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution.d.ts +7 -4
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +9 -6
- package/lib/rest/studio/v2/flow.d.ts +14 -11
- package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
- package/lib/rest/supersim/v1/esimProfile.d.ts +3 -0
- package/lib/rest/supersim/v1/fleet.d.ts +3 -0
- package/lib/rest/supersim/v1/ipCommand.d.ts +9 -0
- package/lib/rest/supersim/v1/network.d.ts +3 -3
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +3 -3
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +6 -3
- package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +3 -0
- package/lib/rest/supersim/v1/sim.d.ts +3 -0
- package/lib/rest/supersim/v1/smsCommand.d.ts +6 -0
- package/lib/rest/supersim/v1/usageRecord.d.ts +3 -3
- package/lib/rest/sync/v1/service/document.d.ts +5 -5
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +5 -5
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +5 -5
- package/lib/rest/sync/v1/service/syncStream/streamMessage.d.ts +4 -4
- package/lib/rest/taskrouter/v1/workspace/event.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +1 -1
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +12 -12
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +3 -0
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +1 -1
- package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +6 -6
- package/lib/rest/trunking/v1/trunk.d.ts +6 -3
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +6 -3
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +6 -3
- package/lib/rest/trusthub/v1/endUser.d.ts +5 -5
- package/lib/rest/trusthub/v1/endUserType.d.ts +3 -3
- package/lib/rest/trusthub/v1/policies.d.ts +3 -3
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +8 -5
- package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +3 -3
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +6 -3
- package/lib/rest/trusthub/v1/trustProducts.d.ts +6 -3
- package/lib/rest/verify/v2/form.d.ts +6 -6
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +12 -12
- package/lib/rest/verify/v2/service/entity/challenge.js +1 -1
- package/lib/rest/verify/v2/service/entity/factor.d.ts +6 -6
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +10 -10
- package/lib/rest/verify/v2/service/verification.d.ts +17 -11
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +6 -3
- package/lib/rest/verify/v2/service/webhook.d.ts +6 -0
- package/lib/rest/verify/v2/service.d.ts +9 -9
- package/lib/rest/verify/v2/template.d.ts +3 -3
- package/lib/rest/verify/v2/verificationAttempt.d.ts +9 -6
- package/lib/rest/video/v1/composition.d.ts +10 -4
- package/lib/rest/video/v1/compositionHook.d.ts +8 -5
- package/lib/rest/video/v1/recording.d.ts +12 -3
- package/lib/rest/video/v1/room/participant/anonymize.d.ts +3 -0
- package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +3 -0
- package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +1 -1
- package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +3 -0
- package/lib/rest/video/v1/room/participant.d.ts +4 -1
- package/lib/rest/video/v1/room/recordingRules.d.ts +1 -1
- package/lib/rest/video/v1/room/roomRecording.d.ts +12 -3
- package/lib/rest/video/v1/room.d.ts +1 -1
- package/lib/rest/wireless/v1/command.d.ts +12 -0
- package/lib/rest/wireless/v1/ratePlan.d.ts +6 -0
- package/lib/rest/wireless/v1/ratePlan.js +2 -0
- package/lib/rest/wireless/v1/sim/dataSession.d.ts +3 -3
- package/lib/rest/wireless/v1/sim/usageRecord.d.ts +9 -9
- package/lib/rest/wireless/v1/sim.d.ts +6 -0
- package/lib/rest/wireless/v1/usageRecord.d.ts +9 -9
- package/lib/twiml/VoiceResponse.d.ts +1 -2
- package/package.json +3 -3
- package/lib/rest/preview/Sync.d.ts +0 -15
- package/lib/rest/preview/Sync.js +0 -36
- package/lib/rest/preview/sync/service/document/documentPermission.d.ts +0 -280
- package/lib/rest/preview/sync/service/document/documentPermission.js +0 -260
- package/lib/rest/preview/sync/service/document.d.ts +0 -295
- package/lib/rest/preview/sync/service/document.js +0 -289
- package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +0 -321
- package/lib/rest/preview/sync/service/syncList/syncListItem.js +0 -286
- package/lib/rest/preview/sync/service/syncList/syncListPermission.d.ts +0 -280
- package/lib/rest/preview/sync/service/syncList/syncListPermission.js +0 -260
- package/lib/rest/preview/sync/service/syncList.d.ts +0 -270
- package/lib/rest/preview/sync/service/syncList.js +0 -270
- package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +0 -323
- package/lib/rest/preview/sync/service/syncMap/syncMapItem.js +0 -290
- package/lib/rest/preview/sync/service/syncMap/syncMapPermission.d.ts +0 -280
- package/lib/rest/preview/sync/service/syncMap/syncMapPermission.js +0 -260
- package/lib/rest/preview/sync/service/syncMap.d.ts +0 -270
- package/lib/rest/preview/sync/service/syncMap.js +0 -270
- package/lib/rest/preview/sync/service.d.ts +0 -330
- package/lib/rest/preview/sync/service.js +0 -316
package/lib/base/Page.js
CHANGED
|
@@ -116,7 +116,7 @@ class ClientCapability {
|
|
|
116
116
|
return jsonwebtoken_1.default.sign(payload, this.authToken);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
exports.default = ClientCapability;
|
|
120
119
|
ClientCapability.EventStreamScope = EventStreamScope;
|
|
121
120
|
ClientCapability.IncomingClientScope = IncomingClientScope;
|
|
122
121
|
ClientCapability.OutgoingClientScope = OutgoingClientScope;
|
|
122
|
+
exports.default = ClientCapability;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import Domain from "../base/Domain";
|
|
2
2
|
import HostedNumbers from "./preview/HostedNumbers";
|
|
3
|
-
import Sync from "./preview/Sync";
|
|
4
3
|
import Marketplace from "./preview/Marketplace";
|
|
5
4
|
import Wireless from "./preview/Wireless";
|
|
6
5
|
declare class PreviewBase extends Domain {
|
|
7
6
|
_hosted_numbers?: HostedNumbers;
|
|
8
|
-
_sync?: Sync;
|
|
9
7
|
_marketplace?: Marketplace;
|
|
10
8
|
_wireless?: Wireless;
|
|
11
9
|
/**
|
|
@@ -15,7 +13,6 @@ declare class PreviewBase extends Domain {
|
|
|
15
13
|
*/
|
|
16
14
|
constructor(twilio: any);
|
|
17
15
|
get hosted_numbers(): HostedNumbers;
|
|
18
|
-
get sync(): Sync;
|
|
19
16
|
get marketplace(): Marketplace;
|
|
20
17
|
get wireless(): Wireless;
|
|
21
18
|
}
|
package/lib/rest/PreviewBase.js
CHANGED
|
@@ -14,7 +14,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
};
|
|
15
15
|
const Domain_1 = __importDefault(require("../base/Domain"));
|
|
16
16
|
const HostedNumbers_1 = __importDefault(require("./preview/HostedNumbers"));
|
|
17
|
-
const Sync_1 = __importDefault(require("./preview/Sync"));
|
|
18
17
|
const Marketplace_1 = __importDefault(require("./preview/Marketplace"));
|
|
19
18
|
const Wireless_1 = __importDefault(require("./preview/Wireless"));
|
|
20
19
|
class PreviewBase extends Domain_1.default {
|
|
@@ -30,10 +29,6 @@ class PreviewBase extends Domain_1.default {
|
|
|
30
29
|
this._hosted_numbers = this._hosted_numbers || new HostedNumbers_1.default(this);
|
|
31
30
|
return this._hosted_numbers;
|
|
32
31
|
}
|
|
33
|
-
get sync() {
|
|
34
|
-
this._sync = this._sync || new Sync_1.default(this);
|
|
35
|
-
return this._sync;
|
|
36
|
-
}
|
|
37
32
|
get marketplace() {
|
|
38
33
|
this._marketplace = this._marketplace || new Marketplace_1.default(this);
|
|
39
34
|
return this._marketplace;
|
|
@@ -6,7 +6,7 @@ import V1 from "../V1";
|
|
|
6
6
|
*/
|
|
7
7
|
export interface BulkConsentsListInstanceCreateOptions {
|
|
8
8
|
/** This is a list of objects that describes a contact\\\'s opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]. */
|
|
9
|
-
items: Array<
|
|
9
|
+
items: Array<object>;
|
|
10
10
|
}
|
|
11
11
|
export interface BulkConsentsSolution {
|
|
12
12
|
}
|
|
@@ -31,7 +31,7 @@ export interface BulkConsentsListInstance {
|
|
|
31
31
|
}
|
|
32
32
|
export declare function BulkConsentsListInstance(version: V1): BulkConsentsListInstance;
|
|
33
33
|
interface BulkConsentsResource {
|
|
34
|
-
items:
|
|
34
|
+
items: Record<string, object>;
|
|
35
35
|
}
|
|
36
36
|
export declare class BulkConsentsInstance {
|
|
37
37
|
protected _version: V1;
|
|
@@ -39,14 +39,14 @@ export declare class BulkConsentsInstance {
|
|
|
39
39
|
/**
|
|
40
40
|
* A list of objects where each object represents the result of processing a `correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
|
|
41
41
|
*/
|
|
42
|
-
items:
|
|
42
|
+
items: Record<string, object>;
|
|
43
43
|
/**
|
|
44
44
|
* Provide a user-friendly representation
|
|
45
45
|
*
|
|
46
46
|
* @returns Object
|
|
47
47
|
*/
|
|
48
48
|
toJSON(): {
|
|
49
|
-
items:
|
|
49
|
+
items: Record<string, object>;
|
|
50
50
|
};
|
|
51
51
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
52
52
|
}
|
|
@@ -30,7 +30,7 @@ function BulkConsentsListInstance(version) {
|
|
|
30
30
|
throw new Error("Required parameter \"params['items']\" missing.");
|
|
31
31
|
}
|
|
32
32
|
let data = {};
|
|
33
|
-
data["Items"] = serialize.map(params["items"], (e) =>
|
|
33
|
+
data["Items"] = serialize.map(params["items"], (e) => e);
|
|
34
34
|
const headers = {};
|
|
35
35
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
36
36
|
headers["Accept"] = "application/json";
|
|
@@ -6,7 +6,7 @@ import V1 from "../V1";
|
|
|
6
6
|
*/
|
|
7
7
|
export interface BulkContactsListInstanceCreateOptions {
|
|
8
8
|
/** A list of objects where each object represents a contact\\\'s details. Each object includes the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID that maps the response to the original request; `country_iso_code`, a string representing the country using the ISO format (e.g., US for the United States); and `zip_code`, a string representing the postal code. */
|
|
9
|
-
items: Array<
|
|
9
|
+
items: Array<object>;
|
|
10
10
|
}
|
|
11
11
|
export interface BulkContactsSolution {
|
|
12
12
|
}
|
|
@@ -31,7 +31,7 @@ export interface BulkContactsListInstance {
|
|
|
31
31
|
}
|
|
32
32
|
export declare function BulkContactsListInstance(version: V1): BulkContactsListInstance;
|
|
33
33
|
interface BulkContactsResource {
|
|
34
|
-
items:
|
|
34
|
+
items: Record<string, object>;
|
|
35
35
|
}
|
|
36
36
|
export declare class BulkContactsInstance {
|
|
37
37
|
protected _version: V1;
|
|
@@ -39,14 +39,14 @@ export declare class BulkContactsInstance {
|
|
|
39
39
|
/**
|
|
40
40
|
* A list of objects where each object represents the result of processing a `correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
|
|
41
41
|
*/
|
|
42
|
-
items:
|
|
42
|
+
items: Record<string, object>;
|
|
43
43
|
/**
|
|
44
44
|
* Provide a user-friendly representation
|
|
45
45
|
*
|
|
46
46
|
* @returns Object
|
|
47
47
|
*/
|
|
48
48
|
toJSON(): {
|
|
49
|
-
items:
|
|
49
|
+
items: Record<string, object>;
|
|
50
50
|
};
|
|
51
51
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
52
52
|
}
|
|
@@ -30,7 +30,7 @@ function BulkContactsListInstance(version) {
|
|
|
30
30
|
throw new Error("Required parameter \"params['items']\" missing.");
|
|
31
31
|
}
|
|
32
32
|
let data = {};
|
|
33
|
-
data["Items"] = serialize.map(params["items"], (e) =>
|
|
33
|
+
data["Items"] = serialize.map(params["items"], (e) => e);
|
|
34
34
|
const headers = {};
|
|
35
35
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
36
36
|
headers["Accept"] = "application/json";
|
|
@@ -5,21 +5,21 @@ import V1 from "../V1";
|
|
|
5
5
|
* Options to pass to create a SafelistInstance
|
|
6
6
|
*/
|
|
7
7
|
export interface SafelistListInstanceCreateOptions {
|
|
8
|
-
/** The phone number to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). */
|
|
8
|
+
/** The phone number or phone number 1k prefix to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). */
|
|
9
9
|
phoneNumber: string;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to remove a SafelistInstance
|
|
13
13
|
*/
|
|
14
14
|
export interface SafelistListInstanceRemoveOptions {
|
|
15
|
-
/** The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). */
|
|
15
|
+
/** The phone number or phone number 1k prefix to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). */
|
|
16
16
|
phoneNumber?: string;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Options to pass to fetch a SafelistInstance
|
|
20
20
|
*/
|
|
21
21
|
export interface SafelistListInstanceFetchOptions {
|
|
22
|
-
/** The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). */
|
|
22
|
+
/** The phone number or phone number 1k prefix to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). */
|
|
23
23
|
phoneNumber?: string;
|
|
24
24
|
}
|
|
25
25
|
export interface SafelistSolution {
|
|
@@ -90,7 +90,7 @@ export declare class SafelistInstance {
|
|
|
90
90
|
*/
|
|
91
91
|
sid: string;
|
|
92
92
|
/**
|
|
93
|
-
* The phone number in SafeList.
|
|
93
|
+
* The phone number or phone number 1k prefix in SafeList.
|
|
94
94
|
*/
|
|
95
95
|
phoneNumber: string;
|
|
96
96
|
/**
|
|
@@ -4,6 +4,9 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
6
|
export type DependentPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
7
|
+
/**
|
|
8
|
+
* Whether the phone number is enabled for emergency calling.
|
|
9
|
+
*/
|
|
7
10
|
export type DependentPhoneNumberEmergencyStatus = "Active" | "Inactive";
|
|
8
11
|
/**
|
|
9
12
|
* Options to pass to each
|
|
@@ -123,7 +126,7 @@ interface DependentPhoneNumberResource {
|
|
|
123
126
|
sms_method: string;
|
|
124
127
|
sms_url: string;
|
|
125
128
|
address_requirements: DependentPhoneNumberAddressRequirement;
|
|
126
|
-
capabilities:
|
|
129
|
+
capabilities: Record<string, object>;
|
|
127
130
|
status_callback: string;
|
|
128
131
|
status_callback_method: string;
|
|
129
132
|
api_version: string;
|
|
@@ -201,7 +204,7 @@ export declare class DependentPhoneNumberInstance {
|
|
|
201
204
|
/**
|
|
202
205
|
* The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
|
|
203
206
|
*/
|
|
204
|
-
capabilities:
|
|
207
|
+
capabilities: Record<string, object>;
|
|
205
208
|
/**
|
|
206
209
|
* The URL we call using the `status_callback_method` to send status information to your application.
|
|
207
210
|
*/
|
|
@@ -257,7 +260,7 @@ export declare class DependentPhoneNumberInstance {
|
|
|
257
260
|
smsMethod: string;
|
|
258
261
|
smsUrl: string;
|
|
259
262
|
addressRequirements: DependentPhoneNumberAddressRequirement;
|
|
260
|
-
capabilities:
|
|
263
|
+
capabilities: Record<string, object>;
|
|
261
264
|
statusCallback: string;
|
|
262
265
|
statusCallbackMethod: string;
|
|
263
266
|
apiVersion: string;
|
|
@@ -60,6 +60,8 @@ export interface AddressListInstanceEachOptions {
|
|
|
60
60
|
customerName?: string;
|
|
61
61
|
/** The string that identifies the Address resources to read. */
|
|
62
62
|
friendlyName?: string;
|
|
63
|
+
/** Whether the address can be associated to a number for emergency calling. */
|
|
64
|
+
emergencyEnabled?: boolean;
|
|
63
65
|
/** The ISO country code of the Address resources to read. */
|
|
64
66
|
isoCountry?: string;
|
|
65
67
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -79,6 +81,8 @@ export interface AddressListInstanceOptions {
|
|
|
79
81
|
customerName?: string;
|
|
80
82
|
/** The string that identifies the Address resources to read. */
|
|
81
83
|
friendlyName?: string;
|
|
84
|
+
/** Whether the address can be associated to a number for emergency calling. */
|
|
85
|
+
emergencyEnabled?: boolean;
|
|
82
86
|
/** The ISO country code of the Address resources to read. */
|
|
83
87
|
isoCountry?: string;
|
|
84
88
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -94,6 +98,8 @@ export interface AddressListInstancePageOptions {
|
|
|
94
98
|
customerName?: string;
|
|
95
99
|
/** The string that identifies the Address resources to read. */
|
|
96
100
|
friendlyName?: string;
|
|
101
|
+
/** Whether the address can be associated to a number for emergency calling. */
|
|
102
|
+
emergencyEnabled?: boolean;
|
|
97
103
|
/** The ISO country code of the Address resources to read. */
|
|
98
104
|
isoCountry?: string;
|
|
99
105
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -280,6 +280,8 @@ function AddressListInstance(version, accountSid) {
|
|
|
280
280
|
data["CustomerName"] = params["customerName"];
|
|
281
281
|
if (params["friendlyName"] !== undefined)
|
|
282
282
|
data["FriendlyName"] = params["friendlyName"];
|
|
283
|
+
if (params["emergencyEnabled"] !== undefined)
|
|
284
|
+
data["EmergencyEnabled"] = serialize.bool(params["emergencyEnabled"]);
|
|
283
285
|
if (params["isoCountry"] !== undefined)
|
|
284
286
|
data["IsoCountry"] = params["isoCountry"];
|
|
285
287
|
if (params["pageSize"] !== undefined)
|
|
@@ -105,8 +105,8 @@ interface EventPayload extends TwilioResponsePayload {
|
|
|
105
105
|
events: EventResource[];
|
|
106
106
|
}
|
|
107
107
|
interface EventResource {
|
|
108
|
-
request:
|
|
109
|
-
response:
|
|
108
|
+
request: Record<string, object>;
|
|
109
|
+
response: Record<string, object>;
|
|
110
110
|
}
|
|
111
111
|
export declare class EventInstance {
|
|
112
112
|
protected _version: V2010;
|
|
@@ -114,19 +114,19 @@ export declare class EventInstance {
|
|
|
114
114
|
/**
|
|
115
115
|
* Contains a dictionary representing the request of the call.
|
|
116
116
|
*/
|
|
117
|
-
request:
|
|
117
|
+
request: Record<string, object>;
|
|
118
118
|
/**
|
|
119
119
|
* Contains a dictionary representing the call response, including a list of the call events.
|
|
120
120
|
*/
|
|
121
|
-
response:
|
|
121
|
+
response: Record<string, object>;
|
|
122
122
|
/**
|
|
123
123
|
* Provide a user-friendly representation
|
|
124
124
|
*
|
|
125
125
|
* @returns Object
|
|
126
126
|
*/
|
|
127
127
|
toJSON(): {
|
|
128
|
-
request:
|
|
129
|
-
response:
|
|
128
|
+
request: Record<string, object>;
|
|
129
|
+
response: Record<string, object>;
|
|
130
130
|
};
|
|
131
131
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
132
132
|
}
|
|
@@ -40,7 +40,7 @@ export interface PaymentListInstanceCreateOptions {
|
|
|
40
40
|
/** A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. */
|
|
41
41
|
minPostalCodeLength?: number;
|
|
42
42
|
/** A single-level JSON object used to pass custom parameters to payment processors. (Required for ACH payments). The information that has to be included here depends on the <Pay> Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). */
|
|
43
|
-
parameter?:
|
|
43
|
+
parameter?: object;
|
|
44
44
|
/** This is the unique name corresponding to the Pay Connector installed in the Twilio Add-ons. Learn more about [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. */
|
|
45
45
|
paymentConnector?: string;
|
|
46
46
|
/** */
|
|
@@ -3,7 +3,13 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
|
+
/**
|
|
7
|
+
* How the recording was created. Can be: `DialVerb`, `Conference`, `OutboundAPI`, `Trunking`, `RecordVerb`, `StartCallRecordingAPI`, and `StartConferenceRecordingAPI`.
|
|
8
|
+
*/
|
|
6
9
|
export type RecordingSource = "DialVerb" | "Conference" | "OutboundAPI" | "Trunking" | "RecordVerb" | "StartCallRecordingAPI" | "StartConferenceRecordingAPI";
|
|
10
|
+
/**
|
|
11
|
+
* The status of the recording. Can be: `processing`, `completed` and `absent`. For more detailed statuses on in-progress recordings, check out how to [Update a Recording Resource](https://www.twilio.com/docs/voice/api/recording#update-a-recording-resource).
|
|
12
|
+
*/
|
|
7
13
|
export type RecordingStatus = "in-progress" | "paused" | "stopped" | "processing" | "completed" | "absent";
|
|
8
14
|
/**
|
|
9
15
|
* Options to pass to update a RecordingInstance
|
|
@@ -150,7 +156,7 @@ interface RecordingResource {
|
|
|
150
156
|
sid: string;
|
|
151
157
|
price: number;
|
|
152
158
|
uri: string;
|
|
153
|
-
encryption_details:
|
|
159
|
+
encryption_details: Record<string, object>;
|
|
154
160
|
price_unit: string;
|
|
155
161
|
status: RecordingStatus;
|
|
156
162
|
channels: number;
|
|
@@ -210,7 +216,7 @@ export declare class RecordingInstance {
|
|
|
210
216
|
/**
|
|
211
217
|
* How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature.
|
|
212
218
|
*/
|
|
213
|
-
encryptionDetails:
|
|
219
|
+
encryptionDetails: Record<string, object>;
|
|
214
220
|
/**
|
|
215
221
|
* The currency used in the `price` property. Example: `USD`.
|
|
216
222
|
*/
|
|
@@ -272,7 +278,7 @@ export declare class RecordingInstance {
|
|
|
272
278
|
sid: string;
|
|
273
279
|
price: number;
|
|
274
280
|
uri: string;
|
|
275
|
-
encryptionDetails:
|
|
281
|
+
encryptionDetails: Record<string, object>;
|
|
276
282
|
priceUnit: string;
|
|
277
283
|
status: RecordingStatus;
|
|
278
284
|
channels: number;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2010 from "../../../V2010";
|
|
4
|
+
/**
|
|
5
|
+
* The status - one of `stopped`, `in-progress`
|
|
6
|
+
*/
|
|
4
7
|
export type SiprecStatus = "in-progress" | "stopped";
|
|
5
8
|
export type SiprecTrack = "inbound_track" | "outbound_track" | "both_tracks";
|
|
6
9
|
export type SiprecUpdateStatus = "stopped";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2010 from "../../../V2010";
|
|
4
|
+
/**
|
|
5
|
+
* The status of the Stream. Possible values are `stopped` and `in-progress`.
|
|
6
|
+
*/
|
|
4
7
|
export type StreamStatus = "in-progress" | "stopped";
|
|
5
8
|
export type StreamTrack = "inbound_track" | "outbound_track" | "both_tracks";
|
|
6
9
|
export type StreamUpdateStatus = "stopped";
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2010 from "../../../V2010";
|
|
4
|
+
/**
|
|
5
|
+
* The status - one of `stopped`, `in-flight`
|
|
6
|
+
*/
|
|
4
7
|
export type TranscriptionStatus = "in-progress" | "stopped";
|
|
5
8
|
export type TranscriptionTrack = "inbound_track" | "outbound_track" | "both_tracks";
|
|
6
9
|
export type TranscriptionUpdateStatus = "stopped";
|
|
@@ -13,6 +13,9 @@ import { TranscriptionListInstance } from "./call/transcription";
|
|
|
13
13
|
import { UserDefinedMessageListInstance } from "./call/userDefinedMessage";
|
|
14
14
|
import { UserDefinedMessageSubscriptionListInstance } from "./call/userDefinedMessageSubscription";
|
|
15
15
|
import TwiML from "../../../../twiml/TwiML";
|
|
16
|
+
/**
|
|
17
|
+
* The status of this call. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy` or `no-answer`. See [Call Status Values](https://www.twilio.com/docs/voice/api/call-resource#call-status-values) below for more information.
|
|
18
|
+
*/
|
|
16
19
|
export type CallStatus = "queued" | "ringing" | "in-progress" | "completed" | "busy" | "failed" | "no-answer" | "canceled";
|
|
17
20
|
export type CallUpdateStatus = "canceled" | "completed";
|
|
18
21
|
/**
|
|
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
|
+
/**
|
|
7
|
+
* The status of the participant\'s call in a session. Can be: `queued`, `connecting`, `ringing`, `connected`, `complete`, or `failed`.
|
|
8
|
+
*/
|
|
6
9
|
export type ParticipantStatus = "queued" | "connecting" | "ringing" | "connected" | "complete" | "failed";
|
|
7
10
|
/**
|
|
8
11
|
* Options to pass to update a ParticipantInstance
|
|
@@ -89,7 +92,7 @@ export interface ParticipantListInstanceCreateOptions {
|
|
|
89
92
|
sipAuthUsername?: string;
|
|
90
93
|
/** The SIP password for authentication. */
|
|
91
94
|
sipAuthPassword?: string;
|
|
92
|
-
/** The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`. */
|
|
95
|
+
/** The [region](https://support.twilio.com/hc/en-us/articles/223132167-How-global-low-latency-routing-and-region-selection-work-for-conferences-and-Client-calls) where we should mix the recorded audio. Can be:`us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, or `jp1`. */
|
|
93
96
|
region?: string;
|
|
94
97
|
/** The URL we should call using the `conference_recording_status_callback_method` when the conference recording is available. */
|
|
95
98
|
conferenceRecordingStatusCallback?: string;
|
|
@@ -3,7 +3,13 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
|
+
/**
|
|
7
|
+
* How the recording was created. Can be: `DialVerb`, `Conference`, `OutboundAPI`, `Trunking`, `RecordVerb`, `StartCallRecordingAPI`, `StartConferenceRecordingAPI`.
|
|
8
|
+
*/
|
|
6
9
|
export type RecordingSource = "DialVerb" | "Conference" | "OutboundAPI" | "Trunking" | "RecordVerb" | "StartCallRecordingAPI" | "StartConferenceRecordingAPI";
|
|
10
|
+
/**
|
|
11
|
+
* The status of the recording. Can be: `processing`, `completed` and `absent`. For more detailed statuses on in-progress recordings, check out how to [Update a Recording Resource](https://www.twilio.com/docs/voice/api/recording#update-a-recording-resource).
|
|
12
|
+
*/
|
|
7
13
|
export type RecordingStatus = "in-progress" | "paused" | "stopped" | "processing" | "completed" | "absent";
|
|
8
14
|
/**
|
|
9
15
|
* Options to pass to update a RecordingInstance
|
|
@@ -137,7 +143,7 @@ interface RecordingResource {
|
|
|
137
143
|
channels: number;
|
|
138
144
|
source: RecordingSource;
|
|
139
145
|
error_code: number;
|
|
140
|
-
encryption_details:
|
|
146
|
+
encryption_details: Record<string, object>;
|
|
141
147
|
uri: string;
|
|
142
148
|
}
|
|
143
149
|
export declare class RecordingInstance {
|
|
@@ -202,7 +208,7 @@ export declare class RecordingInstance {
|
|
|
202
208
|
/**
|
|
203
209
|
* How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature.
|
|
204
210
|
*/
|
|
205
|
-
encryptionDetails:
|
|
211
|
+
encryptionDetails: Record<string, object>;
|
|
206
212
|
/**
|
|
207
213
|
* The URI of the resource, relative to `https://api.twilio.com`.
|
|
208
214
|
*/
|
|
@@ -254,7 +260,7 @@ export declare class RecordingInstance {
|
|
|
254
260
|
channels: number;
|
|
255
261
|
source: RecordingSource;
|
|
256
262
|
errorCode: number;
|
|
257
|
-
encryptionDetails:
|
|
263
|
+
encryptionDetails: Record<string, object>;
|
|
258
264
|
uri: string;
|
|
259
265
|
};
|
|
260
266
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -5,7 +5,13 @@ import Response from "../../../../http/response";
|
|
|
5
5
|
import V2010 from "../../V2010";
|
|
6
6
|
import { ParticipantListInstance } from "./conference/participant";
|
|
7
7
|
import { RecordingListInstance } from "./conference/recording";
|
|
8
|
+
/**
|
|
9
|
+
* The reason why a conference ended. When a conference is in progress, will be `null`. When conference is completed, can be: `conference-ended-via-api`, `participant-with-end-conference-on-exit-left`, `participant-with-end-conference-on-exit-kicked`, `last-participant-kicked`, or `last-participant-left`.
|
|
10
|
+
*/
|
|
8
11
|
export type ConferenceReasonConferenceEnded = "conference-ended-via-api" | "participant-with-end-conference-on-exit-left" | "participant-with-end-conference-on-exit-kicked" | "last-participant-kicked" | "last-participant-left";
|
|
12
|
+
/**
|
|
13
|
+
* The status of this conference. Can be: `init`, `in-progress`, or `completed`.
|
|
14
|
+
*/
|
|
9
15
|
export type ConferenceStatus = "init" | "in-progress" | "completed";
|
|
10
16
|
export type ConferenceUpdateStatus = "completed";
|
|
11
17
|
/**
|
|
@@ -200,7 +206,7 @@ export declare class ConferenceInstance {
|
|
|
200
206
|
*/
|
|
201
207
|
friendlyName: string;
|
|
202
208
|
/**
|
|
203
|
-
* A string that represents the Twilio Region where the conference audio was mixed. May be `us1`, `ie1`, `de1`, `sg1`, `br1`, `au1`, and `jp1`. Basic conference audio will always be mixed in `us1`. Global Conference audio will be mixed nearest to the majority of participants.
|
|
209
|
+
* A string that represents the Twilio Region where the conference audio was mixed. May be `us1`, `us2`, `ie1`, `de1`, `sg1`, `br1`, `au1`, and `jp1`. Basic conference audio will always be mixed in `us1`. Global Conference audio will be mixed nearest to the majority of participants.
|
|
204
210
|
*/
|
|
205
211
|
region: string;
|
|
206
212
|
/**
|
|
@@ -99,7 +99,7 @@ interface AssignedAddOnResource {
|
|
|
99
99
|
resource_sid: string;
|
|
100
100
|
friendly_name: string;
|
|
101
101
|
description: string;
|
|
102
|
-
configuration:
|
|
102
|
+
configuration: Record<string, object>;
|
|
103
103
|
unique_name: string;
|
|
104
104
|
date_created: Date;
|
|
105
105
|
date_updated: Date;
|
|
@@ -134,7 +134,7 @@ export declare class AssignedAddOnInstance {
|
|
|
134
134
|
/**
|
|
135
135
|
* A JSON string that represents the current configuration of this Add-on installation.
|
|
136
136
|
*/
|
|
137
|
-
configuration:
|
|
137
|
+
configuration: Record<string, object>;
|
|
138
138
|
/**
|
|
139
139
|
* An application-defined string that uniquely identifies the resource. It can be used in place of the resource\'s `sid` in the URL to address the resource.
|
|
140
140
|
*/
|
|
@@ -187,7 +187,7 @@ export declare class AssignedAddOnInstance {
|
|
|
187
187
|
resourceSid: string;
|
|
188
188
|
friendlyName: string;
|
|
189
189
|
description: string;
|
|
190
|
-
configuration:
|
|
190
|
+
configuration: Record<string, object>;
|
|
191
191
|
uniqueName: string;
|
|
192
192
|
dateCreated: Date;
|
|
193
193
|
dateUpdated: Date;
|
|
@@ -5,7 +5,13 @@ import Response from "../../../../../http/response";
|
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
6
|
import { PhoneNumberCapabilities } from "../../../../../interfaces";
|
|
7
7
|
export type LocalAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
8
|
+
/**
|
|
9
|
+
* The status of address registration with emergency services. A registered emergency address will be used during handling of emergency calls from this number.
|
|
10
|
+
*/
|
|
8
11
|
export type LocalEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
|
|
12
|
+
/**
|
|
13
|
+
* The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.
|
|
14
|
+
*/
|
|
9
15
|
export type LocalEmergencyStatus = "Active" | "Inactive";
|
|
10
16
|
export type LocalVoiceReceiveMode = "voice" | "fax";
|
|
11
17
|
/**
|
|
@@ -5,7 +5,13 @@ import Response from "../../../../../http/response";
|
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
6
|
import { PhoneNumberCapabilities } from "../../../../../interfaces";
|
|
7
7
|
export type MobileAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
8
|
+
/**
|
|
9
|
+
* The status of address registration with emergency services. A registered emergency address will be used during handling of emergency calls from this number.
|
|
10
|
+
*/
|
|
8
11
|
export type MobileEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
|
|
12
|
+
/**
|
|
13
|
+
* The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.
|
|
14
|
+
*/
|
|
9
15
|
export type MobileEmergencyStatus = "Active" | "Inactive";
|
|
10
16
|
export type MobileVoiceReceiveMode = "voice" | "fax";
|
|
11
17
|
/**
|
|
@@ -5,7 +5,13 @@ import Response from "../../../../../http/response";
|
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
6
|
import { PhoneNumberCapabilities } from "../../../../../interfaces";
|
|
7
7
|
export type TollFreeAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
8
|
+
/**
|
|
9
|
+
* The status of address registration with emergency services. A registered emergency address will be used during handling of emergency calls from this number.
|
|
10
|
+
*/
|
|
8
11
|
export type TollFreeEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
|
|
12
|
+
/**
|
|
13
|
+
* The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.
|
|
14
|
+
*/
|
|
9
15
|
export type TollFreeEmergencyStatus = "Active" | "Inactive";
|
|
10
16
|
export type TollFreeVoiceReceiveMode = "voice" | "fax";
|
|
11
17
|
/**
|
|
@@ -9,7 +9,13 @@ import { MobileListInstance } from "./incomingPhoneNumber/mobile";
|
|
|
9
9
|
import { TollFreeListInstance } from "./incomingPhoneNumber/tollFree";
|
|
10
10
|
import { PhoneNumberCapabilities } from "../../../../interfaces";
|
|
11
11
|
export type IncomingPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
12
|
+
/**
|
|
13
|
+
* The status of address registration with emergency services. A registered emergency address will be used during handling of emergency calls from this number.
|
|
14
|
+
*/
|
|
12
15
|
export type IncomingPhoneNumberEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
|
|
16
|
+
/**
|
|
17
|
+
* The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.
|
|
18
|
+
*/
|
|
13
19
|
export type IncomingPhoneNumberEmergencyStatus = "Active" | "Inactive";
|
|
14
20
|
export type IncomingPhoneNumberVoiceReceiveMode = "voice" | "fax";
|
|
15
21
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2010 from "../../../V2010";
|
|
4
|
+
/**
|
|
5
|
+
* Reported outcome indicating whether there is confirmation that the Message recipient performed a tracked user action. Can be: `unconfirmed` or `confirmed`. For more details see [How to Optimize Message Deliverability with Message Feedback](https://www.twilio.com/docs/messaging/guides/send-message-feedback-to-twilio).
|
|
6
|
+
*/
|
|
4
7
|
export type FeedbackOutcome = "confirmed" | "unconfirmed";
|
|
5
8
|
/**
|
|
6
9
|
* Options to pass to create a FeedbackInstance
|
|
@@ -7,10 +7,17 @@ import { FeedbackListInstance } from "./message/feedback";
|
|
|
7
7
|
import { MediaListInstance } from "./message/media";
|
|
8
8
|
export type MessageAddressRetention = "retain" | "obfuscate";
|
|
9
9
|
export type MessageContentRetention = "retain" | "discard";
|
|
10
|
+
/**
|
|
11
|
+
* The direction of the message. Can be: `inbound` for incoming messages, `outbound-api` for messages created by the REST API, `outbound-call` for messages created during a call, or `outbound-reply` for messages created in response to an incoming message.
|
|
12
|
+
*/
|
|
10
13
|
export type MessageDirection = "inbound" | "outbound-api" | "outbound-call" | "outbound-reply";
|
|
11
14
|
export type MessageRiskCheck = "enable" | "disable";
|
|
12
15
|
export type MessageScheduleType = "fixed";
|
|
16
|
+
/**
|
|
17
|
+
* The status of the Message. Possible values: `accepted`, `scheduled`, `canceled`, `queued`, `sending`, `sent`, `failed`, `delivered`, `undelivered`, `receiving`, `received`, or `read` (WhatsApp only). For more information, See [detailed descriptions](https://www.twilio.com/docs/sms/api/message-resource#message-status-values).
|
|
18
|
+
*/
|
|
13
19
|
export type MessageStatus = "queued" | "sending" | "sent" | "failed" | "delivered" | "undelivered" | "receiving" | "received" | "accepted" | "scheduled" | "read" | "partially_delivered" | "canceled";
|
|
20
|
+
export type MessageTrafficType = "free";
|
|
14
21
|
export type MessageUpdateStatus = "canceled";
|
|
15
22
|
/**
|
|
16
23
|
* Options to pass to update a MessageInstance
|
|
@@ -49,6 +56,8 @@ export interface MessageListInstanceCreateOptions {
|
|
|
49
56
|
smartEncoded?: boolean;
|
|
50
57
|
/** Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp). */
|
|
51
58
|
persistentAction?: Array<string>;
|
|
59
|
+
/** */
|
|
60
|
+
trafficType?: MessageTrafficType;
|
|
52
61
|
/** For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. */
|
|
53
62
|
shortenUrls?: boolean;
|
|
54
63
|
/** */
|
|
@@ -254,6 +254,8 @@ function MessageListInstance(version, accountSid) {
|
|
|
254
254
|
data["SmartEncoded"] = serialize.bool(params["smartEncoded"]);
|
|
255
255
|
if (params["persistentAction"] !== undefined)
|
|
256
256
|
data["PersistentAction"] = serialize.map(params["persistentAction"], (e) => e);
|
|
257
|
+
if (params["trafficType"] !== undefined)
|
|
258
|
+
data["TrafficType"] = params["trafficType"];
|
|
257
259
|
if (params["shortenUrls"] !== undefined)
|
|
258
260
|
data["ShortenUrls"] = serialize.bool(params["shortenUrls"]);
|
|
259
261
|
if (params["scheduleType"] !== undefined)
|