twilio-ruby 5.8.1 → 5.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +9 -0
- data/PULL_REQUEST_TEMPLATE.md +4 -0
- data/README.md +2 -2
- data/lib/rack/twilio_webhook_authentication.rb +2 -0
- data/lib/twilio-ruby/framework/domain.rb +2 -0
- data/lib/twilio-ruby/framework/error.rb +2 -0
- data/lib/twilio-ruby/framework/helper.rb +2 -0
- data/lib/twilio-ruby/framework/obsolete_client.rb +2 -0
- data/lib/twilio-ruby/framework/page.rb +2 -0
- data/lib/twilio-ruby/framework/request.rb +2 -0
- data/lib/twilio-ruby/framework/resource.rb +2 -0
- data/lib/twilio-ruby/framework/response.rb +2 -0
- data/lib/twilio-ruby/framework/serialize.rb +2 -0
- data/lib/twilio-ruby/framework/twilio_response.rb +2 -0
- data/lib/twilio-ruby/framework/values.rb +2 -0
- data/lib/twilio-ruby/framework/version.rb +2 -0
- data/lib/twilio-ruby/http/http_client.rb +2 -0
- data/lib/twilio-ruby/jwt/access_token.rb +2 -0
- data/lib/twilio-ruby/jwt/client_capability.rb +2 -0
- data/lib/twilio-ruby/jwt/jwt.rb +2 -0
- data/lib/twilio-ruby/jwt/task_router.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +2 -0
- data/lib/twilio-ruby/rest/accounts.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +82 -45
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +65 -51
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +174 -73
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +12 -6
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +19 -9
- data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +150 -81
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +66 -50
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +13 -7
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +19 -11
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +110 -58
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +106 -79
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +74 -26
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +12 -5
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +18 -10
- data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +7 -3
- data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +21 -14
- data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +7 -5
- data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +6 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +2 -0
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +29 -13
- data/lib/twilio-ruby/rest/api/v2010/account.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010.rb +2 -0
- data/lib/twilio-ruby/rest/api.rb +3 -1
- data/lib/twilio-ruby/rest/chat/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v1.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/credential.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2/service.rb +2 -0
- data/lib/twilio-ruby/rest/chat/v2.rb +2 -0
- data/lib/twilio-ruby/rest/chat.rb +2 -0
- data/lib/twilio-ruby/rest/client.rb +3 -1
- data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +2 -0
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +11 -6
- data/lib/twilio-ruby/rest/fax/v1.rb +2 -0
- data/lib/twilio-ruby/rest/fax.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -0
- data/lib/twilio-ruby/rest/ip_messaging.rb +2 -0
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/lookups/v1.rb +2 -0
- data/lib/twilio-ruby/rest/lookups.rb +2 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +17 -11
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +15 -12
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +2 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +54 -28
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -0
- data/lib/twilio-ruby/rest/messaging.rb +3 -1
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +52 -23
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +2 -0
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -0
- data/lib/twilio-ruby/rest/monitor.rb +3 -1
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/segment.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/segment_memberships.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user/user_binding.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service/user.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -0
- data/lib/twilio-ruby/rest/notify/v1.rb +2 -0
- data/lib/twilio-ruby/rest/notify.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service/verification_check.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/acc_security.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +2 -0
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +2 -0
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +2 -0
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +14 -12
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +26 -21
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +36 -25
- data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +2 -0
- data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +9 -5
- data/lib/twilio-ruby/rest/preview/marketplace.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/interaction.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant/message_interaction.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session/participant.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/session.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service/short_code.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/proxy.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement/step.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow/engagement.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio/flow.rb +2 -0
- data/lib/twilio-ruby/rest/preview/studio.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -0
- data/lib/twilio-ruby/rest/preview/sync.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent/field.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent/sample.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/intent.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand/assistant.rb +2 -0
- data/lib/twilio-ruby/rest/preview/understand.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/command.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless/sim.rb +2 -0
- data/lib/twilio-ruby/rest/preview/wireless.rb +2 -0
- data/lib/twilio-ruby/rest/preview.rb +5 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -0
- data/lib/twilio-ruby/rest/pricing/v1.rb +2 -0
- data/lib/twilio-ruby/rest/pricing.rb +2 -0
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +16 -32
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +15 -15
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +15 -17
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +37 -42
- data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +4 -2
- data/lib/twilio-ruby/rest/proxy/v1/service.rb +34 -23
- data/lib/twilio-ruby/rest/proxy/v1.rb +2 -0
- data/lib/twilio-ruby/rest/proxy.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1/flow.rb +2 -0
- data/lib/twilio-ruby/rest/studio/v1.rb +2 -0
- data/lib/twilio-ruby/rest/studio.rb +2 -0
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +31 -21
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +40 -22
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +20 -15
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +31 -20
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +4 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +24 -17
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +10 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +14 -9
- data/lib/twilio-ruby/rest/sync/v1/service.rb +39 -16
- data/lib/twilio-ruby/rest/sync/v1.rb +2 -0
- data/lib/twilio-ruby/rest/sync.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +42 -19
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +56 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +69 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +128 -55
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +51 -25
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +15 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +61 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +83 -35
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +27 -24
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +36 -20
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +24 -8
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +31 -15
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +8 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +36 -14
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +71 -37
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +52 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +11 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +68 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +52 -26
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +13 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +36 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +95 -36
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +2 -0
- data/lib/twilio-ruby/rest/taskrouter.rb +3 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +2 -0
- data/lib/twilio-ruby/rest/trunking/v1.rb +2 -0
- data/lib/twilio-ruby/rest/trunking.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/composition.rb +29 -24
- data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +2 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +34 -21
- data/lib/twilio-ruby/rest/video/v1/room.rb +59 -40
- data/lib/twilio-ruby/rest/video/v1.rb +2 -0
- data/lib/twilio-ruby/rest/video.rb +4 -1
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +2 -0
- data/lib/twilio-ruby/rest/wireless/v1.rb +2 -0
- data/lib/twilio-ruby/rest/wireless.rb +2 -0
- data/lib/twilio-ruby/security/request_validator.rb +2 -0
- data/lib/twilio-ruby/twiml/fax_response.rb +2 -0
- data/lib/twilio-ruby/twiml/messaging_response.rb +2 -0
- data/lib/twilio-ruby/twiml/twiml.rb +2 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +2 -0
- data/lib/twilio-ruby/util/configuration.rb +2 -0
- data/lib/twilio-ruby/util.rb +2 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/lib/twilio-ruby.rb +2 -0
- data/spec/integration/accounts/v1/credential/aws_spec.rb +2 -0
- data/spec/integration/accounts/v1/credential/public_key_spec.rb +2 -0
- data/spec/integration/accounts/v1/credential_spec.rb +2 -0
- data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/address_spec.rb +2 -0
- data/spec/integration/api/v2010/account/application_spec.rb +2 -0
- data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +2 -0
- data/spec/integration/api/v2010/account/available_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/feedback_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/notification_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call/recording_spec.rb +2 -0
- data/spec/integration/api/v2010/account/call_spec.rb +2 -0
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +2 -0
- data/spec/integration/api/v2010/account/conference_spec.rb +2 -0
- data/spec/integration/api/v2010/account/connect_app_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +2 -0
- data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +2 -0
- data/spec/integration/api/v2010/account/key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message/feedback_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message/media_spec.rb +2 -0
- data/spec/integration/api/v2010/account/message_spec.rb +2 -0
- data/spec/integration/api/v2010/account/new_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/new_signing_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/notification_spec.rb +2 -0
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +2 -0
- data/spec/integration/api/v2010/account/queue/member_spec.rb +2 -0
- data/spec/integration/api/v2010/account/queue_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording/transcription_spec.rb +2 -0
- data/spec/integration/api/v2010/account/recording_spec.rb +2 -0
- data/spec/integration/api/v2010/account/short_code_spec.rb +2 -0
- data/spec/integration/api/v2010/account/signing_key_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +2 -0
- data/spec/integration/api/v2010/account/sip_spec.rb +2 -0
- data/spec/integration/api/v2010/account/token_spec.rb +2 -0
- data/spec/integration/api/v2010/account/transcription_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/today_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/record_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage/trigger_spec.rb +2 -0
- data/spec/integration/api/v2010/account/usage_spec.rb +2 -0
- data/spec/integration/api/v2010/account/validation_request_spec.rb +2 -0
- data/spec/integration/api/v2010/account_spec.rb +2 -0
- data/spec/integration/chat/v1/credential_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/invite_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/member_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel/message_spec.rb +2 -0
- data/spec/integration/chat/v1/service/channel_spec.rb +2 -0
- data/spec/integration/chat/v1/service/role_spec.rb +2 -0
- data/spec/integration/chat/v1/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/chat/v1/service/user_spec.rb +2 -0
- data/spec/integration/chat/v1/service_spec.rb +2 -0
- data/spec/integration/chat/v2/credential_spec.rb +2 -0
- data/spec/integration/chat/v2/service/binding_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/invite_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/member_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel/message_spec.rb +2 -0
- data/spec/integration/chat/v2/service/channel_spec.rb +2 -0
- data/spec/integration/chat/v2/service/role_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/chat/v2/service/user_spec.rb +2 -0
- data/spec/integration/chat/v2/service_spec.rb +2 -0
- data/spec/integration/fax/v1/fax/fax_media_spec.rb +2 -0
- data/spec/integration/fax/v1/fax_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/credential_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/role_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service/user_spec.rb +2 -0
- data/spec/integration/ip_messaging/v1/service_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/credential_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/binding_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/role_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service/user_spec.rb +2 -0
- data/spec/integration/ip_messaging/v2/service_spec.rb +2 -0
- data/spec/integration/lookups/v1/phone_number_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/phone_number_spec.rb +2 -0
- data/spec/integration/messaging/v1/service/short_code_spec.rb +2 -0
- data/spec/integration/messaging/v1/service_spec.rb +2 -0
- data/spec/integration/monitor/v1/alert_spec.rb +2 -0
- data/spec/integration/monitor/v1/event_spec.rb +2 -0
- data/spec/integration/notify/v1/credential_spec.rb +2 -0
- data/spec/integration/notify/v1/service/binding_spec.rb +2 -0
- data/spec/integration/notify/v1/service/notification_spec.rb +2 -0
- data/spec/integration/notify/v1/service/segment_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user/segment_memberships_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user/user_binding_spec.rb +2 -0
- data/spec/integration/notify/v1/service/user_spec.rb +2 -0
- data/spec/integration/notify/v1/service_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service/verification_check_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service/verification_spec.rb +2 -0
- data/spec/integration/preview/acc_security/service_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +2 -0
- data/spec/integration/preview/bulk_exports/export_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +2 -0
- data/spec/integration/preview/deployed_devices/fleet_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +2 -0
- data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +2 -0
- data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +2 -0
- data/spec/integration/preview/marketplace/available_add_on_spec.rb +2 -0
- data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +2 -0
- data/spec/integration/preview/marketplace/installed_add_on_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/phone_number_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/interaction_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/participant/message_interaction_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session/participant_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/session_spec.rb +2 -0
- data/spec/integration/preview/proxy/service/short_code_spec.rb +2 -0
- data/spec/integration/preview/proxy/service_spec.rb +2 -0
- data/spec/integration/preview/studio/flow/engagement/step_spec.rb +2 -0
- data/spec/integration/preview/studio/flow/engagement_spec.rb +2 -0
- data/spec/integration/preview/studio/flow_spec.rb +2 -0
- data/spec/integration/preview/sync/service/document/document_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/document_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_list_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +2 -0
- data/spec/integration/preview/sync/service/sync_map_spec.rb +2 -0
- data/spec/integration/preview/sync/service_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/field_type_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent/field_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent/sample_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/intent_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/model_build_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant/query_spec.rb +2 -0
- data/spec/integration/preview/understand/assistant_spec.rb +2 -0
- data/spec/integration/preview/wireless/command_spec.rb +2 -0
- data/spec/integration/preview/wireless/rate_plan_spec.rb +2 -0
- data/spec/integration/preview/wireless/sim/usage_spec.rb +2 -0
- data/spec/integration/preview/wireless/sim_spec.rb +2 -0
- data/spec/integration/pricing/v1/messaging/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/messaging_spec.rb +2 -0
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/phone_number_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice/country_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice/number_spec.rb +2 -0
- data/spec/integration/pricing/v1/voice_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/phone_number_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/interaction_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session/participant_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/session_spec.rb +2 -0
- data/spec/integration/proxy/v1/service/short_code_spec.rb +2 -0
- data/spec/integration/proxy/v1/service_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement/step_spec.rb +2 -0
- data/spec/integration/studio/v1/flow/engagement_spec.rb +2 -0
- data/spec/integration/studio/v1/flow_spec.rb +2 -0
- data/spec/integration/sync/v1/service/document/document_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/document_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_list_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_map_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_stream/stream_message_spec.rb +2 -0
- data/spec/integration/sync/v1/service/sync_stream_spec.rb +2 -0
- data/spec/integration/sync/v1/service_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/event_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/task_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +2 -0
- data/spec/integration/taskrouter/v1/workspace_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +2 -0
- data/spec/integration/trunking/v1/trunk_spec.rb +2 -0
- data/spec/integration/video/v1/composition_spec.rb +118 -19
- data/spec/integration/video/v1/recording_spec.rb +2 -0
- data/spec/integration/video/v1/room/recording_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +2 -0
- data/spec/integration/video/v1/room/room_participant_spec.rb +2 -0
- data/spec/integration/video/v1/room_spec.rb +2 -0
- data/spec/integration/wireless/v1/command_spec.rb +2 -0
- data/spec/integration/wireless/v1/rate_plan_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim/data_session_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim/usage_record_spec.rb +2 -0
- data/spec/integration/wireless/v1/sim_spec.rb +2 -0
- metadata +3 -2
@@ -3,6 +3,8 @@
|
|
3
3
|
# \ / _ _ _| _ _
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
5
|
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
6
8
|
|
7
9
|
module Twilio
|
8
10
|
module REST
|
@@ -129,9 +131,11 @@ module Twilio
|
|
129
131
|
|
130
132
|
##
|
131
133
|
# Update the FeedbackInstance
|
132
|
-
# @param [String] quality_score An integer
|
133
|
-
#
|
134
|
-
#
|
134
|
+
# @param [String] quality_score An integer `1` to `5` quality score where `1`
|
135
|
+
# represents very poor call quality and `5` represents a perfect call.
|
136
|
+
# @param [feedback.Issues] issue One or more issues experienced during the call.
|
137
|
+
# The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`,
|
138
|
+
# `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`.
|
135
139
|
# @return [FeedbackInstance] Updated FeedbackInstance
|
136
140
|
def update(quality_score: nil, issue: :unset)
|
137
141
|
data = Twilio::Values.of({
|
@@ -254,9 +258,11 @@ module Twilio
|
|
254
258
|
|
255
259
|
##
|
256
260
|
# Update the FeedbackInstance
|
257
|
-
# @param [String] quality_score An integer
|
258
|
-
#
|
259
|
-
#
|
261
|
+
# @param [String] quality_score An integer `1` to `5` quality score where `1`
|
262
|
+
# represents very poor call quality and `5` represents a perfect call.
|
263
|
+
# @param [feedback.Issues] issue One or more issues experienced during the call.
|
264
|
+
# The issues can be: `imperfect-audio`, `dropped-call`, `incorrect-caller-id`,
|
265
|
+
# `post-dial-delay`, `digits-not-captured`, `audio-latency`, or `one-way-audio`.
|
260
266
|
# @return [FeedbackInstance] Updated FeedbackInstance
|
261
267
|
def update(quality_score: nil, issue: :unset)
|
262
268
|
context.update(quality_score: quality_score, issue: issue, )
|
@@ -3,6 +3,8 @@
|
|
3
3
|
# \ / _ _ _| _ _
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
5
|
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
6
8
|
|
7
9
|
module Twilio
|
8
10
|
module REST
|
@@ -14,8 +16,9 @@ module Twilio
|
|
14
16
|
##
|
15
17
|
# Initialize the FeedbackSummaryList
|
16
18
|
# @param [Version] version Version that contains the resource
|
17
|
-
# @param [String] account_sid The unique id of the
|
18
|
-
#
|
19
|
+
# @param [String] account_sid The unique id of the
|
20
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for creating
|
21
|
+
# this call.
|
19
22
|
# @return [FeedbackSummaryList] FeedbackSummaryList
|
20
23
|
def initialize(version, account_sid: nil)
|
21
24
|
super(version)
|
@@ -28,11 +31,17 @@ module Twilio
|
|
28
31
|
##
|
29
32
|
# Retrieve a single page of FeedbackSummaryInstance records from the API.
|
30
33
|
# Request is executed immediately.
|
31
|
-
# @param [Date] start_date
|
32
|
-
#
|
33
|
-
# @param [
|
34
|
-
#
|
35
|
-
# @param [
|
34
|
+
# @param [Date] start_date Only include usage that has occurred on or after this
|
35
|
+
# date. Format is YYYY-MM-DD. All dates are in UTC.
|
36
|
+
# @param [Date] end_date Only include usage that has occurred on or before this
|
37
|
+
# date. Format is YYYY-MM-DD. All dates are in UTC.
|
38
|
+
# @param [Boolean] include_subaccounts true to include feedback entries for the
|
39
|
+
# master account and all subaccounts. false to include feedback entries for the
|
40
|
+
# specified account. IncludeSubaccounts is false by default.
|
41
|
+
# @param [String] status_callback The URL that Twilio will request when the
|
42
|
+
# Feedback Summary is completed.
|
43
|
+
# @param [String] status_callback_method The HTTP method Twilio will use to make
|
44
|
+
# requests to the StatusCallback URL. Either GET or POST.
|
36
45
|
# @return [FeedbackSummaryInstance] Newly created FeedbackSummaryInstance
|
37
46
|
def create(start_date: nil, end_date: nil, include_subaccounts: :unset, status_callback: :unset, status_callback_method: :unset)
|
38
47
|
data = Twilio::Values.of({
|
@@ -143,8 +152,9 @@ module Twilio
|
|
143
152
|
# Initialize the FeedbackSummaryInstance
|
144
153
|
# @param [Version] version Version that contains the resource
|
145
154
|
# @param [Hash] payload payload that contains response from Twilio
|
146
|
-
# @param [String] account_sid The unique id of the
|
147
|
-
#
|
155
|
+
# @param [String] account_sid The unique id of the
|
156
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for creating
|
157
|
+
# this call.
|
148
158
|
# @param [String] sid The sid
|
149
159
|
# @return [FeedbackSummaryInstance] FeedbackSummaryInstance
|
150
160
|
def initialize(version, payload, account_sid: nil, sid: nil)
|
@@ -3,6 +3,8 @@
|
|
3
3
|
# \ / _ _ _| _ _
|
4
4
|
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
5
|
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
6
8
|
|
7
9
|
module Twilio
|
8
10
|
module REST
|
@@ -13,8 +15,9 @@ module Twilio
|
|
13
15
|
##
|
14
16
|
# Initialize the CallList
|
15
17
|
# @param [Version] version Version that contains the resource
|
16
|
-
# @param [String] account_sid The unique id of the
|
17
|
-
#
|
18
|
+
# @param [String] account_sid The unique id of the
|
19
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for creating
|
20
|
+
# this call.
|
18
21
|
# @return [CallList] CallList
|
19
22
|
def initialize(version, account_sid: nil)
|
20
23
|
super(version)
|
@@ -32,64 +35,97 @@ module Twilio
|
|
32
35
|
# Request is executed immediately.
|
33
36
|
# @param [String] to The phone number, SIP address or client identifier to call.
|
34
37
|
# @param [String] from The phone number or client identifier to use as the caller
|
35
|
-
# id.
|
36
|
-
# caller id for your
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
38
|
+
# id. If using a phone number, it must be a Twilio number or a Verified [outgoing
|
39
|
+
# caller id](https://www.twilio.com/docs/api/voice/outgoing-caller-ids) for your
|
40
|
+
# account. If the `To` parameter is a phone number, `From` must also be a phone
|
41
|
+
# number.
|
42
|
+
# @param [String] method The HTTP method Twilio should use when making its request
|
43
|
+
# to the above `Url` parameter's value. Defaults to `POST`. If an `ApplicationSid`
|
44
|
+
# parameter is present, this parameter is ignored.
|
40
45
|
# @param [String] fallback_url A URL that Twilio will request if an error occurs
|
41
|
-
# requesting or executing the TwiML at `Url`. If an `ApplicationSid`
|
42
|
-
# this parameter is ignored.
|
46
|
+
# requesting or executing the TwiML at `Url`. If an `ApplicationSid` parameter is
|
47
|
+
# present, this parameter is ignored.
|
43
48
|
# @param [String] fallback_method The HTTP method that Twilio should use to
|
44
49
|
# request the `FallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
|
45
|
-
# If an `ApplicationSid`
|
46
|
-
# @param [String] status_callback A URL that Twilio will
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
50
|
+
# If an `ApplicationSid` parameter is present, this parameter is ignored.
|
51
|
+
# @param [String] status_callback A URL that Twilio will send asynchronous webhook
|
52
|
+
# requests to on every call event specified in the `StatusCallbackEvent`
|
53
|
+
# parameter. If no event is present, Twilio will send `completed` by default. If
|
54
|
+
# an `ApplicationSid` parameter is present, this parameter is ignored. URLs must
|
55
|
+
# contain a valid hostname (underscores are not permitted).
|
56
|
+
# @param [String] status_callback_event The call progress events that Twilio will
|
57
|
+
# send webhooks on. Available values are `initiated`, `ringing`, `answered`, and
|
58
|
+
# `completed`. If you want to receive multiple events, please provide multiple
|
59
|
+
# `StatusCallbackEvent` values as individual parameters in the `POST` request. See
|
60
|
+
# the code sample for [monitoring call
|
61
|
+
# progress](https://www.twilio.com/docs/api/voice/making-calls#make-a-call-and-monitor-progress-events). If no event is specified, defaults to `completed`. If an `ApplicationSid` is present, this parameter is ignored.
|
62
|
+
# @param [String] status_callback_method The HTTP method Twilio should use when
|
63
|
+
# requesting the above URL. Defaults to `POST`. If an `ApplicationSid` parameter
|
64
|
+
# is present, this parameter is ignored.
|
53
65
|
# @param [String] send_digits A string of keys to dial after connecting to the
|
54
|
-
# number. Valid digits in the string include: any digit
|
55
|
-
# and '`w`' (to insert a half second pause). For example,
|
56
|
-
# company phone number, and wanted to pause for one second,
|
57
|
-
# and then the pound key, use `ww1234#`.
|
66
|
+
# number, maximum of 32 digits. Valid digits in the string include: any digit
|
67
|
+
# (`0`-`9`), '`#`', '`*`' and '`w`' (to insert a half second pause). For example,
|
68
|
+
# if you connected to a company phone number, and wanted to pause for one second,
|
69
|
+
# dial extension 1234 and then the pound key, use `SendDigits=ww1234#`. Remember
|
70
|
+
# to URL-encode this string, since the '`#`' character has special meaning in a
|
71
|
+
# URL. If both `SendDigits` and `MachineDetection` parameters are provided, then
|
72
|
+
# `MachineDetection` will be ignored.
|
58
73
|
# @param [String] if_machine Tell Twilio to try and determine if a machine (like
|
59
74
|
# voicemail) or a human has answered the call. Possible value are `Continue` and
|
60
75
|
# `Hangup`.
|
61
76
|
# @param [String] timeout The integer number of seconds that Twilio should allow
|
62
77
|
# the phone to ring before assuming there is no answer. Default is `60` seconds,
|
63
|
-
# the maximum is `
|
64
|
-
#
|
78
|
+
# the maximum is `600` seconds. For some call flows Twilio will add a 5 second
|
79
|
+
# buffer to the timeout value provided, so if you enter a timeout value of 10
|
80
|
+
# seconds, you could see actual timeout closer to 15 seconds. Note, you could set
|
81
|
+
# this to a low value, such as `15`, to hangup before reaching an answering
|
82
|
+
# machine or voicemail.
|
65
83
|
# @param [Boolean] record Set this parameter to true to record the entirety of a
|
66
84
|
# phone call. The RecordingUrl will be sent to the StatusCallback URL. Defaults to
|
67
85
|
# false.
|
68
|
-
# @param [String] recording_channels
|
69
|
-
#
|
70
|
-
#
|
71
|
-
#
|
86
|
+
# @param [String] recording_channels `mono` or `dual`Set this parameter to specify
|
87
|
+
# the number of channels in the final recording. Defaults to `mono`. In
|
88
|
+
# mono-channel, both legs of the call are mixed down into a single channel within
|
89
|
+
# a single recording file. With dual-channel, both legs use separate channels
|
90
|
+
# within a single recording file. For dual-channel, the parent call will always
|
91
|
+
# be in the first channel and the child call will always be in the second channel.
|
92
|
+
# @param [String] recording_status_callback A URL that Twilio will send a webhook
|
93
|
+
# request to when the recording is available for access.
|
94
|
+
# @param [String] recording_status_callback_method The HTTP method Twilio should
|
95
|
+
# use when requesting the above URL. Defaults to `POST`.
|
72
96
|
# @param [String] sip_auth_username The sip_auth_username
|
73
97
|
# @param [String] sip_auth_password The sip_auth_password
|
74
|
-
# @param [String] machine_detection
|
75
|
-
#
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
79
|
-
#
|
80
|
-
#
|
81
|
-
# @param [String]
|
82
|
-
#
|
98
|
+
# @param [String] machine_detection Detect if a human, answering machine or fax
|
99
|
+
# has picked up the call. Use `Enable` if you would like Twilio to return an
|
100
|
+
# `AnsweredBy` value as soon as it identifies the called party. If you would like
|
101
|
+
# to leave a message on an answering machine specify `DetectMessageEnd`. If both
|
102
|
+
# SendDigits and MachineDetection parameters are provided, then MachineDetection
|
103
|
+
# will be ignored. [Detailed documentation is
|
104
|
+
# here](https://www.twilio.com/docs/api/voice/answering-machine-detection).
|
105
|
+
# @param [String] machine_detection_timeout The number of seconds that Twilio
|
106
|
+
# should attempt to perform answering machine detection before timing out and
|
107
|
+
# firing a voice request with `AnsweredBy` of `unknown`. Defaults to 30 seconds.
|
108
|
+
# @param [String] recording_status_callback_event The recording status changes
|
109
|
+
# that Twilio will send webhooks on to the URL specified in
|
110
|
+
# RecordingStatusCallback. The available values are `in-progress`, `completed`,
|
111
|
+
# `failed`. To specify multiple values separate them with a space. Defaults are
|
112
|
+
# `completed`, `failed`. If any values are specified, the defaults are no longer
|
113
|
+
# applicable.
|
114
|
+
# @param [String] trim `trim-silence` or `do-not-trim`Set this parameter to define
|
115
|
+
# whether leading and trailing silence is trimmed from the recording. Defaults to
|
83
116
|
# `trim-silence`.
|
84
117
|
# @param [String] caller_id The phone number, SIP address or Client identifier
|
85
118
|
# that made this Call. Phone numbers are in E.164 format (e.g. +16175551212). SIP
|
86
119
|
# addresses are formatted as `name@company.com`.
|
87
120
|
# @param [String] url The fully qualified URL that should be consulted when the
|
88
121
|
# call connects. Just like when you set a URL on a phone number for handling
|
89
|
-
# inbound calls.
|
90
|
-
#
|
122
|
+
# inbound calls. See the [Url
|
123
|
+
# Parameter](https://www.twilio.com/docs/api/voice/making-calls#url-parameter) details in [Making Calls](https://www.twilio.com/docs/voice/make-calls) for more details.
|
124
|
+
# @param [String] application_sid The 34 character SID of the application Twilio
|
91
125
|
# should use to handle this phone call. If this parameter is present, Twilio will
|
92
|
-
# ignore all of the voice URLs passed and use the URLs set on the application.
|
126
|
+
# ignore all of the voice URLs passed and use the URLs set on the application. See
|
127
|
+
# the [ApplicationSid
|
128
|
+
# Parameter](https://www.twilio.com/docs/api/voice/making-calls#applicationsid-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls) for more details.
|
93
129
|
# @return [CallInstance] Newly created CallInstance
|
94
130
|
def create(to: nil, from: nil, method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_event: :unset, status_callback_method: :unset, send_digits: :unset, if_machine: :unset, timeout: :unset, record: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, machine_detection: :unset, machine_detection_timeout: :unset, recording_status_callback_event: :unset, trim: :unset, caller_id: :unset, url: :unset, application_sid: :unset)
|
95
131
|
data = Twilio::Values.of({
|
@@ -132,11 +168,15 @@ module Twilio
|
|
132
168
|
# Lists CallInstance records from the API as a list.
|
133
169
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
134
170
|
# memory before returning.
|
135
|
-
# @param [String] to Only show calls to this phone number
|
136
|
-
#
|
171
|
+
# @param [String] to Only show calls to this phone number, SIP address, Client
|
172
|
+
# identifier or SIM SID.
|
173
|
+
# @param [String] from Only show calls from this phone number, SIP address, Client
|
174
|
+
# identifier or SIM SID.
|
137
175
|
# @param [String] parent_call_sid Only show calls spawned by the call with this
|
138
|
-
#
|
139
|
-
# @param [call.Status] status Only show calls currently in this status
|
176
|
+
# SID.
|
177
|
+
# @param [call.Status] status Only show calls currently in this status. May be
|
178
|
+
# `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`,
|
179
|
+
# or `no-answer`.
|
140
180
|
# @param [Time] start_time_before StartTime to filter on
|
141
181
|
# @param [Time] start_time StartTime to filter on
|
142
182
|
# @param [Time] start_time_after StartTime to filter on
|
@@ -171,11 +211,15 @@ module Twilio
|
|
171
211
|
# Streams CallInstance records from the API as an Enumerable.
|
172
212
|
# This operation lazily loads records as efficiently as possible until the limit
|
173
213
|
# is reached.
|
174
|
-
# @param [String] to Only show calls to this phone number
|
175
|
-
#
|
214
|
+
# @param [String] to Only show calls to this phone number, SIP address, Client
|
215
|
+
# identifier or SIM SID.
|
216
|
+
# @param [String] from Only show calls from this phone number, SIP address, Client
|
217
|
+
# identifier or SIM SID.
|
176
218
|
# @param [String] parent_call_sid Only show calls spawned by the call with this
|
177
|
-
#
|
178
|
-
# @param [call.Status] status Only show calls currently in this status
|
219
|
+
# SID.
|
220
|
+
# @param [call.Status] status Only show calls currently in this status. May be
|
221
|
+
# `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`,
|
222
|
+
# or `no-answer`.
|
179
223
|
# @param [Time] start_time_before StartTime to filter on
|
180
224
|
# @param [Time] start_time StartTime to filter on
|
181
225
|
# @param [Time] start_time_after StartTime to filter on
|
@@ -226,11 +270,15 @@ module Twilio
|
|
226
270
|
##
|
227
271
|
# Retrieve a single page of CallInstance records from the API.
|
228
272
|
# Request is executed immediately.
|
229
|
-
# @param [String] to Only show calls to this phone number
|
230
|
-
#
|
273
|
+
# @param [String] to Only show calls to this phone number, SIP address, Client
|
274
|
+
# identifier or SIM SID.
|
275
|
+
# @param [String] from Only show calls from this phone number, SIP address, Client
|
276
|
+
# identifier or SIM SID.
|
231
277
|
# @param [String] parent_call_sid Only show calls spawned by the call with this
|
232
|
-
#
|
233
|
-
# @param [call.Status] status Only show calls currently in this status
|
278
|
+
# SID.
|
279
|
+
# @param [call.Status] status Only show calls currently in this status. May be
|
280
|
+
# `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`,
|
281
|
+
# or `no-answer`.
|
234
282
|
# @param [Time] start_time_before StartTime to filter on
|
235
283
|
# @param [Time] start_time StartTime to filter on
|
236
284
|
# @param [Time] start_time_after StartTime to filter on
|
@@ -373,22 +421,32 @@ module Twilio
|
|
373
421
|
|
374
422
|
##
|
375
423
|
# Update the CallInstance
|
376
|
-
# @param [String] url
|
377
|
-
#
|
378
|
-
#
|
379
|
-
#
|
380
|
-
#
|
381
|
-
#
|
382
|
-
#
|
383
|
-
#
|
424
|
+
# @param [String] url The fully qualified URL that should be consulted when the
|
425
|
+
# call connects. Just like when you set a URL on a phone number for handling
|
426
|
+
# inbound calls. See the [Url
|
427
|
+
# Parameter](https://www.twilio.com/docs/api/voice/making-calls#url-parameter)
|
428
|
+
# section below for more details.
|
429
|
+
# @param [String] method The HTTP method Twilio should use when making its request
|
430
|
+
# to the above `Url` parameter's value. Defaults to `POST`. If an `ApplicationSid`
|
431
|
+
# parameter is present, this parameter is ignored.
|
432
|
+
# @param [call.UpdateStatus] status Either `canceled` or `completed`.
|
433
|
+
# Specifying `canceled` will attempt to hang up calls that are queued or ringing
|
434
|
+
# but not affect calls already in progress. Specifying `completed` will attempt to
|
435
|
+
# hang up a call even if it's already in progress.
|
384
436
|
# @param [String] fallback_url A URL that Twilio will request if an error occurs
|
385
|
-
# requesting or executing the TwiML at `Url`.
|
437
|
+
# requesting or executing the TwiML at `Url`. If an `ApplicationSid` parameter is
|
438
|
+
# present, this parameter is ignored.
|
386
439
|
# @param [String] fallback_method The HTTP method that Twilio should use to
|
387
440
|
# request the `FallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
|
388
|
-
#
|
389
|
-
#
|
390
|
-
#
|
391
|
-
#
|
441
|
+
# If an `ApplicationSid` parameter is present, this parameter is ignored.
|
442
|
+
# @param [String] status_callback A URL that Twilio will send asynchronous webhook
|
443
|
+
# requests to on every call event specified in the `StatusCallbackEvent`
|
444
|
+
# parameter. If no event is present, Twilio will send `completed` by default. If
|
445
|
+
# an `ApplicationSid` parameter is present, this parameter is ignored. URLs must
|
446
|
+
# contain a valid hostname (underscores are not permitted).
|
447
|
+
# @param [String] status_callback_method The HTTP method Twilio should use when
|
448
|
+
# requesting the above URL. Defaults to `POST`. If an `ApplicationSid` parameter
|
449
|
+
# is present, this parameter is ignored.
|
392
450
|
# @return [CallInstance] Updated CallInstance
|
393
451
|
def update(url: :unset, method: :unset, status: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_method: :unset)
|
394
452
|
data = Twilio::Values.of({
|
@@ -475,8 +533,9 @@ module Twilio
|
|
475
533
|
# Initialize the CallInstance
|
476
534
|
# @param [Version] version Version that contains the resource
|
477
535
|
# @param [Hash] payload payload that contains response from Twilio
|
478
|
-
# @param [String] account_sid The unique id of the
|
479
|
-
#
|
536
|
+
# @param [String] account_sid The unique id of the
|
537
|
+
# [Account](https://www.twilio.com/docs/api/rest/account) responsible for creating
|
538
|
+
# this call.
|
480
539
|
# @param [String] sid The Call Sid that uniquely identifies the Call to fetch
|
481
540
|
# @return [CallInstance] CallInstance
|
482
541
|
def initialize(version, payload, account_sid: nil, sid: nil)
|
@@ -576,7 +635,7 @@ module Twilio
|
|
576
635
|
end
|
577
636
|
|
578
637
|
##
|
579
|
-
# @return [String] The
|
638
|
+
# @return [String] The length of the call in seconds.
|
580
639
|
def duration
|
581
640
|
@properties['duration']
|
582
641
|
end
|
@@ -648,7 +707,7 @@ module Twilio
|
|
648
707
|
end
|
649
708
|
|
650
709
|
##
|
651
|
-
# @return [call.Status]
|
710
|
+
# @return [call.Status] A string representing the status of the call.
|
652
711
|
def status
|
653
712
|
@properties['status']
|
654
713
|
end
|
@@ -693,22 +752,32 @@ module Twilio
|
|
693
752
|
|
694
753
|
##
|
695
754
|
# Update the CallInstance
|
696
|
-
# @param [String] url
|
697
|
-
#
|
698
|
-
#
|
699
|
-
#
|
700
|
-
#
|
701
|
-
#
|
702
|
-
#
|
703
|
-
#
|
755
|
+
# @param [String] url The fully qualified URL that should be consulted when the
|
756
|
+
# call connects. Just like when you set a URL on a phone number for handling
|
757
|
+
# inbound calls. See the [Url
|
758
|
+
# Parameter](https://www.twilio.com/docs/api/voice/making-calls#url-parameter)
|
759
|
+
# section below for more details.
|
760
|
+
# @param [String] method The HTTP method Twilio should use when making its request
|
761
|
+
# to the above `Url` parameter's value. Defaults to `POST`. If an `ApplicationSid`
|
762
|
+
# parameter is present, this parameter is ignored.
|
763
|
+
# @param [call.UpdateStatus] status Either `canceled` or `completed`.
|
764
|
+
# Specifying `canceled` will attempt to hang up calls that are queued or ringing
|
765
|
+
# but not affect calls already in progress. Specifying `completed` will attempt to
|
766
|
+
# hang up a call even if it's already in progress.
|
704
767
|
# @param [String] fallback_url A URL that Twilio will request if an error occurs
|
705
|
-
# requesting or executing the TwiML at `Url`.
|
768
|
+
# requesting or executing the TwiML at `Url`. If an `ApplicationSid` parameter is
|
769
|
+
# present, this parameter is ignored.
|
706
770
|
# @param [String] fallback_method The HTTP method that Twilio should use to
|
707
771
|
# request the `FallbackUrl`. Must be either `GET` or `POST`. Defaults to `POST`.
|
708
|
-
#
|
709
|
-
#
|
710
|
-
#
|
711
|
-
#
|
772
|
+
# If an `ApplicationSid` parameter is present, this parameter is ignored.
|
773
|
+
# @param [String] status_callback A URL that Twilio will send asynchronous webhook
|
774
|
+
# requests to on every call event specified in the `StatusCallbackEvent`
|
775
|
+
# parameter. If no event is present, Twilio will send `completed` by default. If
|
776
|
+
# an `ApplicationSid` parameter is present, this parameter is ignored. URLs must
|
777
|
+
# contain a valid hostname (underscores are not permitted).
|
778
|
+
# @param [String] status_callback_method The HTTP method Twilio should use when
|
779
|
+
# requesting the above URL. Defaults to `POST`. If an `ApplicationSid` parameter
|
780
|
+
# is present, this parameter is ignored.
|
712
781
|
# @return [CallInstance] Updated CallInstance
|
713
782
|
def update(url: :unset, method: :unset, status: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_method: :unset)
|
714
783
|
context.update(
|