twilio 3.71.3 → 3.74.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/README.md +2 -1
- package/lib/rest/Conversations.d.ts +2 -0
- package/lib/rest/Conversations.js +9 -0
- package/lib/rest/Insights.d.ts +4 -0
- package/lib/rest/Insights.js +16 -0
- package/lib/rest/Supersim.d.ts +2 -0
- package/lib/rest/Supersim.js +9 -0
- package/lib/rest/Voice.d.ts +2 -0
- package/lib/rest/Voice.js +9 -0
- package/lib/rest/accounts/v1/credential/aws.js +4 -2
- package/lib/rest/accounts/v1/credential/publicKey.js +4 -2
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +2 -0
- package/lib/rest/api/v2010/account/address.js +14 -12
- package/lib/rest/api/v2010/account/application.js +2 -0
- package/lib/rest/api/v2010/account/authorizedConnectApp.js +2 -0
- package/lib/rest/api/v2010/account/availablePhoneNumber/local.js +2 -0
- package/lib/rest/api/v2010/account/availablePhoneNumber/machineToMachine.js +2 -0
- package/lib/rest/api/v2010/account/availablePhoneNumber/mobile.js +2 -0
- package/lib/rest/api/v2010/account/availablePhoneNumber/national.js +2 -0
- package/lib/rest/api/v2010/account/availablePhoneNumber/sharedCost.js +2 -0
- package/lib/rest/api/v2010/account/availablePhoneNumber/tollFree.js +2 -0
- package/lib/rest/api/v2010/account/availablePhoneNumber/voip.js +2 -0
- package/lib/rest/api/v2010/account/availablePhoneNumber.js +2 -0
- package/lib/rest/api/v2010/account/call/event.js +2 -0
- package/lib/rest/api/v2010/account/call/feedback.js +2 -2
- package/lib/rest/api/v2010/account/call/feedbackSummary.js +4 -4
- package/lib/rest/api/v2010/account/call/notification.js +2 -0
- package/lib/rest/api/v2010/account/call/payment.js +8 -8
- package/lib/rest/api/v2010/account/call/recording.js +4 -2
- package/lib/rest/api/v2010/account/call/siprec.js +2 -2
- package/lib/rest/api/v2010/account/call/stream.d.ts +776 -0
- package/lib/rest/api/v2010/account/call/stream.js +810 -0
- package/lib/rest/api/v2010/account/call.d.ts +7 -0
- package/lib/rest/api/v2010/account/call.js +34 -4
- package/lib/rest/api/v2010/account/conference/participant.js +6 -4
- package/lib/rest/api/v2010/account/conference/recording.js +4 -2
- package/lib/rest/api/v2010/account/conference.js +2 -0
- package/lib/rest/api/v2010/account/connectApp.js +2 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.js +2 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.js +4 -2
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +4 -2
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +4 -2
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +4 -2
- package/lib/rest/api/v2010/account/incomingPhoneNumber.js +2 -0
- package/lib/rest/api/v2010/account/key.js +2 -0
- package/lib/rest/api/v2010/account/message/media.js +2 -0
- package/lib/rest/api/v2010/account/message.d.ts +9 -1
- package/lib/rest/api/v2010/account/message.js +19 -4
- package/lib/rest/api/v2010/account/notification.js +2 -0
- package/lib/rest/api/v2010/account/outgoingCallerId.js +2 -0
- package/lib/rest/api/v2010/account/queue/member.js +4 -2
- package/lib/rest/api/v2010/account/queue.js +4 -2
- package/lib/rest/api/v2010/account/recording/addOnResult/payload.js +2 -0
- package/lib/rest/api/v2010/account/recording/addOnResult.js +2 -0
- package/lib/rest/api/v2010/account/recording/transcription.js +2 -0
- package/lib/rest/api/v2010/account/recording.js +2 -0
- package/lib/rest/api/v2010/account/shortCode.js +2 -0
- package/lib/rest/api/v2010/account/signingKey.js +2 -0
- package/lib/rest/api/v2010/account/sip/credentialList/credential.js +6 -4
- package/lib/rest/api/v2010/account/sip/credentialList.js +6 -4
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsCredentialListMapping.js +4 -2
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authCallsMapping/authCallsIpAccessControlListMapping.js +4 -2
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authRegistrationsMapping/authRegistrationsCredentialListMapping.js +4 -2
- package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.js +4 -2
- package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.js +4 -2
- package/lib/rest/api/v2010/account/sip/domain.js +4 -2
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +6 -4
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.js +6 -4
- package/lib/rest/api/v2010/account/transcription.js +2 -0
- package/lib/rest/api/v2010/account/usage/record/allTime.js +2 -0
- package/lib/rest/api/v2010/account/usage/record/daily.js +2 -0
- package/lib/rest/api/v2010/account/usage/record/lastMonth.js +2 -0
- package/lib/rest/api/v2010/account/usage/record/monthly.js +2 -0
- package/lib/rest/api/v2010/account/usage/record/thisMonth.js +2 -0
- package/lib/rest/api/v2010/account/usage/record/today.js +2 -0
- package/lib/rest/api/v2010/account/usage/record/yearly.js +2 -0
- package/lib/rest/api/v2010/account/usage/record/yesterday.js +2 -0
- package/lib/rest/api/v2010/account/usage/record.js +2 -0
- package/lib/rest/api/v2010/account/usage/trigger.js +8 -6
- package/lib/rest/api/v2010/account/validationRequest.js +2 -2
- package/lib/rest/api/v2010/account.js +2 -0
- package/lib/rest/autopilot/v1/assistant/fieldType/fieldValue.js +6 -4
- package/lib/rest/autopilot/v1/assistant/fieldType.js +4 -2
- package/lib/rest/autopilot/v1/assistant/modelBuild.js +2 -0
- package/lib/rest/autopilot/v1/assistant/query.js +6 -4
- package/lib/rest/autopilot/v1/assistant/task/field.js +6 -4
- package/lib/rest/autopilot/v1/assistant/task/sample.js +6 -4
- package/lib/rest/autopilot/v1/assistant/task.js +4 -2
- package/lib/rest/autopilot/v1/assistant/webhook.js +8 -6
- package/lib/rest/autopilot/v1/assistant.js +2 -0
- package/lib/rest/autopilot/v1/restoreAssistant.js +2 -2
- package/lib/rest/bulkexports/v1/export/day.js +2 -0
- package/lib/rest/bulkexports/v1/export/exportCustomJob.js +8 -6
- package/lib/rest/chat/v1/credential.js +4 -2
- package/lib/rest/chat/v1/service/channel/invite.js +4 -2
- package/lib/rest/chat/v1/service/channel/member.js +4 -2
- package/lib/rest/chat/v1/service/channel/message.js +4 -2
- package/lib/rest/chat/v1/service/channel.js +2 -0
- package/lib/rest/chat/v1/service/role.js +10 -8
- package/lib/rest/chat/v1/service/user/userChannel.js +2 -0
- package/lib/rest/chat/v1/service/user.js +4 -2
- package/lib/rest/chat/v1/service.js +4 -2
- package/lib/rest/chat/v2/credential.js +4 -2
- package/lib/rest/chat/v2/service/binding.js +2 -0
- package/lib/rest/chat/v2/service/channel/invite.js +4 -2
- package/lib/rest/chat/v2/service/channel/member.js +4 -2
- package/lib/rest/chat/v2/service/channel/message.js +2 -0
- package/lib/rest/chat/v2/service/channel/webhook.js +4 -2
- package/lib/rest/chat/v2/service/channel.js +2 -0
- package/lib/rest/chat/v2/service/role.js +10 -8
- package/lib/rest/chat/v2/service/user/userBinding.js +2 -0
- package/lib/rest/chat/v2/service/user/userChannel.js +2 -0
- package/lib/rest/chat/v2/service/user.js +4 -2
- package/lib/rest/chat/v2/service.js +4 -2
- package/lib/rest/conversations/V1.d.ts +3 -0
- package/lib/rest/conversations/V1.js +13 -0
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +397 -0
- package/lib/rest/conversations/v1/addressConfiguration.js +802 -0
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.js +2 -0
- package/lib/rest/conversations/v1/conversation/message.js +2 -0
- package/lib/rest/conversations/v1/conversation/participant.js +2 -0
- package/lib/rest/conversations/v1/conversation/webhook.js +4 -2
- package/lib/rest/conversations/v1/conversation.js +2 -0
- package/lib/rest/conversations/v1/credential.js +4 -2
- package/lib/rest/conversations/v1/participantConversation.js +2 -0
- package/lib/rest/conversations/v1/role.js +10 -8
- package/lib/rest/conversations/v1/service/binding.js +2 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +2 -2
- package/lib/rest/conversations/v1/service/configuration/webhook.js +6 -5
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.js +2 -0
- package/lib/rest/conversations/v1/service/conversation/message.js +2 -0
- package/lib/rest/conversations/v1/service/conversation/participant.js +2 -0
- package/lib/rest/conversations/v1/service/conversation/webhook.js +4 -2
- package/lib/rest/conversations/v1/service/conversation.js +2 -0
- package/lib/rest/conversations/v1/service/participantConversation.js +2 -0
- package/lib/rest/conversations/v1/service/role.js +10 -8
- package/lib/rest/conversations/v1/service/user/userConversation.js +2 -0
- package/lib/rest/conversations/v1/service/user.js +4 -2
- package/lib/rest/conversations/v1/service.js +4 -2
- package/lib/rest/conversations/v1/user/userConversation.js +2 -0
- package/lib/rest/conversations/v1/user.js +4 -2
- package/lib/rest/events/v1/eventType.js +2 -0
- package/lib/rest/events/v1/schema/version.js +2 -0
- package/lib/rest/events/v1/sink/sinkValidate.js +2 -2
- package/lib/rest/events/v1/sink.js +10 -8
- package/lib/rest/events/v1/subscription/subscribedEvent.js +4 -2
- package/lib/rest/events/v1/subscription.js +8 -6
- package/lib/rest/fax/v1/fax/faxMedia.js +2 -0
- package/lib/rest/fax/v1/fax.d.ts +1 -68
- package/lib/rest/fax/v1/fax.js +2 -123
- package/lib/rest/flexApi/v1/channel.js +10 -8
- package/lib/rest/flexApi/v1/flexFlow.d.ts +2 -2
- package/lib/rest/flexApi/v1/flexFlow.js +11 -9
- package/lib/rest/flexApi/v1/webChannel.js +10 -8
- package/lib/rest/insights/V1.d.ts +6 -0
- package/lib/rest/insights/V1.js +22 -0
- package/lib/rest/insights/v1/call/event.js +2 -0
- package/lib/rest/insights/v1/call/metric.js +2 -0
- package/lib/rest/insights/v1/callSummaries.js +2 -0
- package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +383 -0
- package/lib/rest/insights/v1/conference/conferenceParticipant.js +671 -0
- package/lib/rest/insights/v1/conference.d.ts +391 -0
- package/lib/rest/insights/v1/conference.js +683 -0
- package/lib/rest/insights/v1/room/participant.js +2 -0
- package/lib/rest/insights/v1/room.js +2 -0
- package/lib/rest/insights/v1/setting.d.ts +181 -0
- package/lib/rest/insights/v1/setting.js +384 -0
- package/lib/rest/ipMessaging/v1/credential.js +4 -2
- package/lib/rest/ipMessaging/v1/service/channel/invite.js +4 -2
- package/lib/rest/ipMessaging/v1/service/channel/member.js +4 -2
- package/lib/rest/ipMessaging/v1/service/channel/message.js +4 -2
- package/lib/rest/ipMessaging/v1/service/channel.js +2 -0
- package/lib/rest/ipMessaging/v1/service/role.js +10 -8
- package/lib/rest/ipMessaging/v1/service/user/userChannel.js +2 -0
- package/lib/rest/ipMessaging/v1/service/user.js +4 -2
- package/lib/rest/ipMessaging/v1/service.js +4 -2
- package/lib/rest/ipMessaging/v2/credential.js +4 -2
- package/lib/rest/ipMessaging/v2/service/binding.js +2 -0
- package/lib/rest/ipMessaging/v2/service/channel/invite.js +4 -2
- package/lib/rest/ipMessaging/v2/service/channel/member.js +4 -2
- package/lib/rest/ipMessaging/v2/service/channel/message.js +2 -0
- package/lib/rest/ipMessaging/v2/service/channel/webhook.js +4 -2
- package/lib/rest/ipMessaging/v2/service/channel.js +2 -0
- package/lib/rest/ipMessaging/v2/service/role.js +10 -8
- package/lib/rest/ipMessaging/v2/service/user/userBinding.js +2 -0
- package/lib/rest/ipMessaging/v2/service/user/userChannel.js +2 -0
- package/lib/rest/ipMessaging/v2/service/user.js +4 -2
- package/lib/rest/ipMessaging/v2/service.js +4 -2
- package/lib/rest/media/v1/mediaProcessor.d.ts +4 -0
- package/lib/rest/media/v1/mediaProcessor.js +13 -7
- package/lib/rest/media/v1/playerStreamer.js +4 -2
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +4 -2
- package/lib/rest/messaging/v1/brandRegistration.d.ts +14 -0
- package/lib/rest/messaging/v1/brandRegistration.js +55 -4
- package/lib/rest/messaging/v1/externalCampaign.js +4 -4
- package/lib/rest/messaging/v1/service/alphaSender.js +4 -2
- package/lib/rest/messaging/v1/service/phoneNumber.js +4 -2
- package/lib/rest/messaging/v1/service/shortCode.js +4 -2
- package/lib/rest/messaging/v1/service/usAppToPerson.js +14 -12
- package/lib/rest/messaging/v1/service.js +4 -2
- package/lib/rest/monitor/v1/alert.js +2 -0
- package/lib/rest/monitor/v1/event.js +2 -0
- package/lib/rest/notify/v1/credential.js +4 -2
- package/lib/rest/notify/v1/service/binding.js +8 -6
- package/lib/rest/notify/v1/service.js +2 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +154 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.js +244 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.js +2 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.js +4 -2
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.js +2 -2
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +41 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +49 -4
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.js +6 -4
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.js +2 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.js +2 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.js +6 -4
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.js +2 -0
- package/lib/rest/preview/bulk_exports/export/day.js +2 -0
- package/lib/rest/preview/bulk_exports/export/exportCustomJob.js +8 -6
- package/lib/rest/preview/deployed_devices/fleet/certificate.js +4 -2
- package/lib/rest/preview/deployed_devices/fleet/deployment.js +2 -0
- package/lib/rest/preview/deployed_devices/fleet/device.js +2 -0
- package/lib/rest/preview/deployed_devices/fleet/key.js +2 -0
- package/lib/rest/preview/deployed_devices/fleet.js +2 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.js +2 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument.js +12 -10
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.js +6 -4
- package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.js +2 -0
- package/lib/rest/preview/marketplace/availableAddOn.js +2 -0
- package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.js +4 -2
- package/lib/rest/preview/marketplace/installedAddOn.js +6 -4
- package/lib/rest/preview/sync/service/document/documentPermission.js +8 -6
- package/lib/rest/preview/sync/service/document.js +4 -2
- package/lib/rest/preview/sync/service/syncList/syncListItem.js +6 -4
- package/lib/rest/preview/sync/service/syncList/syncListPermission.js +8 -6
- package/lib/rest/preview/sync/service/syncList.js +2 -0
- package/lib/rest/preview/sync/service/syncMap/syncMapItem.js +8 -6
- package/lib/rest/preview/sync/service/syncMap/syncMapPermission.js +8 -6
- package/lib/rest/preview/sync/service/syncMap.js +2 -0
- package/lib/rest/preview/sync/service.js +2 -0
- package/lib/rest/preview/trusted_comms/brandedChannel/channel.js +2 -2
- package/lib/rest/preview/understand/assistant/fieldType/fieldValue.js +6 -4
- package/lib/rest/preview/understand/assistant/fieldType.js +4 -2
- package/lib/rest/preview/understand/assistant/modelBuild.js +2 -0
- package/lib/rest/preview/understand/assistant/query.js +6 -4
- package/lib/rest/preview/understand/assistant/task/field.js +6 -4
- package/lib/rest/preview/understand/assistant/task/sample.js +6 -4
- package/lib/rest/preview/understand/assistant/task.js +4 -2
- package/lib/rest/preview/understand/assistant.js +2 -0
- package/lib/rest/preview/wireless/command.js +4 -2
- package/lib/rest/preview/wireless/ratePlan.js +2 -0
- package/lib/rest/preview/wireless/sim.js +2 -0
- package/lib/rest/pricing/v1/messaging/country.js +2 -0
- package/lib/rest/pricing/v1/phoneNumber/country.js +2 -0
- package/lib/rest/pricing/v1/voice/country.js +2 -0
- package/lib/rest/pricing/v2/country.js +2 -0
- package/lib/rest/pricing/v2/voice/country.js +2 -0
- package/lib/rest/proxy/v1/service/phoneNumber.js +2 -0
- package/lib/rest/proxy/v1/service/session/interaction.js +2 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.js +2 -0
- package/lib/rest/proxy/v1/service/session/participant.js +4 -2
- package/lib/rest/proxy/v1/service/session.js +2 -0
- package/lib/rest/proxy/v1/service/shortCode.js +4 -2
- package/lib/rest/proxy/v1/service.js +4 -2
- package/lib/rest/serverless/v1/service/asset/assetVersion.js +2 -0
- package/lib/rest/serverless/v1/service/asset.js +6 -4
- package/lib/rest/serverless/v1/service/build.js +2 -0
- package/lib/rest/serverless/v1/service/environment/deployment.js +2 -0
- package/lib/rest/serverless/v1/service/environment/log.js +2 -0
- package/lib/rest/serverless/v1/service/environment/variable.js +6 -4
- package/lib/rest/serverless/v1/service/environment.js +4 -2
- package/lib/rest/serverless/v1/service/function/functionVersion.js +2 -0
- package/lib/rest/serverless/v1/service/function.js +6 -4
- package/lib/rest/serverless/v1/service.js +6 -4
- package/lib/rest/studio/v1/flow/engagement/step.js +2 -0
- package/lib/rest/studio/v1/flow/engagement.js +6 -4
- package/lib/rest/studio/v1/flow/execution/executionStep.js +2 -0
- package/lib/rest/studio/v1/flow/execution.js +8 -6
- package/lib/rest/studio/v1/flow.js +2 -0
- package/lib/rest/studio/v2/flow/execution/executionStep.js +2 -0
- package/lib/rest/studio/v2/flow/execution.js +8 -6
- package/lib/rest/studio/v2/flow/flowRevision.js +2 -0
- package/lib/rest/studio/v2/flow/testUser.js +2 -2
- package/lib/rest/studio/v2/flow.js +10 -8
- package/lib/rest/studio/v2/flowValidate.js +6 -6
- package/lib/rest/supersim/V1.d.ts +3 -0
- package/lib/rest/supersim/V1.js +12 -0
- package/lib/rest/supersim/v1/command.js +6 -4
- package/lib/rest/supersim/v1/esimProfile.d.ts +344 -0
- package/lib/rest/supersim/v1/esimProfile.js +664 -0
- package/lib/rest/supersim/v1/fleet.d.ts +17 -5
- package/lib/rest/supersim/v1/fleet.js +36 -22
- package/lib/rest/supersim/v1/ipCommand.js +8 -6
- package/lib/rest/supersim/v1/network.js +2 -0
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.js +4 -2
- package/lib/rest/supersim/v1/networkAccessProfile.js +2 -0
- package/lib/rest/supersim/v1/sim/billingPeriod.js +2 -0
- package/lib/rest/supersim/v1/sim.js +6 -4
- package/lib/rest/supersim/v1/smsCommand.js +6 -4
- package/lib/rest/supersim/v1/usageRecord.js +2 -0
- package/lib/rest/sync/v1/service/document/documentPermission.js +8 -6
- package/lib/rest/sync/v1/service/document.js +2 -0
- package/lib/rest/sync/v1/service/syncList/syncListItem.js +4 -2
- package/lib/rest/sync/v1/service/syncList/syncListPermission.js +8 -6
- package/lib/rest/sync/v1/service/syncList.js +2 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.js +6 -4
- package/lib/rest/sync/v1/service/syncMap/syncMapPermission.js +8 -6
- package/lib/rest/sync/v1/service/syncMap.js +2 -0
- package/lib/rest/sync/v1/service/syncStream/streamMessage.js +2 -2
- package/lib/rest/sync/v1/service/syncStream.js +2 -0
- package/lib/rest/sync/v1/service.js +2 -0
- package/lib/rest/taskrouter/v1/workspace/activity.js +4 -2
- package/lib/rest/taskrouter/v1/workspace/event.js +2 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.js +2 -0
- package/lib/rest/taskrouter/v1/workspace/task.js +2 -0
- package/lib/rest/taskrouter/v1/workspace/taskChannel.js +6 -4
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.js +2 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.js +4 -2
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.js +2 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.js +2 -0
- package/lib/rest/taskrouter/v1/workspace/worker.js +4 -2
- package/lib/rest/taskrouter/v1/workspace/workflow.js +6 -4
- package/lib/rest/taskrouter/v1/workspace.js +4 -2
- package/lib/rest/trunking/v1/trunk/credentialList.js +4 -2
- package/lib/rest/trunking/v1/trunk/ipAccessControlList.js +4 -2
- package/lib/rest/trunking/v1/trunk/originationUrl.js +12 -10
- package/lib/rest/trunking/v1/trunk/phoneNumber.js +4 -2
- package/lib/rest/trunking/v1/trunk.js +2 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.js +6 -4
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.js +4 -2
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.js +4 -2
- package/lib/rest/trusthub/v1/customerProfiles.js +8 -6
- package/lib/rest/trusthub/v1/endUser.js +6 -4
- package/lib/rest/trusthub/v1/endUserType.js +2 -0
- package/lib/rest/trusthub/v1/policies.js +2 -0
- package/lib/rest/trusthub/v1/supportingDocument.js +6 -4
- package/lib/rest/trusthub/v1/supportingDocumentType.js +2 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.js +6 -4
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.js +4 -2
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.js +4 -2
- package/lib/rest/trusthub/v1/trustProducts.js +8 -6
- package/lib/rest/verify/v2/service/accessToken.d.ts +62 -4
- package/lib/rest/verify/v2/service/accessToken.js +159 -11
- package/lib/rest/verify/v2/service/entity/challenge.js +4 -2
- package/lib/rest/verify/v2/service/entity/factor.js +2 -0
- package/lib/rest/verify/v2/service/entity/newFactor.js +4 -4
- package/lib/rest/verify/v2/service/entity.js +4 -2
- package/lib/rest/verify/v2/service/messagingConfiguration.js +8 -6
- package/lib/rest/verify/v2/service/rateLimit/bucket.js +6 -4
- package/lib/rest/verify/v2/service/rateLimit.js +4 -2
- package/lib/rest/verify/v2/service/verification.js +6 -6
- package/lib/rest/verify/v2/service/verificationCheck.js +2 -2
- package/lib/rest/verify/v2/service/webhook.js +8 -6
- package/lib/rest/verify/v2/service.js +4 -2
- package/lib/rest/verify/v2/template.js +3 -1
- package/lib/rest/verify/v2/verificationAttempt.d.ts +50 -10
- package/lib/rest/verify/v2/verificationAttempt.js +61 -15
- package/lib/rest/video/v1/composition.d.ts +2 -0
- package/lib/rest/video/v1/composition.js +7 -2
- package/lib/rest/video/v1/compositionHook.js +6 -4
- package/lib/rest/video/v1/compositionSettings.js +2 -2
- package/lib/rest/video/v1/recording.d.ts +2 -0
- package/lib/rest/video/v1/recording.js +5 -0
- package/lib/rest/video/v1/recordingSettings.js +2 -2
- package/lib/rest/video/v1/room/recording.d.ts +2 -0
- package/lib/rest/video/v1/room/recording.js +5 -0
- package/lib/rest/video/v1/room/roomParticipant/roomParticipantPublishedTrack.js +2 -0
- package/lib/rest/video/v1/room/roomParticipant/roomParticipantSubscribedTrack.js +2 -0
- package/lib/rest/video/v1/room/roomParticipant.js +2 -0
- package/lib/rest/video/v1/room.d.ts +8 -0
- package/lib/rest/video/v1/room.js +17 -3
- package/lib/rest/voice/V1.d.ts +3 -0
- package/lib/rest/voice/V1.js +12 -0
- package/lib/rest/voice/v1/archivedCall.d.ts +136 -0
- package/lib/rest/voice/v1/archivedCall.js +325 -0
- package/lib/rest/voice/v1/byocTrunk.js +2 -0
- package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.js +4 -2
- package/lib/rest/voice/v1/connectionPolicy.js +2 -0
- package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.js +2 -2
- package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.js +2 -0
- package/lib/rest/voice/v1/dialingPermissions/country.js +2 -0
- package/lib/rest/voice/v1/ipRecord.js +4 -2
- package/lib/rest/voice/v1/sourceIpMapping.js +8 -6
- package/lib/rest/wireless/v1/command.js +4 -2
- package/lib/rest/wireless/v1/ratePlan.js +2 -0
- package/lib/rest/wireless/v1/sim/dataSession.js +2 -0
- package/lib/rest/wireless/v1/sim/usageRecord.js +2 -0
- package/lib/rest/wireless/v1/sim.js +6 -8
- package/lib/rest/wireless/v1/usageRecord.js +2 -0
- package/package.json +3 -3
- package/CHANGES.md +0 -2517
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by
|
|
3
|
+
* \ / _ _ _| _ _
|
|
4
|
+
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
5
|
+
* / /
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import Page = require('../../../base/Page');
|
|
9
|
+
import Response = require('../../../http/response');
|
|
10
|
+
import V1 = require('../V1');
|
|
11
|
+
import { SerializableClass } from '../../../interfaces';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Initialize the ArchivedCallList
|
|
15
|
+
*
|
|
16
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
17
|
+
* Use them with caution.
|
|
18
|
+
*
|
|
19
|
+
* @param version - Version of the resource
|
|
20
|
+
*/
|
|
21
|
+
declare function ArchivedCallList(version: V1): ArchivedCallListInstance;
|
|
22
|
+
|
|
23
|
+
interface ArchivedCallListInstance {
|
|
24
|
+
/**
|
|
25
|
+
* @param sid - sid of instance
|
|
26
|
+
*/
|
|
27
|
+
(sid: string): ArchivedCallContext;
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a archived_call
|
|
30
|
+
*
|
|
31
|
+
* @param date - The date of the Call in UTC.
|
|
32
|
+
* @param sid - The unique string that identifies this resource
|
|
33
|
+
*/
|
|
34
|
+
get(date: string, sid: string): ArchivedCallContext;
|
|
35
|
+
/**
|
|
36
|
+
* Provide a user-friendly representation
|
|
37
|
+
*/
|
|
38
|
+
toJSON(): any;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface ArchivedCallPayload extends ArchivedCallResource, Page.TwilioResponsePayload {
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface ArchivedCallResource {
|
|
45
|
+
date: Date;
|
|
46
|
+
sid: string;
|
|
47
|
+
url: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface ArchivedCallSolution {
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
declare class ArchivedCallContext {
|
|
55
|
+
/**
|
|
56
|
+
* Initialize the ArchivedCallContext
|
|
57
|
+
*
|
|
58
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
59
|
+
* Use them with caution.
|
|
60
|
+
*
|
|
61
|
+
* @param version - Version of the resource
|
|
62
|
+
* @param date - The date of the Call in UTC.
|
|
63
|
+
* @param sid - The unique string that identifies this resource
|
|
64
|
+
*/
|
|
65
|
+
constructor(version: V1, date: Date, sid: string);
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* remove a ArchivedCallInstance
|
|
69
|
+
*
|
|
70
|
+
* @param callback - Callback to handle processed record
|
|
71
|
+
*/
|
|
72
|
+
remove(callback?: (error: Error | null, items: ArchivedCallInstance) => any): Promise<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* Provide a user-friendly representation
|
|
75
|
+
*/
|
|
76
|
+
toJSON(): any;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
declare class ArchivedCallInstance extends SerializableClass {
|
|
81
|
+
/**
|
|
82
|
+
* Initialize the ArchivedCallContext
|
|
83
|
+
*
|
|
84
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
85
|
+
* Use them with caution.
|
|
86
|
+
*
|
|
87
|
+
* @param version - Version of the resource
|
|
88
|
+
* @param payload - The instance payload
|
|
89
|
+
* @param date - The date of the Call in UTC.
|
|
90
|
+
* @param sid - The unique string that identifies this resource
|
|
91
|
+
*/
|
|
92
|
+
constructor(version: V1, payload: ArchivedCallPayload, date: Date, sid: string);
|
|
93
|
+
|
|
94
|
+
private _proxy: ArchivedCallContext;
|
|
95
|
+
date: Date;
|
|
96
|
+
/**
|
|
97
|
+
* remove a ArchivedCallInstance
|
|
98
|
+
*
|
|
99
|
+
* @param callback - Callback to handle processed record
|
|
100
|
+
*/
|
|
101
|
+
remove(callback?: (error: Error | null, items: ArchivedCallInstance) => any): Promise<boolean>;
|
|
102
|
+
sid: string;
|
|
103
|
+
/**
|
|
104
|
+
* Provide a user-friendly representation
|
|
105
|
+
*/
|
|
106
|
+
toJSON(): any;
|
|
107
|
+
url: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
declare class ArchivedCallPage extends Page<V1, ArchivedCallPayload, ArchivedCallResource, ArchivedCallInstance> {
|
|
112
|
+
/**
|
|
113
|
+
* Initialize the ArchivedCallPage
|
|
114
|
+
*
|
|
115
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
116
|
+
* Use them with caution.
|
|
117
|
+
*
|
|
118
|
+
* @param version - Version of the resource
|
|
119
|
+
* @param response - Response from the API
|
|
120
|
+
* @param solution - Path solution
|
|
121
|
+
*/
|
|
122
|
+
constructor(version: V1, response: Response<string>, solution: ArchivedCallSolution);
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Build an instance of ArchivedCallInstance
|
|
126
|
+
*
|
|
127
|
+
* @param payload - Payload response from the API
|
|
128
|
+
*/
|
|
129
|
+
getInstance(payload: ArchivedCallPayload): ArchivedCallInstance;
|
|
130
|
+
/**
|
|
131
|
+
* Provide a user-friendly representation
|
|
132
|
+
*/
|
|
133
|
+
toJSON(): any;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export { ArchivedCallContext, ArchivedCallInstance, ArchivedCallList, ArchivedCallListInstance, ArchivedCallPage, ArchivedCallPayload, ArchivedCallResource, ArchivedCallSolution }
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* jshint ignore:start */
|
|
4
|
+
/**
|
|
5
|
+
* This code was generated by
|
|
6
|
+
* \ / _ _ _| _ _
|
|
7
|
+
* | (_)\/(_)(_|\/| |(/_ v1.0.0
|
|
8
|
+
* / /
|
|
9
|
+
*/
|
|
10
|
+
/* jshint ignore:end */
|
|
11
|
+
|
|
12
|
+
var Q = require('q'); /* jshint ignore:line */
|
|
13
|
+
var _ = require('lodash'); /* jshint ignore:line */
|
|
14
|
+
var util = require('util'); /* jshint ignore:line */
|
|
15
|
+
var Page = require('../../../base/Page'); /* jshint ignore:line */
|
|
16
|
+
var deserialize = require(
|
|
17
|
+
'../../../base/deserialize'); /* jshint ignore:line */
|
|
18
|
+
|
|
19
|
+
var ArchivedCallList;
|
|
20
|
+
var ArchivedCallPage;
|
|
21
|
+
var ArchivedCallInstance;
|
|
22
|
+
var ArchivedCallContext;
|
|
23
|
+
|
|
24
|
+
/* jshint ignore:start */
|
|
25
|
+
/**
|
|
26
|
+
* Initialize the ArchivedCallList
|
|
27
|
+
*
|
|
28
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
29
|
+
* Use them with caution.
|
|
30
|
+
*
|
|
31
|
+
* @constructor Twilio.Voice.V1.ArchivedCallList
|
|
32
|
+
*
|
|
33
|
+
* @param {Twilio.Voice.V1} version - Version of the resource
|
|
34
|
+
*/
|
|
35
|
+
/* jshint ignore:end */
|
|
36
|
+
ArchivedCallList = function ArchivedCallList(version) {
|
|
37
|
+
/* jshint ignore:start */
|
|
38
|
+
/**
|
|
39
|
+
* @function archivedCalls
|
|
40
|
+
* @memberof Twilio.Voice.V1#
|
|
41
|
+
*
|
|
42
|
+
* @param {string} sid - sid of instance
|
|
43
|
+
*
|
|
44
|
+
* @returns {Twilio.Voice.V1.ArchivedCallContext}
|
|
45
|
+
*/
|
|
46
|
+
/* jshint ignore:end */
|
|
47
|
+
function ArchivedCallListInstance(sid) {
|
|
48
|
+
return ArchivedCallListInstance.get(sid);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
ArchivedCallListInstance._version = version;
|
|
52
|
+
// Path Solution
|
|
53
|
+
ArchivedCallListInstance._solution = {};
|
|
54
|
+
/* jshint ignore:start */
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a archived_call
|
|
57
|
+
*
|
|
58
|
+
* @function get
|
|
59
|
+
* @memberof Twilio.Voice.V1.ArchivedCallList#
|
|
60
|
+
*
|
|
61
|
+
* @param {string} date - The date of the Call in UTC.
|
|
62
|
+
* @param {string} sid - The unique string that identifies this resource
|
|
63
|
+
*
|
|
64
|
+
* @returns {Twilio.Voice.V1.ArchivedCallContext}
|
|
65
|
+
*/
|
|
66
|
+
/* jshint ignore:end */
|
|
67
|
+
ArchivedCallListInstance.get = function get(date, sid) {
|
|
68
|
+
return new ArchivedCallContext(this._version, date, sid);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/* jshint ignore:start */
|
|
72
|
+
/**
|
|
73
|
+
* Provide a user-friendly representation
|
|
74
|
+
*
|
|
75
|
+
* @function toJSON
|
|
76
|
+
* @memberof Twilio.Voice.V1.ArchivedCallList#
|
|
77
|
+
*
|
|
78
|
+
* @returns Object
|
|
79
|
+
*/
|
|
80
|
+
/* jshint ignore:end */
|
|
81
|
+
ArchivedCallListInstance.toJSON = function toJSON() {
|
|
82
|
+
return this._solution;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
ArchivedCallListInstance[util.inspect.custom] = function inspect(depth, options)
|
|
86
|
+
{
|
|
87
|
+
return util.inspect(this.toJSON(), options);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
return ArchivedCallListInstance;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
/* jshint ignore:start */
|
|
95
|
+
/**
|
|
96
|
+
* Initialize the ArchivedCallPage
|
|
97
|
+
*
|
|
98
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
99
|
+
* Use them with caution.
|
|
100
|
+
*
|
|
101
|
+
* @constructor Twilio.Voice.V1.ArchivedCallPage
|
|
102
|
+
*
|
|
103
|
+
* @param {V1} version - Version of the resource
|
|
104
|
+
* @param {Response<string>} response - Response from the API
|
|
105
|
+
* @param {ArchivedCallSolution} solution - Path solution
|
|
106
|
+
*
|
|
107
|
+
* @returns ArchivedCallPage
|
|
108
|
+
*/
|
|
109
|
+
/* jshint ignore:end */
|
|
110
|
+
ArchivedCallPage = function ArchivedCallPage(version, response, solution) {
|
|
111
|
+
// Path Solution
|
|
112
|
+
this._solution = solution;
|
|
113
|
+
|
|
114
|
+
Page.prototype.constructor.call(this, version, response, this._solution);
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
_.extend(ArchivedCallPage.prototype, Page.prototype);
|
|
118
|
+
ArchivedCallPage.prototype.constructor = ArchivedCallPage;
|
|
119
|
+
|
|
120
|
+
/* jshint ignore:start */
|
|
121
|
+
/**
|
|
122
|
+
* Build an instance of ArchivedCallInstance
|
|
123
|
+
*
|
|
124
|
+
* @function getInstance
|
|
125
|
+
* @memberof Twilio.Voice.V1.ArchivedCallPage#
|
|
126
|
+
*
|
|
127
|
+
* @param {ArchivedCallPayload} payload - Payload response from the API
|
|
128
|
+
*
|
|
129
|
+
* @returns ArchivedCallInstance
|
|
130
|
+
*/
|
|
131
|
+
/* jshint ignore:end */
|
|
132
|
+
ArchivedCallPage.prototype.getInstance = function getInstance(payload) {
|
|
133
|
+
return new ArchivedCallInstance(this._version, payload);
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/* jshint ignore:start */
|
|
137
|
+
/**
|
|
138
|
+
* Provide a user-friendly representation
|
|
139
|
+
*
|
|
140
|
+
* @function toJSON
|
|
141
|
+
* @memberof Twilio.Voice.V1.ArchivedCallPage#
|
|
142
|
+
*
|
|
143
|
+
* @returns Object
|
|
144
|
+
*/
|
|
145
|
+
/* jshint ignore:end */
|
|
146
|
+
ArchivedCallPage.prototype.toJSON = function toJSON() {
|
|
147
|
+
let clone = {};
|
|
148
|
+
_.forOwn(this, function(value, key) {
|
|
149
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
150
|
+
clone[key] = value;
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
return clone;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
ArchivedCallPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
157
|
+
options) {
|
|
158
|
+
return util.inspect(this.toJSON(), options);
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
/* jshint ignore:start */
|
|
163
|
+
/**
|
|
164
|
+
* Initialize the ArchivedCallContext
|
|
165
|
+
*
|
|
166
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
167
|
+
* Use them with caution.
|
|
168
|
+
*
|
|
169
|
+
* @constructor Twilio.Voice.V1.ArchivedCallInstance
|
|
170
|
+
*
|
|
171
|
+
* @property {Date} date - date
|
|
172
|
+
* @property {string} sid - sid
|
|
173
|
+
* @property {string} url - The absolute URL of the resource
|
|
174
|
+
*
|
|
175
|
+
* @param {V1} version - Version of the resource
|
|
176
|
+
* @param {ArchivedCallPayload} payload - The instance payload
|
|
177
|
+
* @param {date} date - The date of the Call in UTC.
|
|
178
|
+
* @param {sid} sid - The unique string that identifies this resource
|
|
179
|
+
*/
|
|
180
|
+
/* jshint ignore:end */
|
|
181
|
+
ArchivedCallInstance = function ArchivedCallInstance(version, payload, date,
|
|
182
|
+
sid) {
|
|
183
|
+
this._version = version;
|
|
184
|
+
|
|
185
|
+
// Marshaled Properties
|
|
186
|
+
this.date = deserialize.iso8601Date(payload.date); // jshint ignore:line
|
|
187
|
+
this.sid = payload.sid; // jshint ignore:line
|
|
188
|
+
this.url = payload.url; // jshint ignore:line
|
|
189
|
+
|
|
190
|
+
// Context
|
|
191
|
+
this._context = undefined;
|
|
192
|
+
this._solution = {date: date || this.date, sid: sid || this.sid, };
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
Object.defineProperty(ArchivedCallInstance.prototype,
|
|
196
|
+
'_proxy', {
|
|
197
|
+
get: function() {
|
|
198
|
+
if (!this._context) {
|
|
199
|
+
this._context = new ArchivedCallContext(this._version, this._solution.date, this._solution.sid);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return this._context;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
/* jshint ignore:start */
|
|
207
|
+
/**
|
|
208
|
+
* remove a ArchivedCallInstance
|
|
209
|
+
*
|
|
210
|
+
* @function remove
|
|
211
|
+
* @memberof Twilio.Voice.V1.ArchivedCallInstance#
|
|
212
|
+
*
|
|
213
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
214
|
+
*
|
|
215
|
+
* @returns {Promise} Resolves to processed ArchivedCallInstance
|
|
216
|
+
*/
|
|
217
|
+
/* jshint ignore:end */
|
|
218
|
+
ArchivedCallInstance.prototype.remove = function remove(callback) {
|
|
219
|
+
return this._proxy.remove(callback);
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
/* jshint ignore:start */
|
|
223
|
+
/**
|
|
224
|
+
* Provide a user-friendly representation
|
|
225
|
+
*
|
|
226
|
+
* @function toJSON
|
|
227
|
+
* @memberof Twilio.Voice.V1.ArchivedCallInstance#
|
|
228
|
+
*
|
|
229
|
+
* @returns Object
|
|
230
|
+
*/
|
|
231
|
+
/* jshint ignore:end */
|
|
232
|
+
ArchivedCallInstance.prototype.toJSON = function toJSON() {
|
|
233
|
+
let clone = {};
|
|
234
|
+
_.forOwn(this, function(value, key) {
|
|
235
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
236
|
+
clone[key] = value;
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
return clone;
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
ArchivedCallInstance.prototype[util.inspect.custom] = function inspect(depth,
|
|
243
|
+
options) {
|
|
244
|
+
return util.inspect(this.toJSON(), options);
|
|
245
|
+
};
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
/* jshint ignore:start */
|
|
249
|
+
/**
|
|
250
|
+
* Initialize the ArchivedCallContext
|
|
251
|
+
*
|
|
252
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
253
|
+
* Use them with caution.
|
|
254
|
+
*
|
|
255
|
+
* @constructor Twilio.Voice.V1.ArchivedCallContext
|
|
256
|
+
*
|
|
257
|
+
* @param {V1} version - Version of the resource
|
|
258
|
+
* @param {date} date - The date of the Call in UTC.
|
|
259
|
+
* @param {sid} sid - The unique string that identifies this resource
|
|
260
|
+
*/
|
|
261
|
+
/* jshint ignore:end */
|
|
262
|
+
ArchivedCallContext = function ArchivedCallContext(version, date, sid) {
|
|
263
|
+
this._version = version;
|
|
264
|
+
|
|
265
|
+
// Path Solution
|
|
266
|
+
this._solution = {date: date, sid: sid, };
|
|
267
|
+
this._uri = `/Archives/${date}/Calls/${sid}`;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
/* jshint ignore:start */
|
|
271
|
+
/**
|
|
272
|
+
* remove a ArchivedCallInstance
|
|
273
|
+
*
|
|
274
|
+
* @function remove
|
|
275
|
+
* @memberof Twilio.Voice.V1.ArchivedCallContext#
|
|
276
|
+
*
|
|
277
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
278
|
+
*
|
|
279
|
+
* @returns {Promise} Resolves to processed ArchivedCallInstance
|
|
280
|
+
*/
|
|
281
|
+
/* jshint ignore:end */
|
|
282
|
+
ArchivedCallContext.prototype.remove = function remove(callback) {
|
|
283
|
+
var deferred = Q.defer();
|
|
284
|
+
var promise = this._version.remove({uri: this._uri, method: 'DELETE'});
|
|
285
|
+
|
|
286
|
+
promise = promise.then(function(payload) {
|
|
287
|
+
deferred.resolve(payload);
|
|
288
|
+
}.bind(this));
|
|
289
|
+
|
|
290
|
+
promise.catch(function(error) {
|
|
291
|
+
deferred.reject(error);
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
if (_.isFunction(callback)) {
|
|
295
|
+
deferred.promise.nodeify(callback);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
return deferred.promise;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
/* jshint ignore:start */
|
|
302
|
+
/**
|
|
303
|
+
* Provide a user-friendly representation
|
|
304
|
+
*
|
|
305
|
+
* @function toJSON
|
|
306
|
+
* @memberof Twilio.Voice.V1.ArchivedCallContext#
|
|
307
|
+
*
|
|
308
|
+
* @returns Object
|
|
309
|
+
*/
|
|
310
|
+
/* jshint ignore:end */
|
|
311
|
+
ArchivedCallContext.prototype.toJSON = function toJSON() {
|
|
312
|
+
return this._solution;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
ArchivedCallContext.prototype[util.inspect.custom] = function inspect(depth,
|
|
316
|
+
options) {
|
|
317
|
+
return util.inspect(this.toJSON(), options);
|
|
318
|
+
};
|
|
319
|
+
|
|
320
|
+
module.exports = {
|
|
321
|
+
ArchivedCallList: ArchivedCallList,
|
|
322
|
+
ArchivedCallPage: ArchivedCallPage,
|
|
323
|
+
ArchivedCallInstance: ArchivedCallInstance,
|
|
324
|
+
ArchivedCallContext: ArchivedCallContext
|
|
325
|
+
};
|
|
@@ -78,8 +78,8 @@ ConnectionPolicyTargetList = function ConnectionPolicyTargetList(version,
|
|
|
78
78
|
if (_.isUndefined(opts)) {
|
|
79
79
|
throw new Error('Required parameter "opts" missing.');
|
|
80
80
|
}
|
|
81
|
-
if (_.isUndefined(opts
|
|
82
|
-
throw new Error('Required parameter "opts
|
|
81
|
+
if (_.isUndefined(opts['target'])) {
|
|
82
|
+
throw new Error('Required parameter "opts[\'target\']" missing.');
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
var deferred = Q.defer();
|
|
@@ -197,6 +197,8 @@ ConnectionPolicyTargetList = function ConnectionPolicyTargetList(version,
|
|
|
197
197
|
if (!done) {
|
|
198
198
|
currentPage++;
|
|
199
199
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
200
|
+
} else {
|
|
201
|
+
onComplete();
|
|
200
202
|
}
|
|
201
203
|
});
|
|
202
204
|
|
|
@@ -71,8 +71,8 @@ BulkCountryUpdateList = function BulkCountryUpdateList(version) {
|
|
|
71
71
|
if (_.isUndefined(opts)) {
|
|
72
72
|
throw new Error('Required parameter "opts" missing.');
|
|
73
73
|
}
|
|
74
|
-
if (_.isUndefined(opts
|
|
75
|
-
throw new Error('Required parameter "opts
|
|
74
|
+
if (_.isUndefined(opts['updateRequest'])) {
|
|
75
|
+
throw new Error('Required parameter "opts[\'updateRequest\']" missing.');
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
var deferred = Q.defer();
|
|
@@ -72,8 +72,8 @@ IpRecordList = function IpRecordList(version) {
|
|
|
72
72
|
if (_.isUndefined(opts)) {
|
|
73
73
|
throw new Error('Required parameter "opts" missing.');
|
|
74
74
|
}
|
|
75
|
-
if (_.isUndefined(opts
|
|
76
|
-
throw new Error('Required parameter "opts
|
|
75
|
+
if (_.isUndefined(opts['ipAddress'])) {
|
|
76
|
+
throw new Error('Required parameter "opts[\'ipAddress\']" missing.');
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
var deferred = Q.defer();
|
|
@@ -184,6 +184,8 @@ IpRecordList = function IpRecordList(version) {
|
|
|
184
184
|
if (!done) {
|
|
185
185
|
currentPage++;
|
|
186
186
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
187
|
+
} else {
|
|
188
|
+
onComplete();
|
|
187
189
|
}
|
|
188
190
|
});
|
|
189
191
|
|
|
@@ -71,11 +71,11 @@ SourceIpMappingList = function SourceIpMappingList(version) {
|
|
|
71
71
|
if (_.isUndefined(opts)) {
|
|
72
72
|
throw new Error('Required parameter "opts" missing.');
|
|
73
73
|
}
|
|
74
|
-
if (_.isUndefined(opts
|
|
75
|
-
throw new Error('Required parameter "opts
|
|
74
|
+
if (_.isUndefined(opts['ipRecordSid'])) {
|
|
75
|
+
throw new Error('Required parameter "opts[\'ipRecordSid\']" missing.');
|
|
76
76
|
}
|
|
77
|
-
if (_.isUndefined(opts
|
|
78
|
-
throw new Error('Required parameter "opts
|
|
77
|
+
if (_.isUndefined(opts['sipDomainSid'])) {
|
|
78
|
+
throw new Error('Required parameter "opts[\'sipDomainSid\']" missing.');
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
var deferred = Q.defer();
|
|
@@ -185,6 +185,8 @@ SourceIpMappingList = function SourceIpMappingList(version) {
|
|
|
185
185
|
if (!done) {
|
|
186
186
|
currentPage++;
|
|
187
187
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
188
|
+
} else {
|
|
189
|
+
onComplete();
|
|
188
190
|
}
|
|
189
191
|
});
|
|
190
192
|
|
|
@@ -641,8 +643,8 @@ SourceIpMappingContext.prototype.update = function update(opts, callback) {
|
|
|
641
643
|
if (_.isUndefined(opts)) {
|
|
642
644
|
throw new Error('Required parameter "opts" missing.');
|
|
643
645
|
}
|
|
644
|
-
if (_.isUndefined(opts
|
|
645
|
-
throw new Error('Required parameter "opts
|
|
646
|
+
if (_.isUndefined(opts['sipDomainSid'])) {
|
|
647
|
+
throw new Error('Required parameter "opts[\'sipDomainSid\']" missing.');
|
|
646
648
|
}
|
|
647
649
|
|
|
648
650
|
var deferred = Q.defer();
|
|
@@ -141,6 +141,8 @@ CommandList = function CommandList(version) {
|
|
|
141
141
|
if (!done) {
|
|
142
142
|
currentPage++;
|
|
143
143
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
144
|
+
} else {
|
|
145
|
+
onComplete();
|
|
144
146
|
}
|
|
145
147
|
});
|
|
146
148
|
|
|
@@ -346,8 +348,8 @@ CommandList = function CommandList(version) {
|
|
|
346
348
|
if (_.isUndefined(opts)) {
|
|
347
349
|
throw new Error('Required parameter "opts" missing.');
|
|
348
350
|
}
|
|
349
|
-
if (_.isUndefined(opts
|
|
350
|
-
throw new Error('Required parameter "opts
|
|
351
|
+
if (_.isUndefined(opts['command'])) {
|
|
352
|
+
throw new Error('Required parameter "opts[\'command\']" missing.');
|
|
351
353
|
}
|
|
352
354
|
|
|
353
355
|
var deferred = Q.defer();
|
|
@@ -143,6 +143,8 @@ SimList = function SimList(version) {
|
|
|
143
143
|
if (!done) {
|
|
144
144
|
currentPage++;
|
|
145
145
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
146
|
+
} else {
|
|
147
|
+
onComplete();
|
|
146
148
|
}
|
|
147
149
|
});
|
|
148
150
|
|
|
@@ -446,14 +448,10 @@ SimPage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
|
446
448
|
* The URL we call when the SIM originates a machine-to-machine Command
|
|
447
449
|
* @property {string} commandsCallbackMethod -
|
|
448
450
|
* The HTTP method we use to call commands_callback_url
|
|
449
|
-
* @property {string} smsFallbackMethod -
|
|
450
|
-
*
|
|
451
|
-
* @property {string}
|
|
452
|
-
*
|
|
453
|
-
* @property {string} smsMethod -
|
|
454
|
-
* Deprecated. The HTTP method we use to call sms_url
|
|
455
|
-
* @property {string} smsUrl -
|
|
456
|
-
* Deprecated. The URL we call when the SIM-connected device sends an SMS message that is not a Command
|
|
451
|
+
* @property {string} smsFallbackMethod - Deprecated
|
|
452
|
+
* @property {string} smsFallbackUrl - Deprecated
|
|
453
|
+
* @property {string} smsMethod - Deprecated
|
|
454
|
+
* @property {string} smsUrl - Deprecated
|
|
457
455
|
* @property {string} voiceFallbackMethod -
|
|
458
456
|
* Deprecated. The HTTP method we use to call voice_fallback_url
|
|
459
457
|
* @property {string} voiceFallbackUrl -
|