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,810 @@
|
|
|
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
|
+
var values = require('../../../../../base/values'); /* jshint ignore:line */
|
|
19
|
+
|
|
20
|
+
var StreamList;
|
|
21
|
+
var StreamPage;
|
|
22
|
+
var StreamInstance;
|
|
23
|
+
var StreamContext;
|
|
24
|
+
|
|
25
|
+
/* jshint ignore:start */
|
|
26
|
+
/**
|
|
27
|
+
* Initialize the StreamList
|
|
28
|
+
*
|
|
29
|
+
* @constructor Twilio.Api.V2010.AccountContext.CallContext.StreamList
|
|
30
|
+
*
|
|
31
|
+
* @param {Twilio.Api.V2010} version - Version of the resource
|
|
32
|
+
* @param {string} accountSid - The SID of the Account that created this resource
|
|
33
|
+
* @param {string} callSid - The SID of the Call the resource is associated with
|
|
34
|
+
*/
|
|
35
|
+
/* jshint ignore:end */
|
|
36
|
+
StreamList = function StreamList(version, accountSid, callSid) {
|
|
37
|
+
/* jshint ignore:start */
|
|
38
|
+
/**
|
|
39
|
+
* @function streams
|
|
40
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext#
|
|
41
|
+
*
|
|
42
|
+
* @param {string} sid - sid of instance
|
|
43
|
+
*
|
|
44
|
+
* @returns {Twilio.Api.V2010.AccountContext.CallContext.StreamContext}
|
|
45
|
+
*/
|
|
46
|
+
/* jshint ignore:end */
|
|
47
|
+
function StreamListInstance(sid) {
|
|
48
|
+
return StreamListInstance.get(sid);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
StreamListInstance._version = version;
|
|
52
|
+
// Path Solution
|
|
53
|
+
StreamListInstance._solution = {accountSid: accountSid, callSid: callSid};
|
|
54
|
+
StreamListInstance._uri = `/Accounts/${accountSid}/Calls/${callSid}/Streams.json`;
|
|
55
|
+
/* jshint ignore:start */
|
|
56
|
+
/**
|
|
57
|
+
* create a StreamInstance
|
|
58
|
+
*
|
|
59
|
+
* @function create
|
|
60
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.StreamList#
|
|
61
|
+
*
|
|
62
|
+
* @param {object} [opts] - Options for request
|
|
63
|
+
* @param {string} [opts.name] - The name of this resource
|
|
64
|
+
* @param {string} [opts.url] - Url where WebSocket connection will be established.
|
|
65
|
+
* @param {stream.track} [opts.track] -
|
|
66
|
+
* One of `inbound_track`, `outbound_track`, `both_tracks`.
|
|
67
|
+
* @param {string} [opts.statusCallback] - Absolute URL of the status callback.
|
|
68
|
+
* @param {string} [opts.statusCallbackMethod] -
|
|
69
|
+
* The http method for the status_callback.
|
|
70
|
+
* @param {string} [opts.parameter1.name] - Parameter name
|
|
71
|
+
* @param {string} [opts.parameter1.value] - Parameter value
|
|
72
|
+
* @param {string} [opts.parameter2.name] - Parameter name
|
|
73
|
+
* @param {string} [opts.parameter2.value] - Parameter value
|
|
74
|
+
* @param {string} [opts.parameter3.name] - Parameter name
|
|
75
|
+
* @param {string} [opts.parameter3.value] - Parameter value
|
|
76
|
+
* @param {string} [opts.parameter4.name] - Parameter name
|
|
77
|
+
* @param {string} [opts.parameter4.value] - Parameter value
|
|
78
|
+
* @param {string} [opts.parameter5.name] - Parameter name
|
|
79
|
+
* @param {string} [opts.parameter5.value] - Parameter value
|
|
80
|
+
* @param {string} [opts.parameter6.name] - Parameter name
|
|
81
|
+
* @param {string} [opts.parameter6.value] - Parameter value
|
|
82
|
+
* @param {string} [opts.parameter7.name] - Parameter name
|
|
83
|
+
* @param {string} [opts.parameter7.value] - Parameter value
|
|
84
|
+
* @param {string} [opts.parameter8.name] - Parameter name
|
|
85
|
+
* @param {string} [opts.parameter8.value] - Parameter value
|
|
86
|
+
* @param {string} [opts.parameter9.name] - Parameter name
|
|
87
|
+
* @param {string} [opts.parameter9.value] - Parameter value
|
|
88
|
+
* @param {string} [opts.parameter10.name] - Parameter name
|
|
89
|
+
* @param {string} [opts.parameter10.value] - Parameter value
|
|
90
|
+
* @param {string} [opts.parameter11.name] - Parameter name
|
|
91
|
+
* @param {string} [opts.parameter11.value] - Parameter value
|
|
92
|
+
* @param {string} [opts.parameter12.name] - Parameter name
|
|
93
|
+
* @param {string} [opts.parameter12.value] - Parameter value
|
|
94
|
+
* @param {string} [opts.parameter13.name] - Parameter name
|
|
95
|
+
* @param {string} [opts.parameter13.value] - Parameter value
|
|
96
|
+
* @param {string} [opts.parameter14.name] - Parameter name
|
|
97
|
+
* @param {string} [opts.parameter14.value] - Parameter value
|
|
98
|
+
* @param {string} [opts.parameter15.name] - Parameter name
|
|
99
|
+
* @param {string} [opts.parameter15.value] - Parameter value
|
|
100
|
+
* @param {string} [opts.parameter16.name] - Parameter name
|
|
101
|
+
* @param {string} [opts.parameter16.value] - Parameter value
|
|
102
|
+
* @param {string} [opts.parameter17.name] - Parameter name
|
|
103
|
+
* @param {string} [opts.parameter17.value] - Parameter value
|
|
104
|
+
* @param {string} [opts.parameter18.name] - Parameter name
|
|
105
|
+
* @param {string} [opts.parameter18.value] - Parameter value
|
|
106
|
+
* @param {string} [opts.parameter19.name] - Parameter name
|
|
107
|
+
* @param {string} [opts.parameter19.value] - Parameter value
|
|
108
|
+
* @param {string} [opts.parameter20.name] - Parameter name
|
|
109
|
+
* @param {string} [opts.parameter20.value] - Parameter value
|
|
110
|
+
* @param {string} [opts.parameter21.name] - Parameter name
|
|
111
|
+
* @param {string} [opts.parameter21.value] - Parameter value
|
|
112
|
+
* @param {string} [opts.parameter22.name] - Parameter name
|
|
113
|
+
* @param {string} [opts.parameter22.value] - Parameter value
|
|
114
|
+
* @param {string} [opts.parameter23.name] - Parameter name
|
|
115
|
+
* @param {string} [opts.parameter23.value] - Parameter value
|
|
116
|
+
* @param {string} [opts.parameter24.name] - Parameter name
|
|
117
|
+
* @param {string} [opts.parameter24.value] - Parameter value
|
|
118
|
+
* @param {string} [opts.parameter25.name] - Parameter name
|
|
119
|
+
* @param {string} [opts.parameter25.value] - Parameter value
|
|
120
|
+
* @param {string} [opts.parameter26.name] - Parameter name
|
|
121
|
+
* @param {string} [opts.parameter26.value] - Parameter value
|
|
122
|
+
* @param {string} [opts.parameter27.name] - Parameter name
|
|
123
|
+
* @param {string} [opts.parameter27.value] - Parameter value
|
|
124
|
+
* @param {string} [opts.parameter28.name] - Parameter name
|
|
125
|
+
* @param {string} [opts.parameter28.value] - Parameter value
|
|
126
|
+
* @param {string} [opts.parameter29.name] - Parameter name
|
|
127
|
+
* @param {string} [opts.parameter29.value] - Parameter value
|
|
128
|
+
* @param {string} [opts.parameter30.name] - Parameter name
|
|
129
|
+
* @param {string} [opts.parameter30.value] - Parameter value
|
|
130
|
+
* @param {string} [opts.parameter31.name] - Parameter name
|
|
131
|
+
* @param {string} [opts.parameter31.value] - Parameter value
|
|
132
|
+
* @param {string} [opts.parameter32.name] - Parameter name
|
|
133
|
+
* @param {string} [opts.parameter32.value] - Parameter value
|
|
134
|
+
* @param {string} [opts.parameter33.name] - Parameter name
|
|
135
|
+
* @param {string} [opts.parameter33.value] - Parameter value
|
|
136
|
+
* @param {string} [opts.parameter34.name] - Parameter name
|
|
137
|
+
* @param {string} [opts.parameter34.value] - Parameter value
|
|
138
|
+
* @param {string} [opts.parameter35.name] - Parameter name
|
|
139
|
+
* @param {string} [opts.parameter35.value] - Parameter value
|
|
140
|
+
* @param {string} [opts.parameter36.name] - Parameter name
|
|
141
|
+
* @param {string} [opts.parameter36.value] - Parameter value
|
|
142
|
+
* @param {string} [opts.parameter37.name] - Parameter name
|
|
143
|
+
* @param {string} [opts.parameter37.value] - Parameter value
|
|
144
|
+
* @param {string} [opts.parameter38.name] - Parameter name
|
|
145
|
+
* @param {string} [opts.parameter38.value] - Parameter value
|
|
146
|
+
* @param {string} [opts.parameter39.name] - Parameter name
|
|
147
|
+
* @param {string} [opts.parameter39.value] - Parameter value
|
|
148
|
+
* @param {string} [opts.parameter40.name] - Parameter name
|
|
149
|
+
* @param {string} [opts.parameter40.value] - Parameter value
|
|
150
|
+
* @param {string} [opts.parameter41.name] - Parameter name
|
|
151
|
+
* @param {string} [opts.parameter41.value] - Parameter value
|
|
152
|
+
* @param {string} [opts.parameter42.name] - Parameter name
|
|
153
|
+
* @param {string} [opts.parameter42.value] - Parameter value
|
|
154
|
+
* @param {string} [opts.parameter43.name] - Parameter name
|
|
155
|
+
* @param {string} [opts.parameter43.value] - Parameter value
|
|
156
|
+
* @param {string} [opts.parameter44.name] - Parameter name
|
|
157
|
+
* @param {string} [opts.parameter44.value] - Parameter value
|
|
158
|
+
* @param {string} [opts.parameter45.name] - Parameter name
|
|
159
|
+
* @param {string} [opts.parameter45.value] - Parameter value
|
|
160
|
+
* @param {string} [opts.parameter46.name] - Parameter name
|
|
161
|
+
* @param {string} [opts.parameter46.value] - Parameter value
|
|
162
|
+
* @param {string} [opts.parameter47.name] - Parameter name
|
|
163
|
+
* @param {string} [opts.parameter47.value] - Parameter value
|
|
164
|
+
* @param {string} [opts.parameter48.name] - Parameter name
|
|
165
|
+
* @param {string} [opts.parameter48.value] - Parameter value
|
|
166
|
+
* @param {string} [opts.parameter49.name] - Parameter name
|
|
167
|
+
* @param {string} [opts.parameter49.value] - Parameter value
|
|
168
|
+
* @param {string} [opts.parameter50.name] - Parameter name
|
|
169
|
+
* @param {string} [opts.parameter50.value] - Parameter value
|
|
170
|
+
* @param {string} [opts.parameter51.name] - Parameter name
|
|
171
|
+
* @param {string} [opts.parameter51.value] - Parameter value
|
|
172
|
+
* @param {string} [opts.parameter52.name] - Parameter name
|
|
173
|
+
* @param {string} [opts.parameter52.value] - Parameter value
|
|
174
|
+
* @param {string} [opts.parameter53.name] - Parameter name
|
|
175
|
+
* @param {string} [opts.parameter53.value] - Parameter value
|
|
176
|
+
* @param {string} [opts.parameter54.name] - Parameter name
|
|
177
|
+
* @param {string} [opts.parameter54.value] - Parameter value
|
|
178
|
+
* @param {string} [opts.parameter55.name] - Parameter name
|
|
179
|
+
* @param {string} [opts.parameter55.value] - Parameter value
|
|
180
|
+
* @param {string} [opts.parameter56.name] - Parameter name
|
|
181
|
+
* @param {string} [opts.parameter56.value] - Parameter value
|
|
182
|
+
* @param {string} [opts.parameter57.name] - Parameter name
|
|
183
|
+
* @param {string} [opts.parameter57.value] - Parameter value
|
|
184
|
+
* @param {string} [opts.parameter58.name] - Parameter name
|
|
185
|
+
* @param {string} [opts.parameter58.value] - Parameter value
|
|
186
|
+
* @param {string} [opts.parameter59.name] - Parameter name
|
|
187
|
+
* @param {string} [opts.parameter59.value] - Parameter value
|
|
188
|
+
* @param {string} [opts.parameter60.name] - Parameter name
|
|
189
|
+
* @param {string} [opts.parameter60.value] - Parameter value
|
|
190
|
+
* @param {string} [opts.parameter61.name] - Parameter name
|
|
191
|
+
* @param {string} [opts.parameter61.value] - Parameter value
|
|
192
|
+
* @param {string} [opts.parameter62.name] - Parameter name
|
|
193
|
+
* @param {string} [opts.parameter62.value] - Parameter value
|
|
194
|
+
* @param {string} [opts.parameter63.name] - Parameter name
|
|
195
|
+
* @param {string} [opts.parameter63.value] - Parameter value
|
|
196
|
+
* @param {string} [opts.parameter64.name] - Parameter name
|
|
197
|
+
* @param {string} [opts.parameter64.value] - Parameter value
|
|
198
|
+
* @param {string} [opts.parameter65.name] - Parameter name
|
|
199
|
+
* @param {string} [opts.parameter65.value] - Parameter value
|
|
200
|
+
* @param {string} [opts.parameter66.name] - Parameter name
|
|
201
|
+
* @param {string} [opts.parameter66.value] - Parameter value
|
|
202
|
+
* @param {string} [opts.parameter67.name] - Parameter name
|
|
203
|
+
* @param {string} [opts.parameter67.value] - Parameter value
|
|
204
|
+
* @param {string} [opts.parameter68.name] - Parameter name
|
|
205
|
+
* @param {string} [opts.parameter68.value] - Parameter value
|
|
206
|
+
* @param {string} [opts.parameter69.name] - Parameter name
|
|
207
|
+
* @param {string} [opts.parameter69.value] - Parameter value
|
|
208
|
+
* @param {string} [opts.parameter70.name] - Parameter name
|
|
209
|
+
* @param {string} [opts.parameter70.value] - Parameter value
|
|
210
|
+
* @param {string} [opts.parameter71.name] - Parameter name
|
|
211
|
+
* @param {string} [opts.parameter71.value] - Parameter value
|
|
212
|
+
* @param {string} [opts.parameter72.name] - Parameter name
|
|
213
|
+
* @param {string} [opts.parameter72.value] - Parameter value
|
|
214
|
+
* @param {string} [opts.parameter73.name] - Parameter name
|
|
215
|
+
* @param {string} [opts.parameter73.value] - Parameter value
|
|
216
|
+
* @param {string} [opts.parameter74.name] - Parameter name
|
|
217
|
+
* @param {string} [opts.parameter74.value] - Parameter value
|
|
218
|
+
* @param {string} [opts.parameter75.name] - Parameter name
|
|
219
|
+
* @param {string} [opts.parameter75.value] - Parameter value
|
|
220
|
+
* @param {string} [opts.parameter76.name] - Parameter name
|
|
221
|
+
* @param {string} [opts.parameter76.value] - Parameter value
|
|
222
|
+
* @param {string} [opts.parameter77.name] - Parameter name
|
|
223
|
+
* @param {string} [opts.parameter77.value] - Parameter value
|
|
224
|
+
* @param {string} [opts.parameter78.name] - Parameter name
|
|
225
|
+
* @param {string} [opts.parameter78.value] - Parameter value
|
|
226
|
+
* @param {string} [opts.parameter79.name] - Parameter name
|
|
227
|
+
* @param {string} [opts.parameter79.value] - Parameter value
|
|
228
|
+
* @param {string} [opts.parameter80.name] - Parameter name
|
|
229
|
+
* @param {string} [opts.parameter80.value] - Parameter value
|
|
230
|
+
* @param {string} [opts.parameter81.name] - Parameter name
|
|
231
|
+
* @param {string} [opts.parameter81.value] - Parameter value
|
|
232
|
+
* @param {string} [opts.parameter82.name] - Parameter name
|
|
233
|
+
* @param {string} [opts.parameter82.value] - Parameter value
|
|
234
|
+
* @param {string} [opts.parameter83.name] - Parameter name
|
|
235
|
+
* @param {string} [opts.parameter83.value] - Parameter value
|
|
236
|
+
* @param {string} [opts.parameter84.name] - Parameter name
|
|
237
|
+
* @param {string} [opts.parameter84.value] - Parameter value
|
|
238
|
+
* @param {string} [opts.parameter85.name] - Parameter name
|
|
239
|
+
* @param {string} [opts.parameter85.value] - Parameter value
|
|
240
|
+
* @param {string} [opts.parameter86.name] - Parameter name
|
|
241
|
+
* @param {string} [opts.parameter86.value] - Parameter value
|
|
242
|
+
* @param {string} [opts.parameter87.name] - Parameter name
|
|
243
|
+
* @param {string} [opts.parameter87.value] - Parameter value
|
|
244
|
+
* @param {string} [opts.parameter88.name] - Parameter name
|
|
245
|
+
* @param {string} [opts.parameter88.value] - Parameter value
|
|
246
|
+
* @param {string} [opts.parameter89.name] - Parameter name
|
|
247
|
+
* @param {string} [opts.parameter89.value] - Parameter value
|
|
248
|
+
* @param {string} [opts.parameter90.name] - Parameter name
|
|
249
|
+
* @param {string} [opts.parameter90.value] - Parameter value
|
|
250
|
+
* @param {string} [opts.parameter91.name] - Parameter name
|
|
251
|
+
* @param {string} [opts.parameter91.value] - Parameter value
|
|
252
|
+
* @param {string} [opts.parameter92.name] - Parameter name
|
|
253
|
+
* @param {string} [opts.parameter92.value] - Parameter value
|
|
254
|
+
* @param {string} [opts.parameter93.name] - Parameter name
|
|
255
|
+
* @param {string} [opts.parameter93.value] - Parameter value
|
|
256
|
+
* @param {string} [opts.parameter94.name] - Parameter name
|
|
257
|
+
* @param {string} [opts.parameter94.value] - Parameter value
|
|
258
|
+
* @param {string} [opts.parameter95.name] - Parameter name
|
|
259
|
+
* @param {string} [opts.parameter95.value] - Parameter value
|
|
260
|
+
* @param {string} [opts.parameter96.name] - Parameter name
|
|
261
|
+
* @param {string} [opts.parameter96.value] - Parameter value
|
|
262
|
+
* @param {string} [opts.parameter97.name] - Parameter name
|
|
263
|
+
* @param {string} [opts.parameter97.value] - Parameter value
|
|
264
|
+
* @param {string} [opts.parameter98.name] - Parameter name
|
|
265
|
+
* @param {string} [opts.parameter98.value] - Parameter value
|
|
266
|
+
* @param {string} [opts.parameter99.name] - Parameter name
|
|
267
|
+
* @param {string} [opts.parameter99.value] - Parameter value
|
|
268
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
269
|
+
*
|
|
270
|
+
* @returns {Promise} Resolves to processed StreamInstance
|
|
271
|
+
*/
|
|
272
|
+
/* jshint ignore:end */
|
|
273
|
+
StreamListInstance.create = function create(opts, callback) {
|
|
274
|
+
if (_.isFunction(opts)) {
|
|
275
|
+
callback = opts;
|
|
276
|
+
opts = {};
|
|
277
|
+
}
|
|
278
|
+
opts = opts || {};
|
|
279
|
+
|
|
280
|
+
var deferred = Q.defer();
|
|
281
|
+
var data = values.of({
|
|
282
|
+
'Name': _.get(opts, 'name'),
|
|
283
|
+
'Url': _.get(opts, 'url'),
|
|
284
|
+
'Track': _.get(opts, 'track'),
|
|
285
|
+
'StatusCallback': _.get(opts, 'statusCallback'),
|
|
286
|
+
'StatusCallbackMethod': _.get(opts, 'statusCallbackMethod'),
|
|
287
|
+
'Parameter1.Name': _.get(opts, 'parameter1.name'),
|
|
288
|
+
'Parameter1.Value': _.get(opts, 'parameter1.value'),
|
|
289
|
+
'Parameter2.Name': _.get(opts, 'parameter2.name'),
|
|
290
|
+
'Parameter2.Value': _.get(opts, 'parameter2.value'),
|
|
291
|
+
'Parameter3.Name': _.get(opts, 'parameter3.name'),
|
|
292
|
+
'Parameter3.Value': _.get(opts, 'parameter3.value'),
|
|
293
|
+
'Parameter4.Name': _.get(opts, 'parameter4.name'),
|
|
294
|
+
'Parameter4.Value': _.get(opts, 'parameter4.value'),
|
|
295
|
+
'Parameter5.Name': _.get(opts, 'parameter5.name'),
|
|
296
|
+
'Parameter5.Value': _.get(opts, 'parameter5.value'),
|
|
297
|
+
'Parameter6.Name': _.get(opts, 'parameter6.name'),
|
|
298
|
+
'Parameter6.Value': _.get(opts, 'parameter6.value'),
|
|
299
|
+
'Parameter7.Name': _.get(opts, 'parameter7.name'),
|
|
300
|
+
'Parameter7.Value': _.get(opts, 'parameter7.value'),
|
|
301
|
+
'Parameter8.Name': _.get(opts, 'parameter8.name'),
|
|
302
|
+
'Parameter8.Value': _.get(opts, 'parameter8.value'),
|
|
303
|
+
'Parameter9.Name': _.get(opts, 'parameter9.name'),
|
|
304
|
+
'Parameter9.Value': _.get(opts, 'parameter9.value'),
|
|
305
|
+
'Parameter10.Name': _.get(opts, 'parameter10.name'),
|
|
306
|
+
'Parameter10.Value': _.get(opts, 'parameter10.value'),
|
|
307
|
+
'Parameter11.Name': _.get(opts, 'parameter11.name'),
|
|
308
|
+
'Parameter11.Value': _.get(opts, 'parameter11.value'),
|
|
309
|
+
'Parameter12.Name': _.get(opts, 'parameter12.name'),
|
|
310
|
+
'Parameter12.Value': _.get(opts, 'parameter12.value'),
|
|
311
|
+
'Parameter13.Name': _.get(opts, 'parameter13.name'),
|
|
312
|
+
'Parameter13.Value': _.get(opts, 'parameter13.value'),
|
|
313
|
+
'Parameter14.Name': _.get(opts, 'parameter14.name'),
|
|
314
|
+
'Parameter14.Value': _.get(opts, 'parameter14.value'),
|
|
315
|
+
'Parameter15.Name': _.get(opts, 'parameter15.name'),
|
|
316
|
+
'Parameter15.Value': _.get(opts, 'parameter15.value'),
|
|
317
|
+
'Parameter16.Name': _.get(opts, 'parameter16.name'),
|
|
318
|
+
'Parameter16.Value': _.get(opts, 'parameter16.value'),
|
|
319
|
+
'Parameter17.Name': _.get(opts, 'parameter17.name'),
|
|
320
|
+
'Parameter17.Value': _.get(opts, 'parameter17.value'),
|
|
321
|
+
'Parameter18.Name': _.get(opts, 'parameter18.name'),
|
|
322
|
+
'Parameter18.Value': _.get(opts, 'parameter18.value'),
|
|
323
|
+
'Parameter19.Name': _.get(opts, 'parameter19.name'),
|
|
324
|
+
'Parameter19.Value': _.get(opts, 'parameter19.value'),
|
|
325
|
+
'Parameter20.Name': _.get(opts, 'parameter20.name'),
|
|
326
|
+
'Parameter20.Value': _.get(opts, 'parameter20.value'),
|
|
327
|
+
'Parameter21.Name': _.get(opts, 'parameter21.name'),
|
|
328
|
+
'Parameter21.Value': _.get(opts, 'parameter21.value'),
|
|
329
|
+
'Parameter22.Name': _.get(opts, 'parameter22.name'),
|
|
330
|
+
'Parameter22.Value': _.get(opts, 'parameter22.value'),
|
|
331
|
+
'Parameter23.Name': _.get(opts, 'parameter23.name'),
|
|
332
|
+
'Parameter23.Value': _.get(opts, 'parameter23.value'),
|
|
333
|
+
'Parameter24.Name': _.get(opts, 'parameter24.name'),
|
|
334
|
+
'Parameter24.Value': _.get(opts, 'parameter24.value'),
|
|
335
|
+
'Parameter25.Name': _.get(opts, 'parameter25.name'),
|
|
336
|
+
'Parameter25.Value': _.get(opts, 'parameter25.value'),
|
|
337
|
+
'Parameter26.Name': _.get(opts, 'parameter26.name'),
|
|
338
|
+
'Parameter26.Value': _.get(opts, 'parameter26.value'),
|
|
339
|
+
'Parameter27.Name': _.get(opts, 'parameter27.name'),
|
|
340
|
+
'Parameter27.Value': _.get(opts, 'parameter27.value'),
|
|
341
|
+
'Parameter28.Name': _.get(opts, 'parameter28.name'),
|
|
342
|
+
'Parameter28.Value': _.get(opts, 'parameter28.value'),
|
|
343
|
+
'Parameter29.Name': _.get(opts, 'parameter29.name'),
|
|
344
|
+
'Parameter29.Value': _.get(opts, 'parameter29.value'),
|
|
345
|
+
'Parameter30.Name': _.get(opts, 'parameter30.name'),
|
|
346
|
+
'Parameter30.Value': _.get(opts, 'parameter30.value'),
|
|
347
|
+
'Parameter31.Name': _.get(opts, 'parameter31.name'),
|
|
348
|
+
'Parameter31.Value': _.get(opts, 'parameter31.value'),
|
|
349
|
+
'Parameter32.Name': _.get(opts, 'parameter32.name'),
|
|
350
|
+
'Parameter32.Value': _.get(opts, 'parameter32.value'),
|
|
351
|
+
'Parameter33.Name': _.get(opts, 'parameter33.name'),
|
|
352
|
+
'Parameter33.Value': _.get(opts, 'parameter33.value'),
|
|
353
|
+
'Parameter34.Name': _.get(opts, 'parameter34.name'),
|
|
354
|
+
'Parameter34.Value': _.get(opts, 'parameter34.value'),
|
|
355
|
+
'Parameter35.Name': _.get(opts, 'parameter35.name'),
|
|
356
|
+
'Parameter35.Value': _.get(opts, 'parameter35.value'),
|
|
357
|
+
'Parameter36.Name': _.get(opts, 'parameter36.name'),
|
|
358
|
+
'Parameter36.Value': _.get(opts, 'parameter36.value'),
|
|
359
|
+
'Parameter37.Name': _.get(opts, 'parameter37.name'),
|
|
360
|
+
'Parameter37.Value': _.get(opts, 'parameter37.value'),
|
|
361
|
+
'Parameter38.Name': _.get(opts, 'parameter38.name'),
|
|
362
|
+
'Parameter38.Value': _.get(opts, 'parameter38.value'),
|
|
363
|
+
'Parameter39.Name': _.get(opts, 'parameter39.name'),
|
|
364
|
+
'Parameter39.Value': _.get(opts, 'parameter39.value'),
|
|
365
|
+
'Parameter40.Name': _.get(opts, 'parameter40.name'),
|
|
366
|
+
'Parameter40.Value': _.get(opts, 'parameter40.value'),
|
|
367
|
+
'Parameter41.Name': _.get(opts, 'parameter41.name'),
|
|
368
|
+
'Parameter41.Value': _.get(opts, 'parameter41.value'),
|
|
369
|
+
'Parameter42.Name': _.get(opts, 'parameter42.name'),
|
|
370
|
+
'Parameter42.Value': _.get(opts, 'parameter42.value'),
|
|
371
|
+
'Parameter43.Name': _.get(opts, 'parameter43.name'),
|
|
372
|
+
'Parameter43.Value': _.get(opts, 'parameter43.value'),
|
|
373
|
+
'Parameter44.Name': _.get(opts, 'parameter44.name'),
|
|
374
|
+
'Parameter44.Value': _.get(opts, 'parameter44.value'),
|
|
375
|
+
'Parameter45.Name': _.get(opts, 'parameter45.name'),
|
|
376
|
+
'Parameter45.Value': _.get(opts, 'parameter45.value'),
|
|
377
|
+
'Parameter46.Name': _.get(opts, 'parameter46.name'),
|
|
378
|
+
'Parameter46.Value': _.get(opts, 'parameter46.value'),
|
|
379
|
+
'Parameter47.Name': _.get(opts, 'parameter47.name'),
|
|
380
|
+
'Parameter47.Value': _.get(opts, 'parameter47.value'),
|
|
381
|
+
'Parameter48.Name': _.get(opts, 'parameter48.name'),
|
|
382
|
+
'Parameter48.Value': _.get(opts, 'parameter48.value'),
|
|
383
|
+
'Parameter49.Name': _.get(opts, 'parameter49.name'),
|
|
384
|
+
'Parameter49.Value': _.get(opts, 'parameter49.value'),
|
|
385
|
+
'Parameter50.Name': _.get(opts, 'parameter50.name'),
|
|
386
|
+
'Parameter50.Value': _.get(opts, 'parameter50.value'),
|
|
387
|
+
'Parameter51.Name': _.get(opts, 'parameter51.name'),
|
|
388
|
+
'Parameter51.Value': _.get(opts, 'parameter51.value'),
|
|
389
|
+
'Parameter52.Name': _.get(opts, 'parameter52.name'),
|
|
390
|
+
'Parameter52.Value': _.get(opts, 'parameter52.value'),
|
|
391
|
+
'Parameter53.Name': _.get(opts, 'parameter53.name'),
|
|
392
|
+
'Parameter53.Value': _.get(opts, 'parameter53.value'),
|
|
393
|
+
'Parameter54.Name': _.get(opts, 'parameter54.name'),
|
|
394
|
+
'Parameter54.Value': _.get(opts, 'parameter54.value'),
|
|
395
|
+
'Parameter55.Name': _.get(opts, 'parameter55.name'),
|
|
396
|
+
'Parameter55.Value': _.get(opts, 'parameter55.value'),
|
|
397
|
+
'Parameter56.Name': _.get(opts, 'parameter56.name'),
|
|
398
|
+
'Parameter56.Value': _.get(opts, 'parameter56.value'),
|
|
399
|
+
'Parameter57.Name': _.get(opts, 'parameter57.name'),
|
|
400
|
+
'Parameter57.Value': _.get(opts, 'parameter57.value'),
|
|
401
|
+
'Parameter58.Name': _.get(opts, 'parameter58.name'),
|
|
402
|
+
'Parameter58.Value': _.get(opts, 'parameter58.value'),
|
|
403
|
+
'Parameter59.Name': _.get(opts, 'parameter59.name'),
|
|
404
|
+
'Parameter59.Value': _.get(opts, 'parameter59.value'),
|
|
405
|
+
'Parameter60.Name': _.get(opts, 'parameter60.name'),
|
|
406
|
+
'Parameter60.Value': _.get(opts, 'parameter60.value'),
|
|
407
|
+
'Parameter61.Name': _.get(opts, 'parameter61.name'),
|
|
408
|
+
'Parameter61.Value': _.get(opts, 'parameter61.value'),
|
|
409
|
+
'Parameter62.Name': _.get(opts, 'parameter62.name'),
|
|
410
|
+
'Parameter62.Value': _.get(opts, 'parameter62.value'),
|
|
411
|
+
'Parameter63.Name': _.get(opts, 'parameter63.name'),
|
|
412
|
+
'Parameter63.Value': _.get(opts, 'parameter63.value'),
|
|
413
|
+
'Parameter64.Name': _.get(opts, 'parameter64.name'),
|
|
414
|
+
'Parameter64.Value': _.get(opts, 'parameter64.value'),
|
|
415
|
+
'Parameter65.Name': _.get(opts, 'parameter65.name'),
|
|
416
|
+
'Parameter65.Value': _.get(opts, 'parameter65.value'),
|
|
417
|
+
'Parameter66.Name': _.get(opts, 'parameter66.name'),
|
|
418
|
+
'Parameter66.Value': _.get(opts, 'parameter66.value'),
|
|
419
|
+
'Parameter67.Name': _.get(opts, 'parameter67.name'),
|
|
420
|
+
'Parameter67.Value': _.get(opts, 'parameter67.value'),
|
|
421
|
+
'Parameter68.Name': _.get(opts, 'parameter68.name'),
|
|
422
|
+
'Parameter68.Value': _.get(opts, 'parameter68.value'),
|
|
423
|
+
'Parameter69.Name': _.get(opts, 'parameter69.name'),
|
|
424
|
+
'Parameter69.Value': _.get(opts, 'parameter69.value'),
|
|
425
|
+
'Parameter70.Name': _.get(opts, 'parameter70.name'),
|
|
426
|
+
'Parameter70.Value': _.get(opts, 'parameter70.value'),
|
|
427
|
+
'Parameter71.Name': _.get(opts, 'parameter71.name'),
|
|
428
|
+
'Parameter71.Value': _.get(opts, 'parameter71.value'),
|
|
429
|
+
'Parameter72.Name': _.get(opts, 'parameter72.name'),
|
|
430
|
+
'Parameter72.Value': _.get(opts, 'parameter72.value'),
|
|
431
|
+
'Parameter73.Name': _.get(opts, 'parameter73.name'),
|
|
432
|
+
'Parameter73.Value': _.get(opts, 'parameter73.value'),
|
|
433
|
+
'Parameter74.Name': _.get(opts, 'parameter74.name'),
|
|
434
|
+
'Parameter74.Value': _.get(opts, 'parameter74.value'),
|
|
435
|
+
'Parameter75.Name': _.get(opts, 'parameter75.name'),
|
|
436
|
+
'Parameter75.Value': _.get(opts, 'parameter75.value'),
|
|
437
|
+
'Parameter76.Name': _.get(opts, 'parameter76.name'),
|
|
438
|
+
'Parameter76.Value': _.get(opts, 'parameter76.value'),
|
|
439
|
+
'Parameter77.Name': _.get(opts, 'parameter77.name'),
|
|
440
|
+
'Parameter77.Value': _.get(opts, 'parameter77.value'),
|
|
441
|
+
'Parameter78.Name': _.get(opts, 'parameter78.name'),
|
|
442
|
+
'Parameter78.Value': _.get(opts, 'parameter78.value'),
|
|
443
|
+
'Parameter79.Name': _.get(opts, 'parameter79.name'),
|
|
444
|
+
'Parameter79.Value': _.get(opts, 'parameter79.value'),
|
|
445
|
+
'Parameter80.Name': _.get(opts, 'parameter80.name'),
|
|
446
|
+
'Parameter80.Value': _.get(opts, 'parameter80.value'),
|
|
447
|
+
'Parameter81.Name': _.get(opts, 'parameter81.name'),
|
|
448
|
+
'Parameter81.Value': _.get(opts, 'parameter81.value'),
|
|
449
|
+
'Parameter82.Name': _.get(opts, 'parameter82.name'),
|
|
450
|
+
'Parameter82.Value': _.get(opts, 'parameter82.value'),
|
|
451
|
+
'Parameter83.Name': _.get(opts, 'parameter83.name'),
|
|
452
|
+
'Parameter83.Value': _.get(opts, 'parameter83.value'),
|
|
453
|
+
'Parameter84.Name': _.get(opts, 'parameter84.name'),
|
|
454
|
+
'Parameter84.Value': _.get(opts, 'parameter84.value'),
|
|
455
|
+
'Parameter85.Name': _.get(opts, 'parameter85.name'),
|
|
456
|
+
'Parameter85.Value': _.get(opts, 'parameter85.value'),
|
|
457
|
+
'Parameter86.Name': _.get(opts, 'parameter86.name'),
|
|
458
|
+
'Parameter86.Value': _.get(opts, 'parameter86.value'),
|
|
459
|
+
'Parameter87.Name': _.get(opts, 'parameter87.name'),
|
|
460
|
+
'Parameter87.Value': _.get(opts, 'parameter87.value'),
|
|
461
|
+
'Parameter88.Name': _.get(opts, 'parameter88.name'),
|
|
462
|
+
'Parameter88.Value': _.get(opts, 'parameter88.value'),
|
|
463
|
+
'Parameter89.Name': _.get(opts, 'parameter89.name'),
|
|
464
|
+
'Parameter89.Value': _.get(opts, 'parameter89.value'),
|
|
465
|
+
'Parameter90.Name': _.get(opts, 'parameter90.name'),
|
|
466
|
+
'Parameter90.Value': _.get(opts, 'parameter90.value'),
|
|
467
|
+
'Parameter91.Name': _.get(opts, 'parameter91.name'),
|
|
468
|
+
'Parameter91.Value': _.get(opts, 'parameter91.value'),
|
|
469
|
+
'Parameter92.Name': _.get(opts, 'parameter92.name'),
|
|
470
|
+
'Parameter92.Value': _.get(opts, 'parameter92.value'),
|
|
471
|
+
'Parameter93.Name': _.get(opts, 'parameter93.name'),
|
|
472
|
+
'Parameter93.Value': _.get(opts, 'parameter93.value'),
|
|
473
|
+
'Parameter94.Name': _.get(opts, 'parameter94.name'),
|
|
474
|
+
'Parameter94.Value': _.get(opts, 'parameter94.value'),
|
|
475
|
+
'Parameter95.Name': _.get(opts, 'parameter95.name'),
|
|
476
|
+
'Parameter95.Value': _.get(opts, 'parameter95.value'),
|
|
477
|
+
'Parameter96.Name': _.get(opts, 'parameter96.name'),
|
|
478
|
+
'Parameter96.Value': _.get(opts, 'parameter96.value'),
|
|
479
|
+
'Parameter97.Name': _.get(opts, 'parameter97.name'),
|
|
480
|
+
'Parameter97.Value': _.get(opts, 'parameter97.value'),
|
|
481
|
+
'Parameter98.Name': _.get(opts, 'parameter98.name'),
|
|
482
|
+
'Parameter98.Value': _.get(opts, 'parameter98.value'),
|
|
483
|
+
'Parameter99.Name': _.get(opts, 'parameter99.name'),
|
|
484
|
+
'Parameter99.Value': _.get(opts, 'parameter99.value')
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
|
|
488
|
+
|
|
489
|
+
promise = promise.then(function(payload) {
|
|
490
|
+
deferred.resolve(new StreamInstance(
|
|
491
|
+
this._version,
|
|
492
|
+
payload,
|
|
493
|
+
this._solution.accountSid,
|
|
494
|
+
this._solution.callSid,
|
|
495
|
+
this._solution.sid
|
|
496
|
+
));
|
|
497
|
+
}.bind(this));
|
|
498
|
+
|
|
499
|
+
promise.catch(function(error) {
|
|
500
|
+
deferred.reject(error);
|
|
501
|
+
});
|
|
502
|
+
|
|
503
|
+
if (_.isFunction(callback)) {
|
|
504
|
+
deferred.promise.nodeify(callback);
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
return deferred.promise;
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
/* jshint ignore:start */
|
|
511
|
+
/**
|
|
512
|
+
* Constructs a stream
|
|
513
|
+
*
|
|
514
|
+
* @function get
|
|
515
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.StreamList#
|
|
516
|
+
*
|
|
517
|
+
* @param {string} sid - The SID of the Stream resource, or the `name`
|
|
518
|
+
*
|
|
519
|
+
* @returns {Twilio.Api.V2010.AccountContext.CallContext.StreamContext}
|
|
520
|
+
*/
|
|
521
|
+
/* jshint ignore:end */
|
|
522
|
+
StreamListInstance.get = function get(sid) {
|
|
523
|
+
return new StreamContext(this._version, this._solution.accountSid, this._solution.callSid, sid);
|
|
524
|
+
};
|
|
525
|
+
|
|
526
|
+
/* jshint ignore:start */
|
|
527
|
+
/**
|
|
528
|
+
* Provide a user-friendly representation
|
|
529
|
+
*
|
|
530
|
+
* @function toJSON
|
|
531
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.StreamList#
|
|
532
|
+
*
|
|
533
|
+
* @returns Object
|
|
534
|
+
*/
|
|
535
|
+
/* jshint ignore:end */
|
|
536
|
+
StreamListInstance.toJSON = function toJSON() {
|
|
537
|
+
return this._solution;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
StreamListInstance[util.inspect.custom] = function inspect(depth, options) {
|
|
541
|
+
return util.inspect(this.toJSON(), options);
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
return StreamListInstance;
|
|
545
|
+
};
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
/* jshint ignore:start */
|
|
549
|
+
/**
|
|
550
|
+
* Initialize the StreamPage
|
|
551
|
+
*
|
|
552
|
+
* @constructor Twilio.Api.V2010.AccountContext.CallContext.StreamPage
|
|
553
|
+
*
|
|
554
|
+
* @param {V2010} version - Version of the resource
|
|
555
|
+
* @param {Response<string>} response - Response from the API
|
|
556
|
+
* @param {StreamSolution} solution - Path solution
|
|
557
|
+
*
|
|
558
|
+
* @returns StreamPage
|
|
559
|
+
*/
|
|
560
|
+
/* jshint ignore:end */
|
|
561
|
+
StreamPage = function StreamPage(version, response, solution) {
|
|
562
|
+
// Path Solution
|
|
563
|
+
this._solution = solution;
|
|
564
|
+
|
|
565
|
+
Page.prototype.constructor.call(this, version, response, this._solution);
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
_.extend(StreamPage.prototype, Page.prototype);
|
|
569
|
+
StreamPage.prototype.constructor = StreamPage;
|
|
570
|
+
|
|
571
|
+
/* jshint ignore:start */
|
|
572
|
+
/**
|
|
573
|
+
* Build an instance of StreamInstance
|
|
574
|
+
*
|
|
575
|
+
* @function getInstance
|
|
576
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.StreamPage#
|
|
577
|
+
*
|
|
578
|
+
* @param {StreamPayload} payload - Payload response from the API
|
|
579
|
+
*
|
|
580
|
+
* @returns StreamInstance
|
|
581
|
+
*/
|
|
582
|
+
/* jshint ignore:end */
|
|
583
|
+
StreamPage.prototype.getInstance = function getInstance(payload) {
|
|
584
|
+
return new StreamInstance(
|
|
585
|
+
this._version,
|
|
586
|
+
payload,
|
|
587
|
+
this._solution.accountSid,
|
|
588
|
+
this._solution.callSid
|
|
589
|
+
);
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
/* jshint ignore:start */
|
|
593
|
+
/**
|
|
594
|
+
* Provide a user-friendly representation
|
|
595
|
+
*
|
|
596
|
+
* @function toJSON
|
|
597
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.StreamPage#
|
|
598
|
+
*
|
|
599
|
+
* @returns Object
|
|
600
|
+
*/
|
|
601
|
+
/* jshint ignore:end */
|
|
602
|
+
StreamPage.prototype.toJSON = function toJSON() {
|
|
603
|
+
let clone = {};
|
|
604
|
+
_.forOwn(this, function(value, key) {
|
|
605
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
606
|
+
clone[key] = value;
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
return clone;
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
StreamPage.prototype[util.inspect.custom] = function inspect(depth, options) {
|
|
613
|
+
return util.inspect(this.toJSON(), options);
|
|
614
|
+
};
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
/* jshint ignore:start */
|
|
618
|
+
/**
|
|
619
|
+
* Initialize the StreamContext
|
|
620
|
+
*
|
|
621
|
+
* @constructor Twilio.Api.V2010.AccountContext.CallContext.StreamInstance
|
|
622
|
+
*
|
|
623
|
+
* @property {string} sid - The SID of the Stream resource.
|
|
624
|
+
* @property {string} accountSid -
|
|
625
|
+
* The SID of the Account that created this resource
|
|
626
|
+
* @property {string} callSid - The SID of the Call the resource is associated with
|
|
627
|
+
* @property {string} name - The name of this resource
|
|
628
|
+
* @property {stream.status} status - The status - one of `stopped`, `in-progress`
|
|
629
|
+
* @property {Date} dateUpdated -
|
|
630
|
+
* The RFC 2822 date and time in GMT that this resource was last updated
|
|
631
|
+
*
|
|
632
|
+
* @param {V2010} version - Version of the resource
|
|
633
|
+
* @param {StreamPayload} payload - The instance payload
|
|
634
|
+
* @param {sid} accountSid - The SID of the Account that created this resource
|
|
635
|
+
* @param {sid} callSid - The SID of the Call the resource is associated with
|
|
636
|
+
* @param {sid_like} sid - The SID of the Stream resource, or the `name`
|
|
637
|
+
*/
|
|
638
|
+
/* jshint ignore:end */
|
|
639
|
+
StreamInstance = function StreamInstance(version, payload, accountSid, callSid,
|
|
640
|
+
sid) {
|
|
641
|
+
this._version = version;
|
|
642
|
+
|
|
643
|
+
// Marshaled Properties
|
|
644
|
+
this.sid = payload.sid; // jshint ignore:line
|
|
645
|
+
this.accountSid = payload.account_sid; // jshint ignore:line
|
|
646
|
+
this.callSid = payload.call_sid; // jshint ignore:line
|
|
647
|
+
this.name = payload.name; // jshint ignore:line
|
|
648
|
+
this.status = payload.status; // jshint ignore:line
|
|
649
|
+
this.dateUpdated = deserialize.rfc2822DateTime(payload.date_updated); // jshint ignore:line
|
|
650
|
+
|
|
651
|
+
// Context
|
|
652
|
+
this._context = undefined;
|
|
653
|
+
this._solution = {accountSid: accountSid, callSid: callSid, sid: sid || this.sid, };
|
|
654
|
+
};
|
|
655
|
+
|
|
656
|
+
Object.defineProperty(StreamInstance.prototype,
|
|
657
|
+
'_proxy', {
|
|
658
|
+
get: function() {
|
|
659
|
+
if (!this._context) {
|
|
660
|
+
this._context = new StreamContext(
|
|
661
|
+
this._version,
|
|
662
|
+
this._solution.accountSid,
|
|
663
|
+
this._solution.callSid,
|
|
664
|
+
this._solution.sid
|
|
665
|
+
);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
return this._context;
|
|
669
|
+
}
|
|
670
|
+
});
|
|
671
|
+
|
|
672
|
+
/* jshint ignore:start */
|
|
673
|
+
/**
|
|
674
|
+
* update a StreamInstance
|
|
675
|
+
*
|
|
676
|
+
* @function update
|
|
677
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.StreamInstance#
|
|
678
|
+
*
|
|
679
|
+
* @param {object} opts - Options for request
|
|
680
|
+
* @param {stream.update_status} opts.status -
|
|
681
|
+
* The status. Must have the value `stopped`
|
|
682
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
683
|
+
*
|
|
684
|
+
* @returns {Promise} Resolves to processed StreamInstance
|
|
685
|
+
*/
|
|
686
|
+
/* jshint ignore:end */
|
|
687
|
+
StreamInstance.prototype.update = function update(opts, callback) {
|
|
688
|
+
return this._proxy.update(opts, callback);
|
|
689
|
+
};
|
|
690
|
+
|
|
691
|
+
/* jshint ignore:start */
|
|
692
|
+
/**
|
|
693
|
+
* Provide a user-friendly representation
|
|
694
|
+
*
|
|
695
|
+
* @function toJSON
|
|
696
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.StreamInstance#
|
|
697
|
+
*
|
|
698
|
+
* @returns Object
|
|
699
|
+
*/
|
|
700
|
+
/* jshint ignore:end */
|
|
701
|
+
StreamInstance.prototype.toJSON = function toJSON() {
|
|
702
|
+
let clone = {};
|
|
703
|
+
_.forOwn(this, function(value, key) {
|
|
704
|
+
if (!_.startsWith(key, '_') && ! _.isFunction(value)) {
|
|
705
|
+
clone[key] = value;
|
|
706
|
+
}
|
|
707
|
+
});
|
|
708
|
+
return clone;
|
|
709
|
+
};
|
|
710
|
+
|
|
711
|
+
StreamInstance.prototype[util.inspect.custom] = function inspect(depth, options)
|
|
712
|
+
{
|
|
713
|
+
return util.inspect(this.toJSON(), options);
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
/* jshint ignore:start */
|
|
718
|
+
/**
|
|
719
|
+
* Initialize the StreamContext
|
|
720
|
+
*
|
|
721
|
+
* @constructor Twilio.Api.V2010.AccountContext.CallContext.StreamContext
|
|
722
|
+
*
|
|
723
|
+
* @param {V2010} version - Version of the resource
|
|
724
|
+
* @param {sid} accountSid - The SID of the Account that created this resource
|
|
725
|
+
* @param {sid} callSid - The SID of the Call the resource is associated with
|
|
726
|
+
* @param {sid_like} sid - The SID of the Stream resource, or the `name`
|
|
727
|
+
*/
|
|
728
|
+
/* jshint ignore:end */
|
|
729
|
+
StreamContext = function StreamContext(version, accountSid, callSid, sid) {
|
|
730
|
+
this._version = version;
|
|
731
|
+
|
|
732
|
+
// Path Solution
|
|
733
|
+
this._solution = {accountSid: accountSid, callSid: callSid, sid: sid, };
|
|
734
|
+
this._uri = `/Accounts/${accountSid}/Calls/${callSid}/Streams/${sid}.json`;
|
|
735
|
+
};
|
|
736
|
+
|
|
737
|
+
/* jshint ignore:start */
|
|
738
|
+
/**
|
|
739
|
+
* update a StreamInstance
|
|
740
|
+
*
|
|
741
|
+
* @function update
|
|
742
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.StreamContext#
|
|
743
|
+
*
|
|
744
|
+
* @param {object} opts - Options for request
|
|
745
|
+
* @param {stream.update_status} opts.status -
|
|
746
|
+
* The status. Must have the value `stopped`
|
|
747
|
+
* @param {function} [callback] - Callback to handle processed record
|
|
748
|
+
*
|
|
749
|
+
* @returns {Promise} Resolves to processed StreamInstance
|
|
750
|
+
*/
|
|
751
|
+
/* jshint ignore:end */
|
|
752
|
+
StreamContext.prototype.update = function update(opts, callback) {
|
|
753
|
+
if (_.isUndefined(opts)) {
|
|
754
|
+
throw new Error('Required parameter "opts" missing.');
|
|
755
|
+
}
|
|
756
|
+
if (_.isUndefined(opts['status'])) {
|
|
757
|
+
throw new Error('Required parameter "opts[\'status\']" missing.');
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
var deferred = Q.defer();
|
|
761
|
+
var data = values.of({'Status': _.get(opts, 'status')});
|
|
762
|
+
|
|
763
|
+
var promise = this._version.update({uri: this._uri, method: 'POST', data: data});
|
|
764
|
+
|
|
765
|
+
promise = promise.then(function(payload) {
|
|
766
|
+
deferred.resolve(new StreamInstance(
|
|
767
|
+
this._version,
|
|
768
|
+
payload,
|
|
769
|
+
this._solution.accountSid,
|
|
770
|
+
this._solution.callSid,
|
|
771
|
+
this._solution.sid
|
|
772
|
+
));
|
|
773
|
+
}.bind(this));
|
|
774
|
+
|
|
775
|
+
promise.catch(function(error) {
|
|
776
|
+
deferred.reject(error);
|
|
777
|
+
});
|
|
778
|
+
|
|
779
|
+
if (_.isFunction(callback)) {
|
|
780
|
+
deferred.promise.nodeify(callback);
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
return deferred.promise;
|
|
784
|
+
};
|
|
785
|
+
|
|
786
|
+
/* jshint ignore:start */
|
|
787
|
+
/**
|
|
788
|
+
* Provide a user-friendly representation
|
|
789
|
+
*
|
|
790
|
+
* @function toJSON
|
|
791
|
+
* @memberof Twilio.Api.V2010.AccountContext.CallContext.StreamContext#
|
|
792
|
+
*
|
|
793
|
+
* @returns Object
|
|
794
|
+
*/
|
|
795
|
+
/* jshint ignore:end */
|
|
796
|
+
StreamContext.prototype.toJSON = function toJSON() {
|
|
797
|
+
return this._solution;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
StreamContext.prototype[util.inspect.custom] = function inspect(depth, options)
|
|
801
|
+
{
|
|
802
|
+
return util.inspect(this.toJSON(), options);
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
module.exports = {
|
|
806
|
+
StreamList: StreamList,
|
|
807
|
+
StreamPage: StreamPage,
|
|
808
|
+
StreamInstance: StreamInstance,
|
|
809
|
+
StreamContext: StreamContext
|
|
810
|
+
};
|