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
|
@@ -18,6 +18,7 @@ var values = require('../../../../base/values'); /* jshint ignore:line */
|
|
|
18
18
|
var AccessTokenList;
|
|
19
19
|
var AccessTokenPage;
|
|
20
20
|
var AccessTokenInstance;
|
|
21
|
+
var AccessTokenContext;
|
|
21
22
|
|
|
22
23
|
/* jshint ignore:start */
|
|
23
24
|
/**
|
|
@@ -29,7 +30,7 @@ var AccessTokenInstance;
|
|
|
29
30
|
* @constructor Twilio.Verify.V2.ServiceContext.AccessTokenList
|
|
30
31
|
*
|
|
31
32
|
* @param {Twilio.Verify.V2} version - Version of the resource
|
|
32
|
-
* @param {string} serviceSid -
|
|
33
|
+
* @param {string} serviceSid - Verify Service Sid.
|
|
33
34
|
*/
|
|
34
35
|
/* jshint ignore:end */
|
|
35
36
|
AccessTokenList = function AccessTokenList(version, serviceSid) {
|
|
@@ -71,11 +72,11 @@ AccessTokenList = function AccessTokenList(version, serviceSid) {
|
|
|
71
72
|
if (_.isUndefined(opts)) {
|
|
72
73
|
throw new Error('Required parameter "opts" missing.');
|
|
73
74
|
}
|
|
74
|
-
if (_.isUndefined(opts
|
|
75
|
-
throw new Error('Required parameter "opts
|
|
75
|
+
if (_.isUndefined(opts['identity'])) {
|
|
76
|
+
throw new Error('Required parameter "opts[\'identity\']" missing.');
|
|
76
77
|
}
|
|
77
|
-
if (_.isUndefined(opts
|
|
78
|
-
throw new Error('Required parameter "opts
|
|
78
|
+
if (_.isUndefined(opts['factorType'])) {
|
|
79
|
+
throw new Error('Required parameter "opts[\'factorType\']" missing.');
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
var deferred = Q.defer();
|
|
@@ -88,7 +89,12 @@ AccessTokenList = function AccessTokenList(version, serviceSid) {
|
|
|
88
89
|
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
89
90
|
|
|
90
91
|
promise = promise.then(function(payload) {
|
|
91
|
-
deferred.resolve(new AccessTokenInstance(
|
|
92
|
+
deferred.resolve(new AccessTokenInstance(
|
|
93
|
+
this._version,
|
|
94
|
+
payload,
|
|
95
|
+
this._solution.serviceSid,
|
|
96
|
+
this._solution.sid
|
|
97
|
+
));
|
|
92
98
|
}.bind(this));
|
|
93
99
|
|
|
94
100
|
promise.catch(function(error) {
|
|
@@ -102,6 +108,22 @@ AccessTokenList = function AccessTokenList(version, serviceSid) {
|
|
|
102
108
|
return deferred.promise;
|
|
103
109
|
};
|
|
104
110
|
|
|
111
|
+
/* jshint ignore:start */
|
|
112
|
+
/**
|
|
113
|
+
* Constructs a access_token
|
|
114
|
+
*
|
|
115
|
+
* @function get
|
|
116
|
+
* @memberof Twilio.Verify.V2.ServiceContext.AccessTokenList#
|
|
117
|
+
*
|
|
118
|
+
* @param {string} sid - A string that uniquely identifies this Access Token.
|
|
119
|
+
*
|
|
120
|
+
* @returns {Twilio.Verify.V2.ServiceContext.AccessTokenContext}
|
|
121
|
+
*/
|
|
122
|
+
/* jshint ignore:end */
|
|
123
|
+
AccessTokenListInstance.get = function get(sid) {
|
|
124
|
+
return new AccessTokenContext(this._version, this._solution.serviceSid, sid);
|
|
125
|
+
};
|
|
126
|
+
|
|
105
127
|
/* jshint ignore:start */
|
|
106
128
|
/**
|
|
107
129
|
* Provide a user-friendly representation
|
|
@@ -202,23 +224,70 @@ AccessTokenPage.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
202
224
|
*
|
|
203
225
|
* @constructor Twilio.Verify.V2.ServiceContext.AccessTokenInstance
|
|
204
226
|
*
|
|
227
|
+
* @property {string} sid - A string that uniquely identifies this Access Token.
|
|
228
|
+
* @property {string} accountSid - Account Sid.
|
|
229
|
+
* @property {string} serviceSid - Verify Service Sid.
|
|
230
|
+
* @property {string} entityIdentity - Unique external identifier of the Entity
|
|
231
|
+
* @property {access_token.factor_types} factorType - The Type of the Factor
|
|
232
|
+
* @property {string} factorFriendlyName -
|
|
233
|
+
* A human readable description of this factor.
|
|
205
234
|
* @property {string} token - Generated access token.
|
|
235
|
+
* @property {string} url - The URL of this resource.
|
|
206
236
|
*
|
|
207
237
|
* @param {V2} version - Version of the resource
|
|
208
238
|
* @param {AccessTokenPayload} payload - The instance payload
|
|
209
|
-
* @param {sid} serviceSid -
|
|
239
|
+
* @param {sid} serviceSid - Verify Service Sid.
|
|
240
|
+
* @param {sid} sid - A string that uniquely identifies this Access Token.
|
|
210
241
|
*/
|
|
211
242
|
/* jshint ignore:end */
|
|
212
|
-
AccessTokenInstance = function AccessTokenInstance(version, payload, serviceSid
|
|
213
|
-
{
|
|
243
|
+
AccessTokenInstance = function AccessTokenInstance(version, payload, serviceSid,
|
|
244
|
+
sid) {
|
|
214
245
|
this._version = version;
|
|
215
246
|
|
|
216
247
|
// Marshaled Properties
|
|
248
|
+
this.sid = payload.sid; // jshint ignore:line
|
|
249
|
+
this.accountSid = payload.account_sid; // jshint ignore:line
|
|
250
|
+
this.serviceSid = payload.service_sid; // jshint ignore:line
|
|
251
|
+
this.entityIdentity = payload.entity_identity; // jshint ignore:line
|
|
252
|
+
this.factorType = payload.factor_type; // jshint ignore:line
|
|
253
|
+
this.factorFriendlyName = payload.factor_friendly_name; // jshint ignore:line
|
|
217
254
|
this.token = payload.token; // jshint ignore:line
|
|
255
|
+
this.url = payload.url; // jshint ignore:line
|
|
218
256
|
|
|
219
257
|
// Context
|
|
220
258
|
this._context = undefined;
|
|
221
|
-
this._solution = {serviceSid: serviceSid, };
|
|
259
|
+
this._solution = {serviceSid: serviceSid, sid: sid || this.sid, };
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
Object.defineProperty(AccessTokenInstance.prototype,
|
|
263
|
+
'_proxy', {
|
|
264
|
+
get: function() {
|
|
265
|
+
if (!this._context) {
|
|
266
|
+
this._context = new AccessTokenContext(
|
|
267
|
+
this._version,
|
|
268
|
+
this._solution.serviceSid,
|
|
269
|
+
this._solution.sid
|
|
270
|
+
);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
return this._context;
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
/* jshint ignore:start */
|
|
278
|
+
/**
|
|
279
|
+
* fetch a AccessTokenInstance
|
|
280
|
+
*
|
|
281
|
+
* @function fetch
|
|
282
|
+
* @memberof Twilio.Verify.V2.ServiceContext.AccessTokenInstance#
|
|
283
|
+
*
|
|
284
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
285
|
+
*
|
|
286
|
+
* @returns {Promise} Resolves to processed AccessTokenInstance
|
|
287
|
+
*/
|
|
288
|
+
/* jshint ignore:end */
|
|
289
|
+
AccessTokenInstance.prototype.fetch = function fetch(callback) {
|
|
290
|
+
return this._proxy.fetch(callback);
|
|
222
291
|
};
|
|
223
292
|
|
|
224
293
|
/* jshint ignore:start */
|
|
@@ -246,8 +315,87 @@ AccessTokenInstance.prototype[util.inspect.custom] = function inspect(depth,
|
|
|
246
315
|
return util.inspect(this.toJSON(), options);
|
|
247
316
|
};
|
|
248
317
|
|
|
318
|
+
|
|
319
|
+
/* jshint ignore:start */
|
|
320
|
+
/**
|
|
321
|
+
* Initialize the AccessTokenContext
|
|
322
|
+
*
|
|
323
|
+
* PLEASE NOTE that this class contains beta products that are subject to change.
|
|
324
|
+
* Use them with caution.
|
|
325
|
+
*
|
|
326
|
+
* @constructor Twilio.Verify.V2.ServiceContext.AccessTokenContext
|
|
327
|
+
*
|
|
328
|
+
* @param {V2} version - Version of the resource
|
|
329
|
+
* @param {sid} serviceSid - Service Sid.
|
|
330
|
+
* @param {sid} sid - A string that uniquely identifies this Access Token.
|
|
331
|
+
*/
|
|
332
|
+
/* jshint ignore:end */
|
|
333
|
+
AccessTokenContext = function AccessTokenContext(version, serviceSid, sid) {
|
|
334
|
+
this._version = version;
|
|
335
|
+
|
|
336
|
+
// Path Solution
|
|
337
|
+
this._solution = {serviceSid: serviceSid, sid: sid, };
|
|
338
|
+
this._uri = `/Services/${serviceSid}/AccessTokens/${sid}`;
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
/* jshint ignore:start */
|
|
342
|
+
/**
|
|
343
|
+
* fetch a AccessTokenInstance
|
|
344
|
+
*
|
|
345
|
+
* @function fetch
|
|
346
|
+
* @memberof Twilio.Verify.V2.ServiceContext.AccessTokenContext#
|
|
347
|
+
*
|
|
348
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
349
|
+
*
|
|
350
|
+
* @returns {Promise} Resolves to processed AccessTokenInstance
|
|
351
|
+
*/
|
|
352
|
+
/* jshint ignore:end */
|
|
353
|
+
AccessTokenContext.prototype.fetch = function fetch(callback) {
|
|
354
|
+
var deferred = Q.defer();
|
|
355
|
+
var promise = this._version.fetch({uri: this._uri, method: 'GET'});
|
|
356
|
+
|
|
357
|
+
promise = promise.then(function(payload) {
|
|
358
|
+
deferred.resolve(new AccessTokenInstance(
|
|
359
|
+
this._version,
|
|
360
|
+
payload,
|
|
361
|
+
this._solution.serviceSid,
|
|
362
|
+
this._solution.sid
|
|
363
|
+
));
|
|
364
|
+
}.bind(this));
|
|
365
|
+
|
|
366
|
+
promise.catch(function(error) {
|
|
367
|
+
deferred.reject(error);
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
if (_.isFunction(callback)) {
|
|
371
|
+
deferred.promise.nodeify(callback);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
return deferred.promise;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
/* jshint ignore:start */
|
|
378
|
+
/**
|
|
379
|
+
* Provide a user-friendly representation
|
|
380
|
+
*
|
|
381
|
+
* @function toJSON
|
|
382
|
+
* @memberof Twilio.Verify.V2.ServiceContext.AccessTokenContext#
|
|
383
|
+
*
|
|
384
|
+
* @returns Object
|
|
385
|
+
*/
|
|
386
|
+
/* jshint ignore:end */
|
|
387
|
+
AccessTokenContext.prototype.toJSON = function toJSON() {
|
|
388
|
+
return this._solution;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
AccessTokenContext.prototype[util.inspect.custom] = function inspect(depth,
|
|
392
|
+
options) {
|
|
393
|
+
return util.inspect(this.toJSON(), options);
|
|
394
|
+
};
|
|
395
|
+
|
|
249
396
|
module.exports = {
|
|
250
397
|
AccessTokenList: AccessTokenList,
|
|
251
398
|
AccessTokenPage: AccessTokenPage,
|
|
252
|
-
AccessTokenInstance: AccessTokenInstance
|
|
399
|
+
AccessTokenInstance: AccessTokenInstance,
|
|
400
|
+
AccessTokenContext: AccessTokenContext
|
|
253
401
|
};
|
|
@@ -84,8 +84,8 @@ ChallengeList = function ChallengeList(version, serviceSid, identity) {
|
|
|
84
84
|
if (_.isUndefined(opts)) {
|
|
85
85
|
throw new Error('Required parameter "opts" missing.');
|
|
86
86
|
}
|
|
87
|
-
if (_.isUndefined(opts
|
|
88
|
-
throw new Error('Required parameter "opts
|
|
87
|
+
if (_.isUndefined(opts['factorSid'])) {
|
|
88
|
+
throw new Error('Required parameter "opts[\'factorSid\']" missing.');
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
var deferred = Q.defer();
|
|
@@ -210,6 +210,8 @@ ChallengeList = function ChallengeList(version, serviceSid, identity) {
|
|
|
210
210
|
if (!done) {
|
|
211
211
|
currentPage++;
|
|
212
212
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
213
|
+
} else {
|
|
214
|
+
onComplete();
|
|
213
215
|
}
|
|
214
216
|
});
|
|
215
217
|
|
|
@@ -93,11 +93,11 @@ NewFactorList = function NewFactorList(version, serviceSid, identity) {
|
|
|
93
93
|
if (_.isUndefined(opts)) {
|
|
94
94
|
throw new Error('Required parameter "opts" missing.');
|
|
95
95
|
}
|
|
96
|
-
if (_.isUndefined(opts
|
|
97
|
-
throw new Error('Required parameter "opts
|
|
96
|
+
if (_.isUndefined(opts['friendlyName'])) {
|
|
97
|
+
throw new Error('Required parameter "opts[\'friendlyName\']" missing.');
|
|
98
98
|
}
|
|
99
|
-
if (_.isUndefined(opts
|
|
100
|
-
throw new Error('Required parameter "opts
|
|
99
|
+
if (_.isUndefined(opts['factorType'])) {
|
|
100
|
+
throw new Error('Required parameter "opts[\'factorType\']" missing.');
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
var deferred = Q.defer();
|
|
@@ -75,8 +75,8 @@ EntityList = function EntityList(version, serviceSid) {
|
|
|
75
75
|
if (_.isUndefined(opts)) {
|
|
76
76
|
throw new Error('Required parameter "opts" missing.');
|
|
77
77
|
}
|
|
78
|
-
if (_.isUndefined(opts
|
|
79
|
-
throw new Error('Required parameter "opts
|
|
78
|
+
if (_.isUndefined(opts['identity'])) {
|
|
79
|
+
throw new Error('Required parameter "opts[\'identity\']" missing.');
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
var deferred = Q.defer();
|
|
@@ -188,6 +188,8 @@ EntityList = function EntityList(version, serviceSid) {
|
|
|
188
188
|
if (!done) {
|
|
189
189
|
currentPage++;
|
|
190
190
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
191
|
+
} else {
|
|
192
|
+
onComplete();
|
|
191
193
|
}
|
|
192
194
|
});
|
|
193
195
|
|
|
@@ -74,11 +74,11 @@ MessagingConfigurationList = function MessagingConfigurationList(version,
|
|
|
74
74
|
if (_.isUndefined(opts)) {
|
|
75
75
|
throw new Error('Required parameter "opts" missing.');
|
|
76
76
|
}
|
|
77
|
-
if (_.isUndefined(opts
|
|
78
|
-
throw new Error('Required parameter "opts
|
|
77
|
+
if (_.isUndefined(opts['country'])) {
|
|
78
|
+
throw new Error('Required parameter "opts[\'country\']" missing.');
|
|
79
79
|
}
|
|
80
|
-
if (_.isUndefined(opts
|
|
81
|
-
throw new Error('Required parameter "opts
|
|
80
|
+
if (_.isUndefined(opts['messagingServiceSid'])) {
|
|
81
|
+
throw new Error('Required parameter "opts[\'messagingServiceSid\']" missing.');
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
var deferred = Q.defer();
|
|
@@ -193,6 +193,8 @@ MessagingConfigurationList = function MessagingConfigurationList(version,
|
|
|
193
193
|
if (!done) {
|
|
194
194
|
currentPage++;
|
|
195
195
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
196
|
+
} else {
|
|
197
|
+
onComplete();
|
|
196
198
|
}
|
|
197
199
|
});
|
|
198
200
|
|
|
@@ -637,8 +639,8 @@ MessagingConfigurationContext.prototype.update = function update(opts, callback)
|
|
|
637
639
|
if (_.isUndefined(opts)) {
|
|
638
640
|
throw new Error('Required parameter "opts" missing.');
|
|
639
641
|
}
|
|
640
|
-
if (_.isUndefined(opts
|
|
641
|
-
throw new Error('Required parameter "opts
|
|
642
|
+
if (_.isUndefined(opts['messagingServiceSid'])) {
|
|
643
|
+
throw new Error('Required parameter "opts[\'messagingServiceSid\']" missing.');
|
|
642
644
|
}
|
|
643
645
|
|
|
644
646
|
var deferred = Q.defer();
|
|
@@ -73,11 +73,11 @@ BucketList = function BucketList(version, serviceSid, rateLimitSid) {
|
|
|
73
73
|
if (_.isUndefined(opts)) {
|
|
74
74
|
throw new Error('Required parameter "opts" missing.');
|
|
75
75
|
}
|
|
76
|
-
if (_.isUndefined(opts
|
|
77
|
-
throw new Error('Required parameter "opts
|
|
76
|
+
if (_.isUndefined(opts['max'])) {
|
|
77
|
+
throw new Error('Required parameter "opts[\'max\']" missing.');
|
|
78
78
|
}
|
|
79
|
-
if (_.isUndefined(opts
|
|
80
|
-
throw new Error('Required parameter "opts
|
|
79
|
+
if (_.isUndefined(opts['interval'])) {
|
|
80
|
+
throw new Error('Required parameter "opts[\'interval\']" missing.');
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
var deferred = Q.defer();
|
|
@@ -190,6 +190,8 @@ BucketList = function BucketList(version, serviceSid, rateLimitSid) {
|
|
|
190
190
|
if (!done) {
|
|
191
191
|
currentPage++;
|
|
192
192
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
193
|
+
} else {
|
|
194
|
+
onComplete();
|
|
193
195
|
}
|
|
194
196
|
});
|
|
195
197
|
|
|
@@ -73,8 +73,8 @@ RateLimitList = function RateLimitList(version, serviceSid) {
|
|
|
73
73
|
if (_.isUndefined(opts)) {
|
|
74
74
|
throw new Error('Required parameter "opts" missing.');
|
|
75
75
|
}
|
|
76
|
-
if (_.isUndefined(opts
|
|
77
|
-
throw new Error('Required parameter "opts
|
|
76
|
+
if (_.isUndefined(opts['uniqueName'])) {
|
|
77
|
+
throw new Error('Required parameter "opts[\'uniqueName\']" missing.');
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
var deferred = Q.defer();
|
|
@@ -189,6 +189,8 @@ RateLimitList = function RateLimitList(version, serviceSid) {
|
|
|
189
189
|
if (!done) {
|
|
190
190
|
currentPage++;
|
|
191
191
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
192
|
+
} else {
|
|
193
|
+
onComplete();
|
|
192
194
|
}
|
|
193
195
|
});
|
|
194
196
|
|
|
@@ -93,11 +93,11 @@ VerificationList = function VerificationList(version, serviceSid) {
|
|
|
93
93
|
if (_.isUndefined(opts)) {
|
|
94
94
|
throw new Error('Required parameter "opts" missing.');
|
|
95
95
|
}
|
|
96
|
-
if (_.isUndefined(opts
|
|
97
|
-
throw new Error('Required parameter "opts
|
|
96
|
+
if (_.isUndefined(opts['to'])) {
|
|
97
|
+
throw new Error('Required parameter "opts[\'to\']" missing.');
|
|
98
98
|
}
|
|
99
|
-
if (_.isUndefined(opts
|
|
100
|
-
throw new Error('Required parameter "opts
|
|
99
|
+
if (_.isUndefined(opts['channel'])) {
|
|
100
|
+
throw new Error('Required parameter "opts[\'channel\']" missing.');
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
var deferred = Q.defer();
|
|
@@ -415,8 +415,8 @@ VerificationContext.prototype.update = function update(opts, callback) {
|
|
|
415
415
|
if (_.isUndefined(opts)) {
|
|
416
416
|
throw new Error('Required parameter "opts" missing.');
|
|
417
417
|
}
|
|
418
|
-
if (_.isUndefined(opts
|
|
419
|
-
throw new Error('Required parameter "opts
|
|
418
|
+
if (_.isUndefined(opts['status'])) {
|
|
419
|
+
throw new Error('Required parameter "opts[\'status\']" missing.');
|
|
420
420
|
}
|
|
421
421
|
|
|
422
422
|
var deferred = Q.defer();
|
|
@@ -76,8 +76,8 @@ VerificationCheckList = function VerificationCheckList(version, serviceSid) {
|
|
|
76
76
|
if (_.isUndefined(opts)) {
|
|
77
77
|
throw new Error('Required parameter "opts" missing.');
|
|
78
78
|
}
|
|
79
|
-
if (_.isUndefined(opts
|
|
80
|
-
throw new Error('Required parameter "opts
|
|
79
|
+
if (_.isUndefined(opts['code'])) {
|
|
80
|
+
throw new Error('Required parameter "opts[\'code\']" missing.');
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
var deferred = Q.defer();
|
|
@@ -79,14 +79,14 @@ WebhookList = function WebhookList(version, serviceSid) {
|
|
|
79
79
|
if (_.isUndefined(opts)) {
|
|
80
80
|
throw new Error('Required parameter "opts" missing.');
|
|
81
81
|
}
|
|
82
|
-
if (_.isUndefined(opts
|
|
83
|
-
throw new Error('Required parameter "opts
|
|
82
|
+
if (_.isUndefined(opts['friendlyName'])) {
|
|
83
|
+
throw new Error('Required parameter "opts[\'friendlyName\']" missing.');
|
|
84
84
|
}
|
|
85
|
-
if (_.isUndefined(opts
|
|
86
|
-
throw new Error('Required parameter "opts
|
|
85
|
+
if (_.isUndefined(opts['eventTypes'])) {
|
|
86
|
+
throw new Error('Required parameter "opts[\'eventTypes\']" missing.');
|
|
87
87
|
}
|
|
88
|
-
if (_.isUndefined(opts
|
|
89
|
-
throw new Error('Required parameter "opts
|
|
88
|
+
if (_.isUndefined(opts['webhookUrl'])) {
|
|
89
|
+
throw new Error('Required parameter "opts[\'webhookUrl\']" missing.');
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
var deferred = Q.defer();
|
|
@@ -204,6 +204,8 @@ WebhookList = function WebhookList(version, serviceSid) {
|
|
|
204
204
|
if (!done) {
|
|
205
205
|
currentPage++;
|
|
206
206
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
207
|
+
} else {
|
|
208
|
+
onComplete();
|
|
207
209
|
}
|
|
208
210
|
});
|
|
209
211
|
|
|
@@ -110,8 +110,8 @@ ServiceList = function ServiceList(version) {
|
|
|
110
110
|
if (_.isUndefined(opts)) {
|
|
111
111
|
throw new Error('Required parameter "opts" missing.');
|
|
112
112
|
}
|
|
113
|
-
if (_.isUndefined(opts
|
|
114
|
-
throw new Error('Required parameter "opts
|
|
113
|
+
if (_.isUndefined(opts['friendlyName'])) {
|
|
114
|
+
throw new Error('Required parameter "opts[\'friendlyName\']" missing.');
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
var deferred = Q.defer();
|
|
@@ -236,6 +236,8 @@ ServiceList = function ServiceList(version) {
|
|
|
236
236
|
if (!done) {
|
|
237
237
|
currentPage++;
|
|
238
238
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
239
|
+
} else {
|
|
240
|
+
onComplete();
|
|
239
241
|
}
|
|
240
242
|
});
|
|
241
243
|
|
|
@@ -132,6 +132,8 @@ TemplateList = function TemplateList(version) {
|
|
|
132
132
|
if (!done) {
|
|
133
133
|
currentPage++;
|
|
134
134
|
fetchNextPage(_.bind(page.nextPage, page));
|
|
135
|
+
} else {
|
|
136
|
+
onComplete();
|
|
135
137
|
}
|
|
136
138
|
});
|
|
137
139
|
|
|
@@ -388,7 +390,7 @@ TemplatePage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
|
388
390
|
* @property {string} sid - A string that uniquely identifies this Template
|
|
389
391
|
* @property {string} accountSid - Account Sid
|
|
390
392
|
* @property {string} friendlyName - A string to describe the verification template
|
|
391
|
-
* @property {object} translations -
|
|
393
|
+
* @property {object} translations - Object with the template translations.
|
|
392
394
|
*
|
|
393
395
|
* @param {V2} version - Version of the resource
|
|
394
396
|
* @param {TemplatePayload} payload - The instance payload
|
|
@@ -10,10 +10,16 @@ import Response = require('../../../http/response');
|
|
|
10
10
|
import V2 = require('../V2');
|
|
11
11
|
import { SerializableClass } from '../../../interfaces';
|
|
12
12
|
|
|
13
|
+
type VerificationAttemptAttemptStatus = 'confirmed'|'unconfirmed'|'expired';
|
|
14
|
+
|
|
15
|
+
type VerificationAttemptCallStatus = 'queued'|'in-progress'|'completed'|'busy'|'failed'|'no-answer'|'ringing'|'canceled';
|
|
16
|
+
|
|
13
17
|
type VerificationAttemptChannels = 'sms'|'call'|'email'|'whatsapp';
|
|
14
18
|
|
|
15
19
|
type VerificationAttemptConversionStatus = 'converted'|'unconverted';
|
|
16
20
|
|
|
21
|
+
type VerificationAttemptMessageStatus = 'queued'|'sending'|'sent'|'failed'|'delivered'|'undelivered'|'receiving'|'received'|'accepted'|'scheduled'|'read'|'partially_delivered'|'canceled';
|
|
22
|
+
|
|
17
23
|
/**
|
|
18
24
|
* Initialize the VerificationAttemptList
|
|
19
25
|
*
|
|
@@ -142,9 +148,11 @@ interface VerificationAttemptListInstance {
|
|
|
142
148
|
* @property callback -
|
|
143
149
|
* Function to process each record. If this and a positional
|
|
144
150
|
* callback are passed, this one will be used
|
|
145
|
-
* @property
|
|
146
|
-
* @property
|
|
147
|
-
* @property
|
|
151
|
+
* @property channel - Filter verification attempts by communication channel.
|
|
152
|
+
* @property channelData.to - Filters by destination of the verification attempt.
|
|
153
|
+
* @property country - Filter verification attempts by destination country.
|
|
154
|
+
* @property dateCreatedAfter - Filter verification attempts after this date.
|
|
155
|
+
* @property dateCreatedBefore - Filter verification attempts before this date.
|
|
148
156
|
* @property done - Function to be called upon completion of streaming
|
|
149
157
|
* @property limit -
|
|
150
158
|
* Upper limit for the number of records to return.
|
|
@@ -156,25 +164,35 @@ interface VerificationAttemptListInstance {
|
|
|
156
164
|
* If no pageSize is defined but a limit is defined,
|
|
157
165
|
* each() will attempt to read the limit with the most efficient
|
|
158
166
|
* page size, i.e. min(limit, 1000)
|
|
167
|
+
* @property status - Filter verification attempts by conversion status.
|
|
168
|
+
* @property verificationSid - Filter attempts by verification.
|
|
169
|
+
* @property verifyServiceSid - Filter verification attempts by verify service.
|
|
159
170
|
*/
|
|
160
171
|
interface VerificationAttemptListInstanceEachOptions {
|
|
161
172
|
callback?: (item: VerificationAttemptInstance, done: (err?: Error) => void) => void;
|
|
173
|
+
channel?: VerificationAttemptChannels;
|
|
162
174
|
channelData?: {
|
|
163
175
|
to?: string;
|
|
164
176
|
};
|
|
177
|
+
country?: string;
|
|
165
178
|
dateCreatedAfter?: Date;
|
|
166
179
|
dateCreatedBefore?: Date;
|
|
167
180
|
done?: Function;
|
|
168
181
|
limit?: number;
|
|
169
182
|
pageSize?: number;
|
|
183
|
+
status?: VerificationAttemptConversionStatus;
|
|
184
|
+
verificationSid?: string;
|
|
185
|
+
verifyServiceSid?: string;
|
|
170
186
|
}
|
|
171
187
|
|
|
172
188
|
/**
|
|
173
189
|
* Options to pass to list
|
|
174
190
|
*
|
|
175
|
-
* @property
|
|
176
|
-
* @property
|
|
177
|
-
* @property
|
|
191
|
+
* @property channel - Filter verification attempts by communication channel.
|
|
192
|
+
* @property channelData.to - Filters by destination of the verification attempt.
|
|
193
|
+
* @property country - Filter verification attempts by destination country.
|
|
194
|
+
* @property dateCreatedAfter - Filter verification attempts after this date.
|
|
195
|
+
* @property dateCreatedBefore - Filter verification attempts before this date.
|
|
178
196
|
* @property limit -
|
|
179
197
|
* Upper limit for the number of records to return.
|
|
180
198
|
* list() guarantees never to return more than limit.
|
|
@@ -185,36 +203,54 @@ interface VerificationAttemptListInstanceEachOptions {
|
|
|
185
203
|
* If no page_size is defined but a limit is defined,
|
|
186
204
|
* list() will attempt to read the limit with the most
|
|
187
205
|
* efficient page size, i.e. min(limit, 1000)
|
|
206
|
+
* @property status - Filter verification attempts by conversion status.
|
|
207
|
+
* @property verificationSid - Filter attempts by verification.
|
|
208
|
+
* @property verifyServiceSid - Filter verification attempts by verify service.
|
|
188
209
|
*/
|
|
189
210
|
interface VerificationAttemptListInstanceOptions {
|
|
211
|
+
channel?: VerificationAttemptChannels;
|
|
190
212
|
channelData?: {
|
|
191
213
|
to?: string;
|
|
192
214
|
};
|
|
215
|
+
country?: string;
|
|
193
216
|
dateCreatedAfter?: Date;
|
|
194
217
|
dateCreatedBefore?: Date;
|
|
195
218
|
limit?: number;
|
|
196
219
|
pageSize?: number;
|
|
220
|
+
status?: VerificationAttemptConversionStatus;
|
|
221
|
+
verificationSid?: string;
|
|
222
|
+
verifyServiceSid?: string;
|
|
197
223
|
}
|
|
198
224
|
|
|
199
225
|
/**
|
|
200
226
|
* Options to pass to page
|
|
201
227
|
*
|
|
202
|
-
* @property
|
|
203
|
-
* @property
|
|
204
|
-
* @property
|
|
228
|
+
* @property channel - Filter verification attempts by communication channel.
|
|
229
|
+
* @property channelData.to - Filters by destination of the verification attempt.
|
|
230
|
+
* @property country - Filter verification attempts by destination country.
|
|
231
|
+
* @property dateCreatedAfter - Filter verification attempts after this date.
|
|
232
|
+
* @property dateCreatedBefore - Filter verification attempts before this date.
|
|
205
233
|
* @property pageNumber - Page Number, this value is simply for client state
|
|
206
234
|
* @property pageSize - Number of records to return, defaults to 50
|
|
207
235
|
* @property pageToken - PageToken provided by the API
|
|
236
|
+
* @property status - Filter verification attempts by conversion status.
|
|
237
|
+
* @property verificationSid - Filter attempts by verification.
|
|
238
|
+
* @property verifyServiceSid - Filter verification attempts by verify service.
|
|
208
239
|
*/
|
|
209
240
|
interface VerificationAttemptListInstancePageOptions {
|
|
241
|
+
channel?: VerificationAttemptChannels;
|
|
210
242
|
channelData?: {
|
|
211
243
|
to?: string;
|
|
212
244
|
};
|
|
245
|
+
country?: string;
|
|
213
246
|
dateCreatedAfter?: Date;
|
|
214
247
|
dateCreatedBefore?: Date;
|
|
215
248
|
pageNumber?: number;
|
|
216
249
|
pageSize?: number;
|
|
217
250
|
pageToken?: string;
|
|
251
|
+
status?: VerificationAttemptConversionStatus;
|
|
252
|
+
verificationSid?: string;
|
|
253
|
+
verifyServiceSid?: string;
|
|
218
254
|
}
|
|
219
255
|
|
|
220
256
|
interface VerificationAttemptPayload extends VerificationAttemptResource, Page.TwilioResponsePayload {
|
|
@@ -227,9 +263,11 @@ interface VerificationAttemptResource {
|
|
|
227
263
|
conversion_status: VerificationAttemptConversionStatus;
|
|
228
264
|
date_created: Date;
|
|
229
265
|
date_updated: Date;
|
|
266
|
+
price: object;
|
|
230
267
|
service_sid: string;
|
|
231
268
|
sid: string;
|
|
232
269
|
url: string;
|
|
270
|
+
verification_sid: string;
|
|
233
271
|
}
|
|
234
272
|
|
|
235
273
|
interface VerificationAttemptSolution {
|
|
@@ -281,6 +319,7 @@ declare class VerificationAttemptInstance extends SerializableClass {
|
|
|
281
319
|
* @param callback - Callback to handle processed record
|
|
282
320
|
*/
|
|
283
321
|
fetch(callback?: (error: Error | null, items: VerificationAttemptInstance) => any): Promise<VerificationAttemptInstance>;
|
|
322
|
+
price: any;
|
|
284
323
|
serviceSid: string;
|
|
285
324
|
sid: string;
|
|
286
325
|
/**
|
|
@@ -288,6 +327,7 @@ declare class VerificationAttemptInstance extends SerializableClass {
|
|
|
288
327
|
*/
|
|
289
328
|
toJSON(): any;
|
|
290
329
|
url: string;
|
|
330
|
+
verificationSid: string;
|
|
291
331
|
}
|
|
292
332
|
|
|
293
333
|
|
|
@@ -313,4 +353,4 @@ declare class VerificationAttemptPage extends Page<V2, VerificationAttemptPayloa
|
|
|
313
353
|
toJSON(): any;
|
|
314
354
|
}
|
|
315
355
|
|
|
316
|
-
export { VerificationAttemptChannels, VerificationAttemptContext, VerificationAttemptConversionStatus, VerificationAttemptInstance, VerificationAttemptList, VerificationAttemptListInstance, VerificationAttemptListInstanceEachOptions, VerificationAttemptListInstanceOptions, VerificationAttemptListInstancePageOptions, VerificationAttemptPage, VerificationAttemptPayload, VerificationAttemptResource, VerificationAttemptSolution }
|
|
356
|
+
export { VerificationAttemptAttemptStatus, VerificationAttemptCallStatus, VerificationAttemptChannels, VerificationAttemptContext, VerificationAttemptConversionStatus, VerificationAttemptInstance, VerificationAttemptList, VerificationAttemptListInstance, VerificationAttemptListInstanceEachOptions, VerificationAttemptListInstanceOptions, VerificationAttemptListInstancePageOptions, VerificationAttemptMessageStatus, VerificationAttemptPage, VerificationAttemptPayload, VerificationAttemptResource, VerificationAttemptSolution }
|